« first day (2162 days earlier)      last day (1987 days later) » 

7:31 AM
@Alex @BradleyDotNET @Zarenor It wasn't my intention to beg for votes, but you guys have helped me out here thank you very much!
And I got another 10 on a restarting process that seemed to have helped someone out
 
8:29 AM
Hi Mav
 
 
2 hours later…
10:43 AM
Hey MwBakker
sorry i'm much less attentive here since i've started new job.. multiple new channels to track simultaneously so i lag a lot on responses
 
good afternoon all
@maverik are you saying we can now ping you?
 
i still have the headphones but yea you can always ping me if you explicitly need to drag me in
but i'm actively losing touch at the moment with xaml :(
24/7 asp.net >.<
 
you poor lad!
 
right now i'm in clean up / optimisation mode of existing codebase
 
10:51 AM
well, I needed you, so I could day Hi :)
 
hehe well hi 👋🙂
 
Hi all
 
hey alex
 
Hey Jeffrey
 
11:39 AM
Never worked with asp.net, it is purely for web dev right?
 
hello
 
Bakker, yes, ASP.NET is for web apps
Hi Proxy
 
I never really gotten why ppl would use aps.net over e.g. something amazing like PHP :) (sarcasm partly off)
 
"""amazing""" in sarcasm quotes
 
Or Vue
 
11:43 AM
you got it.
true, vue is great, using it as well :) (Laravel) PHP + Vue = (L)
 
You need to escape those quotes before using them :)
Did PHP/Java/LAMP stack for a while.
 
Java shivers
 
Boss was an open source fanatic. Even our email service had to be non-MS. Something called Zimbra
 
open source fanatic or cheap$$s?
 
Both
 
11:47 AM
@Jeffrey Currently working on an Android project haha
 
when can I dl?
 
if (isFanatic && isCheap) { MyOldBoss = true; }
 
I once tried to install all the stuff you need to make an android app.... After my hdd was full 10 times over, I gave up...
 
@Jeffrey Always, always custom install
I didn't need 10 emulators
 
tell that to a newby
 
11:49 AM
Entire Android SDK should take about 2.5GB, otherwise you may have unrelated extra's
Same with Visual Studio, otherwise my small 250GB SSD gets full too quick
 
that reminds me, have the memory chips been reduced in price yet?
 
never use an if to do a boolean set - do MyOldBoss = isFanatic && isCheap <-- reads much better even!
 
not equivalent though, if the previous value of MyOldBoss was true :P
 
to answer my own question: top-RAM DDR4 (8.75ns true latency) has become a bit more expensive (looking at 64GB), but ram in general has been lowering in price.
And M.2 has wel.... a dramatic price lowering :| (500GB was 230€ 12months ago, 149€ now)
 
the check is missing then.. it should be revised to MyOldBoss || isCheap && isFanatic
 
12:01 PM
^ that simplifies it!
Was tempted to write it like this initially: MyOldBoss = isFanatic && isCheap
 
my boolean precedence is rusty.. might need parenthesis
 
But wanted it to be a little bit more verbose
 
your thing is correct maverik
it will skip the rest of the tests if MyOldBoss is true, and only enter the rest if false.
 
You'd want it to skip because MyOldBoss was already both of those things :)
 
yeah, use a const...
 
12:05 PM
But I've gotta focus on the good qualities of the person.
That boss had a nice smile.
 
bossPoints +1 - your net balance now is int.MinValue +1
if you need more positivity.. focus on the fact it's an int and not a long
 
Hah!
 
12:16 PM
good morning :)
 
hey Lynn
 
12:37 PM
does anyone have an animation of a battery charging?
in xaml... <Path...
 
I don't, but path data isn't that hard to write once you understand it. I wish I'd bookmarked the page with the syntax. I think it's really neat and slick.
 
hiya Jeffrey
 
Hum, apparently if you bind to a property in the second half of a partial class it won't actually find it.. it does if you put it in the first half
Huh
Odd behavior
 
12:53 PM
... What could you possibly mean by that? If you have two partial class declarations in the same namespace and compilation unit, then they exist as a single class in the compiled program. Bindings will behave identically. Any difference in behavior is from a difference in the implementation. Different types? Mismatched types?
No change notification?
 
Yeah that's why I said it was weird. I don't that is actually it but I haven't found the real reason yet. Have tried most of tips already.
It sure does make it seem like what I said earlier
 
Hm. You could gist it, and we can see if we spot anything? It definitely isn't intended behavior
 
It has something to with a small auto generator I wrote for the IocContainer, it worked before that. I'll debug everything for a bit longer before I post anything. They're really tight about posting even the smallest bit of code around here.
 
1:11 PM
They're really tight about posting even the smallest bit of code around here. me too, use a secret gist and delete it afterwards :)
 
^ sneaky
:P
 
1:36 PM
Got it working. I had a duplicate of the viewmodel which took care of switching the mainwindow's viewmodels. Actually had tried so many things that I was starting to think so out of the box that I thought it had something to with my partial Locator class.
Sometimes you get these moments where your brain just isn't properly functioning anymore.
 
what is better: ViewPort, or Path with stretch="uniform"

as in: WHY!? are there two options?
 
1:52 PM
@Lloyd Yeah, that happens to me all the time.
 
let me rephrase: is there a disadvantagt to using viewport?
 
2:04 PM
Never used ViewPort...
 
^
 
Looks like ViewPort and path do very different things
unless I'm really reading the docs wrong
 
2:18 PM
path in a viewport, of path with stretch.uniform
 
still lost... I'm guessing you aren't going to get much of a definitive answer here
Reed might know, but he's been busy lately
 
Need some guidance on this async db call: gist.github.com/arc95/7fe76d5670b68c1b7c9c5971e2403ae4
 
Err... you know EF has ToListAsync() right?
 
Is that the right way to do an async call for data? The part that's tricky is switching from Linq to Entities to Linq to Objects
Yup, but can't use it with that ToAgentViewModel() extension method
You have to switch context before you can call that extension method
But looking for a more efficient/best practices way to do it
 
Usually I'll just explicitly ToList at the last moment in the query before it needs LINQ to Objects, then proceed from that
your approach looks really funny; and I'm not exactly sure when it pulls from the DB
 
2:27 PM
The caller expect it to be async so that return statement looks weird to me
 
If it helps, I think it looks right. There's something a little wonky with EFs async operations that (IIRC) take waaaay longer than they should. I think I ended up doing something like you have gisted there
 
Yeah, Linq + EF = power + weirdness
 
What is it that ToAgentsViewModel does that you can't use EFs async method though? Because if it's the Entities-to-Objects changeover, you may want to defer that - it could end up being a pretty ugly expression. I think it will hit the DB prior to the first of those calls, and depending on if it's smart or not, it may pessimize it to a DB call per entity
Which would be really nasty (and unexpected)
 
The extension method maps the model fields to VM fields
It news up an AgentViewModel and initializes its props to the ones from the entity model
 
Yeah.. Okay. Could you order the models first by name, then do the conversion? That should make the SQL query from a simple return into a cursor return, and ordered. Then it's a C#-side foreach for sure. I think that might be more performant. I'm not sure about the .AsEnumerable - that might also be forcing the DB op to execute
Which would make is faster than fetching them one at a time from the database, but less fast than getting the whole agent list, ordered, at once.... Am I making any sense?
 
2:36 PM
The AsEnumerable switches context from entities to objects
 
Right. Which will cause the DB op to be executed. Or rather, will cause the DB op to be executed when the tree is evaluated, but before the ordering or VM materialization. I see. So it's (currently) ensuring that the Entities portion fetches the entire table before trying to materialize the VMs.
 
Yup. I've now moved the OrderBy further up so it's not after the materializing
 
 
2 hours later…
4:29 PM
WpfFarmer.GenerateTumbleweeds(5);
* * * * *
 
 
5 hours later…
9:22 PM
WpfFarmer.GenerateTumbleweeds(6);
* * * * * *
 

« first day (2162 days earlier)      last day (1987 days later) »