« first day (1943 days earlier)      last day (2999 days later) » 

1:01 PM
hello guys
 
hello there
 
hello here
 
i need to get a list of all methods in a specified class
i try the following but it return null reference exception

 List<string> MethodNames = new List<string>();
            MethodInfo[] methodInfos = Type.GetType("myclass").GetMethods(BindingFlags.Public | BindingFlags.Instance);
            foreach (var item in methodInfos)
            {
                MethodNames.Add(item.Name);
            }

            return MethodNames;
 
methodInfos.ToString() makes no real sense there.
You probably wanted item.Name
 
sorry i modified it
 
1:03 PM
What's the actual value of "myclass"? That has to be namespace qualified iirc
 
@tom W i have class in the project called myclass
This line through null reference exception

 MethodInfo[] methodInfos = Type.GetType("myclass").GetMethods(BindingFlags.Public | BindingFlags.Instance);
 
Yeah, has to be a qualified name
 
you mean the full name with name space ?
 
Yes
 
Project name too?
 
1:05 PM
i will try it again
doesn't work
Object reference not set to an instance of an object.
 
Hoping someone can validate my idea about AutoResetEvent. Multiple calls to Set() won't have any effect on the next call to WaitOne(), right? So I imagine WaitOne will block in that case...is that correct?
 
@Bassem try typeof(myclass) instead
And print AssemblyQualifiedName while you're at it and check that it's the same as what you used
 
@tom W , myclass is string ?
 
morning
 
No, exactly what I said
 
1:22 PM
@TomW apparently according to the regulators its ok for BT to say stuff like "pay us X a month for upto Y" and then give you whatever the hell they want ... that's basically the same as a software house saying "pay us for a licence fee and we may choose to fix bugs but we might not"
@Bassem try this: MethodInfo[] methodInfos = typeof(MyClass).GetMethods(BindingFlags.Public | BindingFlags.Instance);
assuming that works the issue is that you aren't providing a fully qualified name for your type
something like "System.IO.FileInfo" as opposed to "FileInfo" ... it can't resolve the latter
 
I hate deploying stuff to customer.. Especially when you think you are so damn clever
 
Clever < Correct
 
Web Application developers. Here's a question for you: How many of your apps would break if users double-clicked on things?
 
@JakobMillah eh ... who was that aimed at?
 
@Squiggle Haven't developed for web in the last couple of months, but I think... none? Double-clicked on links/buttons? or randomly?
 
1:31 PM
@Squiggle none in my case ... its one of the basic things i assume dumb users will do
 
@AvnerShahar-Kashtan @Wardy this makes you either overly confident or better than the average developer :)
(I'm inclined to believe the latter is true, BTW)
 
Depends on if there are doing an update to something in the back-end - sending the same request for data should not break any web app
 
@Squiggle my entire career has been fraught with such stupidity ... i guess i'm either really lucky or unlucky depending on how you look at it
 
@Wardy Myself
 
@juanvan if a user double-clicks a 'delete' button, one request should come back as a 200 OK and one could come back as a 404.
I've seen plenty of apps that don't cater for that
 
1:35 PM
@Squiggle Awwww. :)
 
"404 in an API calls can't happen, surely!"
 
using the wrong key to delete off is bad coding - .First.Where(r=>r.Name=="Juan")
 
@Squiggle I've seen large production apps - in use by financial companies, government agencies and so on - put a big warning "Press this button only once!"
 
D:
 
API should return a Not Found
 
1:36 PM
that's what I said
 
Should interpret as 'Really delete'
 
should check first the Entity exists then delete - 2 calls but is proper
 
are we talking about REST here?
 
thought so
 
but what if the entity was deleted by another action between the check and the delete?
 
1:39 PM
.5 seconds to fubar
 
it'll happen :)
 
ya its not like INPC where you hold the value, then update humm
 
Multiple deletes are less of a problem - getting a 200 followed by a 404 is often the pit of success here. Multiple inserts might be more troublesome.
 
