Google Wave Alternatives – Some websites you can use instead of Google Wave

Google Wave is a cancelled project. I am looking now for other products that could provide me functionality similar to Google wave. So let me create a list of links that were considered. If anything measures up, I will tell you guys and gals.

Xoboni.com – Xoboni is a plugin for outlook express that lets you track emails better. Reject.
Syphir – Gmail plugin lets you organize your inbox. Rejected because it does not provide collaboration features. I want Wave like feature that lets me have a conversation!.
Toqbox – While I want chat, I don’t want Video chat. Simple msging is fine, and not like IRC. Each msg should have its own space with facility to put in images and attachments.
Titanpad – Provides facility to collaboratively edit a document. Maybe if you close one eye and squint really hard with the other you can pretend it hobbles close to a mile away from GWave. But a problem it only supports public documents for free. I don’t want my project info public.
Sync.in – Based on the same technology as Titanpad, reject for the same reason.
Zenbe.com – Looks interesting. I signed in but the interface is more complex. But it supports private collaboration. Was very sluggish. Saved for later.
Incipi.com – Online collaboration, msging, tasking. Look promising. It seems they offer a free account too. Saved for later.
Vyew – This one actually sounds like Wave! It’s free and though it sounds like it’s got too many features, it might offer me something. Saved for later.
Scribblar – Targeted mainly at education. It has some collaboration features, but didn’t excite me enough. Reject.
Snipia – Share tasks, msgs in groups. Hmm.. That’s what I used Google Wave for. Saved for later.
Coopap.com – This sounds interesting. But I don’t know if they offer separate workspaces. Need to check.
Obayoo – Lets you make groups, and share data within them including images and files. Need to check again.
Huddle.net – This one looks like a pretty good alternative with project management features and separate workspaces. Need to check it out!

This list sounds like it has some potentially good candidates for the needs I fulfilled with Google wave. Let me find out what will work for me.

Impressions from AgileNCR 2010

I returned a couple of hours ago from the AgileNCR 2010 conference at Ansal AIT Gurgaon. I have been hearing a lot about Agile of late and I thought it would be a good idea to find out what all the buzz is about when I ran into the notice about AgileNCR 2010 event in one of the online forums.

The conference had multiple sessions running concurrently addressing various issues about Agile Technologies. Since I am an Agile n00b I decided to attend the sessions for newbies and I made it through 3 sessions this morning. The first about Agile buzzwords, the second explaining what Agile is and the third about the challenges in adoption of Agile.

Most of the participants and speakers from some specific companies, particularly Xebia and Thoughtworks. I guess these companies are using Agile in a big way so it makes sense for their developers to be there. So I saw t-shirts with Xebia and Thoughtworks emblazoned all around me.

In the first session itself I was disappointed a bit. Amit King, the presenter was talking about team sizes I’ve never worked with. With 2 Quality Analysts, 4 developers, 2 Project Managers, and so on… with the devs working in pairs (on the same computer). That’s the kind of team that a small software producer like mine won’t have for quite a while.

I guess the way Agile is being worked in India is suitable most for the bigger companies handling mid or large sized customized projects at the enterprise level. Most of my projects last for 3 months or less and I certainly won’t be sprinting very far if I am stuck to Agile as is being used by these guys.

What I was seeking was basically to write more robust code, and I guess I don’t need to work with the full Agile toolset. All I need to do is to seriously start working with Unit tests so that my code doesn’t accumulate sap as I move forward with it.

Since I didn’t see myself getting much out of the rest of the conference I moved out after lunch. What it did for me though was make the picture clearer. Now I have a better idea of what Agile is, and what I need to adopt.

I’ve also realized that in my company we won’t be scrumming so soon, though I plan to adopt (and I already have adopted) certain practices.

How to backup your server data, (MySql, SQL Server, Directories) with Powershell

How to backup your server data, (MySql, SQL Server, Directories) with Powershell

Not a very long time ago I lost some data on my Windows server. It was a totally unexpected failure of the hard disk. Back then I had a local backup system which failed along with the hard-disk failure. So later when I got a second server to host some of my websites I decided to create a backup system that would take a total backup of each server on the second server.

That included MySQL databases, SQL Server databases and some folders. There were some custom solutions available for taking MySQL and SQL Server backups, but nothing that would nicely package all my files into one unit, so I decided to roll my own using Powershell, that awesome new toy for Windows Scripting. It was a chance to learn and work with something new, so how could I let it pass me by?

So dear reader, for all three of you (hi dad!) who actually read my blog, here’s TOTAL SERVER BACKUP through Powershell.

1. Taking MySQL Backup through Powershell

That should have been trivial, after all, all I need to do is script the commandline executable mysqldump which is already present in the bin folder of the Mysql installation on the server. How hard could that have been?

It turns out that was the hardest part of the job. Some of my websites are in Hindi (using Unicode), while mysqldump worked just fine from the command line, it just didn’t encode my content right from within Powershell. I tried every encoding method I could fine, and almost all the options (Unicode, UTF8), but I was still getting gibberish.

I gave up at one stage and wrote a backup script in C# .net. It worked just fine with some encoding settings and that told me it was possible. So I went back to Powershell and dug a little more. Thank you Rene Saarsoo for this gem of wisdom which told me that the correct encoding setting wasn’t UTF8, or Unicode which I had been battling with, but ‘oem’ (whatever that is supposed to mean).

So here’s finally my correct Mysql backup function that works.

function Backup-MySqlDB([string]$dbname)
{
"Backing up mysql " + $dbName + "..."
#Backup all mysql DBs

#Set-Location D:\MySQL\bin
Set-Location 'C:\Program Files\Parallels\Plesk\Databases\MySQL\bin'
$bkfile = 'C:\autobackup\Databases\' + $dbname + '.sql'

cmd /c mysqldump -u username -ppassword $dbname | Out-File $bkfile -encoding oem

Write-Host $dbName + "backup complete"
}

