上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 36 下一页
摘要: mac 下获取 os x 的系统版本,使用 oc cocoa1:#import SInt32 major, minor, bugfix;Gestalt(gestaltSystemVersionMajor, &major);Gestalt(gestaltSystemVersionMinor, &min... 阅读全文
posted @ 2014-10-20 17:24 cocoajin 阅读(2456) 评论(0) 推荐(0) 编辑
摘要: 部署git服务器 gitServer 软件搭建git服务器也并不是非常的难,有这么多优秀的软件,选择一个适合自己就行了1. windows版本http://gitstack.com/免费版本,只能有两个用户2. windows IIS 版本http://bonobogitserver.com/,免费... 阅读全文
posted @ 2014-10-15 13:38 cocoajin 阅读(394) 评论(0) 推荐(0) 编辑
摘要: python urllib2 模拟网站登陆1. 可用浏览器先登陆,然后查看网页源码,分析登录表单2. 使用python urllib2,cookielib 模拟网页登录import urllib,urllib2,cookielib#urllib2 支持 http,httpsdef loginWeb(... 阅读全文
posted @ 2014-09-26 14:15 cocoajin 阅读(1167) 评论(0) 推荐(0) 编辑
摘要: python2 httplib 笔记#coding=utf-8 '''Created on 2014年9月25日@author: cocoajin'''import httplib,urllibbase='httpbin.org' #不需要添加 "http://"con=httplib.HTTPC... 阅读全文
posted @ 2014-09-25 14:27 cocoajin 阅读(1113) 评论(0) 推荐(0) 编辑
摘要: python 暴力破解密码脚本以下,仅为个人测试代码,环境也是测试环境,暴力破解原理都是一样的,假设要暴力破解登陆网站www.a.com 用户 testUser的密码,首先,该网站登陆的验证要支持 无限次的密码尝试假设testUser 的密码为 6位的纯数字1:先长成 6位纯数字密码字典import... 阅读全文
posted @ 2014-09-24 17:42 cocoajin 阅读(15906) 评论(0) 推荐(0) 编辑
摘要: python2 urllib 笔记import urllibbase='http://httpbin.org/'ip=base+'ip'r=urllib.urlopen(ip)print r.geturl()print r.read()#getget=base+"get"parms=urllib.u... 阅读全文
posted @ 2014-09-23 16:32 cocoajin 阅读(413) 评论(0) 推荐(0) 编辑
摘要: HTTP请求415错误 – 不支持的媒体类型(Unsupported media type)通常有以下情况:1:检查你的 http 请求头信息,比如 因为 User-Agent 被服务器设置 拒绝请求了; 比如你写的的爬虫,就很有可能因为没有伪装成浏览器,被拒绝请求 user-agent 详情2... 阅读全文
posted @ 2014-09-22 16:17 cocoajin 阅读(226521) 评论(2) 推荐(3) 编辑
摘要: 在xcode5 下配置 python开发环境1:默认mac下已经集成了python的开发库,先找到集成的python库的目录 终端 which python记下当前的python 路径 /usr/bin/python2: xcode 新建工程 ----OSX-----Other -----Exte... 阅读全文
posted @ 2014-09-01 10:42 cocoajin 阅读(615) 评论(0) 推荐(0) 编辑
摘要: xcode引入第三方静态类库 duplicate symbol _OBJC_XXX 重复编译错误一:场景 xcode 同时引入了 libA.a, libB.a 两个静态类库,如果 这两个静态类库之中,都打包了,相同的库,方法之类的, 且 xcode 的other link flag 为 -a... 阅读全文
posted @ 2014-08-17 14:18 cocoajin 阅读(1263) 评论(0) 推荐(0) 编辑
摘要: 使用node js 操作 Mysql 数据库http://www.nodejs.org///node js 数据库操作 MySQL//使用https://github.com/felixge/node-mysql//sql 操作 http://www.w3school.com.cn/sql///ht... 阅读全文
posted @ 2014-07-29 16:13 cocoajin 阅读(595) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 36 下一页