« first day (1626 days earlier)      last day (3316 days later) » 

4:01 AM
 
 
1 hour later…
5:14 AM
morning!
 
5:25 AM
@Sippy did you have a fight this weekend? imgur.com/NFgHpAd.gif
 
5:46 AM
codelite.org an IDE for C/C++/php
 
 
2 hours later…
7:40 AM
everybody dead on monday with summer hour?
 
Not me.. No time for that, sadly :P
 
7:55 AM
Hello
Good mroning !
Its monday :\
!!urban monday
!help
 
Hello ^^
 
hello tom
 
@BenjaminDiele: Meh, not really.
 
@scheien semi-dead then?
 
walking dead?
 
8:01 AM
@scheien i'm more like shuffling
 
Shuffling?
 
@scheien i didn't even know it was a dance move stream1.gifsoup.com/view2/1097061/shuffling-o.gif
 
hehehe
 
Shambling, perhaps
 
@TomW that is the word i was looking for. In dutch it's called "schuifelen"
 
8:13 AM
Either would be acceptable
 
Anyone used to WCF and SOAP? Having problems to understand how I should use the response class
 
@thommyjonasson yes. What do you mean by 'the response class'?
 
I create a placeholder for request and response like this:

DK_N.DKServices.GetUserActivityRequest getActivity = new DK_N.DKServices.GetUserActivityRequest();
DK_N.DKServices.GetUserActivityResponse responseActivity = new DK_N.DKServices.GetUserActivityResponse();
getUserActivity takes username and password.
responseActivity returns some data, shown here i.imgur.com/4QXl5qN.png
But I don't exactly know how it works, since I am not used to working with WCF and SOAP in general
 
Oh I see, that's a generated proxy, gotcha. What's the problem?
 
Ye exactly.

The problem is that I don't know how to get the response data
 
8:25 AM
Call the action method and the response is returned from it?
Sorry, I don't see what's not clear to you
 
Me neither really xD There is something with how the request and response works that makes it unclear how to move forward
 
oh!
It returns a string. I see
 
The code is taken from a youtube video, so I have kinda moved on from there
 
OK, this looks like something to do with the proxy generation, sometimes svcutil infers from the service contract that it should wrap the request and the response in XxxRequest and XxxResponse types. I can't remember exactly what causes it to do that. However, your client doesn't expose an action that takes those types. Did you write the Request and Response types yourself?
Or were they generated by Add Service Reference / svcutil.exe?
 
Nope, they were generated. I just wrote the WSDL GetUserActivity
 
8:29 AM
Argh! Anybody know how to get rid of the annoying visual studio errors. "Cannot find resource dictionary" ? It exists, its loaded at runtime, but the designer viewer doesn't like it.
 
@thommyjonasson you wrote a WSDL? Rather than generating it from the service?
 
Well, the WSDL is written in a desktop system. I then added the service reference to that which added all existing WSDL from the system
So the answer to your question is that it generated from the service
 
@thommyjonasson anyway, I think the solution there is to call GetUserActivity just with the parameters it asks for rather than setting them on the request, and accept the response as a string. I'm not sure why those Request and Response types are there, but it appears that the client doesn't use them. That's a perfectly valid setup for a WCF proxy client
But usually the code generation does one or the other
You have a lot of out parameters on that action method, btw. That's kind of weird. I don't know how WCF deals with those
 
Aight, I'll give a try! Here is where I got the code from: https://www.youtube.com/watch?v=UQ0lqGkVMJU

I'll get back to you. Thanks for helping out :)
Ye, there are a lot of data I want to receive from the system, which the user should get when logging in.
is*
 
Right. What you see in the video is slightly different, the insert class he's instantiating looks like a datacontract, so his action method would take a parameter of type insert
 
8:38 AM
isn't that his "request"? That's what I thought anyway
 
Request and Response types are some internal plumbing that's required by the serializer, I think. Trying to pass them to a method that doesn't accept them won't work. In your case it appears your action method takes two strings
 
exactly, it takes username and password
 
It is, and your request type is a pair of strings
 
