kristain

博客园 首页 新随笔 联系 订阅 管理

2015年11月19日 #

摘要: 本文整理自Google I/O 2011: Memory management for Android Apps的演讲,需自行到墙外查看。从早期G1的192MB RAM开始,到现在动辄1G -2G RAM的设备,为单个App分配的内存从16MB到48MB甚至更多,但OOM从不曾离我们远去。这是因为大... 阅读全文
posted @ 2015-11-19 00:06 kristain 阅读(398) 评论(0) 推荐(0) 编辑

2015年9月21日 #

摘要: After install Scrapy via pip, and havingPython 2.7.10:scrapyTraceback (most recent call last):File "/usr/local/bin/scrapy", line 7, in from scrapy.cmd... 阅读全文
posted @ 2015-09-21 13:33 kristain 阅读(1501) 评论(0) 推荐(0) 编辑

2015年8月20日 #

摘要: 国际移动用户识别码(IMSI) international mobile subscriber identity 国际上为唯一识别一个移动用户所分配的号码。 从技术上讲,IMSI可以彻底解决国际漫游问题。但是由于北美目前仍有大量的AMPS系统使用MIN号码,且北美的MDN和MIN采用相同的编号... 阅读全文
posted @ 2015-08-20 15:54 kristain 阅读(2756) 评论(0) 推荐(0) 编辑

2015年7月29日 #

摘要: mac os 系统中无法被识别,在命令行输入 system_profiler SPUSBDataType在, 然后将魅蓝note的vendor id 添加至 ~/.android/adb_usb.ini文件中,然后依次执行adb kill-server adb start-server即可进入ad... 阅读全文
posted @ 2015-07-29 12:16 kristain 阅读(2338) 评论(0) 推荐(0) 编辑

2015年7月21日 #

摘要: Could not find tool aapt. Please provide proper Android SDK directory path as configuration parameterIn the last release of android sdk directory stru... 阅读全文
posted @ 2015-07-21 18:42 kristain 阅读(632) 评论(0) 推荐(0) 编辑

2015年7月10日 #

摘要: 1,在命令行中输入:exportPATH=/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11R6/bin 这样可以保证命令行命令暂时可以使用。命令执行完之后先不要关闭终端。2,输入 cd~/ 进入当前用户的home目录。3,创建bash_profile 执行命令:touc... 阅读全文
posted @ 2015-07-10 00:10 kristain 阅读(283) 评论(0) 推荐(0) 编辑

2015年6月6日 #

摘要: centos6.4默认安装的python版本为2.6,但是beautifulsoup4 与python2.6兼容的不好,因此需要把python升级到python2.7才行。下面介绍centos6.4中python升级为2.7的过程python升级首先需要安装的一些包yum groupinstall ... 阅读全文
posted @ 2015-06-06 17:45 kristain 阅读(572) 评论(0) 推荐(0) 编辑

2015年5月25日 #

摘要: 在Windows8 x64下使用MySQL-python安装包的时候提示报错:Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat)环境:windows8 x64 ,python2.7原因:windows下使用MySQL... 阅读全文
posted @ 2015-05-25 14:25 kristain 阅读(623) 评论(0) 推荐(0) 编辑

2015年5月24日 #

摘要: Beautiful Soup是一个Python的一个库,主要为一些短周期项目比如屏幕抓取而设计。有三个特性使得它非常强大:1.Beautiful Soup提供了一些简单的方法和Python术语,用于检索和修改语法树:一个用于解析文档并提取相关信息的工具包。这样你写一个应用不需要写很多代码。2.Bea... 阅读全文
posted @ 2015-05-24 16:39 kristain 阅读(6438) 评论(0) 推荐(0) 编辑

2015年3月19日 #

摘要: 默认情况下,jQuery传输数据使用Content-Type: x-www-form-urlencodedand和类似于"foo=bar&baz=moe"的序列,然而AngularJS,传输数据使用Content-Type: application/json和{ "foo": "bar", "b... 阅读全文
posted @ 2015-03-19 15:55 kristain 阅读(1403) 评论(0) 推荐(0) 编辑