How to fix the Segmentation Fault of Compiz under Lenny

I followed Debian Wiki’s instruction on how to install Compiz Fusion (was Beryl) under Lenny. But after walking through the tutorial, I got this error message when I tired to launch Compiz under Gnome with the command: compiz –replace

The error showed up was:

/usr/bin/compiz: line 393: 3146 Segmentation fault ${COMPIZ_BIN_PATH}${COMPIZ_NAME} $COMPIZ_OPTIONS “$@” $COMPIZ_PLUGINS

Obviously, the Debian Wiki page isn’t complete about Compiz installation. I found I had to install two extra packages in order to run Compiz under Lenny. My thanks go to the hints provided by a fellow Debianer.

apt-get install compizconfig-settings-manager compiz-fusion-plugins-extra

Only after installing these two packages, can you run Compiz under Lenny without Segmentation Fault. To enhance your Compiz experience, you may want to install two more packages: compiz-fusion-plugins-main compiz-fusion-plugins-unsupported


A Brief Review of You don’t mess with the Zohan

If you are a political liberal, a democrat, or an Adam Sandler fan, you are probably going to enjoy this movie, but probably hate the strongly accented English.

What you will see is a few superman-like, Hong Kong kungfu movies styles stunts, and the rosy wish of Peace and Brotherhood between Israel and Palestine. Although the matters in mid-east are not really that simple and easy, not like Zohan’s bloated masculinity and fighting skills.

The movie also pictures America as a land of dreams and equal opportunities for everyone, but you know it is not 100% true, right? It also sports some dirty jokes about Bush’s wife, Clinton’s wife and Obama’s wife, and I personally think it is not funny but obviously very political.

If Israelis and Palestinians are not real enemies, then who is? Look at the screenshot of the movie and terminate him whenever you find him:

Because he hates “Jews, the Arabs, the Blacks, the Yellows, the French, the Latins, the New York times, the George Clooney, the Hillary, the Obama, the whole foods, the Prius, the dogs in purses, the Orphah, the Ellen, the condoms and sunsets on the beach” according to the movie, and he works for the American cooperate interests.

Anyway, if you have two hours to kill and want to see Zohan the Incredible perform his sensual stunts, you will enjoy this movie.


AVG Free 8.0 and NOD32 3.0, which one uses less resources?

I don’t want to argue which one is better. For me, AVG Free is trustworthy, and it does detect viruses better than another free AV — AntiVir PersonalEdition Classic. For Nod32, well, it is not free, and keeping it in ‘free’ mode for a long period requires a lot of extra work. Kaspersky’s invincible key file is annoying, and so is Nod32’s usename/password mechanism. Yes, you can find the ‘free’ Kaspersky keys, or subscribe to a daily feed of Nod32’s login information or use a trial time stopper. But why do that when you have AVG free which does a very respectable job in virus-detection?

Right now I am using a AMD Tbird 1300 MHz CPU and 512MB memory, a configuration which makes the responsiveness of the system my main concern. I noticed an older version of AVG Free used more system resources than it should, so I decided to give ESS (ESET Smart Security) a try yesterday. But it blocked my Internet connection even after I completely disabled its firewall. It was kicked out of my system within an hour.

Reminiscing of the good old Nod32 version 2.7, I am thinking giving Nod32 antivirus 3.0 a try again. But the question is: is the already famous Nod32 uses less resource than AVG Free? If the answer is yes, it is certainly a big plus for me to make the switch. If not, I will stay with the latest version of AVG Free, which I have the obnoxious link scanner disabled. Both are good antivirus software, and both are well-know for its very small system footprint (AVG uses less than 30MB of memory). The question is, which one is even more efficient?

Can’t tell you the result now, but if you know the answer, please give your informed opinion. When I get the time to test and compare both programs, I will post the result here. So far, it seems AVG Free will stay. I am lazy and I don’t want to employ the tricks to make Nod32 free.

Update: Nod32 3.0 does use less resources compared to AVG Free 8.0 in my recent user experience. But AVG is free and powerful, so it is up to you to decide which one to use.


A Brief Review of the Incredible Hulk and the War Inc.

For me Edward Norton and John Cusack look quite alike, and it is not until I watched the movie the Incredible Hulk did I realize they are different individuals. Edward Norton appears to be a right fit for dark and sad characters, while Cusack has a sunnier face. If you ask me which movie I like better, the Hulk or the War Inc., I would pick the latter.

The Incredible Hulk is a movie to watch in a lazy weekend and relax oneself, while the War Inc. brings you the liberal pleasure to ridicule the dirty war in Turaqistan, which is an obvious allusion to and a bitter reminder to the war in Iraq.

