First, obtain the device model, SDK version, and system version of the device.
View plain
String device_model = build. model;// Device Model
String version_sdk = build. version. SDK;// Device SDK version
String version_release = build. version. release;// System version of the device
For example, a G3 in my hand.
Device Model: HTC hero
Device SDK version: 8
Device System Version: 2.2
From: http://blog.csdn.net/etzmi
underline \ W non-letter number on the basis of posix underline// Common functions: array preg_grep (string pattern, array input)Echo "$ W1 = array ("adad", "adad4", "asda", "1asf3", "sdfs ");$ Fl_array = preg_grep ("/^ \ D {1, }$/", $ w1); // emphasize {1 here,} Instead of {1.} in posix .}Print_r ($ fl_array );Echo "Echo preg_match ("/a/", "abc ");// Output 1Echo "// \ B indicates the word boundaryIf (preg_match ("/\ bweb \ B/I", "PHP is the web scripting language of choice .")){Print "A match
. let d1 = 000123let d2 = 00123.0012300let d3 = 1_2_3 // let d4 = _ 123 // Error
// 2.2 type conversion let e1 = 1let e2 = 0.12 // let e3 = e1 + e2 // error. Different types cannot be directly added. let e3 = Double (e1) + e2 // type conversion
The Type alias is equivalent to typedef in C.
// 2.3 type alias typealiastypealias XNInt = Intlet test: XNInt = 10
3. New operators
3.1 range operators, used in WWDC
// Range operator 3.1 ..
3.2 overflow operator. (New ones can be used to handle da
need to view the information of your own database, you can use nm to view the information, such as the functions in the database, global variables, and dependent items of other databases, the following is an example:
[Cpp]# Include Int g1;Int g2 = 0;Static int g3;Static int g4 = 0;Const int g5 = 0;Static const int g6 = 0;Int main (int argc, char * argv []){Static int st = 0;Int t1;Int t2 = 0;Const int t3 = 0;Printf ("printf-function ");Return 0;}Void
or online logsArchived log files archive logsAlert log files alarm logTrace files user_dump_dest user background_dump_dest Process
Redo log files
Query
>select * from v$logfile;
Status column: invalid this file is not accessible (New logfile does not exist or is added to this group) | stale content is incomplete | deleted is no longer used
>select * from v$log;
Status column: unused not written | current group, active | active is not the current group, active, it may have been ar
(path) data ={} File. foreach (path) do | line | na, no = line. split ('') s = Student. new (no, na) data [s] = 1 enddataenddef print_stu (data) puts "================================" print "name \ tnumber \ n "data. keys. each do | stu. printendputs "==============================" enddata = load_stu (" y.txt ") print_stu (data)
Eg4: enter four integers in a row to calculate the maximum number of public approx.
# Input four integers in a row to calculate the maximum common approx. def gcd (a,
: #print (line) Yield Lineg1=tail (' a.txt ') g2=grep (G1, ' Error ') G3=grep (G2, ' 404 ') For i in G3: print (i)Summarize:1. An iterator protocol means that an object must provide a next method that either returns the next item in the iteration, or causes a Stopiteration exception to terminate the iteration (only backward cannot go forward)2. An iterative object: An object that im
btn_calcel = NULL; string name [] = {"g1", "G2", "G3", "G4", "G5", "G6", "G7", "G8 ", "G9", "G10", "G11", "G12", "G13", "G14"}; arraylist
Okay. Let's see the running result.
I have selected three items: G2, G3, and G11. Now the screen slides to the bottom and the status is saved very well. textview displays three items selected. The select all, select inverse, and cancel selected functions are normal. Th
is "g", the result index carries the prefix "e"; if the format specifier is "g ", the index of the result is prefixed with "E ".Console. writeline ("(2.5). tostring ('G'):" + (250). tostring ("g", culinfo); // 250Console. writeline ("(2.5). tostring ('g1 '):" + (250). tostring ("g1", culinfo); // 3E + 02Console. writeline ("(2.5). tostring ('g2 '):" + (250). tostring ("G2", culinfo); // 2.5e + 02Console. writeline ("(2.5). tostring ('g3 '):" + (250).
programs that produce child processes using fork/vfork.Set-follow-fork-mode Parent continues to debug the parental process after fork/vforkSet-follow-fork-mode Child continues to debug the subprocess after Fork/vfork(GDB) Set Follow-fork-mode child(GDB) Break child process line number2. Attach (gdb debugging a process, using attach another process PID, debugging another process, after debugging, detach release another process, continue to debug this process)The attach command can be bound to an
total number of previous levels (that is, the total number of content at this level)
2-level settings after the effect of the Drop-down:
Level Three, 3 drop-down menu
Level 3 and Level 2 are exactly the same.
1. Add the formulas in columns C and D respectively. (Copy Level 2 formula down)
C8 formula: =match (b8,a:a,0)-1
D8 formula: =countif (A:A,B8)
2, in the following columns A and B to set three levels of the corresponding details. Column A is the up
-int_tmain (intARGC, _tchar* argv[]) {actionint> ac; AC + = F1; AC + = F2; AC + = F3; Ac4); AC-= F1; Ac5); actionint,int> cal; Cal + = G1; Cal + = G2; Cal + = G3; Cal -, -); Cal-= G3; Cal -, -); funcint> Fu; Fu + = F1; Fu + = F2; Fu + = F3; vectorint> v = Fu (); for(inti =0; I cout"'; }cout for(inti =0; I cout"'; }coutreturn 0;}Running results consistent with expectation
) * (condition 3) * ... (condition N))
Function: Count the number of records that meet condition 1, condition 2 to condition n at the same time.
Example: =sumproduct ((a2:a10= "Male") * (b2:b10= "intermediate title"), Formula explanation: Statistics sex is male and the title is the number of employees with intermediate title
B, using sumproduct to sum up multiple conditions
Syntax: =sumproduct (condition 1) * (Condition 2) * (condition 3) * ... (condition N) * a region)
Effects: Summarizes
polarization);
12, the condition sum: =sumif (b2:b56, "male", k2:k56)--Suppose B column holds student's sex, k column holds student's score, then this function returns the result to indicate that the class boy's achievement's sum;
13. Multiple conditions sum: {=sum (if (c3:c322= "male", if (g3:g322=1,1,0))}--assumes C column (c3:c322 area) holds student's sex, g column (g3:g322 area) holds student's clas
of cells in the g2:g1001 area that are larger than the rank, and then add 1 to get the value of the cell. The operation has a few duplicates, but the number greater than it is fixed, so the rank of the duplicate data is the same. Like the rank function, the function can do this regardless of whether it has been sorted by total score.
Using the IF statement plus the Count function
This operation differs from either of these methods, and the total score must first be sorted in descending order.
Second, redo log filesRedo log files redo logs or online logsArchived Log Files Archive logsAlert Log Files Alert logsTrace files user_dump_dest User Background_dump_dest process
Redo log Files
Inquire
>select * from V$logfile;
Status column: Invalid The file is inaccessible (a new logfile that does not exist or is added to the group) |stale content is not fully |deleted no longer used
>select * from V$log;
Status column: Unused not written 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.