<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5240622987504808045</id><updated>2012-01-30T02:52:07.994+08:00</updated><category term='Lithuania'/><category term='Python'/><category term='Subversion'/><category term='OSX'/><category term='Algorithms'/><category term='Europe'/><category term='Travel'/><category term='Linux'/><category term='Postgresql'/><title type='text'>Jacky Wang</title><subtitle type='html'>Jacky Wang's Blog</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://jacky-exoweb.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5240622987504808045/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://jacky-exoweb.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Jacky Wang</name><uri>http://www.blogger.com/profile/01655761489819576507</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://bp1.blogger.com/_G6YEM46p49c/SAwpojxVxGI/AAAAAAAACS8/5qNWLxIdHNQ/S220/logo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>15</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5240622987504808045.post-1434932305879968496</id><published>2009-03-11T06:06:00.004+08:00</published><updated>2009-03-11T07:59:28.056+08:00</updated><title type='text'>赫尔辛基 (Helsinki) 一日游杂记</title><content type='html'>从Tallinn去了Helsinki两次, 写这个杂记全当记录一下自己的经历.&lt;br /&gt;&lt;br /&gt; 为什么去Helsinki? 嗯, 好问题, 但是为什么不去呢? 一个距离塔林只有80多公里的航海行程的城市, 可能会是一个很不同于塔林的城市(或者很类似, 但是不去怎么知道呢?); 波罗的海虽然不大, 但是或者在其中航行也会是一个不错的体验呢 :D. OK, 那么就让我们开始计划吧:&lt;br /&gt;&lt;br /&gt; * 时间&lt;br /&gt;   千万, 千万不要选择周日去, 如果你不想看到一个空旷(特别是冬天)的城市的话. 据闻芬兰(或者赫尔辛基)的法律规定在教堂做礼拜的时候, 商场不能营业. 当然, 有得必有失: 你可以在教堂看到做礼拜 :) 只是缺少了港口集市的赫尔辛基似乎少了些啥.&lt;br /&gt;&lt;br /&gt; * 交通工具&lt;br /&gt;   乘船自然是非常经济的方式了 :) Viking Line 是不错的选择, 你可以在塔林的码头买到票, 不需要提前太多订票, 前一天就可以了. 往返会便宜不少, 而如果定同一天往返的会更加便宜: 往返票花了200 EEK (约合133 RMB). 买好了票那么就好好准备2.5小时的航程 :D&lt;br /&gt;&lt;br /&gt;   小Tip: 最好带好护照去买票, 当然, 如果没有护照, 也可以提供姓名和出生日期即可. 不过最后也不会做任何检查 (至少我们没有碰上).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; * 准备&lt;br /&gt;   2.5小时的航程的确不用准备什么, 不过有一些简单的知识要了解一下:&lt;br /&gt;&lt;ol&gt;&lt;li&gt; 在赫尔辛基消费是使用EUR, 欧元的, 所以可以准备一些EUR现金&lt;/li&gt;&lt;li&gt; 船上可以使用EEK, 也可以EUR&lt;/li&gt;&lt;/ol&gt; &lt;br /&gt; * 安排在赫尔辛基的行程&lt;br /&gt;   如果是一天的行程, 那么一个好的行程安排可以省事不少. 个人推荐:&lt;br /&gt;&lt;ol&gt;&lt;li&gt; &lt;a href="http://en.wikipedia.org/wiki/Suomenlinna"&gt;芬兰堡&lt;/a&gt;: 在市区东南方向, 航程为15分钟的一个小岛, 以前是一个军事基地. 在码头就可以是使用自助的机器购船票, 3.8 EUR 往返.&lt;br /&gt;&lt;/li&gt;&lt;li&gt; &lt;a href="http://en.wikipedia.org/wiki/Helsinki_Cathedral"&gt;赫尔辛基大教堂&lt;/a&gt;: 可以算是地标型的人文建筑了&lt;/li&gt;&lt;li&gt; &lt;a href="http://en.wikipedia.org/wiki/Temppeliaukio_Church"&gt;岩石教堂&lt;/a&gt;: 可以算是最有特色的教堂了, 必须去看看:D&lt;/li&gt;&lt;li&gt; &lt;a href="http://en.wikipedia.org/wiki/Uspenski_Cathedral"&gt;东正大教堂&lt;/a&gt;: 嗯, 还是教堂:P&lt;/li&gt;&lt;li&gt; &lt;a href="http://en.wikipedia.org/wiki/Helsinki_Central_railway_station"&gt;赫尔辛基火车站&lt;/a&gt;: 具有一百多年历史的火车站&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/Hietaniemi_cemetery"&gt;Hietaniemi cemetery&lt;/a&gt;: 国家公墓, 纪念曾经为国家奋斗的烈士们&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/Sibelius_Academy"&gt;Sibelius Academy&lt;/a&gt;: 让·西贝柳斯纪念碑, 他本人出现在了芬兰的钞票上 (当时还有芬兰本地货币)&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;    当然还有不少博物馆之类的, 不过都需要不错的英语知识才能很快地了解. 本人英文有限, 加上时间有限, 就不参与了. 不过很多博物馆的建筑也都很有意思, 可以去看看. 不得不说, 这是个非常简单的旅行Tips, 特别是对于一个10多个小时的行程而言.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;* 在赫尔辛基&lt;br /&gt;   抵达赫尔辛基后, 除了沿路去码头的观光外, 最好尽早在码头/大教堂附近的旅游中心(Tourist Information Office)去找到免费的城市地图和旅游指南, 以上的推荐项目都在旅游指南之中, 而所需要做的就是根据自己的观光计划安排好路线和时间计划 :D&lt;br /&gt; &lt;br /&gt;   对了, 观光之外, 也不要忘记在市区的Shopping Mall或者小店逛逛, 说不定有什么意外的发现, 这也是旅游的乐趣之一; 还有就是别忘记坐下来, 安静地享受咖啡, 阳光, 享受片刻宁静的心情~~~&lt;br /&gt;&lt;br /&gt;嗯, 还有什么呢? 对于吃/购物/旅馆/娱乐 等都没有太多了解, 只能看官自行发掘了:P&lt;br /&gt;&lt;br /&gt;   还有就是一些小的Tips:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;免费的自行车: 据闻, 花2EUR就可以有免费的自行车, 最后在还车处可以退还那2EUR. 我曾经在夏天时见过, 但是冬天却没有看到. 全市有很多这样的自行车自助服务点, 但是还是得说: 限量供应 :D (反正我是没有享用过...)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;鉴于主要的观光地点都在市区, 而西贝柳斯纪念碑(在市区西北角)算是最远的一个观光点了, 所以建议: 上午抵达后先去芬兰堡 (整个行程2小时左右, 最后计划好回城的时间以及观光的进程, 因为渡轮不是什么时候都有的), 回市区吃午饭, 然后乘车前往西贝柳斯纪念碑, 然后往市区进发, 途径岩石教堂, 国家公墓, 国家博物馆等等 :D  至于大教堂 / 码头集市 / 东正教堂 / 火车站, 距离都很近, 且都在市区中心, 所以先去, 抑或回来再去都可以. &lt;/li&gt;&lt;li&gt;夜景也是不错的, 不过如果夏天去的话, 就估计赶不上夜景就得回塔林了&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5240622987504808045-1434932305879968496?l=jacky-exoweb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jacky-exoweb.blogspot.com/feeds/1434932305879968496/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5240622987504808045&amp;postID=1434932305879968496' title='44 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5240622987504808045/posts/default/1434932305879968496'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5240622987504808045/posts/default/1434932305879968496'/><link rel='alternate' type='text/html' href='http://jacky-exoweb.blogspot.com/2009/03/helsinki.html' title='赫尔辛基 (Helsinki) 一日游杂记'/><author><name>Jacky Wang</name><uri>http://www.blogger.com/profile/01655761489819576507</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://bp1.blogger.com/_G6YEM46p49c/SAwpojxVxGI/AAAAAAAACS8/5qNWLxIdHNQ/S220/logo.jpg'/></author><thr:total>44</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5240622987504808045.post-6373951090355679512</id><published>2008-08-26T18:50:00.003+08:00</published><updated>2008-08-26T19:06:04.813+08:00</updated><title type='text'>note: security validation in perl</title><content type='html'>今天同事碰到一个奇怪的问题, 在debian/etch 下restart/stop/start postgresql-8.1 时无法成功:&lt;br /&gt;&lt;blockquote&gt;Restarting PostgreSQL 8.1 database server: main* Insecure directory in $ENV{PATH} while running with -T switch at /usr/bin/pg_ctlcluster line 352.&lt;br /&gt;Insecure directory in $ENV{PATH} while running with -T switch at /usr/bin/pg_ctlcluster line 360.(does not shutdown gracefully, now stopping immediately)&lt;br /&gt; failed!&lt;br /&gt;&lt;/blockquote&gt;首先是以为postgresql出了问题, 所以在google中寻找有postgresql关键字的信息, 没有太多有用内容, 只找到了&lt;br /&gt;   &lt;a href="http://archives.postgresql.org/pgsql-admin/2006-10/msg00219.php"&gt;http://archives.postgresql.org/pgsql-admin/2006-10/msg00219.php&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;提议将/usr/bin/pg_ctlcluster 中第一行的 "#!/usr/bin/perl -wT" 改成 "#!/usr/bin/perl -wt", 但是这个建议显然非常hacky, 根据 (不熟悉perl :( ):&lt;br /&gt;&lt;br /&gt;  &lt;a href="http://www252.pair.com/comdog/mastering_perl/Chapters/03.taint-checking.html"&gt;http://www252.pair.com/comdog/mastering_perl/Chapters/03.taint-checking.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;现在看来肯定是$ENV{PATH}存在安全隐患, 而根据'perlsec' page (i.e. Perl security help):&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;For "Insecure $ENV{PATH}" messages, you need to set $ENV{'PATH'} to a known value, and each directory in the path must be non-writable by others than its owner and group.&lt;br /&gt;&lt;/blockquote&gt;看来这个问题就来源与可能有人修改了环境变量PATH中对应目录列表的权限, 果不其然, /usr/local/bin被修改:&lt;br /&gt;&lt;blockquote&gt;drwxrwxrwx 2 root staff 4.0K 2007-12-25 16:43 bin&lt;br /&gt;drwxrwxrwx 2 root staff 4.0K 2007-12-25 16:43 etc&lt;br /&gt;drwxrwxrwx 2 root staff 4.0K 2007-12-25 16:43 games&lt;br /&gt;drwxrwxrwx 2 root staff 4.0K 2007-12-25 16:43 include&lt;br /&gt;drwxrwxrwx 5 root staff 4.0K 2008-08-25 13:57 lib&lt;br /&gt;drwxrwxrwx 5 root staff 4.0K 2008-08-01 13:43 lps-3.1&lt;br /&gt;lrwxrwxrwx 1 root staff    9 2007-12-25 16:43 man -&gt; share/man&lt;br /&gt;drwxrwxrwx 2 root staff 4.0K 2007-12-25 16:43 sbin&lt;br /&gt;drwxrwxrwx 8 root staff 4.0K 2008-08-25 13:58 share&lt;br /&gt;drwxrwxrwx 2 root staff 4.0K 2007-12-25 16:43 src&lt;br /&gt;&lt;/blockquote&gt;如此的安全隐患检查的确很有意思 :P&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5240622987504808045-6373951090355679512?l=jacky-exoweb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jacky-exoweb.blogspot.com/feeds/6373951090355679512/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5240622987504808045&amp;postID=6373951090355679512' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5240622987504808045/posts/default/6373951090355679512'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5240622987504808045/posts/default/6373951090355679512'/><link rel='alternate' type='text/html' href='http://jacky-exoweb.blogspot.com/2008/08/note-security-validation-in-perl.html' title='note: security validation in perl'/><author><name>Jacky Wang</name><uri>http://www.blogger.com/profile/01655761489819576507</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://bp1.blogger.com/_G6YEM46p49c/SAwpojxVxGI/AAAAAAAACS8/5qNWLxIdHNQ/S220/logo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5240622987504808045.post-2095713638540502354</id><published>2008-07-01T14:25:00.000+08:00</published><updated>2008-07-01T14:26:20.275+08:00</updated><title type='text'>Shortcut Keys</title><content type='html'>In Mac's text input area, for example Safari's location bar, Text editor etc.,&lt;br /&gt;even some of them work well in Terminal input:&lt;br /&gt;&lt;br /&gt;Ctrl + D: delete the next character&lt;br /&gt;Ctrl + A : Go to the beginning of the line you are currently typing on&lt;br /&gt;Ctrl + E : Go to the end of the line you are currently typing on&lt;br /&gt;Ctrl + H : Same as backspace.&lt;br /&gt;Ctrl + Y : to paste it (as in delete and copy) all text in front of the cursor.&lt;br /&gt;Ctrl + U : Clears the line before the cursor position. If you are at the end of the line, clears the entire line.&lt;br /&gt;Ctrl + K : Clear the line after the cursor.&lt;br /&gt;Ctrl + Y: paste the the last line deleted with Control-K&lt;br /&gt;Ctrl + T : Swap the last two characters before the cursor.&lt;br /&gt;Esc + T : Swap the last two words before the cursor.&lt;br /&gt;&lt;br /&gt;Linux shell shortcut keys or in the Terminal.app in OS X:&lt;br /&gt;&lt;br /&gt;Ctrl + R : Let you search through previously used commands.&lt;br /&gt;Ctrl + D : exit a terminal, same as typing `exit`&lt;br /&gt;Ctrl + L : clears the screen, same as `clear`&lt;br /&gt;Ctrl + W : Delete the word before the cursor.&lt;br /&gt;Ctrl + C : breaks/cancels an ongoing operation&lt;br /&gt;Ctrl + Z : pauses (stops) an ongoing operation. Type `fg` (foreground) to resume it or `bg` (background) to continue the process in the background&lt;br /&gt;Alt + F : Move cursor forward one word on the current line. (have no idea how to make it work in Mac)&lt;br /&gt;Alt + B : Move cursor backward one word on the current line. (have no idea how to make it work in Mac)&lt;br /&gt;&lt;br /&gt;Option-G: will move the cursor back one word (ONLY for Mac, and does not work in "screen")&lt;br /&gt;Option-F: will move it forward one word. (ONLY for Mac, and does not work in "screen")&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5240622987504808045-2095713638540502354?l=jacky-exoweb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jacky-exoweb.blogspot.com/feeds/2095713638540502354/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5240622987504808045&amp;postID=2095713638540502354' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5240622987504808045/posts/default/2095713638540502354'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5240622987504808045/posts/default/2095713638540502354'/><link rel='alternate' type='text/html' href='http://jacky-exoweb.blogspot.com/2008/07/shortcut-keys.html' title='Shortcut Keys'/><author><name>Jacky Wang</name><uri>http://www.blogger.com/profile/01655761489819576507</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://bp1.blogger.com/_G6YEM46p49c/SAwpojxVxGI/AAAAAAAACS8/5qNWLxIdHNQ/S220/logo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5240622987504808045.post-6332041726237013743</id><published>2007-10-16T18:28:00.000+08:00</published><updated>2007-10-16T18:40:54.711+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>SSH tips - configuring ~/.ssh/config to make your ssh command shorter</title><content type='html'>  有时候在家工作, 而我平时在办公室的工作环境是一台服务器, 所以在家时就需要以公司网关服务器做一些端口映射到我工作的服务器上. 但是经常敲一大串ssh command的确很烦恼, 所以就尝试着配置一下~/.ssh/config文件, 示例如下&lt;div&gt;&lt;br /&gt;Host gateway.com&lt;br /&gt;   Hostname gateway.company.com&lt;br /&gt;   User jacky&lt;/div&gt;&lt;div&gt;#forwarding of the authentication agent connection&lt;br /&gt;   ForwardAgent yes&lt;br /&gt;   GatewayPorts yes&lt;br /&gt;   #local ports forwarding for working servers&lt;br /&gt;   LocalForward localhost:9079 forge:9079&lt;br /&gt;   LocalForward localhost:9060 forge:9060&lt;br /&gt;   LocalForward localhost:9078 forge:9078&lt;br /&gt;   LocalForward localhost:9099 forge:9099&lt;br /&gt;   LocalForward localhost:9090 forge:9090&lt;/div&gt;&lt;div&gt;# local ports forwarding for vnc server&lt;br /&gt;   LocalForward localhost:5900 jacky:5900&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5240622987504808045-6332041726237013743?l=jacky-exoweb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jacky-exoweb.blogspot.com/feeds/6332041726237013743/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5240622987504808045&amp;postID=6332041726237013743' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5240622987504808045/posts/default/6332041726237013743'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5240622987504808045/posts/default/6332041726237013743'/><link rel='alternate' type='text/html' href='http://jacky-exoweb.blogspot.com/2007/10/ssh-tips-configuring-sshconfig-to-make.html' title='SSH tips - configuring ~/.ssh/config to make your ssh command shorter'/><author><name>Jacky Wang</name><uri>http://www.blogger.com/profile/01655761489819576507</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://bp1.blogger.com/_G6YEM46p49c/SAwpojxVxGI/AAAAAAAACS8/5qNWLxIdHNQ/S220/logo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5240622987504808045.post-6714155708254507956</id><published>2007-10-16T16:22:00.000+08:00</published><updated>2007-10-16T16:23:17.516+08:00</updated><title type='text'>(PS) Mac OS X Directory Structure explained</title><content type='html'>pasted from: http://osxdaily.com/2007/03/30/mac-os-x-directory-structure-explained/&lt;br /&gt;&lt;br /&gt;If you have ever looked at your Mac’s root directory and wondered what some of those other directories are for, you’re probably not alone. Mac OS got a whole lot more complex with the advent of OS X, adapting a unix file structure that is largely unfamiliar to Mac OS 9 and Windows users. So just what is /System, /Library, /usr, and all the others for anyway? Here’s a brief explanation of each directory as found in Mac OS X. &lt;p&gt;&lt;br /&gt;By default, if you look in the root of your Mac’s hard disk you’ll see some unfamiliar sounding directories. From the command line, you will see even more if you type &lt;code&gt;ls /&lt;/code&gt;. Explained in no particular order:&lt;/p&gt; &lt;table id="smalltext" border="1" cellpadding="5" cellspacing="3" width="575"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td&gt;&lt;b&gt;Directory&lt;/b&gt;&lt;/td&gt; &lt;td&gt;&lt;b&gt;Description&lt;/b&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;/Applications&lt;/td&gt; &lt;td&gt;Self explanatory, this is where your Mac’s applications are kept&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;/Developer&lt;/td&gt; &lt;td&gt;The Developer directory appears only if you have installed Apple’s Developer Tools, and no surprise, contains developer related tools, documentation, and files.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;/Library&lt;/td&gt; &lt;td&gt;Shared libraries, files necessary for the operating system to function properly, including settings, preferences, and other necessities (note: you also have a Libraries folder in your home directory, which holds files specific to that user).&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;/Network&lt;/td&gt; &lt;td&gt;largely self explanatory, network related devices, servers, libraries, etc&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;/System&lt;/td&gt; &lt;td&gt;System related files, libraries, preferences, critical for the proper function of Mac OS X&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;/Users&lt;/td&gt; &lt;td&gt;All user accounts on the machine and their accompanying unique files, settings, etc. Much like /home in Linux&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;/Volumes&lt;/td&gt; &lt;td&gt;Mounted devices and volumes, either virtual or real, such as hard disks, CD’s, DVD’s, DMG mounts, etc&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;/&lt;/td&gt; &lt;td&gt;Root directory, present on virtually all UNIX based file systems. Parent directory of all other files&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;/bin&lt;/td&gt; &lt;td&gt;Essential common binaries, holds files and programs needed to boot the operating system and run properly&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;/etc&lt;/td&gt; &lt;td&gt;Machine local system configuration, holds administrative, configuration, and other system files&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;/dev&lt;/td&gt; &lt;td&gt;Device files, all files that represent peripheral devices including keyboards, mice, trackpads, etc&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;/usr&lt;/td&gt; &lt;td&gt;Second major hierarchy, includes subdirectories that contain information, configuration files, and other essentials used by the operating system&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;/sbin&lt;/td&gt; &lt;td&gt;Essential system binaries, contains utilities for system administration&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;/tmp&lt;/td&gt; &lt;td&gt;Temporary files, caches, etc&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;/var&lt;/td&gt; &lt;td&gt;Variable data, contains files whose contents change as the operating system runs&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;If we forgot anything, or if something isn’t properly described, feel free to chime in with comments. &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5240622987504808045-6714155708254507956?l=jacky-exoweb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jacky-exoweb.blogspot.com/feeds/6714155708254507956/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5240622987504808045&amp;postID=6714155708254507956' title='4 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5240622987504808045/posts/default/6714155708254507956'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5240622987504808045/posts/default/6714155708254507956'/><link rel='alternate' type='text/html' href='http://jacky-exoweb.blogspot.com/2007/10/ps-mac-os-x-directory-structure.html' title='(PS) Mac OS X Directory Structure explained'/><author><name>Jacky Wang</name><uri>http://www.blogger.com/profile/01655761489819576507</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://bp1.blogger.com/_G6YEM46p49c/SAwpojxVxGI/AAAAAAAACS8/5qNWLxIdHNQ/S220/logo.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5240622987504808045.post-2147168305565476323</id><published>2007-08-13T15:50:00.000+08:00</published><updated>2007-08-13T16:13:54.760+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Europe'/><category scheme='http://www.blogger.com/atom/ns#' term='Travel'/><title type='text'>"爱国"的百度</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_G6YEM46p49c/RsARZZMEQmI/AAAAAAAAAl4/0jshK2-Dj_c/s1600-h/baidu_mp3_china.jpg"&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_G6YEM46p49c/RsAQiZMEQlI/AAAAAAAAAlw/HuA_KSkmfiU/s1600-h/baidu_mp3_estonia.jpg"&gt;&lt;/a&gt;  因为工作缘故, 来到了爱沙尼亚出差. 当发现这里访问&lt;a href="http://www.youtube.com/"&gt;youtube&lt;/a&gt;很方便后, 便常常上去看看. 看过几个&lt;a href="http://en.wikipedia.org/wiki/Linkin_Park"&gt;Linkin Park&lt;/a&gt;的MV后, 突然有点喜欢这个乐队了, 特别是那首&lt;a href="http://www.youtube.com/watch?v=8sgycukafqQ"&gt;what I've done&lt;/a&gt;的MV. 结果就习惯性地去了&lt;a href="http://mp3.baidu.com/"&gt;百度&lt;/a&gt;打算下载些mp3来听, 结果确发现了个意外的现象, 无论任何搜索都是得到如下的结果:&lt;div&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://bp3.blogger.com/_G6YEM46p49c/RsAQiZMEQlI/AAAAAAAAAlw/HuA_KSkmfiU/s400/baidu_mp3_estonia.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5098092961246495314" /&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;  只是觉得很奇怪, 为什么让百度如此聚集人气的服务为什么突然不行了. 所以试着从国内我在公司的台机上试试看, 结果发现:&lt;/div&gt;&lt;div&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://bp3.blogger.com/_G6YEM46p49c/RsARZZMEQmI/AAAAAAAAAl4/0jshK2-Dj_c/s400/baidu_mp3_china.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5098093906139300450" /&gt;&lt;/div&gt;&lt;div&gt;  从某个角度来看, 如此的百度与&lt;a href="http://www.google.cn"&gt;google.cn&lt;/a&gt;有异曲同工之妙, 不同的是, 百度是更'民族的', 更'爱国的'.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5240622987504808045-2147168305565476323?l=jacky-exoweb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jacky-exoweb.blogspot.com/feeds/2147168305565476323/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5240622987504808045&amp;postID=2147168305565476323' title='1 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5240622987504808045/posts/default/2147168305565476323'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5240622987504808045/posts/default/2147168305565476323'/><link rel='alternate' type='text/html' href='http://jacky-exoweb.blogspot.com/2007/08/blog-post.html' title='&quot;爱国&quot;的百度'/><author><name>Jacky Wang</name><uri>http://www.blogger.com/profile/01655761489819576507</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://bp1.blogger.com/_G6YEM46p49c/SAwpojxVxGI/AAAAAAAACS8/5qNWLxIdHNQ/S220/logo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp3.blogger.com/_G6YEM46p49c/RsAQiZMEQlI/AAAAAAAAAlw/HuA_KSkmfiU/s72-c/baidu_mp3_estonia.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5240622987504808045.post-592458050237341980</id><published>2007-07-22T01:10:00.000+08:00</published><updated>2007-07-22T02:05:18.186+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Linux 技术杂记 1</title><content type='html'>1) Ubuntu 中如何启动vncserver (reference https://help.ubuntu.com/community/VNCOverSSH)&lt;br /&gt; 曾经写过一篇关于如何在debian/sarge中配置vncserver来建立kde测试环境 (因项目需要)的杂记, 不过经过验证, 发现在ubuntu/edgy中已经不管用了 :( .&lt;br /&gt; 不过现在的vncserver已经变得很容易使用了. 参考上面的链接, 我很容易地使得vncserver又开始正常工作了&lt;br /&gt;* 删除 $HOME/.vncrc 文件&lt;br /&gt;* 在terminal中执行vncserver :1, 就会发现它会自动建立一个$HOME/.vnc/xstartup文件, 其中的默认脚本内容是:&lt;br /&gt;#!/bin/sh&lt;br /&gt;xrdb $HOME/.Xresources&lt;br /&gt;xsetroot -solid grey&lt;br /&gt;x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &amp;&lt;br /&gt;x-window-manager &amp;amp;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;你只要将最后一行的"x-window-manager &amp;"用你所需要的windows manager startup command 替换就可以了: startkde &amp;amp;  /  startxfce4 &amp; / gnome-session &amp;amp; / metacity &amp; 等等.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2) 让Firefox支持ed2k://链接 (reference http://www.amule.org/wiki/index.php/Ed2k_links_handling)&lt;br /&gt;* 在地址栏中输入 about:config, 打开firefox的配置脚本&lt;br /&gt;* 在配置列表中点击右键, 选择新增一个配置项: 类型: Boolean; 名称: network.protocol-handler.external.ed2k; 参数值: true&lt;br /&gt;* 再新增另一个配置项: 类型:  String; 名称: network.protocol-handler.app.ed2k; 参数值: /path/to/ed2k (ed2k命令的绝对路径, 例如在ubuntu/edgy中是 /usr/bin/ed2k)&lt;/div&gt;&lt;div&gt;这样, 点击ed2k链接, 就会自动在amule中下载了.&lt;br /&gt;ps: 在ubuntu/debian中, 需要安装amule-utils包.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5240622987504808045-592458050237341980?l=jacky-exoweb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jacky-exoweb.blogspot.com/feeds/592458050237341980/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5240622987504808045&amp;postID=592458050237341980' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5240622987504808045/posts/default/592458050237341980'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5240622987504808045/posts/default/592458050237341980'/><link rel='alternate' type='text/html' href='http://jacky-exoweb.blogspot.com/2007/07/1.html' title='Linux 技术杂记 1'/><author><name>Jacky Wang</name><uri>http://www.blogger.com/profile/01655761489819576507</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://bp1.blogger.com/_G6YEM46p49c/SAwpojxVxGI/AAAAAAAACS8/5qNWLxIdHNQ/S220/logo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5240622987504808045.post-5016170206951344298</id><published>2007-07-10T11:16:00.000+08:00</published><updated>2007-08-02T21:49:41.748+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Lithuania'/><category scheme='http://www.blogger.com/atom/ns#' term='Europe'/><category scheme='http://www.blogger.com/atom/ns#' term='Travel'/><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>Europython之旅杂记2</title><content type='html'>终于没有办法继续睡下去了, 于是我在本地时间凌晨6:30爬了起来: 只睡了5个小时. 看来倒时差还真是有点辛苦啊, 想到回去估计也得小倒一下, 顿时有点无奈. 想象一下那些空中飞人们, 肯定也是很不容易啊. 我住的房间在&lt;a href="http://maps.google.com/maps?f=q&amp;hl=en&amp;amp;geocode=&amp;q=+Reval+Hotel+Lietuva+Vilnius,+Lithuania&amp;amp;ie=UTF8&amp;ll=54.690602,25.280228&amp;amp;spn=0.013072,0.025921&amp;t=k&amp;amp;z=15&amp;om=1"&gt;Reval Hotel Lietuva&lt;/a&gt;宾馆的19层, 而很明显的是城市没有什么高层建筑, 所以举目望去, 有点高屋建瓴之势, 就可以看到城市的概况: 有一条河在宾馆的南边, 河水缓缓地流着, 再往南, 就是老城区. 不同于河北边的中高层现代建筑, 老城区大多是6层左右的老式风格的建筑, 伴随着很多的绿树, 很是恬静的感觉. 相比旧式的建筑, 非常引人注意的是很多的教堂. 你可以很容易辨认出来是因为那些高高的十字架. (事实的确如此, 在宾馆提供的城区地图上, 可以看到很多教堂的标志).&lt;div&gt;&lt;br /&gt;早饭自然是西餐, 可以预见的是, 接下来几天都是西餐 (真是废话 :-)). 在餐厅我遇到了Tobias. Nordicbet就来了他一个人, 还是凌晨时间到的旅馆. &lt;a href="http://www.europython.org"&gt;Europython&lt;/a&gt;会议也将在这个宾馆举行, 而主要的会议聚集地就在餐厅外的大堂里面. 在会议的注册处看到了Laura Creighton(Europython President) 和 Aiste Kesminaite, 是她们的帮忙才让我的签证能顺利通过, 虽然经过了诸多波折. 领取了一份&lt;a href="http://indico.cern.ch/conferenceTimeTable.py?confId=13919&amp;amp;detailLevel=contribution&amp;amp;viewMode=room"&gt;会议安排日程&lt;/a&gt;, 发现整个会议安排了很多的演讲, 基本上是半个小时一场, 在若干个会议场同时进行, 中午会有些简短的用餐和1个小时左右的休息时间.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;九点一到, 就见python-er们各自去冲自己喜欢的演讲的会议室奔去, 而每半个小时后就会有许多人来回的穿梭, 往返于四个会议室之间. 也有些人可能在这个时间段没有什么喜欢的演讲要听, 就抱着本本在大堂那里坐着, 敲者键盘, 或者是聊着天.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;说到演讲,  有各种各样的人演讲. 你经常会发现一些不擅长于演讲的人在介绍自己做的框架或者产品, 有点紧张, 说话也有些走调 (当然在这个international聚会里面, 各种英语口音的人都会有:)),当然也有很多人能很好的驾驭演讲. 而演讲的内容大多是以介绍和推广为主, 因为毕竟时间有限. 也有一些比较晦涩难懂的主题, 和与python不是很相关的内容, 例如XP, MySQL等. 不过可以看出来, 所有的演讲都是经过比较精心准备的, 而参与的听众也都有能够参与讨论的背景和经验, 所以经常可以看到一个演讲者还在回答听众的问题, 另一个演讲者就开始上台在准备自己的演讲了.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;除了演讲以外, 还有一种叫做&lt;a href="http://en.wikipedia.org/wiki/Lightning_Talk"&gt;lighting-talk&lt;/a&gt;的讨论方式: 每个人都只简单地将三到五分钟, 而演讲的内容也大多是即兴的, 至少准备的时间都不需要很长, 不像正式的演讲那样. 那样更是一种畅快的一种体验, 无论是对听众还是演讲者.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;宾馆提供免费的WiFi, 而大会也提供了一个专门的WiFi. 当你对于演讲中不了解的技术名称, 框架名称等, 以及需要了解更详细的主题内容时, 你可以很方便的google, 或者是记录一下摘要在自己的博客上. 我还发现了有些人一边听演讲, 一边就在写代码 (工作?).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;虽然我使用python两年有余, 不过对于工作以外的python知识了解不多, 所以这几天的演讲就像是给大脑灌水似的, 突然之间灌入了很多各种各样的python知识, 还有一些XP的新体验和观点, 真是一种让人很新鲜和激动的感觉. 估计这种感觉也是组织这样的聚会的初衷吧.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5240622987504808045-5016170206951344298?l=jacky-exoweb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jacky-exoweb.blogspot.com/feeds/5016170206951344298/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5240622987504808045&amp;postID=5016170206951344298' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5240622987504808045/posts/default/5016170206951344298'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5240622987504808045/posts/default/5016170206951344298'/><link rel='alternate' type='text/html' href='http://jacky-exoweb.blogspot.com/2007/07/europython2.html' title='Europython之旅杂记2'/><author><name>Jacky Wang</name><uri>http://www.blogger.com/profile/01655761489819576507</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://bp1.blogger.com/_G6YEM46p49c/SAwpojxVxGI/AAAAAAAACS8/5qNWLxIdHNQ/S220/logo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5240622987504808045.post-4440183459729976417</id><published>2007-07-09T12:05:00.000+08:00</published><updated>2007-08-02T21:37:21.873+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Lithuania'/><category scheme='http://www.blogger.com/atom/ns#' term='Europe'/><category scheme='http://www.blogger.com/atom/ns#' term='Travel'/><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>Europython 之旅杂记1</title><content type='html'>第一次出国, 一个人走, 从北京走, 终点立陶宛的维尔纽斯. 有人怕我土老冒, 丢了国人的脸, 弄的有点我有点心虚. 行程是从北京到赫尔辛基 (Beijing 11:00 -- Helsinki 14:00, 八个小时, 时差5个小时), 然后转机到维尔纽斯 (Helsinki 16:15 -- Vilnius 17:30, 时差5个小时), 全部行程大概11个小时. 行程整体比较顺利, 就是在Helsinki转机的时候误点了半个小时.&lt;br /&gt;&lt;br /&gt;离京:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;  虽然是首都国际机场, 不过国际航班的安检通道明显不如国内航班的安检通道数量多, 那个队排得~~~. 有经验的游客说这才不算啥呢, 更长的队都也很常见. 填写出境登记表, 安检表, 再排队, 安检, 顺利地登机, 就开始了出国之旅.&lt;br /&gt;&lt;br /&gt;Hints: 1) 建议早点去机场, 避免排队带来的"失误".&lt;br /&gt;            2) 似乎没有闻讯处可以打听出境需要什么手续, 见人家填表, 跟着填就是了&lt;br /&gt;            3) 新规定: 可以随身携带的液体不能超过100ml, 所以最好放在托运行李中&lt;br /&gt;&lt;br /&gt;飞机耽搁了半个小时, 起飞了. 天气不错, 再加上是商务11点, 所以在高空可以比较清楚地俯覧大地, 有点航拍的感觉. 特地挑了靠窗户的座位, 呵呵.. ;) 机上华人不少, 所以出国的感觉不是特别强烈 (相比从Helsinki去Vilnius的飞机上, 就我一个黑发黄皮肤的人). 前面就是两个华人, 一个在芬兰定居了十多年, 做医生的; 另一个在波兰定居. 听着她们的聊天, 也了解了一点芬兰: 人少, 都很遵守规则, 生活悠闲, 唯一不好的地方就是太过于冷清 :)&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Helsinki:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt; 飞机穿过波罗地海, 直奔Helsinki而去, 近8个小时的行程终于要结束了, 真是不容易啊, 坐得人都快麻木了. 虽然本地天气是多云, 但是只是局部地方多云, 所以当飞机降低高度时, 可能很清楚地看到城市. 城市似乎不大, 放眼看去主色调是绿色: 大片的森林, 绿地;再加上位于芬兰湾, 与蓝色的大海几乎就是溶为一体. 黄色, 红色, 灰色的屋顶;  高速公路上象为数不多的甲壳虫一样蠕动着的汽车; 芬兰湾里面有很多船坞, 游艇开过后留下的长长涟漪... 长途的飞机旅程后看到这些, 让人终于来了点精神. ( 遗憾的是不能开DC照相:( )&lt;br /&gt;&lt;br /&gt;Helsinki机场不大, 看起来很新的感觉, 所以比较干净.比较有意思的是机场有些提示标牌还有中文翻译:) 转机过程中安检非常严格, 如果安检装置有警报, 安全人员会非常仔细搜遍全身, 连裤脚都不放过. 在我前面的老外把皮带都卸下来, 放入篮子里面. 不过显然他裤子的腰围有点大, 所以就拎着裤腰过安检 :). 机场没有WI-FI, 在机场的咖啡店可以买卡来上网, 我就省点是点了, 两个小时打打PSP就过去. 当登上去Vilnius的飞机, 在跑道滑行的时候, 看到远远的天边有道彩虹, 可惜不能开DC :(&lt;br /&gt;&lt;br /&gt; 未解之谜: 去Vilnius飞机, 是四个座位一排的, 奇怪的是四个座位的编号是 ACDF, 例如11A, 11C, 11D, 11F. 不知道为什么没有了B, E?&lt;br /&gt;&lt;br /&gt; Hints: 1) 还是随身携带的液体问题, 所以建议在离京时就放在托运行李中.&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Vilnius:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;  离京以前就已经查过天气预报, 知道Vilnius未来的几天都是阴雨天气, 气温也最高才18-19度. 飞机不大, 穿越云层降落时颠得厉害, 不一会儿就着陆了, 感觉象是被颠到地上的. 飞机降落时发现在下小雨, 比较阴冷的感觉. Vilnius机场在重建中, 所以显得比较破落. 从通道出来, 发现很多来接机的立陶宛人都手里拿着鲜花, 据说是一种传统. 这种接人的方式的确给人感觉很舒服, 特别是旅途疲劳以后看到美丽的花朵, 都让人精神一振. 通过Greg了解到, 这是手拿鲜花是立陶宛的传统. 如果花是复数, 表示好的意思, 如果花是单数, 则一般表示是丧事之类不幸的事情.&lt;br /&gt;&lt;br /&gt;在玩了3个多小时的游戏后, 本地的十点钟左右, 终于等到了Ken &amp;amp; Greg. 直到这个时候, 天才黑下来. 接下来几个人品尝了可以说是最刺激的出租车之旅: 出租车司机似乎要给我们这些外来者表现一把, 驾驶风格极其狂野, 见车超车, 转弯也不怎么见减速. 发动时都能把你贴在座位上, 于是我们三个都赶紧抓好了把手. 据坐在前面的Greg同学说, 司机明显喝过了啤酒. 另一个让人"心惊"的是出租车的计价器, 不同于北京的以元为单位跳表, 这里是以分为单位跳, 所以你就看着数字花花地涨, 不停地变.&lt;br /&gt;&lt;br /&gt;Hints: 1) 不要在机场的Bank Agent兑换货币, 因为她们给出的汇率一般都会有点"不准". 最好通过ATM兑换.&lt;br /&gt;            2) 比较多的立陶宛人不怎么会说英文, 所以要询问东西就需要多找几个人试试&lt;br /&gt;&lt;br /&gt;终于到了酒店, 费了点功夫把房间弄好了, 然后一起在酒店大堂吃了点晚餐 (算是宵夜也行). 旁过也有六七个人在喝酒聊天, 看起来就是参加Europython会议的人. 后来Bjorn也来了, 好动的老人家主动和人家搭讪, 然后一起加入了讨论团. 据说其中还有几个个什么牛人, 还提及我们给他发过vim的python语法检查的插件. 已经是困得不行的我, 就不再惨和这些事情了, 直接回去睡了, 这个时候已经是北京时间9日凌晨6点, 本地时间9日凌晨1点了. 开始倒时差了~~~~&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5240622987504808045-4440183459729976417?l=jacky-exoweb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jacky-exoweb.blogspot.com/feeds/4440183459729976417/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5240622987504808045&amp;postID=4440183459729976417' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5240622987504808045/posts/default/4440183459729976417'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5240622987504808045/posts/default/4440183459729976417'/><link rel='alternate' type='text/html' href='http://jacky-exoweb.blogspot.com/2007/07/europython.html' title='Europython 之旅杂记1'/><author><name>Jacky Wang</name><uri>http://www.blogger.com/profile/01655761489819576507</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://bp1.blogger.com/_G6YEM46p49c/SAwpojxVxGI/AAAAAAAACS8/5qNWLxIdHNQ/S220/logo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5240622987504808045.post-5282624801250619611</id><published>2007-06-06T22:10:00.000+08:00</published><updated>2007-06-07T22:55:12.176+08:00</updated><title type='text'>Some links about Web Service Design</title><content type='html'>Googled some useful links of web API design.&lt;br /&gt;&lt;br /&gt;Web API Patterns:   http://ajaxpatterns.org/Web_API_Patterns&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;RESTful Service:    http://ajaxpatterns.org/RESTful_Service&lt;br /&gt;&lt;br /&gt; * URLs reflect resources&lt;br /&gt; * HTTP Methods reflect actions&lt;br /&gt; * GET used for queries, and only for queries&lt;br /&gt; * Services should be stateless&lt;br /&gt; * Services should be idempotent&lt;br /&gt; * Embrace hyperlinks&lt;br /&gt; * Service documents itself&lt;br /&gt;   -- Error responses should also be in human-friendly language and with examples and hyperlinks.&lt;br /&gt; * Service constrains data formats&lt;br /&gt; * Handling arbitrary actions&lt;br /&gt;&lt;br /&gt;Semantic Responses: http://ajaxpatterns.org/Semantic_Response&lt;br /&gt;&lt;br /&gt;Semantic Responses can be represented in several different forms. Each of the following is captured as a separate pattern.&lt;br /&gt;&lt;br /&gt;    * XML Message&lt;br /&gt;    * JSON Message&lt;br /&gt;    * Plain-Text Message &lt;br /&gt;&lt;br /&gt;Each of the above patterns discusses its own strengths and weaknesses. There are several factors involved:&lt;br /&gt;&lt;br /&gt;    * Browser-Side Environment: Which browser versions are being targeted will affect feasibility of message formats. In particular, XML support is limited in older browsers.&lt;br /&gt;    * Server-Side Environment: What sort of support is there for the message formats in the server-side coding environment. If using JSON, for example, is there a suitable binding for the server-side language?&lt;br /&gt;    * Developer Skills: What sort of skill base is available to deal with the message format? You might be tempted to use XML because you feel browser-based XSLT is the most elegant solution, but that requires XSLT talent.&lt;br /&gt;    * External Agents: The browser and the server may not be the only things that access the message. If the server is offering a generic REST service, the message format will need to be suitable for external applications too. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Some blogs:&lt;br /&gt;http://www.sourcelabs.com/blogs/ajb/2006/08/how_to_provide_a_web_api.html&lt;br /&gt;   1.  Keep it clean and simple&lt;br /&gt;   2. Stick to standards&lt;br /&gt;   3. Make it about data&lt;br /&gt;   4. Keep it working&lt;br /&gt;   5. Design for updates&lt;br /&gt;&lt;br /&gt;http://particletree.com/features/how-to-add-an-api-to-your-web-service/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5240622987504808045-5282624801250619611?l=jacky-exoweb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jacky-exoweb.blogspot.com/feeds/5282624801250619611/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5240622987504808045&amp;postID=5282624801250619611' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5240622987504808045/posts/default/5282624801250619611'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5240622987504808045/posts/default/5282624801250619611'/><link rel='alternate' type='text/html' href='http://jacky-exoweb.blogspot.com/2007/06/some-links-about-web-service-design.html' title='Some links about Web Service Design'/><author><name>Jacky Wang</name><uri>http://www.blogger.com/profile/01655761489819576507</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://bp1.blogger.com/_G6YEM46p49c/SAwpojxVxGI/AAAAAAAACS8/5qNWLxIdHNQ/S220/logo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5240622987504808045.post-6718090261529940451</id><published>2007-02-16T01:17:00.000+08:00</published><updated>2007-02-18T11:50:09.445+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='OSX'/><category scheme='http://www.blogger.com/atom/ns#' term='Subversion'/><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><category scheme='http://www.blogger.com/atom/ns#' term='Postgresql'/><title type='text'>Mac OSX Newbie</title><content type='html'>&lt;span style="font-weight: bold;"&gt;1) Install Packages: &lt;/span&gt;&lt;br /&gt;       Fink project: it's very familiar with the apt package system in Debian/Ubuntu.&lt;br /&gt;&lt;br /&gt;       DarwinPorts project: all packages are built from source code, so you need more patient. To get it working, you'd install xcode you can download from apple website or its install CD/DVD&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2) install Postgresql:&lt;/span&gt;&lt;br /&gt;  The easiest way is using Fink or "apt-get install". Different with the distribution in Debian/Ubuntu, the configuration file and data file are both stored at /sw/var/postgresql-8.0/ directory, the owner of which is a non-exist user "postgres".&lt;br /&gt;&lt;br /&gt;  You can not use "sudo su postgres" to manage the authentication (createuser etc.), but you can use "sudo -u postgres createuser" to add your user of database. Then go to the /sw/var/postgresql-8.0/data directory, and get your postgresql configuration done&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3) Fix backspace and delete keys for ssh in Terminal.app&lt;/span&gt;&lt;br /&gt; Open a terminal, "File" menu,  click "Show Info", then you get a pop-up window, "Terminal Inspector". Choose "Keyboard" in the list box, and then turn on the "Delete key sends backspace" option&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;4) Subversion with ssl support&lt;/span&gt;&lt;br /&gt; Unfortunately, the svn/svn-client package in Fink project don't support ssl. I find a ported version with ssl support:&lt;br /&gt;          http://metissian.com/projects/macosx/subversion/&lt;br /&gt; As the README file describes,  the subversion-client is installed at /usr/local/lib, and you need add /usr/local/bin to your PATH in your .profile&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;5) Virtual Machine&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;VMWare&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;Fusion&lt;/span&gt;: It's free right now although it's only beta version and you need to fill a long list registration to get a serial number freely. I have tried it, and installed a Debain-Sarge system with a sarge net-install iso file.&lt;br /&gt;&lt;br /&gt;There's a big issue of Fusion: It doesn't support bridged with wireless network card, only supports NAT type.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Another option: &lt;span style="font-weight: bold;"&gt;Parallels&lt;/span&gt;, a commercial virtual tool, and sounds it supports bridging wireless card. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;6) Network tools&lt;/span&gt;&lt;br /&gt;  Terminal: &lt;span style="font-weight: bold;"&gt;iTerm&lt;/span&gt;, it's cooler than the default terminal in OSX: at least supporting tab terminal. http://iterm.sourceforge.net/&lt;br /&gt;  IM tools:&lt;br /&gt;  &lt;span style="font-weight: bold;"&gt;Colloquy&lt;/span&gt;:  http://colloquy.info/, IRC client.&lt;br /&gt;  &lt;span style="font-weight: bold;"&gt;Gaim&lt;/span&gt;: ported from Fink project; &lt;span style="font-weight: bold;"&gt;&lt;br /&gt;  MSN&lt;/span&gt; microsoft official IM tool;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;   Adium&lt;/span&gt;: http://www.adiumx.com/ support several kinds of IM protocols.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;7) X11 Application related:&lt;/span&gt;&lt;br /&gt; There's an official X11 application you can find it from Mac OSX's install disk DVD/CD. Using the application, we can run those GUI applications ported from DarwinPort or Fink very well in OSX.  I find a link: http://xanana.ucsc.edu/xtal/xterminator/ to customize the X11.app easily.&lt;br /&gt;&lt;br /&gt; You can also get another X11 server application from DarwinPort: XDarwin.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;8) Virtual Desktop:&lt;/span&gt;&lt;br /&gt; Codetek Virtual Desktop: commercial virtual desktop software.&lt;br /&gt; Desktop Manager: http://desktopmanager.berlios.de/, free software, its features are less than Codetek Virtual Desktop.&lt;br /&gt; VirtueDesktops: http://virtuedesktops.info/ based on Desktop Manager, and looks like it's getting very popular amongst those that like virtual desktop applications.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;9) Utils:&lt;/span&gt;&lt;br /&gt;  &lt;span style="font-weight: bold;"&gt;iStat&lt;/span&gt;: System monitor software. http://www.islayer.com/index.php?op=item&amp;id=25&lt;br /&gt;  &lt;span style="font-weight: bold;"&gt;Stuffit Expander&lt;/span&gt;: http://www.versiontracker.com/dyn/moreinfo/macosx/182 Compression file manager, it's useful to decompress kinds of compression files.&lt;br /&gt;  &lt;span style="font-weight: bold;"&gt;vncviwer&lt;/span&gt; for Mac: http://www.cl.cam.ac.uk/research/dtg/attarchive/vnc/macvncviewer.html, client software to connect to vncserver, for remote control.&lt;br /&gt;  &lt;span style="font-weight: bold;"&gt;stardict&lt;/span&gt;: ported from DarwinPort project.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5240622987504808045-6718090261529940451?l=jacky-exoweb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jacky-exoweb.blogspot.com/feeds/6718090261529940451/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5240622987504808045&amp;postID=6718090261529940451' title='1 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5240622987504808045/posts/default/6718090261529940451'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5240622987504808045/posts/default/6718090261529940451'/><link rel='alternate' type='text/html' href='http://jacky-exoweb.blogspot.com/2007/02/mac-osx-newbie.html' title='Mac OSX Newbie'/><author><name>Jacky Wang</name><uri>http://www.blogger.com/profile/01655761489819576507</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://bp1.blogger.com/_G6YEM46p49c/SAwpojxVxGI/AAAAAAAACS8/5qNWLxIdHNQ/S220/logo.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5240622987504808045.post-1140589564940041187</id><published>2007-02-14T18:07:00.000+08:00</published><updated>2007-02-14T18:21:57.812+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Install Flash plugin for Opera in Ubuntu Edgy</title><content type='html'>There's a package named "&lt;span style="font-weight: bold;"&gt;flashplugin-nonfree&lt;/span&gt;", in Ubuntu Edgy package repository:&lt;br /&gt;&lt;blockquote&gt;&lt;h3&gt;Package flashplugin-nonfree&lt;/h3&gt; &lt;ul&gt;&lt;li&gt;&lt;a href="http://packages.ubuntu.com/edgy/web/flashplugin-nonfree"&gt;edgy&lt;/a&gt; (web): Macromedia Flash Player plugin installer   [&lt;span style="color: red;"&gt;multiverse&lt;/span&gt;]&lt;br /&gt;7.0.68~ubuntu3: i386 &lt;/li&gt;&lt;/ul&gt;&lt;/blockquote&gt;ps: for latest flash plug-in (version 9), you may need some external source list.&lt;br /&gt;&lt;br /&gt;install it first. It will install flash plug-in module into "/usr/lib/firefox/plugins" directory.&lt;br /&gt;&lt;br /&gt;Then edit your Opera configuration file in your home directory: &lt;span style="font-weight: bold;"&gt;~/.opera/pluginpath.ini&lt;/span&gt;, adding the following line into the "Paths" section:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;/usr/lib/firefox/plugins=1&lt;br /&gt;&lt;/blockquote&gt;ps: you can find there's already another two plug-in paths in the file.&lt;br /&gt;&lt;br /&gt;Restart Opera, and type "&lt;span style="font-weight: bold;"&gt;opera:plugins&lt;/span&gt;" in the address bar of Opera browser, you can find that Shockwave Flash plug-in has been already installed.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5240622987504808045-1140589564940041187?l=jacky-exoweb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jacky-exoweb.blogspot.com/feeds/1140589564940041187/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5240622987504808045&amp;postID=1140589564940041187' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5240622987504808045/posts/default/1140589564940041187'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5240622987504808045/posts/default/1140589564940041187'/><link rel='alternate' type='text/html' href='http://jacky-exoweb.blogspot.com/2007/02/install-flash-plugin-for-opera-in.html' title='Install Flash plugin for Opera in Ubuntu Edgy'/><author><name>Jacky Wang</name><uri>http://www.blogger.com/profile/01655761489819576507</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://bp1.blogger.com/_G6YEM46p49c/SAwpojxVxGI/AAAAAAAACS8/5qNWLxIdHNQ/S220/logo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5240622987504808045.post-6084978772553500301</id><published>2007-02-02T17:50:00.000+08:00</published><updated>2007-02-02T17:58:42.294+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Building KDE environment in vncserver</title><content type='html'>1. Install packages&lt;br /&gt;       # apt-get install kdebase                   (Install KDE)&lt;br /&gt;       PS: you will install all necessary packages when install "kdebase"&lt;br /&gt;&lt;br /&gt;       # apt-get install vncserver&lt;br /&gt;       # apt-get install vncviewer                 (install vnc client &amp; server)&lt;br /&gt;&lt;br /&gt;   2. create a user for KDE environment&lt;br /&gt;       To avoid to disturb your own working environment, I suggest you to add a user for KDE environment&lt;br /&gt;        # adduser kde&lt;br /&gt;&lt;br /&gt;   3. setup for user "kde"&lt;br /&gt;        # su kde&lt;br /&gt;        $  cd                           &lt;br /&gt;                       (change to home directory)&lt;br /&gt;        $  cp /etc/vnc.conf .vncrc                  &lt;br /&gt;        $  vi .vncrc                                           (configure vnc server)&lt;br /&gt;&lt;br /&gt;configurations I defined in my own machine:&lt;br /&gt;&lt;blockquote&gt;$vncUserDir = "$ENV{HOME}/.vnc";&lt;br /&gt;&lt;br /&gt;# $vncPasswdFile contains the filename of the password file for Xvnc.&lt;br /&gt;$vncPasswdFile = $vncUserDir . "/passwd";&lt;br /&gt;&lt;br /&gt;# $vncStartup points to a script that will be started at the very beginning.&lt;br /&gt;$vncStartup = "$ENV{HOME}/.vnc/kde";&lt;br /&gt;&lt;br /&gt;# $xauthorityFile should be the path to the authority file that should be used&lt;br /&gt;#                 by your vnc X server.&lt;br /&gt;$xauthorityFile = "$ENV{HOME}/.Xauthority";&lt;br /&gt;&lt;br /&gt;# $defaultDesktopName should be set to the default name of the desktop.&lt;br /&gt;#                     This can be changed at the command line with -name.&lt;br /&gt;$defaultDesktopName = "KDE";&lt;br /&gt;&lt;br /&gt;# $geometry sets framebuffer width &amp; height. Default will be calculated if&lt;br /&gt;#           server is started from within a running X servers. Can be changed at&lt;br /&gt;#           the commandline (-geometry). A fixed default will be used if&lt;br /&gt;#           vncserver is not invoked in a running X session.&lt;br /&gt;# Example:  $geometry ="640x480";&lt;br /&gt;$geometry ="1024x768"&lt;br /&gt;# $depth       sets the framebuffer color depth. Must be between 8 and 32.&lt;br /&gt;# $pixelformat sets the default pixelformat.&lt;br /&gt;#              The default will be calculated if none of both is specified&lt;br /&gt;#              and when vncserver is called from within a running X servers.&lt;br /&gt;#              Can be changed at the command line with option -depth.&lt;br /&gt;#              A fixed default value will be used if vncserver is not&lt;br /&gt;#              invoked in a running X session.&lt;br /&gt;# Example:  $depth = "16";&lt;br /&gt;#           $pixelformat = "rgb565";&lt;br /&gt;$depth = "16"&lt;br /&gt;$pixelformat = "rgb565"&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;PS: pay attention to "$vncStartup", we will define it later&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        $  mkdir .vnc                                      (create the directory we defined in .vncrc, $vncUserDir, it's the default value)&lt;br /&gt;        $  cd .vnc&lt;br /&gt;        $  echo "startkde &amp;" &gt; kde                (the file name is defined in "$vncStartup", it's the startup script for vncserver.)&lt;br /&gt;                                                                   (Use startkde &amp;amp; for KDE, gnome-session &amp; for GNOME or fvwm2 &amp;amp; for FVWM2.)&lt;br /&gt;        $  vncpasswd                                     (set password for vnc authentication, it will create a file with name defined in "$vncPasswdFile")&lt;br /&gt;&lt;br /&gt;   4. Start VNCServer&lt;br /&gt;        There's two ways to start vncserver:&lt;br /&gt;        1) setup crontab with kde user&lt;br /&gt;           #su kde&lt;br /&gt;           $ crontab -e&lt;br /&gt;            add following line in the crontab list:&lt;br /&gt;            @reboot vncserver -alwaysshared &gt; /dev/null&lt;br /&gt;            It means: starting vncserver when machine startup. You can remove the "-alwaysshared" option if you don't want to share vncserver with multi-users. But only one connection is allowed if you disable the option.&lt;br /&gt;&lt;br /&gt;        2) start vncserver manually&lt;br /&gt;            To start the vncserver manually, you have to log in the 'kde' user in console. I have met a weird thing here: the vncserver doesn't work well in following steps:&lt;br /&gt;            open a Gnome Terminal in my own user&lt;br /&gt;            sudo su kde&lt;br /&gt;            vncserver&lt;br /&gt;        &lt;br /&gt;            But if I log in 'kde' in tty1 (press Ctrl+Alt+F1), the vncserver works well.&lt;br /&gt;&lt;br /&gt;        For more details please read manual of vncserver.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   5. Connect to VNCServer&lt;br /&gt;          $ vncviewer localhost:1                              (1 means the display#, you should change it if the vncserver is using other display)&lt;br /&gt;       PS: run the command in your own user desktop.&lt;br /&gt;       Then you can enjoy your own KDE:)&lt;br /&gt;&lt;br /&gt;   6.  Stop VNCServer&lt;br /&gt;          $ vncserver -kill :1                                      (stop the vncserver in display 1)&lt;br /&gt;&lt;br /&gt;   References:&lt;br /&gt;    http://www.linuxjournal.com/article/5499&lt;br /&gt;    http://perso.netplus.ch/FCorthay/InstallGentoo/Shortforms/gentoo-kde-2.6.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5240622987504808045-6084978772553500301?l=jacky-exoweb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jacky-exoweb.blogspot.com/feeds/6084978772553500301/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5240622987504808045&amp;postID=6084978772553500301' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5240622987504808045/posts/default/6084978772553500301'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5240622987504808045/posts/default/6084978772553500301'/><link rel='alternate' type='text/html' href='http://jacky-exoweb.blogspot.com/2007/02/building-kde-environment-in-vncserver.html' title='Building KDE environment in vncserver'/><author><name>Jacky Wang</name><uri>http://www.blogger.com/profile/01655761489819576507</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://bp1.blogger.com/_G6YEM46p49c/SAwpojxVxGI/AAAAAAAACS8/5qNWLxIdHNQ/S220/logo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5240622987504808045.post-1816645437473660126</id><published>2007-02-02T14:34:00.000+08:00</published><updated>2007-02-02T15:56:16.073+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Algorithms'/><title type='text'>Studying Algorithms -- Solving Recurrence</title><content type='html'>Master method to solve recurrence with some particular form like:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;blockquote&gt;T(n) = a * T(n/b)  + f(n)&lt;/blockquote&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;conditions:  a&gt;=1,  b&gt;1, f(n): asymptotic positive,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;means: problem 'T()' of size 'n' can be separated into 'a' parts of problem 'T()' of size 'n/b', and then merge them for cost of 'f(n)'.&lt;br /&gt;&lt;br /&gt;There's three common cases, by &lt;span style="font-weight: bold;"&gt;f(n)&lt;/span&gt; vs &lt;span style="font-weight: bold;"&gt;power(n, log(b, a))&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;1)  f(n)  = &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;Θ&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;(power(n, (log(b,a) - ∈))   (for ∈&gt; 0)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;means f(n) is polynomially smaller than power(n, log(b,a))&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;SOLUTION: T(n) = &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;Θ&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;(power(n, log(b, a))&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;Example:   T(n) = 4T(n/2) + n&lt;br /&gt;==&gt; f(n) = n;   a = 4;  b = 2;   power(n, log(b,a)) = power(n, 2)&lt;br /&gt;==&gt; f(n) = Θ(power(n, 2-∈))   for ∈= 1&lt;br /&gt;==&gt; T(n) = Θ(power(n, 2))&lt;/blockquote&gt;&lt;span style="font-weight: bold;"&gt;2)  f(n)  = &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;Θ&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;(power(n, log(b,a)) * power(lg(n), k))   (for k &gt;= 0)&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;means f(n) grows at similar speeds with power(n, log(b,a))&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;SOLUTION: T(n) = &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;Θ&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;(power(n, log(b,a)) * power(lg(n), k+1))&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;Example:   T(n) = 4T(n/2) + power(n, 2)&lt;br /&gt;==&gt; f(n) = power(n, 2);   a = 4;  b = 2;   power(n, log(b,a)) = power(n, 2)&lt;br /&gt;==&gt; f(n) = Θ(power(n, 2))   for k = 0&lt;br /&gt;==&gt; T(n) = Θ(power(n, 2) * lg(n))&lt;/blockquote&gt;&lt;span style="font-weight: bold;"&gt;3) f(n)  = Q(power(n, (log(b,a) + ∈))   (for ∈&gt; 0)&lt;/span&gt;&lt;span style="font-weight: bold;"&gt; &lt;br /&gt;and regularity condition:&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;    a*f(n/b) ≤ c*f(n)     for constant c less than 1 means f(n) grows polynomially faster than power(n, log(b, a)) &lt;/span&gt;&lt;blockquote&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;Example:   T(n) = 4T(n/2) + power(n, 3)&lt;br /&gt;==&gt; f(n) = power(n, 3);   a = 4;  b = 2;   power(n, log(b,a)) = power(n, 2)&lt;br /&gt;==&gt; f(n) = power(n, 2+∈)   for ∈= 1 with regularity condition:&lt;br /&gt;==&gt; a * f(n/b) ≤ c * f(n)   for (c less than 1)&lt;br /&gt;==&gt; 4 * power((n/2), 3) ≤ c * power(n, 3)&lt;br /&gt;==&gt; if  c in [1/2, 1]&lt;br /&gt;==&gt; T(n) = Θ(power(n, 3))&lt;/blockquote&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5240622987504808045-1816645437473660126?l=jacky-exoweb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jacky-exoweb.blogspot.com/feeds/1816645437473660126/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5240622987504808045&amp;postID=1816645437473660126' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5240622987504808045/posts/default/1816645437473660126'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5240622987504808045/posts/default/1816645437473660126'/><link rel='alternate' type='text/html' href='http://jacky-exoweb.blogspot.com/2007/02/studying-introduction-to-algorithms-2nd.html' title='Studying Algorithms -- Solving Recurrence'/><author><name>Jacky Wang</name><uri>http://www.blogger.com/profile/01655761489819576507</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://bp1.blogger.com/_G6YEM46p49c/SAwpojxVxGI/AAAAAAAACS8/5qNWLxIdHNQ/S220/logo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5240622987504808045.post-5204450052711347158</id><published>2007-02-02T14:28:00.001+08:00</published><updated>2007-02-02T14:28:58.682+08:00</updated><title type='text'>开博了! n_n</title><content type='html'>&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5240622987504808045-5204450052711347158?l=jacky-exoweb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jacky-exoweb.blogspot.com/feeds/5204450052711347158/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5240622987504808045&amp;postID=5204450052711347158' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5240622987504808045/posts/default/5204450052711347158'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5240622987504808045/posts/default/5204450052711347158'/><link rel='alternate' type='text/html' href='http://jacky-exoweb.blogspot.com/2007/02/nn.html' title='开博了! n_n'/><author><name>Jacky Wang</name><uri>http://www.blogger.com/profile/01655761489819576507</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://bp1.blogger.com/_G6YEM46p49c/SAwpojxVxGI/AAAAAAAACS8/5qNWLxIdHNQ/S220/logo.jpg'/></author><thr:total>0</thr:total></entry></feed>
