Archive for the ‘Programming’ Category
Posted on August 18, 2010 - by webmaster
PHP Newbie: Proper handling of Error & Exception in PHP
Got a question from a friend today who is actually a great desktop programmer and just learn PHP since he believe that the future is in the web (hope you’re right dude). He asked me about how to handling error in PHP. Well i’ll write my answer here so can share with others and got feedback when I was wrong.
In PHP there are few options that you can use to handle errors & exceptions during script executions and as developer you must considering not the easiet but the most flexible approach which will help you when debugging your appllication, the more detail error message provided the faster you can fix it. Flexible means its easy for you to change the application behaviour when unexpected things happened during execution like: display error, logging error or even automatically notice you via email.
Posted on June 27, 2010 - by webmaster
Install, Configure & Running Memcache in Windows as Service
Installing memcache server in windows is a little bit complicated compared to how it can be done in *nix since theres not yet available ready to use package for win32.
Luckily i found the compiled memcached for win32 (exe) which was made by jellycan, within this exe file you can install configure and running memcached as a service in your windows environment, here are how i made it:
*** updated ****
Newer version available at northscale, thanks to Matt Ingenthron for pointing this.
Posted on June 14, 2010 - by webmaster
DynamicWP Image Cube Wordpress Plugin
DinamicWP Image Cube is a free plugins for wordpress which will turn your selected images into a 3D image cube slideshow. This plugin will randomly show your image with beautiful fadein/fadeout 3D cube effects.
Released under GPL License means you can use it for all your project or at least use it as a foundation for your next projects for free and without any restrictions.
Posted on June 12, 2010 - by webmaster
New Wordpress 3.0 API menu_page_url
Peter Westwood one of the lead developers of wordpress has introduced a new API method in wordpress 3.0 api which will help the plugin developers easily get the url of the plugin page.
Example of implementation:
add_options_page('Best Evar Menu', 'Best Evar Menu', 'manage_options', 'best_evar_menu', 'best_evar_options_page');
menu_page_url( 'best_evar_menu' );
The function will by default echo the url out but if you want you can get it returned for processing by setting the second argument to false.
Reference: WP Track #13829
Posted on June 11, 2010 - by webmaster
Wordpress 3.0 Custom Taxonomy
Justin Tadlock has written a new article about new wordpress 3.0 custom taxonomy features as and update to his old article about how to create & implement custom taxonomy in wordpress (wordpress 2.8).
As usual he wrote it in detail with deep explanation about the taxonomy object and API function including the parameters, so if you want to dive more into new wordpress 3.0 capability esp. about new custom taxonomy features this article is “a must read” also good start if you jump from his old article which includes the real example in using wordpress custom taxonomy, in which will help you to easily understanding the new custom taxonomy how to’s
Posted on June 6, 2010 - by webmaster
JQuery DataGrid Plugin Compass
Compass DataGrid is yet another DataGrid plugin for jQuery with ajax-driven data support, it takes empty table and manipulate it based on JSON encoded data returned by the server side code.
JQuery Compass DataGrid has support for pagination and show/hide column also has many presentation options like: row hover styling, sorting, stripping, resizable, parameter filter etc.
Download & Demo could be found here
Posted on June 6, 2010 - by webmaster
Upgrading to upcoming CodeIgniter 2.0
phil sturgeon has published a new article in his blog about upgrading pyroCMS to the new upcoming codeigniter 2.0, worth to look at to help you port your CI based application to run with CodeIgniter 2.0 with less headbanging. I seen big changes has been made to this new version includes:
(more…)
Posted on May 7, 2010 - by webmaster
WordPress 3.0 Theme Development: The Comment Form
Otto at ottopress has written a great article about the new handy & standarized tags in wordpress 3.0 to display comment form. Replacing the old messy comment template with versatile costumizable wordpress template tag. go check out the article for detail
Posted on September 24, 2009 - by webmaster
PHP Class Create Short URL via TinyURL, Is.gd, Hex.io, Tr.im & Bit.ly API
Short URL is commonly used today for several reasons: avoid url garbling, take smallest space especially for long url which need to be posted at limited space format eg: twitter, also often used to manipulate user for specific purposes eg: hiding orginal url for phising and ads/affiliation links.
There are many websites that provide shortening url services, tinyurl, bit.ly, hex.io are some of them, below is simple PHP script as an implementation to use their API, create short url on the fly, currently support: tinyURL, bit.ly, is.gd, tr.im and hex.io, but you can easily add other providers.
Posted on September 12, 2009 - by ruby
How to embed plurk status in wordpress blog
I had signup with plurk a year ago but haven’t “plurking” since i use twitter a lot, and for me both of them were created for same purpose, microblogging, sharing what you’re up to in few sentences and follow what your friends up to. Today i had re-theming my personal blog and use free seven five wordpress theme by press75 which is very simple and already integrated with twitter status, delicious bookmarks, and external RSS feed, then i thinks its good to add plurk also.
Theres a wordpress plugin to achieve this purpose already, but here i only need to fetch status update, and dont need any widget or possibility to update my status from my blog, and here we go,

