« first day (2704 days earlier)      last day (2469 days later) » 
04:00 - 15:0015:00 - 23:00

04:25
has anyone used the entity framework modelbuilder to created a shared table? I have two template types and want to store them in one table, with an enum to tell them apart
i cant seem to figure out how to write this
04:41
i dont think it is possible in the way i want
 
2 hours later…
06:15
Hi, has anyone has an idea on "Finite state automate"? FSA that accept C# identifiers, one or more letter, digits, underscore, dollar signs, not starting with a digit
Morning everyone! 0/
07:06
How does expression tree converted to native query,
I was thinking the magic happens in he side of Expression code,
But I don't understand how the parts of expression converted to SQL code,
also how the same expression code translated to native provider code, whether it's SQL, Oracle, etc
Why would you think the Expression code does the conversion?
An expression tree doesn't rely on any tech stack. Your SQL library does the conversion itself.
so it's converted on the provider's side?
I have a basic question to ask
It's converted by whatever library you're using yes. In this case the provider I guess.
a linq query about the ending.
I see a list = query.AsEnumerable.ToList();
Why AsEnumerable has been used?
why not directly query.ToList()?
07:11
is it doable to make my own provider's querying library for example, LINQ to Excel, linq to txt .. etc
I don't know the conditions of the provider so I said txt!
@Breathing Does the query have ToList?
@MohamedElshawaf Yes
so if the conversion been made on the side of the provider how is it done for txt for example?
Just a basic example of getting an expression. Instead of printing it, you can look at it and find out what it does.
07:27
but this () => True still not as SELECT * FROM Table (the format and the language)
@MohamedElshawaf Obviously someone wrote LINQ to SQL, LINQ to AD, etc, so obviously it's doable. It's a matter of writing code (a lot of code) that receives Expressions, reads them, and constructs queries in whatever language you need from them.
@AvnerShahar-Kashtan is there a thing on the side of C# that converts Expressions to queries (the raw native queries, SELECT * FROM Tb for example) ?
Yes. It's called C# code. That you write.
@MohamedElshawaf He just told you. Literally one message above your question.
07:34
Someone sat and wrote Entity Framework and its SQL Provider. That's the C# library that does it.
Goood morning sharperinos!
I wrote an IQueryable method In but all it does is using Contains method, but rather I wanted to write the raw SQL IN.
Well, someone has to write the raw SQL.
07:39
Wanna get back to my question from friday: What makes my SSMS output a .rpt file instead of just showing me a table?
Any other query simply shows me a table.
@Squirrelkiller There's a button that controls it, IIRC.
My query has zero results - not garbage results, but actually 0 results.
@Avner the "Results to grid" button? That's enabled by default
I've started using SQL Operations Studio instead. It's still obviously beta, but it has potential.
They need to work on startup speed.
Are they trying to replace ssms?
07:53
It's cross platform
Maybe it's like VS Code?
Yeah. It's cross-platform, based on VSCode's shell, like other new admin tools.
Light-weight alternative
>Q: Will this tool replace SSMS?
>A: It is not in our roadmap.
Not a definitive no
SSMS isn't exactly like VS. VSCode isn't a replacement to VS for most (non-Web developer) users. But the features OperationsStudio have will be more than enough for 90% of the uses of SSMS.
git integration but no TFS? Microsoft is truly letting down its own tools.
I think the default source control system for new VSTS projects is git these days.
Which is fine, I guess. If you can set VS's default commit-and-push, you can work with git exactly like you would with TFS.
07:59
Oh nice, didn't know they had that :)
I'm not sure they do, hence "if".
And git purists would rant and rave over it.
I feel like ditching tools have become pretty common. Can't count the number of things Google have tried and then slowly just let die. Same goes for Microsoft. I think companies are quicker to let a tool go if it isn't immediately successful.
Yup ^^
@WilliamMariager Not necessarily a bad thing. If a tool you've written isn't as good as a publicly available one, there's no point in hanging on to it just for NIH's sake, especially if it's not your core business.
There was an a question on SO a while back... where was it... just a sec...
11
A: Why do Microsoft's libraries depend on Newtonsoft.Json?

Avner Shahar-KashtanThe most direct quote I've found is part of Scott Guthrie's announcement of the MVC 4 roadmap, back in 2012, (apparently offline but available via the Wayback Machine) which contains the following quote: Json.NET: We plan to use the community developed Json.NET serialization stack in our defa...

