Tuesday 9 February 2010

Infibeam Rocks.

Some of you who follow me on twitter might remember something I tweeted about on Feb 6th:

Crap. Bought the wrong book on Infibeam and there's no way to cancel after making payment. Worse, I already have this book x-( #fail

This is essentially what happens when you buy stuff on the Internet at 5am after not sleeping all night preparing for an exam. I selected the (wrong) book, paid for it using Paypal, and soon afterwards, realised that I wanted the second part of this book (Foundation Analysis). Checked their FAQ to find to my dismay that they don't support cancellation of orders after payment has been made.

Needless to say, I'm a student, and students are poor(er). So I was sitting around semi-depressed wondering how to sell the book off at a minimal cost loss after I get it. On a whim, I decided to tweet about it (I generally don't tweet much; mostly passive reading).

After giving my exam, I noticed two missed calls on my phone from a strange number. I decided to wait for them (whoever they were) to call me again. A couple of hours later, I get another phone call; but this time it gets cut before I can pick it up. A few minutes later I get the following email:

Dear Nirbheek Chauhan ,

Order Id : [REMOVED]

Title : [REMOVED BOOK TITLE]

We have received your request for cancellation of above order through twitter.com. So we are offering you your ordered amount as prepaid credit to your Infibeam account which can be used for next purchase.

Please allow us for the same. So we can credit your account accordingly.

We also tried to reach you through given no. [REMOVED MOBILE NO.], but could not get response.

Thank you for shopping with us! You can contact us anytime using http://www.infibeam.com/ContactUs.action


Sincerely,

Infibeam.com Customer Service
Fresh Way to Buy, Sell and Rent

My reaction -- :O :D :O :D

Yesterday evening, they cancelled my order and refunded the amount I had paid as prepaid-credit which I can now use to buy the other book that I wanted to buy!

I don't know about you, but I'm very impressed by their customer service. The fact that they took the initiative to monitor twitter for tweets mentioning "Infibeam" for any problems that users face is a strong indication that they aren't just some random E-Store. They have definitely made permanent customer out of me!

On a related note, I've found that their book prices are usually less than or equal to those on flipkart.com . Another reason to use them ;)

Friday 22 January 2010

What The Bloody--

So I drive back home, open reddit, and what do I see?

US Supreme Court ruling comes down - Corporations are people with free speech and have the protected right to bribe politicians

The story currently has 5,200 upvotes, and 2,744 comments.

MSNBC says:

In a landmark ruling, the U.S. Supreme Court on Thursday struck down laws that banned corporations from using their own money to support or oppose candidates for public office.

Nice, let's go have some cake.

Folks, this is another example of a place where the concept of "Free Speech" is not applicable.

"Free Speech"

No, it does not mean you can say whatever you want, whenever you want, to whoever you want. Nor does it mean that everyone has to allow you to do any of that.

Free speech means that your (democratic, republic, or whatever) government should not restrict your right to criticize them, organisations, people, practices, or society in general.

Things not covered in Free Speech (open for debate):
  • Slander
  • What rules you impose in your house
  • What companies impose on employees
  • What comments you allow on your blog
  • etc.
So, the next time someone posts something about Free Speech on their blog, but has moderation and/or deletes posts; think twice before calling them a hypocrite.

No, I'm not going to link to the place where I saw this happen; I don't have an axe to grind.

EDIT: I just noticed I had comments which I hadn't moderated yet (moderation for posts older than X days); sorry about that folks. I seem to not get mail for that thing. Relevant Lesson: Don't attribute to malice which can be attributed to stupidity.

Friday 25 December 2009

"Global Warming"

Damn, there's a lot of confusion, contradicting statements, idiocy, corruption, and lolwut around this topic. Now, I've done an Environmental Engineering course. Hence as an expert who is expertly placed, you can trust me to wade through this muck and give you the right answer.


Let's start from the top. The Greenhouse Effect. No, you won't need Wikipedia for this one. It's simple.

Most things in this world are opaque. Which means they don't allow light to pass through them. The wavelengths of visible light they don't absorb gives them their color.

Gases are mostly transparent due to their low density. This is different from colourless, which means that most gases do not absorb visible light. But when you have a huge amount of air, such as an atmosphere, "transparent" becomes irrelevant.

