How do you choose records randomly from MySQL database. Normally we will select all the related data from database and then store it to a buffer array. From the array, we randomly choose the records that we want. … [Read more...]
Avoid additional Adsense impression from publisher
It is always a problem for Adsense publishers that always visit their own websites for testing purpose - Google Adsense will report additional Ad impression. The statistic at Google Adsense's report becomes inaccurate and might affect the overall earning especially when publisher does a lot of testing on his/her own sites. When impression is increased, page CTR (click through … [Read more...]
Running PHP Scripts with Cron
I used Cron to generate daily report (writen in PHP) of my website and send the report to my email inbox everyday automatically. Basically, Cron a utility in Unix/Linux that enables users to execute commands or scripts (groups of commands) automatically at a specified time/date. … [Read more...]
My Adsense Tracker
I have created an Adsense Tracker script to keep track adsense clicks on my websites. The scripts are pretty simple but can be expanded to generate a useful report. However, the scripts only work for ad unit and not ad link. … [Read more...]
Happy Birthday Java
Java Technology is celebrating its 10th birthday at JavaOne conference. You can read more about JavaOne conference here. … [Read more...]