Both movies have some attractive actresses to boast: the graceful Liv Tyler and the elegant Marisa Tomei. Liv in the Hulk movie is a predictable character from a cartoon book, while Marisa is more true to life as a war zone journalist. I will be expecting to witness more charms of Marisa in another movie of her Before the Devil Knows You’re Dead.

These two movies have more to be desired. Hulk 2 is a monster movie lacking some human touches, and the War Inc., with a setting in the future, should be surrealistic in its props. But the surgical bombing mishit the target in the War Inc. is hilarious.

The Hulk movie also has Robert Downey Jr. appeared in the last scene of the movie, as if ascertaining the entertaining orientation of Hulk 2.


Why I love Debian

My frequent inquiry into Google Blog Search with the key word “Debian” reveals me this intriguing post, which is titled “Why I love Debian“. Unfortunately, I could not access the page and view its contents for some obviously guessable reasons ( /me casting a wary eye at G.F.W).  Persistent as I am, I used a online proxy and read the post any way. The following is the entire post I copied, and salute to its author. Cheers to all Debian fans.

Ubuntu and Linux Mint are great for new users, but I’m not a new user. I’m not trying to be snobby, and I don’t think I’m better than anyone else; I just have different needs than most people. I don’t want polish. I want to see and work with the guts of my operating system, because I like to be in total control of my computing experience. I don’t like my hand to be held. I’m not extreme about this. I like user-friendly things as long as they don’t get in my way, or cover up what I want to see. Debian makes everything as easy as possible without getting in my way, holding my hand, or hiding the details.

I also value different things than most people. I don’t want the latest bells and whistles, pretty graphics, or fancy features. I want stability and commitment. I hate when vendors take liberties with my computing experience for their own nefarious ends. I hate bugs, crashes, upheavels, insecurity, and having my privacy disrespected. Linux in general tends to be refreshingly free from many of these, but Debian takes it all a step further.

Debian has been around longer than most other distributions, and the system they have in place is the same basic system they’ve had for the last decade. They did it right from the beginning, and while they add features, improve security, and add the occasional bit of polish, they never try to fix what ain’t broken.

But they don’t depend on their reputation alone. They also offer a social contract outlining their values and promising to its users that these values won’t change. This is the kind of commitment you don’t get from most software vendors.

Debian has a reputation for being the most stable and secure distribution in existence. Indeed, this thing is like a rock. It never crashes or locks up, and I haven’t had a single security exploit ever since I installed it in 2004. This is true for Linux in general for the most part, but Debian is better at it than any other distribution.

Debian dubs itself the Universal Operating System. Debian is more than just a Linux distribution for the PC. It’s more like a free software distribution system for all architectures. They offer three other operating system kernels than Linux, and they distribute thousands of other software packages that go far beyond the basic operating system. They offer this for 10 different hardware architectures. What I get with Debian is a complete software solution for all of my needs, no matter how they might change in the future.

Debian has three different software repositories, with varying degrees of maturity: stable, testing, and unstable. All three are actively maintained. Unstable has the newest of everything. After software in unstable has undergone a certain minimum of testing for a few months, it is moved to testing. Stable only gets updated about once every 2 years, after rigorous testing. That’s the one I use. I like to stay behind the curve, and I like that I’m given this choice.

Debian values software freedom. In each repository, they have different sections: main, contrib, and non-free. Non-free is software that doesn’t satisfy its free software, non-proprietary guidelines. Contrib is free software but depends on non-free software to run. Main is entirely free software. That’s the one I use. I like that they give me the choice of how much freedom I want in my software.

Last but not least is the Debian community. It’s probably the single biggest and most diverse free software project in existence. It has thousands of developers from all over the globe. It’s entirely non-profit and volunteer-driven. It operates as a true democracy. They use the Condorcet method for counting votes, and the election process is completely out in the open. So, in a way, Debian is more like a huge social experiment than a mere operating system.

Of course, nothing is perfect. Debian can be fussy about some things. It usually detects most hardware, but when I added a sound card recently, it didn’t detect it. After messing with it a bit, I switched it to a different slot, and it worked. That’s kind of stupid.

And sometimes, very rarely, staying behind the curve like I do causes me problems. I recently had a problem with a piece of software, and after much searching, I found that there’s a bug in the version I’m using. The bug is fixed in recent versions. So, I have to either wait for the next version of Debian, or switch to the testing branch, which is a big compromise to make just for the sake of one program. Luckily, Debian has a “backports” system in place for situations like this. Unfortunately, this program didn’t exist in their backports, and I had to hunt around for a backport somewhere else.

But these annoyances are rare and not really a big deal. The benefits far outweigh the burdens. I look forward to a long and fruitful relationship with this operating system.


How to publish posts to WordPress blog via Email

