Fix the Camera on a Mac Without a Reboot

Via my colleague Jonathan Sadowski, a simple command to run in Terminal to fix your Mac’s camera when it’s not working properly.

sudo killall VDCAssistant

Sometimes the video feed is just black or blank — other times you might see an error like “There is no connected camera.”

After you run that command in Terminal, the camera’s process restarts and the camera should work again. No need to reboot the entire computer.

Note: the command requires entering your administrator password.

Update: if you use the Alfred tool on Mac, Nick shared An Alfred workflow to reload the Mac Camera.

iPad Pro as Primary Work Computer

For most of July and August 2017 I’ve used an iPad Pro as my primary work computer. Here are my thoughts as I wrap up the experiment.

I chose a 9.7-inch iPad Pro with the Apple Pencil and Smart Keyboard.

Why do this? Two reasons. First, as an empathy challenge to look for quality issues in the products I work on for Automattic. To truly feel the pain of working from a mobile device, that’s more common than a laptop or desktop computer for many of our customers. Second, to try it as a viable alternative for normal work. As Matt told us in a work chat, the iPad Pro is “always on, super fast, split screen, always connected [with available SIM option and a paid mobile broadband account], long battery life, fantastic screen, works on desk or lean back.”

For other perspectives, see Beau Lebens’s recap Working on an iPad from late 2016, and Paolo Belcastro’s iPad-only experiment in 2014. I also recommend this review on Quartz: The new iPad Pro is pretty great—if you accept it for what it is.

Below are my notes in journal form. I used the iOS Simplenote app to document my findings as I went along.

July 1, 2017

Which apps support Pencil? How can I use it to draw? What about annotating screenshots? Keyboard doesn’t appear so can’t use TextExpander; unless I can configure a shortcut key instead. Using iOS text replacement works instead.

July 8, 2017

Tried out Penultimate based on Beau’s recommendation. Sweet app, just need to work on my penmanship. Could help me be more visual in my communication, Maeda style. Note up things and not just in text. Mark up images, highlight things, share graphics.

Right away I miss things from TextExpander like ttime to put in the current time stamp.

This keyboard will also take getting used to; it’s tiny! I wonder if I could connect my bigger Mac keyboard to it temporarily. It’s a bit harder to type, so might lead to wrist or hand strain versus the iMac keyboard which takes almost no effort to push down the keys.

I miss in-page or in-app search. Say I’m editing a Dropbox text file, and want to see if I already mentioned a word. On desktop I’d Cmd-F but on iOS I can’t seem to have the same function, so might duplicate some things, and lose time scrolling around. Simplenote search is nice, though.

Might be a time-waster to not have Cmd-F for websites — I use that a ton on P2s and stuff. Note, I discovered that both Chrome and Safari apps support it, but not all iOS apps do.

Notes on Simplenote or Dropbox for text editing: bigger text size in Simplenote is nicer to read. Simplenote saves immediately, Dropbox I could forget to click Save.

What are other amazing notes apps? I might switch back to Simplenote for everything — tags instead of folders. And archive things in Dropbox folders if not an “active” project or team. Alister recommends Bear, but it’s iOS only and I have an Android phone.

I really like the Penultimate app. Lined or plain paper, grid layout; easy to erase and highlight. The only thing to learn is a smoother sharing flow. Currently trying Evernote to sync the images back to my other computer.

Now trying with my Logitech K811 keyboard, the action is super nice but the whole thing feels huge (the keyboard). Could work. Wouldn’t travel with it, though, so getting used to the small one is probably smarter.

July 8, 2017

I miss accessing the internal employee directory to look up people and teams at work, and other internal tools. Might need to set up VPN for some things, but turns out on iOS using our internal proxy requires a jailbreak.

Annoying quirk of iOS that start of sentences require capitalization; even in text documents where I want to say iOS it fixes it. Also my personal todo format with lowercase O is hard to do. 🙂 Hack: type two letters, then backspace to remove the uppercase one. IiPad then delete first I, to leave iPad.

