Code note (8): Code note
1.
Find the deadlock process:
Select s.username,I.OBJECT_ID,I.SESSION_ID,s.SERIAL#,I.ORACLE_USERNAME,I.OS_USER_NAME,I.PROCESS FROM V$LOCKED_OBJECT I,V$SESSION S WHERE I.SESSION_ID=S.SID;
Kill the deadlock process:
Alter system kill session 'sid. serial # '; (sid = I. session_id)
If the problem persists,
Select pro.spid from V$SESSION SES,V$PROCESS PRO WHERE SES.SID=xx and ses.
Note for mobile wap page development and wap page note
I accidentally developed a mobile wap page and noted down some new things.
1. The page should be marked as a mobile wap page, which can increase the recognition of wap pages by Baidu and other tools.
Example:
At the same time, marking "Apple *" at
Example:
2. Set viewport. Meta viewport label usage instructions (mobile browser scaling Control)
Widt
[Code Note] Flat pie chart and code note plane
I ,.
2. Engineering Drawing.
3. Code.
RootViewController. m
-(Void) viewDidLoad {[super viewDidLoad]; // Do any additional setup after loading the view. self. title = @ "flat pie chart"; // hide the navigation bar self. navigationController. navigationBarHidden = YES; CLMView * cv = [[CLMView alloc] initWithFrame: CGRectMake (0, 0,320,440)]; cv. titleA
[Code Note] three pictures on the homepage change and three on the homepage of the Code note
I ,.
2. Engineering Drawing.
3. Code.
RootViewController. h
#import
RootViewController. m
-(Void) viewDidLoad {[super viewDidLoad]; // Do any additional setup after loading the view. // initialize the background image [self initBackgroundView];} # pragma-mark-funcitons-(void) initBackgroundView {// view1
[Code Note] mobile phone number verification, note mobile phone number verification
Code:
-(Void) viewDidLoad {[super viewDidLoad]; // Do any additional setup after loading the view. // The output value 1 or 0.1 is YES, and 0 is NO NSLog (@ "-------- % I --", [self validateMobile: @ "1393241"]);} # pragma-mark-verify the mobile phone number // verify the mobile phone number-(BOOL) validateMobile :( NSString
[Code Note] font jitter animation and note jitter Animation
I ,.
Ii. Code.
ViewController. m
# Import "ViewController. h "@ interface ViewController () @ end @ implementation ViewController-(void) viewDidLoad {[super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. UIButton * button = [UIButton buttonWithType: UIButtonTypeRoundedRect]; button. frame = CGRectMake (10,10
Linux Command 1 (learning Note 3) and linux Command learning note
Cainiao records.1. Change the Host Name
The new hostname ln0491 changes the host name to ln0491 and then logs on to the new host name.2. Create and delete folders
For example: create a data folder mkdir datals in the current path to view and delete the empty directory rmdir directory name rmdir data create a folder in the root directory/datam
[Code Note] iOS-computing time difference, note ios-Time Difference
I. Code.
-(Void) viewDidLoad {[super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. // time format: 18:34:31 NSLog (@ "% ld", [self getTimeInterval: @ "00:00:00"]);} // calculate the time difference-(NSInteger) getTimeInterval :( NSString *) sendDateString {NSInteger minute; if (sendDateString = nil |
[Code Note] iOS-mobile phone system version, code note ios-version
I. Code.
-(Void) viewDidLoad {[super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. // mobile phone system version NSString * phoneVersion = [[UIDevice currentDevice] systemVersion]; NSLog (@ "-- mobile phone system version -- % @ -----", phoneVersion ); // mobile phone model NSDictionary * infoDicti
Js object-oriented learning note (cookie used with get parameters of url), Learning note cookie1. Use of cookies
2. get the get parameter of the url address
[Code Note] Get the date of the current week, the date of the Code note
I. Code.
-(Void) viewDidLoad {[super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. NSLog (@ "current week: % @", [self getWeekFromLocal]);} # pragma-mark-functions // obtain the date of the current week. format: wednesday-(NSString *) getWeekFromLocal {NSDate * senddate = [NSDate date]; NSDateF
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.