Author Archive for Praveen A

Use your G1 as internet connection for your laptop aka tethering

Some failed attempts earlier to use my T Mobile G1 android phone as internet connection for my laptop did not stop me from succeeding this time. It is fairly complicated but if you have not other choice to get an internet connection, then you can follow this. You will need a USB data cable for this setup.

Follow the instrustions at http://graha.ms/androidproxy Thanks to Graham Stewart for discovering this very useful trick and developing tools to use this.

(copying here for easy reference with my notes added)

Installation

This shouldn’t damage your phone, but if it does, it’s your own fault!

* Install the app on your android phone, by clicking here (from your phone browser of course)
You might have to change your settings to permit apps that don’t come from the Google Market by going to your home screen and choosing MENU > Settings > Applications > Unknown Sources.
* Turn USB debugging on on your phone
On your G1 go to the home screen, press MENU > Settings > Applications > Development, then enable USB debugging.
* Follow the instructions here to install the Android driver – you’ll need to do this on Windows & Linux but apparently not on the Mac.
Note: You can actually skip the udev rules step, I did not need this, but your milage may vary.
* Download and install the Android SDK for your computer platform. Alternatively if you are on Windows and don’t want a 100 meg download, just get the ADB utility from here
* Plug your phone into your computer

Using the Socks Proxy

The SOCKS proxy will let you connect things like firefox to the internet

* Choose Tetherbot from your phone’s menu
* Press the “Start Socks” button on your phone
* Move to the directory that has the adb utility, using inside the Sdk Tools folder and run

Windows: adb forward tcp:1080 tcp:1080
Linux/Mac: ./adb forward tcp:1080 tcp:1080

* Now you should have a socks proxy running on port 1080 that you can use to configure firefox
* Set your firefox proxy : Options > Advanced > Network > Manual Proxy Configuration

Socks Proxy: localhost
Port: 1080

Leave the others blank
* Remember to disable your proxy settings in firefox if you want to stop using your phone.

Earlier I was stuck at adb refusing to recognise my phone. Today also I had the same problem with my Debian GNU/Linux sid on 2.6.30. I decided to try my luck with Mandriva and adb correctly listed the device (I still has to figure out why it did not work with Debian).

Though we got this far and got the socks proxy setup, most of the software does not support DNS resolution via socks (I could only find curl with this option via -socks5-hostname). So I resolved the ip address of my company web access on my phone (nslookup on terminal application) and used that gateway to connect to the internet.

It would be good to have a DNS resolution via proxy method (something similar to proxyfier on Windows and MACs) and support for this in all applications.

Update: Firefox allow with an advanced configuration option. Type about:config in address bar, filter proxy and trun on

network.proxy.socks_remote_dns

It is disappointing to see all tethering apps removed from the Market (Google T Mobile following Apple AT & T model), but you could always install it directly from author’s website without going through market. Probably it is time to create a Bazzar without restrictions.

Arundhati Roy for Release of Dr Binayak Sen

Free Dr Binayak Sen

Free Dr Binayak Sen

Tomorrow is World Health Day. Dr Binayak Sen spent the best part of his life working among the poorest people in India, who live far away from the government’s attentions, with no access to clinics, hospitals, doctors or medicines. He has saved thousands from certain death from malaria, diarrhea, and other easily treatable illnesses. And yet, he is the one in jail, while those who boast openly about mass murder are free to go about their business, and even stand for elections.

What does this say about us? About who we are and where we’re going?

Arundhati Roy

Full Press Statement

FOSS Meet @ NITC 2009 is here

Fifth edition of the FOSS Meet @ NITC is getting ready. Its just a week away – Feb 27th to March 1st.

Register today!

Using ntfs partitions from GNU/Linux

There was some discussions in fsug-tvm list about handling ntfs partitions in GNU/Linux. I thought I will summarise the steps here.

ntfs is a minefield of Microsoft patents and linux support has been very carefull and write support came only recently. Now mainline kernel has ntfs module (not sure if write support is still experimental), but most people are using ntfs-3g userspace program based on fuse.

