« first day (2726 days earlier)      last day (2448 days later) » 

00:28
Actually, I think I might have phrased my question wrongly because that doesn't give me the correct output. Let us say I had a List<A> val and val had 2 items and class A had two properties. val.add(new A(1, 3)), val.add(new A(2, 4). Now when I say I want to find the average for each property, what I mean is this; average of property 1 is (1 + 2) / 2 and average of property 2 is (3 + 4) / 2.
var avgOfProperty1 = val.Average(a => a.Property1);
var avgOfProperty2 = val.Average(a => a.Property2);
also: val is a silly name for a list
dont worry it's just an example.
 
3 hours later…
03:23
Ya, that way gives the correct output but is there another way to do that? what if I have like 10 properties?
mr5
mr5
03:42
Is it possible for ConcurrentDictionary to become not thread safe?
mr5
mr5
03:59
why is it that ConcurrentDictionary[key] or ConcurrentDictionary.TryGetValue throws a KeyNotFoundException when the key is not yet there? I am expecting it just to return a null value?
I mean, what's the point of throwing instead of returning an invalid value?
null is a valid value
mr5
mr5
fair point. I'm still curious what's their motive for throwing instead of returning a null value
Because how would you tell the difference between a user inserted null and lack of a key?
Other languages return null because they don't allow null in the first palce
mr5
mr5
04:59
But I am somehow accustomed that whenever a method is prefixed with Try*, it internally handles the exception it could possibly throw, well but that's just be me. It is still confusing
 
