11:30Friday 08:00Saturday 07:40Sunday 10:00 # We only need a week, then the idea is to replace all the other words except the letters. # here,-C: Replace all characters except the letter with a newline character;-s: Removes extra newline characters. $ cat Test.txt|tr-cs "[a-z][a-z]" "\ n"MondayTuesdayWednesdayThursdayFridaySaturdaySunday Summary: where uppercase and lowercase letters are converted, deleting unwanted characters is more commonly used. TR syntax is simple and easy to use. # # # #
. An image can be likened to a DELETE statement that simply "eats up the meal in the bowl," while the drop TABLE statement "eats up the bowl and smashes the bowl." If we execute "DROP table T_person" Then the database system will report "data table T_person not present" when executing "SELECT * Fromt_person" again.The DELETE statement above deletes all the data in the table, so what if we just want to delete the data rows we specified? Like the UPDATE statement, the DELETE statement also provide
PHP Remove HTML tags--strip_tags and htmlspecialchars differences in detail font: [Increase decrease] Type: Reprint time: 2013-06-26 This article is to remove HTML tags in PHP and strip_ tags and htmlspecialchars the difference between a detailed analysis of the introduction, the need for a friend reference Strip_tagsRemove the HTML and PHP tags.Syntax: string strip_tags (String str);return value: StringFunction type: Data processingContent DescriptionThis function removes any HTML and PHP tag s
the best way to do it?I say so, of course the answer is not. Can be implemented via hack:style> . clearfix:after{Visibility:hidden;Display:block;font-size:0;Content: ".";Clear:both;height:0;}* HTML. Clearfix{zoom:1;}*:first-child + HTML. clearfix{zoom:1;}style> div class= "clearfix" style= "border:2px solid red;" > TEST divdiv> After reading the solution, let's look inside the principle:(1), the first is to use: After this pseudo-class to be compatible with FF,Chrome and other support standard
Tag: End file Open System pre else open dir current1PHP2 3 //recursively delete a directory4 $path= "d:/a";5 //call a recursive function6 $res= Diguirmdir ($path);7 //Output Results8 Var_dump($res);9 Ten functionDiguirmdir ($path){ One A //Open Directory handle - $handle=Opendir($path); - the //Readdir () reads entries from the directory handle - //Returns the file name of the next file in the directory. File names are returned in a sort orde
Install node. js first switch to root user installation Openssl-devel[Plain]View PlainCopy
Su-
Yum Install Openssl-devel
Download the source code yourself compile the tar.gz package in the following code is based on the node. JS official web version, for example, I am now the latest is 0.10.29[Plain]View PlainCopy
Cd/usr/local/src
wget http://nodejs.org/dist/v0.10.29/node-v0.10.29.tar.gz
Tar zxvf node-v0.10.29.tar.gz
CD node-v0.10.29
./configure
Mak
Windows 7 system c disk slimming, virtual memory removal, win7 virtual memory
When the computer is in use, disk C may occur. The size of disk C> the total size of disk C
The reason is that "Virtual Memory" is working.
Run powercfg-h off to disable System sleep and delete disk C hiberfil. sys (Sleep file)
Computer --> properties --> advanced system settings --> advanced (performance) --> Settings --> advanced --> change
Then remove the hook. Set t
Android-9.pngproduction and removal of black lines, android9.png black lines
Optional
1. First open the file shown in the android-> sdk-> tools Folder.
2. Drag the image to be set
3.create 9.png and save it by pressing ctrl + s.
At this time the 9.png image is with a black line, not beautiful, need to remove the black line used xUltimate-d9pc-x86, download link:
Https://yunpan.cn/cPit2vA6Aw3gQ access password 7863
Usage:
1. Copy the image
Python is used to find a column of duplicate data in an excel file and print the data after removal. pythonexcel
This example describes how to use python to find and print a column of duplicate data in an excel file. Share it with you for your reference. The specific analysis is as follows:
In python, I recommend using xlrd (especially read Operations) for simple excel read/write operations)
Import xlrd def open_excel (fileName = "simple.xls"): try
PHP Removal BOM Header code
UTF-8 BOM is also called UTF-8 signature, in fact, UTF-8 BOM to UFT-8 has no effect, is to support utf-16,utf-32 to add the Bom,bom signature means to tell the editor what encoding the current file, convenient editor identification, But although the BOM does not appear in the editor, it produces output, like a blank line.
If you modify any PHP file after it occurs:* Cannot log in or log out;* A blank appears at the top of
Public voidShow (view view) {Mydialog Mydialog=NewMydialog (mainactivity. This); Mydialog.show ();//you need to set the property, otherwise the size of the dialog does not work! must first show again set propertyWindowmanager.layoutparams params =Mydialog.getwindow (). GetAttributes (); Params.width= 600; Params.height= 300; View View1= View.inflate (Getapplicationcontext (), R.layout.dialogview,NULL);//set the properties of a locationWindow Dialogwindow =Mydialog.getwindow ();//windowmanager.la
0.apache below and index.php the same directory below. haccess rewriteengine on%{request_filename}-d %{request_ FILENAME}-F ^ (. *) $ index.php?s=/$1 [qsa,pt,l]The 1.centos configuration file is placed in:/etc/httpd/conf/httpd.confLoadModule Rewrite_module modules/mod_rewrite.soRemove the preceding "#" and add the previous sentence if it does not exist.2. If your site is the root directory: find Options followsymlinks allowoverride None Change the none above to all3. If your
Where to remove observer for Nsnotification?
Remove the Dealloc method to notify the viewer to bring crashThe crash risk exists when the notification message in the Nsnotificationcenter has been emitted, while the Watcher object Child thread is released, that is, the thread that throws the notification message and the thread that is freed by the Watcher object child thread is inconsistent. The reason is that nsnotificationcenter is not thread-safe.Workaround: Remove the notification as so
In the development in order to avoid the image because of the tensile distortion we will set the background image as a 9.png image, this blog describes how to set the image to 9.png1. First open the file shown in the Android->sdk->tools folder2. Drag the image you want to set up directly3.9.png production, Ctrl+s saveThis time 9.png picture is with black line, not beautiful, need to remove the black line used to xultimate-d9pc-x86, download link:Https://yunpan.cn/cPit2vA6Aw3gQ Access Password 78
Today learn codeigniter abbreviation CI first day, record learning experience.CI China Https://codeigniter.org.cn/user_guide/general/urls.html?highlight=url Here is an introductionExample. COM/class/function/ID
The first paragraph represents the controller class to invoke;
The second paragraph represents the function or method in the class to invoke;
The third and subsequent segments represent the parameters passed to the controller, such as an ID or any other variable;
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.