Git patch sets
I needed to extract who did what on a project. The following script extracts a set of patches that have been contributed by the various authors. This result should resemble the exact same diff information of a ‘gitk –all‘.
#!/bin/sh DEST=$1 PREV="" ( git log --reverse --pretty=format:"%ae %at %H" ; echo ) | while read line do AUTHOR=`echo "$line" | awk '{print $1}'` TIMESTAMP=`echo "$line" | awk '{print $2}'` HASH=`echo "$line" | awk '{print $3}'` mkdir -p $DEST/$AUTHOR git diff $PREV $HASH > $DEST/$AUTHOR/patch-$TIMESTAMP-$HASH.diff PREV=$HASH done
Please let me know if there is an easier way to do this.
Including with Time Machine
A while ago I’ve filed a radar because I am not backing up my whole system through Time Machine but just my home folder. Right now that means you have to manually exclude quite a list of folders. Today the issue got rejected because “the idea of Time Machine is too back up everything”. I have nothing against feature creep – but this is ridiculous. If you agree with me here please also file a report.
Summary:
There is no way to specify what to backup as an “Include” expression. I only want to backup my home folder through Time Machine. Now I have exclude all the folders manually and leave only my home folder to be included.Steps to Reproduce:
Go to the Time Machine preferences. Click on “Options”. You can only select folders to include.Expected Results:
Have a selection box below to “include” / “exclude” the folders above. Wildcards -not just folders- would actually be nice as well.
Developing on Mac
While Jesse and Marcus could not have more opposite positions. I found the truth to be somewhere in the middle.
Visual Studio is not great – but let’s face it neither is Xcode. True they did add refactoring support and intellisense – but how long did it take? And last time I checked it was still miles away from what IDEA of Eclipse can do. No official plugin API and a terrible window behavior for Xcode. Let’s not talk about unit testing integration. Awkward DLL hells you can run into with Visual Studio on complex builds and many frustrations that I’ve just repressed over time. Let’s just be honest – both have their strengths and weaknesses. There is no clear winner.
As for the mobile platform: I am sure things have changed since the time I was developing for Windows CE. But I am scared for the rest of my life. I can barely speak the words “active” and “sync” together in one sentence without shaking. The iPhone environment seems like heaven to me – at least from the developer point of view. Haven’t really made up my mind about the AppStore yet. We’ll see.
While some things I do find terrible frustrating when programming for Mac it’s the best fun programming I’ve had in years. You really have to get used to the (terrible) syntax of Objective-C that so doesn’t fit the all-shiny Apple image. But I would have never believed it – after a while you can really read it. And I finally really dig how the selectors are build up (like “named parameters”). I hated that in the first place.
Accept to “Think Different” and you gonna have some fun.
First CocoaHeads Frankfurt
I am happy to announce that the first CocoaHeads meeting was quite a success. 10 people showed up and a couple could not make it. So that means 10+ people – which is not bad at all. Also turns out that word of mouth didn’t reach everyone yet. Some people didn’t hear about it before the actual date. Glad they spontaneously just rocked up. The crowd was a mix ranging from java converts to NS programmers. Most prominent guest surly was Alex from the BigNerdRanch.
While the most important part was of course the social part, I also gave a quick introductionary talk about the FeedbackReporter framework. Why I wrote it – why and how you should use it. (The slides are not really useful without me talking so I did not put them online. Check out the screencast and the docs instead)
Club Voltaire was a good venue. I’ll try to book it again for next time. To make it easier to stay up-to-date with upcoming events I have a created a group at upcoming.org. Please join or just subscribe to one of the feeds:
As a curtesy to the host please indicate whether you are coming or not at the event page. I will try to get the next months meeting worked out this week. So we have a little head time.
Also – please don’t be shy. I am sure there is something you could talk about. A framework you find useful. Your latest findings from a project you have been working on. Not scheduled but promised are talks about XQuery and using the Wii controller from Cocoa. Exciting stuff! Looking forward to it.