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
butchanton has quit [Quit: Leaving.]
woollyams has joined #ruby-lang
jperry2 has joined #ruby-lang
headius has joined #ruby-lang
outoftime has quit [Quit: Leaving]
jperry2 has quit [Quit: Leaving.]
jperry2 has joined #ruby-lang
heftig has quit [Quit: leaving]
headius has quit [Quit: headius]
Z33K|Lux has joined #ruby-lang
Z33K|Lux has quit [Client Quit]
heftig has joined #ruby-lang
headius has joined #ruby-lang
<tylergillies> how would i do something like puts "ok" if value == (option1 || option2)
<tylergillies> do i have to do puts "ok" if value == option1 || value == option2?
<slyphon> that's one way
arooni-mobile has joined #ruby-lang
ryez has joined #ruby-lang
<slyphon> a case statement is another way
<slyphon> [option1, option2].include?(value)
<tylergillies> i was looking for something that was shorter to write
lopac1029 has quit [Remote host closed the connection]
<slyphon> um
<shevy> [option1, option2].include? value
<shevy> there
<shevy> I optimized the ) away
<shevy> one char less!
<shevy> you could also alias include? to i?
<shevy> [option1, option2].i? value
<slyphon> regex
<slyphon> if they're strings
<tylergillies> ok thanks
<shevy> given enough time
<shevy> I could optimize this line of code to the best code that is
<shevy> the code never written!
<shevy> no maintenance work needed
<shevy> instant bug fixes
<slyphon> :)
linus95014 has quit [Quit: linus95014]
jd has joined #ruby-lang
jd has quit [Changing host]
jd has joined #ruby-lang
imperator2 has quit [Ping timeout: 265 seconds]
dasibre has joined #ruby-lang
joast has joined #ruby-lang
mihar_ has joined #ruby-lang
rking_ has joined #ruby-lang
mtkd_ has joined #ruby-lang
corecode_ has joined #ruby-lang
bmaland_ has joined #ruby-lang
ChloeD_ has joined #ruby-lang
tubbo`work has joined #ruby-lang
nashby__ has joined #ruby-lang
adgar_ has joined #ruby-lang
znz_v0 has joined #ruby-lang
jarib_ has joined #ruby-lang
jd has quit [*.net *.split]
arooni-mobile has quit [*.net *.split]
woollyams has quit [*.net *.split]
wallerdev has quit [*.net *.split]
Radium has quit [*.net *.split]
s0ber has quit [*.net *.split]
robbyoconnor has quit [*.net *.split]
perryh has quit [*.net *.split]
crackity_jones has quit [*.net *.split]
jorgenpt has quit [*.net *.split]
knu has quit [*.net *.split]
ged has quit [*.net *.split]
vesan has quit [*.net *.split]
nibbo has quit [*.net *.split]
DefV has quit [*.net *.split]
Taranis has quit [*.net *.split]
Defusal has quit [*.net *.split]
diegoviola has quit [*.net *.split]
naquad has quit [*.net *.split]
denysonique has quit [*.net *.split]
singpolyma has quit [*.net *.split]
jxie has quit [*.net *.split]
cantonic has quit [*.net *.split]
segy has quit [*.net *.split]
imajes has quit [*.net *.split]
gentz has quit [*.net *.split]
hachiya has quit [*.net *.split]
agib has quit [*.net *.split]
cschneid has quit [*.net *.split]
dylst has quit [*.net *.split]
lele|w has quit [*.net *.split]
heftig has quit [*.net *.split]
felipe__ has quit [*.net *.split]
dalekurt has quit [*.net *.split]
Axsuul has quit [*.net *.split]
Mchl has quit [*.net *.split]
drbrain has quit [*.net *.split]
corundum has quit [*.net *.split]
spectra has quit [*.net *.split]
jordan` has quit [*.net *.split]
tonniaagesen has quit [*.net *.split]
Arsen7 has quit [*.net *.split]
anekos has quit [*.net *.split]
ViperMaul has quit [*.net *.split]
tpope has quit [*.net *.split]
jmcphers has quit [*.net *.split]
lele has quit [*.net *.split]
Weems has quit [*.net *.split]
fahadsadah has quit [*.net *.split]
hibariya has quit [*.net *.split]
hagabaka has quit [*.net *.split]
theoros has quit [*.net *.split]
dagobah has quit [*.net *.split]
jaska has quit [*.net *.split]
darix has quit [*.net *.split]
Stereokitsune has quit [*.net *.split]
iosctr has quit [*.net *.split]
kke has quit [*.net *.split]
pabs has quit [*.net *.split]
JackNorris has quit [*.net *.split]
FastJack has quit [*.net *.split]
hrnt has quit [*.net *.split]
cronin101 has quit [*.net *.split]
lucas has quit [*.net *.split]
dju has quit [*.net *.split]
tomzx has quit [*.net *.split]
tomb_ has quit [*.net *.split]
publicvoid_ has quit [*.net *.split]
gsav has quit [*.net *.split]
fukushima has quit [*.net *.split]
znz_jp has quit [*.net *.split]
naz has quit [*.net *.split]
hemanth has quit [*.net *.split]
Mon_Ouie has quit [*.net *.split]
Banistergalaxy has quit [*.net *.split]
x0F has quit [*.net *.split]
bryanl has quit [*.net *.split]
Asher has quit [*.net *.split]
pkondzior has quit [*.net *.split]
wycats has quit [*.net *.split]
lake has quit [*.net *.split]
llakey has quit [*.net *.split]
bryno has quit [*.net *.split]
lianj has quit [*.net *.split]
ozzloy has quit [*.net *.split]
whitequark has quit [*.net *.split]
amerine has quit [*.net *.split]
tdmackey has quit [*.net *.split]
ruskie has quit [*.net *.split]
jstemmer has quit [*.net *.split]
dominikh has quit [*.net *.split]
robbyrussell has quit [*.net *.split]
foca has quit [*.net *.split]
Doobie_ has quit [*.net *.split]
TheMoonMaster has quit [*.net *.split]
Y_Ichiro has quit [*.net *.split]
zz_chrismcg has quit [*.net *.split]
rmascarenhas has quit [*.net *.split]
krz has quit [*.net *.split]
qpingu has quit [*.net *.split]
blowmage has quit [*.net *.split]
deryldoucette has quit [*.net *.split]
Natch| has quit [*.net *.split]
musl has quit [*.net *.split]
Guedes has quit [*.net *.split]
kaz____ has quit [*.net *.split]
Xzyx987X has quit [*.net *.split]
akahn has quit [*.net *.split]
indeterminate has quit [*.net *.split]
nisstyre has quit [*.net *.split]
crankharder has quit [*.net *.split]
pcboy___ has quit [*.net *.split]
dbussink has quit [*.net *.split]
cynosure has quit [*.net *.split]
Caius has quit [*.net *.split]
ammar has quit [*.net *.split]
mitchty has quit [*.net *.split]
xsdg has quit [*.net *.split]
manveru has quit [*.net *.split]
kalleth has quit [*.net *.split]
pvh has quit [*.net *.split]
ryland has quit [*.net *.split]
_tca has quit [*.net *.split]
VGoff has quit [*.net *.split]
sj26 has quit [*.net *.split]
lupine_85 has quit [*.net *.split]
shyouhei has quit [*.net *.split]
shajith has quit [*.net *.split]
melter has quit [*.net *.split]
dreieins has quit [*.net *.split]
msch has quit [*.net *.split]
deadbea7_ has quit [*.net *.split]
vbatts has quit [*.net *.split]
babinho has quit [*.net *.split]
rhizmoe has quit [*.net *.split]
any-key has quit [*.net *.split]
epitron__ has quit [*.net *.split]
FiXato has quit [*.net *.split]
canton7 has quit [*.net *.split]
fireglow has quit [*.net *.split]
Kuukunen has quit [*.net *.split]
joschi has quit [*.net *.split]
gianlucadv has quit [*.net *.split]
derpemily has quit [*.net *.split]
M4g1c5t0rM has quit [*.net *.split]
voker57 has quit [*.net *.split]
tubbo has quit [*.net *.split]
jarib has quit [*.net *.split]
ramonmaruko has quit [*.net *.split]
slaytanic has quit [*.net *.split]
nashby_ has quit [*.net *.split]
akamike has quit [*.net *.split]
timbleck has quit [*.net *.split]
frem has quit [*.net *.split]
KillerFox has quit [*.net *.split]
znz_v has quit [*.net *.split]
tsou has quit [*.net *.split]
jmeeuwen has quit [*.net *.split]
CodeBlock has quit [*.net *.split]
rking has quit [*.net *.split]
lzhz has quit [*.net *.split]
levifig has quit [*.net *.split]
Utkarsh_ has quit [*.net *.split]
t0h has quit [*.net *.split]
s0ra_h has quit [*.net *.split]
yibe_ has quit [*.net *.split]
corecode has quit [*.net *.split]
rue has quit [*.net *.split]
stderr has quit [*.net *.split]
mtkd has quit [*.net *.split]
yeltzooo has quit [*.net *.split]
adgar has quit [*.net *.split]
ChloeD has quit [*.net *.split]
felipe has quit [*.net *.split]
mihar has quit [*.net *.split]
a3li has quit [*.net *.split]
jasiek has quit [*.net *.split]
threedaymonk has quit [*.net *.split]
JoL1hAHN has quit [*.net *.split]
bmaland has quit [*.net *.split]
srbartlett has quit [*.net *.split]
chris2 has quit [*.net *.split]
comboy_ has quit [*.net *.split]
Jade has quit [*.net *.split]
yellow5 has quit [*.net *.split]
matti has quit [*.net *.split]
hackeron has quit [*.net *.split]
Rizzle has quit [*.net *.split]
Guest74504 has quit [*.net *.split]
Swimming_Bird has quit [*.net *.split]
kvs has quit [*.net *.split]
schroedinbug has quit [*.net *.split]
tylergillies has quit [*.net *.split]
Harzilein has quit [*.net *.split]
shaman42 has quit [*.net *.split]
jaimef has quit [*.net *.split]
zigidias has quit [*.net *.split]
ixx has quit [*.net *.split]
bougyman has quit [*.net *.split]
Silex has quit [*.net *.split]
ddfreyne has quit [*.net *.split]
Nowaker has quit [*.net *.split]
_ko1 has quit [*.net *.split]
wilkie has quit [*.net *.split]
znouza_ has quit [*.net *.split]
MrWGW has quit [*.net *.split]
lantins has quit [*.net *.split]
Facefox has quit [Max SendQ exceeded]
s0ra_h has joined #ruby-lang
fgomez has quit [Quit: leaving]
bfreeman has quit [Quit: bfreeman]
levifig has joined #ruby-lang
CodeBlock has joined #ruby-lang
Facefox has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
major_majors has joined #ruby-lang
peppyheppy has quit [Quit: peppyheppy]
lzhz has joined #ruby-lang
jorgenpt has joined #ruby-lang
crackity_jones has joined #ruby-lang
s0ber has joined #ruby-lang
perryh has joined #ruby-lang
robbyoconnor has joined #ruby-lang
Radium has joined #ruby-lang
jd has joined #ruby-lang
woollyams has joined #ruby-lang
wallerdev has joined #ruby-lang
JoL1hAHN has joined #ruby-lang
arooni-mobile has joined #ruby-lang
ged has joined #ruby-lang
jasiek_ has joined #ruby-lang
knu has joined #ruby-lang
tsou has joined #ruby-lang
t0h has joined #ruby-lang
a3li` has joined #ruby-lang
qpingu1 has joined #ruby-lang
frem_ has joined #ruby-lang
ramonmaruko1 has joined #ruby-lang
yeltzooo7 has joined #ruby-lang
threeday1onk has joined #ruby-lang
slaytani1 has joined #ruby-lang
voker57_ has joined #ruby-lang
Utkarsh has joined #ruby-lang
timbleck has joined #ruby-lang
yibe_ has joined #ruby-lang
KillerFox has joined #ruby-lang
stderr_ has joined #ruby-lang
jmeeuwen_ has joined #ruby-lang
rue_XIV has joined #ruby-lang
tomb_ has joined #ruby-lang
tomzx has joined #ruby-lang
Defusal has joined #ruby-lang
diegoviola has joined #ruby-lang
krz has joined #ruby-lang
felipe__ has joined #ruby-lang
dalekurt has joined #ruby-lang
gsav has joined #ruby-lang
vesan has joined #ruby-lang
publicvoid_ has joined #ruby-lang
Axsuul has joined #ruby-lang
rmascarenhas has joined #ruby-lang
srbartlett has joined #ruby-lang
Mchl has joined #ruby-lang
chris2 has joined #ruby-lang
naquad has joined #ruby-lang
comboy_ has joined #ruby-lang
fukushima has joined #ruby-lang
denysonique has joined #ruby-lang
znz_jp has joined #ruby-lang
blowmage has joined #ruby-lang
jxie has joined #ruby-lang
singpolyma has joined #ruby-lang
naz has joined #ruby-lang
lele|w has joined #ruby-lang
drbrain has joined #ruby-lang
cantonic has joined #ruby-lang
corundum has joined #ruby-lang
yellow5 has joined #ruby-lang
spectra has joined #ruby-lang
hemanth has joined #ruby-lang
jordan` has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
imajes has joined #ruby-lang
segy has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
x0F has joined #ruby-lang
nibbo has joined #ruby-lang
deryldoucette has joined #ruby-lang
Natch| has joined #ruby-lang
bryanl has joined #ruby-lang
Asher has joined #ruby-lang
musl has joined #ruby-lang
tonniaagesen has joined #ruby-lang
Guedes has joined #ruby-lang
Arsen7 has joined #ruby-lang
gentz has joined #ruby-lang
anekos has joined #ruby-lang
pkondzior has joined #ruby-lang
kaz____ has joined #ruby-lang
matti has joined #ruby-lang
hackeron has joined #ruby-lang
hachiya has joined #ruby-lang
ViperMaul has joined #ruby-lang
Rizzle has joined #ruby-lang
wycats has joined #ruby-lang
akahn has joined #ruby-lang
pvh has joined #ruby-lang
Xzyx987X has joined #ruby-lang
agib has joined #ruby-lang
ruskie has joined #ruby-lang
cschneid has joined #ruby-lang
indeterminate has joined #ruby-lang
tpope has joined #ruby-lang
lake has joined #ruby-lang
ryland has joined #ruby-lang
nisstyre has joined #ruby-lang
crankharder has joined #ruby-lang
jmcphers has joined #ruby-lang
tylergillies has joined #ruby-lang
Guest74504 has joined #ruby-lang
lele has joined #ruby-lang
Swimming_Bird has joined #ruby-lang
pcboy___ has joined #ruby-lang
llakey has joined #ruby-lang
kvs has joined #ruby-lang
lupine_85 has joined #ruby-lang
bryno has joined #ruby-lang
dbussink has joined #ruby-lang
Weems has joined #ruby-lang
schroedinbug has joined #ruby-lang
lianj has joined #ruby-lang
shyouhei has joined #ruby-lang
jstemmer has joined #ruby-lang
Harzilein has joined #ruby-lang
shajith has joined #ruby-lang
fahadsadah has joined #ruby-lang
melter has joined #ruby-lang
DefV has joined #ruby-lang
Taranis has joined #ruby-lang
msch has joined #ruby-lang
shaman42 has joined #ruby-lang
dreieins has joined #ruby-lang
deadbea7_ has joined #ruby-lang
hibariya has joined #ruby-lang
dominikh has joined #ruby-lang
vbatts has joined #ruby-lang
jaimef has joined #ruby-lang
Caius has joined #ruby-lang
cynosure has joined #ruby-lang
ammar has joined #ruby-lang
theoros has joined #ruby-lang
hagabaka has joined #ruby-lang
babinho has joined #ruby-lang
kke has joined #ruby-lang
jaska has joined #ruby-lang
rhizmoe has joined #ruby-lang
dylst has joined #ruby-lang
any-key has joined #ruby-lang
mitchty has joined #ruby-lang
robbyrussell has joined #ruby-lang
foca has joined #ruby-lang
FiXato has joined #ruby-lang
epitron__ has joined #ruby-lang
Doobie_ has joined #ruby-lang
zigidias has joined #ruby-lang
dagobah has joined #ruby-lang
ixx has joined #ruby-lang
canton7 has joined #ruby-lang
ozzloy has joined #ruby-lang
fireglow has joined #ruby-lang
bougyman has joined #ruby-lang
darix has joined #ruby-lang
Kuukunen has joined #ruby-lang
whitequark has joined #ruby-lang
iosctr has joined #ruby-lang
Stereokitsune has joined #ruby-lang
Silex has joined #ruby-lang
TheMoonMaster has joined #ruby-lang
ddfreyne has joined #ruby-lang
Nowaker has joined #ruby-lang
xsdg has joined #ruby-lang
Y_Ichiro has joined #ruby-lang
joschi has joined #ruby-lang
gianlucadv has joined #ruby-lang
pabs has joined #ruby-lang
amerine has joined #ruby-lang
_tca has joined #ruby-lang
_ko1 has joined #ruby-lang
VGoff has joined #ruby-lang
manveru has joined #ruby-lang
sj26 has joined #ruby-lang
zz_chrismcg has joined #ruby-lang
dju has joined #ruby-lang
lucas has joined #ruby-lang
JackNorris has joined #ruby-lang
hrnt has joined #ruby-lang
FastJack has joined #ruby-lang
cronin101 has joined #ruby-lang
tdmackey has joined #ruby-lang
kalleth has joined #ruby-lang
wilkie has joined #ruby-lang
MrWGW has joined #ruby-lang
znouza_ has joined #ruby-lang
derpemily has joined #ruby-lang
lantins has joined #ruby-lang
akamike has joined #ruby-lang
Facefox has quit [Max SendQ exceeded]
M4g1c5t0rM has joined #ruby-lang
JoL1hAHN has quit [*.net *.split]
jasiek_ has quit [*.net *.split]
jd has quit [*.net *.split]
arooni-mobile has quit [*.net *.split]
woollyams has quit [*.net *.split]
wallerdev has quit [*.net *.split]
Radium has quit [*.net *.split]
s0ber has quit [*.net *.split]
robbyoconnor has quit [*.net *.split]
perryh has quit [*.net *.split]
crackity_jones has quit [*.net *.split]
jorgenpt has quit [*.net *.split]
Facefox has joined #ruby-lang
dalekurt has quit [Read error: Connection reset by peer]
heftig has joined #ruby-lang
jarred has quit [Quit: jarred]
JoL1hAHN has joined #ruby-lang
jasiek_ has joined #ruby-lang
dankest has joined #ruby-lang
jd has joined #ruby-lang
arooni-mobile has joined #ruby-lang
woollyams has joined #ruby-lang
wallerdev has joined #ruby-lang
Radium has joined #ruby-lang
s0ber has joined #ruby-lang
robbyoconnor has joined #ruby-lang
perryh has joined #ruby-lang
crackity_jones has joined #ruby-lang
jorgenpt has joined #ruby-lang
Radium has quit [Max SendQ exceeded]
dankest has quit [Client Quit]
savage- has quit [Remote host closed the connection]
binaryplease has joined #ruby-lang
sonicpond has joined #ruby-lang
slaytani1 has left #ruby-lang [#ruby-lang]
Radium has joined #ruby-lang
<tylergillies> anyone know how to do a 'redo' from inside a nested block
setmeaway has quit [Ping timeout: 245 seconds]
<tylergillies> something like this: http://cl.ly/0e250S2x2L3M1S233x3t
<tylergillies> but have it redo the outer block
felipe has joined #ruby-lang
<slyphon> oh, hm
sonicpond has quit [Ping timeout: 245 seconds]
sonicpond has joined #ruby-lang
<slyphon> that's not pretty
<slyphon> oy
<slyphon> i think you ened to throw an exception and use retry
<tylergillies> slyphon: thanks
<slyphon> i was tryign to write something with throw/catch but it was just awful
<tylergillies> i tried throw and catch but it seems its better for ending stuff early rather than redoing stuff
<slyphon> yeah, that's what it's meant for
<slyphon> unwinding the stack
<slyphon> to be honest, i usually refactor to put something in a method and use 'return' if possible rather than use throw/catch
seanstickle has quit [Quit: Nihil sub sole novum]
bglusman has joined #ruby-lang
CodeBlock has quit [Changing host]
CodeBlock has joined #ruby-lang
bglusman has quit [Ping timeout: 245 seconds]
neoesque has joined #ruby-lang
bglusman has joined #ruby-lang
<tylergillies> yeah it seems kinda hacky
kurko_ has joined #ruby-lang
Karmaon has quit [Quit: WeeChat 0.3.8-rc1]
Karmaon has joined #ruby-lang
ttilley has joined #ruby-lang
kurko_ has quit [Client Quit]
tomb_ has quit [Quit: Computer has gone to sleep.]
diegoviola has quit [Ping timeout: 252 seconds]
cantonic has quit [Quit: cantonic]
hahuang65 has quit [Quit: Computer has gone to sleep.]
hahuang65 has joined #ruby-lang
setmeaway has joined #ruby-lang
jperry2 has quit [Ping timeout: 245 seconds]
bglusman has quit [Remote host closed the connection]
bglusman has joined #ruby-lang
Cykey has quit [Quit: Computer has gone to sleep.]
dalekurt has joined #ruby-lang
bglusman has quit [Ping timeout: 260 seconds]
mattonrails has joined #ruby-lang
ridders24 has quit [Ping timeout: 240 seconds]
xnm has joined #ruby-lang
dv310p3r has joined #ruby-lang
harukomoto has joined #ruby-lang
linus95014 has joined #ruby-lang
zz_wasnotrice is now known as wasnotrice
arooni-mobile has quit [Remote host closed the connection]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
wasnotrice is now known as zz_wasnotrice
igotnolegs has joined #ruby-lang
fgomez has joined #ruby-lang
zz_wasnotrice is now known as wasnotrice
mattonrails has quit [Remote host closed the connection]
rahult_ has joined #ruby-lang
Radium has quit [Ping timeout: 245 seconds]
hahuang65 has quit [Quit: Computer has gone to sleep.]
dfr|mac has quit [Remote host closed the connection]
ttilley has quit [Remote host closed the connection]
fukushima has quit [Ping timeout: 260 seconds]
diegoviola has joined #ruby-lang
ryez_ has joined #ruby-lang
fukushima has joined #ruby-lang
mistym has quit [Remote host closed the connection]
M4g1c5t0rM has quit [Ping timeout: 252 seconds]
dalekurt has quit [Quit: Zzz...]
heftig has quit [Ping timeout: 245 seconds]
heftig has joined #ruby-lang
<freedrull> anyone else get bit by that net-ssh bug today
tomb_ has joined #ruby-lang
jobicoppola has joined #ruby-lang
x0F has quit [Read error: Connection reset by peer]
imperator2 has joined #ruby-lang
x0F has joined #ruby-lang
kvirani has joined #ruby-lang
dfr|mac has joined #ruby-lang
kain has joined #ruby-lang
dalekurt has joined #ruby-lang
xsdg has quit [Ping timeout: 252 seconds]
xsdg has joined #ruby-lang
KaneCitizen has joined #ruby-lang
KaneCitizen has quit [Client Quit]
hemanth has quit [Ping timeout: 260 seconds]
<imperator2> good evening
arooni-mobile has joined #ruby-lang
linus95014 has quit [Quit: linus95014]
singpolyma has quit [Ping timeout: 252 seconds]
felipe__ has quit [Read error: No route to host]
gix has quit [Ping timeout: 245 seconds]
peppyheppy has joined #ruby-lang
gix has joined #ruby-lang
codewrangler has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
dfr|mac has quit [Remote host closed the connection]
wasnotrice is now known as zz_wasnotrice
zz_wasnotrice is now known as wasnotrice
mistym has joined #ruby-lang
peppyheppy has quit [Quit: peppyheppy]
gnufied has joined #ruby-lang
linus95014 has joined #ruby-lang
kvirani has quit [Remote host closed the connection]
stardiviner has joined #ruby-lang
rmascarenhas has quit [Quit: leaving]
ttilley has joined #ruby-lang
chimkan_ has joined #ruby-lang
headius has quit [Quit: headius]
andrewhl has joined #ruby-lang
mattonrails has joined #ruby-lang
mattonrails has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 260 seconds]
s0ra_h is now known as sora_h
tRAS has quit [Quit: Mother, did it need to be so high?]
DRCALKIN has joined #ruby-lang
rippa has joined #ruby-lang
harukomoto has quit [Ping timeout: 244 seconds]
mistym has quit [Remote host closed the connection]
harukomoto has joined #ruby-lang
slyphon has quit [Quit: WeeChat 0.3.6]
chimkan_ has quit [Quit: chimkan_]
gsav has quit [Read error: Connection reset by peer]
M4g1c5t0rM has joined #ruby-lang
tRAS has joined #ruby-lang
imperator2 has quit [Quit: Leaving]
dasibre has quit [Remote host closed the connection]
dv310p3r has quit [Ping timeout: 245 seconds]
andrewhl has quit [Quit: andrewhl]
dfr|mac has joined #ruby-lang
gsav has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
drumond19 has joined #ruby-lang
linus95014 has quit [Quit: linus95014]
erics has quit [Ping timeout: 240 seconds]
gsav has joined #ruby-lang
Skif has joined #ruby-lang
francisfish has joined #ruby-lang
francisfish has quit [Remote host closed the connection]
heftig has quit [Remote host closed the connection]
heftig has joined #ruby-lang
savage- has joined #ruby-lang
tonesfrommars has joined #ruby-lang
ryanf has joined #ruby-lang
r0bby has joined #ruby-lang
tRAS has quit [Quit: Mother, did it need to be so high?]
ridders24 has joined #ruby-lang
harukomoto has quit [Ping timeout: 265 seconds]
burgestrand has quit [Read error: Connection reset by peer]
burgestrand has joined #ruby-lang
Z33K|Lux has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 256 seconds]
flowerpot has joined #ruby-lang
xnm has quit [Read error: Connection reset by peer]
yxhuvud has joined #ruby-lang
a3li` has quit [Quit: jumpin' jumpin']
a3li has joined #ruby-lang
ridders24 has quit [Ping timeout: 265 seconds]
arooni-mobile has quit [Ping timeout: 250 seconds]
tRAS has joined #ruby-lang
rushed has joined #ruby-lang
jd is now known as Jade
drumond19 has quit [Remote host closed the connection]
LarryLv has joined #ruby-lang
jxie_ has joined #ruby-lang
savage- has quit [Remote host closed the connection]
jxie has quit [Ping timeout: 252 seconds]
|Vargas| has joined #ruby-lang
|Vargas| has quit [Changing host]
|Vargas| has joined #ruby-lang
gouthamvel has joined #ruby-lang
gouthamvel has left #ruby-lang [#ruby-lang]
linus95014 has joined #ruby-lang
dfr|mac has quit [Remote host closed the connection]
r0bby is now known as robbyoconnor
M4g1c5t0rM has quit [Ping timeout: 245 seconds]
tonesfrommars has quit [Quit: KVIrc 4.0.1 Insomnia http://www.kvirc.net/]
Banistergalaxy has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
DRCALKIN has quit [Quit: Leaving]
linus95014 has quit [Quit: linus95014]
TheHunter_1039 has quit [Quit: TheHunter_1039]
igotnolegs has quit [Quit: Computer has gone to sleep.]
wasnotrice is now known as zz_wasnotrice
peppyheppy has joined #ruby-lang
srbaker has joined #ruby-lang
<TTilus> fyi, the combination of ruby and finnish as natural language: #ruby.fi
francisfish has joined #ruby-lang
tomzx has quit [Ping timeout: 260 seconds]
sepp2k has joined #ruby-lang
seanstickle has joined #ruby-lang
JoL1hAHN has quit [Read error: Operation timed out]
JoL1hAHN has joined #ruby-lang
ttilley has quit [Remote host closed the connection]
Jade has quit [Ping timeout: 256 seconds]
jmeeuwen_ is now known as jmeeuwen
francisfish has quit [Ping timeout: 245 seconds]
dtang has quit [Quit: dtang]
vmoravec has joined #ruby-lang
bambanx has joined #ruby-lang
<bambanx> guys anyone can help me with this pls http://pastie.org/3964924
thrcka has joined #ruby-lang
rafadc has quit [Quit: Saliendo]
JohnBat26 has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
<bnagy> (fixed in #ruby)
publicvoid_ has quit [Ping timeout: 260 seconds]
ryez_ has quit [Ping timeout: 245 seconds]
<bnagy> btw, I have a jruby / ffi-rzmq crash in code that works fine under MRI http://pastie.org/3964994
<bnagy> also asked in #zeromq :)
VGoff is now known as VGoff_afk
krz has quit [Quit: krz]
VGoff_afk is now known as VGoff
woollyams has quit [Ping timeout: 256 seconds]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
ryez_ has joined #ruby-lang
srbartlett has quit [Remote host closed the connection]
peppyheppy has quit [Quit: peppyheppy]
solars has joined #ruby-lang
ryanf has quit [Quit: leaving]
<zenspider> any brits awake yet?
<bnagy> culturally, by citizenship or by location?
binaryplease has quit [Quit: WeeChat 0.3.7]
zz_chrismcg is now known as chrismcg
ryez_ has quit [Ping timeout: 245 seconds]
Arsen7 has quit [Quit: Lost terminal]
<deryl> hahaha
<deryl> first time i've seen that much coverage in a response in a long time :)
bambanx has quit [Quit: Saliendo]
ryez_ has joined #ruby-lang
rahult_ has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Z33K|Lux has quit []
ttilley has joined #ruby-lang
zmack has joined #ruby-lang
Radium has joined #ruby-lang
solars has quit [Read error: No route to host]
KU0N has joined #ruby-lang
gsav has quit [Ping timeout: 244 seconds]
Radium has quit []
ryez has quit [Ping timeout: 245 seconds]
cdt has joined #ruby-lang
francisfish has joined #ruby-lang
<zenspider> bnagy: culturally. sorry. I got distracted.
<zenspider> what the fuck was my question... sec
<bnagy> culturally, yeah, I can probably manage
<bnagy> cup o tea etc
<zenspider> haha
<zenspider> RIGHT
<zenspider> what the fuck is "champ"? (cooking)
solars has joined #ruby-lang
<zenspider> is that just another term for mashed potatoes? or is it something different?
<bnagy> context?
<zenspider> sticky lemon chicken with champ
<bnagy> weird. I'd guess champignons (button mushrooms)
<deryl> mashed potatoes
<bnagy> wtf no it's a thing
<zenspider> stupid scottish bastard ramsey uses the term. just looks like mashed potatoes to me... bit extra in them but not by much
<zenspider> but that's canadian... they use even wierder english
gsav has joined #ruby-lang
<bnagy> TIL
caiofilipini has joined #ruby-lang
<zenspider> so... potatoes with the spring onion. ok. so it IS specific
<zenspider> but... not by much
<bnagy> also known as Poundy!
<zenspider> good time for it too... farmer's market just opened and spring onion are plentiful
caiofilipini has left #ruby-lang [#ruby-lang]
<zenspider> ok... cool. thanks everyone
jasiek_ has left #ruby-lang [#ruby-lang]
jasiek has joined #ruby-lang
gsav has quit [Ping timeout: 250 seconds]
apeiros_ has joined #ruby-lang
solars has quit [Ping timeout: 244 seconds]
tjadc has joined #ruby-lang
futurechimp has joined #ruby-lang
workmad3 has joined #ruby-lang
tjadc has quit [Read error: Connection reset by peer]
jarib_ has quit [Excess Flood]
jarib has joined #ruby-lang
tomb_ has quit [Quit: Computer has gone to sleep.]
seanstickle has quit [Quit: Nihil sub sole novum]
nibbo has quit [Ping timeout: 248 seconds]
<shevy> ruby cuisine
<shevy> red potatoes!!!
<bnagy> compile from sauce
diegoviola has quit [Remote host closed the connection]
toretore has joined #ruby-lang
<shevy> hehe
diegoviola has joined #ruby-lang
Natch| has quit [Ping timeout: 252 seconds]
Natch| has joined #ruby-lang
Natch| has quit [Excess Flood]
Natch| has joined #ruby-lang
Natch| has quit [Excess Flood]
Natch| has joined #ruby-lang
Natch| has quit [Excess Flood]
Natch| has joined #ruby-lang
Natch| has quit [Excess Flood]
Natch| has joined #ruby-lang
Natch| has quit [Excess Flood]
Natch| has joined #ruby-lang
Natch| has quit [Excess Flood]
dkannan has joined #ruby-lang
Natch| has joined #ruby-lang
Natch| has quit [Excess Flood]
solars has joined #ruby-lang
Natch| has joined #ruby-lang
Natch| has quit [Excess Flood]
Natch| has joined #ruby-lang
Natch| has quit [Excess Flood]
francisfish has quit [Remote host closed the connection]
Silex^^ has joined #ruby-lang
ramonmaruko1 has quit [Quit: Leaving.]
Natch| has joined #ruby-lang
Natch| has quit [Excess Flood]
Natch| has joined #ruby-lang
Natch| has quit [Excess Flood]
<Silex^^> hi, if I have a server where ruby 1.8 and ruby 1.9 is installed and "ruby" points to ruby 1.9, how do I run "bundle" so it uses ruby 1.9 *just this time*
<Silex^^> ?
Natch| has joined #ruby-lang
Natch| has quit [Excess Flood]
<Silex^^> err, "ruby" points to 1.8
<Silex^^> otherwise tehre would be no question :)
nibbo has joined #ruby-lang
ramonmaruko has joined #ruby-lang
<andrewvos> bundle exec
Natch| has joined #ruby-lang
Natch| has quit [Excess Flood]
<andrewvos> oh wait
<andrewvos> Silex^^: if it is ubuntu then remove the older version
<andrewvos> or use rvm
<andrewvos> or something
<Silex^^> the older version is in use
Natch| has joined #ruby-lang
Natch| has quit [Excess Flood]
<Silex^^> I know how to configure passenger so it uses 1.8 for one app and 1.9 for another
<Silex^^> I just don't know how to tell bundle to use 1.9
rue_XIV has left #ruby-lang [#ruby-lang]
<Silex^^> to setup the 1.9 app
Natch has joined #ruby-lang
Natch has quit [Excess Flood]
rue has joined #ruby-lang
<rue> Or ruby19 -S ?
Natch| has joined #ruby-lang
Natch| has quit [Excess Flood]
Natch| has joined #ruby-lang
Natch| has quit [Excess Flood]
<Silex^^> rue: hum, I don't fully get your advice... -S seems only to trick ruby into looking into another directory for its scripts?
Natch| has joined #ruby-lang
Natch| has quit [Excess Flood]
<Silex^^> can you give more details about how this would help run bundle with 1.9?
<rue> look for the script using PATH environment variable
francisfish has joined #ruby-lang
Natch| has joined #ruby-lang
<Silex^^> you mean temporarily modifying $(which bundle) ?
<Silex^^> wait, is ruby -S a "permanent" for the shell's session setting?
<Silex^^> anyway I don't see how bundle would invoke ruby 1.9 instead of 1.8. Both binaries are in /usr/bin, and bundle probably just calls "ruby"
<Silex^^> maybe temporarily symlinking it to ruby1.9 could work tho
<rue> That’s why you do ruby19 -S
<rue> That Ruby finds the bundle script, and runs it
telemachus has quit [Ping timeout: 276 seconds]
<Silex^^> ah, so something like "ruby19 -S -- $which(bundle) exec"
<Silex^^> err, $(which bundle)
<Silex^^> hum, thanks I'll try
telemachus has joined #ruby-lang
jxie_ has quit [Ping timeout: 265 seconds]
Skif has quit [Ping timeout: 240 seconds]
jxie has joined #ruby-lang
Skif has joined #ruby-lang
morozovm has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 245 seconds]
Banistergalaxy has joined #ruby-lang
postmodern has quit [Ping timeout: 240 seconds]
tekin has joined #ruby-lang
francisfish has quit [Remote host closed the connection]
workmad3 has quit [Quit: Lost terminal]
nevynxxx has joined #ruby-lang
postmodern has joined #ruby-lang
<kke> how do i downcase \\1 in gsub? gsub(/FOO(BAR)/, "POO#{"\\1".downcase}") atleast doesn't work
neoesque has quit [Quit: Bye!]
<bnagy> kke: don't know :( It works with $1 though = "POO#{$1.downcase}"
tjadc has joined #ruby-lang
<kke> yeah but that works only if you do gsub {...}
<kke> or else $1 is the first match if using /m
<bnagy> ?
<bnagy> "FOOBAR".gsub /FOO(BAR)/, "POO#{$1.downcase}" -- "POObar"
Skif has quit [Ping timeout: 240 seconds]
<kke> "FOOBAR FOOBAH".gsub(/FOO(BA.+?)/m, "POO#{$1.downcase}") => "POObah POObah"
dhruvasagar has joined #ruby-lang
<kke> "FOOBAR FOOBAH".gsub(/FOO(BA.+?)/m, "POO\\1#{$1.downcase}") => "POOBARbah POOBAHbah"
workmad3 has joined #ruby-lang
<kke> "FOOBAR FOOBAH".gsub(/FOO(BA.+?)/m) {"POO#{$1.downcase}"} => "POObar POObah"
<bnagy> kke: ... was there a point to that?
Skif has joined #ruby-lang
<kke> yes
<kke> the point was that i can't downcase $1 / \\1 in regexp with /m unless i do it in gsub's block mode
<bnagy> in what way does the first line you pasted not contradict that?
<kke> both bar's became bah's
<bnagy> ahhh I see
<bnagy> yeah, well I just fixed the code you asked about, not the code you were thinking about, dude
kith has quit [Quit: kith]
<bnagy> but it's nothing to do with /m
<kke> perhaps you need to reduce the amount of lemons in your diet
lupine_85 has quit [Quit: If you see this, my dogfood was poisoned]
kith has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
JohnBat26 has quit [Remote host closed the connection]
<shevy> foobar attaaaaaack
JohnBat26 has joined #ruby-lang
symm- has joined #ruby-lang
flowerpot has quit [Quit: Ex-Chat]
<symm-> hi ruby
<shevy> hi symm-
<symm-> hi shevy
<symm-> it's probably nothing, but it's the weirdest thing
<symm-> I have some `p obj` in my code, and it finishes promptly when running normally
solars has quit [Read error: No route to host]
<symm-> but when redirecting to a text file it finishes 100x slower
<symm-> if I change `p obj` to `puts obj` it's fast again...
lupine_85 has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
<bnagy> did you mean those to be backticks? like, you're shelling out to a program called p ?? No, right?
<symm-> no, no backticks in the actual code; just using `...` here to indicate what's code
<shevy> how do you redirect actually?
<symm-> ruby script.rb > file.txt
<symm-> (running on windows)
stardiviner has joined #ruby-lang
<shevy> hmm
jstemmer has quit [Quit: leaving]
<shevy> that way of redirection, for me on linux + bash, works instantly
<symm-> it's really nothing, just a curiosity
<bnagy> symm-: is the inspect output a lot bogger than the puts output?
<symm-> bnagy: it's actually identical
<bnagy> anyway only voodoo chicken stuff I can think of is to put $stdout.flush after p obj
<symm-> hmm I see, I'll try that in a sec
<symm-> sorry I brought it up, was just intrigued a little
<shevy> bnagy hey... "a lot bogger"? :D
<bnagy> shevy: yeah I am typing like crap recently :/ I think my keyboard is full of little bits of dried buffalo
<shevy> hehe
diegoviola has quit [Ping timeout: 244 seconds]
deryl has quit [Quit: back in awhile. reboot time]
tRAS has quit [Quit: Mother, did it need to be so high?]
diegoviola has joined #ruby-lang
imperator has joined #ruby-lang
Hakon|mbp has quit [Quit: Leaving...]
tomb_ has joined #ruby-lang
deryl has joined #ruby-lang
morozovm has quit [Quit: morozovm]
morozovm has joined #ruby-lang
judofyr has joined #ruby-lang
tRAS has joined #ruby-lang
|Vargas| has quit [Quit: ...]
morozovm has left #ruby-lang [#ruby-lang]
Hakon|mbp has joined #ruby-lang
bruno_coelho has joined #ruby-lang
bruno_coelho has quit [Remote host closed the connection]
thrcka has quit [Remote host closed the connection]
thrcka has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby-lang
dalekurt has quit [Quit: Zzz...]
dalekurt has joined #ruby-lang
hebz0rl has joined #ruby-lang
ttilley has quit [Remote host closed the connection]
dasibre has joined #ruby-lang
kvirani has joined #ruby-lang
Silex^^ has quit [Quit: Page closed]
chendo_ has joined #ruby-lang
Faris has joined #ruby-lang
carloslopes has joined #ruby-lang
tekin has quit [Quit: Computer has gone to sleep.]
bojicas has joined #ruby-lang
bojicas has quit [Remote host closed the connection]
thrcka has quit [Remote host closed the connection]
thrcka has joined #ruby-lang
<zzak> good morning!
tekin has joined #ruby-lang
<imperator> good morning zzak
* imperator looks at the SignalException constructor
tekin has quit [Client Quit]
seanstickle has joined #ruby-lang
JohnBat26 has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
dv310p3r has joined #ruby-lang
tRAS has quit [Quit: Mother, did it need to be so high?]
hynkle has joined #ruby-lang
solars has joined #ruby-lang
tRAS has joined #ruby-lang
mark_locklear has joined #ruby-lang
tRAS has quit [Client Quit]
tekin has joined #ruby-lang
diegoviola has quit [Ping timeout: 260 seconds]
codesturgeon has joined #ruby-lang
codesturgeon has quit [Client Quit]
diegoviola has joined #ruby-lang
<imperator> huh, they removed .to_str from Exception in 1.9
<imperator> wonder why
<apeiros_> imperator: also from Pathname
<apeiros_> which is IMO more annoying
srbartlett has joined #ruby-lang
rippa has quit [Quit: derp herp]
<oddmunds> imperator: what's the difference between .to_str and .to_s?
<deryl> to_s calls to_str in the backend from what i've read
<imperator> implicit vs explicit
<imperator> you typically never call .to_str on an object, it's used internally by other methods
<oddmunds> .to_str only exists in String and NameError:message in 1.9.3, it seems
singpolyma has joined #ruby-lang
thrcka has quit [Remote host closed the connection]
dv310p3r has quit [Ping timeout: 260 seconds]
mistym has joined #ruby-lang
rking_ is now known as rking
solars has quit [Ping timeout: 244 seconds]
fromhet has joined #ruby-lang
mistym has quit [Remote host closed the connection]
solars has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Remote host closed the connection]
tomzx has joined #ruby-lang
<imperator> apeiros_, that's really odd
mistym has joined #ruby-lang
<apeiros_> it's also annoying. can't just pass a Pathname to File.open anymore :(
<imperator> apeiros_, i wrote my own version a long time ago :)
<imperator> pathname2
<apeiros_> I know. better compat with win too, right?
sepp2k has quit [Remote host closed the connection]
<imperator> at the time, though i think things have improved in 1.9
<imperator> haven't checked for sure, though
deryl has quit [Quit: rebooting for newer kernel]
<imperator> oh dear, 6 test failures for jruby in berger_spec, but i think one of them will help me with a recent bug report
Faris has quit [Ping timeout: 246 seconds]
thrcka has joined #ruby-lang
dkannan has quit []
RegEchse has joined #ruby-lang
deryl has joined #ruby-lang
<symm-> suppose I'm dumping an html file from ruby and then immediately want to start a browser on that file, how would I do that?
<symm-> strangely system('output.html') doesn't do anything
<symm-> ah, never mind, google helped me :)
srbartlett has quit [Remote host closed the connection]
<imperator> system calls are THE DEVIL
mistym has quit [Remote host closed the connection]
<imperator> like cross compiling, and cell phones at movie theatres
<judofyr> symm-: there's really no cross-platform way to handle that :(
<imperator> judofyr, it could be done; depends on how many platforms and browsers you want to support
<rue> imperator: Only when you call THE DEVIL SYSTEM
<imperator> and....maybe selenium does it? or watir?
<judofyr> imperator: selenium only uses Firefox, no?
<imperator> judofyr, dunno, i was guessing
<judofyr> and it requires a Fx plugin
<seanstickle> selenium works in all javascript-supporting browsers
<seanstickle> Does NOT require a plugin
<rue> symm-: You could try the common ones…open(1) for OS X and whatever the others use
<judofyr> symm-: or use "git web--browse" if Git is installed
<judofyr> symm-:
<rue> Then just fail with a message if it don’t work. And/or maybe offer an env or command-line setting
soahccc` is now known as soahccc
nevynxxx has quit [Ping timeout: 245 seconds]
nevynxxx has joined #ruby-lang
kyrylo has quit [Quit: WeeChat 0.3.7]
kyrylo has joined #ruby-lang
kyrylo has quit [Changing host]
kyrylo has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 240 seconds]
tRAS has joined #ruby-lang
dhruvasagar has joined #ruby-lang
jbsan_ has joined #ruby-lang
solars has quit [Ping timeout: 250 seconds]
vmil86 has joined #ruby-lang
jbsan has quit [Ping timeout: 245 seconds]
jbsan_ is now known as jbsan
jperry2 has joined #ruby-lang
S2kx has joined #ruby-lang
S1kx has quit [Ping timeout: 244 seconds]
elux has joined #ruby-lang
tomzx has quit [Ping timeout: 246 seconds]
tubbo`work has quit [Quit: leaving]
sockmonk has joined #ruby-lang
tubbo has joined #ruby-lang
nevynxxx has quit [Ping timeout: 252 seconds]
seanstickle has quit [Quit: Nihil sub sole novum]
cantonic has joined #ruby-lang
dv310p3r has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby-lang
kvirani has quit [Remote host closed the connection]
linus95014 has joined #ruby-lang
andrewhl has joined #ruby-lang
lopac1029 has joined #ruby-lang
ilya has joined #ruby-lang
nevynxxx has joined #ruby-lang
tRAS has quit [Ping timeout: 244 seconds]
dv310p3r has quit [Quit: Leaving]
ilya has left #ruby-lang ["Leaving"]
ryez has joined #ruby-lang
solars has joined #ruby-lang
codewrangler has joined #ruby-lang
nevynxxx has quit [Ping timeout: 246 seconds]
adambeynon has joined #ruby-lang
fromhet has quit [Quit: fromhet]
dhruvasagar has quit [Ping timeout: 240 seconds]
woollyams has joined #ruby-lang
pbjorklund has quit [Quit: leaving]
dhruvasagar has joined #ruby-lang
fromhet has joined #ruby-lang
nevynxxx has joined #ruby-lang
gouthamvel has joined #ruby-lang
slyphon has joined #ruby-lang
slyphon has quit [Signing in (slyphon)]
slyphon has joined #ruby-lang
solars has quit [Ping timeout: 252 seconds]
kvirani has joined #ruby-lang
pbjorklund has joined #ruby-lang
pbjorklund has quit [Client Quit]
pbjorklund has joined #ruby-lang
postmodern has quit [Quit: Leaving]
dhruvasagar has quit [Ping timeout: 245 seconds]
solars has joined #ruby-lang
jobicoppola has quit [Ping timeout: 256 seconds]
pbjorklund has quit [Ping timeout: 250 seconds]
Austin__ has joined #ruby-lang
solars has quit [Ping timeout: 245 seconds]
gix has quit [Quit: Client exiting]
gouthamvel has left #ruby-lang [#ruby-lang]
kain has quit [Quit: Sto andando via]
gsav has joined #ruby-lang
gix has joined #ruby-lang
tomb_ has quit [Quit: Computer has gone to sleep.]
Axsuul has quit [Ping timeout: 245 seconds]
outoftime has joined #ruby-lang
asahi has joined #ruby-lang
fromhet has quit [Quit: fromhet]
<shevy> hmm let's say I have a module Foo; end. In another file, I have class Bar; end. Is it possible to somehow "put" class Bar into the module Foo namespace, at runtime?
dvorak has quit [Ping timeout: 245 seconds]
dv310p3r has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
futurechimp has quit [Ping timeout: 248 seconds]
fromhet has joined #ruby-lang
Axsuul has joined #ruby-lang
perryh is now known as perryh_away
futurechimp has joined #ruby-lang
markborcherding has joined #ruby-lang
tekin has quit [Quit: Computer has gone to sleep.]
tomb_ has joined #ruby-lang
<shevy> hmmm interesting
<shevy> class Bar < ::Bar
<shevy> what is that doing?
<lianj> just a ruby subclass?
dasibre has quit [Remote host closed the connection]
<shevy> hmmmm
woollyams has quit [Quit: Computer has gone to sleep.]
pbjorklund has joined #ruby-lang
markborcherding has quit [Remote host closed the connection]
tomb_ has quit [Client Quit]
tonesfrommars has joined #ruby-lang
<imperator> no need to do that
<imperator> module Foo; Bar = ::Bar; end
<lianj> nope, p Foo::Bar says #<Bar:0x83cb9ac> then
<shevy> ok thanks
<akahn> Can anyone explain how to make an argument mandatory with OptionParser? The docs seem to distinguish between --arg ARG and --arg [ARG], but there's no error or anything if I don't provide an argument.
<lianj> imperator: http://ideone.com/tpZEB
<imperator> lianj, it does work, though i'm curious how the scoping works
TheHunter_1039 has joined #ruby-lang
<imperator> or if that's really an .inspect issue
<lianj> me too
<lianj> although Foo::Baz.new saying its Bar doesnt look like its in Foo scope at all
lucsky has joined #ruby-lang
lucsky has quit [Client Quit]
lucsky has joined #ruby-lang
<imperator> lianj, huh?
<shevy> hmmmm
<shevy> I find this quite confusing
<lianj> imperator: in my last link, http://ideone.com/tpZEB
chendo_ has quit [Remote host closed the connection]
crudson has joined #ruby-lang
Natch| has quit [Remote host closed the connection]
macmartine has quit [Quit: macmartine]
LarryLv has quit [Remote host closed the connection]
Natch| has joined #ruby-lang
<imperator> i guess because assignment like that is just an alias? whereas a subclass is its own thing
<imperator> shevy, we aim to confuse, i mean please!
<shevy> yeah
<shevy> or I dont think i saw class Foo < ::Something before
judofyr has quit [Remote host closed the connection]
<lianj> thats sad.
<rue> What’s the problem with that?
<imperator> sometimes i've had to do it in order to rescope existing classes
<rue> ::Const just scopes it to the top scope
<imperator> otherwise you get conflicts
<rue> lianj: Foo::Bar is its own class, and Foo::Baz is ::Bar
<imperator> some people are *really* obsessive about using :: for any internal code, too
<imperator> to absolutely, positively avoid the possibility of one of the core classes being fucked with
<lianj> rue: sure. but can you say Baz (Bar) is in Foo's scope then?
jxie has quit [Quit: leaving]
<rue> ::Bar isn’t. The constant Baz is
<rue> But a constant isn’t anything but a reference
<akahn> oooh, I see, the mandatory/required thing in optparse refers to whether the --foo argument requires a value, not whether the argument itself must be provided
<lianj> i would still suggest using the subclass solution
carloslopes has quit [Ping timeout: 240 seconds]
<rue> lianj: And you can’t think of ::Bar *now* ‘really’ being Foo::Bar, or Foo::Baz, it isn’t
<rue> The object is still out there, only the name ::Bar has been removed
<lianj> right
andrewhl has quit [Quit: andrewhl]
dtang has joined #ruby-lang
fromhet has quit [Quit: fromhet]
fromhet has joined #ruby-lang
linus95014 has left #ruby-lang [#ruby-lang]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
tommyvyo has quit [Ping timeout: 244 seconds]
KU0N has quit [Quit: Linkinus - http://linkinus.com]
Tick-Tock has quit [Ping timeout: 250 seconds]
futurechimp has quit [Quit: This computer has gone to sleep]
tomb_ has joined #ruby-lang
futurechimp has joined #ruby-lang
tommyvyo has joined #ruby-lang
fgomez has quit [Ping timeout: 265 seconds]
pbjorklund has quit [Quit: leaving]
pbjorklund has joined #ruby-lang
publicvoid_ has joined #ruby-lang
rushed has quit [Quit: rushed]
Tick-Tock has joined #ruby-lang
pvh has quit [Quit: Connection closed for inactivity]
fromhet has quit [Quit: fromhet]
cldwalker has quit [Quit: Connection closed for inactivity]
macmartine has joined #ruby-lang
tekin has joined #ruby-lang
carloslopes has joined #ruby-lang
tubbo`cloud has quit [Quit: Connection closed for inactivity]
andrewhl has joined #ruby-lang
tekin has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
sandbags has joined #ruby-lang
bfreeman has joined #ruby-lang
fromhet has joined #ruby-lang
Gekz has quit [Ping timeout: 276 seconds]
stardiviner has joined #ruby-lang
stardiviner has quit [Client Quit]
ttilley has joined #ruby-lang
fromhet has quit [Quit: fromhet]
lopac1029 has quit [Quit: Leaving]
jxie has joined #ruby-lang
lopac1029 has joined #ruby-lang
nevynxxx has quit [Quit: Time for Sun and Beer.]
<lopac1029> Im new to Ruby, and this might seem like a very silly question: Can an object hold other objects infinitely?
<Tasser> lopac1029, new to programming?
<lopac1029> Yes and no, I've dabbled in php, but only for static website building
<lopac1029> I guess like if House is a class, you and I have different houses, but both have doors, windows, and such
<frem_> Is there a shorter way to check this? `if my_hash.include? key1 && my_hash[key1].class == Array`
<lopac1029> but each of those are different, and might have different attributes like clear or patterned glass, or differ color knobs
thone has quit [Ping timeout: 244 seconds]
<mortice> frem_: since nil.class returns NilClass, you don't need to check my_hash.include? key1
<mortice> frem_: but I'd suggest you've already made a misstep if you need to check on the class of an object
gouthamvel has joined #ruby-lang
<frem_> mortice: Quite possibly. I'm porting something from PHP, and now that it's functional, I'm trying to make it idiomatic.
<mortice> frem_: cool :)
thone has joined #ruby-lang
felipe__ has joined #ruby-lang
<workmad3> lopac1029: ok, trying to make sense of what you asked
<workmad3> lopac1029: are you asking 'can I store as many object references as I desire?' or 'can I store objects inside objects inside objects infinitely deep?'
<workmad3> lopac1029: the answer to both is 'yes, with memory constraint limits'
<lopac1029> workmad3: understood. I figure i'd not want to go too deep into having objects within objects within....
<workmad3> lopac1029: you can easily have a circular reference and so have an 'infinite' nesting with only one object ;)
wallerdev has joined #ruby-lang
BigFatFatty has joined #ruby-lang
<lopac1029> workmad3: Not fully sure what that means yet, as I'm a laidoff construction worker making a career change. But, I hope to fully understand that at somepoint
<erikh> hrm
butchanton has joined #ruby-lang
<erikh> lopac1029: can I recommend a book to you that's geared at new programmers?
Criztian has joined #ruby-lang
<lopac1029> erikh: Absolutely
<erikh> it's free.
<erikh> corundum: learn to program?
<corundum> A good Ruby tutorial for newbies to programming: http://pine.fm/LearnToProgram/. NOTE: For linux installation section (in Chapter 0), the filename presented is just a example.
<erikh> it's worth reading end to end, especially if you're new
<lopac1029> Ha! I have that book
<erikh> and remember, things have to "click" sometimes. keep practicing and they will.
<erikh> good luck!
ryez_ has quit [Ping timeout: 245 seconds]
<lopac1029> Thanks!
ryez has quit [Ping timeout: 245 seconds]
kain has joined #ruby-lang
imperator has quit [Quit: This computer has gone to sleep]
Hakon|mbp has quit [Quit: Leaving...]
tubbo has quit [Ping timeout: 248 seconds]
symm- has quit [Ping timeout: 252 seconds]
tjadc has quit [Remote host closed the connection]
shadowcat_ has joined #ruby-lang
savage- has joined #ruby-lang
tubbo has joined #ruby-lang
mistym has joined #ruby-lang
bfreeman has quit [Quit: bfreeman]
vmil86 has quit [Quit: Leaving]
kvirani has quit [Remote host closed the connection]
jarib has quit [Excess Flood]
jarib has joined #ruby-lang
gyotoit22 has joined #ruby-lang
zzak has quit [Quit: leaving]
krohrbaugh has joined #ruby-lang
zzak has joined #ruby-lang
Criztian has quit [Remote host closed the connection]
Carnage\ has joined #ruby-lang
b1rkh0ff has joined #ruby-lang
thrcka has quit [Ping timeout: 248 seconds]
fayimora has joined #ruby-lang
gyotoit22 has left #ruby-lang [#ruby-lang]
arooni-mobile has joined #ruby-lang
Weems has quit [Ping timeout: 245 seconds]
cdt has quit [Quit: Ex-Chat]
shadowcat_ has quit [Quit: shadowcat_]
seanstickle has joined #ruby-lang
<khaase> drbrain: you around?
<khaase> drbrain: somehow the net-http-persistent and net-http-pipeline combination is not working for me
<khaase> drbrain: I get /Users/konstantin/Workspace/gh/lib/gh/faraday_adapter.rb:26:in `block in run': undefined method `pipelining=' for #<Net::HTTP::Persistent:0x007ffa0a3a6900> (NoMethodError) no matter what load order
<khaase> drbrain: and I get a wrong number of arguments error for pipeline
<khaase> no wait
<khaase> in pipeline
<khaase> drbrain: seems my *-persistent and *-pipeline versions are incompatible
Dreamer3 has joined #ruby-lang
<khaase> drbrain: ah, well, I see
<khaase> drbrain: I have to supply a url
<khaase> drbrain: that way the first request will not be pipeline, right?
solars has joined #ruby-lang
Weems has joined #ruby-lang
Weems has quit [Changing host]
Weems has joined #ruby-lang
dejongge has joined #ruby-lang
<khaase> drbrain: ok, got it running. but I think the first request still checks for pipelining support
imperator has joined #ruby-lang
workmad3 has quit [Ping timeout: 245 seconds]
chrismcg is now known as zz_chrismcg
solars has quit [Ping timeout: 244 seconds]
burgestrand has joined #ruby-lang
soahccc is now known as soahccc`
burgestrand has quit [Client Quit]
burgestrand has joined #ruby-lang
tubbo`work has joined #ruby-lang
ridders24 has joined #ruby-lang
stepnem has quit [Ping timeout: 244 seconds]
mdstunthamster has joined #ruby-lang
felipe__ has quit [Remote host closed the connection]
gnufied has quit [Quit: Leaving.]
solars has joined #ruby-lang
tubbo has quit [Ping timeout: 244 seconds]
matthewd has joined #ruby-lang
lsegal has joined #ruby-lang
gouthamvel has left #ruby-lang [#ruby-lang]
srbaker has joined #ruby-lang
solars has quit [Ping timeout: 240 seconds]
stepnem has joined #ruby-lang
solars has joined #ruby-lang
tubbo`work has quit [Quit: leaving]
tubbo has joined #ruby-lang
<rue> khaase: drbrain solves problems even without being around
<khaase> true
<khaase> fyi
<khaase> gonna look running in parallel next
srbaker has quit [Quit: Computer has gone to sleep.]
<khaase> *look into
rippa has joined #ruby-lang
shevy has quit [Ping timeout: 244 seconds]
jstemmer has joined #ruby-lang
brianpWins has joined #ruby-lang
brianpWins has quit [Client Quit]
brianpWins has joined #ruby-lang
brianpWins has quit [Client Quit]
judofyr has joined #ruby-lang
solars has quit [Ping timeout: 260 seconds]
kvirani has joined #ruby-lang
UNIXgod has quit [Changing host]
UNIXgod has joined #ruby-lang
sora_h is now known as s0ra_h
sonicpond has quit [Quit: leaving]
sonicpond has joined #ruby-lang
shevy has joined #ruby-lang
mdstunthamster has quit [Quit: Leaving...]
DRCALKIN has joined #ruby-lang
mrc has joined #ruby-lang
mrc has quit [Read error: Connection reset by peer]
<drbrain> khaase: yes, the first request is consumed for a pipelining check
<drbrain> khaase: so long as the connection stays alive, further sequences will immediately pipeline
<khaase> drbrain: how long does a connection stay alive? I mean, obviously, the server will close it after a few secs, but does the client close it?
hebz0rl has quit [Quit: Verlassend]
<drbrain> khaase: net-http-persistent has an idle timeout you can adjust
<drbrain> I think the default is 5s
<drbrain> khaase: net-http-pipeline has a way to say "I know this server supports pipelining" but that's not exposed to net-http-persistent (and I'm not sure how to expose it, offhand)
<drbrain> khaase: so long as you continue making requests within the server and client idle timeouts the connection will remain open
<khaase> drbrain: 5 secs might be short sometimes, then
<khaase> drbrain: lemme check
<drbrain> to determine github's timeout you'd need to experiment
<zzak> unless defined?(MyConst); require 'my_const'; end
<drbrain> making the client timeout just slightly shorter than the server's is best
benanne has joined #ruby-lang
<zzak> require 'my_const' unless defined? MyConst
<khaase> drbrain: ok, gotta run, will play with this later
ryanf has joined #ruby-lang
<jammi> do anyone by chance know of a lib to diff and merge objects? (consisting of just arrays and hashes for structure, and data as strings, numbers, booleans)
stamina has quit [Ping timeout: 245 seconds]
<jammi> 3-way diff/merge capability would be a big plus
mdstunthamster has joined #ruby-lang
stamina has joined #ruby-lang
bfreeman has joined #ruby-lang
Karmaon has quit [Quit: WeeChat 0.3.8-rc1]
<imperator> jammi, goes "gem search -r -d merge" reveal anything of interest?
<imperator> deep_merge maybe?
<jammi> imperator: not really. I haven't really researched the matter recently, that's why I was asking
<jammi> last time, there wasn't anything suitable, so I rolled my own merge util back then
Karmaon has joined #ruby-lang
<jammi> at the very least, there should be at least add, delete and set functionality, and a diff tool to compare either between two objects or better; a smaller representation of the previous state, and output that is serializable between machines without resorting to marshalling
futurechimp has quit [Quit: Leaving]
harukomoto has joined #ruby-lang
macmartine has quit [Quit: macmartine]
thrcka has joined #ruby-lang
mdstunthamster has quit [Quit: Leaving...]
znz_jp has quit [Quit: kill -QUIT $$]
asahi has left #ruby-lang [#ruby-lang]
znz_jp has joined #ruby-lang
stepnem has quit [Ping timeout: 245 seconds]
<sockmonk> jammi: that sounds great. I've got an old home-grown merge solution too. it works, but it's fragile if stuff in the structure changes much
nofxxxx has quit [Ping timeout: 244 seconds]
<sockmonk> I'd love it if a general solution were out there
stepnem has joined #ruby-lang
<jammi> sockmonk: yeah, some quite fragile solutions developed here too over the years, for the diff/patch part, entirely code-dependant. I guess I have to make a generic solution myself, as there still doesn't seem to be anything worthwhile at the moment
<jammi> as for conflicts, a first-come, first rule approach will be fine in these cases
thrcka has quit [Ping timeout: 260 seconds]
kinginky has joined #ruby-lang
chimkan_ has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 244 seconds]
<sockmonk> For most things we default to using A's value when merging A and B, but for a few fields, we check for conflict and if found error out of the merge and make the user pick (before the 'real' merge is allowed to start)
<sockmonk> just because of business rules etc
soahccc` is now known as soahccc
kinginky has quit [Ping timeout: 245 seconds]
tonesfrommars has quit [Quit: KVIrc 4.0.1 Insomnia http://www.kvirc.net/]
nofxxxx has joined #ruby-lang
<sockmonk> jammi: ^^
SimSala has joined #ruby-lang
<jammi> sockmonk: yeah. my use-cases are a bit different. more like master vs a horde of slaves. could be stacked, like making a master another's slave. in most cases, it doesn't matter much, if a slave's change is overruled by another slave
mdstunthamster has joined #ruby-lang
seanstickle has quit [Quit: Nihil sub sole novum]
<jammi> the changes coming from the higher priority master always overwrite whatever the slaves tried to set anyway
wvdschel has quit [Read error: Connection reset by peer]
sspiff has joined #ruby-lang
sspiff has joined #ruby-lang
zz_wasnotrice is now known as wasnotrice
stamina has quit [Quit: Lost terminal]
imperator has left #ruby-lang ["Leaving"]
Cykey has joined #ruby-lang
lopac1029_ has joined #ruby-lang
lopac1029_ has quit [Client Quit]
judofyr has quit [Remote host closed the connection]
Heimidal has joined #ruby-lang
outoftime has quit [Quit: Leaving]
ridders24 has quit [Ping timeout: 250 seconds]
ridders24 has joined #ruby-lang
jarib has quit [Excess Flood]
<erikh> chef has a good deep merge
<erikh> it's in its own library
<erikh> you could trivially extract it
jarib has joined #ruby-lang
<rue> Poop merge
<erikh> deep impact
* erikh goes there
Austin__ has quit [Quit: Leaving.]
solars has joined #ruby-lang
soahccc is now known as soahccc`
<rue> I am now broken.
<TTilus> would poop merge unbreak your heart?
* TTilus desperately needs sleep
<rue> Hmm
judofyr has joined #ruby-lang
dejongge has quit [Quit: Leaving.]
seanstickle has joined #ruby-lang
voker57__ has joined #ruby-lang
senj has joined #ruby-lang
senj has quit [Remote host closed the connection]
voker57_ has quit [Ping timeout: 252 seconds]
Heimidal has quit [Ping timeout: 245 seconds]
znz_v0 has quit [Quit: kill -QUIT $$]
znz_v has joined #ruby-lang
IPGlider has joined #ruby-lang
asahi has joined #ruby-lang
jperry2 has quit [Quit: Leaving.]
<asahi> can someone tell me what the double colons mean in something like Foo::Bar ?
adambeynon has quit [Quit: adambeynon]
<TTilus> asahi: scope traversal
<TTilus> asahi: that particular means "Bar inside Foo"
<asahi> and Foo and Bar can be classes or modules?
<TTilus> yes
<asahi> k, thanks
<TTilus> they actually must be modules
<TTilus> ;)
<TTilus> but as classes are modules too...
<hagabaka> Foo needs to be a module, but Bar can be any constant
<rue> No, they can be constants…
Guedes is now known as Guedes_out
<TTilus> ah, sorry, the leaf can be any constant
<asahi> ah okay
pbjorklund has quit [Quit: bork]
voker57__ has quit [Read error: Connection reset by peer]
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
mark_locklear has quit [Remote host closed the connection]
zmack has quit [Remote host closed the connection]
judofyr has quit [Remote host closed the connection]
mdstunthamster is now known as stunthamster
fromhet has joined #ruby-lang
hynkle has quit [Quit: hynkle]
Cykey has quit [Quit: Computer has gone to sleep.]
<chris2> meh, the color gem only speaks hsl and not hsv
gouthamvel has joined #ruby-lang
gouthamvel has left #ruby-lang [#ruby-lang]
macmartine has joined #ruby-lang
lucsky has quit [Quit: Trans Plutonian Transmission]
ilyam has joined #ruby-lang
wasnotrice is now known as zz_wasnotrice
Criztian has joined #ruby-lang
<zenspider> chris2: you can steal my #from_hsv method in the png gem ... converts to rgb
<chris2> nice
<chris2> all i need really
SimSala has quit [Ping timeout: 252 seconds]
<chris2> erm, your hsv is normalized to 255?
stamina has joined #ruby-lang
zz_wasnotrice is now known as wasnotrice
sandbags has quit [Remote host closed the connection]
kalleth has quit [Ping timeout: 252 seconds]
sandbags has joined #ruby-lang
<zenspider> chris2: yeah. but you can strip that. that's just because of the design of my png backing
wasnotrice is now known as zz_wasnotrice
stunthamster has quit [Quit: Leaving...]
<chris2> somehow there is a rounding issue...
judofyr has joined #ruby-lang
<zenspider> what's the size of the hsv values coming in?
<chris2> 360/100/100
<chris2> but i see off-by-ones if i compare to gtk color picker
<zenspider> kk. / 60, 100, 100
<zenspider> hrm
<chris2> i changed those
<chris2> well, nvm
<chris2> its just for a quick hack
publicvoid_ has quit [Remote host closed the connection]
A124 has joined #ruby-lang
ivanoats has quit [Quit: ivanoats]
andrewhl has quit [Quit: andrewhl]
judofyr has quit [Remote host closed the connection]
judofyr has joined #ruby-lang
Cykey has joined #ruby-lang
<judofyr> telemachus: you here?
elux has quit [Quit: Bye!]
adambeynon has joined #ruby-lang
<rue> judyofyr: Nah
<asahi> can someone tell me what class << self means?
<slyphon> what's that gem that gives you better Time related stuff?
<slyphon> the one that all the kids are using these days
<judofyr> asahi: "enter self's metaclass"
<whitequark> asahi: "class << self; def method; end" is the same as "def self.method; end", for example.
<asahi> whitequark: ah okay. thanks
<judofyr> whitequark: I'd rather say it's the other way around, but yeah :)
<whitequark> judofyr: "a = b" implies that "b = a".
<judofyr> asahi: every object has its own metaclass which is there if you want methods defined on a specific object.
<judofyr> asahi: in Ruby, methods can only be defined in classes
vesan has quit [Read error: Connection reset by peer]
lopac1029 has quit [Remote host closed the connection]
<asahi> judofyr: I've seen def self.method a lot, but haven't seen class << self; def method; end; end; that much...
<asahi> maybe because I use rails
<whitequark> that's just a coding style
<judofyr> well, class<<self can be used to other things too
<judofyr> class << self; attr_accessor :foobar; end
vesan has joined #ruby-lang
<whitequark> asahi: listen to judofyr, he explains this better than me :)
tommyvyo has quit [Quit: Computer has gone to sleep.]
<asahi> I see. okay. I also just found some articles online about it too. thanks for the help
<judofyr> asahi: unless you want to dive into Ruby's metaclass, you only need to know that "class<<self;def foo;end;def bar;end;end" is equal to "def self.foo;end;def self.bar;end"
carloslopes has quit [Quit: Leaving]
<asahi> judofyr: to be honest, I haven't heard of Ruby's metaclass, so maybe I don't need to dive into it right now
<judofyr> asahi: I should finish my own article explaining metaclasses (or actually, first it explains plain objects + classes)
DRCALKIN has quit [Ping timeout: 245 seconds]
flowerpot has joined #ruby-lang
sonicpond is now known as sonicpond_afk
echoprinter has joined #ruby-lang
adambeynon has quit [Quit: adambeynon]
gsav has quit [Read error: Connection reset by peer]
gsav has joined #ruby-lang
codewrangler has quit [Quit: Computer has gone to sleep.]
srbartlett has joined #ruby-lang
Criztian has quit [Remote host closed the connection]
sspiff has quit [Ping timeout: 246 seconds]
rippa has quit [Ping timeout: 244 seconds]
cmaxw has joined #ruby-lang
kvirani has quit [Remote host closed the connection]
dv310p3r has quit [Read error: Operation timed out]
sockmonk has quit [Ping timeout: 245 seconds]
macmartine has quit [Quit: macmartine]
karatedog has joined #ruby-lang
workmad3 has joined #ruby-lang
arooni-mobile has joined #ruby-lang
<Harzilein> hmm
dtang has quit [Quit: dtang]
codewrangler has joined #ruby-lang
<Harzilein> so
<Harzilein> Hash[[1,2,3].zip [9,8,7]] works nice
<Harzilein> how about something that will do
<Harzilein> Hash[[1,2,3].something[[9,8,7],[3,4,5]]] # => [{1 => 9, 2 => 8, 3 => 7},{1 => 3, 2 => 2, 3 => 4}]?
<Harzilein> or really just something without the hash constructor maybe
codewrangler has quit [Client Quit]
judofyr has quit [Remote host closed the connection]
<erikh> Hash[[1,2,3].zip([3,4,5].zip([5,6,7]))]
<erikh> WHEN IN DOUBT JUST CHAIN YO
<Harzilein> of course the second array is given so i cannot split it myself
<erikh> oh, I see what you want to do
<erikh> why not just use map there?
<Harzilein> this is the "i parse out an array from some table row and collect all rows in another array, now i want to add the column headings as an array of symbols and get hashes for the individual rows" use case
<erikh> [[9,8,7], [3,4,5]].map { |x| Hash[[1,2,3].zip(x) }
<Harzilein> because i think it is very common there must be a nice shorthand imho
<erikh> there isn't
woollyams has joined #ruby-lang
<erikh> it's not very common.
karatedog has quit [Quit: Page closed]
FiXato has quit [Quit: rebooting]
workmad3 has quit [Ping timeout: 260 seconds]
FiXato has joined #ruby-lang
yxhuvud has quit [Ping timeout: 245 seconds]
headius has joined #ruby-lang
bascht has joined #ruby-lang
<bascht> Hey Folks.
<erikh> hi
<bascht> I'm fairly new to ruby, but currently debugging some ruby files that are acting strange on a remote system.
kalleth has joined #ruby-lang
<bascht> Question: I'm seeing that the script checks File.writable? - how can I get the user that this ruby process is run with?
<rue> Process and/or Etc?
<bascht> I tried Process.uid - but this looks right to me, as that user has the correct permissions to that file.
<bascht> hm, strange
<rue> Is the directory?
<erikh> is the file writeable?
<bascht> rue: yep, its a directory.
ReiToei has joined #ruby-lang
<bascht> The directory has "drwxrwsr-x 8 1000 1002"
<bascht> The user that "Process.uid" gives, is in the group 1002 - so something seems wrong here, but I just don't get a grip. :)
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
mikeric has joined #ruby-lang
workmad3 has joined #ruby-lang
<erikh> did the user just get the group added?
jarib has quit [Excess Flood]
naz has quit [Quit: Leaving]
<bascht> Good grief.
<bascht> erikh: Nope, but I think the process is running with the wrong GID
kvirani has joined #ruby-lang
j`ey has joined #ruby-lang
<erikh> hrm
j`ey has left #ruby-lang [#ruby-lang]
<erikh> you can Process.gid = xxx
jarib has joined #ruby-lang
<bascht> erikh: Yep, thanks for the hint! :)
<erikh> enjoy
woollyams has quit [Quit: Computer has gone to sleep.]
headius has quit [Quit: headius]
woollyams has joined #ruby-lang
woollyams has quit [Client Quit]
toretore has quit [Quit: Leaving]
srbartlett has quit [Remote host closed the connection]
headius has joined #ruby-lang
headius has quit [Client Quit]
<rue> OMG spreadsheets are annoying
deobald__ has joined #ruby-lang
savage-_ has joined #ruby-lang
fayimora has quit [Read error: Connection reset by peer]
fayimora has joined #ruby-lang
savage- has quit [Ping timeout: 250 seconds]
<Harzilein> so are ascii art tables
<seanstickle> So are poison splinters underneath your fingernails
<Harzilein> maybe i should just look for an implementation in any language, surely someone has parsed tables out of rfcs before...
BigFatFatty has quit [Quit: leaving]
<arooni-mobile> trying to run cap deploy:cold on ubuntu 12.04; with rvm installed at 1.8.7p334 ... getting : /home/skippy/.rvm/gems/ruby-1.8.7-p334/gems/net-ssh-2.1.4/lib/net/ssh/transport/openssl.rb:1:in `require': no such file to load -- openssl (LoadError)
<erikh> didn't zenspider write a lib ages ago that took ascii tables and dumped html from them?
<arooni-mobile> i already installed libopenssl-ruby
<bascht> arooni-mobile: did you check the rvm notes for Ubuntu?
<arooni-mobile> bascht, will go do that now
<Harzilein> well, of course i want to get at the content, not make a layout engine
fromhet has quit [Quit: fromhet]
<zenspider> rawr
<zenspider> about to release the new "make/rake/work/well" gem
<zenspider> no fucking clue how to write tests for this. the rake tests are messy
wallerdev has quit [Quit: wallerdev]
<erikh> scrape the output
* erikh runs
<rue> Scraping is the best
<arooni-mobile> bascht, do you mean: https://rvm.io/packages/openssl/
workmad3 has quit [Quit: leaving]
<erikh> rvm notes
<erikh> type it at your shell
<bascht> arooni-mobile: what erikh said. ;)
<arooni-mobile> thx guys
<zenspider> https://github.com/seattlerb/makerakeworkwell -- does this sound sane?
<zenspider> make sense / etc
<rue> Well, the icons are terrible
<zenspider> icons?
<rue> Sorry, github humour
<rue> zenspider: You should expand on .phony
<erikh> woohoo .PHONY
<rue> Unless you expect the audience to only be people who use make :)
<zenspider> rue: expand how?
<erikh> why doesn't task :isolate work
<erikh> :P
<zenspider> because rake is broken
<erikh> right, but you should detail that.
<erikh> that may not be what rue's asking, but that's the gist I think
<rue> “Phony is a name inherited from make blah blah, what happens without this is blah blah, phony does blah blah” or so, perhaps
<zenspider> I'll just copy/paste that in
benanne has quit [Quit: kbai]
mikeric has quit [Quit: mikeric]
voker57 has quit [Ping timeout: 246 seconds]
gouthamvel has joined #ruby-lang
gouthamvel has left #ruby-lang [#ruby-lang]
havenn has joined #ruby-lang
tomzx has joined #ruby-lang
<tylergillies> any plans to bring andand functionality to ruby core?
b1rkh0ff has quit [Ping timeout: 256 seconds]
<seanstickle> No
tommyvyo_ has joined #ruby-lang
harukomoto has quit [Ping timeout: 244 seconds]
Cykey has quit [Quit: Computer has gone to sleep.]
postmodern has joined #ruby-lang
<zenspider> tylergillies: dear god no
<kyrylo> Could you guys explain, what is terrible about that andand?
<zenspider> for starters it used ParseTree ... and was usually used by railz0rs
<zenspider> ParseTree inside a rails project is ... terrifying
<zenspider> ok. clarified phony
<zenspider> released makerakeworkwell 1.0.0
solars has quit [Read error: Operation timed out]
flowerpot has quit [Quit: Ex-Chat]
havenn has quit [Remote host closed the connection]
Carnage\ has quit []
deobald__ has quit [Ping timeout: 260 seconds]
kith has quit [Remote host closed the connection]
kith has joined #ruby-lang
RegEchse has quit [Quit: <3 WeeChat (v0.3.8-dev)]
<TheHunter_1039> when exporting environment variables in your .rvmrc are you supposed to wrap strings in quotation marks?
<zenspider> #rvm ?
DRCALKIN has joined #ruby-lang
schroedinbug has quit [Quit: WeeChat 0.3.6]
DRCALKIN has quit [Client Quit]
ReiToei has left #ruby-lang ["Leaving"]
cronin101 has quit [Ping timeout: 245 seconds]
jobicoppola has joined #ruby-lang
S1kx has joined #ruby-lang
<zenspider> zenweb 3.0.0.b1 released
<zenspider> FINALLY
S2kx has quit [Ping timeout: 245 seconds]
fayimora has quit [Ping timeout: 244 seconds]
ridders24 has quit [Quit: Leaving]
cantonic has quit [Remote host closed the connection]
cantonic has joined #ruby-lang
fayimora has joined #ruby-lang
Z33K|Lux has joined #ruby-lang
cronin101 has joined #ruby-lang
kvirani has quit [Remote host closed the connection]
A124 has quit [Quit: Leaving.]
<zenspider> that was a LONG time coming
dkubb has joined #ruby-lang
<zenspider> hey dan
<zenspider> how goes?
Stereokitsune has quit [Ping timeout: 245 seconds]
<zenspider> ok. errands
<tylergillies> woot re zenweb
Stereokitsune has joined #ruby-lang
<rue> Dan dan daaaan
<dkubb> hi
echoprinter has quit [Quit: leaving]
<dkubb> sorry, forgot to ident
gsav has quit [Read error: Connection reset by peer]
ilyam has quit [Ping timeout: 248 seconds]