Geeks With Blogs

@watsonjon
  • watsonjon Is it too late to get Zima for Xmas? about 484 days ago
  • watsonjon Town hall? I saw zero meth labs. That is not my town hall. #debate about 551 days ago
  • watsonjon Anyone one else having DSL problems? #ATT about 576 days ago
  • watsonjon Great, San Francisco is just freakin' great! Full of booze and heading for tourist stops and coffee. Love this place. about 631 days ago

News

I'm a MCPD Web Developer!

View Jon Dalberg's profile on LinkedIn

I have joined Anti-IF Campaign


Watson Jon Code and ramblings from Watson
The other day I created a simple NastyWord service exposed via OData. It was read-only and used an in-memory backing store for the words. Today I’ll modify it to use a file instead of a list and I’ll accept new nasty words by implementing IUpdatable directly. The first thing to do is enable the service to accept new entries. This is done at configuration ......

I wanted to create an OData service with the least amount of code so I fired up Visual Studio and got cracking. I decided to serve up a list of naughty words and make them read-only. Create a new web project. I created an empty MVC 2 application but MVC is not required for OData. Add a new WCF Data Service to the project. I named mine NastyWords.svc ......

The other day I had a snazzy post on fetching all the video (WMV) files from Mix ‘10. A simple, console application that grabbed the urls from the OData feed and downloaded the videos. I wanted to change that app to fire the OData query asynchronously so here’s what resulted: 1: static void Main(string[] args) 2: { 3: var mix = new Mix.EventEntities(new ......

There has been a lot of talk around OData lately (go to odata.org for more information) and I wanted to get all the videos from Mix ‘10: two great tastes that taste great together. Luckily, Mix has exposed the ‘10 sessions via OData at http://api.visitmix.com/ODa... now all I have to do is slap together a bit of code to fetch the videos. Step 1 ......

I am currently reading Scott Berkun’s book “Confessions of a Public Speaker” and thought this was hilarious and true: …unless presentation terrorists steal your microphone midsentence or put up their own projector and start showing their own slide deck—designed specifically to contradict your every point—you’re free from the pressures other performers ......

If you only have one implementation of a registered interface then it is pretty straight forward, but what do you do if you have multiple implementations of an interface? Now you have to get a little more explicit when registering items in your container. Let’s go through a simple example. Say you have a class, OrderProcessor, that takes one implementation ......

A post, possibly flame-bait, was sent out to a group that I subscribe. It was a response to a previous post about the “Duct Tape Programmer.” Incase you’re not familiar, it was started by a post from Joel Spolsky and taken to several extremes by way too many people. Anyway, the poster said something like this: “I used to idolize Joel Spolsky. However ......

Did you know about the “Repeat” extension method? Enumerable.Repeat generates a sequence of repeated values – perfect for some testing scenarios. Here’s how I’ve used it… private static ISearchService CreateSearchServiceWithExpe... searchText, int ountOfResults) { var results = Enumerable.Repeat(new SearchResult { Id = searchText, Description ......

Maybe it is just me, but I’m not a big fan of huge amounts of XML configuration. I can get by with a few name-value pairs in an app.config or a web.config but much more makes me nervous that I’m going to mistype something and not know about it until run time. I’ve been using Unity and it has the ability to load up its configuration from the app.config ......

Tonight Joe Besse gave a great presentation on WCF to our .Net user group. Sparkhound (thanks Mike!) and me were the sponsors and we had 23 people show up despite the nasty, rainy weather. Incase you don’t know, Baton Rouge pretty much shuts down when we get bad weather. Joe talked about the ABCs (Address Binding Contract) of WCF, showed how to configure ......

Copyright © Jon Dalberg | Powered by: GeeksWithBlogs.net | Join free