Tuesday, March 07, 2006

How insecure can an OS be?

Avyakt recently compared Microsoft Windows and women. In the same vein, I recently found out what an insecure OS Windows can be.

I recently gave in to temptation and bought a 250 GB hard drive (only S$150!) and decided I might as well give in to my gamer urges as well, and proceeded to install Windows on a partition of the new hard drive (my primary hard drive runs Fedora and Gentoo). I hate dual-booting from the same drive and much prefer to have installations on separate hard drives for independent re/un-installation.

Now, my last computer had this nice "Boot" menu in BIOS - I could select which hard drive to boot from. In my current setup, I have to actually go in and change the boot sequence, which is a pain. So, I figured, that there must be a way to get GRUB to boot Windows off a second hard drive. Off the top of my head, I thought chainloader (hd1,0)+1 would do the trick (set root to 2nd hard drive, 1st partition, and boot from the MBR). Doesn't work.

Turns out Windows must be booted off the "first" hard drive - it refuses to boot if its in second place. So here's the solution:

map (hd0) (hd1)
map (hd1) (hd0)
chainloader (hd1,0)+1


You have to pretend Windows is really on the first hard drive (mapping hd0 to hd1), even though it really isn't (note the chainloader is still given hd1 as a parameter). Only then will Windows boot up.

These comparisons just continue to stack up. It's uncanny.

Cross posted on E-Minor

Friday, March 03, 2006

Sing it for me, Abba...

You can code, on your drive, having the time of your life
Write that script, watch that feed, put in the random seed...

Friday night and the work is slow...
Stuck at the comp no place to go...
Typing in a frenzy, breaking in the spring
You gotta get that ping
Nothing else will get you by
The night is young and the coffee's nigh
With a couple of reboots, everything is fine
You're in the mood for a game
And then you hear that name...

You are the working geek, leaden feet, oh you stupid freak
Working geek, feel the heat, its the hard disk seek
(oh yeah)
You can code, on your drive, having the time of your life
Write that script, watch that feed, put in the random seed...

Thursday, March 02, 2006

What's your poison?


Whats your poison?, originally uploaded by nigham.

Wednesday, March 01, 2006

Game on!

d2linux

Diablo II: Lord of Destruction, on Linux, using WINE. Bliss :) No better way to get high just after a deadline!

