Re: Validation

2014-10-07 Thread Greg Keogh
There is a similar usage of DataAnnotations described in an article at CodeProject - http://www.codeproject.com/Articles/256183/DataAnnotations-Validation-for-Beginner Ta, I eventually stumbled on that one too. For ages I couldn't find anything that actually used the attributes and I thought

RE: Validation

2014-10-07 Thread ILT (O)
The DataAnnotations namespace is extensive. I haven’t explored how to make use of its many classes. _ Ian Thomas Albert Park, Victoria From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Greg Keogh Sent: Tuesday, October 07, 2014 5:03 PM To:

REST body encoding

2014-10-07 Thread Greg Keogh
Folks, I'm returning an XML element fragment in the body of a REST style response, and in Fiddler I noticed it looks like this: EFBBBF result/result So the utf-8 BOM is going out, but I'm not sure if this is desirable, standard or expected. This service is to be consumed by non .NET clients,

3d Trilateration

2014-10-07 Thread David Rhys Jones
Hi all, Does anyone have code / link to a library that can do 3d Trilateration? *I've been looking for the last hour, lots of theory and references to matlab but nothing that looks like what I need.* *Thanks* *Davy.* *Si hoc legere scis nimium eruditionis habes*.

Re: REST body encoding

2014-10-07 Thread Thomas Koster
Greg, The standard states quite explicitly that a BOM in UTF-8 is unnecessary[1, 2] and discouraged[2]. I never understood why Microsoft's Unicode implementation emitted it. There is an overload of the System.Text.UTF8Encoding constructor that lets you encode without a BOM. [1]

Re: REST body encoding

2014-10-07 Thread Greg Keogh
The standard states quite explicitly that a BOM in UTF-8 is unnecessary[1, 2] and discouraged[2]. I've been looking for official REST documentation on this matter (that I still can't find), I didn't search the Unicode documentation, where it does say Where UTF-8 is used* transparently* in

Re: REST body encoding

2014-10-07 Thread Thomas Koster
On 8 October 2014 11:39, Greg Keogh g...@mira.net wrote: I've been looking for official REST documentation on this matter (that I still can't find), I think REST is more an idiom than a hard standard. The HTTP 1.1 spec is the closest thing you will find to a REST standard. RFC 2616 (HTTP 1.1)