Skip to main content

Posts

Desktop search vs good old grep

Been installing various desktop search tools like the Google Desktop, Copernic (once free), Microsoft Search etc and after a few weeks / months of usage, eventually felt happier to uninstall them. One of the primary reason I need a desktop search was I needed a tool to quickly search for mails. I would seldom search for files on my machine. But one assumption that we need to keep in mind is that, these search engines are not exact. That is, the engines fetch you results, but they may not be comprehensive. The web crawling spiders that scour the web for data and index them, it is possible thet the server's index may be out of sync with respect to the actual web site as new data would have been posted after the spider index the content. In the Internet, sure, if you have a few sites missed out, it does not matter much. But desktop search apps seem to work in very similar lines. If at some time, for want of speed or to free up available memory, you stop indexing your mails or document...

AJAX - Is it really worth it?

With the onset of interactive web pages that update dynamically the moment you move your mouse over a control, development of an AJAX (Asynchronous Javascript And XML) based web site adds to the complexity. For one, they mess up with your browser history and limit your ability to bookmark a particular page as almost all contents are loaded "in-page". The other disadvantage I see is the in-ability of custom scripts to access the site and extract information. For example, I can write a perl script that can access the Indian Railways page and query the arrival of a particular train. If the site used AJAX, it's going to be more difficult. Cellphones that bundle with micro-browsers either lack javascripting or access is usually blocked by service providers leaving you grapping with an empty framework with no actual data in it. Development wise, you introduce a sense of uncertainty into your web-page where when your page looks like it has completed loading, more data is still b...

ssh! Here's the scp

The other day, I was thinking of consolidating all my music collection from various machines and burn them into a DVD as a backup. There were various ways that I could have done the transfer: Extract the music back from the disk originals Copy them using a rewritable media like a pen drive or a writable media like a CD Connect over the network and copy the files I can use Samba as some of my machines are Windows based Setup a FTP server to copy files I can setup a ssh server and securely copy the files to my Linux box That was how I discovered ssh, the secure shell. I had originally been looking at setting up Samba on my Linux box, but was frightened with the possibility of it suffering a virus attach as most of the viruses / botnets would be scanning for a windows PC and this would become a backdoor for entry. The other option was ssh which was simple to setup and quite secure. It basically provides a secure way to connect to a computer that enables the ssh service. You are presented ...

Linux has better throughput?

The other day, I saw news item at slashdot where people mentioned that Linux seemed to perform better that Windows on network throughput. Some attributed it to the ISP throttling the bandwidth for the first few minutes where as others mentioned that the Linux network drivers seemed to be configured to maximize network performance where as the Windows settings are sub-par. An indepth article depicting based on actual data is provided which eventually leads to thinking perhaps, you should tweak your windows network settings... Though people had complained that both the machines tested had slightly different specs and hence the performance results could be skewed, I have been browsing on both a windows PC and a linux box and it does look like (no systematic tests conducted!) the throughput that I get on a Linux PC is much higher than as experienced on the windows PC so far. The windows PC or laptop has 512MB RAM and is an Intel Centreno Duo 1.66GHz where as the Linux Box is a older AMD...

Global Meltdown Sale!

Aadi Sale, New Year Sale, Year End Clearence Sale and now the Global Meltdown sale! Happened to see this posted at a window of a garment shop at Pondy Bazzar, T-Nager. An innovative approach to woo in customers. Apart from the PR, this shop sells really good (limited collection) and cheap (3 times cheaper) clothes for kids compared to the branded cos like the Levi's or Lee. London Stores, Pondy Bazar, T-Nagar.

All time low for IT

It's unfortunate to see such a big corporation fall down in light of the scam announced yesterday. Share prices of the listed script dropped down from Rs.170 to Rs.35 in the NSE in a matter of hours and the entire IT industry was watching the news unfurl dumbstruck. The fate of 52,000 employees and their families hang and hopefully, the company must either build back the trust of the share holders and its employees or the employees should be is a position to secure jobs in other companies. Only time will tell...

Happy New Year 2009!

One more year has passed by and the time has come to wish all of you a happy, healthy, safe, peaceful and prosperous New Year! This is the time when one looks past on what has happened and makes plans on what to achieve and focus going forward. And the best of luck in making up your New Year resolutions. As one of my mentor mentioned long back, you would usually be bound and emotionally attached to your resolutions if you commit yourself in paper by signing on the paper what you plan to achieve. Though most of my resolutions are broken in the next few days / weeks, I am planning to be different this time and commit my pain points to paper (maybe I can get a bond paper too, to make it really legal ;-)). Give it a try. You might be able to hold on to your resolutions a little bit longer until it becomes a habit. And no... I'm not going to publish my resolutions here ;-)