OK, here's what I did. I'm using Fedora Core 4, by the way.
  1. Install wine. All you need to do is yum install wine
  2. Run winecfg
  3. Go to the "Graphics" tab. Check "Emulate a virtual desktop", make it 800x600 (max resolution of Diablo II)
  4. Go to the "Drives" tab. Normally C: and Z: should be added. Click on Add, D: should be added, set the path to /media/cdrecorder (or whatever directory you mount your cdrom into)
  5. Insert Diablo II CD. It should automount, otherwise mount it.
  6. I will assume /media/cdrecorder is your cdrom directory. From anywhere outside .media/cdrecorder, run wine /media/cdrecorder/SETUP.EXE
  7. Install as usual. When the installer asks for other discs, simply type eject at another prompt, and put in the new CD. Remember you must mount the CD (or wait for it to be mounted) before clicking OK inside the installer.
  8. Run the video test and choose Direct2D (HAL) as your mode (I ran into problems with Direct3D. Maybe it'll work after some tweaking, but hey, this is Diablo).
  9. Exit the installer.
  10. Insert Diablo II Expansion CD and install as you did Diablo.
  11. It'll complain about not finding the CD drive, forget it for now.
  12. Download your favourite patch from Blizzard.
  13. Download a NOCD crack for your D2LOD version from GameBurnWorld.
  14. Your fake Windows/Diablo directory is most likely ~/.wine/drive_c/Program Files/Diablo II/. Install the NOCD crack as needed into this directory.
  15. In KDE, go to Control Center -> Desktop -> Window Behavior and set Alt + Left Click on Window to Nothing. Unless you want to play Diablo without picking up items.
  16. You're all set. Just run wine ~/.wine/drive_c/Program\ Files/Diablo\ II/Diablo\ II.exe and kick some monster ass!
Cross posted on Eudyptula Minor, a Linux cooperative blog I've recently started contributing to.

Tuesday, February 28, 2006

iCreate

If there's one word you had to associate with Apple, you'd probably make it design; but one word you gotta give to Apple fans is creativity.

Engadget recently held a competition to ask its readers what Steve Jobs will announce tomorrow at an Apple Special event. Well, the results have been posted, the first 2 entries are good but you really have to see the list of entries. Most of them are mind-boggling!

Couple of my favourites...


Jason's iGame


CK's iCube shuffle

Monday, February 27, 2006

Flickr is ticking...

Another day, another awesome app for Mac OS X.

This is tickr, and what it does can only be described as "simple, but profound". Give it a tag, and it will fetch interesting photos from Flickr tagged with the tag. And scroll them at a hypnotizingly slow rate on the right side of your desktop.



I like to look at photos. I've tried a number of ways of doing it - subscribing to photo RSS feeds of Flickr pools, browsing through Flickr or Google Images, and there is always that slight sense of dissatisfaction. There is either too much information, or too little. Too many clicks to get to where you need.

Tickr is just awesome - of course part of its appeal is the Flickr "interestingness" algorithm, because of which it manages to show the best images given a tag. The best part is you need not "do" anything at all - images will just keep coming, you can see them or not, and if you particularly like an image all you do is hover your mouse over it, the scrolling stops, right-click and open the Flickr page in your browser.

And if you're like me and always work with the Powerbook attached to an external monitor (or if you have one of those 1440x900 screens!) real estate isn't a problem. I can forsee my favourites list in Flickr growing and growing.

Sunday, February 26, 2006

Fedora Core 5 Test 3

I've been testing out FC5-test3 for a few days now. Seems to be nice and stable as FC4 was, though with a few annoyances that will hopefully be worked out when FC5 is finally released in mid-March. Here are a few things that caught my attention.

The good
  • Hardware support has improved. I tried to install FC4 and Suse 10.0 on a Dell machine with an ATI X600 video card, and both of them would hang while starting X. FC5-test3 installer has no problems with that.
  • Automounting GUI is much better. In KDE, a desktop icon is created whenever an external drive is attached to the computer (haven't tried it with my PTP camera yet). There is a little green triangle at the bottom right of each icon, which indicates that the device is mounted. You can choose to "Safely Remove" from the right-click menu (wonder where they picked that from), which unmounts the device and makes the green icon disappear.
  • One of the real big pluses for me - Firefox now has full kerning support for Hindi fonts. Actually, this is a bit of a surprise. I have two OS paritions, one with FC4 updated to KDE 3.5.1 and one with FC5-test3 (which has KDE 3.5.1 by default). I have a single home partition, off which I run a downloaded copy of Firefox 1.5.0.1 in both OSes. In FC4, Firefox has problems displaying Hindi fonts correctly, while in FC5, Firefox displays them just fine. I guess they managed to find a way to enable pango in KDE, and make FF use it by default. I tried to do that in FC4 using some environment variable but it didn't help. In any case, this is a big plus and it means I no longer have to load up Konqueror to display Hindi pages.
  • Although the GCC version with this release is 4.1, I think they've installed the 3.3 compatibility libraries by default, so Firefox, for one, just runs right after downloading (in FC4, yum install compat-libstdc++ was necessary).
The bad
  • The KDE screensaver doesn't work. I don't care much for screensavers, but it does matter to me that consequently, "Lock Screen" doesn't work. I'm not sure if this is a problem with my particular install, since its tough to believe that such a basic thing wouldn't be working. I do remember that Red Hat 8 final actually shipped with this issue unresolved. [Bug report]
  • nVidia drivers don't install. nVidia cards and drivers usually work very well for Linux, and installation of binary drivers downloaded from nVidia's site has always been painless. In FC5t3 however, the installation fails at the kernel module build phase. [Bug report]
  • gmailnotify doesn't work under FC5t3 and crashes with an XML parsing error. The only thing I can think of is that an upgrade of Python (2.4.1 to 2.4.2?) causes the problem.

Tuesday, February 21, 2006

Don't mess with my net connection!

Alert: Technical rant coming up.

They say Hell hath no fury like a woman scorned, but I don't think they compared it with a CS postgrad who had his internet connection summarily disabled by the network administrator. That too, for no good reason.

Fedora Core 5 Test release 3 has just been released, and I was looking around the Fedora mirrors to download it. The problem with FC is that not all mirrors keep test releases, and even when they do, they keep CD images. While installing every new test release of Fedora is my idea of fun, the idea of burning 5 CDs every time is not. So I was browsing through a number of ftp site directories to see if any had the DVD image and suddenly, without any warning, out of the blue, I get the SMOD - the security mail of death from the network people. In short, it says, "Your computer has been administratively disabled due to excessive TCP port scanning". I couldn't believe it. I'm running FC4 and running absolutely nothing beyond the usual programs. I've received idiotic security warnings before, and it'll take me more than the sysadmins to make me believe I've got a worm on my machine.

So I go down to the helpdesk. There I am made to wait while the network guy pulls up my records and shows me Exhibit A - my computer, apparently had been trying to establish connections on multiple ports on some servers within a short span of time (for each server, I could see around 5-6 TCP ports on which connections were established rather quickly), registering it as a TCP portscan offense. I asked the admin guy to lookup the IP addresses - they turned out to be all Fedora mirrors. I assured him I had been doing nothing other than looking around for the DVD image. He was still suspicious but enabled my computer again. Phew.

Now I don't know the first thing about networking, so I found some descriptions of the FTP protocol (courtesy AC's, network security expertise) and found out that port 21 is only the command port of FTP, and a data port is assigned randomly for a transaction. And since it is assigned randomly, its seemed quite possible that browsing directories would result in sending packets to different ports.

So I decided to test the theory and ran tcpdump while browsing an FTP server directory. The result? Exhibit B - the partial output of tcpdump:
14:56:46.362982 IP localhost.51939 > linux.nssl.noaa.gov.ftp:
14:56:57.985858 IP localhost.51940 > linux.nssl.noaa.gov.50081:
14:56:58.796223 IP localhost.51941 > linux.nssl.noaa.gov.60070:
14:57:03.518263 IP localhost.51943 > linux.nssl.noaa.gov.56276:
14:57:04.569114 IP localhost.51944 > linux.nssl.noaa.gov.54505:
14:57:11.413372 IP localhost.51945 > linux.nssl.noaa.gov.50827:
14:57:12.437386 IP localhost.51946 > linux.nssl.noaa.gov.50061:
14:57:15.358883 IP localhost.51947 > linux.nssl.noaa.gov.51742:
14:57:16.373010 IP localhost.51948 > linux.nssl.noaa.gov.57000:


9 different TCP ports connected to in 30 seconds, only one of them (the first one) being port 21. I tried this on a different machine than the one which was disabled, and so I can be quite sure that both the systems are not infected by something. So it seems one can't browse FTP directories without the risk of being labeled a hacker. God help us all. The sysadmins are going to hear from me.

Monday, February 20, 2006

Respect!

Someone runs a webserver with an online forum on a Dell C400 laptop. It has a P3 1.1 GHz CPU, 256 MB of RAM, and a 40 GB hard drive. Fedora Core 4 powers the server, which currently has an uptime of 139 days. Confirm it here.

Away for fun

Its strange - most people I know take a break for blogging when they're too busy I'm diametrically opposite - I tend to stop blogging when I've been having a lot of fun. Maybe a bit too much fun for my own good.

I went to L Subramanian's concert yesterday. It was a breathtaking experience. Violin with percussion. Simply beautiful. Words aren't enough to express. The NUS has an arts festival going on with a lot of concerts - I plan to attend more in the next few days.

Watched the entire Indian innings on TV today - absolutely delightful - especially, the latter half. Yuvraj and Dhoni were just too good - and in the last four overs they were toying with the Pak bowling. Following the match online and reading reports just isn't good enough - the Cricinfo bulletin today refers to Dravid's innings (50 off 82 balls) as "totally assured", and I can totally assure you it was anything but. He seemed to find fielders too often, struggled with his timing and looked decidedly frustrated with the latter half of the innings - he just could not score at a good enough rate.

I'd forgotten what a comedy commentary can be too. Sometimes its so painfully clear that the commentary team is totally lost for words and are just making up stuff out of thin air. Rao Iftikar is referred to as a "very experienced bowler" - immediately after which statistics flash on the screen to show he has played all of 13 matches. Right after Gautam Gambhir's ODI scores (of 9 and 21, I think) in the previous matches have been shown, someone in the commentary box says, he's having a great series. Right after a wicket, Hawkeye compares the wicket-taking ball and the one before it, and the dreaded voice says, "Its clear that the ball that took the wicket was slower than the ball that took the wicket". Every time the match summary is flashed on the screen, a certain commentator (experienced watchers will guess who) starts off like an airport announcement. "This is the match summary. You can see from here what has happened so far." Really? Thanks, we couldn't have figured that one out without the piercing revelations. God save us from cricket commentary.

Some commentators, though, can be truly fun. Sachin came down to the field one time (he wasn't playing) with drinks for the batsmen, and (I think it was L Sivaramakrishnan) called him "the most experienced 12th man in the world".

Monday, February 13, 2006

Is this what I've signed up for?



Hong Kong

  1. Landing involves narrowly missing diving into the sea.
  2. Nobody stands still on airport walkalators. Nobody.
  3. Taxi (and bus) drivers seem to sincerely believe they're training for the Formula 1.
  4. The place is a sensory invasion. Signs, signs, and more signs. Nearly every tall commericial building has blinking lights surrounding it. If you're on the road, a passing UFO with blinking circumference lights will simply blend into the background.
  5. Throngs of people all move at top walking speed without bumping into anything.
  6. There's a zip in the air, and a sense of purpose to nearly everything and everyone.
  7. Despite the fast pace, people can be remarkably courteous.
  8. There is no shortage of food joints.
  9. There are very accessible places where you can completely forget you're in one of the world's largest cities.
  10. The city never seems to sleep.
In short, an awesome place :)

Thursday, February 09, 2006

Three cheers for GMail web chat

It seems to be working just fine! And the day it was added to my account - today - I was able to find a use for it too... chatted with a friend right from the airpot. The interface is simple and great - as usual for Google!

Now, if only they could beef up Google Reader...

Wednesday, February 08, 2006

Linux rants

Linux is fun. Lots of fun. Except when you install it on bleeding edge hardware. Then, its a solid pain in the neck. Not often you hear me complain about Linux, but this has been a real tough nut to crack.

So I got hyper excited when I was given charge of a brand-new dual-core Dell machine. What I didn't forsee was sitting in front of it with me head in my hands for hours.

First major problem - video card. The box as an ATI X600 PCI express card. And the moment the Linux installer tries to load X, it hangs. Doesn't crash and give me an error and ask me to continue without X. Nope, simply brings up a white screen and a mouse pointer and hangs. Tried Fedora, tried SUSE. Doesn't work. While both correctly probe the card and recognize it as an ATI X600, neither can successfully start X. Have to stick with text mode installs, and in the case of Live DVDs, runlevel 3.

Second major problem - the SATA RAID array. Apparently there are no drivers for that particular RAID chipset on any Linux so far. And since I'm required to keep the RAID array, it appears the only choice I have (which still hasn't worked for anyone indexed by Google) is to try and insert a temporary third hard drive, install linux, patch and compile a new kernel with experimental RAID support. Even I don't have enough time to do that. Before that, I'll try and set up a software RAID through Fedora instead of the hardware RAID. I'm desperately hoping though that FC5, due in March, will solve the RAID support issue... FC5-test2 is being downloaded for testing.

