-
Recent Posts
Categories
- algorithm (1)
- automation (3)
- c++ (2)
- cloud (1)
- design (6)
- git (2)
- java (10)
- jenkins (1)
- linux (17)
- python (6)
- search engine (1)
- security (1)
- server (3)
- tech watch (6)
- test (3)
- troubleshooting (7)
- Uncategorized (2)
- virtualization (3)
Archives
- March 2012 (4)
- February 2012 (6)
- January 2012 (2)
- November 2011 (5)
- October 2011 (1)
- August 2011 (3)
- July 2011 (8)
- June 2011 (10)
- May 2011 (4)
- April 2011 (6)
- March 2011 (1)
Links
Category Archives: troubleshooting
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
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
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
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
Solution for nginx “504 Gateway Time-out”
When my website routes path /mybackup to pyramid application.”504 Gateway Time-out” occured. And I set several fastcgi parameters in the nginx.conf a following: fastcgi_connect_timeout 300s; fastcgi_send_timeout 300s; fastcgi_read_timeout 300s; fastcgi_buffer_size 128k; fastcgi_buffers 8 128k; But it doesn’t work. And then found … Continue reading
Why Load Balance not work in Hessian C# client calling to hessian service?
When I was migrating our application from C# to Java, our Java service moved ahead of the client application. The client application is in C#. And we export service through Hessian service. So we call java hessian service through C# … Continue reading