[Reading Notes] Get the current time, Reading Notes get now
I. Code.
-(Void) viewDidLoad {[super viewDidLoad]; // Do any additional setup after loading the view. self. title = @ "RootViewController"; NSLog (@ "------ timer -- now -- % @", [self getTimeForNow]);} # pragma-mark-Get current time-17:28:38-(NSString *) getTimeForNow {NSDate * senddate = [NSDate da
IOS: Get the first letter of Pinyin using swift, and get the first letter of every word in a sentence, iosswift
In a recent project, I encountered the problem of getting the first letter of Pinyin. I searched for the online method and did not find a suitable and useful method. So I did some research and wrote the following methods. Please feel free to contact me, I hope to help you.
/// PYFirst. swift //
Get the local IP address, Mac, get the corresponding IP through the domain name,Is the more common operation that network programming may encounter, so it is summarized as follows (3 functions are encapsulated),Directly on the code :#include Test RunThe results are as follows:Linux C Network Programming-Get local IP address, mac,
Fight Fish TV Fish balls acquisition method
Method One: If we have a number on the login, if not on the first click to register and then into their own personal center set avatar, can be a one-time access to 100 fish balls;
Method Two: If already registered, we can by verifying own QQ mailbox, this can obtain 300 fish pill;
Method Three: In Dou fish TV bigfoot download page to download Bigfoot, this can be free to get 500 fish ball
Sometimes post or get pass data we do not know what the form, it may be in JSON format or simply submitted to the data, this time we can write him into the text, we can see the data passed in what format. $val = ""; $currentDateTime = date (' Ymdhis ', Time ()); $currentDate = date (' Ymd ', Time ()); $fileName = "ioslog/". $currentDate;//File name @ $data = fopen ($fileName, ' A + ');//Add no overwrite, first determine if the file e
Additional parameters to get introduced:Sets or gets the file name or path specified by the object.alert (window.location.pathname);Sets or gets the entire URL as a string.alert (WINDOW.LOCATION.HREF);Sets or gets the port number associated with the URL.alert (Window.location.port);Sets or gets the protocol portion of the URL.alert (Window.location.protocol);Sets or gets the segment behind the pound sign "#" in the href attribute.alert (Window.locat
Note: Use the time will get Beijing location that put to get longitude latitude behind can52130772 HTML5 get geographical latitude and longitude and get real-time location via Baidu interface
In development, there are often some simple tree structure storage, such as product multi-level classification, multi-level navigation bar menu, these objects have a feature, that is, usually get the whole tree structure. There are three ways to save a tree structure in a database, the simplest of which is to point to the parent node of the current structure through a father_id. For such a small structure, we generally use the simplest way to store.
W
A colleague uses the filter in my last article to filter every request, and then filters the values for dangerous tendencies based on the parameter in the request, but something magical happens.
The order in which the system is called is:
Submit Form →filter (Section1) →controller→filter (section2) → page render accordingly.
The main request in Fsection2 is to get the page Uiroot component, which is not related to this process. The problem that is enc
hibernate 4.3 Resolves a data problem that does not get the latest changes in the database by using get data because of a caching problemproblem processes and phenomena :Query a data list = "Manually update data in database =" Refresh page, data display or old data before updateFind a solution online :1, using session.clear (); empty the cache before querying----tested, this method is invalid in version 4.3
I have been engaged in Python development for many years, proficient in reptiles, the web, familiar with other directions, a lot of small partners private chat I said, I read your article, I studied, but for the project this piece is not very familiar with, how to quickly master a few small projects, as well as several can interview the project. Please subscribe to the public number:python from program ape to programmer,,, or harass myself. 154725.1666, you can
1, we download a computer to install a "Baidu key root tool" can not search for downloads.
2, good at the desktop double-click "Baidu a key Root" program to install.
3, then the Millet 4 mobile phone connected to the computer and then in the Millet 4 mobile phone to open "USB debugging" switch (Recommended reading: Millet 4 Open USB debugging Tutorial).
4, OK now Baidu a key root tool can identify our mobile phone, of course, if the phone does not install the driver we can install a mobile
Develop official documents based on the micro-credit public number:
To obtain user information step as follows:
1 First step: User consent authorization, get code2 Second step: Through code in exchange for Web page authorization Access_token3 Step Three: Refresh Access_token (if required)4 Fourth Step: Pull user information (need scope for snsapi_userinfo)
1 Getting Code
In order to ensure that the micro-credit public account has the authorization
Don't say much, come directly to the code
# lead Itchat
import itchat
# WeChat login
itchat.login ()
# Get all users (may be all, print out too messy to see)
user = Itchat.get_ Friends ()
The initial operation is not complicated, and a few lines of code get all the usersBut all users can not be used directly, need to get the specified value
# I'm here to scan t
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.