While working on a web links directory i wanted to update categories table’s num_listings column with the count of listings under each category. The category id was stored something like this in listings table:
How to create a keyboard shortcut to open an application / program in Windows 7
Following step by step instructions to create a keyboard shortcut to a program in Windows 7.
Template drop down list missing in edit page in wordpress
Last night i installed a new theme to this blog of mine and after setting basic things up when i went to edit my archives page at admin end the Template drop-down in Page Attribute box was missing. Strange. I…
phpMyAdmin PHP Code Injection Exploit attempt on my server
This morning, when i checked my Give Back India site’s access log i found some scripts/setup.php request attempts. In fact, not ‘some’ but hundreds of them. All requests were made targeting phpMyAdmin’ installations on my server. Here are a few…
Converting a text string into comma separated words
Today, i was looking at some old code of mine to find something when i found this little but useful piece of code which i had written for one of my old projects (and of course when i didn’t had…
Changing “Remember Me” text string in user box in Joomla 1.5
I wanted to change “Remember Me” text in the user login box in Joomla 1.5 to just “Remember” so that it should fit with the login button to the right of it while keeping them in same row.
Krishna font text to UTF-8 (Web Content) Converter
I received news documents (.doc files) written in Krishna(Devanagari ) font from my state government’ press release department and i wanted them posted in one of my blog sites, as it is. I posted some of them as it is…
Cakephp important facts you must know – Part 3
You load a plugin model like this: $this->loadModel(“Forum.Topic”) You output requestAction result using $this->requestAction(array(‘controller’ => ‘articles’, ‘action’ => ‘featured’), array(‘return’)); // see array(‘return’)
Tips on fixing “IE8 Developer Tools not working” issue in Windows
If you discovered that the “Developer Tool” in your IE8 browser in Windows was not showing properly check this good question/answer i.e. http://stackoverflow.com/questions/1234163/ie-8-developer-tools-not-working-in-windows at stackoverflow.
A simple javascript image slide show using setTimeout and jQuery
Just now i created a small slideshow. The slideshow uses some static images stored in a javascript object (array) and runs till the last image in this array. For example, the array: