apeiros changed the topic of #ruby-lang to: Ruby 2.1.3; 2.0.0-p576; 1.9.3-p547: http://ruby-lang.org || Paste code on http://gist.github.com
kgrz has joined #ruby-lang
lewix has joined #ruby-lang
ruby-lang835 has joined #ruby-lang
thagomizer has quit [Quit: Leaving.]
lcdhoffman has joined #ruby-lang
|jemc| has quit [Ping timeout: 244 seconds]
kgrz has quit [Ping timeout: 260 seconds]
<ruby-lang835> Does any body here has experience on upgrading rails 3.2 to rails 4.
simi has quit [Ping timeout: 260 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ruby-lang835 has quit [Ping timeout: 246 seconds]
amsi has quit [Ping timeout: 260 seconds]
amsi has joined #ruby-lang
skammer3 has quit [Ping timeout: 245 seconds]
arooni-mobile has quit [Ping timeout: 260 seconds]
tylersmith has quit [Remote host closed the connection]
Averna has joined #ruby-lang
sharpmachine has quit [Remote host closed the connection]
mattyohe has quit [Quit: Connection closed for inactivity]
torrieri has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby-lang
Iskarlar has joined #ruby-lang
imkmf has joined #ruby-lang
faces has quit [Ping timeout: 246 seconds]
face has joined #ruby-lang
rcvalle has quit [Quit: rcvalle]
justinmburrous has joined #ruby-lang
spastorino has quit [Quit: Connection closed for inactivity]
justinmburrous has quit [Ping timeout: 272 seconds]
benlovell has quit [Ping timeout: 260 seconds]
mistym has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
imperator has quit [Quit: Valete!]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amsi has quit [Quit: Leaving]
snsei has joined #ruby-lang
haraoka has joined #ruby-lang
hahuang65 has quit [Ping timeout: 258 seconds]
wallerdev has quit [Quit: wallerdev]
snsei has quit [Ping timeout: 272 seconds]
mistym has joined #ruby-lang
Asher has joined #ruby-lang
mikecmpbll has quit [Quit: i've nodded off.]
iliketurtles has quit [Quit: zzzzz…..]
skammer3 has joined #ruby-lang
skammer3 has quit [Ping timeout: 272 seconds]
mattyohe has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
tectonic has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
levifig has quit [Ping timeout: 245 seconds]
jdecuirm has joined #ruby-lang
yfeldblum has joined #ruby-lang
snsei has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
[dmp] has quit [Ping timeout: 246 seconds]
levifig has joined #ruby-lang
[dmp] has joined #ruby-lang
[dmp] has joined #ruby-lang
[dmp] has quit [Changing host]
tkuchiki has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
|jemc| has joined #ruby-lang
imkmf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lcdhoffman has joined #ruby-lang
imkmf has joined #ruby-lang
tylersmith has joined #ruby-lang
mistym has quit [Remote host closed the connection]
imkmf has quit [Quit: Textual IRC Client: www.textualapp.com]
benlovell has joined #ruby-lang
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arBmind1 has joined #ruby-lang
face has quit [Ping timeout: 260 seconds]
jbardin has quit [Quit: jbardin]
arBmind has quit [Ping timeout: 250 seconds]
face has joined #ruby-lang
jhass is now known as jhass|off
havenwood has quit [Remote host closed the connection]
benlovell has quit [Ping timeout: 272 seconds]
kgrz has joined #ruby-lang
oleo__ has joined #ruby-lang
oleo is now known as Guest49063
tpope_ is now known as tpope
kgrz has quit [Ping timeout: 240 seconds]
Guest49063 has quit [Ping timeout: 240 seconds]
skammer3 has joined #ruby-lang
mistym has joined #ruby-lang
kgrz has joined #ruby-lang
skammer3 has quit [Ping timeout: 245 seconds]
justinmburrous has joined #ruby-lang
kgrz has quit [Ping timeout: 260 seconds]
amerine has joined #ruby-lang
tectonic has joined #ruby-lang
__butch__ has joined #ruby-lang
__butch__ has quit [Client Quit]
lcdhoffman has quit [Quit: lcdhoffman]
iliketurtles has joined #ruby-lang
havenwood has joined #ruby-lang
imperator has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
SuMo_D has quit [Remote host closed the connection]
Musashi007 has joined #ruby-lang
kgrz has joined #ruby-lang
wonderred has joined #ruby-lang
justinmburrous has quit [Remote host closed the connection]
skammer3 has joined #ruby-lang
justinmburrous has joined #ruby-lang
justinmburrous has quit [Read error: No route to host]
skammer3 has quit [Ping timeout: 244 seconds]
justinmburrous has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
koderok has joined #ruby-lang
stardiviner has joined #ruby-lang
justinmburrous has quit [Remote host closed the connection]
jo__ has joined #ruby-lang
justinmburrous has joined #ruby-lang
justinmburrous has quit [Read error: No route to host]
emmesswhy has joined #ruby-lang
lewix is now known as Lewiz
justinmburrous has joined #ruby-lang
Lewiz is now known as Lewix
kwd has quit [Quit: I'm using a Free IRC Bouncer from BNC4FREE - http://bnc4free.com/]
koderok has quit [Quit: koderok]
<imperator> File.exist? supposed to return false on a dead link, right?
<womble> imperator: I don't think it's defined either way.
<imperator> hmm
<womble> It gives me false, at any rate.
<imperator> i think that's the defined behavior, thanks
<imperator> (based on a jruby bug fix)
nathanstitt has quit [Quit: I growing sleepy]
<headius> imperator: small world...I used a patch for that bug in my oss talk
gix has quit [Ping timeout: 240 seconds]
kwd has joined #ruby-lang
wonderred has quit [Ping timeout: 250 seconds]
<imperator> headius, i need to fix it for windows :)
gix has joined #ruby-lang
wonderred has joined #ruby-lang
justinmburrous has quit [Remote host closed the connection]
RobertBirnie has joined #ruby-lang
emmesswhy has quit [Quit: Leaving]
emilsoman has joined #ruby-lang
ledestin_ has joined #ruby-lang
ledestin has quit [Ping timeout: 272 seconds]
ledestin_ is now known as ledestin
arooni-mobile has joined #ruby-lang
<headius> imperator: yay!
skammer3 has joined #ruby-lang
skammer3 has quit [Ping timeout: 250 seconds]
nonmadden has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
kyb3r_ has joined #ruby-lang
Lewix has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
koderok has joined #ruby-lang
koderok has quit [Client Quit]
tectonic has quit []
imperator has quit [Quit: Valete!]
wonderred has quit [Ping timeout: 260 seconds]
justinmburrous has joined #ruby-lang
clauswitt has joined #ruby-lang
sharpmachine has joined #ruby-lang
Musashi007_ has joined #ruby-lang
Musashi007 has quit [Read error: Connection reset by peer]
Musashi007_ is now known as Musashi007
Suchit has joined #ruby-lang
justinmburrous has quit [Remote host closed the connection]
Suchit has quit [Read error: Connection reset by peer]
Suchit_ has joined #ruby-lang
JoshuaPaling has joined #ruby-lang
jdecuirm has quit [Ping timeout: 245 seconds]
kgrz has quit [Remote host closed the connection]
arooni-mobile has quit [Ping timeout: 272 seconds]
lsegal has joined #ruby-lang
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shubhamgoyal has quit [Remote host closed the connection]
shubhamgoyal has joined #ruby-lang
clauswitt has joined #ruby-lang
skammer3 has joined #ruby-lang
clauswitt has quit [Client Quit]
jdecuirm has joined #ruby-lang
shubhamgoyal has quit [Ping timeout: 258 seconds]
skammer3 has quit [Ping timeout: 244 seconds]
matp has quit [Quit: ZZZzzz…]
michaeldeol has joined #ruby-lang
jxie has quit [Ping timeout: 272 seconds]
jxie has joined #ruby-lang
JohnBat26 has joined #ruby-lang
oleo__ has quit [Quit: Verlassend]
xdknox has quit [Quit: Textual IRC Client: www.textualapp.com]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has quit []
nonmadden has quit [Quit: Leaving...]
justinmburrous has joined #ruby-lang
sharpmachine has quit [Remote host closed the connection]
justinmburrous has quit [Ping timeout: 258 seconds]
allomov has quit [Remote host closed the connection]
shubhamgoyal has joined #ruby-lang
kgrz has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kgrz_ has joined #ruby-lang
kgrz has quit [Read error: Connection reset by peer]
Suchit_ has quit [Read error: Connection reset by peer]
Suchit_ has joined #ruby-lang
torrieri has quit [Quit: Leaving...]
AKASkip has joined #ruby-lang
justinmburrous has joined #ruby-lang
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
snsei has quit [Remote host closed the connection]
iliketurtles has joined #ruby-lang
yfeldblu_ has quit [Remote host closed the connection]
snsei_ has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
AKASkip has quit [Ping timeout: 260 seconds]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ammar___ has quit [Quit: leaving]
justinmburrous has quit [Remote host closed the connection]
justinmburrous has joined #ruby-lang
justinmburrous has quit [Read error: Connection reset by peer]
justinmburrous has joined #ruby-lang
ammar has joined #ruby-lang
gianlucadv has joined #ruby-lang
schaerli has joined #ruby-lang
skammer3 has joined #ruby-lang
clauswitt has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
danijoo_ has joined #ruby-lang
michaeldeol has joined #ruby-lang
nofxx has quit [Ping timeout: 246 seconds]
matp has joined #ruby-lang
snsei_ has quit [Remote host closed the connection]
skammer3 has quit [Ping timeout: 258 seconds]
JoshuaPaling has quit [Quit: Textual IRC Client: www.textualapp.com]
allomov has joined #ruby-lang
allomov has quit [Remote host closed the connection]
koderok has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
shubhamgoyal has quit [Remote host closed the connection]
druznek has joined #ruby-lang
AKASkip has joined #ruby-lang
benlovell has joined #ruby-lang
justinmburrous has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
shubhamgoyal has joined #ruby-lang
thomasxie has joined #ruby-lang
justinmburrous has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
Averna has quit [Quit: Leaving.]
tylersmith has joined #ruby-lang
snoopybbt has quit [Ping timeout: 245 seconds]
tylersmith has quit [Ping timeout: 255 seconds]
snoopybbt has joined #ruby-lang
AmBienCeD has quit [Write error: Broken pipe]
danromano has quit [Excess Flood]
AmBienCeD has joined #ruby-lang
AmBienCeD has joined #ruby-lang
AmBienCeD has quit [Changing host]
danromano has joined #ruby-lang
Blaguvest has joined #ruby-lang
jxie has quit [Read error: Connection reset by peer]
schaerli has quit [Remote host closed the connection]
solars has joined #ruby-lang
schaerli has joined #ruby-lang
lcdhoffman has joined #ruby-lang
justinmburrous has quit [Remote host closed the connection]
jxie has joined #ruby-lang
elia has joined #ruby-lang
skammer3 has joined #ruby-lang
Iskarlar has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
schaerli has joined #ruby-lang
danijoo_ has quit [Ping timeout: 250 seconds]
tbuehlmann has joined #ruby-lang
emmesswhy has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
skammer3 has quit [Ping timeout: 272 seconds]
justinmburrous has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rolfb has joined #ruby-lang
rolfb has quit [Remote host closed the connection]
ad_boot has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
elia has joined #ruby-lang
apeiros has joined #ruby-lang
_ht has joined #ruby-lang
charliesome has quit [Quit: zzz]
danijoo has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
emrox has joined #ruby-lang
justinmburrous has quit [Remote host closed the connection]
justinmburrous has joined #ruby-lang
arBmind1 has quit [Quit: Leaving.]
yfeldblu_ has quit [Ping timeout: 260 seconds]
Suchit_ has quit [Read error: Connection reset by peer]
Suchit_ has joined #ruby-lang
justinmburrous has quit [Ping timeout: 250 seconds]
charliesome has joined #ruby-lang
|jemc| has quit [Ping timeout: 272 seconds]
sheldonh has joined #ruby-lang
<sheldonh> does rvm have a one-liner equivalent for: rvm use $(cat .ruby-version)@$(cat .ruby-gemset) --create
shubhamgoyal has quit [Read error: Connection reset by peer]
justinmburrous has joined #ruby-lang
shubhamgoyal has joined #ruby-lang
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shubhamgoyal has quit [Ping timeout: 260 seconds]
ikrima has joined #ruby-lang
Newbie0086 has joined #ruby-lang
Iskarlar has joined #ruby-lang
michd is now known as MichD
shubhamgoyal has joined #ruby-lang
justinmburrous has quit [Remote host closed the connection]
thomasxie has quit [Ping timeout: 260 seconds]
<yorickpeterse> morning
<sheldonh> yup :)
justinmburrous has joined #ruby-lang
skammer3 has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
emmesswhy has quit [Quit: This computer has gone to sleep]
emilsoman has quit [Quit: Leaving.]
skammer3 has quit [Ping timeout: 244 seconds]
apeiros_ has joined #ruby-lang
fullybaked has joined #ruby-lang
fullybaked has left #ruby-lang [#ruby-lang]
apeiros__ has joined #ruby-lang
apeiros has quit [Ping timeout: 246 seconds]
shubhamg_ has joined #ruby-lang
apeiros_ has quit [Ping timeout: 245 seconds]
shubhamgoyal has quit [Ping timeout: 260 seconds]
justinmburrous has quit [Remote host closed the connection]
<maloik> zzz broken computer is broken
charliesome has quit [Quit: zzz]
Suchit_ has quit [Read error: Connection reset by peer]
Suchit_ has joined #ruby-lang
charliesome has joined #ruby-lang
charliesome has quit [Client Quit]
<maloik> also, I think yorickpeterse cursed me... ever since his baruco lightning talk about oga my nokogiri has been acting up
Suchit__ has joined #ruby-lang
yfeldblum has joined #ruby-lang
Suchit_ has quit [Read error: Connection reset by peer]
chussenot has joined #ruby-lang
<yorickpeterse> justice has been served
yfeldblum has quit [Remote host closed the connection]
<maloik> colleagues are working on a security tool, just made an issue 'replace nokogiri' :D
yfeldblum has joined #ruby-lang
<maloik> sounds like a good plan if they intend to install it on a bunch of servers
apeiros__ is now known as apeiros
snoopybbt has quit [Ping timeout: 245 seconds]
<yorickpeterse> oh boy, pre 1.0 software in a security tool :P
skammer3 has joined #ruby-lang
arBmind has joined #ruby-lang
emilsoman has joined #ruby-lang
skammer3 has quit [Ping timeout: 272 seconds]
skade has joined #ruby-lang
justinmburrous has joined #ruby-lang
marr has joined #ruby-lang
ledestin_ has joined #ruby-lang
ledestin has quit [Ping timeout: 250 seconds]
ledestin_ is now known as ledestin
dangerousdave has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
justinmburrous has quit [Remote host closed the connection]
justinmburrous has joined #ruby-lang
mikecmpbll has joined #ruby-lang
justinmburrous has quit [Ping timeout: 272 seconds]
<maloik> I imagine by the time we're at 1.0 ourselves you'll be there too :-)
<yorickpeterse> actually, 1.0 should be there before the end of the year
<yorickpeterse> soon ™
imperator has joined #ruby-lang
<maloik> :D
<apeiros> yorickpeterse: oga is pure ruby, right?
justinmburrous has joined #ruby-lang
Newbie0086 has quit [Quit: 离开]
jo__ has quit [Quit: Connection closed for inactivity]
jhass|off is now known as jhass
gjaldon has joined #ruby-lang
t4nk692 has joined #ruby-lang
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mkaesz has joined #ruby-lang
<yorickpeterse> apeiros: mostly
<yorickpeterse> The XML lexer is partially C/Java
<yorickpeterse> but it only takes a second or so to compile
charliesome has joined #ruby-lang
gjaldon has quit []
schaerli has quit [Remote host closed the connection]
t4nk692 has quit [Ping timeout: 246 seconds]
dangerousdave has joined #ruby-lang
seank_ has quit [Read error: No route to host]
seank_ has joined #ruby-lang
TheToad has joined #ruby-lang
Demannu_ has joined #ruby-lang
haraoka has quit [Ping timeout: 272 seconds]
rtl_ has joined #ruby-lang
benlovel1 has joined #ruby-lang
hagabaka has quit [Write error: Broken pipe]
AmBienCeD has quit [Write error: Broken pipe]
justinmburrous has quit [Remote host closed the connection]
ramblinpeck has quit [Ping timeout: 467 seconds]
ramblinpeck has joined #ruby-lang
imajes has quit [Ping timeout: 467 seconds]
hagabaka has joined #ruby-lang
postmodern has quit [Quit: Leaving]
imajes has joined #ruby-lang
Demannu has quit [Write error: Broken pipe]
benlovell has quit [Write error: Broken pipe]
rtl has quit [Write error: Broken pipe]
AmBienCeD has joined #ruby-lang
thomasxie has joined #ruby-lang
ikrima has quit [Ping timeout: 263 seconds]
t4nk820 has joined #ruby-lang
<t4nk820> testing...
<t4nk820> Aha, I'm back!
<yorickpeterse> quick, hide
<t4nk820> Muhahahaha, hide your kinds, hide your wife/wives!
ledestin_ has joined #ruby-lang
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kyb3r_ has quit [Read error: Connection reset by peer]
ledestin has quit [Ping timeout: 272 seconds]
ledestin_ is now known as ledestin
arBmind has quit [Ping timeout: 272 seconds]
<yorickpeterse> kinds?
<yorickpeterse> can't really hide all of humanity
<t4nk820> Use private, that works.
sepp2k has joined #ruby-lang
dangerousdave has joined #ruby-lang
<imperator> you're back....from what?
<t4nk820> From the future.
arBmind has joined #ruby-lang
<t4nk820> I knew you would write that.
ryba has joined #ruby-lang
<t4nk820> Quick question: I'm trying to install the ruby-nxt library, but there is no gemfile. Any suggestions?
<imperator> looks quite old
<t4nk820> Is that a bad sign?
stamina has joined #ruby-lang
<imperator> t4nk820, do a "gem search -r lego"
<imperator> one of those looks like it might be current, and what you want
TheToad has quit [Read error: Connection reset by peer]
AmBienCeD has quit [Write error: Broken pipe]
<t4nk820> Hmm, thank you!
AmBienCeD has joined #ruby-lang
AmBienCeD has joined #ruby-lang
<imperator> yw
<t4nk820> Actually, I can't use that. I need the microphone support, wich doesn't seem to be implemented yet. Thus, I'll ned ruby-nxt.
<t4nk820> Still, I only get the 503 when trying gem install ruby-nxt. Should I wait until I get home?
schaerli has joined #ruby-lang
sarkyniin has joined #ruby-lang
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jsaak has quit [Ping timeout: 250 seconds]
skammer3 has joined #ruby-lang
<darix> t4nk820: which command exactly gives you 503?
<t4nk820> gem install ruby-nxt
<imperator> hm, so there is a ruby-nxt gem
shubhamg_ has quit [Remote host closed the connection]
<imperator> t4nk820, which platform are you on?
shubhamgoyal has joined #ruby-lang
shubhamgoyal has quit [Ping timeout: 260 seconds]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
dangerou_ has joined #ruby-lang
pskosinski has joined #ruby-lang
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thomasxie has quit [Ping timeout: 240 seconds]
AmBienCeD has quit [Write error: Broken pipe]
dangerou_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kith_ has joined #ruby-lang
kith has quit [Disconnected by services]
chussenot has quit [Quit: chussenot]
kith_ is now known as kith
chussenot has joined #ruby-lang
skammer3 has quit [*.net *.split]
tkuchiki has quit [*.net *.split]
ta has quit [*.net *.split]
Caius has quit [*.net *.split]
hellome has quit [*.net *.split]
jkyle has quit [*.net *.split]
hakunin has quit [*.net *.split]
ryba has quit [Quit: Odcházím]
robbyoconnor has quit [Ping timeout: 258 seconds]
dangerou_ has joined #ruby-lang
benlovel1 has quit [Ping timeout: 272 seconds]
marr has quit []
supergeek has joined #ruby-lang
justinmburrous has joined #ruby-lang
mkaesz has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
imperator has quit [Quit: Valete!]
apeiros has quit [Ping timeout: 244 seconds]
dagda1_ has quit [Read error: Connection reset by peer]
dagda1 has joined #ruby-lang
x0f_ has joined #ruby-lang
supergeek has quit [Quit: Goodbye, cruel world.]
AmBienCeD has joined #ruby-lang
Caius has joined #ruby-lang
ta has joined #ruby-lang
hakunin has joined #ruby-lang
skammer3 has joined #ruby-lang
jkyle has joined #ruby-lang
hellome has joined #ruby-lang
tkuchiki has joined #ruby-lang
hellome has quit [Max SendQ exceeded]
skammer has joined #ruby-lang
dangerou_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skade has quit [Quit: Computer has gone to sleep.]
skammer3 has quit [Quit: WeeChat 1.0]
tkuchiki has quit [Remote host closed the connection]
x0f has quit [Ping timeout: 272 seconds]
kirin` has quit [Ping timeout: 245 seconds]
marr has joined #ruby-lang
emrox has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
justinmburrous has quit [Remote host closed the connection]
kirin` has joined #ruby-lang
AmBienCeD has quit [Write error: Broken pipe]
danijoo has quit [Ping timeout: 250 seconds]
migbar has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
AmBienCeD has joined #ruby-lang
AmBienCeD has joined #ruby-lang
Lewix has joined #ruby-lang
danijoo has joined #ruby-lang
dangerou_ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 260 seconds]
druznek has quit [Ping timeout: 245 seconds]
clauswitt has joined #ruby-lang
toretore has joined #ruby-lang
fusillicode has joined #ruby-lang
thomasxie has joined #ruby-lang
hellangel7 has joined #ruby-lang
fusillicode1 has joined #ruby-lang
benlovell has joined #ruby-lang
dangerou_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fusillicode has quit [Ping timeout: 246 seconds]
darkness has joined #ruby-lang
darkness is now known as Guest69152
Guest69152 has quit [Max SendQ exceeded]
Guest69152 has joined #ruby-lang
hellangel7 has quit [Ping timeout: 272 seconds]
ldnunes has joined #ruby-lang
dangerousdave has joined #ruby-lang
shubhamgoyal has joined #ruby-lang
skade has joined #ruby-lang
shubhamgoyal has quit [Ping timeout: 272 seconds]
emrox has joined #ruby-lang
pskosinski has quit [Quit: Til rivido Idisti! | http://www.ido.li]
justinmburrous has joined #ruby-lang
chills42 has joined #ruby-lang
arooni-mobile has joined #ruby-lang
yalue has joined #ruby-lang
matp has quit [Ping timeout: 272 seconds]
t4nk820 has quit [Ping timeout: 246 seconds]
mkaesz has joined #ruby-lang
hellangel7 has joined #ruby-lang
Guest69152 has quit [Ping timeout: 272 seconds]
justinmburrous has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
justinmburrous has joined #ruby-lang
mkaesz has quit [Remote host closed the connection]
justinmburrous has quit [Ping timeout: 245 seconds]
arooni-mobile has quit [Ping timeout: 258 seconds]
chouhoulis has joined #ruby-lang
cornerma1 has joined #ruby-lang
mkaesz has joined #ruby-lang
cornerman has quit [Ping timeout: 250 seconds]
cornerma1 is now known as cornerman
chouhoulis has quit [Ping timeout: 272 seconds]
justinmburrous has joined #ruby-lang
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby-lang
dorei has joined #ruby-lang
Demannu_ is now known as Demannu
tkuchiki has quit [Remote host closed the connection]
mkaesz has quit [Remote host closed the connection]
ad_boot has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
sarkyniin has quit [Quit: Quitte]
[spoiler] has joined #ruby-lang
mkaesz has joined #ruby-lang
justinmburrous has quit [Remote host closed the connection]
relix has joined #ruby-lang
skammer has quit [Ping timeout: 260 seconds]
relix has quit [Client Quit]
emilsoman has quit [Quit: Leaving.]
emilsoman has joined #ruby-lang
emilsoman has quit [Client Quit]
t4nk347 has joined #ruby-lang
Forgetful_Lion has quit [Remote host closed the connection]
druznek has joined #ruby-lang
davispuh has joined #ruby-lang
arooni-mobile has joined #ruby-lang
<t4nk347> How do I declare that a variable only takes numbers, without using the #to_i afterwards?
justinmburrous has joined #ruby-lang
<yorickpeterse> You don't, Ruby isn't statically typed
<t4nk347> Oh. So I can't use like x.to_i = 1 ?
<oddmunds> no, use: x = 1
malconis has joined #ruby-lang
malconis has quit [Remote host closed the connection]
<t4nk347> And then x.to_i ?
<oddmunds> what are you trying to achieve?
<oddmunds> you could just use x
<oddmunds> (maybe i'm not understanding what you're trying to do)
<t4nk347> Not trying anything. Just making a theory.
scampbell has joined #ruby-lang
<oddmunds> you could use x.to_i to make sure what comes out is a Fixnum
malconis has joined #ruby-lang
emilsoman has joined #ruby-lang
jo__ has joined #ruby-lang
skammer has joined #ruby-lang
wolves_cs has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 240 seconds]
gjaldon has joined #ruby-lang
miqui has joined #ruby-lang
SuMo_D has joined #ruby-lang
AmBienCeD has quit [Write error: Broken pipe]
ta__ has joined #ruby-lang
ta has quit [Ping timeout: 249 seconds]
shubhamgoyal has joined #ruby-lang
<t4nk347> Alright. Now I know that I cannot declare the type of the variables. They are omnipotent. Thanks.
justinmburrous has quit [Remote host closed the connection]
<oddmunds> hehe, np
chouhoulis has joined #ruby-lang
chouhoul_ has joined #ruby-lang
chouhoulis has quit [Read error: Connection reset by peer]
chouhoul_ has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
chouhoulis has joined #ruby-lang
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arBmind has quit [Quit: Leaving.]
oleo has joined #ruby-lang
dangerousdave has joined #ruby-lang
t4nk347 has quit [Ping timeout: 246 seconds]
apeiros has quit [Remote host closed the connection]
nofxx has joined #ruby-lang
apeiros has joined #ruby-lang
rcvalle has joined #ruby-lang
rsl has quit [Quit: Textual IRC Client: www.textualapp.com]
justinmburrous has joined #ruby-lang
apeiros has quit [Ping timeout: 272 seconds]
rsl has joined #ruby-lang
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby-lang
Blaguvest has quit []
yfeldblum has joined #ruby-lang
charliesome has quit [Quit: zzz]
torrieri has joined #ruby-lang
apeiros has joined #ruby-lang
hellangel7 has quit [Ping timeout: 272 seconds]
mkaesz has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Ping timeout: 258 seconds]
justinmburrous has quit [Remote host closed the connection]
justinmburrous has joined #ruby-lang
gjaldon has quit [Remote host closed the connection]
hellangel7 has joined #ruby-lang
crunk_bear has joined #ruby-lang
pskosinski has joined #ruby-lang
Suchit__ has quit [Quit: Computer has gone to sleep.]
shinnya has joined #ruby-lang
justinmburrous has quit [Ping timeout: 260 seconds]
justinmburrous has joined #ruby-lang
kgrz_ has quit [Remote host closed the connection]
kgrz has joined #ruby-lang
arooni-mobile has joined #ruby-lang
kgrz has quit [Ping timeout: 240 seconds]
apeiros_ has joined #ruby-lang
apeiros has quit [Ping timeout: 272 seconds]
arooni-mobile has quit [Ping timeout: 245 seconds]
danromano has quit [Ping timeout: 272 seconds]
<yorickpeterse> Today I'm playing the game "Is this code used yes or no, and do I need to update it"
sheldonh has quit [Quit: enough r&d, time for some r&r]
<yorickpeterse> So far the verdict is "fukit git rm it"
JohnBat26 has quit [Read error: Connection reset by peer]
gjaldon has joined #ruby-lang
justinmburrous has quit [Remote host closed the connection]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
emilsoman has quit [Quit: Leaving.]
snsei has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
charliesome has joined #ruby-lang
snoopybbt has joined #ruby-lang
bradcliffe has joined #ruby-lang
snoopybbt has quit [Read error: Connection reset by peer]
snoopybbt has joined #ruby-lang
danromano has joined #ruby-lang
skammer has quit [Ping timeout: 272 seconds]
AKASkip has quit [Ping timeout: 240 seconds]
nathanstitt has joined #ruby-lang
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arBmind has joined #ruby-lang
JohnBat26 has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
yfeldblum has joined #ruby-lang
AmBienCeD has joined #ruby-lang
snsei has quit [Remote host closed the connection]
loincloth has joined #ruby-lang
yfeldblum has quit [Ping timeout: 244 seconds]
chouhoulis has quit [Ping timeout: 272 seconds]
whippythellama has joined #ruby-lang
banisterfiend 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]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
dstynchula has joined #ruby-lang
dstynchula has left #ruby-lang [#ruby-lang]
justinmburrous 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
banister has quit [Max SendQ exceeded]
mistym has joined #ruby-lang
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
gjaldon has quit [Remote host closed the connection]
gjaldon has joined #ruby-lang
dangerousdave has joined #ruby-lang
banister has joined #ruby-lang
mistym has quit [Remote host closed the connection]
snsei has joined #ruby-lang
enebo has joined #ruby-lang
oleo__ has joined #ruby-lang
bradcliffe has quit [Remote host closed the connection]
snsei has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
gjaldon has quit [Ping timeout: 260 seconds]
oleo is now known as Guest59953
Guest59953 has quit [Ping timeout: 240 seconds]
clauswitt has joined #ruby-lang
rippa has joined #ruby-lang
benlovell has quit [Ping timeout: 250 seconds]
tbuehlmann has quit [Quit: Leaving]
justinmburrous has quit [Remote host closed the connection]
kgrz has joined #ruby-lang
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shinnya has quit [Ping timeout: 246 seconds]
hellangel7 has quit [Remote host closed the connection]
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
koderok has quit [Quit: koderok]
mistym has joined #ruby-lang
snsei has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
justinmburrous has joined #ruby-lang
<eristic> Hi everyone. If I want User.find and User.all methods without resorting to a database, how would you suggest I go about it? Is this a situation for a class variable?
<ljarvis> eristic: a class method, probably. It really depends on what you're trying to do
solars has quit [Ping timeout: 258 seconds]
snsei has quit [Remote host closed the connection]
d-ash has joined #ruby-lang
dangerousdave has joined #ruby-lang
dangerousdave has quit [Client Quit]
<eristic> ljarvis: What I'm thinking is that I want to be able to confirm uniqueness of a user by name, and look them up. I'm aiming for a hash with the name as a key.
gjaldon has joined #ruby-lang
centrx has joined #ruby-lang
centrx has quit [Client Quit]
centrx has joined #ruby-lang
<ljarvis> eristic: here's a basic example you can work from https://gist.github.com/leejarvis/e87d93c636d592590058
<ljarvis> (this is just an example, I don't necessarily condone the use of this code as it is)
<eristic> ljarvis: I shall contemplate this.
Xzyx987X has quit [Ping timeout: 258 seconds]
yfeldblum has joined #ruby-lang
<yorickpeterse> Problem: some code does not do X
<yorickpeterse> Solution: lets just call that method multiple times in different places
<yorickpeterse> surely that will fix it
<ljarvis> I've missed you Yorick
<yorickpeterse> ignoring that it's already called in a before hook
<yorickpeterse> ljarvis: (¯ε¯ )
d-ash is now known as drew2
justinmburrous has quit [Remote host closed the connection]
<yorickpeterse> also found some code that basically did this:
<yorickpeterse> foo.update_attributes(....)
<yorickpeterse> foo.save
<yorickpeterse> foo.save
<ljarvis> ...
<yorickpeterse> 'cause 1 save is not enoguh!
<yorickpeterse> * enough
<ericwood> love it
<ljarvis> it's.. beautiful
<ericwood> we had someone do eval(params[:type]) instead of a whitelist with ActiveRecord::Base.const_get()
<ericwood> A++++ would remote code execute again
<ljarvis> mother of god
momomomomo has joined #ruby-lang
|jemc| has joined #ruby-lang
<ljarvis> some things are silly, that's plain fucked up
<ericwood> I've seen some shit, man
<yorickpeterse> Ruby really should emit a warning whenever somebody uses const_get in a Rails app
<ericwood> my most recent fave: def foo(options = {})
<ljarvis> how do these people get jobs, seriously
spastorino has joined #ruby-lang
<yorickpeterse> "WARNING: YOU PROBABLY JUST WANT TO USE A HASH INSTEAD OF USING USER INPUT"
danromano has quit [Ping timeout: 246 seconds]
<ericwood> where it fails because "options" is supposed to be a string
yfeldblum has quit [Ping timeout: 260 seconds]
<ericwood> I had to grep for examples of its usage to see
<ericwood> "oh cool I know that pattern"
<yorickpeterse> ljarvis: their employers lack the pedantics required to spot these problems
* ericwood calls method, watches it fail spectacularly
* ericwood reads examples, realizes the default value and variable name have no bearing on reality
drew2 has quit [Quit: WeeChat 0.3.7]
<ericwood> I'd give an excuse but this was from a long long time ago and said people no longer work here
<ljarvis> so story, when I first started my previous job, I was so nervous coding with someone breathing down my back, I refactored some code that used any?(&:zero?) to handle nil values and wrote it: any? { |c| c.respond_to?(:zero?) && c.zero? }
<ljarvis> it wasn't a fun moment
<ericwood> which is good because we'd give them an asswhooping if they were still around
<yorickpeterse> ljarvis: meh, that's not really that bad
<yorickpeterse> The canonical Ruby way is as following:
d-ash has joined #ruby-lang
<yorickpeterse> values.compact.any?(&:zero?)
danromano has joined #ruby-lang
<yorickpeterse> better always call compact
<yorickpeterse> For best measurement, call it multiple times
<yorickpeterse> values.compact.any?(&:zero?).compact # darn those pesky nils, we should've had monads instead!
d-ash has quit [Client Quit]
<ljarvis> aye
<yorickpeterse> https://github.com/YorickPeterse/oga/pull/55#issuecomment-58198646 also this is a nice way of saying "lol too lazy"
<yorickpeterse> The pedantics police makes no exceptions
drew2 has joined #ruby-lang
<yorickpeterse> While we're at it, the results of some refactoring plus moving this big fat app over to Dotenv:
<yorickpeterse> "Showing 84 changed files with 754 additions and 5,130 deletions."
<yorickpeterse> The amount of hidden credentials was....interesting
<yorickpeterse> (as in, hidden in random files)
<ljarvis> lol @ that PR
<yorickpeterse> Yeah the PR is stupid simple, but I've had too many drive-by commits so I'd like people to learn
<yorickpeterse> "here I fixed this for you" "can you change X?" "lol no"
justinmburrous has joined #ruby-lang
<ljarvis> your project, nothing wrong with your response
momomomomo has quit [Quit: momomomomo]
<yorickpeterse> Having said that, I've had plenty of people actually put some solid effort into their changes
danromano has quit [Ping timeout: 260 seconds]
symm- has joined #ruby-lang
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
__butch__ has joined #ruby-lang
justinmburrous has quit [Remote host closed the connection]
cmhobbs has joined #ruby-lang
dangerousdave has joined #ruby-lang
gss has joined #ruby-lang
chussenot has quit [Ping timeout: 246 seconds]
dagda1 has quit [Quit: Textual IRC Client: www.textualapp.com]
dagda1 has joined #ruby-lang
solars has joined #ruby-lang
danromano has joined #ruby-lang
imkmf has joined #ruby-lang
s1kx has quit [Quit: Leaving]
snoopybbt has quit [Quit: leaving]
thomasxie has quit [Remote host closed the connection]
gjaldon has quit [Remote host closed the connection]
schaerli has joined #ruby-lang
momomomomo has joined #ruby-lang
jo__ has quit [Quit: Connection closed for inactivity]
jo__ has joined #ruby-lang
hellangel7 has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
hellangel7 has quit [Max SendQ exceeded]
hellangel7 has joined #ruby-lang
davispuh has quit [K-Lined]
hellangel7 has quit [Max SendQ exceeded]
momomomomo has quit [Quit: momomomomo]
Iskarlar has quit [Ping timeout: 272 seconds]
michaeldeol has joined #ruby-lang
mistym has quit [Remote host closed the connection]
jayne has quit [Read error: Connection reset by peer]
jayne has joined #ruby-lang
__butch__ has joined #ruby-lang
dwknoxy has joined #ruby-lang
amsi has joined #ruby-lang
iliketurtles has joined #ruby-lang
wizonesolutions has quit [Remote host closed the connection]
beawesomeinstead has quit [Remote host closed the connection]
jo__ has quit [Remote host closed the connection]
spastorino has quit [Remote host closed the connection]
bcardarella has quit [Remote host closed the connection]
ramblinpeck has quit [Remote host closed the connection]
nomadicoder has quit [Remote host closed the connection]
akahn has quit [Write error: Broken pipe]
<[spoiler]> yorickpeterse, I'd ask them to do that, too lmao
<[spoiler]> Also, good work on oga, I remember when you were just starting it :D
tectonic has joined #ruby-lang
<[spoiler]> It feels like I'm watching someone raise a child
tectonic has quit [Client Quit]
iliketurtles has quit [Quit: zzzzz…..]
koderok has joined #ruby-lang
koderok has quit [Remote host closed the connection]
justinmburrous has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
RobertBirnie has joined #ruby-lang
mistym has joined #ruby-lang
<darix> [spoiler]: at least he wasnt breast feeding it in public.
arBmind has quit [Quit: Leaving.]
schaerli has quit [Remote host closed the connection]
justinmburrous has quit [Remote host closed the connection]
thagomizer has joined #ruby-lang
bcardarella has joined #ruby-lang
akahn has joined #ruby-lang
clauswitt has joined #ruby-lang
beawesomeinstead has joined #ruby-lang
stamina has quit [Quit: WeeChat 1.0.1]
elia has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
momomomomo has joined #ruby-lang
tylersmith has joined #ruby-lang
jxpx777 has joined #ruby-lang
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chancancode has joined #ruby-lang
emilsoman has joined #ruby-lang
nomadicoder has joined #ruby-lang
uberjar has joined #ruby-lang
AlJaMa has left #ruby-lang ["Bye!"]
<uberjar> hi. is there a way to remove the first x items from an Array ? (mutate the array)
jlpeters_ has joined #ruby-lang
<uberjar> Array#take! does not exist :(
momomomomo has quit [Quit: momomomomo]
spastorino has joined #ruby-lang
wizonesolutions has joined #ruby-lang
<[spoiler]> uberjar, mutate the array in place or, just get a new array?
<uberjar> mutate please
<uberjar> I want to get the first 30 and have the remainder left in the array
<[spoiler]> there's delete_at
chouhoulis has joined #ruby-lang
<uberjar> I thought delete_at was for 1 item
<uberjar> can I pass it a range ?
<uberjar> hrmm
<[spoiler]> 30.times {|i| arr.delete_at i}
<[spoiler]> or slice
<[spoiler]> Array#slice!
allolex_ has joined #ruby-lang
<[spoiler]> Array#slice! 0..30
<uberjar> ok, I'll use a loop
<uberjar> OUUHhhhhh
<uberjar> that looks like what I"m looking for
ramblinpeck has joined #ruby-lang
<[spoiler]> maybe (not 100% sure) using the 2-parameter version might be faster `Array#slice 0, 30`
<uberjar> yep Array#slice! is 100% exactly what I needed
<[spoiler]> sorry, I meant slice!
emrox has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
uberjar has quit [Quit: cheers]
chills42 has quit [Ping timeout: 258 seconds]
loincloth has quit [Read error: Connection reset by peer]
imperator has joined #ruby-lang
loincloth has joined #ruby-lang
<[spoiler]> nah it should be about the sameish, from looking at the implementation
jo__ has joined #ruby-lang
arBmind has joined #ruby-lang
chills42 has joined #ruby-lang
arBmind has quit [Client Quit]
jbardin has joined #ruby-lang
GBrawl has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
wallerdev has joined #ruby-lang
hahuang65 has joined #ruby-lang
symm- has quit [Quit: Leaving...]
yfeldblum has joined #ruby-lang
matp has joined #ruby-lang
iliketurtles has joined #ruby-lang
seanosaur has joined #ruby-lang
AKASkip has joined #ruby-lang
yfeldblum has quit [Ping timeout: 244 seconds]
thagomizer has quit [Quit: Leaving.]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has quit [Remote host closed the connection]
wolves_cs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
justinmburrous has joined #ruby-lang
clauswitt has joined #ruby-lang
chills42 has quit [Remote host closed the connection]
emmesswhy has joined #ruby-lang
robbyoconnor has joined #ruby-lang
Musashi007 has joined #ruby-lang
chills42 has joined #ruby-lang
p0pe has joined #ruby-lang
chussenot has joined #ruby-lang
druznek has quit [Ping timeout: 245 seconds]
emilsoman has quit [Quit: Leaving.]
chris2 has quit [Remote host closed the connection]
justinmburrous has quit [Remote host closed the connection]
Voker57 has joined #ruby-lang
p0pe has quit [Quit: Page closed]
wolves_cs has joined #ruby-lang
justinmburrous has joined #ruby-lang
tectonic has joined #ruby-lang
seanosaur has quit []
chris2 has joined #ruby-lang
jhass is now known as jhass|off
emmesswhy has quit [Quit: This computer has gone to sleep]
emmesswhy has joined #ruby-lang
Austin__ has joined #ruby-lang
justinmburrous has quit [Remote host closed the connection]
MichD is now known as michd
yfeldblum has joined #ruby-lang
imperator has quit [Quit: Valete!]
chouhoulis has joined #ruby-lang
jhass|off is now known as jhass
postmodern has joined #ruby-lang
yfeldblum has quit [Ping timeout: 250 seconds]
Austin__ has quit [Quit: Leaving.]
emilsoman has joined #ruby-lang
seank__ has joined #ruby-lang
Austin__ has joined #ruby-lang
dangerousdave has joined #ruby-lang
thagomizer has joined #ruby-lang
seank_ has quit [Ping timeout: 260 seconds]
skammer has joined #ruby-lang
<yorickpeterse> [spoiler]: 9 months now
<yorickpeterse> 224 days
<yorickpeterse> so basically yes, a babby :P
<[spoiler]> :D
Austin__ has quit [Quit: Leaving.]
Austin__ has joined #ruby-lang
bruno- has joined #ruby-lang
nofxx_ has joined #ruby-lang
momomomomo has joined #ruby-lang
klmlfl has joined #ruby-lang
nofxx has quit [Ping timeout: 245 seconds]
iliketurtles has quit [Quit: Textual IRC Client: www.textualapp.com]
loincloth has quit [Remote host closed the connection]
gjaldon has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 246 seconds]
gjaldon has quit [Client Quit]
justinmburrous has joined #ruby-lang
lcdhoffman has joined #ruby-lang
oleo__ has quit [Quit: Verlassend]
michd is now known as MichD
iliketurtles has joined #ruby-lang
emilsoman has quit [Quit: Leaving.]
a1digital has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
emmesswhy has quit [Quit: Leaving]
seank__ has quit [Remote host closed the connection]
seank_ has joined #ruby-lang
tkuchiki has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
a1digital has left #ruby-lang [#ruby-lang]
justinmburrous has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 245 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apeiros has quit [Ping timeout: 272 seconds]
momomomomo has joined #ruby-lang
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gss_ has joined #ruby-lang
Musashi007 has quit [Read error: Connection reset by peer]
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xzyx987X has joined #ruby-lang
lun_ has joined #ruby-lang
gss_ has left #ruby-lang [#ruby-lang]
Musashi007 has joined #ruby-lang
gss has quit [Ping timeout: 244 seconds]
kgrz has quit [Ping timeout: 258 seconds]
havenwood has joined #ruby-lang
pskosinski_ has joined #ruby-lang
dagda1 has joined #ruby-lang
chussenot has quit [Quit: chussenot]
yalue has quit [Quit: Leaving]
gss has joined #ruby-lang
<yorickpeterse> blegh, backups suck
gss has left #ruby-lang [#ruby-lang]
<yorickpeterse> especially when juggling with encrypted drives
<yorickpeterse> also my naming is a bit confusing I think
oleo has joined #ruby-lang
<yorickpeterse> I have two drives: Nebula and Nova. Nova has a backup of Nebula, in a directory called nebula
<yorickpeterse> so you get shit like nova/nebula/super-secret-stuff
<yorickpeterse> but nebula doesn't have a backup of nova
pskosinski has quit [Ping timeout: 245 seconds]
<yorickpeterse> Once upon a time I used GPG for encryption. Then my key expired
<yorickpeterse> ._.
<yorickpeterse> (for backing up data)
dagda1 has quit [Ping timeout: 245 seconds]
emilsoman has joined #ruby-lang
Xzyx987X has quit [Ping timeout: 245 seconds]
druznek has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
iliketurtles has quit [Quit: zzzzz…..]
chussenot has joined #ruby-lang
clauswitt has quit [Quit: Textual IRC Client: www.textualapp.com]
dagda1 has joined #ruby-lang
karamazov has joined #ruby-lang
dagda1 has quit [Read error: Connection reset by peer]
dagda1 has joined #ruby-lang
Xzyx987X has joined #ruby-lang
havenwood has quit []
loincloth has joined #ruby-lang
kgrz has joined #ruby-lang
justinmburrous has joined #ruby-lang
apeiros has joined #ruby-lang
robbyoconnor has joined #ruby-lang
emilsoman has quit [Quit: Leaving.]
dangerousdave has joined #ruby-lang
schaerli has joined #ruby-lang
sarkyniin has joined #ruby-lang
imperator has joined #ruby-lang
robbyoconnor has quit [Quit: Konversation terminated!]
<imperator> apparently redefining File.exist? is trickier than I thought
iliketurtles has joined #ruby-lang
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
klmlfl_ has joined #ruby-lang
klmlfl_ has quit [Remote host closed the connection]
klmlfl_ has joined #ruby-lang
justinmburrous has quit [Remote host closed the connection]
klmlfl has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby-lang
* yorickpeterse dusts off a kitchen towel and slaps it at imperator
sepp2k has quit [Quit: Konversation terminated!]
pskosinski_ is now known as pskosinski
karamazov has quit []
<[spoiler]> imperator, why'd you do that at all, though?
ohsix has quit [Quit: Reconnecting]
ohsix has joined #ruby-lang
<yorickpeterse> they've gone mad
amsi has quit [Ping timeout: 258 seconds]
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby-lang
symm- has joined #ruby-lang
<[spoiler]> That's a plausible explanation :D
yfeldblum has joined #ruby-lang
michaeldeol has joined #ruby-lang
_ht has quit [Remote host closed the connection]
<imperator> [spoiler], trying to comply with the spec for File.exist on stale links
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
sepp2k has joined #ruby-lang
<[spoiler]> ah
sharpmachine has joined #ruby-lang
[spoiler] has quit [Remote host closed the connection]
tectonic has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
druznek has quit [Ping timeout: 260 seconds]
pr0ton_ has joined #ruby-lang
jbardin has quit [Quit: jbardin]
schaerli has quit [Remote host closed the connection]
chills42 has quit [Ping timeout: 244 seconds]
scampbell has quit [Remote host closed the connection]
justinmburrous has joined #ruby-lang
tectonic has joined #ruby-lang
tectonic has quit [Max SendQ exceeded]
imkmf has quit [Ping timeout: 245 seconds]
jbardin has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
Austin__ has quit [Quit: Leaving.]
elia has joined #ruby-lang
wallerdev has joined #ruby-lang
sarkyniin has quit [Quit: Quitte]
elia has quit [Client Quit]
pr0ton_ has quit [Quit: pr0ton_]
sharpmachine has quit [Remote host closed the connection]
shashwat001_ has joined #ruby-lang
<shashwat001_> hi
GBrawl has quit [Quit: Computer has gone to sleep.]
<shashwat001_> anyone there?
<shashwat001_> hey I had ruby 1.9.1 installed along with rubygem
<shashwat001_> I wanted to upgrade to ruby 1.9.3
<shashwat001_> so I completely uninstalled ruby and rubygem
<shashwat001_> from apt-get
<shashwat001_> hey
justinmburrous has quit [Remote host closed the connection]
<shashwat001_> ok
iliketurtles has quit [Quit: zzzzz…..]
GBrawl_ has joined #ruby-lang
momomomomo has joined #ruby-lang
Phrogz_ has joined #ruby-lang
Phrogz_ is now known as Phrogz
Lewix has quit [Remote host closed the connection]
druznek has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
justinmburrous has joined #ruby-lang
Lewix has joined #ruby-lang
imkmf has joined #ruby-lang
elia has joined #ruby-lang
michaeldeol has joined #ruby-lang
charliesome has joined #ruby-lang
Phrogz_ has joined #ruby-lang
Phrogz has quit [Disconnected by services]
Phrogz_ is now known as Phrogz
<Phrogz> >> module MyMod; class Bar; def doit; end; end; end; mod = 'MyMod'; klass='Bar'; meth='doit'; Object.const_get("#{mod}::#{klass}").instance_methods.include?( meth.to_sym )
<eval-in_> Phrogz => true (https://eval.in/202847)
<Phrogz> oops, wrong channel, sorry
sharpmachine has joined #ruby-lang
florinandrei has joined #ruby-lang
<florinandrei> when calculating avg = average(datapoints) sometimes some data points are nil, and that makes the average bad
<florinandrei> is there a way to kill the nil points before they reach the average() calculation?
<florinandrei> or before they even reach "unless datapoints.empty?" - that would be great, because all data points = nil means I don't have any data points, and I want that condition to trigger
nemec_ has joined #ruby-lang
parenjitsu has joined #ruby-lang
<florinandrei> (in case it's not already obvious, I'm new to Ruby)
iliketurtles has joined #ruby-lang
<wallerdev> thats a lot of code
<wallerdev> lol
<wallerdev> >> [nil, 2, 3, 4, nil].compact
<eval-in_> wallerdev => [2, 3, 4] (https://eval.in/202849)
<darix> wallerdev: you stole my example!
emmesswhy has joined #ruby-lang
<darix> well amost
<wallerdev> sorry
<darix> almost
<wallerdev> lol
<darix> >> [nil,1,2,3,nil,4].compact
<eval-in_> darix => [1, 2, 3, 4] (https://eval.in/202850)
<darix> florinandrei: there
emmesswhy has quit [Client Quit]
nemec has quit [Ping timeout: 246 seconds]
symm- has quit [Ping timeout: 272 seconds]
tkuchiki has joined #ruby-lang
justinmburrous has quit [Remote host closed the connection]
druznek has quit [Quit: Leaving]
druznek has joined #ruby-lang
druznek has quit [Read error: Connection reset by peer]
<Voker57> can I submit a Proc to a function that takes a block?
<florinandrei> the problem is, metric looks like this:
<florinandrei> {"target"=>"aws.aws.us-west-1.www.us-west-1-001.os.cpu.user", "datapoints"=>[[0.25, 1412714520], [0.25, 1412714580], [0.25, 1412714640], [0.0, 1412714700], [nil, 1412714760]]}
tkuchiki has quit [Ping timeout: 250 seconds]
<florinandrei> .compact alone doesn't seem to do anything
<apeiros> Voker57: yes, use & to tell ruby to treat it as a block
<apeiros> >> iter = proc { |x| x + 2 }; [1,2,3].map(&iter)
<eval-in_> apeiros => [3, 4, 5] (https://eval.in/202851)
<florinandrei> the solution must be somewhere in .collect()
<florinandrei> I must tell .collect{} to avoid collecting the nil points
amsi has joined #ruby-lang
<Voker57> thanks
<darix> florinandrei: that would be a start
<florinandrei> darix: but how?
<darix> i dont know. you could tell it to treat nil as 0
<darix> or
<darix> well
<darix> find out *why* the value is nil and fix that
charliesome has quit [Quit: zzz]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<florinandrei> the value is nil because the data backend is lagging a bit
<darix> e.g. error out in the collection phase
benanne has joined #ruby-lang
<darix> so dont store stuff into your DB in that case?
<florinandrei> that's a change orders of magnitude bigger than fixing a bit of code
<florinandrei> I was hoping some of the Ruby experts here could guide this newbie
<darix> either skip them when rendering or when collecting
<Phrogz> florinandrei: mycollection.compact.collect{ ... }
<darix> -datapoints = metric['datapoints'].collect {|p| p[0].to_f}
<Phrogz> Oh, sorry, I'm now reading above.
<Phrogz> datapoints = metric['datapoints'].reject{ |a,b| a.nil? }.collect{ ... }
<darix> +datapoints = metric['datapoints'].reject {|e| e[0].nil? or e[1].nil? }.collect {|p| p[0].to_f}
<Phrogz> florinandrei: Are you averaging the first value, or the last value, or both?
<florinandrei> okay, that looks more promising, Phrogz and darix. let me test it
<Phrogz> You could also metric['datapoints'].map(&:first).compact
<Phrogz> (If you only care about the first value, for example.)
<florinandrei> Phrogz: it's a handful of values usually, the average is across all of them.
<darix> Phrogz: you forgot the .map(&:to_f)
<darix> :p
<Phrogz> florinandrei: You have pairs of values in there; are you using both of them?
<florinandrei> the average is on the first value. the second value is just a timestamp in seconds since Unix epoch
<Phrogz> florinandrei: Then points = metric['datapoints'].map(&:first).compact; average = points.inject(:+)/points.length.to_f
<Phrogz> Or, if you want to treat the nils as 0 values: points = metric['datapoints'].map(&:first).map(&:to_f); average = points.inject(:+) / points.length
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<florinandrei> nil is currently treated as zero somehow (don't know how) and that's what I need to avoid
<darix> Phrogz: but points = metric['datapoints'].map(&:first).map(&:to_f) would be pretty close to the original code no?
<Phrogz> darix: Perhaps I missed it. In any case, florinandrei wants them ignored, which the .map(&:first).compact will do.
<darix> florinandrei: but it would be more correct than what you do now
<darix> Phrogz: see there ;)
iliketurtles has quit [Quit: zzzzz…..]
<florinandrei> wow, this seems to work!
<florinandrei> datapoints = metric['datapoints'].map(&:first).compact
<Phrogz> Amazing :)
<florinandrei> darix: wait, is there a problem with that change?
<darix> well
<Phrogz> FYI, that is a shorter way of writing: metric['datapoints'].map{ |value_and_timestamp| value_and_timestamp.first }.compact
dagda1 has joined #ruby-lang
<darix> if the rest of the code assumes that it is the value for every 5 minute
<darix> then yes
<florinandrei> um... there are no assumptions. the data store collects data a a fixed frequency (1 min in my case, but it doesn't matter). this Ruby script then grabs the last few points (configurable via -p) and performs averages on the collected chunk
pskosinski has quit [Quit: Til rivido Idisti! | http://www.ido.li]
<florinandrei> the assumption is that data points are at fixed intervals, but size of interval, and number of collected points are not assumed anywhere
<florinandrei> I just run it as check-stats.rb -p -5mins and it grabs the last 5 items
<florinandrei> but I could change the interval if I need to
gianlucadv has quit [Ping timeout: 258 seconds]
<florinandrei> Phrogz: so if all data points are null, then it would trigger "unless datapoints.empty?" below, right?
<florinandrei> I mean, it would skip that part
sharpmachine has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
elia has quit [Quit: Computer has gone to sleep.]
crunk_bear has quit [Ping timeout: 246 seconds]
emmesswhy has joined #ruby-lang
MichD is now known as michd
__butch__ has quit [Quit: Leaving.]
klmlfl has joined #ruby-lang
sharpmachine has joined #ruby-lang
sleepee has joined #ruby-lang
dangerousdave has joined #ruby-lang
klmlfl_ has quit [Ping timeout: 240 seconds]
<florinandrei> well, I've done some tests and it seems to work as expected. Thanks everyone!
Asher has quit [Quit: Leaving.]
bruno- has quit [Ping timeout: 246 seconds]
arBmind has joined #ruby-lang
jdecuirm has quit [Ping timeout: 258 seconds]
jdecuirm has joined #ruby-lang
chouhoul_ has joined #ruby-lang
solars has quit [Ping timeout: 245 seconds]
Voker57 has quit [Read error: Connection reset by peer]
chouhoulis has quit [Ping timeout: 244 seconds]
Phrogz_ has joined #ruby-lang
Phrogz has quit [Disconnected by services]
Phrogz_ is now known as Phrogz
chussenot has quit [Quit: chussenot]
kwd has quit [Quit: I'm using a Free IRC Bouncer from BNC4FREE - http://bnc4free.com/]
tmatthews0020 has joined #ruby-lang
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GBrawl_ has quit [Quit: Lingo - http://www.lingoirc.com]
dangerousdave has joined #ruby-lang
malconis_ has joined #ruby-lang
charliesome has joined #ruby-lang
kwd has joined #ruby-lang
migbar has quit [Remote host closed the connection]
migbar has joined #ruby-lang
malconis has quit [Ping timeout: 272 seconds]
bruno- has joined #ruby-lang
Asher has joined #ruby-lang
amsi has quit [Ping timeout: 245 seconds]
amsi has joined #ruby-lang
migbar has quit [Ping timeout: 272 seconds]
florinandrei has left #ruby-lang ["Leaving"]
tmatthews0020 has left #ruby-lang [#ruby-lang]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby-lang
Asher has quit [Ping timeout: 272 seconds]
kwd has quit [Ping timeout: 272 seconds]
Asher has joined #ruby-lang
iliketurtles has joined #ruby-lang
fusillicode has joined #ruby-lang
fusillicode has quit [Client Quit]
kwd has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fusillicode1 has quit [Ping timeout: 272 seconds]
skammer1 has joined #ruby-lang
cmhobbs has quit [Ping timeout: 245 seconds]
momomomomo has quit [Quit: momomomomo]
JonaiLive has joined #ruby-lang
<JonaiLive> Hello
JohnBat26 has quit [Ping timeout: 240 seconds]
michaeldeol has joined #ruby-lang
araujo has quit [Ping timeout: 272 seconds]
waxjar has quit [Ping timeout: 272 seconds]
<JonaiLive> ?
skammer has quit [Ping timeout: 272 seconds]
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
JonaiLive_ has joined #ruby-lang
waxjar has joined #ruby-lang
<JonaiLive_> Hello
araujo has joined #ruby-lang
JonaiLive has quit [Ping timeout: 246 seconds]
malconis_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
justinmburrous has joined #ruby-lang
lun_ has quit [Remote host closed the connection]
whippythellama has quit [Quit: whippythellama]
JonaiLive_ has quit [Ping timeout: 246 seconds]
shashwat001_ has quit [Quit: Leaving]
dabradley has quit [Ping timeout: 246 seconds]
apeiros has quit [Ping timeout: 250 seconds]
apeiros has joined #ruby-lang
florinandrei has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
<ericwood> hi
EvilJStoker has quit [Ping timeout: 260 seconds]
EvilJStoker has joined #ruby-lang
justinmburrous has quit [Remote host closed the connection]
dabradley has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
justinmburrous has joined #ruby-lang
tkuchiki has quit [Ping timeout: 260 seconds]
sharpmachine has quit [Remote host closed the connection]
dorei has quit []
chouhoulis has quit [Ping timeout: 272 seconds]
spastorino has quit [Quit: Connection closed for inactivity]
emmesswhy has quit [Quit: Leaving]
justinmburrous has quit [Remote host closed the connection]
benanne has quit [Quit: kbai]
seank_ has quit [Read error: Connection reset by peer]
seank_ has joined #ruby-lang
imkmf has quit [Ping timeout: 245 seconds]
klmlfl has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
skammer1 has quit [Ping timeout: 258 seconds]
wolves_cs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
justinmburrous has joined #ruby-lang
thomasxie has joined #ruby-lang
torrieri has quit [Quit: Leaving...]
iliketurtles has quit [Quit: zzzzz…..]
marr has quit [Ping timeout: 272 seconds]
imkmf has joined #ruby-lang
emmesswhy has joined #ruby-lang
justinmburrous has quit [Remote host closed the connection]
toretore has quit [Quit: This computer has gone to sleep]
iliketurtles has joined #ruby-lang
RobertBirnie has quit [Ping timeout: 272 seconds]
<florinandrei> in a loop, I have this line:
<florinandrei> message += "#{msg} "
<florinandrei> after the loop, message is printed as all those msg chunks separated by whitespace
<florinandrei> if I do this instead:
<florinandrei> message += "#{msg}\n"
<florinandrei> then at the end the msg chunks are separated by newline when printed out
<florinandrei> so far so good
<florinandrei> but if I do this:
<florinandrei> message += "#{msg}#{config[:separator]}"
<florinandrei> and pass the separator as a command line flag (--separator "\n")
<florinandrei> then the msg chunks are separated by a backslash and the letter n
<florinandrei> why?
<whitequark> because your shell does not interpret escape sequences like \n
<whitequark> it just treats it as a backslash and letter n, as you noticed.
<whitequark> essentially, writing \n in a ruby double-quoted string and \n in shell has completely different meanings.
<florinandrei> so how can I pass any separator I want as a command line option? I don't want to hardcode \n as a separator, I want to choose later
sleepee has quit [Quit: Leaving]
<whitequark> that's surprisingly problematic
<florinandrei> also, I still don't understand why message += "#{msg}\n" actually prints the msg chunks separated by newline
<whitequark> you can force your (bash) shell to interpret the escape by using $'\n' instead of just "\n"
AKASkip has quit [Ping timeout: 244 seconds]
jonr22 has joined #ruby-lang
justinmburrous has joined #ruby-lang
torrieri has joined #ruby-lang
|jemc| has quit [Ping timeout: 272 seconds]
rkazak has joined #ruby-lang
imkmf has quit [Ping timeout: 245 seconds]
jonr22 has left #ruby-lang [#ruby-lang]
jhass is now known as jhass|off