Archive

Author Archive

Modifying Wordpress Comment page for informing commenter

Mar 10th, 2010

When a commenter comment on a post then you may be queuing it for approval before it can appear on your Wordpress blog. In that case, commenter is not getting any feedback about when you are going to approve it, how much time it may take etc. For full time blogger, it is not a [...]

Web Browser Usage Comparison – Feb/March 2010

Mar 7th, 2010

Here are some stats about browser usages by visitors on my blog (Web Scripting). Data and graph presents are from my cPanel application Awstats and Google Analytics.
Here is a Browser Usage stats from March 1 to 6. Data taken from Google Analytics.
As visible from the statistics, techie has accepted Chrome and Chrome stands at 12.5 [...]

How to Control Display of Sidebar Content in Wordpress

Mar 6th, 2010

Want to control the display of contents on sidebar? Content can be any widget content or text/JavaScript content. Many times it may happen that you want to display some content on Home page but not on other pages. Or you may want to display a sidebar content on Achieve pages only. Or you may want [...]

Wordpress Sidebar Widgets – Sidebar Tabs

Mar 6th, 2010

Here is my experience with Tabbed Widgets for Wordpress sidebar. I want to save space on sidebar of my Wordpress blog, so searching for a good sidebar tab widget.
Wordpress Widgets for Sidebar tabs:
Fun with tabs:
Breaking with my Wordpress version (2.9.1) or theme (Which has created trouble).
Going into infinite loop and eat all my memory when [...]

Wordpress and Content Delivery Network

Mar 6th, 2010

Wordpress has a nice feature of moving Wp-Content folder to a different place. This can be helpful for Content Delivery Network management. Wp-Content directory include all theme files, plugins and any uploads you have.
We can use Content Delivery Network to parallelize the connection in Browser and distribute the loads on server.
Head to wp-config.php file in [...]

Writing Clean and Maintainable Code

Mar 1st, 2010

Just few quick and simple points for writing clean and maintainable code that come to my mind. There can be many points added to it but I thought to publish whatever is just coming into my mind. I will try to add more points for clean, maintainable code and coding standard latter.

Think about the context [...]

Wordpress: Add Random Content in Sidebar Widget

Feb 26th, 2010

Need to add random content is sidebar! Do you have two kind of contents and want to display randomly to visitors. This can also be useful when you have two content and both are equally important but sidebar space is not allowing to add both kind of content.
The technique and code provided will work [...]

Controlling JavaScript Execution Order

Feb 26th, 2010

Here is my experiment with delaying JavaScript execution order. I have tried various methods I can remember and all failed. So, I have written an efficient script (I think!) for delaying the execution of dependent JavaScript code.
I had three lines of code. First was External JavaScript file. Second was call to a function declared inside [...]

Handling File Read/write Concurrency Problem in PHP

Feb 23rd, 2010

Recently I need to use file for caching little bit of data. Then I thought of concurrency problem can arise in File based structure due to read/write issue. For small data and that also if  not so useful , usage of Database can be avoided. Though Database can handle any kind of conflict and other [...]

Bye Bye to Sitemeter Web Site Stat Analytics

Feb 21st, 2010

I just dropped using Sitemeter – a Web Site analytics. I was not enjoying it as much as Statcounter. I saw I am missing three few data or say data with ease of access:

Referrer other than Google/Search Engine: Statcounter has a column where you can see recent visitors from referring sites other than Search Engine [...]