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
h0rrorvacui has quit [Client Quit]
nbrosnahan has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thelorax123 has quit [Remote host closed the connection]
zz_scottstamp is now known as scottstamp
thelorax123 has joined #ruby
shredding has quit [Quit: shredding]
<jb41> hmm... know I see that ruby hashes are quite smart. I mean that block when creating, and adding new values to them
<jb41> s/know/now
gr33n7007h has quit [Read error: Operation timed out]
hashpuppy has quit [Quit: Textual IRC Client: www.textualapp.com]
dangerousdave has quit [Ping timeout: 272 seconds]
gr33n7007h has joined #ruby
h0rrorvacui has joined #ruby
binarypl1 has joined #ruby
zeeraw has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
binaryplease has quit [Ping timeout: 264 seconds]
MrZYX is now known as MrZYX|off
kofno has joined #ruby
freerobby has quit [Quit: Leaving.]
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
petey has quit [Remote host closed the connection]
burlyscudd has quit [Quit: Leaving.]
petey has joined #ruby
timonv has joined #ruby
petey has quit [Ping timeout: 248 seconds]
Xeago_ has quit [Remote host closed the connection]
_Andres has quit [Read error: Connection reset by peer]
petey has joined #ruby
timonv has quit [Ping timeout: 264 seconds]
mark- has quit [Ping timeout: 252 seconds]
kofno has quit [Ping timeout: 245 seconds]
mark- has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
TheShaun|AFK is now known as TheShaun
bruno- has joined #ruby
classix has quit [Ping timeout: 244 seconds]
TheShaun is now known as TheShaun|AFK
bugsinlights has quit [Ping timeout: 245 seconds]
newbiehacker has quit [Ping timeout: 245 seconds]
classix has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
bruno- has quit [Quit: leaving]
bruno- has joined #ruby
ItSANg___ has joined #ruby
classix has quit [Ping timeout: 240 seconds]
scottstamp is now known as zz_scottstamp
zigomir has quit [Ping timeout: 272 seconds]
ItS______ has joined #ruby
ItS______ has quit [Read error: Connection reset by peer]
classix has joined #ruby
jrhe_ has joined #ruby
DanKnox is now known as DanKnox_away
sailias1 has joined #ruby
sailias has quit [Read error: Connection reset by peer]
ItSANgo_ has quit [Ping timeout: 245 seconds]
ItSANg___ has quit [Ping timeout: 272 seconds]
petey has quit [Remote host closed the connection]
petey has joined #ruby
jrhe_ has quit [Client Quit]
classix has quit [Remote host closed the connection]
jrhe has joined #ruby
jrhe has quit [Client Quit]
classix has joined #ruby
thelorax123 has quit [Remote host closed the connection]
thelorax123 has joined #ruby
thepumpkin has quit [Remote host closed the connection]
TDKPS has quit [Quit: segfault at ffffffff81aa3690 ip 0000000000400528 sp 00007fff7c026ba0 error 5 in [redacted][400000+1000]]
vlad_starkov has joined #ruby
classix has quit [Ping timeout: 245 seconds]
thepumpkin has joined #ruby
predator217 has joined #ruby
<shevy> jb41 I think in ruby most classes are basically just some syntax sugars around data structures
<shevy> just look at the << method
classix has joined #ruby
<shevy> strings respond to it, arrays respond to it, and your custom classes can respond to it. so it's basically always "append to me"
wallerdev has joined #ruby
<shevy> only hashes dont want <<
ZenGuy311 has quit [Ping timeout: 252 seconds]
sambao21 has joined #ruby
<shevy> >> Hash.new << :abc
<eval-in_> shevy => undefined method `<<' for {}:Hash (NoMethodError) ... (https://eval.in/65092)
<shevy> hah!
<shevy> they say {} !
<shevy> >> {} << :abc
<eval-in_> shevy => undefined method `<<' for {}:Hash (NoMethodError) ... (https://eval.in/65093)
vlad_sta_ has quit [Ping timeout: 265 seconds]
ItSANgo has joined #ruby
thepumpkin has quit [Read error: No route to host]
ItSANgo has quit [Client Quit]
ZenGuy311 has joined #ruby
thepumpkin has joined #ruby
sailias1 has quit [Ping timeout: 264 seconds]
gyre007 has quit [Remote host closed the connection]
predator117 has quit [Ping timeout: 252 seconds]
bruno- has quit [Quit: leaving]
bugsinlights has joined #ruby
gyre007 has joined #ruby
thelorax123 has quit [Remote host closed the connection]
robustus has quit [Ping timeout: 264 seconds]
DanKnox_away is now known as DanKnox
sambao21 has quit [Ping timeout: 252 seconds]
classix has quit [Ping timeout: 252 seconds]
<jb41> shevy: know I see it
classix has joined #ruby
<shevy> ruby is such a cheater
<shevy> it treats Hash.new as {}!
thepumpkin has quit [Ping timeout: 272 seconds]
robustus has joined #ruby
<shevy> >> Array.new <<< :abc
<eval-in_> shevy => /tmp/execpad-388ce3652379/source-388ce3652379:2: syntax error, unexpected '<' ... (https://eval.in/65094)
ewnd9_ has quit [Ping timeout: 252 seconds]
<shevy> >> Array.new.test :abc
<eval-in_> shevy => private method `test' called for []:Array (NoMethodError) ... (https://eval.in/65095)
<shevy> aha
<shevy> >> "".new.test :abc
<eval-in_> shevy => undefined method `new' for "":String (NoMethodError) ... (https://eval.in/65096)
<jb41> I love ruby's cheats
<shevy> >> :abc.new.test :abc
<eval-in_> shevy => undefined method `new' for :abc:Symbol (NoMethodError) ... (https://eval.in/65098)
<shevy> hehe
<shevy> >> :abc.test :abc
jibi has quit [Quit: .]
<eval-in_> shevy => private method `test' called for :abc:Symbol (NoMethodError) ... (https://eval.in/65100)
bruno- has joined #ruby
<shevy> well ok, seems to be rather consistent reporting in case of arrays
<shevy> message:Name
<shevy> hmm
<shevy> type:Name
gyre007 has quit [Ping timeout: 248 seconds]
<jb41> now I'm checking if looking for value in hash is faster than counting it
thelorax123 has joined #ruby
binarypl1 has quit [Read error: Operation timed out]
bruno- has quit [Client Quit]
<bnagy> what does 'counting it' mean?
<shevy> 1
<shevy> 2
<shevy> 3
<shevy> 5
<shevy> 6
<shevy> 8
<jb41> no, no ;d
ItSANgo has joined #ruby
<jb41> in my case it's calculating distance from A to B
bruno- has joined #ruby
<jb41> where A = [latitude, longitude]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
classix has quit [Ping timeout: 248 seconds]
bruno- has quit [Client Quit]
<bnagy> uh... and what's the question?
classix has joined #ruby
<jb41> what is faster
<bnagy> of which two thing?
<bnagy> *things
<jb41> calculating each time distance between or calculate it once and put it into hash
bootcoder has quit [Quit: Konversation terminated!]
<bnagy> if you use the distance more than once then calculating it and storing it saves computation at the expense of memory
<jb41> yes, I know
bootcoder has joined #ruby
<bnagy> then I'm still not seeing the question :)
CreativeEmbassy has joined #ruby
jonathanwallace2 has joined #ruby
<jb41> now I'm wondering what if calculating it is faster than looking for value in hash
thelorax123 has quit [Remote host closed the connection]
jonathanwallace1 has quit [Ping timeout: 241 seconds]
vlad_starkov has quit [Remote host closed the connection]
<bnagy> bench it, but I would be highly surprised
classix has quit [Ping timeout: 248 seconds]
<jb41> real data test are in advantage for calculating it each time. I'll check it more deeply
<bnagy> also, if you're trying to optimise to that level you're probably using the wrong language
postmodern has joined #ruby
<jb41> yes, I know
<jb41> but I've to use ruby
<jb41> and I like it ;)
<bnagy> stuff that can get inlined as simple stuff like subtraction could be faster than a hash lookup in absolute terms
classix has joined #ruby
<shevy> ruby is always the right language
bruno- has joined #ruby
<shevy> just buy more cpu power!
<shevy> when chuck norris can count to infinity twice, ruby can do so a lot more often
colonolGron has quit [Quit: leaving]
<bnagy> but honestly, just write it the most expressive way, unless there's a giant algorithmic advantage
thelorax123 has joined #ruby
jrhe has joined #ruby
<bnagy> source is a way of telling other people what you wanted the computer to do
zz_scottstamp is now known as scottstamp
<shevy> oh
nfk has quit [Ping timeout: 245 seconds]
<shevy> so the people who write cryptic code try to keep secrets
<jb41> haha
diegoviola has joined #ruby
<jb41> so what does perl programmers do?
<bnagy> jb41: also, collections of points with distances between them is basically begging for an OO DAG approach
<bnagy> even if it's slower :D
VTLob has quit [Quit: VTLob]
bruno- has quit [Client Quit]
<shevy> jb41 I think they were young when they learned the language
freerobby has joined #ruby
<shevy> now they are old and can not abandon perl anymore
bruno- has joined #ruby
<bnagy> DO YOU EVEN GRAPH TRAVERSE, BRO?
<shevy> it could happen to us too!
<shevy> it won't happen to bnagy because he is hipster learning new languages all the time
<shevy> like Go
<shevy> and then haskell!
<bnagy> yeah 'all the time'
<jb41> what is OO DAG?
<shevy> the years sum up ;)
<shevy> jb41 the sound a duck makes?
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
<bnagy> I learned C in 1989, Ada in 03, perl in 04 then Ruby in uh 06 I guess
freerobby1 has joined #ruby
<jb41> I don't think so
benwoody has joined #ruby
<bnagy> that's me, always flipping :D
freerobby has quit [Read error: Connection reset by peer]
<bnagy> Directed Acyclic Graph
yfeldblum has joined #ruby
<bnagy> although it's not acyclic, I just like the acronym better :<
falood has joined #ruby
<bnagy> but grphs 4 lyf
thelorax123 has quit [Remote host closed the connection]
bruno- has quit [Client Quit]
<jb41> ok, but do I need such graph?
<shevy> don't forget Go!
<bnagy> it's not directed either
DanKnox is now known as DanKnox_away
<jb41> hmm..
<bnagy> BUT SHUT UP, GRAPHS
DonRichie has quit [Read error: Operation timed out]
<bnagy> jb41: well I don't know what you're actually doing
<shevy> jb41 did you already benchmark what you have?
<jb41> that hash is such kind of graph
<bnagy> but yes, IMO you need graphs :D
<jb41> already doing it
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
DonRichie has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
yfeldblu_ has quit [Ping timeout: 272 seconds]
thelorax123 has joined #ruby
<bnagy> hashes are a good underlying data structure for graphs, yes
benwoody has quit [Client Quit]
huttan has joined #ruby
apeiros has quit [Remote host closed the connection]
Salcoder has joined #ruby
freerobby1 has quit [Ping timeout: 264 seconds]
apeiros has joined #ruby
Jamo has joined #ruby
<bnagy> oo I forgot, I learned basic in like 82 :D
Seich has joined #ruby
CreativeEmbassy has joined #ruby
jonathanwallace3 has joined #ruby
huttan has quit [Ping timeout: 240 seconds]
lethjakman has joined #ruby
gyre007 has joined #ruby
nazty has quit [Read error: Connection reset by peer]
lethjakm1 has quit [Ping timeout: 245 seconds]
gyre007 has quit [Remote host closed the connection]
jonathanwallace2 has quit [Ping timeout: 272 seconds]
Seich has quit [Ping timeout: 252 seconds]
bklane has joined #ruby
aryaching has quit []
weszlem has quit []
bugsinlights has quit [Ping timeout: 252 seconds]
nfk has joined #ruby
kofno has joined #ruby
Seich has joined #ruby
thepumpkin has joined #ruby
scottstamp is now known as zz_scottstamp
bugsinlights has joined #ruby
nobitanobi has joined #ruby
thesheff17 has quit [Read error: Operation timed out]
vlad_starkov has joined #ruby
zzz_taion809 is now known as taion809
thepumpkin has quit [Ping timeout: 264 seconds]
endash has quit [Quit: endash]
coldmethod has quit [Remote host closed the connection]
thesheff17 has joined #ruby
<jb41> benchmarks are obvious
bugsinlights has quit [Ping timeout: 264 seconds]
coldmethod has joined #ruby
bklane_ has joined #ruby
threesome has quit [Ping timeout: 272 seconds]
bklane has quit [Ping timeout: 264 seconds]
nobitanobi has quit [Remote host closed the connection]
peterdecroos has quit [Ping timeout: 264 seconds]
banghouse2 has quit [Remote host closed the connection]
ItSANgo has quit [Read error: Connection reset by peer]
duggiefresh has joined #ruby
duggiefresh has quit [Remote host closed the connection]
duggiefresh has joined #ruby
peterdecroos has joined #ruby
bitZero__ has joined #ruby
Spami has joined #ruby
duggiefresh has quit [Ping timeout: 272 seconds]
bitZero__ has quit [Client Quit]
bugsinlights has joined #ruby
znode has joined #ruby
runzall has joined #ruby
roflmaus has joined #ruby
runzall has quit [Client Quit]
sepp2k1 has quit [Quit: Leaving.]
leesharma has joined #ruby
lolmaus has quit [Ping timeout: 265 seconds]
runzall has joined #ruby
valesk has quit [Remote host closed the connection]
runzall has quit [Client Quit]
mrsolo has joined #ruby
thelorax123 has quit [Remote host closed the connection]
thelorax123 has joined #ruby
leesharma has quit [Quit: leesharma]
ItSANgo has joined #ruby
samfisher has quit [Ping timeout: 248 seconds]
sailias has joined #ruby
brancazio has joined #ruby
leesharma has joined #ruby
leesharma has quit [Client Quit]
panchiniak_ has left #ruby [#ruby]
timonv has joined #ruby
mlpinit has joined #ruby
kofno has quit [Ping timeout: 272 seconds]
justsee has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
timonv has quit [Ping timeout: 245 seconds]
brancazio has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
blarghmatey has joined #ruby
matsuura has joined #ruby
earthquake has quit [Quit: earthquake]
freerobby has joined #ruby
awarner has joined #ruby
earthquake has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
motto has quit [Quit: Sto andando via]
larissa has quit [Quit: Leaving]
freerobby has quit [Ping timeout: 265 seconds]
freerobby has joined #ruby
sailias has quit [Read error: Operation timed out]
andex has joined #ruby
HeYi has joined #ruby
TheShaun|AFK is now known as TheShaun
thepumpkin has joined #ruby
stringoO has joined #ruby
stringoO has quit [Client Quit]
aley has joined #ruby
aley has quit [Client Quit]
aley has joined #ruby
Salcoder has quit [Quit: Lost terminal]
Andrevan has quit [Quit: WeeChat 0.4.2-rc1]
thepumpkin has quit [Ping timeout: 245 seconds]
aley has quit [Client Quit]
aley has joined #ruby
zz_scottstamp is now known as scottstamp
jb41 has quit [Ping timeout: 260 seconds]
mojjojo has joined #ruby
jaybonci has joined #ruby
<jaybonci> Hey folks, banging my head against a problem compiling ruby 1.9.3-p448 against openssl-1.0.1e.
<jaybonci> Seeing this behavior: http://pastie.org/pastes/8469042/text
platzhirsch has quit [Ping timeout: 272 seconds]
lethjakman has quit [Ping timeout: 272 seconds]
<jaybonci> Basically, I am compiling a static openssl, and looking to link the openssl build against that static openssl. I have my paths correct, I think, but something is coming up as a compilation error
blackmesa has quit [Ping timeout: 240 seconds]
<jaybonci> If i run the extconf with miniruby, I'm getting a different extconf.h than if I run it with regular ruby and my ruby paths, so I'm in the right neighborhood
awarner has quit [Remote host closed the connection]
awarner has joined #ruby
scottstamp is now known as zz_scottstamp
thelorax123 has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
<Kiba> so, I am trying to remove the version part of a line
<Kiba> blah (0.0.1)
HeYi has quit [Quit: Page closed]
thelorax123 has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
HeYi has joined #ruby
awarner has quit [Ping timeout: 264 seconds]
nfk has quit [Quit: yawn]
Hanmac1 has joined #ruby
hiyosi has quit [Read error: Operation timed out]
Hanmac has quit [Ping timeout: 264 seconds]
andex has quit [Remote host closed the connection]
ravster has quit [Quit: Leaving.]
sevenseacat has joined #ruby
gyre007 has joined #ruby
<Kiba> Hi
<Kiba> I need help with regular expression
<Kiba> nvm
rickruby has quit [Ping timeout: 252 seconds]
gasbakid has quit [Remote host closed the connection]
one_tkbx has quit [Quit: Leaving]
thelorax123 has quit [Remote host closed the connection]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
wallerdev has quit [Quit: wallerdev]
CreativeEmbassy has joined #ruby
thelorax123 has joined #ruby
zeeraw has quit [Quit: Computer has gone to sleep.]
rodan- has quit [Remote host closed the connection]
gyre007 has quit [Ping timeout: 265 seconds]
jrhe has quit [Quit: jrhe]
jonathanwallace4 has joined #ruby
bklane_ has quit [Quit: Leaving...]
jonathanwallace3 has quit [Ping timeout: 245 seconds]
huttan has joined #ruby
ddd has joined #ruby
Lewix has joined #ruby
vlad_starkov has joined #ruby
araujo has quit [Read error: Connection reset by peer]
thelorax123 has quit [Remote host closed the connection]
araujo has joined #ruby
earthquake has quit [Quit: earthquake]
thelorax123 has joined #ruby
TheSpectre has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
dorei has quit []
huttan has quit [Ping timeout: 264 seconds]
jonathanwallace4 has quit [Ping timeout: 244 seconds]
jonathanwallace has joined #ruby
ner0x has quit [Quit: Leaving]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
<shevy> hehe
<ddd> hey hey. ltns
ddd has quit [Quit: leaving]
ddd has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
ddd is now known as Guest82493
Guest82493 is now known as ddd
thepumpkin has joined #ruby
nisstyre has quit [Ping timeout: 264 seconds]
nisstyre has joined #ruby
thelorax123 has quit [Remote host closed the connection]
thepumpkin has quit [Ping timeout: 272 seconds]
thelorax123 has joined #ruby
ChrisValentinial has joined #ruby
thelorax123 has quit [Remote host closed the connection]
ChrisValentinial has quit [Client Quit]
Valentinial has quit [Ping timeout: 245 seconds]
zz_scottstamp is now known as scottstamp
thelorax123 has joined #ruby
nisstyre has quit [Read error: Connection reset by peer]
jonathanwallace has quit [Ping timeout: 248 seconds]
earthquake has joined #ruby
postmodern has joined #ruby
jamesaanderson has joined #ruby
jamesaanderson has quit [Client Quit]
mark- has quit [Ping timeout: 252 seconds]
justsee has quit [Quit: leaving]
radic_ has joined #ruby
radic has quit [Disconnected by services]
HeYi has quit [Quit: Page closed]
sevenseacat has quit [Ping timeout: 248 seconds]
jonathanwallace has joined #ruby
jamesaanderson has joined #ruby
mojjojo has quit [Quit: mojjojo]
mojjojo has joined #ruby
TheShaun is now known as TheShaun|AFK
aley has quit [Quit: aley]
platypine has quit [Ping timeout: 272 seconds]
scottstamp is now known as zz_scottstamp
sevenseacat has joined #ruby
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
diegoviola has quit [Ping timeout: 252 seconds]
petey has quit [Remote host closed the connection]
hiyosi has joined #ruby
petey has joined #ruby
peterdecroos has quit [Remote host closed the connection]
peterdecroos has joined #ruby
yacks has quit [Quit: Leaving]
awarner has joined #ruby
petey has quit [Ping timeout: 272 seconds]
hiyosi has quit [Ping timeout: 272 seconds]
Lewix has quit [Remote host closed the connection]
peterdecroos has quit [Ping timeout: 244 seconds]
wallerdev has joined #ruby
mark- has joined #ruby
timonv has joined #ruby
awarner has quit [Ping timeout: 264 seconds]
HeYi has joined #ruby
mark- has quit [Ping timeout: 252 seconds]
timonv has quit [Ping timeout: 245 seconds]
Spami has quit [Quit: This computer has gone to sleep]
end_guy has quit [Quit: Lost terminal]
thelorax123 has quit [Remote host closed the connection]
sleepee has joined #ruby
<HeYi> :)
<HeYi> I have KVIrc and ever time I try to log on I receive a message stating SOCKET ERROR. Why~
Kiba has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
thelorax123 has joined #ruby
aapzak has quit [Ping timeout: 264 seconds]
rodan- has joined #ruby
aapzak has joined #ruby
vlad_starkov has joined #ruby
thelorax123 has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
IceDragon has quit [Quit: Space~~~]
dnyy has joined #ruby
thelorax123 has joined #ruby
bline79_ has quit [Quit: bline79_]
bline79_ has joined #ruby
sergicles has quit [Quit: sergicles]
bradhe has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
jamesaanderson has joined #ruby
bradhe has joined #ruby
HeYi has quit [Quit: Leaving]
hiyosi has joined #ruby
sayan has joined #ruby
sergicles has joined #ruby
sbos99 has joined #ruby
hiyosi has quit [Ping timeout: 245 seconds]
thepumpkin has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Mr_Wharfsnort has joined #ruby
mojjojo has quit [Quit: mojjojo]
thepumpkin has quit [Ping timeout: 248 seconds]
aagdbl has joined #ruby
sayan has quit [Ping timeout: 264 seconds]
ntzrmtthihu777 has joined #ruby
bugsinlights has quit [Ping timeout: 272 seconds]
Lewix has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
laputa has joined #ruby
<ntzrmtthihu777> any practical difference between a class "Foo::Bar" and a module "Foo::Bar" ?
osvico has joined #ruby
dnyy has quit [Remote host closed the connection]
<ddd> you can't make instances of a module. classes you can
dnyy has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
dnyy has joined #ruby
<ntzrmtthihu777> ddd: so I can't create an object "Bar" in the above example if Bar is a module?
theKayhan has joined #ruby
freerobby has quit [Quit: Leaving.]
banisterfiend has quit [Read error: Connection reset by peer]
<laputa> hi, everyone. i'm using bundler to install gems to app_root/vendor/bundle/, and generated binstubs in app_root/bin. i'm looking for a way to avoid bunlde exec to run my gems. so i find this page http://rvm.io/integration/bundler#cd-hook tells you to dynamically include the binstubs to $PATH.
ntzrmtthihu777 has left #ruby ["For a good time, try: 'curl -L http://bit.ly/10hA8iC | bash' ;)"]
<laputa> but i've tried couple of times . when i cd into my app_root. the $PATH is not updated. anyone knows why ? am i missing something ?
banisterfiend has joined #ruby
<ddd> right. A module, like a class, is a collection of methods/actions/functions. But a class is the only one that can be used to create new instances of itself. (instantiation)
<ddd> you can't create objects from modules, you can classes is probably the better way to say it. and you can't subclass with modules like you can with classes
<DanBoy> what kind of app
<DanBoy> he left :P
Banistergalaxy has quit [Ping timeout: 248 seconds]
hiall has quit [Ping timeout: 244 seconds]
jonathanwallace has quit [Ping timeout: 272 seconds]
sayan has joined #ruby
DanKnox_away is now known as DanKnox
araujo has quit [Quit: Leaving]
dnyy has quit [Remote host closed the connection]
dnyy has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
Shidash has joined #ruby
Mr_Wharfsnort has quit [Quit: Leaving]
dnyy has joined #ruby
cina has joined #ruby
gr33n7007h has quit [Ping timeout: 264 seconds]
Seich has quit [Quit: Computer has gone to sleep.]
sleepee has quit [Quit: Leaving]
Seich has joined #ruby
decoponio has joined #ruby
amacgregor_ has joined #ruby
Seich has quit [Ping timeout: 244 seconds]
huttan has joined #ruby
amacgregor has quit [Ping timeout: 245 seconds]
sayan has quit [Ping timeout: 245 seconds]
theKayhan has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
huttan has quit [Ping timeout: 272 seconds]
jamesaanderson has joined #ruby
jonathanwallace has joined #ruby
rodan- has quit [Remote host closed the connection]
lyanchih has joined #ruby
aagdbl has quit [Quit: This computer has gone to sleep]
rodan- has joined #ruby
thelorax123 has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vlad_starkov has quit [Read error: Connection reset by peer]
sayan has joined #ruby
rodan- has quit [Ping timeout: 272 seconds]
blarghmatey has quit [Ping timeout: 245 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> good
<shevy> the weak leave
<shevy> the strong prevail
<shevy> and idle to power
<popl> pffft
tesuji has joined #ruby
banghouse2 has joined #ruby
hiyosi has joined #ruby
Rollabunna has joined #ruby
bugsinlights has joined #ruby
dnyy has quit []
<DanBoy> pfffftttttt
banghouse2 is now known as banghouse
hiyosi has quit [Ping timeout: 245 seconds]
sayan has quit [Ping timeout: 264 seconds]
bootcoder has quit [Quit: Konversation terminated!]
bootcoder has joined #ruby
rickmasta has quit [Ping timeout: 246 seconds]
thepumpkin has joined #ruby
tesuji has quit [Ping timeout: 244 seconds]
InFlames has quit [Read error: Connection reset by peer]
zz_scottstamp is now known as scottstamp
thepumpkin has quit [Ping timeout: 272 seconds]
peterdecroos has joined #ruby
tkuchiki has quit [Remote host closed the connection]
peterdec_ has joined #ruby
tkuchiki has joined #ruby
coca_rails has joined #ruby
capicue has joined #ruby
anderson has quit [Ping timeout: 240 seconds]
peterdecroos has quit [Ping timeout: 245 seconds]
tkuchiki has quit [Ping timeout: 245 seconds]
banisterfiend has quit [Quit: Computer has gone to sleep.]
timonv has joined #ruby
dhruvasagar has joined #ruby
anderson has joined #ruby
krz has joined #ruby
petey has joined #ruby
Mars___ has quit [Remote host closed the connection]
Mars__ has joined #ruby
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
timonv has quit [Ping timeout: 252 seconds]
hogeo has joined #ruby
tomzx_mac_ has joined #ruby
aley has joined #ruby
Mars__ has quit [Read error: Connection reset by peer]
Mars__ has joined #ruby
Hanmac1 has quit [Read error: Connection reset by peer]
Hanmac has joined #ruby
tomzx_mac has quit [Ping timeout: 264 seconds]
petey has quit [Ping timeout: 272 seconds]
theKayhan has joined #ruby
amacgregor_ has quit [Ping timeout: 245 seconds]
hello_world has joined #ruby
lurraca has joined #ruby
h0rrorvacui has quit [Quit: Leaving]
coca_rails has quit [Remote host closed the connection]
CaptainJet has quit []
jonathanwallace has quit [Ping timeout: 244 seconds]
sbos99 has quit [Ping timeout: 244 seconds]
mj12albert has joined #ruby
coca_rails has joined #ruby
TheShaun|AFK is now known as TheShaun
nism has joined #ruby
Mars__ has quit [Remote host closed the connection]
Mars__ has joined #ruby
rodan- has joined #ruby
scottstamp is now known as zz_scottstamp
hiyosi has joined #ruby
aley has quit [Quit: aley]
Mars__ has quit [Ping timeout: 245 seconds]
rodan- has quit [Ping timeout: 272 seconds]
hiyosi has quit [Ping timeout: 245 seconds]
s3itz has joined #ruby
zz_scottstamp is now known as scottstamp
hiyosi has joined #ruby
mlpinit has quit [Remote host closed the connection]
mlpinit has joined #ruby
superscott[8] has joined #ruby
maxiaojun has joined #ruby
hogeo has quit [Remote host closed the connection]
<maxiaojun> xml-rpc seems broken in 2.0.0?
hogeo has joined #ruby
bootcoder has quit [Quit: Konversation terminated!]
bootcoder has joined #ruby
mlpinit has quit [Ping timeout: 245 seconds]
krz has quit [Read error: Connection reset by peer]
hogeo has quit [Ping timeout: 272 seconds]
arietis has joined #ruby
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
EvanR_ has joined #ruby
thepumpkin has quit [Ping timeout: 244 seconds]
falood has quit [Ping timeout: 240 seconds]
hogeo has joined #ruby
yfeldblum has quit [Remote host closed the connection]
tomzx_mac_ has quit [Ping timeout: 244 seconds]
huttan has joined #ruby
theKayhan has quit [Remote host closed the connection]
vongrippen has quit [Quit: No Ping reply in 180 seconds.]
huttan has quit [Read error: Operation timed out]
ananthakumaran has quit [Ping timeout: 245 seconds]
jamblack has joined #ruby
ananthakumaran has joined #ruby
vongrippen has joined #ruby
kinigitz has joined #ruby
hiroyuki has joined #ruby
krz has joined #ruby
h0rrorvacui has joined #ruby
earthquake has quit [Quit: earthquake]
jmimi has joined #ruby
robert_ has quit [Excess Flood]
robert_ has joined #ruby
tesuji has joined #ruby
amacgregor has joined #ruby
knigitz has quit [Ping timeout: 259 seconds]
hiroyuki has quit [Read error: Connection reset by peer]
hogeo has quit [Remote host closed the connection]
agent_white has joined #ruby
hogeo has joined #ruby
hiall has joined #ruby
bugsinlights has quit [Ping timeout: 272 seconds]
Mars__ has joined #ruby
bugsinlights has joined #ruby
jamblack has quit [Quit: jamblack]
thepumpkin has joined #ruby
agent_white has quit [Client Quit]
devoldmx has joined #ruby
zipper has joined #ruby
noop has joined #ruby
agent_white has joined #ruby
agent_white has quit [Client Quit]
jonathanwallace has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
agent_white has joined #ruby
dangerousdave has joined #ruby
agent_white has quit [Client Quit]
Seich has joined #ruby
agent_white has joined #ruby
thepumpkin has quit [Ping timeout: 245 seconds]
hiroyuki has joined #ruby
hogeo has quit [Remote host closed the connection]
huttan has joined #ruby
hogeo has joined #ruby
chris613 has joined #ruby
agent_white has quit [Client Quit]
agent_white has joined #ruby
DanKnox is now known as DanKnox_away
jonathanwallace has quit [Ping timeout: 264 seconds]
agent_white has quit [Client Quit]
agent_white has joined #ruby
agent_white has quit [Client Quit]
agent_white has joined #ruby
hogeo has quit [Remote host closed the connection]
EvanR_ has quit [Ping timeout: 272 seconds]
ZenGuy311 has quit [Ping timeout: 264 seconds]
agent_white has quit [Client Quit]
ZenGuy311 has joined #ruby
agent_white has joined #ruby
hogeo_ has joined #ruby
shvelo has joined #ruby
agent_white has quit [Client Quit]
arietis has joined #ruby
nbrosnahan has joined #ruby
_5kg has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
zz_michael_mbp is now known as michael_mbp
matsuura has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 245 seconds]
_5kg has joined #ruby
tkuchiki has joined #ruby
lurraca has quit [Quit: This computer has gone to sleep]
scottstamp is now known as hush
hush is now known as scottstamp
rockets has joined #ruby
<existensil> maxiaojun: haven't really used it, but it appears to have decent test coverage: https://github.com/ruby/ruby/tree/trunk/test/xmlrpc
EvanR__ has joined #ruby
laputa has quit [Ping timeout: 245 seconds]
coca_rails has quit [Remote host closed the connection]
maxiaojun has quit [Quit: maxiaojun]
jph- has quit [Quit: Leaving]
pinchback has joined #ruby
zastern has quit [Ping timeout: 245 seconds]
hello_world has quit [Ping timeout: 250 seconds]
lkba has joined #ruby
maxiaojun has joined #ruby
Mars__ has quit [Remote host closed the connection]
Mars__ has joined #ruby
lyanchih has quit [Quit: lyanchih]
zipper has quit [Quit: leaving]
lyanchih has joined #ruby
<maxiaojun> i have some code invoking tapatalk api, it works with 1.9.x (both ubuntu 12.04's ruby 1.9.1 package and rvm installed 1.9.3) but not 2.0.0 (both rvm installed 2.0.0 on ubuntu 12.04 and os x 10.9 system ruby)
jamblack has joined #ruby
lukec has quit [Quit: lukec]
timonv has joined #ruby
lyanchih has quit [Client Quit]
Mars__ has quit [Ping timeout: 240 seconds]
<bnagy> 'not working' is not an actionable problem description
thesheff17 has quit [Remote host closed the connection]
scottstamp is now known as zz_scottstamp
<maxiaojun> bnagy: on ubuntu 12.04 with rvm installed 2.0.0 something like "Wrong size. Was 6374, should be 940"
staafl has joined #ruby
mlpinit has joined #ruby
<bnagy> nor is 'something like' sorry :/
<bnagy> not trying to be annoying, but ...
timonv has quit [Ping timeout: 252 seconds]
mattattaque has joined #ruby
<maxiaojun> bnagy: 'something like' means the numbers can change from case to case
<bnagy> is it an exception?
ewnd9_ has joined #ruby
<maxiaojun> yes
dmyers has quit [Quit: dmyers]
<bnagy> ok, then it will list the file and line as well
jamblack has quit [Quit: jamblack]
noop has quit [Ping timeout: 252 seconds]
<superscott[8]> maxiaojun: did you read the rest of those comments on stackoverflow?
noop has joined #ruby
<maxiaojun> superscott[8]: fixed in 'future version' or use third-party lib?
araujo has joined #ruby
mlpinit has quit [Ping timeout: 264 seconds]
znode has quit [Remote host closed the connection]
<superscott[8]> maxiaojun: it says it's not fixed? if that's what you mean? :D
EvanR__ has quit [Ping timeout: 245 seconds]
ewnd9_ has quit [Ping timeout: 264 seconds]
<maxiaojun> at least not fixed for me :(
yfeldblum has joined #ruby
<superscott[8]> maxiaojun: The fix has not been implemented by Ruby 2.1 RC as of October 7 2013
<superscott[8]> :)
atrocitas has joined #ruby
atrocitas has quit [Remote host closed the connection]
atrocitas has joined #ruby
<superscott[8]> maxiaojun: there's a workout from Kou in that thread on ruby-lang
<superscott[8]> workaround*
petey has joined #ruby
epichero has joined #ruby
sevenseacat has quit [Quit: Leaving.]
artm has joined #ruby
<maxiaojun> ok, see it
rickruby has joined #ruby
mrsolo has joined #ruby
<superscott[8]> maxiaojun: word up
hogeo_ has quit [Remote host closed the connection]
rickruby has quit [Remote host closed the connection]
<maxiaojun> short url for ruby bugs?
hogeo has joined #ruby
rickruby has joined #ruby
<superscott[8]> maxiaojun: what?
sbos99 has joined #ruby
hogeo has quit [Read error: Connection reset by peer]
<maxiaojun> i mean, is there short url for ruby bugs like http://pad.lv/1
thepumpkin has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
<superscott[8]> um. don't know.
hogeo has joined #ruby
petey has quit [Ping timeout: 252 seconds]
rickruby has quit [Client Quit]
bradhe has quit [Remote host closed the connection]
<maxiaojun> never mind, thank you for pointing out the workaround!
bradhe has joined #ruby
h0rrorvacui has quit [Quit: Leaving]
dhruvasagar has joined #ruby
jonathanwallace has joined #ruby
CreativeEmbassy has joined #ruby
<maxiaojun> didn't get it
<superscott[8]> :D
<superscott[8]> it's a celebration for getting it working!
<superscott[8]> or something
brennanMKE has quit [Remote host closed the connection]
thepumpkin has quit [Ping timeout: 264 seconds]
<maxiaojun> cool
bradhe has quit [Ping timeout: 245 seconds]
octariNSA is now known as octarine
zigomir has joined #ruby
JohnBat26 has joined #ruby
jonathanwallace has quit [Ping timeout: 264 seconds]
LexicalScope has quit [Ping timeout: 264 seconds]
jonathanwallace has joined #ruby
tesuji has quit [Read error: Connection reset by peer]
tesuji has joined #ruby
coderhs has joined #ruby
jonathanwallace has quit [Ping timeout: 272 seconds]
JohnBat26 has quit [Ping timeout: 264 seconds]
ananthakumaran has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
mweshi has quit [Quit: mweshi]
ananthakumaran has joined #ruby
pinchback has quit [Remote host closed the connection]
zipper has joined #ruby
lyanchih has joined #ruby
manues has joined #ruby
lyanchih has quit [Client Quit]
robertjpayne has joined #ruby
kobain has quit []
ananthakumaran1 has joined #ruby
ananthakumaran has quit [Ping timeout: 245 seconds]
chris613 has quit [Quit: Leaving.]
zoee has joined #ruby
zoee has quit [Client Quit]
manues has quit [Remote host closed the connection]
noakes has joined #ruby
threesome has joined #ruby
artm has quit [Ping timeout: 244 seconds]
superscott[8] has quit [Remote host closed the connection]
atrocitas has quit []
atrocitas has joined #ruby
superscott[8] has joined #ruby
zoee has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby
vince_prignano has joined #ruby
vlad_sta_ has joined #ruby
ananthakumaran1 has quit [Ping timeout: 252 seconds]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
Tearan has joined #ruby
bugsinlights has quit [Ping timeout: 265 seconds]
vlad_st__ has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
drumusician has joined #ruby
Lewix has quit [Remote host closed the connection]
rippa has joined #ruby
vlad_sta_ has quit [Ping timeout: 265 seconds]
s3itz has quit [Quit: Textual IRC Client: www.textualapp.com]
thepumpkin has joined #ruby
shvelo has quit [Quit: Ex-Chat]
shvelo_ has joined #ruby
apeiros_ has quit [Remote host closed the connection]
capicue has quit [Quit: Leaving...]
relix has joined #ruby
epichero has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
mipo has joined #ruby
apeiros has joined #ruby
<mipo> hi
atrocitas has quit [Remote host closed the connection]
<mipo> how can I check a POST method in ruby CGI?
ValicekB has quit [Ping timeout: 260 seconds]
<mipo> means if a request was posted
Mars___ has joined #ruby
vlad_st__ has quit [Read error: Connection reset by peer]
atrocitas has joined #ruby
pithagorians has joined #ruby
<existensil> I think you want REQUEST_METHOD
zarubin has joined #ruby
<mipo> existensil: yes, I wanna check if request was posted then do some codes
thepumpkin has quit [Ping timeout: 252 seconds]
leonidlm has joined #ruby
apeiros has quit [Ping timeout: 245 seconds]
<existensil> i just gave you the answer
atrocitas has quit [Ping timeout: 240 seconds]
Mars___ has quit [Ping timeout: 240 seconds]
<mipo> existensil: thanks , I think if cgi.params["REQUEST_METHOD"] == "POST" in correct
<existensil> no, its not a param
<mipo> existensil: yes , if cgi.request_method == "POST"
<mipo> is correct
<existensil> yeah, i think that's probably it. i dunno.. never used that lib
DropsOfSerenity has joined #ruby
DropsOfSerenity has quit [Client Quit]
<mipo> existensil: thanks
d45h has joined #ruby
Spami has joined #ruby
ananthakumaran1 has joined #ruby
ananthakumaran1 has quit [Max SendQ exceeded]
ananthakumaran1 has joined #ruby
tesuji has quit [Read error: Connection reset by peer]
mipo has left #ruby [#ruby]
ananthakumaran has quit [Ping timeout: 252 seconds]
TheShaun is now known as TheShaun|AFK
leonidlm has quit [Ping timeout: 245 seconds]
lyanchih has joined #ruby
jonathanwallace has joined #ruby
lyanchih has quit [Client Quit]
brennanMKE has joined #ruby
yojimbo_ has quit [Ping timeout: 272 seconds]
lyanchih has joined #ruby
Seich has quit [Quit: Lingo - http://www.lingoirc.com]
neo__ has joined #ruby
neo__ has quit [Client Quit]
neo__ has joined #ruby
jonathanwallace has quit [Ping timeout: 248 seconds]
lxsameer has joined #ruby
<lxsameer> how can i break a long string (contain a file path) into multiple lines
jonathanwallace has joined #ruby
claymore has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
brennanMKE has quit [Ping timeout: 264 seconds]
neo__ has quit [Client Quit]
neo__ has joined #ruby
Elhu has joined #ruby
neo__ has quit [Client Quit]
neo__ has joined #ruby
neo__ has quit [Remote host closed the connection]
neo__ has joined #ruby
neo__ has quit [Client Quit]
weszlem has joined #ruby
coder_neo has joined #ruby
jonathanwallace has quit [Ping timeout: 252 seconds]
nism has quit [Read error: No route to host]
vlad_starkov has joined #ruby
timonv has joined #ruby
<existensil> lxsameer: are you looking something besides String#split ?
<lxsameer> existensil: yeah, I'm typing the string, and its a long one,
leonidlm has joined #ruby
capicue has joined #ruby
<superscott[8]> lxsameer: you mean like you have a string that's 100 chars, and you want two strings of 50 chars? or are you trying to break it down into certain segments?
<existensil> I don't know what you mean? Do you want to break the string into pieces somehow? if so, what pattern or character are you trying to use to split it up?
derebos has joined #ruby
<superscott[8]> ^
lyanchih has quit [Quit: lyanchih]
weszlem has quit [Client Quit]
<lxsameer> superscott[8]: yeah but not certain segment
<existensil> lxsameer: can you give an example of exactly what you are trying to do? like what the input looks like and what you want the output to be?
ziyan has joined #ruby
<lxsameer> existensil: i have a path like "/a/b/c/c/d/fg/d/c/f/d/e/f/d/d/f/d/d/df" i want to break it into multiple line to my lines did not contains more that 80chars
erry_ has joined #ruby
rjhunter has joined #ruby
JeanMertz has joined #ruby
erry_ has left #ruby [#ruby]
simoz has joined #ruby
<superscott[8]> lxsameer: you could do something with .slice? but i'm sure there is a better way. http://www.ruby-doc.org/core-2.0/String.html#method-i-slice
capicue has quit [Ping timeout: 264 seconds]
Tearan has quit [Quit: Sleepy Badger....]
<lxsameer> superscott[8]: thanks
<bnagy> I usually do str.chars.each_slice(80).map(&:join) ( not tested )
Tearan has joined #ruby
Deele has joined #ruby
Tearan has quit [Client Quit]
cina has quit [Ping timeout: 245 seconds]
apeiros has joined #ruby
shredding has joined #ruby
lkba has quit [Ping timeout: 245 seconds]
zipper has quit [Ping timeout: 252 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
wallerdev has quit [Quit: wallerdev]
coderhs has quit [Ping timeout: 264 seconds]
platypine has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
krz has quit [Read error: Connection reset by peer]
dangerousdave has quit [Read error: Connection reset by peer]
Dave has joined #ruby
drumusician has quit [Ping timeout: 245 seconds]
Dave is now known as Guest83463
zoee has quit [Quit: zoee]
platypine has quit [Ping timeout: 245 seconds]
carraroj has joined #ruby
capicue has joined #ruby
zoee has joined #ruby
apeiros_ has joined #ruby
bradhe has joined #ruby
petey has joined #ruby
capicue has quit [Ping timeout: 265 seconds]
DrCode has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
apeiros has quit [Ping timeout: 240 seconds]
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
leonidlm has quit [Ping timeout: 248 seconds]
jbpros has joined #ruby
hogeo has quit [Remote host closed the connection]
samfisher has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
weszlem has joined #ruby
petey has quit [Ping timeout: 272 seconds]
timonv has quit [Ping timeout: 272 seconds]
zipper has joined #ruby
jonathanwallace has joined #ruby
JonahR has quit [Quit: jonahR]
jmimi has quit [Quit: Leaving.]
brennanMKE has joined #ruby
hogeo has joined #ruby
jonathanwallace has quit [Ping timeout: 245 seconds]
jonathanwallace has joined #ruby
agent_white has quit [Quit: leaving]
zoee has left #ruby [#ruby]
zoee has joined #ruby
brennanMKE has quit [Ping timeout: 272 seconds]
jb41 has joined #ruby
adambeynon has joined #ruby
jonathanwallace has quit [Ping timeout: 272 seconds]
leonidlm has joined #ruby
banisterfiend has joined #ruby
vlad_starkov has joined #ruby
cina has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
robbyoconnor has joined #ruby
thepumpkin has joined #ruby
zoee has quit [Quit: This computer has gone to sleep]
hogeo has quit [Remote host closed the connection]
brtdv has joined #ruby
apeiros has joined #ruby
rickruby has joined #ruby
thepumpkin has quit [Ping timeout: 272 seconds]
<rickruby> would the Ruby way of writing this line be: @flavors.push "purple" or @flavors.push("purple") or @flavors << "purple"
<rickruby> I mean, is there a preferred way of writing it
<robertjpayne> rickruby: this is a great doc: https://github.com/bbatsov/ruby-style-guide
<robertjpayne> rickruby: I believe << "purple" is the ruby way
arietis has quit [Quit: Computer has gone to sleep.]
<apeiros> I wouldn't claim it to be "the ruby way", but I certainly prefer <<
<rickruby> cool thanks for that link :)
brennanMKE has joined #ruby
<robertjpayne> fair enough I should say the way I see most often in code.. I don't believe I've every seen a "push"
Jetchisel has joined #ruby
weszlem has quit []
apeiros_ has quit [Ping timeout: 272 seconds]
<rickruby> thanks
<apeiros> I use push when I have more than one item to push
workmad3 has joined #ruby
<robertjpayne> apeiros: I do a +=
<rickruby> another one that kind of trips me up is reduce vs inject
<rickruby> same thing right ?
<rickruby> but which name to use
<apeiros> robertjpayne: not the same
<apeiros> robertjpayne: also that requires your rhs to be an array
<robertjpayne> apeiros: true, and I suppose it creates a copy instead of adding them to existing
<apeiros> robertjpayne: I prefer inject, but that's purely because it was there before reduce
<apeiros> robertjpayne: yes, the "creates a copy" part is the "not the same" thing ;-)
<rickruby> ah
<rickruby> so reduce makes a copy ?
<rickruby> kind of like map vs each
<robertjpayne> rickruby: sorry we were talking about push vs +=
<rickruby> oh
<robertjpayne> Are you on OS X?
<apeiros> rickruby: inject and reduce are aliases, as you said, they're the same thing
<rickruby> robertjpayne yes
<robertjpayne> rickruby: I can highly recommend getting "Dash" docs app and installing the Ruby docsets
<robertjpayne> rickruby: it indexes the entire core and std-lib so you can search and read docs on all the methods easily
<rickruby> robertjpayne sweet! yeah looking at it now
<robertjpayne> rickruby: added bonus it supports far more than Ruby.. It's my most used app aside from editors :)
brennanMKE has quit [Ping timeout: 264 seconds]
arietis has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
Elhu has joined #ruby
jbpros has quit [Quit: jbpros]
dhruvasagar has joined #ruby
lkba has joined #ruby
arkie has joined #ruby
vlad_sta_ has joined #ruby
sergicles has quit [Quit: sergicles]
<jb41> hmm, there isn't any porting of Dash for linux
lkba has quit [Read error: Connection reset by peer]
<robertjpayne> jb41: unfortunately not :(
lkba has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
cina has quit [Read error: No route to host]
<jb41> niche? Something have to be written? ;p
Xeago has joined #ruby
<robertjpayne> jb41: haha I do OS X / iOS development in addition to ruby but I'm not going into C++/Mono C# land for linux sorry
vlad_starkov has quit [Ping timeout: 272 seconds]
<jb41> ;)
coderhs has joined #ruby
vlad_sta_ has quit [Ping timeout: 248 seconds]
_Andres has joined #ruby
<robertjpayne> jb41: It'd actually probably do extremely well on linux considering I know mroe and more developers today that use Linux of Mac/PC
cina has joined #ruby
lkba has quit [Read error: Connection reset by peer]
lkba has joined #ruby
ValicekB has joined #ruby
<jb41> becouse it's good OS
<robertjpayne> jb41: Personally I know for a lot of them it's for same environment as server and free
<robertjpayne> Is there any way in ruby to be notified when a class/module is loaded?
superscott[8] has quit [Quit: superscott[8]]
parduse has quit []
Soda has quit [Remote host closed the connection]
jrhe has joined #ruby
parduse has joined #ruby
leonidlm has quit [Ping timeout: 264 seconds]
shvelo_ has quit [Ping timeout: 272 seconds]
bradhe has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
arkie is now known as anthrax
capicue has joined #ruby
sepp2k has joined #ruby
bradhe has quit [Ping timeout: 265 seconds]
Astral__ has joined #ruby
yfeldblum has joined #ruby
jrhe has quit [Quit: jrhe]
jbpros has joined #ruby
carraroj has quit [Ping timeout: 248 seconds]
jbpros has quit [Client Quit]
jrhe has joined #ruby
timonv has joined #ruby
Astral_ has quit [Ping timeout: 272 seconds]
cina has quit [Read error: No route to host]
hogeo has joined #ruby
Jetchisel has quit [Ping timeout: 260 seconds]
capicue has quit [Ping timeout: 244 seconds]
sergicles has joined #ruby
hogeo has quit [Read error: Connection reset by peer]
hogeo has joined #ruby
cina has joined #ruby
jonathanwallace has joined #ruby
zeeraw has joined #ruby
pithagorians has quit [Ping timeout: 252 seconds]
leonidlm has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
heftig has quit [Ping timeout: 245 seconds]
jbpros has joined #ruby
sergicles has quit [Client Quit]
heftig has joined #ruby
jbpros has quit [Client Quit]
hogeo has quit [Ping timeout: 252 seconds]
jonathanwallace has quit [Ping timeout: 252 seconds]
existensil has quit [Quit: leaving]
samfisher has quit [Quit: exit error code 434]
jbpros has joined #ruby
jonathanwallace has joined #ruby
jbpros has quit [Client Quit]
skaflem has joined #ruby
lkba has quit [Read error: Connection reset by peer]
lkba has joined #ruby
anthrax has quit [Changing host]
anthrax has joined #ruby
VTLob has joined #ruby
jonathanwallace has quit [Ping timeout: 252 seconds]
brianpWins has quit [Ping timeout: 264 seconds]
ananthakumaran has joined #ruby
vlad_starkov has joined #ruby
ananthakumaran1 has quit [Ping timeout: 272 seconds]
simoz has quit [Ping timeout: 248 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
starchild_ has joined #ruby
spider-mario has joined #ruby
MrZYX|off is now known as MrZYX
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
Guest83463 has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
ananthakumaran1 has joined #ruby
ananthakumaran has quit [Ping timeout: 245 seconds]
anthrax has quit [Quit: Leaving]
zoee has joined #ruby
Jetchisel has joined #ruby
ananthakumaran1 has quit [Client Quit]
timonv has quit [Ping timeout: 265 seconds]
vlad_starkov has joined #ruby
capicue has joined #ruby
brennanMKE has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
brennanMKE has quit [Ping timeout: 244 seconds]
capicue has quit [Ping timeout: 272 seconds]
starchild_ has quit [Ping timeout: 264 seconds]
weszlem has joined #ruby
bruno- has joined #ruby
timonv has joined #ruby
brtdv has quit []
canoon has joined #ruby
vlad_starkov has joined #ruby
arietis has joined #ruby
bruno- has quit [Client Quit]
bruno- has joined #ruby
coldmethod has quit [Ping timeout: 244 seconds]
heftig has quit [Ping timeout: 245 seconds]
zipper has quit [Ping timeout: 272 seconds]
heftig has joined #ruby
blackmesa has joined #ruby
weszlem has quit []
Xeago has quit [Remote host closed the connection]
weszlem has joined #ruby
TheShaun|AFK is now known as TheShaun
zipper has joined #ruby
bradhe has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
heftig has quit [Ping timeout: 245 seconds]
bradhe has quit [Ping timeout: 252 seconds]
zarubin has quit [Ping timeout: 245 seconds]
leonidlm has quit [Ping timeout: 272 seconds]
Xeago has joined #ruby
kraljev has joined #ruby
<kraljev> Hey, ruby is weird
_Andres has joined #ruby
tomasso has joined #ruby
<kraljev> using net::http
<kraljev> even if i set user agent to: Mozilla/5.0 (Windows NT 6.1; rv:21.0) Gecko/20130401 Firefox/21.0
<kraljev> it gets set to:
<kraljev> Ruby, Mozilla/5.0 (Windows NT 6.1; rv:21.0) Gecko/20130401 Firefox/21.0
canoon has quit [Ping timeout: 240 seconds]
aryaching has joined #ruby
mrfoto has joined #ruby
Seus has quit [Ping timeout: 240 seconds]
petey has joined #ruby
aryaching has quit [Ping timeout: 245 seconds]
ExCa|iBuR has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
capicue has joined #ruby
vince_prignano has quit []
carraroj has joined #ruby
Elhu has joined #ruby
mrfoto has quit [Client Quit]
mrfoto has joined #ruby
Xeago has quit [Remote host closed the connection]
newbiehacker has joined #ruby
<MrZYX> minimal example to reproduce?
petey has quit [Ping timeout: 244 seconds]
hogeo has joined #ruby
capicue has quit [Ping timeout: 245 seconds]
jonathanwallace has joined #ruby
canoon has joined #ruby
_Andres has joined #ruby
leonidlm has joined #ruby
aryaching has joined #ruby
canton7 has joined #ruby
hogeo has quit [Ping timeout: 272 seconds]
jonathanwallace has quit [Ping timeout: 244 seconds]
<kraljev> req = Net::HTTP::Post.new '/index.php'
<kraljev> req.set_form_data a: 10
<kraljev> req.add_field 'User-Agent', 'Mozilla/5.0 (Windows NT 6.1; rv:21.0) Gecko/20130401 Firefox/21.0'
jonathanwallace has joined #ruby
<nanothief> kraljev: instead of req.add_field, try req["user-agent"] = ...
addisaden has joined #ruby
<MrZYX> kraljev: add_field as in add value, there's already the value "Ruby" set for that field in the line I linked
addisaden has quit [Quit: WeeChat 0.4.2]
kraljev has quit [Remote host closed the connection]
heftig has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
osvico has quit [Ping timeout: 272 seconds]
zeeraw has quit [Quit: Computer has gone to sleep.]
kraljev has joined #ruby
jonathanwallace has quit [Ping timeout: 265 seconds]
<kraljev> here you go, minimal example
<kraljev> uses the site ip-api to get headers
<MrZYX> so you missed the responses to your earlier example?
<kraljev> yes, apparently
<kraljev> the connection is so unstable here
shvelo_ has joined #ruby
sergicles has joined #ruby
pdimitrov has quit [Ping timeout: 245 seconds]
pr0ggie has quit [Ping timeout: 244 seconds]
bruno- has quit [Quit: leaving]
pr0ggie has joined #ruby
bruno- has joined #ruby
bruno- has quit [Client Quit]
pdimitrov has joined #ruby
bruno- has joined #ruby
heftig has quit [Ping timeout: 264 seconds]
thepumpkin has joined #ruby
bruno- has quit [Client Quit]
bruno- has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
kraljev has left #ruby [#ruby]
thepumpkin has joined #ruby
bruno- has quit [Client Quit]
bruno- has joined #ruby
banisterfiend has joined #ruby
nfk has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
nfk has quit [Changing host]
nfk has joined #ruby
bruno- has quit [Client Quit]
bruno- has joined #ruby
cina has quit [Ping timeout: 240 seconds]
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
matsumoto__ has quit [Quit: Tiarra 0.1+svn-36726: SIGTERM received; exit]
cina has joined #ruby
thepumpkin has quit [Ping timeout: 272 seconds]
carraroj has quit [Ping timeout: 272 seconds]
bruno- has quit [Client Quit]
<robertjpayne> In ruby is === supposed to be more or less specific than ==?
bruno- has joined #ruby
<robertjpayne> In most languages I thought === is a value + type comparison vs just a value comparison for ==
brennanMKE has joined #ruby
<MrZYX> in general less specific
kaspergrubbe has joined #ruby
capicue has joined #ruby
sophomorical has quit [Ping timeout: 240 seconds]
newbiehacker_ has joined #ruby
<MrZYX> a good example is Module#===, String === "foo" #=> true
brennanMKE has quit [Read error: Connection reset by peer]
<MrZYX> also note that the case when statement uses === in ruby
<apeiros> Enumerable#grep too
brennanMKE has joined #ruby
Hien has quit [Ping timeout: 252 seconds]
Dwarf has quit [Ping timeout: 240 seconds]
Hien has joined #ruby
<leonidlm> Hi everyone. Does somebody knows how I can do a deep merge of an alias in a YAML file?
sophomorical has joined #ruby
kidoz has joined #ruby
newbiehacker has quit [Ping timeout: 252 seconds]
capicue has quit [Ping timeout: 264 seconds]
kirun has joined #ruby
brennanMKE has quit [Ping timeout: 248 seconds]
timonv has quit [Remote host closed the connection]
Dwarf has joined #ruby
timonv has joined #ruby
heftig has joined #ruby
byprdct has joined #ruby
newbiehacker_ has quit [Ping timeout: 245 seconds]
gyre007 has joined #ruby
bradhe has joined #ruby
timonv has quit [Ping timeout: 264 seconds]
cina has quit [Ping timeout: 272 seconds]
eka has joined #ruby
popl has quit [Quit: We must make an idol of our fear, and call it God.]
newbiehacker_ has joined #ruby
Czupa has joined #ruby
Niniane has joined #ruby
robertjpayne has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 272 seconds]
^Chris^ has joined #ruby
Guest51536 has quit [Ping timeout: 245 seconds]
fluffheadsr has joined #ruby
fluffheadsr is now known as Guest64279
vlad_starkov has joined #ruby
ravster has joined #ruby
timonv has joined #ruby
zipper has quit [Ping timeout: 245 seconds]
t_p has joined #ruby
marco_ has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
marco_ has quit [Quit: Leaving]
vlad_starkov has quit [Read error: Connection reset by peer]
Trynemjoel has quit [Quit: Trynemjoel]
marr has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
BizarreCake has joined #ruby
ehaliewicz has quit [Ping timeout: 248 seconds]
ziyan has quit [Ping timeout: 241 seconds]
hiroyuki_ has joined #ruby
shvelo_ is now known as shvelo
shvelo has quit [Changing host]
shvelo has joined #ruby
ziyan has joined #ruby
Thanatermesis has joined #ruby
vlad_starkov has joined #ruby
mrgt has joined #ruby
hiroyuki has quit [Ping timeout: 272 seconds]
<mrgt> New to Ruby. Any good place to find a list of APIs?
Elhu has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
Elhu has quit [Client Quit]
<MrZYX> as in stdlib / core APIs?
nism has joined #ruby
capicue has joined #ruby
ExCa|iBuR has quit [Quit: timed out by beer]
hogeo has joined #ruby
sevenseacat has joined #ruby
<MrZYX> mrgt: ^
jonathanwallace has joined #ruby
hiroyuki_ has quit [Ping timeout: 265 seconds]
ravster has quit [Quit: Leaving.]
capicue has quit [Ping timeout: 248 seconds]
jrhe has quit [Quit: jrhe]
hogeo has quit [Ping timeout: 272 seconds]
jonathanwallace has quit [Ping timeout: 240 seconds]
^Chris^ has quit [Ping timeout: 248 seconds]
lyanchih has joined #ruby
danshultz has joined #ruby
kofno has joined #ruby
jonathanwallace has joined #ruby
zastern has joined #ruby
mweshi has joined #ruby
rockets has quit [Ping timeout: 245 seconds]
Elhu has joined #ruby
jonathanwallace has quit [Ping timeout: 245 seconds]
mixel has joined #ruby
rjhunter has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
^Chris^ has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
sepp2k has quit [Quit: Leaving.]
michael_mbp is now known as zz_michael_mbp
zz_michael_mbp is now known as michael_mbp
m8 has joined #ruby
Dave has joined #ruby
nism has quit [Ping timeout: 264 seconds]
Dave is now known as Guest62190
dangerousdave has quit [Ping timeout: 240 seconds]
zipper has joined #ruby
vlad_starkov has joined #ruby
flops has joined #ruby
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
dangerousdave has joined #ruby
kleinerdrache has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
<kleinerdrache> is there a faster way to get the time than Time.now in ruby? I just need the secs
<zipper> Uh how can I extract each element of from an array so that I may pass it as a parameter?
<matled> kleinerdrache: no, that's the way to go.
<kleinerdrache> or is there any other way o mesure the speed of my script (many times)
<zipper> e.g ["cat", "feline"]
Guest62190 has quit [Ping timeout: 252 seconds]
<matled> kleinerdrache: see the benchmark module
<kleinerdrache> benchmark, ok, thanks
postmodern has quit [Quit: Leaving]
kaspergrubbe has quit [Remote host closed the connection]
<flops> kleinerdrache: unix time command
<zipper> how can they be extracted so as to easily be passed as parameters to a method
kaspergrubbe has joined #ruby
<flops> zipper: what's the method in question?
<kleinerdrache> flops, but then i need some system calls, which are slower I think
<MrZYX> zipper: yes, see the splat operator: def foo(species, name); end; foo(*['cat', 'feline'])
timonv has quit [Ping timeout: 245 seconds]
<zipper> MrZYX: yeah that worked
<zipper> flops: the array in question doesn't really matter
<zipper> flops: I'm doing the koans and I'm stuck at message passing
<flops> zipper: ok
<flops> I meant the method's params
<flops> but now that you got it anyways...
leonidlm has quit [Read error: Connection reset by peer]
TheShaun is now known as TheShaun|AFK
capicue has joined #ruby
brennanMKE has joined #ruby
thelorax123 has joined #ruby
bradhe has joined #ruby
dhruvasagar has quit [Ping timeout: 245 seconds]
<kleinerdrache> what is the fastes way to check if my loop run at least 3 seconds till now?
capicue has quit [Ping timeout: 252 seconds]
brennanMKE has quit [Ping timeout: 240 seconds]
danshultz has quit [Remote host closed the connection]
DouweM has quit [Ping timeout: 245 seconds]
danshultz has joined #ruby
<waxjar> Benchmark.measure { your_loop }.real > 3 ?
einarj has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
<MrZYX> I think he wants it as a loop condition
platzhirsch has joined #ruby
hiroyuki has joined #ruby
SeySayux has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
DouweM has joined #ruby
lyanchih has left #ruby [#ruby]
samfisher has joined #ruby
<MrZYX> so start = Time.now; while Time.now-start < 3; stuff; end ?
zigomir has quit [Ping timeout: 245 seconds]
<waxjar> ah, Timeout.timeout may be useful then
<MrZYX> dangerous though
<MrZYX> there's no thread safe way to stop a thread, even Java deprecated Thread.stop in line 1.2 or something
danshultz has quit [Ping timeout: 272 seconds]
<MrZYX> *version
<waxjar> everything's dangerous these days :(
<samfisher> i have a huge problem with a gem that has a method returning an object whose attributes are amount and currency: Balance:0x9c9a2d0 @currency="USD", @amount=0.01424
<samfisher> i don't know how to take that amount
blackmesa has quit [Ping timeout: 240 seconds]
<kleinerdrache> waxjar, thanks... but i'd like to know it inside my loop
shvelo has quit [Ping timeout: 272 seconds]
<zipper> WOOOOOOOOOOOOOO!!!!
<zipper> I'M SO HAPPY I COULD BURST RIGHT NOW
SeySayux has joined #ruby
<MrZYX> kleinerdrache: see my example, not pretty but should work
<zipper> I just made some code pass some tests I didn't understand
<samfisher> any idea for my problem?
<kleinerdrache> MrZYX, that what i did before, seeing that it slows down the loop...
<MrZYX> samfisher: we can just guess (so better get the docs or at least pry) but try .amount
<sevenseacat> samfisher: read the docs for whatever gem you're using?
<zipper> I really don't get this message passing through a proxy class but I made it pass each and every test
klaas has joined #ruby
<kleinerdrache> MrZYX, i think the Time class is very slow... maybe i could just read the unix seconds instead of a full object
<kleinerdrache> creation
<samfisher> sevenseacat: I read it but it doesn't make any sense. already tried .amount
timonv has quit [Ping timeout: 272 seconds]
<sevenseacat> samfisher: show us the docs?
calmyournerves has left #ruby [#ruby]
<MrZYX> what error are you getting for .amount?
<zipper> I shall not make it a habit
shvelo has joined #ruby
<samfisher> MrZYX: <main>': undefined method `amount' for #<Array:0x9cc43c8> (NoMethodError)
<sevenseacat> samfisher: what about http://rubydoc.info/gems/mtgox/1.1.0/MtGox/Balance are you having problems with?
<sevenseacat> so you dont have a Balance object, you have an array
<MrZYX> samfisher: you're calling it on an array, not a Balance object
rippa has joined #ruby
<samfisher> MrZYX: how do I call it an object?
leonidlm has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
havenwood has joined #ruby
<zipper> Which is the best way to shorten an if else statement?
apeiros_ has joined #ruby
<MrZYX> you have to call it _on_ a balance object, not _on_ a array object
<zipper> I use "foo" if true
<MrZYX> zipper: depends on the statement
<zipper> "foobar" if something else
<samfisher> MrZYX: you lost me... I use puts MtGox.balance.amount
_Andres has quit [Read error: Connection reset by peer]
<zipper> MrZYX: well explaining what I want is hard
kleinerdrache has quit [Quit: Ex-Chat]
<sevenseacat> basic ruby is hard.
<MrZYX> samfisher: according to your docs there's no MtGox::balance method
<waxjar> kleinerdrache, maybe you could create a separate thread that releases a mutex after sleeping for 3 secs. you just check wether the mutex's locked or not in your loop
kaspergrubbe has quit [Remote host closed the connection]
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
apeiros has quit [Ping timeout: 245 seconds]
<MrZYX> ah, it delegates to ::Client
kaspergrubbe has joined #ruby
<MrZYX> samfisher: http://rubydoc.info/gems/mtgox/1.1.0/MtGox/Client:balance pay attention to the return type
<samfisher> MrZYX: returns: array. So I have to declare an array so the return fits in it?
<MrZYX> no, it just means you're getting an array
<MrZYX> do you have pry?
<samfisher> MrZYX: no
<samfisher> installing it
coder_neo has quit [Quit: Leaving]
kofno has quit [Ping timeout: 264 seconds]
<MrZYX> get it, (gem install pry), start it (pry) and type in your script line by line, till you reach that .balance line
<zipper> MrZYX: this is what I meant: http://pastebin.com/eiqxH8RM
<MrZYX> then look at the output to see what it returns
<zipper> which is a better way to write an if else statement? Hopefully one that can shorten it into a one liner.
gyre007 has quit [Remote host closed the connection]
<MrZYX> zipper: I'd use the return keyword or even prefer example two in this specific case
<zipper> A small one like such: http://pastebin.com/eiqxH8RM
<zipper> MrZYX: return keyword? How would it help?
ananthakumaran1 has joined #ruby
ananthakumaran1 has quit [Max SendQ exceeded]
<MrZYX> that doesn't make too much sense for a two liner like that
ananthakumaran1 has joined #ruby
<MrZYX> but is a common thing to see to catch edge cases of the parameters of your method
<samfisher> MrZYX: same errors
<MrZYX> samfisher: of course
freerobby has joined #ruby
<MrZYX> that's why I said read the output
xk_id has joined #ruby
ananthakumaran has quit [Ping timeout: 272 seconds]
<zipper> MrZYX: Ah the method stops executing when it finds returmn
<zipper> *return
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
<MrZYX> yup
<samfisher> MrZYX: hmm, now the output of .balance is nicely formatted
<MrZYX> pry just calls inspect on it for you, really
<MrZYX> notice the [] around it
<MrZYX> that's the array
zeeraw has joined #ruby
<samfisher> MrZYX: oh oh now I have to learn how to get values for @ in the array!
petey has joined #ruby
<MrZYX> well, no
<MrZYX> this array isn't any different from, lets say ["foo", "bar"]
<MrZYX> it just contains Balance objects instead of String objects
<samfisher> MrZYX: ok, understood so far.
kinigitz has left #ruby [#ruby]
vlad_starkov has quit [Remote host closed the connection]
weszlem has quit []
<samfisher> and how would you get the values then?
knigitz has joined #ruby
<MrZYX> with the normal array operations, .first, [index], .each, .map, .last and so on
<MrZYX> so for example to print all amounts you could do .balance.each do |balance| puts balance.amount; end
hogeo has joined #ruby
capicue has joined #ruby
petey has quit [Ping timeout: 240 seconds]
bluOxigen has joined #ruby
ewnd9_ has joined #ruby
<samfisher> MrZYX: thank you, you just explained me I what's an array. I have to get the basics quick on ruby
<DouweM> :D
vlad_starkov has joined #ruby
<DouweM> Good job MrZYX :)
phinfonet has joined #ruby
weszlem has joined #ruby
hogeo has quit [Ping timeout: 272 seconds]
capicue has quit [Ping timeout: 244 seconds]
zipper has quit [Quit: leaving]
thelorax123 has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ananthakumaran1 has quit [Ping timeout: 245 seconds]
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
thelorax123 has joined #ruby
Elhu has joined #ruby
vince_prignano has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
<jb41> ;)
lurraca has joined #ruby
mweshi has quit [Quit: mweshi]
ananthakumaran has joined #ruby
brtdv has joined #ruby
jonathanwallace has joined #ruby
thepumpkin has joined #ruby
blackmesa has joined #ruby
lxsameer has quit [Quit: Leaving]
_maes_ has joined #ruby
ananthakumaran has quit [Ping timeout: 272 seconds]
ananthakumaran has joined #ruby
lurraca has quit [Read error: Connection reset by peer]
apeiros_ has quit [Ping timeout: 265 seconds]
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
thepumpkin has quit [Ping timeout: 264 seconds]
noakes has quit [Remote host closed the connection]
<jb41> guys, you also have such a lazy day, today?
endash has joined #ruby
thelorax123 has quit [Remote host closed the connection]
platzhirsch has quit [Quit: Leaving.]
lochan has joined #ruby
newbiehacker_ has quit [Ping timeout: 240 seconds]
thelorax123 has joined #ruby
platzhirsch has joined #ruby
<phinfonet> Hello
<havenwood> hellooo
<jb41> hi
<phinfonet> i'm having a trouble with my osx, anyone received a "illegal hardware instruction"?
^Chris^ has quit [Read error: Connection reset by peer]
christopherdupon has joined #ruby
christopherdupon is now known as ^Chris^
sbos99 has quit [Ping timeout: 245 seconds]
<MrZYX> wait, i'm on #osx?
relix has joined #ruby
<phinfonet> i'm on Mavericks
carraroj has joined #ruby
leonidlm has quit [Ping timeout: 252 seconds]
bradhe has joined #ruby
<sevenseacat> this isnt an osx support channel
<phinfonet> but my problem is with RUBY!!!
Czupa has quit [Quit: Wychodzi]
phansch has joined #ruby
<sevenseacat> you mentioned nothing about ruby
<sevenseacat> just osx
Czupa has joined #ruby
ananthakumaran1 has joined #ruby
ananthakumaran1 has quit [Max SendQ exceeded]
ananthakumaran has quit [Ping timeout: 272 seconds]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
Rollabunna has quit [Remote host closed the connection]
brennanMKE has joined #ruby
capicue has joined #ruby
lyanchih has joined #ruby
<phinfonet> sevenseacat: is a problem with gem install
cibs has quit [Ping timeout: 256 seconds]
einarj has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
brennanMKE has quit [Ping timeout: 272 seconds]
capicue has quit [Ping timeout: 245 seconds]
cibs has joined #ruby
Banistergalaxy has joined #ruby
platzhirsch has quit [Quit: Leaving.]
dangerousdave has quit [Ping timeout: 248 seconds]
cibs has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
lyanchih has quit [Quit: lyanchih]
Elhu_ has joined #ruby
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
Elhu has quit [Ping timeout: 245 seconds]
leonidlm has joined #ruby
cibs has joined #ruby
Trynemjoel has joined #ruby
simoz has joined #ruby
coderhs has quit [Ping timeout: 265 seconds]
zarubin has joined #ruby
St_Marx has joined #ruby
Elhu_ has quit [Quit: Computer has gone to sleep.]
platzhirsch has joined #ruby
havenwood has joined #ruby
thelorax123 has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
sergicles has left #ruby [#ruby]
kaspergrubbe has joined #ruby
cibs_ has joined #ruby
cibs has quit [Ping timeout: 256 seconds]
danshultz has joined #ruby
ananthakumaran has quit [Ping timeout: 244 seconds]
atno__ has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
joelio_ has quit [Ping timeout: 264 seconds]
Shidash has quit [Ping timeout: 240 seconds]
threesome has quit [Ping timeout: 248 seconds]
vlad_starkov has quit [Remote host closed the connection]
jamesaanderson has joined #ruby
sergicles has joined #ruby
danshultz has quit [Ping timeout: 245 seconds]
platzhirsch has quit [Quit: Leaving.]
hiall has quit [Quit: hiall]
lucazi has joined #ruby
kidoz has quit [Quit: Ухожу я от вас]
platzhirsch has joined #ruby
sbos99 has joined #ruby
Thanatermesis has joined #ruby
ExCa|iBuR has joined #ruby
kofno has joined #ruby
joelio has joined #ruby
nonamehero has quit [Ping timeout: 240 seconds]
hiroyuki has quit [Ping timeout: 264 seconds]
thelorax123 has joined #ruby
chris613 has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
sailias has joined #ruby
carraroj has quit [Ping timeout: 264 seconds]
carraroj has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
gemmy has joined #ruby
sepp2k has joined #ruby
samfisher has quit [Read error: Operation timed out]
ExCa|iBuR has quit [Quit: I was using serenepIRCh http://www.serenity-irc.net/ :-]
hogeo has joined #ruby
jrhe has joined #ruby
platzhirsch has quit [Quit: Leaving.]
Trynemjoel has joined #ruby
shvelo has quit [Quit: Ex-Chat]
shvelo_ has joined #ruby
capicue has joined #ruby
ananthakumaran1 has joined #ruby
ananthakumaran1 has quit [Max SendQ exceeded]
coderhs has joined #ruby
ananthakumaran1 has joined #ruby
havenwood has quit [Remote host closed the connection]
shredding has joined #ruby
ananthakumaran has quit [Ping timeout: 272 seconds]
<shredding> hey all.
nonamehero has joined #ruby
havenwood has joined #ruby
jonathanwallace has quit [Ping timeout: 241 seconds]
hiroyuki has joined #ruby
capicue has quit [Ping timeout: 264 seconds]
hiroyuki_ has joined #ruby
lyanchih has joined #ruby
<phinfonet> i'll stop to use ruvt
<phinfonet> *ruby
bklane has joined #ruby
gr33n7007h has joined #ruby
xk_id has quit [Quit:
Tuxist has joined #ruby
pu22l3r has joined #ruby
sevenseacat has quit [Quit: Leaving.]
lucazi has quit [Quit: Textual IRC Client: www.textualapp.com]
hiroyuki has quit [Ping timeout: 272 seconds]
bugsinlights has joined #ruby
jkamenik has joined #ruby
<shredding> Can someone tell me why this results in wrong number of arguments (0..1): tmp_path = release_path.join('tmp')
<shredding> run "mkdir -p #{tmp_path}"
thesheff17 has joined #ruby
<shredding> 1..0 sorry
<MrZYX> run doesn't take an argument?
<MrZYX> we can't really without a lot more context
thelorax123 has quit [Remote host closed the connection]
hogeo has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 272 seconds]
<shredding> MrZYX: This is my deploy script: https://gist.github.com/shredding/7399297
<MrZYX> there's no call to "run" in it
leonidlm has quit [Ping timeout: 272 seconds]
<shredding> It works with exectue, though :)
thelorax123 has joined #ruby
<shredding> MrZYX: sorry, I've changed line 17 to execute and it works.
<shredding> Don't know why.
<shredding> But since i'm here ... :)
<shredding> Basically I'm very new to ruby and am deploying a backbone app. So prior to my deployment i kick in the build.
<MrZYX> you might have better luck in #capistrano
ananthakumaran1 has quit [Ping timeout: 272 seconds]
ananthakumaran has joined #ruby
<shredding> The result of the build is not part of git
<shredding> MrZYX: Okay.
bradhe has joined #ruby
<shredding> It looked so nicely crowded here :)
Niniane has quit [Remote host closed the connection]
bootcoder has quit [Quit: Konversation terminated!]
bootcoder has joined #ruby
carraroj has quit [Ping timeout: 252 seconds]
chris613 has quit [Quit: Leaving.]
thelorax123 has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
JeanMertz has quit []
zarubin has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
havenwood has quit []
carraroj has joined #ruby
bradhe has quit [Ping timeout: 244 seconds]
artm has joined #ruby
sailias has joined #ruby
ValicekB has left #ruby [#ruby]
jonathanwallace has joined #ruby
timonv has joined #ruby
linduxed has joined #ruby
Banistergalaxy has quit [Ping timeout: 264 seconds]
platzhirsch has joined #ruby
thelorax123 has joined #ruby
MrZYX is now known as MrZYX|off
rodan- has joined #ruby
brennanMKE has joined #ruby
timonv has quit [Ping timeout: 272 seconds]
Czupa has quit [Read error: Connection reset by peer]
capicue has joined #ruby
leonidlm has joined #ruby
jkamenik has quit [Quit: Leaving.]
zoee has quit [Quit: This computer has gone to sleep]
ValicekB has joined #ruby
yfeldblum has joined #ruby
brennanMKE has quit [Ping timeout: 264 seconds]
capicue has quit [Ping timeout: 272 seconds]
rodan- has quit [Read error: Connection reset by peer]
rodan- has joined #ruby
tkuchiki has quit [Remote host closed the connection]
falood has joined #ruby
tomasso has quit [Read error: No route to host]
tkuchiki has joined #ruby
timonv has joined #ruby
hiall has joined #ruby
arkie has joined #ruby
maxiaojun has quit [Ping timeout: 272 seconds]
<arkie> is it okay to discuss RoR here or is there another channel for that?
maxiaojun has joined #ruby
mr_red has quit [Quit: Bye :)]
falood has quit [Ping timeout: 240 seconds]
MrZYX|off is now known as MrZYX
<jb41> there is #rubyonrails
mr_red has joined #ruby
Banistergalaxy has joined #ruby
<jb41> debugging ruby could be a pain
tkuchiki has quit [Ping timeout: 244 seconds]
arkie has left #ruby ["Leaving"]
jbw has quit [Ping timeout: 252 seconds]
einarj has joined #ruby
hogeo has joined #ruby
osvico has joined #ruby
newbiehacker_ has joined #ruby
<Banistergalaxy> Jb41 how so
matsumoto_r has joined #ruby
noop has quit [Ping timeout: 264 seconds]
noop has joined #ruby
Czupa has joined #ruby
einarj has quit [Ping timeout: 244 seconds]
jonathanwallace has quit [Ping timeout: 272 seconds]
thelorax123 has quit [Remote host closed the connection]
hogeo has quit [Ping timeout: 240 seconds]
mixel has quit [Quit: mixel]
weszlem has quit []
thelorax123 has joined #ruby
gemmy has quit [Read error: Connection reset by peer]
mixel has joined #ruby
<jb41> is there anything like executing code line by line in pry?
timonv has quit [Remote host closed the connection]
EvanR_ has joined #ruby
<jb41> ok, found such gem
timonv has joined #ruby
brtdv has quit []
<banisterfiend> jb41 what ruby version are you on?
ananthakumaran has quit [Quit: Leaving.]
petey has joined #ruby
thelorax123 has quit [Remote host closed the connection]
<jb41> 1.9.3p194
<jb41> why?
dhruvasagar has joined #ruby
jbw has joined #ruby
<jb41> wow, quite old, april '12 if I'm right
havenwood has joined #ruby
jkamenik has joined #ruby
Akuma has quit [Ping timeout: 260 seconds]
thelorax123 has joined #ruby
hogeo has joined #ruby
<banisterfiend> jb41 then use pry-debugger
<banisterfiend> jb41 if on ruby 2.0 then use pry-byebug
gemmy has joined #ruby
gemmy has quit [Client Quit]
timonv has quit [Ping timeout: 272 seconds]
<jb41> i'm working with pry-debugger, now
gyre007 has joined #ruby
<jb41> feels like in heaven ;p
satdroid has joined #ruby
petey has quit [Ping timeout: 244 seconds]
capicue has joined #ruby
weszlem has joined #ruby
blackmesa has quit [Remote host closed the connection]
hogeo has quit [Ping timeout: 272 seconds]
m8 has quit [Quit: Sto andando via]
havenwood has quit []
Akuma has joined #ruby
OdNairy has joined #ruby
newbiehacker_ has quit [Read error: Connection reset by peer]
newbiehacker_ has joined #ruby
EHLOVader has quit [Ping timeout: 245 seconds]
<banisterfiend> jb41 cool, also check out pry-stack_explorer and pry-rescue
capicue has quit [Ping timeout: 272 seconds]
gr33n7007h has quit [Quit: Where's John Conner]
EHLOVader has joined #ruby
shvelo_ has quit [Ping timeout: 272 seconds]
OdNairy has quit [Ping timeout: 264 seconds]
xk_id has joined #ruby
Clooth has joined #ruby
awarner has joined #ruby
kofno has quit [Ping timeout: 241 seconds]
thepumpkin has joined #ruby
bruno- has quit [Ping timeout: 244 seconds]
bruno- has joined #ruby
platzhirsch has quit [Quit: Leaving.]
bradhe has joined #ruby
OdNairy has joined #ruby
jrhe has quit [Read error: No route to host]
devoldmx has quit [Ping timeout: 245 seconds]
artm has quit [Ping timeout: 252 seconds]
devoldmx has joined #ruby
jibi has joined #ruby
leonidlm has quit [Ping timeout: 248 seconds]
seoNinjaWarrior has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jrhe has joined #ruby
jamesaanderson has joined #ruby
thepumpkin has quit [Ping timeout: 264 seconds]
awarner has quit [Ping timeout: 264 seconds]
ziyan has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 248 seconds]
pithagorians has joined #ruby
laputa has joined #ruby
hiyosi has quit [Ping timeout: 252 seconds]
thelorax123 has quit [Remote host closed the connection]
Speed has joined #ruby
thelorax123 has joined #ruby
JohnBat26 has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lyanchih has quit [Ping timeout: 265 seconds]
havenwood has joined #ruby
JohnBat26 has quit [Client Quit]
<jb41> banisterfiend: will check it, thanks
platzhirsch has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
zz_scottstamp is now known as scottstamp
jkamenik has quit [Quit: Leaving.]
leonidlm has joined #ruby
brennanMKE has joined #ruby
shvelo_ has joined #ruby
zz_tsykoduk is now known as tsykoduk
newbiehacker` has joined #ruby
capicue has joined #ruby
jbw has quit [Ping timeout: 240 seconds]
jamesaanderson has joined #ruby
LexicalScope has joined #ruby
bklane_ has joined #ruby
codenapper has joined #ruby
brennanMKE has quit [Ping timeout: 252 seconds]
newbiehacker_ has quit [Ping timeout: 272 seconds]
mlpinit has joined #ruby
bruno- has quit [Quit: leaving]
jbw has joined #ruby
bklane has quit [Ping timeout: 264 seconds]
bruno- has joined #ruby
thelorax123 has quit [Remote host closed the connection]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
capicue has quit [Ping timeout: 272 seconds]
scottstamp is now known as zz_scottstamp
devoldmx has quit [Quit: Shutting down]
leonidlm has quit [Ping timeout: 272 seconds]
bruno- has quit [Client Quit]
devoldmx has joined #ruby
thelorax123 has joined #ruby
sailias has quit [Ping timeout: 252 seconds]
bruno- has joined #ruby
<AntelopeSalad> hey guys, i have a refactoring question. it has a very tiny bit of activerecord code in it but it's more of a general ruby question imo
<AntelopeSalad> how would i go about refactoring these 3 methods that are in 2 different classes? https://gist.github.com/anonymous/7391758 , they are not quite the same but are pretty similar , should i just them as is or is there something i can do to clean it up? realistically i have about 10 of these similar but not the same methods across 5 classes
ewnd9_ has quit [Ping timeout: 248 seconds]
awarner has joined #ruby
laputa has quit [Ping timeout: 272 seconds]
havenwood has quit [Ping timeout: 244 seconds]
lukec has joined #ruby
bruno- has quit [Client Quit]
nbrosnahan has quit [Ping timeout: 245 seconds]
CaptainJet has joined #ruby
newbiehacker` has quit [Ping timeout: 265 seconds]
Czupa has quit [Quit: Wychodzi]
Czupa has joined #ruby
newbiehacker` has joined #ruby
hiyosi has joined #ruby
lethjakman has joined #ruby
<MrZYX> well, they have basically three method calls in common, .where(id: ids), .each and .save(validate: true), so I probably wouldn't care
mrsolo has joined #ruby
<AntelopeSalad> MrZYX: so you would be ok with having about 10 similar methods across a few classes?
nbrosnahan has joined #ruby
<MrZYX> you could define a helper method like def update_all(ids) self.class.where(id: ids).each do |obj| yield obj; obj.save(validate: true); end; end, put that into a module and include it in all your classes
<AntelopeSalad> most of them just have a different condition and then set 1 or 2 attributes
drago777 has joined #ruby
diegoviola has joined #ruby
<MrZYX> but I'd only do that if I've at least 3-5 of such helper methods
<MrZYX> disclaimer: this largely personal opinion
Xaitec has joined #ruby
shaileshg__ has joined #ruby
<AntelopeSalad> hmm, how would you handle the custom conditions for each method tho?
<AntelopeSalad> each one has none, 1 or more conditions before the where clause occurs
<AntelopeSalad> it seemed really ugly to consider putting the condition in the method call (this would end up in the controller then in a rails app)
<MrZYX> my example helper would replace your ifs body, with a block like {|employee| employee.account_id = nil }
awarner has quit [Ping timeout: 264 seconds]
moeSeth_ has joined #ruby
nateberkopec has joined #ruby
kenichi_ has joined #ruby
drago777- has quit [Ping timeout: 240 seconds]
shaileshg_ has quit [Ping timeout: 240 seconds]
fbernier has quit [Ping timeout: 240 seconds]
moeSeth has quit [Ping timeout: 240 seconds]
kenichi has quit [Ping timeout: 240 seconds]
nonamehero has quit [Ping timeout: 240 seconds]
rhys has quit [Remote host closed the connection]
<AntelopeSalad> in your example the yield is inside of the .each loop though, the if happens outside
moeSeth_ is now known as moeSeth
Morrolan has quit [Ping timeout: 240 seconds]
rhys has joined #ruby
lethjakm1 has joined #ruby
hiyosi has quit [Ping timeout: 264 seconds]
thelorax123 has quit [Remote host closed the connection]
bruno- has joined #ruby
<AntelopeSalad> or are you saying to just abstract the where call and keep the if stuff specific to each method?
<MrZYX> sure, if condition; update_all(ids) do |foo| foo.attr = something; end; end;
Morrolan has joined #ruby
bruno- has quit [Client Quit]
<MrZYX> yes, I'm saying to do that, if anything
fbernier has joined #ruby
newbiehacker` has quit [Ping timeout: 245 seconds]
<MrZYX> if you want to go crazy you could define a method that defines your method
<AntelopeSalad> some of them might need validations too, in these cases they do not so maybe i should just keep everything as is?
nonamehero has joined #ruby
<MrZYX> as said it's largely personal opinion, I'd probably just attempt it if I've at least two more similar patterns I could extract into a common module
thelorax123 has joined #ruby
lethjakman has quit [Ping timeout: 245 seconds]
blackmesa has joined #ruby
Banistergalaxy has quit [Ping timeout: 245 seconds]
<AntelopeSalad> it would be a terrible to make a Bulk class and then put in 10 or so methods that are being used in many AR classes right?
<AntelopeSalad> i figured it might be the start of a "code smell" that i found myself typing "bulk_" a lot in method names
bruno- has joined #ruby
bruno- has quit [Client Quit]
bklane_ has quit [Quit: Leaving...]
thelorax123 has quit [Remote host closed the connection]
havenwood has joined #ruby
bruno- has joined #ruby
bruno- has quit [Client Quit]
<MrZYX> yet they're still pretty diverse
bruno- has joined #ruby
<MrZYX> with/without condition, arbitrary conditions, arbitrary number of changed attributes, save with/without validate
<MrZYX> that makes a huge number of possible variations
thelorax123 has joined #ruby
wallerdev has joined #ruby
<AntelopeSalad> ok thanks for the insight
<banisterfiend> AntelopeSalad MrZYX is an expert
<MrZYX> heh...
<AntelopeSalad> when you break it out like that then it seems reasonable for them to be separate
petey has joined #ruby
petey has quit [Read error: Connection reset by peer]
havenwood has quit [Remote host closed the connection]
petey has joined #ruby
hogeo has joined #ruby
Tearan has joined #ruby
axl_ has joined #ruby
weszlem has quit []
hogeo has quit [Ping timeout: 272 seconds]
thelorax123 has quit [Remote host closed the connection]
maxiaojun has left #ruby [#ruby]
h0rrorvacui has joined #ruby
capicue has joined #ruby
Monie has joined #ruby
bio is now known as Biohazard
Xaitec has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 264 seconds]
inorganicorc has joined #ruby
IceDragon has joined #ruby
thelorax123 has joined #ruby
bruno- has quit [Quit: leaving]
bruno- has joined #ruby
iamjarvo has joined #ruby
bradhe has joined #ruby
mrfoto has quit []
nbrosnahan has quit [Ping timeout: 252 seconds]
bruno- has quit [Client Quit]
iamjarvo has quit [Client Quit]
newbiehacker` has joined #ruby
capicue has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
horseislikeaman has quit [Ping timeout: 240 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bruno- has quit [Client Quit]
bruno- has joined #ruby
inorganicorc has quit [Quit: Leaving]
weszlem has joined #ruby
bruno- has quit [Client Quit]
icecandy has joined #ruby
bruno- has joined #ruby
bradhe has quit [Ping timeout: 265 seconds]
newbiehacker` has quit [Ping timeout: 245 seconds]
bruno- has quit [Client Quit]
<joshu> hi anyone worked with Shopify Dashing dashboard gem? I'm trying to create a simple dashboard with data coming in via API curl calls and not using the scheduler jobs. My first widget just increments its value on every API call but I'm not getting the widget to display the value.
Guest76853 has joined #ruby
larissa has joined #ruby
nbrosnahan has joined #ruby
apeiros has joined #ruby
relix has joined #ruby
derebos has quit [Ping timeout: 264 seconds]
weszlem has quit [Client Quit]
brennanMKE has joined #ruby
thelorax123 has quit [Remote host closed the connection]
bruno- has joined #ruby
robbyoconnor has quit [Ping timeout: 264 seconds]
bruno- has quit [Client Quit]
thelorax123 has joined #ruby
kofno has joined #ruby
axl_ has quit [Quit: axl_]
bruno- has joined #ruby
Speed has left #ruby ["WeeChat 0.4.2"]
bruno- has quit [Client Quit]
kobain has joined #ruby
awarner has joined #ruby
thelorax123 has quit [Remote host closed the connection]
mlpinit has quit [Quit: Leaving...]
d45h has quit [Ping timeout: 264 seconds]
kofno has quit [Ping timeout: 252 seconds]
newbiehacker` has joined #ruby
zarubin has joined #ruby
thelorax123 has joined #ruby
bruno- has joined #ruby
axl_ has joined #ruby
newbiehacker` has quit [Client Quit]
awarner has quit [Ping timeout: 245 seconds]
bruno- has quit [Client Quit]
Fire-Dragon-DoL has joined #ruby
bruno- has joined #ruby
maletor has joined #ruby
jibi has quit [Ping timeout: 272 seconds]
mweshi has joined #ruby
thepumpkin has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
bluOxigen has quit [Ping timeout: 264 seconds]
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
platzhirsch has quit [Remote host closed the connection]
zz_scottstamp is now known as scottstamp
thepumpkin has joined #ruby
thelorax123 has quit [Remote host closed the connection]
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
<joshu> cross posting in sinatra
kofno has joined #ruby
devoldmx3 has joined #ruby
rehat has joined #ruby
axl_ has quit [Quit: axl_]
thelorax123 has joined #ruby
devoldmx has quit [Ping timeout: 272 seconds]
jbpros has joined #ruby
psyprus has quit [Read error: Connection reset by peer]
capicue has joined #ruby
thelorax123 has quit [Remote host closed the connection]
axl_ has joined #ruby
psyprus has joined #ruby
aspires has joined #ruby
volty has joined #ruby
thelorax123 has joined #ruby
thepumpkin has quit [Ping timeout: 264 seconds]
thelorax123 has quit [Remote host closed the connection]
capicue has quit [Ping timeout: 272 seconds]
scottstamp is now known as zz_scottstamp
wallerdev has quit [Quit: wallerdev]
thelorax123 has joined #ruby
brennanMKE has quit [Remote host closed the connection]
icecandy has quit [Quit: Going offline, see ya! (www.adiirc.com)]
devoldmx3 has quit [Read error: Connection reset by peer]
timonv has joined #ruby
devoldmx has joined #ruby
baroquebobcat has joined #ruby
hiyosi has joined #ruby
weszlem has joined #ruby
weszlem has quit [Client Quit]
tsykoduk is now known as zz_tsykoduk
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
kobain has quit []
OdNairy has joined #ruby
jbpros has quit [Quit: jbpros]
mrgt has quit [Quit: Leaving.]
bugsinlights has quit [Ping timeout: 240 seconds]
timonv has quit [Ping timeout: 252 seconds]
kofno has quit [Ping timeout: 264 seconds]
gr33n7007h has joined #ruby
aspires has quit [Quit: sudo making a sandwich]
<gr33n7007h> How can I totally get rid of Pry and all of it's plugins and conf files?
hiyosi has quit [Ping timeout: 248 seconds]
thelorax123 has quit [Remote host closed the connection]
thepumpkin has joined #ruby
<gr33n7007h> How can I totally get rid of Pry and all of it's plugins and conf files?
ua_ has quit [Quit: Leaving]
aspires has joined #ruby
thelorax123 has joined #ruby
<rehat> if I have WYSIWYG text, is there a way to embed the content in a erb file or do I need to use javascript to embed it
axl_ has quit [Quit: axl_]
brennanMKE has joined #ruby
CreativeEmbassy has joined #ruby
hogeo has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
chris613 has joined #ruby
chris613 has left #ruby [#ruby]
<banisterfiend> gr33n7007h gem list |grep pry
samfisher has joined #ruby
<banisterfiend> gr33n7007h then unistall them
thepumpkin has quit [Ping timeout: 272 seconds]
<banisterfiend> gr33n7007h and it's spelt "its" in that case ;)
snuffeluffegus has joined #ruby
hogeo has quit [Ping timeout: 252 seconds]
brennanMKE has quit [Ping timeout: 272 seconds]
hogeo has joined #ruby
thelorax123 has quit [Remote host closed the connection]
zipper has joined #ruby
Lewix has joined #ruby
bradhe has joined #ruby
thelorax123 has joined #ruby
aspires has quit [Quit: sudo making a sandwich]
kofno has joined #ruby
thelorax123 has quit [Remote host closed the connection]
hogeo has quit [Ping timeout: 272 seconds]
shvelo_ is now known as shvelo
shvelo has quit [Changing host]
shvelo has joined #ruby
agustinvinao has joined #ruby
thelorax123 has joined #ruby
capicue has joined #ruby
EvanR_ has quit [Ping timeout: 252 seconds]
bradhe has quit [Ping timeout: 272 seconds]
petey has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
sross07 has joined #ruby
mweshi has quit [Quit: mweshi]
krz has joined #ruby
snath has quit [Ping timeout: 264 seconds]
tomzx_mac has joined #ruby
Xaitec has joined #ruby
capicue has quit [Ping timeout: 248 seconds]
weszlem has joined #ruby
wallerdev has joined #ruby
ua has joined #ruby
mary5030 has joined #ruby
jonathanwallace has joined #ruby
<gr33n7007h> banisterfiend, will try that, thanks
anderson has quit [Quit: Leaving]
arietis has joined #ruby
yacks has joined #ruby
<banisterfiend> gr33n7007h why would u want to uninstall pry anyway, it's the best thing in this sad fossil world.. ;)
thelorax123 has quit [Remote host closed the connection]
brennanMKE has joined #ruby
sayan has joined #ruby
timonv has joined #ruby
leonidlm has joined #ruby
thelorax123 has joined #ruby
<gr33n7007h> banisterfiend, By far but i've got an error with coolline. I was thinking uninstalling then re-installing may fix it
<banisterfiend> gr33n7007h ah, just uninstall pry-coolline should do it
mrfoto has joined #ruby
<mrfoto> i need some help with regex
<mrfoto> i only need to replace the match of the regex
<mrfoto> and leave the rest as is
<gr33n7007h> banisterfiend, I'll try uninstalling just coolline then ;)
<MrZYX> mrfoto: and what's the problem with that?
<mrfoto> i dont know how, gsub replaces the whole thing, i just want to replace the match group - the thing in () - with something else
<MrZYX> make the regex just match what you currently have in the matchgroup then
anderson has joined #ruby
<MrZYX> by using lookarounds and non matching groups etc if needed
dmyers has joined #ruby
snath has joined #ruby
<mrfoto> i need to replace z's that are followed by some letters with s's
<mrfoto> @text.gsub!(/\s(z)\s[ptksfhcš]/, 's')
<mrfoto> this replaces the whole thing, not just the z
brennanMKE has quit [Ping timeout: 272 seconds]
nateberkopec has quit [Quit: Leaving...]
<MrZYX> use a lookahead
pskosinski has joined #ruby
sayan has quit [Ping timeout: 245 seconds]
gr33n7007h has quit [Quit: Where's John Conner]
<banisterfiend> TIL That Target had to issue an apology to its customers following outrage about the fact that a popular dress was offered in a color "Dark heather gray" for normal sizes, but the same color was titled "Manatee gray" for plus-sized dresses.
<rehat> how do I add text inside a div tag in erb?
<rehat> this text has html content
bklane has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
petey has joined #ruby
<mrfoto> MrZYX: but how do I use two lookarounds in one regex
<MrZYX> just do it
<mrfoto> cause i need whitespace before the z and whitespace followed by a character after
timonv has quit [Remote host closed the connection]
rdalin has joined #ruby
timonv has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<mrfoto> MrZYX: this gives me empty @text.scan(/(?=\s)z(?=\s[ptksfhcš])/)
<MrZYX> you want a lookbehind for the first one, (?<=\s)
robbyoconnor has joined #ruby
<mrfoto> MrZYX: oh, thanks a lot, that worked...regex still gets me confused :P
<MrZYX> check rubular.com, great site for experimenting
<MrZYX> also regexcrossword.com
krz has quit [Quit: krz]
hiyosi has joined #ruby
zz_scottstamp is now known as scottstamp
EvanR has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
rumi has joined #ruby
<zipper> Uh would anyone recommend a GUI library for a ruby beginner?
EvanR is now known as Guest58101
<zipper> I am using shoes but I realised that I actually use shoes as an app to open my ruby files.
sayan has joined #ruby
<zipper> So it felt too beginner and obviously super cannot be deployed
robbyoconnor has quit [Ping timeout: 272 seconds]
atno has joined #ruby
jonathanwallace has quit [Read error: Operation timed out]
<mrfoto> MrZYX: yes, i already use rubular for building it, i just dont know a lot about advanced usage :P
superscott[8] has joined #ruby
aagdbl has joined #ruby
agustinvinao has quit [Remote host closed the connection]
thepumpkin has joined #ruby
thelorax1231 has joined #ruby
nism has joined #ruby
capicue has joined #ruby
thelorax1231 has quit [Remote host closed the connection]
thelorax1231 has joined #ruby
thepumpkin has quit [Ping timeout: 240 seconds]
seoNinjaWarrior has quit [Quit: Textual IRC Client: www.textualapp.com]
srji has joined #ruby
capicue has quit [Ping timeout: 244 seconds]
theKayhan has joined #ruby
<banisterfiend> zipper i just write web apps these days, by far the most 'portable' :)
theKayhan has quit [Remote host closed the connection]
thelorax1231 has quit [Remote host closed the connection]
coldmethod has joined #ruby
theKayhan has joined #ruby
shvelo has quit [Ping timeout: 272 seconds]
shvelo_ has joined #ruby
Guest58101 has quit [Ping timeout: 240 seconds]
threesome has joined #ruby
Guest76853 has quit [Remote host closed the connection]
thelorax1231 has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
Elhu has joined #ruby
<zipper> banisterfiend: I didn't understand what you said? Are you saying that if I wanted to build GUI apps that maybe ruby isn't the way?
<zipper> You make sense though.
rickmasta has joined #ruby
Xeago has joined #ruby
coderhs has quit [Ping timeout: 252 seconds]
jbpros has joined #ruby
apeiros has quit [Ping timeout: 245 seconds]
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
_Andres has joined #ruby
einarj has joined #ruby
benzrf has joined #ruby
<benzrf> hello, is there a service I can use to eval ruby?
<benzrf> like does eval.in have an api?
<benzrf> >> api please
<eval-in_> benzrf => undefined local variable or method `please' for main:Object (NameError) ... (https://eval.in/65408)
Mars___ has joined #ruby
bradhe has joined #ruby
kaspergrubbe has quit [Ping timeout: 252 seconds]
xk_id has quit [Quit:
volty has quit [Quit: Konversation terminated!]
theKayhan has quit [Remote host closed the connection]
bruno- has quit [Quit: leaving]
shevy has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Remote host closed the connection]
bruno- has joined #ruby
satdroid has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby
Akuma has quit [Quit: So long sukkas!]
bruno- has quit [Client Quit]
nateberkopec has joined #ruby
bruno- has joined #ruby
decoponio has quit [Quit: Leaving...]
hogeo has joined #ruby
sepp2k1 has joined #ruby
rumi has quit [Quit: Textual IRC Client: www.textualapp.com]
heftig has quit [Ping timeout: 272 seconds]
bradhe has quit [Ping timeout: 252 seconds]
TMM has quit [Remote host closed the connection]
vpretzel has joined #ruby
jrhe_ has joined #ruby
bruno- has quit [Client Quit]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jrhe has quit [Read error: Connection reset by peer]
jrhe_ is now known as jrhe
heftig has joined #ruby
sepp2k has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Ping timeout: 245 seconds]
Clooth has quit [Quit: Leaving...]
bruno- has joined #ruby
hogeo has quit [Ping timeout: 264 seconds]
benzrf has quit [Ping timeout: 272 seconds]
bruno- has quit [Client Quit]
vpretzel has quit [Client Quit]
d45h has joined #ruby
phinfonet has quit [Quit: exitiing]
vpretzel has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
EvanR__ has joined #ruby
coderhs has joined #ruby
banjara has joined #ruby
nazty has joined #ruby
err_ok has joined #ruby
drumusician has joined #ruby
heftig has quit [Ping timeout: 260 seconds]
capicue has joined #ruby
srji has quit [Ping timeout: 264 seconds]
xk_id has joined #ruby
bruno- has joined #ruby
shevy has joined #ruby
heftig has joined #ruby
jamesaanderson has joined #ruby
capicue has quit [Ping timeout: 265 seconds]
Xaitec has quit [Remote host closed the connection]
sayan has quit [Ping timeout: 264 seconds]
brennanMKE has joined #ruby
Mars___ has quit [Remote host closed the connection]
Mars___ has joined #ruby
Kricir has joined #ruby
artm has joined #ruby
weszlem has quit []
EvanR__ has quit [Ping timeout: 272 seconds]
diegoviola has quit [Ping timeout: 252 seconds]
brennanMKE has quit [Ping timeout: 245 seconds]
Mars___ has quit [Ping timeout: 240 seconds]
diegoviola has joined #ruby
rehat has quit [Remote host closed the connection]
shvelo_ has quit [Quit: Ex-Chat]
shvelo__ has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zarubin has quit [Remote host closed the connection]
earthquake has joined #ruby
jamesaanderson has joined #ruby
ephemerian has joined #ruby
Kamuela has joined #ruby
<Kamuela> In ruby, function or method?
<MrZYX> method
zarubin has joined #ruby
sayan has joined #ruby
<Kamuela> Does a method return the last object from its code block by default?
<MrZYX> yes
<Kamuela> Nice, I love how I picked that up just by reading Ruby code lol
inorganicorc has joined #ruby
<MrZYX> :)
<Kamuela> Lots to intuit in this language
bugsinlights has joined #ruby
dnyy has joined #ruby
AFKGeek has joined #ruby
<Kamuela> I have to say, it seems like there are too many comments. They distract from lines that read very much in plain english anyway
<Kamuela> comments should almost be treated like footnotes in ruby
<MrZYX> oh, I rarely see comments in ruby code I read, thankfully
<jblack> Ruby isn't typically a heavily commented language, except for rdoc type headers for methods
<Kamuela> my exposure is through rails, I've been learning it for about a week and a half
<Kamuela> coming from python/django. i didn't like django, but python is a nice language
adambeynon has joined #ruby
einarj has quit [Remote host closed the connection]
sayan has quit [Ping timeout: 252 seconds]
<shevy> Kamuela if you dont like the comments, a little bit of ruby code to get rid of all comments and there you go! :D
<Kamuela> shevy, hahaha
<shevy> for minimal classes I rarely comment, though I do make indicator marks sometimes
<shevy> like so:
<shevy> def reset # reset tag
<shevy> @data = ''
<shevy> end
nXqd has joined #ruby
<nXqd> hi guys
nism has quit [Remote host closed the connection]
<nXqd> I have a RuntimeError of : Wrong size. Was 504, should be 226 . Anyone knows what actually it is ?
<MrZYX> we need _a lot_ more context to answer that
kevind has joined #ruby
SHyx0rmZ has joined #ruby
pushpak has joined #ruby
<shevy> lol
<shevy> is this the old classical problem - calculating penis size
kaspergrubbe has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<MrZYX> shevy: :(
<MrZYX> now I can't get this south park episode out of my head
<MrZYX> again
<shevy> MrZYX, I am just relating to the problem at hand!
<shevy> I mean, it could be *anything*
<shevy> 226 * 2 is not 504 so that can't be it either...
<shevy> >> 226 * 2
<eval-in_> shevy => 452 (https://eval.in/65433)
<shevy> we are short by 52
<shevy> nXqd what are you trying to run?
snath has quit [Ping timeout: 245 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
DanKnox_away is now known as DanKnox
thelorax1231 has quit [Remote host closed the connection]
Soda has joined #ruby
jbpros has quit [Quit: jbpros]
spike|spiegel has quit [Quit: WeeChat 0.4.2]
thelorax1231 has joined #ruby
jamesaanderson has quit [Ping timeout: 244 seconds]
timonv has joined #ruby
kevind has quit [Quit: kevind]
sayan has joined #ruby
Mars___ has joined #ruby
gr33n7007h has joined #ruby
lkba has quit [Ping timeout: 272 seconds]
atno has quit [Remote host closed the connection]
sayan has quit [Read error: Connection reset by peer]
mark_locklear has joined #ruby
skaflem has quit [Quit: Leaving]
jamesaanderson has joined #ruby
endash has quit [Ping timeout: 264 seconds]
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
nisstyre has joined #ruby
relix has joined #ruby
aagdbl has quit [Quit: This computer has gone to sleep]
wildroman2 has joined #ruby
spike|spiegel has joined #ruby
bradhe has joined #ruby
jamesaanderson has quit [Client Quit]
gr33n7007h has quit [Client Quit]
elcontrastador has joined #ruby
jbpros has joined #ruby
mattattaque has quit [Ping timeout: 245 seconds]
bruno- has quit [Quit: leaving]
Andrevan has joined #ruby
Andrevan has quit [Changing host]
Andrevan has joined #ruby
bruno- has joined #ruby
endash has joined #ruby
zarubin has quit [Ping timeout: 264 seconds]
earthquake has quit [Quit: earthquake]
jamesaanderson has joined #ruby
bradhe has quit [Ping timeout: 272 seconds]
AFKGeek has quit [Quit: Leaving]
devoldmx has quit [Ping timeout: 264 seconds]
randomnick_ has joined #ruby
bruno- has quit [Client Quit]
apeiros has joined #ruby
bruno- has joined #ruby
bruno- has quit [Client Quit]
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
cina has joined #ruby
bruno- has joined #ruby
ghostjangles has joined #ruby
yfeldblum has joined #ruby
snuffeluffegus has quit [Remote host closed the connection]
hogeo has joined #ruby
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
lkba has joined #ruby
vlad_starkov has joined #ruby
mattattaque has joined #ruby
<shevy> guys is it useful to do this
<shevy> def method_not_often_used
<shevy> require 'bla'
<shevy> Bla.new
mixel has quit [Quit: mixel]
<shevy> end
ghostjangles has left #ruby [#ruby]
<shevy> in other words, if the require should be inside a method, rather than on top of the file?
Mars___ has quit [Remote host closed the connection]
Mars___ has joined #ruby
hogeo has quit [Ping timeout: 265 seconds]
thelorax123 has quit [Remote host closed the connection]
DanKnox is now known as DanKnox_away
cina has quit [Ping timeout: 272 seconds]
camt has joined #ruby
thelorax123 has joined #ruby
bruno- has quit [Quit: leaving]
yfeldblum has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
bruno- has quit [Client Quit]
bruno- has joined #ruby
weszlem has joined #ruby
zarubin has joined #ruby
camt has quit [Client Quit]
bruno- has quit [Client Quit]
Hanmac1 is now known as Hanmac
Mars___ has quit [Ping timeout: 272 seconds]
DanKnox_away is now known as DanKnox
bruno- has joined #ruby
inorganicorc has quit [Remote host closed the connection]
_Andres has quit [Read error: Connection reset by peer]
<shevy> yeah
Clooth has joined #ruby
<shevy> so you use conditional requires too
<shevy> good
<shevy> that helps against my insanity
BlahBlagh has joined #ruby
<shevy> is this really your code???
<shevy> there are like 50% comments!
<Hanmac> yeah ;P
<BlahBlagh> hello there
* Hanmac helps against insanity
<shevy> hi BlaBla
<MrZYX> IMO don't make it a habit though
<Hanmac> i think i should frame that quote ;D
camt has joined #ruby
64MAAWB92 has joined #ruby
* MrZYX always gets confused when he sees a require 'uri' in a method
thelorax1231 has quit [Remote host closed the connection]
DanKnox is now known as DanKnox_away
BlahBlagh has quit [Client Quit]
<shevy> MrZYX yeah but then you have to argue that putting it on top always is better, and to never use conditional requirements
snath has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<yxhuvud> hanmac? You use 8 space indent? yikes.
<Hanmac> yxhuvud: wrong, i had a Tab indent in this project
camt has quit [Changing host]
camt has joined #ruby
<shevy> ack
<shevy> I did not know you are a tabber
bluOxigen has joined #ruby
kofno has quit [Ping timeout: 248 seconds]
thelorax1231 has joined #ruby
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
vlad_starkov has joined #ruby
shvelo__ is now known as shvelo
shvelo has quit [Changing host]
shvelo has joined #ruby
brennanMKE has joined #ruby
lochan has quit [Remote host closed the connection]
bradhe has joined #ruby
thelorax1231 has quit [Remote host closed the connection]
_Andres has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
thelorax1231 has joined #ruby
Elhu has joined #ruby
mary5030 has quit [Remote host closed the connection]
brennanMKE has quit [Ping timeout: 272 seconds]
<blackmesa> hi all. is it possible to init a string array with alphabet, e.g. ["A".."Z"]
bradhe has quit [Remote host closed the connection]
michael_mbp is now known as zz_michael_mbp
bradhe has joined #ruby
<apeiros> [*"A".."Z"]
<blackmesa> oh sweet thx. what is the * about?
Targen_ has quit [Ping timeout: 240 seconds]
mattattaque has quit [Remote host closed the connection]
nbrosnahan has quit [Ping timeout: 265 seconds]
BizarreCake has quit [Quit: Leaving]
BizarreCake has joined #ruby
BizarreCake has quit [Client Quit]
vlad_sta_ has joined #ruby
yfeldblum has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
jbpros has quit [Quit: jbpros]
Jetchisel has joined #ruby
bruno- has quit [Quit: leaving]
maoko has joined #ruby
thepumpkin has joined #ruby
bruno- has joined #ruby
<Hanmac> sam113101: or for the more crazy, the double splat ;P
nbrosnahan has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
<blackmesa> sam113101: thx for the link. I guess its called Array Coercion ?
exve has joined #ruby
<blackmesa> like magic
<blackmesa> ^^
bruno- has quit [Client Quit]
drag00n has joined #ruby
bruno- has joined #ruby
thelorax123 has quit [Remote host closed the connection]
thepumpkin has quit [Ping timeout: 248 seconds]
<Hanmac> blackmesa: same goes for **kargs, it makes Hashs
<maoko> erm guys.. maybe someone can answer my rails question? #rubyonrails is strangely quiet atm
thelorax1231 has quit [Remote host closed the connection]
wildroman2 has quit [Remote host closed the connection]
<blackmesa> Hanmac: do you have an example ?
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Hanmac> >> def func(**kargs) kargs;end; func a: 4, b: 6
<eval-in_> Hanmac => {:a=>4, :b=>6} (https://eval.in/65446)
wildroman2 has joined #ruby
simoz has quit [Ping timeout: 244 seconds]
thelorax123 has joined #ruby
thelorax1231 has joined #ruby
wildroman2 has quit [Read error: Connection reset by peer]
simoz has joined #ruby
superscott[8]_ has joined #ruby
thelorax1231 has quit [Remote host closed the connection]
zz_tsykoduk is now known as tsykoduk
Elhu has quit [Quit: Computer has gone to sleep.]
<blackmesa> nice thx
cina has joined #ruby
superscott[8] has quit [Ping timeout: 245 seconds]
superscott[8]_ is now known as superscott[8]
Mars__ has joined #ruby
<Hanmac> remember: *args and **kargs uses to_ary and to_hash, not to_a and to_h ...there is a simantic different
devoldmx has joined #ruby
<shevy> and ***qargs
weszlem has quit []
mary5030 has joined #ruby
kobain has joined #ruby
<shevy> and ****zargs, the final args
bruno- has quit [Quit: leaving]
thelorax1231 has joined #ruby
starchild_ has joined #ruby
<Hanmac> XDD
bruno- has joined #ruby
einarj has joined #ruby
<samfisher> I have 5 lines to print and their content changes. How can I make the whole thing look nice? right now I'm clearing the screen but there is a noticeable 0.2 secons blackout
weszlem has joined #ruby
einarj has quit [Read error: Connection reset by peer]
einarj has joined #ruby
Jeticus has joined #ruby
Jeticus has quit [Client Quit]
vlad_sta_ has quit [Remote host closed the connection]
noop has quit [Ping timeout: 265 seconds]
Clooth has quit [Quit: Leaving...]
tsykoduk is now known as zz_tsykoduk
<shevy> how do you clear the screen
Jeticus has joined #ruby
Jeticus has quit [Client Quit]
bricker`LA has quit [Ping timeout: 265 seconds]
bricker`LA has joined #ruby
thepumpkin has joined #ruby
jbpros has joined #ruby
DanKnox_away is now known as DanKnox
CaptainJet has quit [Ping timeout: 252 seconds]
<jblack> shevy: ncurses would work
thelorax1231 has quit [Remote host closed the connection]
CaptainJet has joined #ruby
<jblack> You also try ansi control codes, as per http://stackoverflow.com/questions/10261359/ruby-clear-screen
<Hanmac> for one thing i needed to print an time how much of the sound file is played i use "\r"
drag00n has quit [Ping timeout: 264 seconds]
nXqd has quit [Ping timeout: 245 seconds]
wildroman2 has joined #ruby
<shevy> jblack sorry, I meant to samfisher
<jblack> np
<jblack> Thought it was odd you were asking. =)
<shevy> because of his 0.2 seconds blackout, I don't have a 0.2 seconds output
<shevy> or rather delay
bruno- has quit [Quit: leaving]
baroquebobcat has joined #ruby
vlad_starkov has joined #ruby
thepumpkin has quit [Ping timeout: 245 seconds]
zarubin has quit [Ping timeout: 244 seconds]
Kricir has quit [Remote host closed the connection]
thelorax1231 has joined #ruby
aley has joined #ruby
banjara has quit [Quit: Leaving.]
bruno- has joined #ruby
srji has joined #ruby
colonolGron has joined #ruby
atno has joined #ruby
thepumpkin has joined #ruby
thelorax1231 has quit [Remote host closed the connection]
hogeo has joined #ruby
bugsinlights has quit [Read error: Connection reset by peer]
wildroman2 has quit [Remote host closed the connection]
mrsolo has joined #ruby
thelorax1231 has joined #ruby
exve has quit [Ping timeout: 252 seconds]
St_Marx has quit [Quit: Ex-Chat]
cina has quit [Ping timeout: 272 seconds]
simoz has quit [Ping timeout: 264 seconds]
simoz has joined #ruby
mrsolo has quit [Client Quit]
Thanatermesis has quit [Ping timeout: 256 seconds]
flops has quit [Remote host closed the connection]
thepumpkin has quit [Ping timeout: 272 seconds]
Mars__ has quit [Remote host closed the connection]
Mars__ has joined #ruby
aspires has joined #ruby
hogeo has quit [Ping timeout: 248 seconds]
jbpros has quit [Quit: jbpros]
robertjpayne has joined #ruby
simoz has quit [Ping timeout: 272 seconds]
thepumpkin has joined #ruby
^Chris^ has quit [Read error: Connection reset by peer]
mityaz has joined #ruby
Mars__ has quit [Ping timeout: 264 seconds]
diegoviola has quit [Ping timeout: 245 seconds]
^Chris^ has joined #ruby
thelorax1231 has quit [Remote host closed the connection]
danshultz has joined #ruby
nXqd has joined #ruby
bruno- has quit [Quit: leaving]
phansch has quit [Remote host closed the connection]
thelorax1231 has joined #ruby
snuffeluffegus has joined #ruby
thepumpkin has quit [Ping timeout: 241 seconds]
mityaz has quit [Client Quit]
bruno- has joined #ruby
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
relix has joined #ruby
relix has quit [Client Quit]
thelorax1231 has quit [Remote host closed the connection]
<RubyPanther> samfisher: the only way to avoid flicker consistently on multiple lines is to use curses and write the new content, then delete any characters not replaced by the new content
rickruby has quit [Remote host closed the connection]
Thanatermesis has joined #ruby
relix has joined #ruby
brennanMKE has joined #ruby
<jb41> i want to donate pry devs
<jb41> it's such blessing <3
thelorax1231 has joined #ruby
thepumpkin has joined #ruby
<jb41> i've no idea how devs debuggs rails app without it
bruno- has quit [Client Quit]
<jb41> end of love story ;p
<jb41> back tocoding
bruno- has joined #ruby
bruno- has quit [Client Quit]
<maoko> jb41, oh! maybe you could answer my question regarding js response?)
bruno- has joined #ruby
bruno- has quit [Client Quit]
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
bruno- has joined #ruby
<jb41> I'm not good friends with js, and I'm rather here to ask than answer due to my skill, but let me see
bruno- has quit [Read error: Connection reset by peer]
brennanMKE has quit [Ping timeout: 264 seconds]
thepumpkin has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
sergicles has quit [Quit: sergicles]
DonRichie has quit [Read error: Connection reset by peer]
brianpWins has joined #ruby
bruno- has quit [Client Quit]
<maoko> jb41, I just can't understand why link_to remote:true works for current controller's method and returns "missing layout" if this action belongs to another controller. Here is the gist: https://gist.github.com/maokomioko/5d7bb530498ccecdb0f1
bruno- has joined #ruby
bruno- has quit [Client Quit]
<maoko> That's not the js problem, rather the controller handling the request.
bruno- has joined #ruby
bruno- has quit [Client Quit]
aley has quit [Quit: aley]
<jb41> have you tried to debug it with pry?
Elhu has joined #ruby
bruno- has joined #ruby
<jb41> I'm not so good at rails, so I don't see much from that gist
jamesaanderson has joined #ruby
aley has joined #ruby
thepumpkin has joined #ruby
thelorax123 has quit [Remote host closed the connection]
bruno- has quit [Client Quit]
bruno- has joined #ruby
devoldmx has quit [Ping timeout: 244 seconds]
Pessimism has joined #ruby
<Pessimism> is there a Markdown parser for Jekyll that will allow me to use Markdown inside block HTML elements?
mixel has joined #ruby
codenapper has quit [Quit: codenapper]
eka has joined #ruby
devoldmx has joined #ruby
mary5030 has quit [Remote host closed the connection]
<maoko> jb41, I'm doing it atm. It has to do something with the folder name, hmm.
bruno- has quit [Client Quit]
thelorax123 has joined #ruby
jbpros has joined #ruby
thepumpkin has quit [Ping timeout: 244 seconds]
burgess has joined #ruby
bradhe has joined #ruby
thelorax123 has quit [Read error: Connection reset by peer]
Clooth has joined #ruby
thelorax1231 has quit [Remote host closed the connection]
mrfoto has quit []
devoldmx has quit [Ping timeout: 244 seconds]
shvelo has quit [Ping timeout: 272 seconds]
devoldmx has joined #ruby
thelorax123 has joined #ruby
thepumpkin has joined #ruby
platypine has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
Tuxist_ has joined #ruby
thelorax123 has quit [Remote host closed the connection]
thelorax1231 has joined #ruby
DanKnox is now known as DanKnox_away
Tuxist has quit [Ping timeout: 245 seconds]
cpruitt has quit [Ping timeout: 272 seconds]
Bulters has quit [Ping timeout: 264 seconds]
cpruitt has joined #ruby
bruno- has joined #ruby
bruno- has quit [Client Quit]
mgberlin has joined #ruby
adambeynon has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Bulters has joined #ruby
shvelo has joined #ruby
bruno- has joined #ruby
sbos99 has quit [Ping timeout: 245 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
thelorax1231 has quit [Remote host closed the connection]
bruno- has quit [Client Quit]
<mgberlin> would someone mind helping me out with rspec for the Test-First ruby tutorial?
thepumpkin has quit [Ping timeout: 245 seconds]
bruno- has joined #ruby
axl_ has joined #ruby
<mgberlin> I'm trying to run the stupid-simple first example from Test-First ruby
<mgberlin> and for some reason the rspec keeps failing
thelorax123 has joined #ruby
<mgberlin> even though the code is obviously correct
Andrevan has quit [Quit: WeeChat 0.4.2-rc1]
64MAAWB92 has quit [Ping timeout: 245 seconds]
maletor has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
Bulters has quit [Read error: Operation timed out]
maletor has quit [Client Quit]
bruno- has quit [Client Quit]
bruno- has joined #ruby
bruno- has quit [Client Quit]
luckyruby has joined #ruby
thelorax1231 has joined #ruby
artm has quit [Ping timeout: 244 seconds]
bruno- has joined #ruby
<mr`spock> >> puts 0.5 - 0.4 - 0.1
thelorax123 has quit [Read error: Connection reset by peer]
<eval-in_> mr`spock => -2.7755575615628914e-17 ... (https://eval.in/65485)
mgberlin has quit [Quit: mgberlin]
bruno- has quit [Client Quit]
Bulters has joined #ruby
thepumpkin has joined #ruby
devoldmx3 has joined #ruby
bruno- has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
<CaptainJet> >> BigDecimal.new("0.5") - BigDecimal.new("0.4") - BigDecimal.new("0.1")
<eval-in_> CaptainJet => uninitialized constant BigDecimal (NameError) ... (https://eval.in/65486)
devoldmx has quit [Ping timeout: 248 seconds]
thepumpkin has joined #ruby
<CaptainJet> >> require 'bigdecimal'; BigDecimal.new("0.5") - BigDecimal.new("0.4") - BigDecimal.new("0.1")
<eval-in_> CaptainJet => (https://eval.in/65487)
bruno- has quit [Client Quit]
artm has joined #ruby
<mr`spock> :)
srji has quit [Ping timeout: 264 seconds]
vince_prignano has quit []
bruno- has joined #ruby
<CaptainJet> well one way or the other
<CaptainJet> it'd be 0.0
bruno- has quit [Client Quit]
<mr`spock> yeah. but if you're using floats the precision is going to screw you.
jlast has joined #ruby
<mr`spock> your result was 0. my result was -2.77 ............
<Hanmac> mr`spock: ỳou forgot the e-17 at the end
bruno- has joined #ruby
<CaptainJet> Just demonstrating what to do if you need precision floats
aryaching has quit [Ping timeout: 272 seconds]
thelorax123 has joined #ruby
thepumpkin has quit [Ping timeout: 240 seconds]
aley has quit [Quit: aley]
thelorax123 has quit [Remote host closed the connection]
banghouse has quit [Ping timeout: 245 seconds]
thelorax123 has joined #ruby
mojjojo has joined #ruby
thepumpkin has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
thelorax123 has quit [Remote host closed the connection]
thelorax123 has joined #ruby
xk_id has quit [Quit:
<mr`spock> Hanmac, oops, yeah you're right I missed that :)
nullsign has joined #ruby
thelorax1231 has quit [Remote host closed the connection]
<mr`spock> so .0000000000000000277
hogeo has joined #ruby
srji has joined #ruby
thepumpkin has quit [Ping timeout: 264 seconds]
thelorax1231 has joined #ruby
Rudde has joined #ruby
<Rudde> Hey! Is the Pickaxe book sold in ePub format anywhere?
wildroman2 has joined #ruby
derebos has joined #ruby
adambeynon has joined #ruby
bugsinlights has joined #ruby
timonv has joined #ruby
hogeo has quit [Ping timeout: 245 seconds]
thepumpkin has joined #ruby
bruno- has quit [Quit: leaving]
bruno- has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
axl_ has quit [Remote host closed the connection]
axl_ has joined #ruby
bruno- has quit [Client Quit]
timonv has quit [Read error: Operation timed out]
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
MrZYX is now known as MrZYX|off
linoge has joined #ruby
bruno- has joined #ruby
bruno- has quit [Client Quit]
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
osvico has quit []
bruno- has joined #ruby
thepumpkin has quit [Ping timeout: 264 seconds]
bluOxigen has quit [Ping timeout: 272 seconds]
thelorax1231 has quit [Remote host closed the connection]
linoge has quit [Client Quit]
bruno- has quit [Client Quit]
bruno- has joined #ruby
Lewix has quit [Remote host closed the connection]
thelorax1231 has joined #ruby
danshultz has quit [Ping timeout: 264 seconds]
mark_locklear has quit [Read error: Operation timed out]
thepumpkin has joined #ruby
Mars__ has joined #ruby
<Kamuela> Would implicit casting to floating point really cause more problems than it's worth to be handled behind the scene? E.g. the great example of 10/3 = 3 vs 10.0/3 = 3.3333333. Why not just have 10/3 = 3.333333?
claymore has quit [Quit: Leaving]
vlad_starkov has quit [Remote host closed the connection]
sepp2k1 has quit [Quit: Leaving.]
Clooth has quit [Quit: Leaving...]
brennanMKE has joined #ruby
pithagorians has quit [Ping timeout: 245 seconds]
<apeiros> Kamuela: if they'd change Integer#/, then hopefully to return Rational.
Mars__ has quit [Ping timeout: 240 seconds]
3JTAABZ9L has joined #ruby
aspires has quit [Quit: sudo making a sandwich]
thepumpkin has quit [Ping timeout: 264 seconds]
Tuxist_ has quit [Read error: Connection reset by peer]
thelorax1231 has quit [Remote host closed the connection]
amacgregor_ has joined #ruby
einarj has quit [Remote host closed the connection]
zarubin has joined #ruby
<Kamuela> apeiros, Is what I'm saying desirable though? I know there are a lot of processing implications, but doesn't almost all of Ruby aim to make things sensible for the programmer rather than the computer?
thelorax1231 has joined #ruby
brennanMKE has quit [Ping timeout: 252 seconds]
<matled> Kamuela: it probably depends on the programmer you ask what they expect to get from 10 / 3 :)
kofno has joined #ruby
jbpros has quit [Quit: jbpros]
amacgregor has quit [Ping timeout: 245 seconds]
thepumpkin has joined #ruby
leonidlm has quit [Ping timeout: 272 seconds]
thepumpkin has quit [Read error: Connection reset by peer]
<apeiros> Kamuela: I think Integer#/ should only come as a surprise (if at all) at first
thepumpkin has joined #ruby
<apeiros> once you know it, you should have no difficulty using either proper methods or normalize your data to what you need/want
<DanBoy> most people are used to 10 % 3
thepumpkin has quit [Read error: Connection reset by peer]
bugsinlights has quit [Quit: No Ping reply in 180 seconds.]
<DanBoy> and what not
<DanBoy> instead of returning a rational
<apeiros> o0
<DanBoy> pffffffffffffft
thepumpkin has joined #ruby
bugsinlights has joined #ruby
maoko has quit [Quit: Textual IRC Client: www.textualapp.com]
luckyruby has quit [Remote host closed the connection]
<Hanmac> >> require "mathn"; 10 / 3
<eval-in_> Hanmac => (10/3) (https://eval.in/65514)
luckyruby has joined #ruby
thepumpkin has quit [Ping timeout: 245 seconds]
laputa has joined #ruby
Astral_ has joined #ruby
bruno- has quit [Quit: leaving]
banjara has joined #ruby
bruno- has joined #ruby
thepumpkin has joined #ruby
bruno- has quit [Client Quit]
cpruitt has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
cpruitt has joined #ruby
Kamuela has quit [Ping timeout: 264 seconds]
MrZYX|off is now known as MrZYX
TigerWolf has joined #ruby
Astral__ has quit [Ping timeout: 245 seconds]
thelorax1231 has quit [Remote host closed the connection]
zarul has quit [Ping timeout: 252 seconds]
bruno- has quit [Client Quit]
mary5030 has joined #ruby
thepumpkin has quit [Ping timeout: 265 seconds]
shvelo has quit [Ping timeout: 272 seconds]
bruno- has joined #ruby
bruno- has quit [Client Quit]
nXqd has quit [Quit: WeeChat 0.4.1]
bruno- has joined #ruby
typicalbender has joined #ruby
thelorax1231 has joined #ruby
yfeldblum has quit [Remote host closed the connection]
srji has quit [Ping timeout: 260 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thepumpkin has joined #ruby
petey has quit [Remote host closed the connection]
<Pessimism> is there a Markdown parser for Ruby/Jekyll that will allow me to use Markdown inside block HTML elements?
devoldmx3 has quit [Ping timeout: 240 seconds]
^Chris^ has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
bugsinlights has quit [Ping timeout: 248 seconds]
DanKnox_away is now known as DanKnox
bruno- has quit [Quit: leaving]
bruno- has joined #ruby
wildroman2 has quit [Remote host closed the connection]
jamesaanderson has joined #ruby
wildroman2 has joined #ruby
thepumpkin has quit [Ping timeout: 264 seconds]
nemesit|znc has quit [Read error: Operation timed out]
thepumpkin has joined #ruby
pirelenito has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
nemesit|znc has joined #ruby
weems has quit [Read error: Connection reset by peer]
weeems has joined #ruby
TheShaun|AFK is now known as TheShaun
thepumpkin has joined #ruby
sergicles has joined #ruby
zipper has quit [Quit: leaving]
coderhs has quit [Ping timeout: 245 seconds]
pwh has quit []
thelorax123 has quit [Remote host closed the connection]
thelorax1231 has quit [Remote host closed the connection]
burgess has quit [Quit: ^zzz]
petey has joined #ruby
h0rrorvacui has quit [Quit: Leaving]
thepumpkin has quit [Ping timeout: 245 seconds]
thelorax123 has joined #ruby
burgess has joined #ruby
sergicles has quit [Ping timeout: 272 seconds]
sergicles has joined #ruby
hogeo has joined #ruby
vlad_starkov has joined #ruby
thepumpkin has joined #ruby
thepumpk_ has joined #ruby
thepumpk_ has quit [Read error: Connection reset by peer]
gr33n7007h has joined #ruby
thepumpk_ has joined #ruby
freezey has joined #ruby
thelorax1231 has joined #ruby
thelorax123 has quit [Remote host closed the connection]
thelorax1231 has quit [Remote host closed the connection]
thepumpk_ has quit [Read error: Connection reset by peer]
capicue has joined #ruby
thepumpk_ has joined #ruby
threesome has quit [Ping timeout: 264 seconds]
thepumpk_ has quit [Read error: Connection reset by peer]
sergicles has quit [Ping timeout: 245 seconds]
thepumpk_ has joined #ruby
hogeo has quit [Ping timeout: 248 seconds]
colonolGron has quit [Quit: leaving]
thelorax123 has joined #ruby
thepumpk_ has quit [Read error: Connection reset by peer]
thepumpkin has quit [Ping timeout: 244 seconds]
vlad_sta_ has joined #ruby
thepumpkin has joined #ruby
Kamuela has joined #ruby
3JTAABZ9L has quit [Ping timeout: 244 seconds]
thelorax1231 has joined #ruby
thepumpkin has quit [Read error: No route to host]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
weszlem has quit []
vlad_starkov has quit [Ping timeout: 264 seconds]
brianpWins has quit [Quit: brianpWins]
kofno has quit [Ping timeout: 264 seconds]
pirelenito has quit [Ping timeout: 272 seconds]
pirelenito_ has joined #ruby
pushpak has quit [Quit: Linkinus - http://linkinus.com]
Czupa has quit [Ping timeout: 245 seconds]
deegen has quit [Quit: leaving]
Zelest has joined #ruby
bruno- has quit [Quit: leaving]
thelorax1231 has quit [Remote host closed the connection]
thepumpkin has quit [Ping timeout: 264 seconds]
bruno- has joined #ruby
wildroman2 has quit [Remote host closed the connection]
thepumpkin has joined #ruby
weszlem has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
<Zelest> If I do thrs = []; 5.times { thrs << Thread.new { blah = Blah.new } }; thrs.each { |t| t.join } ... and wrap the last part within a begin/catch statement, is it possible to access "blah" within that rescue?
<Zelest> like, getting the objects inside thrs/t ?
thepumpkin has joined #ruby
Deele has quit [Ping timeout: 260 seconds]
<MrZYX> no, but you could subclass thread and add an accessor for it
thepumpkin has quit [Read error: No route to host]
pirelenito_ has quit [Ping timeout: 272 seconds]
thepumpkin has joined #ruby
<Zelest> Hmms..
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
weszlem has quit [Client Quit]
thepumpkin has joined #ruby
thelorax1231 has joined #ruby
Xaitec has joined #ruby
<shevy> hmm could ruby be redesigned to eliminate or change the current ways how global variables work?
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
pirelenito has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
Spami has joined #ruby
thepumpkin has joined #ruby
spider-mario has quit [Remote host closed the connection]
thepumpkin has quit [Read error: Connection reset by peer]
brennanMKE has joined #ruby
<typicalbender> shevy: what exactly are you looking for? Of course it could be redesigned but why would it?
thepumpkin has joined #ruby
bruno- has quit [Quit: leaving]
danshultz has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
pwh has joined #ruby
ravster has joined #ruby
Fuzai has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
<shevy> typicalbender I am not sure, I find them too ugly to want to use them
bruno- has joined #ruby
weszlem has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
freezey has quit [Remote host closed the connection]
<typicalbender> personally I think global variables should never be used unless in some very specific use cases
thepumpkin has joined #ruby
<shevy> they are used in certain prominent parts, like regexes $1 $2 and $: and so forth
<typicalbender> it makes the system very resilient to change
thelorax1231 has quit [Remote host closed the connection]
freezey has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
<shevy> and what I wonder is how ruby could be different if it would not use these variables... but without losing those features, so perhaps it is not possible to do away with them :(
thepumpkin has joined #ruby
<typicalbender> you can create classes that contain values
<shevy> I mean things like: $: << __FILE__ or whatever it was, when people modify the load path
petey has quit [Remote host closed the connection]
<typicalbender> just a class with constants
thepumpkin has quit [Read error: Connection reset by peer]
<typicalbender> which is somewhat better than just using pure global vars
Czupa has joined #ruby
pirelenito has quit [Ping timeout: 272 seconds]
thepumpkin has joined #ruby
<typicalbender> which is nice for doing config information that that sort of thing
<typicalbender> ive been doing ruby for 2 years and never used a global var
brennanMKE has quit [Ping timeout: 240 seconds]
Fuzai has joined #ruby
petey has joined #ruby
<typicalbender> recommends using constant classes instead of global vars
<typicalbender> I think they are ugly for a reason, generally you shouldn't use them ;)
thelorax1231 has joined #ruby
freezey has quit [Read error: Operation timed out]
Fuzai has quit [Remote host closed the connection]
<shevy> hehe
danshultz has quit [Ping timeout: 272 seconds]
<shevy> how about @@ typicalbender?
kitak has joined #ruby
<shevy> actually
justsee has joined #ruby
<shevy> I suppose $ are used more often than @@
<typicalbender> not as bad as global vars, they are contained to a class which is nice
<typicalbender> yeah
<typicalbender> ive used those a few times
artm has quit [Ping timeout: 264 seconds]
<typicalbender> like i said, i've never seen or used the $
<typicalbender> but have used @@ once or twice
DanKnox is now known as DanKnox_away
thepumpkin has quit [Ping timeout: 248 seconds]
workmad3 has quit [Ping timeout: 264 seconds]
<typicalbender> shevy: did you have a specific problem you were trying to solve or was it just a general question
<shevy> I saw a $var in my code and hated it
Clooth has joined #ruby
<typicalbender> haha
<typicalbender> yeah
thepumpkin has joined #ruby
<shevy> $total_cost it was
<shevy> now it is
<shevy> @total_cost
<shevy> :\
thepumpkin has quit [Read error: Connection reset by peer]
<typicalbender> much better
<IceDragon> ! GLOBALS!!!
<IceDragon> *insert world panic*
Lewix has joined #ruby
<typicalbender> hahaha
zz_tsykoduk is now known as tsykoduk
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
<typicalbender> one day the world will end because someone used a global variable and then divided by 0
thepumpkin has joined #ruby
<IceDragon> *shivers*
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
<IceDragon> best torture: Place a ruby coder in a room, and tell him to write a program using nothing but globals
thepumpkin has quit [Read error: Connection reset by peer]
nbrosnahan has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thepumpkin has joined #ruby
<IceDragon> after which, calmly tell him, he won't be paid for his work
<IceDragon> all those $$$ will be killing him
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
<typicalbender> hahaha
hiyosi has quit [Read error: Operation timed out]
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
volty has joined #ruby
Xeago has quit [Remote host closed the connection]
<typicalbender> what also blows my mind about ruby is that it allows you to access private methods on a class externally by using send
<IceDragon> thepumpkin seems to be having it rough...
thepumpkin has joined #ruby
thepumpkin has quit [Read error: No route to host]
<typicalbender> make testing private methods nice but slap the hand of any programmer that tries to introduce that into production
<IceDragon> lol
thepumpkin has joined #ruby
Xaitec has quit [Remote host closed the connection]
thepumpkin has quit [Read error: Connection reset by peer]
<IceDragon> ruby says: here, I give you everything to make and break your program, just don't blame me when something explodes in your face *points at your obviously faulty code with eval*
<typicalbender> hahah
<typicalbender> and thats why i <3 ruby
thepumpkin has joined #ruby
VTLob has quit [Quit: VTLob]
d45h has quit []
thepumpkin has quit [Read error: Connection reset by peer]
thelorax1231 has quit [Remote host closed the connection]
thepumpkin has joined #ruby
<MrZYX> isn't it fun to run sed s/send/public_send/ on a codebase and see what breaks? :P
<Rudde> OMG! Ruby works with ÆØÅ out of the box :o
existensil has joined #ruby
<MrZYX> Rudde: try using non breaking spaces for your variable and method names ;)
John_W has joined #ruby
<Rudde> I was talking about output text
John_W has left #ruby [#ruby]
<Rudde> in C++ it just gets fucked up
thelorax1231 has joined #ruby
justsee has quit [Ping timeout: 245 seconds]
TheShaun has quit [Quit: ZNC - http://znc.in]
<volty> nokogiri, how do I get html body (what's between <body> and </body>) as string?
<typicalbender> one pain in the ass about ruby is that you cant use '-' in keywords. I've worked with some apis that return key that look like "has-more" and trying to symbolize those you get ":has-more"
<typicalbender> thus ive adopted the personal rule of no dashes in json keys
nXqd has joined #ruby
<IceDragon> at one point in time, I saw japanese characters, used for a variable name in ruby
<IceDragon> maybe I was drunk, or someone hit me over the head that day
<nXqd> I have an error of RuntimeError:
<nXqd> Wrong size. Was 504, should be 224
<existensil> why is http://www.modruby.net/ in the topic?
<IceDragon> um..
Davey has quit [Quit: Computer has gone to sleep.]
<nXqd> when I try to use xmlrc client. Anyone knows what it is ?
<existensil> err, not topic, but join message
h0rrorvacui has joined #ruby
thepumpkin has quit [Ping timeout: 272 seconds]
<RubyPanther> I used the unicode pi as a method name in my pi_pie gem. puts PiPie.π.round(10_000).to_s("F")
<RubyPanther> I can waste more time in Ruby than any other language
<RubyPanther> and faster, too
<nXqd> waste more time and faster ?
<existensil> nXqd: I'm guessing you're using Ruby 2.0? http://bugs.ruby-lang.org/issues/8182
<nXqd> existensil: exactly !
<existensil> its a bug. either use 1.9 or maybe it will be fixed in 2.1. there are also other workarounds, patches, etc, available
<nXqd> existensil: ok, thanks for saving me hours of headache. I guess I just change to ruby 1.9.
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
thepumpkin has joined #ruby
srji has joined #ruby
<existensil> np
zastern has quit []
thepumpkin has quit [Read error: No route to host]
rickruby has joined #ruby
vlad_starkov has joined #ruby
thepumpkin has joined #ruby
<nXqd> btw, I'm thinking about a good ex to demonstrate ruby meta rogramming, any suggestion ?
<nXqd> for a job interview :P
thepumpkin has quit [Read error: Connection reset by peer]
<existensil> your own class macro is a good place to start
thepumpkin has joined #ruby
benzrf has joined #ruby
<benzrf> hello
axl_ has quit [Quit: axl_]
<benzrf> is it possible to dynamically add methods to classes without having to use code strings?
<benzrf> like with blocks or something
thepumpkin has quit [Read error: Connection reset by peer]
<existensil> benzrf: absolutely
Davey has joined #ruby
<coldmethod> shevy: ping
<benzrf> coldmethod: ??
thepumpkin has joined #ruby
<existensil> benzrf: check out define_method
<benzrf> existensil: how does work?
<benzrf> ok, thanks
<benzrf> is a class block sugar for anything like in python, or is it a primitive like in java?
thepumpkin has quit [Read error: Connection reset by peer]
vlad_sta_ has quit [Ping timeout: 272 seconds]
derebos has quit [Ping timeout: 272 seconds]
t_p has quit [Quit: Computer has gone to sleep.]
thepumpkin has joined #ruby
TheShaun has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
ce_afk is now known as cescalante
<existensil> module and class can both be thought of as macros that create instances of Module and Class
thepumpkin has quit [Read error: Connection reset by peer]
<benzrf> ok
<benzrf> +
timonv has joined #ruby
<existensil> those instances are mutable and maellable at runtime. i guess that means ruby is more like python in that respect
thepumpkin has joined #ruby
<benzrf> so how exactly does it work?
<existensil> haha... not sure
srji has quit [Ping timeout: 264 seconds]
mary5030 has quit [Remote host closed the connection]
<benzrf> i.e. in python, the block is executed with a dictlike provided from the metaclass acting as the locals storage, then the metaclass is instantiated using the locals dictlike as an arg
Kamuela has quit [Quit: Leaving]
mary5030 has joined #ruby
zz_michael_mbp is now known as michael_mbp
<volty> quite deep
Ox6abe has joined #ruby
carif has quit [Ping timeout: 272 seconds]
<benzrf> volty: ?
thelorax123 has quit [Remote host closed the connection]
Es0teric has joined #ruby
<benzrf> btw, does ruby allow you to provide a metaclass to a class definition?
<benzrf> or do metaclasses have to be used without the class syntac?
<benzrf> *syntax
<existensil> benzrf: considering these two examples, which are equivilent, might help illuminate things: https://gist.github.com/carlzulauf/7405510
timonv has quit [Ping timeout: 248 seconds]
<existensil> i'm not super familiar with Python's meta programming, so hard to relate exactly
Lewix has quit [Remote host closed the connection]
brianpWins has joined #ruby
thepumpkin has quit [Ping timeout: 272 seconds]
thelorax123 has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bnagy> metaclass turns out to not be a great name, sadly
<benzrf> existensil: classes in python are basically prototypes, and methods are normal functions that are bound to objects through special access hooks
<benzrf> like JS except that 'foo_bar = foo.bar; foo_bar()' works
michael_mbp is now known as zz_michael_mbp
<bnagy> eignenclass ( the class of the object itself ) is better, but not catchy
<existensil> benzrf: it sounds like ruby is pretty similar. you can definitely manipulate the methods boudn to a class, or an instance of a class
<benzrf> metaclass != eigenclass though
<benzrf> existensil: well ruby & python have very different object models
<bnagy> in ruby those names are interchangeable
<existensil> i'm sure... just talking about capability
<benzrf> python is more similar to JS while ruby is more like smalltalk
justsee has joined #ruby
<benzrf> bnagy: wait, what?
<benzrf> metaclass == class' class
<benzrf> i.e. metaclass of 3 is Class
<bnagy> not in ruby
<benzrf> so Struct is a metaclass
<bnagy> that would be an ancestor
<benzrf> well that just doesnt make sense then
<benzrf> wat?
<benzrf> an ancestor is a superclass
<existensil> >> [3.class, 3.class.class]
<eval-in_> existensil => [Fixnum, Class] (https://eval.in/65529)
<benzrf> right
<benzrf> Object would be 3's ancestor
<benzrf> Class is the metaclass
freezey has joined #ruby
<bnagy> that is not what people in ruby mean when they say metaclass, so if that's what you are thinking you will be confused
thepumpkin has joined #ruby
<bnagy> this is not a 'debate', I'm telling you :)
<benzrf> ah, ok
thepumpkin has quit [Read error: No route to host]
<benzrf> one thing i like about python is that any object can be called with () if it has a __call__ attr
<bnagy> every object in ruby has it's own special snowflake class that can also hold methods
<benzrf> bnagy: ik
<benzrf> and classes are just called like functions
thepumpkin has joined #ruby
<benzrf> so that means that you can duck-type classes & functions
<bnagy> this includes Class and Module ( which is how 'class methods' really work, but it includes _almost_ everything else as well
<benzrf> :D
thepumpkin has quit [Read error: Connection reset by peer]
hiyosi has joined #ruby
<MrZYX> well, in ruby .() gets mapped to the call method, not the same but at least close :P
xk_id has joined #ruby
<bnagy> ruby stuff most commonly duck types via respond_to?
thepumpkin has joined #ruby
<benzrf> not what i meant :p
<bnagy> so you can effectively duck type anything
<benzrf> python has basically interchangeable functions and classes
thepumpkin has quit [Read error: Connection reset by peer]
<bnagy> I am deeply uninterested in comparing ruby and python
<existensil> you can do that in Ruby too... See URI() vs URI.new
thepumpkin has joined #ruby
nXqd has quit [Quit: WeeChat 0.4.1]
<benzrf> existensil: wait, what?
tkuchiki has joined #ruby
<benzrf> how can ruby have nothing and () be different?
thepumpkin has quit [Read error: Connection reset by peer]
tsykoduk is now known as zz_tsykoduk
zz_tsykoduk is now known as tsykoduk
thepumpkin has joined #ruby
hogeo has joined #ruby
derebos has joined #ruby
scottstamp is now known as zz_scottstamp
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
kirun has quit [Quit: Client exiting]
benzrf has left #ruby [#ruby]
thepumpkin has quit [Read error: No route to host]
<existensil> benzrf: looks like URI does it by creating a method Kernel.URI