apeiros changed the topic of #ruby-lang to: Ruby 2.1.3; 2.0.0-p576; 1.9.3-p547: http://ruby-lang.org || Paste code on http://gist.github.com
M3M0CooL has joined #ruby-lang
imkmf has quit [Quit: Textual IRC Client: www.textualapp.com]
tylersmith has quit [Remote host closed the connection]
banister has joined #ruby-lang
MichD is now known as michd
unsymbol has quit [Ping timeout: 272 seconds]
banister has quit [Client Quit]
bbyler_tho has joined #ruby-lang
diegovio1 has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 260 seconds]
diegoviola has quit [Ping timeout: 258 seconds]
diegovio1 is now known as diegoviola
thagomizer has quit [Quit: Leaving.]
ikrima has joined #ruby-lang
sepp2k1 has joined #ruby-lang
quimrstorres has joined #ruby-lang
sepp2k has quit [Ping timeout: 260 seconds]
_lexjm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
masterkorp has left #ruby-lang ["WeeChat 0.3.8"]
|jemc| has joined #ruby-lang
mikecmpbll has quit [Quit: i've nodded off.]
quimrstorres has quit [Ping timeout: 240 seconds]
SuMo_D has quit [Remote host closed the connection]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gix has quit [Ping timeout: 260 seconds]
ikrima has quit [Ping timeout: 255 seconds]
djbkd has quit [Quit: My people need me...]
shinnya has joined #ruby-lang
gix has joined #ruby-lang
bbyler_tho has quit [Remote host closed the connection]
jhass is now known as jhass|off
spastorino has quit [Quit: Connection closed for inactivity]
unsymbol has joined #ruby-lang
havenwood has quit []
M3M0CooL has quit []
amsi has quit [Quit: Leaving]
Asher has joined #ruby-lang
SuMo_D has joined #ruby-lang
ikrima has joined #ruby-lang
SuMo_D has quit [Ping timeout: 272 seconds]
Lewix has joined #ruby-lang
cads has quit [Ping timeout: 258 seconds]
sarkyniin has quit [Quit: Quitte]
lsegal has joined #ruby-lang
jonathan_alban has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
hackeron has quit [Ping timeout: 265 seconds]
hackeron has joined #ruby-lang
hackeron has quit [Changing host]
hackeron has joined #ruby-lang
hahuang65 has quit [Ping timeout: 244 seconds]
_ht has quit [Remote host closed the connection]
henrikhodne has quit [Ping timeout: 260 seconds]
henrikhodne has joined #ruby-lang
musty has quit [Quit: :)]
quimrstorres has joined #ruby-lang
RobertBirnie has joined #ruby-lang
mistym has quit [Remote host closed the connection]
ikrima has quit [Ping timeout: 255 seconds]
quimrstorres has quit [Ping timeout: 265 seconds]
SuMo_D has joined #ruby-lang
_lexjm has joined #ruby-lang
jonathan_alban has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SuMo_D has quit [Ping timeout: 272 seconds]
njames has joined #ruby-lang
allomov_ has joined #ruby-lang
allomov_ has quit [Remote host closed the connection]
tanema has joined #ruby-lang
diegoviola has quit [Ping timeout: 255 seconds]
tkuchiki has joined #ruby-lang
diegoviola has joined #ruby-lang
jxpx777_ has joined #ruby-lang
ender|dkm has quit [Ping timeout: 255 seconds]
jbardin has quit [Quit: jbardin]
jxpx777 has quit [Ping timeout: 260 seconds]
njames has quit [Remote host closed the connection]
emmesswhy has joined #ruby-lang
toretore has quit [Quit: This computer has gone to sleep]
ohhello has joined #ruby-lang
spastorino has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ohhello has quit [Client Quit]
yfeldblum has quit [Remote host closed the connection]
cads has joined #ruby-lang
oleo__ has joined #ruby-lang
oleo is now known as Guest93539
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
Guest93539 has quit [Ping timeout: 272 seconds]
jgpawletko has quit [Quit: jgpawletko]
tkuchiki has quit [Ping timeout: 244 seconds]
ender|dkm has joined #ruby-lang
nathanstitt has joined #ruby-lang
hellangel7 has quit [Read error: Connection reset by peer]
jgpawletko has joined #ruby-lang
shinnya has quit [Ping timeout: 240 seconds]
quimrstorres has joined #ruby-lang
joast has quit [Ping timeout: 246 seconds]
mistym has joined #ruby-lang
ender|dkm has quit [Ping timeout: 255 seconds]
dwknoxy has quit [Quit: Textual IRC Client: www.textualapp.com]
cads has quit [Quit: Leaving]
SuMo_D has joined #ruby-lang
quimrstorres has quit [Ping timeout: 265 seconds]
SuMo_D has quit [Ping timeout: 265 seconds]
seank__ has quit [Remote host closed the connection]
seank_ has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
postmodern has quit [Remote host closed the connection]
Forgetful_Lion has joined #ruby-lang
hahuang65 has joined #ruby-lang
joast has joined #ruby-lang
simi has joined #ruby-lang
charliesome has joined #ruby-lang
tanema has quit []
hackeron has quit [Ping timeout: 250 seconds]
hackeron has joined #ruby-lang
Mellett68 has joined #ruby-lang
yfeldblum has joined #ruby-lang
conquerio has joined #ruby-lang
charliesome has quit [Quit: zzz]
charliesome has joined #ruby-lang
jxpx777_ has quit [Quit: Leaving...]
charliesome has quit [Client Quit]
yfeldblum has quit [Ping timeout: 272 seconds]
ender|dkm has joined #ruby-lang
_lexjm has quit [Read error: Connection reset by peer]
_lexjm has joined #ruby-lang
quimrstorres has joined #ruby-lang
mattyohe has quit [Quit: Connection closed for inactivity]
ender|dkm has quit [Ping timeout: 255 seconds]
quimrstorres has quit [Ping timeout: 240 seconds]
gix has quit [Ping timeout: 244 seconds]
nathanstitt has quit [Quit: I growing sleepy]
gix has joined #ruby-lang
araujo has quit [Quit: Leaving]
Miphix has joined #ruby-lang
Mellett68 has quit [Ping timeout: 245 seconds]
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
ruby-lang274 has joined #ruby-lang
Mellett68 has joined #ruby-lang
emmesswhy has quit [Quit: Leaving]
ruby-lang274 has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby-lang
mistym_ has joined #ruby-lang
mistym has quit [Ping timeout: 246 seconds]
sepp2k1 has quit [Read error: Connection reset by peer]
hackeron has quit [Ping timeout: 240 seconds]
hackeron has joined #ruby-lang
jason__ has joined #ruby-lang
jason__ has quit [Client Quit]
mistym_ has quit [Remote host closed the connection]
kgrz has joined #ruby-lang
ender|dkm has joined #ruby-lang
Atttwww has quit [Ping timeout: 260 seconds]
CodeBunny has joined #ruby-lang
quimrstorres has joined #ruby-lang
ender|dkm has quit [Ping timeout: 255 seconds]
arooni-mobile has joined #ruby-lang
fuhgeddaboudit has joined #ruby-lang
quimrstorres has quit [Ping timeout: 245 seconds]
ikrima has joined #ruby-lang
slawrence00 has joined #ruby-lang
conquerio has quit []
yatish27 has joined #ruby-lang
yatish27 has quit [Client Quit]
diegovio1 has joined #ruby-lang
diegoviola has quit [Ping timeout: 240 seconds]
mistym has joined #ruby-lang
hackeron has quit [Ping timeout: 240 seconds]
hackeron has joined #ruby-lang
robbyoconnor has joined #ruby-lang
shinnya has joined #ruby-lang
Nieralyte has joined #ruby-lang
hackeron has quit [Ping timeout: 260 seconds]
hackeron has joined #ruby-lang
imperator has joined #ruby-lang
Gabri has joined #ruby-lang
Gabri has quit [Client Quit]
fuhgeddaboudit has quit [Ping timeout: 246 seconds]
SuMo_D has joined #ruby-lang
simi has quit [Ping timeout: 265 seconds]
ender|dkm has joined #ruby-lang
<imperator> this is too weird
<imperator> test-unit test runner just chokes at 38 files for some reason
ender|dkm has quit [Ping timeout: 255 seconds]
quimrstorres has joined #ruby-lang
quimrstorres has quit [Ping timeout: 260 seconds]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RobertBirnie has joined #ruby-lang
AKASkip has joined #ruby-lang
ledestin_ has joined #ruby-lang
ledestin has quit [Ping timeout: 260 seconds]
ledestin_ is now known as ledestin
kgrz has quit [Remote host closed the connection]
arooni-mobile has quit [Ping timeout: 258 seconds]
<imperator> not found
<imperator> it's rather disheartening to see this :(
x0f has quit [Ping timeout: 255 seconds]
x0f has joined #ruby-lang
<whitequark> huh? use minitest
<whitequark> I'm not sure if anyone cares about test-unit at all, since it was excised after 1.8
emmesswhy has joined #ruby-lang
ikrima has quit [Ping timeout: 246 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ledestin_ has joined #ruby-lang
ledestin has quit [Ping timeout: 240 seconds]
ledestin_ is now known as ledestin
<imperator> this lib predates it, may have to switch it though
_lexjm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Nieralyte has quit [Quit: Nieralyte]
yfeldblum has quit [Remote host closed the connection]
ender|dkm has joined #ruby-lang
_lexjm has joined #ruby-lang
arBmind has joined #ruby-lang
ikrima has joined #ruby-lang
kgrz has joined #ruby-lang
ender|dkm has quit [Ping timeout: 255 seconds]
quimrstorres has joined #ruby-lang
quimrstorres has quit [Ping timeout: 246 seconds]
arBmind has quit [Quit: Leaving.]
SuMo_D has quit [Remote host closed the connection]
diegovio1 has quit [Remote host closed the connection]
_ht has joined #ruby-lang
shinnya has quit [Ping timeout: 258 seconds]
relix has joined #ruby-lang
_lexjm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arBmind has joined #ruby-lang
<imperator> getting a similar error with minitest
arBmind has quit [Client Quit]
spastorino has quit [Quit: Connection closed for inactivity]
<whitequark> that's odd
<imperator> but, this only seems to happen for one test case file in particular...
<imperator> so progress
fusillicode1 has joined #ruby-lang
fusillicode has quit [Ping timeout: 240 seconds]
ender|dkm has joined #ruby-lang
ender|dkm has quit [Ping timeout: 255 seconds]
quimrstorres has joined #ruby-lang
tbuehlmann has joined #ruby-lang
<Hanmac> imperator: did one of your testcases use "send"? try to grep the test files
<imperator> Hanmac, no
<imperator> it's failing on Windows::Socket tests
quimrstorres has quit [Ping timeout: 255 seconds]
<imperator> i'm speculating that it's some sort of name clash caused by windows-api
allomov_ has joined #ruby-lang
<imperator> with Ruby's Socket class
<imperator> but how exactly, i don't know
_ht has quit [Ping timeout: 250 seconds]
_ht has joined #ruby-lang
<imperator> the test suite itself is extremely basic and short
* imperator sleeps on it
yfeldblum has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
fusillicode has joined #ruby-lang
fusillicode1 has quit [Ping timeout: 240 seconds]
emmesswhy has quit [Quit: Leaving]
caseydriscoll has quit [Read error: Connection reset by peer]
caseydriscoll has joined #ruby-lang
ta has joined #ruby-lang
unhappy_internet has joined #ruby-lang
<unhappy_internet> hi is a website where i can get help on ruby as a student. i don't know why my case statement isn't working.
ender|dkm has joined #ruby-lang
ender|dkm has quit [Ping timeout: 255 seconds]
quimrstorres has joined #ruby-lang
gianlucadv has joined #ruby-lang
quimrstorres has quit [Ping timeout: 265 seconds]
<tbuehlmann> unhappy_internet, there's always stackoverflow.com, but you can also ask your questions right here
goodniceweb has joined #ruby-lang
|jemc| has quit [Ping timeout: 240 seconds]
heftig has quit [Read error: Connection reset by peer]
toretore has joined #ruby-lang
<unhappy_internet> tbuehlmann, i ended up being downvoted. i did end up figuring out what i could have done better....after being downvoted. i couldn't figure out why my case statement wasn't working so i went with the if else.
rippa has joined #ruby-lang
<unhappy_internet> is there a way to @ people?
hellangel7 has joined #ruby-lang
<tbuehlmann> you could paste your code to https://gist.github.com/ and give us the link so we can have a look
hellangel7 has quit [Read error: Connection reset by peer]
goodniceweb has quit [Remote host closed the connection]
dangerousdave has joined #ruby-lang
M3M0CooL has joined #ruby-lang
gianlucadv has quit [Ping timeout: 265 seconds]
Blaguvest has joined #ruby-lang
mistym has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
<unhappy_internet> tbuehlmann, https://gist.github.com/cb085591982b09c184f4.git i'm still trying to figure out how to push numbers into array and do the loop until the user selects q
<tbuehlmann> then let's do that first
<tbuehlmann> basically you want to have an infinite loop which breaks on certain input, right?
<unhappy_internet> yes
hackeron has quit [Ping timeout: 255 seconds]
<apeiros> s/infinite//
hackeron has joined #ruby-lang
<tbuehlmann> yes, thank you
<tbuehlmann> unhappy_internet, you have some options. there is `loop do ... end` which will just loop until you call `break` in it. then there is `while <condition> do ... end` which will loop while the condition returns something truthy
<tbuehlmann> and then there is `until <condition> do ... end` which will loop until the condition is truthy
<tbuehlmann> for further reading, this looks okayish: http://www.tutorialspoint.com/ruby/ruby_loops.htm
charliesome has quit [Quit: zzz]
<tbuehlmann> (beside using global variables)
charliesome has joined #ruby-lang
<tbuehlmann> (I'm the worst google expert)
<apeiros> lol :)
<apeiros> googling good examples is hard :-|
<unhappy_internet> loop do might be the one i should do
<apeiros> `else break if yes=="q"` # <-- looks suspicious
<apeiros> should probably be an elsif too, and you should have a plain else which informs the user about invalid input
michd is now known as MichD
<unhappy_internet> ahh. yeah the else break is me being frustrated
ender|dkm has joined #ruby-lang
<unhappy_internet> got rid of the else break
<unhappy_internet> i'll study the tutorial
<unhappy_internet> this is what it's supposed to look like https://gist.github.com/f913ef24dd7030efa987.git
<apeiros> why do you append .git to the url?
ender|dkm has quit [Ping timeout: 255 seconds]
quimrstorres has joined #ruby-lang
charliesome has quit [Quit: zzz]
cornerma1 has joined #ruby-lang
hackeron has quit [Ping timeout: 272 seconds]
hackeron has joined #ruby-lang
quimrstorres has quit [Ping timeout: 240 seconds]
marr has joined #ruby-lang
marr has quit [Remote host closed the connection]
<unhappy_internet> until stamenet works perfectly
cornerman has quit [Ping timeout: 255 seconds]
cornerma1 is now known as cornerman
<tbuehlmann> \o/
jhass|off is now known as jhass
<unhappy_internet> Q: about new pushing numbers into array? do i have to do array.new? is there a way to push numbers into the same array after clearing?
<unhappy_internet> .would this be appropriate?=each_char{|x|arr.push.to_i}
<unhappy_internet> i also need the intergers to be seperated
kgrz has quit []
M3M0CooL has quit []
Lewix has quit [Remote host closed the connection]
kgrz has joined #ruby-lang
<tbuehlmann> you can add elements to an array using `arr.push(element)` or `arr << element`
ikrima has quit [Ping timeout: 240 seconds]
<jhass> unhappy_internet: if you want an array of chars simply call .chars
<unhappy_internet> tbuehlmann, for arr<<element i don't see how that works. would i have to make a method def element, arr, end?
<unhappy_internet> jhass, it more that i need them to be separated. so when time comes for calculations they are calculated separately.
<jhass> still sounds like you just want an array of characters to me
<Hanmac> unhappy_internet: dont use chars or each_char for that:
<Hanmac> >> "2 4 4 4 5 5 7 9".split.map(&:to_i)
<eval-in__> Hanmac => [2, 4, 4, 4, 5, 5, 7, 9] (https://eval.in/207433)
heftig has joined #ruby-lang
jds has quit [Quit: Connection closed for inactivity]
s1kx has quit [Remote host closed the connection]
<unhappy_internet> clearly have more studying to do.
ender|dkm has joined #ruby-lang
M3M0CooL has joined #ruby-lang
banister has joined #ruby-lang
ikrima has joined #ruby-lang
ender|dkm has quit [Ping timeout: 255 seconds]
quimrstorres has joined #ruby-lang
banister has quit [Ping timeout: 245 seconds]
mikecmpbll has joined #ruby-lang
quimrstorres has quit [Ping timeout: 258 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kyb3r_ has quit [Read error: Connection reset by peer]
banister has joined #ruby-lang
ayonkhan has joined #ruby-lang
ayonkhan has quit [Client Quit]
ayonkhan has joined #ruby-lang
bin7me has joined #ruby-lang
sarkyniin has joined #ruby-lang
ayonkhan has quit [Quit: (null)]
ayonkhan has joined #ruby-lang
klmlfl has joined #ruby-lang
shinnya has joined #ruby-lang
klmlfl has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Quit: i've nodded off.]
stamina has joined #ruby-lang
mikecmpbll has joined #ruby-lang
unhappy_internet has quit [Ping timeout: 246 seconds]
ender|dkm has joined #ruby-lang
ender|dkm has quit [Ping timeout: 255 seconds]
quimrstorres has joined #ruby-lang
simi has joined #ruby-lang
existensil has quit [Ping timeout: 255 seconds]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
ledestin_ has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
AKASkip has quit [Read error: Connection reset by peer]
quimrstorres has quit [Ping timeout: 240 seconds]
ledestin has quit [Ping timeout: 240 seconds]
ledestin_ is now known as ledestin
AKASkip has joined #ruby-lang
ayonkhan has quit [Quit: (null)]
ayonkhan has joined #ruby-lang
tbuehlmann has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
ayonkhan has quit [Client Quit]
ayonkhan has joined #ruby-lang
ta has quit [Ping timeout: 255 seconds]
yfeldblum has joined #ruby-lang
Blaguvest has quit []
ayonkhan has quit [Read error: Connection reset by peer]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
schaerli has quit [Read error: Connection reset by peer]
schaerli has joined #ruby-lang
Blaguvest has joined #ruby-lang
sandroqz has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
MichD is now known as michd
stamina has quit [Remote host closed the connection]
bin7me has quit [Remote host closed the connection]
faces has quit [Ping timeout: 245 seconds]
Squarepy has joined #ruby-lang
gianlucadv has joined #ruby-lang
sandroqz has left #ruby-lang ["Leaving the channel..."]
oleo__ has quit [Quit: Verlassend]
ender|dkm has joined #ruby-lang
ender|dkm has quit [Ping timeout: 255 seconds]
quimrstorres has joined #ruby-lang
<ljarvis> my students lose their shit when they find out map exists
<apeiros> sounds unhealthy and unhygienic
<ljarvis> opposed to keeping your shit?
<ljarvis> sounds kinda unhealthy too
* apeiros pictures a classroom full of students loosing their shit
<apeiros> gross :)
<ljarvis> :)
Forgetful_Lion has quit [Remote host closed the connection]
quimrstorres has quit [Ping timeout: 240 seconds]
oleo has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
<Hanmac> hm yeah its funny that nearly for everything you might do with lists, ruby already has a function for that ;P
<ljarvis> I write a lot of Go too, which is completely the opposite
yfeldblum has joined #ruby-lang
<darix> Hanmac: that must be because lists are so rarely used in programming and they want to lure you into using them more. something like that.
yfeldblum has quit [Read error: Connection reset by peer]
banister has joined #ruby-lang
havenwood has joined #ruby-lang
yfeldblum has joined #ruby-lang
arBmind has joined #ruby-lang
red_menace has joined #ruby-lang
klmlfl has joined #ruby-lang
ruby-lang660 has joined #ruby-lang
<ruby-lang660> In the irb why does a varible always return false?
sk_0 has joined #ruby-lang
<apeiros> ruby-lang660: because you assigned false to it?
michd is now known as MichD
arBmind has quit [Quit: Leaving.]
<ruby-lang660> :quit
<ruby-lang660> Quit:
ruby-lang660 has left #ruby-lang [#ruby-lang]
face has joined #ruby-lang
<ljarvis> lol
<imperator> heh
<apeiros> cool, so that answered his question
<red_menace> they should all be that easy...
chouhoulis has joined #ruby-lang
klmlfl has quit [Remote host closed the connection]
ikrima_ has joined #ruby-lang
ikrima has quit [Read error: Connection reset by peer]
ender|dkm has joined #ruby-lang
chorkpop has joined #ruby-lang
chorkpop has quit [Client Quit]
klmlfl has joined #ruby-lang
imperator has quit [Quit: Valete!]
ender|dkm has quit [Ping timeout: 255 seconds]
quimrstorres has joined #ruby-lang
Atttwww has joined #ruby-lang
quimrstorres has quit [Ping timeout: 260 seconds]
M3M0CooL has quit []
SuMo_D has joined #ruby-lang
quimrstorres has joined #ruby-lang
simi has quit [Ping timeout: 255 seconds]
quimrstorres has quit [Client Quit]
snoopybbt has joined #ruby-lang
GBrawl has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
GBrawl has quit [Client Quit]
SuMo_D has quit [Remote host closed the connection]
chills42 has joined #ruby-lang
symm- has quit [Quit: Leaving...]
chills42 has quit [Remote host closed the connection]
chills42 has joined #ruby-lang
symm- has joined #ruby-lang
Atttwww has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Remote host closed the connection]
chills42 has quit [Ping timeout: 246 seconds]
tbuehlmann has quit [Quit: Leaving]
mikeyuit has joined #ruby-lang
fuhgeddaboudit has joined #ruby-lang
mikeyuit has quit [Remote host closed the connection]
ender|dkm has joined #ruby-lang
musty has joined #ruby-lang
oleo__ has joined #ruby-lang
oleo is now known as Guest1129
ender|dkm has quit [Ping timeout: 255 seconds]
Guest1129 has quit [Ping timeout: 272 seconds]
seank_ has quit []
Squarepy has quit [Quit: Leaving]
jxpx777 has joined #ruby-lang
simi has joined #ruby-lang
fuhgeddaboudit has quit [Ping timeout: 250 seconds]
sepp2k has joined #ruby-lang
oleo__ has quit [Quit: Verlassend]
oleo__ has joined #ruby-lang
oleo__ is now known as oleo
dangerousdave has joined #ruby-lang
ta has joined #ruby-lang
gjaldon has joined #ruby-lang
chouhoulis has joined #ruby-lang
yatish27 has joined #ruby-lang
Lewix has joined #ruby-lang
gix has quit [Quit: Client exiting]
gjaldon has quit []
mattyohe has joined #ruby-lang
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby-lang
chills42 has joined #ruby-lang
klmlfl has quit [Remote host closed the connection]
klmlfl has joined #ruby-lang
chills42 has quit [Remote host closed the connection]
hellangel7 has joined #ruby-lang
hellangel7 has quit [Max SendQ exceeded]
ender|dkm has joined #ruby-lang
rippa has joined #ruby-lang
ender|dkm has quit [Ping timeout: 255 seconds]
chouhoulis has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
shinnya has quit [Ping timeout: 265 seconds]
danijoo has quit [Read error: Connection reset by peer]
danijoo_ has joined #ruby-lang
yfeldblum has joined #ruby-lang
simi has quit [Ping timeout: 245 seconds]
gix has joined #ruby-lang
yfeldblum has quit [Ping timeout: 255 seconds]
chouhoulis has joined #ruby-lang
<musty> clear
schaerli has joined #ruby-lang
sepp2k has quit [Read error: Connection reset by peer]
HelloFred has joined #ruby-lang
HelloFred has left #ruby-lang [#ruby-lang]
klmlfl has quit [Remote host closed the connection]
schaerli has quit [Remote host closed the connection]
yatish27 has quit [Remote host closed the connection]
s1kx has joined #ruby-lang
charliesome has quit [Quit: zzz]
chouhoulis has quit [Ping timeout: 260 seconds]
fusillicode1 has joined #ruby-lang
chishiki has joined #ruby-lang
fusillicode has quit [Ping timeout: 255 seconds]
_lexjm has joined #ruby-lang
ender|dkm has joined #ruby-lang
tylersmith has joined #ruby-lang
fusillicode1 has quit [Quit: Leaving.]
fusillicode has joined #ruby-lang
ender|dkm has quit [Ping timeout: 255 seconds]
fusillicode1 has joined #ruby-lang
fusillicode has quit [Ping timeout: 240 seconds]
_lexjm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
seank_ has joined #ruby-lang
simi has joined #ruby-lang
yatish27 has joined #ruby-lang
_lexjm has joined #ruby-lang
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_lexjm has quit [Client Quit]
sepp2k has joined #ruby-lang
_lexjm has joined #ruby-lang
jxpx777 has quit [Quit: Leaving...]
simi has quit [Ping timeout: 272 seconds]
nathanstitt has joined #ruby-lang
klmlfl has joined #ruby-lang
yatish27 has quit []
_lexjm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
klmlfl has quit [Read error: Connection reset by peer]
klmlfl has joined #ruby-lang
seank__ has joined #ruby-lang
seank_ has quit [Read error: Connection reset by peer]
yxhuvud has quit [Remote host closed the connection]
klmlfl has quit [Remote host closed the connection]
ender|dkm has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
yxhuvud has joined #ruby-lang
<ljarvis> hrm
chouhoulis has joined #ruby-lang
ender|dkm has quit [Ping timeout: 255 seconds]
schaerli has joined #ruby-lang
<Eising> is there a handy library available to perform mathematical functions such as minimum, maximum and average on an array of numbers?
schaerli has quit [Remote host closed the connection]
simi has joined #ruby-lang
<ljarvis> Eising: all that exists in core
<ljarvis> >> [5, 4, 7, 9].min
<eval-in__> ljarvis => 4 (https://eval.in/207528)
MichD is now known as michd
<ljarvis> >> [5, 4, 7, 9].max
<eval-in__> ljarvis => 9 (https://eval.in/207529)
<ljarvis> >> x = [1,2,2,3,4,5,9]; x.inject(:+).to_f / x.size
<eval-in__> ljarvis => 3.7142857142857144 (https://eval.in/207530)
<Eising> ljarvis: so I see. Thanks :)
tylersmith has quit [Read error: Connection reset by peer]
musty has left #ruby-lang [#ruby-lang]
<ljarvis> >> [1,2,3].sum
<eval-in__> ljarvis => undefined method `sum' for [1, 2, 3]:Array (NoMethodError) ... (https://eval.in/207531)
<ljarvis> just checking...
tylersmith has joined #ruby-lang
<Eising> ljarvis: then I just need to write an average function
<Eising> done that before .)
ender|dkm has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
allomov_ has quit [Remote host closed the connection]
allomov_ has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
yxhuvud has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
ender|dkm has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Ping timeout: 250 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jxpx777 has joined #ruby-lang
Naeblis has joined #ruby-lang
Naeblis has left #ruby-lang ["Textual IRC Client: www.textualapp.com"]
nathanstitt has joined #ruby-lang
Miphix has quit [Quit: Leaving]
nathanstitt has quit [Client Quit]
banister has joined #ruby-lang
tylersmith has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby-lang
ta has quit [Ping timeout: 255 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta has joined #ruby-lang
jonathan_alban has joined #ruby-lang
seank__ has quit []
michd is now known as MichD
seank_ has joined #ruby-lang
ender|dkm has joined #ruby-lang
banister has joined #ruby-lang
kgrz has quit []
CodeBunny has quit [Quit: CodeBunny needs a carrot. Be back later.]
ender|dkm has quit [Ping timeout: 255 seconds]
SuMo_D has joined #ruby-lang
chouhoulis has joined #ruby-lang
chouhoulis has quit [Ping timeout: 265 seconds]
mistym has joined #ruby-lang
tylersmith has quit [Read error: Connection reset by peer]
symm- has quit [Ping timeout: 240 seconds]
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
bantic has joined #ruby-lang
bantic has quit [Client Quit]
bantic has joined #ruby-lang
SuMo_D has quit [Ping timeout: 246 seconds]
SuMo_D_ has joined #ruby-lang
tylersmith has joined #ruby-lang
marr has joined #ruby-lang
apt-get_ has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dan_ has joined #ruby-lang
dan_ is now known as Guest77730
Guest77730 has quit [Client Quit]
ddd has quit [*.net *.split]
banister has joined #ruby-lang
sarkyniin has quit [Ping timeout: 240 seconds]
tylersmith has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby-lang
gix has quit [Ping timeout: 260 seconds]
nfsnobody has quit [*.net *.split]
nfsnobody has joined #ruby-lang
nfsnobody has quit [Changing host]
nfsnobody has joined #ruby-lang
gix has joined #ruby-lang
ta has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby-lang
dangerousdave has joined #ruby-lang
apt-get_ has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Ping timeout: 272 seconds]
ender|dkm has joined #ruby-lang
yfeldblum has joined #ruby-lang
matp has joined #ruby-lang
ender|dkm has quit [Ping timeout: 255 seconds]
cleopatra has joined #ruby-lang
nathanstitt has joined #ruby-lang
sMecKs has joined #ruby-lang
Guest_ has joined #ruby-lang
banister is now known as banisterfiend
conquerio has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
NoNMaDDeN has joined #ruby-lang
nathanstitt has joined #ruby-lang
klmlfl has joined #ruby-lang
klmlfl has quit [Ping timeout: 250 seconds]
floyd2 has quit [Ping timeout: 240 seconds]
lianj has quit [Ping timeout: 265 seconds]
sandroqz has joined #ruby-lang
sMecKs_ has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sandroqz has left #ruby-lang [#ruby-lang]
tekacs has joined #ruby-lang
<tekacs> ... question about a Ruby C extension...
<tekacs> rb_thread_wait_fd(fd) in C is a no-op if there exists only a main thread
<tekacs> if there's multiple threads, it selects on the fd and _may_ trigger the thread upon select's return
<tekacs> with just a main thread, a C library using just wait_fd takes 100% CPU
<tekacs> ... but I can't seem to convince the scheduler to _ever_ trigger the original thread if I add an extra one
schaerli has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
schaerli has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
ender|dkm has joined #ruby-lang
schaerli has joined #ruby-lang
bantic has quit [Quit: bantic]
apt-get_ has joined #ruby-lang
ender|dkm has quit [Ping timeout: 255 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
relix has joined #ruby-lang
M3M0CooL has joined #ruby-lang
SuMo_D_ has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 245 seconds]
matp has quit [Ping timeout: 255 seconds]
schaerli has quit [Remote host closed the connection]
lianj has joined #ruby-lang
spastorino has joined #ruby-lang
schaerli has joined #ruby-lang
SuMo_D has joined #ruby-lang
ashleyg has joined #ruby-lang
pastuxso has joined #ruby-lang
kyb3r_ has joined #ruby-lang
ashleyg has quit [Client Quit]
d4rksung has joined #ruby-lang
Asher has quit [Quit: Leaving.]
schaerli has quit [Remote host closed the connection]
Guest_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest_ has joined #ruby-lang
gianlucadv has quit [Ping timeout: 240 seconds]
yxhuvud has joined #ruby-lang
matp has joined #ruby-lang
symm- has joined #ruby-lang
hackeron has quit [Ping timeout: 258 seconds]
hackeron has joined #ruby-lang
sMecKs has quit [Read error: Connection reset by peer]
sMecKs_ has quit [Read error: Connection reset by peer]
rahul_j has joined #ruby-lang
ender|dkm has joined #ruby-lang
malconis has joined #ruby-lang
_ht has quit [Remote host closed the connection]
rahul_j has quit [Ping timeout: 272 seconds]
ender|dkm has quit [Ping timeout: 255 seconds]
yfeldblum has joined #ruby-lang
ta has joined #ruby-lang
Lewix has joined #ruby-lang
cornerma1 has joined #ruby-lang
torrieri has joined #ruby-lang
cornerman has quit [Ping timeout: 250 seconds]
cornerma1 is now known as cornerman
lsegal has joined #ruby-lang
torrieri_ has joined #ruby-lang
<yorickpeterse> ljarvis: for sum, there's this:
<yorickpeterse> >> [10, 20, 30].inject(:+)
<eval-in__> yorickpeterse => 60 (https://eval.in/207568)
chouhoulis has joined #ruby-lang
torrieri has quit [Ping timeout: 250 seconds]
snoopybbt has quit [Quit: leaving]
<Hanmac> yorickpeterse: look at the default value for inject
SuMo_D has quit [Remote host closed the connection]
<yorickpeterse> Hanmac: ?
existensil has joined #ruby-lang
<Hanmac> yorickpeterse: if the array is empty yours will return nil, but if you do that it has a default value:
<Hanmac> >> [].inject(0,:+)
<eval-in__> Hanmac => 0 (https://eval.in/207573)
matp has quit [Remote host closed the connection]
matp has joined #ruby-lang
<yorickpeterse> oh right
torrieri has joined #ruby-lang
torrieri_ has quit [Ping timeout: 245 seconds]
SuMo_D has joined #ruby-lang
chouhoulis has quit [Ping timeout: 244 seconds]
<yxhuvud> hanmac: it is not so much a default value but a starting point for the accumulation:
<yxhuvud> >> [1,2,3].inject(10, :+)
<eval-in__> yxhuvud => 16 (https://eval.in/207577)
postmodern has joined #ruby-lang
<Hanmac> hm yeah starting point is a better name for that
Guest_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ender|dkm has joined #ruby-lang
conquerio has quit []
Lewix has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
yfeldblum has quit [Ping timeout: 260 seconds]
elia has joined #ruby-lang
mattyohe has quit [Quit: Connection closed for inactivity]
bantic has joined #ruby-lang
Lewix has joined #ruby-lang
cleopatra has quit [Ping timeout: 255 seconds]
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #ruby-lang
hackeron has quit [Ping timeout: 260 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_dabradley has quit [Ping timeout: 260 seconds]
justinmburrous has joined #ruby-lang
hackeron has joined #ruby-lang
ender|dkm has quit [Ping timeout: 255 seconds]
nathanstitt has quit [Quit: I growing sleepy]
mstercx has joined #ruby-lang
ikrima_ has quit [Ping timeout: 265 seconds]
SuMo_D has quit [Remote host closed the connection]
elia has quit [Quit: Computer has gone to sleep.]
<mstercx> how to search a pussy in lines of code google
<yorickpeterse> what the fuck
<mstercx> lol
elia has joined #ruby-lang
<mstercx> how to create a kernel routine to a machine mastubating my dick at 60 hertz
<yorickpeterse> apeiros: ^
<mstercx> apeiros make this job?
mstercx was kicked from #ruby-lang by apeiros [let me show you the way out, good bye]
justinmburrous has quit []
<yorickpeterse> ty
<apeiros> thanks for pinging
<apeiros> sounded a bit like a markov bot
<yorickpeterse> probably just a drunken teen
<apeiros> I've seen to many drunken adults :-/
<yorickpeterse> almost like that's a usual thing
MichD is now known as michd
jgpawletko_ has joined #ruby-lang
jgpawletko has quit [Ping timeout: 258 seconds]
jgpawletko_ is now known as jgpawletko
_dabradley has joined #ruby-lang
SuMo_D has joined #ruby-lang
yfeldblum has joined #ruby-lang
emmesswhy has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
ender|dkm has joined #ruby-lang
shinnya has joined #ruby-lang
d4rksung has quit [Ping timeout: 265 seconds]
ender|dkm has quit [Ping timeout: 255 seconds]
nathanstitt has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
elia has joined #ruby-lang
elia has quit [Client Quit]
M3M0CooL has quit []
chouhoulis has joined #ruby-lang
rahul_j has joined #ruby-lang
chishiki has left #ruby-lang ["WeeChat 1.0.1"]
Forgetful_Lion has joined #ruby-lang
rahul_j has quit [Ping timeout: 260 seconds]
torrieri has quit [Quit: Leaving...]
chouhoulis has quit [Remote host closed the connection]
apt-get_ has quit [Read error: Connection reset by peer]
ruby-lang439 has joined #ruby-lang
<ruby-lang439> Hello?
<havenwood> ruby-lang439: hi
<ruby-lang439> I have never used irc before. However, I have some totally nooby Ruby code that's not working if someone is bored enough to help.
NoNMaDDeN has quit [Remote host closed the connection]
<jhass> ruby-lang439: you won't find anybody without posting it (to gist)
<havenwood> ruby-lang439: Just paste a link to a Gist of the code here in the channel. :)
nathanstitt has quit [Quit: I growing sleepy]
<apeiros> gist: gist.github.com
M3M0CooL has joined #ruby-lang
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ruby-lang439> tldr, it's for Project Euler problem 1. I get the wrong result with the code.
xenogis has quit [Ping timeout: 272 seconds]
ikrima has joined #ruby-lang
<havenwood> ruby-lang439: here's a hint: 15
zenojis has joined #ruby-lang
<ruby-lang439> Oh, 15 is counted twice?
<ruby-lang439> Because they're both multiples of it?
<ruby-lang439> And by that logic, 30, 45, etc?
chouhoulis has joined #ruby-lang
torrieri has joined #ruby-lang
<oddmunds> ruby-lang439: you might want to make your method check for "is this a multiple of 3 and/or 5" and then add it to the result
zenojis has quit [Ping timeout: 260 seconds]
chouhoulis has quit [Remote host closed the connection]
nathanstitt has joined #ruby-lang
banister has joined #ruby-lang
ender|dkm has joined #ruby-lang
mistym has joined #ruby-lang
nathanstitt has quit [Client Quit]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
ender|dkm has quit [Ping timeout: 255 seconds]
nathanstitt has joined #ruby-lang
zenojis has joined #ruby-lang