« first day (957 days earlier)      last day (4005 days later) » 

9:06 PM
 
The blonde third from left looks pretty calm. Nice rack, too.
2
 
i like the dinosaur in the back
 
@drch that's not a nice way to talk about grandma Josephina
 
You dirty little zoophile.
 
10th from the right
 
9:22 PM
I just arrived and walked straight into sexist postivie comments, an image of a t rex referenced as Jospehina and insults of being a "zoophile" - yup this is a dev chat room
 
this is a dead room
 
can said corpses help with a query regarding tasks and parallelism,?
 
hopefully, ask (we are drch powered I think)
 
this will help explain
 
fucking YUI. they linked an external CSS file through HTTP in their MINIFIED JS FILE. That means I get errors in Chrome and IE when trying to access it from HTTPS. WTF were they thinking?
 
9:29 PM
I have a Task that returns a bool, for a simple login process, that task calls another task that it awaits, that makes web requests and returns the response. In the web request task I attempt to call 'trysetexception'.
 
yo dawg i heard you like tasks
 
My problem: the await does not seem to return anything if the trysetexception is triggered and then the original task does not complete, it does not force close / crash out though
@drch are you the Task master? I am catching up on c sharp after being away in Java land
 
what does trysetexception return
 
pastebin.com/eABXZr1y
@drch that pastebin has the code in
 
replace your tryset's with sets and see if you get an error
 
9:32 PM
okie dokie
 
try is a safe way (like int.tryparse())
but if youre not handling the return value youre not handling the error
 
why not just throw?
I think you can try catch an await
 
I am just trying setexception, on windows phone so takes a second or two
 
@JohanLarsson yeah, i think if you just throw in that body it should behave the same way as doing it via the task completion source
 
I'm gonna try it. getting out of bed
 
9:36 PM
ha good cause im fully in bed and comfy
 
hmm odd I can see some errors in the console but the app doesnt crash out - A first chance exception of type 'System.UnauthorizedAccessException' occurred in System.Windows.ni.dll
 
well sure - the exception happened in the task
 
I also tried to be dirty -is ashamed- by trying tcs.TrySetResult(result); but that won't compile
 
and presumably doLogin will return false
in a round about way you have: try { } catch { return false; }
 
@drch jerk...
 
9:39 PM
@drch yes exactly
 
what did i do?
 
follow the link.
also, I wish I was in bed and comfy.
 
ha
 
@drch I thought my generic web request Task could return the result or null, as for this project we don't need to know what went wrong.
 
I wish my bed was comfy, actually. It's so freaking hard and old.
Well, for a mattress.
 
9:40 PM
@GrahamSmith: so whats the behaviour youre seeing?
 
inb4 pictures of stone sleeping slabs
@drch you're*
 
aint nobody got time for punctuation
 
@drch ain't*
;p
 
@drch when the exception is thrown, as it should, the original task that awaits does not continue, which i thought is odd as I thought it would continue, unless it is because the exception stops both tasks
 
9:43 PM
@JohanLarsson Ewww, async/await on a nonblocking method?
 
@JohanLarsson I feel so dumb right now
 
@ShotgunNinja not sure I understand, I took Grahams code and cleaned out all just to test the exception
 
gj johan, so what happens in that test case
 
@GrahamSmith why?
 
@JohanLarsson I could surround the await in my first task with a try and catch, and if an exception is thrown return false. Like it
 
9:46 PM
@drch green dot
 
@JohanLarsson and @drch thanks so much for the help :) try and catch solved the issue
-sigh- I havent slept in days can't wait to finish this job and get paid /rant
 
eww, try catch is ugly :P
 
@TravisJif you know how to improve my code or provide constructive feedback I am really open to ideas and thoughts
 
