2014.12.6 Zhou Kee

Source: Internet
Author: User

1. Connection can be established via URL and connection:
URL url = new URL ("http://172.16.2.125:8080/services/mm7/");
HttpURLConnection connection = (httpurlconnection) url.openconnection ();
Connection.setrequestproperty ("Content-type", "text/xml;charset=\" utf-8\ "");
......
Connection.connect ();
DataOutputStream out = new DataOutputStream (Connection.getoutputstream ());
......

2.MyEclipse servers can not be used normally, that is, the Web project cannot be published. An exception occurred with a null pointer, and this error was generated:
Atcom.genuitec.eclipse.ast.deploy.core.deployment.<init> (Unknown Source)
......
If the above error occurs, follow these 3 steps to resolve:
1). First close the MyEclipse workspace.
2). Then delete the space under the workspace
"/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.genuitec.eclipse.ast.deploy.core.prefs"
This file. Some deployment project information is stored in this file. There is no error in deleting the information for this deployed project.
3). Restart the boot MyEclipse to resolve.

You can use the: s command to replace a string in 3.vi/vim.
Example:
: s/vivian/sky/replaces the current line the first Vivian is sky
: S/vivian/sky/g replaces the current line all Vivian are sky
: N, $s/vivian/sky/replaces the first Vivian of each row in the nth row to the last row is sky
: N, $s/vivian/sky/g replace the nth line to the last row all Vivian are sky
N is a number, if N is., indicating the beginning of the current line to the last row
:%s/vivian/sky/(equivalent to: g/vivian/s//sky/) replaces the first Vivian of each line as Sky
:%s/vivian/sky/g (equivalent to: g/vivian/s//sky/g) replaces all Vivian in each row as Sky
You can use # as a delimiter, at which time the middle/not as a delimiter
: s#vivian/#sky/# Replace the current row the first vivian/is sky/
:%s+/oradata/apras/+/user01/apras1+ (use + to replace/):/oradata/apras/Replace with/user01/apras1/

4. If the mock stops when sending the message, a re-connect mechanism is required. Send a message during this period, and be careful not to lose it. Also, if the information is in the memory, you need to be aware that
Memory is too large to cause memory overflow.

Items on 5.SVN, if some of the configurations are imperfect. When you check out, you may be asked to create a new project, and then when you check out to overwrite your new project, you follow the steps to make it OK.

6.gvim shows the problem of garbled Chinese:
Because the default is GB encoding under Windows, and my vim default is Utf-8 (gedit default is also Utf-8), so open will be garbled. Modified the configuration file,
Make VI support GB encoding just fine. Add the following to the configuration file VIMRC:
Let &termencoding=&encoding
Set FILEENCODINGS=UTF-8,GBK
Then save the exit.

7.linux opens the file with the specified encoding: LANG=ZH_CN VI fileName

8. With 32-bit operating system support for up to 2 of the memory of 32 square, is 4G, of course, this is only theoretical value. In Windows 32-bit operating systems, the maximum is only recognized between 3.25-3.75,
Varies depending on the version of Windows. And the 64-bit operating system's addressing capacity is 2 of 64, that is, 17179869184G, of course, this is only theoretical value,
In fact, it is impossible to use such a large amount of memory, currently 64-bit Windows system support only 128G. The current mainstream motherboard can only be added to 16G.

9. Replace blank lines in the file with UltraEdit:
Use UltraEdit to open the file and select the Replace command for the Search menu. In the Replace dialog box, select the regular expression (E): ultraedit check box,
and enter in the lookup:%[^t]++^p, note that there are spaces before ^t.

2014.12.6 Zhou Kee

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.