Mostly, when my phone rings, it’s because something has broken somewhere. Or because someone wants to sell me something I don’t want.
I’m sure most IT managers can relate.
But sometimes my phone rings with a good news story, and it’s wonderful.
One example: this morning’s call from a teacher to tell me he was using Skype to include a student in his class despite being sick at home. It was his first time teaching via Skype, and he was chuffed.
I was, too. All those other calls are worth it when you get these.
I love my job.
Apple = better products + better marketing
I’d say this comparison between ads for iPad mini and Microsloth Surface is spot-on. Not that I don’t love me a clicky magnet ;)
A “profound shift” in Zuckerberg’s attitude, eh.
No wonder I’m ignoring so many more sponsored posts on Facebook.
“Apple Event Checklist”
This pretty accurately describes what I expect to be doing from 2AM tomorrow.
Don’t tell my wife, but I’m starting to fall in love with Sublime Text 2. It’s the text editor I’ve been looking for since I’ve been editing text.
It’s fast (instant startup, no lag ever). It’s truly cross-platform (looks, feels and runs identically on OS X and Windows). It works beautifully out-of-the-box, but there are plugins galore. It has split windows. It has code completion. It’s pretty.
I could go on.
Anyway, having written my own PHP and JSON beautifiers, I was looking for a quick-and-dirty way of integrating them into ST2 (i.e. without wrapping them up in a dedicated plugin – I’m not fluent with Python yet). Turns out ST2’s build system is almost perfect for this.
Go to Tools > Build System > New Build System, and drop something like this in the window that opens:
"cmd": ["php", "/path/to/pretty.php", "$file"],
Now, assuming there’s a PHP CLI binary on your path, you’re done! Press Cmd+B in a JSON file and it will be “built”, i.e. formatted.
There’s only one shortcoming I’m aware of: Sublime Text 2 doesn’t check for changes in the source file post-build. So you’ll need to use your favourite method to force a file reload.