apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
eka has joined #ruby
adkron has joined #ruby
Mars` has joined #ruby
einarj has joined #ruby
dzhulk1 has quit [Quit: Leaving.]
<havenwood> >> [1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 7, 8, 9, 10].group_by { |x| x }.keep_if { |_, v| v.one? }.keys.first
<eval-in> havenwood => 6 (https://eval.in/54378)
adkron has quit [Ping timeout: 272 seconds]
<havenwood> Tearan: yeah, Minitest is great
zz_tsykoduk is now known as tsykoduk
einarj has quit [Ping timeout: 272 seconds]
oponder has quit [Remote host closed the connection]
jeffdb has quit [Quit: jeffdb]
beilabs has quit [Ping timeout: 240 seconds]
beilabs has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
<havenwood> >> [1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 7, 8, 9, 10].group_by { |e| e }.values.keep_if(&:one?).flatten.first
<eval-in> havenwood => 6 (https://eval.in/54387)
<havenwood> or that ^
<volty> eh?
T_T has joined #ruby
_maes_ has joined #ruby
tsykoduk is now known as zz_tsykoduk
<volty> the unstable's ! popl's one is excellent
<|PiP|_> how can i write a ruby method that takes both a block or a proc ?
<|PiP|_> and does the same thing regardless of whether i pass in a block or a proc
osvico has joined #ruby
ChronocityLC has joined #ruby
<volty> def func(pr, &b) ...
geggam has quit [Read error: Connection reset by peer]
<volty> >> def test(pr, &b); pr.call; yield; end; test(proc { puts ::hi_proc }) { puts :hi_yield }
<eval-in> volty => /tmp/execpad-78f9477b92c5/source-78f9477b92c5:2: syntax error, unexpected tIDENTIFIER, expecting tCONSTANT ... (https://eval.in/54400)
geggam has joined #ruby
rgbdev has joined #ruby
kenneth has quit [Read error: Connection reset by peer]
DonRichie has quit [Ping timeout: 272 seconds]
|PiP|_ has quit [Ping timeout: 272 seconds]
DrShoggoth has quit [Ping timeout: 252 seconds]
<volty> without intermediate variables ? (the unstable's one)
<volty> want it now or you prefer to think it out?
<RubyPanther> volty, |PiP|_: def foo(&b); ... end ; foo(&proc) ; foo(){...}
<volty> you are right, I read it as 'and'
snuffeluffegus has quit [Remote host closed the connection]
Mars` has quit [Read error: Connection reset by peer]
Mars` has joined #ruby
kaspergrubbe has joined #ruby
ereslibre has joined #ruby
tjbiddle has joined #ruby
Mars` has quit [Ping timeout: 240 seconds]
petey has quit [Remote host closed the connection]
mrsolo has quit [Quit: This computer has gone to sleep]
smirn0v has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aryaching_ has joined #ruby
mercwithamouth has joined #ruby
zz_tsykoduk is now known as tsykoduk
tdk2fe has joined #ruby
mrsolo has joined #ruby
T_T has quit [Remote host closed the connection]
nwertman has joined #ruby
T_T has joined #ruby
ereslibre has quit [Ping timeout: 245 seconds]
aryaching has quit [Ping timeout: 240 seconds]
|PiP|_ has joined #ruby
randomnick_ has quit [Quit: Leaving]
T_T has quit [Ping timeout: 245 seconds]
fgo has joined #ruby
fwmath has joined #ruby
Hanmac has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
lfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tsykoduk is now known as zz_tsykoduk
aryaching has joined #ruby
tdk3fe has joined #ruby
adaoraul has joined #ruby
io_syl has joined #ruby
chuck has quit [Ping timeout: 248 seconds]
lfox has joined #ruby
T_T has joined #ruby
aryaching_ has quit [Ping timeout: 240 seconds]
endash has quit [Quit: endash]
T_T has quit [Remote host closed the connection]
w3pm has quit [Quit: This computer has gone to sleep]
uokesita_ has joined #ruby
sevenseacat has joined #ruby
tdk2fe has quit [Ping timeout: 272 seconds]
robert_ has quit [Read error: Connection reset by peer]
tdk3fe is now known as tdk2fe
kurt211 has quit [Quit: Leaving.]
roadt has joined #ruby
habstinat has joined #ruby
parzo has joined #ruby
|PiP|_ has quit [Ping timeout: 252 seconds]
geggam has quit [Ping timeout: 240 seconds]
lyanchih has joined #ruby
aryaching has quit [Ping timeout: 265 seconds]
wifinode has joined #ruby
ce_afk is now known as cescalante
mrsolo has quit [Quit: This computer has gone to sleep]
Xaitec has quit [Read error: Connection reset by peer]
fenec2 has joined #ruby
aryaching has joined #ruby
<fenec2> hey guys
<fenec2> what is the best way to parse stdin for my custmized script
Xaitec has joined #ruby
AndChat| has quit [Remote host closed the connection]
eka has quit [Quit: Computer has gone to sleep.]
kil0byte has quit [Ping timeout: 240 seconds]
Hanmac1 has joined #ruby
aryaching has quit [Ping timeout: 240 seconds]
ereslibre has joined #ruby
ereslibre has joined #ruby
aryaching has joined #ruby
wifinode has quit [Ping timeout: 272 seconds]
gyre007 has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
dmiller has quit [Remote host closed the connection]
dmiller has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
<havenwood> fenec2: gets.chomp
<havenwood> fenec2: depends what you're trying to do
kaspergrubbe has quit [Ping timeout: 240 seconds]
cescalante is now known as ce_afk
ereslibre has quit [Ping timeout: 245 seconds]
|PiP|_ has joined #ruby
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
jonahR has left #ruby [#ruby]
Xaitec has quit [Read error: Connection reset by peer]
geggam has joined #ruby
Xaitec has joined #ruby
<fenec2> havenwood, is there a gem to parse a line to extract commands?
Xaitec has quit [Read error: Connection reset by peer]
Xaitec has joined #ruby
NicolasTarzia has quit [Quit: Leaving]
Reach has joined #ruby
Xaitec has quit [Read error: Connection reset by peer]
mercwithamouth has quit [Read error: Operation timed out]
Mars` has joined #ruby
Xaitec has joined #ruby
fayimora has quit [Quit: zzzzz...]
b00stfr3ak has quit [Ping timeout: 245 seconds]
mgoszcz2 has joined #ruby
rgbdev has quit [Quit: rgbdev]
thesheff17 has quit [Quit: Leaving]
Xaitec has quit [Read error: Connection reset by peer]
thesheff17 has joined #ruby
fijimunk1i has joined #ruby
Xaitec has joined #ruby
fijimunkii has quit [Ping timeout: 240 seconds]
mgoszcz2 has quit [Read error: No route to host]
Tearan has quit [Quit: Sleepy Badger....]
<volty> what kind of commands ?
<Reach> is rubymonk a good way to learn basic ruby?
Atrumx has joined #ruby
|PiP|_ has quit [Ping timeout: 252 seconds]
<jrobeson> Reach, it is ok enough.. you might want to try something that is a bit more flexible like the ruby koans
<jrobeson> since you can just play with it on your own computer in your own text editor
zz_tsykoduk is now known as tsykoduk
<Reach> well i've learned java well enough before, so i understand how to program. just learning syntax really, then going to do project euler or programmingpraxis
<fenec2> volty, so basically i want to add command fron stdin and execute methods in my script
<jrobeson> Reach, well especially then.. play with the ruby koans, you should be able to make it through quickly
veinofstars has joined #ruby
<Reach> hm
<Reach> jrobeson: my only problem is, while i can write code... these editors are confusing.
<jrobeson> which editors?
<Reach> well i downloaded textmate because that seems to be the most recommended one for ruby
<jrobeson> ah i just use vim
<jrobeson> however.. why not use the editor you already know?
<Reach> i like emacs, but when i tried to learn lisp there was lispinabox, not sure how to turn ruby mode on in emacs
<jrobeson> plenty of emacs ruby coders.. some googling should help you there
<jrobeson> a colleague of mine wrote rails apps in emacs just fine, however i didn't know anything about his setup saldy to be able to offer any more specific advice
danshultz has joined #ruby
<havenwood> Reach: I like TextMate 2, good stuff.
<havenwood> fenec2: Yeah, there are good option parsers. Slop is a nice one, or Trollup.
<fenec2> mm interesting
<fenec2> thanks
<havenwood> fenec2: Highline is a more full-featured thingy, prolly worth looking at as well.
<jrobeson> unless you want a full featured thing like gli or methadone or whatever
<jrobeson> it's hard to choose :(
Domon has joined #ruby
Xaitec has quit [Read error: Connection reset by peer]
Xaitec has joined #ruby
someish has quit [Quit: someish]
kilophoton has joined #ruby
fgo has quit [Remote host closed the connection]
LiVECrys has quit []
someish has joined #ruby
ngoldman has joined #ruby
Xaitec has quit [Read error: Connection reset by peer]
radic has joined #ruby
adkron has joined #ruby
radic_ has quit [Read error: Operation timed out]
tsykoduk is now known as zz_tsykoduk
horofox has joined #ruby
jeffdb has joined #ruby
fuhgeddaboudit has joined #ruby
baroquebobcat has joined #ruby
mhodgson has joined #ruby
Monie has joined #ruby
voidPirate has quit [Remote host closed the connection]
ce_afk is now known as cescalante
jeffdb has quit [Client Quit]
zz_tsykoduk is now known as tsykoduk
jeffdb has joined #ruby
Mars` has quit [Ping timeout: 252 seconds]
xk_id has quit [Quit:
veinofstars has quit [Ping timeout: 272 seconds]
rgbdev has joined #ruby
Jetchisel has joined #ruby
rjhunter has joined #ruby
ngoldman has quit [Remote host closed the connection]
ngoldman has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
veinofstars has joined #ruby
dmiller has quit [Remote host closed the connection]
cescalante is now known as ce_afk
ngoldman has quit [Ping timeout: 240 seconds]
em0ral has joined #ruby
blarghmatey has quit [Ping timeout: 272 seconds]
kaspergrubbe has joined #ruby
tsykoduk is now known as zz_tsykoduk
fgo has joined #ruby
volty has quit [Quit: Konversation terminated!]
tjbiddle has quit [Quit: tjbiddle]
xk_id has joined #ruby
kaspergrubbe has quit [Ping timeout: 246 seconds]
ngoldman has joined #ruby
brennanMKE has quit [Remote host closed the connection]
geggam has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 265 seconds]
mobileblue has quit [Ping timeout: 246 seconds]
kitak_ has quit [Remote host closed the connection]
Guest10547 has quit [Ping timeout: 272 seconds]
bugsinlights has joined #ruby
mixel has quit [Quit: mixel]
RealMarc has joined #ruby
burgess|vayo has joined #ruby
adkron has quit [Ping timeout: 272 seconds]
tdk2fe has quit [Remote host closed the connection]
horofox has quit [Quit: Leaving.]
tdk2fe has joined #ruby
bean has joined #ruby
Davey has joined #ruby
chinkung has quit [Quit: Bye!]
mobileblue has joined #ruby
brennanMKE has joined #ruby
Reach has quit [Remote host closed the connection]
julian-delphiki has quit [Ping timeout: 248 seconds]
ngoldman has quit [Ping timeout: 245 seconds]
postmodern has joined #ruby
braincra- has joined #ruby
ngoldman has joined #ruby
Kabaka has quit [Ping timeout: 240 seconds]
braincrash has quit [Ping timeout: 240 seconds]
Lewix has joined #ruby
adammokan has joined #ruby
LaPetiteFromage has joined #ruby
Kabaka has joined #ruby
rgbdev has quit [Quit: rgbdev]
varfoo has joined #ruby
machuga is now known as machuga|away
kreeves has quit [Ping timeout: 240 seconds]
fgo has joined #ruby
ccbn has joined #ruby
ccbn is now known as ccbn2
adammokan has quit [Read error: Connection reset by peer]
otherj has quit []
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
zz_michael_mbp is now known as michael_mbp
xk_id has quit [Quit:
parzo has quit [Remote host closed the connection]
parzo has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
krz has joined #ruby
qubit has joined #ruby
chxane has quit [Ping timeout: 245 seconds]
<qubit> when working with the ruby C api, and you call rb_raise, is an explicit return needed, or is rb_return jumping out of the function? I cant find any clear answer, and examples are very inconsistent (sometimes even within the same example)
michael_mbp is now known as zz_michael_mbp
ce_afk is now known as cescalante
parzo has quit [Ping timeout: 240 seconds]
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
cescalante is now known as ce_afk
chxane has joined #ruby
danshultz has quit [Remote host closed the connection]
DanKnox_away is now known as DanKnox
T_T has joined #ruby
ereslibre has joined #ruby
|PiP|_ has joined #ruby
araujo has quit [Quit: Leaving]
arietis has joined #ruby
T_T has quit [Remote host closed the connection]
lfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
deception has joined #ruby
mrsolo has joined #ruby
ereslibre has quit [Ping timeout: 245 seconds]
ccbn2 has quit [Quit: Page closed]
Ox6abe_ has quit [Remote host closed the connection]
Ox6abe has joined #ruby
orien has joined #ruby
em0ral has quit [Remote host closed the connection]
mweshi has joined #ruby
orien has quit [Client Quit]
TheNotary has joined #ruby
TheNotary has quit [Client Quit]
orien has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
Ox6abe has quit [Ping timeout: 265 seconds]
orien has quit [Client Quit]
orien has joined #ruby
heidi has joined #ruby
|PiP|_ has quit [Remote host closed the connection]
|PiP|_ has joined #ruby
|PiP|_ has quit [Remote host closed the connection]
astrobunny has quit [Remote host closed the connection]
g0bl1n has quit [Ping timeout: 240 seconds]
astrobunny has joined #ruby
heidi has quit [Quit: Leaving.]
mrsolo has quit [Quit: This computer has gone to sleep]
GusGa has joined #ruby
Hanmac1 has quit [Quit: Leaving.]
mityaz has quit [Quit: See ya!]
veinofstars has quit [Quit: veinofstars]
SilverKey has quit [Quit: Sleep now]
GusGa has quit [Client Quit]
DanKnox is now known as DanKnox_away
bugsinlights has quit [Remote host closed the connection]
bugsinlights has joined #ruby
jeffdb has quit [Quit: jeffdb]
|PiP|_ has joined #ruby
LoRdToLsToI has joined #ruby
icemancast has joined #ruby
teapop has joined #ruby
darrik has quit [Ping timeout: 240 seconds]
intuxicated has quit [Ping timeout: 256 seconds]
lyanchih has quit [Quit: lyanchih]
jeffdb has joined #ruby
astrobunny has quit [Ping timeout: 245 seconds]
Ren^ has quit [Ping timeout: 240 seconds]
adaoraul has quit [Quit: leaving]
duggiefresh has quit [Ping timeout: 265 seconds]
T_T has joined #ruby
* LoRdToLsToI !reg
veinofstars has joined #ruby
astrobunny has joined #ruby
bricker`LA has quit [Ping timeout: 246 seconds]
soba has joined #ruby
astrobunny has quit [Ping timeout: 245 seconds]
uokesita_ has quit [Quit: This computer has gone to sleep]
peterhu has joined #ruby
mweshi has quit [Quit: mweshi]
Atrumx has quit [Quit: Quitting]
ericmathison has quit [Ping timeout: 240 seconds]
Soda has quit [Remote host closed the connection]
Ren^ has joined #ruby
ce_afk is now known as cescalante
justsee has quit [Ping timeout: 256 seconds]
aryaching has quit []
freerobby has joined #ruby
parzo has joined #ruby
justsee has joined #ruby
astrobunny has joined #ruby
heidi has joined #ruby
fwmath has quit [Read error: Operation timed out]
bugsinlights has quit [Remote host closed the connection]
mrsolo has joined #ruby
bugsinlights has joined #ruby
marius has quit [Quit: x]
atSetKey has quit [Remote host closed the connection]
mrsolo has quit [Client Quit]
mrsolo has joined #ruby
parzo has quit [Remote host closed the connection]
cescalante is now known as ce_afk
parzo has joined #ruby
heidi has quit [Ping timeout: 240 seconds]
bricker`LA has joined #ruby
astrobunny has quit [Ping timeout: 240 seconds]
brennanMKE has quit [Remote host closed the connection]
brennanMKE has joined #ruby
LoRdToLsToI has quit [Ping timeout: 246 seconds]
adkron has joined #ruby
brennanM_ has joined #ruby
brennanMKE has quit [Read error: Connection reset by peer]
T_T has quit [Remote host closed the connection]
astrobunny has joined #ruby
justsee has quit [Ping timeout: 272 seconds]
Soda has joined #ruby
someish has quit [Quit: someish]
v0n has quit [Read error: Operation timed out]
abstractj has quit [Read error: Connection reset by peer]
burgess|vayo has quit [Quit: ^zzz]
bugsinlights has quit [Remote host closed the connection]
bugsinlights has joined #ruby
ereslibre has joined #ruby
astrobunny has quit [Ping timeout: 252 seconds]
Ox6abe has joined #ruby
Sail_ is now known as Sail
DrCode has quit [Remote host closed the connection]
DanKnox_away is now known as DanKnox
DrCode has joined #ruby
DanKnox is now known as DanKnox_away
adkron has quit [Ping timeout: 240 seconds]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
Ox6abe has quit [Ping timeout: 240 seconds]
ereslibre has quit [Ping timeout: 245 seconds]
msoul has joined #ruby
mary5030 has quit [Remote host closed the connection]
astrobunny has joined #ruby
mary5030 has joined #ruby
LaPetiteFromage has quit [Quit: LaPetiteFromage]
schaerli has joined #ruby
bluepojo_ is now known as bluepojo
mary5030 has quit [Ping timeout: 252 seconds]
astrobunny has quit [Ping timeout: 252 seconds]
haxrbyte has joined #ruby
fgo has quit [Remote host closed the connection]
justsee has joined #ruby
ngoldman has quit [Remote host closed the connection]
frustrum has joined #ruby
frustrum has quit [Client Quit]
ngoldman has joined #ruby
icemancast has quit [Quit: icemancast]
DonRichie has joined #ruby
larissa has quit [Quit: Leaving]
schaerli has quit [Remote host closed the connection]
lyanchih has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
schaerli has joined #ruby
astrobunny has joined #ruby
haxrbyte has quit [Ping timeout: 256 seconds]
ngoldman has quit [Ping timeout: 240 seconds]
DonRichie has quit [Client Quit]
schaerli has quit [Ping timeout: 245 seconds]
timonv has quit [Remote host closed the connection]
yacks has quit [Quit: Leaving]
drumsrgr8forn8 has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
osvico has quit [Ping timeout: 245 seconds]
ChronocityLC has quit [Ping timeout: 272 seconds]
zachrab has quit [Remote host closed the connection]
zachrab has joined #ruby
saarinen has joined #ruby
timonv has quit [Ping timeout: 272 seconds]
tdk2fe has quit [Remote host closed the connection]
saarinen has quit [Client Quit]
tdk2fe has joined #ruby
ce_afk is now known as cescalante
i_s has joined #ruby
zachrab has quit [Ping timeout: 272 seconds]
aagdbl has joined #ruby
tdk2fe has quit [Ping timeout: 256 seconds]
jpun has quit [Ping timeout: 264 seconds]
lyanchih has quit [Quit: lyanchih]
tdk2fe has joined #ruby
aagdbl has quit [Client Quit]
msoul has quit [Quit: -]
Macaveli has joined #ruby
lyanchih has joined #ruby
heidi has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
girija has joined #ruby
aagdbl has joined #ruby
girija has left #ruby [#ruby]
ewnd9 has joined #ruby
cescalante is now known as ce_afk
apeiros has quit [Remote host closed the connection]
jpun has joined #ruby
heidi has quit [Ping timeout: 240 seconds]
Bry8Star{T2 has joined #ruby
coderhs has joined #ruby
fgo has joined #ruby
zz_tsykoduk is now known as tsykoduk
coderhs has quit [Client Quit]
wchun has joined #ruby
goganchic has joined #ruby
ngoldman has joined #ruby
varfoo has quit [Ping timeout: 265 seconds]
astrobunny has quit [Ping timeout: 252 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo has quit [Ping timeout: 265 seconds]
coderhs has joined #ruby
T_T has joined #ruby
ngoldman has quit [Remote host closed the connection]
haxrbyte has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
T_T has quit [Read error: Connection reset by peer]
astrobunny has joined #ruby
tagrudev has joined #ruby
T_T has joined #ruby
tsykoduk is now known as zz_tsykoduk
roadt_ has joined #ruby
thesheff17 has quit [Ping timeout: 252 seconds]
roadt has quit [Ping timeout: 240 seconds]
astrobunny has quit [Ping timeout: 272 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
haxrbyte_ has joined #ruby
Tearan has joined #ruby
goganchic has quit []
astrobunny has joined #ruby
tomzx_mac has quit [Read error: Operation timed out]
haxrbyte has quit [Read error: Operation timed out]
Fredericks has joined #ruby
Fredericks has quit [Max SendQ exceeded]
fuhgeddaboudit has quit [Ping timeout: 252 seconds]
<weeb1e> Would `if defined? @foo` be more efficient than `if @foo`?
<jrobeson> why would it be?
<jrobeson> i mean why would you think it would be?
<jrobeson> they don't actually mean the same thing..
<jrobeson> if @foo was false, then it would fail if @foo, but pass if defined? @foo
Lewix has quit [Ping timeout: 272 seconds]
mrsolo has joined #ruby
astrobunny has quit [Ping timeout: 265 seconds]
Lewix has joined #ruby
Heero has quit [Ping timeout: 272 seconds]
dzhulk has joined #ruby
coderhs has quit [Read error: Connection reset by peer]
stkowski has quit [Quit: stkowski]
lukec has quit [Quit: lukec]
peterhu has quit [Ping timeout: 245 seconds]
dzhulk has quit [Client Quit]
parzo_ has joined #ruby
parzo has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
jeffdb has quit [Read error: Connection reset by peer]
jeffdb has joined #ruby
astrobunny has joined #ruby
freerobby has quit [Quit: Leaving.]
Elhu has joined #ruby
<weeb1e> jrobeson: Well, I don't know exactly what `defined?` does internally, but I just saw that used with instance variables in the em-websocket gem, but I guess it's probably just another case of the author lacking ruby knowledge
<jrobeson> it's in the docs
<weeb1e> Which seems to be the case in almost every single ruby library I ever come across
<weeb1e> jrobeson: I don't mean what its return value is, I mean exactly how it checks definitions in the native code, vs a instance method look up
<jrobeson> not the returned value, but what it checks for is in fact in the docs also
<jrobeson> instance variables are nil if they dont' exist
<weeb1e> There is no source code for it listed in those docs, and I am too lazy to look through the ruby source
<havenwood> weeb1e: defined? is slightly faster if the ivar isn't defined and vice versa if it is defined, based on benching it
<weeb1e> havenwood: Thanks, that is what I was wondering
<weeb1e> I should have probably just benched it myself
<weeb1e> The difference probably isn't worth using the additional syntax though
astrobunny has quit [Ping timeout: 272 seconds]
<weeb1e> jrobeson: And to clarify, instance variables are not nil if undefined, looking up undefined instance variables just returns nil
<jrobeson> yes that's what i meant
<weeb1e> That is the only reason I wondered if defined? would be more efficient for checking that
<jrobeson> but quoting the docs as far as how it checks
<jrobeson> defined? expression tests whether or not expression refers to anything recognizable (literal object, local variable that has been initialized, method name visible from the current scope, etc.). The return value is nil if the expression cannot be resolved. Otherwise, the return value provides information about the expression.
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
<jrobeson> it's possible that specific behaviour is wanted by the check, but without seeing the code in full i can't say.
kracekumar has joined #ruby
<weeb1e> havenwood: Interesting, it is a very small difference though
teapop has quit [Remote host closed the connection]
zoee has joined #ruby
<jrobeson> it's like a lot of those things.. people try stuff like that in every language for some useless speed increase
<weeb1e> jrobeson: It isn't, it is used for checking if callbacks have been defined
<havenwood> yeah, just a smidge
<weeb1e> I will stick with my if @instance_var
<jrobeson> when they are almost all i/o bound ..
rjhunter has quit [Remote host closed the connection]
<weeb1e> I just took a big leap and spent two hours wrapping a ton of different EM callbacks from various gems and lots of my own implemented protocols in fibers
<weeb1e> There will no doubt be some things that will still crash and burn and need to be wrapped, but after getting most of it done, the speed increase with database queries is looking good
astrobunny has joined #ruby
WillAmes has quit [Remote host closed the connection]
<jrobeson> i haven't yet seen fibers in any of the code i've dealth with
<jrobeson> weeb1e, what ruby are you using?
<jrobeson> ruby implementation*
ce_afk is now known as cescalante
coderhs has joined #ruby
WillAmes has joined #ruby
<weeb1e> I've avoided them up until now since I'm quite happy with block based callbacks, but keeping database queries synchronous has become an issue with the scale I need to achieve with my new realtime web based interface
<weeb1e> 1.9.3
<jrobeson> so you're using mri ?
<weeb1e> Yeah
<jrobeson> tried rubinus yet?
haxrbyte_ has quit [Read error: Connection reset by peer]
Fredericks has joined #ruby
<weeb1e> I'd love to, but last time I looked into it there were too many gems with MRI specific native code
<jrobeson> i wanted to try rubinus..however the ruby serial port library is not good
<weeb1e> I have a ton of dependencies :(
<jrobeson> native code? extensions?
<weeb1e> Yeah
senayar has joined #ruby
<jrobeson> yeah even just my serialport lib is fail :(
alexju has quit [Remote host closed the connection]
<weeb1e> The main reason for wanting to switch to rubinius was for its profiler, luckily I found perftools.rb a day ago
alexju has joined #ruby
|PiP|_ has quit [Ping timeout: 272 seconds]
<weeb1e> It is really awesome for profiling reactor based applications in production
<weeb1e> Has almost no overhead
T_T has quit [Remote host closed the connection]
<weeb1e> What the hell is inno-talent.com and how do they know about me? I just got an email saying "My client, a Las Vegas based, well funded start-up is recruiting a strong Ruby on Rails Developer to play a critical role in the development of their platform. Your profile matches up nicely with the requirements. Please provide your phone number and availability for a call to learn more about this world changing opportunity!"
Lewix has quit [Remote host closed the connection]
<weeb1e> I never made a profile for anything do to with ruby on rails, let alone on their site
<jrobeson> email on github with ruby projects?
<jrobeson> i got contacted by a new relic recruiter as soon as i made a rails project for the first time
<weeb1e> Ah, I guess that address used to be yeah
<jrobeson> like within a few days
<weeb1e> But I only have like 1 tiny rails project from years ago
<weeb1e> I learnt rails at the same time as ruby, but other than using it a little for two contracted jobs, I have rather used sinatra or rolled my own rack based framework
heidi has joined #ruby
alexju has quit [Ping timeout: 240 seconds]
cads has joined #ruby
<jrobeson> i just picked up rails because it felt like i should at least try it for something..
jprovazn has joined #ruby
<jrobeson> i'm already irritated at the lack of a proper datamapper implementation in ruby :(
DrCode has quit [Remote host closed the connection]
cescalante is now known as ce_afk
DrCode has joined #ruby
heidi has quit [Ping timeout: 245 seconds]
fgo has joined #ruby
bigkevmcd has joined #ruby
<havenwood> jrobeson: have you looked at Ruby Object Mapper?
<havenwood> jrobeson: http://rom-rb.org/
<jrobeson> yes.. it will be great.. when it supports rdbms :)
<havenwood> aha
<jrobeson> and that is more of a project than i have time to take on in the moment
Jetchisel has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
astrobunny has quit [Ping timeout: 240 seconds]
havenwood has quit [Remote host closed the connection]
apeiros has joined #ruby
Tearan has quit [Quit: Sleepy Badger....]
lele has joined #ruby
dash_ has joined #ruby
ehaliewicz has quit [Ping timeout: 272 seconds]
petey has joined #ruby
astrobunny has joined #ruby
kofno has quit [Ping timeout: 240 seconds]
veinofstars has quit [Quit: veinofstars]
fgo has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
petey has quit [Ping timeout: 256 seconds]
fgo has quit [Remote host closed the connection]
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
ZhBPi has joined #ruby
astrobunny has quit [Ping timeout: 245 seconds]
Mon_Ouie has joined #ruby
JohnBat26 has joined #ruby
wildroman has joined #ruby
wildroman has quit [Remote host closed the connection]
zz_michael_mbp is now known as michael_mbp
schaerli has joined #ruby
wildroman has joined #ruby
aagdbl has quit [Quit: Leaving.]
mklappstuhl has joined #ruby
senayar has quit [Remote host closed the connection]
brennanM_ has quit [Remote host closed the connection]
wildroman has quit [Remote host closed the connection]
senayar has joined #ruby
brennanMKE has joined #ruby
wildroman has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
abhishek77in has joined #ruby
astrobunny has joined #ruby
amritanshu_RnD has joined #ruby
michael_mbp is now known as zz_michael_mbp
semahawk has joined #ruby
brennanMKE has quit [Ping timeout: 240 seconds]
amritanshu_RnD has quit [Max SendQ exceeded]
wildroman has quit [Ping timeout: 256 seconds]
senayar has quit [Ping timeout: 252 seconds]
hagarelvikingo has joined #ruby
andikr has joined #ruby
amritanshu_RnD has joined #ruby
aganov has joined #ruby
arturaz has joined #ruby
kaspergrubbe has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
filipe has joined #ruby
Gooder has joined #ruby
ereslibre has joined #ruby
ereslibre has joined #ruby
froy has quit [Ping timeout: 252 seconds]
peterhu has joined #ruby
sumark is now known as Guest40103
gazoombo has joined #ruby
kofno has joined #ruby
hagarelvikingo has quit [Quit: Linkinus - http://linkinus.com]
ereslibre has quit [Ping timeout: 264 seconds]
semahawk has left #ruby [#ruby]
semahawk has joined #ruby
mrsolo has joined #ruby
peterhu has quit [Ping timeout: 246 seconds]
Senjai has quit [Ping timeout: 272 seconds]
araujo has joined #ruby
persand has joined #ruby
hakunin_ has quit [Remote host closed the connection]
hakunin has joined #ruby
lurch_ has joined #ruby
i_s has quit [Remote host closed the connection]
workmad3 has joined #ruby
i_s has joined #ruby
<fenec2> can you test stdout in rspec?
<Mon_Ouie> You can use $stdout = StringIO.new add check what's in it after running your code
araujo has quit [Ping timeout: 272 seconds]
froy has joined #ruby
mengu has joined #ruby
diegoviola has joined #ruby
i_s has quit [Ping timeout: 272 seconds]
gmas has quit [Ping timeout: 240 seconds]
gyzmodo has joined #ruby
jeffdb has quit [Read error: Connection reset by peer]
jeffdb has joined #ruby
sr78ger has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
kilophoton has quit [Ping timeout: 240 seconds]
Kneferilis has joined #ruby
<apeiros> hoelzro: congrats man! :D
ce_afk is now known as cescalante
<hoelzro> apeiros: thanks =)
m8 has joined #ruby
skaflem has joined #ruby
camilasan has joined #ruby
ewnd9 has quit [Read error: Operation timed out]
astrobunny has quit [Ping timeout: 272 seconds]
tvw has joined #ruby
GeissT has joined #ruby
nfk has joined #ruby
Intrepidd has joined #ruby
NinjaPenguin_ is now known as NinjaPenguin
heidi has joined #ruby
alup has joined #ruby
avril14th has joined #ruby
peterwalker78 has quit [Remote host closed the connection]
ahawkins has joined #ruby
astrobunny has joined #ruby
<coderhs> Hey guys, what would be the simplest way to explain a singleton class?
<sevenseacat> call it a highlander class. 'there can be only one!'
cescalante is now known as ce_afk
zz_michael_mbp is now known as michael_mbp
troessner has joined #ruby
heidi has quit [Ping timeout: 240 seconds]
<coderhs> sevenseacat, so how many times u call there will be only one instance ?
<sevenseacat> thats pretty much it.
<apeiros> per object
jeffdb has quit [Quit: jeffdb]
<apeiros> the singleton class is a class which belongs to exactly one object and exists at the top of that objects inheritance chain (i.e., methods are first look up there, then on the class of the object etc.)
<likemike> why methods are called methods and not functions ?
<apeiros> a method has a receiver, a function does not
<apeiros> i.e., a function has no concept of self or ivars
<NinjaPenguin> A receiver?
<apeiros> obj.do_something # obj is the receiver
<Intrepidd> The object on which the method was called
<NinjaPenguin> Oh yeah, right.
hjensas has joined #ruby
<apeiros> the object which becomes `self` in the method's code
<tobiasvl> likemike: functional programming vs. object-oriented programming
<apeiros> stateful vs. stateless
<apeiros> or maybe not
* apeiros still needs to wake up
kracekumar has quit [Quit: Computer has gone to sleep.]
<likemike> i thought that self resembles this pointer
<apeiros> besides not being a pointer, it's pretty much that
orien has quit [Quit: Computer has gone to sleep.]
Elhu has joined #ruby
lsmola has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
astrobunny has quit [Ping timeout: 272 seconds]
io_syl has quit []
dawkirst has joined #ruby
astrobunny has joined #ruby
zarubin has joined #ruby
ZhBPi has quit [Ping timeout: 240 seconds]
h_kon has joined #ruby
Xeago has joined #ruby
mark06 has joined #ruby
orionstein is now known as orionstein_away
Guest76666 has joined #ruby
diegoviola is now known as Guest60102
timonv has joined #ruby
vince_prignano has joined #ruby
vince_prignano has quit [Max SendQ exceeded]
blaxter_ has joined #ruby
Guest60102 has quit [Read error: Operation timed out]
smirn0v has joined #ruby
hjensas has quit [Ping timeout: 240 seconds]
colonolGron has joined #ruby
ZhBPi has joined #ruby
coldbeer has joined #ruby
bluepojo has quit [Read error: Connection reset by peer]
varfoo has joined #ruby
varfoo has quit [Client Quit]
varfoo has joined #ruby
stefff has joined #ruby
schaerli has quit [Remote host closed the connection]
schaerli has joined #ruby
shaunbaker has joined #ruby
ghr has joined #ruby
shaunbaker has quit [Remote host closed the connection]
shaunbaker has joined #ruby
tjad has joined #ruby
workmad3 has quit [Read error: Operation timed out]
Hanmac has joined #ruby
Jdubs has quit [Ping timeout: 240 seconds]
nessib has joined #ruby
schaerli has quit [Ping timeout: 252 seconds]
nessib has quit [Remote host closed the connection]
Jdubs has joined #ruby
pedda has joined #ruby
fenec2 has quit [Ping timeout: 246 seconds]
punktechnology has joined #ruby
astrobunny has quit [Ping timeout: 240 seconds]
Zai00 has joined #ruby
Jetchisel has joined #ruby
peterhu has joined #ruby
fixl has joined #ruby
senayar has joined #ruby
nhhagen has quit [Quit: Leaving]
senayar_ has joined #ruby
aspiers has joined #ruby
astrobunny has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
heidi has joined #ruby
newbiehacker_ has joined #ruby
einarj has joined #ruby
kracekumar has joined #ruby
Advocation has joined #ruby
kracekumar has quit [Max SendQ exceeded]
kracekumar has joined #ruby
lyanchih has quit [Ping timeout: 245 seconds]
senayar_ has quit [Remote host closed the connection]
kracekumar has quit [Max SendQ exceeded]
senayar has quit [Ping timeout: 256 seconds]
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
kracekumar has joined #ruby
lyanchih has joined #ruby
threesome has joined #ruby
wildroman has joined #ruby
wildroman has quit [Remote host closed the connection]
Xeago_ has joined #ruby
claymore has joined #ruby
wildroman has joined #ruby
heidi has quit [Ping timeout: 246 seconds]
popl has quit [Quit: We must make an idol of our fear, and call it God.]
tvw has quit []
Xeago has quit [Ping timeout: 252 seconds]
rmabbi has joined #ruby
Advocation has quit [Ping timeout: 256 seconds]
leonidlm has joined #ruby
ZhBPi has quit [Ping timeout: 245 seconds]
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
lkba has quit [Ping timeout: 256 seconds]
punktechnology has quit [Quit: Textual IRC Client: www.textualapp.com]
astrobunny has quit [Ping timeout: 272 seconds]
timonv has quit [Ping timeout: 245 seconds]
TMM has joined #ruby
astrobunny has joined #ruby
aryaching has joined #ruby
Xeago_ has quit []
joshAnderson99 has joined #ruby
rmabbi has quit [Quit: This computer has gone to sleep]
elaptics`away is now known as elaptics
<joshAnderson99> hi, plan to do some rails dev, but not sure of whether there would be a need much to use different ruby versions, or gem versions. would rvm nontheless be recommended as the preferred installing tool? over the gem package which i guess is the alternative.
ZhBPi has joined #ruby
* sevenseacat counts how many times I told you not to use the system packages for Ruby
<sevenseacat> i think four was my last count
<Hanmac> joshAnderson99: #rubyonrails
peterhu has quit [Ping timeout: 245 seconds]
<joshAnderson99> ok.. but even just in the ruby dept, you'd not find a need for rvm?
graft has quit [Ping timeout: 272 seconds]
<apeiros> everybody and his stepchild uses rvm (or a similar tool)
<Hanmac> joshAnderson99: and if you use rvm you need to "BEWARE!" because if you install it as user mode, you may can not access them with web-user … so you may need to install rvm into system-wide
adambeynon has joined #ruby
<joshAnderson99> ok.. that's persuasive. i might give it try. thanks.
<Hanmac> apeiros: on my home machine i do not, but on my working Mac i do because of the helping with compiler
graft has joined #ruby
<apeiros> hanmac: you use a single ruby version on your home machine? or just version by hand?
<joshAnderson99> erm.. helping with compiler? as in, it avoid issues that otherwise might arise when compiling gems?
brennanMKE has joined #ruby
<joshAnderson99> well, i'm just about to start ruby. i'm not as yet in ruby development.
<coldbeer> sevenseacat: why not use distro-packaged ruby?
<Hanmac> apeiros: single ruby version … but still installed from ruby-trunk
<coldbeer> i am guessing because of compile options - but why specifically?
<joshAnderson99> experience in python is that 2.7 worked most of time, but sometimes it might have been nice to jump to 3, for the language improvements.
<sevenseacat> a) its usually out of date, b) you cant keep multiple versions and c) debian cripped their installs in the past and i dont really care if theyve fixed it now
<coldbeer> so debian aside
<sevenseacat> why aside, given he's using a debian derivative?
<coldbeer> oh sorry - im applying it to my own use case.
<Hanmac> sevenseacat: debian has update-alternatives , and ruby itself is not so crippld … i mean you may not need the -dev packages
obs has joined #ruby
<coldbeer> so lets say 1.8.7 - with typical compile options. why is that something you would not want to support at this point?
user258467 has quit [Ping timeout: 272 seconds]
<DefV> because 1.8.x is OLD
<Hanmac> coldbeer we dont talk about 1.8.7
<sevenseacat> because 1.8.7 is past EOL
<coldbeer> all RHEL distros run on that. so not supporting it means not supporting RHEL, Scientific, CentOS, and all derivities
<joshAnderson99> sold on rvm, checking up some stackoverflow comments as well, thanks.
<jrobeson> coldbeer, that's why we all use rvm/rbenv/chruby
mikecmpbll has joined #ruby
<Hanmac> coldbeer: thats not a pro point for RHEL
<sevenseacat> even my ubuntu says the latest version it has is 1.9.3-p194 which is still nowhere near as recent as i want
<jrobeson> because distros ship with that nonsense
<coldbeer> hanmac - so RVM is what you would run on a production RHEL env?
brennanMKE has quit [Ping timeout: 260 seconds]
<jrobeson> yes..
nfk has quit [Remote host closed the connection]
<Hanmac> yes, or maybe compile it myself
<postmodern> coldbeer, upgrade to fedora, it's going to be the next RHEL anyways
<TMM> coldbeer, use the puppetlabs ruby 1.9 packages and package your gems with fpm, that is how a few people (including me) here do it
<jrobeson> fpm? hmm
<coldbeer> before i say anything else - want to make sure im not coming off as a d***. i appreciate pulling in the latest no doubt.
<coldbeer> but
<TMM> coldbeer, do not ever run RVM on a production system, there is no good way of managing your versions once you hide everything behind a chroot/rvm type thing
<coldbeer> i also appreciate stability in operating systems
<jrobeson> it's not about latest.. it's about using what's supported ..
<DefV> douche has 4 *'s
<DefV> 5, even
<coldbeer> and not maintaining my own copy of any language
<TMM> (I would say to never use gem on a production system either btw)
nfk has joined #ruby
* sevenseacat uses rvm and gem on production systems
<jrobeson> coldbeer, in other languages that's somewhat possible.. sadly not true with ruby
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
<jrobeson> it's all about what your apps support .. if the app you want to run requires a newer ruby.. what do you do?
workmad3 has joined #ruby
<jrobeson> or all the libraries for that matter
* sevenseacat wonders if the next version of ubuntu will come with ruby1.8, ruby1.9, and ruby2 packages just to add more mess
Log1x has quit [Ping timeout: 252 seconds]
<TMM> I'm not saying it's not possible, it is also possible to run production systems off of a bunch of dell desktops under your desk. you can call 'production' whatever you want. But if you have a whole bunch of servers running ruby RVM makes it really much harder than necessary to do centralized version management. especially if you end up with multiple rvm installations on a server (and you inevitably will)
<jrobeson> why would you?
<sevenseacat> o.O
<sevenseacat> why would you.... i dont think i want to know
kil0byte has joined #ruby
<postmodern> sevenseacat, apt-get install ruby on 13.04 installs 1.9.3 :)
<jrobeson> if you install it globally why would you have multiple versions?
<TMM> you're... installing rvm globally?
<sevenseacat> postmodern: yes, thats what i said before
<TMM> wtf
blackmes1 has joined #ruby
<joshAnderson99> hanmac: thanks for tip, will be sure then to install rvm in root, to void the web user problem mentioned.
<jrobeson> i'm not.. i don't use rvm
<TMM> ok
<postmodern> sevenseacat, i like how they even added a ruby1.9.3 virtual package to reduce confusion
<TMM> anyway happy fun meeting time
<coldbeer> dudes... lets face it. RHEL dominates the stability market in large enterprises. so it has 1.8.7 - what do you do, GO.
Kar- has joined #ruby
<jrobeson> but i don't see what is wrong with doing so ..
ShawnMcCool has left #ruby ["Konversation terminated!"]
<jrobeson> coldbeer, you don't run any modern ruby application
<sevenseacat> coldbeer: lol
<jrobeson> you don't run rails 4 either
<sevenseacat> you install a better OS
dEPz has joined #ruby
<postmodern> coldbeer, dude you should face it, 1.8.7 is End Of Lifed
<sevenseacat> 1.8.7 is *past* EOL
<postmodern> coldbeer, no more security patches, no patches at all
<sevenseacat> you do not use 1.8.7 anymore
<TMM> coldbeer, fpm + puppetlabs 1.9 packages. It's really the best way to go, you can still use yum and all your other version management tools and you don't go against what your distro provides.
gregf_ has joined #ruby
<Hanmac> my plan is, that each person who wants help about 1.8 i redirect them to #rubyonrails … and i do it only because i can ;P
<sevenseacat> we'll just laugh at them there too.
<coldbeer> I understand - but are you saying that everyone that maintains RHEL is just ridiculous for not pulling in 1.9.x ? I won't pretend to front that I know event a little about rubys release cycle and what that means for stability - but why does RHEL6 not have 1.9+ when it was around during their release?
jrhe has joined #ruby
<sevenseacat> because they're enterprise :P
<postmodern> coldbeer, yes use 1.9.3 it's perfectly stable, fedora has used it for a year now
<jrobeson> coldbeer, it doesn't matter what you think about anything.. if no ruby app works with it.. what's the point
<postmodern> coldbeer, if you run your code on 1.8.7, you are potentially putting your systems and user's data at risk
<jrobeson> 1.8.7 means.. don't run ruby..
<Hanmac> sevenseacat: you mean as old as the very first enterprise episodes? ;P
timonv has joined #ruby
newbiehacker has joined #ruby
<coldbeer> Sorry guys I didn't mean to start any spam flame wars on your channel. Just genuinely curious.
<likemike> solaris still ships only 1.8.7 ruby heh
cainus has quit [Ping timeout: 246 seconds]
<coldbeer> I have developed in 1.8.7 so far (last few months) on RHEL just getting to know the language in general.
nazty has quit [Ping timeout: 272 seconds]
jbpros has joined #ruby
<postmodern> coldbeer, use Fedora, release 19 already upgraded to 2.0.0, before that they used 1.9.3 for 1-2 years
<nemysis> i try to update ruby-sdl from 1.3.1 to 2.1.2 but get for all version since 1.3.1 this failures on FreeBSD https://gist.github.com/nemysis/1f5a31b217296d090259
bigkevmcd has quit [Quit: Ex-Chat]
<jrobeson> <3 fedora
<Hanmac> coldbeer: or use nightly because it has fixed some segfaults i found
bigkevmcd has joined #ruby
<jrobeson> too bad fedora has nothing like ppa :(
<jrobeson> i mean like how nice it is for people to use ..
<coldbeer> postmodern: thats possible for me to do personally, sure. but say I work for a megacorporation, and I implement a very large piece of software that does cloud deployments for very large clusters that are expected to live for more than 3 or 4 years.
newbiehacker_ has quit [Ping timeout: 252 seconds]
blaxter_ is now known as blaxter
ereslibre has joined #ruby
ereslibre has joined #ruby
<coldbeer> gentoo + latest ruby is not the way to go in that case. compiling every other month is just not maintainable at scale.
<coldbeer> well - if you have SLA's at scale anyways.
<nemysis> have used Gentoo 6 Years now use only FreeBSD/PCBSD
* Hanmac compiles ruby minimum each time he gets home at weekend
<coldbeer> hanmac: totally get that and am with you on that one buddy
<coldbeer> wish everyting could always be latest
<Hanmac> otherwise something like that could happen:
<jrobeson> coldbeer, then you do what TMM suggested .. keep the base os and stuff
<jrobeson> and still have all your ruby versions and libs managed with your package manager
<Hanmac> >> "abcde".encode("UTF-32")
<eval-in> Hanmac => "\uFEFFabcde" (https://eval.in/54449)
<Hanmac> >>"öäü".encode("UTF-32")
<eval-in> Hanmac => "\uFEFF\u00F6\u00E4\u00FC" (https://eval.in/54450)
<Hanmac> hm ok it seems fixed?
<coldbeer> jrobeson: if ruby versions are managed with your package manger, then 1.8.7 is what you're going to get on any RHEL-derivitive
Guest76666 is now known as diegoviola
horst has joined #ruby
<jrobeson> coldbeer, no.. not if you use other repos
<coldbeer> jrobeson: enterprise products dont pull things in from the internet
<likemike> coldbeer: or setup your own repo in intranet
<likemike> that would be the best way imho
<jrobeson> coldbeer, if you read what he said.. he said it packages them up in rpm for you.. and then you install those
<apeiros> coldbeer: is that one of those fallacies where anything pulling things from the internet is no true enterprise product?
<mark06> anyone under Windows help me confirming a bug? http://bugs.ruby-lang.org/issues/9016
<apeiros> coldbeer: aka no true scottsman fallacy?
ereslibre has quit [Ping timeout: 264 seconds]
<jrobeson> coldbeer, any ruby project.. even if the ruby version was fine and new.. would still require gems that are not packaged as rpms
peterwalker78 has joined #ruby
buibex has joined #ruby
<jrobeson> in rhel.. only a few gems (deps of other packages) are packages in rpm.. like direct deps of rails for example
<jrobeson> but most apps would have things that are not in fact in there
<jrobeson> so no matter what.. you're pulling in other things
sevenseacat has quit [Quit: Leaving.]
<jrobeson> and i can't imagine it'd be different in php or many other languages
<coldbeer> but why has the language evolved so quickly and backward-incompatibly that it is not otherwise viable for enterprise use?
<apeiros> quickly?
<apeiros> lol?
<jrobeson> python is the outlier here due to being relied upon by so many of redhat's packages and being a scripting language for unixy stuff
<apeiros> 1.9 has been out for over 5 years now.
<apeiros> if you think that's quick you must be working for the government…
<jrobeson> coldbeer, are you saying that github is in fact not enterprisy?
<coldbeer> apeiros: i understand no doubt man. but why then did RHEL6 choose 1.8.7
<jrobeson> are you saying that none of the people who run rails apps are enterprisey???
<Hanmac> coldbeer: becauese they coundnt find older ruby
ephemerian has joined #ruby
<jrobeson> lol
<apeiros> coldbeer: I have no insight into RHEL's decision making
<coldbeer> absolutely not. i realize it seems like i am assaulting the ruby community which i am not.
<jrobeson> you just have unrealistic expecations for webapps
<jrobeson> it'd be the same for any language that isnt pyton or perl
camilasan has quit [Remote host closed the connection]
<apeiros> coldbeer: but honestly, I can't find a good reason other than: "it'd have been a lot of work to make sure everything works with the newer version"
<likemike> coldbeer: do you need all your servers to have latest ruby ?
<apeiros> funny enough you can apply that mantra forever.
<apeiros> and everything.
Mars` has joined #ruby
camilasan has joined #ruby
cainus has joined #ruby
<jrobeson> perl due to legacy, and python being the replacement.. thus most things end up being packaged
<jrobeson> however.. as soon as you build a django webapp.. boom.. now you need stuff that isn't packaged
<jrobeson> of course.. you'd probably deploy it with fabric, after bundling stuff locally
<jrobeson> same as in ruby. with capistrano or the like
parzo_ has quit [Remote host closed the connection]
<coldbeer> So my dilemma is - I work at Cisco. I implemented a *TON* of shit in PHP over some years. I love Ruby - even though I only know 1.8.7. How can I sell this to people who truly believe the RHEL philosophy?
parzo has joined #ruby
<jrobeson> coldbeer, and you haven't had to use 3rd party php libraries that aren't packaged?
francisfish has joined #ruby
klaut has joined #ruby
<coldbeer> libraries sure
<likemike> coldbeer: i mean we have 30k Solaris servers and we certainly do not have a ruby apps on all of them
<coldbeer> the language itself - never
<jrobeson> oh.. i thought you were also arguing generally against depedencies downloaded from the internet
ce_afk is now known as cescalante
<jrobeson> coldbeer, on rhel with php.. i can't imagine not using the remi repositories not to get at least php 5.4
<coldbeer> jrobeson: I am - we ship product on-premise to any customer who wants that actually.
<likemike> jrobeson: in "true" enterprise you cant even use the official repositories from vendor...you need to have your own mirror in intranet
<coldbeer> php 5.4 is really not necessary for a quality and performant application.
<coldbeer> but please i dont mean to bring language wars into here.
<jrobeson> if you like working with fake ass closures .. sure :)
<jrobeson> without even local bindings
lkba has joined #ruby
<jrobeson> that's up to you i guess
<apeiros> I think that's besides the point
dangerousdave has joined #ruby
<apeiros> to the point would be questions about EOL'd PHP versions, backwards incompatibility there and what version RHEL provides.
<jrobeson> likemike, sure.. wouldn't have have a staging server and then a gold server or whatever?
<likemike> jrobeson: this
bricker`LA has quit [Ping timeout: 252 seconds]
<jrobeson> i've never worked in such environments, but it's hard not to hear about if you've been around the block a few times
<coldbeer> there is no "server" in enterprise. You define things in software.
camilasan has quit [Ping timeout: 272 seconds]
<likemike> jrobeson: i have never worked in small / startup company
Log1x has joined #ruby
<jrobeson> uhmm.. i think we've all understood that server is just a way of saying.. a physical device that runs services ..
Log1x is now known as Guest59718
<apeiros> or a logical device
<jrobeson> or perhaps that's even too specific.. since virutalizaiton
<jrobeson> yes
parzo has quit [Ping timeout: 241 seconds]
<jrobeson> which i failed to spell anywhere near correctly
<Hanmac> php is getting old … i heard if they would make an 100% object oriented rewrite of php … it would be look like ruby ;D
<jrobeson> hanmac, well they finally added generators and the yield keyword
<apeiros> and goto
<jrobeson> and they have traits
<apeiros> at least we can now generate parsers in php :)
<jrobeson> goto somewhereelse();
buibex has quit [Remote host closed the connection]
buibex has joined #ruby
<jrobeson> facebook is starting to fork php now..
<coldbeer> sure - the syntax is older. its obvious people want more out of it, what with facebooks "hack" (<?hh), hiphop, whatever else.
obs has quit [Quit: Konversation terminated!]
<apeiros> you're misinformed
<apeiros> php isn't older than ruby
<jrobeson> it's about the same age
<jrobeson> within a yearish
abrausch has joined #ruby
<jrobeson> 1995
<coldbeer> ok - i just look at PHP and thing "if I know C, I can understand this", but with Ruby it is different now.
<jrobeson> apeiros, he just meant the syntax was older style..
<jrobeson> algol style
wildroman has quit [Remote host closed the connection]
<Hanmac> coldbeer: if you know C you can use it for your evil ruby plans and write C-Extensions ,P
<jrobeson> EVIL PLANS
wildroman has joined #ruby
abrausch has quit [Remote host closed the connection]
<apeiros> jrobeson: I assumed he meant php was older, hence used older idioms. and that'd be wrong.
<jrobeson> he said the sytnax is older.. not the language
<coldbeer> so all of this aside
<coldbeer> i think PHP has a community that is more welcoming than Ruby.
heidi has joined #ruby
<coldbeer> as I've been in here many times and gotten "the treatment" every time.
<mikecmpbll> coldbeer: get out
<apeiros> lol
<apeiros> ok
<mikecmpbll> (jokign)
<mikecmpbll> s/gn/ng
<coldbeer> you can all probably tell but im a total n00b to IRc - like 2 weeks now. but just trying to give some feedback to a language that I like and want to adopt.
<jrobeson> coldbeer, i'd say the ruby community has its share of overly pedantic folks
klaut has quit [Remote host closed the connection]
<coldbeer> no doubt - every channel does. no fault of #ruby's
<jrobeson> more than its fair share really
cescalante is now known as ce_afk
deception has quit [Quit: Goodbye]
JaTochNietDan has quit [Ping timeout: 246 seconds]
<coldbeer> just throwing out my so-far unbiased opinion of what goes on in IRC.
<jrobeson> coldbeer, i've coded in php for years.. but i can't ever expect help from php irc channels.. it's almost always full of people who are all just as new as everybody else
bricker`LA has joined #ruby
<jrobeson> so it's useless for anybody experienced
<jrobeson> ruby feels like the opposite
<mikecmpbll> ^this
<coldbeer> jrobeson: I can see that for sure. so how is ruby different?
<jrobeson> perhaps people with TOO much experience
<workmad3> we're all jaded and cynical in here :(
<coldbeer> i asked what eigenclass was like 2 weeks ago, no one gave me an answer, everyone made jokes, so i left.
wildroman has quit [Ping timeout: 252 seconds]
<jrobeson> somebody did answer you i thought
<apeiros> coldbeer: this got asked today and it got two IMO reasonable answers.
Advocation has joined #ruby
JaTochNietDan has joined #ruby
<likemike> you are all overqualified and you will be replaced by cheap workforce in India !
<jrobeson> they answered somebody in the last few years anyways
<apeiros> I think 1 occurrence doesn't constitute a statistic.
heidi has quit [Ping timeout: 245 seconds]
<jrobeson> likemike, if htere were more qualified indian developers who use ruby.. perhaps :)
<jrobeson> yet kids still make a ton of money in california
klaut has joined #ruby
<coldbeer> some kids know what they are doing.
<coldbeer> ;)
<jrobeson> not really
<workmad3> coldbeer: the term 'eigenclass' is one that causes arguments and heated debates even now :(
abstractj has joined #ruby
abstractj has quit [Changing host]
abstractj has joined #ruby
<jrobeson> workmad3 hello!
<workmad3> coldbeer: and is aggravated by it not being the accepted term
<likemike> jrobeson: maybe that's because they are not working in corporations lol
* workmad3 hates that the accepted term is 'singleton_class'... but that's what it is, so oh well
* apeiros thinks the same as workmad3
<jrobeson> workmad3 == scholar and gentleman
<workmad3> jrobeson: a.k.a. british :P
<jrobeson> oh i forgot :(
<workmad3> ;)
<apeiros> I'd preferred eigenclass. but there's IMO no point in arguing about it.
user258467 has joined #ruby
<coldbeer> eigenclass seems like the "accepted" for ruby to me
<workmad3> >> Object.eigenclass
<eval-in> workmad3 => undefined method `eigenclass' for Object:Class (NoMethodError) ... (https://eval.in/54451)
schaerli has joined #ruby
<workmad3> >> Object.singleton_class
<eval-in> workmad3 => #<Class:Object> (https://eval.in/54452)
<mikecmpbll> having no familiarity with the term eigenclass in other languages, i see no advantage of the term.
<jrobeson> i've never seen singleton_class spoken of.. everybody i've seen says eigenclass
<mikecmpbll> it's no more descriptive to me :p
<apeiros> mikecmpbll: do you really want to warm up the debate again? :)
<mikecmpbll> pls :'D
<jrobeson> eigenclass is more used in ruby blogposts
<apeiros> mikecmpbll: it's also wrong. I recommend googling for "ola bini eigenclass"
<mikecmpbll> nah. i don't care.
<coldbeer> i dont care what it is called TBH - but I also still don't completely understand what it is so..
<Hanmac> i think the problem with singleton_class is that others mix them with Singleton Module ...
<workmad3> hanmac: pretty much
klaut has quit [Remote host closed the connection]
<mikecmpbll> coldbeer: no one's going to be able to explain it better in IRC than from a blog post
bamdad has joined #ruby
<jrobeson> coldbeer, well you've grasped the whole classes themselves are objects right?
Advocation has quit [Ping timeout: 246 seconds]
klaut has joined #ruby
<workmad3> hanmac: and even if there wasn't the Singleton module, people who've read GoF book would still get it confused with a Singleton pattern
* mikecmpbll goes back to debugging activerecord
jb41 has joined #ruby
<workmad3> coldbeer: if you don't object to book recommendations, I found 'Metaprogramming Ruby' to be a good source for firming up and filling in knowledge gaps in the ruby object model
Guest59718 has left #ruby ["Leaving"]
<jrobeson> metaprogramming is so 2000 (or some other fake year) .. i metametaprogram !
<workmad3> coldbeer: and unfortunately, the place that singleton_classes fit into that is something that needs a certain amount of grounding in order to appreciate
<apeiros> coldbeer: http://irclog.whitequark.org/ruby/2013-10-14#;singleton%20class
<apeiros> hm, that only includes my reply… well, the other reply would be around that time too
<workmad3> apeiros: that's today's log
<apeiros> coldbeer: the most common use of the singleton_class is in defining class methods.
<jrobeson> hmm.. i wonder what would happen if you comapred usages of singleton_class vs eigenclass in those logs from all time
<apeiros> workmad3: yes. I stated that precisely that question has been answered today already :)
<workmad3> jrobeson: probably a preference for eigenclass
<workmad3> jrobeson: unfortunately, the method for grabbing it in ruby was introduced as 'singleton_class'
<jrobeson> yes.. i noticed workmad3 :)
parzo has joined #ruby
<coldbeer> ok so - eigenclass = singleton_class = (what other names) ?
<jrobeson> that's it i think?
<apeiros> metaclass
<workmad3> ^^
<apeiros> but today it's really singleton_class and other names should no longer be used.
<jrobeson> aha.. meta programming wiht meta class
<coldbeer> werd- ok so eigen, singleton, meta.
<workmad3> coldbeer: the different terms are really only good for language archeology now :)
<jrobeson> i've found eigenclass most popualr in blog posts from rubyists
<apeiros> hm, sad, english doesn't seem to have a nice term for "ewiggestrig"
<coldbeer> workmad3: gotcha - really this should get firmed up in the next ruby versions. this topic will continue to come up in this channel otherwise, I'm sure.
<coldbeer> is the documentation firm in terminology?
<apeiros> coldbeer: the other terms have not been used by the language
<apeiros> so there's nothing to firm up
<jrobeson> coldbeer, it's singleton_class at least for a yearish :)
justsee has quit [Ping timeout: 240 seconds]
<apeiros> jrobeson: 5yearish
<apeiros> since it was introduced with 1.9
<jrobeson> i just know it wasn't changing in 2.1
<coldbeer> i see - so really the term is singleton_class.
<jrobeson> and that's coming out in december?
<coldbeer> the others are accessories.
Mars` has quit [Remote host closed the connection]
<apeiros> the others are legacies
Mars` has joined #ruby
<jrobeson> apeiros, what i meant is not changing from this point forwarrd for at least year
<apeiros> jrobeson: ok
<jrobeson> it likely won't ever.. just stating it for coldbeer
jrhe has quit [Quit: jrhe]
<jrobeson> that it will be part of the standard until some unspecified ruby in the future
camilasan has joined #ruby
<coldbeer> jrobeson: thats pretty much what i was looking for.
<workmad3> yeah... there was enough argument about what term to use that tbh any choice was going to cause complaints
<apeiros> indeed
<jrobeson> coldbeer, ?
<workmad3> and I doubt it's ever going to change and re-open the complaints for a new round of term-bashing :)
<jrobeson> bikeshedding
<workmad3> jrobeson: and yak-shaving
* workmad3 blanked those two terms initially
* apeiros off
<jrobeson> initially when?
jrhe has joined #ruby
<coldbeer> the correct terminology - i find it hard to believe there are >3 terms for the same concept in any language which are considered all current and valid
<jrobeson> there is only one.. but people still talk about eigenclass in blog posts
<workmad3> coldbeer: they aren't all considered current and valid
<jrobeson> only one is
<jrobeson> i thought we cleared that up
<coldbeer> you did
<jrobeson> oh ok .. you were restating what you didn't know
<jrobeson> got it
<coldbeer> :P
peterhu has joined #ruby
obs has joined #ruby
<jrobeson> but now in fact do :)
RumpledElf has joined #ruby
Mars` has quit [Ping timeout: 256 seconds]
<RumpledElf> wow, lots of people O_o
beilabs has quit [Ping timeout: 240 seconds]
<coldbeer> yes - thank you. kind_of? singleton_class returns true, others return NameError, so singleton_class is the term.
<Hanmac> RumpledElf: we are all bots there ;P
<jrobeson> it's a botfest
* RumpledElf smiles and nods
<Hanmac> coldbeer: on newer ruby you can do: class_object.singleton_class? to know if a class is a singleton class or not
<RumpledElf> I'm just here because I've heard of this ruby thing, and I have a site I need to rewrite. I'm open to options
gregf_ has left #ruby [#ruby]
Azulinho has quit [Ping timeout: 272 seconds]
<Hanmac> coldbeer: but there are 3! only three objects where obj.singleton_class.singleton_class? returns false ;P
<Hanmac> RumpledElf: is it ruby on rails? if yes try in this room #rubyonrails
<coldbeer> i am curious on why 1.8.7 got flamed so hard when i joined the channel. what kinds of things in code will force a 1.9+ dependency?
obs has quit [Ping timeout: 248 seconds]
klaut has quit [Read error: Connection reset by peer]
<RumpledElf> hanmac: its php right now, with asp.net ... I'm open to options like I said
<hoelzro> coldbeer: it's just that 1.8 is way old
<hoelzro> and it's no longer supported (iirc)
<RumpledElf> I went to some meetup a few weeks ago where they rewrote a high traffic site in ruby.
klaut has joined #ruby
peterhu has quit [Ping timeout: 248 seconds]
newbiehacker has quit [Read error: Connection reset by peer]
<jrobeson> coldbeer, everything modern
<jrobeson> there are a lot of gems that are 1.9+ now
<jrobeson> rails 4 is such also
einarj has quit [Remote host closed the connection]
leonidlm has quit [Ping timeout: 272 seconds]
<jrobeson> and.. a lot of people were holding into 1.8.7 code for compat .. and hating every second of it
<jrobeson> big sighs of relief were heard across the land
beilabs has joined #ruby
Azulinho has joined #ruby
parzo has quit [Remote host closed the connection]
<Hanmac> man it would be fun if debian and ubuntu drops ruby1.8 totally from the repository ;P
<RumpledElf> the closest I get to ruby normally is screaming in horror if compass isn't installed >.>
swordsmanz has quit [Read error: Connection reset by peer]
<coldbeer> well i understand well and good that newer programs require 1.9+, but I am asking specifically, what features of a program would force it to require 1.9+ ?
lyanchih has quit [Ping timeout: 256 seconds]
<coldbeer> like if I include library XYZ assuming it is in stdlib, does that make it 1.9.x? etc
lyanchih has joined #ruby
<joshAnderson99> to install libxml, i'd use install gem install libxml, but using rvm would it be rvm pkg install libxml? (notice there's libxml2, but assume that's a different thing)
<jrobeson> coldbeer, you can lok up the the changelog and new features
swordsmanz has joined #ruby
h_kon has quit [Remote host closed the connection]
fayimora has joined #ruby
yacks has joined #ruby
<kaspergrubbe> coldbeer: new features, new syntax, changed method names etc.
<Hanmac> joshAnderson99: use the gem "nokogiri" its twice that much fun with xml
einarj has joined #ruby
Azulinho has quit [Ping timeout: 260 seconds]
<peterwalker78> INTERCAL is clearly the best language for all occasions
<joshAnderson99> i would, but using a script that someone else wrote that required libxml. thanks for the suggestion though, should i have some xml processing to do sometime.
<workmad3> peterwalker78: nah, Java2k is much superiour
<workmad3> *superior
mark06 has left #ruby [#ruby]
<workmad3> coldbeer: 1.9 introduced some new syntax features too
tatsuya_o has joined #ruby
nfk has quit [Ping timeout: 240 seconds]
<peterwalker78> but does java2k raise exceptions if your code is either impolite or too polite?
<peterwalker78> I think not!!!
<workmad3> peterwalker78: no
<workmad3> peterwalker78: but it does make all your calls probabilistic
<workmad3> peterwalker78: so your system calls have about a 90% chance of succeeding
<peterwalker78> okay, that's quite amusing
<peterwalker78> :)
<workmad3> (and then goes down from there)
<peterwalker78> and obviously the best place to store complex data is in flat files
<peterwalker78> databases are overrated
<peterwalker78> :D
<workmad3> peterwalker78: pfft, I store all my data in /dev/null
<workmad3> peterwalker78: you should see my benchmark speeds!
<peterwalker78> lol
<coldbeer> correct me if I am wrong please: but Ruby does not have declared visibility on class or object methods, right?
<workmad3> coldbeer: you mean public, protected and private?
<workmad3> coldbeer: they're present
<coldbeer> declared visibility is like you can access it or you cant.
orien has joined #ruby
<coldbeer> workmad3: yeah exactly
<workmad3> coldbeer: you can declare methods as private, protected or public
<coldbeer> so is it "public" unless otherwise specified?
staafl has quit [Read error: Connection reset by peer]
Advocation has joined #ruby
francisfish has quit [Remote host closed the connection]
francisfish has joined #ruby
h_kon has joined #ruby
<jrobeson> coldbeer, that is one thing that changed between ruby versions right there.. whether they shows as something via respond_to
<peterwalker78> hmm... I just redirected all my db calls to /dev/null to improve performance as you suggested
<peterwalker78> I can't find my data now though
<peterwalker78> :D
<RumpledElf> peterwalker78: try /dev/random
<workmad3> ^^
<peterwalker78> lol
leonidlm has joined #ruby
<workmad3> peterwalker78: your data is in there... somewhere...
<peterwalker78> I want my data to be lost more consistently than that though
fayimora has quit [Quit: zzzzz...]
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
francisfish has quit [Ping timeout: 246 seconds]
<coldbeer> you heard the man - lose the data every time! not just most times...
<workmad3> that's difficult when you have true randomness :(
Soda has quit [Remote host closed the connection]
<workmad3> and I mean, who doesn't link up /dev/random to geiger counters pointed at their coffee?
tintintin has joined #ruby
tintintin has left #ruby ["Leaving"]
Bry8Star{T2 has joined #ruby
zarubin has quit [Ping timeout: 252 seconds]
<coldbeer> woah 3:16am.
ZhBPi has quit [Ping timeout: 260 seconds]
<coldbeer> alright everyone. thanks for your opinions, guidance, and other whatnottery. talk to you later.
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
coldbeer has quit [Quit: leaving]
Azulinho has joined #ruby
astrobunny has quit [Ping timeout: 246 seconds]
ewnd9 has joined #ruby
ce_afk is now known as cescalante
postmodern has quit [Quit: Leaving]
jbpros has quit [Quit: jbpros]
kil0byte_ has joined #ruby
astrobunny has joined #ruby
kil0byte has quit [Ping timeout: 272 seconds]
timonv has quit [Read error: Connection reset by peer]
mercwithamouth has joined #ruby
timonv has joined #ruby
heidi has joined #ruby
lyanchih has quit [Quit: lyanchih]
cescalante is now known as ce_afk
thesheff17 has joined #ruby
otherj has joined #ruby
otherj has quit [Max SendQ exceeded]
araujo has joined #ruby
otherj has joined #ruby
heidi has quit [Ping timeout: 245 seconds]
dayepa has quit [Quit: dayepa]
h_kon has quit [Remote host closed the connection]
dayepa has joined #ruby
otherj has quit [Client Quit]
francisfish has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
abhishek77in has quit [Ping timeout: 250 seconds]
bamdad has quit [Ping timeout: 240 seconds]
<shevy> hmm
ereslibre has joined #ruby
BradND has quit [Changing host]
BradND has joined #ruby
BradND has left #ruby [#ruby]
petey has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
Guest8342 has joined #ruby
starfox21 has joined #ruby
nari has joined #ruby
<joshAnderson99> anyone know why this line.delete!("#&") gives "invalid byte sequence in UTF-8"?
petey has quit [Ping timeout: 240 seconds]
peterhu has joined #ruby
<apeiros> because your receiver is a string which claims to be utf-8 but isn't.
<apeiros> (or rather, which you told ruby it was utf-8, but isn't)
<joshAnderson99> ah, it's the receiver.. but following error msg says (ArgumentError)
Fredericks has quit [Read error: Connection reset by peer]
<apeiros> yeah, they should probably introduce ReceiverError :)
<joshAnderson99> but what you say is the only explanation really
<joshAnderson99> ah huh.. good to know. thanks
<apeiros> it's a bit crude, but you can consider `self` to be a permanent argument to all methods.
narcan has joined #ruby
<apeiros> and yes, I agree, the error doesn't make itself very clear
<joshAnderson99> in ruby i'm sure there would be quite a few possibilities. with the strong sense of message sending it adopts. but rather new to ruby at the moment, so i'll just tend to agree for the moment, but it seems reasonably. i doubt absence of refined error class is due to laziness.
<joshAnderson99> *reasonable
kaspergrubbe has joined #ruby
<joshAnderson99> i think you're right.. that brings some sense to the error msg.
orien has quit [Quit: Computer has gone to sleep.]
<shevy> hanmac this is so insane
Mars` has joined #ruby
<shevy> hanmac I grew up to Tom and Jerry. now that is what I call "normal" ... a cartoon with a tree making love to a woman is just insanity
pothibo has joined #ruby
<shevy> joshAnderson99 the encoding kills me all the time. even when I set "# Encoding: ASCII-8BIT" it's not enough when I read in external data as it wants to default to utf-8, then it complains about my german umlauts
<joshAnderson99> just added this: line = line.encode!('UTF-8'), but still the same error msg.
mephux has quit [Ping timeout: 246 seconds]
orien has joined #ruby
<shevy> wait
<shevy> that line seems odd
dangerousdave has quit [Quit: Leaving...]
<apeiros> joshAnderson99: according to your error, the string already is marked to be utf-8
<apeiros> so encode!('utf-8') is a no-op
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<apeiros> your data however is not valid utf-8.
mikecmpbll has joined #ruby
heftig_ has joined #ruby
<apeiros> your steps to resolve this are: a) figure out what encoding your data source uses, b) open the source with that encoding, c) transcode it to utf-8 and operate normally on it
nfk has joined #ruby
Azulinho has quit [Ping timeout: 256 seconds]
dangerousdave has joined #ruby
<joshAnderson99> just got to check something. i believe there was reliance on inconv.. to convert to utf8, which i replaced with encode. perhaps for libxml.
mephux has joined #ruby
lyanchih has joined #ruby
Mars` has quit [Ping timeout: 245 seconds]
machuga|away is now known as machuga
<joshAnderson99> otherwise, it might be better left out, if it's causing that error msg before.
<joshAnderson99> at least using ruby 2.0, in which handling of text encoding would probably have improved over earlier versions.
<apeiros> open + transcode can be done in 1 step: encoding: 'source-encoding:utf-8'
<joshAnderson99> some optimism then that there may be a way through this character confusion.
<apeiros> joshAnderson99: no, as of ruby 1.9, you have no reliance on iconv.
<apeiros> unless you explicitly choose to do so
heftig has quit [Ping timeout: 245 seconds]
<joshAnderson99> there was use of that.. as in line = Iconv::iconv('utf-8', 'cp1251',line).to_s #convert to utf-8
<apeiros> that'd be explicitly using iconv, yes :)
<joshAnderson99> presumably the author of the script did that because of libxml
postmodern has joined #ruby
dEPz has quit [Remote host closed the connection]
<apeiros> you're working on an existing script?
<joshAnderson99> if i leave the encoding to utf8 out, would expect libxml to complain. i might try.
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
<shevy> require 'iconv'
kracekumar has quit [Quit: Computer has gone to sleep.]
Guest27553 is now known as lemonsparrow
<shevy> kernel_require.rb:55:in `require': iconv will be deprecated in the future, use String#encode instead.
<shevy> :(
ereslibre has quit [Remote host closed the connection]
<joshAnderson99> yeah, but if it's too hairy, i might replace the libxml code with... another library. someone mentioned before. n... something.
timonv has quit [Read error: Connection reset by peer]
<apeiros> shevy: so when you finally made the jump from 1.8, you only went to 1.9? :)
<apeiros> nokogiri
<joshAnderson99> ya.. but i'd prefer to use existing script first if can get around the encoding problem.
timonv has joined #ruby
<apeiros> yes, nokogiri is generally accepted as better than libxml/rexml (note that it too uses the libxml C library underneath)
<shevy> apeiros, yup, my yaml files do not work with psych, I am using syck with 1.9. I need to figure out what to do with my yaml files first before I can switch to 2.x, else all my system configuration is unusable
<joshAnderson99> inconv isn't supported any longer in 2.0, so that's why i've used encode instead.
<shevy> but it's the last remaining problem for me :D
francisfish has quit [Remote host closed the connection]
francisfish has joined #ruby
Azulinho has joined #ruby
<apeiros> shevy: read them with syck, write the back with psych. You can use YAML::ENGINE.yamler = 'syck' / 'psych' to switch yaml engines.
fayimora has joined #ruby
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
swordsmanz has quit [Ping timeout: 252 seconds]
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
wildroman has joined #ruby
aagdbl has joined #ruby
francisfish has quit [Ping timeout: 245 seconds]
Domon has quit [Remote host closed the connection]
Hanmac has quit [Quit: Leaving.]
evelyette has joined #ruby
apeiros has quit [Remote host closed the connection]
<evelyette> hi, I'm printing the following with puts command: "Test #{self.mystring}", where the mystring is generated by the user: can a user supply such an input string to break out of the puts string and inject arbitrary command ?
kaspergrubbe has quit [Remote host closed the connection]
apeiros has joined #ruby
kaspergr_ has joined #ruby
kilophoton has joined #ruby
eka has joined #ruby
thesheff17 has quit [Ping timeout: 272 seconds]
astrobunny has quit [Ping timeout: 272 seconds]
khushildep has joined #ruby
timonv has quit [Read error: Connection reset by peer]
timonv has joined #ruby
kilophoton has quit [Ping timeout: 248 seconds]
Guest8342 has quit [Ping timeout: 246 seconds]
obs has joined #ruby
Azulinho has quit [Read error: Connection reset by peer]
ce_afk is now known as cescalante
fayimora has quit [Quit: zzzzz...]
astrobunny has joined #ruby
bamdad has joined #ruby
peterhu has quit [Ping timeout: 272 seconds]
robertjpayne has joined #ruby
AlSquire has joined #ruby
<robertjpayne> Is there an easy way in a subclass to mark methods as protected that otherwise would be public?
horofox has joined #ruby
<apeiros> protected :foo
<robertjpayne> perfec ttanks!
<robertjpayne> can you do more than 1? :)
<apeiros> sure. also it's a plain method call, so it's documented in Module's API
mercwithamouth has quit [Ping timeout: 246 seconds]
<robertjpayne> apeiros: yea just saw that whoops.
<apeiros> np, just telling :)
Elhu has quit [Quit: Computer has gone to sleep.]
tessi has joined #ruby
Azulinho has joined #ruby
svector has joined #ruby
heidi has joined #ruby
orien has quit [Quit: Computer has gone to sleep.]
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
cescalante is now known as ce_afk
beilabs has quit [Ping timeout: 240 seconds]
aryaching has quit []
drumsrgr8forn8 has joined #ruby
heidi has quit [Ping timeout: 272 seconds]
camilasan has quit [Ping timeout: 246 seconds]
beilabs has joined #ruby
leonidlm has quit [Read error: Operation timed out]
fayimora has joined #ruby
fayimora has quit [Client Quit]
wildroman has quit [Remote host closed the connection]
wildroman has joined #ruby
camilasan has joined #ruby
astrobunny has quit [Ping timeout: 265 seconds]
ewnd9 has quit [Ping timeout: 252 seconds]
AndChat| has joined #ruby
wildroman has quit [Remote host closed the connection]
Hanmac has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
DonRichie has joined #ruby
wildroman has joined #ruby
diegoviola has quit [Ping timeout: 240 seconds]
obs has quit [Quit: ChatZilla 0.9.87 [Iceape 2.7.12/20130119095535]]
obs has joined #ruby
lkba has quit [Ping timeout: 253 seconds]
diego1 has joined #ruby
obs has quit [Remote host closed the connection]
kraljev has joined #ruby
diego1 is now known as diegoviola
astrobunny has joined #ruby
obs has joined #ruby
Mon_Ouie has quit [Ping timeout: 256 seconds]
Hanmac has quit [Read error: Operation timed out]
filipe has quit [Remote host closed the connection]
it_tard has joined #ruby
<kraljev> May I ask
<kraljev> Why is String#index
<kraljev> sory
<kraljev> String#insert
<kraljev> not with exclamation mark
<kraljev> since it's desctructive
<kraljev> And it's not the lonely example
<apeiros> it's not a requirement for in-place methods to have a bang
buibex has quit [Remote host closed the connection]
<apeiros> ! just means "be careful", and it's most often present when copy-returning and in-place methods are paired
buibex has joined #ruby
relix has joined #ruby
marcgg_ has quit [Ping timeout: 245 seconds]
Hanmac has joined #ruby
buibex has quit [Read error: Connection reset by peer]
buibex has joined #ruby
<kraljev> And how is this principle called?
leonidlm has joined #ruby
<kraljev> KISS or the principle of least surprise?
<kraljev> ok, any reason insert doesn't return new string instance
renanoronfle has quit [Ping timeout: 240 seconds]
<kraljev> since there is not benefit on modifying in place, both cases O(n)
mklappstuhl has joined #ruby
<kraljev> ...? these are the inconsistencies that should get settled in ruby 3.0
RumpledElf has left #ruby [#ruby]
<tobiasvl> why is it an inconsistency?
bamdad has quit [Quit: bamdad]
<workmad3> kraljev: insert is inserting one string into another... not creating a third string
blackmes1 has joined #ruby
<tobiasvl> String#insert has the string as the receiver, it makes sense that the method modifies its receiver, doesn't it?
<kraljev> tobiasvl, gsub also has string s receiver
obs has quit [Quit: ChatZilla 0.9.87 [Iceape 2.7.12/20130119095535]]
<kraljev> or replace
kofno has quit [Read error: Operation timed out]
yalue has joined #ruby
fayimora has joined #ruby
larissa has joined #ruby
horofox has quit [Quit: Leaving.]
<apeiros> personally I'd have preferred if ruby had adopted clear semantics.
<apeiros> String#inserted -> copy, String#insert # -> in-place
buibex has quit [Remote host closed the connection]
wildroman has quit [Remote host closed the connection]
<apeiros> String#gsubbed -> copy, String#gsub -> in-place
<apeiros> anyway kraljev - this is what we have and how it is. it won't get changed.
buibex has joined #ruby
wildroman has joined #ruby
buibex has quit [Read error: Connection reset by peer]
<kraljev> ok, at least someone sided with me
<kraljev> :)
buibex has joined #ruby
beilabs has quit [Ping timeout: 245 seconds]
<kraljev> I'd have String#insert! and without bang
<kraljev> or your idea is actually really good
svector has quit [Ping timeout: 272 seconds]
<kraljev> except in some cases past participle is same as present participle
<kraljev> String#read for example
<Hanmac> what is your problem guys? cant you type "!" on your keyboard or what is the problem with "gsub!" ?
<kraljev> that is ok
<kraljev> but then have ! in every method that is destructive, or, in place
workmad3 has quit [Ping timeout: 260 seconds]
ereslibre has joined #ruby
<Hanmac> kraljev: hm nope, it only exist where also an non-destructive method would make sense
beilabs has joined #ruby
svector has joined #ruby
<Hanmac> like an non-destructive #replace method does not make much sense right?
leonidlm has quit [Read error: Connection reset by peer]
<kraljev> sure it does
<kraljev> oh, no it doesn't
wildroman has quit [Ping timeout: 245 seconds]
<kraljev> but then have ! anyways
<tobiasvl> i think kraljev would like non-ambiguous semantics
<tobiasvl> ! always means destructive
<tobiasvl> its absence always means non-destructive
<tobiasvl> like in … sceme?
<nouitfvf_> it is all OK with ruby methods. we don't need these changes -_-
<kraljev> and delete_if, keep, and delete_if!
<kraljev> mess
mengu has quit [Remote host closed the connection]
<Hanmac> kraljev: what do you think about. "val = gets.lstrip!.downcase!" ? and why do you think about that?
bamdad has joined #ruby
AndChat| has quit [Quit: Bye]
lkba has joined #ruby
allsystemsarego has joined #ruby
allsystemsarego has joined #ruby
<kraljev> I just think something more should be done to revamp method hames in next major release
k610 has joined #ruby
<apeiros> kraljev: due to backwards compat that's unlikely to happen
<kraljev> I agree,
bamdad has quit [Client Quit]
lyanchih has quit [Ping timeout: 265 seconds]
<Hanmac> kraljev: you also need to be careful with the return value of ! methods … it isnt always self
h_kon has joined #ruby
ewnd9 has joined #ruby
fayimora has quit [Quit: zzzzz...]
s00pcan has quit [Read error: Connection reset by peer]
s00pcan has joined #ruby
bamdad has joined #ruby
Monie has joined #ruby
Elhu has joined #ruby
Guest15969 has joined #ruby
<kraljev> also
<kraljev> String#setbyte and String#each_byte
<kraljev> reminds me a little of php
<kraljev> good ol' days
persand has quit [Quit: persand]
<Hanmac> there is also each_codepoint ;P
<kraljev> nop, each_byte and each_codepoint are not the same in case of multi-byte encodings
diegoviola has quit [Ping timeout: 240 seconds]
persand has joined #ruby
barratt has joined #ruby
<Hanmac> i never said they are the same
<apeiros> sure, because one iterates bytes, the other codepoints
<nouitfvf_> kraljev, you better should make your own copy of stdlib, with any method names you want -_-
robertjpayne has quit [Remote host closed the connection]
obs has joined #ruby
<Hanmac> but there is also a #bytes method that differers from #each_byte
peterhu has joined #ruby
buibex has quit [Remote host closed the connection]
buibex has joined #ruby
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
atSetKey has joined #ruby
someish has joined #ruby
<kraljev> also #byteslice is redundant should be rather bytes.slice or bytes[]
<kraljev> with iterators you could make it just as effective, i guess
nomenkun has joined #ruby
marcgg has joined #ruby
leonidlm has joined #ruby
ce_afk is now known as cescalante
<apeiros> not quite correct. COW however could make it relatively efficient.
peterhu has quit [Ping timeout: 240 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
buibex has quit [Ping timeout: 240 seconds]
<apeiros> I'd agree that String and Array are two core classes which try to be too much to too many.
saysjonathan has quit [Quit: leaving]
<shevy> let's remove them
schaerli has quit [Remote host closed the connection]
_maes_ has joined #ruby
schaerli has joined #ruby
<Hanmac> XD
Fredericks has joined #ruby
Guest40103 has quit [Remote host closed the connection]
<kraljev> Why do both Array and Enumerable have #take_while?
supergeek has joined #ruby
sumark_ has joined #ruby
schaerli has quit [Ping timeout: 252 seconds]
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Hanmac> kraljev: because Array overwrite some methods to make them faster
heidi has joined #ruby
leonidlm has quit [Ping timeout: 272 seconds]
cescalante is now known as ce_afk
blackmes1 has quit [Ping timeout: 240 seconds]
mark_locklear has joined #ruby
<kraljev> Documentation bug: #initialize_copy is listed on the left, but without any description
<kraljev> but hanmac, I don't see how such a simple method as take while could benefit from knowing array structure....
gwb3 has quit [Quit: leaving]
gwb3 has joined #ruby
heidi has quit [Ping timeout: 248 seconds]
<Hanmac> kraljev .. on Enumerable#take_while it needs to collect the items and then build an new array … on Array#take_while it can use the index and create an SubArray
newbiehacker has joined #ruby
xk_id has joined #ruby
<Hanmac> ok that might not be 100% true but that how i would do it
boxmein has joined #ruby
boxmein_ has joined #ruby
boxmein has quit [Client Quit]
boxmein_ has quit [Client Quit]
<kraljev> guess we should benchmark really how much it benefits
<kraljev> but it certainly doesn't in terms of computational complexity, the thing that matters most
boxmein has joined #ruby
jbpros has joined #ruby
BizarreCake has joined #ruby
helloworld has quit [Ping timeout: 245 seconds]
supergeek has quit [Quit: Leaving]
sr78ger has quit [Ping timeout: 240 seconds]
kaldrenon has joined #ruby
habanany has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
cody-- has joined #ruby
mlpinit has joined #ruby
leonidlm has joined #ruby
_maes_ has joined #ruby
svector has quit [Ping timeout: 272 seconds]
poisonarms has quit [Ping timeout: 265 seconds]
astrobunny has quit [Ping timeout: 246 seconds]
diegoviola has joined #ruby
<Hanmac> kraljev: my benchmark told me that Array#keep_ is thour times that fast an Enumerable#keep …
jkamenik has joined #ruby
<Hanmac> i mean keep_while
<kraljev> did you test really big arrays?
<kraljev> 1000000.times.to_a
bugsinlights has quit [Remote host closed the connection]
bugsinlights has joined #ruby
vxxr has quit [Quit: leaving]
<kraljev> it is faster probably because with Array method, you can do contigous memory copy
kil0byte has joined #ruby
<kraljev> and with iterator, you have to do it one by one
burlyscudd has joined #ruby
astrobunny has joined #ruby
Jetchisel has joined #ruby
xk_id has quit [Quit:
heftig_ has quit [Quit: Quitting]
kofno has joined #ruby
aagdbl1 has joined #ruby
atSetKey has quit [Remote host closed the connection]
<Hanmac> kraljev: i get: Enumerable.take_while 56.240000 1.710000 57.950000 ( 57.928675) and Array.take_while 25.960000 0.010000 25.970000 ( 25.949184)
<kraljev> great! :)
leonidlm has quit [Ping timeout: 245 seconds]
kil0byte_ has quit [Ping timeout: 265 seconds]
shaunbaker has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mklappst_ has joined #ruby
shaunbaker has joined #ruby
<kraljev> I suspect if you had long strings as elemnts of array instead of simple numbers, the difference would decrease further
jibi has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
Monie has joined #ruby
<kraljev> x = ["a"*10000] * 100; x[99500] = "a"; x.take_while { |y| y == "a" }
aagdbl has quit [Ping timeout: 256 seconds]
<kraljev> x[99] = "a"
schaerli has joined #ruby
kofno has quit [Ping timeout: 265 seconds]
<kraljev> thanks guys for the chat, you are really smart :)
coderhs has quit [Quit: Leaving]
saysjonathan has joined #ruby
shaunbaker has quit [Ping timeout: 245 seconds]
michael_mbp is now known as zz_michael_mbp
zz_michael_mbp is now known as michael_mbp
shaunbaker has joined #ruby
jaynewstrom has joined #ruby
postmodern has quit [Quit: Leaving]
bamdad has quit [Read error: Connection reset by peer]
fgh2 has joined #ruby
bamdad has joined #ruby
yfeldblum has joined #ruby
Guest27184 has joined #ruby
Intrepid_ has joined #ruby
astrobunny has quit [Ping timeout: 260 seconds]
Advocation_ has joined #ruby
soba__ has joined #ruby
aagdbl1 has quit [Quit: Leaving.]
<Hanmac> kraljev: even with your sample, Array.take_while is still faster
leonidlm has joined #ruby
schaerli_ has joined #ruby
clamstar has joined #ruby
mikemac has joined #ruby
Gooder has quit [Read error: Connection reset by peer]
fgh has quit [Read error: Connection reset by peer]
RTG` has quit [Read error: Connection reset by peer]
Intrepidd has quit [Read error: Connection reset by peer]
wchun has quit [Ping timeout: 246 seconds]
abstractj has quit [Ping timeout: 246 seconds]
jgrevich has quit [Ping timeout: 246 seconds]
x0nic has quit [Ping timeout: 246 seconds]
Advocation has quit [Write error: Connection reset by peer]
the_mentat has quit [Ping timeout: 246 seconds]
Catie has quit [Ping timeout: 246 seconds]
schaerli has quit [Read error: Connection reset by peer]
moshee has quit [Ping timeout: 246 seconds]
RDash has quit [Ping timeout: 246 seconds]
dekz has quit [Ping timeout: 246 seconds]
WillAmes has quit [Ping timeout: 246 seconds]
ZadYree has quit [Ping timeout: 246 seconds]
karlfreeman has quit [Ping timeout: 246 seconds]
heidar has quit [Ping timeout: 246 seconds]
lectrick has quit [Ping timeout: 246 seconds]
crazymykl has quit [Remote host closed the connection]
joker_ has quit [Ping timeout: 246 seconds]
bartj3 has quit [Ping timeout: 246 seconds]
Advocation_ is now known as Advocation
yeban has quit [Ping timeout: 246 seconds]
Guest27184 is now known as RTG`
roadt_ has quit [Ping timeout: 246 seconds]
fudanchii has quit [Ping timeout: 246 seconds]
bartj3 has joined #ruby
fudanchii has joined #ruby
roadt_ has joined #ruby
BizarreCake has quit [Ping timeout: 246 seconds]
breakingthings has joined #ruby
moshee has joined #ruby
VTLob has joined #ruby
RDash has joined #ruby
abstractj has joined #ruby
abstractj has quit [Changing host]
abstractj has joined #ruby
the_mentat has joined #ruby
x0nic has joined #ruby
BizarreCake has joined #ruby
Catie has joined #ruby
blackmes1 has joined #ruby
soba has quit [Ping timeout: 245 seconds]
ZadYree has joined #ruby
astrobunny has joined #ruby
Heero has joined #ruby
araujo has quit [Ping timeout: 240 seconds]
shaunbak_ has joined #ruby
jgrevich has joined #ruby
phantasm66 has joined #ruby
AxonetBE has joined #ruby
araujo has joined #ruby
fayimora has joined #ruby
bugsinlights has quit [Remote host closed the connection]
bugsinlights has joined #ruby
xk_id has joined #ruby
GeissT has quit [Remote host closed the connection]
shaunbaker has quit [Ping timeout: 264 seconds]
adambeynon has joined #ruby
destructure has quit [Ping timeout: 246 seconds]
ce_afk is now known as cescalante
destructure has joined #ruby
T_T has joined #ruby
fayimora has quit [Client Quit]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
Sp4rKy has quit [Ping timeout: 246 seconds]
Sp4rKy has joined #ruby
colonolGron has quit [Ping timeout: 272 seconds]
devoldmx3 has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
leonidlm has quit [Ping timeout: 253 seconds]
apfelbox has joined #ruby
jerius has joined #ruby
apfelbox has quit [Remote host closed the connection]
apfelbox has joined #ruby
T_T has quit [Read error: Connection reset by peer]
ua has joined #ruby
<ua> hi
T_T has joined #ruby
devoldmx has quit [Ping timeout: 245 seconds]
tjad has quit [Ping timeout: 245 seconds]
drumsrgr8forn8 has quit [Ping timeout: 240 seconds]
fayimora has joined #ruby
Xeago has joined #ruby
buibex has joined #ruby
heidi has joined #ruby
cescalante is now known as ce_afk
buibex has quit [Ping timeout: 240 seconds]
qohelet_ has joined #ruby
devoldmx3 has quit [Ping timeout: 272 seconds]
heidi has quit [Ping timeout: 265 seconds]
polaco_zZz is now known as polaco
bigkevmcd has quit [Quit: Ex-Chat]
bamdad has quit [Quit: bamdad]
diegoviola has quit [Read error: Operation timed out]
sambao21 has joined #ruby
bamdad has joined #ruby
xk_id has quit [Quit:
Bry8Star{T2 has quit [Remote host closed the connection]
Kabaka has quit [Remote host closed the connection]
wildroman has joined #ruby
djbender has joined #ruby
wildroman has quit [Remote host closed the connection]
wildroman has joined #ruby
leonidlm has joined #ruby
dangerousdave has quit [Quit: Leaving...]
bigkevmcd has joined #ruby
Kabaka has joined #ruby
Bry8Star{T2 has joined #ruby
kofno has joined #ruby
ce_afk is now known as cescalante
jbpros has quit [Ping timeout: 252 seconds]
orionstein_away is now known as orionstein
devoldmx has joined #ruby
someish has quit [Quit: someish]
plotter has left #ruby ["Leaving"]
i8igmac has quit [Quit: Leaving]
astrobunny has quit [Ping timeout: 240 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
leonidlm has quit [Ping timeout: 268 seconds]
michael_mbp is now known as zz_michael_mbp
someish has joined #ruby
agjacome has joined #ruby
RORgasm has joined #ruby
ua has quit [Quit: Leaving]
tirengarfio has joined #ruby
kofno has quit [Quit: leaving]
kofno has joined #ruby
dhruvasagar has joined #ruby
bean__ has joined #ruby
fuhgeddaboudit has joined #ruby
tabolario has joined #ruby
cody-- has quit [Quit: derp]
<tirengarfio> Hi, im getting this error when I try to run a compass commnand: http://pastebin.com/Bi4qx7vb
insanedreamr has joined #ruby
<tirengarfio> Im on ubuntu 13.04
interactionjaxsn has joined #ruby
<tirengarfio> any idea?
geekbri has joined #ruby
boxmein is now known as ActuallySavask
<bean__> looks like you haven't install compass in your bundle to me
shaunbak_ has quit [Remote host closed the connection]
shaunbaker has joined #ruby
agjacome has quit [Client Quit]
burlyscudd has quit [Quit: Leaving.]
astrobunny has joined #ruby
wildroman has quit [Remote host closed the connection]
atSetKey has joined #ruby
<bean__> or you haven't installed the compass gem
<bean__> tirengarfio:
buibex has joined #ruby
v0n has joined #ruby
wildroman has joined #ruby
shaunbaker has quit [Read error: Connection reset by peer]
shaunbaker has joined #ruby
zoee has quit [Quit: zoee]
insanedreamr has quit [Client Quit]
IceyEC has joined #ruby
<tirengarfio> bean__, I installed compass, yesterday I did not have that problem, but Ubuntu updated some packages images..
shaunbaker has quit [Remote host closed the connection]
<bean__> your $PATH is likely wrong
<bean__> then
shaunbaker has joined #ruby
i8igmac has joined #ruby
zz_michael_mbp is now known as michael_mbp
r0bgleeson has joined #ruby
wildroman has quit [Ping timeout: 240 seconds]
<tirengarfio> I run "whereis compass" and I got /usr/local/bin/compass watch, and the error is the same
<tirengarfio> bean__,
ActuallySavask is now known as boxmein
<tirengarfio> I meant, I run "/usr/local/bin/compass watch"
dhruvasagar has quit [Read error: Operation timed out]
<bean__> okay, then "gem install compass" again
<bean__> and try again
iamjarvo has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
<Hanmac> tirengarfio: hm try to run "gem env"
banisterfiend has quit [Quit: Computer has gone to sleep.]
devoldmx has joined #ruby
marius has joined #ruby
<tirengarfio> Im still installing as bean__ said
<bean__> man, I wish someone hadn't registered the nick bean_
shaunbaker has quit [Ping timeout: 252 seconds]
<bean__> i have bean, julian-delphiki, and bean__, but he wont give me bean_
<bean__> :(
mary5030 has joined #ruby
shaunbaker has joined #ruby
atSetKey has quit [Ping timeout: 264 seconds]
jdenen has joined #ruby
burlyscudd has joined #ruby
maycon has joined #ruby
maycon has joined #ruby
amritanshu_RnD has quit [Quit: Leaving]
lurch_ has left #ruby [#ruby]
amritanshu_RnD has joined #ruby
petey has joined #ruby
thesheff17 has joined #ruby
tjbarber has joined #ruby
<tirengarfio> bean__ thanks, it works
jkamenik has quit [Quit: Leaving.]
<tirengarfio> :)
<bean__> yeah, you likely upgraded your ruby version and were missing the gems or somesuch
karlfreeman has joined #ruby
leonidlm has joined #ruby
jkamenik has joined #ruby
zz_tsykoduk is now known as tsykoduk
jibi has quit [Quit: .]
horst has left #ruby [#ruby]
theRoUS has quit [Ping timeout: 256 seconds]
mary5030 has quit [Ping timeout: 264 seconds]
joshAnderson99 has quit [Remote host closed the connection]
mary5030 has joined #ruby
astrobunny has quit [Ping timeout: 240 seconds]
shaunbaker has quit [Remote host closed the connection]
iamjarvo has quit [Read error: Connection reset by peer]
Davey has joined #ruby
iamjarvo has joined #ruby
ffranz has joined #ruby
shaunbaker has joined #ruby
Coolhand has quit [Read error: Operation timed out]
Coolhand has joined #ruby
mary5030 has quit [Remote host closed the connection]
leonidlm has quit [Ping timeout: 264 seconds]
francisfish has joined #ruby
nari has quit [Ping timeout: 260 seconds]
tsykoduk is now known as zz_tsykoduk
raphaelivan has joined #ruby
astrobunny has joined #ruby
it_tard has quit [Ping timeout: 245 seconds]
timonv has quit [Read error: Connection reset by peer]
timonv has joined #ruby
marsam has joined #ruby
dhruvasagar has joined #ruby
wildroman has joined #ruby
peterhu has joined #ruby
freezey has joined #ruby
mary5030 has joined #ruby
mr_red has joined #ruby
Mon_Ouie has joined #ruby
lkba has quit [Ping timeout: 256 seconds]
shaunbak_ has joined #ruby
Aryasam has joined #ruby
devoldmx has quit [Ping timeout: 248 seconds]
pothibo has quit [Quit: pothibo]
devoldmx has joined #ruby
peterhu has quit [Ping timeout: 272 seconds]
schaerli_ has quit [Remote host closed the connection]
xk_id has joined #ruby
Ox6abe has joined #ruby
schaerli has joined #ruby
xk_id has quit [Client Quit]
shaunbaker has quit [Ping timeout: 245 seconds]
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
helloworld has joined #ruby
Log1x has joined #ruby
relix has joined #ruby
veinofstars has joined #ruby
Banistergalaxy has joined #ruby
Heero has quit [Read error: Connection reset by peer]
schaerli has quit [Ping timeout: 245 seconds]
heidi has joined #ruby
tagrudev has quit [Remote host closed the connection]
DanKnox_away is now known as DanKnox
leonidlm has joined #ruby
mrsolo has joined #ruby
kil0byte_ has joined #ruby
gyre007 has joined #ruby
mansi has joined #ruby
mmitchell has joined #ruby
_HolyCow1 is now known as _HolyCow
rorra has joined #ruby
lfox has joined #ruby
kpshek has joined #ruby
kil0byte has quit [Ping timeout: 240 seconds]
heidi has quit [Ping timeout: 256 seconds]
Banistergalaxy has quit [Ping timeout: 252 seconds]
alexju has joined #ruby
momomomomo has joined #ruby
Banistergalaxy has joined #ruby
jlast has joined #ruby
h_kon has quit [Remote host closed the connection]
randomnick_ has joined #ruby
basmoura has joined #ruby
Aryasam has quit [Ping timeout: 245 seconds]
astrobunny has quit [Ping timeout: 240 seconds]
lkba has joined #ruby
Aryasam has joined #ruby
nari has joined #ruby
someish has quit [Quit: someish]
jaybe has left #ruby ["."]
emptymag00 has quit [Read error: Connection reset by peer]
marcgg_ has joined #ruby
someish has joined #ruby
pentameter has joined #ruby
dhruvasagar has quit [Ping timeout: 245 seconds]
justsee has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
fayimora has quit [Quit: zzzzz...]
mr_red has quit [Quit: Leaving.]
mr_red has joined #ruby
Ahti333 has quit [Read error: Connection reset by peer]
mrsolo has quit [Quit: This computer has gone to sleep]
astrobunny has joined #ruby
wallerdev has joined #ruby
marcgg has quit [Ping timeout: 240 seconds]
xk_id has joined #ruby
aryaching has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
Aryasam has quit [Quit: Bye]
weems has quit [Read error: Connection reset by peer]
pel_daniel has joined #ruby
fayimora has joined #ruby
weems has joined #ruby
dash_ has quit [Quit: dash_]
astrobunny has quit [Ping timeout: 265 seconds]
Zolo has joined #ruby
_maes_ has joined #ruby
cainus has quit [Ping timeout: 256 seconds]
Ahti333 has joined #ruby
decoponio has joined #ruby
buibex_ has joined #ruby
qohelet_ has quit [Quit: qohelet_]
_emptymag00 has joined #ruby
dhruvasagar has joined #ruby
rgbdev has joined #ruby
bamdad has quit [Quit: bamdad]
jprovazn has quit [Quit: Leaving]
Fredericks has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> RUBY!
cescalante is now known as ce_afk
sambao21 has joined #ruby
sambao21 has quit [Client Quit]
qohelet_ has joined #ruby
buibex has quit [Ping timeout: 272 seconds]
zachrab has joined #ruby
astrobunny has joined #ruby
dangerousdave has joined #ruby
atSetKey has joined #ruby
boxmein is now known as [boxmein]
icemancast has joined #ruby
freezey has quit [Remote host closed the connection]
tomzx_mac has joined #ruby
johnnyfuchs has joined #ruby
marsam has left #ruby ["WeeChat 0.4.2"]
wildroman has quit [Remote host closed the connection]
wildroman has joined #ruby
bamdad has joined #ruby
arturaz has quit [Ping timeout: 272 seconds]
atSetKey has quit [Ping timeout: 268 seconds]
bugsinlights has quit [Remote host closed the connection]
choobie has left #ruby [#ruby]
workmad3 has joined #ruby
fenec2 has joined #ruby
<fenec2> hi
<fenec2> how can i test stdout with rspec
<fenec2> i want to test what a method is outputing
banisterfiend has joined #ruby
icemancast has quit [Ping timeout: 266 seconds]
<apeiros> fenec2: didn't already yesterday somebody tell you how to replace stdout?
francisfish has quit [Remote host closed the connection]
end_guy has joined #ruby
wildroman has quit [Ping timeout: 272 seconds]
francisfish has joined #ruby
<fenec2> no
<fenec2> i think i was disconnected
burlyscudd has quit [Quit: Leaving.]
ce_afk is now known as cescalante
qohelet_ has quit [Quit: qohelet_]
sambao21 has joined #ruby
_maes_ has quit [Ping timeout: 245 seconds]
pel_daniel has left #ruby [#ruby]
<apeiros> fenec2: doesn't seem like
sambao21 has quit [Client Quit]
<fenec2> ?
<apeiros> 07:08 <fenec2> can you test stdout in rspec?
<apeiros> 07:10 <Mon_Ouie> You can use $stdout = StringIO.new add check what's in it after running your code
<apeiros> 08:17 fenec2 has quit [Ping timeout: 246 seconds]
<apeiros> seems to me like you just didn't bother.
rdark has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
svector has joined #ruby
<fenec2> oh
francisfish has quit [Ping timeout: 240 seconds]
<fenec2> i am sorry, i didnt pay attention
<fenec2> thank you apeiros
svector has quit [Max SendQ exceeded]
<shevy> he idled out!
<shevy> fenec2 you must idle to power here on IRC
svector has joined #ruby
svector has quit [Max SendQ exceeded]
relix has joined #ruby
svector has joined #ruby
svector has quit [Max SendQ exceeded]
rippa has joined #ruby
[boxmein] has quit [Ping timeout: 248 seconds]
svector has joined #ruby
svector has quit [Max SendQ exceeded]
icemancast has joined #ruby
nwertman has quit [Remote host closed the connection]
svector has joined #ruby
svector has quit [Max SendQ exceeded]
burlyscudd has joined #ruby
JohnBat26 has quit [Ping timeout: 240 seconds]
svector has joined #ruby
sambao21 has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
svector has quit [Max SendQ exceeded]
svector has joined #ruby
svector has quit [Max SendQ exceeded]
someish has quit [Quit: someish]
banisterfiend has joined #ruby
joker_ has joined #ruby
lectrick has joined #ruby
peterhu has joined #ruby
svector has joined #ruby
priyam__ has joined #ruby
pel_daniel has joined #ruby
dekz has joined #ruby
heidar has joined #ruby
svector has quit [Max SendQ exceeded]
k610 has quit [Ping timeout: 272 seconds]
cescalante is now known as ce_afk
svector has joined #ruby
mengu has joined #ruby
svector has quit [Max SendQ exceeded]
baroquebobcat has joined #ruby
T_T has quit [Remote host closed the connection]
someish has joined #ruby
bugsinlights has joined #ruby
peterhu has quit [Ping timeout: 260 seconds]
amritanshu_RnD has quit [Quit: Leaving]
CreativeEmbassy has joined #ruby
DanKnox is now known as DanKnox_away
qohelet_ has joined #ruby
valesk has joined #ruby
zz_tsykoduk is now known as tsykoduk
wildroman has joined #ruby
cody-- has joined #ruby
freezey has joined #ruby
qohelet_ has quit [Client Quit]
abhishek77in has joined #ruby
kirun has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
banisterfiend has joined #ruby
rins has joined #ruby
heidi has joined #ruby
momomomomo has quit [Quit: momomomomo]
ravster has joined #ruby
persand has quit [Quit: persand]
camilasan has quit [Remote host closed the connection]
lfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
camilasan has joined #ruby
end_guy has quit [Remote host closed the connection]
schaerli has joined #ruby
aganov has quit [Read error: Connection reset by peer]
heidi has quit [Ping timeout: 264 seconds]
rgbdev has quit [Quit: rgbdev]
kaspergr_ has quit [Remote host closed the connection]
boxmein has joined #ruby
larissa has quit [Ping timeout: 240 seconds]
nwertman has joined #ruby
mikecmpbll has joined #ruby
lfox has joined #ruby
petey has quit [Ping timeout: 272 seconds]
nyuszika7h has joined #ruby
<nyuszika7h> hi, what's the equivalent of Python's `if __name__ == '__main__'`?
camilasan has quit [Ping timeout: 240 seconds]
camilasa_ has joined #ruby
jeffdb has joined #ruby
bricker`1A has joined #ruby
<apeiros> nyuszika7h: it generally works better if you describe the desired effect.
<cout> nyuszika7h: if __FILE__ == $0
bricker`LA has quit [Ping timeout: 272 seconds]
pedda has quit [Quit: Textual IRC Client: www.textualapp.com]
<nyuszika7h> it's just a small script, I just need to do something only if it's executed
<nyuszika7h> thanks cout
jonathanwallace has quit [Ping timeout: 252 seconds]
mando has joined #ruby
burlyscudd has quit [Quit: Leaving.]
banisterfiend has quit [Quit: Computer has gone to sleep.]
mengu has quit [Remote host closed the connection]
ahawkins has quit [Quit: leaving]
wchun has joined #ruby
xk_id has quit [Quit:
zarubin has joined #ruby
francisfish has joined #ruby
AxonetBE has quit [Quit: AxonetBE]
mrsolo has joined #ruby
Ox6abe has quit [Remote host closed the connection]
jeffdb has quit [Ping timeout: 268 seconds]
alup has quit [Quit: Leaving]
freezey has quit [Read error: Connection reset by peer]
Ox6abe has joined #ruby
freezey has joined #ruby
freezey has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
bugsinlights has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 245 seconds]
bugsinlights has joined #ruby
petey has joined #ruby
end_guy has joined #ruby
francisfish has quit [Remote host closed the connection]
Ox6abe has quit [Ping timeout: 245 seconds]
DanKnox_away is now known as DanKnox
francisfish has joined #ruby
bugsinlights has quit [Remote host closed the connection]
freezey has joined #ruby
apfelbox has quit [Remote host closed the connection]
leonidlm has quit [Ping timeout: 264 seconds]
RichardBaker has joined #ruby
bugsinlights has joined #ruby
alex__c2022 has joined #ruby
Sam__ has joined #ruby
astrobun_ has joined #ruby
Sam__ has left #ruby [#ruby]
kilophoton has joined #ruby
graydot has joined #ruby
momomomomo has joined #ruby
apeiros has quit [Remote host closed the connection]
xk_id has joined #ruby
<fenec2> if you guys are interested you can use this
<fenec2> it is awesome!!
bamdad has quit [Quit: bamdad]
francisfish has quit [Ping timeout: 245 seconds]
bugsinlights has quit [Remote host closed the connection]
wallerdev has joined #ruby
bugsinlights has joined #ruby
i_s has joined #ruby
i_s has quit [Remote host closed the connection]
i_s has joined #ruby
nari has quit [Ping timeout: 265 seconds]
Kar- has quit [Ping timeout: 252 seconds]
astrobunny has quit [Ping timeout: 268 seconds]
mikeg has joined #ruby
larissa has joined #ruby
boxmein has quit [Quit: [02:26.00] <Ristovski> mozzarella filofax fadget]
burlyscudd has joined #ruby
tkuchiki has quit [Remote host closed the connection]
marius has quit [Quit: xy]
tkuchiki has joined #ruby
AltGrendel has joined #ruby
tsykoduk is now known as zz_tsykoduk
havenwood has joined #ruby
larissa has quit [Quit: Leaving]
seoNinjaWarrior has joined #ruby
atSetKey has joined #ruby
brennanMKE has joined #ruby
MrZYX|off is now known as MrZYX
<shevy> hmm do I see this right...
tkuchiki has quit [Ping timeout: 260 seconds]
<shevy> when I make use of yaml, via YAML.load_file(), the dataset is actually UTF
ssvo has joined #ruby
<shevy> so even when I have "# Encoding: ASCII-8BIT" in a .rb file that makes use of that, it ignores it and has it loaded as UTF (i.e. UTF-8)
r0bgleeson has quit [Ping timeout: 245 seconds]
<hoelzro> shevy: doesn't the encoding comment just set the the encoding for the source code?
<hoelzro> it doesn't affect stream encodings, iirc
aspires has joined #ruby
<shevy> hmm yeah
saarinen has joined #ruby
atSetKey has quit [Ping timeout: 246 seconds]
renanoronfle has joined #ruby
maletor has joined #ruby
monkegjinni has joined #ruby
<shevy> well
geggam has joined #ruby
r0bgleeson has joined #ruby
zz_tsykoduk is now known as tsykoduk
<shevy> I have a string like this here"R\xFCstung"
<shevy> oops
<shevy> "R\xFCstung"
<shevy> running .encoding on it gives me: #<Encoding:UTF-8>
<shevy> I can not convert it to anything else, it seems, via .encode('ISO-8859-1')
<shevy> ah
uokesita_ has joined #ruby
<shevy> I can do the reverse
<shevy> "R\xFCstung".encode 'UTF-8'
<shevy> that works
bugsinli_ has joined #ruby
mklappst_ has quit [Remote host closed the connection]
<shevy> now I am confused
iamjarvo has quit [Remote host closed the connection]
petey has quit [Remote host closed the connection]
volty has joined #ruby
iamjarvo has joined #ruby
<shevy> alright ... "\xFC" is definitely invalid ... "\xFC" on UTF-8 (Encoding::InvalidByteSequenceError)
petey has joined #ruby
<Hanmac> shevy maybe you are looking for force_encoding ?
<shevy> hmm
petey has quit [Read error: Connection reset by peer]
petey has joined #ruby
<shevy> classes.yml): invalid trailing UTF-8 octet at line 1 column 1 (Psych::SyntaxError)
bugsinlights has quit [Ping timeout: 272 seconds]
uokesita_ has quit [Client Quit]
<shevy> >file classes.yml
<shevy> classes.yml: UTF-8 Unicode text
petey has quit [Remote host closed the connection]
petey has joined #ruby
<shevy> cool
<shevy> hanmac, that actually worked
iamjarvo has quit [Ping timeout: 272 seconds]
pel_daniel has quit [Ping timeout: 272 seconds]
dash_ has joined #ruby
lsmola has quit [Ping timeout: 240 seconds]
gmas has joined #ruby
camilasa_ has quit [Remote host closed the connection]
lukec has joined #ruby
bugsinli_ has quit [Remote host closed the connection]
* Hanmac gains fame points
<shevy> hehe
schaerli has quit [Remote host closed the connection]
schaerli has joined #ruby
<shevy> ok now to something else...
<shevy> does anyone have a blinking prompt '> '
peterhu has joined #ruby
ravster has quit [Quit: Leaving.]
<shevy> kinda like telling a user "hey, please input something now, I am waiting"
andikr has quit [Read error: Connection reset by peer]
petey has quit [Ping timeout: 245 seconds]
Voodoofish430 has joined #ruby
djbender has quit [Read error: No route to host]
jrhe has quit [Quit: jrhe]
Tearan has joined #ruby
djbender has joined #ruby
petey has joined #ruby
banisterfiend has joined #ruby
saarinen has quit [Quit: saarinen]
<Intrepid_> shevy: You could use a carriage return (\r) then rewrite the line but that would block user input :D
<RubyPanther> shevy: term-ansicolor gem can do it
Elinos has joined #ruby
kil0byte has joined #ruby
AltGrendel has left #ruby [#ruby]
schaerli has quit [Ping timeout: 268 seconds]
kaspergrubbe has quit [Remote host closed the connection]
peterhu has quit [Ping timeout: 245 seconds]
<shevy> Intrepid_ hmm
jokke has quit [Quit: WeeChat 0.4.1]
kil0byte_ has quit [Ping timeout: 256 seconds]
<shevy> I guess it should blink until a user has input at least one character
jokke has joined #ruby
timonv has quit [Remote host closed the connection]
mlpinit has quit [Remote host closed the connection]
timonv has joined #ruby
mlpinit has joined #ruby
Banistergalaxy has quit [Read error: Connection reset by peer]
Banistergalaxy has joined #ruby
zastern_ has joined #ruby
<havenwood> shevy: here's my silly way: loop { print '> '; sleep 0.5; print "\b\b"; print ' '; sleep 0.5; print "\b\b" }
<havenwood> shevy: then just break out :P
thumpba has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
kaspergrubbe has joined #ruby
timonv has quit [Ping timeout: 260 seconds]
mlpinit has quit [Ping timeout: 272 seconds]
ephemerian has quit [Quit: Leaving.]
zastern has quit [Ping timeout: 245 seconds]
c0rn has joined #ruby
someish has quit [Quit: someish]
moted has joined #ruby
clamstar has quit [Quit: Computer has gone to sleep.]
bean__ has quit [Quit: Computer has gone to sleep.]
Advocation has quit [Quit: Advocation]
c0rn_ has joined #ruby
<RubyPanther> \b is useful, but I would recommend only using it to end the blinking unless there is a good reason the terminal doesn't support ANSI
basmoura has quit [Ping timeout: 264 seconds]
c0rn has quit [Ping timeout: 272 seconds]
kilophoton has quit [Ping timeout: 268 seconds]
gmas has quit [Ping timeout: 260 seconds]
<shevy> wheeee!
<RubyPanther> and in English I'd say the same thing
mrsolo has quit [Quit: This computer has gone to sleep]
ghr has quit [Quit: Computer has gone to sleep.]
vince_prignano has joined #ruby
<shevy> thanks havenwood
r0bgleeson has quit [Ping timeout: 272 seconds]
vince_prignano has quit [Max SendQ exceeded]
<Hanmac> yeah lets revite the <blink> tag! ;D
<shevy> what is the \b ?
<havenwood> shevy: backspace
<shevy> ohhh
<shevy> puts "abc\bdef" abdef
<shevy> it killed c :D
<Hanmac> oh nooo!! … the c didnt have any chance …
TMM has quit [Quit: Ex-Chat]
<lewellyn> you bastard!
sepp2k has joined #ruby
kaspergrubbe has quit [Ping timeout: 272 seconds]
chrisja has joined #ruby
Kar- has joined #ruby
r0bgleeson has joined #ruby
aspiers has quit [Ping timeout: 246 seconds]
zastern_ has quit [Remote host closed the connection]
<RubyPanther> >> require 'term/ansicolor'; class String; include Term::ANSIColor; end ; puts "foo".red.blink
<eval-in> RubyPanther => (https://eval.in/54478)
mrsolo has joined #ruby
zastern has joined #ruby
mityaz has joined #ruby
<RubyPanther> In xterm it has a nice side effect that it stops blinking when the terminal isn't in focus
bean__ has joined #ruby
Senjai has joined #ruby
pragmatism has joined #ruby
thumpba has quit [Quit: thumpba]
raphaelivan has quit [Quit: Leaving.]
<havenwood> yup, combining asciiterm blink and \b's is a nice solution if the blink speed suites ya
<havenwood> suits*
<havenwood> right?
<havenwood> what a strange saying.
r0bgleeson has quit [Ping timeout: 240 seconds]
<havenwood> whew... archaic : suite
<havenwood> I wasn't wrong, just in the wrong century.
io_syl has joined #ruby
momomomomo has quit [Quit: momomomomo]
b00stfr3ak has joined #ruby
<shevy> hehehe
cody-- has quit [Quit: derp]
weems has quit [Quit: Leaving]
|PiP|_ has joined #ruby
nomenkun has quit [Ping timeout: 248 seconds]
banisterfiend has quit [Quit: Computer has gone to sleep.]
ericmathison has joined #ruby
r0bgleeson has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
sguselnikov has joined #ruby
love_color_text has joined #ruby
<havenwood> backspace just to stop blinking, but eww - don't blink!!
barratt has quit [Ping timeout: 256 seconds]
love_color_text has quit [Remote host closed the connection]
mlpinit has joined #ruby
<havenwood> rotate colors :O
<havenwood> and make the beep noise \a
cody-- has joined #ruby
petey has quit [Remote host closed the connection]
petey has joined #ruby
carraroj has joined #ruby
sguselnikov has quit [Client Quit]
arietis has joined #ruby
r0bgleeson has quit [Ping timeout: 240 seconds]
burlyscudd has quit [Quit: Leaving.]
weems has joined #ruby
weems has quit [Changing host]
weems has joined #ruby
<fenec2> hey guys i am trying to have a prmpt rescue an exception if there is one and promt for the next command
<fenec2> i am getting an infinite loop though
<fenec2> here my code
<fenec2> do you see any issue
<MrZYX> you need to have the gets inside the loop
petey_ has joined #ruby
<fenec2> i have one
mikeg has quit [Ping timeout: 272 seconds]
<fenec2> oooo
<fenec2> sorry
<fenec2> i see what you mean!!!!
<habstinat> New to Ruby and trying to get <https://github.com/alecgorge/edline-api> to work for me. Running Debian oldstable. I have all the dependencies in deps.txt, but when I try to do "./start", I get this error: <http://sprunge.us/MVPM> What can I do to debug / fix this?
<MrZYX> fenec2: a do while loop is handy in such situations, in ruby you can write one with begin; body; end while condition
shaunbak_ has quit [Remote host closed the connection]
petey has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
peregrine81 has joined #ruby
dangerousdave has quit [Quit: Leaving...]
shaunbaker has joined #ruby
atSetKey has joined #ruby
troessner has quit [Quit: Leaving]
ijustwanttofly has joined #ruby
<fenec2> MrZYX, something like this? http://pastebin.com/Fj5g2qiN
tatsuya_o has quit [Remote host closed the connection]
blob has quit [Ping timeout: 240 seconds]
<MrZYX> old link ;)
tatsuya_o has joined #ruby
someish has joined #ruby
saarinen has joined #ruby
Banistergalaxy has quit [Quit: Bye]
smirn0v has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
r0bgleeson has joined #ruby
Banistergalaxy has joined #ruby
thumpba has joined #ruby
<fenec2> MrZYX, i am trying to use vim for my project, it slow learning curve, but i feel like it is worth it
atSetKey has quit [Ping timeout: 240 seconds]
Stygia has joined #ruby
shaunbaker has quit [Ping timeout: 272 seconds]
g3orge has joined #ruby
SilverKey has joined #ruby
timonv has joined #ruby
Es0teric has joined #ruby
tatsuya_o has quit [Ping timeout: 246 seconds]
Es0teric has quit [Max SendQ exceeded]
twoism has joined #ruby
allsystemsarego has quit [Quit: Leaving]
Mitchellvanw has joined #ruby
klaut has quit [Remote host closed the connection]
petey_ has quit [Remote host closed the connection]
klaut has joined #ruby
petey has joined #ruby
|PiP|_ has quit [Ping timeout: 246 seconds]
ijustwanttofly has quit [Quit: Page closed]
burlyscudd has joined #ruby
kay__ has quit [Ping timeout: 264 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
tylersmith has joined #ruby
jrhe has joined #ruby
AlSquire has quit [Quit: Quitte]
vince_prignano has joined #ruby
jaynewstrom has quit [Remote host closed the connection]
banisterfiend has joined #ruby
petey has quit [Ping timeout: 265 seconds]
klaut has quit [Ping timeout: 268 seconds]
Ox6abe has joined #ruby
randomnick_ has quit [Read error: Connection reset by peer]
peterhu has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
jonathanwallace has joined #ruby
heidi has joined #ruby
khushildep has quit [Ping timeout: 260 seconds]
lfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
whunt has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bugsinlights has joined #ruby
cainus has joined #ruby
Stalkr_ has joined #ruby
bugsinlights has quit [Max SendQ exceeded]
w3pm has joined #ruby
orien has joined #ruby
bugsinlights has joined #ruby
duggiefresh has joined #ruby
peterhu has quit [Ping timeout: 240 seconds]
bugsinlights has quit [Client Quit]
jonahR has joined #ruby
Zai00 has quit [Quit: Zai00]
relix has joined #ruby
randomnick_ has joined #ruby
Monie has joined #ruby
aspires has quit [Quit: aspires]
someish has quit [Quit: someish]
Stygia has quit [Quit: Leaving]
cainus has quit [Read error: Operation timed out]
valesk has quit [Remote host closed the connection]
blackmes1 has quit [Quit: WeeChat 0.4.1]
<fenec2> now i am pissed
<fenec2> how is this an infinite loop?http://pastebin.com/GAESEBKN
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
AlSquire has joined #ruby
aspires has joined #ruby
TheNotary has joined #ruby
mengu has quit [Remote host closed the connection]
mj12albert has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
schaerli has joined #ruby
valesk has joined #ruby
mahlon_ is now known as mahlon
mj12albert has quit [Max SendQ exceeded]
newbiehacker has quit [Ping timeout: 240 seconds]
<hoelzro> if an exception occurs
<hoelzro> it will infinite loop
<hoelzro> since cmd will never change
iamjarvo has joined #ruby
apeiros has joined #ruby
Xeago has quit [Remote host closed the connection]
alex__c2022 has joined #ruby
schaerli has quit [Remote host closed the connection]
bean__ has quit [Quit: Computer has gone to sleep.]
pnbeast has joined #ruby
atmosx has quit [Remote host closed the connection]
atmosx has joined #ruby
soheil has joined #ruby
<nhmood> If I am storing a portion of an array to a new var (new_var = old_array[5..-1]) does it return those values or does it just store a reference to the original array
timonv has quit [Remote host closed the connection]
Kar- has quit [Ping timeout: 240 seconds]
<nhmood> aka, if I perform some operations on the new array, does it affect the original array?
kyle__ has quit [Ping timeout: 248 seconds]
<canton7> try it and see!
mj12albert has joined #ruby
<apeiros> nhmood: it returns a new array.
<nhmood> hmmm ok, I would imagine it would but the behavior I'm seeing is different
<apeiros> nhmood: implementation detail: under the hood, MRI (other runtimes may be different) only really copies the VALUEs when one of the two arrays changes (Copy-On-Write -> COW)
<nhmood> I just wanted to make sure it wasn't some array behavior I wasn't aware of
<apeiros> nhmood: a new array does not mean it makes a deep copy, mind you.
<apeiros> the objects *in* the array are still the same.
<canton7> pastie a reproducible example?
<volty> >> a = (1..9).to_a; b = a[5..-1]; [a.__id__, b.__id__] # whenever doubts if reference
<eval-in> volty => [540305570, 540305550] (https://eval.in/54480)
<habstinat> My problem is now on Reddit if you want to give a more detailed response: <http://www.reddit.com/r/ruby/comments/1ofs3q/>
brennanMKE has quit [Remote host closed the connection]
jerius has quit [Ping timeout: 260 seconds]
<nhmood> apeiros: By deep copy you mean if there is a Hash it only copies the reference and not a new copy of the Hash itself
<nhmood> ?
orien has quit [Quit: Computer has gone to sleep.]
<apeiros> habstinat: eh, if you're new to ruby, choosing a >5y old version of it which is end-of-lined is not a good choice IMO
gyre007 has quit [Remote host closed the connection]
<apeiros> habstinat: get yourself ruby 2, not 1.8. or at the very least 1.9
Trudko has joined #ruby
heftig has joined #ruby
mengu has quit [Remote host closed the connection]
<Trudko> hi guys I am array of objects with attribute points I user sort by this attribute but this attribute can be nil how to handle that?
<apeiros> nhmood: try not to think in references. it's objects. it's the same object, yes. it doesn't copy it.
<apeiros> nhmood: true for all kinds of objects
<canton7> habanany, his thin/thin.yml is passing an option to thin (wait: 30) which thin doesn't like
<Trudko> code @league_teams.sort_by! {|t| [-t.total_points_with_bonus, -t.score] }
<havenwood> habstinat: 1.8 is dead, dead, dead. Don't touch it! Most recent stable (2.0.0-p247) is where to be (unless you're on 64-bit Win)!
mengu has joined #ruby
RichardBaker has left #ruby [#ruby]
<apeiros> >> a = ["foo", "bar", "baz"]; b = a[1,2]; a[2].upcase!; b
<eval-in> apeiros => ["bar", "BAZ"] (https://eval.in/54481)
<apeiros> those are two different arrays, but they contain the same objects.
<apeiros> when you change an object, it's reflected everywhere where you use that object.
mengu has quit [Read error: No route to host]
<apeiros> havenwood: what's up with ruby2 and 64bit win?
graydot has quit [Quit: graydot]
graft is now known as Guest67300
dhruvasagar has quit [Ping timeout: 245 seconds]
<havenwood> apeiros: can't build nokogiri is the big one
workmad3 has quit [Ping timeout: 240 seconds]
<apeiros> havenwood: ugh
blaxter has quit [Ping timeout: 272 seconds]
<canton7> havenwood, as the latest version of thin accepts --wait, I think you're using an old version of thin
<canton7> oops, wrong nick
<havenwood> apeiros: issue still open: https://github.com/sparklemotion/nokogiri/issues/864
<canton7> habstinat, ^^
monkegjinni has quit [Remote host closed the connection]
ewnd9 has quit [Ping timeout: 272 seconds]
<canton7> habstinat, what version of thin are you using?
<havenwood> apeiros: the 'bounty' is at $30 >.>
<apeiros> lol
<apeiros> and somebody say *nix users were cheap…
monkegjinni has joined #ruby
a1ph4g33k has joined #ruby
<canton7> $45 now...
maletor has joined #ruby
vborja has joined #ruby
uokesita_ has joined #ruby
blackmesa has joined #ruby
RichardBaker has joined #ruby
einarj has quit [Remote host closed the connection]
jonahR has quit [Quit: jonahR]
<canton7> habanany, ...?
priyam__ is now known as priyam_
monkegjinni has quit [Ping timeout: 240 seconds]
maycon has quit [Quit: Saindo]
superscott[8] has joined #ruby
r0bgleeson has quit [Ping timeout: 264 seconds]
kobain has joined #ruby
dangerousdave has joined #ruby
mobileblue has quit [Read error: Connection reset by peer]
<habstinat> canton7: OK, that just happened to be the version packaged by my distro but I can backport 2.0. I'm using thin 1.2.4.
<Trudko> hi guys I am array of objects with attribute points I user sort by this attribute but this attribute can be nil how to handle that? code @league_teams.sort_by! {|t| [-t.total_points_with_bonus, -t.score] }
atno has quit [Remote host closed the connection]
ferdev has joined #ruby
<fenec2> hoelzro, thanks it was very helpful
s2013 has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
vince_prignano has quit []
zeade has joined #ruby
<canton7> habstinat, sounds old. 'gem update'
<canton7> assuming gem is managing your system gems. if debian is managing them, fsg help us all
nathancahill has joined #ruby
Ox6abe has quit [Remote host closed the connection]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Tearan has quit [Quit: Sleepy Badger....]
uokesita_ has quit [Quit: This computer has gone to sleep]
zeade has quit [Client Quit]
zeade has joined #ruby
Tearan has joined #ruby
Guest48528 has quit [Quit: Leaving...]
jprovazn has joined #ruby
b00stfr3ak has quit [Ping timeout: 268 seconds]
rickmasta has joined #ruby
buibex_ has quit [Remote host closed the connection]
pixelgremlins has joined #ruby
buibex has joined #ruby
r0bgleeson has joined #ruby
bricker`away is now known as bricker
BraddPitt has quit [Ping timeout: 245 seconds]
tjbarber has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
peterhu has joined #ruby
BraddPitt has joined #ruby
Mars` has joined #ruby
iamjarvo_ has joined #ruby
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
iamjarvo_ has quit [Remote host closed the connection]
colonolGron has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
buibex has quit [Ping timeout: 246 seconds]
iamjarvo has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
petey has joined #ruby
interactionjaxsn has joined #ruby
rdark has quit [Quit: leaving]
someish has joined #ruby
mobileblue has joined #ruby
theRoUS has quit [Ping timeout: 240 seconds]
atSetKey has joined #ruby
Ox6abe has joined #ruby
ferdev has quit [Quit: ferdev]
drusepth has joined #ruby
interactionjaxsn has quit [Ping timeout: 240 seconds]
tjad has joined #ruby
robert_ has joined #ruby
obs has quit [Quit: ChatZilla 0.9.87 [Iceape 2.7.12/20130119095535]]
atSetKey has quit [Ping timeout: 272 seconds]
jaynewstrom has joined #ruby
adlerdias has joined #ruby
rezzack has joined #ruby
marcdel has joined #ruby
lfox has joined #ruby
kilophoton has joined #ruby
k610 has joined #ruby
w3pm has quit [Quit: Leaving]
carlyle has joined #ruby
Zai00 has joined #ruby
ique has joined #ruby
w3pm has joined #ruby
sumark_ is now known as sumark
bean__ has joined #ruby
danman has joined #ruby
endash has joined #ruby
semahawk has left #ruby [#ruby]
kilophoton has quit [Remote host closed the connection]
atno has joined #ruby
carlyle has quit [Ping timeout: 245 seconds]
carlyle has joined #ruby
simplex_ has joined #ruby
<bricker> Can someone explain this behavior for me? https://gist.github.com/bricker/6979707
<apeiros> ugh
gmas has joined #ruby
jerius has joined #ruby
<apeiros> *sob*, I think keyword args weren't well thought through when introduced :-/
arietis has quit [Quit: Computer has gone to sleep.]
<apeiros> I'd bring that up in the ML
<apeiros> @ bricker
<habstinat> canton7: I was previously using debian to manage my gems, but I've now installed rubygems and am doing a gem update now.
astrobun_ has quit [Ping timeout: 240 seconds]
tjbarber has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
rektide has joined #ruby
<bricker> apeiros: thanks
<Hanmac> bricker use **params
<rektide> hi. i'm trying to install and use a ruby gem locally. i'm not sure what additional steps I need besides specifying a GEM_HOME, which I've done. example attempt: http://pastebin.com/3TSjwcum
uokesita_ has joined #ruby
zachrab has quit [Remote host closed the connection]
zachrab has joined #ruby
vborja has left #ruby [#ruby]
astrobunny has joined #ruby
Kar- has joined #ruby
ique has quit [Ping timeout: 265 seconds]
adkron has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
mando has quit [Remote host closed the connection]
mando has joined #ruby
krz has quit [Quit: krz]
<rektide> ah the -i is bad now that i have a GEM_HOME. i think.
djbender has quit [Quit: djbender]
<shevy> rektide did you install sass
<rektide> the -i was a previous attempt at local gem installs
<shevy> or rather, where is it :D
<rektide> shevy: i would really appreciate it if you would check out the pastebin i put up and tell me
<rektide> shevy: my guess is yes but i dunno
ique has joined #ruby
vpretzel has joined #ruby
<rektide> there somes to be some dissention in the runtime over that question
zachrab has quit [Ping timeout: 240 seconds]
T_T has joined #ruby
boxmein has joined #ruby
interactionjaxsn has joined #ruby
johnnyfuchs has quit [Quit: Leaving.]
r0bby_ has quit [Read error: Connection reset by peer]
<shevy> I see output but I would not trust the output alone
<waxjar> what do you guys think of this (https://gist.github.com/britishtea/6979731), kinda neat or pretty dumb?
Mars` has quit [Remote host closed the connection]
Mars` has joined #ruby
<shevy> rektide "gem env", "gem -v", and what content does "/opt/ghost-git/gems" have?
bean__ has quit [Quit: Computer has gone to sleep.]
<shevy> rektide because my guess would be no right now :D
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
abhishek77in has quit [Quit: Page closed]
<rektide> GEM_HOME=/opt/ghost-git/gems env|grep ghost
<rektide> GEM_HOME=/opt/ghost-git/gems
<shevy> so what is the content
vpretzel has quit [Remote host closed the connection]
mando has quit [Ping timeout: 265 seconds]
<shevy> "gem list"
vpretzel has joined #ruby
<shevy> my gems are in /Programs/Ruby/Current/lib/ruby/gems/1.9.1/gems/, there are 87 gems there, all are found by ruby gems. gem version is 2.1.7, ruby version is 1.9.3something
robbyoconnor has joined #ruby
<canton7> habstinat, coolies
<rektide> oh good question. i've updated the pastebin to ls * the results, showing the contents: http://pastebin.com/5HHS7Sfm
<shevy> waxjar I am not sure what to do with that... what is pattern matching used for? I mean, the way you did there, it seems complex
<shevy> rektide when you run "gem env", does the path /opt/ghost-git/gems show up?
<shevy> under GEM PATHS it should be shown
<rektide> yes it's in my GEM_PATHS
Mars` has quit [Ping timeout: 272 seconds]
terrellt has quit [Ping timeout: 264 seconds]
<waxjar> shevy, it's basically a way to have different behaviour depending on the arguments that are passed to a method
blackmesa has quit [Ping timeout: 240 seconds]
rgbdev has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Kar- has quit [Remote host closed the connection]
bean__ has joined #ruby
elaptics is now known as elaptics`away
marcdel has joined #ruby
T_T has quit [Read error: Connection reset by peer]
T_T has joined #ruby
mikeric has joined #ruby
jerius has quit []
kevinykchan has quit [Ping timeout: 240 seconds]
mercwith1mouth has joined #ruby
byprdct has joined #ruby
uokesita_ has quit [Quit: Leaving]
kevinykchan has joined #ruby
SilverKey has quit [Quit: Sleep now]
CreativeEmbassy has joined #ruby
fayimora has quit [Quit: zzzzz...]
Monie has joined #ruby
petey has quit [Remote host closed the connection]
someish has quit [Quit: someish]
petey has joined #ruby
mando has joined #ruby
buibex has joined #ruby
timonv has joined #ruby
blackmesa has joined #ruby
zarubin has quit [Ping timeout: 256 seconds]
pen has joined #ruby
Notte has joined #ruby
buibex has quit [Remote host closed the connection]
buibex has joined #ruby
alvaro_o has joined #ruby
djbender has joined #ruby
teapop has joined #ruby
varfoo has quit [Quit: WeeChat 0.4.0]
jerius has joined #ruby
buibex has quit [Read error: No route to host]
johnnyfuchs has joined #ruby
petey has quit [Ping timeout: 272 seconds]
drusepth has quit [Ping timeout: 272 seconds]
einarj has joined #ruby
<shevy> rektide hmm ... can you try to install any other gem into that dir, and see if you can load this gem from within irb?
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rickmasta has quit [Quit: Leaving...]
breakingthings has quit []
r0bgleeson has quit [Ping timeout: 240 seconds]
<shevy> hanmac sorry, this part of the world is totally lost on me
<shevy> but it's creepy what kind of cartoons you find :\
djbender has quit [Client Quit]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
petey has joined #ruby
someish has joined #ruby
breakingthings has joined #ruby
starfox21 has quit [Quit: starfox21]
nwertman_ has joined #ruby
pushpak has joined #ruby
terrellt has joined #ruby
aspires has quit [Quit: aspires]
ephemerian has joined #ruby
r0bgleeson has joined #ruby
teapop_ has joined #ruby
Guest15969 has quit [Ping timeout: 260 seconds]
<shevy> not only that
einarj has quit [Ping timeout: 265 seconds]
<shevy> all those strange things from the months before
<shevy> I can not even visually remember it :(
thesheff17 has quit [Quit: Leaving]
<shevy> when I was young, an elderly lady had a huge collection of Walt Disney movies. so I was formed by these things
byprdct has quit [Read error: Connection reset by peer]
<pushpak> did u steal het collections by any chance ?
teapop_ has quit [Read error: Connection reset by peer]
<pushpak> sher*
aspires has joined #ruby
thesheff17 has joined #ruby
<Hanmac> did you know there is a "Lord of the Rings" cartoon Movie? …
atSetKey has joined #ruby
pencilcheck has joined #ruby
teapop_ has joined #ruby
nwertman_ has quit [Quit: Lost terminal]
<pushpak> nope but i do know there is "The Hobbit" porn movies
pen has quit [Read error: Connection reset by peer]
nwertman_ has joined #ruby
<Hanmac> there is a cartoon movie … but i think its older than i ;D
teapop has quit [Ping timeout: 240 seconds]
CreativeEmbassy has joined #ruby
<terrellt> Came out in 1978.
pen has joined #ruby
zigomir has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
jibi has joined #ruby
BizarreCake has quit [Ping timeout: 245 seconds]
relix has joined #ruby
<Hanmac> yeah i was right … its 10j older than i
relix has quit [Max SendQ exceeded]
rickmasta has joined #ruby
mogle has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
Ox6abe has quit [Remote host closed the connection]
Ox6abe has joined #ruby
adkron has quit [Ping timeout: 268 seconds]
atSetKey has quit [Ping timeout: 264 seconds]
pencilcheck has quit [Ping timeout: 272 seconds]
weSpe is now known as Wasp
nwertman has quit [Quit: leaving]
wildroman has quit [Remote host closed the connection]
nwertman_ has quit [Quit: leaving]
nwertman has joined #ruby
relix has joined #ruby
nomenkun has joined #ruby
Ox6abe has quit [Ping timeout: 240 seconds]
<shevy> pushpak I hate the hobbits so much, when they jumped on the bed, I wanted to murder them all
<shevy> hanmac hmm I think so... the old one was actually better than the new ones :D
tomzx_mac_ has joined #ruby
<shevy> today movies technology and philosophy is ... create a generic template for an "orc" or a "troll", clone this 100.000 with CGI effects, call this an "epic battle". Profit!!!
zastern_ has joined #ruby
tomzx_mac has quit [Ping timeout: 260 seconds]
Davey has joined #ruby
SHyx0rmZ has joined #ruby
Azulinho_ has joined #ruby
<Hanmac> hm i want to watch some kind of action film what "really" suprise me … in most of them you know already what will happen
tsykoduk is now known as zz_tsykoduk
<shevy> because the target audience must be kept dumb
Eaven has joined #ruby
zarubin has joined #ruby
Azulinho has quit [Ping timeout: 240 seconds]
wildroman has joined #ruby
<Hanmac> shevy: yeah like in ExcelSaga … where the main char dies after 5 minutes of the first episode … and then was revited with the words "Excel you cant die! you are important for the Plot!"
zastern has quit [Ping timeout: 272 seconds]
DanKnox is now known as DanKnox_away
zastern_ has quit [Ping timeout: 268 seconds]
djbender has joined #ruby
wudofyr has quit [Ping timeout: 272 seconds]
Beoran has quit [Read error: Operation timed out]
pirelenito has joined #ruby
xk_id has quit [Quit:
tvw has joined #ruby
Beoran has joined #ruby
pumper has quit [Remote host closed the connection]
habanany has quit [Ping timeout: 245 seconds]
beneggett has joined #ruby
aspiers has joined #ruby
schaerli has joined #ruby
heidi has quit [Quit: Leaving.]
heidi has joined #ruby
brunoro has joined #ruby
heidi has quit [Client Quit]
pirelenito has quit [Client Quit]
adkron has joined #ruby
mogle has quit [Remote host closed the connection]
adkron has left #ruby [#ruby]
rickmasta has quit [Quit: Leaving...]
RichardBaker has joined #ruby
fayimora has joined #ruby
scottstamp has quit [Quit: Au revoir!]
scottstamp has joined #ruby
scottstamp has quit [Client Quit]
scottstamp has joined #ruby
NinjaPenguin has quit [Ping timeout: 272 seconds]
scottstamp has quit [Read error: Connection reset by peer]
scottstamp has joined #ruby
heidi has joined #ruby
djbender has quit [Quit: djbender]
marcdel has joined #ruby
loj has joined #ruby
loj has left #ruby [#ruby]
djbender has joined #ruby
kindjal has joined #ruby
simplex_ has quit [Quit: simplex_]
rickmasta has joined #ruby
nathancahill has quit [Quit: nathancahill]
wudofyr has joined #ruby
Mitchell_ has joined #ruby
Mitchellvanw has quit [Ping timeout: 240 seconds]
Ox6abe has joined #ruby
jrhe has quit [Quit: jrhe]
Mitchell_ is now known as Mitchellvanw
someish has quit [Quit: someish]
jlebrech has joined #ruby
teapop_ has quit [Remote host closed the connection]
colonolGron has quit [Ping timeout: 240 seconds]
teapop has joined #ruby
jrhe has joined #ruby
tpayne84 has joined #ruby
lfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ph88 has joined #ruby
colonolGron has joined #ruby
<ph88> hi i installed heroku with ruby and foreman ... when i try to run foreman i get Bad file descriptor how can i reinstall foreman ?
Zolo has quit [Remote host closed the connection]
Zolo has joined #ruby
<havenwood> ph88: gem uninstall forman && gem install forman
<ph88> INFO: gem "forman" is not installed
<ph88> i will try foreman
clov3r has joined #ruby
<ph88> Remove executables: foreman in addition to the gem? [Yn] what should i answer here ?
<havenwood> yes
<ph88> Successfully uninstalled foreman-0.63.0
<havenwood> yeah, i mispelled >.>
scottstamp has quit [Read error: Connection reset by peer]
<ph88> oh this version doesnt work
scottstamp has joined #ruby
<ph88> how can i try 0.61 ?
<havenwood> gem install foreman -v 0.61
<ph88> works now ! (that means ... different error)
nyuszika7h has left #ruby ["WeeChat 0.4.3-dev"]
<havenwood> ph88: Do you have a file called `Gemfile` in the project root directory?
<ph88> no
<havenwood> ph88: ahh, kk. A Gemfile is typical, then you run `bundle` instead of manually resolving dependencies
<ph88> oh ok i didnt know that
* Hanmac can live without Gemfile
zz_tsykoduk is now known as tsykoduk
Xeago has joined #ruby
<ph88> it's a node.js app and i downloaded the heroku toolbelt
ferdev has joined #ruby
michael_mbp is now known as zz_michael_mbp
Zolo has quit [Ping timeout: 272 seconds]
<ph88> that's so crazy, i now have python2.7, python 3.3 , php 5.5.4, ruby and node.js installed -___-
Soda has joined #ruby
<ph88> 21:45:40 web.1 | exited with code 3 21:45:40 system | sending SIGKILL to all processes what should i do about this ? is this ruby/foreman or node.js stuff ?
leonidlm has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
robustus has quit [Read error: Connection reset by peer]
heidi has quit [Quit: Leaving.]
Soda has quit [Read error: Operation timed out]
mark_locklear has quit [Ping timeout: 245 seconds]
<havenwood> ph88: i blame node, dunno :P
brennanMKE has joined #ruby
<ph88> ok thx a lot havenwood !
decoponio has quit [Quit: Leaving...]
Soda has joined #ruby
djbender has quit [Quit: djbender]
maycon has joined #ruby
xk_id has joined #ruby
valesk has quit [Quit: Leaving]
robustus has joined #ruby
burlyscudd has quit [Read error: Connection reset by peer]
burlyscudd1 has joined #ruby
Ox6abe_ has joined #ruby
Speed has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zastern has joined #ruby
inimit has joined #ruby
skaflem has quit [Quit: Leaving]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
benweint has joined #ruby
Ox6abe has quit [Ping timeout: 268 seconds]
barratt has joined #ruby
barratt has quit [Remote host closed the connection]
djbender has joined #ruby
deception has joined #ruby
johnnyfuchs has quit [Quit: Leaving.]
rubyracer has joined #ruby
benweint has quit [Client Quit]
adlerdias has quit [Quit: Leaving]
astrobunny has quit [Ping timeout: 240 seconds]
newton has quit [Changing host]
newton has joined #ruby
zastern has quit [Remote host closed the connection]
petey has quit [Remote host closed the connection]
petey has joined #ruby
ghr has joined #ruby
heidi has joined #ruby
carlyle has quit [Read error: Connection reset by peer]
Jdubs has quit [Remote host closed the connection]
simplex_ has joined #ruby
Jdubs has joined #ruby
DaZ has quit [Quit: ZNC - http://znc.in]
havenwood has quit [Remote host closed the connection]
maycon has quit [Read error: Connection reset by peer]
Eaven has quit [Remote host closed the connection]
DaZ has joined #ruby
atSetKey has joined #ruby
burlyscudd1 has quit [Quit: Leaving.]
astrobunny has joined #ruby
petey_ has joined #ruby
petey has quit [Read error: Connection reset by peer]
ique has quit [Quit: ique]
Jdubs has quit [Ping timeout: 240 seconds]
lfox has joined #ruby
SilverKey has joined #ruby
DanKnox_away is now known as DanKnox
sambao21 has quit [Ping timeout: 272 seconds]
qubit has quit [Ping timeout: 268 seconds]
Mars` has joined #ruby
atSetKey has quit [Ping timeout: 272 seconds]
xk_id has quit [Quit:
g3orge has quit [Quit: leaving]
atSetKey has joined #ruby
Mars` has quit [Read error: Connection reset by peer]
Mars` has joined #ruby
tgandrews has joined #ruby
astrobunny has quit [Ping timeout: 264 seconds]
burlyscudd has joined #ruby
dyogenez has joined #ruby
SHyx0rmZ has joined #ruby
maletor has joined #ruby
dyogenez is now known as adamfortuna
nathancahill has joined #ruby
Jayflux has joined #ruby
<Jayflux> what does the g stand for in gsub?
carraroj has joined #ruby
<bean__> global
Jdubs has joined #ruby
aspires has quit [Quit: aspires]
sambao21 has joined #ruby
<Jayflux> Thanks
Mitchellvanw has quit [Quit: Quiting like a baws]
Hanmac has quit [Quit: Leaving.]
djbender has quit [Quit: djbender]
carraroj has quit [Client Quit]
astrobunny has joined #ruby
aspires has joined #ruby
cody-- has quit [Quit: derp]
staafl has joined #ruby
seoNinjaWarrior has quit [Quit: Textual IRC Client: www.textualapp.com]
jibi has quit [Read error: Operation timed out]
Mars` has quit [Ping timeout: 272 seconds]
benweint has joined #ruby
Mars` has joined #ruby
schaerli has quit [Remote host closed the connection]
<a1ph4g33k> good afternoon folks.
_emptymag00 is now known as rclements
danman has quit [Quit: danman]
yalue has quit [Quit: Leaving]
devoldmx has quit [Ping timeout: 252 seconds]
<Jayflux> hi a1ph4g33k
Naoe-Kanno has joined #ruby
mityaz has quit [Quit: See ya!]
SHyx0rmZ has quit [Ping timeout: 268 seconds]
timonv has quit [Remote host closed the connection]
motto has joined #ruby
timonv has joined #ruby
lethjakman has joined #ruby
marcdel has joined #ruby
<lethjakman> hey, I'm having troubles with rbenv, it doesn't seem to be setting the path.
<lethjakman> anyone have any ideas what could be up?
<lethjakman> it's installed to $HOME/.rbenv/versions/2.0.0-rc2, and the ruby is there
m8 has quit [Ping timeout: 240 seconds]
jkamenik has quit [Quit: Leaving.]
|PiP|_ has joined #ruby
v0n has quit [Ping timeout: 248 seconds]
SilverKey has quit [Quit: Cheers]
aapzak has quit [Read error: Connection reset by peer]
random0munky_ has joined #ruby
Amnesia has quit [Quit: Changing server]
leonidlm has quit [Quit: Leaving]
soba__ has quit [Read error: Connection reset by peer]
iamjarvo_ has joined #ruby
timonv has quit [Ping timeout: 272 seconds]
<random0munky_> I need some help with `update': undefined method `update' NoMethodError. Is this the correct place to ask?
dash_ has quit [Quit: dash_]
<bean__> random0munky_: what code is causing that
<random0munky_> Hi bean__ thanks for answering. This is a rb file called metrics.rb (this is for a graphite frontend) I have posted this question on stackoverflow.com here: http://stackoverflow.com/questions/667711/what-are-the-most-active-ruby-forums-blogs-on-the-web which I have links to the code and error message
<random0munky_> I'm sorry that's the wrong linke. Here is the correct link: http://stackoverflow.com/questions/19328869/ruby-undefined-method-update
iamjarvo has quit [Ping timeout: 272 seconds]
AxonetBE has joined #ruby
iamjarvo_ has quit [Ping timeout: 272 seconds]
aapzak has joined #ruby
geekbri has quit [Remote host closed the connection]
sts has joined #ruby
Jdubs has quit [Remote host closed the connection]
nazty has joined #ruby
<bean__> so its running stock code, or you added something to it, random0munky_ ?
<sts> hello folks. is there a way to somehow override this variable, without forking the gem? :-) https://github.com/twitter/twitter-text-rb/blob/master/lib/twitter-text/autolink.rb#L20
carlyle has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<random0munky_> @bean__ For stock code, do you mean that I didn't alter anything after I did rvm install 1.9.3 and bundle install
<bean__> yes
<random0munky_> No I didn't alter anything
tgandrews has quit [Remote host closed the connection]
<random0munky_> I have also tried doing an rvm reinstall 1.9.3 but nothing changed
Lewix has joined #ruby
Lewix has quit [Changing host]
Ox6abe_ has quit [Remote host closed the connection]
Lewix has joined #ruby
Ox6abe has joined #ruby
<bean__> random0munky_: I'm likely going to be of no help then.
v0n has joined #ruby
<random0munky_> No worries. Thanks for trying to help though. Do you happen to know anyone in the chat room or any forum / place I can re-post the question to see about getting this resolved?
<bean__> I'd probably contact the author of the code.
<random0munky_> Ah okay. It's interesting that other people are able to get it to run.
claymore has quit [Quit: night]
<random0munky_> As well as the author
zachrab_ has joined #ruby
mikeric has quit []
workmad3 has joined #ruby
Jdubs has joined #ruby
cody-- has joined #ruby
maz-dev has quit [Remote host closed the connection]
ehaliewicz has joined #ruby
Ox6abe_ has joined #ruby
<bean__> they probably did something different
<bean__> not sure
<bean__> so, random0munky_, you say its line 28… but line 28 is just response = request.get
<bean__> line 30 is where it calls .update
Mars` has quit [Remote host closed the connection]
<random0munky_> Hmm that is interesting. When I do a foreman start it says line 28. Let me double check that the version of the code is the same as it is that I linked
Mars` has joined #ruby
Hanmac has joined #ruby
<RubyPanther> random0munky_: I do see in the error the class is MetricCacheInfo but the update method I see is on class Metric
Ox6abe has quit [Ping timeout: 272 seconds]
alekst has joined #ruby
braoru has joined #ruby
petey_ has quit [Remote host closed the connection]
Ox6abe_ has quit [Remote host closed the connection]
<random0munky_> Yea it looks like my metrics.rb is totally different
<random0munky_> this is how my version looks:: def self.update u = URI.parse(ENV['GRAPHITE_URL']) if (!ENV['GRAPHITE_USER'].empty? && !ENV['GRAPHITE_PASS'].empty?) u.user = ENV['GRAPHITE_USER'] u.password = ENV['GRAPHITE_PASS'] end response = RestClient.get("#{u.to_s}/metrics/index.json") @@paths = JSON.parse(response) MetricCacheInfo.update end end class MetricCacheInfo < Sequel::Model def update sup
<random0munky_> oops
<random0munky_> hmm
Mars`_ has joined #ruby
mikecmpbll has joined #ruby
<random0munky_> response = RestClient.get("#{u.to_s}/metrics/index.json") @@paths = JSON.parse(response) MetricCacheInfo.update
petey has joined #ruby
Mars` has quit [Read error: Connection reset by peer]
<random0munky_> darn not able to paste in code
xk_id has joined #ruby
petey has quit [Read error: Connection reset by peer]
petey has joined #ruby
johnnyfuchs has joined #ruby
<RubyPanther> and in general looking at this package... yikes! in a model, it reopens NilClass to add an empty method_missing. I would say the code is a WTF and not to use it.
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
<random0munky_> haha interesting how I've read that this author outputs good 'solid' code
thumpba has quit [Quit: thumpba]
<apeiros> RubyPanther: oh wow, seriously, wtf…
baroquebobcat has quit [Quit: baroquebobcat]
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
phantasm66 has quit [Quit: *sleeeep….]
<apeiros> that's indeed awful
<RubyPanther> I'm sure all of his code that isn't iffy is very solid. Perhaps this package does not meet his usual standards...
<apeiros> lets hope so…
jprovazn has quit [Quit: Odcházím]
maletor has quit [Quit: Computer has gone to sleep.]
<random0munky_> Well.. he did mention that this frontend isn't even in alpha stage but still, you would think that he would write solid code from the beginning
<apeiros> he does the NilClass monkey patch in every file in this package, though
Hanmac has quit [Ping timeout: 260 seconds]
baroquebobcat has joined #ruby
zz_michael_mbp is now known as michael_mbp
Bry8Star{T2 has joined #ruby
<apeiros> also defining empty superclasses instead of just requiring it? o0
<RubyPanther> it seems like by the 2nd or 3rd one, you'd just add an init somewhere
vpretzel has quit [Remote host closed the connection]
<RubyPanther> I'm guessing he did it this way to avoid coupling
<apeiros> directly accessing env vars in the middle of the library is also rather icky
beneggett has joined #ruby
kaspergrubbe has joined #ruby
DeanH has joined #ruby
ferdev has quit [Quit: ferdev]
sambao21 has quit [Quit: Computer has gone to sleep.]
bradleyprice has joined #ruby
<apeiros> well, `class Sequel::Model` is quite specific. I don't see how `require 'sequel/model'` could increase coupling
IceyEC has left #ruby [#ruby]
<apeiros> unless sequel/model is itself written in an icky way which requires load order or some other mess.
bradleyprice has quit [Remote host closed the connection]
<apeiros> ah well…
bradleyprice has joined #ruby
* apeiros goes back to writing shitty C code (shitty not because of C but because I'm still a n00b at it…)
IceyEC has joined #ruby
Notte has quit [Remote host closed the connection]
<random0munky_> =)
<workmad3> apeiros: mmm, buffer overflows
<apeiros> workmad3: strlcat to the rescue!
* RubyPanther goes back to leaning on his C libraries so he doesn't need to learn C
deception has quit [Quit: Goodbye]
Mitchellvanw has joined #ruby
<a1ph4g33k> bean__, There is no class method "update" on Sequel::Model
wildroman has quit [Remote host closed the connection]
<random0munky_> a1ph4g33k: oh?
<bean__> yar
<a1ph4g33k> There is an instance method ... not a class method
Ox6abe has joined #ruby
<a1ph4g33k> oh ... sorry ... that should have been to random0munky_
aryaching has quit [Ping timeout: 265 seconds]
<a1ph4g33k> got lost in the chat history.
beneggett has quit [Quit: Textual IRC Client: www.textualapp.com]
T_T has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
<random0munky_> Ah no worries I got it. To be honest, I don't know how to write a lick of ruby. Just have experience with python and bash
kaldrenon has quit [Remote host closed the connection]
IceyEC has quit [Quit: IceyEC]
<a1ph4g33k> so ... normally, you will have your controller do a find on the instance you want to work with ... and then you will call update on that instance.
kaldrenon has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
<a1ph4g33k> A global function doesn't make sense in this context.
<a1ph4g33k> ... but no worries.
<a1ph4g33k> just letting you know why your code ( on line #30 ) is breaking.
<random0munky_> Ah thanks. I'm posting an issue to the author on github about this issue
lfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gyzmodo has quit []
<random0munky_> Would it be okay to copy some of the chat history here with your username?
<random0munky_> Just asking for your consent
forced_request has joined #ruby
<a1ph4g33k> So ... again... something like MetricCacheStatus.find( ... ).update( ... ) would work.
<a1ph4g33k> Fine with me.
<random0munky_> Cool
sambao21 has joined #ruby
<a1ph4g33k> now, if you only have 1 record in that table ... you could also just do: MetricCacheState.first.update( ... )
clov3r has quit [Remote host closed the connection]
kaldrenon has quit [Ping timeout: 245 seconds]
clov3r has joined #ruby
braoru has quit [Ping timeout: 246 seconds]
<random0munky_> Ah
yourmysin has quit [Ping timeout: 265 seconds]
jibi has joined #ruby
boxmein has quit [Ping timeout: 268 seconds]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
simplex_ has quit [Quit: simplex_]
mixel has joined #ruby
momomomomo has joined #ruby
zachrab_ has quit [Read error: Connection reset by peer]
<random0munky_> a1ph4g33k: Thanks for your help as well as bean__ too.
zachrab has joined #ruby
<bean__> np
<bean__> sorry i was less than helpful
<a1ph4g33k> glad to help
<random0munky_> No worries at all. I have no idea wth I'm doing. Just bashing keys on ze keyboard
Elhu has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
clov3r has quit [Ping timeout: 246 seconds]
kpshek has quit []
sambao21 has joined #ruby
zigomir has quit [Ping timeout: 260 seconds]
NicolasTarzia has joined #ruby
thumpba has joined #ruby
petey has quit [Remote host closed the connection]
lfox has joined #ruby
petey has joined #ruby
maz-dev has joined #ruby
petey has quit [Read error: Connection reset by peer]
ravster has joined #ruby
petey has joined #ruby
alex__c2022 has joined #ruby
superscott[8] has quit [Quit: superscott[8]]
<random0munky_> Whelp, I'm going to close this window. Thanks again a1ph4g33k and beans. If I need some more resolutions over "solid" code, I'll come back
<random0munky_> =)
kirun has quit [Quit: Client exiting]
roadt_ has quit [Ping timeout: 272 seconds]
kindjal has quit [Ping timeout: 268 seconds]
random0munky_ has quit [Quit: Page closed]
braoru has joined #ruby
jonathanwallace has quit [Read error: Operation timed out]
Hanmac has joined #ruby
ndrei has joined #ruby
braoru has quit [Read error: Connection reset by peer]
ph88 has quit [Quit: Page closed]
|PiP|_ has quit [Ping timeout: 240 seconds]
kindjal has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
cody-- has quit [Quit: derp]
jaylingo has joined #ruby
nomenkun has quit [Remote host closed the connection]
jaylingo has quit [Quit: Lingo - http://www.lingoirc.com]
|PiP|_ has joined #ruby
SloggerKhan has joined #ruby
<SloggerKhan> if I have class A with def self.x and class B < A with def self.x, and a method def y in class A, how can I be sure that if called from B it refers to B's version of self.x instead of a's (inside of def y)?
larissa has joined #ruby
<RubyPanther> SloggerKhan: you shouldn't
brennanMKE has quit [Remote host closed the connection]
alex__c2022 has quit [Quit: alex__c2022]
brennanMKE has joined #ruby
<SloggerKhan> So it's not like I wanted to end up in that situation.
brennanMKE has quit [Read error: Connection reset by peer]
ssmithstone has joined #ruby
ace_striker has joined #ruby
brennanMKE has joined #ruby
jbpros has joined #ruby
aspiers has quit [Ping timeout: 246 seconds]
|PiP|_ has quit [Ping timeout: 264 seconds]
<MrZYX> self.class.x
<RubyPanther> in the debugging situation I just add a puts to find out if I got where I wanted to go. But usually that sort question is where somebody wants to know about how the package using the code is using it, in which case the problem is in the caring about it
<SloggerKhan> Big thanks! I agree that it's a messed up structure.
Elhu has quit [Quit: Computer has gone to sleep.]
thumpba has quit [Quit: thumpba]
<SloggerKhan> Alternatives seem likely to have a disproportionate time investment at the moment.
catcher_dev has joined #ruby
justsee has quit [Quit: leaving]
fayimora has quit [Ping timeout: 265 seconds]
Taranis has quit [Remote host closed the connection]
b00stfr3ak has joined #ruby
fayimora has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
stefff has quit [Read error: Operation timed out]
Hanmac has quit [Ping timeout: 245 seconds]
petey has quit [Remote host closed the connection]
petey has joined #ruby
astrobunny has quit [Ping timeout: 245 seconds]
stefff has joined #ruby
MrZYX is now known as MrZYX|off
clov3r has joined #ruby
ace_striker has quit [Ping timeout: 250 seconds]
catcher_dev has quit [Quit: Leaving]
mmitchel_ has joined #ruby
glaksmono has joined #ruby
<glaksmono> ruby is by default pass by reference for object?
petey_ has joined #ruby
<Lewix> glaksmono: not numbers
<glaksmono> Lewix: got it
petey has quit [Read error: Connection reset by peer]
martxel has quit [Quit: WeeChat 0.4.1]
jlebrech has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
interactionjaxsn has quit [Remote host closed the connection]
mmitchell has quit [Ping timeout: 245 seconds]
<sam113101> glaksmono: everything's an object
<sam113101> so pass by reference for everything
interactionjaxsn has joined #ruby
AxonetBE has quit [Quit: AxonetBE]
RORgasm has quit [Remote host closed the connection]
aspiers has joined #ruby
<Lewix> sam113101: how do you define pass by reference
<Lewix> sam113101: not Fixnum
Ox6abe has quit [Remote host closed the connection]
astrobunny has joined #ruby
ferdev has joined #ruby
mmitchel_ has quit [Ping timeout: 272 seconds]
tjad has quit [Ping timeout: 240 seconds]
teapop has quit [Remote host closed the connection]
mfilipe has left #ruby [#ruby]
interactionjaxsn has quit [Ping timeout: 240 seconds]
clov3r has quit [Ping timeout: 265 seconds]
rgbdev has quit [Quit: rgbdev]
mikecmpbll has quit [Quit: Computer has gone to sleep.]
fomatin has joined #ruby
michael_mbp is now known as zz_michael_mbp
<volty> >> str = "12345"; def testref(s); s[0] = '*'; end; testref(str); str
<eval-in> volty => "*2345" (https://eval.in/54520)
adamfortuna has quit [Remote host closed the connection]
ravster has quit [Quit: Leaving.]
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
Zai00 has quit [Quit: Zai00]
Lewix has quit [Remote host closed the connection]
tvw has quit []
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jdenen has quit [Remote host closed the connection]
Jetchisel has joined #ruby
icemancast has quit [Quit: icemancast]
RichardBaker has quit [Quit: RichardBaker]
ferdev has quit [Quit: ferdev]
johnmilton has joined #ruby
Trudko has quit [Read error: Connection reset by peer]
colonolGron has quit [Quit: leaving]
CreativeEmbassy has joined #ruby
punkrawkR has joined #ruby
Mars`_ has quit [Read error: Connection reset by peer]
punkrawkR has quit [Client Quit]
apeiros has quit [Remote host closed the connection]
tspike has joined #ruby
maletor has joined #ruby
Mars` has joined #ruby
adambeynon has joined #ruby
apeiros has joined #ruby
kil0byte_ has joined #ruby
astrobunny has quit [Ping timeout: 245 seconds]
peregrine81 has quit []
bean__ has quit [Quit: Computer has gone to sleep.]
beilabs has quit [Ping timeout: 272 seconds]
breakingthings has quit []
fomatin has quit [Quit: Computer has gone to sleep.]
beilabs has joined #ruby
bradleyprice has quit [Remote host closed the connection]
kil0byte has quit [Read error: Operation timed out]
Guedes0 has joined #ruby
einarj has joined #ruby
tsykoduk is now known as zz_tsykoduk
steelmaiden has joined #ruby
RichardBaker has joined #ruby
<steelmaiden> anyone familiar with discourse?
<steelmaiden> need some help with it...
astrobunny has joined #ruby
mr_red has quit [Quit: Leaving.]
zz_tsykoduk is now known as tsykoduk
clov3r has joined #ruby
<terrellt> Someone !used that.
duggiefresh has quit [Ping timeout: 240 seconds]
<terrellt> Oh, wrong channel.
<terrellt> Bah.
ferdev has joined #ruby
tjbarber has quit [Quit: Textual IRC Client: www.textualapp.com]
jaynewstrom has quit [Remote host closed the connection]
twoism has quit [Read error: Connection reset by peer]
tpayne84 has quit [Ping timeout: 241 seconds]
Xeago has quit [Remote host closed the connection]
jerius has quit []
twoism has joined #ruby
motto has quit [Quit: Sto andando via]
bline79 has quit [Quit: Leaving]
jonahR has joined #ruby
tjbarber has joined #ruby
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
workmad3 has quit [Ping timeout: 272 seconds]
Speed has quit [Ping timeout: 260 seconds]
Elinos has quit [Read error: Operation timed out]
Davey has quit [Quit: Computer has gone to sleep.]
Soda has quit [Read error: Connection reset by peer]
maletor has quit [Quit: Computer has gone to sleep.]
aspires has quit [Quit: aspires]
atSetKey has quit [Remote host closed the connection]
Mitchellvanw has quit [Quit: Quiting like a baws]
geggam has quit [Remote host closed the connection]
aspires has joined #ruby
loufie has joined #ruby
aspires has quit [Client Quit]
loufie has quit [Remote host closed the connection]
mois3x_ has joined #ruby
Davey has joined #ruby
momomomomo has quit [Quit: momomomomo]
renanoronfle has quit [Quit: Leaving]
maletor has joined #ruby
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
bline79 has joined #ruby
Naoe-Kanno has quit [Quit: ネウロイを負かさなきゃならないね]
kofno has quit [Ping timeout: 240 seconds]
<steelmaiden> neeeed some heeelp :)
kaspergrubbe has quit [Remote host closed the connection]
osvico has joined #ruby
ChronocityLC has joined #ruby
atSetKey has joined #ruby
aspires has joined #ruby
kaspergrubbe has joined #ruby
monkegjinni has joined #ruby
theRoUS has quit [Ping timeout: 272 seconds]
kaspergr_ has joined #ruby
benweint has quit [Quit: Computer has gone to sleep.]
petey has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
Mars` has quit [Read error: Connection reset by peer]
benweint has joined #ruby
Mars` has joined #ruby
fomatin has joined #ruby
johnnyfuchs has quit [Quit: Leaving.]
<nemysis> :)
sts has left #ruby [#ruby]
petey_ has quit [Ping timeout: 272 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
petey has quit [Ping timeout: 260 seconds]
katsrc has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mixel has quit [Quit: mixel]
VTLob has quit [Quit: VTLob]
weems has quit [Quit: Leaving]
Hanmac has joined #ruby
duggiefresh has joined #ruby
dagnachew has joined #ruby
sambao21 has joined #ruby
justsee has quit [Quit: leaving]
BrightNewFuture has joined #ruby
justsee has joined #ruby
<BrightNewFuture> I think I understand ||= alright, but what would this do? a ||= nil
monkegjinni has quit [Remote host closed the connection]
Davey has quit [Quit: Computer has gone to sleep.]
yfeldblum has quit [Ping timeout: 260 seconds]
jb41 has quit [Ping timeout: 260 seconds]
monkegjinni has joined #ruby
<volty> a = nil if a != nil
Hanmac has quit [Ping timeout: 246 seconds]
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<volty> e.g.
Davey has joined #ruby
<RubyPanther> no, it sets foo = nil if foo == false
jlast has quit [Remote host closed the connection]
<volty> >> a = false; a ||= nil
<eval-in> volty => nil (https://eval.in/54525)
<volty> >> false != nil
<eval-in> volty => true (https://eval.in/54526)
<RubyPanther> or resets it as nil if it is already nil. But if it might be false but if it is nil or false you want it to be nil, that would be the use case.
Scientz has joined #ruby
<RubyPanther> more likely use case is foo ||= false where you don't want the nil
tspike has quit [Ping timeout: 240 seconds]
<BrightNewFuture> Yeah, I don't like this operator. :) That makes sense though. Thank you!!!!!!
monkegjinni has quit [Ping timeout: 272 seconds]
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
joshAnderson99 has joined #ruby
ewnd9 has joined #ruby
mikeric has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
peterhu has quit [Ping timeout: 245 seconds]
rubyracer has quit [Remote host closed the connection]
mixel has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
thumpba has joined #ruby
araujo has quit [Ping timeout: 245 seconds]
Ahti333_ has joined #ruby
aryaching has joined #ruby
tjbiddle has joined #ruby
lassebunk has joined #ruby
mmitchell has joined #ruby
astrobunny has quit [Ping timeout: 264 seconds]
icemancast has joined #ruby
orien has joined #ruby
rins has quit [Ping timeout: 272 seconds]
sambao21 has joined #ruby
mary5030 has quit [Ping timeout: 260 seconds]
araujo has joined #ruby
toah has joined #ruby
kofno has joined #ruby
mlpinit has quit [Remote host closed the connection]
mois3x_ has quit [Quit: Konversation terminated!]
Ahti333 has quit [Ping timeout: 268 seconds]
Ahti333_ is now known as Ahti333
mois3x_ has joined #ruby
mlpinit has joined #ruby
lfox has quit [Quit: ZZZzzz…]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zarubin has quit [Ping timeout: 272 seconds]
sambao21 has quit [Client Quit]
pentameter has quit [Remote host closed the connection]
yfeldblum has joined #ruby
mmitchell has quit [Ping timeout: 272 seconds]
marcdel has joined #ruby
sepp2k1 has joined #ruby
banisterfiend has joined #ruby
astrobunny has joined #ruby
nonamehero has joined #ruby
smathieu has joined #ruby
freezey has quit [Remote host closed the connection]
lfox has joined #ruby
mando has quit [Remote host closed the connection]
mlpinit has quit [Ping timeout: 240 seconds]
sepp2k1 has quit [Client Quit]
sepp2k has quit [Ping timeout: 268 seconds]
mando has joined #ruby
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tatsuya_o has quit [Remote host closed the connection]
phantasm66 has joined #ruby
tatsuya_o has joined #ruby
mois3x_ has quit [Ping timeout: 240 seconds]
starfox21 has joined #ruby
SloggerKhan has left #ruby [#ruby]
mando has quit [Ping timeout: 245 seconds]
kaspergr_ has quit [Remote host closed the connection]
heidi has quit [Quit: Leaving.]
icemancast has quit [Quit: icemancast]
kaspergrubbe has joined #ruby
tatsuya_o has quit [Ping timeout: 246 seconds]
k610 has quit [Ping timeout: 240 seconds]
dangerousdave has quit [Ping timeout: 246 seconds]
stonevil has joined #ruby
carlyle has quit [Remote host closed the connection]
tspike has joined #ruby
ShellFu has joined #ruby
icemancast has joined #ruby
sambao21 has joined #ruby
kaspergrubbe has quit [Ping timeout: 246 seconds]
astrobunny has quit [Ping timeout: 272 seconds]
Deele has quit [Ping timeout: 260 seconds]
stonevil has quit [Remote host closed the connection]
mrsolo has quit [Quit: This computer has gone to sleep]
stonevil has joined #ruby
jbpros has quit [Quit: jbpros]
RORgasm has joined #ruby
pushpak has quit [Quit: Linkinus - http://linkinus.com]
RORgasm has quit [Remote host closed the connection]
ewnd9 has quit [Ping timeout: 260 seconds]
kitak has quit [Remote host closed the connection]
tsykoduk is now known as zz_tsykoduk
rgbdev has joined #ruby
<ShellFu> Given that I have several hashes, all with a key :my_parent and :name. :my_parent has the name of the parents hash. Its possible for :my_parent to be empty, and also possible for the chain to be quite long. What im currently doing is looking up the name of interest, and looking to see if it has_key? :my_parent. If it does I do the sequence again.
mando has joined #ruby
<ShellFu> This works fine with a fixed depth but if I do not know how many parents there are how can I recursively search for them
benweint has quit [Quit: Computer has gone to sleep.]
martxel has joined #ruby
martxel has joined #ruby
martxel has quit [Changing host]
<ShellFu> thinking a while loop and a toggle switch that when it finds an empty :my_parent key it breaks out of the loop
mando has quit [Remote host closed the connection]
astrobunny has joined #ruby
<ShellFu> not sure if that is the smartest path, but its my only theory atm
einarj has quit [Remote host closed the connection]
kitak has joined #ruby
einarj has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baroquebobcat has quit [Quit: baroquebobcat]
ssmithstone has quit [Ping timeout: 265 seconds]
ner0x has joined #ruby
ldnunes has joined #ruby
jrhe has quit [Quit: jrhe]
b00stfr3ak has quit [Ping timeout: 272 seconds]
momomomomo has joined #ruby
SilverKey has joined #ruby
einarj has quit [Ping timeout: 272 seconds]
SilverKey has quit [Max SendQ exceeded]
mrsolo has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
ephemerian has quit [Quit: Leaving.]
predator217 has quit [Ping timeout: 240 seconds]
kofno has quit [Ping timeout: 272 seconds]
clov3r has quit [Remote host closed the connection]
heidi has joined #ruby
clov3r has joined #ruby
phantasm66 has quit [Quit: *sleeeep….]
TigerWolf has joined #ruby
brennanMKE has quit [Remote host closed the connection]
s2013 has quit [Ping timeout: 272 seconds]
predator117 has joined #ruby
reset has joined #ruby
ferdev has quit [Quit: ferdev]
veinofstars has quit [Quit: veinofstars]
postmodern has joined #ruby
tspike has quit [Ping timeout: 268 seconds]
clov3r has quit [Ping timeout: 272 seconds]
CreativeEmbassy has joined #ruby
marcdel has joined #ruby
momomomomo has quit [Quit: momomomomo]
tatsuya_o has joined #ruby
mixel has quit [Quit: mixel]
maletor has quit [Quit: Computer has gone to sleep.]
phantasm66 has joined #ruby
ismlages has quit [Remote host closed the connection]
lfox has quit [Quit: ZZZzzz…]
fuhgeddaboudit has quit [Ping timeout: 240 seconds]
atSetKey has quit [Remote host closed the connection]
atSetKey has joined #ruby
Hanmac has joined #ruby
mixel has joined #ruby
burlyscudd has quit [Quit: Leaving.]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
tatsuya_o has quit [Ping timeout: 265 seconds]
mark06 has joined #ruby
RORgasm has joined #ruby
Hanmac has quit [Ping timeout: 246 seconds]
nwertman has quit [Remote host closed the connection]
fgo has joined #ruby
rorra has quit [Quit: rorra]
DonRichie has quit [Quit: Verlassend]
dagnachew has quit [Read error: Connection reset by peer]
phantasm66 has quit [Quit: *sleeeep….]
ssmithstone has joined #ruby
butblack has joined #ruby
filipe has joined #ruby
heidi has quit [Quit: Leaving.]
tjbarber has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chrisja has quit [Quit: leaving]
fwmath has joined #ruby
tjbarber has joined #ruby
Stalkr_ has quit [Quit: Leaving...]
aspires has quit [Quit: aspires]
Mars` has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Mars` has joined #ruby
astrobunny has quit [Ping timeout: 272 seconds]
benweint has joined #ruby
ssmithstone has quit [Ping timeout: 240 seconds]
drusepth has joined #ruby
Mars` has quit [Read error: Connection reset by peer]
Mars` has joined #ruby
dsrw has joined #ruby
dsrw has quit [Remote host closed the connection]
horofox has joined #ruby
astrobunny has joined #ruby
kofno has joined #ruby
mansi has joined #ruby
zeade has quit [Quit: Leaving.]
baroquebobcat has joined #ruby
twoism has quit [Remote host closed the connection]