Lock the table be the only way
use access it does not like 2 people update at the same time - Solved
 
@juanvan I never delete on a fuzzy match ... if you can't give me a primary key then you shouldn't be deleting
 
1:42 PM
ya just an example of bad coding
 
but if you're just getting two POSTs against /api/people, how do you know that these are troublesome?
perhaps the client wants to create two people called Dave
 
@juanvan surely if something is deleted it's basically just the caller saying "make this go away" ... so if its gone already then ok ... 200
 
or 50 right then
disable the button on click till the response come back for 1
 
@Squiggle my api code would would accept that, my client code for the button wouldn't
 
@Wardy you would return 200 if a user tried to delete a resource that doesn't exist?
@Wardy @Wardy precisely the right approach :)
 
1:44 PM
@Squiggle depends on the situation but i don't think its wrong per say
 
doesn't feel right to me
 
@Wardy I agree with this approach as well.
 
@Squiggle if you can't guarantee the quality of the calling code then it's reasonable ... that said I think it's more "purist correct" to throw a 404 on the second request
 
404 from an api?
 
uhhh yeah of course
why wouldn't you? The resource doesn't exist
it was already deleted. What should you return?
 
1:50 PM
oh ya - but not a 404 - be a not Found response
 
that's a 404
 
404 is an error to me
Not Found is a response
 
The 404 or Not Found error message is an HTTP standard response code indicating that the client was able to communicate with a given server, but the server could not find what was requested. The web site hosting server will typically generate a "404 Not Found" web page when a user attempts to follow a broken or dead link; hence the 404 error is one of the most recognizable errors encountered on the World Wide Web. == Overview == When communicating via HTTP, a server is required to respond to a request, such as a web browser request for a web page, with a numeric response code and an optional,...
 
error message
 
indeed. The client tried to delete something that didn't exist. That's an error.
 
1:52 PM
@juanvan (int)HttpResponseCodes.NotFound == 404
 
guess have to change the way I think about that
not a Huge change but - Error is to Fire
 
^ @Wardy suggested it could be a 200 'OK' response instead, but whilst it's technically fine, it's semantically incorrect.
 
OK that did not exist
 
@juanvan When doing REST/HTTP, there's always a result code. Results in the 200 range are successed, 400s are Request errors, and so forth, but there's always a result code, regardless of the requests' content.
They're not analogous to method calls, where a method can either return a result or throw an exception.
More like Win32-style C API calls, where practically all function calls returns an HRESULT code, and the function's actual return value is returned via a ref pointer.
 
200 OK would mean "yep, I've deleted that for you"
 
1:56 PM
@juanvan REST tries to model your application logic onto HTTP calls. SOAP simply uses it as a transport mechanism, so a SOAP call will return 200 OK regardless of the logical application result (the HTTP call returned successfully, the web service call failed). The REST approach is that the HTTP DELETE verb is also your application's DeleteResource() method.
 
rule of thumb for HTTP response codes:
1xx: Hang on...
2xx: Here you go
3xx: It's over there
4xx: You fucked up
5xx: I fucked up
 
lol, the last 2 are very correct
 
Ya following API - HTTP verbs has changed the meaning of some thing back in the 90s a 404 was always MIA page
 
@juanvan That's the case when HTTP is used for websites. But when you're using it for applications, the HTTP verbs operate on your data, not on some go-between web-service proxy.
 
a 404 response can always have content - like a pretty web page that says "Oops I can't find what you're looking for"
that's what you've been seeing
 
2:02 PM
happy friday, bitches
 
:O
IF ONLY
 
@SteveG taking the rest of the week off?
 
user47589
is it payday?
 
@Squiggle or some Opps page
 
@juanvan we'll see
lol
pew pew
 
2:03 PM
HA - depends on who ya piss off today
 
lmao
 
I which it was payday... I got like 80 euro left from last salary and it's 2 weeks left and I need to buy gas..
 
you know it
 
@SteveG Error 401 - who are you to tell me when it's Friday, aye?
ooh wait. it IS payday for me! :D
 
