Carl PetoHow I accidentally made a dimmer switch with a raspberry pi and an ArduinoMy Journey into the harsh and fun realities of the Internet of Things… or as it used to be called… “hardware”.Jun 27, 2018Jun 27, 2018
Carl PetoCatch NSExceptions cleanly in Swift 2 with do/try/catch syntax(TL:DR… the magic NSExceptions extension class is described at the bottom of the post.)Mar 29, 2016Mar 29, 2016
Carl PetoObjective c runtime FTWThis might be a bit of a surprising statement, given that I’m such a fan of Swift, I’m moving my code to Swift almost exclusively and I see…Feb 10, 2016Feb 10, 2016
Carl PetoJavadoc in SwiftThis stack overflow shows how to do javadoc in Swift. Very handy. Try it!Feb 4, 2016Feb 4, 2016
Carl PetoHave TODO or FIXME show up as a warning on debug buildsThis is brilliant.Feb 4, 2016Feb 4, 2016
Carl PetoTesting jquery in REPLnode makes an interesting place to test javascript but you often want jQuery.Oct 23, 2015Oct 23, 2015
Carl PetoWith great power comes great responsibilityI love the concise nature of statements like this…Aug 25, 2015Aug 25, 2015
Carl PetoIPC between apps or between apps and extensionsThis looks really nice. I haven’t had a good excuse to try it or convert it to Swift yet but I’m itching for a chance. :)Jun 30, 2015Jun 30, 2015
Carl PetoIs unowned dangerous? (attempted to retain deallocated object)Again this comes a bit from the “I spent years worrying about memory management, don’t tell me to stop worrying now unless you can prove…May 18, 2015May 18, 2015
Carl PetoHome-brew : Lights in my flat controlled by arduino and Apple WatchHi, some people were asking how I made this work, after seeing my video on instagram https://instagram.com/p/2NwBMxj_4c/May 3, 2015May 3, 2015