Linux

How to set up reverse proxy for single web server using Squid

For high-traffic web servers, there are many approaches for extending scalablity. Reverse Proxy is one of those approaches especially for servers with lots of static files, e.g., images and other media. These static files usually are never changed over time. Storing many thousand files in normal filesystem is not efficient due to limitation of inode lookup in large directories. However, it is possible to tune up the overall performance without modifying the existing codes to prevent too large directories. It is the reverse proxy. You don't need to buy it because it is available for free in Squid. In this case, I only focus in the case that you have a single web server. If you have multiple web servers, you need to adjust the setting a little bit.

How to work with MSSQL in Python on Linux

Actually, I like to work with SQLite or MySQL because they are so very easy to find and work with. However, sometimes we might need to work with Microsoft SQL. Working with MSSQL on MS Windows is quite easy. There are so many drivers on that platform. Unfortunately, I am living on Linux, Ubuntu Feisty Fawn, and my favorite programming language is [Python][]. As a result, I have to find a way to contact MSSQL through Python.

How to use ntfs-3g on Ubuntu Feisty Fawn

I have upgraded to Ubuntu 7.04 Feisty Fawn for a week without problem. However, today is the first chance that I have to mount external HDD via USB. The external storage is automatically mounted via pmount by internal ntfs driver bundled with linux kernel. As a result, I was unable to make any changes to the device. In Edgy, I installed ntfs-3g using packages from external repositories. Anyway, Feisty provides more configurable approach.

wxPython - A Simple Application

A thread at Codenone has been discussing about how to programming with Button in wxPython. In conclusion, there were 2 questions.

  1. How to fire an event to a specific button whenever Return or Enter key is pressed?
  2. How to specify TAB order to TextCtrl?

In fact, I have never developed GUI program for so long. I guessed as follows.

  1. Set the button as default.
  2. Specify tab index.

Above answers are just partially correct.

Save your eyes by dark theme

I guess that all of us may live all day all night with computer, e.g., desktop or laptop, and we are happy. Anyway, I have just found that this life style may be dangerous in some cases. Most of the problem will happen to our body especially one of the most important one, the eyes. Working with computer generally needs your eyes for recognizing things on screen. In contrast, your screen may be harmful to your eyes. For my case, I have lived with computers more than 12 years from CRT to LCD. Yesterday, I went to a hospital for checking every parts of my body and of course, the doctor informed me about my eyes.

How to tune network parameters for high performance network

Linux is one of the best operating system. Its default settings are almost perfect especially network parameters. I said almost because they are not completely perfect for all situations. Actually, it works perfectly on many situations, e.g., desktop, workstation, and server. For such a normal server, Linux is sufficient for all of us. However, in high performance computing area, the default settings might be not enough at all. So we have to tune network parameters to obtain the top performance.