<unhappy_internet>
i did try concat and i realized i didn't use it correctly
fuhgeddaboudit has quit [Ping timeout: 245 seconds]
gianlucadv has joined #ruby-lang
ender|dkm has quit [Ping timeout: 255 seconds]
<havenwood>
unhappy_internet: no point to Integer(digits) when you know they're digits so my example is silly ^, just trying to throw some stuff out there :)
<havenwood>
unhappy_internet: `Integer(something)` is stricter than `something.to_i`
<eval-in__>
havenwood => invalid value for Integer(): "42XOXO" (ArgumentError) ... (https://eval.in/207779)
klmlfl has joined #ruby-lang
fuhgeddaboudit has joined #ruby-lang
<unhappy_internet>
Havenwood, "scan(/\d+/).map { |digits| Integer(digits) }.inject(:+)" works. i'm going to have to figure out why it works in pushing new elements without adding new array and why map is not throwing errors.
hellangel7 has quit [Remote host closed the connection]
simi has quit [Ping timeout: 250 seconds]
benlovell has joined #ruby-lang
charliesome has quit [Quit: zzz]
x0f has quit [Ping timeout: 260 seconds]
x0f has joined #ruby-lang
NoNMaDDeN has quit [Remote host closed the connection]
mikecmpbll has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
charliesome has joined #ruby-lang
yfeldblum has quit [Ping timeout: 272 seconds]
simi has joined #ruby-lang
mreq has joined #ruby-lang
<mreq>
Hey, I'm creating a gem for window tiling. What would you name classes representing the actual tiling layouts? They are invoked via "ASCII layouts" like "[ | ]", "[-| ]" etc.
<maloik>
mreq: on what platforms does that work? I suppose you need a very specific window manager for that?
<mreq>
maloik: Linux ones in general
<mreq>
maloik: everything that has wmctrl and xrandr
<mreq>
it's still work in progress, but basic switching resizing and tiling does work already
JaReAx has joined #ruby-lang
<maloik>
Yea I saw wmctrl mention somewhere but it didn't ring a bell... might need to add that somewhere, that as a mac user it probably won't help you much
qba73 has joined #ruby-lang
charliesome has quit [Quit: zzz]
<mreq>
yep, there's no wmctrl on mac :/ but extending this gem to mac might be easy enough if there's something similiar for osx
<mreq>
basically just rewriting a 3-4 methods to other syntax
ta has joined #ruby-lang
ta has quit [Client Quit]
charliesome has joined #ruby-lang
ta has joined #ruby-lang
skade has joined #ruby-lang
kirin` has quit [Ping timeout: 245 seconds]
kirin` has joined #ruby-lang
mreq has quit [Ping timeout: 265 seconds]
allomov_ has quit [Remote host closed the connection]
<yorickpeterse>
morning kids
mreq has joined #ruby-lang
<maloik>
hey
<maloik>
yorickpeterse: aha, the man I need! Having trouble with Nokogiri so I'm throwing that POS out, but I'm not sure what's happening with the xml parsing... I don't really know any xpath so I don't know if this is a bug, if it's expected behavior or if the xml is just messed up
<maloik>
care to take a look?
<whitequark>
yorick 'the xml guy' peterse
<yorickpeterse>
maloik: what?
<yorickpeterse>
maloik: as in, look at what? I'm not seeing any gists
<maloik>
I'll pm you the link of the xml document, see if you spot anything that's off... it's basically a single element
GBrawl has joined #ruby-lang
<maloik>
xml guy to the rescue :-)
allomov_ has joined #ruby-lang
<maloik>
*commits oga to master*
<maloik>
the removal of nokogiri and addition of oga, that is
elia has joined #ruby-lang
rahul_j has joined #ruby-lang
<yorickpeterse>
\0/
<yorickpeterse>
middleman is also looking into using it apparently
face has quit [Ping timeout: 250 seconds]
face has joined #ruby-lang
<yorickpeterse>
and found a thing Nokogiri actually doesn't handle
<yorickpeterse>
it shits itself when you use the xpath query "*:string" (where "string" would be an element name)
<yorickpeterse>
Whereas Oga supports that just fine, so I got that going for me
<maloik>
:-)
kyb3r_ has quit [Read error: Connection reset by peer]
segy has quit [Excess Flood]
segy has joined #ruby-lang
<yorickpeterse>
Ah, always nice to get Emails from the government
<yorickpeterse>
"You have to pay back 452 Euros because fuck yo health insurance"
allomov_ has quit [Remote host closed the connection]
ender|dkm has joined #ruby-lang
JaRe_Ax has joined #ruby-lang
jonathan_alban has joined #ruby-lang
jonathan_alban has quit [Client Quit]
JaReAx has quit [Ping timeout: 255 seconds]
JaRe_Ax is now known as JaReAx
ender|dkm has quit [Ping timeout: 255 seconds]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
tbuehlmann has quit [Remote host closed the connection]
GBrawl has quit [Quit: (null)]
GBrawl has joined #ruby-lang
ikrima has quit [Ping timeout: 260 seconds]
wm3|away has joined #ruby-lang
yfeldblum has joined #ruby-lang
jasiek has joined #ruby-lang
wm3|away is now known as workmad3
arBmind has joined #ruby-lang
Cyrano has quit [Quit: Cyrano]
allomov_ has joined #ruby-lang
relix_ has joined #ruby-lang
Miphix has quit [Quit: Leaving]
relix has quit [Ping timeout: 260 seconds]
banister is now known as banisterfiend
stamina has joined #ruby-lang
Miphix has joined #ruby-lang
pastuxso has quit [Quit: Connection closed for inactivity]
rahul_j_ has joined #ruby-lang
ender|dkm has joined #ruby-lang
Atttwww has quit [Ping timeout: 272 seconds]
rahul_j has quit [Ping timeout: 260 seconds]
rahul_j_ is now known as rahul_j
ender|dkm has quit [Ping timeout: 255 seconds]
jhass|off is now known as jhass
mreq has quit [Ping timeout: 265 seconds]
Aova is now known as A0v4
gldnbear has joined #ruby-lang
gldnbear has left #ruby-lang [#ruby-lang]
GBrawl has quit [Quit: (null)]
qba73 has quit [Remote host closed the connection]
jxport_ is now known as jxport
qba73 has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki_ has joined #ruby-lang
tkuchiki_ has quit [Ping timeout: 255 seconds]
arBmind has quit [Quit: Leaving.]
charliesome has quit [Read error: Connection reset by peer]
charliesome has joined #ruby-lang
q_leonetti has quit [Quit: q_leonetti]
chills42 has joined #ruby-lang
tbuehlmann has joined #ruby-lang
NoNMaDDeN has quit [Remote host closed the connection]
ldnunes has joined #ruby-lang
Voker57 has quit [Ping timeout: 250 seconds]
ender|dkm has joined #ruby-lang
karamazov has joined #ruby-lang
karamazov is now known as a_rand_user
schaerli has quit [Remote host closed the connection]
ender|dkm has quit [Ping timeout: 255 seconds]
workmad3 is now known as wm3|away
schaerli has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
NoNMaDDeN has joined #ruby-lang
Voker57 has joined #ruby-lang
rahul_j has joined #ruby-lang
kiddorails has joined #ruby-lang
vondruch has quit [Ping timeout: 260 seconds]
q_leonetti has joined #ruby-lang
user12345 has joined #ruby-lang
user12345 has left #ruby-lang [#ruby-lang]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pastuxso has joined #ruby-lang
scampbell has joined #ruby-lang
kiddorails has quit [Remote host closed the connection]
wm3|away has quit [Ping timeout: 260 seconds]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
yfeldblum has quit [Ping timeout: 272 seconds]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
ender|dkm has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
cornerma1 has joined #ruby-lang
banister has quit [Max SendQ exceeded]
rcvalle has joined #ruby-lang
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
tbuehlmann has quit [Quit: Leaving]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
cornerman has quit [Ping timeout: 258 seconds]
cornerma1 is now known as cornerman
ender|dkm has quit [Ping timeout: 255 seconds]
kiddorails has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
banister has joined #ruby-lang
<yorickpeterse>
I think I might've asked this in the past, but does anybody know of a decent documentation tool (for an API) that 1) supports some sane markup language (markdown, textile, etc) 2) has built-in searching ?
<yorickpeterse>
Optional 3) self hosted so we can smack it in Git
<yorickpeterse>
There are some tools like readme.io but meh
<yorickpeterse>
Though I have to say that readme.io so far is the nicest solution by the looks of it
<yorickpeterse>
We're currently using Swagger but that's for low-level API docs, not really the general sense of things
<maloik>
hmmm I remember seeing one a while back, damn what was that
<yorickpeterse>
and I had to hack Markdown into that, as well as hacking in support for filtering docs based on permissions
benlovel1 has joined #ruby-lang
benlovell has quit [Ping timeout: 245 seconds]
banister is now known as banisterfiend
Forgetful_Lion has quit [Remote host closed the connection]
rahul_j has joined #ruby-lang
<maloik>
in other news, my dev environment is just completely screwed up
[spoiler] has joined #ruby-lang
<maloik>
I don't even know what's going on, apparently installing chruby and bundler wasn't enough
<maloik>
rails s is segfaulting, pow is looking for gems in the wrong place
<maloik>
I don't even :(
toretore has joined #ruby-lang
spastorino has joined #ruby-lang
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
goodcodeguy has joined #ruby-lang
marr has joined #ruby-lang
arBmind has joined #ruby-lang
mkaesz has joined #ruby-lang
a_rand_user has left #ruby-lang [#ruby-lang]
chouhoulis has joined #ruby-lang
banister has joined #ruby-lang
Squarepy has joined #ruby-lang
FooMunki has joined #ruby-lang
benlovell has joined #ruby-lang
benlovel1 has quit [Read error: Connection reset by peer]
miqui has joined #ruby-lang
gss has joined #ruby-lang
vondruch has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
jgpawletko has joined #ruby-lang
nertzy has quit [Read error: No route to host]
willywos has joined #ruby-lang
rolfb has joined #ruby-lang
nertzy has joined #ruby-lang
hellangel7 has joined #ruby-lang
gss has quit []
ender|dkm has joined #ruby-lang
yfeldblum has joined #ruby-lang
rahul_j has joined #ruby-lang
jimbach has joined #ruby-lang
ender|dkm has quit [Ping timeout: 255 seconds]
jimbach_ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 272 seconds]
jimbach has quit [Ping timeout: 245 seconds]
mbj has joined #ruby-lang
oleo has joined #ruby-lang
rustypigeon has joined #ruby-lang
charliesome has quit [Quit: zzz]
malconis has joined #ruby-lang
benlovell has quit [Ping timeout: 272 seconds]
wm3|away has joined #ruby-lang
kiddorails has quit [Remote host closed the connection]
wm3|away is now known as workmad3
hellangel7 has quit [Remote host closed the connection]
kiddorails has joined #ruby-lang
Miphix has quit [Quit: Leaving]
mreq has joined #ruby-lang
rolfb has quit [Quit: Leaving...]
nertzy has quit [Quit: Leaving]
nertzy has joined #ruby-lang
chills42 has quit [Remote host closed the connection]
chills42 has joined #ruby-lang
kiddorails has quit [Ping timeout: 272 seconds]
kiddorails has joined #ruby-lang
Miphix has joined #ruby-lang
chills42 has quit [Ping timeout: 240 seconds]
mattyohe has joined #ruby-lang
mbj has quit [Quit: leaving]
rahul_j has quit [Quit: rahul_j]
loincloth has joined #ruby-lang
chills42 has joined #ruby-lang
ender|dkm has joined #ruby-lang
gss has joined #ruby-lang
whippythellama has joined #ruby-lang
robbyoconnor has quit [Read error: No route to host]
robbyoconnor has joined #ruby-lang
bantic has joined #ruby-lang
bradcliffe has joined #ruby-lang
shinnya has joined #ruby-lang
nertzy has quit [Quit: Leaving]
nertzy has joined #ruby-lang
bradcliffe has quit [Client Quit]
SuMo_D has joined #ruby-lang
seank__ has quit [Remote host closed the connection]
enebo has joined #ruby-lang
seank_ has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
stardiviner has joined #ruby-lang
<maloik>
irb
<maloik>
:<
bradcliffe has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
rahul_j has joined #ruby-lang
apeiros has joined #ruby-lang
simi has quit [Ping timeout: 245 seconds]
q_leonetti has quit [Quit: q_leonetti]
tenderlove has joined #ruby-lang
apeiros has quit [Ping timeout: 272 seconds]
benlovell has joined #ruby-lang
AKASkip has quit [Ping timeout: 246 seconds]
knu has quit [Ping timeout: 260 seconds]
dwknoxy has joined #ruby-lang
knu has joined #ruby-lang
mskaesz has joined #ruby-lang
mkaesz has quit [Read error: No route to host]
klmlfl has joined #ruby-lang
stardiviner has quit [Ping timeout: 244 seconds]
ender|dkm has quit [Ping timeout: 255 seconds]
Pistos has joined #ruby-lang
ta has quit [Remote host closed the connection]
<Pistos>
Wondering if there's a way to do this: Create a module such that, when it is included by a class, constructing a new instance of that class executes some extra post-construction code which is defined in the module.
<yorickpeterse>
You can probably use Module.included for that
<yorickpeterse>
e.g.
<yorickpeterse>
errr wait, you don't even need that
<yorickpeterse>
if order doesn't matter the module can just define #initialize
<workmad3>
Pistos: in the module 'def initialize; <extra stuff>; end'
<workmad3>
Pistos: although that requires people including the class to call 'super' in their initialize if they want to write their own constructor and still hit yours
<yorickpeterse>
Otherwise you'd have to include the module _after_ #initialize is defined
<workmad3>
or prepend the module
<workmad3>
yorickpeterse: hmm... if the class defines an initialize, it doesn't matter where the include is
<maloik>
I'd have said, include the module, in the module define initialize, call super, then call your "post initialize" code there
<maloik>
that should do the trick, no?
<workmad3>
maloik: if the class defines its own initialize, that will shadow the module's initialize
<maloik>
oh, hmm
apeiros has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
shinnya has quit [Ping timeout: 250 seconds]
<workmad3>
maloik: hence my comment about using prepend ;)
kirin` has quit [Ping timeout: 260 seconds]
<Pistos>
Thanks for the responses, guys.
<Pistos>
The order doesn't matter, it can be pre or post construction.
<Pistos>
I would prefer not requiring includers to call super.
<Pistos>
The reason I'm doing this is to reduce some verbosity in the including classes.
kirin` has joined #ruby-lang
<Pistos>
If they have to be verbose in the constructor anyway ("super"), then it defeats the purpose.
<workmad3>
Pistos: they only need that if the class still has a constructor
<Pistos>
Idealling, I just want them to have to use the one line "include MagicModule", and that's it.
<Pistos>
workmad3: It almost always will int his case.
<Pistos>
So, I want to let them do whatever they want in their constructors,
<Pistos>
but at construction time, instantiate some other var.
bradcliffe has quit [Remote host closed the connection]
<Pistos>
(defined in the module)
<yorickpeterse>
workmad3: yes it does I believe
<Pistos>
It doesn't have to be include. Could be extend, prepend, whatever.
<yorickpeterse>
if you include the module first, then define #initialize in your own class it will overwrite the module version
<yorickpeterse>
_unless_ you call super
<Pistos>
The point is to collapse several wet lines in constructors into one DRY "include/extend/whatever" line.
<workmad3>
yorickpeterse: no matter where you define it, you'll shadow the module's initialize
<workmad3>
yorickpeterse: just like any other module method
<workmad3>
yorickpeterse: include inserts the module into the method lookup after the class itself, after all... so any method on the class, no matter when it was defined, will shadow the same-named method on the module
araujo has joined #ruby-lang
slawrence00 has joined #ruby-lang
<workmad3>
Pistos: if you're ok with a prepend, then you can do 'def initialize(*args); <whatever>; super; end' in the module
<workmad3>
Pistos: and then 'prepend MagicModule'
<Pistos>
workmad3: Thanks, I will try it.
<Pistos>
workmad3: You're a genius / well-read person. That worked.
<Pistos>
Thank you.
<yorickpeterse>
workmad3: yeah, I was hoping there was something like Module.append to work around that
gss has quit []
rahul_j has joined #ruby-lang
<yorickpeterse>
but apparently there's only Module.prepend
<workmad3>
Pistos: if you wanted, you could try to figure out the appropriate metaprogramming so that the module can be done with just 'include'
<Pistos>
workmad3: Nah, I'll just tell the devs to type this keyword instead of that keyword, it makes no difference. :)
<Pistos>
Same number of characters, even, heh.
<maloik>
you could possibly even try looking at the after_initialize code in Rails
<maloik>
see how that's done
<workmad3>
Pistos: but it's quite a bit more convoluted, and involves using the module's self.included to add a method_added hook to the class that checks if the added method is called 'initialize' and, if it is, aliases it to a different name and rewrites initialize to call your module's initialize and the newly defined one
<workmad3>
maloik: that breaks if you define your own initialize
<maloik>
no I mean just look at the source code to see how they do it
<maloik>
(I don't know how it's implemented)
<workmad3>
maloik: it's the same implementation as any of their other callbacks
<maloik>
I don't know any of them :D
yfeldblum has joined #ruby-lang
<workmad3>
maloik: namely, 'after_initialize' registers a method name or proc as a callback, and at the end of ActiveRecord::Base#initialize, it invokes the method to call all the after_initialize callbacks
mskaesz has quit [Remote host closed the connection]
<workmad3>
which is something, I guess... you could pull in ActiveModel::Callbacks and use that
<maloik>
aha
<workmad3>
and then implementors would use an after_initializer (or similar) method to register their callbacks, and the module would have an initialize and invoke the callbacks
ta has joined #ruby-lang
<workmad3>
or implement your own, simple version of that in under 10 lines
<Pistos>
No, I do not want to pull in ActiveAnything
<Pistos>
This isn't even a Rails app.
<maloik>
I didn't say pull it in
<maloik>
I said look at the source code, perhaps get some ideas
<workmad3>
or hell, tell people using the module to define their own initialize as 'def after_initialize(...)' and then in your module do 'def initialize; <whatever>; after_initialize(*args) if defined?(after_initialize); end'
<Pistos>
I'm satisfied with the prepend approach/solution.
<workmad3>
Pistos: I like to figure out multiple solutions
<workmad3>
Pistos: annoyingly, my mind is still figuring out the details for a 'method_added' hook that redefines initialize if it's ever defined on the class :)
kiddorails has quit [Remote host closed the connection]
bradcliffe has joined #ruby-lang
yfeldblum has quit [Ping timeout: 260 seconds]
<Pistos>
:)
<Pistos>
Okay, you go have fun with that Rubik's cube. :)
ender|dkm has joined #ruby-lang
ikrima has joined #ruby-lang
chills42 has quit [Remote host closed the connection]
chills42 has joined #ruby-lang
jimbach has joined #ruby-lang
schaerli has joined #ruby-lang
jimbach_ has quit [Ping timeout: 265 seconds]
bradcliffe has quit [Remote host closed the connection]
schaerli_ has joined #ruby-lang
|jemc| has joined #ruby-lang
solars has quit [Ping timeout: 260 seconds]
ikrima has quit [Ping timeout: 265 seconds]
ta has quit [Remote host closed the connection]
chills42 has quit [Ping timeout: 260 seconds]
ender|dkm has quit [Ping timeout: 255 seconds]
schaerli has quit [Ping timeout: 265 seconds]
havenwood has joined #ruby-lang
mreq has quit [Ping timeout: 260 seconds]
tenderlove has quit [Quit: Leaving...]
SuMo_D has quit [Remote host closed the connection]
chills42 has joined #ruby-lang
SuMo_D has joined #ruby-lang
benlovell has quit [Ping timeout: 260 seconds]
tenderlove has joined #ruby-lang
SuMo_D has quit [Ping timeout: 244 seconds]
loincloth has quit [Remote host closed the connection]
loincloth has joined #ruby-lang
SuMo_D has joined #ruby-lang
q_leonetti has joined #ruby-lang
qba73 has quit []
GBrawl has joined #ruby-lang
symm- has joined #ruby-lang
mreq has joined #ruby-lang
carldeantucker has joined #ruby-lang
GBrawl has quit [Quit: (null)]
ender|dkm has joined #ruby-lang
kalopsian has joined #ruby-lang
kalopsian has quit [Client Quit]
kalopsian has joined #ruby-lang
<carldeantucker>
Hi guys, quick thor question, when using thor if I require a class that I have created, the required class is called but thor bombs out complaining about the required gems in the required class not being found
Squarepy has quit [Ping timeout: 240 seconds]
<ljarvis>
carldeantucker: what's the question?
Pistos has left #ruby-lang ["WeeChat 0.4.3"]
kalopsian has quit [Client Quit]
kalopsia1 has joined #ruby-lang
<carldeantucker>
sorry ljarvis what I was wondering is how can I require my class and not have it complain about the required gems within that class?
<ljarvis>
carldeantucker: install the dependencies that class requires, or rescue the exception and print a more useful error message
<carldeantucker>
ljarvis, the gems are installed but I get a cannot load such file exception
ender|dkm has quit [Ping timeout: 255 seconds]
<carldeantucker>
ljarvis so class a requires parallel, in thor I say require class a and it complains it cannot load parallel
quimrstorres has joined #ruby-lang
<ljarvis>
carldeantucker: can you show some code and the error backtrace?
simi has joined #ruby-lang
<carldeantucker>
ljarvis okay just let me copy to pastebin
kiddorails has quit [Remote host closed the connection]
hellangel7 has quit [Max SendQ exceeded]
kiddorails has joined #ruby-lang
hellangel7 has joined #ruby-lang
kiddorails has quit [Remote host closed the connection]
mikecmpbll has quit [Ping timeout: 245 seconds]
rustypigeon has quit [Remote host closed the connection]
tenderlove has quit [Remote host closed the connection]
kiddorails has joined #ruby-lang
carldeantucker has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
dangerousdave has joined #ruby-lang
kiddorails has quit [Ping timeout: 246 seconds]
quimrstorres has joined #ruby-lang
<jkyle>
I've noticed installing a gem on centos puts them in /root/.gem/... how can I install these system wide
palmertime has joined #ruby-lang
relix_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
q_leonetti has quit [Quit: q_leonetti]
<yxhuvud>
jkyle: centos (and fedora/redhat) traditionally does some very weird crap when it comes to gems. You might be better off asking in #centos.
<jkyle>
I did, I wasn't sure (but suspected) it might be a "weird shit centos does" situation
<jkyle>
my question there was a nice way of asking if they were doing weird shit
mistym has joined #ruby-lang
<yxhuvud>
normally, rubygems only do a local install if you don't have write permissions for the global location, which obviously isn't the case here.
<jkyle>
that's what I thought, I'm not a big ruby user though so wasn't sure if something'd changed
thagomizer has joined #ruby-lang
stef204 has joined #ruby-lang
kiddorails has joined #ruby-lang
<yxhuvud>
it may depend on centos version though. I believe later versions has created a second global location to not mix global from packages and manually installed
<jhass>
jkyle: gem env and sudo gem env might give some hints
emmesswhy has joined #ruby-lang
symm-_ has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
symm- has quit [Ping timeout: 255 seconds]
ender|dkm has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
rkowalick has joined #ruby-lang
mreq has joined #ruby-lang
hellangel7 has quit [Max SendQ exceeded]
AKASkip has joined #ruby-lang
jbardin has joined #ruby-lang
ender|dkm has quit [Ping timeout: 255 seconds]
skade has joined #ruby-lang
yfeldblum has joined #ruby-lang
symm-_ has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby-lang
ender|dkm has joined #ruby-lang
yfeldblum has quit [Ping timeout: 255 seconds]
symm- has joined #ruby-lang
tbuehlmann has joined #ruby-lang
nhasis has joined #ruby-lang
rkowalick has quit [Quit: Lost terminal]
workmad3 is now known as wm3|away
goodcodeguy has joined #ruby-lang
ender|dkm has quit [Ping timeout: 255 seconds]
solars has joined #ruby-lang
oleo is now known as Guest5008
oleo__ has joined #ruby-lang
dm78 has joined #ruby-lang
Guest5008 has quit [Ping timeout: 240 seconds]
oleo__ has quit [Read error: Connection reset by peer]
oleo__ has joined #ruby-lang
oleo__ is now known as oleo
rkowalick has joined #ruby-lang
bantic has quit [Quit: bantic]
jimbach has quit [Remote host closed the connection]
danijoo has joined #ruby-lang
t_ has quit [Ping timeout: 265 seconds]
t_ has joined #ruby-lang
ender|dkm has joined #ruby-lang
kalopsia1 has quit [Ping timeout: 245 seconds]
rkowalick has quit [Quit: leaving]
ikrima has joined #ruby-lang
danijoo has quit [Quit: Leaving...]
ender|dkm has quit [Ping timeout: 255 seconds]
danijoo has joined #ruby-lang
brianpWins has joined #ruby-lang
mkaesz has joined #ruby-lang
symm- has quit [Read error: Connection reset by peer]
miqui has quit [Remote host closed the connection]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bantic has joined #ruby-lang
kalopsian has joined #ruby-lang
yfeldblum has quit [Ping timeout: 265 seconds]
chouhoul_ has joined #ruby-lang
malconis has joined #ruby-lang
sarkyniin has joined #ruby-lang
symm- has quit [Read error: Connection reset by peer]
chouhoulis has quit [Ping timeout: 240 seconds]
Blaguvest has quit []
nertzy has quit [Quit: This computer has gone to sleep]
symm- has joined #ruby-lang
SuMo_D_ has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
nhasis has joined #ruby-lang
symm- has quit [Read error: Connection reset by peer]
relix has joined #ruby-lang
malconis has quit [Remote host closed the connection]
bantic has quit [Quit: bantic]
robbyoconnor has quit [Ping timeout: 240 seconds]
symm- has joined #ruby-lang
malconis has joined #ruby-lang
SuMo_D has quit [Ping timeout: 245 seconds]
imkmf has joined #ruby-lang
quimrstorres has quit [Remote host closed the connection]
allomov_ has quit [Remote host closed the connection]
<nhasis>
exit
nhasis has quit [Quit: Lost terminal]
<yorickpeterse>
heh
symm- has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby-lang
symm- has joined #ruby-lang
goodcodeguy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bantic has joined #ruby-lang
goodcodeguy has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
ruurd has joined #ruby-lang
ender|dkm has joined #ruby-lang
bradcliffe has joined #ruby-lang
Squarepy has quit [Quit: Leaving]
bradcliffe has quit [Remote host closed the connection]
ta has joined #ruby-lang
ender|dkm has quit [Ping timeout: 255 seconds]
chouhoulis has joined #ruby-lang
chouhoul_ has quit [Read error: Connection reset by peer]
klmlfl has quit [Remote host closed the connection]
bradcliffe has joined #ruby-lang
bradcliffe has quit [Remote host closed the connection]
fragamus has joined #ruby-lang
jimbach has joined #ruby-lang
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jimbach has quit [Remote host closed the connection]
jimbach has joined #ruby-lang
bin7me has joined #ruby-lang
JohnBat26 has joined #ruby-lang
mattyohe has quit [Quit: Connection closed for inactivity]
GBrawl has quit [Quit: (null)]
stamina has quit [Ping timeout: 240 seconds]
koderok has joined #ruby-lang
klmlfl has joined #ruby-lang
koderok has quit [Remote host closed the connection]
fragamus has quit [Quit: Computer has gone to sleep.]
ledestin_ has joined #ruby-lang
j4cknewt has joined #ruby-lang
elia has joined #ruby-lang
chills42 has quit [Remote host closed the connection]
chills42 has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
ledestin has quit [Ping timeout: 272 seconds]
ledestin_ is now known as ledestin
musl has quit [Quit: WeeChat 0.4.3]
ta has quit [Quit: Leaving...]
dangerousdave has joined #ruby-lang
chills42 has quit [Ping timeout: 245 seconds]
ta has joined #ruby-lang
tevans has joined #ruby-lang
loincloth has joined #ruby-lang
<tevans>
Random question: has anybody heard of a good equivalent of a java (yes, blech, I know) app server for ruby?
<tevans>
By this I mean: I'm using a number of rabbit mq services
<tevans>
Currently managing the lifecycle of them with bluepill
rahul_j has quit [Quit: rahul_j]
<tevans>
I'd like some sort of process handler which is more easily configurable, and gives me a kind of framework for developing rabbit mq services
<darix>
tevans: that sounds pretty decent already
<tevans>
I've checked out jackelope, but it doesn't seem to work the same way I would like - I'm currently relying heavily on rbenv environments and I prefer processes to threads
<tevans>
Right now I've basically got a number of raw ruby script processes running out of the same bluepill config, that die early and log everything to the bluepill out
<tevans>
But I'd like something which gave me a little bit more control over how many processes to spin up, etc, without having to hand hack the pill
<darix>
tevans: i saw some people trying to launch sidekiq workers from unicorn
<darix>
but i am not sure that worked well
<darix>
anyway
<tevans>
Yeah, unicorn seemed like a not terrible way to manage it
<darix>
unicorn has the nice feature that you can add/remove workers by sending signals
<tevans>
It seems like the right model for process expansion/contraction
q_leonetti has joined #ruby-lang
stamina has joined #ruby-lang
stamina has quit [Client Quit]
<tevans>
But given the fork model, would you want one unicorn per, let's call it, 'worker template' ?
kiddorails has quit [Remote host closed the connection]
<darix>
probably
<tevans>
I also have questions about how frequently forking is invoked and what will trigger a kill to my child procs from the monitor (some of my rabbit tasks take A WHILE)
<darix>
tevans: and put unicorn under supervision by e.g. runit or systemd
<tevans>
Maybe I don't understand the unicorn internal
SuMo_D has joined #ruby-lang
<tevans>
internals* well
<tevans>
hm.. that would work, I don't mind putting up one 'corn per worker with bluepill - it's mainly having to edit the darn pill when I want to add/contract processes
yfeldblum has joined #ruby-lang
<tevans>
I guess I really might need to get an understanding of: 1) How/when unicorn decides to kill it's workers for taking to long 2) How unicorn decides when a new worker should be forked to meet demand
<darix>
tevans: given your rabbitmq workers are not handling webrequests strictly
<tevans>
3) if there is a way to dovetail unicorn's proc/spawn/fork model to keep the same outs/errs provided by bluepill, as having control over where logs flow to is one of the major reason I'm using bluepill
<darix>
unicorn might never kill them
<darix>
but the timeout is configurable. if the webapp doesnt answer in X seconds the process gets killed
arBmind has joined #ruby-lang
kiddorails has joined #ruby-lang
<tevans>
Is the spawning of a new process somehow tied to the depth of the shared request queue/socket?