Category Archives: English Articles

A little play with HTML5 – 2.5D RPG Map Engine

Recently, I want to play those cutting edge HTML5 technologies for fun, especially on game developing. I think it would be really interesting to write some cool games with HTML5. Therefore, I took one night to wrote a simple prototype … Continue reading

Posted in English Articles, Javascripts | Tagged , , , , | 1 Comment

Plurk.com is hiring

Are you good at Python programming? Are you a Javascript master? As a developer of Plurk.com, here I want to say it loudly – We’re hiring! For more details, please reference to: Help Spark a Social Revolution – Plurk Opens … Continue reading

Posted in English Articles, Python | Tagged , , , , | 2 Comments

Zero-downtime service migration

When I am running my website, now.in, I did encounter a trouble.  That is, when there is a bug in the production server, then I need to restart them.  Sounds fine, right? Just to restart a server.  Yes, for most … Continue reading

Posted in English Articles, Python, Unix-Like, 分享 | Tagged , , , , | 1 Comment

Logy – a central logging system for Python

I’m glad to announce my new open source project:Logy. Logy is a simple lightweight central logging system for Python. When do you need a central logging system?  Well, when you have many servers online, and they are running different python … Continue reading

Posted in English Articles, 分享 | Tagged , , | 1 Comment

Po translate – automatic translation tool for .PO files

It is kinda hateful to translate .PO files from Traditional-Chinese to Simplified-Chinese, most of the meanings are identical but different in simplified word or traditional word.  It is not a very difficult to translate.  But however, it is still an … Continue reading

Posted in English Articles, Python, 分享 | Tagged , , , , , , | 1 Comment

A tool for applying iptables safely: apply_firewall.

Have you ever done something stupid with iptables command which like blocking you self from accessing the SSH?  Yes, I have.  Most of administrator knows that is dangerous to change iptable rules remotely, with a little typo, you might have … Continue reading

Posted in English Articles, Linux, Python | Tagged , , , , | 1 Comment

Open the browser, and here comes the computing power

This is really an awesome idea. Open the browser, and here comes the computing power. Imagine that you can open the browser and rent 10 machines, get everything done on them. Deployment? Software installing? No, the only thing you need … Continue reading

Posted in English Articles, 分享 | Tagged , , , | Comments Off on Open the browser, and here comes the computing power

Simple tool for rotating nginx log file

#!/bin/env python “””Simple tool for rotating nginx log file @author: Victor Lin (bornstub@gmail.com) blog: http://blog.ez2learn.com “”” import os import shutil import optparse import datetime import logging import subprocess log = logging.getLogger(__name__) def main(): parser = optparse.OptionParser() parser.add_option(‘-p’, ‘–pid’, dest=’pidFile’, metavar=”FILE”, … Continue reading

Posted in English Articles, Python | Tagged , , , , | 1 Comment

How hateful it is to develop a web application which runs correctly with different browsers?

Like this: You have to run different browsers for testing the web-page.  What’s more? You have to run those stupid IE browsers under VirtualBox or some virtual system.  Moreover, different detail behaviors of JavaScript/CSS engine drives you crazy, especially IE. … Continue reading

Posted in English Articles, WTF | Tagged , , , , | 1 Comment

A simple workaround for installation problem of PIL under virtualenv

I encountered a problem when I am installing PIL under a virtualenv.  I installed it with easy_install, the output said it was installed, but however, I can’t import it under the virtual environment.  I got an ImportError when I tried … Continue reading

Posted in English Articles, Python | Tagged , , , , , , , | Comments Off on A simple workaround for installation problem of PIL under virtualenv