Yesterday I had a discussion on Twitter with Jonathan Wight (@schwa) on a “bug/new feature” that Steve Streza (@stevestreza) encountered in iOS9. canOpenUrl failed for a call with the scheme tumblr:. I replied to this saying that this would probably be solved with some sort of UIKit involvement.

I have been cleaning up my Photos library lately. I have lots of screenshots in my library somehow (my wife and I sync to the same library) and I wanted to clean those up a bit. So at first I wanted to create a Smart Album and just let it filter on the dimensions of the photos.

Well, that didn’t work. You somehow can’t filter on height and width of photos in Photos.

I had this post up some time ago, but somehow it disappeared on me. So I went through the trouble again to gather this information, mostly because I want to keep a record of it myself.

A while back I wrote about the HomeWizard API for when the HomeWizard is located inside your current network. That post is still up-to-date but it has one problem. You can’t control your devices from outside of your home.

So now I did some network sniffing and I figured out how to control your HomeWizard from outside your own network (as long as you have a HomeWizard Online account).

So this weekend I have been struggling a bit with getting the HomeHandler app to display the right Philips Hue colors. When Hue lights are connected to your HomeWizard, the HomeWizard API uses a format that is a bit different than the format you would expect for a HSB color.

I am currently working on getting my HomeWizard up and running with a nice iPad application I am building. I only read settings from the HomeWizard, so I am focusing on reading the sensors and switching lights, turning up heat, etc. If you want to add sensors or change settings, just sniff the API calls using a network sniffer. If there is any interest, I might update this article to include them.

Thanks to an awesome answer on I just wanted to make a note to self. For quite a few controls it is needed to calculate the percentage of a certain point within a range (for example when building a custom slider control).

In iOS7 the sizeWithFont methods for the NSString class are deprecated. I think this has to do with the complete move to NSAttributedString that Apple has in mind, which does give developers a lot more options for styling.

But of course, we use those methods a lot, so we need to use the replacement method Apple has implemented for us: boundingRectWithSize, but this method is not really documented that well. Results are weird when you first start out using it or in the worse case, the method does not seem to work at all.

I have upgrading to Windows 8 a couple of times now, but I had one problem with it. We use IIS on our laptops to host the project we are currently working on and use Visual Studio to debug right on it. Since Windows 8 does not give users FULL administrator rights anymore, you always had to start Visual Studio as an administrator.

Just wanted to post this, because I found these UIColor extensions really useful.

Python 3 version of pybonjour. Just some minor adjustments to the code and the installer to make it compatible with python 3.

I submitted this to a github repo, so you can easily download and install it. It is based on version 1.1.1 of pybonjour.

I once answered a question on Stack Overflow on how to turn your monitor off in C#. It seems that the answer no longer worked on Windows 7 en 8. So here is an updated version, which works for me on at least Windows 7.

So, you got Office 365 for you and your employees, but then the strict nagging about password policies start. In some cases you just want it disabled and there is no way to do this by using the web interface.

Because I got bored the other day, I decided I wanted to build the stacked bar graph you seen in iTunes, but for usage with your iOS apps. I am talking about this thing:

There are a few things I do no like about this bar. First the colors of the ‘parts’ of the bar, but this will be customizable. The other thing I did not like is the drop shadow it creates over the parts of the bar. So I changed that a little to something I like.

My post about using a NSURLConnection in a different thread has been read a lot. I made this post almost 3 years ago and I would like to show you how I would solve it nowadays. In the last 3 years I have learned a lot and the cocoa-touch framework evolved too.

I have been using this in a couple of projects. It is a method to only perform NSLog logging when you are using a DEBUG build. There are more than enough reasons why you don't want to use NSLog in your release builds.

First of all, its all about performance. I noticed that when you use NSLog a lot it decreases performance significantly. Ofcourse you can solve this in more ways, but I found this the easiest one.

For a client I am working on an application that should be available in multiple languages. Well I always created my applications with English in mind, so this was a new one for me. I started this project in Xcode {REDACTED} and I could not get it to work somehow. After an half hour or so, I got tired of running my app, switching languages, and running it again, that I tried switching back to Xcode 3.2.4.

For Desktop Backgrounds HD (which is currently in review) I wanted to implement a feature called "send image by email". First I tried to include an image base64 encoded in an URL, with the mailto: protocol, but this resulted in numerous errors.

For an application I am making, I am making a view where users can configure all kinds of settings, which has direct effect on an UIView I have. I want to grab that UIView and save it as an image. Well there are examples enough about this, most of them are all the same, but there is one annoying thing. It saves the view in the good ol' resolution. Because I am making all my apps "retina-aware", I wanted to change this.

I have been working with Freebase lately and they sometimes encode their strings, so that "special" characters are encoded in HEX.

Basically there are no really god (and now working) guides on how to put a UIPickerView on a UIActionSheet. Mainly because some things changed with the latest firmware updates made by Apple. Well after some fiddling around, I got it working.

For WallPaper I download numerous thumbnails from my webserver at the same time. This is causing slowing speeds (to many threads at once), and too much memory usage (too much image data cached at once).

So I looked in queueing the downloads and tried (ofcourse) writing my own QueueHandler class. After I written and spend a couple of hours bughunting/testing my QueueuHandler, I came to the awesome idea to see what the iPhone SDK supplies for this kind of jobs :D (you DO read my sarcasm, dont you?).

Today I needed to parse a LARGE (1.9GB) XML file and extract some information from it. Loading it in a XmlDocument (my favorite .NET way of handling XML) wasn't really a possibility, because that would cause Out of Memory errors the minute I would try it.

For a project I am working on, I was looking for a good way to resize images in a few different ways. I have done image resizing before, but it really feels that I am re-inventing the wheel every time I do this. So now I decided to write a nice static method which can resize an Image to certain dimensions and outputs an Image object again.

UPDATED: Please check out this post to see how I would solve it nowadays. Maybe still not perfect, but a lot better than the solution provided below.