« first day (79 days earlier)      last day (4937 days later) » 

9:02 PM
@rchern If they were foolish enough to give me the password I'd never give it to any of you. On the other hand, they'd never be foolish enough to give me the password to anything
 
and yet people think they'd give me the password
so...
 
Do y'all think it would be a good question if I asked (on Programmers) why you should write unit tests to fail?
Is that so you can fix them and see if it works (knowing that's the only bug)? My brain is not working right now, so forgive me if this is obvious (and I'm only learning).
 
@MichaelMrozek Then they wouldn't be foolish at all, now would it?
 
honestly, that's involved enough that you'd be better off reading some methodology books or articles and then asking a more informed question
 
okay
I've just seen several people, I think, say that as a rule, so it seemed the reason was simple.
 
9:07 PM
@MarkC: but yes, in a nutshell: writing the tests first shows that you understand the bug and can reproduce it, then that test going green (from initially red) shows you fixed it
 
@RogerPate All right, thanks.
Do you know where I could read more about it? (will Google and check pr/so in a moment)
 
extreme programming and unit-testing books; sorry I don't have more specifics, it's still not something I do rigorously :}
 
I think you're describing test-driven development (at least a limited form); google that phrase and you'll find tons
 
All right, yes, I've seen a few references to that
 
9:23 PM
@TimStone, t-90 minutes until merge time, ha!
not that i'm counting down until i leave or anything
 
@Rchern (Rebecca?), do you mind if I use you as my guinea pig?
I need to test how formatting affects notifications.
Roger pointed out that my notifications weren't coming into his inbox.
(See comments here.)
 
being a guinea pig sounds painful. ask @MichaelMrozek.
(:
 
I just realized there is a Sandbox room, but I think I still need someone to join me.
Unless you can notify yourself, like this: @MarkC
@Michael, would you mind joining me in the Sandbox for a moment?
 
@RogerPate, you edited that answer with mismatching info. the comments you link to has <i>@name</i> but in your edit you say @<i>name</i> is what is invalid
 
9:39 PM
ah, I misunderstood what he was doing
 
not that i'm not saying 1 works and the other doesn't, just that what you say in the answer doesn't match what you linked to
 
italic @ looks nearly the same here :(
 
@ @
 
@ @ @
 
@MarkC: that's much stranger that "@roger" is a substring in the source and it isn't matched; I suspect my guesses on implementation are missing something rather significant
 
9:45 PM
word boundaries?
@RogerPate test?
 
that notifies me here
 
See the sandbox, Michael says the algorithms are different, although he doesn't know particulars
 
Oh, I just realized why the sandbox ones worked when I didn't expect; chat allows substring alerts and the main site doesn't
I'm much less confused now
 
I wonder if `a @word inside` code would match
 
I'm pretty sure if the first character of the comment isn't @ it's not even going to try
 
9:50 PM
all the variants of markdown and MD's own inconsistencies is a confusing state of affairs
 
Oh really?
 
if you want to test this with comments on a site, find something i've commented on on WA because then I can just delete your comment to cleanup (:
 
@MichaelMrozek: no, later @replies definitely work on the main sites
 
Whoops! I might have started using @s inside comments already.
 
@RogerPate Is that new? They didn't at some point
 
9:51 PM
@MichaelMrozek hmm I didn't think it needed to be at the beginning of the comment but i guess i've never formally thought about it
 
it's at least months old, I don't know if/when it changed
 
Well, that's like the fourth time I've been wrong about the reply syntax, so I'm going to stop thinking I understand it
 
welcome to the club :)
 
(and if you do test it on WA ping me here so I know to go check) (;
 
9:52 PM
All right; doesn't Roger have mod rights somewhere, too?
 
Aww, too bad
 
@RogerPate notification successful.
 
John MacIntyre might be confused, iirc the global inbox will show deleted comments :)
 
nah they fixed that
 
9:55 PM
Maybe we should write our own answer...but then he would get that too
 
but i also have a few questions as well (;
 
Or what?
@Rchern Whew! I've deleted some thoughtless comments but figured they would get read once anyway
 
do a @test on one of my questions and then i'm leaving work hehe
 
@rchern: same page, with a non-markup character
well, on one of your questions, you'd be notified anyway
 
i don't see a notification o:
 
9:57 PM
so looks like you need to match (^| )@
 
hmm, which question? i don't see it lol
 
so much for doing it on one of my questions >_<
 
@Rch Do you see any of mine?
 
none of the ones there show in my summary for today
 
10:01 PM
@rchern: well, had we done it on one of your questions, you'd have been notified as the author of the post — unless we did it on an answer on that question to which you'd replied, but same thing as this :)
 
true, good point
so word boundary seems correct
can i delete all those comments now?
 
believe so
I'm going to leave the comment reply FAQ the same (unless someone else wants to update it), to just discourage markup around replies, since it seems problematic and rare anyway
(I had changed it from my original misunderstanding though)
 
@Rchern I did two more to cover extra possibilities
 
word boundaries and no extra characters/markup allowed tisn't? which, ya know, seems perfectly logical and reasonable to me...
@MarkC, negative
 
being meta SO, someone should just write pseudocode to explain the matching behavior, preferably from reading the real code
 
10:04 PM
Does anyone have access to it?
 
I heard @rchern does
 
I sure hope it's in HTML!
 
only the team, afaik, not just moderators
 
My dream come true: An HTML-based regex engine
 
@rchern: well, logical to a programmer and logical to a user ("it shows @user, why does markup matter")... :)
 
