I got to see the MS Dos prompt once again; a friends Acer laptop was refusing to startup.
Since they had the Vista (…) OS on their laptop i started up using the safe boot mode option. After a LONG time waiting around there was an option to show the MS Dos prompt.
The story behind this post is that I recently copied my development directory to an USB disk because i wanted to clean up my old Macbook Pro’s harddisk for space. After I checked that the copy succeeded (first check then delete, always!) I deleted the directory (with a lot of subdirs) from my local harddisk and everything was fine…
That is, until I noticed that the items on the Navigation Column on the leftside of your Finder windows cannot be deleted if the dir or file they refer to are already removed?! This seems to be a bug/feature that can take one much time if the column is full of links and a lot of them are subdirs in a removed structure. So how to fix this?
We’ve all been there: you’re working on an iOS project and because you are eager to start you don’t want to spend an hour thinking about a nice project name. Then, a little further down the development road, you think of THE name for your application and you want to change the name in your precious new name. Five seconds after that you start getting terrified about the consequences that it might have on all your code and filename referrals. No worry’s though, because XCode 4 will make renaming as easy as frying fries in the frying pan (btw: be careful when you do that).
If you want to rename your project name just:
kickstart Xcode 4
open up the project
make sure you have the navigation bar in your vision
gently but firmly click once on the project name
change it and press return
the window that appears shows you what changes need to be executed
(the standard settings are suitable for most cases, but I recommend checking these settings anyway)
press the ok button and gogogo!
There you go; your renamed XCode project is a fact.
Do mind, however, that:
this will not change the project’s directory name so you need to change that one yourself (close the project, change the directory name and reopen the project)
this is a different thing from changing the product name. Initially the project- and product name are equal but you can make those different. To change the product name you need to modify the “Product Name” build setting for your target, which you can find in the Packaging build settings collection.
I’ve been working with XCode 4 for a couple of months now, and I started to adjust myself to its new interface. I am even beginning to like it, although it’s still a rough diamond and gives me crashes once in a while.
The one thing that bothers me is the fact that the TODO/FIXME listing has vanished and that Apple didn’t provide us developers with a good alternative.
The problem is that i like adding TODO’s for secondary functionality that needs to be done (just not on my main development work) and that i cannot get a listing of the TODO’s (or FIXME’s) in my code.
The solution is simple yet needs additional work from the developer: you can provide your project with another buildstep. The buildstep will be a script that will search the code and show any TODO, FIXME (or, after fiddling with the script, any word you’d like) as an alert in the build log.
I found a nice solution on this website. All you need to do for you project are the following steps:
1. Go to: Project -> New Build Phase -> New Run Script Build Phase
2. In the window that pops up place this in the script section:
What, you’re hitting something? Yes people; as of today I’m going to have to say “I’m thirty years young”. Although I like having a nice round number as my age it feels different from becoming 20…
To my surprise today I noticed that my Sitestats plugin was failing BIGtime. My WordPress.com account suddenly appeared not to be authorized to view the stats. Research (== Googling) gave me the cause and solution.
The final version of the Xcode 4 development IDE was set loose into the world on March 9th 2011. Being busy learning Ruby and on construction work in my back yard i didn’t get the opportunity to take a look at the preview and GM versions that Apple made available to developers. So recently i downloaded the final product and dove right in and boy, was i supprised…
If you are into Ruby you will like the simple yet powerful blocks.
Blocks in code
While searching for some iOS development info i stumbled into the fact that Objective-C embeds the possibility to use blocks as well! Ain’t live a beauty?
Okay, i’m doing it. I’m working on becoming a Ruby developer and i’m liking it. Every time i look into Ruby (on Rails) stuff there seem to be more advantages. At first it was the idea of “Convention over configuration” or CoG that sounded interesting. But meanwhile it is becoming clear that every time i’m working my way into learning the language there’s more. No more type-casting, the ability to “chain” method outcomes after eachother and the Active model are just a few of the advantages that RoR has to offer.
Ruby on Rails
Some nice initiatives i’ve encountered during my quest for Ruby knowledge :
tryruby.org – dive into this in-browser(!) hands-on development tutorial which will show the Ruby basics the clear way.
railsforzombies.org – a funny and interesting series of screencasts and an in-browser learning environment. Combine fun with learning always worked for me
eBooks: Agile Development with Rails and Ruby on Rails for dummies give a clear view on Ruby planet.
It seems that every step I take into the world of Ruby makes me forget about things like PHP, so i’m curious where this road may take me!
Speaking about curiosity, what’s your hot tip of the day for learning Ruby?
What peeps spit