apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
nanoyak has quit [Quit: Computer has gone to sleep.]
<dorei> or maybe it could, since it's connectionless
sleepee has joined #ruby
mr_foobar_baz has quit [Client Quit]
mr_foobar_baz has joined #ruby
axl_ has joined #ruby
maestrojed has quit [Quit: Textual IRC Client: www.textualapp.com]
sunya7a has quit [Ping timeout: 240 seconds]
superscott[8] has quit [Read error: Connection reset by peer]
mr_foobar_baz has quit [Client Quit]
mr_foobar_baz has joined #ruby
nanoyak has joined #ruby
superscott[8] has joined #ruby
brunops has quit [Ping timeout: 260 seconds]
axl_ has quit [Client Quit]
sunya7a has joined #ruby
nanoyak has quit [Client Quit]
brunops has joined #ruby
axl_ has joined #ruby
edgarjs is now known as edgarjs_afk
nateberkopec has joined #ruby
GriffinHeart has joined #ruby
mr_foobar_baz has quit [Client Quit]
JoshGlzBrk has joined #ruby
ddv has quit [Ping timeout: 245 seconds]
ddv has joined #ruby
GriffinHeart has quit [Ping timeout: 272 seconds]
d34th4ck3r has joined #ruby
zarul has joined #ruby
zarul has quit [Changing host]
zarul has joined #ruby
Fractional has quit [Remote host closed the connection]
Fire-Dragon-DoL has quit [Quit: Leaving.]
Fractional has joined #ruby
<Fractional> .
<eam> dorei: block on a read, never on a write
jcromartie has joined #ruby
<eam> if the write can't be handled the datagram will simply be discarded
Takle has quit [Remote host closed the connection]
beneggett has joined #ruby
saarinen has quit [Quit: saarinen]
nanoyak has joined #ruby
jcromartie has quit [Client Quit]
n_b has quit [Ping timeout: 264 seconds]
testcore has quit [Quit: [BX] Time wasted: 2 millenia 4 centuries 4 decades 8 years 9 months]
n_b has joined #ruby
vifino has quit [Quit: Ze Cat now leaves...]
zarul has quit [Ping timeout: 240 seconds]
banjara has quit [Quit: Leaving.]
ramfjord has joined #ruby
<ramfjord> hey folks
<benzrf> hey ramfjord
<ramfjord> if I use a class variable (@@) in a class method
<ramfjord> with that be shared with all objects...?
<ramfjord> I mean all classes
<benzrf> ramfjord: don't use @@foo
<benzrf> it's confusingly annoying
<ramfjord> I want it to be shared with all subclasses
ekinmur has joined #ruby
jcromartie has joined #ruby
<benzrf> ramfjord: self.superclass.meth
enebo has joined #ruby
<ramfjord> the variable is only looked at by methods on the superclass
<ramfjord> class methods on the superclass
<ramfjord> called by the subclass
<ramfjord> I'm probably getting into the woods with this anyway...
Zenigor has quit [Remote host closed the connection]
weems has quit [Read error: Connection reset by peer]
<ramfjord> so I can't use superclass
agent_white has quit [Quit: brb]
<ramfjord> because the methods are all on the superclass
zorak has quit [Ping timeout: 248 seconds]
b00stfr3ak has quit [Ping timeout: 244 seconds]
zz_karupa is now known as karupa
oo_ has joined #ruby
Fractional has quit [Remote host closed the connection]
jaimef has quit [Excess Flood]
jamto11 has joined #ruby
oo_ has quit [Remote host closed the connection]
jaimef has joined #ruby
zorak has joined #ruby
agent_white has joined #ruby
glaukommatos has joined #ruby
havenwood has joined #ruby
phantasm66 has joined #ruby
weems has joined #ruby
kickr has joined #ruby
marr has quit [Ping timeout: 255 seconds]
kickr has quit [Client Quit]
Arkaniad has quit [Ping timeout: 240 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
jonahR has quit [Quit: ¡Adios amigos, me fui para el carajo!]
xD has joined #ruby
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xD is now known as Guest84545
oo_ has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
nanoyak has quit [Quit: Computer has gone to sleep.]
Takle has joined #ruby
momomomomo has quit [Quit: momomomomo]
TorpedoSkyline has joined #ruby
wildroman2 has joined #ruby
weems has quit [Read error: Connection reset by peer]
bricker`work has quit [Ping timeout: 255 seconds]
kaspergrubbe has quit [Read error: Connection reset by peer]
Wolland has joined #ruby
kaspergr_ has joined #ruby
dcope has joined #ruby
enebo has quit [Quit: enebo]
TorpedoSkyline has quit [Client Quit]
dc_ has joined #ruby
cashnguns has quit [Quit: I'm just an old fashioned cowboy]
Guest84545 has quit []
EminenceHC has quit [Remote host closed the connection]
hermanmunster has quit [Remote host closed the connection]
dcope has quit [Ping timeout: 240 seconds]
kickr has joined #ruby
Wolland has quit [Ping timeout: 260 seconds]
jaimef has quit [Excess Flood]
hermanmu_ has joined #ruby
d34th4ck3r has quit [Quit: d34th4ck3r]
Takle has quit [Ping timeout: 252 seconds]
dcope has joined #ruby
sailias has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
andrewjanssen has quit [Quit: Linkinus - http://linkinus.com]
wildroman2 has quit [Read error: Connection reset by peer]
wildroman2 has joined #ruby
pietr0 has quit [Quit: pietr0]
sevenseacat has joined #ruby
jaimef has joined #ruby
Hanmac1 has joined #ruby
jamto11 has quit [Remote host closed the connection]
Arkaniad has joined #ruby
tris has quit [Quit: Leaving]
Hanmac has quit [Ping timeout: 255 seconds]
aspires has quit []
glaukommatos has quit [Ping timeout: 244 seconds]
replay has quit []
kickr has quit [Quit: Leaving]
kickr has joined #ruby
oo_ has quit [Remote host closed the connection]
Lewix_ has joined #ruby
oo_ has joined #ruby
Kricir has joined #ruby
Lewix has quit [Ping timeout: 260 seconds]
earthquake has quit [Quit: earthquake]
ner0x has joined #ruby
dc_ has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 244 seconds]
Lewix_ has quit [Read error: Connection reset by peer]
Lewix has joined #ruby
superscott[8] has quit [Remote host closed the connection]
dorei has quit []
yubrew has joined #ruby
yetanotherdave has joined #ruby
LadyRainicorn has quit [Ping timeout: 248 seconds]
kireevco has joined #ruby
PanPan has joined #ruby
dc_ has joined #ruby
tris has joined #ruby
yubrew has quit [Ping timeout: 244 seconds]
Wolland has joined #ruby
tokik has joined #ruby
devyn has quit [Remote host closed the connection]
robustus has quit [Ping timeout: 252 seconds]
Vivekananda_y510 has joined #ruby
Wolland_ has joined #ruby
xxneolithicxx has joined #ruby
kickr has quit [Ping timeout: 272 seconds]
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
moted has quit [Quit: moted]
robustus has joined #ruby
Wolland has quit [Ping timeout: 264 seconds]
<xxneolithicxx> anyone know if eval.in based on some open source project
LadyRainicorn has joined #ruby
qsun has joined #ruby
<benzrf> yo charliesome_ open up you're damn code
charliesome_ is now known as charliesome
<charliesome> it's too horrible
<charliesome> lol
<wallerdev> lol
_ixti_ has quit [Ping timeout: 248 seconds]
smathieu has quit [Ping timeout: 264 seconds]
mgberlin has joined #ruby
mgberlin has quit [Remote host closed the connection]
dc_ has quit [Remote host closed the connection]
mgberlin has joined #ruby
kaspergr_ has quit [Remote host closed the connection]
anomaly_ has joined #ruby
anomaly_ has left #ruby [#ruby]
wallerdev has quit [Quit: wallerdev]
timonv has joined #ruby
kickr has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
tus has quit []
djbkd has joined #ruby
sunya7a_ has joined #ruby
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
timonv has quit [Ping timeout: 255 seconds]
sunya7a has quit [Ping timeout: 255 seconds]
x1337807x has joined #ruby
dc_ has joined #ruby
zorak has quit [Read error: Connection reset by peer]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has quit [Read error: Connection reset by peer]
x1337807x has joined #ruby
hermanmu_ has quit [Remote host closed the connection]
wildroman2 has quit [Ping timeout: 255 seconds]
sdwrage has joined #ruby
freerobby has joined #ruby
sunya7a_ has quit [Ping timeout: 260 seconds]
x1337807x has quit [Client Quit]
axl_ has quit [Quit: axl_]
sdwrage_ has quit [Ping timeout: 248 seconds]
sunya7a has joined #ruby
diegoviola has joined #ruby
xxneolithicxx has left #ruby [#ruby]
dideler has quit [Ping timeout: 264 seconds]
agent_wh1te has joined #ruby
yetanotherdave has quit [Ping timeout: 240 seconds]
devyn has joined #ruby
agent_white has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
agent_wh1te has quit [Client Quit]
x1337807x has joined #ruby
agent_white has joined #ruby
cschneid_ has joined #ruby
x1337807x has quit [Client Quit]
j_mcnally has joined #ruby
apeiros_ has joined #ruby
cschneid has quit [Quit: ZNC - http://znc.sourceforge.net]
bmurt has joined #ruby
djbkd has quit [Remote host closed the connection]
cschneid_ is now known as cschneid
ekinmur has quit []
apeiros has quit [Ping timeout: 248 seconds]
ekinmur has joined #ruby
djbkd has joined #ruby
ekinmur has quit [Client Quit]
GriffinHeart has quit [Ping timeout: 248 seconds]
Hanmac has joined #ruby
hermanmunster has joined #ruby
sailias has quit [Quit: Leaving.]
jaimef has quit [Excess Flood]
earthquake has joined #ruby
ffranz has quit [Quit: Leaving]
Hanmac1 has quit [Ping timeout: 252 seconds]
jaimef has joined #ruby
djbkd has quit [Ping timeout: 264 seconds]
yetanotherdave has joined #ruby
banjara has joined #ruby
r0n1n has joined #ruby
r0n1n is now known as acconradstrong
Spami has quit [Quit: This computer has gone to sleep]
yubrew has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
diegoviola has quit [Remote host closed the connection]
superscott[8] has joined #ruby
wjimenez5271 has joined #ruby
braincrash has quit [Ping timeout: 248 seconds]
larsam has quit [Read error: Connection reset by peer]
wjimenez5271 has quit [Client Quit]
itsech0 has joined #ruby
itsech0_ has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 264 seconds]
braincrash has joined #ruby
superscott[8] has quit [Ping timeout: 255 seconds]
banjara has quit [Quit: Leaving.]
Soda has quit [Remote host closed the connection]
LadyRainicorn has quit [Ping timeout: 260 seconds]
Atomic_Work has quit []
hobogrammer1 has joined #ruby
diegoviola has joined #ruby
Wolland has joined #ruby
nateberkopec has quit [Quit: Leaving...]
banjara has joined #ruby
Wolland_ has quit [Ping timeout: 248 seconds]
<pipework> charliesome: Keep that shit closed!
rezzack has quit [Quit: Leaving.]
LadyRainicorn has joined #ruby
nateberkopec has joined #ruby
Steve21 has joined #ruby
sleepee has quit [Quit: Leaving]
hobogrammer1 has quit [Ping timeout: 252 seconds]
pasties has quit [Quit: ZNC - http://znc.in]
pasties has joined #ruby
larsam has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
nateberkopec has quit [Ping timeout: 240 seconds]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
cashnguns has joined #ruby
arrubin has quit [Quit: Textual IRC Client: www.textualapp.com]
stytown has quit [Quit: stytown]
x1337807x has joined #ruby
sndwch has joined #ruby
hobogrammer1 has joined #ruby
superscott[8] has joined #ruby
x1337807x has quit [Ping timeout: 272 seconds]
alexju has joined #ruby
Photism has quit [Quit: Leaving]
sndwch has quit [Quit: Leaving.]
superscott[8] has quit [Ping timeout: 272 seconds]
radic has quit [Ping timeout: 248 seconds]
TorpedoSkyline has joined #ruby
radic has joined #ruby
sdwrage_ has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
bricker`LA has joined #ruby
<bricker`LA> Anybody who fills out invoices frequently, how do you specify a date range when the final date is non included? eg. an invoice for the month of June: June 1, 2014 - July 1, 2014 is ambiguous
nateberkopec has joined #ruby
zorak has joined #ruby
rlazoti has joined #ruby
sdwrage has quit [Ping timeout: 260 seconds]
jxf has joined #ruby
<Steve21> it would be June 1 to June 30
cearls has joined #ruby
cearls has quit [Client Quit]
cearls has joined #ruby
<Steve21> What are you trying to accomplish?
<Steve21> Can you not just add the last day of month from they do not select a end date?
<bricker`LA> Steve21: write an invoice for the month of June :P
pasties has quit [Quit: ZNC - http://znc.in]
<Steve21> But what is your output supposed to be?
JJMalina has joined #ruby
<bricker`LA> Steve21: sorry, this isn't a ruby question
nateberkopec has quit [Read error: Connection reset by peer]
<bricker`LA> just figured there'd be a lot of freelancers in here
<Steve21> ya
<Steve21> but just not clear what the actual issue is
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Steve21> you have two dates
<Steve21> Start and End Date
<Steve21> If its for the Month of June then you get the First Day of Month and the Last Day of Month
<bricker`LA> Steve21: right, "end date" is the issue. It's ambiguous whether or not "last of month" is "12:00am June 30" or "11:59:59 June 30", you know?
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Steve21> Output the “Month” value of the Start Date or End Date (does not really matter if its the same month)
<bricker`LA> 11:59:59pm*
<bricker`LA> I'll just use "through"
<bricker`LA> that's clear enough
<Steve21> its 11:59:59
kickr has quit [Quit: Leaving]
<Steve21> Its June 30 11:59:59pm
<Steve21> But if this is for a invoice dont both with the time
<Steve21> just use End of Business Day
godd2 has quit [Ping timeout: 246 seconds]
coderhs has quit [Ping timeout: 260 seconds]
rlazoti has quit [Quit: Lingo - http://www.lingoirc.com]
mgberlin has quit [Remote host closed the connection]
Spami has joined #ruby
bmurt has quit []
Spami__ has joined #ruby
<Steve21> 12:00:00am is the start of the new day.
<Steve21> You can see this when you use the DateTime rails gems and run end_of_day()
ekinmur has joined #ruby
mattstratton has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Client Quit]
<eam> sometimes 11:59:60 is the end of the day, if there's a leap second
<bricker`LA> :O
kireevco has quit [Quit: Leaving.]
<bricker`LA> earth trying to rip me off >:|
<bricker`LA> oh wait
<bricker`LA> that would actually help me
<bricker`LA> thx earth
<bricker`LA> $$$$
braincrash has quit [Quit: bye bye]
<eam> I mean, or :58
<Steve21> The methods will/should take care of that for you
<Steve21> dont hard code it in
yubrew has joined #ruby
sdwrage has joined #ruby
<Steve21> use the Rails DateTime lib
<bricker`LA> Steve21: again, I am not writing invoicing software or anything
<bricker`LA> I'm just making an invoice, wanted to know about grammar
<eam> Steve21: will take care of leap seconds? They totally won't
JJMalina has quit [Ping timeout: 240 seconds]
sdwrage_ has quit [Ping timeout: 272 seconds]
braincrash has joined #ruby
mikesplain has joined #ruby
Channel6 has joined #ruby
yubrew has quit [Ping timeout: 260 seconds]
<Steve21> eam: fair enough. It understands leap years, but yes the lead second is usually passed onto the cpu to hand that stuff. But ruby supports lead seconds as part of its time lib in the sec method
<Steve21> thats why its 0-60 rather than 0-59
<Steve21> or should say 0..60, 0..59
hololeap has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Bira has quit [Remote host closed the connection]
x1337807x has joined #ruby
Ankhers has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krz has joined #ruby
jxf has quit [Ping timeout: 248 seconds]
<eam> Steve21: yeah, it's more or less impossible for ruby to account for 'em
coderhs has joined #ruby
agent_white has quit [Remote host closed the connection]
<eam> not a flaw in DateTime certainly
mikesplain has quit [Ping timeout: 252 seconds]
nateberkopec has joined #ruby
oo_ has quit [Remote host closed the connection]
abdulsattar has joined #ruby
stytown has joined #ruby
_maes_ has joined #ruby
bricker`LA has quit [Quit: leaving]
pis0xpscl has joined #ruby
LadyRainicorn has quit [Ping timeout: 244 seconds]
nateberkopec has quit [Ping timeout: 240 seconds]
mgberlin has joined #ruby
LadyRainicorn has joined #ruby
p0sixpscl has quit [Ping timeout: 252 seconds]
pis0xpscl is now known as p0sixpscl
Bira has joined #ruby
LadyRainicorn has quit [Read error: Connection reset by peer]
LadyRainicorn has joined #ruby
johnmolina has quit []
mconnolly has quit [Ping timeout: 272 seconds]
glaukommatos has joined #ruby
stytown has quit [Quit: stytown]
Steve21 is now known as Stephen441
Stephen441 is now known as StephenA1
StephenA1 has quit [Quit: StephenA1]
StephenA1 has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
<StephenA1> Hey
<sevenseacat> dammit readline.... why you not let me install 2.0.0-p451
<StephenA1> anyone a heavy user of GitHub?
Spami has quit [Quit: This computer has gone to sleep]
Spami__ has quit [Quit: This computer has gone to sleep]
<sevenseacat> you keep asking, over and over again...
StephenA1 has quit [Client Quit]
nateberkopec has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
Ankhers has joined #ruby
zenspider has joined #ruby
<eam> I'm uncomfortable sharing my weight over irc, but I do use github
nateberkopec has quit [Ping timeout: 240 seconds]
GriffinHeart has joined #ruby
boom has quit [Remote host closed the connection]
Bira has quit [Remote host closed the connection]
cashnguns has quit [Quit: I'm just an old fashioned cowboy]
beneggett has joined #ruby
superscott[8] has joined #ruby
saarinen has joined #ruby
wjimenez5271 has joined #ruby
wjimenez5271 has quit [Max SendQ exceeded]
stytown has joined #ruby
wjimenez5271 has joined #ruby
Deele has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
GriffinHeart has quit [Ping timeout: 260 seconds]
beneggett has quit [Client Quit]
superscott[8] has quit [Ping timeout: 255 seconds]
hobogrammer1 has quit [Ping timeout: 264 seconds]
<zenspider> uh. ok
Ankhers has quit [Ping timeout: 264 seconds]
sdouglas has joined #ruby
JoshGlzBrk has joined #ruby
oo_ has quit [Ping timeout: 248 seconds]
jxf has joined #ruby
thesheff17_ has joined #ruby
thesheff17_ has quit [Read error: Connection reset by peer]
havenwood has quit [Remote host closed the connection]
thesheff17_ has joined #ruby
thesheff17 has quit [Disconnected by services]
thesheff17_ is now known as thesheff17
zkay11 has left #ruby [#ruby]
PixelCrumbs has joined #ruby
dideler has joined #ruby
dodosan has joined #ruby
yetanotherdave has quit [Ping timeout: 252 seconds]
MrSamuel has joined #ruby
nateberkopec has joined #ruby
cearls has quit []
yubrew has joined #ruby
dodosan has quit [Client Quit]
djbkd has joined #ruby
saarinen has quit [Quit: saarinen]
nateberkopec has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 255 seconds]
freerobby has quit [Quit: Leaving.]
r_rios has joined #ruby
maximski has joined #ruby
jaimef has quit [Excess Flood]
maximski has quit [Max SendQ exceeded]
jaimef has joined #ruby
whyy has joined #ruby
TheMoonMaster has quit [Quit: Later!]
coderhs has quit [Ping timeout: 255 seconds]
slash_nick has quit [Ping timeout: 252 seconds]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
slash_nick has joined #ruby
cmoneylulz has joined #ruby
Bira has joined #ruby
<shevy> eam lol
ClarusCogitatio has quit [Ping timeout: 244 seconds]
TheMoonMaster has joined #ruby
maximski has joined #ruby
ClarusCogitatio has joined #ruby
Kricir has joined #ruby
Bira has quit [Ping timeout: 260 seconds]
glaukommatos has quit [Quit: leaving]
nateberkopec has joined #ruby
banjara has quit [Quit: Leaving.]
StephenA1 has joined #ruby
Bira has joined #ruby
benzrf is now known as benzrf|offline
djbkd has quit [Remote host closed the connection]
havenwood has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
ARCADIVS has quit [Quit: WeeChat 0.4.3]
coderhs has joined #ruby
cmoneylulz has quit [Remote host closed the connection]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
abdulsattar has quit [Ping timeout: 260 seconds]
techsethi has joined #ruby
AntelopeSalad_ has joined #ruby
cmoneylulz has joined #ruby
oo_ has joined #ruby
StephenA1 has quit [Remote host closed the connection]
AntelopeSalad has quit [Ping timeout: 272 seconds]
Kricir has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikesplain has joined #ruby
sdouglas has quit [Remote host closed the connection]
x1337807x has joined #ruby
yetanotherdave has joined #ruby
x1337807x has quit [Client Quit]
sdouglas has joined #ruby
mgberlin_ has joined #ruby
himself_ has quit [Remote host closed the connection]
bluOxigen has joined #ruby
Channel6 has quit [Quit: Leaving]
cmoneylulz has quit [Remote host closed the connection]
mikesplain has quit [Ping timeout: 264 seconds]
mgberlin has quit [Ping timeout: 255 seconds]
ramfjord has joined #ruby
LexicalScope has joined #ruby
LexicalScope has joined #ruby
dbu is now known as mutt_
nateberkopec has joined #ruby
sdouglas has quit [Remote host closed the connection]
Bira has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
superscott[8] has joined #ruby
jaimef has quit [Excess Flood]
nateberkopec has quit [Ping timeout: 240 seconds]
mr_snowf1ake has quit [Quit: Leaving]
havenwood has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
jaimef has joined #ruby
aniM has quit [Ping timeout: 244 seconds]
jxf has quit [Quit: Leaving]
jxf has joined #ruby
ekinmur has quit []
superscott[8] has quit [Ping timeout: 248 seconds]
techsethi has quit [Quit: techsethi]
mgberlin_ has quit [Read error: Connection reset by peer]
mgberlin has joined #ruby
mr-foobar has quit [Ping timeout: 264 seconds]
yubrew has joined #ruby
djbkd has joined #ruby
sdouglas has joined #ruby
coderhs has quit [Ping timeout: 255 seconds]
Arkaniad has quit [Read error: Connection reset by peer]
yacks has quit [Ping timeout: 244 seconds]
Arkaniad has joined #ruby
Arkaniad|Laptop has joined #ruby
yubrew has quit [Ping timeout: 248 seconds]
Arkaniad has quit [Read error: Connection reset by peer]
djbkd has quit [Remote host closed the connection]
Cache_Money has joined #ruby
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
aganov has joined #ruby
nateberkopec has joined #ruby
elcashout has joined #ruby
elcashout has left #ruby [#ruby]
Jetchisel has joined #ruby
abdulsattar has joined #ruby
Lewix has quit [Ping timeout: 255 seconds]
larsam has quit [Ping timeout: 248 seconds]
coderhs has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
rippa has joined #ruby
<shevy> hmm
<shevy> is there a way to specify --user-install able gems?
<shevy> I mean, where the user install dir shall be
mgberlin has quit [Remote host closed the connection]
hgl has joined #ruby
hgl has quit [Client Quit]
hgl has joined #ruby
fayimora has quit [Quit: Connection closed for inactivity]
Morkel has joined #ruby
schaerli has joined #ruby
wallerdev has joined #ruby
Caius has quit [Ping timeout: 255 seconds]
brunops has quit [Ping timeout: 240 seconds]
brunops has joined #ruby
Caius has joined #ruby
jimbow has joined #ruby
LexicalScope has quit [Ping timeout: 248 seconds]
<jimbow> is there a way to use the until without making i == 50?
LadyRainicorn has quit [Ping timeout: 264 seconds]
<jimbow> i mean i == 51*
beneggett has joined #ruby
Lewix has joined #ruby
<jimbow> basically i want it to print all 50 numbers consecutively without making i == 51
<Radar> jimbow: why don't you use a range?
<shevy> :)
<jimbow> hmm
<jimbow> interesting
<jimbow> thanks :)
<shevy> because that would be too easy!
<shevy> ;P
<Radar> jimbow: 1.upto(50).each { |i| p i }
<jimbow> what would be too easy?
EasyCo has joined #ruby
<jimbow> what is p i?
<Radar> >> 1.upto(50).each { |i| p i }
<eval-in_> Radar => 1 ... (https://eval.in/168631)
<shevy> p is Kernel#p
<Radar> An exercise left to the reader.
<shevy> i is the name of the variable
jarto has joined #ruby
<jimbow> oh
<jimbow> sweet, i forgot about the p
<jimbow> p prints stuff, but i forgot why it's used
<shevy> it asks the object
nateberkopec has joined #ruby
<shevy> by calling inspect
<shevy> watch
<shevy> >> class Foo; def inspect; 'wtf'; end; end; p Foo.new
<eval-in_> shevy => wtf ... (https://eval.in/168632)
<shevy> the idea is that inspect will be used to print user-readable information about the object at hand
newton1 has joined #ruby
<jimbow> your code reprints i
<jimbow> i mean it reprints the first result of i
<shevy> did you try his code in irb
<jimbow> i just want it to stop at 50
<jimbow> yes i did
<shevy> you have a loop with the 1.upto(50)
<shevy> so simply change the content of the block {} to what you desire
LadyRainicorn has joined #ruby
<jimbow> what if i want to use until?
<shevy> then use until
schaerli has quit [Remote host closed the connection]
<Radar> I am so confused.
<Radar> jimbow: Why are you seemingly intentionally being difficult
nateberkopec has quit [Ping timeout: 240 seconds]
<Radar> Is this some kind of bullshit assignment?
<jimbow> Radar: please forgive me for being difficult
<shevy> there is more than one way to loop
<shevy> the simplest one is called
<jimbow> no, this is a tutorial, but i want to learn more about until
<shevy> loop {}
<jimbow> so i'm playing with different ideas i have in my head
<shevy> what is there to learn about it, it will simply run until its condition is met
<shevy> you can do the same in loop {} by manually managing the condition too
<newton1> until false 50.times do
<jimbow> i still don't really get the difference between while and until because they're opposites that do the same thing
<shevy> exactly
<jimbow> until false or while true
<shevy> so use whatever you prefer
<jimbow> oh
<jimbow> i thought there would be a difference
<shevy> I use neither, I use either loop, or range/upto/downto
<jimbow> i didn't know it would be left to the programmer's preference
<jimbow> i thought they were made because they do different things
<shevy> that's the problem with more than one way - you need to make decisions
GriffinHeart has joined #ruby
MrSamuel has quit [Quit: MrSamuel]
<shevy> ruby isn't python
<shevy> python made it easier for you
<shevy> when everything is a nail
<shevy> it will give you a hammer
<shevy> but ruby will give you a hammer that also has a built-in mp3 player
<jimbow> i don't know python
<shevy> and a laser pointer
<newton1> hah
<shevy> so you can play with the laser pointer
<shevy> but you might forget about the nail
<shevy> so that's why you need to focus
<jimbow> so basically in python there are no multiple ways of doing the same thing right?
<jimbow> like there are no whiles or untils
diegoviola has quit [Remote host closed the connection]
<jimbow> just one statement for that type of loop
<shevy> not sure how python loops, I think they do something like
<shevy> [in pants do fancy stuff]
ahuman has quit [Quit: No Ping reply in 180 seconds.]
Xeago has joined #ruby
<shevy> I think I forgot a "for" or something
<jimbow> would it be hard to learn both?
dcope has quit [Quit: leaving]
<shevy> well
<shevy> will you really use both languages?
<shevy> because they fill similar niches
<jimbow> so is there much of a difference?
<newton1> Just pick one. Python, like ruby, is basically psuedocode
<shevy> in the philosophy yes
ahuman has joined #ruby
<shevy> in the syntax, it depends
<newton1> You know one you can at least read and pick up the other fast
<jimbow> i heard python is faster, but i can't wrap that idea around my head because i thought speed is solely dependent on hardware
<shevy> nah the speed difference is marginal
<shevy> many of those tests were based on ruby 1.8.x branch
<jimbow> but how was it faster?
hermanmunster has quit []
<jimbow> and more importantly why?
<newton1> python is what? 3-5x faster?
tagrudev has joined #ruby
<jimbow> but why?
GriffinHeart has quit [Ping timeout: 244 seconds]
<shevy> jimbow in some benchmarks ruby is faster http://benchmarksgame.alioth.debian.org/u64q/ruby.php
jimbow has left #ruby [#ruby]
jimbow has joined #ruby
<shevy> lol at 3-5x
<jimbow> what are these benchmarks based on?
kaspergrubbe has joined #ruby
<shevy> weed
<shevy> :)
abdulsattar has quit [Ping timeout: 260 seconds]
<shevy> for the first link, I think you have a link towards the sourcecode
<shevy> a lot of the code looks non-ruby though
<shevy> I mean really
<shevy>
<shevy> def eval_At_times_u(u)
<shevy> who writes such a method in reallife?!?!
sinkensabe has joined #ruby
LadyRainicorn has quit [Read error: Connection reset by peer]
<jimbow> someone who wants to calculate programming language benchmarks? idk...
tobago has joined #ruby
LadyRainicorn has joined #ruby
<newton1> Any of you guys write a binary search tree? I have like some mental block with the damn thing
<jimbow> what the hell is a binary search tree?
<newton1> I did a binary search a few days ago and get it. Making it into a tree is confusing me though
<shevy> not me, I have enough difficulty trying to find out parsimonial matches between strings alone for genome analysis
<jimbow> ^too convoluted
<jimbow> and it's really complicated
<newton1> Check out binary search first
<newton1> Then move on to learning about the tree
kaspergrubbe has quit [Ping timeout: 252 seconds]
<jimbow> it looks like wikipedia is using python as example code
techsethi has joined #ruby
bradhe has joined #ruby
<newton1> Nah python doesn't use brackets and you don't have to declare ints
<jimbow> below
apeiros_ is now known as apeiros
<jimbow> i know c and c++ use brackets
<jimbow> i'm not on the page anymore
LadyRainicorn has quit [Read error: Connection reset by peer]
nfk has joined #ruby
LadyRainicorn has joined #ruby
buub has joined #ruby
<jimbow> this definitely looks like python code, but i might be wrong because i'm a neophyte programmer: http://pastebin.com/mHfEeqDi
abdulsattar has joined #ruby
sdwrage_ has joined #ruby
maletor has joined #ruby
nateberkopec has joined #ruby
kyb3r_ has joined #ruby
superscott[8] has joined #ruby
sdwrage has quit [Ping timeout: 252 seconds]
ramfjord has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
Ankhers has joined #ruby
yubrew has joined #ruby
brunops has quit [Ping timeout: 272 seconds]
heftig has quit [Quit: Quitting]
jxf has quit [Ping timeout: 248 seconds]
brunops has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
superscott[8] has quit [Ping timeout: 244 seconds]
LadyRainicorn has quit [Quit: Bye]
Ankhers has quit [Ping timeout: 264 seconds]
p0sixpscl has quit [Quit: p0sixpscl]
yubrew has quit [Ping timeout: 248 seconds]
bato has joined #ruby
<bato> hello
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
<bato> is there something that lets you do something similar to "git show $revision:$file" in ruby?
<bato> was looking at rugged and ruby-git but don't seem to have much luck finding it
brunops has quit [Ping timeout: 240 seconds]
earthquake has quit [Quit: earthquake]
wildroman2 has joined #ruby
brunops has joined #ruby
<shevy> bato if all fails, could you not use `` backticks?
<bato> can I?
<bato> (fairly new to ruby)
<shevy> well, you can use all commands you do in bash in ruby too
earthquake has joined #ruby
<shevy> you just need to delegate to the subshell via ``, and you can assign the return value: result = `git show bla`
<bato> oh nice
<bato> if all else fails i'll definitely try that
Xeago_ has joined #ruby
agjacome has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
<newton1> How long should one study ruby until moving on to rails?
Xeago_ has quit [Remote host closed the connection]
Xeago has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
ndrei has joined #ruby
abdulsattar has quit [Ping timeout: 252 seconds]
sigurding has joined #ruby
garndt has quit [Quit: Connection closed for inactivity]
anaeem1 has joined #ruby
apeiros has quit [Ping timeout: 248 seconds]
GriffinHeart has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
agjacome has quit [Quit: leaving]
nateberkopec has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agjacome has joined #ruby
thesheff17 has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
wjimenez5271 has quit [Ping timeout: 244 seconds]
<shevy> newton1 at max 2 years
<shevy> 1 year seems solid
ramfjord has joined #ruby
Cache_Money has joined #ruby
<shevy> 6 months minimum
nateberkopec has quit [Ping timeout: 240 seconds]
Cache_Money has quit [Client Quit]
ridget has joined #ruby
Gue______ has joined #ruby
bal has joined #ruby
anaeem1 has quit [Remote host closed the connection]
yxhuvud has quit [Remote host closed the connection]
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
abdulsattar has joined #ruby
larsam has joined #ruby
brunops has quit [Quit: leaving]
sdouglas has quit [Remote host closed the connection]
ner0x has quit [Quit: Leaving]
senayar has joined #ruby
Jetchisel has quit [Read error: Connection reset by peer]
agjacome has quit [Quit: leaving]
obs has joined #ruby
earthquake has quit [Quit: earthquake]
davedev24_ has quit [Remote host closed the connection]
Darkchaos has joined #ruby
sdouglas_ has joined #ruby
davedev24_ has joined #ruby
newton1 has quit [Quit: WeeChat 0.4.3]
starkhalo has quit [Ping timeout: 272 seconds]
earthquake has joined #ruby
coderhs has quit [Ping timeout: 240 seconds]
yxhuvud has joined #ruby
wildroman3 has joined #ruby
wildroman2 has quit [Read error: No route to host]
sinkensabe has quit [Remote host closed the connection]
hgl_ has joined #ruby
hgl_ has quit [Client Quit]
davedev24_ has quit [Ping timeout: 272 seconds]
hgl has quit [Ping timeout: 244 seconds]
davedev24_ has joined #ruby
yxhuvud has quit [Remote host closed the connection]
iamjusthatdude has quit [Ping timeout: 264 seconds]
mijicd has joined #ruby
wildroman3 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
nateberkopec has joined #ruby
wildroman2 has quit [Remote host closed the connection]
apeiros has joined #ruby
wildroman2 has joined #ruby
Poky has joined #ruby
davedev24_ has quit [Remote host closed the connection]
davedev24_ has joined #ruby
senayar has quit [Remote host closed the connection]
nateberkopec has quit [Ping timeout: 240 seconds]
uresu has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
jamto11 has joined #ruby
tmtwd has joined #ruby
wildroman2 has quit [Ping timeout: 260 seconds]
kwd has joined #ruby
Spami has joined #ruby
Spami__ has joined #ruby
davedev24_ has quit [Ping timeout: 248 seconds]
TheNumb has quit [Quit: ZNC - http://znc.in]
TheNumb has joined #ruby
JBreit has joined #ruby
jamto11 has quit [Ping timeout: 252 seconds]
sdwrage_ has quit [Quit: This computer has gone to sleep]
earthquake has quit [Quit: earthquake]
earthquake has joined #ruby
sinkensabe has joined #ruby
coderhs has joined #ruby
wildroman2 has joined #ruby
Vivekananda_y510 has quit [Ping timeout: 244 seconds]
havenwood has joined #ruby
bradhe has quit [Remote host closed the connection]
sdouglas_ has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has joined #ruby
sigurding has quit [Quit: sigurding]
abdulsattar has quit [Ping timeout: 264 seconds]
yacks has joined #ruby
superscott[8] has joined #ruby
bradhe has joined #ruby
senayar has joined #ruby
davedev24_ has joined #ruby
davedev24_ has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 264 seconds]
wildroman2 has quit [Read error: Connection reset by peer]
claymore has joined #ruby
nateberkopec has joined #ruby
GriffinHeart has joined #ruby
superscott[8] has quit [Ping timeout: 272 seconds]
sigurding has joined #ruby
bluOxigen has quit [Ping timeout: 248 seconds]
ziyadb has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
agjacome has joined #ruby
claymore has quit [Ping timeout: 264 seconds]
coderhs has quit [Ping timeout: 255 seconds]
fantasticsid has joined #ruby
kiri has joined #ruby
JoshGlzBrk has joined #ruby
mr-foobar has joined #ruby
alem0lars has joined #ruby
ericboehs has quit [Ping timeout: 272 seconds]
JBreit has left #ruby ["Leaving"]
wildroman2 has joined #ruby
earthquake has quit [Quit: earthquake]
davedev24_ has joined #ruby
shredding has joined #ruby
earthquake has joined #ruby
uresu has quit [Quit: uresu]
relix has joined #ruby
jimbow has quit [Quit: jimbow]
claymore has joined #ruby
whyy has quit [Ping timeout: 240 seconds]
coderhs has joined #ruby
buub has quit [Remote host closed the connection]
Takle has joined #ruby
lxsameer has joined #ruby
whyy has joined #ruby
ridget has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Gue______ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nateberkopec has joined #ruby
greenarrow has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
<tobiasvl> at least a couple of months
<tobiasvl> maybe you can do it with a few weeks
qaumvy has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
stytown has quit [Quit: stytown]
p0sixpscl has joined #ruby
<sevenseacat> i didnt study it at all, i picked them both up at the same time >_> (not really recommended)
sdouglas has joined #ruby
alexju has quit [Remote host closed the connection]
tvw has quit [Ping timeout: 260 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
<shevy> you are a true ocean cat
* sevenseacat is a special snowflake
<shevy> I think they are finally forcing me to decide between python and perl
bradhe has quit [Ping timeout: 255 seconds]
<shevy> because the main cluster I am working with now has perl and python available, but no ruby :(
<sevenseacat> is that even a choice?
<kalleth_> no sevenseacat I AM A SPECIAL SNOWFLAKE
kilk_ has joined #ruby
kalleth_ is now known as kalleth
wildroman2 has quit [Remote host closed the connection]
adac has joined #ruby
<shevy> I dunno
<shevy> it's some python 2.5 version I think... and some perl from 3 years ago
<shevy> their gcc in use is gcc 4.3.something
earlgreyhot has joined #ruby
earlgreyhot has left #ruby [#ruby]
<tobiasvl> lol. what
<tobiasvl> what's that cluster running
<tobiasvl> RHEL5?
sk87 has joined #ruby
olivier_bK has joined #ruby
klaut has joined #ruby
hgl has joined #ruby
earthquake has quit [Quit: earthquake]
IceDragon has quit [Quit: Space~~~]
atraylen has quit [Ping timeout: 272 seconds]
earthquake has joined #ruby
tesuji has joined #ruby
s_e has quit [Ping timeout: 252 seconds]
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
p0sixpscl has quit [Quit: p0sixpscl]
sdouglas has quit [Ping timeout: 252 seconds]
ramfjord has quit [Ping timeout: 244 seconds]
wildroman2 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Spami__ has quit [Quit: This computer has gone to sleep]
s_e has joined #ruby
jpierre03 has quit [Quit: -]
<Schmidt> (something something, debian stable)
<shevy> some fedora thing if I remember correctly; I am at home right now so I can't check but I will know after some hours
p0sixpscl has joined #ruby
<tobiasvl> fedora? then you probably mean RHEL5 (Red Hat Enterprise Linux 5)
whyy has quit [Remote host closed the connection]
<tobiasvl> unless it's an old Fedora version which doesn't make a lot of sense
maximski has quit []
nateberkopec has joined #ruby
meinside has joined #ruby
yubrew has joined #ruby
abdulsattar has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
tmtwd has quit [Ping timeout: 252 seconds]
kaspergrubbe has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
Takle has quit [Remote host closed the connection]
dangerousdave has quit [Max SendQ exceeded]
elaptics`away is now known as elaptics
yubrew has quit [Ping timeout: 244 seconds]
dangerousdave has joined #ruby
bradhe has joined #ruby
sunya7a_ has joined #ruby
bradhe has quit [Write error: Connection reset by peer]
<bato> Schmidt debian stable has at least python 2.7 :P
<bato> (and there's always backports)
bradhe has joined #ruby
timfoo has joined #ruby
<tobiasvl> has to be RHEL5. I'm running it at work too. it's still supported by Red Hat whose logo is a fedora (hence shevy's confusion) and it has python 2.5.
<tobiasvl> but we're upgrading to RHEL6 this summer \o/
<tobiasvl> praise the lord
<timfoo> /set weechat.look.item_time_format "%H:%M"
<timfoo> oops
sunya7a has quit [Ping timeout: 264 seconds]
superscott[8] has joined #ruby
r_rios has quit [Ping timeout: 240 seconds]
<Schmidt> tobiasvl: just in time for RHEL7 to come out =))
r_rios has joined #ruby
<tobiasvl> correct!
Lewix has quit [Remote host closed the connection]
<tobiasvl> we can't wait for the sysadmins at work to support RHEL7 though (we're on out-of-warranty hardware, running HP ServiceGuard …)
<tobiasvl> but RHEL6 -> RHEL7 shouldn't be that big of a jump at some later point
andrewlio has joined #ruby
<RubyPanther> gcc-4.8.3-1.fc20.x86_64
<tobiasvl> on RHEL5 we have our own home-made package manager that we need to get rid of and all sorts of unholiness
bradhe has quit [Ping timeout: 264 seconds]
<RubyPanther> is fedora 20
timonv has joined #ruby
uresu has joined #ruby
superscott[8] has quit [Ping timeout: 260 seconds]
oo_ has quit [Remote host closed the connection]
coderhs has quit [Ping timeout: 272 seconds]
oo_ has joined #ruby
razum2um has quit [Read error: Connection reset by peer]
razum2um has joined #ruby
nateberkopec has joined #ruby
Zai00 has joined #ruby
lsmola__ has joined #ruby
tmtwd has joined #ruby
LiohAu has joined #ruby
<shevy> man
nateberkopec has quit [Ping timeout: 240 seconds]
hgl_ has joined #ruby
Burgestrand has joined #ruby
hgl__ has joined #ruby
mijicd has quit [Remote host closed the connection]
hgl has quit [Ping timeout: 240 seconds]
bartdorsey has quit [Ping timeout: 272 seconds]
DrCode has quit [Ping timeout: 264 seconds]
pu22l3r has quit [Ping timeout: 252 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
timonv has quit [Remote host closed the connection]
bartdorsey has joined #ruby
cjk101010 is now known as cjk
cjk is now known as cjk101010
hgl_ has quit [Ping timeout: 264 seconds]
alem0lars has quit [Quit: Going AFK...]
kaspergrubbe has joined #ruby
himsin has joined #ruby
schaerli has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
kaspergr_ has joined #ruby
sk87 has joined #ruby
alem0lars has joined #ruby
postmodern has quit [Quit: Leaving]
sinkensabe has quit [Ping timeout: 248 seconds]
Takle has joined #ruby
dayepa1 has quit [Ping timeout: 260 seconds]
jottr has joined #ruby
kaspergrubbe has quit [Ping timeout: 264 seconds]
DrCode has joined #ruby
Wolland has quit [Remote host closed the connection]
earthquake has quit [Quit: earthquake]
coderhs has joined #ruby
Takle has quit [Remote host closed the connection]
nateberkopec has joined #ruby
dangerou_ has joined #ruby
Takle has joined #ruby
earthquake has joined #ruby
bluOxigen has joined #ruby
bluOxigen has quit [Changing host]
bluOxigen has joined #ruby
whyy has joined #ruby
dangerousdave has quit [Ping timeout: 264 seconds]
nateberkopec has quit [Ping timeout: 240 seconds]
n3byt3 has joined #ruby
dANOKELOFF has joined #ruby
Bira has joined #ruby
Wolland has joined #ruby
dangerou_ has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
dayepa has joined #ruby
mk2014 has joined #ruby
tobiasvl has quit [Read error: Connection reset by peer]
tvl has joined #ruby
fantasti` has joined #ruby
einarj has joined #ruby
hgl__ has quit [Read error: Connection reset by peer]
sigurding has quit [Quit: sigurding]
hgl__ has joined #ruby
fantasticsid has quit [Ping timeout: 260 seconds]
Bira has quit [Ping timeout: 264 seconds]
jottr has quit [Ping timeout: 255 seconds]
sigurding has joined #ruby
hgl___ has joined #ruby
greenarrow has quit [Quit: 500]
greenarrow has joined #ruby
duncannz has joined #ruby
yubrew has joined #ruby
TomyWork has joined #ruby
<TomyWork> hi
hgl___ has quit [Remote host closed the connection]
havenwood has joined #ruby
setra has joined #ruby
hgl___ has joined #ruby
<TomyWork> I'm trying to get this to work but it complains that it cant find the module "puppet": https://github.com/ripienaar/puppet-reportprint/blob/master/report_print.rb
<TomyWork> ./report_print.rb:3:in `require': no such file to load -- puppet (LoadError)
jottr has joined #ruby
razum2um has quit [Ping timeout: 248 seconds]
<Schmidt> TomyWork: Yeah, you need to install puppet...
hgl__ has quit [Read error: Connection reset by peer]
<TomyWork> drwxr-xr-x 10 root root 4,0K 8. Apr 2013 /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1
ndrei_ has joined #ruby
<miah> how are you executing it?
<TomyWork> ./report_print.rb
kartouch has quit [Quit: ZNC - http://znc.in]
Macaveli has joined #ruby
yubrew has quit [Ping timeout: 248 seconds]
<miah> looks like it should work, its ages since i touched puppet though.
jamto11 has joined #ruby
<TomyWork> ruby -e 'puts $:' prints, among others, /usr/lib/ruby/1.8
<miah> what happens if you `irb`
<miah> can you require 'puppet' ?
<TomyWork> which is odd, cause that's not where "gem" installs them
havenwood has quit [Ping timeout: 264 seconds]
<TomyWork> irb gives me "LoadError: no such file to load -- puppet"
<Schmidt> TomyWork: how did you install puppet? gems or os package manger ?
<TomyWork> through a .deb package
nateberkopec has joined #ruby
earthquake has quit [Quit: earthquake]
<TomyWork> i also tried installing it through "gem install puppet", but that ended up installing a 2nd version of puppet in the same folder (/usr/lib/ruby/gems/1.8/gems/puppet-3.6something)
<TomyWork> it didnt fix the situation either
Takle has quit [Remote host closed the connection]
earthquake has joined #ruby
tmtwd has quit [Ping timeout: 272 seconds]
razum2um has joined #ruby
qba73 has joined #ruby
<TomyWork> can you install gems in the local dir somehow? like with node.js's node_modules directory or what it's called
timonv has joined #ruby
jamto11 has quit [Ping timeout: 272 seconds]
bradhe has joined #ruby
coderhs has quit [Ping timeout: 264 seconds]
r_rios has quit [Ping timeout: 272 seconds]
Wolland has quit [Remote host closed the connection]
tvl is now known as tobiasvl
nateberkopec has quit [Ping timeout: 240 seconds]
abdulsattar has quit [Ping timeout: 248 seconds]
ephemerian has joined #ruby
Joulse has joined #ruby
bradhe_ has joined #ruby
<Hanmac> TomyWork: the problem is the 1.8 in the path ruby1.8 is dead
tmtwd has joined #ruby
<miah> my guess is TomyWork is on a enterprise linux
<TomyWork> debian squeeze
bradhe has quit [Ping timeout: 264 seconds]
<miah> why not at least ruby1.9?
<miah> or use the puppet omnibus
<TomyWork> the what?
<TomyWork> i'm using what's installed on this machine
<miah> pretty sure they have a 'complete' installer that will also bundle ruby
<TomyWork> they supply debian packages
<miah> does puppet work?
<TomyWork> yes
AlSquire has joined #ruby
<TomyWork> or i wouldnt have a report i want to look at :)
<miah> my guess is then, their binary does some magic to make the load_paths all proper
marr has joined #ruby
<miah> i dont know how otherwise that script wouldnt work
bradhe_ has quit [Ping timeout: 260 seconds]
<miah> eg, somethings funky and its really dark here =)
<miah> i might not be able to offer you the best help in my current state
jpierre03 has joined #ruby
superscott[8] has joined #ruby
kwd has quit [Quit: kwd]
Ankhers has joined #ruby
wildroman2 has quit [Read error: No route to host]
wildroman3 has joined #ruby
Takle has joined #ruby
superscott[8] has quit [Ping timeout: 244 seconds]
coderhs has joined #ruby
inkblots has joined #ruby
Ankhers has quit [Ping timeout: 264 seconds]
bricker`LA has joined #ruby
mengu has quit [Remote host closed the connection]
echevemaster has quit [Remote host closed the connection]
nateberkopec has joined #ruby
earthquake has quit [Quit: earthquake]
hgl___ has quit [Read error: Connection reset by peer]
hgl___ has joined #ruby
earthquake has joined #ruby
Takle has quit [Remote host closed the connection]
nateberkopec has quit [Ping timeout: 240 seconds]
aganov has quit [Quit: Leaving]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
lkba has quit [Ping timeout: 240 seconds]
einarj has quit []
Platini has joined #ruby
mary5030 has joined #ruby
mk2014 has quit [Quit: mk2014]
rdark has joined #ruby
inkblots has left #ruby [#ruby]
Charliebr73 has joined #ruby
einarj has joined #ruby
mk2014 has joined #ruby
Wolland has joined #ruby
stef_204 has joined #ruby
vaz_ar has joined #ruby
vaz_ar has left #ruby [#ruby]
<shevy> miah are you drunk again!
<AlexRussia> anyone know good forum on ruby with support i18n?
<AlexRussia> shevy: hell
<AlexRussia> shevy: o
workmad3 has joined #ruby
<shevy> AlexRussia https://www.ruby-forum.com/
<AlexRussia> shevy: oh, its about ruby? i mean written on ruby
gigetoo has quit [Remote host closed the connection]
yetanotherdave has quit [Quit: Lost terminal]
Wolland has quit [Ping timeout: 255 seconds]
gigetoo has joined #ruby
jottr has quit [Quit: WeeChat 0.4.3]
<Edelwin> AlexRussia: *written in ruby
<AlexRussia> agrh
sevenseacat has quit [Quit: Leaving.]
<Charliebr73> :D
mehlah has joined #ruby
<Charliebr73> The joys of the English language. :P
mijicd has joined #ruby
nateberkopec has joined #ruby
sk87 has joined #ruby
decoponio has joined #ruby
timonv has quit [Remote host closed the connection]
mk2014 has left #ruby [#ruby]
earthquake has quit [Quit: earthquake]
<AlexRussia> :D
exgf_h has joined #ruby
earthquake has joined #ruby
<shevy> AlexRussia the software is written in ruby, and the forum is about ruby
<AlexRussia> em....
<AlexRussia> where sources? XD
exgf has quit [Remote host closed the connection]
<shevy> click on the link
kenndel_ has joined #ruby
<shevy> hmm
<shevy> damn
greenarrow has quit [Quit: 500]
<shevy> he changed it
<shevy> - E-Mail: webmaster (at) ruby-forum (dot) com.
<shevy> ask him :P
nateberkopec has quit [Ping timeout: 240 seconds]
<workmad3> AlexRussia: there's also https://github.com/radar/forem (a rails engine for providing forums)
<workmad3> I assume you're looking for forum systems written in ruby? :)
<Charliebr73> Forum: Rails I18n
<AlexRussia> ok
yubrew has joined #ruby
<Edelwin> oh, is there an imageboard system in ruby?
<Charliebr73> the address I pasted is about I18n
jottr has joined #ruby
kenndel has quit [Ping timeout: 240 seconds]
<DefV> not really a forum
<DefV> but aims to achieve the same goal
<AlexRussia> ok
<AlexRussia> workmad3: this can make froums into forum?
<AlexRussia> forums*
<AlexRussia> workmad3: like subfolder
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
bradleyprice has quit [Remote host closed the connection]
<workmad3> AlexRussia: you mean subforums? :)
<AlexRussia> workmad3: meh
bradleyprice has joined #ruby
<AlexRussia> workmad3: like forum1->forum2->topic1
<DefV> 3
<workmad3> AlexRussia: don't think forem supports subforums (yet)
<AlexRussia> :(
<Radar> truth
<Radar> *hides*
<Radar> patches welcome
<AlexRussia> XD
yubrew has quit [Ping timeout: 240 seconds]
<workmad3> AlexRussia: kick Radar till he adds them ;)
* AlexRussia kick Radar make support subforums....
<Radar> AlexRussia: doesn't work that way unfortunately
<Radar> bbl
<workmad3> hehe
<workmad3> Radar: s/kick/pay ?
<AlexRussia> Radar: XD
bradleyprice has quit [Ping timeout: 240 seconds]
fantasti` has quit [Remote host closed the connection]
greenarrow has joined #ruby
spider-mario has joined #ruby
n3byt3 has quit [Quit: Leaving]
sk87 has joined #ruby
coderhs has quit [Ping timeout: 240 seconds]
n3byt3 has joined #ruby
tmtwd has quit [Ping timeout: 248 seconds]
<shevy> Radar is working on discourse?
nateberkopec has joined #ruby
<DefV> shevy: no, forem
karupa is now known as zz_karupa
earthquake has quit [Quit: earthquake]
tmtwd has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
coderhs has joined #ruby
timonv has joined #ruby
Neomex has joined #ruby
superscott[8] has joined #ruby
Ankhers has joined #ruby
ghr has joined #ruby
troulouliou_dev has joined #ruby
dANOKELO_ has joined #ruby
shredding has quit [Quit: shredding]
wallerdev has quit [Quit: wallerdev]
bluOxigen has quit [Ping timeout: 248 seconds]
nateberkopec has joined #ruby
qba73 has quit [Remote host closed the connection]
MrSamuel has joined #ruby
qba73 has joined #ruby
setra has quit [Ping timeout: 252 seconds]
XenoWolf has joined #ruby
dangerou_ has joined #ruby
edmellum has quit [Quit: Connection closed for inactivity]
superscott[8] has quit [Ping timeout: 272 seconds]
dANOKELOFF has quit [Ping timeout: 264 seconds]
Ankhers has quit [Ping timeout: 264 seconds]
goyox86 has joined #ruby
Takle has joined #ruby
dangerousdave has quit [Ping timeout: 264 seconds]
nateberkopec has quit [Ping timeout: 240 seconds]
ridget has joined #ruby
hgl___ has quit [Quit: Computer has gone to sleep.]
cobakobodob has quit [Ping timeout: 244 seconds]
oo_ has quit [Remote host closed the connection]
Deele has joined #ruby
lkba has joined #ruby
nateberkopec has joined #ruby
oo_ has joined #ruby
davedev24_ has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 248 seconds]
davedev24_ has joined #ruby
Joulse has quit [Quit: Joulse]
Darryl has joined #ruby
MrSamuel has quit [Quit: MrSamuel]
duncannz has quit [Ping timeout: 244 seconds]
nateberkopec has quit [Ping timeout: 240 seconds]
davedev24_ has quit [Ping timeout: 244 seconds]
nickenchuggets has joined #ruby
jottr has quit [Quit: WeeChat 0.4.3]
tvw has joined #ruby
ridget has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Wolland has joined #ruby
jottr has joined #ruby
ghr has joined #ruby
bluOxigen has joined #ruby
_Andres has joined #ruby
jheg has joined #ruby
Wolland has quit [Ping timeout: 240 seconds]
eka has joined #ruby
ghr has quit [Read error: Connection reset by peer]
casheew_ has quit [Read error: Connection reset by peer]
qba73_ has joined #ruby
casheew has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
qba73 has quit [Ping timeout: 264 seconds]
nateberkopec has joined #ruby
mengu has joined #ruby
tokik has quit [Ping timeout: 248 seconds]
sigurding has quit [Read error: Connection reset by peer]
alem0lars has quit [Quit: Going AFK...]
cobakobodob has joined #ruby
greenarrow has quit [Quit: 500]
nateberkopec has quit [Ping timeout: 240 seconds]
razum2um has quit [Ping timeout: 248 seconds]
razum2um has joined #ruby
coderhs has quit [Ping timeout: 255 seconds]
kilk_ has quit [Quit: Leaving]
kilk_ has joined #ruby
Takle has quit [Remote host closed the connection]
nickenchuggets_ has joined #ruby
mary5030 has quit [Remote host closed the connection]
PanPan has quit [Quit: ChatZilla 0.9.90.1 [Firefox 30.0/20140605174243]]
nickenchuggets has quit [Ping timeout: 264 seconds]
nickenchuggets_ is now known as nickenchuggets
Takle has joined #ruby
greenarrow has joined #ruby
goyox86 has left #ruby ["WeeChat 0.4.3"]
jamto11 has joined #ruby
razum2um has quit [Ping timeout: 255 seconds]
goyox86 has joined #ruby
razum2um1 has joined #ruby
tmtwd has quit [Ping timeout: 260 seconds]
jamto11 has quit [Ping timeout: 255 seconds]
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
coderhs has joined #ruby
ghr has joined #ruby
dANOKELO_ has quit [Remote host closed the connection]
tmtwd has joined #ruby
arquebus has joined #ruby
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
wildroman3 has quit []
wildroman2 has joined #ruby
nateberkopec has joined #ruby
jhass|off is now known as jhass
senayar has quit [Ping timeout: 264 seconds]
fayimora has joined #ruby
fayimora has left #ruby [#ruby]
bradhe has joined #ruby
mijicd has quit [Quit: leaving]
mijicd has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bamyyyooo14335 has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
<bamyyyooo14335> how to check in rspec that array contains 1 or more elements?
<olivier_bK> i try to return all link but return only the first link do know how i can told him to return all link ?
<olivier_bK> bamyyyooo14335, sorry i dont know
relix has joined #ruby
ghr has quit [Read error: Connection reset by peer]
Neomex has quit [Quit: Leaving]
bradhe has quit [Ping timeout: 244 seconds]
relix has quit [Client Quit]
danijoo_ has joined #ruby
ghr has joined #ruby
<canton7> olivier_bK, seriously? you can't spot what's wrong with that program?
<bamyyyooo14335> what the opposite of running .empty? on an array?
<canton7> opposite in what sense?
<tobiasvl> bamyyyooo14335: not array.empty? :P
<bamyyyooo14335> to check if array has 1 or ore elements?
danijoo has quit [Ping timeout: 252 seconds]
<bamyyyooo14335> empty chechs if it has 0 elements
<canton7> !array.empty?
<bamyyyooo14335> i know that but maybe ruby has a method
sunya7a_ has quit [Ping timeout: 255 seconds]
kyb3r_ has quit [Quit: Leaving]
<tobiasvl> why would it have a method that is just the negation of another method? you can just monkeypatch it in if you want it
troulouliou_dev has quit [Quit: Leaving]
eka has joined #ruby
<Hanmac> rails has present but i might not trust it
phinfonet has joined #ruby
kyb3r_ has joined #ruby
tesaf has joined #ruby
<ruisantos> bamyyyooo14335: .any?
abdulsattar has joined #ruby
doev has joined #ruby
Shidash has joined #ruby
<canton7> ruisantos, not the same
<canton7> >> [nil, false].any?
<eval-in_> canton7 => false (https://eval.in/168674)
nateberkopec has joined #ruby
<tobiasvl> olivier_bK: you realize you're returning inside that inner block?
<ruisantos> canton7: oh right
<olivier_bK> oh
DrCode has quit [Remote host closed the connection]
maletor has joined #ruby
mr_foobar_baz has joined #ruby
phantasm66 has quit [Quit: *sleeeep….]
nateberkopec has quit [Ping timeout: 240 seconds]
Wolland has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
yubrew has joined #ruby
bamyyyooo14335 has quit [Quit: bamyyyooo14335]
Doppp has quit [Ping timeout: 255 seconds]
Doppp has joined #ruby
mr_foobar_baz has quit [Quit: WeeChat 0.4.3]
mr_foobar_baz has joined #ruby
kiri has quit [Ping timeout: 248 seconds]
mr_foobar_baz has quit [Client Quit]
dANOKELOFF has joined #ruby
DrCode has joined #ruby
mr_foobar_baz has joined #ruby
Wolland has quit [Ping timeout: 252 seconds]
yubrew has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
terrellt has quit [Ping timeout: 244 seconds]
senayar has joined #ruby
arquebus has quit [Quit: Konversation terminated!]
<gr33n7007h> Can you use jruby in pry?
Takle has quit [Remote host closed the connection]
centrx has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
sigurding has joined #ruby
<gr33n7007h> anyone?
bamyyyooo14335 has joined #ruby
Takle has joined #ruby
DaniG2k has joined #ruby
whyy has quit [Remote host closed the connection]
himsin has quit [Quit: himsin]
abdulsattar has quit [Ping timeout: 252 seconds]
jonno11 has joined #ruby
oo_ has quit [Remote host closed the connection]
maletor has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<Hanmac> gr33n7007h: hm did you already tried it? if not ping banister
gwb3 has joined #ruby
lkba has joined #ruby
<gr33n7007h> Yeah just spews loads of errors
phutchins has joined #ruby
SOLDIERz has joined #ruby
nateberkopec has joined #ruby
<SOLDIERz> Hello everybody
<SOLDIERz> is there someone who feels good in dealing wirh ruby and rpm packagung
<SOLDIERz> packaging
oo_ has joined #ruby
kiri has joined #ruby
whyy has joined #ruby
bamyyyooo14335 has quit [Quit: bamyyyooo14335]
<SOLDIERz> ???
bamyyyooo14335 has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
Hobogrammer has quit [Ping timeout: 255 seconds]
Xeago_ has joined #ruby
ghr has quit [Read error: Connection reset by peer]
garethrees has joined #ruby
kiri has quit [Ping timeout: 252 seconds]
<centrx> SOLDIERz, Generally you should just ask your question, not ask if anyone knows some topic
DaniG2k has quit [Ping timeout: 264 seconds]
<centrx> SOLDIERz, Also later in the day for America/Europe has more activity
anarang has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
<SOLDIERz> centrx
<SOLDIERz> oh okay
alem0lars has joined #ruby
tmtwd has quit [Ping timeout: 255 seconds]
coderhs has quit [Ping timeout: 272 seconds]
DaniG2k has joined #ruby
DaniG2k has quit [Client Quit]
DaniG2k has joined #ruby
kyb3r_ has quit [Quit: Leaving]
bamyyyooo14335 has quit [Quit: bamyyyooo14335]
maximski has joined #ruby
bradhe has joined #ruby
zz_karupa is now known as karupa
Shidash has quit [Ping timeout: 244 seconds]
tmtwd has joined #ruby
sdwrage has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
ghr has joined #ruby
sdwrage has quit [Client Quit]
bamyyyooo14335 has joined #ruby
_ixti_ has joined #ruby
mk2014 has joined #ruby
garethrees has quit [Read error: Connection reset by peer]
greenarrow has quit [Quit: 500]
mk2014 has quit [Quit: mk2014]
bradhe has quit [Ping timeout: 260 seconds]
wildroman2 has quit [Remote host closed the connection]
DaniG2k has quit [Ping timeout: 255 seconds]
nateberkopec has joined #ruby
mk2014 has joined #ruby
bamyyyooo14335 has quit [Client Quit]
coderhs has joined #ruby
superscott[8] has joined #ruby
techsethi has quit [Quit: techsethi]
karupa is now known as zz_karupa
workmad3 has joined #ruby
Takle has quit [Read error: Connection reset by peer]
Takle has joined #ruby
coderhs has quit [Read error: Connection reset by peer]
nateberkopec has quit [Ping timeout: 240 seconds]
mk2014 has left #ruby [#ruby]
TorpedoSkyline has joined #ruby
superscott[8] has quit [Ping timeout: 244 seconds]
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
garethrees has joined #ruby
wildroman2 has joined #ruby
ghr has quit [Read error: Connection reset by peer]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sk87 has joined #ruby
bamyyyooo14335 has joined #ruby
mr_foobar_baz has quit [Ping timeout: 264 seconds]
hgl___ has joined #ruby
Takle has quit [Remote host closed the connection]
bamyyyooo14335 has quit [Client Quit]
sigurding has quit [Quit: sigurding]
hgl___ has quit [Ping timeout: 255 seconds]
DaniG2k has joined #ruby
wildroman2 has quit [Remote host closed the connection]
ghr has joined #ruby
relix has joined #ruby
mconnolly has joined #ruby
yubrew has joined #ruby
garethrees has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
jcromartie has joined #ruby
jcromartie has quit [Max SendQ exceeded]
maximski has quit []
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nateberkopec has joined #ruby
jcromartie has joined #ruby
AlexRussia has quit [Remote host closed the connection]
ra4king2 has joined #ruby
yubrew has quit [Ping timeout: 252 seconds]
ra4king has quit [Ping timeout: 272 seconds]
Wolland has joined #ruby
banister_ has joined #ruby
emergion has joined #ruby
bmurt has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
banister has quit [Ping timeout: 260 seconds]
timonv has quit [Remote host closed the connection]
garethrees has joined #ruby
ghr has quit [Read error: Connection reset by peer]
Wolland has quit [Ping timeout: 260 seconds]
AlexRussia has joined #ruby
shredding has joined #ruby
Takle has joined #ruby
paulfm has joined #ruby
Joulse has joined #ruby
hgl___ has joined #ruby
Darryl has quit [Quit: Connection closed for inactivity]
robertodecurnex has joined #ruby
sigurding has joined #ruby
Spami has joined #ruby
Spami__ has joined #ruby
Xeago_ has quit [Remote host closed the connection]
garethrees has quit [Read error: Connection reset by peer]
<tagrudev> certainty, yolo
TorpedoSkyline has joined #ruby
ghr has joined #ruby
TorpedoSkyline has quit [Client Quit]
St_Marx has joined #ruby
Takle has quit [Remote host closed the connection]
dangerousdave has joined #ruby
dangerousdave has quit [Max SendQ exceeded]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
dangerousdave has joined #ruby
dangerousdave has quit [Max SendQ exceeded]
Sirupsen has joined #ruby
dangerousdave has joined #ruby
dangerou_ has quit [Ping timeout: 272 seconds]
Soda has joined #ruby
nateberkopec has joined #ruby
stef_204 has joined #ruby
kiri has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DivineEntity has quit [Quit: Lost terminal]
tus has joined #ruby
freerobby has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
jamto11 has joined #ruby
garethrees has joined #ruby
dblessing has joined #ruby
ghr has quit [Read error: Connection reset by peer]
Takle has joined #ruby
tmtwd has quit [Ping timeout: 244 seconds]
starkhalo has joined #ruby
sdouglas has joined #ruby
Morkel_ has joined #ruby
jerius has joined #ruby
paulfm has quit []
mengu has quit []
Morkel has quit [Ping timeout: 248 seconds]
Morkel_ is now known as Morkel
paulfm has joined #ruby
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
mr_foobar_baz has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
little_fu has joined #ruby
mconnolly has quit [Ping timeout: 272 seconds]
mconnolly has joined #ruby
sdouglas has quit [Ping timeout: 272 seconds]
tmtwd has joined #ruby
oo_ has quit [Remote host closed the connection]
lxsameer has quit [Quit: Leaving]
jerius has quit [Client Quit]
garethrees has quit [Read error: Connection reset by peer]
franzip has joined #ruby
DaniG2k has quit [Ping timeout: 240 seconds]
Takle has quit [Remote host closed the connection]
ghr has joined #ruby
bamyyyooo14335 has joined #ruby
greenarrow has joined #ruby
Takle has joined #ruby
Xeago has joined #ruby
kiri has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
ascarter has joined #ruby
sdwrage has joined #ruby
yacks has quit [Ping timeout: 252 seconds]
kiri has joined #ruby
DaniG2k has joined #ruby
pavelz has quit [Ping timeout: 240 seconds]
mr_foobar_baz has quit [Ping timeout: 264 seconds]
britneywright has joined #ruby
ghr has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
ghr has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
kiri has quit [Client Quit]
<jheg> in a case statement should this throw an error?
<jheg> when < 0
<banister_> jheg yes
Macaveli has quit [Remote host closed the connection]
<jheg> does it need to be an if statement?
Hanmac1 has joined #ruby
<banister_> jheg yeah or you could use a lambda or something in a case
<banister_> when ->(v) { v < 0 }
yubrew has joined #ruby
kevind has joined #ruby
<jheg> banister_: lambda ->(arg)?
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
<banister_> jheg the way that i wrote it..
Hanmac has quit [Ping timeout: 272 seconds]
<jheg> banister_: thanks thats less code than wrapping it in an if statement so best practice yeah?
Bira has joined #ruby
Joulse has quit [Quit: Joulse]
fabrice31 has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
<banister_> jheg now an 'if' is probably better here :)
earthquake has joined #ruby
<banister_> jheg well it depends how many cases u have
fabrice31 has joined #ruby
<banister_> if you have a bunch of cases and you've been using a case/when, then stick to the lambda
<banister_> otherwise if yu're always testing conditionals probalby switch to an if
garndt has joined #ruby
<jheg> it's just a simple excursive of evaluating user input
<jheg> so user has to put in a number between 0 and 100 and there are four outcomes
<jheg> 1. number is less than 50
<jheg> 2. above 50 less than 100
yubrew has quit [Ping timeout: 264 seconds]
<jheg> 3. cannot be a negative try again
<jheg> 4. cannot be in excess of 100 try again
LexicalScope has joined #ruby
<jheg> so I was using the lambda for the less than 0 when
<jheg> so the point of the excersie was to write that using a case statement
freerobby has quit [Quit: Leaving.]
bamyyyooo14335 has quit [Quit: bamyyyooo14335]
<DefV> hmz
<DefV> I rather do
garethrees has joined #ruby
<DefV> case; when a > 1; foo; when a < 1; bar; when b > 1; baz; end etc
<DefV> then if; elsif; elsif; else; end
jottr has joined #ruby
fabrice31 has quit [Ping timeout: 255 seconds]
aniM has joined #ruby
Takle has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 260 seconds]
acconradstrong has quit [Quit: acconradstrong]
<centrx> jheg, There are two forms of the case statement
acconrad has joined #ruby
yacks has joined #ruby
jxf has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
Wolland has joined #ruby
hellome has joined #ruby
Joulse has joined #ruby
Sirupsen has quit [Quit: Textual IRC Client: www.textualapp.com]
mr_foobar_baz has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
garethrees has quit [Read error: Connection reset by peer]
Photism has joined #ruby
djcp has joined #ruby
obscured has joined #ruby
djcp has left #ruby [#ruby]
Wolland has quit [Ping timeout: 255 seconds]
ghr has joined #ruby
timonv has joined #ruby
Takle has joined #ruby
superscott[8] has joined #ruby
Soda has quit [Remote host closed the connection]
centrx has quit [Quit: Mission accomplished. Ready for self-termination.]
superscott[8] has quit [Client Quit]
aniM has quit [Ping timeout: 255 seconds]
Zenigor has joined #ruby
freerobby has joined #ruby
mr_foobar_baz has quit [Quit: WeeChat 0.4.3]
earthquake has quit [Quit: earthquake]
snath has quit [Ping timeout: 272 seconds]
Bira_ has joined #ruby
earthquake has joined #ruby
Bira_ has quit [Remote host closed the connection]
DaniG2k has quit [Quit: leaving]
jobewan has joined #ruby
Bira has quit [Ping timeout: 255 seconds]
SOLDIERz has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
ekinmur has joined #ruby
acconrad has quit [Quit: acconrad]
Ankhers has joined #ruby
vifino has joined #ruby
Takle has quit [Remote host closed the connection]
phantasm66 has joined #ruby
ekinmur has quit [Client Quit]
Bira has joined #ruby
ekinmur has joined #ruby
fabrice31 has joined #ruby
Xeago has quit [Remote host closed the connection]
garethrees has joined #ruby
fabrice31 has quit [Remote host closed the connection]
hgl___ has quit [Remote host closed the connection]
fabrice31 has joined #ruby
hgl___ has joined #ruby
chipotle has quit [Quit: cya]
webgen has joined #ruby
ghr has quit [Read error: Connection reset by peer]
kilk_ has quit [Remote host closed the connection]
Charliebr73 has quit []
GriffinHeart has quit [Remote host closed the connection]
mjsmith2 has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
cmoneylulz has joined #ruby
Atttwwww has joined #ruby
enebo has joined #ruby
tesuji has quit [Ping timeout: 264 seconds]
chipotle has joined #ruby
anaeem1 has joined #ruby
sigurding has quit [Quit: sigurding]
Atttwww has quit [Ping timeout: 244 seconds]
anaeem1 has quit [Remote host closed the connection]
AlSquire has quit [Ping timeout: 240 seconds]
tmtwd has quit [Ping timeout: 260 seconds]
ghr has joined #ruby
garethrees has quit [Read error: Connection reset by peer]
mikesplain has joined #ruby
banister has joined #ruby
danijoo_ has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
sunya7a has joined #ruby
sunya7a has quit [Changing host]
sunya7a has joined #ruby
Macaveli has joined #ruby
AlSquire has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
DaniG2k has joined #ruby
tmtwd has joined #ruby
freerobby has quit [Quit: Leaving.]
banister_ has quit [Ping timeout: 264 seconds]
earthquake has quit [Quit: earthquake]
St_Marx has quit [Quit: Ex-Chat]
earthquake has joined #ruby
ppinto has joined #ruby
phantasm66 has quit [Quit: *poof*]
garethrees has joined #ruby
sigurding has joined #ruby
Shidash has joined #ruby
TomyWork has quit [Ping timeout: 252 seconds]
ghr has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
Takle has joined #ruby
LadyRainicorn has joined #ruby
AntelopeSalad_ is now known as AntelopeSalad
jackneill has joined #ruby
endash has joined #ruby
yakko has joined #ruby
wmoxam has joined #ruby
C0deMaver1ck has joined #ruby
Vivekananda_y510 has joined #ruby
yubrew has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davedev2_ has joined #ruby
davedev24_ has quit [Ping timeout: 272 seconds]
jdj_dk has joined #ruby
saravana has joined #ruby
<saravana> Hi I am unable to run the rails server in windows 8, I am able to create a project
DouweM has joined #ruby
amargherio has joined #ruby
Zenigor has quit [Remote host closed the connection]
<saravana> when I am running rails server it says "autodetect" could not find a javascript runtime
alexju has joined #ruby
yubrew has quit [Ping timeout: 252 seconds]
<saravana> I even install gem install execjs successfully, but not sure why system showing this error
ghr has joined #ruby
garethrees has quit [Read error: Connection reset by peer]
<saravana> anyone help?
meinside has quit [Quit: Connection closed for inactivity]
<ddv> saravana: get linux or osx
<saravana> Not possible, mine is licensed Windows os
<ddv> Windows is crap for ruby development
<saravana> Yeah I heared it from my friends, but atleast for doing basic tasks i need that
DaniG2k has quit [Quit: leaving]
<wasamasa> get paid rails support, then that might work out :P
stytown has joined #ruby
jdj_dk has quit [Remote host closed the connection]
gr33n7007h has quit [Quit: Leaving]
<saravana> where do i get that?
<saravana> in rails home page?
thesheff17 has joined #ruby
<wasamasa> never heard of consultants?
Darryl has joined #ruby
AlSquire has quit [Ping timeout: 264 seconds]
<wasamasa> these guys do that for a living
stytown has quit [Client Quit]
wildroman2 has quit [Remote host closed the connection]
himsin has joined #ruby
stytown has joined #ruby
<saravana> can you share the url of rails paid support?
earthquake has quit [Quit: earthquake]
<wasamasa> never heard of search engines?
lagweezle has quit [Quit: leaving]
<saravana> and I new to this rails environment
wildroman2 has joined #ruby
earthquake has joined #ruby
<yakko> saravana: they are trolling you
<saravana> wasamasa: I am not doing this for living FYI
jonno11 has joined #ruby
Hanmac1 is now known as Hanmac
<wasamasa> I don't search the internet for a living either
eka has joined #ruby
<wasamasa> besides, if I were to give out links, I'd most likely get kicked for stealth advertising
<Hanmac> saravana: did you try the #rubyOnRails channel?
<yakko> saravana: if you want to learn it from the beginning check rails4zombies, if you want to see cool examples of cool plugins/gems being used check railscasts
<saravana> alright i googled a lot, but nothing works
metadave_ is now known as metadave
Zebroid has joined #ruby
SilverKey has joined #ruby
<yakko> saravana: I strongly recommend rails4zombies, it's free
<saravana> Hanmac: No I didn't
garethrees has joined #ruby
AlSquire has joined #ruby
lemur has joined #ruby
Zenigor has joined #ruby
charliesome has joined #ruby
cmoneylulz has quit [Remote host closed the connection]
sailias has joined #ruby
rurban has left #ruby ["Leaving"]
ghr has quit [Ping timeout: 248 seconds]
<saravana> I entered ruby on rails channel
cmoneylulz has joined #ruby
<saravana> can you help me anyone?
<wasamasa> ask that on the rails channel
jhass is now known as jhass|off
ndrei has quit [Ping timeout: 244 seconds]
dANOKELOFF has quit [Remote host closed the connection]
Wolland has joined #ruby
ndrei_ has quit [Ping timeout: 272 seconds]
<saravana> wasamasa>thanks for your help
inspectah_stack has joined #ruby
<wasamasa> it's not like they're psychics
Avahey_ has quit [Quit: Connection closed for inactivity]
<wasamasa> and magically know about your problems
jheg has quit [Quit: jheg]
inspectah_stack has quit [Client Quit]
musl has quit [Write error: Connection reset by peer]
ndrei has joined #ruby
ndrei_ has joined #ruby
yubrew has joined #ruby
jheg has joined #ruby
musl has joined #ruby
freerobby has joined #ruby
Wolland has quit [Ping timeout: 240 seconds]
jheg has quit [Client Quit]
stytown has quit [Quit: stytown]
ghr has joined #ruby
sk87 has joined #ruby
sdouglas has joined #ruby
saravana has quit [Ping timeout: 246 seconds]
garethrees has quit [Read error: Connection reset by peer]
Sirupsen has joined #ruby
tr4656_ has joined #ruby
XenoWolf has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sevenseacat has joined #ruby
Vivekananda_y510 has quit [Ping timeout: 244 seconds]
BadQuanta has joined #ruby
little_fu has quit [Remote host closed the connection]
hello_nate has joined #ruby
bradhe has joined #ruby
RaCx has joined #ruby
dANOKELOFF has joined #ruby
wildroman2 has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
jdj_dk has joined #ruby
earthquake has quit [Quit: earthquake]
cmoneylulz has quit [Remote host closed the connection]
Xeago has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
TorpedoSkyline has joined #ruby
_Andres has quit [Ping timeout: 255 seconds]
nateberkopec has joined #ruby
garethrees has joined #ruby
lagweezle has joined #ruby
ghr has quit [Read error: Connection reset by peer]
_Andres has joined #ruby
krz has joined #ruby
avril14th has joined #ruby
n3byt3 has quit [Quit: Leaving]
avril14th is now known as Guest31298
momomomomo has joined #ruby
hgl____ has joined #ruby
chipotle has quit [Quit: cya]
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Guest31298> Hello, I have a question regarding the inclusion of modules. I don't understand how I should write my modules so https://gist.github.com/muichkine/57c79fa7b215e293eba7 generates no error
chipotle has joined #ruby
Zebroid_ has joined #ruby
wildroman2 has joined #ruby
hgl___ has quit [Ping timeout: 252 seconds]
jamto11 has joined #ruby
<olivier_bK> how to print x caracter of string ?
cmoneylulz has joined #ruby
<olivier_bK> for example my_string ="Hello world"
<Guest31298> olivier_bK: puts str[0..x]
tmtwd has quit [Ping timeout: 272 seconds]
<olivier_bK> oh thanks
oponder has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
Zebroid has quit [Ping timeout: 272 seconds]
oponder has joined #ruby
ffranz has joined #ruby
slash_nick has quit [Changing host]
slash_nick has joined #ruby
akemrir has joined #ruby
lessless has joined #ruby
ghr has joined #ruby
CaptainJet has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
<lessless> is there a convenient way to declare instance variables (like attr_accessor, but do not expose it outside) ?
<lessless> this is just to ease perception
tagrudev has quit [Remote host closed the connection]
tmtwd has joined #ruby
_Andres has quit [Ping timeout: 255 seconds]
<Guest31298> lessless yes, just put them into the protected/ private sections
garethrees has quit [Ping timeout: 264 seconds]
XenoWolf has joined #ruby
tier has joined #ruby
sinkensabe has joined #ruby
LexicalScope has quit [Ping timeout: 244 seconds]
Takle has joined #ruby
charliesome has quit [Remote host closed the connection]
whyy has quit [Remote host closed the connection]
sevenseacat has quit [Remote host closed the connection]
charliesome has joined #ruby
<slash_nick> wha? instance variables are not exposed... unless you define public methods to return the value of an instance variable
<apeiros> lessless: instance variables are never exposed.
<apeiros> @ Guest31298: ^
<apeiros> what slash_nick wrote, actually.
<slash_nick> are you saying you want to be able to set the value from outside but not read it from outside?
<apeiros> lessless: also attr_accessor does NOT define instance variables.
ghr has quit [Read error: Connection reset by peer]
bal has quit [Quit: bal]
<apeiros> it defines methods. which access instance variables.
Takle has quit [Remote host closed the connection]
<lessless> I mean I want to see what instance variables are there in the class at a glance, - it can be easly achieved if I enumerate them with attr_accessor on the top of the file
<Guest31298> apeiros: ok. Any hint for my question? :))
<lessless> but if I do so - they will be exposed outside
Takle has joined #ruby
iswell_ has joined #ruby
<canton7> I tend to assign all the ivars in the ctor - even if I'm assigning them to nil
<canton7> then your ctor has a nice big list of all of the ivars
ghr has joined #ruby
bal has joined #ruby
iswell_ is now known as iswell
jottr has joined #ruby
ziyadb has joined #ruby
tr4656_ has left #ruby [#ruby]
Macaveli has quit [Ping timeout: 240 seconds]
Photism has quit [Quit: Leaving]
yeticry_ has quit [Ping timeout: 240 seconds]
<iswell> do you guys know of a good cheat for a quick refresher on ruby, i havent used it for a while
<apeiros> Guest31298: I don't see how the code you pasted would raise that error
bricker`LA has quit [Quit: leaving]
<apeiros> iswell: zenspiders quickref maybe
psmolen has quit [Ping timeout: 244 seconds]
yeticry has joined #ruby
<Guest31298> apeiros: well the do method is defined after the include so it doesn't know about it yet
kireevco has joined #ruby
<iswell> apeiros: ?
benzine21 has joined #ruby
<Guest31298> if I move the alias_method_chain outside the module and inside the class, after the do method definition, everything works
jheg has joined #ruby
psmolen has joined #ruby
<apeiros> Guest31298: that's irrelevant
<apeiros> Guest31298: your alias_method_chain is not called in Task
<apeiros> you should get an "Error undefined method :do for Doable", not "Error undefined method :do for Task"
<apeiros> and you should get that with a reference to line 3 in doable.rb
<apeiros> iswell: just google it.
chipotle has quit [Quit: cya]
SBoolean has joined #ruby
chipotle has joined #ruby
zz_jrhorn424 is now known as jrhorn424
alec-c4 has joined #ruby
ghr has quit [Read error: Connection reset by peer]
garethrees has joined #ruby
bal has quit [Quit: bal]
IceDragon has joined #ruby
ephemerian has left #ruby [#ruby]
hobodave has joined #ruby
terrellt has joined #ruby
maximski has joined #ruby
davedev2_ has quit []
Takle has quit [Remote host closed the connection]
davedev24_ has joined #ruby
sigurding has quit [Quit: sigurding]
jamto11 has joined #ruby
Sirupsen has quit [Ping timeout: 252 seconds]
codeurge has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
moted has joined #ruby
ghr has joined #ruby
Wolland has joined #ruby
garethrees has quit [Ping timeout: 248 seconds]
brunops has joined #ruby
Takle has joined #ruby
sinkensabe has quit [Ping timeout: 248 seconds]
volk_ has joined #ruby
<volk_> hey guys i was hoping someone can explain the difffernce between raise SomeClass and raise SomeClass.new(‘some message’)
<volk_> i realize one you set the message and the other the message is default
mijicd has quit [Remote host closed the connection]
<volk_> but are there any more core differences?
jcalado has quit [Quit: ZNC - http://znc.in]
bradhe has joined #ruby
Vivekananda_y510 has joined #ruby
Wolland has quit [Ping timeout: 260 seconds]
bamyyyooo14335 has joined #ruby
treehug88 has joined #ruby
lolmaus has quit [Ping timeout: 252 seconds]
bradhe has quit [Ping timeout: 244 seconds]
<apeiros> volk_: mostly matters for custom exception classes
<apeiros> raise SomeClass, "message" will not invoke the initializer
meeko has joined #ruby
bluenemo has joined #ruby
Poky has quit [Remote host closed the connection]
<apeiros> e.g. I have exception classes where I do: raise SomeClass.new(related1, related2, …) and it generates message etc. from those arguments
garethrees has joined #ruby
<volk_> so only the lack of initializer invocation is the primary difference? aside from that, the bhavior is the same?
<volk_> apeiros:
ghr has quit [Read error: Connection reset by peer]
<apeiros> volk_: I think so
<apeiros> at least I don't recall any other diff
chipotle has quit [Quit: cya]
<volk_> yeah i figured. the reason i ask is im using this error reporting software (honeybadger) which behaves differently if i try to ignore errors by classname when raising them using new
jheg has quit [Quit: jheg]
<apeiros> huh?
cmoneylulz has quit [Remote host closed the connection]
chipotle has joined #ruby
<apeiros> that sounds odd
alec-c4 has quit [Remote host closed the connection]
hello_nate has quit [Quit: Lingo - http://www.lingoirc.com]
p0sixpscl has quit [Quit: p0sixpscl]
pimeys_ has joined #ruby
<pimeys_> hi
<volk_> apeiros: yeah… i’m not sure why
alec-c4 has joined #ruby
<pimeys_> does this crash for you? Queue.new.dup.pop
<pimeys_> :)
<pimeys_> 2.1.0 at least segfaults
<volk_> yep
pimeys_ is now known as pimeys
<drizz> 2.1.2p95 aswell
<pimeys> should I make a bugreport?
<pimeys> :)
<volk_> 2.1.0-github1 samesies
sunya7a has quit [Remote host closed the connection]
rezzack has joined #ruby
acrussell has joined #ruby
<apeiros> pimeys: yes
* apeiros off
apeiros has quit [Remote host closed the connection]
<drizz> not present in 2.0.0-p353
<drizz> [1] pry(main)> Queue.new.dup.pop
<drizz> fatal: No live threads left. Deadlock?
<drizz> from /home/mk/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/thread.rb:72:in `sleep'
<pimeys> ok
apeiros has joined #ruby
<pimeys> so might not be the best idea to use the queue here
<pimeys> I guess I'll just live with an array and a mutex
<pimeys> (just a test class, but would've been prettier with a queue)
alec-c4 has quit [Ping timeout: 244 seconds]
<iswell> apeiros: thank you for being so active in the ruby community
<iswell> apeiros: I always see you on irc
Xeago has quit [Remote host closed the connection]
<Dwarf> If I have a var, e.g. $test
<Dwarf> And $test = [1,2,3]
<Dwarf> How would I see if $test["foo"] is nil?
<Dwarf> $test["foo"].nil? gives "no implicit conversion of String into Integer"
apeiros has quit [Ping timeout: 255 seconds]
wald0 has quit [Ping timeout: 272 seconds]
<canton7> Dwarf, $test is an array, not a hash
<canton7> you cannot use string keys on an array
Guest31298 has quit [Quit: Page closed]
<Dwarf> Oh right
<canton7> they always have numeric keys
wald0 has joined #ruby
hello_nate has joined #ruby
<lessless> it's impossible to alter object from it's iterator, right? html.xpath("//img").each{ |img| img.attributes['src'] = " https://cdn.mynet.com/stub.jpg"}
dik_dak has joined #ruby
foobarbaz_ has joined #ruby
acrussell has left #ruby [#ruby]
schaerli has quit [Remote host closed the connection]
<Dwarf> canton7, what I
<canton7> lessless, if img is a mutable type, sure that's fine
<canton7> lessless, it's likely that nokogiri (or whatever) doesn't care if you change img, and simply won't notice
snath has joined #ruby
<Dwarf> What I'm trying to do is get some info from vimeo's API, but they don't mention errors, so I want to check if response["id"] is set, http://vimeo.com/api/v2/video/2.json
hello_nate has left #ruby [#ruby]
<canton7> Dwarf, what you've got there is a hash, not an array
<canton7> {} = hash, [] = array
<Dwarf> Aye
Takle has quit [Remote host closed the connection]
<canton7> hashes are key/value pairs - you access values by their keys
tmtwd has quit [Ping timeout: 252 seconds]
j_mcnally has joined #ruby
<canton7> so I don't know what you were doing with $test being an array tbh :P
<Dwarf> I'm using HTTParty which returns a JSON object, which I can then access with response[0], and then response[0]["title"] would be the title of the video
maximski has quit [Read error: Connection reset by peer]
<Dwarf> But how would I check if title is present in that?
adac has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
maximski has joined #ruby
baroquebobcat has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
<Dwarf> oh
<Dwarf> response.code
bradhe has joined #ruby
<Dwarf> Mhm
edmellum has joined #ruby
<canton7> Dwarf, so maybe response[0].has_key?("title")?
<canton7> response[0]["title"].nil?
<canton7> if you access it through response[0]["title"], use that
<canton7> not response["title"]
<Dwarf> Or unless response.code == 200
<Dwarf> brb dinner
bradhe has quit [Remote host closed the connection]
Takle has joined #ruby
tmtwd has joined #ruby
Joulse has quit [Quit: Joulse]
JasmeetQA has joined #ruby
Joulse has joined #ruby
XenoWolf has quit [Quit: Textual IRC Client: www.textualapp.com]
ghr has joined #ruby
<foobarbaz_> Hey guys, is there a way in rails 4 to add string length valodatiom of 255 to all models?
Aryasam has joined #ruby
zorak has quit [Ping timeout: 264 seconds]
freggles has joined #ruby
<foobarbaz_> To match the data migrations length requirements i mean
garethrees has quit [Ping timeout: 248 seconds]
RaCx has quit [Quit: Computer has gone to sleep.]
fabrice31 has joined #ruby
jonahR has joined #ruby
fabrice31 has quit [Remote host closed the connection]
jrhorn424 is now known as zz_jrhorn424
fabrice31 has joined #ruby
chipotle has quit [Quit: cya]
hippyphysicist has joined #ruby
JasmeetQA1 has joined #ruby
toertore has quit [Quit: Leaving]
chipotle has joined #ruby
hippyphysicist has quit [Read error: Connection reset by peer]
rebelshrug has joined #ruby
XenoWolf has joined #ruby
sunya7a has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
JasmeetQA has quit [Ping timeout: 272 seconds]
yakko_ has joined #ruby
Ariadeno has joined #ruby
Zebroid_ has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
fabrice31 has quit [Ping timeout: 264 seconds]
webgen has quit [Quit: Leaving]
<benzrf> foobarbaz_: >>>#rails
<benzrf> oops i mean
<benzrf> #rubyonraila
<benzrf> #rubyonrails
volk_ has quit [Quit: volk_]
anarang has quit [Quit: Leaving]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
garethrees has joined #ruby
ghr has quit [Read error: Connection reset by peer]
stytown has joined #ruby
alec-c4 has joined #ruby
carraroj has joined #ruby
edgarjs_afk is now known as edgarjs
Morkel has quit [Quit: Morkel]
emergion has quit [Quit: Connection closed for inactivity]
yakko has quit [Ping timeout: 264 seconds]
jheg has joined #ruby
aspires has joined #ruby
earthquake has joined #ruby
newton1 has joined #ruby
<foobarbaz_> Need to be identified there though :(
replay has joined #ruby
<benzrf> to bad
yakko_ has quit [Ping timeout: 252 seconds]
alec-c4 has quit [Ping timeout: 264 seconds]
sdouglas has quit [Remote host closed the connection]
mjsmith2 has quit [Remote host closed the connection]
sdouglas has joined #ruby
sleepee has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
charliesome_ has joined #ruby
bradhe has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
Burgestrand has quit [Quit: Burgestrand]
blackmesa has joined #ruby
apeiros has joined #ruby
jhass|off is now known as jhass
ghr has joined #ruby
Takle has quit [Remote host closed the connection]
sdouglas has quit [Ping timeout: 260 seconds]
pietr0 has joined #ruby
bricker`work has joined #ruby
benzine21 has quit [Remote host closed the connection]
voodoofish4301 is now known as voodoofish430
XenoWolf has quit [Quit: Textual IRC Client: www.textualapp.com]
tmtwd has quit [Remote host closed the connection]
garethrees has quit [Ping timeout: 248 seconds]
jottr has quit [Ping timeout: 255 seconds]
kaspergr_ has quit [Remote host closed the connection]
XenoWolf has joined #ruby
maximski has quit []
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Aryasam has quit [Ping timeout: 272 seconds]
jheg has quit [Quit: jheg]
phrozen77 has joined #ruby
phrozen77 has quit [Changing host]
Wolland has joined #ruby
sputnik13 has joined #ruby
sputnik13 has quit [Max SendQ exceeded]
jheg has joined #ruby
sputnik13 has joined #ruby
chipotle has quit [Quit: cya]
lkba has joined #ruby
ghr has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
bluenemo has quit [Remote host closed the connection]
garethrees has joined #ruby
j_mcnally has joined #ruby
wallerdev has joined #ruby
earthquake has quit [Quit: earthquake]
Wolland has quit [Ping timeout: 244 seconds]
Aryasam has joined #ruby
doev has quit [Quit: Verlassend]
jonahR has quit [Ping timeout: 260 seconds]
earthquake has joined #ruby
benzine21 has joined #ruby
djbkd has joined #ruby
alan__ is now known as duallain
wallerdev has quit [Client Quit]
bamyyyooo14335 has quit [Read error: Connection reset by peer]
bamyyyooo14335 has joined #ruby
garethrees has quit []
wallerdev has joined #ruby
Joulse has quit [Quit: Joulse]
Lucky__ has joined #ruby
deric_skibotn has joined #ruby
Zebroid has joined #ruby
mjsmith2 has joined #ruby
uresu has quit [Quit: uresu]
alec-c4 has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
bradhe has quit [Remote host closed the connection]
ltd has quit [Ping timeout: 264 seconds]
obs has quit [Quit: Konversation terminated!]
bradhe has joined #ruby
andrewlio has quit [Remote host closed the connection]
JokerDoom has joined #ruby
ltd has joined #ruby
echevemaster has joined #ruby
iswell has quit [Remote host closed the connection]
alec-c4 has quit [Ping timeout: 264 seconds]
lsmola__ has quit [Ping timeout: 272 seconds]
iswell has joined #ruby
greenarrow has quit [Quit: 500]
_JokerDoom has quit [Ping timeout: 244 seconds]
Zebroid has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
smathieu has joined #ruby
tobago has quit [Remote host closed the connection]
troyready has joined #ruby
bamyyyooo14335 has quit [Quit: bamyyyooo14335]
<snapcase> can anyone explain what I'm doing wrong here? https://gist.github.com/snapcase/6d0fe478fc80bb586896
bradhe has quit [Ping timeout: 260 seconds]
djbkd has quit [Remote host closed the connection]
<jhass> snapcase: <=> compares by alphanumeric order, not by natural order
sdouglas has joined #ruby
dANOKELOFF has quit [Remote host closed the connection]
<snapcase> but it seems correct outside of the sort method?
<jhass> also check sort_by
pontiki has joined #ruby
<ericwood> sorting strings is not the greatest idea :)
<benzrf> hmm
whyy has joined #ruby
einarj has quit [Remote host closed the connection]
<snapcase> i'd like to just extract the number with [/\d+/] but since one of them doesn't have one it will break
XenoWolf has quit [Quit: Textual IRC Client: www.textualapp.com]
dANOKELOFF has joined #ruby
djbkd has joined #ruby
<benzrf> i am imagining a framework for REST where you have persistent objects bound to URIs and they return objects whose methods are translated into links and contents into whatever form
<jhass> snapcase: you're asking "does 'PLAYERRANKING10' come before or after 'PLAYERRANKING2'" and the answer is "before"
iswell has quit [Ping timeout: 252 seconds]
zorak has joined #ruby
<benzrf> jhass: well, it does *lexically*
<jhass> snapcase: you could default to 0 if you don't find one
cj has quit [Ping timeout: 260 seconds]
<snapcase> jhass: what would be the best way to do that?
<jhass> ([/\d+/] || 0).to_i ?
<snapcase> thanks
Bira_ has joined #ruby
aspires has quit [Read error: Connection reset by peer]
aspires has joined #ruby
whyy has quit [Ping timeout: 248 seconds]
earthquake has quit [Quit: earthquake]
dANOKELOFF has quit [Ping timeout: 264 seconds]
jheg has quit [Quit: jheg]
Bira has quit [Ping timeout: 248 seconds]
s3ri0us has joined #ruby
zeropx has quit [Quit: has left the room … Or did he?]
b00stfr3ak has joined #ruby
ylluminate has joined #ruby
klaut has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
shredding has joined #ruby
tesaf has quit [Quit: Lost terminal]
JasmeetQA1 has quit [Read error: Connection reset by peer]
gypsydave5 has quit [Ping timeout: 244 seconds]
Rubeh_ has quit [Ping timeout: 245 seconds]
sdouglas has quit [Remote host closed the connection]
nuby has joined #ruby
aspires has quit []
<nuby> hi all!
sunya7a has quit [Ping timeout: 252 seconds]
Rubeh has joined #ruby
bradhe has joined #ruby
JasmeetQA has joined #ruby
JasmeetQA has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
sdouglas has joined #ruby
mjsmith2 has quit [Remote host closed the connection]
<pontiki> hi nuby
andrewjanssen has joined #ruby
mjsmith2 has joined #ruby
<nuby> hey pontiki, am I in the right place for people wo talk with about ruby?
<DouweM> yes you are!
saarinen has joined #ruby
sdouglas has quit [Ping timeout: 252 seconds]
jaimef has quit [Excess Flood]
<nuby> oh awesome, I'm just learning. Is it like seasoned pros in here?
<pontiki> well-seasoned. mmmmm, that bbq rub is awfully good.
guardian has joined #ruby
<DouweM> there's a bunch of pros, a lot of intermediates and a lot of newbies, so you'll fit in just right :P
nmokru has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nuby> hah ok cool
mattstratton has joined #ruby
<guardian> hello, let's say I have h = Hash.new(0); can I with a oneliner do x = h['foo']++ so that it increments h['foo'] after having returned the value?
<guardian> of course this doesn't work
<pontiki> there is no ++ in ruby :D
Pulpie has joined #ruby
<DouweM> ++ doesn't exist in Ruby, use += 1
<guardian> ah that's why
edgarjs is now known as edgarjs_afk
nmokru has quit [Client Quit]
<jhass> note that it returns the assigned value
<Pulpie> how much memory can 32bit ruby on windows 7 allocate, I thought it would be 4GB but apparently this isn't the case.
Wolland has joined #ruby
<guardian> which I won't be able to do as a oneliner then
<benzrf> Pulpie: the answer is:
<benzrf> dont use windows
end_guy has quit [Ping timeout: 264 seconds]
<benzrf> ;)
<pontiki> nonesense
akemrir has quit [Quit: WeeChat 0.4.3]
<Pulpie> benzrf: ruby shouldn't be released on a platform it cant support ;)
nmokru has joined #ruby
alem0lars has quit [Quit: Going AFK...]
<nuby> guardian, you can do it with a semicolon, it will fit on one line
<benzrf> Pulpie: using windows is inviting the pain in
<jhass> ^ don't do that though
<Pulpie> eh I asked a simple question
timonv has joined #ruby
jaimef has joined #ruby
<Pulpie> if you don't know the answer thats fine. Creating a solution through means that disregard the question is not an answer.
s00pcan has joined #ruby
<pontiki> Pulpie: people here are so down on windows. using ruby on windows is quite valid. i don't know the answer to your specific question, however.
jottr has joined #ruby
anaeem1_ has joined #ruby
<pontiki> guardian, you can do x = h[:foo] += 1 just fine
qba73_ has quit [Remote host closed the connection]
edgarjs_afk is now known as edgarjs
cmoneylulz has joined #ruby
<Pulpie> alright let me ask this more general ruby question, Why don't objects such as numbers have the ++ operation? Surely ruby could implement it. It doesn't seem hard to detect what type of object it is and add one to it if it's some sort of number.
kaspergrubbe has joined #ruby
jimbow has joined #ruby
stytown has quit [Quit: stytown]
qba73 has joined #ruby
cmoneylulz has quit [Remote host closed the connection]
<newton1> Sort of weird it doesn't now that you mention it
<newton1> I think ruby probably has enough magic for now :)
wallerdev has joined #ruby
<Pulpie> coming from C++ it was the first thing I noticed.
sdouglas has joined #ruby
hgl____ has quit [Quit: Computer has gone to sleep.]
bradhe has quit [Remote host closed the connection]
<pontiki> i had to wonder about that as well; numbers are also objects in ruby, though implemented directly it seems.
<Pulpie> but somehing like i++! and i++ would be nice.
<pontiki> so 1 is always the same object hash
stytown has joined #ruby
wldcordeiro has joined #ruby
<pontiki> so you can't do 1++ or that would *seemingly* change every occurance of 1
iswell has joined #ruby
<benzrf> Pulpie: i++ could be the same as i = i + 1 yes
<pontiki> operators are messages, tho, not separate syntactic elements
<guardian> thanks that works well
<newton1> or i+=1 if you're lazy
<Pulpie> benzrf: but its not.
<benzrf> Pulpie: why should it be :O
<pontiki> well, i'll just keep quite
<pontiki> quiet*
<Pulpie> because its the oop way of incrementing a number.
<jhass> Pulpie: so you think about it as a method?
<Pulpie> well in C++ its just an operation method
adac has joined #ruby
<jhass> numbers are immutable in ruby
<nuby> I have a question, do you guys know why insert is inserting extra characters in this code: http://repl.it/Uq3/1? It's adding 2 characters to the first and last elements.
Spami has quit [Quit: This computer has gone to sleep]
Spami__ has quit [Quit: This computer has gone to sleep]
<Pulpie> jhass: this would only be for number variables not numbers themselves.
<Pulpie> unless 1 is actually an object of 'one' and 2 is an object of a completely different class called '2'
<Pulpie> or two*
iswell has quit [Remote host closed the connection]
qba73 has quit [Remote host closed the connection]
<jhass> so s = 'foo'; s++ would be a method call, i = 1; i++ a syntax rewrite?
iswell has joined #ruby
<Pulpie> yes.
shredding has quit [Quit: shredding]
<Pulpie> well both would be method calls
andrewjanssen has quit [Remote host closed the connection]
iswell has quit [Remote host closed the connection]
<Pulpie> just one would have methods behind them.
Spami has joined #ruby
SilverKey has quit [Quit: Halted.]
Spami__ has joined #ruby
Zebroid has joined #ruby
<Pulpie> the s++ would cause an error of no such method.
<jhass> so what would 1++ do?
qba73 has joined #ruby
<Pulpie> 1++ would return 2
<Pulpie> note, return but not make 1 into 2
foobarbaz_ has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
jfran has joined #ruby
cmoneylulz has joined #ruby
<jhass> and how should a method call affect the variable an object may be assigned to?
StephenA1 has joined #ruby
<pontiki> there is the .succ method
<jhass> what about a = [1]; a[0]++
qba73 has quit [Remote host closed the connection]
<Pulpie> jhass: all this is defined well in C++
<Pulpie> a[0] would resolve to an int
<Pulpie> the int would have the ++ method on it
<jhass> Pulpie: because the compiler knows the type of the variable
<Pulpie> and be called.
<jhass> ruby doesn't
yfeldblum has joined #ruby
<Pulpie> sure it does.
chipotle has quit [Quit: cya]
<Pulpie> variable.class
<jhass> still, we would need a way to modify a variable an object is assigned to from within a method called on it. We don't currently
yfeldblum has quit [Remote host closed the connection]
qba73 has joined #ruby
newton1 has left #ruby ["WeeChat 0.4.3"]
<Pulpie> what do you mean?
<apeiros> the closest thing to making actual sense as (expr)++ is treating it as a syntax rewrite: expr = expr.succ. that'd mean i++ would be valid, 1++ would raise just as 1 = 2 would
<apeiros> I suggest searching the ML, as it has been suggested probably numerous times
<Pulpie> I figured as much
<jhass> nuby: you insert the _same_ array twice
<Pulpie> I thought there was a more clear cut reason
<jhass> nuby: the insert method doesn't copy
himself_ has joined #ruby
momomomomo has quit [Quit: momomomomo]
<nuby> hmmm
<apeiros> and what jhass means wrt modify a variable from a method: you can't write a method such that: before = x.object_id; x.foo; x.object_id != before
Takle has joined #ruby
<apeiros> or in other words: you can't assign to an "outer" variable from within a method
SCHAAP137 has joined #ruby
yfeldblum has joined #ruby
<apeiros> Pulpie: anyway, the whole fuss for a single character? not worth it IMO :)
<apeiros> (i++ is 3 chars, i+=1 is 4)
RaCx has joined #ruby
<jhass> Pulpie: and re variable.class, that's just calling the .class method on the object currently assigned to the variable, the variable itself doesn't store which type it has
<apeiros> also I assume you just left all the precedence fun away, yes?
<apeiros> ++i vs. i++ etc.
Zebroid has quit [Remote host closed the connection]
dumdedum has quit [Quit: foo]
Zai00 has quit [Quit: Zai00]
buub has joined #ruby
Takle has quit [Ping timeout: 248 seconds]
<nuby> jhass, it has to insert the array twice, its initially adding an array to the beginning and end of the existing array. Then it should go back and add a whitespace to the beggining and end of each subarray. Basically, I'm trying to take a square array, and pad it so it grows larger by one in both height and width
<jhass> nuby: I know ;)
wildroman2 has quit [Remote host closed the connection]
<nuby> hah damn I'm not getting what you're saying then. Ill keep looking at it til i figure it out. Thanks!
<jhass> >> vertical_padding = Array.new(3) { " " }; a = []; a << vertical_padding; a << vertical_padding; a[0].eql? a[1] # nuby
<eval-in_> jhass => true (https://eval.in/168811)
baroquebobcat has quit [Quit: baroquebobcat]
bradhe has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<jhass> >> a = []; a << Array.new(3) { " " }; a << Array.new(3) { " " }; a[0].eql? a[1] # nuby
<eval-in_> jhass => true (https://eval.in/168815)
<jhass> damn
wildroman2 has joined #ruby
<jhass> >> vertical_padding = Array.new(3) { " " }; a = []; a << vertical_padding; a << vertical_padding; a[0].equal? a[1] # nuby
<eval-in_> jhass => true (https://eval.in/168816)
<jhass> >> a = []; a << Array.new(3) { " " }; a << Array.new(3) { " " }; a[0].equal? a[1] # nuby
<eval-in_> jhass => false (https://eval.in/168817)
<jhass> still mix the equals up :/
Eyes has quit [Quit: X probably crashed]
baroquebobcat has joined #ruby
Eyes has joined #ruby
dc_ has quit [Remote host closed the connection]
<nuby> cool theres a logic evaluation bot in here?
<nuby> lemme see whats going on in these code bits, thanks jhass
Dreamer3 has quit [Quit: Computer has gone to sleep.]
<jhass> yeah, only use it for demos though ;)
alec-c4 has joined #ruby
<wallerdev> >> hi bot
<eval-in_> wallerdev => undefined local variable or method `bot' for main:Object (NameError) ... (https://eval.in/168818)
<nuby> k
<wallerdev> >> "good morning"
<eval-in_> wallerdev => "good morning" (https://eval.in/168819)
moritzs has joined #ruby
<wallerdev> lol
jonahR has joined #ruby
ldnunes has joined #ruby
alec-c4_ has joined #ruby
DaniG2k has joined #ruby
sdouglas has quit [Remote host closed the connection]
ephemerian has joined #ruby
djbkd has quit [Remote host closed the connection]
bradleyprice has joined #ruby
alec-c4 has quit [Ping timeout: 255 seconds]
nanoyak has joined #ruby
jespada has quit [Quit: Leaving]
sepp2k has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
tier has quit [Remote host closed the connection]
alec-c4_ has quit [Ping timeout: 255 seconds]
RaCx has quit [Read error: Connection reset by peer]
RaCx has joined #ruby
SilverKey has joined #ruby
dangerousdave has joined #ruby
DaniG2k has quit [Quit: leaving]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
shredding has joined #ruby
RaCx has quit [Read error: Connection reset by peer]
cocotton has joined #ruby
cocotton has quit [Write error: Broken pipe]
<nuby> HAH got it, thanks jhass
cocotton has joined #ruby
Spami_ has joined #ruby
<nuby> that was way more mind bending than i thought
nanoyak has quit [Quit: Computer has gone to sleep.]
jamto11 has quit [Remote host closed the connection]
gregf has quit [Quit: WeeChat 0.4.3]
djbkd has joined #ruby
<pontiki> eval-in_ is a bit fragile sometimes
<Pulpie> jhass: O_O
<pontiki> but it's a good little bot
moritzs has quit [Ping timeout: 252 seconds]
pietr0 has quit [Quit: pietr0]
<Pulpie> jhass: help me understand that, i was equal to 0 because the assignment was simply a side effect?
<banister> >> 3
<eval-in_> banister => 3 (https://eval.in/168820)
<apeiros> it was 0 because the increment happens after the statement
Ariadeno has quit [Quit: HydraIRC -> http://www.hydrairc.com <- Chicks dig it]
<Pulpie> oh
tacos1de has quit [Ping timeout: 264 seconds]
<Pulpie> right because it would need to be ++i
closures999 has joined #ruby
<apeiros> that probably wouldn't work the way he thought either
timonv has quit [Remote host closed the connection]
<apeiros> as afair it'd then just be all increments before the statement
<apeiros> so it'd just be 3
<Pulpie> oh
end_guy has joined #ruby
<Pulpie> right
<Pulpie> wtf
<apeiros> and thus fail because the array only contains 3 elements, so no index 3
<apeiros> you still want ++?
<Pulpie> yes.
<apeiros> lol :)
<Pulpie> No reason to not have it.
<Pulpie> Ive never came across this problem in the wild
<DouweM> Pulpie: feature bloat?
<pontiki> then again, there's been no reason to have it
<Pulpie> not really feature bloat if it's a core of OOP
tacos1de has joined #ruby
nanoyak has joined #ruby
<apeiros> the amount of mind-bendery necessary to fit it into a language like ruby makes it rather undesirable IMO
jamto11 has joined #ruby
<Pulpie> ruby is the only major OOP language I know to not have it.
<DouweM> okay so I didn't follow this whole discusstion but you're saying ++ is a core feature of OOP?
<apeiros> "core of OOP", hogwash
momomomomo has joined #ruby
<DouweM> because that's preposterous
<apeiros> as already stated, it s a *one character* shorter form of +=1
<katlogic> Pulpie: Correction. Only C-syntax clones have it.
<katlogic> It comes as a shocker ruby is not a C clone.
<Pulpie> I dunno, ruby seems like a C clone
<Pulpie> it is writen in C++
<apeiros> so that "core of OOP" is ridiculous at best
<DouweM> Pulpie: say what, written in C++?
<katlogic> Pulpie: r/programmingcirclejerk 0/10++
<Pulpie> afaik i though ruby was acually written in C++
<Pulpie> is that wrong?
<DouweM> Pulpie: MRI is implemented in C
rebelshrug has quit [Quit: Textual IRC Client: www.textualapp.com]
<DouweM> which still has nothing to do with Ruby being or not being a clone of C
<katlogic> Matz was so embarassed about ruby C++ he never told us about it :(
<Pulpie> well it's also listed as influenced by C++/C
AlSquire has quit [Quit: This computer has gone to sleep]
St_Marx has joined #ruby
<pontiki> this is really tiresome
<DouweM> "influenced by" is far from a clone. still no reason to include the 1-char optimization ++
<DouweM> agreed
<pontiki> what is your intent, Pulpie ?
<Pulpie> Eh, it's just an opinion.
<pontiki> among many
workmad3 has quit [Ping timeout: 255 seconds]
<DouweM> this is such a bikeshedding issue
<Pulpie> doesn't mean we still cant discuss it
<pontiki> been discussed ad nauseum over and over and over
<eam> ++ is kind of a dumb operator anyway, if you're smart you'll avoid using it in C
<DouweM> eam how so?
<apeiros> DouweM: see jhass' link
simoz1111114 has joined #ruby
<eam> DouweM: very easy to hit undefined behavior
<apeiros> people easily get it wrong
<DouweM> ah right, I'e read that actually
<apeiros> I wouldn't wonder if that was one of the next 'goto fail' causes
IcyDragon has joined #ruby
dANOKELOFF has joined #ruby
IceDragon is now known as Guest89027
<DouweM> I thought eam was saying you shouldn't even use i++ as an operation on its own
<DouweM> it can definitely get confusing when inline with other stuff
IcyDragon is now known as IceDragon
<Pulpie> eam: what would you use in a for loop then?
postmodern has joined #ruby
postmodern has quit [Changing host]
postmodern has joined #ruby
Guest89027 has quit [Ping timeout: 252 seconds]
<Pulpie> for (i = 0; i < 100; i += 1;)?
<eam> that's legal syntax, sure
tvw has quit []
<eam> it's not particularly harmful in that example, but not particularly useful either
<Pulpie> lots of things that are legal syntax aren't recommened.
yetanotherdave has joined #ruby
<eam> If I was redesigning C today I'd leave ++ out
lemur has quit [Read error: Connection reset by peer]
<DouweM> Pulpie: like i++ ;)
<nuby> whats this "bikeshedding" ive never heard that phrase
lemur has joined #ruby
<Pulpie> nuby: its to say that topic isn't important.
<Pulpie> such as moot or what not.
<DouweM> Pulpie: it means more than that. https://en.wiktionary.org/wiki/bikeshedding
<banister> eam ++i++
sdwrage has quit [Quit: Leaving]
jfran has quit [Quit: Going offline, see ya! (www.adiirc.com)]
lemur has quit [Remote host closed the connection]
Takle has joined #ruby
RaCx has joined #ruby
binaryhat has quit [Remote host closed the connection]
tyfighter has joined #ruby
<Pulpie> ++i++ is not valid
binaryhat has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
<Pulpie> you need at least one veriable for an operational call.
<banister> Pulpie it is valid
<Pulpie> no its not.
<banister> Pulpie in C? yeah it is
<Pulpie> C++ ^^
<wallerdev> doesnt really matter, why would anyone write that
<Pulpie> C ^
<wallerdev> lol
Shidash has quit [Ping timeout: 260 seconds]
ashleah{K} is now known as Leah
<Pulpie> it would be a short hand to add 2 to a variable on a single line
<Pulpie> instead of i += 2; it would be ++i++;
<wallerdev> i+=2 is shorter?
<Pulpie> spaces are characters too
Leah is now known as leah
<Pulpie> if I write i+=2; it's cramping.
Aryasam has quit [Ping timeout: 252 seconds]
<wallerdev> i have a feeling if youre writing ++i++ you dont care about "cramping" lol
p4tux has quit [Remote host closed the connection]
<Pulpie> if I write ++i++; its... well it's actually ugly which is why it doesn't exist.
<wallerdev> anyway i think i++++ would make more sense for that
<Pulpie> but i += 1; vs i++;
yfeldblum has quit [Remote host closed the connection]
<banister> Pulpie darn you're right
<Pulpie> you cant ++++ either
<Pulpie> every operation must have a variable.
<eam> banister: you can however do: i++,++i
<wallerdev> i know im just saying that would make more sense as a shorthand for adding 2
<Pulpie> ah
aspires has joined #ruby
<wallerdev> adding one before and one after is just weird
<Pulpie> yeah
pietr0 has joined #ruby
<Pulpie> anyways you can do some neat optimizations with post and pre fixs
banjara has joined #ruby
<Pulpie> maybe its not for ruby but they aren't bad in C++
relix has joined #ruby
volk_ has joined #ruby
<wallerdev> cant you override ++ in c++ too
dik_dak has quit [Ping timeout: 244 seconds]
<wallerdev> you could make it add 2
<Pulpie> yes
<Pulpie> you could in your own class
<wallerdev> thats the true solution
cmoneylulz has quit [Read error: Connection reset by peer]
m8 has joined #ruby
<Pulpie> I suppose thats a solution
alec-c4 has joined #ruby
cmoneylulz has joined #ruby
<wallerdev> thats the ruby way
<jottr> Hi all. I am pulling JSON data from yelp. While I am testing, I would like to save on calls to the API by using a heredoc. I am not sure how to make sure that the nested hash returned by yelp is retained when using said heredoc. I tried by simply storing the json inside a varialbel like this: data = <<DATA ..jsondata.. DATA
IcyDragon has joined #ruby
IceDragon has quit [Ping timeout: 248 seconds]
<wallerdev> just store it in a file
<DouweM> why would you need a heredoc here?
IcyDragon is now known as IceDragon
<jottr> printing the data from the heredoc via 'pp data' results in string characters being escaped with backslashes
<jottr> DouweM: What would be the alternative?
<pontiki> those backslashes aren't in the data
<DouweM> jottr: that's just how irb prints it
<jhass> ^ or inspect
<pontiki> they're in the pp representation
<DouweM> jottr: or rather, what String#inspect returns
<pontiki> yes, that
tier has joined #ruby
suffice has joined #ruby
<jottr> strange. If I print the same data not from the heredoc but directly from what I get from the api I won't get the backslahes
RaCx has quit [Quit: Computer has gone to sleep.]
<pontiki> why is this strange?
<DouweM> jottr: that's not strange
<wallerdev> just use puts instead of pp?
<DouweM> :)
<jottr> ah. that worked. thx
rdark has quit [Quit: leaving]
dANOKELOFF has quit [Remote host closed the connection]
<jottr> DouweM: so what would be an alternative to a heredoc?
lemur has joined #ruby
<wallerdev> store the text in a file
<DouweM> yeah, using a fixture file is better
alec-c4 has quit [Ping timeout: 260 seconds]
<wallerdev> not a great idea to put data like that in the middle of code
<Pulpie> I get why ruby does this but ruby's scope is still odd http://ideone.com/2rQonu
<Pulpie> but its because once it passes into the if block the variable gets created
<Pulpie> and is already defined in the intrepreter.
relix has quit [Ping timeout: 244 seconds]
yxhuvud has joined #ruby
<wallerdev> the variable is defined even if the if doesnt run
<jottr> ok. so do you have some recommendation on where to get started on using fixtures without rails?
sopheny has joined #ruby
<Pulpie> http://ideone.com/2rQonu but why didn't this work then?
elaptics is now known as elaptics`away
sopheny has quit [Client Quit]
<Pulpie> why is an if block scope different than a function scpe?
<wallerdev> what do you mean?
<wallerdev> you cant access locals in another method
<Pulpie> so if you create a variable in an if block, you can use it out of an if block
<jhass> Pulpie: because that's how it's defined.
icarus has joined #ruby
<jhass> two notes: it's a method, not a function. And we leave empty parens off
<DouweM> Pulpie: that's just variable scope
<Pulpie> Right I keep seeing "its just how it is in ruby"
<Pulpie> but no real reason
Kricir has joined #ruby
edgarjs is now known as edgarjs_afk
<Pulpie> just seems like weird logic to me
cocotton has quit [Remote host closed the connection]
<jottr> wallerdev: DouweM Could I use rspec without rails?
<wallerdev> >> p local_variables; if false; x = 1; end
<eval-in_> wallerdev => [:x] ... (https://eval.in/168832)
<jhass> jottr: of course
<DouweM> jottr: for sure! RSpec has nothing to do with Rails per se
<wallerdev> magic
earthquake has joined #ruby
<jottr> hah
Zenigor has quit [Remote host closed the connection]
<DouweM> Pulpie: what are you having trouble with? variables defined in if being aailable outside them?
<Pulpie> yes
<jottr> thx
Shidash has joined #ruby
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
cocotton_ has joined #ruby
RaCx has joined #ruby
<Pulpie> am I just beating the garbage collector?
<Pulpie> before it can clean up.
<wallerdev> lolol
<wallerdev> no
<DouweM> Pulpie: but you would think it made sense for a variable to be set to nil before, to be available inside the if and overwritable inside the if?
<jhass> Pulpie: the garbage collector cleans up objects, not variables
<Pulpie> variables are objects...
<DouweM> Pulpie: I mean, you need that to do conditional variable assigment. So why would there be a difference between those?
<Pulpie> aren't they?
<DouweM> Pulpie: variables refer to objects
iceden has quit [Ping timeout: 252 seconds]
<jhass> Pulpie: no, they are references to objects
stytown has quit [Quit: stytown]
edgarjs_afk is now known as edgarjs
<Pulpie> so if I have a reference to an object, the only time the object will be cleaned is if the reference falls out of scope right?
<jhass> if all references to it do
<Pulpie> right
<wallerdev> the local variable inside your if statement exists as soon as your method starts running
<Pulpie> makes sense, thats basic
dc_ has joined #ruby
<wallerdev> its not created inside the if statement
jheg has joined #ruby
<Pulpie> why doesn't this work then?
dik_dak has joined #ruby
dc_ has quit [Remote host closed the connection]
<Pulpie> like obviously b doesn't exist
<jhass> they are created on assignment, not on access
AlSquire has joined #ruby
ra4king2 is now known as ra4king
<Pulpie> right
klaut has joined #ruby
<Pulpie> http://ideone.com/owSIw3 so why does that work?
dc_ has joined #ruby
<Pulpie> assignment never happens
<DouweM> because accoring to the syntax tree, it's assigned to
<wallerdev> it sees the assignment when it parses the method and creates the local variable
sharpmachine has joined #ruby
<sharpmachine> I'm using simple form and have a Service model and a Listing model. They are associated, but I'm trying to add a service field to the new listing form using <%= f.association :service %> but I'm getting back undefined method `service_id' for #<Listing:0x007fa063643830>
<jhass> sharpmachine: #rubyonrails
<wallerdev> >> p local_variables; if false; b = 10; end
<eval-in_> wallerdev => [:b] ... (https://eval.in/168837)
<wallerdev> it knows about b because it knows it is assigned to
<wallerdev> >> p local_variables; if false; puts b; end
<eval-in_> wallerdev => [] ... (https://eval.in/168838)
<DouweM> Pulpie: all assignment is the same to the parser, it doesn't evaluate the conditional
<wallerdev> it sees there its not assigned to and doesnt create it
<sharpmachine> I already asked there and no one is answering
sunya7a has joined #ruby
<jhass> sharpmachine: how long did you wait?
Zenigor has joined #ruby
<Pulpie> DouweM: but it does when assigning the value or b wouldn't be nil
<sharpmachine> Like a million hours
gruz0[russia] has joined #ruby
freggles has quit [Ping timeout: 248 seconds]
<DouweM> Pulpie: it does during evaluation, obviously
Fusl has joined #ruby
<Pulpie> so ruby parses the code twice, once before and once while executing?
<DouweM> why would it need to parse twice?
<jhass> no, it builds an AST and runs that
<wallerdev> lol
jaimef has quit [Excess Flood]
<Pulpie> evaluation then runtime
ged_ is now known as ged
<wallerdev> it parses it and then it runs it
<DouweM> and how would you implement this in practice? you'd specialcase a pointless literal `false`, but what would you do for anything else that could be the condition?
<wallerdev> it doesnt run it as it parses the script
chipotle has joined #ruby
<DouweM> during parsing it keeps track of variables that may be assigned
shredding has quit [Ping timeout: 264 seconds]
<Pulpie> ok
ramfjord has joined #ruby
TDJACR has quit [Ping timeout: 252 seconds]
<Pulpie> I mean I've seen code like this in the wild.
<Pulpie> which is why I bring it up
<DouweM> the separate step of specifying the type and assigning null which you need in, say, C before an if-statement wouldn't make sense in Ruby, so this is the only logical way you can have assignment inside if/else and use the variable outside
jaimef has joined #ruby
<jheg> Met a client this evening that wants a website building for their cake company. They need it to be a CMS so they can add testimonials, images to a gallery, news, articles & upcoming events amongst other editing capabilities. I immediately think 'wordpress' for this type of thing but do you guys use ruby for this type of project?
sunya7a_ has joined #ruby
Eiam has joined #ruby
TDJACR has joined #ruby
jonno11 has joined #ruby
whyy has joined #ruby
sunya7a has quit [Ping timeout: 272 seconds]
<momomomomo> jheg: just from a quick google, it looks like htere are a lot more ruby CMS' than there were a year ago
RaCx has quit [Quit: Computer has gone to sleep.]
<momomomomo> so, maybe?
<momomomomo> I'd probably do wordpress jheg
<benzrf> momomomomo: what kinda nick is momomomomo
<wallerdev> dont use refinerycms
<wallerdev> its awful
<momomomomo> what kinda nick is benzrf
<wallerdev> hope that helps
<wallerdev> id go with wordpress
<lemur> touche
<momomomomo> honestly, you can go so far with a quick theme and some customization on wp
<jheg> momomomomo: cool. I don't think there is anything wrong with wordpress but I feel like I'm cheating a little bit with WP
<momomomomo> themeforest.net - grab one with a decent license and customize / sell it
<momomomomo> lol cheating?
<jheg> oh well if it does the job best
x1337807x has joined #ruby
<lemur> Octopress if you want a custom blog.
<momomomomo> or umbraco or..
<pontiki> go directly with jekyll :)
finisherr has joined #ruby
nmokru has quit [Quit: nmokru]
<momomomomo> pontiki: ha, he said for a client :p
<momomomomo> or she
<jheg> Is jekyll a CMS?
<momomomomo> no
<pontiki> no
marr has quit [Ping timeout: 260 seconds]
<lemur> Static site generator
<pontiki> a blog-aware static site generator
<lemur> so probably not a good idea for non-techs
<jheg> what I thought
<pontiki> no
<momomomomo> I use jekyll for my shitty site: http://soryy.com
sleepee has quit [Quit: Leaving]
<finisherr> I’m moving from python to ruby since the ops team I’m on is all Ruby. Anyone have advice on what resources I should dive into to get started?
jottr_ has joined #ruby
<momomomomo> I have a bunch more posts to finish up :/
<finisherr> any favorite books?’
<lemur> that ^^^
smathieu has quit [Remote host closed the connection]
happytux_ is now known as happytux
cantonic has joined #ruby
whyy has quit [Ping timeout: 260 seconds]
<jheg> momomomomo: I don't mean cheating as such but I just feel like I'm hacking about a pre defined CMS that requires constant updating to avoid security flaws
<pontiki> programming ruby, 1.9 & 2.0 version
<pontiki> eloquent ruby
smathieu has joined #ruby
<jheg> and it seems perhaps a bit bloated?
<pontiki> confident ruby
Karpuragauram has joined #ruby
<momomomomo> jheg: security updates are a good thing; wordpress has nailed simple-ish CMS sites down pat
<lemur> versus building your own and custom making those same types of patches
<momomomomo> there's no arguing that
<momomomomo> unless this is an application
<pontiki> practial object-oriented design in ruby (aka POODR aka Sandi Metz's book)
<momomomomo> I see no reason to use anything but wordpress
Vivekananda_y510 has quit [Ping timeout: 244 seconds]
rezzack has quit [Quit: Leaving.]
<jheg> no not an app
<momomomomo> finisherr: the well grounded rubyist
jottr has quit [Ping timeout: 240 seconds]
<pontiki> i was getting to that!
<pontiki> :)
<momomomomo> :p
<finisherr> Thanks for the input
<pontiki> metaprogramming ruby to dig into the guts of ruby
fflush has joined #ruby
fflush has joined #ruby
<momomomomo> I'd recommend that after something like TWGR
dik_dak has quit [Remote host closed the connection]
earthquake has quit [Quit: earthquake]
<fflush> bonjour
<fflush> ca va?
<finisherr> Anyone read The Ruby Programming Language by O'Reilly?
earthquake has joined #ruby
yfeldblum has joined #ruby
<DouweM> pas mal, et toi?
charliesome has joined #ruby
<fflush> tres bien merci
RaCx has joined #ruby
RaCx has quit [Client Quit]
charliesome_ has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Remote host closed the connection]
wildroman2 has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<mozzarella> la baguette
<fflush> c’est quoi le probleme avec la baguette
<wallerdev> omelette du fromage
s3ri0us is now known as s3ri0us|away
agent_white has joined #ruby
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
<pontiki> momomomomo: agreed, probably *well* after
dik_dak has joined #ruby
<agent_white> Good afternoon everyone!
shredding has joined #ruby
<wallerdev> still morning
<agent_white> wallerdev: Good... day! :D
RaCx has joined #ruby
dik_dak has quit [Remote host closed the connection]
<wallerdev> its friday for me :)
<DouweM> nope, good evening agent_white
<wallerdev> no work tomorrow or friday :D
mordocai` has quit [Ping timeout: 240 seconds]
<agent_white> DouweM: Mmm... good life everyone!
<agent_white> :D
<DouweM> that works :)
closures999 has quit []
closures999 has joined #ruby
<DouweM> jhass: lol
<DouweM> jhass: that's a pretty good idea
pietr0 has quit [Quit: pietr0]
<agent_white> jhass: Hahah I was told that when I said good afternoon in another channel as well.
AlSquire has quit [Ping timeout: 240 seconds]
Aryasam has joined #ruby
RaCx has quit [Ping timeout: 244 seconds]
RaCx has joined #ruby
wildroman2 has joined #ruby
Shidash has quit [Ping timeout: 260 seconds]
closures999 has quit [Client Quit]
aspires has quit []
cocotton_ has quit [Remote host closed the connection]
jonahR has quit [Remote host closed the connection]
aspires has joined #ruby
StephenA1 has quit [Quit: StephenA1]
jonahR has joined #ruby
whyy has joined #ruby
AlSquire has joined #ruby
yakko has joined #ruby
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mehlah has quit [Quit: Leaving...]
cocotton has joined #ruby
djbkd has quit [Remote host closed the connection]
gruz0[russia] has quit [Quit: Leaving]
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tvw has joined #ruby
<nuby> anyone know why this is modifying the original? I almost have this working how I want, except that its modifying the original. http://repl.it/Uq3/6
jonahR has quit [Ping timeout: 244 seconds]
obscured has quit [Quit: leaving]
whyy has quit [Ping timeout: 255 seconds]
<jhass> nuby: because insert simply is defined to modify the receiver
<jhass> note that ruby is a pass by reference language
<jhass> passing an object to a method does _not_ copy it
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nuby> i was thinking telling it to use a clone would get around that?
<jhass> yes
<jhass> most people use the #dup method to clone objects
<benzrf> there are differences depending on what you're doing with it
earthquake has quit [Quit: earthquake]
Aryasam has quit [Quit: Bye]
virtualize has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
virtualize has joined #ruby
s3ri0us|away is now known as s3ri0us
jonahR has joined #ruby
<nuby> I did read the difference between the two, seems like clone is if you need to copy instance variables and extensions with it, but I dont need to do any of that here
earthquake has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Photism has joined #ruby
jonahR has quit [Remote host closed the connection]
jonahR has joined #ruby
jonno11 has joined #ruby
virtualize has quit [Remote host closed the connection]
RaCx has quit [Quit: Computer has gone to sleep.]
virtualize has joined #ruby
saarinen has quit [Quit: saarinen]
djbkd has joined #ruby
senayar has quit [Remote host closed the connection]
jonahR has quit [Ping timeout: 255 seconds]
ndrei_ has quit [Ping timeout: 255 seconds]
smathieu has quit [Remote host closed the connection]
kireevco has left #ruby [#ruby]
ndrei has quit [Ping timeout: 264 seconds]
smathieu has joined #ruby
Photism has quit [Quit: Leaving]
andrewjanssen has joined #ruby
shredding has joined #ruby
relix has joined #ruby
hgl____ has joined #ruby
stytown has joined #ruby
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
lemur has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
nanoyak has joined #ruby
relix has quit [Ping timeout: 252 seconds]
hgl____ has quit [Ping timeout: 272 seconds]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
alvaro_o has joined #ruby
wombo has joined #ruby
wombo has quit [Client Quit]
blackmesa has joined #ruby
yakko has quit [Read error: Connection reset by peer]
wombo has joined #ruby
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
lemur has joined #ruby
yfeldblum has joined #ruby
yakko has joined #ruby
earthquake has quit [Quit: earthquake]
cocotton has quit [Quit: Leaving...]
pietr0 has joined #ruby
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
CaptainJet has quit []
yfeldblu_ has joined #ruby
bradhe has quit [Remote host closed the connection]
virtualize has quit [Ping timeout: 244 seconds]
Zamerick has joined #ruby
zorak has quit [Ping timeout: 272 seconds]
benzine21 has quit [Remote host closed the connection]
virtualize has joined #ruby
maximski has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
rezzack has joined #ruby
stytown has quit [Quit: stytown]
s3ri0us has quit [Quit: Leaving...]
poindontcare has joined #ruby
fold has quit [Ping timeout: 240 seconds]
RaCx has joined #ruby
virtualize has quit [Remote host closed the connection]
virtualize has joined #ruby
yetanotherdave has quit [Ping timeout: 264 seconds]
Zebroid has joined #ruby
dik_dak has joined #ruby
zorak has joined #ruby
elux has joined #ruby
<elux> hello
charliesome has joined #ruby
<elux> is there a way for `bundler up` to tell me which dependency is causing the conflict..?
lemur has quit [Remote host closed the connection]
<elux> im upgrading a gem, and somewhere down the line some gem has required a new version of activesupport and its breaking down.. i'm trying to do a bundle up on a specific gem, with --verbose and its not the most helpful
kirun has joined #ruby
<jhass> elux: put the output and your .lock into a gist
sdouglas has joined #ruby
ekinmur has quit []
qaumvy has quit [Read error: Connection reset by peer]
zB0hs has joined #ruby
TorpedoSkyline has joined #ruby
mehlah has joined #ruby
goyox86 has quit [Ping timeout: 252 seconds]
}SoMBrA{ has joined #ruby
virtualize has quit [Ping timeout: 252 seconds]
ekinmur has joined #ruby
XenoWolf has joined #ruby
XenoWolf has quit [Client Quit]
<jhass> protip: you can add multiple files to a single gist
havenwood has quit [Remote host closed the connection]
smathieu has quit [Remote host closed the connection]
alec-c4 has joined #ruby
<jhass> what do you try to update?
<elux> pressly-data
<elux> which is a private repo
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
smathieu has joined #ruby
havenwood has joined #ruby
SouL____ has quit [Ping timeout: 240 seconds]
einarj has joined #ruby
bradhe has joined #ruby
Photism has joined #ruby
jobewan has quit [Quit: Leaving]
DrShoggoth has joined #ruby
<jhass> hm, try bundle update activemodel pressly-data
lemur has joined #ruby
<elux> i added gem 'activemodel', '4.0.4' to the Gemfile and that seemed to do it
yfeldblu_ has quit [Ping timeout: 248 seconds]
<elux> thx dude
lemur has quit [Remote host closed the connection]
donnoc has joined #ruby
decoponio has quit [Quit: Leaving...]
JoshGlzBrk has joined #ruby
<nuby> hey jhass, thanks for pointing me in the right direction about how ruby "copies" stuff. Its good I found that out now in a simple thing, and not in some big thing where it would've made me insane.
havenwood has quit [Ping timeout: 264 seconds]
<nuby> its a little strange though. gotta get used to it
lemur has joined #ruby
timonv has joined #ruby
Zenigor has quit [Remote host closed the connection]
Zenigor has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
Rydekull_ is now known as Rydekull
andrewjanssen has quit [Quit: Leaving...]
Rydekull has quit [Changing host]
Rydekull has joined #ruby
dangerousdave has joined #ruby
moted has quit [Quit: moted]
setra has joined #ruby
diegoviola has joined #ruby
benzine21 has joined #ruby
nmokru has joined #ruby
Dreamer3 has joined #ruby
bradhe has quit [Remote host closed the connection]
duncannz has joined #ruby
iceden has joined #ruby
dc_ has quit [Remote host closed the connection]
duncannz has quit [Read error: Connection reset by peer]
jarto has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
benzine21 has quit [Ping timeout: 240 seconds]
moted has joined #ruby
jheg has quit [Quit: jheg]
benzine21 has joined #ruby
bradhe has joined #ruby
momomomomo has quit [Quit: momomomomo]
timonv has quit [Remote host closed the connection]
goyox86 has joined #ruby
jheg has joined #ruby
momomomomo has joined #ruby
phutchins has quit [Ping timeout: 272 seconds]
j_mcnally has joined #ruby
iceden has quit [Ping timeout: 252 seconds]
benzine21 has quit [Ping timeout: 240 seconds]
wombo has quit [Quit: wombo]
qba73 has quit []
sharpmachine has quit [Remote host closed the connection]
relix has joined #ruby
lotherk has left #ruby [#ruby]
Dreamer3 has quit [Ping timeout: 252 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
tjr9898 has joined #ruby
djbkd has quit [Remote host closed the connection]
dangerousdave has joined #ruby
agjacome has quit [Quit: leaving]
mattmcclure has joined #ruby
kireevco has joined #ruby
RaCx_ has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.3]
RaCx has quit [Ping timeout: 252 seconds]
RaCx_ is now known as RaCx
Dreamer3 has joined #ruby
stytown has joined #ruby
Dreamer3 has quit [Max SendQ exceeded]
Dreamer3 has joined #ruby
Dreamer3 has quit [Max SendQ exceeded]
gregf has joined #ruby
relix has quit [Ping timeout: 248 seconds]
Dreamer3 has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
jottr_ has quit [Ping timeout: 252 seconds]
msull92 has joined #ruby
zigomir has joined #ruby
inkblots has joined #ruby
nmokru has quit [Quit: nmokru]
nmokru has joined #ruby
Bira_ has quit []
einarj has quit [Remote host closed the connection]
amargherio has quit [Ping timeout: 272 seconds]
danijoo has quit [Read error: Connection reset by peer]
stytown has quit [Quit: stytown]
danijoo has joined #ruby
senayar has joined #ruby
msull92 has quit [Quit: Computer has gone to sleep.]
iceden has joined #ruby
x1337807x has joined #ruby
Hobogrammer has joined #ruby
mrmargolis has joined #ruby
smathieu has quit [Remote host closed the connection]
RaCx has quit [Quit: Computer has gone to sleep.]
smathieu has joined #ruby
elux has left #ruby [#ruby]
Zai00 has joined #ruby
elaptics`away is now known as elaptics
shredding has quit [Quit: shredding]
sigurding has joined #ruby
goyox86 has quit [Ping timeout: 248 seconds]
chrishough has joined #ruby
dc_ has joined #ruby
sleepee has joined #ruby
Nekka has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
havenwood has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
<Nekka> Can anyone here help me with pik. I have set it up and have the bins in the list, but it refuses to swap to a different path when I do pik use ruby-... even when using --default
ppinto has quit [Ping timeout: 260 seconds]
rebelshrug has joined #ruby
djbkd has joined #ruby
<Nekka> If you manage to help me, I'll give you a cookie
nanoyak has quit [Quit: Computer has gone to sleep.]
shredding has joined #ruby
mjsmith2 has quit [Remote host closed the connection]
mjsmith2 has joined #ruby
bmurt has quit []
polyidus has joined #ruby
polyidus has quit [Max SendQ exceeded]
zigomir has quit [Remote host closed the connection]
smathieu has quit [Remote host closed the connection]
zigomir has joined #ruby
smathieu has joined #ruby
smathieu has quit [Read error: Connection reset by peer]
sunya7a_ has quit [Ping timeout: 272 seconds]
smathieu has joined #ruby
jord has joined #ruby
tier has quit []
sunya7a has joined #ruby
<benzrf> Nekka: enough sites give me cookies already geez
maximski has quit [Ping timeout: 272 seconds]
momomomomo has quit [Quit: momomomomo]
<Nekka> I have choc chip
<havenwood> cookies are a sometimes food
maximski has joined #ruby
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
zB0hs has quit [Read error: Connection reset by peer]
eka has joined #ruby
zigomir has quit [Ping timeout: 252 seconds]
ziyadb has quit [Quit: Connection closed for inactivity]
relix has joined #ruby
Zamerick has quit [Ping timeout: 260 seconds]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lemur has quit [Remote host closed the connection]
<havenwood> chunky bacon
p0sixpscl has joined #ruby
sunya7a_ has joined #ruby
chipotle has quit [Quit: cya]
Ankhers has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
sunya7a has quit [Ping timeout: 255 seconds]
<havenwood> Nekka: can you gist the output of `pik list -v` and `set path`?
gregf has quit [Quit: WeeChat 0.4.3]
wildroman2 has quit [Remote host closed the connection]
<havenwood> Nekka: Which Ruby is hijacking? Used other installers?
Dreamer3 has quit [Quit: Computer has gone to sleep.]
<Nekka> => Ruby 1.8.7 C:\ruby187\bin ruby-1.9.3 same ruby-2.0.0 etc
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Nekka> 1.8.7 takes priority and each was installed through RubyInstaller
gregf has joined #ruby
<havenwood> Nekka: so it's always 1.8.7 no matter what you set pik to?
<Nekka> yup
jottr_ has joined #ruby
CaptainJet has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bamyyyooo14335 has joined #ruby
RaCx has joined #ruby
lemur has joined #ruby
<havenwood> doesn't look like there's a #pik channel ;(
<Nekka> that's why I tried here
wildroman2 has joined #ruby
<havenwood> Nekka: maybe an issue ticket on the Githubs would be the best recourse
<vt102> Why does this not exit after one pass through the loop? while defined?(foo).nil? ; foo=1 ; end
nanoyak has joined #ruby
benzrf is now known as benzrf|offline
bartdorsey has left #ruby ["Textual IRC Client: www.textualapp.com"]
<wallerdev> wouldnt foo be defined by the time it gets to that loop
earthquake has joined #ruby
treehug88 has quit []
jaimef has quit [Excess Flood]
DaniG2k has joined #ruby
bradhe has joined #ruby
blackmesa has joined #ruby
<havenwood> vt102: while defined?(foo.nil?); foo = 1 end
mehlah has quit [Quit: Leaving...]
<wallerdev> loll
<havenwood> vt102: if it isn't `defined?`, you define it, so then it fails your `nil?` check
davispuh has joined #ruby
<vt102> havenwood: I'm getting an infinite loop with mine in 1.9.3. I can ^C, up arrow, and run it again, and it exits immediately.
jaimef has joined #ruby
<havenwood> er, nvm me
<vt102> Your loops works as expected. I don't understand why mine doesn't.
<havenwood> vt102: foo(bar).baz? vs foo(bar.baz?)
Zenigor has quit [Remote host closed the connection]
mconnolly has quit [Ping timeout: 272 seconds]
paulfm has quit []
<vt102> Specifically, defined?(foo) returns nil if not defined, not nil if defined. Thus, the defined?(foo).nil? check. But, why isn't foo defined the second time through the loop?
<wallerdev> i think everytime it restarts the while loop it will undefine things in that scope
<vt102> ah, scope, yeah
bamyyyooo14335 has quit [Quit: bamyyyooo14335]
<vt102> Hmm...if that's it, though, when why can I ^C it and have foo defined?
razum2um1 has quit [Read error: Connection reset by peer]
mattp_ has joined #ruby
NotAnUnicorn has joined #ruby
<havenwood> vt102: but...: defined?(foo).nil?
razum2um has joined #ruby
<havenwood> vt102: compare to: defined?(foo.nil?)
<havenwood> vt102: defined? foo.nil?
mattp_ has quit [Client Quit]
<havenwood> ^ as you'd most likely want to write it
coffeina has joined #ruby
setra has quit [Ping timeout: 240 seconds]
<wallerdev> why not just if foo
mattp_ has joined #ruby
<havenwood> what is the #nil? meant for?
<havenwood> wallerdev: yeah
cmoneylulz has quit [Remote host closed the connection]
<wallerdev> no reason to use defined? here or a loop lol
<havenwood> defined? foo
Azure has quit [Quit: Blue Sky Fish]
<vt102> havenwood: Sure, but I don't understand what's *WRONG* with how I wrote it.
razum2um has quit [Read error: Connection reset by peer]
<havenwood> vt102: ah, gotcha
advorak has joined #ruby
* havenwood goes in search of caffeine
razum2um has joined #ruby
mois3x has joined #ruby
<wallerdev> yeah its a bit confusing haha
<vt102> Scope sounded correct, but if I ^C the loop and check foo, it's defined.
<vt102> So why isn't the loop exiting?
<havenwood> wallerdev: sometimes it's hard to know whether to show how to do it wrong or just say don't do that :P
SBoolean has quit [Remote host closed the connection]
tvw has quit []
saarinen has joined #ruby
<wallerdev> i think when the while loop starts, foo isnt defined, and defined checks for that, and after the script has completed, even if the while loop didnt run, foo will be defined
<vt102> Or, maybe it is scope, in which case why is it defined when I ^C? ;-)
tvw has joined #ruby
<wallerdev> so after you control+c foo will be defined
<vt102> I don't think so: defined?(foo).nil? ; defined?(foo) ==> true ; nil
sleepee has quit [Quit: Leaving]
<wallerdev> like if you did while true; sleep 10; foo=1; end
<wallerdev> then ctrl+c
<wallerdev> at that point foo is defined
Azure has joined #ruby
jonno11 has joined #ruby
momomomomo has joined #ruby
chrishough has quit [Quit: chrishough]
benzrf|offline is now known as benzrf
wombo has joined #ruby
brasten has quit [Ping timeout: 272 seconds]
}SoMBrA{ has quit [Quit: This computer has gone to sleep]
<NotAnUnicorn> not sure if'm allowed to ask rails question in ruby channel but, What is the best rails web series / youtube / screencast / tutorial / thing to watch (or read)?
DaniG2k has quit [Quit: leaving]
jimbow has quit [Quit: jimbow]
alec-c4 has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
<vt102> My guess is: it is scope, the loop is rightly infinite the way I have written it. The reason foo is defined after ^C is just an artefact of it being in irb.
jimbow has joined #ruby
hgl____ has joined #ruby
razum2um has quit [Quit: Leaving.]
<wallerdev> i think the reason it exists after ctrl+c is because all locals are considered defined after that point
saarinen has quit [Quit: saarinen]
earthquake has quit [Quit: earthquake]
<wallerdev> and if you have x=y somewhere in your script it creates a local for it as soon as the script is parsed
freerobby has quit [Quit: Leaving.]
<wallerdev> but i guess defined? doesnt look at locals that are created in the current scope until theyre assigned to
<havenwood> NotAnUnicorn: There is a #rubyonrails channel. I've vote learn Ruby first! Some good resources here: https://www.ruby-lang.org/en/documentation/
Hanmac1 has joined #ruby
mikesplain has quit [Ping timeout: 264 seconds]
<havenwood> s/I've/I'd
razum2um has joined #ruby
sunya7a has joined #ruby
<wallerdev> >> begin; raise 'ok'; x=10; rescue; end; defined?(x)
<eval-in_> wallerdev => "local-variable" (https://eval.in/168872)
<wallerdev> like that
<NotAnUnicorn> havenwood: well i think i'm decent at least with ruby, i did some simple scripts with reddit api for myself, and made almost all the courses of ruby in codeacademy (not that is that much)
<havenwood> NotAnUnicorn: nice
sunya7a_ has quit [Ping timeout: 260 seconds]
Hanmac has quit [Ping timeout: 272 seconds]
<pontiki> NotAnUnicorn: most people point to michael hartl's tutorial: http://www.railstutorial.org
hgl____ has quit [Ping timeout: 240 seconds]
jimbow has quit [Client Quit]
ldnunes has quit [Quit: Leaving]
Hanmac has joined #ruby
msull92 has joined #ruby
<havenwood> NotAnUnicorn: the folk who did the current tryruby.org have a Rails version: https://www.codeschool.com/courses/rails-for-zombies-redux
<pontiki> NotAnUnicorn: also, if you're having trouble getting into #rubyonrails channel, you have register a nick first and identify to nickserv
jackneill has quit [Ping timeout: 264 seconds]
* Nilium stomps around angrily about the continued existence of Rails
<pontiki> it seems that channel is a target for spam/griefers/trolls
<shevy> lol
<havenwood> NotAnUnicorn: Ever looked at Sinatra/NYNY/Hobbit or anything along the lines of other Rack frameworks besides Rails?
claymore has quit [Quit: Leaving]
<havenwood> NotAnUnicorn: That might be worth doing as well. :)
<NotAnUnicorn> pontiki: i started with it that tut, but i have problems with reading such long things without losing concentration
<shevy> haha
<havenwood> NotAnUnicorn: Lotus would be fun to learn, I need to do that.
<pontiki> give the codeschool one a try, i didn't know they had rails
Hanmac1 has quit [Ping timeout: 252 seconds]
<shevy> I have trouble reading boring shit as well
zorak has quit [Ping timeout: 264 seconds]
<Nilium> That's why I just read documentation.
<Nilium> Because at least it's new and exciting.
<shevy> I try to write my documentation like CSI
<Nilium> Like when I was reading shm_open the other day and going "oooooooo new toy"
<shevy> murder and suspense must be an integral component
jonno11 has quit [Quit: Textual IRC Client: www.textualapp.com]
<Nilium> *the manpage for shm_open
<shevy> pfft manpages
<shevy> say hi to the 1960ies
<Nilium> Shut up shevy
<NotAnUnicorn> havenwood: i already did railsforzombies but the rest of code shcool stuff are paid and they is not exactly cheap. Also i did check sinatra but didn't find much info about it at the time
<pontiki> the scripts over at railsbridge are pretty good too, but they're really intended as guides for live sessions
* Nilium stabs shevy
RaCx has quit [Ping timeout: 272 seconds]
<Nilium> shutupshutupshutupshutupshutupshutupshutup
* Nilium stabs harderer
pasties has joined #ruby
<shevy> wow you really get going
chipotle has joined #ruby
<Nilium> In my previous life, I was a piece of mining equipment
<havenwood> NotAnUnicorn: Lotus seems really nicely designed.
RaCx has joined #ruby
<havenwood> NotAnUnicorn: Doing apps or apis?
<advorak> This is probably more an xdotool question, but maybe somebody is familiar: I'm using the 'xdo' gem to send XDo::Keyboard.key "ctrl+p" to a vnc session, but this command is interpreted by the vnc server as "pp" ... any hints?
<havenwood> or other
bamyyyooo14335 has joined #ruby
<advorak> it works properly on my main x11 session ..
razum2um has quit [Quit: Leaving.]
msull92 has quit [Ping timeout: 260 seconds]
<NotAnUnicorn> havenwood: learning
<vt102> I posted a stackoverflow on that defined? issue if you want to post there.
<vt102> havenwood et al.
mijicd has joined #ruby
<wallerdev> i think ive answered a total of like 2 questions on stackoverflow
<Nilium> Maybe I should play some more Baldur's Gate.
<wallerdev> and asked 0 lol
agent_white has quit [Quit: bbl]
cantonic has quit [Ping timeout: 244 seconds]
ndrei has joined #ruby
<havenwood> vt102: If you want to make something a la Basecamp, Rails is a great headstart. There's a lot of demands for APIs though. Might be worth it to learn more raw Rack plus one or two of its microframeworks, like Sinatra, Hobbit, Cuba, Ramaze or Scorched.
kireevco has left #ruby [#ruby]
<havenwood> vt102: Take a look a Grape for a grab bag of stuff you might want.
<vt102> havenwood: that was NotAnUnicorn
LadyRainicorn has quit [Quit: Bye]
<havenwood> vt102: so sorry >.>
<havenwood> i'm in a haze today
<vt102> No worries!
<havenwood> NotAnUnicorn: ^
<havenwood> vt102: i was just hitting <tab> :O
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kireevco has joined #ruby
<pontiki> rails-api is a pretty good subset if you need lots of models and persistence
<havenwood> NotAnUnicorn: Be a unicorn and be one of the first Lotus devs, done.
udoprog has quit [Ping timeout: 245 seconds]
cmoneylulz has joined #ruby
nickenchuggets has quit [Ping timeout: 240 seconds]
<pontiki> it needs some smoothing out
bluenemo has joined #ruby
<havenwood> pontiki: seems pretty elegant, but complicated to learn to piece together
<pontiki> it could be fun to devote some time to it
wombo has quit [Quit: wombo]
udoprog has joined #ruby
Deele has quit [Ping timeout: 255 seconds]
razum2um has joined #ruby
<havenwood> pontiki: but hardly daunting compared to rails
ndrei has quit [Ping timeout: 252 seconds]
<pontiki> i never found rails daunting
* havenwood sulks
<pontiki> but rails was hardly my first framework
coffeina has quit [Quit: Wychodzi]
<havenwood> pontiki: aye, it was my first
<pontiki> and having put together web apps without any frameworks at all, it seems rather nice
ndrei has joined #ruby
<havenwood> roger that
<havenwood> pontiki: also Rails now is a lot larger bit to bite off than Rails of days gone by
<pontiki> this is so
yakko has quit [Read error: Connection reset by peer]
<pontiki> my first run at it was with DHH's first editiion, an 1.x rails
<shevy> the good old days
toretore has joined #ruby
<shevy> aye
<shevy> when it still used to be cool
<havenwood> pontiki: i came in as 3.0 was being released
<vt102> BTW, is there a decent way to search for code operator? How does one search for, say, ||=? Google doesn't seem to pay attention to that.
<pontiki> there is a web site for searching symbols....
<pontiki> otherwise for ruby, go to the online pickaxe book
cocotton has joined #ruby
olivier_bK has quit [Ping timeout: 240 seconds]
Nekka has quit [Quit: Leaving]
<pontiki> online version of programming ruby, "the pickaxe book": http://ruby-doc.com/docs/ProgrammingRuby/
<vt102> It's a general problem. There used to be a site you could search only in files with a certain extension, like just in file ending in .c. I found it very useflu, but it's gone AFAIK
<pontiki> a web site?
senayar has quit [Remote host closed the connection]
yakko has joined #ruby
fflush has quit [Quit: fflush]
codephobic has joined #ruby
<codephobic> hi
TorpedoSkyline has joined #ruby
<wallerdev> hi
m8 has quit [Quit: Sto andando via]
<codephobic> anybody tried using Compass (sass) to watch a folder shared over samba, on ubuntu 14.04?
ndrei_ has joined #ruby
<codephobic> I'm having a permissions problem with a ruby file (sass/util.rb), giving me a "operation not permitted" EPERM error, when I try "Compass watch htdocs"
RaCx has quit [Quit: Computer has gone to sleep.]
adac has quit [Ping timeout: 240 seconds]
<shevy> vt102 you mean krugle?
alexju has quit [Remote host closed the connection]
timonv has joined #ruby
yubrew has quit [Remote host closed the connection]
senayar has joined #ruby
chrishough has joined #ruby
s3ri0us has joined #ruby
<havenwood> codephobic: win?
buub has quit [Ping timeout: 248 seconds]
jheg has quit [Quit: jheg]
<codephobic> havenwood, nope ubuntu, both for the samba server and the user
<havenwood> hrmmm
dangerousdave has quit [Ping timeout: 248 seconds]
<codephobic> I just use samba so that my win machine has access to the folder, for when I need to use photoshop/illustrator
<codephobic> I've got a convoluted workflow, which works perfectly fine for all my other work, just not for Compass.
<havenwood> codephobic: RVM?
<codephobic> I had issues with the whole install too
<codephobic> yep
<havenwood> codephobic: ^ maybe related?
<codephobic> followed a tutorial on google, but the sudo gem install compass didn't work, had to drop sudo and just install with user permissions.
codeurge has quit [Quit: Sleep.]
zenspider has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 240 seconds]
<codephobic> very probably, but my googling leads me to believe that others too simply use gem install compass rather than sudo it.
saarinen has joined #ruby
<codephobic> so ... not 100% sure.
<havenwood> codephobic: vm fix-permissions
<havenwood> rvm*
jhass is now known as jhass|off
<codephobic> ah
<codephobic> I'll give that a try now :)
<havenwood> codephobic: might try #rvm if that ^ doesn't work
<codephobic> ah, k
<codephobic> thanks :)
<havenwood> np
RaCx has joined #ruby
<havenwood> codephobic: but do drop sude, user-install is recommended
<havenwood> sudo*
<havenwood> gosh i'm error prone today :(
BadQuanta has quit [Ping timeout: 240 seconds]
<codephobic> no worries mate, my eyes auto-correct ;)
<havenwood> :)
<codephobic> think I'm gonna have to try #
<codephobic> #rvm
saarinen has quit [Client Quit]
<codephobic> the fix-permissions didn't resolve the issue.
<codephobic> thanks for the help though, hadn't heard of the fix-permissions feature before
<codephobic> :)
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
axl_ has joined #ruby
zenspider has joined #ruby
bluenemo has quit [Quit: Verlassend]
cmoneylulz has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 272 seconds]
saarinen has joined #ruby
NotAnUnicorn has quit [Quit: Page closed]
bradleyprice has quit [Remote host closed the connection]
senayar has quit [Ping timeout: 255 seconds]
tjr9898 has quit [Remote host closed the connection]
wildroman2 has quit [Ping timeout: 272 seconds]
WillAmes has quit [Ping timeout: 264 seconds]
saarinen has quit [Client Quit]
tjr9898 has joined #ruby
saarinen has joined #ruby
moritzs has joined #ruby
sailias has quit [Quit: Leaving.]
jonahR has joined #ruby
edgarjs is now known as edgarjs_afk
moritzs has quit [Max SendQ exceeded]
moritzs has joined #ruby
cocotton_ has joined #ruby
cocotton_ has quit [Remote host closed the connection]
codeurge has joined #ruby
smathieu has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
inkblots has quit [Remote host closed the connection]
nmokru has quit [Quit: nmokru]
dblessing has quit [Quit: dblessing]
cocotton has quit [Ping timeout: 260 seconds]
Dreamer3 has joined #ruby
maestrojed has joined #ruby
nateberkopec has quit [Quit: Leaving...]
edgarjs_afk is now known as edgarjs
stytown has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
mrmargolis has quit [Remote host closed the connection]
mjsmith2 has quit [Remote host closed the connection]
iswell has joined #ruby
smathieu has joined #ruby
ekinmur has quit []
nmokru has joined #ruby
Guest3702 has quit [Ping timeout: 245 seconds]
razum2um has quit [Quit: Leaving.]
sigurding has quit [Quit: sigurding]
stytown has quit [Quit: stytown]
RealMarc has joined #ruby
lemur has quit [Remote host closed the connection]
yubrew has joined #ruby
eka has quit [Read error: Connection reset by peer]
eka has joined #ruby
riotjone_ has joined #ruby
havenwood has quit [Remote host closed the connection]
zorak has joined #ruby
axl_ has quit [Quit: axl_]
yubrew has quit [Ping timeout: 252 seconds]
mijicd has quit [Remote host closed the connection]
eka has quit [Read error: Connection reset by peer]
riotjones has quit [Ping timeout: 244 seconds]
volk_ has quit [Quit: volk_]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tjr9898 has quit [Remote host closed the connection]
Shidash has joined #ruby
razum2um has joined #ruby
Karpuragauram has quit [Ping timeout: 244 seconds]
Zebroid has quit [Remote host closed the connection]
tjr9898 has joined #ruby
bradleyprice has joined #ruby
eka has joined #ruby
tjr9898 has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
wildroman2 has joined #ruby
nickenchuggets has joined #ruby
donnoc has quit [Quit: WeeChat 0.4.3]
jaimef has quit [Excess Flood]
ndrei has quit [Ping timeout: 255 seconds]
ndrei_ has quit [Ping timeout: 260 seconds]
edgarjs is now known as edgarjs_afk
jamto11_ has joined #ruby
jaimef has joined #ruby
nanoyak has joined #ruby
spider-mario has quit [Remote host closed the connection]
_main_ has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
codephobic has quit [Ping timeout: 244 seconds]
kirun has quit [Quit: Client exiting]
__main__ has quit [Ping timeout: 240 seconds]
Dreamer3 has quit [Ping timeout: 244 seconds]
Zai00 has quit [Quit: Zai00]
danijoo has quit [Read error: Connection reset by peer]
hobodave has quit [Ping timeout: 252 seconds]
_main_ is now known as __main__
danijoo has joined #ruby
Dreamer3 has joined #ruby
GriffinHeart has joined #ruby
jord has quit [Quit: Connection closed for inactivity]
jaimef has quit [Excess Flood]
CaptainJet has quit [Ping timeout: 244 seconds]
CaptainJet has joined #ruby
meeko has quit []
udoprog has quit [Ping timeout: 272 seconds]
GriffinHeart has quit [Ping timeout: 252 seconds]
jaimef has joined #ruby
earthquake has joined #ruby
dc_ has quit [Remote host closed the connection]
Pulpie has left #ruby [#ruby]
Kricir has quit [Remote host closed the connection]
Kricir has joined #ruby
dik_dak has quit [Quit: Leaving]
Karpuragauram has joined #ruby
robertodecurnex has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
Kricir has quit [Ping timeout: 255 seconds]
msull92 has joined #ruby
StephenA1 has joined #ruby
bstrie has joined #ruby
momomomomo has quit [Quit: momomomomo]
gattuso has quit [Read error: Connection reset by peer]
endash has quit [Quit: endash]
Shidash1 has joined #ruby
freerobby has joined #ruby
bradhe has quit [Remote host closed the connection]
SilverKey has quit [Quit: Halted.]
theharshest has joined #ruby
Shidash has quit [Ping timeout: 260 seconds]
nateberkopec has quit [Quit: Leaving...]
sdouglas has quit [Remote host closed the connection]
Zebroid has joined #ruby
ndrei has joined #ruby
ndrei_ has joined #ruby
sdouglas has joined #ruby
Shidash has joined #ruby
vifino has quit [Quit: Me sais Laptop sleepy.]
SCHAAP137 has quit [Remote host closed the connection]
St_Marx has quit [Quit: Ex-Chat]
Shidash1 has quit [Ping timeout: 244 seconds]
sdouglas_ has joined #ruby
Soda has joined #ruby
j_mcnally has quit [Ping timeout: 260 seconds]
sdouglas has quit [Ping timeout: 255 seconds]
DrShoggoth has quit [Ping timeout: 264 seconds]
EasyCo has quit [Quit: Connection closed for inactivity]
Wolland has quit []
andrewjanssen has joined #ruby
aniM has joined #ruby
kevind has quit [Quit: kevind]
earthquake has quit [Quit: earthquake]
kaiserpathos has joined #ruby
wildroman2 has quit [Remote host closed the connection]
St_Marx has joined #ruby
earthquake has joined #ruby
<theharshest> I'm not able to get rid of "Could not load 'active_record/connection_adapters/_adapter'. Make sure that the adapter in config/database.yml is valid. If you use an adapter other than 'mysql', 'mysql2', 'postgresql' or 'sqlite3' add the necessary adapter gem to the Gemfile."
Spami has quit [Read error: Connection reset by peer]
kaiserpathos has quit [Client Quit]
ClockCat has joined #ruby
Spami has joined #ruby
<ClockCat> !balance
ClockCat has left #ruby ["Leaving"]
j_mcnally has joined #ruby
maximski has quit []
jamto11_ has quit [Remote host closed the connection]
yubrew has joined #ruby
smathieu has quit [Remote host closed the connection]
chipotle has quit [Quit: cya]
smathieu has joined #ruby
Shidash1 has joined #ruby
hgl____ has joined #ruby
iswell has quit [Remote host closed the connection]
stytown has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
renier_ is now known as renier
enebo has quit [Quit: enebo]
Shidash has quit [Ping timeout: 248 seconds]
britneywright has joined #ruby
hgl____ has quit [Ping timeout: 244 seconds]
DrShoggoth has joined #ruby
iswell has joined #ruby
klaut has quit [Remote host closed the connection]
stytown has quit [Client Quit]
tvw has quit []
TorpedoS_ has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
TorpedoSkyline has quit [Read error: Connection reset by peer]
LiohAu has quit [Ping timeout: 272 seconds]
aniM has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
<pontiki> theharshest: sounds like something for #rubyonrails
jord has joined #ruby
timonv has joined #ruby
msull92_ has joined #ruby
msull92_ has quit [Client Quit]
nfk has quit [Quit: yawn]
earthquake has quit [Quit: earthquake]
lemur has joined #ruby
jottr_ has quit [Ping timeout: 248 seconds]
msull92_ has joined #ruby
earthquake has joined #ruby
LiohAu has joined #ruby
mrmargolis has joined #ruby
iswell has quit [Ping timeout: 244 seconds]
mrmargolis has quit [Read error: Connection reset by peer]
mrmargolis has joined #ruby
timonv has quit [Ping timeout: 248 seconds]
Darkchaos has quit [Ping timeout: 248 seconds]
mrmargol_ has joined #ruby
Eyes has quit [Ping timeout: 252 seconds]
lemur has quit [Ping timeout: 248 seconds]
cmoneylulz has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.3]
charliesome has quit [Ping timeout: 244 seconds]
sdwrage has joined #ruby
opus has joined #ruby
mrmargo__ has joined #ruby
mrmargolis has quit [Ping timeout: 248 seconds]
phoo1234567 has quit [Remote host closed the connection]
msull92_ has quit [Quit: leaving]
charliesome has joined #ruby
msull92_ has joined #ruby
ephemerian has quit [Ping timeout: 260 seconds]
smathieu has quit [Remote host closed the connection]
bamyyyooo14335 has quit [Quit: bamyyyooo14335]
sdouglas_ has quit [Remote host closed the connection]
smathieu has joined #ruby
bamyyyooo14335 has joined #ruby
mrmargol_ has quit [Ping timeout: 272 seconds]
sdouglas has joined #ruby
CaptainJet has quit []
Takle has quit [Remote host closed the connection]
jimbow has joined #ruby
<opus> If someone could provide some simple ruby help for me related to modules and scoping =)
phinfonet has quit []
msull92_ has quit [Client Quit]
<opus> Basically there are two Polygon classes, one is placed under a Module the other is not. On runtime it throws a superclass mismatch error. Taking the second class and putting it under a module as well resolves the issue. I would love to be explained why this happens though.
<opus> love if it was explained*
<opus> As I understood it they shouldn't clash because one was placed under the module...
StephenA1 has quit [Quit: StephenA1]
finisherr has quit [Quit: finisherr]
chrishough has quit [Ping timeout: 272 seconds]
<bricker`work> opus: they shouldn't clash, you may be missing something, where else are you referencing the Polygon class?
sdouglas has quit [Ping timeout: 264 seconds]
<opus> That gets more into the realm of rails. I reference the Polygon class in two other modules (Origin / Destination) as a has_one and belongs_to relationship.
<opus> also in the seeds.rb file
<opus> Those are the only references and when I call them it's always Polygon, or GeoKit::Polygon.
<opus> bricker`work: also, thanks for the help.
<opus> Also, it only clashes in production. When loaded in dev mode there are no issues.
Takle has joined #ruby
Zenigor has joined #ruby
St_Marx has quit [Quit: Ex-Chat]
<bricker`work> opus: Gist your Gemfile please
ffranz has quit [Quit: Leaving]
edgarjs_afk is now known as edgarjs
duallain has quit [Read error: Connection reset by peer]
<bricker`work> My thought is that maybe you have a gem which already defines the Polygon class
<bricker`work> opus: before you open up ::Polygon, check to see if it already exists.
sdouglas has joined #ruby
StephenA1 has joined #ruby
Eyes has joined #ruby
<opus> When I run locally, irb: Polygon points to the right class and GeoKit::Polygon points to the correct class as well.
<opus> I'll remove that active record class and see if there is a Polygon, one sec.
<opus> irb(main):001:0> Polygon
<opus> NameError: uninitialized constant Polygon
<opus> from (irb):1
<opus> irb(main):002:0>
<opus> from /Users/x/.rbenv/versions/2.1.2/bin/irb:11:in `<main>'
zz_karupa is now known as karupa
<opus> When I remove my local "Polygon" file.
little_fu has joined #ruby
razum2um has quit [Quit: Leaving.]
chrishough has joined #ruby
<bricker`work> opus: check the same thing in production
Shidash1 has quit [Ping timeout: 255 seconds]
earthquake has quit [Quit: earthquake]
little_f_ has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
smathieu has quit [Remote host closed the connection]
<opus> In production it references the GeoKit::Polygon class
<opus> Any idea why production would change that?
<opus> Loading production environment (Rails 4.1.2)
<opus> irb(main):001:0> Polygon
<opus> => Geokit::Polygon
<opus> irb(main):002:0>
smathieu has joined #ruby
earthquake has joined #ruby
sdouglas has quit [Ping timeout: 244 seconds]
Takle has quit [Remote host closed the connection]
aspires has quit []
<bricker`work> opus: what about ::Polygon
<opus> same thing
<opus> What exactly does ::Polygon mean in contrast to Polygon?
little_fu has quit [Ping timeout: 264 seconds]
Zenigor has quit [Remote host closed the connection]
bamyyyooo14335 has quit [Quit: bamyyyooo14335]
jimbow has quit [Quit: jimbow]
elaptics is now known as elaptics`away
snath has quit [Ping timeout: 248 seconds]
nmokru has quit [Quit: nmokru]
<bricker`work> opus: it references the root namespace
jottr_ has joined #ruby
<bricker`work> opus: The only way ::Polygon could be the same as Geokit::Polygon is if you explicitly set it to be
razum2um has joined #ruby
karupa is now known as zz_karupa
bamyyyooo14335 has joined #ruby
TorpedoS_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<opus> Here is the output of me running ack "polygon" on my project.
AlSquire has quit [Quit: This computer has gone to sleep]
<opus> bricker`work: I never personally do that, what should I look for to indicate if the geokit gem is doing that?
nmokru has joined #ruby
freerobby has quit [Quit: Leaving.]
wallerdev has quit [Quit: wallerdev]
nmokru has quit [Client Quit]
Zebroid has quit [Remote host closed the connection]
nmokru has joined #ruby
msull92_ has joined #ruby
aniM has joined #ruby
msull92 has quit [Quit: Lingo - http://www.lingoirc.com]
jottr_ has quit [Ping timeout: 252 seconds]
nmokru has quit [Client Quit]
s00pcan has quit [Remote host closed the connection]