Chris Donnan : Programming - Brooklyn Style
software, trading, family, fun
Posted Family on Sunday, November 9th, 2008.
A few weeks ago, Gabe (and Micah as well - he does what Gabe does) got interested in skateboarding. This led to me buying them 2 crappy skateboards to ‘gauge the depth of their interests’. That led to ME getting interested again and getting myself a new board (I LOVE it!).
I told Gabe that if he kept riding the one we got him - showing us with practice - that I would get him a ‘real skateboard’ not one of the toys r us toys. He has been into it - riding where he has been able so we surfed around online to pick decks he liked etc. Then yesterday the 2 of us went to Blades on Broadway and got him his new board:

We also got him a new set of pads (he already has a good helmet from all his bikes/ scooters, etc.

Posted programming on Wednesday, November 5th, 2008.
- 5:00 AM - Wake up, doze
- 5:45 AM - Get up, eat breakfast (Optimum Slim + Soy Milk)
- 6:00 AM - Skateboard over to P.S. 29 to VOTE FOR BARACK OBAMA
- 6:45 AM - Done voting, skateboard home
- 6:50 AM - Send Shannon to vote, sit with Gabe on sofa - watch some cartoons (he was soooo sweet this AM)
- 7:15 AM - Shower, dress
- 7:30 AM - Shannon home, chat with Micah for 2 minutes (he was in a cute sweet mood) off to work - catch the bus, to the subway (4,5,6 green line to 51st & Lexington)
- 8:15 AM - Arrive @ office (side-trip to Starbucks for a coffee)
- … get water, bananas, fruit salad, check email, login to Bloomberg, CNBC on/ off/ on
- … WPF Command Binding to ContextMenus
- … Help co-worker deal with a few small WPF-isms (say ElementSpy/ ToolTip issues)
- … Update RedGate SQL Toolbelt install
- 11:45 AM - Lunch - Salad + Salmon + Steamed Cauliflower
- 12:00 PM - Back to work
- … more WPF stuff, Xceed Data Grid - forcing right click to select the row beneath it (not successful yet!)
- 1:30 PM - Double Tall Soy Latte to prep for some database work
- 1:40 PM - Get to some nitty gritty database work - let’s get rid of some crap in the DB…
- … work work work …
- not a lot of trading today, markets up well positive PnL
- 5:00 PM - Virgin Frequent Flier accounts set up for the whole family
- 5:45 PM - Leave (a little early) Subway @ Lex + 51st, out @ Jay St, B75 Bus to Kane St + Court St, walk home
- 6:35 PM - Home, hugs + kisses from sweet kids + sweet wife, change, hold Micah, watch Gabe do homework
- 7:00 PM - Shannon made a *lovely* orzo soup - *yum* (did I mention she is a ROCKIN’ cook?!), Hang with Micah a bit more
- 7:30 PM - Read books to boys (”Don’t Let the Pigeon Drive the Bus” + “Surprise in the Lunchbox” (something like that))
- 7:45 PM - Skateboard to the gym, boxing!!! cycling, cancel gym membership as of Dec 1 (since that is when we MOVE!)
- 9:00 PM - home with Shannon ! Sofa…
- 9:15 PM - start typing random crap in my blog while I am anxious about the ELECTION
- 9:25 PM - ABC News projects Obama as winner of Ohio! (big deal here folks!!)
- 9:35 PM - Lookin’ grim for MCRAGE!!!!
- 9:40 PM - Stop this nonsense blog entry…
Summary - go Obama, go Skateboard, go Shannon, go Gabe, go Micah, go London
Posted programming on Tuesday, November 4th, 2008.
My boys have been getting into skateboarding as of late. After a short time watching them, I got the itch to get a board. Went to CraigsList, found a neighbor with a brand new board they wanted to sell… Got it!
2 minutes later - I was skating through Brooklyn. I felt like a kid - how awesome. Can’t wait to skate some more with the boys!!!
Posted .net, c#, wpf on Saturday, October 25th, 2008.
After a few months programming WPF daily (after years of daily WinForms) I am getting my groove. It is a mindset change I will admit - but one I am coming to like.
WPF is all about the binding. Tools for working with binding are very valueable. ValueConverters are one of the useful tools that every goo WPF’er should be adept at using.
The problem
A few weeks back I was working with the Xceed WPF grid. We had a multi-level heirarchical datagrid. I wanted to make it so that if a user right clicks on a row at the top level, they would get an appropriate context menu, but if they clicked on a sub-grid, they would get a different context menu. Being a lazy programmer I trolled the forums and google, but nobody had a good answer here - so I went on trying to find a solution.
The solution
Part one, the value converter:
Value converters are a pretty simple idea. When databinding, you have the opportunity to convert the value to/ from the binding source to the target.
Here is a picture:
So - the converter is the opportunity to ‘do stuff’ the bound values. My value converter’s job was to tell me if the thing I was selecting was of a specific type, so - I did just that - here is my trivial IsTypeOfConverter
Using it in XAML
In your XAML resources you can put a reference like this:
Basically what this is saying is - when you are styling the grid cell, dynamically set it’s context menu based on what type the underlying object is. Easy enough righ? Pretty direct mapping to the problem no?
More fun to come with attached properties and Markup Extensions..
-Chris
Posted Family, London, work on Saturday, October 25th, 2008.
This story starts a few years back…
Barclays Days
I was working @ Barclays Capital in New York a few years back. During that effort, Shannon (my lovely wife) and I talked about the idea of going to live in London for a spell. Both Shannon and I had been to the UK and thought that at some point - it would be something we would like to do. This was in the ~2005 time frame. After I decided to leave my consulting firm, I talked to the folks at Barclays about taking a job even - but the role was not a fit for me… so I moved along.
Life goes on to MER
Life went on, Gabe and Micah got bigger we were living in Brooklyn - life was good. When I had 1st started at Merrill Lynch, I mentioned to my boss that I was interested in eventually coming from NY to London. At the time I also had the (false) understanding that I had an easy immigration path to the UK due to a (false) assumption about my dad. In any case - I planted the seed then.
In January of 2008 - I was in London on a trip with Merrill. I had talks with some key people and they told me I could come to in London with the family in ~the summer time-frame. The banking industry has been in some dismay this year - so there were some back and forths, pauses and such - but they eventually gave me dates and other nods and yesses.
Surprise … Job Change
A friend of mine in the neighborhood asked me out for coffee one afternoon. He was working at a hedge fund here in NY. I brought the boys, we went to the park and chatted while the kids played. He was hinting at trying to convince me to come have a talk with the people at this fund. I said I was not leaving MER. I said that my project was en-route, and that we were relocating to the UK. He smiled and nodded and we left our coffee chat.
A few weeks later, my friend contacted me again and said that London was an option for that job. My project was close to going out at MER, and after some convincing - he asked me to ‘come see the fund for one afternoon’. So - I put on my nicest suit and went for a day of interviews. After the better part of a day of video conference and in person interviews with the people from the relevant desks - and a few phone calls - I was done. It went well. They liked me, I liked them, etc. We talked about the job and about relocation. I accepted the job.
The Process
From there it was paperwork. We had to get me a UK Work Permit. I had to get a “UK work permit holder visa”. We had to get the family “UK work permit dependent visas”. This was all paperwork that had to be done, some I did, some people at the office did, some outside legal council did. I would say that it was not so easy or fun, but completely doable. Apparently there are all sorts of work visa changes happening in the UK as of October 2008, so it seems we completed it all just in time.
The Brooklyn Unwind
Currently we have a lot going on. We had our survey the other day for packing and shipping our things to the UK. We are also doing the “Brooklyn Unwind”; we are selling our car, showing our apartment, throwing out a lot of junk, going though our storage location to see what we should bring, giving away electronics that will not work in the UK, etc.
Arriving in the UK
On December 1st we are going to move over there. We will have our stuff packed up on the Friday/ Saturday, then spend saturday in a hotel and leave on the Sunday AM… at least this is how we think it will go. From there we will go to ~2 months in corporate hosing somewhere in the Chelsea area in London. During that time we will be looking for schools and apartments.
Both schools and appartments are hard. Just like in NY, getting into a good school and a the right appartment is: Hard to find, expensive, hard to get into. Hopefully we will just sort it out. We have been looking at neighborhoods for some time now.
Help and resources
Some of my friends in the UK and friends of friends over there have been more than helpful. One of my friends was kind enough to write up a sort of compendium of necessary Londoner facts for us - quite an effort. Aside from friends, we have used certain websites a whole bunch:
- The forums at UK-Yankee are amazing. People are beyond helpful.
- xpatulator was useful for real cost of living comparisons
- Net-Lettings great starting point for finding a place to live
- Up My Street a good resource for drilling into neighborhood details
- Foxtons the single greatest place to look for apartments/ houses
- Netmums a good overall help on many fronts of life as a parent in the UK
We also have a few books that have been helpful
- The Good Schools Guide 2008
- Living and Working in London, 4th Edition: A Survival Handbook
- Rules, Britannia: An Insider’s Guide to Life in the United Kingdom
So - thats where we are. More to come - the big day is approaching.
-Chris-
Posted programming on Sunday, October 12th, 2008.
Go watch Bill Moyers interview George Soros about the current financial mess we are in. Mr Soros has a lot to say that I just plainly agree with.
Posted Family on Saturday, October 11th, 2008.
Well, the work permit is in, the family visas are in and we are set to mobe over to London on December 1st. We shoudl be getting our flights, short term let, moving company and such set up in the coming week(s).
It has been an effort to get all the documentation done just for the visas. My employer did a great job getting my work permit sorted etc.
Needless to say, we are excited. We have been planning for some time now.
There you have it
Chris
Posted .net, wpf on Friday, September 5th, 2008.
General WPF + WPF Blogs:
http://wpfwiki.com/
http://www.beacosta.com/blog/ (great for databinding)
http://blogs.msdn.com/mikehillberg/default.aspx
http://joshsmithonwpf.wordpress.com/
http://blogs.msdn.com/wpfsdk/default.aspx
http://drwpf.com/blog/Default.aspx?base
http://karlshifflett.wordpress.com/
http://wpfdisciples.wordpress.com/
Unit Testing WPF
http://miketwo.blogspot.com/2007/03/unit-testing-wpf-controls-with.html
http://www.codeproject.com/KB/WPF/unittestingwpf.aspx
WPF Articles
http://www.codeproject.com/KB/WPF/TreeViewWithViewModel.aspx
http://blogs.msdn.com/mikehillberg/archive/2006/09/14/WpfTraceSources.aspx
http://www.codeproject.com/KB/WPF/UserControlAsDataTemplate.aspx
http://www.codeproject.com/KB/WPF/VMCommanding.aspx
Fav Tools:






















