2012年9月20日
摘要: http://www.cnblogs.com/softlover/archive/2012/09/07/2675110.html写的很好,当你多个chrome同时使用一个demo的时候,依然可用,表示同浏览器之间是通信ok的,而ff与chrome之间是不共享的http://caniuse.com/#feat=namevalue-storage这里有stroage支持的浏览器对比 阅读全文
posted @ 2012-09-20 16:11 Rik~ 阅读(198) 评论(0) 推荐(0)
摘要: SublimeText:安装package control方法 ctrl+`import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb 阅读全文
posted @ 2012-09-20 12:21 Rik~ 阅读(234) 评论(0) 推荐(0)
  2012年9月19日
摘要: 当使用curlpost一个请求的话,一般代码如下:$ch = curl_init();curl_setopt($ch, CURLOPT_URL, $url);curl_setopt($ch, CURLOPT_POST, 1);curl_setopt($ch, CURLOPT_POSTFIELDS, $data);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);当这里传递的$data如果是标准的一个phparray对象的话,如果array有嵌套,比如array(a=>array(5))的话,接受到的对象就会变成 array(a => Array 阅读全文
posted @ 2012-09-19 11:01 Rik~ 阅读(1627) 评论(0) 推荐(0)
  2012年9月13日
摘要: #!/bin/bashadb devices 2>&1|grep '-'|awk '{print $1}'|awk -F- '{print $2}'简单的shell将所有android devices列出来,寻找所有端口List of devices attached 10.32.11.77-5554 device10.32.11.77-5556 device10.32.11.77-5558 device10.32.11.77-5560 device10.32.11.77-5562 device10.32.11.77-5564 de 阅读全文
posted @ 2012-09-13 14:04 Rik~ 阅读(1153) 评论(0) 推荐(0)
  2012年8月31日
摘要: 进入mysql----------cd mysql/bin./mysql -uroot -p输入密码使用表格----------use [table name]; show tables; 查看所有的表格查看表格名称----------desc 表名;show columns from 表名;describe 表名;show create table 表名; 阅读全文
posted @ 2012-08-31 13:03 Rik~ 阅读(234) 评论(0) 推荐(0)
摘要: 当hudson链接svn或者git的时候,如果git按照http形式需要输入密码,那么可以在 ~目录下建立.netrc文件在文件内写入 machine 172.22.1.100 username xxx password xxx 则可以正常使用可以man netrc 阅读全文
posted @ 2012-08-31 13:02 Rik~ 阅读(727) 评论(0) 推荐(0)
摘要: Linux今天跟师傅又学了一招grep -R "你想要找的东西" *然后就会遍历整个文件夹了 阅读全文
posted @ 2012-08-31 13:01 Rik~ 阅读(302) 评论(0) 推荐(0)
摘要: git建立tag方式 在当前文件下git tag xxxxxx 删除tag方式 git push origin :refs/tags/xxxxxx 阅读全文
posted @ 2012-08-31 13:01 Rik~ 阅读(447) 评论(0) 推荐(0)
  2012年8月29日
摘要: svn document 地址:http://svnbook.red-bean.com/svn add [--depth=empty] dir/ 只添加dir,不递归svn revert -R dir/ 再commit之前 递归回滚 阅读全文
posted @ 2012-08-29 16:47 Rik~ 阅读(298) 评论(0) 推荐(0)
摘要: 1. 老办法 ifconfig 肉眼2.hostname -i 这个有时候有问题,得到的ip居然是127.0.0.13.ifconfig eth0|grep 'inet addr'|awk -F ":" '{print $2}'|awk '{print $1}'第三个不错参考bloghttp://oldboy.blog.51cto.com/2561410/791670 阅读全文
posted @ 2012-08-29 13:24 Rik~ 阅读(232) 评论(0) 推荐(0)