Strange valid Java piece of code – No. 1
Have you seen any strange but valid Java code? Yes? No? This is one piece I've seen.
static int getVal() {
http://google.com
...
Query Database and Table Size in MySQL
A nice thing about MySQL is that it stores everything inside information_schema, and we can make use of it to calculate database size and...
Remote command execution via SSH using NodeJS
In this post, I'd like to share a small tip to develop a small utility to remote command execution via SSH using NodeJS.
I often...
Kill process in MySQL processlist
When you want to diagnose MySQL database, you might want to have a look at all current connection or processes show up on process...
Passing system properties to Jetty Maven runner
When using maven jetty runner plugin, you might want to pass some system properties for the apps like this:
$ mvn jetty:run -Dproperty=value
It can be...