« first day (1593 days earlier)      last day (2556 days later) » 

7:23 AM
morning
 
 
2 hours later…
9:35 AM
Morning
 
10:09 AM
Do you think electron CSS based GUIs will be more relevant than WPF and platform specific guis? If not, why not? What are the big disadvantages with electron based GUIs?
 
Electron pretty much means shipping the entire Chromium runtime
Means your app now takes 600MB of RAM or so
My experience with Electron apps are: Atom, VS Code, and Discord
The two first are text editors, and they have an annoying latency between pressing a key on a keyboard and a character getting displayed on the screen
Desktop Discord is pretty much the same as its web equivalent
But has some advantages because it can provide desktop notifications, can use global shortcut keys, and so on
It integrates more nicely with the OS, but it still feels foreign wrt other applications
So I guess you'd choose Electron if a.) you already have a web app b.) you want to enrich it slightly with some "rich client features" c.) desktop experience is not your main focus d.) you don't mind the runtime penalty
 
G K
10:27 AM
Hello all,
I wanted to get the selecteditem of a treeview item in my viewmodel. I have seen that there are two approaches 1. Using attached behavior and 2. Blend behaviors.
https://blog.jayway.com/2013/03/20/behaviors-in-wpf-introduction/

How far this is good to have to be implemenetd when comared with other approach if the treeview item has lot of child nodes and so on to exactly get the selected node using a for or foreach loop.

Also some distration from the above link how can I get the selecteditem to my viewmodel as each selecteditem is of different object (in my case)?
 
60
Q: How to force a WPF binding to refresh?

TecheeI have got a combo box with items source attached using simple binding. Is there any way to refresh this binding once combo box is loaded?

 
11:28 AM
@milleniumbug Would you choose a different cross-platform GUI solution? There's QT but the advantage of having HTML+CSS+JS for GUI implementation seems to me to big to dismiss. (Sorry if this is off-topic, don't know where else to talk about this)
 
> advantage of having HTML+CSS+JS
that's... not an advantage
if you choose HTML+CSS+JS because of X, then X may be an advantage
X could be "I know it better", "I know programmers who can write it", "I already have a codebase in it" or even "It's popular these days"
but "it's HTML+CSS+JS" is not, sorry
 
11:59 AM
(this is important because the reason you consider it an advantage hints at your requirements)
 
12:45 PM
It always amazes me how people will latch to certain technologies but not others. Like how Silverlight didn't get any traction but Electron does.
I know MS did some bad things with Silverlight, and that it's a different technology, but still.
And this isn't just isolated to software. Like Facebook. There were hundreds of social platforms before it, but Facebook was the one that either did something right or was lucky.
Probably a combination of both. I don't recall it offering anything special at the time.
 
Requirements should drive a project not the tech
Morning all
 
'morning Alex
Fastnachts!
 
Hi Lynn
 
1:05 PM
Please tell me that you're partaking in Fastnacht goodness this morning...
 
If I even smell it, I'll gain 10 pounds ;)
 
laff
Oh February, you bastard. First CloudFlare HTTPS leaks and SHAttered ... now you've taken Judge Wapner.
 
Thank god for backups. I just ran an automated script that deleted a bunch of information of a clients. :P
 
1:32 PM
Speaking of backups, what kind of solutions do you use for keeping backups of your code?
 
Personal code is simple - store it on GitHub or Bitbucket
 
VSO with Git for us
Had used TFS for one project, but Git is superior
Though those solutions are great, we still make a backup of the project to the network, just in case
 
1:52 PM
In C#, is it possible to have a property that returns a generic List? Like List<T>, where T is a class
 
A fun website to start the day.. possibly mildly nsfw (there's an image of angry man with gun)
Credit to @SergioBasurco for the link from his blog :)
annoying formatting >.>
 
@Maverik Hey thanks!
Totally unexpected :D hope you liked the only post i've written so far
 
@Maverik @Sergio, My eyes are kinda bleeding the same color as the background. :P
 
2:08 PM
@WilliamMariager You mean from the link Maverik posted or my blog?
 
Yea Sergio it was a fun read.. first thing in my "morning" :)
 
Mornings are relative -- Albert Einstein, probably
 
@SergioBasurco This one.
 
I'd guess that's what he meant.. that website has a sense of shock to it :)
but i like it
lol William, i had intentionally left that word out :P
took extra formatting effort to avoid it :p
you may wanna edit it out cos open space office and all
thanks ;)
 
Psh, open office space ...
 
2:11 PM
Progmofo though has good programming resources i think
 
Is it possible to set up a style to only work either at run-time or design-time?
 
@Hypersapien sure add an IsDesignTime data binding
 
^ fyi, register wall [free]
 
MultiDataTrigger -> Condition (IsDesignTime) -> Condition( RealConditionHere) -> Trigger
 
2:15 PM
@LynnCrumbling Yeah, article requires registration
Annoying
 
thats usually reason enough for me to close any page
 
¯_(ツ)_/¯
 
if they need registration to offer knowledge - they're colllecting emails
 
