上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 23 下一页
摘要: SQLAlchemy TrialThis is a great ORM ( Object-Relational Mapper ) which is compatible with xxxx and many others.SQLAlchemy 0.8 Documentationlink: http://docs.sqlalchemy.org/en/rel_0_8/orm/examples.html IMPORTANT TO GO THROUGHObject Relational Tutorialhttp://docs.sqlalchemy.org/en/rel_0_8/ 需要看... 阅读全文
posted @ 2013-09-25 23:05 spaceship9 阅读(342) 评论(0) 推荐(0) 编辑
摘要: To know what it is, https://wiki.archlinux.org/index.php/Master_Boot_RecordFor a SD card, dd if=/dev/zero of=/dev/mmcblk0 bs=446 count=1 阅读全文
posted @ 2013-09-15 00:55 spaceship9 阅读(163) 评论(0) 推荐(0) 编辑
摘要: On stackoverflow I found this:Follow this tutorial below: This is from http://superuser.com/questions/528816/how-to-hide-public-ip-adress-on-irc-channel Three ways to do that. 1) usermodes 2) vhost/cloaks 3)proxies For more specific information please visit : http://forums.mirc.com/ubbthreads.ph... 阅读全文
posted @ 2013-09-15 00:26 spaceship9 阅读(589) 评论(0) 推荐(0) 编辑
摘要: ---恢复内容开始---最近比较火的有digitalocean 的SSD VPS,配置还不错。每个月5刀,512MB内存,CPU被虚拟过。不是KVM。链接能量也不大。节点在西雅图,对环太平洋比较好。但是延迟也能到200多左右。可以选择节点,这个算是对我们最优的节点了。好了。需要的东西,1、paypal或者信用卡账户去买个VPS2、电脑,能操作终端推荐使用linux。或者在windows上使用putty,每个客户端登录的话,都需要rsa.pub 认证的。好了,我已经有了DO的VPS了。剩下的就是去deploy了。We can get help from:http://www.linuxfly.o 阅读全文
posted @ 2013-09-14 01:05 spaceship9 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 1: what is egg? what's the shape of it in details?2: can egg run like this http://item.taobao.com/item.htm?spm=a230r.1.14.292.oWuKmi&id=18179492853&_u=k3b0km341f9or this http://item.taobao.com/item.htm?spm=a230r.1.14.74.Ju2JvE&id=22641556660&_u=k3b0km3673c?if i need this, thenhtt 阅读全文
posted @ 2013-08-20 04:12 spaceship9 阅读(208) 评论(0) 推荐(0) 编辑
摘要: please follow the tutorial from the official site :) http://flask.pocoo.org/docs/You could download the zipped file from this site : 下载离线版doc ,将更加方便查看。You can download the documentation in other formats as well:as PDFas ePubas .mobias zipped HTML要搭建博客,就需要至少有几个工具。1、搭建博客的工具——————python,建议搭配virtualen.. 阅读全文
posted @ 2013-08-08 13:05 spaceship9 阅读(2192) 评论(2) 推荐(0) 编辑
摘要: 真是很好的东西,有很多有益处的东西。有template引擎,有flask自己带的g (用来处理访问与数据库打开关闭的)有flask自己的处理session的功能自带的jinja2模板引擎也是比较容易懂的。语法也不是很难。模板引擎设计比较科学,也比较符合python之道。即便是博客,也要了解博客的关系。还是比较给力的。提交表单后--》数据发送到数据库--》然后返回一个页面还是原来的带有表单的页面,不过这个表单的页面里面又实打实地是从数据库中取到的数据。在数据库中已经在表单提交的过程后被添加了。很有机的结合在一起。运用模板引擎的extend 拼接够能,能让多个模板相互继承,这真是jinja2的给力 阅读全文
posted @ 2013-08-08 03:16 spaceship9 阅读(395) 评论(0) 推荐(0) 编辑
摘要: 主要是为了能大量的减少文件使用空间,为了能节约带宽。那么就用了7z的压缩方式。这里,使用了7z的压缩方式,硬生生的将一个10k多的图片压缩成了3k左右的包。图片是不好压缩的,这个压缩比比zip gzip bzip 等好很多。请查阅 7z 命令的用户手册这里,我给放出了几个简单的example,一看就会用。example 1 非常详细啦,一般用不着这么多的 flag options.所以,我一般都只用7z a -t7z -mx=9 something.7z apicture.jpeg而没有用上面的dictionary 或者LZMA 因为还暂时没有必要。经过这么一压缩,图片都被很努力的缩小了70% 阅读全文
posted @ 2013-08-06 02:55 spaceship9 阅读(970) 评论(0) 推荐(0) 编辑
摘要: hexdump 是一款非常简单的有效的将别的形式的文档转换成十六进制的工具。最详细的使用说明都在 man hexdump 里面,请自行查阅。这里我摘出几个常用的例子,一目了然:这里我做了一个实验,是将我用 7z 压缩的图片转换成了十六进制的文档,在这里请看用法:关于怎么用7z压缩或者用p7zip解压缩,请看我的这篇博客:http://www.cnblogs.com/spaceship9/p/3239734.html一定要仔细阅读 man hexdump 中的一些有用的examples输出的这些文档可以保存成文件或者别的形式都可以。之所以这样用,是为了未来直接调用串口发送十六进制的目的。或者管道 阅读全文
posted @ 2013-08-06 02:45 spaceship9 阅读(1164) 评论(0) 推荐(0) 编辑
摘要: 发送十六进制比较直观,可以在上位机中直接获取十六进制的数据,然后在在上位机上将十六进制HEX转换成BIN(二进制)或者DEC(十进制)就十分简单有效了。下面是在Arduino上怎么演示直接发送16进制。详细请参考官方说明:http://arduino.cc/en/Serial/Print代码如下:char tmp[] = "hello world";void setup(){ Serial.begin(9600);}void loop(){ { Serial.println("In DEC:"); Serial.println(tmp[1],DEC); 阅读全文
posted @ 2013-08-06 02:34 spaceship9 阅读(12220) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 23 下一页