Redux: Compressing PHP source code

June 21, 2009

Earlier this month I posted a short example of a compressor I was working on for QueryPath. I received a couple of very helpful comments that pointed to a PHP built-in library that I didn't know about: tokenizer.

The tokenizer is just what I needed. It parses arrays of PHP code and returns arrays...

Mac: Tabbing through all form fields

June 17, 2009

By default, the Mac OS X behavior for tabbing through form fields is different than that of Windows and Linux. Instead of tabbing through all fields in a form, the default Mac behavior is to skip only between lists, text fields and text areas. Buttons and checkboxes are skipped. However, this behavior...

Amplify Module and TweetyPants.com on TechCrunchIT

June 17, 2009

OpenAmplify launched their new community portal yesterday, and TechCrunchIT picked up the story today. The Drupal Amplify module is highlighted in the story, as is my TweetyPants Twitter tweet-rating website. OpenAmplify provides semantic analysis tools, and the Drupal Amplify module can be used to...

QueryPath 2.0 Alpha 2

June 15, 2009

QueryPath Alpha 2 is now available.

The following major changes were made in Alpha 2:

  • The QueryPathImpl class has been re-named QueryPath. The QueryPath interface has been removed.
  • The file QueryPathImpl.php has been merged with the file QueryPath.php, and the interface has been removed from QueryPath...

How to Access OpenAmplify from QueryPath

June 11, 2009

I've written a handful of tools that make use of the OpenAmplify web service. In all cases, I've used QueryPath to retrieve the XML from the remote server and then work with it locally. In this short article, I will explain how QueryPath can be used to retrieve content from OpenAmplify's web service...

Compressing PHP source code

June 10, 2009

I've long been toying with the idea of creating a PHP compressor that would combine multiple source files, remove comments, and minimize whitespace. The point of such a compressor isn't obfuscation, but just minimizing code space for libraries. (Hypothetically, it should cut down on runtime... but...

Reading ODT Files with QueryPath

June 9, 2009

One of the most popular word processing document formats is the ODT (Open Document Text) format, supported natively by OpenOffice.org, and supported as an export format for other major word processors, including Microsoft Office.

An ODT document is actually a ZIP archive composed of several files...

Presentations from Drupal Camp Wisconsin

June 8, 2009

Last weekend, I joined a couple hundred other Drupal users at Drupal Camp Wisconsin at the University of Wisconsin, Madison. This well-organized two-day event was fantastic. I met many new people (and can now connect a face with an IRC handle for many more). And the crack team of conference organizers...

QueryPath 2.0 Alpha 1

June 4, 2009

QueryPath 2.0 Alpha 1 has been released. You can grab a copy for testing from the download page.

This new version adds some new methods, adds a few of the straggling CSS 3 Selectors, provides a new object for global configuration, and employs new (faster) internal data structures. You should notice...

QueryPath 1.3 module released, now has an XML cache

June 4, 2009

The QueryPath module, version 1.3 is now available. This release adds a new submodule called QP Cache.

QP Cache is a cache system optimized for XML storage. It supports keys of arbitrary type and length (objects, strings, arrays) as well as fuzzy expiration dates ("2 weeks"). Cache lookups are...