Home

08
Aug

I decided that Saturday was a good day to move my site from drupal.jacksonkr.com to jacksonkr.com. I figured that I would just copy the files and viola, right? Wrong. I had a disastrous DB incident where what could go wrong, did go wrong. Essentially, I lost my website. I quickly inquired of my host if by chance they had nightly backups. It turns out they had several. Approximately six a day. I was over-joyed and happily paid the small fee to get my data back. It was a small victory for the techs at Media Temple, but a big victory for myself. Perhaps it wasn't a big deal to them, but they made a strong customer out of me - that much is for sure.

written by jackson | comments(1)
02
Aug

Some developers know how to use grep well, other's don't. I'm one of the developers that only knows the basics of grep. For example: if I want to search a folder of 20+ files for a specific string it can be very tedious. However, grep makes this part of life simpler by allowing you search for a string in all files in a folder. eg. grep -lir "search string" /home/myfolder/

written by jackson | comments(1)
01
Jul

I found an old AS2 file laying around so I decided to try it out with swiffy. It only kind of works. It would play out correct for about the first 5 seconds and then it broke (sad).

written by jackson | comments(0)
01
Jul

Check out isotope

written by jackson | comments(1)
01
Jul

I was putting together an upload form today that uploads to a file to PHP. On submit, the $_FILES var was empty and for the life of me I couldn't figure out what was going on.

Attempts:

  1. I tried a print_r on both $_POST and $FILES. Both showed up empty.
  2. Added info to the $_GET to make sure the POST was even going to the action page.
  3. Made sure I had enctype="multipart/form-data" in the form.

Solution:

Apparently for these forms to work, the input type="file" also needs the name attribute. Once I added name="file" the $_FILES var showed with upload data, just as it should. Anyway, I hope this saves someone some time.

written by jackson | comments(0)
Syndicate content