These are the apps you want to try on your new iPhone

iOS 8 offers a whole range of features that let apps extend themselves — into other apps, and even into widgets inside notification center. This is a great writeup of how exciting things are getting in the ecosystem for both new and old apps alike

On Morning Rituals

Rituals are important. I’m a creature of habit. But, I had never characterized some of the things I do as rituals.  I read some posts by Casey Liss and David Smith that were not unlike some of the things I do.  I like repetition. I like not having to think about a decision or even make one to begin with.  Similar things for breakfast each day. If I cook a big meal I’ll have the leftovers for subsequent meals until they are gone. Having these rituals help me get my day going. They let me know that all is…

The Rise and Fall of Communication Mediums

Brent Simmons: My blog’s older than Twitter and Facebook, and it will outlive them. It has seen Flickr explode and then fade. It’s seen Google Wave and Google Reader come and go, and it’ll still be here as Google Plus fades. When Medium and Tumblr are gone, my blog will be here. The things that will last on the internet are not owned. Plain old websites, blogs, RSS, irc, email. Marco Arment: This is why I’m still championing blogs, RSS, and using your own domain even though supposedly “everyone” has moved…

Don't Skimp on Coffee: A CTO's Plea

My friend Matt, CTO of DoSomething.org, posted a great article on the importance of coffee, ritual, and how they relate to the happiness, productivity, and health of your company If you’re looking for an office Rosetta Stone, a way to assess company culture across industries, coffee is it.

Podcast Reruns

Last year, I had been plowing through old episodes of a few Tech podcasts. I was able to get through all of Developing Perspective (they are short) and was working on Build and Analyze.  I’m halfway-ish through B&A, but my listening has died off in leu of new episodes of other shows. I’ve missed listening to it.  The reason it dropped of is playlist related. Everything I listen to is in one playlist that I prune from time to time. I didn’t add B&A to it because I didn’t want to have to download each episode…

“make” time

We’re often told you need to “make” time, a phrase that rankles me. Drives me nuts as well. Our days are already packed. "Making time" isn't making it; it's prioritizing time. If you make time for something, you are acknowledging that the thing you are making time for has a priority at the expense of something else. That’s why it’s important to know how long something takes, or to break it down into micro projects. By doing so, you may discover that you can reclaim time “might” by being more efficient, or…

UITableViewCell Action Swiping in iOS8 and Swift

Mail.app in iOS7 brought swiping cells to the inbox. The iOS8 beta added a 3rd button to it.  Apple has also introduced an API to assist with creating this effect: UITableViewRowAction. Prior to this, I used SWTableViewCell. Below is how to get the basic functionality working. Please note that you have to implement the 2nd function whether it has a body or not I can’t get the (-) delete indicator to appear when I put the table into edit mode though. Setting UITableViewCell.shouldIndentWhileEditing = NO is…

How to Restore a Time Machine Backup From a Synology NAS

My Sunday morning started off like this: “There’s an error with the EFI system partition’s file system.” Well today’s off to a great start // @siracusa — Tim Broder (@timothybroder) August 3, 2014 My laptop wouldn’t finish booting. All I got was a backlit, black, screen.  I went through numerous combinations of booting with option, cmd+R, cmd+shift+R, un-mounting, ejecting. In all methods, trying in vain to get the Disk Utility to verify and repair the hard drive. I tried from Recovery Mode and a fresh OSX…

Twitter or RSS

If you had to choose between only reading Twitter or only reading weblogs, which would you choose? Losing Twitter would be a bummer for a lot people, but losing weblogs would decimate the web. We should do more to strengthen weblogs and RSS because they are the foundation for so much of the most important writing on the web. #RSS4LIFE Joking aside, I do get a lot of my news from twitter these days. I would say half the articles that I'd be interested in reading (dumping to Instapaper from Reeder or Mr…

The Most Dangerous Word In Software Development

“Just put it up on a server somewhere.” “Just add a favorite button to the right side of the item.” “Just add [insert complex option here] to the settings screen.” If any of these sentences rings true or makes you cringe, read this article.

Dismiss a Modal UIViewController created in Interface Builder

There are a number of posts on this subject on Stack. They involve re-instantiating (this seems slower to me) or yanking the view from a UIButton (this feels dirty). I’d rather just update the UIBarButtonItem that I already have: 2014-07-27_1826 All I needed to do, was attach the appropriate target and action to the UIBarButtonItem:

Using PonyDebugger on a device

PonyDebugger is awesome. I use it mostly for Core Data debugging. Most of the time, I find it easier then firing up SQLite Professional. When using the simulator, hitting localhost:9000 is fine. On a device, not so much; you need to hit your machine. xip.ioto the rescue! What it is: xip.io is a magic domain name that provides wildcard DNS for any IP address. We use this heavily at work if the machine we’re on isn’t hooked up to a subdomain or Vagrant Share. We can use this wildcard to have our iPhone hit…

UITapGestureRecognizer in Swift

I have a subclass of UIView that has a label: I want to attach a Tap Gesture to it:

Creating a conforming delegate (UITableViewDelegate) in Swift

This tripped me up for a bit so I hope this helps someone. I started out with this class, thinking I could just continue on my merry way. This errors in Xcode with: "class does not conform to NSObjectProtocol” Hmm ok, but much there yet, what did I miss? This should definitely be a class; not a protocol (I have methods to implement), not a @class_protocol (wrong use, based on the docs), hmm. This obviously behaves different than in objective-c. What is inherent in the obj-c version of this that would…

Why I turned off email notifications

Just about a week ago I had an epiphany: Email is a constant. It will never end. More often than not nothing is actionable I made a quick change — turn off all notifications for email. None shall pass. NO EMAIL NOTIFICATIONS. I've been doing this for about a year now on my phone and it's amazing. I've been doing it for 3 years on my laptop. I don't know why I didn't do it on all my devices sooner. (I don't get outlook or gmail notifications). It lowers stress and helps me focus on actual tasks instead of…

Coding Under Par

when it’s midnight and I’m on a perceived roll with some coding challenge, there doesn’t appear to be any stopping me. I “have all night,” or at least that’s what my monkey brain says. Of course, the smarter half of me knows I should be getting calling it a day and getting some much-needed rest. I hear this. As I get older, and keep to a rigid sleep schedule, I tend to find myself being useless after 9pm. I do miss the old days io burning through until 2am. Now that flux exists to take care of the circadian…

Looping through subviews and downcasting in Swift

I've been playing around with Auto-Layout. This snippet was helpful to see what constraints were set on what views in my View Hierarchy. Getting the downcast right on the subviews Array took a few tries:

Functions or Read-Only Properties in Swift?

I’m not sure which is better.  If it's returning something that is directly tied to the class: a slice/dice of properties is already has, I'm leaning towards properties. Because of the many examples I feel like read-only properties are the way to do.  I’m not the only person wondering, so that’s validating. Property: Function:

Playgrounds in Swift are Awesome

Man alive, I missed this from Python.  More live editing, less edit+build+run. 2014-07-12_1822

Parsing sentences from a String in Swift

I’ve been looking at how to parse sentences from text recently. While I’m still looking for a more Machine Learning approach, I found NSStringEnumerationBySentences which can get me there faster (for now).  I need to get all of the sentences from a given String.  This could easily be an Objective-C category method.  But, I’m trying to learn as much Swift as I can. I haven’t played with extensions yet. Here we go. is what I’ll need, but I need the extension first: Fiddling with Swift’s closure syntax for a…