Saturday, April 12, 2008

Viruses never looked so good


MIT grad student Alex Dragulescu was asked to turn viruses, spams and spywares into graphics with visualisation algorithms -- and the eye candies that emerged are simply c00l. (The thing at the top is MyDoom.)

Saturday, April 5, 2008

The other blog -- on Fluffy Baby Stuff

My friend Hussein was expressing his trepidation of me spouting fluffy baby rants on this blog once it comes into this world come August. (I suspect he's also rather apprehensive of having cases of TMI.)

Fear not, friend. I promise that all baby fluff stuff will be posted at this blog -- since such fluff doesn't really "fit" here anyway (think baby talk, brand comparisons of baby cribs etc). So you don't have to read all about it if you don't want to, simply don't subscribe to the other blog feed. ;-)

One thing, though: kitty fluff do belong here! Any questions?

Lost Li'l Bird

This little guy got lost and made his way into our house the other night.


It was getting quite a bit confused, chirping, hopping and flying around the house in frustration for not being able to find its way out of the house again. Eventually we had to turn off all the house lights except the porch light to guide it out again.


Monday, March 31, 2008

HAL's Legacy

Quite a while back, while I was surfing for "fun" bits of information to be included in some course notes, I came across this e-book version of Hal's Legacy.


Hal (or more formally, Hal-9000), as you might recall, is the supercomputer in the science fiction book/movie classic 2001: A Space Odyssey who (yes, I insist, who) eventually committed murder in an endeavor of self-preservation. Hal's Legacy is a great book for students interested in artificial intelligence, natural language processing, robotics, or just geeks in general. And it's online in its entirety for free!

Enjoy!

Thursday, March 6, 2008

牛奶+柠檬+蜜糖+薄荷牙膏

肚子里的小瓜总在我进食后呱呱叫,胃又好胀好胀气,心烧了又烧……

四处搜索,多番尝试下,竟然发现以下几个方法可行:
  1. 蜜糖泡水,再加一片柠檬。(冷热随喜)
  2. 牛奶!反正牛奶是最容易汲取钙质等营养的饮品。
  3. 饭后勤刷牙,尤其用薄荷牙膏——据说口腔清爽可以减少胃酸分泌。

Thursday, January 17, 2008

iGoogle Theme Fest!

Good news to "personalisation" fans out there - Google just released the iGoogle Themes API so that you can create (and post) your own themes!

A slew of new themes have been posted, and expect more as people start to pounce on the Themes API. Here are a few to whet your appetites:

"Earth-Light"


"Adventures in Lollipop-Land"

"Countryside"

Thursday, December 13, 2007

New USM Thesis LaTeX Class Files

I just uploaded the new USM Thesis LaTeX class files (usmthesis 1.2) at http://liantze.googlepages.com/latextypesetting#usmthesis, to be compatible with the new thesis guidelines effective from Dec 16 2007 onwards.

