saragojo has quit [Remote host closed the connection]
coca_rails has joined #ruby
saragojo has joined #ruby
<YOURBESTFRIEND>
?
<nfk>
there are three problems: 1) the if conditional has broken syntax somehow, 2) the commented out line again triggers syntax error despite working on its own in irb and 3) the last puts line is always 0 which i suspect has something to do some closure magic
<nfk>
now, what's the best way to make argument passed to a function to not be affected by function?
<nfk>
so that in that example the a passed to the sorting function is not changed outside the context of the function
<shevy>
you can use .dup on what you work inside of a method
<nfk>
anything cleaner?
coca_rails has quit [Remote host closed the connection]
<DouweM>
shevy: right. that's what we mean. it thinks all the +'s are operators, and waits for extra input. when you eventually type 5, it'll evaluate "0 + 5", yielding 5. But type "x = 3; x++" and it won't give you the `4` you'd expect in other languages
<DouweM>
shevy: also, your irb is all weird
coldmethod has joined #ruby
<shevy>
:(
coca_rails has joined #ruby
<shevy>
it's like the most primitive irb in existance
crapple has quit [Excess Flood]
crapple has joined #ruby
<nfk>
shevy, actually i went for .dup being called during calling of the function
<nfk>
sort of cleaner IMO
zipper has quit [Quit: Lost terminal]
<nfk>
thanks for general idea
<shevy>
nfk can you upload the correct version of your current code + input so I can figure out what your code is doing
<nfk>
shevy, for real?
<shevy>
if you have not solved it yet sure, but if you have solved it already then not
<nfk>
i have sorted it
<DouweM>
shevy: this is my irb: https://gist.github.com/DouweM/7967026 the indentation you see after my first '++' is IRB indicating it wants more input, which I eventually give in the form of '5'
<nfk>
unless there's a bug somewhere
<shevy>
ok good
<DouweM>
shevy: why does your IRB look nothing like mine?
saragojo has quit [Remote host closed the connection]
<shevy>
DouweM your irb is more hipster than mine
saragojo has joined #ruby
anomaly_ has joined #ruby
klaut has quit [Remote host closed the connection]
<DouweM>
shevy: my IRB is the default one, you've done something strange to yours :P
<shevy>
DouweM my irb was too noisy in the past so I muted it more and more as time passed by
phipes has quit [Remote host closed the connection]
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
preller has joined #ruby
preller has joined #ruby
preller has quit [Changing host]
ghatak has joined #ruby
fuhgeddaboudit has joined #ruby
agjacome has quit [Ping timeout: 260 seconds]
robustus has quit [Ping timeout: 264 seconds]
predator217 has joined #ruby
jhn has quit [Ping timeout: 240 seconds]
robustus has joined #ruby
predator117 has quit [Ping timeout: 265 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
Jetchisel has quit [Ping timeout: 260 seconds]
jacobsmith has quit [Ping timeout: 252 seconds]
Jetchisel has joined #ruby
coca_rails has joined #ruby
saragojo has quit [Remote host closed the connection]
volty has quit [Quit: Konversation terminated!]
saragojo has joined #ruby
timonv has joined #ruby
preller has quit [Read error: Operation timed out]
preller has joined #ruby
preller has quit [Changing host]
preller has joined #ruby
coca_rails has quit [Ping timeout: 245 seconds]
fuhgeddaboudit has quit [Ping timeout: 260 seconds]
timonv has quit [Ping timeout: 240 seconds]
RoryHughes has joined #ruby
mengu has quit [Remote host closed the connection]
saragojo has quit [Remote host closed the connection]
freggles has quit [Ping timeout: 248 seconds]
jrhe_ has joined #ruby
saragojo has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
kaiza has quit [Read error: Operation timed out]
freggles has joined #ruby
freggles has quit [Changing host]
freggles has joined #ruby
cmedeiros has quit [Read error: Operation timed out]
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
lyanchih has joined #ruby
lsoa has quit [Read error: Connection reset by peer]
wc- has joined #ruby
nettoweb has quit [Quit: nettoweb]
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
wc- has quit [Ping timeout: 265 seconds]
jacobsmith has joined #ruby
ddd has quit [Ping timeout: 248 seconds]
BraddPitt has quit [Read error: Connection reset by peer]
BraddPitt has joined #ruby
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
lupine has quit [Ping timeout: 246 seconds]
jrhe_ has quit [Quit: jrhe_]
RoryHughes has quit []
kitak has quit [Remote host closed the connection]
jrhe_ has joined #ruby
Konst2 has quit [Read error: Operation timed out]
davy_ has joined #ruby
wc- has joined #ruby
orolo has joined #ruby
fijimunkii has quit [Ping timeout: 265 seconds]
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
mengu has joined #ruby
<orolo>
i'm wondering if i understand this correctly: if you call method "foo" like so: foo = val1 val2 it will execute the function with those vars?
ddd has joined #ruby
mmcdaris has joined #ruby
maletor has joined #ruby
speakingcode has quit [Quit: Lost terminal]
mmcdaris has left #ruby [#ruby]
<kostine>
orolo = is a method with those params
<kostine>
there is actually a method defined called =
Konst has joined #ruby
<kostine>
if a method IS foo, then you would do foo param1 param2, or foo(param1, param2)
<orolo>
kostine, ok. so, to confirm. if i include a class that contains a method "orolo". in my class; "orolo = var1" will execute that method from the other class?
saragojo has quit [Remote host closed the connection]
<kostine>
inside of the class you would define that method with def
saragojo has joined #ruby
<kostine>
def orolo(param1, param2)
<kostine>
end
<kostine>
or just
<kostine>
def orolo
<kostine>
end
wc- has quit [Ping timeout: 240 seconds]
<kostine>
if it doesn't have params
<orolo>
kostine, yes; but i think i'm dealing with the = as a setter.
<kostine>
you want to set a variable in your class to some value?
brain_shim has joined #ruby
<kostine>
you can just add attr_accessor
<orolo>
i'm looking at a method that works and i'm wondering if i understand it correctly. let do a gist.
fijimunkii has joined #ruby
<orolo>
1 moment
<kostine>
k
mengu has quit [Ping timeout: 240 seconds]
<orolo>
thanks kostine but i'm going to stare at this some more; i have to debug some stuff for awhile.
BraddPitt has quit [Ping timeout: 248 seconds]
kofno has joined #ruby
brain_shim has quit [Ping timeout: 248 seconds]
saragojo has quit [Remote host closed the connection]
<orolo>
my confusion is: at the bottom of the file, could you do: test_instance = orolo
phipes has joined #ruby
xk_id has quit [Quit:
<orolo>
and would it eval the method or just overwrite test_instance as a string.
ddd has quit [Ping timeout: 264 seconds]
wc- has joined #ruby
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
<kostine>
you would get undefined method `test_instance='
<orolo>
ok. i actually discovered that the request was routed around this method. so, even though i thought there was some weird ruby method call it was never being called.
ua has quit [Quit: Leaving]
Hanmac1 has joined #ruby
<kostine>
attr_accessor creates those for the :color, but if it doesn't explicitly exists, it will be be just missing method
<orolo>
right. cool. that makes sense.
<kostine>
you can write your own attr_accessor or just attr_reader, or just attr_writer, or just define them as methods that are getters and setters, setters would end in = normally
hakunin has joined #ruby
<kostine>
attr_reader :color is the same as
Markvilla has joined #ruby
<kostine>
def color
<kostine>
@color
<kostine>
end
<kostine>
and attr_writer is the same as
xk_id has joined #ruby
phipes has quit [Ping timeout: 252 seconds]
<kostine>
def color=(value)
Hanmac has quit [Ping timeout: 240 seconds]
<kostine>
@color = value
<kostine>
end
<kostine>
+ -
wc- has quit [Ping timeout: 265 seconds]
s2013 has quit [Read error: Connection reset by peer]
s2013 has joined #ruby
ewnd9 has joined #ruby
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
marr has quit [Ping timeout: 264 seconds]
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
phipes has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
mr_red has quit [Ping timeout: 252 seconds]
iliketur_ has joined #ruby
fgo has joined #ruby
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
iliketu__ has quit [Ping timeout: 248 seconds]
peregrine81 has joined #ruby
prc has quit [Quit: Leaving.]
banghouse2 is now known as banghouse
nateberkopec has joined #ruby
benzrf has joined #ruby
<benzrf>
what is the correct way to get the index of the max element of an array
mr_red has joined #ruby
preller has quit [Ping timeout: 245 seconds]
coca_rails has joined #ruby
vpretzel has joined #ruby
nateberkopec has quit [Client Quit]
rootshift has joined #ruby
subbyyy has joined #ruby
saragojo has quit [Remote host closed the connection]
akafurious has quit [Remote host closed the connection]
jkhwan has quit [Remote host closed the connection]
iliketur_ has joined #ruby
iliketur_ has quit [Client Quit]
<YOURBESTFRIEND>
when saving a marshal dump to a file, should I use the binary file mode?
coldmethod has quit [Ping timeout: 248 seconds]
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
iliketur_ has joined #ruby
bradhe has joined #ruby
<YOURBESTFRIEND>
shit guys
<YOURBESTFRIEND>
help
ixti has quit [Quit: WeeChat 0.4.2]
saragojo has quit [Remote host closed the connection]
atno has quit [Remote host closed the connection]
saragojo has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
jacobsmith has quit [Ping timeout: 260 seconds]
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
jhn has joined #ruby
roadt has joined #ruby
coderhs has joined #ruby
ewnd9 has quit [Ping timeout: 264 seconds]
floorpi has quit [Ping timeout: 264 seconds]
Shidash has joined #ruby
Brolen has joined #ruby
ddd has quit [Ping timeout: 245 seconds]
saragojo has quit [Remote host closed the connection]
Spami has joined #ruby
saragojo has joined #ruby
coldmethod has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
maletor has joined #ruby
Brolen has left #ruby [#ruby]
subbyyy has quit [Ping timeout: 264 seconds]
dhruvasagar has quit [Remote host closed the connection]
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
jkhwan has joined #ruby
primenum has joined #ruby
dktm has joined #ruby
radic has quit [Disconnected by services]
radic_ has joined #ruby
jkhwan has quit [Ping timeout: 272 seconds]
freerobby has quit [Quit: Leaving.]
rootshift has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Lostmonk has joined #ruby
saragojo has quit [Remote host closed the connection]
roadt has quit [Read error: Connection timed out]
saragojo has joined #ruby
roadt has joined #ruby
gasbakid_ has quit [Read error: Connection reset by peer]
coderhs has quit [Ping timeout: 248 seconds]
ewnd9 has joined #ruby
jacobsmith has joined #ruby
mary5030 has joined #ruby
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
aapzak has quit [Ping timeout: 264 seconds]
braincra- has quit [Quit: bye bye]
braincrash has joined #ruby
flame_ has quit [Quit: Computer has gone to sleep.]
mojjojo has joined #ruby
coderhs has joined #ruby
multi_io has joined #ruby
aapzak has joined #ruby
saragojo has quit [Remote host closed the connection]
<multi_io>
on my debian system, I get: /usr/bin/gem1.8 --version => 1.8.24, /usr/bin/gem1.9 --version => 1.2.0, /usr/bin/gem1.9.1 --version => 1.8.23
saragojo has joined #ruby
<multi_io>
WTF?
sevin has quit [Ping timeout: 245 seconds]
iliketur_ has quit [Quit: zzzzz…..]
sevin has joined #ruby
iliketur_ has joined #ruby
rootshift has quit [Quit: rootshift]
soulcake has quit [Read error: Connection reset by peer]
bradhe has quit [Remote host closed the connection]
lethjakm1 has quit [Ping timeout: 252 seconds]
soulcake has joined #ruby
saragojo has quit [Remote host closed the connection]
iliketur_ has quit [Client Quit]
saragojo has joined #ruby
peregrine81 has quit []
Spami has quit [Quit: This computer has gone to sleep]
mwillhite has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lyanchih has quit [Quit: lyanchih]
jacobsmith has quit [Quit: leaving]
nateberkopec has joined #ruby
coderhs has quit [Ping timeout: 252 seconds]
mary5030 has quit [Remote host closed the connection]
lobe has joined #ruby
mary5030 has joined #ruby
wc- has joined #ruby
coderhs has joined #ruby
hogeo has joined #ruby
mojjojo has quit [Quit: mojjojo]
rdevilla has joined #ruby
anomaly_ has quit [Ping timeout: 252 seconds]
brianpWins has quit [Ping timeout: 240 seconds]
<rdevilla>
Is Why's Poignant Guide to Ruby worth reading, or should I just dive into the language?
saragojo has quit [Remote host closed the connection]
<rdevilla>
It is well written but very tedious and long winded... at the same time though I want to pick up some Ruby idioms on the way, and I don't know if Why's guide will give me this
saragojo has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
kevinykchan has quit [Quit: Computer has gone to sleep.]
brianpWins has joined #ruby
wc- has quit [Client Quit]
freerobby has joined #ruby
LexicalScope has joined #ruby
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
nateberkopec has quit [Quit: Leaving...]
preller has quit [Ping timeout: 264 seconds]
coderhs has quit [Ping timeout: 240 seconds]
petey has joined #ruby
coldmethod has quit [Ping timeout: 264 seconds]
nowthatsamatt has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
brianpWi1s has joined #ruby
bobdobbs` has joined #ruby
brianpWins has quit [Ping timeout: 260 seconds]
BraddPitt has joined #ruby
kofno has joined #ruby
preller has joined #ruby
petey has quit [Ping timeout: 245 seconds]
fgo has quit [Remote host closed the connection]
coca_rails has joined #ruby
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
nari has joined #ruby
preller has quit [Ping timeout: 240 seconds]
Konst2 has quit [Ping timeout: 265 seconds]
Konst has joined #ruby
coderhs has joined #ruby
brianpWi1s has quit [Ping timeout: 240 seconds]
saragojo has quit [Remote host closed the connection]
brianpWins has joined #ruby
saragojo has joined #ruby
timonv has joined #ruby
preller has joined #ruby
coldmethod has joined #ruby
jtgiri_ has quit [Quit: jtgiri_]
Konst has quit [Ping timeout: 265 seconds]
Konst has joined #ruby
tharindu has joined #ruby
m0use_ has joined #ruby
floorpi has joined #ruby
floorpi has joined #ruby
floorpi has quit [Changing host]
x1337807x has joined #ruby
s2013 has quit [Ping timeout: 240 seconds]
timonv has quit [Ping timeout: 248 seconds]
anomaly_ has joined #ruby
bradhe has joined #ruby
mmcdaris has joined #ruby
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
brianpWins has quit [Ping timeout: 260 seconds]
Asitha has quit []
Emmanuel_Chanel has quit [Quit: Leaving]
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
m0use_ has left #ruby [#ruby]
diegoviola has quit [Ping timeout: 248 seconds]
jrhorn424afk is now known as jrhorn424
jtgiri_ has joined #ruby
<bobdobbs`>
hey guys. I'm having trouble setting up ruby on ubuntu linux.
preller has quit [Ping timeout: 265 seconds]
<bobdobbs`>
I've been using rbenv.
coderhs has quit [Ping timeout: 248 seconds]
preller has joined #ruby
preller has quit [Changing host]
preller has joined #ruby
<bobdobbs`>
I used rbenv to install 1.8.7 aaaages ago. And it's been working fine. Just now I've used rbenv to install 2.0
<bobdobbs`>
however, once I've installed ruby 2.0 and do 'rbenv global 2.0.0.-p0', my ruby version is still 1.8.7
<bobdobbs`>
I'd like to switch to 2.0
<bobdobbs`>
well, ideally, i'd like to be able to use both of them
jkhwan has joined #ruby
coderhs has joined #ruby
jrhorn424 is now known as jrhorn424afk
browndawg has joined #ruby
<bobdobbs`>
If I do 'which ruby', I get '/usr/bin/ruby', which is a pointer do '/etc/alternatives/ruby'
coca_rails has quit [Remote host closed the connection]
<bobdobbs`>
however, if I do 'apt-get remove ruby', apt-get tells me that ruby isn't installed
<bobdobbs`>
I think I've got package management hell
<bobdobbs`>
how do I make 'ruby' point to whichever version of ruby is being managed by rbenv?
phipes has quit [Remote host closed the connection]
jkhwan has quit [Remote host closed the connection]
reach has quit [Remote host closed the connection]
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
nomenkun has joined #ruby
fgo has joined #ruby
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
phipes has joined #ruby
bobrenjc93 has joined #ruby
fgo has quit [Ping timeout: 248 seconds]
bobrenjc93 has left #ruby [#ruby]
aspires has joined #ruby
shedd has joined #ruby
mmcdaris has quit [Quit: mmcdaris]
phipes has quit []
osvico has quit [Ping timeout: 260 seconds]
brianpWins has joined #ruby
saragojo has quit [Remote host closed the connection]
marcgg has quit [Read error: Connection reset by peer]
saragojo has joined #ruby
marcgg has joined #ruby
rootshift has joined #ruby
kofno has quit [Ping timeout: 245 seconds]
aspires has quit []
coderhs has quit [Ping timeout: 240 seconds]
fgo has joined #ruby
saragojo has quit [Remote host closed the connection]
brianpWins has quit [Ping timeout: 260 seconds]
spike|spiegel has quit [Ping timeout: 245 seconds]
saragojo has joined #ruby
tharindu has quit [Ping timeout: 260 seconds]
Spleeze has quit [Ping timeout: 248 seconds]
freerobby has joined #ruby
coca_rails has joined #ruby
lemonsparrow_ has joined #ruby
lemonsparrow_ has quit [Client Quit]
kofno has joined #ruby
lemonsparrow_ has joined #ruby
lemonsparrow_ is now known as lemonsprarrow
freerobby has quit [Ping timeout: 245 seconds]
lemonsparrow is now known as Guest79689
lemonsprarrow is now known as krishnaveda
nomenkun has quit [Remote host closed the connection]
coderhs has joined #ruby
rootshift has quit [Quit: rootshift]
shedd has quit [Remote host closed the connection]
ttlnowz has quit [Quit: leaving]
rootshift has joined #ruby
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
preller has quit [Ping timeout: 252 seconds]
mgberlin has quit [Quit: mgberlin]
Guest31328 is now known as Radar
aspires has joined #ruby
zz_CripperZ is now known as CripperZ
aryaching has joined #ruby
subbyyy has joined #ruby
floorpi has quit [Ping timeout: 241 seconds]
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
Jetchisel has joined #ruby
preller has joined #ruby
preller has quit [Changing host]
preller has joined #ruby
kofno has quit [Read error: Connection reset by peer]
coca_rails has quit [Remote host closed the connection]
fridim_ has quit [Ping timeout: 248 seconds]
rootshift has quit [Quit: rootshift]
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nomenkun has joined #ruby
petey has joined #ruby
coderhs has quit [Ping timeout: 240 seconds]
sevin has quit [Ping timeout: 240 seconds]
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
krishnaveda has quit [Ping timeout: 272 seconds]
petey has quit [Ping timeout: 260 seconds]
xk_id has quit [Quit:
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sayan has joined #ruby
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
coderhs has joined #ruby
preller has quit [Ping timeout: 252 seconds]
ddd has joined #ruby
xk_id has joined #ruby
diegoviola has joined #ruby
fedesilv_ has quit [Remote host closed the connection]
diegoviola has quit [Changing host]
diegoviola has joined #ruby
bobdobbs` has quit [Remote host closed the connection]
preller has joined #ruby
wallerdev has joined #ruby
lyanchih has joined #ruby
jtgiri_ has quit [Quit: jtgiri_]
nomenkun has quit [Read error: Connection reset by peer]
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
fijimunkii has quit [Ping timeout: 240 seconds]
primenum has quit [Ping timeout: 240 seconds]
braincrash has quit [Ping timeout: 264 seconds]
primenum has joined #ruby
iliketur_ has joined #ruby
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
whysosad has joined #ruby
CripperZ is now known as N00D
floorpi has joined #ruby
floorpi has joined #ruby
floorpi has quit [Changing host]
h0rrorvacui has joined #ruby
<nfk>
i just got stack level too deep (SystemStackError)
<nfk>
and i'm so tired i'm almost a zombie
iliketur_ has quit [Client Quit]
dogweather has quit []
maletor has joined #ruby
<nfk>
oh great, it's a forkbomb
DeProdigy has quit [Ping timeout: 264 seconds]
ckinni has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
hogeo has quit [Remote host closed the connection]
MattStratton has joined #ruby
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
Derpinette has joined #ruby
goleldar has joined #ruby
preller has quit [Ping timeout: 245 seconds]
<Derpinette>
I am trying to bundle install some ruby gems and I get one that fails json1.7.7
<ddd>
read that then ask your questions again. following the suggested format that article details
Emmanuel_Chanel has joined #ruby
saragojo has quit [Remote host closed the connection]
Rennex_ is now known as Rennex
saragojo has joined #ruby
coderhs has quit [Read error: Connection timed out]
ewnd9 has quit [Remote host closed the connection]
<Derpinette>
I don't see where I went wrong, other than I am still trying to get the error messaged copied....
ewnd9 has joined #ruby
ss_ has joined #ruby
DeProdigy has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
coderhs has joined #ruby
<Derpinette>
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
preller has joined #ruby
<Derpinette>
. /usr/bin/ruby extconf.rb
DeProdigy has joined #ruby
Spami has joined #ruby
<ddd>
it will also give a log file to check and usually tells you the specifics in that log file of the build what exactly went wrong
gja has joined #ruby
lemonsparrow has joined #ruby
predator217 has quit [Ping timeout: 240 seconds]
freerobby has quit [Ping timeout: 265 seconds]
OdNairy has joined #ruby
OdNairy has quit [Client Quit]
OdNairy has joined #ruby
DeProdigy has quit [Ping timeout: 245 seconds]
shredding has joined #ruby
<Derpinette>
the log file it tells me only shows that /usr/bin/ruby extconf.rb line
coderhs has quit [Ping timeout: 240 seconds]
<Derpinette>
otherwise there is no other log file I know about
timonv has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
coderhs has joined #ruby
psyl0n has quit [Remote host closed the connection]
rootshift has joined #ruby
OdNairy has quit []
preller has quit [Ping timeout: 240 seconds]
preller has joined #ruby
timonv has quit [Ping timeout: 248 seconds]
saragojo has quit [Remote host closed the connection]
lemonsparrow has quit [Ping timeout: 272 seconds]
saragojo has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
coldmethod has quit [Remote host closed the connection]
N00D is now known as CripperZ
anomaly_ has quit [Ping timeout: 252 seconds]
OdNairy has joined #ruby
arietis has joined #ruby
noop has joined #ruby
shedd has joined #ruby
coderhs has quit [Ping timeout: 248 seconds]
Spami has joined #ruby
pen has quit [Read error: Connection reset by peer]
pen has joined #ruby
pen has quit [Remote host closed the connection]
justsee has joined #ruby
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
rootshift has quit [Quit: rootshift]
shedd has quit [Ping timeout: 240 seconds]
hogeo has joined #ruby
krz has joined #ruby
krz has joined #ruby
krz has quit [Changing host]
preller has quit [Ping timeout: 245 seconds]
sayan has quit [Ping timeout: 248 seconds]
CripperZ is now known as N00D
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
sevin has joined #ruby
hogeo has quit [Ping timeout: 240 seconds]
emocakes has joined #ruby
preller has joined #ruby
teenwolf has quit [Quit: Leaving...]
aspires has quit []
N00D is now known as CripperZ
maletor has quit [Quit: Computer has gone to sleep.]
DeProdigy has joined #ruby
relix has joined #ruby
brain_shim has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
justsee has quit [Ping timeout: 260 seconds]
brain_shim has quit [Max SendQ exceeded]
brenix has joined #ruby
DeProdigy has quit [Ping timeout: 240 seconds]
coderhs has joined #ruby
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
r0bby_ has quit [Ping timeout: 264 seconds]
r0bby_ has joined #ruby
fgo has quit [Remote host closed the connection]
bluOxigen has joined #ruby
predator117 has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
arietis has quit [Quit: Computer has gone to sleep.]
anomaly_ has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
brenix has left #ruby ["WeeChat 0.4.2"]
predator117 has quit [Ping timeout: 260 seconds]
phipes has joined #ruby
IceDragon has quit [Quit: Space~~~]
relix has joined #ruby
goleldar_ has joined #ruby
kitak has quit [Remote host closed the connection]
wallerdev has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nfk has quit [Quit: yawn]
relix has quit [Client Quit]
coderhs has quit [Ping timeout: 252 seconds]
shredding has quit [Quit: shredding]
goleldar has quit [Ping timeout: 265 seconds]
arietis has joined #ruby
Hanmac has joined #ruby
Hanmac1 has quit [Ping timeout: 248 seconds]
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
coderhs has joined #ruby
dktm has quit [Ping timeout: 248 seconds]
dseitz has joined #ruby
saragojo has quit [Remote host closed the connection]
brianpWins has joined #ruby
saragojo has joined #ruby
relix has joined #ruby
aryaching has quit []
hogeo has joined #ruby
h0rrorvacui has quit [Quit: Leaving]
sayan has joined #ruby
prakriti has quit [Ping timeout: 248 seconds]
mephux has joined #ruby
freerobby has joined #ruby
hogeo has quit [Ping timeout: 245 seconds]
krz has quit [Quit: WeeChat 0.4.2]
DeProdigy has joined #ruby
fgo has joined #ruby
coderhs has quit [Ping timeout: 245 seconds]
niop has joined #ruby
<niop>
anyone know how to pipeline this css?: background: transparent url(../img/bg.jpg) repeat 0% 0%;
Guest88982 has joined #ruby
Guest88982 has quit [Client Quit]
<niop>
have tried replacing "url(..)" with '<%= image_path(...) ' and also image_tag, but neither seem to work. parallax scroller isn't loading properly and presume this may be the reason.
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
freerobby has quit [Ping timeout: 265 seconds]
<emocakes>
niop rails?
<emocakes>
image_url()
zz_karupanerura is now known as karupanerura
<niop>
rails.. oops. thought was in rails. lack of sleep.
petey has joined #ruby
saragojo has quit [Remote host closed the connection]
* emocakes
spanks niop
<emocakes>
bad boy
DeProdigy has quit [Ping timeout: 248 seconds]
saragojo has joined #ruby
<niop>
the results are worth it, but for this niggling issue.
<niop>
didn't know there was an image_url, but i've give it a spin. thanks
<niop>
*I'll
<emocakes>
also is asset_url i think
<emocakes>
i use them anyway, and they work.. so i might be using a different rails :p
<niop>
another, ok.. well, the more the merrier.
phipes has quit [Remote host closed the connection]
<niop>
didn't work, maybe the images aren't in the right spot in public.
saragojo has quit [Read error: Connection reset by peer]
<emocakes>
mebbe
<emocakes>
oh public
<emocakes>
huh
saragojo has joined #ruby
<emocakes>
just look in the browser console
<emocakes>
and see what it is looking for
mmcdaris has quit [Quit: mmcdaris]
<emocakes>
image_url etc are for files in the asset pipeline
predator117 has joined #ruby
<emocakes>
/public isnt in the asset pipeline
<niop>
i mean the compiled images are in the wrong place in public.
<niop>
at the moment, they're located in matching asset directory tree. but read somewhere that one might have to put the images in public/images.
preller has quit [Ping timeout: 240 seconds]
hogeo has joined #ruby
dseitz has quit [Ping timeout: 264 seconds]
<niop>
console gave this previously unseen msg "event.returnValue is deprecated. Please use the standard event.preventDefault() instead." that might be a sign that it worked, and it's proceeding further along the css
<niop>
or js
saragojo has quit [Remote host closed the connection]
shadoi has quit [Quit: Leaving.]
saragojo has joined #ruby
rippa has joined #ruby
predator117 has quit [Remote host closed the connection]
<niop>
it's just a warning msg.. i might check #rails, but they're usually rather quiet there.
<niop>
thanks for the suggestions anyway. might still be worth experimenting with.
dseitz has joined #ruby
hogeo has quit [Ping timeout: 240 seconds]
rootshift has joined #ruby
preller has joined #ruby
c0 has left #ruby [#ruby]
Spami has quit [Quit: This computer has gone to sleep]
_HolyCow1 has joined #ruby
mmcdaris has joined #ruby
hilili has joined #ruby
sayan has quit [Ping timeout: 245 seconds]
hilili has quit [Client Quit]
_HolyCow has quit [Ping timeout: 272 seconds]
saragojo has quit [Remote host closed the connection]
primenum has quit [Ping timeout: 260 seconds]
saragojo has joined #ruby
<niop>
in case emo is around.. the path is converted to " background: transparent '/assets/ut/plugins/parallax-slider/img/bg.jpg' "
<niop>
from console
<niop>
but that's not pipelined. so it's not wonder it's not finding the image. because all the images in public are compiled.
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
Konst has quit [Ping timeout: 248 seconds]
mr_snowf1ake has quit [Read error: Operation timed out]
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
iliketur_ has joined #ruby
rootshift has quit [Quit: rootshift]
tonni has quit [Remote host closed the connection]
saragojo has quit [Remote host closed the connection]
tonni has joined #ruby
saragojo has joined #ruby
rootshift has joined #ruby
davy_ has quit [Remote host closed the connection]
jekt has quit [Quit: This computer has gone to sleep]
jekt has joined #ruby
tonni has quit [Ping timeout: 260 seconds]
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
rootshift has quit [Ping timeout: 245 seconds]
preller has quit [Ping timeout: 264 seconds]
madiba has joined #ruby
predator117 has joined #ruby
timonv has joined #ruby
Konst has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
preller has joined #ruby
predator117 has quit [Ping timeout: 240 seconds]
timonv has quit [Ping timeout: 252 seconds]
subbyyy has quit [Ping timeout: 264 seconds]
yacks has quit [Ping timeout: 260 seconds]
bradhe has quit [Ping timeout: 248 seconds]
freerobby has joined #ruby
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
yacks has joined #ruby
lyanchih has quit [Ping timeout: 240 seconds]
siton has joined #ruby
noop has joined #ruby
freerobby has quit [Ping timeout: 260 seconds]
DeProdigy has joined #ruby
bobdobbs has joined #ruby
phansch has joined #ruby
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
lyanchih has joined #ruby
abowhill has quit [Remote host closed the connection]
siton has quit [Quit: Lost terminal]
flubba has quit [Remote host closed the connection]
dangerousdave has joined #ruby
siwica has quit [Ping timeout: 252 seconds]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
Dreamer3 has joined #ruby
emergion has joined #ruby
sheap has joined #ruby
DeProdigy has quit [Ping timeout: 248 seconds]
yacks has quit [Read error: Operation timed out]
gja has joined #ruby
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
Konst has quit [Ping timeout: 248 seconds]
<bobdobbs>
I'm using grunt for a project. I've just updated ruby to 2.0. Now, when I run grunt I get this message: http://paste.laravel.com/1ept
<bobdobbs>
It looks like grunt starts running, then decides that it isn't installed.
<bobdobbs>
I figure that this is related to updating ruby
momomomomo has quit [Quit: momomomomo]
aagdbl has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.2]
tvw has joined #ruby
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
<dseitz>
Error suggests issue with Grunt
<bobdobbs>
you know what... I'm a dumbass
<bobdobbs>
I was running grunt in a dir with no gruntfile
hogeo has joined #ruby
* bobdobbs
returns to newb corner. dons dunce cap
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
jekt has quit [Quit: This computer has gone to sleep]
b00stfr3ak has quit [Ping timeout: 240 seconds]
dseitz has quit [Ping timeout: 240 seconds]
hogeo has quit [Ping timeout: 240 seconds]
tesuji has joined #ruby
saragojo has quit [Remote host closed the connection]
dseitz has joined #ruby
saragojo has joined #ruby
jhn has quit [Ping timeout: 251 seconds]
preller has quit [Ping timeout: 248 seconds]
vlad_starkov has joined #ruby
sguselnikov has joined #ruby
arietis has quit [Read error: Connection reset by peer]
mengu has joined #ruby
mengu has quit [Remote host closed the connection]
saragojo has quit [Remote host closed the connection]
waxjar_ has quit [Ping timeout: 252 seconds]
sevin has quit [Ping timeout: 240 seconds]
preller has joined #ruby
tharindu has joined #ruby
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lyanchih has quit [Quit: lyanchih]
sevin has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
benlieb has joined #ruby
saragojo has joined #ruby
RoryHughes has joined #ruby
yacks has joined #ruby
rubyracer has joined #ruby
preller has quit [Ping timeout: 264 seconds]
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
benlieb has quit [Quit: benlieb]
gja has quit [Quit: This computer has gone to sleep]
saragojo has quit [Remote host closed the connection]
s8p3 has joined #ruby
saragojo has joined #ruby
RoryHughes has quit []
freerobby has joined #ruby
zipper has joined #ruby
Ponyo has left #ruby [#ruby]
matchaw has quit [Ping timeout: 272 seconds]
preller has quit [Ping timeout: 245 seconds]
aryaching_ has joined #ruby
mercwithamouth has joined #ruby
freerobby has quit [Ping timeout: 265 seconds]
ss_ has quit [Remote host closed the connection]
aryaching has quit [Ping timeout: 240 seconds]
mbff_ has joined #ruby
ewnd9 has joined #ruby
Astralum has joined #ruby
dayepa has quit [Ping timeout: 246 seconds]
saragojo has quit [Remote host closed the connection]
DeProdigy has joined #ruby
saragojo has joined #ruby
okinomo has quit [Ping timeout: 260 seconds]
ewnd9 has quit [Max SendQ exceeded]
ewnd9 has joined #ruby
preller has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mengu has joined #ruby
DeProdigy has quit [Ping timeout: 252 seconds]
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
justsee has quit [Ping timeout: 264 seconds]
Neomex has quit [Quit: Neomex]
ace_striker has quit [Quit: Page closed]
dayepa has joined #ruby
anderson has quit [Ping timeout: 240 seconds]
maroloccio has joined #ruby
hogeo has joined #ruby
gianlucadv has quit [Ping timeout: 260 seconds]
anderson has joined #ruby
agjacome has joined #ruby
michael_lee has joined #ruby
colonolGron has joined #ruby
michael_lee has quit [Max SendQ exceeded]
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
hogeo has quit [Ping timeout: 265 seconds]
ss_ has joined #ruby
chihhsin has quit [Read error: Connection reset by peer]
gja has quit [Quit: This computer has gone to sleep]
sepp2k1 has quit [Quit: Leaving.]
sepp2k has joined #ruby
s8p3 has quit [Quit: leaving]
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
sp3_ has joined #ruby
petey has joined #ruby
tesuji has quit [Ping timeout: 264 seconds]
brianpWins has quit [Ping timeout: 240 seconds]
cbetta is now known as cbetta_afk
brianpWins has joined #ruby
<shevy>
dumdedum
petey has quit [Ping timeout: 252 seconds]
Czupa has joined #ruby
chihhsin has joined #ruby
jibi has quit [Quit: .]
lobe has quit [Remote host closed the connection]
brianpWins has quit [Ping timeout: 240 seconds]
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
fgo has joined #ruby
brianpWins has joined #ruby
ephemerian has joined #ruby
yerkey has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Astralum has quit [Quit: Leaving]
Hanmac1 has joined #ruby
fgo has quit [Ping timeout: 265 seconds]
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
anomaly_ has quit [Read error: Connection reset by peer]
anomaly_ has joined #ruby
cantonic has quit [Quit: cantonic]
gja has joined #ruby
<shevy>
damn
<shevy>
extend is functionally not the same as include?
<apeiros>
it's very similar
<DouweM>
shevy: one is for class methods, the other for instance methods
<shevy>
:(
<apeiros>
DouweM: not a good explanation IMO :-/
<DouweM>
:D
saragojo has quit [Remote host closed the connection]
<DouweM>
how would you explain it?
saragojo has joined #ruby
<shevy>
so I can include a module into a class via include. But at runtime, how could I extend it to give that class the same functionality? with extend NameOfModule I just tested, the namespace does not seem to have become of that class
<apeiros>
both add instance methods of a module (I mistook yours at first that one adds class methods of the module)
Astralum has joined #ruby
tharindu_ is now known as tharindu_|away
Guest59609 is now known as Styles
<apeiros>
extend work on any object and is almost the same as obj.singleton_class.send :include, MyModule (obj.extend MyModule)
<apeiros>
*works
<DouweM>
apeiros: right. because a module doesn't have "class methods", just methods. On a class, include adds them as instance methods though, extend as class methods
<apeiros>
modules can have class methods
<DouweM>
they can? oh damn you're right :/
<DouweM>
I really shouldn't try to help here before I'd had coffee
<DouweM>
*I've
<apeiros>
since "class methods" are not really class methods
<apeiros>
that's just a convenience term for methods on the singleton class
<DouweM>
yeah, I know all of that... Just disregard me
<apeiros>
(which happen to be class methods in classes…)
<robin850>
but when I'm calling it, the compiler says that the returned value is an int but StringValueCStr should return a "char" (C string) no ?
freerobby has joined #ruby
RoryHughes has joined #ruby
RoryHughes has quit [Max SendQ exceeded]
RoryHughes has joined #ruby
<Hanmac>
robin850: thy "char* " insreat of "char *"
canton7 has joined #ruby
Ox6abe has joined #ruby
freerobby has quit [Ping timeout: 252 seconds]
<robin850>
Hanmac: Whoah, thank you! It works! \o/ Can I ask you another C question (actually, it's C++) or not please ?
<shevy>
ok
<Hanmac>
you can try ;P
<shevy>
it works via class_eval
saragojo has quit [Remote host closed the connection]
saragojo has joined #ruby
<robin850>
Hanmac: Actually, I'm writing a patch for Redcarpet and I'm trying to run the test suite against Rubinius (2.2.1) but I'm getting an error which is pure virtual method called
<robin850>
Have you ever encountered this kind of error ?
<shevy>
perhaps it is rubinius specific
DeProdigy has joined #ruby
<shevy>
what is the exact error?
<Hanmac>
robin850: pure virtual means you have an class that has a virtual (*)=0 method defined ... from that class you cant make instances ... make a gist of that error and when it apears
<|jemc|>
so if class A includes module X, and I have a method(:foo) object I retrieved, is there a way to tell whether that method was defined by class A or module X?
esing has quit [Read error: Operation timed out]
esing has joined #ruby
browndawg has left #ruby [#ruby]
randomnick_ has quit [Remote host closed the connection]
MartinR has joined #ruby
preller has joined #ruby
MartinR is now known as Guest97283
Advocation has joined #ruby
gja has quit [Client Quit]
hogeo has quit [Ping timeout: 252 seconds]
nwertman has joined #ruby
wIzjIn has joined #ruby
yfeldblum has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
codecop has quit [Remote host closed the connection]
flame_ has quit [Quit: Computer has gone to sleep.]
pen has joined #ruby
sevin has quit [Read error: Connection reset by peer]
gja has quit [Client Quit]
sevin has joined #ruby
Hanmac has joined #ruby
<shevy>
man, -w switch can be so annoying
indy138 has quit [Remote host closed the connection]
joaoh82 has joined #ruby
w1xz has joined #ruby
<shevy>
|jemc| hmm I think there is caller() __method__ and calle
<|jemc|>
yeah, but then I need to calculate it by reading the file in and parsing it to figure out which moduleor class it is in
<|jemc|>
which is not reliable or efficient enough for my purposes, unfortunately
xk_id has quit [Quit:
Hanmac has quit [Ping timeout: 240 seconds]
fijimunkii has joined #ruby
Hanmac1 has joined #ruby
banister has joined #ruby
joaoh82 has quit [Ping timeout: 252 seconds]
xk_id has joined #ruby
xk_id has quit [Max SendQ exceeded]
Cork has joined #ruby
Cork is now known as Guest77089
klaut has joined #ruby
drumusician has quit [Ping timeout: 264 seconds]
xk_id has joined #ruby
lyanchih has quit [Ping timeout: 264 seconds]
ss_ has quit [Remote host closed the connection]
anderson has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
defendguin has joined #ruby
tesuji has joined #ruby
anderson has joined #ruby
tonni has joined #ruby
tesuji has quit [Excess Flood]
<defendguin>
is it absolutely necessary to close a connection to an sqlite db before i end my script?
<defendguin>
seems like my script will hang randomly when i try to close it
DeProdigy has joined #ruby
Revokee has quit [Quit: Leaving.]
<Hanmac1>
|jemc|: Method#owner
RoryHughes has joined #ruby
tesuji has joined #ruby
_JamieD_ has quit [Ping timeout: 240 seconds]
<|jemc|>
there we go
xk_id has quit [Ping timeout: 265 seconds]
<|jemc|>
knew it had to exis somewhere
<|jemc|>
thanks, Hanmac
troyready has joined #ruby
rootshift has quit [Quit: rootshift]
lethjakm1 has joined #ruby
phrozen77 has quit [Changing host]
phrozen77 has joined #ruby
noop has quit [Ping timeout: 245 seconds]
Guest77089 has quit [Changing host]
Guest77089 has joined #ruby
Guest77089 is now known as Cork
_JamieD_ has joined #ruby
DeProdigy has quit [Ping timeout: 264 seconds]
krz has quit [Quit: WeeChat 0.4.2]
noop has joined #ruby
grift has left #ruby ["Leaving"]
krz has joined #ruby
fedesilva has joined #ruby
wallerdev has joined #ruby
kaiza has joined #ruby
kaiza has quit [Max SendQ exceeded]
coldmethod has quit [Ping timeout: 265 seconds]
kaiza has joined #ruby
mengu has quit []
sethen has joined #ruby
matheuscaceres has quit [Quit: matheuscaceres]
viod has joined #ruby
wIzjIn has quit []
thecopy has joined #ruby
RoryHughes has quit []
Hanmac has joined #ruby
Hanmac1 has quit [Ping timeout: 245 seconds]
RoryHughes has joined #ruby
RoryHughes has quit [Client Quit]
predator117 has joined #ruby
peregrine81 has quit []
mojjojo has joined #ruby
Mon_Ouie has quit [Read error: Operation timed out]
RoryHughes has joined #ruby
colonolGron has joined #ruby
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
relix has joined #ruby
matheuscaceres has joined #ruby
ewnd9 has quit [Ping timeout: 245 seconds]
nwertman has joined #ruby
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
levin has joined #ruby
levin is now known as Guest68335
coldmethod has joined #ruby
nateberkopec has joined #ruby
defendguin has quit [Quit: Leaving.]
Ox6abe has joined #ruby
sumark_ is now known as sumark
havenwood has quit [Remote host closed the connection]
AzizLight has joined #ruby
<AzizLight>
Hi everybody
havenwood has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<AzizLight>
I am trying to run `git add -p` from Ruby (without any success). User input is completely ignored. I tried using open3, and I do not want to use any gems. Any suggestions? (related SO question: http://stackoverflow.com/q/20597632/123016)
havenwood has quit [Read error: Connection reset by peer]
bricker`LA has joined #ruby
havenwood has joined #ruby
rootshift has joined #ruby
hogeo has joined #ruby
Ox6abe has quit [Ping timeout: 240 seconds]
klaut has quit [Remote host closed the connection]
fijimunk1i has joined #ruby
marcgg_ has joined #ruby
L8D has quit [Ping timeout: 248 seconds]
mojjojo has quit [Quit: mojjojo]
xk_id has joined #ruby
bricker`LA has quit [Ping timeout: 240 seconds]
eka has joined #ruby
<hoelzro>
I'm guessing git add -p prefers to be run on a terminal
<hoelzro>
so you'll probably have to use a pty
fijimunkii has quit [Ping timeout: 252 seconds]
Hanmac1 has joined #ruby
bricker`LA has joined #ruby
bricker`LA has quit [Client Quit]
hogeo has quit [Ping timeout: 264 seconds]
marcgg has quit [Ping timeout: 264 seconds]
fijimunk1i has quit [Ping timeout: 240 seconds]
mojjojo has joined #ruby
<AzizLight>
hoelzro: I didn't know about pty, will look into it, thanks ;-)
Hanmac has quit [Ping timeout: 264 seconds]
drag00n has joined #ruby
decoponio has quit [Quit: Leaving...]
mojjojo has quit [Client Quit]
sevin has quit [Quit: Leaving]
momomomomo has joined #ruby
SHyx0rmZ has joined #ruby
mojjojo has joined #ruby
RoryHughes has quit []
rootshift has quit [Quit: rootshift]
_5kg_ has quit [K-Lined]
amacgregor_ has joined #ruby
yfeldblum has joined #ruby
noname001__ has quit [Ping timeout: 252 seconds]
nateberkopec has joined #ruby
ambushsabre has joined #ruby
klaut has joined #ruby
sevin has joined #ruby
bogeyd6 has quit [Ping timeout: 245 seconds]
IceDragon has quit [Ping timeout: 264 seconds]
predator117 has quit [Ping timeout: 264 seconds]
bogeyd6 has joined #ruby
predator117 has joined #ruby
ss_ has joined #ruby
mojjojo has quit [Quit: mojjojo]
mojjojo has joined #ruby
IceDragon has joined #ruby
DeProdigy has joined #ruby
pen has quit []
ElasticElephant has quit [Quit: ChatZilla 0.9.90.1 [Firefox 25.0.1/20131112160018]]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
prc has quit [Read error: Connection reset by peer]
<lethjakm1>
hmmm I can give that a shot, it'll take forever to reinstall though.
<hoelzro>
you might not need to
prc has joined #ruby
<hoelzro>
grr
<lethjakm1>
when I use -v it just gives me the options I can use
prc has left #ruby [#ruby]
prc has joined #ruby
<hoelzro>
on my machine, it's logging to a temporary location =(
<hoelzro>
so it doesn't recognize -v =(
<hoelzro>
the command didn't tell you about a log file when it failed?
crazymykl has joined #ruby
havenn has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
choobie has quit [Quit: choobie]
AndroUser2 has joined #ruby
<lethjakm1>
no, it didn't fail. I just can't press up anywhere and it asks for readline when I start rails
DeProdigy has quit [Ping timeout: 252 seconds]
<MrZYX>
I'd make sure that libreadline-devel, or whatever the package is called on your OS, is installed and reinstall ruby
xiphias has quit [Ping timeout: 240 seconds]
tharindu_ has quit [Quit: Leaving...]
DeProdigy has joined #ruby
coffeina has joined #ruby
<lethjakm1>
I'll try it with that
matchaw has quit [Read error: Operation timed out]
AndroUser2 has quit [Ping timeout: 240 seconds]
<AzizLight>
hoelzro: do you know how I can display the stdin prompt that git displays using pty please? (I've updated the SO question: http://stackoverflow.com/q/20597632/123016)
tesuji has quit [Read error: Connection reset by peer]
<hoelzro>
you should probably flush stdout
jamesaanderson has joined #ruby
DeProdigy has quit [Ping timeout: 260 seconds]
jamesaanderson has quit [Max SendQ exceeded]
jamesaanderson has joined #ruby
jonathanwallace1 has quit [Ping timeout: 248 seconds]
<kraljev0>
how can a class instance access class instance variables?
havenn has quit [Remote host closed the connection]
w4pm has joined #ruby
havenwood has joined #ruby
<AzizLight>
hoelzro: awesome, now the prompt shows. Now I need to get the user input and send it back to git... -_-
three18t- is now known as three18ti
<hoelzro>
\o/
<shevy>
kraljev0 how does store :a work
joaoh82 has joined #ruby
sp3__ has joined #ruby
<shevy>
kraljev0 it seems to store on the class level at A rather than the instance level that you created lateron when you call .new
starfox21 has joined #ruby
<MrZYX>
kraljev0: it can't, since those values would be the same for all classes I'd just delegate to the class
joaoh82 has quit [Remote host closed the connection]
joaoh82 has joined #ruby
sp3_ has quit [Ping timeout: 240 seconds]
<MrZYX>
class << self; attr_reader :storage; end; def storage; self.class.storage; end
<starfox21>
hey guys, I was going thru ruby monk and I don't quite get this sentence "Kernel#proc factory method is identical to Proc.new. Note that proc is a method and not a literal form like -> nor a keyword like yield."
<starfox21>
I don't quite get the difference between literal and keyword
<starfox21>
the way they use it here
<MrZYX>
kraljev0: check forwardable in stdlib if you'd need to define a lot of those
<kraljev0>
thanks!
<AzizLight>
hoelzro: no code seems to get executed after the block...
skaflem has quit [Quit: Leaving]
<hoelzro>
which block?
<mackwic>
I would want to replace the Thread class by a stub at test time. Object.send :remove_const, :Thread seams not very effective (I use thread/pool to augment the Thread class and it don't appreciate it very much). Do you think I'll need a feature switch inside the class ?
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<eval-in_>
shevy => tried to create Proc object without a block (ArgumentError) ... (https://eval.in/79667)
<starfox21>
MrZYX: makes sense, thanks
<AzizLight>
hoelzro: I'm lost... how can I read stdout char by char without a block? Or how can I break out of the block when stdin kicks in?
krz has joined #ruby
krz has joined #ruby
krz has quit [Changing host]
<hoelzro>
I would use select
<hoelzro>
or an event loop
mroth has quit [Changing host]
mroth has joined #ruby
mroth has quit [Changing host]
mroth has joined #ruby
<mackwic>
anyone does class substitution for testing purpose ?
jtgiri_ has joined #ruby
krz has quit [Ping timeout: 248 seconds]
lethjakman has joined #ruby
MartinR has joined #ruby
jtgiri_ has quit [Client Quit]
MartinR is now known as Guest71468
Guest71468 is now known as martis
fijimunkii has joined #ruby
lethjakm1 has quit [Ping timeout: 248 seconds]
jekt has joined #ruby
<AzizLight>
hoelzro: seems complicated -_- Just bought Jesse Storimer's book on TCP sockets, maybe I can find something in there before asking stupid questions
noop has quit [Ping timeout: 245 seconds]
RoryHughes has joined #ruby
<hoelzro>
it might have some input on select
<hoelzro>
I think that ruby documentation on select (or the man page) will probably provide you with the information you need, though
Megtastique has quit []
predator117 has quit [Remote host closed the connection]
Advocation has quit [Quit: Advocation]
renklaf has joined #ruby
mklappstuhl has joined #ruby
mackwic has left #ruby ["_o/"]
mackwic has joined #ruby
mojjojo has joined #ruby
w1xz has quit [Quit: ZZZzzz…]
reach has joined #ruby
wallerdev has quit [Quit: wallerdev]
jtgiri_ has joined #ruby
jamest3 has joined #ruby
<kraljev0>
Why is Array#concat without exclamation mark
<kraljev0>
since it's mutable
<jamest3>
hi can someone take a quick look at my gist (trying to solve an easy math problem object oriented), but i am not returning the right answer. https://gist.github.com/jamesjtong/7976931
<kraljev0>
I have such inconsistencies!
RoryHughes has quit []
jtgiri_ has quit [Client Quit]
flubba has joined #ruby
<havenwood>
kraljev0: the bang (!) means that there is already a non-bang version that doesn't modify the receiver
<mackwic>
jamest3, 404
drumusician has joined #ruby
mrfoto has quit [Remote host closed the connection]
assurbanipal has quit [Remote host closed the connection]
existensil_ has quit [Ping timeout: 260 seconds]
nettoweb has joined #ruby
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
phipes has quit [Remote host closed the connection]
defendguin has joined #ruby
jtgiri_ has quit [Client Quit]
io_syl has joined #ruby
havenwood has joined #ruby
tr0ss has joined #ruby
Ox6abe has joined #ruby
ddd is now known as deryl
havenwood has quit [Remote host closed the connection]
justsee has joined #ruby
justsee has joined #ruby
sergicles has quit [Quit: sergicles]
agjacome has quit [Ping timeout: 240 seconds]
ddd has joined #ruby
ddd has quit [Client Quit]
Es0teric has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
agjacome has joined #ruby
Konst has quit []
Megtastique has quit []
phipes has joined #ruby
mikepack has joined #ruby
tr0ss has quit [Quit: leaving]
ddd has joined #ruby
culturel_ has joined #ruby
Jetchisel has joined #ruby
shedd has quit [Remote host closed the connection]
zipper_ is now known as zipper
Ox6abe has quit []
shime has quit [Read error: No route to host]
shime_ has joined #ruby
CpuID has joined #ruby
g0bl1n has quit [Ping timeout: 240 seconds]
kraljev0 has joined #ruby
deryl has quit [Quit: Leaving]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CpuID has quit [Client Quit]
jamesaanderson has joined #ruby
kraljev0 has quit [Read error: Connection reset by peer]
jamesaanderson has quit [Max SendQ exceeded]
kraljev0 has joined #ruby
floorpi has quit [Quit: Leaving]
jamesaanderson has joined #ruby
jamesaanderson has quit [Client Quit]
Megtastique has joined #ruby
Advocation has joined #ruby
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
phipes has quit [Remote host closed the connection]
jamesaanderson has joined #ruby
ckinni has joined #ruby
Hanmac1 has joined #ruby
coca_rails has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
RoryHughes has quit []
mklappstuhl has quit [Remote host closed the connection]
timonv has joined #ruby
phipes has joined #ruby
maroloccio has quit [Quit: WeeChat 0.4.1]
ckinni has quit [Client Quit]
maroloccio has joined #ruby
maroloccio has quit [Client Quit]
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
CpuID has joined #ruby
CpuID has quit [Changing host]
CpuID has joined #ruby
aryaching has joined #ruby
RoryHughes has joined #ruby
ckinni has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
kraljev0 has quit [Quit: kraljev0]
maroloccio has joined #ruby
kraljev0 has joined #ruby
ckinni has quit [Client Quit]
Megtastique has quit []
ckinni has joined #ruby
timonv has quit [Ping timeout: 241 seconds]
jtgiri_ has joined #ruby
kraljev0 has quit [Read error: Connection reset by peer]
ckinni has quit [Client Quit]
kraljev0 has joined #ruby
mengu has quit [Remote host closed the connection]
s_e has quit [Excess Flood]
ckinni has joined #ruby
kraljev0 has quit [Client Quit]
kraljev0 has joined #ruby
nettoweb has quit [Quit: nettoweb]
Rollabunna has quit [Remote host closed the connection]
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ckinni has quit [Client Quit]
kraljev0 has quit [Client Quit]
Neomex has joined #ruby
kraljev0 has joined #ruby
cgore has joined #ruby
ckinni has joined #ruby
Hanmac1 has quit [Ping timeout: 260 seconds]
Rollabunna has joined #ruby
shredding has joined #ruby
Hanmac has joined #ruby
ckinni has quit [Client Quit]
sheap has quit [Ping timeout: 252 seconds]
s_e has joined #ruby
jxport has joined #ruby
predator117 has quit [Ping timeout: 264 seconds]
ckinni has joined #ruby
<jxport>
I wish to map an operation across an Enumeration - but only on every third element; simply returning the original value if it's not every 3rd element. How can I best do this?
<jxport>
Looping and %'ing the iteration counter doesn't seem Ruby
Neomex has quit [Client Quit]
RoryHughes has quit []
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ckinni has quit [Client Quit]
renklaf has quit [Read error: Operation timed out]
ckinni has joined #ruby
<MrZYX>
jxport: is that operation (available as) self modifying or do you need to retain the original list?