10:05 PM
@MichaelMrozek is trying to throw y'all off the right path. he wants you to think i have it when really, he does
 
He said:
in Sandbox, 22 mins ago, by Michael Mrozek
Your replies don't work here? Or on the main site? They're not the same algorithm
in Sandbox, 22 mins ago, by Mark C
Ah, so you know how it works?
in Sandbox, 23 mins ago, by Michael Mrozek
No, I just know they're not the same
 
...oy.
 
@rchern Hooray! :P
 
@rchern See, ironclad evidence. I'm willing to edit a wikipedia article if you need more proof
5
 
Hey, I'm within one day of reaching 1000 upvotes. (Cast, not received.)
 
10:08 PM
Do you want e-points?
 
What to do, what to do?
 
But really, is there a badge for that or something?
 
is that a lot?
 
Eh, it's a round number.
 
You could participate in my vote drive. If you pledge 5 votes per day, you can get special privileges, and more with 10 votes per day.
 
10:09 PM
alrighty, i'm outta here
 
Good bye!
 
> -- apparently min(votes) is a varchar?! and I don't know how to cast in t-sql
It's CAST() :)
 
@RogerP Error: Divide by zero error encountered.
 
@MichaelMrozek yeah, that was a confusing error message
@MarkC: in the results? try the updated query
 
10:13 PM
Er, the updated query?
 
Oh ok I didn't refresh
 
Why, why did I choose to have a stopwatch as an example application for a brief introduction to Quickly?
Time management is where Python shines the least.
yeah, localtime() gives you a tuple, which is a number of values, except this one in particular is fancier than usual, except you're new so you don't really know what's usual and what isn't, and when you evaluate it you get a string that looks like a function call you could make, except it really isn't, and when you try it you get an error message
 
@radp What's stopping you from choosing a new example?
 
@PopularDemand The fact that the only stopwatch on the ubuntu repositories (the only one that comes up when you apt-cache search stopwatch, that is) is horrible.
 
10:21 PM
(@RogerP, in your FAQ, do you explain that the comment must begin with the @?)
(I refreshed and it's not so clear to me.)
 
@MarkC: it doesn't have to, it can be later; that was what I showed rchern initially, but I think it got deleted before you saw it
 
I think I saw it, and I did a "-@name" with one leading character. She said she didn't get any, but perhaps she overlooked it
I'll write you one on your FAQ post, then i can delete it.
 
no, I did "blah blah @rchern", with a space before @
the faq post notifies me anyway, I posted it originally
 
Oh right
Don't worry, I'll find one
 
if I haven't linked it to you yet
 
10:29 PM
OK I wrote two
 
I don't see anything in the global inbox, links?
 
31
A: FAQ for Stack Overflow, Server Fault, and Super User

robcthegeekAccepting Answers You may accept any answer on questions you asked as the 'accepted' best answer. Only one answer at a time can be the 'accepted' answer. You may change which answer is accepted, or simply un-accept the answer, at any time. So long as any answer to your question is marked "accep...

 
I see "Middle of the comment, @RogerP; does it work?" in my Meta inbox
but still not in the global inbox (could be related to meta's ongoing migration?)
 
@MarkC I showed you a screenshot of my summary. How could I overlook it?
 
@rchern I don't know! :P
If I knew I wouldn't have to guess
 
10:34 PM
...oy
 
Sorry, laziness on my part
Avast! A scurvy scoundrel has broken the pattern. We must upstar rest to 3, now.
@Radp What is this game about, exactly?
 
Man, what happened to [advertising-inquiry]?
 
@Roger, so the first one doesn't show up?
Does that mean the @ has to have a space before it?
 
@MarkC correct
@MarkC that looks like the best-current advice, though it would be somewhat strange for an @ in code to notify you, even following the other rules
people use backticks far too much, anyway
 
Okay, can you add that rule to your FAQ?
 
10:41 PM
it's community wiki, go ahead :P
 
Dude I've been saying word boundaries since the beginning of this convo. You're just getting there?? (;
 
You talkin' to me?
 
sometimes you don't always pay strict attention to group chats :P
fwiw, I said (^| )@ before word boundaries, which is subtly different
e.g. abc@def matches \b@def for most regex
 
@rchern I saw this reply to Roger but between his and your reply, I couldn't understand which you were referring to and what the conclusion was
 
Beginning of the line counts as word boundary hrmph
 
10:44 PM
@rchern: right, but see abc@def :) plus there's all the various markup that might be interpreted differently as word/non-word characters and I'd avoid regex in the faq because it will confuse far too many people
 
How would that count? The beginning isn't a boundary.
 
And I didn't understand what Roger's expression does, since I really know next to nothing about regular expressions. (I was going to comment that it looks like one of those Asian smileys.)
 
Put simply, beginning of the comment or following a space
 
Oh right, ^ is the BOL marker.
 
@MarkC ^ is start, ' ' is space, (^| ) matches either at start or a space (^ is a zero-width assertion)
 
10:47 PM
WTF is an event?
and what is the happy hour?
 
HAPPY HOUR, WHEE
One second, lemme link you to the archives
 
its 0.47 here
:-)
 
@echox Some of us are still at work, you sorry excuse for an automated system.
 
@rchern: hmm, python's re isn't recognizing "c"+"@" as a word boundary, but I thought most regex engines did
 
2 days ago, by Mark C
@TimS and @Popular, what is the meaning of "Happy Hour"?
 
10:49 PM
@PopularDemand the timezones are the problem ;-)
 
