Wednesday, 30 April 2008

Lenovo vs Mac Air, bloody ture, I think.

Monday, 28 April 2008

Brand new Ubuntu 8.04 got polished

If you want to see more from latest Gnome 2.21 and Ubuntu 8.04, compared with KDE 4.0.3, you will be disappointed, no big difference, but everything seems get polished. This is the reason why I love it. KDE 4 is amazing, indeed, but you must be tolerant enough, because with tons of new features appear, far more than tons of bugs come as well.
For me, I'd love more and more polished stuff than brand new and buggy things.

Ok, so what's new for me, as a normal desktop user, I've played with it from first hour the Ubuntu 8.04 was official available, why I am sure it's the first hour? I was keeping refresh, I can not wait at that time after experienced alpha, beta and RC.

1) Gnome-Do is in the repositories. Its plugins also works very well just as stated on its web page, "stable". Now it's really can be an alternative to Mac's Quicksilver, and more powerful with support to plugins. These plugins can support twitter, and Remote Desktop Control, etc. Fantastic! within one tool, we can almost achieve all the jobs normally go through dozens of programs. And it's much much better than old style gnome-launch-box, which should be removed from repositories.

2) Samba is more mature. Now you do need worry about the path of the fold you want to share, or the permission things, on Ubuntu 10.4 and previous version, it's a pain to set up a samba file sharing server, permission things and Cross OS visiting will make you crazy, even all this can be done and have solution. But now much easier, even you want to share a folder, which not belongs you, it will prompt you how to modify smb.conf to make it work. And after setup, the shared folders can be accessed in the same easy way no matter what OS you are using.

3) ThunderBird is offically supported by Ubuntu. I'd really want to see this, Mozilla and Ubuntu are so close in the filed of Open Source Softeares. Compared with Evolution, ThunderBird is more flexible and extensible, same, with support to extentions like Gnome-Do, more and more I like things work in this way. For example, in Evolution to bi-synchronize Calendar is not available with bugs, but this has been a problem for almost 2 years. So I will go to ThunderBird definitely. And ThunderBird support IMAP so well.

4) Ubuntu can detect the temporature of your computer, if it's above 84C, it will shutdown. But if you restart it, no matter how hot, it seems not to be off, because it knows there is a human around it, no danger.

There are also a lot of updates and optimizations which we can see from everywhere. Above is just my feelings. So far so good.

Sunday, 27 April 2008

linux memory management: buffer and cache


  free 命令相对于top 提供了更简洁的查看系统内存使用情况:

  $ free

  # free
   total used free shared buffers cached
  Mem: 255988 231704 24284 0 6432 139292
  -/+ buffers/cache: 85980 170008
  Swap: 746980 0 746980


  -/+ buffers/cached:表示物理内存的缓存统计


  系统的总物理内存:255268Kb(256M),但系统当前真正可用的内存b并不是第一行free 标记的 16936Kb,它仅代表未被分配的内存。

  我们使用total1、used1、free1、used2、free2 等名称来代表上面统计数据的各值,1、2 分别代表第一行和第二行的数据。

  used1:表示总计分配给缓存(包含buffers 与cache )使用的数量,但其中可能部分缓存并未实际使用。
  buffers1:系统分配但未被使用的buffers 数量。
  cached1:系统分配但未被使用的cache 数量。buffer 与cache 的区别见后面。
  used2:实际使用的buffers 与cache 总量,也是实际使用的内存总量。
  free2:未被使用的buffers 与cache 和未被分配的内存之和,这就是系统当前实际可用内存。


  total1 = used1 + free1total1 = used2 + free2used1 = buffers1 + cached1 + used2free2 = buffers1 + cached1 + free1

  buffer 与cache 的区别

 A buffer is something that has yet to be "written" to disk. A cache is
something that has been "read" from the disk and stored for later use.

Friday, 25 April 2008

Kobe, wow, 49 points and amazing performance

Thursday, 24 April 2008

Repositories for Ubuntu 8.04

