_UnPrEdictAbLe_

All that you need to find out about what am I upto.

Archive for the 'Utility software' Category


Operating systems, iYum and Flash 9

Posted by Anurag on 24 October, 2006

Introduction - Operating systems and me

Its been long since I wrote an entry here, but this one has a purpose rather than being a pass time. I’ve always been interested in operating systems. Ever since I knew about computers, I wanted to make my own operating system. MSDOS used to be my dream at a time, then Windows 3.1, then Windows 95, Windows 98, Windows ME, Windows 2000, Windows Xp, Redhat 7.2, Redhat 7.3, Redhat 9, Fedora Core 2, Fedora Core 4, Ubuntu, Kubuntu and now Fedora Core 5. I’ve been updating my knowledge at each step, changing the dream everytime.

BASIC and the OS dream

In the beginning when we began with ‘BASIC’ (Beginners All-purpose Symbolic Instruction Code), we learnt to write ‘graphical’ programs in it. We wondered that all world has been programmed in BASIC and that learning to create a ‘WINDOW’ using the graphics of BASIC will enable us to write an operating system. As if thats the only missing link in our knowledge. Back then, our computer instructors used to say that operating systems are very complex things and can’t be made by someone as such. I accepted his point of view, but didn’t let the dream die.

When I came to IIIT

When I entered IIIT, the exposure to a new environment, different from the old and familiar Windows, which I had been used to since 1994, gave a new outlook to the whole thing. And the fact that Linus was able to make an OS of his own made my will even stronger. Though now we know that Linus only made the ‘kernel’ of the whole operating system, which is only about 3% of it (I read it somewhere).

Anyways, this was just to tell you about my strong desire to work in the field of operating systems, though I haven’t been able to do so. This was also to tell you about my familiarity with both platforms, as some people stereotype me as a ‘Linux person’. I use what I like more and its not completely impossible that I’ll switch to Windows Vista if I find it better.

iYum Repository

When Sugandh mailed about having a IIIT Yum repository, I was very excited about it. I had some idea about it. Initially, Sagar and I began working on making the Yum Repository for Fedora Core 5 - 32 bit. Sugandh talked to the faculty and got us resources. We installed a new system there, and I wrote some shell scripts initially. Later Sagar helped me out with some python too. Finally we made a mechanism to create Fedora Core 5 -32 bit repository. It downloaded about 7700 packages from the internet, about 12 GB of data.

And a set back

But you see, bad scripting and organisation resulted in a catastrophy. The script automatically deleted all packages naming them as ‘old versions’. This was a huge set-back. We decide to revive. I am very good at this I’d admit - reviving. People generally lose interest, hope, faith - after a crash. I, on the other hand, rebegin from wherever it is. Even if it means building from ground up.

Reviving

Sagar almost lost faith, while I was getting fascinated by the whole thing. It opened a new path of imagination for me. Besides, I was getting in touch with the power of Python, which I never acknowledged or experienced before. I designed a new mechanism for the Yum Repository.

New plan

Why should Yum Repository download all packages from everywhere? Why should it download any RPM for Fedora Core 2 if there isn’t any PC running it? Why should 100 others with Fedora Core 5 wait because Fedora Core 2 is being updated? Everything was so straightforward, ask the users to generate the requirement, and download only that.

The design
I designed the two tier architecture of the iYum network. The client runs a service in the background, constantly reading what packages the server ‘can’ download, comparing with what packages are old or not-installed. It sends back a list of those packages to the server. The server process combines the lists from various users and downloads the requirements. Thus, an automated system takes birth, which can expand itself as an when needed, as well as shrink itself when a particular operating system is getting obsoleted.

The actual work

I kept on telling Sagar to work, but he had his other commitments like his DIP project, BTP, etc. So, slowly and gradually, I coded the entire thing. The iYum client service, made in Python as well as the whole server and its webpages. The iYum client is currently a non-GUI thing, but my vision is to make it into something like synaptic or yumex. I might use yumex code to do so too. Anyways this is just a dream.

Flash player 9

Adobe took over Macromedia. The new version of Flash, Flash 8 came into picture. But, as Linux is not a popular platform, they didn’t work towards developing a version for it too. As a result, all Linux users were forced to use the old version, Flash 7. Many internet sites insisted on Flash 8, like the popular news site, www.ibnlive.com. Finally, Adobe has kept its promise to release a version 9 for Linux. It prerelease versions include a browser plugin and a standalone utility to run Flash 9 on Windows, Mac and Linux. Enjoy! Here is the link.

BTP

On 9 of October was a great day for me. Jawahar sir scolded me like anything for not working on the project. Initially I was very depressed and angry, but now I am happy that he did so. It brought me on the right track again, the track of working! He explained me very nicely about the BTP viva and report today, and about the future plans. I’ll be giving it my best during these couple of days. Wish me luck!

Fedora Core 6 and Vista

I heard FC6 was coming today, haven’t seen any news about it. The Fedora website is down for maintainance. Regarding Windows Vista, I am very keen. Recently I’ve read many blogs supporting and against Vista. I want to see what has Microsoft offered this time. Hopefully it’ll be something good.

Anyways, bye for now. Ciao.

Posted in Development, Events at IIIT, Life at IIIT, Linux, Project work, Studies and Courses, System software, Utility software | 1 Comment »

My mood swings and some techno crap

Posted by Anurag on 18 May, 2006

Human brain is an amazingly complicated thing. It can create virtual scenarios out of thin air, it can come up with thoughts which have no meaning at all and still depress you, it can come up with imaginations and ideas which no one ever thought about (using their brains, lol), it can make you feel romantic or excited or what ever in the world’s most gloomy and dirty places, it can make you imagine that something is great or beautiful or wonderful or amazing, though it might not be so, the brain can …. eh.. it can do what ever your brain can think of.

