Archive

Tag Archives: sayanchowdhury

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.

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. 🙂

For last few days, I was working on implementing a feature where the users who log in through the social log in methods in Transifex can choose a username, when logging in for the first time. Logically, I had to add in a step in the transifex social_auth_pipeline to display the user with a form to enter the desired username, before the user is created. django-social-auth provides us with Partial Pipeline where one can halt the pipeline process and ask the user for more data, and then resume. As mentioned in the docs:

It’s possible to cut the pipeline process to return to the user asking for more data and resume the process later, to accomplish this add the entry social_auth.backends.pipeline.misc.save_status_to_session (or a similar implementation) to the pipeline setting before any entry that returns an HttpResponse instance

The example below can be used implement partial pipeline

SOCIAL_AUTH_PIPELINE = (
...
social_auth.backends.pipeline.misc.save_status_to_session,
app.pipeline.redirect_to_basic_user_data_form
...
)

After the pipeline resumes, by default the pipeline is resumed from the next entry after save_status_to_session but this can be modified by setting the following setting to the import path of the pipeline entry to resume processing

SOCIAL_AUTH_PIPELINE_RESUME_ENTRY = 'social_auth.backends.pipeline.misc.save_status_to_session'

This comes handy when the user inputs an invalid/duplicate data and one need to cut the pipeline process again. After implementing this feature, I submitted the patch to upstream and hope to get it accepted.

REFERENCE: http://django-social-auth.readthedocs.org/en/latest/pipeline.html

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.

%d bloggers like this: