Saturday, November 27, 2010

Finally Giving In




I have been a long-time fighter against Apple's victimizing marketing campaign. Remember that when everyone around was flocking to get a Mac or an iPod, I was the one who expressed the aloft indifference, and I go, "I don't have one of those. My good old Creative MP3 player only costs $30 bucks, and it's got FM radio."

Life has its interesting twist. This Thanksgiving, I've got my first iPod from my dear wife, the iPod Touch 4th Generation. Yes, I betrayed my own anti-iPod ideology, and joined the billions of others in this beauty movement. 80% of why I fell for the iPod touch is purely for its aesthetic form factor. Yep, I am that superficial. I truly believe that there are still many other similar devices out there that are functionally just fine, if not better, but they just don't look right. It's kind of like, when you date a super-model, you don't care about her intellectual side. There are still things that I took for granted, like playing regular video files such as avi, mpeg and etc., that are rendered to be quite difficult on the iPod touch, and we all know why. Apple won't make it easy for you to live without the iTunes store.

So immediately I loaded my pod with a bunch of apps, all free of course. Here are just a short list of what I've downloaded so far.

News: NYTimes, Economist, BBC News, NPR News
Social: Skype, QQ, Facebook
Reference: Dictionary.com, Wikipedia Mobile
Media: Todou.com, Pandora Radio
E-readers: iBooks, Stanza
Utility: Free WiFi Locator, Unit Convertor
Productivity: Evernote
Entertainment: Urbanspoon, Showtimes

Haven't got any games yet, but already found the apps store addictive. The next question is, how long will this enthusiasm last? Sure I will get bored one day, or by that time comes, some other cooler devices come out. But before that happens, I might feel compulsive to post some silly tricks or tips that I tinker on the new toy. So bear with me.

Thursday, November 25, 2010

Europe vs China

Agricultural food production is the critical step towards civilization and modernization. The huge social, technological and military differences between Euroasia and other continents, namely Africa, America and Asian Pacific Islands, has proven this point. There're still questions, however, remained unanswered solely with the differential development of agriculture. Why China, one of the first agriculture centers in the world, a country that had enjoyed enormous technological advantages up to at least 1500AD, has failed to ride on its momentum, and to lead the world in industrial revolution and modernization? Clearly, the answer to this question lies beyond simple geographical and climatory factors that differentiated Euroasia from the rest of the world. In fact, the great contrast between the rise of Europe and the fall of China, is a vivid example of how political and social structures influence the development of a society.

After the Qin dynamsty (220 BC), the Middle kingdom has been unified and integrated as one of the largest states in the world, not only politically but also culturally. The unification of China, which the Chinese people have been proud of, also brought negative side effects. The highly unified and centralized China have stifled diversity and innovations. One evidence is the fact that China did not develop ocean-borne ships, while Europe did, and later on used them to conquer the world. Around 14-15th century AD, China was at the peak of its economic development, producing almost a third of the world GDP. The then kings and queens in China did not see the need to explore outside their own country, therefore discouraging all the ship-building programs. If China was a fragmented, or decentralized political entity, what the kings and queens thought might not necessarily apply to local officials. Ships would have been built if someone saw the need of it. This is exactly what happened in Europe, which was an extremely fragmented political landscape. Columbus had lobbied Italy, England, France for supporting his plan of voyage, and eventually gained support from the queen of Spain. The beauty of a fragmented and decentralized political structure lies in the tolerance for diversity in the system. When one party demonizes an idea, another party might find it interesting.

The consequences of the unified, centralized political structure in China, vs the fragmented, decentralized Europe, go far beyond ship-building. One critical consequence is the origin and growth of capitalism. Both China and Europe have witnessed similar embryonic birth of capitalism around 14-15th century AD. The idea of being self-sustaining and even prospering by engaging in manufacturing or trading did not attract the political leaders in China. In fact, it's been viewed as a threat to the status quo. In the unified China, whatever the kings didn't like wouldn't survive. In contrast, capitalism found its niche in the fragmented Europe, and thrived. The successful development and spread of capitalism in Europe acted as an enormous force to push Europe for more resources and bigger markets. It also drove and encouraged the development of science and technology, which were stifled in the arrogant, ancient China. Technological development tends to be an auto-catalyzed progress. Advancement in one technology enables and facilitates many other technologies to be developed. As a consequence, once Europe took a head start in science and technology, the gap between Europe and China would only widen.

The unified and centralized political structure in China has helped stifled diversity and innovations in the country. In contrast, the fragmented, decentralized Europe had became the crescent for capitalism, which drives colonization, technological development and eventually, rapid industrial revolution. From this standpoint, it's not hard to understand why some Europeans don't like the idea of European Union. It's the political fragmentation that makes Europe the Europe.

Wednesday, November 24, 2010

Blackberry Tips

BlackBerry Tips and Tricks

In The Message List

(Some of these work in tasks, memos, and appointments also)

