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

Cloud - The future metier of technology.

First Phonic Interview-


Our first phonic conference conversation with IBM officials  triggered on 1:00 pm sharp with a voice – profound ,experienced and personality beyond admiration of our mentors –  Devkant Aggarwal <>,Prafulla P Ranadive <>,Hari A Duche<>.

Both our mentors showed a spark of acceptance and satisfaction for our work which was the design module 1 .

We were greeted with serious bombardment of questions some of them were-

1>.Difference between LAN and CLOUD?

2>.What is Cloud Computing?

3>.What are its benefits?

4>.How my IDS is feasible ?

5>.And to give a full description of our proposed model?

There was no diffidence among us . We answered every question in a gallant way .

One of the official questioned us about the feasibility of our IDS and its adaptability to new intrusion (unknown)  .Though we were perplexed we came out with the answer in a diplomatic way which kept our team…

View original post 55 more words

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

What is django-userena?

django-userena is a Django application that supplies your Django project with full account management. It’s a fully customizable application that takes care of the signup, activation, messaging and more.

How to install django-userena?
You can install the latest version of django-userena using:
pip install django-userena

Source Code:

How to setup django-userena?
Add AUTHETICATION_BACKEND tuple as given below:


Add userena, gaurdian and easy_thumbnails to your INSTALLED_APPS settings of your project.

The URI’s
Userena has a URLConf that sets all the url’s and views for you. This should be included in your project’s URLConf. For example, if you wants the urls to show up under ‘/accounts/’, add the following under urlpattern in you URLConf.

(r'^accounts/', include('userena.urls')),

Required Settings
1. Django-guardian requires you to set the ANONYMOUS_USER_ID setting.


2. Set AUTH_PROFILE_MODULE point to the model that is your custom made profile.For example: set AUTH_PROFILE_MODULE to the path of MyProfile

from userena.models import UserenaBaseProfile

class MyProfile(UserenaBaseProfile):
    user = models.OneToOneField(User,
    favourite_snack = models.CharField(_('favourite snack'),

3. To integrate with Django, you need to alter three settings to reflect in you URI.
For example, if your userena lives under ‘/accounts/’

LOGIN_REDIRECT_URL = '/accounts/%(username)s/'
LOGIN_URL = '/accounts/signin/'
LOGOUT_URL = '/accounts/signout/'

References:django-userena documentation

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


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.


%d bloggers like this: