« first day (3783 days earlier)      last day (1173 days later) » 

 
1 hour later…
7:11 AM
<3
I like each and everyone of you :3
 
8:01 AM
Good morning
 
8:20 AM
Ryan Donovan on February 22, 2021
When it comes to developing low latency software systems, the received wisdom is that you would be crazy to use anything but C++ because anything else has too high a latency. But I’m here to convince you of the opposite, counter-intuitive, almost heretical notion: that when it comes to achieving low latency in software systems, Java is better.
oops :)
 
mr5
If we were to live on Jupiter, and people are scattered around in every part of it, what do you think would be our transport systems to travel across "countries"?
 
||votekick Wiet
 
@Squirrelkiller voted to kick @Wiet
 
mr5
@Shad hey shad, ur back :)
 
@mr5 Tube trains
 
8:21 AM
@mr5 it would have to be a floating solution
iirc, Jupiter is a gas planet
 
mr5
@Squirrelkiller like that one company of Elon?
 
Basically
 
mr5
@Wietlol welp, it would take us probably years to travel on the opposite side using our current technology.
ah it's called hyperloop
 
it's diameter is only 140.000 KM
lets say an airplane travels at 700KM/h
 
mr5
hyperloop speed: 1080km / h
Jupiter circumference: 439,264 km
mega == tonnes?
 
8:27 AM
the furthest point anywhere (opposite side of the planet) is half of the circumference, which is 0.5 * pi * diameter
so, 70k * pi = 220,000 KM
airplane travels at 700/h
220,000 / 700 = 314 hours
so you only need 100 pie hours
approximately 4 pie days
that is,
a slower plane
a larger jupiter
an inprecise pie
it would hardly take years to travel
 
That's just the one Musk has
 
changing the formula to
distance / time = velocity
 
A train car in a vacuum tube can potentially get way faster
 
mr5
if we ever colonize a planet as big as Jupiter, I think the hyperloop would be much better to implement.
@Wietlol what does pie hours means?
pi * hr?
 
220,000 / (2 * 365 * 24) = 220,000 / 17,520 = 12.55 KM/h for 2 years
so, if it were to take us "probably (2) years to travel to* the opposite side"
then we have to travel at 12.55 KM/h
 
mr5
8:35 AM
dang that's too long for a trip
we should really invent something that can transport us at a nearly speed of light.
 
or just faster :D
 
mr5
or cloning if it's not feasible :)
 
then finally people might understand that if you move faster than the speed of light, you are still not time travelling
 
mr5
I've heard that if people would "travel" at that speed, our blood stream would burst through our veins.
 
not unlikely
 
mr5
8:37 AM
not sure. just got that info from 9gag :)
 
but I think it is difficult to anticipate what would actually happen
primarily, local movement with inherited velocity would nearly be stopped... which would probably be very bad for most organs
 
mr5
if we can finally replicate every part of our body, and copy every info in our DNA, maybe cloning would be a much better approach for transporting people at that distance lol.
 
except for this organ, this one will be fine:
 
mr5
in our current tech, communicating from here through Mars would take us 5 - 20 mins, at <insert max data here>
dufq is that
@Wietlol again, why are u collapsing it
 
@mr5 isnt the primary factor in that case the latency?
 
mr5
8:41 AM
yeah
limited by physical means
there's this also another thing faster than the speed of light, which is the expansion of the universe (similar to how a balloon expands when you blow air into it)
is the image collapsing thing just being a considerate for others that might not like to view the image?
if that's the case, I'm uninformed for many years :D
 
9:08 AM
I like image collapsing
once I have seen the image, I prefer it to be collapsed
if I want to look at it again, I will click on the link
 
it's like I time travelled lol
 
you probably just fell asleep :D
 
hehe
I mean't I am back after almost a year
what a weird time
missed you all <3
 
mr5
9:30 AM
yeah I thought you got covided
@Wietlol watch this. I am not going to collapse it :)
(hoping it will torture wiet)
 
mr5
nooooooooooooo
it's for shad
what did you unbrought upon this curse land
 
lol
 
mr5
In case someone didn't know what unbrought means xD
 
7
Q: Downloading large files with jQuery & iFrame - Need a File Ready event so I can hide the loading gif

OwenI'm using jQuery to download some files that take some time to create, so I show a loading gif to tell the user to be patient. But the problem is, the loading gif is currenntly shown and hidden all within a split second. Is there a way for me to hide the loading gif after the download is comple...

my issue is exactly this, but in mine iframe onload doesn't fires the second time I click on download?
 
9:40 AM
ew, js
 
@Shad onload only ever fires once. Once it's loaded, it's loaded. Make a new element if you need a new onload.
But more than likely you want a different event
 
yeah, like what?
 
Well, what are you doing?
 
mr5
new years eve
 
downloading a file
I created an iframe element just like in the selected answer
but what if the user clicks download again, which event should I look for then
maybe I can remove the iframe element and create a new each time user clicks on download
to work with onload, as you said it fires once @Deathspike
 
9:48 AM
You could also prevent clicking the download button again. If it's not intentional to download the same thing twice.
But this all sounds like a hack. Is the file being created on request?
 
yes
 
Then why don't you XHR to create the file, return a temp id, and then just redirect the browser to download it?
It's the nicer way. No weird iframe needed.
 
[Captain Obvious] Wait is bot down again
Hello friends!
[Captain Obvious] Can anyone actually tell me what DateTimeOffset is actually for
 
mr5
It's a DateTime
with an offset property
offset referred to the timezone
 
[Captain Obvious] But DateTime has that anyway
[Captain Obvious] Doesn't it
 
10:01 AM
@Botler It doesn't.
 
[Captain Obvious] But it has Utc and Local properties?
[Deathspike] @butler1233 DateTimeOffset is far more accurate and actually takes timezones into account when calculating.
[Captain Obvious] So it's better to use then?
[Deathspike] If you use a local DT and add a UTC DT you get a local DT that's fucked
[Captain Obvious] Not having to deal with time zones kinda spoils me
[Deathspike] DateTimeOffset is the only built-in way that's good for timezones
 
mr5
In DateTimeOffset, you can determine the local datetime where the time originated from. This is not possible in DateTime.
 
[Captain Obvious] Timezones are something that I might be including in my next project
[Captain Obvious] And i18n
[Deathspike] It's... not fun.
[Deathspike] Timezones are more complicated than you'd think 😂
[Captain Obvious] Which one? or both?
[Captain Obvious] Oh I'm aware of how much of a pain in the arse timezones are
[Deathspike] Yes, good, but it's still more complicated than you think right now 😂
 
mr5
Say, you pass the datetime as UTC, but how would you determine the local time when it was "processed"?
 
[Captain Obvious] I've only recently managed to get (as far as I am aware) everything that we have to store things in UTC dates
[Deathspike] We have a product where the main core is scheduling shifts across timezones.
[Deathspike] Needless to say, it's a PITA
[Captain Obvious] @markiel Apply the local culture's UTC offset to the UTC datetime?
[Captain Obvious] Oh jesus christ that sounds painful
 
mr5
10:09 AM
You mean UTC 0000 + local offset?
Oh I get it why you're not used to it :D
 
[Captain Obvious] At least this new project will just be to give customers in another country (and another language if I feel like finding out how to localise) timings
 
mr5
cuz you're 0000 offset right?
 
[Captain Obvious] Although when dates are stored they're all stored in UTC anyway
 
mr5
You actually don't need to do anything special when working with DateTimeOffset. Just serialize it with UTC format string and always display the datetime locally.
Iirc in our previous project, we use the offset property for a rough estimate where the datetime came from and display it in GMaps. So there's that.
Ah no just some added checks for the location. We actually have a separate property for location xD
I'm out of this WFH!
time to continue my personal project :)
 