Infoworld is a pretty decent site. Not sure why their "Insider" stuff is blocked like that
"Wanna learn? Let us harvest your email."
 
2:17 PM
i'm soooo sick of the click bait articles that it's now knee jerk reaction
 
Don't blame you. Most "Suggested posts" on Facebook are clickbait
"These celebrities are dead... #7 will shock you."
 
@Maverik I'm not entire sure where to put it
 
MultiDataTrigger would normally go in a style
 
"10 most annoying clickbait articles. Could #5 endanger your children?"
 
though if you have to do a lot of this MDT + IsDesignTime thing, you can probably use a different appraoch
perhaps d:DesignData might be what you're looking for
 
2:21 PM
@Hypersapien lol!
 
Actually, I want to turn the style OFF at design time.
Or completely hide it, or whatever
 
well you can do whatever you want :)
you can use style to change a childs style for example
that way you could have a dummy root container that swaps between child elements design / runtime style depending on whether it's in design mode or not
still.. this question is pretty broad with variable solutions so I can't concretely say this is the exact code to do it
also... javascript calls (me)
 
2:46 PM
Found exactly what I needed stackoverflow.com/a/39793997/487909
 
erm that is what i mentioned too :P
 
3:06 PM
Hmm went through the bleeding cloud article.. granted cloudflare have downplayed the incident a bit but at the same time "Cloudflare has been leaking PII for months" is just another goddamn clickbait.. the real leak was 4 days long and even then needed a very specific conditions to be met for the PII to leak and then get picked up by malicious user.. I think we're safe for now!
 
 
1 hour later…
4:20 PM
If I have a Window opened as a dialog, how can I set the DialogResult based on whether the 'X' window button was clicked or not?
 
i don't think WPF has a class named DialogResult
 
It's not a class, it's a property of Window
 
iirc there is, not much different from the win forms one
maybe it is named differently
 
well gonna be tough to sort this anyway.. I'd guess you can post an update to parent window via parent window's dispatcher
(usual disclaimer applies: this isn't how we normally do dialogs - wpf dialogs tend to be a mere illusion rather than a concrete window)
 
4:24 PM
even if the entire infrastructure was there.. we've established so far that dialogs don't play well in the mvvm world so we stay away from them :)
 
yeah avoid if possible, not nice ux
 
the sad thing is, i'm wrestling with a "dialog" implementation right now in html5 that's broken down now because spec changed
 
but for some things they are right like errors
if the error cannot be prevented from hapening
 
dunno.. i find the illusion based dialogs much better
 
transparent overlays?
 
4:26 PM
spawning a whole window for the sake of a message sounds really bad to me (these days)
yea but they don't have to be transparent
 
you could swap the whole view out if you really wanted to dialog
 
nice as it never ends up behind the app
 
yea thats super annoying
 
Dialogs were painful in WPF... though they were the Material Design variety. Just communicating with them and sending messages back and forth via MVVM is not easy
 
4:27 PM
especially when you don't even know that you're supposed to reach out to the dialog thats sitting behind you're app making your app look like it's hung
 
Well, the MD dialogs are almost like "DIV" elements in HTML. No new window, just show/hide some existing control
 
you can set the datacontext on the dialog before showing it
making communication easy, can share datacontext with the window if needed
 
The dialog is for a login window. It's launched directly from Application before there are any other controls visible.
 
4:59 PM
exactly the kinda thing you'd normally use view swapping for
DataContext = MainWindowViewModel.ActiveDataContext (is LoginViewModel) -> Window is operating in Login context and displays that stuff..

Successful login, MainWindowViewModel.ActiveDataContext is now AuthenticatedViewModel and your window is now in normal operation.. as a bonus all the login details are already known to your MainWindowViewModel and can be pulled if you needed it for something (though you should have cleared the password when you swapped the datacontext of course as good practice)
 
just catching up on this now. if you want to make a nice app, stay away from doing any dialogs with the stock system
i highly recommend the MD dialogs
but maveriks suggestion is also excellent
i think in general in WPF (for good design) you want to minimize window creations
 
Yea i'd normally suggest MaterialDesign / MahApps.Dialog too but they have a much bigger learning curve in Hypersapien's specific case so just offering what can be done best with stock stuff
 
Yeah, use MD "dialogs" -- they do a Lightbox effect on the app and show a view above current view. Multiple windows are ugly
Just my two cents :)
 
but all three approaches are essentially same at their core.. there's no window creation
they're all manipulating the view to pretend there's a dialog
 
I think when we're learning a tech, just getting things working is an accomplishment :D
 
5:12 PM
also i found out a few days back that your 2 cents are almost worth our 2 pennies! in the good ol days I used to just use half of cents/dollars to get a ballpark figure in pennies/pounds
of course, i'm counting on the great president to return us to good ol days soon!
 
Let me look at what the dollar is worth... goes off to a currency site
A pound is worth $1.24
Wasn't it worth $2 almost at some point?
 
mm.. so thats 0.75 in reverse
 