Microsoft has been relying more and more on Newtonsoft JSON.NET, despite having their own JSON lib, in JavaScriptSerializer. Why? Because it's better. Much better. Better performance, better features and more familiar to devs.
So they made a conscious choice to de-emphasize the in-house tool. embrace the 3rd party tool, hopefully contribute to it (with bug reports, at the very least, maybe suggested bug fixes or (I hope) financial contributions to James Newton-King who keeps the JSON flowing.
They're making a lot of good decisions lately with the whole C# universe. Open sourcing large parts of it, embracing community suggestions more and things like this where they use 3rd party libraries.
mr5
mr5
08:16
o/
TIL: Canceled is a valid form of Cancelled
Isn't it just British vs American?
Analyse vs Analyze, Colour vs Color, etc.
mr5
mr5
Yes. I thought the word Canceled is misspelled until I go to MS docs
good morning
@WilliamMariager yes
my question is what is the reason for putting .AsEnumerable()
Then I doubt you need AsEnumerable.
Unless AsEnumerable is an optimization.
To avoid some additional work.
08:35
msdn has grammar now too?
Yes
You can even take a grammar class: msdn.microsoft.com/en-us/library/…
!!rimshot
@WilliamMariager So unless I don't want to use the extensionmethods there is no need?
@CapricaSix which cartoon/movie is this?
GoOoOoOoOoOoOoOoOoOoOoOd Mornin' neglecterinos squirrelerinos pleberinos!
mr5
mr5
@WilliamMariager ba dum tss
!!badumtss
08:42
@mr5 That didn't make much sense. Use the !!/help command to learn more.
It's !!rimshot :P
mr5
mr5
no! it's ba dum tss
mr5
mr5
Cap is misinformed
08:43
I can confirm, ba dum tss is the right wording
mr5
mr5
!!thankyou
@mr5 That didn't make much sense. Use the !!/help command to learn more.
mr5
mr5
wth. cap doesn't know how to be grateful
!!doyouevenknowanything
@WilliamMariager That didn't make much sense. Use the !!/help command to learn more.
mr5
mr5
08:45
!!fakenews
@mr5 That didn't make much sense. Use the !!/help command to learn more.
!!thismakessense
@WilliamMariager That didn't make much sense. Use the !!/help command to learn more.
@Squirrelintraining That didn't make much sense. Use the !!/help command to learn more.
08:50
!!/help
@SebastianHofmann Information on interacting with me can be found at this page
Seems like it'd make sense to just send that link rather than telling people to use !!/help ...
!!sandbox
mr5
mr5
!True
08:53
@ntohl Please go and play in the Sandbox
mr5
mr5
!!tell Cap use sandbox
@mr5 Command use does not exist. (note that /tell works on commands, it's not an echo.)
09:10
Damn this office ... Cake in the morning ...
Last week, I've mentioned that I was getting emails from our hot brazillian Branch.
Emails that wern't for me
Hot Brazilian branch? :P
Ye squirrel killer said so
So anyways, i got an answer today:
Dear Squirrel in Training,
I´m ashamed with this, I will check the email address.
Sorry again.
Thank you and enjoy your day =)
I feel like I've scolded a puppy :<
Just keep in mind they're in Brazil. They're not dealing with snow. They deserved to be scolded a bit.
mr5
mr5
09:22
are you always in good mood when in snow?
!!youtube let it snow
mr5
mr5
I haven't experienced snow yet :(
!!echo mr5 let is snow
mr5 let is snow
mr5
mr5
!!echo @Squirrelintraining can't hold back anymore
09:29
@Squirrelintraining can't hold back anymore
!!echo mr5 dont doubleping, pleb!
@mr5 dont doublepin, pleb!
@mr5 ups, I ment double ping ♥
09:47
allergens.TryGetValue("AE", out var aae);
allergens.TryGetValue("AF", out var aaf);
allergens.TryGetValue("AM", out var aam);
allergens.TryGetValue("AN", out var aan);
allergens.TryGetValue("AP", out var aap);
allergens.TryGetValue("AS", out var aas);
allergens.TryGetValue("AU", out var aau);
allergens.TryGetValue("AY", out var aay);
allergens.TryGetValue("AW", out var aaw);
allergens.TryGetValue("BC", out var abc);
allergens.TryGetValue("BM", out var abm);
allergens.TryGetValue("NL", out var anl);
Such nice code. No way to get even remotely confused.
I mean, one look and you just know AE must be egg and AY must be soy.
Just like our field:

"JK_OA_GK_NKLMainLegPort"
Are you serious ... ?
AE = Anwendungsentwicklung (Programming)
@WilliamMariager ye
09:50
Abreviations, snake case and pascal case all in one variable. :D
@WilliamMariager Nah, it's the name of a collum
Let's assume there is a Table `Customers`
It's primary key would be `CT_PK`
There is also the Table `Addresses` with `AD_PK` it's Primary key.

Now the `Adress` Collumn of the `Customers` would be called `CK_AD_FullAdress`.

You get what i am trying to say ^^
mr5
mr5
@Squirrelintraining I'm not double pinging, pleb
@mr5 Take it out with cap
10:16
@Squirrelintraining did they address You as "Squirrel in Training"
I sure hope it's in your official signature!
good morning :)
@ntohl Obviously, copy pasta is copy pasta
Is there a way with AutoMapper to remove a mapping you created earlier? Sounds odd, I know, but that's the best solution for now.
@ErwinOkken then enlighten us, in what case do you need this?
10:32
@SebastianL To avoid a ***-load of logic. I'm creating several mappers and based on 1 condition I want to change 1 little part. Otherwise I get a lot of code to be involved. Now I can just create a new method, execute the existing behavior, remove a mapping, add a new mapping for it (so, replace it) and I'm done.
So you have a fully configured Mapper and you want to change just a single Mapping, which was earlier created using CreateMap<?,?>.
im not that fluent with automapper, but i'd traverse the expression map and replace it manually if its just a single value
do you use profiles?
No I'm not using profiles. Do you know that feeling that 1 technical problem is because there are a bunch of other design related problems? Maybe things are just not set up the way it should've been :D
I already fixed it in the meantime (with an ugly boolean argument) but want to share the case anyway.
give it a condition
ahoy land lubbers
We have matches (1 versus 1 game matches) that have a challenger and someone who is being challenged. When mapping, we translate this to me/opponent. This is where it get's challenging (ha-ha). When the same logged in user checks his or her match in the context of a tournament, the me/opponent logic is gone.
10:46
This fucking monitor ... it turns off while I'm using it to save power ...
@WilliamMariager smort
Seems logic to me
FilmID	Title	ReleaseDate	DirectorID	StudioID	Review
1	Jurassic Park	1993-06-11 00:00:00.000	4	41	People clone dinosaurs. Dinosaurs promptly eat people. Hilarity ensues! Wait, not hiliarity, the other one, horror! Yes, that's it, horror.
 
