Start testing Transifex

How do you setup Transifex? Here is all you need to know to setup Transifex: http://help.transifex.net/server/install.html http://fosswithme.wordpress.com/2011/10/20/setup-transifex-in-virtualenv/ is another good write-up on how to setup and run Transifex in virtualenv. So, I’d be building on top of that to show you how to start testing Transifex using django-nose. What packages will you need? django-nose, nose, nose-exclude, coverage You can install the above packages using pip install <package_name> Configure Transifex settings to enable django-nose Test Runner...

November 1, 2011 · Ratnadeep Debnath

Regex pattern for c style comments

Today, I am going to discuss my attempts to parse c style comments. For example, //This is a comment<br></br> ** /***This is also<br></br> *** a comment ***/ ** Initially, I came up with a regex for /…/ style comments : <strong>/*.**/</strong> Well, the above expression was not able to parse comments like: <br></br> /*** This is a comment ***/<br></br>``` I googled and came across [http://ostermiller.org/findcomment.html](http://ostermiller.org/findcomment.html) where I found the regex: `<strong>/*(....

October 27, 2011 · Ratnadeep Debnath

Add plug-n-play functionality to your Django project using Django-addons

What is Django-addons? A Django app used to add true plug-n-play functionality to your own Django applications and projects. Django-addons is brought to you by Indifex, the company behind Transifex. Django-addons is a bunch of code that makes writing addon/plugins for your Django project much easier. Add django-addons to your Django project and you can drop all the addons to ‘/addons’ directory. How to install Django-addons? You can install the latest version of django-addons running...

October 19, 2011 · Ratnadeep Debnath

Transifex implements related tag cloud

Lately, I have been working on a bunch of exciting new stuffs for Transifex. I have worked on a tag-cloud implementation which not only shows the popular tags, but also shows tags related to a tag selected by the user. It is pretty useful. It directs the user to select more relevant tags. The tag cloud is refreshed each time the user makes a selection to show the related tags....

October 10, 2011 · Ratnadeep Debnath

Blogging from HTC Sensation

I just installed WordPress for Android in my HTC Sensation. This is a test post from my phone. Posted from WordPress for Android

September 28, 2011 · Ratnadeep Debnath

A brief introduction to coverage.py

Coverage.py is a tool for measuring code coverage of Python programs. It monitors your program, noting which parts of the code have been executed, then analyzes the source to identify code that could have been executed but was not. Coverage measurement is typically used to gauge the effectiveness of tests. It can show which parts of your code are being exercised by tests, and which are not. Getting started: Install coverage: pip install coverage easy_install coverage Use coverage to run your program and gather data: $ coverage run my_program....

September 22, 2011 · Ratnadeep Debnath

Quick start Django development server with HTTPS

Here is a good tutorial to start Django development server with HTTPS using stunnel. http://mgile.com/post/4729505823/django-stunnel

September 14, 2011 · Ratnadeep Debnath

More fine tuned auto save feature in Lotte for Transifex

Lotte is the component of Transifex providing the web UI for the translators to translate online. Well, some time back, I made some changes in the Lotte code so that it has the auto-save feature on by default. It was running fine then and I was happy. Then I added the spellcheck feature in Lotte. Then the things started going not as expected. Actually, the auto-save triggers when the contents of a text area has been edited and it loses focus....

July 1, 2011 · Ratnadeep Debnath

Testing coverage of your Django code

Just writing tests for your Django codebase is not enough. You need to check how much of the code is covered in your tests. For this, there are some tools available. Again, it is not just the number of lines of code tested that matters. What matters is “Are these lines important?”. Well, for this, we have to use our head. covergae is a tool for checking test coverage of python applications....

June 12, 2011 · Ratnadeep Debnath

Fixing unittests for transifex

Last week, I have been working on fixing the existing unittests for Transifex. The Transifex codebase is constantly being updated. So, some of the previous test cases failed. Before this, I had already written a unittest or two for some of the codes that I contributed to Transifex. But I did not study the Django unittest framework deeply for that. This time, it was different. I took my time to go through the Django documentation on testing....

June 11, 2011 · Ratnadeep Debnath