« first day (1441 days earlier)      last day (2708 days later) » 
06:00 - 16:0016:00 - 00:00

6:14 AM
@AvnerShahar-Kashtan I think/hope the analyzer package works now
Was different kinds of broken for a while, at leas when installing it using nuget.exe
 
Yeah, I added a Watch to it on github and woke up this morning to 20 notifications. :)
 
ha
the project moved
 
Morning
 
7:13 AM
hey @Markus
long time no see
 
was it that long?
Arg!! I hate this new image!!!
 
we worried about you
you should really give us a call we you can't make it
:D
 
Sorry, thursday I was busy with a control board meeting, and I got sick so Friday I stayed home :)
 
why don't you upload a real image ?
 
like yours?
 
7:28 AM
yep but not necessarily a tiger
 
It has become something of a prestige issue... I've had this image from start, and...
well, while everyone else has changed their image, I still have my original...
I haven't changed my profile image on facebook since 2007
next year will be a 10-year anniversary, so maybe retake the image, but with the older worse me
 
don't you get better with time ?
like good wine
 
nono I only get worse
I had my prime...
 
how old are you ?
what age is the climax ?
 
the climax is 26 I'd say, I'm 35
or maybe 27
 
7:38 AM
I'm 33 and never felt any better :)
just to know that one day I'll ride a boosted board
 
hehe
nono, after 30 it's just like falling down
 
Hi guys. someone has already use Filepicker from windows phone?
 
hi Alain, sorry, not me
 
oh ok ^^
I tried to find of to get the path of the picture selected
 
7:44 AM
windows phone, doesn anyone still use those :P
 
Ugh, the new blue dot notification in Chrome is really annoying.
 
i know :(
but for a school project. I have to do a program in this phone xD
 
isn't hello world enough?
 
unfortunately. no :(
currently I have to find a Library to Scan a Barcode
I found Zxing library, but I think I can't scan a Barcode
 
Sorry, I can't help ya. Done no WP programming what so ever
these images...
I have changed now!
 
7:54 AM
hurray
 
doesn't seem to affect the chat though...
I guess you see the "golden shower" image?
 
mmh yep
 
I hate that one!
 
but you know I use reversed colors on my browser so it's a nice blue
 
reverse coloring!?
that's wild
 
7:58 AM
I hate black on white
kills my eyes
 
what browser?
 
chrome
"Invert page colors" add on
 
anyone know a great image editor (online) (more advanced than pixlr)
 
nope, didn't know pixlr
 
8:13 AM
at least on my answers I can see my new image stackoverflow.com/a/33038725/1140368
isn't it lovely?
so, @franssu, how did you fit the dress?
 
very nicely :)
 
@Markus Yeah, chat caches the images for a while more. It'll change soon.
 
I can only congratulate you then. I don't think my girls dress would fit me
 
I have photos but I don't think the world's ready for this
 
:D
did anyone get who you were?
 
8:26 AM
morning
 
ohhh oh oh.. now it got updated
do you see the awesome sweetness?
 
nice :)
morning Hamza
 
I will have to install Photoshop at home so I can improve it some, but for now it will be ok
 
I use paint.net but maybe it's too basic
 
yes yes, to basic.
in my youth I was a PS expert!
 
8:41 AM
Hmm. I'm trying to fork Snoop, to fix it so it won't inherit DevExpress's themes in the Snoop window.
(We use a black theme for our app which makes Snoop hard on the eyes).
Disabling the theme requires adding an attached property to the Snoop window.
This, of course, requires adding a reference to DevExpress.
I'm trying to think if there's a way to avoid that. Someone adding a dynamic/untyped property to the window that doesn't require referencing the DX assemblies, or alternately having an optional dependency.
 
9:06 AM
Well, now it won't even accept my attached property even if I do add a reference, strangely enough.
 
9:49 AM
morning
 
morning Foggy
 
10:03 AM
This is weird. I've cloned Snoop to my local VS and it behaves... oddly.
I open the code-behind for the SnoopUI window. It's just a window - XAML <Window>, etc. But it won't let me cast it to DependencyObject, claiming it's not part of the inheritane.
No, ok, that was just R# being wonky. But if I add this line, the class doesn't compile anymore:
DevExpress.Xpf.Core.ThemeManager.SetThemeName(this, "None");
The compiler no longer realizes that the class is a Window, can't find InitializeComponents, etc.
Remove the line - everything builds fine again.
 