Step 1:

Find out the device name of the partition

pravi@parimbrath:~$ sudo fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0adb0ada                     

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        5195    41728806    7  HPFS/NTFS
/dev/sda2            5196        6411     9767520    7  HPFS/NTFS
/dev/sda3            6412        9729    26651835    5  Extended
/dev/sda5            6412        6423       96358+  83  Linux
/dev/sda6            6424        9729    26555413+  8e  Linux LVM

We are interested in /dev/sda1 here.

Step 2:
Find out ownership and group information of the device

pravi@parimbrath:~$ ls -l /dev/sda1
brw-rw---- 1 root disk 8, 1 2009-02-20 04:04 /dev/sda1

We know the device has write access for root and members of disk group.

Step3:
Add any user who need access to this partition to disk group.

sudo usermod -aG disk pravi

Now user pravi has write access to the device through membership in the disk group. Alternately, you may change the ownership and group of the device also, but I prefer the former.

(you will need to logout and login to take the group membership to take effect)

Step4:
Add the entry to /etc/fstab

/dev/sda1  /windows  ntfs-3g defaults,users,uid=pravi       0       0

Thats all! You may need to install ntfs-3g package if it is not installed already.

Then they came to us…

First they killed Dalits. Then we said; “They deserve to be killed” We also adopted the same hindu brahminical strategies in our elite spheres to ward off dalits – (we still practice it proudly)

Then they came to Muslims and killed them one by one. We also kept quite as we belived that muslims are “terrorists”

Again they started killing Christians. We said; “Conversion is anti-national” and keep quite as usual.

Then they came to us. To our world. They brutally attacked our kids who were enjoying in the pubs- the world created by us for them. We cried. Our elite kids cried. But no one was there to rescue us and our kids.

Source: A posting by Ranju Radha in greenyouth discussion list.

Join the battle to Free Your Phone

I have just submitted my comments to “Exemption to Prohibition on Circumvention of Copyright Protection Systems for Access Control Technologies” that US Copyright office is seeking. My comments are in supports to class “5A Fred von Lohmann, Jennifer S. Granick, Electronic Frontier Foundation”.

My full comment is provided below

Commenter’s Name:
Praveen Arimbrathodiyil

Proposed Class:
5A – Fred von Lohmann, Jennifer S. Granick, Electronic Frontier Foundation.

Proposed Class Description:
Proposed Class #1: Computer programs that enable wireless telephone handsets to execute lawfully obtained software applications, where circumvention is accomplished for the sole purpose of enabling interoperability of such applications with computer programs on the telephone handset

Summary of Argument:
T Mobile G1 block against uploading fonts prevents customers from uploading fonts and using applications in the language of their choice.

Argument:
On December 15, 2008, I purchased my T Mobile G1 phone from a store. None of the applications (including the most commonly used Email client and Web Browser software) in T Mobile G1 have the option to select the font in my native language – Malayalam (It is not only true for Malayalam, but for many of the languages). Consequently, I cannot view emails, web pages, any other document or engage in written communications in the language of my choice.

I searched the internet for a way to correct my problem. The only way to solve my problem is to upload a font that supports my native language and replace the default font provided in T Mobile G1. The T Mobile G1 does not allow me to upload a different font.

If I could jailbreak my T Mobile G1, I could get root access to my phone and upload a font that supports my language. I have not taken this step because I am concerned with the DMCA and the possible legal implications of taking this action.

The comment that EFF has provided which I’m supporting is given below

[Proposed class or classes of copyrighted work(s) to be exempted]= Proposed Class #1: Computer programs that enable wireless telephone handsets to execute lawfully obtained software applications, where circumvention is accomplished for the sole purpose of enabling interoperability of such applications with computer programs on the telephone handset.

Proposed Class #2: Audiovisual works released on DVD, where circumvention is undertaken solely for the purpose of extracting clips for inclusion in noncommercial videos that do not infringe copyright.

