上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 56 下一页

wget -d --header

摘要: wget -d --header="Host:www.sina.com" http://202.108.33.84 domain differ ip 防止Wget递归下载 假设Nginx默认配置文件所在目录:/usr/local/nginx/conf/vhostwget的默认User Agent是G 阅读全文
posted @ 2016-04-07 16:51 szllq2000 阅读(7876) 评论(0) 推荐(0)

python array

摘要: python中通常情况下for循环会枚举各个元素不会访问下标,例如: 但是有时候我们会需要在便利数组的同时访问下标,这时候可以借助于enumerate函数来实现,例如: 阅读全文
posted @ 2016-04-06 17:24 szllq2000 阅读(205) 评论(0) 推荐(0)

responsive and functional programming RxJava

摘要: RxJava由于使用了多个回调,一开始理解起来可能有点难度,其实多看几遍也就明白了,它的招式套路都是一样的: 首先就是创建Observable,创建Observable有很多种方式,这里使用了Observable.create的方式;Observable.create()需要传入一个参数,这个参数其 阅读全文
posted @ 2016-04-06 09:51 szllq2000 阅读(158) 评论(0) 推荐(0)

travis ci

摘要: http://www.cnblogs.com/huang0925/archive/2013/05/30/3108370.html Travis CI的官网介绍是: A hosted continuous integration service for the open source communit 阅读全文
posted @ 2016-04-05 17:47 szllq2000 阅读(174) 评论(0) 推荐(0)

windows python easy_install ,pip. selenium

摘要: http://www.cnblogs.com/fnng/p/3157639.html 搭建平台windows 准备工具如下: unknown encoding: cp65001异常 python安装后进入命令行交互模式,输入任何代码都报unknown encoding: cp65001异常 需要将编 阅读全文
posted @ 2016-04-05 14:52 szllq2000 阅读(326) 评论(0) 推荐(0)

FW: git internal

摘要: Git 内部原理 不管你是从前面的章节直接跳到了本章,还是读完了其余各章一直到这,你都将在本章见识 Git 的内部工作原理和实现方式。我个人发现学习这些内容对于理解 Git 的用处和强大是非常重要的,不过也有人认为这些内容对于初学者来说可能难以理解且过于复杂。正因如此我把这部分内容放在最后一章,你在 阅读全文
posted @ 2016-04-03 17:50 szllq2000 阅读(626) 评论(0) 推荐(0)

js function,prototype,sub.

摘要: Ojbect 和Function 与普通函数和实例对象 1.实例对象的proto 指向构造函数的原型对象 2.实例对象的proto 指向Ojbect的原型 3.所有函数的proto 都指向Function的原型 function定义的对象有一个prototype属性,使用new生成的对象就没有这个p 阅读全文
posted @ 2016-04-01 14:51 szllq2000 阅读(261) 评论(0) 推荐(0)

php accumulation rockmongo

摘要: php -r 'echo substr(sprintf("%o",fileperms("./")),-4);' 阅读全文
posted @ 2016-04-01 10:44 szllq2000 阅读(119) 评论(0) 推荐(0)

python macos scrapy ,gevent module

摘要: easy_install pip pip install scrapy pip install ipython ImportError: No module named items https://groups.google.com/forum/#!msg/scrapy-users/aYrpirKB 阅读全文
posted @ 2016-03-30 14:26 szllq2000 阅读(277) 评论(0) 推荐(0)

Casperjs中fill提交表单遇到的问题

摘要: 1.if you access internet with proxy please add --ignore-ssl-errors=true --ssl-protocol=any 2.casper.then* and casper.wait* 都是异步执行的 他们的调用,都是按堆栈中的顺序来执行; 阅读全文
posted @ 2016-03-30 10:04 szllq2000 阅读(487) 评论(0) 推荐(0)
上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 56 下一页