Posts by Year
2019
2017
The Evolution of Trust
After play with this game: http://ncase.me/trust/.
Thinking about smart home
Currently, in 2017, the smart home is like mobile phone or pc at 2000, we use DIY computer at that time, but in 2017, we already use brand computer, so smart...
Softwares for OSX
Some softwares used in my Mac :) updated: 2017-05-18
feed stream build tips
The brief design is
what is pre commit looks like and how to implement it
The pre-commit can find and fix common issues before changes are submitted for code review;
Kudo Box
Anything that has real and lasting value is always a gift from within. — Franz Kafka
Cacheback - asynchronous cache
The fastest code is, of course, code that never runs. — Jacob Kaplan-Moss
2016
重构 django settings
使用 Django 的团队,总会面临 settings.py 配置文件臃肿的问题,并且随着第三方引用涉及的配置增多及多项目存在冗余配置时,这个问题更加突出了
Sync typos between two Macs
I think every programer or writer may face this scenario, when we write some text in mac, the OS may detect typo for us. So we need train the OS to learn tho...
K3cloud web API
K3cloud is a Kingdee ERP system on cloud which have web api support
How to sync selected tables between two mysql instances in one server
There is detail about how to set up replication in MySQL for db with two different servers: https://www.digitalocean.com/community/tutorials/how-to-set-up-ma...
How to run multiple MySQL instances in one server
Env System: Ubuntu 14.04 Mysql-server: 5.5+
Transfer AWS instance with different region and different account
Check the speed of each region on http://www.cloudping.info/. AccountA: has the original instance in N. Virginia AccountB: will create instance in Singapore
How to implement two same django project with same user data
Assuming that we have an e-commerce website(ProjectA), and one shop in ProjectA is created by website owner and grow fast. So we want make this shop as an ...
Python e-commerce frameworks
There are a lot of e-commerce frameworks in PHP and one pretty cool in Ruby on Rails(https://github.com/spree/spree), but now I will tell this field in pytho...
2015
Fyuse 效果简单分析
Fyuse 展示效果
How to implement read only and write once for s3
What we want is our mobile can upload files to our s3 bucket, as people can decompile the client code to get the token, we need to prevent the abuse of s3, a...
Use parse for push notification
Strategy use empty string(‘’) for broadcast notification; use custom key(user_unique_id) for direct notification. When user first launch the app, we can...
Python sandbox resources
Idea comes from tryruby.org, it’s an online ruby tutorial.
About json format
We always want to see the json data pretty, so there are a lot of ways to achieve this.
2014
Docopt - Command-line interface description language
When we want a user-friendly command-line interface
2013
Component based web in Django
Goal Fast product development and iteration Code reusable and readability Easy for testing component organise code and enable reusable(self containe...
Play with Alfred
Alfred 是一款 OSX 下的效率软件,类型系统的 Spotlight,但强大许多,默认快捷键:option + space
About monitoring
WARNING: 刚刚关注,一些地方理解不完善,算是给出一些思路,需要使用者详细了解各个优缺点
about-api-docs-and-console
API 开发的功能是核心,但对开发者友好的文档及可调式的控制台则必不可少,这个关系着开发效率,沟通以及可维护性
study-golang
最近对 Golang 很感兴趣,列下学习中认为不错的资源(学习中,自己并未完全看过,有问题请指出,多谢)
Redis high availability
由于 Redis 本身不提供高可用,我们只能寻找其他方案啦
iphone-debug-with-charles
针对 http 的监听
Python development and production
因为 Python 作为系统的基础库,经常被用到在很多系统或第三方软件中
jq - command-line JSON processor
jq 就像是 linux 下的 sed 命令一样,不过他是用来处理 json 文件的
Influence by others
1. Change Your Word Change Your World - three years ago from purplefeather
TMiddleware - middleware for tornado
很多场景下,使用 middleware 可以大大简化服务的流程,并降低不相关功能的耦合度
Tracking memory leaks with dowser
Dowser in tornado
Tempfile in Python
很长一段时间,我们有一台虚拟机每隔一周就会无法响应,只能重启解决,当时初步分析是文件描述符过多引起的
Traps in PonyORM
website: http://ponyorm.com/ useage: http://doc.ponyorm.com/ tracks: http://stackoverflow.com/questions/16115713/how-pony-orm-does-its-tricks/16118756#161187...
2012
Biking on weekend
骑行线路如下:
Error when install hubot
1. nodejs 版本问题,这个在安装 hubot 时,会提示,5-7,需重新安装
Blog based on GitHub
As a lot of blog has introduced how to build a blog based on GitHub