Wednesday, 30 April 2008
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 ubuntu.com, 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, del.icio.us 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.
at 18:46 0 comments
labels: linux
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
Mem:表示物理内存统计
-/+ buffers/cached:表示物理内存的缓存统计
Swap:表示硬盘上交换分区的使用情况,这里我们不去关心。
系统的总物理内存:255268Kb(256M),但系统当前真正可用的内存b并不是第一行free 标记的 16936Kb,它仅代表未被分配的内存。
我们使用total1、used1、free1、used2、free2 等名称来代表上面统计数据的各值,1、2 分别代表第一行和第二行的数据。
total1:表示物理内存总量。
used1:表示总计分配给缓存(包含buffers 与cache )使用的数量,但其中可能部分缓存并未实际使用。
free1:未被分配的内存。
shared1:共享内存,一般系统不会用到,这里也不讨论。
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.
at 17:43 0 comments
Friday, 25 April 2008
Thursday, 24 April 2008
Repositories for Ubuntu 8.04
# deb cdrom:[Ubuntu 8.04 _Hardy Heron_ - Release i386 (20080423)]/ hardy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://gb.archive.ubuntu.com/ubuntu/ hardy main restricted
## deb-src http://gb.archive.ubuntu.com/ubuntu/ hardy main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://gb.archive.ubuntu.com/ubuntu/ hardy-updates main restricted
## deb-src http://gb.archive.ubuntu.com/ubuntu/ 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 http://gb.archive.ubuntu.com/ubuntu/ hardy universe
## deb-src http://gb.archive.ubuntu.com/ubuntu/ hardy universe
deb http://gb.archive.ubuntu.com/ubuntu/ hardy-updates universe
## deb-src http://gb.archive.ubuntu.com/ubuntu/ hardy-updates universe
# deb http://fr.archive.ubuntu.com/ubuntu/ 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 http://gb.archive.ubuntu.com/ubuntu/ hardy multiverse
## deb-src http://gb.archive.ubuntu.com/ubuntu/ hardy multiverse
deb http://gb.archive.ubuntu.com/ubuntu/ hardy-updates multiverse
## deb-src http://gb.archive.ubuntu.com/ubuntu/ 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 http://gb.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
## deb-src http://gb.archive.ubuntu.com/ubuntu/ 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 http://archive.canonical.com/ubuntu hardy partner
## deb-src http://archive.canonical.com/ubuntu hardy partner
deb http://security.ubuntu.com/ubuntu hardy-security main restricted
## deb-src http://security.ubuntu.com/ubuntu hardy-security main restricted
deb http://security.ubuntu.com/ubuntu hardy-security universe
## deb-src http://security.ubuntu.com/ubuntu hardy-security universe
deb http://security.ubuntu.com/ubuntu hardy-security multiverse
## deb-src http://security.ubuntu.com/ubuntu hardy-security multiverse
# ============================================================================
# latest (beta versions) versions:
# deb http://ppa.launchpad.net/fta/ubuntu hardy main
# http://medibuntu.org/
# sudo wget http://www.medibuntu.org/sources.list.d/hardy.list -O /etc/apt/sources.list.d/medibuntu.list
# the public key:
# sudo apt-get update && sudo apt-get install medibuntu-keyring
# ==============================================================================
# Google
deb http://dl.google.com/linux/deb/ stable non-free
# wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
# Or goto http://www.google.com/linuxrepositories/apt.html to download the key, then install by using synaptic
# Wine
# sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/hardy.list -O /etc/apt/sources.list.d/winehq.list
# wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -
# Python 3rd party
deb http://debs.astraw.com/ hardy/
# sudo apt-get update && sudo apt-get install astraw-keyring
# Firefox
deb http://ppa.launchpad.net/mozillateam/ubuntu hardy main
# VirtualBox
deb http://download.virtualbox.org/virtualbox/debian hardy non-free
# sudo wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | sudo apt-key add -
# Miro
deb http://ftp.osuosl.org/pub/pculture.org/miro/linux/repositories/ubuntu hardy/
# Pidgin
deb http://ppa.launchpad.net/pidgin-developers/ubuntu hardy main
at 17:33 0 comments
labels: linux
德国抗议:这是我哥们!
敬佩!!
我就在这位大哥侧后方一直看着,特别感动,国旗完全挡住了前方视线,但还是很坚定地站着!
我们后面的小声跟他说,很累的话找人去轮换,大哥一扭头,只一句:
“我倒了国旗也不能倒!”
From:http://stu-cn.de/viewthread.php?tid=19822&extra=page%3D2&page=1
at 16:33 0 comments
labels: life
Tuesday, 22 April 2008
why I love twitter
我用twitter主要是记事,比如买了iphone,或者今天看了火箭对犹他的比赛,犹他打得总是那么丑陋还能赢,我只想说这一句,就不用劳师动众写到blog里了,所以这叫mini blog。
Twitter in Plain English from leelefever on Vimeo.
2)Share Status
然后在twitter上加我为好友的人,就能看到我这些话,就知道了我在做什么,同时我也会知道我的朋友们都在干什么。对友善的人,这个很有帮助。(自闭的就不用考虑这个了)
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的网站和程序数以百计了,而且不错的点子层出不穷。比如twittervision.com/local/london,就能看到london在twitter的人所在的位置(目前这个网站还是beta,有些bug,不过类似的网站数百计了。很多twitter的应用)。
国内有个中文的叫饭否,但是就支持程度和与其他网站协作的能力饭否还差很远。
5) Alternative Email
与一些新结识的朋友留下联系方式,不用bla bla bla说上很长还容易错的email了,直接留twitter,方便好记,还不怕junk。越来越多的IT geek都用这个作为联系方式了。
at 12:24 0 comments
Monday, 21 April 2008
iphone passwd change from alpine to anything
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.
NOTE:
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.
from: http://www.overridersworld.com/?p=74
=================================
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”‘
XXCLVpuFl/zmI
hmm…
OpenSSL method:
openssl passwd -crypt -salt /s djsr71bb
/smx7MYTQIi2M
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.
at 22:42 0 comments
China is different (funny)
No interests about politics and national economics (for I can not understand), but this photo is quite funny.
at 12:37 1 comments
Thursday, 17 April 2008
Eventrually BBC tells some facts and truth
China online: Tibet and torch reaction
From http://news.bbc.co.uk/1/hi/world/asia-pacific/7347821.stmOver 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.
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, Sina.com, 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 |
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 China.com 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?"
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.
Sina.com 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.at 17:53 0 comments
labels: Blogged
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.
当我们被称为东亚病夫时,我们被称为黄祸。
当我们被宣传为下一个超级大国时,我们被称为威胁。
当我们关上我们的大门时,你们走私毒品来打开市场。
当我们信奉自由贸易时,你们责骂我们夺走了你们的工作。
当我们被碎成几片时,你们的军队闯进来要求公平分赃。
但我们把碎片重拼接好时,你们有叫嚣解放被入侵的西藏。
好,那么我们尝试共产主义,你们恨我们是共产分子。
当我们容纳了资本主义时,你们又恨我们是资本家。
当我们有十亿人民时,你们说我们正在摧毁这个星球。
当我们实行计划生育时,你们说这是违反人权。
当我们贫穷时,你们认为我们是狗。
当我们借给你们现金时,你们骂我们使你们负了债。
当我们建设我们的工业时,你们称我们是污染者。
当我们卖给你们商品时,你们责备我们助长了温室效应。
当我们购买石油时,你们称是剥削和种族大屠杀。
而当你们为石油而发起战争时,你们称为解放。
当我们在动乱时,你们要替我们制定律法。
当我们依法镇治暴乱时,你们称违反了人权。
当我们沉默时,你们要我们言论自由。
当我们不再沉默时,你们称我们是洗脑式的仇外。
你们为什么那么恨我们?我们不禁要问。
不,我们不恨你们,你们说。
我们也不恨你们,但是你们理解我们吗?我们问。
当然了,你们说,我们有媒体AFP,CNN和BBCs。
at 10:29 0 comments
labels: Blogged
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
wget http://www.amd.com/us-en/assets/content_type/utilities/V4.51.zip
unzip V4.51.zip -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
computer…
Navigate to the CDROM drive, and click ok.
Wait a minute… and congratulations, you have installed Vista
at 18:00 2 comments
Sunday, 13 April 2008
Title bar for blogspot
1.Goto http://www.dynamicdrive.com/style 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.
3.The other codes is for BLOGGER DASHBOARD-LAYOUT-PAGE ELEMENT.
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.
at 15:42 0 comments
Friday, 11 April 2008
乱世出英雄:破7_猪圈防盗门_Olympic
中国的国家主席就像我们物理系的学生会主席,像我这样的物理系学生躲都躲不及。中国最近太乱了:
1。人民币增直,破7
路透香港4月11日电--经过一个星期左右的徘徊,周四人民币终于破7,对美元汇率升到了15年来的最高.香港居民抢购人民币,海外热钱以前所未有的速度涌入中国,经济学家们甚至开始谈起了之前不可想像的情况:人民币是否会再进行一次性升值?
全球股市疲软,房市颓败,美国央行频频减息,使得美国和香港一起进入负利率时代.而人民币较一年前已经升值约10%,一季度升幅折合整年高达17%.买入人民币,就算存在国内银行里吃一年4.14%的利息,一年後也能有14%左右的回报,它的相对低风险和高回报,使得人民币套利交易成为了海外投资人垂涎的肥肉.
详见:http://cn.reuters.com/article/columnistNews/idCNChina-956120080411?feedType=RSS&feedName=columnistNews
2。通贸膨胀
猪肉的疯涨又引起治安问题,就是农民的猪圈成了小偷眷顾的地方。好多农民不得不住在猪圈里防贼。我看做防盗门的厂家可以利用这个机会把防盗门推广到农村的千家万户了。
3。北京奥运在海外受到不公平待遇
气得我要死,但是从这些事件后的观察与思考中,我觉得这个事件大大加强了中华民族(除了藏族)的爱国情怀与凝聚力,一些反中势力想借此削弱中国的经济实力,但是在我看来,这会促使中华民族的又一次欲扬先抑的腾飞。
英雄的民族又要有英雄出现了。想做英雄的早该或者已经蓄势待发了。
at 13:58 0 comments
labels: life
喜欢学习的人大都快乐
初来英国的时候,最大的反差除了london之破外,就是这里的人的精神风貌。
除了在上班高峰期,几乎大家脸上似乎都挂着微笑,与国内大多数人都愁眉不展的忙碌相差颇多。
还有便是在公共场合,尤其是bus,train,地铁里,很多人都会背着大大的包,说实话很丑,包里大多都装着一本厚厚的小说或是其他读物。免费报纸更是满天飞,整天躲都躲不过来。
随着自己慢慢的适应这边的生活的时候,也是学习工作需要,要学很多很多东西,慢慢的觉得学习是可以修心养性的:喜欢学习的人,潜意识里总是会主动的去发掘他人的优点来学习,完善自己。而那些浮躁的厌学分子,他们可能更多的是挑剔别人,埋怨生活。相比之下,喜欢学习的人会快乐多了,这可能就是西方这些国家的人脸上总是挂着微笑的原因吧,毕竟他们的人平均阅读时间远远高于中国的水平。
这可能就是为什么受教育多的人为什么会给人一种素质蛮高的感觉,重要的并不是学的东西的多少,而是那种学习的态度。
at 10:54 0 comments
labels: life
label feeds for Blogspot
If you have a Blogspot blog:
http://blogname.blogspot.com/feeds/posts/default/-/labelname
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: http://googleblog.blogspot.com/search/label/personalization
Example Feed: http://googleblog.blogspot.com/feeds/posts/default/-/personalization
If you host your own blog:
http://www2.blogger.com/feeds/blogid/posts/default/-/labelname
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
this:
http://www.blogger.com/post-create.g?blogID=1234567980123456789
Example URL: http://www.yourblog.com/label/personalization
Example Feed: http://www2.blogger.com/feeds/1234567980123456789/posts/default/-/personalization
If you have spaces in your label, your feed URL would look like the following.
Example URL: http://googleblog.blogspot.com/search/label/policy%20and%20issues
Example Feed: http://googleblog.blogspot.com/feeds/posts/default/-/policy%20and%20issues
or
Example URL: http://www.yourblog.com/label/policy%20and%20issues
Example Feed: http://www2.blogger.com/feeds/1234567980123456789/posts/default/-/policy%20and%20issues
Requirements
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.
at 01:56 0 comments
labels: google
Wednesday, 9 April 2008
我想说一句:挡我者死!
正当的抗议难道会如此用踢的方式对待一位残疾女性?!
“那一刻,我只想到要保护好火炬!”昨天,记者收到了奥运火炬手金京从法国巴黎发来的短信。
金京是上海姑娘,也是国家轮椅击剑队的队员,这次通过联想的火炬手选拔,光荣地成
为一名境外火炬手。就在前天的奥运火炬传递巴黎站,金京在等待火炬交接时受到了藏独分子的干扰,关键时刻,她不顾一切地保护了奥运火炬。随后,金京护住火
炬的照片和故事迅速在国内各大网站上流传,大家感动地称她为“用身体保护奥运火炬的姑娘”。
奥运火炬手金京:“那一刻,我只想保护火炬”_体育频道_新华网
at 14:43 0 comments
labels: life
Monday, 7 April 2008
中国屏蔽了太多的新闻,即便是海外华人反抗藏独的报道也都全部予以删除,就连Chinaren里都不允许说爱国。
中国屏蔽了太多的新闻,即便是海外华人反抗藏独的报道也都全部予以删除,就连Chinaren里都不允许说爱国。
一边看着西方媒体夸张失实的报告,抗击着种种不利中国的说法,一面又要面对一个事实,中国这个“闭关大国”封锁负面新闻的举措。我们如何爱国,祖国不但不予支持,反而加以屏蔽。不论如何,这点确实是中国需要努力做好的方面。
但是西方传媒也好不到哪里,BBC只是报道中国的负面新闻,那些为了和平和奥运的示威他们则基本不予报道。
at 14:31 0 comments
labels: life
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.
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.
2. Ladbroke Grove (11:00)
A mini-carnival will be held at Ladbroke Grove with entertainers in Carnival Masquerade costumes performing to SOCA music.
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.
Oxford Street (12:00)
The Torch relay passes along the length of Oxford Street on an open top bus.
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.
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.
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.
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.
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.
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.
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.
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.
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 www.mycanarywharf.com for activity listings or pick up a leaflet)
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.
at 12:58 0 comments
labels: life
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="http://billiardsforum.blogspot.com/">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
From: http://billiardsforum.blogspot.com/2006/08/legally-hide-blogger-nav-bar-without.html
at 21:27 0 comments
labels: Blogged, JavaScript