Happy (Internet free) Christmas!

Merry Christmas wishes to one and all! In other news, the partial Internet free days make me ponder on reliant we have become on these series of 'tubes' that send and receive data from various servers. This brings in light of the hassles that you may face when you become fully attached to online applications. My e-mail provider provides LDAP and is online-only. You have a plethora of online-apps that provide basic word-processing, do your taxes, view pictures and store presentations etc. If you have the cable cut, you loose access to everything. Telephone and credit card companies are urging their users to move online, to receive bills and statement alerts via e-mail rather than the traditional mail in the pretext of accessibility and saving the environment. I'm not against saving the environment, but most of us are moving towards a system where there is only one way to get informed about the various activities in life and if this one way gets disrupted, I wonder what woul...

SMS SPAM filtering?

Been there, done that. That's what you would hear if you are talking about SPAM filters for your e-mail. The other new area that I am constantly getting irritated about is the mobile SMS SPAM that make their way into my cell phone. One way or the others, we inadvertently give away our mobile phone nos to the various dealers who pass on the same to bulk SMS generators. They in turn make it a point to enlighten you of the various offers that you should be thankful to spend your money on! Thank God I am not charged for incoming messages! I know most providers like banks or the telecos provide a Do Not Call registry usually hidden away in the small-print. They abide by your request, but it is the other sources where you are forced to give away our number from where the main problem arises. One thing that I noticed that most mobile phone lack is an active SPAM filter for your mobile phones that can scan your incoming SMSes and over a course of time, learn from you, on what you regard as...

Design Patterns: The art of making TV serials or masala movies

After being tortured to sit through one too many series of never ending serials, here are a few rules or patterns that I had observed: Design patterns on serials or movies The-Not-Good-as-it-seems Pattern: If it is too good to be true, it is a dream and in real-world, it will happen exactly the opposite The-One-is-not-enough Pattern: One of the primary character will have two wives and will struggle between the two (or more?). Medical-Miracle Pattern: Someone will get amnesia and later will be always be cured. Double-Trouble Pattern: If twins are born, they will get separated to meet again 20 years later. Of-course, there will be scope for impersonation. The-Cryptic-Prophet Pattern: Swamijis, gypsies, sadhus will usually be able to give cryptic clues on what is about to happen next The-Cycle-of-Life Pattern: If a primary actor's family is portrayed as being very rich, chances are they will become poor. Conversely, the family opposing the hero / heroin will have the lifestyle op...

CD-less Car Audio Systems

The new Honday City comes with an audio player that takes your portable player, collections of memory or USB sticks. Though a good option that gives flexibility allowing you to carry your music and listen to all of them, the minus point is, they now lack a CD player. I see this as a disadvantage. Guess where I will play a newly purchased CD? In my car, on my way back home! The same goes for CDs purchased during a long trip. I might not have my laptop handy to rip and transfer songs on the go. The music download scenario currently in India is not good either. Amazon and iTunes do not offer song downloads here. So, purchasing online music which is likely to happen during your home or office are not it atleast in India. With these audio system, I will have to hold on until I reach home, rip the songs, copy them to my USB stick and only then, I will be able to listen to them in my car. Though most cars offer to add a CD as an option, for the cost, I feel this should be standard.

The Age of the Hybrid?