Major changes:
  • Body font is now Times Roman for serif type, Helvetica for sans serif type, and TX Typewriter for typewriter font.
  • Bottom page margin increased to 4.0cm.
  • Page number now placed 1.0cm from bottom edge of paper.
  • All text on title page are now in bold.
  • Title of bibliography/references is now "REFERENCES".
  • Introduced new "plate" float and "List of Plates".
  • List of Publications is now moved to after appendices.
  • Re-formatting of the table of contents:
    • all text are unformatted (chapter headings are neither in bold nor using larger font size
    • otted leader between titles and page number
    • larger separation between (sub)section numbers and titles to resemble the sample in the guidelines more closely
  • Fixed bug in definition of \chapter to honour short title in \chapter[short title]{full title}
Enjoy!

(p/s I've yet to blog about our recent participation in the 11th International Conference on Translation in KL... I wonder if I'll ever get round to it?)

Tuesday, November 27, 2007

New Google Themes

You now have another 5 new delicious themes for your Google personalised page! Here I'm using the Hong Kong theme. Enjoy!


Friday, November 2, 2007

Drunken Kitten

Still under effect of a sedation after visiting a vet. (S)he's such a cuuuuute lil' kitty... nak cubit...

Tuesday, October 16, 2007

LocoRoco: Yellow Rolly Ball of (Weird) Cuteness

I can't possibly find the appropriate words to adequately describe this game. It'd be best if you watch the promotional trailer and experience the demo yourself instead:



Wednesday, October 10, 2007

That's... creative, dear



I might consider having kids if I could get away with this >:-D

Although, my husband and our parents are unlikely to concur...

Monday, October 1, 2007

天野喜孝 Yoshitaka Amano and Sandman






I've always been fascinated with Yoshitaka Amano's(天野喜孝) artwork, especially his illustrative work. He's greatly known for his character design for the Final Fantasy series, and also (perhaps not so greatly known) for the Gatchaman anime series (a.k.a. G-Force, soon to be a motion picture... erk. I'm not sure if I'm looking forward to that, though.)

To the joy of fantasy fans everywhere, Amano collaborated with Neil Gaiman to produce a Sandman graphic novel, "Dream Hunters" (1999). The story is actually a re-telling of a Japanese legend/story, set in Heian-era Japan (or so I think, since Onmyouji 阴阳师 and "classical" Japanese supernatural beings figures largely in the plot) -- which makes Amano's flowing style rather relevant. There's something Klimt-ish about his work in "Dream Hunters".

Gaiman's clever style here could've fooled me into thinking that this was something translated directly from a Japanese source! (Well, it is a re-telling of a Japanese story but still, I'm really happy that he took this approach instead of "Westernising" it. :p)

Monday, September 17, 2007

歌神降临

歌神降临,雨神助威!(还是来搞局的?一开场灯光一暗下就马上下雨……)

两个字,过瘾!(虽然学友的感冒还是有少许影响……)经典歌还是占了大部分啊。快歌也不少。招牌的兰花指全场没少过。“发癫”又如何?我们陪你癫过!比起新加坡人来,大马人还是比较癫的。(不然也不会有敢死队胆粗粗跑去关仔角等看海啸,真是服了。这个我就不敢陪各位敢死英雄癫。)

还要再来哦!(但算我怕了 KL 的神经交通……)

Friday, August 24, 2007

Ladybirds Red and Bamboo Leaves Green






(Well, I'm sorry that my garden is so boring, I'm sure...)

Wednesday, August 1, 2007

English-Malay Translation Google Gadget

So I was bored (or having a writer/researcher's block, depressed to tears, too busy P-ing, no research inspirations, whatever). So I decided to try writing a Google Gadget for UTMK's EBMT solution:



Basically, it's a "lite" version of our research group's example-based machine translation solution (read: a Universal Translator in the making). For the moment it supports English-Malay (both directions) translation, and we still have whole tons of ideas for improving its speed, accuracy, coverage etc.

I tried submitting the Google Gadget to the public searchable Directory, but apparently there's an approval process, so it doesn't show up yet. Meanwhile if you'd like to add it to your personalised Google homepage, you'll have to add the gadget by its URL: http://liantze.googlepages.com/utmk-ebmt.xml

Stay tuned!

Sunday, July 29, 2007

UTMK Open Day + Didier's Farewell Party

Goooood I'm still feeling dead tired after our mini-expo and Didier's farewell party on Thursday...

I don't think I can write anything about it yet, too physically/emotionally draining, so hop along to Hussein's take on it, or take a look at the photo slideshow:



All pics were taken by either Hussein or Kak Azimah, which are also on my Picasa Web Album:
UTMK Open Day + Didier's Farewell Party




Come back again soon and often if you can, Didier!

Wednesday, July 4, 2007

Generating JPGs and PNGs from Tikz/PGF

Gem of a post found at Nabble.com:

Re: Generating PNG or JPG ?

by Kjell Magne Fauske Mar 23, 2007; 02:47am

On 3/22/07, Hari Sundar wrote:
> Hi,
>
> Is it possible to generate images from tikz code ? I would like to put these
> images on a webpage and was wondering if there is an automatic way of
> generating the images rather than taking screenshots.
>

Sure, I do it every time I update the gallery I maintain at
http://www.fauskes.net/pgftikzexamples/

My approach is to use Ghostscript. Lets say I have a tex file named
figure.tex The work flow is approximately like this:

> pdflatex figure.tex

I then run ghostscript on the generated file figure.pdf to generate a PNG:

> gs -dNOPAUSE -r400 -dGraphicsAlphaBits=4 -dTextAlphaBits=4 -sDEVICE=png16m -sOutputFile=figure.png -dBATCH figure.pdf

(On Windows the command is gswin32c. )

>From the resulting PNG file I generate a jpg thumbnail.

To crop the figures I use a package called preview[1]. The package
provides several ways of previewing parts of your document. For
example, adding this to your document preamble:

\usepackage[active,tightpage]{preview}
\PreviewEnvironment{tikzpicture}

will extract every tikzpicture environment. If you use pdflatex, every
tikzpicture will be put on a separate page in the resulting pdf
document. To add a margin around the figure add:

\setlength\PreviewBorder{10pt}%

[1] http://www.ctan.org/tex-archive/help/Catalogue/entries/preview.html


Regards,
Kjell Magne Fauske

Monday, July 2, 2007

People are downloading my stuff!

OMIGOSH, people are actually starting to download my LaTeX scribblings! *tears of joy*

That people wanted the workshop slides are expected; anyway the colloquium committee put up a copy at their website too. Surprisingly the LaTeX installation walkthrough for Windows is the most sought-after file now! And the Absolute Beginner short guide! And the USMthesis style files!!

w00t!!

Friday, June 29, 2007

LaTeX Workshop Delivered

I'm still catching my breath after giving the LaTeX workshop on Tuesday (26th June). Talked non-stop for 1 hour 20 minutes and I still had several things I couldn't cover in time, especially demonstrating on-the-spot how an ACM conference paper can be produced from a default article document class, and show a few pages from the USMthesis package, etc.

The audience (20~30 people including both lecturers and postgrad students) seems to have liked the talk, and although I don't have any proper feedback data, here are some comments passed to me after the talk:
  • people have heard of LaTeX before, but have no idea how it's used.
  • people have heard of the wonderful "beautiful" outputs of LaTeX, but until I showed them a side-by-side comparison of output from LaTeX and Word, they had no idea what kind of "beautiful" output people meant.
  • people wanted to try LaTeX before, but didn't know what to install.
  • although I told them that some features like auto-generation of table of contents are also available in Word, people actually told me that they know about the feature in Word but "it's too hard to use", whereas in LaTeX one line of code will definitely get it done.
The fact that the Colloquium programme book was created with LaTeX (I helped the committee to do it within 2 days) helped convinced the audience with physical proof of what LaTeX can do...

Maybe within the next week or two, I'll get more comments and feedback via e-mail, or something. But at least now I've managed to raise some interest here...

Thursday, June 28, 2007

Vector Graphics Application with LaTeX PGF/Tikz

I simply must blog this before I go off for a meeting. Nicola Talbot has written a vector graphics program, JpgfDrawing, that can export to LaTeX code that renders the graphics using the Tikz/PGF package. PGF is used in the Beamer package, and I played with Tikz while preparing for the LaTeX workshop. It's the best drawing package for use with pdflatex I've encountered so far. (I'm not a fan of PS files, so I don't use PSTricks much, sorry.)

Sunday, June 24, 2007

Making booklets

So I was asked to help produce the program/abstract book for the CSPC'07 (Postgrad Colloquium) with LaTeX. I said Yes since here's a legitimate opportunity to get my LaTeX fix. ;-)

The end result was to be an A5-sized booklet, i.e. 2-up pages on an A4 sheet, folded. I tried the LaTeX booklet package, but it wouldn't play nice with the geometry package, not without me twiddling explicitly with the page sizes and margins. Dear, dear./>
Thank goodness for GNU/Linux though, since we can always use psutils for producing booklets, and we want PDF outputs anyway. And so, once the full-sized A4 abstractbook.pdf is done, these commands spring into action:

$ pdftops -paper A4 abstractbook.pdf abstractbook.ps
$ psbook -s40 abstractbook.ps absbook-sig.ps
$ psnup -n2 -pa4 absbook-sig.ps abstractbooklet.ps
$ ps2pdf -sPAPERSIZE=a4 abstractbooklet.ps


where the -s40 parameter to psbook signifies there should be 40 pages in the booklet. The number must be a multiple of 4. It doesn't matter if your full-size doc doesn't have the right number of pages; psbook will add blank pages as necessary, so just round up your actual page number to the next multiple of 4 to pass to psbook.

TA-DAAAAA!!!!




It was a learning experience especially the following points:
  • Do not be a smart-aleck and try to reset page numberings when making twoside documents. Let \frontmatter and \bodymatter do the job. Otherwise the odd/even page margins get all messed up.
  • Use the ltxtable package for longtable + tabularx. But then each longtable (with tabularx column specs) needs to be in its own individual file.
  • On the whole, LaTeX is relatively easier than
    • coaxing printers to co-operate.
    • proof-reading.
    • proof-reading.
    • ESPECIALLY the proof-reading.

Friday, June 15, 2007

Wednesday, June 13, 2007

秀萍当妈妈了!


Cynthia's a very close friend from my A-level and Warwick days. She's the kind of person that takes on life's challenges head-on, and I admire her greatly for that. So when she and Andrew (another Warwick coursemate!) got married, I was no end happy for them, and especially for Cyn.

Now they're proud parents of little Joelle Chow! She was born 9th June, 2007 at Royal Free Hospital, London. O joyous day, congratulations Andrew and Cynthia and little Joelle!

Friday, June 8, 2007

tex4ht

曾经好玩地尝试了 latex2html, HeVeA, TtH 等等。简单的 LaTeX 文件是没问题啦,都可以生成不错的 HTML,但若有特别的宏包、自己定义的指令,那就非常对不起了。(其中 TtH 的速度还真不是普通的快!)

最近发现了 tex4ht,似乎还没有什么可以难倒它的!皆因它会先生成一个 .dvi 文件,再从这个文件生成 HTML, OpenDocument 等其他格式。默认的 HTML 是有点丑啦,但可以自己定义 CSS 或其他设置来改善。最重要的是,啥宏包(或是自己定义)的指令都可以处理哦。

起初是有个小疑问:我已习惯了 \includegraphics{file} (即不写明 file extension),结果 tex4ht 就老是要找 .eps 文件……而我又不想改动成 file.eps 那么累赘,还真花了不少时间在网上搜索。最后终于找到解决方法。先要一个 myconfig.cfg 文件:
\Preamble{html}
\DeclareGraphicsExtensions{.jpg,.png,.eps,.pdf}
\begin{document}
\EndPreamble
然后运行(基本指令,当然还可以加上其他配置值)

htlatex myfile "myconfig"

就可以了。

Friday, June 1, 2007

The Rage with Patents

Why this obsession with patents? Why? Patents for industrial and engineering designs, I understand. But patents for algorithms and software procedures and computer applications?

Maybe I should have become a lawyer like my dad secretly wished (before he realised-- happily, I think -- I had a bigger knack for maths and such).

Well here's what Computer Science's Yoda (that's what he is to me) has to say about software patents: Prof Donald Knuth's 1994 Letter to the Patent Office.

Tuesday, May 22, 2007

ProTeXt 2.0 is out!

After... what was it? 2 years? There's finally a new version of ProTeXt! It features MikTeX 2.5, TeXnicCenter Greengrass and TeXMaker (w00t! I loved it on Debian! Still not quite sure how it fares against TeXnicCenter on Windoze though)!

It seems though that localtexmf is no longer supported under MikTeX 2.5, apparently it provides other ways of configuring user's own TEXMF trees. We'll see how that works out, but I definitely need to get up to speed with this for the LaTeX workshop.

Well, download time.

Monday, May 21, 2007

LaTeX Workshop!

I got an invitation from Dr Dhanesh to conduct a LaTeX tutorial/workshop for the upcoming Postgraduate Co*******m! (Sorry, still some repressed memories from 3 years back there.)

The initial idea was to give a tutorial on using my usmthesis LaTeX template. But then we realised that the available slot is only 1 hour, and it's hardly practical to assume the audience having prior knowledge about LaTeX. (Now that's a vision, don't you think?)

So by today, Dr Dhanesh suggested to keep it as an "Introduction to LaTeX" walkthrough, and only talk briefly about the thesis template if we have enough time.

Boy, I am rather thrilled about this. I hope I'll be able carry it off.

Thursday, May 17, 2007

VladStudio Wallpapers

Vladstudio.com 依然是我最喜欢的网络艺术家。他的笔触有种温暖的油灯感觉,又像冬天的晚上等着你回家的壁炉里的火焰……当然,更过瘾的是他还时常恶搞名画及网络2.0。

Wednesday, May 16, 2007

Bash commands and scripts

I love Bash shell commands and scripts. Really, I do. Where would I be without all them one-liners to *bang* *zip* process those huge dictionary text files in less than 5 seconds?

Except that sometimes I need 30 minutes to look for an obscure option and how to use it exactly to get the result I want.

For instance, sort is cool. It sorts lines so fast no spreadsheet application is worth a second, nay, even a first thought. Heck, it even ferrets out unique lines calmly!

Then I have this file, which is all fields of numbers, e.g.
1   1    0    0    0
1 2 2 0 2
...

And I needed it to be sorted by the first field, then the second. Running plain sort on it gave me
1     1     0     0    0
1 10 0 10 10
1 11 ...
...
1 1921 ...
1 2 ...

OK, so it's not seeing the numbers as numbers, it's seeing them as ASCII strings. A man page look-up later, I tried sort -n. Then sort -k, then with both options. To no avail. Time to Google.

30 minutes of surfing later, I finally found this nugget of an example that did the trick:
sort -k 1n,1 -k 2n,2

See, you have to state explicitly (via -k) that the first key starts and ends at field 1, and to treat it as a number, and repeat it with field 2 (or any other fields you'd like to use as the sort key) as well.

I love Bash commands.

Sunday, May 13, 2007

Sumatra PDF Viewer

http://blog.kowalczyk.info/software/sumatrapdf/

Finally -- a PDF Viewer on Windows that supports document reloading! No more wrangling with Acrobat Reader DDE commands during TeXnicCenter + pdfLaTeX!

Sunday, May 6, 2007

当研究生们开始脑筋不正常

点题!当大家都开始被无理的压力搞得疯疯癫癫,这就是咱的研究室的下场!


我们非常极之迫切需要一个出气筒,一个供我们暴力以待的沙包!!


然后,我们也需要一个软绵绵又温暖的大玩偶,让我们可以紧紧拥抱……(虽然也有人较喜欢也对它暴力以待啦。)

总之。我们很想要 go crazy 啦!

Wednesday, April 25, 2007

Penang Bridge Traffic info via SMS

While crossing the Bridge this morning, staff gave out little bookmarks re the launching of the "Online Traffic Information Management System" (OTIM) via SMS; thought I'd share it...

SMS:
(to Penang) OTIM kepen OR OTIM topen
(to Seberang Perai) OTIM keprai OR OTIM toprai

to one of these numbers: 012 344 6900; 013 388 3131; 016 339 0999

I gave it a try and here's what I received:
OTIM
CODE:toprai
DEST:To Seberang Perai
INFO:Bayan Baru=Clear; Udini=Clear; Main Span=Clear; Juru=Clear; Seberang Jaya=Clear
[Estimated time travel on the bridge: 15 minutes]>
Drive carefully & wishing you a safe journey!

Mmm, cool. I hope this one doesn't break down ever!

Monday, April 23, 2007

S.H.E. 中国话

谨此将这首歌,献给所有看不起中文,看不起华校生,看不起会说中文的人的人们。

中国话
唱:S.H.E.
曲:郑楠 词:郑楠/施人诚

伦敦玛莉莲 买了件旗袍送妈妈
莫斯科的夫司基 爱上牛肉面疙瘩
各种颜色的皮肤 各种颜色的头发
嘴里念的说的开始流行中国话
多少年我们苦练英文发音和文法
这几年换他们卷著舌头学平上去入的变化
平平仄仄平平仄 (仄仄平平仄仄平)
好聪明的中国人 好优美的中国话

扁担宽 板凳长
扁担想绑在板凳上
板凳不让扁担绑在板凳上
扁担偏要绑在板凳上
板凳偏偏不让扁担绑在那板凳上
到底扁担宽还是板凳长
哥哥弟弟坡前坐
坡上卧著一只鹅
坡下流著一条河
哥哥说 宽宽的河
弟弟说 白白的鹅
鹅要过河 河要渡鹅
不知是那鹅过河
还是河渡鹅

全世界都在学中国话
孔夫子的话 越来越国际化
全世界都在讲中国话
我们说的话 让世界都认真听话

纽约苏珊娜 开了间禅风Lounge Bar
柏林来的沃夫冈 拿胡琴配著电吉他
各种颜色的皮肤 各种颜色的头发
嘴里念的说的开始流行中国话

有个小孩叫小杜
上街打醋又买布
买了布 打了醋
回头看见鹰抓兔
放下布 搁下醋
上前去追鹰和兔
飞了鹰 跑了兔
洒了醋 湿了布
嘴说腿 腿说嘴
嘴说腿 爱跑腿
腿说嘴 爱卖嘴
光动嘴 不动腿
光动腿 不动嘴
不如不长腿和嘴
到底是那嘴说腿 还是腿说嘴

Sunday, April 22, 2007

折纸 Origami

I know of at least one reader of this blog who'll click on this link: Star Wars Origami.

其他较合我口味的折纸:

Wednesday, April 4, 2007

News about the Bridge Closure

News story about the Penang Bridge closure in International Herald Tribune
Another official of the Penang Bridge Sdn. Bhd. ... said it was not immediately clear how badly traffic had been affected because of the move.

[Insert 10 expletives of your choice here]

Not immediately clear. Not immediately clear? NOT IMMEDIATELY CLEAR???? Holy schmolly, didn't you even try putting your head out the window?!?!!?! Wait, I thought you even had a real time camera trained on various spots on the Penang Bridge and roads leading to it!!

Update on 5 April: A more coherent story from the Star. I'd say for a very possible bomb threat, 2.5 hours closure was quite short. Well done. (...or is it the low-M'sian-expectation bar at work again?)

Bomb Scare on Penang Bridge

...So I left the lab at 5.10pm. So the bridge was closed to traffic. D*mn.

So I turned off and headed towards the ferry terminal. I mean, inched towards the ferry terminal.

7.40pm I'm finally in front of the LHDN building!!!

7:50pm D*mnd*mnd*mnd*mn they closed off the junction to turn right into the ferry terminal!! More pileup to endure, arrgh!

8:05pm Sara SMS'ed me back and seems that the bridge was re-opened.

8:07pm Mom called, she heard on the news that they received a report about a BOMB on the bridge, hence the closure earlier.

8:20pm THAT'S IT I'VE HAD ENOUGH!!

So I turned off towards Pulau Tikus and got past Penang GH and turned towards Bayan Lepas, to get to the bridge via Green Lane.

9:20pm Woo-hoo!! Butterworth!! Roti Telur dinner at Zamrud@Raja Uda!!

...but I still don't know if there was really a bomb. And I'm not in the mood to listen to news on the TV right now. Well I guess I'll read all about it in the morning.

鸟语花香






Saturday, March 31, 2007

PhD Comics Soap

http://www.phdcomics.com/comics/archive.php?comicid=843

Oh no, no no no... how could this happen? I hate you, Jorge... just when I'm just recovering from this headache/fever, too...

Wednesday, March 28, 2007

数学诗之美(英文版)

我妈将上回的“数学诗”派给她的学生们后,就有几个学生说了: "Teacher, I don't know Mandarin..."

说得真是可怜啊,别担心,英文版的多的是呢。这里有一堆,节录如下:

How I wish I could calculate pi.

How I like a drink, alcoholic of course,
after the heavy lectures involving quantum mechanics.

Sir, I bear a rhyme excelling
In mystic force, and magic spelling
Celestial sprites elucidate
All my own striving can’t relate
Or locate they who can cogitate
And so finally terminate.
Finis.

But a time I spent wandering in bloomy night;
Yon tower, tinkling chimewise, loftily opportune.
Out, up, and together came sudden to Sunday rite,
The one solemnly off to correct plenilune.


这里还有个超长篇的,把 Pi 的 740 个小数位都写进去了。

死亡笔记电脑



哇哦……但还真是酷毙了。全球只有三十台,绝对限量,绝对珍贵。原文

“名字被写在死亡笔记本里的人类,必死无疑”……那,用死亡笔记型电脑处理名单资料库的话……哇咧效率不就提高几百万倍了?还可以编程 bot 去自动 Google 呢……

瓜拉牛拉生态之旅 Trip to Kuala Gula

这其实已是三个星期前的事了,但当时实在是太忙了,没时间写博。不过迟到总好过没到吧?

(This was actually three weeks ago, but I was really too busy with work then and didn't had time to blog properly. Well, better late than never, right?)

瓜拉牛拉 Kuala Gula 位于霹雳州 Kerian 区,是个小渔村,同时也在 Matang 森林保护区内,并号称东南亚其中一个最重要的候鸟“驿站”。三月十、十一日,我们随着大马自然协会的旅行团来到了这里。

(Kuala Gula, a small fishing village, is situated in Kerian, Perak. It is also within the Matang Forest Reserve, and the Kuala Gula Bird Sanctuary is one of the most important stops for migratory birds in South East Asia. So my husband and I joined a trip to Kuala Gula organised by the M'sian Nature Society on 10th and 11th March.)

闲话少说,去片!

(Enough of words, on with the pictures!)

瓜拉牛拉同时有着西马最大的沼泽红树森林系统,而高质量的红树木正是烧木炭的来源。所幸这里的烧炭业者及树木砍伐都由森林保护局妥善管理。这是其中一个烧炭厂:

(Kuala Gula also has the largest mangrove ecosystems in Peninsular Malaysia, and the mangrove trees here are excellent material for producing high-quality charcoals. Fortunately, the charcoal industry and logging activities here are all systematically managed by PERHILITAN. This is one of the charcoal factories.)




我的相机没那么“好料”,所以……观鸟时都拍不太清楚……

(My camera wasn't all that powerful, so I couldn't get any clear shots of the birds.)

但我们看见了海豚!四、五只吧,据说是跑进河口来找鱼吃的,但太快了,实在来不及按快门。照片反而看起来像是尼斯湖水怪……绝对、绝对不是大白鲨哦。



But we saw DOLPHINS! There were four or five of them, apparently they swim into the river mouth areas to look for fish to eat. But they were too quick for us to take any good pictures. The photos look almost like those of Nessie... but that's certainly no Jaws, ok? OK?

Sunday, March 25, 2007

More on Google Themes

Well someone compiled (almost?) all the possible cutesy Google themes here. And they've even thrown in some Easter Eggs!

Thursday, March 22, 2007

Monday, March 12, 2007

快疯了

想去一个远远的地方。
没有人认识我。
找一个安静的角落,静静的躺下来,静静的睡着。
然后,再也不要醒来……

Friday, March 2, 2007

Quest of the Holy Sticker: 夺贴奇兵

For those who know about my long, heart-wringing story about my hunt for the elusive car sticker...

I FINALLY GOT IT TODAY!

That's right, y'all! I'm not a student, not yet a full staff but Heck, they finally acknowledged my name as a research officer in their databases!

Tuesday, January 23, 2007

Debian 扫除

我本来是看着 df -lh 的列表,暗自神伤……怎么那么快硬碟就不够用了呢?我又不是装了多少软件包,不就是 LaTeX, 两个资料库平台,Apache, Java, Prolog, Perl, PHP……嘿嘿 ;-)

然后!然后我发现了一个沧海遗珠!那就是——

apt-get autoclean

它可以把陈旧的 .deb 文件清洁溜溜!了无痕迹!(洗衣粉吗?)若要更狠一点,把全部 .deb 都删除,就用

apt-get clean

包您的硬碟马上又有一大片空间!

Monday, January 22, 2007

Java 6 on Linux!

哇~!哇~!我不是眼花吧? Sun Java 6 的 Debian 包出了啊啊啊啊~!而且还顺利安装了呢~!而且之后的执行速度真的很快!大感谢,大感谢!

Wednesday, January 17, 2007

Jawbone! WordNet!

终于找到 WordNet 2.1 的 Java API 了!看看 Jawbone 吧。

又,Ted Pedersen 等人的 WordNet::Similarity 也看来蛮有用的。但是个 Perl 包……我看了就头疼。暂时我会先用 HTMLParser 来抽出那些数据,留待他日/他人再研究把它弄成 Web service 好了。

Sunday, December 3, 2006

我终于向宽频低头

是,我家终于装了Streamyx。可笑的是,网速竟然可以比 dial-up 还慢或是完全没有线!

别对顾客/消费人那么苛刻可以吗?我的耐心是有限度的!别怪我有其他选择的时候,毫不犹豫的移情别恋!

Tuesday, November 28, 2006

继续发牢骚

结果 MIMOS-USM 的卫星研究所又泡汤了:链结

若想太多的话,还真的可以有一千零一个阴谋论。;-) 得了得了,想那么多干嘛?做事去!

Sunday, November 26, 2006

我爱 PostgreSQL

我真是爱死 PostgreSQL 了。可不是要又来一场 MySQL vs PostgreSQL 激烈辩论哦。只是因为我受够了每每翻阅 MySQL documentation 时,正开心着终于找到某个 function 或什么时,赫然看到这么一行字:"This function will be available in a future release of MySQL." 真是气死老娘也。

不过哪,PostgreSQL 也得小心服侍就是了。就比如在 PostgreSQL 8.x 里的 constraint_exclusion 变数和 table inheritance partitioning 若一起使用,可以得到很好的速度,但 constraint_exclusion 在 PostgreSQL 7.x 可是没有的哦。还有还有,PostgreSQL 8.x 可以用 $$ 或 $_$ 之类的 string delimiter,PostgreSQL 7.x 可就非得用 '' 不可。害得我在那架还是 Debian Sarge Stable 的伺服器上要一个一个 function 的去改正。

最后,还发现了一件事:若一个 用 SQL 定义的 PostgreSQL function 里有用到 where condition 而这个 where condition 又用到 function argument 的话,执行的时候可有您受的:因为 Query Planner 事先 (compiling function 时)根本不知道那是什么值,因此它完全不会打算用任何 Index!!!遇到这种情况,就得用 Pl/PgSQL 来定义那个 function。代价是每回执行时都要 plan 过一次 query,但我甘愿!因为我的 function 执行时间就此从七秒降到零点七秒。呵。呵。呵。呵。呵。

好久不见

啊啊,好久没写帖子了。又忙,又累。有时一些想法又不想留下日后的呈堂证据。(那干嘛学人开部落格啊??)呵呵。顺其自然吧,我才不想写帖子这回事又变成再一单差事呢。

Tuesday, November 21, 2006

我。好。累。

I wanna sleep and never wake up I wanna sleep and never wake up I wanna sleep and never wake up I wanna sleep and never wake up I wanna sleep and never wake up I wanna sleep and never wake up I wanna sleep and never wake up I wanna sleep and never wake up I wanna sleep and never wake up I wanna sleep and never wake up I wanna sleep and never wake up I wanna sleep and never wake up

Friday, September 15, 2006

PostgreSQL Over TCP/IP

Configuring a PostgreSQL server to listen for remote connection requests over TCP/IP:

(File locations as according to a Debian Etch setup)

In /etc/postgresql/8.1/main/pg_hba.conf, add:

# Allow connections from, say, 10.207.110.x
host all all 10.207.110.0/24 md5


In /etc/postgresql/8.1/main/postgresql.conf:

listen_addresses = "*" # listen to requests from all IPs


Finally, assuming the PostgreSQL server is listing on port 5432, update /etc/init.d/firewall.sh to contain

$IPT_bin -A INPUT -i eth0 -p tcp --dport 5432 -j ACCEPT

Monday, September 4, 2006

大马 2007 年财政预算案

真没想到有一天财政预算案竟会和我的工作有关系:

Meanwhile, government-owned research and development organisation Mimos Bhd has been allocated RM162mil to begin research on mobile broadband engines, e-Learning applications, and language technology, especially in Bahasa Malaysia.


(摘自2006年9月2日《星报》

^_^

Tuesday, August 22, 2006

PostgreSQL

好多人都曾和我说过,MySQL cannot scale。OK, fine, but you know how it is -- I've never had time (or excuse) to learn it up. Well now I do. Didier 大力推荐(并要求!)我用 PostgreSQL 来实现一个 LexicalBase。于是乎我就 synaptic 了一堆和 PostgreSQL 有关的宏包。其实是很容易省事的-要不是理大的network connection 真的很王八蛋的话。

So, apt-get 了之后,最简单的登录方式是:

$ su postgres (用 root password)
$ createuser <user> (最好可以用 Linux 的用户名)
$ exit
$ psql -U <user>

再用 Linux 用户名的密码,就可以登录了。

但若是要一个非 Linux 用户名的 PostgreSQL 帐号呢?

先以 superuser 身份登录吧:

$ su postgres
$ psql
=> CREATE USER psql_admin [SUPERUSER] CREATEDB CREATEROLE PASSWORD 'password'

SUPERUSER, CREATEDB, CREATEROLE 都是 optional 的。手册曰:最好是可以新建一个非 superuser,但可以 create database, create role 的帐号,以执行日常管理。普通帐号则用

=> CREATE USER webuser PASSWORD 'webpassword'

就可以了,而这种非 Linux 用户帐号的登录方式是:

$ psql -U webuser -h localhost -W dbname

新建资料库:

$ createdb -O <owner_name> <newdb>
=> CREATE DATABASE lexicalbase OWNER lexical (必须在 superuser 或 member role 下执行)

Monday, August 21, 2006

我总算毕业了……



上星期三,八月十六日,我总算毕业了。

不过呢。当时我正在发烧。而且还是毕业典礼前后连续烧了一个星期多。

而今天一回来,就看到桌子上放着一张 Mr. Tan 送的卡,卡曰:

As you graduate from your Masters, I guess you...
...are ready for your PhD!

呜呜,我不要又跳进火炕中啦。暂时不要啦。(别问我“暂时”是多久哦!)

Thursday, July 13, 2006

安装 Debian

星期一至今都在安装 Debian Etch,重灌一大堆软件。总的来说,是相当轻松的:拿着菜单上 synaptic 猛血拼就是了。但依然有一些蛮烦人的问题要手动解决,基本上也是因为还不习惯 Debian 的管理方式。

总的来说有以下几个问题:

  1. 安装 Sun Java VM (Debian 的默认 JVM 是 GNU JVM)。参照这里这里

  2. 强迫 eclipse 使用 Sun JVM,如下:
    update-java-alternatives --set java-1.5.0-sun

  3. 在 LaTeX 下安装 CJK UTF-8 字体:


    • 大致上和这里的步骤一样,但有一些设定方法不同,如下。

    • cyberbit.map 放在 /etc/texmf/map/misc/ 。

    • 在 /etc/texmf/map/ttf2pk/ttfonts/ttfonts.map 加多一句
      cyberbit@Unicode@       cyberbit.ttf

    • 新增档案 /etc/texmf/updmap.d/30cyberbit.cfg ,内容只有一句:Map cyberbit.map

    • $ update-updmap
      $ updmap
      $ texhash


  4. 开机自动启动 SCIM,并在非 GTK2+ 视面中也可以 Ctrl-Space 启动输入模式。参照这里
其中第3项是自己摸出来的,迟些再写。

Thursday, July 6, 2006

So. I'm a Dutch at Heart?

Your Inner European is Dutch!

Open minded and tolerant.
You're up for just about anything.

Friday, June 30, 2006

水 · Google · 女程序员

好啊!写得真格好!谙中文的程序员们,必读

(心情其实糟透了,先且按下不表。)

数学诗之美

山巅一寺一壶酒
二侣舞仙舞
罢酒去旧衫
握扇把市溜

更多请看这里这里这里

Friday, June 23, 2006

借过借过,更多中文 LaTeX 资源来噜!

LaTeX 编辑部:http://vip.happywww.com/userweb/latexer/index.htm

其中有个链接,关于生成中文 PDF bookmark 的更是精华:http://blog.bs2.to/post/EdwardLee/4776
但我在 teTeX 试过了,还是不能成功。也许是我的 teTeX 实在太旧了。而且我又坚持非得用 UTF-8 而不是 GB 或 Big5 。

6:15pm 最新消息:行了!原来 CJK 4.6.0 还是不足够,一定要抓到 CJK-current 才行。现在即使在 beamer 下也可以生成中文书签、目录,甚至是 hyperref 的目录链结都没问题了。下个星期我再上载一些例子。

Friday, June 9, 2006

Depression.

这可是哥哥的遗言哦。我,该不会步上他的后尘吧?

原本以为,写完论文、答辩、呈交论文后,我就可以了了一桩心愿。奈何这段日子中需要与之打交道的人与事(一些和论文有关,一些和工作有关,一些其他)并不全都是我可以平心静气接受下来的。

是我的修为不够吧。不,应该说是完全没有修为,呵呵。

何时,才会阳光普照——这样的想法根本是说梦话吧?

"I beg you pardon, I never promised you a rose garden
Along with the sunshine, there's gotta be a little rain sometime..."

Thursday, June 8, 2006

倒霉的一天

呵呵,很像小学生的作文题目对不对?Well, 今天是不太顺利啦。

一大早就去了 IPS 要拿已呈交论文的证明信。得到的答复竟然是——我的论文题目和之前的不符合,所以不能接受。啊啊啊,这可是答辩时两位考官都指出一定要改正的啊!偏偏,偏偏负责人又正在放假。叫我第二天再来。

我怎么做呢?我当然是 panic 啦。Dr Tang 偏偏也放假……啊啊我不管啦,就算打扰他享受天伦乐也要给他摇个电话啦!

嗯嗯,他说。我昨天已和 IPS 那家伙说啦,更改题目是考官的要求嘛。哦,原来如此啊。IPS 的家伙说。那就没问题啦。

没问题?没问题那你怎么不在放假前先给下属最新消息+指示啊?可怜可怜我的心脏嘛。


(六月九日最新消息:IPS 话事人依然放假。星期一请早。啊啊啊,天啊,请让我今年顺利毕业吧……)

Tuesday, June 6, 2006

FITPE

经过整两个月后,我昨天傍晚总算收到 FITPE (Fundamental Information Technology Professional Examination) 的成绩了。及格。从此履历表上总算是有“专业文凭”这一项了吧?

Monday, June 5, 2006

What is wrong with me?

没有干劲。没有 idea 。看到字典就“显”。明明昨天还想着有一大堆东西要完成,今天来到 lab 却又百般不愿意写程序。我是怎么了?我还适合作“研究”吗?

Thursday, June 1, 2006

结束了

是的,一切都结束了。我终于把那三本硕士论文呈交上去了!用 Computer Modern ! 那位 IPS 的大姐的确是有点狐疑地问我“你这用的是什么字体啊?”我答她这的而确切是 Prof Syukri 同意的啊。哦,好。她说。那就好。大家都好好。真好。

小小车祸

Thu, Jun 1 - 五月初六
宜:嫁娶 纳采 出行 祭祀 祈福 开市 动土 移徙 入宅 破土 安葬

嗯嗯?那为何我一早一出门就遇上小小车祸?好啦,是没什么事啦,不过是后车牌裂开两半……但在我决定要呈交论文的当天早上就遇上这种事,难免有点心有戚戚焉。

又或者,今天本来就是很不错的一天,为了呈交论文顺利,于是便把一整天无关紧要的小霉气集合在早上了?阿Q精神万岁!

Tuesday, May 30, 2006

Go Computer Modern

啊啊,各位院长大人终于首肯在论文里用 Computer Modern 了!Go Computer Modern! Go LaTeX!

Monday, May 29, 2006

怒吼!

这样可以吗?!堂堂一个国家研究基金的申请网站竟然那么多状况,我还有脸向这样的设施申请 Comp Sci 的研究经费?!!

Monday, May 22, 2006

迷惑く

感觉上好像越来越 out of control 了。不知道还能够继续撑多久。

Friday, May 19, 2006

我乃天煞“穷”星

是的,我依然不喜欢 sales and marketing and management。是的,我注定穷一辈子了。

Monday, May 8, 2006

生病了……

咳咳,咳咳咳……头好晕哦……好多工作……我好想一觉不醒。