# deb cdrom:[Ubuntu 8.04 _Hardy Heron_ - Release i386 (20080423)]/ hardy main restricted
# See for how to upgrade to
# newer versions of the distribution.

deb hardy main restricted
## deb-src hardy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb hardy-updates main restricted
## deb-src hardy-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb hardy universe
## deb-src hardy universe
deb hardy-updates universe
## deb-src hardy-updates universe
# deb hardy-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb hardy multiverse
## deb-src hardy multiverse
deb hardy-updates multiverse
## deb-src hardy-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb hardy-backports main restricted universe multiverse
## deb-src hardy-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
deb hardy partner
## deb-src hardy partner

deb hardy-security main restricted
## deb-src hardy-security main restricted
deb hardy-security universe
## deb-src hardy-security universe
deb hardy-security multiverse
## deb-src hardy-security multiverse

# ============================================================================
# latest (beta versions) versions:
# deb hardy main

# sudo wget -O /etc/apt/sources.list.d/medibuntu.list
# the public key:
# sudo apt-get update && sudo apt-get install medibuntu-keyring

# ==============================================================================
# Google
deb stable non-free
# wget -q -O - | sudo apt-key add -
# Or goto to download the key, then install by using synaptic

# Wine
# sudo wget -O /etc/apt/sources.list.d/winehq.list
# wget -q -O- | sudo apt-key add -

# Python 3rd party
deb hardy/
# sudo apt-get update && sudo apt-get install astraw-keyring

# Firefox
deb hardy main

# VirtualBox
deb hardy non-free
# sudo wget -q -O- | sudo apt-key add -

# Miro
deb hardy/

# Pidgin
deb hardy main








Tuesday, 22 April 2008

why I love twitter

1)Mini Blog
我用twitter主要是记事,比如买了iphone,或者今天看了火箭对犹他的比赛,犹他打得总是那么丑陋还能赢,我只想说这一句,就不用劳师动众写到blog里了,所以这叫mini blog。

Twitter in Plain English from leelefever on Vimeo.

2)Share Status

3)Time Line
还有一个很重要的意义就是,比如今天网络公司给我打电话说给我一个什么offer,说完全免费,我就留在twitter里,否则,日后它收我钱,我都忘记他们哪天给我打的电话。没办法和他们理论。或者向我那个iphone,几年后,我都会知道我那个电话跟了我多久了,像我以前那些经典电话Matrix 1中的nokia 8088,Nokia QD, Blackberry我都忘了什么时候的事了,或者与谁相识多久也都全靠猜和估计了,有了twitter,也不用总记得哪天是与女友的周年庆了。

4)Widely Supported
用twitter可以更新同步facebook,blog上的status,很方便,如此可以把facebook上的status都保存记录在一起,可以自己回顾最近都做了些什么,facebook上是不能记录以往的status的,twitter正好弥补。而且还可以用Messenger去更新twitter。真正的体现了web 2.0 的mashup。支持twitter的网站和程序数以百计了,而且不错的点子层出不穷。比如,就能看到london在twitter的人所在的位置(目前这个网站还是beta,有些bug,不过类似的网站数百计了。很多twitter的应用)。

5) Alternative Email
与一些新结识的朋友留下联系方式,不用bla bla bla说上很长还容易错的email了,直接留twitter,方便好记,还不怕junk。越来越多的IT geek都用这个作为联系方式了。

Monday, 21 April 2008

iphone passwd change from alpine to anything

passwd, this command not work properly in iphone (currently 1.1.4), it will cause endless loop, you must restore the system using itune. So this is the way how to change it.

Login to your iPhone using SSH, or use the Terminal Application, type vi /etc/master.passwd, and look for this line :

root:YOUROUTPUTHERE:0:0::0:0:System Administrator:/var/root:/bin/sh

Replace the content immediately after the root: with the output from that command we used early on. Done, password changed.
Maybe do the same for the mobile User, which is also a line in the same file.

