« first day (2183 days earlier)      last day (1966 days later) » 

10:40 AM
0
Q: Binding to ElementName depends on binding order

khamitimurI created simple StateTrigger to bind to FrameworkElement Width property. There are three dependency properties: MinValue, MaxValue and Element. They types are double, double and FrameworkElement accordingly. And I noticed that depending on binding order it may or may not work. This works fine. <

 
 
2 hours later…
12:30 PM
Hi all
 
Morning Alex, you out of the way of this hurricane this time?
 
In Raleigh, so it'll pass right through here
Hey biggi
 
Man that's rough, are they expecting it to hit hard or kinda die off before it hits there?
 
12:49 PM
Hey guys
 
hey mav
 
Hi Maverik
It'll rain a lot probably, some wind
It won't be a hurricane when it gets here
 
windows update 100% complete for 30 minutes now... great.
 
Is this the new update for Win 10?
 
12:56 PM
naw
win7
 
Yeah, MSFT hasn't yet re-released the 10 update
 
Hey all.
Still gusting high winds here, but the rain's moved on. No serious damage around here, by appearances.
 
@Maverik nice mav. that looks great. last update a year ago but i can't imagine it needs much updating
 
 
1 hour later…
2:18 PM
Afternoon all...
 
Hi Jeffrey
 
Right, im just back from installing the software at client site, but got an error on one of the PC's
https://gist.github.com/JBtje/9317bc71d93530a504a648e909f0a4ca
so eeh... can this info be used to debug?
 
You're getting an error from Xaml here
Try adding this to get more info from the error on that user's PC: stackoverflow.com/questions/2376028/…
 
2:35 PM
nice, that last one gives me hope i might be able to debug it!
 
:S but why does it work on ALL the other PC's.... :S
 
Could be that PC is missing the right framework: stackoverflow.com/questions/24995877/…
 
on one of the PC's I reinstalled .net 4.0, but didnt solve the problem
 
i've had that issue before. can be pretty annoying
 
2:38 PM
though, that pc didnt report a problem, just crashed the app prior to rendering the xaml
 
...What framework did you develop your app in and what .net framework is installed on the computers you are trying to run the programs on?
 
i seem to remember my case having to do with the date/time format their system was set to
 
It did execute code prior to that (making copy of itself and putting it on the desktop)
 
^ what Julien said too
But add the exception handling code. Log to DB and see what it is
Or log to file, but db is better (you can see it from your workstation)
Reminds me of the notorious Flash 2032 error
Could be caused by a million things
 
What are you linked against?
4.0? 4.5? 4.6? 4.7?
That error mentions clr2...
and all of those would be clr4
 
2:45 PM
yeah, something date/time settings related could be a hint.... though, I thought I took care of that by using the ..... framework
 
Regardless of this issue, having the global exception handling is good practice. Log it/email it.
I get emails now and again when there are network issues with the db
 
it seems im using 4.5 :|
might be logical that 4.0 did not solve it... sigh
 
Cool. Install it :)
eh, be grateful if that's the issue and it was such low-hanging fruit :)
 
^ that
 
gah, multiple typos in that one :)
 
2:48 PM
Correct spelling optional here :)
We're multitasking, so doing work + help + listening to music + daydreaming + ...
(+ looking for other work options!)
 
well, will givt 4.5 a try soon!, c'ya guys, and thanks!
 
You're welcome
 
3:45 PM
just remembered that i also had this issue with incorrectly formatted app icon
windows has a specific format it wants for app icons
maybe if its an older machine running win 7 it could still happen
 
What's strange is why that fails on some PCs and not others
Ahh, you answered my question :)
 
i have the same thing with app icon
crashed on winXP but worked on everything else
 
4:02 PM
(article written for 1.1 but seems valid in EFC 2 as well)
 
Very cool
 
 
3 hours later…
6:57 PM
any javascript sorting/grouping experts
 
I've done it
Not sure I'd go as far as expert, but...
 
it's a tough one
sorting + grouping + sorting group contents
 
It shouldn't be much harder than doing any of those individually, other than the lack of a native GroupBy
You can use underscore or linq.js for that of course
 
i can't, we dont use those here
If EventSortOrder is Chronological and GroupByCollection is Alphabetical:

    C2 D - 06:00 AM
    C2 E - 10:00 AM
    C2 F - 04:00 AM
    A2 - 06:00 AM
    C1 A - 08:00 AM
    C1 B - 07:00 AM
    C1 C - 10:00 AM
    A1 - 08:00 AM
    A1 - 10:00 AM
    A1 (no meetings)
this is the desired end result, given events called A, B, C, D, E, F, A1, A1, A1, A2
some of those events have a meeting time
some of them have a collection (C1, C2)
C2 comes first because it has an event with the earliest meeting time
however C2 displays D - E - F because GroupByCollection is Alphabetical
 
7:17 PM
Seems like you would group first, and in the process set a property on each group indicating its earliest meeting
sort the groups on that
then individually sort each group by meeting time
Having three "A1" in there seems weird
 
they are events with the same name
so it has to fall back to meeting time to sort them
how do you group first? all you get is element A, element B, returning 0, -1, 1
 
when sorting sure
you have to do your own grouping
create an array, check if the group key is already there, if so add to the group otherwise add to a new group and add it to the array
 
i dont know what you mean by "do your own grouping"
this is the function i have to supply
 
as in, if you want to group items, you have to roll it yourself. There isn't a builtin
 
the only thing i have access to is a function that accepts A and B and returns 0, -1, 1
i can reference the overall source collection from this function if needed
 
7:26 PM
oh, then I have absolutely no idea
 
77
Q: How to sort an array of objects by multiple fields?

MikeFrom this original question, how would I apply a sort on multiple fields? Using this slightly adapted structure, how would I sort city (ascending) & then price (descending)? var homes = [ {"h_id":"3", "city":"Dallas", "state":"TX", "zip":"75201", "price":"162500"}, {...

this is what i found. but it doesn't work the way i need, although its sort of close i think
 
Still feels like you need actual groups so that you know that C2 has the earliest meeting time
but I've never used that library... so I don't really know
 
yes that is what i was thinking to. when A is compared to B, check if either one is grouped, and used the event with the earliest meeting time
but then the actual repositioning has to be based on that earliest event, not the A or B that was provided
 
It would be ugly, but you could group them all manually, then flatten the collection back out (with reduce)
then your a/b sort function would just compare their indices in your actual array
 
when you say group them manually, you mean creating an array inside my existing event array?
 
7:53 PM
ok. i see. so the trick is that i have to manually create composite keys on each element in my array
and then sort directly on that
so basically remove all the logic from the actual comparison function, and create random keys it can sort on easily
creating grouping by forcing sorting based on manually created sort properties
 
more or less yes, that's what I meant
 
lol well wtf didnt you say so
jesus
 
I don't think you actually need a composite key; I was just going to just suggest indexOf
but the composite key thing should work too :)
 
i don't think its possible without it
 
1. Create *new* array
2. Group elements into said new array (as objects with a key and an array of children)
3. Sort the groups on key and/or earliest time
4. Sort the children on event time
5. Flatten the groups array with `reduce`
6. Use indexOf as mentioned before
not sure that's actually better than a composite key mind you
 
8:08 PM
right. i can manually order the array, that's not a problem
but i still end up having to go through the js sort function A and B
the steps you outline are great though, if i did that my key could just be numeric 1 to x
 
right
or the index
either works
 
8:38 PM
wow: just went to windy.com for the first time
too cool
 
9:08 PM
That's awesome
 
that is awesome
 

« first day (2183 days earlier)      last day (1966 days later) »