A way to make Thread Sleep in Apex

Sometimes we need make apex thread to sleep for a while, sush as testing if the soql with [For Update] works,and as we know the sfdc do not offer a method to sleep the thread. Then I thought it may work if I use the “while”, like the following code. Well, it looks not bad. […]

read more

Encrypte & Decrypte string in Node.js

I have tried to encrypte and decrypte string in Node.js recently. There has many code examples at Internet, eg: Reference:http://qiita.com/sckm/items/232914af2959eefe505e Run it in console commond but the following error has occurred. Ummm….,that is weird,may be ‘base64’ encoding will not working with ‘aes192’..? Anyway, the following code works fine for me. And the console log.

read more