/desktop/shell/mem.txtDirName $A Removing the directory/root/desktop/shellbasename $A Take out filesMem.txtEcho ${a%/} Remove from right to left "/The content/root/desktop/shellEcho ${a%%.Remove from right to left maximum length.After the content/root/desktop/shell/memEcho ${a%%.txt} remove. txt content from right to left maximum length/root/desktop/shell/memEcho ${a##//} from left to right max remove all "//"Mem.txtEcho ${a#/*/}Desktop/shell/mem.txt1071 Aaa
PHP//strlen ("AAA"); Take the length of the string * * * Echo strlen("AAAAA"); Echo"; //$array = explode ("|", $s); splits the string, returns an array of strings * * * $str 1= "Aaaa|bbb|cc|d"; $array 1=Explode("|",$str 1); Print_r($array 1); Echo"; Print_r(Explode("|",$str 1)); Echo"; //$s = substr ($s, 4,10), intercept string, intercept based on the end position of the start position * * * $str 2= "Hello World"; Echo substr($str 2, 2,3); Ec
PHP Reflection class ReflectionClass and ReflectionObject extension reflection class in PHP. this extension is used to analyze php programs, export or extract detailed information about classes, methods, attributes, parameters, and so on, including comments.
Let's look at this question. the member variables of the php class are not declared in the class, but in the function. what is the difference?
The code is as follows:
Class test {
Private $ name;
Private $ sex;
Function _ construct (){
$ T
Delphi Tstringlist Usage Detailed.Tstringlist Common Methods and properties:varlist:tstringlist; I:integer;beginList:= Tstringlist.Create; List.add ('STRINGS1');{Add}List.add ('STRINGS2'); List.exchange (0,1);{Displacement}List.insert (0,'STRINGS3');{Insert}I:= List.indexof ('STRINGS1');{the first occurrence of the position}List.sort; {Sort}list.sorted:= True;{Specify sort}List.count; {Total}List.text; {Text Collection}List.delete (0);{Delete, 0 is the first data}List.loadfromfile ('C:/tmp.txt')
previous one after restart.
Third (modify the content of the underlying Nic file ):
Command:/etc/rc. d/init. d/network restart
Set system date
Data MMDDHHMMCCYY. SS
// Modify the system time, with the following letters representing: Month, month, day, hour, minute, year, year, and second
View calendar)
View calendar: cal 5 2016 // view calendar of May 2016
View calendar: cal 2016 // view the calendar for the entire year of 2016
USER environment variable:/home/user/. bash_profile
System e
need to design and program them separately.The server side is relatively simple, mainly including adding files to be uploaded, listening to customers, and transferring files. The resumable upload functions and file management are all stored on the client.
I. Server Side
First, we will introduce the server:At the beginning, we need to define a simple protocol, that is, a language that the server and client can understand. In order to simplify the problem, I only need to let the server understand
new class, and the class being represented should also be a new classThe descriptor must be defined as a class property of this class and cannot be defined in a constructorThree to strictly follow this priority, priority from high to the end is1. Class Properties2. Data descriptors3. Instance Properties4. Non-data descriptors5. Property not found triggering __getattr__ ()Six again See propertyThe nature of a static property is to implement the Get,set,delete three methodsClass Foo: @property
output of this example:Constructor with argument //Cexample aaa (2), constructor with argument //cexample BBB (3); Assignment operatorAnalysis: There is nothing special about the first and the second, which is the normal constructor. The third and fourth why the results are different:The reason is that the BBB object has already been instantiated and does not need to be constructed, at this point only the
. PHP 1. Php.bak Copy a file (plus -i parameter if 1.php.bak exists then ask if the overlay test is not added -I will also ask whether to overwrite)CP a copy a catalog errorCP -r A copy directory must add -r parameterMove a file or directory (or rename)Mv1. PHP Test/1. PHP moves 1.php to the test directoryMv1. PHP Test/2. PHP moves 1.php to the test directory and renames to 2.phpMv-I1. PHP Test/2. php (Parameter-i) move the 1.php to the test directory and rename it to 2.php but if there is a dup
Problem descriptionAfter a lock is added to a non-final object using synchronized, the value (state) of the object is changed in the synchronized body (synchronous code block), which causes the thread to be unsafe, that is, the other thread gets the lock of the object after the change, thus entering the synchronization code block.Scene design Public classTestlockextendsthread{PrivateAAA AAA; PublicTestlock (AAA
: js>/(\ 2 (a) {2 }/. exec ("aaa ")??? Before answering this question, let's take a look at the performance in other languages. similarly, in other languages, this write is basically invalid: $ echo aaa | grep '(\ 2 (a) {2} 'grep: invalid back reference $ echo aaa | sed-R'/(\ 2 (a) {2}/'sed:-e expression #1, character 12: invalid Back Reference $ echo
As you know, mailto is a very practical html Tag in web design and production. Many friends who have personal webpages like to write their own email addresses in the conspicuous position of the website, in this way, once a web browser clicks a super connection consisting of mailto, It can automatically open the default email client software in the current computer system, such as OutLook Express and Foxmail. Of course, the use of mailto labels is not just as simple as described above, but also h
Compared with the general views, the general views and materialized views of Oracle differ from the general views in that the materialized views manage stored data and occupy the physical space of the database. The results of the materialized view are stored in a common data table. When querying the materialized view, the basic table for creating the materialized view is no longer queried, instead, you can directly query the results table corresponding to the materialized view and update the dat
server and customer models, we need to design and program them separately.The server side is relatively simple. It is mainly used to upload files, listen to customers, and transfer files. The resumable upload functions and file management are all stored on the client.First, introduce the server:At the beginning, we need to define a simple protocol, that is, a language that the server and client can understand. In order to simplify the problem, I only need to let the server understand two senten
Selector performance Competition
Three efficiency optimization policies for selector are introduced:1. the rightmost self-selection tool is accurate to reduce the number of sea selections.". AAA" is optimized to "input. AAA" ----- Hai Xuan *. AAA is converted to Hai Xuan input. AAA". CTN.
how to call the module. Require has two parameters: the first is a string, indicating the module to be called, and the second is the callback function. For example, if I want to call the AAA. js file, and AAA. js and Mass. js are in the same directory, call this method.
$.require("./aaa", function(){ });
Of course you can. The suffix of ". js" is not required.
The RADIUS authentication server (RemoteAuthenticationDialInUserService) is currently the most widely used AAA protocol (AAAauthentication, Authorization, and Accounting ). A typical operation of the AAA protocol is to verify that the User name and password are valid (Remote Authentication Dial In User Service, Remote User dialing Authentication system) it is currently the most widely used
Namenode to upload the second block server again. (Repeat 3-7 steps)4.3. HDFs read Data Flow1) The client requests to Namenode to download the file, Namenode by querying the metadata to find the Datanode address where the file block resides.2) Select a Datanode (nearest principle, then random) server, request to read the data.3) Datanode begins transmitting data to the client (reads data from the disk into the stream and checks it in packet).4) The client is received in packet, first cached loc
// DWR script-driven JS, which must be written // This is a toolkit and can be left empty
In fact, we call AAA. bbb ([parameter], callBack); that is, we do the following:(The red text below is packaged and not on the front-end, so even if you haven't created html or jsp to call it, you can also use localhost: 8080/project name/dwr to see your exposed java class for testing)Function AAA (){};
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.