programming
16 articlesBuilding a card-trick program with my son
Building a card-trick program with my son taught me when to explain, when to wait and how to respect a child's ideas while making something worthwhile together.
Notes from the 2015 Cloudflare Internet Summit
Notes from Cloudflare’s 2015 Internet Summit on reader privacy, programming as a life skill, and the leadership work needed to build a more trustworthy web.
Converting Numbers to Words in Perl
A Perl module for spelling numbers in English, with source code, grouping examples, practical uses, and plans for Indian English and words-to-number conversion.
Sending Mail from Java Programs
A Java SMTP class for web-form notifications, with Java and ASP examples, complete source code, and the mail workflow I used at Philadelphia Newspapers.
Including Remote HTML in Web Pages
A Java component for including remote HTML in web pages, with rich ad-serving examples, ASP integration, complete source, and reuse across server environments.
Multiple Default Documents on IIS
An ASP workaround for mixed default-document names on IIS, including the original source, its file-selection behavior and the response from web administrators.
Making Unix Web Servers Case-Insensitive
Two Perl scripts for recovering miscapitalized URLs on Unix servers, with a DBM lookup, helpful error messages and the complete original newspaper-site code.
Sharing Code with the Perl Community
Why I registered as a CPAN author: sharing reusable Perl tools, learning from other programmers, and writing code that strangers can understand and use.
A Date and Time Package for Perl
A Perl 5 date-formatting package, with working constructor examples, the original source, and practical reuse in the tools I built for newspaper web sites.
A Tour Guide Applet for Web Sites
A Java applet for guiding visitors through a site, with editable tour data, a persistent popup window and the complete original source for other web builders.
A toHex Function for Java
A Java function to convert non-negative integers to hexadecimal strings, written when java.lang.Integer lacked toHexString().
Netscape Acknowledged My Directory Listing Script
Netscape published my Perl CGI for custom directory listings as Tech Note 20021, solving a gap in their server software.
Building an Ad System for a Newspaper Web Site
The Perl click tracker and ad-rotation scripts I built for Philadelphia Newspapers, with monthly flat-file logs and reusable page templates.
Reading GIF Dimensions in Perl
A Perl function to read GIF image dimensions and generate correct HTML img tags automatically.
Splitting Files for Floppy Disks
A Perl script to split large files into floppy-disk-sized pieces for transport across unreliable connections.
Writing a video game without a computer
A childhood story about writing a car racing game in BASIC on paper during a summer vacation in Bhowali, India, and the lessons that came from watching it fail.