[Brief summary of the argument(s) in support of the exemption proposed above]= Cellular phones are increasingly sophisticated computing devices, capable of running applications from a variety of software vendors. Several mobile phone providers, however, have deployed technical measures that prevent subscribers from installing applications from vendors of their choice, instead forcing customers to purchase their
applications only from the providers’ preferred sources. There is no copyright-related rationale for preventing iPhone owners from decrypting and modifying the device’s firmware in order to enable their phones to interoperate with applications lawfully obtained from a source of their own choosing.

The vast majority of amateur remix video creators rely on DVD rippers to obtain the DVD clips they need. These creators thus risk civil liability based on their circumvention of CSS, even where their videos would otherwise be adjudicated to be noninfringing fair uses. This risk of circumvention liability also chills the ability of remix video creators to resist unfounded DMCA “takedown notices” that impair their ability to share remix
videos on the Internet. An exemption to § 1201(a)(1) is necessary if these remix video creators are to have a meaningful opportunity to engage in noninfringing creativity without unintentionally transgressing the prohibitions of § 1201(a)(1).

The deadline for submission is February 2, please submit your comments before that. The URL to submit your comments is http://www.copyright.gov/1201/comment-forms/.

For more information about Free Your Phone Campaign see http://www.freeyourphone.org/

Al Jazeera Announces Launch of Free Footage under Creative Commons License

Doha Qatar – January 13, 2009: Al Jazeera Network today announced the world’s first repository of broadcast quality video footage released under the ‘Creative Commons 3.0 Attribution’ license. Select Al Jazeera video footage – at this time footage of the War on Gaza – will be available for free to be downloaded, shared, remixed, subtitled and eventually by users and TV stations across the world with acknowledgement to Al Jazeera.

Al Jazeera will release its exclusive Arabic and English coverage produced by the Network’s correspondents and crews in the Gaza Strip online at http://cc.aljazeera.net. The ongoing war and crisis in Gaza, together with the scarcity of news footage available, make the repository a key resource for anyone producing content on the current situation.

This the first time that video footage produced by a news broadcaster is released under the ‘Creative Commons 3.0 Attribution’ license which allows for commercial and non-commercial use.

Mohamed Nanabhay who headed New Media at Al Jazeera and launched the project stated, “As one of the only international broadcasters in Gaza, our coverage of the war has been unsurpassed. The launch of Al Jazeera’s Creative Commons Repository means that our Gaza footage will be made available under the most permissive Creative Commons license (CC-BY). With the flexibility of the license we expect to introduce our outstanding coverage to an even wider audience across the world. This means that news outlets, filmmakers and bloggers will be able to easily share, remix and reuse our footage.”

Lawrence Lessig, the founder of Creative Commons organization and Professor of Law in Stanford University, stated, “Al Jazeera is teaching an important lesson about how free speech gets built and supported. By providing a free resource for the world, the network is encouraging wider debate, and a richer understanding”.

Joichi Ito, CEO of Creative Commons and a world renowned Web 2.0 entrepreneur, added, “Video news footage is an essential part of modern journalism. Providing material under a Creative Commons license to allow commercial and amateur use is an enormous contribution to the global dialog around important events. Al Jazeera has set the example and the standard that we hope others will follow”.

As a pioneer in news and media Al Jazeera is always looking for ways to make its unique content accessible to audiences across the world and the launch of Al Jazeera’s Creative Commons Repository is another concrete step in this direction.


Link to press release
.

Help Get Sita Out Of Copyright Jail!

Animator Nina Paley has announced on her blog her plans to make her award-winning, feature-length film “Sita Sings The Blues” available online for free decentralized distribution, as soon as she gets it out of copyright jail (which will cost approximately $50,000.00).

QuestionCopyright.org is helping her — and you can help too.

Transcript to script translations?

What is there to script in translations? In many cases placeholders like ‘%1′ are used when you have many similar strings that follow a pattern like choices in a dropdown menu. With agglutinative languages like Malayalam mere substitution is not enough when prepositions are used to connect the placeholder with the rest of the sentence. The nouns that takes the position of the placeholder needs to be changed depending on the preposition/relationship. I will give an example to make this clear.

before_transcript