Where I get lost in that video is when he does "response = soap.insert(insert);" Which I translate is where he checks if his request values are valid to get the requested data?
response data* sorry
 
goodmorningpeople
 
8:44 AM
morning @Squiggle
 
mornin'
 
@thommyjonasson no, that's the call to the service
 
oh SOAP! Fun times!
 
ahh alright
But shouldn't this be valid:

responseActivity = soap.GetUserActivity(getActivity);

When calling the server?
This is where I get confused :D
 
The action method doesn't take and return those types, so no
 
8:50 AM
oh I see
 
@BenjaminDiele That's clearly your mom getting attacked by a cock again yo
 
On a server somewhere, the one that hosts that service (assuming it's WCF) there will be some class with a method called GetUserActivity that takes string, string , out string, out string,...
There isn't one that takes GetUserActivityRequest
 
@Sippy good morning to you too :D
 
:P
 
The client mimics that API for you, that's the point of it. It doesn't expect you to package your data up in messages that are suitable for the serializer, that's done for you
 
8:53 AM
@TomW But those "out strings", should placeholders for those be added to the parameter when calling the server as well?
 
'placeholders'?
 
variables, sorry that I confuse terms.. Way too used to Swedish terms -.-
I have never encountered "out" before
 
You'd have to, that's how out parameters work. Without them the code won't compile
That's a very strange way to have written a service, but I've just read that WCF supports them
@thommyjonasson are you familiar with ref parameters?
out is like ref except that the variable passed as an out parameter need not be initialized, and must be set by the declaring method
 
Well, I am familiar with call-by-reference in other languages, but not the "ref" parameter in c#
I see!
imgur.com/yI9y7xK I tried adding all parameters before, but I just receive invalid arguments. I can't reall see what's wrong with it
 
@thommyjonasson declare each one first, then prefix with out when passing to the method
int foo; client.Method(out foo);
 
9:05 AM
Step forward! System.ArgumentException. https expected
Does that have to do with Web.config?
 
Very likely
http/https on the service base address
 
Ohh man.. :P
 
I'd expect add service reference to have set that up correctly for you though
can you post an anonymised web.config?
 
aight, give me a sec!
Sorry for posting images. Tried to find something similiar to JSFiddler for XML :)
 
you blanked out the address :P presumably you've set that to be https
 
9:18 AM
Now I have :/ New exception
System.ServiceModel.EndpointNotFoundException, no end point that listens to (the address)
roughly translated.. Should change to English version of VS
 
Can't help you there, this depends on server configuration. You'll need to find out what the server really expects
Obviously I have no way of knowing that one
 
I see! I'll check with the company I am doing this for. Hopefully they know what they have configured. Anyway, steps forward! Thanks a lot for your help. Any way to commend you somehow?
 
Send him beer!
 
My...Poor...Student Wallet :<
 
9:24 AM
 
The Worlds End <3
 
But @TomW do I need to change some of the bindings to https as well in that case?
In the web config
 
@Squiggle I knew what it was but haven't seen it, is that Martin Freeman on the left?
I may need to watch it.
 
@Sippy yeah.
It's sooooo British
 
I'ma watch that later.
 
9:26 AM
The bit in the beer garden with the arms and legs thing had me in stitches
 
@thommyjonasson I'm not sure, basicHttp seems to support https, so you'd have to look up how to configure that one. I've not used basicHttp much and never with transport security
 
Haha you know it's going to be good when...
public static final String A_TEXT = "A";
public static final String B_TEXT = "B";
public static final String C_TEXT = "C";
 
Alright :)
How pretty! @Squiggle Might be done by me!
 
@thommyjonasson If you ever want a job you should stop doing that. :D
Actually what am I saying someone was hired to write that
Do what you want!
 
@Sippy Too bad for the company that already employed me.... Kappa
 
9:31 AM
Rofl
 
Haha, I might start writing like that just because :D
 
@Sippy: those java devs you know :)
 
Java.... urgh
 
I don't mind Java.
 
Need Help Guys
 
