apeiros changed the topic of #ruby to: Ruby 2.0.0-p353: http://ruby-lang.org (Ruby 1.9.3-p484) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
sparrovv has quit [Quit: sparrovv]
kke has joined #ruby
burlyscudd1 has joined #ruby
burlyscudd1 has quit [Client Quit]
<havenwood> nordmike: The Rails channel is #RubyOnRails. Is this some legacy app you've been asked to resurrect?
hersha has quit [Quit: hersha]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jkhwan has quit [Ping timeout: 272 seconds]
burlyscudd has quit [Ping timeout: 245 seconds]
amacgregor_ has quit [Ping timeout: 246 seconds]
_HolyCow has quit [Read error: Connection reset by peer]
dh64 has quit [Quit: Konversation terminated!]
tommyvyo has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
sambao21 has quit [Quit: Computer has gone to sleep.]
_HolyCow has joined #ruby
_maes_ has quit [Ping timeout: 264 seconds]
zoo-zed has joined #ruby
otherj has joined #ruby
zoo-zed has quit [Client Quit]
Kricir has joined #ruby
nhhagen has joined #ruby
CaptainJet has joined #ruby
duggiefresh has quit [Remote host closed the connection]
jamblack has joined #ruby
jeekl has joined #ruby
bklane_ has quit [Remote host closed the connection]
sparrovv has joined #ruby
bklane has joined #ruby
Kricir has quit [Ping timeout: 272 seconds]
kaspergrubbe has quit [Remote host closed the connection]
clevermatt has joined #ruby
segv has left #ruby ["Linkinus - http://linkinus.com"]
DonRichie has quit [Quit: Verlassend]
CaptainJet has quit [Read error: No route to host]
mansi has joined #ruby
<tenjack> Hey, I'm looking at this code that has the line "id /= 100" inside a while loop. Can anyone explain what this is and what it's doing?
DonRichie has joined #ruby
fschuindt has joined #ruby
<havenwood> >> id = 100; id /= 2; id
<eval-in> havenwood => 50 (https://eval.in/73355)
tsykoduk is now known as zz_tsykoduk
tommyvyo has quit [Ping timeout: 264 seconds]
jkhwan has joined #ruby
<havenwood> TenJack: So you can do `+=`, `*=`, `\=`, etc to assign the variable to itself plus/times/divided by an argument.
i_s has joined #ruby
CaptainJet has joined #ruby
jamesaanderson has joined #ruby
burlyscudd has joined #ruby
<tenjack> havenwood: ah, i didnt know you could do the divisor. cool
<havenwood> TenJack: And others too!
<havenwood> >> id = 10; id %= 3; id
<eval-in> havenwood => 1 (https://eval.in/73356)
breakingthings has quit []
<tenjack> havenwood: cool :)
drag00n has joined #ruby
cleverma_ has joined #ruby
whunt has quit [Quit: Computer has gone to sleep.]
Kricir has joined #ruby
magoo has joined #ruby
tylersmi_ has joined #ruby
tylersmith has quit [Read error: Connection reset by peer]
athst has quit [Quit: athst]
michael_mbp is now known as zz_michael_mbp
ukd1 has quit [Quit: Leaving...]
zz_michael_mbp is now known as michael_mbp
yfeldblu_ has quit [Remote host closed the connection]
clevermatt has quit [Read error: No route to host]
kilophoton has joined #ruby
yfeldblum has joined #ruby
<terrellt> Don't forget binary.
<terrellt> >> id = 10; id <<= 1; id
<eval-in> terrellt => 20 (https://eval.in/73359)
TaxmanBD has joined #ruby
clevermatt has joined #ruby
nowthatsamatt has joined #ruby
asteros has joined #ruby
<havenwood> >> id = 10; id **= 10; id
<eval-in> havenwood => 10000000000 (https://eval.in/73360)
drag00n has quit [Ping timeout: 264 seconds]
cleverma_ has quit [Ping timeout: 246 seconds]
jibi has quit [Quit: .]
zz_tsykoduk is now known as tsykoduk
<havenwood> actually, ^= has some interesting use cases :P
DonRichie2 has joined #ruby
<bricker> What's up with the escape utils 1.0.0 release? `ruby -v # ruby 1.9.3p448; gem install escape_utils # escape_utils requires Ruby version > 1.9.3.`
matheuscaceres has joined #ruby
kilophoton has quit [Ping timeout: 252 seconds]
dtcrshr has quit [Remote host closed the connection]
b00stfr3ak has quit [Ping timeout: 272 seconds]
ldnunes has joined #ruby
<havenwood> bricker: I think he meant to: s.required_ruby_version = ">= 1.9.3"
<havenwood> ??
<bricker> Must be
<bricker> *fork*
<havenwood> 1.9.3 is still tested
kilophoton has joined #ruby
<havenwood> just a typo
p4d4w4n has joined #ruby
TaxmanBD has quit [Ping timeout: 245 seconds]
hogeo has joined #ruby
mojjojo has quit [Quit: mojjojo]
rburton- has quit [Quit: Linkinus - http://linkinus.com]
<havenwood> bricker: want to pull request or shall i? :P
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JuncoJet__ has quit [Ping timeout: 240 seconds]
<bricker> I'm on it
<havenwood> kk :)
tvw has quit []
DonRichie has quit [Quit: Verlassend]
<bricker> Jeez, it was released almost a month ago, none of them noticed yet?
JuncoJet has joined #ruby
<havenwood> apparently everyone is on 2.0.0 :P
<havenwood> or HEAD :O
drag00n has joined #ruby
thams has quit [Quit: thams]
fschuindt has quit [Quit: Textual IRC Client: www.textualapp.com]
michael_mbp is now known as zz_michael_mbp
zerign has joined #ruby
Beoran_ has joined #ruby
zz_michael_mbp is now known as michael_mbp
mikeser has quit [Quit: mikeser]
kilophoton has quit [Ping timeout: 264 seconds]
realDAB has joined #ruby
TaxmanBD has joined #ruby
nordmike has quit [Quit: Konversation terminated!]
n1x has joined #ruby
harrymoreno has quit [Ping timeout: 272 seconds]
cameronbarton has joined #ruby
Beoran__ has quit [Ping timeout: 245 seconds]
harrymoreno has joined #ruby
ldnunes has quit [Ping timeout: 245 seconds]
liamkeily has quit [Quit: WeeChat 0.4.1]
liamkeily has joined #ruby
kaspergrubbe has joined #ruby
mojjojo has joined #ruby
kilophoton has joined #ruby
DonRichie2 has left #ruby ["Verlassend"]
raphaelivan has joined #ruby
freezey has quit [Ping timeout: 272 seconds]
DonRichie2 has joined #ruby
cameronbarton has quit [Ping timeout: 272 seconds]
Jetchisel has joined #ruby
realDAB has quit [Quit: realDAB]
Lobster has quit [Quit: Lobster]
harrymoreno has quit [Quit: harrymoreno]
DonRichie2 has quit [Quit: ZNC - http://znc.in]
z3rongod has joined #ruby
<z3rongod> Hello! Is there anyone from Sweden online?
IceColdMax has quit [Quit: For a hard earned thirst...]
jacobsmith has joined #ruby
tylersmi_ has quit [Remote host closed the connection]
predator217 has joined #ruby
rjhunter has joined #ruby
Reach has joined #ruby
mojjojo has quit [Quit: mojjojo]
bklane has quit [Remote host closed the connection]
bklane has joined #ruby
<havenwood> bricker: :)
raphaelivan has quit [Ping timeout: 245 seconds]
predator117 has quit [Ping timeout: 265 seconds]
Leighton has joined #ruby
saarinen has joined #ruby
freezey has joined #ruby
rjhunter has quit [Ping timeout: 248 seconds]
michael_mbp is now known as zz_michael_mbp
bklane has quit [Ping timeout: 272 seconds]
TaxmanBD has quit [Ping timeout: 272 seconds]
ldnunes has joined #ruby
<z3rongod> Anyone from Sweden? Was hoping to get some career advice
liamkeily has quit [Ping timeout: 246 seconds]
DonRichie has joined #ruby
brianpWins has joined #ruby
raphaelivan has joined #ruby
cameronbarton has joined #ruby
whunt has joined #ruby
lfox has joined #ruby
fschuindt has joined #ruby
stringoO has quit [Quit: stringoO]
zz_michael_mbp is now known as michael_mbp
bklane has joined #ruby
clevermatt has quit [Ping timeout: 246 seconds]
petey has joined #ruby
zz_jrhorn424 is now known as jrhorn424
mmitchell has joined #ruby
ephemerian has quit [Quit: Leaving.]
bradhe has quit [Remote host closed the connection]
threesome has quit [Ping timeout: 264 seconds]
robustus has quit [Ping timeout: 264 seconds]
h0rrorvacui has joined #ruby
jamblack has quit [Quit: jamblack]
brianpWins has quit [Quit: brianpWins]
falood has joined #ruby
jamblack has joined #ruby
MattStra_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has quit [Remote host closed the connection]
charliesome has joined #ruby
robustus has joined #ruby
ccolorado has joined #ruby
Voodoofish4301 has joined #ruby
axl_ has joined #ruby
Voodoofish430 has quit [Ping timeout: 264 seconds]
sevenseacat has joined #ruby
ccolorado has left #ruby [#ruby]
Davey has quit [Quit: Computer has gone to sleep.]
tedstriker has joined #ruby
hogeo has quit [Remote host closed the connection]
Naoe-Kanno has quit [Quit: ネウロイを負かさなきゃならないね]
hogeo has joined #ruby
kevind has quit [Quit: kevind]
TaxmanBD has joined #ruby
hogeo has quit [Read error: Connection reset by peer]
hogeo has joined #ruby
end_guy has quit [Remote host closed the connection]
michael_mbp is now known as zz_michael_mbp
end_guy has joined #ruby
jkhwan has quit [Remote host closed the connection]
jamblack has quit [Quit: jamblack]
jkhwan has joined #ruby
jkhwan has quit [Remote host closed the connection]
jamblack has joined #ruby
jkhwan has joined #ruby
dayepa has joined #ruby
ddd has joined #ruby
havenwood has joined #ruby
bkparso has quit [Quit: bkparso]
jamesaanderson has joined #ruby
dorei has joined #ruby
TaxmanBD has quit [Ping timeout: 245 seconds]
i_s has quit []
superscott[8] has joined #ruby
<dorei> @socket.recv(12)
<dorei> IOError: recv for buffered IO
<dorei> any ideas ? i read somewhere that i shouldnt mix buffered and unbuffered methods, i think i've removed all the buffered ones
bkparso has joined #ruby
<dorei> but i aint 100% sure which are the buffered ones
TaxmanBD has joined #ruby
Davey has joined #ruby
Kricir has quit [Remote host closed the connection]
bkparso has quit [Client Quit]
magoo has quit [Ping timeout: 240 seconds]
lyanchih has joined #ruby
axl_ has quit [Quit: axl_]
asccigcc has joined #ruby
zz_michael_mbp is now known as michael_mbp
Xeago has joined #ruby
ffranz has quit [Quit: Leaving]
asccigcc has left #ruby [#ruby]
burlyscudd has quit [Ping timeout: 252 seconds]
tharindu has joined #ruby
crazymykl has quit [Remote host closed the connection]
tkuchiki has joined #ruby
crazymykl has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<bnagy> dorei: probably need to see more of your code
aley has quit [Quit: aley]
mark06 has joined #ruby
<dorei> bnagy: well, is there a list of all the io buffered methods so as to know for sure what to avoid ?
sparrovv has quit [Quit: sparrovv]
ddd is now known as deryl
deryl is now known as ddd
psyl0n has quit [Ping timeout: 272 seconds]
Xeago has quit [Ping timeout: 246 seconds]
burlyscudd has joined #ruby
<mark06> what is the status of ruby 2.1 previews? there's a bug with Math.log(really_big, base) which is fixed after 2.0 but I would like to have a reasonably stable version
<mark06> reasonably stable == less bugs than 2.0
psyl0n has joined #ruby
<withnale> I have two hashes of hashes that should be equivalent. However, one contains string literals for everything, the other contains real values (such as numbers and booleans)... Is there any easy way to convert it to all string literals so I can compare them?
RichardBaker has quit [Quit: RichardBaker]
<dorei> withnale: .to_s ?
harrymoreno has joined #ruby
<havenwood> >> Hash[{aim: true}.map { |k, v| [k.to_s, v.to_s] }]
<eval-in> havenwood => {"aim"=>"true"} (https://eval.in/73363)
<havenwood> withnale: ^
<withnale> I thought of a map of the values of the hash and using .to_s on the values, but the hash is a complex structure with many levels of hashes...
ddd is now known as pgpkeys
pgpkeys is now known as gpgkeys
<withnale> is there a trick, like converting it to yaml or json and back that would do it?
gpgkeys is now known as ddd
ddd has quit [Quit: account cleanup]
jcromartie has joined #ruby
ddd has joined #ruby
<mark06> >>h2={true => "hi", 123 => hello}; h2.keys.each {|k| h3[k.to_s] = h2[k]}; puts h3.inspect
<eval-in> mark06 => undefined local variable or method `hello' for main:Object (NameError) ... (https://eval.in/73364)
<mark06> >>h2={true => "hi", 123 => 'hello'}; h2.keys.each {|k| h3[k.to_s] = h2[k]}; puts h3.inspect
<eval-in> mark06 => undefined local variable or method `h3' for main:Object (NameError) ... (https://eval.in/73365)
<mark06> >>h2={true => "hi", 123 => 'hello'}; h3={}; h2.keys.each {|k| h3[k.to_s] = h2[k]}; puts h3.inspect
<eval-in> mark06 => {"true"=>"hi", "123"=>"hello"} ... (https://eval.in/73366)
<bnagy> dorei: if in doubt, just use only pure socket stuff
<mark06> withnale: ^
<mark06> withnale: but you can compare k1 == k2.to_s
<withnale> mark06: thanks but it needs to support nested hashes
<bnagy> in particular no methods from IO
<mark06> withnale: just put wahetever values you need
<dorei> bnagy: so only, Socket and BasicSocket stuff ?
rbwsam has quit [Quit: Leaving.]
<mark06> withnale: ok sorry
lfox has quit [Quit: ZZZzzz…]
<mark06> withnale: you want to do it recursively then
<bnagy> dorei: all you should need is recvfrom / nonblock anyway
iliketur_ has quit [Quit: zzzzz…..]
<bnagy> or alternatively, use only IO :)
<agent_white> ^ When I was tinkering with sockets the other day, IO was the most helpful.
<dorei> bnagy: i'll have to meditate upon your suggestions :)
<bnagy> which is the s.read(xxx) until s.eof? or whatever style
<bnagy> note that even eof? will blow it up
kaspergrubbe has quit [Remote host closed the connection]
<bnagy> if you try to recv afterwards
<dorei> yeap :)
marr has quit [Ping timeout: 272 seconds]
<dorei> i've found that out the hardway :)
axl_ has joined #ruby
<dorei> eof is when recv returns an empty string :)
nari_ has joined #ruby
bradhe has joined #ruby
<bnagy> shouldn't be
<bnagy> eof is more like socket actually closed
<dorei> recv returns an empty string on a gracefully closed socket from the other side
apok has joined #ruby
reset has quit [Quit: Leaving...]
hogeo has quit [Remote host closed the connection]
mj12albert has quit [Quit: Textual IRC Client: www.textualapp.com]
wedgeV has quit [Quit: wedgeV]
sambao21 has joined #ruby
ssvo_ has quit [Ping timeout: 245 seconds]
<dorei> oh silly me, i had forgotten an eof? at another thread
bradhe has quit [Ping timeout: 265 seconds]
michael_mbp is now known as zz_michael_mbp
alvaro_o has quit [Quit: Ex-Chat]
zz_michael_mbp is now known as michael_mbp
p4d4w4n has quit [Quit: This computer has gone to sleep]
CaptainJet has quit []
thams has joined #ruby
tsykoduk is now known as zz_tsykoduk
Lewix has quit [Remote host closed the connection]
wedgeV has joined #ruby
wedgeV has quit [Client Quit]
sambao21 has quit [Ping timeout: 246 seconds]
kitak has quit [Ping timeout: 246 seconds]
xk_id has quit [Quit:
okinomo has joined #ruby
bigoldrock has quit [Ping timeout: 272 seconds]
hamakn has joined #ruby
cameronbarton has quit [Quit: cameronbarton]
tharindu has quit [Quit: Leaving...]
hamakn has quit [Read error: Connection reset by peer]
hogeo has joined #ruby
hamakn_ has joined #ruby
hamakn has joined #ruby
hamakn_ has quit [Read error: Connection reset by peer]
acoyfellow has quit []
rjhunter has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
Jabberwock1 has quit [Read error: Connection reset by peer]
zump has quit [Quit: Page closed]
caveat- has quit [Ping timeout: 264 seconds]
CripperZ is now known as zz_CripperZ
caveat- has joined #ruby
tonni has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
adkron has quit [Ping timeout: 240 seconds]
timonv has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
tonni has joined #ruby
timonv has joined #ruby
rjhunter has quit [Ping timeout: 245 seconds]
superscott[8] has quit [Quit: superscott[8]]
asteros has quit [Quit: asteros]
<mark06> when will 2.1 be released?
SJr has quit [Excess Flood]
Jabberwock has joined #ruby
Jabberwock has quit [Changing host]
Jabberwock has joined #ruby
<ddd> when its ready
thams has quit [Quit: thams]
asteros has joined #ruby
<mark06> no schedule? ok
<havenwood> mark06: Christmas Day.
jenskarlsen has quit [Ping timeout: 265 seconds]
<mark06> is the preview fair enough ?
TaxmanBD has quit [Ping timeout: 272 seconds]
<mark06> havenwood: thanks
TaxmanBD has joined #ruby
<ddd> if that actually happens I'll ne suprised
<mark06> bnagy: hi... were you who saw my crazy encryption algorithm the other day? it has created legs... http://bazaar.launchpad.net/~renatosilva/+junk/scripts/view/head:/bacon-crypt.rb
<havenwood> mark06: preview2 is nice, should tide you over till Christmas
yfeldblum has quit [Ping timeout: 248 seconds]
<havenwood> mark06: There'll be a release candidate here in a bit.
<mark06> good....
SJr has joined #ruby
<havenwood> then on to 2.2
drag00n has quit [Ping timeout: 272 seconds]
jenskarlsen has joined #ruby
ldnunes has quit [Ping timeout: 272 seconds]
conor_ has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
fgo has joined #ruby
elux has joined #ruby
Bosox20051 has joined #ruby
nhhagen has quit [Remote host closed the connection]
jaybonci has joined #ruby
freezey has quit [Remote host closed the connection]
<bnagy> mark06: don't forget to keep breaking it
coca_rails has joined #ruby
TaxmanBD has quit [Ping timeout: 272 seconds]
mmitchell has quit [Remote host closed the connection]
kevinykchan has quit [Quit: Computer has gone to sleep.]
Davey has quit [Ping timeout: 246 seconds]
<coca_rails> yo
dhruvasagar has joined #ruby
cameronbarton has joined #ruby
nhhagen has joined #ruby
bradhe has quit [Remote host closed the connection]
hipsteryo has joined #ruby
<mark06> bnagy: keep? I never got it :)
sambao21 has joined #ruby
amacgregor has joined #ruby
bradhe has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
kitak has joined #ruby
lukec has quit [Quit: lukec]
<bnagy> distinguishable from random for chosen plaintext is as good as broken
vxxr has joined #ruby
mmitchell has joined #ruby
defendguin has joined #ruby
sambao21 has quit [Ping timeout: 272 seconds]
Voodoofish4301 has quit [Quit: Leaving.]
Gowie has joined #ruby
<Gowie> Anyone know of a gem to convert back and forth between coffeescript and javascript?
<jaybonci> Hey folks. Am seeing a screwed up problem on a fresh reinstall of ruby-2.0 latest on Mac OS X 10.8.5. I'm getting a Syntax error on the 2.0 hash assignment inside of server.rb in railties. rails -v shows 4.0.1 and ruby -v shows the rvm path to ruby. What might I be missing?
IceDragon has quit [Quit: Space~~~]
elux has quit [Quit: Bye!]
<bnagy> gist the exact error and the exact line of code
<bnagy> or check RUBY_VERSION in the code itself before the suspect line
raphaelivan has quit [Quit: Leaving.]
<mark06> any reason %RUBYLIB% not to work on windows? cannot get it... \\, \ or /, none work as path separator
lfox has joined #ruby
coca_rails has quit [Remote host closed the connection]
<mark06> $RUBYLIB works in msys (/local/bin) but not on cmd.exe when /local/bin is translated to windows path
<jaybonci> Untouched.
<bnagy> if you need to pass something to a windows API then you need windows\\style\\ otherwise for all ruby code you need ruby/style
coca_rails has joined #ruby
Soda has quit [Remote host closed the connection]
<jaybonci> Huh, ruby version is showing as 1.8.7 when I run it there. How can I scrub the old ruby out of my path.
cameronbarton has quit [Quit: cameronbarton]
Liothen has joined #ruby
bradhe has quit [Remote host closed the connection]
<bnagy> jaybonci: that depends on about a million things, some of which are all railsy, so I can't really help
<bnagy> especially with rvm :<
mmitchell has quit []
<bnagy> don't go removing usr bin ruby though
jamblack has quit [Quit: jamblack]
<mark06> jaybonci: type -a ruby
michael_mbp is now known as zz_michael_mbp
cameronbarton has joined #ruby
<jaybonci> mark06: It has three. One in .rvm/rubies/ruby-2.0.0-p353, the next in .rvm/bin/ruby, the last one in /usr/bin/ruby
<mark06> bnagy: tried all styles, c:/foo, c:\\foo, c:\foo... none work....it's odd cause it works from MSYS
zz_michael_mbp is now known as michael_mbp
<mark06> jaybonci: last one is likely a symlink to the old version
<bnagy> mark06: what are you actually trying to use the string for?
jrhorn424 is now known as zz_jrhorn424
cameronbarton has quit [Client Quit]
<mark06> bnagy: require's search path... works like a charm in MSYS
<jaybonci> mark06: Yeah, that's in the Ruby.framework piece.
jacobsmith has quit [Quit: leaving]
<mark06> jaybonci: ah wait... don't know... .rvm is within your home? well you can decide what to do with that though
<jaybonci> yeah, rvm is in my path, set by bashrc. It lives in ~/.rvm
veduardo has left #ruby [#ruby]
nobitanobi has quit [Ping timeout: 240 seconds]
otherj has quit []
sambao21 has joined #ruby
yfeldblum has joined #ruby
<mark06> bnagy: I can require 'parse-options' and it works in MSYS cause ENV['RUBYLIB']=='/local/bin'... but on cmd.exe, even if %RUBYLIB% is C:/Programs/Desenvolvimento/MinGW/msys/1.0/local/bin (the actual location of /local/bin), and with backslashes (single and double), even so it won't find parse-options....
<bnagy> well I don't have that env var on windows
endash has quit [Ping timeout: 248 seconds]
<jaybonci> Oh fascinating.
<jaybonci> This is a bug in RVM.
<jaybonci> Kind of
<jaybonci> My terminal isn't running my bash_profile
<jaybonci> it's running my bashrc
<jaybonci> Got it nailed, thanks for the pointers guys
asteros has quit [Ping timeout: 246 seconds]
<bnagy> jaybonci: that's 'normal'
moneydouble has quit [Quit: Leaving.]
<bnagy> switch to chruby :P
noob101 has joined #ruby
<bnagy> mark06: did you try just setting it in ENV instead?
<noob101> hello
<havenwood> +1 chruby
<bnagy> I'm not sure how the windows % substitution plays within ruby itself
<bnagy> like `%SYSTEMROOT%` gets me ""
<bnagy> as opposed to ENV['SYSTEMROOT']
coca_rails has quit [Remote host closed the connection]
coca_rails has joined #ruby
nhhagen has quit [Remote host closed the connection]
colonolGron has quit [Quit: leaving]
michael_mbp is now known as zz_michael_mbp
<heftig> bnagy: `%SYSTEMROOT%` makes no sense
<heftig> try `echo %SYSTEMROOT%`
tedstriker has quit [Quit: Anti-Fraping status set.]
Leighton has quit [Quit: leaving]
zz_michael_mbp is now known as michael_mbp
<Reach> textmate is amazing
<bnagy> heftig: yes. Because it's actually a windows command
okinomo has quit [Ping timeout: 272 seconds]
vpretzel has quit [Remote host closed the connection]
<heftig> bnagy: %SYSTEMROOT% is a directory, not a command
<heftig> you cannot execute a directory
<bnagy> echo is a command
vpretzel has joined #ruby
athst has joined #ruby
jaybonci has left #ruby [#ruby]
okinomo has joined #ruby
<bnagy> anyway, the point is that using windows % subst inside ruby doesn't really make sense at all
kure has joined #ruby
coca_rails has quit [Ping timeout: 245 seconds]
<heftig> if `` calls cmd it might work
<heftig> i mean, `echo $PATH` works in unix
<mark06> bnagy: cannot be set in ENV, but no I didn't... however the value is accessible via ENV...
<bnagy> but `$PATH` will also give you an exception
<bnagy> not just ""
<heftig> bnagy: that might be windows
ViPi2 has joined #ruby
ViPi2 has quit [Max SendQ exceeded]
<mark06> bnagy: cannot because it varies on each one's machine.... solution I'm using atm is require_relative (so the user needs parse-options in same dir...maybe easier though)
<bnagy> mark06: just use a gem?
clevermatt has joined #ruby
Davey has joined #ruby
sambao21 has quit [Ping timeout: 272 seconds]
vpretzel has quit [Ping timeout: 252 seconds]
lukec has joined #ruby
<mark06> bnagy: overkill... we never have time to learn stuff...
<mark06> but gem sounds good.... gem install my-stufff.....
kaspergrubbe has joined #ruby
athst has quit [Quit: athst]
nhhagen has joined #ruby
ewnd9 has joined #ruby
tharindu has joined #ruby
bklane has quit [Remote host closed the connection]
<mark06> thanks all anyway
michael_mbp is now known as zz_michael_mbp
asteros has joined #ruby
zz_michael_mbp is now known as michael_mbp
asteros has quit [Client Quit]
chuk has quit [Quit: This computer has gone to sleep]
fgo has quit [Ping timeout: 240 seconds]
kaspergrubbe has quit [Ping timeout: 252 seconds]
mark06 has left #ruby [#ruby]
mercwithamouth has quit [Ping timeout: 246 seconds]
LexicalScope has joined #ruby
LexicalScope has quit [Changing host]
LexicalScope has joined #ruby
dhruvasagar has quit [Ping timeout: 272 seconds]
zoite has joined #ruby
diegoviola has joined #ruby
rjhunter has joined #ruby
<bnagy> dammit now I want to reverse `` instead of working
michael_mbp is now known as zz_michael_mbp
zz_michael_mbp is now known as michael_mbp
Mars` has quit [Remote host closed the connection]
ddd has quit [Quit: Leaving]
liamkeily has joined #ruby
Mars` has joined #ruby
havenwood has quit [Remote host closed the connection]
bklane has joined #ruby
bklane has quit [Remote host closed the connection]
matheuscaceres has quit [Quit: matheuscaceres]
rjhunter has quit [Ping timeout: 245 seconds]
n1x has quit [Ping timeout: 272 seconds]
agent_white has quit [Quit: leaving]
varfoo has joined #ruby
fgo has joined #ruby
hipsteryo has quit [Quit: hipsteryo]
asteros has joined #ruby
Mars` has quit [Ping timeout: 248 seconds]
AndroUser has joined #ruby
liamkeily has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby
fgo_ has joined #ruby
fgo has quit [Ping timeout: 246 seconds]
hogeo has quit [Ping timeout: 246 seconds]
michael_mbp is now known as zz_michael_mbp
zz_michael_mbp is now known as michael_mbp
Spami has quit [Quit: This computer has gone to sleep]
hogeo has joined #ruby
moneydouble has joined #ruby
rjhunter has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pixiebit has joined #ruby
<pixiebit> Hey guys am I doing it right? http://pastebin.com/YeWjaw9i
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jkhwan has quit [Remote host closed the connection]
jkhwan has joined #ruby
jonnyro has joined #ruby
estebistec has joined #ruby
bier has quit [Ping timeout: 245 seconds]
moneydouble has quit [Ping timeout: 248 seconds]
bier has joined #ruby
adkron has joined #ruby
brandon has joined #ruby
b00stfr3ak has joined #ruby
brandon is now known as Guest16383
nhhagen has quit [Remote host closed the connection]
tharindu has quit [Quit: Leaving...]
nhhagen has joined #ruby
cads has quit [Ping timeout: 248 seconds]
havenwood has joined #ruby
jkhwan has quit [Ping timeout: 272 seconds]
danshultz has joined #ruby
aley has joined #ruby
aley has quit [Client Quit]
Briareos1 has quit [Remote host closed the connection]
nhhagen has quit [Ping timeout: 252 seconds]
banghouse2 has quit [Remote host closed the connection]
jeffdb has quit [Quit: jeffdb]
lethjakman has quit [Ping timeout: 246 seconds]
Kricir has quit [Remote host closed the connection]
polaco is now known as polaco_zZz
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
<bnagy> pixiebit: doing what right?
<pixiebit> n queens, ruby, idk
nateberkopec has joined #ruby
coderhs has joined #ruby
Monie has joined #ruby
rickruby has quit [Remote host closed the connection]
moneydouble has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
rickruby has joined #ruby
<bnagy> well it runs, that's something :)
noob101 has quit [Ping timeout: 250 seconds]
sambao21 has joined #ruby
hamakn has quit [Ping timeout: 246 seconds]
noname001__ has quit [Remote host closed the connection]
nwertman has quit [Ping timeout: 264 seconds]
pixiebit has quit [Quit: Leaving.]
radic has quit [Disconnected by services]
radic_ has joined #ruby
michael_mbp is now known as zz_michael_mbp
zz_michael_mbp is now known as michael_mbp
kevinykchan has joined #ruby
moneydouble has quit [Ping timeout: 252 seconds]
ewnd9 has quit [Ping timeout: 252 seconds]
rickruby has quit [Ping timeout: 240 seconds]
aley has joined #ruby
yfeldblum has quit [Remote host closed the connection]
sambao21 has quit [Ping timeout: 248 seconds]
randomnick_ has quit [Read error: Operation timed out]
aley has quit [Client Quit]
funburn_ has joined #ruby
funburn has quit [Ping timeout: 272 seconds]
funburn_ is now known as funburn
aley has joined #ruby
pixiebit has joined #ruby
michael_mbp is now known as zz_michael_mbp
Kricir has joined #ruby
rezzack has quit [Quit: Leaving.]
aley has quit [Client Quit]
n1x has joined #ruby
Clooth has quit [Quit: Leaving...]
axl_ has quit [Quit: axl_]
mothball has joined #ruby
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
jkhwan has joined #ruby
zz_michael_mbp is now known as michael_mbp
Guest16383 has quit [Remote host closed the connection]
digital-ghost has quit [Remote host closed the connection]
smathieu has quit [Ping timeout: 265 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jkhwan has quit [Ping timeout: 272 seconds]
jeffdb has joined #ruby
b00stfr3ak has quit [Ping timeout: 272 seconds]
theoretick has joined #ruby
Mars` has joined #ruby
zz_CripperZ is now known as CripperZ
tjbiddle has joined #ruby
amacgregor has quit [Ping timeout: 245 seconds]
jamesaanderson has joined #ruby
jeffdb has quit [Client Quit]
estebistec has quit [Remote host closed the connection]
estebistec has joined #ruby
sputnik13 has joined #ruby
<kiba> hiho
<kiba> g = Gem::SpecFetcher.new.available_specs(:complete).first.values.flatten.map { |gem| {name: gem.full_name, version: gem.version.to_s } }
<kiba>
<kiba> this line of code doesn't work because available_specs doesn't seems to exist
maletor has joined #ruby
<kiba> it's an undefined methods
hogeo has quit [Remote host closed the connection]
smathieu has joined #ruby
<havenwood> kiba: are you using the latest RubyGems?
<kiba> I am not sure
<havenwood> kiba: gem -v
<kiba> I think I am using an ancient version of rubygems
hogeo has joined #ruby
<kiba> 1.8.25
capicue has quit [Quit: Leaving...]
<havenwood> kiba: gem update --system
zz_jrhorn424 is now known as jrhorn424
<havenwood> ^ is latest stable
<havenwood> latest is: gem update --system --pre
<kiba> I am using 1.9.3 too
jmkeyes has joined #ruby
<havenwood> kiba: if you're not going to update to 2.0.0 (which you probably should) at least get latest RubyGems
liamkeily has joined #ruby
<kiba> havenwood: I am updating right now
<havenwood> :)
estebistec has quit [Ping timeout: 246 seconds]
<kiba> sooner or later, I am going to have to rewrite the entire article in light of your suggestion
aspires has quit []
<havenwood> further down the rabbit hole :P
Kricir has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
<kiba> no worries, I am used to long term projects
<kiba> well, they only last a month or two, but it does feel long term
* kiba took a month to learn statistics on his own
danshultz has joined #ruby
hogeo has quit [Ping timeout: 272 seconds]
senaxfz has joined #ruby
nobitanobi has joined #ruby
danshultz has quit [Ping timeout: 246 seconds]
s2013 has joined #ruby
Kricir has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<kiba> well, two months
<kiba> but it was a semester long class
osvico has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
nhhagen has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
babyak has joined #ruby
dorei has quit []
michael_mbp is now known as zz_michael_mbp
zz_michael_mbp is now known as michael_mbp
jamesaanderson has joined #ruby
matematikaadit has joined #ruby
lfox has quit [Quit: ZZZzzz…]
nhhagen has quit [Ping timeout: 252 seconds]
ananthakumaran has joined #ruby
ddd has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
havenwood has quit [Remote host closed the connection]
AndroUser has quit [Quit: AndroIRC - my Android died]
dukz has joined #ruby
_maes_ has joined #ruby
kitak_ has joined #ruby
kitak_ has quit [Read error: Connection reset by peer]
kitak_ has joined #ruby
lyanchih has quit [Quit: lyanchih]
kitak has quit [Ping timeout: 246 seconds]
<kiba> Hmm
ddd has quit [Client Quit]
burlyscudd has quit [Quit: Leaving.]
<kiba> so I get the specs, but I only get the version...
<kiba> um
hamakn has joined #ruby
<jmkeyes> http://pastebin.com/mHYBq6uX Why does this Ruby code work, but the C translation does not?
ddd has joined #ruby
nisstyre has joined #ruby
<kiba> availabe_specs gave me the versions of every gem
<kiba> which is good, but not all the other meta data associated with it..
<kiba> I guess that's a start
Kricir has quit [Remote host closed the connection]
dogweather has joined #ruby
vxxr has quit [Quit: leaving]
s2013_ has joined #ruby
vpretzel has joined #ruby
apok has quit [Quit: apok]
s2013 has quit [Remote host closed the connection]
hiyosi has quit [Ping timeout: 246 seconds]
ravster has quit [Quit: Leaving.]
michael_mbp is now known as zz_michael_mbp
zz_michael_mbp is now known as michael_mbp
mothball has quit [Ping timeout: 272 seconds]
theoretick has quit [Ping timeout: 245 seconds]
liamkeily has quit [Ping timeout: 265 seconds]
estebistec has joined #ruby
osvico has quit [Ping timeout: 245 seconds]
zerign has quit [Ping timeout: 272 seconds]
psyl0n has quit [Remote host closed the connection]
hogeo has joined #ruby
moneydouble has joined #ruby
tharindu has joined #ruby
Barrin6 has joined #ruby
havenwood has joined #ruby
jonnyro has quit [Quit: leaving]
Barrin6 has quit [Client Quit]
michael_mbp is now known as zz_michael_mbp
zz_michael_mbp is now known as michael_mbp
rickruby has joined #ruby
lunarjar has quit [Ping timeout: 240 seconds]
capicue has joined #ruby
falood has quit [Remote host closed the connection]
browndawg has joined #ruby
moneydouble has quit [Ping timeout: 272 seconds]
hogeo has quit [Ping timeout: 272 seconds]
Lewix has joined #ruby
lunarjar has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
kilophoton has quit [Ping timeout: 272 seconds]
lukec has quit [Quit: lukec]
smathieu has quit [Remote host closed the connection]
vpretzel has quit [Ping timeout: 272 seconds]
michael_mbp is now known as zz_michael_mbp
smathieu has joined #ruby
zz_michael_mbp is now known as michael_mbp
jmkeyes has left #ruby [#ruby]
Barrin6 has joined #ruby
zz_tsykoduk is now known as tsykoduk
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
s2013_ is now known as s2013
ananthakumaran has joined #ruby
_HolyCow1 has joined #ruby
smathieu has quit [Ping timeout: 272 seconds]
hogeo has joined #ruby
whunt has quit [Quit: Computer has gone to sleep.]
_HolyCow has quit [Ping timeout: 252 seconds]
blaskovicz has joined #ruby
DeanH has joined #ruby
jkhwan has joined #ruby
lyanchih has joined #ruby
ddd has quit [Quit: Leaving]
tsykoduk is now known as zz_tsykoduk
JohnBat26 has joined #ruby
havenwood has quit [Remote host closed the connection]
asteros has quit [Quit: asteros]
banghouse2 has joined #ruby
jkhwan has quit [Ping timeout: 272 seconds]
Kricir has joined #ruby
jamblack has joined #ruby
bradhe has joined #ruby
asteros has joined #ruby
dhruvasagar has joined #ruby
joonty_ has joined #ruby
asteros has quit [Client Quit]
zerign has joined #ruby
joonty has quit [Ping timeout: 272 seconds]
<pixiebit> >:J
<pixiebit> okay fain
aspires has joined #ruby
funburn has quit [Quit: funburn]
capicue has quit [Quit: Leaving...]
bricker`LA has quit [Ping timeout: 245 seconds]
havenwood has joined #ruby
kilophoton has joined #ruby
petey_ has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
banghouse2 has quit [Ping timeout: 248 seconds]
dhruvasagar has joined #ruby
Bira has quit []
danielfeng has joined #ruby
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby
osvico has joined #ruby
lunarjar has quit [Ping timeout: 240 seconds]
petey has quit [Ping timeout: 272 seconds]
ananthakumaran has quit [Quit: Leaving.]
falood has joined #ruby
iamjarvo has joined #ruby
lunarjar has joined #ruby
clevermatt has quit [Remote host closed the connection]
iamjarvo1 has joined #ruby
ewnd9 has joined #ruby
joumunji has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
<unstable> I have an array with 3 integers. I want to generate 3 arrays, where each of the 3 integers are last in the 3 new arrays.
<unstable> What is a clean, and short way to do this in ruby?
nhhagen has joined #ruby
<bnagy> example input and output plz
capicue has joined #ruby
bricker`LA has joined #ruby
<pixiebit> [a, b, c] => [[nil, nil, a], [nil, nil, b], [nil, nil, c]] ?
danshultz has joined #ruby
mansi has quit [Ping timeout: 246 seconds]
<unstable> [1, 2, 3] => [1, 2, 3], [3, 2, 1], [3, 1, 2]
nhhagen has quit [Ping timeout: 252 seconds]
<joumunji> do you want all possible combinations?
okinomo has quit [Ping timeout: 240 seconds]
<joumunji> or just those three specifically
<unstable> just those 3
<unstable> I want each of the three integers in the array to have a chance to be ordered in the last position
<sevenseacat> so what makes those 3 special
iamjarvo1 has quit [Quit: Leaving.]
defendguin has left #ruby [#ruby]
<unstable> I want to find all the orientations of a box.
amoli has quit [Ping timeout: 272 seconds]
<unstable> with different height
<sevenseacat> so why specifically 1,2,3 and not 2,1,3
dhruvasagar has quit [Read error: Connection reset by peer]
<unstable> sevenseacat: Those are equivalent.
<pixiebit> isn't there a permutations method
<unstable> Once a unique height is picked, I don't care what the order of 1 or 2 is
danshultz has quit [Ping timeout: 246 seconds]
TDJACR has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby
danielfeng has quit [Quit: Leaving]
dkastner has quit [Quit: leaving]
<pixiebit> Array.rotate(!) ?
<bnagy> >> a=[1,2,3]; a.map {|x| a-[x] << x}
<eval-in> bnagy => [[2, 3, 1], [1, 3, 2], [1, 2, 3]] (https://eval.in/73408)
lyanchih has quit [Quit: lyanchih]
<bnagy> bit golfy though
bluepojo has joined #ruby
<pixiebit> I'd just definite a new method to return all the rotations.
<pixiebit> *define
<pixiebit> But all of those should work.
ppppaul has joined #ruby
<unstable> wow, that was so much shorter and cleaner than mine.
hiyosi has joined #ruby
<unstable> That was mine. heh
havenwood has quit [Remote host closed the connection]
falood has quit [Remote host closed the connection]
<bnagy> >> x=[];a=[1,2,3]; a.size.times {x << a.rotate!.dup}
<eval-in> bnagy => 3 (https://eval.in/73410)
<bnagy> ugh sry. x is correct
<bnagy> >> x=[];a=[1,2,3]; a.size.times {x << a.rotate!.dup}; x
<eval-in> bnagy => [[2, 3, 1], [3, 1, 2], [1, 2, 3]] (https://eval.in/73411)
<bnagy> still pretty bad
<pixiebit> yeah but all those ;'s
<bnagy> that's just for the bot
lyanchih has joined #ruby
bricker`1A has joined #ruby
<unstable> Thanks for the help
Kricir has quit [Ping timeout: 248 seconds]
thams has joined #ruby
TDJACR has joined #ruby
bricker`LA has quit [Ping timeout: 272 seconds]
nowthatsamatt has quit [Quit: nowthatsamatt]
<bnagy> a=[1,2,3]; a.each_index.with_object([]) {|i,x| x << a.rotate(i)}
larissa has quit [Quit: Leaving]
hiyosi has quit [Ping timeout: 272 seconds]
cads has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
dhruvasagar has joined #ruby
t_p has joined #ruby
<bnagy> ooh
<bnagy> >> [1,2,3].map.with_index {|_,i| a.rotate i}
<eval-in> bnagy => undefined local variable or method `a' for main:Object (NameError) ... (https://eval.in/73415)
jamblack has quit [Quit: jamblack]
michael_mbp is now known as zz_michael_mbp
<bnagy> apart from assignment
zz_michael_mbp is now known as michael_mbp
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
<bnagy> definitely best
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
vpretzel has joined #ruby
hogeo has quit [Remote host closed the connection]
yacks has quit [Quit: Leaving]
zoite has quit [Ping timeout: 252 seconds]
<bnagy> >> [1,2,3].permutation.group_by(&:last).values.map(&:first)
<eval-in> bnagy => [[1, 2, 3], [1, 3, 2], [2, 3, 1]] (https://eval.in/73416)
<bnagy> I CAN GO ON ALL DAY DAMMIT
fridim__ has quit [Ping timeout: 245 seconds]
<shevy> hehe
ananthakumaran has quit [Ping timeout: 246 seconds]
vpretzel has quit [Ping timeout: 265 seconds]
magoo has joined #ruby
aspires has quit []
zxq9 has quit [Quit: Konversation terminated!]
osvico has quit [Ping timeout: 265 seconds]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
michael_mbp is now known as zz_michael_mbp
zz_michael_mbp is now known as michael_mbp
hogeo has joined #ruby
kure has quit [Ping timeout: 245 seconds]
aspires has joined #ruby
joumunji has quit [Remote host closed the connection]
CripperZ is now known as N00D
dcope has joined #ruby
<dcope> is there a way to fire off an async http request and just keep execution running?
aspires has quit [Client Quit]
waxjar has quit [Ping timeout: 240 seconds]
aspires has joined #ruby
blaskovicz has quit [Quit: Leaving.]
hiall has joined #ruby
harrymoreno has quit [Quit: harrymoreno]
duncan_bayne has quit [Ping timeout: 265 seconds]
wind2x has joined #ruby
fixl has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vpretzel has joined #ruby
phansch has joined #ruby
estebistec has quit [Ping timeout: 240 seconds]
amacgregor has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
tjbiddle has quit [Quit: tjbiddle]
rickruby has quit [Remote host closed the connection]
JuncoJet_ has joined #ruby
jkhwan has joined #ruby
vpretzel has quit [Ping timeout: 245 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
michael_mbp is now known as zz_michael_mbp
zz_michael_mbp is now known as michael_mbp
capicue has quit [Quit: Leaving...]
JuncoJet has quit [Ping timeout: 265 seconds]
alexserver has joined #ruby
jkhwan has quit [Ping timeout: 272 seconds]
capicue has joined #ruby
dhruvasagar has joined #ruby
Leighton has joined #ruby
falood has joined #ruby
hogeo has quit [Remote host closed the connection]
michael_mbp is now known as zz_michael_mbp
hogeo has joined #ruby
zz_michael_mbp is now known as michael_mbp
psyprus has quit [Read error: Connection reset by peer]
rjhunter has quit [Remote host closed the connection]
havenwood has joined #ruby
wind2x has quit [Ping timeout: 264 seconds]
sheap has joined #ruby
hogeo has quit [Ping timeout: 265 seconds]
rickruby has joined #ruby
michael_mbp is now known as zz_michael_mbp
zz_michael_mbp is now known as michael_mbp
psyprus has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
mansi has joined #ruby
DeanH has quit [Quit: Textual IRC Client: www.textualapp.com]
Lewix has quit [Remote host closed the connection]
banghouse2 has joined #ruby
nhhagen has joined #ruby
Barrin6 has quit []
athst has joined #ruby
dcope has left #ruby [#ruby]
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
axilla has quit [Ping timeout: 252 seconds]
athst has quit [Client Quit]
havenwood has quit [Ping timeout: 264 seconds]
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
mansi has quit [Ping timeout: 245 seconds]
hogeo has joined #ruby
nhhagen has quit [Ping timeout: 272 seconds]
michael_mbp is now known as zz_michael_mbp
sergicles has quit [Ping timeout: 245 seconds]
zz_michael_mbp is now known as michael_mbp
kilophoton has quit [Ping timeout: 264 seconds]
tobyo has quit [Ping timeout: 245 seconds]
jrhorn424 is now known as zz_jrhorn424
ananthakumaran has joined #ruby
hamakn has quit [Ping timeout: 272 seconds]
eliasp has quit [Ping timeout: 252 seconds]
apok has joined #ruby
petey_ has quit [Remote host closed the connection]
blumner has joined #ruby
Kricir has joined #ruby
<blumner> hey punks and punkesses
Alina-malina has quit [Quit: Leaving]
hiyosi has joined #ruby
<shevy> hey snakes and snakistas
soba has joined #ruby
hiyosi has quit [Read error: Operation timed out]
sergicles has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
hogeo has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
hogeo has joined #ruby
RichardBaker has joined #ruby
bean has quit [Ping timeout: 272 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
shredding has joined #ruby
hogeo has quit [Ping timeout: 246 seconds]
senaxfz has left #ruby ["be back soon."]
sergicles has quit [Read error: No route to host]
okinomo has joined #ruby
nobitanobi has quit [Remote host closed the connection]
Tamae has quit [Read error: Connection reset by peer]
sergicles has joined #ruby
Soliah has quit [Quit: Soliah]
apok has quit [Quit: apok]
LexicalScope has quit [Ping timeout: 252 seconds]
hogeo has joined #ruby
z3rongod has quit [Ping timeout: 250 seconds]
havenwood has joined #ruby
jeffdb has joined #ruby
michael_mbp is now known as zz_michael_mbp
LexicalScope has joined #ruby
LexicalScope has quit [Changing host]
LexicalScope has joined #ruby
Fire-Dragon-DoL has quit [Ping timeout: 246 seconds]
ghanima has joined #ruby
zz_michael_mbp is now known as michael_mbp
jeffdb has quit [Ping timeout: 245 seconds]
Fire-Dragon-DoL has joined #ruby
iliketur_ has joined #ruby
jeffdb has joined #ruby
rjhunter has joined #ruby
blumner has quit [Ping timeout: 264 seconds]
wind2x has joined #ruby
weems has quit [Ping timeout: 272 seconds]
tagrudev has joined #ruby
sergicles has quit [Quit: sergicles]
michael_mbp is now known as zz_michael_mbp
zz_michael_mbp is now known as michael_mbp
Fire-Dragon-DoL has quit [Read error: Operation timed out]
Linux_Extremist has joined #ruby
rjhunter has quit [Ping timeout: 248 seconds]
falood has quit [Remote host closed the connection]
dhruvasagar has quit [Read error: Connection reset by peer]
tobyo has joined #ruby
hiall has quit [Quit: hiall]
dhruvasagar has joined #ruby
coderhs has quit [Ping timeout: 272 seconds]
coder_neo has joined #ruby
alexserver has quit [Remote host closed the connection]
afzal has joined #ruby
Kricir has quit [Ping timeout: 264 seconds]
adkron has quit [Ping timeout: 264 seconds]
sheap_ has joined #ruby
sheap_ has quit [Client Quit]
sheap has quit [Quit: leaving]
sheap has joined #ruby
matematikaadit has quit [Remote host closed the connection]
Soda has joined #ruby
okinomo has quit [Ping timeout: 248 seconds]
noop has joined #ruby
sheap has quit [Client Quit]
s2013 has quit [Ping timeout: 245 seconds]
rjhunter has joined #ruby
sheap has joined #ruby
amritanshu_RnD has joined #ruby
sheap has quit [Client Quit]
shredding has quit [Quit: shredding]
sheap has joined #ruby
bean has joined #ruby
mengu has joined #ruby
jeffdb has quit [Quit: jeffdb]
iamjarvo has quit [Remote host closed the connection]
<unstable> How can I make ruby puts a has to std.out in a pretty way?
iamjarvo has joined #ruby
shredding has joined #ruby
rjhunter has quit [Ping timeout: 246 seconds]
michael_mbp is now known as zz_michael_mbp
zz_michael_mbp is now known as michael_mbp
<jrobeson> huh?
<jrobeson> put a what?
dhruvasagar has quit [Read error: Connection reset by peer]
sandeepk has joined #ruby
<jrobeson> you could try using the prettyprint lib
jeffdb has joined #ruby
<jrobeson> or perhaps awesome_print
pixiebit has left #ruby [#ruby]
dhruvasagar has joined #ruby
phansch has quit [Quit: Leaving]
<unstable> puts a hash
<unstable> rather
<unstable> s/has/hash/
<jrobeson> try one of those
<jrobeson> otherwise make your own
Alina-malina has joined #ruby
<unstable> ok
iamjarvo has quit [Ping timeout: 272 seconds]
michael_mbp is now known as zz_michael_mbp
rjhunter has joined #ruby
zz_michael_mbp is now known as michael_mbp
Xeago has joined #ruby
xcess_denied has joined #ruby
<jle`> i like pretty printing to to_yaml or to_json.
<jle`> myself.
mansi has joined #ruby
Metal-01 has joined #ruby
hamakn has joined #ruby
nhhagen has joined #ruby
Metal-01 has quit [Read error: Connection reset by peer]
<jrobeson> oh yeah YAML is part of the stdlib ..
Linux_Extremist has quit [Ping timeout: 245 seconds]
michael_mbp is now known as zz_michael_mbp
zz_michael_mbp is now known as michael_mbp
<shevy> jrobeson I thought unstable was a lolcat for a moment
<shevy> how can I make ruby puts a has cheese
<jrobeson> hah
<shevy> ohh... or a hash cheese. you give me new ideas unstable!
<mr`spock> shevy, duh with hambrugrzz
<jrobeson> hash cheese?
<shevy> lol
<jrobeson> what would that be like?
<shevy> a hash cheese with hambruggs plz
<shevy> tasty jrobeson, tasty
<jrobeson> PLZ!!!!
apeiros has quit [Remote host closed the connection]
mansi has quit [Ping timeout: 272 seconds]
<shevy> json is not in ruby stdlib?
apeiros has joined #ruby
<shevy> do note I am on 1.9.3 ... I have no idea what 2.x offers really...
<jrobeson> shevy, sure.. but i wouldn't recommend pretty printing it
<jrobeson> yaml would be a lot nicer
<shevy> hmm
<jrobeson> that's just me perhaps
nhhagen has quit [Ping timeout: 252 seconds]
<shevy> I used to use yaml for a long time, for many configuration files
bradhe has quit [Remote host closed the connection]
jonahR has quit [Quit: jonahR]
<jrobeson> just depends on whether you want to have {} in your output or not .. i usually don't
<jrobeson> i imagine it formats the same otherwise
<jle`> what's up with that double parsing exploit btw. has it been fixed yet?
<jrobeson> haven't tried it with deep objects
fschuindt has quit [Quit: Textual IRC Client: www.textualapp.com]
<jrobeson> ruby tracks the CVE in the bug tracker i hope?
dhruvasagar has quit [Read error: Connection reset by peer]
michael_mbp is now known as zz_michael_mbp
dhruvasagar has joined #ruby
hiyosi has joined #ruby
zz_michael_mbp is now known as michael_mbp
relix has joined #ruby
Kricir has joined #ruby
havenwood has quit [Remote host closed the connection]
marcgg_ has joined #ruby
Gowie has quit [Ping timeout: 252 seconds]
dogweather has left #ruby [#ruby]
roolo has joined #ruby
|PiP| has quit [Ping timeout: 240 seconds]
tonni has quit [Remote host closed the connection]
|PiP| has joined #ruby
jeffdb has quit [Quit: jeffdb]
tonni has joined #ruby
apok has joined #ruby
kilophoton has joined #ruby
kevinykchan has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
hiyosi has quit [Ping timeout: 240 seconds]
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
marcgg has quit [Ping timeout: 248 seconds]
thams has quit [Quit: thams]
<afzal> facing problem in rails app
dhruvasagar has joined #ruby
<unstable> afzal: #rubyonrails
Reach has quit [Remote host closed the connection]
<mr`spock> unstable, to join, i have to register and authenticate with freenode?
<sevenseacat> yep.
<unstable> mr`spock: Thank the spammers.
tonni has quit [Ping timeout: 252 seconds]
kilophoton has quit [Ping timeout: 264 seconds]
<unstable> http://pastie.org/8509116 .. how can I turn this hash, into { "box01" => 8, "box02" => 20, "box03" => 10, "box11" => 8, etc etc }
Elhu has joined #ruby
marcgg has joined #ruby
Deele has joined #ruby
ppppaul has quit [Ping timeout: 272 seconds]
t_p has quit [Ping timeout: 240 seconds]
michael_mbp is now known as zz_michael_mbp
<shevy> what an annoying hash :D
zz_michael_mbp is now known as michael_mbp
<unstable> shevy: yep, heh
marcgg_ has quit [Ping timeout: 246 seconds]
<shevy> it is basically a key1 -> key2 -> desired_hash_here thing
<Galeforce> hi sevenseacat
<Galeforce> hi shevy
<shevy> hey Galeforce
<sevenseacat> afternoon
shredding has quit [Quit: shredding]
<mr`spock> unstable, shevy, i don't know precisely but i'd use a combination of inject({}) with a map inside
mengu has quit [Remote host closed the connection]
afzal has left #ruby ["Leaving"]
<mr`spock> definitely a funky hash
<apeiros> inject({}) is almost always abusing inject.
<apeiros> each_with_object({}) usually.
michael_mbp is now known as zz_michael_mbp
<bnagy> Hash[hsh.map{|k,v| v[k]['base_area']}]
jhaals has joined #ruby
<Galeforce> bnagy
<bnagy> oh dint see the 01 01 etc
<apeiros> bnagy: forgot the key in the map ;-)
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
babyak has quit [Remote host closed the connection]
jeffdb has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
zz_michael_mbp is now known as michael_mbp
hiall has joined #ruby
<shevy> unstable here is one solution http://pastie.org/pastes/8509128/text
<apeiros> Hash[data.flat_map { |_,boxes| boxes.map { |k,v| [k, v['base_area']] } }]
capicue has quit [Quit: Leaving...]
<apeiros> ugh, it's 3 levels deep actually…
dzhulk has joined #ruby
engleby has joined #ruby
hiall_ has joined #ruby
<unstable> I think I'll just not make such an ugly looking hash first
tjad has quit [Ping timeout: 246 seconds]
<unstable> instead of trying to traverse something like this.
<mr`spock> hahaha
<mr`spock> save yourself the headache
<apeiros> Hash[data.values.flat_map(&:values).inject(&:merge).map { |k,v| [k,v["base_area"]] }]
<shevy> unstable that's the spirit! if your input is good, the amount of processing is less
marcgg_ has joined #ruby
<apeiros> and yes unstable - start out with a saner datastructure.
<apeiros> above works btew.
<apeiros> *btw.
<apeiros> gotta go, commute
<shevy> unstable imagine a hash that includes the whole dataset of the universe
hiall has quit [Ping timeout: 245 seconds]
hiall_ is now known as hiall
iamjarvo has joined #ruby
bluOxigen has joined #ruby
apeiros has quit [Remote host closed the connection]
marcgg has quit [Ping timeout: 240 seconds]
iliketur_ has joined #ruby
apeiros has joined #ruby
coder_neo has quit [Ping timeout: 246 seconds]
serp` has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
braoru has joined #ruby
aspires has quit []
apeiros has quit [Ping timeout: 248 seconds]
<pontiki> impossible
amacgregor_ has joined #ruby
weems has joined #ruby
amacgregor_ has quit [Read error: Connection reset by peer]
n1x has quit [Ping timeout: 248 seconds]
threesome has joined #ruby
amacgregor_ has joined #ruby
<shevy> why :-)
amacgregor has quit [Read error: Connection reset by peer]
<pontiki> whatever you can imagine, it will be far short of the whole :)
|PiP|` has joined #ruby
alexparker has quit [Quit: zzzZzzZzZzZZZ]
|PiP| has quit [Ping timeout: 246 seconds]
tharindu has quit [Quit: Leaving...]
bigkevmcd has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
tenjack has quit [Remote host closed the connection]
iliketur_ has quit [Quit: zzzzz…..]
xcess_denied has quit [Quit: Leaving...]
RichardBaker has quit [Quit: RichardBaker]
tonni has joined #ruby
ahawkins has joined #ruby
tjad has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
GreatSUN has joined #ruby
<GreatSUN> hi all
serp` has quit [Quit: serp`]
falood has joined #ruby
hogeo has quit [Remote host closed the connection]
tharindu has joined #ruby
apok has quit [Quit: apok]
pranny has joined #ruby
<unstable> Hello GreatSUN
<jle`> hello GreatSUN
dagobah has joined #ruby
jamblack has joined #ruby
<GreatSUN> hey unstable
<GreatSUN> hi jle`
<mr`spock> gREATsun
<GreatSUN> mr`spock: :D
iamjarvo has quit [Quit: Leaving.]
tonni has quit [Ping timeout: 272 seconds]
hogeo has joined #ruby
dzhulk has quit [Quit: Leaving.]
nhhagen has joined #ruby
<shevy> all those mass greetings
havenwood has joined #ruby
<unstable> At least there aren't 782 greetings each time someone joins. :p
zigomir has joined #ruby
<mr`spock> >> after_join :greet
<eval-in> mr`spock => undefined method `after_join' for main:Object (NoMethodError) ... (https://eval.in/73457)
<mr`spock> lies
<unstable> [["box01", 8],["box02", 20],["box03", 10],["box11", 8],["box12", 2],["box13", 4],["box21", 8],["box22", 16]]
<shevy> if you guys would want to write a class in ruby that can give out an array of dependencies for any given project
Mars` has quit [Remote host closed the connection]
<unstable> How can I sort that array, so .each[1] is in sorted order.
<shevy> where would you start looking? GNU autoconfigure thingies to begin with, cmake at a later point, then scons and waf...
drago777 has quit [Ping timeout: 252 seconds]
<shevy> unstable cant you use #sort_by
nhhagen has quit [Ping timeout: 252 seconds]
<shevy> and you sort on the second value of your array
kabiigon has quit [Ping timeout: 246 seconds]
<shevy> >> [["box01", 8],["box02", 20],["box03", 10],["box11", 8],["box12", 2],["box13", 4],["box21", 8],["box22", 16]].sort_by {|key, value| value }
<eval-in> shevy => [["box12", 2], ["box13", 4], ["box01", 8], ["box11", 8], ["box21", 8], ["box03", 10], ["box22", 16], ["box02", 20]] (https://eval.in/73458)
<shevy> mr`spock is your nick like mr. spock from star trek?
<Galeforce> shevy
<shevy> wat
<Galeforce> hit me with a ruby question
<Galeforce> i want to test myself
<shevy> good
<Galeforce> on fundamentals
<shevy> Galeforce how many blocks does a method in ruby accept at maximum?
amacgregor has joined #ruby
<Galeforce> no idea
<Galeforce> unlimited
<shevy> don't guess!
<Galeforce> i dont know :(
<Galeforce> and i dont wanna google thats cheatin
<shevy> k then this is a question for later
<pontiki> tias :)
<shevy> yeah, don't cheat
<mr`spock> shevy, indeed, it is
<shevy> Galeforce what is a symbol in ruby?
<shevy> or rather
<jrobeson> you're a symbol in ruby
<shevy> lol
amacgregor_ has quit [Ping timeout: 246 seconds]
<Galeforce> a hash can contain symbols :P
<jrobeson> :shevy
roolo has quit [Quit: Leaving...]
<shevy> don't give him hints!
<jrobeson> lol
jrhe has joined #ruby
<Galeforce> i dont know i give up
<shevy> Galeforce they are worse than google here :(
<Galeforce> I HATE HOW LITTLE I KNOW!!
xcess_denied has joined #ruby
<Galeforce> ive been trying hard
<Galeforce> damnit
<pontiki> i'm a symbol, you're a symbol, she's a symbol, we're all symbols now
<shevy> k then t his is also a question for later
<shevy> Galeforce how do you construct a string object in ruby?
MissionCritical has quit [Ping timeout: 246 seconds]
<jrobeson> Galeforce, don't you like the rush of learning new things?
<mr`spock> a symbol is mapped memory
<Galeforce> shevy i give up
<shevy> :(
Kricir has joined #ruby
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
petey has joined #ruby
<mr`spock> reuses the 'symbol' referred to earlier to avoid having me to reallocate the string, yeah?
<tobiasvl> what is this
Elhu has quit [Quit: Computer has gone to sleep.]
<tobiasvl> quiz tuesday
<shevy> Galeforce just write a few ruby scripts, this knowledge will quickly enter your brain the moment you come to have to solve things related with that
<mr`spock> noob tuesday
<Galeforce> yeah
xcess_denied has quit [Client Quit]
Gonzih has joined #ruby
<shevy> wait I got a really simple one
<Galeforce> i don't know what scripts to write though
<shevy> Galeforce how do you use a method in ruby?
<Galeforce> you call it?
<shevy> yes but how
<Galeforce> its name?
<shevy> like, an example
jprovazn has joined #ruby
<shevy> yes, but more specific!
nbrosnahan has joined #ruby
<shevy> we have the eval bot here
<mr`spock> shevy, send()?
<shevy> >> 5+5
<eval-in> shevy => 10 (https://eval.in/73461)
nbrosnahan has quit [Max SendQ exceeded]
<shevy> why are you all answering questions that are for Galeforce ... :(
<Galeforce> >> <--- haven't learned those lol
<mr`spock> lol sorry guise. i'm out.
<shevy> Galeforce, well it's just for IRC. go define a method and call it ok?
tonni has joined #ruby
rjhunter has quit [Remote host closed the connection]
<shevy> I think his brain really is in pouting mode right now :\
<Galeforce> i swear i thought you just use its name
havenwood has quit [Ping timeout: 246 seconds]
<shevy> yes
<mr`spock> >> class Galeforce; def hi; puts "the galeforce is with you"; end; end; g = Galeforce.new; g.hi
<eval-in> mr`spock => the galeforce is with you ... (https://eval.in/73465)
h_kon has joined #ruby
<jrobeson> show an example of it
<shevy> but let the bot show the proof
<shevy> ok we must ban mr`spock :P
<Galeforce> lol
<jrobeson> yeah what's up with answering questions most obviously not meant for you
<jrobeson> unless making fun of shevy
<shevy> !
w|t has joined #ruby
<Galeforce> you dont even need the class though right?
<jrobeson> like i did
<shevy> yeah Galeforce
<jrobeson> shevy,was totally burned
<shevy> Galeforce but that is a good question
<mr`spock> i'm a shithead emotionless bored science officer from 24th century
<shevy> Galeforce why do we not have to define a method inside a class?
<shevy> though this one is harder to answer than the other questions
<mr`spock> shevy, dahhhhhhh I can answer that but I won't.
<Galeforce> hmm
<shevy> I don't think I could answer it correctly without looking up
<shevy> Galeforce ruby likes to cheat
<Galeforce> well technically wouldnt a class be assigned to it regardless?
<shevy> like foo[] which, I think is actually foo.send :[] ... but I can be wrong again
mrfoto has joined #ruby
engleby has quit [Remote host closed the connection]
<Galeforce> foo would be a array class no?
<shevy> Galeforce well... it's true that these methods end up in a class, yes
<shevy> nono
<shevy> foo can be anything
petey has quit [Ping timeout: 272 seconds]
<shevy> you can define [] on any class
<Galeforce> foo = [] is array then
<Galeforce> ?
<shevy> >> class Foo; def [](i); p i; end; end; foo = Foo.new; foo[3]; foo.class
<eval-in> shevy => 3 ... (https://eval.in/73466)
dzhulk has joined #ruby
<Galeforce> what is [] ?
<shevy> hey...
<shevy> irb returns something else...
dhruvasagar has quit [Read error: Connection reset by peer]
<shevy> oh wait
<shevy> the pastie returns the right thing, the bot only pasted the first line
<shevy> Galeforce a method
<Galeforce> what about a method
dhruvasagar has joined #ruby
<Gonzih> Hi guys, I'm trying to implement yin-yang puzzle in ruby but have issues with continuations, are there some limitations to ruby version of callcc? here is my code https://gist.github.com/Gonzih/7654912
<shevy> [] is a method, you can see we could define it via def above
<mr`spock> pity ruby doesn't appear to have a native rot13 method
<shevy> Galeforce, class String and class Array have this method defined
<Galeforce> ooooo
<shevy> Galeforce, other classes dont
<canton7> (some do. Fixnum does)
michelini has joined #ruby
<canton7> >> 3[1]
<eval-in> canton7 => 1 (https://eval.in/73468)
<shevy> >> Object[5]
<eval-in> shevy => undefined method `[]' for Object:Class (NoMethodError) ... (https://eval.in/73470)
<shevy> see Galeforce, Object does not have it defined
<shevy> >> Proc.new[5]
<eval-in> shevy => tried to create Proc object without a block (ArgumentError) ... (https://eval.in/73471)
w|t has left #ruby ["Textual IRC Client: www.textualapp.com"]
<Galeforce> LOL
<shevy> >> Proc.new{10}[5]
<Galeforce> i've been ignoring eval
<eval-in> shevy => 10 (https://eval.in/73472)
<Galeforce> i thought he was a person..
<shevy> ruby can be very weird :\
<Galeforce> talking to you
<Galeforce> hahhaha
<shevy> nah
<shevy> he is a slave
<Galeforce> lol
<mr`spock> rofl
<mr`spock> >> do my laundry
<eval-in> mr`spock => /tmp/execpad-3d55c99c00be/source-3d55c99c00be:2: syntax error, unexpected keyword_do_block ... (https://eval.in/73473)
<shevy> Galeforce this is a question for later... what is Proc
<Galeforce> i know proc
<mr`spock> doesn't work like expected. i shall file a bug report.
<Galeforce> i've read about proc
<shevy> you read and read but you should write and write
<Galeforce> its a method that only activates on certain things
<Galeforce> i think
<Gonzih> anyone on continuations?
<Galeforce> when certain things happen*
<shevy> you need to turn passive knowledge into active knowledge
apeiros has joined #ruby
nbrosnahan has joined #ruby
<Galeforce> i dont know what to make
<shevy> Gonzih I forgot what callcc does :-)
nbrosnahan has quit [Max SendQ exceeded]
<shevy> Galeforce how can this be! I have like 300 things on my todo list...
<shevy> Galeforce todo list today: write a ruby class that spits out an array with all dependencies of a given (source) program
michelini has quit [Read error: Connection reset by peer]
rjhunter has joined #ruby
<bnagy> mr`spock: just use str.tr 'a-z', 'n-za-n'
<shevy> cool
<bnagy> too trivial for a 'native method'
<shevy> never saw require 'continuation' before
<Galeforce> hmm
nbrosnahan has joined #ruby
<Galeforce> so takes data from like a website and puts it to array? I'm confused by 'dependencies'
<Gonzih> shevy: I feel like continuations in ruby are limited somehow
<shevy> what can I do with them?
jamblack has quit [Quit: jamblack]
MissionCritical has joined #ruby
<shevy> Galeforce in order to compile a program, you must have dependencies satisfied
blueOxigen has joined #ruby
Mars` has joined #ruby
<shevy> Galeforce like you need gcc... pkg-config ... glib ... gtk, when you wish to compile anjuta, ok?
f0ster has quit [Ping timeout: 240 seconds]
jamblack has joined #ruby
<Galeforce> dude
<Galeforce> got no clue what you're talking about
<shevy> and this information is stored somewhere in ... configure.ac file I think
<Galeforce> lol
bluOxigen has quit [Ping timeout: 245 seconds]
claymore has joined #ruby
mrfoto has quit []
rjhunter has quit [Ping timeout: 272 seconds]
plotter has quit [Remote host closed the connection]
joonty has joined #ruby
chludzins has joined #ruby
okinomo has joined #ruby
RTG` has joined #ruby
Kricir has quit [Ping timeout: 245 seconds]
timonv has quit [Remote host closed the connection]
xcess_denied has joined #ruby
amacgregor_ has joined #ruby
gtsiftsis has joined #ruby
amacgregor has quit [Ping timeout: 246 seconds]
ahawkins has quit [Quit: leaving]
einarj has joined #ruby
ahawkins has joined #ruby
jprovazn has quit [Ping timeout: 246 seconds]
manoj has joined #ruby
xcess_denied has quit [Read error: Connection reset by peer]
wind2x has quit [Ping timeout: 272 seconds]
jeffdb has quit [Quit: jeffdb]
gtsiftsis has quit [Ping timeout: 252 seconds]
gtsiftsis has joined #ruby
DrOwl has joined #ruby
jbpros has joined #ruby
jhaals has joined #ruby
schaary has joined #ruby
dukz has quit [Remote host closed the connection]
dukz has joined #ruby
kitak_ has quit [Read error: Connection reset by peer]
kitak has joined #ruby
jprovazn has joined #ruby
h0rrorvacui has quit [Ping timeout: 245 seconds]
eeriegeek has quit [Quit: Leaving.]
banghouse2 has quit [Remote host closed the connection]
banghouse2 has joined #ruby
spike|spiegel has quit [Quit: WeeChat 0.4.2]
okinomo has quit [Ping timeout: 248 seconds]
havenwood has joined #ruby
tonni has quit [Read error: Connection reset by peer]
thelorax123 has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
dumdedum has joined #ruby
kaspergrubbe has joined #ruby
rjhunter has joined #ruby
Mars` has quit [Remote host closed the connection]
thelorax123 has joined #ruby
Mars` has joined #ruby
rjhunter has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
alup has joined #ruby
hackeron has quit [Quit: leaving]
hackeron has joined #ruby
Mars`_ has joined #ruby
hackeron has quit [Client Quit]
Elhu has joined #ruby
gr33n7007h has joined #ruby
hackeron has joined #ruby
andikr has joined #ruby
okinomo has joined #ruby
Mars` has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
Leighton has quit [Quit: Lost terminal]
magoo has quit [Ping timeout: 272 seconds]
newbiehacker has joined #ruby
monkegjinni has joined #ruby
havenwood has quit [Remote host closed the connection]
dumdedum is now known as blaxter
blaxter has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
rjhunter has joined #ruby
<unstable> That's what I've been working on, btw. Does anyone want to suggest ways to clean up the code? (I'm still learning)
rjhunter has quit [Read error: Connection reset by peer]
tonni has joined #ruby
thelorax123 has quit [Remote host closed the connection]
amacgregor has joined #ruby
thelorax123 has joined #ruby
roolo has joined #ruby
troessner has joined #ruby
mansi has joined #ruby
amacgregor__ has joined #ruby
amacgregor_ has quit [Ping timeout: 246 seconds]
drago777 has joined #ruby
timonv has joined #ruby
nhhagen has joined #ruby
tobyo has quit [Ping timeout: 272 seconds]
amacgregor has quit [Ping timeout: 246 seconds]
nhhagen has quit [Read error: Connection reset by peer]
gyre007 has joined #ruby
nhhagen has joined #ruby
marr has joined #ruby
mansi has quit [Ping timeout: 252 seconds]
timonv has quit [Read error: Connection reset by peer]
Reach has joined #ruby
<Reach> i keep getting this error when trying to install ruby with rvm
<Reach> Error running 'requirements_osx_brew_update_system ruby-2.0.0-p353'
timonv has joined #ruby
<bnagy> unstable: try and avoid $globals, and without reading it, each_with_index isn't often neccessary and you're using it a lot
Gowie has joined #ruby
gyre007 has quit [Remote host closed the connection]
gyre007 has joined #ruby
jamblack has quit [Quit: jamblack]
nhhagen has quit [Ping timeout: 252 seconds]
gyre007 has quit [Read error: No route to host]
tonni has quit [Remote host closed the connection]
gyre007 has joined #ruby
rjhunter has joined #ruby
znake has joined #ruby
tonni has joined #ruby
rjhunter has quit [Read error: Connection reset by peer]
<shevy> unstable an easy way to get rid of $ is to put this into a class, and use @ instead
raar has quit [Ping timeout: 246 seconds]
<shevy> you dont even have to clean it up much at all for now, simply move all of this inside "def initialize" for now, inside of your class
rjhunter has joined #ruby
tonni has quit [Read error: Connection reset by peer]
Gowie has quit [Ping timeout: 272 seconds]
<shevy> hmm
<shevy> I mean the parts like $boxen_hash = {}
<shevy> of course the methods should be defined outside def initialize
rjhunter has quit [Read error: Connection reset by peer]
okinomo has quit [Ping timeout: 248 seconds]
raar has joined #ruby
nvrch has joined #ruby
raar is now known as Guest34103
barratt has joined #ruby
lewellyn has quit [Ping timeout: 240 seconds]
Reach has quit [Remote host closed the connection]
barratt has quit [Remote host closed the connection]
barratt has joined #ruby
tedstriker has joined #ruby
kayloos has joined #ruby
Tamae has joined #ruby
hoyang has joined #ruby
wallerdev has quit [Quit: wallerdev]
mikeser has joined #ruby
lewellyn has joined #ruby
rjhunter has joined #ruby
rjhunter has quit [Read error: Connection reset by peer]
phansch has joined #ruby
Kricir has quit [Read error: Connection reset by peer]
sevenseacat has quit [Quit: Leaving.]
Kricir has joined #ruby
rdark has joined #ruby
<hoyang> aha. sleep time.
amacgregor has joined #ruby
allsystemsarego has joined #ruby
allsystemsarego has joined #ruby
allsystemsarego has quit [Changing host]
dangerousdave has joined #ruby
amacgregor__ has quit [Ping timeout: 246 seconds]
nomenkun has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
decoponio has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
Mars`_ has quit [Remote host closed the connection]
Mars` has joined #ruby
yfeldblum has quit [Remote host closed the connection]
rh1n0 has joined #ruby
Mars`_ has joined #ruby
Mon_Ouie has quit [Ping timeout: 252 seconds]
tonni has joined #ruby
Mars` has quit [Ping timeout: 240 seconds]
tesuji has joined #ruby
lethjakman has joined #ruby
ephemerian has joined #ruby
sparrovv has joined #ruby
JohnBat26|2 has joined #ruby
rjhunter has joined #ruby
rjhunter has quit [Read error: Connection reset by peer]
dEPy has joined #ruby
wind2x has joined #ruby
sayan has joined #ruby
zono has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TMM has joined #ruby
JuncoJet_ has quit [Read error: Connection reset by peer]
shaunbaker has joined #ruby
JuncoJet__ has joined #ruby
amacgregor_ has joined #ruby
amacgregor has quit [Ping timeout: 245 seconds]
timonv has quit [Remote host closed the connection]
obs has joined #ruby
popl has joined #ruby
popl has joined #ruby
nomenkun has quit [Quit: Leaving...]
raphaelivan has joined #ruby
rh1n0 has quit [Quit: Linkinus - http://linkinus.com]
adambeynon has joined #ruby
Mars`_ has quit [Remote host closed the connection]
Mars` has joined #ruby
decoponyo has joined #ruby
zono has quit [Remote host closed the connection]
zono has joined #ruby
JohnBat26|2 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
nomenkun has joined #ruby
marcgg has joined #ruby
sheap has quit [Quit: Lost terminal]
camilasan has joined #ruby
JuncoJet__ has quit [Read error: Connection reset by peer]
Mars`_ has joined #ruby
JuncoJet__ has joined #ruby
decoponio has quit [Ping timeout: 264 seconds]
Mars` has quit [Ping timeout: 240 seconds]
JuncoJet__ has quit [Client Quit]
marcgg_ has quit [Ping timeout: 272 seconds]
amoli has joined #ruby
manoj has quit [Quit: Leaving...]
matematikaadit has joined #ruby
gr33n7007h has quit [Remote host closed the connection]
<GreatSUN> hey guys
matematikaadit has left #ruby [#ruby]
<GreatSUN> I have a special problem at the moment
<GreatSUN> I am dynamically extending a class with modules
<GreatSUN> and I want another class to extend this one
tobyo has joined #ruby
<GreatSUN> but it might be that the "other class file" is loaded earlier
<GreatSUN> now I implemented some check for a const so that if the const is not set require shall load the other file
claymore has quit [Quit: Leaving]
<GreatSUN> but it looks like this is not working out
<GreatSUN> any ideas why?
choobie has quit [Ping timeout: 248 seconds]
lkba has quit [Ping timeout: 264 seconds]
TigerWolf has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Asher has quit [Ping timeout: 272 seconds]
bluenemo has joined #ruby
<tobiasvl> maybe you could dump the code into http://gist.github.com
michael_alex has joined #ruby
coder_neo has joined #ruby
Mars`_ has quit [Remote host closed the connection]
neo__ has joined #ruby
Mars` has joined #ruby
neo__ has left #ruby [#ruby]
olivier_bK has joined #ruby
michael_alex has quit [Max SendQ exceeded]
timonv has joined #ruby
mansi has joined #ruby
michael_alex has joined #ruby
rjhunter has joined #ruby
sandeepk has quit [Quit: Leaving...]
rjhunter has quit [Read error: Connection reset by peer]
gr33n7007h has joined #ruby
gr33n7007h has quit [Remote host closed the connection]
Hanmac has joined #ruby
Mars` has quit [Ping timeout: 264 seconds]
choobie has joined #ruby
liamkeily has joined #ruby
nhhagen has joined #ruby
<Hanmac> shevy & apeiros & others: i have a bug which does segfault in rubytrunk, can someone with different versions please check if it happens for him too? https://bugs.ruby-lang.org/issues/9151
<Hanmac> from what i think it only happens for 64bit system
choobie has quit [Client Quit]
jacobw has quit [Remote host closed the connection]
rjhunter has joined #ruby
mansi has quit [Ping timeout: 272 seconds]
clevermatt has joined #ruby
rjhunter has quit [Read error: Connection reset by peer]
buscon_ has joined #ruby
gr33n7007h has joined #ruby
havenwood has joined #ruby
<Hanmac> huhu havenwood can you check some ruby bug ticket for me? https://bugs.ruby-lang.org/issues/9151
Kricir has joined #ruby
browndawg has quit [Quit: Leaving.]
nhhagen has quit [Ping timeout: 252 seconds]
p4d4w4n has joined #ruby
petey has joined #ruby
wald0_ has joined #ruby
<wald0_> whats the difference of do Dir::pwd and Dir.pwd ?
<Hanmac> wald0_: nothing
havenwood has quit [Ping timeout: 245 seconds]
sandeepk has joined #ruby
<Hanmac> but there is a difference between Kernel::Array, Kernel::Array(), Kernel.Array(), Kernel.Array and ::Array
<wald0_> im reading in the reference that im writting that :: is used for call a class inside another class, is that correct? it has another meaning ?
Gonzih has quit [Quit: leaving]
wmoxam has quit [Ping timeout: 272 seconds]
TaxmanBD has joined #ruby
workmad3 has joined #ruby
xcess_denied has joined #ruby
dEPy has quit [Quit: Lingo - http://www.lingoirc.com]
<Hanmac> i still prefer :: for class methods, specialy when there is a constant with the same name… like Nokogiri::XML()
rjhunter has joined #ruby
rickruby has quit [Remote host closed the connection]
petey has quit [Ping timeout: 272 seconds]
Gonzih has joined #ruby
rjhunter has quit [Read error: Connection reset by peer]
rickruby has joined #ruby
tobyo has quit [Ping timeout: 272 seconds]
tvw has joined #ruby
withnale has quit [Write error: Broken pipe]
Percy has joined #ruby
dukz has quit [Remote host closed the connection]
<Hanmac> wald0_: just look at this: "Array ? 1 : 2" and "Array ?1"
mikeser has quit [Remote host closed the connection]
jamblack has joined #ruby
withnale has joined #ruby
liamkeily has quit [Ping timeout: 245 seconds]
rjhunter has joined #ruby
rjhunter has quit [Read error: Connection reset by peer]
rickruby has quit [Read error: Operation timed out]
nari_ has quit [Ping timeout: 264 seconds]
gr33n7007h has quit [Remote host closed the connection]
Speed has joined #ruby
gr33n7007h has joined #ruby
zipper has joined #ruby
zeeraw has joined #ruby
dukz has joined #ruby
obs has quit [Remote host closed the connection]
ewnd9 has quit [Ping timeout: 248 seconds]
Monie has joined #ruby
lyanchih has quit [Quit: lyanchih]
Asher has joined #ruby
lyanchih has joined #ruby
tkuchiki has quit [Remote host closed the connection]
mojjojo has joined #ruby
TaxmanBD has quit [Ping timeout: 245 seconds]
tkuchiki has joined #ruby
jamblack has quit [Quit: jamblack]
bigkevmcd has quit [Quit: Ex-Chat]
bigkevmcd has joined #ruby
rjhunter has joined #ruby
rjhunter has quit [Read error: Connection reset by peer]
Kricir has quit [Ping timeout: 248 seconds]
mengu has quit [Remote host closed the connection]
amacgregor has joined #ruby
amacgregor_ has quit [Ping timeout: 246 seconds]
rjhunter has joined #ruby
tkuchiki has quit [Ping timeout: 272 seconds]
ldnunes has joined #ruby
rjhunter has quit [Read error: Connection reset by peer]
diegoviola has quit [Quit: WeeChat 0.4.2]
havenwood has joined #ruby
h_kon has quit [Remote host closed the connection]
<shevy> hanmac la.rb:11: stack level too deep (SystemStackError)
Advocation has joined #ruby
dukz has quit [Remote host closed the connection]
h_kon has joined #ruby
JohnBat26|2 has joined #ruby
rjhunter has joined #ruby
<shevy> wald0_ slightly different ways to access constants or methods. Dir.pwd means that pwd is a method on Dir
<shevy> you could use Dir::pwd but it looks ugly and is one extra char
rjhunter has quit [Read error: Connection reset by peer]
<shevy> Foo::Bar is always a constant access
<shevy> but it could be a method too
<shevy> :-)
<shevy> like Integer()
sparrovv has quit [Quit: sparrovv]
<Hanmac> for sample: "Array" is constant, "Array x" is method
monkegjinni has quit [Remote host closed the connection]
<matti> shevy: Numeric!
cek has joined #ruby
cek has left #ruby [#ruby]
h_kon has quit [Ping timeout: 264 seconds]
<olivier_bK> ef
dukz has joined #ruby
mojjojo has quit [Quit: mojjojo]
rickruby has joined #ruby
aagdbl1 has joined #ruby
skaflem has joined #ruby
zipper has quit [Quit: Lost terminal]
tenjack has joined #ruby
mojjojo has joined #ruby
Kneferilis has joined #ruby
sparrovv has joined #ruby
nari_ has joined #ruby
Kneferilis has quit [Read error: Connection reset by peer]
kenansulayman has joined #ruby
TaxmanBD has joined #ruby
Kneferilis has joined #ruby
havenwood has quit [Ping timeout: 265 seconds]
kenansulayman has left #ruby ["≈♡≈"]
soba has quit [Ping timeout: 272 seconds]
tenjack has quit [Ping timeout: 245 seconds]
spike|spiegel has joined #ruby
drumusician has quit [Read error: Connection reset by peer]
Advocation has quit [Quit: Advocation]
zono has quit [Quit: zono]
Speed has left #ruby ["WeeChat 0.4.2"]
dukz has quit [Remote host closed the connection]
amacgregor_ has joined #ruby
dukz has joined #ruby
amacgregor_ has quit [Read error: Connection reset by peer]
h_kon has joined #ruby
amacgregor_ has joined #ruby
havenwood has joined #ruby
amacgregor has quit [Ping timeout: 245 seconds]
xk_id has joined #ruby
mklappstuhl has joined #ruby
rjhunter has joined #ruby
rjhunter has quit [Read error: Connection reset by peer]
drumusician has joined #ruby
havenwood has quit [Ping timeout: 240 seconds]
eka has joined #ruby
workmad3 has quit [Ping timeout: 272 seconds]
<shevy> matti: Penis!
AlSquirrel has joined #ruby
<shevy> hanmac perhaps I should write python code for a while, some months
DouweM has quit [Ping timeout: 246 seconds]
ppppaul has joined #ruby
workmad3 has joined #ruby
yjmsf20 has joined #ruby
dcope has joined #ruby
<dcope> is there any way to get net http post_form to work with https?
havenwood has joined #ruby
<dcope> i can't get an https post to work to save my life!
tkuchiki has joined #ruby
<lupine> dcope, I believe you just need to pass it a https URL
<dcope> lupine: i get an End of File error if i do that
<lupine> hmm, that sucks
noop has quit [Ping timeout: 246 seconds]
nhhagen has joined #ruby
liamkeily has joined #ruby
<lupine> do it the long way around, then? Net::HTTP.start(host, port) {|http| http.use_ssl = true ; ... }
Gowie has joined #ruby
schnittchen has joined #ruby
mojjojo has quit [Quit: mojjojo]
rjhunter has joined #ruby
hogeo has quit [Remote host closed the connection]
N00D is now known as zz_N00D
rjhunter has quit [Read error: Connection reset by peer]
<schnittchen> it looks like Net::HTTP is ignoring OpenSSL::SSL::VERIFY_NONE
havenwood has quit [Ping timeout: 265 seconds]
<schnittchen> https = Net::HTTP.new(host, 443); https.use_ssl = true; https.verify_mode = OpenSSL::SSL::VERIFY_NONE; http.get('/') => OpenSSL::SSL::SSLError
<matti> shevy: You are being rude :(
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
aganov has joined #ruby
fixl has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
kayloos has quit [Read error: No route to host]
<schnittchen> running 2.0.0-p353, seeing problem both on macos and linux, openssl installed through homebrew on the mac
Gowie has quit [Ping timeout: 246 seconds]
<shevy> matti I just had to counter the Numeric
Mars` has joined #ruby
nhhagen has quit [Ping timeout: 252 seconds]
kayloos has joined #ruby
zeeraw has joined #ruby
<schnittchen> matti: stop educating me please
<matti> what?
wmoxam has joined #ruby
<shevy> lol
<matti> I found funny picture
schaary has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> show me!
<shevy> I <3 funny pictures
<schnittchen> hehe
<matti> :)
<shevy> schnittchen with such a nick you must come from Germany
Atlantic777 has left #ruby [#ruby]
xcess_denied has quit [Quit: Leaving...]
workmad3 has quit [Ping timeout: 245 seconds]
leonardorb has joined #ruby
kayloos has quit [Remote host closed the connection]
coder_neo has quit [Ping timeout: 265 seconds]
browndawg has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
Kricir has quit [Ping timeout: 272 seconds]
Mars` has quit [Ping timeout: 272 seconds]
kaspergrubbe has quit [Remote host closed the connection]
Advocation has joined #ruby
coder_neo has joined #ruby
<matti> Haha
<matti> hanmac: :)
noop has joined #ruby
<schnittchen> matti: did not mean to be rude, just that I anticipated something like that would be the first reaction :)
matchaw_ has quit [Quit: No Ping reply in 180 seconds.]
matchaw has joined #ruby
<schnittchen> the communication could as well be done unencrypted, VERIFY_NONE is ok in this particular case
<schnittchen> but I could not get that to work
<Hanmac> matti did you see the 50th year doctor who special?
ewnd9 has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
<matti> Yeah
camilasan has quit [Remote host closed the connection]
camilasa_ has joined #ruby
<matti> schnittchen: No worries, mo offence taken :P
<Hanmac> matti i think the last trick from the doctors would make a James T Kirk proud (did you remember the test he cheated?)
<matti> Spmething Kobayasho-Maru
<Hanmac> yeah this one
<matti> But yeah
<Hanmac> matti "The Moment: Then that's your punishment. If you do this, if you kill them all then that's the consequence. You. Live."
braoru has quit [Remote host closed the connection]
<matti> ;)
jamblack has joined #ruby
dukz has quit [Remote host closed the connection]
<matti> hanmac: It was Ok.
mojjojo has joined #ruby
<matti> hanmac: I onky watched new Who
<Hanmac> what? imo this episode was awsome
<matti> hanmac: Too much to catch up
pskosinski has quit [Quit: Til rivido Idisti!]
workmad3 has joined #ruby
<Hanmac> the epsiode was "alphanumerical!" ;P (AT Reference ;P)
<matti> lol
<Hanmac> matti: "War Doctor: (after being burned by the Moment device) Ah! The interface is hot! The Moment: Well, I do my best."
xcess_denied has joined #ruby
jcromartie has joined #ruby
nari_ has quit [Ping timeout: 264 seconds]
hoyang has quit [Quit: leaving]
workmad3 has quit [Ping timeout: 240 seconds]
<wald0_> File.open("text.txt", "w") do |f| f.puts "hi" end
Hoozt has joined #ruby
<wald0_> is this incorrect? i get a warning "shadowing outer local variable f"
<wald0_> what it means?
jamblack has quit [Quit: jamblack]
workmad3 has joined #ruby
<wald0_> second question: i cannot put a space between "open" and ("text... ?
<shevy> hanmac always good to know
hoyang has joined #ruby
<shevy> wald0_ it means you have already a variable called f
<shevy> wald0_ you can avoid it usually easily, just make |f| longer
<shevy> I usually call them |line| or |entry|
<shevy> wald0_ I think you can put a space
<shevy> you can even put many spaces
<shevy> but it looks ugly too
<shevy> please do not write ugly code wald0_ :(
okinomo has joined #ruby
<Hanmac> shevy & wald0_: yes and no, yes he can add more spaces but not everywhere, like "File.open ()" is invalid
LexicalScope has quit [Read error: Connection reset by peer]
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LexicalScope has joined #ruby
<wald0_> oh well, then its ok, im simply writting a "reference" stuff
<wald0_> shevy: it looks more readable for me with spaces than without it :), not for you ?
<wald0_> its harder to write because its like too much compressed text, imho
<tobiasvl> well you can drop the parentheses though
<tobiasvl> might make it more readable
kaspergrubbe has joined #ruby
<tobiasvl> File.open 'text.txt', 'w' do |file| file.puts 'hi' end
<wald0_> i think that is more readable with parentheses :), it makes it look more easy to identify "what is each thing", than a long plain text
<Hanmac> but then he cant if he uses {}
<wald0_> mmmh, i get an error trying to put a space
<Hanmac> wald0_: about shadowing:
spacebug has left #ruby [#ruby]
nari_ has joined #ruby
<Hanmac> >> i = 0; 5.times {|i| i}; i
<eval-in> Hanmac => 0 (https://eval.in/73524)
<Hanmac> 18>> i = 0; 5.times {|i| i}; i
<eval-in> Hanmac => 4 (https://eval.in/73525)
<Hanmac> thats maybe why it still causes a warning even its not false
jcromartie has joined #ruby
mercwithamouth has joined #ruby
joonty_ has quit [Ping timeout: 246 seconds]
<wald0_> what is 18>> ?
<popl> 1.8
<wald0_> oh
rjhunter has joined #ruby
tjad has quit [Read error: Connection reset by peer]
* wald0_ thinks that 1.8 is crappy
<wald0_> >> File.open("notexisting.txt", "w") do |entry| entry.puts "Hi" end
<eval-in> wald0_ => nil (https://eval.in/73526)
<workmad3> wald0_: 1.8 is EoL now anyway :)
<wald0_> >> File.open ("notexisting.txt", "w") do |entry| entry.puts "Hi" end
<eval-in> wald0_ => /tmp/execpad-ae1f07119017/source-ae1f07119017:2: syntax error, unexpected ',', expecting ')' ... (https://eval.in/73527)
pranny has quit [Quit: Leaving.]
<wald0_> see ^
<workmad3> 18>> File.open ("notexisting.txt", "w") do |entry| entry.puts "Hi" end
<eval-in> workmad3 => /tmp/execpad-15c82f5cb699/source-15c82f5cb699:2: warning: don't put space before argument parentheses ... (https://eval.in/73528)
<workmad3> :D
<shevy> hanmac, File.open ('dataset1') works here
tjad has joined #ruby
<workmad3> shevy: that's becuse ('dataset1') == 'dataset1'
<workmad3> shevy: but ('dataset1', 'foo') is invalid
<wald0_> why is invalid ?
<shevy> wow
p4d4w4n has quit [Quit: This computer has gone to sleep]
<shevy> the ruby parser is some crazy thing
<workmad3> that's not 'crazy thing'
<workmad3> that's just that you can't use () to define arrays in ruby :P
* wald0_ forks ruby source code in order to be able to put a space before (
<workmad3> wald0_: it was removed for a reason :P
<tobiasvl> come oooon, just skip the parentheses
popl has quit [Ping timeout: 248 seconds]
okinomo has quit [Ping timeout: 245 seconds]
<wald0_> workmad3: then i ^C the fork :)
<wald0_> tobiasvl: maybe, but i like them
p4d4w4n has joined #ruby
rjhunter has quit [Ping timeout: 264 seconds]
tesuji has quit [Read error: Connection reset by peer]
<workmad3> wald0_: namely that it caused extra complexity in the parsing to disambiguate between 'method ('something' + 'foo').capitalize' as a single argument or as method('something' + 'foo').capitalize
<wald0_> workmad3: array? for me its a parameter, im passing the parameter "file" and then the "attribute" to File.open, isn't that?
noob101 has joined #ruby
popl has joined #ruby
<workmad3> wald0_: my point is that ("foo") on its own is using parentheses for grouping and controlling precedence
popl has quit [Changing host]
popl has joined #ruby
pedda has joined #ruby
<workmad3> wald0_: and ("foo", "bar") is invalid syntax for that purpose (the logical thing being that it could be an array or tuple literal, but ruby doesn't support that as literal syntax)
<workmad3> wald0_: some_method ("foo") is then not using () for a parameter list, it's using them for controlling precedence, so ("foo", "bar") is invalid there for exactly the same reasons that it's invalid without the method call
fbernier has quit [Read error: Connection reset by peer]
postmodern has quit [Quit: Leaving]
<wald0_> mmh, im confused, so its not hte same File.open("file", "w") and File.open "file", "w" ?
<workmad3> wald0_: yes, those are the same
<workmad3> wald0_: but File.open ("file", "w") is different
fbernier has joined #ruby
<workmad3> wald0_: I was just talking about with the space before the parens, which makes the parens no longer an argument list ;)
p4d4w4n has quit [Ping timeout: 248 seconds]
wendell_ has joined #ruby
<wald0_> i see
<workmad3> >> ("on its own")
<eval-in> workmad3 => "on its own" (https://eval.in/73537)
sandeepk has quit [Quit: Leaving...]
<workmad3> wald0_: ^^ and that's what I was talking about when I said that ("foo", "bar") is invalid syntax
<workmad3> >>("foo", "bar")
<eval-in> workmad3 => /tmp/execpad-b212c240a2f9/source-b212c240a2f9:2: syntax error, unexpected ',', expecting ')' ... (https://eval.in/73538)
axilla has joined #ruby
Hanmac has quit [Quit: Leaving.]
noob101 has quit [Ping timeout: 250 seconds]
popl has quit [Quit: And then there are people who prefer to look their fate in the eye.]
Hanmac has joined #ruby
wendell_ has quit [Read error: Connection reset by peer]
<workmad3> wald0_: and then you start to see why the space before the parens is ambiguous... e.g. should 'some_method ((a+b)**2) * c' be '(some_method((a+b)**2)) * c' or 'some_method(((a + b)**2) * c)'? :)
hogeo has joined #ruby
kayloos has joined #ruby
joonty_ has joined #ruby
matheuscaceres has joined #ruby
wendell_ has joined #ruby
amacgregor has joined #ruby
sandeepk has joined #ruby
amacgregor__ has joined #ruby
amacgregor_ has quit [Ping timeout: 246 seconds]
amacgregor has quit [Ping timeout: 245 seconds]
mansi has joined #ruby
mojjojo has quit [Quit: mojjojo]
OdNairy has joined #ruby
havenwood has joined #ruby
noop has quit [Ping timeout: 272 seconds]
parduse has quit [Ping timeout: 264 seconds]
<Hanmac> workmad3: what do you think about this? https://bugs.ruby-lang.org/issues/9151
parduse has joined #ruby
parduse has left #ruby [#ruby]
nhhagen has joined #ruby
<Hanmac> its funny, that there is a second bug that does StackError and than Segfault11 when doing the same again but only on x64
tobago has joined #ruby
mansi has quit [Ping timeout: 245 seconds]
parduse has joined #ruby
pranny has joined #ruby
realDAB has joined #ruby
TaxmanBD has quit [Ping timeout: 245 seconds]
havenwood has quit [Ping timeout: 265 seconds]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<workmad3> hanmac: on 2.0 I only get the (expected) stackerror :)
Kricir has joined #ruby
<Hanmac> if Segfault11 is so bad i dont want to met the other ten ;P … or maybe they are numberd like the Doctors? ;P
nones has joined #ruby
<wald0_> >> puts File.open("/tmp/wombat.txt", "r").external_encoding
<eval-in> wald0_ => (https://eval.in/73544)
<wald0_> 12:42 < tobiasvl> come oooon, just skip the parentheses
<wald0_> how i should do that without () ?
<tobiasvl> yeah, you can't
nhhagen has quit [Ping timeout: 265 seconds]
petey has joined #ruby
nones has left #ruby ["Ухожу я от вас (xchat 2.4.5 или старше)"]
<wald0_> use parentheses or not use parentheses, there's not the question
<workmad3> wald0_: f = File.open "/tmp/wombat.txt", "r"; f.external_encoding
<Hanmac> wald0_: PS: never use File.open without a block …
kaspergrubbe has quit [Remote host closed the connection]
<wald0_> hanmac: why not? because i need to (and may forget) to close it ?
lyanchih has quit [Ping timeout: 272 seconds]
<Hanmac> yeah, lets let ruby do the work: File.open("/tmp/wombat.txt", "r", &:external_encoding)
rjhunter has joined #ruby
<wald0_> what means &:external_encoding here ?
lethjakman has quit [Ping timeout: 272 seconds]
<Hanmac> like that: File.open("/tmp/wombat.txt", "r") {|f| f.external_encoding }
petey has quit [Ping timeout: 265 seconds]
dhruvasagar has quit [Ping timeout: 245 seconds]
<lupine> [1,2,3].collect(&:to_s)
<lupine> => ["1", "2", "3"]
fijimunkii has quit [Ping timeout: 245 seconds]
<wald0_> so its &:something the same as .something ?
* wald0_ got confused
<lupine> it creates a proc object that calls the specified message on its argument
noop has joined #ruby
<lupine> just another magic shorthand
rjhunter has quit [Ping timeout: 272 seconds]
<wald0_> i see
Elhu has quit [Quit: Computer has gone to sleep.]
<lupine> speaking of which, I want to be able to do include Foo, args_to_be_passed_to_module_included
claymore has joined #ruby
<lupine> but it seems I can't
<wald0_> i think that i have not arrived yet to the "proc" section of the book :)
sparrovv has quit [Quit: sparrovv]
<Hanmac> lupine: the problem there is: should that work on the Foo module itself or only at the included place? … there is also the IClass struct in ruby MRI, which is not accessable for ruby code itself
rickruby has quit [Remote host closed the connection]
liamkeily has quit [Ping timeout: 246 seconds]
<lupine> aye, it's a bit of an ask
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<lupine> oh well, this one can be a copy 'n paste job instead
kaspergrubbe has joined #ruby
mikecmpbll has joined #ruby
jkamenik has joined #ruby
marcgg_ has joined #ruby
ananthakumaran1 has joined #ruby
Mon_Ouie has joined #ruby
utkarsh has quit [Ping timeout: 240 seconds]
preller has quit [Ping timeout: 264 seconds]
preller has joined #ruby
rjhunter has joined #ruby
finch has quit [Ping timeout: 240 seconds]
cschneid has quit [Ping timeout: 240 seconds]
hiyosi has joined #ruby
marcgg has quit [Ping timeout: 246 seconds]
ananthakumaran has quit [Ping timeout: 264 seconds]
<shevy> rome was not built in a day
<shevy> it was copy and then pasted
<shevy> wald0_ after all those years in ruby, procs still confuse me
<Hanmac> shevy maybe that was only symbolic links? ;P
braoru has joined #ruby
<Hanmac> shevy: about procs: specialy some stuff like array.map(&"%03d".method(:%)) ? ;P
pskosinski has joined #ruby
cdelo has joined #ruby
<shevy> I would never use anything crazy like that
rjhunter has quit [Ping timeout: 272 seconds]
Ox6abe has joined #ruby
* Hanmac would do because he can
finch has joined #ruby
<shevy> hanmac how are your wxwidget bindings coming along?
cschneid has joined #ruby
wendell_ has quit [Quit: This computer has gone to sleep]
<Hanmac> shevy: i updated them recently against newest wx code, but there is still stuff missing … last week i tryed to add more classes that i can marshal dump
<wald0_> "loop do" == "while true" ?
* wald0_ very used of while true in bash
TaxmanBD has joined #ruby
Advocation has quit [Quit: Advocation]
colonolGron has joined #ruby
<Hanmac> shevy: for sample should wxBitmap and/or wxImage be dumpable?
nbrosnahan has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
utkarsh has joined #ruby
p4d4w4n has joined #ruby
<shevy> no idea
<shevy> I never had to ask myself this question when using ruby + GUI
<shevy> wald0_ this is not functionally the same
<shevy> wald0_ loop runs without a condition check as such, while true has a condition check
<shevy> wald0_ also loop is sexier
<shevy> only for-loops are worse
<Hanmac> shevy you can use for on Enumerators ,P
<Hanmac> >> for c in "str".each_char; print c;end; nil
<eval-in> Hanmac => strnil (https://eval.in/73549)
<shevy> so awful
<shevy> it even confuses the hell outta eval-in
jamblack has joined #ruby
ffranz has joined #ruby
hogeo has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 246 seconds]
okinomo has joined #ruby
obs has joined #ruby
<wald0_> whats the meaining of catch&throw? i dont quite get it
OdNairy has quit [Ping timeout: 272 seconds]
camilasa_ has quit [Remote host closed the connection]
OdNairy has joined #ruby
<Hanmac> is ruby's way to play baseball ;P
camilasan has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasa_ has joined #ruby
amrit_ has joined #ruby
matheuscaceres has quit [Quit: matheuscaceres]
xcess_denied has quit [Quit: Leaving...]
raphaelivan has quit [Quit: Leaving.]
julweber has joined #ruby
amritanshu_RnD has quit [Quit: Leaving]
amrit_ has quit [Read error: Connection reset by peer]
<wald0_> if i remove the catch, and replace the throw with an exit/break, its not the same ?
amritanshu_RnD has joined #ruby
drumusician has quit [Ping timeout: 248 seconds]
matheuscaceres has joined #ruby
ce_afk has quit [Ping timeout: 245 seconds]
<Hanmac> wald0_: like when you are in many many capsuled loops, catch/throw maybe nicer than break
mojjojo has joined #ruby
<wald0_> mmh, i think that if i end in a such complex loop, i must better rewrite a better algoritm to reach my needs :)
<shevy> wald0_ catch and throw is another awful thing in ruby nobody likes
jcromartie has joined #ruby
KevinSjoberg has quit [Ping timeout: 272 seconds]
<wald0_> goto in c looks more useful
<shevy> wald0_ more importantly, do we need catch/throw when we already have begin/rescue/exit/next/retry
<tobiasvl> haha what
<Hanmac> wald0_: ruby can have goto too ;P
andrewh has quit [Ping timeout: 245 seconds]
pranny has quit [Quit: Leaving.]
vadviktor has quit [Quit: No Ping reply in 180 seconds.]
* wald0_ adds a note on his refernece: catch&throw is complex and useless, avoid it
KevinSjoberg has joined #ruby
<shevy> \o/
<shevy> and ugly
vadviktor has joined #ruby
rjhunter has joined #ruby
ce_afk has joined #ruby
andrewh has joined #ruby
inad922 has joined #ruby
<inad922> hello
<shevy> rule of thumb: when something it is ugly in ruby, it was designed that way to have people avoid it as a feature
<shevy> especially the -> alias
<inad922> How can I convince capybara to make a "visit" against an https page with a given pem file?
liamkeily has joined #ruby
nowthatsamatt has joined #ruby
<wald0_> shevy: nah, its just for not being bored in the next rewrited version :)
<wald0_> oh, what is -> ? i have see a code with ->(*_) and i thought that was a finger picking in an eeye
realDAB has quit [Quit: realDAB]
mojjojo has quit [Quit: mojjojo]
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<gr33n7007h> wald0_, shorthand for lambda
<shevy> wald0_ sadly, features that are in ruby once, are rarely removed again
jcromartie has joined #ruby
gyre007 has quit [Ping timeout: 245 seconds]
<shevy> take autoload()
<shevy> matz hates it
<shevy> yet it is still aprt of ruby
monkegjinni has joined #ruby
rjhunter has quit [Ping timeout: 240 seconds]
mojjojo has joined #ruby
realDAB has joined #ruby
jcromartie has quit [Client Quit]
<wald0_> is autoload bad? looks like can improve in memory usage
* wald0_ just readed it in ri
<shevy> dunno
<shevy> I never used it
Elhu has joined #ruby
AxonetBE has joined #ruby
varfoo has quit [Ping timeout: 252 seconds]
sandeepk has quit [Quit: Leaving...]
realDAB has quit [Client Quit]
<AxonetBE> On my production server I have now ruby 1.9.3p327 with apache2 and passenger but I want to update to ruby-1.9.3-p448
<AxonetBE> can I do this without downtime ?
fijimunkii has joined #ruby
Advocation has joined #ruby
mansi has joined #ruby
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
<shevy> you mean like zero seconds downtime
<shevy> how do you want to do this if the old instance is still running on default ports
<Hanmac> AxonetBE: let me say this: you are flying in a plane, is it possible to change the Engine without landing? ;P
endash has joined #ruby
havenwood has joined #ruby
<AxonetBE> hanmac: but downtime is not a problem
<AxonetBE> but do I have to reinstall all the gems and re-deploy all the apps also?
rjhunter has joined #ruby
<Hanmac> AxonetBE: i would recomend to jump to ruby2+ on a test server, and if everything works do it also on the product server
<Hanmac> and yes, you should reinstall all gems, specially the C-ext ones
schnittchen has left #ruby [#ruby]
colonolGron has quit [Read error: Connection reset by peer]
polaco_zZz is now known as polaco
nhhagen has joined #ruby
falten has quit [Ping timeout: 264 seconds]
colonolGron has joined #ruby
amund_ has quit [Read error: Connection reset by peer]
mansi has quit [Ping timeout: 272 seconds]
falten has joined #ruby
amund_ has joined #ruby
BizarreCake has joined #ruby
lkba has joined #ruby
lyanchih has joined #ruby
havenwood has quit [Ping timeout: 252 seconds]
Kricir has joined #ruby
simplon has joined #ruby
rjhunter has quit [Ping timeout: 245 seconds]
tesuji has joined #ruby
joonty has quit [Ping timeout: 246 seconds]
nhhagen has quit [Ping timeout: 252 seconds]
okinomo has quit [Ping timeout: 265 seconds]
browndawg has quit [Quit: Leaving.]
Kricir has quit [Ping timeout: 248 seconds]
Ox6abe has quit [Remote host closed the connection]
<Hanmac> AxonetBE: specially when the major or minor version changes (you can look at the ABI version) … if this one changes, you need to reinstall the gems because they can be broken
avril14th has joined #ruby
lyanchih has quit [Quit: lyanchih]
robbyoconnor has quit [Ping timeout: 248 seconds]
avril14th has quit [Remote host closed the connection]
avril14th has joined #ruby
<AxonetBE> and if I know that all the gems are working fine in that ruby version, is a reinstall of the gems ( installed with bundler ) still needed?
KevinSjoberg has quit [Ping timeout: 248 seconds]
varfoo has joined #ruby
vadviktor has quit [Quit: No Ping reply in 180 seconds.]
sheepman has quit [Ping timeout: 240 seconds]
falten has quit [Ping timeout: 264 seconds]
Kabaka has quit [Ping timeout: 240 seconds]
vadviktor_ has quit [Quit: No Ping reply in 180 seconds.]
rjhunter has joined #ruby
timmow has quit [Ping timeout: 260 seconds]
wiak has quit [Excess Flood]
movedx has quit [Ping timeout: 245 seconds]
vadviktor has joined #ruby
wiak has joined #ruby
KevinSjoberg has joined #ruby
monkegjinni has quit [Remote host closed the connection]
clevermatt has quit [Remote host closed the connection]
<Hanmac> AxonetBE: i dont trust bundler, i still would recomend to reinstall them
<shevy> hehe
<shevy> hanmac likes bundler
vadviktor_ has joined #ruby
michael_mbp is now known as zz_michael_mbp
wald0_ has quit [Ping timeout: 246 seconds]
naquad has quit [Ping timeout: 252 seconds]
timmow has joined #ruby
fijimunkii has quit [Ping timeout: 240 seconds]
nowthatsamatt has quit [Quit: nowthatsamatt]
<shevy> bundler makes people smarter
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
falten has joined #ruby
Kabaka has joined #ruby
error404 has quit [Ping timeout: 252 seconds]
matheuscaceres has quit [Quit: matheuscaceres]
rjhunter has quit [Ping timeout: 272 seconds]
schaary has joined #ruby
<shevy> hanmac!!!
zz_michael_mbp is now known as michael_mbp
vadviktor_ has quit [Client Quit]
ShinySides has quit [Ping timeout: 265 seconds]
naquad has joined #ruby
kevinfagan has quit [Ping timeout: 252 seconds]
mark_locklear has joined #ruby
vadviktor_ has joined #ruby
nateberkopec has joined #ruby
Ox6abe has joined #ruby
banghouse2 has quit [Remote host closed the connection]
fijimunkii has joined #ruby
jamesaanderson has joined #ruby
KevinSjoberg has quit [Ping timeout: 248 seconds]
vadviktor has quit [Quit: No Ping reply in 180 seconds.]
vadviktor has joined #ruby
vadviktor_ has quit [Client Quit]
ShinySides has joined #ruby
vadviktor_ has joined #ruby
kevinfagan has joined #ruby
breakingthings has joined #ruby
havenwood has joined #ruby
sambao21 has joined #ruby
Meistarin has joined #ruby
KevinSjoberg has joined #ruby
<Hanmac> shevy: bundler makes people more lazy than they should be
<shevy> yes
<shevy> and they will also learn less that way
kilophoton has joined #ruby
<lupine> I agree. we should also remove their keyboards
<lupine> if they can't do the necessary USB negotiations with a paperclip, they have no business using computers
wind2x_ has joined #ruby
<shevy> not at all
movedx has joined #ruby
rhunter has joined #ruby
havenwood has quit [Ping timeout: 246 seconds]
RaCx has joined #ruby
Lewix has joined #ruby
<Hoozt> Hello shevy :)
<shevy> hmm do I remember you
<lupine> ^^
<Hoozt> haha
wind2x has quit [Ping timeout: 272 seconds]
<shevy> I have extremely short memory on IRC. I dont keep time stamps either. it's like one neverending scroll
shredding has joined #ruby
Dreamer3 has quit [Quit: Computer has gone to sleep.]
<Hanmac> lupine: lets simulate keyboard input with the audio recorder and a blowing whistle (not whistleblower) ;P
<lupine> also an option
dhruvasagar has joined #ruby
inad922 has quit [Ping timeout: 260 seconds]
<Hoozt> Well, what is I say I'm having problems with a debain server.....?
<Hoozt> "ERROR: Failed to build gem native extension." ? :)
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
lfox has joined #ruby
inad922 has joined #ruby
<Hoozt> My system is broken, I need help :( Can't install gems.
kayloos has quit [Ping timeout: 252 seconds]
<Hanmac> Hoozt: "apt-get install ruby-full" or "apt-get install ruby1.9.1-full"
_maes_ has joined #ruby
vpretzel has joined #ruby
rhunter has quit [Ping timeout: 246 seconds]
<Hoozt> Let me ask you though, why specifically 1.9.1 ?
stringoO has joined #ruby
kevinfagan has quit [Ping timeout: 272 seconds]
timmow has quit [Ping timeout: 260 seconds]
<Hanmac> Hoozt: on some systems (like older debian or realy oder ubuntu) 1.8 ruby is still default
<shevy> the first problem is that one uses debian
<shevy> but fear not, hanmac is a die-hardcore ubuntu user
<shevy> he uses ruby 2.x something though
falood has quit [Remote host closed the connection]
falten has quit [Ping timeout: 264 seconds]
naquad has quit [Ping timeout: 272 seconds]
<Hoozt> yep, correct, but I removed the deault ruby, then installed 2.0 with rbenv. That's when this problem started.
movedx has quit [Ping timeout: 265 seconds]
ce_afk has quit [Ping timeout: 272 seconds]
<Hoozt> anyway
ShinySides has quit [Ping timeout: 246 seconds]
<Hanmac> Hoozt: gem install should return a path to a mkmf.log file or similar, make a pastie from it
<Hoozt> I did an apt-get install ruby-full now. Still can't install gems.
<Hanmac> shevy: read about the lethal dose of Neutrinos: http://what-if.xkcd.com/73/
KevinSjoberg has quit [Ping timeout: 246 seconds]
<shevy> Hoozt that's what you get from following hanmac ;)
naquad has joined #ruby
asobrasil has joined #ruby
<Hanmac> Hoozt: my first guess is that you miss "make", or "gcc" or other important packags to install gems … which gem is it an particular, and what is the full error message?
ce_afk has joined #ruby
KevinSjoberg has joined #ruby
<Hoozt> its unicorn
timmow has joined #ruby
ananthakumaran1 has quit [Quit: Leaving.]
<Hoozt> and the terminal massage just says "ERROR: Error installing unicorn:"
<Hoozt> ERROR: Failed to build gem native extension.
kevinfagan has joined #ruby
kilophoton has quit [Ping timeout: 265 seconds]
<Hoozt> "/root/.rbenv/versions/2.0.0-p247/bin/ruby extconf.rb"
<Hoozt> "Gem files will remain installed in /root/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/kgio-2.8.1 for inspection."
<Hoozt> "Results logged to /root/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/kgio-2.8.1/ext/kgio/gem_make.out"
<Hoozt> that's it
kaldrenon has joined #ruby
<Hanmac> maybe i want the content from the "gem_make.out" ?
<Hoozt> It's empty :s
falten has joined #ruby
<Hanmac> lupine: http://xkcd.com/378/
<Hoozt> at least it seems so when I cat it or open it in vim
<shevy> we had the same error a while ago
<shevy> i forgot how it was solved haha
lastk has joined #ruby
<shevy> Hoozt go to /root/rbenv
<shevy> cd /root/.rbenv/versions/2.0.0-p247
<shevy> there is a cahce/ dir right?
<shevy> cache/
<lastk> hi guys, I want to use the latest version of ruby with bundler, how should add it to the gemfile? ruby '2.0.0-p353' or ruby '2.0.0.p353' ?
<shevy> yay, hanmac, this one is for you ^^^
<Hoozt> nope
<shevy> Hoozt you did "gem install unicorn" ?
<Hoozt> yea
clevermatt has joined #ruby
<shevy> Hoozt, ok it must have downloaded it somewhere then
<shevy> the .gem file
<shevy> somewhere in /root/.rbenv
vadviktor_ has quit [Quit: No Ping reply in 180 seconds.]
amoli has quit [Ping timeout: 246 seconds]
<shevy> on my system it is /Programs/Ruby/Current/lib/ruby/gems/1.9.1/cache/
<Hanmac> lastk: ruby-head ;P
araujo has quit [Read error: Connection reset by peer]
<lastk> hanmac, i dont want it to be updated when a new version is released lol
julweber has quit [Remote host closed the connection]
tobstarr has joined #ruby
habanany has joined #ruby
araujo has joined #ruby
ShinySides has joined #ruby
AlSquirrel has quit [Ping timeout: 272 seconds]
enebo has joined #ruby
dzhulk has quit [Quit: Leaving.]
nomenkun has quit [Remote host closed the connection]
movedx has joined #ruby
jbpros has quit [Ping timeout: 264 seconds]
nomenkun has joined #ruby
falten has quit [Ping timeout: 264 seconds]
KevinSjoberg has quit [Ping timeout: 264 seconds]
mzdravkov has joined #ruby
mklappst_ has joined #ruby
hogeo has joined #ruby
nomenkun has quit [Read error: Operation timed out]
mercwithamouth has quit [Ping timeout: 272 seconds]
duggiefresh has joined #ruby
danshultz has joined #ruby
KevinSjoberg has joined #ruby
jbpros has joined #ruby
<Hoozt> shevy: my path is /root/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/
nomenkun has joined #ruby
falten has joined #ruby
<Hoozt> but the strange thing is it's not there with all the other gems
<shevy> hmmm
<shevy> no real idea
<Hoozt> ok
<shevy> I compile from the source
<shevy> ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p448.tar.bz2
mklappstuhl has quit [Ping timeout: 264 seconds]
duggiefresh has quit [Remote host closed the connection]
<shevy> extract, compile with --prefix=/usr
<shevy> :D
jkamenik has quit [Quit: Leaving.]
hogeo has quit [Ping timeout: 272 seconds]
browndawg has joined #ruby
kobain has joined #ruby
AlSquire has joined #ruby
bluenemo_ has joined #ruby
robbyoconnor has joined #ruby
TaxmanBD has quit [Ping timeout: 245 seconds]
rh1n0 has joined #ruby
kofno_ has quit [Quit: leaving]
tharindu has quit [Quit: Leaving...]
Al__ has joined #ruby
movedx has quit [Changing host]
movedx has joined #ruby
kofno_ has joined #ruby
Ox6abe has quit [Remote host closed the connection]
robbyoconnor has quit [Read error: Connection reset by peer]
bklane has joined #ruby
rjhunter has joined #ruby
mansi has joined #ruby
F1skr has joined #ruby
nowthatsamatt has joined #ruby
Advocation has quit [Ping timeout: 246 seconds]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
Squarepy has joined #ruby
cody-- has joined #ruby
Squarepy has quit [Client Quit]
Advocation has joined #ruby
ArchBeOS-work has joined #ruby
p0wn3d has joined #ruby
julweber has joined #ruby
mansi has quit [Ping timeout: 245 seconds]
nhhagen has joined #ruby
rjhunter has quit [Ping timeout: 272 seconds]
mjs2600 has joined #ruby
krawchyk has joined #ruby
rh1n0 has quit [Quit: Linkinus - http://linkinus.com]
lfox has quit [Quit: ZZZzzz…]
Squarepy has joined #ruby
Kricir has joined #ruby
mjs2600 has quit [Remote host closed the connection]
kilophoton has joined #ruby
zeeraw has joined #ruby
jbpros has quit [Read error: Connection reset by peer]
cody-- has quit [Quit: derp]
iamjarvo has joined #ruby
cody-- has joined #ruby
cody-- has left #ruby [#ruby]
rdark_ has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nhhagen has quit [Ping timeout: 252 seconds]
jamesaanderson has joined #ruby
rdark has quit [Ping timeout: 264 seconds]
iamjarvo has quit [Remote host closed the connection]
buscon_ has quit [Remote host closed the connection]
ghanima has quit [Ping timeout: 272 seconds]
iamjarvo has joined #ruby
drumusician has joined #ruby
lfox has joined #ruby
habanany has quit [Quit: Bye]
chludzins has quit [Remote host closed the connection]
rjhunter has joined #ruby
Jabberwock1 has joined #ruby
Jabberwock1 has quit [Client Quit]
adkron has joined #ruby
mengu has quit [Remote host closed the connection]
kure has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
burlyscudd has joined #ruby
iamjarvo has quit [Ping timeout: 245 seconds]
RaCx has quit [Quit: Computer has gone to sleep.]
hersha has joined #ruby
LF4 has joined #ruby
rjhunter has quit [Ping timeout: 272 seconds]
waxjar has joined #ruby
wedgeV has joined #ruby
xk_id has quit [Quit:
sergicles has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
zipper has joined #ruby
mikecmpbll has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
virtualize has joined #ruby
Ox6abe has joined #ruby
Kricir has quit [Ping timeout: 245 seconds]
matheuscaceres has joined #ruby
tannerburson has joined #ruby
phansch has quit [Remote host closed the connection]
Ox6abe has quit [Ping timeout: 248 seconds]
ambushsabre has joined #ruby
aryaching has joined #ruby
banister has joined #ruby
thams has joined #ruby
psyl0n has joined #ruby
zxq9 has joined #ruby
sailias has joined #ruby
jerius has joined #ruby
jbpros has joined #ruby
kaspergr_ has joined #ruby
h_kon has quit [Remote host closed the connection]
nucatus has joined #ruby
havenwood has joined #ruby
h_kon has joined #ruby
<shevy> this is how leonardo davince wrote his CV: http://www.cenedella.com/stone/LeonardoResumeLarge.jpg
<shevy> *daVinci
blaskovicz has joined #ruby
gyre007 has joined #ruby
rjhunter has joined #ruby
Lewix has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 252 seconds]
h_kon has quit [Ping timeout: 272 seconds]
jlast has joined #ruby
p4d4w4n has quit [Quit: This computer has gone to sleep]
<Hanmac> nobu is just awesome!! ;p
p4d4w4n has joined #ruby
_maes_ has joined #ruby
wedgeV has quit [Quit: wedgeV]
duggiefresh has joined #ruby
rjhunter has quit [Ping timeout: 272 seconds]
coder_neo has quit [Ping timeout: 265 seconds]
fuhgeddaboudit has joined #ruby
fgo_ has quit [Remote host closed the connection]
endash has quit [Read error: No route to host]
gr33n7007h has quit [Remote host closed the connection]
kaspergr_ has quit [Read error: Connection reset by peer]
liamkeily has quit [Ping timeout: 252 seconds]
ewnd9 has quit [Read error: Operation timed out]
dhruvasagar has quit [Ping timeout: 264 seconds]
n1x has joined #ruby
<shevy> what did he do now
endash has joined #ruby
ce_afk is now known as cescalante
<shevy> VALUE hval = rb_funcall(obj, id_hash, 0);
<shevy> to
<shevy> VALUE hval = rb_exec_recursive(hash_recursive, obj, 0);
kaspergr_ has joined #ruby
kaspergr_ has quit [Read error: Connection reset by peer]
<Hanmac> yeah i mean he fixed a bug in less than 24h
ravster has joined #ruby
kaspergr_ has joined #ruby
Astral_ has quit [Ping timeout: 272 seconds]
mark_locklear has quit [Ping timeout: 248 seconds]
gr33n7007h has joined #ruby
n1x has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
freezey has joined #ruby
rjhunter has joined #ruby
jonathanwallace has joined #ruby
mikesplain2 has joined #ruby
xcess_denied has joined #ruby
jonathanwallace has quit [Client Quit]
jonathanwallace has joined #ruby
mikepack has joined #ruby
timonv has quit [Remote host closed the connection]
<shevy> hehe
allsystemsarego has quit [Quit: Leaving]
randomnick_ has joined #ruby
momomomomo has joined #ruby
heath has quit [Quit: No Ping reply in 180 seconds.]
falood has joined #ruby
failshell has joined #ruby
kayloos has joined #ruby
n1x has joined #ruby
rjhunter has quit [Ping timeout: 272 seconds]
TaxmanBD has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
petey has joined #ruby
amoli has joined #ruby
sergicles has quit [Quit: sergicles]
zeeraw has joined #ruby
noop has quit [Ping timeout: 248 seconds]
<lupine> hum. I want a method like Array#clear, except it returns the contents of the array as it was before it was cleared
jlast has quit [Remote host closed the connection]
julweber has quit [Remote host closed the connection]
fridim__ has joined #ruby
heath has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
matheuscaceres has quit [Quit: matheuscaceres]
Gowie has joined #ruby
johnnyfuchs has joined #ruby
marr has quit [Read error: Connection reset by peer]
joshu has quit [Read error: Connection reset by peer]
zono has joined #ruby
joshu has joined #ruby
interactionjaxsn has joined #ruby
<zipper> Before you ask me to get a job today, can I at least get a raise on a minimum wage?
rjhunter has joined #ruby
mansi has joined #ruby
<shevy> zipper
<shevy> you are fired
<shevy> next
jamesaanderson has joined #ruby
<zipper> So sick and tired of being broke!! Why do working people have to be broke?
jdguzman has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
<tobiasvl> do you work in IT with minimum wage?
<zipper> As an intern.
<Hanmac> lupine: Array#slice!
tonni has quit [Remote host closed the connection]
<tobiasvl> zipper: ah. ouch
<Hanmac> >> a=[1,2,3];b=a.slice!(0..-1);p a,b
<eval-in> Hanmac => [] ... (https://eval.in/73570)
rjhunter has quit [Read error: Connection reset by peer]
mansi has quit [Ping timeout: 246 seconds]
tonni has joined #ruby
julweber has joined #ruby
rjhunter has joined #ruby
nhhagen has joined #ruby
Advocation has quit [Ping timeout: 246 seconds]
ExCa|iBuR has joined #ruby
dhruvasagar has joined #ruby
freerobby has quit [Quit: Leaving.]
ixxvil has joined #ruby
<GreatSUN> does someone of you guys have an idea how I can make static (self) methods of Module available in a class?
ixxvil has left #ruby [#ruby]
<shevy> zipper make sure it will be helpful for your resume
<shevy> zipper and make pics :P
<_br_> GreatSUN: Are you looking for the extend keyword?
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
schaary has quit [Quit: I sleep ZZZzzz…]
ananthakumaran has joined #ruby
vinnyOcean has joined #ruby
coder_neo has joined #ruby
<GreatSUN> _br_: already tried with it
tonni has quit [Ping timeout: 246 seconds]
<GreatSUN> but it seams not to work
rjhunter has quit [Ping timeout: 245 seconds]
<tobiasvl> GreatSUN: http://gist.github.com
<Hanmac> GreatSUN: look at my link: the section labled as "A Common Idiom"
clevermatt has quit [Remote host closed the connection]
nhhagen has quit [Ping timeout: 252 seconds]
banghouse2 has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lyanchih has joined #ruby
jkamenik has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gtsiftsis has quit [Quit: Leaving]
<Hanmac> GreatSUN: look at my link
xtristan has joined #ruby
monkegjinni has joined #ruby
<Hanmac> shevy: the problem is not that most Internet users are to lazy to google … no, most internet users are SO lazy that they dont even click for links that google FOR them …
<shevy> yeah
<shevy> I wouldnt click on links either
<GreatSUN> hanmac: so I have to use this base.extend and a submodule instead of self.something ?
blaskovicz1 has joined #ruby
<GreatSUN> otherwise it will not be working?
<shevy> extend that way is so verbose
<Hanmac> GreatSUN: yes
<GreatSUN> hanmac: ok, thanks a lot
blaskovicz has quit [Ping timeout: 246 seconds]
n1x has quit [Ping timeout: 246 seconds]
Gowie has quit [Ping timeout: 272 seconds]
tvw has quit []
braoru has quit [Quit: Leaving]
s2013 has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
psyl0n has quit [Remote host closed the connection]
tonni has joined #ruby
tannerburson has quit [Quit: tannerburson]
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
drag00n has joined #ruby
jmeeuwen has joined #ruby
liamkeily has joined #ruby
endash has quit [Ping timeout: 272 seconds]
Gowie has joined #ruby
bean__ has joined #ruby
yano has quit [Quit: WeeChat, The Better IRC Client: http://weechat.org/]
hiall has quit [Ping timeout: 245 seconds]
jlast has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 272 seconds]
freerobby has joined #ruby
sandeepk has joined #ruby
mikepack has quit [Remote host closed the connection]
hiall has joined #ruby
yano has joined #ruby
mark06 has joined #ruby
error404 has joined #ruby
stetho has joined #ruby
hiall has quit [Read error: Operation timed out]
mikepack has joined #ruby
phansch has joined #ruby
tagrudev has quit [Remote host closed the connection]
bgy has left #ruby ["Leaving"]
mikesplain2 has quit [Read error: Operation timed out]
havenwood has joined #ruby
kayloos has quit [Remote host closed the connection]
mansi has joined #ruby
threesome has quit [Ping timeout: 272 seconds]
tesuji has quit [Ping timeout: 246 seconds]
amritanshu_RnD has quit [Read error: Connection reset by peer]
mikesplain2 has joined #ruby
mansi has quit [Read error: Connection reset by peer]
s2013 has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
mansi has joined #ruby
<shevy> hanmac
hamakn has joined #ruby
znake has quit [Quit: Linkinus - http://linkinus.com]
<shevy> I have a project that makes use of many small yaml files
<shevy> the problem is
<shevy> the yaml files are in another directory
banister has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> so when I upload the ruby project
rjhunter has joined #ruby
<shevy> those files are not bundled...
b00stfr3ak has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
kevind has joined #ruby
mando has quit [Remote host closed the connection]
iamjarvo has quit [Remote host closed the connection]
bline79 has quit [Remote host closed the connection]
iamjarvo has joined #ruby
hamakn has quit [Ping timeout: 252 seconds]
banister has joined #ruby
bline79 has joined #ruby
rjhunter has quit [Ping timeout: 265 seconds]
atno__ has joined #ruby
Gonzih has quit [Ping timeout: 265 seconds]
lmickh has joined #ruby
atno has quit [Read error: No route to host]
saarinen has quit [Quit: saarinen]
iamjarvo has quit [Remote host closed the connection]
vinnyOcean has quit [Quit: Textual IRC Client: www.textualapp.com]
iamjarvo has joined #ruby
benwoody has joined #ruby
liamkeily has quit [Ping timeout: 245 seconds]
dhruvasagar has quit [Ping timeout: 252 seconds]
Virtualize|work has joined #ruby
virtualize has quit [Read error: Connection reset by peer]
mansi has quit [Remote host closed the connection]
ppppaul has quit [Ping timeout: 265 seconds]
mansi has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
falood has quit []
Nies has joined #ruby
rjhunter has joined #ruby
Hanmac has quit [Quit: Leaving.]
momomomomo has quit [Quit: momomomomo]
Kneferilis has quit [Quit: Leaving]
tagrudev has joined #ruby
mark_locklear has joined #ruby
endash has joined #ruby
seich- has quit [Ping timeout: 240 seconds]
LexicalScope has quit [Ping timeout: 245 seconds]
<GreatSUN> can someone tell me where to find documentation how to handle missing method in module within the module itself?
<GreatSUN> I know how to handle not defined constants in general (Object.const_missin(name))
<GreatSUN> but I don't remember how to do that within a module for methods only
seich- has joined #ruby
Kneferilis has joined #ruby
joonty has joined #ruby
rjhunter has quit [Ping timeout: 272 seconds]
mmitchell has joined #ruby
Advocation has joined #ruby
<GreatSUN> found it
<GreatSUN> self.method.missing
baordog has joined #ruby
jamblack has quit [Quit: jamblack]
s2013 has joined #ruby
freezey has quit [Remote host closed the connection]
thams has quit [Quit: thams]
endash has quit [Ping timeout: 240 seconds]
ewnd9 has joined #ruby
Kricir has joined #ruby
mojjojo has quit [Quit: mojjojo]
Squarepy has quit [Quit: Leaving]
jim87 has joined #ruby
mark06 has left #ruby [#ruby]
tannerburson has joined #ruby
<jrhe> Is there a standard way of conditionally enabling / disabling a piece of middleware per request?
<jrhe> rack middleware*
<jim87> hello! I'm starting writing ruby code. I've got a question about threads, buffers and shared memory. My idea is to write a thread which writes data into a buffer object, which is thread safe in order to "pop" data in another thread. In this way the write thread is light and tries to avoid loosing data incoming, while the "read" thread may take more time to process it. Is it possible to do this
<jim87> in ruby?
carlyle has joined #ruby
havenwood has joined #ruby
F1skr has quit [Quit: WeeChat 0.4.2]
wallerdev has joined #ruby
kayloos has joined #ruby
geekbri has joined #ruby
endash has joined #ruby
nucatus has quit [Remote host closed the connection]
mando has joined #ruby
nucatus has joined #ruby
obs has quit [Ping timeout: 248 seconds]
jbpros has quit [Quit: jbpros]
blueOxigen has quit [Ping timeout: 272 seconds]
rjhunter has joined #ruby
nhhagen has joined #ruby
obs has joined #ruby
tonni has quit [Read error: Connection reset by peer]
ExCa|iBuR has quit [Quit: I was using serenepIRCh http://www.serenity-irc.net/ :-]
clevermatt has joined #ruby
kayloos has quit [Remote host closed the connection]
freezey has joined #ruby
elux has joined #ruby
smathieu has joined #ruby
kevind has quit [Quit: kevind]
clevermatt has quit [Remote host closed the connection]
rjhunter has quit [Ping timeout: 246 seconds]
nhhagen has quit [Ping timeout: 252 seconds]
kevind has joined #ruby
tobstarr has quit [Remote host closed the connection]
sayan has quit [Ping timeout: 245 seconds]
liamkeily has joined #ruby
Gowie has quit [Ping timeout: 272 seconds]
<jim87> I'm playing with threads. My local installation will output "Thread 1" and "Thread 2" only once, why? http://codepad.org/xFxlXD1c
einarj has quit [Remote host closed the connection]
banghouse2 has quit [Remote host closed the connection]
axl_ has joined #ruby
varfoo has quit [Quit: WeeChat 0.4.0]
zoo-zed has joined #ruby
einarj has joined #ruby
Czupa has joined #ruby
lethjakman has joined #ruby
gerep has joined #ruby
ccolorado has joined #ruby
Percy has quit [Remote host closed the connection]
<gerep> Can someone please help me subtract Time? https://gist.github.com/gerep/7661109
<wuest> jim87: your program is exiting; you aren't waiting for the threads to end before allowing the program to terminate.
iamjarvo has quit [Remote host closed the connection]
sandeepk has quit [Quit: Linkinus - http://linkinus.com]
mmitchell has quit [Read error: Connection reset by peer]
Czupa has quit [Remote host closed the connection]
iamjarvo has joined #ruby
<jim87> wuest: how can I wait the threads to end? Thanks :)
wallerdev has quit [Quit: wallerdev]
Hanmac has joined #ruby
gyre007 has quit [Remote host closed the connection]
<wuest> gerep: What does job.time represent? Time.at(num) assumes you are giving the time in Epoch time format (see: http://en.wikipedia.org/wiki/Epoch_time) so the output you show is _technically_ correct.
<wuest> jim87: look into Thread#wait
Briareos1 has joined #ruby
<jim87> kk
colonolGron has quit [Quit: leaving]
jibi has joined #ruby
<havenwood> >> Time.now.to_i - Time.now.to_i
<eval-in> havenwood => 0 (https://eval.in/73574)
<gerep> wuest: job.time is a Time object, I'll read about the Epoch time. Is that the correct way to subtract Time?
Arzaga has joined #ruby
julweber has quit [Remote host closed the connection]
tonni has joined #ruby
_HolyCow1 is now known as _HolyCow
<Muz> Time.now - job.time.to_i
wallerdev has joined #ruby
<gerep> Muz: it returns 1969-12-31 21:56:22 -0300
mengu has quit []
einarj has quit [Ping timeout: 272 seconds]
<havenwood> jim87: threads = []; threads << Thread.new { loop { puts 1 } }; threads << Thread.new { loop { puts 2 } }; threads.map &:join
<ccolorado> Can someone explain why this line fails date = Date.strptime( '4/22/2013', '%-m/%-d/%Y' ) with this error `new_by_frags': invalid date (ArgumentError) ?
<wuest> gerep: subtracting a time object from another will give the difference in time. What are you HOPING to end up with?
Astralum has joined #ruby
<havenwood> jim87: oh, you want to stagger the output? nvm that ^ then, i mistook you wanting to wait for threads to die to move on.
iamjarvo has quit [Ping timeout: 246 seconds]
zipper has quit [Quit: Lost terminal]
<gerep> wuest: I'm trying to calculate the time an action took, based on the time it started (job.time) and when it was done (Time.now)
<wuest> I think line 4 does that.
mmitchell has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Czupa has joined #ruby
<havenwood> gerep: do you want the difference in an Integer representing seconds?
momomomomo has joined #ruby
varfoo has joined #ruby
<gerep> havenwood: it could be but how do I convert it so the user will see the date on a readable format?
h0rrorvacui has joined #ruby
<wuest> Gerep: you have a number of seconds assigned to time. From this point, you can work out formatting as you like.
<gerep> havenwood wuest for instance, a job started at 26/11/2013 13:21:35 and it was finished at 26/11/2013 13:22:10
gyre007 has joined #ruby
<havenwood> gerep: so you don't want to show the difference in time, you just want to prettily print the two times?
mikecmpbll has joined #ruby
<wuest> havenwood: they want to prettily print the difference in time
jprovazn has quit [Ping timeout: 264 seconds]
<momomomomo> (Time1 - Time2).strftime("MY FORMAT HERE")
<momomomomo> for the date; if you want the time in minutes/weeks/days etc
<momomomomo> that can be done in a similar fashion - but I'd probably just use https://github.com/abhidsm/time_diff
wallerdev has quit [Quit: wallerdev]
<wuest> ^ what momomomo said
jonathanwallace has quit [Ping timeout: 245 seconds]
<gerep> momomomomo: thanks, I'll use that
ahawkins has quit [Quit: leaving]
<wuest> gerep: http://www.ruby-doc.org/core-2.0.0/Time.html#method-i-strftime for the format string spec, in case you aren't familiar with it from C
Arzaga has quit [Quit: Computer has gone to sleep.]
tharindu has joined #ruby
<gerep> wuest: thanks :)
rjhunter has joined #ruby
lyanchih has quit [Ping timeout: 252 seconds]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cpruitt has joined #ruby
TaxmanBD has quit [Ping timeout: 245 seconds]
arthurnn has joined #ruby
GreatSUN has quit [Ping timeout: 250 seconds]
<jim87> yay Ruby is super-easy :D
<havenwood> >> (Time.at(Time.now - Time.now)).strftime("%L ms")
<eval-in> havenwood => "999 ms" (https://eval.in/73575)
<jim87> http://codepad.org/5RvMInVa ^_^ shared memory in threads with no overhead
mikepack has quit [Remote host closed the connection]
TaxmanBD has joined #ruby
tonni has quit [Ping timeout: 245 seconds]
<havenwood> jim87: But Array isn't thread safe. Use Queue.
phansch has quit [Remote host closed the connection]
AxonetBE has quit [Quit: AxonetBE]
<havenwood> jim87: Or a ThreadSafe::Array from the thread_safe gem.
<havenwood> jim87: Queue, SizedQueue, or ThreadSafe::Array are all thread safe.
rjhunter has quit [Ping timeout: 246 seconds]
<spike|spiegel> what dumbassery is going on here?
<havenwood> the morning type
dhruvasagar has joined #ruby
iamjarvo has joined #ruby
OdNairy has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
joonty has quit [Ping timeout: 245 seconds]
<jim87> thanks havenwood will have a look :)
kaspergr_ has quit [Remote host closed the connection]
tonni has joined #ruby
TMM has quit [Quit: Ex-Chat]
matheuscaceres has joined #ruby
<wuest> jim87: In addition to havenwood's good recommendation, if you're going to be working with Thread in ruby much, consider: http://pragprog.com/book/jsthreads/working-with-ruby-threads
<havenwood> ^ that's a good book :)
mikepack has joined #ruby
<wuest> Indeed
Czupa has quit [Quit: Wychodzi]
Czupa has joined #ruby
OdNairy has quit [Ping timeout: 272 seconds]
tonni has quit [Read error: Connection reset by peer]
houndstooth has joined #ruby
rdark_ has quit [Ping timeout: 248 seconds]
<jim87> wuest: thanks for the book suggestion. I'm working on a provider/consumer simple application which grabs data from a network provider and then queues the data for db insert
tannerburson has quit [Quit: tannerburson]
wormwood has quit [Changing host]
wormwood has joined #ruby
browndawg has left #ruby [#ruby]
Gwyxx has joined #ruby
zz_tsykoduk is now known as tsykoduk
varfoo has quit [Ping timeout: 272 seconds]
Gwyxx is now known as SL-RHanson
ewnd9 has quit [Ping timeout: 246 seconds]
s2013 has quit [Ping timeout: 252 seconds]
dangerousdave has joined #ruby
<havenwood> jim87: A limitless queue or of a specific size? Does the queue timeout?
<jim87> havenwood: I'm thinking about limiting the queue to avoid huge RAM usage
xtristan has quit [Ping timeout: 272 seconds]
<jim87> is it possible to limit the queue depending on its real size (MB) instead of an index?
varfoo has joined #ruby
<jim87> simpliest solution would be to drop packets if queue.size > TOT
<workmad3> jim87: is this as a learning exercise?
<jim87> workmad3: yes and nope... I'm trying developing this and I found out ruby is really agile doing this kind of things
<workmad3> jim87: if it's intended for production use, I'd probably suggest looking @ something like 0mq is all ;)
iamjarvo has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<jim87> workmad3: I'm indeed contacting a 0mq data provider
<jim87> I'd like to insert data provided into a MongoDB database
iamjarvo has joined #ruby
<workmad3> jim87: err, ok... I don't see why you're setting up your own internal queue/buffer then :)
zerign has quit [Ping timeout: 245 seconds]
<jim87> workmad3: because if I don't thread the things, I'll loose a lot of packets. Data doesn't have a constant incoming rate
rdark has joined #ruby
maletor has joined #ruby
Qerub has joined #ruby
<jim87> workmad3: thus I can handle a (relatively) small queue to prevent data loss
<workmad3> jim87: you won't lose packets with 0mq... it's not a raw network connection
<workmad3> jim87: you take data off as messages with 0mq, iirc...
<jim87> workmad3: it listens for incoming data, but if the thread is not free it will loose the data in the mean while
<jim87> and thus the producer/consumer thread architecture
<Qerub> Hi! I'm running JRuby through a custom wrapper script called vendor/jruby. `vendor/jruby -S bundle exec <command>` doesn't work because Bundler can't find my Ruby ("env: jruby: No such file or directory"). Any suggestions?
Monie has joined #ruby
<havenwood> jim87: Why not use 0MQ as the Queue though? Multiple threads writing to 0MQ?
<havenwood> DRb FTW! (I don't know what we're talking about, but I'm pretty sure DRb is the answer.)
<workmad3> jim87: hmm... I think you're misusing 0mq then
<workmad3> jim87: 0mq *is* the queue in a producer/consumer architecture, you don't need to set it up yourself :)
<jim87> uhmhmhm...
iamjarvo has quit [Ping timeout: 245 seconds]
Gonzih has joined #ruby
<jim87> workmad3: thus if I put, let's say, a sleep(1) I'll get all the messages sent in that second?
<workmad3> jim87: pretty sure you will, unless you've got something weird setup with 0mq
RichardBaker has joined #ruby
<havenwood> jim87: Just for fun: https://gist.github.com/havenwood/5572888
<jim87> workmad3: 'cause I previously wrote a C# application using the official 0mq library and it got way less messages than this queue solution
<jim87> it was saving data in a SQLite database
<jim87> receive -> insert in DB
<workmad3> jim87: as long as you don't unsubscribe from the 0mq publisher while processing, you should, afaik, be fine
wallerdev has joined #ruby
mojjojo has joined #ruby
<jim87> but wouldn't be this a somewhat form of memory-leak library, accumulating messages if they're not processed in time?
tjad has quit [Ping timeout: 246 seconds]
gerep has quit [Quit: gerep]
<workmad3> jim87: you always have that risk with a producer/consumer architecture
Lewix has joined #ruby
<workmad3> jim87: your own strategy wouldn't solve that, unless you're willing to lose messages
<workmad3> jim87: and there are strategies you can use with 0mq on that front too
tsykoduk is now known as zz_tsykoduk
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<jim87> workmad3: yep, but I can then select "double" messages to be lift from the queue
<jim87> (they've got an ID)
<jim87> i.e. every time the queue reaches 10000 messages, run the "cleaner" function/method
f0ster_ has joined #ruby
jkhwan has joined #ruby
f0ster_ is now known as f0ster
f0ster has quit [Changing host]
f0ster has joined #ruby
gasbakid has joined #ruby
mojjojo has quit [Client Quit]
<katherinem13> Hi, I'm having a problem with rbenv on OS X. When I run 'rbenv exec gem install bundler', it complains about permissions on an RVM (not rbenv) directory (/usr/local/rvm). Anyone have any ideas on why it's trying to use this directory and how I can make it stop?
bluenemo has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
<workmad3> jim87: I'd be very surprised if you couldn't do that sort of thing directly with 0mq too, it's certainly worth investigating ;)
<havenwood> katherinem13: Seems you have both RVM and rbenv installed. (I vote ditch them both and go with chruby!) But for real, you'll want to uninstall RVM: rvm implode
bluenemo_ has quit [Read error: Connection reset by peer]
tommyvyo has joined #ruby
<jim87> workmad3 yep indeed, I'm gonna do some tests
gr33n7007h has quit [Quit: Leaving]
<jim87> simple, practical way is to execute the two versions and then compare the two results
obs has quit [Remote host closed the connection]
gr33n7007h has joined #ruby
wind2x_ has quit [Ping timeout: 248 seconds]
<havenwood> katherinem13: While you're ditching RVM, maybe take a look at ditching rbenv too: https://github.com/postmodern/chruby#readme
mansi has quit [Read error: Connection reset by peer]
gr33n7007h has quit [Read error: Connection reset by peer]
mansi has joined #ruby
zz_tsykoduk is now known as tsykoduk
Kricir has quit [Remote host closed the connection]
<katherinem13> havenwood: Not really an option here, I've got to duplicate a particular production environment in which we use rbenv.
<havenwood> katherinem13: Then implode rvm and see what breaks then. :)
<katherinem13> havenwood: If I already removed RVM's directory and binaries, I guess I have to reinstall it and then implode it?
<havenwood> katherinem13: PS - Usually there is an #rvm and #chruby channel but no #rbenv, but the usual solution seems to be `rbenv rehash` or to uninstall it. :P
<havenwood> katherinem13: Is rvm installed at all?
<havenwood> katherinem13: Any output for: command -v rvm
<katherinem13> havenwood: it was previously installed, but I went around rm-ing all of it's files.
thams has joined #ruby
<havenwood> katherinem13: aha, yeah will work better to use it's own command for imploding.
<katherinem13> havenwood: nope, empty output.
<katherinem13> havenwood: okay, will try that
<havenwood> katherinem13: Or to be moar stylish you can `rvm seppuku` (alias to `rvm implode`).
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mzdravkov has quit [Ping timeout: 272 seconds]
marr has joined #ruby
ghr has quit [Quit: Computer has gone to sleep.]
sputnik13 has joined #ruby
sputnik13 has quit [Client Quit]
pel_daniel has joined #ruby
ssvo has joined #ruby
nhhagen has joined #ruby
<Paradox> banister, someone wrote about pry in sitepoint
tylersmith has joined #ruby
<banister> Paradox what is sitepoint
maletor has quit [Quit: Computer has gone to sleep.]
<Paradox> moderately decent web dev/design blog
<Paradox> with some programming stuff here and there
<banister> Paradox cool, link?
<Paradox> yeah let me find it
<workmad3> Paradox: 'moderately decent'? seriously? :/
tylersmith has quit [Remote host closed the connection]
wildroman2 has joined #ruby
<workmad3> oh, sorry, getting confused with sharepoint...
<Paradox> loool
<Paradox> its easy to do
<Paradox> did you know, now that waterboarding is illegal, they've come up with a new torture for guantanamo
Nogbit has joined #ruby
<Paradox> they force the inmates to debug sharepoint
nvrch has quit [Quit: nvrch]
mzdravkov has joined #ruby
fridim__ has quit [Ping timeout: 248 seconds]
capicue has joined #ruby
lsmola has quit [Ping timeout: 245 seconds]
tylersmith has joined #ruby
<Nogbit> just joined, @Paradox you don't know how funny that is
TaxmanBD has quit [Ping timeout: 245 seconds]
Voodoofish430 has joined #ruby
kayloos has joined #ruby
OdNairy has joined #ruby
iliketur_ has joined #ruby
yacks has joined #ruby
zono has quit [Quit: zono]
nhhagen has quit [Ping timeout: 245 seconds]
Briareos1 has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
verto has joined #ruby
iliketur_ has quit [Client Quit]
dagobah has quit [Remote host closed the connection]
roolo has quit [Remote host closed the connection]
<Paradox> banister whats your favorite debug/stack explorer pry plugin of the moment
<shevy> lol
<Paradox> it seems to rotate
geekazoid has joined #ruby
Xeago_ has joined #ruby
Advocation has quit [Quit: Advocation]
<banister> Paradox pry-rescue
rjhunter has joined #ruby
<Paradox> ooh havent played with that one yet
<Paradox> i have nav installed
timonv has quit [Remote host closed the connection]
mzdravkov has quit [Ping timeout: 252 seconds]
mansi has quit [Read error: Connection reset by peer]
timonv has joined #ruby
mansi has joined #ruby
bigoldrock1 has joined #ruby
<banister> Paradox cool, i didnt see that
Xeago has quit [Ping timeout: 252 seconds]
user258467 has quit [Ping timeout: 252 seconds]
goles has joined #ruby
Fire-Dragon-DoL has joined #ruby
<goles> Hey guys, could anyone recommend a good updated book to learn ruby? (Not to learn how to program :))
user258467 has joined #ruby
Gowie has joined #ruby
RaCx has joined #ruby
pragmatism has joined #ruby
<Paradox> pickaxe
liamkeily has quit [Ping timeout: 252 seconds]
pleal has joined #ruby
tagrudev has quit [Read error: Connection reset by peer]
maletor has joined #ruby
andikr has quit [Remote host closed the connection]
geekazoid has quit [Remote host closed the connection]
rjhunter has quit [Ping timeout: 248 seconds]
kevind_ has joined #ruby
liamkeily has joined #ruby
houndstooth has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 272 seconds]
user258467 has quit [Max SendQ exceeded]
jonathanwallace has joined #ruby
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
Qerub has quit [Quit: Qerub]
pedda has quit [Quit: Textual IRC Client: www.textualapp.com]
user258467 has joined #ruby
michael_mbp is now known as zz_michael_mbp
gasbakid_ has joined #ruby
kilophoton has quit [Ping timeout: 252 seconds]
arietis has joined #ruby
Advocation has joined #ruby
kevind has quit [Ping timeout: 272 seconds]
kevind_ is now known as kevind
zz_michael_mbp is now known as michael_mbp
Thanatermesis has joined #ruby
user258467 has quit [Max SendQ exceeded]
TaxmanBD has joined #ruby
user258467 has joined #ruby
gasbakid has quit [Ping timeout: 264 seconds]
myth17 has joined #ruby
<shevy> yeah
user258467 has quit [Max SendQ exceeded]
<shevy> pickaxe is ok
user258467 has joined #ruby
<havenwood> goles: The Ruby Programming Language is good too.
einarj has joined #ruby
shredding has quit [Quit: shredding]
user258467 has quit [Max SendQ exceeded]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alup has quit [Quit: Leaving]
jkhwan has quit [Remote host closed the connection]
kidoz has joined #ruby
jkhwan has joined #ruby
shredding has joined #ruby
user258467 has joined #ruby
kilophoton has joined #ruby
RaCx_ has joined #ruby
user258467 has quit [Max SendQ exceeded]
apeiros has quit [Remote host closed the connection]
RaCx has quit [Ping timeout: 272 seconds]
RaCx_ is now known as RaCx
rspillidon has joined #ruby
user258467 has joined #ruby
gr33n7007h has joined #ruby
mzdravkov has joined #ruby
rdark has quit [Ping timeout: 272 seconds]
gr33n7007h has quit [Max SendQ exceeded]
user258467 has quit [Max SendQ exceeded]
julweber has joined #ruby
ambushsabre has joined #ruby
user258467 has joined #ruby
olivier_bK has quit [Ping timeout: 246 seconds]
gr33n7007h has joined #ruby
gr33n7007h has quit [Max SendQ exceeded]
eliasp has joined #ruby
rdark has joined #ruby
einarj has quit [Ping timeout: 245 seconds]
noop has joined #ruby
user258467 has quit [Max SendQ exceeded]
gr33n7007h has joined #ruby
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
jkhwan has quit [Ping timeout: 272 seconds]
gr33n7007h has quit [Max SendQ exceeded]
ephemerian has quit [Quit: Leaving.]
kilophoton has quit [Ping timeout: 272 seconds]
gr33n7007h has joined #ruby
alexparker has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
myth17 has quit [Quit: Bye Bye...]
alexparker has quit [Client Quit]
user258467 has joined #ruby
jkhwan has joined #ruby
tommyvyo_ has joined #ruby
tommyvyo has quit [Read error: Connection reset by peer]
timonv has joined #ruby
julweber has quit [Ping timeout: 272 seconds]
user258467 has quit [Max SendQ exceeded]
kiba` has joined #ruby
user258467 has joined #ruby
kayloos has quit [Remote host closed the connection]
phansch has joined #ruby
RealMarc has quit [Ping timeout: 272 seconds]
bradhe has joined #ruby
Gowie has quit [Ping timeout: 272 seconds]
rjhunter has joined #ruby
Xeago_ has quit [Remote host closed the connection]
user258467 has quit [Max SendQ exceeded]
<jle`> i can testify for pickaxe
user258467 has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
kiba has quit [Ping timeout: 246 seconds]
<jim87> when I execute myQueue.clear, the thread stops... what am I doing wrong?
rhunter has joined #ruby
geggam has joined #ruby
rjhunter has quit [Ping timeout: 245 seconds]
dzhulk has joined #ruby
kure has quit [Read error: Connection reset by peer]
kayloos has joined #ruby
spider-mario has joined #ruby
kure has joined #ruby
michael_alex has quit [Remote host closed the connection]
MrZYX|off is now known as MrZYX
shredding has quit [Quit: shredding]
Advocation has quit [Quit: Advocation]
axl_ has quit [Quit: axl_]
buscon_ has joined #ruby
troessner has quit [Quit: Leaving]
julweber has joined #ruby
rhunter has quit [Ping timeout: 240 seconds]
axl_ has joined #ruby
luckyruby has joined #ruby
ccolorado has left #ruby [#ruby]
kaspergrubbe has joined #ruby
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> jim87: headlessCamelCase for one thing :P
troessner has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<jim87> oh, iLoveCamelCase :P
<jim87> btw it turned out it was a variable misspelling
kilophoton has joined #ruby
timonv_ has joined #ruby
<havenwood> snake_case_will_bite_you_for_this_insolence!
<jim87> camelCaseIsSoCoolBro :P
arietis has joined #ruby
<jim87> is there a way to turn pedantic warnings on?
liamkeily has quit [Ping timeout: 246 seconds]
<workmad3> ruby_hates_camel_case_and_loves_snakecase
kidoz has quit [Quit: Ухожу я от вас]
banghouse2 has joined #ruby
barratt has quit [Ping timeout: 245 seconds]
troessner has quit [Read error: Connection reset by peer]
aagdbl1 has quit [Quit: Leaving.]
camilasa_ has quit []
<jim87> is there a way to get warnings like "attempted to access method 'abc' of object 'null'"?
<jim87> (non-existant method 'abc')
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv has quit [Ping timeout: 245 seconds]
<havenwood> jim87: Will warn you: "Use snake_case for variables."
<jim87> roflmao
psyl0n has joined #ruby
jonahR has joined #ruby
<havenwood> jim87: Prolly good idea to enable `Thread.abort_on_exception = true`: http://ruby-doc.org/core-2.0.0/Thread.html#method-c-abort_on_exception-3D
phansch has quit [Remote host closed the connection]
kaspergrubbe has quit [Ping timeout: 264 seconds]
<jim87> oh mofo, it complains for tabs too xD
mansi has quit [Read error: Connection reset by peer]
<havenwood> jim87: oh, the horror...
cameronbarton has joined #ruby
<jim87> xD
Advocation has joined #ruby
mansi has joined #ruby
<havenwood> tabs with camelCase, kill me now!!
<jim87> ahahah xD
banghouse2 has quit [Read error: Operation timed out]
magoo has joined #ruby
julweber has quit [Remote host closed the connection]
<jim87> I like 4-spacing or tabbing. Thing is that when you extra-tab, you only need to backspace once
Elhu has quit [Quit: Computer has gone to sleep.]
<jim87> when you set tab = 4 spaces in most text-editors, when you backspace you'll erase only one space
<havenwood> jim87: use a decent editor that support soft-tabs, 2-space with Ruby OMGWTFBBQ...
<workmad3> jim87: ditto when using spaces, with a decent text editor and softtabs
pwh has quit []
<jim87> I'm using SublimeText 2
<jim87> btw
<havenwood> jim87: So set it to 2-spaced soft-tabs for Ruby FTW.
<havenwood> jim87: Backspaces will work, will look nice on Github, fairies won't die.
iliketur_ has joined #ruby
nisstyre has quit [Quit: Leaving]
rspillidon has quit [Quit: WeeChat 0.3.7]
<havenwood> jim87: Looks like in Sublime text parlance that would be: Indent Using Spaces, Tab Width: 2
<jim87> yep
gasbakid_ has quit [Quit: Quitte]
banghouse2 has joined #ruby
<jim87> still 22 offences detected xD
<jim87> mofo even double quoted strings with no dynamic contents
theRoUS is now known as theRoUS|feeding
tedstriker has quit [Remote host closed the connection]
<jim87> yeah I'm learning how to write code again xD
mzdravkov has quit [Remote host closed the connection]
kayloos has quit [Remote host closed the connection]
lethjakman has quit [Ping timeout: 264 seconds]
bklane has quit [Quit: Leaving...]
thams has quit [Quit: thams]
rjhunter has joined #ruby
digital-ghost has joined #ruby
nomenkun has quit [Ping timeout: 248 seconds]
mikesplain2 has quit [Quit: WeeChat 0.4.2]
myappleguy has joined #ruby
s2013 has joined #ruby
buscon_ has quit [Ping timeout: 245 seconds]
TaxmanBD has quit [Ping timeout: 245 seconds]
Lindrian has quit [Ping timeout: 265 seconds]
jalcine has quit [Excess Flood]
rjhunter has quit [Read error: Connection reset by peer]
workmad3 has quit [Read error: Operation timed out]
<jim87> http://codepad.org/SC7itCya <-- it says: Favor modifier if/unless usage when you have a single-line body. Another good alternative is the usage of control flow &&/||... what does it mean exactly? *confused*
apeiros has joined #ruby
axl_ has quit [Quit: axl_]
momomomomo has quit [Quit: momomomomo]
nhhagen has joined #ruby
pwh has joined #ruby
shaunbaker has quit [Remote host closed the connection]
carlyle has quit [Remote host closed the connection]
cads has quit [Read error: Operation timed out]
shaunbaker has joined #ruby
stkowski has joined #ruby
rjhunter has joined #ruby
tharindu has quit [Read error: Connection reset by peer]
luckyruby has quit [Remote host closed the connection]
carraroj has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Thanatermesis has left #ruby ["ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ"]
luckyruby has joined #ruby
thams has joined #ruby
zz_scottstamp is now known as scottstamp
inad922 has quit [Quit: ChatZilla 0.9.90.1 [Firefox 25.0.1/20131112160018]]
nhhagen has quit [Ping timeout: 252 seconds]
theRoUS|feeding is now known as theRoUS
tharindu has joined #ruby
rjhunter has quit [Ping timeout: 240 seconds]
shaunbaker has quit [Ping timeout: 252 seconds]
cameronbarton has quit [Quit: cameronbarton]
evolved has joined #ruby
iamjarvo has joined #ruby
julweber has joined #ruby
petey_ has joined #ruby
petey has quit [Read error: Operation timed out]
<havenwood> jim87: `next if buffer.empty?` or `buffer.empty? && next`
<havenwood> jim87: basically never use `then`
Al__ has quit [Quit: Al__]
tannerburson has joined #ruby
smathieu has quit [Remote host closed the connection]
RaCx has quit [Quit: Computer has gone to sleep.]
<jim87> rubocop: "main.rb:43:80: C: Line is too long. [85/79]" <-- SERIOUSLY? xD
smathieu has joined #ruby
jbpros has joined #ruby
jalcine has joined #ruby
<jle`> yea man don't have long lines.
<jle`> it's a bad idea.
<jle`> please feel bad.
<jim87> :(
timonv_ has quit [Remote host closed the connection]
<jim87> I'm feeling very bad
<jle`> thank you
<jim87> btw... next unless data['resultType'] == 'orders' || data['columns'].include?('orderID')
aspires has joined #ruby
<jim87> should I split them into variables?
<jim87> it's such a waste of memory...
<jle`> memory is cheap
<jim87> not as much as I'd like it to be eheheh
<jle`> and i think it'll be gc's as soon as the function is done anyway
whunt has joined #ruby
whunt has quit [Client Quit]
<jle`> actualy not too sure about how gc works in ruby
<jle`> but
<jle`> in any case
<jle`> "premature optimization is the root of all evil"
<jle`> etc. etc.
<jim87> yes, it will, but it's still a 2*sizeof(bool) waste of memory ahahah
saarinen has joined #ruby
<jle`> prioritize expressiveness/everything besides optimization first
whunt has joined #ruby
<jle`> go back and work on optimization later if you have a bottleneck
kilophoton has quit [Quit: leaving]
<jle`> prioritizing optimization considered harmful.
tharindu has quit [Quit: Leaving...]
<jim87> "no offence detected". I'm VERY sad now ahahah
s2013 has quit [Ping timeout: 245 seconds]
<jle`> :)
smathieu has quit [Ping timeout: 272 seconds]
Hoozt has quit [Remote host closed the connection]
noop has quit [Read error: Operation timed out]
evolved has quit [Quit: Leaving]
julweber has quit [Remote host closed the connection]
scottstamp is now known as zz_scottstamp
Snaury1 has joined #ruby
jonathanwallace has quit [Ping timeout: 246 seconds]
Lindrian has joined #ruby
havenwood has quit [Remote host closed the connection]
Snaury has quit [Read error: Operation timed out]
rippa has joined #ruby
varfoo has quit [Quit: WeeChat 0.4.0]
banister has joined #ruby
ambushsabre has joined #ruby
cpruitt has quit [Read error: Connection reset by peer]
zeade has joined #ruby
cpruitt has joined #ruby
tobago has quit [Read error: Operation timed out]
kayloos has joined #ruby
<jim87> when I use symbols (i.e. :symbol), will it always be a string, i.e. puts :symbol outputs "symbol"?
ananthakumaran has quit [Quit: Leaving.]
geekbri_ has joined #ruby
<jle`> um
<jle`> symbols aren't strings, if that's what you are asking
tommyvyo_ has quit [Read error: Connection reset by peer]
tenjack has joined #ruby
<jim87> the problem is: should I use symbols to put data into databases?
<shevy> jim87 if you use puts, you get a string
tommyvyo has joined #ruby
<shevy> jim87 as opposed to string objects? Yes
<tobiasvl> puts calls to_s on the symbol, jim87
<tobiasvl> that doesn't mean that the symbol IS a string
<jim87> i.e. I create an object using symbols (:var => val) and then insert the object in a MangoDB database
<jle`> yeah, puts puts strings no matter what you put in there.
<jle`> so does inspect
<jle`> jim87: what kind of database are you talking about?
<jle`> usually your ORM will have some kind of specification.
barratt has joined #ruby
<jim87> MongoDB*
<jle`> yeah puts 5 does not mean 5 is a string
luckyruby has quit [Read error: Connection reset by peer]
carlyle has joined #ruby
luckyruby has joined #ruby
<jle`> jim87: you should be following what mongodb wrappers tell you to use
luckyruby has quit [Remote host closed the connection]
iz has joined #ruby
luckyruby has joined #ruby
xcess_denied has quit [Ping timeout: 240 seconds]
<shevy> he will use symbols from now on
geekbri has quit [Ping timeout: 248 seconds]
lethjakman has joined #ruby
zerign has joined #ruby
<jim87> symbols AFAIK have two advantages: less memory usage (you create a symbol only once) and symbols easy comparison
s2013 has joined #ruby
<shevy> and now he even answers his own questions. I like that :)
<jim87> :P
dtcrshr has joined #ruby
<shevy> imagine if people who come to #ruby no longer would have any questions
<shevy> we could all idle to PERFECTION, in peace ...
<jim87> nope, connecting/disconnecting people would still disturb the peace :P
RichardBaker has quit [Quit: RichardBaker]
tylersmith has quit [Read error: Connection reset by peer]
Advocation has quit [Quit: Advocation]
nisstyre has joined #ruby
tylersmith has joined #ruby
jprovazn has joined #ruby
geekbri_ has quit []
kayloos has quit [Remote host closed the connection]
smathieu has joined #ruby
geekbri has joined #ruby
<jle`> twenty channels open and not a single new message in any of them, how am i supposed to procrastinate
lfox has quit [Quit: ZZZzzz…]
jbpros has quit [Quit: jbpros]
athst has joined #ruby
VTLob has joined #ruby
Snaury1 is now known as Snaury
<apeiros> jle`: meet i-am-bored.com
<zoo-zed> jle`: procrastination is an art, so create something.
<apeiros> jle`: the art of procrastination is usually to create an excuse :)
iamjarvo_ has joined #ruby
iamjarvo_ has quit [Remote host closed the connection]
gyre008 has joined #ruby
iamjarvo_ has joined #ruby
<shevy> jim87 I dont see those notifications luckily
iamjarvo_ has quit [Read error: Connection reset by peer]
<shevy> jle` the way I do this is by just writing random crap to any of the channels I am :>
<shevy> and if everything fails
<shevy> I visit my friends at #python and speak in their native savage tongue
<shevy> zzShshh shshszsh?
Gonzih has quit [Ping timeout: 246 seconds]
jdguzman has joined #ruby
<shevy> damn
<shevy> why is this not #python :(
jhaals has joined #ruby
<shevy> they ignore me on #python!
<shevy> WARRRRR
<shevy> wow damn... almost 1500 people there
gyre007 has quit [Ping timeout: 252 seconds]
iamjarvo has quit [Ping timeout: 272 seconds]
axl_ has joined #ruby
gyre008 has quit [Ping timeout: 264 seconds]
<shevy> tuple(sum(x) for x in zip((1, 2), (3, 4)))
<shevy> an alien language
lfox has joined #ruby
Tuxist has joined #ruby
Nies has quit [Read error: Connection reset by peer]
JohnBat26|2 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
havenwood has joined #ruby
decoponyo has quit [Quit: Leaving...]
Nisstyre-laptop has joined #ruby
rezzack has joined #ruby
Nisstyre-laptop has quit [Read error: Connection reset by peer]
reset has joined #ruby
<matti> shevy: Not comprehending list comprehension? ;]
<shevy> what is the tuple
<shevy> is that like a pimple?
<matti> No. Worse.
iamjarvo has joined #ruby
<matti> shevy: You will turn into zombie now
cameronbarton has joined #ruby
peck_ has joined #ruby
<cout> hi nice people
hiyosi has quit [Ping timeout: 246 seconds]
<matti> lo
cameronbarton has quit [Remote host closed the connection]
zerign has quit [Read error: Operation timed out]
<peck_> hi all, wondering if anyone could give a look at this spec test and give me some tips on doing TDD right? https://gist.github.com/peck/7663773
cina has joined #ruby
aagdbl1 has joined #ruby
cina has quit [Client Quit]
ephemerian has joined #ruby
iamjarvo has quit [Ping timeout: 248 seconds]
bricker_ has joined #ruby
bricker_ is now known as bricker`work
bricker has quit [Disconnected by services]
gyre007 has joined #ruby
rjhunter has joined #ruby
hersha has quit [Quit: hersha]
b00stfr3ak has quit [Ping timeout: 252 seconds]
RichardBaker has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zeade1 has joined #ruby
dallasm has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Virtualize|work has quit [Read error: Connection reset by peer]
virtualize has joined #ruby
zeade1 has quit [Remote host closed the connection]
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zeade has quit [Ping timeout: 243 seconds]
jkhwan has quit [Remote host closed the connection]
jkhwan has joined #ruby
petey_ has quit [Remote host closed the connection]
rjhunter has quit [Ping timeout: 245 seconds]
petey has joined #ruby
jragon has joined #ruby
jragon has quit [Changing host]
jragon has joined #ruby
jkhwan_ has joined #ruby
wildroman2 has quit []
jkhwan has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
Clooth has joined #ruby
asteros has joined #ruby
timonv has joined #ruby
nhhagen has joined #ruby
vky has joined #ruby
matheuscaceres has quit [Quit: matheuscaceres]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
michael_mbp is now known as zz_michael_mbp
smathieu has quit [Remote host closed the connection]
asteros has quit [Client Quit]
bean__ has joined #ruby
sambao21 has joined #ruby
smathieu has joined #ruby
asteros has joined #ruby
bean__ has quit [Client Quit]
nhhagen has quit [Ping timeout: 252 seconds]
pleal_ has joined #ruby
pleal has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
smathieu has quit [Ping timeout: 264 seconds]
amoli has quit []
virtualize has quit [Quit: Leaving...]
rhunter has joined #ruby
p0wn3d has quit [Remote host closed the connection]
arthurnn has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
arthurnn has joined #ruby
virtualize has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
aagdbl1 has quit [Quit: Leaving.]
rhunter has quit [Ping timeout: 272 seconds]
pwh has quit []
luckyrub_ has joined #ruby
framling has quit [Ping timeout: 260 seconds]
laphlaw has joined #ruby
smathieu has joined #ruby
virtualize has quit [Ping timeout: 272 seconds]
geekbri has quit [Remote host closed the connection]
bklane has joined #ruby
virtualize has joined #ruby
wpgreenway has joined #ruby
geekbri has joined #ruby
ringaroses has joined #ruby
iliketur_ has joined #ruby
ehc has joined #ruby
dcope has left #ruby [#ruby]
adambeynon has joined #ruby
luckyruby has quit [Ping timeout: 272 seconds]
momomomomo has joined #ruby
thelorax123 has quit [Remote host closed the connection]
Mars` has joined #ruby
mando has quit []
b00stfr3ak has joined #ruby
ShortWave has joined #ruby
<ShortWave> Hi all.
nobitanobi has joined #ruby
mklappst_ has quit [Remote host closed the connection]
thelorax123 has joined #ruby
momomomomo has quit [Client Quit]
Virtualize|work has joined #ruby
virtualize has quit [Ping timeout: 272 seconds]
mikepack has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 248 seconds]
<unstable> Hello ShortWave
aspires has quit []
<ShortWave> Situation: I have a client whose site is on a shared host, therefore no access to the system to do installations. I'd like to have a local installation of compass, but I have no access to modify the system (see previous). So I'm curious if anyone has advice about the feasability of this, just how much of a pain is it to use like this?
Es0teric has joined #ruby
gasbakid has joined #ruby
aspires has joined #ruby
coder_neo has quit [Ping timeout: 245 seconds]
petey has quit [Remote host closed the connection]
jrhe has quit [Quit: jrhe]
arthurnn has quit [Ping timeout: 245 seconds]
petey has joined #ruby
tommyvyo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
matheuscaceres has joined #ruby
<unstable> ShortWave: What operating system?
rjhunter has joined #ruby
Gowie has joined #ruby
virtualize has joined #ruby
<ShortWave> Linux
Virtualize|work has quit [Ping timeout: 272 seconds]
<unstable> ShortWave: Why not just modify the bash variables, install rbenv and setup your own local ruby/gem environment?
Gowie has quit [Client Quit]
<ShortWave> Because that's a little bit of a pain.
m8 has joined #ruby
<ShortWave> but that sort of answers the question, doesn't it?
banister has joined #ruby
madhatter has quit [Ping timeout: 272 seconds]
<unstable> I do it all the time, it's a few commands and 15 minutes of waiting while rbenv/gem install everything.
RaCx has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
lethjakman has quit [Read error: Connection reset by peer]
<ShortWave> I don't use ruby tools that often, and in most cases, I'm in control of the system, so I never have to use rbenv...Just seems like a whole pile of support for a single tool.
matheuscaceres has quit [Client Quit]
threesome has joined #ruby
petey has quit [Ping timeout: 272 seconds]
rjhunter has quit [Ping timeout: 246 seconds]
<unstable> I gave you all the commands you have to type in one simple gist.
virtualize has quit [Read error: Connection reset by peer]
dallasm has quit [Remote host closed the connection]
<unstable> First modify your ~/.bash_profile, log out, then back in.. then type those git/gem commands.
virtualize has joined #ruby
<unstable> ruby2.sh can literally be one copy/paste command into the terminal.
<unstable> Then you just wiat 15 minutes and your environment will be setup.
dallasm has joined #ruby
<unstable> The only thing you have to change is "mylocalrailsproject/"
pwh has joined #ruby
coder_neo has joined #ruby
<jrobeson> for local compass installation use binstubs ShortWave
<jrobeson> then it'll be in bin/
<jrobeson> bundler binstubs
framling has joined #ruby
<jrobeson> alongside bundler --deployment
tjad has joined #ruby
ehc has quit [Ping timeout: 272 seconds]
lkba has quit [Ping timeout: 252 seconds]
tommyvyo has joined #ruby
jibi has quit [Ping timeout: 246 seconds]
ehc has joined #ruby
jkhwan_ has quit [Remote host closed the connection]
jibi has joined #ruby
virtualize has quit [Ping timeout: 245 seconds]
ringaroses has quit [Quit: Leaving]
yalue has quit [Quit: Leaving]
virtualize has joined #ruby
jkhwan_ has joined #ruby
kirun has joined #ruby
momomomomo has joined #ruby
leonardorb has quit []
Dev_ryanrr has joined #ruby
Jetchisel has joined #ruby
mercwithamouth has joined #ruby
<ShortWave> unstable: Thank you.
Virtualize|work has joined #ruby
SL-RHanson has quit [Remote host closed the connection]
p4d4w4n has quit [Quit: Saindo]
virtualize has quit [Read error: Connection reset by peer]
havenwood has quit [Remote host closed the connection]
weszlem has joined #ruby
canton7 has quit [Remote host closed the connection]
shredding has joined #ruby
<ShortWave> unstable: Most appreciated
virtualize has joined #ruby
rjhunter has joined #ruby
Virtualize|work has quit [Read error: Connection reset by peer]
canton7 has joined #ruby
canton7 has quit [Remote host closed the connection]
<ShortWave> unstable: stuck it in snippets. I realize, I was sitting here stressing about work I didn't actually have to do. Go figure.
canton7 has joined #ruby
blumner has joined #ruby
jkamenik has quit [Quit: Leaving.]
smathieu has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
smathieu has joined #ruby
Dev_ryanrr has quit [Client Quit]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
asteros has quit [Quit: asteros]
shredding has quit [Client Quit]
Virtualize|work has joined #ruby
mansi has quit [Remote host closed the connection]
Monie has joined #ruby
aspires has quit []
mansi has joined #ruby
dallasm has quit [Remote host closed the connection]
iz has quit [Remote host closed the connection]
Dev_ryanrr has joined #ruby
virtualize has quit [Ping timeout: 264 seconds]
ringaroses has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mansi_ has joined #ruby
benwoody has quit [Quit: benwoody]
rjhunter has quit [Ping timeout: 272 seconds]
iz has joined #ruby
pleal_ has quit [Remote host closed the connection]
mansi_ has quit [Remote host closed the connection]
havenwood has joined #ruby
<unstable> ShortWave: Let me know if it works and your local environment is setup. eg, ruby -v gives you 2.0.0p353, and you can 'gem install compass' without a problem.
mansi has joined #ruby
smathieu has quit [Ping timeout: 248 seconds]
RichardBaker has quit [Quit: RichardBaker]
<bricker`work> Is there a more common way to handle something like this? https://gist.github.com/bricker/7665045
rjhunter has joined #ruby
lkba has joined #ruby
virtualize has joined #ruby
Virtualize|work has quit [Ping timeout: 245 seconds]
<jrobeson> bricker`work, looks like an array.. with the keys on the wrong side.. is that how it's gonna stay?
rjhunter has quit [Read error: Connection reset by peer]
<jrobeson> you could use array reverse and then turn it into a hash
tjbiddle has joined #ruby
<jrobeson> err wait duh hash likely already has that
<goles> Guys, could anyone recommend a book to get started with ruby?
mojjojo has joined #ruby
<bricker`work> jrobeson: Oops, typo, the second hash is supposed to reverse the first one https://gist.github.com/bricker/7665045
freezey has quit [Remote host closed the connection]
<jrobeson> bricker`1A, why are you bothering defining your assets like that in the first place?
<bricker`work> jrobeson: :P
<jrobeson> if you flipped the keys and values it'd already be an array? where is the source
vky has quit [Remote host closed the connection]
<bricker`work> jrobeson: I see you think you have a complete understanding of the entire application based on 2 lines of theoretical code
mansi has quit [Ping timeout: 272 seconds]
<jrobeson> bricker`work, uhm.. no i dont
Dev_ryanrr has quit [Quit: Leaving]
<jrobeson> i'm asking based on the code i see
zoo-zed has quit [Quit: Leaving.]
<jrobeson> that's the point.. i don't in facdt know your application
<bricker`work> jrobeson: It doesn't matter, the code in that gist is all I'm asking about.
mikepack has joined #ruby
<bricker`work> *sigh*
virtualize has quit [Ping timeout: 245 seconds]
Old_dev has joined #ruby
freezey has joined #ruby
virtualize has joined #ruby
larissa has joined #ruby
<bricker`work> right before lunch is a bad time to ask questions, I guess
jmccune has joined #ruby
newbiehacker has quit [Quit: Leaving]
mansi has joined #ruby
mojjojo has quit [Client Quit]
<jrobeson> bricker`work, why not just hash.invert ?
<bricker`work> jrobeson: Because I thought that was only available in 2.0 :O
jbpros has joined #ruby
<jrobeson> well you didn't mention that was a requirement :)
<bricker`work> jrobeson: but it's also in 1.9.3 apparently
<jrobeson> bricker`1A, what is your ruby version reqruiement?
<jrobeson> yep
<apeiros> bricker`work: it's also in 1.8
<bricker`work> Guess I've just never used it
<jrobeson> so does that complete your answer?
carraroj has quit [Quit: Konversation terminated!]
virtualize has quit [Ping timeout: 272 seconds]
Virtualize|work has joined #ruby
petey has joined #ruby
BizarreCake has quit [Ping timeout: 246 seconds]
ereslibre has quit [Ping timeout: 245 seconds]
<bricker`work> jrobeson: Not really, but I didn't really ask the question I wanted to ask in the first place so you can pat yourself on the back or whatever you need to do.
<jrobeson> uhmm?
nhhagen has joined #ruby
MrZYX is now known as MrZYX|off
<jrobeson> now you're just being an ass
barratt has quit [Quit: Leaving...]
carraroj has joined #ruby
havenwood has quit [Remote host closed the connection]
bean__ has joined #ruby
<bricker`work> jrobeson: just trying to keep you entertained
bluOxigen has quit [Ping timeout: 264 seconds]
rjhunter has joined #ruby
reset has quit [Quit: Leaving...]
Virtualize|work has quit [Ping timeout: 252 seconds]
virtualize has joined #ruby
jbpros has quit [Ping timeout: 264 seconds]
Elhu has joined #ruby
mikepack_ has joined #ruby
ldnunes has quit [Quit: Leaving]
nhhagen has quit [Ping timeout: 245 seconds]
MrZYX|off is now known as MrZYX
RaCx_ has joined #ruby
pel_daniel has quit [Ping timeout: 272 seconds]
RaCx has quit [Ping timeout: 264 seconds]
postmodern has joined #ruby
RaCx_ is now known as RaCx
rjhunter has quit [Ping timeout: 248 seconds]
mikepack has quit [Ping timeout: 248 seconds]
virtualize has quit [Ping timeout: 272 seconds]
tommyvyo has quit [Ping timeout: 265 seconds]
SHyx0rmZ has joined #ruby
alvaro_o has joined #ruby
Mars` has quit [Remote host closed the connection]
noob101 has joined #ruby
athst has quit [Quit: athst]
<noob101> Hello.
benwoody has joined #ruby
Mars` has joined #ruby
soulcake has quit [Ping timeout: 260 seconds]
phansch has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
mikepack_ has quit [Remote host closed the connection]
jblack has joined #ruby
<nobitanobi> noob101, hello
framling has quit [Quit: Lost terminal]
framling has joined #ruby
aryaching has quit [Ping timeout: 272 seconds]
framling has quit [Client Quit]
framling has joined #ruby
tommyvyo has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
mikepack has joined #ruby
Mars` has quit [Ping timeout: 245 seconds]
carraroj has quit [Quit: Konversation terminated!]
hiyosi has joined #ruby
roolo has joined #ruby
kayloos has joined #ruby
tommyvyo has quit [Client Quit]
jim87 has quit []
carraroj has joined #ruby
<noob101> Can someone help me find the solution to my code. My code---> https://eval.in/73608
<noob101> Everytime I put in "No", it begins to loop for some reason but I don't want it to loop when I put in "No"
<noob101> I want it to print something and end the program, any suggestions please?
<ShortWave> unstable: sadly, no rbenv on this system.
iamjarvo has joined #ruby
<apeiros> noob101: (user_input != "Yes") || (user_input != "No") is a tautology. it's always true.
smathieu has joined #ruby
<apeiros> assuming user_input is "Yes", it's != "No", so it's `false || true` => true
hiyosi has quit [Ping timeout: 245 seconds]
<apeiros> assuming it's not "Yes", the right side of the OR doesn't even matter and it's already true.
mothball has joined #ruby
sparrovv has joined #ruby
Czupa has quit [Ping timeout: 246 seconds]
soulcake has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
brtdv has joined #ruby
<noob101> apeiros, can you modify my code and show me the link please?
aspires has joined #ruby
rjhunter has joined #ruby
<nobitanobi> noob101, you will make yourself a favor if you try again, and ask if any doubts
<apeiros> noob101: I could. but I don't want to write your code for you.
mojjojo has joined #ruby
<noob101> apeiros, Where shall I imply the strand of code? (user_input != "Yes") || (user_input != "No")
<tobiasvl> noob101: by De Morgan's laws, (user_input != "Yes") || (user_input != "No") is equivalent to !(user_input == "Yes" && user_input == "No"), which is always true because user_input can't be both at the same time
burlyscudd has quit [Read error: Connection reset by peer]
rjhunter has quit [Read error: Connection reset by peer]
burlyscudd has joined #ruby
<tobiasvl> and on line 9, if user_input != ("Yes" || "No")
burlyscudd has quit [Changing host]
burlyscudd has joined #ruby
<tobiasvl> that's always true as well
<tobiasvl> because the string "Yes" is always true (in ruby, anything that's not false or nil is true)
benwoody has quit [Quit: benwoody]
<noob101> So should I declare "No" = true?
<tobiasvl> you're not checking if user_input is equal to the strings, you're checking if it's equal to the evaluation: does either "Yes" or "No" evaluate to true?
RaCx has joined #ruby
<tobiasvl> noob101: uh no that's impossible
<tobiasvl> you should read up on some basic programming principles
<canton7> note that line 9 isn't parsed the way you think it is. The ("Yes" || "No") is evaluated first, and results in "Yes". Then you end up with "if user_input != "Yes""
<apeiros> ("Yes" || "No") # => "Yes", hence `user_input != ("Yes" || "No")` is equivalent to `user_input != "Yes"`
<tobiasvl> canton7: oh yeah, sorry. that it is of course
benwoody has joined #ruby
phansch has quit [Remote host closed the connection]
jrhe has joined #ruby
xcess_denied has joined #ruby
mojjojo has quit [Quit: mojjojo]
<canton7> let's revisit line 7. You're currently saying "if the user input is not equal to Yes, OR it's not equal to No". Did you mean "if the user input is not equal to Yes, AND it's not equal to No"?
smathieu has quit [Remote host closed the connection]
<noob101> I'm confused
barratt has joined #ruby
<noob101> This is not helping me
<ShortWave> bundler isn't installed either.
smathieu has joined #ruby
jlast_ has joined #ruby
<ShortWave> oh well
barratt has quit [Client Quit]
<canton7> noob101, any idea what *would* help you?
<tobiasvl> noob101: what do you think line 7 means, and what would you like it to mean?
mojjojo has joined #ruby
ereslibre has joined #ruby
RealMarc has joined #ruby
freerobby has quit [Quit: Leaving.]
<noob101> I am thinking hold on please
jlast has quit [Ping timeout: 245 seconds]
<noob101> tobiasvl, I would like line 7 to basically go into the loop when user_input != "Yes" or "No"
liamkeily has joined #ruby
<tobiasvl> ok. now write that last thing into ruby code.
<tobiasvl> user_input != "Yes" or "No"
<noob101> what line would that go on if I have it on like 7 for looping?
<noob101> I don't get this.
smathieu has quit [Ping timeout: 272 seconds]
<tobiasvl> ok. what don't you get?
<canton7> tobiasvl, are you claiming that that's the valid ruby he should be using?
<tobiasvl> canton7: haha. no.
<noob101> Does that condition become an instance of my while loop on line 14?
<canton7> might be worth making that clear ;)
<noob101> What do you mean it goes on the last line?
Elhu has quit [Quit: Computer has gone to sleep.]
<tobiasvl> noob101: no, no. your line 7 is wrong. your logic there is fauly
<tobiasvl> faulty
<noob101> https://eval.in/73608 my code
<noob101> So what do you recommend
RaCx has quit [Quit: Computer has gone to sleep.]
<tobiasvl> what do you mean by user_input != "Yes" or "No"? first try to phrase it in english
<noob101> user_input != "Yes" or "No"?
<noob101> Oh ok, thank you
<tobiasvl> with as many words as possible
urbanmonk has joined #ruby
<tobiasvl> words like "either"
<canton7> ^^ that's not valid ruby. don't use it directly :P
Astral_ has joined #ruby
banister has joined #ruby
mikepack has quit [Remote host closed the connection]
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
parduse has quit [Read error: Connection reset by peer]
<tobiasvl> noob101: no no no.
Kricir has joined #ruby
<tobiasvl> canton7: (well actually it is)
<noob101> Huh?
Mars` has joined #ruby
<canton7> syntactically valid, but not logically :P anyway!
<tobiasvl> 21:38:12 <canton7> let's revisit line 7. You're currently saying "if the user input is not equal to Yes, OR it's not equal to No". Did you mean "if the user input is not equal to Yes, AND it's not equal to No"?
parduse has joined #ruby
Elhu has joined #ruby
<canton7> I'm going to start drawing venn diagrams if this doesn't sink in soon
<tobiasvl> noob101: IS that what you mean?
RaCx has joined #ruby
<noob101> tobiasvl, may we person PM?
<s2013> data = CSV.open(file).read.shift.flatten <-- does this make sense to read a csv?
<tobiasvl> noob101: no
<noob101> All of the entries of others are confusing me making me hard to track your message
<s2013> it works but i thikn it looks patched
Mars` has quit [Remote host closed the connection]
Astralum has quit [Ping timeout: 245 seconds]
<noob101> tabiasvl, It doesn't work.
rjhunter has joined #ruby
Mars` has joined #ruby
<noob101> When I type in No as my input. I still go in the loop.
<tobiasvl> noob101: yes. that's because your logic on line 7 is faulty.
<tobiasvl> you need to reconsider line 7.
<noob101> I put this in though --> user_input != "Yes" or "No"
<noob101> On line 7 after the if statement
<noob101> It still loops
robbyoconnor has joined #ruby
Reach has joined #ruby
rjhunter has quit [Read error: Connection reset by peer]
<noob101> I have 10 minutes, I hope I can achieve making my program run efficiently before I have to go.
rjhunter has joined #ruby
<tobiasvl> well who knows
gyre007 has quit [Remote host closed the connection]
<noob101> tobiasvl, any more suggestions? I just modified my code to this --> user_input != "Yes" or "No"
<noob101> It still is looping
<s2013> oops
bgy has joined #ruby
gyre007 has joined #ruby
<noob101> On line 7
reset has joined #ruby
<apeiros> s2013: you missed an "L"
<apeiros> (loops)
carraroj has quit [Quit: Konversation terminated!]
<canton7> noob101, don't do that. I said that wasn't what you wanted
<tobiasvl> noob101: i think you are looping too
RichardBaker has joined #ruby
<noob101> This is my code https://eval.in/73609
Mars` has quit [Ping timeout: 265 seconds]
<noob101> conton7 what did you say too many people are telling em different. Can you PM me please, I have like 5 minutes before I have to go.
<tobiasvl> listen, noob101. change your line 7 back to what you had first
iliketur_ has joined #ruby
carraroj has joined #ruby
<Reach> god
<tobiasvl> noob101: canton7 gave you the answer. in your old line 7 you were checking that user_input is not equal to "Yes", or that it's not equal to "No". don't you want to check that it's not equal to "Yes" AND THAT IT ALSO is not equal to "No"?
<Reach> i updated to osx 10.9 to update ruby
<Reach> this version is garbage
rjhunter has quit [Ping timeout: 246 seconds]
<noob101> tobiasvl yes
<noob101> What was his response?
<jle`> noob101: can you phrase what you want in that if statement in english?
<s2013> ha ha ha
<jle`> right now it is saying "if either 'not equal to yes' is true', or 'no' is true..."
kayloos has quit [Remote host closed the connection]
<noob101> jle [if the user doesn't put in a response as "Yes" or "No" then keep asking the person (go into a loop)] . Break the loop when they say either "Yes" or No"
drumusician has quit [Ping timeout: 245 seconds]
reset has quit [Ping timeout: 272 seconds]
<canton7> noob101, does this help? http://imgur.com/VDT2vwN,kEGYS43
bigoldrock1 has quit [Remote host closed the connection]
<s2013> k ruby csv is confusing me now
<s2013> when i put headers: true
<s2013> it gives me a csv::table object
<canton7> jle`, we've tried, we've really tried
geekbri has quit []
<noob101> conton7 should I put the and statement?
<noob101> I should put on line 7 of my code, if user_input != "Yes
<canton7> noob101, so at the moment you're using OR. you want AND
<noob101> " and "No
Reach has quit [Remote host closed the connection]
<tobiasvl> noob101: yes, ALMOST!
<tobiasvl> you're so close now
<noob101> canton7, ok. Thank you.
<canton7> so 'if user_input != "Yes" && user_input != "No"'
<noob101> Thanks tobiasvl too kind of.
<noob101> Lets see if the and statement works...
<canton7> no, not "kind of". he put a lot of time into this
<jle`> maybe he meant too kind of you
drag00n has quit [Ping timeout: 272 seconds]
<jle`> " tobiasvl, that was too kind of you."
<noob101> YESSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSss
<tobiasvl> hooray!
<noob101> It works, thanks canton7!!! Now I can do my homework feeling happy!!!!!!!!!!!!!!
<noob101> HIP HIP HORRAY!!!
<tobiasvl> let us know what grade you get
<canton7> no, line 9 is still bollocks
<canton7> *now
<canton7> it's not showing itself, because it's completely redundent anyway, but it'll reduce your marks
<noob101> No, it's not homework. I am just practicing my code by producing it because I am trying to practice my skills
<canton7> quite considerably
aspires has quit []
mansi has quit [Read error: Connection reset by peer]
<noob101> Also, i want to be a computer programmer so I am trying to get better at programming by making my own game.
<noob101> Thanks a lot guys!!!!!!!
<canton7> noob101, line 9
wald0 has joined #ruby
<jle`> :)
<canton7> noob101, it still needs fixing
mansi has joined #ruby
<noob101> canton7, my code runs great. I changed everything to and
<canton7> noob101, that doesn't mean there isn't something wrong with it :)
<jle`> noob101 has so much optimism it is contageous
<jle`> i too now want to get better at programming
tonni has joined #ruby
<canton7> I thought you were trying to become a programmer?
<canton7> that means not ignoring the things that are wrong with your code
whunt has quit [Ping timeout: 245 seconds]
Kricir has quit [Remote host closed the connection]
mansi has quit [Read error: Connection reset by peer]
pragmatism has quit [Remote host closed the connection]
<tobiasvl> jle`: believe in yourself!
zeade has joined #ruby
<jle`> tobiasvl: thank you you are too kind
iamjarvo has quit [Remote host closed the connection]
<noob101> I got the result I wanted it to show. See for yourself--> https://eval.in/73610
mansi has joined #ruby
<noob101> jle, is that bad?
<jle`> noob101: no that is good
<tobiasvl> very good noob101
<noob101> jle thanks I'm only 16 lol
<canton7> noob101, don't use 'and' and 'or'
<noob101> Thanks :)
iamjarvo has joined #ruby
<canton7> noob101, use '&&' and '||'
Elhu has quit [Quit: Computer has gone to sleep.]
<noob101> oh ok, thanks.
<noob101> I will change it.
momomomomo has quit [Quit: momomomomo]
<canton7> 'and' and 'or' behave ever so slightly differently, and it'll catch you out. they're not meant for putting in 'if' statements
freerobby has joined #ruby
<luckyrub_> noob101: imo, use soft tabs (2 spaces)
<jle`> hm i really don't know why your code is working
luckyrub_ is now known as luckyruby
mengu has joined #ruby
whunt has joined #ruby
momomomomo has joined #ruby
<noob101> My new code now, how is this https://eval.in/73611
<noob101> luckyrub_ what line?
<canton7> noob101, right! Now, lines 7 and 15 aren't needed
mikepack has joined #ruby
<jle`> oh i see now
mikepack has quit [Remote host closed the connection]
<jle`> it's because he used and and not &&
<noob101> canton7 ok and can you explain why?
<canton7> noob101, because it's duplicated by lines 9 and 12
stetho has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<canton7> (and to a degree by line 14)
nhhagen has joined #ruby
<jle`> wait no i still don't get it
freerobby1 has joined #ruby
<canton7> jle`, which bit?
<jle`> how is he ever leaving the loop
wald0 has quit [Ping timeout: 245 seconds]
<canton7> oh heck yeah, good point
Elhu has joined #ruby
<canton7> noob101, you're claiming that words, at the moment
<canton7> *works
freerobby has quit [Read error: Connection reset by peer]
zeade has quit [Ping timeout: 240 seconds]
dh64 has joined #ruby
<noob101> canton7, I can't remove lines 7 and 15
iamjarvo has quit [Ping timeout: 245 seconds]
<noob101> when I did, the program didn't work.
sng|food has joined #ruby
wald0 has joined #ruby
<canton7> noob101, oops, I mis-read. I'd done another bit of refactoring in my head
<noob101> It didn't work the way that it was suppose to, but good call.
<canton7> We will get rid of that if statement, but something else needs to be moved first
<noob101> Ok I have to go, I have homework. Then I will proceed to practice my programming skills.
<canton7> as jle` says, line 14 can't ever be true
<noob101> Thanks a lot guys. I have to go.
<jle`> that's the spirit.
<noob101> oooooh
matheuscaceres has joined #ruby
<noob101> Line 14 is and
<noob101> It's or
<noob101> Gotchya sorry, I love programming but I really have to go.
<noob101> Thanks a lot canton7 and jle
<noob101> Have a good day.
<canton7> noob101, food for thought: lines 7, 9, 14 all have exactly the same test on them
<canton7> you can get rid of two of them
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
relix has joined #ruby
weszlem has quit []
nhhagen has quit [Ping timeout: 252 seconds]
pleal has joined #ruby
<noob101> ah ha canton7 you're once correct
<canton7> and in particular, line 9 is *always* true, due to the other two
colonolGron has joined #ruby
<canton7> if you reach line 9, the user_input *has* to be something other than "Yes" or "No"
shaunbaker has joined #ruby
<noob101> I took out lines 9 and 14 and NOW I must sadly get to my homework. However it was a pleasure receiving everyone's help in here.
<noob101> thanks a lot catchya later
shaunbaker has quit [Remote host closed the connection]
<canton7> removing 14 was a bad move, as it won't loop any more ;)
xcess_denied has quit [Quit: Leaving...]
weszlem has joined #ruby
<jle`> it might help to make a flow chart
<jle`> of where you want your control to go
harrymoreno has joined #ruby
<noob101> how do I add people as a friend on this?
<noob101> there are a lot of helpful people that I would like to keep in touch with
iliketur_ has quit [Quit: zzzzz…..]
<canton7> sometimes your IRC client has some sort of 'friends' functionality
<canton7> but there's nothing built in
TaxmanBD has joined #ruby
<noob101> whats the command?
<canton7> command?
mwillhite has joined #ruby
<canton7> in XChat, it's Window -> Friends List. Your client will do something different
<mwillhite> hey all -- rspec question: If I have something like this
<mwillhite> HUB[:lookup_fault_groups]
<mwillhite> how can I double that?
<mwillhite> trying: expect(hub).to receive(:[]).with(:lookup_fault_groups)
tannerburson has quit [Quit: tannerburson]
<mwillhite> where hub is double(HUB)
<snkcld> when Time.now is subtracted from another Time, what are the units in?
<snkcld> in the result
reset has joined #ruby
<mwillhite> snkcld should be seconds…
mojjojo has quit [Quit: mojjojo]
mothball has quit [Ping timeout: 246 seconds]
Mars` has joined #ruby
<canton7> aye, seconds
skaflem has quit [Quit: Leaving]
Spami has joined #ruby
<snkcld> ah ok
<canton7> >> p [Time.now, (Time.now - 5)]
<eval-in> canton7 => [2013-11-26 22:30:29 +0100, 2013-11-26 22:30:24 +0100] ... (https://eval.in/73617)
bjeanes_ has joined #ruby
mojjojo has joined #ruby
bjeanes_ is now known as bjeanes
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
smathieu has joined #ruby
jgrevich has joined #ruby
shadoi has joined #ruby
hiyosi has joined #ruby
shadoi has left #ruby [#ruby]
mojjojo has quit [Client Quit]
ffranz has quit [Quit: Leaving]
athst has joined #ruby
swingha has quit [Quit: WeeChat 0.4.2]
iliketur_ has joined #ruby
rjhunter has joined #ruby
clevermatt has joined #ruby
hiyosi has quit [Ping timeout: 252 seconds]
aarkerio has joined #ruby
timonv has quit [Remote host closed the connection]
<aarkerio> hi! Can I do this: if @someHash.class == "Hash" ??
burlyscudd has quit [Ping timeout: 245 seconds]
<tobiasvl> no
<canton7> try it and see!
<canton7> >> {}.class == Hash
<eval-in> canton7 => true (https://eval.in/73631)
<canton7> >> {}.class == "Hash"
<eval-in> canton7 => false (https://eval.in/73632)
<canton7> the normal way is @someHash.is_a?(Hash)
<jle`> >> {}.class == eval("Hash")
<eval-in> jle` => true (https://eval.in/73633)
<jle`> do this
<jle`> and propser.
<canton7> >> {}.is_a?(Hash)
<eval-in> canton7 => true (https://eval.in/73634)
<canton7> and noooooo don't do that!
<jle`> yes do it especially in production settings.
pleal has quit [Remote host closed the connection]
smathieu has quit [Remote host closed the connection]
<jle`> (jk don't do it)
<canton7> you should write a book. what not to do in production ruby!
smathieu has joined #ruby
moax has joined #ruby
rjhunter has quit [Ping timeout: 272 seconds]
<jle`> number 1: use ruby
<jle`> i kid.
<aarkerio> why I should not?
Dreamer3 has joined #ruby
<jle`> why would you need to?
<jle`> are you receiving the class as a string?
<aarkerio> I get a REST call and I get or and array (id I found valid data ) or a hash (no data)
myappleguy has quit [Ping timeout: 265 seconds]
<aarkerio> id = if
<jle`> oh
<jle`> i meant don't do it in reference to eval("Hash")
Nogbit has quit [Ping timeout: 246 seconds]
<aarkerio> I need to display the message "No data found "
<jle`> eval("Hash") is just Hash so there isn't any reason to do it
zeade has joined #ruby
<jle`> >> eval("Hash")
<eval-in> jle` => Hash (https://eval.in/73635)
<jle`> just use Hash instead.
<aarkerio> ok, thanks both of you
iamjarvo has joined #ruby
Xaitec has joined #ruby
<bnagy> checking is_a? is pretty much always wrong
smathieu has quit [Ping timeout: 252 seconds]
gasbakid has quit [Read error: Connection reset by peer]
<canton7> that's a very broad statement
<aarkerio> I can get : [2,45,67,89] or {:error=>'No data'}
harrymoreno has quit [Quit: harrymoreno]
<aarkerio> if I get the array I'm sending emails
<mwillhite> responds_to is usually a nice way to go for that type of thing
<aarkerio> but I need to know what I got
<tobiasvl> QUACK QUACK
aspires has joined #ruby
asteros has joined #ruby
<canton7> mwillhite, if you're deserializing something (e.g. from JSON), it's pretty handy ;)
<bnagy> that's a pretty stupid api, as an aside
zeade has quit [Client Quit]
<bnagy> anyway, .include? :error
iamjarvo has quit [Remote host closed the connection]
<canton7> yeah, but you often have to roll with what you've got
iamjarvo has joined #ruby
<canton7> and both Array and Hash respond to [], but you can only pass symbols to one of them!
<mwillhite> good call, I like the .include? solution
<mwillhite> although it comes clouded with negativity
<mwillhite> that way you know you are getting an :error too
<mwillhite> if you ended up adding a :warn or something you could handle that as well
<aarkerio> so: @some_class.include?(:error) ??
<mwillhite> if anyone wants to take a quick look at my rspec question: https://gist.github.com/miwillhite/f0ea4ddb22d5969cbf44
<mwillhite> I'm sure I'm missing something dumb
magoo has quit [Ping timeout: 240 seconds]
rjhunter has joined #ruby
smathieu has joined #ruby
<bnagy> aarkerio: no, just response.include? :error
iamjarvo_ has joined #ruby
<mwillhite> nm, getting help
jprovazn has quit [Quit: Odcházím]
iamjarvo has quit [Read error: Connection reset by peer]
<bnagy> >> [[1,2,3], {error: "NO COFFEE"}].map {|e| e.include? :error}
<eval-in> bnagy => [false, true] (https://eval.in/73637)
<canton7> mwillhite, looks like you're set up the expectation, but it's not being fulfilled?
smathieu has quit [Read error: Connection reset by peer]
smathieu has joined #ruby
<mwillhite> looks like I'm stubbing HUB wrong
cleverma_ has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby
nhhagen has joined #ruby
rjhunter has quit [Ping timeout: 246 seconds]
Nogbit has joined #ruby
clevermatt has quit [Ping timeout: 252 seconds]
robbyoconnor has quit [Ping timeout: 245 seconds]
m8 has quit [Quit: Sto andando via]
dzhulk has quit [Quit: Leaving.]
krawchyk has quit []
jamesaanderson has joined #ruby
aryaching has joined #ruby
shredding has joined #ruby
Kricir has joined #ruby
gr33n7007h has quit [Remote host closed the connection]
weszlem has quit []
buscon has joined #ruby
mojjojo has joined #ruby
dzhulk has joined #ruby
magoo has joined #ruby
saarinen has quit [Quit: saarinen]
kiwi_10898 has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
gr33n7007h has joined #ruby
sng|food is now known as synergy_
drumusician has joined #ruby
kiwi_10898 has quit [Read error: Connection reset by peer]
lastk has quit [Remote host closed the connection]
sepp2k has joined #ruby
Takehiro has joined #ruby
shredding has quit [Quit: shredding]
Leighton has joined #ruby
saarinen has joined #ruby
weszlem has joined #ruby
harrymoreno has joined #ruby
szerated has joined #ruby
aryaching has quit [Ping timeout: 246 seconds]
Guest34103 has quit [Ping timeout: 248 seconds]
bcbrown19 has joined #ruby
ereslibre has quit [Ping timeout: 246 seconds]
kaldrenon has quit [Remote host closed the connection]
<unstable> ShortWave: You install rbenv yourself, locally.
iajrz_ has joined #ruby
<unstable> ShortWave: Did you type the command? Is git on the system?
mojjojo has quit [Quit: mojjojo]
kaldrenon has joined #ruby
iajrz_ is now known as iajrz
Reach has joined #ruby
<unstable> If git isn't on the system, you can just download a zip from github as well.
cgore has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
mengu has quit [Remote host closed the connection]
RaCx has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
buscon has quit [Ping timeout: 265 seconds]
monkegjinni has quit [Remote host closed the connection]
parduse has quit [Ping timeout: 265 seconds]
capicue has quit [Quit: Leaving...]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has joined #ruby
kaldrenon has quit [Ping timeout: 272 seconds]
Al_ has joined #ruby
mojjojo has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
<waxjar> is it bad style to have a mixin that maintains state (in the class it's included in)?
zigomir has quit [Ping timeout: 272 seconds]
swingha has joined #ruby
fschuindt has joined #ruby
bklane_ has joined #ruby
asteros has quit [Quit: asteros]
Tuxist has quit [Remote host closed the connection]
Al_ has quit [Read error: Connection reset by peer]
blumner has quit [Quit: My damn controlling terminal disappeared!]
Al_ has joined #ruby
Xaitec has quit [Remote host closed the connection]
<MrZYX> I'd say only if the class accesses the state of the mixin or the mixin the state of the class, but if there's no such direct interaction I don't think it'll fall on your foot
spider-mario has quit [Remote host closed the connection]
bklane has quit [Ping timeout: 246 seconds]
mansi has quit [Remote host closed the connection]
iamjarvo_ has quit [Remote host closed the connection]
parduse has joined #ruby
mansi has joined #ruby
dzhulk has quit [Quit: Leaving.]
mercwithamouth has quit [Ping timeout: 272 seconds]
iamjarvo has joined #ruby
capicue has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zeade has joined #ruby
asteros has joined #ruby
diosmiux has joined #ruby
Al_ has quit [Ping timeout: 240 seconds]
monkegjinni has joined #ruby
sepp2k has quit [Ping timeout: 265 seconds]
sepp2k has joined #ruby
mansi has quit [Ping timeout: 252 seconds]
blandflakes has quit [Quit: Page closed]
iamjarvo has quit [Ping timeout: 248 seconds]
mansi has joined #ruby
Xaitec has joined #ruby
ArchBeOS-work has quit [Quit: Leaving]
mercwithamouth has joined #ruby
weszlem has quit []
mojjojo has quit [Quit: mojjojo]
danshultz has quit [Remote host closed the connection]
chuk has joined #ruby
pskosinski_ has joined #ruby
pskosinski has quit [Disconnected by services]
danshultz has joined #ruby
pskosinski_ is now known as pskosinski
weszlem has joined #ruby
failshell has quit []
havenwood has quit [Read error: Connection reset by peer]
hiyosi has joined #ruby
Kricir has quit [Ping timeout: 246 seconds]
breakingthings has quit []
stringoO has quit [Quit: stringoO]
<Reach> is it possible to get ruby on old versions of osx
<Reach> i simply cannot use osx 10.9
<bnagy> for aesthetic reasons?
danshultz has quit [Ping timeout: 246 seconds]
blo has quit [Ping timeout: 240 seconds]
<Reach> swiping reasons
<Reach> they took out all the swipes that made it elegant and easy-to-use
momomomomo has quit [Quit: momomomomo]
nucatus has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
<bnagy> better touch tool brah
mojjojo has joined #ruby
emptyflask has joined #ruby
<Reach> i tried installing latest ruby on my snow leopard last night but it wont go
<bnagy> anyway, install xcode commandline tools or macports then just install like any unix. I probably recommend chruby.
<Reach> xcode requires like 10.7
hiyosi has quit [Ping timeout: 272 seconds]
<Reach> unless you're a developer and have the ability to download older versions of xcode
szerated has quit [Quit: Ex-Chat]
<bnagy> then just use macports
<Reach> i've never been so angry
<Reach> i wasted like 2 hours dling/installing it too
<Reach> apple ruined my day
<Reach> im going to get pizza
Monello has joined #ruby
<bnagy> APPLE MADE ME A SAD
<bnagy> I CANNOT COMPUTER UNTIL I PIZZA
jragon has quit [Ping timeout: 272 seconds]
amacgregor has joined #ruby
mojjojo has quit [Client Quit]
umadbor has joined #ruby
amacgregor_ has joined #ruby
kofno_ has quit [Ping timeout: 246 seconds]
sergicles has joined #ruby
amacgregor__ has quit [Ping timeout: 246 seconds]
<snkcld> anyone know how to autostart a job in sidekiq?
<bnagy> I don't know, probably Apple broke it
<emptyflask> Reach: use homebrew and install rbenv, ruby-build
brtdv has quit []
<emptyflask> snkcld: sidekiq should run jobs immediately, as long as the sidekiq worker is running
TigerWolf has joined #ruby
jerius has quit [Ping timeout: 245 seconds]
blo has joined #ruby
jonahR has quit [Quit: jonahR]
amacgregor has quit [Ping timeout: 246 seconds]
sepp2k has quit [Ping timeout: 264 seconds]
blaskovicz1 has quit [Quit: Leaving.]
hiyosi has joined #ruby
claymore has quit [Quit: night]
<snkcld> emptyflask: so as soon as the class is defined, and i execute sidekiq on the command line, it will execute perform on the clases?
blackmesa has quit [Remote host closed the connection]
moax has quit []
blackmesa has joined #ruby
carlyle has quit []
umadbor has quit []
matheuscaceres has quit [Quit: matheuscaceres]
<snkcld> emptyflask: i want to "bundle exec sidekiq", and have it run a default worker, which may or may not spawn other workers as necessary
Xaitec has quit [Ping timeout: 245 seconds]
<snkcld> it also complains WARN: object references itself
<emptyflask> well, you'll have to perform_async something first
mojjojo has joined #ruby
hollyw00d has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
RaCx has quit [Quit: Computer has gone to sleep.]
noob101 has quit [Ping timeout: 250 seconds]
mojjojo has quit [Client Quit]
<emptyflask> the worker class is just for defining a method, which you launch an instance of using XWorker.perform_async()
urbanmonk has quit [Ping timeout: 246 seconds]
<emptyflask> when you do that, a single job it inserted into the queue
rjhunter has joined #ruby
<snkcld> so where would i put that code, to run the first perform_async call?
<emptyflask> anywhere in your app
<snkcld> ohh, im kinda coming from a rails perspective, maybe thats why im confused
<emptyflask> sidekiq workers don't just run constantly
<snkcld> i should probably ask where i put initialization code in rails
mark_locklear has quit [Quit: Leaving]
cdelo has quit [Quit: Leaving]
blo has quit [Ping timeout: 240 seconds]
Monie has joined #ruby
<emptyflask> snkcld: what do you want it to do?
reset has quit [Quit: Leaving...]
TaxmanBD has quit [Ping timeout: 272 seconds]
<snkcld> well the job starts, and i want it to just puts "hello" and thats it, atleast for now
<snkcld> but it will eventually be consuming a rabbitmq queue, and updating a database as necessary
axl_ has left #ruby [#ruby]
Xaitec has joined #ruby
rjhunter has quit [Read error: Connection reset by peer]
<emptyflask> sidekiq might not be what you need
<snkcld> emptyflask: yea... i was starting to think that too
rjhunter has joined #ruby
ddd has joined #ruby
nanothief has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<snkcld> i just thought it would be a good fit because rabbitmq would spit out messages, and then i could just kick off sidekiq jobs as necessary
blo has joined #ruby
<nobitanobi> oh ruby I love u. thanks
Solnse has joined #ruby
<bnagy> there are pretty good asyncy rabbit libs for ruby
<emptyflask> sidekiq might be able to connect to rabbitmq in the future but it wouldn't really change anything. rabbitmq and redis are basically the same
interactionjaxsn has quit [Remote host closed the connection]
<bnagy> you can just have your rabbit client do the db
ddd has quit [Client Quit]
<bnagy> adding an extra worker layer seems weird
Xaitec has quit [Remote host closed the connection]
jcromart_ has joined #ruby
interactionjaxsn has joined #ruby
<Reach> bnagy: lol
fijimunkii has quit [Ping timeout: 246 seconds]
diosmiux has quit []
havenwood has joined #ruby
rjhunter has quit [Ping timeout: 240 seconds]
jdguzman has quit [Ping timeout: 264 seconds]
mojjojo has joined #ruby
mephux has quit [Ping timeout: 252 seconds]
mephux has joined #ruby
baordog has quit [Quit: ChatZilla 0.9.90.1 [Firefox 25.0.1/20131112160018]]
<emptyflask> snkcld: have you seen http://rubybunny.info/articles/getting_started.html ?
matheuscaceres has joined #ruby
interactionjaxsn has quit [Ping timeout: 252 seconds]
jcromart_ has quit [Ping timeout: 252 seconds]
<emptyflask> seems like it might meet your needs
saarinen has joined #ruby
<snkcld> emptyflask: ah... i didnt realize bunny had this much to it
<snkcld> yea, im going to try and leverage bunny as much as possibl
sailias has quit [Quit: Leaving.]
rjhunter has joined #ruby
osvico has joined #ruby
<nobitanobi> Say I have: @array.each do |el| .... end -- How could I remove an element of the array that I am iterating?
<bnagy> don't
<nobitanobi> blah, I knew you would say that
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nobitanobi> ok, I just needed to confirm ~
ldnunes has joined #ruby
<snkcld> im confused by this, though: Bunny::Queue#subscribe takes a block that will be called every time a message arrives. This will happen in a thread pool, so Bunny::Queue#subscribe does not block the thread that invokes it.
<emptyflask> @array.reject{|el| el.nil?}.each{|el| #do something with remainsing el's}
<snkcld> i would like for it to be blocked, i dont want the program to exit immediately
Jabberwock has quit [Quit: Leaving.]
jmeeuwen has quit [Ping timeout: 246 seconds]
clevermatt has joined #ruby
<bnagy> snkcld: there are a lot of good threadpool abstractions ( gems ), but the basic principle is just have a loop in your Thread and then #join it somewhere
blo has quit [Remote host closed the connection]
<bnagy> or an infinite loop in your main thread works, too
frustrum has joined #ruby
frustrum has quit [Client Quit]
rjhunter has quit [Ping timeout: 246 seconds]
Clooth has quit [Quit: Leaving...]
<snkcld> bnagy: ah, ok, i thought that was it. thanks
dgfdgf has joined #ruby
rjhunter has joined #ruby
ccooke has quit [Read error: Connection reset by peer]
cleverma_ has quit [Ping timeout: 272 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
nhhagen has quit [Remote host closed the connection]
`MArceLL` has quit [Ping timeout: 246 seconds]
rjhunter has quit [Read error: Connection reset by peer]
ddd has joined #ruby
hollyw00d has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rjhunter has joined #ruby
ddd is now known as Guest35716
clevermatt has quit [Remote host closed the connection]
nhhagen has joined #ruby
Guest35716 has quit [Client Quit]
ccooke has joined #ruby
mojjojo has quit [Quit: mojjojo]
roolo has quit [Quit: Leaving...]
magoo has quit [Ping timeout: 264 seconds]
ddd has joined #ruby
ddd has quit [Client Quit]
rjhunter has quit [Ping timeout: 245 seconds]
duggiefresh has quit [Remote host closed the connection]
ddd has joined #ruby
fgo has joined #ruby
ddd has quit [Client Quit]
jmeeuwen has joined #ruby
Jetchisel has joined #ruby
zz_scottstamp is now known as scottstamp
ddd has joined #ruby
kiwi_21799 has joined #ruby
kirun has quit [Quit: Client exiting]
kiwi_21799 has quit [Client Quit]
ddd has quit [Client Quit]
ereslibre has joined #ruby
rjhunter has joined #ruby
ddd has joined #ruby
ddd has quit [Client Quit]
asobrasil has left #ruby [#ruby]
emptyflask has quit []
jgrevich_ has joined #ruby
ddd has joined #ruby
vky has joined #ruby
jgrevich has quit [Ping timeout: 272 seconds]
jgrevich_ is now known as jgrevich
iliketur_ has quit [Quit: zzzzz…..]
enebo has quit [Quit: enebo]
rjhunter has quit [Read error: Connection reset by peer]
ddd has quit [Client Quit]
ddd has joined #ruby
mojjojo has joined #ruby
myappleguy has joined #ruby
burlyscudd has joined #ruby
rjhunter has joined #ruby
zxq9 has quit [Quit: Konversation terminated!]
drumusician has quit [Ping timeout: 245 seconds]
johnnyfuchs has quit [Quit: Leaving.]
Kricir has joined #ruby
i_s has joined #ruby
ddd has quit [Client Quit]
ddd has joined #ruby
freerobby1 has quit [Quit: Leaving.]
iliketur_ has joined #ruby
freerobby has joined #ruby
rjhunter has quit [Read error: Connection reset by peer]
chuk has quit [Quit: Leaving]
rjhunter has joined #ruby
Kricir has quit [Ping timeout: 265 seconds]
Monello has left #ruby [#ruby]
rjhunter has quit [Read error: Connection reset by peer]
jblack has quit [Quit: Lost terminal]
rhunter has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
banister has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
petey has quit [Remote host closed the connection]
Nogbit has quit [Read error: Operation timed out]
petey has joined #ruby
rhunter has quit [Read error: Connection reset by peer]
mephux has quit [Ping timeout: 265 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
mephux has joined #ruby
RichardBaker has joined #ruby
timonv has quit [Ping timeout: 248 seconds]
wald0 has quit [Read error: Operation timed out]
Linux_Extremist has joined #ruby
petey has quit [Ping timeout: 246 seconds]
mojjojo has quit [Quit: mojjojo]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
ValicekB has quit [Ping timeout: 264 seconds]
amacgregor has joined #ruby
gyre008 has joined #ruby
RichardBaker has quit [Client Quit]
s2013 has quit [Ping timeout: 264 seconds]
amacgregor_ has quit [Ping timeout: 245 seconds]
saarinen has quit [Quit: saarinen]
dtcrshr has quit [Remote host closed the connection]
bean has quit [Changing host]
bean has joined #ruby
RichardBaker has joined #ruby
Linux_Extremist has quit [Quit: Leaving]
gyre007 has quit [Ping timeout: 246 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
rjhunter has joined #ruby
jamesaanderson has joined #ruby
swingha has quit [Quit: WeeChat 0.4.2]
gyre008 has quit [Ping timeout: 240 seconds]
Takehiro has quit [Remote host closed the connection]
<ravster> Hey all
Takehiro has joined #ruby
moneydouble has joined #ruby
<ravster> I'm using the fabrication gem, and I'd like it to create objects with an attribute that has a value from a pre-approved list. So far I've been using sequences, but can't use them anymore.
Clooth has joined #ruby
Takehiro_ has joined #ruby
mansi has quit [Remote host closed the connection]
Takehiro has quit [Read error: Connection reset by peer]
mansi has joined #ruby
banghouse2 has quit [Remote host closed the connection]
banghouse2 has joined #ruby
mojjojo has joined #ruby
ereslibre has quit [Ping timeout: 264 seconds]
threesome has quit [Ping timeout: 246 seconds]
<bnagy> maybe try #rubyonrails
ValicekB has joined #ruby
Nogbit has joined #ruby
colonolGron has quit [Quit: leaving]
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
banister has joined #ruby
mansi has quit [Ping timeout: 245 seconds]
zoo-zed has joined #ruby
Kricir has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
reset has joined #ruby
Cheos has joined #ruby
mattp_ has quit [Read error: Operation timed out]
drag00n has joined #ruby
elux has quit [Quit: Bye!]
lfox has quit [Quit: ZZZzzz…]
blackmes1 has joined #ruby
froy has quit [Quit: kablam!]
nfk has quit [Quit: yawn]
tharindu has joined #ruby
amacgregor_ has joined #ruby
Deele has quit [Ping timeout: 260 seconds]
sparrovv has quit [Quit: sparrovv]
athst has quit [Quit: athst]
Clooth has quit [Ping timeout: 246 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
amacgregor has quit [Ping timeout: 246 seconds]
ddd has quit [Quit: leaving]
otherj has joined #ruby
ddd has joined #ruby
reset has quit [Ping timeout: 272 seconds]
<bricker`work> Could I use Struct, or something else, to clean this up? https://gist.github.com/bricker/7668454
athst has joined #ruby
Takehiro_ has quit [Remote host closed the connection]
ddd has quit [Client Quit]
Takehiro has joined #ruby
realDAB has joined #ruby
ddd has joined #ruby