摘要: 关于 SQLAlchemy (1.0.8) 和 Flask-SQLAlchemy (2.0) SQLALchemy 是Python语言的SQL工具包及对象关系映射(ORM)工具。Flask-SQLALchemy 是一个给你的应用添加 SQLALchemy 支持的 Flask 扩展。 这两个其实是一种 阅读全文
posted @ 2015-09-25 09:41 微微微笑 阅读(1533) 评论(0) 推荐(0) 编辑
摘要: 不得不说,本人极度讨厌网页设计,感觉太麻烦了。不过整好啦还蛮有成就感的。关于网页设计,现在流行的是扁平化设计。http://www.bootcss.com/http://www.bootcss.com/p/flat-ui/这个超好,很多样式: http://demo1.cssmoban.com/cs... 阅读全文
posted @ 2015-09-24 09:36 微微微笑 阅读(985) 评论(0) 推荐(0) 编辑
摘要: 安装Mysql# sudo apt-get install mysql-server安装过程需要输入root密码,这个密码是mysql 的root密码,之后连接mysql会用到,这个要记住。安装完成之后,可以使用如下命令check是否安装成功。#mysql --user=root -p输入mysql... 阅读全文
posted @ 2015-09-23 09:46 微微微笑 阅读(1008) 评论(0) 推荐(0) 编辑
摘要: 写在前面之前用过python的另外一个框架,Django。感觉Django比Flask的资料要多。做这个网站的时候,遇到一些棘手的问题,怎么百度也就只能找到翻来覆去的官方文档以及miguelgrinberg的博客。有时候也就关键的几行代码的问题,会花费很久才看到真正有用的东西。还有就是,不得不说,官... 阅读全文
posted @ 2015-09-18 15:02 微微微笑 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 实时log1. 抓取应用程序的日志。# adb logcat -b main -v threadtime > /sdcard/main.log2. 抓取跟 radio/telephony 相关的信息。# adb logcat -b radio -v threadtime > /sdcard/radi... 阅读全文
posted @ 2015-08-27 18:25 微微微笑 阅读(1319) 评论(0) 推荐(0) 编辑
摘要: 以flask为例。1. 安装# pip install flask 安装 flask。# pip install flask==1.0 安装 1.0版本的flask# pip install flask-1.0.tar.gz 从本地安装flask# pip install http://www... 阅读全文
posted @ 2015-08-12 15:28 微微微笑 阅读(628) 评论(0) 推荐(0) 编辑
摘要: 学习文档: http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world 中文版学习文档 开源中国版: http://www.oschina.net/translate/the-flask-mega-tu 阅读全文
posted @ 2015-08-10 17:22 微微微笑 阅读(849) 评论(0) 推荐(0) 编辑
摘要: 抓取HPROF log1. GUI可以通过 adt-bundle-windows-x86_64-20140702\sdk\tools\monitor.bat来抓取。打开软件,选中相应的包,比如“com.android.mms”,然后点击"Dump HPROF file" 按钮,保存为 “mms_08... 阅读全文
posted @ 2015-08-07 11:40 微微微笑 阅读(956) 评论(0) 推荐(0) 编辑
摘要: 背景:本人用python写自动化脚本,基础的东西都会啦。但是呢,鉴于年轻应该好好学习,所以打算再买一本python书籍用来精读。Python 好的博客: Python快速教程(好多,一点也不快速):http://www.cnblogs.com/vamei/archive/2012/09/13/268... 阅读全文
posted @ 2015-07-21 11:27 微微微笑 阅读(300) 评论(1) 推荐(0) 编辑
摘要: 看到鸟哥私房菜对NFS的介绍,就想试试玩一下。看起来步骤也很简单。 1.背景名词。 NFS(Network File System) 作用:让所有的Unix-like 机器通过网络共享彼此的文件 局限:文件权限问题。客户端和服务器端必须具备相同的账号才能够访问某些目录或文件。 RPC(Remote 阅读全文
posted @ 2015-07-17 17:22 微微微笑 阅读(1487) 评论(0) 推荐(0) 编辑