Someone mailed me and stated that the above method did not work for him at all. Quite the opposite, he had to reinstall his Firmware again. Annoying. According to him, the
following snipped to generate the Password Hash worked fine.

openssl passwd -crypt -salt /s myNewPasswd

Personally right now i don’t have another iPhone to try this on, but i think i should still mention his method here.


Some discussion:
Before I tested your method I wanted to make sure the output with the default pw ‘alpine’ would be equal to the crypted pw in mast.passwd.

master.passwd: /smx7MYTQIi2M

Perl method:
perl -e ‘print crypt(”alpine”, “XX”).”\n”‘


OpenSSL method:
openssl passwd -crypt -salt /s djsr71bb

So the OpenSSL provided the correct output.
I have now changed the pw to my own pw and everything works fine.
So I guess the perl method would not have worked with me.

China is different (funny)

No interests about politics and national economics (for I can not understand), but this photo is quite funny.


Thursday, 17 April 2008

Eventrually BBC tells some facts and truth

China online: Tibet and torch reaction


Over the past few weeks Chinese bloggers and people on internet forums have been reacting to events in Tibet and the protests disrupting the torch relay.

This is a summary of some of the trends so far.

This page contains links to external websites which are not subject to the usual BBC editorial controls.


Paralympic athlete Jin Jing during the torch relay in Paris
The treatment of Paralympian Jin Jing in Paris sparked outrage in China

Blogs, internet forums and text messages circulating in China have urged consumers to boycott French goods in response to the protests that accompanied the torch relay in Paris.

Popular anger at chaotic scenes which saw pro-Tibet protesters grab the flame from Paralympic fencer Jin Jing has been inflamed by detailed accounts posted on the internet by eyewitnesses.

The blog EastSouthWestNorth translated the most notable of these posts from popular Chinese internet forums and newspapers.

One bystander waiting by the Seine for the torch to pass found himself involved in the scuffle for the torch. He recounted his experience on popular Chinese-language forum Tianya.

"The brave girl lowered her head and used her back to shield the torch. The thug pulled her shoulder back and hit her... Tears rained out of my eyes. I was sad and angry. Here was an unarmed girl who was handicapped, and the thug had to hit her?"

The anger and the bewilderment at the actions of the protesters is palpable in one of the response posts: "Who is abusing human rights? Who is bringing violence to this world?"

Lists of products and brands to boycott, including Louis Vuitton and French retailer Carrefour, have been widely circulated.

Blogger Wang Jian Shuo says several of his friends have started to boycott French products and describes the impact of recent events on his own thinking: "If you need an example, I am the person in China who were turned from pro-France to anti-France within few days. .. I don't think France is a friendly country at all."


The latest ditty to catch the imagination of the Chinese blogs and chatrooms is "Don't be too CNN" - a musical retort to the perceived bias of western media outlets such as CNN and the BBC.

"Don't be too CNN", broadly intended to mean "don't ignore the truth", has a music video which has been posted on many blogs and forums in China. The lyric has assumed the status of a cult catchphrase.

There are at least two versions of the song circulating. One version features a young woman singing about CNN's coverage of events in Tibet with screen grabs from the CNN website.

Another is set to the tune of Britney Spears' 1998 hit, Baby One More Time, and denounces both CNN and the BBC. In one scene from the video for that version the emblems of both organisations are emblazoned on a woman's buttocks.

One of the biggest Chinese language online portal sites,, has a popular page: "Don't be too CNN, fire to the Western media."


John Kennedy, who translates and collates highlights from the Chinese blogosphere for Global Voices, has highlighted instances where the online community has targeted certain individuals - and even taken its opposition offline.

He cites the example of Grace Wang, a Chinese student at Duke University in the US, who was spotted by other overseas Chinese taking part in a Free Tibet protest, which led to what he describes as "torrents of horrid abuse and at least one lengthy human flesh search engine witch hunt" which began on the Chinese language online portal Tianya.

If we use nationalism as the weapon to resist the westerners, then how can we persuade the ethnic minorities to abandon their nationalism
Chang Ping, Journalist and blogger
The EastSouthWestNorth blog talks about "human flesh search engines" as a phenomenon where an online community is mobilised to track down specific individuals or facts.