Notice that this is a function which accepts the database name as the argument. I have set up a new admin level user with powers over all the databases for the backup purpose.

Calling this function is as easy as this:

Backup-MySqlDB('blogvani')

2. SQL Server Backup Through Powershell
Some of the content on my server is on legacy (yeah! I don’t use SQL Server anymore) SQL Server database. I’ve got the SQL Server Express on my servers which is free, but not powerful and I really can’t automate backups. But Powershell can tap into .Net, use .Net DLLs and the full .Net Framework, so you can do practically anything with Powershell, including writing your own .Net library and consuming that within Powershell. That should teach those BASH script kiddies a volume or two!

Back to business. So basically because you can tap into .Net from Powershell it isn’t very hard to use the SQL Server backup objects exposed in .Net. Here’s the code which I collected and modified from the Internet.

function Backup-SqlDB([string]$db)
{
	"Backing Up Sql Server Databases..."
    #Backup SQL Server DBs
    [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SMO") | Out-Null
    [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SmoExtended") | Out-Null
    [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.ConnectionInfo") | Out-Null
    [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SmoEnum") | Out-Null

    $backupDir = 'c:\autobackup\databases\'
    $server = New-Object ("Microsoft.SqlServer.Management.Smo.Server") '.\SQLEXPRESS'
    Write-Host $server
    $smoBackup = New-Object("Microsoft.SqlServer.Management.Smo.Backup")

    Write-Host $db

    $smoBackup.Action = "Database"
    $smoBackup.BackupSetDescription = "Full backup of " + $db
    $smoBackup.BackupSetName = $db + " Backup"
    $smoBackup.Database = $db
    $smoBackup.MediaDescription = "Disk"

    Write-Host ($backupDir + $db)

    $smoBackup.Devices.AddDevice(($backupDir + $db) + ".bak", "File")

    $smoBackup.SqlBackup($server) #Make the backup

    Write-Host $db "Sql Server Backup Finished"
}

Like the Mysql backup function this function too takes the name of the database as an argument and backs the db up in a predefined location which I have hard-coded because I don’t want to change it.

3. Zip the DBs up
Even in the backed up state the DBs are pretty large, not to mention they are all different files. So if I want to upload all the DBs to the second server that’s a problem. So I decided to zip everything up in a single file. There could be other solutions, but the one I decided to implement was using that cute command line zip utility Infozip which I have been using since I was a teenager. All I needed to do was set up a command line call. Another little function for you:

function Zip-DBs()
{
"Zipping the files..."
    #Zip the backup files
    Set-Location C:\autobackup\databases
    ./zip backup.zip *.sql *.bak | out-null

    remove-Item *.bak
    remove-Item *.sql
	"Files zipped."
}

Note that I called ‘Set-Location’ commandlet to set the location of the Powershell prompt to the folder where I have zip.exe and the SQL server (.bak files) and Mysql (.sql files) backup. After zipping them up I deleted the actual backup files using the ‘remove-item’ commandlet.

4. Backup Directories Through Powershell
We just finished backing up MySQL and SQL Server DBs through powershell, how hard can backing up a directory be? Since I have a zip file already set up I just wanted to add those website folder to my zip file. Here’s how the code works:

   function BackupDir([string]$bkdir)
   {
	    Set-Location C:\autobackup\databases
		./zip -r backup.zip $bkdir

		"Directory zipped: " + $bkdir
   }

This one is a function too. We can just pass it the folder name, and it will zip it nicely up in the backup.zip file. Notice the ‘-r’ argument sent to zip.exe, that’s to make it recurse the folder and collect all the sub-directories too.

5. Upload it all
Wow! We just backed up all our DBs, and all our website folders in one zip file through Powershell. It’s resting nicely in a separate folder on our hard disk, but what good is that if we have another hard drive failure? We need to upload it our second server. At first I considered doing this from Powershell using the ftp program which is a part of Windows and then the .Net Webclient class. I even wrote some code

   function Ftp-Upload {
	$File = "c:\autobackup\databases"
	$ftp = "ftp://userlogin:userpass@blogsvani.com/httpdocs/Server1Backup.zip"

	"ftp url: $ftp"

	$webclient = New-Object System.Net.WebClient
	$uri = New-Object System.Uri($ftp)

	"Uploading $File..."

	$webclient.UploadFile($uri, $File)
   }

This is the webclient code, I can’t provide the ftp program code cause I deleted it, but it’s easy. Unfortunately that didn’t work for me for some reason and when I ran out of patience I decided to use that wonderful program Cobian Backup which automates backup and ftp upload. I set it up to copy my zip file to my second server using ftp everyday at a specific time.

6. Setting up Powershell to run daily
Did you miss the last piece of the puzzle? To have a completely automated backup we need to ensure that the Powershell script that we wrote so painstakingly runs daily at a certain time. We can do this using the Windows Task Scheduler. This wasn’t as easy as it was supposed to. To run the script correctly you need to run powershell, and pass it the name of the script you want to run along with some other arguments using the ‘Add Arguments’ field. Here are the arguments:

–Noninteractive –Noprofile -command "& 'c:\scripts\serverback.ps1'"

Notice that before I pass the script name I prepend ‘&’, and that I have the entire thing in double quotes. If you don’t have that your script won’t run. I found this online from another webpage helpfully provided by Kiwi Si.

Oh and yes, don’t forget to run the command – “set-executionpolicy RemoteSigned” on your Powershell command prompt once to set up the necessary permissions or the script execution won’t work.

So this finally concludes the automated backup system for our server through Powershell.

Now wasn’t that a piece of cake?

Economics of Invention

Once in a thousand years he’s born;
A sign, a warning, an evil omen.
He’ll arrive like a storm from the horizon;
And drink the blood of a million men.

Here I lie in my cell. A lonely, defeated and humiliated mass of flesh, looking forward to death more eagerly than I ever looked to life. For propelled by ambition I became the ultimate destroyer of men, someone that would make even death pale in comparison.
When they took me out for my walk yesterday I saw the remains of the metropolis that was once New Delhi, my hometown. For miles and miles on a stretch the only thing visible was a dark giant pile of concrete and steel, electricity crackling here and there, sending sparks running from the Earth to the sky.
The world has become a graveyard, filled with innumerous dead rotting bodies, and some that are still alive but will be soon dead and rotting.
And it’s all because of me.
***
It began on the most beautiful day of my life. One of those rare days at the end of the winter when the sun shines brightly, but the wind is still cool and refreshing, a day that I wouldn’t have traded for an eternal life in heaven. ‘Today is the day that time will never forget.’ I thought as I walked briskly in the university’s wide corridor.
Born of a Swiss mother, I was almost as illustrious a scientist as my Indian father. I nodded to a couple of research students who stood in the corridor, gaping at me with awe. I fully deserved that kind of treatment. At the young age of 36, I headed the physics department of my university, a post I earned by virtue of my tireless and groundbreaking work on the structure of sub-atomic particles. I had shot to fame with my very first paper in the Science journal; praise and recognition flowed in by the gallon. But even then I knew I was made for even bigger things.
As I got into the elevator for the upper levels, I thought about the last few years. They had been full of struggle. Thanks to the initial euphoria over my newfound status as a world known scientist, I had secured the government grant needed to build the lab for my dream project, but the money flow was squeezed a little while later, even when I revealed the nature and the sensitivity of my work to the regime. I had to literally become a marketing man to convince the government to keep funding me.
‘Not the right job for a scientist. Takes away the concentration from my research.’ I Thought as I patted my golden Matiz. I loved my car. ‘It is almost irrational. How I substitute materialistic possessions like my car and my computer for real live family members. If people knew I had names for them, they’d put me in a loony bin. I would look great as a mad scientist.’ I laughed at my own thoughts. My parents were dead by the time I was 24, I was the only child and marriage never occurred to me. I lived a luxurious but quite life in my 2 room flat in the heart of town.
As I drove my car, I felt on top of the world. All those laborious days and sleepless nights had finally borne fruit. For the first time I had concluded my experiment successfully. I had transported instantaneously a sugar cube to the other end of the room without carrying it. The prototype of the ‘Transponder’ was ready and I was on my way to meet the Prime Minister to disclose the full details to him.
I dreamed of my invention as I drove to the Prime Minister’s house. The transponder was a device from the realm of science fiction, something that would change the way the world functions. It was a discovery as big as the wheel, and maybe ten times more important.
Getting into the Prime Minister’s home was no problem, the security check was done and over in 2 minutes. Apparently, they were expecting me. I was guided to an office deep inside the palatial building. The PM sat behind a huge rosewood desk talking animatedly with his young aide, the communications minister. He gestured me to sit and continued his conversation.
The Prime Minister was an old man, his face crisscrossed with wrinkles, reflecting the enormous responsibility and the years he carried.
I was a bit surprised to see the communications minister there, this was top secret material, nobody but the PM knew the full details of the nature of my research.
“So Mr. Ronald Khosla, you bring us good news eh?” Said the Prime Minister in his trademark style.
“Please call me Ronald sir, but this is more than just a good news, it’s a revolution.”
“Really? I expect you have achieved full success then. The government has poured a lot of money in your project.”
“Nothing less than that. I’d be glad to reveal the details to you. If…” I glanced at the communications minister.
The Prime Minister stared at me quizzically, then suddenly realized what I was implying. “Oh! I expect you already know Prakash Mittal, our communications minister and my nominated successor. He has full security clearance. You don’t have to hold back anything. Please go on.”
“In that case, let me begin.” I said, and told my story.
The PM and his aide were no men of science, and I knew I had to begin from the scratch. “I expect you already know that all matter in the universe is composed of atoms, which in turn are made up of sub atomic particles. This is true for in-animate objects, like this desk, and even for living organisms like us.”
“I am sure you must have heard about Einstein’s relativity theory that suggests that matter in its native form cannot travel faster than light or even at near lightspeed.” I gave a dramatic pause and stood up. “That is, if you do it conventionally.”
They were staring at me with rapt attention as I walked to the center of the room. “My method, you see, breaks the tradition a bit.” I took out the sugar cube that I had transported earlier. “See this cube? A normal vehicle carrying this would need energy to propel it from one place to another, the transponder however, does the same thing by converting the cube itself into energy.” I looked at them for reaction but there was none so I continued.
“Matter cannot travel as fast as light, but energy can, and I’ve found a way to convert matter into energy and back into matter. My transponder actually converts matter into a new type of sub atomic particle that I call ‘Minuton’, beams it safely anywhere, and assembles it back into solid matter in an instant. The device works principally by using an anti-electro magnetic beam to…”
My speech was cut short by the sound of applause. The PM and his aide were clapping loudly, their faces radiating with smiles. “You don’t have to go into technical details Ron. I won’t understand a thing. Congratulations on your achievement, your discovery will make our country the greatest nation on Earth. I would like to see a demonstration immediately.”
“That can be arranged.”
The PM visited my laboratory with his full security regalia for the demo, this time I transported a kettle filled with tea instead of the sugar cube. I felt at the top of the world for the second time that day when I saw his eyes go wide when the kettle slowly appeared at the end of the room.
“Can you build a man sized transponder?” Asked the PM when the demo was over.
“I can make them bigger, as big as you want. Big enough to transport heavy machinery, there’s no limit to the size, and there are no major extra costs.” I said.
“Brilliant! In that case we shall arrange to put your discovery in production immediately.”
The communications minister was staring at the device with a lost look on his device, suddenly he turned to me and said. “Ron have you told anyone about this?”
“No. Not yet.” I said.
“You do understand how sensitive and explosive this development is. We wouldn’t want this going into any other country’s hands, would we?”
“Definitely not.” I could guess what he was hinting at.
“Right. Ron, I want you to keep this a complete secret, tell no one that your research is successful until you get clearance from the PM’s office. Not even family members.”
“I don’t have a family. You don’t have to worry Mr. Mittal, I love my country as much as you do. I would do nothing that would harm its interest.” I was quite piqued by the attack at my sincerity.
“Oh no! I did not mean that. No one can doubt your patriotism. I am sorry if you thought that. I was just telling you about the sensitivity of the matter, that is all.” He shifted uneasily in his chair.
“Thanks. I’ll keep that in mind sir.” I said in my iciest tone possible. His discomfort made me feel a lot better.
The PM sensed the tension in the air and rose. “We must leave now Ron, but before going, I am glad to appoint you the acting head of the Science Research Organization. You can shift your laboratory there and work with the other great minds of our country.”
Everyone in the room shook hands with me and congratulated me for becoming the head of the country’s most prestigious research organization. It was a dream come true.
Suddenly the PM spoke again. “Oh yeah. One more thing Ron. I would like you to submit your complete research documents to my office. I need to get a technical viability check done.”
“Of course. I have everything ready, I will submit them by tomorrow.”
***
I shifted to SRO the very next day. My spacious office, the giant library and the excellent facilities available in the lab kept me busy. I went about my new job with enthusiasm of a newcomer, talking to our greatest scientists, exchanging views on the quantum theory, and refining the existing facilities of the lab to make them even better. I hardly noticed anything was wrong until one day it suddenly occurred to me.
A complete two months has passed since I had first shown the demonstration to the PM, and there had been no communication about further production of the Transponder. I decided to find out what was happening. I called up the PM on the number he had given me, but he was in an important meeting, his secretary promised to pass on the message as soon as he came back.
I waited for an entire day for the call, then suddenly I remembered the communications minister. He was with the PM all the time. I dialed his number, He picked the phone himself.
“Hi, this is Ronald Khosla. Do you remember me?” I asked.
“Ron.” He laughed. “What a question. Who can forget you, you’re the greatest scientist alive.”
“Uh. Thanks. Well, it’s been many days and I was wondering what happened to the scheme to mass produce the Transponder.”
“Oh, these are official matters Ron. Delays happen. There are lots of things to do, patents, registrations, technical viability research, training, but don’t you worry, I have people working on it.”
“Any idea how long it will take?” The red tape was beginning to bother me.
“I do not really know Ron, Maybe a few more days. I will keep you updated.” He said and hung up.
I spent the next month puzzling over the government’s apparent lack of interest in the Transponder Project. The communications minister never called back, and my calls to the PM’s office still went un-answered. By the end of the month I realized something was seriously wrong and went into the grip of a strong paranoia. I was afraid they were trying to steal my invention from me.
I tried one last desperate call to the PM’s office.
“I am sorry, he’s busy. I’ll ask him to call you back when he’s free.” The man on the phone gave me the standard brush off, but I wasn’t buying it this time.
“Look mister, this is the fifth time I am calling this week. Did you tell the PM I called?”
“I told you, he’ll call you when he’s free.” He said in a stony voice, he was trying to intimidate me.
I felt my blood boiling with rage. “Is that so? Well pray he’s free soon, because this is a matter of national security. If he doesn’t answer my call, our country is going to loose the biggest discovery of the millennia to some over-industrialized western nation that doesn’t even deserve it.”
There was a moment of silence. Then, “I’ll see what I can do” said the voice and hung up.
Five minutes later I was talking to the PM.
“Hi Mr. Khosla, I just got your message. I have been a bit busy so couldn’t talk to you earlier, but believe me it was your project that I was busy with.” He said even before I could say hello.
“That’s alright sir. I just wish that you had kept me informed.” I said, feeling apologetic for my earlier behavior.
“We can correct that now. This evening I am organizing a meeting with some of the country’s best economists and defense experts about the Transponder, Would you care to attend?”
‘Would I care to attend? Does an otter have teeth?’ I thought as I murmured a polite yes.
“Be at my office at 7 sharp then. The meeting begins at 7.30, but I need to get a word with you.”
***
The three hours I spent waiting for the meet were the longest three hours of my life. I reached the PM’s office at 7 to the dot, and was promptly led into his room.
“Ah. Ron, have a seat please.” He was not being formal, a good sign. “Before we attend that meeting, I need to tell you something. There are some problems putting the Transponder in production.” He could have hit me with a sledgehammer and it would have hurt a lot less.
“What sort of problems? I did a complete research, all the components are available easily.” I stammered after I got over the initial shock.
“It’s not the actual production I am talking about. You see… some of the experts I consulted have expressed apprehensions over mass production of the Transponder. They say it will be a very dangerous move.”
“Whaaa.. Do you mean? What sort of experts are these?” I was amazed someone could call such a discovery dangerous.
“We’ll be meeting them right now. I suggest you regain your composure until at least you’ve heard them out.”
I went to the meeting with fear in my heart and rage in my soul. Apart from the PM and the communications minister, there were two other men in the room, one of them wore a general’s uniform and the other I recognized, he was Ratikant Basu, the country’s most famous economist. I was literally ready to tear apart the first man who dared to question the viability of my project, but I decided to wait until I had heard the so called ‘experts’ speak.
“Undoubtedly the Transponder is a great invention that will revolutionize travel, but it’s effect on the world’s economy is going to be disastrous.” Ratikant Basu started. “My analysis suggests that the launch of the transponder will cause world’s most severe recession that will last for not less than 120 years, during this period almost all the major industries will be ruined permanently and un-employment rates will be well over 80 per cent. There will be no improvement unless the population of Earth falls below 4 billion from the present 6 billion.”
“This is pure shit. You are talking out of your head. Where the hell did you get these figures.” I yelled unable to control my rage.
“Pardon me Mr. Khosla, but with all due respect, our methods of research are just as scientific as yours.” Basu glared at me. “Have you ever tried questioning what powers the world’s economy…? It is the lack of contact between the buyer and the producer. Do you understand? No? Let me try and make it clearer.”
“Everything that is purchased by a consumer is made by a manufacturer, but it is impossible for the manufacturer to sell directly to the consumer due to the distance and lack of communication between them. The importer, the distributor, the dealer and the store-owner, they all make their living from a commodity before it reaches you, by providing you only one service, getting you what you need. Then there are ancillaries like transporters and packagers who make a living transporting material.”
“Now imagine a world with the Transponder. Everything that you wish to buy is suddenly available right to your home direct from the manufacturer curtsy the Transponder. Just dial the correct number. You could reach any factory in an instant, it doesn’t matter if he’s located in south east China, the jungles of Africa or the north-pole.”
“Between the factory and your home about 5 families will loose their living to the transponder. It would have already killed the transport industry irrecoverably. Rail, airlines, road transport, everything dead because nobody would need them anymore. It will also kill the regional or small time manufacturers that exist solely because of the extra cost and time needed to transport material from a distant manufacturer. About 1.5 billion people who work with non-manufacturers will loose their jobs, and the amount of revenue loss, it will run into trillions. ”
“The government would loose revenue too. There will be no longer any control over import and exports. No import duties possible, no custom duties applicable because goods will be transported direct to home and government wouldn’t be able to monitor them. 120 years is a conservative estimate Mr. Khosla, sometimes I fear that humanity may never be able to recover from that recession if it happens?” Basu sighed and stopped speaking.
I was stupefied for a long while. “This can’t be true, can it?”
“I am afraid we’ve got more bad news for you Ron.” This was the PM. “General Baljinder Singh Rathore has yet to present his analysis.”
“With your permission sir.” Said the General and stood up.
“Mr. Basu presented the economic side of the Transponder admirably. I will present a different perspective. The effect of the transponder on the security of our nation.”
“As Mr. Basu said, unemployment will increase sharply with the introduction of the Transponder unit. This will be the basis of the security threat we foresee. Have you noticed how quickly pople hit the streets in response to a slight cut in salary or even a delay in raise? Economic pressures of the kind brought by the Transponder will cause a public backlash unforeseen ever in the world. We have all witnessed the rioting and looting that followed the bankruptcy of Argentina, after transponder, you can expect a similar reaction multiplied some 100 times.”
I found myself unable to utter a protest this time.
“The newly unemployed people will take to the streets, they will organize strikes, rallies and marches and quickly graduate to rioting. According to the figures that Mr. Basu gave me more than one-third of our country’s working population will loose its job and when that a mob of that size starts rioting, it will be impossible to control. Even if we succeed in imposing a curfew, it will close down the industries that are still working, causing a chain reaction that will kill the entire economy.”
Unable to hear my biggest achievement torn to shreds so terribly I closed my mind, withdrawing, unaware of the universe.
“Ron! Ron!” I woke to the Prime Minister speaking my name. He was shaking my shoulder and had concern written all over his wrinkled face. “Are you alright?”
“Yes. I am fine now.” I managed to say. I composed myself. “Well then gentlemen, I understand that the party is over. We will not be producing the Transponder.”
“Who said that?” Spoke all the 4 people at once.
“What? I… I don’t understand. What is the meaning of all this then.”
Ratikant Basu spoke again. “We were merely presenting the foreseen sequence of events once the Transponder is mass produced. We haven’t told you we won’t be mass producing it.”
“You have foreseen a calamity, the total destruction of civilization. How can you even think of mass producing the Transponder in such a situation.”
“I am afraid we do not have an alternative Mr. Khosla.”
“What do you mean?” I demanded.
“By inventing the Transponder device, you have proved that it is possible. If we refuse to acknowledge its existence now, it’s quite conceivable that in future some other country will discover it, and might not be as reluctant to mass produce it.”
“You mean?”
“If some other country invents the Transponder, our destruction will be more assured than if we ourselves invent it.”
“That doesn’t give us an excuse to make this device. Why should we become the destroyers of the world? I will not work on the mass production of the Transponder.” I surprised at how quickly I had become strongest critic of the Transponder from the biggest supporter.
“You are a scientist Ronald. Look at this from another angle.” Basu was clearly making a plea now. “Knowledge cannot be suppressed forever. It is inevitable that the Transponder will be discovered and resulting destruction will happen. You will not be able to stop it then. But After a while, no matter how long a while it is, people will adapt, civilization will adjust itself to the Transponder and humanity will be back on its track.”
“But why now? Why me?” I spoke, more to myself than the others.
“Don’t be numbed by self pity Khosla.” Said Basu sharply. “You’ve done us a great favor by inventing Transponder before anyone else. We are in a position of advantage over the rest of the world.”
The prime minister spoke up. “We are in a tough spot Ron, if we make the Transponder we become the destroyers of civilization, if we don’t, we’ll be the victims. Events leave us no choice but to proceed?”
“Besides, we have a plan.” Said the General suddenly lighting up. “There is no way that we can stop the economical and the cultural shakedown that will happen. However, we are in a position to mold things such that the world sustains the crisis with minimum damage. Mr. Basu has calculated that if our plan works the world will be back on the path to progress in 25 years. We’ll be alive to see it Mr. Khosla.”
“How is that possible?” I asked.
“With a regime of strict control.” The General’s expression hardened. “We’ll have to unite the entire world under a single government.”
I was horrified. “You are talking about…”
“World domination.” The General’s voice was stern. “Nothing less will do.”
“This is crazy. I will not be a part of this.” I almost shouted.”
“You already are Ron. There’s no way you can avoid that. The cat is out of its bag, and this cat is a tiger.” said the Prime Minister, and that was it.
***
So I decided what was best for the world, and offered the prime minister all assistance in saving it from imminent destruction. The plan was simple, bring the entire world under one order to prevent wars between countries, and establish a very strong disciplinary force to keep rioters in check, meanwhile establish efficient public welfare agencies to prevent poverty.
We waited for 15 more days while the strategy was given finishing touches and preparatory measures were made.
Finally on exactly three and a half months from the day I discovered the Transponder we told the world about its discovery and that the first pair was in place already, transporting people from Delhi to Mumbai. The whole world immediately went into an euphoric cheer that I witnessed from my drawing room on the TV. They were calling me the greatest scientist ever borne.
I was invited to conferences, made a fellow of every scientific society on the planet, and nominated for the Nobel Prize that everybody knew I was sure to get. Every detail about my past was dug up and people read about my boring life as if it was the most interesting thing in the world. I had found the fame I had longed for, but I wasn’t excited. All I wanted to do was go back to the quite and peaceful days when I was still unknown.
The government had already taken a patent on the Transponder on my name, and was charging other countries colossal sums to sell them Transponder units. They kept the units on short supply, and put other countries on allocation, nudging up the price further, and ensuring that no country got enough units to effect its economy badly.
Inside our country laboratories were being established and scientists worked relentlessly on perfecting arms and ammunition. The army started a recruitment program on war footing, and soon new training camps sprung up all over India, filled with excited new recruits.
With exclusive rights to the Transponder, the government’s clout in the world politics went up sharply, no country wanted its supply of Transponder units suddenly stopped, so no one objected even when the government started purchasing weapons and war machines by the thousands. Several countries even offered to supply arms in exchange for the transponder units.
In a very short while, the government had the largest and the best-equipped army of the world, we had guns from Israel, rockets from China, submarines from Russia, tanks from Germany and fighter planes from USA. The world had given the instruments of its own defeat willingly.
***
It was 12 months from the invention of Transponder, we were sitting in an emergency meeting called by the Prime Minister. The cast was same as earlier, me, the general, the economist and Prakash Mittal. Only the Prime Minister spoke.
“Gentlemen, the time has come. We have reached the culmination point of all our efforts. As I speak our soldiers are busy pulling a coup in 23 leading nation of the world, if everything goes according to the plan, we will have achieved the biggest political coup of the world with virtually no bloodshed.”
“What? But how?” I was truly astonished at the pace with which things were moving.
Everyone in the room smiled, then the Prime Minister spoke again. “It was easy Ron, in every Transponder unit around the world, we have installed a tiny component that monitors and regulates traffic so we know where each Transponder unit is. I had earlier taken the liberty of gifting each leader of the world his very own personal Transponder unit, and right now our soldiers are arriving at target destinations using the locations of very same Transponders as co-ordinates.” The Prime Minister looked at his watch. “We should be getting a detailed report in exactly five minutes.”
“So this is where it all ends.” I said.
“No Ron actually, this is where it all begins.” Said the Prime Minister.
The next five minutes were spent in absolute silence, broken occasionally when one of the men shuffled in his chair. The Prime Minister sat with his hands placed palm down on the table, concentrating on his fingernails. I was bursting to speak, but the silence choked the words in my throat.
Suddenly a door opened and the Prime Minister looked up. “General Bedi, what news have you brought.” The General walked inside, he was a tall, muscular man, with an impressive personality. You could tell he belonged to the army with a single look at him.
“Our mission is partly successful sir, all nations except three have surrendered, and we will be going to war with them. I have already set the forces on alert, we have the surprise on our side, it shouldn’t be a long war.”
“I am glad to hear that, take extreme precautions General, if we make a mistake, we will have to pay dearly.”
“We will make it sir, we are prepared for this moment.” He paused for a moment. “The nukes are deployed and waiting for your orders sir.”
“Nukes? Did you say nukes?” A nuclear attack was the last thing I could wish for in this war.
The Prime Minister turned to General Bedi as if he had heard nothing, “You may go ahead with the plan General.”
The General saluted smartly and left the room. I lost my voice for a little while, and when it came out it was only a croak. “What are you going to do.”
“Just making sure we are not defeated.”
“You will not drop the nukes will you?”
“I am sorry Ron, but this is the way it has to be. We are going to nuke Islamabad, and some nuclear sites of Pakistan.”
“What? You can’t do this you monster, you will kill millions of people.” I was too angry to control myself.
Everyone in the room looked at me with a horrified expression but nobody spoke. The PM looked hurt, he sighed and began “I am not a monster Ron. These nukes have very small payloads, just enough to wipe out the targets. I am afraid some people will die, but we will save a lot of other people who would have died later if we didn’t do this.”
“But why nuke?”
“Consider this life insurance Ron. Only 8 countries in the world have nuclear weapons and everybody is aware of the terrible destruction that a nuke can cause. By using our nukes we would show the world that we are prepared to go to any extent, this will at least frighten the smaller countries into submission.”
“I don’t agree with your reasons. Nukes are too dangerous to be used, even in a war situation. I demand that you stop this immediately, like right now.” I stood up and shouted at the top of my voice.
Nobody seemed to agree with me.
***
They’ve placed me under arrest. I am not allowed to go out or meet anyone, but they’ve allowed me access to the newspaper and the TV. Now I am only a mute spectator to the ongoing drama.
Our nukes killed thousands of people, but they achieved the Prime Minister’s objectives only partly. Several countries surrendered when threatened with a nuke, Russia joined us as an ally willingly when told of the purpose, and we managed to capture nuclear sites of all other countries using the Transponder to beam soldiers directly to them, but several countries became even more determined to struggle against what they termed neo-imperialism.
With our large army and weapons the soldiers are advancing slowly, capturing new lands as they reach them, but it’s taking time, more time than the government expected. Meanwhile resisting aircrafts bomb India daily, some come even as far as New Delhi, but they return defeated every time, for the army uses the Transponders to beam soldiers directly into the aircrafts, who destroy them, or worse capture them and use them against the enemy itself.
The Transponders units sold to the rest of the world have stopped working, tipping the scales on our side, the enemy never knows when a group of soldiers will materialize out of the thin air and blast them to pieces, they live in terror.
Yes, we are winning this war, but the prize is not what we wanted. By the time we finish this war, the world will be a broken place, filled with zombies who will live in fear, without a shred of hope or optimism in their heart. It will be a long time before anybody even thinks of progress in this place.
The resisting forces call the transponder ‘Mankind’s Last Invention’ for it is their belief that by the end of this war there will be no men left to invent anything. I am content to be a prisoner. It is a price that I am willing to pay for doing what I did.

Do All Programmers End up Being Quirky?

I’ve heard it said by other (older and more experienced programmers) that after a few years a majority of programmers end up becoming quirky in some way or the other. It’s supposed to be a phenomenon of sorts. Today I am at home working on my new project and I am desperately looking for a diary and pen. I just realized that’s my odd programming quirk. I have a compelling need to make a list and write down exactly what my micro-goal is before I can start programming.

Every morning when I get to the office I go to a new page in my notebook, put down the date and make a serialized list of all the programming objectives I want to achieve in the day. Then as I finish each I tick them off. Most days I am not able to finish all the items in the list, but the days I am, I feel high. If I run out in the middle of the day like I did today, I have to note down the fresh item before I can start working on it. Mind you it has to be on a notebook with a pen and not on the computer. I’ve tried to keep lists on the computer and never succeeded.

I guess it must have started as an organizing habit with me trying to set goals for the day. I don’t know when it became a compulsion.

So I ran out of the things I want to do this evening at office and at home I have to look at my project and decide what I want to do next. I find myself hunting for a pen and a notebook and suddenly I realize that it doesn’t make any sense. So I tried to start programming without noting down and I just can’t begin. I can’t decide what I want to work on now. I’ve been meandering around my UI and code for 20 minutes taking out time to check mail and a couple of websites in the middle. And now I am writing this post just so I can put in black-and-white what my compulsion is so that I will know and try to correct it. I will make an attempt later.

Right now I need to find a pen and a notebook so that I can get it down and start working.

Airtel’s Unlimited Internet Plan is a LIE!

When you get an unlimited internet connection from Airtel don’t forget to read the fine print. The plan is not actually unlimited the way you expect it to.

Airtel has introduced a ‘Fair Usage Policy’ which is very unfair to its customers. Under this policy a buyer who’s got a 1 MBPS connection (paying Rs. 1699 for it every month) is only allowed to use up to 20 GBs in a month. If the usage goes above it the buyer’s Internet speed is degraded to 512 KBPS. On the 2 MBPS connection too the limit is the same 20 GBs.

20 GBs? Ridiculous! Someone with a 2 MBPS connection can download 20 GBs in 3 days. They have the audacity to call it ‘Fair Use’!

Fair use for who? For Airtel who doesn’t care a fig for its customers anymore in a bid to maximize their profits?

Well, it’s not going to work for long. The first chance I get I am going to migrate to an Internet connection that is not so limiting.

Another company Tata Indicom has caught up on the fair use nonsense too. They told me that the fair use for the Internet connection was 20 GBs, when I asked them what would they do after I crossed 20 GBs they were unclear. ‘Send you a SMS’. Umm.. How’s that making sense? Every time you send me a SMS I get a shooting pain through my leg? Or you want to remind me of bad Karma that I am doing, crossing your fair use limits?

Well, it’s moronic policies like these which introduce fresh competition into the market.

So I am looking for an ISP with an ounce of sense.

Have Spacesuit Will Travel By R A Heinlein : Feedback on Book

3456-1What would you do if you won a spacesuit in a contest? Wear it in your backyard of course, and then be kidnapped by an alien spacecraft and visit the Moon, Pluto another star and then another galaxy. Sounds like some adventure eh? And what if you could come back from all that in a few weeks time. That’s what Russ does in Heinlein’s epic tale that spans distances that the human mind will break down before imagining.

This is the kind of work that books like Hitchhiker’s Guide To The Galaxy are inspired from. Of course HGTTG is much more awesome. After all, Arther Dent just needed his bath-towel robe and multiple strokes of luck to save the galaxy, while it took Russ a spacesuit, a near genius IQ and an ultra-sharp survival instinct to fight off the aliens.

This book strongly reminded me of Douglas Adams’ HGTTG (which was written much later incidentally, and on a bigger scale). It had the same irreverent humor in tough situations. Delightful characters who were a treat to watch. Aliens that managed to be both bumbling and frightful at the same time and a journey that’s beyond anything you’d ever expect.

Heinlein set the bar when he takes you the Magellanic Cloud at the Federation of the Three Galaxies at the meeting of the Security Council which is going to judge whether to kill all humanity by putting to trial on behalf of our race: a Neanderthal man, a Roman Centurion, A high-school pass out boy, and a thirteen year old girl.

Awesome!

This could only be upped by something like The Restaurant at the End of Time.

So like I said this was a wholly enjoyable read which is evident from the fact that I got this book yesterday night and I am through with it today night between Work, food, bath and family.

This is a great book and everyone who is interested in quality space humor should own a copy.

Oh, and the next time you go out into the backyard decked in your space-suit, don’t call on Radio for an imaginary person called ‘Peewee’, no telling who might pick you up.

The Man Who Sold The Moon by Robert A Heinlein : Feedback on Book

c6882Reading Heinlein’s astounding science fiction I never thought about how long ago it really was when he wrote them. Reading this book reminded me.

The first and the last manned moon mission till date was in 1969 and over 30 years later we have yet to send human beings to Moon or to any other planetary body of consequence. All the money that should have gone into space research has been eaten by weapons development program, and – television.

The book ‘The Man Who Sold The Moon’ is about one man’s dream to reach the moon and how he makes the journey possible and ultimately fulfills his dream. The story is about the last ‘robber baron’ businessman or maybe the first of the ‘new robber barons’, an individual who can do anything legal or slightly illegal as long as he achieves the end he believes in. The end justifies the means wholly in this book from Heinlein.

The Man Who Sold The Moon is set in the 1950s, the past. The cliched conscience-less businessman was as alive then as he is now. But in Heinlein’s book his purpose is higher, sort of like Arjun in the Bhagvad Geeta.

The Man who sold the Moon is actually a Novella and a short story. The central character is the same, but the stories are set decades apart. In the second story the lead character’s initial excursion to the Moon caused rapid advancements in spaceship technology and humanity fulfilled the dream of establishing a colony on Moon. It’s a dream that still eludes us, and today the number of people who believe we will make it to outer-space are lesser than what they were 50 years ago.

It’s a shame because Heinlein has a splendid vision for the future, and we find ourselves unable to live it.

Black Swan by Nassim Nicholas Taleb: Feedback on Book

 cover_BlackSwan.jpgBlack Swan’s back cover talked about the phenomenon of Black Swan describing companies like Google as the Black Swan that came out of nowhere taking analysts by surprise. I thought this would be a book that would analyze Black swans like Google, describing why they are doing so well, but the book couldn’t be more different.

The book is not about Black Swans but about Black Swan the phenomenon. Nicholas Nassim Taleb talks on unpredictive people, companies and happenings can change the way the world works. His mission is to convince you that ultimately all analysis is useless, the analysts are overpaid louts who are actually no better than unpaid louts and that no matter how much data you have the future is going to make you a sitting duck anyway.

When I started to read this book the most refreshingly different thing that I found about it was the style. Taleb has his roots in the middle east and that’s why the book is written very differently from the usual Western/American authors. His language is different, expression is different and he will have you pausing in some places and reading the sentence again just so that you can have a look at the sequence of words he has used.

If the writing style wasn’t enough he introduces some delightful new ideas. Like talking in great detail about the experiences of a person, citing examples from his life to illustrate his point, and then telling you that the person is imaginary. In a non-fiction book that surprises you because you actually think all the way that the person is very real cause you’ve heard so much about her degrees and her job and everything else. Well that’s one example of Black Swan phenomenon at work.

Even though the book’s premise is not new, the approach is fresh. Taleb has been an investment analyst for a long time and you’ll find that the book talks about the financial markets a lot. He’s an insider and when he tells you that all the guys you’re trusting your money with are actually playing poker with it, you better listen. I for one am not going to put my money in mutual funds soon.

Taleb is also a scholar and he puts you under a slight awe with details of all the classics he has read. Well that’s the undoing of his book. When he goes on about the mathematicians and philosophers who you haven’t heard of and tells you how much he hates or loves them, you just can’t relate. You don’t know those guys well enough to know what Taleb is talking about.

By the second half of the book he also got a bit repetitive and argued the same arguments over. Not that I was unconvinced earlier.

The book is fine, not spectacular, but fine. If you’re deeply interested in economics and how money works like I am you will read to the end, not otherwise.

I would recommend it only to a small selection of people.

I Will Fear No Evil by R A Heinlein (Feedback on book)

n1828.jpg Don’t read this book if you have eyebrows, because you’re going to raise them if you do. Heinlein in his days has caused quite a few controversies for his radical views about a lot of things that most of the world is traditional about. Things like religion, marriage, society, economy, and sex. How can you mention Heinlein and not talk about that.

I Will Fear No Evil is Heinlein’s ode to human sexuality. But it is not graphic and it is definitely not obscene and even without being these two things, this topic still manages to remain the single point agenda of this entire book. I’ve read several of Heinlein’s books and his radicalism filters through in all of them, but I didn’t expect even him to write something like this. So  yes, I was a little taken aback and since I have eyebrows (two of ‘em) I raised them quite a few times.

The premise is simple, a 90 year old filthy-rich (and filthy in other ways too) old tycoon gets his brain transplanted into a young woman’s body after she dies and then is caught in a giant mess of emotions about his/her identity and the carnal aspect of his body.

There is not much ‘science’ fiction in this book, but with Heinlein there never usually is. He deals in the future of the society, not technology and he’s a master when he does that.

In his day 30 years ago, he talked about many things which were taboo then and slowly they are and will be included in the mainstream. I guess Heinlein believed that deep-down everyone wants to be a liberal. He could be right.

This book is readable but I won’t hand it to a minor and I won’t hand it to someone who has not read Heinlein before. They could end up misunderstanding his message.

Read it only if you have faith in Heinlein.