Today I Learned: that charging the new MacBook from empty to full takes about 2.5 hours.

I’m using the MacBook on battery (unplugged) 90+% of the time.

Submit a Form on Command + Enter from Textarea with jQuery

I’m a big fan of keyboard control in productivity applications. I love being able to type my changes/additions and submit them without needing to tab around too much, or gasp grab the mouse. I’m not the only one who feels this way. David Walsh has a great post explaining how to submit web forms with Command+Enter. However, for my needs I needed to tweak this a little:

  1. I only want Command+Enter to submit the form if I’m in a textarea.
  2. I need the form submission to play nicely with AJAX requests, specifically when using jQuery delegates to catch the form submission. In David’s example code, the submit() was firing before the delegate could catch the event and preventDefault() on it.

Luckily it was quite simple to adapt his code for my needs.

View the code on Gist.

Toad the Wet Sprocket’s New Album is Free on Amazon Prime

TOAD_Cover8

This morning I saw Justin’s tweet about Toad the Wet Sprocket which led me to their Wikipedia to confirm that they took their name from a Monty Python sketch. Along the way, I saw that they just released a new album. California Wasted stands out to me on my initial listen through.

I went to Amazon to buy the MP3 album and was quite surprised to find that it was available free as part of Amazon Prime Music. You’ve all got Prime, right? Go grab your free copy.

They are touring too. I saw them perform at Chautauqua a few years ago and they did a great show.

Just received detailed instructions for caring for a pink seahorse stuffed animal. Including what to do if she gets hungry or starts whining.

Waiting for Apple Watch

I know it only seems like everyone I know got an Apple Watch today, but my Twitter feed is full of photos of white boxes.

My watch order confirmation shows a 12:06am US/Pacific timestamp, but my order hasn’t even moved into “preparing for shipment” status yet. I saw one note on Twitter that indicated the cutoff for this first batch was likely 12:03am. I couldn’t even get the Apple Store app to load until around that time. I wonder how many orders were placed in those first few minutes.

Or perhaps the delay in delivery has to do with shortages for specific models. I ordered the Steel + Milanese Loop band, where most of the deliveries I’ve seen so far are for the Sport model. My order still shows a 4/24-5/8 delivery window, so I guess I’ll be seeing it sometime in the next two weeks.

Setting the wp_remote_get() User Agent

I was recently trying to make some API requests from within WordPress using `wp_remote_get()`, but the site I was asking for data from was rejecting requests from the default WordPress User Agent. I tried to set the user agent to something different, but it still wasn’t working: $response = wp_remote_get($url, array(   ‘timeout’ => 20,   ‘User-Agent’…

Share Icon on Google Homepage

share-icon-google

It was very cool to see the Share Icon on Google’s homepage today. Thanks to Mark for making sure I saw it. This post is part of the project: Share Icon. View the project timeline for more context on this post.

I just happily paid for another 2 years of FastMail1 service for my personal email. I’ve been using them since 2004 and can’t recommend them highly enough.


  1. This is a referral link. 

When using a framework, any framework:

source code > documentation.

Always read/reference the source.

Local *.dev and *.app via Dnsmasq on Mac OS X

I am in the process of setting up a development environment on a new machine and one of the things I decided to do is route all .dev domains to my local (built-in) Apache web server while I route all .app domains to my Laravel Homestead Vagrant environment. To never have to monkey with your…

Star Wars VII, Trailer 2

The new Star Wars trailer is fantastic. Take a minute to look at the scene by scene breakdown at The Verge. And today the Battlefront game trailer was released. I’m not a gamer, but this looks pretty impressive.

OS X Reviewed →

Thanks to John for writing the canonical OS X reviews for so long. It sometimes took me weeks to finish them but I always learned things that helped me get more out of my tools. I look forward to hearing his thoughts on the next OS version on ATP.