1 hour later…
06:25
ohayou
@RenderSection("Scripts", false)
what does fale does
it does
i think it indicates that the section is not required
06:42
but it will still render the content right?
ohayou snepaii. how are you doing?
@Breathing i think it will
07:26
I'm good. Had a long weekend. Such bliss. Much gaming.
which game?
How do you manage between studying and gaming?
I got addicted to "Legend Of Heroes - Trails In The Sky". I just completed the first game. It was wonderful and amazing and sad and great and I cried. Then it ended on a cliffhanger. I must play the second game more...
woh, nice rating
and the answer to my second question?
good morning
I don't study, I have a full time job. I work 40 hours, take care of my dog, but don't have a girl friend or kids. Therefore, I have plenty of time in the evenings and weekends.
Is that what you wanted to know @Breathing?
mr5
mr5
07:42
@RoelvanUden how old are you?
@mr5 I'm 29.
mr5
mr5
@RoelvanUden whoa. no plan to have a gf yet?
he has a boyfriend. me.
now back off @mr5
i have started with neir: automata, but it is hard to play it on a keyboard.
my controller broke down :(.
07:48
@Proxy The game's boring AF. It's the ultimate quicktime game
mr5
mr5
ughh
@mr5 But seriously, if I don't encounter a suitable lady, then it's not going to happen. And I haven't yet, and it doesn't appear to be happening any time soon. That said, I have friends, family, and an adorable dog. Plus, I can do whatever I want, whenever I want, and essentially turn my home into one big man-cave. Being alone has its perks, too.
@HéctorÁlvarez OH NO YOU DIDNT
Nier Automata is a masterpiece. What quicktime events?!
@HéctorÁlvarez so far i like it, it is just that is seems to be built with a controller in mind
There aren't any quicktime events ffs.
How to play Nier Automata:
1. Duct tape R1 for infinite automatic gunshots.
2. Get close and personal, spam your sword attacks.
3. About to get hit... Did you see that ghostly quicktime event? Yeah, just press R2 at the right moment. Boom, instant dodge. Whatever attack.
07:50
@Proxy Oh yes, get a new controller bud. It really adds value.
@HéctorÁlvarez I think you should've played on a higher difficulty.
I literally beat the tutorial by spamming R2 to dodge, because it doesn't have any cooldown or drawbacks at all.
Did you beat the game? As in, full completion (no spoilers because of proxy)
@RoelvanUden I played on max difficulty. I still preferred beating Dark souls 1 on a level 1 character.
No, I got bored of it very quickly.
I reached this tutorial (Was it even a tutorial? Nobody said anything about controls or what to do anyway) boss that was 2 slicing machines and though "This was one weird arcade game".
If you want a good RPG game with action and actual punishment for your mistakes, play Dark Souls.
That explains it. Also, on any real difficulty, you can't lock-on.
You won't always have your trusty sword.
Bullet hell becomes more and more prominent as you progress.
Every enemy can one-shot you on max difficulty.
There is a gap between dodges that doesn't make you invulnerable.
As you progress, enemies become progressively stronger, more dangerous, and your weaknesses become more prominent. You'll need to customize your chips to even survive. You'll truly need to master the sword, dodges, and learn to recognize all the enemies patterns.
Dark Souls is okay. Not too difficult either. Well, III isn't. I honestly loved Dark Souls, but nothing, and I repeat, NOTHING, comes even close to Nier: Automata.
You should do yourself a favor and pick it up again, and actually get past the tutorial.
You basically did a "Well I beat Iudex Gundyr, that was so easy, Dark Souls III sucks."
mr5
mr5
@RoelvanUden but, are you picky? do you judge on looks? personality?
08:02
@mr5 I don't care too much about looks. Personality is where it's at.
mr5
mr5
you will have a hard time finding that one.
@RoelvanUden Well, unlike Gundyr, it was about 1hour walk to the boss, mindlessly killing crap monsters all over the place who were exactly like the one before, but with a different bonus.
@mr5 Yeah, let me be crystal clear in this regard. I don't want to be with anyone just to be with someone. I'm perfectly alright on my own. I don't need someone just to be 'not alone', or you know the typical masculine thought-line: for sex. The lady in my life would have to add something worthwhile to my life, and I to hers. If that situation is not to be, I'll stay alone for the remainder of my life, thank you very much.
I could give it another shot at some point...
Nier: Automata is very much worth it. It's an amazing game, with an amazing story, memorable bosses, a great setting, a musical score unlike any other, and something to make you question everything. If it's too easy, just bump up the difficulty. One-shot by anything is bound to make it hard enough for your taste (Disclaimer: I can do Hard, but not Very Hard on Nier.. I'm not good enough for that).
08:11
Oh by the way, I heard there are no save spots, is that true?
I like it where there are very few, not 3 in a 10 meter gap like DS3, just few like DS1, one per big city hub.
And I don't remember finding a savespot anywhere in the 1-2 hours I spent playing the game.
There are save spots, but it's a bit more nuanced than that. There are terminals where you can store your memories. So if you die, your Android's memories are loaded up into a new body and off you go... that means your old body is still somewhere in the world, with all your customization components in it... it's paramount you'll get those back.
Well, you didn't quite clear the tutorial yet.. 9S explains how saving works, and how he saved your memories at the end of the tutorial.
that is why i lost my healing herbs :D.
somehow i missed that my body was destroyed in the tutorial.
That one was obliterated. Like, that was the whole point :-D
yeah :).
I think what really drove me away from the game was the ammo-free gun spam.
08:26
Basic gunfire is all but useless in most situations. Your pod programs are useful though, when you get them.
It's just something to do while you charge in imo :P
I would be happier if there was an overheat feature, it reminds me of FF8's Squall gunblades. You had to press R1 every time he attacked in order to inflict a critical hit, and that one among other reasons is what made me quit FF8.
Do you guys play Bloodborne, by the way?
no ps4, so no.
It would have been such a nice PC game. I hope the next one comes out on PC too.
Bloodborne is close to Dark Souls, but it's even more punishing.
I've started on Bloodborne, but then some other games got priority.
i plan to pick up dark souls now when it comes out on the switch
08:41
Guten Morgen Everyone
Goood morning squirrels and other gamers!
Did anyone do anything even remotely interesting for Easter
Yes, of course! Games!
remotely interesting
I followed Estelle's and Joshua's epic adventure across the plains of Liberl
!!
08:46
@RoelvanUden That didn't make much sense. Maybe you meant: 3, u, d, y, !, ^, π, ?, א
Not to be underestimated
@Butler1233 Concert (good one), Movie (Ready player one), hung out with friends I hadn't seen in months, and hooked up. Oh and I earned a strip of fat around my waist. God dammit.
It was going so well
@Butler1233 hid the easter chocolate eggs for kids. Than they break havoc in the garden, which is common with other neighbors.
I pulled all my hair out, because we cannot go out to the garden for 1 hour. 3 year old kid just kicked a vase "for fun"
Breaking stuff is more fun than finding crudely hidden eggs
08:51
oh. By the way we watched "Adam's apple" in theater
incident happened after finding the eggs.
Hey guys
interesting question
how can I check internet communication between client and server?
I meant communication speed
how is that an interesting question?
That is the most dull question.
ping every time?
at least it is interesting for me))
Latency != speed.
08:56
"internet communication"

