« first day (713 days earlier)      last day (3436 days later) » 
03:00 - 15:0015:00 - 23:00

3:42 AM
sup!
 
 
2 hours later…
5:30 AM
Gotta ask something here. I wanna use a relay command with parameter, and following this tutorial => kellydun.com/wpf-relaycommand-with-parameter , i made this one
    public class RelayCommand<T> : ICommand
    {
        #region Events of RelayCommand (1)

        public event EventHandler CanExecuteChanged
        {
            add { CommandManager.RequerySuggested += value; }
            remove { CommandManager.RequerySuggested -= value; }
        }

        #endregion Events of RelayCommand (1)

        #region Members of RelayCommand (2)

        private readonly Action<object> _action;
        private readonly Predicate<object> _condition;

        #endregion Members of RelayCommand (2)
and in viewmodel :
public RelayCommand<MusicalObject> Test { get; set; }
public MainWindowVM() : base(null)
{
      Test = new RelayCommand<MusicalObject>(ResetSelection);
}
And the error is : The best overloaded method match has some invalid argument. Anyone spot my error?
Error is on the "Test" initialization
 
 
2 hours later…
7:37 AM
I was looking at the exact same thing yesterday
 
isn't it that you don't enter any second argument in the Test = new RelayCommand... row?
no condition
 
7:56 AM
what does the (1) in the line #region Events of RelayCommand (1) do?
 
How can we Observe an OberveableCollection?
I suppose we can hook into Items.CollectionChanged
 
@Markus the (1) is just info if you have collapsed the region.
 
ok
I think that there's a thing missing in the example.. the row: public RelayCommand(Action<object> action, Predicate<object> condition) Should be public RelayCommand(Action<object> action, Predicate<object> condition = null)
 
@Markus that's not the case
 
ok?
 
8:06 AM
I have an overload with no predicate (in my own code), which result in a same thing
RelayCommand(Action<object> action)
 
Ahh yes, sorry, I missed that row...
 
summoning my master : @Sean
@Markus so, any other idea?
 
hmm nae I can't see any fault, what is the ResetSelection?
just btw, if you add the = null you can remove the other constructor, but so much you must have figured by now :)
probably the error is in that the ResetSelection doesn't have the correct arguments
@MosesAprico could you just show that function header?
 
That's what I was going to ask
Method signature of ResetSelection please
 
Anyways, it should be something like: void ResetSelection(object obj)
 
8:32 AM
@MosesAprico Soo?? did it work?
 
@Sean it's really still empty when I pasted it. basically, ResetSelection(MusicalObject except) is called by a MusicalObject which is selected / checked (I use togglebutton), and then clearing each other selected Musical Object, leaving only the last checked as selected control at a time
@Markus nope. it just the same.. MusicalObject is also an object. object is an ultimate base class.
 
Compiler is tripping balls
 
so basically, it's still shows error even though the ResetSelection is empty
btw, I need to go now. I'll come back at night (it's 3.38PM locally)
just type in your thoughts and I will answer it when I get back
 
