Fork me on GitHub

Making PuTTY (really) Portable

PuTTY is one of those indispensable little programs that I take with me everywhere I go. I used to just run it off my USB flash drive, and type in the host name on each different computer that I ran it on. This got very tedious, very quickly. I wanted to be able to take my host definitions (which are stored in the registry) with me, too, and I didn't want to leave a bunch of junk on every computer I used. After a bit of looking, I found information in the PuTTY documentation about putting the configuration settings into a file. This seemed lacking to me since I never knew what drive letter would be assigned to my thumb drive and I didn't want to edit the batch file every time. So, I fixed it ...

The PHP list() Construct

This is going to start out as a rant and end as a mini-tutorial, so let's get started.

I hate explaining the php list() construct to programmers who should know how to use it. I'm well aware that there are many, many, many functions and constructs in php and there is no plausable way to know them all. But list(), I mean, come on. That is a basic one!

Let's work on the premise that we have a csv file with fields containing: First Name, Last Name, City, State, and Birthdate. In your php script you import that data and break it into an array of records called $records. How many times have you seen code that looks something like this:

Launch of Keith's Code

June 27, 2008 — We are proud to announce the official launch of Keith's Code. Keith's Code is a new site designed with the internet community in mind. It contains information on a variety of technology topics including product manuals, tutorials, php code, Joomla! components and resources, and even a blog about new highlights in the technology field.

Keith's Code (www.keithscode.com) has been in the works for more than a year, compiling resources and getting feedback on the best direction for the site. Keith's Code was designed to share knowledge and resources with the internet community. All of the resources are free to use and public feedback is encouraged.  Future plans for the site include a user forum, weekly technology podcasts, a technolgy advisor service, and a project design service. For now, users will have access to Keith's blog, online downloads, and a lot of good information.

If you would like more information about Keith's Code, contact Keith Hatfield through the contact form on the website.