Segovia 與 Toledo 都是左 Madrid 附近,係馬德里住了一晚後,我們第二天就去 Segovia 一日遊。
Segovia
簡介
一個歷史悠久的古城鎮,處於海拔1000m。經歷過羅馬人、西哥德人與摩羅人的統治,到後來成為卡斯提爾王國首都,使到市內有很多珍貴的歷史建築,整個舊市區都被列為世界遺產。西班牙必到景點之一。
Continue reading Spain Journey Review – Segovia
Segovia 與 Toledo 都是左 Madrid 附近,係馬德里住了一晚後,我們第二天就去 Segovia 一日遊。
Segovia
簡介
一個歷史悠久的古城鎮,處於海拔1000m。經歷過羅馬人、西哥德人與摩羅人的統治,到後來成為卡斯提爾王國首都,使到市內有很多珍貴的歷史建築,整個舊市區都被列為世界遺產。西班牙必到景點之一。
Continue reading Spain Journey Review – Segovia
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 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
In the housekeeping shell script, i would update some files. The following example will try to update the /tmp/test file and display the result.
Continue reading Shell Script – Check if a file is updated
Except checking whether the folder is empty or not, i would also like to know whether the *.log files are removed. Here is another example.
Continue reading Shell Script – Check the existence of files which have common file name
終於有時間總結西班牙之旅 =)
轉眼間已經返回香港超過一星期,最近都忙著上載相片和完成銀禧舊生會的網頁今晚終於有時間寫西班牙之旅。
Madrid
簡介
西班牙的首都,位於中部高地,勁熱勁乾。特別景點不多,而且大部份都要收錢,基本上兩天絕對足夠。
Continue reading Spain Journey Review – Madrid
I am working on a housekeeping shell script to delete old files and update some files. I want to know whether the .sh is completed without problem. So i made a checking part in the shell script.
Continue reading Shell Script – Check Empty Folder
Usually, we have to manipulate the file time attributes in the shell script in order to complete the task. Just like the example at Shell Script – Delete Old Files
Continue reading Shell Script – stat
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
OS: Ubuntu 8.04
PostgreSQL: 8.3
By default, PostgreSQL database connection only listens to localhost. If you want to connect to a PostgreSQL database with another machine, 2 files needs to be modified.
Continue reading PostgreSQL – Allow Database Connection From Remote Machine