I love the iOS text replacement for quick-and-easy TextExpander replacement. Also like touching the suggested spellings in the tablet’s bottom bar. I imagine this is what the Touch Bar on the new MacBooks is like, but haven’t used one yet.

July 10, 2017

Booked a flight, bought a jacket on REI, read P2s, posted to Delta P2, answered emails, and edited some Google documents. Not bad. Tried out Zoom and Skype — the camera angle might be less than ideal. Also can’t use my Sennheiser headset because it’s USB only.

For using this while traveling will want to set up a SIM card for broadband. Or try an MacBook Air or MacBook instead. The touch screen is super cool, though — and I’d mostly just need something on a plane once in awhile.

July 11, 2017

It’s naturally quite hard to open links in Chrome. The launcher in the Share menu only gives the option to use “Add bookmark” or “Add to reading list” — when I simply need “Open this link in Chrome” as the action. Exception to this are Google apps; Gmail gives the option to launch in Chrome or Safari, with the ability to save the preference for all links. Kind of like the Choosy app on OS X used to work.

Using the native app in iOS actually feels… behind Calypso ( in Chrome webview. I was surprised by that. Aesthetically, and also when using Reader for internal P2s and comments, the functionality feels clunky in the app. Seeing comment replies together with the post body feels more natural.

I miss RescueTime and other timing apps. They don’t work on iOS apparently due to security and privacy for apps and usage.

Split screen is super nice. Simplenote is so smooth — such a beautiful experience on iPad.

I keep running into the first letter capitalization default setting with iOS. Trying to type “w00t” is a challenge.

Screenshot from a P2 theme comment form:

2 lowercase-first
Can’t seem to w00t, just W00t.

Settings change in iOS:

3 settings
iOS settings screen for keyboard settings.

Doesn’t seem to stick for first letter auto-capitalization. Hmm. Still using the first two letter hack I mentioned before.

July 13–21, 2017

Using the sketching apps with Pencil fun and inspiring in a way I didn’t expect. Sync via Evernote is nice, sometimes exporting to Dropbox for reference in situ. The freehand drawing makes me miss type setting, though, since that always looks great. My attempts to liven up a blank white page with a digital pen are sort of terrible so far.

Here are two examples from Penultimate:


I’m loving the autocorrect on this OS. It’s pretty slick. When you mistype something, you just keep going and it works. The only thing I’m noticing is my thumb on the space bar is getting a bit tired, just today.

July 21, 2017

Quick notes today about using the iPad Pro as a main machine. Harder than I expected to move text around, though OK on iPad (really bad on my Nexus 6P phone when trying to move a flight itinerary by copy-paste from a web page to Simplenote). Annoying quirk with first letter capitalization in iOS is still bugging me. Oh well.

July 27, 2017

Loving the Cmd keyboard shortcuts much like on desktop: Cmd-tab to switch apps, Cmd-space to search like Spotlight, Cmd-Shift-3 to take a screenshot, Cmd-h to go to home screen directly. Tip: hold down Cmd to see the available shortcuts for the current app.

July 28, 2017

Publishing a blog post to was a bit slow, trying to grab a YouTube video and link to slides. I ended up with a lost post content (was able to copy the HTML first). Frozen editor pane, couldn’t save or recover it.

I use keyboard controls a lot, and certain ones don’t work on the iPad: Cmd-d to delete from start of a line, when using Cmd-L for address bar, choices come down in a menu — can’t use arrow and Enter like on desktop (Chrome, Safari).

August 1, 2017

Biggest issue after one month is ergonomic: my neck and shoulders hurt because of the angle; typing on the small keyboard is harder on my wrists. I love the laser focus with 1-2 apps at once, portability and battery life, drawing with Pencil, and the beautiful screen. I didn’t purchase a mobile broadband plan for the available SIM option — just used WiFi everywhere.

Because of the ergonomics I wouldn’t consider using this full-time as a main computer. Besides the neck and wrist discomfort, there’s the issue of the camera angle. It’s hard to get it right — straight at my face, slightly down.

Aug 8, 2017

My coworker Marek mentioned the 10.5″ iPad Pro has a wider keyboard; could be a better fit. I might just get another laptop next time, though — to continue coding when needed, as well as access to internal tools.

As I mentioned before, I love discovering new keyboard shortcuts by holding down the Cmd key. With Chrome for example, you see all the options and don’t have to memorize them. Just remember holding down the Cmd key.

Screenshot from the GitHub website, using Chrome:

4 cmd-shortcuts
Chrome browser’s Cmd key shortcuts for iPad Pro.

Aug 9, 2017

Used the iPad on the flight from Europe back to the USA. Plugged into power, so didn’t test the battery life. Went well with Zoom, was able to join a team meeting even with the inflight GoGo wireless. The form factor is nice and compact, making it ideal for small plane seats.

Nice fit on a small plane seat, allows lots of reading and writing when you need the focus. I think at home, or with a nice office setup, it’d feel restrictive. For my coworkers that travel a lot, though, could compete with a lightweight laptop for primary travel machine — especially if a slightly bigger version. But, a touchscreen laptop like Surface Pro could be the best of both worlds. Next version of the Touch Bar? iPad and MacBook merging someday?


2017-08-09 16.06.23
Using the iPad Pro on a Delta flight over the Atlantic, on a team call with Zoom app.

For developers and designers it’ll probably never be powerful enough. For writers, it probably would be perfect if the ergonomics were better: screen at eye height, comfortable hand position for keyboard. Screen resolution and brightness is superb, however. Using Simplenote and Google Drive for document editing is a pleasure.

August 13, 2017

To wrap it up, I’ll probably use the iPad often, just not as a primary machine. Supplement my visual sketch work, reading, newspapers and magazines; great for travel and tight spaces; ideal for writing and reading when focus is at a premium. Overall, it’s not a full replacement for a laptop because of the bad ergonomics over long periods, and the lack of full access to necessary work tools.

Accidental Contrast with Universal Access in Mac OS X

I had a terrible hour or two last night where my laptop screen went bonkers, no color contrast and my usual color schemes in TextMate and Terminal weren’t working. My eyes hurt trying to make out the text.

At first I thought I’d triggered something with a new application, or maybe my monitor’s brightness was wonky. That led to checking my color calibration, taking eyglasses on and off, and asking for a second opinion from my wife, “Does this look faded or washed out to you?” She confirmed it. “That looks really hard to read.”

I slept on it, trying to think of what apps or settings I’d tweaked recently. After a quick Google search this morning, I found out I’d accidentally upped the system-wide Universal Access contrast with a keystroke combination of Cmd-Opt-Ctrl-,—via this result. Turns out that with the Dvorak keyboard layout this keystroke combination is really close to Cmd-Opt-Ctrl-e, the keys used with window-resizing app called Divvy—an app I invoke often.

If you see whitewashed, faded colors in Mac OS X chances are you also turned on the “Enhance contrast” settings in System Preferences → Universal Access. To fix it go to that pane and change the slider back to “Normal”—or hit Cmd-Opt-Ctrl-. (with a period instead of a comma).

TextMate Power Tips

I recently gave an ignite-style talk about TextMate power tips, in the context of craftsmanship and tools. In the talk I only had time for a few of my favorite tips and tricks, which I’d like to share with you—plus a few more.

Projects & Opening Files

mate Quickly open files from the command line—a simple yet powerful technique. You can also use it to send output from other commands into a TextMate document. For example, take stdout and open in TextMate: ls | grep foo | mate. Or just open a file: mate foobar.txt.

Dragging files or folders to TextMate icon on the Dock creates a new project with the selected items. Running mate on a directory or set of files will make a new project in TextMate.

Cmd-t Find a file in a project quickly. Super handy if you have tons of tabs open, or files nested deep inside folders.

Example of Cmd-t to open a file quickly.

Cmd-Ctrl-r Reveal current file in project drawer. Great for when deep down in a nested project and you need to see the context.


Ctrl-< Make an HTML element from a word file. This is smart enough to know the self-closing tags (img, hr, br, input).

Ctrl-Shift-w Wrap selection in HTML tags. Useful for wrapping a bunch of lines with lis when making a list.

Ctrl-Shift-l Wrap text as a link, taking URL from clipboard.

Cmd-Opt-. Close an element, based on the opening tag.


Cmd-Shift-c Insert a color value from the OS X color dialog, adding it to the current document as a hexadecimal value.

Ctrl-q Format CSS, also works in other formats like HTML.

! Type an exclamation point then use the tab key to insert !important quickly.


Cmd-Opt-] Align assignments for code prettification, like in arrays or variable declarations. Select the lines you want to align, and then invoke the command.

