Last Build Date: Fri, 29 Apr 2016 14:12:30 -0500
Sun, 27 Dec 2015 08:25:49 -0600
Yesterday I wrote this on Twitter and it got a bunch of love:
How you could tell a site was well-crafted:— Adrian Holovaty (@adrianholovaty) April 27, 2016
2002 all-CSS layout
2003 nice URLs
2016 works offline w/ serviceworker
Much better. Thanks, Alex!
Hope this helps somebody. And even if it’s not relevant to you, I hope this writeup gets you thinking about new things you can do with service workers!
Tue, 08 Dec 2015 12:08:26 -0600I recently moved from Chicago to Amsterdam and wanted to keep my American phone number, for two reasons: To be easily reachable by American friends/family, and make free calls to the U.S., while I’m in The Netherlands. To retain possession of the number, so I can port it back to an American phone company when I return to the U.S. The web has some scattered tutorials on this, but nothing to my liking. Here’s how I did it, using Google Voice. Total cost: a one-time $20. (Note: you can do some, or all, of this from the U.S. before you leave. If you wait until you’re abroad, you’ll need to use a VPN for the Google Voice step.) First, create a free Google Voice account. Important note: if you’re already abroad at this point, you’ll need to use a VPN such that your web browser is located on a U.S. connection; otherwise you won’t be able to create a Google Voice account! (If you’re technical, I recommend using Sidestep for the Mac, which simply forwards your web traffic through an SSH server of your choosing.) With that in mind, it’s easiest to do this step when you’re still in the States. Make sure your American SIM card is in your phone. Then, in Google Voice, choose “I want to use my mobile number” and follow the prompts to port your existing number to Google Voice. Their system will call your American number to confirm you own it. (The call lasts only a few seconds, so the exorbitant international roaming charges won’t be too bad.) After you’ve done that, you won’t need the American SIM card anymore. Next, pay Google the one-time $20 porting fee and provide the account information for your American phone number. It will take 24 hours to port into Google Voice, at which point you’ll get an email from Google saying it’s been ported. You’ll likely also get an email from your American phone provider saying your account has been closed. (If you’re still under contract with your American phone provider, you’ll have to pay early termination fees.) Once the Google Voice porting is done, you can set up your phone to send and receive calls using the number. If your phone is running iOS (sorry, I only have an iOS device, but I imagine Android instructions are similar), install the Google Hangouts app. Don’t bother with the Google Voice app — it’s deprecated, apparently. In the Hangouts app, sign into your Google account. You’ll use this app, rather than the native phone app, to make and receive calls with your American number. It took me much time and frustration to realize that, by default, the app allows incoming calls only from numbers you’ve whitelisted. I recommend tweaking the app’s settings so that any phone number can call you — hence mimicing a “real” phone’s behavior. Here’s how to do that: Configure notifications to notify you for any incoming call or SMS. In the “Phone number” settings, switch “Incoming phone calls” and “Messages” on. Change the “Allow calls” setting to allow calls on wifi and cellular. Note that calls will use your cellular data plan whenever you’re not on wifi. Turn on “Sync contacts” to give the Hangouts app access to your contacts’ phone numbers. Another tip: in your phone’s native contact list (which is synced with Hangouts), make sure your American contacts’ phone numbers begin with +1. Example number: “+1 (312) 588-2300.” Otherwise the calls and texts won’t work in Hangouts while you’re out of the country. Once you’ve done these things, you’ll be able to use your American number “normally.” Here’s how: Whenever somebody calls your American number, you’ll get a notification from the Hangouts app. Just slide/tap it to answer the call. Whenever somebody texts your American number, you’ll get a notification from the Hangouts app. You can respond in the app. Whenever you want to call an American number, use the phone dialer (or contacts list) in the Hangouts app. Whenever you want to text an American number, use the Hangouts app. Whenever somebody [...]
Fri, 18 Sep 2015 13:54:16 -0500
Apple’s new iOS 9 apparently has broken web audio in some situations. Audio no longer plays on Soundslice in iOS 9 Safari, and I’ve seen one other report of this. I’m trying to figure out a solution; let this blog post and comments serve as a repository for fixes/experiments/knowledge.
I suspect Apple has tightened its draconian “Audio can’t be played unless it’s directly initiated by a user interaction” algorithm somehow, but I’m not sure how. If you have any ideas or fixes, please post a comment here, and I will update this post accordingly.
UPDATE, Sept. 19: There’s a workaround! Use
mousedown instead of
touchstart to initiate audio playback. See comments below.
Mon, 09 Mar 2015 10:00:00 -0500If you build web sites that use HTML5