Consider the following message “&Location of %1″, where %1 can be Province, State, District, Country … In case of English just replacing %1 with the actual word would solve the problem. Lets see how it looks if we try to translate this into Malayalam.

"%1 ന്റെ &സ്ഥാനം"

In the actual case, if we substitute %1 with “Province”, it looks like this.

"പ്രോവിന്‍സ് ന്റെ &സ്ഥാനം"

It doesn’t look right. So how do we do this? So Transcript comes to our rescue here. It is fully integrated into kde4. Read more about it here.

So with Transcript you can create a dictionary where all possible forms of a noun can be added and depending on the relationship of the placeholder you can tell transcript to pick the appropriate form. Neat, ain’t it?

This is how the dictionary looks like.

// dictionary entries follow:
addDictCases("സംസ്ഥാനങ്ങള്‍", "സംസ്ഥാനങ്ങളുടെ");
addDictCases("രാജ്യങ്ങള്‍", "രാജ്യങ്ങളുടെ");
addDictCases("സംസ്ഥാനങ്ങളും വിഭാഗങ്ങളും", "സംസ്ഥാനങ്ങളുടേയും വിഭാഗങ്ങളുടേയും");
addDictCases("സംസ്ഥാനങ്ങളും ഭരണപ്രദേശങ്ങളും", "സംസ്ഥാനങ്ങളുടേയും ഭരണപ്രദേശങ്ങളുടേയും");
addDictCases("പ്രവിശ്യകള്‍", "പ്രവിശ്യകളുടെ");
addDictCases("പ്രദേശങ്ങള്‍", "പ്രദേശങ്ങളുടെ");
addDictCases("ജില്ലകള്‍", "ജില്ലകളുടെ");
addDictCases("വിഭാഗങ്ങള്‍", "വിഭാഗങ്ങളുടെ");
addDictCases("കൌണ്ടികള്‍", "കൌണ്ടികളുടെ");
addDictCases("മുനിസിപ്പാലിറ്റികള്‍", "മുനിസിപ്പാലിറ്റികളുടെ");
addDictCases("പെരിഫറികള്‍", "പെരിഫറികളുടെ");
addDictCases("പാരിഷസ്", "പാരിഷസുകളുടെ");
addDictCases("ഗവര്‍ണറേറ്റുകള്‍", "ഗവര്‍ണറേറ്റുകളുടെ");
addDictCases("മഹാസമുദ്രങ്ങളും താഴ്വരകളും", "മഹാസമുദ്രങ്ങളുടേയും താഴ്വരകളുടേയും");
addDictCases("പ്രിഫക്ച്ചറുകള്‍", "പ്രിഫക്ച്ചറുകളുടെ");
addDictCases("ഒബ്ലാസ്റ്റുകള്‍", "ഒബ്ലാസ്റ്റുകളുടെ");
addDictCases("കോമാര്‍കെസ്", "കോമാര്‍കെസുകളുടെ");
addDictCases("ഭൂഖണ്ടങ്ങള്‍", "ഭൂഖണ്ടങ്ങളുടെ");
addDictCases("കാന്റോണ്‍സ്", "കാന്റോണ്‍സുകളുടെ");
addDictCases("എമിറൈറ്റ്സ്", "എമിറൈറ്റ്സുകളുടെ");

This example has only one form, but any number of forms can be added.

Now you add this and javascript functions to pull this info in a file with a .js extension and name remaining the same as the .po file. The javascript functions that does the actual magic is given below.

function getProperty (prop, key) {
return _dict_[key][prop];
}
Ts.setcall("get-case", getProperty);

_dict_ = {};
function addDictCases (key, pos) {
if (!_dict_[key])
_dict_[key] = {};
_dict_[key]["possesion"] = pos;
}

Link to the repo.

And in the po file you can call this function like this.

msgid "&Location of %1"
msgstr "%1 ന്റെ/ളുടെ സ്ഥാനം"
"|/|"
"$[get-case possesion %1] &സ്ഥാനം"

after_transcript

Terror: The Aftermath / Anand Patwardhan

Anand patwardhan
Article Rejected by Times of India

