apeiros changed the topic of #ruby to: Ruby 2.1.1; 2.0.0-p451; 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
djbkd has quit [Remote host closed the connection]
servatoo has quit [Remote host closed the connection]
papercode has quit [Ping timeout: 252 seconds]
servatoo has joined #ruby
sdwrage has quit [Client Quit]
s2013 has joined #ruby
agjacome_ has joined #ruby
ner0x has joined #ruby
yubrew has quit [Ping timeout: 252 seconds]
sdwrage has joined #ruby
agjacome has quit [Ping timeout: 252 seconds]
Deele has quit [Ping timeout: 255 seconds]
bradhe has quit [Remote host closed the connection]
crzrcn has joined #ruby
fgo has joined #ruby
maoko has quit [Quit: Textual IRC Client: www.textualapp.com]
servatoo has quit [Ping timeout: 240 seconds]
jespada has quit [Quit: Leaving]
shinobi_one has quit [Quit: shinobi_one]
kitak_ has joined #ruby
pika_pika has joined #ruby
redondos has quit [Excess Flood]
redondos has joined #ruby
thomasxie has joined #ruby
jxf has quit [Ping timeout: 240 seconds]
mt_thor has joined #ruby
ehc has quit [Quit: ehc]
supermarin_ has quit [Quit: Computer has gone to sleep.]
fgo has quit [Ping timeout: 264 seconds]
bradhe has joined #ruby
sparrovv has quit [Remote host closed the connection]
supermarin_ has joined #ruby
mt_thor has left #ruby [#ruby]
jonno11 has joined #ruby
havenwood has quit []
crystal77 has quit [Quit: Computer has gone to sleep.]
supermarin_ has quit [Ping timeout: 252 seconds]
razrunelord has joined #ruby
echevemaster has quit [Ping timeout: 264 seconds]
binaryhat has quit [Quit: Leaving]
chrisseaton has joined #ruby
mgorbach has quit [Quit: ZNC - http://znc.in]
andy___ has joined #ruby
mgorbach has joined #ruby
george2 has quit [Read error: Connection reset by peer]
s2013 has quit [Ping timeout: 252 seconds]
razrunelord has quit [Remote host closed the connection]
thomasxie has left #ruby [#ruby]
marr has quit [Read error: Connection reset by peer]
apeiros has quit [Ping timeout: 252 seconds]
senayar has quit []
oo_ has joined #ruby
andy___ has quit [Ping timeout: 255 seconds]
rezzack has quit [Ping timeout: 276 seconds]
senayar has joined #ruby
jjbohn has quit [Quit: Leaving...]
Hobogrammer has quit [Ping timeout: 265 seconds]
apeiros has joined #ruby
s2013 has joined #ruby
peret has quit [Ping timeout: 240 seconds]
SilkFox_ has quit [Ping timeout: 252 seconds]
sdouglas has joined #ruby
phoo1234567 has quit [Quit: Leaving]
andy___ has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
geggam has quit [Remote host closed the connection]
djbkd has joined #ruby
nisstyre has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sparrovv has joined #ruby
zz_karupa is now known as karupa
jjbohn has joined #ruby
f0ster has quit [Remote host closed the connection]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
jamto11 has quit [Remote host closed the connection]
fgo has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackavr has quit [Quit: blackavr]
oo_ has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 252 seconds]
Beoran_ has quit [Ping timeout: 240 seconds]
Spectre881 has left #ruby [#ruby]
fgo has quit [Ping timeout: 265 seconds]
arubin has joined #ruby
Lightsword has quit [Ping timeout: 265 seconds]
george2 has joined #ruby
sepp2k1 has quit [Quit: Leaving.]
tkuchiki has quit [Remote host closed the connection]
havenwood has joined #ruby
benzrf|offline is now known as benzrf
<benzrf> >tfw every new thing i try to add to Quick makes it even more of an unstable easily-crashing clusterfuck
<benzrf> maybe i should just abondon it
x1337807x has joined #ruby
* benzrf cries
sparrovv has quit [Remote host closed the connection]
evenix has quit [Remote host closed the connection]
oo_ has joined #ruby
djbkd has joined #ruby
Beoran_ has joined #ruby
ahuman_ is now known as ahuman
Lightsword has joined #ruby
ner0x has quit [Quit: Leaving]
jjbohn has quit [Quit: Leaving...]
sputnik13net has quit [Ping timeout: 265 seconds]
yubrew has joined #ruby
<centrx> quick is too common of a name
emaxi has joined #ruby
jonno11 has joined #ruby
sski has joined #ruby
senayar_ has joined #ruby
<shevy> benzrf no, but just let it focus on a small task and keep it at that without inflating it
<shevy> if you then really need something stronger, try to build on top of quick
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> erm stronger/larger
ghr has joined #ruby
jeregrine has quit [Quit: Connection closed for inactivity]
<allfro> is there anyway to override the each method in hash so that i can modify the keys prior to returning them to the caller
sdouglas has quit [Read error: Connection reset by peer]
Lemur has quit [Ping timeout: 245 seconds]
djbkd has quit [Remote host closed the connection]
BSaboia has joined #ruby
RowdyChildren is now known as RowdyChild|Away
yubrew has quit [Ping timeout: 252 seconds]
combusean has joined #ruby
Hanmac1 has joined #ruby
<allfro> nvm
<allfro> figured it out
fearoffish has joined #ruby
MatthewsFace has joined #ruby
senayar has quit [Ping timeout: 265 seconds]
toastynerd has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
centrx has quit [Quit: All this computer hacking is making me thirsty]
<shevy> tell the solution please!
agent_white has quit [Read error: Connection reset by peer]
MatthewsFace has quit [Client Quit]
Azure has quit [Remote host closed the connection]
agent_white has joined #ruby
jamto11 has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
ghr has quit [Ping timeout: 252 seconds]
maletor_ has quit [Quit: Computer has gone to sleep.]
Azure has joined #ruby
senayar_ has quit [Remote host closed the connection]
agent_white has joined #ruby
momomomomo has quit [Quit: momomomomo]
agent_white has quit [Read error: Connection reset by peer]
Avahey_ has quit [Quit: Connection closed for inactivity]
tkuchiki has joined #ruby
xerxas has quit [Quit: Connection closed for inactivity]
amclain has joined #ruby
Valesk has quit [Quit: Textual IRC Client: www.textualapp.com]
bradhe has quit [Remote host closed the connection]
vpretzel has joined #ruby
Lightsword has quit [Ping timeout: 265 seconds]
cescalante is now known as ce_afk
ce_afk is now known as cescalante
agent_white has joined #ruby
armstrjare has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wald0 has quit [Ping timeout: 240 seconds]
supermarin_ has joined #ruby
Lemur has joined #ruby
rdark has quit [Quit: leaving]
mikepack has joined #ruby
dik_dak has joined #ruby
vpretzel has quit [Client Quit]
lukec has joined #ruby
fgo has joined #ruby
Gooder`` has quit [Ping timeout: 276 seconds]
echevemaster has joined #ruby
supermarin_ has quit [Ping timeout: 252 seconds]
mikepack has quit [Ping timeout: 240 seconds]
danshultz has joined #ruby
timonv has joined #ruby
peret has joined #ruby
matcouto has joined #ruby
BWStearns has quit [Ping timeout: 264 seconds]
jacky has quit [Excess Flood]
kaspergr_ has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 265 seconds]
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
jackyalcine has joined #ruby
Hanmac has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jackyalcine has quit [Quit: Quit]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freezey has joined #ruby
Hanmac1 has quit [Ping timeout: 252 seconds]
metamaterial has quit [Remote host closed the connection]
afex has quit [Ping timeout: 265 seconds]
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nathancahill has joined #ruby
momomomomo has joined #ruby
Rylee has quit [Ping timeout: 245 seconds]
narcan has joined #ruby
* combusean kicks centos
bthesorceror has joined #ruby
benzrf is now known as benzrf|offline
Rylee has joined #ruby
bthesorceror has quit [Remote host closed the connection]
<arubin> Hmm.
ddv has quit [Ping timeout: 245 seconds]
<arubin> Apparently x ||= 1 is shorthand for x || x = 1.
brandon_1 has quit [Remote host closed the connection]
Rylee has quit [Client Quit]
<arubin> And not x = x || 1.
mrmargolis has joined #ruby
jonno11 has joined #ruby
seich- is now known as Seich
<arubin> Is this to avoid an unnecessary assignment?
jackyalcine has joined #ruby
rokob has quit [Remote host closed the connection]
ddv has joined #ruby
Picchioni has joined #ruby
Picchioni has quit [Changing host]
Picchioni has joined #ruby
skysploit has joined #ruby
fgo has quit [Remote host closed the connection]
skysploit has quit [Client Quit]
metamaterial has joined #ruby
blackavr has joined #ruby
metamaterial is now known as fjiofewhaio
fjiofewhaio is now known as metamaterial
skysploit has joined #ruby
skysploit has quit [Changing host]
skysploit has joined #ruby
benzrf|offline is now known as benzrf
<benzrf> arubin: 'parently
sdwrage has quit [Quit: This computer has gone to sleep]
Rylee has joined #ruby
Picchioni has quit [Ping timeout: 255 seconds]
Picchioni1 has quit [Ping timeout: 265 seconds]
freezey has quit [Remote host closed the connection]
yubrew has joined #ruby
bthesorceror has joined #ruby
fgo has joined #ruby
obs has quit [Quit: Saliendo]
nari has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hamakn_ has quit [Remote host closed the connection]
bthesorceror has quit [Remote host closed the connection]
hamakn has joined #ruby
jcs222 has quit [Quit: leaving]
yubrew has quit [Ping timeout: 276 seconds]
Hobogrammer has joined #ruby
aspires has quit []
fgo has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
ekinmur has joined #ruby
hamakn has quit [Ping timeout: 240 seconds]
jddj has joined #ruby
<jddj> Is anyone in here do programming or IT for a living?
<jddj> Does*
<jddj> I have a life decision with a career decision.
<jddj> Not sure what to do.
<jddj> Would like some quick advice.
<Seich> I can try to help you x)
<Seich> I program for a living
ghr has joined #ruby
<Seich> x)
<jddj> Ok, one second.
<jddj> I'll PM you.
nanoyak has quit [Quit: Computer has gone to sleep.]
chrisja has quit [Quit: leaving]
troyronda has joined #ruby
jackyalcine has quit [Excess Flood]
* arubin refrained from answering because he feared that result.
jacky has joined #ruby
jacky is now known as jackyalcine
metamaterial has quit [Remote host closed the connection]
jackyalcine is now known as jacky
Spami has quit [Quit: This computer has gone to sleep]
butblack has joined #ruby
fsdldl has joined #ruby
metamaterial has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
blackavr has quit [Quit: blackavr]
psyko666 has joined #ruby
Hobogrammer has quit [Ping timeout: 265 seconds]
noob101 has joined #ruby
hamakn has joined #ruby
alexju has joined #ruby
reset has quit [Ping timeout: 240 seconds]
<noob101> Hello Ruby community! Noob101 is back!
SHyx0rmZ has joined #ruby
<benzrf> yello
erikruthven has joined #ruby
estaban_ has joined #ruby
<jddj> benzrf: Hello.
<jddj> I'm deciding what to do.
troyronda has quit [Remote host closed the connection]
jjbohn has joined #ruby
Gooder`` has joined #ruby
troyronda has joined #ruby
crzrcn has quit [Quit: Leaving.]
Doppp has quit [Quit: Lost terminal]
browndawg has joined #ruby
supermarin_ has joined #ruby
butblack has left #ruby [#ruby]
estaban has quit [Ping timeout: 258 seconds]
metamaterial is now known as rubydubydoo
<jddj> What woudl you do if you had a health issue that could come up. Stay where you live and live somewhere you hate? But Have the opportunity to move into a position where the health issue wouldn't be an issue.
<jddj> VS.
<jddj> Moving to a city you never lived in.
<jddj> Lose chance at IT job.
<jddj> But, have the chance to live somewhere where you can meet people and socialize.
<jddj> But, could lose you job if health issue comes up.
rubydubydoo is now known as RubyDubyDoo
<noob101> Hello. This is a Ruby game I worked on for approximately two+ months. I have made many revisions to it and here it is. Can anyone look at it and tell me how well I did? I did this project to practice my programming skills cause I am serious now. URL : http://pastie.org/9102211
evenix has joined #ruby
estaban_ has quit [Ping timeout: 240 seconds]
fsdldl has quit [Read error: Connection reset by peer]
ekinmur has quit []
RubyDubyDoo is now known as metamaterial
estaban has joined #ruby
jjbohn has quit [Ping timeout: 252 seconds]
troyronda has quit [Ping timeout: 252 seconds]
johncjensen has joined #ruby
twiceaday has quit [Ping timeout: 252 seconds]
IceDragon has quit [Ping timeout: 265 seconds]
supermarin_ has quit [Ping timeout: 252 seconds]
skysploit has quit [Quit: This computer has gone to sleep]
bthesorceror has joined #ruby
Doppp has joined #ruby
mozzarella is now known as MOZZARELLA
bthesorceror has quit [Remote host closed the connection]
bthesorceror has joined #ruby
bthesorceror has quit [Remote host closed the connection]
x1337807x has joined #ruby
Slavox|AFK is now known as Slavox
skysploit has joined #ruby
skysploit has quit [Changing host]
skysploit has joined #ruby
metamaterial has quit [Quit: Leaving.]
tum_ has joined #ruby
momomomomo has quit [Quit: momomomomo]
ekinmur has joined #ruby
brandon_ has joined #ruby
eynj has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
endash has quit [Quit: endash]
troyronda has joined #ruby
ekinmur has quit [Client Quit]
MOZZARELLA is now known as mozzarella
metamaterial has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chrisseaton has quit []
IceDragon has joined #ruby
axisys has joined #ruby
mehlah has quit [Quit: Leaving...]
endash has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
axisys has quit [Changing host]
axisys has joined #ruby
rezzack has joined #ruby
danijoo has joined #ruby
psyko666 has quit [Read error: Connection reset by peer]
mengu has quit [Ping timeout: 276 seconds]
yfeldblum has joined #ruby
Lightsword has joined #ruby
metamaterial has quit [Remote host closed the connection]
metamaterial has joined #ruby
psyko666 has joined #ruby
<shevy> noob101 it shows that you did not understand simple concepts
troyronda has quit [Remote host closed the connection]
<shevy> noob101 why do you use this: puts "#{key_help}"
troyronda has joined #ruby
yubrew has joined #ruby
endash has quit [Quit: endash]
goleldar has quit [Remote host closed the connection]
troyrond_ has joined #ruby
troyronda has quit [Ping timeout: 252 seconds]
mary5030 has joined #ruby
jddj has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
jeremy_w_rowe has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
arubin has quit [Quit: Textual IRC Client: www.textualapp.com]
Celm has quit [Remote host closed the connection]
x1337807x has joined #ruby
jjbohn has joined #ruby
browndawg has quit [Ping timeout: 276 seconds]
Celm has joined #ruby
yfeldblum has quit [Remote host closed the connection]
servatoo has joined #ruby
supermarin_ has joined #ruby
sdwrage has joined #ruby
ixti has quit [Ping timeout: 255 seconds]
troyrond_ has quit [Remote host closed the connection]
cj3kim_ has joined #ruby
absolutezeroff has quit [Remote host closed the connection]
troyronda has joined #ruby
Celm has quit [Ping timeout: 255 seconds]
jjbohn has quit [Ping timeout: 240 seconds]
absolutezeroff has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
webgen has quit [Quit: Leaving]
webgen has joined #ruby
supermarin_ has quit [Ping timeout: 252 seconds]
Lightsword has quit [Ping timeout: 265 seconds]
radic has quit [Ping timeout: 265 seconds]
radic has joined #ruby
saarinen has joined #ruby
ghr has joined #ruby
troyronda has quit [Ping timeout: 264 seconds]
_maes_ has joined #ruby
mikepack has joined #ruby
chipotle has quit [Quit: cya]
saarinen has quit [Ping timeout: 252 seconds]
ghr has quit [Ping timeout: 252 seconds]
johncjensen has quit [Remote host closed the connection]
allfro has quit [Quit: allfro]
chipotle has joined #ruby
mikepack has quit [Ping timeout: 265 seconds]
braincrash has quit [Quit: bye bye]
danshultz has quit [Remote host closed the connection]
jjbohn has joined #ruby
danshultz has joined #ruby
lukec has quit [Quit: lukec]
timonv has joined #ruby
Lightsword has joined #ruby
braincrash has joined #ruby
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alvaro_o has quit [Quit: Ex-Chat]
dukz has joined #ruby
jjbohn has quit [Ping timeout: 240 seconds]
danshultz has quit [Ping timeout: 255 seconds]
timonv has quit [Ping timeout: 255 seconds]
braincra- has joined #ruby
johncjensen has joined #ruby
momomomomo has joined #ruby
nhmood has joined #ruby
momomomomo has quit [Client Quit]
larsam has joined #ruby
braincrash has quit [Ping timeout: 264 seconds]
<x1337807x> Any idea why vars is undefined inside this eval on Ruby 2.1? https://gist.github.com/1337807/5e755f0297e94d6198ff
Cache_Money has joined #ruby
toastynerd has quit [Remote host closed the connection]
Lightsword has quit [Ping timeout: 265 seconds]
kobain_ has quit [Read error: Connection reset by peer]
Pynix has joined #ruby
Atw has quit [Ping timeout: 240 seconds]
kobain has joined #ruby
Lightsword has joined #ruby
troyronda has joined #ruby
mostlybadfly has joined #ruby
agjacome_ has quit [Quit: leaving]
bthesorceror has joined #ruby
marcdel has joined #ruby
snuffeluffegus has joined #ruby
tum_ has quit [Quit: Leaving]
postmodern has quit [Quit: Leaving]
thrillagorilla has joined #ruby
Pynix has left #ruby ["Good Bye"]
Guedes0 has quit [Ping timeout: 255 seconds]
marcdel has quit [Read error: Operation timed out]
pika_pika has quit [Ping timeout: 255 seconds]
<nhmood> anyone familiar with DataMapper in here?
<alpha123> nhmood: Actually, yes, quite a bit
<alpha123> I've been using DataMapper a lot recently
<nhmood> alpha123: fantastic, #datamapper and #sinatra are pretty quiet :-/
<nhmood> so I have a pretty simple User --> Test relationship
<nhmood> i.e. User --> has n, :tests
<nhmood> Test --> belongs_to :user
<nhmood> whenever I try to save a new Test record, it returns false but the ValidationErrors are blank
<nhmood> that is roughly what I have
<nhmood> Any ideas on whats going on there?
benzrf is now known as benzrf|offline
<alpha123> nhmood: Can you install https://github.com/dtao/dm-noisy-failures and require it?
<alpha123> I was having this problem yesterday, actually. My solution was to rename some things but that doesn't seem applicable here.
<nhmood> Sure, I'll give that a shot
<nhmood> looks like no extra calls are needed?
yubrew has joined #ruby
<alpha123> right, just put it in your Gemfile, bundle install, and require 'dm_noisy_failures'
mrmargolis has quit [Remote host closed the connection]
eynj has left #ruby [#ruby]
<nhmood> well that is super strange
<nhmood> so now the #save doesn't return false
<nhmood> but when I look at @user.tests it is empty
<alpha123> Right, it should throw an exception
<nhmood> Nope, no exceptions
yubrew has quit [Ping timeout: 255 seconds]
Lightsword has quit [Ping timeout: 265 seconds]
<nhmood> whoops, raise_on_save_failure was false
<alpha123> that shouldn't matter
<alpha123> dm-noisy-failures disregards that
<alpha123> Well. My solution was to rename `has n, :modules, 'PramsModule', through: Resource` to `has n, :prams_modules, through: Resource` which should theoretically be the same but aren't
<alpha123> I was having the exact same problem
larissa has quit [Quit: Leaving]
<alpha123> I doubt that applies to you, though
troyronda has quit [Ping timeout: 265 seconds]
<nhmood> yeah i'm surprised this doesnt work since it is a simple has n relationship without a "through" relation or anything
Lightsword has joined #ruby
<nhmood> so when raise_on_save_failure is true, i get an exception
<alpha123> Just to confirm, both model files are loaded before you call DataMapper.finalize, right?
<nhmood> when it is off, it returns true
<nhmood> I believe so, let me double check
jason__ has quit [Remote host closed the connection]
InfraRuby has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
<nhmood> yeah, both model files are loaded before DataMapper.finalize
echevemaster has quit [Ping timeout: 264 seconds]
<nhmood> i have this recursive_require that goes through and requires all and I added a print and both test and user are required
<nhmood> the order that they are required shouldn't matter right?
<alpha123> right
<alpha123> *sigh* DataMapper is pretty weird/a bit buggy sometimes. I've had numerous problems with it. :| Hm... can you try adding a :child_key => [:id] to both sides of the relationship?
<nhmood> and i have DataMapper.finalize then DataMapper.auto_upgrade!
<nhmood> sure i'll try that
<alpha123> I usually put DataMapper.auto_upgrade! in a rake task
lukec has joined #ruby
BSaboia has quit [Ping timeout: 255 seconds]
Doppp has quit [Ping timeout: 240 seconds]
Celm has joined #ruby
<nhmood> after adding the child key it looks like the Test save goes through
<nhmood> As in when I try pp @test I get #<Test @id=1>
<alpha123> DataMapper is kind of derpy, but lovable.
<nhmood> but it doesn't seem like the user is associated
<nhmood> since before pp @test would give
<nhmood> #<Test @id=nil @user_id=1>
<nhmood> and when I try to see what @user.tests is it returns []
<nhmood> empty
<alpha123> Does @test.user give anything?
<alpha123> ...oh, dang
supermarin_ has joined #ruby
<alpha123> Arg, this is annoying. Did you find anything useful through Google?
<nhmood> interestingly, @test.user returns the correct user
jack_rabbit has joined #ruby
<alpha123> :|
<nhmood> lolol what is going on
<nhmood> is it strange that when i try looking at @user the tests are never even listed as a property? (with and without the :child_key param)
<alpha123> Nah
<alpha123> it's a method, not an instance variable
Lightsword has quit [Remote host closed the connection]
<nhmood> I see
marcdel has joined #ruby
oo_ has quit [Remote host closed the connection]
<alpha123> hm... let me think here. I can't claim to be a DataMapper expert but I've been wrestling it a lot recently
<nhmood> I tried looking around online for some simple examples and I'm not really doing anything crazy
supermarin_ has quit [Ping timeout: 252 seconds]
<nhmood> it seems pretty close to what the datamapper documentation says
<nhmood> tried googling for what to do when the ValidationErrors are empty but not much
<nhmood> interestingly, if I do a save! (avoid validations) it goes through fine
<nhmood> but that doesn't seem like the right approach ha
<alpha123> No, generally if you have to use save! it's bad
<alpha123> normally when the validations errors are empty it means saving an associated model failed
<alpha123> but not always
<nhmood> is there any way to add a test through user?
<alpha123> user.tests << @test
<nhmood> although i don't know how that would help, maybe just bring out any errors that are masked through the association?
<nhmood> but I guess if the @test doesn't save then that wont help much
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
skysploit has quit [Quit: This computer has gone to sleep]
<alpha123> Right. Hm, it's odd that it's not throwing an exception. :|
oo_ has joined #ruby
rjhunter has joined #ruby
coderhs has quit [Ping timeout: 276 seconds]
<nhmood> yeah its very strange
<nhmood> i tried changing the name around too to make sure test wasnt conflicting with anything
<nhmood> but that had hte same problems
snuffeluffegus has quit [Remote host closed the connection]
<alpha123> DataMapper is amazing when it works and really sucky when it doesn't, because figuring out what went wrong in impossible. :P
dik_dak has quit [Quit: Leaving]
<nhmood> haha i've come to learn the hard way
<alpha123> I have a pretty complicated setup right now with DataMapper and somehow it's all working and it's awesome, but it took quite some work to get there. :(
locriani has joined #ruby
<alpha123> Hm... Did @user.tests << @test do anything?
<alpha123> BTW, protip: test your models in pry or irb, it's much easier
lurch_ has joined #ruby
lurch_ has quit [Client Quit]
FxK has joined #ruby
jjbohn has joined #ruby
Milly_Bays has quit [Quit: Leaving]
<alpha123> nhmood: Well, I have to go, but good luck. DataMapper can be very annoying, but experiment a lot and you'll get through it. That said, when it works, it's the best ORM, hands-down.
dukz has quit [Remote host closed the connection]
fgo has joined #ruby
FxK has quit [Remote host closed the connection]
FxK has joined #ruby
jjbohn has quit [Ping timeout: 252 seconds]
Celm has quit [Remote host closed the connection]
slowcon has joined #ruby
bluOxigen has joined #ruby
skysploit has joined #ruby
skysploit has quit [Changing host]
skysploit has joined #ruby
kies has quit [Ping timeout: 252 seconds]
sambao21 has joined #ruby
<nhmood> thanks for the help alpha123 !
linojon has quit [Quit: linojon]
sambao21 has quit [Client Quit]
skysploit has quit [Client Quit]
linojon has joined #ruby
skysploit has joined #ruby
skysploit has quit [Changing host]
skysploit has joined #ruby
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
jeremy_w_rowe has quit [Quit: jeremy_w_rowe]
Lewix has quit [Remote host closed the connection]
servatoo has quit [Remote host closed the connection]
locriani has quit [Ping timeout: 252 seconds]
servatoo has joined #ruby
locriani has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
replay_ has joined #ruby
servatoo has quit [Ping timeout: 252 seconds]
emaxi has quit [Remote host closed the connection]
emaxi has joined #ruby
replay has quit [Ping timeout: 245 seconds]
locriani_ has joined #ruby
erikruthven has quit [Quit: Textual IRC Client: www.textualapp.com]
crystal77 has joined #ruby
emaxi_ has joined #ruby
phantasm66 has quit [Quit: *sleeeep….]
replay_ has quit [Ping timeout: 276 seconds]
phantasm66 has joined #ruby
eynj has joined #ruby
emaxi has quit [Read error: Connection reset by peer]
replay has joined #ruby
yubrew has joined #ruby
locriani has quit [Ping timeout: 276 seconds]
yfeldblum has joined #ruby
locriani_ has quit [Client Quit]
sdwrage has quit [Quit: This computer has gone to sleep]
dukz has joined #ruby
Deele has joined #ruby
yubrew has quit [Ping timeout: 252 seconds]
phansch has joined #ruby
phantasm66 has quit [Ping timeout: 264 seconds]
locriani has joined #ruby
Fretta has quit [Quit: Fretta]
redondos has quit [Excess Flood]
redondos has joined #ruby
redondos has quit [Changing host]
redondos has joined #ruby
caleb_io has joined #ruby
jamto11 has quit [Remote host closed the connection]
caiges has joined #ruby
nathancahill has quit [Quit: nathancahill]
caiges has quit [Client Quit]
noob101 has quit [Ping timeout: 240 seconds]
caiges has joined #ruby
xybre has quit [Quit: oh shit its the fbi]
caiges has quit [Client Quit]
caiges has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
michaeldeol has joined #ruby
caiges has quit [Client Quit]
caiges has joined #ruby
Hanmac1 has joined #ruby
njs126 has quit [Quit: Leaving]
electroglue has joined #ruby
Aaaal has joined #ruby
zorak8 has quit [Read error: Connection reset by peer]
sparrovv has joined #ruby
Hanmac has quit [Ping timeout: 276 seconds]
zorak has joined #ruby
SHyx0rmZ has quit [Ping timeout: 252 seconds]
itman has quit [Ping timeout: 252 seconds]
mikepack has joined #ruby
zorak is now known as zora8
zora8 is now known as zorak8
zorak8 has quit [Client Quit]
iaj has quit [Ping timeout: 255 seconds]
zorak8 has joined #ruby
AliRezaTaleghani has joined #ruby
AliRezaTaleghani has quit [Client Quit]
<electroglue> hello I need to add piwik to a rails app
crzrcn has joined #ruby
<electroglue> I have installed the gem but where do I put this ? <%= piwik_tracking_tag %>
<apeiros> electroglue: #rubyonrails
<electroglue> thanks apeiros
electroglue has left #ruby [#ruby]
AliRezaTaleghani has joined #ruby
AliRezaTaleghani has left #ruby [#ruby]
supermarin_ has joined #ruby
camt has quit [Ping timeout: 246 seconds]
sparrovv has quit [Ping timeout: 276 seconds]
matcouto has joined #ruby
camt has joined #ruby
sdwrage has joined #ruby
mikepack has quit [Ping timeout: 252 seconds]
sdwrage has quit [Client Quit]
mbuf has joined #ruby
timonv has joined #ruby
supermarin_ has quit [Ping timeout: 264 seconds]
apeiros has quit [Remote host closed the connection]
michaeldeol has quit [Quit: Textual IRC Client: www.textualapp.com]
<mbuf> is there a way to reference a bin/foo.rb file that has been installed using gem through RbConfig or other means?
FxK has quit [Quit: (I was using Polaris SE) Version: 4.2. Webpage: http://polarisse.tripod.com/. Wasted: 46 Minutes and 11 Seconds Online.]
locriani has quit [Read error: Connection reset by peer]
locriani_ has joined #ruby
itman has joined #ruby
michaeldeol has joined #ruby
apeiros has joined #ruby
<mbuf> or where can I see the list of RbConfig variables (used in Windows)?
iaj has joined #ruby
zorak8 has quit [Read error: Connection reset by peer]
timonv has quit [Ping timeout: 264 seconds]
ghr has joined #ruby
apeiros has quit [Read error: Operation timed out]
dima__ has joined #ruby
zorak has joined #ruby
zorak is now known as zorak8
zorak8 has quit [Client Quit]
zorak8 has joined #ruby
camt has quit [Ping timeout: 246 seconds]
SHyx0rmZ has joined #ruby
lw has quit [Quit: s]
Azure has quit [Ping timeout: 240 seconds]
aganov has joined #ruby
InfraRuby has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 255 seconds]
grieg has joined #ruby
charliesome has joined #ruby
lukec has quit [Quit: lukec]
Macaveli has joined #ruby
jjbohn has joined #ruby
brucelee_ has joined #ruby
kies has joined #ruby
kies has quit [Changing host]
kies has joined #ruby
<brucelee_> anyone know whats causing this?
<brucelee_> i first ran a "bundle install"
<brucelee_> and then it asked me to first run "gem install dep_selector ... "
sdwrage has joined #ruby
<brucelee_> i ran that, and i get this
<brucelee_> always running into situations like these
<brucelee_> is this pretty standard ruby problems?
<brucelee_> seems like the gem dependancy kind of sucks :p
timonv has joined #ruby
skysploit has quit [Quit: Leaving]
narcan has quit [Read error: Connection reset by peer]
jjbohn has quit [Ping timeout: 260 seconds]
Morkel has joined #ruby
omosoj has quit [Quit: Leaving]
johncjensen has quit [Remote host closed the connection]
Azure has joined #ruby
sdouglas has joined #ruby
banister has joined #ruby
IceDragon has quit [Quit: Space~~~]
timonv has quit [Ping timeout: 252 seconds]
grieg has quit [Quit: Leaving]
ziyadb_ has quit [Quit: Connection closed for inactivity]
camt has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
dukz has quit [Remote host closed the connection]
kstuart has quit []
<brucelee_> nobody has any idaes?
mary5030 has quit [Remote host closed the connection]
<brucelee_> guess nobody is here
yubrew has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dukz has joined #ruby
emaxi_ has quit [Remote host closed the connection]
brucelee_ has quit [Read error: No route to host]
banister has joined #ruby
nfk has joined #ruby
yubrew has quit [Ping timeout: 252 seconds]
nisstyre has quit [Quit: WeeChat 0.4.3]
kobain_ has joined #ruby
johncjensen has joined #ruby
kobain has quit [Ping timeout: 240 seconds]
<BraddPitt> when I do Thread.new do {}
<BraddPitt> the thread automatically terminates itself, right?
tkuchiki_ has joined #ruby
andy___ has quit [Remote host closed the connection]
_fumk has quit [Excess Flood]
Aaaal has quit [Read error: Connection reset by peer]
Aaaal has joined #ruby
fumk has joined #ruby
phansch has quit [Quit: WeeChat 0.4.2]
tkuchiki has quit [Ping timeout: 264 seconds]
lurch_ has joined #ruby
Xiti has joined #ruby
timonv has joined #ruby
apeiros has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cescalante is now known as ce_afk
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ce_afk is now known as cescalante
charliesome has joined #ruby
yfeldblum has quit [Remote host closed the connection]
arietis has joined #ruby
mrmargolis has joined #ruby
yfeldblum has joined #ruby
s2013 has quit [Ping timeout: 255 seconds]
tvw has joined #ruby
tagrudev has joined #ruby
mrmargolis has quit [Ping timeout: 240 seconds]
klaut has joined #ruby
dfinly has joined #ruby
kimiamania has left #ruby ["Leaving"]
supermarin_ has joined #ruby
rokob has joined #ruby
dkamioka has joined #ruby
toastynerd has joined #ruby
timonv has quit [Remote host closed the connection]
cescalante is now known as ce_afk
xiella has quit [Ping timeout: 276 seconds]
tharindu has joined #ruby
heftig has quit [Quit: Quitting]
funburn has joined #ruby
supermarin_ has quit [Ping timeout: 252 seconds]
eynj has left #ruby [#ruby]
brucelee_ has joined #ruby
cj3kim_ has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
BraddBitt has joined #ruby
BraddPitt has quit [Ping timeout: 252 seconds]
olivier_bK has joined #ruby
jamto11 has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<agent_white> BraddPitt: Nah, you need to do Thread.join
chipotle has quit [Quit: cya]
Aaaal has quit [Read error: Connection reset by peer]
agent_white has quit [Read error: Connection reset by peer]
LexicalScope has joined #ruby
LexicalScope has quit [Changing host]
LexicalScope has joined #ruby
goleldar has joined #ruby
mbuf has quit [Quit: Leaving]
toastynerd has quit [Remote host closed the connection]
mengu has quit [Ping timeout: 252 seconds]
dkamioka has quit [Remote host closed the connection]
cover has joined #ruby
Celm has joined #ruby
BraddBitt has quit [Ping timeout: 252 seconds]
dima__ has quit [Remote host closed the connection]
johncjensen has quit [Remote host closed the connection]
dfinly has quit [Quit: Textual IRC Client: www.textualapp.com]
bluehavana has joined #ruby
tkuchiki_ has quit [Remote host closed the connection]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
tkuchiki has joined #ruby
BraddBitt has joined #ruby
cj3kim_ has joined #ruby
mitt3ns has joined #ruby
brucelee_ has quit [Ping timeout: 252 seconds]
ce_afk is now known as cescalante
cj3kim_ has left #ruby [#ruby]
yfeldblum has quit [Read error: Connection reset by peer]
redondos has quit [Excess Flood]
Xeago has joined #ruby
yfeldblum has joined #ruby
jjbohn has joined #ruby
redondos has joined #ruby
akonny has joined #ruby
sdouglas has quit [Remote host closed the connection]
kobain_ has quit []
arturaz has joined #ruby
Celm has quit [Remote host closed the connection]
absolutezeroff has quit [Ping timeout: 276 seconds]
goleldar has quit [Remote host closed the connection]
psyko666 has quit [Excess Flood]
wallerdev has quit [Quit: wallerdev]
psyko666 has joined #ruby
deol has joined #ruby
jjbohn has quit [Ping timeout: 245 seconds]
michaeldeol has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby
pwh has quit []
sdouglas has joined #ruby
mitt3ns has quit [Ping timeout: 252 seconds]
zigomir has joined #ruby
codenapper has joined #ruby
charliesome has joined #ruby
mitt3ns has joined #ruby
caleb_io has quit [Quit: caleb_io]
cescalante is now known as ce_afk
yubrew has joined #ruby
_tpavel has joined #ruby
evenix has quit [Remote host closed the connection]
agent_white has joined #ruby
agent_white has quit [Client Quit]
agent_white has joined #ruby
anarang has joined #ruby
Xeago has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 264 seconds]
jamto11 has quit [Remote host closed the connection]
emaxi has joined #ruby
skaflem has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
noop has joined #ruby
claymore has joined #ruby
senayar has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
dukz has quit [Ping timeout: 265 seconds]
emaxi has quit [Ping timeout: 252 seconds]
northfurr has quit [Quit: northfurr]
jcs222 has joined #ruby
mary5030 has joined #ruby
brucelee_ has joined #ruby
toastynerd has joined #ruby
arietis has joined #ruby
relix has joined #ruby
kiri has joined #ruby
psyko666 has quit [Ping timeout: 252 seconds]
wudo has joined #ruby
<agent_white> Dear #ruby, wake up at night. Love, agent_white
crzrcn has quit [Quit: Leaving.]
crzrcn has joined #ruby
crzrcn has quit [Client Quit]
mary5030 has quit [Ping timeout: 252 seconds]
kaplejon has quit [Ping timeout: 276 seconds]
zigomir_ has joined #ruby
dukz has joined #ruby
bigkevmcd has quit [Ping timeout: 252 seconds]
zigomir has quit [Ping timeout: 255 seconds]
tonni is now known as ta
alpha123 has quit [Ping timeout: 252 seconds]
bigkevmcd has joined #ruby
amclain has quit [Quit: Leaving]
agent_white has left #ruby [#ruby]
jamto11 has joined #ruby
Seich is now known as seich
agent_white has joined #ruby
funburn has quit [Quit: funburn]
alpha123 has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
LexicalScope has quit [Ping timeout: 276 seconds]
ta is now known as tonni
andy___ has joined #ruby
Shidash has joined #ruby
kyb3r_ has quit [Ping timeout: 240 seconds]
jamto11_ has joined #ruby
Scnt has joined #ruby
zigomir_ has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
<Scnt> Hey I am having some issues getting started with Ruby
armyriad has joined #ruby
CodeBunny has joined #ruby
zigomir has joined #ruby
<Scnt> The first issue is it's not clear how I am supposed to compile/run scripts.
psyko666 has joined #ruby
<Scnt> Or what IDE I should use?
<Scnt> (Windows).
<Scnt> The other is finding a programming resource.
<agent_white> Scnt: No need to compile! Just run!
crystal77 has quit [Quit: Computer has gone to sleep.]
<agent_white> Scnt: IDE is like asking someone their favorite food... just try one until you like it!
<Scnt> None are listed on the website.
jamto11 has quit [Ping timeout: 276 seconds]
brucelee_ has quit [Ping timeout: 240 seconds]
<Scnt> Also what about programming books? There are many for Python and C
<agent_white> Scnt: vim/emacs for terminal-based ... Many of the GUI environment (Windows) enjoy Sublime Text
<agent_white> Scnt: I personally loved rubymonk.com
<Scnt> I'm having trouble finding a getting started page
<Scnt> hmm
<agent_white> Scnt: "The Pickaxe" is known to be 'the book' on learning Ruby programming. http://ruby-doc.com/docs/ProgrammingRuby/
andy___ has quit [Ping timeout: 240 seconds]
supermarin_ has joined #ruby
<crome> also, entering magic phrases such as 'programming ruby books' or 'ruby ide' does wonders
<agent_white> ^
<crome> I mean in google
<agent_white> ^^
Gooder`` has quit [Ping timeout: 252 seconds]
<Scnt> I tried, but I wanted a standard
<agent_white> Though, you shouldn't need an 'IDE for X language'
<agent_white> Your IDE/text-editor should be your bread-and-butter for ALL your programming needs.
oo_ has quit [Remote host closed the connection]
<crome> agent_white: there are plenty of pages with some ongoing discussion about what editors people use
<crome> its good for a start
<agent_white> crome: Yeah, but again, it's like asking "what food do you like?" -- So varied.
<Scnt> Also is it possible to support runtime debugging?
<Scnt> Eer do any have support?
<agent_white> Scnt: You should not worry about that if you are still looking about how to run the program.
brucelee_ has joined #ruby
JohnBat26 has joined #ruby
lsmola has joined #ruby
<agent_white> Figure out what a horse is before figuring out how to make it jump.
<crome> ew, horses
<agent_white> How about llamas?
zigomir has quit [Ping timeout: 276 seconds]
<agent_white> Scnt: Again, don't think about 'support' unless you need it. More than likely, the issue will be PEBCAK.
<Scnt> Doesn't matter, the ability to see to see what's happening to variables is important.
<Scnt> Real time
AlexRussia has quit [Read error: Connection reset by peer]
<Scnt> and doing line by line debugging
<agent_white> Scnt: http://rubyinstaller.org -- This will answer all your questions about getting it installed.
supermarin_ has quit [Ping timeout: 245 seconds]
<agent_white> Scnt: Are you familiar with Ruby's REPL, irb?
<agent_white> Or it's offshoot, pry?
AlexRussia has joined #ruby
<crome> Scnt: seems like you are used to a language or programming environment and you are trying to see if ruby can be made to work exactly like that
<crome> its a wrong approach
<agent_white> ^ Getchur hands dirty first! Dirt ain't the same everywhere.
krz has joined #ruby
jprovazn has joined #ruby
<Scnt> hmm
oo_ has joined #ruby
dukz has quit [Remote host closed the connection]
m00nlight has joined #ruby
<agent_white> Scnt: Just take one thing atta time.
<agent_white> Scnt: Namely, you need to have Ruby installed and be able to run ANY Ruby script/program.
<agent_white> Only THEN can you worry about debugging. And only THEN should you worry about your IDE.
jamto11_ has quit [Remote host closed the connection]
nomenkun has joined #ruby
senayar has joined #ruby
Hanmac has joined #ruby
<agent_white> Scnt: Besides that, welcome to the land of Ruby! Hope you make sure to stick around in here since there are plently of friendly folks willing to help you out :)
<Scnt> Thanks
<Scnt> Truthfully I am trying to decide if I want to learn Ruby
<crome> you cant really decide before you know something about it
Hanmac1 has quit [Ping timeout: 252 seconds]
<agent_white> ^ This! Gotta be pragmatic about your languages.
<crome> also, looks like you want to use it for something specific
<agent_white> Personally, after discovering Ruby's built-in REPL, irb, I was hooked!
<crome> Scnt: any reason why you picked ruby?
jjbohn has joined #ruby
rkr090 has quit [Quit: Leaving]
<Scnt> Something different.
fabrice31 has joined #ruby
<crome> different from what?
mr_snowf1ake has quit [Ping timeout: 276 seconds]
ghr has joined #ruby
dukz has joined #ruby
crzrcn has joined #ruby
jcs222 has quit [Read error: Connection reset by peer]
<Scnt> C
zigomir has joined #ruby
zigomir has quit [Read error: Connection reset by peer]
schaary|afk is now known as schaary
<Scnt> Python is almost attractive.
<Scnt> also* I should say.
jjbohn has quit [Ping timeout: 250 seconds]
zigomir has joined #ruby
ghr has quit [Ping timeout: 252 seconds]
robup has joined #ruby
crzrcn has quit [Ping timeout: 240 seconds]
ce_afk is now known as cescalante
andikr has joined #ruby
Doppp has joined #ruby
toastynerd has quit []
locriani has joined #ruby
yubrew has joined #ruby
<crome> but here is my all-time favourite ruby book: http://mislav.uniqpath.com/poignant-guide/
<crome> it is different.
toastynerd has joined #ruby
locriani_ has quit [Ping timeout: 252 seconds]
nomenkun_ has joined #ruby
<robup> Hello, quick question, I would like to match a string (test="f00b4r") using a regex only if there's something after the "=" and not only on the "test=" part, any idea?
deol is now known as michaeldeol
<crome> >> 'test="f00b4r"'[/(?<==).*/]
<eval-in__> crome => "\"f00b4r\"" (https://eval.in/140094)
<crome> you mean something like this?
olivier_bK has quit [Ping timeout: 246 seconds]
nomenkun has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 240 seconds]
cescalante is now known as ce_afk
emaxi has joined #ruby
<crome> Scnt: if you have more specific questions, feel free to ask, I (and many others here) will be happy to help, but I cant really figure out if you like ruby or python more
<crome> its up to you
<Scnt> I know.
<Scnt> Does ruby have any scientific computing libraries or 3d rendering?
<robup> in fact this is just a check on an if condition; if there's "test=something" then continue, I just don't want to match if the given string is "test=" and I'll not use the "something" value.
<crome> I used to use an opengl library but it was quite a while ago
<crome> I dont know about its current state
Kuda has joined #ruby
xcv_ has joined #ruby
Xeago has joined #ruby
CodeBunny has quit [Quit: CodeBunny got lost. Send help!]
emaxi has quit [Ping timeout: 252 seconds]
senayar has quit [Remote host closed the connection]
<robup> crome: I don't understand your regex (the ?<== part)
senayar has joined #ruby
subraminion has joined #ruby
Biohazard has quit [Ping timeout: 245 seconds]
Biohazard has joined #ruby
helpD has joined #ruby
psyko666 has quit [Quit: Leaving]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
peret has quit [Remote host closed the connection]
fgo has quit [Remote host closed the connection]
spacebug has joined #ruby
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Morkel has quit [Ping timeout: 240 seconds]
xeral has joined #ruby
matcouto has joined #ruby
Morkel has joined #ruby
b2nary has joined #ruby
Scnt has quit [Ping timeout: 240 seconds]
xeral has quit [Client Quit]
sputnik13 has quit [Quit: Textual IRC Client: www.textualapp.com]
subraminion_ has joined #ruby
subraminion_ has quit [Client Quit]
subraminion_ has joined #ruby
subraminion has quit [Read error: Connection reset by peer]
mrmargolis has joined #ruby
qba73 has joined #ruby
akonny has quit [Quit: akonny]
sputnik13 has joined #ruby
gyzmodo has joined #ruby
locriani_ has joined #ruby
locriani has quit [Read error: Connection reset by peer]
mrmargolis has quit [Ping timeout: 265 seconds]
troyronda has joined #ruby
servatoo has joined #ruby
alexherbo2 has quit [Quit: WeeChat 0.4.3]
rokob has quit [Remote host closed the connection]
supermarin_ has joined #ruby
Martxel has quit [Ping timeout: 240 seconds]
ktun has joined #ruby
locriani_ has quit [Ping timeout: 276 seconds]
SonicX has quit [Remote host closed the connection]
troyronda has quit [Ping timeout: 276 seconds]
Kryptonical has quit [Ping timeout: 276 seconds]
crzrcn has joined #ruby
supermarin_ has quit [Ping timeout: 252 seconds]
xiella has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
crzrcn has quit [Ping timeout: 240 seconds]
Azulinho has joined #ruby
tharindu is now known as tharindu|away
cina has joined #ruby
combusean has quit [Ping timeout: 255 seconds]
ayaz has joined #ruby
nvrch has joined #ruby
ziyadb_ has joined #ruby
tharindu|away is now known as tharindu
Doppp has quit [Ping timeout: 265 seconds]
servatoo has quit [Remote host closed the connection]
heftig has joined #ruby
servatoo has joined #ruby
sk87 has joined #ruby
helpD has quit [Quit: Leaving...]
tkuchiki_ has joined #ruby
Aaaal has joined #ruby
mikecmpbll has joined #ruby
ghr has joined #ruby
AlexRussia has quit [Quit: Konversation terminated!Good bye!]
barratt has joined #ruby
jjbohn has joined #ruby
servatoo has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Ping timeout: 255 seconds]
<mikecmpbll> robup: str[/test=.+/]
<robup> mikecmpbll: thanks I ended up with the same solution but with parenthesis (.+), I don't think they are useful in my case, right?
<mikecmpbll> if you're just using it as a condition, then no
chrisseaton has joined #ruby
timonv has joined #ruby
<mikecmpbll> parentheses form a capture group
<robup> ok thank you :)
obs has joined #ruby
jjbohn has quit [Ping timeout: 255 seconds]
<mikecmpbll> >> str= "test=woo"; str[/test=.+/]; $1
<eval-in__> mikecmpbll => nil (https://eval.in/140099)
<b2nary> anyone here familiar with the ruby gem? it seems i updated, now nothing works. I cant find a replacement for "user_timeline" atleast the client doesnt know it
<mikecmpbll> >> str= "test=woo"; str[/test=(.+)/]; $1
<b2nary> twitter gem*
<mikecmpbll> lame, it ignored me.
<robup> :D
<robup> got it, don't worry thanks
<mikecmpbll> (y)
klaut has quit [Remote host closed the connection]
SilkFox has quit [Ping timeout: 252 seconds]
<b2nary> the damn client has none of the in the docs mentioned methods
poikon has joined #ruby
ce_afk is now known as cescalante
MacTrash has joined #ruby
olivier_bK has joined #ruby
alex88 has joined #ruby
obs has quit [Quit: obs]
yacks has quit [Ping timeout: 240 seconds]
obs_ has joined #ruby
emaxi has joined #ruby
obs_ is now known as obs
xiella has quit [Ping timeout: 252 seconds]
jack_rabbit has quit [Ping timeout: 240 seconds]
<agent_white> Night all
agent_white has quit [Quit: leaving]
chrisseaton has quit []
timonv_ has joined #ruby
subraminion_ has quit [Quit: Computer has gone to sleep.]
emaxi has quit [Ping timeout: 264 seconds]
<Hanmac> b2nary: try this: str= "test=woo"; str[/test=(.+)/,1]
<Hanmac> mikecmpbll: ups i mean you
tobago has joined #ruby
<mikecmpbll> i aint got no problem :).
ephemerian has joined #ruby
poikon has quit []
cescalante is now known as ce_afk
kung has joined #ruby
chinkung has joined #ruby
subraminion_ has joined #ruby
subraminion_ has quit [Remote host closed the connection]
trautwein has joined #ruby
codenapper has quit [Read error: Connection reset by peer]
subraminion_ has joined #ruby
subraminion_ has quit [Remote host closed the connection]
tonni is now known as ta
subraminion_ has joined #ruby
timonv has quit [Ping timeout: 265 seconds]
moritzs has joined #ruby
InfraRuby has joined #ruby
jackju has joined #ruby
sungai_keruh has joined #ruby
mikepack has joined #ruby
bambuka has joined #ruby
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
johncjensen has joined #ruby
ta has quit [Quit: Leaving...]
ikaros has joined #ruby
ta has joined #ruby
poikon has joined #ruby
<jackju> hi all, I have an issue with bundler, installing forked gem. I would be very thankful if you could a take a look at my question http://stackoverflow.com/questions/23224394/gemloaderror-when-trying-to-use-forked-gem
roolo has joined #ruby
robbyoconnor has quit [Remote host closed the connection]
relix has joined #ruby
mcrmfc has joined #ruby
<guardian> hello
<guardian> is the following idiomatic ruby? depth=6; Range.new(1, depth).map { |d| 'h' + d.to_s }
<guardian> or is there a leaner way to write it
<tobiasvl> 1..6 instead of Range.new(1, 6) at least
gaussblurinc1 has joined #ruby
jack_rabbit has joined #ruby
mikepack has quit [Ping timeout: 255 seconds]
Martxel has joined #ruby
sungai_keruh has quit [Ping timeout: 255 seconds]
spider-mario has joined #ruby
gaussblurinc1 has left #ruby [#ruby]
marr has joined #ruby
<mitt3ns> Too bad `[1, 2, 3] * 'h'` skips the last object.
robbyoconnor has joined #ruby
gaussblurinc1 has joined #ruby
<mitt3ns> Guardian: (1..6).each { |num| "h#{num}" }
<mitt3ns> Rather
<mitt3ns> (1..6).map
<guardian> 6 is dynamic
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby
<guardian> ah looks like I can write 1..depth actually
rotor` has joined #ruby
<mikecmpbll> can i just prefix this with: i like to write stupid answers for the sake of it, do not use this.
<mikecmpbll> (1..depth).zip(['h']*depth).map(&:join)
<mikecmpbll> :D
<mitt3ns> guardian: So you original snippet works? If not, what did work?
ghr has quit []
rotor` has quit [Client Quit]
wallerdev has quit [Quit: wallerdev]
rotor has joined #ruby
jamto11 has joined #ruby
sdouglas has quit [Remote host closed the connection]
<guardian> mitt3ns: my original snippet works, it produces an array of strings [ "h1", "h2", ... ]
<guardian> mitt3ns: it's just I didn't know I could write 1..depth, with depth being a variable
<mitt3ns> guardian: Good
fella6s has quit [Read error: Connection reset by peer]
<mitt3ns> To hear your solution!
AlSquire has joined #ruby
yacks has joined #ruby
ghr has joined #ruby
<guardian> maybe this one's cleaner? (1..depth).map { |d| "h#{d}" }
sk87 has quit [Quit: Textual IRC Client: www.textualapp.com]
Doppp has joined #ruby
<mitt3ns> guardian: _I_ think so..
<mitt3ns> Just make sure to think if 'h' will differ in the future.
jamto11 has quit [Ping timeout: 252 seconds]
GlenK has quit []
subraminion_ has quit [Quit: Lingo - http://www.lingoirc.com]
subraminion has joined #ruby
sungai_keruh has joined #ruby
charliesome has joined #ruby
matcouto has quit [Quit: Textual IRC Client: www.textualapp.com]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
m00nlight has quit [Quit: Konversation terminated!]
timonv_ has quit [Remote host closed the connection]
crzrcn has joined #ruby
andrewlio has joined #ruby
banister has joined #ruby
marcdel has quit []
nari has quit [Ping timeout: 245 seconds]
skaflem has quit [Quit: Leaving]
dukz has quit [Remote host closed the connection]
Macaveli has quit [Quit: Leaving]
crzrcn has quit [Ping timeout: 240 seconds]
joonty has quit [Quit: WeeChat 0.4.2]
joonty has joined #ruby
Macaveli has joined #ruby
lolmaus has joined #ruby
klaut has joined #ruby
zoraj has joined #ruby
sk87 has joined #ruby
sk87 has quit [Client Quit]
ValicekB has quit [Ping timeout: 250 seconds]
fgo has joined #ruby
subraminion has quit [Changing host]
subraminion has joined #ruby
<atmosx> hello
workmad3 has joined #ruby
yubrew has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
tkuchiki_ has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
jjbohn has joined #ruby
tkuchiki has joined #ruby
kitak_ has quit [Remote host closed the connection]
haroldwu has quit [Quit: leaving]
aspiers has joined #ruby
haroldwu has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
fohan has joined #ruby
sungai_keruh has quit [Ping timeout: 252 seconds]
<fohan> hey guys =)
poikon has quit [Remote host closed the connection]
<fohan> I have a strange problem with the rest-client gem
burgess has joined #ruby
jjbohn has quit [Ping timeout: 240 seconds]
workmad3 has quit [Quit: Lost terminal]
emaxi has joined #ruby
<fohan> I can send post data with a file in payload when it's a txt file, but an audio file (flac or wav) returns a broken pipe
<fohan> (http or https, same error)
<fohan> does someone have an idea where it comes from ?
poikon has joined #ruby
oo_ has quit [Remote host closed the connection]
ce_afk is now known as cescalante
workmad3 has joined #ruby
oo_ has joined #ruby
einarj has joined #ruby
<atmosx> fohan: you sue it's not on google's side?
havenwood has quit [Remote host closed the connection]
<fohan> yep
timonv has joined #ruby
<fohan> with my txt file, I get a 400 bad request
rdark has joined #ruby
<atmosx> maybe they have a limit in filesize?
ValicekB has joined #ruby
<fohan> mmm
<atmosx> of they read the file file-extensio. trying renaming the file to txt
<atmosx> to flac
<fohan> I would be surprised
Celm has joined #ruby
<fohan> I wrote the same script in python, no problem
<fohan> I'm trying .flac to .txt ;)
Hanmac1 has joined #ruby
<fohan> same error
Shidash has quit [Ping timeout: 252 seconds]
oo_ has quit [Remote host closed the connection]
<fohan> maybe it is the multipart which is broken
oo_ has joined #ruby
Kuda has quit [Quit: Sleep]
Hanmac has quit [Ping timeout: 240 seconds]
brucelee_ has quit [Ping timeout: 240 seconds]
fannye has joined #ruby
Kuda has joined #ruby
frem_ has quit [Quit: Connection closed for inactivity]
Celm has quit [Ping timeout: 264 seconds]
<fohan> (my filesize is about 50kb)
havenwood has joined #ruby
himsin has joined #ruby
psyko666 has joined #ruby
kitak_ has joined #ruby
cescalante is now known as ce_afk
Speed has joined #ruby
marcdel has joined #ruby
joonty has quit [Ping timeout: 264 seconds]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
anarang has quit [Ping timeout: 264 seconds]
Kuda has quit [Quit: Byebye!]
mengu has quit [Read error: Connection reset by peer]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
sk87 has joined #ruby
diegoviola has quit [Remote host closed the connection]
m3nTe has joined #ruby
mengu has quit [Ping timeout: 252 seconds]
Alessy89 has joined #ruby
<Alessy89> :)
sigurding has joined #ruby
johncjensen has quit [Remote host closed the connection]
Alessy89 has quit [Client Quit]
decoponio has joined #ruby
Alessy89 has joined #ruby
marcdel has quit []
burgess has quit [Quit: ^zzz]
kyb3r_ has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Alessy89 has quit [Client Quit]
Alessy89 has joined #ruby
timgauthier has joined #ruby
jonno11 has joined #ruby
Alessy89 has quit [Client Quit]
Alessy89 has joined #ruby
<timgauthier> ugh slow internet
<timgauthier> sup?
oo_ has quit [Remote host closed the connection]
<timgauthier> what? is it slow net or am i really 1 of 2?
Alessy89 has quit [Client Quit]
Alessy89 has joined #ruby
Guest29803 has joined #ruby
Alessy89 has quit [Client Quit]
Alessy89 has joined #ruby
Alessy89 has quit [Client Quit]
Alessy89 has joined #ruby
Alessy89 has quit [Client Quit]
Alessy89 has joined #ruby
Alessy89 has quit [Client Quit]
Alessy89 has joined #ruby
shevy has quit [Ping timeout: 240 seconds]
Alessy89 has quit [Client Quit]
shevy has joined #ruby
anarang has joined #ruby
havenwood has quit []
joonty has joined #ruby
Guest29803 has left #ruby [#ruby]
mrmargolis has joined #ruby
trautwein has quit [Read error: Connection reset by peer]
codenapper has joined #ruby
<robup> I have an Array on which I'm actually doing a .map but I would like to [skip the first element (index 0) / start at the index 1] of that Array. Is there a clean way to do that?
armyriad has quit [Quit: Leaving]
lkba has quit [Ping timeout: 264 seconds]
<crome> array[1..-1].map
<robup> thanks
subraminion has quit [Quit: Computer has gone to sleep.]
banister has joined #ruby
mrmargolis has quit [Read error: Operation timed out]
codenapper has quit [Ping timeout: 240 seconds]
karupa is now known as zz_karupa
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
sigurding has quit [Ping timeout: 276 seconds]
marcellus has joined #ruby
phansch has joined #ruby
sigurding has joined #ruby
kaspergrubbe has joined #ruby
ktun_ has joined #ruby
subraminion has joined #ruby
subraminion has quit [Remote host closed the connection]
subraminion has joined #ruby
kitak_ has quit [Read error: Connection reset by peer]
crzrcn has joined #ruby
RaptorJesus has quit [Remote host closed the connection]
ktun has quit [Ping timeout: 276 seconds]
kitak_ has joined #ruby
yubrew has joined #ruby
dukz has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 252 seconds]
tjsousa has joined #ruby
crzrcn has quit [Ping timeout: 240 seconds]
fella5s has joined #ruby
RubyPanther has quit [Ping timeout: 276 seconds]
wald0 has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
subraminion has quit [Quit: Lingo - http://www.lingoirc.com]
slowcon has quit []
subraminion has joined #ruby
dukz has quit [Ping timeout: 252 seconds]
RaptorJesus has joined #ruby
zoraj has quit [Remote host closed the connection]
zoraj has joined #ruby
Emmanuel_Chanel has joined #ruby
oo_ has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
zoraj has quit [Ping timeout: 265 seconds]
poguez_ has quit [Quit: Connection closed for inactivity]
Hanmac has joined #ruby
anaeem1 has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
RubyPanther has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ce_afk is now known as cescalante
nolic has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
Celm has joined #ruby
mikepack has joined #ruby
lolmaus has joined #ruby
zeeraw has joined #ruby
fabrice31 has quit [Remote host closed the connection]
Veejay has joined #ruby
poikon has quit []
<Veejay> Hi, I'm trying to use Pathname#delete to unlink a file and I'm getting the following error Exception `Errno::ENOTDIR' at /home/dotcloud/git-1b9288b/app/models/static_file.rb:71 - Not a directory - /home/dotcloud/git-1b9288b/size_6_asdasdas68d7_39ad7a6165153c30.jpg
<Veejay> The documentation specifies that Pathname#delete works on both directories and files, so why is it complaining that the path is not a directory?
<Veejay> Does it mean that part of the path is not a directory? i.e. that the path might be invalid?
jack_rabbit has quit [Ping timeout: 252 seconds]
compleatang has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 240 seconds]
Celm has quit [Ping timeout: 240 seconds]
<popl> Veejay: Can you paste your code to the pastebin URL in the topic?
compleatang has joined #ruby
Hanmac1 has joined #ruby
Thanatermesis has joined #ruby
Thanatermesis has quit [Changing host]
Thanatermesis has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
cescalante is now known as ce_afk
jackneill has joined #ruby
jackneill has quit [Changing host]
jackneill has joined #ruby
BSaboia has joined #ruby
<Veejay> There is a lot of noise in that code though
joonty has quit [Ping timeout: 265 seconds]
<Veejay> The relevant part is really setting the rails_root and then joining on some path and sending the delete message on the resulting Pathname
kenndel_ has joined #ruby
<Veejay> I'm just wondering why it's telling me that the Pathname is not a directory
robustus has quit [Ping timeout: 252 seconds]
<Veejay> I should extract the setting of the container out of that loop by the way heh
<popl> does that file exist?
kenndel has quit [Ping timeout: 240 seconds]
<Veejay> popl: It should
fabrice31 has joined #ruby
<Veejay> But I think I'll add a test there and log if it doesn't
<Veejay> I might be wrong about that
<popl> I don't know why it's throwing ENOTDIR. Pathname uses File.unlink or Dir.unlink allegedly, depending on context.
robustus has joined #ruby
<Veejay> Yeah
<Veejay> I would expect ENOENT if the file doesn't exist
<Veejay> But well, I'll add some logging and see what is going on
<Veejay> Thanks
<Veejay> Which I should really have done before asking anyway
mieko has quit []
mehlah has joined #ruby
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby
Doppp has quit [Ping timeout: 264 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
fgo has quit [Remote host closed the connection]
sdouglas has joined #ruby
wudo has quit [Quit: Leaving]
Doppp has joined #ruby
kyb3r_ has quit [Quit: Leaving]
dukz has joined #ruby
joonty has joined #ruby
<timgauthier> hoop shevy your weekend over yet?
danshultz has joined #ruby
sdouglas has quit [Ping timeout: 240 seconds]
zoraj has joined #ruby
dangerousdave has joined #ruby
adlerdias has joined #ruby
zeeraw has quit [Quit: Textual IRC Client: www.textualapp.com]
nari has joined #ruby
danshultz has quit [Ping timeout: 252 seconds]
jamto11 has joined #ruby
<shevy> timgauthier eh
<shevy> timgauthier it's a whole week man
zeeraw has joined #ruby
anarang has quit [Ping timeout: 252 seconds]
ixti has joined #ruby
<timgauthier> what?
<timgauthier> WAT!?
jamto11 has quit [Ping timeout: 240 seconds]
Doppp has quit [Ping timeout: 252 seconds]
mostlybadfly has joined #ruby
_tpavel has quit [Ping timeout: 265 seconds]
sski has quit [Remote host closed the connection]
InfraRuby has quit [Ping timeout: 255 seconds]
sski has joined #ruby
<Veejay> popl: I replaced the Pathname#delete by Pathname#to_path and used that to File.delete
AlexRussia has joined #ruby
<Veejay> And now the error is gone
<Veejay> Pretty cray cray
* Veejay shrugs
<Veejay> Oh wll
<Veejay> +e
yubrew has joined #ruby
<apeiros> wlle? :)
<timgauthier> lol
Xeago has quit [Remote host closed the connection]
tjsousa has quit [Remote host closed the connection]
crzrcn has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
sski has quit [Ping timeout: 265 seconds]
tjsousa has joined #ruby
ValicekB has quit [Ping timeout: 265 seconds]
jottr has joined #ruby
yfeldblum has quit [Ping timeout: 276 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
crzrcn has quit [Ping timeout: 252 seconds]
anarang has joined #ruby
ayaz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
ayaz has joined #ruby
_tpavel has joined #ruby
roolo has quit [Quit: Leaving...]
j_ has joined #ruby
j_ has left #ruby [#ruby]
phoo1234567 has joined #ruby
senayar_ has joined #ruby
senayar has quit [Read error: Operation timed out]
Brando753 has quit [Ping timeout: 252 seconds]
ValicekB has joined #ruby
Speed has quit [Ping timeout: 255 seconds]
yvoms has joined #ruby
yvoms has quit [Client Quit]
r_rios has joined #ruby
rrios has joined #ruby
ce_afk is now known as cescalante
fgo has joined #ruby
Xeago has joined #ruby
phansch has quit [Ping timeout: 252 seconds]
sski has joined #ruby
phansch has joined #ruby
popl has quit [Ping timeout: 252 seconds]
m3nTe has quit [Ping timeout: 252 seconds]
kitak_ has quit [Remote host closed the connection]
gigetoo has quit [Remote host closed the connection]
ponga has joined #ruby
ponga has joined #ruby
sdouglas has joined #ruby
gigetoo has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cescalante is now known as ce_afk
sdouglas has quit [Ping timeout: 240 seconds]
wald0 has quit [Quit: Lost terminal]
yfeldblum has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
dukz has quit [Remote host closed the connection]
DefV_ is now known as DefV
ghr has quit []
Kneferilis has joined #ruby
lkba has joined #ruby
ghr has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
dukz has joined #ruby
m3nTe has joined #ruby
m3nTe has quit [Changing host]
m3nTe has joined #ruby
atmosx has quit [Read error: Connection reset by peer]
metamaterial has quit [Remote host closed the connection]
thrillagorilla has quit [Write error: Connection reset by peer]
St_Marx has quit [Write error: Connection reset by peer]
end_guy has quit [Write error: Connection reset by peer]
tacos1de has quit [Write error: Connection reset by peer]
roolo has joined #ruby
St_Marx has joined #ruby
atmosx has joined #ruby
maximski has joined #ruby
metamaterial has joined #ruby
Night-hacks has joined #ruby
<Night-hacks> can anyone help what kinds of files this regular expression matches with :
jacky has quit [Excess Flood]
<Night-hacks> /\d+-\d+-\d+_[[:alpha:]]+\.txt$/
AlexRussia has quit [Ping timeout: 252 seconds]
<mikecmpbll> numbers dash numbers dash numbers underscore aphlas .txt
<mikecmpbll> eg: 123-123-123_abcABC.txt
AlexRussia has joined #ruby
tacos1de has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
subraminion has quit [Read error: Connection reset by peer]
subraminion has joined #ruby
phansch has quit [Ping timeout: 252 seconds]
timonv has quit [Remote host closed the connection]
arietis has quit [Quit: Computer has gone to sleep.]
mrmargolis has joined #ruby
jackyalcine has joined #ruby
timonv has joined #ruby
noob101 has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<noob101> Can anyone please check out my ruby game? http://pastie.org/9102211
roolo has quit [Quit: Linkinus - http://linkinus.com]
<noob101> I am a beginner, I created it.
banister has joined #ruby
yubrew has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
AlexRussia has quit [Remote host closed the connection]
twiceday has joined #ruby
maximski has quit [Ping timeout: 276 seconds]
matthewrobbins has joined #ruby
m3nTe has quit [Ping timeout: 255 seconds]
mcrmfc has quit [Read error: Operation timed out]
matthewrobbins is now known as mcrmfc
ephemerian has quit [Read error: Operation timed out]
gtc has quit [Read error: Operation timed out]
connor_goodwolf has quit [Read error: Operation timed out]
kaichanvong has quit [Read error: Operation timed out]
kaichanvong has joined #ruby
oso|away has quit [Read error: Operation timed out]
connor_goodwolf has joined #ruby
AlexRussia has joined #ruby
renier has quit [Read error: Operation timed out]
anaeem1 has quit [Read error: Connection reset by peer]
mrmargolis has quit [Ping timeout: 252 seconds]
timonv has quit [Ping timeout: 264 seconds]
oso|away has joined #ruby
oso|away is now known as oso96_2000
anaeem1_ has joined #ruby
renier has joined #ruby
kobain has joined #ruby
sn0wb1rd has quit [Ping timeout: 252 seconds]
simono has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
sn0wb1rd has joined #ruby
noop has quit [Ping timeout: 252 seconds]
arietis has joined #ruby
sambao21 has joined #ruby
troyronda has joined #ruby
timonv has joined #ruby
jackyalcine has quit [Excess Flood]
fgo has quit [Remote host closed the connection]
noop has joined #ruby
spyderman4g63 has joined #ruby
<shevy> Noob101 I gave you feedback yesterday
<shevy> Noob101 did you ever respond?
momomomomo has joined #ruby
gtc has joined #ruby
fgo has joined #ruby
jackyalcine has joined #ruby
jds has joined #ruby
metamaterial has quit [Remote host closed the connection]
end_guy has joined #ruby
crzrcn has joined #ruby
crzrcn1 has joined #ruby
Milly_Bays has joined #ruby
ghr has quit [Ping timeout: 255 seconds]
gaussblurinc1 has quit [Quit: Leaving.]
crzrcn has quit [Ping timeout: 252 seconds]
Bruno_ has joined #ruby
emaxi has quit [Remote host closed the connection]
freezey has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tacos1de has quit [Remote host closed the connection]
crzrcn1 has quit [Ping timeout: 252 seconds]
dcorbin has joined #ruby
tacos1de has joined #ruby
mehlah has quit [Quit: Leaving...]
<timgauthier> ah, this is how you design. drinking kinder beer with a crappy display next to your macbook air.
<timgauthier> in a room that has been the storage for all of the houseplants all winter :D
mikepack has joined #ruby
BSaboia has quit [Ping timeout: 265 seconds]
<shevy> kinder beer? you mean for children?
<shevy> you truly ought relocate to bavaria
sambao21 has quit [Quit: Computer has gone to sleep.]
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
<dcorbin> I'm using popen3 to feed a password to another process I'm launching when it prompts.. This works fine in cron, and in my IDE, but when I run it at the terminal the underlying process writes "Enter password" to my tty and waits for input. How can I trick it into not realizing it's on a terminal?
<dcorbin> Frankly, I don't understand how it can tell, since it's given 3 "pipes" for stdin, stdout and stderr that are NOT tied to /dev/tty
Speed has joined #ruby
fgo has quit [Remote host closed the connection]
maximski has joined #ruby
rebelshrug has joined #ruby
aspiers has quit [Quit: WeeChat 0.4.1]
mikepack has quit [Ping timeout: 240 seconds]
timonv has quit [Remote host closed the connection]
mehlah has joined #ruby
jackju has quit [Ping timeout: 240 seconds]
Speed has quit [Ping timeout: 265 seconds]
kaspergrubbe has quit [Remote host closed the connection]
ce_afk is now known as cescalante
OliverJAsh has joined #ruby
<OliverJAsh> on Mac: i've installed rbenv and i am now using an rbenv version of ruby. however, it seems that gem is still using the system version. if i do `which gem` i get `/usr/bin/gem`
yfeldblum has joined #ruby
rebelshrug has quit [Quit: Textual IRC Client: www.textualapp.com]
troyronda has quit []
<crome> OliverJAsh: have you added rbenv to path?
<OliverJAsh> yes. it's there.
cina has quit [Quit: leaving]
<crome> at the beginning?
Marty- has quit []
shevy has quit [Ping timeout: 240 seconds]
_lazarevsky has joined #ruby
<_lazarevsky> hello all
<crome> if you check $PATH, is .rbenv/shims there?
<_lazarevsky> I need to compare whether two strings are the same
<_lazarevsky> one of the strings I am getting from an excel file and the other one is returned from the DB
<_lazarevsky> they are encoded differently im afraid
<_lazarevsky> and the one returned from the excel is always appends \n at the end of the string
<_lazarevsky> is there a built in method in ruby which caters for this scenario?
yfeldblum has quit [Ping timeout: 240 seconds]
<crome> String#chomp
<tobiasvl> >> "dfsf\n".strip
<eval-in__> tobiasvl => "dfsf" (https://eval.in/140225)
<tobiasvl> or chomp yes
Speed has joined #ruby
<_lazarevsky> chomp?
<_lazarevsky> is that a third part lib?
<crome> no
<tobiasvl> >> "dfsf\n".chomp
<crome> its a method on string
<eval-in__> tobiasvl => "dfsf" (https://eval.in/140226)
<_lazarevsky> oh I see
<_lazarevsky> sweet
<_lazarevsky> thanks guys
<_lazarevsky> you are AWESOME!
tjsousa has quit [Quit: Computer has gone to sleep.]
shevy has joined #ruby
dukz has quit [Remote host closed the connection]
<shevy> test
bluOxigen has quit [Ping timeout: 255 seconds]
<tobiasvl> shevy: did the test succeed???
mengu has quit [Remote host closed the connection]
<shevy> hmm
<shevy> not sure yet
<shevy> connection issues again :(
<shevy> Noob101 are you there
lxsameer has quit [Quit: Leaving]
Fretta has joined #ruby
<shevy> ruby is not the only language with weird project names
cescalante is now known as ce_afk
simono has quit [Read error: Connection reset by peer]
simono has joined #ruby
<timgauthier> you lie
<timgauthier> this would be a very difficult project to be serious on : http://www.drawingart.org/work/the-tantra-chair/
timonv has joined #ruby
<timgauthier> lol
<timgauthier> oh, NSFW
<timgauthier> sort of
garndt has joined #ruby
Speed has quit [Ping timeout: 276 seconds]
fgo has joined #ruby
mark_locklear has joined #ruby
zeeraw has joined #ruby
shashank_rs has joined #ruby
momomomomo has quit [Ping timeout: 240 seconds]
Hanmac has joined #ruby
KeiKun has joined #ruby
kaspergrubbe has joined #ruby
KeiKun is now known as Guest11479
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
tkuchiki has quit [Ping timeout: 252 seconds]
webgen has quit [Remote host closed the connection]
ce_afk is now known as cescalante
Hanmac1 has quit [Ping timeout: 252 seconds]
senayar_ has quit [Remote host closed the connection]
webgen has joined #ruby
Guest11479 is now known as KeiKun
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
r_rios has quit [Remote host closed the connection]
rrios has quit [Remote host closed the connection]
momomomomo has joined #ruby
rmorello has joined #ruby
sambao21 has joined #ruby
r_rios has joined #ruby
rrios has joined #ruby
senayar has joined #ruby
jackyalcine is now known as jacky
yubrew has joined #ruby
bluOxigen has joined #ruby
Pynix has joined #ruby
ponga has quit [Quit: Leaving :)]
agjacome has joined #ruby
puzanov_ has joined #ruby
aagdbl has joined #ruby
dblessing has joined #ruby
shevy has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 264 seconds]
jamto11 has joined #ruby
bambuka has quit [Quit: Saliendo]
puzanov__ has quit [Ping timeout: 265 seconds]
fgo has quit [Remote host closed the connection]
shevy has joined #ruby
<shevy> timgauthier test
<timgauthier> shevy test
<shevy> those connection issues are so awful, guess I am gonna WATCH TV
<timgauthier> :|
<timgauthier> what the heck is on TV?
jamto11 has quit [Ping timeout: 276 seconds]
crystal77 has joined #ruby
snath has quit [Ping timeout: 255 seconds]
<timgauthier> even my localhost is laggy! :P
tjsousa has joined #ruby
pika_pika has joined #ruby
<timgauthier> how the heck does that even happen!?
<jmaister> La Flèche Wallone is on
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
crzrcn has joined #ruby
tjsousa has quit [Ping timeout: 240 seconds]
<Hanmac> shevy: did you know how cool coderay is? it can parse "%# 1 # # 2" ;P
jobewan has joined #ruby
nateberkopec has joined #ruby
lurch__ has joined #ruby
lurch__ has left #ruby [#ruby]
spyderman4g63 has quit []
deric_skibotn has quit [Ping timeout: 252 seconds]
jamto11 has joined #ruby
yalue has joined #ruby
joonty has quit [Ping timeout: 255 seconds]
lurch_ has quit [Ping timeout: 252 seconds]
crzrcn has quit [Ping timeout: 252 seconds]
agjacome has quit [Quit: leaving]
freezey_ has joined #ruby
timonv has quit [Remote host closed the connection]
freezey__ has joined #ruby
timonv has joined #ruby
timonv has quit [Read error: Connection reset by peer]
timonv has joined #ruby
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SubSignal has joined #ruby
Fractional has joined #ruby
<Fractional> cryption_hash = Hash.new{"A" => 0, "B" => 1, "C" => 2, "D" => 3, "E" => 4, "F" => 5, "G" => 6, "H" => 7, "I" => 8, "J" => 9, "K" => 10, "L" => 11, "M" => 12, "N" => 13, "O" => 14, "P" => 15, "Q" => 16, "R" => 17, "S" => 18, "T" => 19, "U" => 20, "V" => 21, "W" => 22, "X" => 23, "Y" => 24, "Z" => 25}
freezey has quit [Ping timeout: 276 seconds]
akonny has joined #ruby
freezey_ has quit [Ping timeout: 240 seconds]
<Fractional> Why am I getting an error from this? unexpected => expecting }
<crome> because the syntax is not correct
krz has quit [Quit: WeeChat 0.4.3]
Hanmac1 has joined #ruby
<crome> why do you use Hash.new?
<crome> just use a hash literal there
anaeem1_ has quit [Ping timeout: 264 seconds]
sente has joined #ruby
qba73 has quit [Read error: Connection reset by peer]
alexju has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
<Fractional> crome: literal?
relix has joined #ruby
<workmad3> Fractional: {:a_hash => "literal"}
<crome> something = { 'a' => 0, 'b' => 1 }
Hanmac has quit [Ping timeout: 240 seconds]
<Fractional> Oh thank you!
<workmad3> Fractional: the problem you're having is that Hash.new{} doesn't interpret the {} as a hash... it interprets it as a block... and then the 'code' in that block is invalid
<Fractional> Workmad3: Thank you! :)
qba73 has joined #ruby
jxf has joined #ruby
Bira has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
joonty has joined #ruby
robbyoconnor has quit [Ping timeout: 240 seconds]
anaeem1 has joined #ruby
anaeem1_ has quit [Ping timeout: 276 seconds]
<rdark> any idea why a Process::UID.change_privilege works, but a Process::GID.change_privilege results in a Errno::EPERM ?
rjhunter has quit [Remote host closed the connection]
<rdark> actually - solved. Seems that you have to switch GID context before doing UID switch
<rdark> presumably because the process no longer has rights to switch the gid
mrmargolis has joined #ruby
cpruitt has joined #ruby
paulfm has joined #ruby
northfurr has joined #ruby
tharindu has quit [Quit: Leaving...]
danshultz has joined #ruby
timonv has quit [Remote host closed the connection]
tsnfoo has joined #ruby
twiceaday has joined #ruby
doodlehaus has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
vpretzel has joined #ruby
twiceday has quit [Ping timeout: 252 seconds]
jprovazn has quit [Quit: Leaving]
timonv_ has joined #ruby
jprovazn has joined #ruby
Speed has joined #ruby
jamto11 has quit [Remote host closed the connection]
Hanmac has joined #ruby
dik_dak has joined #ruby
jprovazn has quit [Client Quit]
noop has quit [Ping timeout: 240 seconds]
emaxi has joined #ruby
Night-hacks has left #ruby [#ruby]
Hanmac1 has quit [Ping timeout: 264 seconds]
subraminion_ has joined #ruby
freezey__ has quit [Remote host closed the connection]
subraminion has quit [Read error: Connection reset by peer]
ghr has joined #ruby
jeremy_w_rowe has joined #ruby
freezey has joined #ruby
yubrew has joined #ruby
shevy has quit [Ping timeout: 264 seconds]
<Fractional> Is there a way to make a hash so you could do foo["h"] => 2 and foo[2] => "h"?
agarie has joined #ruby
<tobiasvl> well you already have Hash#invert
ghr has quit [Read error: Connection reset by peer]
<tobiasvl> but sure, you can monkey patch insertion so that it inserts the value as an additional key if that's what you want
jeremy_w_rowe has quit [Client Quit]
lukec has joined #ruby
<tobiasvl> >> foo = {}; foo["h"] = 2; puts foo.invert[2]
<eval-in__> tobiasvl => h ... (https://eval.in/140243)
shevy has joined #ruby
ghr has joined #ruby
Fractional has quit [Remote host closed the connection]
ffranz has joined #ruby
andikr has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 264 seconds]
phansch has joined #ruby
SilkFox has joined #ruby
_lazarevsky has quit [Ping timeout: 240 seconds]
mrmargolis has quit [Remote host closed the connection]
Pynix has left #ruby ["Good Bye"]
bluOxigen has quit [Ping timeout: 252 seconds]
ghr has quit []
WishBoy has quit [Remote host closed the connection]
paulfm has quit []
paulfm has joined #ruby
cpruitt has quit [Quit: cpruitt]
dukz has joined #ruby
ghr has joined #ruby
fgo has joined #ruby
Brando753 has joined #ruby
cpruitt has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
codabrink has joined #ruby
alex88 has quit [Ping timeout: 255 seconds]
tkuchiki has joined #ruby
sk87 has joined #ruby
ghr has quit [Read error: Connection reset by peer]
crystal77 has joined #ruby
fgo has quit [Ping timeout: 276 seconds]
<shevy> Hanmac dunno, I already use coderay for colour highlighting in my projects anyway
mikepack has joined #ruby
northfurr has quit [Quit: northfurr]
mitt3ns has quit [Read error: Connection reset by peer]
saarinen has joined #ruby
tjsousa has joined #ruby
jprovazn has joined #ruby
IceDragon has joined #ruby
sdwrage has joined #ruby
sdwrage has quit [Remote host closed the connection]
subraminion_ has quit [Ping timeout: 264 seconds]
<shevy> "The JavaScript that Coffee-Script produces is frankly quite ugly. Specifically, it does not reuse temporary variables, so you end up with _len, _len2, _len3 and so on:"
mikepack has quit [Ping timeout: 240 seconds]
<shevy> Why he did not pick coffeescript: "In the end, though, the biggest factor, and this goes for Coffee-Script as well as coco as well as any other compile-to-js language, is that it alienates possible contributors."
saarinen has quit [Ping timeout: 240 seconds]
phansch has quit [Ping timeout: 264 seconds]
<shevy> so timgauthier learn from him!
<shevy> ack timgauthier is not here
freezey has quit [Remote host closed the connection]
zz_jrhorn424 is now known as jrhorn424
sigurding has quit [Read error: Connection reset by peer]
himsin has quit [Quit: himsin]
crzrcn has joined #ruby
robbyoconnor has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Fractional has joined #ruby
sailias has joined #ruby
<Fractional> tobiasvl: That solution is giving me issues.
Hanmac1 has joined #ruby
<Fractional> https://gist.github.com/anonymous/c7d18663fa5d3d614c66 gives the output: yes 19 F
oo_ has quit [Remote host closed the connection]
RaCx has joined #ruby
Hanmac has quit [Ping timeout: 255 seconds]
freezey_ has joined #ruby
sigurding has joined #ruby
alex88 has joined #ruby
ghr has joined #ruby
ehc has joined #ruby
<Fractional> tobiasvl: Do you know why this happens?
<shevy> square = (x) -> x * x
kevind has joined #ruby
<shevy> coffeescript syntax sucks as well :(
crzrcn has quit [Ping timeout: 265 seconds]
<workmad3> why do people hate proper indenting? :(
<happytux> trying to run rake through bundle exec: bundle exec rake
<Fractional> Fixed it :D
<happytux> Could not find gem 'puppet-parse (~> 0.1.0) ruby' in the gems available on this machine.
Fractional has quit [Remote host closed the connection]
<happytux> The problem is that rake is needed to let builder download the gems.
mercwithamouth has joined #ruby
RaCx has quit [Ping timeout: 255 seconds]
<happytux> But bundler won't start rake until it downloaded the gems.
<happytux> A chicken-egg problem.
freezey_ has quit [Ping timeout: 240 seconds]
zachallett has joined #ruby
shashank_rs has quit [Ping timeout: 252 seconds]
Macaveli has quit [Ping timeout: 252 seconds]
yacks has quit [Ping timeout: 252 seconds]
Milly_Bays has quit [Ping timeout: 264 seconds]
robbyoconnor has quit [Ping timeout: 252 seconds]
einarj has quit []
zachallett has quit [Remote host closed the connection]
einarj has joined #ruby
zachallett has joined #ruby
robbyoconnor has joined #ruby
Nahra has quit [Remote host closed the connection]
Nahra has joined #ruby
Nahra has quit [Changing host]
Nahra has joined #ruby
meatherly has joined #ruby
tjsousa has quit [Quit: Computer has gone to sleep.]
RaCx has joined #ruby
tjsousa has joined #ruby
zachallett has quit [Remote host closed the connection]
noob101 has quit [Ping timeout: 240 seconds]
ghr has quit [Ping timeout: 252 seconds]
shevy has quit [Ping timeout: 252 seconds]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
keystonelemur has joined #ruby
snath has joined #ruby
jeremy_w_rowe has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Milly_Bays has joined #ruby
jeregrine has joined #ruby
jeremy_w_rowe has quit [Client Quit]
shevy has joined #ruby
akonny has quit [Quit: akonny]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
yfeldblum has joined #ruby
freezey has joined #ruby
tjsousa has quit [Ping timeout: 252 seconds]
Celm has joined #ruby
einarj has quit [Remote host closed the connection]
Morkel_ has joined #ruby
Morkel has quit [Read error: Connection reset by peer]
Morkel_ is now known as Morkel
sigurding has left #ruby [#ruby]
RaCx has quit [Quit: Computer has gone to sleep.]
marr has quit [Ping timeout: 240 seconds]
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
andy____ has joined #ruby
Celm has quit [Ping timeout: 240 seconds]
alexju has joined #ruby
tobago has quit [Remote host closed the connection]
RaCx has joined #ruby
Lewix has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
eka has joined #ruby
mary5030 has joined #ruby
servatoo has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
bean has joined #ruby
ghr has joined #ruby
<webgen> hey guys
alex88_ has joined #ruby
p0wder_ has joined #ruby
<webgen> I have array = Array.new(5), can u give me a short example on how to insert an int inside?
lmickh has joined #ruby
charliesome has joined #ruby
alex88 has quit [Ping timeout: 240 seconds]
robbyoconnor has quit [Ping timeout: 276 seconds]
yubrew has joined #ruby
yacks has joined #ruby
lukec has quit [Ping timeout: 276 seconds]
<tobiasvl> array << int
<tobiasvl> adds it to the end
Tuxy has quit [Quit: leaving]
<tobiasvl> array[2] = int
<tobiasvl> adds it at index 2
<seich> webgen: array[0] = 1
<seich> nvm x)
_lazarevsky has joined #ruby
<p0wder_> I'm doing exercises on codecademy to learn ruby. im at an exercise where I'm pretty sure im correct but it says im not. the objective is: to skip through the range 1 thru 18 and only print the even numbers. Also, use the "next" keyword. here is my code: for i in 0..18 next if i % 2 == 1
andy____ has quit [Quit: Leaving...]
<p0wder_> puts i
<p0wder_> end
<webgen> seich i tried that but its not doing it :S
Kricir has joined #ruby
<_lazarevsky> hello fellow earthlings
<p0wder_> can anyone help?
tvw has quit []
<webgen> p0wder_, i am actually am in same boat lmfo
<tobiasvl> p0wder_: using a for loop isn't very ruby-like
sdwrage has joined #ruby
<p0wder_> whats a more common loop for ruby?
<webgen> p0wder_, do loop do ------ end
tjsousa has joined #ruby
<p0wder_> k
<tobiasvl> that's not very ruby-like either :P
<_lazarevsky> I need to compare two strings
<_lazarevsky> one I get from the DB and the other from an excel file
<_lazarevsky> the one returned from the excel file
<webgen> tobiasvl, i am begginer too :D well what is ruby like then teach us :D
foooobear has joined #ruby
<_lazarevsky> contains double quotes!!!!
<tobiasvl> p0wder_ webgen: (1..18).each { |i| next if i % 2 == 1; puts i }
<_lazarevsky> and other one escapes them
<seich> wouldn't using 1.upto(18)
<p0wder_> webgen: your at the same exercise on codecademy?
vpretzel has quit [Remote host closed the connection]
<_lazarevsky> I need to be able to compare them and see if they're the same string
<_lazarevsky> I've been stuck on this for some time now.. any help would be greatly appreaciated
vpretzel has joined #ruby
<tobiasvl> or even better: (1..18).each { |i| next if i.odd?; puts i }
<tobiasvl> no need to use %
<_lazarevsky> "Tackles issues when they're discovered even when they're \"not their job\" vs."Tackles issues when they’re discovered even when they’re “not their job”. "
<DefV> puts i if i.even?
yubrew has quit [Ping timeout: 276 seconds]
<tobiasvl> DefV: yeah except they had to use next
jrhorn424 is now known as zz_jrhorn424
tagrudev has quit [Remote host closed the connection]
x1337807x has joined #ruby
<DefV> ic
<p0wder_> tobiasvl: the error it gave me was: (ruby):1: void value expression
<p0wder_> next if i % 2 == 1
<p0wder_> ^
<DefV> silly task
locriani has joined #ruby
xaq has joined #ruby
<webgen> p0wder_, ye i am on same chapter haha i am one exercise ahead and i am stuck too lmfo
<tobiasvl> p0wder_: strange. works here
s2013 has joined #ruby
<p0wder_> haha strange all right
<p0wder_> where does var i get set equal to the number?
<tobiasvl> |i|
Bira has quit [Remote host closed the connection]
<p0wder_> ok
RaCx has quit [Quit: Computer has gone to sleep.]
Slavox is now known as Slavox|AFK
x1337807x has quit [Ping timeout: 240 seconds]
<p0wder_> tobiasv1: you still have the code the exercise 9/18?
rezzack has quit [Read error: Operation timed out]
RaCx has joined #ruby
sdelmore has quit [Quit: Leaving.]
<p0wder_> I hate not having completed an exercise before moving forward
<tobiasvl> (1..18).each { |i| next if i.odd?; puts i }
<tobiasvl> that didn't work?
sdwrage has quit [Quit: This computer has gone to sleep]
<tobiasvl> >> (1..18).map { |i| next if i.odd?; i }.compact
<eval-in__> tobiasvl => [2, 4, 6, 8, 10, 12, 14, 16, 18] (https://eval.in/140309)
<p0wder_> that totally works. just like my original code. but the error that pops up is that, "It looksl ike your loop doesn't print out the numbers 18 to 0"
Bira has joined #ruby
<tobiasvl> ah well my range is (1..18)
<tobiasvl> change it to (0..18) :P
cpruitt has quit [Quit: cpruitt]
jeremy_w_rowe has joined #ruby
jeremy_w_rowe has quit [Client Quit]
rmorello is now known as rmorello|917
<p0wder_> yup... same damn error
<tobiasvl> gist it
dangerousdave has joined #ruby
<p0wder_> im thinking there is an error on codecademy's part
freerobby has joined #ruby
cpruitt has joined #ruby
yubrew has joined #ruby
<p0wder_> i dont use github or gist much. any format i should abide by when posting?
sk87 has joined #ruby
<tobiasvl> just paste your code
<p0wder_> k, thanks
aganov has quit [Quit: Leaving]
andy___ has joined #ruby
<tobiasvl> and then give us the url
chipotle has joined #ruby
danshultz has quit []
jamto11 has joined #ruby
Slavox|AFK is now known as Slavox
<shevy> hey atmosx know what would be cool? a de-centralized system working with biological information
danshultz has joined #ruby
peret has joined #ruby
fgo has joined #ruby
tacos1de has quit [Remote host closed the connection]
tacos1de has joined #ruby
evenix has joined #ruby
Darryl has joined #ruby
mrevd has joined #ruby
danshultz has quit [Client Quit]
<shevy> atmosx like you input some sequences and it spits out to you a lot of information based on various different remote (and perhaps local ones as well) database, and then presents this to you in a lot of useful analyzed data
papercode has joined #ruby
flops has joined #ruby
anarang has quit [Quit: Leaving]
s2013 has quit [Remote host closed the connection]
jamto11 has quit [Ping timeout: 265 seconds]
sdwrage has joined #ruby
fgo has quit [Ping timeout: 265 seconds]
_lazarevsky has quit [Quit: Page closed]
<tobiasvl> p0wder_: the exercise says 18 to 0? then the range has to be 18..0 instead
Lewix has quit [Remote host closed the connection]
danshultz has joined #ruby
treehug88 has joined #ruby
<tobiasvl> or 18.downto(0)
dukz has quit [Remote host closed the connection]
<webgen> post your whole thing on gist
lw has joined #ruby
zegerjan has joined #ruby
locriani_ has joined #ruby
<happytux> So I got a rake FileList: FileList['**/*.pp'].each do |src| file test => src
<happytux> So task test will be applied on each src.
<happytux> The problem is that I want task1 to be run on each file of the glob and then task 2.
jamto11 has joined #ruby
<webgen> tobiasvl, as obviously its going reverse otherwise looks good to me hehe
<happytux> The current approach provides one single task for the files, I want separate tasks.
<p0wder_> if i put 18..0 it only prints "18..0
_bart has joined #ruby
maletor has joined #ruby
<tobiasvl> p0wder_: 18.downto(0)
<p0wder_> replace the 0..18?
<tobiasvl> see my comments on your gist: https://gist.github.com/anonymous/11218156
mrevd has left #ruby [#ruby]
Bruno_ has quit [Ping timeout: 252 seconds]
<p0wder_> your code is great, it works but codecademy is still giving me that error. maybe i need to just move on or get a good ruby book. ??
phansch has joined #ruby
locriani has quit [Ping timeout: 265 seconds]
<webgen> p0wder_, who knows what codeacad wants ...
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
<tobiasvl> p0wder_: well add the entire exercise text in a comment
<tobiasvl> we've already had to reverse the range and add 0
<tobiasvl> let's just see the actual requirements
lw has quit [Quit: s]
jds has quit [Quit: Connection closed for inactivity]
<p0wder_> k
Bruno_ has joined #ruby
zoraj has quit [Remote host closed the connection]
timgauthier has joined #ruby
<p0wder_> done
ghr has quit [Ping timeout: 264 seconds]
geggam has joined #ruby
<tobiasvl> p0wder_: ah, they want you to use a for loop… morons. anyway, replace `puts` with `print` I guess. the former adds a newline but they might want "181614121086420" to be the actual output
jsaak has joined #ruby
<tobiasvl> if they're idiots
<p0wder_> ill give it a shot
crzrcn has joined #ruby
<timgauthier> yo yo
<timgauthier> who's idiots? I have pitchfork. lets go
<webgen> lol thats similar problem I had just earlier
<p0wder_> tho i have used their code and made it print the "correct output"
Asher has quit [Quit: Leaving.]
<tobiasvl> timgauthier: codecademy might be
<tobiasvl> not sure yet
<timgauthier> ah
<timgauthier> :D
<timgauthier> sweet
<timgauthier> so don't pay for a course from them?
r_rios has quit [Ping timeout: 265 seconds]
rrios has quit [Ping timeout: 265 seconds]
tris has quit [Remote host closed the connection]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
joonty has quit [Ping timeout: 264 seconds]
<timgauthier> frick, i hate going for walks here. you always have to go and check yourself for ticks, a 20 minute walk becomes an hour long ordeal because of those fuckers
<tobiasvl> timgauthier: where do you live?
<p0wder_> tobiasv1: so there's no confusion, will u put the code you would use onto the gist please? because i'm pretty sure i've done that
<timgauthier> I'm in a small town in Germany
<tobiasvl> timgauthier: Night Vale?
<tobiasvl> ah ok
<timgauthier> haha :P
Bruno_ has quit [Ping timeout: 264 seconds]
<webgen> timgauthier, neo nazis bothering u or what ? :D
<timgauthier> naw, just ticks bro
<timgauthier> why would you go directly to that webgen ? thats kind of offensive
RaCx has quit [Quit: Computer has gone to sleep.]
lkba has quit [Ping timeout: 252 seconds]
<webgen> timgauthier, i know, i did it on purpose but just a joke, i have high regard for germans :P
apeiros has quit [Remote host closed the connection]
<p0wder_> germany is forever shrouded by its past smh.
crzrcn has quit [Ping timeout: 265 seconds]
<webgen> p0wder_, bs
apeiros has joined #ruby
RaCx has joined #ruby
himsin has joined #ruby
<timgauthier> it is
<p0wder_> In terms of time, it wasn't very long ago.
<webgen> ok i ll create a philosophy channel one sek, jk lmfo :D
<timgauthier> germans have tons and tons of shame about something that many of them had very little ability to stop once it started. and then east germans have that shame plus all the crap done to them under the GDR
<timgauthier> but eh
<tobiasvl> DON'T MENTION THE WAR
<timgauthier> i like to draw pictures
<p0wder_> YOU DID TOBIA
dukz has joined #ruby
<timgauthier> ok its not that bad :P
locriani_ is now known as locriani
<p0wder_> I'm American and I have enough shame for what happened to the Indians. Only they try to cover it up in history books
j416 has joined #ruby
_maes_ has joined #ruby
<p0wder_> tobiasv1: thanks for the help man. To this point we didn't even learn how to reverse iterate but they expected it
<tobiasvl> weird
jprovazn is now known as jprovazn_afk
<shevy> who of you got politics into #ruby
dima__ has joined #ruby
<j416> o/ can I somehow make #to_json convert my objects to json objects? I tried implementing #to_hash on my class but to no avail :/
<webgen> anyways i have a on-topic question, 10.times { print " bla "} prints bla 10 times and then int 10 follows at the end, why does int 10 gets printed :S ?
<shevy> was it webgen
<p0wder_> are there no kudos or ups on that gist.github
crystal77 has quit [Quit: Computer has gone to sleep.]
<p0wder_> ?
ghr has joined #ruby
ponga has quit [Read error: No route to host]
<j416> webgen: in irb/pry?
<shevy> webgen what means "int 10" ?
<tobiasvl> webgen: it's returned
adamski2600 has joined #ruby
<webgen> on codeacad
flops has quit [Ping timeout: 240 seconds]
<tobiasvl> p0wder_: hehe, no sorry
<j416> webgen: that'll print the result, suffix with semicolon to suppress it
<shevy> huh what is codeacad
RaCx has quit [Client Quit]
<j416> (usually)
<shevy> can't you use irb webgen
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
<p0wder_> thanks again
<crome> j416: just overwrite the to_json method on your objects
<j416> crome: for real?
<shevy> webgen the only real way to "simulate" ruby is to just put the code into a .rb file; you won't see any 10 there
<webgen> shevy i can, ok i ll check in irb :D ...
tris has joined #ruby
apeiros has quit [Ping timeout: 265 seconds]
<shevy> \o/
<crome> j416: depends entirely on what you want to do
<tobiasvl> webgen: print prints the string, but the block returns 10. return value is not the same as output
<shevy> irb is sometimes a bit weird, keep that in mind, but 99,9% you will love it webgen
<timgauthier> shevy i blame you for the war anyhow
flops has joined #ruby
<webgen> shevy i dont know maybe i shouldnt trust codeacad its just too retarded in things
<happytux> hi!!
<j416> crome: I have a simple object that I want to represent as json, just that
p0wder_ has quit [Quit: Leaving]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<keystonelemur> Pry wins
<shevy> timgauthier no, we sent the guy away. we do that all the time, remember schwarzenegger
Xeago has quit [Remote host closed the connection]
<webgen> ye same in irb : :::::: bla bla bla bla bla bla bla bla bla bla => 10
<j416> crome: the object can be instantiated by MyClass.new(hash) (where hash is the result from JSON.parse)
<keystonelemur> IRB doesn't have nearly as much power
<timgauthier> oh yeah.. good point :P
<happytux> Ant allows parallel mode for FileLists where the file paths are joined with spaces and given to the exec.
<timgauthier> don't use irb
<timgauthier> use pry
<shevy> timgauthier he said he'll be back, but he is not coming back to his home :D
roland has joined #ruby
<happytux> Can rake do this, too?
<timgauthier> haha shevy :P
<keystonelemur> implied block returns, at the end of that there's a 10
<j416> crome: what I'm trying to do is convert my object to and from json.
blackmesa has joined #ruby
<timgauthier> he'll make it middle america
<happytux> The exec allows multiple file paths, I want to pass it all file paths together.
<shevy> webgen yep, irb returns something by default; if you put into .rb file, you won't have that behaviour
sambao21 has quit [Quit: Computer has gone to sleep.]
<crome> j416: in that case defining to_json on it works
<webgen> shevy, kk thanks roger that
<keystonelemur> You still will, rather it just won't be shown
<shevy> .rb files are the only true way
mengu has joined #ruby
<j416> crome: thanks. I'll google a bit and possibly end up doing that.
mengu has quit [Changing host]
mengu has joined #ruby
<keystonelemur> that's the return value of the function
<timgauthier> why is my localhost so slow at reloading :(
<keystonelemur> which IRB will always show
<keystonelemur> unless you tack a semicolon on the end of the statement
<keystonelemur> well, at least that works in pry.
kinginky_ has quit [Read error: Connection reset by peer]
kinginky has quit [Read error: Connection reset by peer]
<shevy> if you tack a semicolon at it in irb
<keystonelemur> Try REPL development in Pry
<webgen> timgauthier, which host and webserver do u use? i had problem with windows/apache , was too slow too
<shevy> it won't do anything in irb :D
<timgauthier> i'm on mac
dima__ has quit [Ping timeout: 252 seconds]
kinginky__ has quit [Read error: Connection reset by peer]
<timgauthier> annnnd i'm running webrick i believe
<shevy> because it thinks there'll be more input
<keystonelemur> Pry still beats IRB hands down for me.
WishBoy has joined #ruby
<webgen> keystonelemur, i dont even know whats pry so :S ... :D
<shevy> people will more likely have irb available
<happytux> anyone? :(
<keystonelemur> gem install pry
<keystonelemur> done
<shevy> if you have system access
<keystonelemur> Dir.glob
papercode has quit [Ping timeout: 240 seconds]
<keystonelemur> or RVM
<webgen> keystonelemur, only in a necessity :D i dont ache my head with tool floods lol
<shevy> exactly webgen
<happytux> keystonelemur: FileList['**/*.pp'].each do |src|
<keystonelemur> When you're starting, use what works
<happytux> keystonelemur: file puppet_source => src
<shevy> ewwww
sillywizard has joined #ruby
<shevy> FileList
<happytux> keystonelemur: so there is filetask puppet_source
<shevy> ewwwwwwww
<happytux> keystonelemur: now on each file the tasks are applied, I want that on each tasks all files are applied.
freezey has quit [Remote host closed the connection]
<shevy> keystonelemur what is a "keystone lemur"? does that actually exist?
joonty has joined #ruby
yfeldblum has joined #ruby
<keystonelemur> secondary alias in case lemur is taken
<shevy> aaah ok
<keystonelemur> of which I left my home pc on again
sambao21 has joined #ruby
<keystonelemur> note to lemur: log out for once
sdwrage has quit [Quit: This computer has gone to sleep]
nomenkun_ has quit [Remote host closed the connection]
<timgauthier> pfft
<timgauthier> why not just vnc/ssh and log yourself out ;)
Aaaal has quit [Quit: Aaaal]
nomenkun has joined #ruby
yfeldblum has quit [Client Quit]
Celm has joined #ruby
<webgen> while do 1...50 whats my mistake ?
<webgen> how do i do ... .. loops?
<ccooke> webgen: well, simply: 50.times { |i| puts i }
yfeldblum has joined #ruby
<slash_nick> webgen: lots of ways... 1.upto(50) do {|i| puts i }
djbkd has joined #ruby
sdwrage has joined #ruby
<olivier_bK> how to pass multiple arguments to method ?
charliesome has joined #ruby
<slash_nick> ergh, whatagoof... that "do" did not belong there
Aaaal has joined #ruby
b2nary has quit [Read error: Connection reset by peer]
<webgen> ccooke, slash_nick i know many ways exist but I was curious about that particular way :S
<webgen> i am not doing a production code i am just learning yet :D
Celm has quit [Ping timeout: 240 seconds]
nomenkun has quit [Ping timeout: 264 seconds]
danman_ has joined #ruby
vpretzel_ has joined #ruby
ghr has quit [Read error: Connection reset by peer]
cescalante is now known as ce_afk
vpretzel has quit [Disconnected by services]
RaCx has joined #ruby
vpretzel_ is now known as vpretzel
fabrice31 has quit [Remote host closed the connection]
<shevy> webgen most elegant way to loop in ruby is via loop {}
<webgen> ok how do I do loop 1..5 range thing {} ? shevy
ghr has joined #ruby
<shevy> this is something else
mengu has quit [Remote host closed the connection]
jacobsmith has joined #ruby
fabrice31 has joined #ruby
<shevy> 1.upto(5).each {|entry| puts entry }
<webgen> ye i dont care about while for or loop i am just wondering about ranges for now :D and cant find an example online except in for loops...
djbkd has quit [Remote host closed the connection]
<shevy> (1..5).each {|entry| puts entry }
lw has joined #ruby
<shevy> you can always try these examples in irb
SCommette has joined #ruby
<webgen> (1..5 ) isnt this better than 1.upto(5)>?
<webgen> same right ? :D probably both use for loop anyway
coderhs has joined #ruby
<shevy> webgen you ask "better"
SCommette has left #ruby [#ruby]
<shevy> how can anyone answer what is "better"ß
coderhs has quit [Remote host closed the connection]
<webgen> i mean its same but simpler isnt it ? :D
<shevy> hmm
<shevy> In this example I think I prefer .upto
senayar_ has joined #ruby
senayar has quit [Ping timeout: 240 seconds]
<olivier_bK> webgen, upto : Iterates the given block, passing in integer values from int up to and including limit.
<workmad3> webgen: depends on your sense of asthetic...
<shevy> "simpler" who knows, I think you need to try for your case
<webgen> ok ok preference kills :P
Xeago has joined #ruby
<shevy> webgen yeah, that's a side-effect of choice and having more than one way, you gotta choose more carefully what you prefer
<webgen> shevy ye i know democracy is hard xD
<workmad3> webgen: it's not democracy
srji has joined #ruby
sski has quit [Remote host closed the connection]
<workmad3> webgen: democracy would inflict the majority's choice on everyone ;)
fabrice31 has quit [Ping timeout: 252 seconds]
<webgen> workmad3, well, ruby being democracy vs some autocratic language where you can only do thing the one way
sski has joined #ruby
havenwood has joined #ruby
mcrmfc has quit [Quit: mcrmfc]
pwh has joined #ruby
<webgen> workmad3, ye but its still choice of individuals vs choice of a developer :P
<webgen> workmad3, ok nvm really doesnt matter :D
djbkd has joined #ruby
<workmad3> webgen: java is more 'democratic' in that sense... it has a voting process and committees to determine what goes into the language ;)
arubincloud has joined #ruby
<workmad3> webgen: the majority chooses in java... the individual chooses in ruby :)
kevind_ has joined #ruby
<webgen> workmad3, hmm ok I understand what u mean now :P
MacTrash has quit [Quit: This computer has gone to sleep]
<webgen> workmad3, ruby being an anarchy u want to say :D
<jacobsmith> workmad3: and java committees give us method names that are longer than Ruby classes (:
<shevy> webgen even in python there are choices, let me find a great read for you
sputnik13 has quit [Quit: Textual IRC Client: www.textualapp.com]
dukz has quit []
carlyle has joined #ruby
<shevy> webgen, look at http://biopython.org/DIST/docs/tutorial/Tutorial.html "2.1 General overview of what Biopython provides"
<shevy> "One thing to note about Biopython is that it often provides multiple ways of ?doing the same thing.?"
<workmad3> jacobsmith: they can be longer than ruby programs once you give a fully qualified method name including packages and class :D
<shevy> "Things have improved in recent releases, but this can still be frustrating as in Python there should ideally be one right way to do something."
<shevy> "However, this can also be a real benefit because it gives you lots of flexibility and control over the libraries."
<shevy> I found this hilarious to read :D
<shevy> he argues in favour of flexibility ;)
apeiros has joined #ruby
ghr has quit [Read error: Connection reset by peer]
<shevy> webgen in ruby you kinda have to convince matz that something is a good fit for ruby and matz sometimes can not make up his own mind, like early autoload functionality, but perhaps also @@vars
sski has quit [Ping timeout: 240 seconds]
kevind has quit [Ping timeout: 265 seconds]
kevind_ is now known as kevind
ce_afk is now known as cescalante
<webgen> so is matz still on top of foodchain ? :D
blackavr has joined #ruby
<havenwood> webgen: benevolent dictator whilst in his corporeal form
lukec has joined #ruby
<webgen> havenwood, :s
<happytux> How can I pass the paths of a rake FileList together to a command?
binaryhat has joined #ruby
<happytux> Do I have to join them myself using an array method or is this implemented?
Hanmac has joined #ruby
<happytux> The command to invoke supports multiple file paths, so I want to pass them all at once.
xcv_ has quit [Remote host closed the connection]
ponga has quit [Remote host closed the connection]
noop has joined #ruby
himsin has quit [Quit: himsin]
<mikecmpbll> i think they should put an Object#let method into ruby
locriani has quit [Read error: Connection reset by peer]
locriani_ has joined #ruby
_tpavel has quit [Quit: Leaving]
Hanmac1 has quit [Ping timeout: 252 seconds]
sparrovv has joined #ruby
<apeiros> mikecmpbll: which does what?
Azulinho has quit [Ping timeout: 276 seconds]
<mikecmpbll> def let; yield self; end
<apeiros> tap
<mikecmpbll> dat
<apeiros> though, tap is yield(self); self
<keystonelemur> Pipe
<apeiros> i.e., return value is fixed to self
<mikecmpbll> yeah, tap returns what's called
mikepack has joined #ruby
<mikecmpbll> what it's called on*
<keystonelemur> pipe returns block value
locriani has joined #ruby
<keystonelemur> and pipes the value into it.
<apeiros> mikecmpbll: aka "the receiver" ;-)
locriani_ has quit [Read error: Connection reset by peer]
<mikecmpbll> keystonelemur: lmao a whole gem for that.
<mikecmpbll> impressive.
<keystonelemur> Who said gems need to be complicated?
maximski has quit []
<keystonelemur> sometimes you only need a small component
<mikecmpbll> nobody, but i'd sooner just monkey patch it on to object myself.
<mikecmpbll> like i do presently.
hamakn has quit [Remote host closed the connection]
<keystonelemur> Izzy is a bit more entertaining - https://github.com/baweaver/izzy
<mikecmpbll> it's useful for calculating mean average of something computed, without having to assign an intermediary variable
RaCx has quit [Quit: Computer has gone to sleep.]
<mikecmpbll> (some complicated stuff that returns an array of values).let{|x| x.reduce(:+)/x.size}
<mikecmpbll> that's just one small example, anyway.
<j416> if I want to catch only some methods in #method_missing, is it proper to raise MethodMissing, method -- for the rest?
mikepack has quit [Ping timeout: 265 seconds]
<j416> er and by that I mean NameError
rippa has joined #ruby
alex88 has joined #ruby
<j416> ideally I'd like to raise exactly what ruby would have raised
<j416> wait.. super
* j416 facedesk
<mikecmpbll> yea.
<j416> thanks, ducks. :)
fgo has joined #ruby
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
MatthewsFace has joined #ruby
alex88_ has quit [Ping timeout: 252 seconds]
sparrovv has quit [Remote host closed the connection]
goleldar has joined #ruby
<shevy> method_missing will make you dumber
alex88 has quit [Client Quit]
<shevy> the more often you use it
<keystonelemur> There's a time and a place for it, but 99.99% of the time you should not use it
<arubincloud> Yeah, monkeypatch core classes instead.
<keystonelemur> it has to traverse the entire call stack, making it 2-3x slower. It smells of bad design when you have to rely on it.
<apeiros> j416: just call super
allfro has joined #ruby
<apeiros> j416: also, I'd second the motion that you should avoid method_missing and only use it very rarely.
arietis has joined #ruby
<chipotle> there's a coupon for half off of the MEAP edition of the well grounded rubyist edition 2
locriani has quit [Read error: Connection reset by peer]
<chipotle> just google for the coupon, worked for me last night :)
fgo has quit [Ping timeout: 276 seconds]
alex88 has joined #ruby
srji has quit [Ping timeout: 252 seconds]
yano has quit [Quit: WeeChat, The Better IRC Client -- http://weechat.org/]
<atmosx> shevy: whad do you mean a decentralized system working with biological data?!
freezey has joined #ruby
<shevy> atmosx right now you mostly have just one database at some URL
<shevy> it gives you some info
bthesorceror has quit [Remote host closed the connection]
<shevy> but not all you may need
locriani has joined #ruby
s2013 has joined #ruby
<shevy> and it is at some remote place xyz
blackavr has quit [Quit: blackavr]
HashNuke has joined #ruby
papercode has joined #ruby
<j416> apeiros: yes, I also share the same thought
<shevy> if you want to query like all useful information, you may have to scan several remote databases
servatoo has quit [Remote host closed the connection]
<shevy> and then you get some narrow data back which you probably often can't make too much sense
locriani has quit [Remote host closed the connection]
<j416> apeiros: this is a lightweight ORM model
<apeiros> j416: means you can infer the available methods and generate them
servatoo has joined #ruby
<apeiros> much better than method_missing
<j416> apeiros: that's nice, didn't think of that. thanks
<j416> apeiros00
<j416> er
<j416> apeiros++
<apeiros> if you're performance sensitive, use class_eval + def instead of define_method
srji has joined #ruby
redondos has quit [Excess Flood]
jacobsmith has quit [Ping timeout: 276 seconds]
sputnik13 has joined #ruby
Night-hacks has joined #ruby
redondos has joined #ruby
phansch has quit [Ping timeout: 252 seconds]
redondos has quit [Changing host]
redondos has joined #ruby
<shevy> hehe
<j416> if I want to create the methods from inside a class << self, it would be instance_eval and not class_eval, right=?
<j416> I always mix these up
yano has joined #ruby
dunix has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
Kricir has quit [Remote host closed the connection]
Asher has joined #ruby
lw_ has joined #ruby
vpretzel is now known as vpretzel|1300
hamakn has joined #ruby
servatoo has quit [Ping timeout: 240 seconds]
crzrcn has joined #ruby
<apeiros> j416: still class_eval
<j416> oh
<apeiros> any code you'd write in a class body (and class << self opens a class body) is class_eval
<j416> I will experiment
<j416> thanks
djbkd has quit [Quit: Leaving...]
aedorn has quit [Ping timeout: 265 seconds]
aspires has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
<j416> (this is inside a method, inside class << self, though)
sski has joined #ruby
<apeiros> so?
<apeiros> still opens a class body
danshult_ has joined #ruby
lw has quit [Ping timeout: 276 seconds]
Morkel has quit [Quit: Morkel]
<j416> ok :)
djbkd has joined #ruby
dima__ has joined #ruby
<j416> hm still failing
<j416> but, I have to leave, sigh
wallerdev has joined #ruby
<j416> I will fix it tomorrow. Woho.
michaeldeol has joined #ruby
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<j416> thanks for all the help so far! :)
* j416 afk
joonty has quit [Ping timeout: 252 seconds]
DrShoggoth has joined #ruby
crzrcn has quit [Ping timeout: 252 seconds]
lw_ has quit [Ping timeout: 240 seconds]
cescalante is now known as ce_afk
xaq has quit [Remote host closed the connection]
ce_afk is now known as cescalante
yekta has joined #ruby
danshultz has quit [Ping timeout: 276 seconds]
sski has quit [Ping timeout: 255 seconds]
jacobsmith has joined #ruby
ikaros has quit [Quit: Ex-Chat]
heftig has quit [Quit: Quitting]
ponga has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Bruno_ has joined #ruby
peret has quit [Ping timeout: 240 seconds]
ponga has quit [Read error: No route to host]
<timgauthier> ohh yeah... 80's pop music!
<webgen> -.-
ponga has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
<shevy> timgauthier 90's!
<timgauthier> i grew up in the 90's
<timgauthier> we didn't have pop
<timgauthier> we had grunge and hiphop
<timgauthier> and neon
<timgauthier> and shirts without sleeves and stripes
robbyoconnor has joined #ruby
<timgauthier> so basically 80's but ... not as good?
<timgauthier> oh and frosted tips
<timgauthier> holyshit nm we DID have pop, n*sync
connor_goodwolf has quit [Ping timeout: 265 seconds]
SubSignal has quit [Ping timeout: 255 seconds]
weaksauce has quit [Quit: Linkinus - http://linkinus.com]
connor_goodwolf has joined #ruby
servatoo has joined #ruby
<shevy> timgauthier what man
<shevy> timgauthier did you miss techno, eurodance and trance?
compleatang has quit [Remote host closed the connection]
jhass|off is now known as jhass
<timgauthier> i lived in NA so yes
noop has quit [Ping timeout: 264 seconds]
<shevy> :(
<timgauthier> DMX was where it was for party music
<shevy> I dont know what a DMX is but it sounds like a toxic substances
<timgauthier> unless you didn't wanna get shot, then you had n*sync with a beat added
noop has joined #ruby
<shevy> omg
<timgauthier> !g DMX (music)
<shevy> you'd shoot yourself if nsync would be active
rezzack has joined #ruby
tos9 has joined #ruby
<shevy> timgauthier wtf is this
<timgauthier> 90's!
<shevy> prison rap?
<shevy> nonono
MatthewsFace has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<timgauthier> basically
<tos9> Hi. Is there a thing that will make ctags generate tags for rake tasks?
<timgauthier> its funny, DMX is now a pastor lol
<timgauthier> crags... rake tasks.. what is this #ruby?
yfeldblum has quit [Remote host closed the connection]
geggam has quit [Ping timeout: 264 seconds]
<timgauthier> ugh GEMA
<shevy> grrr
<timgauthier> sec i gotta put it into my other browser
yfeldblum has joined #ruby
<shevy> GEMA must be destroyed
<shevy> the odd thing is
<timgauthier> i don't disagree
<shevy> the blocking isn't 100%, some videos will always play fine with the same music
timonv_ has quit [Remote host closed the connection]
tvw has joined #ruby
<timgauthier> yeah
ponga has quit [Ping timeout: 264 seconds]
<timgauthier> YT doesn't automate it for them i think
echevemaster has joined #ruby
<timgauthier> tos9 i don't know your question, sorry :S
r0bby has joined #ruby
phoo1234567 has quit [Quit: Leaving]
<timgauthier> shevy this was the best song of the years, this made me afraid to get shot, so we listened to it really quiet on our tape deck https://www.youtube.com/watch?v=thIVtEOtlWM
<shevy> why are you so afraid to get shot
<lectrick> to get shot how? what? you mean like immunized?
BWStearns has joined #ruby
<tos9> timgauthier: you don't understand the question or you don't know the answer :)?
r0bby_ has joined #ruby
<timgauthier> both actually, but its cause i'm a noob
workmad3 has quit [Ping timeout: 240 seconds]
<shevy> tos9 I would help! but I dont use rake so I have no idea
<timgauthier> this is funny they have the swat guys running around with uzi's in this music video lol
MatthewsFace has quit [Client Quit]
robbyoconnor has quit [Ping timeout: 240 seconds]
compleatang has joined #ruby
<shevy> I believe all that is shown in a music video
nvrch has quit [Quit: nvrch]
joonty has joined #ruby
claymore has quit [Ping timeout: 276 seconds]
r0bby has quit [Ping timeout: 240 seconds]
<timgauthier> lectrick where i grew up, i was afraid of legitimately getting shot with bullets.
<tos9> Ah :)
Hobogrammer has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
dunix has quit []
sambao21 has joined #ruby
joonty has quit [Client Quit]
rcoz has joined #ruby
ponga has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
ponga has quit [Remote host closed the connection]
_bart has quit [Quit: leaving]
pushpak has joined #ruby
tcstar has quit [Read error: Connection reset by peer]
webgen has quit [Remote host closed the connection]
RaCx has joined #ruby
deric_skibotn has joined #ruby
<shevy> timgauthier canada????
<timgauthier> yes
<shevy> do you look like a deer
<timgauthier> we had some mean gangs, north american indians, and asian triad immigrants
psyprus_ has quit [Quit: leaving]
<shevy> could you possibly be mistaken for a bear
<timgauthier> :P
<timgauthier> now, maybe
<shevy> lol
sambao21 has quit [Ping timeout: 240 seconds]
olivier_bK has quit [Ping timeout: 252 seconds]
senayar_ has quit [Remote host closed the connection]
danshultz has joined #ruby
geggam has joined #ruby
alexanderkyte2 has joined #ruby
<timgauthier> i'm kind of chubby and furry. :P
peeja has joined #ruby
carlyle has quit [Remote host closed the connection]
<alexanderkyte2> I'm having a really weird issue. Bundle show 'gemname' is working, but when running a script with ruby ./scriptname.rb, it can't require that file
eka_ has joined #ruby
<timgauthier> ./ is system root...
<alexanderkyte2> And I can't bundle exec ruby ./scriptname.rb because it needs to access a relative path
<alexanderkyte2> No, / is system root
<lectrick> timgauthier: rough neighborhood eh?
<alexanderkyte2> ./ is current directory
<timgauthier> lectrick quite :P
<lectrick> brb
toastynerd has quit [Remote host closed the connection]
danshult_ has quit [Ping timeout: 240 seconds]
eka has quit [Ping timeout: 240 seconds]
r0bby_ has quit [Remote host closed the connection]
<timgauthier> have you tried just without the / ?
claymore has joined #ruby
<alexanderkyte2> Yes
<timgauthier> then i'm out of sloppy suggestions
eka has joined #ruby
phoo1234567 has joined #ruby
carlyle has joined #ruby
omosoj has joined #ruby
alex88 has quit [Quit: Leaving...]
eka_ has quit [Ping timeout: 240 seconds]
<timgauthier> I've got, i've got, i've got a pocket full of sunshine!
mikecmpbll has quit [Quit: i've nodded off.]
kristiandelay has joined #ruby
momomomomo has quit [Quit: momomomomo]
tos9 has left #ruby [#ruby]
crystal77 has joined #ruby
timonv has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> damn those empty pants folks
<shevy> alexanderkyte2 the bundler experts are on #bundler
<shevy> except for Hanmac, he is also an expert when it comes to bundler
<shevy> wake up Hanmac !!!
lkba has joined #ruby
<Hanmac> appears
eka has quit [Ping timeout: 240 seconds]
<shevy> lol
jxf has quit [Read error: Operation timed out]
nari has quit [Ping timeout: 240 seconds]
benzrf|offline is now known as benzrf
eka has joined #ruby
claymore has quit [Ping timeout: 252 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
wmoxam has quit [Changing host]
wmoxam has joined #ruby
anaeem1 has quit [Remote host closed the connection]
sparrovv has joined #ruby
sparrovv has quit [Remote host closed the connection]
srji has quit [Ping timeout: 252 seconds]
danshultz has quit [Read error: Connection reset by peer]
<havenwood> bundle update hanmac
danshultz has joined #ruby
fgo has joined #ruby
* Hanmac is getting very trusty
wallerdev has quit [Quit: wallerdev]
claymore has joined #ruby
compleatang has quit [Remote host closed the connection]
tcstar has joined #ruby
freezey has quit [Remote host closed the connection]
Doppp has joined #ruby
zigomir has quit [Remote host closed the connection]
centrx has joined #ruby
psyko666 has quit [Remote host closed the connection]
Spami has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
<shevy> lol
obs has quit [Quit: Saliendo]
<shevy> bundle destroy Hanmac
<shevy> I have an idea
<shevy> we merge gem with bundle
<shevy> into
<shevy> gundle
SCommette has joined #ruby
mr_snowf1ake has joined #ruby
jamto11 has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 255 seconds]
saarinen has joined #ruby
lukec has quit [Quit: lukec]
mikecmpbll has joined #ruby
benzrf is now known as benzrf|offline
poguez_ has joined #ruby
srji has joined #ruby
aspires has quit []
benzrf|offline is now known as benzrf
lkba has quit [Ping timeout: 252 seconds]
akonny has joined #ruby
adamski2600 has quit [Quit: leaving]
fflush has joined #ruby
aspires has joined #ruby
fflush has quit [Changing host]
fflush has joined #ruby
crzrcn has joined #ruby
saarinen has quit [Ping timeout: 276 seconds]
Lewix has joined #ruby
crzrcn has quit [Client Quit]
terrellt has quit [Read error: Connection reset by peer]
blackavr has joined #ruby
jph98 has joined #ruby
terrellt has joined #ruby
crzrcn has joined #ruby
devdazed has quit [Quit: Bye]
rmorello|917 has quit [Ping timeout: 252 seconds]
klaut has quit [Remote host closed the connection]
<happytux> Can I let rake print the task name for the invoked task?
<happytux> Ant shows what task is running now.
<shevy> hey timgauthier I am bored
<happytux> shevy: ^^
<timgauthier> shevy i'm trying to see if i can airdrop content from my iPhone to the mac
<shevy> I am replacing lots of $FOO_BAR variables with $FBAR entries
<timgauthier> lol
dangerousdave has quit [Read error: Connection reset by peer]
<shevy> I realized that I am way too lazy to keep on typing the _
<timgauthier> nice
<timgauthier> what are you building this time ? also replace and find?
<shevy> timgauthier you mac users have way too much time playing around
<timgauthier> tab completion?
<shevy> haha
Stalkr_ has joined #ruby
<shevy> I open the files one after the other in my editor and MANUALLY fixing it
<shevy> and this is very boring
<shevy> so I turn my brain completely off and go to idle mode
<shevy> until it is over...
devdazed has joined #ruby
robup has quit [Quit: Page closed]
<happytux> shevy: You got no IDE with refactoring?
johncjensen has joined #ruby
Xeago has quit [Remote host closed the connection]
johncjensen has quit [Remote host closed the connection]
<Stalkr_> Is it possible for OptionParser to take multiple variables for a single flag? It could be `--age YEAR MONTH DAY` for example
crzrcn has quit [Quit: Leaving.]
timonv_ has joined #ruby
jonno11 has joined #ruby
<atmosx> Stalkr_: IIRC yes
<timgauthier> you can't find and replace across multiple files shevy ? :O
servatoo has quit [Remote host closed the connection]
<atmosx> Stalkr_: but you don't really need.. these can work as 1 variable --age 141201
servatoo has joined #ruby
<Stalkr_> atmosx: Do you have any idea how? I am not sure what to google
r0bby_ has joined #ruby
emaxi has quit [Remote host closed the connection]
<Stalkr_> and yes, I was sure someone would point out it could be done with one argument, it was just an example :-)
kristiandelay has quit [Read error: No route to host]
<atmosx> sure wait
baroquebobcat has joined #ruby
emaxi has joined #ruby
<atmosx> Stalkr_: here's a handler that uses optparse, that I created for a gem a couple of days ago https://gist.github.com/atmosx/11223723
rmorello has joined #ruby
toastynerd has joined #ruby
<Stalkr_> atmosx: Which flag takes multiple arguments?
george2 has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 265 seconds]
<atmosx> Stalkr_: oh none, but you can play with the arguments, using regexp
george2 has joined #ruby
mven has quit [Quit: Leaving]
<atmosx> Stalkr_: I would be confused by an argument that goes AA BB CC
<atmosx> Stalkr_: IMHO it's way better to use AABBCC
crzrcn has joined #ruby
eka has quit [Read error: Connection reset by peer]
eka has joined #ruby
lukec has joined #ruby
servatoo has quit [Ping timeout: 252 seconds]
<Stalkr_> If I wanted your name and birthdate, wouldn't it be awkward to write `--age atmosx19700012`?
michaeldeol has joined #ruby
weaksauce has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
<shevy> happytux what IDE do you recommend?
emaxi has quit [Ping timeout: 255 seconds]
rokob has joined #ruby
<shevy> timgauthier probably with some commandline scripts
<atmosx> Stalkr_: why would you use 1 option for name and birthday? These are two different things and it's extremely compicated to handle
phansch has joined #ruby
allfro has quit [Quit: allfro]
<atmosx> Stalkr_: you could do it using regexp's but might be tricky
<shevy> timgauthier thing is, I don't use awk or sed so the replacement would have to be ruby based
<atmosx> Stalkr_: use one option for name and another for age/date/birthday
djbkd has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
<timgauthier> i love text mate and sublime for that feature
<atmosx> Stalkr_: __FILE__ --name 'atmosx' --birthday '141225'
<Stalkr_> Would you instead use `--age --name atmosx --born 19700012`?
cpruitt has quit [Quit: cpruitt]
zigomir has joined #ruby
<Stalkr_> Why the __FILE__?
<Stalkr_> and why no --age?
<atmosx> Stalkr_: nevermind the __FILE__ thing
<atmosx> Stalkr_: How are your models structured?
<atmosx> becuase all this is confusing .... you are mixing name and birthday
<atmosx> these usually are two different fields, in any database...
phinfonet has joined #ruby
<Stalkr_> I have no models, basically just trying to make an API wrapper
servatoo has joined #ruby
<atmosx> Stalkr_: and the API returns name and birthday all together?
<Stalkr_> Well, it's just all examples, but it returns JSON based on those values
<atmosx> Stalkr_: can you paste the JSON reply?
<jhass> Stalkr_: stop doing examples then, describe your real problem
momomomomo has joined #ruby
pcorliss has joined #ruby
eka_ has joined #ruby
simono has joined #ruby
andy___ has quit [Read error: Connection reset by peer]
emaxi has joined #ruby
fannye has quit [Remote host closed the connection]
<Stalkr_> Okay, a real example would be a thread on 4chan, and I want to download all images in a thread. So I want two arguments for --download, the board and thread number
andy___ has joined #ruby
cpruitt has joined #ruby
iceden has quit [Ping timeout: 265 seconds]
<Stalkr_> So what I want to do is `--download BOARD THREAD`
nichtdiebohne has joined #ruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
jamto11 has joined #ruby
<jhass> what about --download BOARD/THREAD ?
<jhass> or --download "BOARD THREAD" ?
<Stalkr_> Then do a split?
<jhass> yeah
razrunelord has joined #ruby
eka has quit [Ping timeout: 240 seconds]
mark_locklear has quit [Ping timeout: 252 seconds]
<Stalkr_> I guess it would work, but I was just interested if two arguments is possible with optparser
<shevy> read the docu
<shevy> oh wait
<shevy> :D
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
nateberkopec has joined #ruby
<Stalkr_> shevy: Yep, don't feel like filing a ticket
hobodave has joined #ruby
<shevy> I will!
<shevy> I have enough of optparser finally
<shevy> I am writing it right now
nanoyak has joined #ruby
Phoenixz has joined #ruby
razrunelord has quit [Client Quit]
abra has quit [Ping timeout: 252 seconds]
<Stalkr_> shevy: Cool :-)
<shevy> will take a while before I can file it but will probably do so today, at central europe night time
<Stalkr_> Sounds awesome
<Stalkr_> I think I will just have people specify a URL
razrunelord has joined #ruby
<atmosx> Stalkr_ I'd go for download --board 123 --thread 123
<shevy> Anyone who hates optparser, please write down one sentence what you hate about it - I will try to include it before I file at bugs-ruby-lang
<atmosx> it's cleaner, way cleaner
<atmosx> it's more close to the unix way
<Stalkr_> atmosx: Compared to URL?
freezey has joined #ruby
djbkd has joined #ruby
abra has joined #ruby
pcorliss has quit [Remote host closed the connection]
lkba has joined #ruby
<Stalkr_> atmosx: Should I then check ARGV[0] == download, then get the two flags?
glanzi has joined #ruby
<havenwood> Stalkr_: is not downloading ever an option?
<shevy> damn it ... we still also have getoptlong
Matip has joined #ruby
<Matip> Hello
endash has joined #ruby
<Matip> is there a way to overide all the methods of a class?
<havenwood> Stalkr_: why not use Thor or Slop or Cocaine?
<Matip> something like method_missing but for methods that are not missing :P
<Stalkr_> havenwood: I guess it could do other stuff, not for now though
<benzrf> Matip: sadly no
razrunelord has quit [Client Quit]
<atmosx> Stalkr_: nope you don't need argv[0] really
<Stalkr_> havenwood: I have heard of Thor, but not Slop or Cocaine, do you recommend that?
<Matip> I need to write some code before every method :(
<benzrf> Matip: what you /could/ do
pel_daniel has joined #ruby
<atmosx> Stalkr_: OptParse handles all the options, check out the example I gave you
<benzrf> Matip: is undefine every method and save them as procs in a dict
<benzrf> or something
<benzrf> Matip: then method_missing can delegate to them as necessary
jxf has joined #ruby
<benzrf> bullshit, i know
<benzrf> Matip: have you looked into AOP?
<havenwood> Stalkr_: Slop, Cocaine and Trollop are good opt parsers. Thor is more but is actually pretty nice.
mrmargolis has joined #ruby
<benzrf> i usin thor in Quick
<benzrf> its p nice
<Stalkr_> atmosx: I have, I was mainly interested in figuring out if two arguments is possible, but I am always interested in trying alternatives
<Matip> thor?
<jhass> Matip: make a new class that wraps your objects. Have a look at the delegate stdlib
<Matip> is that an AOP framework or what?
<Stalkr_> havenwood: Which one would you recommend for a few options?
djbkd has quit [Remote host closed the connection]
<Matip> I kind of need a quick solution, it's for a demo which is of course not working :)
AlSquire has quit [Quit: This computer has gone to sleep]
<Matip> no time to wrap anything, probably undefining all methods is a better idea
djbkd has joined #ruby
<atmosx> Stalkr_: try opt.on("-p","--print [OPTION1] [OPTION2]","fetch current amount in picodollars")
mikepack has joined #ruby
<Stalkr_> atmosx: Doesn't work, unfortunately
<atmosx> Stalkr_: then you can get the options, split them and make it work
<atmosx> manually
arietis has joined #ruby
wereHamster has joined #ruby
r_rios has joined #ruby
rrios has joined #ruby
<atmosx> like option[:result].split(' ') # -> Array, with [0] and [1] as two options
<atmosx> but as I said, it's not POSIX compliant, will confuse others... if you plan to shar eit
mercwithamouth has quit [Ping timeout: 240 seconds]
x1337807x has joined #ruby
<atmosx> you need 1 option per flag
<benzrf> compliant more like complaint
<benzrf> B)
bluOxigen has joined #ruby
<happytux> Can Rake print the current task name? Or do I have to add this manually?
<atmosx> lol
jph98 has quit [Read error: Connection reset by peer]
<Stalkr_> I gotta run, thanks for the help!
<atmosx> happytux: you can add it manually I guess, it's easier
<atmosx> just puts task.name
Stalkr_ has quit [Quit: Leaving...]
jph98 has joined #ruby
timonv_ has quit [Remote host closed the connection]
crzrcn has quit [Quit: Leaving.]
shinobi_one has joined #ruby
iceden has joined #ruby
<happytux> atmosx: Can I define a base task and let the other inherit? So I would add the puts task.name to the base task only.
dkamioka has joined #ruby
<havenwood> Stalkr_: if you want commands with options, Thor. a few simple options, Slop.
george2 has quit [Ping timeout: 252 seconds]
mikepack has quit [Ping timeout: 265 seconds]
eka_ has quit [Read error: Connection reset by peer]
eka has joined #ruby
yekta has quit [Quit: yekta]
mehlah has quit [Quit: Linkinus - http://linkinus.com]
_djbkd has joined #ruby
<atmosx> happytux: don't know
ghr has joined #ruby
<atmosx> happytux: Not sure there's a task name there, just put 'task.methods.sort.join(', ')' in your Rakefile to see what methods are available
<atmosx> bbl
happytux has quit [Read error: Connection reset by peer]
chipotle has quit [Quit: cya]
terrellt has quit [Remote host closed the connection]
terrellt has joined #ruby
_djbkd has quit [Remote host closed the connection]
paulfm has quit []
testcore has joined #ruby
djbkd has quit [Ping timeout: 255 seconds]
djbkd has joined #ruby
<shevy> havenwood \o/
<shevy> havenwood I notice you don't recommend optparse
perldork has joined #ruby
testcore has quit [Quit: BitchX: the original point-and-click interface.]
instantaphex has joined #ruby
terrellt has quit [Remote host closed the connection]
paulfm has joined #ruby
SloggerKhan has joined #ruby
<centrx> OptionParser works well
happytux has joined #ruby
andy___ has quit [Read error: Connection reset by peer]
mark_locklear has joined #ruby
terrellt has joined #ruby
jacobsmith has quit [Ping timeout: 240 seconds]
testcore has joined #ruby
<shevy> centrx how do you require it
<SloggerKhan> How do you make a symbol instance with the Symbol class? Is using colon-notation the only way?
<centrx> With PHP?
<shevy> yes
<jhass> SloggerKhan: String#to_sym is another
<Matip> benzrf, just in case, do you know how to undefined all methods at once? to avoid writing a function for each of them
<centrx> SloggerKhan, You could do Symbol.new but that seems silly
andy__ has joined #ruby
<Matip> undefine*
<Hanmac> SloggerKhan: :"abc#{val}def" is anthoer
x1337807x has quit [Ping timeout: 276 seconds]
<shevy> there is no Symbol.new
jxf has quit [Ping timeout: 265 seconds]
<Matip> I have the list of methods btw, I guess there's a built in "define_method" or something in ruby
<benzrf> Matip: use TheClass.instance_methods to get a list
<SloggerKhan> jhass: That is using the String class. Hanmac: that's colon notation. I was mostly thinking it odd that there's no Symbol.new so far as I can tell
<RubyPanther> SloggerKhan: you can do it from C with ID2SYM( rb_intern(char*) )
<shevy> always with the C!
<benzrf> Matip: u can use alias_method, undef_method, define_method
<benzrf> among others
aagdbl has quit [Quit: Connection closed for inactivity]
toastynerd has joined #ruby
<benzrf> ^methods on __class__
terrellt has quit [Remote host closed the connection]
johncjensen has joined #ruby
perldork has quit [Remote host closed the connection]
<jhass> Matip: you'd probably be already done with writing a delegator/decorator using stdlib delegate, just sayin'
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
qba73 has quit [Remote host closed the connection]
<RubyPanther> considering that strings are just character arrays in Ruby, and not already like symbols as in some languages, there is not really much reason not to use String#to_sym
<Matip> do you have an example? I'm not sure what you mean by delegator/decorator (?)
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
<Matip> jhass
s2013 has quit [Ping timeout: 276 seconds]
terrellt has joined #ruby
fgo has joined #ruby
<SloggerKhan> Is it possible to add methods to Symbol? I know it's not allowed to add them to symbols themselves for some reason.
kirun has joined #ruby
happytux has quit [Read error: Connection reset by peer]
<RubyPanther> SloggerKhan: yes
carlyle has quit [Remote host closed the connection]
Speed has joined #ruby
<shevy> cool
<Hanmac> SloggerKhan: but you cant define singleton methods on Symbol objects
<centrx> SloggerKhan, In Ruby, everything is an object, a class instance which descends from class Object
<shevy> >> x = :yo; def x.bla;puts 'bla'; end; x.bla
<eval-in__> shevy => can't define singleton (TypeError) ... (https://eval.in/140508)
Speed has quit [Client Quit]
<RubyPanther> "some reason" is that they're not normal objects, they're immediate values, which is a fancy way of saying they're actually C objects with a Ruby wrapper
<shevy> not everything is an object!
<havenwood> >> class Symbol; def call *args; method(self).call *args end end; :puts.call 'hi'
<eval-in__> havenwood => hi ... (https://eval.in/140509)
<centrx> Every object is an object
fgo has quit [Read error: Connection reset by peer]
phantasm66 has joined #ruby
<RubyPanther> Everything is an object, but not every object is the same sort of object
Speed has joined #ruby
<centrx> Some objects are better than others
<RubyPanther> from a C extension it is normal to handle symbols as C ints and not as objects
<shevy> havenwood cool to see that the most oftenly used word in your code is 'call'
<jhass> Matip: something like class FooDecorator < SimpleDelegator; def method_missing(*args, &block); before; super; after; end; end; foo = FooDecorator.new(Foo.new) should probably do already
<centrx> >> Symbol.new(Object.new.to_s)
<eval-in__> centrx => undefined method `new' for Symbol:Class (NoMethodError) ... (https://eval.in/140512)
<Hanmac> shevy, something is a pointer to an object, other does return an object, or can be turned into an object
<centrx> I guess yo ucan't use Symbol.new
<havenwood> shevy: then you can: :puts['hi'] #>> hi
yfeldblum has joined #ruby
jamto11_ has joined #ruby
<Matip> no way, the instances are created everywhere!
<shevy> Hanmac why can I not define methods on my symbol object :(
<shevy> jmm
<shevy> >> Symbol[]
<eval-in__> shevy => undefined method `[]' for Symbol:Class (NoMethodError) ... (https://eval.in/140514)
<shevy> havenwood that : before puts really trips me up
omosoj has quit [Ping timeout: 240 seconds]
<havenwood> shevy: its a Symbol! :P
<havenwood> it's*
<shevy> :| is a smiley!!!
<jhass> Matip: worst case, override Foo.new to return FooDecorator, but I wouldn't recommend that in production code
freezey has quit [Remote host closed the connection]
<shevy> did we have a coding challenge in ruby yet where we are allowed only to use smileys to do something?
<shevy> and perhaps .call
<shevy> and []
obs has joined #ruby
p8952 has joined #ruby
obs has quit [Remote host closed the connection]
ktosiek has joined #ruby
<RubyPanther> >> Object.methods - Symbol.methods
<eval-in__> RubyPanther => [:new] (https://eval.in/140517)
<shevy> and ->
<shevy> but not more!!!
<RubyPanther> >> Symbol.methods - Object.methods
<RubyPanther> did somebody run out of botsnacks?
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
qba73 has joined #ruby
servatoo has quit [Remote host closed the connection]
jamto11_ has quit [Ping timeout: 255 seconds]
lsmola has quit [Ping timeout: 255 seconds]
Celm has joined #ruby
servatoo has joined #ruby
sdwrage has joined #ruby
terrellt has quit [Remote host closed the connection]
sparrovv has joined #ruby
arietis has joined #ruby
johncjensen has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
servatoo has quit [Read error: No route to host]
servatoo_ has joined #ruby
markmarkmark has joined #ruby
p8952 has quit [Ping timeout: 264 seconds]
carraroj has joined #ruby
terrellt has joined #ruby
p8952 has joined #ruby
<SloggerKhan> I guess my plans to add an' is?' method to Symbol are doomed.
arturaz has quit [Ping timeout: 252 seconds]
<jhass> what would that do anyway?
sambao21 has joined #ruby
happytux has joined #ruby
<happytux> puts "--- #{task.name} ---"
<happytux> This does not work.
<happytux> I get --- ---
shevy has quit [Ping timeout: 276 seconds]
<happytux> task.name is missing.
<jhass> or nil
shevy has joined #ruby
<jhass> actually it's most likely "" or nil
terrellt has quit [Remote host closed the connection]
rrios has quit [Ping timeout: 240 seconds]
the_f0ster has joined #ruby
eka has joined #ruby
<SloggerKhan> sym_x = :x and then sym_x.is? :x would be true not very exciting.
terrellt has joined #ruby
r_rios has quit [Ping timeout: 265 seconds]
freezey has joined #ruby
sepp2k has joined #ruby
<jhass> >> class Symbol; alias_method :is?, :==; end; :x.is? :x
<eval-in__> jhass => true (https://eval.in/140528)
razrunelord has joined #ruby
<SloggerKhan> I didn't even realize that's how == worked.
carraroj has quit [Ping timeout: 276 seconds]
terrell_t has joined #ruby
<SloggerKhan> Though I guess I should have.
jph98 has quit [Read error: Connection reset by peer]
terrellt has quit [Read error: Connection reset by peer]
jph98 has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
supermarin_ has joined #ruby
anaeem1_ has joined #ruby
crzrcn has joined #ruby
danshultz has joined #ruby
<shevy> hehe
<timgauthier> shevy
terrell_t has quit [Remote host closed the connection]
<timgauthier> what do you think of the green/blue iPhone in that bottom picture?
sambao21 has quit [Quit: Computer has gone to sleep.]
<SloggerKhan> Yeah, wow. I feel stupid now.
<benzrf> timgauthier: wow that site actually looks p nice
eka has quit [Read error: Connection reset by peer]
<timgauthier> thanks benzrf
<timgauthier> You ever doubted my skills? :P
<timgauthier> (i do constantly)
sambao21 has joined #ruby
eka has joined #ruby
terrellt has joined #ruby
r0bby_ has quit [Ping timeout: 252 seconds]
<shevy> timgauthier the light green on middle-light blue background eats the eyes
<shevy> timgauthier I guess the light green colour is invariant?
eka has quit [Read error: Connection reset by peer]
peret has joined #ruby
johncjensen has joined #ruby
<happytux> anyone? why is task.name empty?
<shevy> perhaps the light blue background could be made even lighter and less blue
eka has joined #ruby
<timgauthier> both the background and the colour of the phone are variable, i'm playing with changes now.
cpruitt has quit [Quit: cpruitt]
<timgauthier> the blue is a little .... vibrant
<lagweezle> timgauthier: verreh pretty! (although the links at the top seem far too muted)
IceDragon_ has joined #ruby
Es0teric has joined #ruby
<shevy> just a little!
<shevy> the top half of the page is better than the bottom half
<shevy> happytux the only reason that can be is because task.name gives you back nil or ''
toastynerd has quit [Remote host closed the connection]
IceDragon has quit [Ping timeout: 252 seconds]
<RubyPanther> SloggerKhan: you can add the method anyways, you just need to add it to the Symbol class and not to the instances
<RubyPanther> >> class Symbol; def is? arg; self == arg end end ; :is?.is?:is?
<eval-in__> RubyPanther => true (https://eval.in/140530)
jph98 has quit [Quit: Ex-Chat]
Milly_Bays has quit [Ping timeout: 264 seconds]
lw has joined #ruby
razrunelord has left #ruby [#ruby]
supermarin_ has quit [Remote host closed the connection]
razrunelord has joined #ruby
<razrunelord> Hey guys, does this look like source code pro? http://imgur.com/5arYM6M
supermarin_ has joined #ruby
<timgauthier> not really
<jhass> razrunelord: it can't. It's shared as an image. A "pro" wouldn't do that
<happytux> shevy: But they write that task.name would hold the name of current task.
<razrunelord> Oops, sorry..I meant the font.
<timgauthier> razrunelord naw it doesn't
<shevy> happytux perhaps they are lying or there is a bug
<razrunelord> also, jhass that's redmine's rails app
<razrunelord> timgauthier: can you show me a ruby snippet in source code pro font?
<timgauthier> shevy a b or c, i think probably a http://timgauthier.com/middleman/projects/ahopefilm/#
pika_pika has quit [Ping timeout: 276 seconds]
Xeago has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> timgauthier hmm probably b but mostly because it seems to fit into the rest of the colours better on that page
<shevy> or perhaps a
IceDragon_ is now known as IceDragon
Bruno_ has quit [Ping timeout: 264 seconds]
<shevy> but not c
<timgauthier> thats because its the same image as the rest of the page lol i just don't like how it is this "3d" phone on a flat image
<timgauthier> c is neat... but yeah, it bleeds a bit ;)
ghr has quit [Ping timeout: 276 seconds]
<shevy> darker looks more business like, lighter like that light blue looks hipster site
jpstokes has joined #ruby
<shevy> so if you have a hipster site, go for c
<timgauthier> hehe
Milly_Bays has joined #ruby
<happytux> hm
<timgauthier> i kind of enjoy that, but maybe not for this one :P
<shevy> you just inspired me to listen to "everyday I am shuffling it" - they would surely pick c
qba73 has quit [Remote host closed the connection]
jonno11 has joined #ruby
michaeldeol has joined #ruby
ftj has joined #ruby
reset has joined #ruby
combusean has joined #ruby
qba73 has joined #ruby
Sawbones has joined #ruby
aspires has quit []
s2013 has joined #ruby
chihhsin has quit [Ping timeout: 252 seconds]
ryanilg has joined #ruby
MillyBays has joined #ruby
_reset has joined #ruby
wjlafrance has joined #ruby
Zespre has quit [Ping timeout: 252 seconds]
<timgauthier> yes, yes they would. and that would be fantastic :D
<Matip> ok, I'm almost there!! but I'm not sure this could be done: http://pastebin.com/raw.php?i=aJj58Qgi
yfeldblum has quit [Ping timeout: 240 seconds]
<timgauthier> i wish i had the balls to do my entire website in those colours
<Matip> it says fields (in module Foo) is undefined
yfeldblum has joined #ruby
johncjensen has quit [Remote host closed the connection]
<Matip> which is true actually, it's defined in Bar
<timgauthier> i like raw paste bins...
Xeago has quit [Ping timeout: 276 seconds]
<timgauthier> those look nice
<Matip> no need for fancy colors uh? :P
Milly_Bays has quit [Ping timeout: 264 seconds]
<timgauthier> i like fancy colours (as my site is showing) but i like cleanly rendered text more, which safari does great on a raw pastebin
crystal77 has quit [Quit: Computer has gone to sleep.]
aspires has joined #ruby
testcore has quit [Ping timeout: 272 seconds]
reset has quit [Ping timeout: 240 seconds]
swerter has joined #ruby
<shevy> hmm require 'foo' is not the same as require 'Foo' right? require would look for foo.rb or Foo.rb
<Matip> I thought you were being sarcastic u.u
crystal77 has joined #ruby
<timgauthier> naw Matip
<jhass> Matip: make fields an instance variable (@fields)
gfunc has joined #ruby
<jhass> hm, actually not sure if that'll work
paulfm has quit []
<Matip> nop, it would I think
<Matip> the problems is that the line with "fields.each" is executed when Foo is evaluated
<Matip> I mean, when ruby creates the module
<Matip> but it should be evaluated when Bar includs it
<jhass> Matip: the more common approach would be module Foo; def define_fields *fields; ...; end; end; class Bar; extend Foo; define_fields :bar, :xux; end;
InfraRuby has joined #ruby
djbkd has quit [Remote host closed the connection]
chrisja has joined #ruby
<centrx> #rationalize vs #to_r ?
paulfm has joined #ruby
phantasm66 has quit [Quit: *poof*]
<Matip> I think it wouldn't work either, let me check
kristiandelay has joined #ruby
kristiandelay is now known as subsignal
djbkd has joined #ruby
carraroj has joined #ruby
kaspergrubbe has joined #ruby
omosoj has joined #ruby
phantasm66 has joined #ruby
terrellt has quit [Remote host closed the connection]
timonv has joined #ruby
dkamioka has quit [Remote host closed the connection]
badhatter has quit [Read error: Connection reset by peer]
Zespre has joined #ruby
chihhsin has joined #ruby
terrellt has joined #ruby
swerter has quit [Ping timeout: 252 seconds]
subsignal is now known as SubSignal
<timgauthier> for all the bad things about germany. pizza.de is awesome
claymore has quit [Ping timeout: 240 seconds]
dkamioka has joined #ruby
i_s has joined #ruby
<Matip> jhass, this seems to work, which is more or less what you wrote :) http://pastebin.com/raw.php?i=0FEv9HJA
<Matip> thanks
RaCx has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<jhass> Matip: the local seems superfluous
mengu has quit [Remote host closed the connection]
SHyx0rmZ has joined #ruby
benzrf is now known as benzrf|offline
Night-hacks has quit [Quit: Leaving.]
<jhass> and if you want to allow both, define [:a, :b] and define :a, :b, do def define *fields; [*fields].each ....
qba73 has quit []
phantasm66 has quit [Quit: *poof*]
servatoo_ has quit [Remote host closed the connection]
<Matip> it's not in the real code, fields is actually defined by a gem, not me
djbkd has quit [Remote host closed the connection]
agjacome has joined #ruby
<Matip> yeah, it's a mess.. just for this demo anyway
freezey has quit [Remote host closed the connection]
servatoo has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
claymore has joined #ruby
servatoo has quit [Read error: Connection reset by peer]
jsutch has quit [Quit: Textual IRC Client: www.textualapp.com]
servatoo has joined #ruby
mrgoodcat is now known as bookie_sentry
s2013 has quit [Ping timeout: 252 seconds]
bookie_sentry is now known as mrgoodcat
phantasm66 has joined #ruby
djbkd has joined #ruby
shevy has quit [Ping timeout: 240 seconds]
mrgoodcat is now known as bookie_sentry
bookie_sentry is now known as mrgoodcat
shevy has joined #ruby
closer has quit [Ping timeout: 252 seconds]
zigomir has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
supermarin_ has quit [Remote host closed the connection]
mrgoodcat is now known as bookie_sentry
bookie_sentry is now known as mrgoodcat
zigomir has joined #ruby
havenwood has joined #ruby
xaq has joined #ruby
jottr_ has joined #ruby
servatoo has quit [Remote host closed the connection]
closer has joined #ruby
jottr has quit [Read error: Operation timed out]
Es0teric has quit [Quit: Computer has gone to sleep.]
servatoo has joined #ruby
sdouglas has joined #ruby
Hanmac1 has joined #ruby
_reset has quit [Quit: Leaving...]
treehug8_ has joined #ruby
sambao21 has joined #ruby
treehug8_ has quit [Max SendQ exceeded]
yfeldblum has quit [Remote host closed the connection]
freezey has joined #ruby
johncjensen has joined #ruby
treehug8_ has joined #ruby
havenwood has quit [Ping timeout: 252 seconds]
zigomir has quit [Ping timeout: 252 seconds]
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
reset has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
treehug88 has quit [Ping timeout: 252 seconds]
ascarter has joined #ruby
afex has joined #ruby
servatoo has quit [Ping timeout: 264 seconds]
Aaaal has quit [Quit: Aaaal]
_reset has joined #ruby
momomomomo has joined #ruby
rdark has quit [Quit: leaving]
carlyle has joined #ruby
Es0teric has joined #ruby
eynj has joined #ruby
Xeago has joined #ruby
fgo has joined #ruby
glanzi has quit [Remote host closed the connection]
reset has quit [Ping timeout: 240 seconds]
tjsousa has quit [Ping timeout: 252 seconds]
zigomir has joined #ruby
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
vpretzel|1300 is now known as vpretzel
vpretzel is now known as vpretzel|516
senayar has joined #ruby
jamto11_ has joined #ruby
zigomir has quit [Remote host closed the connection]
s2013 has joined #ruby
Milly_Bays_ has joined #ruby
zigomir has joined #ruby
xcv has joined #ruby
sepp2k1 has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
sepp2k has quit [Ping timeout: 240 seconds]
kaspergrubbe has quit [Remote host closed the connection]
MillyBays has quit [Ping timeout: 265 seconds]
reset has joined #ruby
saarinen has joined #ruby
Shidash has joined #ruby
jamto11_ has quit [Ping timeout: 265 seconds]
zigomir has quit [Ping timeout: 252 seconds]
x1337807x has joined #ruby
Lewix has quit [Remote host closed the connection]
_reset has quit [Ping timeout: 240 seconds]
x1337807x has quit [Client Quit]
Night-hacks has joined #ruby
s2013 has quit [Ping timeout: 240 seconds]
servatoo has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
toastynerd has joined #ruby
jobewan has quit [Quit: Leaving]
saarinen has quit [Ping timeout: 240 seconds]
testcore has joined #ruby
asteros has joined #ruby
jobewan has joined #ruby
asteros has quit [Client Quit]
asteros has joined #ruby
servatoo_ has joined #ruby
benzrf|offline is now known as benzrf
maletor has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eka has quit [Read error: Connection reset by peer]
eka has joined #ruby
heftig has joined #ruby
servatoo has quit [Ping timeout: 255 seconds]
eka has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
servatoo has joined #ruby
eka has joined #ruby
moritzs has quit [Ping timeout: 265 seconds]
rmorello is now known as rmorello|917
Bruno_ has joined #ruby
Zespre has quit [Ping timeout: 252 seconds]
Milly_Bays_ has quit [Ping timeout: 255 seconds]
aspires has quit []
centrx has quit [Quit: All this computer hacking is making me thirsty]
xaq has quit [Remote host closed the connection]
servatoo_ has quit [Ping timeout: 264 seconds]
combusean has quit [Ping timeout: 252 seconds]
Zespre has joined #ruby
servatoo_ has joined #ruby
paulfm has quit []
<ehc> Is there a way to do what !! in bash does in IRB? Sorta like _ but for the last statement, not the last result?
jxf has joined #ruby
Hanmac has joined #ruby
servatoo has quit [Ping timeout: 240 seconds]
_maes_ has quit [Ping timeout: 252 seconds]
paulfm has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
<benzrf> ehc: press up
servatoo has joined #ruby
jprovazn_afk has quit [Quit: Odcházím]
echevemaster has quit [Remote host closed the connection]
<ehc> benzrf: ok, so lets say i run a command, and then want to pass it to something that takes a block.
kaspergrubbe has joined #ruby
eka has quit [Read error: Connection reset by peer]
r0bby_ has joined #ruby
Hanmac1 has quit [Ping timeout: 265 seconds]
badhatter has joined #ruby
badhatter has quit [Changing host]
badhatter has joined #ruby
servatoo_ has quit [Ping timeout: 240 seconds]
<InfraRuby> ehc: pastie
decoponio has quit [Quit: Leaving...]
anaeem1__ has joined #ruby
banister has joined #ruby
mark_locklear has quit [Ping timeout: 276 seconds]
carlyle has quit [Read error: Connection reset by peer]
redondos has quit [Excess Flood]
frem_ has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
Kryptonical has joined #ruby
servatoo_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
carlyle has joined #ruby
redondos has joined #ruby
Bruno_ has quit [Ping timeout: 276 seconds]
Milly_Bays has joined #ruby
razrunelord has quit [Remote host closed the connection]
servatoo has quit [Ping timeout: 240 seconds]
CodeBunny has joined #ruby
alexanderkyte2 has left #ruby ["WeeChat 0.4.3"]
alvaro_o has joined #ruby
Stalkr_ has joined #ruby
lw has quit [Quit: s]
cpruitt has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
carlyle has quit [Client Quit]
aspires has joined #ruby
servatoo has joined #ruby
lw has joined #ruby
swerter has joined #ruby
servatoo_ has quit [Ping timeout: 240 seconds]
pwh has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
swerter has quit [Client Quit]
DrShoggoth has quit [Ping timeout: 240 seconds]
servatoo_ has joined #ruby
lw has quit [Client Quit]
servatoo has quit [Ping timeout: 240 seconds]
pwh has joined #ruby
toastynerd has quit [Remote host closed the connection]
mikepack has joined #ruby
peret has quit [Ping timeout: 255 seconds]
pwh has quit [Read error: Connection reset by peer]
servatoo has joined #ruby
mrmargolis has quit [Remote host closed the connection]
lw has joined #ruby
slash_ni1k has joined #ruby
anaeem1__ has quit [Remote host closed the connection]
reset has quit [Quit: Leaving...]
yfeldblum has joined #ruby
slash_ni1k has quit [Changing host]
slash_ni1k has joined #ruby
slash_nick has quit [Disconnected by services]
slash_ni1k is now known as slash_nick
carraroj has quit [Quit: Konversation terminated!]
george2 has joined #ruby
djbkd has quit [Remote host closed the connection]
servatoo_ has quit [Ping timeout: 255 seconds]
geggam has quit [Remote host closed the connection]
servatoo_ has joined #ruby
mikepack has quit [Ping timeout: 255 seconds]
geggam has joined #ruby
<BraddBitt> can a ruby thread alter an instance variable of the class it is created in?
freezey has quit [Remote host closed the connection]
mrmargolis has joined #ruby
<jhass> sure
servatoo has quit [Ping timeout: 276 seconds]
<BraddBitt> is that bad practice?
<jhass> maybe? (I'm actually not completely sure what you describe)
peret has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
servatoo has joined #ruby
<BraddBitt> something like this jhass http://pastie.org/9105828
sdwrage has quit [Quit: This computer has gone to sleep]
anaeem1_ has joined #ruby
afex has quit [Ping timeout: 240 seconds]
servatoo_ has quit [Ping timeout: 265 seconds]
binaryhat has quit [Quit: Leaving]
ascarter has joined #ruby
<jhass> too general to say, but you probably want to synchronize access to it if you have multiple threads doing that
<shevy> ehc I think irb uses Readline to store the history and that array is available somehow
<benzrf> just use pry gosh
Hanmac has quit [Ping timeout: 264 seconds]
donnoc has joined #ruby
Matip has quit [Ping timeout: 252 seconds]
<ehc> shevy: yeah, i can access it raw with replay or play, but I can’t get it as a command that I can use in another ruby expression
Coolhand is now known as niharvey
DrShoggoth has joined #ruby
mark_locklear has joined #ruby
jacobsmith has joined #ruby
rmorello|917 is now known as rmorello
xaq has joined #ruby
kyle__ has quit [Ping timeout: 250 seconds]
toastynerd has joined #ruby
eka has joined #ruby
diegoviola has joined #ruby
sski has joined #ruby
kyle__ has joined #ruby
<BraddBitt> its only 1 thread jhass, doing a countdown timer
ddv has quit [Changing host]
ddv has joined #ruby
mercwithamouth has joined #ruby
pika_pika has joined #ruby
<jhass> and your main thread does nothing alongside?
afex has joined #ruby
<BraddBitt> main thread will only be reading that variable (it is checking for a win condition to be filled)
sambao21 has quit [Quit: Computer has gone to sleep.]
<jhass> and nothing in between?
Xeago has quit [Remote host closed the connection]
<BraddBitt> main thread will be doing things in between but only checking that variable
<BraddBitt> it will be a boolean flag
Milly_Bays has quit [Quit: Leaving]
<jhass> mkay, that's pretty safe in MRI without additional synchronization
yfeldblum has quit [Remote host closed the connection]
<BraddBitt> cool, thank you jhass i'll implement it
crystal77 has quit [Quit: Textual IRC Client: www.textualapp.com]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
donnoc has quit [Ping timeout: 265 seconds]
ghr has joined #ruby
rokob has quit [Remote host closed the connection]
lw has quit [Quit: s]
<jhass> but if all you do is waiting for 10sec, an alternative would be Time.now-started_at >= duration
crystal77 has joined #ruby
sambao21 has joined #ruby
havenwood has joined #ruby
sambao21 has quit [Client Quit]
jackneill has quit [Read error: Connection reset by peer]
postmodern has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
ghr has quit [Client Quit]
srji has quit [Quit: Lost terminal]
<omosoj> Hey guys, I'm learning rails. So knowing how to work with databases is one of the most important skills, right?
meatherly has quit []
ephemerian has joined #ruby
<havenwood> omosoj: In Rails that would mean learning ActiveRecord. Checkout #rubyonrails for Rails stuffs.
yfeldblum has joined #ruby
<omosoj> havenwood, Oops, wrong room.
the_f0ster has quit [Ping timeout: 255 seconds]
Hanmac has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<Nowaker> do you guys know how to create an rspec matcher that will use another matcher? let's say I want to RSpec::Matchers.define :blah do |blah| ...use Equal matcher here... end
<Nowaker> this doesn't work: RSpec::Matchers.define :respond do |response_type| Spec::Matchers::BuiltIn::Equal.new(response_type) end
<alpha123> omosoj: I'd say knowing Ruby really when and knowing how to debug is one of the most important skills....
moritzs has joined #ruby
jamto11_ has joined #ruby
meatherly has joined #ruby
reset has joined #ruby
<omosoj> alpha123, ok. That's what I thought at first but now that I learn more about databases and ActiveRecord is seems really important. I mean, they're probably both crucial
chipotle has joined #ruby
djbkd has joined #ruby
<alpha123> Databases (and especially ActiveRecord) aren't all that important actually.
Hobogrammer has quit [Quit: WeeChat 0.4.3]
<alpha123> You don't technically need them to make a web app. Also, they're usually only a small portion of the code (especially when using ActiveRecord).
Hobogrammer has joined #ruby
<Hanmac> for a real programmer its not important where the data is coming from or where the data is going to ... only the now is important *zen-mode* ;P
<benzrf> ommmmmmmmmmmmmmmm
<alpha123> lol
jamto11_ has quit [Ping timeout: 240 seconds]
* benzrf zazens
Spami has quit [Quit: Leaving]
<benzrf> haskell tho
reset has quit [Ping timeout: 252 seconds]
<benzrf> haskell is the most zen language (that is mainstream)
<benzrf> so zen
<alpha123> Nah, Common Lisp is more zen IMO
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
<benzrf> ur mum is more zen
<benzrf> common lisp isnt functionally pure thoraxe
<benzrf> *tho
johncjensen has quit [Remote host closed the connection]
<alpha123> Yeah, but you only have s-exps
<benzrf> (although macros look sweet as fuck)
<alpha123> Funnily enough, I've used both Common Lisp and Haskell for non-trivial amounts of time and abandoned both. :P
<benzrf> yes but in haskell the entire language semantics can be described in terms of function application, name binding, type declarations, and pattern matching
<benzrf> can u do THAT for CL
<benzrf> so zen
Spami has joined #ruby
asteros has quit [Quit: asteros]
<alpha123> ...Actually someone did....
sambao21 has joined #ruby
<alpha123> (Google the Qi language)
<benzrf> meh
rokob has joined #ruby
foooobear has quit [Quit: Computer has gone to sleep.]
<alpha123> Haskell is pure though, so I guess it does get the zen award
davedev24 has quit [Read error: Connection reset by peer]
djbkd has quit [Ping timeout: 264 seconds]
<benzrf> b-but muh strong typing
<alpha123> I never really understood Haskell's type system that well. :(
i_s has quit [Remote host closed the connection]
davedev24 has joined #ruby
djbkd has joined #ruby
<alpha123> Haskell seems like a really cool language, but I don't think I'm smart enough for it. :P
johncjensen has joined #ruby
<benzrf> manacit:
<benzrf> *man
ktosiek has quit [Read error: Connection reset by peer]
<manacit> sup!
<benzrf> alpha123: everybody learns like 5 imperative languages, gets used to new ones being the same but different & therefore easy, then tries haskell, it's like learning from the beginning again but they dont expect it, and dismiss it as 'for geniuses
<benzrf> '
kirun has quit [Quit: Client exiting]
ftj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Darryl has quit [Quit: Connection closed for inactivity]
claymore has quit [Ping timeout: 252 seconds]
reset has joined #ruby
puzanov_ has quit [Read error: Connection reset by peer]
<benzrf> >tfw running eclipse over ssh X tunnelling
<alpha123> benzrf: It's not that I had trouble with (I'm fine with Erlang and functional JS), it's the type system and monads and gonads (er, wait...) and whatever else there is
Matip has joined #ruby
Matip has quit [Changing host]
Matip has joined #ruby
puzanov_ has joined #ruby
<benzrf> precisely
<benzrf> it's entirely new to you even though youre expecting a derivative
<benzrf> most new things u learn in programming are like x but different, this is entirely separate from almsot anything youve done
<benzrf> therefore it feels v hard
jhass is now known as jhass|off
mehlah has joined #ruby
<benzrf> u just gotta play w/ ur monads for a few months and theyll become intuitive
claymore has joined #ruby
<alpha123> Maybe I'll give it another go. I do like functional programming, I just don't like type systems. :P
<benzrf> haskell tho
<benzrf> alpha123: it is fairly simple
<benzrf> 1. a type consists of a set of DATA CONSTUCTORS
<alpha123> Whenever I got an error I couldn't make head nor tail of it :P
<benzrf> which are functions/values which can be pattern matched on
<alpha123> Also I find type systems very confining
<benzrf> any fully applied data constructor is a value of the type which the data constructor is a member of
<alpha123> (I guess that's due to JS/Ruby/Common Lisp/Io)
freezey has joined #ruby
<benzrf> for example, (:) and [] are the data constructors of the type [a]
<benzrf> [] :: [a]
<myke> 0
bradhe has joined #ruby
<benzrf> (:) :: a -> [a] -> [a]
<benzrf> i can say:
<benzrf> data Foo = Bar | Baz
x77686d has joined #ruby
<benzrf> this declares 2 data constructors w/ arity 0
<benzrf> so they're already fully-applied
asteros has joined #ruby
<benzrf> Bar or Baz are of type Foo
<benzrf> data Foo = Bar Int | Baz String
yfeldblum has joined #ruby
<benzrf> this states that Bar has one 'field' of type Int
yalue has quit [Quit: Leaving]
<benzrf> iow:
razrunelord has joined #ruby
<benzrf> Bar :: Int -> Foo
Night-hacks has left #ruby [#ruby]
nomenkun has joined #ruby
razrunelord has quit [Remote host closed the connection]
rmorello is now known as rmorello|1334
razrunelord has joined #ruby
<benzrf> let (Bar foo) = (Bar 3) in putStrLn (show foo)
DouweM has joined #ruby
ascarter has joined #ruby
HashNuke has quit [Quit: Connection closed for inactivity]
AMcP has joined #ruby
noop has quit [Ping timeout: 264 seconds]
AMcP has quit [Remote host closed the connection]
asteros has quit [Ping timeout: 252 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
ada2358 has quit [Ping timeout: 245 seconds]
pushpak has quit [Quit: Linkinus - http://linkinus.com]
xybre has joined #ruby
xybre has quit [Changing host]
xybre has joined #ruby
ada2358 has joined #ruby
sdwrage has joined #ruby
frem_ is now known as frem
beef-wellington has joined #ruby
SilkFox has quit [Ping timeout: 252 seconds]
badhatter has quit [Read error: Connection reset by peer]
shadoi has joined #ruby
i_s has joined #ruby
wald0 has joined #ruby
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pu22l3r has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
jonno11 has quit [Quit: Textual IRC Client: www.textualapp.com]
Speed has joined #ruby
sambao21 has joined #ruby
djbkd has quit [Remote host closed the connection]
x1337807x has joined #ruby
hostess has quit [Remote host closed the connection]
hostess_ has joined #ruby
xaq has quit [Remote host closed the connection]
hostess_ is now known as hostess
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
redondos has quit [Excess Flood]
redondos has joined #ruby
redondos has quit [Changing host]
redondos has joined #ruby
djbkd has joined #ruby
sparrovv has quit [Remote host closed the connection]
wjlafrance_ has joined #ruby
maletor has joined #ruby
sparrovv has joined #ruby
yfeldblum has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
hobodave has quit [Quit: Computer has gone to sleep.]
IceDragon has quit [Ping timeout: 265 seconds]
IceDragon has joined #ruby
wjlafrance has quit [Ping timeout: 240 seconds]
mordocai has joined #ruby
hobodave has joined #ruby
zegerjan has quit [Remote host closed the connection]
phantasm66 has quit [Quit: *sleeeep….]
<shevy> so awful
<shevy> benzrf, you need a cure
phantasm66 has joined #ruby
MatthewsFace has joined #ruby
<rokob> haskell has very good type inference so the type system mostly stays out of your way except where it is useful
<momomomomo> rokob: ok?
compleatang has joined #ruby
<benzrf> hell yeah it does
<benzrf> haskell-five >>=
zigomir has joined #ruby
phansch has quit [Quit: WeeChat 0.4.2]
razrunelord has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<alpha123> I dunno, I've tried enough statically typed languages (yes, ones with type inference) that I think I've settled on dynamic typing as just being more productive for me.
jamto11 has quit [Read error: Connection reset by peer]
ehc_ has joined #ruby
ehc has quit [Read error: Connection reset by peer]
ehc_ is now known as ehc
ehc has quit [Remote host closed the connection]
jamto11 has joined #ruby
MatthewsFace has quit [Ping timeout: 240 seconds]
shadoi has quit [Ping timeout: 240 seconds]
ged has quit [Quit: WeeChat 0.4.1]
MatthewsFace has joined #ruby
mahlon has quit [Quit: nine foot long outhouse ladle]
<shevy> haskell is only for esoteric stuff
<benzrf> alpha123: i dont believe you
johncjensen has quit [Remote host closed the connection]
<benzrf> what languages have non shitty type inference besides haskell
sdouglas has quit [Remote host closed the connection]
<alpha123> OCaml's is OK, Scala's works most of the time
InfraRuby has quit [Remote host closed the connection]
Bira has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<alpha123> OCaml's is actually pretty good, it's just non-polymorphic so you have those operators like +.
<benzrf> haskell's /always/ works that ive seen of it except for when you use nonspecific typeclass stuff
sdwrage_ has joined #ruby
fgo has joined #ruby
<benzrf> IME, just writing the types of only top level functions will always be enough
<keystonelemur> Haskell is actually very useful if you know how to use it properly.
<benzrf> in fact, usually overkill
xaq has joined #ruby
<keystonelemur> The problem is the huge learning curve and necessity of monadic logic.
ndrei has joined #ruby
<benzrf> whats wrong with monads eh
xaq has quit [Remote host closed the connection]
<Nowaker> then use java, it is so easy to start writing in it
<keystonelemur> By understanding Monads, you lose all ability to explain them
<Nowaker> ;)
<keystonelemur> Java is horrid
moritzs has quit [Ping timeout: 265 seconds]
sdwrage has quit [Ping timeout: 265 seconds]
<benzrf> monads are not so hard
<benzrf> monads are like burritos, you see
<keystonelemur> They're not, that's just the running joke
<benzrf> or maybe bananas
<benzrf> wait, i mean space suits
klaut has joined #ruby
timonv has joined #ruby
<keystonelemur> Java will straight up give you nightmares after writing Ruby for long enough
artgoeshere has quit [Quit: I'll see myself out.]
atmosx has quit [Ping timeout: 272 seconds]
s2013 has joined #ruby
<keystonelemur> probably because so much of it is trying to ad-hoc implement functional concepts
<keystonelemur> which leads to some really nasty stuff fast.
<benzrf> yep
fgo has quit [Ping timeout: 252 seconds]
servatoo has quit [Remote host closed the connection]
<keystonelemur> Java 8 ductapes more support on
cosmin has joined #ruby
<keystonelemur> but it's just that, duct tape
servatoo has joined #ruby
<keystonelemur> not a fully featured, useful implementation
<keystonelemur> If you want functional concepts on Java, bite the bullet and learn Scala
<shevy> benzrf what do monads and burritos have in common?
<benzrf> shevy: it's a running gag
<havenwood> keystonelemur: s/Scala/Clojure
<alpha123> Scala's like the illegitimate child of Java and ML. It's kind of scary.
<keystonelemur> Clojure is a bit too far of a jump for most people, that and there's that nasty lisp curse
<alpha123> Clojure looks great, I'm pretty familiar with Common Lisp
<keystonelemur> Scala is a well written language
<alpha123> I just don't like the Java platform.
<havenwood> :O
<keystonelemur> Me either
KeiKun has quit [Read error: Connection reset by peer]
<havenwood> JRuby on Graal \o/
<alpha123> Common Lisp is actually an excellent language. I'm just more productive in Ruby (and Lua and JavaScript). *shrug*
<keystonelemur> I like Clojure, I use Lisp, but the Lisp curse is way too real and potent
KeiKun has joined #ruby
<alpha123> I bet if I used Common Lisp enough I'd be as productive, but you have to reinvent so many things because the quality of CL libraries is generally rather poor.
ascarter has joined #ruby
<keystonelemur> bingo
ascarter has quit [Max SendQ exceeded]
<keystonelemur> lisp curse
St_Marx has quit [Ping timeout: 272 seconds]
<keystonelemur> read that one.
sjkaliski has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
ascarter has joined #ruby
<benzrf> shevy: wait no
<keystonelemur> essentially Lisp makes things so easy that technical issues become social issues, and we know what happens with programmers and social issues.
<alpha123> "Lisp is so powerful that problems which are technical issues in other programming languages are social issues in Lisp." --> That's beautiful.
<alpha123> And so... right.
jrochelly has joined #ruby
<alpha123> Of course, we all know Ruby is an acceptable Lisp. ;)
predator117 has quit [Ping timeout: 255 seconds]
claymore has quit [Quit: Leaving]
<keystonelemur> Heh, seen that one
nateberkopec has quit [Ping timeout: 240 seconds]
<keystonelemur> Unless you have one heck of an architect to hold people together, lisp projects will fail
evenix_ has joined #ruby
meatherly has quit [Remote host closed the connection]
atmosx has joined #ruby
St_Marx has joined #ruby
<alpha123> I still think Lisp could work out. I just don't know why it hasn't yet. :P
<keystonelemur> the curse
<alpha123> I don't think the social issues are insurmountable. Far from it.
tvw has quit []
<keystonelemur> You need a charismatic lead
<keystonelemur> and most people only think they are
<keystonelemur> Not a gamble you want to take most times
funburn has joined #ruby
evenix has quit [Ping timeout: 240 seconds]
<keystonelemur> Scala is safer in that aspect, but Clojure and Lisp will slaughter it if there's a good lead behind it
timgauthier has joined #ruby
dfinly has joined #ruby
<alpha123> Clojure actually seems to have solved a lot of the social problems, somehow.
shadoi has joined #ruby
<keystonelemur> JVM helps
pwh has joined #ruby
pwh has quit [Client Quit]
<keystonelemur> but take a look at the security issues from patchy implementations
<alpha123> Frankly I think the issue isn't Common Lisp itself so much as the current crop of people who use it -- they're nice folks, generally, but mostly solitary hackers.
aspiers has joined #ruby
<alpha123> Clojure attracted different people --> different result.
Mongey has quit [Ping timeout: 250 seconds]
<keystonelemur> hence the lead needed.
<keystonelemur> It attracted a lot of the same people.
<keystonelemur> or transformed them into that type.
armstrjare has joined #ruby
<rurban_> Clojure has proper and efficient threading support, common lisp not really
banister has joined #ruby
<keystonelemur> If you write in a functional style, that's completely irrelevant.
Sawbones has quit []
<rurban_> locking hashes drove lisp people to clojure
<alpha123> You know what would be cool? Someone who ports Common Lisp to, say, the Erlang VM with promises of great concurrency, and releases it under a name without "lisp" in it. :P
<keystonelemur> Elixir?
evenix_ has quit [Ping timeout: 276 seconds]
<rurban_> That's stupid. CL is much better than Erlang already
<keystonelemur> CL has the ability to, rather.
<rurban_> Elixir overcomes some of Erlangs deficiencies to come closer to Clojure/CL
bthesorceror has joined #ruby
<keystonelemur> Problem is, people assume CL is a programming language
<keystonelemur> far far from it
<keystonelemur> It's a language with the intent of developing languages
<benzrf> CL looks entirely too gross for m
<benzrf> me
<rurban_> It's a world, and very few from outside understand it
<benzrf> then again i thought the same about ruby o=
gyzmodo has left #ruby [#ruby]
<benzrf> one of these years maybe ill just jump ship to ST
<benzrf> pity it has its own cornered off ecosystem
mark_locklear has quit [Ping timeout: 240 seconds]
<benzrf> maybe ill pioneer some proper integration someday o3o
mikepack has joined #ruby
<alpha123> How could you think Ruby is gross? :( It's the most beautiful language ever. :P
Guest94817 has joined #ruby
<alpha123> The syntax is actually what drove me off from Common Lisp.
<alpha123> *one of the things
<alpha123> It's a bit of a write-only language.
<benzrf> well i was put off by the lack of first class funcs
<benzrf> among other things
<alpha123> ?!
<alpha123> It has first-class functions
<benzrf> not in the same sense
moritzs has joined #ruby
<alpha123> you can pass them around, compose them, define them on the fly, closure, whatever floats your boat
<benzrf> it has function objects, but regular 'functions' are not universally values
<benzrf> i.e. methods
<alpha123> if you're referring to the namespace thing, that's minor and only affects syntax, not semantics
<benzrf> huh?
<alpha123> variables and functions are in separate namespaces in common lisp
<benzrf> oh i was talkin about ruby this whole time :P
<alpha123> oh lol
<alpha123> oops >_<
xaq has joined #ruby
<alpha123> Yes, the functions thing put me off Ruby a bit initially.
<alpha123> I got over it though. It's still a bit weird.
yfeldblum has joined #ruby
mikepack has quit [Ping timeout: 265 seconds]
<benzrf> nhn
bthesorceror has quit [Remote host closed the connection]
popl has quit [Ping timeout: 264 seconds]
Lewix has joined #ruby
<benzrf> anyway i think i recentlly rly groked macros
Guedes0 has joined #ruby
<benzrf> and now im sad that they will never be as great in anything non-sexpr (or similar) based
bthesorceror has joined #ruby
_justin has joined #ruby
alexju has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sambao21 has joined #ruby
<benzrf> i wrote a lisp in haskell a while BackEndCoder
<benzrf> it had runtime macros & enforced purity
razrunelord has joined #ruby
<benzrf> well
mahlon has joined #ruby
<benzrf> enforced in the sense that you can only be impure if you explicitly say so
shadoi has quit [Remote host closed the connection]
djbkd has joined #ruby
<benzrf> alpha123: check it out https://github.com/benzrf/toy-lisp
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bthesorceror has quit [Ping timeout: 252 seconds]
<benzrf> it has immutable environments though
GaryOak_ has joined #ruby
kyb3r_ has joined #ruby
<benzrf> in the sense that defining a var does not affect closures declared beforehand
<benzrf> (progn (define v 3) (define f (lambda () v)) (define v 5) (f)) => 3
diegoviola has quit [Remote host closed the connection]
Bira has joined #ruby
chipotle has quit [Quit: cya]
mercwithamouth has quit [Ping timeout: 252 seconds]
<benzrf> therefore recursion works with the magic var 'this'
<benzrf> cuz im 3lazy to implement something with Y or some such
r0bby_ is now known as robbyoconnor
ikaros has joined #ruby
freerobby has quit [Quit: Leaving.]
instantaphex has quit [Ping timeout: 240 seconds]
razrunelord has quit [Ping timeout: 252 seconds]
lw has joined #ruby
funburn has quit [Quit: funburn]
lw has quit [Max SendQ exceeded]
lw has joined #ruby
lw has quit [Max SendQ exceeded]
lw has joined #ruby
Bira has quit [Ping timeout: 276 seconds]
dkamioka has quit [Remote host closed the connection]
dkamioka has joined #ruby
SvenOostenbrink has joined #ruby
Phoenixz has quit [Read error: Connection reset by peer]
bluOxigen has quit [Ping timeout: 240 seconds]
dkamioka has quit [Remote host closed the connection]
jrochelly has quit []
_justin has quit [Quit: _justin]
ffranz has quit [Quit: Leaving]
vpretzel|516 is now known as vpretzel|email
s2013 has quit [Ping timeout: 252 seconds]
KeiKun is now known as Guest48707
KeiKun_ has joined #ruby
sparrovv has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
dapz has joined #ruby
s2013 has joined #ruby
sjkaliski has quit [Quit: Leaving...]
SilkFox has joined #ruby
Guest48707 has quit [Ping timeout: 265 seconds]
beef-wellington has quit [Ping timeout: 265 seconds]
flops has quit [Ping timeout: 255 seconds]
Deele has quit [Ping timeout: 255 seconds]
SubSignal has quit [Remote host closed the connection]
Martxel is now known as martxel_
martxel_ is now known as _martxel
_martxel is now known as Martxel
pu22l3r has quit [Ping timeout: 265 seconds]
nisstyre has joined #ruby
servatoo has quit [Remote host closed the connection]
servatoo has joined #ruby
Vu1k has joined #ruby
<Vu1k> Hi, Im looking for channel about programming in RhoMobile, but the rhomobile channel is currently empty, any idea where can I find help?
combusean has joined #ruby
Lewix has quit [Remote host closed the connection]
shevy has quit [Ping timeout: 255 seconds]
Milly_Bays has joined #ruby
sambao21 has quit [Read error: Connection reset by peer]
shevy has joined #ruby
Matip has quit [Ping timeout: 255 seconds]
rvraghav93 has joined #ruby
servatoo has quit [Ping timeout: 264 seconds]
sambao21 has joined #ruby
andrewlio has quit [Quit: Leaving.]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
s00pcan has quit [Quit: leaving]
s00pcan has joined #ruby
locriani has joined #ruby
sparrovv has joined #ruby
badabim has joined #ruby
dapz has joined #ruby
razrunelord has joined #ruby
wjlafrance_ has quit [Quit: This computer has gone to sleep]
echevemaster has joined #ruby
beef-wellington has joined #ruby
Matip has joined #ruby
Matip has quit [Changing host]
Matip has joined #ruby
ascarter has joined #ruby
ascarter has quit [Client Quit]
jottr_ is now known as jottr
SilkFox has quit [Ping timeout: 264 seconds]
banister has joined #ruby
jacobsmith has quit [Ping timeout: 276 seconds]
agent_white has joined #ruby
agent_white has quit [Client Quit]
agent_white has joined #ruby
marr has joined #ruby
fgo has joined #ruby
yacks has quit [Ping timeout: 264 seconds]
Lewix has joined #ruby
yacks has joined #ruby
sparrovv has quit [Remote host closed the connection]
moritzs has quit [Ping timeout: 265 seconds]
zmbmartin has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
<zmbmartin> How do I spawn a process in one dir but Process.detach it to a specific dir?
Squarepy has joined #ruby
aspires has quit []
IceDragon has quit [Ping timeout: 255 seconds]
servatoo has joined #ruby
IceDragon has joined #ruby
fgo has quit [Ping timeout: 255 seconds]
paulfm has quit []
iceden has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
jason__ has joined #ruby
wchun has quit [Quit: Leaving]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bricker> What's better for simply replacing all spaces with plus symbols, tr or gsub?
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<combusean> tr
<agent_white> Good afternoon all
<combusean> hi agent_white
rosaele has joined #ruby
rosaele has quit [Read error: Connection reset by peer]
Matip has quit [Quit: Leaving]
crystal77 has quit [Quit: Computer has gone to sleep.]
johncjensen has joined #ruby
wchun has joined #ruby
aspires has joined #ruby
crucify_me has joined #ruby
akonny has quit [Quit: akonny]
Hanmac1 has joined #ruby
obs has joined #ruby
beef-wellington has quit [Ping timeout: 252 seconds]
Gearbox has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
eynj has quit [Ping timeout: 265 seconds]
Milly_Bays has quit [Read error: Connection reset by peer]
doodlehaus has quit [Remote host closed the connection]
zorak8 has quit [Ping timeout: 240 seconds]
eynj has joined #ruby
kaspergr_ has joined #ruby
sailias has quit [Ping timeout: 252 seconds]
SonicX has joined #ruby
djbkd has quit [Remote host closed the connection]
phantasm66 has quit [Quit: *sleeeep….]
mrmargolis has quit [Remote host closed the connection]
freggles has quit [Remote host closed the connection]
freezey has quit [Remote host closed the connection]
olivier_bK has joined #ruby
blandflakes has quit [Quit: Page closed]
kaspergrubbe has quit [Ping timeout: 255 seconds]
brunops has joined #ruby
jxf has quit [Ping timeout: 255 seconds]
Guest94817 has left #ruby [#ruby]
obs has quit [Remote host closed the connection]
keystonelemur has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
freezey has joined #ruby
johncjensen has quit [Remote host closed the connection]
s2013 has quit [Ping timeout: 265 seconds]
yubrew has quit [Remote host closed the connection]
djbkd has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
emaxi has quit [Remote host closed the connection]
badabim has quit [Remote host closed the connection]
badabim has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
johncjensen has joined #ruby
jason__ has quit [Remote host closed the connection]
jason__ has joined #ruby
centrx has joined #ruby
sdwrage_ has quit [Quit: This computer has gone to sleep]
sambao21 has quit [Quit: Computer has gone to sleep.]
cjbottaro has joined #ruby
wjlafrance has joined #ruby
havenwood has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
geggam has quit [Ping timeout: 264 seconds]
sambao21 has joined #ruby
xaq has quit [Remote host closed the connection]
jason__ has quit [Ping timeout: 276 seconds]
Gearbox has left #ruby ["Textual IRC Client: www.textualapp.com"]
katlogic has joined #ruby
ikaros has quit [Quit: Ex-Chat]
Spami has joined #ruby
shevy has quit [Ping timeout: 252 seconds]
toastynerd has quit [Remote host closed the connection]
freezey has quit [Remote host closed the connection]
shevy has joined #ruby
cover has quit [Remote host closed the connection]
jobewan has quit [Quit: Leaving]
sdwrage has joined #ruby
freezey has joined #ruby
ascarter has joined #ruby
locriani has quit [Ping timeout: 265 seconds]
predator117 has joined #ruby
andy__ has quit [Remote host closed the connection]
toastynerd has joined #ruby
testcore has quit [Ping timeout: 272 seconds]
lmfao has joined #ruby
charliesome has joined #ruby
ktun_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nomenkun has quit [Remote host closed the connection]
nomenkun has joined #ruby
nffff has joined #ruby
DrShoggoth has quit [Quit: Leaving]
redondos has quit [Excess Flood]
crystal77 has joined #ruby
northfurr has joined #ruby
redondos has joined #ruby
<lmfao> google play store uses ruby on rail.
snath has quit [Ping timeout: 240 seconds]
kaspergrubbe has joined #ruby
lmfao has left #ruby [#ruby]
andy__ has joined #ruby
shevy has quit [Ping timeout: 240 seconds]
Squarepy has quit [Quit: Leaving]
timonv has joined #ruby
nomenkun has quit [Ping timeout: 265 seconds]
yubrew has joined #ruby
dik_dak has quit [Quit: Leaving]
kaspergr_ has quit [Ping timeout: 264 seconds]
apeiros has quit [Remote host closed the connection]
r_rios has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
<ericwood> just one rail?
shevy has joined #ruby
rrios has joined #ruby
apeiros has joined #ruby
cluelesss has joined #ruby
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
Stalkr_ has quit [Quit: Leaving...]
sski has quit [Remote host closed the connection]
predator117 has quit [Remote host closed the connection]
jmeeuwen has joined #ruby
sski has joined #ruby
testcore has joined #ruby
jack_rabbit has joined #ruby
johncjensen has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 265 seconds]
yubrew has quit [Ping timeout: 252 seconds]
zigomir has quit [Remote host closed the connection]
razrunelord has quit [Remote host closed the connection]
dblessing has quit [Quit: dblessing]
elico has joined #ruby
fgo has joined #ruby
cpruitt has quit [Quit: cpruitt]
sski has quit [Ping timeout: 265 seconds]
<elico> Any recommendations on a key-value DB?
badabim has quit [Remote host closed the connection]
zmbmartin has quit [Quit: Leaving.]
peret has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
redondos has quit [Excess Flood]
klaut_ has joined #ruby
LiohAu has quit [Ping timeout: 252 seconds]
RubyRonin has joined #ruby
redondos has joined #ruby
redondos has quit [Changing host]
redondos has joined #ruby
fgo has quit [Ping timeout: 265 seconds]
arubincloud has quit []
klaut_ has quit [Remote host closed the connection]
s2013 has joined #ruby
axisys has quit [Quit: leaving]
mengu has quit [Remote host closed the connection]
cmoneylulz has joined #ruby
northfurr has quit [Quit: northfurr]
<RubyRonin> greetings all
<RubyRonin> Does anyone have a proposal template for developing a membership web application?
axisys has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Vu1k has quit [Quit: Vu1k]
Vu1k has joined #ruby
axisys has quit [Changing host]
axisys has joined #ruby
mikepack has joined #ruby
klaut has quit [Ping timeout: 240 seconds]
dapz has joined #ruby
RaptorJesus has quit [Ping timeout: 240 seconds]
agarie has quit [Quit: Leaving...]
freezey_ has joined #ruby
yfeldblum has joined #ruby
RaptorJesus has joined #ruby
pel_daniel has left #ruby [#ruby]
centrx has quit [Quit: All this computer hacking is making me thirsty]
sputnik13 has quit [Ping timeout: 265 seconds]
johncjensen has joined #ruby
mikepack has quit [Ping timeout: 252 seconds]
combusean has quit [Ping timeout: 252 seconds]
cmoneylulz has quit [Quit: Leaving]
freezey has quit [Ping timeout: 252 seconds]
johncjensen has quit [Remote host closed the connection]
GaryOak_ has quit [Remote host closed the connection]
combusean has joined #ruby
ehc has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freezey_ has quit [Ping timeout: 240 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
hobodave has quit [Quit: Computer has gone to sleep.]
aspires has quit []
crystal77 has quit [Quit: Computer has gone to sleep.]
funburn has joined #ruby
Vu1k has quit [Quit: Vu1k]
treehug8_ has quit []
Vu1k has joined #ruby
rmorello|1334 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
s2013 has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 252 seconds]
x1337807x has joined #ruby
crucify_me has quit [Remote host closed the connection]
cescalante is now known as ce_afk
SCommette has quit [Quit: SCommette]
wwalker has joined #ruby
sdwrage has joined #ruby
maestrojed has joined #ruby
olivier_bK has quit [Ping timeout: 246 seconds]
testcore has quit [Quit: BitchX-1.3-git -- just do it.]
rmcclellan has joined #ruby
<rmcclellan> Hi I found you guys on a search for a open source project to contribute to....I am in a competition and I want to do something I'll enjoy and keep working on....also I would love to learn more about Ruby...could you guys help me?
s2013 has joined #ruby
maximski has joined #ruby
mus1cb0x has joined #ruby
instantaphex has joined #ruby
<mus1cb0x> what is on the modruby.net site? i can't read it
<combusean> uhh
<rmcclellan> Its more like a blog
keystonelemur has joined #ruby
<combusean> why would anyone use mod_ruby anymore?
<combusean> even passenger is a better alternative
Avahey_ has joined #ruby
Bira has joined #ruby
<mus1cb0x> where can i read on the changes between 2.1 and 2.0?
<mus1cb0x> something higher level than the changelog
<mus1cb0x> that's pretty helpful
<mus1cb0x> nvm
poguez_ has quit [Quit: Connection closed for inactivity]
<rmcclellan> Hi I found you guys on a search for a open source project to contribute to....I am in a competition and I want to do something I'll enjoy and keep working on....also I would love to learn more about Ruby...could you guys help me?
instantaphex has quit [Ping timeout: 265 seconds]
workmad3 has quit [Ping timeout: 276 seconds]
bradhe has quit [Remote host closed the connection]
badabim has joined #ruby
kevind has quit [Quit: kevind]
yfeldblum has quit [Remote host closed the connection]
zorak has joined #ruby
mikecmpbll has quit [Quit: ciao.]
thomasxie has joined #ruby
<RubyRonin> Does anyone have a proposal template for developing a membership web application?
<shevy> rmcclellan you asked that already above
nisstyre has quit [Quit: WeeChat 0.4.3]
dima__ has quit [Remote host closed the connection]
<rmcclellan> oh sorry
bradhe has joined #ruby
psyko666 has joined #ruby
CodeBunny has quit [Quit: CodeBunny got lost. Send help!]
<shevy> rmcclellan you should be more specific, like: what help do you need precisely
<shevy> people usually ask a ruby question here, then people can answer it
<shevy> like "How can I find all .pdf files in a directory?"
<rmcclellan> oh i see....i want to contribute to the project
<shevy> Dir[directory_here+'/*.pdf']
<shevy> contribute how? can you program in C?
jpstokes has quit [Remote host closed the connection]
<rmcclellan> yes i can
<shevy> if so then you can look at the dev team here http://bugs.ruby-lang.org/projects/ruby-trunk
brunops has quit [Ping timeout: 240 seconds]
<mus1cb0x> C is awesome
<shevy> but beware, their english is often awful, so it might be easier to find non-japanese members of the core team :D
<maestrojed> We are trying to get a local environment working with some ruby gems. We have a slew of errors. Have followed a ton of posts/tuts. It all started with wanting to use Compass and SASS. Compass errors out, says toolkit can't activate because sass 3.2.19 conflicts with sass 3.3.0.
<shevy> if not C then there are other ways, there is a team working on documentation (many non-japanese people hahahahaha)
<shevy> and of course you could directly help matz with mruby
<mus1cb0x> anyone into crypto currencies like bitcoin?
<shevy> which will probably one day replace the current ruby
djbkd has quit [Remote host closed the connection]
<shevy> mus1cb0x not me, it always sounded like a scam
SubSignal has joined #ruby
<rmcclellan> thanks shevy
djbkd has joined #ruby
crucify_me has joined #ruby
kobain has quit []
yubrew has joined #ruby
yfeldblum has joined #ruby
brunops has joined #ruby
ndrei has quit [Quit: Lost terminal]
SubSignal has quit [Ping timeout: 252 seconds]
<shevy> I have just determined that slop is better than optparse
testcore has joined #ruby
m00nlight has joined #ruby
rjhunter has joined #ruby
jxf has joined #ruby
rezzack has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 240 seconds]
pika_pika has quit [Ping timeout: 240 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
sdwrage has quit [Quit: This computer has gone to sleep]
keystonelemur has quit [Ping timeout: 264 seconds]
shevy has quit [Ping timeout: 252 seconds]
<maestrojed> Since I am having trouble with gems. Is this the best channel to ask for help?
nanoyak has joined #ruby
<combusean> maestrojed, what's your question
<maestrojed> We are trying to get a local environment working with some ruby gems. We have a slew of errors. Have followed a ton of posts/tuts. It all started with wanting to use Compass and SASS. Compass errors out, says toolkit can't activate because sass 3.2.19 conflicts with sass 3.3.0.
sdwrage has joined #ruby
<maestrojed> combusean ^
<combusean> are you locking gem versions of either of those in your Gemfile?
<combusean> haven't set up sass or used compass
zmbmartin has joined #ruby
chrisja has quit [Quit: leaving]
<maestrojed> combusean I don't know. I am checking (about locking versions).
zorak is now known as zorak8
<maestrojed> From what I can tell, SASS 3.3.0 isn't installed
zorak8 has quit [Quit: Saliendo]
<combusean> are you bundling with this?
zorak8 has joined #ruby
<maestrojed> In trying to fix this I have tried a number of things which all lead to errors which makes me thinks something more grand or global is wrong
mus1cb0x has left #ruby ["WeeChat 0.4.2"]
<maestrojed> combusean we tried to use Bundler, but that throws errors too.
razrunelord has joined #ruby
<maestrojed> combusean I am barely a ruby/gem user. I am a lead tech, troubleshooting this for a coworker because they have thrown up their hands. Sorry if I don't know the direct answers to your questions immediately.
<combusean> cat Gemfile |grep -i compass && cat Gemfile |grep -i sass
baroquebobcat has quit [Ping timeout: 264 seconds]
<combusean> run that
<maestrojed> k
<combusean> in your root dir
fgo has joined #ruby
crucify_me has quit [Remote host closed the connection]
testcore has quit [Ping timeout: 272 seconds]
zmbmartin has quit [Ping timeout: 240 seconds]
<combusean> or your project root directory
jamto11 has quit [Remote host closed the connection]
<maestrojed> combusean ok. at / I get "cat: Gemfile: no such file or directory". Trying the project directory
<combusean> yeah
<combusean> sorry, wasn't clear
nfk has quit [Quit: yawn]
jamto11 has joined #ruby
crystal77 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
frode15243 has quit [Ping timeout: 258 seconds]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
eka_ has joined #ruby
<combusean> maestrojed, btw, you're either bundling or you're not, it won't work if you have bundled gems installed and you don't run bundle exec or whatever for the subsequent command like rails s or rails c
razrunelord has quit [Ping timeout: 264 seconds]
pwh has joined #ruby
m00nlight has quit [Ping timeout: 252 seconds]
lfox has quit [Ping timeout: 258 seconds]
<maestrojed> Ok, I don't think we are then.
m00nlight_ has joined #ruby
frode15243 has joined #ruby
<combusean> maestrojed, is there any reason why you have sass version locked at 3.2.12? compass might be depending on a newer version then that because you don't have that one locked
fgo has quit [Ping timeout: 276 seconds]
<maestrojed> I knew there was a ruby config file in the project and was going to check that but "bundle" sounds differnet
<maestrojed> combusean no, glad to change anything and everything.
<combusean> maestrojed, i highly recommend using a ruby version manager and bundler
<maestrojed> like bundler?
Morrolan has joined #ruby
<combusean> well since you have a gemfile, you typically wanna bundle install these things
jxf has quit [Ping timeout: 252 seconds]
<maestrojed> agreed (well... I agree now :) )
<combusean> take out the , '3.2.12' from the sass line and run bundle install
lfox has joined #ruby
cluelesss has quit [Ping timeout: 276 seconds]
<combusean> gem 'sass' # Sass
<combusean> so it looks like that
jamto11 has quit [Ping timeout: 240 seconds]
armstrjare has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roland has left #ruby [#ruby]
<maestrojed> ok, calling this dev for his root password......
diegoviola has joined #ruby
FenixFyreX has joined #ruby
FenixFyreX has left #ruby [#ruby]
<combusean> maestrojed, did the bundle install give you permission denied errors?
danman_ has quit [Quit: danman_]
phoo1234567 has quit [Quit: Leaving]
<maestrojed> yes. "Your user account isn't allowed to install to the system Rubygems." Then it prompts for a passsword
R33C3 has joined #ruby
<maestrojed> is that a sign of an issue?
<combusean> yeah, this is why system ruby always blows
razrunelord has joined #ruby
sambao21 has joined #ruby
R33C3 has quit [Client Quit]
<maestrojed> Permission msg: https://gist.github.com/maestrojed/11236609
<maestrojed> combusean okay, what is your suggestion? Like I said I will change anything and everything
<combusean> yes, a version manager installed for your local user would solve this problem
crzrcn has quit [Quit: Leaving.]
<combusean> maestrojed, http://rvm.io
blackavr has quit [Quit: blackavr]
<maestrojed> Ok, we followed a post/tut in trying to fix this and I think we installed rvm
<combusean> but you can't do that lightly as whatever your app runs from will have to be in that environment, and that varies across individual needs and systems
<maestrojed> I see. rVM aka virtual machine
shevy has joined #ruby
<combusean> ~/.rvm is Ruby Version Manager
crucify_me has joined #ruby
<combusean> i don't know what makes .rVM tho
<benzrf> holy shit
blackavr has joined #ruby
<combusean> hi benzrf
<combusean> what shit is so holy?
ehc has quit [Quit: ehc]
<benzrf> there's a band called 'netcat' and it's possible to acquire their most recent album as a kernel module that creates a device file that outputs the album
crzrcn has joined #ruby
adlerdias has quit [Quit: Leaving]
Bira has quit [Remote host closed the connection]
pr1x has quit [Remote host closed the connection]
<combusean> badass!