摘要: 仅做笔记 阅读全文
posted @ 2013-09-09 17:06 wanhl 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 先说段废话,话说在linux 2.6.34 下,好多比较新的3G网卡及3G模块都没有很好的支持。如果想支持的这些3G网卡/3G模块呢,基本上有两种方式: 1.使用该3G模块的 linux 下的驱动,交叉编译为*.ko ,然后放到开发板下,insmod 进去。然后接入3G模块,ls /dev/下,会发现3G驱动接口ttyUSB0--3 生成。然后想这些ttyUSB*接口发送AT指令,即可拨号上网。具体的拨号方式网上有很多,这里不赘述。 2.使用usb_modeswitch -c /etc/usb_modeswitch.d/* 的配置文件,来进行转换。将初步识别为存储模块,转换为3... 阅读全文
posted @ 2013-08-30 10:59 wanhl 阅读(808) 评论(0) 推荐(0) 编辑
摘要: ? 阅读全文
posted @ 2013-08-19 14:26 wanhl 阅读(1749) 评论(0) 推荐(0) 编辑
摘要: 1.主页面大致如下操作 mian.html 2. 子页面部分代码如下 son.html选用" -->注:sendToMainPage() 中记得加参数。3.主要在于self.opener。self代表当前对象,opener代表父类对象。 阅读全文
posted @ 2013-06-27 09:12 wanhl 阅读(602) 评论(0) 推荐(0) 编辑
摘要: 1.第一种利用fsock的方式来建立类POST的请求。<?php $srv_ip = '192.168.1.5';//你的目标服务地址. $srv_port = 80;//端口 $url = 'http://localhost/fsock.php'; //接收你post的URL具体地址 $fp = ''; $errno = 0;//错误处理 $errstr = '';//错误处理 $timeout = 10;//多久没有连上就中断 $post_str = "username=demo&password=ha 阅读全文
posted @ 2013-06-19 14:54 wanhl 阅读(830) 评论(0) 推荐(0) 编辑
摘要: 前提是超级用户1.apt-get install vsftpd2.修改/etc/vsftpd.conf 的文件 添加修改如下内容 添加: local_root=/home/ftp anon_root=/home/ftp 注释掉: #chown_uploads=YES #chown_username=whoever 否则会出现500 OOPS: vsftpd: cannot locate user specified in 'chown_username':whoever 的错误。3./etc/init.d/vsftpd restart. OK. 阅读全文
posted @ 2013-05-29 19:22 wanhl 阅读(425) 评论(0) 推荐(0) 编辑
摘要: 在主机上安装nfs服务器 apt-get install nfs-kernel-server安装完成后启动nfs服务器 sudo /etc/init.d/nfs-kernel-server start设置环境变量 gedit /etc/exports添加如下一句话 /home/share 192.168.1.*(rw,sync,no_root_squash)前面是你要共享的文件目录的绝对路径,后面是你要挂载的设备的网段,后面是一些参数,一般这么设置就可以你也可以自己查查。然后再开发板上打这样一条命令 mount -t nfs 192.168.1.108:/home/share /mn... 阅读全文
posted @ 2013-05-29 14:21 wanhl 阅读(372) 评论(0) 推荐(0) 编辑
摘要: 只给出一个例子,仅供参考使用if [ -f /home/test.txt ] //前后记得有空格then echo "file exist"else echo "file doesn't exist"fiif [-L /dev/link ] //判断某链接是否存在then echo "Link exist"else echo "Link doesn't exist"fi使用脚本判断其他,如文件是否可读等参考http://www.cnblogs.com/sunyubo/archive/2011/10/ 阅读全文
posted @ 2013-05-24 11:09 wanhl 阅读(13871) 评论(0) 推荐(0) 编辑
摘要: function makeRandString($length) { $chr = array('a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u', 阅读全文
posted @ 2013-04-25 15:52 wanhl 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 1 function isTrueValidateCodeBy18IdCard(idCard) { 2 var a_idCard = idCard.split("");// 3 /* 4 * var Wi = [ 7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2, 1 ];// 5 * var ValideCode = [ 1, 0, 10, 9, 8, 7, 6, 5, 4, 3,... 阅读全文
posted @ 2013-04-16 11:54 wanhl 阅读(366) 评论(0) 推荐(0) 编辑