« first day (3414 days earlier)      last day (1517 days later) » 

mr5
2:23 AM
Is it true that post and pre increment/decrement operators in C# have no low-level difference at all?
of fuck. dumb question. nevermind that
 
3:06 AM
Post/Pre
 
 
2 hours later…
5:30 AM
Anybody here !
 
mr5
5:46 AM
!!
 
6:15 AM
couldv've googled this, but just wanted to throw it in here !
how do i check if a int is closer to int A or int B ? the value to check is a real number.
int x = 5, int A = 73, int B = 17. if 5 is closer to B, return true. else return false.
@mr5 !!
 
mr5
var a = 73
var b = 17
var x = 5
var max = Math.max(a, b)
var min = Math.min(a, b)
console.log(max - x < min ? max : min);
haven't really tested it thoroughly
distance equation would work too
 
6:33 AM
just sort it and get prev and next number
 
@nyconing sounds good, thanks !
@mr5 Thanks ! let me try this check!
 
mr5
6:59 AM
@nyconing much better lol
@Sakthivel this doesn't seem to be correct. can you confirm?
function closer(x, a, b) {
    var max = Math.abs(a - x);
    var min = Math.abs(b - x);

    if (max == min)
        return 0;

    return max < min ? a : b;
}
 
7:25 AM
Well, for couple of inputs the Math.abs solution seemed to returns right result ..
I haven't tried the sorting yet. Too tired :( been working 15 hours straight .. I'll let you know tomorrow morning !?
 
mr5
it's wrong
 
@mr5
Oops
The var B will always be around 70 and var A will always be around 15-25.
The variable is x, if x 60, return false. If x is 29, return true.
I tried sorting but I don't understand how to decide based on the sorted value as well
 
7:39 AM
c#?
you may go js room for js
!~>()=>{
    var numbers = new[] { 5, 1, 3, 9, 4, 4 };
    var number = 6;
    var close = numbers.Aggregate((a, b) => Math.Abs(a - number) < Math.Abs(b - number) ? a : b);
    return close;
}
!=>5
 
 
8:00 AM
GoOoOoOoOoOoOoOoOoOoOoOd Mornin' pleberinos!
 
8:13 AM
o/
 
morning
U guys are enjoying the fallout boy meme aren't you
 
mr5
oh boi
I've seen a job listing of 150k-190k USD / yr
mobile
 
Requirements: We demand your soul.
 
@RoelvanUden pff.. easy. Already lost my soul years ago when I started using Microsoft products
3
 
Good point.
 
8:30 AM
Good day.
> IEnumerable<int> squares = Enumerable.Range(1, 10).Select(x => x * x);
Is squares here a class that implements the IEnumerable interface?
 
no, squares is a local variable representing an instance implementing the IEnumerable interface
 
Is that instance created using this line?
Is that instance a class?
 
all instances are classes, so yes
and yes, it is created using that line
 
Thank you! It's very hard for me to wrap my head around interfaces.
 
if it helps to think of it this way, interfaces is what your program sees, and the concrete class is how it works internally
 
8:32 AM
I was reading about the Func delegate and ended up re-reading about interfaces for the umpteenth time.
nods
(back to reading)
 
nod
 
mr5
coughs
coughs coughs coughs coughs
 
got something in your throat there, @mr5?
 
The system still works!
 
8:47 AM
Hi
I created a merge request but now I see there is an extra file I didn't want to commit
what should I do now?
 
Are you using git?
 
yes
gitlab
and git by visualstudio
 
You can either discard it (if you don't need the file yourself), or add something to your .gitignore to ignore that file. If you do the latter you have to stage the gitignore in its own commit before the rest otherwise the changes won't apply
 
ahoy mateys o/
 
9:03 AM
ok thanks
hey :)
 
Spo
fuck
sup
 
mr5
@Neil wuhan m8
@Shad a simple delete and commit would do the trick. if you want to avoid excluding this kind of file in the future, .gitignore it. (I basically rephrase Captain Obvious here though)
err.. what's merge request?
ohh. I thought you've already committed it.
 
Is it that time of year again where a simple fuck is starred?
 
Let's see if the other popular one gets starts then
Hmmm.
 
It's always that time out year
In other news
My mug is in dire need of a bath
 
9:22 AM
@CaptainObvious a coffee bath?
 
mr5
@CaptainSquirrel a bat bathing in covfefe
 
lol i forgot about that
 
did trump legit write a tweet with covfefe?
the cringe has returned
 
Well coffee is devil juice so no
 
mr5
I thought covfefe was referring to coffee. my whole life is a life
 
9:28 AM
But no I mean it's fucking filthy
 
I read somewhere that covfefe could be loosely considered to be the word "soviet"
through some contrived interpretations
It could also be that he had a major typo for the word coffee. Both are equally likely.
 
@CaptainObvious DEVIL JUICE?
SURELY YOU MEAN LIFE BLOOD BRÖTHËR
god damn this coffee is gud
well boys and girls
the age of the brown liquid gold is upon me again
This drink is honestly like crack
I stayed away for so long
but it is back in my veins
my body calls for the coffee
 
@CaptainSquirrel sounds like you are referring to a very wet time on the toilett...
 
I drink a full mug of coffee in the morning and it doesn't really do anything for me
 
It's taking all my strength to not neck this
 
9:35 AM
Hey kieran do you play AoE?
 
If I don't drink it, then I'm drowzy until lunch
 
I only don't, as if i do i will have internal burns
@Squirrelintraining I've not played for a while, why?
CSGO is back in my life sooooooo
 
Also, react native was pissing me off last night
 
Welp I bought the AoE II Defintive Edition last weekend
It's great!
 
9:36 AM
oo
 
obviously, you used JS
 
I have AoE 3
 
It's a really godo improvement
AoE III sucked hard.
AoE II best AoE
 
@Wietlol well yeah, but that's part of the reason that its alluring to me
because I don't hate writing js
 
u wot?
 
9:36 AM
I DON'T HATE WRITING JS
 
@Squirrelintraining it still has some pathing issues tho
and orders are a bit weird
but other than that, its quite nice
 
Ya
But @Wietlol one mayor issue i had yesterday was attacking.

I clicked a villiger and my scout ran to the speerman
Happend quite frequently that the unit didn't attack the clicked unit
 
ye, that is one of the pathing and order issues
based on some weird logic, the scout will say "I know you want me to attack that villager, but I cant reach, so I just attack anything near me"
 
Really
Doesn't that make the game kinda unpalyable?
Holyshit really?
> but I cant reach,
He was
NEXT TO
right
THAT DAMN VILL AND RAN INTO HIS DEATH
FUCKING EMO
 
ye... when it works, it is quite good
but "I cant reach" is bugged
 
9:44 AM
@Squirrelintraining I've never had that.
My units always attack whatever I pick.
 
AOE 3 was far superior
 
@RoelvanUden I only noticed that yesterday in the lategame when I had lost only only microd my last 5 scouts
 
much faster paced, less walling in
 
Ups sorry
 
9:45 AM
@Squirrelintraining Aha. I do occasionally experience issues when many units are in the game
Never when they're aren't that many
 
Welp anyway all in all DE is a big improvement IMO
 
I haven't bought DE.
 
Seriously guys though look at this
 
Oh maybe thatswhy you havn't experiene the bug
 
9:47 AM
@HéctorÁlvarez COME BACK
 
@HéctorÁlvarez you can come back now
 
@CaptainObvious jesus fuck that's like an old colleagues mug
 
Haha kieren 2 idiots 1 thought
 
Oh, maybe. I'm still playing the previous "definitive" edition?
The remaster thingy
 
You are probably on par with their mug
 
9:47 AM
@CaptainObvious Masterpiece!
 
AOE2 HD I think
 
I'm gonna go give it a bath now
 
Yeah thats the HD release
 
@HéctorÁlvarez pls
don't do this to us again
 
Again?
Oh nos what did I do? :<
 
9:49 AM
s/Snake/Héctor
@Squirrelintraining I'm just referring to when we all thought Héctor was ded
and then he suddenly wasn't
which was the greatest thing
 
10:11 AM
TFW you are in the middle of doing a production deployment & the server you are updating says that it'll be restarting in 15 minutes to do windows update
 
Basically aye
I emailed the client to say "hey your infra is gunna restart in 15 minutes and we are still deploying to it"
heard nothing back lmao
just turned off the update service myself
 
if someone isn't getting angry that you didn't turn off the update service, then someone is getting angry that you did and that you didn't turn it back on again afterwards
 
A sysadmin that leaves Windows Updates turned on in a production server isn't one to notice it being turned off.
 
10:26 AM
good point
 
10:39 AM
Well i turned it off via net stop
 
HAMMERTIME!
 
And it's just informed me the update was rescheduled for another 10 minutes
the machine has just rebooted so now we just wait
not ideal that its doing an update in the middle of a deployment tho lol
 