Last few days, I have been kind of irritated and/or depressed about being in Noida. Well, if you judge materialistically, everything was fine. An office with AC/PC/net, freedom to do anything in the evening, two new cities, Noida and Delhi. But then, it got a little monotonic,

  • come out of office
  • go to the Centre Stage Mall
  • eat or see a movie and return
  • sleep early and wake up early.

Maybe that wasn’t that exciting, but then, it wasn’t like I should decide to return to IIIT. Actually, the problem is, I was feeling bad that I couldn’t work on the BTP, which Jawahar sir was eager about. Mixed with some other feelings, last Sunday I had decided to quit the job at Kritikal. But then, I stayed on. Its feeling a little better today, lets see.

Kingsun DKU-5 USB to serial cable

Well, as Nikhil has this cable, I wanted to make it work on FC2 which I am using. I googled again with some success. I found out that ‘cypress’ driver which is a loadable module in the kernel supports this cable. But for that we need to patch cypress_m8.c and cypress.m8.h in KERNEL_SOURCE/drivers/usb/serial directory. The patch wasn’t compatible with the kernel source I had got. So, I read the patch file and manually patched the two files. Finally the kernel compilation failed when it reached the patched files due to some errors. Frustrated and tired, I finally gave up. Here is the link to the patch (nokia ca-42) (http://gnome.dnsalias.net/patches/). Though it mentions that it works for the CA-42 cable, it might work for DKU-5 (http://www.qbik.ch/usb/devices/showdev.php?id=3565).

Bon Echo alpha 2

A new alpha version of Firefox 2 has been released called Bon Echo Alpha 2. I downloaded and installed it. It has prebuilt session saving crash recovery, a suggestion system for ‘google search’ (like intellisense), and is much like the good-old firefox. Most extensions say that they are incompatible with it, but that’ll change soon I think. Due to lack of extensions and themes compatibility, I am back to Firefox 1.5.0 for the time being.

Conclusion

Rest of life is fine. Its Alvy’s birthday on 20th. I’ve to get a gift for her, lets see. My code isn’t working well, so rest of the day is just hard work!

Ciao.

Posted in Hardware, Moods, Outside IIIT, Thoughts, Utility software | 5 Comments »

tv.iiit.ac.in

Posted by Anurag on 14 March, 2006

How did it happen? Another idea by our good old Jawahar sir. Tarun was already recording news using some windows software whos license expires every 16 days! He knew it could be done in Linux too, he had done it before. Finally, first we came up with a portal so that we can test how people like the interface. Still runs on http://172.17.9.33/videoserver

The next step was the harder one. Making a recording possible in Linux. It wasn’t difficult as we thought. But then, first we had to tune the channels. Those hardware frequencies given ‘human recognizable’ names. We tuned about 40-45 channels, of which the one available are of good reception. Then, as we all know, Linux and audio are the two things that never meet. We did anything, left, right, center, /dev/dsp, /dev/dsp0, alsamixer, kmix, aumix, rpm, ffmpeg, nothing made audio come out! Finally, somehow we figured out the solution and it was recording.

The first video recorded was of ‘GREAT QUALITY’ but unfortunately 40 MB per 20 seconds. We kept trying different tweaks, codecs, but the compression ratio didn’t come down for the ‘best possible’ quality. Not the disk space but the ‘feasibility of download’ was the criterion in mind. Finally, we decided to drop the quality till we find a solution. And the odd channel switches might be caused by the operator himself as there is no other way one can change the hardware frequency that the card is using.

We’re planning a discussion forum kind of thing to be added there. And as and when the requirements start looking obvious, we’ll make changes. Expect a DF coming up soon. And thanks for all your compliments.

Ciao.

Posted in Development, Events at IIIT, Hardware, Life at IIIT, Project work, Utility software, tv.iiit.ac.in | 3 Comments »

P2P sharing, KDE look and feel and me

Posted by Anurag on 3 August, 2005

Okay, gaim is not working these days. So, no yahoo, no chat.. and a lot of time! Just keep playing with the system.

I was looking at some p2p network sharing software. I found two excellent softwares, DCGUI and LIMEWIRE. DCGUI is a client for Direct Connect protocol based networks and Limewire connects to Gnutella network. DCGUI is Qt/C++ based and Limewire is Java based.

I downloaded
dcgui-qt-0.3.2-0.lvn.1.3.91.src.rpm (rpm.livna.org)
dclib-0.3.2-0.lvn.1.3.91.src.rpm
LimeWireLinux.rpm (www.limewire.com)

and did…
rpm -hiv dc*.rpm
cd /usr/src/redhat/SPECS
rpmbuild -bb dclib.spec
cd ../RPMS/i386
rpm -hiv dclib*.rpm
cd ../../SPECS
rpmbuild -bb dcgui-qt.spec
cd ../RPMS/i386
rpm -hiv dcgui*.rpm

and then…
rpm -hiv –nodeps LimeWireLinux.rpm
–nodeps was required because I did not install JRE but there was a JRE because I had JDK1.5.0 installed and its bin directory was in the system path variable.

Rest of the time I spent installing some themes and other stuff from http://www.kde-look.org.

At the end of the day… I realized that neither gaim, nor kopete will work. What worked was yahoo messenger for Linux(RH9).
rpm -hiv rh9.ymessenger-1.0.4-1.i386.rpm (http://messenger.yahoo.com)

Works, works bad… but still.. it works!!

Posted in KDE tips and tricks, Utility software | No Comments »