Kushal Das

FOSS and life. Kushal Das talks here.

kushal76uaid62oup5774umh654scnu5dwzh4u2534qxhcbi4wbab3ad.onion

AT LAST, BENGALI :)

After fighting more than 3 hours , I am being able to get unicode problem fixed in my blog. So, now I can blog in Bengali :) বাংলা :) The problem was in the database only, changed all stuffs to unicode there.

No money yet :(

Still the money for the Germany trip is not here. My credit card is full as I paid back some of my friends from whom I took the money for the ticket. Result: I can't even buy my ticket to W.B. to visit my parents.

Fedora 7 in my laptop

Just updated my laptop, took a hell lot of time at end "Finishing Update" screen. After reboot first thing it showed is disk failure :)

fsck showed many errors. At the end , finally, Fedora 7 is up and running :)  I really liked the default KDE look and feel.

cd revisited

Few days back wrote a function 'cd', which later found is not correct. So, came up with a smaller one with no problem (till now :) ).

cd ()
{
if [ "$#" -eq "0" ]
then
    if [ "$eFlag" -eq "1" ]
    then
        changePath
        export eFlag=0
    fi
    builtin cd
else
    builtin cd "$1"
    dname=`pwd`
    bname=`echo "$dname"|grep pyqt4 `
    if [ "$bname" != "$dname" ]
    then
           if [ "$eFlag" -eq "1" ]
           then
                changePath
                export eFlag=0
           fi
     else
           if [ "$eFlag" -eq "0" ]
           then
                QTDIR=/home/kdedev/src/kde/qt-copy
                PATH=$QTDIR/bin:$PATH
                MANPATH=$QTDIR/doc/man:$MANPATH
                LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
                PKG_CONFIG_PATH=$QTDIR/lib/pkgconfig:$PKG_CONFIG_PATH
                QTINC=$QTDIR/include
                QTLIB=$QTDIR/lib
                export QTDIR PATH MANPATH LD_LIBRARY_PATH PKG_CONFIG_PATH QTINC QTLIB
                export eFlag=1
            fi
     fi
fi
}
Total code can be found here.

Mono, Gtk# and ironpython

Todays target was to write a HelloWorld code in Gtk# using ironpython in Mono. you can download the setup file from here.

Got this example. But "import Gtk" failed everytime. At the end Jace found the solution. So, the modified code is:

import clr
clr.AddReference('gtk-sharp')
import Gtk
def delete_event (o, args):
    Gtk.Application.Quit ()

def say_hi (o, args):
    print "Hello, World!"

Gtk.Application.Init ()
w = Gtk.Window ("Hello, Gtk# World")
w.DeleteEvent += delete_event
b = Gtk.Button ("Say Hello")
b.Clicked += say_hi
w.Add (b)
w.ShowAll ()
Gtk.Application.Run ()

The first two lines made all changes, "import clr" and "clr.AddReference('gtk-sharp')"

The Bad Thing (TM) of mixing up one group & another group's event

It is really bad when people mix up with two entire different groups, or call one group's event by another group's name.

I am the coordinator of Linux User group of Durgapur (dgplug). We started this group few years back with the intention of keeping it open for all. We do not work for any college, though most of the LUG members are from Dr. B. C. Roy Engineering College and we had our meetings there only.

There is another LUG in Durgapur for the students of NIT Durgapur. That LUG is a internal group of NIT Durgapur students. Now suddenly one guy from that college, in his SoC application wrote that their annual linux based event MUKTI (which is again not a community based event) is organised by Linux User group of Durgapur, and Linux User Group of Durgapur is formed by NIT students.

I made a reply to that application saying that we, "Linux User Group of Durgapur", is entirely different body and has no association with MUKTI of NIT Durgapur. We don't conduct any closed event. We exist and work for the FOSS movement only. As our group members are working so hard for the Bijra project , it is not going to happen that someone else will show up from from no-where and claiming our work as their.

