All posts by ykyuen

Life is for fun~ =)

Spain Journey Review – Segovia

This slideshow requires JavaScript.

Segovia 與 Toledo 都是左 Madrid 附近,係馬德里住了一晚後,我們第二天就去 Segovia 一日遊。

Segovia
簡介
一個歷史悠久的古城鎮,處於海拔1000m。經歷過羅馬人、西哥德人與摩羅人的統治,到後來成為卡斯提爾王國首都,使到市內有很多珍貴的歷史建築,整個舊市區都被列為世界遺產。西班牙必到景點之一。
Continue reading Spain Journey Review – Segovia

CakePHP – Email Validation

After working for about one year, the BHJS Alumni website phase 2 is completed. But after it is deployed in production server, i found that some email addresses are regarded as invalid email address. The email validation rule which i used is provided by CakePHP. Only email addresses ended with .com, .org etc… could pass the validation rule.

So i ask the Google teacher and luckily i am not the only one to come across this problem.
Continue reading CakePHP – Email Validation

VM Player – Modify the DHCP subnet and NAT gateway IP

VM Player is much simpler compared with VM Server. If you just looking at the user interface of the VM Player, you find nothing about the VM Player configuration.

Most of the time the VM image are copied from computer to computer and the VM player will auto assign the DHCP subnet and the NAT gateway IP for the VM image. This may cause problems if you want to preserve the IP address of the VM image. so how can we change these network settings?
Continue reading VM Player – Modify the DHCP subnet and NAT gateway IP

Spain Journey Review – Madrid

This slideshow requires JavaScript.

終於有時間總結西班牙之旅 =)
轉眼間已經返回香港超過一星期,最近都忙著上載相片和完成銀禧舊生會的網頁今晚終於有時間寫西班牙之旅。

Madrid
簡介
西班牙的首都,位於中部高地,勁熱勁乾。特別景點不多,而且大部份都要收錢,基本上兩天絕對足夠。
Continue reading Spain Journey Review – Madrid

Shell Script – Delete Old Files

For housekeeping the backup files on a server, we can write a shell script to remove files which were created some days ago and scheduled it by cron job.

The following code is an example to remove backup files which were created 90 days ago. Please note that the target folder is just the same as the .sh file location and the .sh file is excluded in the command.
Continue reading Shell Script – Delete Old Files