In this case a friend of the student concerned has written to Global Voices to say that the harassment was so serious that the student's home in China was attacked with rocks.

An internet manhunt - complete with "Wanted" posters - for the man who allegedly wrestled the torch from Paralympic athlete Jin Jing has also been launched on the Chinese language anti-CNN site.

The media monitoring blog Danwei highlights the case of Chang Ping, a journalist and blogger who was labelled as a traitor on forums - criticism which also made its way to the newspapers.

Chang Ping was attacked for his essay "How to find the truth about Lhasa" in which he says: "If we use nationalism as the weapon to resist the Westerners, then how can we persuade the ethnic minorities to abandon their nationalism and join the mainstream nation-building?"


Chinese supporters and pro-Tibet campaigners come face-to-face during the torch  relay in San Fransisco  - April 10 2008
Pro-Tibet campaigners came face-to-face with Chinese supporters in the US

The disillusionment and outrage in China at the torch protests and the perceived bias of the western media is evident across countless blogs and bulletin boards.

Many commentators have said that the protests over Tibet have only served to strengthen Chinese nationalism rather than evoke sympathy for the Tibetan cause. has a petition against the Western media which has reportedly accumulated millions of signatures. Chinese language bulletin board Tiexue (Iron blood) has also hosted outpourings of anger.

In her blog RConversation, Rebecca McKinnon co-founder of Global Voices Online and assistant professor at Hong Kong University's journalism centre, says: "Lots of Chinese people now view the Western media, human rights groups, and Western leaders' criticisms of their country as part of the Racist Western Conspiracy to Stop China From Being Successful."

She also points to the blog by an expatriate in China, Mutant Palm, who has been watching and commenting on the fallout from Tibet and torch protests online.

He tracked initial reaction to events in Tibet on Chinese versions of mobile phone social networks such as Fanfou. He argued in one early post that people should try and engage directly with Chinese "netizens" on networks such as Fanfou and Twitter in the spirit of constructive dialogue.

"Its time to start trying some things instead of just throwing our hands in the air and dismissing the other side as brainwashed, indoctrinated or oppressed. There's life out there folks, try making contact," he says.

Tuesday, 15 April 2008

Poem against BBC CNN etc.

When We were called Sick man of Asia, We were called The Peril.

When We are billed to be the next Superpower, We are called The threat.


When We were closed our doors, You smuggled Drugs to Open Markets.

When We Embrace Freed Trade, You blame us for Taking away your jobs.


When We were falling apart, You marched in your troops and wanted your "fair share".

When We were putting the broken peices together again, "Free Tibet" you screamed, "it was an invasion!"

When Woodrow Wilson Couldn't give back Birth Place of Confucius back to
Us, but he did bought a ticket for the Famine Relief Ball for us.)


So, We Tried Communism, You hated us for being Communists

When We embrace Capitalism, You hate us for being Capitalist.


When We have a Billion People, you said we were destroying the planet.

When We are tried limited our numbers, you said It was human rights abuse.

When We were Poor, You think we are dogs.

When We Loan you cash, You blame us for your debts.


When We build our industries, You called us Polluters.

When we sell you goods, You blame us for global warming.


When We buy oil, You called that exploitation and Genocide.

When You fight for oil, You called that Liberation.


When We were lost in Chaos and rampage, You wanted Rules of Law for us.

When We uphold law and order against Violence, You called that Violating Human Rights.


When We were silent, You said you want us to have Free Speech.

When We were silent no more, You say we were Brainwashed-Xenophoics.


Why do you hate us so much? We asked.

"No," You Answered, "We don't hate You."


We don't Hate You either,

But Do you understand us?


"Of course We do," You said,

"We have AFP, CNN and BBCs..."


What do you really want from us?

Think Hard first, then Answer...


Because you only get so many chances,

Enough is Enough, Enough Hypocrisy for this one world.


