Blog Archives

Getting ANT to work with YUI compressor on OS X


A while ago, a colleague introduced me to YUI Compressor. I was really amazed. I knew there were such kind of tools/applications out there, but never really bothered to find our which ones and how they work. So, I though, being a Mac user, that this should work on my mac as well… well… yes and no. Its not so easy getting it up and running, and I want to be able to run an ANT target in my PHP project to get this working.

So, I had some digging around to do, and ended up with my own little guide on how to get it working.

Posted in 10.8, Apache, Apple, Free stuff, Mac, MacPorts, Objective-c, OSX, PHP, Shell scripts, Tools, Tutorials, Web, Websites Tagged with: , , , , , , , , , , , , , ,

Nordea E-legetimation på kort och OS X 10.8


(Sorry for the non-swedish speaking followers, but this one is for you swedes!)

Då var det dags att installera om macen, och köra in 10.8 på nytt. MEN… så kommer man till moderna Sveriges IT värld där bankerna tror att hela världen kör windows XP, precis som de själva. Det är ett jäkla problem att få NCR1 dosan (vit med blåa) att funka med OS X överhuvudtaget, minst sagt med senaste Firefox och BankID. På Nordea’s webbsida påstår de att man inte längre behöver några driverrutiner när man installerar senaste BankID från Skit snack säger jag… när jag kopplar in min dosa så får jag NORDEA texten, med två “block” under det, när det skall bli 3 (Se bild 1).

Posted in 10.8, Apple, OSX, Tutorials Tagged with: , , , , , , ,

Installning PHP5, Apache2 and MySQL 5 on OSX using MacPorts


I know, its the longest title of a post.. ever. But… This is something I deal with everytime I reinstall one of my macs, and for the sake of saving some time I thought of writing it down here.

I expect you have OS X 10.8 installed (or higher), but this should also work with OS X 10.7.



Before you can use MacPorts you need to install XCode and “Command Line Tools”. You can do this by opening XCode, opening the Xcode menu and choosing “Preferences…” (pic 1). In the new window that opens, choose “Downloads” (pic 2) and select “install” next to “Command Line Tools”.

Posted in 10.8, Apache, Apple, Development, Mac, MacPorts, OSX, PHP, Tutorials, XCode Tagged with: , , , , , , , , , , ,

Writing the XCode Cookbook

As some of you might know, I am writing an XCode Cookbook. This is a book which will contain only tutorials on how to do different things within XCode. So, no tutorials like “Adding Facebook to my iPhone app”, but more in the style like “Adding custom location to the iOS Simulator” or “Managing multiple targets within my project”.

I have a list of about 50-60 tutorials, but I need more. I need about 40 tutorials (3-4 chapters) more, so I am looking for tips; and since you, my readers, come here for such things, who better to ask but YOU!

Posted in Apple, Cocoa Touch, Development, Mac, Objective-c, OSX, XCode Tagged with: , , , , , , , ,

MacPorts 2 & XCode 4.3

Well, to sum it up… this has been a “pain in the ass” for me. The last few days I have had some trouble running OS X 10.8 (Mountain Lion) preview… which is not that weird since it is a developers preview. The main problem was that MacPorts didn’t work since 10.8 uses Darwin 12 and Lion (with MacPorts 2 installation) uses Darwin 11.

So, I managed to screw things up so badly that I spend whole yesterday evening copying files manually to a USB drive using the “Install Disk” for Lion. Now I formatted my MacBook Air and Mac Mini and installed Lion once again.

Posted in 10.7, Apple, Development, Mac, OSX, Tools, Tutorials, XCode Tagged with: , , , , , , , ,