A little bit of code that shows how to use Microsoft Exchange Webservices to retrieve free and busy information for a user. Just replace the items in bold with your details.

namespace GetFreeBusyInfoFromExchange
{
using System;
using System.Collections.Generic;
using Microsoft.Exchange.WebServices.Data;

///
/// Gets free and busy data from exchange server
///

public class Program
{

private static void Main()
{
var servurl = new Uri(“https://Path_To_Exchange/EWS/Exchange.asmx”);
var serv = new ExchangeService(ExchangeVersion.Exchange2010);
serv.Url = servurl;
serv.UseDefaultCredentials = false;
serv.Credentials = new WebCredentials(“username“, “password“);

var attendees = new List();
attendees.Add(new AttendeeInfo(“someMailBox@yourExchange“));

var myOptions = new AvailabilityOptions();
myOptions.MeetingDuration = 30;
myOptions.RequestedFreeBusyView = FreeBusyViewType.Detailed;

var userAvailabilty = serv.GetUserAvailability(attendees, new TimeWindow(DateTime.Now, DateTime.Now.AddDays(30)), AvailabilityData.FreeBusy, myOptions);

foreach (var a in userAvailabilty.AttendeesAvailability)
{
foreach (var c in a.CalendarEvents)
{
Console.WriteLine(c.Details.Subject + “\n”);
}
}

Console.WriteLine(“Enter a value: “);
var str = Console.ReadLine();
}
}
}

Categories: c#, Exchange Web Services, Microsoft, Programming | Tags: , , , | Comments Off on

BMW F800GS Tool Kit

The Kit

This is my tool bag for my bike. From top left…

  • A selection of small metric allen keys
  • double ended wrenches in 8×10, 11×12, and 13×14
  • small prybar
  • valve core remover tool
  • 3/8 drive ratchet
  • 2 3/8 inch extensions
  • a handfull of zip ties
  • Torx bit set
  • Torx socket set
  • 3/8 drive 12 point sockets 10mm to 19mm
  • 2 BMW shorty tire levers
  • 1/4 drive extension
  • 3/8 to 1/4 socket reducer
  • 2 adjustable wrenches
  • 1/4 drive ratchet
  • Box cutter with extra blades
  • Not shown….
    • A Leatherman tool with pliers, screw drivers, wire cutters, etc…
    • I also carry some electrical wire and a couple wire connectors
  • Things I should probably carry but don’t
    • Small multi meter or trouble light
    • spare tube, or patch kit
    • duct tape

All off this fits nicely into a smallish bag that is easily carried in a top or side case.

The Bag

With these bits I have successfully changed tires and tubes, batteries and replaced a few bulbs.

Categories: BMW, F800GS, From The Road, Motorcycles | Tags: , , , , , | Comments Off on BMW F800GS Tool Kit

classicvirus: Simply 8C #alfaromeo #alfa #autodelta #8c

Categories: From The Road | Comments Off on classicvirus: Simply 8C #alfaromeo #alfa #autodelta #8c

thesecretring: 1936 Eifelrennen

Categories: From The Road | Comments Off on thesecretring: 1936 Eifelrennen

elric-of-melnibone: reignofmethanol: reignofmethanol: Ferrari GP Team, 1961. “Sharknose”

Categories: From The Road | Comments Off on elric-of-melnibone: reignofmethanol: reignofmethanol: Ferrari GP Team, 1961. “Sharknose”

mcconnico: Pretty little #Alfa #AlfaRomeo | Found by John Beck McConnico (via @ashleyhancill)

Categories: From The Road | Comments Off on mcconnico: Pretty little #Alfa #AlfaRomeo | Found by John Beck McConnico (via @ashleyhancill)

bushdog: momose MFT・BKR-PRM/NJ Natural Black Korina Premium Futura Style

Categories: From The Road | Comments Off on bushdog: momose MFT・BKR-PRM/NJ Natural Black Korina Premium Futura Style

Categories: From The Road | Comments Off on

swedmet: Roger Martin’s bagged clean and classy 244. [United Kingdom ]

Categories: From The Road | Comments Off on swedmet: Roger Martin’s bagged clean and classy 244. [United Kingdom ]

i-wish-i-was-a-fiat: 1970 Maserati Ghibli Coupe

Categories: From The Road | Comments Off on i-wish-i-was-a-fiat: 1970 Maserati Ghibli Coupe