Isn’t McDonalds delicious?
Blog
-
McDonalds is delicious!
-
Run a job every first Sun of a month
I came across an interesting cron issue recently. The requirement was to run a job every _first_ Sunday at 12:00PM of each month.
After searching across various sites, skimming through cron manpages, I finally found the following one-liner
0 0 1-7 * 0 <user> <job>
Can you believe this simple solution? The reasoning is that Sun will be between 1 to 7th of each month. Once a Sun comes, the job will execute between 1st and 7th just once. After that any further Sundays will have a date greater than 7, and thus never execute!
Sometimes, the simplest solution is the most elegant. BTW, I had read about many other complicated solutions, such as having your own logic to determine the day, apple script, bash script solutions. I was about to give up, when I hit the jackpot! 😀
-
Pickup problem
Who needs a pickup now?
-
Challenging Relativity
This sure is mind boggling if you look each detail separately
Original work can be seen on
http://www.andrewlipson.com/escher/relativity.html -
Stunning Acrobats
Awesome acrobats… impressive!
-
Undressing?
WHOOOPS! What did happen?
-
Pretty Woman… (in Japanese)
Simply awesome, isn’t it?
-
Amazing Robofrog
Can you believe this?
-
PHP code obfuscation possible?
Today at my project, I was faced with a simple question from the client – How do you ensure that your PHP code is not tampered?
Honestly, I had no answer. 🙁
The only ray of hope I thought was – Since PHP is interpreted, is there some compressing, or obfuscating tool out there that can help me?
One possible solution I came across was encrypting your logic entirely so as unreadable to humans
http://www.abhishektripathi.com/encrypting-footer-links-free-theme-developers-take-notice/
Is this failsafe? Can it be still reverse engineered, and original source obtained to defeat the original purpose of protecting your code?
Anyone to help out there?