Category Archives: Uncategorized

Of cognitive surplus, and pigs in the digital age

Just a lighthearted reminder that, even if the lure of the connected digital world gets people to skimp on the Gilligan’s Island reruns, that doesn’t necessarily mean their replacement behaviors will be any more productive. They could instead bring an ever greater capacity for distraction and disengagement and slingshot precision.

Interesting article on how the Internet giveth and taketh it away. Our productivity, that is. Yeah, we all knew that, but this article gives out some interesting numbers.

CNN’s untold story – Land of missing children

Yesterday, I saw this very well made documentary on CNN called “The land of missing children“, part of their series “World’s untold stories“.

The documentary was about underage sex workers in the brothels of Kolkata and Mumbai, a dark side of our society which many of us simply keep themselves blissfully ignorant about. For the first time, I saw and heard things I had previously only knew in bits and pieces from newspapers. The episode ended with a raid on a brothel with the “help” of the local police, actually the police chief of the region himself. The raid ended with a farce, with the police letting all the apparently rescued girls run loose soon after discovering them.

Some of the parts of the episode were surreal:

  1. The police chief explaining his personal view is that prostitution is a necessity in the society because otherwise “decent” women would be attacked by the people who frequent these brothels.
  2. Groups of underage girls were found stuffed into small enclosures where just one of us would find it difficult to stay in. In one instance, some of the girls hidden in false ceiling were crying out of suffocation.
  3. When this reporter and his accompanying staff were querying girls on the streets about their age, the local female goons(called madams) came over and asked them to clear off before they are hurt (It is common for these people to attack by throwing acid on your faces).
  4. When the reporter came out of the house beaming after rescuing at least 10-12 girls, he discovered the police chief standing near gate of the house with an idiotic smile on his face saying that all these girls have simply “run off”! And this was supposed to be a police raid! When the reporter told the police that those girls could be in real danger, he confidently said that it was his “personal guarantee” that none would get hurt.

The raid could be held because of the terrific and untiring efforts on the NGO named Rescue Foundation, and its head the late Balkrishna Acharya. The odds that these good people face to do their laudable job was apparent when, at the end of raid the CNN reporter, Sam Kiley, tells Balkrishna “I see what you are up against”. Sam had just seen the complicity of the police(even the police chief) into letting such practices flourish in our cities when he found out to his horror that all the rescued children had vanished into the crowd outside, with the police just standing by.

A telling excerpt from the series blog:

An estimated 30,000 girls are trafficked into the sex industry every year. Some are sold by poverty-stricken parents hoping that their children will find employment as domestic servants. Others are simply snatched off the streets, drugged, raped, and sold to brothel “madams.”

Many of these children come from the far east of India — a region at the crossroads of trade routes with Nepal and Bhutan, which is now a hub of trade in young women. The story of one girl, Pratima, is rare. She was trafficked, rescued, was brought back into the embrace of her family, and is now happily married. Most women who escape the horrors of the business are shunned when they return home, their families refusing to take them in, much less help to heal their wounds.

But Pratima was keen to expose the trade. She told of how she was taken from her home in Siliguri, drugged, and forced onto a train to Calcutta. There she put to work as a prostitute, and then sold on to a brothel in Bombay (Mumbai) known as “Sheila’s.”

Pratima’s story was the reason behind the raid at Sheila’s covered in the episode.

Mark Shuttleworth on free and “non-free” Linux distros

Mark Shuttleworth writes in this blog post on a topic I get really emotional about:

We have to work together to keep free software freely available. It will be a failure if the world moves from paying for shrink-wrapped Windows to paying for shrink-wrapped Linux.

Go to any Linux event in India and you will find the sales force of Red Hat spending oodles of time pushing their “enterprise” Linux (nothing wrong with this) and trashing their free offering – Fedora (this is bad). Go to any Open source forums, and you will see holier-than-thou RH employees/fans talking about how Red Hat is committed to Fedora, and that they don’t see it as beta/alpha software.

I am a bit miffed about this because of the years I spent focusing on Red Hat Linux, to be suddenly left in the lurch when Red Hat decided to go “enterprise”. Right now their whole business model is based on differentiating their enterprise products from all other Linux distros.

Is there anything legally wrong in all this? Of course not. Is there anything ethically wrong? Depends on who you are talking to. If you ask me, yes. You cannot take something which is provided to you with the intent of public good, and then build upon it and criticize the source for not being good enough. Not too different from some other companies, we bitch about.

