Author Archives: euler

An multiple application pyramid project configuration

In the deployment of pyramid project, I don’t want to setup a separate process for each pyramid application. So it comes the requirement to deploy multiple application under one project. Here’s an example configuration for a multiple app project. The … Continue reading

Posted in python | Tagged , | Leave a comment

Install an OpenVPN server and connect to it on windows

Follow the tutorial on linode to install openvpn: http://library.linode.com/networking/openvpn/debian-6-squeeze Attention: Both openvpn and dnsmasq shall be installed on the server. And on the file /etc/openvpn/server.conf, the following line must be exist and not commented : push “redirect-gateway def1″ By default … Continue reading

Posted in linux, security, troubleshooting | Leave a comment

How to install a network HP printer on Arch linux

The printer package does not work as it should be on my arch for HP laser jet P2035n. It costs me some hour to get it to work. Here’s the steps. 1). Install cups service pacman -S cups cups-pdf hplip … Continue reading

Posted in linux, troubleshooting | Tagged | Leave a comment

Could not chdir to home directory /home/USER: Permission denied

We changed the home folder to /data/home/USER. When I ssh to our centos server. It shows error “Could not chdir to home directory /home/USER: Permission denied”, however loggin ok. I must manually run cd ~ to go to the home … Continue reading

Posted in linux, troubleshooting | 3 Comments

Open source libraries in chrome 17

Credits David M. Gay’s floating point routines homepage dynamic annotations homepage Netscape Portable Runtime (NSPR) homepage Network Security Services (NSS) homepage purify headers homepage google-glog’s symbolization library homepage valgrind homepage xdg-mime homepage xdg-user-dirs homepage BSDiff homepage XZ Utils homepage google-jstemplate … Continue reading

Posted in tech watch | Leave a comment

fetchmail configuration file

fetchmail is a mail-retrieval and forwarding utility; it fetches mail from remote mailservers and forwards it to your local (client) machine’s delivery system. You can then handle the retrieved mail using normal mail user agents such as mutt(1), elm(1) or … Continue reading

Posted in linux | Leave a comment

Pyramid FAQ: from the beginning to production deployment

I started to write pyramid applications 3 weeks ago, as a python and pyramid novice.  Now the application goes to production.  In the development process, many errors and problems happened to the application, although the pyramid documentation is very good, … Continue reading

Posted in python, troubleshooting | Tagged | 4 Comments

A quick start for python pyramid

Installation of pyramid 1.Install python 2.7/3.x 2.Install setuptools For windows, please add C:\Python27\Scripts to PATH variable. For ubuntu: apt-get install python-setuptools 3.Install virtualenv $easy_install virtualenv On windows, download virtualenv-1.7.tar.gz, decompress, and run : python setup.py install create a virtual working … Continue reading

Posted in python | Tagged , | Leave a comment

The concurrent.futures module in python 3.2

A brief introduction on concurrent module in python 3.2 (from python docs) Code for creating and managing concurrency is being collected in a new top-level namespace, concurrent. Its first member is a futures package which provides a uniform high-level interface … Continue reading

Posted in python | Leave a comment

How to convert string with timezone info to date in python

In python, time.strftime() and time.strptime() can be used to format a date to string, and convert string to date. But it is thought buggy in the pyhon strptime() at 2.x version. For example, if you invoke strptime(), It does not … Continue reading

Posted in python, troubleshooting | Tagged | Leave a comment