I am the ruler of all, the master of the universe, the decider of days
 
2:04 PM
was payday yesterday for me
 
Fuck yeah thanks for the reminder!
 
10 days until payday.
 
user47589
I didn't vote for you, @SteveG
 
realizes Jetbrains has removed it's easter 404 page
 
But I got a nice little present from a bank that I'm apparently customer at... 350 euro just laying there waiting for me
 
2:05 PM
@Amy haha i'll pretend to be a republican and pretend like you did anyway
 
user47589
Good idea, rob a bank.
 
Crossdressing with nothing but your mommas stalkings on
 
what
lmao
 
Rob my own bank account at least!
 
user47589
"But officer! I stole from myself!"
 
2:07 PM
then files the insurance claim
 
"Robbery is still robbery! You're going to jail"
 
speaking of - purchased a car Friday, hit a deer Monday.. Ya they are all over this like it's fraud
 
ugh fiddler
 
user47589
Note: this room does not condone the cool crime of robbery.
 
DO_NOT_TRUST_Fiddler
great cert
 
2:08 PM
@juanvan You did? wtf
 
love it
@juanvan should've taken the deer and put it in your trunk
 
@juanvan oh no!
 
wrap it in a bag
 
Yep - kinda pissed the Prius did not stop fast enough
 
how bad is it?
 
2:08 PM
then bring it to the insurance office
 
it did not die or there would be no prius
 
should've killed it
 
only the bumper and hood - no headlight s
it got up and jumped over the car behind me
 
user47589
next time hit a deer properly.
 
user47589
don't half-ass it
 
2:09 PM
with a Truck
 
should've chased it down and slain it with your hands
after what it did to you
 
user47589
^
 
that thing would have came thru the window ^^ Def when I can chase a deer I will win try out for the Olympics
 
user47589
that deer is gonna tell its friends what a pushover you are.
 
@juanvan now thats REALLY funny
 
2:10 PM
yea
in all seriousness
 
one time my brother hit a deer, it actually tried jumping over him, and landed in his sun roof
 
i've had deer run into the side of my car when it was parked
so
 
Deer are Dumb
 
but delicious
 
user47589
they're giant rats
 
2:10 PM
very delicious
 
they make the worst sounds
 
user47589
i had deer in our yard this morning. they watched me as i left for work
 
Need to let them be hunted all daylight savings time - teach them to be up and active at dusk
 
louis ck explained it correctly
 
haha
 
2:12 PM
need coffee brb
 
@Failsafe leaving us hanging on that one
 
coffee sounds good
 
time for a slushi
 
i could go for a caramel machiato
however you feel like spelling it
 
user47589
i spell it "sugar"
2
 
2:14 PM
Yep any kind of Sugar
 
user47589
just dunk your head in a barrel of sugar. its the same thing.
 
lmao
 
LICK
 
you people crack me up
 
@Squiggle I agree
 
2:15 PM
YOU PEOPLE
 
user47589
who?
 
/me goes in search of easily digestable sugar.
 
you know
 
@Squiggle love that
 
@juanvan what one
 
2:17 PM
louis k
 
oh man hold on
!!youtube louis ck deer
 
@SteveG you say that like its a bad thing
 
user47589
hold onto your ponies
 
boom
 
2:19 PM
@TravisJ Yeah, about the closest I can get to it.
 
"Deers are assholes"
 
I've managed to hit two deer on I-5, going anywhere from 75-85 mph.
 
damn
 
my friend hit a deer a year ago
 
Yeah, I actually rolled one of my cars after hitting one.
 
2:21 PM
thankfully, he took it out with the side of his car and broke its neck
all meat unbruised
 
Hahaha "He ran and smashed his body into my fucking car"
xD
 
was totally worth it
 
@Failsafe wow I bet he didn't go hungry for a month
 
@Squiggle we had a BBQ
 
\o/ RIP tasty deer
 