did you try DevExpress.Xpf.Core.ApplicationThemeHelper.ApplicationThemeName = "None"
 
10:18 AM
Close: DevExpress.Xpf.Core.ThemeManager.ApplicationThemeName = "None";.
The same - it breaks the code, breaking the link between the XAML and the code.
Even if I expressly tell it that it inherits Window (which is redundant, since hte partial class does that automatically.
This is seriously screwed up. I undid all my changes, created a new class with my line of code, and I don't even call it - and it doesn't compile anymore.
Ok. Getting somewhere. The DX assembly is dependent on .NET 4.0, and Snoop is compiled on 3.5 Client Profile. Changing it to 4.0 exposes a deeper underlying problem - for some reason, it's trying to cast as string to a struct.
Did this work pre-4.0?
WINDOWPLACEMENT wp = (WINDOWPLACEMENT)Properties.Settings.Default.SnoopUIWindowPlacement;
Assuming SnoopUiWindowPlacement is a string, and WINDOWPLACEMENT is:
    [Serializable]
 	[StructLayout(LayoutKind.Sequential)]
	public struct WINDOWPLACEMENT
 
 
1 hour later…
11:54 AM
@AvnerShahar-Kashtan was still broken, garbbed ps1 from here but it was missing #
 
Hi all
 
hello
@JohanLarsson forgot about that :)
 
Yeah, there was an SO answer where they mention the same thing... background must be transparent for that to work
 
12:17 PM
*does not need to be transparent but cannot be null
 
So it must be set to something, rather than left completely off
 
yeah for hit testing to work
 
Reminds me of a bug in IE about 15 years ago. Unless the DIV had a background color, it wouldn't recognize the click
 
Some things may need IsHitTestVisible="True" also
 
12:43 PM
Ohh Johan :)
hello
 
2 messages moved to Trash can
 
Lets vote (use stars)
Oneboxes should be purged from transcript.
Oneboxes should remain in transcript.
 
they really irk Johan :)
 
12:58 PM
:)
 
do you want all oneboxes to be purged?
because thats not whats happening right now
and I've already complied with your previous request to not remove code related onebox
 
I want them to remain, they don't do any harm
And sometimes I want to search for things
 
do you need the youtube clips for it?
music clips on top of that?
 
not my decision, lets do democracy and see if someone votes
if no votes then it is up to you of course
 
democracy is easy to start but really hard to control
the votes you've raised right now - they're wrong
you may not have intended it - but you've just asked to vote all oneboxes out
and thats the root of evil when it comes to democracy - if you don't think things through (and most people do not) - the place will get crippled eventually
once you let this voting genie out of the bottle - there's no putting it back in
 
1:01 PM
Silly question... what's a Onebox?
 
and if my prediction comes true - will you take responsibility for messing a perfectly healthy room because you raised a vote?
 
I vote we freeze the room
 
Onebox is auto expansion of links
 
Just kidding :)
Oh
 
right now i remove non-code related gifs & youtubeclips
Johan wants them to stay in so he can later search for them
 
1:03 PM
There's just too much civility here. That requires an admin to freeze it. Civility has no place on the interwebs
Wish there was another sidebar for fun items to be starred
 
we've lasted as long as we have because we don't use pure voting to decide on things - for most part its left to owners to do things but eventually I take action if i feel it'll hurt us in long run
but what is the point of it
 
I know :)
 
c# room has that already - why not just go over there
 
@Alex We could have a gist with links for that but not ideal
 
no you dont even go through 200 stars that are there right now
much less 1000s of stars that will end up in "fun" list
nobody is ever going to sift through what track was it that foggy dropped here
or julien or myself
 
1:05 PM
I like the idea with a tidy transcript.
 
There are folks here from all over the world, with knowledge about everything. How do you balance things to keep the room on topic while also letting folks share music, videos, etc.?
 
so you want to make a case for keeping onebox - instead of blindly voting on things - make a case
 
Nah, just hate to be political about it.
 
i dont think i've proven to be difficult to deal with - of all the people Johans the one who has had most room owner actions here
and I've never objected to any
cautioned a few times - but never stopped / countered unless there was a reason
so all I'm asking is - explain to me why youtube clips should stay in transcript?
especially the "fun" clips - i can't recall the last time i saw a useful youtube link
and useful ones get starred by themselves anyway
 
