Re: Inter-Process isolation

2014-01-17 Thread piers.williams
Oh, and also assuming you didn't use the new 32BITPREFERRED option in 4.5





http://msdn.microsoft.com/en-us/library/ms164699(v=vs.110).aspx


… in which case … well it depends 


http://stackoverflow.com/questions/12066638/what-is-the-purpose-of-the-prefer-32-bit-setting-in-visual-studio-2012-and-how





From: Greg Keogh
Sent: ‎Friday‎, ‎January‎ ‎17‎, ‎2014 ‎1‎:‎03‎ ‎AM
To: ozDotNet











Nitpicking, but bear in mind that there's no such thing as an Any CPU ‘process’ 
of course.




Indeed, your nit is a good editor, but even he'd be crazy to fiddle with 
CorFlags.




Greg K

Re: Web API weird problems

2014-01-17 Thread Greg Keogh
>
> The first thing I did was remove the XML serializer.
>

Reverse that here ... I removed the Jason serialiser and only want the XML
serialiser. As far as I'm concerned, Json is a polluting blight on us all.
The C++ coding guys consuming my Web API will wet their pants if I tell
them there's another "standard" they have to deal with -- Greg


Re: Web API weird problems

2014-01-17 Thread Greg Keogh
>
> Have you looked at either of the solutions in
> http://stackoverflow.com/questions/12590801/remove-namespace-in-xml-from-asp-net-web-api
>

First part doesn't work, second part will require unpaid research time (as
usual) -- Greg


Re: Inter-Process isolation

2014-01-17 Thread piers.williams
Not so. I've had at least one perfectly legitimate reason for fiddling with the 
PE header to change the bitness of an existing exe (damned if I can remember 
what it was mind - probably forcing 32 bit to get round an interop issue ahem)





From: Greg Keogh
Sent: ‎Friday‎, ‎January‎ ‎17‎, ‎2014 ‎1‎:‎03‎ ‎AM
To: ozDotNet











Nitpicking, but bear in mind that there's no such thing as an Any CPU ‘process’ 
of course.




Indeed, your nit is a good editor, but even he'd be crazy to fiddle with 
CorFlags.




Greg K

Re: Web API weird problems

2014-01-17 Thread Michael Ridland
The first thing I did was remove the XML serializer. The json took over as
default and then I changed the json formatter(I think it's called) to the
camel case formatter.

Works nicely.


On Friday, January 17, 2014, David Burstin  wrote:

> I tried the first of these but it didn't work for me. YMMV
>
>
> On 17 January 2014 21:56, David Burstin 
>  'david.burs...@gmail.com');>
> > wrote:
>
>> Hi Greg,
>>
>> Have you looked at either of the solutions in
>> http://stackoverflow.com/questions/12590801/remove-namespace-in-xml-from-asp-net-web-api
>>
>> Cheers
>> Dave
>>
>>
>> On 17 January 2014 21:25, Davy Jones > 'cvml', 'djones...@gmail.com');>
>> > wrote:
>>
>>> For problem 2: get codemaid plugin or resharper and reorder your
>>> properties:
>>>
>>> Or you could use an xslt to transform your serialization ordering your
>>> properties as you go.
>>>
>>> Davy.
>>>
>>> Sent from my starfleet datapad.
>>>
>>> On 17 janv. 2014, at 09:43, Greg Keogh >> 'cvml', 'g...@mira.net');>>
>>> wrote:
>>>
>>> Is anyone in here using Web API in anger? I'm experimenting with
>>> creating an API that is simple and easy for non .NET clients to use.
>>> Controller methods that return classes serialised as XML contain everything
>>> I expect but...
>>>
>>> *PROBLEM 1* : There are xmlsn="" namespaces cluttering up the root node
>>> that I can't get rid of. I tried a few tricks in web searches but it
>>> changes nothing. Anyone know how to get rid of them and get "plain" XML?
>>>
>>> My next hurdle is a POST to create a record. The Request below actually
>>> works, but after hours of suffering I overcame two really weird problems to
>>> make it work, otherwise you get the dreaded 500 error:
>>>
>>> *PROBLEM-2* : The XML property elements have to be in alphabetical
>>> order (no kidding!!). They are not in order inside the class.
>>>
>>> *PROBLEM-3* : Related to No.1, I have to put the tedious namespaces in
>>> the root element.
>>>
>>> Greg K
>>>
>>> 
>>> POST http://raven/authapi/user/create HTTP/1.1
>>> Content-Type: text/xml
>>> Accept: application/xml
>>> Host: raven
>>>
>>> http://www.w3.org/2001/XMLSchema-instance"; xmlns="
>>> http://schemas.datacontract.org/2004/07/RCS.AuthService.RestApi";>
>>>   max
>>>   T0pSecret
>>>   Max Headroom
>>> 
>>>
>>>
>>
>