so if you change it to something like
ResetSelection(object obj)
{
    MusicalObject except = (obj as MusicalObjcet)
    ....
it still doesn't work?
 
@Markus wow. why does that didn't cross my mind before. it work (no syntax error). but as I said, I need to go so can't compile-test it now. I'll mention you as soon as i get back
thanks
(it worked btw)
the syntax error's gone.
see ya later guys...!
 
8:42 AM
You learn something new every day....
I bet that's because delegates have to be specific and an Action is just a fancy delegate
 
8:55 AM
"object is an ultimate base class"... as if I don't know what an object is :)
 
I think he thought that because it's a base class, the Action could define a base class
Rather than the direct type
Which is apparently not the case
 
 
1 hour later…
10:02 AM
So, what's new?
 
A number of cells in my body
Probably a good number of babies
And graves
Can you be more specific?
(That's code for: fuck all mate)
 
I ordered a Iphone 6 last friday, estimated delivery 1 week.
Yesterday I had a new check... preliminary delivery date 12/11...
 
They never build enough
It's like they don't have brains
"So guiz. Last year we totes didn't have enough. This year we should order similar numbers so we totes don't have enuf agen. We're so smart."
 
and I ordered if from that place (one of swedens largest operators) because thet had a delivery date sooner than apple. But now I think I will cancel that order and get it from Apple instead, who will deliver it between 20 - 24 this month
 
That sounds sensible
Are you looking forward to it?
 
10:10 AM
not the 22 days waiting, but to receiving the phone, yes
 
I hate waiting
What do we want?!
ALL THE THINGS!!!
When do we want it?!
YESTERDAY!!!
 
I have a Iphone 4 at the moment, and let me tell you, there's a lot of waiting there...
 
^ that is me
 
so what are you waiting for?
 
I'm waiting for everything I could ever want to land nicely in my lap
In a nice little package with a ribbon on top
Actually I'm waiting for a goddamn invoice to be paid and they're fucking about sending me letters saying they need an order number which I wasn't given when I was told to invoice them
So you can bet your bottom dollar that as soon as I receive an order number, I'm slapping late fees on that shit cos this is taking the piss
FIFTY-TWO DAYS
FIFTY-FUCKING-TWO-GODDAMN-PISSING-DAYS TO PAY AN INVOICE
 
10:29 AM
Morning Angry Bird
 
I'm actually OK lol
 
aww there goes my chance to cuddle up with the excuse to help you calm down :(
 
Who the fuck accepts an invoice, doesn't pay it for 30 days (which I am led to believe is standard) then delays even more when I chase it up and then tries to tell me it's my fault for not following their procedure that they didn't tell me about?!
OK maybe I am a little irate
totally getting those free cuddles
 
its totes normal
 
I know it is
Cos people are cunts
But I am well within my rights to charge late fees and I am. I will not be fucked about
The rules are 30 days after delivery of goods or invoice received, whichever is later
I sent the invoice on the 11th of August and I've been chasing them since the 12th of September
Because apparently it's bad form to chase for invoices until after the standard 30-day period? Anyway IDGAF now, I was being nice but no longer!
I even put in bold "Total Due By 11/08/2014"
Oh, sorry.. "The rules" being the rules on when you're allowed to start charging late fees. Or "Late commercial payments: charging interest and debt recovery"
 
11:09 AM
You know that wouldn't surprise me
 
who knows man...
 
Who cares? =]
 
the code isn't uncommon... searchcode.com/…
 
See, MS are aware that the outside world exists
If that's true, that is
 
M-morns
 
11:11 AM
C-c-c-combo breaker!
Morning, André
How are you?
 
Tired
And you ?
 
Not bad thanks, got that tickly cough at the end of a cold but that's just irritating more than anything else
Why're you tired?
 
Too much swimming and got home late
 
Why're? is that a "real" expression / word to use?
 
You can contract, I guess it is possible ;p
 
11:16 AM
I can't find an authoritative source but I use it and I see it all the time
 
how would you pronounce it?
 
Basically, if you see an apostrophe ' then it either denotes possession or missing letters
Uhh
"Why-urr" I guess
 
hmm
 
It's - it is
We're - we are
 
I'd say it sounds like Wire
 
11:18 AM
yes of course I know those
just never heard why're before
 
Oh yeah I was just giving you examples to make it clear
@AndréSilva That's better
 
if(version.StartsWith("Windows 9"){//Win95, Win98} <---hence Windows 10.
Good morning everyone.
 
yup we just discussed that :)
 
Good morning Billdr!
How're you on this fine day?
 
11:20 AM
Damnit, I'm late to the party again.
 
Better late than never.
Also, you're not late to the after-party and that starts RIGHT NOW
cue disco ball
 
So last night I wrote javascript for fun. It was real dark.
 
Whatcha do?
 
The software that people use to broadcast videogames to twitch? It lets you write scripts now.
Someone wrote half a script to get their current donation amount from the Extra-Life page. I felt like we might as well throw up the last person to make a purchase to... and before I knew it three hours had passed.
 
11:25 AM
@Billdr Hehehehe, the ol' rabbit hole
But, if it was fun like you say and you weren't being sarcastic then screw those three hours! :D
 
well, it was a thing that needed to be done before I could play video games.
so... mixed bag.
I'm 17% to goal now, btw. If you're like @Maverik and have been asking for reminders, there's no time like the present.
 
:)
 
<#
<3
<#
My heart pounds.
 
donesis & thanks for reminder
 
Also, I hope to be doing a stream every night. I'm supposed to entertain some 3M exec from Brazil tonight, but I hope he and my wife go to the mall of america to buy makeup or whatever rich Brazilians want to get in the US.
Thanks Mav, you are awesome.
It bothers me that your name is actually Maverik.
It's too cool of a name to be on a birth certificate.
 
11:33 AM
:)
Do you know why you got that name? is there any story?
 
@Billdr NOW it makes sense!
@Billdr Its not, i changed it later
the first name never really seemed to fit.. never felt like i owned that name... so.. lets fix it!
 
ahaaa
 
Nice.
 
and what was your first name?
 
things you learn everyday!
if you can figure that bit out.. i'll tell you the last name!
(I changed both)
 
11:40 AM
Elvis?
 
May be if i had Markus for a name -- i would have stuck with it
but why do we even need names right?
why not just call everybody: Hey Mr!
Hey baby.. Hey boy.. Hey man... Hey dude
 
I just call everyone duder.
 
In Sweden it would be Öh
 
I care about knowing your name because I consider you a friend, but since I know you're not a big fan of giving information for anyone online, I rather not ask :p
 
Oh dude!!
Andre my names on my profile - it doesn't get any more public than that :P
 
11:42 AM
Really? ._.
I should start looking the profiles
 
I'm going to say Mav's given name had a lot of vowels in awkward places.
 
are your parents alive?
and if so, do they like your previous name more than the present?
 
yes and yes - they choose to not even acknowledge the change
 
hehe
 
but no surprise there.. ain't the first thing they choose to ignore
partly the reason i changed my last name
vowel.. i never thought of that bill
2/6 in givenName
symmetrical even - in 2nd and 5th place
 
11:45 AM
markus?
 
thats 5 letters mate ;)
but close!
 
