I encountered this problem today, found a solution, and recorded it to help children who need it.
Steps:
1. Create a folder in the local directory. (Or use a ready-made folder)
2. Set the data space of the VM, for example:
Data Space Location: select the created folder. Then confirm.
3. Start the VM. Wait for ing.
4. Open the computer of the VM and add the ing network drive, for example:
Note: share is the folder created previously.
5. Y
network request begins, and the network request is divided into three steps 1. Create a nsurl based on a URL that has been compiledNSURL *url =[NSURL URLWithString:strEncode];2. Send a request to the original code: NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];3. Return the data we want, a NSData objectThree parameters: The first parameter is the request that was just created, the second is a response that is returned, and the third is the error messageOriginal code
Turn on the Mac terminalAssume that the remote VPS command is connected via SSH.SSH [email protected]194.10. 10.23(Description: 92322 means port number, the general VPS port number is 22 by default)Then the command to copy the local file to the terminal is as followsScp-p92322/home/admin/a.log [email protected]194.10. 10.23:/opt/wwwSpecial Note: This place-p92322 letter must be capitalized yo(Note: Copy the A.log file to the server/opt/www directory)M
Linux interacts directly with the local computer, and the command line uploads and downloads files.One, Lrzsz command line installation:1, RPM Installation:(link: http://pan.baidu.com/s/1cBuTm2 password: VIJF)RPM-IVH lrzsz-0.12. -22.1. x86_64.rpm2. Yum Installation:Yum Install LrzszSecond, the command uses:1. Send to Local:SZ file name2. Upload to server:rz-beSelect the file in the pop-up box, the user and group that uploaded the file are the currentl
JQuery Ajax reads local JSON filesJSON file{ " first":[ {"name":"Zhang San","Sex":"male"}, {"name":"John Doe","Sex":"male"}, {"name":"Wang Wu","Sex":"male"}, {"name":"li Mei","Sex":"female"} ]}Js $.ajax ({url: "ceshi.json", // json file location type: "GET", // Request method is get dataType: "json", // Return Data format is JSON success: function (data) {// The method to execute after the request has complete
Add a point before the path name to display normally
But can not be all the path of the project to add, ask God to solve it????
Reply to discussion (solution)
What is the URL you are visiting?
HTTP://LOCALHOST/PIG.VIFNN.COM-5.2-NEW/PIG.VIFNN.COM-5.2/, is the project downloaded from the server, the local run page load is wrong, in all the path before the point is solved but always can not add a dot,
There is a requirement that HTTP gets to the byte array of the zip file and needs to be converted to a local zip or unzip a zip file.
1. Class to use
Import Java.io.FileOutputStream;
Import Java.util.zip.ZipEntry;
Import Java.util.zip.ZipInputStream;
Import Java.util.zip.ZipOutputStream;
Import Java.io.ByteArrayInputStream;
2 Get the extracted files
private static void Gettxtfile (byte[] data) throws E
). FileExists (server. MapPath (filespec)) ThenIsexists = TrueElseIsexists = FalseEnd IfEnd Function
'*****************************************************************' Function (private)' Role: Using the FSO to detect whether a folder exists, exists to return true, does not exist returns false' Parameters: folder (folders location)'*****************************************************************Private Function Isfolder (ByRef Folder)If FSO. FolderExists (server. MapPath (Folder)) ThenIsfolde
The local server does not have the Orcale database and client installed, and Plsql is not installed. Therefore the imp command of CMD cannot be used.
Install the Orcale client locally, install, configure path, and then import the DMP file with the IMP command after installation.
Install Instantclient_11_2, and unzip OK;
Install Plsql,, unzip the direct punch card Plsqldev.exe, the interface is English, can be changed to Chinese. Confi
WinForm accessing local SQL Server database files1. Add the config configuration to the project as follows:Configuration> connectionStrings> Addname= "ConnStr"connectionString= "Data source=.; attachdbfilename=| Datadirectory|test1.mdf; User Id=user1; password=123456; Connect timeout=30 "ProviderName= "System.Data.SqlClient"/> connectionStrings>Configuration>2. Replace the file path in the configuration file by adding the following code in the ma
An object provided in the HTML5 standard for file input and output (I/O)File: represents a Document objectFileList: represents a list of files, class array objectsFileReader for extracting content from filesFileWrite is used to write a class tolerance to a file.These objects need to be accessed and retrieved through E.datatransfer in the H5 drag eventThe complete results are a
1. Ubuntu Remote LoginFirst of all your Ubuntu to be able to support SSH, if not, self-Baidu!Open Terminal, enterSSH [email protected] (the IP address of your server)The Enter will let you input the server password, enter the password to log in2. Uploading files to the serverCommandScp-r file to upload [email protected] (server IP address):/home/byer/Enter the password toUbuntu uses SSH to telnet to the server and upload
list of filelist, fileslist a Type property, returns the file types4 Methods:? SetData (): Set Data key and value (must be a string)? GetData (): Gets the data, based on the key value, gets the corresponding value? ClearData (): Clears the data stored by the DataTransfer objectSetdragimage (Imageurl,log X,long y): Set the drag-and-drop icon with the IMG element var dt=e.datatransfer; // the DataTransfer property as a drag-and-drop event dt.effectallowed= ' Copy '; // set cursor style D
Os.path.basename (PATH): Return file name
Os.path.dirname (PATH): Return file path
Os.remove (dir) #dir为要删除的文件夹或者文件路径
Os.rmdir (Path) #path要删除的目录的路径. It should be explained that the directory deleted using Os.rmdir must be an empty directory, or the function will fail.
Os.path.getmtime (name) # Gets the file modification time
Os.stat (path). st_mtime# Gets the modified time of the file
Os.stat (path). St_ctime #获取文件修改时间
Os.path.getctime (name) #获取文件的创建时间
Method OneI
Use the simplest steps to back up the SQL database files to the Local:
Response. Charset = "Utf-8"
Session.CodePage = 65001
Response.buffer=true
Response.Clear
' Modify user name and password according to your situation
Constr= "Provider=SQLOLEDB.1; Persist Security info=true; User Id=endiva; Password=endiva;data source=211.160.78.6 "
Set Conn=server.createobject ("Adodb.connection")
Conn.Open Const
Many people use the simple SSH connection tool, and sometimes it is convenient to copy files to the local view under SSH, which uses the SCP command.
SCP is a security file copy, based on SSH login, easier to operate.
For example, to copy the current file to another host on the remote, you can command the following.
scp/home/example.tar.gz Root@remote Host Ip:/home/root
If you want to reverse the operat
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.