Archive - Jan 2006


January 30th

surfing the low

sometimes all i want to do in life is doodle.


January 30th

multisite drupal: the importance of the sequence

Recent versions of Drupal have the oh-so-cool feature that allows you to host many websites off a single Drupal codebase. The coolest part about this is that you can share some tables accross multiple websites; which means you can do things like have a single username/password table accross all the websites. This can easily be done, as specified in the settings.php comments as:

* $db_prefix = array( * 'default' => 'main_', * 'users' => 'shared_', * 'sessions' => 'shared_', * 'role' => 'shared_', * 'authmap' => 'shared_', * 'sequences' => 'shared_', * );

Now here’s an important thing to note: The first table you have to share is the sequences table. This is the table that handles all the id counters, so if you don’t share this one, something like this can happen:

[you shared only the users table]

1. User 1 signs up on Site A, gets user id#1
2. User 2 signs up on Site A, gets user id#2
3. User 3 signs up on Site B, gets user id#….? The correct answer is not 3!

This happens because you didn’t share sequencesSite B uses it’s own sequence generator to render a duplicate userid… which the user table would not accept, and this would go on till the Site B sequence catches up with the Site A sequence, and then things would be normal. The code quality in user.module helps protect the user table from data corruption, but you will have many signups disappear into thin air with a set up like this. Hence, all you need to do is share the sequences table along with the users… and you’re all set!

Btw, hello Planet people!


sometimes i'm such an arrogant ass

friend: arnab u know how to make a website
Arnab: no.
friend: any idea who knows
Arnab: no.
friend: ok.. thanks

| |

miffed at the g magic

I’m both a little amused and a little disappointed at the whole aura of awesomeness that Google seems to have. They change tabs into a stupid select box, and the whole world goes like “Whoa, interface innovation…. awesome….”. Guys, this is how they had them in 1996 ya know. They change the result page to have vertical tabs, and people are amazed… guess what, a company you might be familiar with has already been there and done that. Makes me laugh.

Then, the disappointing bit: Like Cecilia says, Google is fighting the US government because it has a good economic stand in the US; and on the other hand, it’s cooperating with the Chinese government because they realy want to get into the booming tech market there. Here’s a dictionary link to the word hypocrisy.

Forget public opinion. Every single “innovation” the big G has released on their own weblog in the recent past is a stale rehash of something others have done years before. Custom Buttons? Go look at MSN’s IE Toolbar development kit. Internationalized Software? Oh, I’m impressed. TV on Google Video ? Just like iTunes, eh? nice. New Imagery in Maps? Playing catchup with Microsoft’s Birds Eye view, aren’t you? Delete Buttons!! Don’t even get me started. Federated Google Talk Holy crap, they wrote a jabber client. And MSN and Yahoo have corporate versions that do multiple servers, etc anyway.

Cmon Google! Show me the money!

Sidenote: The real innovation is subversive and controversial, and hence not very publicized. Google now personalized pretty much everything; search results are heavily personaized according to my preferences, and when and what I’m searching for. In my view this isn’t such a bad thing, but we’ll keep this for another blogpost.

drupal captcha 2.0

FINALLY finished the captcha.module for drupal. This is ONLY a first draft, lots of improvements to happen. Features:
* ability to protect any drupal form
* captcha API – make your own challenge response! (math and image are included in package)

(use cvs checkout to get)


January 29th

mit's U of M hack

University of Michigan at Cambridge.


January 27th

totally useless information for today

A Brief History of the Spork


artistes unlimited: en route

Delhi people! Artistes Unlimited has a play at Kamani on the 4th and 5th of February, called “En Route”, starring Ashish and other cool people. Go see!

En Route - poster

January 25th

calling the electronics lazyweb

I want a system in which, when my headphone plug is accidentally yanked off the speakerset, the speakerset auto-mutes, instead of blaring loud african music into the perplexed ears of my hardworking fellow lab-mates.


January 25th

on research blogging

The Machine Learning weblog wonders if it’s worth it.