1 hour later…
12:06
Using AutoMapper, If you create an "empty" mapping, it will map every property that has the same name and type. So, simple logic. If you create your own mapper, how can you access that kind of logic? I do not want to specify

obj.x = obj2.x;

for like 50 properties.
Use Reflection
....or AutoMapper
dynamic!
12:23
If you're using either of those things you're advanced enough to know dynamic is better for everything
expanding_brain_meme.jpg
#define dynamic var
2
If I'm mapping from X to Z, and then call AutoMapper to map from X to Z, we all know what happens. So In my custom mapping from X to Z I want to call some AutoMapper code that does it for me
I can do it manually with Reflection, but I don't think it's the best idea to do it myself. And I also don't think that I'm the first one out there. Even though Googling doesn't give me answers yet
So what is the purpose of your custom mapper and if you're creating empty maps anyway what's the issue?
or or or or
If you're abstracting it away thanks to your custom mapper, what's the downside to having a list of all props (to create the map) once?
My question is if I can access that AutoMapper features, not how to create it myself or what the downsides are.
12:30
I'm out
I don't even know what you're saying
what does strongly types means?
with respect to Linq?
"Both the range variable and the data source are strongly typed."
int[] numbers = { 5, 4, 1, 3, 9, 8, 6, 7, 2, 0 };
var lowNums = from num in numbers
How num is strongly types here?
How is it not?
Type inference != weak typing
12:45
oh
@Squirrelkiller Is that your new amen?
So...nameof again. How can I nameof(thisClass.InnerClass.field.fieldOfField ?
@RudiVisser there's a mod for gtav im working on that requires you to use dynamic because it doesn't support actual types
@Squirrel I think it is, unless I'm working with you :P
Hi, has anyone already used the new asp.net core 2.1 preview bits?
12:50
nameof lets me get the name of the field of the inner class, but it won't let me get the field inside that field.
@Squirrelkiller Regex.Replace( nameof(thisClass.InnerClass.field.fieldOfField), @".+\.", "");
Out of my head but not sure if right
Actually i am just typing in C# code cuz it feels good
Console.Writeline("You're right there bud");
CALM DOWN WITH THE SQUIRRELS
GOD DAMNIT
Titties giggle
@WilliamMariager does our presence enrage you?
12:54
NO THIS IS JUST HOW I TYPE
HOW HAVE YOUR DAY BEEN?
MAY DAY HAVE BEEN GOOD
ATE LOTS OF ACORN
MAY DAY!? ARE YOU IN DANGER
2
"Fun fact, I saw a squirrel infront of my sons Kindergarden today".ToUpper();
Actually I have to correct myself:
It's actually nameof(InnerClass.InnerClassOfInnerClass.fieldOfThatClass.fieldOfThatField)
12:58
fieldOfThatClass.fieldOfThatField error
I still get [...].fieldOfThatClass, but after that it tells me I can't access non-static content from a static context
I need som (VB) Help.

Any1 up for suicide?
nope. Nope. Just nope
Actually i am not sure if it is VB anymore
Microsoft claims it is but i don't believe them
VB. Sure. Been a while. Shoot.
13:00
Doesn't it compile to IL?
@WilliamMariager VB.NET does, but I think he's talking about a VB-like language in a different context, right?
It's from the SSRS Expression Box
VBA in Office was the first thing I ever did any programming in.
Automating tasks at a company. Cut my workday down by like 40%.
I am highly confused
13:01
@WilliamMariager Likewise. We automated migration of 5000 users from Novell Netware to Windows NT 4.0/Exchange with huge excel sheets and VBA code.
what is wrong in this
where names[0] == 'M'
?
@Breathing It should be 'N'.
is names a string or char[] ?
string
Have you not learned not to ask questions without saying WHAT THE ACTUAL PROBLEM is?
13:02
Should be === to do a proper compare
damn, I hate stings
Do you get an error? An exception? A compile error?
Did you catch on fire?
Did it start raining?
Were dogs hurt? Please tell me no dogs were hurt.
operator '==' cannot be applied to string and char
it says
13:02
Did your colleague start sobbing uncontrollably?
There you go.
If it did start to rain, don't touch anything and share how you did it.
I already knew
Then it's not a string.
13:03
I mean like, what language is dis?
Dude. names is a string[].
it is a list
List of strings
No string[], no string[]! You're a string[]! No you're the string[]!
so names[0] is which type?
13:04
obviously it's not, it 's a string, which is a collection of chars.
see this
You're doing names[0] not name[0] ...
names is a List<string>. name is a single string inside it.
Don't be drunk.
Oh, that should work.
No, he's right here.
13:05
see
He's comparing to a char.
sometimes miracles happens
There's one miracle I'd love to see ...
ice cream truck in winter?
Breathing looking at his code ...
13:05
Is this the actual code?
i got it
@Squirrelintraining, Getting links working is like inserting a usb cable. You never get it right in the first try.
@WilliamMariager did you just correct sub to usb cable?
type inference still means being strongly types>
*d?
13:07
@CaptainSquirrel This makes me very happy
Yes, it does.
Taking over the world
var i = 3 is definitely absolutely an int
it says var in the .cs, but it's still gonna compile to int
@Squirrelintraining Nah. I added "usb"
@Squirrelintraining OrElse and AndAlso were constructs added by VB.NET.
13:08
@Squirrelkiller no
@RudiVisser it makes me sad
44 mins ago, by Squirrelkiller
#define dynamic var
// isn't VB comment syntax last time I checked, but that may have changed.
^
@CaptainSquirrel Don't be sad
Just embrace
Enjoy the perf gains
and security gains I think were found recently also
@AvnerShahar-Kashtan what is the comment syntax?^^ I thought is was the same in .NET
13:09
#gainz
true and false should be True and False, but since VB isn't case sensitive, it doesn't really matter.
@Squirrelintraining '
It's a language thing, not a runtime thing.
@RudiVisser this doesn't even work
dynamic dynamicObject = GetDynamicObject();
TypeObject theObject = (TypeObject)dynamicObject;
darn, now I'ts a comment.

is "Dim i as int" right?
that made me the most sad
Why would you do that, dynamic all the way
13:10
You are pretty Dim @Squirrelintraining
@Squirrelintraining Yeah, IIRC.
Maybe " as Integer".
@RudiVisser maybe i just like intellisense
Code in Notepad
DynamicPad
...you monster
@WilliamMariager Flagged :P
13:10
LINQPad supports VB, I think.
Calm down Rudy
We don't want all that dinamic in here.
FFOTD - PuttyGen is not fully DPI aware
13:11
Give it your best. Nothing I haven't heard before. :P
@AvnerShahar-Kashtan Well it appears one cant do this:
=
dim i as integer;
Switch(
	true and false, "Red",
	true, "Transparent"
	'//a comment?! - obviously not

)
Use underscores for line breaks.
(I am just fkn around witht he expression box in SSRS to find out what hackery i can do)
> To break a single statement into multiple lines. Use the line-continuation character, which is an underscore ( _ ), at the point at which you want the line to break.
Ô.O
Now the red squiggly error signs have vanished
Kek
"The BackgroundColor [..] '_dim' is nto declared. It may be [...] due to it's protection level."
13:14
Ooh, that looks like an artifact of the backing compiler that really shouldn't be exposed to the user.
I didn't understand one word you just said there and i am proud of it!
> it's protection
> it's
Who the fuck wrote this warning message?
Me, i automatically added the '
- It's a squirrels life.
> squirrels
I guess @WilliamMariager was right after all and I can't be mad about that.
13:17
dear god man
Let's jus't start puttin' a'p'o's't'r'p'h'e's ever'where
Those stars next to each other is perfect ...
Avnim, any idea how i can do strh like:
=
{
   'happy coding
   return value;
}
I need to take a break from this chat because I'm pretty sure I'm having a stroke.
^^
Lol it breaks if i have a comment in the switch clause :D
Enuff breaking the property box for today cya guys tomorrow.
WtH i just got a "memory curropt" - wasn't me ^^
curropt?
That's typoing on a whole other level
13:26
hot damn
memory so curropt its spelling corrupt wrong
Does anyone know if execution is faster by creating one MemoryStream and using MemoryStream.Write in a loop vs creating a new MemoryStream each time in a loop? I would think that garbage collection would happen more often creating a new memory stream each time, but I am not sure if MemoryStream.Write would also cause that?
Benchmark it.
!!learn faster <>https://ericlippert.com/2012/12/17/performance-rant/
@MikeTheLiar Command faster learned
@KendallFrey, you'll be glad to know I'm using Haskelly in VS Code
Don't make FendallKrey glad ...
I'm on the path of Haskell and Clojure
Haskell - Statically typed, lazy, pure functional programming language for use of le things.
!!tell nathvi haskell
13:50
lol
I miss Wadry. I wonder what he's up to.
I bet he made a thing that makes all other things irrelevant and is now retired on the Caribbeans.
wadry pls
@Nathvi nooice
13:53
Have you used it?
👰
@Nathvi not vscode for haskell yet
How do you write Haskell?
In severe pain
In Haskell, you don't have to associate functions with data as in c#?
You can just have free floating functions?
14:10
@Nathvi just like F#, Scala, etc.
@KendallFrey, how often do you use Haskell? At work?
Literally never
and I haven't written more than 2 lines of Haskell for months
I haven't written more than 2 lines of Haskell for years.
14:21
REST IN PEPPERONIS @007 YOU WERE THE ONE TRUE WHISTLEBROER
2
@InspectorSquirrel bye sisppy
You have not the idea.
May he rest pizzafully on the pizza in the sky.
Unless he was actually an impostor
In which case he's going to the wood burner oven.
Something something border radius.
someone mentioned border radius?
14:27
Who needs some border-radius in their pure html?
I'll java your script bb
why am i in here again
I'll Java my Script right into your markup
@InspectorSquirrel mourning
14:57
Why the hell is there another squirrel
04:00 - 15:0015:00 - 23:00

« first day (2704 days earlier)      last day (2469 days later) »