Microsoft: "Oh you're trying to deploy? Let me sing you a song of my people.."
 
ya basically
 
10:47 AM
my idea is that they needed to just decide that some day of the week was the default day for updates
you can put it off to another time in the week, but it must be within the next
well I mean you could of course not use your computer, but still
at least you don't get caught with this "I'm deciding we need to update NOW!!" shit
 
@Neil Or, when deploying servers, you disable the update and control their timing yourself because these aren't consumer devices.
 
@AvnerShahar-Kashtan in an ideal world, this would have been better planned, and it isn't the fault of the updaters but the system administrators
I'm convinced there are two types of system administrators.. the ones which absolutely must have control over everything and the ones which do literally as little as feasibly possible
I've never met one that is somewhere in between
 
Yeah, we don't control this clients infra
only the software
like the updates are being installed because auto reboot
but it shouldn't be auto rebooting
 
@CaptainSquirrel at my old job it was like that
We were just in charge of installing the software and keeping it up-to-date
 
this is the only client of ours that we didn't do the Infra for
 
10:54 AM
however it also involved installing a database, and databases need maintenance..
 
how many times we had to shrink it over the course of years because clients wouldn't
 
that's an infra task imo
 
and the worst part is, they paid us for support, and when it stops working because, say, the disk space is entirely occupied.. we ourselves have to check for such problems
burden of proof was always on us
 
10:56 AM
if we were lucky, we'd make them understand that it was something they weren't doing, but we'd always have to fix it ourselves one way or the other
my boss was of the mindset that if they pay us enough, it ultimately doesn't matter..
yeah, not the best work environment
at least I found out that being a systems administrator would be something I would utterly hate
 
its a good learning experience tho
here's an interesting one
the iis server isn't coming up for their second prod server
oh boi
nevermind
iisreset /start sorted it
 
Back when I was a sysadmin, we had a strict "no immediate iisreset" policy.
 
well the warm up task for this deployment is prone to failing
so iisreset is generally quicker
Plus as a developer, I am not bound by the sysadmin/infra engineer rule book
 
every production environment needs like an alternative node that can be updated and swapped out for the current imho
in case of problems, you can swap back
you'd think that's a no-brainer, but for example, my company doesn't do that.. really seems like an obvious thing
 
mr5
Double buffering network
 
11:10 AM
@Neil that's what we do for all our clients
for the delivery servers anyway
 
our company has more of a "all-or-nothing" mentality I guess
 
V.7
Just curious if this char looks weird out there
ḑ̵̧̦̼̥͕̗̅̓̎̆̏̀̄̿͌̋̈̓͑̚̚
 
we are either online or we are not
 
we have backups for the database, and we can always go back to a previous version..
but still, that's kind of the old way of doing things
 
11:11 AM
TO͇̹̺ͅƝ̴ȳ̳ TH̘Ë͖́̉ ͠P̯͍̭O̚​N̐Y̡ H̸̡̪̯ͨ͊̽̅̾̎Ȩ̬̩̾͛ͪ̈́̀́͘ ̶̧̨̱̹̭̯ͧ̾ͬC̷̙̲̝͖ͭ̏ͥͮ͟Oͮ͏̮̪̝͍M̲̖͊̒ͪͩͬ̚̚͜Ȇ̴̟̟͙̞ͩ͌͝S̨̥̫͎̭ͯ̿̔̀ͅ
 
@V.7 looks fine to me
 
V.7
@CaptainSquirrel Yeah, like that
 
"this char"
 
V.7
Do you know how this happens?
Where to read?
@Neil Same?
 
!~zalgo CAT IS WATCHING YOU
@nyconing C̵̴̖̘͓̘̈̂ͦ͘À̢̛̤̰̫͍ͣ̒͌ͨ̓͊ͅT̴̠̟̙̫̣̤̫͒̏̀́ͅ ̨̜͉͍̝̞̜̱ͪ̈͑͡I̵̙̮̣̪ͦS̸̄ͩ̇̄̿̅ͫͨ͒͏͖̭͇̮̼ ̭̪̉̂̚͟W̸̧̯̱̓̈́ͦ͊́A̧̬ͫͫ̀͊ͤ̓ͥͧͅŢ̯̫̣̥̥̜̰̔̔͌͒ͅC̩̦̳̦̎͋̏͂͠ͅͅḨ͆ͨͥ̇ͩ͋̈̾̒҉̱̹͓͇̘̻I̙̳̦̽̆ͯ͋ͩ̐ͣ̌N̹̗̹̟̺̰̥͕̈́̍̀͢G̲̼̤̣̾̅̾ ̠̮̭͔̟ͦ̒͞Y̢̨͕̳͓̅̒̂̀O̧̙̜̩͉͍̤͔̠̺̒͗̒̒̈U̴̧̲̾ͮ͊ͧ͗͐̚͘
 