I like both sides of issue, but lean toward keeping room clean. Otherwise, entropy will cause total chaos.
"Human sacrifice, dogs and cats living together... mass hysteria!"
 
1:08 PM
I think we should create a self aware viewmodel and let it decide for us
 
since you're the only other person here - lets discuss - really - thats the point of having owners - you guys are supposed to residents.. seen the room operate - should know what works for this room and what does not
we can totally vote on the options - but first we have to ensure we're not starting a vote we haven't thought through
 
Let's vote blindly, just driven by emotion.
:)
 
this room is very dear to me as I'm sure it is to most of you residents.. at the end of the day we all want to keep it healthy and do whatever is best for long term future of this room
long term is key .. I for one can't stick in a room that has youtube videos posted in it in one boxed format
my line manager is literally sitting next to me and I can't have him think i'm sitting in some playlist
 
If we want to share non-WPF/programming items, let's share them in non-onebox format, so they don't take up so much room. And then the owners can clean them up using their discretion
 
so having all oneboxes stay implies i can't stick around here as much as I do
thats exactly what i've said
infact i said this yesterday when 2 youtube videos were posted
i dont remove screenshots or gifs anymore as long as they relate to code in some form
 
1:12 PM
I think it's good to have a clean room. So, who left that pizza box laying around on the couch last night?!
 
oooo .. things to read ... [reading]
 
for the record, if that "oneboxes should be purged" is the only winning vote, then I'm not going to implement it
because it'd be stupid to remove code related stuff just because it has oneboxed
(and it also proves my point of why voting blindly is deterimental ^)
 
its possible to convert a StorageFile to a WriteableBitmap?
 
SO is that way -->
 
I guess, I'd like to relate another room's experience with onebox. They allow one per day, per user.
It's so trivial to defeat oneboxes. You take on a character in front.
 
1:18 PM
so is somebody going to police that or is it going to drop in my lap like it does right now?
 
^ this will never expand.
 
yea well if people actually thought things through, we wouldn't be talking about any of this
 
If we'd adopt a one-per-day, I'd expect all RO's to enforce it.
It's not fair to agree on policy and require you to implement.
 
Morning
 
I'd expect the RO who started this to enforce it
if you want change - you better be ready to pull it off
 
1:19 PM
If someone comes in here swearing, I'll stop it, not pull you in :)
 
right now the room runs the way I've run it for years - so i clean it up
 
I'm just throwing the 1-per-day out there, in case people were interested. It's an option.
 
i obviously have told all owners how i do it should they choose to do the same - but eventually its my responsibility to keep things clean
yea I agree
 
I'm not even sure how I feel about it.
Rules generally suck.
 
no they dont
effort that it takes to implement them sucks
also hi Andre
 
1:20 PM
grin yep.
 
Hi Andre
 
but yea like I said - right now this room pretty much runs on rules that were defined by myself & sisyphe when we created the room
 
That being said, I'm perfectly okay with how things have been managed for the last year. Let the status quo reign.
 
they obviously originate from our experience in c# room
 
Hi Alex :)
 
1:21 PM
so I also take responsibility for making sure they all get implemented - but times change and so must we.. I'm open to change
but the change needs to be justified when we want to change a primary rule that has brought us this far and then we need somebody taking responsibility for enforcing it
Lynn if you feel we should keep it as is, add your vote
while i'm not going to implement the vote - its good to get a feel of where the room stands
 
As far as I'm concerned, the only slight change I would make is to document the policy via starboard sticky or in the topic -- "Limited onesboxes are allowed, but will be trashed from the transcript within 1-2 days."
 
I thought the vote was for the Youtube oneboxes!
 
No change in policy, just explicitly defining it for all to see...
 
no Alex
the vote as clearly states "Oneboxes shuold be purged"
 
Yep
 
1:25 PM
the purge on youtube only oneboxes -- thats our current policy
 
Mav: what is your current criteria for trash?
ah - that -- only youtube?
 
anything thats not related to code
 
Ah, ok.
 
so music videos will get trashed
 
So not wikipedia, if it's programming related?
 
1:25 PM
i never knew people wanted to retain it for research purposes
no i dont have a problem with useful content obviously
 
:)
We like to research music!
 
i may ask people to change it so I can star it (and thus it wont be oneboxed anymore)
Channel 9 videos for example
 