9:33 AM
Wouldn't want a job with it but I can figure out how to do stuff with it.
I can't fucking type this morning, keep saying things I don't mean to say
Should be fun
Mar 25 at 10:59, by Sippy
Newcomers please read: http://csharpchat.com
 
i am saving a video file using webmethod on server..but i need its thumbnail too
how can i save thumbnail of video file while saving??
Any Idea??
 
Are you generating the thumbnail and saving it separately?
 
i want to do that but don't know how to do...i don't wanna use third party tool
@Squiggle
 
@yash then start researching and writing code
 
9:40 AM
@yash A video is just a file. You'll need to use 3rd-party tools to extract an image from the video to use as a thumbnail, if that's what you're intending to do
 
> We all know that many developers have difficulty in dealing with built-in concepts like dates and times, and that for and switch statements don't necessarily have to be used with each other.
Best start to an article ever lol
@yash Are you wanting someone here to show you how to do it?
Cos if you are, you should be on codementor.io
 
i don't want that
 
@yash so what sort of assistance are you looking for?
 
9:58 AM
Anybody here use Telerik?
 
@Asheh ...I fear your next question
also, what verision/type of Telerik controls?
 
@Squiggle - why? im just trailing it at the moment. Trying to do somthing simple like check if an item is "executed" in RadTreeView (mvvm).
Googling around & found nothing yet..
 
@Asheh I haven't found a scenario where Telerik controls are any better than rolling your own, TBH.
 
I have
Its called Time :P
 
yeah they're fine for prototyping, but I always come up against an issue that takes me days to resolve
 
10:03 AM
That does worry me
 
also is this WebForms? or MVC?
because their MVC offerings are much more malleable than their WebForms controls.
 
But I have to wonder if me rolling out my own DataGrid, Diagram View, Form View, Auto Complete Box, MultiSelect TreeView & Docking View is going to take less time doing it myself :)
WPF
 
ah OK. WPF might be different :)
you're probably OK, but don't go thinking that you can bend it to your will - you'll probably still have to make some compromises :)
 
Yeah :(
I've got my treeview up and running quite quick, but no idea how to check if somthing has been executed in it
so ive spent 10min up and running, 2 hours on the latter
 
I can't really help you with that. I'm a web guy.
 
10:28 AM
wpf ew
wcf ew
webforms ew
feed me mvc!
 
lol
 
Get with the times, @Sippy. All the cool kids are doing WebAPI now!
 
why is wcf ew @Sippy?
 
server-side HTML templating is just soooo 2011
 
@scheien Cos it's grim :D
 
10:33 AM
meh :)
 
@Squiggle angular nerd!
 
WPF is a great tool for certain scenarios
 
I need to learn JS properly
And Angular
And all that fancy shit.
 
