End of an era


I removed Eucalyptus from sale today. It’s been a great run.

I wrote more here.

Read more…

Re: Stewardship


Editorial note: Yesterday, I sent a draft of this post to Mattt Thompson, the author of the article this is a reply to. He was kind enough to send a very gracious reply. I thought about reformulating the post in an attempt to express or explain our differences of opinion more directly, but decided that I would be doing him a disservice by doing so. Instead, with his permission, this post contains my original draft, followed by his reply. Please do read both.

Before I start, I want to affirm that I’m a big fan of NSHipster, and of Mattt Thompson. Both are big assets to the Cocoa community, and I don’t mean anything here to detract from that.

Having said that (and you can perhaps see this coming by now) the latest NSHipster article, Stewardship, concerned me when I read it. I’ve tried to get my feelings about it to fit in 140 characters since I read the article yesterday, but have failed, so I’m replying here. Again, no animosity is intended; if the article hadn’t been from a source I respect so much, I doubt I’d be bothered to reply at all.

Go ahead and read Stewardship too, if you haven’t already, or this might not make much sense.

Perhaps Stewardship isn’t intended to be concerned with all open source, and is just about open source projects - which in my mind is a higher bar. If that’s true, I find less to fault in it. An open source project is generally understood, I think, to be a grander thing than some open source code. It’s easy, though, to read the article as being intended to apply to all open source code. It starts, after all, like this:

It’s not enough to dump a pile of source code somewhere and declare it “open source”. To do so misses the point entirely.

That’s very easy to read as “you should follow the steps laid out here, or you shouldn’t share your code”.

I disagree with this. If someone wants to post code they wrote online, code that they find useful and think others might find useful too, they should go ahead and do it. There should be no expectations placed upon them - beyond, perhaps, that they accompany it with a license stating how it can be used.

There is, I think, a growing sense of entitlement in the Cocoa community - perhaps in the programming community generally - when it comes to open source code. I think this is bad for the community overall, and I think that the Stewardship article could contribute to this atmosphere.

If you find code online that’s useful to you, that’s really great. It’s wonderful, yes, if the author is responsive and friendly. If it’s stewarded in a manner akin to the one presented in Stewardship, all the better. The people who wrote the code you want to use don’t owe you anything, though. No matter how you find their code to be, they’ve already given you more of their time and effort than they had to. You have no right to expect more.

I don’t want people to be put off posting code by the idea that there is a big checklist of things they have to do first, and if they don’t fill all the boxes first they’re somehow being irresponsible. I don’t want people who do post code to be harangued afterwards about not having followed this checklist beforehand - and I fear that might happen. The Cocoa community - of which, again, NSHipster is a wonderful, valuable part - is a friendly, welcoming one. I would not like ideas like the ones that could be drawn from the Stewardship post to change that for the worse.

As I said in my note at the top, I sent the above post to Mattt yesterday, and we had a brief, friendly, conversation about it by email. I think we do have a genuine difference of opinion, specifically with respect to obligations. It’s perhaps exaggerated by semantics though, and I can understand and respect what he has to say on the matter. To avoid further editorialising and perhaps inadvertently misrepresenting his opinions his very eloquent full reply is below.

In writing that article, this tension between freedom and obligation that you identified is indeed something that I thought a lot about. The way I reconciled this was to create a distinction between “giving something away for free” and the social act of “contributing open source software” (where the former is a necessary, but not sufficient condition for the latter).

Within programmer communities, people freely give away things ranging from Stack Overflow answers and forum posts to gists and blogs. While this may include code (from snippets all the way to reference implementations), it is still not “software”. Code by itself is just encoded knowledge, and like any other knowledge, any notion of obligation to its originator is contingent on the social context (“say thanks”, “be respectful”, etc.) Software has a license, and users; a context and ecosystem and purpose. What I’m arguing in my Stewardship article is that Software does indeed oblige the creator to the responsibilities outlined.

Whether this creates a sense of entitlement is a good question, and we should remember to check this as a community. However, I’d say that having a README, license, and reasonable integration with a package manager is as essential to the value of software as the code itself.

Stewardship creates a virtuous cycle, where well-written software attracts good people, who then go on to contribute good software. When things suck and software doesn’t work, the best people leave; everyone in the community loses.

