Archive

Posts Tagged ‘development’

Discovering services using Bonjour, DNSSD, and Ruby

June 3rd, 2009
Comments Off

This is the third part in a series of articles I’ve been writing on using Zeroconf (aka Bonjour) in Ruby.  The first post covered Zeroconf and how to install DNSSD, the most popular Ruby Zeroconf libary. The second post went through creating and registering a web service using Zeroconf so other machines on your network can find it.

In this post we’ll digress a bit and write a command-line tool to monitor and explore the information Zeroconf broadcasts on your network.  This will give us some background for the next post when we modify our web server to list other servers of a similar kind running on your network.  If you’re already familiar with how to browse and retrieve information about Zeroconf services using DNSSD then you may want to skip ahead. Read more…

Mark Uncategorized , , , , , , , ,

Registering a service using DNSSD and Zeroconf

May 24th, 2009
Comments Off

In this series of posts I’m using the power of Zeroconf and DNSSD to share my strawberry ice cream advocacy web site with the rest of the network. In the last post we learned all about Zeroconf and how to install DNSSD so you can use Zeroconf from Ruby.

In this post I’ll put DNSSD to work and we’ll use it to register our web site on the network.

Read more…

Mark Uncategorized , , , , , , , ,

Strawberry advocacy with Zeroconf and DNSSD

May 24th, 2009
Comments Off

Strawberry Ice Cream

Strawberry ice cream has a bad rep.

It’s not as sexy as chocolate and not as safe as plain vanilla. Instead it’s immediately relegated to third place in most ice cream debates.

Not satisfied with this situation I did what any coder would do and created a web site to evangalize strawberry ice cream using Sinatra.

Read more…

Mark Uncategorized , , , , , , , ,

UPDATE: Bringing test driven development to Drupal 5

April 2nd, 2009
Comments Off

Test Driven Development BadgeA few days ago I made a post about modifying phpunit_setup.inc to enable test driven development on Drupal 5.  Since then a few things have happened.

Drupal TDD

The first big news is that phpunit_setup.inc is now part of a new project called Drupal_TDD.  To quote our README file the project is,

“…designed to make Test Driven Development with Drupal easy and enjoyable.”

As part of this change the source code for phpunit_setup.inc has moved to GitHub.  This will allow us to collaborate more easily on phpunit_setup.inc in the future, and should make it easier for any readers hoping to give test driven development with Drupal a try.

Check out the project page for news and updates, or to download the latest version of phpunit_setup.inc.  You can also visit the Drupal TDD wiki for documentation and examples.

Good-bye Backports, Hello Automated Version Detection

In other news, I’ve also been busy refactoring code to integrate some thoughts and feedback I’ve received.  The main changes are:

  1. Using phpunit_setup.inc in Drupal 5 now works just like using it on Drupal 6. You no longer need to include drupal6_backports.inc in your unit test files.  The same steps Pat outlines on his blog to use phpunit_setup.inc in Drupal 6 will now work with Drupal 5.  This also means you won’t need to change your tests when migrating between versions.
  2. When running under Drupal 5 phpunit_setup.inc now creates the same database schema as running a fresh Drupal 5 install. Rather than backporting the Drupal 6 installation process to Drupal 5 which created tables you wouldn’t normally use in a Drupal 5 installation, phpunit_setup.inc now automatically detects the version of Drupal you’re using and runs the appropriate database installation procedure.

There are still more announcements on the way, but that’s all we can reveal right now.  Stay tuned for further developments!

Mark Uncategorized , , , , , ,