I just knew this problem a month ago when one of my friend's website on my server being hacked and installed a background program. The background program generate huge and useless image and movie files at server. After hours of inspection at my server, I found the background progam ran under apche's process. The background program called "footer.gif". Smart huh? They name … [Read more...]
Simple programming trick
How do we swap values of two integer variables? Normally we will introduce a third variable as the temporay storage. For example in C/C++: int a = 123456; int b = 567890; int temp; temp = a; a = b; b = temp; Ok the question now is: How do we swap values of two integer variables without third variable? Here is the trick: int a = 123456; int b = … [Read more...]
Recent WordPress Posts in Sidebar
I had tried out the code Recent Wordpress Post in Sidebar suggested by EngLee. Although the code did shows the recent posts correctly but some functions (eg: is_page() and is_home() are not working properly when it is after the portion of the code. My guess is the wordpress loop in the code modified value of some global variables. I have a workaround for it. Before using the … [Read more...]
WordPress 2.0 upgraded successfully
Just upgraded this blog to Wordpress 2.0 few minutes ago withouth any problem. I have also developed a 3 column theme for it. It is now running on this blog.The theme still in testing phase. If everything is done, I will make it public :) Note: Plug-in that do not work with Wordpress 2.0 so far: Auto-TrackBack by Category I will try to make my Default Trackback works … [Read more...]
Blogtal.com Enhancement – Feed for Categories
Added feed for each category in www.blogtal.com For example: Technology: http://www.blogtal.com/categories/technology Feed for Technology http://www.blogtal.com/categories/technology/feed For a better performance purpose, all feed entries (up to 20 latest pings) are loaded from cache. Therefore there is no database query when the feed is loaded. Later, I might need … [Read more...]