Code Samples and Projects

These are some of the samples I've developed for friends or for my own perverse pleasure. Most of the DHTML samples require Microsoft Internet Explorer 5. Some of these were developed for Scott Roberts' book "Programming Microsoft Internet Explorer 5" (Microsoft Press, 1999)

Windows Sidebar Gadgets

  • The Payton Gadget - Displays a rotating display of pictures of my daughter Payton and plays a continuous stream of music and other audio from my mp3 site, all while displaying Payton's current age up to the minute.
  • InfoPath dashboard - Displays all InfoPath form templates cached on your computer - launch them with a click of the mouse
  • C# (C Sharp)

  • CSVFile - a class library which opens a comma-separated values file and creates an easily usable object model out of it. Sort of like ADO against a csv file. (I'm pretty sure ADO.NET does this already, but this is a useful C#/.NET sample :-)
  • IE5 DHTML

  • Dallett's Sexual Deviance Index - and you thought the Geek Code was bad? This demonstrates a crude parser using regular expressions in Javascript
  • DHTML Notepad
  • DHTML Spreadsheet
  • DHTML Browser
  • DHTML Soup - cheesy little DHMTL animation example
  • Clock - this is absolutely wonderful - I WISH I'd written it!
  • DHTML Localization - cover article I wrote for the October 1998 issue of Microsoft Internet Developer Magazine

    C++

  • Thumbnailer - (Visual Studio.NET unmanaged C++ project). A console application I wrote to help organize the many pictures of Payton on the website. The app walks through a directory, finding JPG and GIF files, and creating thumbnails of the images. It creates an HTML file in the directory called "Thumbnailer.htm", which displays the thumbnails linked to the original images. Here is the Compiled EXE
  • Streams - (Visual Studio.NET unmanaged C++ project) This is a console app I wrote to explore file streams in the NTFS file system. This app will store or retrieve a binary file from an otherwise ordinary file (creates a text file if the specified target file doesn't exist). The binary file doesn't show up in Windows Explorer or at the command prompt, and it doesn't add to the size of the file in either of these locations. The app uses separate NTFS streams to store the text, the binary file, and the embedded file name. Here is the compiled .exe.
  • LinkBuilder - (Visual C++ 6.0 project) This is a Win32 app I wrote to practice some of the classic linked-list CS questions. This demonstrates AddHead, AddTail, Delete, and Reverse. It is a functional browser, operating on hyperlinks only. It will also allow you to edit the list of links once loaded. The last feature I added is one that will save all images and linked images to disk from a loaded page. Here is the Compiled Windows EXE
  • ASMTest - (Visual C++ 6.0 project) This is a console app I wrote to try out inline assembly. This is another classic CS question - reverse a string in place. Here's the Compiled Windows EXE
  • URLEncode - (Visual C++ 6.0 project) A console app I wrote to demonstrate how to URLEncode a string per the RFC. Here's the Compiled EXE
  • Tourette's - (Visual C++ 6.0 project) A nasty little app I wrote for the TradeInsults group on Yahoo. It installs itself on your system and wakes up every ten minutes to mess up your display and insult you. This is not a destructive program, but it's damn annoying! Here's the Compiled EXE
  • Opensave - (Visual C++ 6.0 project) ActiveX DLL which will allow you to open or save a file from a web page or a VB app. This includes code that disables it from working on an Internet Site - it must be run from a web page or HTA on a local system.
  • 5 Houses - (Visual C++ 6.0 project) A console app which solves the 5 houses word problem(see the code for a statement of the problem). Here is the Compiled .exe.

    Python

  • Pigger - A piglatin translation class and a console program demonstrating its use

    x86 Assembler

  • Pixelmove - The world's most useless DOS drawing program. Here is the Compiled exe
  • ASMTest - (Visual C++ 6.0 project) This is a console app I wrote to try out inline assembly. This is another classic CS question - reverse a string in place. Here's the Compiled Windows EXE