Yes, stewardship raises the bar for contribution, but it also lowers the bar for participation. I believe that this tradeoff is essential to the success of a programming community.

Thanks again to Mattt for his reply. I am glad to be part of a community where things like this can be respectfully discussed - even if opinions are hard to change - and I’ll certainly still be looking forward to reading the next NSHipster article.

Read more…

How we made a trailer for our iPad game without spending any money


Coolson’s Artisanal Chocolate Alphabet, our iPad game, has been out for almost a month now! (You should buy it before it goes up in price on Friday :-).

This is the first of hopefully at least a couple ‘behind the scenes’ blog posts about its creation. This one’s about its trailer video, and how we made it on a budget of $0 1.

Background

We submitted Coolson’s to the App Store in mid July, hoping it would be reviewed in a week or so, and knowing we’d need to have some publicity and marketing materials ready. The most pressing thing to do was create a web page. All the best game web pages have a great trailer in them, so that people can get an idea of how the game feels to play - and hopefully be enticed to buy it. A good trailer can also be great for word-of-mouth publicity - people can send it to friends or post it on Facebook or Twitter.

We could just have recorded screen video from the simulator - and for some apps this works great (for my iPhone app Eucalyptus2 it gives a great ‘walk-through’ feel to the video). For Coolson’s, though, we wanted to show the game on a real iPad - especially in its two-players-across-a-table mode. We also thought it was important that people see not only the gameplay3, but also see some of the artwork and cut scenes, and be left with at least an impression of the hand-drawn, made-on-iPad style. The video needed a memorable hook too - something that hadn’t been done before.

We came up with the idea you can see above - Em’s Cosmonaut-wielding Paper drawing interspersed with gameplay video. We knew that getting what we imagined from our heads into the video would necessitate good quality recording of a real iPad at professional looking HD resolution. We’d also need great quality screen recording.

Here’s how we did it.

Live-action iPad recording

The camera recording setup We first tried to find an HD camera. Could we borrow one? Should we buy one? We tried a friend’s GoPro. It’s a great camera, but the fish-eye was bit too much.

We realised that we had supposedly-HD cameras just lying around. iPhones! Perhaps we could just use them? You can see the setup we came up with to try this idea out in the picture above. That’s an iPhone 4S elastic-banded to an GorillaPod, elastic-banded to a bench that’s sitting on a table. It’s set up next to a big window, for plenty of natural light.

The video recorded by the iPhone 4S was pretty good, but the focus and exposure kept changing, especially when Em drew on the screen and her hand moved in and out of shot. We wanted to be able to seamlessly edit the recorded video afterwards, and the constant change in appearance made that impossible. Could an app help?

We tried more than a few apps - and settled on Camera Awesome. It’s a great app that, importantly, lets you set focus and exposure separately, before beginning recording. Just tap with two fingers, then drag the exposure and focus points around - easy. One last variable - even with pretty consistent light, we had to set the brightness manually in the Settings app, and turn off Auto-Brightness to keep things stable.

This setup worked really well. We ended up with great looking, HD-resolution video. As I said, we used an iPhone 4S. I suspect an iPhone 5 would give even better quality video, and an iPhone 4 might even have been acceptable, since there’s so much light around.

Screen recording

The screen recording setup We wanted to include full-screen video from the iPad in the trailer, intercut with the live-action video. Previously, I’ve just recorded the simulator with Screenium to get videos of apps, but I couldn’t get a non-jerky video of Coolson’s - I think there’s just too much going on on-screen at once and the extra overhead of the recording means that it’s not possible for it to be smooth. Even if recording from the simulator worked, it’d still be hard to intercut it with the live-action shots. It would be better to get a recording of the iPad as it was being used.

The obvious solution is AirPlay - set the iPad up to mirror to an AirPlay receiver app on the Mac. We tried a few receiver apps, and the one that came out on top was Reflector - it even has the ability to save the AirPlay stream direct to a QuickTime movie, cutting out the step of recording video of the Mac’s screen.

Our hopes were high, but unfortunately videos recorded this way proved very glitchy. It would work smoothly for a little while, then start being jerky, or the audio and video would get out of sync.