[Captain Obvious] Okay, next question, particularly for my multilingual and/or non-english people, although anyone with experience doing localised projects will do
[Captain Obvious] I'm start a new project at some point possibly this week but probably next week, probably blazor but definitely asp.net core otherwise, how do?
 
mr5
10:18 AM
you click VS then boom! project :D
 
[Captain Obvious] localisation
 
mr5
complete package of localisation?
like time, language, etc?
 
mr5
ah. We're doing it differently in mobile Xamarin. Maybe you need separate packages for it. I'm not aware if there's a complete package for it.
 
[Captain Obvious] I know it can be a huge pain in the arse adding it to projects which weren't doing it from th estart
 
mr5
10:20 AM
But I think for the language thing, you can use the .resx files. Works pretty well in every C# project I think.
 
[Captain Obvious] But I've never used them
 
mr5
Then use them now.
It's basically a .resx and a .cs file
Similar to other autogenerated files where it has a code-behind
So you put the key-value there. A .cs file will auto generate and you access it statically.
 
mr5
Strings.resx
Strings.cs <-- say this is the "default" language which is English
Strings.resx contains the key-value which is word key - words (AlertTitle=Something went wrong)
Now, if you want to support German language, you do the same thing
Just do
Strings-de-DE.resx?
Strings.cs ? this I can't recall exactly.
And fill up the key value of the .resx file
And in your code, you stop using string literals.
You do this instead:
var title = Strings.AlertTitle
To switch to another language, you do Strings.CultureInfo = new CultureInfo("de-DE")
and that's basically it.
It's also have a dedicated editor so it's quite easier to add new entry for words.
For the naming convention, I think it's a bad idea to put hyphens there. I'm not sure why I suggested it (probably that's what I remember and because my colleagues name those files instead of me xD)
 
@Deathspike alright death spike :))
 
10:35 AM
Grr, it's deathspike, not death spike
 
xD
 
mr5
deadspike
 
mr5
10:54 AM
@Neil are you going to buy/play D2 resurrected?
 
mr5
11:32 AM
anyway, here's a bat
 
Help I'm going crazy
Console.WriteLine($"stringData: {stringData}, IsNullOrWhiteSpace: {string.IsNullOrWhiteSpace(stringData)}");
> stringData: null, IsNullOrWhiteSpace: False
Am I stupid?
Shouldn't it say true? Like, yes it is indeed null?
 
mr5
lul
what lang version?
maybe the actual value of stringData is "null"?
 
net5.0
@mr5 Oh shit this is very possible
FFS that was it
Thanks dude
 
mr5
lol
it shouldn't print "null" if it's actually null though.
 
Oh you're right. Damn that was just too obvious to question lol.
 
mr5
11:53 AM
the other guy is messing with you. why would he/she put "null" as value? unless the other guy is you also, then you prank yourself xD
 
12:20 PM
[Squirrel in Training] dotnet fiddle
 
12:31 PM
The other guy is indeed me, playing with js interop
turns out if I store null in localStorage and then read it, I get "null" as a string
 
1:16 PM
[juanvan] anyone ever deal with a solution that keeps telling you, that TFS objects haven't been downloaded, and would you like to get them every time the SLN launches?
[Squirrel in Training] havn't heard TFS in donkies years
[Squirrel in Training] donys years?
[Squirrel in Training] burro anos?
[juanvan] chio manina?
[juanvan] Ya Git is the baby right now, that's cool that's cool
 
1:44 PM
To the SQL army,
I have CTE in proc that returns upto 10 records with 4 columns
OCRFieldName(varchar) | OCRValue(varchar) | FieldConfidence(int) | IsTextCorrectValue (bool)
I want to check few conditions such as if SSN and Employer name are either empty or null, if theyre not, if their field confidence is < 50 and if IsTextCorrectValue true
 
[Squirrel in Training] And what is the question sackzipfel?
 
 
1 hour later…
3:02 PM
[juanvan] Sounds like you have the query, just need to write it in code?
 