The attack on Mumbai is over. After the numbing sorrow comes the blame game and the solutions. Loud voices amplified by saturation TV: Why don’t we amend our Constitution to create new anti-terror laws? Why don’t we arm our police with AK 47s? Why don’t we do what Israel did after Munich or the USA did after 9/11 and hot pursue the enemy? Solutions that will lead us further into the abyss. For terror is a self-fulfilling prophecy. It thrives on reaction, polarization, militarization and the thirst for revenge.

The External Terror
Those who invoke America need only to analyze if its actions after 9/11 increased or decreased global terror. It invaded oil-rich Iraq fully knowing that Iraq had nothing to do with 9/11, killing over 200,000 Iraqis citizens but allowing a cornered Bin Laden to escape from Afghanistan. It recruited global support for Islamic militancy, which began to be seen as a just resistance against American mass murder. Which begs the question of who created Bin Laden in the first place, armed the madarsas of Pakistan and rejuvenated the concept of Islamic jehad? Israel played its own role in stoking the fires of jehad. The very creation of Israel in 1948 robbed Palestinians of their land, an act that Mahatma Gandhi to his credit deplored at the time as an unjust way to redress the wrongs done to Jews during the Holocaust. What followed has been a slow and continuing attack on the Palestinian nation. At first Palestinian resistance was led by secular forces represented by Yasser Arafat but as these were successfully undermined, Islamic forces took over the mantle. The first, largely non-violent Intifada was crushed, a second more violent one replaced it and when all else failed, human bombs appeared.

Thirty years ago when I first went abroad there were two countries my Indian passport forbade me to visit. One was racist South Africa. The other was Israel. We were non-aligned and stood for disarmament and world peace. Today Israel and America are our biggest military allies. Is it surprising that we are on the jehadi hit list? Israel, America and other prosperous countries can to an extent protect themselves against the determined jehadi, but can India put an impenetrable shield over itself? Remember that when attackers are on a suicide mission, the strongest shields have crumbled. New York was laid low not with nuclear weapons but with a pair of box cutters. India is for many reasons a quintessentially soft target. Our huge population, vast landmass and coastline are impossible to protect. The rich may build new barricades. The Taj and the Oberoi can be made safer. So can our airports and planes. Can our railway stations and trains, bus stops, busses, markets and lanes do the same?

The Terror Within
The threat of terror in India does not come exclusively from the outside. Apart from being hugely populated by the poor India is also a country divided, not just between rich and poor, but by religion, caste and language. This internal divide is as potent a breeding ground for terror as jehadi camps abroad. Nor is jehad the copyright of one religion alone. It can be argued that international causes apart, India has jehadis that are fully home grown. Perhaps the earliest famous one was Nathuram Godse who acting at the behest of his mentor Vinayak Savarkar (still referred to as “Veer” or “brave” although he refused to own up to his role in the conspiracy), murdered Mahatma Gandhi for the crime of championing Muslims.

Jump forward to 6th December, 1992, the day Hindu fanatics demolished the Babri Mosque setting into motion a chain of events that still wreaks havoc today. From the Bombay riots of 1992 to the bomb blasts of 1993, the Gujarat pogroms of 2002 and hundreds of smaller deadly events, the last 16 years have been the bloodiest since Partition. Action has been followed by reaction in an endless cycle of escalating retribution. At the core on the Hindu side of terror are organizations that openly admire Adolph Hitler, nursing the hate of historic wrongs inflicted by Muslims. Ironically these votaries of Hitler remain friends and admirers of Israel.

On the Muslim side of terror are scores of disaffected youth, many of whom have seen their families tortured and killed in more recent pogroms. Christians too have fallen victim to recent Hindutva terror but as yet not formed the mechanisms for revenge. Dalits despite centuries of caste oppression, have not yet retaliated in violence although a small fraction is being drawn into an armed struggle waged by Naxalites.

