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
Meta5 has joined #ruby-lang
ari-_-e has quit [Ping timeout: 255 seconds]
brothmars has joined #ruby-lang
ddv has quit [Ping timeout: 260 seconds]
sepp2k1 has joined #ruby-lang
toastynerd has joined #ruby-lang
nofxx has joined #ruby-lang
nofxx has joined #ruby-lang
sepp2k has quit [Ping timeout: 264 seconds]
sarkyniin has quit [Ping timeout: 245 seconds]
seamon has joined #ruby-lang
ddv has joined #ruby-lang
karamazov has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
earthquake has joined #ruby-lang
_sillymarkets has joined #ruby-lang
<_sillymarkets> What's the best way to convert a csv file to a xlsx in ruby?
ari-_-e has joined #ruby-lang
lcdhoffman has joined #ruby-lang
<nofxx> _sillymarkets, still believe the best is keep csv, as any spreadsheet app has import capabilities
<nofxx> but, trying to remember a nice gem
malconis has joined #ruby-lang
malconis has quit [Client Quit]
<nofxx> _sillymarkets, ah, was reading that I did. check github for "spreadsheet"
<_sillymarkets> spreadsheet just manipulates, it doesn't convert, I don't believe
<mark06> _sillymarkets: any reason not able to use "save as"?
turtle_monster has joined #ruby-lang
<_sillymarkets> its a script that needs to process data, its automated
stamina has quit [Ping timeout: 240 seconds]
lcdhoffman has quit [Quit: lcdhoffman]
nathanstitt has joined #ruby-lang
amerine has quit [Ping timeout: 245 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
sepp2k1 has quit [Read error: Connection reset by peer]
yubrew has joined #ruby-lang
jhass is now known as jhass|off
toastynerd has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 240 seconds]
toastynerd has joined #ruby-lang
amerine has joined #ruby-lang
brixen has quit [Excess Flood]
<imperator> no, but you could parse the csv and generate the xls yourself
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brixen has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
toastynerd has quit [Ping timeout: 240 seconds]
seamon has quit [Quit: Zzzzzzz]
toastynerd has joined #ruby-lang
hahuang65 has quit [Ping timeout: 272 seconds]
kgrz has joined #ruby-lang
marr has quit []
outoftime has joined #ruby-lang
outoftime has quit [Client Quit]
amsi has quit [Quit: Leaving]
kgrz has quit [Ping timeout: 264 seconds]
bitrot has joined #ruby-lang
<_sillymarkets> https://gist.github.com/sillymarketing/fd448c91c55a1ac383aa | Why does this fail with Undefined Method '*' ?
<_sillymarkets> line 9
tkuchiki has joined #ruby-lang
<wallerdev> should give more info in the error message
<wallerdev> but most likely row[0] isnt an object that responds to *
<imperator> means row[0] aint a number prolly
djbkd has joined #ruby-lang
<_sillymarkets> Like the value in that row? shouldnt it that point to the first row, how can that NOT be a number?
sdouglas has joined #ruby-lang
<AmBienCeD> why dont you inspect it to be sure
<wallerdev> lolll
<wallerdev> so confident that it must be a number
mistym has quit [Remote host closed the connection]
hellangel7 has joined #ruby-lang
davispuh has quit [Ping timeout: 245 seconds]
banisterfiend has quit [Ping timeout: 240 seconds]
dabradley has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby-lang
Miphix has joined #ruby-lang
hellangel7 has quit [Remote host closed the connection]
amclain has joined #ruby-lang
brnorion_ has joined #ruby-lang
shinnya has quit [Ping timeout: 260 seconds]
toastynerd has quit [Remote host closed the connection]
dabradley has joined #ruby-lang
tkuchiki_ has joined #ruby-lang
brnorion_ has quit []
Benstr_ has joined #ruby-lang
<freedrull> is it possible to get the list of modules which have been prepended to a module?
RobertBirnie has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Ping timeout: 250 seconds]
<freedrull> included_modules?
mistym has joined #ruby-lang
Benstr has quit [Ping timeout: 240 seconds]
<waxjar> >> Module.new.tap { |m| m.prepend Enumerable }.included_modules
<eval-in> waxjar => [Enumerable] (https://eval.in/181863)
Benstr_ has quit [Ping timeout: 260 seconds]
<waxjar> yup :p
yubrew has joined #ruby-lang
<freedrull> thanks
yubrew has quit [Ping timeout: 260 seconds]
banister has joined #ruby-lang
Lewix has joined #ruby-lang
jxie has joined #ruby-lang
toastynerd has joined #ruby-lang
Benstr_ has joined #ruby-lang
djbkd has quit []
turtle_monster has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
tkuchiki_ has quit [Remote host closed the connection]
bitrot has quit [Remote host closed the connection]
banister has quit [Ping timeout: 246 seconds]
tkuchiki has joined #ruby-lang
tectonic has joined #ruby-lang
jbardin has quit [Quit: jbardin]
sdouglas has quit [Remote host closed the connection]
sdouglas has joined #ruby-lang
yatish27 has joined #ruby-lang
havenwood has quit []
nofxx_ has joined #ruby-lang
nofxx_ has quit [Changing host]
nofxx_ has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
nofxx has quit [Ping timeout: 240 seconds]
dorei has quit []
|jemc| has quit [Ping timeout: 255 seconds]
abhi_rsd_ has quit [Remote host closed the connection]
emmesswhy has joined #ruby-lang
yell0wgh0st has quit [Quit: yell0wgh0st]
lcdhoffman has joined #ruby-lang
lcdhoffman has quit [Client Quit]
nathanstitt has quit [Quit: I growing sleepy]
Meta5_ has joined #ruby-lang
turtle_monster has joined #ruby-lang
jimbach has quit [Remote host closed the connection]
Meta5_ has quit [Client Quit]
cmisenas has joined #ruby-lang
havenwood has joined #ruby-lang
jxie has quit [Read error: No route to host]
jimbach has joined #ruby-lang
yubrew has joined #ruby-lang
nofxx_ has quit [Ping timeout: 240 seconds]
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
yubrew has quit [Ping timeout: 264 seconds]
|jemc| has joined #ruby-lang
karamazov has joined #ruby-lang
lsegal has joined #ruby-lang
yatish27 has quit []
torrieri has joined #ruby-lang
wallerdev has joined #ruby-lang
havenwood has quit []
jxie has joined #ruby-lang
cmisenas has quit [Quit: cmisenas]
amerine has quit [Ping timeout: 240 seconds]
cleopatra has quit [Ping timeout: 245 seconds]
michaeldeol has joined #ruby-lang
jimbach has quit [Remote host closed the connection]
jimbach has joined #ruby-lang
imperator has quit [Quit: Valete!]
jimbach has quit [Ping timeout: 240 seconds]
pr0ton has joined #ruby-lang
Meta5 has quit [Quit: Meta5]
brothmars has quit [Ping timeout: 272 seconds]
yubrew has joined #ruby-lang
dwknoxy has quit [Quit: Textual IRC Client: www.textualapp.com]
thomasxie has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 240 seconds]
torrieri has quit [Quit: Leaving...]
yubrew has quit [Ping timeout: 255 seconds]
earthquake has quit [Quit: earthquake]
zz_anildigital is now known as anildigital
earthquake has joined #ruby-lang
gix has quit [Ping timeout: 255 seconds]
gix has joined #ruby-lang
alexju has joined #ruby-lang
nofxx_ has joined #ruby-lang
torrieri has joined #ruby-lang
kgrz has joined #ruby-lang
yell0wgh0st has joined #ruby-lang
ta_ has joined #ruby-lang
abhi_rsd_ has joined #ruby-lang
yell0wgh0st has quit [Ping timeout: 250 seconds]
ta has quit [Ping timeout: 240 seconds]
anildigital is now known as zz_anildigital
jamesfordummies has joined #ruby-lang
amerine has joined #ruby-lang
amerine has quit [Ping timeout: 246 seconds]
Meta5 has joined #ruby-lang
jxie has quit [Ping timeout: 250 seconds]
Meta5 has quit [Client Quit]
dm78 has joined #ruby-lang
yubrew has joined #ruby-lang
koderok has joined #ruby-lang
djbkd has joined #ruby-lang
koderok has quit [Client Quit]
setmeaway has joined #ruby-lang
yubrew has quit [Ping timeout: 255 seconds]
ledestin has joined #ruby-lang
earthquake has quit [Quit: earthquake]
karamazov has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
yfeldblu_ has quit [Ping timeout: 245 seconds]
symm- has joined #ruby-lang
brothmars has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby-lang
setmeaway has quit [Quit: Leaving]
AKASkip has joined #ruby-lang
bsvineeth has joined #ruby-lang
setmeaway has joined #ruby-lang
rubyshop has joined #ruby-lang
rubyshop has quit [Remote host closed the connection]
tectonic has quit []
turtle_monster is now known as j4cknewton
torrieri has quit [Quit: Leaving...]
DivineEntity has joined #ruby-lang
j4cknewton is now known as j4cknewt
j4cknewt has left #ruby-lang [#ruby-lang]
j4ck has joined #ruby-lang
j4ck is now known as j4cknewt
yfeldblum has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
amerine has joined #ruby-lang
michaeldeol has joined #ruby-lang
mistym has joined #ruby-lang
Meta5 has joined #ruby-lang
AKASkip has quit [Ping timeout: 245 seconds]
apeiros has quit [Ping timeout: 246 seconds]
amerine has quit [Ping timeout: 272 seconds]
saarinen has joined #ruby-lang
futilegames has joined #ruby-lang
dm78 has quit [Remote host closed the connection]
yubrew has joined #ruby-lang
yfeldblum has joined #ruby-lang
yubrew has quit [Ping timeout: 246 seconds]
|jemc| has quit [Ping timeout: 264 seconds]
pr0ton has quit [Quit: pr0ton]
kgrz has quit [Remote host closed the connection]
kyb3r_ has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
lele|w has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby-lang
tectonic has joined #ruby-lang
abhi_rsd_ has quit [Ping timeout: 272 seconds]
setmeaway has quit [Quit: Leaving]
apeiros has joined #ruby-lang
toastynerd has joined #ruby-lang
_ht has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
lele|w has joined #ruby-lang
abhi_rsd has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
Lewix has quit [Read error: Connection reset by peer]
Lewix has joined #ruby-lang
relix has joined #ruby-lang
madzhuga has joined #ruby-lang
AKASkip has joined #ruby-lang
toastynerd has joined #ruby-lang
djbkd has quit [Quit: My people need me...]
Benstr_ has quit [Quit: Computer has gone to sleep.]
Benstr_ has joined #ruby-lang
Benstr__ has joined #ruby-lang
Benstr_ has quit [Ping timeout: 240 seconds]
Sgeo has quit [Read error: Connection reset by peer]
amerine has joined #ruby-lang
Sgeo has joined #ruby-lang
thomasxie has quit [Remote host closed the connection]
thomasxie has joined #ruby-lang
kgrz has joined #ruby-lang
kgrz has quit [Remote host closed the connection]
fusillicode has joined #ruby-lang
FarlaTux has joined #ruby-lang
amerine has quit [Ping timeout: 245 seconds]
kgrz has joined #ruby-lang
rahul_j has joined #ruby-lang
yubrew has joined #ruby-lang
[spoiler] has joined #ruby-lang
Dev-Gitter has joined #ruby-lang
yubrew has quit [Ping timeout: 246 seconds]
jxie has joined #ruby-lang
Benstr__ has quit [Ping timeout: 240 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
toastynerd has quit [Remote host closed the connection]
pr0ton has joined #ruby-lang
fusillicode has quit [Ping timeout: 245 seconds]
sentor has quit [Remote host closed the connection]
michaeldeol has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
solars has joined #ruby-lang
kwd has joined #ruby-lang
amclain has quit [Quit: Leaving]
saarinen has quit [Quit: saarinen]
fusillicode has joined #ruby-lang
Benstr__ has joined #ruby-lang
AmBienCeD has quit []
abhi_rsd has quit [Ping timeout: 264 seconds]
AKASkip has quit [Ping timeout: 240 seconds]
symm- has quit [Ping timeout: 245 seconds]
Benstr__ has quit [Ping timeout: 240 seconds]
banister has joined #ruby-lang
thomasxie has quit [Read error: Connection reset by peer]
<mark06> _sillymarkets: is libreoffice installed? it can convert from command line
solars has quit [Ping timeout: 240 seconds]
futilegames has quit [Read error: Connection reset by peer]
banister has quit [Ping timeout: 240 seconds]
futilegames has joined #ruby-lang
arBmind has joined #ruby-lang
mistym has quit [Remote host closed the connection]
FarlaTux has quit [Changing host]
FarlaTux has joined #ruby-lang
chouhoul_ has quit [Read error: Connection reset by peer]
yubrew has joined #ruby-lang
chouhoulis has joined #ruby-lang
amerine has joined #ruby-lang
emmesswhy has quit [Quit: This computer has gone to sleep]
j4cknewt has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
solars has joined #ruby-lang
mkaesz has joined #ruby-lang
yubrew has quit [Ping timeout: 264 seconds]
kgrz has quit []
amerine has quit [Ping timeout: 272 seconds]
j4cknewt has quit [Ping timeout: 255 seconds]
jxie has quit [Ping timeout: 260 seconds]
thomasxie has joined #ruby-lang
CaptainJet has quit []
rahul_j_ has joined #ruby-lang
rahul_j has quit [Ping timeout: 260 seconds]
rahul_j_ is now known as rahul_j
jxie has joined #ruby-lang
alexju has quit [Remote host closed the connection]
pr0ton has quit [Quit: pr0ton]
jamesfordummies has quit [Remote host closed the connection]
michd is now known as MichD
futilegames has quit [Quit: futilegames]
j4cknewt has joined #ruby-lang
brothmars has quit [Ping timeout: 245 seconds]
sMecKs has quit [Read error: Connection reset by peer]
tbuehlmann has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
Benstr__ has joined #ruby-lang
madzhuga has quit [Quit: Lingo - http://www.lingoirc.com]
AKASkip has joined #ruby-lang
j4cknewt has quit [Ping timeout: 255 seconds]
Benstr__ has quit [Ping timeout: 240 seconds]
Forgetful_Lion has joined #ruby-lang
j4cknewt has joined #ruby-lang
yubrew has joined #ruby-lang
yubrew has quit [Ping timeout: 255 seconds]
kgrz has joined #ruby-lang
yell0wgh0st has joined #ruby-lang
jxie_ has joined #ruby-lang
amerine has joined #ruby-lang
jxie has quit [Read error: Connection reset by peer]
kgrz has quit [Remote host closed the connection]
amerine has quit [Ping timeout: 272 seconds]
kgrz has joined #ruby-lang
tectonic has quit []
mikecmpbll has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yell0wgh0st has quit [Quit: yell0wgh0st]
adphillips has joined #ruby-lang
adphillips has quit [Remote host closed the connection]
michaeldeol has joined #ruby-lang
futilegames has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
jhass|off is now known as jhass
Sphynx has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
skade has joined #ruby-lang
mark06 has left #ruby-lang [#ruby-lang]
FarlaTux has quit [Ping timeout: 250 seconds]
Dev-Gitter has quit [Ping timeout: 240 seconds]
burnwurst has quit []
Benstr__ has joined #ruby-lang
yfeldblum has joined #ruby-lang
jxie_ has quit [Ping timeout: 246 seconds]
Benstr__ has quit [Ping timeout: 240 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yell0wgh0st has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
yubrew has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yubrew has quit [Ping timeout: 255 seconds]
workmad3 has joined #ruby-lang
relix has joined #ruby-lang
<yorickpeterse> morning kids
<workmad3> morning, Mr. Yorick
amerine has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
banister has joined #ruby-lang
<yorickpeterse> You make me sound old
amerine has quit [Ping timeout: 260 seconds]
<workmad3> ah, I was aiming more for making you sound like a teacher :P
<yorickpeterse> Hm, "Headmaster Peterse" does have a nice ring to it
<workmad3> you could always see if you could get 'headmaster' as a job title
<yorickpeterse> My current self proclaimed title is "Yak shaver & code plumber"
<yorickpeterse> Doubt I can get that on my contract though
<workmad3> :)
mbj has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
Newbie0086 has joined #ruby-lang
hellangel7 has joined #ruby-lang
j4cknewt has quit [Ping timeout: 245 seconds]
<yorickpeterse> matti: nfi what she's saying but the music is nice
<yorickpeterse> some earlier stuff in the playlist is also pretty good
Newbie0086 has quit [Client Quit]
<matti> yorickpeterse: Lookin'
<matti> ;]
tkuchiki_ has joined #ruby-lang
<yorickpeterse> http://youtu.be/sZxO_nNJKag?list=RD8wL5gVn_rzg alsdjaldalsjblargh this is good stuff
yfeldblum has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 260 seconds]
Benstr__ has joined #ruby-lang
benlovell has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
Benstr__ has quit [Ping timeout: 240 seconds]
yubrew has joined #ruby-lang
yubrew has quit [Ping timeout: 255 seconds]
spastorino has quit [Quit: Connection closed for inactivity]
benlovell has quit [Ping timeout: 245 seconds]
marr has joined #ruby-lang
benlovell has joined #ruby-lang
Miphix has quit [Quit: Leaving]
<Sphynx> im at work... coding in php, but all i really want is to code in ruby :D
amerine has joined #ruby-lang
<zenspider> Sphynx: you should use phuby!
<yorickpeterse> ....that's a thing?
<yorickpeterse> oh god, it actually is
Dev-Gitter has joined #ruby-lang
FarlaTux has joined #ruby-lang
<workmad3> yorickpeterse: phuby on phails... pronounced 'poo-be on fails'
<Sphynx> but then i''m coding php in ruby lol
amerine has quit [Ping timeout: 240 seconds]
stamina has joined #ruby-lang
tkuchiki_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
Sphynx has quit [Remote host closed the connection]
<zenspider> if you want, you can code rails in xml. that's like php, right?
TheMoonMaster has quit [Ping timeout: 245 seconds]
<nofxx_> or you can code in ruby and use only $globals , use curly everywhere and grep -r should never find aline with 'class'
<nofxx_> yr boss might pass that unnoticed
kyb3r_ has quit [Read error: Connection reset by peer]
<yorickpeterse> shell_exec('ruby some_script.rb') even easier
<nofxx_> haha
<nofxx_> rm -rf `which php`; ln -s `which ruby` /usr/bin/php
<nofxx_> some problems are born are solved
<nofxx_> already*
symm- has joined #ruby-lang
TheMoonMaster has joined #ruby-lang
marr has quit [Ping timeout: 250 seconds]
symm- has quit [Ping timeout: 260 seconds]
benlovell has quit [Ping timeout: 260 seconds]
benlovell has joined #ruby-lang
yubrew has joined #ruby-lang
Benstr__ has joined #ruby-lang
vieq has quit [Ping timeout: 245 seconds]
yubrew has quit [Ping timeout: 245 seconds]
Benstr__ has quit [Ping timeout: 250 seconds]
tkuchiki_ has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
vieq has joined #ruby-lang
tkuchiki has quit [Ping timeout: 240 seconds]
tkuchiki_ has quit [Ping timeout: 250 seconds]
cantonic has quit [Quit: cantonic]
yfeldblum has joined #ruby-lang
yell0wgh0st has quit [Quit: yell0wgh0st]
kwd has quit [Quit: Sleeping now. ZZZzzz…]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
yell0wgh0st has joined #ruby-lang
abhi_rsd_ has joined #ruby-lang
sarkyniin has joined #ruby-lang
Benstr__ has joined #ruby-lang
workmad3 has quit [Quit: Lost terminal]
workmad3 has joined #ruby-lang
Sphynx has joined #ruby-lang
ecnalyr has joined #ruby-lang
Miphix has joined #ruby-lang
Miphix has quit [Ping timeout: 260 seconds]
Miphix has joined #ruby-lang
yubrew has joined #ruby-lang
marr has joined #ruby-lang
abhi_rsd_ has quit [Ping timeout: 240 seconds]
ldnunes has joined #ruby-lang
yubrew has quit [Ping timeout: 260 seconds]
Missphoenix has joined #ruby-lang
benlovell has quit [Ping timeout: 255 seconds]
thomasxie has quit [Quit: Leaving.]
Miphix has quit [Ping timeout: 245 seconds]
leandrosnunes has joined #ruby-lang
dorei has joined #ruby-lang
sepp2k has joined #ruby-lang
tbuehlmann has quit [Quit: Leaving]
futilegames has quit [Quit: futilegames]
adphillips has joined #ruby-lang
rsl has quit [Ping timeout: 240 seconds]
adphillips has quit [Client Quit]
skade has joined #ruby-lang
Sgeo has quit [Read error: Connection reset by peer]
TheMoonMaster has quit [Ping timeout: 255 seconds]
matp has quit [Quit: ZZZzzz…]
amerine has joined #ruby-lang
TheMoonMaster has joined #ruby-lang
ecnalyr has quit [Quit: Macbook has gone to sleep. . .]
amerine has quit [Ping timeout: 260 seconds]
karamazov has joined #ruby-lang
kohgpat has joined #ruby-lang
jimbach has joined #ruby-lang
dwknoxy has joined #ruby-lang
yubrew has joined #ruby-lang
DEac- has quit [Read error: Connection reset by peer]
DEac- has joined #ruby-lang
yubrew has quit [Ping timeout: 255 seconds]
kgrz has quit []
kgrz has joined #ruby-lang
AKASkip1 has joined #ruby-lang
koos303 has joined #ruby-lang
AKASkip has quit [Ping timeout: 250 seconds]
symm- has joined #ruby-lang
workmad3 has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby-lang
kgrz has quit [Remote host closed the connection]
benlovell has joined #ruby-lang
ddv has quit [Changing host]
ddv has joined #ruby-lang
davispuh has joined #ruby-lang
diegoviola has joined #ruby-lang
futilegames has joined #ruby-lang
qba73 has joined #ruby-lang
workmad3 has joined #ruby-lang
earthquake has joined #ruby-lang
malconis has joined #ruby-lang
benlovell has quit [Ping timeout: 272 seconds]
yubrew has joined #ruby-lang
alexju has joined #ruby-lang
yatish27 has joined #ruby-lang
yubrew has quit [Ping timeout: 240 seconds]
arooni-mobile has joined #ruby-lang
jgpawletko has joined #ruby-lang
kgrz has joined #ruby-lang
[spoiler] has quit [Quit: Leaving]
pglombardo has joined #ruby-lang
cmisenas has joined #ruby-lang
matp has joined #ruby-lang
stef_204 has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 245 seconds]
j4cknewt has joined #ruby-lang
yatish27_ has joined #ruby-lang
yatish27 has quit [Ping timeout: 250 seconds]
Forgetful_Lion has quit [Remote host closed the connection]
benlovell has joined #ruby-lang
foucist has joined #ruby-lang
<foucist> SITE_MEMBER_COUNTS.fetch(self.id, Profile.count(:site_id => self.id))
<foucist> any chance ruby is running Profile.count even if the fetch doesn't fail ?
momomomomo has joined #ruby-lang
<maloik_> yep, safe bet ;)
<maloik_> it'll execute that as to pass it as an argument to fetch
havenwood has joined #ruby-lang
<DefV> foucist: I bet fetch takes a block?
rahul_j has quit [Quit: rahul_j]
nofxx_ has quit [Ping timeout: 240 seconds]
earthquake has quit [Quit: earthquake]
centrx has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
dm78 has joined #ruby-lang
karamazov has quit [Remote host closed the connection]
pglombardo has quit [Remote host closed the connection]
pglombardo has joined #ruby-lang
abhi_rsd has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
loincloth has joined #ruby-lang
charliesome has joined #ruby-lang
Benstr__ has quit [Quit: Computer has gone to sleep.]
Benstr__ has joined #ruby-lang
karamazov has joined #ruby-lang
spastorino has joined #ruby-lang
mbj has joined #ruby-lang
_sillymarkets has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Ping timeout: 245 seconds]
yfeldblu_ has quit [Ping timeout: 250 seconds]
Benstr__ has quit [Ping timeout: 240 seconds]
abhi_rsd has quit [Remote host closed the connection]
<apeiros> DefV: you'd win that bet
<foucist> :)
<apeiros> assuming SITE_MEMBER_COUNTS is a Hash
yubrew has joined #ruby-lang
brothmars has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
Benstr__ has joined #ruby-lang
<yorickpeterse> I HATE YUM
<yorickpeterse> IT'S STUCH A BS PACKAGE MANAGER
<yorickpeterse> $ sudo yum update jenkins # takes forever, so I hit ^C
<yorickpeterse> $ sudo yum update # 123908123 multilib errors
<yorickpeterse> though it seems that after about 90 minutes I've managed to update things without breaking it
* dorei is a big fan of opensuse and zypper
yubrew has quit [Ping timeout: 260 seconds]
<TTilus> long live package manager wars
<dorei> TTilus: slackware and no package manager then :)
skade has quit [Quit: Computer has gone to sleep.]
<apeiros> s/wars/massacres/?
<apeiros> since it's a blood bath no matter how
<DefV> apt!
j4cknewt has joined #ruby-lang
jxie has joined #ruby-lang
yell0wgh0st has quit [Quit: yell0wgh0st]
banister is now known as banisterfiend
AKASkip1 has quit [Ping timeout: 260 seconds]
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
foucist has left #ruby-lang [#ruby-lang]
torrieri has joined #ruby-lang
yfeldblum has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 255 seconds]
Benstr__ has quit [Quit: Computer has gone to sleep.]
Benstr__ has joined #ruby-lang
kgrz has quit [Remote host closed the connection]
kgrz has joined #ruby-lang
<darix> yorickpeterse: their next package manager will use our libs for resolving and should be a lot faster
yfeldblu_ has quit [Ping timeout: 240 seconds]
Benstr__ has quit [Ping timeout: 240 seconds]
kgrz has quit [Ping timeout: 250 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
dwknoxy is now known as dknox-bbl
yatish27 has joined #ruby-lang
<yorickpeterse> darix: speed isn't the problem
<yorickpeterse> darix: yum shitting itself and throwing random errors for every command on the other hand *is* a problem
yell0wgh0st has joined #ruby-lang
<darix> yorickpeterse: there is always the option to use a distro that has zypper.
<darix> :)
mistym has joined #ruby-lang
apeiros has quit [Ping timeout: 272 seconds]
<yorickpeterse> you make it sound like switching OS' of an infrastructure is easy
<Sphynx> my boss wants me to edit 300+ entries in the live database lolol
<Sphynx> no thanks :D
toastynerd has joined #ruby-lang
arBmind has joined #ruby-lang
yatish27_ has quit [Ping timeout: 264 seconds]
Benstr__ has joined #ruby-lang
futilegames has quit [Quit: futilegames]
mistym has quit [Remote host closed the connection]
Asher has quit [Quit: Leaving.]
futilegames has joined #ruby-lang
sdouglas has quit [Remote host closed the connection]
mbj has quit [Quit: leaving]
sdouglas has joined #ruby-lang
mikecmpbll has quit [Ping timeout: 250 seconds]
saarinen has joined #ruby-lang
Lewix has joined #ruby-lang
skade has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
jxie has quit [Ping timeout: 240 seconds]
sdouglas has quit [Ping timeout: 250 seconds]
skade has quit [Client Quit]
yubrew has joined #ruby-lang
shinnya has joined #ruby-lang
Benstr__ has quit [Quit: Computer has gone to sleep.]
Benstr__ has joined #ruby-lang
yubrew has quit [Ping timeout: 246 seconds]
momomomomo has quit [Quit: momomomomo]
x0f_ has joined #ruby-lang
apeiros has joined #ruby-lang
Benstr__ has quit [Ping timeout: 240 seconds]
|jemc| has joined #ruby-lang
x0f has quit [Ping timeout: 260 seconds]
momomomomo has joined #ruby-lang
j4cknewt has joined #ruby-lang
postmodern has joined #ruby-lang
FarlaTux has quit [Quit: Leaving]
Dev-Gitter has quit [Quit: Leaving]
kohgpat has quit [Ping timeout: 255 seconds]
mistym has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
enkristoffer has joined #ruby-lang
abhi_rsd has joined #ruby-lang
saarinen has quit [Quit: saarinen]
nathanstitt has joined #ruby-lang
Benstr__ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 264 seconds]
kohgpat has joined #ruby-lang
Benstr__ has quit [Client Quit]
apeiros has quit [Remote host closed the connection]
koos303 has quit [Quit: Connection closed for inactivity]
abhi_rsd has quit [Remote host closed the connection]
karamazov has quit [Remote host closed the connection]
yatish27 has quit [Remote host closed the connection]
<darix> yorickpeterse: depends
skade has joined #ruby-lang
yatish27 has joined #ruby-lang
jamesfordummies has joined #ruby-lang
karamazov has joined #ruby-lang
centrx has quit [Quit: Mead error: Connection reset by beer]
yatish27 has quit [Ping timeout: 245 seconds]
Sphynx has quit [Remote host closed the connection]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
sdouglas has joined #ruby-lang
symm- has quit [Ping timeout: 272 seconds]
Lewix has quit [Remote host closed the connection]
toastynerd has joined #ruby-lang
yubrew has joined #ruby-lang
mikecmpbll has joined #ruby-lang
jxie has joined #ruby-lang
karamazov has quit [Remote host closed the connection]
symm- has joined #ruby-lang
yubrew has quit [Ping timeout: 240 seconds]
michaeldeol has joined #ruby-lang
amerine has joined #ruby-lang
Meta5 has quit [Quit: Meta5]
michaeldeol has quit [Client Quit]
Lewix has joined #ruby-lang
amsi has joined #ruby-lang
diegoviola has quit [Ping timeout: 250 seconds]
shinnya has quit [Ping timeout: 246 seconds]
michaeldeol has joined #ruby-lang
wallerdev has joined #ruby-lang
abhi_rsd_ has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
emmesswhy has joined #ruby-lang
yatish27 has joined #ruby-lang
yell0wgh0st has quit [Quit: yell0wgh0st]
yell0wgh0st has joined #ruby-lang
yell0wgh0st has quit [Client Quit]
yell0wgh0st has joined #ruby-lang
apeiros has joined #ruby-lang
sarkyniin has quit [Ping timeout: 240 seconds]
kgrz has joined #ruby-lang
yfeldblum has joined #ruby-lang
pglombar_ has joined #ruby-lang
pglombar_ is now known as pglombardo_
mistym has quit [Remote host closed the connection]
wmoxam has quit [Ping timeout: 260 seconds]
amerine has quit [Ping timeout: 255 seconds]
wmoxam has joined #ruby-lang
seamon has joined #ruby-lang
pglombardo has quit [Ping timeout: 264 seconds]
cmisenas_ has joined #ruby-lang
cmisenas has quit [Ping timeout: 250 seconds]
yatish27 has quit [Remote host closed the connection]
cmisenas_ has left #ruby-lang [#ruby-lang]
yatish27 has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 255 seconds]
dekub has joined #ruby-lang
apeiros has joined #ruby-lang
diegoviola has joined #ruby-lang
cmisenas has joined #ruby-lang
charliesome has quit [Quit: zzz]
yatish27 has quit [Ping timeout: 246 seconds]
apeiros has quit [Ping timeout: 260 seconds]
benlovell has quit [Ping timeout: 240 seconds]
amerine has joined #ruby-lang
dekub is now known as nut
nut is now known as dekub
wallerdev has quit [Quit: wallerdev]
Meta5 has joined #ruby-lang
jbardin has joined #ruby-lang
|jemc| has quit [Ping timeout: 250 seconds]
Meta5 has quit [Client Quit]
Lewix has quit [Remote host closed the connection]
dekub is now known as nutl
jamesfordummies has quit [Remote host closed the connection]
Lewix has joined #ruby-lang
qba73 has quit [Remote host closed the connection]
rahul_j has joined #ruby-lang
saarinen has joined #ruby-lang
AKASkip has joined #ruby-lang
momomomomo_ has joined #ruby-lang
mkaesz has quit [Quit: Leaving...]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
momomomomo has quit [Ping timeout: 250 seconds]
momomomomo_ is now known as momomomomo
yell0wgh0st has quit [Quit: yell0wgh0st]
yubrew has joined #ruby-lang
jimbach has quit [Remote host closed the connection]
jimbach has joined #ruby-lang
diegoviola has quit [Remote host closed the connection]
michaeldeol has joined #ruby-lang
chadwtaylor has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
arBmind has quit [Quit: Leaving.]
pglombardo_ has quit []
nofxx_ has joined #ruby-lang
nofxx_ has quit [Changing host]
nofxx_ has joined #ruby-lang
yubrew has quit [Ping timeout: 260 seconds]
jimbach has quit [Ping timeout: 240 seconds]
Missphoenix has quit [Quit: Leaving]
yell0wgh0st has joined #ruby-lang
wallerdev has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
momomomomo has quit [Quit: momomomomo]
sarkyniin has joined #ruby-lang
jimbach has joined #ruby-lang
workmad3 has quit [Ping timeout: 250 seconds]
sarkyniin has quit [Quit: Quitte]
sarkyniin has joined #ruby-lang
wallerdev_ has joined #ruby-lang
wallerdev has quit [Ping timeout: 272 seconds]
wallerdev_ is now known as wallerdev
dknox-bbl is now known as dknox
loincloth has quit [Remote host closed the connection]
mistym has joined #ruby-lang
havenwood has joined #ruby-lang
kohgpat has quit [Quit: Lost terminal]
toastynerd has quit [Remote host closed the connection]
brothmars has quit [Ping timeout: 250 seconds]
toastynerd has joined #ruby-lang
_sillymarkets has joined #ruby-lang
<postmodern> swear this has been solved before
<postmodern> but I'm trying to pass a callback into a function via FFI
<postmodern> except that the functions invokes the callback from a new pthread
abhi_rsd_ has quit [Ping timeout: 240 seconds]
abhi_rsd_ has joined #ruby-lang
seamon has quit [Quit: Zzzzzzz]
yell0wgh0st has quit [Quit: yell0wgh0st]
RobertBirnie has joined #ruby-lang
RobertBi_ has joined #ruby-lang
jamesfordummies has joined #ruby-lang
gix has quit [Ping timeout: 260 seconds]
RobertBirnie has quit [Ping timeout: 240 seconds]
seamon has joined #ruby-lang
gix has joined #ruby-lang
charliesome has joined #ruby-lang
djbkd has joined #ruby-lang
yubrew has joined #ruby-lang
apeiros has joined #ruby-lang
yubrew has quit [Ping timeout: 240 seconds]
skade has quit [Quit: Computer has gone to sleep.]
djbkd has quit [Remote host closed the connection]
Meta5 has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
t4nk302 has joined #ruby-lang
toastynerd has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby-lang
Meta5 has quit [Read error: Connection reset by peer]
loincloth has joined #ruby-lang
Meta5 has joined #ruby-lang
charliesome_ has joined #ruby-lang
t4nk302 has quit [Ping timeout: 246 seconds]
taylorrf has joined #ruby-lang
charliesome has quit [Ping timeout: 264 seconds]
sepp2k has quit [Quit: Konversation terminated!]
Lewix has quit [Remote host closed the connection]
torrieri has quit [Quit: Leaving...]
Lewix has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
rahul_j has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
jamesfordummies has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
jamesfordummies has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
nutl has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 264 seconds]
sleepee has joined #ruby-lang
j4cknewt has joined #ruby-lang
SkramX has joined #ruby-lang
cmisenas has quit [Quit: cmisenas]
<SkramX> let's say i have an array of hashes like {:x => 1, :y => 1, :z => 2, ...} all of the same structure. I want to combine (de-duplicate) based on x and y and sum z
<SkramX> what's the best way to do that?
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
<wallerdev> you want to combine all hashes into one hash?
Meta5 has quit [Read error: Connection reset by peer]
havenwood has quit []
<SkramX> wallerdev: sorry, i wasnt very clear
Meta5 has joined #ruby-lang
<SkramX> there are duplicate hashes in that array with the same x/y values. i want to squash those all down to one hash per x/y value pair and sum the z field
arooni-mobile has joined #ruby-lang
apeiros_ has joined #ruby-lang
<wallerdev> interesting
<wallerdev> i guess you could hash based on the values of x and y then recreate the array
apeiros has quit [Ping timeout: 240 seconds]
<wallerdev> like data = Hash.new(0); hash.each { |k, v| data[[v['x'], v['y']] += v['z'] }
<wallerdev> or something
<wallerdev> would that work? haha
konr has joined #ruby-lang
jxie has quit [Ping timeout: 246 seconds]
Meta5 has quit [Read error: Connection reset by peer]
<SkramX> i dont get how you are passing an array as a key to the hash
<wallerdev> >> hash = {}; hash[[1, 2, 3]] = 10; hash
<eval-in> wallerdev => {[1, 2, 3]=>10} (https://eval.in/182139)
<SkramX> ah okay
Meta5 has joined #ruby-lang
jbardin has quit [Quit: jbardin]
taylorrf has quit [Remote host closed the connection]
jbardin has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
apeiros has joined #ruby-lang
postmodern has quit [Ping timeout: 260 seconds]
torrieri has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
torrieri_ has joined #ruby-lang
apeiros has quit [Ping timeout: 240 seconds]
torrieri has quit [Read error: Connection reset by peer]
yubrew has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<SkramX> thx, wallerdev
Meta5 has quit [Read error: Connection reset by peer]
yubrew has quit [Ping timeout: 250 seconds]
Meta5 has joined #ruby-lang
sdouglas has quit [Remote host closed the connection]
DEac- has quit [Ping timeout: 260 seconds]
sdouglas has joined #ruby-lang
torrieri_ has quit [Ping timeout: 272 seconds]
<jhass> SkramX: you did try calling uniq ?
<SkramX> uniq wouldnt have helped with the summing...
havenwood has joined #ruby-lang
Meta5 has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby-lang
j4cknewt has joined #ruby-lang
<jhass> oh, right
mistym has quit [Ping timeout: 245 seconds]
Meta5 has joined #ruby-lang
postmodern has joined #ruby-lang
futilegames has quit [Quit: futilegames]
mistym has joined #ruby-lang
sdouglas has quit [Ping timeout: 245 seconds]
burnwurst has joined #ruby-lang
AmBienCeD has joined #ruby-lang
_sillymarkets has quit [Ping timeout: 246 seconds]
lsd53 has joined #ruby-lang
<lsd53> hey are array in ruby immutable?
<bougyman> no
<lsd53> thanks
charliesome_ has quit [Ping timeout: 260 seconds]
<pipework> bougyman: yeah they are.
charliesome has joined #ruby-lang
<pipework> oh sorry read that backwards.
<bougyman> pipework: how?
seamon has quit [Quit: Zzzzzzz]
<bougyman> [5] pry(main)> arr = [:a, :b, :c]; b = arr; arr << :d; b
<pipework> bougyman: I was stupid and became temporarily illiterate
<bougyman> => [:a, :b, :c, :d]
<bougyman> seems mutable, to me.
<bougyman> ok
<pipework> read immutable as mutable.
arooni-mobile has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby-lang
lsd53 has quit [Quit: Leaving]
j4cknewt has quit [Remote host closed the connection]
sleepee has quit [Ping timeout: 255 seconds]
momomomomo has joined #ruby-lang
j4cknewt has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
stamina has quit [Ping timeout: 240 seconds]
robbyoconnor has joined #ruby-lang
JoL1hAHN is now known as nrk
j4cknewt has quit [Remote host closed the connection]
enkristoffer has quit [Quit: ❤]
enkristoffer has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
stef1a has joined #ruby-lang
<stef1a> how do you test the return value of a block / determine whether an error occurs at any of its steps? is there something i can wrap around the entire method?
<stef1a> the entire block*
<stef1a> oh, never mind
taylorrf has joined #ruby-lang
taylorrf_ has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
j4cknewt has joined #ruby-lang
taylorrf has quit [Ping timeout: 246 seconds]
robbyoconnor has quit [Max SendQ exceeded]
taylorrf_ has quit [Remote host closed the connection]
sleepee has joined #ruby-lang
bungoman has joined #ruby-lang
robbyoconnor has joined #ruby-lang
Meta5 has quit [Quit: Meta5]
djbkd has quit [Remote host closed the connection]
robbyoconnor has quit [Read error: Connection reset by peer]
_ht has quit [Remote host closed the connection]
loincloth has quit [Remote host closed the connection]
cmisenas has joined #ruby-lang
arooni-mobile has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
amsi has quit [Ping timeout: 255 seconds]
sepp2k has joined #ruby-lang
torrieri has joined #ruby-lang
enkristoffer has quit [Quit: ❤]
yubrew has joined #ruby-lang
stamina has joined #ruby-lang
sleepee has quit [Ping timeout: 245 seconds]
j4cknewt has quit [Ping timeout: 260 seconds]
loincloth has joined #ruby-lang
j4cknewt has joined #ruby-lang
yubrew has quit [Ping timeout: 264 seconds]
futilegames has joined #ruby-lang
toastynerd has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
j4cknewt has quit [Remote host closed the connection]
sleepee has joined #ruby-lang
emmesswhy has quit [Quit: This computer has gone to sleep]
DEac- has joined #ruby-lang
jbardin has quit [Quit: jbardin]
brothmars has joined #ruby-lang
momomomomo_ has joined #ruby-lang
momomomomo has quit [Ping timeout: 250 seconds]
momomomomo_ is now known as momomomomo
<stef1a> what's the simplest way to write a function that takes a list of integers like 1, 3, 6, and reduces each to the smallest one greater than the previous? (1 stays 1, 3 becomes 2, 6 becomes 3)
yfeldblum has joined #ruby-lang
djbkd has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
<bougyman> stef1a: like def arr_reduce(arr); last = nil; arr.sort.map { |i| last = last.nil? ? i : last + 1 }; end ?
AmBienCeD has quit [Ping timeout: 244 seconds]
<stef1a> bougyman: yeah, that's a lot simpler than what i had in mind. thanks!
AmBienCeD has joined #ruby-lang
wallerdev has joined #ruby-lang
emmesswhy has joined #ruby-lang
seamon has joined #ruby-lang
hotpancakes has joined #ruby-lang
jbardin has joined #ruby-lang
j4cknewt has joined #ruby-lang
ari-_-e has quit [Ping timeout: 260 seconds]
yibeikafei has joined #ruby-lang
michaeldeol has joined #ruby-lang
Meta5 has joined #ruby-lang
<yibeikafei> Hey guys. I'm trying to DRY out a couple of methods, and I'm thinking that I need to use blocks/yield, but I'm not familiar enough with them to know what to do. Advice? https://gist.github.com/yibeikafei/d42fd8f57c286559f96e
Meta5 has quit [Client Quit]
ari-_-e has joined #ruby-lang
fusillicode has quit [Ping timeout: 240 seconds]
postmodern has quit [Ping timeout: 246 seconds]
momomomomo_ has joined #ruby-lang
yubrew has joined #ruby-lang
momomomomo has quit [Ping timeout: 245 seconds]
momomomomo_ is now known as momomomomo
sleepee has quit [Quit: Leaving]
AmBienCeD has quit [Ping timeout: 244 seconds]
yubrew has quit [Ping timeout: 246 seconds]
djbkd has quit [Remote host closed the connection]
dorei has quit [Read error: Connection reset by peer]
dorei has joined #ruby-lang
taylorrf has joined #ruby-lang
jstemmer has quit [Quit: leaving]
postmodern has joined #ruby-lang
<havenwood> yibeikafei: i'd probably not use tap like that. it's the same number of lines to do something like `error_set = {}; ...; error_set` and i think more clear
djbkd has joined #ruby-lang
<havenwood> yibeikafei: but if local variables are forbidden :P, maybe look at #each_with_object, e.g.: DOCUMENT_TYPES.each_with_object({}) { |doc_type, error_set| error_set[doc_type] = client_error }
taylorrf has quit [Ping timeout: 260 seconds]
<havenwood> yibeikafei: it returns the Hash
stef_204 has joined #ruby-lang
<yibeikafei> havenwood: That is nicer.
charliesome has quit [Read error: Connection reset by peer]
AmBienCeD has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
jamesfordummies has quit [Remote host closed the connection]
futilegames has quit [Quit: futilegames]
nertzy has quit [Quit: Leaving]
nofxx_ has quit [Ping timeout: 240 seconds]
nertzy has joined #ruby-lang
alexju has quit [Remote host closed the connection]
kuanding_ has joined #ruby-lang
mannyt has joined #ruby-lang
enkristoffer has joined #ruby-lang
kuanding has quit [Ping timeout: 245 seconds]
kuanding_ is now known as kuanding
loincloth has quit [Remote host closed the connection]
momomomomo has quit [Ping timeout: 260 seconds]
mistym has quit [Remote host closed the connection]
amsi has joined #ruby-lang
saarinen has quit [Quit: saarinen]
sdouglas has joined #ruby-lang
saarinen has joined #ruby-lang
CaptainAnime has joined #ruby-lang
leandrosnunes has quit [Quit: WeeChat 0.4.3]
danijoo has quit [Read error: Connection reset by peer]
seamon has quit [Quit: Zzzzzzz]
momomomomo has joined #ruby-lang
danijoo has joined #ruby-lang
_sillymarkets has joined #ruby-lang
nofxx_ has joined #ruby-lang
kyb3r_ has joined #ruby-lang
<sarkyniin> hey, is it possible to use reverse ranges on string in Ruby?
emmesswhy has quit [Quit: This computer has gone to sleep]
<sarkyniin> for example, if I wanted to verify that "hello" finishes with "llo", I could do something like
<sarkyniin> "if hello[-1..-3] == "llo" "
<sarkyniin> right
<sarkyniin> I mean
<sarkyniin> puts quotation marks around hello in that example
emmesswhy has joined #ruby-lang
<jhass> sarkyniin: how about .end_with?("llo") ?
<sarkyniin> oh
<sarkyniin> ... I guess that works
ldnunes has quit [Quit: Leaving]
<wallerdev> if hellp[-3..-1] == "llo"
j4cknewt has joined #ruby-lang
seamon has joined #ruby-lang
<sarkyniin> jhass: that works with regex, right
<jhass> don't think so
abhi_rsd_ has quit [Read error: Connection reset by peer]
jds has quit [Quit: Connection closed for inactivity]
yatish27 has joined #ruby-lang
molgrew has joined #ruby-lang
yubrew has joined #ruby-lang
jamesfordummies has joined #ruby-lang
Foxkeh has joined #ruby-lang
Xzyx987X_ has quit [Ping timeout: 255 seconds]
Mon_Ouie has joined #ruby-lang
yubrew has quit [Ping timeout: 245 seconds]
Foxkeh has left #ruby-lang [#ruby-lang]
Xzyx987X has joined #ruby-lang
loincloth has joined #ruby-lang
havenwood has quit [Ping timeout: 264 seconds]
existensil has joined #ruby-lang
duderonomy has joined #ruby-lang
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
migbar has joined #ruby-lang
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
brothmars has quit [Ping timeout: 255 seconds]
hotpancakes has quit [Remote host closed the connection]
loincloth has quit [Remote host closed the connection]
realDAB has joined #ruby-lang
loincloth has joined #ruby-lang
jimbach has quit [Remote host closed the connection]
jimbach has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
nathanstitt has quit [Quit: I growing sleepy]
yatish27 has joined #ruby-lang
havenwood has joined #ruby-lang
nathanstitt has joined #ruby-lang
symm- has quit [Ping timeout: 240 seconds]
jimbach has quit [Ping timeout: 260 seconds]
havenn has joined #ruby-lang
hotpancakes has joined #ruby-lang
cmisenas has quit [Quit: cmisenas]
stamina has quit [Quit: WeeChat 0.4.3]
yatish27 has quit [Ping timeout: 246 seconds]
AKASkip has quit [Ping timeout: 245 seconds]
stef1a has quit [Ping timeout: 246 seconds]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
bungoman_ has joined #ruby-lang
chadwtaylor has quit [Quit: Leaving...]
bungoman_ has quit [Read error: Connection reset by peer]
bungoman_ has joined #ruby-lang
bungoman has quit [Ping timeout: 240 seconds]
mistym has joined #ruby-lang
havenwood has quit []
djbkd has quit [Remote host closed the connection]
sharpmachine has quit [Remote host closed the connection]
bungoman_ has quit [Ping timeout: 240 seconds]
havenn is now known as havenwood
seamon has quit [Quit: Zzzzzzz]
apeiros has joined #ruby-lang
jamesfor_ has joined #ruby-lang
yubrew has joined #ruby-lang
dbck has joined #ruby-lang
jamesfordummies has quit [Ping timeout: 260 seconds]
torrieri has quit [Quit: Leaving...]
yubrew has quit [Ping timeout: 246 seconds]
torrieri has joined #ruby-lang
solars has quit [Ping timeout: 260 seconds]
Mon_Ouie has quit [Ping timeout: 255 seconds]
realDAB has quit [Quit: realDAB]
djbkd has joined #ruby-lang
postmodern has quit [Quit: Leaving]
dbck has left #ruby-lang [#ruby-lang]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
loincloth has quit [Remote host closed the connection]
molgrew has quit [Quit: leaving]
mannyt has quit [Read error: Connection reset by peer]
nertzy has quit [Quit: This computer has gone to sleep]
djbkd has quit [Remote host closed the connection]
nertzy has joined #ruby-lang
jimbach has joined #ruby-lang
michaeldeol has quit [Read error: Connection reset by peer]
deol has joined #ruby-lang
mannyt has joined #ruby-lang
djbkd has joined #ruby-lang
jimbach has quit [Ping timeout: 246 seconds]
djbkd has quit [Ping timeout: 250 seconds]
shinnya has joined #ruby-lang
brothmars has joined #ruby-lang
nertzy has quit [Quit: This computer has gone to sleep]
pr0ton_ has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
spuk has quit [Changing host]
spuk has joined #ruby-lang
enkristoffer has quit [Quit: ❤]
|jemc| has joined #ruby-lang
<catepillar> if you need to check a regex and end with, you use the $ at the end of the regex
<bougyman> that's end of string/end of line
<catepillar> /[0-9]$/
<catepillar> fair enough. make sure no \n are in the string
<bougyman> or use the /m switch
<catepillar> i was gonna look that up
<zenspider> or \z
<catepillar> \z
Sgeo has joined #ruby-lang
<catepillar> zenspider: beat me to it
<zenspider> I've got my quickref in emacs for easy searching
pr0ton_ has quit [Quit: pr0ton_]
hellangel7 has quit [Read error: Connection reset by peer]
djbkd has joined #ruby-lang
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MichD is now known as michd
michaeldeol has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
djbkd has quit [Ping timeout: 260 seconds]
yubrew has joined #ruby-lang
seamon has joined #ruby-lang
yubrew has quit [Ping timeout: 250 seconds]
banister has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
mannyt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kgrz has quit [Remote host closed the connection]
banister is now known as banisterfiend
kgrz has joined #ruby-lang
kgrz has quit [Ping timeout: 250 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
|jemc| has quit [Ping timeout: 250 seconds]
jimbach has joined #ruby-lang
torrieri has quit [Quit: Leaving...]
jimbach has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby-lang
djbkd has quit [Ping timeout: 245 seconds]
seamon has quit [Quit: Zzzzzzz]
emmesswhy has quit [Quit: This computer has gone to sleep]
yfeldblum has quit [Remote host closed the connection]
cmisenas has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby-lang