随笔分类 - Linux
摘要:More functionality will be added and runningThis diagram is just an easy chart for people to digest
阅读全文
摘要:mobile to serverin RESTful and TCP/IP way
阅读全文
摘要:For instant message delivering
阅读全文
摘要:Modern flowchart for mobile, server, and etc.. communicationThis has something to do with these source codes:For the server side,https://github.com/xr...
阅读全文
摘要:I am using pybrain on my Linuxmint 13 x86_64 PC.As what it is described: PyBrain is a modular Machine Learning Library for Python. Its goal is to offe...
阅读全文
摘要:Are you a hacker?How to build another QQ/Wechat/whatsapp/skype/imessage?Let's go through this!!!!Materials:A linux/unix/windows/mac computer/server, a...
阅读全文
摘要:There is a link about how to re-set password.http://database.51cto.com/art/201010/229528.htmwords in short,two lines mysql> UPDATE mysql.user SET p...
阅读全文
摘要:linux/unix系统的分区表结构位于硬盘开始的MBR上。MBR上大小为512bytes。MBR=446B启动信息+64B分区表+2B分隔符=512字节前面的446bytes作为启动信息,启动信息跟分区表相关。启动信息会告诉BIOS在启动的时候,按照启动信息去找分区表里面的相关分区加载文件。在如果...
阅读全文
摘要:VPN is a great thing when you are forced to be stuck somewhere.on ubuntu, you need to check out whether your system supports TUN/我从这里等得到一些灵感http://www...
阅读全文
摘要:there are several procedurewhich include:1. Install the packagessudo apt-get install php5 php5-gd php5-cgi php5-mysql libapache2-mod-php5 apache2 mysq...
阅读全文
摘要:Live broadcasting with arduinoget a pc , make it run linux. make arduino catch the weather sensor and then transport the information to the PC side. P...
阅读全文
摘要:run some tasks which could look like CRON within linux/UNIX in python.Here's a demo which run on ubuntu12.04sudo pip install apschedulerthen1) run a t...
阅读全文
摘要:Here is a brief introduction and package of dotfiles for linux/unix user.I think there are enough informative description about the package.Here is th...
阅读全文
摘要:I did a demo about how to deploy other python apps served by a 'supervisord' daemon processor on github.Here is the link. http://github.com/xros/super...
阅读全文
摘要:因为想把一段文字分词,所以,需要明确一定的词语关系。在网上随便下载了一篇中文小说。随便的txt小说,就1mb多。要数数这1mb多的中文到底有多少字,多少分词,这些分词的词性是什么样的。这里是思路1)先把小说读到内存里面去。2)再把小说根据正则表达法开始分词,获得小说中汉字总数3)将内存中的小说每段POST到提供分词服务的API里面去,获取分词结果4)按照API说明,取词素材:1、linux/GNU => debian/ubuntu 12.04/Linuxmint 13 Preferred2、python3、中文分词API, 这里我们使用的是 http://www.vapsec.com/f
阅读全文
摘要:There is a project which is deployed within django. So its authentication system is built from Django itself.But ususually we want to get good use of it. And we don't want to build another system to manage 'user' information.So, we can use django within tornado. I mean use tornado more.W
阅读全文
摘要:Supervisor 管理后台守护进程参考原文如下:http://codinn.com/people/brant/notes/110948/做了一些注释+++++++++++引用开始++++++++++++自己开发的应用往往也希望做到随系统自动启动, 而且启动之后最好还能方便的控制其停止/重启. 传统的做法是在/etc/init.d/下建立启动脚本, 但这个方法非常繁琐, 容易出错, 而且不同服务器/不同版本的配置又有差异.通常需要借助一些辅助工具. 常用的管理工具有runit,daemontools以及用 Python 开发的Supervisor. 其中以 Supervisor 最为易用,
阅读全文
摘要:原文地址:http://www.ruanyifeng.com/blog/2013/12/getting_started_with_postgresql.html期间,作者有写错的地方,已经做更改了。除了纯净的命令行来操作外,还可以使用pgadmin3 可视化工具来操作。我尝试了一下,感觉非常不错。结...
阅读全文
摘要:原文地址:http://www.cnblogs.com/pumaboyd/archive/2008/08/11/1265416.html红色的为标注信息+++++++++++++++++引用+++++++++++++++++++++>PY提供INI配置文件的操作关于配置文件,很直观的感觉就是XML文件。对于XML文件的使用大家还是很喜欢的。但有时候只是简单的一个程序,实现一个简单的name:value关系。用XML文件就没这个必要。这种要求很符合MS的INI文件格式。所以这里主要介绍一下对INI文件的操作方式,而且最近写的第一个PY应用程序也是使用了INI什么是INI 文件PY所支持的I
阅读全文
摘要:I spent several days on building a system about this. And make it work well with serveral thousand lines of codes.
阅读全文

浙公网安备 33010602011771号