havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.9: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || logs @ http://irclog.whitequark.org/ruby/
<norc> Anyway. An included module is not lexically available.
<benzrf_> i KNOW
<norc> Then we are done?
<benzrf_> like i said, i understand how this all works, you're just not following whta i mean to say
SilverKey has quit [Quit: Halted.]
<benzrf_> i figured out how it works thanks to your help, then i tried to double check my understanding by asking if i was right about part of it, but you misunderstood what i meant to say, and it kind of devolved into this
roundabout22 has joined #ruby
<benzrf_> i guess we're done
<benzrf_> sorry
benzrf_ has quit [Quit: leaving]
chipotle has quit [Quit: cheerio]
jancel has joined #ruby
Gasher has quit [Quit: Leaving]
skweek has quit [Ping timeout: 260 seconds]
roundabout22 has quit [Ping timeout: 240 seconds]
GGMethos has quit [Quit: WeeChat 1.1.1]
mostlybadfly has quit [Quit: Connection closed for inactivity]
replay has quit []
smathy is now known as smathy_afk
cbyrda has quit [Remote host closed the connection]
norc has quit [Ping timeout: 250 seconds]
kareeoleez has joined #ruby
Vile` has quit [Ping timeout: 244 seconds]
chipotle has joined #ruby
GGMethos has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
__ian__r has quit [Quit: Leaving]
Azure has joined #ruby
kareeoleez has quit [Ping timeout: 244 seconds]
kawb has joined #ruby
ElFerna has joined #ruby
<Synthead> is there an intelligent way I can turn a hash into an inifile?
<Synthead> I'm using IniFile, but it seems as if it only accepts "a=b"-formatted text already to build it
<Synthead> in that case, IniFile doesn't serve much purpose for what I'm doing
<Synthead> the goal is to have {a: "a", b: "b"} and get "a=a\nb=b"
dnewkerk has joined #ruby
<Synthead> I could do {}.map {|k, v| "#{k}=#{v}"}.join("\n"), but that seems crufty
jenrzzz has joined #ruby
whiteline has quit [Remote host closed the connection]
infernix has quit [Ping timeout: 250 seconds]
whiteline has joined #ruby
kareeoleez has joined #ruby
blackmesa has joined #ruby
jackjackdripper has joined #ruby
Yiota has joined #ruby
jancel has quit [Remote host closed the connection]
SirOliver has quit [Quit: ZZZzzz…]
marr has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
kareeoleez has quit [Ping timeout: 252 seconds]
blackmesa has quit [Ping timeout: 264 seconds]
yqt has quit [Ping timeout: 244 seconds]
whiteline has quit [Remote host closed the connection]
symm- has joined #ruby
whiteline has joined #ruby
<Synthead> Radar: ah, there we go. I didn't know that it required sections and there wasn't a very good error :)
<Synthead> thanks!
mistermocha has joined #ruby
<Radar> np :)
wald0 has quit [Ping timeout: 260 seconds]
bkxd has joined #ruby
aberen has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
kareeoleez has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aberen has quit [Ping timeout: 260 seconds]
infernix has joined #ruby
Yiota has joined #ruby
mostlybadfly has joined #ruby
kareeoleez has quit [Ping timeout: 250 seconds]
startupality has quit [Quit: startupality]
n1x-nz has joined #ruby
karmatr0n has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 240 seconds]
saneax is now known as saneax_AFK
blaxter has quit [Read error: Connection reset by peer]
kawb has quit [Quit: Leaving...]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xall has quit [Ping timeout: 246 seconds]
cajone has left #ruby [#ruby]
cajone has joined #ruby
norc__ has joined #ruby
kareeoleez has joined #ruby
Rickmasta has quit [Ping timeout: 244 seconds]
nankyokusei has joined #ruby
norc_ has quit [Ping timeout: 264 seconds]
jackjackdripper has quit [Quit: Leaving.]
Rickmasta has joined #ruby
kareeoleez has quit [Ping timeout: 276 seconds]
truenito has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 240 seconds]
MrBusiness has joined #ruby
AcidCras_ has joined #ruby
SirOliver has joined #ruby
AcidCrash has quit [Ping timeout: 246 seconds]
dudepare has quit [Ping timeout: 276 seconds]
moeabdol has quit [Ping timeout: 244 seconds]
ElFerna has quit [Ping timeout: 260 seconds]
kareeoleez has joined #ruby
nick_traveling has quit [Quit: Page closed]
nettoweb has joined #ruby
sneakerhax has joined #ruby
kareeoleez has quit [Ping timeout: 264 seconds]
Rickmasta has quit [Ping timeout: 260 seconds]
SirOliver has quit [Quit: ZZZzzz…]
ElFerna has joined #ruby
Rickmasta has joined #ruby
jancel has joined #ruby
blackmesa has joined #ruby
arescorpio has joined #ruby
hahuang62 has joined #ruby
jancel has quit [Ping timeout: 250 seconds]
blackmesa has quit [Ping timeout: 276 seconds]
hahuang62 has quit [Ping timeout: 250 seconds]
Rickmasta has quit [Ping timeout: 246 seconds]
smathy_afk is now known as smathy
kareeoleez has joined #ruby
Rickmasta has joined #ruby
twistedpixels_ is now known as twistedpixels
aberen has joined #ruby
brent__ has joined #ruby
raldu has joined #ruby
kareeoleez has quit [Ping timeout: 250 seconds]
evidex has quit [Ping timeout: 272 seconds]
xall has joined #ruby
bkxd has quit [Ping timeout: 276 seconds]
RegulationD has joined #ruby
ocbtec has quit [Quit: leaving]
<brent__> Hello. I'm making a basic stack class, and need to implement a #max function that returns the max value in the stack. However I need to keep it to O(1), so I can't just call Array#max on it, or any iteration. I was thinking of using a @max_val to store the max val and update if need be when a new val is pushed to the stack. However I'm lost on an elegant way
<brent__> to update the @max_val if it gets popped off the stack
skweek has joined #ruby
roamingdog has quit [Remote host closed the connection]
xall_ has joined #ruby
evansbee has joined #ruby
<smathy> brent__, you'll need an index stack that refers to the indices of the elements in order of "max"-ness.
RegulationD has quit [Ping timeout: 246 seconds]
xall has quit [Ping timeout: 264 seconds]
<smathy> ...actually, that'll make pop a O(N)
<brent__> right
<smathy> ...and push worse - to re-order the index structure.
<brent__> right, that may take a nested loop
evansbee has quit [Ping timeout: 258 seconds]
<smathy> Yeah, that's the gotcha really, to make a O(1) .max then you'll have to calculate a new element's position on .push so your push has to become O(n log n)
lightt has quit [Read error: Connection reset by peer]
<brent__> this is the hint i was given Hint: We could store some metadata with the value of each element. Think about how to do this and what information to store.
<smathy> ...or O(n) at least I suppose, if the list is already sorted.
<smathy> Do you have a requirement for the push?
<brent__> doesn't look like it, but would be interesting that they would be okay w/ a larger complexity on the # that will get used more
<smathy> Yeah, you'd have to have at least O(n) on the insert, there's no other way I can think to do it.
<smathy> So then you're either storing both the value and a pointer to the next largest element, or the next to pop.
mistermocha has joined #ruby
<brent__> !
mistermocha has quit [Read error: Connection reset by peer]
<brent__> or maybe not
kareeoleez has joined #ruby
ruby has joined #ruby
<ruby> hi
<ruby> question
<brent__> i keep thinking they're maybe looking for some sort of a hash
ruby is now known as Guest19923
<brent__> to be used, ut not sure
<brent__> trying to figure out how it would be used
<Guest19923> im using Terminal::Table
<Guest19923> how do i test the output?
<Guest19923> for example i expect that it renders a table in a certain way
<Guest19923> whats a good way to test it
mshowman has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lacuna has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dcunit3d has quit [Ping timeout: 276 seconds]
<smathy> brent__, I don't see how a hash changes anything I said, but good luck.
kareeoleez has quit [Ping timeout: 260 seconds]
<smathy> I gotta afk - but definitely drop a line if you discover something.
<brent__> smathy: yeah me neither
youch has joined #ruby
<brent__> i peaked
maloik has quit [Remote host closed the connection]
<brent__> :(
maloik has joined #ruby
<smathy> Guest19923, create the string you expect to be output, and see if the table equals that string.
aberen has quit [Ping timeout: 260 seconds]
mistermocha has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
<brent__> smathy: they changed the stack so each element is a hash w/ a value, min_val, max_val, and then I have a #peek method that returns the next element in the stack, which will have those 3 attributes https://gist.github.com/brentluna/3b7d1ececcec80b515c658a2d55951d2
kies has joined #ruby
<smathy> Right, which means you have to work ....oh, no you don't. You only have to compare with the *last* element's min/max - ok, yeah, that's clever :)
mistermocha has joined #ruby
davede has joined #ruby
pawnbox has quit [Remote host closed the connection]
kareeoleez has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
mattwashere has joined #ruby
<Guest19923> smathy: i saw EOF.unintend before where is it coming from
<brent__> indeed. Not sure I would have got to that in a reasonable amount of time
ramfjord has quit [Ping timeout: 276 seconds]
<brent__> thanks for your help
mistermocha has joined #ruby
evansbee has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
mistermo_ has joined #ruby
dcunit3d has joined #ruby
<Guest19923> what does EOF.anything mean
kareeoleez has quit [Ping timeout: 240 seconds]
mistermo_ has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
tmtwd has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
kies has quit [Ping timeout: 250 seconds]
yeticry has joined #ruby
An_ has joined #ruby
<An_> hi all
<An_> i see example in right hand in home page https://www.ruby-lang.org/en/
<An_> # Output "I love Ruby" say = "I love Ruby" puts say # Output "I *LOVE* RUBY" say['love'] = "*love*" puts say.upcase # Output "I *love* Ruby"
kies has joined #ruby
<An_> but this is not correct for ruby version now aday
<An_> i think admin should repair this
<An_> because when i copy it to my irb
<An_> my result is:
<An_> 2.3.1 :001 > say = "I love Ruby" => "I love Ruby" 2.3.1 :002 > puts say I love Ruby => nil 2.3.1 :003 > 2.3.1 :004 > say['love'] = "*love*" => "*love*" 2.3.1 :005 > puts say.upcase I *LOVE* RUBY => nil
kareeoleez has joined #ruby
dcunit3d has quit [Ping timeout: 244 seconds]
An_ has quit [Quit: Page closed]
rbgem has joined #ruby
<rbgem> hi i just installed ruby 2.3.0. I entered sum(5,6) and I got the error: NoMethodError: undefined method `sum' for main:Object
<rbgem> how can i fix it?
<rbgem> it is giving the same error for all methods.
kareeoleez has quit [Ping timeout: 272 seconds]
youch has quit [Ping timeout: 244 seconds]
<Guest19923> how cant i have puts return stdout
<Guest19923> instead of nil
blackmesa has joined #ruby
<Lewix> use p
<rbgem> @Lewix, is it for me?
<Lewix> rbgem: no, but I think you want [5,6].sum
<rbgem> oh thnk you, will try that
tcopeland has joined #ruby
<rbgem> NoMethodError: undefined method `sum' for [5, 6]:Array
<rbgem> i got the above error
<nofxx> rbgem, it's rails... what's wrong with 5 + 6 ?
<nofxx> in only ruby: [1,5].reduce(&:+) works iirc
xall_ has quit [Ping timeout: 264 seconds]
<nofxx> #sum is from rails* explaning myself better
<tcopeland> I'm really puzzled by this difference btwn 2.2.3 and 2.3.0 https://eval.in/591215
blackmesa has quit [Ping timeout: 244 seconds]
<nofxx> rbgem, nice about reduce is that you may use substraction, multiply...
<rbgem> oh ok. i am just starting ruby. no idea about anything. i am going through a ruby book and in that i was asked to try sum(5,6) after opening irb
<nofxx> rbgem, can't be... what's the title
<nofxx> rbgem, or problably there's a def sum(x, y) somwhere you missed
agentmeerkat has quit [Ping timeout: 264 seconds]
<nofxx> put this before and try again: def sum(x, y); x + y end
diegoaguilar has joined #ruby
<rbgem> learn ruby in 24 hours, robert dwight
ramfjord has joined #ruby
<nofxx> rbgem, start with chris pine learn to program, free and online
<rbgem> ok i will check it out. thank you
<nofxx> rbgem, you'll enjoy: chris pine learn to program
<nofxx> ops
<nofxx> at least it starts with working code: puts 1+2 hehe
<Guest19923> where is stdout stored?
wldcordeiro has quit [Ping timeout: 250 seconds]
<Guest19923> sorry
<Guest19923> where is the output of puts stored?
<rbgem> it has exercises and answers too. will start with that.
RegulationD has joined #ruby
youch has joined #ruby
mattwashere has quit [Remote host closed the connection]
<rbgem> thanks nofxx
wldcordeiro has joined #ruby
rbgem has quit [Quit: Page closed]
RegulationD has quit [Ping timeout: 258 seconds]
rbgem has joined #ruby
dnewkerk has quit [Read error: Connection reset by peer]
<rbgem> Learn To Program by Chris Pine is dated 2009. Is it too old to read now?
agentmeerkat has joined #ruby
dcunit3d has joined #ruby
vipinj has joined #ruby
dnewkerk has joined #ruby
rbgem has quit [Quit: Page closed]
agentmeerkat has quit [Ping timeout: 252 seconds]
howdoi has joined #ruby
rbgem has joined #ruby
<rbgem> sorry, closed the screen by mistake. Is "Learn To Program" by Chris Pine too old to read now? It was published in 2009.
snath has joined #ruby
flashpoint9 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
kies has quit [Ping timeout: 276 seconds]
<Guest19923> do you put utility function in your rspec test...is it idiomatic to do def utilit_func ; foo;end it 'test the line foo' do blah end
braincrash has quit [Quit: bye bye]
nankyokusei has joined #ruby
kareeoleez has joined #ruby
smathy is now known as smathy_afk
mattwashere has joined #ruby
mattwashere has quit [Read error: Connection reset by peer]
nankyokusei has quit [Ping timeout: 250 seconds]
mattwashere has joined #ruby
kareeoleez has quit [Ping timeout: 240 seconds]
rbgem has quit [Quit: Page closed]
youch has quit [Ping timeout: 244 seconds]
ramfjord has quit [Ping timeout: 272 seconds]
kareeoleez has joined #ruby
elifoster has joined #ruby
kareeoleez has quit [Ping timeout: 258 seconds]
braincrash has joined #ruby
karmatr0n has quit [Ping timeout: 264 seconds]
k3rn31 has joined #ruby
agentmeerkat has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agentmeerkat has quit [Ping timeout: 244 seconds]
arajakul has joined #ruby
<shevy> nofxx the coolest thing about it is that it is a single .rb file :)
dkam has quit [Remote host closed the connection]
<shevy> looks as if Chris still maintains it
<shevy> I wanted to extend it to... @@INPUT_DESC = 'dotted box'
<shevy> getting rid of all @@ for instance
<shevy> then I fatigued and tired :(
confounds has joined #ruby
dcunit3d has quit [Ping timeout: 272 seconds]
mistermocha has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
gix has quit [Ping timeout: 246 seconds]
kareeoleez has joined #ruby
hahuang62 has joined #ruby
confounds has quit [Remote host closed the connection]
confounds has joined #ruby
blackmesa has joined #ruby
kareeoleez has quit [Ping timeout: 244 seconds]
gix has joined #ruby
ryan_notabot has quit [Quit: Leaving]
hahuang62 has quit [Ping timeout: 264 seconds]
<nofxx> shevy, hah, cool .. didn't knew that
pabs_ is now known as pabs
azwieg103 has joined #ruby
kareeoleez has joined #ruby
hiyosi has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
kareeoleez has quit [Ping timeout: 264 seconds]
agentmeerkat has joined #ruby
n1xnz has joined #ruby
n1xnz has quit [Remote host closed the connection]
n1xnz has joined #ruby
vipinj has quit [Quit: This computer has gone to sleep]
kareeoleez has joined #ruby
n1x-nz has quit [Ping timeout: 272 seconds]
mattwashere has quit []
agentmeerkat has quit [Ping timeout: 276 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kareeoleez has quit [Ping timeout: 260 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
roamingdog has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
garrulous_goose has joined #ruby
aberen has joined #ruby
hk238 has joined #ruby
kies has joined #ruby
aberen has quit [Ping timeout: 260 seconds]
brunchbb has joined #ruby
brunchbb has quit [Remote host closed the connection]
brunchbb has joined #ruby
chouhoul_ has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
kareeoleez has joined #ruby
garrulous_goose has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
d0nn1e has quit [Ping timeout: 258 seconds]
chouhoulis has quit [Ping timeout: 250 seconds]
d0nn1e has joined #ruby
pilne has quit [Quit: Quitting!]
kareeoleez has quit [Ping timeout: 252 seconds]
agentmeerkat has joined #ruby
garrulous_goose has joined #ruby
arooni has joined #ruby
binaryplease has quit [Read error: Connection reset by peer]
elifoster has quit [Quit: going out]
agentmeerkat has quit [Ping timeout: 240 seconds]
jancel has joined #ruby
duncannz has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
karmatr0n has joined #ruby
garrulous_goose has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
garrulous_goose has joined #ruby
jancel has quit [Ping timeout: 250 seconds]
saneax_AFK is now known as saneax
kareeoleez has joined #ruby
arooni has quit [Ping timeout: 250 seconds]
sphex has quit [Read error: Connection reset by peer]
Ropeney has joined #ruby
LoneHermit has joined #ruby
kareeoleez has quit [Ping timeout: 276 seconds]
tildes has joined #ruby
sphex has joined #ruby
mattwashere has joined #ruby
mshowman has joined #ruby
hahuang62 has joined #ruby
schp has joined #ruby
youch has joined #ruby
schp has quit [Quit: Textual IRC Client: www.textualapp.com]
charliesome has joined #ruby
blackmesa has joined #ruby
hahuang62 has quit [Ping timeout: 250 seconds]
agentmeerkat has joined #ruby
charliesome has quit [Client Quit]
evansbee has quit [Ping timeout: 246 seconds]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
mistermocha has quit [Remote host closed the connection]
kareeoleez has joined #ruby
agentmeerkat has quit [Ping timeout: 260 seconds]
RegulationD has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
charliesome has joined #ruby
mimtf has joined #ruby
kraken_ has quit [Quit: Leaving]
kareeoleez has quit [Ping timeout: 244 seconds]
confound_ has joined #ruby
dcunit3d has joined #ruby
RegulationD has quit [Ping timeout: 276 seconds]
mimtf has left #ruby [#ruby]
confounds has quit [Ping timeout: 250 seconds]
kareeoleez has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
mimtf has joined #ruby
I_AM_EJACULATING has joined #ruby
arescorpio has quit [Quit: Leaving.]
Akuma has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kareeoleez has quit [Ping timeout: 264 seconds]
aberen has joined #ruby
dcunit3d has quit [Ping timeout: 252 seconds]
bluOxigen has quit [Ping timeout: 240 seconds]
bluOxigen has joined #ruby
mattwashere has quit []
chouhoulis has joined #ruby
kareeoleez has joined #ruby
smathy_afk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kareeoleez has quit [Remote host closed the connection]
brent__ has quit [Quit: Connection closed for inactivity]
Ropeney has joined #ruby
aberen has quit [Ping timeout: 244 seconds]
I_AM_EJACULATING has quit [K-Lined]
nankyokusei has joined #ruby
confound_ has quit [Remote host closed the connection]
roamingdog has quit [Read error: Connection reset by peer]
roamingdog has joined #ruby
kareeoleez has joined #ruby
nankyokusei has quit [Ping timeout: 258 seconds]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sauvin has joined #ruby
Xiti has quit [Quit: Xiti]
Xiti has joined #ruby
youch has quit [Quit: Konversation terminated!]
dcunit3d has joined #ruby
karmatr0n has quit [Ping timeout: 250 seconds]
A124 has quit [Quit: '']
Akuma has quit [Quit: So long sukkas!]
A124 has joined #ruby
Dimik has quit [Ping timeout: 244 seconds]
Dimik has joined #ruby
kies has quit [Ping timeout: 258 seconds]
agentmeerkat has joined #ruby
fckyoufreenode has joined #ruby
Dimik has quit [Ping timeout: 250 seconds]
araujo has joined #ruby
araujo has quit [Max SendQ exceeded]
roamingdog has quit []
araujo has joined #ruby
agentmeerkat has quit [Ping timeout: 260 seconds]
Dimik has joined #ruby
yfeldblum has quit [Remote host closed the connection]
d0lph1n98 has joined #ruby
hahuang62 has joined #ruby
blackmesa has joined #ruby
fckyoufreenode has quit [Ping timeout: 260 seconds]
Ishido has joined #ruby
mshowman has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jaguarmagenta has joined #ruby
Dimik has quit [Ping timeout: 250 seconds]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 264 seconds]
hogetaro has joined #ruby
strigonLeader has quit [Read error: Connection reset by peer]
neanderslob has quit [Ping timeout: 260 seconds]
beneggett has joined #ruby
tildes has quit [Ping timeout: 272 seconds]
neanderslob has joined #ruby
northfurr has joined #ruby
amclain has quit [Quit: Leaving]
moeabdol has joined #ruby
ponga has joined #ruby
raviShankarJha has joined #ruby
moeabdol has quit [Ping timeout: 276 seconds]
strigonLeader has joined #ruby
beneggett has quit [Quit: ...zzz ¯\_(ツ)_/¯ zzz...]
tmtwd has quit [Ping timeout: 250 seconds]
tvw has joined #ruby
elementaru has joined #ruby
digneety has joined #ruby
Dimik has joined #ruby
digneety has quit [Client Quit]
jgt has joined #ruby
yeticry has quit [Ping timeout: 244 seconds]
yeticry has joined #ruby
brunchbb has quit [Remote host closed the connection]
agentmeerkat has joined #ruby
harfangk has joined #ruby
the_drow has joined #ruby
the_drow has quit [Max SendQ exceeded]
the_drow has joined #ruby
spider-mario has joined #ruby
agentmeerkat has quit [Ping timeout: 244 seconds]
the_drow has quit [Max SendQ exceeded]
the_drow has joined #ruby
yeticry has quit [Remote host closed the connection]
yeticry has joined #ruby
beneggett has joined #ruby
northfurr has quit [Quit: northfurr]
hogetaro has quit [Quit: Leaving...]
conta has joined #ruby
evansbee has joined #ruby
northfurr has joined #ruby
beneggett has quit [Client Quit]
evansbee has quit [Ping timeout: 250 seconds]
vuoto has joined #ruby
beneggett has joined #ruby
blackmesa has joined #ruby
beneggett has quit [Client Quit]
nanoz has joined #ruby
sp4rrow has joined #ruby
karmatr0n has joined #ruby
RegulationD has joined #ruby
mimtf has left #ruby [#ruby]
kies has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
karmatr0n has quit [Ping timeout: 246 seconds]
RegulationD has quit [Ping timeout: 260 seconds]
hirvi has quit [Quit: leaving]
tildes has joined #ruby
beneggett has joined #ruby
garrulous_goose has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
beneggett has quit [Client Quit]
aberen has joined #ruby
beneggett has joined #ruby
beneggett has quit [Client Quit]
dnewkerk has quit [Quit: dnewkerk]
yaewa has joined #ruby
moei has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
mercerist has joined #ruby
yfeldblum has joined #ruby
aberen has quit [Ping timeout: 240 seconds]
slackbotgz has joined #ruby
jas02 has joined #ruby
mercerist has quit [Ping timeout: 244 seconds]
k3rn31 has quit [Quit: Computer has gone to sleep.]
nankyokusei has joined #ruby
consti has joined #ruby
mercerist has joined #ruby
kies has quit [Ping timeout: 244 seconds]
northfurr has quit [Ping timeout: 244 seconds]
northfurr has joined #ruby
nankyokusei has quit [Ping timeout: 252 seconds]
bkxd has joined #ruby
firstdayonthejob has joined #ruby
zacstewart has quit [Ping timeout: 272 seconds]
houhoulis has joined #ruby
beneggett has joined #ruby
hirvi has joined #ruby
<Dimik> hey guys
chouhoulis has quit [Remote host closed the connection]
northfurr has quit [Ping timeout: 260 seconds]
hirvi has quit [Client Quit]
hirvi has joined #ruby
hirvi has quit [Client Quit]
hirvi has joined #ruby
tvw has quit [Ping timeout: 264 seconds]
beneggett has quit [Client Quit]
rippa has joined #ruby
vdamewood has joined #ruby
jgt has quit [Ping timeout: 276 seconds]
agentmeerkat has joined #ruby
tildes has quit [Ping timeout: 244 seconds]
<jhass> hi
minimalism has quit [Quit: minimalism]
<ljarvis> hello
agentmeerkat has quit [Ping timeout: 244 seconds]
tildes has joined #ruby
Ropeney has joined #ruby
Vile` has joined #ruby
slackbotgz has quit [Remote host closed the connection]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
the_drow has quit [Quit: This computer has gone to sleep]
xall_ has joined #ruby
Ropeney has joined #ruby
zacstewart has joined #ruby
multi_io has quit [Ping timeout: 240 seconds]
Hobogrammer has quit [Quit: WeeChat 0.4.2]
multi_io has joined #ruby
zacstewart has quit [Ping timeout: 276 seconds]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
blackmesa has joined #ruby
karmatr0n has joined #ruby
agentmeerkat has joined #ruby
firstdayonthejob has quit [Ping timeout: 250 seconds]
moeabdol has joined #ruby
karmatr0n has quit [Ping timeout: 260 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
agentmeerkat has quit [Ping timeout: 258 seconds]
marr has joined #ruby
moeabdol has quit [Ping timeout: 276 seconds]
jaguarmagenta has quit [Remote host closed the connection]
yaewa has quit [Quit: Leaving...]
moei has joined #ruby
schuuu has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
nanoz has quit [Read error: Connection reset by peer]
arajakul has quit [Ping timeout: 252 seconds]
hahuang62 has quit [Ping timeout: 260 seconds]
beneggett has joined #ruby
Sammichmaker has quit [Ping timeout: 250 seconds]
agentmeerkat has joined #ruby
houhoulis has quit [Remote host closed the connection]
<apeiros> moin ljarvis
Dimik has quit [Ping timeout: 276 seconds]
beneggett has quit [Quit: ...zzz ¯\_(ツ)_/¯ zzz...]
blackgoat has quit [Quit: WeeChat 1.5]
beneggett has joined #ruby
agentmeerkat has quit [Ping timeout: 250 seconds]
Robtop__ has joined #ruby
ayonkhan has joined #ruby
blackmesa has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 250 seconds]
jas02 has quit [Quit: jas02]
saneax is now known as saneax_AFK
lightt has joined #ruby
beneggett has quit [Quit: ...zzz ¯\_(ツ)_/¯ zzz...]
al2o3-cr has quit [Ping timeout: 260 seconds]
My_Hearing is now known as Mon_Ouie
evansbee has joined #ruby
zacstewart has joined #ruby
pwnd_nsfw` has joined #ruby
Robtop__ has quit [Ping timeout: 250 seconds]
evansbee has quit [Ping timeout: 264 seconds]
zacstewart has quit [Ping timeout: 252 seconds]
agentmeerkat has joined #ruby
Coldblackice has joined #ruby
RegulationD has joined #ruby
karmatr0n has joined #ruby
houhoulis has joined #ruby
agentmeerkat has quit [Ping timeout: 244 seconds]
aries_liuxueyang has quit [Quit: No Ping reply in 180 seconds.]
aries_liuxueyang has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
karmatr0n has quit [Ping timeout: 240 seconds]
blaxter has joined #ruby
miqlas-H has joined #ruby
elvillanorevento has joined #ruby
aberen has joined #ruby
kareeoleez has quit [Remote host closed the connection]
beneggett has joined #ruby
kraken has joined #ruby
kraken is now known as Guest9390
dcunit3d has quit [Ping timeout: 252 seconds]
<Guest9390> Alright, I'm pretty new to programming, but to a computer, is a binary tree with 6**65 object nodes considered a large task for a computer?
<jhass> possibly, depends on how efficiently it's represented, what the nodes contain, what operations need to be done on it
<jhass> but probably not "large" these days, can still be medium
vuoto_ has joined #ruby
<Guest9390> I see
<apeiros> 6**65?
<apeiros> I don't think you can store that at all :D
<apeiros> >> 6**65
<ruby[bot]> apeiros: # => 380041719977839666236973721680871319659378770968576 (https://eval.in/591287)
<rippa> that's pretty big, yeah
<rippa> unless it's sparse
<apeiros> even if each node took only a single bit, that'd probably still exceed the world's storage capacity ;-)
<Guest9390> :(
<rippa> that's 3.3e+35 petabytes
<Guest9390> I'm building a chess game, and trying to figure out the quickest possible way to get toa certain location as a knight, and the largest possible amount of moves it can take to get from one spot ot another is 65
jgt has joined #ruby
<apeiros> >> (6**65 / 8.0) / (1034 ** 4) # terabytes
<ruby[bot]> apeiros: # => 4.1558430053007836e+37 (https://eval.in/591288)
tildes has quit [Ping timeout: 276 seconds]
<rippa> 1034?
aberen has quit [Ping timeout: 260 seconds]
<apeiros> typo
<rippa> Guest9390: you can't bruteforce chess
<rippa> too many states
<Guest9390> what do you mean
Vingador has joined #ruby
<rippa> I mean that you will run out of storage after just a few iterations
<apeiros> >> (6**65 / 8.0) / (1024 ** 5) / 1000000000 # billion petabytes
<ruby[bot]> apeiros: # => 4.219310678375439e+25 (https://eval.in/591289)
<jhass> yeah actually nvm
symm- has joined #ruby
<rippa> you have to do some dynamic programming
<rippa> prune bad branches
tildes has joined #ruby
<apeiros> so it's still having 25 digits when you express it as *billions of petabytes* :D
dumdedum has joined #ruby
<apeiros> does that sufficiently answer your "is it large?"
blaxter has quit [Ping timeout: 244 seconds]
<jhass> mh, what comes after yocto bytes?
<rippa> it's close to number of possible card deck states
<rippa> 8.06e+67
<apeiros> no idea. I always only looked at WP, and that stops at yocto iirc
<rippa> well, not very close
<rippa> but in the same ballpark of very huge
<jhass> yes it does
nankyokusei has joined #ruby
mercerist has quit [Quit: Computer has gone to sleep.]
kareeoleez has joined #ruby
<apeiros> "there are about 1.33e50 atoms in the world" from quora
<rippa> world as in Erf?
<apeiros> 6**65 is larger :D
<rippa> or universe
<apeiros> earth
Guest9390 has quit [Quit: Leaving]
<rippa> I always get confused with word 'world'
<rippa> because in Russian it means everything that exists
<apeiros> so you'd need a subatomic storage device to store it even when using the whole earth as a storage device
<rippa> not just one planet
<apeiros> and still assuming single bit per node (which is unrealistic by itself)
* apeiros wonders whether he should go on :D
zeroDi has joined #ruby
<jhass> well they left
consti has quit [Quit: Textual IRC Client: www.textualapp.com]
Long has joined #ruby
agentmeerkat has joined #ruby
<apeiros> that's a "yes", right?
SirOliver has joined #ruby
kareeoleez has quit [Ping timeout: 250 seconds]
nankyokusei has quit [Ping timeout: 276 seconds]
<jhass> yes: how many earths do you need to store that many deploy keys?
<apeiros> 42
dcunit3d has joined #ruby
pwnd_nsfw has joined #ruby
beneggett has quit [Quit: ...zzz ¯\_(ツ)_/¯ zzz...]
startupality has joined #ruby
_ht_ has quit [Ping timeout: 258 seconds]
beneggett has joined #ruby
_ht has joined #ruby
agentmeerkat has quit [Ping timeout: 240 seconds]
houhoulis has quit [Remote host closed the connection]
pwnd_nsfw` has quit [Ping timeout: 250 seconds]
SirOliver has quit [Remote host closed the connection]
SirOliver has joined #ruby
startupality has quit [Client Quit]
kareeoleez has joined #ruby
lightt has quit [Ping timeout: 240 seconds]
elvillanorevento has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
kareeoleez has quit [Ping timeout: 272 seconds]
startupality has joined #ruby
SCHAAP137 has joined #ruby
kareeoleez has joined #ruby
MyMind has joined #ruby
Vingador has quit [Ping timeout: 240 seconds]
Sembei has quit [Ping timeout: 276 seconds]
kirun has joined #ruby
jgt has quit [Ping timeout: 244 seconds]
agentmeerkat has joined #ruby
startupality has quit [Quit: startupality]
the_drow has joined #ruby
moeabdol has joined #ruby
kareeoleez has quit [Ping timeout: 240 seconds]
zacstewart has joined #ruby
agentmeerkat has quit [Ping timeout: 250 seconds]
moeabdol has quit [Ping timeout: 250 seconds]
kareeoleez has joined #ruby
tildes has quit [Ping timeout: 260 seconds]
ayonkhan has quit [Quit: Textual IRC Client: www.textualapp.com]
zacstewart has quit [Ping timeout: 252 seconds]
xall_ has quit [Ping timeout: 244 seconds]
kareeoleez has quit [Ping timeout: 252 seconds]
jaguarmagenta has joined #ruby
thegunbuster has joined #ruby
startupality has joined #ruby
startupality has quit [Client Quit]
edwinvdgraaf has joined #ruby
startupality has joined #ruby
ta_ has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
jas02 has joined #ruby
startupality has quit [Client Quit]
schuuu has quit [Quit: Leaving.]
marr has quit [Ping timeout: 276 seconds]
SirOliver has quit [Quit: ZZZzzz…]
kareeoleez has joined #ruby
skade has joined #ruby
agentmeerkat has joined #ruby
kareeoleez has quit [Ping timeout: 244 seconds]
agentmeerkat has quit [Ping timeout: 252 seconds]
sdothum has joined #ruby
araujo has quit [Ping timeout: 272 seconds]
ur5us has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto_ has quit [Read error: Connection reset by peer]
vuoto has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
harfangk has quit [Quit: harfangk]
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
vuoto has quit [Remote host closed the connection]
ta_ has quit [Remote host closed the connection]
vuoto has joined #ruby
ta_ has joined #ruby
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
kareeoleez has joined #ruby
vuoto has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
vuoto has joined #ruby
vuoto has quit [Remote host closed the connection]
Snowy has joined #ruby
harfangk has joined #ruby
ta_ has quit [Ping timeout: 244 seconds]
karmatr0n has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
kareeoleez has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
d0lph1n98 has quit [Ping timeout: 244 seconds]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tvw has joined #ruby
shinnya has quit [Ping timeout: 246 seconds]
karmatr0n has quit [Ping timeout: 260 seconds]
agentmeerkat has joined #ruby
Coldblackice has quit [Ping timeout: 250 seconds]
Eilinen has joined #ruby
<Eilinen> Hello.
norc__ has quit [Read error: Connection reset by peer]
agentmeerkat has quit [Ping timeout: 246 seconds]
SCHAAP137 has quit [Ping timeout: 276 seconds]
<spudowiar> Ehllo
kareeoleez has joined #ruby
evansbee has joined #ruby
ur5us has quit [Remote host closed the connection]
toretore has joined #ruby
zacstewart has joined #ruby
symm- has quit [Ping timeout: 276 seconds]
diegoaguilar has joined #ruby
diegoaguilar has quit [Max SendQ exceeded]
diegoaguilar has joined #ruby
kareeoleez has quit [Ping timeout: 260 seconds]
evansbee has quit [Ping timeout: 272 seconds]
KnownSyntax_ has joined #ruby
<Eilinen> Does someone have time to help with a little problem I have?
<tobiasvl> Eilinen: just ask
<Eilinen> Okay, I've been trying to do solve this: http://codeforces.com/problemset/problem/71/A for quite while
zacstewart has quit [Ping timeout: 276 seconds]
<ruby[bot]> Eilinen: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/bc4cf4e5b43bf90db7418ecea55858d7
<ruby[bot]> Eilinen: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
KnownSyntax has quit [Ping timeout: 244 seconds]
thegunbuster has quit [Read error: Connection reset by peer]
binaryplease has joined #ruby
RegulationD has joined #ruby
<Eilinen> Problem is that it works fine if there are less than those 12 characters
eGGshke has joined #ruby
<tobiasvl> so that tells you that your error is in the if clause
<tobiasvl> puts b + s + c
<tobiasvl> that should give you an error
SCHAAP137 has joined #ruby
tmtwd has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
<tobiasvl> Eilinen: right?
<Eilinen> Yes
<tobiasvl> so perhaps it is this error:
<tobiasvl> TypeError: no implicit conversion of Fixnum into String
<tobiasvl> riiight?
RegulationD has quit [Ping timeout: 276 seconds]
<Eilinen> Ah pardon, can't read fast enough after double clicking etc
<Eilinen> Just trying to test again it it works with irb
<tobiasvl> that's ok, just trying to weasel out of you what your problem actually is
<Eilinen> TypeError: no implicit conversion of Fixnum into String from (irb):8:in `+' from (irb):8 from C:/Ruby22-x64/bin/irb:11:in `<main>'
<Eilinen> Yeah that one
Snowy has quit [Read error: Connection reset by peer]
SirOliver has joined #ruby
SirOliver has quit [Client Quit]
Snowy has joined #ruby
<tobiasvl> right. so that tells you that + tries to convert a Fixnum into a string. you know that a is a string and b is a Fixnum of sorts (an integer), so that must be the conversion that fails
<tobiasvl> for a string, + means concatenation, but for a number it means addition.
<tobiasvl> on line 4 you do this:
<tobiasvl> a.size.to_i
SirOliver has joined #ruby
<tobiasvl> (sorry, I meant s, not b)
<Eilinen> no problem
<tobiasvl> I'm not sure why, because a.size should already be a number. you don't need to do to_i on it. it would, however, be an idea to do to_s on it, so it becomes a string that can be concatenated
dionysus69 has joined #ruby
<Eilinen> Okay, well I wasn't sure if it is so I tried to play it safe
kareeoleez has joined #ruby
Long has quit [Quit: Leaving.]
<tobiasvl> well, even if it wasn't, you want it to end up as a string
aberen has joined #ruby
kareeoleez has quit [Ping timeout: 244 seconds]
e4xit_ has joined #ruby
e4xit_ is now known as e4xit
<Eilinen> Hmm okay well in that problem you're supposed to get first and last character in case the string is over 10 characters. And if it's over let's say like 12 characters it should give an outcome: f12l assuming that f is first and l is last character
<Eilinen> So I thought that easy way would have been what I tried.
pwnd_nsfw has quit [Read error: Connection reset by peer]
leitz has joined #ruby
aberen has quit [Ping timeout: 260 seconds]
pwnd_nsfw has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
phoo1234567 has joined #ruby
nankyokusei has joined #ruby
blackmesa has joined #ruby
mdw has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
cajone has quit [Quit: Leaving.]
kareeoleez has joined #ruby
moeabdol has joined #ruby
cajone has joined #ruby
kareeoleez has quit [Ping timeout: 264 seconds]
chouhoulis has quit [Ping timeout: 272 seconds]
<leitz> Working on OOP design, my brain is melting...reducing the main class more and more to do less and less.
diegoaguilar has quit [Ping timeout: 260 seconds]
Yiota has joined #ruby
diegoaguilar has joined #ruby
diegoaguilar has quit [Max SendQ exceeded]
agentmeerkat has joined #ruby
k3rn31 has joined #ruby
tvw has quit []
startupality has joined #ruby
tuelz has quit [Ping timeout: 250 seconds]
tmtwd has quit [Ping timeout: 244 seconds]
agentmeerkat has quit [Ping timeout: 244 seconds]
Xiti has quit [Ping timeout: 276 seconds]
daumie has joined #ruby
kareeoleez has joined #ruby
<daumie> Hello.......I wanna learn Ruby...I could use some advice
hanmac has quit [Ping timeout: 258 seconds]
dling has quit []
kareeoleez has quit [Ping timeout: 252 seconds]
<jhass> daumie: just ask
startupality has quit [Quit: startupality]
blackmesa has quit [Ping timeout: 244 seconds]
biberu has joined #ruby
d0lph1n98 has joined #ruby
aries_liuxueyang has quit [Ping timeout: 250 seconds]
ocbtec has joined #ruby
hanmac has joined #ruby
n1xnz has quit [Quit: Computer says no]
kareeoleez has joined #ruby
tmtwd has joined #ruby
aries_liuxueyang has joined #ruby
kareeoleez has quit [Ping timeout: 272 seconds]
nadir has joined #ruby
Long has joined #ruby
lxsameer has quit [Quit: WeeChat 1.5]
jaguarmagenta has joined #ruby
yaewa has joined #ruby
moei has quit [Ping timeout: 244 seconds]
<leitz> If i take out all the initializations from Class A, and put them into Module X, that means Module Q can also use Class A since Q doesn't want the initializations.
<leitz> It is a bit difficult to pull away from the "one thing that rules them all" mentality.
jaguarmagenta has quit [Ping timeout: 260 seconds]
nick_traveling has joined #ruby
kareeoleez has joined #ruby
nick_traveling has quit [Client Quit]
tmtwd has quit [Ping timeout: 264 seconds]
jgt has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bkxd has quit [Ping timeout: 240 seconds]
jas02 has quit [Quit: jas02]
Xiti has joined #ruby
Xiti has quit [Client Quit]
agentmeerkat has joined #ruby
ta_ has joined #ruby
toretore has quit [Ping timeout: 272 seconds]
agentmeerkat has quit [Ping timeout: 260 seconds]
edwinvdgraaf has quit [Remote host closed the connection]
yqt has joined #ruby
al2o3-cr has joined #ruby
ta_ has quit [Ping timeout: 260 seconds]
troulouliou_dev has joined #ruby
startupality has joined #ruby
daumie has quit [Ping timeout: 240 seconds]
toretore has joined #ruby
SirOliver has quit [Remote host closed the connection]
SirOliver has joined #ruby
blackmesa has joined #ruby
jgt has quit [Ping timeout: 276 seconds]
daumie has joined #ruby
kgrz has joined #ruby
evansbee has joined #ruby
symm- has joined #ruby
startupality has quit [Quit: startupality]
blackmesa has quit [Ping timeout: 240 seconds]
zacstewart has joined #ruby
GodFather has joined #ruby
evansbee has quit [Ping timeout: 260 seconds]
ornerymoose has joined #ruby
mercerist has joined #ruby
Guest19923 has quit [Ping timeout: 250 seconds]
agentmeerkat has joined #ruby
zacstewart has quit [Ping timeout: 244 seconds]
RegulationD has joined #ruby
agentmeerkat has quit [Ping timeout: 250 seconds]
pilne has joined #ruby
Snowy has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 246 seconds]
toretore has quit [Ping timeout: 250 seconds]
startupality has joined #ruby
hogetaro has joined #ruby
kgrz has quit [Ping timeout: 272 seconds]
aberen has joined #ruby
Morrolan has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
kgrz has joined #ruby
aberen has quit [Ping timeout: 250 seconds]
FernandoBasso has quit [Ping timeout: 272 seconds]
startupality has quit [Quit: startupality]
aries_liuxueyang has quit [Quit: No Ping reply in 180 seconds.]
nankyokusei has joined #ruby
aries_liuxueyang has joined #ruby
idle_task has quit [Remote host closed the connection]
mercerist has quit [Remote host closed the connection]
startupality has joined #ruby
yottanami has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
cisco has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
agentmeerkat has joined #ruby
shinnya has joined #ruby
dionysus69 has quit [Ping timeout: 244 seconds]
<yottanami> I have an array of hashes, What is the best way to check is there any hash index with specific value? for example is there [:name]='Rock' there
kgrz has quit [Ping timeout: 264 seconds]
agentmeerkat has quit [Ping timeout: 252 seconds]
<yottanami> Is this a good way: my_arr.select {|item| item["name"] == 'Rock' }
eljimmy has quit [Read error: Connection reset by peer]
<jhass> yottanami: almost, simply replace .select with .any?
karmatr0n has joined #ruby
symm- has quit [Ping timeout: 260 seconds]
Ropeney has joined #ruby
jhack has joined #ruby
jhack has quit [Client Quit]
nankyokusei has joined #ruby
karmatr0n has quit [Ping timeout: 240 seconds]
gooba has quit [Ping timeout: 260 seconds]
c0mrad3 has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
FernandoBasso has joined #ruby
johnmilton has joined #ruby
Dreamer3 has quit [Quit: Leaving...]
pawnbox has quit [Remote host closed the connection]
ornerymoose has quit [Quit: ornerymoose]
blackmesa has joined #ruby
Esya has quit [Read error: Connection reset by peer]
evansbee has joined #ruby
saneax_AFK is now known as saneax
agentmeerkat has joined #ruby
postmodern has quit [Quit: Leaving]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agentmeerkat has quit [Ping timeout: 246 seconds]
blackmesa has quit [Ping timeout: 272 seconds]
Zai00 has joined #ruby
Zai00 has quit [Client Quit]
garrulous_goose has joined #ruby
Xiti has joined #ruby
blackmesa has joined #ruby
c355e3b has joined #ruby
aberen has joined #ruby
zacstewart has joined #ruby
mrmortondk has quit [Quit: Textual IRC Client: www.textualapp.com]
jaguarmagenta has joined #ruby
aries_liuxueyang has quit [Quit: No Ping reply in 180 seconds.]
Long has quit [Quit: Leaving.]
yottanami has quit [Quit: Leaving]
Eilinen has quit [Ping timeout: 250 seconds]
aries_liuxueyang has joined #ruby
SirOliver has quit [Quit: ZZZzzz…]
aberen has quit [Ping timeout: 260 seconds]
jaguarmagenta has quit [Ping timeout: 244 seconds]
raviShankarJha has quit []
SilverKey has joined #ruby
vipinj has joined #ruby
vipinj has quit [Client Quit]
pawnbox has joined #ruby
vipinj has joined #ruby
futilegames has joined #ruby
aryaching has joined #ruby
phoo1234567 has quit [Quit: Gotta go]
karmatr0n has joined #ruby
yqt has quit [Ping timeout: 272 seconds]
garrulous_goose has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mshowman has joined #ruby
garrulous_goose has joined #ruby
ta_ has joined #ruby
jhack has joined #ruby
evansbee has quit [Ping timeout: 276 seconds]
vipinj has quit [Quit: This computer has gone to sleep]
harfangk has quit [Quit: harfangk]
fenre has joined #ruby
ta_ has quit [Ping timeout: 244 seconds]
fenre has quit [Read error: Connection reset by peer]
imperator has joined #ruby
fenre has joined #ruby
<shevy> does anyone happen to have a benchmark file to compare method-usage with, and without, using explicit return?
RegulationD has joined #ruby
cisco has quit [Ping timeout: 252 seconds]
agentmeerkat has joined #ruby
fenre has quit [Remote host closed the connection]
aries_liuxueyang has quit [Quit: No Ping reply in 180 seconds.]
harfangk has joined #ruby
futilegames has quit [Quit: futilegames]
RegulationD has quit [Ping timeout: 244 seconds]
aries_liuxueyang has joined #ruby
agentmeerkat has quit [Ping timeout: 276 seconds]
mdw has quit [Quit: cya! http://www.somerobots.com]
gizmore has joined #ruby
karmatr0n has quit [Ping timeout: 264 seconds]
moeabdol has quit [Quit: WeeChat 1.4]
Ropeney_ has joined #ruby
Ropeney_ has quit [Client Quit]
kareeoleez has quit [Remote host closed the connection]
kies has joined #ruby
ornerymoose has joined #ruby
FooMunki has joined #ruby
SirOliver has joined #ruby
<pilne> how likely is a gem that hasn't been updated in a couple years is going to work flawlessly with ruby 2.3+?
<lupine> rather depends on what it does
agentmeerkat has joined #ruby
vdamewood has quit [Quit: Life beckons.]
<lupine> load it up, run its test suite
<pilne> so try and pray :)
kareeoleez has joined #ruby
<lupine> nothing wil be as bad as 1.8 -> 1.9 ^^
<pilne> i'm in that stage where i'm heavily dependent on gems to "explore" new things
FooMunki has quit [Client Quit]
<pilne> that "i see what the code is doing and "get" it, but creating from scratch is overwhelming" stage
agentmeerkat has quit [Ping timeout: 240 seconds]
kareeoleez has quit [Ping timeout: 258 seconds]
TomyLobo has quit [Read error: Connection reset by peer]
firstdayonthejob has joined #ruby
garrulous_goose has quit [Ping timeout: 240 seconds]
Ropeney_ has joined #ruby
dumdedum has quit [Quit: KTHXBYE]
romistrub has joined #ruby
<romistrub> What's the best Ruby book that covers the whole range of Ruby intricacies?
<romistrub> I mean like, RubyMonk, for example, will say something like "the special method names that you'll encounter most frequently are..."
<romistrub> I don't want to know what I'll encounter most frequently, I want the full list
<romistrub> Any good resource for that kinda treatment?
jxs_ has quit [Remote host closed the connection]
<romistrub> lol
<jhass> as "full list" as it gets
<romistrub> Well, I was hoping for a something like OReilly's Definitive Guide series
<romistrub> don't think they have one for Ruby thought
<romistrub> *though
kareeoleez has joined #ruby
harfangk has quit [Quit: harfangk]
<jhass> you want a reference written as tutorial?
<jhass> these don't work well as either IME
<jhass> pythons language docs are kinda an example to prove that
<romistrub> jhass: Never actually browsed through the rdocs here... only landed on them from Google searches. These could actually be of great use.
<romistrub> Thanks :)
<romistrub> I guess I was just hoping to have it in book-form lol. Something I can have open next to my tiny laptop, u know?
kareeoleez has quit [Ping timeout: 250 seconds]
Long has joined #ruby
harfangk has joined #ruby
agentmeerkat has joined #ruby
mdw has joined #ruby
edwinvdgraaf has joined #ruby
kareeoleez has joined #ruby
sepp2k has joined #ruby
startupality has quit [Quit: startupality]
agentmeerkat has quit [Ping timeout: 252 seconds]
RegulationD has joined #ruby
kareeoleez has quit [Ping timeout: 246 seconds]
startupality has joined #ruby
<shevy> documentation is one of those things where ruby does not shine
startupality has quit [Client Quit]
RegulationD has quit [Ping timeout: 240 seconds]
jaguarmagenta has joined #ruby
kareeoleez has joined #ruby
<romistrub> yeah... I was hoping for something that goes as in depth as the rdocs do, but says things like "which would be useful if, for example"
<romistrub> but that would double the length of their docs, so I could see why it's not there
dcunit3d has quit [Ping timeout: 246 seconds]
vuoto has joined #ruby
<romistrub> just going through all the ways you can pattern method arguments... didn't know it was so flexible. Examples of how some particular pattern could be used would have been nice. Oh well
johnmilton has quit [Ping timeout: 276 seconds]
valagalen has joined #ruby
SilverKey has quit [Quit: Halted.]
unknown| has joined #ruby
<shevy> yeah
<shevy> I'd like if https://pine.fm/LearnToProgram/chap_01.html would be massively expanded - or, after the current part, add an extended part, like "Tutorial II - continue here"
kareeoleez has quit [Ping timeout: 244 seconds]
safe has joined #ruby
harfangk has quit [Quit: harfangk]
iceden has quit [Ping timeout: 244 seconds]
leitz has quit [Quit: Nappy time]
<lupine> _why _why _why..... delila...
eGGshke has quit [Quit: Leaving...]
<lupine> romistrub: the ruby "pickaxe" book is what was being recommend back when I was after references
linoge has joined #ruby
<lupine> dunno how often it's updated
<linoge> Is there any way to install a homemade payment gateway in a Shopify site?
<romistrub> lupine: thx, forgot about it, I'll take a look into it
FernandoBasso has quit [Ping timeout: 276 seconds]
dionysus69 has joined #ruby
valagalen has quit [Quit: Leaving]
evansbee has joined #ruby
johnmilton has joined #ruby
hutch34 has joined #ruby
banister has joined #ruby
agentmeerkat has joined #ruby
startupality has joined #ruby
<shevy> pilne if the old code is of high quality and written in a disciplinized way, you could try to maintain it :)
kareeoleez has joined #ruby
rapha_ has quit [Quit: WeeChat 1.4]
rapha has joined #ruby
agentmeerkat has quit [Ping timeout: 244 seconds]
yaewa has quit [Quit: Leaving...]
moei has joined #ruby
kareeoleez has quit [Ping timeout: 276 seconds]
Gasher has joined #ruby
toretore has joined #ruby
linoge has quit [Quit: WeeChat 1.5]
kareeoleez has joined #ruby
<pilne> i get anxiety knowing people depend on me >.< LOL
Ropeney_ has quit [Remote host closed the connection]
jhack has quit [Quit: jhack]
startupality has quit [Quit: startupality]
roundabout22 has joined #ruby
moeabdol has joined #ruby
cevett has quit [Ping timeout: 272 seconds]
startupality has joined #ruby
kareeoleez has quit [Ping timeout: 244 seconds]
chouhoulis has joined #ruby
kgrz has joined #ruby
chouhoulis has quit [Remote host closed the connection]
kgrz has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
vuoto has quit [Remote host closed the connection]
kareeoleez has joined #ruby
madgen has joined #ruby
yqt has joined #ruby
kareeoleez has quit [Ping timeout: 258 seconds]
agentmeerkat has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
ornerymoose has quit [Quit: ornerymoose]
ta_ has joined #ruby
kareeoleez has joined #ruby
agentmeerkat has quit [Ping timeout: 276 seconds]
dionysus69 has quit [Ping timeout: 260 seconds]
nanoz has joined #ruby
startupality has quit [Quit: startupality]
d0lph1n98 has quit [Ping timeout: 276 seconds]
jhack has joined #ruby
kareeoleez has quit [Ping timeout: 276 seconds]
ta_ has quit [Ping timeout: 272 seconds]
FernandoBasso has joined #ruby
evansbee has quit [Ping timeout: 250 seconds]
ineb_ has quit [Quit: leaving]
jancel has joined #ruby
zeroDi has quit [Quit: WeeChat 1.5]
daumie has quit [Ping timeout: 252 seconds]
jancel has quit [Ping timeout: 250 seconds]
neanderslob has quit [Ping timeout: 258 seconds]
jaguarmagenta has quit [Remote host closed the connection]
banister is now known as banisterfiend
banisterfiend has quit [Changing host]
banisterfiend has joined #ruby
kareeoleez has joined #ruby
SirOliver has quit [Quit: ZZZzzz…]
last_staff has joined #ruby
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kareeoleez has quit [Remote host closed the connection]
kareeoleez has joined #ruby
vuoto has joined #ruby
agentmeerkat has joined #ruby
neanderslob has joined #ruby
kapo has joined #ruby
rueben has joined #ruby
banister has joined #ruby
mshowman has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SirOliver has joined #ruby
agentmeerkat has quit [Ping timeout: 244 seconds]
bluOxigen has quit [Ping timeout: 244 seconds]
karmatr0n has joined #ruby
bluOxigen has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
tuelz has joined #ruby
aupadhye has joined #ruby
jhack has quit [Quit: jhack]
mercerist has joined #ruby
jaguarmagenta has joined #ruby
rkazak has joined #ruby
RegulationD has joined #ruby
arlek has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
jhack has joined #ruby
mdw has joined #ruby
aupadhye has quit [Remote host closed the connection]
mdw_ has joined #ruby
RegulationD has quit [Ping timeout: 260 seconds]
madgen has quit [Ping timeout: 252 seconds]
madgen has joined #ruby
AndroidLoverInSF has joined #ruby
mdw has quit [Ping timeout: 260 seconds]
tuelz has quit [Ping timeout: 252 seconds]
Gasher has quit [Remote host closed the connection]
SirOliver has quit [Quit: ZZZzzz…]
amclain has joined #ruby
RegulationD has joined #ruby
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
sgringwe has joined #ruby
diegoaguilar has joined #ruby
diegoaguilar has quit [Max SendQ exceeded]
<sgringwe> Is there an expected 2.3.2 release date? I am particularly interested in seeing https://bugs.ruby-lang.org/issues/7215 fixed
tuelz has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
jgt has joined #ruby
tmtwd has joined #ruby
AndroidLoverInSF has quit [Quit: Leaving]
jhack has quit [Quit: jhack]
tvw has joined #ruby
armyriad has quit [Read error: Connection reset by peer]
ponga has quit [Quit: Connection closed for inactivity]
karmatr0n has quit [Ping timeout: 260 seconds]
tuelz has quit [Ping timeout: 246 seconds]
<pilne> how is a "functional" approach of building/chaining many small functions work out in ruby? or is it better to stick to a more "OO-imperative" mindset?
LoneHermit has quit [Remote host closed the connection]
<jhass> IMO the latter
tvw has quit [Client Quit]
<jhass> ruby probably works best on a middle ground, like things like Enumerable/Enumerator demonstrate
<pilne> that's going to be my major hurdle, the draw of haskell when i got back into coding was that, it is how i just tend to "build" in my head
<pilne> python is even less friendly to that i've found, except when playing with "hy"
phoo1234567 has joined #ruby
<pilne> ruby feels the most, but like you said, "naturally" leans towards OO-imperative
hk238 has joined #ruby
madgen has quit [Ping timeout: 252 seconds]
someish has joined #ruby
<someish> What’s a more eloquent way to write this: https://gist.github.com/saturday/ffc89e4fd5ad7afe5a9c7971cc2dd080
jhack has joined #ruby
joneshf-laptop has joined #ruby
<jhass> mmh, base_id ||= saved_task.id for starters
<jhass> how is base_id set prior?
<adam12> Also, if this is AR, doesn't `#save` return a boolean?
<jhass> ah yes it does
<jhass> so that code doesn't work
<jhass> don't assign saved_task was my next suggestion anyway
<adam12> Yeah. Be nice to see more of the code
<adam12> What's the point of base_id if it's not used further down the block.
armyriad has joined #ruby
<adam12> (more of a query than a statement :))
armyriad has quit [Max SendQ exceeded]
romistrub has quit [Ping timeout: 250 seconds]
armyriad has joined #ruby
<someish> I updated the gist.
kareeole_ has joined #ruby
SirOliver has joined #ruby
kapo has quit [Ping timeout: 240 seconds]
<someish> adam12: ^
<jhass> someish: that's all? base_id isn't set prior?
<jhass> and not used after?
<someish> base_id is set on the first iteration.
yfeldblum has joined #ruby
<adam12> Ah
<adam12> So you accept an enumerable of tasks, and the first one is the "base"
<someish> adam12: Exactly.
<adam12> And the next ones have the base ID of the previous?
<someish> The others have a base_id value that equals the id of the first saved task.
<adam12> So the base ID is always a single value, after the first one is saved?
<adam12> It's not cascading, using each previous task?
<someish> adam12: Exactly.
<jhass> someish: https://p.jhass.eu/31.rb
kareeoleez has quit [Ping timeout: 276 seconds]
ur5us has joined #ruby
<adam12> jhass: oh fancy :)
<someish> I’m reading the docs on each_cons
<jhass> oh, but I got it wrong
<adam12> I've commented on the gist.
<jhass> I read it as cascading too
<adam12> bbiaf.
<jhass> someish: https://p.jhass.eu/32.rb instead, I'd duplicate the .save call here
yqt has quit [Ping timeout: 246 seconds]
yohle has joined #ruby
ketherah has joined #ruby
go-nuts has joined #ruby
safe has quit [Read error: Connection reset by peer]
<go-nuts> expensive(Float::INFINITY).lazy.first...what am i missing
yohle has quit [Client Quit]
<shevy> wisdom
<jhass> go-nuts: a question?
<go-nuts> shevy: its loading forever.
<shevy> what code
<jhass> yeah show expensive
<shevy> not too expensive!
<go-nuts> jhass: so my expensive function take a while...i thought it was supposed to only process it when first is fired or something
<someish> jhass: I think your suggestion will save the first index in the array twice.
<jhass> someish: no, shift is modifying
sgringwe has quit [Quit: Page closed]
jaguarmagenta has quit [Remote host closed the connection]
<jhass> go-nuts: no, when you call it
LoneHerm_ has joined #ruby
<someish> jhass: Ahhh. I like it.
<jhass> go-nuts: .lazy changes the execution of the enumerator chain coming after it, from operation a for all, operation b for all, ... to operation a for the first, operation b for the first, ...
rueben has quit [Ping timeout: 244 seconds]
<someish> I really like that actually. And since its the end of the line for the object, I’m not super concerned with modifying it inline.
<jhass> someish: non-modifying alternative would be .first and tasks.drop(1).each I guess
minimalism has joined #ruby
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
Long has left #ruby [#ruby]
kapo has joined #ruby
kapo has quit [Client Quit]
unknown| has quit [Ping timeout: 252 seconds]
tmtwd has quit [Ping timeout: 276 seconds]
edwinvdgraaf has joined #ruby
unknown| has joined #ruby
jaguarmagenta has joined #ruby
nankyokusei has joined #ruby
Coldblackice has joined #ruby
yqt has joined #ruby
<someish> adam12: Small world. Fellow Software Niagara member.
nankyoku_ has joined #ruby
evansbee has joined #ruby
ta_ has joined #ruby
nankyokusei has quit [Ping timeout: 250 seconds]
nankyoku_ has quit [Remote host closed the connection]
nankyokusei has joined #ruby
jas02 has joined #ruby
madgen has joined #ruby
symm- has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
evansbee has quit [Ping timeout: 260 seconds]
hutch34 has quit [Ping timeout: 244 seconds]
ta_ has quit [Ping timeout: 264 seconds]
SCHAAP137 has joined #ruby
nanoz has quit [Read error: Connection reset by peer]
kareeole_ is now known as kareeoleez
Coldblackice has quit [Ping timeout: 250 seconds]
Coldblackice has joined #ruby
ElFerna has quit []
xall_ has joined #ruby
jinie has quit [Ping timeout: 260 seconds]
jinie has joined #ruby
tildes has joined #ruby
conta has quit [Ping timeout: 276 seconds]
nankyoku_ has joined #ruby
SirOliver has quit [Quit: ZZZzzz…]
pdm_ has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
mercerist has quit [Quit: Computer has gone to sleep.]
skinnyjames has joined #ruby
hutch34 has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
<skinnyjames> What's the best practice if wanting to update somebody's old rails plugin into 2 gems? Ask them to do it? or do it yourself?
mercerist has joined #ruby
armin has joined #ruby
aeterne has joined #ruby
hutch34 has quit [Ping timeout: 264 seconds]
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
GodFather has quit [Ping timeout: 250 seconds]
LoneHerm_ has quit [Remote host closed the connection]
Rickmasta has quit [Ping timeout: 250 seconds]
[ohjn] has joined #ruby
certainty has joined #ruby
AnoHito has quit [Quit: Leaving]
Hobogrammer has joined #ruby
Rickmasta has joined #ruby
arlek has quit [Ping timeout: 240 seconds]
FernandoBasso has quit [Ping timeout: 272 seconds]
jinie has quit [Ping timeout: 246 seconds]
tildes has quit [Ping timeout: 260 seconds]
tildes has joined #ruby
elvillanorevento has joined #ruby
AnoHito has joined #ruby
skinnyjames has left #ruby [#ruby]
Yzguy has joined #ruby
Yzguy has quit [Max SendQ exceeded]
<Papierkorb> skinnyjames: If there hasn't been any change for quite some time on that gem, and if the author isn't really active anymore, you could do it yourself. If the author is somewhat active, try opening a github issue.
<Papierkorb> Or maybe not. Wha'eva.
yfeldblum has quit [Ping timeout: 250 seconds]
codecop has joined #ruby
kristofferR has joined #ruby
agentmeerkat has joined #ruby
apofis has joined #ruby
apofis has quit [Max SendQ exceeded]
apofis has joined #ruby
ta_ has joined #ruby
elvillanorevento has quit [Ping timeout: 260 seconds]
pawnbox has quit [Ping timeout: 250 seconds]
newbie|2 has joined #ruby
agentmeerkat has quit [Ping timeout: 260 seconds]
hutch34 has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
hutch34 has quit [Client Quit]
spiette has joined #ruby
arlek has joined #ruby
pawnbox has joined #ruby
startupality has joined #ruby
Xeago_ has joined #ruby
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
pawnbox_ has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
Xeago has quit [Ping timeout: 244 seconds]
Xeago_ is now known as Xeago
diegoaguilar has joined #ruby
garrulous_goose has joined #ruby
diegoaguilar has quit [Max SendQ exceeded]
diegoaguilar has joined #ruby
diegoaguilar has quit [Max SendQ exceeded]
startupality has quit [Quit: startupality]
<go-nuts> hey
tildes has quit [Ping timeout: 260 seconds]
<go-nuts> so i have a time table - a 2 dimension time table with the multiplication table
<go-nuts> i just have the result of multiplication
<go-nuts> how to append row1 and col1 to the array of the results
Channel6 has joined #ruby
jinie has joined #ruby
LoneHermit has joined #ruby
startupality has joined #ruby
ur5us has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 244 seconds]
yfeldblum has joined #ruby
ta_ has quit [Remote host closed the connection]
<Veejay> go-nuts: Use an array of arrays? The main array are the rows, the arrays the main array contains are the columns for each row?
<jhass> there's also a Matrix stdlib
<go-nuts> Veejay: forget everything i said, imagine you have everything in the matrix but col1 and row1. now you want to add it
kavanagh has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
Cohedrin has joined #ruby
<Veejay> My answer wouldn't make sense if I don't know what your data structure actually is
<go-nuts> Veejay: you need to know. imagine you have a matrix full of numbers
<go-nuts> those numbers are coming from a array of nested arrays
<go-nuts> now you want to add a new row1 and a new col1
symm- has joined #ruby
<go-nuts> What's the most effective way to do it?
symm- has quit [Client Quit]
SirOliver has joined #ruby
symm- has joined #ruby
pawnbox_ has quit [Ping timeout: 260 seconds]
diegoaguilar has joined #ruby
FernandoBasso has joined #ruby
jhack has quit [Quit: jhack]
kavanagh has quit [Ping timeout: 272 seconds]
kavanagh has joined #ruby
SirOliver has quit [Ping timeout: 260 seconds]
Nilium has quit [Remote host closed the connection]
Nilium has joined #ruby
daguilaraguilar has joined #ruby
daguilaraguilar has quit [Max SendQ exceeded]
diegoaguilar has quit [Read error: Connection reset by peer]
daguilaraguilar has joined #ruby
daguilaraguilar has quit [Max SendQ exceeded]
jhack has joined #ruby
<phredus> Hello all, is anyone here running ruby on gentoo?
daguilaraguilar has joined #ruby
daguilaraguilar has quit [Max SendQ exceeded]
FernandoBasso has quit [Ping timeout: 240 seconds]
jhack has quit [Client Quit]
xall_ has quit [Ping timeout: 246 seconds]
mattwashere has joined #ruby
startupality has quit [Quit: startupality]
<go-nuts> jhass: how will you use vstack on the nested array. i dont follow
<jhass> you said you have a matrix
<jhass> ?anyone phredus
<ruby[bot]> phredus: Just ask your question, if anyone has, is or can, they will respond.
[ohjn] has quit [Quit: Leaving]
startupality has joined #ruby
diegoaguilar has joined #ruby
startupality has quit [Client Quit]
vuoto has quit [Quit: Lost terminal]
vuoto has joined #ruby
startupality has joined #ruby
<adam12> someish: Wow .Very small world.
Crogic has joined #ruby
sepp2k has quit [Quit: Leaving.]
<go-nuts> jhass: will a llink help?
<ruby[bot]> go-nuts: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/56a8673b240d63469271d09282e4b1ce
<ruby[bot]> go-nuts: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<go-nuts> wow nice bot
<adam12> someish: Should come out to one of the events. Always a good time.
kavanagh has quit [Ping timeout: 246 seconds]
<jhass> go-nuts: you "I have this" is a syntax error
<jhass> *your
<jhass> but okay, let's ignore that
<jhass> where does the data to add come from?
Crogic has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
<go-nuts> jhass: its row1, and col1 of the initial array
<go-nuts> sorry
madgen has quit [Ping timeout: 276 seconds]
<jhass> "the initial array" tells me nothing
<go-nuts> jhass: it's fixed data arbitrary of my choosing
<jhass> I want to know how it's stored
<jhass> or structured rather
pdm_ has quit [Quit: Ex-Chat]
d5sx43 has joined #ruby
<go-nuts> jhass: its stored in an rarray so [1,2,3,4...]
<go-nuts> for row1, and row1 = col1
<phredus> I am trying to set up ruby on rails on gentoo, which which ruby version manager works with gentoo? where can I find install documentation?
<jhass> go-nuts: so just just .unshift the row and .each_with_index and .unshift the column
<jhass> skipping 0 for the latter
d5sx43 has quit [Client Quit]
<adam12> phredus: Likely all of them - I'm preferential to chruby + ruby-install.
jancel has joined #ruby
startupality has quit [Quit: startupality]
<jhass> phredus: ^ +1 to chruby https://github.com/postmodern/chruby
kavanagh has joined #ruby
mattwashere has quit [Remote host closed the connection]
mattwashere has joined #ruby
Channel6 has quit [Quit: Leaving]
<phredus> adam12: I cannot find any documentation relating to chruby on gentoo, could you please share your information
pawnbox has joined #ruby
SirOliver has joined #ruby
<adam12> phredus: I don't run it on gentoo, but it's distribution agnostic.
<adam12> phredus: Aslong as you are running a compatible shell - Bash, Zsh, maybe even Fish.
startupality has joined #ruby
<adam12> phredus: Basically, you could likely get by with downloading both, `make install` once you extract the package, and then follow the instructions for updating your `.bash_profile` or whatever.
<go-nuts> jhass: can we do it with matrix
startupality has quit [Client Quit]
newbie|2 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Crogic has joined #ruby
skweek has quit [Remote host closed the connection]
specialblend_ has joined #ruby
<go-nuts> jhass: grr i dont follow nothing, im so slow today ill just do it my way
jancel has quit [Ping timeout: 252 seconds]
Crogic has quit [Remote host closed the connection]
<phredus> adam12: great thank you, I get chruby, but ruby-install?
<adam12> phredus: chruby only sets up path / env variables. If you want to install a custom version of Ruby, you can either build manually or use ruby-install.
karmatr0n has joined #ruby
d5sx43 has joined #ruby
<adam12> phredus: Essentially, you'll be installing user-local versions of Ruby. chruby sets up the paths, ruby-install does the build.
jaguarmagenta has joined #ruby
d5sx43 has quit [Client Quit]
skweek has joined #ruby
<phredus> adam12: ok got it but where do I get ruby-install or are you saying that ruby-install is a chruby command?
<adam12> phredus: Ah. Both are packages from postmodern, IIRC.
startupality has joined #ruby
<phredus> ok it looks like its all on the link I will get reading, thank you both
gusrub has quit [Quit: Leaving]
vuoto has quit [Quit: Lost terminal]
FernandoBasso has joined #ruby
karmatr0n has quit [Ping timeout: 272 seconds]
vuoto has joined #ruby
vuoto has quit [Client Quit]
vuoto has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
<adam12> phredus: good luck!
specialblend_ has quit [Quit: specialblend_]
<marahin> https://gist.github.com/Marahin/6d5d8bf0e7dde4f5703df6e4e11b7240 - is this a fine way to load some .rb modules / classes for a Ruby program? Should it be wrapped with a module, since it's just a part of a bigger program?
<marahin> e.g. is this kind of loading modules / classes / scripts is OK, and when should I wrap things in a module?
diegoaguilar has quit [Ping timeout: 264 seconds]
startupality has quit [Quit: startupality]
codecop has quit [Remote host closed the connection]
Dimik has joined #ruby
evansbee has joined #ruby
certainty has quit [Ping timeout: 260 seconds]
<adam12> marahin: Are you running this in a rake task?
<marahin> adam12, no, it's a standalone ruby script
<adam12> Is there more than just this code?
<marahin> yes
<adam12> I would say you'd want _everything_ wrapped in a module or class. Maybe this could be EngineLoader or something.
bhaak has quit [Quit: leaving]
<adam12> The reason I asked about the rake task was the `say` method you keep calling.
<marahin> adam12, oh, I forgot to mention that I am using Highline for CLI use
<adam12> It's weird seeing Erb inside a method call like that, but probably not outrageous.
<marahin> haha :) yeah it is, it's just that I find this gem particularly easy, simple and comfortable to use
<adam12> I would wrap it in a module. I don't see anything wrong with the way your'e doing it, per-say.
<marahin> that's nice to hear, thank you adam12.
bhaak has joined #ruby
kavanagh has quit [Remote host closed the connection]
kavanagh has joined #ruby
LoneHermit has quit [Remote host closed the connection]
evansbee has quit [Ping timeout: 244 seconds]
MrBusiness has quit [Ping timeout: 260 seconds]
cajone has quit [Read error: Connection reset by peer]
diegoaguilar has joined #ruby
jas02 has quit [Quit: jas02]
cajone has joined #ruby
startupality has joined #ruby
Nilium has quit [Remote host closed the connection]
jas02 has joined #ruby
Nilium has joined #ruby
Lord_of_Life has quit [Ping timeout: 260 seconds]
dcunit3d has joined #ruby
mercerist has quit [Quit: Computer has gone to sleep.]
startupality has quit [Quit: startupality]
jas02 has quit [Client Quit]
LoneHermit has joined #ruby
diegoaguilar has quit [Ping timeout: 244 seconds]
Nilium has quit [Remote host closed the connection]
Nilium has joined #ruby
Lord_of_Life has joined #ruby
hahuang62 has joined #ruby
zacts has quit [Read error: Connection reset by peer]
mattwashere has quit []
Nilium has quit [Remote host closed the connection]
Nilium has joined #ruby
hahuang62 has quit [Ping timeout: 250 seconds]
cajone has quit [Ping timeout: 276 seconds]
Gasher has joined #ruby
pawnbox has joined #ruby
Lord_of_Life has quit [Ping timeout: 250 seconds]
xall_ has joined #ruby
<Dimik> how can i split a string by 2 words
diegoaguilar has joined #ruby
jhack has joined #ruby
<shevy> Dimik you can use regexes in .split()
<jhass> Dimik: example input and desired output please
vuoto has quit [Remote host closed the connection]
dcunit3d has quit [Ping timeout: 240 seconds]
nankyoku_ has quit [Remote host closed the connection]
<Dimik> x = "i have 4 words”
<Dimik> x.split.count
jaguarmagenta has quit [Remote host closed the connection]
<Dimik> 4
Beverage has joined #ruby
<Dimik> i want to break x into array of 2 words or just get the first 2 words from x
startupality has joined #ruby
<Dimik> ah
<Dimik> shevy, thank you
BTRE has quit [Quit: Leaving]
<Dimik> x.split.first(2) did the trick
<tobiasvl> Dimik: just x.split[0..1]
<tobiasvl> or that
<tobiasvl> yes
<Dimik> thank you
roamingdog has joined #ruby
last_staff has quit [Quit: last_staff]
Wsewolod has quit [Ping timeout: 250 seconds]
mdw_ has quit [Quit: Sleeping Zzzzz]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
diegoaguilar has quit [Ping timeout: 244 seconds]
cajone has joined #ruby
startupality has quit [Quit: startupality]
FooMunki has joined #ruby
startupality has joined #ruby
PaulCape_ has quit [Quit: .]
PaulCapestany has joined #ruby
genpaku has quit [Ping timeout: 244 seconds]
genpaku has joined #ruby
dcunit3d has joined #ruby
Xiti has quit [Quit: Xiti]
<pilne> hrm, i'm not sure i'm a fan of TDD, while i like using tests, i don't feel comfortable letting the test lead my code if that makes sense?
startupality has quit [Client Quit]
<shevy> yes
KnownSyntax_ has quit [Quit: Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is]
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
KnownSyntax has joined #ruby
<shevy> poetry does not need tests
<pilne> and i've always tended to code in ways that put checks on data within the basic code itself.
Lord_of_Life has joined #ruby
<raldu> shevy: nice comparison
<raldu> I also tend to think that programming, especially with ruby is very, very similar to writing a very long, complicated essay.
SilverKey has joined #ruby
<raldu> I feel like I do not need to know the math, save for some complicated parts that make most use of math.
spiette has quit [Quit: :qa!]
<Dimik> i always prefered code ninja term to code poet
<shevy> raldu yeah; well it can be a question of when and where and how to test anyway. Even if you use poetry, if you need to fly to the Mars, you want to ensure that things work alright, even in code that is poetry
startupality has joined #ruby
BTRE has joined #ruby
cdg has joined #ruby
<shevy> how many possibilities do we have now? ... rspec... bacon... TDD (is that unit testing?) ... BDD ... minispec.. capysomething? No idea, I forgot several probably
chipotle has joined #ruby
<pilne> i just did my first tutorial example, very simple one mind you, but the test suite was 2x the size of the basic class implemented to be able to test.
Xiti has joined #ruby
<Dimik> capybara
BTRE has quit [Read error: Connection reset by peer]
<Dimik> cucumber
BTRE has joined #ruby
<pilne> yes, it is using unit::test, i've heard a lot of good about cucumber and rspec, and glanced at capybara
<raldu> shevy: I acknowledge your point. however my comment was totally unrelated to testing. you can even have tests, so to speak with essays.
adgtl has quit [Ping timeout: 250 seconds]
zacts has joined #ruby
startupality has quit [Quit: startupality]
ur5us has joined #ruby
sp4rrow has joined #ruby
startupality has joined #ruby
marr has joined #ruby
adgtl has joined #ruby
MrBusiness has joined #ruby
Lord_of_Life has quit [Quit: EliteBNC free bnc service - http://elitebnc.org - be a part of the Elite!]
ur5us has quit [Ping timeout: 244 seconds]
workmad3 has joined #ruby
sp4rrow has quit [Client Quit]
dcunit3d has quit [Ping timeout: 258 seconds]
zacts has quit [Quit: WeeChat 1.5]
TomyLobo has joined #ruby
MrBusiness has quit [Ping timeout: 272 seconds]
Nilium has quit [Remote host closed the connection]
Lord_of_Life has joined #ruby
SirOliver has quit [Quit: ZZZzzz…]
Nilium has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
SirOliver has joined #ruby
<shevy> shakespeare-driven testing
<jhass> shevy: so you write tests in SPL?
<shevy> what is SPL?
Lord_of_Life has quit [Ping timeout: 250 seconds]
miqlas-H has joined #ruby
Lord_of_Life has joined #ruby
someish has quit [Quit: someish]
<jhass> the shakespeare programming language, obviously
kavanagh has quit [Quit: That's all folks!]
garrulous_goose has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SirOliver has quit [Quit: ZZZzzz…]
kus has joined #ruby
kus has quit [Max SendQ exceeded]
arlek has quit [Ping timeout: 240 seconds]
<shevy> ah
<shevy> perhaps in the future
bluOxigen has quit [Ping timeout: 244 seconds]
<shevy> with better AIs
startupality has quit [Quit: startupality]
nettoweb has joined #ruby
adgtl has quit [Quit: EliteBNC - http://www.elitebnc.org/]
nankyokusei has joined #ruby
arajakul has joined #ruby
nankyokusei has quit [Ping timeout: 276 seconds]
Xiti has quit [Quit: Xiti]
Synthead has quit [Read error: Connection reset by peer]
Synthead has joined #ruby
adgtl has joined #ruby
arajakul1 has joined #ruby
Lord_of_Life has quit [Ping timeout: 250 seconds]
saneax is now known as saneax_AFK
arajakul has quit [Ping timeout: 252 seconds]
valkyr1e has quit [Quit: Bye.]
aeterne has quit [Read error: Connection reset by peer]
solocshaw has joined #ruby
valkyr1e has joined #ruby
SirOliver has joined #ruby
Synthead has quit [Ping timeout: 276 seconds]
MrBusiness has joined #ruby
Lord_of_Life has joined #ruby
garrulous_goose has joined #ruby
garrulous_goose has quit [Client Quit]
adgtl has quit [Quit: EliteBNC - http://www.elitebnc.org/]
kareeole_ has joined #ruby
nankyokusei has joined #ruby
circ-user-Df59r has joined #ruby
SirOliver has quit [Quit: ZZZzzz…]
dcunit3d has joined #ruby
BTRE has quit [Read error: Connection reset by peer]
BTRE has joined #ruby
spider-mario has quit [Remote host closed the connection]
kareeoleez has quit [Ping timeout: 260 seconds]
SilverKe_ has joined #ruby
SilverKey has quit [Ping timeout: 240 seconds]
coffeecupp has joined #ruby
kareeole_ has quit [Remote host closed the connection]
gizmore has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
Lord_of_Life has quit [Quit: EliteBNC free bnc service - http://elitebnc.org - be a part of the Elite!]
adgtl has joined #ruby
SilverKe_ has quit [Quit: Halted.]
SilverKey has joined #ruby
palms has joined #ruby
Synthead has joined #ruby
vipinj has joined #ruby
SilverKey has quit [Client Quit]
evansbee has joined #ruby
Xiti has joined #ruby
zenlot has quit [Ping timeout: 240 seconds]
zenlot6 has joined #ruby
startupality has joined #ruby
jancel has joined #ruby
jancel has quit [Remote host closed the connection]
jancel has joined #ruby
xall_ has quit [Ping timeout: 250 seconds]
hutch34 has joined #ruby
coffeecupp has quit [Ping timeout: 272 seconds]
arlek has joined #ruby
zacts has joined #ruby
hahuang62 has joined #ruby
adgtl has quit [Quit: EliteBNC - http://www.elitebnc.org/]
jancel has quit [Remote host closed the connection]
zacts has quit [Client Quit]
SirOliver has joined #ruby
adgtl has joined #ruby
karmatr0n has joined #ruby
hahuang62 has quit [Ping timeout: 260 seconds]
Gasher has quit [Ping timeout: 260 seconds]
rkazak has joined #ruby
evansbee has quit [Ping timeout: 272 seconds]
confounds has joined #ruby
karmatr0n has quit [Ping timeout: 250 seconds]
SirOliver has quit [Quit: ZZZzzz…]
terminalrecluse has joined #ruby
vipinj has quit [Quit: This computer has gone to sleep]
coffeecupp has joined #ruby
amclain has quit [Quit: Leaving]
coffeecupp has quit [Client Quit]
vipinj has joined #ruby
TomyLobo has quit [Read error: Connection reset by peer]
coffeecupp has joined #ruby
coffeecupp has quit [Client Quit]
tildes has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
confounds has quit [Remote host closed the connection]
SirOliver has joined #ruby
Lord_of_Life has joined #ruby
confounds has joined #ruby
ketherah has quit [Quit: Connection closed for inactivity]
jgt has quit [Ping timeout: 244 seconds]
vipinj has quit [Quit: This computer has gone to sleep]
yfeldblum has quit [Ping timeout: 250 seconds]
startupality has quit [Quit: startupality]
startupality has joined #ruby
symm- has quit [Ping timeout: 260 seconds]
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
n1x-nz has joined #ruby
jaguarmagenta has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
coffeecupp has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lord_of_Life has quit [Quit: EliteBNC free bnc service - http://elitebnc.org - be a part of the Elite!]
adgtl has quit [Quit: EliteBNC - http://www.elitebnc.org/]
Yiota has joined #ruby
jaguarmagenta has quit [Ping timeout: 258 seconds]
garrulous_goose has joined #ruby
arescorpio has joined #ruby
jsgrant- has joined #ruby
agentmeerkat has joined #ruby
smathy has joined #ruby
xall_ has joined #ruby
gizmore has joined #ruby
jsgrant- has left #ruby ["Konversation terminated!"]
pilne has quit [Quit: Quitting!]
agentmeerkat has quit [Ping timeout: 272 seconds]
phrozen77_ has quit [Quit: Computer has gone to sleep.]
c0mrad3 has quit [Quit: Connection closed for inactivity]
xall_ has quit [Ping timeout: 272 seconds]
adgtl has joined #ruby
startupality has quit [Quit: startupality]
houhoulis has joined #ruby
moeabdol has quit [Ping timeout: 244 seconds]
adgtl has quit [Quit: EliteBNC - http://www.elitebnc.org/]
coffeecupp has quit [Quit: leaving]
firstdayonthejob has quit [Ping timeout: 240 seconds]
coffeecupp has joined #ruby
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
snath has quit [Ping timeout: 244 seconds]
adgtl has joined #ruby
zeroDi has joined #ruby
pawnbox has quit [Remote host closed the connection]
nuck has quit [Ping timeout: 240 seconds]
nuck has joined #ruby
nuck is now known as Guest85662
arajakul1 has quit [Ping timeout: 252 seconds]
arajakul1 has joined #ruby
jancel has joined #ruby
vipinj has joined #ruby
dcunit3d has quit [Ping timeout: 250 seconds]
zacts has joined #ruby
vipinj has quit [Client Quit]
chipotle has quit [Quit: cheerio]
kaspergrubbe has quit [Remote host closed the connection]
phoo1234567 has quit [Quit: Gotta go]
jancel has quit [Ping timeout: 246 seconds]
nadir has quit [Ping timeout: 264 seconds]
SirOliver has quit [Quit: ZZZzzz…]
`tim` has joined #ruby
hahuang62 has joined #ruby
kaspergrubbe has joined #ruby
nadir has joined #ruby