Category: PHP

  • X for Y Programmers

    X for Y Programmers

    I’ve been programming in primarily PHP for the last 20 years, and sadly, most of the fun new projects do not use PHP. While the mechanics of every programming language are generally the same (except for you, Haskell), the idioms vary — how do you loop through lists, how do you clone an object, etc.…

  • Turn your Mac OS Photos library into a Web photo album

    Six years ago, I released iPhoto Disc Export, a tool for exporting an iPhoto library as a standalone website. Now that iPhoto is no longer supported on the newest versions of Mac OS, I was force to update the software to work with Photos. Enter Photos Disc Export. Photos Disc Export is a a PHP…

  • Run Your Own Open-Source Timehop

    I like the idea of Timehop: seeing all of the photos I took on this day in years past. I don’t like the idea of sharing all of my photos with a third party, so I built an open-source replacement for Timehop that runs on my own computer and server; it’s called Clockback. Clockback is…

  • Export iMessages and SMS conversations as HTML

    A couple of years ago, I explained how to get instant message conversations exported out of iChat as HTML files. Now it’s 2016, and Messages has replaced iChat, and iMessages have replaced all interpersonal communication. So how do you get HTML transcripts of your iMessages and text messages? Here’s how: with my new OSX Messages…

  • Quick and Dirty Command Line PHP

    I do 99% of my programming in PHP, and when I’m on the command line, I would rather use the PHP functions I know than look up the Bash functions I don’t, so I wrote this PHP script and saved it in my $PATH as an executable file named p. #!/usr/bin/env php <?php var_dump( call_user_func_array(…

  • Turn your iPhoto library into a Web photo album

    Update: Now that Apple has dropped support for iPhoto, you may be more interested in the new version of this software, Photos Disc Export. iPhoto is good for managing and organizing photos and photo metadata, but it’s not easy to get that information back out if you want to share more than a few photos.…

  • Easy-peasy podcasting

    Want an easy way to generate a podcast or RSS feed? At Eliot’s request, I wrote a PHP script that generates an RSS feed based on the contents of its parent directory, so whenever you add files to that directory (or its subdirectories), the feed is updated with links to those files. It also supports…

  • What’s old is new again

    A few weeks ago, I started a little side project, and I decided to write it in Python with the Django framework based on all of the good things I’ve heard about it. I may never go back to PHP. It’s like this: imagine you’ve been driving the same 1987 Dodge Dynasty for the last…

  • WAMP! BAM! POW!

    This morning, I needed to troubleshoot an error that was occurring in my Feed Statistics plugin when running on a Windows machine as well as under PHP 5. Since I normally do all of my development in *nix environments, I didn’t have such an environment readily available. Having installed Apache, MySQL, and PHP on Windows…

  • Feed Statistics Plugin Fixed

    Update: Feed Statistics has been discontinued and is no longer supported. {{ the_content }

Google+