« first day (3545 days earlier)      last day (1407 days later) » 

3:00 PM
fyi i just use userbenchmark: cpu.userbenchmark.com
 
mr5
@DAustin it's done :)
I'll just wait tomorrow.
 
use the compare function at the top right to compare the perfomance of 2 cpus across a bunch of differenet metrcis
 
\o
 
its how i found out the ryzen3600 was a cheaper and faster option than the cpu i was looking at lol
@mr5 ffingers crossed mate
and how i stumbled on the weird cheap intel 9400F
thats slightly faster than a ryzen5 3600 and also slightly cheaper
 
Protip
Don't use userbanehcmark
 
3:02 PM
why not?
 
They're notoriously biased against AMD
 
oooo just reading the article that they got banned from reddit
lol
meh, i have the perfectly safe information of Linus Tech Tips that i picked the right cpu at the time lmao
 
/s obv
 
mr5
Even Linus dissing Intel for fake news.
 
3:07 PM
cheers for the heads up, seems they are a bit biased against AMD in the rankings
good job i went amd at the time
ryzen5 3600 + 16gb ram + 1060 runs the index nicely, despite thje consensus i should be running a 1070 or 80
 
You have the VR?
 
brb need to check if the gf's car is buggered, lol
yeh got it about 6 weeks ago
 
oh sick
 
actually may 1st lol
cheers, its good fun, still not sure on the price tag but ive wanted vr for a while
 
Noice
We got the Oculus Quest instead - it's great because doesn't have the giant price tag but also works without a PC.
 
3:14 PM
havent booted up Alyx yet, wanted to get used to Vr itseelf first before trying it
Yeah that was my alternate choice
 
It's the good shit
 
CALL ME MASTER OF ENTITY FRAMEWORK
I HAZ CONQURED IT
 
my friend has one theyre really good
 
NOTHING CAN HURT ME NOW
I
AM
INVINCIBLE
 
3:15 PM
lmao Quirrel, what was it then?
 
MUAHAHAHAHAHAHAH
You petty DAustin don't scare me!
 
wait, what does the HttpContext have to do with EF?
 
I was so close to kicking you just after "AM"
 
OMG feels so weird when you start again with a whole new rig and environment.
 
I've been to the depths of ForeignKeys and into the wilds of InverseProperties
Y'all just pipsqueeks!
 
3:16 PM
EF neither has nor cares about HttpContext
 
haha welcome to my world :D
i know, but last i heard it was the HttpContext giving you issues
 
Okay guys
I'll head home now
 
@Squirrelintraining nice
 
Befor EF kicks me back to the ground
 
quick question regarding EF
did you use Data Annotation or FluentApi?
 
mr5
3:17 PM
@Squirrelintraining tf is inverse property?
 
to do what you did? just curious
@mr5 i can explain if squirrel's off, i love ef :D
 
@DAustin Actually Data Annotations, because it's auto generated classes and that was easiert to handle
@mr5 Yes
 
same mate ;)
fluent api is the last resort for me lol
 
mr5
it sounds like having a property of cancer while having the inverse of it. lol
 
lol
think of it like this
if you have a 1-to-many relationship
or even 1-1 in some cases
one side of that relationship needs to the principal end
the "daddy" if you like
the InverseProperty is to stop EF trying to make the child the daddy when it does the mapping of the relationship
 
3:20 PM
@DAustin Its more flexible and clear
IMHO
But not quirte as intuitive xD
 
I just findd editing DataAnnotations quicker, because i'll have to drop 5 of them iin 2 or more clases before i figure out what was wrong
 
@mr5 It's just a navigational property w/o foreign key basically
 
so much easier to comment them out than in fluent api lol
 
@DAustin aye
But then again Fluent is MOA powaFULL
and keeps the model clean
ANYWAYS
 
@Squirrelintraining well yeah you cooould explain it like that...
lol
 
3:21 PM
I wanted tto go u dickwats
Seeing you ♥
 
sorry
xxx
byeee 0/
and yeh it is more powerful lol
 
@DAustin I used both
 
yeah i have to use both
but if i can do it via an annotation, i prefer that
 
I use annotations where possible
But sometimes you just have to use fluent
 
ikr
thats when i sigh
 
3:23 PM
Hey all, we are having some problems on our Build Server that we are using to deploy an Old .NET Framework 4-based application that was developed in Visual Studio 2010.
20
A: Running MSBuild fails to read SDKToolsPath