We want One World, One Dream, And Peace On Earth.

- This Big Blue Earth is Big Enough for all of Us.
























Monday, 14 April 2008

Vista sp1 installed in Virtualbox on Ubuntu

Install the VirtualBox Additions

From the Devices menu, click “Install Guest Additions”

Get the Missing Network Driver

Microsoft decided to not include the network driver that VirtualBox
uses in Vista, so you will have to install it yourself. (Doesn’t
Microsoft claim that Windows has better driver support than Linux
….. ?)

cd ~/install_files
unzip -d driver
mkisofs -o driver.iso -R -J driver

In the VirtualBox window, mount driver.iso . Then go to:

Control Panel > Hardware and Sound > Device Manager. Right click
on Ethernet Controller > Update Driver Software > Browser my

Navigate to the CDROM drive, and click ok.

Wait a minute… and congratulations, you have installed Vista

Sunday, 13 April 2008

Title bar for blogspot

1.Goto to pick up one style you fancy. Click it, of course, then.

2.There are two parts of codes come to you, one is the CSS codes used to feed BLOGGER DASHBOARD-LAYOUT-EDIT TEMPLATE.
Search "</head>", put the CSS codes just before that. Save the template.

From "Add a Page Element" select HTML/Javascript, feed those codes there without title. Save it.

4.You are almost there, but be careful in the step 2, because the CSS uses some images as button background, where relative url is used for the allocations of those images. Even if you hacked where those stored, namely absolute url, some time those images is not accessible. So my solution is use some photo album service, such as Picasaweb, which can provide absolute url of your photos. Then use this url to replace those relative ones in that CSS codes. Done.

Friday, 11 April 2008












label feeds for Blogspot

here is how you can get your own label feeds on Blogger blogs.

If you have a Blogspot blog:

Just be sure to change blogname to match your blog. The labelname is what appears in the URL of your blog label page.

Example URL:

Example Feed:

If you host your own blog:

The trick here is that you need to find your blog id. To do this,
login to your Blogger dashboard and click on the new post link. In the
URL bar your blog ID will show up and it’ll look something like

Example URL:

Example Feed:

If you have spaces in your label, your feed URL would look like the following.

Example URL:

Example Feed:


Example URL:

Example Feed:


Yes, there is one requirement and that is that feeds are enabled for
your blog. It should go without saying, but I thought I’d share.

Wednesday, 9 April 2008






Monday, 7 April 2008




Friday, 4 April 2008

Beijing 2008 Olympic Torch Relay, London, 6April 2008

The route

Click on a specific area on the map for details of events.

1. Wembley2. Ladbroke Grove 4. China Town5. Trafalgar Square6. Southbank Centre7. Somerset House8. St Pauls Cathedral9. Potter's Fields / More London10. Whitechapel High Street11. Stratford12. Canary Wharf13. North Greenwich

Torch Relay route PDF (483KB)

The map shows the route of the Torch Relay in London, with approximate timings. To be sure of seeing the Relay you should plan to arrive at your location at least 30 minutes in advance.

All events are free. The start and grand finale are also free, but will be ticketed. You can apply for tickets via the website.

The timings show the approximate times the Torch Relay passes. Special events at particular locations may begin earlier.

1. Wembley (10:30)

Special event with performances at Arena Square, outside Wembley Stadium (limited capacity, LB Brent ticket only). Community activities planned in central Harlsden.

Back to top

2. Ladbroke Grove (11:00)

A mini-carnival will be held at Ladbroke Grove with entertainers in Carnival Masquerade costumes performing to SOCA music.

Back to top

Notting Hill Gate (11:30)

In Notting Hill Gate a Latino Carnival band will entertain spectators evoking the carnival feeling for which Notting Hill is so famous.

Back to top

Oxford Street (12:00)

The Torch relay passes along the length of Oxford Street on an open top bus.

Back to top

4. China Town (12:45)

In Chinatown, the London Chinatown Chinese Association, in partnership with the Greater London Authority, has organised performances including costumed dragons and lions as well as decorating Gerrard Street with Chinese lanterns.