Crestfallen, we experimented a bit. We found that moving the iPad and the Mac closer to our Wi-Fi base station improved the situation dramatically - we got rock solid, smooth recording. This was great news, but presented another problem: the Wi-Fi base station, connected to the cable modem, was in another, much darker, part of the apartment. We couldn’t move the recording setup there and still get high quality live-action recording.

We had the idea to set up an ad-hoc Wi-Fi network, distinct from the apartment Wi-Fi, just for the iPad and Mac. Mac OS X’s Internet Sharing can do that. It’ll only do it, however, if there’s an internet connection to share, and our internet connection was coming from the apartment Wi-Fi. Catch-22.

The solution? Add to our Heath Robinson recording setup an iPhone 5 connected to the laptop, sharing its mobile connection via tethering. This allowed us to share the tethered connection using the Mac’s Internet Sharing to the iPad, giving the Mac and iPad their own private Wi-Fi network.

This convoluted setup gave us super-stable AirPlay recording.

The whole setup

To go over the whole Rube Goldberg setup again, what we had in the end was:

  • An iPad being drawn on.
  • An iPhone 4S, elastic-banded to a GorillaPod, elastic-banded to a bench, sitting on a table, with its camera pointed at the iPad.
  • A MacBook Air in the middle.
  • An iPhone 5.
  • The iPhone 4S was connected to the MacBook Air, to keep its battery full.
  • The iPhone 5 was connected to the MacBook Air, sharing its internet connection via tethering.
  • The MacBook Air was sharing its internet connection (from the iPhone 5) with the iPad via WiFi.
  • The iPhone 4S was running Camera Awesome to record the activity on the iPad.
  • The MacBook Air was running Reflector, saving the received AirPlay video to disk.
  • The iPad was AirPlay mirroring to the MacBook Air.

Phew! Here it is in action:

After recording

A day of recording later - and a run of Image Capture to get the videos off of the iPhone - and we had a bunch of movies on the Mac. It was time to put the trailer together.

iMovie

We thought about looking for video editing apps, but we already had a copy of iMovie, so that was what we tried out first. With some caveats about some non-intuitive UI, especially around cutting between two camera streams (in our case, one camera stream and a screenshot stream), and around matching cuts to music, it turned out great. Em spent another day putting together the trailer, then it was ready to go!

We exported the video as H.264 with the highest quality settings, knowing that YouTube, where we planned to host it, would recompress it anyway.

Creating a YouTube account

If you want people to share video, you really have to host it on YouTube. So you need a YouTube channel.

Wow, was getting one complicated! We didn’t take notes, I’m afraid, but I hope you’re ready for this to take some time! The process is byzantine. I can’t imagine how many empty Gmail accounts and unused Google Plus pages have been created ‘by mistake’ by people just trying to set up a YouTube channel - not to mention people how many people must be using personal Gmail accounts to run the YouTube channel of the company they work for.

After setting up the channel and uploading the video, we associated coolsons.com with it and set it up to allow monetization, so that we could add a link to the iTunes store at the end of the video (again, we didn’t keep any notes here, sorry!).

Having complained about the setup complications, after getting everything set up, YouTube is great in use, and it’s really easy to embed a YouTube video in a web page nowadays.

Embedding the YouTube video on the coolsons.com web page

In contrast to setting up the channel, this was super-simple - thanks, Google! It’s just one iframe tag in the HTML. It’s easy to configure the player using URL parameters to get it to look and behave just the way you want it to. Full details are on Google’s page here.

Done!

That’s how we made the Coolson’s trailer. We’re really pleased with how it came out - I hope you like it too. I hope there’s some useful stuff there for others in a similar situation. To see it in-situ, take a look at coolsons.com.

If you like the look of Coolson’s Artisanal Chocolate Alphabet (surely!), you should buy it before it goes up in price on Friday!

You can also follow Ice Coolson on Twitter or Facebook. (We’re on Twitter too, Em’s thegrene, and I’m th_in_gs.)


  1. I realised a long time after this was published that we did spend a little money - Reflector cost us $12.99. Well worth it. ↩

  2. Warning, 2009-era web site with QuickTime plugin-based video. ↩

  3. Though we made a video of only that too, to send to reviewers as part of the press kit. All the videos can be seen in the YouTube channel. ↩

Read more…

Coolson’s Artisanal Chocolate Alphabet


Look, it's Ice Coolson!

What a week it’s been. What a few months, really!

