Python

How to post HTTP request in Python

Once upon a time, I went to attend a conference. The organizer provided wifi access to all attendances which one has to login via web before using this free service. My problem was that I would like to use secure shell. I don't want to browse web. I don't need to start web browser just for logging in. So I wrote a simple and short python script to login automatically.

BTQueue 0.1.4 is coming soon

Eventually, BTQueue is coming very soon. In addition to later information regarding the change of core engine to BitTorrent 4.20.9, I have just created a new branch for changing the core engine to BitTorrent 5.0.7. I am pretty sure that it is possible to add priorities support in short period.

How to generate combinations in Python

I was asked to help implement a kind of reusable combination generator in Python given the maximum number and the group size. Combination is widely used in high performance computing especially for searching in state space. Note that it means solving problem by brute force technique. So I wrote several codes.

Programming Language and Martial Art

หลังจากคราวที่แล้วว่ากันเรื่อง ภาษาสำหรับเขียนโปรแกรมกับอาวุธ คราวนี้เรามาว่ากันเรื่อง ภาษาสำหรับเขียนโปรแกรมกับวิทยายุทธ์ ก็อย่างที่เคยบอก เรื่องนี้เป็นเรื่องละเอียดอ่อนอันดับต้นๆ ของโลก ผมแค่นึกขึ้นมาได้ตอนขับรถกลับบ้านเท่านั้น เท่านั้นจริงๆ ช่วงนี้คงจะอ่านนิยายกำลังภายในมากเกินไป มีทั้งจอมคนแผ่นดินเดือดและฟงอวิ๋น สนุกจนไม่ต้องหลับต้องนอน แต่นิยายสมัยนี้ไม่ค่อยมีกระบวนท่าโดดเด่น ผมเลือกมาเฉพาะที่คนส่วนใหญ่จะรู้จักเท่านั้นพอ

Turtle Interpreter in Python

The second computer science homework at Codenone is to develop a turtle interpreter. In fact, I don't like to write this kind of code. It has been so long since I wrote ultra mini assembler and compiler both manual and using lex and yacc. However, the ruby version inspired me. The ruby code looks very pretty and the author also convinces about how easy in Python. So I would like to try to solve this homework in Python.

Comparison of Java, Python and Ruby

What is the best programming language? This is one of the most popular question for anyone who are going to study new language. I also used to ask myself the same question. As a consequence, it is a kind of a war. The latest thread regarding this question was the hard fight and its copy at Blognone. The truth behind the scene is that you must not expect to get any fairness out of any comparison. There are so many criteria and assumptions which might help some languages. However, it is still worth to try.