A same kind of situation is happening for the ILUG-CAL also. Some (don't know how much stable) people suddenly came out with a site started claiming that they are ILUG-CAL. I started working with the ILUG-CAL members from the beginning of my FOSS life. Now those idiots are simply trying to steal the identity, respect of ILUG-CAL. ILUG-CAL is always open for everyone and will be. But if someone want to takeover the whole movement with some false identity , we are not going to sit & relax at home.........

Kalzium tutorial

After two days of work , Kalzium tutorial in Bengali is ready. You can download it from here. Yesterday night, I gave more than 25 takes on this, either sound is not coming properly, or some problem in mixing. I need a good app which can help me in the process of dubbing the tutorials. The video is in ogg theora format, audio can I get in any format. Can anyone please point me to some good app?

Recordmydesktop is rocking as far as the video is concerned, but the sound mixing is not working properly.

My first step to the real world

May be these are not the right words to describe today's experience.  But I feel in that way only. Let me talk about something I learned today.

Suppose you own a school, and you want to do the management in e-way. Though you have enough money, but you can't spend them as salary to hire good computer guys, so what you decide is to hire few consultants, some M$ guys etc. Now those will build some app with some backend database.  Now you may ask some other company to help you to manage all these e-things. So, you will have some meeting with all those guys, then company people will say  that they can not do anything with the database because there is no primary key in most of the tables, and your guys will reply that they can add it with some queries. As you are running such big school, you will certainly have some good/cool guys, who will understand the problem but will not be able solve the problems.

Today's Comment:

All these problems may look like technical, but they are not . These  are only human problem...

No DMA :(

I have "HL-DT-ST DVDRAM GMA-4082N" in my laptop. Few days back I burned first DVD, and it took me more than 1.5 hour :(

So, figured out that DMA is not enabled for my /dev/hdc. hdparm gives:

[root@kdlappy ~]# hdparm -v /dev/hdc/dev/hdc:

 IO_support   =  0 (default 16-bit)

 unmaskirq    =  0 (off)

 using_dma    =  0 (off)

 keepsettings =  0 (off)

 readonly     =  0 (off)

 readahead    = 256 (on)

 HDIO_GETGEO failed: Inappropriate ioctl for device

Tried to enable it by:

hdparm -d1 /dev/hdc/dev/hdc:

 setting using_dma to 1 (on)

 HDIO_SET_DMA failed: Operation not permitted

 using_dma    =  0 (off)

Tried to compile the kernel myself, enabled almost everything under "ATA/ATAPI/MFM/RLL support" in Device Driver area, no good luck. My current kernel is 2.6.19-1.2911.6.5.fc6 Can anyone help me to enable DMA ?

Oh, and hdparm -i gives

[root@kdlappy ~]# hdparm -i /dev/hdc/dev/hdc:

Model=HL-DT-ST DVDRAM GMA-4082N, FwRev=HA01, SerialNo=M00684E5137

 Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }

 RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0

 BuffType=unknown, BuffSize=0kB, MaxMultSect=0

 (maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0

 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}

 PIO modes:  pio0 pio1 pio2 pio3 pio4

 DMA modes:  mdma0 mdma1 mdma2

 UDMA modes: udma0 udma1 *udma2

 AdvancedPM=no

 Drive conforms to: ATA/ATAPI-5 T13 1321D revision 3:  ATA/ATAPI-2 ATA/ATAPI-3 ATA/ATAPI-4 ATA/ATAPI-5

* signifies the current active mode

WiFi@home

WRT54G Linksys WRT54G, configured it with the default firmware. Now want to enable WPA for it.

I am using ndiswrapper for my card, so for connection I am giving:

#iwconfig wlan0 essid <essid>

Now the problem is if I enable WPA, how can I connect ?

#iwconfig wlan0 essid <essid> key <WhatshouldIwritehere?>

or anything else ??