If you’ve been following on Twitter or this blog recently, you’ll know that my wife Emily and I have been working on an iPad game. We’ve been testing it for a month or two with a great group of people, who have been a great help (thanks to all of them).

The game, Coolson’s Artisanal Chocolate Alphabet, is now done, and available to buy (that was a hint). We’re really pleased with how it turned out.

It’s sort of an action/word game, playable as a single player adventure, complete with story, or as a two player game online or across a tabletop. It features a monocle-wearing, hovercraft-riding hipster penguin named Ice Coolson We’re billing that as ‘whimsical’.

It was truly a 50/50 collaboration, and it’s been great fun (most of the time) working on it. The art was all done by Em in Paper, with a Cosmonaut stylus, and we collaborated on the coding. I think it may be the only game that uses all-iPad-produced (albeit Mac-postprocessed) artwork.

We’ve got a web page up at coolsons.com. There’s also a press release that I’m unreasonably pleased with (really, you should read it!).

I’ve held off writing about Coolson’s here for a couple of days because I wanted to find the time to write something good about the process together, and something heartfelt about how it’s been working with Em. I think that’ll have to wait though. I also have other plans for more technical posts about Coolson’s and the process of making it. Maybe I’ll also extract some open source things from it - stay tuned!

In the meantime, try it out - there are direct links to the app store on coolsons.com. If you like it, an iTunes review would be greatly appreciated. If you’re a journalist, we’d be pleased to send a promo code for the full version.

I’m off to sleep now.

Read more…

THIn


I open-sourced a little bit of, as I’ve been calling it on Twitter, “THE GAME” - that is, the game Em and I’ve been working on: “THIn”: Three easy ways to do things later in Cocoa/Cocoa Touch.

Read more…

THObserversAndBinders


I wrote some key-value observing (KVO) and key-value binding (KVB) helper classes for iOS and Mac OS X. Not much more to say about them than is in the ReadMe file on GitHub. I’m pleased with them. Comments (and pull requests) welcome.

Read more…

This dogma that web apps are the future


I think that the idea, and it was almost taken as religion, is that once we got to the point where you could write web apps, and that web apps would run everywhere, that was some sort of end point in the continuum of how software evolved. […] Not everybody, certainly not everybody, but there were a large number of people who I think sort of took it, and still take it […], this dogma that web apps are the future. And I think that people are still dug in on that, and that you see a lot of people and they look at the App Store and the success and they say “Well that’s just temporary. Soon, you know, web apps will take over that.” And I don’t think that’s true.

John Gruber, in The Talk Show, episide 20, from the Çingleton conference

I’m pretty sure that, if you’d asked me eight or ten years ago I would have agreed that, though it might not be the end point, it was only a matter of time before all consumer software was web based. I don’t hold that view any longer, but it didn’t strike how much my assumptions had changed me until I heard it articulated like this.

Read more…

Migrating Xcode SDKs


Lots of people don’t realise that you can copy SDKs from previous versions of Xcode to newer versions and still use them.

For example, with the release of Xcode 4.5, Apple no longer ships the iOS 5.1 or Mac OS X 10.6 SDKs, but if you still need them for some reason, you can grab them from an older install. SDKs are stored in the Xcode app bundle, in Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/, Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/, and Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/ - just copy them from inside your old Xcode to similar locations inside your new Xcode.

Note that this won’t give you the ability to do things like compile for armv6 or PowerPC, and it’s not a good idea to keep using the old versions of the SDK in the long run - better to switch to the newest SDK and set your deployment target appropriately to a lower OS version, but it’s useful when collaborating with others using older SDKs, or if you’re working on Mac apps that still need to use e.g. 32-bit 10.6 APIs (like QuickTime).

Read more…

My reluctance to join App.net


I’ve been wondering about my lack of enthusiasm for App.net. It’s certainly related to the $50/year fee, which seems a bit miserly. I can surely afford that, and I would like there to be a service that’s not beholden to advertisers as Twitter now appears to be.

Is it perhaps simply not worth $50/year to me? I don’t think that’s it. It’s a bit of a circular argument, but if all people - friends and peers - in my industry are all using App.net (as is looking increasingly likely), then, sure, it’s probably worth $50 to me - as is Twitter.