2 days ago, by Popular Demand
@MarkC It's nothing. Chacha just decided to test out the event functionality one day, and he decided on Happy Hour because it's a tavern.
 
"c" is not a word boundary. The @ is part of the notification.
 
@rchern word boundaries are between characters, I thought "c"+"@" was one, but at least one popular engine (python's) disagrees
 
@echox I wasn't actually yelling at you; I just got the same banner that you referenced. Sorry for the confusion. (And I continue to resent the chat system for not realizing or caring that I'm still at work at 1900h on Friday night.)
 
The @ is part of the notification. It gets disqualified.
 
10:53 PM
@PopularDemand BTW WHY AREN'T YOU REALLY YELLING ITs CAPSLOCK DAY!!!!
oh wait, its over
 
@echox not for him
he still has 5 hours of hot capslock action
 
the chat should support this
input.toUppercase() ;-)
 
@Roger and @Rchern, why does "zero-width assertion" mean it will match only at the beginning on the line? (Rephrased, what exactly does (^ mean?)
@echox Put in a request for Rchern's script
 
@rchern: I'm not being clear somehow :) I thought you were saying the match was done similarly to "\b@...", which I thought wouldn't work
 
Command form: /caps [Message]
 
10:55 PM
@MarkC: ^ means "beginning of line", but it is also a zero-width assertion (there are many of the latter)
 
/caps fooo
;-)
 
@MarkC: assertions "match" without "consuming" any of the string; the "zero-width" is redundant, but I commonly see it said that way
 
Hm, I don't quite understand the difference then, between consuming and asserting.
Oh, you mean assertions are zero-width, is that it?
 
yes
 
If you did an assertion for a few characters, would that leave your "cursor" at the beginning of the match?
 
10:59 PM
they don't actually correspond to any specific character in the input string, instead they reflect a state or transition
 
All right
Is there another example?
 
you mean "(?=abc)" matching against "abc"? that would match, but group 0 (the fully-matched string) would be empty
(?=...) is a look-ahead assertion
 
so in other news
how's the weather
 
@MarkC: if you really want to understand regex, implement a few of them as code in your favorite programming language. best way I know for programmers to get it
 
@RogerPate Thanks.
@RChern Hold on, lemme write a weather assertion xD
 
11:04 PM
@rchern Partly cloudy with a chance of rain.
I actually don't know that, I'm just rambling.
 
@echox that is CHEATING!
 
@Radp it doesn't want to play in here
 
@radp and THIS IS TOTALY INSANE: youtube.com/watch?v=GDhYmpX9DLM
mmmh why isn't this 'extended'
ok, works
 
@echox you need to put it on a line of its own
 
11:07 PM
ok, got it
 
@Radp Not just a line of its own, an entry of its own. Someone told me that so I just did Shift+Enter
 
also
@MarkC fair enough
 
That music video is incredible...how many hours did tha take?
Even if they used some program to design the level, I wonder how it works?
 
I have absolutly no idea
 
@Roger, if I edit your FAQ post, where should I put the beginning of line/space rule?
I can't believe it took me so long to realize it was automated.
 
11:28 PM
@MarkC probably at the end, replacing #11 makes sense here
 
Ok
 
11:52 PM
@TimStone, ping?
the keyboard navigation is cool @TimStone (:
hi @waffles
 
@rchern So have you merged it yet?
 

« first day (79 days earlier)      last day (4937 days later) »