2010 March

The Chinese goverment needs to stop browbeating Google

Earlier this year, Google announced that they would stop filtering their Internet search results for the Chinese market, a request made by the Chinese government. This came after a massive attack on Google’s US-based Gmail servers which was likely an attempt by the Chinese government to get information about Chinese dissidents and human rights activists.

In the past few days, Google has moved its operations and personnel from mainland China to the less restrictively-governed Hong Kong. Google.cn will now redirect to google.com.hk.

Naturally, the Chinese government is not too thrilled about this move and even called it “the wrong choice.” Well, I’m sorry, but that’s not really your decision, is it? If Google doesn’t really want to put up with filtering results in your country while at the same time trying to sell themselves as one of the greatest research tools in history, then that is their call. The decision that the Chinese government made is to censor the Internet. They can block Google at any time.

What I found truly bizarre in all of this is that the Chinese people, at least according to the general portrayal of events in the media, actually feel sorry for Google, which confused and frustrated me a bit. Google is going out on a limb here and trying to provide uncensored material to you and feel sorry for them? I do not get it.

Good for Google. I completely agree with their decision here. The Internet was never meant to be censored by anyone, individual or government. A free and open Internet benefits everyone. Hopefully, the Chinese government will someday see the light and lift its restrictions on freedom of speech and information.

Is Palm dead?

Yes.

Use Twitter from the Terminal (part 1)

I know that this has been done to death, but I felt that I should persist in beating a deceased horse. When I am at work and don’t want it to be obvious that I am on Twitter, I use this nifty little Terminal trick that lets me send out tweets. On my laptop, I took it a step further and wrote a command-line Ruby script that does that and more.

Here are the basics of posting to Twitter through the Terminal. Somewhere on your computer, create a new shell script file. In my case, I will call it twitter.sh. Type this into the new file:

#!/bin/bash
curl -u username:password -d status="$1" http://twitter.com/statuses/update.xml
echo Message sent.

Now it is as simple as running a shell command with your message attached.

./twitter.sh "Hey, I am screwing around at work!"

It is as simple as that. You can create shortcuts that make using this even easier. The most common thing I do when I write this script is to alter the .bash_profile file to save myself the trouble of typing out ./twitter.sh.

Open a new terminal window (or tab) and enter “nano .bash_profile”. (It is not necessary that you use nano, I just prefer it for quick text editing in the Terminal.) Add the following to a new line to the file with the path in quotes being the path to your twitter.sh file and save.

alias tw="~/path/to/twitter.sh"

Now close that Terminal tab and open a new one. That is the only way to get the newly edited .bash_profile to load and your new alias to take effect. To send a message use your alias in place of ./twitter.sh.

tw "I am screwing around at work more efficiently!"

You’re welcome.