Tools
This page contains a set of freely availible tools, primarily for PHP and Java, which I've put together over the past few years. Any code availible in this section is licensed for public use, see the site license for more details.
PHP: Simple Login and Authentication Scripts
I know, I know, the internet is already overflowing with 'Simple Login Scripts' and the like, but I figure I should get my day in the sun too, and I honestly think you'll like what I've done. I've built now three different login scripts, with varying levels of complexity. Page Locker simply prompts for a password, and once that password has been entered, the page displays as normal for the remainder of the session. Simple User Authentication locks a page prompting for a username and password - ideal for an admin panel that only one user will need access to. The UserManager Class is my favorite, and a fully functional, entirely self contained user management class - include it in your website and you're all set to create and manage a user-based website, with custom user parameters (such as real name and email address) that you can define. Still a few efficiency improvements to be made, but by and large fully functional, and fully scalable.
Automatic JNLP Generator
A small little tool to make building and deploying JNLP files quick and easy. It build the XML so you don't have to, and most importantly it generates the codebase dynamically so that if the JNLP file changes servers or locations, it will still point to the correct place without you having to change it.
Secure PHP Image Uploader
I have yet to find a decent, compact, and secure image uploader and resizer for dealing with images uploaded by a user. This class makes processing, securing, resizing, duplicating and saving an image a three or four line process - totally painless.
PHP: Bitmask Utility
A lightweight bitmasking / enumeration utility for managing enumerated data in PHP easily. Not limited by the size of an integer, this class can work on bitmasks of any size.
PHP: Colum-focused Tables
A client wanted to list some equipment, where each item is listed as an image, its name, and its price. These are listed vertically, meaning that in each row of items, I have to insert all the images, then all the names, then all the prices. Obviously, that's not the best way to deal with things, is it? So I put together a script which generates the tables for you. It requires a little work on your end, but there are some fairly straightforward instructions on adapting the script to suit your needs.
Java File Manager
I put together this FileManager class during my AP Computer Science class my senior year of high school. It makes reading and writing files almost completely painless - the way it ought to be.
Java Timer
Also built during APCS, this is a self-contained stopwatch class for timing operations in Java. It has all the functionality of a basic stopwatch and works perfectly for comparing speeds.
