String path = new DirectoryInfo (".. /"). fullname;//the parent directory of the current application pathYou can use Appdomain.currentdomain.basedirectory to get the current directory.Gets the parent directory of the current directory
String path = new DirectoryInfo (".. /"). fullname;//the parent directory of the current application path
Get the current directory to use Appdomain.currentdomain.basedirectory.
Gets the parent directory Path.GetFullPath ("..") of the current
How to use Server.MapPathUsage:1.server.mappath ("/") where the application root is located, such as C:\Inetpub\wwwroot\2.server.mappath ("./") indicates the current directory of the page on which it is locatedNote: equivalent to Server.MapPath ("")
As we have always known, the Server.MapPath () property can get the root directory of the applicationHow to use Server.MapPathUsage:1.server.mappath ("/") where the application root is located, such as C:\Inetpub\wwwroot\2.server.mappath ("./")
Forward slash (/), also known as the left slash "/";The backslash "\".
What is the difference between a forward slash and a backslash? The following is a summary:
DOS path:C: \ windows \ setting .. this is the backslash followed by the file
Debug information for the print kernel PRINTK:The difference between printk and printf :the function of the PRINTK function is similar to the printf function, but the printk function runs the kernel space,PRINTK The function runs in user space. In
fso| function
The following is a few in ASP often applied to the FSO operation function, practical fine code, recommended collection!
' function: To determine whether the file name is legitimate' Isfilename [filename]' filename cannot contain any
Download and configure
The official address of the Nerdtree plugin is as follows, you can get the latest version https://github.com/scrooloose/nerdtree download ZIP installation package or use the following website source file installation method
My
No more nonsense. Directly above:
Operation Process:
1. Use command: Cd/etc/vim Enter configuration directory
2.sudo Vim VIMRC
3. The following lines are set according to your preference
-------------------------------------------------------------
The NERD Tree"Nerdtree-----------------------------"Map a specific key or shortcut to open NerdtreeMap :nerdtreetoggle"Open Nerdtree with the current file selectedNmap,t:nerdtreefind"Don;t Show these file typesLet Nerdtreeignore = [' \.pyc$ ', '
Through the tenth chapter, the debugging technology of embedded Linux driver development has been learned.Knowledge Learned:First, print kernel debug information: PRINTKthe PRINTK function is prototyped as follows:asmlinkage int PRINTK (const char *
If the ADDR address belongs to the address space of the Process, run the do_page_fault () command at the good_area flag:/** OK, we have a good vm_area for this memory access, so* We can handle it ..*/Good_area:Si_code = segv_accerr;Write = 0;Switch (
Print kernel debug information: PRINTKThe PRINTK function runs in kernel space, and the printf function runs in user space. The Linux kernel program can only output debug information using the PRINTK function.Prevent PRINTK function Lower Linux
Nerdtree All Versions:http://www.vim.org/scripts/script.php?script_id=1658My version of Vim[Email protected] nerd_tree-4.2]$ vim--versionvim-vi improved 7.4 (compiled Dec 17:06:34) Include D patches:1-207, 209-629The version I should download is
Download and configureThe official address of the Nerdtree plugin is as follows, and you can get the latest version from hereHttps://github.com/scrooloose/nerdtree Download Zip installation packageOr use the following official website source file
VIM InstallationCommand: sudo apt-get install vimConfiguration:Configure the VIM,/ETC/VIM/VIMRC file just fine, (I found a more powerful vim configuration file on the Internet, copied to the/ETC/VIM/VIMRC inside, the effect is good)Configuration
Switch workbench and Table of contents
CTRL + W + H cursor focus left tree directoryCTRL + W + L cursor focus right file display windowCTRL + W + W cursor automatically switch to left right windowCTRL + W + R to move the layout position of the
We have learned from the previous blog that it is best to map a memory area that stores the slab structure to a group of consecutive physical pages, this will make full use of the cache and get a lower average access time.
However, the above method
You have written a program, how to copy the source code to different directories on other machines, and whether the program cannot be compiled, it is likely that the path is wrong, it is much easier to use relative paths in Project Settings, and
Use the org.apache.tools.zip package in ant-1.8.4.jarto compress and decompress files. The following classes are used in the jar package:
Org.apache.tools.zip. zipentry;Org.apache.tools.zip. zipfile;Org.apache.tools.zip.
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.