And this is the story of how the fastest computer I've ever installed an OS on is currently of little more use than a brick. Makes me real happy I bought myself a previous generation AMD Sempron with a nVidia FX5600 at home which runs Fedora like a dream.

I wish hardware manufacturers would provide more drivers for Linux. Novell recently ran a survey on what software people wanted to see ported to Linux, with the idea of lobbying those companies to port their software - but seriously, whats the point of porting Photoshop on Linux if you can't run it on the latest hardware? How about lobbying Intel, ATI and nVidia for producing better drivers for Linux? And while they're at it, how about being a little less snotty about driver code being open source? Although ATI and nVidia drivers exist, they're binaries only and therefore cannot be included with the Linux distro. An attitude like this is exactly what'll make it far more difficult for Linux to become accepted as a desktop OS. Yes, there are people like me, who are happy to install linux in text mode, know how to boot into runlevel 3, run lynx and wget to install the latest binary drivers and then load X, but they are few and far between.

Tuesday, February 07, 2006

GMail offers web chat



The service isn't working yet... but its being rolled out. Here's a screenshot of what I get so far.

Wednesday, February 01, 2006

Truth can be stranger than fiction

I ran across a headline on Ars Technica that said Microsoft's alternative to US$100 laptop: the cell phone. My initial response to the article was to laugh out loud and wonder whether it would come with a free magnifying glass to see what would probably be the 160x120 pixel screen, with a 6x4 icon that would represent the Start button. And maybe a toothpick to be used while typing on a cellphone's keyboard.

