Rough Book

random musings of just another computer nerd

Month: May, 2009

The Problem with Shaadi.com

Arranged marriages are common among Indians. I’m not going to go into the merits and demerits of it; that’s not what this post is about. What I want to address is the problem with sites like shaadi.com that supposedly make it easier for Indian people to arrange these marriages. Now don’t get me wrong. There are many people who have met their soul-mates through shaadi.com (and similar sites). My sister met her husband through that. But the problem with these sites is that they are not geared towards the individual. Before I elaborate, we need to talk about what arranged marriages are, and why they are arranged.
Read the rest of this entry »

jQuery tip: Changing the TYPE attribute of an INPUT element

I was trying to change the type attribute (using jQuery) of an input element from submit to button when I got this error:

type property can’t be changed

Apparently, you can’t change the type attribute of an input element once it’s part of the DOM. I figured out a way to do it by cloning the old element and then changing its attribute. Since the element isn’t part of the DOM, you can change its attribute. After that, you can add it to the DOM and remove the old element:

var oldButton = jQuery("#Submit");
    var newButton = oldButton.clone();

    newButton.attr("type", "button");
    newButton.attr("id", "newSubmit");
    newButton.insertBefore(oldButton);
    oldButton.remove();
    newButton.attr("id", "Submit");

Star Trek XI

Star Trek 2009

Yesterday, I saw Star Trek. I’ve been waiting for this movie ever since I heard it was being made. I had pretty high hopes for it and felt that the franchise needed redemption after the steaming pile of crap that was Nemesis (what an ignominious exit for the TNG crew). That being said, I was also a little cautious because although the morons responsible for Nemesis (Rick Berman and Brannon Braga) had no part in this, I was afraid that Abrams might dilute the “Trekkiness” of the franchise. Regardless, I was more than a little excited when I was finally able to get to see the movie. So here’s my review. If you haven’t seen the movie yet, don’t read ahead because there will be spoilers.
Read the rest of this entry »

All original content on these pages is fingerprinted and certified by Digiprove
%d bloggers like this: