dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ /////do something });
分类:
其他好文 时间:
2015-04-29 16:45:29
阅读次数:
111
在用apt 安装软件时,有时会用国内的源以加快下载速度。但是在使用ubuntu 14.04的过程中,这一过程可能会导致错误“Unable to correct problems, you have held broken packages”。 经测试,网上的apt-get install -f, a...
分类:
系统相关 时间:
2015-04-29 16:31:54
阅读次数:
3441
Form提供了两种数据传输的方式——get和post。虽然它们都是数据的提交方式,但是在实际传输时确有很大的不同,并且可能会对数据产生严重的影响。虽然为了方便的得到变量值,Web容器已经屏蔽了二者的一些差异,但是了解二者的差异在以后的编程也会很有帮助的。Form中的get和post方法,在数据传输过...
分类:
其他好文 时间:
2015-04-29 16:31:08
阅读次数:
131
Given two strings s and t, determine if they are isomorphic.Two strings are isomorphic if the characters in s can be replaced to get t.All occurrences of a character must be replaced with another chara...
分类:
其他好文 时间:
2015-04-29 15:10:38
阅读次数:
85
使用以下语句来查询当前时区设置date_default_timezone_get()使用以下语句设置当前时间为北京时间date_default_timezone_set('PRC');
分类:
Web程序 时间:
2015-04-29 14:55:14
阅读次数:
130
Isomorphic Strings
Given two strings s and t, determine if they are isomorphic.
Two strings are isomorphic if the characters in s can be replaced to get t.
All occurrences of a character mu...
分类:
其他好文 时间:
2015-04-29 13:36:44
阅读次数:
193
1. vim 的安装$sudo apt-get install vim vim-scripts vim-doc 其中vim-scripts包含了vim的一些基本插件,包括语法高亮,缩进等等。vim的中文文档tar包下载地址: http://sourceforge.net/projects/vimcd...
分类:
编程语言 时间:
2015-04-29 13:28:39
阅读次数:
311
1.查看lynx命令所在的路径whereis lynx 或者 which lynx如果没有,则安装 yum install lynx 或者 apt-get方式(ubuntu)2.建立 shell脚本(假如 lynx路径为 /usr/bin)#!bin/sh/usr/bin/lynx -source ...
分类:
Web程序 时间:
2015-04-29 13:12:22
阅读次数:
178
http://stackoverflow.com/questions/6786666/how-do-i-access-call-log-for-androidhttp://android2011dev.blogspot.in/2011/08/get-android-phone-call-histor...
分类:
移动开发 时间:
2015-04-29 13:11:50
阅读次数:
369
代码演示: //数据库中去的日期 ??Date?s?=?list.get(0).getSdate(); ??System.out.println(s);//?Tue?Apr?28?00:00:00?CST?2015 ??//手动new ??Date?d?=?new?Date(); ??System.out.prin...
分类:
编程语言 时间:
2015-04-29 10:19:13
阅读次数:
162