Will you guys stop having such an intriguing conversation? I need to get some work done ;)
 
Right, so the poll seems like it needs to be clarified: 1) All oneboxes should be purged 2) Keep current policy - only off-topic oneboxes are removed
^ is that accurate?
 
I would have suggested that if I had been asked before hand
but it was posted and I read it like all of you
 
1:28 PM
@JohanLarsson Does this match your intent of the poll?
 
Is there an mvvm framework where you can specify dependencies between viewmodel properties (i.e. change one and it automatically NPC for the other) ?
 
reactiveui definitely has that
 
@LynnCrumbling don't understand
looks like it is fine to remove things
 
but look for calculated properties in frameworks - they'll likely raise INPC for dependencies
 
@franssu The analyzer will have it soon hopefully
 
1:30 PM
@JohanLarsson Do your two poll options effectively mean: 1) All oneboxes should be purged 2) Keep current policy - only off-topic oneboxes are removed
 
Lynn: i think you're missing third option that Johan had in his original vote - dont remove anything (i believe this is what he actually wishes to have)
 
oh, sry I dumbed it
 
Oh, there's a 3rd?
 
a) Remove
b) Keep
 
well then original descriptive votes are spot on
 
1:31 PM
^ would be pretty cool
slight perf optimization that would be impossible without an analyzer
 
2:11 PM
From an MVVM point of view, what is the correct way to be able to invoke calls on the UI thread, from another library? Is it wrong to just hand that thing a DispatcherObject?
 
tricky subject
technically I'd say DispatcherObject should stay in view related code
but for the sake of practicality we do drop it into viewmodel
I imagine you're wondering how to raise a Dialog from viewmodel? :)
@LynnCrumbling wakey wakey :P
 
Material Design has a really nice Dialog implementation I've used
 
mm don't think that's going to answer his question :P
I have a question as well!
in KeyBinding - when do you use key and when do you use gesture for hotkey?
 
@Maverik Eh, I know you guys don't like the non-DI approach, but I always pass a callback interface to the vm ctor instaniated from the Window load code.
 
Enter is a Gesture but Return is a key - aren't they supposed to do the same thing?
Lynn: I rarely add DI to my apps
there's far too much going on in there already without me throwing yet another layer of complexity on top
 
2:25 PM
Hello everyone
 
Right. I like being able to see it passing an arg from somewhere, and not magically figuring that all out.
 
I think you should try Maverik
 
How to Test Rest Service using c# code
 
so simple and easy once setup
 
i'm not sure what does that have to do with WPF Shilpa?
have you checked in C# room?
 
2:26 PM
When I right click on do a find all references, I expect that to show me where it was called from.
 
Franssu - you shuold try adding DynamicData to your solutions
once you do, I promise to add DI
because honestly - once you set it up - you'd never wanna go back :)
 
in C#, 27 mins ago, by Shilpa
hey how can we test Web Service using c# code?
Strange to ask.parallel
 
@JohanLarsson sorry I assumed she could reply by herself - so she's basically broadcasting the question?
 
we don't work on data ;)
 
no no
SourceList > ObservableCollection
just use that - dont need anything else
 
2:29 PM
any link ?
 
if nothing else - you dont have to deal with dispatcher anymore just to add/remove stuff
 
@Shilpa The c# room's going to be your best bet. Your question is most likely too broad.
 
frankly I'm not even sure she's even reading
 
@LynnCrumbling were you talking about DI ?
 
its a broadcast lynn .. as you can see - we've spoken about it 3 times and yet no response
 
2:31 PM
agree
 
sigh
we should probably add asp.net & related stuff to our helpful tags
good intentions are going to get you killed alex ;)
 
I know. Deleted the answer.
We can get the room off track
 
no we can
in fact we're 90% off track in this room :)
 
@LynnCrumbling ? :)
 
but we do it for users who care enough to respond at least
rofl Lynn - i was thinking that!
lol lynn leave it oneboxed - we can do a sweep later
i'll do one for the youtube clip up there
 
2:34 PM
@franssu Indirectly...
 
The road to hell is paved with...
 
asphalt of course
 
answers to off-topic questions :p
 
it was originally a question of mvvm with regard to DispatcherObject at the vm level.
 
lynn all the patterns I've seen basically work around assigning a dispatcher to vm
 
