Thursday, 27 December 2012

EWS Post 2 of n - Finding Folders

The EWS SDK can be found here.

I suggest using Linqpad to run these code snippets as that is where they are being written.

Just add a reference to C:\Program Files\Microsoft\Exchange\Web Services\2.0\Microsoft.Exchange.WebServices.dll and a using statement for Microsoft.Exchange.WebServices.Data and you're good to go.

Part 2 of n in my EWS series, this time covering finding folders. This is a two liner, barely worthy of it's own blog post, but it's late and, for something so simple, there seem to be alarmingly few straight forward examples of this on the interwebs, so enjoy.

var service = new ExchangeService(ExchangeVersion.Exchange2010);
service.Credentials = new WebCredentials("myusername","mypassword");
service.Url = new Uri("https://mymailserver/ews/exchange.asmx");

var f = new FolderView(100);
var res = service.FindFolders(WellKnownFolderName.PublicFoldersRoot,f);

Being an Atheist at Christmas

Over the last few days I've read a lot of posts that slate Atheists as hypocrites for celebrating Christmas. The whole Saturnalia thing aside, I quite happily celebrate Christmas and without the slightest feeling of hypocrisy.

How do I do that?

Same as an ever increasing number of people, I do not experience Christmas as a religious holiday, for either Christianity or Paganism. It is simply a good ending to another year of hard work involving me having a few extra days off work, getting loads of presents and money, and stuffing my face with Turkey, followed by spending the next few months stuffing my face with all the chocolate I received.
 The fact that some people celebrate the birth of the result of God non-consentially impregnating Mary on this day, or that the Pagans use it to celebrate solstice is entirely inconsequential to me.

At this time of year, there is almost as much bleating from militant Atheists who are easily offended by someone wishing them a Merry Christmas or who object to a public school having a nativity scene with carols containing religious-overtones as there is from Christians criticizing Atheists for daring to celebrate THEIR holiday. This is where live-and-let-live really should win out.

We all have our own reasons for celebrating this time of year. Lets just let everyone celebrate for their own reasons and have a good time.

Saturday, 15 December 2012

Technet 12 days of Geekmas

My posting of the above image is part of the Technet 12 Days of Geekmas event.
Take part and stand a chance of winning some goodies.