I think that’s actually the root of my worry though. It’s worth it to me and others like me, but at this price, it’s surely not attractive to all - especially those to whom Twitter doesn’t feel as ‘necessary’ as it does to me. Because of that, I don’t think it can be democratising in the way Twitter was (and is). No Arab Springs will fruit from communications on App.net.

Are there better ways? I would say yes.

One would be to allow users to sign up for free and charge developers of apps built on the service for access. This is also limiting, of course, but it doesn’t limit who participates in the service in the same way as the $50 upfront fee.

Another, and I would say better, way is a federated service like email. No-one (much to Facebook’s chagrin) runs “the email company”. Instead, email from all sorts of entities just works together using a common protocol. Federated Twitter-like protocols already exist. Of the the two I know best, the most high-profile is StatusNet, which is best known for powering identi.ca, and there’s also the newer BuddyCloud, which powers the synonymous BuddyCloud.com service. Both of these will interoperate with other providers using the same protocol. Unfortunately, neither of these protocols have caught on. They still may yet, but I don’t hold my breath - they lack the momentum that App.net seems to have generated, and I don’t see a way for them to build it.

App.net is a gated community in a dystopian society, not the altruistic public good it’s presenting itself as. Can’t we create a better society instead?

Read more…

Sparrow, promise, and feelings of betrayal


Google has acquired the development team that produces the excellent Mac and iPhone email app Sparrow. Development of the app is being stopped so that the developers can “[join] the Gmail team to accomplish a bigger vision.”

I Believe in Sherlock Holmes

Like many, I find this news disappointing. I bought both the iPhone and Mac versions of Sparrow. I use it daily on my iPhone, and intermittently on my Mac. It’s a great app on both platforms. I’ve been very happy with my purchase so far, but I have to admit I felt a little betrayed when I heard the news of the acquisition.

As a developer myself, my feelings disturb me a little. We do not know, of course, what the offer that the Sparrow folks accepted was, but I’ll freely admit that I could imagine selling Sparrow if I were in their place, with a good enough offer. I can certainly imagine accepting the right offer for Eucalyptus and its associated code. It’s hypocritical of me to feel betrayed.

With Eucalyptus, I’ve always tried to maintain the idea that what I’m selling is the app as it is. If it’s not what you want, don’t buy it, and we’ll both be happy. This doesn’t work, of course. We now buy software based on assumptions of what it promises to become, as well as what it is now. I still get emails complaining that Eucalyptus doesn’t have certain features, or doesn’t work in a certain way. The ones that unsettle me the most are the ones explicitly saying something like “I bought Eucalyptus to support its development, and you’ve let me down”.

I now feel like this about Sparrow, and I don’t like it. I was waiting for undo support, for example. I really expected that it would come. That made me feel better about my purchase. Now I know it’ll never come, I feel let down. Sparrow is a lot newer than Eucalyptus - the iOS version was released just in March - so perhaps this feeling has more validity when attached to Sparrow. I have a hard time justifying that idea rationally though.

The constant, free, updates associated with online software sales in general, and Apple’s App Store specifically, have led us to expect bug fixes and new features in a way that we did not before. We now expect them even if they’re not explicitly promised. As a developer, I understand that I should, really, have no right to feel this way, so I can suppress my annoyance. I can only imagine how someone who doesn’t think this way and bought Sparrow explicitly to ‘support’ further development feels.

Updates serve another purpose too. For all Apple claims binary compatibility between OS versions, apps often need changes to continue working (I’m getting an iOS 6 ready Eucalyptus that fixes a few glitches together now, for example). I hope and expect that Sparrow will continue to work as well as it does now on iOS 6 and Mountain Lion, but after that? Nowadays, I don’t hold out much hope. It’s fine saying that I got what I paid for, but I had the expectation of being able to use the app for quite some time into the future, even if I didn’t expect new features. I probably won’t get that now.

I feel like this article should have a better conclusion: a point to be made, or a solution to offer. I seem to have neither. These things will continue to happen. People will continue to feel betrayed. These feelings of betrayal are perfectly justified in the abstract case, but somehow never in the specific. Our experience-conditioned expectations are out of sync with any specific circumstances.

So, to the Sparrow people: My heart is heavy. I send bittersweet, although genuine, congratulations to you. I’d probably have done the same.

Read more…