2:35 PM
23 mins ago, by Lynn Crumbling
From an MVVM point of view, what is the correct way to be able to invoke calls on the UI thread, from another library? Is it wrong to just hand that thing a DispatcherObject?
 
you could it with a DialogService.ShowDialog
you could raise an intent event and listen in window
you could do you callbacks - but at the end of the day they're all just avoiding dispatcher in vm
 
Let me look at their code and find out EXACTLY what they're trying to do with the dispatcher.
 
so you probably shuold do that too :)
 
I think they need Invoke to marshal calls.
I don't know what they're invoking. One sec.
 
unless its observable collection - its probably the wrong place to make the call
which is one of my primary reasons to hate OC
that thread affinity kills it in modern multi-threaded app
franssu i think answer is yes
i lost your train of thought xD
 
2:40 PM
@LynnCrumbling <- I was refereing to this
which was a criticism of DI ?
but a wrong one IMO
 
Oh, the find all references?
Does that work?
So, here's the exact use-case:
 
PS: franssu - i do use DI but my apps normally aren't big enough to warrant proper use of DI
 
not sure how you mean, not sure if I'm correct but to me DI = loose coupling in a static way
 
	static void OnError(string msg)
	{
		if(MainWnd==null) return;

		if(MainWnd.InvokeRequired)
		{
			MainWnd.Invoke(new Action(() => OnError(msg)));
			return;
		}
	}
 
eww
MainWnd is actual MainWindow reference?
that kinda thing should use Events
you have an error - you want to tell it to anybody who cares that there's an error in your internal state
but if nobody wants to listen - you shouldn't force it on the poor schmuck that is MainWnd
 
2:46 PM
you shouldn't even know that schmuck :)
 
It's just bubbling up a socket error msg.
 
bubble up wiht events - thats what they're there for
 
There's a lot of calls like that:
	static void OnLeave()
	{
		if(MainWnd==null) return;

		if(MainWnd.InvokeRequired)
		{
			MainWnd.Invoke(new Action(() => OnLeave()));
			return;
		}
	}
 
your library shouldn't reference your MVVM layer
 
^ similar, but different :-/
 
2:48 PM
cargo culting as Johan would put it
if you have to use Dispatcher.Invoke on anything other than OC - there's probably something wrong
(to be clear - problem isn't with OC's thread affinity - problem lie in it not handling it transparently by itself)
 
Guys, maybe it's not wpf, but if you take a look, maybe you can help, it drives me crazy ! stackoverflow.com/questions/39772944/…
 
Hamza - sounds like you're exceeding packet buffer
EF & SSMS have different defaults
 
[sorry, I'm dealing with a phone call here]
 
seems everybody is leaving questions here today but then forget to respond
i may as well go back to my work then
 
Your efforts are appreciated, Maverik :)
But get some work done, too!
 
3:04 PM
but I'm not using EF
:/
 
whatever you're using - i'd look into transport level parameters
 
Ok, I'm back.
So, you've mentioned OC a few times - I guess I should have brought that up before - there's no OC's in play here.
There's a 3rd party framework running jobs async (different thread) that, when they complete, need to be marshalled back onto the main thread (vm)
So OnLeave() isn't happening on our thread, and they were using the DispatcherObject as a vehicle for marshalling them to the main thread.
 
yea they're doing it wrong
i mentioned OC because thats where we generally make exception
 
Ah, I see.
 
btw, in case anybody here enjoys having Android on PC -- Leapdroid.com seem to have developed a really nice & free emulator that you may want to checkout
 
3:34 PM
    I have this in my Model
     // Search Product by Barcode
            public static List<Product> SearchByBarcode(string barcode)
            {
                return ListFromRequest(ApiConnector.Instance().get("/products" + $"?barcode={barcode}")["products"] as List<object>);
            }

How I can get the URL when I call this method ??
private void ExecuteLoadData()
        {
            var newItems = Product.SearchByBarcode(ItemToSearch.Value);
            foreach (var item in newItems)
 
2 messages moved to Trash can
 
Because I have an empty list, So I would like to know if the path is correct
 
add a breakpoint and check @AlainProfessional
 
We can get the URL with breakpoint?
I didnt find it
 
ApiConnector should know the URL
 
3:55 PM
@Alex yes
 
I ll check it thanks ;)
 
06:00 - 16:0016:00 - 00:00

« first day (1441 days earlier)      last day (2708 days later) »