Roland is a Static Website Generator Written in Swift

If there's one thing I'm good at, it's reinventing wheels. So here's Roland - an open source, blog-aware, static website generator written in Swift that also uses PHP under the hood because PHP is still the best template language.

Read More »


Deactivated

I’m filled with rage and despair and also just sad thinking about what we in the tech industry unintentionally unleashed upon the world – and then willfully made worse through greed and arrogance. This is my small contribution to make things better. It likely won’t matter. But it does give me some relief to have done something. Anything.

Read More »


Triage Your Email in the Car with Siri

With this script, Siri will speak a summary of your unread emails and then allow you to take action on each individual message. You can listen to the full email body. Or, you can archive, delete, mark as spam, mark as read or unread, and send a reply.

Read More »


Creating GitHub Issues (with image attachments!) From an Email

I'm very meticulous about logging all of the feedback I receive from my customers. Whether it's a bug report or a feature request, I want all of that information captured in a single place where I can plan and act on it. For me, that place is the Issues section...

Read More »


Categories
Indie Business PHP

Fixing a Broken Service With a Tiny Bit of Automation

This post is a nice, unintentional follow-up to yesterday's one about backing up all of my family's photos and home videos. Anyway... My kids go to a fantastic daycare. My wife and I couldn't be happier. The teachers are wonderful, they love our children, and our kids adore them, too. But,...

Read More »


A Simple, Open-Source URL Shortener

tl;dr One evening last week, I built pretty much the simplest URL shortening service possible. It's simple, fast, opinionated, keeps track of click-thru stats, and does everything I need. It's all self-contained in a single PHP script (and .htaccess file). No dependencies, no frameworks to install, etc. Just upload the...

Read More »


Categories
PHP Open Source

Day One Journal Total Word Count

After my previous post I got curious as to the total number of words I've written in Day One so far. A quick Google search didn't turn up any obvious solutions, so here's a short PHP script that gives you a total. Just pass it a path to your .dayone...

Read More »


Categories
Productivity PHP

Rockwell - Sort of like a private Foursquare meets Fire Eagle

Back in 2008, when I worked for Yahoo!, I had the good fortune of chatting with Tom Coates a few times about the now defunct Fire Eagle location brokerage service. Fire Eagle was my absolute favorite product to come out of Yahoo! during my time there. I've always been fascinated...

Read More »


Importing Jekyll Posts into WordPress

Nearly four years ago I switched my main site over to Jekyll. It's been great. But late last year I decided to make that site and its blog purely about my software business and move all of my non-work posts over to my tyler.io domain so I could have a...

Read More »


Categories
Jekyll PHP

Automatically Compressing Your Amazon S3 Images Using Yahoo!'s Smush.it Service

I'm totally obsessed with web site performance. It's one of those nerd niches that really appeal to me. I've blogged a few times previously on the topic. Two years ago, (has it really been that long?) I talked about my experiences rebuilding this site following the best practices of YSlow....

Read More »


Generating Strong, User Friendly Passwords in PHP

For an upcoming project, I needed a quick PHP function that would generate strong passwords. It's an easy problem on the surface, but it has some quirky nuances that appear if you spend any length of time thinking about it. For example, it's not enough to merely pick characters at random...

Read More »


Categories
PHP

Open Source Updates

On this lazy Sunday afternoon I thought I'd take the opportunity to mention a few open source projects I've recently updated. GitHub makes sharing code so ridiculously easy, it's a shame not to call attention to it occasionally in case other people might find something useful. Sosumi 2.0 First up is Sosumi...

Read More »


Categories
PHP Open Source

Shine - An Indie Mac Dashboard

Two years ago, shortly after I released VirtualHostX 1.0, I wrote about Appcaster - a web dashboard for Mac developers I built that manages my application updates, payment processing, etc. With the release of VHX 2.0 and Incoming!, I decided it was time to rewrite Appcaster as the original code...

Read More »


Sosumi - A MobileMe Scraper

Sosumi is a PHP script that scrapes MobileMe and exposes Apple's Find My iPhone functionality to the command line or your own web application. This lets you pull your phone's current location and push messages and alarms to the device. Like my previous blog post that dealt with AT&T's Family Map...

Read More »


Categories
Hacks PHP Open Source

Persistant Location Updates From iPhone to Fire Eagle

Location Based Services are hot. They add an extra layer of usefulness on top of the web sites and products we're already using. The trick is keeping your location updated in the cloud as frequently, comfortably, and securely as possible. Fire Eagle fulfills the security requirement — brokering your whereabouts only...

Read More »


Categories
Hacks PHP

Google Voice Dialer

Last year I posted...

Read More »


Categories
Hacks PHP Open Source

PHP Wrapper for Yahoo! GeoPlanet

Earlier this month I wrote a quick PHP wrapper for Yahoo!'s GeoPlanet API. It's a super useful service for querying geographical information about nearly any place on earth — addresses, landmarks, colloquial locations, etc. Or, as the official description says GeoPlanet helps bridge the gap between the real and virtual worlds...