2:23 PM
@Failsafe Yeah, the second time I hit a deer I clipped the neck and its head exploded.
 
he rested
in my stomach
 
user47589
a guy who works with my partner posts on their lockers bloody pictures of deer he shot and mutilated. he's pretty messed up.
 
define mutilated
because i know people who skin and fix in the field
 
user47589
take knife, start cutting randomly and stabbing
 
oh
 
2:24 PM
!!define mutilated
 
@Greg mutilated simple past tense and past participle of mutilate
 
user47589
thanks @CapricaSix, that clears things up
 
@Amy Sadly, people don't respect nature.
 
hello people
 
@Amy Sometimes Caprica makes thing's worst.
 
2:25 PM
Im not people
 
user47589
what are you?
 
@Amy He is a cyborg from the future, who has come to our past to kill John Connor.
 
user47589
oh, well that's fine. john connor is a douche.
 
My phone started playing this video to a band I like, man it is weird.
 
user47589
1 message moved to Orphan GIFs
 
2:27 PM
LOL @ this gif
 
Wow.
 
yeah that was mine from the other week
 
That gif reminds me of the old Adobe spiral effects you layer into an image.
 
user47589
1 message moved to Orphan GIFs
 
:28677360 get miranda out of here
ty
 
user47589
2:30 PM
very distracting
 
Yeah.
 
Has anyone used a webservice with web forms?
where the web service was an .aspx?
 
@Wardy anytime you say "YOU PEOPLE", regardless of which group you're referring to, its racist
 
@Greg did the deer die?
 
@juanvan Which time?
 
2:34 PM
at 75
hit mine doing 5mph but it got up and ran
 
thats funny
 
@KalaJ You can do it the old school way. Use an .aspx and use the Page_Load or you can use .ashx file.
 
@SteveG So either you mean that and you admit you're an asshole or there is a context in which it isn't racist ... its rhetoric humour
 
one time i was going like 5 mph, and a deer ran straight into the side of my door
so glad it didn't break my drivers window
 
@Greg wtf ... people still use webforms?
 
2:35 PM
@KalaJ The .ashx is a generic handler file, which acts as a web-service.
 
jeez ...
 
actually i am seeing .asmx?
 
@Amy has invited you to join Orphan GIFs
>.>
 
did you offer it some Grey Poupon @SteveG
 
@KalaJ that's almost as bad
 
2:36 PM
@Wardy i mean that, how does that make me an asshole?
@juanvan mmmm
 
@KalaJ Yeah, you can do it that way.
 
@SteveG because you're being racist deliberately
 
I have an issue I need to debug... it's interesting but idk if it makes sense
 
@Wardy thats not at all racist, you're mind is going that direction, not mine
 
@KalaJ isn't that the purpose of debugging ... to determine if it makes sense
 
2:37 PM
so I have two projects, one from 2013 and one from 2015
 
@juanvan The one where the head didn't explode, did get up and run off. But I tried to stop for that one, so though I was going 75 I think I slowed to 45 before I hit it.
 
@SteveG hey you were the one who said you were racist not me lol
 
the one from 2013 which does not have the webs service, I can log in and use the db I attached
 
@Wardy claiming that others consider something racist, is not at all me being racist, i'm not sure how you make that connection
 
the one from 2015 which does have a web service call(?), I can't login and I get an authetication error
although the user and pas are in the db
not sure why I Can't login
 
user47589
2:38 PM
i forbid it
 
When I view the details to exception, it says, "The network path was not found"
 
I think i'm feeding a troll ... time to go do some work
 
i'm an owner, not a troll
 
a network related or instance specific error occured while establishing a connection to sql
I think it might have to do with the web service but idk
 
@KalaJ that can happen due to permissions or a wrong connection string
or the sql instance could be down
 
2:39 PM
Can you just log directly into the database (disclaimer: I just got here and am basing this solely on the last three messages so I have no idea if I actually understand the problem)
 
but its most definitely in the data access code somewhere if you are getting a sql exception .. somewhere that connects to the db
 