really?
 
well close in terms of letter count not as in given name
 
Carlos !
 
Mattew?
 
11:47 AM
m1 a2 r3 k4 u5 s6
 
its an awkwardly sounding name - that doesn't use standard spellings even
 
Blah, I'll never get it.
 
damn it markus! fine.. have it your way!
 
:)
 
yea you won't .. very few know my given name
 
11:47 AM
Hm, so it is not Carlos...
 
not yet
 
kokley?
 
That is a funny sounding name ._.
 
:) wonder how many awkward names can we come up with!
yea name you baby here!
 
Damnit, I can't think of any name ._.
I'll probably name my child Red if it depends on me
 
11:52 AM
Bill, you should be good at this, it's your languate!
 
In other news, $400 gets me an oculus rift dev kit.
It's my language, and I know how poorly people use it. Especially with given names.
 
Buy!
 
We haven't determined that Mav's given name was even a saxxon name.
 
true
 
I want to buy it... but I really want it for the live stream. Not sure it'll be delivered in time.
 
11:54 AM
I am really frustrated that I can't think of any normal names ._.
 
live stream?
 
Sep 17 at 15:06, by Billdr
I'm doing Extra-Life again this year: If you can donate, please do. http://www.extra-life.org/index.cfm?fuseaction=donorDrive.participant&participan‌​tID=91438
^---my end of that deal is playing video games for 24 hours straight, live on the internet.
 
ahaa
did you raise $1200 by playing games for 24 hours?
 
Well, I think it takes time to update
 
That was last year, yeah.
This year I'm hoping to hit $1500.
 
12:00 PM
I saw :)
You got 300$ already and you not even started the event haha
 
Last year I got maybe $300 during the event, most of that from one or two big donors.
most of the money comes from people pledging before hand.
@AndréSilva Thank you very much sir!
 
Bahahahaha
I have the power
 
which power?
 
What's that mythology or w/e that says if you know someone's real name you basically own their soul or some shit?
 
Wiccan has that. Probably a lot of northern European religions.
That's part of the Rumpelstiltskin lore, right?
 
12:12 PM
Hello.
 
Hiya
 
Can I get some help with Richtextboxes?
 
Probably!
(Going to snow this weekend. Hurray! @NETscape might see it too.)
 
Awesome. I am trying to get the current line length of whatever line the richtextbox cursor is on when typing. However, I am unsure of how to do that. I tried using the richtextbox.GetPositionFromPoint().GetLineStartPosition() for both the start and end positions of a line. However, I am unsure of how to use the arguments for getpositionfrompoint().
 
Isn't there a column property?
 
12:16 PM
Based on an SO question I saw, you can use GetLineStartPosition() with an argument of 0 for start of the current line and 1 for the start of the next line. Which should be effective for getting the current line negth.
Not that I know of.
 
@Billdr Not a problem ;)
 
@Billdr Yes, it is
 
@FatalSleep You don't want the carrot position, you want the length of the text, ya?
 
Yes.
 
Carrot. Love it.
 
12:19 PM
I need to go bout making a text color coding system later too. I am thinking it might be better if I just program a custom editor.
 
Are you taking this one, @Billdr?
 
Not too familiar with WPF. :/
 
I'm fiddling with it. Seems like the answer is in the Lines property, confirming it exists.
and is what I think it is.
If you have a solution go for it.
 
I was just about to open up VS
 
I don't have a wpf project going... my mvc project is running and I'm lazy.
 
12:22 PM
I don't think Richtextbox has a lines property, based on some SO questions I saw. Since Richtextbox is basically a FlowDocument, whatever that is.
 
Yeah, looks like that's not a thing wpf's rtb has.
 
Well, back to asp
 
yeah me too. I don't have an answer for you FatalSleep. Maybe Sean has an idea.
My worst case: take the string, split it on \n, do some math to figure out how many characters can be on a line and guestimate from there.
 
Okay, thank you. :)
Worst case, I might just write my own editor class and UI drawing.
Since Richtextbox has like zero features for line handling.
 
RichTextBox is shit
:D
It can't measure worth a damn
 
12:34 PM
Agreed. :P
 
I got something using your code but.. Meh
It's not right
Telling me 32 when I want 28
 
It's probably a matter of a few character offsets from the end line characters?
Idk.
 
Probably
Yes, you're right
Two \r\n
That makes loads of sense
 
Yeah.
What'd you come up with?
 
Let me see if I can get the contents out
Sec, sorry :D
 
12:37 PM
Mmk.
:)
What is \r?
I know about it being used in the rtb, but idk what it is.
 
\r is carriage return. It's a lot like \n.
apparently \n is carriage return and \r is line feed.
 
Ah.
 
Boom.
 
Got it?
 
var prevStart = RichTextBox.Selection.Start;
var prevEnd = RichTextBox.Selection.End;

RichTextBox.Selection.Select(RichTextBox.CaretPosition.GetLineStartPosition(1), RichTextBox.CaretPosition.GetLineStartPosition(0));

int lineLength = RichTextBox.Selection.Text.Trim().Length;

RichTextBox.Selection.Select(prevStart, prevEnd);
There are some possible nulls in there
 
12:45 PM
Awesome, I'll try it out.
 
That correctly measured my line though
Oh that's where the null is
Derp.
 
Oh?
What is the final line for?
Position resetting?
 
Yeah
If they had a selection before you started measuring using the the new selection, you want to restore that
 
Ah.
 
So, modified, single-line-safe no NullReferenceException code:
You're just selecting the start of the current and next line
 
12:49 PM
Read it wrong. :P
 
In order to get the text between those two points
var prevStart = RichTextBox.Selection.Start;
var prevEnd = RichTextBox.Selection.End;

