随笔分类 -  Python

摘要:The brand new 2020 MacBook Pro comes with an ARMv8 based 64-bit chip called M1. It comes with a compiler clang version 12. Here we are going to build 阅读全文
posted @ 2021-02-10 06:34 spaceship9 阅读(169) 评论(0) 推荐(0) 编辑
摘要:原文章于此:https://www.cnblogs.com/cnkai/p/7642787.html 有个人修改与改正 Python操作Redis数据库 连接数据库 StrictRedisfrom redis import StrictRedis #!/usr/bin/env python # co 阅读全文
posted @ 2018-06-01 11:55 spaceship9 阅读(724) 评论(0) 推荐(0) 编辑
摘要:The default Vim provided by Ubuntu 16.04 even did not have Python support. That's insane. I say, what if I wanted to use Vim as a Python IDE in Linux 阅读全文
posted @ 2016-06-22 21:43 spaceship9 阅读(344) 评论(0) 推荐(0) 编辑
摘要:As what it shows, let's do it. 阅读全文
posted @ 2015-12-01 15:11 spaceship9 阅读(139) 评论(0) 推荐(0) 编辑
摘要:ElasticSearch stores each piece of data in a document.That's what I need.Using the bulk API.Transform the raw data filefrom data.jsonto benew_data.jso... 阅读全文
posted @ 2015-11-18 15:07 spaceship9 阅读(434) 评论(0) 推荐(0) 编辑
摘要:freenect libsWhere is the resource?Here :P : https://github.com/OpenKinect/libfreenectTo make sure you were not installing the old libfreenect stuff s... 阅读全文
posted @ 2015-04-24 10:25 spaceship9 阅读(1272) 评论(0) 推荐(0) 编辑
摘要:Let us have fun with CrunchBase API.What can CrunchBase API give us? They said: https://developer.crunchbase.com/docs ( By the way, their API web... 阅读全文
posted @ 2015-04-17 15:17 spaceship9 阅读(329) 评论(0) 推荐(0) 编辑
摘要:Nginx is so good at delivering requests to many others. Good!Now let's use the nginx upstream module to finish this.http://nginx.org/en/docs/http/ngx_... 阅读全文
posted @ 2015-04-14 17:11 spaceship9 阅读(228) 评论(0) 推荐(0) 编辑
摘要:yowsup, in pythonhttps://github.com/tgalal/yowsuptry this:http://hacktracking.blogspot.com.ar/2013/02/yowsup-cli-send-whatsapp-messages-from.htmlif yo... 阅读全文
posted @ 2015-01-08 04:16 spaceship9 阅读(523) 评论(0) 推荐(0) 编辑
摘要:what is mosquitto?check this out!http://mosquitto.orgwhat is MQTT?check this out.http://mqtt.orgsudo apt-get install libc-ares-dev libc-ares2 -ywget -... 阅读全文
posted @ 2014-11-23 18:35 spaceship9 阅读(368) 评论(0) 推荐(0) 编辑
摘要: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... 阅读全文
posted @ 2014-07-28 02:09 spaceship9 阅读(581) 评论(0) 推荐(0) 编辑
摘要:alembicit's tutorial:http://alembic.readthedocs.org/en/latest/tutorial.html 阅读全文
posted @ 2014-06-30 21:35 spaceship9 阅读(193) 评论(0) 推荐(0) 编辑
摘要: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... 阅读全文
posted @ 2014-06-30 21:27 spaceship9 阅读(321) 评论(0) 推荐(0) 编辑
摘要: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... 阅读全文
posted @ 2014-05-16 14:20 spaceship9 阅读(621) 评论(0) 推荐(0) 编辑
摘要: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... 阅读全文
posted @ 2014-05-15 10:12 spaceship9 阅读(223) 评论(0) 推荐(0) 编辑
摘要: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... 阅读全文
posted @ 2014-05-15 09:55 spaceship9 阅读(383) 评论(0) 推荐(0) 编辑
摘要:因为想把一段文字分词,所以,需要明确一定的词语关系。在网上随便下载了一篇中文小说。随便的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 阅读全文
posted @ 2014-03-19 14:21 spaceship9 阅读(5479) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2014-03-06 17:31 spaceship9 阅读(398) 评论(0) 推荐(0) 编辑
摘要:Supervisor 管理后台守护进程参考原文如下:http://codinn.com/people/brant/notes/110948/做了一些注释+++++++++++引用开始++++++++++++自己开发的应用往往也希望做到随系统自动启动, 而且启动之后最好还能方便的控制其停止/重启. 传统的做法是在/etc/init.d/下建立启动脚本, 但这个方法非常繁琐, 容易出错, 而且不同服务器/不同版本的配置又有差异.通常需要借助一些辅助工具. 常用的管理工具有runit,daemontools以及用 Python 开发的Supervisor. 其中以 Supervisor 最为易用, 阅读全文
posted @ 2014-03-03 09:36 spaceship9 阅读(1353) 评论(0) 推荐(0) 编辑
摘要:原文地址:http://www.ruanyifeng.com/blog/2013/12/getting_started_with_postgresql.html期间,作者有写错的地方,已经做更改了。除了纯净的命令行来操作外,还可以使用pgadmin3 可视化工具来操作。我尝试了一下,感觉非常不错。结... 阅读全文
posted @ 2014-03-03 09:21 spaceship9 阅读(517) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示