Blogs

Comparison of ruby and python line by line (1/3)

According to an article in Linux Journal #144Reuven M. Lerner demonstrated how to extend web services using other web services in Ruby. This article is very interesting and I love it so much even it is Ruby. I don’t have much experience in Ruby so I wonder how it could be implemented in Python. That’s the point drived me to post this blog. The original article shown 3 short programs which query prices by given ISBN from Skokie Public Library and . The first one is just very simple and short program for searching ISBN in Skokie.

Danger of monitoring enterprise network

I wrote several articles to deploy monitoring software in enterprise network such as Cacti and Nagios. These monitoring tools are based on so-called passive monitoring technique. In other words, they were activated to monitor and collect network metrics very fixed interval, says 5 minutes. There are another technique called active monitoring which is much more powerful. By actively monitoring enterprise network, you can track all bandwidth usage per IP for both local and remote ones. Sometimes, it was called sniffer. This technique usually used for short-period debugging network related issues, e.g., wrong network configuration, worm, DDoS, and etc. Anyway, it is possible to actively monitor enterprise network to track bandwidth usage or to find bottleneck which needs to run all time, day and night. ntop is my favorite for long-term network monitoring tool. It is free, feature-rich, and easy to install.

Virtual IP, Virtual Host, Virtual Domain, Virtual User

According to previous comment which pointed me to an article about Virtual Hosting in Pure-FTPd, I think that there are some misunderstanding about these ambiguous terminologies: Virtual IP, Virtual Host, Virtual Domain, and Virtual User. Before continue reading below paragraph, I just want to note that this post is based on my understanding. If you think it is incorrect, please let me know.

  • Virtual IP - One machine has many IP address and many domain names. One IP address has an unique domain name. Actually, this is not the feature of application but it is a TCP/IP specfication. An service may bind only on one network interface, one IP address.

Generate .pot files of custom modules in Drupal

Since I developed my own modules in Drupal, now it’s time to translate them into Thai. In order to translate custom modules, I need to generate .pot files from all PHP codes. Drupal provides extractor.php in the translation templates or you may directly get it from CVS. Note that you need PHP command line interface to run extractor.php. In Ubuntu, you can install php4-cli or php5-cli which match to your installation. To generate .pot files, follow below instruction.

Ctrl Ctrl to search

Some people deployed Google Desktop but not Google Sidebar. I don’t know why because I love Google Sidebar. Anyway, it was a bit difficult to access Desktop Search when you want. Google realized that and . Whenever you want to search for anything in desktop, just simple press Ctrl key twice. You might see Quick Search Box and then press Ctrl key twice again to hide the box.

Technorati Tags:

Cluster Suite 4 and Global File System 6.1 for CentOS-4

This's old news. I found some announcement from centos offical site. The centos 4 is released Cluster Suite 4 (CS) and Global File System 6.1 (GFS) for support i386 and x86_64 architecture

You can find more information and documents in http://www.centos.org/modules/news/article.php?storyid=108

 Wink