Sorry, I didn't review it so I can't offer any ideas :(
 
i think if you are awaitng ExecuteAsync you have to try catch
 
9:52 PM
I have never used async/await just played with it
 
if you ExecuteAsync().Wait() you can check for a result/fault
 
From what it looks like, you are using try catch to control the flow of your program, which does not seem right.
 
Here is my current code that will work fine although having try/catch in every method that calls my ExecuteAsync is not the best but I can live with it
 
    if (response.ErrorException != null)
    {
        throw response.ErrorException;
    }
instead of ohnoes
assuming youre using restsharp
 
I am
 
9:56 PM
I think try catch and throwing makes sense there
 
@JohanLarsson Oh never mind then
 
@drch that reads a lot better
 
@ShotgunNinja still relevant eww, the sample is pretty strange
 
yeah i dunno
the whole thing with restsharp
is that it doesnt throw exceptions on 4xx status codes like a webrequest does
so its giving you the option to avoid things like this
i would personally just set the result to null if the status code is not OK
instead of throwing an exception
 
tried that but that won't compile
trySetResult(null)
 
9:59 PM
trySetResult(default(T))
or constraint T to a reference type
public async Task<T> ExecuteAsync<T>(RestRequest request) where T: class
 
Just trying it now
it would be better so I dont have to have try/catch everywhere
 
but you will have null checks instead
but null is probably faster
 
yeah, the null check is there already. but at least its an expected flow as opposed to an exceptional one
 
agreed
 
// login
// returns login details if success, null otherwise
// throws exception if all hell breaks loose
 
10:02 PM
oh god, I'm installing node.js
 
so I can build YUI
 
@drch that was my aim
A first chance exception of type 'System.Reflection.TargetInvocationException' looks like default(T) doesn't work - next option
reference type might work
 
hmm default(T) can throw?
 
I think the wiki is getting views that aren't from this chat room
 
10:04 PM
was there an inner exception? thats kinda weird.
 
It got 20 views today and it has been unpinned for a while now
 
@TravisJ it ranks in google i searched earlier
 
@TravisJ maybe the new C# developer room stole it
 
c# dev? hm, I don't think they did tho
 
New C# developer room?
 
10:06 PM
grrr keep getting System.Reflection.TargetInvocationException
 
youre doing tcs.SetResult(null); and its throwing?
 
I will paste in pastebin
 
3
A: Why is TargetInvocationException treated as uncaught by the IDE?

Jon SkeetEDIT: I've just tried this myself, and it looks like reflection is treated slightly differently. You might want to think of a reflection call as starting a new level of "handled" as far as the debugger is concerned: nothing is catching that exception before it gets translated and rethrown as a Ta...

skeeted
 
you can attach a debugger to a windows phone right?
 
yes I am at the moment
I had to enable the justmycode stuff already
 
10:10 PM
er hang on
 
yes i know i just saw it
 
what happened to your http status check
 
apologies no sleep for 2 days and I dont drink coffee, pure will power
 
np np
 
I am going to get sooo hammered tomorrow, there is a bottle of whiskey I have been saving
@drch works really wel
*well
 
10:13 PM
good job team
 
thanks again, and thanks to everyone else for their help with this mini code review
 
scotch or irish?
 
scotch
phew another problem solved, made me put this on as feelin' happy youtube.com/watch?v=R20f-TPKjzc
 
or this
fun fact i used to work with the singer
in his company-wide intro email, his boss dug up this video and attached it
 
it is a happy song, was he irritatingly happy all the time like escaped a Disney film?
How dd you embed the video btw>
 
10:21 PM
just paste the link in its own message
and no he was a totally normal guy
they got $5k and a free trip to LA to do this kids show so they did it
 
why not
 

C# Developers

Programs must be written for people to read, and only incident...
@RoelvanUden
> Programs must be written for people to read, and only incidentally for machines to execute
9 hours ago, by drch
maybe its a bizarro c#
9 hours ago, by drch
like their kendall is super friendly and helpful
 
@drch was dat?
 
i dunno just some c# room shotgunninja linked earlier today
 
There are often multiple Android ones too
 
10:29 PM
That's only because the Android room
 
if you go into the wrong one do you say "This is not the droid im looking for" ?
 
The Android room only lets certain people talk. You have to approve people to talk.
 
JS is in gallery too. But the bot approves people by default.
 
oh wow
thats kinda lame
 
JS is in gallery mode?
 
10:33 PM
i guess the idea is that it allows you to ban people
 
They don't want to have to allow everyone who wants to talk, but they want to be able to ban people.
 
shit son
somebody copy their bot
 
Okay.
I tried.
Nobody would host it.
 
make one that runs w/ phantomjs
or some other headless browser
 
I host my own damn bot.
 
10:34 PM
"host" is a weird term for a browser instance
 
My parents don't let me use the damn computer.
 
get a job and buy your own you slacker
 
Not with damn child labour laws, son.
 
mow some lawns
 
THERE IS NO BLOODY GRASS IN BLOODY TEXAS
 
10:35 PM
how old are you?
 
Is it illegal for a child to work, or to employ a child? I suspect the latter. Solution: Self-employment
 
I've tried.
 
isnt the age like 15?
 
A bit difficult, without access to a computer.
@drch You may start working limited hours at age 14.
 
@CCInc What are you using to chat?
 
10:37 PM
i was working in construction at 14
 
I have access for exactly 1.5 hours, not a second more.
@drch That'd be lovely, if I were 14.
 
how old are you @CCInc ?
 
Old enough to use chat; not old enough to work.
 
old enough to legally work a limited number of hours?
 
find some droids
 
10:38 PM
theres no way youre under 14
 
@drch Oh? Is that so?
 
He was 13 last I checked.
 
wow im impressed if thats true
 
you have to be 14 to work legally in most states
 
Kendoll is correct, last I checked.
 
10:40 PM
wow year 2000
 
why does shit always have to get so complicated =/
 
WOW
IM TALKING TO SOMEONE BORN IN THIS MILLENIUM
 
ask your parents if they think bill gates only got 1.5 hours on the comp per day
 
I shall ask, momentarily.
 
10:44 PM
tell them you are networking with industry professionals
 
They'll prolly pull some shit like "HES AN ADULT WHO WORKS ON HIS OWN AND HAS NO PARENTS"
"Did Bill Gates only get an hour a day?"
"Well, maybe he followed the rules, and earned more time"
 
He grew up during the era where computer use was actually time-monitored.
> When he was in the eighth grade, the Mothers Club at the school used proceeds from Lakeside School's rummage sale to buy a Teletype Model 33 ASR terminal and a block of computer time on a General Electric (GE) computer for the school's students.
 
Exactly. He can't seem to get over the fact that times change.
hu-hu-hu
 
> Gates wrote the school's computer program to schedule students in classes. He modified the code so that he was placed in classes with mostly female students.
 
oh yeah ok dont bring that up
or your parents are going to start to charge you money for booking the computer time
 
10:47 PM
Oh, great.
I want to kill myself
 
WELL FOLLOW THE RULES AND EARN MORE TIME YOUNG MAN
its almost summer. youll be fine
show them what youre building
 
11:04 PM
language timmothy
 
Is Johan here?
 
"I've turned to less nice ways of expessing myself and my work" - throwing poo at them
 
lol
@LewsTherin He left ~30 mins ago
 
HACK THE PLANET
 
11:06 PM
Core style
 
@CCInc Dang, thanks.
 
man i was a little skript kiddie at that age
 
lol
 
ran this program that scanned ips for this certain exploit
i ran it with one ip to check my own box
what i didnt realize was that was the STARTING ip
and i accidentally left it running for like 2 days
 
lulz
 
11:08 PM
my dad is sitting at his computer and his printer fires up
"I detected a port scan from this ip. Now its my turn. Merry christmas"
 
You detected a port scan?
@drch You probably want to answer this: stackoverflow.com/questions/16847091/…
 
no it was some fuckin haxor who detected a port scan from my box and then scanned me back and found a shared printer
bricks were shat
 
I'm confused... the haxor detected a port scan.. were you or someone else scanning the ports at the time?
 
i ran this util ran a scan looking for boxes that were vulnerable. i ran it on my own ip, but the util started at that one and then just incremented the ip by one and scanned the next, and so on
 
Brainstorm: When I run from debug, everything's fine. When I build the project and install the application, I get a crash at startup. Any ideas?
 
11:16 PM
@drch Alright
 
Oh, and it only happens for one of three hardware profiles targeted.
 
btw that knockout, the mapping plugin just wraps a simple js object with the observable stuff
you still have to applybindings
 
@Billdr No exceptions?
@drch You should answer the question
 
There's an exception. It produces a stack trace I don't fully understand.
...and if I "continue" through the exception, everything works as expected.
 
what type of application
 
11:18 PM
www.billdlabs.com
It's a desktop bitcoin ticker. The problem appears when the user has a logitech g19 keyboard.
Which I bought today, to test this out.... I can watch fucking movies on the display. Crazy.
 
How did you find that out?
Random...
 
The G19, G510, and G15 are keyboards I target because they have little displays on them.
It lets people see the price while, say, playing full screen vidya games.
 
Ok.. but why'd hardware cause your software to crash?
 
I'm pushing data to it. The notion is I'm pushing data to it incorrectly.
Also, it doesn't crash. Just starts with an exception that looks like it's crashing.
 
Oh yeah..
 
11:22 PM
HOWEVER, it doesn't happen when I'm in debug mode.
 
Not sure why Release'd fuck it up
And is Debug/Release the same build?
 
bildr: does it have anything to do with you calling g.Dispose() before setting the rendering hint?
 
!
Thank you drch
 
Welcome
:P
 
Thanks for being a ninjaduck, Lews :p
Okay drch, that didn't fix it.
 
11:27 PM
is it throwing on that line?
 
can't tell, it doesn't say in the stack trace and the debug build doesn't produce an error.
 
it said set_TextRenderingHint in the blog comment
 
yea
I can confirm that.
The stack trace is accurate.
The line is: g.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAliasGridFit;
 
@Billdr I need help
I have some bitcoins I need to turn into cash
 
Agreed. I am not a psycologist.
How many bitcoin?
 
11:32 PM
.76
~usd 90
 
I can give you $90 paypal for it.
Actually, I'll give you $100 for it since I have an idea of what it's worth atm.
$97 and change.
 
Which is exactly what it's worth :P
Okay, btc 0.74518289
 
$95.60
 
Sounds good.
Thanks
now just to make a paypal account
 
Where can I learn about this bitcoins?
 
11:38 PM
hmm... who feels like a SQL question?
@LewsTherin mt gox I think?"
 
Mt gox? Wtf
Found the site
Thanks
 
@Billdr How does this work?
 
Paypal?
 
Yes, how do we do this
 
@Pheonixblade9: ill go with 'maybe'
i like sql questions like 'how do i do an inner join'
 
11:40 PM
well, I don't remember what hoops they make you jump through to get an account there these days.
 
not 'why doesnt this 300 line TSQL sproc ...'
 
Do you have a wells fargo account? I can do a p2p transfer through them.
 
Got the paypal account, what next?
 
give me the email address you used for paypal.
 
got it?
 
11:43 PM
Yep. You should see a payment shortly. When you're happy, send the btc to 1LFrYmwmB7Re3nbVKyya6M8woRWGpUByXS
Did you mine all of that yourself?
 
Yup
 
Nice!
 
used to be worth alot less back in the day :)
 