Back to top

Piccadilly Circus (12:50)

5. Trafalgar Square (13:00)

In Trafalgar Square, festivities will continue in front of Nelson’s column with performers and music raising the crowds’ excitement. A banner will be dropped from a lift in the centre of the square, which will rise from the stage to the accompaniment of a brass fanfare.

Back to top

6. Southbank Centre (13:30)

The Southbank Centre has created a spectacular welcome for the torch along the front terraces of the Royal Festival Hall with a choir of 600, Kathak, poetry, circus, hip-hop and beatboxing. The cast is made up of young people from Lambeth, Greenwich and Liverpool performing alongside Southbank Centre's Voice Lab, Riz MC, LakaD and with input from Artists in Residence Shlomo, Lemn Sissay, Gauri Sharma Tripathi and Stan Won't Dance.

Back to top

7. Somerset House (14:30)

Somerset House in Westminster has commissioned Aletta Collins to choreograph a unique dance piece that will be accompanied by music from the Bollywood Brass Band and 60 local primary school children.

Back to top

8. St Paul's Cathedral (14:45)

On the steps of St Paul's Cathedral in the City, the Band of the Scots Guards will welcome the flame with fanfares and music. The Lord Mayor and Dean of St Paul's will be present with over 150 schoolchildren dressed in Olympic-coloured T-shirts and waving flags.

Back to top

9. Potters Fields / More London (15:15)

In Southwark, outside City Hall at More London, Rhythms of the City, Chinese Dragon Dance and live drumming sessions will raise the atmosphere and continue the carnival spirit.

Back to top

Tower Bridge (15:30)

10. Whitechapel Road (15:45)

In Tower Hamlets see the Emperor and the Tiger spectacular and performances from Kinetika to celebrate the arrival of the torch near Whitechapel Tube.

Back to top

11. Stratford (16:30)

At Stratford in the London Borough of Newham a series of events will take place at different locations throughout the afternoon culminating with the arrival of the torch. Includes Carnival/Street performers, carnival and music floats and sporting activities. An aerial performance will take place at Theatre Square in Stratford alongside performances on the roof of the Stratford library and the Gerry Raffles Building as well as events in Meridian Square, Salway Road, inside Stratford shopping centre, Stratford Old Town Hall and Stratford station.

Back to top

12. Canary Wharf (17:00)

In Canary Wharf there will be carnival themed entertainment including acrobats, jugglers, stilt-walkers, street theatre, music shows, dance performances, face painters, children’s workshops, treasure hunts all throughout Canary Wharf's outdoor spaces and shopping malls. (Visit for activity listings or pick up a leaflet)

Back to top

13. North Greenwich (17:30)

The Torch Relay in London ends at a grand finale at the Arena at North Greenwich climaxing with the spectacle of the arrival of the final torchbearer and the lighting of the Olympic Cauldron.

Back to top

Thursday, 3 April 2008

legally hide the blogger navbar

Here is a creative way to hide the blogger nav bar without actually removing it. This will allow you to operate your blog within the confines of blogger's terms of service. It is a simple javascript snippet, and can be implemented with only two or three lines of codes.

1 - Add this code to your BODY tag:

<body onload="document.location = document.location + '#top1'">
or <body onload='document.location = document.location' + '#top1'>

2 - Add this code in ABOVE your upper most visible element tag. This is usually the blog title tag.

<a name="top1"></a>

This will force an automatic scroll down the page JUST far enough to push the navbar out of visibility. There is an example of how i've implemented this:

I have a
<a class="definition" href="">billiard blog</a> which is the site you are now on. Allow the page to load fully, then you will see it "jump" just enough to hide the nav bar.

Hope you all find this tip to legally hide the blogger navbar useful

Nba: dancing in the air

I don't think I can jump then spin 360 in the air even :(.

Nba shoot

This is exactly what I have exercised and try to achieve when I was undergraduate.

My photo
London, United Kingdom

Facebook & Twitter