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…

Read more...

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…

Read more...

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…

Read more...