Happy Android Development with Gradle

Recently I have been working a lot on migrating android projects to use gradle building system. Seriously it is much better than the old time. I can easily use libraries on maven repositories and customize my building process. I also no long need to create a desperate project for testing. Awesome!

Save Terminal from Process Completed in Mac OSX

What’s happening One day, when I opened up terminal as usual, it showed [Process completed] and just terminated. I could not type any thing, run any scripts and work on my project. Even worse, this made me unable to install programs into my computer because many installations need to run shell scripts. Okay, I searched…

Take a Screenshot on Samsung Galaxy S2 after the Upgrade to Ice Cream Sandwich

Thank you for checking out this tutorial. Reading the discussions in this post, seems like there is quite a number of people having troubles to take screenshots with Galaxy S2. To clear any confusions, I summarized some information and added as followings. Hope you could make it too. Fingers crossed. First, make sure your Galaxy…

Change author info for old commits in Git

While using hit, it is really usual to have regrets on the commits done, especially the name used. In order to change those information in your repository, open terminal (or cmd in windows), go to the folder of your git repositoy, and run the following commands. Remember, replace “old_name”, “new_name” and “new@email.address” with your own…

Mbox Mail for Mac on Lion Fix, works with Apple Mail 5

Step 1: Download my fix file here: Download Link (Link Updated) Step 2: Turn OFF Mbox Mail for Mac. (If you don’t have the menu bar icon, go to “System Preference”) Step 3: Open the downloaded file and drag “mBoxMail” to “mBoxMail Folder” Step 4: Turn ON Mbox Mail for Mac

How do I construct a website

To construct a website, from nothing to a pretty one, what is needed is not only technique, but also ideas. When I was young, I constructed my website with Microsoft Frontpage. Later, I uses Dreamwaver to handle coding, programming web functions with PHP and javascript. Now, I even start using templates such as the Grid…

網站的製作流程

將一個網頁從零開始,製作成一個美觀,有實際用途的網站,要的不只是時間,精力,還要靈感。從少時候用MICROSOFT FRONTPAGE,到現在只用DREAMWAVER打HTML,甚至用TEMPLATES例如GRID SYSTEM去加快製作流程,現在大多時間都不再是花在TECHNIQUE上,而是DESIGN上。近來我正替人做一個蛋糕網,我專登留了一些截圖,看看製作網頁的變化(其實都只是一天的時間LOL)。好了,中文不好,打字又慢,不打了,要看就看英文版吧XD。謝! ↓ ↓

Reading configuration file in Java

In order to make a program more flexible, it is normal to create an external file to store all the setting. For example, resolution setting of a game is saved in “config.ini” or “settings.prop” so that we can easily modify a program without recompile it. Here I would show you how to do it. First, we…

Get temporary folder path in VBA

It is normal to create temporary files and folders to facilitate the process in programs. Apart from doing it in your working directory, why don’t we make use of the default temporary folder built in the Windows system? In the Windows working system, we know that the temporary folder can be opened by typing “%temp%” in “run” on the…