I wrote a Python script to solve Problem 230 on Project Euler. You can read the problem via the link. It involves a sequence known as Fibonacci Word . The sequences goes as follows: A B AB BAB ABBAB BABABBAB ... The above sequence of words is Fibonacci in…
Maintaining a session is something most web apps need to do, and all web frameworks implement some sort of session management system. Pylons allows you to specify the type of session your web app should use: database, file, memcached, etc. The great thing…
I started playing with a Python web framework called Pylons . I've been using Django for the last little while, but after hearing many positive feedback about the Pylons, so I decided it's time to get my hands dirty. Although I've barely scratched the surface…
Update: April Fools :) Finally, we can do without the annoying "whitespace is signigicant" crap. You can import a new feature called braces from the future module. For those who don't know, the future module contains new features that are not yet included in…
I ran some queries through Google Insights , just for fun. One of the queries I ran was python vs. java vs. ruby vs. erlang vs. cobol , under the Programming category. Here's the resulting graph of growth relative to category. Ignore the dark blue line, it's…
Java is slow . And by slow I don't mean it's execution speed. I'm talking about development speed. Java forces you to plan too much . Don't get me wrong, there's nothing inherently bad about planning. The problem is that innovation and planning don't always…
In this post, I will show a method for analyzing Problem 28 on Project Euler that goes beyond brute-forcing (even though that is an option). If you're not familiar with Project Euler, here is a description from its website: Project Euler is a series of…