« first day (3447 days earlier)      last day (1518 days later) » 
00:00 - 14:0014:00 - 21:00

12:47 AM
posted on March 24, 2020 by Scott Hanselman

Well that sucks. That's my podcast website with an F rating from SecurityHeaders.com. What's the deal? I took care of this months ago! Turns out, recently I moved from Windows to Linux on Azure. If I am using IIS on Windows, I can (and did) make a section in my web.config that looks something like this. Do note that I've added a few custom things and you'll want to make sure you DON'T j

 
mr5
1:36 AM
Why is this VS in Windows is very untruthful to me
 
 
2 hours later…
3:56 AM
yo yo yo
 
4:48 AM
Ben Popper on March 24, 2020
This week, we discussed how our dedicated community saved Stack Overflow from a serious certificate bug.
 
 
1 hour later…
6:10 AM
GoOoOoOoOoOoOoOoOoOoOoOd Mornin' neglecterinos!
 
6:28 AM
Killerino, I saw you glide in.
You're late.
Did misses Killerino keep you up again forcing you to do your chores?
 
7:12 AM
morning! :)
hehe
 
7:37 AM
Buenos dias
I kept me up again getting my automatic deploy from gitlab to azure storage running :D
So now, whenever I merge something into the teambuilder master, it gets built and deployed to azure.
 
hello
is it possible to create nodes within firebase database from c#?
 
And now I'm here for over an hour trying to do our monthly update, but one of four servers doesnt want to update. Thankfully it's only a secondary server.
@techno The only thing I understood about this sentence is you want to make something from within c#.
 
google firebase?
do you have experience in it?
@Squirrelkiller
 
Absolutely not
I looked at it once, because I wanted to build an android app with notifications
I didn't get very far. Trying to understand all that stuff overloaded me and I went to play video games instead.
And then i built the app without notifications
 
:)
 
8:44 AM
o/
 
Earth.Deploy(new Virus(VirusType.Corona, Bug.Ace2)).Start(DeployingMethod.Automatically)
 
mr5
9:01 AM
@nyconing how is it going there nyc?
Hector is from Spain isn't he @Squirrelkiller ?
 
good morning
 
Hi folks, I have a class Class with 2 properties Value and Frequency. If List<Class> data is populated and I want to select a single Class in data with the highest Frequency, what is the LINQ expression to do so?
 
@mr5 he is yes
 
...I have a deja vu
21 hours ago, by Wietlol
IEnumerable<T>.Sum() -> T
IEnumerable<T>.Select<R>().Sum() -> R
IEnumerable<T>.SumBy(it => it.R) -> R

IEnumerable<T>.Max() -> T
IEnumerable<T>.Select<R>().Max() -> R
IEnumerable<T>.MaxBy<R>(it => it.R) -> T
You want the last one
 
@Squirrelkiller: OK. I am trying ... Thank you for helping. :-)
@Squirrelkiller: Who created the MaxBy?
I did not find it.
 
mr5
9:14 AM
My fellow ASEAN is into Thanos
 
I eat pagpag.
 
mr5
you do?
 
Yes. Pag pag is cheap and healthy. :-)
 
mr5
ok
I fully support you
 
@MoneyOrientedProgrammer Oh shit you're right, he just wrote that but it diesn't acutally exist
 
9:21 AM
@Squirrelkiller :-)
 
!~wiki pagpag
Pagpag: Siyam na Buhay (referred to as Pagpag) is a 2013 Filipino supernatural horror film directed by Frasco S. Mortiz. The film was released on December 25, 2013 at the Metro Manila Film Festival and stars Kathryn Bernardo and Daniel Padilla with Paulo Avelino and Shaina Magdayao. The movie follows a group of teenagers that are terrorized by an evil spirit.The film revolves around the traditional Filipino belief that one should never go home directly after visiting a wake since it risks bringing evil spirits or the deceased to one's home. The movie grossed P23.7M on its first day of showing....
supernatural horror film, sounds lame
 
Guess you'll have to go
var maxFrequency = classes.Max(c => c.Frequency);
var highestFrequencyClass = classes.First(c => c.Frequency == maxFrequency);
for now.
 
linq puzzle? let me in
what was the question?
 
Make a MaxBy
 