Doing some awesome webforms now (it's so crappy)
 
@scheien l0l
 
10:34 AM
 
The devs here are all really old
So they all wanna do stuff in Web Forms all the motherfucking time
 
old and stupid?
 
stuck-in-their-ways
 
They hired me as an MVC developer and the amount of times I've heard "Oh, just do this in web forms, it's not that hard."
 
Noone wants to do stuff in webforms is they can choose something else
 
10:35 AM
And I'm like NO! tantrum
 
@Squiggle: Probably that yes. Bundled with the fear of learning something new
 
There's a 65+ year old dev here who they gave an MVC project to
And he actually pleaded to stay on it after taking 4 weeks to set up Visual Studio.
So my boss just said "fuck it, I'm not allowed to fire him, that'll keep him busy for a year"
 
Your boss is rude.
 
Yes.
He called the old guy a cunt on the phone lol
 
:-/
 
10:39 AM
Sounds like he should be fired.
 
I reeled slightly at that.
 
4 weeks to set up VS? :D
 
Yep
AND
 
he's totally getting paid more than twice as much as you
haha etc etc
 
He took credit for it, when in actuality, he sent IT support to find me, then I had to call him and set it up over the phone for him.
He belongs on TDWTF.
Frigin dinosaur
 
10:40 AM
perhaps he's just stopped trying to learn
 
@Squiggle I think he's on nearly 3x as much as me.
And he still suggests making things with VB6
 
I have a soft spot for VB6
 
He also loves access and doesn't get why people dislike it so much
 
it's like playmobile or duplo
 
Hahaha
 
10:42 AM
Don't bad mouth duplo @Squiggle
 
Me and my brother made a huge Duplo trophy when we were little, then ran round the living room with it
 
I play with duplo on a daily basis with my 2 year old, don't ruin it for me :(
 
My brother tripped over my mom's foot and fell headfirst into a fireplace
 
One thing that always freaked me out in Duplo was that everything was bigger than lego. You had Duplo toddlers that were, like, 4 times taller than adults in Lego.
 
Good times
 
10:43 AM
like there's some sort of inverse ageing process that happens in the Legoverse
Lego people shrink as they get older, and then get made redundant and replaced by robots with Technic and Mindstorms. It's a brutal world.
 
hehe
 
11:07 AM
My kids will get a raspberry pi and nothing else.
If they ask "What the fuck am I supposed to do with this!?".. Then I reply with: Figure it out, you dumbass
Kappa
 
11:53 AM
Go Vettel
 
@KendallFrey no.
He's a hacker
too OP
 
Ferrari is OP? LOL
 
12:07 PM
IKEA Markus office chair is suitable for the colossal of buttock, for sure. Just finished assembling mine - it's huge!
 
What is the proper way to assign Handlers to dynamically created objects? What should be passed as sender and handler please?
    var tbl = new Table()
    {
        Margin = new Thickness(0, 0, 0, 0),
        Width = 50,
        Height = 50
    };
    tbl.MouseDown += CircleTable_MouseDown(null, null);
 
@TomW Managed to get passed all exceptions. Although the soap.GetUserActivity(str, str,....., out str); does save the values to the variables
What I did was to just to regenerate the service reference and it corrected the web.config
 
@Marek you don't pass the function call, you just pass the function itself
() calls a function, you don't want that
 
12:22 PM
@thommyjonasson glad to hear it
 
But ye, back to square one since I need to figure out why I am not receiving any data :P
 
@KendallFrey Thanks.
 
@thommyjonasson I suggest enabling service tracing and inspecting the incoming message to see whether it's the serializer screwing it up, or the actual response from the server that's bad
 
yay debugging
 
yay meetings
 
12:35 PM
suck it, monday
i need coffee and cholesterol
 
@SteveG Can I join?
I need to leave the country cos I'm a moron
 
bacon-flavoured coffee
 
Canadian Bacon?
 
no, real bacon
 
12:53 PM
You mean back-bacon?
 
yess
 
mmm Monday Bacon
 
mcdonalds
what they call eggs but we all know are made from childrens souls
 
Urgh. You guys should be glad you don't share an office with me today.
 
@Squiggle go easy on the beans in future hey?
 
1:06 PM
it wasn't the beans what did it. It was all the wild garlic sausage.
 
The farty era is a dark chapter in the history of this morning
 
Morning everyone
 
JLott.
 
good morning
 
Squiggle.
 
1:19 PM
@Squiggle I'm not used to eating scrambled eggs. My office mate isn't in... yet. :(
 
1:32 PM
Ugh eggs sound so good right now.
 
My office is open-plan with about 20 other people.
I baked some fresh bagels last night and ate 5 of them. I think that's probably what did it.
I don't trust software developers who can't cook.
3
just putting that out there
 
@Squiggle does ramen count?
 
@BenjaminDiele is it good ramen?
 
@Squiggle do you even need to ask after my question :D
 
morning gang
I am applying for a job and the company sent me a coding problem to resolve. It's for the Mars Rovers problem
I think it's a common problem
and i came up with my own version
They will contact me if the code meets their standards !!!
we'll see
 
1:56 PM
Good morning, would you say that BCrypt is an excellent Salt / Hash?
 
what would make you say it isn't?
 
@Greg yes
 
Thank you, @KendallFrey.
 

« first day (1626 days earlier)      last day (3316 days later) »