11:15 AM
@V.7 just unicode magic
 
V.7
How is that called?
 
@Neil It's about cost/benefit analysis. How often does something break vs. how much would a fault-tolerant hot standby cost.
@Neil s/old/cheap
 
@AvnerShahar-Kashtan it costs more resources to have a second copy of everything in production, for sure
still, I wouldn't even have second thoughts on my choice
 
On the cloud, it's much cheaper to have standbys than it was in the old days, when you needed a physical machine doing nothing in your server room. Now you can just provision a new VM or whatever and simply pay on demand.
 
technically it wouldn't have to duplicate memory or cpu power
mostly just disk space I suppose
 
V.7
11:20 AM
.̸̡̛̝͎̩̫̼̰̜͎̗̘̫̖̖͕̼̦̼̦̹̑̃͗̎͐̿͋̈́̏͂̀͋̐͛̃̒͠͝
Interesting
 
Or just follow the azure blue/green infra
 
Though still, for really high availability, you'd still want a hot standby already provisioned and standing by. Provisioning a new VM for your app, for instance, might be a matter of 5-10 minutes on a busy cloud region. That might not be the availability SLA you want.
 
then you always have two servers & can do live deployments with basically 0 downtime
 
@CaptainSquirrel Sure, that's the way to ensure availability. But at a price.
 
11:22 AM
@AvnerShahar-Kashtan Anyone who skimps on availability is just asking for extended periods of downtime
 
If your customers are willing to pay for that high availability, you can and should charge them for it, and then turn around and ensure you have proper redundant infrastructures.
 
(sorry double ping)
 
@CaptainSquirrel Which is fine too. Not every app needs five-nines availability.
 
V.7
Found, this text is called "zalgo"
 
There's still no excuse in this day and age with all the stuff available
Apart from when infra people forget to turn off automatic windows updates 👀
 
11:23 AM
@CaptainSquirrel Sure there's an excuse. If your app, for instance, lets customers file their monthly expense reports, having a 1-2 hour downtime on crash might not be a problem for them.
 
That's true i guess
 
So overspending on high-availability and redundant hardware/cloud resources is simply a waste of money.
 
meh
it's a tradeoff like any other, but it's like the tradeoff nowadays with performance vs memory.. unless you're consuming massive amounts of memory, nobody thinks twice nowadays.. performance is key
once upon a time, it was a perfectly acceptable thing to let it be slower and reserve memory space
the risk is just as high as it has always been, but the cost has reduced
 
In my opinion, even if you have a small app you should still try to have some form of availablity
Even if its something that'd serve a placeholder until your main infra is back up and running
The roach doth arrive
 
boys and girls im a dumbass
 
11:37 AM
Jack, learn harry <>https://chat.stackoverflow.com/transcript/message/48640594#48640594
 
I've learned the command harry
 
@Harry do explain :)
 
i spent 30 minutes this morning trying to test some changes i made on a branch that didnt have the changes i made
 
easy mistake to make
 
WHO UNSTARRED
 
11:38 AM
that happens to me way more often than I'm willing to admit
 
YOU CHEEKY FUCK
 
LOL
3 stars and back down to 2
 
in my defense, not always obvious if and when something deploys in my company
 
i blame visual studio
 
@Neil which is why you have a status thing somewhere
that has the last commit id in it
or something similar
 
11:39 AM
@CaptainSquirrel We get an e-mail saying that something is deployed and ready, except that it doesn't deploy for another 20 minutes or so
learned that the hard way
it's easy enough to check in test environment, but in preproduction, we can't access the files directly
 
god damn
whoever is sending your emails is a fucking idiot
 
some automated system
 
inb4 neil sends them
 
and yes, it's pretty idiotic
@CaptainSquirrel hah, if it were me, it really would be stupid wouldn't it?
 
Just a bit lmao
well then let me rephase
whoever implemented the automated system is a idiot
 
11:41 AM
a idiot
jack, kieranspelling
 
Nov 11 '19 at 10:45, by Captain Squirrel
@CaptainObvious ....ok boomber
 
11:53 AM
@Harry Spelling !== Grammar
 
hugs
 
ok boomber
4
 

« first day (3414 days earlier)      last day (1517 days later) »