baweaver changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
juanpablo_ has quit [Ping timeout: 244 seconds]
Yzguy has quit [Quit: Zzz...]
ngscheurich has joined #ruby
Yzguy has joined #ruby
agent_white has quit [Quit: bbl]
shadeslayer has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
shadeslayer has joined #ruby
Zai00 has quit [Quit: Zai00]
nahtnam has joined #ruby
DLSteve has quit [Ping timeout: 255 seconds]
leat2 has joined #ruby
rakm has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
khebbie has joined #ruby
dgutierrez1287 has joined #ruby
khebbie has quit [Remote host closed the connection]
GarethAdams has quit [Ping timeout: 252 seconds]
stardiviner has joined #ruby
laphlaw has quit [Ping timeout: 246 seconds]
michaeldeol has quit [Ping timeout: 246 seconds]
jdawgaz has joined #ruby
dgutierrez1287 has quit [Ping timeout: 260 seconds]
poli has quit [Ping timeout: 255 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ngscheurich has quit [Ping timeout: 246 seconds]
poli has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dopamean_ has quit [Ping timeout: 240 seconds]
GarethAdams has joined #ruby
weemsledeux has joined #ruby
petricore has quit [Quit: Textual IRC Client: www.textualapp.com]
jgpawletko has joined #ruby
jgpawletko has quit [Client Quit]
senayar has joined #ruby
senayar has joined #ruby
Lucky__ has joined #ruby
maletor has quit []
michael_mbp has quit [Excess Flood]
tkuchiki has joined #ruby
dgs has quit [Quit: dgs]
robbyoconnor has joined #ruby
michael_mbp has joined #ruby
marr has quit [Ping timeout: 265 seconds]
tkuchiki has quit [Ping timeout: 244 seconds]
huddy has quit [Quit: Connection closed for inactivity]
arescorpio has joined #ruby
bkxd has quit [Ping timeout: 250 seconds]
EllisTAA has quit [Quit: EllisTAA]
dorei has quit []
rbowlby has quit [Remote host closed the connection]
karapetyan has joined #ruby
rbowlby has joined #ruby
roxtrongo has quit [Remote host closed the connection]
karapetyan has quit [Ping timeout: 250 seconds]
rbowlby has quit [Remote host closed the connection]
brendan- is now known as bmurts
dopamean_ has joined #ruby
keen__________18 has joined #ruby
Jardayn has quit [Quit: Leaving]
n_blownapart has quit [Remote host closed the connection]
roxtrongo has joined #ruby
keen__________17 has quit [Ping timeout: 256 seconds]
podman has quit [Quit: Connection closed for inactivity]
r_baron has quit [Ping timeout: 260 seconds]
AntKnee has quit [Quit: Connection closed for inactivity]
deject3d has quit [Quit: Computer has gone to sleep.]
baweaver has joined #ruby
symm- has quit [Read error: Connection reset by peer]
bricker has quit [Ping timeout: 240 seconds]
deject3d has joined #ruby
Neverdie has quit [Quit: http://radiux.io/]
baweaver has quit [Ping timeout: 265 seconds]
mwlang has quit [Quit: mwlang]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bootstrappm has left #ruby [#ruby]
Neverdie has joined #ruby
havenwood has joined #ruby
jenrzzz_ has quit [Ping timeout: 264 seconds]
rbennacer has joined #ruby
chouhoulis has joined #ruby
mleung has quit [Quit: mleung]
roxtrongo has quit [Remote host closed the connection]
EllisTAA has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bkxd has joined #ruby
Yzguy has quit [Quit: Zzz...]
Yzguy has joined #ruby
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
meph has quit [Remote host closed the connection]
spence6245_ has joined #ruby
<spence6245_> exercism.io?
charliesome has joined #ruby
charliesome has quit [Client Quit]
Yzguy has quit [Ping timeout: 252 seconds]
wildlander has quit [Quit: Saliendo]
rbennacer has quit [Remote host closed the connection]
<nofxx> so here where every monster, spaceship, big bosses come from http://mathworld.wolfram.com/PascalsTriangle.html
<nofxx> in atari
skade has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
<deject3d> but what about E.T
charliesome has joined #ruby
texasmade has joined #ruby
freerobby has quit [Client Quit]
skade has joined #ruby
psy_ has quit [Ping timeout: 246 seconds]
texasmade has left #ruby [#ruby]
EllisTAA has quit [Quit: EllisTAA]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pupeno has joined #ruby
chills42 has joined #ruby
juanpablo_ has joined #ruby
sampai has quit [Ping timeout: 244 seconds]
sampai has joined #ruby
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
startupality has quit [Quit: startupality]
sampai has quit [Client Quit]
shadoi has quit [Quit: Leaving.]
Pupeno has quit [Ping timeout: 244 seconds]
juanpablo_ has quit [Ping timeout: 240 seconds]
towski_ has quit [Remote host closed the connection]
devbug has joined #ruby
casadei_ has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
EllisTAA has joined #ruby
ramfjord has quit [Ping timeout: 268 seconds]
d5sx43 has joined #ruby
leat2 has quit [Ping timeout: 240 seconds]
Gnomethrower has quit [Quit: Textual IRC Client: www.textualapp.com]
charliesome has joined #ruby
xtsee has quit [Quit: Changing server]
David27 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
charliesome has quit [Client Quit]
zipace has quit [Read error: Connection reset by peer]
khebbie has joined #ruby
khebbie has quit [Remote host closed the connection]
dotix has joined #ruby
nahtnam has quit [Quit: Connection closed for inactivity]
pontiki has joined #ruby
michael_mbp has quit [Excess Flood]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
michael_mbp has joined #ruby
dotix has quit [Ping timeout: 268 seconds]
d5sx43 has quit [Remote host closed the connection]
r0bby_ has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
d5sx43 has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Ping timeout: 246 seconds]
r0bby_ has quit [Client Quit]
xcesariox has joined #ruby
gambl0re has joined #ruby
Neverdie has quit [Quit: http://radiux.io/]
banjara has quit [Quit: Leaving.]
ruby-lang201 has joined #ruby
dopie has joined #ruby
BTRE has quit [Ping timeout: 256 seconds]
dgutierrez1287 has joined #ruby
ruby-lang201 has quit [Ping timeout: 246 seconds]
d5sx43 has quit [Quit: Leaving...]
krz has joined #ruby
dgutierrez1287 has quit [Ping timeout: 265 seconds]
zenguy_pc has joined #ruby
djbkd has joined #ruby
karmatr0n has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
tkuchiki has joined #ruby
djbkd has quit [Ping timeout: 244 seconds]
Soda has quit [Remote host closed the connection]
rbowlby has joined #ruby
wldcordeiro has quit [Remote host closed the connection]
wldcordeiro has joined #ruby
ekain has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 246 seconds]
bb010g has quit [Quit: Connection closed for inactivity]
failshell has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
wldcordeiro has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
wldcordeiro has joined #ruby
chipotle has joined #ruby
Neverdie has joined #ruby
BTRE has joined #ruby
rbowlby has quit []
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gener1c has joined #ruby
banjara has joined #ruby
jenrzzz has joined #ruby
gener1c_ has quit [Ping timeout: 255 seconds]
braincrash has quit [Quit: bye bye]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
krz has quit [Ping timeout: 268 seconds]
tejasmanohar has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
khebbie has joined #ruby
braincrash has joined #ruby
siemprefresco has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
khebbie has quit [Remote host closed the connection]
chills42 has quit [Remote host closed the connection]
paulcsmith has joined #ruby
michaeldeol has joined #ruby
zenguy_pc has joined #ruby
wldcordeiro has quit [Remote host closed the connection]
failshell has quit []
UtkarshRay has joined #ruby
wldcordeiro has joined #ruby
rakm has joined #ruby
dravine has quit [Ping timeout: 244 seconds]
dravine has joined #ruby
siemprefresco has joined #ruby
juanpablo_ has joined #ruby
face has joined #ruby
faces has quit [Ping timeout: 272 seconds]
juanpablo_ has quit [Ping timeout: 255 seconds]
grenierm has joined #ruby
Prawnzy has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
[k- has joined #ruby
armyriad has joined #ruby
spence6245_ has quit [Ping timeout: 246 seconds]
gix has quit [Ping timeout: 246 seconds]
devoldmx has joined #ruby
karapetyan has joined #ruby
mooe has quit [Quit: Connection closed for inactivity]
gix has joined #ruby
chrishough has joined #ruby
Lildirt has quit [Remote host closed the connection]
Lildirt has joined #ruby
DarthGandalf has quit [Ping timeout: 246 seconds]
karapetyan has quit [Ping timeout: 264 seconds]
taylorrf has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
The_Phoenix has joined #ruby
dravine has quit [Ping timeout: 240 seconds]
dravine has joined #ruby
decoponio has joined #ruby
ledestin has joined #ruby
taylorrf has quit [Remote host closed the connection]
mary5030 has joined #ruby
bdfhjv has quit [Quit: WeeChat 1.3]
devoldmx has quit [Ping timeout: 246 seconds]
devoldmx has joined #ruby
solocshaw has quit [Read error: Connection reset by peer]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
solocshaw has joined #ruby
shmilan has quit [Ping timeout: 246 seconds]
chipotle_ has joined #ruby
michael_mbp has quit [Excess Flood]
solocshaw has quit [Ping timeout: 244 seconds]
chipotle has quit [Ping timeout: 240 seconds]
sepp2k has quit [Read error: Connection reset by peer]
shmilan has joined #ruby
michael_mbp has joined #ruby
roxtrongo has joined #ruby
darkf has joined #ruby
ledestin has quit [Max SendQ exceeded]
shinnya has quit [Ping timeout: 244 seconds]
Oka has quit [Quit: o/]
deject3d_ has joined #ruby
deject3d_ has quit [Client Quit]
rezzack has joined #ruby
shmilan has quit [Ping timeout: 246 seconds]
deject3d has quit [Ping timeout: 256 seconds]
tkuchiki has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
shmilan has joined #ruby
paulcsmith has quit [Quit: Lingo: www.lingoirc.com]
tkuchiki has quit [Remote host closed the connection]
nanoz has joined #ruby
rehat has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
ledestin has joined #ruby
arescorpio has quit [Quit: Leaving.]
AccordsLTN has joined #ruby
michael_mbp has quit [Excess Flood]
rehat has quit [Remote host closed the connection]
AccordLTN has quit [Ping timeout: 250 seconds]
baweaver has joined #ruby
michael_mbp has joined #ruby
grenierm has quit [Quit: grenierm]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rezzack1 has joined #ruby
rezzack has quit [Ping timeout: 260 seconds]
grenierm has joined #ruby
mooe has joined #ruby
wldcordeiro has quit [Remote host closed the connection]
wldcordeiro has joined #ruby
shmilan has quit [Ping timeout: 244 seconds]
chipotle_ has quit [Quit: cheerio]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
AccordsLTN has quit [Ping timeout: 264 seconds]
AccordLTN has joined #ruby
Azure|dc has joined #ruby
spaced_out has joined #ruby
Azure has quit [Ping timeout: 244 seconds]
<spaced_out> why is that I cant do "spaced out".chomp("\s") and get back "spaced"?
charliesome has joined #ruby
<jordanm> spaced_out: chomp removes from the end of a line
zenguy_pc has quit [Ping timeout: 244 seconds]
charliesome has quit [Client Quit]
<spaced_out> !
<spaced_out> i see
zenguy_pc has joined #ruby
<spaced_out> how can I do what im trying to do?
<spaced_out> I want to find a space character and just drop the rest of a string
grenierm has quit [Quit: grenierm]
<jordanm> spaced_out: you could do "spaced out".split()[0]
BraddPitt has quit [Quit: Lost terminal]
charliesome has joined #ruby
gizmore has joined #ruby
<jordanm> spaced_out: or more ugly and less efficient: "spaced out".gsub(/\s.*/, "")
<spaced_out> the first I think is better
<baweaver> jordanm: parens are not necessary
wldcordeiro has quit [Remote host closed the connection]
wldcordeiro has joined #ruby
dgutierrez1287 has joined #ruby
deject3d has joined #ruby
zenguy_pc has quit [Read error: No route to host]
zenguy_pc has joined #ruby
<spaced_out> yeah but .split[0] is confusing to look at
Rollabunna has quit [Ping timeout: 250 seconds]
Rollabunna has joined #ruby
<baweaver> >> 'spaced out'.split.first
<ruboto> baweaver # => "spaced" (https://eval.in/432075)
wldcordeiro has quit [Remote host closed the connection]
dgutierrez1287 has quit [Ping timeout: 250 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<spaced_out> thats pretty too
charliesome has joined #ruby
charliesome has quit [Client Quit]
<spaced_out> also i present my latest and greatest shitpost: https://gist.github.com/logicrime/f800c55fc799b301fef5
charliesome has joined #ruby
charliesome has quit [Client Quit]
DmitryBochkarev has joined #ruby
<spaced_out> im sure someone will golf me and put the 64 bytes version in here
wldcordeiro has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
pontiki has quit [Ping timeout: 260 seconds]
<spaced_out> i used to think 'why bother?' but now i think that if i write enough shit that maybe itll get better
charliesome has joined #ruby
toretore has quit [Quit: This computer has gone to sleep]
khebbie has joined #ruby
<baweaver> also remember suffix conditionals
<baweaver> value if condition
khebbie has quit [Remote host closed the connection]
[k- has quit [Ping timeout: 246 seconds]
juanpablo_ has joined #ruby
<spaced_out> yeah rubocop is always yelling at me for that
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
claw has quit [Ping timeout: 250 seconds]
chrishough has joined #ruby
juanpablo_ has quit [Ping timeout: 260 seconds]
arup_r has joined #ruby
claw has joined #ruby
acke has joined #ruby
karmatr0n has quit [Ping timeout: 265 seconds]
devoldmx has quit [Remote host closed the connection]
craysiii has joined #ruby
karmatr0n has joined #ruby
sp4rrow has joined #ruby
devoldmx has joined #ruby
pragmatism has quit [Quit: Textual IRC Client: www.textualapp.com]
mary5030 has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
devoldmx has quit [Ping timeout: 260 seconds]
<atmosx> morning
devoldmx has joined #ruby
mary5030 has quit [Ping timeout: 264 seconds]
Guest has joined #ruby
baweaver has quit [Remote host closed the connection]
casadei_ has joined #ruby
northfurr has quit [Quit: northfurr]
Guest has quit [Client Quit]
Guest has joined #ruby
wldcordeiro has quit [Remote host closed the connection]
Guest has quit [Client Quit]
Guest has joined #ruby
wldcordeiro has joined #ruby
sp4rrow has quit [Ping timeout: 265 seconds]
casadei_ has quit [Ping timeout: 246 seconds]
demonlove has joined #ruby
AlphaAtom has joined #ruby
rippa has joined #ruby
acke_ has joined #ruby
wldcordeiro has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 244 seconds]
wldcordeiro has joined #ruby
dionysus69 has joined #ruby
s00pcan has quit [Ping timeout: 272 seconds]
acke has quit [Ping timeout: 246 seconds]
demonlove has quit [Remote host closed the connection]
techietrash has joined #ruby
workmad3 has joined #ruby
deject3d has quit [Quit: Computer has gone to sleep.]
wldcordeiro has quit [Remote host closed the connection]
tejasmanohar has quit [Quit: tejasmanohar]
zenguy_pc has quit [Read error: Connection reset by peer]
vdamewood has joined #ruby
wldcordeiro has joined #ruby
minotep has joined #ruby
wldcordeiro has quit [Remote host closed the connection]
wldcordeiro has joined #ruby
karapetyan has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wldcordeiro has quit [Remote host closed the connection]
wldcordeiro has joined #ruby
karapetyan has quit [Ping timeout: 255 seconds]
charliesome has quit [Client Quit]
weemsledeux has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lokulin has quit [Changing host]
lokulin has joined #ruby
howdoi has joined #ruby
KnownSyntax has quit [Ping timeout: 255 seconds]
<nanoz> print 'What is your name?'!
wldcordeiro has quit [Remote host closed the connection]
weemsledeux has quit [Max SendQ exceeded]
<nanoz> gives error
wldcordeiro has joined #ruby
zenguy_pc has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
dEPy has joined #ruby
wldcordeiro has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
Musashi007 has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
mleung has joined #ruby
mistermocha has joined #ruby
mleung has quit [Client Quit]
wldcordeiro has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
houhoulis has joined #ruby
wldcordeiro has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
zenguy_pc has quit [Read error: Connection reset by peer]
spaced_out has quit [Ping timeout: 246 seconds]
devoldmx has quit [Remote host closed the connection]
Musashi007 has joined #ruby
wldcordeiro has joined #ruby
eGGsha has joined #ruby
jenrzzz has joined #ruby
mleung has joined #ruby
vdamewood has quit [Ping timeout: 255 seconds]
wldcordeiro has quit [Remote host closed the connection]
tkuchiki has joined #ruby
Musashi007 has quit [Ping timeout: 264 seconds]
wldcordeiro has joined #ruby
karmatr0n has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 244 seconds]
cvtsx has joined #ruby
karmatr0n has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
poli has quit [Ping timeout: 265 seconds]
tkuchiki has quit [Ping timeout: 268 seconds]
dopie has quit [Quit: This computer has gone to sleep]
zenguy_pc has joined #ruby
<shevy> hmm
<shevy> is rubocop able to "autocorrect" code for speed-performance gain?
Musashi007 has joined #ruby
minotep has quit [Remote host closed the connection]
AlphaAtom has joined #ruby
wldcordeiro has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
UtkarshRay has quit [Ping timeout: 246 seconds]
minimalism has quit [Quit: leaving]
chris2 has quit [Ping timeout: 252 seconds]
AlphaAtom has quit [Read error: Connection reset by peer]
wldcordeiro has joined #ruby
AlphaAtom has joined #ruby
mleung has quit [Quit: mleung]
juanpablo_ has joined #ruby
wldcordeiro has quit [Remote host closed the connection]
wldcordeiro has joined #ruby
nhhagen has joined #ruby
pontiki has joined #ruby
BTRE has quit [Quit: Leaving]
acke_ has quit [Remote host closed the connection]
bkxd has quit [Quit: leaving]
casadei_ has joined #ruby
bkxd has joined #ruby
wldcordeiro has quit [Remote host closed the connection]
juanpablo_ has quit [Ping timeout: 268 seconds]
acke has joined #ruby
KnownSyntax has joined #ruby
nhhagen has quit [Ping timeout: 260 seconds]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pontiki has quit [Ping timeout: 246 seconds]
Musashi007 has quit [Quit: Musashi007]
Zai00 has joined #ruby
casadei_ has quit [Ping timeout: 264 seconds]
chris2 has joined #ruby
amclain has quit [Quit: Leaving]
khebbie has joined #ruby
mleung has joined #ruby
khebbie has quit [Remote host closed the connection]
howdoicomputer has quit [Ping timeout: 244 seconds]
EXID123 has quit [Remote host closed the connection]
karmatr0n has quit [Read error: Connection reset by peer]
acke_ has joined #ruby
karmatr0n has joined #ruby
mleung has quit [Client Quit]
leat2 has joined #ruby
acke has quit [Ping timeout: 250 seconds]
n1lo has quit [Ping timeout: 268 seconds]
mistermocha has quit [Remote host closed the connection]
Musashi007 has joined #ruby
<nofxx> shevy, I think some yes. There's also fasterer (or something like it), like a rubocop focused on speed
<nofxx> so many lints now days Im creating a bin/lint in the project to use all
senayar has joined #ruby
<nofxx> rubocop, js forgot, fasterer, brakeman, reek
<shevy> hehe
<shevy> fasterer?
chouhoulis has joined #ruby
<shevy> how about "fasterest" :D
jenrzzz has joined #ruby
<shevy> well I know one default replacement is
<shevy> "foobar" to 'foobar'
<shevy> I was thinking that rubocop could perhaps also replace something like:
<shevy> x = 'foo' y = x+'bar' to y = "#{x}bar"
baweaver has joined #ruby
<shevy> oh cool
fella6s has joined #ruby
DLSteve has joined #ruby
fella5s has quit [Ping timeout: 246 seconds]
senayar has quit [Ping timeout: 246 seconds]
chouhoulis has quit [Ping timeout: 272 seconds]
firoxer has quit [Ping timeout: 256 seconds]
rezzack has joined #ruby
rezzack1 has quit [Ping timeout: 244 seconds]
SCHAAP137 has joined #ruby
bkxd_ has joined #ruby
firoxer has joined #ruby
EXID123 has joined #ruby
EXID123 has quit [Remote host closed the connection]
EXID123 has joined #ruby
dEPy has quit [Ping timeout: 244 seconds]
Musashi007 has quit [Quit: Musashi007]
EXID123 has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 246 seconds]
EXID123 has joined #ruby
last_staff has joined #ruby
acke_ has quit [Remote host closed the connection]
Neverdie has quit [Quit: http://radiux.io/]
techietrash has quit [Quit: Bye! <(^_^<)]
athinggoingon has quit [Ping timeout: 240 seconds]
darkhex has joined #ruby
nhhagen has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
firstdayonthejob has joined #ruby
pietr0 has quit [Quit: pietr0]
tkuchiki has joined #ruby
craysiii has quit [Quit: Leaving.]
fxn has joined #ruby
bubbys has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Ping timeout: 244 seconds]
nhhagen has quit [Remote host closed the connection]
karmatr0n has quit [Ping timeout: 272 seconds]
mikecmpbll has joined #ruby
skinkitten has joined #ruby
yfeldblum has joined #ruby
DLSteve has quit [Ping timeout: 244 seconds]
Zai00 has quit [Quit: Zai00]
Outlastsheep has quit [Ping timeout: 244 seconds]
firstdayonthejob has quit [Read error: Connection reset by peer]
Alina-malina has joined #ruby
ht__ has joined #ruby
Zai00 has joined #ruby
karmatr0n has joined #ruby
nux443 has joined #ruby
bkxd_ has quit [Ping timeout: 244 seconds]
EXID123 has quit [Read error: Connection reset by peer]
Gnomethrower has joined #ruby
karmatr0n has quit [Read error: Connection reset by peer]
<nanoz> is string interpolation is same as variable substitution ?
Gnomethrower has quit [Changing host]
Gnomethrower has joined #ruby
karmatr0n has joined #ruby
VictorBjelkholm has joined #ruby
djbkd has joined #ruby
bkxd has joined #ruby
howdoicomputer has joined #ruby
yardenbar has quit [Remote host closed the connection]
[k- has joined #ruby
firstdayonthejob has joined #ruby
faces has joined #ruby
face has quit [Ping timeout: 260 seconds]
karmatr0_ has joined #ruby
djbkd has quit [Ping timeout: 250 seconds]
howdoicomputer has quit [Ping timeout: 240 seconds]
karmatr0n has quit [Ping timeout: 240 seconds]
Zai00 has quit [Quit: Zai00]
rezzack1 has joined #ruby
rezzack has quit [Ping timeout: 246 seconds]
<shevy> guess the two terms would be synonymous
<shevy> or perhaps variable substitution is the major part of string interpolation
karmatr0_ has quit [Ping timeout: 240 seconds]
baweaver has quit [Remote host closed the connection]
Zai00 has joined #ruby
<jhass> nanoz: no, string interpolation can take practically any ruby expression
<jhass> >> "The value of a class expression is the last expression of its body: #{class Foo; :foo_class; end}"
<ruboto> jhass # => "The value of a class expression is the last expression of its body: foo_class" (https://eval.in/432096)
<jhass> >> "I guess you can call this one %s" % "variable substitution"
<ruboto> jhass # => "I guess you can call this one variable substitution" (https://eval.in/432097)
acke has joined #ruby
Averna has joined #ruby
roxtrongo has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
VictorBjelkholm has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dionysus69 has joined #ruby
roxtrongo has joined #ruby
firstdayonthejob has quit [Read error: Connection reset by peer]
chouhoulis has quit [Ping timeout: 260 seconds]
devbug has quit [Read error: Connection reset by peer]
<nanoz> jhass what about first_name=get.chomp;print "Hello "+first_name ?
<jhass> that's called "string "+concatenation and "string #{interpolation" is to prefer
<apeiros> that'd be string concatenation, no substitution happens
<jhass> }
<nanoz> k
nhhagen has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
pabs has quit [Ping timeout: 246 seconds]
Rutix has joined #ruby
Rutix has joined #ruby
karapetyan has joined #ruby
timonv has joined #ruby
firstdayonthejob has joined #ruby
Jackneill has joined #ruby
karapetyan has quit [Ping timeout: 244 seconds]
DLSteve has joined #ruby
pabs has joined #ruby
<[k-> yes?
<apeiros> oh k
<[k-> yes?
VictorBjelkholm has joined #ruby
leafybasil has quit [Remote host closed the connection]
EXID123 has joined #ruby
last_staff has quit [Read error: Connection reset by peer]
firstdayonthejob has quit [Read error: Connection reset by peer]
VeryBewitching has quit [Quit: Konversation terminated!]
platzhirsch has joined #ruby
juanpablo_ has joined #ruby
VictorBjelkholm has quit [Client Quit]
charliesome has joined #ruby
<shevy> finished k
mkosaki has quit [Quit: Leaving...]
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
casadei_ has joined #ruby
juanpablo_ has quit [Ping timeout: 252 seconds]
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
<[k-> yes?
VictorBjelkholm has joined #ruby
<shevy> we have a new bot here
<shevy> it's always asking yes
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has joined #ruby
casadei_ has quit [Ping timeout: 246 seconds]
firstdayonthejob has joined #ruby
DmitryBochkarev has joined #ruby
<ELCALOR> hi ya, i want to split integers by 3, in a way that 9 becomes [3, 3, 3], 10 becomes [3, 3, 4] and 11 becomes [4, 4, 3]. anyone knows how i would do this?
<[k-> i've got 9 million 9 hundred 99 thousand 9 hundred 99 tears to go
<[k-> why is 11 [4,4,3]?
yardenbar has joined #ruby
<shevy> hmmmmm
<[k-> ELCALOR ^
<shevy> mystery math!
<[k-> i always get ignored :'(
<shevy> it's your strange nick
MichaelSmith has quit [Quit: Connection closed for inactivity]
pontiki has joined #ruby
<[k-> i dont think when a stranger approaches you out from a crowd, you'd look away and not listen
* shevy turns his back on [k-
<[k-> especially when s(h)e is talking about something relevant
<[k-> how do you not know s(h)e is talking to you?
charliesome has joined #ruby
<shevy> dunno, ELCALOR seems very quiet
leafybasil has joined #ruby
<shevy> ELCALOR a primitive way would be to use .step and gather the results
<[k-> !op(s) my feelings are hurt
<[k-> shevy: but he's results conflict
<[k-> s/he's/his
<shevy> yeah, the last part is weird
<shevy> but probably he calculcated it incorrectly in his mind, ruby will yield the proper results!
leat2 has quit [Remote host closed the connection]
<shevy> [3,3,3,2]
leat2 has joined #ruby
pontiki has quit [Ping timeout: 255 seconds]
<apeiros> if it'd be consistent (i.e. either 10 -> [4,3,3], 11 -> [4,4,3] OR 10 -> [3,3,4], 11 -> [3,4,4]) it'd be easy. but like this?
* apeiros too waits for ELCALOR to clear up the inconsistency
EXID123 has quit [Remote host closed the connection]
<[k-> why not 10 -> 3,3,3,1?
<apeiros> because that'd be 4 values
<apeiros> not 3
<[k-> ah, thats what he meant
leafybasil has quit [Ping timeout: 272 seconds]
<shevy> hmm
<shevy> aha
<apeiros> and I'd assume (by the pattern) that 10 split 4 -> [2,2,3,3] or [3,3,2,2]
<shevy> we are better than sherlock holmes here
<apeiros> I've actually implemented such a code in a production app
EXID123 has joined #ruby
<[k-> for ui?
khebbie has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
leitz has joined #ruby
khebbie has quit [Remote host closed the connection]
<apeiros> no, for an API call
<apeiros> the UI allows you to specify how much money you want to invest into a fund
<apeiros> but the API wants the funds in percentages, the sum of all percentages being 100
<apeiros> so what do you do when the user specifies 3 funds, and wants to invest 10K in each?
<leitz> If you're writing a program that uses data in files as a part of it's start up, is there a convention to put those files in a particular directory?
<apeiros> leitz: GEMDIR/data/GEMNAME/
mprelude has joined #ruby
<apeiros> Gem.datadir(GEMNAME) gives you the path to that dir, no matter where it gets installed to
Pupeno has joined #ruby
Pupeno has joined #ruby
<shevy> cool
<leitz> apeiros, thanks!
<apeiros> I usually allow the path to be overridden by an env var
<apeiros> i.e. ENV["GEMNAME_DATA_DIR"] || Gem.datadir(GEMNAME)
leat2 has quit [Remote host closed the connection]
charliesome has joined #ruby
leat2 has joined #ruby
<leitz> I haven't even gotten it to a gem state yet.. Still learning a lot.
<ELCALOR> sorry, didn't get any notice of highlights here
<ELCALOR> apeiros: yeah, that's fine too
<ELCALOR> sorry [k- ;-(
VictorBjelkholm has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> ELCALOR: well, can you show some code/approaches you tried?
Zai00 has quit [Quit: Zai00]
<ELCALOR> i first tried to do it with divmod, but didn't work
<apeiros> divmod is in my solution
<ELCALOR> oh really?
<apeiros> yeah. one of two lines :)
<ELCALOR> :)
<apeiros> >> def split(num, div); v,r = num.divmod(div); Array.new(div-r,v)+Array.new(r,v+1); end; split 11, 3
<ruboto> apeiros # => [3, 4, 4] (https://eval.in/432099)
<ELCALOR> wauw
senayar has joined #ruby
<shevy> apeiros holds ruby wisdom in his brain
jgt has joined #ruby
chouhoulis has joined #ruby
monod has joined #ruby
marr has joined #ruby
<apeiros> should be q, not v :-(
<ELCALOR> q?
chouhoulis has quit [Ping timeout: 255 seconds]
senayar has quit [Ping timeout: 264 seconds]
<apeiros> quotient
tkuchiki has quit [Remote host closed the connection]
morenoh149 has joined #ruby
<ELCALOR> after reading a few times through your function, i'm finally getting it :P
<ELCALOR> (i reformatted it too)
<apeiros> sure, you should. it's supposed to be 4 lines.
<jhass> try giving full names to the single letter vars too
<apeiros> we use ; instead of newlines in irc to fit it on one line (it works the same with ;)
<ELCALOR> yep
roxtrongo has quit [Remote host closed the connection]
<apeiros> ruboto time!
<[k-> ruboto.jump!
monod has quit [Quit: Sto andando via]
ledestin has joined #ruby
pegasuspect has joined #ruby
<apeiros> more like ruboto.plugins[:channel_moderation].spam("[k-") ;-p
<[k-> yes?
pegasuspect has quit [Client Quit]
<apeiros> channel moderation is the last plugin to finish in order to switch ruboto to the new foundation.
houhoulis has quit [Remote host closed the connection]
leafybasil has joined #ruby
Pupeno has quit [Remote host closed the connection]
<apeiros> now if only I remembered where I put those db queries :-(
<shevy> the resurrection of butler! \o/
wildlander has joined #ruby
osmansekerlen has joined #ruby
Pupeno has joined #ruby
Pupeno has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
VictorBjelkholm has joined #ruby
CorpusCallosum has joined #ruby
fantazo has joined #ruby
acke has quit [Remote host closed the connection]
acke has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
VictorBjelkholm has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
demonlove has joined #ruby
VictorBjelkholm has joined #ruby
FernandoBasso has joined #ruby
<leitz> If you have a collection of data points on a "thing", but no methods that really do anything with those points, is an Openstruct better than a class?
<apeiros> what value would openstruct give you over a class?
<apeiros> what value would a class give you over openstruct?
<shevy> method accessors :)
CorpusCallosum has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
howdoicomputer has joined #ruby
<shevy> for some reason though, I almost always end up defining a custom class instead
ironcamel has quit [Quit: leaving]
<apeiros> aka "define better"
ironcamel has joined #ruby
<leitz> Mentally meandering. I have a group of those "things" and the data needs to be printed in different formats. It seemed like the format definition (txt, wiki, html) would not be directly associated with the data/class, but in a calling thing.
ironcamel has quit [Client Quit]
acke_ has joined #ruby
<leitz> Here's a json collection of data. I'll need to be able to print it out in various formats, and possible remunge it to SQL or something.
acke_ has quit [Remote host closed the connection]
VictorBjelkholm has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<leitz> Except for "control the output", a struct seems cleaner and less code. If the class had the data, and the output methods, it would gorw organically and perhaps oddly.
stamina has joined #ruby
<leitz> On use of that file is that another "thing" will be a military unit that is assigned a vehicle. Outputting that will be different than just the vehicle itself.
howdoicomputer has quit [Ping timeout: 252 seconds]
<leitz> The flip side is tha anything calling that data has to know about it.
acke has quit [Ping timeout: 255 seconds]
acke has joined #ruby
<leitz> There will be another, similar, dataset for weapons. A person might have a weapon or three, and a unit might have one. And a vehicle.
<shevy> "Why Rust - Trustworthy, ConcurrentSystems Programming"
<shevy> I wonder why lately the en vogue move is to have "systems programming". Did the prior languages fail at systems programming?
Coldblackice has quit []
<leitz> Systems are the new thing as we devolve to the IoT, containers, etc.
Rurik has joined #ruby
Rurik has joined #ruby
Rurik has quit [Max SendQ exceeded]
<shevy> dunno... a lot of it sounds like assigning new names to old(er) ideas and concepts
Rurik has joined #ruby
<leitz> Yup. Go is a systems programming language. It can do lots of things, but it's targeted at maybe one level closer to the metal.
<leitz> Ruby is an application programming language; if I have Ruby, pretty much anything underneath is irrelevant.
<shevy> leitz in regards to your question, I'd probably just use a custom class anyway. A struct may have less code but usually, what is the main difference: accessors, as in def foo; @foo; def foo=(i); @foo = i, for all available datapoints (this is usually a hash isn't it?)
Rurik has quit [Client Quit]
VictorBjelkholm has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Ping timeout: 244 seconds]
<shevy> I use one class Configuration for yaml-based configuration; one internal hash keeps track of what config options are available, then in code I can do something such as: if @configuration.use_readline (or .use_readline?), to enable readline support etc...
<leitz> Application performance isn't a real need for the app, but i'm trying to learn clean coding as I go.
<leitz> Of course, my OOP skills are weak. :)
Rurik has joined #ruby
firstdayonthejob has quit [Read error: Connection reset by peer]
drptbl has joined #ruby
Coldblackice has joined #ruby
demonlove has quit [Quit: Leaving]
platzhirsch has quit [Ping timeout: 244 seconds]
bruno- has joined #ruby
pandaant has joined #ruby
leat2 has quit [Remote host closed the connection]
leat2 has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
<[k-> functional!
Rurik has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rurik has joined #ruby
beast has joined #ruby
firstdayonthejob has joined #ruby
<leitz> Well, a hash beats an openstruct. The former has a "has_key?" method that openstruct doesn't.
chouhoulis has joined #ruby
<shevy> I think you can modify your openstruct object to also include this method
symm- has joined #ruby
<apeiros> openstruct has respond_to? ;-p
leat2 has quit [Remote host closed the connection]
<leitz> Interesting, apeiros. I didn't see respond_to/ in the docs page.
<apeiros> Object#respond_to?
<leitz> It does work, though. :)
<apeiros> it's something all objects have…
<leitz> Ah, got it.
leat2 has joined #ruby
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<shevy> anyone knows if there is a trivial way for ruby-ftp to query what commands a remote server responds to? In particular, whether the server understands MLST
user1138 has joined #ruby
user1138 has quit [Remote host closed the connection]
coffeecupp__ has joined #ruby
chouhoulis has quit [Ping timeout: 246 seconds]
solocshaw has joined #ruby
tkuchiki has joined #ruby
dionysus69 has joined #ruby
Averna has quit [Ping timeout: 240 seconds]
dgs has joined #ruby
gizmore has joined #ruby
ironcamel has joined #ruby
<leitz> Is there a typical name for a collection of functions that go into a library file? Sometime to include in a lot of the other bits, like a method that checks for valid json.
Averna has joined #ruby
<[k-> module?
<[k-> helper functions?
tkuchiki has quit [Ping timeout: 240 seconds]
<adaedra> what's a "library file"
darkhex has quit [Quit: Textual IRC Client: www.textualapp.com]
firstdayonthejob has quit [Read error: Connection reset by peer]
dasher00 has quit [Ping timeout: 272 seconds]
<leitz> Lines 20-27 have a method to check for valid json. It's in a particular file because that's what I was working on when I found the solution on sourceforge.
juanpablo_ has joined #ruby
<leitz> it should go into another file that I can include, since several of the things I'm writing in this project need to check for valid json.
<shevy> usually they will belong to the same namespace when you structure it in a gem-directory layout
<shevy> you can only include a module anyway
northfurr has joined #ruby
<leitz> Just trying to understand if there's a common name for the file that holds common functions.
michael_mbp has quit [Excess Flood]
<[k-> helper?
<leitz> Sorry, I may be mixing terms with require. Not enough coffee. For example, line 5. https://github.com/LeamHall/CT_Character_Generator/blob/master/chargen.rb
k3asd` has joined #ruby
<leitz> That's what I have been doing. However, on the off chance someone actually wants to join in, I'd prefer my programs follow the community standard, if there is one.
<leitz> Except for the Ruby version, of course. ;)
<FernandoBasso> Why would someone name a method to_s, but not len instead of length?
Averna has quit [Ping timeout: 264 seconds]
casadei_ has joined #ruby
<adaedra> You usually put functions from a library in a module/class and then require the whole module at once
<[k-> len isnt common in Ruby
devoldmx has joined #ruby
<adaedra> Don't put functions at top level in a library
juanpablo_ has quit [Ping timeout: 268 seconds]
<FernandoBasso> [k-: isn't "common"?
<FernandoBasso> Ruby seems to make things short. def instead of define of function, to_s instead of the lengthier to_string.
ht__ has joined #ruby
bkxd has quit [Ping timeout: 250 seconds]
michael_mbp has joined #ruby
<FernandoBasso> Then, why not len instead of length, and why not ini or init instead of initialize?
bkxd has joined #ruby
<adaedra> "seems to make things short" mh, not sure.
<shevy> leitz I'd first define a toplevel constant, usually a module, sometimes people may opt for a class (like apeiros when he gets naughty)
<adaedra> clear to read, rather.
<FernandoBasso> to_s is clearer than to string?
<FernandoBasso> to_string*
<shevy> FernandoBasso there already is .size too
<shevy> so from .size to .len it's only one character less; if you need to do it, you could do: alias len size
<shevy> note that .to_s is 4 characters :)
<shevy> there also is .to_str
coffeecupp__ has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 240 seconds]
casadei_ has quit [Ping timeout: 260 seconds]
vdamewood has joined #ruby
<leitz> apeiros has non-naughty times?
Ketchy has joined #ruby
<FernandoBasso> Yeah, sure, but I don't see the reasoning behind those naming conventions.
<FernandoBasso> Anyway, this doesn't matter.
firstdayonthejob has joined #ruby
* leitz goes to read up on modules again.
<FernandoBasso> Was just curious if someone had an insight about why those two approaches to names.
<shevy> FernandoBasso same reason you have .collect versus .map
coffeecupp__ has joined #ruby
<shevy> and you can also use define_method() to define a method
<FernandoBasso> Aren't those for two different purposes?
dasher00 has joined #ruby
<FernandoBasso> shevy: I don't meant to approaches -> size vs length.
<shevy> .map is an alias to .collect (or the other way around, there is usually a link to the source if you look at the official documentation)
<shevy> size also is an alias to length :)
<FernandoBasso> I failed to express my thoughts clearly.
Rickmasta has joined #ruby
<FernandoBasso> I am creating a language. I decide that to_string should be to_s and to_integer should be to_i, and so on. But then I decide that I will not use that "rule" for initialize, neither for length, etc.
firstdayonthejob has quit [Read error: Connection reset by peer]
<FernandoBasso> Or the decision came from the other way around, I'm not sure.
<FernandoBasso> They are all very short already, and easy to see what they mean, I'm not complaining about that.
<adaedra> I don't think the goal is to be short
<FernandoBasso> Clear?
[k- has quit [Ping timeout: 256 seconds]
<adaedra> to_#{c} with c being a single char is a common rule for conversion to core type, it's a specialized rule
tkuchiki has joined #ruby
UtkarshRay has joined #ruby
decoponyo has joined #ruby
<shevy> well you said that they are short, but size is 4 chars, and the to_* are also short, so actually, things are short in ruby!
<shevy> you could run some statistics on the amount of letters for all methods in default ruby
ruurd has joined #ruby
<shevy> 3 letter variants ... .map ...
<FernandoBasso> shevy: It seems size was created later on, was it not?
Voker57 has joined #ruby
<shevy> how do you know
startupality has joined #ruby
<FernandoBasso> I don't :)
<FernandoBasso> It just looks like, since it is an alias.
<shevy> you could try to check the ancient ruby versions
<shevy> and they can not add both the original name, and the alias, at the same time???
decoponio has quit [Ping timeout: 250 seconds]
<FernandoBasso> Yes they can.
<shevy> http://ruby-doc.org/core-2.2.0/Array.html here is a longer method name -> #initialize_copy
lipoqil has quit [Quit: Connection closed for inactivity]
<shevy> #repeated_combination
<shevy> wow
<FernandoBasso> :)
<shevy> I never used these
Gnomethrower has quit [Quit: working]
Balzrael has joined #ruby
<FernandoBasso> I say we could go like to_s and make those init_cpy and repeated_comb :D
Pupeno has quit [Quit: Leaving...]
allomov has joined #ruby
SCHAAP137 has joined #ruby
<shevy> that one confuses me
<FernandoBasso> When I recreate the universe I'll make people's mind more line mine.
<shevy> the example there does not use initialize_copy()
firstdayonthejob has joined #ruby
leat2 has quit [Ping timeout: 246 seconds]
fantazo has quit [Quit: Verlassend]
coffeecupp__ has quit [Ping timeout: 240 seconds]
ruurd has quit [Quit: ZZZzzz…]
<shevy> that crashes my computer!
<FernandoBasso> adaedra: That is freaking cool :)
jenrzzz has joined #ruby
<adaedra> shevy: download more ram
dionysus69 has quit [Ping timeout: 252 seconds]
<adaedra> Average length: 10.23 (10.21 if not removing doubles)
tkuchiki has quit [Remote host closed the connection]
howdoicomputer has joined #ruby
Ketchy has quit [Quit: Leaving]
sdothum has joined #ruby
jokester has quit [Quit: recharge]
<shevy> ack
nettoweb has joined #ruby
<shevy> so much!
<adaedra> Also
<adaedra> RSS::Maker::ITunesChannelModel::ITunesCategoriesBase::ITunesCategoryBase#to_feed_for_categories
<shevy> ewwww
jenrzzz has quit [Ping timeout: 250 seconds]
<adaedra> I wonder if it's in jhass's hangman :D
nofxx has quit [Ping timeout: 252 seconds]
jokester has joined #ruby
<jhass> I see no RSS in stdlib
howdoicomputer has quit [Ping timeout: 250 seconds]
khebbie has joined #ruby
khebbie has quit [Remote host closed the connection]
charliesome has joined #ruby
<jhass> mmh, devdocs doesn't have it
jgt has quit [Ping timeout: 260 seconds]
<adaedra> it's empty in rubydoc.info, tbf
allomov has quit [Ping timeout: 264 seconds]
osmansekerlen has quit [Quit: osmansekerlen]
firstdayonthejob has quit [Read error: Connection reset by peer]
cvtsx has quit [Quit: Leaving]
pgharios has joined #ruby
<pgharios> hi, can i do OOP as awell as functional programming in Ruby?
dgs has quit [Quit: dgs]
<shevy> sorta
<shevy> use lambdas everywhere!
<pgharios> ?
<pgharios> what is better ?
karapetyan has joined #ruby
<karapetyan> hi there!
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
vdamewood has quit [Ping timeout: 264 seconds]
<shevy> pgharios well, ruby is an OOP language
<shevy> the pure functional hackers will go to haskell and so forth anyway
<pgharios> shevy: javasscript is not oop right
<pgharios> angularjs too
chouhoulis has joined #ruby
arup_r has quit [Ping timeout: 244 seconds]
bmurt has joined #ruby
firstdayonthejob has joined #ruby
<apeiros> javascript is an OOP language, pgharios
chouhoulis has quit [Ping timeout: 256 seconds]
pgharios is now known as peter_gha
peter_gha has quit [Quit: WeeChat 0.4.2]
firstdayonthejob has quit [Read error: Connection reset by peer]
bruno- has quit [Quit: Lost terminal]
roxtrongo has joined #ruby
bmurt has quit []
blik71 has joined #ruby
zenguy_pc2 has joined #ruby
ordepdev has joined #ruby
ocx has joined #ruby
Burgestrand has joined #ruby
ordepdev has quit [Remote host closed the connection]
<blik71> hello all, could anyone tell me what this error means when trying to run ruby-debug in the terminal http://pastebin.com/nb7HWq5t
<ruboto> blik71, as I told you already, please use https://gist.github.com
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<blik71> i forgot the link to it
<blik71> lol
<apeiros> good thing our trusty bot gave it to you again
<blik71> :D
roxtrongo has quit [Ping timeout: 250 seconds]
zenguy_pc has quit [Ping timeout: 272 seconds]
arup_r has joined #ruby
godfat has joined #ruby
Coldblackice has quit [Ping timeout: 250 seconds]
leat2 has joined #ruby
bruno- has joined #ruby
<shevy> ruby_debug.so: undefined symbol: ruby_current_thread - /var/lib/gems/1.9.1/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.so (LoadError)
<shevy> this probably will be hard blik71
<shevy> people are on ruby 2.x
<shevy> the /var/lib variant says that you probably use a debian-based distro?
<blik71> yes i do
<blik71> linux mint
apt-get has joined #ruby
jgt has joined #ruby
tkuchiki has joined #ruby
<shevy> I can't find the github issue tracker
<shevy> for ruby_debug
karapetyan has quit [Remote host closed the connection]
<shevy> they have more or less been abandoned
_aeris_ has quit [Quit: ZNC - http://znc.sourceforge.net]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
VictorBjelkholm has quit [Quit: Textual IRC Client: www.textualapp.com]
Hrorek has joined #ruby
chills42 has joined #ruby
Rurik has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
devoldmx has joined #ruby
<blik71> shoot is there any alternative to debugging in ruby then I'm quite new to ruby and need to finish a project in it
solocshaw has quit [Ping timeout: 244 seconds]
karapetyan has joined #ruby
chills42 has quit [Remote host closed the connection]
ruurd has joined #ruby
<godfat> i think the current one is byebug
_aeris_ has joined #ruby
<Burgestrand> blik71: you are running ruby 1.9.3?
<Burgestrand> blik71: (run 'ruby -v' to find out)
<blik71> yes
<blik71> 1.93p484
solocshaw has joined #ruby
<adaedra> 1.9.3 is EOL
<Burgestrand> blik71: it's possible that pry still works on 1.9.3 if you're having issues with ruby-debug, if it will help you kind of depends on what you are debugging
<blik71> EOL?
VictorBjelkholm has joined #ruby
<adaedra> End-of-life
<blik71> shiit
<adaedra> In short: Update.
<Burgestrand> blik71: 1.9.3 is no longer receiving security updates and is considered old
<blik71> this is the one my school is using i believe but let me check
<karapetyan> shevy: feel like a rabbit
<Burgestrand> blik71: if you're doing a one-off project for your school you don't necessarily need to upgrade your ruby, but if you plan on having your project alive once you're done with it you should use something newer.
<shevy> karapetyan yeah
<shevy> blik71 you can use ruby 1.9.3 without ruby-debug can't you? :)
<karapetyan> shevy: shit that's not so simple as i thought...
<shevy> ...
DoubleMalt has joined #ruby
<blik71> I mean I can but I'm stuck in that my code is doing something weird and I don't know what is going on
<Burgestrand> blik71: I would recommend you try using "pry". General instructions: install the gem ("gem install pry"), in the code you're confused about do 'require "pry"' somewhere at the top, and then insert the line "binding.pry" where you want to peek around to get a better idea of what is happening.
<Burgestrand> blik71: it will open an interactive interpreter where you can print out local variables and try to figure out what's happening.
khebbie has joined #ruby
khebbie has quit [Remote host closed the connection]
khebbie has joined #ruby
chills42 has joined #ruby
osmansekerlen has joined #ruby
khebbie has quit [Remote host closed the connection]
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
<Balzrael> binding.pry is da bomb when debugging ruby code
<Balzrael> and if you have rubymine as your editor of choice or intellij it comes already with a nice debugger
tkuchiki has quit [Remote host closed the connection]
<blik71> do i just run ruby <filename> as normal
<karapetyan> x[2+x] == nil ? puts "true" : puts "else"
<karapetyan> what's wrong with i?
<karapetyan> oh
<karapetyan> sorry
drptbl has joined #ruby
<karapetyan> hm, not actually
arup_r has quit [Ping timeout: 264 seconds]
<blik71> oh wow this is cool thank you sooo much :DDD!
Contigi has joined #ruby
<shevy> karapetyan your code must become clear in its intent
startupality has quit [Quit: startupality]
<Balzrael> just type q to be able to issue commands and write code at that point in the source file
<Balzrael> also you have step and next as commands
<Balzrael> and all the other goodies from a debugger that I don't really know how they work :)
<karapetyan> shevy: i trying to split it in simple modules
chills42 has quit [Remote host closed the connection]
startupality has joined #ruby
skinkitten has quit [Ping timeout: 255 seconds]
<Balzrael> I just inspect my objects to find the problem and run some methods
<Balzrael> do (x[2+x] == nil) ? ...
Burgestrand has quit []
Burgestrand has joined #ruby
pontiki has joined #ruby
<blik71> wait how do advance through or do I have to put itafter the code i want to inspect
devoldmx has quit [Remote host closed the connection]
DoubleMalt has quit [Remote host closed the connection]
<Balzrael> after you typed q and inspected the obeject from the console and run some code you can type step or next to advance to the next point in the execution
shmilan has joined #ruby
<Burgestrand> blik71: by default there's no way to advance the program in pry, you just have to put the binding.pry in multiple places
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Balzrael> it has setep and next commands but I never used them
<Balzrael> as most other Ruby devs :)
karapetyan has quit [Remote host closed the connection]
<Balzrael> just add more binding.pry
<Burgestrand> There's no step, unless you're using a debugging plugin with pry.
<Burgestrand> i.e. byebug
<Balzrael> next is good for incremental line execution
<Burgestrand> There's no next.
pawnbox has joined #ruby
<Balzrael> well get a debugging pry based gem then
arup_r has joined #ruby
<Burgestrand> blik71: like Balzrael mentions, if you want to advance without sprinkling binding.pry all over the place, you could use 'pry-stack_explorer' (https://github.com/pry/pry-stack_explorer), it's compatible with Ruby 1.9
juanpablo_ has joined #ruby
<ocx> hello, any summary of difference between javascript objects and ruby objects?
<Burgestrand> ocx: everything
<Burgestrand> ;)
leat2 has quit [Ping timeout: 244 seconds]
kirun has joined #ruby
<Burgestrand> ocx: do you have something more specific?
<ocx> Burgestrand: i am coding in both languages and trying to come up with a summary
<ocx> to clear up my mind
chouhoulis has joined #ruby
<ocx> in javascript i define an object as { } in ruby i just define a var and it is a generic object?
<ocx> the generic object can be a number, a hash , an array everything?
<Burgestrand> ocx: I'm not sure there's a way to make a good summary without it turning into multiple sentences, at least.
<Burgestrand> ocx: in Ruby everything is an object (more or less), in JavaScript you also have primitives (numbers, strings) that are not objects.
<ocx> yea so in ruby even a number has a built in function
<Burgestrand> ocx: however, both languages can be written so their usage looks very very similar, even though it's actually different ideas down below.
<ocx> in havascript it is not the case a number is primitive
startupality has quit [Quit: startupality]
khebbie has joined #ruby
khebbie has quit [Remote host closed the connection]
<ocx> Burgestrand: for example in javascript you have the dynamic linking where you inject scopes, and functions into other functions , do you have this in ruby too?
<Burgestrand> ocx: yes, there's a way to do it, and it's not uncommon.
juanpablo_ has quit [Ping timeout: 265 seconds]
casadei_ has joined #ruby
<Burgestrand> ocx: in javascript, there's "this", and in ruby there is "self", they are similar but not the same, and have different rules.
<ocx> i do vat self = this in javascript
<Burgestrand> ocx: in javascript you can control this using Function#apply and Function#call, in Ruby you can do it using #instance_exec, and similar methods.
<ocx> Burgestrand: do you have an mvc model in ruby?
<ocx> model view controller?
<ocx> for example in angular that is used
<Burgestrand> ocx: MVC is not a language-specific thing.
chouhoulis has quit [Ping timeout: 264 seconds]
<Burgestrand> ocx: it's a pattern, just like Math is not something you don't have in some languages.
<Burgestrand> ocx: an idea, so to speak.
<ocx> mvc is not adpoted a lot in ruby i think since you are dealing with backends
rbennacer has joined #ruby
<Burgestrand> ocx: Rails claims to be MVC.
<Burgestrand> ocx: And frankly, the thought of MVC is older in Ruby than JavaScript. Back before the front-end frameworks came, MVC was the hot thing in back-end development.
<Burgestrand> In my opinion it wasn't necessarily MVC, but people like easy ways to communicate what they're doing so it was adopted.
<Aeyrix> Rails isn't mvc?
<ocx> Burgestrand: let me guess , in rails the M is the SQL or the rails internal variables, V is apache or where users connect and C is the lofic inside rails?
<Burgestrand> ocx: In short, Ruby has MVC, and it was popular in Ruby before it was popular in JavaScript, but it's not a fair comparison to make when you're putting languages in front to compare them.
casadei_ has quit [Ping timeout: 250 seconds]
<Aeyrix> ocx: what
<jgt> ocx: you're either trolling, or you've been dealt an entire mountain of misinformation
<Aeyrix> ... what the fuck
<Aeyrix> yeah
<jgt> MVC not adopted because backends? WHAT!?
<Burgestrand> I think this reaction is not proportional to the question.
<Burgestrand> ocx: Rails considers the V as the model of something that is sent to the client, most often HTML.
<Aeyrix> I...
<Burgestrand> ocx: The M tends to be the database layer, the ORM, but it's not necessarily database-connected, it could as well be domain logic.
<Aeyrix> I'm really glad
<Aeyrix> that
<Aeyrix> you're not talking about this in #ror
<Aeyrix> where you could be misinforming people who actually want to learn about rails
<jgt> when I read stuff like this, I think of the eloquent words of Steve Losh: “Stop reading Hacker News, and open a fucking book”
<Aeyrix> Pretty much fam.
<Burgestrand> ocx: C is what handles the request.
<ocx> sorry then
<shevy> we shall master C
tkuchiki has joined #ruby
<Aeyrix> mods mods mods
<Burgestrand> ocx: Keep in mind that this is not the traditional MVC as it was written in the 80s.
<Aeyrix> mods mods mods
poli has joined #ruby
<ocx> C handles the request from Apache?
<Burgestrand> ocx: C is what decides how the request is handled, yes.
chills42 has joined #ruby
<Burgestrand> ocx: the flow goes Browser -> Apache -> C -> M (maybe multiple) -> V -> HTML -> Browser.
<jgt> Burgestrand: that responsibility is also kinda sorta divided with a router
<Burgestrand> jgt: Yes.
CorpusCallosum has joined #ruby
<jgt> but yeah, the flow above is totally correct
<Burgestrand> Like all generalisations this is not entirely correct, but it's a good approximation.
<blik71> thank you for suggesting pry that fixed my problem, also doesnt chomp take off the last specified character such as a ","
<Burgestrand> blik71: :)
spencer6245_ has joined #ruby
chills42 has quit [Remote host closed the connection]
<Burgestrand> blik71: in short, it doesn't modify the string, it returns a new one, could be significant.
<ocx> Burgestrand: the main work is in the M then
<blik71> ahh that explains it, i used it thinking it modified the object it was called on
CorpusCallosum has quit [Ping timeout: 246 seconds]
<ocx> so whatever i change in the M, will instantly change in the others too
<Burgestrand> ocx: Yes.
<ocx> no need to update the view and controller accordingly
<Burgestrand> No, it is different from MVC in the front-end.
<ocx> thats how mvc works in javascript at least, trying to see if it is the same
<ocx> ok
dorei has joined #ruby
<Burgestrand> ocx: In back-end MVC, the flow is almost always C -> M (multiple) -> V -> finished.
<jgt> ocx: The JavaScript frameworks/libraries that bill themselves as “MVC” aren't really doing MVC
Musashi007 has joined #ruby
<ocx> i see there is a finished here
howdoicomputer has joined #ruby
<Burgestrand> They're closer to the original idea of MVC than Rails.
<ocx> in havascript you have a listener and you dont have a finished, it is always listening
<Burgestrand> closer: You have an unfortunate name. :)
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
dopie has joined #ruby
<Burgestrand> Either way, once the real world enters your code base, you'll have to do all kinds of OO tricks to avoid a mess anyway.
<Burgestrand> I shouldn't say OO, I should say architecture.
yosafbridge has quit [Ping timeout: 240 seconds]
sdothum has joined #ruby
<ocx> any recommended books on how to do a proper arch?
<ocx> for scalability
<ocx> and accodomate traffic and growth
<ocx> as far as i understand it goes like users (xmlrpc) -> webserver -> rails -> sql
freezevee has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<freezevee> Can someone please help me with an issue described here ? http://serverfault.com/questions/721890/how-to-setup-vagrant-with-nginx-passenger-mysql-rvm
shmilan has quit [Ping timeout: 246 seconds]
ruurd has quit [Quit: ZZZzzz…]
yosafbridge has joined #ruby
<jgt> ocx: are you expecting wild growth?
dopie has quit [Quit: This computer has gone to sleep]
northfurr has quit [Quit: northfurr]
northfurr has joined #ruby
shmilan has joined #ruby
araujo_ has joined #ruby
ruurd has joined #ruby
howdoicomputer has quit [Ping timeout: 256 seconds]
<ocx> jgt: yes
Burgestrand has quit []
tkuchiki has joined #ruby
araujo has quit [Ping timeout: 272 seconds]
freerobby has joined #ruby
deject3d has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
startupality has joined #ruby
sepp2k has joined #ruby
tkuchiki has quit [Remote host closed the connection]
chills42 has joined #ruby
<shevy> ruby ruby ruby
sankaber has joined #ruby
howdoicomputer has joined #ruby
Musashi007 has quit [Quit: Musashi007]
morenoh149 has quit [Ping timeout: 240 seconds]
<deject3d> ruby ruby ruby ruby
<shevy> :)
<ocx> can rails integrate with redis?
Balzrael has quit [Quit: Leaving]
tkuchiki has joined #ruby
FernandoBasso has quit [Ping timeout: 268 seconds]
jgt has quit [Ping timeout: 246 seconds]
shmilan has quit [Quit: Leaving]
chills42 has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
psy_ has joined #ruby
mooe has quit [Quit: Connection closed for inactivity]
taylorrf has joined #ruby
Musashi007 has joined #ruby
taylorrf has quit [Remote host closed the connection]
ocx has quit [Ping timeout: 244 seconds]
centrx has joined #ruby
lxsameer has joined #ruby
dgutierrez1287 has joined #ruby
blik71 has quit [Ping timeout: 272 seconds]
yeticry has quit [Read error: Connection reset by peer]
howdoicomputer has quit [Ping timeout: 265 seconds]
startupality has joined #ruby
chouhoulis has joined #ruby
atomical has joined #ruby
startupality has quit [Client Quit]
chouhoulis has quit [Ping timeout: 268 seconds]
nsuke has joined #ruby
youngbaks has joined #ruby
cantaberry has quit [Ping timeout: 246 seconds]
psy_ has quit [Ping timeout: 256 seconds]
yeticry has joined #ruby
pawnbox has quit [Remote host closed the connection]
deject3d has quit [Remote host closed the connection]
moss has quit [Read error: Connection reset by peer]
deject3d has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
moss has joined #ruby
juanpablo_ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
juanpablo_ has quit [Ping timeout: 250 seconds]
Soda has joined #ruby
victortyau has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
k3asd` has quit [Ping timeout: 255 seconds]
yeticry has quit [Ping timeout: 244 seconds]
symm- has quit [Quit: Leaving...]
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yeticry has joined #ruby
apt-get has quit [Ping timeout: 252 seconds]
DLSteve has joined #ruby
freerobby has quit [Quit: Leaving.]
nhhagen has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
araujo_ has quit [Quit: Leaving]
nhhagen has joined #ruby
ordepdev has joined #ruby
araujo_ has joined #ruby
jdawgaz has joined #ruby
nsuke has quit [Ping timeout: 268 seconds]
apt-get has joined #ruby
araujo_ has quit [Ping timeout: 246 seconds]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yeticry has quit [Read error: Connection reset by peer]
esauOp has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
dionysus69 has joined #ruby
ordepdev has quit [Remote host closed the connection]
nsuke has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
jeanlinux has joined #ruby
Yzguy has joined #ruby
<jeanlinux> hello
<jeanlinux> i have a rails app that connects to a beanstalkd running on another server using the beaneater gem https://github.com/beanstalkd/beaneater
<jeanlinux> but here is the thing.. i want to keep the connection the the beanstalkd server alive always .. so i can receive new jobs almost instantaneously
FernandoBasso has joined #ruby
<jeanlinux> any suggestion on how to achieve that, cron, rails task, or rails 4 Live streaming? which would be more effective
<jeanlinux> sorry this is rails specific.. but i am a little bit stuck on this
umgrosscol has joined #ruby
dac has joined #ruby
dac is now known as Guest7866
tmtwd has joined #ruby
dcarmich has joined #ruby
araujo_ has joined #ruby
DmitryBochkarev has joined #ruby
tkuchiki has joined #ruby
<Yzguy> heyoo
dcarmich has quit [Client Quit]
araujo_ has quit [Client Quit]
araujo has joined #ruby
howdoicomputer has joined #ruby
jdawgaz has joined #ruby
Guest7866 is now known as Dack
howdoicomputer has quit [Ping timeout: 255 seconds]
Dack is now known as Dacky
nanoz has quit [Ping timeout: 256 seconds]
chouhoulis has joined #ruby
skade has joined #ruby
<Yzguy> anyone have experience with sinatra?
Musashi007 has quit [Quit: Musashi007]
khebbie has joined #ruby
khebbie has quit [Remote host closed the connection]
Trieste has quit [Quit: ZNC - http://znc.in]
yeticry has joined #ruby
chouhoulis has quit [Ping timeout: 252 seconds]
CloCkWeRX has quit [Ping timeout: 240 seconds]
kalzz has quit [Ping timeout: 244 seconds]
kalz has quit [Ping timeout: 244 seconds]
Neverdie has joined #ruby
David27 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
karapetyan has joined #ruby
roxtrongo has joined #ruby
athinggoingon has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ordepdev has joined #ruby
Llama4146 has joined #ruby
karapetyan has quit [Ping timeout: 268 seconds]
dionysus69 has quit [Ping timeout: 240 seconds]
roxtrongo has quit [Ping timeout: 252 seconds]
leitz has quit [Ping timeout: 246 seconds]
kalzz has joined #ruby
kalz has joined #ruby
karmatr0n has joined #ruby
rbennacer has quit [Remote host closed the connection]
phutchins has joined #ruby
Zackio has quit [Read error: Connection reset by peer]
ordepdev has quit [Remote host closed the connection]
stamina has quit [Ping timeout: 250 seconds]
leat2 has joined #ruby
havenwood has joined #ruby
Zackio has joined #ruby
deavid has quit [Ping timeout: 260 seconds]
LiquidInsect has quit [Read error: Connection reset by peer]
LiquidInsect has joined #ruby
karmatr0n has quit [Read error: No route to host]
karmatr0_ has joined #ruby
haxrbyte has joined #ruby
khebbie has joined #ruby
khebbie has quit [Remote host closed the connection]
Zai00 has joined #ruby
ordepdev has joined #ruby
MVPhelp has quit [Remote host closed the connection]
pawnbox has joined #ruby
tkuchiki has joined #ruby
karmatr0_ has quit [Read error: No route to host]
shinnya has joined #ruby
karmatr0n has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
mary5030 has joined #ruby
MVPhelp has joined #ruby
deject3d has quit [Quit: Computer has gone to sleep.]
frog0909 has joined #ruby
ordepdev has quit [Ping timeout: 240 seconds]
krz has joined #ruby
solocshaw has quit [Remote host closed the connection]
solocshaw1 has joined #ruby
nhhagen has quit [Remote host closed the connection]
solocshaw1 is now known as solocshaw
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nhhagen has joined #ruby
nhhagen has quit [Remote host closed the connection]
deavid has joined #ruby
leitz has joined #ruby
karmatr0n has quit [Ping timeout: 250 seconds]
Zackio has quit [Read error: Connection reset by peer]
ht__ has quit [Quit: Konversation terminated!]
codecop has joined #ruby
haxrbyte has quit [Quit: Leaving...]
jenrzzz has joined #ruby
ruurd has joined #ruby
astrobunny has joined #ruby
morenoh149 has joined #ruby
futilegames has joined #ruby
phutchins has quit [Ping timeout: 240 seconds]
jamesaxl has joined #ruby
pwnd_nsfw has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
karmatr0n has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
KramerC has quit [Quit: Leaving]
KramerC has joined #ruby
morenoh149 has quit [Ping timeout: 255 seconds]
karmatr0n has quit [Read error: No route to host]
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
futilegames has quit [Client Quit]
jcoe has joined #ruby
karmatr0n has joined #ruby
tkuchiki has quit [Remote host closed the connection]
minotep has joined #ruby
DmitryBochkarev has quit [Ping timeout: 252 seconds]
DmitryBochkarev has joined #ruby
casadei_ has joined #ruby
DLSteve has joined #ruby
karmatr0n has quit [Ping timeout: 240 seconds]
n1lo has joined #ruby
dasher00 has quit [Quit: Leaving]
tkuchiki has joined #ruby
karmatr0n has joined #ruby
minotep has quit [Ping timeout: 272 seconds]
Oka has joined #ruby
dasher00 has joined #ruby
karapetyan has joined #ruby
casadei_ has quit [Ping timeout: 250 seconds]
fantazo has joined #ruby
Zai00 has quit [Quit: Zai00]
k3asd` has joined #ruby
Azure|dc has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Remote host closed the connection]
chouhoulis has joined #ruby
izhak has joined #ruby
arup_r has quit [Ping timeout: 264 seconds]
<shevy> #sinatra should have
ekain has joined #ruby
<izhak> Hi, guys! Is it possible to wrap a missing (but callable) method to a reference. I mean, is it possible to return a reference to a missing method like .method(:some_real_method) does?
juanpablo_ has joined #ruby
bkxd has quit [Ping timeout: 265 seconds]
<shevy> wat
<shevy> return a reference to something that does not exist?
Llama4146 has quit [Read error: Connection reset by peer]
nanoz has joined #ruby
karmatr0n has quit [Remote host closed the connection]
<shevy> pay pizza with invisible money :)
mleung has joined #ruby
s00pcan has joined #ruby
karmatr0n has joined #ruby
osmansekerlen has quit [Quit: osmansekerlen]
<izhak> shevy: Why not? If you can call smth that doesn't exist, why can't you just reference it?
yeticry has quit [Ping timeout: 272 seconds]
nowhereFast has joined #ruby
<shevy> ah you are the webchat guy
karmatr0n has quit [Read error: Connection reset by peer]
karmatr0n has joined #ruby
juanpablo_ has quit [Ping timeout: 250 seconds]
<nowhereFast> how would I do a when i % 2 == 0 in a case statement?
pontiki has quit [Ping timeout: 265 seconds]
yeticry has joined #ruby
elperdut has joined #ruby
<centrx> nowhereFast, like that works
<centrx> nowhereFast, there are two forms of case
<nowhereFast> then I must be buckling something
roxtrongo has joined #ruby
<shevy> you could check-case on the result, such as case (i % 2); when 0; when 1
<nowhereFast> is there a specific pastebin that is preferred?
<shevy> gist I would think
karmatr0n has quit [Ping timeout: 252 seconds]
deject3d has joined #ruby
mleung has quit [Quit: mleung]
<shevy> yeyh you can put it on the case line as shown above
youngbaks has quit [Ping timeout: 246 seconds]
<nowhereFast> except that example doesnt work
roxtrongo has quit [Ping timeout: 264 seconds]
<izhak> nowhereFast: if this is the only condition (yes or no) it's better to use _if_. Otherwise, if you need to use _case_ then just omit _i_ after _case_
<centrx> nowhereFast, take out the i on the case line to use the different type of case, see http://ruby-doc.org/docs/keywords/1.9/Object.html#method-i-case
<nowhereFast> lets assume I'm going to be adding cases
dionysus69 has joined #ruby
<centrx> actually not great link
bruno- has quit [Ping timeout: 244 seconds]
<izhak> nowhereFast: just omit _i_ after _case_
<nowhereFast> pretty much just started with ruby so looking to make sense of its 'flow'
leat2 has quit [Ping timeout: 265 seconds]
<shevy> nowhereFast listen to centrx, don't listen to izhak :)
<nowhereFast> heh
<centrx> All hail shevy
leat2 has joined #ruby
solocshaw has quit [Ping timeout: 256 seconds]
<shevy> if it helps, you could check the return value in a variable
fantazo_ has joined #ruby
<nowhereFast> there must be a dirty harry quote somewhere in there
<shevy> and then use: case variable on that result
<nowhereFast> right, so dropping the i on the case line does it... now I've just got to figure out why
r_baron has joined #ruby
<shevy> can you update your gist, to reflex your current code?
* nowhereFast looks at the not great link
<shevy> *reflect
sumark has quit [Remote host closed the connection]
<shevy> you can also save with .rb ending on gist, then you get automatic colour highlighting for ruby
<izhak> nowhereFast: all _when_ conditions considered one by one, if one evaluates to true, this block will be executed
ht__ has joined #ruby
sumark has joined #ruby
zenguy_pc2 has quit [Read error: Connection reset by peer]
<nowhereFast> okay, just not seeing the value to the 'case' keyword as it currently stands
<nowhereFast> not with the when's in there
esauOp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<nowhereFast> case when when when, -it looks a little like nested cases
zenguy_pc2 has joined #ruby
fantazo_ has quit [Quit: Verlassend]
<izhak> when you specify an expression after _case_, then _when_ checks for equality of the _case_ expression and _when_ expression and if they are equal executes that block
<centrx> nowhereFast, case is very similar to a series of if-else statements
<centrx> nowhereFast, it's more concise and clean in some cases
zenguy_pc2 has quit [Max SendQ exceeded]
zenguy_pc2 has joined #ruby
<shevy> nowhereFast can you show your current code on gist?
<nowhereFast> yes, about as concise as switch is in general, im mentally comparing to scala's pattern matching I suppose
<nowhereFast> shevy... all I did was as izhak and centrx both suggested and took the i off the case line
zenguy_pc2 has quit [Max SendQ exceeded]
karapetyan has quit [Remote host closed the connection]
zenguy_pc has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
amoeba_ has joined #ruby
Soda has quit [Remote host closed the connection]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zenguy_pc has joined #ruby
amoeba_ has quit [Client Quit]
amoeba_ has joined #ruby
solocshaw has joined #ruby
amoeba_ has quit [Client Quit]
zenguy_pc has quit [Max SendQ exceeded]
djbkd has joined #ruby
<nowhereFast> having multiple when statements, -is there a way to execute a block of code regardless of which condition is met?
amoeba_ has joined #ruby
mhib has joined #ruby
<nowhereFast> so if any when is met... do this
Neverdie has quit [Quit: http://radiux.io/]
amoeba_ has left #ruby [#ruby]
<gizmore> nowhereFast: maybe doit = true; case.... else doit = false; ... and then an if doit below
deject3d has quit [Remote host closed the connection]
amoeba_ has joined #ruby
karapetyan has quit [Remote host closed the connection]
leat2 has quit [Remote host closed the connection]
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
<nowhereFast> yup, an additional check, I was looking to see if there was something like a 'regardless' of sorts
ruurd has quit [Quit: ZZZzzz…]
vigo has joined #ruby
djbkd has quit [Ping timeout: 265 seconds]
leat2 has joined #ruby
<vigo> hi gizmore
<izhak> nowhereFast: you can just merge _when_ conditions with comma
amoeba has quit [Disconnected by services]
amoeba has joined #ruby
amoeba has quit [Disconnected by services]
amoeba_ is now known as amoeba
amoeba` has joined #ruby
quanzhuo has joined #ruby
phreakocious has quit [Ping timeout: 255 seconds]
quanzhuo has left #ruby [#ruby]
DLSteve has quit [Ping timeout: 244 seconds]
fantazo has quit [Quit: Verlassend]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<nowhereFast> izhak, got a link for that merging?
<shevy> when 1,2,3,4,5
<izhak> yeah.. It'll act like any of with both _case_ types.
<apt-get> is there any easy way to get the default browser's name?
<shevy> apt-get it's usually stored somewhere or sent via http isn't it?
<apt-get> shevy: what do you mean?
acke has quit [Remote host closed the connection]
DLSteve has joined #ruby
phreakocious has joined #ruby
jacksonmills has joined #ruby
<nowhereFast> apt-get, your http headers will have that info
craysiii has joined #ruby
leat2 has quit [Remote host closed the connection]
leat2 has joined #ruby
ruurd has joined #ruby
<nowhereFast> when the browser connects in the handshake process it tells the server the who and what it is
jenrzzz has joined #ruby
apt-get_ has joined #ruby
<apt-get_> sorry for leaving, connection problems.
<apt-get_> anyway, shevy, I'm not talking about using a web framework
<apt-get_> meant more inside of a script
<nowhereFast> the when's in cases are mutually exclusive if not merged? -so if one when is met the rest are not processed?
apt-get has quit [Ping timeout: 246 seconds]
<nowhereFast> 246 seconds ping... crazy
<izhak> nowhereFast: right. The first one will win
<amoeba> apt-get_: in linux you can do: xdg-settings get default-web-browser
<amoeba> not sure how portable that is
elperdut has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<nowhereFast> izhak... do you know if ruby runs through them though regardless on if a condition is met?
<nowhereFast> asking more from an efficiency perspective, some languages actually process on regardless making case runs slower
leat2 has quit [Ping timeout: 260 seconds]
<izhak> nowhereFast: I would think it evaluates them until first true is met
jenrzzz has quit [Ping timeout: 272 seconds]
jgt has joined #ruby
<nowhereFast> :-) one would think that would do this
<nowhereFast> all*
<amoeba> nowhereFast: I imagine it depends on the number of conditions
Yzguy has quit [Quit: Zzz...]
leat2 has joined #ruby
<izhak> it would be a serious problem it ruby would evaluate them all.. it changes logic, and has side effects. So it shouldn't be depend on number of conditions
karmatr0n has joined #ruby
leat2 has quit [Remote host closed the connection]
<apt-get_> amoeba: I guess that works
modern has joined #ruby
leat2 has joined #ruby
<apt-get_> but a windows solution would be nice too... :/
<amoeba> not sure, but I bet it's a registry value somewhere
acke has joined #ruby
dgutierrez1287 has joined #ruby
casadei_ has joined #ruby
<apt-get_> oh well
<apt-get_> I'll just ask user for default browser
<apt-get_> :DDDD
<amoeba> HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.html
<shevy> :D
<shevy> ruby makes things easy
firstdayonthejob has joined #ruby
howdoi has joined #ruby
howdoicomputer has joined #ruby
kloeri has quit [Read error: Connection reset by peer]
<nowhereFast> might be something useful in there for you
mary5030 has quit [Remote host closed the connection]
kloeri has joined #ruby
<amoeba> I think he is trying to detect via a shell script
<nowhereFast> thanks amoeba, looks like what I was looking for
mary5030 has joined #ruby
<amoeba> I was curious as well :)
dgutierrez1287 has quit [Ping timeout: 265 seconds]
phreakocious has quit [Remote host closed the connection]
casadei_ has quit [Ping timeout: 265 seconds]
<nowhereFast> “If you find you’re looking to optimize that intensely you probably don’t want an interpreted language."
<nowhereFast> nooooooo
<nowhereFast> why must common sense always spoil it for me
tkuchiki has joined #ruby
<amoeba> :)
apt-get_ is now known as apt-get
ekleog has quit [Remote host closed the connection]
ekleog has joined #ruby
roxtrongo has joined #ruby
howdoicomputer has quit [Ping timeout: 264 seconds]
<izhak> I can't understand how are you going to optimize dynamic case expression. The value of _when_ must be calculated in place.
mary5030 has quit [Ping timeout: 250 seconds]
karmatr0_ has joined #ruby
<izhak> It maybe a function call that reloads world. And you can't precalculate it.
firstdayonthejob has quit [Read error: Connection reset by peer]
RandyT has quit [Quit: ZNC - http://znc.in]
RandyT has joined #ruby
tkuchiki has quit [Ping timeout: 244 seconds]
<izhak> For static case expressions like in C, where switch values are compile time, it's possible to use hashes, jump tables etc.
phreakocious has joined #ruby
karmatr0n has quit [Ping timeout: 244 seconds]
jgt has quit [Quit: WeeChat 1.2]
ndrei has joined #ruby
Trieste has joined #ruby
jgt has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
<amoeba> izhak, yeah expression that mutate state prevents it... I imagine there could be optimization if the expressions were static, but this is one of those things were it probably doesn't matter much.
Neverdie has joined #ruby
WajidKagzi has joined #ruby
<nowhereFast> I dont think the article was referring to optimizing _when_ as much as it was referring to interpreted languages being slower in general, and that if the detail mattered you'd be better off going a different route
karmatr0_ has quit [Ping timeout: 246 seconds]
ordepdev has joined #ruby
DmitryBochkarev has quit [Ping timeout: 240 seconds]
futilegames has joined #ruby
astrobunny has quit [Remote host closed the connection]
queequeg1 has joined #ruby
firstdayonthejob has joined #ruby
<izhak> yes, generally any IFS are evil for superscalar archs, cause they use predictions and conveyor heavily, and when a line of execution can't be predicted they suffer speed degradation, as whole prefetched line should be reset. That's why all dynamic cases are by definition slow.
stamina has joined #ruby
[k- has joined #ruby
QORRiE has joined #ruby
<izhak> where slow means "shouldn't be used in cycles" :)
<nowhereFast> yup, the use case should dictate though, and I think dynamic languages these days hold their own just fine in the majority of cases
ordepdev has quit [Remote host closed the connection]
ordepdev has joined #ruby
<nowhereFast> x = "blah"; x[0] #returns b
<nowhereFast> x = 123; -how do I get the 0'th index here?
<shevy> wheee... ruby ftp just got some new methods: https://github.com/ruby/ruby/blob/trunk/ChangeLog
<nowhereFast> x.to_s[0]?
<nowhereFast> and to have it return as a number x.to_s[0].to_i?
<[k-> please use proper terms...
firstdayonthejob has quit [Read error: Connection reset by peer]
Blaguvest has joined #ruby
rehat has joined #ruby
<[k-> use hundreds place or something to make your questiom clearer
<[k-> but you are right
<shevy> nowhereFast yes, usually via []
solocshaw has quit [Ping timeout: 244 seconds]
<[k-> shevy you ignore me too :(
solocshaw has joined #ruby
<shevy> your nick is so tiny!
QORRiE has quit [Changing host]
QORRiE has joined #ruby
<shevy> xchat displays a vertical | after a nick
DmitryBochkarev has joined #ruby
<shevy> so your nick appears like |k|
<[k-> but there is still a line!
<[k-> do you not notice the lines???!
<shevy> random-hit-enter key
<shevy> :)
<[k-> :(
umgrosscol has quit [Remote host closed the connection]
<rehat> if I have a path string to a file and I want to remove the '.<extention>' at the end would I use slice minus the last two characters or is there a better way
startupality has joined #ruby
esauOp has joined #ruby
Yzguy has joined #ruby
solocshaw has quit [Remote host closed the connection]
solocshaw has joined #ruby
karmatr0n has joined #ruby
Vile` has quit [Remote host closed the connection]
<rehat> [k-: sweet!, thanks
jds has joined #ruby
ordepdev has quit [Remote host closed the connection]
victortyau has quit [Quit: Leaving]
tomchapin has joined #ruby
spider-mario has joined #ruby
minotep has joined #ruby
esauOp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
firstdayonthejob has joined #ruby
ekain has quit [Quit: Textual IRC Client: www.textualapp.com]
darkf has quit [Quit: Leaving]
mistermocha has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Ping timeout: 246 seconds]
hanmac has quit [Ping timeout: 244 seconds]
lipoqil has joined #ruby
roxtrong_ has joined #ruby
amoeba has quit [Quit: Leaving]
greenbigfrog has joined #ruby
WajidKagzi has quit [Quit: WeeChat 1.2]
mleung has joined #ruby
mleung has quit [Client Quit]
startupality has quit [Quit: startupality]
roxtrongo has quit [Ping timeout: 256 seconds]
jdawgaz has joined #ruby
Pathfinder has joined #ruby
morenoh149 has joined #ruby
QORRiE has quit [Quit: Leaving]
karmatr0n has quit [Read error: No route to host]
karmatr0n has joined #ruby
sankaber has joined #ruby
<shevy> "OCaml is an object-oriented, imperative, functional programming language"
morenoh149 has quit [Ping timeout: 250 seconds]
cornerma1 has joined #ruby
<shevy> sorta like the eierlegende Wollmilchsau: https://en.wiktionary.org/wiki/eierlegende_Wollmilchsau it can do everything!
psy_ has joined #ruby
karmatr0n has quit [Read error: Connection reset by peer]
<[k-> Scala?
karmatr0n has joined #ruby
hanmac has joined #ruby
jgt has quit [Ping timeout: 268 seconds]
cornerman has quit [Ping timeout: 240 seconds]
juanpablo_ has joined #ruby
cornerma1 is now known as cornerman
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> ocaml
<shevy> I don't know the difference anyway
<FernandoBasso> "To use the assignment method you must set the receiver." def my_method=(val) self.some_var = val; end <-- This gives me an error.
<FernandoBasso> Also, is the assignment method = or my_method= ?
pontiki has joined #ruby
casadei_ has joined #ruby
leat2 has quit [Ping timeout: 265 seconds]
karmatr0n has quit [Ping timeout: 240 seconds]
howdoicomputer has joined #ruby
houhoulis has joined #ruby
<gizmore> is there any working skype api? ... like there is webapi now, and some universal communication for skype... but the docs are horrible... is there maybe a ruby gem that works already?
juanpablo_ has quit [Ping timeout: 240 seconds]
newdan has joined #ruby
tejasmanohar has joined #ruby
<[k-> Fernando, try @some_var =
<shevy> FernandoBasso use foo=(i) rather than foo =(i)
<newdan> Is there a shorthand for ["foo", "bar"].map {|s| URI.decode(s))}
arup_r has joined #ruby
<shevy> in your example, the = belongs to the method invocation, the ruby parser just is liberal
<newdan> I know in Python I'd be able to do something like map(URI.decode, ['foo', 'bar'])
<[k-> %w[foo bar]
<newdan> [k-: Haha that's not the part I'm looking to shorthand, I mean is there a way to change that block so I can just "reference" URI.decode and give that to map()?
symm- has joined #ruby
casadei_ has quit [Ping timeout: 244 seconds]
<[k-> URI.method(:decode)?
<[k-> im not sure if that works though
<shevy> newdan unfortunately ruby does not allow shorthand notation with arguments via &
karmatr0n has joined #ruby
howdoicomputer has quit [Ping timeout: 250 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> would be nice if one could do %w( foo bar ).map(&:URI.decode(&input))
<[k-> &URI.method(:decode)
ekleog has quit [Remote host closed the connection]
<[k-> that isn't an improvement though
<newdan> Hmm. I guess I should just accept the block in this case?
<craysiii> %w(foo bar).map(&:URI.decode) would be ideal imo
dionysus69 has quit [Ping timeout: 250 seconds]
<shevy> newdan probably; you could however patch URI too, to allow array as input
<shevy> actually, why doesn't URI.decode() accept arrays?
<newdan> shevy: It might, I didn't try
leat2 has joined #ruby
<[k-> URI.decodeMany
<shevy> yeah
<shevy> unescape(*arg)
<shevy> that will be an Array right?
ekleog has joined #ruby
<shevy> decode is an alias to unescape
baweaver has joined #ruby
moeabdol has joined #ruby
milanpaperclip has left #ruby [#ruby]
<shevy> damn
<shevy> it will concatenate onto the result
<newdan> Still learning Ruby. My train of thought was e.g. %[foo bar].map &:upcase works pretty well, was wondering if there'd be something like that if I was using URI.decode instead
<newdan> But the block's not too bad
<shevy> yeah but your example works because you don't pass an argument
<shevy> you just call .upcase
milanpaperclip has joined #ruby
northfurr has quit [Quit: northfurr]
<shevy> perhaps in ruby 3.0!
lxsameer has quit [Ping timeout: 264 seconds]
dionysus69 has joined #ruby
<newdan> shevy: Sounds good :) Also helps me feel less like I'm doing it wrong now
<craysiii> isn't ruby passing each element of the array as an argument to the block as it's yielded?
<shevy> in the {} variant sure
northfurr has joined #ruby
<ytti> if you want in this gang, you gotta love blocks
<craysiii> %[foo bar].map &:upcase < not in this case?
<ytti> it's our gang sign
<baweaver> Symbol to proc
<craysiii> %w{ west side }
<shevy> craysiii well, you don't pass an argument to upcase()
<baweaver> same thing
<newdan> AFAIK the ampersand is the same as (:upcase.to_proc).('foo')
<apt-get> how do I install shoes, exactly...?
<apt-get> it's not available in my repositories
karmatr0n has quit [Ping timeout: 250 seconds]
<baweaver> %[foo bar].map(&:upcase) -> %[foo bar].map { |i| i.upcase }
karmatr0n has joined #ruby
<baweaver> it calls that method on each yielded element
Taisigue has joined #ruby
karmatr0_ has joined #ruby
uxp has joined #ruby
<pontiki> <poit>
nowhereFast has left #ruby ["Leaving"]
<baweaver> alo pontiki
<craysiii> you could patch in a URL_decode onto String ( ͡° ͜ʖ ͡°)
<ytti> extend
futilegames has quit [Quit: futilegames]
<ytti> so you don't leak your dirt to external dependencies
blonp has joined #ruby
roxtrong_ has quit [Remote host closed the connection]
<FernandoBasso> shevy: Same problem.
<apt-get> after doing 'gem install shoes', trying to use 'shoes myapp.rb' gives me an error
<apt-get> specifically, this
<blonp> I hope I'm in the appropriate place. Ruby newb here playing around with a rails app (really just a json api)
<blonp> I'd like to have an action that impacts all instances of a model (eg Users)
Musashi007 has joined #ruby
<pontiki> if you're questions are more rails than ruby, you want #rubyonrails
<pontiki> ?rails
<ruboto> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<blonp> Ok, thanks
<pontiki> see ya there!
osmansekerlen has joined #ruby
karmatr0n has quit [Ping timeout: 246 seconds]
blonp has left #ruby [#ruby]
<apt-get> a more general question
<apt-get> what's the easiest to use gui framework on ruby?
<apt-get> something that feels like ruby, preferably not just another C/C++ wrapper
karmatr0_ has quit [Ping timeout: 244 seconds]
Azure has joined #ruby
<Pathfinder> How do I get nokogiri to accept a ruby method as a node name?
Zai00 has joined #ruby
<Pathfinder> Here is my scenario .. https://github.com/sparklemotion/nokogiri/issues/1350
karmatr0n has joined #ruby
morenoh149 has joined #ruby
Musashi007 has quit [Ping timeout: 256 seconds]
CustosL1m3n has joined #ruby
karmatr0_ has joined #ruby
howdoicomputer has joined #ruby
Narzew has joined #ruby
Taisigue has quit [Quit: Lost terminal]
CustosL1men has quit [Ping timeout: 260 seconds]
karmatr0n has quit [Ping timeout: 250 seconds]
allomov has joined #ruby
Musashi007 has joined #ruby
veg has quit [Ping timeout: 265 seconds]
roxtrongo has joined #ruby
jackjackdripper has joined #ruby
ordepdev has joined #ruby
WajidKagzi has joined #ruby
pragmatism has joined #ruby
<WajidKagzi> is there any way to clean up all these get requests in my terminal while running rails server
Zai00 has quit [Quit: Zai00]
havenwood has quit [Ping timeout: 264 seconds]
futilegames has joined #ruby
dasher00 has quit [Quit: Leaving]
dasher00 has joined #ruby
vigo has quit [Quit: Page closed]
startupality has joined #ruby
pragmatism has quit [Client Quit]
pragmatism has joined #ruby
djbkd has joined #ruby
pragmatism has quit [Client Quit]
veg has joined #ruby
<FernandoBasso> shevy: (or others :p) http://sprunge.us/GGUB?ruby
WajidKagzi has quit [Ping timeout: 250 seconds]
Yzguy has quit [Quit: Zzz...]
startupality has quit [Ping timeout: 244 seconds]
djbkd has quit [Ping timeout: 260 seconds]
ordepdev has quit [Remote host closed the connection]
karmatr0n has joined #ruby
leitz has quit [Quit: Nappy time]
karmatr0n has quit [Read error: Connection reset by peer]
karmatr0n has joined #ruby
karmatr0n has quit [Read error: Connection reset by peer]
<dorei> which one: symbol.to_s
<dorei> or "#{symbol}"
<dorei> ?
karmatr0_ has quit [Ping timeout: 246 seconds]
<apt-get> what's the easiest to use gui framework on ruby?
<apt-get> something that feels like ruby, preferably not just another C/C++ wrapper
<shevy> dorei in that specific example, these should be equivalent; #{} will invoke .to_s anyway
firstdayonthejob has quit [Read error: Connection reset by peer]
<shevy> FernandoBasso there is no need for self.name= there is it? I mean you call this recursively so this should not work right?
<shevy> you need to read in your mind "self.name = name" as "self.name= name" :D
<FernandoBasso> shevy: No, no need. I could just do def name=(name); @name = name; end;
<shevy> yeah
<FernandoBasso> But the docs says "you always need a receiver"
jdawgaz has joined #ruby
<FernandoBasso> The last example before "abbreviated assignment".
<FernandoBasso> And I could successfully change self.value = 42 with @value = 42 anyway.
<shevy> well
karmatr0n has joined #ruby
<FernandoBasso> So, I don't make any sense of it right now.
<shevy> it will return 42
nowhereFast has joined #ruby
FrankD has quit [Ping timeout: 250 seconds]
<shevy> FernandoBasso what will this return: http://pastie.org/10415094
FrankD_ has joined #ruby
<shevy> run it only after you gave an answer :)
<FernandoBasso> OK. Let me think hard about this :p
<shevy> then say what this will yield: http://pastie.org/10415099
<FernandoBasso> Actually, I don't know.
karapetyan has joined #ruby
<FernandoBasso> I have no idea how that works.
<FernandoBasso> I would -guess- the first one returns 55.
karmatr0n has quit [Read error: No route to host]
karmatr0n has joined #ruby
<FernandoBasso> But I know JS, for instance, ignores certain return types in certain situations.
nowhereFast has quit [Client Quit]
<FernandoBasso> If you call a constructor function and return something that is not an object, explicit return is simply ignored, and the newly created object is returned anyway.
<shevy> yeah
<shevy> first one returns 42, second one 55
<shevy> note that the only real difference is the =
jackjackdripper has quit [Quit: Leaving.]
<shevy> sounds similar to ruby
<shevy> the explanation I was given was that code like this works: foo.x = foo.y = foo.z = 1
juanpablo_ has joined #ruby
<FernandoBasso> Ok, I think I see.
<FernandoBasso> But I don't know if i accept that I am unable to learn from the docs, or the docs are just too superficial...
<FernandoBasso> Or both :p
mleung has joined #ruby
<shevy> dunno
<shevy> I write down stuff into my own local docu
mleung has quit [Client Quit]
jeanlinux has quit [Read error: Connection reset by peer]
firstdayonthejob has joined #ruby
mistermocha has quit [Remote host closed the connection]
juanpablo_ has quit [Ping timeout: 244 seconds]
<FernandoBasso> In my earlier example, although def name=(name); self.name = name; end did not work, a method with another name accepted self.name.
<FernandoBasso> shevy: Me too.
<FernandoBasso> Anki, also.
<shevy> yeah because you were recursively calling the method
<FernandoBasso> Makes sense.
ebbflowgo has joined #ruby
nowhereFast has joined #ruby
<FernandoBasso> shevy: Thanks a lot for this invaluable lesson.
pawnbox has quit [Ping timeout: 250 seconds]
rakm has joined #ruby
<shevy> \o/
<FernandoBasso> I was able to contribute to some MDN docs (very few things). PHP is hell to contribute to the docs.
mleung has joined #ruby
Alina-malina has quit [Ping timeout: 244 seconds]
Narzew has quit [Quit: Leaving]
<FernandoBasso> If ruby is easy to contribute to docs, you could consider making some contributions like this from time to time :p
jeanlinux has joined #ruby
Zackio has joined #ruby
<FernandoBasso> I will try if one day I fell I know what I am talking about.
dasher00 has quit [Ping timeout: 246 seconds]
roxtrong_ has joined #ruby
Alina-malina has joined #ruby
mistryneel has joined #ruby
<FernandoBasso> Anyway, thanks once more. I really appreciate you spending time helping others out. Honorable.
Narzew has joined #ruby
rakm has quit [Client Quit]
solars has joined #ruby
<shevy> I dunno
<shevy> the interface feels sorta weird
roxtrongo has quit [Ping timeout: 240 seconds]
<shevy> the ruby one may require some overhaul/change
karmatr0n has quit [Ping timeout: 272 seconds]
karmatr0n has joined #ruby
dotix has joined #ruby
elperdut has joined #ruby
<FernandoBasso> I find the comments section in php docs wonderful.
<FernandoBasso> Especially because they end up sorted by "relevance".
<FernandoBasso> Since people can up/down vote them.
<FernandoBasso> I once read on ##php: "for enterprise solutions, look at the comments section" :p
karmatr0n has quit [Read error: No route to host]
kobain has joined #ruby
nowhereFast has left #ruby [#ruby]
<FernandoBasso> PDO('mysql:host;dbname=foo;charset=UTF8', $user, $pass) was one such situation, about the charset part.
karmatr0n has joined #ruby
<shevy> yeah
<shevy> now if php would not be such an awful language
<FernandoBasso> Yep.
nowhereFast has joined #ruby
<FernandoBasso> It is very practical for the web (imho), but full of shortcomings.
<shevy> it's been interesting to see python overtake php popularity
<shevy> in some areas at least
<FernandoBasso> Agreed.
<rehat> regex question. how do you use a character class to capture and ignore at the same time? Trying to avoid capturing the IBAction here http://rubular.com/r/IjLpZOYd8z
dotix has quit [Ping timeout: 240 seconds]
<newdan> Is Python overtaking PHP popularity? I thought Ruby/Rails was what took it over
<karapetyan> shevy: rabbbbbiitss :$
nowhereFast has left #ruby [#ruby]
<shevy> newdan python yeah, ruby-rails not really
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
VeryBewitching has joined #ruby
dasher00 has joined #ruby
allomov has quit [Remote host closed the connection]
nowhereFast has joined #ruby
mistryneel has quit []
karmatr0_ has joined #ruby
BraddPitt has joined #ruby
crankhar1er has joined #ruby
<FernandoBasso> shevy: I will show you my boss' php code (only a tiny portion of it).
BraddPitt has quit [Client Quit]
BraddPitt has joined #ruby
karapetyan has quit [Remote host closed the connection]
karmatr0n has quit [Read error: No route to host]
karmatr0n has joined #ruby
<shevy> nooooo
<shevy> I abandoned php 10 years ago, don't punish me
karapetyan has joined #ruby
<FernandoBasso> That is not PHP's fault, actually.
<shevy> it will remain ugly
<shevy> even if you make it shorter
<shevy> a bad language encourages bad practice
<shevy> but I can show you a better example ;)
<shevy> I mean worse
<FernandoBasso> I dare you.
karmatr0n has quit [Read error: No route to host]
<FernandoBasso> There are at least 5 bad practices in those few lines.
<FernandoBasso> 7 nested ifs, to start with.
<shevy> isn't this brilliant?
<shevy> function print_custom_reduced_alphabet_info(){
<shevy> ?>
<shevy> I really dig this
<FernandoBasso> haha!
<weaksauce> rehat what exactly are you trying to accomplish?
karmatr0n has joined #ruby
elperdut has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<rehat> trying to get all methods in a objective-c file but avoid methods with the IBAction return type
<FernandoBasso> shevy: But seriously, like in that sentence "just because javascript is classless, it doesn't mean you have to", one doesn't need to write such code in php either.
crankharder has quit [Disconnected by services]
karmatr0_ has quit [Ping timeout: 244 seconds]
crankhar1er is now known as crankharder
<shevy> I think javascript is a better programming language compared to php
<FernandoBasso> gravar1_1(), gravar1_2, gravar2_1, etc, magic numbers, unsanitized data to db, direct access to globals, and many other bad things.
<FernandoBasso> shevy: Me too.
<FernandoBasso> I actually like js.
<rehat> I guess I could filter that out later, but it would be cool to know how to do it with a regex pattern
<FernandoBasso> I like almost all langs.
shinnya has quit [Ping timeout: 260 seconds]
<FernandoBasso> (from the ones I had contact so far)
krz has quit [Ping timeout: 250 seconds]
jeanlinux has quit [Ping timeout: 244 seconds]
<weaksauce> rehat i don't think it's really possible with regex. might be but it's not great at rejecting things
ordepdev has joined #ruby
<weaksauce> it's meant for regular expressions that have a regular structure.
<FernandoBasso> shevy: And we all know PHP is not php4.x any longer anyway.
<rehat> weaksauce: ahh, ok thanks
xiii_ has joined #ruby
<xiii_> I have a binary string (like "010111000101010101"). How do I convert this to raw text in Ruby?
krz has joined #ruby
QORRiE has joined #ruby
UtkarshRay has quit [Quit: Leaving]
<shevy> raw text?
<xiii_> shevy: Yeah, like the raw ascii values
<weaksauce> rehat i haven't used them but you might be able to use http://www.regular-expressions.info/lookaround.html
<xiii_> shevy: Which will likely be unreadable characters
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #ruby
leat2 has quit [Ping timeout: 240 seconds]
<weaksauce> rehat^
<weaksauce> yeah
allomov has joined #ruby
leat2 has joined #ruby
elperdut has joined #ruby
symm- has quit [Quit: Leaving...]
<rehat> weaksauce: oh nice! That site seems like a good doc for regex , thanks
<weaksauce> rehat yeah very thorough
The_Phoenix has quit [Read error: Connection reset by peer]
<weaksauce> rehat and if you change the ! to a : it will only find the IBAction lines
<weaksauce> might be useful later on
<rehat> weaksauce: thanks dude
leafybasil has quit [Ping timeout: 250 seconds]
<weaksauce> np
futilegames has quit [Quit: futilegames]
roxtrong_ has quit [Remote host closed the connection]
jeanlinux has joined #ruby
pontiki has quit [Ping timeout: 250 seconds]
Musashi007 has quit [Quit: Musashi007]
Rickmasta has joined #ruby
workmad3 has joined #ruby
<weaksauce> > "010111000101010101".to_i(2)
<weaksauce> >> "010111000101010101".to_i(2)
<ruboto> weaksauce # => 94549 (https://eval.in/432230)
tjohnson has joined #ruby
nowhereFast has left #ruby [#ruby]
crdpink has joined #ruby
osmansekerlen has quit [Quit: osmansekerlen]
crdpink2 has quit [Ping timeout: 244 seconds]
<mblagden_> you want the ascii values of the 0 character and 1 character, or you want to interpret that binary as numbers, then use those numbers as ascii codes?
fxn has quit [Quit: zZzZzZ...]
<mblagden_> if the latter.. I have no idea how you seinsibly map 18 binary digits to ascii
symm- has joined #ruby
<mblagden_> a multiple of 8 or multiple of 7 would make a bit more sense
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
lkba has joined #ruby
roxtrongo has joined #ruby
jenrzzz has joined #ruby
fedexo has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
rehat has quit [Remote host closed the connection]
psy_ has quit [Ping timeout: 268 seconds]
platzhirsch has joined #ruby
roxtrongo has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
pontiki has joined #ruby
jack_ has joined #ruby
jack_ has quit [Client Quit]
jack_ has joined #ruby
craysiii has quit [Remote host closed the connection]
danieli has joined #ruby
<apt-get> how do I use the gtk toolkit?
<apt-get> I get this error: tooltips.rb:48:in `<main>': undefined method `init' for Gtk:Module (NoMethodError)
<shevy> apt-get did you download the package?
<apt-get> yeah
<apt-get> here's the code
<apt-get> shevy: I gem installed gtk and gtk3
mkosaki has joined #ruby
dgutierrez1287 has quit [Ping timeout: 244 seconds]
<shevy> nah
<pontiki> does that even pass syntax??
karmatr0_ has joined #ruby
<apt-get> pontiki: first link when searching "ruby gtk" on google
<apt-get> so I assume the code is correct
ledestin has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
<shevy> nah
<shevy> extract it
<shevy> cd into it; go to either gtk2/ or gtk3/
<shevy> gtk2 should be more stable
<shevy> there, find sample/ directory
roxtrong_ has joined #ruby
UtkarshRay has joined #ruby
<shevy> then go to gtk-demo/
<shevy> then run "ruby main.rb"
<shevy> you'll have lots of examples, all with working code in that directory
karmatr0_ has quit [Read error: No route to host]
<shevy> in total I think you can find about 500 examples
<apt-get> shevy: thanks!
<apt-get> wow
xiii_ has quit [Quit: leaving]
karmatr0_ has joined #ruby
Rurik has joined #ruby
Hrorek has quit [Read error: Connection reset by peer]
karmatr0_ has quit [Read error: Connection reset by peer]
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
<shevy> here is hello world for gtk2: http://pastie.org/10415303 - it may work if you replace gtk2 with gtk3
karmatr0_ has joined #ruby
<shevy> but gtk is sorta semi-stable... for instance it does not work for me right now /Programs/Ruby/2.2.3/lib/ruby/site_ruby/2.2.0/glib2/deprecatable.rb:138:in `const_get': uninitialized constant ExtensionMode (NameError)
<shevy> I mean *gtk3, the ruby-bindings to it
karmatr0n has quit [Ping timeout: 264 seconds]
mleung has quit [Quit: mleung]
roxtrong_ has quit [Remote host closed the connection]
newdan has quit [Quit: Lost terminal]
karmatr0_ has quit [Read error: No route to host]
ebbflowgo has quit [Ping timeout: 244 seconds]
karmatr0n has joined #ruby
karmatr0n has quit [Read error: Connection reset by peer]
<shevy> hmm
karmatr0n has joined #ruby
<FernandoBasso> What is the difference between arr = 1, 2, 3 (which I got), arr = *[1, 2, 3] and arr = 1, *[2, 3]. The last two seem to result in just the same thing as the first one.
Guest has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> well the first variant is the lazy variant of arr = [1, 2, 3]
<FernandoBasso> yes.
frog0909_ has joined #ruby
<FernandoBasso> Ah, a, b, c = *[1, 2, 3] ?
<shevy> a, b, c = *[1, 2, 3] would be the same as a, b, c = [1, 2, 3]
<FernandoBasso> I see.
<FernandoBasso> Well, the doc is (sorry), -useless- about splat then (at least the part I am reading now).
MichaelSmith has joined #ruby
<FernandoBasso> Reading that post. Thanks.
karmatr0_ has joined #ruby
frog0909 has quit [Ping timeout: 240 seconds]
leat2 has quit [Remote host closed the connection]
<apt-get> shevy: the code in some of the examples really looks more like c++ code than ruby code :-(
<shevy> apt-get yeah
<apt-get> is there any ruby gui framework that's more than just a c wrapper?
<apt-get> apart from shoes
karmatr0n has quit [Read error: No route to host]
<apt-get> because I've been trying to install that for 2 hours
yfeldblum has joined #ruby
<shevy> haha
<apt-get> and the 3.x version download page is down
<shevy> it all erodes
<shevy> the problem is that the underlying api always leaks through
<shevy> you have this problem in ruby-gnome/ruby-gtk and you have it in ruby-kde/ruby-qt
<apt-get> shoes looked pretty good
<apt-get> ... until I tried to install it
<shevy> shoes was started by _why
<shevy> _why retired some years ago
<apt-get> yeah
<shevy> projects change with different maintainers
<shevy> go use ruby-gnome, change it to your liking
leat2 has joined #ruby
<shevy> you can model all the ruby-code on your side to any way look how you want it to be
mhenrixon has quit [Ping timeout: 250 seconds]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 250 seconds]
karmatr0_ has quit []
jds has quit [Quit: Connection closed for inactivity]
workmad3 has joined #ruby
nowhereFast has joined #ruby
nowhereFast has left #ruby [#ruby]
moeabdol has quit [Ping timeout: 272 seconds]
roxtrongo has joined #ruby
ordepdev has quit [Remote host closed the connection]
DeweyD has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DeweyD has quit [Client Quit]
mikecmpbll has quit [Quit: ciao.]
krz has quit [Quit: WeeChat 1.2]
ohaibbq has joined #ruby
cashnguns has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
k3asd` has quit [Ping timeout: 264 seconds]
nanoz has quit [Ping timeout: 244 seconds]
ordepdev has joined #ruby
jack__ has joined #ruby
bruno- has joined #ruby
jack_ has quit [Read error: Connection reset by peer]
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
pandaant has quit [Remote host closed the connection]
valeri_ufo has joined #ruby
stamina has quit [Quit: WeeChat 1.3]
valeri_ufo has quit [Client Quit]
anibara has joined #ruby
Rurik has quit [Read error: Connection reset by peer]
juanpablo_ has joined #ruby
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
valeri_ufo has joined #ruby
mooe has joined #ruby
shinnya has joined #ruby
elperdut has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rurik has joined #ruby
mary5030 has joined #ruby
juanpablo_ has quit [Ping timeout: 250 seconds]
codecop has quit [Remote host closed the connection]
jeanlinux has quit [Ping timeout: 272 seconds]
towski_ has joined #ruby
haidahaha has joined #ruby
haidahaha has left #ruby [#ruby]
towski_ has quit [Remote host closed the connection]
ordepdev has quit [Remote host closed the connection]
<arup_r> shevy: good night!
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<arup_r> today a cat took my milk packet :/
toretore has joined #ruby
DLSteve has quit [Ping timeout: 244 seconds]
roxtrongo has quit [Remote host closed the connection]
yqt has joined #ruby
leat2 has quit [Ping timeout: 244 seconds]
dagda1 has joined #ruby
arup_r has quit [Quit: Leaving]
izhak has quit [Quit: Page closed]
jeanlinux has joined #ruby
drptbl has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
minotep has quit [Ping timeout: 250 seconds]
jdawgaz has joined #ruby
new_user has quit [Ping timeout: 246 seconds]
mrtomme has quit [Ping timeout: 264 seconds]
mrtomme has joined #ruby
moeabdol has joined #ruby
jeanlinux has quit [Ping timeout: 246 seconds]
bmurt has joined #ruby
jenrzzz has joined #ruby
atmosx_ has joined #ruby
tkuchiki has joined #ruby
howdoicomputer has quit [Ping timeout: 256 seconds]
DmitryBochkarev has joined #ruby
autrilla has left #ruby [#ruby]
Sembei has joined #ruby
pontiki has quit [Ping timeout: 250 seconds]
atmosx_ is now known as atmosx_desktop
nofxx has quit [Ping timeout: 255 seconds]
jacksonmills has quit [Read error: Connection reset by peer]
tkuchiki has quit [Ping timeout: 244 seconds]
roxtrongo has joined #ruby
valeri_ufo has quit [Quit: ...]
jeanlinux has joined #ruby
lxsameer has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
Dacky has quit [Quit: Connection closed for inactivity]
atmosx_desktop is now known as atmosx_laptop
Neverdie has quit [Quit: http://radiux.io/]
valeri_ufo has joined #ruby
bmurt has quit []
UtkarshRay has quit [Ping timeout: 244 seconds]
ht__ has quit [Quit: Konversation terminated!]
michael_mbp has quit [Excess Flood]
karapetyan has quit [Ping timeout: 268 seconds]
chouhoulis has quit [Remote host closed the connection]
banjara has quit [Quit: Leaving.]
drptbl has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mhenrixon has joined #ruby
michael_mbp has joined #ruby
jack__ has quit [Remote host closed the connection]
roxtrongo has quit [Remote host closed the connection]
DLSteve has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
fostertheweb has joined #ruby
Pathfinder has quit [Ping timeout: 264 seconds]
dionysus69 has quit [Ping timeout: 256 seconds]
mhib has quit [Remote host closed the connection]
esauOp has joined #ruby
s00pcan has quit [Ping timeout: 265 seconds]
tuxero has joined #ruby
mosez has quit [Ping timeout: 260 seconds]
djbkd has joined #ruby
minotep has joined #ruby
Asher has quit [Quit: Leaving.]
bmurt has joined #ruby
Asher has joined #ruby
jack_ has joined #ruby
djbkd has quit [Ping timeout: 250 seconds]
QORRiE has quit [Quit: Leaving]
jeanlinux has quit [Read error: Connection reset by peer]
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roxtrongo has joined #ruby
Lycanii has quit [Quit: Konversation terminated!]
juanpablo_ has joined #ruby
QORRiE has joined #ruby
bmurt has quit []
altivection has joined #ruby
pppss has joined #ruby
dagda1 has joined #ruby
dagda1 has quit [Client Quit]
altivection has quit [Max SendQ exceeded]
<pppss> hi there friends, I'm using the Couchbase Ruby client library (official) built atop libcouchbase https://github.com/couchbase/couchbase-ruby-client
<pppss> But i'm trying to add a big file into one bucket
<pppss> And i'm receiving timeouts from the CouchBase server node
juanpablo_ has quit [Ping timeout: 264 seconds]
rnga has joined #ruby
rnga has quit []
jeanlinux has joined #ruby
pppss has left #ruby [#ruby]
Neverdie has joined #ruby
GnuYawk has quit [Read error: No route to host]
jeanlinux has quit [Read error: Connection reset by peer]
blackjid has quit [Max SendQ exceeded]
blackjid has joined #ruby
karapetyan has joined #ruby
Asher has quit [Quit: Leaving.]
FernandoBasso has quit [Quit: WeeChat 1.3]
xxneolithicxx has quit [Quit: Leaving.]
Alina-malina has quit [Ping timeout: 246 seconds]
karapetyan has quit [Ping timeout: 255 seconds]
xxneolithicxx has joined #ruby
xxneolithicxx has quit [Max SendQ exceeded]
Coldblackice has joined #ruby
dgs has joined #ruby
spider-mario has quit [Remote host closed the connection]
roxtrongo has quit [Remote host closed the connection]
Narzew has quit [Ping timeout: 244 seconds]
workmad3 has joined #ruby
yfeldblum has joined #ruby
northfurr has quit [Quit: northfurr]
coffeecupp__ has joined #ruby
freerobby has joined #ruby
ordepdev has joined #ruby
ordepdev has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
banjara has joined #ruby
coffeecupp__ has quit [Remote host closed the connection]
banjara has quit [Client Quit]
workmad3 has quit [Ping timeout: 255 seconds]
tuxero has quit [Ping timeout: 256 seconds]
mary5030 has quit [Ping timeout: 244 seconds]
nfk has joined #ruby
allomov has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
atmosx_laptop has quit [Quit: Lost in trance]
[k- has quit [Ping timeout: 246 seconds]
coffeecupp__ has joined #ruby
banjara has joined #ruby
dgs has quit [Quit: dgs]
anibara has quit [Quit: anibara]
dotix has joined #ruby
dgutierrez1287 has quit [Ping timeout: 244 seconds]
Rurik has quit [Read error: Connection reset by peer]
howdoicomputer has joined #ruby
dotix has quit [Ping timeout: 244 seconds]
nofxx has joined #ruby
jamesaxl|2 has joined #ruby
decoponio has joined #ruby
Rurik has joined #ruby
Rurik has quit [Changing host]
Rurik has joined #ruby
jamesaxl has quit [Ping timeout: 246 seconds]
decoponyo has quit [Ping timeout: 255 seconds]
_ko1 has quit [Ping timeout: 246 seconds]
firstdayonthejob has quit [Read error: Connection reset by peer]
fostertheweb has joined #ruby
devbug has joined #ruby
Jackneill has quit [Ping timeout: 268 seconds]
Rickmasta has joined #ruby
timonv has quit [Ping timeout: 256 seconds]
pontiki has joined #ruby
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
solocshaw has quit [Ping timeout: 240 seconds]
n1lo has quit [Ping timeout: 264 seconds]
firstdayonthejob has joined #ruby
Rurik has quit [Read error: Connection reset by peer]
Rurik has joined #ruby
tuxero has joined #ruby
Neverdie has quit [Quit: http://radiux.io/]
jimborodes has joined #ruby
<jimborodes> are there any more challenges like the codecademy web dev challenges?
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
jcoe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
apt-get has quit [Ping timeout: 260 seconds]
dagda1 has joined #ruby
apt-get has joined #ruby
<nofxx> jimborodes, there's exercism and others like it
tuxero has quit [Read error: Connection reset by peer]
tuxero has joined #ruby
bmurt has joined #ruby
northfurr has joined #ruby
jeanlinux has joined #ruby
jimborodes has quit [Ping timeout: 246 seconds]
firstdayonthejob has quit [Read error: Connection reset by peer]
jeanlinu_ has joined #ruby
jeanlinux has quit [Read error: Connection reset by peer]
pwnd_nsfw has quit [Ping timeout: 246 seconds]
finisherr has joined #ruby
<finisherr> How can I have rvm create the proper ruby version and gemset upon entrance
<finisherr> i keep trying to use the project rvmrc
<finisherr> rather .rvmrc
<finisherr> in conjunctino with .ruby-version
<finisherr> and .ruby-gemset
<finisherr> not working though
dreinull75 has left #ruby ["undefined"]
Rurik has quit [Quit: Leaving]
Rurik has joined #ruby
Rurik has quit [Changing host]
Rurik has joined #ruby
<finisherr> my .rvmrc has rvm_install_on_use_flag=1 rvm_project_rvmrc=1 rvm_gemset_create_on_use_flag=1
<finisherr> my .ruby-version has 2.0.0
<finisherr> my .ruby-gemset just has the project name
<finisherr> when I cd into the directory, nothing happens
tuxero has quit [Ping timeout: 268 seconds]
_ko1 has joined #ruby
jack_ has quit [Remote host closed the connection]
esauOp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
esauOp has joined #ruby
tkuchiki has joined #ruby
Motoservo has quit [Quit: Over & out.]
firstdayonthejob has joined #ruby
<finisherr> Figured it out
<finisherr> Had to put those values in ~/.rvmrc
<finisherr> and then just specify the gemset to use in the project .rvmrc
<finisherr> like rvm ruby-2.0.0@myproject
<finisherr> can’t use that in conjunction with the other two .ruby-version or .ruby-gemset files
tkuchiki has quit [Ping timeout: 244 seconds]
<finisherr> that wasn’t too clear from the docs
gambl0re has quit []
houhoulis has quit [Remote host closed the connection]
bmurt has quit []
pwnd_nsfw has joined #ruby
beast has quit [Quit: Leaving]
jack_ has joined #ruby
minotep has quit [Remote host closed the connection]
absolutejam has quit [Ping timeout: 264 seconds]
bmurt has joined #ruby
devoldmx has joined #ruby
CloCkWeRX has joined #ruby
VictorBjelkholm has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gambl0re has joined #ruby
ruby-lang922 has joined #ruby
solocshaw has joined #ruby
absolutejam has joined #ruby
solocshaw has quit [Remote host closed the connection]
solocshaw has joined #ruby
kirun has quit [Quit: Client exiting]
ruby-lang922 has quit [Ping timeout: 246 seconds]
freezevee has quit [Ping timeout: 264 seconds]
bmurt has quit []
freerobby has quit [Quit: Leaving.]
Helheim has joined #ruby
DLSteve has quit [Quit: Leaving]
tkuchiki has joined #ruby
Vile` has joined #ruby
tuxero has joined #ruby
platosha_ has joined #ruby
platosha__ has quit [Ping timeout: 256 seconds]
tkuchiki_ has joined #ruby
banjara has quit [Remote host closed the connection]
QORRiE has quit [Remote host closed the connection]
CorpusCallosum has joined #ruby
tkuchiki_ has quit [Remote host closed the connection]
jamesaxl|2 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
tkuchiki_ has joined #ruby
tkuchiki has quit [Ping timeout: 260 seconds]
yqt has quit [Ping timeout: 240 seconds]
apt-get has quit [Remote host closed the connection]
jdawgaz has joined #ruby
juanpablo_ has joined #ruby
tuxero has quit [Ping timeout: 252 seconds]
baweaver has quit [Remote host closed the connection]
juanpablo_ has quit [Ping timeout: 244 seconds]
fedexo has quit [Ping timeout: 244 seconds]
minimalism has joined #ruby
Rurik has quit [Read error: Connection reset by peer]
Rurik has joined #ruby
JDiPierro has joined #ruby
VictorBjelkholm has joined #ruby
platosha_ has quit [Quit: Leaving]
firstdayonthejob has quit [Ping timeout: 260 seconds]
acke has quit [Remote host closed the connection]
tkuchiki_ has quit [Remote host closed the connection]
jack_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby
coffeecupp__ has quit [Remote host closed the connection]
coffeecupp__ has joined #ruby
coffeecupp__ has quit [Remote host closed the connection]
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
duncannz has joined #ruby
tkuchiki has quit [Remote host closed the connection]
grenierm has joined #ruby
coffeecupp__ has joined #ruby
AccordLTN has quit []
michaeldeol has joined #ruby
coffeecupp__ has quit [Client Quit]
CloCkWeRX has quit [Ping timeout: 264 seconds]
Azure has quit [Excess Flood]
lipoqil has quit [Quit: Connection closed for inactivity]
n1lo has joined #ruby
howdoicomputer has quit [Ping timeout: 252 seconds]
Azure has joined #ruby
Pathfinder has joined #ruby
mooe has quit [Quit: Connection closed for inactivity]
Pathfinder has quit [Read error: Connection reset by peer]
platosha has joined #ruby
FrankD_ has quit [Ping timeout: 250 seconds]
FrankD_ has joined #ruby
platosha has quit [Client Quit]
yxhuvud has quit [Remote host closed the connection]
karapetyan has joined #ruby
platosha has joined #ruby
weemsledeux has joined #ruby
jack_ has joined #ruby
finisherr has quit [Quit: finisherr]
karapetyan has quit [Ping timeout: 268 seconds]
esauOp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
freerobby has quit [Client Quit]
allomov has joined #ruby
ddrmanxbxfr has joined #ruby
JDiPierro has quit [Remote host closed the connection]
dotix has joined #ruby
dotix has joined #ruby
Rurik has quit [Read error: Connection reset by peer]
allomov has quit [Ping timeout: 255 seconds]
minimalism has quit [Ping timeout: 268 seconds]
stardiviner has joined #ruby
jack_ has quit [Ping timeout: 246 seconds]
grenierm has quit [Quit: grenierm]
marr has quit []