It is clear that no amount of spending on defense, no amount of patrolling the high seas, no amount of increasing the military and police and equipping them with the latest weaponry can end the cycle of violence or place India under a bubble of safety. Just as nuclear India did not lead to more safety, but only to a nuclear Pakistan, no amount of homeland security can save us. And inviting Israel’s Mossad and America’s CIA/FBI to the security table is like giving the anti-virus contract to those who spread the virus in the first place. It can only make us more of a target for the next determined jehadi attack.

Policing, Justice and the Media
As for draconian anti-terror laws, they too only breed terror as for the most part they are implemented by a State machinery that has imbibed majoritarian values. So in Modi’s Gujarat after the ethnic cleansing of Muslims in 2002, despite scores of confessions to rape and murder captured on hidden camera, virtually no Hindu extremists were punished while thousands of Muslims rotted in jail under draconian laws. The same happened in Bombay despite the Shiv Sena being found guilty by the Justice Shrikrishna Commission. Under pressure a few cases were finally brought to trial but all escaped with the lightest of knuckle raps. In stark contrast many Muslims accused in the 1993 bomb blasts were given death sentences.

The bulk of our media, policing and judicial systems swallows the canard that Muslims are by nature violent. Removing democratic safeguards guaranteed by the Constitution can only make this worse. Every act of wrongful imprisonment and torture that then follows is likely to turn innocents into material for future terrorists to draw upon. Already the double standards are visible. While the Students Islamic Movement of India is banned, Hindutva outfits like the RSS, the VHP, the Bajrang Dal, and the Shiv Sena remain legal entities. The leader of the MNS, Raj Thackeray recently openly spread such hatred that several north Indians were killed by lynch mobs. Amongst these were the Dube brothers, doctors from Kalyan who treated the poor for a grand fee of Rs.10 per patient. Raj Thackeray like his uncle Bal before him, remains free after issuing public threats that Bombay would burn if anyone had the guts to arrest him. Modi remains free despite the pogroms of Gujarat. Congress party murderers of Sikhs in 1984 remain free. Justice in India is clearly not there for all. Increasing the powers of the police cannot solve this problem. Only honest and unbiased implementation of laws that exist, can.

It is a tragedy of the highest proportions that one such honest policeman, Anti-Terrorist Squad chief Hemant Karkare, who had begun to unravel the thread of Hindutva terror was himself gunned down, perhaps by Muslim terror. It is reported that Col. Purohit and fellow Hindutva conspirators now in judicial custody, celebrated the news of Karkare’s death. Until Karkare took charge, the Malegaon bomb blasts in which Muslims were killed and the Samjhauta Express blasts in which Pakistani visitors to India were killed were being blamed on Muslims. Karkare exposed a hitherto unknown Hindutva outfit as masterminding a series of killer blasts across the country. For his pains Karkare came under vicious attack not just from militant Hindutva but from the mainstream BJP. He was under tremendous pressure to prove his patriotism. Was it this that led this senior officer to don helmet and ill-fitting bullet proof vest and rush into battle with a pistol? Or was it just his natural instinct, the same courage that had led him against all odds, to expose Hindutva terror?

Whatever it was, it only underlines the fact that jehadis of all kinds are actually allies of each other. So Bin Laden served George Bush and vice-versa. So Islamic and Hindutva jehadis have served each other for years. Do they care who dies? Of the 200 people killed in the last few days by Islamic jehadis, a high number were Muslims. Many were waiting to board trains to celebrate Eid in their hometowns in UP and Bihar, when their co-religionists gunned them down. Shockingly the media has not commented on this, nor focused on the tragedy at the railway station, choosing to concentrate on tragedies that befell the well-to-do. And it is the media that is leading the charge to turn us into a war-mongering police state where we may lead lives with an illusion of safety, but with the certainty of joylessness.

I am not arguing that we do not need efficient security at public places and at vulnerable sites. But real security will only come when it is accompanied by real justice, when the principles of democracy are implemented in every part of the country, when the legitimate grievances of people are not crushed, when the arms race is replaced by a race for decency and humanity, when our children grow up in an atmosphere where religious faith is put to the test of reason. Until such time we will remain at the mercy of “patriots” and zealots.

Anand Patwardhan