3:32 PM
Was trying to answer simple datetime question when I got an epiphany.
As a not native english speaker I can't wrap my head around english time AM/PM.
12AM(midnight) < 1AM < 12PM(noon) < 1PM.
DateTime.Today is 'Tuesday, February 23, 2021 12:00:00 AM'.
Ok you knew you fuckup when 12[periode{am|pm}] was inferior to 1in the same periode.
So they went for 11:59 PM and 12:01 AM, respectivly midnight and start of the day.
And we have question like "C# Date 12:00 AM should be 12:01 AM", and I'm staring back in fear!
 
mr5
> Epiphany - the manifestation of Christ to the Gentiles as represented by the Magi (Matthew 2:1–12).
hmm
12:00 AM is 00:00 in military time
11:59 PM is the last time of the day (11:59:59.9999999999)
next of 12:00 AM is 12:01 AM
 
Yep, military often clear ambiguity with value that make sense.
And between 12:00AM and 12:01AM there is a whole fraction of second we are not allowed to talk about based on some U.S standrad.
 
mr5
standard or superstitions?
We've got americanized USAnized so I'm used to that AM PM time
Also, I need to transform in my head the military time to AM/PM before I can understand the time.
 
I wonder how did the standard validation was? Draw a time line put only one event. Call it midnight. Move your finger to the other side of the line. Call it start of the day. Now pretend it's one second appart.
I guess I'm just 12am intolerant.
 
4:18 PM
[Not Li] Military time? You mean simply 24hr format?
[Not Li] Also, 24hr format is the superior format here
[Not Li] Idk why anyone would use 12hr
 
military time is "twelve hundred"
 
\[**[Not Li](https://discord.gg/PNMq3pBSUe)**] Tho 24hr and military look the same tbf, difference is how you say it.

I don't call 17:00 seventeen hundred.
[Not Li] It's just 5pm
[Not Li] So ya
 
mr5
4:33 PM
yeah weird
USAnian reading 1700 as 17 hundred
should be one thousand seven hundred
to convert military/24hr format to to AM/PM, you subtract two from it, then get the ones digit in the hour part.
17:00 minus 2 would be 15:00
ones digit in the hour part is 5 then you add AM/PM to it.
 
23:00 minus 2 would be 21:00
ones digit in the hour part is 1 then you add AM/PM to it.
23:00 == 1AM | 1PM ?
gotta try harder mr5
 
mr5
for those cases that, you just add 1 (in tens digit) to it to because it wouldn't make sense.
I just devise this conversion on my own and this what works for me.
also I don't need to try hard. I'm not convincing anyone to try it.
 
5:24 PM
Just wondering if anyone can advise if I have a webapi app and want to start adding some razor pages whether I can do some dotnet command to add everything necessary like you would creating it from the webapp template?
 
Looking to add Razor pages to an existing project
Google search that, and you'll find a few how to
 
I was following docs.microsoft.com/en-us/aspnet/core/razor-pages/… and I can get a basic template, it just doesn't seem to reference adding controllers .. are they relevant for this instance?
 
MVC the C in controller
This page talks about controllers
All the controller does is return the data
Some Employee, what ever you're serving up
 
5:44 PM
\[**[Not Li](https://discord.gg/PNMq3pBSUe)**] Mr5 what is the weirdest way ever. If the total is >12 sub 12 from it. And that way you already know it's pm.

Ie: 14:00 - 12 is 2:00 so 2pm
 
5:54 PM
errr Broke bot is broke
 
mr5
6:15 PM
yeah I didn't cover all the cases. I'm so sleepy rn xD
 
7:06 PM
Ben Popper on February 23, 2021
Investigate a dataset with summary statistics and some basic data visualizations using the Python libraries NumPy, pandas, matplotlib, and Seaborn.
 
7:30 PM
it happens
 
7:48 PM
[juanvan] Ekk man time for bed
 

« first day (3783 days earlier)      last day (1173 days later) »