iStock_000008128807Small

Find the User Agent Strings of any Mobile Devices

It’s quite often for a developer to make use of the user agent to determine what browser does a user used, especially for those who develop web services and websites. Recently I found a website which has a huge database of mobile device information, including the user agent string and even the functions supported in…

Merge 2 unrelated branches in Bazaar

To merge 2 entirely unrelated branches or projects, we need to specify 0 as first revision in revision range. Turn on terminal (in Mac) or cmd (in Windows) and get to your project folder. Merge with the following shell script. merge -r0..-1 means to merge from revision 0 to the latest revision. [sourcecode language=”shell”] bzr…

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…