DanielSimply pass GenerateSerializationAssemblies parameter with value Off to your MsBuild. msbuild.exe /p:GenerateSerializationAssemblies=Off

 
because whatever it is im doing is obviously not that simple
 
Does anyone know what msbuild.exe /p:GenerateSerializationAssemblies=Off
turning off the flag does?
 
I think it stops it Generating SerializationAssemblies
 
mr5
it sounds like turning off its portability?
 
Indicates whether XML serialization assemblies should be generated by SGen.exe, which can be set to on, auto, or off. This property is used for assemblies that target .NET Framework only. To generate XML serialization assemblies for .NET Standard or .NET Core assemblies, reference the Microsoft.XmlSerializer.Generator NuGet package.
I have 0 fucking idea what its talking about, but would you be trying to port it from .Net 4 to .Net Core or something?
Following the rabbit hole: stackoverflow.com/questions/134224/…
 
3:30 PM
@DAustin Thanks
No, At present, we are Not planning to move over to .NET Core
 
WHY NOT
MOVE TO /NET CORE
 
LOL, like I said in the past, I work at a big bureaucratic company that is Slow to move and is very much like a clumsy giant
 
oh right yea
 
Yeh but cmon, we'll be close to 5 years for core soon wont we?
i managed to sly in a more modern version windows and use it as a giant class library
 
Hmm, I wouldn't say that
 
3:39 PM
then call it from all the old shit that cant use it directly
 
Core has only actually been useful for a year and a bit
 
im just thinking i remembered using it in 2016
hmm, managed to get quite a lot of use out of it in 2.1 for web stuff
 
Apparently 2 years
Whatever
Yeah 2.1 was where it actually became useful
 
granted i didnt use version one
so 2016 may be a bit farther than true lol
for web development its been pretty great
desktop, not so much
i tried building a WPF app with .net core and my class library
never again
tbf my issues were with wpf and multithreading, i think core was fine
 
3:57 PM
Sounds like you were just being bad at WPF
 
first and last attempt lol
just had issues with the whole UI thread vs the actual tasks
i dont do much multithreading so i find it a bit tricky
async/await etc
 
Also .net core is still lacking several things .net framework has
 
true, though version 5 is supposed to finish that off?
 
hopefully
but we are still 3.1
 
i think theyre skiiping 4 to avoid naming confusion with .net framework
 
4:09 PM
That'd be nice
 
How do you get the dark theme in chat? Have to use browser extension?
 
so the next major release is .net core 5 i think and that's supposed to be the full production ready version
so itll be ready by version 8 then
apparently will be call just ".Net 5"
 
Hey All, so our IT operations/Infrastructure team is trying to build our Old .NET Framework 4-based application on a Windows Server 2012 build server. According to this stackoverflow posting ( stackoverflow.com/a/2907056/6888123 ), we need to install Windows SDK
 
uh huh
 
but I can't find a windows SDK that will work for both .NET Framework 4 and Windows Server 2012
which is for Microsoft Windows SDK for Windows 7 and .NET Framework 4
 
4:13 PM
I found in my heterogenous server environment, .net framework 4.6 is the highest i can get away thatll run on all the old versions of windows server i have inc. 2008 - 2012
id have thought that would work, always thought 2012 was kinda equivalent to windows 8.1 from the UI
no idea if thats the case under the hood
honestly, if it doesnt like it it wont install it
is this on a dev or production server?
 
it's the build server. I'm actually indirectly guiding them. I can't touch the server myself because I'm on the development team. You know all the politics about developers touching UAT and prod and build servers. It's like a No No, bad practice stuff
 
@DAustin could you please recommend what I install. are you saying that I should tell them to install Microsoft Windows SDK for Windows 7 and .NET Framework 4
 
The politics of the developers touching the build servers at my last job was i'm doing it because i'll actually do it right
 
4:18 PM
Also because dev environment = its the dev teams problem
 
honestly, because i dont have to deal with that, i ask me if i should sign of on it and I cant be arsed to do a ful lrisk assessment. I just double click it and see if the installer goes "NO YOU IDIOT THIS IS THE WRONG VERSION OF WINDOZE!"
being a 1 man IT guy does cut out a lot of red tape
 
Indeed
We had a fairly smallish department at my last place
 
the sdk installers are pretty good at doing pre install validation checks
 
