Archive for August, 2006

Stupid PHP one liners: Google calc

A long time ago, I wrote a two line hack that let you use Google as a command line calculator. It eventually ended up in the 2nd and 3rd editions of Google Hacks.

I don’t know what caused by to look at that code again, but here’s the one line version:

print str_replace('<font size=-2> </font>', ',' ,
  preg_replace('(.+<b>.+= (.+?)</b>.+)s', '$1',
    file_get_contents('' .
      urlencode(join(' ', array_splice($argv, 1)))))) . "\n";

View maps in Google search results

I came across a new (to me) feature of Google today: inline maps.

eBay Developer Program: Needs Biz Dev Techie

The group at eBay where I work, the Developers Program, is looking to hire a biz dev person that’s also at least a little techie.

Here’s the key requirements:

  • Work with eBay’s Internet Marketing and Product Management teams to define and enable third-party development of applications to drive activity to
  • Evangelize and communicate the benefits of developing on the eBay Platform using our Application Programming Interface (API) and other web services to third parties (primarily affiliates) through conference appearances, one-on-one interaction and personal innovation.
  • Maintain and continue to develop/streamline the platform access infrastructure for third parties.

And here’s the full description. (If that link doesn’t work, go to and search for job “12439BR”.)

If you’re interested, please e-mail me. The domain is “” and my username is “atrachtenberg”.

Dirty Secrets of OSCON 2006

Under the heading of better two weeks late than never, here are my slides for my OSCON talk Dirty Secrets of PHP 5’s ext/soap Extension.

As usual, I had a great time at the show. It was fun to see all my old friends and make new ones.