After you complete a task, you can retrieve the total list and select a new task based on the following three factors:① How much time can you use? If you only have 10 ~ 15 minutes later, it was too late to start a project. It may be more appropriate to return three phone calls or two emails.② How is your energy? Is it the most energetic period or the lowest one? If you are still awake, a "vegetarian" job is the best choice. If you feel tired, email return may be the best choice.③ During this per
= Uiedgeinsetsmake (0, 100, 0, 0);7. How to click Self.view to let the keyboard, need to add a tapgestures?-(void) Touchesbegan: (Nsset ) touches withevent: (uievent ) event {[Self.view endediting:yes]; }8. How to set the default background image for each viewcontroller? Use the base class Ah, juvenile.9. Want to change in the code to add the Layoutattributes in the Xib, but how to use the code to find?Pull the button like pull your restraint, Nslayoutattribute also can pull the line. 10. How t
mode UI flag that's all there is, and there's nothing to explain, if you need to implement immersive mode, just copy the code from the previous line. It is important to note that the immersive mode is supported only on Android 4.4 and above, so it is also added if judged.In addition, in order to make our interface look more like a game, here I set the mainactivity as a horizontal screen mode:activity android:name=".MainActivity" android:screenOrientation="landscape"> ...activity>Th
First, the installation of Gulp1. First make sure that you have the node. JS environment installed and then install the Gulp in a global mannerGlobal Installation Gulp---"" NPM install-g Gulp2, after the global installation, switch to the Gulp project in a separate installation, the directory switch to the Gulp projectLocal Area Installation Gulp---"" NPM Install Gulp3, installation dependencies, that is, in the installation of the gulp written into the project Package.json file dependenciesNPM
To explain the functionality of the Easyexplore plugin, Easyexplore is a Windows Explorer-like Eclipse plugin that helps you quickly navigate the local file system without exiting Eclipse.In particular, you can see the picture:A few days ago the project team to a batch of new employees, in the configuration development environment, found that some employees can install Easyexplore plug-ins, and some installation is invalid. The analysis found that some employees use eclipse is downloaded from th
; Representative Directory light blue-----> for linked files Gray----> represents some other file 3. Common parameters: -a,–all lists all files under the directory, including the. The implied file at the beginning-A with-a, but does not list "." (represents the current directory) and ".." (Represents the parent directory of the current directory). -C Mate-lt: Sort and display CTime according to CTime (time of last change of file status) Mate-L: Show CTime but sort by name otherwise: Sort by C
When you need to automatically answer the ' yes ' or ' no ' options in your script, you can invoke the Yes gadget with the following syntax:such as (for each query raised during the execution of a command behind a pipeline, send a custom content no past):Yes No | Cp-i testfile/tmpis equivalent to:Cp-n testfile/tmpFor tools that do not provide built-in options like CP, you can use the Yes tool to automatically answer any desired content.Supplements: Shell Tri
, you can directly upload download files, without sftp or other upload download tools. This is very handy for downloading and uploading small files, such as editing a configuration file. VPS installed Inside: apt-get Install LrzszThen set:Usage:SSH Inputsz file nameYou can download the files inside the VPS to local. SSH InputRZwill jump out of the window to let you choose the uploaded file, and then upload. 10, window transparent and right mouse button pasteRight-click to copy Local Clipboard co
first, you may not feel the need to use the ELSE clause in a try/except block. After all, in the code snippet below, only Dangerous_call () does not throw an exception, After_call () will execute, right?1 Try : 2 dangerous_call ()3 after_call ()4except oserror: 5 log ('oserror ... ')However, After_call () should not be placed in a try block. For clarity, the try block should include only the statements that throw the expected exception. Therefore, it is better to write to the follo
logging.Press CTRL + A again, the lower left corner of the screen will prompt logfile "screenlog.0" closed., stop logging.There is a drawback to the above two methods: When creating multiple screen sessions, each session logs the log to the screenlog.0 file. The content in the screenlog.0 is a bit confusing.as a workaround , let each screen session window have a separate log file.Add the following line at the end of the screen configuration file/ETC/SCREENRC:Logfile/tmp/screenlog_%t.log%t refer
method to choose. Some customers prefer Agile, while others like the Waterfall model. So it's absolutely impressive to be able to do all sorts of different ways.10. Record your views on the technology to the documentation/blogIn our daily work, we may learn new things, new ways of doing things, practical forms and architectural ideas. You can record these ideas in a document or blog and share them with you. Because the way you're going to solve the problem is probably just another corner of the
]:/tmp# else's MagicalIn some scenarios we need to determine whether we are for jumping out of a loop break and dealing with it only for the case of a break bounce. It is often our practice to use a flag variable to identify whether it for jumps out of the loop. As shown in the following example, see if there is a multiple of 17 between 60 and 80. flag = Falsefor item in xrange(60, 80): if item % 17 == 0: flag = True breakif flag: print "Exists at least one number can be di
each time you crawl.Here is a trickery method, is to use squid as a proxy server to crawl, then squid will automatically maintain the connection pool, but also comes with data caching function, and squid is the one I have on each server must be installed.2. Automatic retry after Setup failure
defget(self,req,retries=3):try:response=self.opener.open(req)data=response.read()exceptException:printwhat,reqifretries>0:returnself.get(req,retries-1)else:print 'GETFailed',reqreturn''returnd
Tuning tool (Unity Tweak tools) is your one-stop tool and can even customize the tiniest aspects of the Ubuntu desktop. Replace the icon. Specifies the trigger angle of the display or hide window. If you have anything else to worry about unity, you can fine-tune it here.For example, System setup > appearance provides an option to automatically hide the launcher. The Unity Adjustment tool allows you to change animations during animations.Clicking the icon in the launcher opens the application. C
The files of one project in a job are generally in one path, and most people are accustomed to fixing eclipse's workspace. But occasionally there is something else, like doing a big project interspersed with some OJ, or something else ... This time of course you can choose to install an eclipse, but you can also set the Eclipse workspace to switch. The following is workspace, generally the first time to open workspace, everyone is used to hook on the default workspace option, so when the second
XP system is Microsoft all developed operating system in the fastest speed, but there are still many users are not satisfied with the so-called speed of the XP system, today everyone will learn a few tricks bar, let your XP system boot speed in the lift.
In order to better manage the system start-up performance, Microsoft launched a special system boot tracking, optimization program: Bootvis.exe. Using this program we can intuitively understand the s
bash_rematch[] array #re1.sh#!/bin/bash# manage to know your nameread-p "Please input your fullname:" Nameif [[$NAME =~ (. *) [[: Space:]] (. *)]];thenecho "Your last name ${bash_rematch[2]}" echo "Your name is ${bash_rematch[1]}" echo "Full name ${bash_rematch[0 ]} "fi execution results [[email protected] shell]#./re1.sh Please input your Fullname:liancao Liu your surname Liu you call liancao full name Liancao Liu71 scripts to guess numbers#一个猜数字的sh #numguess.sh#!/bin/bash#youmaywanttoguessbet
1. Use local variables instead of module variablesA name like OS.LINESEP requires an interpreter to do two queries:1) Find the OS to confirm that it is a module2) Find the LINESEP variable in this moduleBecause the module is also a global variable, we consume more system resources. If you use a property in a function like this frequently, we recommend that you take a local variable alias for that property.Variable lookup speed will be much faster-always look for local variables before looking
The DB2 tutorial you are looking at is: DB2 Programming small tricks.
Some programming experience, share with everybody!
1 DB2 Programming
1.1 When you create a stored procedure, you must not use the TAB key 3
1.2 Use temporary table 3
1.3 Take the first few records from the datasheet 3
1.4 Use of Cursors 4
Note Commit and rollback 4
Two ways to define a cursor 4
method to modify the current record of a cursor 5
1.5 transcoding operations similar 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.