apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
chrisd84 has quit []
iliketurtles has joined #ruby
havenwood has quit []
dangerousdave has quit [Ping timeout: 245 seconds]
Mon_Ouie has joined #ruby
lethjakm1 has joined #ruby
<Barrin6> I think I realized
<Barrin6> I'm going back to school
zz_tsykoduk is now known as tsykoduk
<Barrin6> going to sign up for some classes at a junior college, then apply for a masters program in computer science
adjo has quit [Ping timeout: 252 seconds]
SHyx0rmZ has joined #ruby
_honning_ has quit [Ping timeout: 245 seconds]
mengu has quit [Remote host closed the connection]
fgo has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
pragmatism has quit [Quit: Leaving...]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
falood has joined #ruby
aspires has quit [Quit: sudo making a sandwich]
tylersmith has joined #ruby
fgo has quit [Ping timeout: 252 seconds]
threesome has quit [Read error: Operation timed out]
end_guy has quit [Remote host closed the connection]
end_guy has joined #ruby
<lethjakm1> how do I make sure a decimal has a precision of two?
<lethjakm1> for exampl I have $1
<lethjakm1> and I want it to show up as $1.00
i_s has quit [Remote host closed the connection]
Grantlyk has quit [Remote host closed the connection]
intuxicated_ has joined #ruby
drag00n has quit [Ping timeout: 245 seconds]
tsykoduk is now known as zz_tsykoduk
brian____ has quit [Quit: brian____]
benlieb has joined #ruby
<MrZYX> lethjakm1: for money best is to store in cents or use BigDecimal
theoretick has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tylersmith has quit [Ping timeout: 252 seconds]
<MrZYX> and to convert for presentation only
jamblack has joined #ruby
platzhirsch has joined #ruby
<lethjakm1> MrZYX: I'm using a big decimal. I have 1 zero after it but not two?
<Morrolan> >> "%.2f" % 1.0
<eval-in> Morrolan => "1.00" (https://eval.in/69014)
<MrZYX> lethjakm1: make sure you understand the difference between the value and the (re)presentation of it
<MrZYX> 1.0, 1.00 and 0.1.0000 are different presentations of the _same_ value
udon has joined #ruby
<MrZYX> eh that last one has a dot too much
predator217 has joined #ruby
ravster has quit [Quit: Leaving.]
predator117 has quit [Ping timeout: 272 seconds]
platzhirsch has left #ruby [#ruby]
iliketurtles has quit [Ping timeout: 248 seconds]
Beoran_ has joined #ruby
Ox6abe has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ox6abe_ has joined #ruby
Beoran__ has quit [Ping timeout: 252 seconds]
nateberkopec has quit [Quit: Leaving...]
mikepack has quit [Remote host closed the connection]
Ox6abe__ has joined #ruby
echevemaster has joined #ruby
fluffheadsr is now known as bassclef
hiall has quit [Quit: hiall]
Ox6abe has quit [Ping timeout: 272 seconds]
InFlames has quit [Read error: Connection reset by peer]
Ox6abe has joined #ruby
atmosx has joined #ruby
chomskiii has quit [Read error: Connection reset by peer]
Ox6abe_ has quit [Ping timeout: 272 seconds]
lkba has joined #ruby
chomskiii has joined #ruby
<atmosx> hello
<atmosx> I'm using logger, to log into a file...
<atmosx> can I capture the output of a system command and redirect it into the logfile?
kcantwel has joined #ruby
Ox6abe__ has quit [Ping timeout: 245 seconds]
dubsteph has quit [Remote host closed the connection]
<atmosx> ah backticks might work
<bnagy> you can use `something` to capture output
pushpak has quit [Quit: Linkinus - http://linkinus.com]
<bnagy> so presumably logthing.some_log_meth `whatever`
Ox6abe has quit [Ping timeout: 268 seconds]
devyn has quit [Ping timeout: 240 seconds]
InFlames has joined #ruby
<atmosx> doesn't work like that
<atmosx> don't quite understand why though
<atmosx> the cmd works fine, but logger doesn't record the output
<MrZYX> stdout vs stderr maybe?
<atmosx> no no I did something stupid
vlad_starkov has joined #ruby
<atmosx> in the cmd I redirect the output to dev null
<atmosx> not works fine
awarner_ has quit [Remote host closed the connection]
<atmosx> Hmm I might re-write this to use the ruby rsync gem.
pel_daniel has left #ruby [#ruby]
capicue has joined #ruby
vlad_sta_ has joined #ruby
ghostjangles has joined #ruby
sepp2k has quit [Quit: Leaving.]
vlad_starkov has quit [Ping timeout: 248 seconds]
Ox6abe has joined #ruby
Mars` has joined #ruby
m8 has quit [Quit: Sto andando via]
capicue has quit [Ping timeout: 245 seconds]
Ox6abe_ has joined #ruby
wesside_ has quit [Quit: Computer has gone to sleep.]
Ox6abe__ has joined #ruby
nfk has quit [Quit: yawn]
Ox6abe has quit [Ping timeout: 252 seconds]
Ox6abe_ has quit [Ping timeout: 245 seconds]
atmosx has quit [Quit: Lost in trance]
yfeldblum has quit [Remote host closed the connection]
justsee has joined #ruby
duggiefresh has quit [Ping timeout: 245 seconds]
jjbohn has quit [Quit: Leaving...]
EvanR has joined #ruby
postmodern has quit [Quit: Leaving]
iliketurtles has joined #ruby
EvanR is now known as Guest34343
diegoviola has joined #ruby
robustus has quit [Ping timeout: 245 seconds]
Shidash has quit [Ping timeout: 264 seconds]
anderse has quit [Quit: anderse]
robustus has joined #ruby
jjbohn has joined #ruby
jibi has quit [Quit: .]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
simoz has joined #ruby
blotchy has joined #ruby
QKO has quit [Read error: Connection reset by peer]
QKO has joined #ruby
apeiros has quit [Ping timeout: 272 seconds]
dnyy has joined #ruby
myappleguy1 has joined #ruby
theoretick has joined #ruby
bricker`LA has quit [Read error: Connection reset by peer]
bricker`LA has joined #ruby
elux has quit [Quit: Leaving...]
zz_tsykoduk is now known as tsykoduk
Papierkorb has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
jjbohn has quit [Quit: Leaving...]
fgo has joined #ruby
simoz2 has joined #ruby
rjhunter has joined #ruby
<Papierkorb> Hello, which is the easiest-to-embed ruby implementation available for C/C++? MRI isn't re-entrant, so that's a no go. mruby was confusing at best last time I checked...
<lupine> mruby is really the one. rubinius might be an option
<Papierkorb> yeah currently trying to find the docs of rubinius on embedding
<lupine> never done it myself - I've been lucky :)
simoz has quit [Ping timeout: 248 seconds]
jjbohn has joined #ruby
neutrondude has joined #ruby
MrZYX is now known as MrZYX|off
<Papierkorb> yeah well I have to ;) currently ruby looks like the most elegant scripting language to me to write glue code and things, though sadly there's no ready to use lib for that yet
<neutrondude> i have ruby installed but it tells me that "gem" is not recognized as an internal or external command
jjbohn has quit [Client Quit]
<neutrondude> when i try to use gems (i.e.gem install rubygems-update)
<lupine> you probably didn't also install rubygems
<lupine> especially in OS packaging setups, the two get separated out
jjbohn has joined #ruby
tylersmith has joined #ruby
myappleguy1 has quit [Ping timeout: 265 seconds]
thekkid has quit [Ping timeout: 245 seconds]
i_s has joined #ruby
<neutrondude> i download the zip and ran setup.rb
<neutrondude> but the gem command still doesnt work
tsykoduk is now known as zz_tsykoduk
mlpinit has joined #ruby
tylersmith has quit [Ping timeout: 248 seconds]
jjbohn has quit [Ping timeout: 245 seconds]
kobain_ has joined #ruby
ghostjangles has quit [Read error: Connection reset by peer]
i_s has quit [Ping timeout: 272 seconds]
kobain has quit [Remote host closed the connection]
zz_karupanerura has quit [Ping timeout: 256 seconds]
gstamp has quit [Ping timeout: 256 seconds]
eshy has quit [Ping timeout: 256 seconds]
fixl has quit [Ping timeout: 256 seconds]
cibs has quit [Ping timeout: 256 seconds]
eshy has joined #ruby
gstamp has joined #ruby
cibs has joined #ruby
<bnagy> neutrondude: zip? setup.rb? Is this windows?
DrCode has quit [Ping timeout: 240 seconds]
zigomir has quit [Ping timeout: 245 seconds]
<bnagy> if so, use an up-to-date installer from RubyInstaller
zz_karupanerura has joined #ruby
aspires has joined #ruby
zz_karupanerura is now known as karupanerura
fixl has joined #ruby
zz_scottstamp is now known as scottstamp
DrCode has joined #ruby
peterdecroos has joined #ruby
marr has quit [Ping timeout: 248 seconds]
iliketurtles has quit [Ping timeout: 272 seconds]
aspires has quit [Client Quit]
bugsinlights has joined #ruby
fgo has quit [Remote host closed the connection]
Shidash has joined #ruby
fgo has joined #ruby
rjhunter has quit [Remote host closed the connection]
bugsinlights has quit [Read error: Connection reset by peer]
sergicles has quit [Quit: sergicles]
Vivekananda has joined #ruby
sergicles has joined #ruby
ggherdov has quit [Ping timeout: 252 seconds]
dreamchaser has quit [Quit: ZNC - http://znc.in]
ggherdov has joined #ruby
InFlames has quit [Quit: Leaving]
benlieb has quit [Quit: benlieb]
capicue has joined #ruby
scottstamp is now known as zz_scottstamp
nobitanobi has joined #ruby
<nobitanobi> whatup!
jb41 has quit [Ping timeout: 260 seconds]
jonshannow has quit [Quit: Leaving]
capicue has quit [Ping timeout: 240 seconds]
fierycatnet has joined #ruby
yacks has quit [Ping timeout: 272 seconds]
awarner has joined #ruby
baroquebobcat has quit [Ping timeout: 268 seconds]
DonRichie has quit [Ping timeout: 260 seconds]
DonRichie has joined #ruby
theoretick has quit [Quit: Textual IRC Client: www.textualapp.com]
Liquid-- has quit [Quit: Computer has gone to sleep.]
Shidash has quit [Read error: No route to host]
jamblack has quit [Quit: jamblack]
sambao21 has quit [Ping timeout: 245 seconds]
awarner has quit [Ping timeout: 252 seconds]
yacks has joined #ruby
jjbohn has joined #ruby
Clooth has joined #ruby
jamblack has joined #ruby
fgo has quit [Remote host closed the connection]
justsee has quit [Ping timeout: 245 seconds]
iliketurtles has joined #ruby
peterdecroos has quit [Remote host closed the connection]
udon has quit [Quit: Leaving]
peterdecroos has joined #ruby
jjbohn has quit [Ping timeout: 248 seconds]
benlieb has joined #ruby
capicue has joined #ruby
diegoviola has quit [Changing host]
diegoviola has joined #ruby
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
Lewix has joined #ruby
peterdecroos has quit [Ping timeout: 245 seconds]
peterdecroos has joined #ruby
daxroc has joined #ruby
mweshi has joined #ruby
mixel has quit [Quit: mixel]
ringaroses1 has quit [Ping timeout: 245 seconds]
delinquentme has joined #ruby
capicue has quit [Ping timeout: 245 seconds]
jjbohn has joined #ruby
zz_tsykoduk is now known as tsykoduk
sailias has joined #ruby
apeiros has joined #ruby
perow has quit [Remote host closed the connection]
jamblack has quit [Quit: jamblack]
mcdougall has joined #ruby
apeiros has quit [Ping timeout: 245 seconds]
sailias has quit [Ping timeout: 252 seconds]
rellin has quit [Quit: Nettalk6 - www.ntalk.de]
tylersmith has joined #ruby
nateberkopec has joined #ruby
daxroc has quit [Quit: Leaving.]
Clooth has quit [Quit: Leaving...]
tsykoduk is now known as zz_tsykoduk
ecksit has joined #ruby
tylersmith has quit [Ping timeout: 245 seconds]
wald0 has quit [Ping timeout: 252 seconds]
<ecksit> hey, i have a json object that i need to search for a value that contains "test-suite-db-*" but i can't quite get it right. i have tried using include? and a regex but to no avail. here is the json object and the parsed object - https://gist.github.com/jacobbednarz/a8392631f7edda936fe9
sambao21 has joined #ruby
burlyscudd has joined #ruby
Monie has joined #ruby
simoz2 has quit [Ping timeout: 245 seconds]
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
iliketurtles has quit [Ping timeout: 245 seconds]
<bnagy> what output do you want from that object?
<ecksit> the matched value would is desirable.
<bnagy> specifically, sorry.. MAGIC( response ) => what exactly?
burlyscudd has quit [Client Quit]
<ecksit> i am using it to check if 'a' name exists in that response and then would like to return the match if possible.
<bnagy> all of those names but one match that regex
<bnagy> so again, what exactly do you want your magic to return?
<bnagy> true? first match? all matches?
sailias has joined #ruby
<ecksit> true if it finds it.
<ecksit> let me grab the method i started for it.
<bnagy> and * is supposed to be a regex I assume right?
<ecksit> yeah
<ecksit> that obviously won't work :p
<bnagy> response.any? {|hsh| hsh['name] =~ /test-suite-db-*/}
<ecksit> pseudo code.
<ecksit> thanks, let me have a look at any?
<nobitanobi> bnagy, I was trying to do this: my_hash.any? { |k,v| k.include? "test-suite-db-" }
<lethjakm1> hey, I'd like to learn a lot of the cool details about ruby, does anyone have any books they'de recommend?
<nobitanobi> but apparently any, doesn't let me do |k,v|
justsee has joined #ruby
<bnagy> nobitanobi: the collection is of hashes, it's not a hash itself
<bnagy> you can't decompose a hash like that, only a two element array
<nobitanobi> oh ok
<nobitanobi> so what if you don't know the value of the "key" ?
mlpinit_ has joined #ruby
<bnagy> it's just confusing cause the hashes only have one entry
<nobitanobi> oh ok
<nobitanobi> I thought it was key => value
<bnagy> then ary.any? {|h| h.values.any? ...
<GoodTimes> Anyone know what voting gem is best? Acts_as_votable or thumbs_up?
<nobitanobi> oh gotcha :P
kcantwel has quit [Quit: Textual IRC Client: www.textualapp.com]
<nobitanobi> bnagy, I love when I go into the right direction. Every day better!
ewnd9 has joined #ruby
mlpinit has quit [Read error: Operation timed out]
fivethreeo has quit [Read error: Operation timed out]
<shevy> hehe
<ecksit> bnagy, https://gist.github.com/jacobbednarz/1f4b7e87590bb3217f12 is the method i was trying to use
vlad_starkov has joined #ruby
lethjakm1 is now known as lethjakman
heidi has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
vlad_sta_ has quit [Ping timeout: 245 seconds]
<bnagy> sample is a pretty weird method to use :)
Barrin6 has quit [Quit: I love my HydraIRC -> http://www.hydrairc.com <-]
<ecksit> the idea is that the response is from an API that returns all db names and i need to run another action against one of those existing database names
<bnagy> at random?
<ecksit> but, it can only use the test-suite-db's/
<ecksit> yep.
Asitha has joined #ruby
<bnagy> ok well you should at least make sure it's one that matches your regex first, no?
<ecksit> yep.
<bnagy> so target_db = response.select {...}.sample
<nobitanobi> lethjakman, it's a lil bit old, but I enjoyed a lot Rubyist 1.9 - The well grounded rubyist
<Asitha> Hi there
zeeraw has quit [Quit: Computer has gone to sleep.]
<Asitha> I'm learning Ruby at the moment and am trying to figure out what is causing an issue with the twitter api
<Asitha> I don't get why it keeps saying "unexpected token at ... "
<nobitanobi> Asitha, show the code that you think is causing the problem?
<Asitha> Sure
<Asitha> One second
<nobitanobi> oh I see
<Asitha> class TwitterController < ApplicationController
<Asitha> require 'twitter'
<Asitha> require 'json'
<Asitha> def index
<Asitha> attr_accessor :client
<nobitanobi> is JSON.parse
<Asitha> @client = client = Twitter::Streaming::Client.new do |config|
<Asitha> config.consumer_key = "8WdrxfwdnGr4r9eOq34aA"
<Asitha> config.consumer_secret = "grWj1l1HNXH04Hdehh2h4AGAkD9PMIOZkvpWja03Q"
<Asitha> config.access_token = "18619844-nk8aeHQjqvg7Jfv5EhSimbjk1Rgv9SBrY0s2bSIKm"
<Asitha> config.access_token_secret = "keKI1g0TbfDF8O0aYo2HuLBnFebgS4kYOhiWh7RiNof6h"
<Asitha> end
<Asitha> end
<Asitha> end
<Asitha> oops
<nobitanobi> oh shut hold on
<shevy> wow
<nobitanobi> and don't show those keys !
<Asitha> lol sorry about that
<nobitanobi> ~
<shevy> Asitha you attacked us with characters
<Asitha> well..
<Asitha> that was bad
<Asitha> xD
<bnagy> shevy: it's OK though cause we got free AWS account
<shevy> lol
<Asitha> haha this is all for testing/learning
* bnagy goes to spin up a few xlarge instances
<Asitha> So I'll be getting rid of it all anyway
thesheff17 has quit [Ping timeout: 240 seconds]
mjs2600 has joined #ruby
<nobitanobi> Asitha, I think you are trying to JSON.parse a string
<nobitanobi> and is not valid
<Asitha> I tried removing the json.parse too
<nobitanobi> <%= JSON.parse(tweet.text) %> this line
mmitchell has joined #ruby
thesheff17 has joined #ruby
<nobitanobi> You are getting a JSON::ParserError -- if you removed the JSON.parse, that error can't be there :P
mjs2600 has quit [Remote host closed the connection]
mmitchell has quit [Remote host closed the connection]
<Asitha> One second while it reloads... :p
<nobitanobi> Asitha, you don't have a local environment?
<shevy> does the error message not say which line the error "unexpected token" happens at?
<Asitha> I'm using windows
<nobitanobi> shevy, is here
<Asitha> and it's a nightmare to work with ruby on it
<nobitanobi> Asitha, yup... I would suggest doing a dual boot or a virtual machine :P
<Asitha> I'm looking at just installing a VM
mjs2600 has joined #ruby
<shevy> that doesn't load for me
<Asitha> yeah
<Asitha> when I remove json.parse
<nobitanobi> shevy, wait :P
<Asitha> it doesn't load
<nobitanobi> hum
<shevy> and when you add it, what is the exact error?
<Asitha> sec
<Asitha> let me readd
<shevy> I think that returns a hash into your ERB there
<Asitha> refresh now
Hanmac1 has joined #ruby
<shevy> who is giving you this error message?
<shevy> that is not a ruby error message
<shevy> "757: unexpected token at 'Note to self: NEVER put coffee between your legs to hold while in the car. You will suffer :/'"
<ecksit> thanks bnagy - ended up using https://gist.github.com/jacobbednarz/36dd064884e1ed466353
<Asitha> Well I assumed it was Ruby this whole time that was giving me that error
<shevy> no
<shevy> this error message must be from some app
<Asitha> If it's not ruby, then it would be from the twitter gem
<bnagy> ecksit: you don't need to assign it to a var
<shevy> Ruby uses short, more precise error messages
<shevy> this error message is totally useless if you ask me
<shevy> ok lemme search the twitter gem
<ecksit> yes of course :p. took your example and didn't clean up.
zeeraw has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
cricri has left #ruby ["quassel-irc"]
<shevy> Asitha hmm
<shevy> the twitter gem does not have this error message
<nobitanobi> shevy, is JSON::Parse
<nobitanobi> he is trying to parse a string
duggiefresh has joined #ruby
petey has quit [Remote host closed the connection]
<nobitanobi> I believe
<nobitanobi> not valid JSON
<Asitha> then yeah
<Asitha> the JSON gem
<shevy> from "gem install json"?
<Asitha> yeah
<nobitanobi> see u guys later
<shevy> Fetching: json-1.8.1.gem
petey has joined #ruby
<Asitha> If you refresh now
petey has quit [Remote host closed the connection]
<shevy> I cant find the error message in this gem either
<Asitha> I removed the json.parse
<Asitha> and it's still the same thing
ewnd9 has quit [Ping timeout: 272 seconds]
<shevy> Asitha and if you try to output this as string?
<shevy> can you test something
<shevy> can you simply add {} there
<shevy> <%= tweet.text %>
iliketurtles has joined #ruby
<shevy> <%= {} %>
<Asitha> same thing happens
<shevy> huh
<shevy> how is that error possible
<shevy> but I think I know why
<shevy> unexpected token at '{"delete":{"status":{"id":395634523792494593,"user_id":447538400,"id_str":"395634523792494593","user_id_str":"447538400"}}}'
<shevy> it does not work in my .rb file either
<shevy> hash.rb:5: syntax error, unexpected ':', expecting tASSOC
<Asitha> So more than likely the data the twitter gem is returning is at fault?
<shevy> well
<shevy> whatever it returns
nobitanobi has quit [Ping timeout: 245 seconds]
<shevy> it is not valid ruby
<shevy> so it can not work
<shevy> >> { "id":395634523792494593 }
<eval-in> shevy => /tmp/execpad-0ccb1944108e/source-0ccb1944108e:2: syntax error, unexpected ':', expecting => ... (https://eval.in/69045)
<shevy> see Asitha
<shevy> that can never work
<shevy> this is pure json?
<shevy> because it is 100% not ruby
<shevy> >> { id: 395634523792494593 }
<eval-in> shevy => {:id=>395634523792494593} (https://eval.in/69046)
<shevy> this would be valid ruby
<shevy> >> { :id => 395634523792494593 }
<eval-in> shevy => {:id=>395634523792494593} (https://eval.in/69047)
<shevy> this also
<shevy> >> { id:395634523792494593 }
<eval-in> shevy => {:id=>395634523792494593} (https://eval.in/69048)
<shevy> this too
<shevy> but not "id":
<Asitha> hmmm
<shevy> Asitha, if I have to make a guess, I think you try to treat json data as pure ruby
lukec has quit [Quit: lukec]
<Asitha> meaning?
<shevy> meaning you are doing a mistake
mjs2600 has quit [Remote host closed the connection]
<shevy> >> x = JSON.parse '{ "id":395634523792494593 }'; x.class
<eval-in> shevy => uninitialized constant JSON (NameError) ... (https://eval.in/69053)
<shevy> grrr
<shevy> require 'json' before that, then it works
mmcdaris has quit [Remote host closed the connection]
<Asitha> I think the method I'm using is still an experimental one
<Asitha> I think I got it to work using their REST version
ghostjangles has joined #ruby
simoz has joined #ruby
<Asitha> thanks for your help shevy
<Asitha> Appreciate it :D
<shevy> it works now?
zz_tsykoduk is now known as tsykoduk
sergicles has quit [Quit: sergicles]
<Asitha> yeah
<shevy> cool
<Asitha> I used the REST configuration instead of the Streaming
InFlames has joined #ruby
<Asitha> client = Twitter::REST::Client.new do |config| instead of client = Twitter::Streaming::Client.new do |config|
virtualize has joined #ruby
baroquebobcat has joined #ruby
<Asitha> It's annoying because I had done this before when I was running all this on windows
<Asitha> and it didn't work..
<Asitha> So that was the last straw... Ubuntu VM it is
<shevy> lol
ewnd9 has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
<Asitha> Any suggestions on a VM software?
xk_id has joined #ruby
<shevy> not from me, perhaps someone else. I am a VM noob
<Asitha> It's been years since I've used on
<Asitha> Think it was VMWare last time
brian___ has joined #ruby
aspires has joined #ruby
scarolan has quit [Remote host closed the connection]
<bnagy> virtualbox is usable now
tylersmith has joined #ruby
<bnagy> vmware is good but unfree
<Asitha> yeah I just noticed :p
<bnagy> you're on windows yeah?
<Asitha> yah
<bnagy> those are pretty much your options then afaik
<Asitha> cool
<Asitha> I guess it's expected that VM costs since I used it while working at Microsoft
petey has joined #ruby
aspires has quit [Client Quit]
mjs2600 has joined #ruby
SnatchFrigate has quit []
tsykoduk is now known as zz_tsykoduk
Asitha has quit [Read error: Connection reset by peer]
<shevy> hmm well
Asitha has joined #ruby
<shevy> what was the name of this windows thing where you can run a linux distribution on it?
<Asitha> virtualbox
tylersmith has quit [Ping timeout: 252 seconds]
<shevy> hmm no
<shevy> I am trying to remember what it was
<Asitha> VMWare?
<shevy> related to msys and cygwin... but had another name
<shevy> no no no :)
zoee has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<blotchy> shevy: i remember reading abotu that, but you got windows restrictions on filenames i think
<blotchy> not so attractive
endash has quit [Quit: endash]
eka has joined #ruby
iliketurtles has quit [Ping timeout: 265 seconds]
<shevy> hmm found it
<shevy> Asitha, what about that? http://www.colinux.org/
rickruby has quit [Remote host closed the connection]
<Asitha> Doesn't look like it has been updated in awhile?
radic has quit [Disconnected by services]
radic_ has joined #ruby
rickruby has joined #ruby
kemist has quit [Quit: Textual IRC Client: www.textualapp.com]
snuffeluffegus has quit [Quit: Leaving]
macmartine has joined #ruby
Ox6abe__ has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
Ox6abe has joined #ruby
<shevy> yeah :(
<shevy> the fate of many cool projects...
Ox6abe_ has joined #ruby
rickruby has quit [Ping timeout: 268 seconds]
mjs2600 has quit [Remote host closed the connection]
DonRichie has quit [Quit: Verlassend]
delinquentme has quit [Ping timeout: 245 seconds]
peterdec_ has joined #ruby
Ox6abe__ has joined #ruby
Ox6abe___ has joined #ruby
vlad_sta_ has joined #ruby
Ox6abe has quit [Ping timeout: 245 seconds]
peterdecroos has quit [Ping timeout: 272 seconds]
Ox6ab____ has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.2]
Ox6abe_ has quit [Ping timeout: 272 seconds]
jlast_ has joined #ruby
Ox6abe_ has joined #ruby
vlad_starkov has quit [Ping timeout: 272 seconds]
eka has quit [Quit: Computer has gone to sleep.]
Ox6abe__ has quit [Ping timeout: 265 seconds]
jlast has quit [Ping timeout: 272 seconds]
Ox6abe___ has quit [Ping timeout: 245 seconds]
dreamchaser has joined #ruby
dreamchaser has joined #ruby
dreamchaser has quit [Changing host]
Ox6abe__ has joined #ruby
huttan has quit [Ping timeout: 252 seconds]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
maletor has joined #ruby
ananthakumaran has joined #ruby
Asitha has quit [Ping timeout: 272 seconds]
jonathanwallace has joined #ruby
Ox6abe___ has joined #ruby
Ox6ab____ has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
maletor has quit [Client Quit]
Ox6abe_ has quit [Ping timeout: 272 seconds]
Ox6abe__ has quit [Ping timeout: 260 seconds]
vlad_sta_ has quit [Ping timeout: 272 seconds]
Ox6abe___ has quit [Ping timeout: 265 seconds]
benlieb has quit [Quit: benlieb]
benlieb has joined #ruby
baroquebobcat has joined #ruby
baroquebobcat has quit [Client Quit]
Spami has quit [Quit: This computer has gone to sleep]
delinquentme has joined #ruby
zoee has quit [Quit: This computer has gone to sleep]
nobitanobi has joined #ruby
agent_white has quit [Quit: bbl]
simoz has quit [Ping timeout: 265 seconds]
n4dir has joined #ruby
<nobitanobi> hihi
iliketurtles has joined #ruby
n4dir has left #ruby [#ruby]
kcombs has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
dnyy has quit []
ananthakumaran has quit [Quit: Leaving.]
aapzak has quit [Ping timeout: 272 seconds]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
jjbohn has quit [Quit: Leaving...]
aapzak has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
javos has quit [Quit: Leaving...]
macmartine has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
mengu has joined #ruby
macmartine has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
vlad_starkov has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
delinquentme has quit [Quit: Leaving]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
baroquebobcat has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
<shevy> nobitanobi will you expand your list of gem projects? :D
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
<nobitanobi> shevy, I am currently working pretty hard on my own project
<nobitanobi> :P
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
huttan has joined #ruby
ananthakumaran has joined #ruby
phinfone_ has quit [Quit: exitiing]
amacgregor_ has joined #ruby
kaldrenon has joined #ruby
mengu has quit [Ping timeout: 272 seconds]
<nobitanobi> shevy, what about u? What do u work on?
amacgregor has quit [Ping timeout: 245 seconds]
tylersmith has joined #ruby
<shevy> nobitanobi the biggest obstacle right now is rewriting some older projects
<nobitanobi> :)
<shevy> apparently the rewrite should be better than how the scripts were before
<shevy> and somehow those rewrites take too much time away :(
cooldman224 has joined #ruby
<nobitanobi> I hear you...
<nobitanobi> shevy, how do you approach testing?
<nobitanobi> do you do BDD/TDD or..?
<shevy> nobitanobi real men don't test
<SirFunk> Is there any simple way with keywoard arguments to use the default value on nil?
kaldrenon has quit [Ping timeout: 245 seconds]
<nobitanobi> shevy, lol
huttan has quit [Ping timeout: 268 seconds]
<nobitanobi> SirFunk, what do you mean?
<shevy> nobitanobi most of the time, I have one class per .rb file, then I write my tests after "if __FILE__ == $PROGRAM_NAME"
<nobitanobi> ok
<shevy> for systematic testing of all .rb files I have not yet found a way that is appealing to me much at all
<SirFunk> for example def foo(name: 'bar') {puts name} .. if i do something like foo(params[:name]) ... If params[:name] doesn't exist.. then it puts nil i want it to puts bar
intuxicated_ has quit [Ping timeout: 272 seconds]
tylersmith has quit [Ping timeout: 252 seconds]
<nobitanobi> if params[:name].nil? puts bar?
<nobitanobi> or... I might not be following what you are trying to do
<shevy> where from does the block know that the name is name?
<SirFunk> nobitanobi: well, yes that would fix the problem in that specific situation. However when passing params (in rails) you could potentially end up with lots of nils. I'd rather not have to check in every function
<shevy> btw these are not keyword arguments or? that is a hash isn't it?
<nobitanobi> SirFunk, I see...
<SirFunk> shevy: they are keyword args
<SirFunk> err.. i called it wrong above, it would be foo(name: params[:name])
<SirFunk> but you get the idea
iliketurtles has quit [Ping timeout: 240 seconds]
n4dir1 has joined #ruby
n4dir1 has left #ruby [#ruby]
IceDragon has quit [Quit: Space~~~]
robbyoconnor has quit [Excess Flood]
devyn has joined #ruby
macmartine has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
<newton> is there a way, that if I have `r = /np (\S+)/` defined somewhere, I can easily have some code change it to /\\.np (\S+)/? (so kind of inject \\. to the front of the regex)?
macmartine has joined #ruby
myappleguy1 has joined #ruby
<bnagy> newton: does /\\.#{old_regex}/ work?
fierycatnet has quit []
pagios has quit [Excess Flood]
mojjojo has quit [Quit: mojjojo]
sevenseacat has joined #ruby
mlpinit_ has quit [Remote host closed the connection]
pagioss has joined #ruby
mlpinit has joined #ruby
osvico has quit [Ping timeout: 268 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mlpinit has quit [Ping timeout: 265 seconds]
macmartine has quit [Remote host closed the connection]
dcope has quit [Changing host]
dcope has joined #ruby
Ox6abe has joined #ruby
petey has quit [Remote host closed the connection]
<newton> bnagy: I guess that should have been obvious :P I think it would work - but testing, I think ruby adding the (?-mix:pattern) is messing stuff up
lukec has joined #ruby
neutrondude has quit []
Ox6abe has quit [Ping timeout: 252 seconds]
macmartine has joined #ruby
cooldman224 has quit [Remote host closed the connection]
decoponio has joined #ruby
nisstyre has quit [Quit: Leaving]
crucify_me has joined #ruby
<shevy> dumdedum
<shevy> code code code...
yacks has quit [Remote host closed the connection]
iliketurtles has joined #ruby
aspires has joined #ruby
ghostjangles has quit [Ping timeout: 245 seconds]
i_s has joined #ruby
bugsinlights has joined #ruby
peterdecroos has joined #ruby
Mars` has quit [Remote host closed the connection]
Mars` has joined #ruby
duggiefresh has quit [Ping timeout: 268 seconds]
peterdec_ has quit [Ping timeout: 252 seconds]
zz_tsykoduk is now known as tsykoduk
jjbohn has joined #ruby
Guest34343 has quit [Ping timeout: 252 seconds]
Mars` has quit [Ping timeout: 240 seconds]
GoodTimes has quit []
sayan has joined #ruby
jjbohn has quit [Ping timeout: 245 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
vlad_starkov has quit [Read error: Connection reset by peer]
crucify_me has quit [Remote host closed the connection]
peterdecroos has quit [Remote host closed the connection]
peterdecroos has joined #ruby
RichardBaker has joined #ruby
<nobitanobi> night guys!
nobitanobi has quit [Quit: Leaving]
tylersmith has joined #ruby
tsykoduk is now known as zz_tsykoduk
i_s has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 252 seconds]
peterdecroos has quit [Ping timeout: 252 seconds]
tylersmith has quit [Ping timeout: 240 seconds]
arietis has joined #ruby
sailias has joined #ruby
iliketurtles has quit [Ping timeout: 252 seconds]
EvanR_ has joined #ruby
Seich has joined #ruby
<ecksit> anyone know what the irc channel is for ruby's vcr?
dross has quit [Ping timeout: 246 seconds]
dross has joined #ruby
<sevenseacat> it doesnt have one.
sailias has quit [Ping timeout: 268 seconds]
Lewix has quit [Remote host closed the connection]
simoz has joined #ruby
krz has joined #ruby
<ecksit> that's annoying :(
<sevenseacat> why? ask in any ruby related roon
<sevenseacat> room
funburn has joined #ruby
thesheff17 has quit [Ping timeout: 245 seconds]
<ecksit> ok, so, i have a helper method that contains an API request to fetch all database names, which lives in my spec helper but outside of the vcr block.
<ecksit> (because i need to dymanically pass in variables to the response as the content is dynamic)
<ecksit> but i keep getting errors about the request method not throwing errors in vcr
crucify_me has joined #ruby
crucify_me has quit [Remote host closed the connection]
<existensil> ecksit: sounds like you either need to stub out that API request, or have VCR record it, or have VCR ignore it
<existensil> if you want to do that last one, see: https://relishapp.com/vcr/vcr/v/2-7-0/docs/configuration/ignore-request
<ecksit> i looked at ignoring it but i also use that endpoint to ensure it is delivered using json, returns a 200, etc.
<existensil> huh? ignoring it should just allow the API request to happen as normal. not sure what the issue is.
funburn has quit [Quit: funburn]
<existensil> might be more clear if you provided some more info about what errors exactly you are getting and what you are trying to accomplish with your test. your VCR config and test itself might also be useful.
BizarreCake has joined #ruby
ehaliewicz has joined #ruby
krz has quit [Read error: Connection reset by peer]
DropsOfSerenity has joined #ruby
krz has joined #ruby
krz has quit [Changing host]
krz has joined #ruby
rickruby has joined #ruby
Mars` has joined #ruby
rickruby_ has joined #ruby
mlpinit has joined #ruby
funburn has joined #ruby
dhruvasagar has quit [Ping timeout: 245 seconds]
rickruby has quit [Ping timeout: 248 seconds]
mlpinit has quit [Ping timeout: 272 seconds]
ecksit has quit [Quit: Laters.]
gr33n7007h has quit [Read error: No route to host]
duggiefresh has joined #ruby
petey has joined #ruby
vlad_starkov has joined #ruby
iliketurtles has joined #ruby
fridim_ has joined #ruby
sevenseacat has quit [Ping timeout: 248 seconds]
sergicles has joined #ruby
fivethreeo has joined #ruby
sayan has quit [Ping timeout: 272 seconds]
wmoxam has quit [Remote host closed the connection]
krz has quit [Quit: krz]
krz has joined #ruby
jwang has quit [Quit: Leaving]
krz has quit [Client Quit]
krz has joined #ruby
krz has quit [Client Quit]
thelorax123 has quit [Remote host closed the connection]
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
aspiers has quit [Ping timeout: 272 seconds]
krz has joined #ruby
macmartine has quit [Remote host closed the connection]
thelorax123 has joined #ruby
huttan has joined #ruby
DropsOfSerenity has quit [Quit: Peace.]
petey has quit []
huttan has quit [Ping timeout: 252 seconds]
jjbohn has joined #ruby
zz_tsykoduk is now known as tsykoduk
banisterfiend has quit [Quit: Computer has gone to sleep.]
dhruvasagar has joined #ruby
<shevy> what is this in ruby?
<shevy> sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g"
<shevy> it removes some characters, ansii escape sequences apparently
<shevy> \x1B specifially I have no idea
Shidash has joined #ruby
platypine has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
platypine has joined #ruby
phansch has joined #ruby
joshi has joined #ruby
jjbohn has quit [Ping timeout: 260 seconds]
platypine has quit [Ping timeout: 245 seconds]
dhruvasagar has quit [Ping timeout: 264 seconds]
dross has quit [Ping timeout: 272 seconds]
dross has joined #ruby
xk_id has quit [Quit:
krz has quit [Quit: krz]
zeeraw has quit [Quit: Computer has gone to sleep.]
tsykoduk is now known as zz_tsykoduk
i_s has joined #ruby
aspires has quit [Quit: sudo making a sandwich]
tesuji has joined #ruby
kobain_ has quit [Ping timeout: 252 seconds]
aspires has joined #ruby
i_s has quit [Ping timeout: 264 seconds]
banghouse has quit [Remote host closed the connection]
hakunin has quit []
justsee has quit [Quit: leaving]
justsee has joined #ruby
justsee has quit [Client Quit]
vlad_starkov has quit [Read error: Connection reset by peer]
iliketurtles has quit [Ping timeout: 240 seconds]
kobain has joined #ruby
caesura has quit [Quit: i'm no simpleton]
dnyy has joined #ruby
EvanR_ has quit [Ping timeout: 264 seconds]
echevemaster has quit [Quit: Leaving]
krz has joined #ruby
heidi has quit [Quit: Leaving.]
kobain has quit [Ping timeout: 245 seconds]
myappleguy1 has quit [Ping timeout: 245 seconds]
xk_id has joined #ruby
Seich has quit [Ping timeout: 272 seconds]
sayan has joined #ruby
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
peterdecroos has joined #ruby
Seich has joined #ruby
aspires has quit [Quit: sudo making a sandwich]
DanKnox_away is now known as DanKnox
aspires has joined #ruby
dhruvasagar has joined #ruby
Solnse has joined #ruby
peterdecroos has quit [Ping timeout: 268 seconds]
duggiefresh has quit [Ping timeout: 260 seconds]
robert___ is now known as robert_
bugsinlights has quit [Remote host closed the connection]
s3itz has joined #ruby
zipper has joined #ruby
baroquebobcat has joined #ruby
fntzr has joined #ruby
nisstyre has joined #ruby
sevenseacat has joined #ruby
Soda has joined #ruby
jlast_ has quit [Remote host closed the connection]
zipper has quit [Ping timeout: 252 seconds]
zipper has joined #ruby
vlad_starkov has joined #ruby
brian___ has quit [Quit: brian___]
iliketurtles has joined #ruby
justsee has joined #ruby
dangerousdave has joined #ruby
zipper has quit [Ping timeout: 252 seconds]
zipper has joined #ruby
jkhwan has joined #ruby
jkhwan has quit [Remote host closed the connection]
bassclef has quit [Ping timeout: 265 seconds]
jkhwan has joined #ruby
mweshi has quit [Quit: mweshi]
23LAAI7FC has joined #ruby
jjbohn has joined #ruby
zipper has quit [Ping timeout: 248 seconds]
21WABR5WA has joined #ruby
zipper has joined #ruby
zipper is now known as Guest11357
wallerdev has quit [Quit: wallerdev]
jkhwan has quit [Ping timeout: 272 seconds]
jjbohn has quit [Ping timeout: 265 seconds]
<RubyPanther> shevy: man 7 regex
ananthakumaran has quit [Quit: Leaving.]
zipper_ has joined #ruby
Guest11357 has quit [Ping timeout: 248 seconds]
<RubyPanther> shevy: sorry, let me correct that, according to sed it is man perlre
tylersmith has joined #ruby
zipper_ is now known as urbanslug
urbanslug is now known as Guest51543
baroquebobcat has quit [Quit: baroquebobcat]
<RubyPanther> shevy: .gsub /\0x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]/,''
<RubyPanther> I think
mcdougall has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 272 seconds]
Guest51543 has quit [Quit: leaving]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
zipper has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
tylersmith has quit [Ping timeout: 264 seconds]
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
cazenave has joined #ruby
agent_white has joined #ruby
<shevy> hmm
<shevy> [one or two numbers; one or two numbers]
<shevy> I still don't get the \0x1B
<shevy> in irb this is the same as "x1B"?
iliketurtles has quit [Ping timeout: 252 seconds]
d45h has joined #ruby
Solnse has quit [Quit: Leaving.]
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
xk_id has quit [Quit:
lethjakman has quit [Quit: WeeChat 0.4.0]
Aryasam has joined #ruby
peterdecroos has joined #ruby
JohnBat26 has joined #ruby
osvico has joined #ruby
JohnBat26 has quit [Client Quit]
JohnBat26 has joined #ruby
sophomorical has quit [Remote host closed the connection]
Dwarf has quit [Remote host closed the connection]
holderbaum has joined #ruby
eka has joined #ruby
Dwarf has joined #ruby
osvico has quit [Ping timeout: 268 seconds]
agent_white has quit [Read error: Connection reset by peer]
sophomorical has joined #ruby
Mars` has quit [Remote host closed the connection]
eka has quit [Quit: Computer has gone to sleep.]
Aryasam has quit [Ping timeout: 272 seconds]
21WABR5WA has quit [Read error: Connection reset by peer]
23LAAI7FC has quit [Read error: Connection reset by peer]
MrPot4to has joined #ruby
drumusician has joined #ruby
huttan has joined #ruby
MrPotato has joined #ruby
skaflem has joined #ruby
Aryasam has joined #ruby
forchunet has joined #ruby
<forchunet> would anyone be willing to check a newbies code really quick?
vlad_starkov has joined #ruby
Mars` has joined #ruby
gianlucadv has joined #ruby
bluOxigen has joined #ruby
<forchunet> My code is http://imgur.com/KTNXEnv I wrote the one on the top but the answer was the bottom. Are both the same? I was trying to copy the values less than 4 in the array stored in the source variable into the array in the destination variable.
zipper has quit [Ping timeout: 245 seconds]
huttan has quit [Ping timeout: 264 seconds]
zipper has joined #ruby
iliketurtles has joined #ruby
<forchunet> anyone?
<jrobeson> forchunet, you should use pastie.org or gist.github.com for code.. not screenshots
DanKnox is now known as DanKnox_away
<forchunet> oh ok
ehaliewicz has quit [Ping timeout: 240 seconds]
Seich has quit [Ping timeout: 248 seconds]
<forchunet> def array_copy(source) destination = [] source.each do |i| if i < 4 destination.push i end return destination end def array_copy(source) destination = [] for number in source destination << number if number < 4 end return destination end
agustinvinao has joined #ruby
<forchunet> errr.... one sec
agustinvinao has quit [Remote host closed the connection]
<jrobeson> no.. not here
<jrobeson> but yes.. they look like they do the same to me
<forchunet> hmm ok
aspires has quit [Quit: sudo making a sandwich]
<forchunet> thanks!
<jrobeson> forchunet, i more told you about the pasting for future reference .. when you are trying to get other people to help you
jonathanwallace has quit [Ping timeout: 245 seconds]
gianlucadv has quit [Ping timeout: 260 seconds]
<forchunet> i will keep that in mind
<jrobeson> forchunet, also.. that still isn't quite the most optimal way of doing it :)
<jrobeson> not sure what your actual goal is
Seich has joined #ruby
<forchunet> yes, im aware that a lot of my code isn't optimal. Just trying to wrap my head around the basics for now
<jrobeson> cool.. go ahead then
<jrobeson> just make sure to read about select and map methods in the future
leonidlm has joined #ruby
peterdecroos has quit [Remote host closed the connection]
replay has quit [Ping timeout: 264 seconds]
zz_tsykoduk is now known as tsykoduk
Mars` has quit [Remote host closed the connection]
agustinvinao has joined #ruby
agustinvinao is now known as agustin34
<forchunet> oh yeah. I know of map. For some reason the section I was on was getting me to use a for loop and my initial reaction was to do it the way I did for some reason
agustin34 has left #ruby [#ruby]
vlad_sta_ has joined #ruby
jjbohn has joined #ruby
<jrobeson> forchunet, well doing it the way you did it is definitely more in line with most ruby users vs for
<jrobeson> i still haven't seen a for in the wild myself
cazenave has quit [Remote host closed the connection]
<sevenseacat> for shouldnt exist in ruby
simoz has quit [Ping timeout: 272 seconds]
vlad_starkov has quit [Ping timeout: 264 seconds]
<forchunet> yeah, the tutorial was getting me to use it for some reason
<jrobeson> that is likely a smell of a bad tutorial
<sevenseacat> +1
<forchunet> rubymonk
<jrobeson> really?
<jrobeson> hmm.. WHY? :(
<forchunet> pretty good so far. it actually said in the section that for isn't used but heres a problem set anyway pretty much
<jrobeson> color me suprised
ryba has joined #ruby
<jrobeson> ah ok that's a bit better :)
DouweM has quit [Ping timeout: 272 seconds]
jjbohn has quit [Ping timeout: 245 seconds]
DanKnox_away is now known as DanKnox
ghostjangles has joined #ruby
kaldrenon has joined #ruby
banisterfiend has joined #ruby
wildroman has joined #ruby
tsykoduk is now known as zz_tsykoduk
tylersmith has joined #ruby
kaldrenon has quit [Ping timeout: 252 seconds]
ryba has quit [Remote host closed the connection]
tylersmith has quit [Ping timeout: 240 seconds]
mweshi has joined #ruby
akonny has joined #ruby
dwellingh has joined #ruby
vlad_sta_ has quit [Read error: Connection reset by peer]
iliketurtles has quit [Ping timeout: 260 seconds]
shvelo has joined #ruby
shvelo has quit [Changing host]
shvelo has joined #ruby
<existensil> forchunet: FYI, for reference, what you are trying to do can be accomplished in a single line: source.select{|i| i < 4 }
<forchunet> thanks! I'll def. read up more on select and map
h0rrorvacui has quit [Quit: ZQ]
threesome has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
jenskarlsen has quit [Quit: jenskarlsen]
tvw has joined #ruby
nisstyre has quit [Quit: Leaving]
banisterfiend has joined #ruby
banisterfiend has quit [Client Quit]
ericx2x has quit [Ping timeout: 240 seconds]
AlSquire has joined #ruby
wildroman has quit []
ner0x has quit [Quit: Leaving]
arietis has quit [Quit: Computer has gone to sleep.]
iliketurtles has joined #ruby
vlad_starkov has joined #ruby
Davey has joined #ruby
Davey has quit [Remote host closed the connection]
lukec has quit [Quit: lukec]
Davey has joined #ruby
CalimeroTeknik has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Remote host closed the connection]
gasbakid has joined #ruby
Aryasam has quit [Ping timeout: 248 seconds]
zigomir has joined #ruby
jjbohn has joined #ruby
Aryasam has joined #ruby
iliketurtles has quit [Read error: Connection reset by peer]
sayan has quit [Ping timeout: 252 seconds]
iliketurtles has joined #ruby
s3itz has quit [Quit: Textual IRC Client: www.textualapp.com]
jjbohn has quit [Ping timeout: 272 seconds]
apeiros has joined #ruby
sevenseacat has left #ruby [#ruby]
vlad_starkov has quit [Ping timeout: 265 seconds]
tylersmith has joined #ruby
ananthakumaran1 has joined #ruby
ananthakumaran has quit [Ping timeout: 245 seconds]
tylersmith has quit [Ping timeout: 245 seconds]
zipper has quit [Ping timeout: 252 seconds]
zipper has joined #ruby
iliketurtles has quit [Ping timeout: 245 seconds]
brtdv has joined #ruby
<pagioss> hi all i need some help writing to my serial port from 2 threads, heard i can do it using mutex.sunchronize but i am not able to achieve it.
<pagioss> first thread needs to continously write on serial port and thread 2 neads to write at anytime (on demand)
ner0x has joined #ruby
theRoUS is now known as theRoUS|afk
Seich has quit [Ping timeout: 272 seconds]
DanKnox is now known as DanKnox_away
amacgregor has joined #ruby
amacgregor__ has joined #ruby
Seich has joined #ruby
amacgregor_ has quit [Ping timeout: 245 seconds]
adambeynon has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
allsystemsarego has joined #ruby
allsystemsarego has joined #ruby
allsystemsarego has quit [Changing host]
watermel0n has joined #ruby
pagioss is now known as pagios
amacgregor has quit [Ping timeout: 245 seconds]
robbyoconnor has quit [Excess Flood]
relix has joined #ruby
robbyoconnor has joined #ruby
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
arietis has joined #ruby
<existensil> pagios: haven't done any serial port stuff. what does your implementation look like? what problems are you running into?
AlSquire has quit [Quit: This computer has gone to sleep]
nfk has joined #ruby
<existensil> seems like if one thread needs to be in control it should have an interrupt mechanism. maybe thread 2 can write to an shared array that thread 1 checks after each of its writes?
<existensil> then thread 1 sends whatever thread 2 queued up, and then continues whatever writing its doing
<apeiros> existensil: if you need a queue shared between threads, you're better advised to use Queue than Array
<existensil> yeah, true
<pagios> existensil: i think another way is mutex
<existensil> pagios: yeah, i suppose you could wrap the serial port write into a mutex and the threads could synchronize on it
<existensil> are you having trouble with that?
aa47f8 has joined #ruby
<pagios> apeiros: idea is i have a small screen connected via serial to my pc, now thread one is sending continous monitoring stuff to be displayed on the panel, at any point in time i want to send via a keypad (also serially connected) some instructions, and display the return value once on the display and resume with the monitoring of thread 1
<existensil> i'd actually have a queue that both thread 1 and thread 2 write to and a thread 3 who's only job is to watch the queue and write
<pagios> yes having problem with mutex
huttan has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
<existensil> what problems exactly?
<existensil> can you show your code?
<pagios> thats witjout the mutex now
<pagios> i did add 2 thread one on the first if condition and another on the elsif condition and hooked them up to the mutex
<pagios> this line: stream_status = `/var/www/serial.sh wlan4`; should be embedded in a while loop to display continous data on thread 1
ghostjangles has quit [Quit: Leaving]
zipper has quit [Ping timeout: 272 seconds]
gasbakid_ has joined #ruby
zipper has joined #ruby
<existensil> pagios: i don't get it... you're not even using the semaphore
<pagios> let me write the whole thing 1 sec please
claymore has joined #ruby
<apeiros> pagios: your indentation got better, but is still horrible :(
huttan has quit [Ping timeout: 264 seconds]
gasbakid has quit [Ping timeout: 272 seconds]
RichardBaker has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
zipper has quit [Ping timeout: 245 seconds]
zipper has joined #ruby
zipper has quit [Client Quit]
<pagios> here is my code http://codepad.org/thds2HdN
<apeiros> yeah, not going to read badly indented code. use 2 spaces for indent. only indent when it's indeed a level deeper.
fuleo has joined #ruby
<popl> Two spaces? Not four?
<popl> ;P
<apeiros> yes, 2.
<apeiros> and not 16 either.
<pagios> apeiros: better now ? http://codepad.org/cHJXOk6V
<existensil> pagios: i'm not familiar with serial programming. how quickly will your readline loop run?
<popl> Why two?
<pagios> i forgot the while loop sorry 1 sec
<popl> Is that your personal preference or else is it suggested in a Ruby style guide somewhere?
<apeiros> pagios: you and I are either not looking at the same code or I don't understand how/why you consider that better :)
<pagios> i removed some indentation :)
<existensil> We use the github style guide where I work. Good base. https://github.com/styleguide/ruby
<apeiros> popl: it's the most common indentation. there are some ruby styleguides. one being the one existensil linked.
olivier_bK has joined #ruby
<existensil> that guide is very clear about indentation, and they follow the same rule apeiros is trying to enforce
iliketurtles has joined #ruby
<apeiros> I'm not trying to enforce it, he can use whatever he wants. I just won't read his source-code then :)
mengu has quit [Remote host closed the connection]
<apeiros> not being paid for helping, I can choose whom and under what conditions to help.
vlad_starkov has joined #ruby
<popl> Thanks for the link existensil.
<popl> When I was doing Java programming at school I was sort of browbeaten into using four spaces. So I tend to use that (I've already configured vim for it) except when I work on someone else's code that uses a different style.
<existensil> i use 4 spaces for java. different languages, different styles
fridim_ has quit [Ping timeout: 272 seconds]
RichardBaker has quit [Quit: RichardBaker]
<pagios> ok here is the final version with the while loop:
<existensil> why are you so bad at indentation pagios ?
<existensil> lol
<pagios> i am trying my best!
<existensil> i'll read it, but, yikes
<apeiros> pagios: I suspect your editor uses tabs
<pagios> using vi
<apeiros> pagios: and that pasteservice you use converts it to 8 spaces
<pagios> maybe
<pagios> it looks nice here colorful
<apeiros> does not explain the 1 space indent in line 27
<apeiros> or why line 27 is more indented than line 26…
<apeiros> I suggest you configure your vi to indent .rb files with soft-tabs
<existensil> (read: spaces)
<apeiros> I'm amazed :)
<existensil> that was among the most minor improvements i've ever seen
<existensil> pagios: i see a number of issues unrelated to your code formatting
<apeiros> ok, look pagios, line 11 and line 17 should have the same indent, for example. right now they're miles apart.
<existensil> first, for syncrhonize to work, they need to be synchronizing on the *same code*
zz_tsykoduk is now known as tsykoduk
<apeiros> then line 11 and 13 we have starts of deeper indentation which you ignore
<apeiros> oh, line 10 too
<existensil> your port.puts stuff should be in a method, that each thread calls
sevenseacat has joined #ruby
<existensil> and within that method the call to port.puts should be synchronized
<pagios> you mean i should have 2 threads , one for each condition and then inside each if statement call a method which does the serialization on the serial?
Tuxist has joined #ruby
<existensil> but, not knowing how fast your loop is running, its quite possible your "STOPPED stream" is being sent, but then thread 1 is sending another message that overwrites it immediately after
<apeiros> pagios: also ; are not needed in ruby
<existensil> but, again, not super familiar with serial coding so not entirely sure when readline events fire, vs how fast your puts events are
<existensil> thread 1 appers like it would write very aggressively
<pagios> yea i will use some sleeps
<apeiros> I took the liberty of properly indenting your code: https://gist.github.com/apeiros/f5ec13daac1618728725
<apeiros> but seriously pagios, learn to f'ing indent your code.
<existensil> i still think having one writing thread makes the most sense, and it could either write your command response, then pause, or continuously write the status if no commands are queued
<apeiros> it's NOT HARD.
<pagios> apeiros: better? http://codepad.org/UXzLMi3j
<apeiros> pagios: no
<pagios> damn
<apeiros> pagios: do you even look at the pastie you produce?
nbrosnahan has joined #ruby
<apeiros> line 4: 0 spaces indent, line 5: 8 spaces
arietis has quit [Quit: Computer has gone to sleep.]
<apeiros> that's just plain wrong.
Aryasam has quit [Ping timeout: 272 seconds]
<apeiros> then line 10 you don't increase indent, neither in line 13
<apeiros> line 17 & 18 - can't be
arietis has joined #ruby
<apeiros> your deindents don't align with your indents…
<apeiros> I'm not aware of any ametropia which lets you not see such things…
funburn has quit [Quit: funburn]
* existensil looks up ametropia
Aryasam has joined #ruby
fntzr has quit [Quit: Leaving]
<pagios> euh i didnt increase indent on line 10
<apeiros> https://gist.github.com/apeiros/f5ec13daac1618728725 fixed your mixed up uses of do/end and {} (which resulted in broken code)
jjbohn has joined #ruby
<apeiros> line 5, readline - not defined anywhere?
<pagios> ok i was using the tab only
<pagios> you using tab and spaces
mengu has joined #ruby
<existensil> Kernel.readline ?
Aryasam has quit [Read error: Connection reset by peer]
<apeiros> pagios: no, I use spaces only
<apeiros> if you see tabs in your vi then because you configured it to convert
<apeiros> existensil: unlikely, since that reads from $stdin
holderbaum has quit [Quit: leaving]
<apeiros> and he passes the serialport
mengu has quit [Read error: Operation timed out]
CalimeroTeknik has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> https://gist.github.com/apeiros/f5ec13daac1618728725 basic conversion into something more object-oriented (step by step, I'd never write it like this)
jjbohn has quit [Ping timeout: 272 seconds]
<pagios> apeiros: why 2 spaces on line5 https://gist.github.com/apeiros/f5ec13daac1618728725
<pagios> and not 1?
<existensil> yeah, readline(port) doesn't make any sense
<pagios> you always use 2?
<apeiros> line 5 has 4 spaces
<apeiros> and because you *never indent with 1 space*
io_syl has quit []
<apeiros> it's always a multiple of 2. that's what "indent by 2 spaces" means.
<pagios> ah ok
<existensil> pagios: you sure you're not looking for something like port.read or port.readlines ?
<apeiros> 1 level of indent = 2 spaces, 5 levels of indent = 10 spaces.
relix has joined #ruby
<apeiros> pagios: ah, maybe you looked at the previous version, then it'd be 2 spaces. sorry.
<apeiros> ah damn, github changed UI again… where's 'em revision links gone :(
tsykoduk is now known as zz_tsykoduk
<existensil> for gist? upper left
<apeiros> existensil: yes, but now that gives me a list with the diffs. I can go from there but it's annoying :-/
<existensil> ah, yeah
<apeiros> before there was a list of the ~5 most recent revisions
<apeiros> pagios: I still need the definition of readline
<existensil> its still a list, just with the diffs shown below each one
Seich has quit [Quit: Computer has gone to sleep.]
tylersmith has joined #ruby
Seich has joined #ruby
timonv has joined #ruby
AleksEst has quit []
<pagios> ok rewritten according to your style: http://codepad.org/SpP2eQuj
<apeiros> ah progress at last, bravo :)
<pagios> lol way better
<existensil> congratz
<pagios> thanks
<existensil> line 5 still doesn't make any sense though
rickruby_ has quit [Remote host closed the connection]
<pagios> ok for readline i have a function
<apeiros> paste it please
<apeiros> problem is, with all those shellouts I can't recreate your situation
<apeiros> if it was just reading/writing to a SP, I could replace it with a pipe
<apeiros> but I can't emulate that other stuff
dnyy has quit []
workmad3 has joined #ruby
<apeiros> pagios: uh, are you sure that's correct code?
<apeiros> ah well
<pagios> i am fixing the format
<apeiros> I guess it is
<pagios> yes it works
mengu has joined #ruby
<apeiros> it's awfully complex way to write line = port.gets("\n"); line.chomp
tylersmith has quit [Ping timeout: 252 seconds]
<Mon_Ouie> And it has an infinite loop if EOF is ever reached
<pagios> thats a workaround for getting serial to work correctly
<existensil> this could loop through port.gets multiple times, apeiros
Seich has quit [Ping timeout: 272 seconds]
rickruby has joined #ruby
<apeiros> pagios: you're saying port.gets does not work correctly?
<apeiros> existensil: if gets works correctly, no, it won't
<apeiros> gets is supposed to block until it hits "\n" and return only then.
<existensil> though, still, readlines is a better approachah
vlad_starkov has quit [Ping timeout: 246 seconds]
<existensil> ah
iliketurtles has quit [Ping timeout: 252 seconds]
workmad3 has quit [Read error: Operation timed out]
<pagios> i had problems since lot of EOF were sent on serial so had to write that with MrZYX
<apeiros> pagios: https://gist.github.com/apeiros/f5ec13daac1618728725 - coming closer to a proper OO approach
<apeiros> pagios: your serialport sends an EOF and you can still read from it?
<pagios> yea
<pagios> that works fine with the workaround
<pagios> stuck with threading now
<apeiros> that's odd… something which got an EOF should be closed
Astralum has quit [Read error: Connection timed out]
<pagios> so what do you suggest for the mutex thing
<pagios> have 2 threads and call a function which does the serialization?
rickruby has quit [Ping timeout: 245 seconds]
atrocitas has joined #ruby
<apeiros> actually you have N threads
<apeiros> on every loop you start a new thread
<apeiros> well, on every loop where your command is either stream_start or stream_stop
<apeiros> so you only want 2 threads then?
<pagios> i am trying to think of threads in order not to block the main thread
<pagios> so if i reach an infinit loop on stream_start the program will keep looping there
<apeiros> pagios: be aware that ruby's main thread will not wait for any other thread to finish
mengu has quit [Ping timeout: 246 seconds]
zeeraw has joined #ruby
<pagios> i see, so a while loop in main thread will create its own thread
<apeiros> that is, when the main thread terminates, all remaining threads will be killed
<existensil> ah, yeah, main will need to join on any threads you want to have continue
<apeiros> should not be an issue with your code, since your main thread is stuck in an infinite loop anyway.
sevenseacat has left #ruby [#ruby]
rickruby has joined #ruby
<apeiros> pagios: the way you currently coded it, you'll increase the number of threads writing to port on every stream_start
joshi has quit [Ping timeout: 260 seconds]
<apeiros> actually… no, it won't
Mon_Ouie has quit [Ping timeout: 245 seconds]
<apeiros> only one thread will ever be working
<apeiros> you have a mutex around an infinite loop
rickruby has quit [Read error: Connection reset by peer]
<apeiros> all new threads will just be stuck waiting for that mutex to be released
<apeiros> which in the case of start_stream will never happen.
<apeiros> pagios: what's the intent of the mutex?
<pagios> to serialize thread1 and thread2 and give them both access to the serial
Jetchisel has joined #ruby
gianlucadv has joined #ruby
<apeiros> but one only reads and one only writes
<apeiros> why do they need serialization?
<pagios> no they both put data
<pagios> port.put on both
<apeiros> ah, true
ua_ has joined #ruby
<apeiros> ok, I'm not sure. should only a single thread ever work on the serialport?
<apeiros> or should just line-by-line be serialized?
<pagios> so its like thread 1 is continously writting but i want to give a priority of thread2 over thread1 when thread 2 wants the serial interface
<apeiros> i.e. A writes a line, then B writes a line, then A again
ua_ has quit [Read error: Connection reset by peer]
<pagios> yes thats correct: A writes a line, then B writes a line, then A again
<apeiros> ok. you applied the mutex faaaar to broadly.
<apeiros> all that one ever achieves is block out the other thread entirely.
phansch has quit [Quit: Leaving]
lkba has quit [Ping timeout: 260 seconds]
<apeiros> note the `writeline` method
Hanmac1 is now known as Hanmac
<apeiros> IMO the code is still broken, since on ever 'start_stream' you spin up another infinitely running thread.
<apeiros> *on every
ua has quit [Ping timeout: 264 seconds]
<apeiros> oh, omitted a puts
<apeiros> updated.
Astralum has joined #ruby
<jrobeson> no.. i'll beat you with infinity times infinity
* jrobeson bows
<apeiros> that's still infinity
<jrobeson> apeiros, that's the point .. it's meant to be ridiculous
<apeiros> I'll beat you with an aleph1 infinity
<apeiros> take that, with your silly aleph0 infinity :-p
<jrobeson> :(
Nahra has quit [Ping timeout: 245 seconds]
<apeiros> pagios: anyway, going to play some videogames. I think this code is already a good bit better, but still broken for stream_start (as mentioned above).
<pagios> oh
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
dhruvasa1ar has joined #ruby
joelio has quit [Ping timeout: 245 seconds]
<apeiros> I think you wanted something along this: https://gist.github.com/apeiros/f5ec13daac1618728725
<apeiros> but that code still has a race condition
<pagios> yea
<pagios> how can i overcome that
mojjojo has joined #ruby
<pagios> the lcd is going crazy writing some weird stuff
dhruvasagar has quit [Ping timeout: 268 seconds]
<bnagy> lolthreads
vlad_starkov has joined #ruby
marr has joined #ruby
<pagios> it looks to be working fine at first instance but then after sending several start and stop it goes crazy apeiros
zeeraw has quit [Quit: Computer has gone to sleep.]
madhatter has quit [Ping timeout: 245 seconds]
jglauche has quit [Ping timeout: 245 seconds]
mweshi has quit [Quit: mweshi]
jglauche has joined #ruby
madhatter has joined #ruby
zeeraw has joined #ruby
<pagios> i lose 1 chraracter on the screen everytime i do a stop/start
Spami has joined #ruby
<pagios> from the left side so if for example it reads on first iteration: "DATA" , next iteration is "ATA" then "TA"
sepp2k has joined #ruby
ArchBeOS has quit [Ping timeout: 250 seconds]
rickruby has joined #ruby
Nahra has joined #ruby
ner0x has quit [Quit: Leaving]
marr has quit [Ping timeout: 252 seconds]
joelio has joined #ruby
iliketurtles has joined #ruby
Astralum has quit [Read error: Connection timed out]
ua has joined #ruby
iaj_ has quit [Remote host closed the connection]
<pagios> apeiros: in line 13 should that be in a write line instead of a puts?
iaj has joined #ruby
Bry8Star{T2 has joined #ruby
<pagios> oh no my bad
yfeldblum has joined #ruby
<bnagy> huh
<bnagy> burn the whole thing
<bnagy> have one reader one writer and use queues
<existensil> :-)
<bnagy> mutex in ruby is for the birds
vlad_starkov has quit [Remote host closed the connection]
<apeiros> pagios: I said I had updated it…
vlad_starkov has joined #ruby
<pagios> yea it works but still bogus
<bnagy> if you want a 'high priority' write that's trivial with queues
<bnagy> I think you're grasping at condition variables but they are satan's semen
zz_tsykoduk is now known as tsykoduk
vlad_starkov has quit [Remote host closed the connection]
<bnagy> plus, it's serial. How fast can it possibly be?
<bnagy> anyway, that's just my random input as I wander off to bed.
<forchunet> fixed his code http://pastie.org/8486776
<bnagy> nice formatting
<pagios> yea! better than mine :P
coldmethod has quit [Ping timeout: 272 seconds]
jjbohn has joined #ruby
<pagios> sleep 0.2 writeline(stream_status) seems to make thigns a bit better apeiros
amacgregor has joined #ruby
<bnagy> XD
<bnagy> this is called the 'magic sleep zone' of threaded code
<pagios> huh
mojjojo has quit [Quit: mojjojo]
amacgregor__ has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Ping timeout: 272 seconds]
<bnagy> when magic tiny sleeps start helping
beermouse has joined #ruby
gasbakid__ has joined #ruby
<bnagy> basically it's just weird scheduler races that you're magicking, normally
<bnagy> anyway, enjoy
mojjojo has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
gasbakid_ has quit [Ping timeout: 272 seconds]
jjbohn has quit [Ping timeout: 245 seconds]
<pagios> forchunet: in your code, stream_stop is never called
tsykoduk is now known as zz_tsykoduk
Seich has joined #ruby
i_s has joined #ruby
tylersmith has joined #ruby
kirun has joined #ruby
mojjojo has quit [Quit: mojjojo]
Astralum has joined #ruby
Seich has quit [Ping timeout: 246 seconds]
ananthakumaran1 has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
Spami has joined #ruby
iliketurtles has quit [Ping timeout: 272 seconds]
huttan has joined #ruby
tylersmith has quit [Ping timeout: 246 seconds]
i_s has quit [Ping timeout: 252 seconds]
aapzak has quit [Read error: Connection reset by peer]
aapzak has joined #ruby
<shvelo> I'm selling these fine leather jackets
huttan has quit [Ping timeout: 272 seconds]
Astralum has quit [Read error: Operation timed out]
mojjojo has joined #ruby
newbiehacker has joined #ruby
tonni_ has joined #ruby
forchunet has quit [Ping timeout: 250 seconds]
tvw has quit [Ping timeout: 264 seconds]
tonni has quit [Ping timeout: 252 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Spami has quit [Quit: This computer has gone to sleep]
viuo has joined #ruby
MrPot4to has quit [Read error: Connection reset by peer]
popl has quit [Quit: We must make an idol of our fear, and call it God.]
MrPot4to has joined #ruby
MrPotato has quit [Remote host closed the connection]
MrPot4to has quit [Read error: Connection reset by peer]
<pagios> how can i kill a thread from another thread?
vlad_starkov has joined #ruby
<apeiros> Thread#kill - but you should absolutely not. the behavior is largely undefined. it may kill your thread *anywhere*
<pagios> apeiros: i want to kill thread1 and its childs when stream_stop is sent so nothing is output on the screen anymore
<pagios> only when stream_start is sent i want to display the monitoring stuff
<apeiros> threads don't have children
<apeiros> threads are not hierarchical.
<pagios> ok then kill all threads of type a
<apeiros> set up mechanisms to tell the thread to stop. cf. my code - I set the loop to stop once @show_stats is true - the thread will end
<apeiros> err, *to stop once @show_stats is *false*
marahin has quit [Remote host closed the connection]
jb41 has joined #ruby
<pagios> i see a race ondition on the screen
vlad_starkov has quit [Read error: Connection reset by peer]
viuo has quit [Quit: viuo]
viuo has joined #ruby
<apeiros> you won't make it better by killing a thread.
beermouse has quit [Ping timeout: 246 seconds]
Lewix has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
gasbakid__ has quit [Ping timeout: 240 seconds]
nari has joined #ruby
iliketurtles has joined #ruby
shvelo has quit [Ping timeout: 245 seconds]
javos has joined #ruby
javos_ has joined #ruby
javos- has joined #ruby
javos_ has quit [Read error: Connection reset by peer]
olivier_bK has quit [Ping timeout: 252 seconds]
viuo has quit [Quit: viuo]
javos has quit [Ping timeout: 252 seconds]
lkba has joined #ruby
gasbakid__ has joined #ruby
mklappstuhl has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
timonv has quit [Remote host closed the connection]
arietis has joined #ruby
jjbohn has joined #ruby
tesuji has quit [Ping timeout: 245 seconds]
relix has joined #ruby
davidcelis has quit [Ping timeout: 260 seconds]
davidcelis has joined #ruby
jjbohn has quit [Ping timeout: 246 seconds]
m8 has joined #ruby
MrZYX|off is now known as MrZYX
intuxicated_ has joined #ruby
brtdv has quit []
brtdv has joined #ruby
dzan has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby
Seich has joined #ruby
dzan has joined #ruby
dhruvasa1ar has quit [Ping timeout: 272 seconds]
brtdv has quit [Client Quit]
nones has joined #ruby
nones has left #ruby ["Ухожу я от вас (xchat 2.4.5 или старше)"]
bluOxigen has quit []
_5kg has quit [Ping timeout: 252 seconds]
tylersmith has joined #ruby
_5kg has joined #ruby
Seich has quit [Ping timeout: 252 seconds]
osvico has joined #ruby
iliketurtles has quit [Ping timeout: 245 seconds]
rickruby has quit [Remote host closed the connection]
defrag has quit [Ping timeout: 264 seconds]
Thanatermesis has joined #ruby
hello_world has joined #ruby
tylersmith has quit [Ping timeout: 272 seconds]
mklappstuhl has quit [Remote host closed the connection]
beermouse has joined #ruby
dhruvasagar has quit [Read error: Operation timed out]
germanstudent has quit [Quit: raus]
DonRichie has joined #ruby
mengu has joined #ruby
Lewix has quit [Remote host closed the connection]
Nahra has quit [Ping timeout: 265 seconds]
Nahra has joined #ruby
timonv has joined #ruby
beermouse has quit [Quit: beermouse]
jhaals has joined #ruby
sepp2k has quit [Ping timeout: 245 seconds]
germanstudent has joined #ruby
dr_bob has joined #ruby
Nahra has quit [Ping timeout: 240 seconds]
sevenseacat has joined #ruby
iliketurtles has joined #ruby
mengu has quit [Remote host closed the connection]
SHyx0rmZ has joined #ruby
beermouse has joined #ruby
Nahra has joined #ruby
ringaroses has joined #ruby
Asher has quit [Quit: Leaving.]
ringaroses has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
s_kilk has joined #ruby
Nahra has quit [Client Quit]
Naoe-Kanno has joined #ruby
dhruvasagar has joined #ruby
SHyx0rmZ has quit [Ping timeout: 246 seconds]
timonv_ has joined #ruby
sepp2k has joined #ruby
tr4656 has quit [Ping timeout: 260 seconds]
tr4656 has joined #ruby
jhaals has quit [Ping timeout: 245 seconds]
banister has joined #ruby
banister is now known as r0bgleeson
r0bgleeson has quit [Changing host]
r0bgleeson has joined #ruby
zz_tsykoduk is now known as tsykoduk
banisterfiend has joined #ruby
NickiMinaj has quit [Ping timeout: 250 seconds]
colonolGron has joined #ruby
hello_world has quit [Ping timeout: 250 seconds]
jjbohn has joined #ruby
r0bgleeson has quit [Ping timeout: 265 seconds]
banister has joined #ruby
banisterfiend has quit [Ping timeout: 264 seconds]
mklappstuhl has joined #ruby
huttan has joined #ruby
jjbohn has quit [Ping timeout: 245 seconds]
tsykoduk is now known as zz_tsykoduk
jerius has joined #ruby
s_kilk has quit [Quit: Leaving]
endash has joined #ruby
jerius has quit [Client Quit]
bassclef has joined #ruby
huttan has quit [Ping timeout: 248 seconds]
Seich has joined #ruby
banister_ has joined #ruby
banister_ is now known as r0bgleeson
r0bgleeson has quit [Client Quit]
Ox6abe has joined #ruby
tylersmith has joined #ruby
iliketurtles has quit [Ping timeout: 240 seconds]
Seich has quit [Ping timeout: 248 seconds]
jhaals has joined #ruby
krz has quit [Read error: Connection reset by peer]
brian___ has joined #ruby
beermouse has quit [Quit: beermouse]
javos has joined #ruby
tylersmith has quit [Ping timeout: 272 seconds]
beermouse has joined #ruby
javos- has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Ping timeout: 264 seconds]
beermouse has quit [Client Quit]
hiroyuki has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leonidlm has left #ruby ["Leaving"]
wald0 has joined #ruby
kofno has quit [Ping timeout: 264 seconds]
casheew_ has quit [Read error: Connection reset by peer]
casheew has joined #ruby
banister_ has joined #ruby
banister_ has quit [Changing host]
banister_ has joined #ruby
banister_ is now known as r0bgleeson
caveat- has quit [Ping timeout: 252 seconds]
mixel has joined #ruby
krz has joined #ruby
Hanmac1 has joined #ruby
sepp2k has quit [Quit: Leaving.]
Hanmac has quit [Ping timeout: 240 seconds]
hogeo has joined #ruby
Mon_Ouie has joined #ruby
z has quit [Read error: Operation timed out]
xcess_denied has joined #ruby
timonv_ has quit [Remote host closed the connection]
timonv has joined #ruby
Blue_Ice has quit [Ping timeout: 245 seconds]
Blue_Ice has joined #ruby
mklappst_ has joined #ruby
Hanmac1 is now known as Hanmac
timonv has quit [Ping timeout: 252 seconds]
beermouse has joined #ruby
mklappstuhl has quit [Ping timeout: 246 seconds]
hashpuppy has quit [Quit: Computer has gone to sleep.]
hashpuppy has joined #ruby
iliketurtles has joined #ruby
beermouse has quit [Client Quit]
jhaals has joined #ruby
blackmesa has joined #ruby
banister has quit [Read error: Connection reset by peer]
jjbohn has joined #ruby
wald0 has quit [Ping timeout: 245 seconds]
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
contradictioned has quit [Quit: No Ping reply in 180 seconds.]
jjbohn has quit [Client Quit]
contradictioned has joined #ruby
r0bgleeson has quit [Ping timeout: 246 seconds]
caveat- has joined #ruby
wald0 has joined #ruby
atmosx has joined #ruby
banister has joined #ruby
watermel0n has quit [Ping timeout: 248 seconds]
z has joined #ruby
jalcine has quit [Excess Flood]
atmosx has quit [Client Quit]
plotter has joined #ruby
plotter has joined #ruby
d45h has quit [Ping timeout: 265 seconds]
caveat- has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
d45h has joined #ruby
ewnd9 has quit [Ping timeout: 272 seconds]
caveat- has joined #ruby
dwellingh has quit [Remote host closed the connection]
ExCa|iBuR has joined #ruby
IceDragon has joined #ruby
Thanatermesis has quit [Read error: Connection reset by peer]
wald0 has quit [Read error: Connection reset by peer]
rogne has joined #ruby
dhruvasagar has joined #ruby
hashpuppy has quit [Quit: Computer has gone to sleep.]
tijmencc has joined #ruby
banister has quit [Ping timeout: 245 seconds]
mlpinit has joined #ruby
beermouse has joined #ruby
sepp2k has joined #ruby
wald0 has joined #ruby
phus1on has joined #ruby
z has quit [Ping timeout: 246 seconds]
mojjojo has quit [Quit: mojjojo]
kobain has joined #ruby
mojjojo has joined #ruby
randomnick_ has joined #ruby
tijmencc has quit [Client Quit]
Seich has joined #ruby
dhruvasagar has quit [Ping timeout: 272 seconds]
timonv has joined #ruby
beermouse has quit [Quit: beermouse]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mojjojo has quit [Client Quit]
mojjojo has joined #ruby
jonathanwallace has joined #ruby
randomnick_ has quit [Client Quit]
tylersmith has joined #ruby
iliketurtles has quit [Ping timeout: 240 seconds]
thelorax123 has quit [Remote host closed the connection]
Seich has quit [Ping timeout: 252 seconds]
defrag has joined #ruby
thelorax123 has joined #ruby
mojjojo has quit [Client Quit]
aryaching has joined #ruby
Thanatermesis has joined #ruby
caveat- has quit [Ping timeout: 246 seconds]
tylersmith has quit [Ping timeout: 252 seconds]
caveat- has joined #ruby
dhruvasagar has joined #ruby
noop has joined #ruby
Asher has joined #ruby
jalcine has joined #ruby
kofno has joined #ruby
raphaelivan has joined #ruby
beermouse has joined #ruby
<Hanmac> apeiros: there is a ticket that makes Enumerable#to_a faster with allocatiing the entire size of the Array, so the Array does not need resizing, but the idea is not finish yet
fuleo has quit [Remote host closed the connection]
dr_bob_ has joined #ruby
ewnd9 has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
dr_bob has quit [Ping timeout: 264 seconds]
ExCa|iBuR has quit [Quit: I was using serenepIRCh http://www.serenity-irc.net/ :-]
mjs2600 has joined #ruby
felixjet has quit [Read error: Connection reset by peer]
z has joined #ruby
z has quit [Changing host]
z has joined #ruby
huttan has joined #ruby
caveat- has quit [Ping timeout: 246 seconds]
mojjojo has joined #ruby
thelorax123 has quit [Remote host closed the connection]
caveat- has joined #ruby
thesheff17 has joined #ruby
thelorax123 has joined #ruby
netimdoidim has joined #ruby
brtdv has joined #ruby
bruno- has joined #ruby
mlpinit has quit [Quit: Leaving...]
beermouse has quit [Quit: beermouse]
caveat- has quit [Ping timeout: 246 seconds]
felixjet has joined #ruby
beermouse has joined #ruby
d45h has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
iliketurtles has joined #ruby
d45h has joined #ruby
aspiers has joined #ruby
caveat- has joined #ruby
radic_ has quit [Remote host closed the connection]
DouweM has joined #ruby
Atlantic777 has joined #ruby
jjbohn has joined #ruby
dr_bob_ has quit [Ping timeout: 252 seconds]
BizarreCake has quit [Ping timeout: 245 seconds]
radic has joined #ruby
_honning_ has joined #ruby
marr has joined #ruby
Xeago has quit [Remote host closed the connection]
jjbohn has quit [Ping timeout: 252 seconds]
casheew has quit [Read error: Connection reset by peer]
zz_tsykoduk is now known as tsykoduk
jhaals has joined #ruby
hogeo has quit [Remote host closed the connection]
hello_world has joined #ruby
ringaroses has joined #ruby
hogeo has joined #ruby
IceDragon has quit [Ping timeout: 245 seconds]
radic has quit [Remote host closed the connection]
brtdv has quit []
radic has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
casheew has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
BizarreCake has joined #ruby
hogeo has quit [Ping timeout: 248 seconds]
relix has joined #ruby
netimdoidim has left #ruby [#ruby]
mklappst_ has quit []
newbiehacker has quit [Ping timeout: 246 seconds]
radic has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
radic has joined #ruby
tsykoduk is now known as zz_tsykoduk
wald0 has quit [Quit: Lost terminal]
gazarsgo has joined #ruby
radic has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 272 seconds]
radic has joined #ruby
Seich has joined #ruby
mklappstuhl has quit []
mojjojo has quit [Quit: mojjojo]
soxet has joined #ruby
jonathanwallace has joined #ruby
iliketurtles has quit [Ping timeout: 240 seconds]
tylersmith has joined #ruby
Czupa has joined #ruby
mojjojo has joined #ruby
Seich has quit [Ping timeout: 272 seconds]
kofno has quit [Ping timeout: 272 seconds]
_honning_ has quit [Ping timeout: 252 seconds]
brian___ has quit [Quit: brian___]
tylersmith has quit [Ping timeout: 265 seconds]
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
aspiers has quit [Ping timeout: 272 seconds]
mojjojo has quit [Quit: mojjojo]
javos has quit [Quit: Linkinus - http://linkinus.com]
mojjojo has joined #ruby
_honning_ has joined #ruby
shvelo has joined #ruby
shvelo has joined #ruby
shvelo has quit [Changing host]
dgfdgf has joined #ruby
`MArceLL` has quit [Ping timeout: 246 seconds]
timonv has quit [Ping timeout: 248 seconds]
dgfdgf is now known as `MArceLL`
iszak has joined #ruby
Solnse has joined #ruby
mojjojo has quit [Quit: mojjojo]
Hoozt has joined #ruby
ph8 has quit [Ping timeout: 252 seconds]
jjbohn has joined #ruby
mojjojo has joined #ruby
`MArceLL` has quit [Ping timeout: 246 seconds]
banisterfiend has joined #ruby
sevenseacat has quit [Quit: Leaving.]
brian___ has joined #ruby
IceDragon has joined #ruby
xcthulhu has joined #ruby
zeeraw has quit [Quit: Computer has gone to sleep.]
mojjojo has quit [Quit: mojjojo]
mojjojo has joined #ruby
lukec has joined #ruby
nbrosnahan has quit [Ping timeout: 272 seconds]
ph8 has joined #ruby
jokke has quit [Quit: WeeChat 0.4.2]
shvelo has quit [Ping timeout: 252 seconds]
zeeraw has joined #ruby
`MArceLL` has joined #ruby
nbrosnahan has joined #ruby
timonv has joined #ruby
ringaroses has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby
jonathanwallace has quit [Ping timeout: 272 seconds]
justsee has quit [Ping timeout: 265 seconds]
iliketurtles has joined #ruby
newbiehacker has joined #ruby
Nahra has joined #ruby
atmosx has joined #ruby
bluOxigen has joined #ruby
TomRone has joined #ruby
adjo has joined #ruby
mklappstuhl has joined #ruby
adjo has quit [Client Quit]
zeeraw has quit [Quit: Computer has gone to sleep.]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
bluenemo has quit [Remote host closed the connection]
pskosinski has joined #ruby
EvanR has joined #ruby
IceDragon has quit [Ping timeout: 272 seconds]
dhruvasagar has quit [Ping timeout: 246 seconds]
jokke has joined #ruby
IceDragon has joined #ruby
EvanR is now known as Guest46643
jonathanwallace has joined #ruby
mojjojo has quit [Quit: mojjojo]
tiglog has joined #ruby
mojjojo has joined #ruby
nfk has quit [Quit: yawn]
beermouse has quit [Quit: beermouse]
thelorax123 has quit [Remote host closed the connection]
mojjojo has quit [Client Quit]
thelorax123 has joined #ruby
_honning_ has quit [Ping timeout: 264 seconds]
F1skr has joined #ruby
phus1on has quit [Quit: .]
DarthGandalf has quit [Quit: Bye]
intuxicated_ is now known as intuxicated
intuxicated has quit [Changing host]
intuxicated has joined #ruby
DarthGandalf has joined #ruby
jeremywrowe has joined #ruby
ewnd9 has quit [Remote host closed the connection]
ewnd9 has joined #ruby
shvelo has joined #ruby
falood has quit [Remote host closed the connection]
beermouse has joined #ruby
Hanmac1 has joined #ruby
TomRone has quit [Ping timeout: 252 seconds]
Hanmac has quit [Ping timeout: 252 seconds]
Seich has joined #ruby
Seich has quit [Read error: Connection reset by peer]
Seich has joined #ruby
iliketurtles has quit [Ping timeout: 252 seconds]
ringaroses has joined #ruby
Hanmac1 is now known as Hanmac
tylersmith has joined #ruby
nfk has joined #ruby
raphaelivan has quit [Quit: Leaving.]
kobain has quit [Ping timeout: 246 seconds]
xk_id has joined #ruby
myappleguy1 has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mon_Ouie has quit [Ping timeout: 248 seconds]
Seich has quit [Ping timeout: 272 seconds]
timonv has quit [Remote host closed the connection]
nari has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
hiroyuki has quit [Read error: Connection reset by peer]
xk_id has quit [Client Quit]
tylersmith has quit [Ping timeout: 272 seconds]
duggiefresh has joined #ruby
dhruvasagar has joined #ruby
hiroyuki has joined #ruby
io_syl has joined #ruby
hiroyuki has quit [Read error: Connection reset by peer]
Guest46643 has quit [Ping timeout: 246 seconds]
hiroyuki has joined #ruby
zeeraw has joined #ruby
Czupa has quit [Quit: Wychodzi]
timonv has quit [Ping timeout: 272 seconds]
watermel0n has joined #ruby
aagdbl has joined #ruby
brtdv has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
newbiehacker has quit [Ping timeout: 246 seconds]
krz has quit [Ping timeout: 248 seconds]
jerius has joined #ruby
aagdbl has quit [Client Quit]
shvelo has quit [Ping timeout: 246 seconds]
mixel has quit [Read error: No route to host]
gasbakid__ has quit [Ping timeout: 272 seconds]
aagdbl has joined #ruby
aagdbl has quit [Client Quit]
aagdbl has joined #ruby
zeeraw has quit [Quit: Computer has gone to sleep.]
gasbakid has joined #ruby
radic has quit [Read error: Connection reset by peer]
radic has joined #ruby
radic has quit [Read error: Connection reset by peer]
radic has joined #ruby
ua has quit [Quit: Leaving]
EvanR_ has joined #ruby
atmosx has quit [Quit: computer went to sleep...]
iszak has quit [Quit: Page closed]
iliketurtles has joined #ruby
paolooo has joined #ruby
krz has joined #ruby
radic has quit [Read error: Connection reset by peer]
radic has joined #ruby
TomRone has joined #ruby
Hanmac1 has joined #ruby
plotter has quit [Remote host closed the connection]
jonathanwallace has quit [Quit: WeeChat 0.4.1]
gasbakid has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 272 seconds]
sayan has joined #ruby
gazarsgo has quit [Quit: gazarsgo]
sambao21 has quit [Ping timeout: 260 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hanmac1 is now known as Hanmac
TomRone has quit [Ping timeout: 252 seconds]
jjbohn has quit [Quit: Leaving...]
brtdv has quit []
relix has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
Czupa has joined #ruby
arietis has joined #ruby
jerius has quit [Quit: Computer has gone to sleep.]
radic has quit [Ping timeout: 245 seconds]
beermouse has quit [Quit: beermouse]
paolooo has quit [Ping timeout: 250 seconds]
ewnd9 has quit [Ping timeout: 252 seconds]
mklappstuhl has quit [Remote host closed the connection]
zz_tsykoduk is now known as tsykoduk
ua has joined #ruby
Kabaka has quit [Remote host closed the connection]
Kabaka has joined #ruby
phus1on has joined #ruby
woo_nasty has joined #ruby
mklappstuhl has joined #ruby
gianlucadv has quit [Ping timeout: 260 seconds]
timonv has joined #ruby
mjs2600 has quit [Remote host closed the connection]
Kabaka has quit [Excess Flood]
Kabaka has joined #ruby
noop has quit [Ping timeout: 272 seconds]
brtdv has joined #ruby
brtdv has quit [Client Quit]
ananthakumaran has quit [Quit: Leaving.]
jjbohn has joined #ruby
noop has joined #ruby
beermouse has joined #ruby
myappleguy1 has quit [Quit: WeeChat 0.4.2]
theoretick has joined #ruby
shvelo has joined #ruby
radic has joined #ruby
tsykoduk is now known as zz_tsykoduk
arietis has quit [Quit: Computer has gone to sleep.]
TomRone has joined #ruby
Kabaka has quit [Ping timeout: 240 seconds]
brtdv has joined #ruby
fysaen has joined #ruby
hiroyuki has quit [Remote host closed the connection]
banisterfiend has joined #ruby
hiroyuki has joined #ruby
mary5030 has joined #ruby
phansch has joined #ruby
phansch has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 252 seconds]
thekkid has joined #ruby
banisterfiend has quit [Client Quit]
Kabaka has joined #ruby
EvanR_ has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Remote host closed the connection]
iliketurtles has quit [Ping timeout: 245 seconds]
sambao21 has joined #ruby
TomRone has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
Seich has joined #ruby
mary5030 has quit [Remote host closed the connection]
gianlucadv has joined #ruby
gianlucadv has quit [Remote host closed the connection]
mary5030 has joined #ruby
EvanR_ has joined #ruby
tylersmith has joined #ruby
radic has quit [Read error: Connection reset by peer]
radic has joined #ruby
beermouse has quit [Quit: beermouse]
sambao21 has quit [Ping timeout: 248 seconds]
dr_bob has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
Seich has quit [Ping timeout: 248 seconds]
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
tylersmith has quit [Ping timeout: 245 seconds]
h0rrorvacui has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
fysaen has quit [Quit: Linkinus - http://linkinus.com]
dkastner has quit [Read error: Operation timed out]
mrsolo has joined #ruby
tomasso has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
<duggiefresh> \quit
duggiefresh has quit [Quit: WeeChat 0.3.8]
<Hanmac> shevy: "8.93% documented" => "24.68% documented" hah beat that! XD
ericx2x has joined #ruby
vlad_starkov has joined #ruby
mary5030 has quit [Remote host closed the connection]
otherj has joined #ruby
mary5030 has joined #ruby
radic has quit [Read error: Connection reset by peer]
radic has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
z has quit [Read error: Connection reset by peer]
radic has quit [Remote host closed the connection]
radic has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
vlad_starkov has joined #ruby
mary5030 has quit [Ping timeout: 272 seconds]
arietis has joined #ruby
Davey has joined #ruby
mrsolo has joined #ruby
kirun_ has joined #ruby
thekkid has quit [Remote host closed the connection]
wesside has joined #ruby
brtdv has quit []
FL1SK has quit [Read error: Connection reset by peer]
kirun has quit [Ping timeout: 272 seconds]
iliketurtles has joined #ruby
FL1SK has joined #ruby
Advocation has joined #ruby
Spami has joined #ruby
parduse has quit [Read error: Connection reset by peer]
sandeepk has joined #ruby
sambao21 has joined #ruby
parduse has joined #ruby
decoponio has quit [Quit: Leaving...]
nobitanobi has joined #ruby
soxet has quit [Ping timeout: 245 seconds]
yacks has joined #ruby
radic has quit [Remote host closed the connection]
radic has joined #ruby
<nobitanobi> morning folks
banisterfiend has joined #ruby
Fire-Dragon-DoL has joined #ruby
<hello_world> nobitanobi: morning
billy_ran_away has quit [Ping timeout: 240 seconds]
jjbohn has quit [Quit: Leaving...]
radic has quit [Read error: Connection reset by peer]
radic has joined #ruby
rubydreamr has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
mjs2600 has joined #ruby
noop has quit [Ping timeout: 265 seconds]
<rubydreamr> yoyo
brtdv has joined #ruby
<rubydreamr> curious if anyone has an answer on this: https://gist.github.com/dreamr/7516146
blueOxigen has joined #ruby
bluOxigen has quit [Ping timeout: 272 seconds]
Xaitec has joined #ruby
theoretick has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Hanmac> rubydreamr: my first idea is that https://gist.github.com/Hanmac/7516193
jjbohn has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
colonolGron has quit [Quit: Lost terminal]
teedex has joined #ruby
<rubydreamr> Hanmac: thanks ill look into that
theoretick has joined #ruby
<rubydreamr> Hanmac: nope, I want to construct the lambda not pass it in
macmartine has joined #ruby
<rubydreamr> Hanmac: something more like https://gist.github.com/dreamr/7516146
radic has quit [Ping timeout: 272 seconds]
<rubydreamr> Hanmac: basically it is the select that I want to generate based on the size
nobitanobi has quit [Ping timeout: 245 seconds]
radic has joined #ruby
_serial_ has joined #ruby
freezey has joined #ruby
nobitanobi has joined #ruby
<Hanmac> rubydreamr: PS: i dont think the #flatten at the end is a good idea
<Hanmac> if you only want the first sequence use find, not select
adambeynon has joined #ruby
cafhacker has joined #ruby
<rubydreamr> Hanmac: good ctach, you are correct
<Hanmac> without flatten: detect_sequence([1,2,3,4],2) #=> [[1, 2], [2, 3], [3, 4]] detect_sequence([1,2,3,4],3) #=> [[1, 2, 3], [2, 3, 4]]
brtdv has quit []
<Hoozt> Hello people. I'm having troubles deploying a rails application on a debian machine with apache + passanger? I get an error message saying there's a syntax error in my Gemfile, beacuse of the hash syntax, like ":production". I guess it isn't using the right ruby? But In my apache config I have set "PassengerRuby /root/.rbenv/versions/2.0.0-p247/bin/ruby" and also "SetEnv GEM_PATH /root/.rbenv/versions/2.0.0-p247/lib/ruby/gems/
<Hoozt> 2.0.0". What Am I missing here? :)
Papierkorb has joined #ruby
adambeynon has quit [Client Quit]
fridim_ has joined #ruby
radic has quit [Ping timeout: 240 seconds]
adambeynon has joined #ruby
<rubydreamr> that is closer, but its the lambda I need to generate, if 3 is passed in then the proc takes 3 args, 4, it takes 4 and the && is genrated
<MrZYX> rubydreamr: see Hanmacs second construct
<rubydreamr> that exampkle is hard coded to 3 segments
adambeynon has quit [Read error: Connection reset by peer]
<Papierkorb> Hello, I have a mruby specific question, but #mruby is quite empty, so: I'm trying to embed mruby in my application. for this, I want to hold some mrb_value's. How can I tell the GC that it should not delete such values?
s2013 has joined #ruby
gazarsgo has joined #ruby
<MrZYX> rubydreamr: let me highlight it for you: .select {|ary| aray.each_cons(2).all? {|a,b| a+1 == b } }
<Hanmac> Hoozt: #rubyonrails ?
<s2013> is ruby good for data analysis?
baroquebobcat has joined #ruby
<havenwood> s2013: yes
<s2013> any library you recommend?
<s2013> like in python there is numpy, scipy etc
<gazarsgo> if you are already familiar with numpy / scipy etc not sure why you'd dork around with ruby
<havenwood> s2013: http://sciruby.com/
<s2013> cause im building the app in rails
<s2013> i heard sciruby was an abortion :\
<nobitanobi> s2013, try it :P
<s2013> i will
<rubydreamr> Hoozt: that shouldnt be a ruby issue, those are dsls not hashes
<s2013> Hoozt, whats your question
<rubydreamr> Hoozt: group :production do
<havenwood> s2013: it is just getting started
<gazarsgo> s2013: create data services rather than bake it all together
<rubydreamr> Hoozt: that isnt a hash
<s2013> gazarsgo, yeah i thought about doing that but i might as well try it in ruby first.. its nothing intensive
<gazarsgo> if it's not rendering html it doesn't belong in rails imo
<rubydreamr> Papierkorb: sorry, mruby lost me when they got stuck in 1.8 land
<s2013> well gazarsgo basically im taking data set and outputting stuff in a web end using rails
<s2013> i can use flask but im not as familiar with that as i am with rails
<Hoozt> rubydeamr, symbol styntax? Sorry, I think you know what I mean.
<s2013> Hoozt, ffs whats your question?
<Papierkorb> rubydreamr: oh damn i forgot about that. any other more modern ruby lib available which is embedable?
<Hoozt> s2013, Im trying to deploy a rails application on a debian with apache and passenger. Getting an error saying I have syntax errors in my Gemfile.
<rubydreamr> s2013: I use ruby for functional data processing all the time, but it isnt #beginnerruby stuff
<Hoozt> Due to lines like :production. Because of the ":"
<s2013> Hoozt, paste your gemfile at gist.github.com
<s2013> and the error
<rubydreamr> Hoozt: on that machine do a ruby -v
<s2013> also this is a question that belongs more on #ror
<rubydreamr> just to be sure you are on the ruby you think you are
<Hoozt> ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux]
iliketurtles has quit [Ping timeout: 248 seconds]
<rubydreamr> gist your gemfile
<s2013> Hoozt, dude follow directions please. paste your gemfile and full error
Seich has joined #ruby
<Hoozt> I wilk, one sec. I only have 10 fingers! :)
<rubydreamr> s2013: chill out homie, smoke a bowl
<rubydreamr> i'll blaze one for you if you cant
<s2013> im good.
tylersmith has joined #ruby
soxet has joined #ruby
cafhacker has left #ruby ["Textual IRC Client: www.textualapp.com"]
sayan has quit [Quit: Leaving]
<s2013> uh use group :production do
<s2013> are you commenting it out?
<Hoozt> Yes, I did just to check what happend but you see, it's a syntax error.
<Hoozt> ":"
<Hoozt> Ruby (Rack) application could not be started
<Hoozt> syntax error, unexpected ':', expecting kEND gem 'sdoc', require: false ^ (Bundler::GemfileError)
<Hoozt> Gemfile:41
<Hoozt> Before, it was line 35
Seich has quit [Ping timeout: 265 seconds]
relix has joined #ruby
<Hoozt> And it works locally
<s2013> are you building some bitcoin thing?
tylersmith has quit [Ping timeout: 246 seconds]
radic has joined #ruby
<Hoozt> Yea, kind of. But, ok, thx. I'll try the rails channel.
radic has quit [Remote host closed the connection]
macmartine has quit [Remote host closed the connection]
sandeepk has quit [Ping timeout: 272 seconds]
radic has joined #ruby
<rubydreamr> Hoozt: nothing is wrong with your gemfile, it is a server setup issue of some kind
<rubydreamr> Hoozt: did you gist the stack?
<rubydreamr> i saw the gemfile but no stack
<s2013> what version of ruby is it
<s2013> try :require => false
<havenwood> yeah, i worry 1.8
GoodTimes has joined #ruby
<s2013> does rails 4 even work with 1.8 ?
<havenwood> no
<rubydreamr> s2013: nope
<s2013> yeah try ruby -v
Apane has joined #ruby
<s2013> otherwise try :require => false and see if it gives you a diff error
jibi has joined #ruby
<havenwood> 1.8 is past end-of-life. Hoozt: update to Ruby 2.0, and if you think you are already using it double check
<rubydreamr> Hoozt: you might have rvm or rbenv changign your ruby on the server when running
<havenwood> rubydreamr: chruby! :P
<Hoozt> It's running 2.0
<Hoozt> rails 4
<s2013> dude please change it to :require => false
<s2013> and see what it says then
<rubydreamr> ^^
<havenwood> Hoozt: doesn't seem to be running 2.0
<Hoozt> OK, I will dude, One sec.
<rubydreamr> I'd drop this in my gemfile and bundle raise '
<rubydreamr> raise `ruby -v`
<rubydreamr> then you will know for sure
vlad_sta_ has joined #ruby
<havenwood> RUBY_VERSION
<s2013> which hosting company is it?
<Hoozt> AHA!
<s2013> a lot of hosting companies are pretty shitty when it comes to rails support
<Hoozt> changed to => syntax
<Hoozt> got a new error
<havenwood> Hoozt: your bigger problem is you are on Ruby 1.8, fix that
<Hoozt> "Your Ruby version is 1.8.7, but your Gemfile specified 2.0.0 (Bundler::RubyVersionMismatch)"
<s2013> shocking
<havenwood> >.>
<Hoozt> but what the hell, when I do a ruby -v it's 2.0.0
<s2013> are you doing it on your own computer?
<Hoozt> lol
<s2013> or did you ssh in
<Hoozt> no
<Hoozt> on the debian server
<Hoozt> yea
<havenwood> Hoozt: did you use update-alternatives to set ruby?
<havenwood> Hoozt: Or RVM, chruby, or rbenv?
<Hoozt> rbenv
<havenwood> shims...
<s2013> also which hosting company is it?
<havenwood> Hoozt: well, it is failing
vlad_starkov has quit [Ping timeout: 252 seconds]
<Hoozt> Yes, it is failing
<havenwood> Hoozt: rehash or whatever it is that rbenv folk do :P
<havenwood> <3 chruby
Brando753 has quit [Ping timeout: 264 seconds]
<Hoozt> tried rehashing, no result
<Hanmac> Hoozt: i think the prob is that you use rbenv in user mode ...
<Hanmac> you switch the ruby for the default user, but your website runs from a different user
<Hoozt> Im root on this server
<havenwood> Hoozt: Maybe start by uninstalling 1.8. :P
<havenwood> Hanmac: you use update-alternatives, right?
<Hanmac> havenwood: normaly yes, but currently i simply installed ruby from source
<s2013> try running irb
<s2013> and see what that says
<s2013> it should tell you what version its on
Brando753 has joined #ruby
banister has joined #ruby
p8952 has quit [Remote host closed the connection]
<Hoozt> But I already know it's running 1.8
<havenwood> Hanmac: mm, yeah i install from source or ruby-install
<Hoozt> Although in cd /root/.rbenv/versions/ I only have 2.0 there
<havenwood> Hoozt: i presume it is an apt package
<s2013> whatever man. good luck
mengu has joined #ruby
sepp2k has quit [Quit: Leaving.]
Hanmac1 has joined #ruby
<havenwood> Hoozt: dpkg -s ruby
dr_bob__ has joined #ruby
freezey has quit [Remote host closed the connection]
subbyyy has joined #ruby
<havenwood> omg, a lambda dressing up as a proc!
<rubydreamr> Hanmac: ugly but it works and it is functional, thanks for the eyeball on that find!
<Hoozt> Um havenwood isn't that removing ruby completely?
VTLob has joined #ruby
<rubydreamr> lol, a lambda IS a proc but marked as a lambda for closure
<rubydreamr> ruby is a very confused girl, I like her that way
<havenwood> Hoozt: well, it would remove the apt packaged ruby completely, but that would be the point
atno has quit [Ping timeout: 268 seconds]
jenskarlsen has joined #ruby
DanBoy has quit [Ping timeout: 240 seconds]
adambeynon has joined #ruby
Hanmac has quit [Ping timeout: 265 seconds]
<havenwood> Hoozt: You can install Ruby with apt, with a tool like ruby-install or ruby-build, or build it yourself
<havenwood> Hoozt: Each functions on its own.
danshultz has joined #ruby
dr_bob has quit [Ping timeout: 248 seconds]
<rubydreamr> Hoozt: rbenv or chruby
Seich has joined #ruby
DanBoy has joined #ruby
Hanmac1 is now known as Hanmac
rubydreamr has quit [Quit: Page closed]
<havenwood> Hoozt: So 1) choose apt/update-alternatives, ruby-install/chruby, ruby-build/rbenv, or rvm, 2) git rid of the other options' Rubies (or not, you can leave system Ruby in place), 3) ???, 4) Profit.
<Hanmac> rubydreamr: why not using .select {|ary| aray.each_cons(2).all? {|a,b| a+1 == b } } ?
mklappstuhl has quit [Remote host closed the connection]
bassclef is now known as axilla
axilla is now known as bassclef
skaflem has quit [Quit: Leaving]
xk_id has joined #ruby
brian___ has quit [Quit: brian___]
casheew has quit [Read error: Connection reset by peer]
Fire-Dragon-DoL has quit [Quit: Leaving.]
radic has quit [Read error: Connection reset by peer]
krnflake has quit [Read error: Connection reset by peer]
radic has joined #ruby
jjbohn has quit [Quit: Leaving...]
jibi has quit [Quit: .]
banghouse2 has joined #ruby
_serial_ has quit [Quit: Ex-Chat]
iliketurtles has joined #ruby
radic has quit [Remote host closed the connection]
randomnick_ has joined #ruby
Paradox has quit [Ping timeout: 240 seconds]
atno has joined #ruby
teedex has quit [Remote host closed the connection]
teedex has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
Lewix has joined #ruby
Fire-Dragon-DoL has joined #ruby
Dwarf has quit [Ping timeout: 240 seconds]
valesk has joined #ruby
heath has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
blo has quit [Ping timeout: 240 seconds]
heath has joined #ruby
mjc_ has quit [Quit: No Ping reply in 180 seconds.]
TheShaun has quit [Ping timeout: 240 seconds]
soxet has quit [Ping timeout: 264 seconds]
niftylettuce has quit [Ping timeout: 240 seconds]
JoeTheGuest has quit [Ping timeout: 240 seconds]
seich- has quit [Ping timeout: 240 seconds]
dr_bob__ has quit [Quit: Tune in next week when you'll hear Dr. Bob say...]
crus` has joined #ruby
JoeTheGuest has joined #ruby
Dwarf has joined #ruby
teedex has quit [Ping timeout: 265 seconds]
radic has joined #ruby
Paradox has joined #ruby
radic has quit [Remote host closed the connection]
Y_Ichiro_ has joined #ruby
Y_Ichiro_ has quit [Changing host]
Y_Ichiro_ has joined #ruby
hashpuppy has joined #ruby
TheShaun has joined #ruby
casheew has joined #ruby
niftylettuce has joined #ruby
nonamehero has quit [Ping timeout: 240 seconds]
crus has quit [Ping timeout: 240 seconds]
blo has joined #ruby
Y_Ichiro has quit [Read error: Connection reset by peer]
freezey has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
krnflake has joined #ruby
mjc_ has joined #ruby
seich- has joined #ruby
nonamehero has joined #ruby
Seich has quit [Read error: Operation timed out]
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
casheew has quit [Read error: Connection reset by peer]
eeriegeek has quit [Quit: Leaving.]
zz_tsykoduk is now known as tsykoduk
Seich has joined #ruby
valesk has quit [Quit: No Ping reply in 180 seconds.]
casheew has joined #ruby
anderson is now known as carer
carer is now known as anderson
casheew has quit [Read error: Connection reset by peer]
Methylated has joined #ruby
mengu has quit [Remote host closed the connection]
kobain has joined #ruby
robonerd is now known as testr0n
casheew has joined #ruby
<Apane> hey guys, working out a selection_sort algorithm in ruby. what does the -2 mean in this line? for i in (0..NUM_STUDENTS - 2)
shredding has joined #ruby
<havenwood> Apane: it means subtract 2
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jjbohn has joined #ruby
<havenwood> >> NUM_STUDENTS = 4; NUM_STUDENTS.pred.pred == NUM_STUDENTS - 2
<eval-in> havenwood => true (https://eval.in/69179)
tsykoduk is now known as zz_tsykoduk
<havenwood> Apane: So a range from 0 up to two less than that constant.
shredding has quit [Client Quit]
<havenwood> >> 4..22 - 2
<eval-in> havenwood => 4..20 (https://eval.in/69180)
<Apane> havenwood, thanks - any reason why one would -2 ?
jjbohn has quit [Client Quit]
<Apane> any notable reason I should say*
postmodern has joined #ruby
CaptainJet has joined #ruby
<havenwood> Apane: I don't know why you're sorting students. The answer likely lies therewithin.
psayian has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<havenwood> Apane: If that is indeed the logic they wanted, prolly coulda done: NUM_STUDENTS.pred.times do
<havenwood> Is this homework? :P
<Apane> thanks havenwood, I'll give that a shot
<Apane> no, I'm going through a ruby computer science textbook
<Apane> learning algorithms in ruby for the first time :)
jjbohn has joined #ruby
<havenwood> >> 4.times.map { |n| n.to_s(2) }
<eval-in> havenwood => ["0", "1", "10", "11"] (https://eval.in/69181)
zarubin has joined #ruby
<Apane> havenwood, but that's great thanks.
dnyy has joined #ruby
banister has joined #ruby
carraroj has joined #ruby
iliketurtles has quit [Ping timeout: 240 seconds]
jerius has joined #ruby
tylersmith has joined #ruby
xcthulhu has quit [Quit: xcthulhu]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Monie has joined #ruby
szarubin has joined #ruby
shadoi has joined #ruby
Soda has quit [Read error: Connection reset by peer]
vlad_sta_ has quit [Remote host closed the connection]
mjs2600 has quit [Remote host closed the connection]
phus1on has quit [Quit: .]
mjs2600 has joined #ruby
flops has joined #ruby
tylersmith has quit [Ping timeout: 265 seconds]
cafhacker has joined #ruby
sam113101 has quit [Quit: WeeChat 0.4.3-dev]
zarubin has quit [Quit: Leaving]
nfk has quit [Quit: yawn]
szarubin has quit []
zarubin has joined #ruby
MattStratton has joined #ruby
Lewix has quit [Remote host closed the connection]
jerius has quit [Quit: Computer has gone to sleep.]
theoretick has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
d45h has quit [Ping timeout: 272 seconds]
tiglog has quit [Ping timeout: 245 seconds]
beermouse has joined #ruby
Es0teric has joined #ruby
nbrosnahan has quit [Ping timeout: 248 seconds]
lkba has quit [Ping timeout: 264 seconds]
MattStratton has quit [Read error: Connection reset by peer]
MattStratton has joined #ruby
MattStratton has quit [Max SendQ exceeded]
ghostjangles has joined #ruby
Es0teric has quit [Remote host closed the connection]
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
arif has joined #ruby
arif has left #ruby [#ruby]
ephemerian has joined #ruby
funburn has joined #ruby
<Hamled> Is it always the case that a block of code passed to class_eval could be added directly into the class definition? I'm looking at a stack overflow questions and one of the answers suggests using class_eval with a block of bare statements
pragmatism has joined #ruby
<apeiros> Hamled: almost
nbrosnahan has joined #ruby
<apeiros> constant lookup happens from surrounding lexical context, not the receivers
Methylated has quit [Quit: Leaving.]
hello_world has quit [Ping timeout: 250 seconds]
Methylated has joined #ruby
<apeiros> also the whole closer aspect of blocks is different
<Hamled> http://stackoverflow.com/a/11268726 in this case _validators and _validate_callbacks are defined as class attributes
<Hamled> could I just write that code outside of any def ... end inside the class?
<Hamled> or is there some specific place that I would need to put it
postmodern has quit [Quit: Leaving]
<Hamled> trying to use this code in a subclass definition rather than modify a class post-definition
funburn has quit [Ping timeout: 264 seconds]
simoz has joined #ruby
mercwithamouth has joined #ruby
nouitfvf_ has joined #ruby
nouitfvf has quit [Ping timeout: 260 seconds]
keyvan has quit [Ping timeout: 240 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
keyvan has joined #ruby
carraroj has quit [Ping timeout: 272 seconds]
iliketurtles has joined #ruby
<Hamled> nm
krz has quit [Quit: krz]
krz has joined #ruby
krz has joined #ruby
krz has quit [Changing host]
Tuxist has quit [Remote host closed the connection]
Hoozt has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
atno has quit [Ping timeout: 272 seconds]
Methylated has left #ruby [#ruby]
xk_id has quit [Quit:
taternuts has joined #ruby
heftig has quit [Ping timeout: 246 seconds]
heftig has joined #ruby
vlad_starkov has joined #ruby
mklappstuhl has quit [Ping timeout: 264 seconds]
ghostjangles has quit [Quit: Leaving]
ghostjangles has joined #ruby
Hanmac1 has joined #ruby
simoz has quit [Ping timeout: 272 seconds]
mojjojo has joined #ruby
rogne has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 240 seconds]
vansteenb has joined #ruby
Hanmac1 is now known as Hanmac
relix has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby
mweshi has joined #ruby
BizarreCake has quit [Ping timeout: 246 seconds]
Xaitec has quit [Remote host closed the connection]
i_s has joined #ruby
relix has joined #ruby
Seich has quit [Quit: Lingo - http://www.lingoirc.com]
claymore has quit [Quit: Leaving]
Ripp__ has joined #ruby
sambao21 has quit [Ping timeout: 265 seconds]
atmosx has joined #ruby
carraroj has joined #ruby
iliketurtles has quit [Ping timeout: 245 seconds]
adambeynon has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lewix has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
testr0n is now known as robonerd
_honning_ has joined #ruby
ckinni has joined #ruby
mmcdaris has joined #ruby
timonv has joined #ruby
tylersmith has joined #ruby
workmad3 has quit [Read error: Operation timed out]
carraroj has quit [Ping timeout: 272 seconds]
Davey has joined #ruby
carraroj has joined #ruby
Mon_Ouie has quit [Read error: Connection reset by peer]
tylersmith has quit [Ping timeout: 246 seconds]
Davey has quit [Remote host closed the connection]
mjs2600 has quit [Remote host closed the connection]
zipper has joined #ruby
mjs2600 has joined #ruby
carraroj has quit [Ping timeout: 246 seconds]
estebistec has joined #ruby
vlad_starkov has quit [Ping timeout: 272 seconds]
JMcAfreak has quit [Remote host closed the connection]
i_s has quit [Remote host closed the connection]
funburn has joined #ruby
rickruby has joined #ruby
mjs2600 has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
flops is now known as _eckse
mjs2600 has joined #ruby
_eckse is now known as flops
canton7 has quit [Ping timeout: 264 seconds]
MattStratton has joined #ruby
jjbohn has quit [Quit: Linkinus - http://linkinus.com]
jeremywrowe has quit [Ping timeout: 240 seconds]
danshultz has quit [Ping timeout: 245 seconds]
coffeina has joined #ruby
sambao21 has joined #ruby
psayian has quit [Ping timeout: 250 seconds]
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yano has quit [Ping timeout: 620 seconds]
canton7 has joined #ruby
havenwood has quit [Remote host closed the connection]
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
Clooth has joined #ruby
havenwood has joined #ruby
ckinni has joined #ruby
ckinni has quit [Max SendQ exceeded]
yfeldblum has joined #ruby
ckinni has joined #ruby
iliketurtles has joined #ruby
atno has joined #ruby
Lewix has quit [Remote host closed the connection]
intuxicated has quit [Ping timeout: 272 seconds]
forchunet has joined #ruby
gazarsgo_ has joined #ruby
yfeldblum has quit [Remote host closed the connection]
gazarsgo has quit [Ping timeout: 265 seconds]
gazarsgo_ is now known as gazarsgo
yfeldblum has joined #ruby
havenwood has quit [Ping timeout: 272 seconds]
aapzak has quit [Read error: Connection reset by peer]
F1skr has quit [Quit: WeeChat 0.4.2]
jeremywrowe has joined #ruby
freezey has quit [Remote host closed the connection]
aspires has joined #ruby
Advocation has quit [Quit: Advocation]
claymore has joined #ruby
claymore has joined #ruby
claymore has quit [Changing host]
aapzak has joined #ruby
vlad_starkov has joined #ruby
simoz has joined #ruby
nateberkopec has quit [Quit: Leaving...]
theoretick has joined #ruby
theoretick has quit [Client Quit]
zz_tsykoduk is now known as tsykoduk
popl has quit [Quit: We must make an idol of our fear, and call it God.]
vlad_starkov has quit [Read error: Connection reset by peer]
sambao21 has quit [Ping timeout: 246 seconds]
Czupa has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
xk_id has joined #ruby
p8952 has joined #ruby
AlSquire has joined #ruby
mgolisch has quit [Quit: No Ping reply in 180 seconds.]
mgolisch has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
funburn has quit [Quit: funburn]
aspires has quit [Quit: sudo making a sandwich]
mjs2600 has quit [Remote host closed the connection]
zipper has quit [Quit: leaving]
funburn has joined #ruby
tsykoduk is now known as zz_tsykoduk
sam113101 has joined #ruby
jeremywrowe has quit [Ping timeout: 248 seconds]
macmartine has joined #ruby
havenwood has joined #ruby
funburn has quit [Ping timeout: 246 seconds]
macmartine has quit [Remote host closed the connection]
xcess_denied has quit [Quit: Leaving...]
w4pm has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
derebos has joined #ruby
obs has joined #ruby
coderhs has joined #ruby
havenwood has joined #ruby
iliketurtles has quit [Ping timeout: 265 seconds]
psyprus has quit [Ping timeout: 240 seconds]
blueOxigen has quit [Ping timeout: 248 seconds]
platzhirsch has joined #ruby
psyprus has joined #ruby
nbrosnahan has quit [Quit: Textual IRC Client: www.textualapp.com]
Apane has quit [Ping timeout: 248 seconds]
bret has left #ruby [#ruby]
aa47f8 has quit [Read error: Connection reset by peer]
zero7 has quit [Ping timeout: 252 seconds]
brianpWins has joined #ruby
tekacs has quit [Ping timeout: 252 seconds]
tonni_ has quit [Ping timeout: 252 seconds]
Niamkik has quit [Read error: Connection reset by peer]
xerxas has quit [Ping timeout: 252 seconds]
lectrick has quit [Ping timeout: 252 seconds]
Sammael has quit [Ping timeout: 252 seconds]
derf- has quit [Ping timeout: 252 seconds]
ohcibi has quit [Ping timeout: 252 seconds]
krnflake has quit [Ping timeout: 252 seconds]
tommyblue has quit [Ping timeout: 252 seconds]
phrozen77 has quit [Ping timeout: 252 seconds]
[Neurotic] has quit [Ping timeout: 252 seconds]
percival__ has quit [Ping timeout: 252 seconds]
Lewix has joined #ruby
<platzhirsch> just nil?
percival___ has joined #ruby
Niamkik_ has joined #ruby
<waxjar> a Promise perhaps?
tylersmith has joined #ruby
Xiti` has joined #ruby
eliasp_ has joined #ruby
<platzhirsch> exceptions seems not appropriate for a common case :)
colonolGron has joined #ruby
aa47f8_ has joined #ruby
crazysim_ has joined #ruby
<platzhirsch> oh sweet, I have forgotten about future and promises
SirFunk has joined #ruby
<platzhirsch> but since it's more for displaying a value in the end, it seems not so appropriate
<platzhirsch> monsieur et madame of method contracts. What return value would you return for "has not been calculated yet" ?
sambao21 has joined #ruby
<waxjar> or just have your method block until the value has actually been calculated
tonni has joined #ruby
zero7 has joined #ruby
tekmaster has joined #ruby
finges has joined #ruby
callum_ has joined #ruby
ohcibi has joined #ruby
xcess_denied has joined #ruby
lectrick_ has joined #ruby
kalleth_ has joined #ruby
sebastianb has joined #ruby
crazysim has quit [Excess Flood]
canderson has quit [Ping timeout: 252 seconds]
sebastianb has quit [Ping timeout: 252 seconds]
SirFunk has quit [Ping timeout: 252 seconds]
SJrX has quit [Ping timeout: 252 seconds]
eliasp has quit [Ping timeout: 252 seconds]
kalleth has quit [Ping timeout: 252 seconds]
Radar has quit [Ping timeout: 252 seconds]
mweshi has quit [Quit: mweshi]
zigomir has quit [Ping timeout: 246 seconds]
zxq9 has quit [Remote host closed the connection]
Nilium has quit [Ping timeout: 252 seconds]
sam113101 has quit [Quit: WeeChat 0.4.3-dev]
tylersmith has quit [Ping timeout: 272 seconds]
avelldiroll has quit [Ping timeout: 252 seconds]
sirecote has quit [Ping timeout: 252 seconds]
finges has quit [Ping timeout: 252 seconds]
havenwood has quit [Ping timeout: 240 seconds]
Xiti has quit [Ping timeout: 252 seconds]
edin has quit [Ping timeout: 252 seconds]
phrozen77 has joined #ruby
Radar has joined #ruby
Radar is now known as Guest13674
SJr has joined #ruby
krnflake has joined #ruby
sirecote has joined #ruby
tommyblue has joined #ruby
avelldiroll has joined #ruby
tomasso has left #ruby [#ruby]
d45h has joined #ruby
xerxas has joined #ruby
Nilium has joined #ruby
edin has joined #ruby
madb055 has joined #ruby
[Neurotic] has joined #ruby
i_s has joined #ruby
derf- has joined #ruby
subbyyy has quit [Ping timeout: 272 seconds]
sambao21 has quit [Ping timeout: 264 seconds]
mjs2600 has joined #ruby
atmosx has quit [Ping timeout: 246 seconds]
beermouse has quit [Quit: beermouse]
i_s has quit [Ping timeout: 240 seconds]
<nobitanobi> shevy, wake up man
<shevy> wat
<shevy> I woke up an hour ago :)
<shevy> but my joints are like frozen...
<Morrolan> oO
<Morrolan> Oh, those kind of joints.
xk_id has quit [Quit:
d45h has quit [Ping timeout: 272 seconds]
<shevy> yeah, waking up at night sucks
mojjojo has quit [Quit: mojjojo]
Apane has joined #ruby
<nobitanobi> I have a question here...
<nobitanobi> I forked a project, which have a lots of PR waiting.
<nobitanobi> I should always base my PR on master right? Not taking into account the PR that are waiting there.
beermouse has joined #ruby
nateberkopec has joined #ruby
mojjojo has joined #ruby
sam113101 has joined #ruby
mojjojo has quit [Client Quit]
psyl0n has joined #ruby
<bnagy> yes, imho
beermouse has quit [Client Quit]
<bnagy> it's easier for the maintainer to cherry-pick
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danshultz has joined #ruby
iajrz_ has joined #ruby
iajrz_ is now known as iajrz
thelorax123 has quit [Remote host closed the connection]
mr`spock has joined #ruby
xcess_denied has quit [Quit: Leaving...]
freezey has joined #ruby
<mr`spock> hi folks. i'm getting ready to prepare production environments for a rails 4 app.
watermel0n has quit []
<mr`spock> i'm going with debian 7, and initially i setup rvm, but it's kind of a small pain with how rvm is so reliant upon proper environment setup
eeriegeek has joined #ruby
psyprus has quit [Ping timeout: 240 seconds]
thelorax123 has joined #ruby
<iajrz> mr`spock: missin' libs?
psyprus has joined #ruby
Bira has joined #ruby
Guest13674 is now known as Radar
<mr`spock> iajrz, i need to install a system-wide ruby 2.0.0-p247
<iajrz> huh
<bnagy> don't use rvm for production
<iajrz> I haven't done systemwide
<bnagy> in fact imho don't use any version manager for prod
emocakes has joined #ruby
danshultz has quit [Ping timeout: 246 seconds]
<mr`spock> it's looking like i should be compiling 2.0.0-p247 and then using `update-alternative` to inform the system of a new place where ruby's installed?
<iajrz> got a list of the (extra) libs you'd need to run rails on debian, though
<mr`spock> and hopefully `ruby-switch` will understand it.
<mr`spock> i already know what i need
<iajrz> then I'm too much of a noob to be any use
* iajrz lurks
<mr`spock> hehe well thanks anyways. you echoed what everyone else has regarding not using rvm in production
akonny has quit [Quit: akonny]
* mr`spock goes back to h4x0ring
* mr`spock returns to science station
<iajrz> why'd you want it to be system wide, though?
simoz has quit [Ping timeout: 246 seconds]
cafhacker has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<iajrz> mr`spock ^
coffeina has quit [Quit: Wychodzi]
derebos has quit [Ping timeout: 272 seconds]
EvanR_ has quit [Ping timeout: 252 seconds]
<mr`spock> have any other good way to tell unicorn and the system to find ruby in a certain directory?
<iajrz> link in /usr/bin?
<mr`spock> that's what update-alternatives + ruby-switch does
<mr`spock> so i'm going to try that route now
<bnagy> I never heard of ruby-switch
<iajrz> g'luck
iliketurtles has joined #ruby
<bnagy> why doesn't update-alternatives just work?
<mr`spock> thanks. it's a debian package.
<mr`spock> bnagy, it might. i don't know. i haven't taken a wack at that yet. just today i opened the source for `ruby-switch` to see how it was working internally; it piggybacks off update-alternatives
<shevy> debian still doesn't offer its users to run multiple versions of programs side by side?
<mr`spock> shevy, i think it does, which is update-alternatives
<mr`spock> (if that's what you would qualify as side-by-side)
<shevy> then why would use have to use rvm ...
osvico has quit [Ping timeout: 252 seconds]
simoz has joined #ruby
<bnagy> shevy y u no scrollback??
<shevy> what for
<iajrz> lol, I think rvm and rbenv are good tools to install any version of ruby, even if it's just the one
vlad_starkov has joined #ruby
<shevy> update-alternatives works for libraries too?
Sammael has joined #ruby
<mr`spock> iajrz, but rvm doesn't work very well with non-login terminals
<shevy> like if I want to try out gtk 2.24.0, 3.11 and 3.10.1 on debian
<bnagy> rvm is a horrific tool period
<bnagy> rbenv is basically just doing what update-alternatives does
<iajrz> never tried rvm, and never run ruby in a non-login terminal ...
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bnagy> ... then why do you have an opinion?
<bnagy> sorry to be blunt
relix has joined #ruby
<iajrz> 'cause I never had to install ruby "by hand"
<iajrz> just cause those guys exist
<mr`spock> well i think i can tell update-alternatives that a new version of ruby exists in X directory, and then ruby-switch will see ruby2 in that directory and symlink all the correct libraries and binaries
<iajrz> :) so, afaict, it's good to get up and running
<shevy> huh
<shevy> what is "ruby2"
mojjojo has joined #ruby
<iajrz> don't worry 'bout bluntness, if I was wrong, I'd like to have it inequivocally pointed out ;)
vlad_starkov has quit [Read error: Connection reset by peer]
<shevy> when ruby is compiled, the default name of the binary is "ruby"
<mr`spock> ruby-2.0.0-p247 which i'll compile into a directory
* iajrz goes back to the rails tutorial.
Apane has quit [Ping timeout: 240 seconds]
<mr`spock> correct, it'll be `ruby` in a directory
<shevy> mr`spock you mean you can compile by yourself and then still use update-alternatives?
nobitanobi has quit [Read error: Connection reset by peer]
<mr`spock> shevy, i'm going to attempt that, i believe
<mr`spock> i've tried many other things so far.
<shevy> I see
<shevy> I thought you meant in a debian-centric way
osvico has joined #ruby
<shevy> last time I had a debian system, it installed stuff into /usr/local/lib
<shevy> like, ruby was sitting at /usr/bin/ but the site dir was at /usr/local/lib/ruby*
<shevy> right mr`spock but for symlinks to be changable, one needs to know their real locations, and I am wondering how debian allows that. where do they store those multiple libraries ;P
_honning_ has quit [Remote host closed the connection]
<mr`spock> that's a good question. this may be the answer: http://packages.debian.org/wheezy/ruby-switch
jerius has joined #ruby
fridim_ has quit [Ping timeout: 272 seconds]
kofno has joined #ruby
<bnagy> ok so it's just a wrapper for update-alternatives
tjaco has joined #ruby
<mr`spock> bingo. i'm hoping i can instruct update-alternatives of the new binaries i'm compiling as we speak
<bnagy> like with java ( ew ) you need to do it for like 4 java binaries, cause no such wrapper exists
subbyyy has joined #ruby
aspires has joined #ruby
<bnagy> anyways, the alternatives db is the 'right' way to do it in debian style, imho
bugsinlights has joined #ruby
colonolGron has quit [Read error: Connection reset by peer]
<mr`spock> if this work i'll feel sooooo much better about this server
<platzhirsch> oh man, I totally forgot that you can/should include Comparable when implementing sort
colonolGron has joined #ruby
drumusician has quit [Ping timeout: 245 seconds]
ehaliewicz has joined #ruby
io_syl has quit []
<platzhirsch> Programming by contract, inject it intravenously
petey_ has joined #ruby
io_syl has joined #ruby
cafhacker has joined #ruby
iliketurtles has quit [Ping timeout: 264 seconds]
forchunet has quit [Quit: Page closed]
kofno has quit [Ping timeout: 272 seconds]
gstamp has quit [Quit: Textual IRC Client: www.textualapp.com]
obs has quit [Remote host closed the connection]
gstamp has joined #ruby
mjs2600 has quit [Ping timeout: 264 seconds]
TigerWolf has joined #ruby
subbyyy has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby
krz has quit [Quit: krz]
allsystemsarego has quit [Quit: Leaving]
mjs2600 has joined #ruby
gazarsgo has quit [Quit: gazarsgo]
tylersmith has joined #ruby
derebos has joined #ruby
havenwood has joined #ruby
yacks has quit [Ping timeout: 272 seconds]
EvanR_ has joined #ruby
nateberkopec has quit [Quit: Leaving...]
mrsolo has quit [Quit: This computer has gone to sleep]
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
yacks has joined #ruby
fschuindt has joined #ruby
sambao21 has joined #ruby
fschuindt has quit [Client Quit]
codemiller has joined #ruby
Ox6abe has quit [Remote host closed the connection]
codemiller has left #ruby ["Leaving"]
kobain has quit [Ping timeout: 252 seconds]
tylersmith has quit [Ping timeout: 240 seconds]
rjhunter has joined #ruby
aryaching has quit [Ping timeout: 272 seconds]
farn has quit [Read error: No route to host]
Ox6abe has joined #ruby
havenwood has quit [Ping timeout: 245 seconds]
gazarsgo has joined #ruby
sambao21 has quit [Ping timeout: 252 seconds]
farn has joined #ruby
Apane has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
madb055 has quit [Ping timeout: 252 seconds]
flops has quit [Remote host closed the connection]
Ziarkaen has joined #ruby
simoz has quit [Ping timeout: 252 seconds]
workmad3 has quit [Ping timeout: 248 seconds]
<mr`spock> dang it... so now what should i do? it seems installing ruby 2 and adding it to update-alternatives worked... but now gems are only installable by root.
RichardBaker has joined #ruby
apeiros has quit [Remote host closed the connection]
yano has joined #ruby
apeiros has joined #ruby
aa47f8_ has quit [Quit: aa47f8_]
claymore has quit [Quit: Leaving]
<bnagy> I am trying not to say 'duh?'
<lupine> specify a different GEM_HOME
<lupine> job done
<lupine> or whatever it's called. GEM_DIR ?
<mr`spock> well in all seriousness, how would one configure a debian machine for production use?
Grantlyk has joined #ruby
<bnagy> I would install gems as root
<mr`spock> so my deploy user - specify a custom GEM_DIR and it should be fine?
<mr`spock> so then run bundle as a separate user than the deploy user?
<lupine> we turn our gems into .deb packages instead
<mr`spock> (sounds like a GEM_DIR would be a better idea)
<lupine> it's not for everyone
<bnagy> why would you need bundle?
<mr`spock> so i can type `bundle` ?
<bnagy> I thought that was some craziness to lock versions or something ( never used it )
<bnagy> for prod I would have presumed you know the gems and versions you need
<mr`spock> i don't use it for that, although you can. to me bundle is a simple thing that makes sure the gems in my Gemfile are installed. that's all.
<mr`spock> yes. so installing them manually or via bundle makes no difference.
Grantlyk has quit [Remote host closed the connection]
<mr`spock> and when updates are rolled out, the updated gems and new gems need to be installed
platzhirsch has quit [Ping timeout: 246 seconds]
iajrz has quit [Ping timeout: 272 seconds]
mathrick has quit [Ping timeout: 245 seconds]
<bnagy> *shrug* I would be pushing .gems directly via some automated thing
iliketurtles has joined #ruby
petey_ has quit [Remote host closed the connection]
iajrz_ has joined #ruby
<mr`spock> or pull via some automated thing
petey_ has joined #ruby
<bnagy> depends where you're pulling from
<bnagy> Internet? NFW
jerius has quit [Quit: Computer has gone to sleep.]
tjaco has quit [Ping timeout: 248 seconds]
justsee has quit [Ping timeout: 252 seconds]
<mr`spock> i'm planning on checking out gem-mirror (i think that's what it's called)
<bnagy> and by the time you set up an internal gem server you may as well just roll out tested .gems, which are kind of like .debs anyway ( in some ways)
<mr`spock> lol
<bnagy> debs are better
petey__ has joined #ruby
sambao21 has joined #ruby
petey_ has quit [Read error: Connection reset by peer]
rjhunter has quit [Remote host closed the connection]
huttan_ has joined #ruby
mary5030 has joined #ruby
huttan has quit [Read error: Operation timed out]
vlad_starkov has joined #ruby
snuffeluffegus has joined #ruby
justsee has joined #ruby
aspires has quit [Quit: sudo making a sandwich]
zz_tsykoduk is now known as tsykoduk
vlad_starkov has quit [Read error: Connection reset by peer]
BrightNewFuture has joined #ruby
pskosinski_ has joined #ruby
<BrightNewFuture> I'm trying to use this code to redirect stdout to a string: https://www.ruby-forum.com/topic/59310#52442
<BrightNewFuture> For the part where it says "# Invoke method to test that writes to stdout." I tried doing puts 'a'.
<BrightNewFuture> But the result I got was
<BrightNewFuture> > sio.string
<BrightNewFuture> => " => [#<IO:<STDOUT>>, #<StringIO:0x007f847a842280>] \na\n => nil \n"
<BrightNewFuture> I thought it should just say 'a'. Did I do something wrong?
<BrightNewFuture> Ruby 1.9.3p448
wchun has quit [Ping timeout: 260 seconds]
tylersmith has joined #ruby
<BrightNewFuture> Oh I probably need semicolons...
pskosinski has quit [Ping timeout: 245 seconds]
pskosinski_ is now known as pskosinski
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
platzhirsch has joined #ruby
mary5030 has quit [Remote host closed the connection]
funburn has joined #ruby
mary5030 has joined #ruby
Ox6abe has quit [Remote host closed the connection]
<BrightNewFuture> Yeah that was it. I needed a semicolon after each statement to keep irb from printing what each statement returned.
madb055 has joined #ruby
mojjojo has quit [Quit: mojjojo]
mary5030_ has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
tsykoduk is now known as zz_tsykoduk
EvanR_ has quit [Ping timeout: 265 seconds]
vlad_starkov has joined #ruby
platzhirsch has quit [Read error: Connection reset by peer]
<bnagy> BrightNewFuture: you can also do conf.echo = false
VTLob has quit [Quit: VTLob]
vlad_starkov has quit [Read error: Connection reset by peer]
<BrightNewFuture> Interesting! I will remember that. Thank you bnagy. :)
xk_id has joined #ruby
sambao21 has quit [Ping timeout: 272 seconds]
Swizzy_ has joined #ruby
mercwithamouth has quit [Ping timeout: 272 seconds]
i_s has joined #ruby
chomskiii has quit [Read error: Connection reset by peer]
otherj has quit []
chomskiii has joined #ruby
bricker`away has quit [Ping timeout: 264 seconds]
bricker`away has joined #ruby
iliketurtles has quit [Ping timeout: 272 seconds]
weszlem has joined #ruby
MrZYX is now known as MrZYX|off
<Apane> hey guys, why am I getting a private method error here? https://gist.github.com/anonymous/65f1912696dbd8de6fe1
jerius has joined #ruby
subbyyy has joined #ruby
jerius has quit [Client Quit]
devyn has quit [Ping timeout: 248 seconds]
nfk has quit [Quit: yawn]
<Apane> I think I got it, it's cause there is no object
btanaka has joined #ruby
endash_ has joined #ruby
<bnagy> Apane: for i in ... is poor ruby style
havenwood has joined #ruby
<Apane> Indeed bnagy - learning from a computer science perspective so not using abstractions yet
<bnagy> nothing to do with that
<bnagy> it's always wrong
sam113101 has quit [Quit: WeeChat 0.4.3-dev]
kitak has joined #ruby
<Apane> bnagy, ok - what could be used as a correct alternative?
RichardBaker has quit [Quit: RichardBaker]
<bnagy> in this case, arr.each_index {|i| or arr.each_with_index {|grade, i| ...
havenwood has quit [Read error: Connection reset by peer]
havenn has joined #ruby
<bnagy> each.with_index also works on newer versions ( and is probably nicer )
sam113101 has joined #ruby
<Apane> thanks bnagy
<bnagy> also using + to build strings is wrong 99.9% of the time
<bnagy> "You've found it at index #{i}"
<Apane> #{ dsds } #{ } is preferred right
<Apane> Yep.
<bnagy> or blah << other
shvelo has quit [Ping timeout: 252 seconds]
jb41 has quit [Ping timeout: 260 seconds]
bruno-_ has joined #ruby
estebistec has quit [Remote host closed the connection]
pragmatism has quit [Quit: Leaving...]
platzhirsch has joined #ruby
kofno has joined #ruby
Ox6abe has joined #ruby
hashpuppy has quit [Quit: Textual IRC Client: www.textualapp.com]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
simoz has joined #ruby
i_s has quit [Remote host closed the connection]
nisstyre has joined #ruby
Ox6abe has quit [Ping timeout: 245 seconds]
wrseward has joined #ruby
madb055 has quit [Read error: Connection reset by peer]
relix has joined #ruby
havenn has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
havenwood has joined #ruby
brunto has quit [Ping timeout: 264 seconds]
madb055 has joined #ruby
bkparso has joined #ruby
iliketurtles has joined #ruby
thyagobr has joined #ruby
havenwood has quit [Ping timeout: 245 seconds]
freezey has quit [Remote host closed the connection]
ephemerian has quit [Quit: Leaving.]
beermouse has joined #ruby
mojjojo has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
colonolGron has quit [Quit: leaving]
mercwithamouth has joined #ruby
havenwood has joined #ruby
beermouse has quit [Client Quit]
banister has joined #ruby
BrightNewFuture has quit [Remote host closed the connection]
pragmatism has joined #ruby