now browsing by category
Django Unit Testing with Mocks
Unit tests shouldn’t be treated like lesser code. It should be as clean as possible and don’t ever hesitate when it comes to refactoring the unit test code. It can save you a lot of trouble in the long run.
Python SysAdmin script for emails
Here’s some code I wrote maybe over 2 years ago for managing an email account database on my server. And yes, the mysql database password is in there. It’s a good thing the username no longer exists so the password doesn’t work. Oh and the server is offline because IRead More
PyCharm: Markdown mode can display a Preview
I just discovered something great and something that will help me document projects. Sometimes I wonder how the README of a project will look on github or bitbucket and the only way for me to check is to push my changes, fire up the browser, go to the repo andRead More
Presentation: Why PyCharm
Just created a short presentation for work about why I’m checking out the PyCharm IDE. I wrote a post earlier about it. Update: found a nice post by a VIM user who switched to PyCharm and found it awesome how integrated everything is.
Validating File uploads in Django 1.0
While working on Clapton, the Django-based Content Management System (CMS), I had to write validation code for file uploads. This is needed because Clapton contains applications specific to media types such as documents which requires Word Documents, PDFs or OpenDocumentFormat files, and podcasts which requires MP3 or OGG files. But how doRead More