[plan] swim 金山鄉,磺港 –> 燭台雙嶼 –>水尾港 2K

2011/6/4 完成 swim 金山鄉,磺港–>燭台雙嶼–>水尾港 2.6K   去年(2010)的 plan明天就要執行了, 請前 PChome同事- 樂活玩家 Billy 幫忙在一旁划獨木舟戒護, 我則是帶著魚雷浮標執行我的計畫, Billy 很專業研究了海流方向: 2011.0602 data: 00:10向東 06:30向西 11:20向東 17:00向西 所以預計明天6/4(六) 11點到達金山磺港旁的沙灘, 再觀察一下海流, plan A: 若照預測是向東的海流的話, 游泳路徑就是磺港旁的沙灘 –>燭台–>水尾港, 這樣預計是 2公里, 那大概是 43分可完成. Billy 等我上岸後划回沙灘, 再開車過來載我. plan B: 預計是 磺港<–>燭台 來回約 2.8K, 大概58分可完成.     Google Map : http://goo.gl/maps/MIaC 這是上次拍的: https://www.monster.com.tw/archives/2745 彭佳嶼過去3日逐時資料 日期 時間 … Read more

Amazon AWS EC2 service / cloud / 雲端

Dear EC2 Customer,
You recently reached a limit on the volume of email you were able to send out of SMTP port 25 on your instance:

Instance ID: i-9b8924ce
* IP Address:
* Start date: 2011-06-01 22:47 +0000

In order to maintain the quality of EC2 addresses for sending email, we enforce default limits on the amount of email that can be sent from EC2 accounts. If you wish to send larger amounts of email from EC2, you can apply to have these limits removed from your account by filling out our online request form.

If you are unaware of your instance having sent emails, we advise checking your instance application(s) to confirm that this activity was intended. It is your responsibility to ensure that your instances and all applications are secured against unauthorized use. For suggestions on securing your instances, visit aws.amazon.com/security.

Your Amazon Web Services EC2 team


amzn-ami-2011.02.1.x86_64-ebs (ami-6ef08e3c)
Description: Amazon Linux AMI x86_64 EBS
Status: available
Platform: Amazon Linux
Image size: 8 GB
Visibility: Public
Owner: amazon (137112412989)

processor    : 0
vendor_id    : GenuineIntel
cpu family    : 6
model        : 23
model name    : Intel(R) Xeon(R) CPU           E5430  @ 2.66GHz
stepping    : 10
cpu MHz        : 2666.760
cache size    : 6144 KB
fpu        : yes
fpu_exception    : yes
cpuid level    : 13
wp        : yes
flags        : fpu tsc msr pae cx8 cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht pbe syscall nx lm constant_tsc up arch_perfmon pebs bts rep_good aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 lahf_lm tpr_shadow vnmi flexpriority
bogomips    : 5333.52
clflush size    : 64
cache_alignment    : 64
address sizes    : 38 bits physical, 48 bits virtual
power management:

Install MySQL

# yum install mysql mysql-server mysql-libs

Start the service and configure it to start automatically at boot time

# /sbin/service mysqld start

# chkconfig –levels 235 mysqld on

# yum install httpd php php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc
# /etc/init.d/httpd restart
# chkconfig –levels 235 httpd on


/etc/ssh/sshd_config and set “PasswordAuthentication” to YES


Amazon Linux AMI : http://aws.amazon.com/amazon-linux-ami/



Amazon Machine Images = AMI



Depending on your distribution, you can likely install everything you need via yum or apt-get; Apache Friends XAMPP, BitNami LAMPStack, BitNami LAPPStack


Amazon EC2 AMIs

BitNami LAMPStack



參考設定: ADSL / DDWRT 動態 IP 用 DynDNS 設定 DNS 及 Google Apps


/home/ec2-user/inadyn/bin/linux/inadyn –username userid –password userpassword –alias demo.monster.tw &


amazon linux AMI : install LAMP command :

yum install httpd php php-mysql php-gd  php-pear php-xml php-xmlrpc





2010. Nov 26, : 原來這就是 Amazon Elastic Compute Cloud (Amazon EC2) 呀…..


URL : Amazon 送的網站 http://amazon.monster.tw/ , 申請很簡單, 一下子就有 free 的 VM 可用囉.

Read more

[iPhone dev] 今天看到一個精巧的設計 / tableview / iPhone design pattern

首先, 可以這樣定義 ,  定義出有 3 個 section , 在那個 enum Sections array 中, 第一個 item 就讓它的 value = 0 , 那麼最後一個item : NUM_SECTIONS 的 value自然就是這個 array 的 item 數, 就這樣精簡漂亮!!讚嘆! code 寫這樣就非常清楚易懂, 也好 maintain. 再依此定義出 每個 section 的 rows ….. —- 在 numberOfRowsInSection 中, 直接來個 switch(section) 用 case name 的方式 ,直接 return 該 section 有多少 … Read more