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
laszlokorte has quit [Remote host closed the connection]
laszlokorte has joined #ruby-lang
Cherrum has quit [Read error: Connection reset by peer]
Cherrum has joined #ruby-lang
gmci has quit [Read error: Connection reset by peer]
fgomez has joined #ruby-lang
gmci has joined #ruby-lang
jxie has quit [Ping timeout: 246 seconds]
jxie has joined #ruby-lang
Defusal has joined #ruby-lang
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby-lang
qwerxy has quit [Quit: offski]
TheNullByte has quit [Quit: TheNullByte]
TheNullByte has joined #ruby-lang
esad has joined #ruby-lang
CarlB_the_great has quit [Remote host closed the connection]
CarlB_the_great has joined #ruby-lang
sepp2k1 has quit [Remote host closed the connection]
banisterfiend has joined #ruby-lang
WillMarshall has joined #ruby-lang
havenn has joined #ruby-lang
zarubin has quit []
Hakon has quit [Quit: Leaving...]
Jake232 has quit [Ping timeout: 244 seconds]
havenn has quit [Remote host closed the connection]
CarlB_the_great has quit [Remote host closed the connection]
malev has quit [Remote host closed the connection]
chimkan has quit [Remote host closed the connection]
chimkan has joined #ruby-lang
banisterfiend has quit [Remote host closed the connection]
ryanf has joined #ruby-lang
andoyasushi has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has joined #ruby-lang
chimkan has quit [Quit: chimkan]
chimkan has joined #ruby-lang
CarlB_the_great has joined #ruby-lang
bougyman has joined #ruby-lang
CarlB_th_ has joined #ruby-lang
CarlB_the_great has quit [Ping timeout: 264 seconds]
tomzx_ has joined #ruby-lang
CarlB_th_ has quit []
t36717 has quit [Remote host closed the connection]
t96116 has joined #ruby-lang
kain has quit [Remote host closed the connection]
kain has joined #ruby-lang
dous has quit [Remote host closed the connection]
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
dous has quit [Ping timeout: 246 seconds]
billyoc has joined #ruby-lang
TheNullByte has quit [Quit: TheNullByte]
savage- has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
Tearan has joined #ruby-lang
Tearan has quit [Quit: Sleepy Badger....]
kingCrawlerx has quit [Quit: Computer has gone to sleep]
Dreamer3 has joined #ruby-lang
lsegal has joined #ruby-lang
jxie has quit [Quit: leaving]
kain has quit [Quit: exit]
guns has joined #ruby-lang
tjadc has quit [Remote host closed the connection]
Dreamer3 has quit [Quit: Leaving...]
Dreamer3 has joined #ruby-lang
Dreamer3 has quit [Client Quit]
Dreamer3 has joined #ruby-lang
jxie has joined #ruby-lang
jxie has quit [Read error: Connection reset by peer]
jxie has joined #ruby-lang
jxie_ has joined #ruby-lang
jxie has quit [Ping timeout: 268 seconds]
r0bby has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 240 seconds]
r0bby has quit [Excess Flood]
r0bby has joined #ruby-lang
r0bby has quit [Read error: Connection reset by peer]
r0bby has joined #ruby-lang
r0bby has quit [Read error: Connection reset by peer]
r0bby has joined #ruby-lang
tomzx_ has quit [Ping timeout: 276 seconds]
r0bby has quit [Client Quit]
plusk has joined #ruby-lang
gsav has joined #ruby-lang
plusk has left #ruby-lang [#ruby-lang]
billyoc has quit [Read error: Connection reset by peer]
billyoc has joined #ruby-lang
arooni-mobile has joined #ruby-lang
andoyasushi_ has joined #ruby-lang
CapnKernul has quit [Quit: Leaving...]
andoyasushi has quit [Ping timeout: 255 seconds]
gsav has quit [Read error: Connection reset by peer]
CarlB_the_great has joined #ruby-lang
CapnKernul has joined #ruby-lang
andoyasushi_ has quit [Ping timeout: 252 seconds]
CapnKernul has quit [Client Quit]
anjen has joined #ruby-lang
andoyasushi has joined #ruby-lang
anjen has quit [Quit: anjen]
jxie has joined #ruby-lang
jxie_ has quit [Ping timeout: 240 seconds]
kingCrawlerx has joined #ruby-lang
esad has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
gmci has quit [Quit: Computer has gone to sleep.]
andoyasushi has quit [Ping timeout: 244 seconds]
gsav has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 246 seconds]
darkf has quit [Ping timeout: 246 seconds]
gsav has quit [Read error: Connection reset by peer]
gsav has joined #ruby-lang
darkf has joined #ruby-lang
Axsuul has quit [Remote host closed the connection]
andoyasushi has joined #ruby-lang
t96116 has quit [Remote host closed the connection]
t73417 has joined #ruby-lang
banisterfiend has joined #ruby-lang
andoyasushi has quit [Ping timeout: 272 seconds]
codewrangler has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
S2kx has quit [Read error: Connection reset by peer]
S2kx has joined #ruby-lang
jxie has quit [Read error: Connection reset by peer]
Nisstyre_ has quit [Quit: Leaving]
jxie has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
Nisstyre_ has joined #ruby-lang
CarlB_the_great has quit [Remote host closed the connection]
woollyams has joined #ruby-lang
Axsuul has joined #ruby-lang
ivanoats has quit [Remote host closed the connection]
nXqd has joined #ruby-lang
CarlB_th_ has joined #ruby-lang
CarlB_th_ has quit [Remote host closed the connection]
jackhammer2022 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
dnadeau has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
kingCrawlerx has quit [Quit: Computer has gone to sleep]
fgomez has quit [Remote host closed the connection]
cantonic has quit [Ping timeout: 245 seconds]
justinmcp has quit [Ping timeout: 245 seconds]
justinmcp has joined #ruby-lang
justinmc_ has joined #ruby-lang
justinm__ has joined #ruby-lang
robbyoconnor has joined #ruby-lang
justinmcp has quit [Ping timeout: 240 seconds]
justinmc_ has quit [Ping timeout: 244 seconds]
WillMarshall has quit [Quit: Computer has gone to sleep.]
burgestrand has joined #ruby-lang
burgestrand1 has joined #ruby-lang
burgestrand1 has quit [Remote host closed the connection]
burgestrand1 has joined #ruby-lang
billyoc has quit [Quit: nap time]
burgestrand has quit [Ping timeout: 252 seconds]
s1n4 has joined #ruby-lang
dc5ala has joined #ruby-lang
sailias has quit []
krz has joined #ruby-lang
mistym has quit [Remote host closed the connection]
s1n4 has quit [Quit: Lost terminal]
|Vargas| has joined #ruby-lang
|Vargas| has quit [Changing host]
|Vargas| has joined #ruby-lang
burgestrand1 is now known as burgestrand
fgomez has joined #ruby-lang
stepnem has joined #ruby-lang
nXqd has quit [Ping timeout: 240 seconds]
JoelMcCracken has joined #ruby-lang
areil has joined #ruby-lang
cantonic has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
andoyasushi has joined #ruby-lang
acyed has joined #ruby-lang
nXqd has joined #ruby-lang
nXqd has quit [Ping timeout: 264 seconds]
deryl has quit [Quit: deryl]
tenderlove has quit [Remote host closed the connection]
nXqd has joined #ruby-lang
JohnBat26 has joined #ruby-lang
kitallis has joined #ruby-lang
savage- has quit [Remote host closed the connection]
rue|w has joined #ruby-lang
Fullmoon has quit [Quit: Fullmoon]
<yorickpeterse> #pry ##proggit Morning
<yorickpeterse> gah fuck
<oddmunds> yorickpeterse: good morning!
u2609 has joined #ruby-lang
JoelMcCracken has quit [Ping timeout: 244 seconds]
t73417 has quit [Remote host closed the connection]
t43712 has joined #ruby-lang
Hakon has joined #ruby-lang
kitallis has quit [Quit: Computer has gone to sleep.]
kitallis has joined #ruby-lang
kitallis has quit [Client Quit]
kitallis has joined #ruby-lang
kitallis has quit [Remote host closed the connection]
Hakon has quit [Client Quit]
qwerxy has joined #ruby-lang
tenderlove has joined #ruby-lang
woollyams has quit [Quit: Computer has gone to sleep.]
jxie has quit [Ping timeout: 248 seconds]
d3vic3 has joined #ruby-lang
kitallis has joined #ruby-lang
jxie has joined #ruby-lang
AlHafoudh has joined #ruby-lang
tenderlove has quit [Ping timeout: 246 seconds]
Craig` has joined #ruby-lang
<Craig`> hey guys
d3vic3 has quit [Quit: leaving]
<Craig`> http://pastie.org/4654798 can I make this so all I have to type is server_ping?, ctcp_ping?, version_request? not having to say s.server_ping? etc
runeb has joined #ruby-lang
u2609 has quit [Remote host closed the connection]
jbsan has quit [Quit: jbsan]
solars has joined #ruby-lang
JohnBat26 has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
Madis has joined #ruby-lang
Theueip has quit [Quit: Leaving...]
manveru has left #ruby-lang [#ruby-lang]
manveru has joined #ruby-lang
zenspider has joined #ruby-lang
qwerxy has quit [Quit: offski]
<manveru> Craig`: not without changing self, and then you'd have trouble trying to call ctcp_pong, version, privmsg etc
<Craig`> manveru, okay thanks it wasn't too big a deal.
<zenspider> anyone have experience with the IO language?
JohnBat26 has joined #ruby-lang
thone has joined #ruby-lang
Fullmoon has joined #ruby-lang
t43712 has quit [Remote host closed the connection]
t94687 has joined #ruby-lang
thone_ has quit [Ping timeout: 245 seconds]
Fullmoon has quit [Ping timeout: 272 seconds]
ryanf has quit [Quit: leaving]
vesan has quit [Ping timeout: 260 seconds]
Fullmoon has joined #ruby-lang
diegoviola has quit [Ping timeout: 252 seconds]
dc5ala has quit [Quit: Ex-Chat]
jxie has quit [Quit: leaving]
dhruvasagar has joined #ruby-lang
dhruvasagar has quit [Remote host closed the connection]
<Craig`> http://pastie.org/4654948 .. this works fine I was just wondering if I was doing anything that was considered bad practice. My ruby fu is still weak but i'm putting bits and pieces together
<Craig`> sorry I missed a lot of code out, the variable irc is just an instance of IRC
Fullmoon has quit [Ping timeout: 246 seconds]
JoelMcCracken has joined #ruby-lang
tallship has quit [Remote host closed the connection]
tallship has joined #ruby-lang
tenderlove has joined #ruby-lang
JoelMcCracken has quit [Ping timeout: 260 seconds]
<masterkorp> zenspider: only on women
WillMarshall has joined #ruby-lang
Craig` has left #ruby-lang ["Leaving"]
Fullmoon has joined #ruby-lang
Criztian has joined #ruby-lang
tenderlove has quit [Ping timeout: 244 seconds]
WillMarshall has quit [Client Quit]
Fullmoon_ has joined #ruby-lang
Hakon has joined #ruby-lang
jxie has joined #ruby-lang
Hakon has quit [Client Quit]
jaimef has quit [Quit: ZNC - http://znc.in]
Fullmoon__ has joined #ruby-lang
Fullmoon has quit [Ping timeout: 276 seconds]
Fullmoon__ is now known as Fullmoon
Fullmoon has quit [Read error: Connection reset by peer]
jaimef has joined #ruby-lang
Fullmoon_ has quit [Ping timeout: 246 seconds]
Hakon has joined #ruby-lang
rolfb has joined #ruby-lang
jxie has quit [Ping timeout: 264 seconds]
Fullmoon has joined #ruby-lang
jxie has joined #ruby-lang
t94687 has quit [Remote host closed the connection]
t73276 has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
qwerxy has joined #ruby-lang
Fullmoon_ has joined #ruby-lang
deryl has joined #ruby-lang
Fullmoon has quit [Ping timeout: 246 seconds]
vmoravec has joined #ruby-lang
Fullmoon_ has quit [Ping timeout: 276 seconds]
chimkan has quit [Quit: chimkan]
Fullmoon has joined #ruby-lang
cdt has joined #ruby-lang
charliesome has joined #ruby-lang
havenn has joined #ruby-lang
Fullmoon_ has joined #ruby-lang
rohit has joined #ruby-lang
toretore has joined #ruby-lang
Fullmoon has quit [Ping timeout: 246 seconds]
Fullmoon_ is now known as Fullmoon
jxie has quit [Ping timeout: 248 seconds]
diegoviola has joined #ruby-lang
Fullmoon_ has joined #ruby-lang
Fullmoon has quit [Ping timeout: 246 seconds]
Fullmoon_ is now known as Fullmoon
jxie has joined #ruby-lang
ruurd has joined #ruby-lang
Hakon has quit [Ping timeout: 245 seconds]
Fullmoon has quit [Ping timeout: 272 seconds]
workmad3 has joined #ruby-lang
chendo_ has quit [Ping timeout: 246 seconds]
t73276 has quit [Remote host closed the connection]
t25078 has joined #ruby-lang
Fullmoon has joined #ruby-lang
jxie has quit [Ping timeout: 260 seconds]
Fullmoon_ has joined #ruby-lang
jxie has joined #ruby-lang
Fullmoon has quit [Ping timeout: 246 seconds]
Fullmoon_ has quit [Ping timeout: 246 seconds]
rohit has quit [Ping timeout: 255 seconds]
u2609 has joined #ruby-lang
banisterfiend has quit [Read error: Connection reset by peer]
tenderlove has joined #ruby-lang
tbuehlmann has joined #ruby-lang
Fullmoon has joined #ruby-lang
u2609 has quit [Ping timeout: 245 seconds]
Fullmoon_ has joined #ruby-lang
krz has quit [Quit: krz]
havenn has quit [Remote host closed the connection]
Theueip has joined #ruby-lang
tenderlove has quit [Ping timeout: 276 seconds]
Fullmoon__ has joined #ruby-lang
Hakon has joined #ruby-lang
Fullmoon has quit [Ping timeout: 272 seconds]
Fullmoon__ is now known as Fullmoon
banisterfiend has joined #ruby-lang
Fullmoon_ has quit [Ping timeout: 246 seconds]
rohit has joined #ruby-lang
NOKAH has joined #ruby-lang
Hakon has quit [Ping timeout: 244 seconds]
chendo_ has joined #ruby-lang
chendo_ has quit [Changing host]
chendo_ has joined #ruby-lang
jxie has quit [Ping timeout: 248 seconds]
jxie has joined #ruby-lang
NOKAH has left #ruby-lang [#ruby-lang]
Fullmoon_ has joined #ruby-lang
ramonmaruko has quit [Quit: Leaving.]
justinm__ has quit [Remote host closed the connection]
Fullmoon has quit [Ping timeout: 246 seconds]
Fullmoon_ is now known as Fullmoon
chendo_ has quit [Ping timeout: 246 seconds]
deryl has quit [Quit: deryl]
tgriffin2081 has quit []
dhruvasagar has joined #ruby-lang
chendo_ has joined #ruby-lang
chendo_ has quit [Changing host]
chendo_ has joined #ruby-lang
ramonmaruko has joined #ruby-lang
darkf has quit [Read error: Connection reset by peer]
darkf has joined #ruby-lang
rohit has quit [Ping timeout: 245 seconds]
Fullmoon_ has joined #ruby-lang
Fullmoon has quit [Ping timeout: 276 seconds]
Fullmoon_ is now known as Fullmoon
darkf has quit [Ping timeout: 264 seconds]
Fullmoon_ has joined #ruby-lang
Fullmoon has quit [Ping timeout: 246 seconds]
Fullmoon_ is now known as Fullmoon
runeb has quit [Remote host closed the connection]
justinmcp has joined #ruby-lang
ramonmaruko has quit [Remote host closed the connection]
runeb has joined #ruby-lang
runeb has quit [Remote host closed the connection]
ramonmaruko has joined #ruby-lang
sepp2k has joined #ruby-lang
Fullmoon_ has joined #ruby-lang
Fullmoon has quit [Ping timeout: 276 seconds]
Fullmoon_ is now known as Fullmoon
Hakon has joined #ruby-lang
zmack has joined #ruby-lang
Fullmoon_ has joined #ruby-lang
Fullmoon has quit [Ping timeout: 246 seconds]
Fullmoon_ is now known as Fullmoon
s1n4 has joined #ruby-lang
s1n4 is now known as Guest69498
andoyasushi has quit [Ping timeout: 264 seconds]
Guest69498 has quit [Changing host]
Guest69498 has joined #ruby-lang
Guest69498 has quit [Client Quit]
_s1n4_ has joined #ruby-lang
t25078 has quit [Remote host closed the connection]
t5630 has joined #ruby-lang
x0F_ has joined #ruby-lang
x0F_ has quit [Changing host]
x0F_ has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ is now known as x0F
gmci has joined #ruby-lang
tenderlove has joined #ruby-lang
yats has joined #ruby-lang
tenderlove has quit [Ping timeout: 264 seconds]
Fullmoon has quit [Ping timeout: 246 seconds]
AlHafoudh has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Fullmoon has joined #ruby-lang
Hakon has quit [Ping timeout: 240 seconds]
tbuehlmann has quit [Remote host closed the connection]
jbsan has joined #ruby-lang
ruurd has quit [Quit: Leaving...]
th3hunt has joined #ruby-lang
chendo_ has quit [Ping timeout: 260 seconds]
jbsan has quit [Client Quit]
jbsan has joined #ruby-lang
chendo_ has joined #ruby-lang
jbsan has quit [Client Quit]
dreinull has joined #ruby-lang
ruurd has joined #ruby-lang
heftig has quit [Ping timeout: 245 seconds]
<masterkorp> errr
Fullmoon has quit [Ping timeout: 276 seconds]
Fullmoon has joined #ruby-lang
diegoviola has quit [Ping timeout: 244 seconds]
wallerdev has quit [Quit: wallerdev]
lele|w has quit [Ping timeout: 272 seconds]
heftig has joined #ruby-lang
Fullmoon_ has joined #ruby-lang
Fullmoon__ has joined #ruby-lang
Fullmoon has quit [Ping timeout: 246 seconds]
Fullmoon__ is now known as Fullmoon
Hakon has joined #ruby-lang
Fullmoon__ has joined #ruby-lang
woollyams has joined #ruby-lang
Fullmoon_ has quit [Ping timeout: 240 seconds]
Fullmoon has quit [Ping timeout: 246 seconds]
Fullmoon has joined #ruby-lang
Fullmoon__ has quit [Ping timeout: 246 seconds]
jxie has quit [Ping timeout: 248 seconds]
dynamix has joined #ruby-lang
dynamix has quit [Client Quit]
mr_dynamix has joined #ruby-lang
runeb has joined #ruby-lang
_s1n4_ is now known as s1n4
tenderlove has joined #ruby-lang
JohnBat26 has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
JohnBat26 has joined #ruby-lang
tbuehlmann has joined #ruby-lang
woollyams has quit [Quit: Computer has gone to sleep.]
tenderlove has quit [Ping timeout: 240 seconds]
jxie has joined #ruby-lang
Axsuul has quit [Ping timeout: 244 seconds]
Fullmoon has quit [Ping timeout: 246 seconds]
Fullmoon has joined #ruby-lang
neocoin has quit [Remote host closed the connection]
justinmcp has quit [Remote host closed the connection]
zmack has quit [Remote host closed the connection]
dous has joined #ruby-lang
rolfb has quit [Read error: Connection reset by peer]
t5630 has quit [Remote host closed the connection]
t8182 has joined #ruby-lang
justinmcp has joined #ruby-lang
rolfb has joined #ruby-lang
Fullmoon has quit [Ping timeout: 272 seconds]
Hakon has quit [Quit: Leaving...]
Fullmoon has joined #ruby-lang
abrausch has joined #ruby-lang
Fullmoon has quit [Ping timeout: 246 seconds]
Fullmoon has joined #ruby-lang
rolfb has quit [Quit: Linkinus - http://linkinus.com]
Fullmoon has quit [Ping timeout: 246 seconds]
Fullmoon_ has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby-lang
plusk has joined #ruby-lang
lcdhoffman has joined #ruby-lang
Fullmoon_ has quit [Ping timeout: 246 seconds]
gmci has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Fullmoon has joined #ruby-lang
djinni` has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
Fullmoon_ has joined #ruby-lang
djinni` has joined #ruby-lang
Fullmoon has quit [Ping timeout: 246 seconds]
Fullmoon_ is now known as Fullmoon
dhruvasagar has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby-lang
m3nd3s has joined #ruby-lang
Fullmoon has quit [Ping timeout: 246 seconds]
mr_dynamix has quit [Quit: mr_dynamix]
Fullmoon has joined #ruby-lang
neocoin has joined #ruby-lang
mr_dynamix has joined #ruby-lang
m3nd3s has quit [Ping timeout: 252 seconds]
tenderlove has joined #ruby-lang
t8182 has quit [Remote host closed the connection]
t58371 has joined #ruby-lang
vmoravec has quit [Quit: Leaving]
carloslopes has joined #ruby-lang
tenderlove has quit [Ping timeout: 255 seconds]
jbsan has joined #ruby-lang
Future[Chimp] has joined #ruby-lang
laszlokorte_ has joined #ruby-lang
laszlokorte has quit [Ping timeout: 245 seconds]
Fullmoon has quit [Ping timeout: 246 seconds]
Fullmoon has joined #ruby-lang
dous_ has joined #ruby-lang
dous_ has quit [Changing host]
dous_ has joined #ruby-lang
runeb has quit [Remote host closed the connection]
Fullmoon_ has joined #ruby-lang
dous has quit [Ping timeout: 244 seconds]
hollymann has joined #ruby-lang
Fullmoon has quit [Ping timeout: 246 seconds]
Fullmoon_ is now known as Fullmoon
runeb has joined #ruby-lang
jxie has quit [Quit: leaving]
jbsan has quit [Quit: jbsan]
<mfn> mrmm .. when I match a node like doc.css('br+br+strong+br+br') in Nokogiri, the result contains the last node and I need the first one. Should I just result_node.prev.prev.prev.prev or is there a smarter way?
Fullmoon has quit [Ping timeout: 246 seconds]
u2609 has joined #ruby-lang
jbsan has joined #ruby-lang
<canton7> afaik css doesn't have a way of selecting the first br in that scenario. you might have more luck with xpath (which is more powerful)
<mfn> Unfortunately I don't have a clue about xpath .. I mean, yeah, I know what "./foo" mean and things such "./foo[@attr='bla']" but that's about it ...
<canton7> yeah same, which is why I can't be more helpful :(
<injekt> mfn: do you have example html?
Fullmoon has joined #ruby-lang
<mfn> injekt: "<font size=\"2\" face=\"Microsoft Sans Serif\">Some foo bar text<br><br><strong>somtething</strong><br><br>\r\n\t\t some other foobartext</font>"
<injekt> and you want what?
<mfn> find <br><br><strong>somtething</strong><br><br> ; handle the stuff before this pattern; do something with the pattern, handle the stuff after the pattern
<injekt> ...
<mfn> In the end this gets converted to <p>Some foo bar text</p><headline>somtehing</headline<p>\r\n\t\t some other foobartext</p>
<mfn> my current pattern match looks like this: if result = n.css('br + br + strong + br + br') and result.length > 0 ; start_node = result[0].prev.prev.prev.prev
Fullmoon has quit [Client Quit]
<mfn> no problem figuring this out; but if there's a smarter way I'm all for it
<injekt> that's some retarded markup
<mfn> no objection from my side
<injekt> where are you parsing this from?
zmack has joined #ruby-lang
vmoravec has joined #ruby-lang
<mfn> company internal
josh^ has quit [Remote host closed the connection]
yats has quit [Read error: Connection reset by peer]
jbsan has quit [Quit: jbsan]
yats has joined #ruby-lang
vmoravec has quit [Quit: Leaving]
<injekt> mfn: does that do what you want?
_malte has joined #ruby-lang
runeb has quit [Remote host closed the connection]
ephemerian has joined #ruby-lang
tenderlove has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
<hollymann> hey everyone. I'm looking for a gem with NTLM + WinRM support, unfortunately git zenchild/winrm doesn't support NTLM auth. Are there any good gems for it?
<mfn> injekt: I try to understand the xpath expressions .. never seens "following", looks powerful
<injekt> mfn: xpath is extremely powerful
tenderlove has quit [Ping timeout: 264 seconds]
<masterkorp> Do you guys recomend any library to read parse logs ?
<injekt> masterkorp: what kind of logs?
ramonmaruko has quit [Remote host closed the connection]
<masterkorp> injekt: ruby on rails logs
TorpedoSkyline has left #ruby-lang ["["Textual IRC Client: www.textualapp.com"]"]
Future[Chimp] has left #ruby-lang ["Leaving"]
<injekt> masterkorp: iirc rack uses http://httpd.apache.org/docs/1.3/logs.html#common
<rue|w> There’s a CommonLogger middlewarez
<injekt> so I recommend searching for 'parse common log format'
<injekt> rue|w: exactly..
<injekt> masterkorp: I personally wouldn't write/use something in ruby for this unless my logs are tiny, though
<injekt> depends what you're trying to do
ramonmaruko has joined #ruby-lang
<masterkorp> injekt: well we have a liveblog rails app
Defusal_ has joined #ruby-lang
Defusal_ has quit [Changing host]
Defusal_ has joined #ruby-lang
<masterkorp> i am trying to get nagios to check the publishing latency from nagios
<masterkorp> to get warning, and errors warning on out monitoring
<injekt> nagios can't do this itself?
u2609 has quit [Remote host closed the connection]
vmoravec has joined #ruby-lang
<injekt> if you do want to parse it with ruby, though.. you can check out https://github.com/rack/rack/blob/master/lib/rack/commonlogger.rb line 11 and 33-43
Defusal has quit [Ping timeout: 240 seconds]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
Defusal has joined #ruby-lang
Defusal has quit [Changing host]
Defusal has joined #ruby-lang
voker57 has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
Defusal_ has quit [Ping timeout: 260 seconds]
Theueip has quit [Quit: Leaving...]
chimkan_ has joined #ruby-lang
znake has joined #ruby-lang
znake has quit [Remote host closed the connection]
znake has joined #ruby-lang
shevy has joined #ruby-lang
<mfn> injekt: thanks, I think that's very useful. I'll have to adapt it a bit, but gives me a good head start where to look at xpath exactly!
JoelMcCracken has joined #ruby-lang
m3nd3s has joined #ruby-lang
znake has quit [Client Quit]
znake has joined #ruby-lang
Theueip has joined #ruby-lang
runeb has joined #ruby-lang
m3nd3s has quit [Read error: Operation timed out]
znake has left #ruby-lang [#ruby-lang]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
deryl has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
m3nd3s has joined #ruby-lang
znake has joined #ruby-lang
runeb- has joined #ruby-lang
runeb- is now known as runeb
runeb has quit [Killed (niven.freenode.net (Nickname regained by services))]
znake has quit [Client Quit]
kingCrawlerx has joined #ruby-lang
JohnBat26 has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
CarlB_the_great has joined #ruby-lang
rue|w has quit [Remote host closed the connection]
m3nd3s has quit [Read error: Connection timed out]
t58371 has quit [Remote host closed the connection]
t56222 has joined #ruby-lang
m3nd3s has joined #ruby-lang
lcdhoffman has joined #ruby-lang
lcdhoffman has quit [Client Quit]
yats has quit [Read error: Connection reset by peer]
yats has joined #ruby-lang
nXqd has quit [Ping timeout: 245 seconds]
CarlB_the_great has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
jbsan has joined #ruby-lang
<mfn> doh, this isn't valid ruby: if 1\n or 2\n puts "foo"\n end .. the "or" needs to be on the same line as the "1" ...
<canton7> yeah, or you need a \ before the newline
tenderlove has quit [Ping timeout: 264 seconds]
<mfn> O_O
<canton7> otherwise ruby looks at the first line, sees a complete expression, evaluates it, proceeds to the next line, and hits something unexpected
anannie has joined #ruby-lang
<mfn> ah, I see. thank you
<canton7> if the 'or' is on the first line, ruby can tell that the expression isn't yet complete, so looks on the next line for the rest of it
<canton7> it's the price you pay for not having to stick a semicolon at the end of every line
<anannie> I have a very silly question, in ruby can the I use multiple elsifs for a single if?
<mfn> anannie: yes
<mfn> if foo\n elsif bar\n elsif baz\n else zap\n end
<anannie> mfn: I was getting a strange error, thought it might be wiser to ask. Thanks
<canton7> anannie, what error?
<anannie> canton7: that the end isn't properly defined even though I'm quite sure I've closed everything inside. (it's a series of nested ifs...) It must be my bad. I'll go and check my work again. Sorry I'm new to programming.
<mfn> anannie: try to run with 'ruby -w', it might tell you about wrong indentation and give you a hint where a missing end is or so
d3vic3 has joined #ruby-lang
<anannie> mfn: Found it... I had forgotten an e somewhere.
CarlB_the_great has joined #ruby-lang
rippa has joined #ruby-lang
CarlB_the_great has quit [Remote host closed the connection]
nXqd has joined #ruby-lang
erichmenge has joined #ruby-lang
CarlB_the_great has joined #ruby-lang
_malte has quit [Remote host closed the connection]
kitallis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
CarlB_th_ has joined #ruby-lang
CarlB_the_great has quit [Ping timeout: 272 seconds]
_malte has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 276 seconds]
t56222 has quit [Remote host closed the connection]
vesan has joined #ruby-lang
t85467 has joined #ruby-lang
abrausch has quit [Quit: abrausch]
m3nd3s has quit [Remote host closed the connection]
|Vargas| has quit [Quit: ...]
arooni-mobile has joined #ruby-lang
s1n4 has quit [Quit: leaving]
erichmenge has quit [Quit: Linkinus - http://linkinus.com]
TheNullByte has joined #ruby-lang
S2kx has quit [Quit: Leaving]
S1kx has joined #ruby-lang
S1kx has quit [Changing host]
S1kx has joined #ruby-lang
arooni-mobile has quit [Read error: Connection reset by peer]
_malte has quit [Remote host closed the connection]
lcdhoffman has joined #ruby-lang
Constant_ has joined #ruby-lang
Constant_ has quit [Client Quit]
jxie has joined #ruby-lang
tenderlove has joined #ruby-lang
sailias has joined #ruby-lang
justinmcp has joined #ruby-lang
plusk has quit [Quit: plusk]
tenderlove has quit [Ping timeout: 240 seconds]
plusk has joined #ruby-lang
plusk has quit [Client Quit]
sailias1 has joined #ruby-lang
justinmcp has quit [Ping timeout: 244 seconds]
sailias2 has joined #ruby-lang
arooni-mobile has joined #ruby-lang
sailias has quit [Read error: Operation timed out]
arooni-mobile has quit [Read error: Connection reset by peer]
sailias1 has quit [Ping timeout: 246 seconds]
sailias2 has quit []
m3nd3s has joined #ruby-lang
vesan has quit [Read error: Connection reset by peer]
zmack has quit [Remote host closed the connection]
guns has quit [Ping timeout: 244 seconds]
slyphon has quit [Ping timeout: 245 seconds]
areil has quit [Remote host closed the connection]
vesan has joined #ruby-lang
chimkan_ has quit [Quit: chimkan_]
hollymann has quit [Quit: hollymann]
slyphon has joined #ruby-lang
Tearan has joined #ruby-lang
slyphon has quit [Ping timeout: 245 seconds]
chimkan_ has joined #ruby-lang
DEac- has joined #ruby-lang
deryl has quit [Ping timeout: 255 seconds]
deryl has joined #ruby-lang
Tearan has quit [Quit: Sleepy Badger....]
JoelMcCracken has quit [Ping timeout: 246 seconds]
lsegal has joined #ruby-lang
ruurd has quit [Quit: Leaving...]
Carnage\ has joined #ruby-lang
Theueip has quit [Quit: Leaving...]
TheNullByte has quit [Quit: TheNullByte]
solars has quit [Ping timeout: 260 seconds]
tenderlove has joined #ruby-lang
sailias has joined #ruby-lang
tenderlove has quit [Ping timeout: 240 seconds]
CarlB_th_ has quit []
tjadc has joined #ruby-lang
tjadc has quit [Remote host closed the connection]
zmack has joined #ruby-lang
sailias has quit []
Hakon has joined #ruby-lang
neocoin has quit [Remote host closed the connection]
sepp2k has quit [Ping timeout: 246 seconds]
yats has quit [Ping timeout: 246 seconds]
Leeky_afk is now known as Leeky
sailias has joined #ruby-lang
cdt has quit [Quit: Ex-Chat]
mr_dynamix has quit [Quit: mr_dynamix]
slyphon has joined #ruby-lang
Axsuul has joined #ruby-lang
macmartine has joined #ruby-lang
sepp2k has joined #ruby-lang
shevy has quit [Ping timeout: 264 seconds]
diegoviola has joined #ruby-lang
macmartine has quit [Client Quit]
rue|w has joined #ruby-lang
slyphon has quit [Ping timeout: 245 seconds]
shevy has joined #ruby-lang
codewrangler has joined #ruby-lang
yxhuvud has joined #ruby-lang
kingCrawlerx has quit [Quit: Computer has gone to sleep]
CarlB_th_ has joined #ruby-lang
macmartine has joined #ruby-lang
tenderlove has joined #ruby-lang
plusk has joined #ruby-lang
benanne has joined #ruby-lang
tenderlove has quit [Ping timeout: 246 seconds]
tenderlove has joined #ruby-lang
sakkemo has joined #ruby-lang
Leeky is now known as Leeky_afk
qwerxy has quit [Quit: offski]
kain has joined #ruby-lang
TheNullByte has joined #ruby-lang
t85467 has quit [Remote host closed the connection]
t11134 has joined #ruby-lang
TheNullByte has quit [Quit: TheNullByte]
savage- has joined #ruby-lang
jaska has quit [Ping timeout: 265 seconds]
TheNullByte has joined #ruby-lang
jaska has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
savage- has quit [Remote host closed the connection]
CarlB_th_ has quit [Remote host closed the connection]
carloslopes has quit [Quit: Leaving.]
djinni` has quit [Ping timeout: 246 seconds]
djinni` has joined #ruby-lang
kingCrawlerx has joined #ruby-lang
plusk has quit [Ping timeout: 246 seconds]
jxie has quit [Ping timeout: 246 seconds]
canton7 has quit [Ping timeout: 246 seconds]
carloslopes1 has joined #ruby-lang
qwerxy has joined #ruby-lang
qwerxy has quit [Client Quit]
jxie_ has joined #ruby-lang
hramrach has quit [Ping timeout: 276 seconds]
m3nd3s has quit [Remote host closed the connection]
m3nd3s has joined #ruby-lang
solars has joined #ruby-lang
ryanf has joined #ruby-lang
t11134 has quit [Remote host closed the connection]
t22296 has joined #ruby-lang
sailias has quit [Quit: Leaving.]
s1n4 has joined #ruby-lang
kain has quit [Remote host closed the connection]
kain has joined #ruby-lang
kingCrawlerx has quit [Quit: Computer has gone to sleep]
Mellett68 has joined #ruby-lang
m3nd3s has quit [Read error: Connection timed out]
flak has joined #ruby-lang
flak is now known as Guest35822
m3nd3s has joined #ruby-lang
Bosox20051 has joined #ruby-lang
Bosox20051 has quit [Remote host closed the connection]
CarlB_the_great has joined #ruby-lang
rippa has quit [Ping timeout: 276 seconds]
m3nd3s has quit []
m3nd3s has joined #ruby-lang
neocoin has joined #ruby-lang
plusk has joined #ruby-lang
plusk has quit [Client Quit]
qwerxy has joined #ruby-lang
plusk has joined #ruby-lang
TheNullByte has quit [Quit: TheNullByte]
plusk has quit [Client Quit]
m3nd3s has quit [Remote host closed the connection]
qwerxy has quit [Client Quit]
Guest35822 has left #ruby-lang [#ruby-lang]
billyoc has joined #ruby-lang
qwerxy has joined #ruby-lang
rippa has joined #ruby-lang
rippa is now known as spinagon
m3nd3s has joined #ruby-lang
spinagon is now known as rippa
qwerxy has quit [Quit: offski]
qwerxy has joined #ruby-lang
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
qwerxy has quit [Client Quit]
deryl has quit [Quit: Time To Go, Too Bad, So Sad!]
qwerxy has joined #ruby-lang
canton7 has joined #ruby-lang
diegovio1a has joined #ruby-lang
diegoviola has quit [Ping timeout: 240 seconds]
diegovio1a is now known as diegoviola
t22296 has quit [Remote host closed the connection]
t57601 has joined #ruby-lang
vlad_starkov has joined #ruby-lang
rue|w has quit [Remote host closed the connection]
qwerxy has quit [Quit: offski]
ylluminate has joined #ruby-lang
Mellett68 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
TheNullByte has joined #ruby-lang
deryl has joined #ruby-lang
a3li has quit [Ping timeout: 246 seconds]
m3nd3s has quit [Read error: Connection timed out]
TheNullByte has quit [Client Quit]
Mellett68 has joined #ruby-lang
_malte has joined #ruby-lang
TheNullByte has joined #ruby-lang
m3nd3s has joined #ruby-lang
CarlB_the_great has quit [Remote host closed the connection]
chimkan_ has quit [Quit: chimkan_]
qwerxy has joined #ruby-lang
a3li has joined #ruby-lang
yxhuvud has quit [Ping timeout: 245 seconds]
burgestrand has joined #ruby-lang
s1n4 has left #ruby-lang ["leaving"]
benanne has quit [Quit: kbai]
qwerxy has quit [Quit: offski]
havenn has joined #ruby-lang
Denommus has joined #ruby-lang
<Denommus> is there a prevision for Ruby 2.0? I'm anxyous for the new GC
m3nd3s has quit [Read error: Connection timed out]
Bwild has quit [Quit: leaving]
TheNullByte has quit [Quit: TheNullByte]
brianpWins has joined #ruby-lang
TheNullByte has joined #ruby-lang
m3nd3s has joined #ruby-lang
rue|w has joined #ruby-lang
Bwild has joined #ruby-lang
<havenn> Denommus: Yes, you can use Ruby-2.0.0.dev or the GC changes are available as a backported patch for 1.9.3
rue|w has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
yorickpeterse has quit [Quit: System going down for a reboot]
<havenn> Denommus: If you use RVM: rvm install 1.9.3 --patch falcon
cantonic has quit [Quit: cantonic]
cantonic has joined #ruby-lang
cantonic has quit [Client Quit]
kith has joined #ruby-lang
Jotade11 has joined #ruby-lang
yorickpeterse has joined #ruby-lang
neocoin has quit [Remote host closed the connection]
neocoin has joined #ruby-lang
neocoin has quit [Remote host closed the connection]
_malte has quit [Remote host closed the connection]
neocoin has joined #ruby-lang
neocoin has quit [Remote host closed the connection]
cantonic has joined #ruby-lang
m3nd3s has quit [Read error: Connection timed out]
erichmenge has joined #ruby-lang
m3nd3s has joined #ruby-lang
abrausch has joined #ruby-lang
cantonic has quit [Quit: cantonic]
cantonic has joined #ruby-lang
abrausch has quit [Ping timeout: 246 seconds]
abrausch has joined #ruby-lang
Jotade11 has quit [Quit: Linkinus - http://linkinus.com]
wallerdev has joined #ruby-lang
qwerxy has joined #ruby-lang
cantonic has quit [Quit: cantonic]
cantonic has joined #ruby-lang
m3nd3s has quit [Read error: Connection timed out]
erichmenge has quit [Quit: Linkinus - http://linkinus.com]
m3nd3s has joined #ruby-lang
t57601 has quit [Remote host closed the connection]
t84226 has joined #ruby-lang
m3nd3s has quit [Read error: Connection reset by peer]
m3nd3s has joined #ruby-lang
benanne has joined #ruby-lang
Mellett68` has joined #ruby-lang
Mellett68 has quit [Ping timeout: 246 seconds]
rippa has quit [Ping timeout: 264 seconds]
_malte has joined #ruby-lang
havenn has quit [Remote host closed the connection]
m3nd3s has quit [Read error: Operation timed out]
CarlB_the_great has joined #ruby-lang
_malte has quit [Ping timeout: 246 seconds]
m3nd3s has joined #ruby-lang
Mellett68` has left #ruby-lang [#ruby-lang]
plusk has joined #ruby-lang
zmack has quit [Ping timeout: 240 seconds]
Mellett68 has joined #ruby-lang
billyoc has quit [Remote host closed the connection]
TheNullByte has quit [Quit: TheNullByte]
plusk has quit [Ping timeout: 246 seconds]
m3nd3s has quit [Read error: Connection timed out]
methods has joined #ruby-lang
<methods> isn't there a way to switch to a different yaml parser ?
MouseTheLuckyDog has joined #ruby-lang
<MouseTheLuckyDog> I hjave a class A which inherits from Hash. I want to call the method []= in Hash from a method in A how do I do it?
lcdhoffman has quit [Quit: lcdhoffman]
<lianj> MouseTheLuckyDog: self[:foo] = :bar, or send(:[]=, :foo, :bar)
m3nd3s has joined #ruby-lang
erichmenge has joined #ruby-lang
CarlB_the_great has quit [Remote host closed the connection]
macmartine has joined #ruby-lang
rue|w has joined #ruby-lang
qwerxy has quit [Quit: offski]
<MouseTheLuckyDog> lianj: I'm pretty sure that won't work. The method I'm defining in A is []=.
neocoin has joined #ruby-lang
<injekt> super :)
<lianj> ^
macmartine has quit [Client Quit]
<injekt> MouseTheLuckyDog: def []=(a, b); super(b, a); end
rue|w has quit [Ping timeout: 245 seconds]
<methods> i could swear there was a way to change to a better yaml parser
<injekt> 'better'?
plusk has joined #ruby-lang
<injekt> iirc yajl is the fasted impl at the moment
<methods> yea i just moved to a new system and I'm getting problems with files that have ` in them or other things
<injekt> eh all the parsers should support the same standard
alex_kira has quit [Remote host closed the connection]
TheNullByte has joined #ruby-lang
plusk has quit [Quit: plusk]
qwerxy has joined #ruby-lang
m3nd3s has quit [Read error: Connection timed out]
<methods> how would i install another parser ?
jammi has quit [Ping timeout: 252 seconds]
m3nd3s has joined #ruby-lang
jammi has joined #ruby-lang
<Mon_Ouie> Install the gem and see the docs for how to use it
qwerxy has quit [Quit: offski]
plusk has joined #ruby-lang
neocoin has quit [Remote host closed the connection]
cantonic has quit [Quit: cantonic]
cantonic has joined #ruby-lang
alex_kira has joined #ruby-lang
qwerxy has joined #ruby-lang
woollyams has joined #ruby-lang
_malte has joined #ruby-lang
laszlokorte_ has quit [Quit: laszlokorte_]
m3nd3s has quit [Read error: Connection timed out]
erichmenge has quit [Quit: Be back later]
voker57 has quit [Remote host closed the connection]
_malte has quit [Ping timeout: 252 seconds]
kingCrawlerx has joined #ruby-lang
m3nd3s has joined #ruby-lang
TheNullByte has quit [Quit: TheNullByte]
woollyams has quit [Quit: Computer has gone to sleep.]
methods has left #ruby-lang [#ruby-lang]
erichmenge has joined #ruby-lang
carloslopes1 has quit [Quit: Leaving.]
erichmenge has quit [Client Quit]
nXqd has quit [Ping timeout: 252 seconds]
neocoin has joined #ruby-lang
laszlokorte has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
Mellett68 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Tearan has joined #ruby-lang
abstr4ct has quit [Read error: Connection reset by peer]
abrausch has quit [Quit: abrausch]
m3nd3s has quit [Read error: Connection timed out]
m3nd3s has joined #ruby-lang
m3nd3s has quit [Remote host closed the connection]
chimkan has joined #ruby-lang
Jotade11 has joined #ruby-lang
chimkan has quit [Client Quit]
Denommus has quit [Remote host closed the connection]
chimkan has joined #ruby-lang
justinmcp has joined #ruby-lang
stepnem has quit [Ping timeout: 264 seconds]
_CUCK_ has joined #ruby-lang
_CUCK_ has left #ruby-lang [#ruby-lang]
<mfn> I don't unterstand the doc for Array#sample from http://www.ruby-doc.org/core-1.9.3/Array.html#method-i-sample : "The elements are chosen by using random and unique indices into the array in order to ensure that an element doesn’t repeat itself unless the array already contained duplicate elements." Given my array would be [1,2,2,3].sample , would I now have a 25% of getting a '2' or 33%? I'd need 25%,
<mfn> but got confused with that sentence ...
TheNullByte has joined #ruby-lang
alex_kira has quit [Ping timeout: 276 seconds]
anannie has quit [Ping timeout: 240 seconds]
<whitequark> mfn:
<whitequark> > 500.times.map { [1,2,2,3].sample }.group_by { |x| x }.inject({}) { |h,(k,v)| h[k] = v.length; h } => {2=>264, 1=>121, 3=>115}
<whitequark> therefore, 33%.
plusk has quit [Quit: plusk]
<whitequark> I guess that the "random and unique" part means that the probability of receiving each particular element is truly the same, i.e. it's not selected with a simple modulus operation
<whitequark> with which you'd get unfairly low probabilites for last elements in non-power of 2 sized arrays
CarlB_the_great has joined #ruby-lang
<whitequark> (your PRNG is most certainly giving out values in range of [0;2^32), and if v is from those range, the probability of v % 10 being equal to 9 is not the same as being equal to 1.
deryl has quit [Quit: deryl]
deryl has joined #ruby-lang
<mfn> nice codesample, thanks .. will use an index then
gix has quit [Ping timeout: 246 seconds]
<whitequark> the implementation is a little bit unobvious, through
<mfn> yeah, I looked at it through ruby-doc but didn't make sense to me
<mfn> imho the should have not done the "unique" thing; I could have used [1,2,2,3].unique.sample for that
solars has quit [Ping timeout: 272 seconds]
<whitequark> erm
<whitequark> wait, you were wrong and I was, too
<mfn> ol
<mfn> lol
<whitequark> for the [1,2,2,3] example you could either have 50% chance for getting '2' or 33% one
<mfn> your sample indicated 50% for 2 and 25% for the others each, doesn't it
<whitequark> and ruby exhibits the 50% one
<whitequark> yep
<mfn> :)
<whitequark> so it doesn't uniq elements prior to sampling
<whitequark> so I don't see how the "unique" thing in ruby's sample, whatever it is, correlates with .uniq.sample
qwerxy has quit [Quit: offski]
gix has joined #ruby-lang
<mfn> me neither. Array#sample is as useful as it could be to me
lcdhoffman has joined #ruby-lang
<heftig> the unique thing refers to sample(3) or whatever
<heftig> it will not choose the same element multiple times
<lianj> yep
t84226 has quit [Remote host closed the connection]
havenn has joined #ruby-lang
<mfn> ahh ...
t83823 has joined #ruby-lang
<heftig> so [1,2,2,3].sample(2) will choose two elements with distinct indexes
<mfn> thx
<heftig> so you can get [2,2] but not [1,1]
<whitequark> oh, I see
_malte has joined #ruby-lang
toretore has quit [Quit: Leaving]
Criztian has quit [Read error: Connection reset by peer]
alex_kira has joined #ruby-lang
mztriz has joined #ruby-lang
havenn has quit [Remote host closed the connection]
<mztriz> Why is my array getting modified when I run my my code with gen_pass(dict seps)? http://pastie.org/private/t6cfqlxqrhmthvun85sb6q
_malte has quit [Ping timeout: 246 seconds]
solars has joined #ruby-lang
<lianj> mztriz: a, b = d.sample(2); [a, s.sample, b].join
<lianj> mztriz: because of a = [ "string" ]; a[0] << " foo"; a
josh^ has joined #ruby-lang
<mztriz> thanks lianj
macmartine has joined #ruby-lang
havenn has joined #ruby-lang
havenn has quit [Remote host closed the connection]
qwerxy has joined #ruby-lang
solars has quit [Ping timeout: 248 seconds]
chimkan has quit [Ping timeout: 244 seconds]
chimkan__ has joined #ruby-lang
Madis has quit [Quit: ChatZilla 0.9.88.2 [Firefox 11.0/20120313180949]]
tsou has quit [Ping timeout: 245 seconds]
qwerxy has quit [Quit: offski]
benanne has quit [Quit: kbai]
woollyams has joined #ruby-lang
tsou has joined #ruby-lang
m3nd3s_ has joined #ruby-lang
woollyams has quit [Ping timeout: 252 seconds]
ephemerian has quit [Quit: Leaving.]
alex_kira has quit [Remote host closed the connection]
laszlokorte has quit [Quit: laszlokorte]
savage- has joined #ruby-lang
woollyams has joined #ruby-lang
_malte has joined #ruby-lang
_malte has quit [Ping timeout: 246 seconds]
CarlB_the_great has quit [Remote host closed the connection]
TheNullByte has quit [Quit: TheNullByte]
Hakon has quit [Quit: Leaving...]
Rich_Morin has joined #ruby-lang
alex_kira has joined #ruby-lang
TheNullByte has joined #ruby-lang
<Rich_Morin> I'm getting a LoadError when I try to use Appscript - help? http://pastie.org/4659162
chimkan__ has quit [Quit: chimkan__]
vlad_starkov has quit [Remote host closed the connection]
stardiviner has joined #ruby-lang
neocoin has left #ruby-lang [#ruby-lang]