Re: Web API weird problems

2014-01-17 Thread David Burstin
I tried the first of these but it didn't work for me. YMMV


On 17 January 2014 21:56, David Burstin  wrote:

> Hi Greg,
>
> Have you looked at either of the solutions in
> http://stackoverflow.com/questions/12590801/remove-namespace-in-xml-from-asp-net-web-api
>
> Cheers
> Dave
>
>
> On 17 January 2014 21:25, Davy Jones  wrote:
>
>> For problem 2: get codemaid plugin or resharper and reorder your
>> properties:
>>
>> Or you could use an xslt to transform your serialization ordering your
>> properties as you go.
>>
>> Davy.
>>
>> Sent from my starfleet datapad.
>>
>> On 17 janv. 2014, at 09:43, Greg Keogh  wrote:
>>
>> Is anyone in here using Web API in anger? I'm experimenting with creating
>> an API that is simple and easy for non .NET clients to use. Controller
>> methods that return classes serialised as XML contain everything I expect
>> but...
>>
>> *PROBLEM 1* : There are xmlsn="" namespaces cluttering up the root node
>> that I can't get rid of. I tried a few tricks in web searches but it
>> changes nothing. Anyone know how to get rid of them and get "plain" XML?
>>
>> My next hurdle is a POST to create a record. The Request below actually
>> works, but after hours of suffering I overcame two really weird problems to
>> make it work, otherwise you get the dreaded 500 error:
>>
>> *PROBLEM-2* : The XML property elements have to be in alphabetical order
>> (no kidding!!). They are not in order inside the class.
>>
>> *PROBLEM-3* : Related to No.1, I have to put the tedious namespaces in
>> the root element.
>>
>> Greg K
>>
>> 
>> POST http://raven/authapi/user/create HTTP/1.1
>> Content-Type: text/xml
>> Accept: application/xml
>> Host: raven
>>
>> http://www.w3.org/2001/XMLSchema-instance"; xmlns="
>> http://schemas.datacontract.org/2004/07/RCS.AuthService.RestApi";>
>>   max
>>   T0pSecret
>>   Max Headroom
>> 
>>
>>
>


Re: Web API weird problems

2014-01-17 Thread David Burstin
Hi Greg,

Have you looked at either of the solutions in
http://stackoverflow.com/questions/12590801/remove-namespace-in-xml-from-asp-net-web-api

Cheers
Dave


On 17 January 2014 21:25, Davy Jones  wrote:

> For problem 2: get codemaid plugin or resharper and reorder your
> properties:
>
> Or you could use an xslt to transform your serialization ordering your
> properties as you go.
>
> Davy.
>
> Sent from my starfleet datapad.
>
> On 17 janv. 2014, at 09:43, Greg Keogh  wrote:
>
> Is anyone in here using Web API in anger? I'm experimenting with creating
> an API that is simple and easy for non .NET clients to use. Controller
> methods that return classes serialised as XML contain everything I expect
> but...
>
> *PROBLEM 1* : There are xmlsn="" namespaces cluttering up the root node
> that I can't get rid of. I tried a few tricks in web searches but it
> changes nothing. Anyone know how to get rid of them and get "plain" XML?
>
> My next hurdle is a POST to create a record. The Request below actually
> works, but after hours of suffering I overcame two really weird problems to
> make it work, otherwise you get the dreaded 500 error:
>
> *PROBLEM-2* : The XML property elements have to be in alphabetical order
> (no kidding!!). They are not in order inside the class.
>
> *PROBLEM-3* : Related to No.1, I have to put the tedious namespaces in
> the root element.
>
> Greg K
>
> 
> POST http://raven/authapi/user/create HTTP/1.1
> Content-Type: text/xml
> Accept: application/xml
> Host: raven
>
> http://www.w3.org/2001/XMLSchema-instance"; xmlns="
> http://schemas.datacontract.org/2004/07/RCS.AuthService.RestApi";>
>   max
>   T0pSecret
>   Max Headroom
> 
>
>


Re: [OT] 43°C here

2014-01-17 Thread Greg Keogh
>
> And I live south and west of there
>

Where or what on Earth is inhabitable south west of Cunnamulla? -- Greg


