Programming

Generic programming information
Spinning Wait Symbol in Silverlight, Part 2

After my previous spinning wait symbol, I decided to see how difficult it would be to create a Silverlight version of the Mac OSX wait cursor that I referenced in the previous post. The Mac OSX cursor is commonly referred to as the "Spinning Pizza of Death" or the "Marble of Doom" and in fact there is a Marble of Doom web site dedicated to the amount of time spent waiting while watching the spinning cursor. The Marble of Doom web site has a very nice and large version of the cursor using Flash although it doesn't have any vector...

posted @ Monday, October 20, 2008 3:08 PM | Feedback (0)

Constant Prototyping and Design

A co-worker gave a presentation on a project we worked on a long time ago and he asked me to update an feature in the web application. The web app was originally programmed in ASP and I had almost forgotten how painful it was to work in that environment. The new request was to enable live presence information in a web part using the new RTC libraries. Fortunately, another developer had a component to perform all of the calls using the RTC libraries, but I needed to retrieve the group members for the selected group and cross-reference the group members...

posted @ Thursday, July 31, 2008 11:28 AM | Feedback (0)

On Sample Simplicity

I was working through a Communications sample of connecting SilverLight to POX, then Web Services, and finally WCF and I came across the following instructions: (Part 1: POX) The Generic handler will process an incoming request using the code declared in the ProcessRequest function. This function should create some new instances of CityData and add them to the myCities list. Here are some examples of cities with longitude and latitude { (London, 51.5, 0), (Stratford-upon-Avon, 52.3, -1.71), (Edinburgh, 55.95, -3.16) }. See if you can write the code to do this. (And later in the lab...) In this example...

posted @ Friday, June 13, 2008 4:08 PM | Feedback (0)

Automatically setting the Specified property in WSDL Generated files

The wsdl.exe tool with Visual Studio can be used to manually generate a code file to use with a project. If you use the nillable or minOccurs attributes in the XSD though, the wsdl.exe tool generates a boolean 'Specified' field that must be set to true in order to transmit the data through the web service. For example: WSDL File (myfile.wsdl)<xs:element name="duedate" type="xs:dateTime" nillable="1" minOccurs="0" maxOccurs="1" /> Generated CS File (wsdl.exe myfile.wsdl)// ... private System.Nullable<System.DateTime> duedateField; private bool duedateFieldSpecified; // ... /// <remarks/> [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] public System.Nullable<System.DateTime> duedate { get { return this.duedateField; } ...

posted @ Tuesday, April 01, 2008 3:51 PM | Feedback (0)

SOAP Acronym Doesn't Mean Anything

Well, you learn something new every day. I didn't know that the acronym formerly-known as SOAP, aka Simple Object Access Protocol, is no longer an acronym and is just a protocol and means nothing. Note:In previous versions of this specification the SOAP name was an acronym. This is no longer the case. Source: SOAP Version 1.2 Part 1

posted @ Monday, January 21, 2008 2:14 PM | Feedback (0)