Microsoft, however, have it all worked out. They intend the device to be connected to a TV, no less, and have an external keyboard for input. Dumbstruck is me.

So, this brilliant mobile contraption that will bring the light of technology to the remotest regions of the developing world will weigh in at about 12.25 kilograms and come in a two feet cube box? I can sure see UPS profiting from this. Or will the said TV and keyboard be necessary, but not included, options? TVs and keyboards, of course, are the commonest things you can find in the remote places in this world.

Whatever it is, I sure hope the cellphone has a smart key for Ctrl+Alt+Del.

Tuesday, January 31, 2006

Haroun and the Sea of Stories, by Salman Rushdie

This is a beautifully written book. A fantasy tale, its central theme itself is the role of stories in life.

The plot revolves around the boy Haroun, the son of a famous storyteller. Haroun's father has lost his ability to tell stories - and Haroun travels to the origin of his father's wonderful stories - a second moon on Earth called Kahani, home to the Sea of Stories. The sea is in danger of being gravely polluted by evil forces who don't believe in stories and its up to Haroun and his friends to save the day.

The writing is wonderfully imaginative and full of humour. A number of names used in the book are taken literally from Hindustani. We have the chatterbox princess Batcheat, the General of Pages Kitab and so on - and the end result of that can be surprisingly funny. Even better than being entertaining, the book serves as a great reminder that each of us has an imagination and its intended to be put to good use rather than put on the backburner while we lead our routine lives.

