Posts from July 2009
Packing and figuring out last minute details for trip to Yosemite and Half Dome this weekend. Excited!
WordPress hooks database
“his WordPress hooks database automatically scans each WP build for apply_filters() and do_action() to figure out exactly which hooks are available in each version and where the hooks occur.”
Getting pretty excited about the weekend. Heading to Yosemite tomorrow and hiking Half Dome on Saturday! http://bit.ly/3qCRxV
How To Create a WordPress Theme: The Ultimate WordPress Theme Tutorial
How To Create a WordPress Theme: The Ultimate WordPress Theme Tutorial
Detailed and pretty decent tutorial on how to build a WordPress theme from scratch.
iPhone was failing to connect to my Wifi at home. Managed to drain 60% of the battery in a few hours trying tho. Reboot required to fix.
Quick PHP Tip
If you’re coding in PHP and checking variables to see if they have a strlen() == 0, or isset() or a variety of other possibilities, you might consider using empty() instead. It’s quite versatile and is nice because it doesn’t trigger any warnings or notices if you use it on a variable which hasn’t been set yet. Here are some examples to show you what it will match against:
<?php $zero_string = '0'; $zero_int = 0; $false = false; $empty_string = ''; $array = array(); $obj = new stdClass(); echo empty( $zero_string ) ? "'0' = empty\n" : ''; echo empty( $zero_int ) ? "0 = empty\n" : ''; echo empty( $false ) ? "false = empty\n" : ''; echo empty( $empty_string ) ? "'' = empty\n" : ''; echo empty( $array ) ? "array() = empty\n" : ''; echo empty( $obj ) ? "stdClass() = empty\n" : ''; echo empty( $foo ) ? "foo is empty (and the variable was never set)\n" : '';
GPS Visualizer
“GPS Visualizer is a free, easy-to-use online utility that creates maps and profiles from GPS data (tracks and waypoints, including GPX files), street addresses, or simple coordinates. Use it to see where you’ve been, plan where you’re going, or visualize geographic data (business locations, scientific observations, events, customers, real estate, geotagged photos, etc.).”