2 support staff/domain admins & 4 developers
plus IT manager & IT Director
 
@CaptainSquirrel I crave for the day I can have a support guy/girl :(
 
4:21 PM
It does help to break up certain tasks
But i have a real problem abandoning a task if i'm on my way with it
 
mate, thats what's driving me to an early grave at this place
 
And also if there are tasks i want to do
 
absolutely, you gotta finish it, cant be beaten by a damn machine
 
At my last place, that was because i knew i'd do it correctly
and other people wouldn't
 
that too lol
 
4:22 PM
so many fucking shortcuts
 
i have a graphic designer thats it
and bless him he wants to learn web design
 
Gotta start somewhere
 
but after a year of trying to teach him, hes not engaging with it much at all
he's still making nesting mistakes etc
which isnt too bad, but we're using the Bootstrap UI
 
To be fair, I make mistakes with bootstrap too
 
so nesting is a big part of getting the responsive designs right
 
4:24 PM
i just add rows until it works
:D
 
lol
yeh ive been there, the fucking navbar component is the worst
i just make my own instead
but yeh, he's one oif those that ends up saying he understands just to get rid of me
 
yepyepyep
lmao
 
nice kid, good graphic designer
but i cant delegate much web work to him because i only have to go back and fix a bunch of it
hes got the email html on lockdown though, im glad he can do that
because i hate email clients and html lol
well, css specifically
 
can anyone help me writing unit test cases for a controller where i am using Ninject for DI and in the controller constructor i am initializing the Interface object. Any reference URL also would be helpful. I found some but those dint help with NUnit framwork
 
sorry im not good with unit testing either
 
4:28 PM
okay, np
 
someone else might be able to help
 
hopefully
 
Unit Tests, what are those
 
mine are conducted by the sales team, if i dont hear anything after i push an update, it passed the tests
 
4:31 PM
:D
 
mr5
4:42 PM
it seems like stress testing and unit testing in an API has little to no difference, no?
I've reached 2.7k from 2.6k for doing absolutely nothing in SO lol.
(these past months)
This can't be.
 
5:01 PM
Its time to try and farm Botler some rep
 
mr5
y da need to farm boi?
 
So it can talk in chat
 
mr5
oh da bot account
stalks and downvotes
 
@mr5 more and more people realising that iOS is shit
opened sauce is the best kind of sauce
because then you can eat it
 
mr5
b-b-b-but tey hv Xcode
 
5:14 PM
0
A: Binary serialization between .NET Core and .NET

Lee BotlerAlthough it's something you haven't specified, it looks like you're using the BinaryFormatter. This is a awkward formatter to use, becasue it can be very picky about what assemblies the types it uses comes from, which it looks like you've run in to. However, you should be able to specify how the ...

Oh wait I can lol too
 
mr5
-1 for not using var
 
O which one?
 
mr5
String foo = ...
 
Bing bong
 
There we go, speaking rights secured
Off to the sandbox!
 
5:19 PM
hahaa crap there have been 80 new cases in my county in the past 5 days alone...and this is considered a small amount for the rest of my country
Indiana did an actually decent job with the reopening by having it be staged rather than immediate, but it looks like we'll have to hold back more still
 
mr5
You mean in your state?
 
compared to the rest of the country, yea Indiana did a decent job
 
mr5
We're a bit advanced than your place then. We produce 600+ daily cases on average. Beat that.
 
haha no thx :D
what makes even less sense is that when I travel in my work town (which is a town of like 2k people), I'm like the only person wearing a mask who isn't also in the office
 
Is it good practice to access a database in middleware?
Wait for a response...
 
mr5
5:24 PM
@Freerey why are you calling Indiana as country though?
 
I'm not..
 
mr5
oh
 
uhh database access in middleware? idk if I've done that
well no, aren't a lot of database solutions classified as middleware?
 
helo bois
 
hi!
 
 
2 hours later…
7:24 PM
Yo!
 
7:35 PM
!Oy
 
!yev
 
8:01 PM
oh yeah @ntohl what's up, you were on my server's vc for like 2 seconds the other day? xD
 
8:54 PM
in Sandbox, 49 secs ago, by Lee Botler
Lee Botler: A bot for C# which probably won't work.
Written by CaptainObvious, based originally on Sandy, by SquirrelKiller.
@Squirrelkiller ITS ALIVE
 
Oh shit
Wait why is your branch called uh-oh
Also why do you still have a ProcessorBase and that line logging ever second? I removed those!
ProcessorBase is now obsolete
 
Yeah ignroe ti
fucking hell
I think I fucked that branch up
 
You need to get your branching strategy together
 
it's fine
I just updated master]
 
