遠端登入 Mac

最近有機會用到第二台 Mac,為了不想要一直在兩組鍵盤滑鼠間切換,上網找了一下怎麼遠端登入另一台Mac操作。 其實方法很簡單,只要進入系統偏好設定的共享,打開螢幕共享。 ...

May 11, 2017

http 2.0

有看到同事接下來可能要報告 http 2.0 。趁著過年有空,在 safarionline 上找了一下相關書籍的章節來看。有一本書 http://shop.oreilly.com/product/0636920028048.do 雖然出版年代有點久了 (三年前),但算是寫得最詳細的吧。

February 14, 2016

AutoScreenOnOff 再升級

(Dansui.Taiwan) 前幾天花了半天加入 app 黑名單的功能後,評價還不錯,至少止血了。今天趁著明天颱風要來早點回家,花了一個多小時,把一個單純的 screen off widget 給加了進去。 花的時間比預料的快很多,因為本來在 notification 的互動中就已經有這個 intent 和處理邏輯在了,今天只是照著原本的 widget 再生一個出來,然後設定個 pendingIntent 給它,就收工了。 ...

July 22, 2014

雜七雜八

(Tainan.Taiwan) 昨天應該要先參加coscup的,因為昨天的議程好像都比較技術性和有趣。 起床時已經晚了一點,又沒有車,就懶得出門了。 早上在家先把autoscreenonoff的app黑名單完成, 看似簡單的功能,卻還是花了我一整個上午。 ...

July 20, 2014

Sqlite Commands in Terminal

(Shimen.Taiwan) Recently, I need to use sqlite commands to check data for my android app. Thanks to the rooted android ROM, the shell environment is much useful than before. It’s possible to use Tab key to auto complete filenames and directories, and I can use sqlite3 command directly in adb shell. It saved time from pulling the database file out back and forth. However, it’s been quite a while that I almost forgot how to deal with a sqlite database. The following link is a handy Url to help me on this: ...

May 24, 2014

光華-蘋果3C電池專家 換 Macbook Pro 2011 電池的經驗

(Taidong.Taiwan) 終於受不了 MacBook Pro 沒有電池的情況下的龜速運轉,帶著電腦直奔光華商場。 沒想到,就是這個沒想到, 老闆之花了15分鐘不到就幫我把電池換好了。 而且在換電池的過程中,不斷地在跟我說電池要怎麼保養, 平常電腦要怎麼使用會比較好。 所以在我還沒站到腳酸時,電池就已經換好了, 老闆還順便用吸塵器清了風扇,用洗潔精擦了擦 MBP 的外觀和螢幕。 ...

May 10, 2014

Amazing tutorial about setting up git server on QNAP server

Wow, with this article’s help, I set up git server on home NAS server. Now, time to do some work. http://wiki.qnap.com/wiki/Gitosis

December 13, 2013

showing relative line number in vim

Being a long time vim user, this is the first time that I heard vim supports relative line numbers, by which users can jump around the editor screen even more quickly. Just type :set rnu will do the trick. Another good plugin that can improve navigation speed is EasyMotion. It works a bit like the “f” feature in vimperator for firefox. Too bad that it’s not avaible for intellij’s ideavim.

June 17, 2013

How to push codes to Heroku from China

(Taipei.Taiwan) Miss my One V. **** Seems the IPs of Heroku are blocked, so “git push heroku” can not work normally. In order to fix this problem, add following lines to the .ssh/config file: Oh, by the way, remember to change the user name to your own one. REF: Check this link

June 17, 2013

Adding macros in Android Studio (Intellij) -- take Adding Javadoc comment for example

(Geneve.Swiss) Climbing is pleasant, but it leads you to better views. Some shortcuts can be integrated into ideaVIM, but some are more complicated and need other tricks to make it more handy. One of the technique is to use macros. As Mac’s Automator, you can ask Intellij or Android Studio to record your actions, and make it available as a keyboard shortcut. For example, if you want to add javadoc comment to a funtion, you need to move to the first line of a certain function, and type in /**. After pressing Enter, it will generate javadoc template for that specific function. Though it’s already very convenient, it still takes time if you’re not quite familiar with how to move the cursor to the first line of the function. ...

June 7, 2013