havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.2, 2.3.5 & 2.2.8: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
<RickHull> mini_: L17 should it be @movies?
<nawi_is> RickHull: the error from before again https://gist.github.com/anonymous/73dabf826ab79d3610891cc876bd608a the Makefile se before
gone_haywire has quit [Remote host closed the connection]
shazbotmcnasty has joined #ruby
guardianx has quit [Read error: Connection reset by peer]
gone_haywire has joined #ruby
<mini_> RichHull i think it should be global variable
guardianx has joined #ruby
<mini_> $
<nawi_is> RickHull: are theese gists editable if someone knows a solution - I ask because I have a unstable internet connection at the moment
<RickHull> they can be forked, and the forker can edit the fork
<nawi_is> good to know, thanks
<RickHull> you should be able to edit your own anonymous gists, but not sure
<RickHull> in which case, you can combine your two into a single gist
<RickHull> there is an `Add File` button at the bottom
<nawi_is> for now it is just to know because of my connection
workmad3 has quit [Ping timeout: 248 seconds]
hutch34 has quit [Ping timeout: 258 seconds]
<mini_> Rickhull issue is that L:53 is not working
alveric4 has joined #ruby
<RickHull> mini_: why would @movies be nil?
alveric3 has quit [Ping timeout: 248 seconds]
orbyt_ has quit [Ping timeout: 250 seconds]
minimalism has joined #ruby
<mini_> RickHull wait.. so if title =! input maaybe ?
<RickHull> which lines assign a value to @movies ?
<mini_> L 38, 39
<RickHull> nope -- you can just search for @movies
<RickHull> e.g. ctrl-f
<mini_> 17
<RickHull> close
<RickHull> notice, I identified L17 earlier
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull> shouldn't it be `@movies` not `movies` ?
mson has quit [Quit: Connection closed for inactivity]
Technodrome has joined #ruby
<mini_> well i changed it
<RickHull> you should update the paste so we can follow along :)
knight33 has quit [Ping timeout: 255 seconds]
marr has quit [Ping timeout: 240 seconds]
gone_haywire has quit [Quit: Leaving]
mini__ has joined #ruby
<RickHull> ok, so L52
<RickHull> @movies won't be nil, because you initialized it with an empty array, right?
<RickHull> and then you add items to the @movies array on L15
<mini__> yes
<RickHull> you could test `if @movies.empty?`
<RickHull> but that's probably not what you want
<mini__> i tested
mini_ has quit [Ping timeout: 260 seconds]
<RickHull> probably you want `if @movies.include?(input)`
al2o3-cr has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
<mini__> i thought about that
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mini__> but i got an error undefined method include for Array
GodFather has quit [Ping timeout: 240 seconds]
<RickHull> the `?` is part of the method name
shazbotmcnasty has quit [Ping timeout: 248 seconds]
enterprisey has quit [Ping timeout: 248 seconds]
<RickHull> mini__: have you tried the irb program? it's for playing with ruby interactively
<RickHull> >> ary = [1,2,3]; ary.include?(4)
<ruby[bot]> RickHull: # => false (https://eval.in/902892)
hopsoft has quit [Ping timeout: 268 seconds]
mini__ has quit [Ping timeout: 260 seconds]
yabbes has quit [Quit: lu]
bkxd has joined #ruby
mrconfused has quit [Ping timeout: 250 seconds]
shazbotmcnasty has joined #ruby
guardianx has quit []
hutch34 has joined #ruby
jeanlinu_ has quit [Ping timeout: 268 seconds]
cdg has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 248 seconds]
enterprisey has joined #ruby
jeanlinux has joined #ruby
mim1k has joined #ruby
hutch34 has joined #ruby
PixeLInc has joined #ruby
al2o3-cr has joined #ruby
shazbotmcnasty has quit [Ping timeout: 248 seconds]
mim1k has quit [Ping timeout: 240 seconds]
AxelAlex has joined #ruby
shazbotmcnasty has joined #ruby
hutch34 has quit [Ping timeout: 250 seconds]
jottr has quit [Ping timeout: 248 seconds]
AxelAlex has quit [Client Quit]
aroaminggeek has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AxelAlex has joined #ruby
jeanlinux has quit [Ping timeout: 248 seconds]
|ifei5good has joined #ruby
|ifei5good has quit [Read error: Connection reset by peer]
|ifei5good has joined #ruby
_sfiguser has quit [Quit: Leaving]
shazbotmcnasty has quit [Ping timeout: 255 seconds]
|ifei5g00d has quit [Ping timeout: 250 seconds]
shazbotmcnasty has joined #ruby
xlegoman has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
shazbotmcnasty has quit [Ping timeout: 248 seconds]
ogres has quit [Quit: Connection closed for inactivity]
hutch34 has joined #ruby
shazbotmcnasty has joined #ruby
charliesome has joined #ruby
jottr has joined #ruby
hutch34 has quit [Ping timeout: 248 seconds]
bkxd has quit [Read error: Connection reset by peer]
xlegoman has joined #ruby
shazbotmcnasty has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
shazbotmcnasty has joined #ruby
workmad3 has quit [Ping timeout: 268 seconds]
BTRE has quit [Read error: Connection reset by peer]
BTRE has joined #ruby
Rouge has joined #ruby
shazbotmcnasty has quit [Ping timeout: 248 seconds]
jottr has quit [Ping timeout: 248 seconds]
quobo has quit [Quit: Connection closed for inactivity]
shazbotmcnasty has joined #ruby
jameser has joined #ruby
plexigras has quit [Ping timeout: 240 seconds]
shazbotmcnasty has quit [Ping timeout: 240 seconds]
d^sh has quit [Ping timeout: 255 seconds]
d^sh has joined #ruby
bkxd has quit [Read error: Connection reset by peer]
weathermaker has joined #ruby
shazbotmcnasty has joined #ruby
bkxd has joined #ruby
hutch34 has joined #ruby
Technodrome has joined #ruby
cdg has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
bkxd has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
hutch34 has quit [Ping timeout: 248 seconds]
kitsunenokenja has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 260 seconds]
al2o3-cr has quit [Ping timeout: 240 seconds]
shazbotmcnasty has quit [Ping timeout: 260 seconds]
mim1k has quit [Ping timeout: 248 seconds]
AxelAlex has quit [Ping timeout: 268 seconds]
shazbotmcnasty has joined #ruby
shinnya has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bkxd has joined #ruby
enterprisey has quit [Ping timeout: 260 seconds]
weathermaker has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
millz has quit [Ping timeout: 248 seconds]
shazbotmcnasty has quit [Ping timeout: 260 seconds]
jottr has quit [Ping timeout: 248 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
noobineer has joined #ruby
noobineer has quit [Max SendQ exceeded]
enterprisey has joined #ruby
sucks has joined #ruby
shazbotmcnasty has joined #ruby
al2o3-cr has joined #ruby
jottr has joined #ruby
shinnya has quit [Ping timeout: 248 seconds]
noobineer has joined #ruby
enterprisey has quit [Ping timeout: 248 seconds]
Rouge has quit [Ping timeout: 248 seconds]
weathermaker has joined #ruby
jameser has joined #ruby
noobineer has quit [Read error: Connection reset by peer]
noobineer has joined #ruby
weathermaker has quit [Remote host closed the connection]
weathermaker has joined #ruby
shazbotmcnasty has quit [Ping timeout: 248 seconds]
shazbotmcnasty has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
|ifei5g00d has joined #ruby
houhoulis has joined #ruby
|ifei5good has quit [Ping timeout: 248 seconds]
mrconfused has joined #ruby
houhouli_ has joined #ruby
houhoulis has quit [Ping timeout: 240 seconds]
shazbotmcnasty has quit [Ping timeout: 240 seconds]
weathermaker has quit [Ping timeout: 248 seconds]
enterprisey has joined #ruby
shazbotmcnasty has joined #ruby
workmad3 has joined #ruby
AxelAlex has joined #ruby
zanoni_ has quit [Ping timeout: 268 seconds]
workmad3 has quit [Ping timeout: 248 seconds]
noobineer has quit [Read error: Connection reset by peer]
|ifei5good has joined #ruby
|ifei5g00d has quit [Read error: Connection reset by peer]
hndk has joined #ruby
PixeLInc has quit [Excess Flood]
Antiarc has quit [Read error: Connection reset by peer]
PixeLInc has joined #ruby
Antiarc has joined #ruby
Technodrome has joined #ruby
jottr has quit [Ping timeout: 268 seconds]
noobineer has joined #ruby
nhhc has joined #ruby
PixeLInc is now known as PixeLBot
hays has joined #ruby
<hays> I have objects that open files and I want those files to be closed when I'm done with the objects. is there a way to do this where ruby manages it?
<matthewd> hays: Use blocks
PixeLBot is now known as PixeLInc
hndk has quit [Remote host closed the connection]
shazbotmcnasty has quit [Ping timeout: 248 seconds]
<hays> not sure how to, if the object has a file open persistently
al2o3-cr has quit [Ping timeout: 240 seconds]
gix- has joined #ruby
gix has quit [Disconnected by services]
SeepingN has joined #ruby
<matthewd> hays: See File
<hays> the class is a basic logging class, it opens a file and you write logs to it. then it has a :close method. but I am finding this a bit cumbersome
enterprisey has quit [Remote host closed the connection]
houhouli_ has quit [Remote host closed the connection]
<matthewd> If the object goes away, its file will eventually get closed by the garbage collector anyway.. but it's better practice not to rely on that (partly just because it could be some time later)
allcentury has joined #ruby
shazbotmcnasty has joined #ruby
jamesaxl has joined #ruby
<hays> i let a non-programmer maintain and add features to this program that is multithreaded, and now I am in hell
<hays> so much copying and pasting
<hays> can't figure out the path through the code where he's closing files twice
<hays> or i should say closing and then writing
<hays> is there a way to access the stack from a method call? e.g. print out what called a given method?
<matthewd> Override the log's close to log caller to the log before it closes the log?
<matthewd> Yeah, `caller`
allcentury has quit [Ping timeout: 240 seconds]
<hays> something like this: puts "#{self.class}: (#{self.object_id}) Called from #{caller[0]}"
mim1k has joined #ruby
<matthewd> Sounds plausible -- though if things are convoluted, you might want more of the call stack
<hays> on friday i reduced 100 lines of code to 10
<hays> i cant say how many copies of the same or almost-same logic there was
<hays> doing that somehow fixed a bug i still can't explain
<hays> sigh. lessons
<matthewd> https://github.com/seattlerb/flay#flay might help in finding some of that
mim1k has quit [Ping timeout: 248 seconds]
<hays> hmm is this some kind of magic? heh yeah i should try that and see what happens
shazbotmcnasty has quit [Ping timeout: 260 seconds]
<hays> wow
<hays> score of 290
<hays> helpful
shazbotmcnasty has joined #ruby
<hays> shazbotmcnasty: you come in and out a lot
al2o3-cr has joined #ruby
apparition has joined #ruby
Dreamer3 has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
Dreamer3 has quit [Client Quit]
<RickHull> hays: here's how I set up my Rakefile for flay: https://gist.github.com/rickhull/43b8dae92f2fe3a4da456282b42d5799
<RickHull> I like flog and roodi too: https://github.com/rickhull/compsci/blob/master/Rakefile
<hays> man I have another coworker who writes crap rails code. I want to use Heckle to straighten him out
noobineer has quit [Quit: Leaving]
jottr has joined #ruby
dviola has quit [Quit: WeeChat 1.9.1]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shazbotmcnasty has quit [Ping timeout: 240 seconds]
jamesaxl has quit [Read error: Connection reset by peer]
mson has joined #ruby
jamesaxl has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Zamyatin has joined #ruby
Zamyatin has quit [Client Quit]
Zamyatin has joined #ruby
astronavt has quit [Quit: Leaving...]
shazbotmcnasty has joined #ruby
bkxd has quit [Ping timeout: 248 seconds]
bkxd has joined #ruby
kapil___ has joined #ruby
shazbotmcnasty has quit [Ping timeout: 248 seconds]
jrm has quit [Quit: ciao]
jrm has joined #ruby
shazbotmcnasty has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
Zamyatin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oetjenj has joined #ruby
cdg has joined #ruby
noobineer has joined #ruby
cdg has quit [Ping timeout: 255 seconds]
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
shazbotmcnasty has quit [Ping timeout: 248 seconds]
bkxd has quit [Quit: Lost terminal]
bkxd has joined #ruby
shazbotmcnasty has joined #ruby
cschneid_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
sucks has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 248 seconds]
ledestin has joined #ruby
cschneid_ has quit [Ping timeout: 258 seconds]
shazbotmcnasty has quit [Ping timeout: 240 seconds]
mjolnird has joined #ruby
shazbotmcnasty has joined #ruby
jackjackdripper has joined #ruby
jottr has joined #ruby
shazbotmcnasty has quit [Ping timeout: 268 seconds]
bkxd has quit [Read error: Connection reset by peer]
jottr has quit [Ping timeout: 240 seconds]
shazbotmcnasty has joined #ruby
bkxd has joined #ruby
jottr has joined #ruby
shazbotmcnasty has quit [Ping timeout: 240 seconds]
allcentury has joined #ruby
allcentury has quit [Ping timeout: 260 seconds]
shazbotmcnasty has joined #ruby
xlegoman has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
erlend has quit [Read error: Connection reset by peer]
apparition has quit [Quit: Bye]
uZiel has joined #ruby
jenrzzz has joined #ruby
erlend has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Technodrome has joined #ruby
rippa has joined #ruby
mrconfused has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 240 seconds]
nhhc has quit [Ping timeout: 248 seconds]
al2o3-cr has quit [Ping timeout: 240 seconds]
bkxd_ has joined #ruby
bkxd has quit [Ping timeout: 255 seconds]
jottr has joined #ruby
jameser has joined #ruby
jameser has quit [Client Quit]
jenrzzz has quit [Ping timeout: 255 seconds]
quobo has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
lxsameer has joined #ruby
shazbotmcnasty has quit [Ping timeout: 268 seconds]
shazbotmcnasty has joined #ruby
bkxd has joined #ruby
bkxd_ has quit [Ping timeout: 248 seconds]
al2o3-cr has joined #ruby
exhiled has joined #ruby
shazbotmcnasty has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 268 seconds]
shazbotmcnasty has joined #ruby
workmad3 has joined #ruby
mtkd has joined #ruby
workmad3 has quit [Ping timeout: 268 seconds]
bkxd has quit [Read error: Connection reset by peer]
jottr has joined #ruby
Palando has joined #ruby
mson has quit [Quit: Connection closed for inactivity]
mrgrieves has quit [Ping timeout: 268 seconds]
bkxd has joined #ruby
mtkd has quit [Read error: Connection reset by peer]
cschneid_ has joined #ruby
mtkd has joined #ruby
cschneid_ has quit [Ping timeout: 258 seconds]
marr has joined #ruby
biberu has joined #ruby
mson has joined #ruby
bkxd has quit [Quit: leaving]
luminor has joined #ruby
lupine has quit [Remote host closed the connection]
shazbotmcnasty has quit [Ping timeout: 260 seconds]
lupine has joined #ruby
exhiled has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 248 seconds]
shazbotmcnasty has joined #ruby
claudiuinberlin has joined #ruby
Cork has quit [Quit: .]
luminor_ has joined #ruby
Yxhuvud has quit [Remote host closed the connection]
Dimik has quit [Ping timeout: 240 seconds]
luminor has quit [Ping timeout: 260 seconds]
allcentury has joined #ruby
Cork has joined #ruby
VladGh_ has joined #ruby
allcentury has quit [Ping timeout: 248 seconds]
VladGh has quit [Ping timeout: 260 seconds]
Immune has quit [Ping timeout: 248 seconds]
JsilverT has joined #ruby
hotpancakes has joined #ruby
jottr has joined #ruby
aces1up has joined #ruby
minimalism has quit [Quit: minimalism]
shazbotmcnasty has quit [Ping timeout: 240 seconds]
<aces1up> what is the best way to build json reply as per this spec
jottr has quit [Ping timeout: 248 seconds]
<aces1up> looking for the correct ruby pattern to build up json structures
jottr has joined #ruby
<dminuoso> aces1up: I actually use jsonapi-rb in my rails application, but you can use this outside rails just as easily
Puffball has quit [Remote host closed the connection]
<aces1up> dminuoso cool so it will allow you to build up custom json structures likes this?
<dminuoso> No.
<dminuoso> Not "custom". But JSON:API conform output
shazbotmcnasty has joined #ruby
cdg has joined #ruby
cdg_ has joined #ruby
enterprisey has joined #ruby
dviola has joined #ruby
cdg has quit [Ping timeout: 250 seconds]
kculpis has quit [Read error: Connection reset by peer]
Yxhuvud has joined #ruby
cdg_ has quit [Ping timeout: 250 seconds]
hays has quit [Read error: Connection reset by peer]
konsolebox has quit [Ping timeout: 268 seconds]
konsolebox has joined #ruby
allcentury has joined #ruby
shazbotmcnasty has quit [Ping timeout: 240 seconds]
luminor_ has quit [Ping timeout: 248 seconds]
allcentury has quit [Ping timeout: 248 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jackjackdripper has quit [Quit: Leaving.]
shazbotmcnasty has joined #ruby
cdg has joined #ruby
yabbes has joined #ruby
luminor has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
cdg has quit [Ping timeout: 240 seconds]
uZiel has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Freshnuts has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
shazbotmcnasty has quit [Ping timeout: 248 seconds]
enterprisey has quit [Remote host closed the connection]
ledestin has joined #ruby
shazbotmcnasty has joined #ruby
ledestin has quit [Ping timeout: 268 seconds]
rabajaj has joined #ruby
_sfiguser has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
hays has joined #ruby
hays has quit [Changing host]
hays has joined #ruby
mikecmpbll has joined #ruby
jottr has joined #ruby
hays has quit [Read error: Connection reset by peer]
aces1up has quit []
nhhc has joined #ruby
jottr has quit [Quit: WeeChat 1.9.1]
jottr has joined #ruby
aces1up has joined #ruby
<aces1up> how can i have a meothod on my class using equal sign?
<aces1up> just def =(var) end ??
ahrs has quit [Remote host closed the connection]
lexruee has quit [Ping timeout: 240 seconds]
<apeiros> you can't
lexruee has joined #ruby
<apeiros> = is not eligible as a method name
ahrs has joined #ruby
<aces1up> ok\
<apeiros> I mean, to be precise, you can, but you can't ever use it without send:
<apeiros> >> class Foo; define_method(:"=") { puts "wow" }; end; Foo.new.send("=")
lele has quit [Ping timeout: 264 seconds]
<ruby[bot]> apeiros: # => wow ...check link for more (https://eval.in/902979)
<dminuoso> asm>> a = b
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/902984
luminor has quit [Ping timeout: 268 seconds]
lele has joined #ruby
luminor has joined #ruby
shoogz has quit [Quit: shoogz out]
shazbotmcnasty has quit [Ping timeout: 268 seconds]
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
p0s1x has joined #ruby
lxsameer has quit [Ping timeout: 268 seconds]
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
mson has quit [Quit: Connection closed for inactivity]
shazbotmcnasty has joined #ruby
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
p0s1x has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
PaulCapestany has quit [Ping timeout: 250 seconds]
pskosinski has quit [Read error: Connection reset by peer]
yabbes has quit [Ping timeout: 248 seconds]
marr has quit [Ping timeout: 248 seconds]
tomphp has joined #ruby
pskosinski has joined #ruby
pskosinski is now known as Guest33834
shazbotmcnasty has quit [Ping timeout: 248 seconds]
d^sh has quit [Ping timeout: 260 seconds]
PaulCapestany has joined #ruby
dinfuehr has quit [Ping timeout: 258 seconds]
evie_hammond has quit [Ping timeout: 240 seconds]
d^sh has joined #ruby
dinfuehr has joined #ruby
Freshnuts has quit [Quit: Leaving]
rabajaj has quit [Remote host closed the connection]
shazbotmcnasty has joined #ruby
yabbes has joined #ruby
devchild has joined #ruby
<devchild> hi
<devchild> anyone experience with native extentions?
<dminuoso> ?ask
<ruby[bot]> Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
JsilverT has quit [Ping timeout: 248 seconds]
Guest33834 has quit [Read error: Connection reset by peer]
pskosinski_ has joined #ruby
<devchild> I'm looking for a way to expose libgit2 recieve-pack upload-pack methods, how do I send input output streams to native extensions?
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<apeiros> devchild: rugged doesn't provide access to those? (the official libgit2 ruby binding)
devchild has quit [Remote host closed the connection]
<dminuoso> apeiros: They were so overwhelmed.
<apeiros> I am that way
devchild has joined #ruby
<devchild> nop
pskosinski_ is now known as pskosinski
pskosinski has quit [Changing host]
pskosinski has joined #ruby
pskosinski has joined #ruby
evie_hammond has joined #ruby
<apeiros> any more elegant way to write this (subtract all cells of table b from the corresponding cell in table a, returning a new table with the difference)?
<apeiros> table_a.zip(table_b).map { |row_a, row_b| row_a.zip(row_b).map { |cell_a, cell_b| cell_a - cell_b }}
<apeiros> e.g.:
<apeiros> >> table_a = [[10,20,30],[50,60,70]]; table_b = [[1,2,3],[5,6,7]]; table_a.zip(table_b).map { |row_a, row_b| row_a.zip(row_b).map { |cell_a, cell_b| cell_a - cell_b }}
<ruby[bot]> apeiros: # => [[9, 18, 27], [45, 54, 63]] (https://eval.in/903008)
shazbotmcnasty has quit [Ping timeout: 268 seconds]
facest has quit [Read error: Connection reset by peer]
<dminuoso> apeiros: Yes but you wont like the answer
<apeiros> dminuoso: does the answer introduce a dependency? like some library you wrote? :-)
kapil___ has joined #ruby
<dminuoso> apeiros: It will be `zipWith (zipWith sub), table_a, table_b` with it :P
<apeiros> yeah, ok. no :D
luminor has quit [Read error: Connection reset by peer]
<apeiros> but hey, you've been right. I don't like the answer ;-p
<dminuoso> apeiros: Find comfort in that you've already done it in functional programming style.
<dminuoso> Mine just allows you to do it point-free.
<dminuoso> But it's essentially the same code.
shazbotmcnasty has joined #ruby
cschneid_ has joined #ruby
faces has joined #ruby
plexigras has joined #ruby
cschneid_ has quit [Ping timeout: 258 seconds]
luminor has joined #ruby
mim1k has joined #ruby
michael3 has joined #ruby
shazbotmcnasty has quit [Ping timeout: 240 seconds]
jameser has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
tomphp has quit [Client Quit]
jameser has quit [Client Quit]
pb122 has quit [Ping timeout: 240 seconds]
shazbotmcnasty has joined #ruby
jameser has joined #ruby
<dminuoso> Okay.. how do I find out whether lambda_a is a decurried lambda_b or not?
tomphp has joined #ruby
tomphp has quit [Client Quit]
tomphp has joined #ruby
<dminuoso> By decurried I mean partially applied
tomphp has quit [Client Quit]
<apeiros> btw. dminuoso: (Matrix[*table_a] - Matrix[*table_b]).to_a ;-)
<apeiros> (not using that, though)
PaulCapestany has quit [Read error: Connection reset by peer]
snickers has joined #ruby
<dminuoso> apeiros: Yeah it crossed my mind but didnt bother to mention for the same reasons that you rejected (probably)
tomphp has joined #ruby
tomphp has quit [Client Quit]
oetjenj has joined #ruby
PaulCapestany has joined #ruby
p0s1x has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shazbotmcnasty has quit [Ping timeout: 240 seconds]
JsilverT has joined #ruby
b100s has joined #ruby
<b100s> hi2all; i have file task and task 'foo'; i want task foo to always recreate that file using file task but it not creates file in case file already exists : ( is there way to re-create file always?
jameser has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
shazbotmcnasty has joined #ruby
hotpancakes has quit [Remote host closed the connection]
iamarun has joined #ruby
workmad3 has joined #ruby
eb0t has joined #ruby
yabbes has quit [Quit: lu]
zanoni has joined #ruby
dviola has quit [Quit: WeeChat 1.9.1]
arup_r has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<arup_r> I am using regexp in my test for string matching with html. But it sometimes fails because the string "O'Hara" in html source is being printed as 'O&#39;Hara' How can I fix this? see expected string https://gist.github.com/aruprakshit/ad1c3eb05d293a2ccc80019aab5f362e#file-error-txt-L7 and https://gist.github.com/aruprakshit/ad1c3eb05d293a2ccc80019aab5f362e#file-error-txt-L42 .. Is there any flag that I can pass to regex to solve this problem?
b100s has quit [Remote host closed the connection]
ta_ has quit [Remote host closed the connection]
tomphp has joined #ruby
luminor has quit [Ping timeout: 248 seconds]
ta_ has joined #ruby
<arup_r> added another scenario when it fails which is fax number. Not sure though why the 2 string doesn't match.
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
luminor has joined #ruby
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> I'm amazed :D
<apeiros> though I'm currently more concerned about how the hell I get apache to run different rubies in different vhosts with passenger
<apeiros> I think I found it :)
tomphp has quit [Ping timeout: 240 seconds]
<dminuoso> I just use puma and not think about how to cater passenger
shazbotmcnasty has quit [Ping timeout: 258 seconds]
hutch34 has joined #ruby
ta_ has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
<apeiros> well, I still have most experience with apache2, so I use it for my private stuff. it's relatively simple and quite powerful.
<dminuoso> I dont doubt it. Puma is still easier because passenger still requires that third party extension on your webserver.
<dminuoso> But I suppose thats minimal
<devchild> how do i debug native extentions?
<dminuoso> devchild: Debugger Ahoi.
ta_ has joined #ruby
shazbotmcnasty has joined #ruby
<dminuoso> devchild: gdb/lldb are your friends.
<apeiros> dminuoso: puma alone won't do it, so you still need some kind of webserver which does the reverse-proxy. no? or can puma now do vhosts?
nadir has quit [Quit: Connection closed for inactivity]
shazbotmcnasty has quit [Ping timeout: 268 seconds]
ta_ has quit [Remote host closed the connection]
arup_r has joined #ruby
<dminuoso> apeiros: oh we just have nginx running in front for tls-termination
chmurifree has quit [Ping timeout: 252 seconds]
<dminuoso> but we can deploy this trivially from any alpine container
ta_ has joined #ruby
<apeiros> see, so it's 2 layers there too :)
shazbotmcnasty has joined #ruby
<dminuoso> apeiros: yeah except we dont have to meddle with building passenger :)
DTZUZO has quit [Ping timeout: 240 seconds]
<apeiros> my 2 layers are apache + passenger. apache does static file serving & tls termination
<apeiros> well, that's trivial :D
<dminuoso> heh
conta has joined #ruby
<apeiros> gem install & mod install & 4 lines of config. to change ruby version it's a single config line to change. no need to recompile passenger.
<apeiros> though ideally it'd just read the .ruby-version file and select on its own.
chmurifree has joined #ruby
<arup_r> What I need to fix this code, so that it matches. Right now it doesn't. s = 'foo bar (672) 941-7736 x626 some string'; regex = '(672) 941-7736 x626'; s.match(/#{regex}/) # nil
<apeiros> arup_r: () are special chars in a regex.
luminor has quit []
<arup_r> yeah.. but how will I control it when regex is dynamic
<apeiros> &ri Regexp.escape
GodFather has joined #ruby
<apeiros> depends on your scenario.
<arup_r> my scenario is this https://gist.github.com/aruprakshit/ad1c3eb05d293a2ccc80019aab5f362e :) but that will solve one error. Now I need to find out how to fix the html unicode character.
<arup_r> >> s = 'foo bar (672) 941-7736 x626 some string'; regex = '(672) 941-7736 x626'; puts s.match(Regexp.escape(regex)) # works now.
<ruby[bot]> arup_r: # => (672) 941-7736 x626 ...check link for more (https://eval.in/903016)
<apeiros> I think you knew that using regex on html is a bad idea. didn't you?
<arup_r> yes rspec exposed only .match() method for view test. so I think I am forced. But I need to google now to see what alternatives I have
tomphp has joined #ruby
<apeiros> I don't know rspec well enough. but seems you're just looking whether a piece of text is in the html. with nokogiri it'd be something akin Nokogiri.HTML(your_document).text =~ /needle/
<dminuoso> Ruby specialists...
<dminuoso> Where is the infinite recursion that I cant see?
yeticry_ has joined #ruby
cdg has joined #ruby
yeticry has quit [Read error: Connection reset by peer]
tomphp has quit [Ping timeout: 248 seconds]
arup_r has quit []
Nitrogen has joined #ruby
<Nitrogen> Greetings. I am trying to download all images of a Wikimedia Commons Category using wimgs: https://github.com/abartov/wimgs
yeticry_ has quit [Ping timeout: 255 seconds]
<Nitrogen> But when I run the command, the following error shows up: https://paste.debian.net/996507/
<Nitrogen> How can I fix that?
cdg has quit [Ping timeout: 250 seconds]
<apeiros> dminuoso: not sure :-S
<apeiros> Nitrogen: the author forgot to tell you that you need to install a gem, presumably called mediawiki_api
<apeiros> also sqlite3, since that's not part of ruby either.
nawi_is has quit [Ping timeout: 268 seconds]
<Nitrogen> I installed ruby-sqlite3 earlier. WHere do I find the mediawiki_api?
<apeiros> alternatively the author forgot to make this script into a proper gem with proper gemspec with proper dependency declaration.
<apeiros> no idea. tried `gem install mediawiki_api`?
shazbotmcnasty has quit [Ping timeout: 240 seconds]
michael3 has quit [Ping timeout: 260 seconds]
<apeiros> `apt-get install ruby-dev` or somesuch
<dminuoso> apeiros: I *think* the hack Im doing to convert blocks to lambdas is unhealthy.
p0s1x has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
p0s1x has joined #ruby
shazbotmcnasty has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
apeiros_ has joined #ruby
conta has quit [Ping timeout: 260 seconds]
<dminuoso> apeiros_: https://eval.in/903023
apeiros_ is now known as apeiros
<apeiros> *sob*. about 1 random crash every 3 days now. really can't recommend apple anymore.
<dminuoso> apeiros: I do think they made a mistake during reassembly.
<dminuoso> Never heard anyone else having those kinds of problems.
<apeiros> dminuoso: yeah, pondering on getting another appointment
ta_ has quit [Remote host closed the connection]
shinnya has joined #ruby
yeticry has joined #ruby
<dminuoso> Seriously what the heck is going on here.
<apeiros> Nitrogen: make: g++: Kommando nicht gefunden
<dminuoso> Works, but removing those comments blows up?
<apeiros> dminuoso: I suppose Method#curry and prepended [] with super is buggy?
<Nitrogen> apeiros: That did it! Thanks a bundle!
iamarun has quit [Ping timeout: 260 seconds]
<dminuoso> apeiros: The buggy thing is when it looks up the super for []
<dminuoso> or.. wait..
shazbotmcnasty has quit [Ping timeout: 240 seconds]
<dminuoso> apeiros: It seems to also be related to this instance_method usage
<dminuoso> Do you agree that this looks like a real bug?
sleepee has joined #ruby
tomphp has joined #ruby
tomphp has quit [Client Quit]
<apeiros> from the bit of what I looked at it, certainly seems so
shazbotmcnasty has joined #ruby
tomphp has joined #ruby
mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
tomphp has quit [Read error: No route to host]
PixeLInc has quit [Excess Flood]
tomphp has joined #ruby
PixeLInc has joined #ruby
shinnya has quit [Ping timeout: 268 seconds]
Devalo has joined #ruby
hutch34 has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 250 seconds]
Devalo has quit [Client Quit]
<dminuoso> apeiros: It just hit me. Its not a bug.
<dminuoso> This is to be expected.
<dminuoso> instance_method just does not grab the method I think it does.
<dminuoso> Which explains exactly what Im seeing.
charliesome has joined #ruby
shazbotmcnasty has quit [Ping timeout: 248 seconds]
p0s1x has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yeticry has quit [Ping timeout: 240 seconds]
Hexafox[I] has quit [Ping timeout: 248 seconds]
p0s1x has joined #ruby
xt233 has joined #ruby
nunchuck has quit [Ping timeout: 240 seconds]
shazbotmcnasty has joined #ruby
xt233 has left #ruby [#ruby]
p0s1x has quit [Client Quit]
Nitrogen has left #ruby [#ruby]
yeticry has joined #ruby
selim has quit [Ping timeout: 260 seconds]
selim has joined #ruby
banisterfiend has joined #ruby
badeball has quit [Quit: leaving]
badeball has joined #ruby
mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
shazbotmcnasty has quit [Ping timeout: 240 seconds]
linocisco has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<devchild> how do I start rails with lldb
foxxx0 has quit [Quit: WeeChat 1.9.1]
kitsunenokenja has joined #ruby
shazbotmcnasty has joined #ruby
foxxx0 has joined #ruby
workmad3 has joined #ruby
<Zarthus> ?rails
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
nhhc has quit [Quit: Leaving]
hutch34 has joined #ruby
jenrzzz has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
hutch34 has quit [Ping timeout: 240 seconds]
jeanlinu_ has joined #ruby
hutch34 has joined #ruby
sleepee has quit [Ping timeout: 240 seconds]
shazbotmcnasty has quit [Ping timeout: 260 seconds]
hutch34 has quit [Ping timeout: 255 seconds]
shazbotmcnasty has joined #ruby
gizmore has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sepp2k has joined #ruby
JsilverT has quit [Ping timeout: 248 seconds]
devchild has quit [Remote host closed the connection]
kculpis has joined #ruby
yeticry has quit [Ping timeout: 240 seconds]
devchild has joined #ruby
devchild has quit [Ping timeout: 258 seconds]
yeticry has joined #ruby
shazbotmcnasty has quit [Ping timeout: 248 seconds]
JsilverT has joined #ruby
Arney has joined #ruby
<Arney> after an update of my whole stack ruby gives me Time.now without a timezone
<Arney> even though the timezone of my pc is correct
<Arney> what can i do?
<Arney> (im in +0100)
shazbotmcnasty has joined #ruby
<Arney> and Time.now says +0000
millz has joined #ruby
nowhere_man has quit [Remote host closed the connection]
tomphp has joined #ruby
<Arney> well okay, ruby thinks it's in utc, but why?
mistnim has joined #ruby
<mistnim> how do I debug an unexpected end of input, excpetcted keyboard end (with line number the end of a long file?) indenting with my editor doesn't show any problem
<apeiros> keyboard end? :D
<mistnim> keyword
<mistnim> ops
<apeiros> now *that* is an interesting syntax error ;-p
<Arney> that face when you cant write end because u reached the end of the keyboard
<apeiros> expected keyword end litterally means that you're missing an 'end'
<mistnim> apeiros, yes, but where it is?
<Arney> apeiros: you better get your glass sphere
<mistnim> the auto-indentation is fine
<apeiros> mistnim: well, read through your source, find all places where you open a scope which needs an ending 'end', indent it properly and see
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Arney> have any changes been made to ruby's detection of timezones?
<mistnim> it's 1000 lines of code
<apeiros> and yeah, if your editor supports autoformat, try that
<apeiros> mistnim: tough life.
theillusioneer has joined #ruby
<apeiros> cut sections you consider correct
banisterfiend has joined #ruby
<apeiros> binary search style - cut half, see whether it works. if not, it's in the remaining half. if it does, it's in the cut half.
<apeiros> rinsse & repeat.
wolfshappen has quit [Quit: Waffs have technical problems too]
<apeiros> -s
DLSteve has joined #ruby
nowhere_man has joined #ruby
eroux has quit [Ping timeout: 248 seconds]
wolfshappen has joined #ruby
shazbotmcnasty has quit [Ping timeout: 248 seconds]
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oetjenj has joined #ruby
marienz has quit [Ping timeout: 615 seconds]
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
<mistnim> guys, it's not else if, it's elsif.
FahmeF has joined #ruby
oetjenj has quit [Client Quit]
<apeiros> would it surprise you if I told you that we know that already? :)
devchild has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nchambers is now known as Rudolph
banisterfiend has joined #ruby
<mistnim> also, run your thing frequently while you code
<apeiros> nah, I usually run stuff every ~10KB ;-D
<apeiros> (not really, only if a single feature really requires that much code - else after a feature is done)
devchild has quit [Ping timeout: 255 seconds]
<adaedra> rerun rspec
<adaedra> hop, done.
<dminuoso> And then wait 20 minutes
<dminuoso> Why is there no equivalent for testing?
<adaedra> Because we have fast test suites 😎
shazbotmcnasty has joined #ruby
<dminuoso> Fast usually means empty. ;p
shazbotmcnasty has quit [Ping timeout: 248 seconds]
gone_haywire has joined #ruby
<nickjj> SSDs and only running tests against the code we're actively developing
mtkd has quit [Read error: Connection reset by peer]
^mtkd has joined #ruby
Psybur has joined #ruby
^mtkd has quit [Read error: Connection reset by peer]
<apeiros> nickjj: pffft, I have a testsuite with >1mio assertions which runs <2s.
mtkd has joined #ruby
mistnim has quit [Quit: Leaving]
<nickjj> apeiros, assert_equal 1, 1 -- x a million?
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso> Im guessing some of those are automatically generated.
<dminuoso> Id rather be interested in how many separate tests (with setup and teardown in between) are being run.
banisterfiend has joined #ruby
mtkd has quit [Read error: Connection reset by peer]
dinfuehr has quit [Ping timeout: 255 seconds]
mtkd has joined #ruby
Psybur has quit [Ping timeout: 260 seconds]
dinfuehr has joined #ruby
<apeiros> nickjj: no, a datetime library testing a cycle of 402 years (since 400 years is a complete leap year cycle in gregorian calendar system)
<apeiros> + some other tests, but the cycle is where most assertions happen
uZiel has quit [Ping timeout: 248 seconds]
devchild has joined #ruby
shazbotmcnasty has joined #ruby
webguynow has joined #ruby
<nickjj> i tend to run a smaller amount of end to end tests, but they also run fast enough if i stick to testing what i'm actively working on (then i run full tests when i'm ready to push a new build)
<nickjj> but that is in the context of developing web applications
devchild has quit [Ping timeout: 240 seconds]
noobineer has quit [Remote host closed the connection]
Senecea has joined #ruby
shazbotmcnasty has quit [Ping timeout: 248 seconds]
nunchuck has joined #ruby
hutch34 has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Technodrome has joined #ruby
snickers has joined #ruby
uZiel has joined #ruby
snickers has quit [Read error: No route to host]
shazbotmcnasty has joined #ruby
wolfshappen has quit [Quit: Waffs have technical problems too]
mrconfused has joined #ruby
wolfshappen has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
shazbotmcnasty has quit [Ping timeout: 240 seconds]
kapil___ has quit [Quit: Connection closed for inactivity]
<dminuoso> apeiros: this is amazing
<dminuoso> &ri Coverage
<dminuoso> Seen some presentation from tenderlove regarding reducing testing time with this
<apeiros> dminuoso: isn't that the basis for simplecov?
uZiel has quit [Remote host closed the connection]
uZiel has joined #ruby
<dminuoso> I thought simplecov was the old ancient tool for before?
<apeiros> that was rcov iirc
<dminuoso> ¯\_(ツ)_/¯
<apeiros> simplecov started to exist with the advent of this api. or maybe a predecessor of it. but I'm pretty sure simplecov started when ruby had native support of sorts
<dminuoso> apeiros: considering Coverage is rather new, idk
valeth2 has joined #ruby
<apeiros> 5th version it's in already.
<apeiros> so not *that* new :)
<apeiros> "SimpleCov is a code coverage analysis tool for Ruby. It uses Ruby's built-in Coverage library to gather code coverage data"
<apeiros> I'd say that settles it ;-p
<dminuoso> Ill buy you a beer.
<apeiros> you do remember that I don't drink beer?
valeth1 has quit [Ping timeout: 240 seconds]
<dminuoso> Yes, which is why.
<apeiros> I only tested 1.9.0
<dminuoso> That way Ill have a "gutes Gewissen", but get to drink your beer for you as well.
<dminuoso> Win-win.
<apeiros> we got different ideas about the meaning of "win"
<dminuoso> Fine, pick your poison
<apeiros> and now excuse me, I've got to figure out why my glyphicons no longer load since updating bootstrap-sass
<apeiros> and read https://waitbutwhy.com/2014/05/fermi-paradox.html - just because
<dminuoso> are you using webpacker?
<apeiros> no
shazbotmcnasty has joined #ruby
<apeiros> hm, seems no glyphicons there anymore, but FA is there. I guess I'll just turn all icons to FA icons instead. glyph is dead anyway iirc.
cschneid_ has joined #ruby
<dminuoso> Yes. bootstrap 4 has glyphicons removed
<dminuoso> apeiros: Its just sad that people are still using font icons. :(
<dminuoso> Wish FA had svg icons available, like glyphicons do
shazbotmcnasty has quit [Ping timeout: 268 seconds]
<apeiros> ye, but this project is still on bootstrap3, so I thought glyph would still be there. but it's not important.
raynold has quit [Quit: Connection closed for inactivity]
<apeiros> you know fontanello?
<dminuoso> Never heard of it
<apeiros> wait… must misremember the name…
<apeiros> ah, fontello
xlegoman has joined #ruby
<apeiros> instead of having a huge font file, you can create your own small font-file with the couple of icons you actually use
banisterfiend has quit [Changing host]
banisterfiend has joined #ruby
<dminuoso> Like I said, I wish people stopped using font icons.
<nickjj> damn, that article is epic
<apeiros> dminuoso: why's that?
Psybur has joined #ruby
<apeiros> I mean why svg > font?
<dminuoso> apeiros: Semantic correctness (abusing span/i for icons is gross), anti-aliasing of fonts can blur icons, properly colored icons, and styling. css with font icons can drive you mad.
<dminuoso> Also it's trivial do just change an icon
<dminuoso> Since you can just edit them with inkscape if need be.
<apeiros> ok
<adaedra> Yeah, icon fonts were a neat trick, but SVG is really the good tool for this
p0s1x has joined #ruby
<apeiros> dminuoso: and how are the svg's referenced? <img src=>?
<apeiros> or in css with background-image: url(…)?
<apeiros> or some other means?
<dminuoso> apeiros: turns out you got <svg> :-)
<apeiros> ok. that means everytime you show an icon you embed the full code? o0
<dminuoso> apeiros: You can but you dont have to. You can use internal/external references
Psybur has quit [Ping timeout: 248 seconds]
<apeiros> how?
<dminuoso> apeiros: Essentially svg in HTML acts as foreign elements. And svg defines <use> elements that can reference other files
<apeiros> ok, let me boil this down:
<dminuoso> So you end up with something like <svg><use xlink:href='...' /></svg>
<apeiros> is it possible to load a single file with all icons and reference those from the html?
<dminuoso> Yes.
<apeiros> ok. that was my main concern. because otherwise we're back at old problems :)
<adaedra> we're kinda deriving from ruby here :p
<apeiros> point taken. -> ot
<adaedra> good thing ops didn't see you.
<apeiros> yeah. they're lazy AF anyway.
<apeiros> and the founders? haven't seen 'em in ages… shame, shame…
millz has quit [Remote host closed the connection]
shazbotmcnasty has joined #ruby
astronavt has joined #ruby
michael3 has joined #ruby
thinkpad has quit [Ping timeout: 248 seconds]
astronavt has quit [Remote host closed the connection]
dstrunk has joined #ruby
astronavt has joined #ruby
ta_ has joined #ruby
devchild has joined #ruby
shazbotmcnasty has quit [Ping timeout: 240 seconds]
p0s1x has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aroaminggeek has joined #ruby
devchild has quit [Ping timeout: 240 seconds]
nadir has joined #ruby
<craysiii> hey all, attempting to write my first API wrapper. wondering if I can get some constructive criticism on what i'm doing wrong/what can be done better https://gist.github.com/craysiii/b7886f8ff1b9f15834fc8f09e51bf1bf
<dminuoso> craysiii: Two things: Dont put everything into one class. You're missing the point of ruby's object oriented design.
<dminuoso> craysiii: And the other is youf `req.params['asset'] = asset unless asset.nil?` idiom
<dminuoso> Look into:
<dminuoso> &ri Hash#merger
<`derpy> No results
<dminuoso> &ri Hash#merge
joker5bb has joined #ruby
<craysiii> thanks derpy, will check out merge. and will work on the OOP as well
exhiled has joined #ruby
astronavt has quit [Remote host closed the connection]
astronavt has joined #ruby
devchild has joined #ruby
astronav_ has joined #ruby
<dminuoso> apeiros: Didn't realize because I was being silly:
<dminuoso> (Q.zipWith * Q.zipWith).(Q.sum, a, b)
<dminuoso> Look at this beauty!
ta_ has quit [Remote host closed the connection]
<apeiros> :)
shazbotmcnasty has joined #ruby
<apeiros> indeed it is
astronavt has quit [Ping timeout: 258 seconds]
<dminuoso> It's not as clean as `(zipWith . zipWith) (-) a b` but its fairly close
<dminuoso> Im so tempted to rig method_missing to allow . for function composition.
<apeiros> just go ahead and implement your own language already :D
<dminuoso> Been there done that. With what Im learning now, it's way beyond my skills to implement a language with the things I like.
<apeiros> eh, you're a clever cookie. I'm pretty sure you can acquire those skills.
astronav_ has quit [Remote host closed the connection]
nofxx_ has joined #ruby
mim1k has joined #ruby
ta_ has joined #ruby
nofxx__ has quit [Ping timeout: 240 seconds]
<adaedra> 🍪🎓
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
p0s1x has joined #ruby
mim1k has quit [Ping timeout: 248 seconds]
govg has quit [Ping timeout: 260 seconds]
p0s1x has quit [Client Quit]
<dminuoso> Never have tables been so much fun before, with functional ruby!
shazbotmcnasty has quit [Ping timeout: 258 seconds]
hanmac has quit [Ping timeout: 240 seconds]
p0s1x has joined #ruby
p0s1x has quit [Client Quit]
Rouge_ has joined #ruby
nopolitica has joined #ruby
aroaminggeek has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
astronavt has joined #ruby
ta_ has quit [Remote host closed the connection]
astronavt has quit [Remote host closed the connection]
ta_ has joined #ruby
mtkd has quit [Read error: Connection reset by peer]
shazbotmcnasty has joined #ruby
mtkd has joined #ruby
ta_ has quit [Ping timeout: 240 seconds]
shazbotmcnasty has quit [Ping timeout: 248 seconds]
tomphp has joined #ruby
hanmac has joined #ruby
Psybur has joined #ruby
FahmeF has quit [Remote host closed the connection]
Senecea has quit [Quit: Textual IRC Client: www.textualapp.com]
FahmeF has joined #ruby
hutch34 has joined #ruby
tomphp has quit [Read error: Connection reset by peer]
drowze has joined #ruby
FahmeF has quit [Ping timeout: 240 seconds]
Psybur has quit [Ping timeout: 255 seconds]
Seich has joined #ruby
eroux has joined #ruby
shazbotmcnasty has joined #ruby
mson has joined #ruby
tomphp has joined #ruby
shazbotmcnasty has quit [Ping timeout: 240 seconds]
drowze has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
kitsunenokenja has quit [Quit: WeeChat 1.9.1]
jackjackdripper has joined #ruby
darkmorph has joined #ruby
darkmorph has quit [Client Quit]
mikeiniowa has quit [Remote host closed the connection]
kitsunenokenja has joined #ruby
ta_ has joined #ruby
mikeiniowa has joined #ruby
noobineer has joined #ruby
cschneid_ has quit [Remote host closed the connection]
shazbotmcnasty has joined #ruby
drowze has joined #ruby
shazbotmcnasty has quit [Ping timeout: 255 seconds]
ta_ has quit [Ping timeout: 268 seconds]
<craysiii> wow i thanked the bot, thanks dminuoso lol.
hndk has joined #ruby
Sambsquanch has joined #ruby
michael3 has quit [Ping timeout: 240 seconds]
noobineer has joined #ruby
mrconfused has quit [Remote host closed the connection]
astronavt has joined #ruby
_sfiguser has quit [Quit: Leaving]
workmad3 has joined #ruby
kitsunenokenja has quit [Quit: WeeChat 1.9.1]
kitsunenokenja has joined #ruby
<RickHull> ?botsnack
<ruby[bot]> nomnomnomnom
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
digitalowl has joined #ruby
astronavt has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 240 seconds]
<digitalowl> Hello. Can I generate event for EventMachine? I want generate periodic inotify events for scan path.
<digitalowl> Only touch file in watched directory?
DTZUZU has quit [Read error: Connection reset by peer]
shazbotmcnasty has joined #ruby
<RickHull> that sounds reasonable. inotify can fire on lots of stuff IIRC
<RickHull> not sure how EM hooks into inotify
Dimik has joined #ruby
DTZUZU has joined #ruby
<digitalowl> I want process big count of files in 10-15 threads and files will be added. When threadpool for file processing will be filled - new inotify events will be just dropped. I want additional periodic generate additional intofy for continue process.
ta_ has joined #ruby
mjolnird has quit [Remote host closed the connection]
GodFather has quit [Read error: Connection reset by peer]
<digitalowl> s/additional intofy/inotify/
<RickHull> like a ping so you know it's still alive?
<RickHull> oh, nvm, I misunderstood
<RickHull> you should be able to queue up inotify events, even if all threads are busy
<RickHull> all *worker* threads
<RickHull> you can have a supervisor thread that maintains a queue of events, maybe
<RickHull> i wouldn't expect the events to just get dropped in a basic setup though -- but haven't played with this in a while
shazbotmcnasty has quit [Ping timeout: 248 seconds]
<digitalowl> I think about native threads with supervisor, yes...
<RickHull> anyway, I'm just guessing. maybe someone else has more relevant experience :)
uZiel has quit [Ping timeout: 248 seconds]
ta_ has quit [Ping timeout: 240 seconds]
<RickHull> while there are scaling limits -- you might consider just spinning up a thread per event, rather than a pool
Psybur has joined #ruby
<RickHull> short-lived threads -- perhaps with an internal timer that suicides the thread
astronavt has joined #ruby
<digitalowl> Hm... Okay, try again - I have a temporary folder with files - my task - pack all files so fast as i can
<digitalowl> And move packed files to destination directory.
<digitalowl> I want read listen inotify events for new files coming and create separated packing thread for every file in directory
<digitalowl> s/read//
<RickHull> pack, like tar.gz ?
<digitalowl> lzmy
<digitalowl> *lzma
<RickHull> i would start with a thread per event and see how it performs
<RickHull> it should be 100% correct and no events dropped
<RickHull> it's possible too many threads are created, and you would maybe consider a thread pool for that scenario
<RickHull> with all worker threads busy -- in the thread pool case -- you should still have a thread that can consume and queue events -- assuming inotify doesn't queue for you
devchild has quit [Remote host closed the connection]
<digitalowl> Yeah, while count of running threads less than threads limit
<digitalowl> I want limit count of threads because packing is heavy task
Psybur has quit [Ping timeout: 240 seconds]
<RickHull> i dunno -- you can probably rely on the OS to do your scheduling rather than the crude scheduling of a thread pool full of busy workers
<RickHull> but maybe there are IO bottlenecks or the machine grinds to a halt
dstrunk has quit [Quit: Textual IRC Client: www.textualapp.com]
<digitalowl> I want use 10-15 threads for process thousands files - ofc all threads will be busy
<RickHull> how long does a work take?
<RickHull> and at what rate do new files show up?
<RickHull> you are going to get backed up at some point, presumably
<digitalowl> from 1 to 5-10 seconds
jeanlinu_ has quit [Remote host closed the connection]
<digitalowl> I think rate for new files is low
<RickHull> then why would there be thousands of files?
<digitalowl> First fill of database
<RickHull> solve that separately from the ongoing operations problem
<RickHull> they are two distinct problems
<RickHull> you don't need inotify for initial startup where there are thousands of files
<RickHull> just `ls`
shazbotmcnasty has joined #ruby
<digitalowl> But sometimes I can get new pack of files (ofc with less count of files)
devchild has joined #ruby
<digitalowl> In ideal case I want create simple backend with CRUD api - I put file to server, he save to file to temporary directory and after one of threads is free - he process new file.
<digitalowl> s/to file to/to/
<RickHull> just to back up: 1 current problem is that when all workers are busy, inotify events get dropped?
<digitalowl> In additional case I think about use message broker
<RickHull> is that the only issue right now?
Zamyatin has joined #ruby
jeanlinux has joined #ruby
<digitalowl> Inotify will be generated - but I may only drop it or save for future process.
<RickHull> if inotify is your source of truth -- if you won't know of a file's existence without it -- then you must queue the event for later processing
<RickHull> i would think inotify has a built in mechanism for this
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull> but not sure
<digitalowl> For my case inotify is not a right choise, because I want listen inotify on remporary directory, but that
shazbotmcnasty has quit [Ping timeout: 248 seconds]
<digitalowl> event will be generated on each modification of folder - create file, delete file, move file, etc
kitsunenokenja has quit [Quit: WeeChat 1.9.1]
Technodrome has joined #ruby
kitsunenokenja has joined #ruby
<digitalowl> What do you think about message broker or memcached?
houhoulis has joined #ruby
<RickHull> i think you're venturing into astronaut architecture :)
jackjackdripper has quit [Quit: Leaving.]
<digitalowl> Server got file< save his to temporary directory, push metadata to message broker, queue turn, read new messagess and process new files
<RickHull> just listen for file creation event, queue it, and process it with workers
<digitalowl> Rocket science is all of my live :D
<RickHull> I don't know if I can help much more without researching inotify, which isn't going to happen today :)
JsilverT has quit [Quit: WeeChat 2.0-dev]
<RickHull> but hopefully this gives some things to think about, some alternatives :)
<digitalowl> I can't listen inotify events for non existent files. I can listen inotify for temporary folder, but without additional information - only - folder changed.
ta_ has joined #ruby
drowze has quit [Ping timeout: 258 seconds]
<RickHull> you should be able to filter the events easily
statelesscode has quit [Ping timeout: 248 seconds]
<digitalowl> About alternatives - yes, that's true.
JsilverT has joined #ruby
chmurifree has quit [Ping timeout: 240 seconds]
lexruee has quit [Ping timeout: 248 seconds]
linocisco has quit [Quit: Leaving]
<digitalowl> RickHull, thx, I get message broker. INotify is not applicapable for my case.
lexruee has joined #ruby
<RickHull> good luck. I don't see how it helps, because inotify is listening for filesystem events. a message broker doesn't (typically) solve that problem
Immune has joined #ruby
<digitalowl> Em... Server put message to broker, queue run per minute for example, get new messages for free threads and drop his from message queue.
shazbotmcnasty has joined #ruby
<RickHull> so the message is something like: "there should be a file named xyz.txt in /tmp/dir" ?
<digitalowl> something like that, yes
<digitalowl> But in this case I can get race condition :D
<RickHull> i would be more tempted to query the filesystem for the existence of files
<RickHull> you could just use `ls` and have /tmp/dump /tmp/processing /tmp/packed
<RickHull> move from dump to processing when a thread grabs a file
<RickHull> that way it won't be processed twice
<digitalowl> replace ls to File.exists?, but yes, you right, I think about that
aroaminggeek has joined #ruby
aroaminggeek has quit [Client Quit]
<RickHull> you will have to be careful about concurrency, atomicity, etc -- what else is new? ;)
<digitalowl> lol, I know how write queue on bash in 5-10 lines, but that's not interesting
ta_ has quit [Ping timeout: 248 seconds]
swills has quit [Read error: Connection reset by peer]
<RickHull> but the advantage is that when something goes wrong -- and it will -- the state is all there on the filesystem
radanisk has joined #ruby
chmurifree has joined #ruby
swills has joined #ruby
swills has quit [Changing host]
swills has joined #ruby
<digitalowl> I create this project for myself because I want understand what multiprocessing problems I get, resolve it and get more expirience.
<digitalowl> And I want have a normal library for my ebooks collection.
dstrunk has joined #ruby
prutheus has joined #ruby
shazbotmcnasty has quit [Ping timeout: 248 seconds]
<prutheus> Hello! Is it possible to write this statement in a more easy way: https://bpaste.net/show/4022520eccdf I used a lot of multiplications, divisions and sums. Maybe I could shorten this a bit? at least removing the -1 somehow?
mim1k has joined #ruby
<dminuoso> prutheus: On a highlevel, what does the code do?
<prutheus> okay wait
<prutheus> i have a number, e.g. 300
<RickHull> may $deity help the maintenance programmer who has to debug this
<prutheus> then i have an array with elements, every 10 it gets one element
<prutheus> now, when we got 30 elemets we reached 300
<prutheus> then the code under the unless statement should get executed
<dminuoso> Stop.
<prutheus> sorry?
<dminuoso> Dont explain to me what the code does step by step. I want you to just tell me what this does on an abstract level.
<dminuoso> Trying to see your intend.
<prutheus> yeah thats it what i did
<dminuoso> prutheus: Oh sorry you misunderstood. I just want to know the gist of that expression.
ta_ has joined #ruby
<RickHull> what is the purpose? what problem is being solved?
<prutheus> checking if we received 30 elements already
<prutheus> ahahahahaha
<prutheus> oh man i am so stupid
dviola has joined #ruby
<digitalowl> prutheus, 30 elements per minute?
<prutheus> i just can rewrite it to unless .length * 10 == 300
<prutheus> :D
<prutheus> THANKS!
<dminuoso> prutheus: :-)
<RickHull> LOL xD
<dminuoso> prutheus: this is why I asked you to get a high level description of your intent. :-)
<prutheus> yeah right, thanks a lot for that
<prutheus> haha
<prutheus> oh man this is su funny
<prutheus> :D
mim1k has quit [Ping timeout: 255 seconds]
<RickHull> it could be that 30 is not an invariant of your problem
<RickHull> 30 may be the result of some choice in the problem space
<RickHull> you may want to organize all of these variables into a class with ivars and methods that yield sensible scalars
<prutheus> yeah but its all "static", man I don't know why I was using something like modulo, no sense on taht point haha
ogres has joined #ruby
<dminuoso> prutheus: I've been there, refactoring entire 200 LoC modules to nothing, realizing it could be replaced by a single method call to Enumerable before.
<RickHull> I love those moments!
idiocrash has joined #ruby
<prutheus> haha
<prutheus> what is LoC ?
<craysiii> lines of code
<prutheus> oh yeah ^^
shazbotmcnasty has joined #ruby
plexigras has quit [Ping timeout: 260 seconds]
armyriad has quit [Ping timeout: 240 seconds]
armyriad has joined #ruby
radanisk has quit [Remote host closed the connection]
<dminuoso> RickHull: Im on a rick roll.
<dminuoso> This code is writing itself.
<RickHull> sometimes the universe speaks and you're just a vessel
<dminuoso> My latest most readable lens implementation
shazbotmcnasty has quit [Ping timeout: 240 seconds]
<dminuoso> That defc pattern should be a thing.
Zamyatin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<digitalowl> RickHull, hm... I found another solution with inotify :D
<craysiii> RickHull sounds like something terry would say
xlegoman has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
idiocrash has quit [Quit: Textual IRC Client: www.textualapp.com]
<RickHull> digitalowl: yeah, I meant to say earlier, this is a common problem that has been solved many times before
<dminuoso> I think.. I need to write tests now.
<RickHull> some solutions better than others -- the devil is in the details
<dminuoso> adaedra: rspec or minitest?
michael3 has joined #ruby
<adaedra> what
Psybur has joined #ruby
<RickHull> I haven't found anything that rspec solves better than minitest for my gems -- I think rspec is maybe a win for web projects
<RickHull> i haven't looked very hard either, so grain of salt and all that
<dminuoso> adaedra: It was an honest question. ;o
<adaedra> dminuoso: I lack the context for this question
<dminuoso> Ive only ever used rspec because... well a few years ago I flipped a coin because I couldnt decide.
<dminuoso> adaedra: So Im writing a library right now.
<dminuoso> And I want to start writing tests. Wondering whether there are sane arguments for minitest.
plexigras has joined #ruby
<adaedra> RickHull: I really like rspec because of the describe/context/it syntaxes which I find better for organizing (and minitest/spec is not reimplementing correctly) and rspec has some good additions (like re-launching previously failed tests) out of the box
<adaedra> dminuoso: arguments for minitest are usually that it's simpler and ruby-like.
<dminuoso> Seeing as I seem to be incapable of writing ruby-like ruby code..
<RickHull> adaedra: yeah, i think there are some wins there -- but the cost of the DSL dampens
ur5us has joined #ruby
<adaedra> it's a matter of habit
<RickHull> i have hit some limits with minitest where I want to apply tests defined in one place to another context / class / ojb
<RickHull> and i think rspec can do that
<elomatreb> shared examples, yeah. Pretty useful
Psybur has quit [Ping timeout: 240 seconds]
<RickHull> at some point though, rspec and test grooming can feel like a fetish ;)
safetypin has joined #ruby
Sambsquanch has quit [Quit: Peace, take it easy.]
<RickHull> minitest tends toward quick, flat, simple
prutheus has quit [Quit: Page closed]
<RickHull> rspec suites are like their own program, with bugs included
noobineer has quit [Read error: Connection reset by peer]
<RickHull> sometimes hard to know what is being tested, or surprising behavior
<adaedra> You can have that with minitest too
cryocaustik has joined #ruby
Xiti has quit [Quit: Xiti]
<RickHull> any examples of such here? https://github.com/rickhull/compsci/tree/master/test
noobineer has joined #ruby
shazbotmcnasty has joined #ruby
noobineer has quit [Max SendQ exceeded]
Xiti has joined #ruby
<cryocaustik> Hi - I am very new to ruby and am trying to learn; my goal is to setup a web forum that would also have a subsite with charts/tables to consume some data from another database.
<cryocaustik> I was wondering it if would be possible to run https://github.com/discourse/discourse and also add a subsite for my data application into the discourse infrastructure?
<RickHull> cryocaustik: have you heard of rails?
<RickHull> probably setting up discourse is a bad way to learn ruby
<RickHull> rails is a good compromise for making it easy to set up a site and talk to a database
<cryocaustik> I have read about it; an infrastructure to help people new to ruby get setup and running
AX31_A13X has joined #ruby
<RickHull> do you want to learn ruby specifically? do you want to learn web stuff? or do you want to learn just enough to run a website?
aroaminggeek has joined #ruby
shazbotmcnasty has quit [Ping timeout: 248 seconds]
<cryocaustik> I am interested in learning ruby overall; but what drove me to the language is wanting to build a forum/subsite
<RickHull> I would suggest a 2-pronged effort: 1. pick a free ruby tutorial like "pine learn to program" or "learn ruby the hard way" and 2. pick a rails tutorial and set up your first rails site
<RickHull> budget one week to one month for this
<RickHull> and then decide on proceeding with discourse or whatever
mtkd has quit [Ping timeout: 268 seconds]
AxelAlex has quit [Ping timeout: 268 seconds]
<cryocaustik> that is a good point; I am about 20% into the codecademy tutorial; I will give rails a try and see if I can setup a site using that
<cryocaustik> thanks!
<RickHull> if you can't budget more than a week or a month, then you may need to reconsider your goals :)
<cryocaustik> nah, that is a great timeline
<cryocaustik> esp. considering I am new to ruby :D
xlegoman has joined #ruby
<zanoni> or try Jumpstart Sinatra, short book and you get started with web , ruby and database, quick project to fall along with
<cryocaustik> nice - I will look it up
<cryocaustik> thanks again for the advice
<RickHull> ^ I prefer Sinatra to rails for simple things -- but i'm not sure what it's like for a newbie
mtkd has joined #ruby
exhiled has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zanoni> I took the path of Sinatra to get better acquainted with how a web framework works
shazbotmcnasty has joined #ruby
michael1 has joined #ruby
michael3 has quit [Ping timeout: 258 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shazbotmcnasty has quit [Ping timeout: 240 seconds]
radanisk has joined #ruby
Zamyatin has joined #ruby
woodruffw has quit [Ping timeout: 268 seconds]
workmad3 has joined #ruby
woodruffw has joined #ruby
woodruffw has quit [Changing host]
woodruffw has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
shazbotmcnasty has joined #ruby
devchild has quit [Remote host closed the connection]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
devchild has joined #ruby
houhoulis has quit [Remote host closed the connection]
devchild has quit [Ping timeout: 240 seconds]
Psybur has joined #ruby
devchild has joined #ruby
shazbotmcnasty has quit [Ping timeout: 258 seconds]
p0s1x has joined #ruby
Psybur has quit [Ping timeout: 248 seconds]
shazbotmcnasty has joined #ruby
shazbotmcnasty has quit [Ping timeout: 255 seconds]
armyriad has quit [Read error: Connection reset by peer]
Technodrome has joined #ruby
radanisk has quit []
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
Emmanuel_Chanel has joined #ruby
shazbotmcnasty has joined #ruby
mim1k has joined #ruby
mim1k has quit [Ping timeout: 248 seconds]
shazbotmcnasty has quit [Ping timeout: 268 seconds]
Pierreb|home has joined #ruby
aroaminggeek has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
shazbotmcnasty has joined #ruby
luminor has joined #ruby
jamesaxl has quit [Quit: WeeChat 1.9.1]
shazbotmcnasty has quit [Ping timeout: 250 seconds]
shazbotmcnasty has joined #ruby
Rouge_ has quit [Ping timeout: 248 seconds]
Psybur has joined #ruby
FahmeF has joined #ruby
Azure has joined #ruby
sepp2k1 has joined #ruby
Azure|dc has quit [Ping timeout: 240 seconds]
shazbotmcnasty has quit [Ping timeout: 250 seconds]
luminor has quit []
sepp2k has quit [Ping timeout: 240 seconds]
luminor has joined #ruby
luminor has quit [Client Quit]
cagomez has joined #ruby
drowze has joined #ruby
FahmeF has quit [Ping timeout: 260 seconds]
luminor has joined #ruby
luminor has quit [Client Quit]
luminor has joined #ruby
luminor has quit [Client Quit]
luminor has joined #ruby
Psybur has quit [Ping timeout: 268 seconds]
luminor has quit [Client Quit]
jottr has quit [Read error: Connection reset by peer]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
brokesys has joined #ruby
shazbotmcnasty has joined #ruby
mattp__ has quit [Read error: Connection reset by peer]
mattp__ has joined #ruby
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
p0s1x has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shazbotmcnasty has quit [Ping timeout: 240 seconds]
Arney has quit [Quit: leaving]
cagomez has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 264 seconds]
devchild has quit [Remote host closed the connection]
devchild has joined #ruby
mattp__ has quit [Ping timeout: 255 seconds]
cschneid_ has joined #ruby
marr has joined #ruby
cdg has joined #ruby
cagomez has joined #ruby
Technodrome has joined #ruby
cschneid_ has quit [Remote host closed the connection]
p0s1x has joined #ruby
cschneid_ has joined #ruby
Zamyatin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shazbotmcnasty has joined #ruby
raynold has joined #ruby
p0s1x has quit [Max SendQ exceeded]
eckhardt has joined #ruby
drowze has quit [Ping timeout: 258 seconds]
yokel has quit [Quit: Lost terminal]
yokel has joined #ruby
shazbotmcnasty has quit [Ping timeout: 248 seconds]
Freshnuts has joined #ruby
mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
ap4y has joined #ruby
safetypin has quit [Quit: ZZZzzz…]
hutch34 has joined #ruby
mattp_ has joined #ruby
workmad3 has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
shazbotmcnasty has joined #ruby
Mutter has joined #ruby
dstrunk has joined #ruby
Mutter has quit [Client Quit]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
shazbotmcnasty has quit [Ping timeout: 248 seconds]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
devchild has quit [Remote host closed the connection]
biberu has quit []
Psybur has joined #ruby
DTZUZU has quit [Ping timeout: 240 seconds]
aces1up has quit []
Psybur has quit [Ping timeout: 248 seconds]
tomphp_ has joined #ruby
xlegoman has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Azure has quit [Killed (Sigyn (Spam is off topic on freenode.))]
tomphp has quit [Ping timeout: 255 seconds]
hutch34 has quit [Ping timeout: 248 seconds]
shazbotmcnasty has joined #ruby
michael3 has joined #ruby
astronavt has quit [Remote host closed the connection]
astronavt has joined #ruby
yabbes has joined #ruby
astronavt has quit [Remote host closed the connection]
apeiros has quit [Ping timeout: 248 seconds]
Azure has joined #ruby
Azure has quit [Remote host closed the connection]
sightes has joined #ruby
devchild has joined #ruby
Azure has joined #ruby
michael1 has quit [Ping timeout: 260 seconds]
astronavt has joined #ruby
sightes has quit [Client Quit]
astronavt has quit [Remote host closed the connection]
shazbotmcnasty has quit [Ping timeout: 248 seconds]
devchild has quit [Ping timeout: 255 seconds]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ogres has quit [Quit: Connection closed for inactivity]
gone_haywire has quit [Ping timeout: 248 seconds]
Zamyatin has joined #ruby
MagicGuitarist has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
m4rCsi has joined #ruby
mson has quit [Quit: Connection closed for inactivity]
shazbotmcnasty has joined #ruby
hndk has quit [Quit: Leaving]
m4rCsi has quit [Remote host closed the connection]
tomphp_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yabbes has quit [Quit: lu]
shazbotmcnasty has quit [Ping timeout: 248 seconds]
michael3 has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
MagicGuitarist has quit [Quit: leaving]
lexruee has quit [Ping timeout: 246 seconds]
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has joined #ruby
lexruee has joined #ruby
mim1k has quit [Ping timeout: 248 seconds]
thinkpad has joined #ruby
leitz has joined #ruby
<leitz> Do you have to have Ruby on a machine to build ruby?
valeth2 has quit [Quit: WeeChat 1.9.1]
Ropeney has joined #ruby
<leitz> Trying to understand "configure:3077: error: cannot run /bin/sh tool/config.sub"
<Radar> No you don't have to have Ruby to install Ruby.
<Radar> How would Ruby get built in the first place?
shazbotmcnasty has joined #ruby
<leitz> OS package.
<leitz> Hrmph. autoconf uses config.sub and tells you not to use it.
jeanlinu_ has joined #ruby
shazbotmcnasty has quit [Ping timeout: 248 seconds]
jeanlinux has quit [Ping timeout: 268 seconds]
goyox86_ has joined #ruby
cdg_ has joined #ruby
<leitz> Seems to be an issue new to 2.5.0-preview-1. So far the 2.4.2 configure is running.
Psybur has joined #ruby
goyox86_ has quit [Read error: Connection reset by peer]
goyox86__ has joined #ruby
mostlybadfly has joined #ruby
cdg_ has quit [Remote host closed the connection]
eckhardt has joined #ruby
cdg has quit [Ping timeout: 248 seconds]
cagomez has quit [Remote host closed the connection]
goyox86 has joined #ruby
xlegoman has joined #ruby
Psybur has quit [Ping timeout: 248 seconds]
<RickHull> i was able to ruby-install 2.5.0-preview1
<RickHull> on debian FWIW
goyox86__ has quit [Ping timeout: 240 seconds]
shazbotmcnasty has joined #ruby
JsilverT has quit [Ping timeout: 248 seconds]
joast has quit [Quit: Leaving.]
<leitz> RickHull, I had to copy in tool/config.sub from 2.4.2. Did your install tree have it already?
<leitz> I'm on CentOS 6.
Zamyatin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull> I don't think ruby-install does anything like that
<RickHull> let me poke around
<leitz> check ruby/tool/config.sub, see if it's there.
shazbotmcnasty has quit [Ping timeout: 240 seconds]
<leitz> I pulled it from git, which may be another issue.
<RickHull> it's there. July 11 2013
dstrunk has joined #ruby
<RickHull> i expect you'll find it in the 2.5.0-preview1 .tar.gz
Sammichmaker has quit [Ping timeout: 240 seconds]
<RickHull> unless it's generated by autoconf or something -- never messed with these bits
<RickHull> (with that timestamp, it can't be generated)
<leitz> Yup, it's in the tar file from ruby-lang.org, not in the git repo.
brokesys has quit [Remote host closed the connection]
<leitz> Opened a ticket, not sure if there's a reason not to have config.sub in the git repo.
<RickHull> you could do some spelunking and see, if it's there for 2.4.2, when and why it was removed
jordanm has quit [Read error: Connection reset by peer]
<leitz> Hmm...not in the 2.4 repo either.
<leitz> It went away between 2_0_0 and 2_1. Commit c51615963af25a50e52cf933298d6405eb611d7a from 7 Jul 2013 says "Ignore config.guess and config.sub"
<leitz> Nobu removed them 14 Jun 13.
cschneid_ has quit [Remote host closed the connection]
<RickHull> obviously something is looking for it still, in the repo
<RickHull> `git grep config.sub` ?
enterprisey has joined #ruby
<leitz> or "git log" and then look for it.
<RickHull> again, I have basically no idea how this stuff works
<RickHull> autoconf etc
banisterfiend has joined #ruby
<RickHull> no, i mean `git grep` on the 2.5.0 branch
<leitz> Ah, your git grep works. Reading.
<RickHull> would a reference to config.sub be in the Makefile? some other autoconf thingie?
shazbotmcnasty has joined #ruby
<banisterfiend> anyone here has experience with osx development?
<RickHull> i assume you've googled this as well. if this happens on `git clone; make` on centos, you can't be the first
<RickHull> ?anyone banisterfiend
<ruby[bot]> banisterfiend: Just ask your question, if anyone has, is or can, they will respond.
<RickHull> get effed nerd
<banisterfiend> lol
<RickHull> <3 how's it been?
JsilverT has joined #ruby
<banisterfiend> well i'm building an osx app but i'm trying to "code sign" it and when i do i get a stupid fucking error: "the sealed resource directory is invalid"
<banisterfiend> anyone know how to debug this?
<banisterfiend> no further information
<leitz> There's a line "tool/config.guess, tool/config.sub: remove and download from the upstream"
<RickHull> leitz: this seems sensible -- there must be an intermediate step to grab this stuff when building from git repo
<RickHull> also, related -- I've noticed some repos have like symlinks to other repos -- on github anyway
<banisterfiend> leitz did you try: `autoconf -i` ?
<RickHull> anyone know what this is called and how to set it up?
<banisterfiend> leitz "autoreconf -i" i mean
charliesome has joined #ruby
<leitz> banisterfiend; Not that skilled. So far the fix has been to copy in a config.sub file. :)
<RickHull> leitz: there are probably instructions that cover this
guest9803 has quit [Read error: Connection reset by peer]
<RickHull> that said, shouldn't `make` do it for you?
kitsunenokenja has quit [Ping timeout: 258 seconds]
<leitz> RickHull, not on the github main page under "How to compile and Install"
<banisterfiend> autoreconf -i. installs all the stuff necessary for a 'make'
<RickHull> does it start with `git clone` or `tar.gz` ?
<leitz> You have to run ./configure before make, and configure fails.
<RickHull> oh right xD
<banisterfiend> sorry i mean 'autoreconf -i' installs the stuff for configure
shazbotmcnasty has quit [Ping timeout: 240 seconds]
<leitz> Trying banisterfiend's autoreconf idea.
<RickHull> if it works, update your ticket to maybe suggest that addition to the install instructions
<banisterfiend> i had to do that to get ruby source compiling on linux
mim1k has joined #ruby
<leitz> autoreconf -i didn't set up config.sub
enterprisey has quit [Remote host closed the connection]
<leitz> Ticket 14117, if you think it needs more info.
<banisterfiend> leitz did you install ruby
<banisterfiend> what are oyu trying to compile again?
<banisterfiend> cosy ou need a ruby installed to compile ruby. (assuming you'er messing wtih compiling ruby)
<leitz> banisterfiend, trying to compile ruby-2.5.0-preview1 from git source
<banisterfiend> yeah do you hav ea system ruby installed?
<leitz> Nope, just removed it.