Also for some reason the top commit in your maste is "merge master"
That trigger phrase tho
👏👏 about
 
9:06 PM
Why'd you have to hardcode stuff
he's not running hold on
 
Like my user id? Didn't think I'd share it lol.
Also at this stage I wasn't planning on letting anyone else control it.
Priority commands I hardcoded, because they can do more than usual commands, so I can't just parse/replace/post them like normal commands
They may need to be stateful, like summon or votekick
 
yeah it's the user id
 
Watching Star Trek, I realized I prefer my admin id hard coded
 
@Squirrelkiller context required
 
9:12 PM
Often enough bridge crew gets locked out because 1) someone transfered control to engineering or 2) someone overwrote command codes
 
He should be in here
 
👏👏 about
 
Lee Botler: A bot for C# which probably won't work.
Written by CaptainObvious, based originally on Sandy, by SquirrelKiller.
 
Lol nice
 
BOTLER! TEST
 
9:12 PM
@CaptainObvious Testes. Heh.
 
Siiiiiick
 
Noice
bOtler! TEST
 
Adding commands is EZPZ
 
@Squirrelkiller Testes. Heh.
 
Oh case insensitive :D
 
9:13 PM
Just implement ICommand and then it's good
 
I want my commands to be in a firestore though
 
tf is firestore
 
gcp doc db
always free tier
real db
 
Although I intend to also have other ways to store commands
 
Also it lets me learn gcp stuff
 
9:15 PM
Just needed a way to actually start writing commands
 
Better encapsulate that properly then
ICommandRepository incoming
Time to sleep, wanna get up reasonably tomorrow morning. Bye o/
 
I mean I could always just save learned commands back to a json file
That's much easier
 
But then you gotta do the same as Cap/James
 
Alsol lol good plan
 
||backup
 
9:17 PM
@Squirrelkiller You are not authorized to administer this command
 
Well fuck you too. Backup is a good thing!
Ok this time really, bye bye
 
👏👏 leave 7
 
@CaptainObvious Sorry, I don't know that one.
 
ohb
THANKS FOR IMPLEMENTING LEAVE
 
9:18 PM
👏👏 shutdown
 
@Squirrelkiller Sorry, I don't know that one.
 
'scusi?
 
breakpoint deployed
botler, shutdown#
 
@CaptainObvious Sorry, I don't know that one.
 
9:19 PM
Well obviouslyt that won't work
 
wtf did you jsut push into your master
 
botler, shutdown
 
looks good
shutdown should just Env.Exit
 
Bye
 
wait what
 
9:20 PM
Aha!
 
WHY DID IT WORK THAT TIME
I fiddled with the trigger remover so your old commands should all work
But it will lookm for ICommand implementatinos before Priority commands
Then will look for the other ones
but they should all work regardless of what trigger I use
👏👏 shutdown
oh right yeah
 
Gotta join first
👏👏 about
Oh dabm
I think the trigger remover isn't worrking proper
 
Good luck
 
There we go
I blame unicode
👏👏 about
 
9:25 PM
Lee Botler: A bot for C# which probably won't work.
Written by CaptainObvious, based originally on Sandy, by SquirrelKiller.
 
👏👏 shutdown
 
Bye
 
10:17 PM
I have a list containing fuzzy matched strings with respective score(int) for a given input string. From the result, i want to order by the score and get the top result with and without 'mandatory key'
List<Tuple<string,int>> topMatches;
// "Regular pay current", 80
// "Reg pay Current", 70
// "Net Earnings Current", 69

Mandatory key "Net"
from top matches i want to select Net Earnings Current as the best match if the mandatory key is net. if mandatory key is empty, id go with Regular pay current
 
 
1 hour later…
11:33 PM
it's not really a mandatory key if you can not have one
but anyways
IEnumerable<Tuple<string, int>> matches = topMatches;
if (!string.IsNullOrEmpty(mandatoryKey))
    topMatches = topMatches.Where(x => x.Contains(mandatoryKey)); // maybe make this a case insensitive compare?
return topMatches.Max(x => x.Item2)
 

« first day (3545 days earlier)      last day (1407 days later) »