You've found the artist formerly known as my blog! Feel free to peruse, stumbling upon everything from code snippets that never made it to GitHub, to random ramblings about my passion for technology.

In PHP, when you submit a file input that has multiple files (as in, it is named <input ... name='foo[]' />), it organizes it oddly. The $_FILES array contains a single key, then within that key is an array with keys "name", "tmp_name", "size", "type", "error". Within each of those keys is an array with the data for each file.

Why?

Continue reading...

After a rather interesting StackOverflow question, I got thinking about different types of efficiency in Java and, consequently, Android.

Continue reading...

Just like jQuery's extend, this code will allow you to replace existing values of an array with new values, based solely on matching keys.

Continue reading...

I felt that these three array functions were sorely lacking from PHP. They're simple to use and easy to install, and follow the general syntax of the existing array methods that are default to PHP.

Continue reading...

A simple Python script that generates an array containing any numbers of the Fibonacci sequence based on their integer indices. Can also accept negative integers. If the correct parameter is specified, it will return the array as a string instead.

Continue reading...