If you’ve tried to run
pod installin the last day or so, you probably found yourself stuck.
Updating spec repo `master`
As discussed by GitHub’s @mhagger, the
CocoaPods/Specsrepository (where all the podspecs are stored) experiences extremely high volume, due in part to shallow initial checkouts of the repository. He leaves a helpful tip to convert the specs repo to a deep checkout.
I tried it, it makes things fast.
This will take a few minutes to run, but
pod update, etc are all much faster now.
This is definitely the cheapest smartphone I’ve ever seen, at 251 Rs ($3.67 at the time of writing).
I like the tradeoffs they’ve made to fit the price point. A 3MP camera and 8GB of built-in storage is perfectly acceptable when merely having a cellular data connection is the big needle mover. We’ve built up a convenient narrative in calling the iPhone and high-end Android devices ‘premium’ while largely ignoring that having any data connection on the go is still a premium experience for much of the world.
From their mission:
Empower citizens, even in the remotest rural and semi-urban centres of India, with the latest in digital technology at incredible affordable prices and cascade knowledge, news and current issues so that all experience the confidence of inclusive growth and equal opportunity - In short, innovative solutions for a Brighter tomorrow.
On sale 7:30PM EST tonight. Don’t know if orders will be available outside of India but I’d love to order one and support this effort. freedom251.com
I’ve got a pretty happy relationship with AVFoundation, but the CoreMedia API’s can sometimes be inscrutable. Today, it’s time division. Given the existence of
CMTimeMultiply, one might expect ‘CMTimeDivide’. Instead, we find
Notice that CoreMedia works smartly underneath the hood. Rather than divide the value, it simply scales the timescale, keeping the value evenly divisible by the timescale. What happens if we use
We can see that instead of scaling the timescale, the value and timescale have been expanded, as well as a new flag added.
This tells us that CoreMedia has done some rounding in the
CMTimeMultiplyByRatioremained exact. The documentation sheds some more light on the exact behavior:
The exact rational value will be preserved, if possible without overflow. If an overflow would occur, a new timescale will be chosen so as to minimize the rounding error. Default rounding will be applied when converting the result to this timescale. If the result value still overflows when timescale == 1, then the result will be either positive or negative infinity, depending on the direction of the overflow.
I’m very excited to announce Yayy, available today on Apple TV. A collaboration with Eric Robinson, we’ve created Yayy to be the absolute best way to find and enjoy gifs on a big screen. Your blank TV screen just got 1000% more fun during parties.
When the new Apple TV was announced in September, a flurry of enthusiasm and ideas came to me in a way that I haven’t felt since the original iPhone announcement. The barriers have finally started to fall on a medium that has traditionally been driven by gatekeepers with questionable business practices and no interest in quality. We’re just scratching the surface of what’s possible.
I was testing push notifications with custom categories recently and noticed that they had stopped coming through. After checking out the code that registers these categories I saw that in one case a
UIMutableUserNotificationCategorywas being created correctly, while one of it’s corresponding
UIMutableUserNotificationActionobjects was instead being passed to the notification settings. This is invalid, and apparently gets cached in between runs of the app (even though you’re reacreating the categories at runtime).
The trick, which I stumbled on after a few minutes of head scratching, is that you must delete and reinstall the app in order for things to start working again. But why should I be surprised? Programming for push notifications is crazy.