Different gases in the atmosphere absorb different wavelengths of light. What happens when they absorb it? They re-emit it in a different direction, and often with a different wavelength. Water Vapour, CO2, Methane, Ozone are the major players in this. They absorb visible light and infrared light, and re-emit it as infrared. This is called the Greenhouse effect.

This is a good thing. Without the greenhouse effect, we could not survive. Temperatures on our planet would be extreme, with the average temperature being sub-zero. The major contributor to our survival is water vapour, which keeps a large amount of thermal radiation around Earth.

Disaster strikes when someone decides to pump a bazillion litres of CO2 into the atmosphere every year. What does this do? It's complicated. Complicated enough that we don't know for sure the dynamics of everything it does. It's not as simple as rocking a cradle. The global climate is a chaotic system. Even tiny changes in the initial conditions magnify exponentially and change the result completely. This is why BBC doesn't show more than a week's forecast in weather.

We never just say "OK, T°C increase in global temperature in X years" "Polar ice caps will melt in Y years". That's what uninformed news outlets say. They try to dumb the results and predictions down for the general public, and in the process make them incomplete, inaccurate, or wrong.

This is also why scientists' predictions concerning climate change seem to be "wrong" most of the time. This leads the naive public to assume that we're talking out of our collective arses, and that Climate Change is bogus. And when we try to explain what we meant, people go "NYA NYA NYA, YOU'RE WRONG, NOW STOP MAKING EXCUSES AND SHUT UP". And that's what we do. Because we know we're right. That's the thing about science. It doesn't matter what you think, the truth will stay the truth.

Here's the truth. We don't know exactly what's happening (yes dears, present tense) thanks to our shortsightedness. But we're all bloody damn sure about one thing. Whatever's happening isn't good for us. That's why it's called "Anthropogenic Climate Change" (man-made and not-good-for-man).


Now that I'm done being all dramatic and apocalyptic, I notice I forgot to mention all that stuff about Albedo, Positive feedback loops, Quasi-static equilibrium, cyclic climate change, frog in boiling water, etc. Oh well. Maybe if everyone paid attention in college, I wouldn't have to start from the top and get bogged down in the basics before getting to the interesting stuff.

Sunday 25 October 2009

What's missing in Btrfs

So, after being completely betrayed[1] by Ext4 not once, but twice, I decided to evaluate my FS options for /home .
  • FAT* are not an option, neither is NTFS.
  • Ext2 is primitive and HFS/HFS+ is just not Linux.
  • JFS is nice, but (atleast parted) doesn't support grow/shrink.
  • I've used XFS before, and found it to be more reliable than Ext4. However, deleting dirs with thousands of small files is too slow (a common operation when compiling)
  • ZFS would've been an option if my earlier experiences with ZFS-FUSE weren't so horrid.
  • Did not even consider NILFS. It's too new, and I don't know much about it.

It ended up being a choice between the reliable Ext3, or the new-fangled Btrfs. Why Btrfs? Because I've been using it as my Gentoo Distfiles and Portage tmpdir since v0.16, and found it to be the /most/ resilient to power failures of all my partitions.

I ended up selecting Ext3 for /home, but let's see why.

What's missing in Btrfs:

  1. Growing the filesystem to the "left" of the partition. The error message when you try this is cryptic (common in btrfs-progs). However, since for other FSes this essentially involves "move to left and grow to right", I suppose the "move" part is what's missing in btrfsctl.
  2. Pathetic ENOSPC handling. It either throws an ENOSPC at around 75% or when the metadata space fills up. Not sure which, but it's supposedly fixed for 2.6.32.
  3. Volumes once created cannot be deleted. Again, fixed in 2.6.32.
  4. Parted doesn't support editing/creating Btrfs partitions. Support for detecting it was proposed recently; but, I still don't see it in either "master" or "next". This is not a Btrfs problem, but certainly affects whether I'd use it.
  5. There were other minor irritants (with btrfs-progs, mostly), but those will go away with time

Ext3 might have bad performance (especially w.r.t fsync), but atleast it's more reliable. In conclusion, I'll use Ext3 in data=ordered mode for /home till 2.6.33 is out; and then I'll convert my Ext3 partition to Btrfs and forever be happy :}

1. betrayed == sending everything into /lost+found after a forced fsck due to an earlier fsck after a power failure