Archive

Linux

For last 10 days, I was pretty busy attending and arranging FOSS events in Durgapur. One of them that I got the chance to attend was Mukti ’13, the annual national level technical symposium on Free and Open Source Software of the GNU/Linux Users’ Group NIT Durgapur held from 2nd-5th February 2013. Just like last year, this yearโ€™s Mukti was also filled with fun and frolic. There were lots of events like Codecraker, Lipi, Hack the Code etc. Students and Foss enthusiast from in and around Durgapur come to this four day festival.

On the first day, Chandan and I reached at NIT Durgapur around 2pm to attend the Python Workshop by Kushal Das. I was glad to see a lot of first years came to attend the workshop by bunking their college classes. A lot of second year also came out to attend the workshop along with Souradeep, Apoorv, Zubin. After the workshop Kushal da took us to a nearby restaurant for dinner ๐Ÿ™‚

We stayed up at NIT hostel for the night. The very next day, the Python Workshop began at 2pm and Kushal da covered the rest of the topics along with some questions. At the end of the day, we took some snaps and returned back to our college. We thought of attending the MediaWiki workshop but it got cancelled last minute.

But, as always it was a great time, meeting with FOSSy people during Mukti. 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 2014 would be even bigger, greater than this year.

This slideshow requires JavaScript.

This year thought to wish “Happy New Year” in different style. So, here is a Brainfuck program to wish you the same. ๐Ÿ™‚

# Written by Sayan Chowdhury

+++++ +++++
[
    > +++++ ++
    > +++++ +++
    > +++++ ++++
    > +++++ +++++ 
    > +++++ +++++ +
    > +++++ +++++ ++
    > +++
    > +
    <<<<<<<< -
]

> ++ .
>>> --- .
> ++ .
.
> + .
> ++ .

<<<<< -- .
>> ++++ .
>> -- .
> .
<<<< - .
> .
---- .
> ++ .
>>> .

Last day, while copying some movies into the NTFS drive my laptop suffered a sudden shutdown.

After restart, I was unable to mount the drive in my Fedora box and it showed a creepy error instead.

Error mounting: mount exited with exit code 13: ntfs_attr_pread_i:
ntfs_pread failed: Input/output error
Failed to read NTFS $Bitmap: Input/output error
NTFS is either inconsistent, or there is a hardware fault, or it’s a
SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows
then reboot into Windows twice. The usage of the /f parameter is very
important! If the device is a SoftRAID/FakeRAID then first activate
it and mount a different device under the /dev/mapper/ directory, (e.g.
/dev/mapper/nvidia_eahaabcc1). Please see the ‘dmraid’ documentation
for more details

This was when ntfsfix came as knight to fight the battle.

ntfsfix sub-packaged under ntfsprogs is a really nice tool to solve NTFS problems in Linux.

Letโ€™s say you need to recover /dev/sda6
Then run: sudo ntfsfix /dev/sda6

On 8th September 2012, the day dgplug completed it’s eight successful years, we (Gaurav, Chandan, Biraj, Piyush, Souradeep, Apoorv and I thought of organizing a workshop for the students of our college. We mainly thought to enlighten the students with the ideas of using GNU/Linux. Then, they would be told on “How to install GNU/Linux”. We named the workshop as “Peeping Out of Windows, Looking into the world of Linux”.

We started off with our registration at 9:45am outside our P.G.Building Seminar Hall. At first, We thought there would be a handful participants but just few minutes later we were overwhelmed with interested participants. We had to close our registration because the hall had already ran out of capacity. We started off with the seminar at 10:30am with apoorv giving the opening speech. We had grouped up Apoorv, Souradeep, Piyush and Biraj to give the talk on “What are the benifits of using GNU/Linux”. After the seminar ended, it seemed that the participants were convinced with the idea. The seminar concluded with an Q/A session for the students enquire about the doubts they faced.

After the first seminar, the students enjoyed the tea-break. At around 11:30am, Chandan, Gaurav and I started with the second session on “How to install Linux(Fedora)”. We gave a slide followed by a live demostration on how to install dual-boot Fedora from the root level. Then we had an interactive session with the participants where their FAQs were co-heartedly invited and we tried our level best to solve out their queries keeping in mind our motto to make them well acqauinted with the very OS. We also informed them about the hands-on workshop that we planned to make the participants install the OS by themselves.

We began the “Hands-on session” at 2:30pm at our CS/IT Seminar Hall. The participants started out pouring a bit late. As the participants came, we divided them into groups and started out with the installation session. Some of them needed a fresh installation, some came out to upgrade their system and other queries. Meanwhile, the participants were served with refreshments.At the end we distributed the Fedora Live ISO, Full Installation ISO. We packed up at 5:30 pm and returned back to our nest tired and exhausted.

We are really thankful to Asst. Prof. Dinesh Pradhan and Pratap Sir and everyone who indirectly helped us out for the proper execution of the workshop. We are also planning to continue with this workshop at our college in near future.

This slideshow requires JavaScript.

Today, it’s 8th September 2012 and eight years back on 8th September 2004, dgplug(Durgapur Linux User’s Group) was formed with the formation of the dgplug mailing list.

I was first acquainted with this group during a python session taken by Kushal Das. He enlightened us with the various prospects and channelized us on how to contribute, implement and share our knowledge in open source software. Kd da(as we always call kushal) taught me right from the grass root level the very basics of contribution towards open source softwares. dgplug also gave me my favourite mentors kishan and rtnpro who guided me through the various technologies in this field which made me capable to contribute to various open source projects. Though, kishan was always helped me through peaceful ways. But, rtnpro sometimes took the road to violence and gave some nice kicks and punches through IRC. With their help I was able to do my first ever upstream contribution to rtnpro’s project “wordgroupz“.

Moving ahead with my journey with dgplug, I started inspiring out students in my college and shared my knowledge with my fellow mates, juniors and seniors so that the telos of dgplug is achieved and the group becomes larger, stronger and sharper day by day because “Sky is the Limit”.

Since I have joined dgplug, 3 springs have passed and I am a strong believer that being attached to this group will surely help me achieve greater heights in my career. I am really thankful to all who helped me anywhere during this very journey of mine. Lastly, I would love to thank anurag to helped me expressing my feeling towards dgplug through words. ๐Ÿ™‚

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.

%d bloggers like this: