« first day (1284 days earlier)      last day (3667 days later) » 
00:00 - 18:0018:00 - 00:00

6:00 PM
@KendallFrey you have experience with RegEx, right?
 
why not bind in the itemtemplate?
 
@TravisJ I think my initial approach is becoming unfruitville, of screen scraping this table on a web-page. I need to parse the page, into a comma separated value, and strip out all the html formatting any ideas or hints of what I could try?
 
@Greg - Eww, why are you screen scraping?
 
@TravisJ I have no choice, third party web-site.
 
@RodrigoSilva nyahahaha
@JohanLarsson It needs to update, and I can't use INotify
 
6:02 PM
@Greg - You could load all the html into an xml parser and then query it.
 
@KendallFrey why can't you INotify?
 
Because of reasons
 
Given this:

var reg = new RegExp("\b" + arg);

if (!document.getElementById("receiverList").value.match(reg))
{
alert("Not found");
document.getElementById("receiverList").value += arg + ", ";
}
else
alert("found");

And this UI: http://puu.sh/8j8Cn.png

It should work like this: on click it checks if the textbox already contains the username, if it does: remove it, if it doesn't: add it.

I'm having issues matching the usernames
 
I could in theory, but it's too complex
 
Isn't \b supposed to match the beginning of the whole word?
 
6:03 PM
beginning or end
You should be escaping arg too
Are you saying it's not matching when it should be?
 
YEp, that's it
Let's say I click "admin", it will add the string: "admin, "
 
inspect a few things in the debugger
I'd start with receiverList.value
Oh hang on a second
 
If only I had VS :P
 
You're not escaping your \
"\\b"
@RodrigoSilva Your browser can debug, you don't need VS
 
@KendallFrey uh, that was it. Thanks :)
Well, but nothing beats VS
 
6:12 PM
So now I have an issue with the above code where ListOfButtons.ItemContainerGenerator.ContainerFromItem(item) is returning an item with no visual children after I change the items in the list. Any ideas why?
Apparently it's because I haven't rendered the list at this point, and something hasn't updated.
Need someone to rubber duck to
OK, it looks like the ItemContainerGenerator hasn't yet generated the container
How can I force it to?
 
@KendallFrey - How when and why should it have generated the container?
 
I believe .Measure(...); .Arrange(..., ...); .LayoutUpdated() @KendallFrey
that's the order I do it in.
applies to many things in life.
and by many I mean > 1.
 
@TravisJ Normally it would be when the list becomes visible
However, this code ideally will run before it becomes visible, since it affects the display of it
 
6:29 PM
@KendallFrey - Is there some sort of internal instantiation associated with rendering?
 
It might be using virtualization, I'm not sure
 
@ton.yeung Explain?
 
@TravisJ What do you mean? Build it into an Xml Document, then query it?
 
Maybe there's a simpler way to re-bind the entire listbox?
 
@TravisJ You mean build an Xml Document with the proper node, then query it out?
 
6:32 PM
@KendallFrey - Can you use some sort of IObservable to add and remove items from the list through an event?
 
No, they're replaced all at once
 
@Greg - I mean load the entire scraped html content into an XML parser so you can query it like xml
@Kendall - Hm I am not sure, I was just trying to get you to think
 
@TravisJ You have an Xml Parser in mind?
 
fuck this shit, private events ftw
 
@KendallFrey What's it bound to?
 
6:40 PM
It's DataContext
 
directly?
 
Which is being replaced
 
it: {Binding}?
 
yep, {Binding}
 
does the bound object implement INPC?
 
6:41 PM
nope
 
if so, just raise PropertyChanged with string.empty
can you make it do that?
 
What, really?
empty string updates everything?
 
raising PropertyChanged with string.Empty forces all bindings on that object to refresh
 
dayum son
 
You can also use null
Might look better
 
6:43 PM
(string.Empty is more common, since null used to cause a crash - though both work now)
from msdn.microsoft.com/en-us/library/… : "An Empty value or null for the propertyName parameter indicates that all of the properties have changed."
 
The thing is, I don't see how I can make that any easier than just notifying by the property name
Does this do something that UpdateTarget doesn't?
I think I tried UpdateTarget on the ItemsSource binding, and it didn't work
 
UpdateTarget should handle it
 
Even if the value hasn't changed?
I have a feeling that UpdateTarget isn't changing the actual bound object, and it doesn't reevaluate the individual items
Wait, are static events a thing?
 
yes, pass null as sender
 
oh wait, missing }
thanks, misleading error messages
it works! ship it!
 
6:51 PM
microoptimize it
 
I'm pretty sure this code could dissolve metal.
@JohanLarsson I've already taken too much time
!!kendall
 
whyy am I getting ads in german. Google fail
 
7:11 PM
hey guys
you know I've been busy today because I only just now said hi :)
 
long time
 
my day is always better after I spend 2 hours with our chief architect working on a problem :P
 
sounds like fun </sarc>
 
@ShotgunNinja it actually is. He's fantastic at explaining things and very patient
 
7:12 PM
@ShotgunNinja holy shit, brah
what's up?
 
the sky
srsly, though, just dropping in to say hi
gotta get to class now
might stop in during class
adios
 
have fun
nice seeing you
 
is papercut supposed to show formatted html, and I'm doing it wrong... or does it only have the ability to show a textual representation of the tags
 
wrong, papercut is supposed to hurt like hell
 
7:28 PM
Anyone here use CsQuery?
 
@Greg - I don't have any suggestions for which one to use, haven't done much content scraping.
 
@Greg I've tried it
 
@TravisJ Yeah, kind of like blah at the moment
@LasseV.Karlsen I'm trying to grab the data from the fifth nested table, and convert it into a CSV.
 
papercut shows html, just fyi
 
7:32 PM
@TravisJ I might try that, the documentation is better for that compared to CsQuery.
 
7:45 PM
papercut hurts because it hits so many nerve endings
 
papercut hurts because we are software developers and use the injured site quite regularly ;)
 
papercut hurts because I'm a pussy
 
you guys seen Ternier lately?
 
Ammendment: Papercut hurts because Kendall is a pussy.
 
how is that an amendment? You didn't amend anything.
 
7:52 PM
meaning.. all papercuts hurt because you are a pussy.
 
I'll leave you with this notion:
Papercut to the scrotum. Enjoy your nightmares.
 
Scrotum? Try the glans.
 
stop!
 
HAMMERTIME!
 
Damn you Caprica
=P
 
8:01 PM
hey guys, fast question: how do i check if shift key and "d" it is pressed?
 
Check for when shift is pressed first, set a flag until it is no longer held down (onkeyup). When d is pressed, look for that flag.
 
i tried if (IsKeyPressed(Keys.ShiftKey) && Keys.D0)
but doesnt working
shift + 0 = )
 
Yes, D0 stands for Digit 0, not D
 
yes sorry
so i tried like this and it doesn't work
 
There is a subtle misunderstanding you have there. Two keys are never pressed at the exact time ever according to the computer. There is always an order to them. As a result, you have to set up a flag for this. In your keypress event handler, set a flag for when shift is pressed. Clear the flag in the keyup event handler when shift is released. In your keypress event handler, when you look to see if the key d was pressed, ensure that you also check the flag.
if(IsKeyPressed(Keys.ShiftKey)) shiftDown = true;
 
8:11 PM
@TravisJ got it
 
:)
 
@TravisJ That's misleading. Two keys can be down at the same time, and I don't think you need to keep track of that yourself.
I think KeyEventArgs might have a modifier keys property or something
 
@KendallFrey - They can be down at the same time, but the keypress event is only fired for one key, and that is the only one it will be aware of.
 
You can use the KeyDown event instead though
 
@TravisJ right it doesnt work
 
8:16 PM
@KendallFrey - That seems to work much better
 
The KeyPressed event handler is too low level, and the KeyDown and KeyUp are more useful
 
private void textBox1_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
{
    if(e.KeyCode == Keys.D && e.Shift))
    {

    }
}
 
(I learned how keyboard input works when writing keyboard drivers)
 
but it isn't in key_down event
private static string GetKeyText(Keys key)
 
@user3313264 Well, change your code and use that event
 
8:18 PM
}
{
 
Oh, so pass in the event args
 
That code was just copied from the link to MSDN kendall posted
 
Like ?
 
Are you just trying to get the letter that they typed?
 
so wow...
 
8:19 PM
so
 
1.5 million rows added to our DB
 
if (NativeMethods.GetKeyState(Keys.CapsLock) == 0x1)
{
return key.ToString().ToUpper();
}
if (ExtensionMethods.IsKeyPressed(Keys.ShiftKey))
{
return key.ToString().ToUpper();
}

return key.ToString().ToLower();
 
I think you're overdoing this majorly
 
now if the shift and D0 it pressed it needs to return ")"
 
54 secs ago, by Kendall Frey
Are you just trying to get the letter that they typed?
 
8:19 PM
yes
 
You don't need any of that code, just KeyChar
 
but i need to continue with this
and i don't get the ")" from shift & D0
 
You should. What do you get?
 
nothing
 
@Pheonixblade9 - You guys lol... you need to start partitioning or something
 
8:22 PM
You have to get something.
What does e.KeyChar return?
 
@TravisJ thats what I said...
 
but i can't implemetn keychar to may code
 
Why not?
 
i have my own void
 
@Pheonixblade9 - Great minds :P
 
8:23 PM
@user3313264 Show us your code
 
private static string GetKeyText(Keys key)
{
}
 
But you don't need that one
KeyChar will replace it
 
but in this one i need to do it
 
Why?
lmfao Humble Bundle has Enviro-Bear now!
 
i just need to.
 
8:25 PM
It doesn't look like it to me.
show me what you have in KeyPressed
 
Sometimes I get discouraged by poor questions that seem to somehow drag down everyone else with them.
2
 
:16002196 No, your KeyPressed handler
s/\s\bb.+//
 
Kendal there's much more and i need to go to sleep
tomorrow i'll be back please help me then
bye guys
 
Well, sleep well knowing you can drastically shorten your code
 
hooray, my thumbnail is almost fallen off!
 
8:30 PM
mmm- eww
 
You hit it with a hammer?
Or maybe a scrum stick?
(I think scrum stick is a term our company made up)
 
@KendallFrey nope, I chew my fingernails and it got infected.
 
ooh, tmi
 
want a picture?
 
of course
 
8:32 PM
:D
@ReedCopsey be sure to cheer when you see a 47ft yacht going by Bellingham really slowly in 3 weeks
 
@Pheonixblade9 you on your way north or something?
 
doing the Oregon offshore race
hence the me being happy my thumbnail is on the way out - it's extremely likely and extremely painful for a nail rip if I'm working on a sailboat.
 
mmm, saltwater+open wounds
 
yep!
Come on Winmerge, take my million line file. Take it!!!
 
om nom nom nom
 
8:42 PM
Still eating chocolate @KendallFrey?
 
I've slowed a bit
I probably should have a drink
 
Good to hear, which kind of chocolate btw?
 
sugar is dehydrating
 
with almonds? Not sure that's how you say it though...
 
just plain milk chocolate
in the shape of a bunny
who's playing hockey
 
8:44 PM
Real men eat chocolate with almonds
 
I love dark chocolate
 
real men eat 100% chocolate
 
Real men eat.
 
real men.
 
Real men.
ahhh
 
8:45 PM
Men.
 
cock.
 
aaand I've set myself up for an out of context star
 
 
Kock
 
8:45 PM
!!urban kock
 
@Pheonixblade9 Kock A rather... hilarious alternate name for the couple of [Spock] and [Kirk] from [Star Trek] TOS.
 
Lil jon, such a poet
 
nope
Kock is swedish
And it doesn't mean what you think
 
!!urban nope
 
@RodrigoSilva No definition found for swedish kock
 
8:46 PM
well, that came out wrong...
 
You're thinking of kuk
 
!!urban johan
 
@Pheonixblade9 Johan 1. Johan means to act super fly or cool.
@RodrigoSilva Nope Slang for "no".
 
@RodrigoSilva Yes you did :P
 
@KendallFrey wat
 
8:47 PM
!!urban rodrigo
 
@Pheonixblade9 Rodrigo A person who wants everything with reproductive organs. A walking hormone. Even though a rodrigo is usually harmless you must have firm handle on his outgoing attitude. But rodrigos are still usually well-liked, everyone knows a rodrigo.
 
This is a list of burn centers in the United States. A burn center or burn care facility is typically a hospital ward which specializes in the treatment of severe burn injuries. As of 2012 there are 123 self-designated burn care facilities in the United States, 54 of which have been designated burn centers by the American Burn Association and the American College of Surgeons. Alabama *UAB Burn Center *University of South Alabama Burn Center Alaska *Providence Alaska Medical Center – Thermal/Wound Services Arizona *Arizona Burn Center at Maricopa Medical Center *The Grossman Burn Cente...
 
LOL, not again haha
 
@CapricaSix lmfao
 
I'm a walking hormone
 
8:48 PM
you slut, you
 
I'm well-liked though
 
!!urban pheonixblade
 
@TravisJ No definition found for pheonixblade
 
!!urban Travis
 
!!urban herring
 
8:48 PM
@RodrigoSilva travis hottest guy ever!!!! usually used for sexual pleasure, but not in this case.
@KendallFrey herring one who posseses red/pink/orange hair
 
haha, I smell BS
 
!!urban cody
 
lol
 
@KendallFrey [Cody](http://cody.urbanup.com/2925858) 1) An attractive guy that chicks digg.

2) A being who has a level manliness about them of which is somewhat subtle yet unparalleled, and which is sometimes mistaken by lesser men as gayness.

3) A higher level of man who endures a multitude of gay jokes, but is in reality much more straight than the lesser men who provoke him.
 
!!urban frey
 
8:49 PM
!!urban stark
 
@KendallFrey Frey Sexy to the point of being so sexy that the person with said name becomes un-sexy then sexy again 12 times over. In the end you have a name that indicates a person with piles of sexy on just their nosehairs. The sexiness eats rainbows, pukes unicorns, and beats supermodels with a vicious sexy spatula. Don't look at the sexy, you will kill yourself on the spot from pure envy of Frey's sexiness.
@RodrigoSilva Stark someone who is good in bed, stark directly translated means able to withstand; strong
 
badum tsss
 
stahp
 
HAMMAHTIME!
 
!!urban netscape
 
8:50 PM
@TravisJ [Netscape](http://netscape.urbanup.com/1086464) A browser superior to Internet Explorer, but inferior to everything else.

NOTE: I re-submitted this because of a typo in the last version.
 
A talking robot... nice
 
!!urban turban
 
@KendallFrey Turban A head garment mostly worn by [Sikh]people. 99% of the turban wearing people in America are Sikhs.
 
[citation needed]
 
I was hoping for something slightly more offensive.
 
8:51 PM
Was the "HAMMAHTIME!" triggered by a command?
 
STOP
 
HAMMERTIME!
 
ah, very well
 
HALT
 
HAMMERZEIT!
 
8:52 PM
STAHP
 
ALTO
 
HAMMAHTIME!
 
detener
 
MY CAPS LOCK IS BROKEN
CAPS PARTY
 
8:52 PM
!!no
 
s p a c e s a r e m o r e f u n
 
I'm still learning @KendallFrey
 
!!help
 
@TravisJ Information on interacting with me can be found at this page
 
8:58 PM
C A P S A R E N O T T H E O N L Y W A Y T O STOY
 
ZABIVAT' VREMYA!
 
;)
 
@TravisJ Have you used HtmlAgilityPack quite a bit?
 
@Greg - Nope I have never used it. I just saw it in an answer and on caesum.
 
Oh.
 
9:07 PM
@TravisJ I see what you did there
unfortunately, you failed
 
the . ruined it
 
nope
 
The @ did?
 
nope
 
Ah, it was patched
sonuva sistite
 
9:09 PM
MALLEUS TEMPUS!
 
@TravisJ Why do all these parsers have such horrible documentation and horrible examples.
 
@Greg - Not sure, perhaps they fear tony the pony
 
@TravisJ I have a table four tables deep, it has an anchor id of #_memberListGrid. Then it has a tbody, then a table-row, and the physical data. All this stupid parser has to do, is parse out the table exactly how it is built into a Comma-Separated Value, but no. It likes to add all types of extra garbage.
 
sounds rough
 
@TravisJ Yeah, the shit doesn't want to work!
 
9:32 PM
@TravisJ What are you working on?
 
posted on April 22, 2014 by Scott Hanselman

I have FIOs Fiber-optic internet at my house and I'm very happy with it - have been for years. I get 35Mbit/s both up and down and it's rock solid. It's not technically all fiber of course, as the fiber goes into an ONT (Optical Network Terminal) in my garage and is changed into a COAX (Coaxial Cable) using MoCA technology, travels 50 feet, then goes into a very old ActionTec MI412-WR wireless

 
@Greg - Yesterday I finished the first version of the UI for allowing a user to manually configure a schedule which will work with the scheduling algorithm. Since it worked in the test environment, I am now placing in the hooks so that it uses real values for certain components which for testing purposes were left out (since they have no affect aside from informative).
 
@TravisJ Cool.
 
@Greg - Then I need to connect the output schedule produced from this feature to the live lists that users see for their currently scheduled work.
It is kinda complicated
I tend to move slowly while planning/testing, unleash a whole bunch of changes, and then go back to planning/testing.
 
I wish my work was 'kinda' complicated
 
9:42 PM
@TravisJ Yeah, I hear you.
@KendallFrey Eh, my work is a combination of both. When shit doesn't work, you hate the day.
 
I'm curious: Am I the only developer that likes debugging, even if it's code that someone else wrote?
 
I'm not a fan of debugging.
 
@KendallFrey - I prefer that it just runs properly as written. But when it doesn't the first thing I do is breakpoint.
I like being able to hover all the things
 
For some reason I find it simpler to fix broken code than write new code. Maybe that just means I'm not very good at writing code.
 
Depends on the code
 
9:51 PM
I'm some how getting an OutOfMemoryException.
 
i love debugging haha
 
@Greg - Leaky streams?
 
No, a typo. This apparently isn't valid syntax builder.Append(builder). builder is a StringBuilder.
 
That's valid syntax. :P
 
@KendallFrey Well, until you get a OutOfMemoryException.
 
9:59 PM
invalid syntax will never cause an OOM
it's all about semantics, boy
 
In essence the StringBuilder when created requires a chunk of memory to allocate all of your data, if it is filled. It request more, by calling a builder-of-builder it constantly request memory too the point it dies.
Blah, it keeps storing the table data in one fucking column and row!
Ugh, evil HtmlAgilityPack. Damn parser...
 
10:27 PM
 
@ReedCopsey - ewwWwWWW
@ReedCopsey - That reminds me of the way some people use entity framework's .Include where they will use the string version of navigation properties.
 
aha! just the man I was looking for
I was reading a very long answer on a question, and I thought to myself "this sounds like @ReedCopsey", and lo and behold.... who's it by :p
 
Sheridan? :p
 
Blah, I either parse it into separate columns, or separate rows, or one giant field. I can't export this content correctly. GRRRR
 
10:51 PM
@ReedCopsey I say that about alot of Selman's answers... This one is particularly nasty ;)
 
@ReedCopsey @EvanL I'm not a strong developer, but I can tell you when you get creative and think too complex, your more than likely wrong.
 
@Greg I'm not that great either. But I agree. This would qualify as a "Hack" in my book.
 
@EvanL The philosophy of Python honestly holds true in several languages, simplicity is often the ideal route.
 
@Greg I agree. But personally I loathe python.
 
Anyone have some better parser options, or a route I can take without a parser. For this nested table five layers down, to build a Comma Separate Value document out of the table data? I can't get HtmlAgilityPack to play nice, and CsQuery has horrible documentation.
 
11:13 PM
Alright, I'm off to go home. I think I might try and build my own parser, so I can focus on exactly what I'm trying to accomplish. Later everyone.
 
11:23 PM
@Steve Need something?
 
nah
 
oh, okay
 
00:00 - 18:0018:00 - 00:00

« first day (1284 days earlier)      last day (3667 days later) »