Debugging is twice as hard as writing code.
Therefore, if you write the code as cleverly as possible, you are not smart enough to debug it.
Wildcard Repositories With Gitolite
A while ago I upgraded from Gitosis to Gitolite. I’ve been using Gitosis for a long time and while there is nothing wrong with Gitosis, Gitolite just does so much more.
One of my favorite features is wildcard repositories which makes it super easy to have normal users create as many repositories as they can imaging without having to bother a git-admin.
To setup a sandbox for each user you must first enable wildcard repositories in ~/.gitolite.rc. You do this by setting $GL_WILDREPOS to 1.
After that you just need to configure the userspace like this1:
1 2 3 4 | |
Note the use of CREATOR, this is a variable signifying the user that creates and accesses the repository. The CREATOR can even delegate permissions2 to other users if needed.
To get you locally created repository up on the new upstream you first add the new remote and then you just push it up.
For convenience you can also make you local repository track the new upstream using git branch --set-upstream3 which will save you a lot of key strokes4 in the long run.
1 2 3 | |
That’s it! - Hope you enjoy wildcard repositories as much as I do.
What’s Wrong With Religion
Yesterday a prominent Atheist died of pneumonia, a complication of esophageal cancer. Christopher Hitchens was the author of a book called “God Is Not Great: How Religion Poisons Everything”, today we are reminded of just how right he was.
The death tonight of Christopher Hitchens is an excruciating reminder of the consequences of unbelief.
We can only pray others will believe.
The above quote is an insult to both believers and non-believers, and represents everything that is wrong with religion today.
Is Albert Mohlers god really so petty that he will inflict cancer on those who do not believe? and why is Albert Mohler using fear to make people believe?
Let those who believe, believe
…and let those who do not believe, not believe.
Be a guide and lead by example, don’t force your beliefs1 on others.
-
Or non-beliefs for that matter ;-)↩
iCloud Documents & Data Sync - Part II

Yesterday I updated my iPhone 4S to the new iOS 5.0.1 pre-release version which is supposed to fix the horribly battery life1 everybody have been complaining2 about since the release of iOS 5.
Unfortunately it also broke my secret iCloud dance and no matter of fiddling with the options would make my Documents & Data sync work again.
After some browsing through device logs I found this error:
1
| |
I have been a long time subscriber of Apples MobileMe service. The migration process from MobileMe to iCloud, promoted my MobileMe email address to a full Apple ID. This really sucks as I already have an Apple ID that I have used to buy Music and Apps with since the dawn of time.3
On my iPhone I had added both iCloud accounts and just turned on the services I needed from each.4 Apparently this is a bad idea, and deleting the old MobileMe account made above error disappear and iCloud have been syncing my Documents & Data happily ever since.
About Technology
While reading Public Parts by Jeff Jarvis I stumbled upon this little gem from one of my favorite authors.
Anything that is in the world when you’re born is normal and ordinary and is just a natural part of the way the world works.
Anything that’s invented between when you’re fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it.
Anything invented after you’re thirty-five is against the natural order of things.
So relax and enjoy, it is not as dangerous and scary as it people would have you believe.