Archive for November, 2008

Image Upload Form, Cron Job Tester, & MySQL Table Copier

Sunday, November 30th, 2008

Over the weekend, I posted three new code snippets:

The Image Upload Form has everything you need to create a simple HTML form allowing users to upload their own JPEG images. After it verifies that the image is valid, it saves it and generates a thumbnail using the PHP GD library of image functions. The code is clean, so it’s pretty easy to manipulate it to suit your needs (other file formats, different resizing, etc.)

The Cron Job Tester is the result of an epic battle I had with the server hosting one of my client’s sites. I couldn’t figure out why these cron jobs weren’t running and so constructed this little tester to simply log an entry in a text file every minute. From there, I was eventually able to find out that the host’s “Easy Cron” function was overwriting my crontab file. Arrrgh…

Finally, I posted the PHP code to Copy All the Rows in a MySQL Table to another, identical MySQL table. You can, of course, do this easily in phpMyAdmin, but I needed to have the function automated for this particular project. Hopefully you can get some use out of it too.

Almost There…

Wednesday, November 19th, 2008

I managed to sneak away from the whirlwind of other tasks on my desk for a few hours today to work on continuing the big switch-over from my old site to this one. I got some big progress made and now all the major pieces are now in place. There’s still some minor things that need to be tweaked and I still have to go down to the courthouse and make the name change official, but we’re almost there. It will be so nice to be officially Ink Plant and to get out of this state of limbo.

The biggest change (other than swapping out logos, etc.) that I made in the switch was to separate the site into 4 categories: Company, Network, Blog, and Code:

  • Company - This was the entire site before. It consists of the stuff you’d expect to see from a web development company: a portfolio, information about us, a sales pitch, etc. This is where I want to attract new development clients and also to provide a resource area (with invoices and such) for my current clients.
  • Network - Right now, this section simply lists and links to the various sites that Ink Plant maintains as a publisher. In the future, I want to build this out to include more information for potential advertisers on the Network.
  • Blog - You’re looking at it. I’m going to try very hard to keep posting up here regularly. I’d love to use this to start discussions regarding interesting aspects of the web development business.
  • Code - This is going to be a repository of code snippets that I’ve put together. I definitely have some work to do there still because there aren’t enough code chunks to be useful yet and the design looks kinda lame. But, that’s probably going to be a project for later…

Well, I hope you like the new site. If you have any comments/suggestions, send them my way. Have a good night everyone.

Slow Transitions

Thursday, November 6th, 2008

I’ve been trying to juggle a million different projects lately and haven’t had much of a chance to write up here. I wish I could just pause time for a month or two and get caught up on this gigantic checklist of tasks that I want to get done on my sites.

One of the bigger tasks on the list is switching all the Lantenengo Industries stuff over to Ink Plant (I’m going to be officially changing my business name in the near future for branding reasons). Tonight, I got a decent-sized chunk of that switch taken care of: I closed down my old blog (redirecting it to here, of course) and pulled out the code snippets that I had published there, creating the new Code section of this site.

I also published a new code snippet that generates the PHP to display a MySQL table automatically. I’ve probably written this out by hand a couple hundred times, so it’ll be nice to finally have this little shortcut. Hopefully some of you will benefit from it too. Enjoy!


Copyright © 2009, Ink Plant. All rights reserved.