Pagpag is not a movie, but a healthy food. Ok, back to the question. I have a class Class with 2 properties Value and Frequency. If List<Class> data is populated and I want to select a single Class in data with the highest Frequency, what is the LINQ expression to do so?
 
9:26 AM
The problem is, LINQ doesn't have MaxBy
 
.Max(x=>x.Frequency) ?
 
@nyconing But I want the Class with the max Frequency, not just the Frequency.
 
@nyconing This returns the maximum freuqency
 
is this still going?
 
public class Class : IComparable<Class> {
    public string Name;
    public int Frequency;
    public int CompareTo(Class other) {
        if (ReferenceEquals(this, other)) return 0;
        if (ReferenceEquals(null, other)) return 1;
        return Frequency.CompareTo(other.Frequency);
    }
}
listOfClass.Max()
 
9:35 AM
ye, that has a strong dependency on the class' behavior of doing stuff
now, if Max() would accept a comparator, then it would be absolutely fine
but it doesnt
 
Morning all just got a new personal best
4 people stopping me before even reaching my desk with quesitons and problems etc lol
 
@DAustin I hope you told every one of them "Excuse me 1,5m space please"
 
it did, and perfectly
var l = new List<Class>{
    new Class{Name="B",Frequency=2},
    new Class{Name="A",Frequency=1},
    new Class{Name="C",Frequency=3},
    new Class{Name="D",Frequency=4},
};
l.Max().Name //D
l.Min().Name //A
 
Holy shit
Laptops are basically out of stock everywhere
 
in malaysia we cant buy electronics stuff anywhere because all the shops basically closed
 
9:42 AM
@nyconing: Awak tak pegi jalan-jalan cari angin?
 
IT is counted as essential
Except there's no stock of anything because everyone has just bought the required stuff to work from home
 
lagi nak jalanjalan nanti polis hantam kau
IT isnt included in essential here
 
BUt basically if it's technically possible for people to work from home, they must
Luckily(?) for me, it's not possible as I'm support for the warehouse so I have to be on site
 
yeah so IT should work at home
IT support for the essential warehouse, then that IT department now became essential
 
Ah thanks imgur
Welp
 
9:53 AM
where did the composite line go?
 
You can see it just slightly next to the services near the bottom
 
mr5
a wut
 
@Squirrelkiller balls i forgot about that
well im a dead man
 
Probably works better with the FT's usual light brown background
 
9:55 AM
hmm
@Squirrelkiller that was the entire point of the demonstration tho... if you missed that...
also...
@Wietbot evalnode Math.max()
 
@Wietlol -Infinity
 
mr5
10:16 AM
a lot of job offer during this pandemic huh
 
mr5
10:27 AM
how do you get the link for your skype account?
or what does its format looks like?
 
@Wietlol I didn't miss it, jsut forgot ;)
 
funny to mention, in my utility library, I also dont have a MaxBy
I went straight for MaxWith(comparator)
which can do exactly the same
 
11:15 AM
morn
from today on you can call in sick for 14 days in germany
you just have to CALL your doctor even if you only have minor symptoms
just letting you guys from germany now
 
11:30 AM
what
why
omfg 3millions
 
Here we can get a sick note automatically generated on the government website
(Sick notes are required for being off work more than 7 days)
 
spreading in germany is way too fast
it was more than out of control
 
We got a nation wide contact restriction now though
 
@nyconing what are you talking about ?
 
yes 27k so?
what are you talkign about 3 millions ?
 
30.150
bestätigt

453*
wieder gesund

130
Todesfälle
 
you said 3millions
explain yourself !
 
30.150 isnt was 3millions?
im confused
!~translate 3 millions
3 millions
·from English
 
its simple math
 
11:46 AM
I have no idea where you've got 3mil from
 
ah shit
 
30.150 != 3.000.000
 
my bad
 
-.-
 
30,150
 
11:47 AM
30.150 in EU notation = 30,150 or 30150
 
ok all good
;)
the rise has actually decreased a little bit
thanks to shutting down everything
 
Because the europs are wrong because they use . for the thousand seperator and , for the decimal
 
yeah i get the confusion
because of , and . seperator
I see
 
Yes that is why they shut everything, expecting the curve to be pushed down. Less people going out = less transmission
 
same here, closed all the thing, unless essential
all public place are prohibited after local 7pm
 