Re: Web API weird problems

2014-01-17 Thread Davy Jones
For problem 2: get codemaid plugin or resharper and reorder your
properties:

Or you could use an xslt to transform your serialization ordering your
properties as you go.

Davy.

Sent from my starfleet datapad.

On 17 janv. 2014, at 09:43, Greg Keogh  wrote:

Is anyone in here using Web API in anger? I'm experimenting with creating
an API that is simple and easy for non .NET clients to use. Controller
methods that return classes serialised as XML contain everything I expect
but...

*PROBLEM 1* : There are xmlsn="" namespaces cluttering up the root node
that I can't get rid of. I tried a few tricks in web searches but it
changes nothing. Anyone know how to get rid of them and get "plain" XML?

My next hurdle is a POST to create a record. The Request below actually
works, but after hours of suffering I overcame two really weird problems to
make it work, otherwise you get the dreaded 500 error:

*PROBLEM-2* : The XML property elements have to be in alphabetical order
(no kidding!!). They are not in order inside the class.

*PROBLEM-3* : Related to No.1, I have to put the tedious namespaces in the
root element.

Greg K


POST http://raven/authapi/user/create HTTP/1.1
Content-Type: text/xml
Accept: application/xml
Host: raven

http://www.w3.org/2001/XMLSchema-instance"; xmlns="
http://schemas.datacontract.org/2004/07/RCS.AuthService.RestApi";>
  max
  T0pSecret
  Max Headroom



Re: [OT] 43°C here

2014-01-17 Thread Unicorn.Consulting
And I live south and west of there and it has been over 40 since about 
Saturday. But we have no river (at least not one with water)


Matt
On 17/01/2014 5:44 PM, Scott Barnes wrote:
I grew up in a town SW QLD callled "Cunnamulla" ... it used to get so 
hot that the road tar used to bubble.. we'd put our feet as kids into 
the liquid tar to help insulate it as we ran on the hot surface to the 
river...


So harden up ;)

---
Regards,
Scott Barnes
http://www.riagenic.com


On Fri, Jan 17, 2014 at 3:37 PM, Jano Petras > wrote:


:) It is a stinker today. Today's adventure: step out of the
office and get hit by 50+ rising from the asphalt and concrete :D


On 17 January 2014 15:59, Michael Ridland mailto:rid...@gmail.com>> wrote:


Yeh until I leave work I'm not aware of the day outside.



On Friday, January 17, 2014, Corneliu I. Tusnea
mailto:corne...@acorns.com.au>> wrote:

22°C in my office :)


On Fri, Jan 17, 2014 at 2:32 PM, Stephen Price
 wrote:

It's showing 26° for my suburb. :)




On Fri, Jan 17, 2014 at 11:27 AM, Greg Keogh
 wrote:

I'm 1.53 km from Moorabbin Airport tower which
shows: METAR YMMB 170300Z AUTO 34013KT  // NCD
43/08 Q1005 RMK RF00.0/000.0

So it's 43°C outside, but it feels worse thanks to
the north wind which is like an open oven door.
Anyone else got a higher reading?

Greg








--
“Those who would give up essential Liberty, to purchase a little 
temporary Safety, deserve neither Liberty nor Safety.” Benjamin Franklin


smime.p7s
Description: S/MIME Cryptographic Signature


Web API weird problems

2014-01-17 Thread Greg Keogh
Is anyone in here using Web API in anger? I'm experimenting with creating
an API that is simple and easy for non .NET clients to use. Controller
methods that return classes serialised as XML contain everything I expect
but...

*PROBLEM 1* : There are xmlsn="" namespaces cluttering up the root node
that I can't get rid of. I tried a few tricks in web searches but it
changes nothing. Anyone know how to get rid of them and get "plain" XML?

My next hurdle is a POST to create a record. The Request below actually
works, but after hours of suffering I overcame two really weird problems to
make it work, otherwise you get the dreaded 500 error:

*PROBLEM-2* : The XML property elements have to be in alphabetical order
(no kidding!!). They are not in order inside the class.

*PROBLEM-3* : Related to No.1, I have to put the tedious namespaces in the
root element.

Greg K


POST http://raven/authapi/user/create HTTP/1.1
Content-Type: text/xml
Accept: application/xml
Host: raven

http://www.w3.org/2001/XMLSchema-instance"; xmlns="
http://schemas.datacontract.org/2004/07/RCS.AuthService.RestApi";>
  max
  T0pSecret
  Max Headroom