Linux FreeBSD, its du command specifies the depth of the directory layer is more simplified than Linux, the-D.Here is the code snippet:[Email protected] yayu]# du-h--max-depth=1 work/testing27M Work/testing/logs35M work/testing[Email protected] yayu]# du-h--max-depth=1 work/testing/*8.0K work/testing/func.php27M Work/testing/logs8.1M Work/testing/nohup.out8.0K work/testing/testing_c.php12K work/testing/testing_func_reg.php8.0K work/testing/testing_get.php8.0K work/testing/testing_g.php8.0K work
the position of the cursor to the first character of the article, to uppercase sometimes with vim, and then accidentally pressed a command, but did not find himself, and then has been the pit, NginxProxy_set_header X-real-ip $remote _addr;Proxy_set_header x-forwarded-for $proxy _add_x_forwarded_for;Proxy_set_header host $host;Proxy_set_header X-nginx-proxy true;This piece all turned to lowercase do not know, and then the cache does not work, Nginx did not error , every request to access the ser
To do the project, encountered a very tangled problem, is to get the two value comparison, but there is a single number than the two-digit large case.At first, I thought it was wrong to write, checked several times, with IE tune down, realize that it should be the wrong comparison method. Just think of the past has also encountered this situation, the reason is that JS default comparison string, first compare two first characters, the same and then compare the second one, and so on.Therefore, fo
Using function templates to implement different types of two number comparison size # include "C + +" uses a function template to implement different types of two-number comparison sizes
PS How to add a tree of different sizes in a photo
Today to introduce how to use PS in the screen to add a tree, I hope everyone analogy, to their own help, inspiration.
Before effect:
After effect:
Steps
1, open to modify the picture, I take the scenery map as an example
2, select the Pen tool, with a pen to pull out a tree to create a pen path as shown, simple to dig out the general shape can be
To detect the size of a file in a specified directory, just traverse the directory and then summarize the files, and here's a Python test. A script that detects all directory sizes under a specified path
Example
code is as follows
nbs P;
Import Os,sys from Os.path import getsize def lsdir (Roo Tdir): list_dirs = Os.walk (rootdir) size = 0L for RO Ot,dirs,files in List_dirs: to name in Files: nbsp; size =
If you have been a friend of that kind of portal, you must know that a picture may be displayed in different places, sizes and proportions.
If only using a picture, then will certainly deformation, and in the display of small map, link large map, and too wasteful ... Using thumbnails to deal with is not perfect, because the proportions of each place may not be the same size, for example!
Please see the picture.In this place, in fact the tune out i
This article mainly introduces Python to download files from the network and get file size and type of methods, involving Python operation network files related skills, need friends can refer to the
This article describes how Python implements downloading files from the network and getting file sizes and types. Share to everyone for your reference. The implementation methods are as follows:
?
1 2 3 4 5 6 7 8 9 10 11
Import urllib2 f
If you have been a friend of that kind of portal, you must know that a picture may be displayed in different places, sizes and proportions.If only using a picture, then will certainly deformation, and in the display of small map, link large map, and too wasteful ... Using thumbnails to deal with is not perfect, because the proportions of each place may not be the same size, for example!
Please see the picture.In this place, in fact the tune out is a
distributes blocks evenly between file links and multiple links. A file with two or more links is counted only once, depending on the default value.
-L
If a symbolic link is specified on the command line or a symbolic link is encountered more than once in the traversal of a file hierarchy, the du command should count the size of the file or file hierarchy referenced by the link.
-M
calculates the number of blocks in megabytes, rather than the default
Use different sizes of hard drives to mirror with Disksuite
Hardware platform: Fujitsu PP400 2*SPARC64GP (Basic and Sun E450 (Sparc III) compatible)
Software: Sun Solaris 8 (no difference)
Reason: PP400 on the original Fujitsu hard disk in less than two years, the manufacturer of the original specifications of the hard disk has been discontinued (33.6g/ultra 160/LVD interface/hot plug), due to the insurance to buy the specification (manufacturer's
Label:CREATE TABLE #Data (name varchar), row varchar (+), reserved varchar (+), Data varchar (+), index_size varchar (100) , unused varchar (100))DECLARE @name varchar (100)DECLARE cur cursor FORSelect name from sysobjects where xtype= ' u ' ORDER by nameOpen curFETCH NEXT from cur to @nameWhile @ @fetch_status =0BeginINSERT INTO #dataEXEC sp_spaceused @namePrint @nameFETCH NEXT from cur to @nameEndClose curDeallocate curCREATE TABLE #DataNew (name varchar, row int,reserved int,data int,index_si
--Main principle:EXEC sp_spaceused ' table name '--get table occupy spaceEXEC sp_spaceused '--all the space in the repositoryCREATE TABLE #Data (name varchar), row varchar (+), reserved varchar (+), Data varchar (+), index_size varchar (100) , unused varchar (100))DECLARE @name varchar (100)DECLARE cur cursor FORSelect name from sysobjects where xtype= ' u ' ORDER by nameOpen curFETCH NEXT from cur to @nameWhile @ @fetch_status =0BeginINSERT INTO #dataEXEC sp_spaceused @namePrint @nameFETCH NEXT
Clipboard is a Clipboard. When we press Ctrl + C or click Copy in the menu, the selected object is stored in the Clipboard. If the selected object is a file, press Ctrl + V or click "Paste" after the drive letter. Then, the selected file is saved to the specified disk; if the selected object is an image, press Ctrl + V or click "Paste" to display the image, after
Guide
Many times, when you copy content to the Clipboard, you end up emptying the clipboard for a distraction caused by someone or something and can't find it back. If this happens, it's really annoying. So how do you put an end to this depressing situation? That's what we're going to answer in this article.
Here's a look at a few clipboard manage
Guide
Many times, you copy content to the Clipboard and eventually empty the clipboard because of a distraction caused by someone or something, and you can't find it back. If this happens, it's really annoying. So how do you put an end to this frustrating situation? That's the question we're going to answer in this article.
Here's a look at several clipb
Clipboard: Copy/paste text, HTML, picture, file
Introduced
Re-imagine the Windows 8 Store Apps's clipboard
Clipboard-Shearing Plate
Copy/paste Text
Copy/paste HTML
Copy/Paste Picture
Copy/paste File
Example
1. Demonstration of the basic application of shearing board
Clipboard/demo.xaml
10 best clipboard managers
Guide
Many times, after you copy the content to the clipboard, the clipboard is finally cleared due to the distraction caused by someone or something, and you cannot find it back. If this happens, it is really annoying. So, how do you put an end to this frustrating situation? This is the question we will answer in this arti
We learned about common common dialog boxes in this article to understand the use of the Clipboard, which is often used for copy-and-paste functions. The Clipboard is the first feature that Windows joins, and since it's very practical, we use it almost every day. With the Clipboard, we can pass data from one application to another, which is a simple interprocess
We learned about common common dialog boxes in this article to understand the use of the Clipboard, which is often used for copy-and-paste functions.The Clipboard is the first feature that Windows joins, and since it's very practical, we use it almost every day. With the Clipboard, we can pass data from one application to another, which is a simple interproces
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.