[Code Note] iOS-generate random number, note ios-Random Number
I. Code.
-(Void) viewDidLoad {[super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. NSLog (@ "-- generate a random number --- % @", [self getOrderNumber]);} // generate a random number-(NSString *) getOrderNumber {int random = arc4random () % 10000; return [NSString stringWithFormat: @ "% d", random];}
Think In java Note 1, thinkinjava note
I have to read this book since today. I have never read it carefully before. It's time to change myself;
I don't think I can't write code, but I don't have the idea. I don't have the architecture. I want to be a great idea. I don't want to write much code, but I want to be able to make a good architecture. The code is easy to write and the architecture is hard to do;
[Code Note] iOS-the height of the screen automatically varies according to the keyboard, and the height of the Code note ios-height
I ,.
Ii. Code.
ViewController. h
#import
ViewController. m
# Import "ViewController. h "# define W [UIScreen mainScreen]. bounds. size. width # define H [UIScreen mainScreen]. bounds. size. height @ interface ViewController () @ end @ implementation ViewController-(void) vie
[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 (7): Code note
1.
Quickly change weblogic Data source: Close weblogic, under domain, find config \ jdbc \ xxx-jdbc.xml to modify2.
Flashing: (implemented using setInterval)
Var msecs = 500; // intervalID = setInterval ("shine ()", msecs); function shine () {} clearInterval (intervalID); // stop flashing
3.
Dblink usage:
Create a public database link
Create public database link "database link
MySQL study note _ 2_MySQL create a data table (on) and study note _ 2_mysqlCreate a data table (on) in MySQL)
I. Create an SQL statement model for a data table [weak type]
CREATETABLE [if not exists] Table Name (
Type of field name 1 column [attribute] [Index],
Type of field name 2 column [attribute] [Index],
...
Type of field name n column [attribute] [Index],
) [Table attributes] [Table character set];
[Code Note] plist obtains the city list and code note plist City
1. Engineering Drawing.
Ii. Code.
-(Void) viewDidLoad {[super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. NSString * cityPlistPath = [[NSBundle mainBundle] pathForResource: @ "cities" ofType: @ "plist"]; // sort by spelling, spell is an English spelling of NSSortDescriptor * bySpell = [NSSortDesc
[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
HTML study note 2 (Back to Top and back to bottom), study note back to top
Back to Top back to bottom
Two methods to return to the topI. Use js
$ ('Html, body '). animate ({scrollTop: 0}, 'save'); // $ ('html, body') with animation '). scrollTop (0); // No animation
$(window).scroll(function () { //You've scrolled this much: $('p').text("You've scrolled " + $(window).scrollTop()
Learning Note 3 (get the version number), Learning note version number
Because the old version is still in use, the old version of jssdk is different from the new version, you need to determine that the version uses different js APIs
I checked it online. There are two methods to determine a better version:
1. js-based judgment
Var wechatInfo = navigator. userAgent. match (/MicroMessenger \/([\ d \.]
Switch, route and firewall note (3), route note
Name, clock, and IP address of the pick-up
Enter system view, return user view with Ctrl + Z.
[Huawei] sysname myhaspl
[Huawei] quit
Enter system view, return user view with Ctrl + Z.
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.
navigation is displayed, including 4 properties and 6 methods:
Property:
$tree _type, $db _fields, $max _pages, $has _children
Method:
START_LVL: This method is executed when the Walker class reaches the top of the structure and can be used to output the start element
END_LVL: Turn off element labels for START_LVL output
Start_el: Output a start tag for each element
End_el: Turn off the Start_el label
(CORE) Display_element: Defines how to display elements in a tree structure
(core) walk each e
Hibernate Note 2, hibernate note
1. Persistence1. Persistence ID OIDThe database is called a primary key, and the ID attribute of the corresponding object is OID. Hibernate uses OID to identify whether two objects are the same object. OID generation is generally automatically processed by the program;2. Persistence classConcept: persistence is an entity class that can operate databases;Persistence class = O
Work Week note, work week note table
R D work is on track
1. The order process is designed. This week, the entire order process is completed. The details are discussed in detail. In addition, the complex top-level permission accounts are subdivided and the permissions are segmented.
Design database models and generate database tables
2. coding: the code still needs to be written. There is nothing to sa
Work Week note, work week note table
--|... This week, I had a seven-day class.
1. After the team is set up, although it is not a very large team, some people can do things and make full use of 8 hours every day. Mutual Help can be used as a strong team to support the company.
The team doesn't need to go to work every day to get a card, do it when there is a task, and access the Internet when there is no ta
Python note-1, python note
OS module Description: the python OS module contains common operating system functions.
OS. access (path, mode) # verify the permission modeOS. chdir (path) # change the current working directoryOS. chflags (path, flags) # set the path tag as a number tag.OS. chmod (path, mode) # Change permissionsOS. chown (path, uid, gid) # change the file ownerOS. chroot (path) # change the roo
Note: The transaction (process ID 56) and another process are deadlocked. | the communication buffer zone resource has been selected as the deadlock victim ., Note as dead
An exception occurred during SQL concurrent UPDATE today: (the Code is as follows)
// Parallel class can generate concurrent operations (that is, multithreading) Parallel. forEach (topics, topic =>{// DBHelper is an encapsulated databas
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.