drewish


blog index

Publishing pecl channels to GitHub  16 August 2012

This is the process I used to publish a pecl channel for phpredis to GitHub pages. You can read the full background on the issue.

Read more →

Drupal on Mountain Lion (OS X 10.8)  26 July 2012

The instructions still need some work. I’d did some updating but haven’t tried using it with a clean install yet. After reading this it sounds like there’s some bigger changes. I’ve also been trying to switch from macports to homebrew so that’ll also mean some changes to this.

Read more →

New time lapse video  08 June 2012

Dan and I shot this last summer but it took a while to get it finished up. The next one is going to be even better.

Read more →

Drupal on Lion (OS X 10.7)  15 February 2012

I was half way done adding some info how to setup pecl/pear to my guide to running Drupal 6 on OS X 10.6 before I realized I’d been running Lion for almost nine months. So it seemed like a good excuse to update it for Lion. These might be a little wonky since I did an upgrade rather than a clean install so if you notice anything please drop me a line.

Read more →

Working around "broken" RSS feeds  30 January 2012

Found some more time to work on my fullfeeds project over the weekend. Finally getting into Node’s everything happens in a callback spirit, and managing to not make it look like spagetti code. Discovering the async module really helped but I’ve probably gone a little overboard with it.

Read more →

Creating a sprite from cocos2d's CCTMXTiledMap  14 January 2012

I’m working on a Pipe Mania/Dream clone for iOS using cocos2d. I was able to quickly implement the board using the CCTMXTiledMap component, but then when I started trying to figure out how to setup a sprite preview the next piece I got stuck. I’d intended to try to document all the false starts I took before figuring this solution out, but I waited too long before doing the writeup.

Read more →

Drupal for the win  08 January 2012

My Uncle Hugh called me up last year asking if I knew anyone who could help him get a website setup—he’s very polite like that—for a book he’d written on the housing crisis. Once he said he didn’t really care what it looked like—and I knew I wouldn’t have to do a bunch of themeing—I knew I’d be able to set him up something simple using Drupal, so of course I offered to help. It was a nice change from the normal insanity of incomplete specs and legacy requirements that the day jobs always entail. I got to just plug together off the shelf modules and enjoy using Drupal for a change.

Read more →

Drupal JavaScripting  11 May 2011

I was trying to find some docs on how to use Drupal’s JavaScript behaviors system to send to some people at work and realized that two years after D6 was released it was still poorly documented. The JavaScript and jQuery page had good examples of how to get JavaScript onto the page from a module or theme but didn’t really discuss what to do from that point. I spent some time adding some documentation to the page on drupal.org but wanted to put a copy here for Google’s benefit.

Read more →

Using memcached with stock OS X Apache  08 December 2010

I wanted to use memcached but didn’t want to compile all the dependencies by hand and wanted to use the stock version of Apache that ships with OS X so I cobbled together the following instructions.

Read more →

New Mac Mini  08 November 2010

I just picked up a new Mac mini servers to replace the one that’s been my desktop machine for over 2 years. The new server version has two 500GB hard drives (as opposed to the single 120GB drive I’ve been working with) but no optical drive. That seemed like a bit of an inconvenience since I just bought a MacBook Air and it doesn’t have an optical drive either so I picked up a SuperDrive that I can use with either.

Read more →

Using Mercurial and SVN  19 August 2010

At Sony we’re looking for a distributed version control system to replace Subversion—primarily Git and Mercurial. I’m very familiar with Git but hadn’t done much with Mercurial so it seemed like a good idea to use it for a couple of weeks and learn the quirks. Since I’m stuck using Subversion I decided to see if it would be feasible to use Mercurial as a “super client” working locally then pushing changes back to svn. A little Googling turned up two candidates hgsvn and hgsubversion. hgsubversion extends the commands pushing and pulling changes, giving a more native experience, so it seemed like the best choice for learning the system.

Read more →

MAMP + memcache = drilling a screw in my eye  20 July 2010

Here’s yet another blog post to document something so stupid that I hope to never do it again, but know I will. I spent the better part of the afternoon trying to get the PECL memcache extension working with the PHP 5.2 part of a MAMP installation and finally managed to get it working.

Read more →

iOS 4 is a total waste of time on iPhone 3G  23 June 2010

After two days of trying to use OS 4 on my iPhone 3G I’m sad to report that it’s a very un-Apple like release. It’s slower, it breaks a bunch of games and doesn’t offer any compelling features. I’d go as far as to say they should probably have only released it for the iPhone 3GS.

Read more →

Correctly accessing CCK fields in SQL queries  04 June 2010

Twice today I’ve had to deal with writing a SQL query that needed data in a CCK field. The naive approach is to just look at the table and field names and plug them into your query:

Read more →

Using cURL and the host header to bypass a load balancer  29 March 2010

Users are reporting that when they load the site they’re occasionally seeing stale content. We have multiple app servers behind a load balancer so my suspicion is that one server isn’t expiring content correctly so depending on which one you get you’ll see different data. To test this I want to write a simple script to connect to each server save the results and then compare them for differences.

Read more →

Using logrotate and drush for daily Drupal backups  06 March 2010

If you’ve got Drush installed—and you really should—you can use the following recipe to setup a backup system that will maintain daily backups for the last two weeks. Most of the logrotate configuration is based on a Wikibooks book that I found.

Read more →

Flash CS4 Gotchas  03 November 2009

I’ve been banging my head against Flash for the last few days and started trying to document a few things.

Read more →

Drupal 6 on OS X 10.6  12 September 2009

Running Drupal on OS X 10.5 was a pretty huge pain in the ass. It’s much easier in in 10.6 since it includes PHP 5.3 with GD and the PDO out of the box. And Drupal 6.14 resolves the PHP 5.3 incompatibilities.

Read more →

Rainboduino programming via FTDI FT232RL cable  09 September 2009

Rainboduino + FTDI FT232RL cable

I bought one of the Rainbowduinos a while back but hadn’t tried programming. Turns out it’s a bit of a trick. They (sort of) document the process with a Seeedunio but I don’t have that particular board one so I decided to try to figure out how to do it using the FTDI FT232RL cable I’d bought from adafruit industries.

Read more →

Drupal performance tuning on MediaTemple  31 August 2009

First off make sure you’ve got the root account enabled and the developer tools enabled.

Read more →