Tips and Tricks
How to setup fglrx for Ubuntu Feisty
It took me so long to setup fglrx driver for ATI Mobility X300 in my laptop, IBM Thinkpad T43. Actually, the ATI open source driver comes with Xorg 7.2 works very well except only 3D acceleration. The open source driver does not support 3D acceleration for ATI Mobility X300. As a result, Google Earth is useless because I can't even drag the earth to see my home. There are so many howto but none of them worked for me even this one. Now I found the exact problem and its solution to make fglrx 8.35.5 work perfectly on Ubuntu Feisty.
- sugree's blog
- 7 comments
- Read more
- 31269 reads
How to format decimal number in Python
I got a question about formating decimal number in Python by adding comma in appropriate positions. The most recommend approach is to use built-in locale support. In my opinion, this is not too difficult to implement and there are many approaches. I just want to give an example here as a guideline.
- sugree's blog
- Add new comment
- Read more
- 4051 reads
My son's first program
I am a programmer and I also would like to teach all I know for years to my son. He is 5 years old and know a little bit English. Actually, I want to try teaching Python but it might be too difficult for a kids who are not familiar to English language. I don't know which the best language for kid but my first programming language is Logo so I decied to give it a try.
- sugree's blog
- 2 comments
- Read more
- 3410 reads
How to use GCD in RSA
As I posted about Greatest Common Divisor last week, I also promised to discuss the application of GCD. Note that if you are interesting in Ruby, I recommend to read about GCD in Ruby at this blog. Actually, GCD is very simple concept. The only application of GCD I known for many years is to find Prime number. Theoretically, a number x will be a prime number if its GCD is 1. Actually, what we used for recent years are running GCD seamlessly. For example, private key infrastructure or PKI is heavily used GCD for finding a pair of keys.
- sugree's blog
- Add new comment
- Read more
- 2696 reads
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.
- sugree's blog
- Add new comment
- Read more
- 1470 reads
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.
- sugree's blog
- Add new comment
- Read more
- 1589 reads
Recent comments
3 years 4 weeks ago
3 years 9 weeks ago
3 years 9 weeks ago
3 years 10 weeks ago
3 years 10 weeks ago
3 years 12 weeks ago
3 years 12 weeks ago
3 years 12 weeks ago
3 years 12 weeks ago
3 years 13 weeks ago