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 · 2 min · 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 · 1 min · 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.py arg1 arg2 blah blah ..your program’s output.. blah blah ...

September 22, 2011 · 2 min · 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 · 1 min · 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. The first problem I faced is that the spellcheck button did not respond on the first click, but on the second. As expected, on the first click, auto-save was triggered. But this was not the case when I clicked the Undo button. First the auto-save and then the undo function would be executed. I was not able to come up with an answer to explain this. I was tinkering with the code and then accidentally I solved the problem. I just changed the order of the buttons. Initially I had – Spellcheck button , Save Button and Undo Button. Now, I have – Save button, Spellcheck button, Undo button. Weird! You can have a look at the change at https://bitbucket.org/rtnpro/transifex/changeset/b59880cadf67 . If you have an explanation for this, please comment. ...

July 1, 2011 · 3 min · 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. django-test-coverage was built on top of coverage.py to meet requirements of django tests. ...

June 12, 2011 · 2 min · 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. And then I started to work on fixing the existing tests. To avoid confusion, I ran test on each component separately. Only a few were containing errors like projects, lotte, release, resources, projects, txcommon, suggestions, charts, etc. ...

June 11, 2011 · 2 min · Ratnadeep Debnath

It feels good to blog again

Well, it has been quite some time since my last blog. The last days of my college, yes, they were very hectic. I had to complete my college project. Well, I had to handle a couple of preventions and seminars, mostly by myself ( although in a group). I finally implemented scatternet formation and routing and built a relay chat kind of thing on top of that. I named it Bluetooth Relay Chat. It worked quite, except for the interface not being that WOW. One can send public messages and private messages as well. I am maintaining the code as a private project in bitbucket. I will release the code soon. ...

June 9, 2011 · 2 min · Ratnadeep Debnath

Learnt to use SSH tunnel - Thanks to BSNL 3G, it won't let me login to trac.transifex.org

For some days, I was not able to login to trac.transifex.org. I though that it might be a browser issue. So, I deleted the browser data and tried to login using firefox, opera and google-chrome, but I still couldn’t login. Then, I established an ssh tunnel from my computer to a remote server and set up proxy settings in my browser to use the ssh tunnel. And now, I can login correctly. This shows that it is not a browser issue but a connection issue. I think something is terribly wrong with BSNL 3G servers and their maintainers. ...

March 19, 2011 · 1 min · Ratnadeep Debnath

These days are hectic

For some days, I have been working like anything for my final semester project in college, because I have to. I have also some tasks to do for transifex. When will the college be over? But I have to find some time, anyhow.

March 17, 2011 · 1 min · Ratnadeep Debnath