PS:最近在用html5做移动端开发,用到了android模拟器,请求api时,需要修改host文件,查找资料,找到解决办法,将步骤记录下来..1.使用cmd命令进入相应sdk的tools文件夹下2.执行 emulator -avd avdname -partition-size 128 命令启动模...
分类:
移动开发 时间:
2014-09-23 13:56:14
阅读次数:
276
首先从dmesg来认识usb:
[ 19.610046] msm_hsic_host msm_hsic_host: Qualcomm EHCI Host Controller using HSIC
[ 19.620391] msm_hsic_host msm_hsic_host: new USB bus registered, assigned bus number 1
[ 19...
分类:
系统相关 时间:
2014-09-22 22:52:33
阅读次数:
1557
最近学习php,学了几天,写了一个DBhelper类,贴出代码,(不足之处可以拍砖)mysqli=new mysqli(self::$host,self::$user,self::$pwd,self::$dbname) or die('数据库链接出错:'.$this->mysqli-...
分类:
数据库 时间:
2014-09-22 19:53:03
阅读次数:
198
1.超链接的基本格式格式:<ahref=scheme://host[:post]/path/filename>…</a>scheme://host[:port]/path/filenamescheme指的是http,ftp,file,mailto,news,gopher,telnet七种host指的是IP地址或计算机名称port指的是服务器端口path指的是文件路径filename指的是文件..
分类:
Web程序 时间:
2014-09-22 19:37:23
阅读次数:
392
编者按:原文作者EricLippert是一名资深软件设计工程师,从1996年起一直在微软开发部门任职,协助设计并实现VBScript、 JScript、JScript.NET、Windows Script Host、Visual Studio Tools for Office 和 C#。Escala...
分类:
其他好文 时间:
2014-09-22 13:08:42
阅读次数:
207
config\database.php里读写分离:'mysql' => array( 'read' => array( 'host' => '192.168.1.1', ), 'write' => array( 'host' => '196.168.1....
分类:
数据库 时间:
2014-09-22 12:30:02
阅读次数:
1678
ntohs =net to host short int 16位htons=host to net short int 16位ntohs =net to host long int 32位htonl=host to net long int 32位简述: 将一个无符号短整形数从网络字...
分类:
Web程序 时间:
2014-09-21 15:19:00
阅读次数:
295
今天在网上看到一篇关于htonl()函数的解释,感觉有道理,贴过来大家一起学习!htonl就是把本机字节顺序转化为网络字节顺序h---host 本地主机to 就是to 了n ---net 网络的意思l 是 unsigned long所谓网络字节顺序(大尾顺序)就是指一个数在内存中存储的时候“高对.....
分类:
其他好文 时间:
2014-09-21 14:12:00
阅读次数:
233
1.具体的连接过程我就不说了具体的参见:http://woodpecker.org.cn/2.通过server端和client端通信的例子来说明3.上代码服务端(server.py) 1 #-*-coding: utf-8-*- 2 import socket 3 HOST="127.0.0.1" ...
分类:
编程语言 时间:
2014-09-21 10:51:30
阅读次数:
236
指令:ssh username@server.address.com事例:wangmingdeMacBook-Pro:~ xxxxxxxxxx$ ssh root@XXXX.netThe authenticity of host 'xxxx.net (xxx.xxx.xxx.xxx)' can't ...