Archive for the ‘Uncategorized’ category

Speeding up a Cocoa Project Repository Setup with Git

October 24, 2008

I just finished working my way through a chapter of a new iPhone dev book. I had a working copy of the example of the book and felt like mucking around with it to learn more on my own. I still want to keep the original state of the code, but I am too lazy to setup a repository for such “disposable” code.

Years of using Subversion have made me lazy like that. I am *really* lazy. I always forget what the steps are to create a repo, mostly because it is usually such an infrequent task for me. But now that Git makes it so easy to create a repo right there in the project directory I’m working on without littering the whole thing with junk… hmmm… Maybe I should be using it even for “disposable” code.

So to facilitate this new behavior I wrote a little script. It expects the root of the project to be the current working directory, so make sure you “cd” into the right place before invoking it. Here is what it does:

  1. Creates a new new git repository at the CWD
  2. Creates a new .gitignore file to ignore:
    • the build directory
    • user.pbxuser file inside the project
    • user.perspectivev3 file inside the project
  3. Adds all the files in the CWD to the index, staging them for inclusion in the next commit
  4. finally commit everything with the default message “- initial commit to Repository”

I think this will be useful to me, and so I post it here in case it is useful to others. It is really very simple. Please let me know if you have any suggestions to improve it.


#!/bin/bash

git init

cat > .gitignore <<EOF
build
*.xcodeproj/*.pbxuser
*.xcodeproj/*.perspectivev3
EOF

git add .

git commit -a -m "- initial commit to Repository"

C4[2] and Iron Coder

September 8, 2008

I am back from the C4[2] conference and I can’t help but smile. None of my co-workers have any clue what I just went through this last few days. But as go back to work on this clunky PC and I stare at IE7 once again, I can’t help but smile. I smile because I am now aware that I do belong to such a wonderful community. It is so inspiring to meet all the incredible people at the conference, to listen to the talks, to reconnect with friends, and yes, to hack away for the Iron Coder. I am truly blessed to belong to such a community and I wear my smile with pride.

As for the Iron Coder competition: What a blast that was! I was so nervous giving my presentation. I still can’t believe that it was so well received. My jokes actually worked! (Who knew!?) A bunch of people came to me later to congratulate me and I want to thank them all. It is such an otherworldly experience, I am truly not worthy. I am still at awe at all the entries. I mean, nu on an iPhone! Wii controllers picking up an iPhone and drawing accidental mustaches! I know that Joe banged out his entry in the two day at the conference! I am truly humbled by the amount of talent these people bring to the table. And the prizes! Somehow my jokes managed to get my little “tip calculator” into second place, and what a place it is! The generosity of the prize donor is baffling. I really find that not getting the MacBook Air is almost inconsequential; the software loot is really THAT good already!

I want to thank Rob Rhyme. He is a fellow DC area NSCoder Night regular and we shared a room at the conference. When he heard of my little entry, he jumped in and took over the whole server portion of the app. During the conference he hacked up a Ruby on Rails app to track all the agents and villains. He went out of his way to make it into a totally slick iPhone app looking site. He even went nuts creating all the villains and acquiring all the avatars and what not. I was only aspiring to have a little list of text coming from the server; he turned it into a whole app onto itself. Thank you Capt. Taco! I salute you!

Finally thanks to Wolf. He is definitely THE Man!!! The conference rocked and it was totally smooth. It will take a couple of weeks of diet to compensate for all the delicious food. The Pizza blew my mind. Wow, what can I say that has not been said already about him? In my mind, he has taken the very best aspects of the WWDC conferences and concentrated them into a perfect experience. Everything, from the size of the conference, the nature of the talks, the bashes, the food, everything is conducive to fostering the community and making us all feel like we belong. Being the weird Mac guy at work, this feeling of belonging is invaluable. I now know what the ugly duckling felt like when he discovered he was a swan.

I do not mean to impose on you personal beliefs, but I do feel compelled to thank the Lord for such plentiful blessings.

Thanks all for a great time and keep on smiling!
Jose

Pictures of WWDC2008

June 17, 2008

Cult of Mac, originally uploaded by tombolav.

I finally posted all my photos of WWDC2008 in flickr. This has got to be my favorite shot.

I also have some pictures of the CocoaHeads meeting at the Apple Store. Including this one of Gus Mueller

 

Gus Mueller, originally uploaded by tombolav.

I still need a lot more practice before I can get as good as Gruber or BagelTurf, but I think I still manged to add some value.

Moving meetings to DC, Tyson’s for tonite

May 20, 2008

I have been talking about the meetings with a bunch of people today and we will be moving the meeting to the downtown DC area. I have been looking at maps, metro lines, and Coffee places with WiFi. The best place I have been able to find is Caribou Coffee at 13th & G. I liked Metro Centro for hte obvious reason that it is in the center of the Metro system. Plus the Red, Green and Blue lines seem to cover most of the the directions we are comming from (except for the Green line which I will be using :-( I guess I’ll have to transfer after all)  My plan is to start meeting there starting next week. As for this week, we’ll be meeting in the Panera’s at Tyson’s  as usual.

Running Late! NSCoder Night Reminder

March 18, 2008

I’m running a little late tonite, but I’ll be at the Panera Bread near Tyson’s Corner between 7:00pm and 9:00pm.

Here is a link to google maps with the address:
View Larger Map

(12/18/2007) Last Meeting of the year for me

December 18, 2007

Sorry, for the late notice. I am nearly on my way to the meeting today. I will be out of town (out of the country actually) so I won’t be going to NSCoder night until January 8, 2008.

Hope to see some of you tonite!

(12/4/2007) NSCoder Night reminder

December 4, 2007

Same place, (Panera Bread near Tyson’s corner) same time again (7:00pm to 9:00pm)
see you there

View Larger Map

(11/20/2007) NSCoder tonite

November 20, 2007

Same as always. same place at 7:00 pm. I am still working on Core Audio stuff, trying to figure out how to best partition between Cocoa and Carbon.

Hello world!

October 15, 2007

A friend of mine added a comment to the default “Hello World” post before I even got started with this blog. I don’t have the heart to kill his comment, so I’ll just keep this meaningless post… please ignore :-)


Follow

Get every new post delivered to your Inbox.