RichTextBox.Selection.Select(
	RichTextBox.CaretPosition.GetLineStartPosition(1) ?? RichTextBox.Document.ContentEnd,
	RichTextBox.CaretPosition.GetLineStartPosition(0));

int lineLength = RichTextBox.Selection.Text.Trim().Length;

RichTextBox.Selection.Select(prevStart, prevEnd);
Previous code was bad for single line or if you were on the last line
 
Ah.
Hmm...
This is odd, "No overload for 'Editor_TextChanged' matches delegate 'System.Windows.Controls.TextChangedEventHandler."
"private void Editor_TextChanged( RichTextBox Sender , TextChangedEventArgs EventArgs ) {..."
 
object sender
 
Ah, then convert to richtext object?
 
Yeah
Event handlers are very generic
 
12:55 PM
Ah, okay, thank you.
 
If it were a RichTextBoxTextChangedEventHandler, you would be OK
But TextChangedEventHandler works for standard textboxes too
 
Ah.
It works, but the PageWidth properity is in pixels not characters....
Richtextbox is awful...
 
I don't like it much either
Right I'm sorry I'm going to have to go
And do some actual work
Later guys
 
Thank you or the help!
Bye bye.
 
1:37 PM
My observable collection isn't being updated when I call OnPropertyChanged
Does anybody know why this would occur?
 
why would it update?
OC updates only on item add / remove
or you mean OC itself is being set and INPC raised?
(that's a bad practice)
 
Why :-(
Everything in WPF is bad practice
its really annoying
 
2:02 PM
you're supposed to Clear the OC .. not reset the binding
 
2:19 PM
Hi
 
HJi
 
cadburry Halloween eggs are now a thing. YAY!
 
How can i change computer description using C#?
 
computer description, as in the thing that shows up when you right click "My Computer" and hit properties?
 
@Billdr yes
 
2:31 PM
That sounds like a job for group policy, if you're on a domain.
 
@Billdr I could change the name but i couldn't for computer description. Basic workgroup domain
 
I'd imagine Win32_Computer may have something to offer there
(wmi world)
 
I don't know the specifics. Google probably does.
Mav probably does too.
 
strongly doubt its something that you can do in .net - you'll likely need to p/invoke
nah i'm just good at talking bs out of my rear :D
 
Ok Guys. Thank you for the hint WMI
 
2:33 PM
cough
 
np
 
i love cold weather @Billdr
 
Me too :)
 
anybody here's interested in Wildstar 7 day guest pass?
I have 4 passes on me that I can give away (2 for EU 2 for NA)
 
whats wildstar 7
 
no one star these ^
:)
 
those three have been bugging me for a while :)
 
you should come hang out at my place... i'm sure the mess will bug you, you can clean that up too
 
lol
i thought you had a gf ?
and i need 1 more star
thanks
 
i does. but she lives 2.5 hours away
you're welcome :P
 
2:46 PM
now there's a star in bar ... that needs forging to remove /sigh
 
not sure how i should take "i thought you have a gf" haha
implying she should be cleaning it, or the alternative implication
 
yea girls are normally bugged aren't they?
and they generally give up and just clean it themselves
or at least thats the sort of experience i've had around me :)
 
or, i thought you were trying to make advancements :p haha, I'm just kidding
but you're right. and actually for 3 'single' guys living together, our place is pretty nice
 
Woo windows 10 TP downloading
lets see what it looks like
you just need one clean freak in there to keep it in order
we're 4 in my flat .. and we have 1 who is ocd... if he can't make us clean something up, he cleans it up himself eventually :)
now one of the guy's gf has moved in with him and she seems to have cleaning issues too.. so the place is even cleaner now!
on the bright side, i've just adapted and i don't leave anything behind anyway so i'm not the one messing the place up in any way.. ever
so Windows 10 TP + VS 14 CTP 3 -- perfect dev env to blow things up
 
5 people in a flat? seesh
and yeah, good luck with that setup haha... is it on a VM?
PS, do you all get along? is anyone else a techie like you?
 
03:00 - 15:0015:00 - 23:00

« first day (713 days earlier)      last day (3436 days later) »