ljarvis changed the topic of #ruby-lang to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p547: http://ruby-lang.org || Paste code on http://gist.github.com
strmpnk____ has joined #ruby-lang
moogumbo_ has joined #ruby-lang
webhat_ has joined #ruby-lang
michael_imac has joined #ruby-lang
jasiek_ has joined #ruby-lang
eam_ has joined #ruby-lang
kramsee_ has joined #ruby-lang
jlpeters_ has joined #ruby-lang
ironcamel has joined #ruby-lang
tpope_ has joined #ruby-lang
`micro has joined #ruby-lang
bhaak_ has joined #ruby-lang
thang has joined #ruby-lang
gnufied_ has joined #ruby-lang
jamooo_ has joined #ruby-lang
PaulePan1er has joined #ruby-lang
jo____ has joined #ruby-lang
`micro is now known as Guest40153
arBmind has quit [Ping timeout: 255 seconds]
womble` has joined #ruby-lang
DarkBushido_ has joined #ruby-lang
meizaps has joined #ruby-lang
cschneid has joined #ruby-lang
pipecloud has joined #ruby-lang
pipecloud has joined #ruby-lang
pipecloud has quit [Changing host]
lupine_85 has joined #ruby-lang
vlad_starkov has joined #ruby-lang
s1kx has joined #ruby-lang
ta_ has joined #ruby-lang
womble has quit [Write error: Connection reset by peer]
gnufied has quit [Ping timeout: 789 seconds]
michael_mbp has quit [Quit: ZNC - http://znc.sourceforge.net]
gnufied_ is now known as gnufied
meizaps_ has quit [Write error: Broken pipe]
ironcame1 has quit [Write error: Broken pipe]
jasiek has quit [Write error: Broken pipe]
seanhagen has quit [Write error: Broken pipe]
jamooo has quit [Write error: Broken pipe]
webhat has quit [Write error: Connection reset by peer]
PaulePanter has quit [Write error: Connection reset by peer]
cschneid_ has quit [Write error: Broken pipe]
tpope has quit [Write error: Connection reset by peer]
lupine has quit [Excess Flood]
vlad_sta- has quit [Quit: ZNC - http://znc.in]
eam has quit [Remote host closed the connection]
`micro__ has quit [Remote host closed the connection]
pipework has quit [Remote host closed the connection]
sonne has quit [Remote host closed the connection]
jo__ has quit [Read error: Connection reset by peer]
DarkBushido has quit [Read error: Connection reset by peer]
DarkBushido_ is now known as DarkBushido
DarkBushido has quit [Changing host]
DarkBushido has joined #ruby-lang
lupine_85 is now known as lupine
pipecloud is now known as pipework
|jemc| has quit [Ping timeout: 240 seconds]
s1kx has quit [Client Quit]
sonne_ has joined #ruby-lang
jo____ is now known as jo__
strmpnk___ has quit [Ping timeout: 257 seconds]
bhaak has quit [Ping timeout: 257 seconds]
jlpeters has quit [Ping timeout: 257 seconds]
moogumbo has quit [Ping timeout: 257 seconds]
jlpeters_ is now known as jlpeters
amerine has joined #ruby-lang
sleepee has joined #ruby-lang
moogumbo_ is now known as moogumbo
thang_ has quit [Ping timeout: 250 seconds]
kramsee has quit [Ping timeout: 250 seconds]
havenwood has quit []
sepp2k has quit [Ping timeout: 250 seconds]
sepp2k has joined #ruby-lang
amerine has quit [Ping timeout: 240 seconds]
supermurphy has joined #ruby-lang
supermurphy has quit [Client Quit]
charliesome has joined #ruby-lang
sleepee has quit [Quit: Leaving]
charliesome has quit [Quit: zzz]
ta_ has quit [Ping timeout: 245 seconds]
torrieri has joined #ruby-lang
CodeBunny has quit [Read error: Connection reset by peer]
torrieri_ has joined #ruby-lang
torrieri_ has quit [Read error: Connection reset by peer]
torrieri has quit [Read error: Connection reset by peer]
j4cknewt has quit [Remote host closed the connection]
|jemc| has joined #ruby-lang
Lewix has joined #ruby-lang
charliesome has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
araujo has quit [Ping timeout: 250 seconds]
araujo has joined #ruby-lang
mmus has quit [Ping timeout: 245 seconds]
robbyoconnor has quit [Ping timeout: 250 seconds]
postmodern has joined #ruby-lang
havenwood has joined #ruby-lang
robbyoconnor has joined #ruby-lang
dorei has quit []
mmus has joined #ruby-lang
mikecmpbll has quit [Quit: i've nodded off.]
djinni` has quit [Remote host closed the connection]
brnorion has joined #ruby-lang
ender|dkm has joined #ruby-lang
j4cknewt has joined #ruby-lang
robbyoconnor has quit [Excess Flood]
diegovio1 has joined #ruby-lang
robbyoconnor has joined #ruby-lang
diegovio1 is now known as diegoviola
diegoviola has quit [Client Quit]
diegoviola has joined #ruby-lang
ender|dkm has quit [Ping timeout: 264 seconds]
|jemc| has quit [Ping timeout: 240 seconds]
djinni` has joined #ruby-lang
djinni` has quit [Remote host closed the connection]
djinni` has joined #ruby-lang
tkuchiki has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
robbyoconnor has quit [Excess Flood]
Lewix has quit [Quit: Leaving...]
amerine has joined #ruby-lang
robbyoconnor has joined #ruby-lang
amerine has quit [Ping timeout: 240 seconds]
djinni` has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 255 seconds]
ta_ has joined #ruby-lang
araujo has quit [Ping timeout: 240 seconds]
araujo has joined #ruby-lang
djinni` has joined #ruby-lang
charliesome has quit [Quit: zzz]
ta_ has quit [Ping timeout: 260 seconds]
brnorion has quit [Ping timeout: 245 seconds]
charliesome has joined #ruby-lang
torrieri has joined #ruby-lang
allomov has joined #ruby-lang
brnorion has joined #ruby-lang
allomov has quit [Ping timeout: 255 seconds]
bsvineeth has joined #ruby-lang
centrx has quit [Quit: Mead error: Connection reset by beer]
sepp2k has quit [Read error: Connection reset by peer]
brnorion has quit [Ping timeout: 245 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby-lang
brnorion has joined #ruby-lang
mmus has quit [Ping timeout: 245 seconds]
wallerdev_ has joined #ruby-lang
wallerdev has quit [Read error: Connection reset by peer]
wallerdev_ is now known as wallerdev
toastynerd has joined #ruby-lang
toastynerd has quit [Ping timeout: 255 seconds]
lcdhoffman has joined #ruby-lang
lcdhoffman has quit [Client Quit]
amerine has joined #ruby-lang
amerine has quit [Ping timeout: 250 seconds]
bsvineeth has quit [Remote host closed the connection]
j4cknewt has quit [Remote host closed the connection]
ta_ has joined #ruby-lang
ta_ has quit [Ping timeout: 260 seconds]
RobertBirnie has joined #ruby-lang
thomasxie has joined #ruby-lang
robbyoconnor has joined #ruby-lang
bsvineeth has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thirdsex has quit [Ping timeout: 246 seconds]
robbyoconnor has quit [Ping timeout: 245 seconds]
jds has quit [Quit: Connection closed for inactivity]
bsvineeth has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
bsvineet_ has joined #ruby-lang
bsvineeth has quit [Ping timeout: 260 seconds]
bsvineeth has joined #ruby-lang
dm78 has joined #ruby-lang
bsvineet_ has quit [Ping timeout: 250 seconds]
Newbie0086 has joined #ruby-lang
bsvineeth has quit [Ping timeout: 250 seconds]
bsvineeth has joined #ruby-lang
ender|dkm has joined #ruby-lang
thomasxie has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 264 seconds]
ender|dkm has quit [Ping timeout: 264 seconds]
toastynerd has joined #ruby-lang
toastynerd has quit [Ping timeout: 240 seconds]
arooni-mobile has quit [Ping timeout: 250 seconds]
amerine has joined #ruby-lang
amerine has quit [Ping timeout: 255 seconds]
havenwood has joined #ruby-lang
ta_ has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
kgrz has joined #ruby-lang
j4cknewt has joined #ruby-lang
Gaelane has quit [Ping timeout: 260 seconds]
zz_dlu has quit [Ping timeout: 255 seconds]
ta_ has quit [Ping timeout: 245 seconds]
bsvineeth has quit [Ping timeout: 240 seconds]
zz_dlu has joined #ruby-lang
GaelanAintAround has joined #ruby-lang
gix has quit [Ping timeout: 255 seconds]
robbyoconnor has joined #ruby-lang
charliesome has quit [Read error: Connection reset by peer]
gix has joined #ruby-lang
charliesome has joined #ruby-lang
sebastion has joined #ruby-lang
hahuang65 has joined #ruby-lang
migbar_ has quit [Remote host closed the connection]
kaji has quit [Ping timeout: 240 seconds]
allomov has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
allomov has quit [Ping timeout: 240 seconds]
sebastion has quit [Quit: Leaving]
melter has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby-lang
kaji has joined #ruby-lang
melter has joined #ruby-lang
ender|dkm has joined #ruby-lang
|jemc| has joined #ruby-lang
tkuchiki_ has joined #ruby-lang
CaptainJet has quit []
tkuchiki has quit [Ping timeout: 250 seconds]
ender|dkm has quit [Ping timeout: 240 seconds]
arooni-mobile has joined #ruby-lang
toastynerd has joined #ruby-lang
toastynerd has quit [Ping timeout: 250 seconds]
amerine has joined #ruby-lang
brnorion has quit []
amerine has quit [Ping timeout: 245 seconds]
ta_ has joined #ruby-lang
ta_ has quit [Ping timeout: 250 seconds]
tkuchiki_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
ender|dkm has joined #ruby-lang
havenwood has joined #ruby-lang
emmesswhy has quit [Quit: Leaving]
pkrnj has joined #ruby-lang
dabradley has quit [Ping timeout: 245 seconds]
|jemc| has quit [Ping timeout: 240 seconds]
dabradley has joined #ruby-lang
dm78 has quit [Remote host closed the connection]
ledestin has quit [Ping timeout: 240 seconds]
pkrnj has quit [Quit: Computer has gone to sleep.]
pkrnj has joined #ruby-lang
spastorino has quit [Quit: Connection closed for inactivity]
ledestin has joined #ruby-lang
amerine has joined #ruby-lang
bsvineeth has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
MSY has joined #ruby-lang
MSY is now known as Guest77558
pkrnj has quit [Quit: Computer has gone to sleep.]
araujo has quit [Quit: Leaving]
pkrnj has joined #ruby-lang
io_syl has quit []
havenwood has quit [Remote host closed the connection]
dm78 has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 240 seconds]
dm78 has quit [Ping timeout: 245 seconds]
pkrnj has quit [Quit: Computer has gone to sleep.]
PaulePan1er is now known as PaulePanter
koderok has joined #ruby-lang
pkrnj has joined #ruby-lang
pkrnj has quit [Client Quit]
mame1 has quit [Ping timeout: 250 seconds]
haraoka has joined #ruby-lang
heftig has quit [Quit: Quitting]
ianmcshane has joined #ruby-lang
allomov has joined #ruby-lang
drbrain has quit [Ping timeout: 245 seconds]
ur5us has quit [Remote host closed the connection]
io_syl has joined #ruby-lang
AKASkip has joined #ruby-lang
ur5us has joined #ruby-lang
allomov has quit [Ping timeout: 245 seconds]
djbkd has quit [Quit: Leaving...]
drbrain has joined #ruby-lang
torrieri has quit [Quit: Leaving...]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
ur5us has quit [Ping timeout: 255 seconds]
kyb3r_ has joined #ruby-lang
banister has quit [Client Quit]
banister has joined #ruby-lang
banister has quit [Client Quit]
banister has joined #ruby-lang
charliesome has quit [Quit: zzz]
charliesome has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
_ht has joined #ruby-lang
apeiros has quit [Ping timeout: 240 seconds]
toastynerd has joined #ruby-lang
toastynerd has quit [Ping timeout: 250 seconds]
AKASkip has quit [Ping timeout: 250 seconds]
kaji has quit [Ping timeout: 240 seconds]
dm78 has joined #ruby-lang
dm78 has quit [Ping timeout: 240 seconds]
michaeldeol has joined #ruby-lang
michaeldeol has quit [Client Quit]
certaint1 is now known as certainty
amerine has quit [Ping timeout: 260 seconds]
kaji has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
earthquake has joined #ruby-lang
chussenot has joined #ruby-lang
chussenot has quit [Client Quit]
kwd has joined #ruby-lang
alexju has joined #ruby-lang
tbuehlmann has joined #ruby-lang
torrieri has joined #ruby-lang
Sphynx has joined #ruby-lang
alexju has quit [Remote host closed the connection]
torrieri has quit [Read error: Connection reset by peer]
torrieri has joined #ruby-lang
arBmind has joined #ruby-lang
torrieri has quit [Read error: Connection reset by peer]
torrieri_ has joined #ruby-lang
karamazov has joined #ruby-lang
r0bby_ has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 250 seconds]
torrieri_ has quit [Ping timeout: 245 seconds]
havenwood has joined #ruby-lang
ianmcshane has quit [Remote host closed the connection]
Miphix has joined #ruby-lang
vintik has joined #ruby-lang
mistym has joined #ruby-lang
havenwood has quit [Ping timeout: 264 seconds]
ddv has joined #ruby-lang
mistym_ has joined #ruby-lang
ddv has quit [Changing host]
ddv has joined #ruby-lang
ianmcshane has joined #ruby-lang
mistym has quit [Ping timeout: 260 seconds]
ianmcshane has quit [Remote host closed the connection]
ruby-lang717 has joined #ruby-lang
ruby-lang717 has left #ruby-lang [#ruby-lang]
mistym has joined #ruby-lang
earthquake has quit [Quit: earthquake]
mistym_ has quit [Ping timeout: 240 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest77558 has quit [Quit: This computer has gone to sleep]
karamazov has quit [Remote host closed the connection]
diegoviola has quit [Remote host closed the connection]
bsvineeth has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
apeiros has joined #ruby-lang
bsvineeth has quit [Ping timeout: 245 seconds]
Newbie0086 has quit [Quit: 离开]
AKASkip has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
solars has joined #ruby-lang
r0bby_ has quit [Ping timeout: 260 seconds]
r0bby_ has joined #ruby-lang
dm78 has joined #ruby-lang
amerine has joined #ruby-lang
bsvineeth has joined #ruby-lang
r0bby_ is now known as robbyoconnor
dm78 has quit [Ping timeout: 240 seconds]
Forgetful_Lion has joined #ruby-lang
amerine has quit [Ping timeout: 245 seconds]
charliesome has quit [Quit: zzz]
ta_ has joined #ruby-lang
ianmcshane has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
postmodern has quit [Quit: Leaving]
torrieri has joined #ruby-lang
ianmcshane has quit [Remote host closed the connection]
bhaak_ is now known as bhaak
bsvineeth has quit [Ping timeout: 245 seconds]
robmiller has quit [Quit: Leaving.]
ianmcshane has joined #ruby-lang
vondruch has joined #ruby-lang
amerine has joined #ruby-lang
allomov has joined #ruby-lang
bsvineeth has joined #ruby-lang
ianmcshane has quit [Remote host closed the connection]
torrieri has quit [Ping timeout: 250 seconds]
amerine has quit [Max SendQ exceeded]
vintik has quit [Remote host closed the connection]
amerine has joined #ruby-lang
ironhide_604 has joined #ruby-lang
allomov has quit [Ping timeout: 240 seconds]
matp has joined #ruby-lang
dm78 has joined #ruby-lang
fullybaked has joined #ruby-lang
Miphix has quit [Read error: Connection reset by peer]
amerine has quit [Ping timeout: 245 seconds]
Miphix has joined #ruby-lang
havenwood has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
j4cknewt has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
dm78 has quit [Ping timeout: 255 seconds]
j4cknewt has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 264 seconds]
necro has joined #ruby-lang
kek has joined #ruby-lang
mikecmpbll has joined #ruby-lang
amerine has joined #ruby-lang
io_syl has quit []
toastynerd has joined #ruby-lang
ianmcshane has joined #ruby-lang
amerine has quit [Ping timeout: 255 seconds]
toastynerd has quit [Ping timeout: 250 seconds]
ddv has left #ruby-lang [#ruby-lang]
robmiller has joined #ruby-lang
kek has quit [Remote host closed the connection]
robmiller has quit [Client Quit]
robmiller has joined #ruby-lang
ianmcshane has quit [Remote host closed the connection]
ianmcshane has joined #ruby-lang
bsvineeth has joined #ruby-lang
jstemmer has joined #ruby-lang
skade has joined #ruby-lang
j4cknewt has joined #ruby-lang
relix has joined #ruby-lang
kek has joined #ruby-lang
jstemmer has left #ruby-lang [#ruby-lang]
benlovell has joined #ruby-lang
j4cknewt has quit [Ping timeout: 255 seconds]
bsvineeth has quit [Remote host closed the connection]
torrieri has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
sonne_ is now known as sonne
sonne has joined #ruby-lang
sonne has quit [Changing host]
torrieri has quit [Ping timeout: 250 seconds]
bsvineeth has joined #ruby-lang
wallerdev has joined #ruby-lang
wallerdev has quit [Client Quit]
<yorickpeterse> morning
dm78 has joined #ruby-lang
marr has joined #ruby-lang
jds has joined #ruby-lang
charliesome has joined #ruby-lang
dm78 has quit [Ping timeout: 240 seconds]
ianmcshane has quit [Remote host closed the connection]
matp has quit [Remote host closed the connection]
amerine has joined #ruby-lang
sMecKs has quit [Read error: Connection reset by peer]
qba73 has joined #ruby-lang
amerine has quit [Ping timeout: 255 seconds]
rhizome has quit [Ping timeout: 240 seconds]
fullybaked has quit []
mistym has quit [Remote host closed the connection]
rhizome has joined #ruby-lang
workmad3 has joined #ruby-lang
michd is now known as MichD
fullybaked has joined #ruby-lang
kyb3r_ has quit [Read error: Connection reset by peer]
AKASkip has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
AKASkip has joined #ruby-lang
torrieri has joined #ruby-lang
jasiek_ has quit [Read error: Connection reset by peer]
charliesome has joined #ruby-lang
torrieri_ has joined #ruby-lang
torrieri has quit [Ping timeout: 260 seconds]
riffraff has joined #ruby-lang
allomov has joined #ruby-lang
torrieri_ has quit [Ping timeout: 240 seconds]
danijoo has quit [Read error: Connection reset by peer]
stamina has joined #ruby-lang
danijoo has joined #ruby-lang
allomov has quit [Ping timeout: 240 seconds]
hellangel7 has joined #ruby-lang
hellangel7 has quit [Max SendQ exceeded]
hellangel7 has joined #ruby-lang
ianmcshane has joined #ruby-lang
arBmind has joined #ruby-lang
matp has joined #ruby-lang
ender|dkm has quit [Ping timeout: 264 seconds]
jasiek has joined #ruby-lang
allomov has joined #ruby-lang
ianmcshane has quit [Ping timeout: 255 seconds]
Sphynx has quit [Remote host closed the connection]
allomov has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
allomov has joined #ruby-lang
Sphynx has joined #ruby-lang
priodev has quit [Ping timeout: 250 seconds]
priodev has joined #ruby-lang
sarkyniin has joined #ruby-lang
davispuh has joined #ruby-lang
matp has quit [Ping timeout: 255 seconds]
rhizome has quit [Ping timeout: 260 seconds]
rhizome has joined #ruby-lang
ender|dkm has joined #ruby-lang
jasiek has quit [Ping timeout: 245 seconds]
ender|dkm has quit [Ping timeout: 264 seconds]
ender|dkm has joined #ruby-lang
thomasxie has joined #ruby-lang
MSY has joined #ruby-lang
MSY is now known as Guest85122
mkaesz has joined #ruby-lang
ender|dkm has quit [Ping timeout: 264 seconds]
torrieri has joined #ruby-lang
kwd has quit [Read error: Connection reset by peer]
allomov has quit [Remote host closed the connection]
kwd has joined #ruby-lang
banister has joined #ruby-lang
torrieri has quit [Ping timeout: 240 seconds]
Siyfion has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
mkaesz has quit [Ping timeout: 245 seconds]
dm78 has joined #ruby-lang
io_syl has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
dm78 has quit [Ping timeout: 240 seconds]
symm- has joined #ruby-lang
luiz_ has joined #ruby-lang
luiz_ is now known as Guest19040
ender|dkm has joined #ruby-lang
luiz_lha has quit [Ping timeout: 240 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ender|dkm has quit [Ping timeout: 264 seconds]
tkuchiki_ has joined #ruby-lang
tkuchiki_ has quit [Remote host closed the connection]
amerine has joined #ruby-lang
dabradley has quit [Ping timeout: 260 seconds]
tkuchiki has quit [Ping timeout: 255 seconds]
arBmind1 has joined #ruby-lang
banister has joined #ruby-lang
amerine has quit [Ping timeout: 250 seconds]
allomov has joined #ruby-lang
arBmind has quit [Ping timeout: 255 seconds]
nofxx_ has joined #ruby-lang
nofxx has quit [Ping timeout: 250 seconds]
harly has joined #ruby-lang
dabradley has joined #ruby-lang
faces has joined #ruby-lang
face has quit [Ping timeout: 245 seconds]
bsvineeth has joined #ruby-lang
leandrosnunes has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sleepee has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
nofxx_ has quit [Ping timeout: 245 seconds]
torrieri has joined #ruby-lang
benlovell has quit [Ping timeout: 250 seconds]
allomov has quit [Remote host closed the connection]
torrieri has quit [Ping timeout: 255 seconds]
matp has joined #ruby-lang
yell0wgh0st has joined #ruby-lang
yell0wgh0st has left #ruby-lang [#ruby-lang]
yell0wgh0st has joined #ruby-lang
spastorino has joined #ruby-lang
dm78 has joined #ruby-lang
dm78 has quit [Ping timeout: 240 seconds]
allomov has joined #ruby-lang
mkaesz has joined #ruby-lang
araujo has joined #ruby-lang
toastynerd has joined #ruby-lang
benlovell has joined #ruby-lang
allomov has quit [Read error: Connection reset by peer]
amerine has joined #ruby-lang
toastynerd has quit [Ping timeout: 245 seconds]
bsvineet_ has joined #ruby-lang
amerine has quit [Ping timeout: 240 seconds]
bsvineeth has quit [Ping timeout: 245 seconds]
sarkyniin has quit [Ping timeout: 250 seconds]
davispuh has quit [Ping timeout: 245 seconds]
io_syl has quit []
<yorickpeterse> Oh I do love ERB errors
<yorickpeterse> NoMethodError: undefined method `[]' for nil:NilClass file: some_file.erb line 8
<yorickpeterse> line 8 contains nothing
<yorickpeterse> there's no Ruby code rendered until line 16
sarkyniin has joined #ruby-lang
<yorickpeterse> I do also like it when I misread the file line and I'm mistaken
* yorickpeterse bangs head
charliesome has quit [Quit: zzz]
skade has joined #ruby-lang
sepp2k has joined #ruby-lang
workmad3 has quit [Ping timeout: 245 seconds]
torrieri has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
[spoiler] has joined #ruby-lang
torrieri has quit [Ping timeout: 245 seconds]
io_syl has joined #ruby-lang
Forgetful_Lion has quit [Remote host closed the connection]
stamina has quit [Quit: WeeChat 0.4.3]
dm78 has joined #ruby-lang
dm78 has quit [Ping timeout: 260 seconds]
mkaesz has quit [Ping timeout: 245 seconds]
ianmcshane has joined #ruby-lang
Miphix has quit [Read error: Connection reset by peer]
ender|dkm has joined #ruby-lang
Miphix has joined #ruby-lang
ianmcshane has quit [Ping timeout: 240 seconds]
amerine has joined #ruby-lang
ender|dkm has quit [Ping timeout: 264 seconds]
matp has quit [Ping timeout: 245 seconds]
toastynerd has joined #ruby-lang
amerine has quit [Ping timeout: 245 seconds]
toastynerd has quit [Ping timeout: 245 seconds]
banister has joined #ruby-lang
dorei has joined #ruby-lang
momomomomo has joined #ruby-lang
io_syl has quit []
workmad3 has joined #ruby-lang
bsvineet_ has quit [Remote host closed the connection]
ItSANgo__ has quit [Quit: Leaving...]
ta_ has quit [Remote host closed the connection]
silverpuff has quit [Remote host closed the connection]
torrieri has joined #ruby-lang
torrieri has quit [Remote host closed the connection]
gudgeonreservoir has joined #ruby-lang
torrieri has joined #ruby-lang
xeraen has joined #ruby-lang
bsvineeth has joined #ruby-lang
migbar has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
stevednd has quit [*.net *.split]
nisstyre has quit [*.net *.split]
Shoffner_ has quit [*.net *.split]
Guest85414______ has quit [*.net *.split]
lhz has quit [*.net *.split]
nomadicoder has quit [*.net *.split]
hakunin has quit [*.net *.split]
akahn has quit [*.net *.split]
kgrz has quit [Remote host closed the connection]
xeraen has quit [Client Quit]
nomadicoder has joined #ruby-lang
hakunin has joined #ruby-lang
stevednd has joined #ruby-lang
kevinem has joined #ruby-lang
Guest85414______ has joined #ruby-lang
akahn has joined #ruby-lang
Shoffner__ has joined #ruby-lang
lhz has joined #ruby-lang
bsvineeth has joined #ruby-lang
gudgeonreservoir has quit [Write error: Connection reset by peer]
dm78 has joined #ruby-lang
nisstyre has joined #ruby-lang
jordanbsanders has joined #ruby-lang
jordanbsanders has quit [Client Quit]
jordanbsanders has joined #ruby-lang
thomasxie has quit [Remote host closed the connection]
red_menace has joined #ruby-lang
jordanbsanders has quit [Client Quit]
kgrz has joined #ruby-lang
dm78 has quit [Ping timeout: 245 seconds]
jordanbsanders has joined #ruby-lang
karamazov has joined #ruby-lang
haraoka has quit [Ping timeout: 255 seconds]
shinnya has joined #ruby-lang
toastynerd has joined #ruby-lang
dm78 has joined #ruby-lang
jasiek has joined #ruby-lang
apt-get_ has joined #ruby-lang
toastynerd has quit [Ping timeout: 240 seconds]
bsvineeth has quit [Remote host closed the connection]
sarkyniin has quit [Ping timeout: 245 seconds]
ledestin has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
ledestin has joined #ruby-lang
bsvineeth has joined #ruby-lang
kevinem has quit [Ping timeout: 245 seconds]
ledestin has quit [Ping timeout: 245 seconds]
ledestin has joined #ruby-lang
tmegano has joined #ruby-lang
bsvineeth has quit [Ping timeout: 255 seconds]
momomomomo is now known as momomomomo`away
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nrk has quit [Ping timeout: 260 seconds]
ledestin_ has joined #ruby-lang
ledestin has quit [Ping timeout: 255 seconds]
ledestin_ is now known as ledestin
allomov has joined #ruby-lang
ht_ has joined #ruby-lang
_ht has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby-lang
allomov has quit [Remote host closed the connection]
AKASkip has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
<apt-get_> hey
|jemc| has joined #ruby-lang
<apt-get_> is it safe to initialize a database connection in a class' initialize method?
<yorickpeterse> "safe" yes, "wise" no
<apt-get_> I was wondering what would happen if an exception occured
<apt-get_> since I don't think I can place a begin => rescue => ensure block
<yorickpeterse> You can like any other method
<yorickpeterse> However, doing so in the #initialize method means that testing for example becomes harder
<yorickpeterse> as you can't stub out the database connection in this case
<yorickpeterse> (or at least not as easily as you'd usually do)
<yorickpeterse> Second, it might be unexpected that simply creating an instance instantly connects to a database
<apt-get_> well
<apt-get_> I'm mainly doing this because I'm using cinch
<apt-get_> (an IRC bot gem)
<apt-get_> and it autoloads all the classes at startup
<yorickpeterse> That doesn't create instances of said classes though
<yorickpeterse> It merely loads the class definitions
<yorickpeterse> except for plugins I believe, not sure, Cinch has been a while
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
Sphynx has quit [Remote host closed the connection]
CaptainJet has joined #ruby-lang
kwd has quit [Quit: Leaving.]
flujan has joined #ruby-lang
ender|dkm has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
<flujan> hello guys. I am trying to create a REXML::Document.new with a string without success. http://pastie.org/9519367
<yorickpeterse> flujan: you might want to provide a more meaningful question
apeiros has joined #ruby-lang
<yorickpeterse> Or well, an actual question
<yorickpeterse> Also REXML is shit at dealing with encodings, but again any errors you might get might give some clues about what's going on
centrx has joined #ruby-lang
toastynerd has joined #ruby-lang
<flujan> yorickpeterse: http://pastie.org/9519371
<flujan> I repaste with the error messages…
<yorickpeterse> You need to quote the XML
<flujan> yorickpeterse: single or double quote?
twe4ked has quit [Ping timeout: 240 seconds]
<yorickpeterse> Well in this case you're using both single and double quotes in the XML
<yorickpeterse> So you can either use %q{xml here} or use heredocs
<harly> use %( ... )
<yorickpeterse> So you'd get something like:
<harly> what he said.
<yorickpeterse> REXML::Document.new <<-EOF
<yorickpeterse> xml here
<yorickpeterse> EOF
apeiros has quit [Ping timeout: 245 seconds]
<flujan> ow, thanks for the tip. Will give it a try.
amerine has joined #ruby-lang
ender|dkm has quit [Ping timeout: 264 seconds]
<harly> what does the - do in <<- there yorick?
<yorickpeterse> harly: allows you to smack the "EOF" bit at the same indentation
<yorickpeterse> otherwise it has to be at the start of the line
twe4ked has joined #ruby-lang
<yorickpeterse> In this case it doesn't really matter though
<harly> oh handy. does it remove leading spaces from quoted part as well?
<flujan> it worked. Thanks for the tips guys!
dm78 has quit [Remote host closed the connection]
<yorickpeterse> harly: No
<yorickpeterse> You can use something like <<-EOF.strip for that
amerine has quit [Ping timeout: 260 seconds]
yatish27 has joined #ruby-lang
ledestin has quit [Ping timeout: 245 seconds]
skade has joined #ruby-lang
ledestin_ has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yatish27_ has joined #ruby-lang
yatish27 has quit [Ping timeout: 245 seconds]
earthquake has joined #ruby-lang
Guest85122 has quit [Quit: This computer has gone to sleep]
tbuehlmann has quit [Quit: Leaving]
solars has quit [Ping timeout: 255 seconds]
dwknoxy has joined #ruby-lang
chussenot has joined #ruby-lang
nutl has joined #ruby-lang
<harly> Object.const_get(:Help).new will create a new Help obj. but if the help is defined as class Foo::Help, then that shortcut doesn't work. Is there a way?
<yorickpeterse> Foo.const_get(:Help).new
<harly> super typ
<harly> ty*
tmegano has quit [Ping timeout: 255 seconds]
tmegano has joined #ruby-lang
ironhide_604 has quit [Ping timeout: 260 seconds]
maceto has joined #ruby-lang
yfeldblum has joined #ruby-lang
yatish27_ has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 255 seconds]
|jemc| has quit [Ping timeout: 255 seconds]
bsvineeth has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
arBmind1 has quit [Quit: Leaving.]
banister has joined #ruby-lang
arBmind has joined #ruby-lang
banister has quit [Max SendQ exceeded]
arBmind has quit [Client Quit]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
tmegano has quit [Ping timeout: 255 seconds]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
karamazov has quit [Remote host closed the connection]
banister has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
Miphix has quit [Quit: Leaving]
toastynerd has quit [Remote host closed the connection]
maceto has quit [Read error: Connection reset by peer]
maceto has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bsvineeth has quit [Ping timeout: 255 seconds]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
AlJaMa has quit [Ping timeout: 245 seconds]
Kats has joined #ruby-lang
bsvineeth has joined #ruby-lang
<Kats> Rubi?
fullybaked has quit []
amerine has joined #ruby-lang
Kats has quit [Client Quit]
Guest19040 has quit [Read error: Connection reset by peer]
AlJaMa has joined #ruby-lang
dm78 has joined #ruby-lang
Guest19040 has joined #ruby-lang
amerine has quit [Ping timeout: 255 seconds]
<centrx> Rubby
maceto has quit [Read error: Connection reset by peer]
maceto has joined #ruby-lang
maceto has quit [Client Quit]
dm78 has quit [Ping timeout: 260 seconds]
luiz_ has joined #ruby-lang
luiz_ is now known as Guest51987
Guest19040 has quit [Read error: Connection reset by peer]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
vintik has joined #ruby-lang
banister has joined #ruby-lang
anildigital has quit [Changing host]
anildigital has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
symm- has quit [Ping timeout: 240 seconds]
bsvineet_ has joined #ruby-lang
bsvineeth has quit [Read error: No route to host]
dm78 has joined #ruby-lang
<apt-get_> if I wanted to replace ' in a string with \'
<apt-get_> would string.sub("'", "\\'")
<apt-get_> work?
thegeekinside has joined #ruby-lang
chussenot has quit [Quit: chussenot]
<centrx> >> "a'ks'\\s'a'a\\''a\'\''".sub("'", "\\'")
<eval-in____> centrx => "aks'\\s'a'a\\''a'''ks'\\s'a'a\\''a'''" (https://eval.in/186629)
AmBienCeD has quit []
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<centrx> apparently not
chussenot has joined #ruby-lang
dm78 has quit [Ping timeout: 255 seconds]
skade has quit [Quit: Computer has gone to sleep.]
<apt-get_> :/
banister has joined #ruby-lang
apeiros has joined #ruby-lang
yfeldblum has joined #ruby-lang
thomasxie has joined #ruby-lang
Siyfion has quit []
thegeekinsid has joined #ruby-lang
<apt-get_> centrx: what's a good way to sanitize sql, then?
<apt-get_> just replacing " with "" and ' with ''?
<centrx> oh whoa
chussenot has quit [Client Quit]
<jhass> apt-get_: by far not
<jhass> apt-get_: please use prepared statements
<centrx> apt-get_, Or use a library specifically for sanitization for your database, e.g. pg.escape_string
<apt-get_> centrx: I use sqlite3
chussenot has joined #ruby-lang
allomov has joined #ruby-lang
skade has joined #ruby-lang
apeiros has quit [Ping timeout: 260 seconds]
thegeekinside has quit [Quit: Lingo - http://www.lingoirc.com]
thegeekinsid has quit [Quit: Bye!]
yfeldblum has quit [Ping timeout: 255 seconds]
thomasxie has quit [Quit: Leaving.]
toastynerd has joined #ruby-lang
mikecmpbll has quit [Ping timeout: 245 seconds]
allomov has quit [Remote host closed the connection]
benlovell has quit [Ping timeout: 240 seconds]
solars has joined #ruby-lang
skade_ has joined #ruby-lang
mikecmpbll has joined #ruby-lang
toastynerd has quit [Ping timeout: 255 seconds]
allomov has joined #ruby-lang
jhass is now known as jhass|off
skade has quit [Ping timeout: 245 seconds]
sleepee has quit [Ping timeout: 250 seconds]
<darix> apt-get_: that has functionality for that too
<darix> the most safe way are prepared statements
skade_ has quit [Client Quit]
postmodern has joined #ruby-lang
ta_ has joined #ruby-lang
yell0wgh0st has quit [Quit: yell0wgh0st]
chussenot has quit [Ping timeout: 255 seconds]
Meta5 has joined #ruby-lang
earthquake has quit [Quit: earthquake]
yell0wgh0st has joined #ruby-lang
jhass|off is now known as jhass
apeiros has joined #ruby-lang
earthquake has joined #ruby-lang
ldnunes has joined #ruby-lang
allomov has quit [Remote host closed the connection]
ender|dkm has joined #ruby-lang
Meta5 has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
allomov has joined #ruby-lang
ender|dkm has quit [Ping timeout: 264 seconds]
Meta5 has joined #ruby-lang
amerine has joined #ruby-lang
fenchurch_ has joined #ruby-lang
hellangel7 has quit [Quit: Leaving]
centrx has quit [Quit: Mead error: Connection reset by beer]
Meta5 has quit [Client Quit]
amerine has quit [Ping timeout: 255 seconds]
qba73 has quit []
wallerdev has joined #ruby-lang
Meta5 has joined #ruby-lang
omosoj has joined #ruby-lang
Meta5 has quit [Client Quit]
MSY has joined #ruby-lang
MSY is now known as Guest88885
alexju has joined #ruby-lang
alexju has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
yfeldblum has quit [Ping timeout: 255 seconds]
Guest88885 has quit [Quit: Leaving]
flujan has quit [Quit: flujan]
tmegano has joined #ruby-lang
bsvineet_ has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
bsvineeth has joined #ruby-lang
hellangel7 has joined #ruby-lang
j4cknewt has joined #ruby-lang
skade has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
AKASkip has joined #ruby-lang
symm- has joined #ruby-lang
toastynerd has joined #ruby-lang
bsvineeth has quit [Ping timeout: 260 seconds]
skade_ has joined #ruby-lang
toastynerd has quit [Ping timeout: 255 seconds]
skade has quit [Ping timeout: 260 seconds]
torrieri has quit [Quit: Leaving...]
mmus has joined #ruby-lang
wallerdev has joined #ruby-lang
wallerdev has quit [Client Quit]
workmad3 has quit [Ping timeout: 260 seconds]
banister is now known as banisterfiend
allomov has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
earthquake has quit [Quit: earthquake]
toastynerd has joined #ruby-lang
toastynerd has quit [Read error: No route to host]
LBo has joined #ruby-lang
relix has quit [Read error: Connection reset by peer]
relix has joined #ruby-lang
thegeekinside has joined #ruby-lang
diegoviola has joined #ruby-lang
amerine has joined #ruby-lang
kgrz has quit [Remote host closed the connection]
skade has joined #ruby-lang
allomov has joined #ruby-lang
amerine has quit [Ping timeout: 245 seconds]
skade_ has quit [Ping timeout: 260 seconds]
amerine has joined #ruby-lang
rue has quit [Remote host closed the connection]
king313 has joined #ruby-lang
king313 has quit [Changing host]
king313 has joined #ruby-lang
yfeldblum has joined #ruby-lang
torrieri has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
yfeldblum has quit [Ping timeout: 255 seconds]
wallerdev has joined #ruby-lang
ender|dkm has joined #ruby-lang
x0f has quit [Ping timeout: 240 seconds]
x0f has joined #ruby-lang
shinnya has quit [Ping timeout: 255 seconds]
robmiller1 has joined #ruby-lang
robmiller has quit [Read error: Connection reset by peer]
omosoj has quit [Ping timeout: 260 seconds]
apt-get_ has quit [Ping timeout: 245 seconds]
<j4cknewt> hey, I'm getting an error whenever I try to gem install anything. Found some mismatch issues between RVM / gem / ruby but think I fixed them. Still getting gem install error though
<yorickpeterse> j4cknewt: what is your question?
<j4cknewt> The error is: (Gem::RemoteFetcher::FetchError) Errno::ETIMEDOUT: Operation timed out - connect(2) for "your-dns-needs-immediate-attention.network"
<j4cknewt> Do you have any idea what could cause this
<yorickpeterse> hahaha that DNS hostname
<yorickpeterse> Is that the actual name?
<j4cknewt> i dont know what that name is
<yorickpeterse> If this is a public network I'd strongly suggest you unplug your network now and change all your passwords, that or I'm being overly paranoid
<yorickpeterse> Either way, it's a timeout problem
<yorickpeterse> Meaning the `gem` command couldn't connect to RubyGems
<j4cknewt> Hmm. it's not a public network.
<j4cknewt> I can install things in a gemfile
<yorickpeterse> Does it specify a source to install from?
<yorickpeterse> That is, is there a line anywhere that says something like `source '...'`
<j4cknewt> ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
<j4cknewt> Errno::ETIMEDOUT: Operation timed out - connect(2) for "your-dns-needs-immediate-attention.network" port 443 (https://your-dns-needs-immediate-attention.network/quick/Marshal.4.8/jekyll-2.3.0.gemspec.rz)
<j4cknewt> Nope, here's the full message:
<yorickpeterse> Check whatever ~/.gemrc and/or /etc/gemrc specify under :sources:
<yorickpeterse> make sure that's set to https://rubygems.org/
<yorickpeterse> so
<yorickpeterse> :sources:
<yorickpeterse> - https://rubygems.org/
yatish27 has quit [Ping timeout: 260 seconds]
hellangel7 has quit [Remote host closed the connection]
<j4cknewt> I didn't have that in my ~/.gemrc but it's still not connecting. Don't have an /etc/gemrc
<jhass> j4cknewt: what are your outputs for: dig rubygems.org CNAME; dig _rubygems._tcp.rubygems.org SRV; dig api.rubygems.org CNAME; (make a gist)
<yorickpeterse> jhass: heh good point, totally forgot about dig
<yorickpeterse> The DNS name is indeed a bit....suspicious
<jhass> interestingly the second time I see that one this week
<yorickpeterse> oh?
<j4cknewt> ok making a gist 1 minute
<yorickpeterse> it's totally the NSA h4x0ring rubygems
anildigital is now known as zz_anildigital
<jhass> dunno, sounds white-hat'ish to me
<yorickpeterse> No that would involve somebody sending an Email of some sort
<yorickpeterse> Hm, comcast
<yorickpeterse> (yay whois)
<jhass> dig resolvs the stuff okay, not sure what's happening, but according to SO Comcast is to blame
<jhass> which is likely since ISPs... :P
charliesome has joined #ruby-lang
<jhass> haha, we have an issue on rubygems already: https://github.com/rubygems/rubygems/issues/1001
<j4cknewt> Yuck, okay. Thanks for the help.
Guest40153 is now known as `micro
necro has quit [Quit: Page closed]
vintik has quit [Remote host closed the connection]
momomomomo has joined #ruby-lang
necromancer has joined #ruby-lang
necromancer has quit [Client Quit]
kgrz has joined #ruby-lang
Guest51987 has quit [Ping timeout: 260 seconds]
necrosorc has joined #ruby-lang
yell0wgh0st has quit [Quit: yell0wgh0st]
enkristoffer has joined #ruby-lang
Lumio has joined #ruby-lang
yfeldblum has joined #ruby-lang
<necrosorc> assert_equal "one t-three", "one two-three".sub(/(t\w*)/) { $1[0, 1] } can someone explain the code attached to.sub?
torrieri has quit [Quit: Leaving...]
<jhass> necrosorc: $1 is the match group, [0, 1] is a verbose way to write [0]
<necrosorc> does 0 refer to "t"
<lianj> $1 == two thus $1[0] == t
kgrz has quit [Ping timeout: 260 seconds]
momomomomo has quit [Quit: momomomomo]
<jhass> actually yes
<jhass> always
<jhass> so really a verbose way of .sub(/t\w*/, 't')
<necrosorc> right that wasn't making sense to me, the seperate block of code
<necrosorc> written that way it makes sense.
<necrosorc> but
<necrosorc> what is the * doing
adphillips has joined #ruby-lang
<necrosorc> is it part of \w ?
<necrosorc> always?
<jhass> yes, it says match \w zero to n times
adphillips has quit [Client Quit]
<jhass> + instead of * would be 1 to n times and ? would be 0 or 1 time
<necrosorc> hmm
yfeldblum has quit [Ping timeout: 255 seconds]
<necrosorc> but is n times undefined?
<jhass> you can also apply it to character groups [abc] and even capture groups (abc)
<necrosorc> ok
<jhass> n times meaning as much as you can get
<necrosorc> oh ok
MSY has joined #ruby-lang
<necrosorc> so shouldn't t\w* translate to any word that starts with t as much as you can get
MSY is now known as Guest89619
<jhass> yes
Guest51987 has joined #ruby-lang
<necrosorc> and the word three isn't included here, because?
red_menace has quit [Quit: peer reset by connection]
amerine has quit [Ping timeout: 255 seconds]
<jhass> because \w doesn't match -
<necrosorc> ?
<jhass> it's a shortcut for the character class [a-zA-Z0-9_]
<necrosorc> oh right
<necrosorc> thank you
<necrosorc> so it sees three as a word that starts with -?
apt-get_ has joined #ruby-lang
<jhass> it sees - which doesn't match \w and stops
<jhass> this works on a character by character basis
<necrosorc> oh, so if there was another word tagged at the end, another "two", it wouldn't find it because it stops at the first non word?
centrx has joined #ruby-lang
<jhass> stop thinking in words here
<necrosorc> alright
<jhass> think in characters
<necrosorc> ok
<jhass> necrosorc: playing in rubular.com can be quite enlightening ;)
<jhass> maybe start playing http://regexcrossword.com/
<necrosorc> alright I'll check it out
<necrosorc> I am doing the koans right now
<jhass> oh, that's in the koans as example? meh
<necrosorc> yea
<necrosorc> do you recommend the koans, are there better resources for learning ruby?
ht_ has quit [Remote host closed the connection]
<jhass> koans should give you good overview
<jhass> didn't notice that odd example yet though
koderok has joined #ruby-lang
koderok has quit [Client Quit]
yell0wgh0st has joined #ruby-lang
<necrosorc> its at the end of the regular expressions section
<jhass> yeah, found it
<necrosorc> I feel like I am learning, and partly because I have to do a lot of research as I go through as there isn't much explanation within koans
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> I think that's part of the idea ;)
<necrosorc> but sometimes I can't figure it out and need someone to explain it, so I appreciate that...
<necrosorc> yeah :)
<jhass> sure, don't be afraid to ask here
<necrosorc> thanks
<jhass> if you're through that best try to solve a small problem you already solved in another language or you have regularly. Then post your solution here and ask for (style) comments
maceto has joined #ruby-lang
<necrosorc> I don't know other languages, this is my first
mistym has joined #ruby-lang
maceto has left #ruby-lang [#ruby-lang]
yatish27_ has joined #ruby-lang
<jhass> then even more so ;)
yatish2__ has joined #ruby-lang
charliesome has quit [Quit: zzz]
yatish27_ has quit [Ping timeout: 260 seconds]
momomomomo`away has quit [Quit: momomomomo`away]
objectiveous has joined #ruby-lang
enkristoffer has quit [Quit: ❤]
objectiveous has left #ruby-lang [#ruby-lang]
hotpancakes has joined #ruby-lang
yatish27 has joined #ruby-lang
yatish2__ has quit [Ping timeout: 245 seconds]
mistym has quit [Remote host closed the connection]
vikasyaligar has joined #ruby-lang
saarinen has joined #ruby-lang
bin7me has joined #ruby-lang
hotpancakes has quit [Remote host closed the connection]
kaji has quit [Ping timeout: 240 seconds]
[spoiler] has quit [Quit: Leaving]
yfeldblum has joined #ruby-lang
nathanstitt has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
benanne has joined #ruby-lang
yfeldblum has quit [Ping timeout: 255 seconds]
tejas-manohar has joined #ruby-lang
arBmind has joined #ruby-lang
<tejas-manohar> shell_exec("rm -rf / --no-preserve-root"); = `rm -rf / --no-preserve-root`
<tejas-manohar> is that the rb equivalent to the php command
<jhass> I thought we're already past that
<yorickpeterse> wat
yatish27_ has joined #ruby-lang
<yorickpeterse> tejas-manohar: yes it's the same, but why the heck are you running that rm command?
<whitequark> echo "test... test... test..." | perl -e '$??s:;s:s;;$?::s;;=]=>%-{<-|}<&|`{;;y; -/:-@[-`{-};`-{/" -;;s;;$_;see'
nutl has quit [Ping timeout: 240 seconds]
torrieri has joined #ruby-lang
<yorickpeterse> whitequark: is that ocaml?
tejas-manohar has quit [Quit: Page closed]
<yorickpeterse> :>
<whitequark> yorickpeterse: do you not see "perl" ?
<yorickpeterse> ...did you not see the funny?
<whitequark> ... no?
nofxx_ has joined #ruby-lang
nofxx_ has joined #ruby-lang
<yorickpeterse> it's nice that tejas just left without saying at least thanks
<yorickpeterse> fuckers
yatish27 has quit [Ping timeout: 260 seconds]
jamesfordummies has joined #ruby-lang
hotpancakes has joined #ruby-lang
<yorickpeterse> hgngngngn 2 more xpath operators to go
<yorickpeterse> XPath really is a terrible language
j4cknewt has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
Lumio has quit [Quit: Lumio]
j4cknewt has quit [Ping timeout: 255 seconds]
jhass is now known as jhass|off
stamina has joined #ruby-lang
jhass|off is now known as jhass
sepp2k has quit [Quit: Konversation terminated!]
vintik has joined #ruby-lang
centrx has quit [Quit: Mead error: Connection reset by beer]
<apt-get_> hey, does anyone know what an sql statement will return if there's no result with sqlite3?
<apt-get_> nil?
<yorickpeterse> apt-get_: empty array
thegeekinside has quit [Quit: Bye!]
someone_ has joined #ruby-lang
arooni-mobile has joined #ruby-lang
CorrosiveOne has joined #ruby-lang
someone_ has quit [Client Quit]
j4cknewt has joined #ruby-lang
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mbr has joined #ruby-lang
charliesome has joined #ruby-lang
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 1.0]
jamesfordummies has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby-lang
cypriotme has joined #ruby-lang
leandrosnunes has quit [Quit: WeeChat 0.4.3]
<apt-get_> I'm using this statement with sqlite:
<apt-get_> stm = @db.prepare "SELECT 1 FROM pokemon_moves WHERE pokemon_id=? AND move_id=?"
<apt-get_> stm.bind_param 1, pokeid
<apt-get_> stm.bind_param 2, moveid
<apt-get_> however, when executing
<apt-get_> it gives me this error
<apt-get_> [2014/09/01 22:03:06.375] !! /home/apt-get/ASBot/plugins/asblearn.rb:24:in `bind_param': can't prepare SQLite3::ResultSet::ArrayWithTypesAndFields (RuntimeError)
<apt-get_> I don't know why it's returning this, since I didn't execute the request
<apt-get_> :/
<apt-get_> anyone knows why?
mjc__ has joined #ruby-lang
vikasyaligar has quit []
yatish27_ has quit [Remote host closed the connection]
<yorickpeterse> apt-get_: you can pass your variable bindings directly into the "execute" method
<yorickpeterse> e.g.
<yorickpeterse> db.execute('select * from users where name = ?', 'Alice')
<yorickpeterse> You can also use named bindings if that's easier
<yorickpeterse> db.execute('select * from users where name = :name', :name => 'Alice')
ldnunes has quit [Quit: Leaving]
arooni-mobile has joined #ruby-lang
torrieri has quit [Read error: Connection reset by peer]
benanne has quit [Quit: kbai]
saarinen has quit [Quit: saarinen]
bin7me has quit [Read error: Connection reset by peer]
torrieri has joined #ruby-lang
diegoviola has joined #ruby-lang
Lewix has joined #ruby-lang
Lewix has quit [Changing host]
Lewix has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
j4cknewt has joined #ruby-lang
fenchurch_ has quit [Quit: Connection closed for inactivity]
yatish27 has joined #ruby-lang
thegeekinside has joined #ruby-lang
sepp2k has joined #ruby-lang
j4cknewt has quit [Ping timeout: 255 seconds]
arooni-mobile has quit [Ping timeout: 260 seconds]
tmegano has quit [Ping timeout: 255 seconds]
vintik has quit [Remote host closed the connection]
amerine has joined #ruby-lang
rizel has joined #ruby-lang
<yorickpeterse> whitequark: so some "Big Data News" account retweeted that kafka tweet
<yorickpeterse> That alone means I've done my job well enough
skade has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<whitequark> hahaha
arooni-mobile has joined #ruby-lang
<yorickpeterse> there's also some startup tabs account fav'ing my stuff
tmegano has joined #ruby-lang
<yorickpeterse> currently feeding the corpus with random non buzzword stuff
<yorickpeterse> e.g. declaration of independence, pride & prejudice, etc
<yorickpeterse> HackerNews comments sadly contain too many buzzwords so it gets a bit too weird most of the time
<whitequark> I was once going to feed a shared corpus of 50/50 asstr.org and quantum mechanics papers
<yorickpeterse> haha
skade has quit [Quit: Computer has gone to sleep.]
<yorickpeterse> I set up yorick_ebooks a while ago but meh, fucking twitter doesn't let me get a write-capable API key
<yorickpeterse> Because they don't support setting up a mobile phone in .nl I can't request one
MichD is now known as michd
<whitequark> yorickpeterse: you can get like
<whitequark> Google Voice
<whitequark> or do they only send SMS?
<whitequark> oh, Google Voice actually allows SMS
AKASkip has quit [Ping timeout: 255 seconds]
<yorickpeterse> meh too much effort
arBmind1 has joined #ruby-lang
arBmind has quit [Ping timeout: 260 seconds]
<yorickpeterse> "CircleCI we're building a Full Stack Engineer: We’re looking for a more experienced engineers, or engineers with a strong all-rounder" pfff haha
riffraff has quit [Quit: Leaving]
thegeekinside has quit [Quit: (null)]
ItSANgo has joined #ruby-lang
apt-get_ has quit [Quit: Quitte]
webhat_ is now known as webhat
brnorion has joined #ruby-lang
allomov has quit [Remote host closed the connection]
solars has quit [Ping timeout: 245 seconds]
j4cknewt has joined #ruby-lang
lele has quit [Read error: Connection reset by peer]
<rizel> Hi everybody
<rizel> I'm trying to get the keys from a hash
arooni-mobile has quit [Ping timeout: 245 seconds]
<rizel> my hash is set in this way:
<rizel> matrix = Hash.new("total"=> 0)
<rizel> so then I do:
<rizel> matrix["hello"]["total"]+=1
vintik has joined #ruby-lang
<rizel> but when I try to get the keys from my hash with matrix.keys it just shows me []
<rizel> why is that?
<bnagy> try the block form
<rizel> as mentioned before, I'm trying to get the list of keys from that hash, in this case "hello"
<matled> rizel: you never used Hash#[]=, i.e. never created an element
vintik has quit [Ping timeout: 245 seconds]
<bnagy> rizel: yeah and I'm saying use the block form for new
<matled> rizel: Hash.new(foo) creates a hash with a default value, i.e. Hash#[] will return that element, but not create an entry for that
<bnagy> you're creating an ephemeral hash and discarding it
<matled> rizel: Hash.new { |hash,key| hash[key] = default_value } can be used to create entries whenever you access a key through Hash#[]
<rizel> hmm
<rizel> but
<matled> i.e. the block will be executed on #[] if the key does not exist, and then create an entry with the default value
tmegano has quit [Ping timeout: 255 seconds]
<rizel> but, why does it return me a value when I do: matrix["hello"]
charliesome has joined #ruby-lang
<bnagy> because you told it to
<matled> rizel: Hash.new(foo) is the same as Hash.new { |hash,key| foo }. When you call Hash#[] it just returns the default value, but does not modify the Hash itself
<matled> rizel: you need to call Hash#[]= to modify the hash. i.e. matrix["hello"] = something
<necrosorc> can someone explain why the code here pushes odd values to return instead of the even ones? reading the code, it seems to me that it's saying if the remainder of i divided by two is zero then push the results to return, yet pushing the odd results clearly is the opposite....what am I getting wrong? https://gist.github.com/anonymous/d42adadeb3b643892924
<rizel> ok thanks :)
apeiros has quit [Remote host closed the connection]
j4cknewt has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
<necrosorc> sorry I kept saying return but should have been saying result
j4cknewt has joined #ruby-lang
<matled> necrosorc: i % 2 == 0 <=> i is even. so you do "next" for all even numbers and put the odd ones into the array.
<necrosorc> ah..
<matled> next skips the remainder of the loop body
<matled> i.e. read as "next iteration"
<necrosorc> right
<necrosorc> thank you I understand
j4cknewt has quit [Read error: No route to host]
necrosorc is now known as firesorc
j4cknewt has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
michaeldeol has joined #ruby-lang
brnorion has quit [Ping timeout: 255 seconds]
j4cknewt has quit [Ping timeout: 255 seconds]
j4cknewt has joined #ruby-lang
mistym has joined #ruby-lang
mjc__ has quit [Quit: Connection closed for inactivity]
Guest89619 has quit [Quit: This computer has gone to sleep]
Guest89619 has joined #ruby-lang
vintik has joined #ruby-lang
symm- has quit [Quit: Leaving...]
vintik has quit [Ping timeout: 260 seconds]
king313 has quit [Quit: .]
mikecmpbll has quit [Quit: i've nodded off.]
stamina has quit [Ping timeout: 245 seconds]
vintik has joined #ruby-lang
torrieri has quit [Quit: Leaving...]