Send a request and see if you get a response ever
Be more specific
If you're testing on a lan, I like to use LanSpeedTest. Super simple and does exactly what it says on the tin
server can be setup in localhost or in the cloud
Do you have remote desktop to the server, because if so I guess it could still work. Chances are the location with the clients' internet access will be a bottleneck though you you could just use speedtest
latency test: just ping it
speed(/available bandwidth) test: upload/download some 5MB file and do maths
🔥
09:00
<o>
@HéctorÁlvarez Please go and play in the Sandbox
basically the client should know if some operation is taking long on the server or communication is slow
09:02
based on the message the client should do some action, if internet problem he should not call to customer support
it is his own problem
How would you know it's his problem?
Really? I'd say its your problem regardless.
You could ping 8.8.8.8 and see if it comes back, then you know if the clients internet is ok
Or 1.1.1.1 to be modern and stuff
mr5
mr5
Is the item really garbage collected at this point and become null?
the goal is to make like diagnostic tool, it will be in client app, if I run some command, like procces the invoices, client should be able to see how long BL code is taking, how long SQL actions are taking, how long for network spent
09:11
but i want to call you and complain it does not work
like a testers?))
@Jamaxack Do they care?
i meant only testers will call you and will say it doesnt work
You can give your boss my contact info ; ) problem solved.
Shouldn't you focus on making it work then? Blaming your testers PC is a no-go, IMO.
Also, testers/customers don't care how long your SQL takes, your BL takes, etc.
09:16
yes, but when you show clearly where the problem is it will help a lot to customer support to identify the problem
Careful what you ask for.
isn't it?
Okay bruh.
Can anyone tell me where to start with learning what server and repository classes mean, what they are, when should I use them & why? I can't find any decent resources on the net.
09:21
what I think is:
SQL action time = SQL action time
BL time = BL time - SQL action time
Network time = All time -(BL time + SQL action time)
is it correct way of thinking?
I wouldn't trust that
trust for what?
09:39
@RoelvanUden !!quickmaths
!!quickmaths
@HéctorÁlvarez Boom! 2+2=4-1=3 Quick maths!
Is ViewBag.isShowXml a thing?
Viewbag.WhateverTheHellYouWant is a thing.
It definitely is if you use dynamic
2
09:43
gotchA
And given that most people can't tell the difference between than and then, I would assume that lackluster grammar also exists.
@Butler1233 Oh my god, you sneaky bastard changed your name!
Or were you tainted by the dark side, like all those squirrels.
I think dynamic types are the best thing since sliced Squirrels
I kinda liked the Xbox 360 connection test, showing at which stage it failed. Maybe you can build it similarly.
That always took so unnecessarily long to run though
That built trust, as it's doing a REAL test
10:02
Hello, everyone. Is there any way I can edit .cs files while running a .net core application in visual studio? If i'm running with debugging I cannot change anything, however if I set a break point and execute the app to reach that break point visual studio allows me to edit, which doesn't make that much sense. Why will it only allow me to edit if I reach a break point?
Because the execution stops when it hits the break point. You cant edit a running application.
Can't I manually stop it? Like click a button that stops then edit and afterwards resume?
Well...I can imagine opening the .cs file in notepad++ and editing it. Just wouldn't make any sense to do so.
VS has a pause button
Yes, you can press the pause button. It'll probably stop in some native code though
thanks, that worked
10:36
My pickle Rick plush just arrived.
Definitely better than the rubber duck.
Pics or it didn't happen. It's really hard to top a rubber duck. Ask the starboard.
I made so many jokes about it, going through our code I actually honestly just thought "hey this might be easier just casting it to dynamic"
It's pickle Riiiick yeaaaaah wabba lubba dub dub
mr5
mr5
10:57
why it is still not collapsing?
2 hours ago, by mr5
user image
Is the item really garbage collected at this point and become null?
If it was garbage-collected, it doesn't exist in memory.
Not even the reference.
!!doge garbage,collected
        wow
                             very garbage