I am actually writing this post in my Gmail account. Here is what you
need to do when you want to publish a post to your WordPress blog by
sending email messages:

  • Enter the Mail section on your C-Panel.
  • Create a very secret email address, the one that nobody could guess. If other people know this email address, they can post to your blog with no restrictions.
  • In your WordPress Settings, go to Writing Settings, and find Post via e-mail section. Input the your secret mail address and password, and choose a default category of your emailed posts.
  • Send an email to your secret address.
  • Edit your wp-mail.php under the WordPress installation directory, find this line, and change the line below it into ‘publish’:
// Author not found in DB, set status to pending. Author already set to admin.
$post_status = 'publish';
  • In your browser, visit your wp-mail.php so that your emailed posts will be published. This is the url I feed to my browser:

Your emailed posts should appear in your front page now.


  • I am not sure how to tag this post, neither do I know how to insert pictures into this email message which is going to be posted.
  • You can’t use Rich formatting to format your posts, just use plain text. As common HTML tags will be stripped.
  • Only good for a very plain, words only post.


  • Good for travelers with limited computer availability.
  • Very efficient. It is like writing an email message to your readers, and you may even be inspired when posting in this unorthodox method.


To automatically publish emailed posts, and avoid visiting wp-mail.php every time after you send a post, add the following line to the bottom of footer.php of your theme. Remember to use your own URL instead of mine.


Robots.txt made simple

For beginner WordPress bloggers, creating a search bot friendly robots.txt is a headache sometimes. This is particularly true for me: I first blindly copied a robots.txt from some site, which resulted in the blocking of all my posts from the search engines. I later found out the robots.txt I copied deliberately blocked all posts with a ? in the default permlink format.

Learning a hard lesson, I found a simple robots.txt will just do the job. Don’t copy robots.txt from sites that claim their robots.txt can do magic to SEO.

So how to create a simple and easy robots.txt for your new WordPress blog?

  • You want to allow all search bots to crawl your site, so simply put this simple line into your robots.txt:
User-agent: *
  • Create a Sitemap and submit it to Google Webmaster Tools. How to create a sitemap? Just install the plugin google-sitemap-generator for this purpose.
  • Block search bots from crawling certain directories – the directories which do not provide contents of your site, and are there for administrative or maintenance tasks. For WordPress, you certainly want to block these three directories. Remember, don’t disallow wp-contents. Because it holds your site’s contents.
Disallow: /cgi-bin/
Disallow: /wp-admin/
Disallow: /wp-includes/
  • If you feel like generating a robots.txt automatically, here is a robots.txt generator you can try and it can also help you better understand how robots.txt works.
  • Still want to know more? Actually you can learn a lot from your favorite sites. Just add robots.txt to the end of the url of your favorite sites, and you can see how they configured theirs. For exmaple, you can see my robots.txt by this url.
  • Feel lazy? You should be just fine if yours robots.txt looks similar to this (remember to supply your own site’s url to the sitemap line).
User-Agent: *

History rpeating: the similarity between the 1997 asian financial crisis and China’s economic situation at present

Recently I have been reading about the 1997 Asian Financial Crisis, IMF bailout and the repercussions of the crisis. The more I read, the more I am struck with the similarities between the 1997 crisis and the current economic situation of China. After all, the symptoms are almost the same:

  1. Sharp stock market fall. The Shanghai Index of China’s stock market plunged from 6,000 points to approximately 2300 in less a year. The stock market in crisis-affected countries also fell sharply in 1997, only with a much deep dive.
  2. The government began to implement stringent money policies and credit control. In 1997, IMF recommended the crisis-torn countries like Indonesia to implement the same policy for the reason of macroeconomic restructuring.
  3. The export-oriented industries are having a hard time for it’s now harder to get bank loans to keep the business going. The same happened in Indonesia.
  4. High inflation and the sharp rise in the prices of food, energy and the general cost of living. This too happened in 1997, and the lack of food partially caused the riot in Indonesia in 1998, thanks to the suggestions of IMF and U.S. to relax food price control.
  5. Sharp fall of real estate prices. Shenzhen is a typical example, and the value of the new houses sometimes shrank by 30%. It is harder to sell houses and the real estate market is taking a downturn. The same happened in Hong Kong ten years ago.

The only difference I noticed between the ten-year-apart two situations is: right now, RMB (Chinese Yuan) appears to be appreciating in value against U.S. dollars, while ten years ago, the currencies of the crisis affected countries devalued a plenty against U.S dollars. But the appreciation of RMB is merely an illusion, and the currency is actually depreciating in my opinion. Inflation means the devaluation of the currency, and the mirage of a strong RMB is created by the very weak dollar.

So I would say in all the six aspects mentioned above, the history is indeed repeating the pattern of ten years before, fortunately, only by a smaller scale and a moderate pace.