Chris Donnan : Programming - Brooklyn Style
software, trading, family, fun
Posted programming on Friday, October 31st, 2008.

Responses are currently closed, but you can trackback from your own site.
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
Responses are currently closed, but you can trackback from your own site.
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-
Responses are currently closed, but you can trackback from your own site.
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.
Responses are currently closed, but you can trackback from your own site.
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
Responses are currently closed, but you can trackback from your own site.

