|
Private Eye also has Trumpton[^]
=========================================================
I'm an optoholic - my glass is always half full of vodka.
=========================================================
|
|
|
|
|
I'm imagining the smile on your face right now and timesing it by ten and I ain't even close.
Btw I took today off work so I could watch the election results last night. Except I met up with the lesbian I mentioned previously and managed to get a few snogs, before her girlfriend turned up. Ended up at a party at the same house as last time with her, her bird, and 2 other lesbians discussing "scissoring". I have an amazing story to tell the grandchildren of where I was the night Trump got elected. Of course some people, if you followed the last thread, have led sheltered, boring lives and will see this as a fabrication and suggest it belongs in the soapbox on the basis they don't believe it.
So bill, if you are reading, please contact me via email with fb, what's app, snapchat, whatever I can send you pics on. As I now have pics of two sets of girls kissing at a party with me present. Also a video taken at a pub earlier in the night with me dancing and kissing one of the girls in the pic.
I hope you will take this as enough proof to allow me to pass your own new rule of posts made in the lounge. I realise sone people's idea of a fun night is reading a whole chapter of a thesaurus. Some peoples idea of a fun night is watching a whole series of game of thrones.
Some of us are good looking enough, socially enabled enough and open minded enough, to think doing a line of Charlie and turning and then ruining a lesbian as a good night.! And others want to be updated with progress on this 'challenge'.
|
|
|
|
|
This is, by a LONG SHOT, the most bizarre post I've ever seen in the lounge...
".45 ACP - because shooting twice is just silly" - JSOP, 2010
- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
Don't yo see what Griff posts every day?
... such stuff as dreams are made on
|
|
|
|
|
I don't generally read a lot of the posts here.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
Thank You.
I've decided the lounge has been getting boring of late and needs livening up a bit. Will be more in the future.
|
|
|
|
|
|
Pom Pey wrote: some people's idea of a fun night is reading a whole chapter of a thesaurus.
Not that I want to nit-pick, but thesauri don't have chapters.
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack.
--Winston Churchill
|
|
|
|
|
Daniel Pfeffer wrote: thesauri Ah, but you betray yourself, Mr. Roget[^]!
Software Zen: delete this;
|
|
|
|
|
Pom Pey wrote: Also a video taken at a pub earlier in the night with me dancing and kissing one of the girls in the pic.
Congratulations on being a donor father.
|
|
|
|
|
Pom Pey wrote: and then ruining a lesbian as a good night.! I think she is more bi- than pure lesbian, if not... you would not have "ruined" her
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
RESTSharp is out as my REST client, because it 'throws" if the objects your're sending have interface properties. It says "cannot create an instance of an interface". You're not supposed to. If the property has a value, that value isn't an interface, or down until you get a serialise object.
Yet I used quotes around "throws", because it give ResponseStatus: Error , yet it has sent back perfectly serialised JSON, so if I only comment out the response status check, and just blindly try and deserialize, it should probably work.
Half the google hits for the problem are elephanting idiots that suggest changing your model structure to not use interfaces, just for that one little transport. Elephant, people are stupid!
|
|
|
|
|
If your property is an interface how does it know what concrete class to set as the value?
public class Cat : IAnimal
{
}
public class Dog : IAnimal
{
}
public IAnimal MyAnimal {get;set;}
How does it populate MyAnimal? With Cat? With Dog?
|
|
|
|
|
It doesn't have to serialise class declarations, only already instantiated objects, and then we know what is implementing the interface. The build in clients handle this fine, and for a few more lines of code, but one less package, I'm going with them.
|
|
|
|
|
I've never really seen the appeal of these libraries anyway, I always use the built-in classes, it's not that much code to call a REST service out of the box. There seems to be a type of developer that thinks nothing can be done without a NuGet package! (that goes double for JSON serialisation)
|
|
|
|
|
I thought maybe it would give me something nice like a standard request, with all correct headers etc. and a well implemented async/await. Hahahahahaha.
|
|
|
|
|
Two questions:
- Why not use .NET's WebRequest, and possibly NewtonsoftJson if you need Json serialization/deserialization?
- I haven't looked at RestSharp's code, but I can't imagine it's that complicated (but knowing how some of these projects are written, I'm probably totally wrong) but it seems like it might be easy enough to tweak for what you need?
Marc
|
|
|
|
|
Marc Clifton wrote: Why not use .NET's WebRequest
Because that's so last year? HttpClient[^] is what all the cool kids are using these days.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Richard Deeming wrote: Because that's so last year?
I resemble that remark.
An interesting comparison[^] - quick read.
I guess because I have a little get\post class that still uses WebRequest and NewtonsoftJson of the serialization, I've never looked further.
Marc
|
|
|
|
|
I hear all over the nets that WebRequest is obsolete.<a href="https://blogs.msdn.microsoft.com/henrikn/2012/02/16/httpclient-is-here/">HttpClient</a>[<a href="https://blogs.msdn.microsoft.com/henrikn/2012/02/16/httpclient-is-here/" target="_blank" title="New Window">^</a>] , the new kid on the block is very easy to use, except without the luxury of RESTSharps typed requests, which did all that auto-magically.
So now I'm using HttpClient , and NewtonSoft, which is always one of the first packages I add. With web clients I cannot abide PascalCased names on JavaScript's side of the park. Using HttpClient , for a POST to fetch data, it's only four lines of code before serialising. I can easily wrap that in a helpful method so I don't even know how I get my object, I just get it.
|
|
|
|
|
Brady Kelly wrote: With web clients I cannot abide PascalCased names on JavaScript's side of the park.
I know what you mean. Though it I also dislike the "foo_bar" naming convention that I have to deal with at work (Python/Django backend), so happily there's JsonProperty to decorate the class names.
I'll have to look at RestSharp though, even barring your complaint about it. Though, perusing the code, I can't really tell if all those classes are necessary -- it's hard to wrap one's head around the architecture if the architectural considerations are not described. Gotta love open source.
Marc
|
|
|
|
|
I've just got a WPF app that access a central DB through a Web API, and token based auth. It's about 24 hours hard work, but I have my afternoon naps and TV at night, so in all it's about a week. I have nothing else to do, having just submitted an simple, but non-trivial, file search app as a technical assessment for a job opening in Dublin. That would be a dream come true.
|
|
|
|
|
And since when are elephants dumb? Because Republicans?
|
|
|
|
|
|
Here we go, some things need to remain no matter what happens (that's not a hint!):
Fever, or immanent? It doesn't stop. (7)
|
|
|
|