Recent Posts

XML Selector Updated With Limited DOM Support

By Jeff Hunter

Tuesday, April 21, 2015

On Monday I published an update to XML Selector. This release (0.3.0) involved some significant refactoring and makes three important changes:

Read More…

Unit Testing Node.js Code with a Memcached Dependency

By Jeff Hunter

Friday, April 3, 2015

A few weeks ago I found myself needing to make some changes to a legacy system. I wanted to add some tests to check my changes, and because that system had very few tests written for it, I also wound up doing some work on the test tooling. A lot of what I needed to

Read More…

Dependencies between C/C++ Addons in Node.js

By Jeff Hunter

Wednesday, March 25, 2015

Should you ever be writing a C/C++ addon in Node.js which depends on another module that is also a C/C++ addon, I have one piece of advice: keep your dependencies at the JavaScript level and avoid any linkage between the native addons. In most cases, sticking to the JavaScript interface will be the most obvious

Read More…

Lessons Learned from jQuery File Upload

By Jeff Hunter

Sunday, April 22, 2012

I recently implemented jQuery File Upload on a site as a replacement for an older, considerably more bloated file upload component they had been using. There were a couple of not immediately obvious issues I ran into, and I thought I’d write them up here quickly in case it saves anyone else some time.

Read More…

Double Quotation Marks in PHP ini Files

By Jeff Hunter

Friday, August 14, 2009

PHP conveniently offers the function parse_ini_file, which allows you to load settings stored in the same format as php.ini. File parsing is fast (on my machine loading a handful of settings takes about 1/10th the time of using DOM or SimpleXML to parse the equivalent information in an XML file), and the format is both

Read More…

Mass Assignment and Security in Ruby on Rails

By Jeff Hunter

Monday, August 3, 2009

The topic of security vulnerabilities exposed through attributes= in ActiveRecord::Base recently came up on the SF Ruby Meetup list. The related blog entry can be found here. It’s an important question about Rails, and one that a little information can help clarify what to worry about and what not to worry about.

Read More…