11:50 AM
everything is shut down except groccery,pharmacy and banks basically
more than 2 ppl are not allowed to go outside together except families
 
we reopen at 7am, and only one person per family allowed to go outside for re-stock foods and stuff
more than one person and not essential = penalty
 
its still feels surreal
i still catch myself from time to time thinking: this cant be real
 
I woke up this morning (or was sat in bed last night, can't remember) and thought this is so weird
 
It sure as hell is weird. We're one step away from total lockdown.
 
12:05 PM
It's fine, looks like tonight's presser will be announcing free money for self employeds
 
I heard trump gives 1k $ to everyone
americans love stuff like that
 
Well. Apparently HtptContext.Current.Applicatino isn't threadsafe
Arse.
 
mr5
ugh
first time interviewing in phone
I'm so nervous
 
good luck !
 
mr5
it's done already
Interviewer: "Why do you want to resign in May?"
Me: "I'm tired of writing boring apps"
 
12:19 PM
:o
 
interview?
as in... job interview?
 
mr5
I'm not sure how can I categorize that interview
they're looking for devs
I said they can call me
they're asking for source codes of app written by me in Xamarin
 
...one in your own time i do hope
 
mr5
yeah
My most recent project is in GitHub and public
so not a big deal actually
but I just realize my api key is also included there
and it's linked to a billable account
 
Good job.
 
12:25 PM
It's fine
 
mr5
ha
there's a regenerate key
 
@mr5 ofcourse no one ever extracted Wietbot's account password via one of the eval commands :D
 
The UK government posted a link to their devlopment team's current plans for the corona shit in one of their commit messages, which was a public google doc. Unfortunately it's not a public doc anymore, after me watching the doc for an hour or so they eventually made it private
 
mr5
@Wietlol did you store the password in window object?
 
12:28 PM
dang it, it is NOT written in JS
 
mr5
@Wietbot evaljs console.log(window.password)
 
it is an enterprise level project
 
mr5
eww
it's not working
 
it is
 
javax.script.ScriptException(ReferenceError: "console" is not defined in <eval> at line number 1)
 
12:29 PM
oh, I did not expect that one
 
mr5
eh, you manually type it
why it doesn't have console?
 
@mr5 no, considering the usage dropped, I disabled thundra warmup
 
oh our favorit bot is back
lol
 
so, it is slow when you havent spoken to it in 15 minutes
 
is he still going nuts
 
12:30 PM
but once it has started up...
 
javax.script.ScriptException(ReferenceError: "console" is not defined in <eval> at line number 1)
 
mr5
suppose you were the interviewer, what would you feel if the dev say this to you:
 
lol
 
mr5
12 mins ago, by mr5
Interviewer: "Why do you want to resign in May?"
Me: "I'm tired of writing boring apps"
@Wietbot eval while(1);
 
I don't know this command, did you mean any of the following? evalsql, evalnode, join, leave, evaljs
 
12:30 PM
@Wietbot evaljs System.out.println("")
 
javax.script.ScriptException(ReferenceError: "System" is not defined in <eval> at line number 1)
 
mr5
@Wietbot evaljs while(1);
 
ooh.
 
me.wietlol.aws.lambda.LambdaException(unknown: 2020-03-24T12:30:58.298Z 834176cd-ca6e-4f41-8349-88c0151142d4 Task timed out after 10.01 seconds[])
 
@Wietbot evaljs java.lang.System.out.println("test")
 
12:31 PM
null
 
mr5
a namespace name called "me" silly
 
obviously
i guess you should just use evalnode tho
@Wietbot evalnode while(true);
ok, that one takes a bit longer than acceptable...
did I bork it?
 
@Wietlol me.wietlol.aws.lambda.LambdaException(unknown: 2020-03-24T12:33:54.765Z 89e01c4c-0573-464a-b4b1-e80ee2fb57d5 Task timed out after 10.01 seconds[])
 
not sure, but I think that took more than 10.01 seconds
 
@mr5 "What should I write in my form at the label "timing of resignation""
 
mr5
12:41 PM
@ntohl do you think it would have a negative impact for me?
 
@mr5 umm. Negative impact on your previous job?
HR are trained to have umbrage on leaving employees
so don't overthink it
 
mr5
I think they are expecting it already since they put me in bond
 
what kind of bond?
 
mr5
and most of the time, employees in my current company leave as soon as they completed the bond
 
James Bond
 
mr5
12:44 PM
lol
 
2 month?
that's regular tho
 
mr5
3 year contract
 
what is the construct? 3 year contract, then non-open contract?
or you are leaving before the 3 year?
 
mr5
3 year bond and freedom
My 3rd year anniversary in the company would be in May
 
so they want to easily dump employees
 
mr5
12:47 PM
it's up to the employee. there are also a lot who stayed there for over a decade and two now
 
considering "what would happen if we don't have too much order later"
also they consider the power of lazyness searching for a new job
which worked on me atm :)
 
