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('http://www.google.com/search?q=' .
      urlencode(join(' ', array_splice($argv, 1)))))) . "\n";

Popularity: 7% [?]

View maps in Google search results

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

Popularity: 5% [?]

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 eBay.com.
  • 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 ebaycareers.com and search for job “12439BR”.)

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

Popularity: 5% [?]

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.

Popularity: 6% [?]