« first day (861 days earlier)      last day (3288 days later) » 

12:14 AM
seems like you just need to change your calculation
 
so currently I'm getting the difference between the two arcs which is what I need, but I also need to get where the arc statrs
 
control can be broken also
 
so just add the difference onto the startAcr
 
always assume third party controls are crap :)
 
but then it will show the values before the start arc also, which I don't want
okay thats a wrap for today, I'll pick this up tomorrow, thanks for the advice as always
 
 
7 hours later…
7:04 AM
Morning!
 
 
3 hours later…
9:59 AM
I'm trying to develop a WPF application which has feature of sending mail in it.
user can provide content & can send mail
the problem is when user sends an email & immediately quits the app, the mail is not sent
what could be the solution to this?
 
10:46 AM
maybe create a thread that sends the mail.
 
a thread will not solve it
at least not a background thread it gets killed with the app
disable closing until it is sent? (dunno how)
 
how does the application gets closed?
Ahh he's not even here :)
 
 
4 hours later…
2:33 PM
Hello every one
I am working on WPF Chart controls
Does any one have idea on dynamically adding animation effects for columnseries or AreaSeries or PieSeries from code behind??
 
 
1 hour later…
3:43 PM
FCC news is amazing
woo woo
 
4:06 PM
3 messages moved to recycle bin
 
 
4:25 PM
booooo
 
hes not around anymore :)
and given how much stuff he has on his plate right now, i doubt he'll be coming anytime soon
(besides for a quick casual chit chat)
 
you d!ck ;)
i keed i keed
i'm going to recruit him to the USA
 
lol that'll be amusing
his journey really started from stackoverflow chats i think
it'd be fun to see how far it takes him
 
haha he couldn't last here
 
you never know :)
but i think i have his attention for a year or two at least
 
4:39 PM
then you can both come here
 
5:00 PM
heh
lets see.. who knows!
 
5:15 PM
so
a device MyDevice can have versions 1-10, 59-72, 1004-2000. How should I store that so I can verify a number is within those ranges?
bool IsValidVersion(int number)
struct VersionSet { public readonly int UpperLimit; public readonly int LowerLimit; //ctor }?
orrrr something else
 
5:41 PM
That seems good to me
 
C# seems to say no go
 
I have no idea what I do at night. Not writing good code.
 
haha wuz wrong Johan
 
I read what I wrote last night :)
over my head with the gauges currently
trying to find out a sensible way to handle measure & arrange
& render
never written much on that low level before
 
5:58 PM
@NETscape the readonly might be your problem
you could just do properties with a private set
better than public fields anyways
 
DependencyProperties are so ugly, huge bloat in every file due to them
I do public fields every now and then. If they are readonly.
Does not work for binding though
 
@BradleyDotNET well its not that I have a problem... C# argued that it would be a performance hit rather than just doing something like if(version > 0 && version < 10 || version > 200 && version < 300 ...)
 
The performance hit should be awfully small if you do it right
but it will be a hit compared to the code you wrote
@JohanLarsson #region helps with that :)
 
yeah actually valid use of a region
@NETscape even better if it can't even be represented. Gonna be tricky with your numbers though
 
@JohanLarsson what do you mean? as in not having to check at all? lol
 
6:08 PM
yeah
 
yeah, I wish
 
> Illegal state should ideally be unrepresentable
Null is a huge violation of that
@NETscape There is a way using T4 if you feel like going full retard :)
 
not today lol
 
public class Axis : Control
 
i basically trying to identify unknown devices, so there has to be something checked
 
6:11 PM
The gauge is looking more and more like a chart framework
don't worry about perf when comparing ints imo
You will not be able to measure the time it takes.
Branching is the perf issue any way.
Dunno how big of an issue it is
I sometimes miss multiple inheritance in C#
Sign of smelly design probably
 
yeah, I miss it once every few months
 
i don't like multi inherit. hard enough to follow single as is lol
 
but its not that bad to find a work around
 
oooo, Ctrl + Tab is a nice shortcut in VS
 
WHAT DOES IT DO?
 
6:16 PM
what are you writing COBOL? lol
shows all your active files
 
I WANT ANSWERS
 
so like right now I have 4 panes open, with ~20 tab. Obviously don't all fit on my screen
Ctrl + Tab shows me all my tabs basically and allows me to pick one
 
ok guess I could have tried it
The worst thing about coding is that it takes so much time
Have so much fun to write but never get there
 
@JohanLarsson just wondering how I should be changing the colour of the value on the abgular block bar? Can I set this from a property on the bar, or do I need to create a new style?
 
use the Fill property
and Stroke & StrokeBrush if you need thet
 
6:21 PM
you know what I mean, the area that gets highlighted as the value increments?
its grey atm
so the fill prop will change the colour of that?
 
I think so yes
 
so I set the fill property on the block bar, and it tells me its set more than once?
nvm
obvious one
 
decent error message :)
 
yeah I know my calculation is still not correct though, I'm binding to the following:

_painfulArcOutput = _endDegree - _startingDegree;
 
Can also be derp in my calculations
 
6:26 PM
but if I have a startArc of 90 and endArc of 120, will just give me a binding value of 30 degreees
 
When I render it
 
which isn't what I want
it should be a binding of 30 degrees from the startArc
 
The angle is counted from the x axis
clockwise I think
 
I'll post a screenshot of the output
shortly
okay so my first problem, is the block bar isn't showing its value being updated at all, just the main angular gauge
must be something to do with the layout of my xaml, maybe the main gauge is blocking gauge two from showing
@JohanLarsson
getting a bite to eat , be back shortly
 
your view looks pretty good
 
 
3 hours later…
9:08 PM
back gain @JohanLarsson you free?
 

« first day (861 days earlier)      last day (3288 days later) »