mr5
if you're poor like me, you wouldn't be lazy to find a new job
 
I should search for a new interview with an F# company here.
hmm. Bond is a bond. You might find a better paying job. So you should exploit the end of the bond. Also you are doing right to leave in good measures. That response is not provoking. And don't forget it's a HR personel you are talking with.
they don't understand loyalty to code base. They are considered with if you slacked of work, or want to work for the competition.
 
mr5
@ntohl I don't understand this last sentence.
can you rephrase?
 
1:09 PM
javax.script.ScriptException(ReferenceError: "alert" is not defined in <eval> at line number 1)
javax.script.ScriptException(ReferenceError: "alert" is not defined in <eval> at line number 1)
 
i should probably remove the evaljs command
 
@Wietbot evalnode prototype
 
@Squirrelkiller ReferenceError: prototype is not defined
 
Wait what's the name of the thingy that is basically method information in javascript?
Like myObject.prototype
 
prototype
 
1:17 PM
damn
 
@Wietbot evalnode Object.prototype
 
@Wietbot evalnode this
 
@Wietlol {}
me.wietlol.aws.lambda.LambdaException(TypeError: Converting circular structure to JSON
--> starting at object with constructor 'global'
--- property 'global' closes the circle[])
 
mr5
@Wietlol boo
 
whoops
 
1:18 PM
ooh, recursion
@mr5 probably rename it to evalnashorn or something
 
@Wietbot this.prototype
 
I don't know this command, did you mean any of the following? join
 
evalnode is the command you should use by default
 
@Wietbot evalnode this.prototype
 
@Squirrelkiller undefined
 
mr5
1:18 PM
why is your bot always suggest 'join'?
 
Yeah seriously get with the times and suggest "staythefuckhome"
 
@mr5 iDunno
this -> join
??i? -> ??i?
they are only 3 characters different
most of the commands have longer names and therefor it wont consider them similar
also, most of the time when it suggests join, people use a 4 character word
or... 3
 
mr5
why is everyone talking they're getting fat, while my lazyass is getting skinnier overtime due to this event.
 
because you are naturally self isolated
your only activity outside just was scrapped from your schedule
 
Because you odn't have to walk to the bus/train anymore, don't go out, don't really go ride your bike...
(Also gyms are closed)
 
1:26 PM
your eating rythm went to crap because you dont give a shit
while for everyone else, they are now at home all the time and dont have any clue what to do with that time
so... they eat
 
Yeah seriously I just had lunch at 1330 instead of the usual 1130
 
only we, as people who are home all the time wasting our time on the interwebz and doing hobby programming projects, who are self isolating for over a decade and have no interest in other people at all, understand what we can waste our time on other than eating
I started eating at 13:20... it is now 14:28 and I still havent finished actually
 
mr5
It's 9:28PM and I only ate once
I'll probably eat my lunch at 12AM
 
remind me again, what is 9:28 pm in normal numbers?
 
1:30 PM
ah
 
the only correct PM/AM is when it is exactly 1 hour behind my normal numbers
so, 13:30 atm
 
No, there is no correct AM/PM
 
so, 1:31 AM or 1:31 PM atm is the only correct AM/PM
 
Just ever
 
mr5
1:31 PM
if I were to use military time, I would always need to subtract two hours from it and convert it to 12 o'clock either way
 
They're both wrong
 
both are correct
 
Why subtract 2 hours
Like the time now is 13:30
 
no, it is 13:31
 
mr5
20:00 - 2hrs == 18:00
remove the msb digit
there you have 8PM
 
1:32 PM
soon, it will be 13:37
 
Wat
no
18:00 is 6pm
 
