Here’s my submission for a NPR Planet Money “Minimalist Econ Poster”. It’s the concept of “negative equity”.
It’s Copyright ©2012 Damon Allen Davison. Permission is granted to NPR to use or re-publish this online as long as I’m credited.
Southern Studios control room.
Since I’ve been developing a WordPress theme and plugins for the new website at work, I’ve been working with PHP quite intensively for the last couple of months. For a lot of reasons, PHP isn’t my favourite language to work in, and the lack of testing culture amongst PHP programmers is really underlined by WordPress theme and plugin developers not shipping their code with tests, which could also be a reflection of the WordPress core having lots of tests, but having them available only when you clone the Subversion repository.
I’ve also been thinking about how projects like CASH Music DIY could really benefit from a combination of test-driven development (TDD) for the developers themselves and behaviour-driven development (BDD) to allow non-experts to write tests that can double as documentation using Cucumber. In fact, I started this whole search by looking for tips on how to use Cucumber and Capybara to do integration testing on PHP projects.
Cucumber allows you to write natural-language feature tests, such as the following example taken from their Github repository:
Feature: Addition
In order to avoid silly mistakes
As a math idiot
I want to be told the sum of two numbers
Scenario Outline: Add two numbers
Given I have entered into the calculator
And I have entered into the calculator
When I press
Then the result should be on the screen
Examples:
| input_1 | input_2 | button | output |
| 20 | 30 | add | 50 |
| 2 | 5 | add | 7 |
| 0 | 40 | add | 40 |
On the unit testing and TDD front, Smashing Magazine has a brand new article on writing unit tests for WP plugins that uses the JavaScript QUnit. There is a simple Lastcraft Unit Testing Tutorial using SimpleTest.
Where BDD is concerned, Otaqui.com has a Gist for using Cucumber, Capybara, Mechanize and Selenium to test remote PHP web sites.
Since I’m just starting out with this, I’d love to hear from some PHP testing experts and anyone else who can help me fill in the gaps.
More resources I’ve found since posting this:
* Camel case for everything, really?
Fifi Fatale’s Powder Puff striptease, filmed by Damon Allen Davison
“Awesome” would be appropriate here.
(via melancholiceuphoria)
Billie hiding her nose
Restricting users when setting up a file transfer server -
In my role of Production Manager at Southern, I keep running across rather, shall we say “sub-optimal” server configurations for delivering masters, artwork and other very large files to manufacturers.
For example, one of the plants we have worked with has a single SFTP account for all their clients to upload their masters to. It’s not an append-only solution like an OS X “Drop Box” where people can’t see what was uploaded—you can potentially download other companies’ masters. Another company we work with for digital retail doesn’t let you read anything, but you can see all of their clients. There aren’t many servers I think have been set up well.
I’ve decided that it’s a basic system administration skill to be able to set up private, chrooted SFTP accounts for any number of users on a system, so I’m linking to this HOWTO, which worked very well for me. Just create a user and home directory, add it to the “transfer” group, create a subdirectory under the home and chmod it so it’s world readable/writable/whatever.
A couple of important notes about the configuration:
Here’s the bottom (and relevant) part of my sshd_config:
#Subsystem sftp /usr/lib/openssh/sftp-server
Subsystem sftp internal-sftp
UsePAM yes # not relevant to this discussion, but see my point
# above about Match being at the *bottom*
Match Group transfer
ChrootDirectory %h
AllowTCPForwarding no
X11Forwarding no
ForceCommand internal-sftp

Dischord have started their release of the Fugazi Live Series.
Between 1987 and 2003, Fugazi played over 1000 concerts in all 50 states and all over the world. Over 800 of these shows were recorded by the band’s sound engineers. The goal of this project is to make each of these recordings available to download for a small fee. We will start with 130 shows and release more monthly until we’re done. A searchable archive lists each show along with available photos, flyers and general show info. Each listing with a download offers a streaming preview of material for sound quality as well as the reading and posting of comments on the show and the recording.
The size and scope this archive dictates that it will remain a semi-permanent work-in-progress. We welcome visitors to contribute photos, recordings, corrections, and any additional info that may be missing from specific shows. Please see the About section for information about contributing content.
I was at the September 8th show at the Hollywood Palladium in 1991, but I don’t have a contiguous memory of the gig. Hearing the audio from the show when it is released is certain to bring back some memories.
I’m afraid neither of the opening bands left much of an impression, but then again we were there for Fugazi. It was a big deal.