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
<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)?
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…]
<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
<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/
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)
<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>
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
<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…]
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
<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>
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 ;)
<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]
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?