« first day (775 days earlier)      last day (3374 days later) » 

00:00
they describe them as linq to events
@JohanLarsson Would work, but dramatically changes your test environment
its often better to install a sync context, and use that for testing
is that a huge setup?
not really - just need to make a sync context
where is the dramatic change?
var context = new SynchronizationContext();
SynchronizationContext.SetSynchronizationContext(context);
Just a guess. I should read about it.
well, you need to make a context
and the context needs to do something ;)
00:10
ok, I take it it was wrong then :)
LINQ to events? How do you query an event?
Is there something in nUnit tat handles it? Like RequiresSTA
@BradleyDotNET streams of events
Huh, I'll just have to read up on it sometime, because that still doesn't make any sense
I think of it more like placing an event in an object
that can be passed around
Ok, that makes a little more sense. I'd have to think of a case where I would want to do that, but I'm sure it has plenty of use cases
00:13
instead of A having to do B.SomeEvent += DoStuff
I often pass an IObservable to A and all A needs to know that it will signal when it is time.
I'm noob though so can be wrong. Safe to write when Reed is here watching :)
So basically A doesn't need the source object?
I suppose that would be a nice way of decoupling A from B, though a simple interface with the event would seem to suffice as well.
Also nice things like merge, say you want a notification on when an event on any of them members of a collection signals.
Hold on, typing sample
        [Test]
        public void Test()
        {
            var fakeInpcs = Enumerable.Repeat(1, 10).Select(x => new FakeInpc()).ToArray();

            var observable = fakeInpcs.Select(x => x.ToObservable(y => y.Name, false))
                                      .Merge();
            observable.Subscribe(x => Console.WriteLine(((FakeInpc)x.Sender).Name));
            fakeInpcs[3].Name = "Brad";
        }
dunno if the sample if good but it creates an array with ten instances. Then listens for changes of the name property.
00:28
Right, thats pretty cool
Then prints out the new name.
the ToObservable is my extension, here
lets you do x.ToObservable(y => y.Father.City.Name, false) nested stuff. Reed hates it :)
nite
don't hate it - just think that it's non-obvious and expensive
01:30
ok, but never hesitate to flame
 
6 hours later…
07:20
hey Hey HEY!
Hello friends, do you have a experience with the ContextMenu in a Button on left mouse button click? When I click right button, everything with Icons in ContextMenu is all right, left click doesn't display Icons. stackoverflow.com/questions/27250013/…
 
4 hours later…
11:12
hi everybody
anbody knows about a good library to plot line graphs??
 
2 hours later…
13:17
Anybody know a way to force the setter of a binding to be called? i.e. usually you would changed UpdateSourceTrigger to PropertyUpdate, but I need to keep it as FocusLost and choose to force updatre it
<TextBox Name="itemNameTextBox"
         Text="{Binding Path=ItemName, UpdateSourceTrigger=Explicit}" />
BindingExpression be = itemNameTextBox.GetBindingExpression(TextBox.TextProperty);
be.UpdateSource();
Well thats annoying
Not very MVVM...
maybe you can use some kind of behavior or attached property
I was thinking the same thing
Ok i have an idea. But can I set my Command parameter to be a control?
<i:InvokeCommandAction Command="{Binding CharacterSelectionChanged}" CommandParameter="{Binding CharacterStruct.Fields}"/>
If I set commandparameter="myControl" then I think can i access the binding and update it
Got it!
Bah, WPF is so great.
13:38
And finally, anybody know if we can delay an event using Interaction.Triggers?
Hello guys, please answer this question if you could. I am stuck at this for days, and it is driving me crazy.
0
Q: Showing Dynamic Data in Editable DataGrid Silverlight

Taha Rehman SiddiquiI found a solution over internet for displaying my dynamic data in DataGrid which is received as List<List<MyLabelValuePair>> which is converted to List<ExpandoObject> for showing on grid I am open to any solution that would make my scenario work, but currently I am using the below method to ...

Anyone? I am really desperate!
14:13
nobody knows about graph drawings?
@TahaRehmanSiddiqui it seems a little bit hard to understand which is the question...you may need to reword it
explain which is the problem
this is my honest opinion...
 
1 hour later…
15:23
0
Q: Force Binding update after ComboBox selection has completed

AshehI am having some trouble with an editable ComboBox and the updating of a binding. Currently I have a ComboBox where its UpdateSourceTrigger=LostFocus this is because I need to wait for the user to finish inputting somthing before I decide if the value is a new value (and thus create a new one). ...