such collected
mr5
mr5
The debugger tells me it was garbage collected but I am clueless as what might be the cause
my eyes hurt
Well, you either manually called the GC to collect your stuff/dump whatever generation you wanted, or you set the variable to null and something back there thought that null was no longer needed.
@mr5 what's the name of this meme btw
11:03
Looks a lot like hypno frog
mr5
mr5
@HéctorÁlvarez search for party frog
gtg
fuck dis ObservableCollection in d ass
I've seen it a lot in Dota WTF
But never knew the actual name of the meme.
Cheers!
Nice, we wrote enough that the damn frog is out of my screen
Not for me
11:24
Vertical screen?
11:39
Dynamic screen would have hidden the toad already, and go back to vertical later on.
12:18
Guys Zirak would like more input on Caps invocation pattern: https://github.com/Zirak/SO-ChatBot/issues/293
Not sure through which channel though.
closed issue
That's why I'm not sure on which channel he expects those opinions
>If the c# room widely uses the bot, it'll be great to hear more on what they think can be improved. I've only heard them by proxy from @kendfrey.
12:36
MORE MEMES FEWER SPAM
12:48
*less
oh sorry
LESS MEMES FEWER SPAM
is anyone experienced in BXF format?
never heard of it.
@Squiggle 10/10
@Zirak do you want Cap to do more things? Give us a chatroom adventure game mode.
@Zirak Or whatever game type, something short and nerdy will do. Something like !!game russian-roulette, and people can type !!shot to toss dice, and play against each other to cyberdeath.
A !!game gametype [inviteId[, inviteId2[...]]] command would be awesome
13:07
i have a question... again.
but it is mostly web related.
@Proxy I have a pen
uuuuh... question pen.
css js pen
anyhow, it is about js and css, to be precise which is the better way to position elements and do transformation(as in "faster" if i can say so)?
!!afk lunch
some guys were arguing here on work so i wonder
!!> Math.floor(Math.random() * 20) + 1
13:10
@MikeTheLiar "TypeError: Math.mandom is not a function"
mandom
@MikeTheLiar 16
@Proxy CSS, always, but how the CSS instructions are added.. via JS or actual CSS.. doesn't matter.
Not quite a critical hit but it'll do
@RoelvanUden that is always the "faster" way? I just started googling a bit and it seems that js seems to preform faster?
13:13
@MikeTheLiar The kingdom of man. The mandom. The couch with beer. Penisville.
@Proxy Well, doing animations with JS is pretty limited in terms of speed/performance. Changing the position/transformation of a DOM element causes a complete layout and repaint flow, and doing that n times/second is going to have a massive impact. In contrast, a CSS instruction can be precomputed and be accelerated by the hardware capabilities (e.g. GPU instructions). Thus, CSS is far, far, far faster. With all that said, doing a JS canvas requestAnimationFrame()
loop does allow you to paint something at roughly 60FPS, so if you don't involve the DOM, that way a JS thing can come pretty close or even outperform a CSS transformation. But that's not how most people do things
aha i get that but i see there are some ways to use the gpu with js as well(also im just cp what i have read).
by that, when using something like react, since everything is in the "virtual" dom i guess all the transformation should be done in react components?
@HéctorÁlvarez Why choose Penisville when you could use Penistone
@HéctorÁlvarez beer and endless penis? Where do I sign up?
@Proxy Nah, each frame change of the animation will still HAVE to cause an DOM mutation and that reflows/repaints the entire DOM... and that is terrible for performance. CSS is far better than a React-way.
13:20
I couldn't fathom the existence of such a... uh... glorious place.
Canvas/WebGL are the only exceptions to the rule that CSS is far faster for animations
@HéctorÁlvarez I mean, I've got a fridge in my basement so...what're you doing later?
@RoelvanUden so even in react components, using css to do transformations is the desired way?
@MikeTheLiar Oh Mike, you know how to talk to people, don't you?
@Proxy Yes, absolutely. But like I said, setting a CSS property from JS is absolutely fine. Just don't go around animating something yourself (e.g. setInterval and update x/y pos to move something).
13:22
will it not repaint the entire page anyway, regardless of the way the component has beed animated?
Not necessarily no, but leave it up to the browser to optimize. It's far better and more capable than anything we can do from JS.
oh i see. Now i have limited css experience, but lot of animations i saw are purely done with js(well more complex ones)
js has more flexibility? or is there another reason behind that?
@Butler1233 This statement is now endorsed
Becuase eveyone gets a boner over jquery animation
@Proxy People are stupid
13:25
@Proxy Yeah, JS has more flexibility. You can basically do anything, whereas CSS transformations are basic operations that are well-thought out, but somewhat limited. If you need a complex animation, like a slide followed by a circle and then expanding, you should probaby use a mix of JS/CSS to accomplish it. Still, animating with just JS is a bad idea.
It's old practice that predates CSS3. Basically: dinosaurs.
Uh, excuse me
Can you filthy plebs take this talk of JS and CSS elsewhere? This is polite company.
5
We have a reputation to protect you know.
we let squirrels invade us. we have no reputation.
Get fucked @MikeTheLiar
2
In a good and pleasant way.
13:27
@RoelvanUden oh thanks, i never thought much about that until now.
Meh, I've got five minutes.
Five minutes is plenty!
Come over here...
@Proxy No probs!
jumps on roels lap
jumps off
moves body pillow
jumps back on
13:29
o_O
Please go back in to hibernation
Don't just touch my waifu without permission!
weird public roleplay intensifies
Can the rest of you clear out for a minute, Roel and I are gonna need this chatroom to ourselves for a bit
B..b..baka
:3
no no we're fine here please continue
13:32
beckons squiggle
I..I don't mind if you j-join in you know! Hmph, but it's not like I really want you to!
activates jukebox, saunters
guys , i have question related to OIDC-client
is this the right place :D
Please, for the love of K&R, just ask your question
3
iat is not from the future
any idea ?
13:44
@Bassem ...why should iat be from the future? O_o
when client adjust their clock , it works
You're doing time wrong
UTC all the things
i am speaking about OIDC-Client
Don't use the client time for anything other than display
DATETIMEOFFSET
13:47
The client time is irrelevant to everything except emitting photons that are then received by the user's ocular orifices
there is a time autogenerated by JWT
it get client time
Then that's a stupid JWT generator
And you should stop using it
Mike , do you know OIDC-Client
it doesn't sound like a problem with the client
I've worked with it before
Although IIRC we used MembershipReboot
13:51
there is something called iat
But this is a much more fundamental problem than which library you're using
iat = Issued At Time. The time at which the token was issued.
Tokens are issued by the server
This should a timestamp in the past. It will be UTC. You need to treat it as UTC throughout.
problem solved, right?
yes @squiggle but if a client has wrong time , this iat changed
13:53
no
the iat is issued by the server. The client doesn't change it.
the client has the wrong time
6 mins ago, by MikeTheLiar
The client time is irrelevant to everything except emitting photons that are then received by the user's ocular orifices
13:53
@MikeTheLiar we got bitten by 1. in that list last week.
I had a weird problem where when I shutdown a VM in virtual box, the clock paused and didn't update when I brought it back up
"We need to reuse the previous day's schedule"
...OK, copy schedule from yesterday to today.
Problem: Today only has 23 hours in it.
@Squiggle I get bit by 24 constantly
DST amirite
100%
It's funny how things like log can occur twice at the same time.
13:56
I got bit badly by DST a few years ago. Working in a nightclub that closed at 2am.
1:58... 1:59... 1:00... ffs. Gotta work an extra hour.
Yeah, I worked overnights for a spell in my pre-programming days
Shit sucked
So in conclusion, @Bassem - fix yo' understanding of time ;)
hello folks, I need a sanity check - I'm getting an IndexOutOfRangeException on a simple if (bool) statement, where do I even begin debugging this? I'm just utterly confused

« first day (2726 days earlier)      last day (2448 days later) »