Ctrl-Shift-' Toggle single/double quotes. For example, if your cursor is inside the quotes on the word node in code like this: array( "node" ); you would use this command to toggle to single quotes.

Ctrl-Shift-v Check syntax, also works in other formats.

Cmd-/ Comment/uncomment a line or block, also works in other formats.

Esc Complete a word based on the current document. I use this one often, especially for super-long variable names in PHP files; I just type the first few letters of the variable and hit Esc until I find a match.


Ctrl-u Convert text to uppercase. Use Ctrl-Shift-u for lowerase and Ctrl-Opt-u for title case.

F5 Sort lines in the document, with an option to remove duplicates.

Ctrl-s Inline search: keep hitting the same command to find the next result in the document.

Opt-click Select columns and edit. Multi-line editing with column selection in TextMate is pretty sweet. This functionality can save lots of time by editing multiple lines in the document at the same time. It’s hard to explain with text and a screenshot, so here’s a video example:, look for Working With Numbers & Columns.

Commands & Snippets

TextMate is at its best when you extend it with your own snippets and commands to go along with all the great ones that come bundled. For example:

utc Add a UTC time stamp in any file, using `date -u +%D\ %R` UTC as the snippet triggered when you type those letters and hit tab.

bbug Add border: 1px solid red; to a stylesheet for a quick CSS debug in a browser.