16:12
I hope someone can suggest me about a good library for line graphs...I've tried to use oxyplot, but it gives me errors in XAML...like wirtten here stackoverflow.com/questions/17143785/… but I cannot solve it...
 
2 hours later…
18:42
@FrancescoDS the answer is right there, are you saying non-pcl doesn't work either?
1
Q: Level shifting 5V to 3.3V - can I just use a zener diode?

Ageis simulate this circuit – Schematic created using CircuitLab My problem is the ATmega328 is running at 5V. I know I need a bidirectional level shifter. However don't really want to spend much more money on this if I can. I don't want to blow up an expensive amplifier as well. Most expensive ...

reading that.. makes me feel like i know nothing! -- then i realized how people feel when they read our code.. I feel much better!
19:06
Hieroglyphs
Andre! i need help with cors shit man
normally i'd see a request going through to server and then getting rejected because the headers aren't there or aren't right -- i know how to fix that
but right now, i never see a request go through and browser keeps moaning about Same origin policy :(
any clues?
19:21
Erm wait
You're viewing the server rejection or just you sending some kind of information and the browser denying it ?
I'm trying do a dead simple Get request
the server never gets sent, the browser rejects upon parsing it
Error code?
ddg research indicates i need to somehow enable it on client side
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://**server**/test/api/auth. This can be fixed by moving the resource to the same domain or enabling CORS.
From where are you doing the GET ?
localhost
so frontend is on localhost, and api is on another server
19:24
localhost GET to server
yea
server has origin set to *
Can you move your get to the server ?
Instead from your localhost
yea and of course it works
That is browser protection
but i can't debug or develop there
yea.. and i'm trying to figure out what do i need to do to coax it into letting me do it
19:25
Just like having to frames on top of each other and each is on different URLs, they can't access each other
Oh.. ok let me think
That GET is manual ?
umm manual as in via button click? no
(function(){})() stuff
Manual as in typing a XHR into the Console
oh yea no.. and i'm using angular
so basically the scenario is: i make an xhr $http.get() (angularJs $http resource) request during init process
the request has integrated authentication on top of it (and works fine) .. after which server sends back current user basic data
all of this works dandy as long as I don't involve cross domain
Node is a little baby when it comes to security
see heres the pain point: $httpProvider.defaults.useXDomain = true; <-- that PR was rejected
it doesn't exist in angular today
anybody using that is using unofficial ancient fork of angular
also all of this is irrelevant as all questions appear to be dealing with server side issues.. i dont have them
my issues is on client side, browser never even attempts to make the $http.get request
so clearly i'm missing something.. but as with most open source stuff, there's no clue as to how to actually do it
19:32
Maybe ?
But with CORS, you'd receive that error if you tried to GET server to client and vice-versa, right ?
no
if browser actually bothers to make the request, it'll work
also same issue... hes using 1.1.5 ... 1.3.x doesn't have it
well clearly i need to bang my head against angular until i figure this out.. thanks for trying
i'll figure it out
Really sorry ._. I've seen a little of NodeJS and XHR only
I'm sure that JS room will know
nah i'd rather not bug them
i feel its something nooby
Dude..
You can choose between bugging yourself or bugging them. For sure they wouldn't even care after 5 minutes of solving your problem
:)
true
19:40
Since you are going to visit JS, leave your soul here :X
thus i haven't visited yet ;)
I don't know if they changed, but there used to be a place of bullied people bullying other people
20:01
i think i just figured out the problem
i think it has to do with the fact i'm doing CORS withCredentials
well.. i think i need to take a break and look at it later
take care all and g'night
 
1 hour later…
21:16
killing an animation in an inherited styled turned out to be a problem
scope in xaml is tricky
21:46
Yes it is
22:51 and I just got to work
putting in a third session today
@JohanLarsson go home dude
or learn how to remote or something ha
22:14
^ that can only turn on the animation. On ext it throws.
 
1 hour later…
23:39
So I think I've asked this before but I am revisiting the task. Let's say you have a DataGrid bound to an ObservableCollection. Pretty standard. When the user enters a value in the first field, that data is used to pull data from a database and populate the rest of the row. However, if the value the use entered is invalid, the new row needs to be removed. Anyone run through this before?
Nope
OT: What do you guys think of the new triage system: meta.stackoverflow.com/questions/278380/…?
23:58
I just had a merge conflict with myself ty TFS

« first day (775 days earlier)      last day (3374 days later) »