Picking a random date between two dates

Picking a random date between two dates

Many years ago I created the Fake Name Generator, a website that lets you create fake names, addresses, birth dates, and other profile information. I’ve had issues with the birth date component ever since I wrote the dang thing, including a huge bug I fixed a few years ago. Well today I was informed of another bug. A while back I added the ability for visitors to select an age range for...

Read More

Toggl Time Remaining Userscript

Toggl Time Remaining Userscript

Userscripts are snippets of JavaScript that extend the functionality of a website or change its appearance. What makes them really neat is that you don’t need the permission or help of the website owner in order to run them. I use Toggl to track the amount of time I devote to different projects. I’m committed to a fixed amount of time each week for one of my projects, but Toggl...

Read More

Enabling mouse support in Vim

Enabling mouse support in Vim

If you’ve ever logged into a server using an ssh client (like PuTTY), then you’ve probably used Vim. This infinitely customizable text editor typically runs within a keyboard-only shell, and thus only lets you use the keyboard (unless you are running something like gVim). You use the arrow keys to move the cursor around and a slew of keyboard shortcuts to insert, move, delete, or...

Read More

git in color

git in color

By default, git doesn’t use color. It is gray gray gray. Bleh. But with a single line in your shell you can enable color for git: git config --global --add color.ui true Bam! Color for your git diff, merge, add, commit… Everything. It is amazing how much a little color can...

Read More

Postmark is awesome for transactional emails

Postmark is awesome for transactional emails

Update 2/20/14: I’ve switched to SendGrid. I’ve been using them for a few weeks and am completely satisfied! Update 10/31/13: Postmark has terminated my account because they aren’t comfortable with the Fake Name Generator. I’m disappointed that they would make this decision, and I can no longer recommend their services. The Fake Name Generator lets people order (for...

Read More

Configuring PhpStorm for use with CakePHP

Configuring PhpStorm for use with CakePHP

This article assumes the reader is using PhpStorm 6.0.3 and CakePHP 2.3.8. My friend Joey has gotten me interested in PhpStorm and CakePHP. His company is in love with both, so I figure there must be some value there. The latest production release of PhpStorm, out of the box, doesn’t do a stellar job of working with CakePHP. Some files aren’t syntax highlighted, it complains about...

Read More