Honda recently offered a slash in their new Civic Hybrid model. Though not all are sure if it was a publicity move or an inventory clearing sale, I believe with good mileage figures and a growing concern on how green everyone should be, hybrid cars will see an increase in prominence in the Indian roads. The Indian market is price sensitive. Be it an industrialist who is buying a Rolls Royce or a car enthusiast pining for a BMW, the inevitable question remains: "What is the mileage?". This has led to a slew of Diesel cars in the market . Though economic to us, it still fails against the 'green' parameter. The other competitor to hybrids are the all-electric vehicles which may be termed greener (assuming that the cost of production, battery is far less harmful than the actual emissions), they lack in range, ability to quickly recharge (which seems to be a 5 minute affair for it's counterparts) and the lack of accessible recharge locations (do you think at the curren...

Dynamic Math Question Paper

If you have kids who are into schooling, now would be the time when you are revising their knowledge for the upcoming mid-term and half-yearly exams. A good way to check up on your kid's (and your) math skills is to setup up a question paper. Unfortunately, kids have good memory power that you can't reuse the same maths question paper. Otherwise, you would see them breeze through the QP as they tend to 'remember' most of the answers. The alternative is to have multiple QPs. But that is a pain and I had been thinking of coming up with a simple script or software (TeX) to generate the QP dynamically. The final solution was much simpler. Use Excel or Open-office Calc (in my case) to dynamically generate the question paper. The key is, for each of the question, have a bunch of random numbers (to your specifications) generated so that you can construct the parts required for your sum and generate multiple versions of the question paper by recalculating the workbook.

A bookshelf in your palm

With the advent of e-books, software readers, hand-held devices and the Project Gutenberg , you literally have access to more than a book shelf. A good e-book reader for your mobile when you are standard at some place with nothing to do is Mobipocket reader . It comes along with a good PC based e-book creator that can take simple HTML or .txt files and convert into a format usable from a mobile device. With the text files combined with Emacs and a few regexps, I was able to convert most of the files to readable html files in a few minutes and feed them back to the e-book format converter for hours of readable entertainment. So, my current bookshelf contains: Arabian Nights Robinson Crusoe by Defoe Daniel The Devil's Dictionary by Ambrose Bierce Dracula by Bram Stoker With these books with me, who would mind waiting on a long queue?

The portable game framework

Ever since I had seen GCompris , a children activity application, I always wanted to add modules that caters to the need of getting my son to learn while he plays games. GCompris supports a python interface for rapid board development. But one quip that I had was, GCompris is a Linux only application (though they have a commercial win32 port). Now, if I can find a framework that works both on the Linux as well as the windows platform, it would make great sense. Gcompris as of now only will restrict schools to the Linux OS (which is good, but most schools would probably be using Windows and getting them to change would prove difficult) would be good. An alternative framework would be Java with it's great 2D API (no fancy 3D here to confuse the kids). Others would by SDL with C/C++ or pygame (which I read has performance issues on the windows front. Read childsplay ). A new contender that I noticed was the Mono framework which sports a 2D API identical to the DotNet framework. My im...

WiFi atlast

After numerous hours of tweaking, I resolved the problem with my WG311v3 NetGear PCI card. The problem? The router was too far away! Now that I am online using my Linux box, here are a few screen-shots of my desktop! The next time your supported WiFi card acts up, you know what to do... For those inquisitive lot, I am currently using the XP drivers with ndiswrapper.

Look around you...

Most people think that they need to be at the right place and at the right time to get a great picture. I say, all it takes is patience and the ability to see differently. While exploring the place nearby, here is what I managed to click, all within a radius of 10 meters from the front door... For more, visit my picasa page .

Whois[she|he]

One of my favorite ploy to those who newly joined my previous company was to give them a command line application and ask them to find out how it worked. This magic command line tool happens to guess your gender if you give your name. char lastc = argv[1][strlen(argv[1])-1]; printf("%s is a %s\n", argv[1], (lastc == 'a' || lastc == 'i') ? "She" : "He"); Basically, it checks to see if your name ends with an 'a' or an 'i' and if it does, assumes that the person is a lady. Chances are, 95% of most Indian names fall into this category and this simple app seems to do magic. Most were able to (after a few tries) guess the grand algorithm, but a few poor souls could not, which eventually leads to step number 2. Step #2 is, as they were unable to decipher the algorithm, I said that I will provide with two separate command line apps called whois she and whois he . I also mentioned that as I had not done the validation part prope...

Hardy Heron - Linux getting better!

A few months back, I had requested Canonical to dispatch me (they still do it for free !) a CD of Ubuntu Linux 8.04 LTS (hardy heron). I was still running an older version of the same distro for quite some time and this was an opportunity to change. I had installed the newer OS and these are a few observations: Display is much better, with my ancient VIA chip-set getting recognized with 3D acceleration too. Now, I can play most of the 3D games (tuxkart, supertux, billards GL) and a few non 3D games (chromium) in full glory. Wireless is still a problem. My netgear wireless adapter was able to recognize my ADSL router among the other routers in range in my neighborhood, but fails to connect frequently. But once connected, they blaze through at 200kbps. I have not been able to see this kind of speed on a windows machine though... Audio CDs are mounted properly. This happened to be a problem with 7.04 when only data CDs were recognized. Video / audio codecs are easier to download from the ...

It's bright and sunny at Chennai, but the fuel queue is long

All at Tamil Nadu would have faced the spurts of acute fuel shortage and chances are, you too, like me had spent some time on the queue waiting to fill your tank. The last few days had been 'exciting' looking out for every fuel station on the way to see a line of already queued vehicles waiting for the fuel tanker to arrive. The recent fuel hike just added to the woes. We are accustomed to travel long distances, and imagine if for a week or two, the fuel tanker fails to arrive? A tank full of fuel may sustain you for a few days, but after that, you are left with your own foot (or other animals) for travel. Public transport (fuel driven) will not function and as traveling by foot would be difficult to span the distance that we once used to travel in mere minutes. Bicycles will be in great demand and possibly, we would start considering bullock-carts and horse riding. But, somehow, solar energy does not seem to be exploited by us, being in a very sunny place. Perhaps this free / ...