Monday, January 30, 2006

Six IITians start Paritrana

It's heartening to see young people in India starting a political party. Much of the problems of the Indian political scene - we feel - is due to lack of involvement of new ideas from the younger generation. Lets hope Paritrana can fill the gap.

I'm impressed by the party's ideology, which is based on a system of social organization. So much better than blanket cliched phrases like the 'good of India' and so on (the mission statement of the party, however, I do find very vague). To develop the party's infrastructure, though, we'll need to see a lot of work, and it will be up to the younger generation community to provide the input and support.

Saturday, January 28, 2006

Star Wars - Dark Lord: The Rise of Darth Vader, by James Luceno

Couldn't resist the title and the cover - I bought this book soon after I returned from my trip to India. The story starts just after Episode III ends. Overall, its just about a decent book. Revenge of the Sith (the book) has seriously raised both the writing standards of Star Wars Literature as well as the community expectations, and Dark Lord is certainly not what I'd call a worthy sequel.

The plot is centered around a group of Jedi who survive Palpatine's order sixty-six (ordering the clones to kill all Jedi). The story unfolds as they make their choices and both Vader and Palpatine go after them. In the background, the development of Palpatine's increasingly dictatorial and fear-based Empire is shown. The book also sheds light on a little-discussed but important facet of the Force - the training in the ways of the Sith of Darth Vader. The dissenters of Palpatine - mostly Senators Bail Organa and Mon Mothma also figure in the plot, and the options for opposing the Empire are discussed.

The strength of the book, of course, lies in the fact that the story is spun around almost all the important events after Episode III, and overall its a good story, pretty much a page turner for me. Where the book failed (for me) was that I felt that every issue could have been handled so much better - especially the parts that deal with the Force - the response and thoughts of the scattered Jedi, as well as the dark side training of Vader. James Luceno does talk about the Force in detail - but in my opinion, lacks the depth that Matthew Stover and Timothy Zahn have repeatedly shown in their books.

The only distinguished Jedi character in the book is Obi-Wan and he too is only mentioned in the epilogue. What's more, he is shown to panic as soon as he realizes that Anakin (Vader) is alive and may come to Tatooine and recognize his son, Luke. It takes Qui-Gonn from the netherworld to calm his fears down. Doesn't sound like the unruffled Master Obi-Wan we all know and love, does it? It's the presence of many small things like this that make the book - for a Star Wars fan - slightly ridiculous. The rest of the stuff - lightsaber and space battle descriptions, political maneuvering, some humour - is good; but I really think the basics could have been done much better.

On a related note - lately, Star Wars books of the Clone Wars era have always released only in hardcover at first, and paperback editions always come a few months later. I see this is as pure exploitation of the fans - but I guess now that the movies are over, this is one way for Lucas to make his money. I really didn't mind shelling out the money for a classic like Revenge of the Sith, but spending 40 bucks on this book seems a sheer waste of money. Next book, I might just sit in Borders and read without buying.

On a happier note - Timothy Zahn's Outbound Flight is due to release soon - and given his previous record (Thrawn trilogy, Hand of Thrawn duo, Survivor's Quest) - I have high expectations from this book. Hopefully, next week will find me at Borders.

Thursday, January 26, 2006

Jai Hind!

Country

Wishing all Indians a very Happy Republic Day. This and other snaps from today's celebrations at the Indian High Commission are here.

The poster was created using fd's Flickr Toys.