closer changed the topic of #ruby-core to: check the latest release candidate for 1.9.1 release ftp.ruby-lang.org:/home/yugui/ruby-1.9.1-r26021+1.tar.bz2
<zzak>
[fschuindt, irc.freenode.net] Hello folks, any tip on how to build a monitor for a certain screen position (looking for changes). Like a sensor that will fire off when determined area in the screen changes.
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
<zzak>
[Shawn Wilson, irc.freenode.net] i'm not sure what ruby doesn't like with these groups - it seems to be having issues with '-' and ',' in them http://sprunge.us/BYeP
<zzak>
[Shawn Wilson, irc.freenode.net] but idk how to fix it
<zzak>
[Shawn Wilson, irc.freenode.net] also it doesn't seem to like my use of \( which is weird
<zzak>
[Shawn Wilson, irc.freenode.net] (i'm coming from the perl world - trying to create a chef ohai plugin - so it's probable i've got other issues the lexer hasn't gotten to but the regex stuff is stumping me)
<zzak>
[dea, irc.freenode.net] ag4ve: You totally found a bug.
<zzak>
[dea, irc.freenode.net] The '/' in "user/group" on Line 41 isn't being interpreted as part of the comment.
<zzak>
[dea, irc.freenode.net] And thank you kindly.
<zzak>
[Adædra, irc.freenode.net] My pleasure.
<zzak>
[dea, irc.freenode.net] I'd been dead ever since somebody mistyped my call sign as "Delta Echo Delta".
<zzak>
[Shawn Wilson, irc.freenode.net] heh
<zzak>
[Shawn Wilson, irc.freenode.net] btw, while i'm here - any easy way to concatinate lines from a file when the last ended in '\' ?
<zzak>
[Shawn Wilson, irc.freenode.net] (i'm pretty sure i don't handle command lines w/ comments at the end either, but...)
<zzak>
[caerus, irc.freenode.net] maan... sinus infection and studying ruby (or anything for that matter) don't go along :(
<zzak>
[Shawn Wilson, irc.freenode.net] line.gsub(/#.*/,'') will be fine wrt comments in command lines - i have no idea how to concatinate w/ the next line when the last char is '/' though
<zzak>
[dea, irc.freenode.net] ag4ve: `lines.each_cons(2)` lets you process them pair-wise.
<zzak>
[Shawn Wilson, irc.freenode.net] ah ty
<zzak>
[dea, irc.freenode.net] ag4ve: So, er, I guess /foo/ Regexp literals really ought to permit /s in comments, but it probably makes everything gnarlier than is warranted for something so small.
<zzak>
[dea, irc.freenode.net] If you're dead-set on having the slash in, `%r{foo} == /foo/`.