Deeper into Python

12.13am and I just don't want to stop programming. Enjoying Python that much. Just writing a script to parse an uncooperative mail log, but I keep getting deeper into Python and every time I do a google search for something like "python logging" I uncover another gem which I either implement or I make a mental note of: how easy it is, and how useful it will be when I start building web apps using Python (and Django).

Edit: And fast. Processing a file with hundreds of thousands of lines and it just feels so fast...especially compared with PHP which I know would run slower (no, not very scientific, but I've written a PHP script that does exactly this before).

Further edit: I think Ruby and Python are clearly head and shoulders above PHP as programming languages. Python definitely has some quirks though. Ruby is like a banana smoothie going down your throat. Python is that same smoothie but with a few lumps because it didn't get blended quite enough. PHP is gravel.

Installing MySQLdb for Python on 64 bit Snow Leopard

On 64 bit Snow Leopard (Mac OSX) in particular, get the latest version of MySQLdb for Python.

You will then need to make sure you have a 64 bit version of MySQL installed (I installed it from source), and that the /usr/local/src/MySQL-python-1.2.3c1/setup_posix.py file (this is the particular version I have) is using the correct mysql_config. Either make sure your PATH is correct or edit that file (suggested here).

Of course you also need to have the 64 bit version of python installed.

Frustrated users should also read this (note how accurate the article title is).

Compiling Python on Mac

./configure 
--prefix=/usr/local/python 
--enable-framework=/usr/local/python/frameworks 
--enable-universalsdk=/ MACOSX_DEPLOYMENT_TARGET=10.5 
--with-universal-archs=3-way

Totally forgotten why this is the best way to do it...

Habari apologies

I do like habari. I don't post often, but when I do I'm impressed with how easy it is to use habari. I'm also still impressed with how well it is written. I know I've only written a couple of plugins (and no themes), and that was a while ago, so I apologise for not contributing more. This won't be able to change unti about mid-year unfortunately.

On another note, the habari development seems to have slowed significantly. I'd love to see 0.7 released soon...

Just updated this blog to r4063.

Using toggl

Trying out toggl for some work I am doing with two other people. It's ok, has some useful functionality, but it's not great. I don't like how the tasks are stuffed in a small panel over on the right. There is a timer here, which is a nice idea, but twice now I've left the timing running over night which means I just have to go back and estimate my times.

I think that basically it's just not simple enough – I spend too much time thinking about how to use it properly. I'll do a proper usability analysis on it sometime soon, but I think it's fulfilling the needs of the people who wrote it, but not fulfilling my needs.

Back to the ol' 37signals maxim of build it for yourself – I'll have to build one for myself (using rails 3.0 beta I think...)
← Previous  1 2 3 4 … 10 Next →

About

User

Remember me on this computer?