Pages

2012年1月4日 星期三

[Mac App] Safari 快速鍵

開始使用Mac之後,不太愛用Safari,原因很多就不一一說明了,但為什麼要寫這篇文章呢?因為他有一個功能我超愛!覺得Apple實在很偏心,只有為Safari內建了這個功能:在touch pad上跟ipad一樣,看網頁覺得自太小時,可以兩隻手指輕鬆的縮放~順暢度驚人到一個地步,我決定好好研究Safari奇特的功能,記錄如下:


快速切換分頁
  • command」+「shift」+「[
  • command」+「shift」+「]
  • control」+「tab
快速跳到搜尋列
  • command」+「option」+「F
背景新分頁搜尋
  • 輸入完關鍵字按下「command」+「enter
查看下載清單
  • command」+「option」+「L
直接下載連結
  • option」+ 點擊連結
查看網路活動
  • command」+「option」+「A

2011年12月14日 星期三

[Mac App] TextMate for PHP Development

"TextMate — The Missing Editor for Mac OS X". TextMate的好用與強大就不用多解釋了,但對於才剛剛轉換到Mac上的我,還處於摸索的階段。TextMate有提供一個30天的試用版,決定好好花一番功夫研究,再來花錢買。首先,就是了解對於各種bundle的支援性,以php為例,開發php時使用TextMate有幾項的技巧,記錄在下方:

  • [*註] Esc - hitting escape after you typed couple of letters  will do code completion from the symbols defined in current editing file. Will work as well for native PHP functions. Just start typing mk and hit escape then and it will complete it as mktime :)
  • Alt + Esc - this will give you list of possible completions. After selecting one of them, you’ll get full function signature injected in the document.
  • Ctrl + H - will give you PHP documentation related to the selected word in your current editing document.
  • Ctrl + Shift + V - will check your file for syntax validity.
  • Shift + Cmd + D - will jump to file that is included in the current PHP file.
  • doc -> Tab - if you type word doc above class/method/function and hit Tab after it, you will get documentation block for the related entity.
  • Cmd + Shift + R - will run your file with current system PHP executable. This is very nice when you just test something and want to see the output, but don’t want to get out to shell and command line.
  • Alt + F1 - documentation about function signature in the form of tooltip. If you forgot weather $haystack or $needle goes first as the param in the array function this is easy way not to search through extensive documentation.
  • Shift + Ctrl + T - if you like to place lot of TODO, FIXME or CHANGED meta information in your comments for later addressing, this will help you find them quickly and navigate through them easily.
這些功能與快捷鍵熟悉之後,發現真的非常好用!難怪有人問說在Mac上面開發需要用什麼IDE時,強者都回應:You don't need a IDE on Mac, you only need a good editor, like TextMate. XD

(註:來源出處 http://ivanjovanovic.com/2010/12/29/textmate-for-php-development/)

2011年12月12日 星期一

2011年2月1日 星期二

[Life] Speed Test

從Roga那邊看來的SpeedTest,連過去直接點下Begin test,就可以看到自家網路的速度了。測試了一家我們家的網路,結果還算滿意。

2010年7月8日 星期四

[Life] 閱讀與執筆的喜悅

好久沒有為自己寫字了。我似乎已經忘記了執筆的喜悅...

無意間在噗浪上看到會所某位弟兄的部落格,原本以為只是另一個超連結,點進去後,想不到盡是滿滿對於兒子的思念與生命的省思。我一篇一篇的點閱下來,發現驅使我不停想要點下去的動力,並非好奇心,而是深處那股閱讀的喜悅。不單是閱讀那些耐人尋味的文字,更是閱讀了一個人,沒錯,就是那股「閱讀人」、「閱讀生命」的喜悅...

老實說,我非常喜歡隱藏自己,講白了,可以說是喜歡把自己弄得有些神秘。第一次發現這樣的個性,是高中時某次在外面用餐,便當店的牆上貼著十二星座的個性分析,查了一下我的星座,頭一句話就是"搞神祕"-我一點也不否認。

我並非頭一次寫部落格,但從前那些我堅守的原則,卻也開始慢慢改變。堅守甚麼?堅守不在部落格上寫下自己的心情,堅守不寫太多關於自己的事。大部分我寫的文章,都是些開箱文、技術分享、文章轉錄...仔細想想,似乎沒有一篇是把當下深處的悸動與心情記錄下來的文章。為什麼呢?對我而言,那些深深打動我內心的,是屬於我自己的,我只想自己珍藏,一點也不想與人分享。然而今天開始,我突然想寫了...我突然想記錄了...我突然,想執筆了!

I just want to share...that's all.