For the upcoming release of iCapital 2.0 I needed a list of all the countries and capitals of the world in json format. I searched the web, but couldn’t find a proper solution until I found these lists on GitHub.
Sadly they only contained the countries of the world, so on a boring Sunday night, I’ve extended the list with all the capitals for those countries!
Next to the countries and the capitals, the lists also contain:
We’ve been working around the clock last month to push out a new version of ‘This is how I learn my ABC’.
By popular demand the app has now become an universal app, which means it will run on your iPad, but also on your iPhone now … for free :-)!
If you go to the App Store on your iPhone and you have purchased the iPad version you will see a ‘Buy’ button, but don’t worry, just purchase the app and Apple will show you a message which says ‘You have already purchased this application, this upgrade is for free’.
The app has been totally rewritten for iOS7 using Apple’s new gaming framework SpriteKit to get optimal performance and we’ve added new goodies as more sounds and animations. Game Center integration is also available so try to unlock all the achievements!
This afternoon Thomas Degry (one of my students, www.devine.be) asked how he could program the neat little effect they use in the National Parks iPad app made for National Geographic. If you want to see the effect yourself, I suggest you download the app to check it out. Just select one of the parcs and then tap on the stats or the weather button. You’ll see a nice transition in which the master view ‘steps’ into the background, while the new content is placed in front of it.
It took me a few minutes of tapping to see how the animation works, so here is how you can mimic the effect. Just play with CALayers and some transformations
Yesterday I had a very frustrating issue implementing CKEditor (an awesome open-source WYSIWYG editor) in a CakePHP 2.3.2 installation. I thought the issue had something to do with CakePHP … ow boy, was I wrong
If you want to achieve file upload validation trough your CakePHP model, you can use the following code. For this tutorial I you have a database table with a field ‘pdf_path’ (of course, this can be anything you like).
For a few private projects the last couple of months I needed to implement a login system before the user could see the actual content.
It seemed like there were quite a few patterns people were using on how to implement such a system. The easiest way to go (imho :-)) is by creating a UIViewController which will serve the protected content and add it as the root view controller of your project. In that UIViewController you can then add a modal view controller which will present the login view. Continue reading →