Am I bad mouthing an entity which helped me make money? Yes, RH has helped me a lot in my career and I am grateful for that. Have I lost respect for RH? Yes, but only for their recent marketing pitches. I still have a tremendous respect of RH for their past and current support to FOSS – far more than any OSS commercial entity. They have done far more than Ubuntu – my current distro. But I am sure in the long run, Ubuntu will gain some ground there. I have a lost of appreciation for several of Red Hat’s policies – like their patent promise.

After being burnt by Red Hat, it is the Ubuntu philosophy which keeps me with Ubuntu.

Every computer user should have the freedom to run, copy, distribute, study, share, change and improve their software for any purpose, without paying licensing fees.

There is only one Ubuntu – not one for enterprise and one for “users/hobbyists”, etc. That inspires faith in the distro. On the other hand Red Hat claims that Fedora is for:

Developer or highly technical enthusiast using Linux in non-critical computing environments

Contrast it with Ubuntu. The release notes of a recent version of this free distro states:

Ubuntu 6.06 LTS (Long Term Support) will be supported with security updates for 5 years on the server and 3 years on the desktop after its release, and professional technical support is available from many companies around the world.

Can Canonical turn into Red Hat sometime into the future due to business compulsions? The risk is always there, but a major differentiating factor is that Red Hat never made a promise of “keeping it free for ever”. But Canonical/Ubuntu did. No matter how Canonical tries to twist things around, they will lose the support of the entire community the instant they show such intentions. Based on Mark’s very public commitments I have faith in him that he will not turn coat.

One particular abstract of Mark’s blog was his admission that he is aware that some recent “non-free” aspect of Ubuntu dilute the software freedom philosophy.

With Ubuntu, our vision is to make the very best of free software freely available, globally. To the extent we make short-term compromises, for drivers or firmware along the way, we see those as bugs, and ones that will be closed over time.

But when even the venerable FSF can make a short term compromise (LGPL), I believe it is ok to let Ubuntu have its way for now,and then hold it to its promises to the community in the time to come.

Aren’t Indians the most racist of people on this planet?

A Bollywood actress caught saying

so-and-so is amazing as a director. He can make even a black African look pretty”.

A Bollywood actor saying:

(I knew) it was time to leave Shanghai and Hong Kong after six weeks of stunt training and go home when his eyes started “turning into little slits like the Chinese”.

Source: http://www.asiansinmedia.org/news/article.php/television/1404

As the BBC critic of Indian origin remarks, these are not unsurprising remarks. As most Indians know, we make these remarks all the time and either don’t realize these are offensive, or just don’t care. Why, we have names for such obscenities. We call our north-eastern country-men(and women), or just any person with mongoloid features “chinky”. We call any white-skinned person “firangi”. Any person of African origin is still called a “negro”, decades after this term has been replaced by “africans” or “african americans” in politer societies.

The fact is that we Indians have more ways to divide and discriminate humans than any society in the world, but few Indians would admit to this. We discriminate by race,skin color,caste, religion, regionality(“madrasis”) … if there are any other ways to divide people that I can’t remember now, we probably do that too.

However, nobody in India has the guts to address this problem. We let people openly advertise for “fair”, “brahmin” etc. brides and grooms in matrimonial listings in newspapers and online sites. There is still no government push for banning all temples from restricting who can enter by caste. There is no push to accommodate our north-eastern brothers and sisters into mainstream society. In fact, most of India would rather revel in “Gandhigiri” but blissfully ignore that Iron Sharmila , who has redefined Gandhian methods of struggle, even exists.

“Ours is a country of laws, and not men”