1. ALT-i: show only incoming mail
2. ALT-o: show only outgoing mail (messages you have sent - i.e. checkmark icon)
3. ALT-p: show phone log messages
4. ALT-s: show SMS messages
5. ALT-v: show VoiceMail messages

Navigating

1. t: go to top of message listing
2. b: go to end/bottom of message listing
3. backspace: close message listing and return to home screen (ribbon)
4. spacebar: pagedown
5. cap + spacebar: pageup

While In A Message

1. enter or spacebar: scroll down a page/screen at a time
2. ALT-enter or spacebar: scroll back a page/screen at a time
3. b: scroll to end of page
4. t: scroll to top of page
5. u: jump to closest unread message
6. n: jump to next message
7. p: jump to previous message

Hold down the half moon ALT key -AND- the CAP key at the same time, then the letter 'h'. This brings up the "Help Me!" screen that lists version, app version, pin, imei, uptime, signal strength, batterylevel, file free, and file total.

Tuesday, November 23, 2010

Guns, Germs and Steel - Or Why Europe Ended Dominating the World

Jared Diamond's Guns, Germs and Steel is a Pulitzer Price winning book on evolution of the human society, and it's a lot of fun to read. Jared attempted to answer one question, why and how Europe has achieved such predominant advantages on technological and military developments, and ended up conquering the rest of the world. I have always been curious of how the world becomes the way it is nowadays. So this is a summary of the main thesis in the book based on my reading.

The immediate factors that help Europe to dominate other continents, namely Africa, America and Asian-Pacific region, are their advanced weapons, the bacteria and diseases that Europeans carried to the New World, and the advanced industrial technologies, most notably metallurgy. There is no question that these three factors would put Europe in a great advantage over those who don't possess them. The real question, therefore, is why Europe, not Pacific Islanders, say, acquires the three factors? Many arguments come down to the difference between Europeans and the counter-parties that they conquered, such as intellectual ability, open-mindedness for innovations or risk-taking ability. Jared argued that the difference in the people play only a minimal role, if any. However, the environment in which the people inhabit, make the critical difference.

The origin and development of agriculture has play a major role in differentiating a society from it's hunter-gatherer counterpart. Being able to grow crops and raise cattle allows a steadier production of food than hunting-gathering. Surplus of food frees men up to do things other than food production, such as manufacturing, military, religions and politics. Agriculture also supports a larger population in a higher density. A higher population density has very important effects: first, more innovations would be possible because of the higher density of inventors; second, epidemic diseases occur and evolve more rampantly in a more crowded society, because they spread faster among people. Overall, the argument is very straight-forward that whoever has a head-start on agricultural food production, who will also lead in technological, social and even biological developments.

According to history, agriculture was developed in the Euroasia continent much earlier than Africa, America and Asian-Pacific islands. The primary reason is that, Euroasia happens to have the wild predecessors of some of the most popular crops and domesticated animals, while other continents are lack of these resources due to geographical and climatory conditions. In fact, the earliest food production centers were western Asia (known as the Fertile Crescent) and China.

Why Agriculture spread at a much faster rate across the Euroasia continent than the other continents? That's because of the geographical difference between these continents. If we open a world map, we can see that the Euroasia continent spans along an east-west axis, while Africa and America both span along north-south axes. An east-west orientation removes major climatory barriers which tend to retard the diffusion of food, animals and human. On the other hand, food production was confined to where it started by geographical and climatory barriers in America and Africa.

In a word, geographical and climatory conditions have given the Euroasia continent a head-start in agricultural food production, and hence accelerated their departure from the primitive, less-efficient hunter-gatherer life style. This lead has eventually equipped Euroasia with more complex social structure, more advanced technology and therefore significant military advantage, which help them conquering the rest of the world in the recent history. But why Europe, not other countries in the Euroasia, such as China, dominated the world, not vice verse? We will answer that question in my next blog entry.

Monday, November 22, 2010

Shell Script to Terminate Apps

I was learning unix commands and regular expression on the mac sitting on office desk, and did a little exercise: a shell script that terminates a running application given the name of the app.

The shell script goes like this:

#!/bin/sh

ps auxc | grep -i "$1" | awk "{print $2}" | xargs kill

That was it. Now let me explain.

The line is composed of four individual commands piped together with the piping operator "|".

The first command, "ps auxc" lists all the running processes. The output of this command is piped into the second command, "grep -i "$1"", which takes the first argument of the script, i.e. the name of the Application that you want to terminate, and returns the line that contains that name. The third command scans that line, and returns the second field in the line, which is the process ID of the application to be terminated. Finally, the last command, "xargs kill" takes the process ID generated above as an argument, and passes it to the termination program "kill", to terminate the application.

Back

Being a blog is kind of pathetic. Number one, nobody reads it; number two, the author himself neglects it. I decided to revitalize the blog after a long hibernation. There're some changes in my life. But mostly, Yali and I moved to Boston and we have a new member in our family: our dog Max! Welcome back to my blog.