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

Android Books

It’s good to be able to wander in Safari’s online shelves and pick up books that I am interested in. Though not having enough time coding, I still managed to quickly take glimpse over two Android books recently. One is 50 Android Hacks, and another one is Android Developer Tools Essential. Both are good to read and gave me some new nuance for my poor Android knowledge.

September 8, 2013

Google Reader is going into history today.

I’ve been using Google Reader for very very long time. It’s the most important news resource and knowledge source for me. Now it will be closed soon. Kind of sad that such a good service will no longer exist.

July 1, 2013

Get Rid of HTC Sync Manager autostart on Mac, and Android File Transfer Autostart

(Geneve.Swiss) Tired of seeing autostart finder popups every time I plugged in my new hTc one into my mac. Here’s a way to disable it: Identify UUID: by using “diskutil info /Volumes/HTC\ Sync\ Manager you can get its volume UUID sudo vifs add a line as below: UUID=YOURVOLUMEUUID none hfs rw,noauto = = = = = As for disabling Android File Transfer app, you just need to rename file names of the so called Agent app: ...

June 30, 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

在Lime HD中快速啟動語音輸入法

(富貴角.Taiwan) 剛剛試了一下谷歌的語音輸入,覺得有些時候應該蠻實用的。所以打算幫它在Lime HD中加個快速切換的功能。在Lime HD中原本就有開啟Google語音輸入法的方式,只是我覺得有點太麻煩了。原本的方式是: ...

June 9, 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

Some hacking articles about IdeaVIM under Intellij

(Leiden.Netherlands) IdeaVIM is a vim-like input plugin for intellij IDE, good for text editing but not so powerful if you want to use it for other IDE tasks, for example accessing menu actions by defining keyboard shortcuts. Fortunately, someone in Japan branched the source codes on GitHub, and wrote some tweaks to make it possible to configure all kinds of Intellij menu items to keyboard shortcuts as you wish in a config file. ...

June 6, 2013

How to make testing work under Android Studio

(Geneve.Swiss) It’s such a pain to look for solutions for tasks on Android Studio. When can it be mature enough and more well documented for developers? I would like to write some test cases for my small app, but I couldn’t find a way for adding test cases into Android Studio project and have it run successfully. After wandering around on the internet for a long time, eventually I found a link that did helped me out (see reference below). As Google I/O 2013 video said, a new android build system made of gradle is released, which will be more flexible, more powerful, more etc, etc. However, currently, it ’s not well integrated into Android Studio. Some modification in Android Studio won’t be directly reflected in gradle build scripts. Well… then, how do I know when I should modify build scripts my self? And to write it by myself, I have to learn groovy first, because that’s the language Gradle used to write its build configuration files. How could I master these things in a short time… ...

June 3, 2013