Reason Why Your replaceAll() Regex Method Inside A Loop is Not Working

Actually this is very basic, but when you forgot this kinda stuff, you will end up looking for pile of codes to find a tiny little bug.

The scenario is like this, you want to parse some text, and replace it with regex rule inside a loop.
For example you want to parse URL with template like:{{page}}



Updating Toad to Version 1.2.0 on Mac OS Yosemite

Before you upgrade from Toad 1.0 to 1.2.0, please make sure you delete this folder first:

cd ~/Library/Containers/
rm -fR

Then install Toad 1.2.0 from App Store.
This will reset all existing connection, and you have to redo all the connection settings.



Port Forwarding in Mac OS Yosemite

When upgrading to Yosemite (Mac OSX 10.10), be aware that port forwarding using ipfw is no longer supported.
But we can overcome this issue using pf

For example when using Eclipse Tomcat as development server, you may want to forward all the port from 80 to 8080 and 443 to 8443, here's the step:


I found MAGIC!

It was a rainy monday night and i was hangin out with some colleagues enjoying hot chocolate and coffee while suddenly the coffeeship played a reggae music that was quite fresh for my ears. I asked everyone on the table if they recognize the singer, but no one knows. So i listen carefully to the song and google it with small portion of the lyrics (whatever i can capture by my ear). — Note: I tried soundhound before but it didn't work well.


Port Forwarding in Mac OSX Mavericks (Port 80 to 8080 and 443 to 8443)

Some issues when setting up Tomcat server (using SSL) in Eclipse - Mac OS environment is that, Mac limit the port usage permission below 1000 to only root. So Eclipse won't be able to run the tomcat server at port 80 or 443.
This issue can be solved by setting up port forwarding in your Mac OS. Let's open terminal and type something cool.


Last Week In

Yes, this is my last week in After 4 years and 8 month serving as Senior Web Developer, I finally made my decision, I have to move my ass up to the next level. Satisfying my appetite of learning new things, building new products, and researching new technology.