Friday 25 December 2009

小強祝你聖誕快樂

一打開房門,就見到一個細小黑影在白色牆紙上游走。

向右差開一步,脫下拖鞋,手起鞋落,啪~

爆開了的小強,反著肚子,說:祝你聖誕快樂。

Sunday 13 December 2009

照顧嬰兒須知

一名七個月大男嬰昨晨飲夜奶後,母親沒為他「掃風」,之後母子同床而睡。直至早上,男嬰猝死。

原來掃風很重要的,打嗝有助防止窒息致死。

【明報專訊】
■半歲以下嬰兒未有能力轉身或坐起,每次飲奶後必須掃風
■半歲以上嬰兒如在飲奶後即睡覺,亦需要掃風
■盡量避免與成年人同床睡覺
■應仰睡,不應俯卧
■睡覺時不需要枕頭
■睡覺時不需要蓋太多被
資料來源:兒科專科醫生謝鴻興

Friday 11 December 2009

More Mac mini Server

更多關於使用 Mac mini with Snow Leopard Server 的 post:

How to install Mac OS Server as RAID-1 on Mac mini:
http://discussions.apple.com/thread.jspa?threadID=2213470&tstart=30
Out of the box the mini comes without Raid. You have two identical HDs of 500Gb.

I have just set it up as Raid1. You can't do this when you use the startup disk from the mini. And as you don't have a Superdrive ... you need to be creative. You need another Mac with Firewire.

Step 1: Start the Mini in Target Mode. Press the T during start. In a few seconds the firewire logo will appear on your screen.
Step 2: Go to your second Mac. Connect the firewire cable between second Mac and Mini.
Step 3: On the second Mac start the disc utility. The two identical drives on your mini will show. Create a new Raid set (mirrored = Raid 1). Include both drives. Confirm the warning that all data on the mini will be lost.
Step 4: Make sure your second Mac has CD/ DVD sharing option installed. This is tou use the superdrive to install OS X Server on the mini.
Step 5: Shutdown both Macs
Step 6: Start your second Mac in target mode. Make sure the firewire cable is still connected.
Step 7: Start the Mini with the option key pressed.
Step 8: Insert the OS X Server install disc in your second Mac.
Step 9: wait till the drive logo apears om the Mini. Continue the install. Will take about an hour.


How to enable RAID 1 without reinstall or using the DVD at all:
http://forums.macrumors.com/showthread.php?t=809077

... I did have a spare USB hard drive... I used SuperDuper (great app, used it, and paid for the registered version! to clone the Server HD to the external USB.

My external drive is 300GB, ... it doesn't have to be identical to the internal 500GB drive(s), ... you might even be able to do this with an 8 or 16GB USB drive...

So, using SuperDuper, I cloned the disk AND MADE THE EXTERNAL DRIVE BOOTABLE ('Set as Startup Disk'). Booted from the external drive, then used Disk Utility (RAID Utility is in the Operating System / Applications folder but does NOT work) to turn the internal disks (Server HD and Macintosh HD) into a new RAID Mirrored Pair. Note that this wipes the original drives.

Then, I used SuperDuper again, to clone my EXTERNAL USB DRIVE back onto the new RAID Mirrored Pair. I made the RAID pair bootable ('Set as startup disk') ...

... back into SuperDuper [and]... used the SmartUpdate feature (which requires a paid/registered version of SuperDuper).

That did the trick. Upon reboot, I am running off the internal, RAID Mirrored drives (I'm typing this from the Mac Mini Server), plus I have a bonus backup on my external USB drive!


Set up CVS on Mac OS X:
http://developer.apple.com/internet/opensource/cvsoverview.html
http://www.novajo.ca/cvs.html

為何當初不買Mac

公司要「企業化」,就需要一台「Server」來做 CVS 等服務(其實又只是做數據備份用途),上頭明明是好Mac之人,平日高呼討厭 Windows 之聲比在下更甚,卻無啦啦買了一台 Dell T100。據說這一台 T100 約六千餘元,所以我上了 Dell 網站,看看一台 PowerEdge(TM) T100 賣多少錢、什麼性能:


Dell PowerEdge(TM) T100
CPU: Intel® Pentium® Dual Core E5400, 2.7GHz/3MB, 1066MHz FSB
OS : None
RAM: 2GB DDR-2 800MHz
DVD: DVD writer
HDD: RAID-1 SATA-II x2
跑 RAID-1 750GB 就要 HK$7027,跑 250GB 就 HK$5509,公司買的應該是 500GB,所以介乎這兩個價錢之間,吻合。

可是,買回來卻又安裝不了 Windows 2000 Pro,最後還得再花四千餘元買 Microsoft® Windows® Server 2008。安裝 2K8 個多小時(為什麼這麼「慢」?),最後說沒有 4GB RAM 安裝失敗,真是O晒咀、無言!

一台 Mac mini with Snow Leopard Server明明就比這樣更明智,又安全,Mac OS X可是 Unix 底,比任何 Windows OS 更安全(它不是100%安全但至少比 Windows 好十倍)。


CPU: Intel® Core 2 Duo 2.53GHz/3MB, 1066MHz FSB
OS : Mac OS X 10.6 Snow Leopard Server
RAM: 4GB DDR-3 1066MHz (2GB x 2)
DVD: none
HDD: Dual 500GB SATA
HKD 7988

性價比、安全性、穩定性、重量、體積等等,Mac mini with Snow Leopard Server 都比選 Dell 好,看看 Snow Leopard Server 可以為你做什麼?iCal Server 2 WOW! Wiki Server 2 WOW! Address Book Server WOW Mobile Access Server WOW!

我知道可以在 Windows 上裝返相同的東西,但如果系統本身已經自帶這些,不是更好嗎?而且,更平宜呢。


本週金句:「上頭買Dell不買Mac,送到公司無OS,裝個視窗多麻煩,為何當初不買Mac。」

Friday 4 December 2009

小二數學題

小金字塔頂著大倒金字塔情況又再惡化,尤其是當大倒金字搭被冠上「跑數」壓力之後。

作為「出奇蛋」隊長,唔想成為「祭旗蛋」,就要滿足晒三方願望……痴心妄想。

從禮拜一早上十時到翌日晚上十一時,在卅七八小時裡,我完成了三個應用和一個庫(library)。其實大家都只是想賺多點,可唔可以先動腦筋,解答我這個小二數學題呢?如果答不出,請大大聲講出「我乜乜乜,真係咋過D細路哥」。

小二數學題:
煮一碟牛河十分鐘賣卅蚊,
篤一串魚蛋半分鐘賣五蚊。
假如一日工作做足九小時,
起勢係咁煮又或者係咁篤,
每十分鐘就賣出一碟牛河,
每半分鐘就賣出一串魚蛋,
請問你會選擇賣邊樣野呢?

我宜家開始明白點多我既童年要讀咁多無厘啦更的書和考試。