I think you gambled nearly that much on my blackjack site :p
 
lol :D
 
11:46 PM
Erm, you happy yet? :p
 
Nope.
 
;oops
 
Hmm. That should be there.
 
11:47 PM
0
Q: When using multiple WHEN MATCHED statements, do they all execute, or does only one get executed?

Pheonixblade9I was unable to find a definitive answer to this question, and I don't have access to my workstation to test it. If I have multiple WHEN MATCHED statements in a MERGE statement, do they all execute if they're true? My example: DECLARE @X bit = NULL; WHEN MATCHED AND A = 1 @X = 0; WHEN MAT...

 
Heck, it's amber
 
@AmberRoxanna This isn't facebook you know
 
Just getting rid of the rendering hint solves the problem, apparently. I wish I knew what that command did. Stupid graphics.
 
stopped programming a while back, just got in to it again. how've you been @CCInc ?
 
@Billdr GDI has always been a bit flaky
 
11:49 PM
@AmberRoxanna Okay. Bad. You?
JAB has missed you.
 
@CCInc just a ton of math lately. yeah, what's JAB been up to ?
 
@Billdr heh, heh, my error
 
@CCInc Shouldn't it be 0001?
 
Appearantly, I have to confirm my email or some stupid thing like that
 
@Pheonixblade9
> The MERGE statement can have at most two WHEN MATCHED clauses. If two clauses are specified, then the first clause must be accompanied by an AND <search_condition> clause. For any given row, the second WHEN MATCHED clause is only applied if the first is not.
 
11:51 PM
@CCInc Yar
@drch word.
 
@drch sauce?
 
tfm
 
Should I pay a .0005 bitcoin network processing fee?
hmmmmmmmm
 
@CCInc yea
Take it out of what I paid.
$%@@!%$@#
The error still appears.
 
11:56 PM
@Billdr try g.TextRenderingHint = g.TextRenderingHint
if you still get an exception, its due to the state of the graphics objecct
if you dont, its due to the specific value you are assigning
 
5a86be3a309486f0867c9180a95791b3ccb43d6e8c84000aed0a7d779939ece9
 
or just create the actual bitmap in paint, build it as an embedded resource, and write it directly to the lcd ;)
 
@CCInc Are you not connected to the network? I'm not seeing it.
ah, there it is.
@drch I'm going to reevaluate what I'm doing there in a moment.
 

« first day (957 days earlier)      last day (4005 days later) »