See Using TextMate for WordPress Code Cleanup for two useful commands: removing trailing whitespace from files and changing spaces to tabs at the beginning of lines.

Finding commands and snippets within all the options available in TextMate can be challenging—unless you commit their shortcuts to memory. Enter one of my most-used keyboard shortcuts in TextMate (bundles are groups of commands and snippets).

Cmd-Ctrl-t Look up a bundle item, greatly useful if you forget a shortcut, or need to find something obscure. It only shows results for your current file type, but you can override it by typing in ALL CAPS.

I use this one all the time since I don’t want to memorize the shortcut for every possible command or snippet. Instead I just start typing a few words, hit this command, find what I need in the list, then apply it with Enter.

Example of finding a bundle item with Cmd-Ctrl-t.

Much More

There is so much more to TextMate, of course. Macros, Subversion integration, lots of great add-ons like AckMate and ProjectPlus, and the list goes on.

Further reading:

Change GNU Screen Keyboard Command

I changed the command character for screen from Control-a to Control-b recently, after switching to a wireless Mac keyboard. On this small, portable keyboard—which is the same layout as most Mac laptops—there’s only one Control key, and it’s on the left side of the keyboard.

The weird angle to hit Control-a was hurting my hand. Gone now is the left-side contortion I was forced to make to strike with my pinky and ring finger.

It’s pretty easy to change the command key mapping, just add escape ^Bb to your screen config file (usually located in your home directory). Here’s what my .shellrc looks like:

# Make the shell in every window as your login shell
shell -$SHELL

# Instead of Control-a, make the escape/command character be Control-b
escape ^Bb

# Autodetach session on hangup instead of terminating screen completely
autodetach on

# Turn off the splash screen
startup_message off

# Use a 100000-line scrollback buffer
defscrollback 100000