在Android 2.3引入了DownloadManager可以处理复杂的文件下载,包括检查用户是否有数据联系(WIFI或者移动数据),当用户从一个有数据连接的地方移动到无连接的地方(例如离开了wifi或者3G data的access point),确保设备在下载过程中保持awake状态。Downl...
分类:
移动开发 时间:
2015-03-31 00:49:43
阅读次数:
205
Apache的配置文件配置文件所在目录:/etc/httpd/conf/主配置文件:httpd.conf旧版本中的配置文件:资源配置文件:srm.conf访问许可权配置文件:access.conf AccessConfig和ResourceConfig为了对旧版本的Apache兼容, Apache服...
分类:
Web程序 时间:
2015-03-30 22:50:20
阅读次数:
191
Nginx在win7,win2008下启动报错:bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions) 。原因是W...
分类:
数据库 时间:
2015-03-30 20:58:15
阅读次数:
249
CentOS中可以通过stat查看文件的元数据[baby@xiaoxiaoabc]$stathoneyFile:`honey‘Size:25 Blocks:8IOBlock:4096regularfileDevice:806h/2054d Inode:131076Links:1Access:(0664/-rw-rw-r--)Uid:(500/baby)Gid:(500/baby)Access:2015-03-3010:27:51.851234105+0800Modify:2015-0..
分类:
数据库 时间:
2015-03-30 19:07:18
阅读次数:
218
题目如下:You are given two eggs, and access to a 100-storey building. Both eggs are identical. The aim is to find out the highest floor from which an egg will not break when dropped out of a window from th...
分类:
其他好文 时间:
2015-03-30 16:31:05
阅读次数:
160
直接访问ip地址80端口,nginx解析到对应服务器需要配置server default 参数server {listen 80 default;server_name www.mysite.com;access_log logs/qb.app.access.log main;error_log l...
分类:
其他好文 时间:
2015-03-30 16:09:07
阅读次数:
447
public static String getIp(String accessToken){
String result = null;
String requestUrl = "https://api.weixin.qq.com/cgi-bin/getcallbackip?access_token=ACCESS_TOKEN";
requestUrl = requestUrl.rep...
分类:
微信 时间:
2015-03-30 14:42:54
阅读次数:
623
public static String getUserOpenId(String accessToken){
String result = null;
String requestUrl ="https://api.weixin.qq.com/cgi-bin/user/get?access_token=ACCESS_TOKEN";
requestUrl = requestUrl.r...
分类:
微信 时间:
2015-03-30 14:42:43
阅读次数:
881
一
CDaoRecordset是DAO的,CRecordset是ODBC的,
VC++6.0都提供了一些编程接口。主要以下五种:
1.ODBC API;
2.MFC ODBC类;
3.MFC DAO类;(数据访问对象)
4.MFC的OLE/DB;
5.ActiveX数据对象(ADO)。
二
rs.GetFieldValue(0co1); 和rs.GetFieldValue((sh...
分类:
数据库 时间:
2015-03-29 19:37:32
阅读次数:
191
1 // random.cpp -- random access to a binary file 2 #include // not required by most systems 3 #include 4 #include 5 #include // (o...
分类:
编程语言 时间:
2015-03-29 09:24:23
阅读次数:
159