1. [代码]方法代码 function cp(source, target) { function isBaseType(v) { var type = typeof v; var basetype = { "string": true, "number": t...
分类:
编程语言 时间:
2014-07-06 13:29:36
阅读次数:
270
说实话,我一看到这个returnValue就有点反感,感觉这个就是IE式的老套的用法,因为项目中有用到就了解了下,以下主要是一些我的理解和发现吧。PS:returnValue是window的属性,showModalDialog和open是window的方法。returnValue是与showModa...
分类:
其他好文 时间:
2014-07-06 12:59:05
阅读次数:
271
一、打开或创建一个文件
#include
int open(const char *pathname, int oflag, .../*mode_t mode*/);
返回值:若成功则返回文件描述符,若出错则返回-1
oflag选项:
O_RDONLY
O_WRONLY
O_RDWR
以上三个常量中必须指定一个,且只能指定一个。
以下常量都是可选的:
O_AP...
分类:
其他好文 时间:
2014-07-06 12:17:24
阅读次数:
158
题目如下:
Play on Words
Some of the secret doorscontain a very interesting word puzzle. The team of archaeologists has tosolve it to open that doors. Because there is no other way to open the doors,...
分类:
其他好文 时间:
2014-07-06 12:12:36
阅读次数:
221
AOSP ON MAKO(在NEXUS 4上刷ANDROID 4.4 源码包-下载/配置/编译/刷机)
特别感谢google官方文档及AOSP源码开放
参考链接:
https://source.android.com/source/building-devices.html (官方源码刷device)
https://developers.google.com/android/nexu...
分类:
移动开发 时间:
2014-07-06 10:56:04
阅读次数:
339
deb包的构建的命令为:
dpkg-buildpackage
这样会自动完成所有从源代码包构建二进制包的工作,包括以下几个步骤:
0、清理源代码树(debian/rules clean)
1、构建源代码包(dpkg-source -b)
2、构建程序(debian/rules build)
3、构建二进制包(fakeroot debian/rules binary)...
分类:
其他好文 时间:
2014-07-06 10:38:33
阅读次数:
1940
insert Vodafone sim card,open the mms read report,when receive the read report,cann't download the message
Test steps:
1.insert Vodafone sim card
2.open the mms read report
3.send the mms successf...
分类:
其他好文 时间:
2014-07-06 08:36:10
阅读次数:
292
网络通信:单播、广播、组播
本文目录:
一、网络通信的分类、他们的定义和特点。
二、单播、广播、组播的传输信息的网络拓扑模型。
三、单播、广播、组播的编程实例。
一、网络通信的分类、他们的定义和特点。
二、单播、广播、组播的传输信息的网络拓扑模型。
(一)单播
如图8-1 所示,网络中存在信息发送者Source,UserA 和UserC 提出...
分类:
其他好文 时间:
2014-07-06 00:43:10
阅读次数:
441
执行启动nginx:/usr/local/nginx/sbin/nginx
错误:/usr/local/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
查找:[roo...
分类:
其他好文 时间:
2014-07-06 00:11:52
阅读次数:
205
f = open("foo.txt") # 返回一个文件对象line = f.readline() # 调用文件的 readline()方法while line: print line, # 后面跟 ',' 将忽略...
分类:
编程语言 时间:
2014-07-05 21:24:54
阅读次数:
287