); String d = day.substring (6, 8); return y + "-" + M + "-" + D;} Return day;}Finally, we often have to do some of the characters for null judgments and the like, and other data of the regularExpression validation, now also give benefits!!!/** * Determines whether the input string parameter is empty * * @return Boolean NULL returns TRUE, non-null flase */public static Boolean isEmpty (string input) {return NULL = = Input | | 0 = = Input.length () | | 0 = = Input.replaceall ("\\s", ""). Length (
Copy some common tools for easy search
----------string
Ext.util.Format.capitalize (string str);//capitalize the first letter
Ext.util.Format.ellipsis (string value, number length), or intercepting the specified length character, automatically adds an ellipsis ' ... ' at the end.
Ext.util.Format.htmlEncode (string value); Encode the text
Lowercase (string value);//lowercase
Stripscripts (Mixed value);//Dele
MongoDB Common troubleshooting tools
1.profile
Profiling levels:
0, close profile;1, only crawl slow query; 2, crawl all data. start profile and set profile level:
Can be launched through the MONGO shell, but also through the Drive Profile command to start, after the boot record will be saved under System.profile collection, you can use the Db.setprofilinglevel to start. The default slow is 100 milliseco
screenshot SoftwareWe often use the day-to-day operation of software, the Internet to see what beautiful pictures can be screenshots software, seize the wonderful moment, the beautiful picture permanently retained to your computer. With the improvement of people's living standards and lifestyle changes, screenshots tools are more and more loved by people, access to beautiful pictures is no longer a patent IT professionals, but more tend to civilian an
certificate, a description file, or a common software.
4. Save ISO and burn to disc. The boot disk is finished.
Note: Makeldr does not automatically import certificates to the current system, please import the certificate to the target system and replace the serial number. The command to import the certificate is SLMGR.VBS-ILC USB boot disks can also be made using Grub4dos's related tools. The USB boot met
Software size 11.55 MB
Software category foreign software/virus control
Operating environment Win2003, WinXp, Win2000, Nt, WinMe, Win9x
Licensing Mode Special Edition
Software Language Simplified Chinese
Kaspersky (Kaspersky) anti-virus software from Russia, is the world's most outstanding, the top of the network anti-virus software, killing virus performance is much higher than similar products. Kaspersky (Kaspersky) antivirus software has a strong central management and anti-virus capabiliti
Using the latest AI AI translation engine, which has a history of 16 years and 9 upgrades, supports more file formats, including PDFs, TXT, Word, Outlook, Excel, HTML Web pages, RTF, and RC format files.
Direct translation of the entire article, with multiple Windows integrated translation platform, is the English/Japanese web page, Office file translation of the preferred software.
1.7MB after the release of the compact, should be a number of users request, add the "Full text translation" funct
oracle| Script
In a longer period of interaction with Oracle, each DBA, especially some heroes have a variety of scripting tools to complete a variety of purposes, so very convenient and quick to complete the day-to-day work, the following part of my commonly used to show you, this article mainly focused on database management, these scripts have been rigorously tested.
1. Table Space Statistics
A, Script Description:
This is one of my most
readable?
How do I get this test to be executable?
The industry has answers to these questions, and JBehave, Cucumber,concordian and other BDD frameworks have emerged to solve the problem. These BDD frameworks each provide a set of DSL (Domain-specific-language) that developers can use to describe business requirements, for example,
Precondition:
User A account balance 1000 yuan
User B account balance 200 yuan
scene:
User A login system
to User B transfer 500 Yuan
User A
toinclude_dirs: = $ (python_include)/usr/local/include/usr/include/hdf5/serial/ Modify makefile File 173 linesLIBRARIES + = Glog gflags protobuf boost_system boost_filesystem m hdf5_serial_hl hdf5_serial Perform the compilation Make–j4Make Test -j4Make Runtest -j4 Compilation succeeds when passed results are returnedCompilation of 3.Matconvnet(i) Open matlab cd/usr/local/matlab/r2015b/bin/sudo./matlab(ii) Locate the Matconvnet directory and perform the compilationcd/usr/local/matlab/r2015b/
, so all network addresses currently use slashes as delimiters.Windows uses a slash as a parameter identifier for a DOS command prompt, and in order to avoid confusion, a backslash is used as the path delimiter. Currently, the file browser on the Windows system uses a backslash as the path delimiter.Conclusion:1. The browser address bar URL using a slash;2. Use a backslash on the Windows file browser;3. The path that appears in the HTML URL () property must use a slash when the path specified is
", 3); Student s3 = S1;4 System.out.println (S1 = s2); /false5 System.out.println (S1 = = S3);//true 6 System.out.println (s1.equals (S2));//true7 System.out.println (s1.equals (S3)); /true11.30 the Finalize () method and the Clone () method of the object class1.protected void Finalize ()Throws Throwable: This method is called by the object's garbage collector when the garbage collector determines that there are no more references to the object.2.protected Object Clone ()Throws Clonenotsupported
expression, otherwise false. var util = require. Isregexp (/some regexp/) //trueutil. (new regexp ' another regexp ' //True util. //false
Util.isdate (object)Returns true if the given argument "object" is a date, otherwise false is returned.var util = require ( ' util ' util.new date ()) Span class= "PLN" > //trueutil. (date ()) // False (without ' new ' returns a String) util. //false
Util.iserror (object)Returns true if the given argument "object" is an Error obje
that is used when calculating the space required for the calculation of the preview? Solution, pay attention to the point, pull the wide point is good.7. Custom data dictionary Displays the equals sign problem:Finereport like a custom data dictionary this place, with the cell also has the hint definition box must, if not the ' = ' sign begins as a string processing, ' = ' begins as a formula processing. So write an equal sign is blank. Use = "=" To display the equals sign8, a cell content too m
: This article describes how to share common PHP Tools in your project. if you are interested in PHP tutorials, refer to it.
0); $ I ++) {if ($ number = strpos (str_pad (decbin (ord (substr ($ string, $ I, 1), 8, '0', STR_PAD_LEFT), '0') {if ($ length
More than 1000 lines of code it too much to save and can not send, view and download the complete tool class please go to the http://www.shouce.ren/post/vi
error output.Util.inspect accepts at least one parameter, object, which is to be converted.Other optional parameters are as follows:showHidden is an optional parameter, and if the value is true, more hidden information will be outputdepthRepresents the maximum number of recursive layers, and if the objects are complex, you can specify the number of layers to control how much output information is. If you do not specifydepth, the default is 2 layers, which is specified as NULL, which means no
There are two types of Python3 that represent the sequence of characters: bytes and str. An instance of the former contains bytes with the original 8-bit value, 8 bits per byte, and an instance of the latter containing Unicode characters. The most common encoding for turning Unicode characters into binary data is UTF-8, which must use the Encode method; The Decode method must be used to turn binary data into Unicode characters.In actual development we
, 5 set Body modificationCtrl+d selection, Crtl+k skipCopy entire row to next line (CRTL+SHIFT+D)Produce multiple rows of cursors, select all selected words (ALT+F3)Create multiple rows of cursors after each line (select all >>Crtl+Shift+L>> arrow right) (shiftl+ right-drag)Format file encoding (crtl+shift+p >> set Syntax:)Command mode off Mini map (crtl+shift+p>> minimap)Emmet Plugin quick action--Generate HTML5 header:! +tab;html:5+tab;! + (crtl+e); html:5+ (Crtl+e)Note in HTML-encoded formatE
properties after package installation
Check whether the file attributes are changed. This is a method for software package security.
Rpm-V package_name
Using the above method, we will find that the attributes of the file have changed. The file attributes are as follows:
SfileSizediffersMModediffers(includespermissionsandfiletype)5digest(formerlyMD5sum)differsDDevicemajor/minornumbermismatchLreadLink(2)pathmismatchUUserownershipdiffersGGroupownershipdiffersTmTimediffersPcaPabilitiesdiffer
Note:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.