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…

Ssh with password saved

Ssh is a very convenient way to remotely command or control other devices. We use ssh to push commits to git server, to access remote server, and even to manipulate the content of our iphones and ipads. However it’s usually distributing to type your long and elusive password every time. Therefore here I would like…

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…

Run shell commands in VBA

We can use shell to execute any programs. [sourcecode language=”vb”] shell("iexplorer") shell("cmd") [/sourcecode] Please be reminded that we may need to execute in an indirect way. [sourcecode language=”vb”] ‘cmd: execute CMD.exe (Windows Command Processor) ‘/c: with commands ‘dir: show all things in the default directory shell ("cmd /c dir") [/sourcecode] To make VBA wait until…