Development Archives

  1. Git Submodules are not SVN Externals

    One of the biggest hurdles I had to get past in order to use Git efficiently was getting my head around the differences between SVN’s externals and Git’s submodules. Since our migration from SVN to Git, I’ve seen other folks on our team working through the same hiccups I had initially. I thought the following…

  2. SVN to Git Migration

    A couple of weeks ago we shut down the Crowd Favorite office for a day and a half to do a migration from SVN to Git. This was not a small undertaking. We had nearly five years of code in a single SVN repository that was then broken out into literally hundreds of Git repositories.…

  3. TechStars Boulder Early Application Deadline: Feb 26th

    If you’re planning to apply for TechStars Boulder for this summer (2012), make sure you’ve got your application ready to go for the early application deadline in 2 weeks. It’s been amazing to see TechStars grow and thrive as it has. The experience offered to the teams and the quality of the mentors is remarkable;…

  4. http_build_query() Separator Tip

    I ran into an interesting “bug” in Twitter Tools last night that I traced back to http_build_query(). I expected that the query strings generated by this function used & as a separator for the key=value pairs, but on one of our test servers, the separator being used was &. This is a php.ini config setting,…

  5. Twitter Tools 3.0 beta 2

    I’ve packaged beta 2 of the next generation version of Twitter Tools. Version 3.0 is a ground-up rewrite on top of the Social platform, with a few features included for backward compatibility. If you’d like to test the beta, grab it from GitHub. This version fixes several bugs that were found in our QA process,…

  6. WP_Query by “Standard” Post Format

    When using WordPress post formats, you’ll quickly start looking for a way to query WordPress content by the “standard” post format. This Trac ticket seeks to work on solving this. The implementation there handles URL-based requests: http://example.com/type/standard/ quite nicely. However the code in that patch doesn’t (yet) handle direct WP_Query calls. I was hacking on…

  7. Popularity Contest is Dead (and on GitHub)

    I wrote the Popularity Contest plugin for WordPress back in May of 2005. It had a good run, but that run is over. We are no longer developing or supporting Popularity Contest, and I recommend letting it rest peacefully. Why? It does too much, and too little at the same time. It does too much.…

  8. WordPress Plugins and Symlinks

    If you’re doing serious development for WordPress you will quickly find yourself in a situation where you need to test a plugin in multiple installations. Using symlinks is a great way to make sure that you don’t end up editing in multiple locations, perhaps forgetting to commit a change, etc. However, there are some headaches…

  9. Not Getting GitHub Notifications?

    I have been moving Crowd Favorite‘s Open Source projects to GitHub (as well as my personal projects). GitHub has great tools for this. We created an organization, added the team members to that organization, and created repositories for our projects. As a few of our projects have enjoyed exactly the sort of developer community engagement…

  10. WordPress Post Format Fallbacks

    Post Format Fallbacks

    While our post formats admin UI is getting a nice warm reception (100+ tweets, pings and comments, wow!), there is a concern that has popped up a few times – one that I included a nod towards in my original post. What happens when publishers put important data in the post format custom fields, then…

  11. WordPress Post Formats Admin UI

    format-standard

    The Post Formats feature that landed in WordPress 3.1 is a great framework feature. I’m leveraging it extensively on this site to drive my link, status, photo and gallery posts. While it is a great framework feature, it only really exists as something developers leverage to extend WordPress. There is no UI that ships with…

  12. wp_publish_post() Does Not Set post_*

    The inline documentation for wp_publish_post() says that it will: Publish a post by transitioning the post status. and that’s exactly what it does. Moreover, that’s all it does. If you are creating a draft post via wp_insert_post() (or wp_update_post(), which calls wp_insert_post()), certain defaults will be set for you when the post status is set…

  13. Wanted: Multiple Incognito Sessions

    Steve laments the lack of easy “Incognito” windows in Firefox. I tried Safari as my primary browser for a few weeks when I upgraded to Lion and I really missed this as well. Once it becomes part of your workflow, it’s really hard to go back. I actually want it to go a step further.…

  14. Modernizr.touch and BlackBerry Browsers

    If you’re using Moderinzr to detect browser support for touch events, be aware that non-touch BlackBerry devices claim to support touch events. As you might expect, the touch events are pretty much impossible to trigger on a non-touch device. I worked around this by making the check for touch vs. non-touch browsers also test for…