Read my book

I wrote books about Webpack and React. Check them out!

Wednesday, April 21, 2010

Colorama + Preview of Django 1.1 Testing and Debugging + Harmony Gallery

One of the features I wanted to implement for my terminal project, yet failed to do properly at the time, was coloring of output. I know it's easy to handle terminal colors is easy on *nix. The situation is very different on Windows, however. ipython has managed to solve this problem but so far there hasn't been a library that handles the issue, till now. Enter Colorama! :)

I gave it quick go and managed to get it work with no particular problems. It was just a matter of executing init and setting color at print as instructed by the documentation. There is one slight issue. If you have colored some segment of text, it resets to white instead of gray that might be expected on Windows.

It probably isn't that hard to fix the issue (just add extra param to init). Even in its current state, the library is a well needed addition to the arsenal of a Python coder.

Django 1.1 Testing and Debugging

I received a message informing that I there is a new book to review on its way. This time I will be taking a look at "Django 1.1 Testing and Debugging" by Karen M. Tracey, PhD. You can find more information about the book here. There is also a free chapter available.

By the looks of it there should be quite a bit of useful information in the book. I'm particularly excited to see how it manages to cover different areas of testing. There appears to be some useful information on production (Apache and mod_wsgi) as well.

Harmony - Development Gallery

I mentioned about my development on Harmony briefly in an earlier post. Since then I have developed it further, especially UI wise. Slowly but surely it's getting somewhere. I have tried to document the progress in a form of gallery. Expect to see some programmer art! :P