Archive

Tag Archives: __2hack3r

Hi there! It’s been a long time since my last blog post. In the break, I was facing my semester exams, and I felt better stay away from my laptop rather than books. Though other reason of not remaining online was my Nokia C5 mobile got pick-pocketed 😦 and I didn’t have any mode to remain online. After the my exam ended, I again bought the same mobile and started on working on transifex. I had already written some code before the exam so that anonymous users can access to the files through web-interface. But, mpessas and rtnpro suggested me to work on allowing anonymous access through the API and write some tests for the same.

So, after the exams this was my first task in hand, I went through the Transifex APIv2 docs and made some changes in the code to get the job done. I also wrote the test with the help of @rtnpro. I was also facing problem with the notification settings bar in the profile settings page. Though the ENABLE_NOTICES settings was set to True. The notification settings bar was not showing up. After the studying the code for the templatetag settings, I found out that the templatetag itself was the cause for the issue. Moving the templatetag inside the content_main block in templates/userena/base_userena.html solved the issue.

In the mean time, I read about the revised version of the Microsoft Translation API. Earlier, the Bing AppID was enough to get the work done. But now, the Bing AppID is deprecated and is no longer supported. To use the Microsoft Translator API, one has to obtain an access token using Client ID and Client Secret obtained after registering an application at Azure DataMarket and use it for the calls to the Microsoft Translator API. The process of obtaining the access token can be seen here . The Microsoft Translator API is well documented and it help me a lot. Currently, I am working on implementing the new Microsoft Translator API in transifex.

I am also currently working on the feature approved by jkal to we allow users to set their username after the first login through the social method in transifex (Facebook, Google, Twitter and LinkedIn).

For some time now, I started working up on Dorrie. Dorrie is a web application which enables users to build a Fedora/Spin.It is a Free Software licensed under the GNU Affero General Public License v3 or later and written using Django/Python.

After successfully downloading and deploying Dorrie from GitHub, I found out that it was showing an error “invalid arguments to setopt” in the /basic/ page. So after googling for few minutes I came to know the error was arising because setopt was receving uni-code as the argument in place of string So, after the modification of the code, I sent the patch upstream. Later, Shrink, rtnpro and I were discussing on Dorrie so rtnpro came up with the idea of making the code modular and dividing the codes in files based on type of settings. He also told of introducing django-addons into Dorrie as it adding a true plug-n-play functionality to our own Django applications and he assigned me the job. Since, it had been quite sometime I had worked on Git, I had forgotten some of the commands so I had to google the commands again and write out the patch. I sent out the patch upstream the following day. Here is my Dorrie clone on GitHub.

Today, the second day of the workshop started by 10:30 a.m with all the students waiting beforehand for the workshop to begin. kushal started-off the discussion with vim-editor. The students were really excited on learning the new commands in vim because it just seemed magic to them and they were really impressed with it. As the second session began kushal gave a talk on more advanced topics on python on How to download files, display files in current directory,etc. In the end, we showed up the Fudcon Tempe and Pune video to give the students a boost up.

Today, we the members of DGPLUG (Gaurav, Chandan, Biraj and I) organized a Python Workshop in our college. The workshop was taken by kushal. The workshop started at 11:00, with a talk on ‘Introduction to Linux, Free Software Movement and Fedora”. This interaction made the students aware about the topic on how they can start off contributing to Linux.
Then, we moved to the Labs, the students got a hands-on with Python. kushal covered the most of Python. He also discussed how to edit a program using vi editor. The students were encouraged by distributing fedora-keychains for those who gave good responses. At the end of the session, kushal distributed off fedora-stickers. We four also got our our first fedora Tee-Shirt :). We also discussed to start on a weekly dgplug physical meeting to come-up with more contributors.The session ended by 5:30.

Just like last year, this year’s Mukti was also filled with fun and frolic. Mukti is the annual FOSS festival organised by the GNU/Linux Users Group of NIT Durgapur. Mukti 2012 was held on 3-5th Februar 2012.There were lots of events like Codecraker, FreeMesh,FreePL etc. Students and Foss enthusiast from in and around Durgapur come to this three day festival.

On the first day, gaurav and I left for Mukti a bit lit along with some other 1st year students. On reaching the we met with rtnpro and after the inauguration ceremony, rtnpro talked to newbies and gave a comparatively small talk on django. In the evening, we went over to the KDE development workshop by Smit Shah, where he enlighted us his experiences in the KDE Community and how to contribute to it.

Next day, rtnpro, aavrug, chandan, and I, along with some guys from NIT DGP discussed on Transifex, mainly on how it works, what is it purpose, how Transifex is written etc. I also wrote some patches during the workshop and pushed it for review, we skipped the Android Development workshop by Ravi Vyas as it was very crowded so we decided to ship it for the hackfest. The following day, we geared up for the Django/Trasifex by Ratnadeep Debnath(rtnpro). He told us about the Transifex, how it started, said about the team, what does it does etc. He also showed the newbie how simple is too start off with contributing by solving bugs, fixing typos etc.

It was a great time, meeting with FOSSy people during Mukti and also met two of my old pals. I really applaud to all those who have put their hard work,labour and time to make this event a huge success and hope that MUKTI 2013 would be even bigger, greater than this year.

Last week, I started working on the ticket #789 which reported that there should be support for the xliff files with .xml extension. As it was an easy patch with few edits in the configuration file and tests I submitted the patch to upstream for review and they accepted it. 🙂
After that rtnpro directed /me to work on the ticket #673 which reported that there should be a RSS Feed for the project timeline. As I had already worked with RSS Feed in ASKBOT so I had a prior knowledge about the topic. But I went through the topic once again more deeply and got to a lot more things. It took sometime due the festive season in between but submitted the patch for review as soon as possible and got it accepted.
After that I started off ticket #578 but could not complete it as I found that there was a bug in the /project/add/ page which raised the NoReverseMatch exception so I reported this to rtnpro and started working on it and found some more bugs and a typo and finally resolved it altogether and submitted the patch. I also sent a patch regarding a bug in the Manage tab which was losing it’s selection after the sub menu item was pressed.

For some time now, after my exams got over I started hanging going through the source code of Transifex. After some time, I contacted rtnpro and he directed me to work on the ticket #808.
The ticket #808 reported that searching should be made possible not only in the source text but also in the translations.So, I had to go through Complex lookups with Q objects in order to write the patch. I submitted patch upstream for review and got it accepted.:)

%d bloggers like this: