-
Recent Posts
-

Recent Tweets
Follow @jonathansampsonRecent Comments
- Rakesh Juyal on Crushing Code and Shaving Chars
- Jonathan Sampson on Crushing Code and Shaving Chars
- Eli Perelman on Crushing Code and Shaving Chars
- Jonathan Sampson on “Windows 8 is too hard to turn off”
- Zimzat on “Windows 8 is too hard to turn off”
Archives
- April 2012 (3)
- March 2012 (1)
- February 2012 (1)
- October 2011 (1)
- June 2011 (2)
- May 2011 (1)
- January 2011 (6)
Tags
appendChild Autoload Bug business CodeIgniter Connection container_class CSS custom Database DOMDocument DOMElement DOMNode Error filters htaccess images interview JavaScript jeff atwood jQuery kohana menus menu_class mvc MySQL operators php posts prependChild Review stackoverflow styling ternary usability Version views wamp webdev windows Windows 8 Windows8 WordPress wp_nav_menu wp_page_menu
Author Archives: Jonathan Sampson
Jeff Atwood on The Pipeline
Like many people, I listen to podcasts most of the time I’m writing code. Unfortunately, most of these podcasts don’t have large financial backing and so at times they will dwindle up and die whilst others are sprouting up to … Continue reading
Finding and Linking to Adjacent Posts with Same Custom Key/Value Pair in WordPress
Today I continued working on merging multiple custom post types back into regular posts, and differentiated them with a custom key/value pair. Some of these old post types would link to their adjacent siblings – videos to previous and next … Continue reading
A Shorter Ternary Operator in PHP 5.3
The ternary operator is simply awesome. It allows for some really beautiful if-else style variable assignments: $can_drink = ( $age <= 21 ) ? true : false ; This operator let’s you evaluate a condition, and return one of two … Continue reading
Quickly Adding Thumbnails to WordPress Archives
Post thumbnails make archives look much more attractive in my personal opinion, yet they are not natively displayed in the otherwise-beautiful theme shipped with the latest version of WordPress, Twenty Ten. As is the case with most WordPress stuff, this … Continue reading
Install and Setup of Kohana 3, The
Kohana is the wildly popular PHP Framework used by many developers all over. I’ve used it numerous times in the past on some rather different projects and found it to be pretty versatile and reliable over-all. One of my largest … Continue reading