list and other commands:Sudo chmod 644/usr/share/fonts/zh_cn/TrueTypeCD/usr/share/fonts/zh_cn/TrueType/Sudo mkfontscaleSudo mkfontdirSudo FC-Cache/usr/share/fonts/zh_cn/TrueType/
4Modify configuration fileSudo gedit/etc/fonts/CONF. d/69-language-selector-zh-cn.confLocate the row and add the yahei consolas hybrid in three places.For example:..........5. Restart XWindow and use CTRL + ALT + backspace. (to use this command, you must first select system> preferences> keyboard> layout option> check
[[NSUserDefaults standardUserDefaults] valueForKey: @ "SBFormattedPhoneNumber"]; get the IMEI # import "Message/NetworkController of the mobile phone. h "NetworkController * ntc = [[NetworkController sharedInstance] autorelmei]; NSString * imeistring = [ntc IMEI]; imeistring is the obtained IMEI. IMEI (International Mobile Equipment Identity) is the abbreviation of International Mobile device Identity code. It is an "electronic serial number" consisti
server address that receives the request.
Request. servervariables ["http_host"]Back to server address
Request. servervariables ["SERVER_NAME"]
Httpcontext. Current. Request. servervariables ["SERVER_NAME"]. tolower (); //. tolower ();
Domain Name: for example: www.baidu.com // can be used for multiple domain names for subwebsitesHost Name, DNS address, or IP address of the server
Request. servervariables ["request_method"]Request methods such as
C # has its own background control, which is simple and convenient to interact with the background, but sometimes it has to use HTML controls and how to interact with the background is a problem. For example, HTML gets background parameters and uploads to PHP for database operations. The following is a brief introduction to the JS call back function to get to the foreground parametersC # background code (Default.aspx.cs):1 Public string getparameter
Get Chinese garbled problem solution:
To modify the Conf/server.xml file under the Tomcat root, the code is as follows:
Copy Code code as follows:
connectiontimeout= "20000"
Redirectport= "8443"
Uriencoding= "UTF-8"
/>
However, using IE browser will find that the Chinese garbled problem still exists. We need to process the URL for the back desk request. The code is as follows:
JQuery ("#divID"). Empty (). Load (encodeURI (URL), {
There's a problem with writing the calendar control, using JavaScript to get the last month, there's no way to bring it back, it's too backward to write, it's tiring.
Date.getdayofmonth = function (y, Mm) {///
Date.getdateofnextmonth = function (dt) { ///
Suppose the current time is July 24, 2014 morning 12:00:00
//Output Result:
d.tolocalestring ()
"June 24, 2014 morning 12:00:00"
D2.tolocalestring ()
"December 28, 2013 morning 12:00:00"
(1), get the application package name code/*** Get the version number of the current application * *@return */ PrivateString getversion () {Try{Packagemanager Manager= Getpackagemanager ();//Get package Management ServicePackageInfo Clientinfo =Manager. Getpackageinfo (Getpackagename (),0);//get information abou
If you want to get the member attribute of an object, the member type is package-level private internal class, and the member is private, how can you get this member?
Ideas:
Suppose we want to study treemap, and we want to get the root of the treemap object.
First, treemap. Class.Getdeclaredclasses () to get all
Implementing this method requires importing some jar packagescan go to address download:http://pan.baidu.com/s/1hqrJF7m/*** Utility class to get server resources** Get method to transfer data** 1. Set the transmission mode via path* 2. Create client* 3. Get input stream* 4, read stream preparation work* 5, Read and write* @throws IOException* @throws clientprotoc
Ubuntu Solution: When executing sudo apt-get update or sudo apt-get install command is appearing "Apt-get 404 Not Found Package Repository" issue and "E : Some index files failed to download They have been ignored, or old ones used "issue
When you execute the sudo apt-get update command, if you encounter the following
In js, there is not a get function like in php to get the value from the js url. We must split it through split before processing, I have organized some examples to share with you.
Example
The Code is as follows:
Copy code
Var $ _ GET = (function (){Var url = too many Doc ument. location. href. toString ();Var u = url. split ("? ");If (typ
Js method to get the parameters passed by the get method, jsget
There are two ways: for example, the url is: http://h5.49you.com/reg.html? Sid = 1 a = 2 B = 3 c = 4
1. function GetQueryString (name ){
Var reg = new RegExp ("(^ | )" + name + "= ([^ ] *) ( | $)", "I ");Var r = window. location. search. substr (1). match (reg );If (r! = Null) return (r [2]); return null;}
Var sid = GetQueryString ("sid ");V
For URLs, we need to know more because we might need to extract some of the information from the URL to do something different, in fact it's a unique way of interacting with the backend, which is certainly safe when the request is returned, the information about the URL is recorded in the Window object's In a Location object, it is important that the result of the value does not change as the user manually modifies the characters in the Address bar. To understand this, let's start with the follo
This series of content, prepared according to the completion of the project as a baseline, step-by-step to the entire design and implementation process carding.Start with some basic environmental problems, comb clear about mobile devices and appnium. Because we need the device name and the boot Appnium instance and the corresponding port number when we build the Appnium connection later.First, access to mobile devicesTo get the native connected device
When we are designing web pages, we usually use the Get variable method in PHP to get the data from the form form, so that we can implement various Web page dynamic queries or requests. For a slightly HTML-based friend, you should know that there are two ways to submit the HTML form form is get and post, but for the novice small white, perhaps this knowledge poin
$ _ GET method cannot GET the url value. my code is like this.
Jq
$ ('# Add_user'). ajaxSubmit ({
Url: ThinkPHP ['module'] + '/User/add ',
Type: 'post ',
Success: function (data ){
Alert (data );
Var top = (screen. height-500)/2;
Var left = (screen. width-500)/2;
Window. open ("http: // localhost/yemian/Admin/Photo? Id = "+ data +" ", '000000', 'height = 111, width = 620, top = '+ top +', left = '+ left +
Last December, I wrote a Bing fun wallpaper, which was to get pictures of the Bing home page and save it on your local computer.In fact, the program exists a huge bug, access to the source of the problem caused only a date to get pictures.A new way to get the source code is developed today in the Bing homepage:1. This is the URL we will use:Http://cn.bing.com/HPI
PHP uses curl to get HTTPS request method, Phpcurl get HTTPS
This example describes how PHP uses curl to get HTTPS requests. Share to everyone for your reference. The specific analysis is as follows:
Doing a project today requires curl to get the third-party API, the other side's API is HTTPS mode.Before using curl to
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.