Read More »


Categories
PHP Yahoo! Open Source

Serving Static Content on Amazon S3 with s3up

I've written twice about using Amazon S3 to host your website's static content. It's a great solution for small websites without access to a real content delivery network. And now that Amazon has launched CloudFront on top of S3, it's even better. But there are still ways we can improve the...

Read More »


Download All of Your Flickr Photos and Sets

iLife '09 was released today. And with it came a much improved version of iPhoto with facial recognition, geotagging, and Flickr and Facebook support. With so many new ways to slice and dice my photos, I wanted to start over with a clean slate and get everything organized in iPhoto...

Read More »


Categories
PHP Yahoo! Photography

Amazon S3 Improvements in PHP-AWS

Two and a half years ago I began working with Amazon Web Services — first with S3 and then SQS and EC2. The code was eventually cleaned up and released as an open source project called PHP-AWS. Since then, it has remained relatively unchanged. Just bug fixes and the occasional...

Read More »


Parse Command Line Arguments in PHP

This afternoon I needed an easy way to upload files to Amazon S3 and set specific headers on them. I've built one-off scripts like this in the past, but this time I wanted to generalize the problem into a reusable shell command. I pulled in some code from PHP-AWS and got...

Read More »


Categories
PHP Open Source

Dial a Phone Number Using Grand Central and PHP

If you're lucky enough to have a Grand Central account, here's a quick PHP class that will login to your account and dial a phone number. This is probably one of the more random bits of code I've ever written, but I think it's useful. <?PHP $gc =...

Read More »


Let Google Do The Work For You

One of the major challenges in web scraping is figuring out which page to scrape in the first place. Here's a scenario: Say you need to pull some information for the film 30 Days of Night off IMDB. It would be great if you knew in advance what the URL...

Read More »


Categories
PHP

Introducing Appcaster + OpenFeedback

Today I'm proud to announce the release of two new open source projects: Appcaster and OpenFeedback. I've been working on them off and on for over nine months, so I'm very excited to finally see them out the door. Appcaster, which I've written about before, is a web-based dashboard for indie...

Read More »


Scraping IMDB With PHP

For an upcoming project, I need to pull in metadata about movies and TV shows — genres, plot summaries, actors, etc. The de-facto source is, of course, IMDB. Unfortunately, they're behind the times and don't offer an API to access their data. (At least not one that I've ever found.) So,...

Read More »


Categories
Hacks PHP

Using Amazon S3 as a Content Delivery Network

[Update: You might also be interested in s3up for storing static content in Amazon S3.] Earlier this week I posted about my experience redesigning this site, focusing on optimizing my page load times using YSlow. A large part of that process involved storing static content (images, stylesheets, JavaScript) on Amazon S3...

Read More »


Holy Crap! Mint Plugin

Here's a quick Pepper plugin called Holy Crap! I wrote for Shaun Inman's Mint software. The idea is simple: it sends you an email alert whenever it detects your site has become popular on del.icio.us, Digg, etc. Think of it as an early warning system. It's easy to add your own...

Read More »


Categories
PHP Open Source

Bank of America RSS Feeds

Bank of America has a great online banking system. It's why I switched to them three years ago. I've often wanted them to provide an RSS feed of recent transactions on my account — I've emailed them multiple times, but no such luck. So, today I finally got around to doing what I always...

Read More »


Categories
Hacks PHP

How To Install PEAR in Mac OS X Leopard

Unlike previous version of OS X, Leopard doesn't come with PHP's PEAR repository installed by default. Luckily, installing is quick and painless. From a command line: curl http://pear.php.net/go-pear > go-pear.php sudo php -q go-pear.php Just press enter to select all the default choices except for the installation directory. For that, use /usr/local. (Thanks,...

Read More »


Categories
macOS PHP

50 States Programming Puzzle

Anders Pearson posted an interesting programming puzzle today on Thraxil.org: Take the names of two U.S. States, mix them all together, then rearrange the letters to form the names of two other U.S. States. What states are these? He found out about it from Mark Nelson who, in turn, heard it on...

Read More »


Categories
PHP

How to Enable PHP5 In Mac OS X Leopard

I've seen a lot of visitors searching for information on enabling PHP5 in Mac OS X Leopard. It turns out to be quite easy. Leopard ships with Apache 2 and PHP 5 pre-installed. To enable PHP simply: Open your favorite text editor and edit /private/etc/apache2/httpd.conf Uncomment line number 114. It should read LoadModule php5_module ...

Read More »


Categories
macOS PHP

foo9 URL Shortener

I was out of town for a couple days last week and had a lot of time to kill at my hotel. Needing something to do I decided to write my own URL shortening service. This is hardly an original idea - TinyURL.com has been around for a long time....

Read More »


Categories
PHP