@KalaJ It can also occur if the IT has it set to rather say "Failed to open connection" it simply doesn't respond back to the client.
 
well why I can I login with the project file?
 
boom
 
"a network related or instance specific error occured while establishing a connection to sql" doesn't sound like an auth issue but sometimes errors are misleading
 
2:41 PM
/winning
 
I'm using the same .mdf file and the same connection string
 
sup nerds
 
@ShotgunNinja hey!
 
Reticulate the communications pipeline. That should unhance the byte processors and ensure the endpoints are no longer faulted.
 
@ShotgunNinja afnoon
 
user47589
2:41 PM
linux your petabytes
 
Every time I come into this room, all I hear is Ozzy Osbourne. "All aboard the crazy train, haha."
 
user47589
crash the stack master pagespace
 
@Squiggle seems like a good place to Task.Run(() => { ? })
 
Trying building a GUI in Visual Basic to ping the IP address
Hack the Gibson
 
Does anyone even know what reticulate means?
 
user47589
2:42 PM
its something you do with splines
 
Duh, it's what you do with splines. Jeez
 
!!google reticulate
 
yes i do
 
"Divide or mark as if to create a net or network"
 
user47589
2:42 PM
!!define reticulate
 
@Amy reticulate Network-like in form or appearance.
 
And I know what splines are.
 
@SteveG i didn't know you could do that!
 
user47589
I can also emphasize random words
 
So if I have shutdown, what would happen to the consumer while loop? Will it hang? — deostroll 13 secs ago
 
2:43 PM
I've read a book by Ed Catmull, I know about splines too
 
So far my morning has been my team lead telling me how much trouble they had pushing changes 10 minutes before EOD yesterday.
 
@Wardy you must be new here
 
And I'm just like, "yeah, no shit."
 
@SteveG im waiting for clippy to pop up and suggest that I need help with chatting here
 
16 hours ago, by mikeTheLiar
FML my manager just decided to push changes to the public-facing website 10 minutes before the end of the work day
 
2:44 PM
reticulating splines just means building curve meshes
 
@SteveG i pop in every now and then but usually don't stay for hours on end
 
spend most my time getting trolled in the game dev chat room
 
now that the Great Chattening is mostly over, I do much of the same
@Wardy that's where I recognize you from
 
yup lol
although I feel a crap ton more knowledgeable in here ... most the chat is stuff i know
 
2:46 PM
lol right
 
i'm a total retard when it comes to game dev stuff ... geometry hurts
 
I've been dabbling in game dev since like 2006
 
@ShotgunNinja same
 
@ShotgunNinja same
 
now I'm actually working on a game and I'm so lost
 
2:47 PM
i dont really like it
 
dabbling being the key word
 
it's not for me
i like making devops tools and LOB apps more
 
just like "I know how to build this if it's an Angular app..."
"...maybe if I structure it kind of like that?"
 
lol
 
game dev is something i want to do as a hobby but the tooling is nowhere near as evolved as in web tooling
 
2:48 PM
go structure unity as an angular app
 
you can see the Java programmer in my past, since we now have two Manager classes and we haven't made our first demo
 
just make some directives
 
if i could debug compute shaders by stepping from the dispatch call in to the compute function that would be a great start
 
call all your function calls $scope
you will be fine
 
2:49 PM
I can do that with my web apps and step from client to server seamlessly
 
I didn't mean THAT much like Angular, I just meant with dependency injection
 
lol
nah bro you need the whole thing
go hard or go home
 
good (ugt) night
 
haha
night
 
good (ugt) grief that is outdated
adios
oh jeez, it's like some weird parallel dimension; it's almost 9am here and I'm the only one (except for one other guy) who's here and logged into Slack
 
2:56 PM
hi
 
like literally no one else is
 
@ShotgunNinja im on slack 24/7
because my phone never turns off
 
@Failsafe Stack != Slack?
 
whoops
i meant slack
there
 

« first day (1943 days earlier)      last day (2999 days later) »