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
sailias has joined #ruby-lang
sailias has quit [Client Quit]
diegoviola has quit [Ping timeout: 252 seconds]
lsegal has joined #ruby-lang
lsegal` has joined #ruby-lang
lsegal has quit [Read error: Connection reset by peer]
bfreeman has quit [Quit: bfreeman]
cantonic has joined #ruby-lang
ilyam has quit [Quit: ilyam]
towski has joined #ruby-lang
cantonic has left #ruby-lang [#ruby-lang]
IPGlider has quit []
chrismcg is now known as zz_chrismcg
kvs has quit [Ping timeout: 248 seconds]
kvs has joined #ruby-lang
jfelchner has quit [Ping timeout: 244 seconds]
dRbiG has quit [Ping timeout: 248 seconds]
enebo has joined #ruby-lang
postmodern has joined #ruby-lang
dRbiG has joined #ruby-lang
cirenyc has joined #ruby-lang
Xzyx987X has joined #ruby-lang
mrsolo has quit [Quit: Leaving]
dRbiG has quit [Ping timeout: 246 seconds]
dRbiG has joined #ruby-lang
krzkrzkrz has joined #ruby-lang
Z33K|Lux has joined #ruby-lang
malev has joined #ruby-lang
msaffitz has quit [Quit: Computer has gone to sleep.]
krz has quit [Ping timeout: 244 seconds]
krzkrzkrz is now known as krz
dRbiG has quit [Ping timeout: 252 seconds]
dRbiG has joined #ruby-lang
dRbiG has quit [Ping timeout: 265 seconds]
dRbiG has joined #ruby-lang
enebo has quit [Quit: enebo]
jobicoppola has joined #ruby-lang
Sambalero has quit [Remote host closed the connection]
RORgasm has joined #ruby-lang
jperry2_ has joined #ruby-lang
jobicoppola has quit [Client Quit]
ViperMaul has quit [Read error: Connection reset by peer]
Kellin has quit [Read error: Connection reset by peer]
jperry2_ has quit [Read error: Connection reset by peer]
Rizzle has joined #ruby-lang
jperry2_ has joined #ruby-lang
samuelkadolph has quit [Ping timeout: 265 seconds]
samuelkadolph has joined #ruby-lang
stardiviner has joined #ruby-lang
malev has quit [Remote host closed the connection]
woollyams has quit [Ping timeout: 265 seconds]
zrail|home has joined #ruby-lang
jtoy has quit [Quit: jtoy]
woollyams has joined #ruby-lang
gix has quit [Ping timeout: 265 seconds]
chongyu123 has quit [Quit: Leaving]
sei has joined #ruby-lang
rue_XIV has joined #ruby-lang
hakunin_ has joined #ruby-lang
hakunin has quit [Read error: Connection reset by peer]
rue has quit [Ping timeout: 265 seconds]
KINGSABRI has joined #ruby-lang
indeterminate has quit [Ping timeout: 265 seconds]
gix has joined #ruby-lang
KINGSABRI has left #ruby-lang [#ruby-lang]
KINGSABRI has joined #ruby-lang
HassanS has joined #ruby-lang
toertore has quit [Quit: This computer has gone to sleep]
ryanf has quit [Quit: leaving]
woollyams has quit [Read error: Connection reset by peer]
s0ra_h is now known as sora_h
arooni-mobile has quit [Ping timeout: 246 seconds]
kvirani has joined #ruby-lang
woollyams has joined #ruby-lang
VGoff_afk is now known as VGoff
diegoviola has joined #ruby-lang
towski has quit [Remote host closed the connection]
savage- has quit [Ping timeout: 240 seconds]
VGoff is now known as VGoff_afk
zz_chrismcg is now known as chrismcg
kvirani has quit [Remote host closed the connection]
chrismcg is now known as zz_chrismcg
hibariya_ has joined #ruby-lang
wmoxam has joined #ruby-lang
soahccc is now known as soahccc`
zenspider has quit [Ping timeout: 245 seconds]
sei has quit [*.net *.split]
Z33K|Lux has quit [*.net *.split]
segy has quit [*.net *.split]
akira989 has quit [*.net *.split]
mistym has quit [*.net *.split]
Fretta has quit [*.net *.split]
alindeman has quit [*.net *.split]
Y_Ichiro has quit [*.net *.split]
mahlon has quit [*.net *.split]
Weems has quit [*.net *.split]
Skif has quit [*.net *.split]
kith has quit [*.net *.split]
sernin has quit [*.net *.split]
jaimef has quit [*.net *.split]
jmeeuwen has quit [*.net *.split]
joast has quit [*.net *.split]
tallship has quit [*.net *.split]
SubSpawn has quit [*.net *.split]
meise has quit [*.net *.split]
thorncp has quit [*.net *.split]
Tasser has quit [*.net *.split]
threedaymonk has quit [*.net *.split]
tris has quit [*.net *.split]
mitchty_ has quit [*.net *.split]
bnagy has quit [*.net *.split]
vbatts has quit [*.net *.split]
anacond109 has quit [*.net *.split]
freedrull has quit [*.net *.split]
kith has joined #ruby-lang
tallship has joined #ruby-lang
postmodern has quit [Ping timeout: 248 seconds]
jperry2_ has quit [Quit: jperry2_]
sora_h is now known as s0ra_h
s0ra_h is now known as sora_h
postmodern has joined #ruby-lang
alindeman has joined #ruby-lang
sernin has joined #ruby-lang
sei has joined #ruby-lang
Z33K|Lux has joined #ruby-lang
segy has joined #ruby-lang
mistym has joined #ruby-lang
akira989 has joined #ruby-lang
Y_Ichiro has joined #ruby-lang
Fretta has joined #ruby-lang
Weems has joined #ruby-lang
mahlon has joined #ruby-lang
Skif has joined #ruby-lang
jaimef has joined #ruby-lang
jmeeuwen has joined #ruby-lang
joast has joined #ruby-lang
SubSpawn has joined #ruby-lang
meise has joined #ruby-lang
thorncp has joined #ruby-lang
freedrull has joined #ruby-lang
Tasser has joined #ruby-lang
threedaymonk has joined #ruby-lang
bnagy has joined #ruby-lang
tris has joined #ruby-lang
mitchty_ has joined #ruby-lang
anacond109 has joined #ruby-lang
vbatts has joined #ruby-lang
alindeman is now known as Guest78592
savage- has joined #ruby-lang
wmoxam has quit [Ping timeout: 246 seconds]
diegoviola has quit [Quit: leaving]
seoaqua has joined #ruby-lang
sora_h is now known as s0ra_h
seanstickle has quit [Quit: Nihil sub sole novum]
neocoin has joined #ruby-lang
jfelchner has joined #ruby-lang
wmoxam has joined #ruby-lang
bryanl_ has quit [Quit: bryanl out]
bryanl has joined #ruby-lang
Taranis has left #ruby-lang [#ruby-lang]
msaffitz has joined #ruby-lang
krz has quit [Quit: krz]
brianpWins has joined #ruby-lang
jtoy has joined #ruby-lang
zrail|home is now known as zrail
msaffitz has quit [Quit: Computer has gone to sleep.]
naz has joined #ruby-lang
naz has quit [Read error: Connection reset by peer]
naz has joined #ruby-lang
naz has quit [Read error: Connection reset by peer]
Jade has joined #ruby-lang
s0ra_h is now known as sora_h
neocoin has quit [Remote host closed the connection]
msaffitz has joined #ruby-lang
msaffitz has quit [Client Quit]
jtoy has quit [Quit: jtoy]
dhruvasagar has joined #ruby-lang
yugui_zzz is now known as yugui
savage- has quit [Remote host closed the connection]
igotnolegs has joined #ruby-lang
qpingu has quit [Quit: Leaving.]
qpingu has joined #ruby-lang
andrewhl has joined #ruby-lang
lsegal` has left #ruby-lang [#ruby-lang]
sepp2k has quit [Remote host closed the connection]
codewrangler has joined #ruby-lang
gregmoreno has quit [Ping timeout: 246 seconds]
msaffitz has joined #ruby-lang
savage- has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
SkramX has joined #ruby-lang
brianpWins has joined #ruby-lang
HassanS has quit [Ping timeout: 246 seconds]
savage- has quit [Remote host closed the connection]
bryancp has quit [Remote host closed the connection]
ku1 has joined #ruby-lang
arooni-mobile has joined #ruby-lang
andrewhl has quit [Read error: Connection reset by peer]
andrewhl has joined #ruby-lang
wmoxam has quit [Ping timeout: 244 seconds]
Guest78592 has left #ruby-lang [#ruby-lang]
krz has joined #ruby-lang
alindeman has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
ando_ has quit [Quit: Leaving...]
ando has joined #ruby-lang
ando has quit [Client Quit]
wmoxam has joined #ruby-lang
wmoxam has quit [Client Quit]
wmoxam has joined #ruby-lang
savage- has joined #ruby-lang
ryanf has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
wmoxam has quit [Quit: leaving]
gregmoreno has joined #ruby-lang
coryf has quit [Remote host closed the connection]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
andrewhl has joined #ruby-lang
savage- has quit [Remote host closed the connection]
concernedcitizen has joined #ruby-lang
mistym has quit [Remote host closed the connection]
naz has joined #ruby-lang
naz has quit [Read error: Connection reset by peer]
Rizzle has quit [Read error: Connection reset by peer]
plusk has joined #ruby-lang
<plusk> where i can find information about ruby versioning? like what means the major, minor, odd, even.
cirenyc has quit [Quit: Leaving...]
plusk has quit [Quit: This computer has gone to sleep]
dhruvasa1ar has joined #ruby-lang
dhruvasagar has quit [Read error: Connection reset by peer]
jxie has quit [Quit: leaving]
Dreamer3 has joined #ruby-lang
Z33K|Lux has quit []
ivanoats has joined #ruby-lang
banisterfiend has quit [Remote host closed the connection]
ryanf has quit [Ping timeout: 248 seconds]
cantonic_ has joined #ruby-lang
cantonic_ is now known as cantonic
_br_ has quit [Quit: Bye, thanks for all the fish.]
ryanf has joined #ruby-lang
_br_ has joined #ruby-lang
perryh_away is now known as perryh
banisterfiend has joined #ruby-lang
ryanf has quit [Quit: broken pipes |||]
outoftime has quit [Quit: Leaving]
Sambalero has joined #ruby-lang
yxhuvud has joined #ruby-lang
ryanf has joined #ruby-lang
HassanS has joined #ruby-lang
Sambalero has quit [Read error: Connection reset by peer]
Sambalero has joined #ruby-lang
ryanf has quit [Quit: broken pipes |||]
stepnem has quit [Ping timeout: 265 seconds]
andrewhl has quit [Remote host closed the connection]
|Vargas| has joined #ruby-lang
|Vargas| has quit [Changing host]
|Vargas| has joined #ruby-lang
|Vargas| has quit [Client Quit]
|Vargas| has joined #ruby-lang
|Vargas| has joined #ruby-lang
savage- has joined #ruby-lang
flowerpot has joined #ruby-lang
Sambalero has quit [Remote host closed the connection]
setmeaway has quit [Read error: Connection reset by peer]
banisterfiend has quit [Remote host closed the connection]
arooni-mobile has quit [Ping timeout: 246 seconds]
arooni-mobile has joined #ruby-lang
ryanf has joined #ruby-lang
akira989 has quit [Remote host closed the connection]
rushed has left #ruby-lang [#ruby-lang]
krz has quit [Quit: krz]
xtagon has quit [Ping timeout: 244 seconds]
woollyams has quit [Read error: Connection reset by peer]
msaffitz has quit [Quit: Computer has gone to sleep.]
KINGSABRI has quit [Quit: Leaving]
woollyams has joined #ruby-lang
bfreeman has joined #ruby-lang
Fretta has quit [Quit: Fretta]
ryanf has quit [Quit: broken pipes |||]
igotnolegs has quit [Quit: Computer has gone to sleep.]
setmeaway has joined #ruby-lang
solars has joined #ruby-lang
HassanS has quit [Ping timeout: 246 seconds]
JohnBat26 has joined #ruby-lang
stepnem has joined #ruby-lang
perryh is now known as perry
qpingu has quit [Quit: Leaving.]
neocoin has joined #ruby-lang
Hakon|mbp has joined #ruby-lang
Silowyi has quit [Ping timeout: 246 seconds]
ramonmaruko has quit [Remote host closed the connection]
bfreeman has quit [Quit: bfreeman]
ramonmaruko has joined #ruby-lang
ryanf has joined #ruby-lang
ivanoats has quit [Quit: Leaving...]
dhruvasa1ar has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby-lang
flowerpot has quit [Ping timeout: 252 seconds]
HassanS has joined #ruby-lang
banisterfiend has joined #ruby-lang
agilobable2 has joined #ruby-lang
agilobable2 has quit [Client Quit]
workmad3 has quit [Ping timeout: 252 seconds]
heftig has quit [Ping timeout: 272 seconds]
heftig has joined #ruby-lang
symm- has joined #ruby-lang
DEac- has quit [Read error: Connection reset by peer]
DEac- has joined #ruby-lang
<erikh> wahooooo
<erikh> call me stupid if you want, but that feels good
tbuehlmann has joined #ruby-lang
savage- has quit [Remote host closed the connection]
kitallis has joined #ruby-lang
futurechimp has joined #ruby-lang
gnufied has joined #ruby-lang
cdt has quit [Quit: Ex-Chat]
neocoin has quit [Remote host closed the connection]
HassanS has quit [Ping timeout: 244 seconds]
srbartlett has quit [Remote host closed the connection]
Asher has quit [Read error: Connection reset by peer]
Asher has joined #ruby-lang
apeiros_ has joined #ruby-lang
sdauboy has joined #ruby-lang
dc5ala has joined #ruby-lang
tekin has joined #ruby-lang
<rfx> I'm very new to rake, I've got an existing project which has 'rake test' implemented; Is there a way to tell rake to only test a single test file specifically, via the command line? The current task has created a FileList from the test directory
<rfx> I'm very new to rake, I've got an existing project which has 'rake test' implemented; Is there a way to tell rake to only test a single test file specifically, via the command line? The current task has created a FileList from the test directory
<rfx> ops ..
ryanf has quit [Ping timeout: 246 seconds]
<drbrain> if they're using TestTask you can
josh_wines has joined #ruby-lang
joshwines has quit [Read error: Connection reset by peer]
jarib has quit [Excess Flood]
cdt has joined #ruby-lang
sdauboy has left #ruby-lang [#ruby-lang]
robotmay has joined #ruby-lang
jarib has joined #ruby-lang
zz_chrismcg is now known as chrismcg
<rfx> drbrain: thanks, I see I can use rake test TEST=filename .. thxalot!
perry is now known as perryh_away
codewrangler has quit [Quit: Computer has gone to sleep.]
mssola has joined #ruby-lang
agilob has quit [Ping timeout: 252 seconds]
agilob has joined #ruby-lang
rue_XIV has left #ruby-lang [#ruby-lang]
rue has joined #ruby-lang
<rue> erikh: This open source thing is pretty cool
symm- has quit [Ping timeout: 252 seconds]
symm- has joined #ruby-lang
woollyams has quit [Ping timeout: 248 seconds]
workmad3 has joined #ruby-lang
outsmartin1 has joined #ruby-lang
outsmartin1 has quit [Client Quit]
Hakon|mbp has quit [Quit: Leaving...]
thone_ has joined #ruby-lang
kitallis has quit [Quit: Computer has gone to sleep.]
thone has quit [Ping timeout: 246 seconds]
dhruvasagar has quit [Ping timeout: 265 seconds]
dhruvasagar has joined #ruby-lang
Berglund has joined #ruby-lang
ryanf has joined #ruby-lang
ryanf has quit [Ping timeout: 248 seconds]
gsav has joined #ruby-lang
zmack has joined #ruby-lang
voker57 has quit [Remote host closed the connection]
mdstunthamster has joined #ruby-lang
seoaqua has quit [Ping timeout: 252 seconds]
dhruvasagar has quit [Ping timeout: 240 seconds]
petercoo_ has joined #ruby-lang
zmack_ has joined #ruby-lang
dhruvasagar has joined #ruby-lang
seoaqua has joined #ruby-lang
petercoo_ is now known as petercooper_
petercooper_ is now known as peterc
zmack has quit [Ping timeout: 246 seconds]
seoaqua has quit [Ping timeout: 248 seconds]
seoaqua has joined #ruby-lang
toretore has joined #ruby-lang
neocoin has joined #ruby-lang
sailias has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 252 seconds]
srbartlett has joined #ruby-lang
dhruvasagar has joined #ruby-lang
sailias has quit [Quit: Leaving.]
soahccc` is now known as soahccc
gregmore_ has joined #ruby-lang
gregmoreno has quit [Ping timeout: 240 seconds]
woollyams has joined #ruby-lang
Gate has quit [Read error: Operation timed out]
Gate_ has joined #ruby-lang
x0F_ has joined #ruby-lang
x0F has quit [Disconnected by services]
zmack_ is now known as zmack
solars has quit [Ping timeout: 248 seconds]
Criztian has joined #ruby-lang
stardiviner has joined #ruby-lang
stardiviner has quit [Remote host closed the connection]
<rfx> I've installed ruby from source manually (no rvm), everything working great. Installed couple gems, have application deployed etc. No I realized I'm missing readline support in irb because I forgot to provide libreadline-dev upfront. Is it safe to install the readline-dev package, run ./configure on the ruby sources again and do make/make install? Or is there a chance I can get into trouble?
<rfx> s/No I/Now I/
srbartlett has quit [Remote host closed the connection]
<burgestrand> rfx: you can install readline separately from the source directory in ext/readline
<burgestrand> rfx: https://rvm.io/packages/readline/ — find in page with "ext/readline", those instructions apply even without rvm
rohit has joined #ruby-lang
kitallis has joined #ruby-lang
erikh has quit [Ping timeout: 245 seconds]
pajama has joined #ruby-lang
srbartlett has joined #ruby-lang
cha1tanya has joined #ruby-lang
solars has joined #ruby-lang
<cha1tanya> pajama, strange!
rohit has quit [Read error: Connection reset by peer]
Guedes has joined #ruby-lang
Guedes has joined #ruby-lang
soahccc is now known as soahccc`
soahccc` is now known as soahccc
<cha1tanya> http://pastie.org/4249138 why this strange behavior. Shouldn't answer of last statement be 4
<Mon_Ouie> I also find that behaviour confusing — not sure if it's intended or a bug
SkramX has quit [Quit: SkramX]
<Muz> The last() returning 5 makes sense. The .each functionality is arguably more confusing.
<Mon_Ouie> Muz: Why? begin...end *is* the syntax for excluding the end of the range.
<cha1tanya> Muz, Mon_Ouie well then why (0..5).last(2) gives 3,4 as answer?
<Muz> Oh sorry, misread the paste as having ".." as opposed to "..." whoops.
<Muz> Yeah, the last() method returning 5 in that case strikes me as confusing.
<cha1tanya> i mean why the 2 different behaviors ?
<rue> I think that might be a bug
<Muz> Does it still do that in 1.9.3?
<rue> Yes
<cha1tanya> Muz, yes i have tested on 1.9.3-p194
<rue> By the way, .last(1) works correctly to…
<cha1tanya> rue, yes so we have 2 different behaviors
<cha1tanya> without argument it is just returning RANGE_END
<cha1tanya> i saw the code
<rue> I’m on bugs.rl.org, I can file it unless you want to do the honours
<cha1tanya> rue, :D
<cha1tanya> rue, actually my friend pajama found it
<cha1tanya> he is not able to post here because he is new to irc
<rue> That behaviour is what Range#end is supposed to do
<cha1tanya> i think he is banned because he used fpaste
<rue> Hah, probably not here. #ruby-long does require nick registration, though
<cha1tanya> rue, but is it a bug ? or it is coded that way?
<rue> It’s definitely a bug, unless someone can explain it satisfactorily. There’s no reason for that behaviour, especially given Range#end
<rue> Range#last should be the actual last element
pajama has left #ruby-lang [#ruby-lang]
<cha1tanya> unless they are synonyms, ( like to_sym and intern)
countdigi has quit [Quit: leaving]
<Mon_Ouie> I wonder if you could argue that 4 isn't the last element because 4.9 is in the range too — depends on whether you use include? or member?
<cha1tanya> rue, how to fix a filed bug?
<rue> Mon_Ouie: You could, I think…but in that case, .last 1 should return the same. And 5 definitely isn’t in, although I guess you can do the mathematical sidestep and declare that 4.999… is, in fact, 5
<rue> cha1tanya: You can generate a patch (diff -u) or via git, against HEAD
plusk has joined #ruby-lang
<rue> Mon_Ouie: I’d decree that #last should return the last element you get from iteration
* banisterfiend predicts a "Yeah."
<banisterfiend> :P
countdigi has joined #ruby-lang
* cha1tanya agrees with rue
<Mon_Ouie> Yes indeed, I think it would make more sense too, but the documentation should be made clearer too
<rue> Yes
<Mon_Ouie> Also I think (0...0).last and (0...-5).last should be nil
<matled> rue: uh, that 4.999 thing is interesting. (1.0...5.0).last should return an error, just as .last(1) does?
<rue> Probably
<rue> I don’t like annoying math
<cha1tanya> rue, :)
<cha1tanya> rue, so what should we do ?
<rue> I’d file it, to get an authoritative answer at least. Do a search on bugs. and ruby-core in case it’s been discussed before
<cha1tanya> rue, ok fine :)
dhruvasagar has quit [Ping timeout: 248 seconds]
dhruvasagar has joined #ruby-lang
mccraig has joined #ruby-lang
<andrewvos> RUBY-LANG MAKE THIS CODE BETTER: url.scan(/\/(\d+)$/).first.first
<andrewvos> I don't like the first.first part. It's soooo ugly.
<andrewvos> Please to do quick urgent code needed
<Mon_Ouie> "foo 13 bar 15"[/\d+$/] #=> "15"
<andrewvos> If I have to wait for rails to launch to test that code then I'm just going to leave it ugly like that.
<andrewvos> Mon_Ouie: I need to get the id at the end of http://www.bbc.co.uk/sport/0/football/18827137
concernedcitizen has quit [Remote host closed the connection]
<countdigi> url.scan(/(\d+)$/).flatten
<rfx> burgestrand: wow, tank you!
<andrewvos> countdigi: I think you mean url.scan(/(\d+)$/).flatten.first
chrismcg is now known as zz_chrismcg
<andrewvos> And #first is shorter than #flatten
<Mon_Ouie> url.sub(/\d+$/, '')
<countdigi> ah yeah - much better what Mon_Ouie
<Mon_Ouie> Also, kind of feels wrong to use it like that, but: File.dirname url
<andrewvos> Mon_Ouie: That returns the opposite of what I want
<andrewvos> Mon_Ouie: NOOOO
<andrewvos> No I need the last part
<andrewvos> So File.basename(url)
<Mon_Ouie> That was my first suggestion…
<Mon_Ouie> <Mon_Ouie> "foo 13 bar 15"[/\d+$/] #=> "15"
<andrewvos> That is possibly worse than the regex
<andrewvos> Oh wait I didn't try that
<andrewvos> Sorry
<andrewvos> Oh man that's pretty. Thanks Mon_Ouie !
retro|cz has quit [Ping timeout: 265 seconds]
Kellin has joined #ruby-lang
stardiviner has joined #ruby-lang
srbartlett has quit [Remote host closed the connection]
ryez has joined #ruby-lang
tekin has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
stardiviner has quit [Client Quit]
mdstunthamster has quit [Quit: Linkinus - http://linkinus.com]
mwjcomputing has joined #ruby-lang
stardiviner has joined #ruby-lang
Mikoangelo has quit [Ping timeout: 252 seconds]
srbartlett has joined #ruby-lang
stardiviner has quit [Client Quit]
Mikoangelo has joined #ruby-lang
srbartlett has quit [Remote host closed the connection]
stardiviner has joined #ruby-lang
carloslopes has joined #ruby-lang
futurechimp has quit [Quit: Leaving]
kith_ has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
kith has quit [Ping timeout: 244 seconds]
pajamapajama has joined #ruby-lang
Hakon|mbp has joined #ruby-lang
kith_ is now known as kith
toretore has quit [Quit: Leaving]
toretore has joined #ruby-lang
Berglund has quit [Quit: Computer died.]
cschwartz has quit [Quit: Lost terminal]
wallerdev has joined #ruby-lang
wallerdev has quit [Client Quit]
wallerdev has joined #ruby-lang
bryancp has joined #ruby-lang
stardiviner has joined #ruby-lang
stardiviner has quit [Client Quit]
stardiviner has joined #ruby-lang
postmodern has quit [Quit: Leaving]
stardiviner has quit [Client Quit]
Hakon|mbp has quit [Quit: Leaving...]
stardiviner has joined #ruby-lang
stardiviner has quit [Client Quit]
futurechimp has joined #ruby-lang
josh_wines has quit [Read error: Connection reset by peer]
stardiviner has joined #ruby-lang
stardiviner has quit [Client Quit]
yugui is now known as yugui_zzz
stardiviner has joined #ruby-lang
pajamapajama has quit [Remote host closed the connection]
bryancp has quit [Remote host closed the connection]
plusk has quit [Ping timeout: 248 seconds]
sailias has joined #ruby-lang
thisirs has joined #ruby-lang
enroxorz has joined #ruby-lang
enroxorz has joined #ruby-lang
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 265 seconds]
brunocoelho has joined #ruby-lang
dhruvasagar has joined #ruby-lang
srbartlett has joined #ruby-lang
jbwiv has quit [Remote host closed the connection]
jxie has joined #ruby-lang
mistym has joined #ruby-lang
jxie has quit [Quit: leaving]
d3vic3 has quit [Ping timeout: 252 seconds]
d3vic3 has joined #ruby-lang
mistym has quit [Remote host closed the connection]
malev has joined #ruby-lang
cha1tanya has quit [Quit: आलोच..]
hynkle has joined #ruby-lang
jbwiv has joined #ruby-lang
mwjcomputing has left #ruby-lang ["Leaving"]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
outoftime has joined #ruby-lang
kitallis has quit [Ping timeout: 265 seconds]
kitallis has joined #ruby-lang
mztriz has joined #ruby-lang
yfeldblum has quit [Quit: Leaving]
S1kx has quit [Read error: Connection timed out]
yugui_zzz is now known as yugui
yugui is now known as yugui_zzz
sepp2k has joined #ruby-lang
yugui_zzz is now known as yugui
andrewhl has joined #ruby-lang
rowanu has joined #ruby-lang
bryancp has joined #ruby-lang
sailias has quit [Ping timeout: 246 seconds]
yugui is now known as yugui_zzz
srbartlett has quit [Remote host closed the connection]
dv310p3r has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 246 seconds]
bryancp has quit [Remote host closed the connection]
tekin has joined #ruby-lang
robin850 has joined #ruby-lang
rhodee has joined #ruby-lang
gokul has joined #ruby-lang
cirenyc has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 248 seconds]
slyphon has joined #ruby-lang
dhruvasagar has joined #ruby-lang
jperry2_ has joined #ruby-lang
retro|cz has joined #ruby-lang
dv310p3r has quit [Ping timeout: 246 seconds]
dv310p3r has joined #ruby-lang
mistym has quit [Remote host closed the connection]
retro|cz has quit [Ping timeout: 265 seconds]
Swimming_Bird has quit [Quit: Computer has gone to sleep.]
jperry2_ has quit [Quit: jperry2_]
GarethAdams has joined #ruby-lang
<GarethAdams> Hi!
<mztriz> Hi GarethAdams
<GarethAdams> Setter methods return the value they're passed, whatever the method returns
<GarethAdams> Where is that documented?
bluemonk has quit [Ping timeout: 255 seconds]
<GarethAdams> it doesn't fit into anything that would appear in RDoc, does it?
bluemonk has joined #ruby-lang
pajamapajama has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
<GarethAdams> tricky question I guess
zmack has quit [Ping timeout: 246 seconds]
bryancp has joined #ruby-lang
bryancp has quit [Read error: Connection reset by peer]
bryancp has joined #ruby-lang
coryf has joined #ruby-lang
sailias has joined #ruby-lang
corecode has joined #ruby-lang
ttilley_off is now known as ttilley
<corecode> o hi
<rfx> wow. used ruby on and off for some time but never realized the throw/catch raise/rescue issue ...
rohit has joined #ruby-lang
<corecode> what issue?
<banisterfiend> rfx: what's the issue homie
<corecode> meh, somehow jruby gets stuck sometimes when running my program
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
Fretta has joined #ruby-lang
<rfx> I've been trying to track a bug since ages now, I'm using a 3rd party lib which "throws" an Exception and when I try to handle it, it's always an ArgumentError on my end, and not the exception. Took me some time to realize that the 3rd party lib is somehow the problem. It would have worked if it used "raise" for the exception ...
HassanS has joined #ruby-lang
<banisterfiend> rfx: lol throwing an exception
<banisterfiend> that's cute
<corecode> isn't that throwing signals or so?
<banisterfiend> no
<banisterfiend> throw is a nifty little thing that comes in handy once or twice in a blue moon, but when it does it's great
fgomez has quit [Quit: Lost terminal]
<rfx> Here's the 3rd party code: https://github.com/firmafon/ruby-fogbugz/blob/master/lib/ruby_fogbugz/interface.rb#L27 ; when used within a sinatra app, it always ends up as an ArgumentError and not this AuthenticationException it's supposed to be. When I change it to raise, it works
Swimming_Bird has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
woollyams has quit [Quit: Computer has gone to sleep.]
gsav has quit [Ping timeout: 252 seconds]
gokul has quit [Quit: Leaving]
outoftime has quit [Ping timeout: 248 seconds]
zmack has joined #ruby-lang
macmartine has joined #ruby-lang
outoftime has joined #ruby-lang
Sambalero has joined #ruby-lang
outoftime has quit [Remote host closed the connection]
rohit has quit [Ping timeout: 246 seconds]
zmack has quit [Ping timeout: 246 seconds]
florentg2 has joined #ruby-lang
florentg2 has quit [Client Quit]
zmack has joined #ruby-lang
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Read error: Connection reset by peer]
gsav has joined #ruby-lang
florentg2 has joined #ruby-lang
brunocoelho has quit [Ping timeout: 246 seconds]
masterkorp has joined #ruby-lang
<masterkorp> So what's the mysql gem do you guys recomend ?
dhruvasagar has quit [Ping timeout: 244 seconds]
<darix> masterkorp: mysql2?
brunocoelho has joined #ruby-lang
dhruvasagar has joined #ruby-lang
digitalbane has joined #ruby-lang
<masterkorp> darix: seems simpler than mysql
<masterkorp> thanks
<masterkorp> just what i need
rohit has joined #ruby-lang
macmartine has quit [Quit: macmartine]
j342 has joined #ruby-lang
zmack has quit [Ping timeout: 246 seconds]
dhruvasa1ar has joined #ruby-lang
zmack has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 255 seconds]
<masterkorp> What does the :var mean in ruby ?
<burgestrand> masterkorp: it’s a symbol literal
<burgestrand> masterkorp: like 5 is a number literal
<_tca> :var means :var like 5 means 5
<masterkorp> Mysql2::Client.new(:host => "localhost", :username => "root")
stardiviner has joined #ruby-lang
sockmonk has joined #ruby-lang
<masterkorp> reading
<masterkorp> burgestrand: thanks
<_tca> masterkorp: the method is recieving those parameters as a hash
zmack has quit [Ping timeout: 240 seconds]
solars has quit [Ping timeout: 246 seconds]
stardiviner has quit [Client Quit]
<_tca> with those symbols as the keys for it's convention
<masterkorp> so its like a constant ?
akira989 has joined #ruby-lang
<_tca> masterkorp: the thing it is most like is an int or string
thisirs has quit [Remote host closed the connection]
HassanS has quit [Quit: Reconnecting]
HassanS has joined #ruby-lang
msaffitz has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
<_tca> lambda {|a={}| a[:foo] }.call(:foo => "bar") => "bar"
<_tca> does that make sense to you masterkorp
msaffitz has quit [Client Quit]
<masterkorp> no
<burgestrand> masterkorp: read the guide you linked to, it’s good :)
<masterkorp> that's really weird for my C yeah
<masterkorp> s/yeah/head/
<burgestrand> masterkorp: people like to compare them to enums
<masterkorp> hmmm
<masterkorp> that makes some sence
gnufied has quit [Quit: Leaving.]
zmack has joined #ruby-lang
<masterkorp> ok i will investigate
<masterkorp> cheers
<burgestrand> masterkorp: something not mentioned in the guide is that symbols are never garbage collected
robin850 has quit [Quit: Konversation terminated!]
carloslopes has quit [Quit: Leaving.]
cirenyc has quit [Quit: Linkinus - http://linkinus.com]
<masterkorp> hmm
solars has joined #ruby-lang
<masterkorp> they are used a lot in Chef
<burgestrand> masterkorp: they are used a lot everywhere
zmack has quit [Ping timeout: 246 seconds]
zmack has joined #ruby-lang
rohit has quit [Quit: Leaving]
JohnBat26 has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
lsegal has joined #ruby-lang
zmack has quit [Ping timeout: 246 seconds]
msaffitz has joined #ruby-lang
Kellin has quit [Ping timeout: 246 seconds]
cha1tanya has joined #ruby-lang
<cha1tanya> pajamapajama, hi
gnufied has joined #ruby-lang
kvirani has joined #ruby-lang
Silowyi has joined #ruby-lang
msaffitz has quit [Quit: Computer has gone to sleep.]
singpolyma has quit [Remote host closed the connection]
brunocoelho has quit [Remote host closed the connection]
singpolyma has joined #ruby-lang
zmack has joined #ruby-lang
kitallis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
florentg2_ has joined #ruby-lang
florentg2 has quit [Read error: Connection reset by peer]
florentg2_ is now known as florentg2
outoftime has joined #ruby-lang
zmack has quit [Ping timeout: 246 seconds]
headius has joined #ruby-lang
RickHull has joined #ruby-lang
<RickHull> YAML question: I'm using YAML for a config file (using hash as the toplevel structure). I would like to support the following hash value as a string: 1,2,3,4
<RickHull> however, it seems that YAML will interpret this as a numeric without quotes
<RickHull> 1234
<RickHull> (i'm not sure about multiple commas, actually)
<RickHull> with a single comma, using an actual example: 30,60 is interpreted as 3060
Austin__ has joined #ruby-lang
<RickHull> if there are spaces between the comma(s), then i get a string
<RickHull> it's a little brittle for the end user doing the config, if he needs to make sure to include spaces or quotes
<RickHull> that said, i think i understand why it works this way -- commas are used as decimal points outside the US
<RickHull> that, or they are used to separate 10^3 within the US
jxie has joined #ruby-lang
<RickHull> i don't suppose there is a way to force the behavior at a library level, rather than at the user / config file level?
|Vargas| has quit [Quit: ...]
brianpWins has quit [Quit: brianpWins]
bfreeman has joined #ruby-lang
tekin has quit [Quit: Computer has gone to sleep.]
<GarethAdams> We use commas as thousand separators here in the UK too
ivanoats has joined #ruby-lang
<RickHull> yeah, an anglo thing i guess
<RickHull> not to be US-centric, but I can't really speak authoritatively about elsewhere :P
d3vic3 has quit [Quit: leaving]
<banisterfiend> RickHull: hey ricky
<RickHull> what's up piggy!
<RickHull> long time no see. Pry has really taken off, eh?
zmack has joined #ruby-lang
JustinCampbell has joined #ruby-lang
<banisterfiend> RickHull: yeah i guess, unfortunately it's just "pry" not "banisterfiend's Pry", so i dont really improve my own status too much :/
<banisterfiend> hehe
<banisterfiend> i'm never mentioned in any articles on it :(
<banisterfiend> ah well, it's my gift to the world
<RickHull> github doesn't lie
<banisterfiend> RickHull: how are oyu?
<RickHull> doing pretty well, haven't done much ruby lately unfortunately
<RickHull> day job sucks, not doing much actual dev work
<banisterfiend> ah well, do you still idle here? or you given up irc?
pbjorklund has quit [Ping timeout: 244 seconds]
<RickHull> the work firewall is IP based
<RickHull> and freenode.net's IP pool keeps changing
<RickHull> so it's a total crapshoot, whether i can connect
dhruvasagar has joined #ruby-lang
<RickHull> for the last 6 months or so, i've basically given up trying
<RickHull> but i've gotten a little lucky, lately
<banisterfiend> RickHull: it's pretty dead these days anyway
solars has quit [Ping timeout: 255 seconds]
<banisterfiend> #ruby-lang basically has 30 min-1 hour of active chat each day, the rest it's silence
<banisterfiend> anyway i better get to sleep it's 3:30am here
<banisterfiend> RickHull: good seeing you, & see you round ! :)
dhruvasa1ar has quit [Ping timeout: 252 seconds]
pbjorklund has joined #ruby-lang
<RickHull> cheers, no IRC while driving
tbuehlmann has quit []
<banisterfiend> hehe:)
toretore has quit [Read error: Connection reset by peer]
toretore has joined #ruby-lang
malev has quit [Remote host closed the connection]
msaffitz has joined #ruby-lang
tr-808 has quit [Remote host closed the connection]
zmack has quit [Ping timeout: 246 seconds]
tr-808 has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby-lang
WillMarshall has joined #ruby-lang
zrail has left #ruby-lang [#ruby-lang]
robotmay has quit [Remote host closed the connection]
peterc has quit [Remote host closed the connection]
Sambalero has quit [Remote host closed the connection]
solars has joined #ruby-lang
gsav has quit [Ping timeout: 248 seconds]
msaffitz has quit [Quit: Computer has gone to sleep.]
Oloryn_lt2 has joined #ruby-lang
rhodee_ has joined #ruby-lang
zmack has joined #ruby-lang
brianpWins has joined #ruby-lang
Oloryn_lt2 has quit [Read error: Connection reset by peer]
rhodee has quit [Ping timeout: 248 seconds]
rhodee_ has left #ruby-lang [#ruby-lang]
Oloryn_lt2 has joined #ruby-lang
kvirani has quit [Remote host closed the connection]
zmack has quit [Ping timeout: 246 seconds]
malev has joined #ruby-lang
WillMarshall has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
tomb has quit [Quit: Computer has gone to sleep.]
burgestrand has quit [Ping timeout: 246 seconds]
zmack has joined #ruby-lang
jtoy has joined #ruby-lang
NemesisD has joined #ruby-lang
butchanton has joined #ruby-lang
<NemesisD> hi all. if i create a socket pair and then fork a bunch of times and pass one end of the socket to every child, is it treated like a queue or does each child get every message?
Oloryn_lt21 has joined #ruby-lang
zmack has quit [Ping timeout: 246 seconds]
Oloryn_lt2 has quit [Quit: Leaving.]
Oloryn_lt21 has quit [Quit: Leaving.]
Oloryn_lt2 has joined #ruby-lang
savage- has joined #ruby-lang
savage- has quit [Remote host closed the connection]
savage- has joined #ruby-lang
Oloryn_lt2 has quit [Client Quit]
Oloryn_lt2 has joined #ruby-lang
jarib has quit [Excess Flood]
neocoin has quit [Remote host closed the connection]
jarib has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby-lang
tcopp has joined #ruby-lang
sora_h is now known as s0ra_h
s0ra_h is now known as sora_h
icooba has quit [Quit: Computer has gone to sleep.]
bfreeman has quit [Quit: bfreeman]
hynkle has quit [Quit: Computer has gone to sleep.]
zmack has joined #ruby-lang
tomb has joined #ruby-lang
dhruvasa1ar has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
dhruvasagar has quit [Ping timeout: 252 seconds]
msaffitz has joined #ruby-lang
Criztian has quit [Remote host closed the connection]
zmack has quit [Ping timeout: 246 seconds]
zmack has joined #ruby-lang
qpingu has joined #ruby-lang
<sernin> Is there a possibility someone could explain to me what's going on in http://pastie.org/4250848
cdt has quit [Quit: Ex-Chat]
zmack has quit [Ping timeout: 246 seconds]
<Mon_Ouie> process_line(…) returned nil
sora_h is now known as s0ra_h
<sernin> Ah, so the error message is what's confusing, it is not complaining about the hash in scope, its complaining because it can't merge the return value into a hash
<sernin> its not the caller that's nil, it is the return value from process_line. eureka. thanks.
zmack has joined #ruby-lang
<cha1tanya> rue, i am downloading ruby source from github, is it ok or i have to use main svn repo
apeiros_ has quit [Remote host closed the connection]
<sernin> Mon_Ouie: thank you, thank you thank you.
scampbell has joined #ruby-lang
zmack has quit [Remote host closed the connection]
qpingu has quit [Quit: Leaving.]
dc5ala has quit [Quit: Ex-Chat]
qpingu has joined #ruby-lang
<Mon_Ouie> If the receiver were nil, it would say NoMethodError
qpingu has quit [Quit: Leaving.]
towski has joined #ruby-lang
burgestrand has joined #ruby-lang
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
mztriz has quit [Read error: Connection reset by peer]
qpingu has joined #ruby-lang
<NemesisD> could somebody help me figure out why this code deadlocks? http://pastie.org/4250991
Swimming_Bird has quit [Quit: Computer has gone to sleep.]
<chris2> i had something like that once too
<chris2> where only the final join deadlocks
<chris2> if you replace it with a long enough sleep it works?
qpingu has quit [Client Quit]
publicvoid_ has quit [Ping timeout: 244 seconds]
qpingu has joined #ruby-lang
dhruvasa1ar has quit [Ping timeout: 244 seconds]
andrewhl has joined #ruby-lang
workmad3 has quit [Ping timeout: 250 seconds]
Gate_ has left #ruby-lang [#ruby-lang]
Gate has joined #ruby-lang
Gate has quit [Changing host]
Gate has joined #ruby-lang
<Weems> if I want to learn ruby and eventually my goal is rails, should I go through ruby tutorials and then make my way to rails?
towski has quit [Remote host closed the connection]
<Mon_Ouie> That's what I would recommend — over learning Rails right away, neglecting the language you're using
<Weems> indeed
<Gate> Weems: agreed, Ruby is awesome, Rails is awesome because of Ruby (Not the other way around)
<Weems> was curious if that was the right way.
<Weems> thanks.
ivanoats is now known as ivanoats|away
<Weems> coming from a Java background, some of the automatic conversions ruby does strike against everything I know :P
hynkle has joined #ruby-lang
ivanoats|away is now known as ivanoats
publicvoid_ has joined #ruby-lang
soahccc is now known as soahccc`
symm- has quit [Ping timeout: 252 seconds]
<RickHull> Weems: yep, but it's significant that tons of people who love developing high quality software get along without that stuff
<Weems> but I love the ease of use :P
<Weems> I didn't say that was a reason that I don't like ruby, quite the opposite actually.
<RickHull> no doubt :)
<Weems> just different, not bad.
<GarethAdams> "Is it an array? is it a hash? I don't care, so long as I can call #map on it!"
<Mon_Ouie> Ruby doesn't do much automatic conversions — it's still strongly typed
<RickHull> GarethAdams: maybe not the best example, given what map returns in those cases :P
<GarethAdams> true
mrsolo has joined #ruby-lang
<Weems> what does everyone use for coding? is there a good windows ide? (still learning functions so some code completion could be useful)
<chris2> you learn quicker without :P
<RickHull> mostly unix folks here. vim and emacs
<RickHull> but lots of mac people
<RickHull> i forget what's big in that arena
<RickHull> mostly macs these days?
<Weems> hehe was thinking that might be the ab=nswer :p
<Weems> answer*
<Mon_Ouie> Many people seem to use Textmate. Sublime Text also seems to come up often lately.
<Weems> so may ruby devs use mac? interesting
<RickHull> there are tons of quality windows IDEs for ruby
<RickHull> but freenode attracts a certain demographic
Skif has quit [Ping timeout: 240 seconds]
towski has joined #ruby-lang
Skif has joined #ruby-lang
henk has joined #ruby-lang
<henk> hi
<henk> Is there a seperate channel for beginners?
<Mon_Ouie> No
<henk> ok thanks
<Mon_Ouie> Beginners are welcome here ;)
bfreeman has joined #ruby-lang
<NemesisD> where can i figure out where my gems are going? $GEM_HOME is not set
<Mon_Ouie> Run gem env
GarethAdams has quit [Quit: Later!]
mrsolo has quit [Quit: Leaving]
<bougyman> Mon_Ouie: you mean 2 + "2" != "chair" ?
mrsolo has joined #ruby-lang
<Mon_Ouie> bougyman: For instance, yes
kvirani has joined #ruby-lang
<cha1tanya> hey hi
slyphon has quit [Quit: WeeChat 0.3.7]
<cha1tanya> range#last output is interesting
tenderlove has joined #ruby-lang
florentg2 has quit [Quit: florentg2]
<henk> I’m trying to learn programming (as opposed to hacking together little scripts) by writing a gtk client for xmms2 in ruby. After the connection is established, the client just hangs for quite a while, AFAICT depending on the size of the medialib it has to get from the daemon. Can anyone give advice on how to determine what causes these delays?
jfelchner has quit [Ping timeout: 244 seconds]
tenderlove has quit [Ping timeout: 265 seconds]
tenderlove has joined #ruby-lang
digitalbane has left #ruby-lang [#ruby-lang]
j342 has quit [Ping timeout: 246 seconds]
coryf has quit [Remote host closed the connection]
ilyam has joined #ruby-lang
coryf has joined #ruby-lang
ipattiso has joined #ruby-lang
GarethAdams has joined #ruby-lang
anjen has joined #ruby-lang
S1kx has joined #ruby-lang
S1kx has quit [Changing host]
S1kx has joined #ruby-lang
voker57 has quit [Remote host closed the connection]
GarethAdams has quit [Client Quit]
akira989 has quit [Remote host closed the connection]
ipattiso has left #ruby-lang [#ruby-lang]
cha1tanya has quit [Quit: आलोच..]
erikh has joined #ruby-lang
israelpattison has joined #ruby-lang
<israelpattison> hello
<israelpattison> I need some help with a simile Mysql class: git://gist.github.com/3106369.git
savage- has quit [Read error: Connection reset by peer]
j342 has joined #ruby-lang
kparaju has joined #ruby-lang
GarethAdams has joined #ruby-lang
qpingu has quit [Ping timeout: 244 seconds]
pajamapajama has quit [Remote host closed the connection]
imajes has quit [Excess Flood]
rhodee has joined #ruby-lang
rhodee has quit [Remote host closed the connection]
imajes has joined #ruby-lang
rhodee has joined #ruby-lang
<rue> Try a http: URL
Guedes has quit [Read error: Operation timed out]
<rue> General advice: favour composition over inheritance. That said, is there a particular problem? Error message and so forth?
akira989 has joined #ruby-lang
<israelpattison> the script calls Mysql.initialize with the single parameter instead of calling Imysql.initialize and the self.new. I can't get it to go into the "overridden" initialize method.
qpingu has joined #ruby-lang
<israelpattison> Here's the error: Node: aleph
<israelpattison> Error code: 2003
<israelpattison> Error message: Can't connect to MySQL server on 'aleph' (111)
<israelpattison> Error SQLSTATE: HY000
<israelpattison> But that's happening because it isn't getting the userid, password, db or port parameters.
Criztian has joined #ruby-lang
<RickHull> israelpattison: take a step back, don't use inheritance here just yet
<RickHull> just make sure you ahve the right config/settings to get a valid db handle first
<RickHull> it looks like the mysql lib can't connect to the server using the supplied params. a config thing, not a code thing
enebo has joined #ruby-lang
diegoviola has joined #ruby-lang
<rue> Right, I’d try just plain MySQL call first
<rue> Then directly the adapter
<rue> Also, style/sanity note: use constants rather than @@vars wherever possible.
<rue> Or just class instance variables
jakko has joined #ruby-lang
solars has quit [Ping timeout: 250 seconds]
Oloryn_lt2 has quit [Quit: Leaving.]
Oloryn_lt2 has joined #ruby-lang
akira989 has quit [Remote host closed the connection]
coryf has quit [Remote host closed the connection]
jakko has quit [Remote host closed the connection]
tooky has quit [Remote host closed the connection]
<israelpattison> Doing the Mysql.new with all the parameters works, and works well. So, I'm moving on from that step assuming that it works.
Criztian has quit [Remote host closed the connection]
<israelpattison> the reason for doing things this way is I have many mysql servers to connect to. they all have the same parameters minus the hostname. I'm trying to simplify the object initialization by just requiring the one variable.
<RickHull> i wouldn't necessarily use class inheritance for that
<israelpattison> is there any indication of what I'm doing wrong (outside of mis-using inheritance)?
malev has quit [Remote host closed the connection]
headius has quit [Quit: headius]
<israelpattison> I could see that this would apply to any parent class I'm trying to inherit if I'm not properly defining the initialization method.
<RickHull> here's a simply way to do it https://gist.github.com/3106667
solars has joined #ruby-lang
<RickHull> if you want to inject that behavior into an object/class schema or whatever, it should be simple enough
enebo has quit [Quit: enebo]
<RickHull> i wrote that gist without any understanding of the Mysql lib or what it requires
akira989 has joined #ruby-lang
<israelpattison> thanks
jfelchner has joined #ruby-lang
savage- has joined #ruby-lang
j342 has quit [Quit: Leaving]
anjen has quit [Quit: anjen]
ryez has quit [Ping timeout: 245 seconds]
PhilCK has joined #ruby-lang
akira989 has quit [Remote host closed the connection]
tenderlo_ has joined #ruby-lang
florentg2 has joined #ruby-lang
drollwit has joined #ruby-lang
tenderlove has quit [Ping timeout: 244 seconds]
akira989 has joined #ruby-lang
gsav has joined #ruby-lang
qpingu has left #ruby-lang [#ruby-lang]
ConstantineXVI has joined #ruby-lang
israelpattison has quit [Quit: ChatZilla 0.9.88.2 [Firefox 13.0.1/20120614114901]]
krz has joined #ruby-lang
bryancp has quit [Remote host closed the connection]
icooba has joined #ruby-lang
Swimming_Bird has joined #ruby-lang
kain has left #ruby-lang ["Sto andando via"]
<rue> RickHull: So did the MySQL developers! *rimshot*
gokul has joined #ruby-lang
tekin has joined #ruby-lang
<epitron> ZINGG
andrewhl has quit [Remote host closed the connection]
tenderlo_ is now known as tenderlove
ivanoats has quit [Ping timeout: 240 seconds]
futurechimp has quit [Quit: Leaving]
tekin has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
msaffitz has quit [Quit: Computer has gone to sleep.]
florentg2 has quit [Ping timeout: 246 seconds]
florentg2 has joined #ruby-lang
slyphon has joined #ruby-lang
QaDeS has joined #ruby-lang
hynkle has quit [Read error: Connection reset by peer]
bryancp has joined #ruby-lang
HassanS has quit [Quit: Reconnecting]
HassanS has joined #ruby-lang
hynkle has joined #ruby-lang
Criztian has joined #ruby-lang
workmad3 has joined #ruby-lang
<Weems> rue: funny
workmad3 has quit [Ping timeout: 244 seconds]
s0ber_ has joined #ruby-lang
gsav has quit [Ping timeout: 240 seconds]
<rue> Weems: I’ll be here all…well, probably a few years. Sigh.
PhilCK has quit [Quit: PhilCK]
s0ber has quit [Ping timeout: 245 seconds]
s0ber_ is now known as s0ber
coryf has joined #ruby-lang
wmoxam has joined #ruby-lang
msaffitz has joined #ruby-lang
Swimming_Bird has quit [Remote host closed the connection]
headius has joined #ruby-lang
gsav has joined #ruby-lang
florentg2 has quit [Ping timeout: 265 seconds]
florentg2 has joined #ruby-lang
jrafanie has joined #ruby-lang
HassanS has quit [Ping timeout: 240 seconds]
coryf has quit [Remote host closed the connection]
JustinCampbell has quit [Remote host closed the connection]
JustinCampbell has joined #ruby-lang
jfelchner has quit [Ping timeout: 244 seconds]
jperry2 has quit [Quit: jperry2]
workmad3 has joined #ruby-lang
rowanu has quit [Remote host closed the connection]
gsav has quit [Quit: Lost terminal]
msaffitz has quit [Quit: Computer has gone to sleep.]
outsmartin1 has joined #ruby-lang
bryancp has quit [Remote host closed the connection]
Oloryn_lt2 has quit [Read error: Connection reset by peer]
<RickHull> rue: ha!
drollwit has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 252 seconds]
Hakon|mbp has joined #ruby-lang
Hakon|mbp has quit [Client Quit]
hynkle has quit [Quit: Computer has gone to sleep.]
<RickHull> gotta run, hopefully the firewall will let me return
RickHull has left #ruby-lang [#ruby-lang]
PhilCK has joined #ruby-lang
PhilCK has quit [Client Quit]
tubbo is now known as tubbo`gone
tommyvyo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
msaffitz has joined #ruby-lang
diegoviola has quit [Quit: leaving]
icooba has quit [Quit: Computer has gone to sleep.]
sc0 has joined #ruby-lang
diegoviola has joined #ruby-lang
RORgasm has quit [Remote host closed the connection]
RORgasm has joined #ruby-lang
pbjorklund has quit [Ping timeout: 240 seconds]
pbjorklund has joined #ruby-lang
yxhuvud has quit [Ping timeout: 246 seconds]
RORgasm has quit [Ping timeout: 246 seconds]
neocoin has joined #ruby-lang
workmad3 has quit [Ping timeout: 246 seconds]
GeekOnCoffee_ has joined #ruby-lang
GeekOnCo- has joined #ruby-lang
kvirani has quit [Remote host closed the connection]
JustinCampbell has quit [Remote host closed the connection]
rhodee has left #ruby-lang [#ruby-lang]
workmad3 has joined #ruby-lang
bfreeman has quit [Read error: Connection reset by peer]
<rfx> supposed I've a lot of gems installed and a project I'm having "magically" works because the dependencies are implicitly fullfilled. Is there an easy way to figure out what the real dependencies are, without deinstalling all gems and going trial&error?
florentg2 has quit [Ping timeout: 248 seconds]
bfreeman has joined #ruby-lang
<GarethAdams> rfx: search for 'require' statements?
<rfx> GarethAdams: hmm :)
gokul has quit [Ping timeout: 246 seconds]
<rfx> Is it possible, even when having many gems installed, to only work with a subset of them activated .. somehow?
<canton7> if you're into bundler, set up a Gemfile etc, and run it using 'bundle exec'. keep adding gems to the gemfile until it stops breaking
<rfx> canton7: ahh .. I've heard of bundler (i.e. bundle install, exec). Does it "shadow out" the stuff *not* mentioned in the spec?
<davidbalbert> rfx: yup
<rfx> oh. .. guess I've to readup the bundler docs mare carefully. thanks for the pointer
wmoxam has quit [Quit: leaving]
<canton7> yeah, it creates its own isolated little environment for the app to run in (provided you jump through some hoops first)
<rfx> hoops .. like what? anything besides setting um the Gemfile? I'm reading through http://gembundler.com/rationale.html and I'm not sure what it means with "For another kind of application (such as a Sinatra application), you will need to set up bundler before trying to require any gems" .. but it doesn't describe why
ruskie has quit [Quit: ...]
bryancp has joined #ruby-lang
soahccc` is now known as soahccc
s0ra_h is now known as sora_h
drollwit has joined #ruby-lang
<rue> rfx: You can use gems for that
<rue> $ gem dep[endency] gemname
drollwit has quit [Read error: Operation timed out]
<rfx> rue: thanks, didn't know that...
jfelchner has joined #ruby-lang
lixef has joined #ruby-lang
ruskie has joined #ruby-lang
jperry2 has joined #ruby-lang
jperry2 has quit [Client Quit]
mistym has quit [Remote host closed the connection]
JustinCampbell has joined #ruby-lang
dv310p3r has quit [Ping timeout: 246 seconds]
Criztian has quit [Remote host closed the connection]
mssola has quit [Quit: Konversation terminated!]
workmad3 has quit [Ping timeout: 252 seconds]
jarib has quit [Excess Flood]
jarib has joined #ruby-lang
headius has quit [Quit: headius]
<davidbalbert> rfx: i don't know if you've figured this out, but the reason for needing to `require 'bundler/setup'` in a sinatra application is because sintra doesn't do it for you
rhalff has joined #ruby-lang
<rhalff> hi smart people!
<davidbalbert> rails is actually a bit of a special case in that it sets up bundler's isolation environment itself
sora_h is now known as s0ra_h
<davidbalbert> you can see this if you look at the top of config/application.rb in a rails 3.x app, you'll see a call to Bundler.require
<rhalff> how would I find feynman point within a huge number, where the feynman point is a sequence of six 9s.
<diegoviola> weird
<GarethAdams> rhalff: is that a ruby question or a maths question?
<rhalff> GarethAdams, actually I was hoping for a number.find_feynman_point() function :p
<rhalff> I'm wondering if pi/4 contains such a sequence
<diegoviola> i've been fooling around with some old rails 2.x app that is still on ruby 1.8.x, this app pulls some data via oauth, and one of those oauth data is email, but the email always comes with some weird data like \240, ` or P instead of @, i've ran the app on the latest jruby and those encoding errors went away
<diegoviola> are those encoding issues common with old ruby versions?
<rfx> davidbalbert: hmm .. ok ... thing is, I thought bundler is kind of "transparent" to the application itself; i.e. Ok, there's the Gemfile(.lock) and I use bundle exec, but the actual application doesn't need to have any further dependencies on bundler itself. Or so I thought
<rhalff> pi does and tau (2*pi) does.
lixef has quit [Quit: lixef]
<davidbalbert> rfx: IIRC `bundle exec` will run the equivalent of `require 'bundler/setup'`
<davidbalbert> but i'd have to check the source
fayimora has joined #ruby-lang
Austin__ has quit [Quit: Leaving.]
<rfx> davidbalbert: you mean, I've I wouldn't want to use "bundle exec", my /other/ option would be `require "bundler/setup"`?
jrafanie has left #ruby-lang [#ruby-lang]
<davidbalbert> yeah if you don't want to have to type `bundle exec` every time, you can also set up bundler from within your code
apeiros_ has joined #ruby-lang
bryancp has quit [Remote host closed the connection]
<davidbalbert> rfx: ok, yeah if you look at the definition of exec in bundler/cli.rb line 400 is approximately the same as what require 'bundler/setup' does
<davidbalbert> bundler/setup eventually calls Bundler::Runtime#setup, which calls setup_environment, which is what bundle exec calls: https://github.com/carlhuda/bundler/blob/v1.1.3/lib/bundler/runtime.rb#L7
akira989 has quit [Remote host closed the connection]
<rhalff> *rhalff is afraid to use such a function, maybe he finds 666 :| :p*
<rfx> praise github source highlighting; thanks
<rhalff> oh 666666 that is.
<diegoviola> any ideas please?
s0ra_h is now known as sora_h
seanstickle has joined #ruby-lang
<rue> rfx: Yes, it’s kinda dumb to have to hardcode it
<rue> diegoviola: JRuby in 1.8 mode/
<diegoviola> rue: yes
outoftime has quit [Quit: Leaving]
headius has joined #ruby-lang
akira989 has joined #ruby-lang
stardiviner has joined #ruby-lang
sockmonk has quit [Ping timeout: 272 seconds]
<rue> diegoviola: Are you encoding it at all yourself, with Iconv? It could (I guess) be that the JVM’s native string representation removes some of those issues.
masterkorp has left #ruby-lang ["WeeChat 0.3.2"]
<diegoviola> rue: i don't think it's using iconv
<diegoviola> rue: yeah could be
<diegoviola> thanks
lun_ has joined #ruby-lang
qpingu has joined #ruby-lang
sora_h is now known as s0ra_h
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
s0ra_h is now known as sora_h
sora_h is now known as s0ra_h
s0ra_h is now known as sora_h
NemesisD has quit [Quit: leaving]
apeiros_ has quit [Remote host closed the connection]
ilyam_ has joined #ruby-lang
ilyam_ has quit [Client Quit]
ilyam has quit [Ping timeout: 240 seconds]
RORgasm has joined #ruby-lang
solars has quit [Ping timeout: 248 seconds]
sepp2k has quit [Remote host closed the connection]
sandbags has quit [Remote host closed the connection]
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
RORgasm has quit [Ping timeout: 246 seconds]
^sandbags^ has joined #ruby-lang
sandbags has quit [Ping timeout: 256 seconds]
woollyams has joined #ruby-lang
woollyams has quit [Client Quit]
burgestrand has quit [Quit: Leaving.]
sandbags has joined #ruby-lang
burgestrand has joined #ruby-lang
^sandbags^ has quit [Ping timeout: 265 seconds]
fgomez has joined #ruby-lang
drollwit has joined #ruby-lang
Natch has quit [Quit: brb]
butchanton has quit [Quit: Leaving.]
hakunin_ has quit [Ping timeout: 246 seconds]
drollwit has quit [Ping timeout: 240 seconds]
nazty has joined #ruby-lang
nazty has quit [Client Quit]
ryanf has joined #ruby-lang
nazty has joined #ruby-lang
Natch has joined #ruby-lang
woollyams has joined #ruby-lang
lun_ has quit []
lun_ has joined #ruby-lang
lun_ has quit [Client Quit]
nazty has quit [Quit: Leaving]
nazty has joined #ruby-lang
lun_ has joined #ruby-lang
sora_h is now known as s0ra_h