Archive | Uncategorized RSS feed for this section

misadventures of an xcode idiot

17 Oct

More proof that life is hard. This post details some of the mistakes you might make trying to use xcode as a complete beginner (to xcode and macs in general!)

I decided to use libxml for XML-parsing on an iphone app, since it comes in the dev environment by default and doesn’t require you to use an event-based parsing method. Tutorials say that you must link to the library, and set up your include paths to find the proper headers. Standard stuff, so let’s get started!

I can see the libraries my project is already linking to in the document view of xcode, so logically I’ll just right-click there and add a new one. I don’t see anything to add libraries to link to specifically, so perhaps “add files” will simply infer from the type…

First, I don’t know where this file is. Other tutorials will tell you it’s found in /Developer/Platforms/iPhoneOS.platform/... There’s no /Developer on my machine. Maybe it exists on “real” macs or maybe the first part of the path is so obvious everyone omits it. So find it the old fashioned way:

What I’m looking for seems to be in /Applications/Xcode.app. Let’s add it.

Hm. No subfolders in /Applications in this finder-ish window, just icons. Well, maybe they are really subfolders and they just have icons? Double-click xcode to find out.

Bad idea! This “adds” the xcode application itself to my project somehow, and whatever it does causes the running instance to hang for several minutes. Kill the xcode process in terminal, and try to re-load it? Hangs on startup. Don’t be like me. Luckily I was able to revert the project file using source control.

So for this to be of use to anyone, I should describe the non-stupid way to do this:

Click the project itself in your xcode document list, go to “build phases”, and add to link with binaries.

This automatically navigates to the right directory and gives you a handy search bar, which you can use to find libxml.

Then go to the “Build Settings” tab, be sure to select “All” settings instead of “Basic”, and update your include paths. (/usr/include also didn’t exist on my machine but it finds the right place anyway).

After this configuration, you can return to the easy, relaxing task of coding. Good night.

New Gadget!

5 Oct

I’ve finally set up my latest gadget, a wonderful device that anyone would enjoy. It’s the turtle mouse!

I always thought my mouse was too mousey, but now it can be a turtle. It really just looks like a turtle, not much like a mouse at all. It’s also got some good features like a thin & soft USB cable

You’re probably thinking, “there’s no way the cable is thin AND soft”. But this is not false advertising folks, the cable really is thin and soft.

The only downside to the turtle mouse is you don’t want to give it to a child age 0-6, since it’ll make them sad 😦

And best of all, much like a real turtle it lights up when you plug it in! If you enjoy turtles and mice that look like turtles, I can recommend this gadget to you. Good night and sleep tight!

Aside

Big news for yo…

13 Sep

Big news for you all today. I was promoted to senior developer at Pillow Power Studios! The position comes with a lot of new responsibilities so I hope I’m up to the task! With this new role I’ll surely be able to afford the latest in advanced mobile gadgetry. But compensation won’t arrive for a while, so I’m stuck with the entertainment of the early 20th century to occupy my free time.

You guessed it; I’m beginning D.H. Lawrence’s 1913 classic Sons and Lovers. Despite the allegations of obscenity it’s a good read so far, and most importantly, it keeps its audience constantly reminded of the power of the pillow. When the boisterous coal miner Walter Morel comes home in the evening to his wife Gertrude, family tensions often run high, occasionally even leading to violence. But the air always clears as soon as one or both of them can get to bed and enter into sleep. I take this excerpt as a true endorsement of pillow power:

The warmth, the security and peace of soul, the utter comfort from the touch of the other, knits the sleep, so that it takes the body and soul completely in its healing. Paul lay against her and slept, and got better; whilst she, always a bad sleeper, fell later on into a profound sleep that seemed to give her faith.

Good night everyone!

Intro

30 Aug

This is the dev blog of Pillow Power Studio. Check out later for more contents!