Programming

Ruby and BitTorrent

As of today, we know what BitTorrent is and how to use it. The original implementation of BitTorrent has been written in Python by Bram Cohen. From the BitTorrent, Python is now one of well-known language wider. Thanks! The original implementation then has been modified and extended to support more sophisticate features and some of them are so popular right now, e.g., ABC and BitTornado. Then Java, C, C++, and C# have been used to implement in different ways, e.g., Azureus, libbt, BitComet, uTorrent, and etc. Where is Ruby?

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

This post is the last part of this comparison. I am going to demonstrate how to develop XML-RPC server and client in Ruby and Python. As I said earlier, I don’t know much about Ruby. Below ruby codes are based on an article in Linux Journal #144. I just tried to develop similar program in Python. There are 2 parts; server and client. Let me start from the server.

Libjingle 0.3.0

Voice over IP, VoIP, is a trend for very near future. There are so many VoIP standards but the key component for developing a VoIP application is the voice codec. Standard voice codecs are not as good as acceptable comparing to telephone quality. Most of good and great codecs are patented. Fortunately,  gives high-quality GIPS from Global IP Sound to all of us free of charge. Though, if you concern about licensing, Libjingle 0.3.0  the high-quality GIPS or GIPS Voice Engine Lite which is totally free.

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

In the first part of this series, you see how ruby and python retrieve data from given URL and then parse the results using regular expression. In part two, the code is extended to query prices from  through .

  1. Specify executable
    Ruby
    #!/usr/bin/ruby
    Python
    #!/usr/bin/python
  2. Import modules
    Ruby
    require ’net/http’  

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.

Web Framework Statistics

This week could be the Web Framework week here. I have just found a good statistics regarding web framework. The first one is about Python Web Framework comparing to others. Arggg. There are so many frameworks for Python. Zope is the most popular one. The second is Python Template Engine Statistics. Zope is the first one again. And the last one, Programming Language Statistics, Java is the first and Python is the 7th.