Yep
 
it was never exact 1:2 -- not to my knowledge.. but it was close
it was more like 1:1.5-1.65 in the recent times when I used to look up values
 
Yeah, it was higher in the past: macrotrends.net/2549/…
But never exactly 1:2
 
5:16 PM
wow.. i was so close in my approximation! 2009+ is where my approximations started as I started to invest more heavily in the online world
wonder what happened on June 30,2014.. i think that's the fateful day the world went in recession?
clearly we never recovered.. then brexit happened :)
so I'd say "in my living memory we're at the lowest" and that'd be accurate if you consider my relevant living memory to be 2009+ :)
I guess we're aiming to beat March 11, 1985 record!
 
That was almost 1:1
 
since we've beaten all the other dips known since Jan 1, 1971 :)
interesting, your graph actually marks recessions too.. and it doesn't mark June 30, 2014 to fall in such a time, though I'm pretty sure we had something of that sort in progress
the aftermath of euro-crisis i think?
 
The world has been in crises from time immemorial. Wish we'd have a time of peace and prosperity for all
 
5:32 PM
mm don't think that's ever going to happen
it'd break the yin/yang cycle and we'll just implode back into nothing :)
 
In that regard, I'm an optimist. Think we'll have peace. We can't go on like this. Just not sustainable.
 
i can agree on the not sustainable bit at least :)
 
 
2 hours later…
8:03 PM
WpfFarmer.GenerateTumbleweeds(9);
* * * * * * * * *
 
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 
Hah
 
la la la
 
It's a dust storm!
Run for cover
Tumbleweeds everywhere
 
laff. You guys get any tornadoes this weekend?
 
8:05 PM
Nope
Triangle, NC, not known for too many of those
 
Neither is PA! Especially in.... FEBRUARY!
Temps dropped from 72 -> 40
 
We're 80 here this afternoon
 
yeah... mid 60's here, 72 tomorrow
ridiculous
 
Hypersapien: the reason these guys use text tumbleweeds is because we move images out of the channel :) we actually have code to generate idle chatter code :D
codeception!
 
8:07 PM
then, snow friday night
 
84 tomorrow
 
bah... wtf.
 
29C for our Euro friends
 
One of my friends watched their 200 lb. gas grill fly past their living room window on saturday
 
Dang
AWS is down, according to some reports
 
8:10 PM
? AWS encompasses a massive amount of services, doesnt it
 
1 server responsive
 
my server still up
 
second server responsive
third responsive
That constitutes most of our enterprise
 
Might have been a hiccup
 
8:11 PM
is that why i can't see my profile pic or alex's?
lol
noticed that earlier
 
Yep, some of the images are missing here
 
Oh - that's all S3
Yeah, we use google cloud storage for our CDN
Looks like it's only US-East
All of our AWS is on US-West anyway
 
When we have bad weather it's like ... 10 inches of snow at worst. :P No earthquakes, no tornados, no nothing.
Yay Denmark
 
8:31 PM
<grin>
We have ticks :-/
 
And some carry Lyme Disease
 
8:42 PM
Yeah.. the deer ticks
Do you guys have fire ants down there?
 
Yup. Lots of them
 
bah
Yeah... they don't really like 10F.
They never made it this far north.
We keep having winters like this, though, and they will.
 
Can someone explain to me how to use Appsettings in WPF, or if Appsettings is obsolete, how to get something out of app.config?
 
ConfigurationManager
ConfigurationManager.AppSettings["keyname"]
 
Nope, Appsettings still used
Though you put your connection string elsewhere
 
8:52 PM
It doesn't like ConfigurationManager. I have "using System.Configuration;"
 
Did you add a ref to the assembly?
 
In Solution Explorer, expand References and look for System.Configuration. If not there, right click and add it
 
Yeah, I found it. Thanks
 
cool
FastnachtsMissing++;
 
Now you're making me want to get one of those
 
9:00 PM
I highly recommend it.
Why did I wear a long-sleeve shirt today?
A/C is on....
 
9:28 PM
Seriously, what kind of API is SFTP file transfers?!
 
SSH File Transfer Protocol
 
I upload a file, and then I wait an indeterminate duration, usually between 1-15 minutes, until a file is uploaded in response.
 
Dang. That doesn't sound right
 
Oh yeah, SFTP is fine, but using it as a web service ... ?
 
Prob wasn't designed for that
 
9:30 PM
No kidding. I can apply for a WCF api instead, but it has a whole boatload of requirements, so it's not realistic at the moment.
So for now I'm stuck with SFTP and then a CRON job to periodically check for responses. :P
 
Knee deep in Ajax.BeginForm MVC, with view models, lots of view models
 
I've been eyeing GraphQL, since I have the opportunity if I start using it now.
It's basically RESTful meets a JSON query language. So no need to make endpoints for everything, they'll just send the query and you'll respond with the exact information requested, saving bandwidth and API maintenance.
It's more work for the service consumers though.
 
There's no winning :)
 

« first day (1593 days earlier)      last day (2556 days later) »