2015年7月11日 星期六

codecademy 免費線上學習程式網站( free online coding tutorials website)


codecademy 網址: http://www.codecademy.com/



  • 須先註冊後登入使用互動式課程 (Must to register first before logging in for interactive course)

       也可以用 FB ,Google+ 帳號登入 (You can also use FB, Google + account login)


  • 選擇自己喜歡的課程 (Choose your favorite courses)





  • 從最基礎介紹起,實作卡住時有提示來幫助你 ( Starting from the most basic introduction, there are hints to help when you get stuck implement )



  • 自動幫你記住學習進度,下次登入可繼續往下學習 ( Automatically help you remember learning progress, You can continue to learn in your next login )





        對初學者來說 ,是一個很好的練習寫程式的網站。以我來說,常有看完一本程式的書,面對鍵盤,不知從何打起的情況 。以邊學習邊輸入程式碼,同時除錯的方式,可以加深印象,達成不錯的效果。非常值得一試。

(For beginners, it is a good website of practicing programming . As for me, when finished reading a programming book, it's often still don't know how to start typing a word.Enter code while studying,debugging at the same time,it can make a deeper impression and reach good results. Well worth a try.)

2015年7月10日 星期五

Mysql 資料庫儲存引擎 MyISAM, InnoDB 的主要差別




  • MyISAM 無法使用 外來鍵(FOREIGN KEY), InnoDB 可以。


              兩個資料表以 外來鍵 產生關聯,保證數據的一致性和實現級聯操作。


  • MyISAM 無法使用 交易(TransactionInnoDB 可以。
              必須同時變動多個資料表時,使用 Transaction 可確保資料一致性。當整個交易完成 時才 Commit,有些資料未能更新時,可用 Rollback 回復。

2014年2月10日 星期一

如何申請Google Adsense

1. 搜尋關鍵字 adsense ,點選連結進入申請頁面。







2. 看過簡介後,點擊進入下一頁面。






 3. 選擇使用語言。







4. 輸入預計放入google廣告的網址 , 閱讀 adsense 的條款政策後進入下一步。







5. 提供收款人姓名 , 中譯英的拼法建議和護照的拼法一樣 , 或是參考信用卡的拼法。英文地址中 , 縣市為下拉選單 , 街道名稱須至中華郵政查詢英文寫法後輸入。






6. 完成提交後 , 即可靜候佳音。 據通過申請的朋友說法 , 約一星期左右會有消息 (聽說和申請網址的更新頻率有很大的關係)






2011年11月26日 星期六

Excel VBA


Sub StrToOption(Byval OptionName,Byval Field,Byval Value,Byval DefaultValue)
   '將文字字串變成下接式選單
   Response.write "<select size='1' name='" & OptionName & "' ID='" & OptionName & "'>"
   mField=split(Field,",")
   mValue=split(value,",")
   DefaultValue=DefaultValue & ""
   For i=0 to ubound(mField)
      if mValue(i)=DefaultValue then
         response.write "<option selected value=" & mValue(i) & ">" & mField(i) & "</option>"
      else
         response.write "<option value=" & mValue(i) & ">" & mField(i) & "</option>"
      end if
      Next
      Response.write "</select>"
End sub