Software

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.

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.

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 mootools with jQuery in Drupal

If you have used Drupal for a while, you may notice jQuery in Drupal 5. If you visit www.ubuntu.com, you may also notice that it looks like Drupal right now. According to this post, Matt Nuzum confirmed that it is Drupal. This site looks very beautiful. The most interesting is that it uses mootools which is another javascript library. Actually, mootools should conflict to jQuery. So the question is how to use mootools in Drupal site.

Web Application and Weapon

I have a chance to think about developing web application and a question just popped in my mind. Actually, programming looks like fighting in a war which we are going to move forward to the goal. There are so many obstacles along the way. However, just like in the war which we have a set of weapons, we have libraries, frameworks and systems instead. The question is what weapon such each library or framework or system look like in the war.

Caution! Below are just my intuition so read at your own risk and don't trust me.