Twitter Weekly Updates for 2009-03-29

  • @ccgus Really ? It must have decided that processor ‘unknown’ is the same as PPC – I’ll file a bug at work in the morning. in reply to ccgus #
  • @djgraphite ‘About this Mac…’ will tell you processor ‘unknown’ !? Whatever is behind that is probably the same as Silverlight is checking in reply to djgraphite #
  • So I have this page – it crashes, Firefox, Chrome and Safari 4 – IE 6 has no problems ! (The page is 30MByte in size !) #
  • Nice ! Looks like there are hawks nesting on the roof of the building opposite ! #
  • Oh dear – I’m losing my Englishness: BBC Headline – “Tyre plant fire is investigated” just looks wrong to me ! #
  • http://www.joelonsoftware.com/items/2009/03/27.html – Oh my god !! 30 second build times !!!! How can they possibly get anything done !!! #

Powered by Twitter Tools.

Posted under Uncategorized

This post was written by awk on March 29, 2009

Tags: ,

Twitter Weekly Updates for 2009-03-22

Powered by Twitter Tools.

Posted under Uncategorized

This post was written by awk on March 22, 2009

Tags: ,

Twitter Weekly Updates for 2009-03-15

  • Smuggs today – Icy top 1/3 soft bottom 2/3 still a good day on the tele skis #
  • Today should not suck
    http://bit.ly/2KOga
    http://twitpic.com/1z7xz #
  • Yesterday was lovely at Smuggs – today’s awful, high winds and freezing rain. Shopping instead of Skiing I think. #
  • Very cold today at Smuggs. 30degree drop from yesterday. Clear full moon tonight makes for good nighttime tele trip up Morse tho #
  • Beautiful clear night. Stars were lovely -not my most elegant tele skiing coming down – but it was dark and no one was watching 8-) #
  • Home from Smuggs – final day was awesome a pity to leave. Did trash my thumbnail in a freak accident in the terrain park on my tele skis tho #

Powered by Twitter Tools.

Posted under Uncategorized

This post was written by awk on March 15, 2009

Tags: ,

git and two machines

Brent Simmons wrote recently about his experiences trying to switch to git for version control.

His complaints about it being more steps to push changes back from his laptop to a desktop machine are quite correct vs. Subversion or Perforce there is an extra (annoying if even somewhat mechanical) step.

He also complains about the work required to update the desktop machine to see those changes pushed from the laptop. Brent doesn’t detail his steps (as he says he always had trouble remembering), but I wonder if he didn’t make the same mistake I initially made when I setup a similar workflow.

The key is to actually have two branches on the desktop machine – in my case I use a convention like this to name my branches: task_work & desktop_task_work 

The remote branch on the laptop tracks task_work and is called laptop_task_work (whilst you could reuse branch names on the laptop it seems easier to me to maintain the convention).

Now to push work from the laptop you need the (additional) step of 

git push

after changes have been committed.

Then on the desktop machine you can do

git rebase task_work

in the desktop_task_work branch to merge those changes pushed from the laptop to the desktop branch where you’re working.

The key thing is this (seemingly redundant) branch linking the two machines. Without it you’re pushing into a branch which may have active checkouts or ongoing work. Switching to the desktop machine and updating that branch to incorporate the changes from the laptop is much more cumbersome, especially if you have any pending changes – in fact it’s so cumbersome that I can’t remember the steps/commands !

Lastly – If you have changes you wish to share with the laptop then you can use 

git merge desktop_task_work

in the task_work branch to merge those changes, then do 

git pull

On the laptop to fetch those changes. You can also of course merge an upstream branch (perhaps a ‘master’ or ‘main’ branch into the task_work branch and then pull/rebase each of the per-machine working branches as you wish).

All this pushing and pulling is certainly more steps than using a single central repository in the style of subversion or perforce, but the lack of central repository is the point of distributed version control. Sadly there has to be some price to pay for it – it seems.

Posted under Uncategorized

This post was written by awk on March 11, 2009

Twitter Weekly Updates for 2009-03-08

Powered by Twitter Tools.

Posted under Uncategorized

This post was written by awk on March 8, 2009

Tags: ,

Twitter Weekly Updates for 2009-03-01

  • Great weekend skiing at Attitash & Bretton Woods done. Got new tele skis and had a great part day with them today before heading home #
  • @dsandler I think Hugh Jackmans Oz accent is screwed up by years in America as much as my British accent is by time in Oz and the US in reply to dsandler #
  • Hmmm I think Scott Adams has a problem with bailouts : http://tinyurl.com/cc577h #
  • @gruber Yep – frequent trick was to stack windows and position the title tabs appropriately (but I think it required a tweak to move tabs) in reply to gruber #
  • @omnivector Not mention the bizarre way Boxee wants to ‘recognize’ media from the ‘browse’ panel before it shows up in Movies or TV in reply to omnivector #
  • @Hybernaut which station ? I’ll look for your shining visage this evening at 10 or 11 8-) in reply to Hybernaut #

Powered by Twitter Tools.

Posted under Uncategorized

This post was written by awk on March 1, 2009

Tags: ,

Don’t ignore baseclass methods in OSObject

Having spent an hour so (and more than a few reboots) – here’s a reminder to myself (and other hapless souls). 

Just because OSObject is pretty abstract and can’t be constructed on it’s own that doesn’t mean you can ignore its methods. In my case I was stymied by an apparent ‘hanging’ reference even though I could see that my very simple OSObject subclass was allocated only once and free() was called as the reference count went to zero.

My mistake was not to call the baseclass OSObject::free() from my own method – so of course although I thought (knew) I was done with the object the rest of the IOKit/kernel wasn’t so convinced.

So… don’t forget that OSObject still does very important things – even if it does seem a bit of a placeholder !

Posted under Apple, Development

This post was written by awk on March 1, 2009

Tags: , , ,