ChanServ changed the topic of #ruby-lang to: Ruby 1.9.3-p125: http://ruby-lang.org | Paste >3 lines of text on http://pastie.org or use a gist
esad has joined #ruby-lang
postmodern has joined #ruby-lang
lsegal has joined #ruby-lang
Synthonic has joined #ruby-lang
Synthonic has left #ruby-lang [#ruby-lang]
deryl has joined #ruby-lang
danielvdotcom has joined #ruby-lang
danielvdotcom has quit [Read error: Connection reset by peer]
danielvdotcom_ has joined #ruby-lang
danielvdotcom_ has quit [Client Quit]
qwerxy has quit [Ping timeout: 240 seconds]
mytrile has quit [Read error: Connection reset by peer]
qwerxy has joined #ruby-lang
woollyams has joined #ruby-lang
havenn_ has quit [Remote host closed the connection]
dous has joined #ruby-lang
slyphon has joined #ruby-lang
m3nd3s_ has joined #ruby-lang
ChadStudmuffin has joined #ruby-lang
chessguy has joined #ruby-lang
banisterfiend has quit [Remote host closed the connection]
banisterfiend has joined #ruby-lang
s1n4 has quit [Quit: time to fall asleep]
tenderlove has quit [Remote host closed the connection]
chessguy has quit [Remote host closed the connection]
banisterfiend has quit [Ping timeout: 245 seconds]
Y_Ichiro has joined #ruby-lang
Y_Ichiro has joined #ruby-lang
Y_Ichiro has quit [Changing host]
srbartlett has joined #ruby-lang
apeiros_ has joined #ruby-lang
dous has quit [Remote host closed the connection]
dous has joined #ruby-lang
jackhammer2022 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
jackhammer2022 has joined #ruby-lang
apeiros_ has quit [Ping timeout: 240 seconds]
laszlokorte has quit [Quit: laszlokorte]
ryez has quit [Ping timeout: 245 seconds]
Jay_Levitt has quit [Quit: Leaving...]
RegEchse has joined #ruby-lang
runlevel1 has joined #ruby-lang
qpingu has joined #ruby-lang
runlevel1 has quit [Client Quit]
qpingu has quit [Client Quit]
qwerxy has quit [Quit: offski]
stardiviner has joined #ruby-lang
Jay_Levitt has joined #ruby-lang
TorpedoSkyline has quit [Changing host]
TorpedoSkyline has joined #ruby-lang
jkprg has joined #ruby-lang
Sambalero has joined #ruby-lang
jkprg_ has quit [Read error: Connection reset by peer]
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
sora_h is now known as s0ra_h
s0ra_h is now known as sora_h
Rakko has joined #ruby-lang
<Rakko> Is there a way to get the text of a regexp pattern that lies within a capture group? For example, for the regexp /(foo).*/ I would like to get the string 'foo'
seanstickle has joined #ruby-lang
<Rakko> I'm sure I could do it if I implemented a regexp parser, but I'd really rather not :)
m3nd3s_ has quit [Remote host closed the connection]
banisterfiend has joined #ruby-lang
FluffyCode has quit [Remote host closed the connection]
lcdhoffman has quit [Quit: lcdhoffman]
Sambalero has quit [Remote host closed the connection]
jtoy has quit [Quit: jtoy]
m3nd3s has joined #ruby-lang
lcdhoffman has joined #ruby-lang
lcdhoffman has quit [Client Quit]
<lianj> Rakko: "foobar".match(/(foo).*/).captures
m3nd3s has quit [Ping timeout: 252 seconds]
kingCrawlerx has quit [Quit: Computer has gone to sleep]
esad has quit [Quit: Computer has gone to sleep.]
esad has joined #ruby-lang
<Rakko> lianj: ah, I knew someone would answer like that. But I want the "source" text in the Regexp definition itself -- NOT what it matches in a string.
<dominikh> write a regexp parser
<Rakko> That is, independent of any string.
<Rakko> LOL... thanks
S1kx has quit [Read error: Connection reset by peer]
<dominikh> well, it boils down to that. or hooking into one.
<Rakko> figures
<lianj> i dont get it :D
<dominikh> lianj: he wants the regexp source of the capture group in the regexp
<dominikh> if it is /(.+?)foo/, he wants ".+*"
<Rakko> .+? rather
<Rakko> actually I don't care that much about cases that use wildcards
<Rakko> ooh, I know. I'll just generate random strings to match against it, until I find one
<dominikh> yesyes, excuse my typo :P
<dominikh> you could write a regexp that matches your regexp.
<dominikh> enjoy.
<lianj> great idea
<banisterfiend> Rakko: i dont know if it's relevant, but there's a project that generates strings which satisfy a given regex
<Rakko> Yo dawg! I heard you like regexps
<dominikh> banisterfiend: way more amazing are projects that generate regexps that match a set of strings :)
<Rakko> banisterfiend: yes? go on
<banisterfiend> Rakko: nah that's it
<Rakko> what's it called?
<banisterfiend> not telling, out of spite
<banisterfiend> :P
<Rakko> aw
<banisterfiend> one sec
<Rakko> why thank you
<Rakko> this looks useful for scrabble/crossword words
<Rakko> oh, I mean "words with friends"
<Rakko> I forgot what century this was
tenderlove has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
<dominikh> you mean wordfeud
<Rakko> if that's the thing du jour
gmci has quit [Quit: Computer has gone to sleep.]
gmci has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
woollyams has quit [Quit: Computer has gone to sleep.]
AnarchoTroll has quit [Quit: Leaving]
havenn has quit [Remote host closed the connection]
FluffyCode has joined #ruby-lang
perryh_away is now known as perryh
igotnolegs has joined #ruby-lang
FluffyCode has quit [Remote host closed the connection]
coryf has quit [Remote host closed the connection]
RegEchse has quit [Quit: <3 WeeChat (v0.3.9-dev)]
FluffyCode has joined #ruby-lang
itsmeduncan has joined #ruby-lang
esad has quit [Ping timeout: 256 seconds]
esad has joined #ruby-lang
savage- has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
seanstickle has quit [Quit: seanstickle]
deevil has joined #ruby-lang
deevil has left #ruby-lang [#ruby-lang]
FluffyCode has quit [Remote host closed the connection]
itsmeduncan has quit [Quit: itsmeduncan]
savage- has quit [Remote host closed the connection]
esad has quit [Quit: Computer has gone to sleep.]
woollyams has joined #ruby-lang
t9225 has quit [Remote host closed the connection]
t47227 has joined #ruby-lang
banisterfiend has quit [Remote host closed the connection]
banisterfiend has joined #ruby-lang
neocoin has joined #ruby-lang
jkprg has quit [Quit: jkprg]
macmartine has joined #ruby-lang
vertroa has quit [Ping timeout: 272 seconds]
banisterfiend has quit [Ping timeout: 240 seconds]
jkprg has joined #ruby-lang
ChadStudmuffin has quit [Ping timeout: 244 seconds]
ChadStudmuffin has joined #ruby-lang
vertroa has joined #ruby-lang
banisterfiend has joined #ruby-lang
savage- has joined #ruby-lang
esad has joined #ruby-lang
esad has quit [Client Quit]
towski has joined #ruby-lang
t47227 has quit [Remote host closed the connection]
t36663 has joined #ruby-lang
towski has quit [Remote host closed the connection]
woollyams has quit [Quit: Computer has gone to sleep.]
reactormonk_ has joined #ruby-lang
reactormonk_ has left #ruby-lang [#ruby-lang]
reactormonk has joined #ruby-lang
<reactormonk> testing...
<wmoxam> TEST FAIL
gokul has quit [Quit: Leaving]
havenn has joined #ruby-lang
vertroa has quit [Remote host closed the connection]
banisterfiend has quit [Remote host closed the connection]
banisterfiend has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
macmartine has quit [Quit: Computer has gone to sleep.]
banisterfiend has quit [Ping timeout: 246 seconds]
reactormonk has quit [Ping timeout: 276 seconds]
havenn has quit [Remote host closed the connection]
t36663 has quit [Remote host closed the connection]
t90199 has joined #ruby-lang
havenn has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
jkprg_ has joined #ruby-lang
WillMarshall has joined #ruby-lang
srbartlett has quit [Ping timeout: 244 seconds]
mistym has quit [Remote host closed the connection]
jkprg has quit [Read error: Connection reset by peer]
jkprg_ is now known as jkprg
banisterfiend has joined #ruby-lang
srbartlett has joined #ruby-lang
ChadStudmuffin has quit [Ping timeout: 240 seconds]
ChadStudmuffin has joined #ruby-lang
ramonmaruko has quit [Quit: Leaving.]
reactormonk has joined #ruby-lang
<reactormonk> n ruby
ryanf has joined #ruby-lang
ramonmaruko has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
stardiviner has joined #ruby-lang
banisterfiend has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
lsegal has joined #ruby-lang
lsegal has quit [Client Quit]
codewrangler has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
havenn has joined #ruby-lang
reactormonk has quit [Ping timeout: 276 seconds]
agile has joined #ruby-lang
reactormonk has joined #ruby-lang
banisterfiend has joined #ruby-lang
anannie has quit [Remote host closed the connection]
ChadStudmuffin has quit [Ping timeout: 265 seconds]
burgestrand has joined #ruby-lang
Sambalero has joined #ruby-lang
jkprg has quit [Read error: Connection reset by peer]
jkprg has joined #ruby-lang
Sambalero has quit [Remote host closed the connection]
Sambalero has joined #ruby-lang
Axsuul has quit [Ping timeout: 272 seconds]
Axsuul has joined #ruby-lang
Axsuul has quit [Read error: Connection reset by peer]
Axsuul has joined #ruby-lang
reactormonk has quit [Read error: Operation timed out]
agib has joined #ruby-lang
woollyams has joined #ruby-lang
yxhuvud has joined #ruby-lang
havenn has quit [Remote host closed the connection]
|Vargas| has joined #ruby-lang
|Vargas| has joined #ruby-lang
|Vargas| has quit [Changing host]
freak1 has joined #ruby-lang
freak1 has left #ruby-lang [#ruby-lang]
reactormonk has joined #ruby-lang
fgomez has joined #ruby-lang
Sambalero has quit [Remote host closed the connection]
Fullmoon has joined #ruby-lang
Fullmoon has quit [Client Quit]
fgomez has quit [Read error: Connection reset by peer]
banisterfiend has quit [Ping timeout: 276 seconds]
lsegal has joined #ruby-lang
jackhammer2022 has quit []
burgestrand has quit [Quit: Leaving.]
burgestrand has joined #ruby-lang
FastJack has joined #ruby-lang
mytrile has joined #ruby-lang
zmack has joined #ruby-lang
Defusal_ has quit [Read error: Connection reset by peer]
Defusal has joined #ruby-lang
Defusal has joined #ruby-lang
Defusal has quit [Changing host]
woollyams has quit [Read error: Connection reset by peer]
Z33K|Lux has quit []
banisterfiend has joined #ruby-lang
woollyams has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
t90199 has quit [Remote host closed the connection]
t80972 has joined #ruby-lang
burgestrand has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
woollyams has quit [Quit: Computer has gone to sleep.]
WillMarshall has quit [Read error: Connection reset by peer]
burgestrand has quit [Quit: Leaving.]
ChadStudmuffin has joined #ruby-lang
gurps has joined #ruby-lang
eyda|mon has joined #ruby-lang
Rakko has quit [Quit: Bye]
gja has joined #ruby-lang
havenn has joined #ruby-lang
workmad3 has joined #ruby-lang
havenn has quit [Ping timeout: 245 seconds]
ChadStudmuffin has quit [Ping timeout: 265 seconds]
Hakon has quit [Quit: Leaving...]
stardiviner has quit [Ping timeout: 260 seconds]
workmad3 has quit [Ping timeout: 246 seconds]
igotnolegs has quit [Quit: Computer has gone to sleep.]
dhruvasagar has joined #ruby-lang
thone has joined #ruby-lang
achamian has joined #ruby-lang
thone_ has quit [Ping timeout: 276 seconds]
gja has quit [Quit: This computer has gone to sleep]
Criztian has joined #ruby-lang
ryanf has quit [Quit: leaving]
srbartlett has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
cirwin has quit [Ping timeout: 276 seconds]
sandbags has joined #ruby-lang
stardiviner has joined #ruby-lang
solars has joined #ruby-lang
Hakon has joined #ruby-lang
vmoravec has joined #ruby-lang
ando has joined #ruby-lang
ando has quit [Client Quit]
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
dc5ala has joined #ruby-lang
jkprg_ has joined #ruby-lang
charliesome has joined #ruby-lang
jkprg has quit [Read error: Connection reset by peer]
jkprg_ is now known as jkprg
yats has joined #ruby-lang
cdt has joined #ruby-lang
qwerxy has joined #ruby-lang
srbartlett has joined #ruby-lang
deryl has quit [Quit: deryl]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
t80972 has quit [Remote host closed the connection]
t64168 has joined #ruby-lang
workmad3 has joined #ruby-lang
Hakon has quit [Ping timeout: 260 seconds]
qwerxy has quit [Quit: offski]
judofyr has joined #ruby-lang
kaiwren has joined #ruby-lang
runeb has joined #ruby-lang
chendo_ has quit [Ping timeout: 240 seconds]
mojacc has joined #ruby-lang
chendo_ has joined #ruby-lang
toretore has joined #ruby-lang
mojacc has quit [Remote host closed the connection]
zz_chrismcg is now known as chrismcg
chendo_ has quit [Ping timeout: 240 seconds]
t64168 has quit [Remote host closed the connection]
t72690 has joined #ruby-lang
chendo_ has joined #ruby-lang
rolfb has joined #ruby-lang
<dreamhawk> whats the meaning if #{ } containers? I dont understand it :)
<banisterfiend> dreamhawk: interpolation
<banisterfiend> x = 10
<banisterfiend> puts "hello your fave number is #{x}"
<judofyr> dreamhawk: run the Ruby code, insert the result in the string
<judofyr> dreamhawk: "1 + 1 = #{1 + 1}"
<dreamhawk> banisterfiend: so basically (to translate from PHP), "Your fav-number is ". $foo ." !"; -> "Your fav-number is #{foo}" ?
<banisterfiend> dreamhawk: im not a PHP programmer
<judofyr> dreamhawk: yes
<dreamhawk> judofyr: ty
achamian has quit [Read error: Connection reset by peer]
<judofyr> dreamhawk: you can do the same in Ruby too: "Your fav-number is " + (foo.to_s) + "!"
<judofyr> you just have to be explicit about the typing
<judofyr> which makes interpolation more useful
<dreamhawk> Ok :)
<judofyr> dreamhawk: doesn't "Your fav-number is $foo" also work in PHP?
achamian has joined #ruby-lang
postmodern has quit [Quit: Leaving]
<rue> banisterfiend: Are too, don’t lie
<dreamhawk> judofyr: well, it did... But i don't code PHP like that :). I prefer . " " .
<banisterfiend> rue: u r
<judofyr> dreamhawk: in Ruby, interpolation is consider a good practice. #{} is not that common elsewhere, so it's rarely a problem anyway
<dreamhawk> judofyr: the only problem with #{} that i have, is that i always press the wrong buttons , like £{} or #[} or something... rather disturbing ;D
chendo_ has quit [Ping timeout: 244 seconds]
<rue> dreamhawk: Aww, some EU key layout?
<rue> All EU keyboards suck…
heftig has quit [Ping timeout: 240 seconds]
<judofyr> yeah, I really need to learn US keyboard
<judofyr> \ is like three keypresses…
<judofyr> same for { and }
<judofyr> ( ) [ ] are all two :(
chendo_ has joined #ruby-lang
<rue> \ is one, but it’s awkwardly placed on the left… {} you do need shift for
<Mon_Ouie> All those you cited are two here (alt gr + something)
<judofyr> only one for æ, ø, å
<judofyr> \o/
<judofyr> very useful when programming…
<judofyr> def æ; end
<rue> Admittedly, some Finnish sentences are pretty bad when I have to do cmd-u-{a,o} for ä, ö…
<judofyr> we have one key for ¨
<judofyr> so ä is just two presses
<rue> And by cmd I mean alt
<judofyr> even though we never actually use ¨ in Norwegian
<rue> Norwegia is weird like that
<dreamhawk> rue: sv-latin1 :)
<dreamhawk> judofyr: yeah, i've learnt the basic us-keyboardsettings.. well, atleast so i can change keyboard that match my own in linux ^^
<judofyr> rue: hm. you're Finnish? didn't knew that…
tenderlove has joined #ruby-lang
t72690 has quit [Remote host closed the connection]
t21795 has joined #ruby-lang
tenderlove has quit [Ping timeout: 246 seconds]
apeiros_ has quit [Ping timeout: 245 seconds]
perryh is now known as perryh_away
kaiwren has quit [Quit: kaiwren]
wallerdev has quit [Quit: wallerdev]
diegoviola has joined #ruby-lang
fish_ has joined #ruby-lang
<chris2> i use capslock as special character modifier, and us else
judofyr has quit [Read error: Connection reset by peer]
<fish_> I've wrote a little tcp2irc 'proxy'. this takes a string from the tcp connection and sends it to irc
judofyr has joined #ruby-lang
<fish_> via eventmachine
<fish_> but I'm not sure how to handle connection errors: when the reactor sends data and the connection dies, the data is lost. I like to reconnect and resent that data
<diegoviola> what's the difference with executing a rake task from your code in order to process a background job versus using something like resque for background processing? I understand that resque uses fork() to fork a child process and rake will create a new process, but what's the difference?
<fish_> I thought about saving the last message in a instance variable
nazty has joined #ruby-lang
<fish_> but then I still need to figure out whether the message got send or not. on connection error em calls unbind() but I don't know if that happened before or after reactor tried to send the message
t21795 has quit [Remote host closed the connection]
t36891 has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
cantonic has joined #ruby-lang
dan|el has joined #ruby-lang
nazty has quit [Ping timeout: 240 seconds]
eyda|mon has quit [Ping timeout: 268 seconds]
apeiros_ has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
Hakon has joined #ruby-lang
S1kx has joined #ruby-lang
burgestrand has joined #ruby-lang
kaiwren has joined #ruby-lang
Guedes has joined #ruby-lang
Guedes has joined #ruby-lang
dRbiG has quit [Ping timeout: 240 seconds]
kaiwren has quit [Read error: Connection reset by peer]
kaiwren_ has joined #ruby-lang
dRbiG has joined #ruby-lang
deryl has joined #ruby-lang
stardiviner has joined #ruby-lang
stardiviner has quit [Client Quit]
heftig has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
t36891 has quit [Remote host closed the connection]
t16815 has joined #ruby-lang
Axsuul has quit [Ping timeout: 244 seconds]
Jake232 has joined #ruby-lang
laszlokorte has joined #ruby-lang
laszlokorte has quit [Client Quit]
laszlokorte has joined #ruby-lang
d3vic3 has joined #ruby-lang
dRbiG has quit [Ping timeout: 245 seconds]
dRbiG has joined #ruby-lang
hahuang65 has quit [Quit: Computer has gone to sleep.]
heftig has quit [Read error: Connection reset by peer]
tbuehlmann has joined #ruby-lang
heftig has joined #ruby-lang
dan|el has quit [Ping timeout: 248 seconds]
jaylevitt has joined #ruby-lang
rohit has joined #ruby-lang
Jay_Levitt has quit [Ping timeout: 265 seconds]
laszlokorte has quit [Read error: Connection reset by peer]
laszlokorte has joined #ruby-lang
dan|el has joined #ruby-lang
yats has quit [Read error: Connection reset by peer]
yats has joined #ruby-lang
sepp2k1 has quit [Quit: Leaving.]
yats has quit [Read error: Connection reset by peer]
yats has joined #ruby-lang
cantonic has quit [Read error: Connection reset by peer]
mwjcomputing has joined #ruby-lang
dhruvasagar has quit [Remote host closed the connection]
laszlokorte has quit [Remote host closed the connection]
laszlokorte has joined #ruby-lang
woollyams has joined #ruby-lang
<erikh> anyone around?
<bnagy> why? You want to know if you can burgle our houses?
<bnagy> I'm onto you erikh
<erikh> haha
<erikh> bnagy: mind looking over an algo for me?
<bnagy> sure
<erikh> I've already sent it off, it's a programming challenge
<bnagy> beats workin
<erikh> basically the file that's read contains comma separated band names, several on a line
<erikh> the goal is to find pairs and report the occurence of pairs over 50 in the file (1000 lines)
<erikh> comments at the top are a discussion of it
<erikh> just tell me how retarded it is
<erikh> :)
<bnagy> can you add a bit of the input to the gist?
<erikh> yeah
<yorickpeterse> I'd say the biggest problem here is reading the file itself
<yorickpeterse> At least in this particular example
<erikh> yeah it's not fast
<yorickpeterse> Is there a chance for artist names containing a comma?
<yorickpeterse> If not you could just read the file byte by byte and create a new artist when you find a ,
<bnagy> it's certainly confusing, to me :/
<yorickpeterse> It will require some more code but it should lower down the memory usage from reading the file significantly
<erikh> nah, it's normalized
<judofyr> erikh: I don't quite get what the code at 39-46. iterating and pushing to the same array make my head hurt…
<erikh> it just cycles the list
<erikh> circular linked list style
<bnagy> yeah me too - pushing and shifting with an until empty loop
<erikh> nah, the empty case is for lines with only one band
dhruvasagar has joined #ruby-lang
<judofyr> erikh: something like [1, 2, 3, 4].combination(2).to_a ?
<bnagy> so we're looking for bands that are associated with other bands?
<erikh> correct
<injekt> erikh: are you trying to optimize it?
<erikh> injekt: nah, I've already sent it off.
<injekt> kk
<bnagy> and all bands on one line are associated with each other
<erikh> I'm mostly asking for the sake of having my head checked
<erikh> I have another predictive solution now, but it's not mine
<bnagy> I like judofyr's way :/
<bnagy> it would be super readable - I dunno if it's significantly lower order than yours
<erikh> i'm really not looking for readability tweaks
<erikh> I just took a full index approach
<erikh> I'd like to know of other apporaches I guess.
<bnagy> ok well it's naively a graph
<erikh> eh, sort of
lcdhoffman has joined #ruby-lang
<erikh> it's a compound index
<bnagy> directed I guess
<bnagy> no definitely
<bnagy> like if Beatles is a node, then all the edges from Beatles to another band are one of your pairs
<erikh> ah, gotcha
<erikh> this kind of shit I am really weak on
<bnagy> so if I needed to do tricky stuff I'd represent it as a graph
<erikh> which is why I'm asking at all. if this were "hey, I need you to asynchronously manage 3000 socket connections" I'd be all, "hell yeah!"
<bnagy> but that would only be for second order I think
<judofyr> bnagy: well, he's actually already representing it as a graph
<erikh> I thought about doing it as a heap
<bnagy> judofyr: implictly, yeah
<judofyr> " graph is an ordered pair G = (V, E) comprising a set V of vertices or nodes together with a set E of edges or lines, which are 2-element subsets of V"
<judofyr> common is just E
achiu has quit [Ping timeout: 246 seconds]
<bnagy> wait is it directed? is Beatles->Stones same as Stones->Beatles?
cantonic has joined #ruby-lang
<erikh> yes
<erikh> that's kind of why I boggled
<bnagy> yes, cause you sorted them when you made those keys
<bnagy> ok
<bnagy> so it's not directed
<erikh> you can treat inner_common as a Set with no difference in functionality
<bnagy> which is even more simple
Criztian has quit [Remote host closed the connection]
Criztian has joined #ruby-lang
<bnagy> but I can't find any huge benefit to any graph stuff for this simple exercise
<bnagy> we're just looking at first order associations
<bnagy> what do you mean by predictive?
<erikh> yeah, so something I left out is that predictive approaches are ok if you can specify the accuracy
<erikh> e.g., not calculating the entire data set.
<judofyr> ah, like, bloom filters?
<erikh> maybe?
<erikh> like I said, ENOCOMPUTERSCIENCE
stayarrr has joined #ruby-lang
<erikh> I kind of stuck to what I knew
<erikh> this is a database problem and you solve this in a database by creating an index
<erikh> so that's what I did more or less
jxie has quit [Quit: leaving]
<rue> Kabloom filters
<bnagy> I dunno if bloom filters are exactly right here
<bnagy> but I may have graphs on the brain
Criztian has quit [Ping timeout: 244 seconds]
woollyams has quit [Quit: Computer has gone to sleep.]
<erikh> anyhow, brb. thanks for looking at it.
JoshWines has quit [Ping timeout: 276 seconds]
kaiwren has joined #ruby-lang
kaiwren_ has quit [Ping timeout: 240 seconds]
achiu has joined #ruby-lang
mahlon has quit [Read error: No route to host]
dan|el has quit [Ping timeout: 240 seconds]
ged has quit [Read error: Connection reset by peer]
ged_ has joined #ruby-lang
mahlon has joined #ruby-lang
jaylevitt has quit [Quit: jaylevitt]
JoshWines has joined #ruby-lang
m3nd3s has joined #ruby-lang
JoshWines has quit [Ping timeout: 245 seconds]
laszlokorte_ has joined #ruby-lang
rohit has quit [Quit: Leaving]
laszlokorte has quit [Ping timeout: 260 seconds]
esad has joined #ruby-lang
m3nd3s has quit [Read error: Connection timed out]
dejongge has joined #ruby-lang
carloslopes has joined #ruby-lang
JoshWines has joined #ruby-lang
t16815 has quit [Remote host closed the connection]
t53646 has joined #ruby-lang
d-snp has joined #ruby-lang
bryanl has quit [Ping timeout: 265 seconds]
codewrangler has joined #ruby-lang
JoshWines has quit [Quit: Leaving]
lcdhoffman has quit [Quit: lcdhoffman]
andrewhl has joined #ruby-lang
Jay_Levitt has joined #ruby-lang
sockmonk has joined #ruby-lang
bryanl has joined #ruby-lang
dhruvasagar has quit [Quit: leaving]
dhruvasagar has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
lcdhoffman has joined #ruby-lang
achamian has quit [Remote host closed the connection]
mahlon_ has joined #ruby-lang
MrWGW has quit [Ping timeout: 240 seconds]
ged__ has joined #ruby-lang
ged_ has quit [Read error: Connection reset by peer]
MrWGW has joined #ruby-lang
mahlon has quit [Ping timeout: 240 seconds]
ReinH has quit [Ping timeout: 240 seconds]
ReinH has joined #ruby-lang
hynkle has joined #ruby-lang
cantonic has quit [Quit: cantonic]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
tbuehlmann has quit []
yats has quit [Ping timeout: 260 seconds]
yats has joined #ruby-lang
lun__ has quit [Remote host closed the connection]
<zzak> good morning!
<judofyr> morning zzak!
<injekt> hai
t53646 has quit [Remote host closed the connection]
t34590 has joined #ruby-lang
banisterfiend has quit [Read error: Connection reset by peer]
cantonic has joined #ruby-lang
Austin__ has joined #ruby-lang
yats_ has joined #ruby-lang
yats_ has quit [Remote host closed the connection]
banisterfiend has joined #ruby-lang
yats has quit [Ping timeout: 244 seconds]
rolfb has quit [Quit: Linkinus - http://linkinus.com]
lele has quit [Ping timeout: 245 seconds]
lele has joined #ruby-lang
ryez has joined #ruby-lang
runeb has quit [Remote host closed the connection]
bryancp has joined #ruby-lang
mistym has quit [Remote host closed the connection]
lun_ has joined #ruby-lang
achamian has joined #ruby-lang
<rue> Gadzooks!
retro|cz has joined #ruby-lang
t34590 has quit [Remote host closed the connection]
beawesomeinstead has joined #ruby-lang
t73865 has joined #ruby-lang
esad has quit [Quit: Computer has gone to sleep.]
bytephilia has joined #ruby-lang
jxie has joined #ruby-lang
lun_ has quit [Remote host closed the connection]
Sambalero has joined #ruby-lang
dan|el has joined #ruby-lang
stayarrr has quit [Ping timeout: 244 seconds]
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
judofyr_ has joined #ruby-lang
judofyr has quit [Read error: Connection reset by peer]
Jake232 has quit [Quit: Computer has gone to sleep.]
crankharder has joined #ruby-lang
kaiwren has quit [Quit: kaiwren]
publicvoid has joined #ruby-lang
Elixor has joined #ruby-lang
ConstantineXVI has quit [Quit: quit]
Elixor has quit [Client Quit]
ruby-lang550 has joined #ruby-lang
dan|el has quit [Ping timeout: 246 seconds]
andrewhl has quit [Remote host closed the connection]
Elixor has joined #ruby-lang
ruby-lang550 has quit [Quit: Page closed]
Elixor has quit [Ping timeout: 245 seconds]
neocoin has quit [Remote host closed the connection]
judofyr_ has left #ruby-lang [#ruby-lang]
judofyr has joined #ruby-lang
vesan has quit [Read error: Connection reset by peer]
vesan has joined #ruby-lang
vesan has quit [Read error: Connection reset by peer]
erichmenge has joined #ruby-lang
RegEchse has joined #ruby-lang
neocoin has joined #ruby-lang
vesan has joined #ruby-lang
laszlokorte_ has quit [Quit: laszlokorte_]
ruby-lang217 has joined #ruby-lang
banisterfiend has quit [Read error: Connection reset by peer]
<foucist> Gazdooks!
emanon_ has quit [Ping timeout: 252 seconds]
<judofyr> \o\ /o/
banisterfiend has joined #ruby-lang
willdrew has joined #ruby-lang
esad has joined #ruby-lang
emanon_ has joined #ruby-lang
tubbo has joined #ruby-lang
ruby-lang217 has quit [Ping timeout: 245 seconds]
dous has quit [Remote host closed the connection]
bytephilia has quit [Remote host closed the connection]
Leeky_afk is now known as Leeky
deryl has quit [Quit: deryl]
gsav has joined #ruby-lang
dous has joined #ruby-lang
dous has joined #ruby-lang
dous has quit [Changing host]
andrewhl has joined #ruby-lang
sandbags has quit [Remote host closed the connection]
banisterfiend has quit [Read error: Connection reset by peer]
|Vargas| has quit [Quit: ...]
banisterfiend has joined #ruby-lang
areil has joined #ruby-lang
dan|el has joined #ruby-lang
kvirani has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 240 seconds]
coryf has joined #ruby-lang
deryl has joined #ruby-lang
dan|el has quit [Ping timeout: 252 seconds]
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby-lang
vesan has quit [Read error: Connection reset by peer]
runeb has joined #ruby-lang
akira989 has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
zmack has quit [Remote host closed the connection]
JoelMcCracken has joined #ruby-lang
mahlon_ is now known as mahlon
d3vic3 has quit [Quit: leaving]
vesan has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
ryez has quit [Ping timeout: 245 seconds]
carloslopes has quit [Ping timeout: 240 seconds]
t73865 has quit [Remote host closed the connection]
t35494 has joined #ruby-lang
erichmenge has quit [Quit: Be back later]
savage- has quit [Remote host closed the connection]
wpaulson has joined #ruby-lang
tenderlove has joined #ruby-lang
workmad3 has quit [Ping timeout: 244 seconds]
m3nd3s has joined #ruby-lang
eschwartz has joined #ruby-lang
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
Skif has quit [Ping timeout: 240 seconds]
havenn has joined #ruby-lang
jasiek has quit [Read error: Connection reset by peer]
jasiek has joined #ruby-lang
solars has quit [Ping timeout: 248 seconds]
Muz has quit [Ping timeout: 245 seconds]
[dmp] has quit [Ping timeout: 245 seconds]
qwerxy has joined #ruby-lang
[dmp] has joined #ruby-lang
Muz has joined #ruby-lang
hynkle has quit [Quit: Computer has gone to sleep.]
esad has quit [Ping timeout: 276 seconds]
ohsix has quit [Ping timeout: 256 seconds]
qwerxy has quit [Quit: offski]
rking has quit [Ping timeout: 256 seconds]
esad has joined #ruby-lang
qwerxy has joined #ruby-lang
wallerdev has joined #ruby-lang
joast has quit [Quit: Leaving.]
savage- has joined #ruby-lang
ohsix has joined #ruby-lang
deryl has quit [Quit: deryl]
rking has joined #ruby-lang
laszlokorte has joined #ruby-lang
qwerxy has quit [Quit: offski]
judofyr has quit [Remote host closed the connection]
towski has joined #ruby-lang
workmad3 has joined #ruby-lang
butchanton has joined #ruby-lang
reactormonk has quit [Ping timeout: 245 seconds]
Oleano has joined #ruby-lang
joast has joined #ruby-lang
emanon_ has quit [Ping timeout: 248 seconds]
apeiros_ has joined #ruby-lang
itsmeduncan has joined #ruby-lang
havenn has quit [Remote host closed the connection]
Oleano has quit [Ping timeout: 245 seconds]
deryl has joined #ruby-lang
havenn has joined #ruby-lang
apeiros_ has quit [Ping timeout: 265 seconds]
Leeky is now known as Leeky_afk
reactormonk has joined #ruby-lang
t35494 has quit [Remote host closed the connection]
gsav has quit [Read error: Connection reset by peer]
Criztian has joined #ruby-lang
dous has quit [Remote host closed the connection]
t90197 has joined #ruby-lang
gsav has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
cirenyc has joined #ruby-lang
hynkle has joined #ruby-lang
cdt has quit [Quit: Ex-Chat]
neocoin has quit [Remote host closed the connection]
qwerxy has joined #ruby-lang
lsegal has joined #ruby-lang
havenn has quit [Remote host closed the connection]
sandbags has joined #ruby-lang
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
jtoy has joined #ruby-lang
carloslopes has joined #ruby-lang
carloslopes has quit [Client Quit]
carloslopes has joined #ruby-lang
cirwin has joined #ruby-lang
havenn has joined #ruby-lang
benanne has joined #ruby-lang
havenn has quit [Remote host closed the connection]
s1n4 has joined #ruby-lang
havenn has joined #ruby-lang
coryf has quit [Remote host closed the connection]
jtoy_ has joined #ruby-lang
coryf has joined #ruby-lang
indstry has joined #ruby-lang
qwerxy has quit [Quit: offski]
jtoy has quit [Ping timeout: 245 seconds]
jtoy_ is now known as jtoy
indstry has joined #ruby-lang
indstry has quit [Client Quit]
t90197 has quit [Remote host closed the connection]
t24371 has joined #ruby-lang
runeb has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
havenn has joined #ruby-lang
alvaro_o has joined #ruby-lang
andrewhl_ has joined #ruby-lang
mrsolo has joined #ruby-lang
andrewhl has quit [Ping timeout: 265 seconds]
havenn has quit [Ping timeout: 268 seconds]
macmartine has joined #ruby-lang
deryl has quit [Quit: deryl]
Skif has joined #ruby-lang
CoverSlide has joined #ruby-lang
virunga has joined #ruby-lang
laszlokorte has quit [Ping timeout: 260 seconds]
eschwartz has quit [Ping timeout: 240 seconds]
t24371 has quit [Remote host closed the connection]
t45105 has joined #ruby-lang
gmci has quit [Quit: Computer has gone to sleep.]
gmci has joined #ruby-lang
Jake232 has joined #ruby-lang
qwerxy has joined #ruby-lang
workmad3 has quit [Ping timeout: 248 seconds]
dejongge has quit [Quit: Leaving.]
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby-lang
laszlokorte has joined #ruby-lang
havenn has joined #ruby-lang
hynkle has quit [Ping timeout: 244 seconds]
dous has joined #ruby-lang
dous has joined #ruby-lang
dous has quit [Changing host]
dous has quit [Ping timeout: 252 seconds]
tbuehlmann has joined #ruby-lang
hynkle has joined #ruby-lang
tenku has joined #ruby-lang
eschwartz has joined #ruby-lang
tenku has quit [Remote host closed the connection]
AlHafoudh has joined #ruby-lang
Skif has quit [Ping timeout: 240 seconds]
havenn has quit [Ping timeout: 244 seconds]
havenn has joined #ruby-lang
laszlokorte_ has joined #ruby-lang
laszlokorte has quit [Read error: Connection reset by peer]
laszlokorte_ has quit [Client Quit]
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
jtoy has quit [Read error: Connection reset by peer]
banisterfiend has quit [Read error: Connection reset by peer]
jtoy has joined #ruby-lang
havenn has quit [Remote host closed the connection]
solars has joined #ruby-lang
havenn has joined #ruby-lang
banisterfiend has joined #ruby-lang
havenn has quit [Remote host closed the connection]
dc5ala has quit [Quit: Ex-Chat]
towski has quit [Remote host closed the connection]
eschwartz has quit [Remote host closed the connection]
Skif has joined #ruby-lang
publicvoid_ has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
dan|el has joined #ruby-lang
hynkle has quit [Ping timeout: 256 seconds]
tenku has joined #ruby-lang
cantonic has quit [Ping timeout: 260 seconds]
t45105 has quit [Remote host closed the connection]
t36288 has joined #ruby-lang
rippa has joined #ruby-lang
hynkle has joined #ruby-lang
Sambalero has quit [Remote host closed the connection]
brianpWins has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
totallymike has joined #ruby-lang
s1n4 has quit [Quit: leaving]
qwerxy has quit [Quit: offski]
hynkle has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby-lang
totallymike is now known as Guest89690
dhruvasagar is now known as Guest5934
mistym_ has joined #ruby-lang
mistym_ has quit [Remote host closed the connection]
laszlokorte has joined #ruby-lang
coryf has quit [Remote host closed the connection]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
dan|el has quit [Ping timeout: 245 seconds]
setmeaway has quit [Quit: Leaving]
banisterfiend has quit [Read error: Connection reset by peer]
Axsuul has joined #ruby-lang
coryf has joined #ruby-lang
banisterfiend has joined #ruby-lang
havenn has joined #ruby-lang
hynkle has joined #ruby-lang
t36288 has quit [Remote host closed the connection]
t94086 has joined #ruby-lang
havenn has quit [Ping timeout: 256 seconds]
rippa has quit [Ping timeout: 240 seconds]
dous has joined #ruby-lang
dan|el has joined #ruby-lang
rippa has joined #ruby-lang
erichmenge has joined #ruby-lang
erichmenge has quit [Client Quit]
dous has quit [Ping timeout: 252 seconds]
erichmenge has joined #ruby-lang
erichmenge has quit [Client Quit]
erichmenge has joined #ruby-lang
radge has joined #ruby-lang
rolfb has joined #ruby-lang
banisterfiend has quit [Read error: Connection reset by peer]
erichmenge has quit [Quit: Linkinus - http://linkinus.com]
d3vic3 has joined #ruby-lang
banisterfiend has joined #ruby-lang
erichmenge has joined #ruby-lang
t94086 has quit [Remote host closed the connection]
t95477 has joined #ruby-lang
esad has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
rolfb has quit [Quit: Linkinus - http://linkinus.com]
burgestrand has joined #ruby-lang
havenn has joined #ruby-lang
burgestrand has quit [Ping timeout: 240 seconds]
havenn has quit [Ping timeout: 245 seconds]
qwerxy has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
Jake232 has quit [Read error: Connection reset by peer]
jtoy has quit [Quit: jtoy]
<abstr4ct> got this pathing that i feed into nokogiri and it works great except the data is smashed together without a space... anyone got a suggestion on how to interject a space? EastVillageM = '//b[text()="Monday:"]/following::div[1] | //b[text()="Monday:"]/following::div[2]'
<abstr4ct> its the Pipe where i think i need it
banisterfiend has quit [Read error: Connection reset by peer]
qpingu has joined #ruby-lang
banisterfiend has joined #ruby-lang
wallerdev has joined #ruby-lang
elux has joined #ruby-lang
mwjcomputing has quit [Quit: Leaving]
<rue> Think there was a switch for preserving whitespace
Jake232 has joined #ruby-lang
<rue> Or maybe you just want grouping?
banisterfiend has quit [Read error: Connection reset by peer]
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
banisterfiend has joined #ruby-lang
<apeiros_> abstr4ct: what data? you only show us how you construct the xpath
erichmenge has quit [Quit: Linkinus - http://linkinus.com]
<rue> "(expr1)|(expr2)" # Hunch
erichmenge has joined #ruby-lang
erichmenge has quit [Client Quit]
erichmenge has joined #ruby-lang
jtoy has joined #ruby-lang
t95477 has quit [Remote host closed the connection]
t25904 has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
EvilJStoker has quit [Excess Flood]
dan|el has quit [Ping timeout: 240 seconds]
banisterfiend has quit [Read error: Connection reset by peer]
<hakunin> what's the sanest/safest way to define a simple reader on an object in some method's body? def something(obj); def obj.foo; 'foo' end end
Skif has quit [Ping timeout: 240 seconds]
banisterfiend has joined #ruby-lang
Skif has joined #ruby-lang
<hakunin> just a sanity check, any problems with that? ^^
<hakunin> (very specific use case here)
macmartine has joined #ruby-lang
setmeaway has joined #ruby-lang
<rue> Sure
<erikh> HELLO
<rue> It’d be nicer to ask it to do so itself, of course
<hakunin> rue: i know, it's a variation of an io object that needs original_filename stubbed on it though
<zzak> ACK
<hakunin> rue: since i'm using stringio/file smart buffer no way to tell which io object, and don't want to extend internals
<rue> You’re potentially overriding it?
<hakunin> rue: it doesn't have it
qwerxy has quit [Quit: offski]
<hakunin> rue: but paperclip gem checks for it before sticking "stringio.txt" in there
<hakunin> since i'm generating png files from scratch, might as well
<hakunin> tell it it's something.png
lcdhoffman has joined #ruby-lang
<hakunin> rue: anyway, that vs def something(io) io.instance_eval{ def foo; 'foo end }; end
<hakunin> not sure why prefer one
dous has joined #ruby-lang
<rue> Never use eval if you don‘t need to.
<hakunin> guess i don't need a block scope in there
<hakunin> the filename will be hardcoded
<apeiros_> hakunin: if you can, I'd use extend
<apeiros_> hakunin: oh, original_filename on StringIO? sounds like rails & file uploads :)
<hakunin> apeiros_: io.extend(Module.new { def original_filename... ?
<hakunin> apeiros_: : )
<rue> That’s a good point, it’s a little more descriptive than a straight def
<hakunin> apeiros_: kind of, except the source of uploads is my own server that generates pngs and streams them to my self-written buffer which then outputs the io object which is either stringio or file
<apeiros_> hakunin: module WithOriginalFilename; attr_accessor :original_filename; end; …elsewhere in your code… def foo; io.extend WithOriginalFilename; io.original_filename = 'foo'; io; end
<apeiros_> hakunin: exactly the usecase where I did that myself :)
<apeiros_> that and data generators
<rue> ^ Self-documenting is good
laszlokorte has quit [Quit: laszlokorte]
naz has quit [Read error: Connection reset by peer]
dous has quit [Ping timeout: 276 seconds]
<hakunin> apeiros_: looks perfect
akira989 has quit [Remote host closed the connection]
akira989 has joined #ruby-lang
Guest5934 has quit [Ping timeout: 240 seconds]
rmcauley has joined #ruby-lang
EvilJStoker has joined #ruby-lang
qpingu has quit [Quit: Leaving.]
<hakunin> apeiros_: although which do you like better? https://gist.github.com/deff8579b14377461e0d
<hakunin> (if we were hypothetically to geek out on aesthetics)
jtoy has quit [Quit: jtoy]
erics has joined #ruby-lang
dfr|mac has joined #ruby-lang
<hakunin> i guess the extend makes it easier to introspect down the line
<hakunin> but def looks very clear/readable at that exact point
rmcauley has left #ruby-lang [#ruby-lang]
LiquidRain has joined #ruby-lang
<apeiros_> if you want aesthetics you could go with a module OriginalFilename, and have an add_to class method on it which takes 2 args, the object to extend and the new original filename
IPGlider has joined #ruby-lang
<LiquidRain> hey folks; having trouble with regexes. I want multi-line *and* ignore case but Ruby doesn't seem happy with that if the string I'm trying to match isn't multiline.
<eridani> downcase the string
<LiquidRain> simple solution. thanks.
Skif has quit [Ping timeout: 240 seconds]
<apeiros_> hakunin: http://pastie.org/4558119
<eridani> liquidrain: you should file a bug report
<apeiros_> eridani: less efficient
banisterfiend has quit [Read error: Connection reset by peer]
<apeiros_> LiquidRain: care to show an example and explain how "ruby seems not happy"?
<apeiros_> (not a good problem explanation btw.)
<hakunin> apeiros_: :) yeah you could do all kinds of stuff, but those 2 cases in the gist are very direct, just bikeshedding about it a bit
<hakunin> lunchtime
banisterfiend has joined #ruby-lang
<apeiros_> hakunin: I prefer the extend one, mostly a gut thing
<hakunin> apeiros_: thx!
wpaulson has joined #ruby-lang
<apeiros_> eridani: btw., downcase won't work the same either. compare: "Ä".downcase =~ /ä/ vs. "Ä" =~ /ä/i
<LiquidRain> apeiros_: yes, not a good explanation, I found the problem. Ruby doesn't binary-OR options on Regexp.new
<apeiros_> LiquidRain: hu?
<apeiros_> binary-OR options in a regex? what?
<LiquidRain> whoops wrong switch
<apeiros_> um…
<apeiros_> LiquidRain: || is boolean OR
<apeiros_> you want |
<apeiros_> also why do you use Regexp.new? that's so ugly…
kuja has quit [Ping timeout: 244 seconds]
<LiquidRain> that's a very long explanation I won't bother the channel with. :) and the bug I'd file then is that the Regexp docs don't have an example with the right "|"
<apeiros_> LiquidRain: also, //x is not Multiline
<LiquidRain> yes I corrected myself on that
gentz has quit [Ping timeout: 272 seconds]
<apeiros_> drbrain: that's not his issue
<apeiros_> his issue is that there's no example for Regexp.new('hello', Regexp::IGNORECASE | Regexp::MULTILINE)
<drbrain> ah
<apeiros_> they describe it in the docs as 'it should be one or more of the constants … or-ed together.'
<apeiros_> which I'd agree that it's not a very good explanation
<LiquidRain> I went IGNORECASE || MULTILINE
<drbrain> true, if you know C it's fine, but not everybody knows C
<apeiros_> of course to any practiced programmer it will be obvious that they talk about Fixnum#|
<apeiros_> right, that
Guedes is now known as Guedes_out
kuja has joined #ruby-lang
sepp2k has joined #ruby-lang
hynkle has quit [Ping timeout: 252 seconds]
qpingu has joined #ruby-lang
cantonic has joined #ruby-lang
carloslopes has quit [Quit: Leaving.]
gentz has joined #ruby-lang
anjen has joined #ruby-lang
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby-lang
<LiquidRain> well that solved it. thanks.
hynkle has joined #ruby-lang
wpaulson_ has joined #ruby-lang
publicvoid has quit [Ping timeout: 244 seconds]
tenderlove has joined #ruby-lang
<drbrain> LiquidRain: apeiros_: ok, I updated the documentation to have an example of | vs ||
workmad3 has joined #ruby-lang
<LiquidRain> thanks very much drbrain
tenderlo_ has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
hynkle has quit [Ping timeout: 252 seconds]
wpaulson has quit [Ping timeout: 272 seconds]
wpaulson_ is now known as wpaulson
<apeiros_> drbrain: shouldn't that be #=> /dog/ix ?
<drbrain> shit
<apeiros_> and: thanks for improving the docs! :)
<drbrain> I put a mental note in to fix that and it fell out
<apeiros_> hehe, yeah, I know those
tenderlove has quit [Ping timeout: 245 seconds]
cantonic has quit [Quit: cantonic]
<drbrain> ok, fixed
rippa has quit [Ping timeout: 246 seconds]
tndrbt has joined #ruby-lang
sandbags has quit [Remote host closed the connection]
JustinCampbell has joined #ruby-lang
publicvoid has joined #ruby-lang
coryf has quit [Remote host closed the connection]
<abstr4ct> alright i cant figure out why this xpath doesnt work on this page. but works great everywhere else.. http://www.oxfordraleigh.com/index.php/specials '//*[text()="Monday"]/following::span[2]'
laszlokorte has joined #ruby-lang
headius has joined #ruby-lang
<apeiros_> *sob*, when will people learn that "doesn't work" is *USELESS* as a problem description
anjen has quit [Quit: anjen]
cirenyc has quit [Quit: Leaving...]
laszlokorte has quit [Client Quit]
<abstr4ct> ahh
elux has quit [Quit: Bye!]
<abstr4ct> sorry went afk for a second.. let me explain better
ivanoats_ has joined #ruby-lang
cirenyc has joined #ruby-lang
cirenyc has quit [Client Quit]
<abstr4ct> iam trying to use the first part to search for the string monday, then use pathing from there on...
<abstr4ct> and it has worked great for me on other sites, but it is not allowing me to capture the actual content for monday...
postmodern has joined #ruby-lang
<abstr4ct> i am not stuck on this concept, ill take any other ideas..
tenku has quit [Ping timeout: 240 seconds]
hynkle has joined #ruby-lang
<cirwin> abstr4ct: you need to ignore whitespace
<cirwin> [contains(text(), "Monday")]
cantonic has joined #ruby-lang
<abstr4ct> hrm
<abstr4ct> so...
<abstr4ct> /*[contains(text(), "Monday")]/following::span[2]' perhaps...
<abstr4ct> let meh try
t25904 has quit [Remote host closed the connection]
<drbrain> erikh: ping
t9202 has joined #ruby-lang
<abstr4ct> well shit
<abstr4ct> that did it
<abstr4ct> i feel stupid
laszlokorte has joined #ruby-lang
<erikh> drbrain: pong
<abstr4ct> i even searched for the text " monday " and " monday "
<abstr4ct> so i thought i tried and proved it wasnt white spaced
<abstr4ct> spaces...
<drbrain> erikh: I'm going to run RDoc on lots of nodes on the AT&T cloud thing
<erikh> AT&T cloud thing?
<drbrain> erikh: I'm going to use chef-solo to set it up
<erikh> ok
<drbrain> I've used chef before, but is there any new things I should know about?
<drbrain> AT&T has an internal cloud, my new job is to work on it
<erikh> hrm.... let me send you to the wiki
<drbrain> I see talk of this librarian-chef
<erikh> I would strongly suggest using a chef server unless you need the very basics
<drbrain> I've got the chef solo wiki page up
s1n4 has joined #ruby-lang
<erikh> you can use matschaffer/cashion's knife-solo to do some of things a chef server does but not all
LiquidRain has left #ruby-lang ["Leaving."]
<erikh> actually hm. how many nodes are we talking here?
<drbrain> agreed, but I want to ignore a few dependencies while I spike on this
<erikh> avoid librarian unless you really need it
<drbrain> erikh: Coby said I can spawn up to 50
<drbrain> ok!
tbuehlmann has quit [Remote host closed the connection]
<erikh> ok -- I'd take a strong look at knife-solo again, if nothing else to keep it in cache if you need those features
<erikh> as for bootstrapping the machines, chef-solo is a little trickier (knife-solo actually helps with this)
<erikh> if you need specifics on resources or the various data sources feel free to let me know
<erikh> or if you want help
<erikh> I've not got much on my plate this week.
<drbrain> yeah, bootstrapping was one of my questions
<erikh> yeah, sec.
dous has joined #ruby-lang
<erikh> this is how I typically bootstrap a chef server with chef-solo
<drbrain> I mostly need "use X, Y and Z, it'll save you tons of time"
<erikh> right
<erikh> knife-solo is where I'd start
<erikh> you don't need to use the script above but just be aware of what it does and how it works, etc.
<drbrain> oh yeah, this looks great
<drbrain> what's line 9-23 about?
<erikh> ah, so that repo is a bootstrap for chef-enabled OS X machines
<erikh> since i can't distribute the xcode distribution, it needs to be dropped in
<drbrain> with apt-get?
<erikh> the server runs on linux
cirwin has left #ruby-lang [#ruby-lang]
<erikh> the clients are os x
<erikh> the cookbooks in that repo actually build out a nginx server and place that file in the proper spot
<drbrain> oh! s-s-h, not s-h
<erikh> which the clients then fetch during their build
<erikh> :)
<erikh> oh, a note about that script
<erikh> that little hack with the admin line in sudoers breaks, like kernel panics, certain versions of ubuntu
<erikh> anything modern should be fine though
<erikh> I think I saw it on 10.04
<erikh> (repeatedly)
jtoy has joined #ruby-lang
<drbrain> ok
<erikh> the problem with chef-solo is that it's hard to update your boxes
<erikh> first run is easy, but if you need to make any changes it gets infinitely more complicated
llakey has quit [Quit: leaving]
<drbrain> I don't think I care since they're cloud nodes
<erikh> ok, that's a fine requirement
<erikh> just as long as you're aware of it
<ivanoats_> erikh: drbrain: this is cool. I am working on figuring out chef a bit more too. thanks. drbrain if you want to hack on it together in person we could meet up
<drbrain> I'll delete them down at the end of the run
<drbrain> ivanoats_: how about Tuesday?
<erikh> yeah, lots of people get on just fine with chef-solo
dous has quit [Ping timeout: 276 seconds]
<erikh> man, I want to help :(
<drbrain> ivanoats_: I'm going to give my knee a try tomorrow
<ivanoats_> yeah - maybe late afternoon? I have an event tonight so want to see kids tomorrow night
<ivanoats_> knee? what happened?
<drbrain> ivanoats_: sure, at Vivace
<ivanoats_> cool!
<drbrain> I almost rolled my ankle, I thought everything was fine
<erikh> ow
tndrbt has quit [Quit: tndrbt]
<drbrain> the next day it got stiff, then on Friday I stepped off my bottom stair to put my shoes on and it went "pop"
<drbrain> I got about 75 feet towards the bus before I gave up and scheduled a doctor's appointment
<drbrain> turns out something inside is just irritated, not damaged
<drbrain> so I've got powerful NSAIDs to take for two weeks while it heals
<ivanoats_> ouch.
<drbrain> I'm not supposed to go up and down stairs so much… but I have a 3 story house :/
<drbrain> I stayed home today, I'm going to give tomorrow a try
hynkle has quit [Ping timeout: 246 seconds]
t4nkd has joined #ruby-lang
llakey has joined #ruby-lang
hynkle has joined #ruby-lang
chrismcg is now known as zz_chrismcg
hynkle has quit [Client Quit]
gsav has joined #ruby-lang
<ivanoats_> What is the best way of storing data that a gem needs. I'm working on a gem that will store the US Export Control list (about 25,000 records in a CSV), and let you know if a technology is safe to export.
<ivanoats_> so far I've seen storing a file in the users' home directory
<ivanoats_> PStore maybe
<zenspider> 25k csv records isn't much. why not csv?
<erikh> hm
<zenspider> if you need something faster but simple, use marshal
<erikh> it's not that much memory either
<erikh> yeah, I was heading in that direction
t9202 has quit [Remote host closed the connection]
<erikh> no need to keep the csv around if you're just going to import it on require or w/e
<ivanoats_> csv's fine.. yes, i would like it in memory most of the time, but also available when the (rails) sever starts up again
t72227 has joined #ruby-lang
<ivanoats_> there's no other common well known place to store gem info right?
mjbamford has joined #ruby-lang
<erikh> well, it's less about the gem at this point and more about the code
<erikh> IMO of course.
<zenspider> you can put it in the root of your rails app, or in a data dir of your rails dir... or home. if rails specific, I'd leave it in the rails dir
<drbrain> erikh: yeah, knife-solo looks perfect
<erikh> if you're goign to have a static, unchanging data set, no sense importing it on each load
<erikh> err rather, converting
<ivanoats_> k, gonna work on the code a bit more then. I'm trying to 'gemify' it so it's useful for other people… maybe spree etc..
<erikh> drbrain: cool. matschaffer is in #ruby-pro if you still haunt there
<erikh> pretty nice and friendly fellow.
<ivanoats_> export.gov updates it about every few weeks i think
t72227 has quit [Remote host closed the connection]
<ivanoats_> so I need to keep the last modified date I think, and check on the new one
t39302 has joined #ruby-lang
<erikh> ah, I see, so fetching it on change
<ivanoats_> anyway, gonna store it in ENV['HOME']/.export_control or something
<erikh> anyhow it's funemployment naptime
<erikh> bbl
<zenspider> ivanoats: File.expand_path "~/.export_control"
burgestrand has joined #ruby-lang
<zenspider> reads better. works fine. has problems on windoze that haven't defined HOME.... but so does your code
<ivanoats_> will that work on windows (not that I use it, but want my gem to)
<drbrain> zenspider: not on ruby 1.9
<ivanoats_> aha
<ivanoats_> thanks
banisterfiend has quit [Read error: Connection reset by peer]
<zenspider> drbrain: ?
<drbrain> zenspider: File.expand_path '~' works fine on windows with ruby 1.9+
<ivanoats_> cool
<zenspider> we got a wierd on on rubygems lately (iirc) where someone had File.expand_path blow up because HOME was relative... I've not seen that one
banisterfiend has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
<manveru> expand_path... that part of MRI still gives me nightmares :P
mjbamford has quit [Quit: Bye!]
<steveklabnik> all of MRI still gives me nightmares
laszlokorte has quit [Quit: laszlokorte]
AlHafoudh has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Jake232 has quit [Read error: Connection reset by peer]
t39302 has quit [Remote host closed the connection]
t79418 has joined #ruby-lang
Austin__ has quit [Quit: Leaving.]
ivanoats_ has quit [Quit: ivanoats_]
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby-lang
t79418 has quit [Remote host closed the connection]
radge has quit [Ping timeout: 276 seconds]
t47735 has joined #ruby-lang
cantonic has quit [Quit: cantonic]
yxhuvud has quit [Ping timeout: 256 seconds]
laszlokorte has joined #ruby-lang
Hakon has quit [Quit: Leaving...]
lcdhoffman has joined #ruby-lang
lcdhoffman_ has joined #ruby-lang
lcdhoffman has quit [Read error: Connection reset by peer]
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
achamian has quit [Ping timeout: 244 seconds]
macmartine has joined #ruby-lang
woollyams has joined #ruby-lang
d3vic3 has quit [Quit: leaving]
Criztian has quit [Remote host closed the connection]
Criztian has joined #ruby-lang
dejongge has joined #ruby-lang
lsegal has joined #ruby-lang
sockmonk has quit [Ping timeout: 246 seconds]
achamian has joined #ruby-lang
Criztian has quit [Ping timeout: 252 seconds]
woollyams has quit [Quit: Computer has gone to sleep.]
akira989_ has joined #ruby-lang
dous has joined #ruby-lang
butchanton has quit [Quit: Leaving.]
<zenspider> steveklabnik: hah!
akira989 has quit [Ping timeout: 245 seconds]
solars has quit [Ping timeout: 244 seconds]
dous has quit [Ping timeout: 276 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
lcdhoffman_ has quit [Quit: lcdhoffman_]
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby-lang
<zenspider> damn it is a good day... AND not too hot. yay yay yay
<steveklabnik> berlin was so damn hot today
<zenspider> oh. reminds me that we need to go down to derberliner ... om nom nom
<zenspider> steveklabnik: you'll be in madison soon, yes?!? that's a lot of timezones
s0ber_ has joined #ruby-lang
s0ber has quit [Read error: Operation timed out]
s0ber_ is now known as s0ber
cantonic has joined #ruby-lang
krz has joined #ruby-lang
jtoy has quit [Quit: jtoy]
banisterfiend has quit [Read error: Connection reset by peer]
x0F has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby-lang
x0F has joined #ruby-lang
sol has joined #ruby-lang
<steveklabnik> dude you have no idea
sol is now known as Guest69639
<steveklabnik> so the lease on my house ran out july 31
<steveklabnik> but steel city ruby was the 3rd
mistym has quit [Remote host closed the connection]
<steveklabnik> so i crashed on freind's couches with everything i owned: a backpack and a suitcase. (i have half a shelf of books at my mom's house too)
stardiviner has joined #ruby-lang
t47735 has quit [Remote host closed the connection]
<steveklabnik> then i left sunday the 5th at 10am to go to sfo. crashed on someone's couch. monday morning, went to the russian consulate to get my visa app in
t53084 has joined #ruby-lang
<steveklabnik> 'we need your passport' 'how long?' 'one week' 'okay, i'll pick it up'
<steveklabnik> took the train from oakland to LA.
<steveklabnik> one week later, train up to sf, picked up my passport, flew back to LAX later that day, went home, slept 6 hours, went back to LAX, then to germany
<drbrain> damn
<steveklabnik> i had a 13 hour layover in schipol
<steveklabnik> so i called up josh-k
<steveklabnik> and am crashing at his place tonight
<steveklabnik> plane to LAX leaves at 10am
<steveklabnik> then yes, madison on friday
<steveklabnik> heh
<steveklabnik> september is moscow, chicago, helsinki, aaaaand ghent?
m3nd3s has quit [Remote host closed the connection]
<steveklabnik> october is Malmo, argentina
<zenspider> steveklabnik: jesus dude
<zenspider> I'd die
<steveklabnik> this month is one year on the conf circut
<steveklabnik> :)
<steveklabnik> it is tiring
<steveklabnik> for sure
<steveklabnik> but fun
dfr|mac has quit [Remote host closed the connection]
qwerxy has joined #ruby-lang
<zenspider> you must own a bucket of melatonin
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
Jay_Levitt has quit [Ping timeout: 246 seconds]
masterkorp has quit [Ping timeout: 245 seconds]
JoelMcCracken has quit [Ping timeout: 244 seconds]
masterkorp has joined #ruby-lang
robbyoconnor has joined #ruby-lang
cantonic has quit [Quit: cantonic]
[dmp] has quit [Ping timeout: 240 seconds]
krz has quit [Quit: krz]
[dmp] has joined #ruby-lang
[dmp] has joined #ruby-lang
[dmp] has quit [Changing host]
krz has joined #ruby-lang
jtoy has joined #ruby-lang
krz has quit [Client Quit]
<steveklabnik> naw i'm just 26
krz has joined #ruby-lang
<zenspider> jackass :P
itsmeduncan has quit [Quit: itsmeduncan]
t53084 has quit [Remote host closed the connection]
t51823 has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
<zenspider> ARGH. I have NO FUCKING CLUE how I should be structuring block args... they're such a clusterfuck :(
<zenspider> they're not quite an masgn... not quite call args... not quite defn args.
coryf has joined #ruby-lang
cdt has joined #ruby-lang
amdprophet has joined #ruby-lang
srbartlett has quit [Remote host closed the connection]
s1n4 has quit [Quit: leaving]
<zenspider> ARGH I wish they'd die
<erikh> my cat's breath smells like cat food
cdt has quit [Ping timeout: 276 seconds]
toretore has quit [Quit: Leaving]
<injekt> i think you should have it checked out, erikh
<injekt> zenspider: structuring them?
IPGlider has quit []
laszlokorte has quit [Quit: laszlokorte]
headius has quit [Quit: headius]
dejongge has quit [Quit: Leaving.]
erichmenge has quit [Quit: Be back later]
ged__ is now known as ged
diegoviola has quit [Read error: Connection reset by peer]
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
andrewhl_ has quit [Remote host closed the connection]
banisterfiend has quit [Read error: Connection reset by peer]
justinmcp has joined #ruby-lang
Guest69639 has quit [Ping timeout: 265 seconds]
dous has quit [Ping timeout: 276 seconds]
isale-eko has joined #ruby-lang
isale-eko has quit [Client Quit]
justinmcp has quit [Remote host closed the connection]
stamina has quit [Ping timeout: 252 seconds]
t4nkd has quit [Quit: Linkinus - http://linkinus.com]
kvirani has quit [Remote host closed the connection]
banisterfiend has joined #ruby-lang
kvirani has joined #ruby-lang
neocoin has joined #ruby-lang
mistym has joined #ruby-lang
erics has quit [Remote host closed the connection]
Skif has joined #ruby-lang
Leeky_afk is now known as Leeky
qwerxy has quit [Quit: offski]
lcdhoffman has joined #ruby-lang
laszlokorte has joined #ruby-lang
kvirani has quit [Remote host closed the connection]
willdrew_ has joined #ruby-lang
abletony84 has joined #ruby-lang
JoelMcCracken has joined #ruby-lang
willdrew has quit [Ping timeout: 244 seconds]
itsmeduncan has joined #ruby-lang
VGoff is now known as VGoff_afk
<abletony84> Is there a better way of finding out when a certain week starts? I.e. week 33 of 2012?
<abletony84> I found this but it doesn't look too good: ruby -e 'require "date";print Date.commercial(ARGV[0].to_i,ARGV[1].to_i,1)' 2012 33
laszlokorte has quit [Quit: laszlokorte]
srbartlett has joined #ruby-lang
<zenspider> abletony84: what doesn't look good about that?
<zenspider> besides your space bar being broken
<abletony84> hehe
macmartine has quit [Quit: Computer has gone to sleep.]
<abletony84> yeah good point :)
VGoff_afk is now known as VGoff
<zenspider> ruby -rdate -e 'y, w = ARGV.shift.to_i, ARGV.shift.to_i; puts Date.commercial(y, w, 1)' 2012 33
<zenspider> that's clear as you can get imo
<abletony84> nice!
<abletony84> yeah i like that
Tarellel has joined #ruby-lang
m3nd3s_ has joined #ruby-lang
<abletony84> This bash script is alright too I guess: ./week now or ./week <date>
<abletony84> echo `date -d $1 +"%A %d. %B %Y, week %V, %H:%M:%S"`
<abletony84> #!/bin/bash
laszlokorte has joined #ruby-lang
woollyams has joined #ruby-lang
<drbrain> erikh: knife-solo seems to be doing what I want
vertroa has joined #ruby-lang
<zenspider> hoe 3.0.8 released
<abletony84> oh one more thing
virunga has quit [Quit: Sto andando via]
<abletony84> anybody know of any other cool stuff like ruby -ne 'x=ARGF.read.sort_by { rand }; puts x' ?
<abletony84> err sorry
<heftig> sort_by { rand }? just use shuffle
<abletony84> anybody know of any other cool stuff like ruby -le '33.times{|y|print" "*(32-y), (0..y).map{|x|~y&x>0?" .":" A"}}' ?
<abletony84> heftig: what you mean?
<heftig> ARGF.read.shuffle
uzsidoboz has joined #ruby-lang
<heftig> er, wait. that's a string and not enumerable
<abletony84> oh i see
coryf has quit [Remote host closed the connection]
<heftig> your code isn't 1.9 compatible
<heftig> and the second one just produces garbage
<abletony84> i thought it was my terminal that was fucked up but yeah
<abletony84> where'd my classic fractals go :(
bryancp has quit [Remote host closed the connection]
Tarellel has quit [Quit: Tarellel]
<uzsidoboz> hi. is there a way to catch a dynamic method creation?
<zenspider> why was shuffle backported to 1.8.7 but not sample?
lcdhoffman has quit [Ping timeout: 252 seconds]
<zenspider> uzsidoboz: ri Module
<zenspider> `ri Module` that is... run it.
lcdhoffman has joined #ruby-lang
bryancp has joined #ruby-lang
<heftig> uzsidoboz: method_defined hook
<uzsidoboz> ah
<uzsidoboz> that's what i was looking for
<uzsidoboz> i knew there's a hook like that but could find it
<uzsidoboz> thanks
<heftig> er, or i think it was called something else
<heftig> hang on
woollyams has quit [Quit: Computer has gone to sleep.]
<heftig> method_added
itsmeduncan has quit [Quit: itsmeduncan]
<abletony84> could you guys help me make these 1.9 compatible?
<abletony84> Randomize input: ruby -ne "x=ARGF.read.sort_by { rand }; puts x"
<abletony84> Classic fractal: ruby -le "33.times{|y| print' '*(32-y), (0..y).map{|x| ~y&x>0?' .':' A'}}"
<zenspider> Finished tests in 0.457751s, 2794.0955 tests/s, 14167.0908 assertions/s.
<zenspider> RAWR
<uzsidoboz> thanks
<uzsidoboz> time to hack
woollyams has joined #ruby-lang
<uzsidoboz> the method's name is created dynamically.. so I can't search by it's name.. that hook helps me out:)
itsmeduncan has joined #ruby-lang
<uzsidoboz> its*
<zenspider> ruby_parser 3.0.0.a6 released
<JoelMcCracken> oo
ivanoats has quit [Quit: ivanoats]
lcdhoffman_ has joined #ruby-lang
<zenspider> OO
<steveklabnik> OO....p
lcdhoffman has quit [Ping timeout: 245 seconds]
laszlokorte_ has joined #ruby-lang
dous has joined #ruby-lang
laszlokorte has quit [Ping timeout: 260 seconds]
<uzsidoboz> no luck.. the method's owner is a ghost module too.. bah
<zenspider> uzsidoboz: what are you trying to figure out?
dous has quit [Ping timeout: 276 seconds]
<uzsidoboz> i try to figure out where the refinerycms creates the <colname>? methods for the user model.. for example "username?", "email?"
JustinCampbell has quit [Remote host closed the connection]
<uzsidoboz> or maybe the devise does it.. no idea yet.. the method exists but ... where it borns... no idea yet
<uzsidoboz> i'm diving further
<zenspider> UGH. stupid fucking gem ... refinerycms depends on refinery-core ... why?
<zenspider> I'd help... but there's too much stupid to download
<steveklabnik> heh
<steveklabnik> yeah refinery is.... complicated
reactormonk has quit [Ping timeout: 265 seconds]
<uzsidoboz> yea.. and it needs rails and much more :)
<uzsidoboz> i'm gonna find it
<uzsidoboz> i always do
<steveklabnik> try source-method?
<steveklabnik> err
<steveklabnik> method-source
<steveklabnik> or whatever
<uzsidoboz> i tried the obj.method('username?').owner
<uzsidoboz> but it's a ghost
<steveklabnik> or try obj.method9'username?').source_location
reactormonk has joined #ruby-lang