Blog

  • Revelations about filter_input

    WordPress has the unfortunate legacy situation of having to force input variables to be “magic quoted”, something which has been deprecated in PHP for some time. So when you are working with data passed from the user, you have to run those input variables ($_GET, $_POST, $_REQUEST) through stripslashes(), which is really annoying. At least

    Read post

  • Config-Driven WordPress at PDXWP

    Tonight at the Portland WordPress User Group (PDXWP), I’m speaking on “Config-Driven WordPress”. See the proof of concept repo on GitHub, and here’s my presentation:

    Read post

  • List of Functions Removed from WordPress 3.6 RC2 since Beta 3 (and Added too)

    On an ongoing client project at X-Team, since the site was to launch in the summer we took the initiative to build a new site on WordPress 3.6 trunk “knowing” that it would be released before then, and so we could utilize the new Post Formats UI and functions that went along with it. Alas.

    Read post

  • Do not change the default timezone from UTC in WordPress

    I discovered something a bit surprising about WordPress related to timezones: WordPress explicitly sets and expects the default timezone to be UTC (in settings.php) and the date/time functions sometimes rely on the fact that the default timezone is UTC. For instance if you do date_default_timezone_set(get_option(‘timezone_string’)) and then later try to get a GMT timestamp from get_post_time()

    Read post

  • Showing support for JavaScript and the Mozilla Developer Network

    If you want to see access to JavaScript documentation improve on the Web, grab a copy of the code above from PromoteJS to boost the MDN PageRank. Dare I say, we must take the top spots away from W3Schools.

    Read post

  • My X-Team Superhero Identity Revealed

    Tonight we at X-Team had a very special meeting: the induction ceremony for new superheroes! X-Team employees are given superhero identities, and I was next in line for induction along with Wojtek Zając and Ben King. Our meeting was extra special because five of us have been together in Los Angeles this month working for

    Read post

  • ECMAScript Proposal: Named Function Parameters

    I recently ran across the ES wiki which is documenting proposals and features for new versions of ECMAScript (JavaScript). I was excited to see the spread operator “…” which basically brings Perl-style lists to JavaScript. I was also excited to see the spread-related rest parameters which basically implement Python’s positional parameter glob *args; however, I

    Read post

  • Programming Languages I’ve Learned In Order

    Update: See also list on MY TECHNE. What follows are the programming languages I’ve learned in the order of learning them; their relative importance is marked up with big, and small indicates I didn’t fully learn or actually use the language. Perl 5 JavaScript / ECMAScript PHP 4 & 5 SQL Visual Basic 6 Java

    Read post

  • Proposal for Customizing Google’s Crawlable Ajax URLs

    On the Shepherd Interactive site, we have a dynamic navigation menu in Flash. In order to prevent it from having to reload each time a page is changed, I implemented Ajax loading so that the SWF only has to load once. This is similar to what Lala and Facebook do. So if your browser is

    Read post

  • Photo of “Audible Ajax”

    I miss the Audible Ajax podcast on Ajaxian. Photo by my friend Nathan Watkins; taken 2006-07-17 in Midelt, Morocco where I was soaking in the podcast.

    Read post