In the ongoing controvery of [President Bush authorising illegal surveillance of its citizens](http://www.washingtonpost.com/wp-dyn/content/article/2005/12/18/AR2005121801446.html?nav=rss_print/asection), here is a [marvelous post](http://cryptome.org/small-call.htm) making the real issue much clearer.

> Ours is a government of laws, not of men. That means if the President disagrees with a law or feels that it is insufficient, he still must obey it. Ignoring the law is illegal, even for the President. The President may ask Congress to change the law, but meanwhile he must follow it.

> Our President has chosen to declare himself above the law, a dangerous precedent that could do great harm to our country. However, without substantial effort on the part of you, and I mean you, every person reading this, nothing much is going to happen. The rule of law will continue to decay in our country. Future Presidents will claim even greater extralegal authority, and our nation will fall into despotism. I mean that sincerely. For the sake of yourself, your children and your children’s children, you cannot allow this to stand.

For Indians, so ignorant of the need for privacy as a basic human right, there is an important lesson in this story.

(Via [BoingBoing](http://www.boingboing.net/2005/12/19/nsa_domestic_spying_.html) )

The number of fonts in your KDE desktop might be slowing it down

[http://www.kdedevelopers.org/node/1654](http://www.kdedevelopers.org/node/1654)

>Now the problem is that KDE doesn’t need one font, but about five (monospace, sans serif fonts in different sizes). And as QFont is per process, every KDE/Qt application does this calculation from scratch. It very much depends on your setup of course, but let’s assume we do this for 10 applications in KDE startup. So doing 50 font matches (way too few, but I’m just trying to make a point): this makes 5 Billion instructions wasted on KDE startup. Now divide this 5 by number of Ghz you have to see how many seconds you waste. So go – deinstall that fonts! 15 fonts ought to be enough for everyone

The downside of Skype for Indian Users

India has one of the most expensive Internet bandwidths the world over, even if Indian ISPs command a significant amount of undersea cabling world wide. But we all know this – how Indian ISPs, by forming some sort of a cartel, and with the connivance of even government Telcos are holding broadband users country wide to ransom.

Why I mention this is because of a number of recent articles that I have read on the incredibly popular VOIP software – Skype. Now I use Skype regularly as an IM – I have a Skypeout account, and I have virtually stopped using Yahoo messenger because of too many people popping up to say “hello” even when my status clearly shows that I am busy.

I had vaguely read about Skype earlier and didn’t bother about finding out how it works. But a recent post on the India-GII list prompted me to read about it. And to say the least, I am shocked.

I have four machines at home – two laptops and two desktops. I have configured the DSL router to forward Skype specific traffic to each of them.

Now Skype operates in two ways – in firewall mode and in “Public IP” mode.

In the former, your computer is behind a firewall, and the NAT is not configured to forward incoming Skype traffic to your computer (A typical scenario in many organizations or homes with a DSL *router* in a default configuration). Because incoming Skype traffic cannot come to your machine directly, your machine keeps a connection alive to a *supernode*. The supernode receives calls on your behalf and sends them down your existing connection. Your outgoing call data also goes through these supernode to the calling party. Obviously, this is not very efficient as compared to a direct connection to the calling party. And therefore the quality of the call is likely to be undesirable (unless of course, you live outside India in US, Europe or East Asia, where the standard broadband connection being so good, you wont notice the difference).

The computers running on “public IP” on the other hand dont need a supernode, as they can receive calls directly from the caller and route them to the correct computer. Users in this category include people on dialup, DSL modems or router bridges, or people behind specially configured firewalls which route an unique pair of public IP/port to machines behind the firewall. The call quality of these computers are comparatively better than the firewalled computers, and people using firewalls (like me) are tempted to put in rules for port forwarding for this very reason.

So it seems that every body should try to be in category two as I just described, right? But no, here is the catch.

Remember, the supernode I told you a short while back? The ones which are used by firewalled machines? What are these supernodes? Are they machines run by the Skype corporation? No, siree.

The machines of the second category (the ones on public IPs) are the supernodes! This is where the peer-to-peer nature of Skype comes in. The clients of skype are the resources of the skype network itself! That is why Skype can support 2 million online clients at any moment of time, with most of them making free calls, and not costing Skype Inc a fortune either.

So how does this affect us? Simple, those on expensive bandwidth capped Internet connections in India, connected to the Net using Dialups or DSL modems, watch out! Even if you are not using Skype at any moment of time, even leaving Skype running in your system tray, can make you the unaware conduit of the conversations of people you dont even know! every conversation which uses you as a supernode will rob your bandwidth – both upload and download. You might even have multiple parallel conversations happening using your computer. And Skype provides you with no options for you to keep a check on this! No bittorrent kind of option to put in a download/upload cap for others.

It is not the security angle I am talking about – Skype uses decent encryption to ensure that you do not eavesdrop on others conversations. I am talking about how Skype can cost you hundreds and thousands of rupees a month if you dont know about this!

And remember, I told you in the beginning that I have four machines at home, with each having a specific firewall rule to help it receive Skype calls directly? I cannot confirm this, but this *might* probably mean that I have four supernodes running on the same Internet connection! Just think of organizations, which use Skype extensively and have put in firewall rules for scores of their employees!

For me the moral of the story is very clear. I am going to start using regular IMs again. And plan my Skype calls. And startup Skype only when I need to call or receive a specific party. And in all other times, shut it down.
:( The tragedy of using closed source programs. It is a shame that Skype hasn’t done the right things by telling its users how their use of Skype can affect their resources even when they are not using Skype’s service, … or by telling their clients how they might be financially affected by their usage of Skype.

WordPress tinyurl plugin

I was in a quandary. I wanted the long permalinks for my blog posts,which made links self-describing and also search engine friendly. And I also wanted short URLs that I could pass on in emails. I share [the sentiments of Andy Wibbels][1] regarding [TinyURL][2]. Nothing against TinyURL personally, just that when you have your own domain name for your blog, wouldn’t you prefer using tiny urls using your own domain name?

So I extended the [one liner][1] by Andy Wibbels and created a real small plugin, to display the “tiny url” in your post.

[1]: http://easybakeweblogs.com/2005/01/20/i-hate-tinyurl/
[2]: http://www.tinyurl.com/

To use it:

1. Download it from [here][3].
2. Rename it to `wptinyurl.php`.
3. Copy it into the `wp-content/plugins` directory in your WP root.
4. Activate the plugin in your WP admin section.
5. Then use the function `wptinyurl()` in your template files, wherever you want the tinyurl of the post to be displayed.

[3]: http://www.sandipb.net/downloads/wptinyurl.txt

In my case, to display the tiny urls in my posts, I have added the following line just before `edit_post_link()` in the `single.php` file in the theme directory. The relevant section of the file in my case now looks like this:

By default, the code uses the prefix `/bl/` for generating your tinyurls. So your typical tinyurls will be `http://yourdomain/bl/nn`, where nn is your post id.

To customize, edit the `wptinyurl.php` file, and change the variables as commented.

1. Change `$prefix` from `/bl/` to any other that you want. Just remember to keep the slashes at the beginning and the end of the string.
2. Change `$text` to whichever template you want to use to print your tiny url. Just remember, to use `%s` wherever you want the tiny url to be substituted. If you use `%s` more or less than twice, remember to change the first `printf` function in the code accordingly.
3. As an added feature, if you set the variable `$print_rule` to `True` in the code, the code will also provide you with the `.htaccess` rule that you require to make the tinyurl work. The rule will be inside an HTML comment. You can simply copy-paste from the HTML source of the page and add it at the end of the `.htaccess` file in your domain web root. You can set this variable to false after you have configured your `.htaccess` file.

That’s it.

Using svnreplicate

[Here is an article that I have just written][doc] on using [`svnreplicate`][svnr] to replicate [subversion][svn] repositories. `svnreplicate` allows you to have a single master repository, and multiple slave repositories.

The document uses a walkthrough approach to explain how to configure `svnreplicate`. I must warn though that it only demonstrates the concept using master and slave repositories present in the *same* system(reachable using `file:///` URLs).

While I am sure that this should work over multiple hosts too, Yashpal Nagar, a friend of mine, is trying to get it to work over multiple hosts with `svnserve`. I will add that to the document when he succeeds.

[Markdown source][docsrc] of the article.

My repository containing the latest version of the article:

* URL:
* Document under: `sandip@lug-delhi.org/floss-docs–main–1.0`
* Article location: `subversion/svnreplicate/`

Yes, I do understand the possible irony of using a [bazaar][baz] repo to keep a [subversion][svn] doc, but I don’t see any problems myself. I have been using subversion for over an year now for all my projects, and I find it quite simple to use for my needs.

Ofcourse, I like bazaar(and [arch][arch]‘s) distributed features, dumb read-only repo mirrors, etc., and therefore use it for needs which are not met by subversion. Over time though, I hope to migrate completely to bazaar, ofcourse, depending on when I manage to understand fully how it works. ;)

[docsrc]: http://www.lug-delhi.org/downloads/subversion/testsvnreplicate.mkd
[doc]: http://www.lug-delhi.org/downloads/subversion/testsvnreplicate.html
[svnr]: https://open.datacore.ch/DCwiki.open/Wiki.jsp?page=SVNreplicate
[baz]: http://bazaar.canonical.com/
[svn]: http://subversion.tigris.org/
[arch]: http://www.gnuarch.org/