[Code Note] iOS-Get current time, code note ios-Get
I. Code.
-(Void) viewDidLoad {[super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. // obtain the current time [self currentTime];} # pragma-mark-functions // calculate the current time-(void) currentTime {// time format NSDateFormatter * dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setDateFormat:
[Code Note] iOS-Get current calendar time, note ios-Get calendar
I. Code.
-(Void) viewDidLoad {[super viewDidLoad]; // Do any additional setup after loading the view. NSLog (@ "------- getCurrentTime --- % @", [self getCurrentTime]);} # pragma-mark-obtain the current calendar time output format 15:41:55-(NSString *) getCurrentTime {NSDate * date = [NSDate date]; // The calendar is alendar * calendar = [[NSC
JSP simple exercise-EL get form data, jsp-el get form
Enter the user name and password:
Display the data in the received form:
The method for obtaining form data in JSP, listing and explaining for more than 2 minutes
First:There is an input box in the form tagThe backend uses String name = request. getParameter ("name"); to obtain the value of the input box.Second:Url-based value transfer methodGene
[Linux] apt-get source address summary, linuxapt-get summary
Modify the etc/apt/sources. list file
deb http://mirrors.163.com/ubuntu/ lucid main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ lucid-security main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ lucid-updates main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ lucid-proposed main restricted
width: window. Screen. availwidth -------------------
Technical PointsThis section uses the window attributes of the Document Object. The main functions and usage of these attributes are as follows.
To obtain the window size, different properties and methods are required for different browsers: to check the actual size of the window, use the window attribute in Netscape; in IE, you need to go deep into the document to check the body. In Dom, you need to pay attention to the size of the root el
$. Post () $. get () $. getJSON (),. post. get. getjson
HTML + JS Code
General Handler
Using System; using System. collections. generic; using System. linq; using System. web; namespace WebApplication1 {///
How to use Exception to get the information and Exception to get the informationPrivate static String getCrashMessage (Exception ex ){Writer writer = new StringWriter ();PrintWriter printWriter = new PrintWriter (writer );Ex. printStackTrace (printWriter );Throwable cause = ex. getCause ();While (cause! = Null ){Cause. printStackTrace (printWriter );Cause = cause. getCause ();}PrintWriter. close ();Return w
Importing packagesImport Java.io.BufferedInputStream;Import Java.io.FileInputStream;Import Java.io.InputStream;Import java.util.Properties;String Path = This . GetClass (). GetResource ("/"). GetPath ();InputStream in = New Bufferedinputstream (new FileInputStream (path+name));Properties p = New Properties ();P.load (in);through P.getproperty ("statistic") you can get the name of the file Statistic of the contentThe Propertys vision is:Statistic= us
Openssl_public_encrypt ()-encrypts data with public key
Openssl_public_decrypt ()-decrypts data with public key
Openssl_private_encrypt ()-encrypts data with private key
Openssl_private_decrypt ()-decrypts data with private key
Openssl
OpenSSL genrsa-des3-out Privkey.pem 2048
OpenSSL rsa-in privkey.pem-out Privkey.pem
OpenSSL rsa-in privkey.pem-pubout-out Public.key
https://github.com/flyfishsoft/codebase/blob/master/common/lib/rsa.php
The above describes the Phper-jacky's Blog |
jquery Gets the value that iOS can't get, while Android can
function ajaxform(){var id=$(".main_box ul li:last-child").find('.delete_btn').attr('field');alert(id);alert(isadmin);$.ajax({ type:'POST', url:"{:U('App/Friends/ajaxform')}", data:{"openid":openid,"id":id}, dataType:"json", global:false, success:function(data){ $.each(data[1],function(e,a){ isblack=a; }); }});
}
Reply content:
jquery Gets
Php get local IP address php get remote IP address
Php command to obtain the local IP address php command to obtain the remote IP address complete code:
//
Echo $ _ SERVER ['remote _ ADDR '];
// Local IP address
Function get_local_ip (){
$ Preg = "/\ A ([0-9]? [0-9]) | (1 [0-9] {2}) | (2 [0-4] [0-9]) | (25 [0-5]) \.) {3} ([0-9]? [0-9]) | (1 [0-9] {2}) | (2
How can we get this combination? The result attribute of the permutation and combination is displayed in red, yellow, and blue .... Nbsp; the size is large and small .... Nbsp; capacity: 1G, 2G, 3G, 5G... Nbsp ;......... Nbsp; how do I obtain the combination of attribute values? Get the permutation and combination results
Property: red, yellow, blue ....
Large, small ....
CAPACITY 1G, 2G, 3G, 5G...
....
This post was last edited by vic90 on 2013-06-06 16:55:13
browser PHP mysqlThis is my PHP code, I want to get the data table Z_register content, with IE browser can get to, but with Chrome, 360, FF and other browsers are not access to content, with
Chrome, 360, FF and other browsers run, run to mysql_fetch_array a sentence pops up, display login failure, how should you change ah?
$account =$_post["Account
Development environment: Xampp,mac,phpstormIn fact, the reason for this problem is that phpstorm, which is the default use of the internal server, the server uses 63342 port, and the internal problems of the server, causing the post method is abnormal, and if the project is placed in the Apache server working directory, Enter localhost in the Address bar, at which time the Apache server is used and the default port number is 80,apache server to run the program properly.Workaround:Step Two: Selec
How to Get and judge the keyboard buttons in js, and get the keyboard buttons in jsThis article mainly introduces how to obtain and judge the keyboard buttons in JavaScript. It involves the acquisition of JavaScript Keyboard Events and key value determination techniques and provides some reference values. For more information, see
This article describes how to obtain and judge the keyboard keys in js. We wi
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.