so, 11:00 - 2hrs == 9:00 ?
there you have it, 9PM
 
No that's 9am
 
mr5
@CaptainObvious I said 20:00
 
its both 9AM and 9PM
AM and PM is just a meaningless postfix
 
1:33 PM
Yeah but you said 20:00-2h == 1800 == 8PM
Which is wrong
 
mr5
it's what I outgrow (is this even a word)
@CaptainObvious I was referring to 20:00 first
 
grew up with
 
Outgrow is a word, definitely not used correctly
 
mr5
it's what I ...ughh..
 
or... "it is what was forced upon my uneducated ass when it was still fresh"
 
mr5
1:35 PM
I'm sure there's a word for it. I just forgot it.
 
should work in many cases
 
mr5
yeah working for me so far
 
@mr5 you have 20:00-2h == 1800 == 8PM tattooed on your ass? :Z
Pretty sure that's abuse.
 
mr5
If someone said to me, I'll call you 20:00, I would instinctively need to convert it to AM/PM
 
depends on by who it was forced
 
mr5
1:37 PM
that's how I come up with that formula. subtract 2hrs from it, get the digit before msb and there you have it.
 
I just use common sense
 
Subtracting 12 was not an option then?
 
60% of the time, it works every time
the other 40% of the time, it is DST that is messing with me
 
mr5
why can't you guys accept unconventional practice. it works for me so far and I see nothing wrong with it in practical point of view
@BlackSquirrel not practical in my ability.
 
I seem to remember reading the Babylonians did everything in base 12 ...
 
1:39 PM
it is not the unconventional practise that we dont accept, it is the lack of clear explanation of how it works that we dont accept
 
No base 60!
 
a small group of greeks used to use base 31 just for sport
 
Sexagecimal! LOL
 
Did someone say sex?
 
SEX !
 
1:41 PM
did someone say age?
 
For example, one hour can be divided evenly into sections of 30 minutes, 20 minutes, 15 minutes, 12 minutes, 10 minutes, 6 minutes, 5 minutes, 4 minutes, 3 minutes, 2 minutes, and 1 minute. 60 is the smallest number that is divisible by every number from 1 to 6; that is, it is the lowest common multiple of 1, 2, 3, 4, 5, and 6
 
mr5
@Wietlol I just made that up. I'm not sure if I can squeeze any logic from it either but as long as it is working for me, why should I bother?
 
Also we, as developers, can't simply accept something unconventional. Everything needs to be conventional. If you want it implemented, make it a convention and come back then.
 
but once one person uses it, it is a convention, just not broadly followed
 
mr5
1:42 PM
ehh really?
lemme link you something about how to get someone's age in a strange way
1004
A: How do I calculate someone's age in C#?

ScArcher2This is a strange way to do it, but if you format the date to yyyymmdd and subtract the date of birth from the current date then drop the last 4 digits you've got the age :) I don't know C#, but I believe this will work in any language. 20080814 - 19800703 = 280111 Drop the last 4 digits = 2...

 
only if it does not require your birthdate
> if you format the date to yyyymmdd and subtract
ok, im out
 
yo where's that gif with the corona telenovela @mr5?
 
@mr5 the easier approach would be this
fun computeAge(birthDate: LocalDate, today: LocalDate): Int = birthDate.until(today).years
or...
fun computeAge(birthDate: LocalDate, today: LocalDate): Long = YEARS.between(birthDate, today)
 
nvm got it
 
I suppose the case where you need years as a long is a case which I will never meet
 
mr5
1:51 PM
@Squirrelkiller I don't remember sharing something like that
 
Not with that attitude
 
mr5
the closest I can remember is the crazy dinosaur
welp, not really "telenovela" but it's dramatic
 
mr5
ohhhh
we need parrot here
too many squirrels
speaking of parrot
 
Let me remind you of the pinned message
 
1:57 PM
@mr5 ppl will go just as nuts as this parrot after a while
domestic violence will go through the roof
 
Jack, nutz
@CaptainSquirrel Scusi?
@JackSparrow alive
Bruh
||nutz
 
Mar 12 '18 at 17:38, by Rudi Visser
Mmmmm, nutz
 
mr5
jack is practicing self-squarantine also
 
00:00 - 14:0014:00 - 21:00

« first day (3447 days earlier)      last day (1518 days later) »