ChanServ changed the topic of #ruby-lang to: Ruby 1.9.3-p125: http://ruby-lang.org | Paste >3 lines of text on http://pastie.org or use a gist
chimkan has quit [Quit: chimkan]
jnoon has quit []
bluepojo has quit [Quit: Leaving.]
voker57 has joined #ruby-lang
bluepojo has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 252 seconds]
jnoon has joined #ruby-lang
bluepojo has quit [Client Quit]
BigO has quit [Remote host closed the connection]
BigO has joined #ruby-lang
solars has quit [Ping timeout: 265 seconds]
havenn has joined #ruby-lang
gsav has joined #ruby-lang
robbyoconnor has joined #ruby-lang
spuk has joined #ruby-lang
BlaXpirit has quit [Quit: Quit Konversation]
<zenspider> rawr
<zenspider> huh... why did my flyspell-prog-mode get removed for my ruby hook?
<zenspider> btw emacsers... if you haven't found this beauty yet... you should try it out
solars has joined #ruby-lang
artOfWar has joined #ruby-lang
thone has joined #ruby-lang
thone_ has quit [Ping timeout: 252 seconds]
artOfWar has quit [Remote host closed the connection]
wyhaines has joined #ruby-lang
qwerxy has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
gregmore_ has quit [Ping timeout: 260 seconds]
gsav has quit [Read error: Connection reset by peer]
havenn has quit [Remote host closed the connection]
BigO has quit [Remote host closed the connection]
m3nd3s has quit [Remote host closed the connection]
rsl has joined #ruby-lang
anannie has joined #ruby-lang
methods has joined #ruby-lang
methods has left #ruby-lang [#ruby-lang]
nazty has quit [Quit: Leaving]
wyhaines has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
facest has quit [Read error: No route to host]
KA_ has quit [Quit: KA_]
KA_ has joined #ruby-lang
joast has joined #ruby-lang
postmodern has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
qwerxy has quit [Quit: offski]
jbsan has quit [Quit: jbsan]
jbsan has joined #ruby-lang
KA_ has quit [Quit: KA_]
KA_ has joined #ruby-lang
havenn has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
wyhaines has quit [Remote host closed the connection]
RandyInLA_ has joined #ruby-lang
kurko_ has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
havenn_ has joined #ruby-lang
RandyInLA has quit [Ping timeout: 252 seconds]
RandyInLA_ is now known as RandyInLA
havenn has quit [Ping timeout: 244 seconds]
BigO has joined #ruby-lang
kentos has quit [Quit: Leaving]
gnufied has joined #ruby-lang
jashank has quit [Changing host]
jashank has joined #ruby-lang
jxie has quit [Quit: leaving]
workmad3 has quit [Ping timeout: 276 seconds]
apeiros_ has joined #ruby-lang
svyatov has quit [Quit: svyatov]
dhruvasagar has quit [Ping timeout: 255 seconds]
dhruvasagar has joined #ruby-lang
apeiros_ has quit [Ping timeout: 264 seconds]
havenn_ has quit [Remote host closed the connection]
BigO has quit [Remote host closed the connection]
mupilot has joined #ruby-lang
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby-lang
havenn has joined #ruby-lang
dejongge has joined #ruby-lang
aetcore has quit [Remote host closed the connection]
lcdhoffman has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
brianpWins has joined #ruby-lang
Guest13066 has left #ruby-lang [#ruby-lang]
steez has joined #ruby-lang
apeiros_ has joined #ruby-lang
<naquad> is there any gem able to draw me a text table with ability to set it max width?
<havenn> naquad: An HTML table? An image? What are you trying to do?
<naquad> havenn, i need to generate a table in plain txt file
<naquad> and i need to give it max width somehow (so it would fit in 80 chars)
xyzodiac has quit [Quit: Textual IRC Client: www.textualapp.com]
apeiros_ has quit [Ping timeout: 244 seconds]
<naquad> havenn, thank you!
<havenn> naquad: If You want and ascii art table of a given width, than terminal-table gem is the way to go! :)
<havenn> s/You want and/what you want is an
<naquad> i'm already going nuts here. i wanted to make a php reference in vim help format so i could browse it directly from editor, but the trick is that PhD (their documentation tool) is completely undocumented (what an irony :\) and i can't extend it. i thought to write my own parser in php, but as it finds out phps bindings to libxml2 are uncapable to resolve unknown entities through user code (there's such handler, but its never called). now i hope ruby will
<naquad> save me and i'll finally to this thing
toretore has quit [Quit: Leaving]
<zzak> i want to help koichi-san with the tracepoint docs
ddd has joined #ruby-lang
areil has joined #ruby-lang
zmack has joined #ruby-lang
KA_ has quit [Quit: KA_]
<drbrain> zzak: do it!
kurko_ has quit [Quit: Computer has gone to sleep.]
dhruvasagar has quit [Ping timeout: 265 seconds]
havenn has quit [Remote host closed the connection]
zmack_ has joined #ruby-lang
zmack has quit [Read error: Operation timed out]
methods has joined #ruby-lang
<zzak> :D
<zzak> drbrain: thanks for your work on rdoc
<drbrain> zzak: I'm out of time for adding new things
<r0bgleeson> drbrain: does rdoc support anything other than simple markup?
<r0bgleeson> I was going to add 'yet' but maybe it always has :)
<drbrain> r0bgleeson: 3.12 supports TomDoc, 4.0 will support markdown and rd
<drbrain> 3.12 was supposed to support rd, but I packaged it wrong :/
<r0bgleeson> what is RD again?
<r0bgleeson> rdiscount?
<drbrain> it predates rdoc as a documentation tool
<zzak> ruby document
<r0bgleeson> oh ok
<r0bgleeson> thats cool.
<drbrain> I included it because some rd documentation still exists in ruby's source
apeiros_ has joined #ruby-lang
<zzak> rd is nice for little things
<r0bgleeson> RD looks nice.
<r0bgleeson> drbrain: does rdoc have anything for keeping your documentation DRY?
zmack_ has quit [Remote host closed the connection]
<r0bgleeson> YARD can re-use parts of your documentation if you need it to.
<zzak> there is :includes
<drbrain> r0bgleeson: you can reference documentation elsewhere
<r0bgleeson> drbrain: can I do (see Foo#bar) and see the documentation copied for Foo#bar ?
<r0bgleeson> instead of just {link}.
<drbrain> r0bgleeson: no
<r0bgleeson> ok
<r0bgleeson> not ready for me yet then :)
<drbrain> r0bgleeson: why would you want that?
<r0bgleeson> because I like to re-use the documentation I have, a link seems wasteful if i can have my tool do the copying for me.
<zzak> r0bgleeson: if there's a piece you want to reuse you can put it in a separate file and include it where you want
{\7Y} has joined #ruby-lang
<drbrain> r0bgleeson: but, why do you want to re-use documentation?
<r0bgleeson> zzak: sure but thats sort of a poor mans solution.
<zzak> ri also supports files now too
charliesome has joined #ruby-lang
<r0bgleeson> drbrain: because some method signatures can be very similar and share arguments.
<r0bgleeson> lets see if i can find you an example..
<drbrain> r0bgleeson: it sounds like a problem of design, then, I'd love an example
<zzak> not sure how include is poor mans, you use require dont you?
<drbrain> zzak: compared to what he uses yard for, it is definitely poor-mans
<r0bgleeson> there we go
jxie has joined #ruby-lang
<r0bgleeson> and no, that code is not badly designed, look for yourself
<r0bgleeson> (grep for 'see')
<zzak> im not very familiar with yard :(
<{\7Y}> i discovered infinite generators with Enumerator today, best ruby feature i've found so far
<drbrain> yeah
jhn has joined #ruby-lang
<r0bgleeson> it copies the documentation because spawn & spawn! share the same arguments & that doesn't infer the code is poorly designed at all.
<drbrain> r0bgleeson: but you can't read this if you're not intimately familiar with yard
<r0bgleeson> thats true
apeiros_ has quit [Ping timeout: 260 seconds]
<r0bgleeson> i agree there
<r0bgleeson> it has a few confusing tags.
<r0bgleeson> @overload being one.
<r0bgleeson> otherwise it is pretty easy to understand.
lcdhoffman has quit [Quit: lcdhoffman]
<drbrain> r0bgleeson: I like the TomDoc way the best… "here are some guidelines, but don't try too hard to follow them"
<drbrain> and, "we'll try to figure out what you mean"
<r0bgleeson> yeah.
<r0bgleeson> i dont think it covers as many cases as YARD does but for the simple case im sure TomDoc is great.
<jhn> Can someone recommend a good library to navigate websites? I was looking into watir but wanted to see what people think first.
<r0bgleeson> jhn: mechanize
<drbrain> r0bgleeson: with respect to design, it seems odd that fork would raise ArgumentError but is not documented
<zzak> drbrain: +1 documentation guidelines should be respected but not enforced
<r0bgleeson> drbrain: good catch but again that has nothing to do with design, fork() is a private method, the public interface is spawn & spawn!, both of those methods should document what can be raised, though.
<jhn> Basically I just want to go to fill out a form and read in the results.
<jhn> r0bgleeson: Thanks, I'll take a look at it.
<r0bgleeson> drbrain: I can do that with (see IProcess#initialize) :P
<drbrain> r0bgleeson: switching *args to number_of = 1, obj = nil would fix that, despite the duplication
<r0bgleeson> drbrain: I guess I could do that but what has that got to do the documentation?
<drbrain> r0bgleeson: you'll get the exception from a documented method
<r0bgleeson> you can change the argument list,ok, great, but how do i keep the documentation DRY?
<drbrain> r0bgleeson: separate issues
<r0bgleeson> because *args or number_of=…, it makes no difference.
<r0bgleeson> what issue are you talking about?
<drbrain> r0bgleeson: ruby -e 'def a(*a) b(*a) end; def b(a) end; a(1, 2)'
<drbrain> vs:
<drbrain> ruby -e 'def a(a) b(a) end; def b(a) end; a(1, 2)'
<r0bgleeson> yeah, i get it
<r0bgleeson> but what has it got to do with documentation?
<r0bgleeson> you seemed to go off from what we were talking about
<drbrain> r0bgleeson: as a user unfamiliar with your library I'll look at fork before spawn
<r0bgleeson> if you read the code on GitHub, ok
<r0bgleeson> otherwise, no you wont
<r0bgleeson> private methods are (by default) undocumented by yard.
<zzak> kitties first time with catnip, hes drooling everywhere and snorting like a pig while he rolls around violently lolol
<r0bgleeson> it uses scope rules to infer what it should and shouldnt show
<r0bgleeson> private methods are one of those
<r0bgleeson> instead of # :nodoc: hacks.
<drbrain> and when I go looking for fork (where the error came from) I won't see anything
<drbrain> r0bgleeson: rdoc supports hiding documentation by visibility, the default hides private methods
<r0bgleeson> you dont need to go looking for fork
<r0bgleeson> the ONLY thing you should care about is the public interface
<r0bgleeson> i should document what i raise(ArgumentError)
<r0bgleeson> but what method it raises in does not matter one bit
{\7Y} is now known as \xDE\xAD\xC0\xDE
KA_ has joined #ruby-lang
ddd has quit [Quit: Leaving.]
mwjcomputing has quit [Ping timeout: 252 seconds]
apeiros_ has joined #ruby-lang
rsl has quit [Quit: Computer has gone to sleep.]
wyhaines has joined #ruby-lang
apeiros_ has quit [Ping timeout: 264 seconds]
mistym has quit [Remote host closed the connection]
gregmoreno has joined #ruby-lang
mwjcomputing has joined #ruby-lang
havenn has joined #ruby-lang
ddd has joined #ruby-lang
havenn_ has joined #ruby-lang
KA_ has quit [Quit: KA_]
havenn has quit [Ping timeout: 246 seconds]
KA_ has joined #ruby-lang
mwjcomputing has quit [Ping timeout: 240 seconds]
gregmore_ has joined #ruby-lang
gregmoreno has quit [Ping timeout: 252 seconds]
jxie has quit [Ping timeout: 244 seconds]
jxie has joined #ruby-lang
havenn_ has quit [Remote host closed the connection]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
havenn has joined #ruby-lang
apeiros_ has joined #ruby-lang
havenn has quit [Ping timeout: 244 seconds]
blazes816 has quit [Quit: blazes816]
dejongge has quit [Ping timeout: 255 seconds]
Nisstyre-laptop has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
apeiros_ has quit [Ping timeout: 264 seconds]
havenn has joined #ruby-lang
cantonic has joined #ruby-lang
VegetableSpoon has quit [Ping timeout: 245 seconds]
mars777 has left #ruby-lang [#ruby-lang]
mupilot has quit [Quit: mupilot]
apeiros_ has joined #ruby-lang
tenderlove has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
unsymbol has quit [Ping timeout: 252 seconds]
gregmore_ has quit [Remote host closed the connection]
ryanlecompte has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
unsymbol has joined #ruby-lang
apeiros_ has quit [Ping timeout: 252 seconds]
havenn has quit [Ping timeout: 246 seconds]
rohit has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
Evanescene has joined #ruby-lang
mistym has quit [Remote host closed the connection]
r0bgleeson has quit [Ping timeout: 276 seconds]
gaveen has joined #ruby-lang
apeiros_ has joined #ruby-lang
r0bgleeson has joined #ruby-lang
CaptainJet has quit [Ping timeout: 252 seconds]
CaptainJet has joined #ruby-lang
faces has joined #ruby-lang
apeiros_ has quit [Ping timeout: 252 seconds]
sphera_ has left #ruby-lang [#ruby-lang]
sphera has joined #ruby-lang
sphera has quit [Remote host closed the connection]
stonerfish has quit [Ping timeout: 276 seconds]
havenn has joined #ruby-lang
r0bgleeson has quit [Ping timeout: 256 seconds]
kurko_ has joined #ruby-lang
sush24_ has joined #ruby-lang
banisterfiend has quit [Read error: Connection reset by peer]
s4muel has joined #ruby-lang
thatdutchguy has joined #ruby-lang
iCharlie has joined #ruby-lang
CaptainJet has quit []
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
thatdutchguy has quit [Remote host closed the connection]
rohit has quit [Ping timeout: 244 seconds]
apeiros_ has joined #ruby-lang
stonerfish has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
jhn has quit [Quit: Page closed]
kurko_ has joined #ruby-lang
erintl has joined #ruby-lang
erintl has left #ruby-lang [#ruby-lang]
erintl has joined #ruby-lang
apeiros_ has quit [Ping timeout: 264 seconds]
rohit has joined #ruby-lang
sush24_ has quit [Read error: No route to host]
sush24_ has joined #ruby-lang
methods has quit [Quit: Leaving.]
stonerfish has quit [Quit: Leaving.]
afgeneralist has quit [Ping timeout: 252 seconds]
erintl has left #ruby-lang ["Leaving"]
kurko_ has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby-lang
bluepojo has joined #ruby-lang
sush24_ has quit [Read error: Connection timed out]
sush24_ has joined #ruby-lang
ebouchut has joined #ruby-lang
apeiros_ has joined #ruby-lang
sush24_ has quit [Read error: Connection timed out]
apeiros_ has quit [Ping timeout: 260 seconds]
sush24_ has joined #ruby-lang
sharma__ has joined #ruby-lang
Evanescene has quit [Quit: Instantbird 1.3 -- http://www.instantbird.com]
sush24_ has quit [Ping timeout: 252 seconds]
Evanescene has joined #ruby-lang
kurko_ has quit [Ping timeout: 245 seconds]
kurko_ has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby-lang
sharma__ has quit [Quit: This computer has gone to sleep]
rohit has quit [Quit: Leaving]
apeiros_ has joined #ruby-lang
bluepojo has quit [Quit: Leaving.]
diegoviola has quit [Quit: leaving]
ebouchut has quit [Quit: ebouchut]
diegoviola has joined #ruby-lang
apeiros_ has quit [Ping timeout: 252 seconds]
KA_ has quit [Quit: KA_]
KA_ has joined #ruby-lang
ebouchut has joined #ruby-lang
ebouchut has quit [Read error: Connection reset by peer]
ebouchut has joined #ruby-lang
ebouchut has quit [Read error: Connection reset by peer]
ebouchut has joined #ruby-lang
ebouchut has quit [Read error: Connection reset by peer]
ebouchut has joined #ruby-lang
ebouchut has quit [Read error: Connection reset by peer]
ebouchut has joined #ruby-lang
ebouchut has quit [Read error: Connection reset by peer]
ebouchut has joined #ruby-lang
ebouchut_ has joined #ruby-lang
ebouchut_ has quit [Read error: Connection reset by peer]
ebouchut has quit [Read error: Connection reset by peer]
ebouchut has joined #ruby-lang
ebouchut has quit [Read error: Connection reset by peer]
seanstickle has joined #ruby-lang
ebouchut_ has joined #ruby-lang
ebouchut_ has quit [Read error: Connection reset by peer]
Evanescene has quit [Quit: Instantbird 1.3 -- http://www.instantbird.com]
ebouchut has joined #ruby-lang
ebouchut has quit [Read error: No route to host]
ebouchut has joined #ruby-lang
ebouchut has quit [Read error: Connection reset by peer]
KA_ has quit [Quit: KA_]
sush24_ has joined #ruby-lang
apeiros_ has joined #ruby-lang
dc5ala has joined #ruby-lang
thinkdevcode has quit [Remote host closed the connection]
Nisstyre-laptop has quit [Read error: Operation timed out]
apeiros_ has quit [Ping timeout: 250 seconds]
stardiviner has joined #ruby-lang
RandyInLA has quit [Quit: RandyInLA]
rekky has joined #ruby-lang
iCharlie has quit [Quit: leaving]
grzywacz has joined #ruby-lang
anannie has quit [Ping timeout: 250 seconds]
KA_ has joined #ruby-lang
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
sush24_ has quit [Read error: Connection timed out]
sush24_ has joined #ruby-lang
anannie has joined #ruby-lang
havenn has quit [Ping timeout: 265 seconds]
qwerxy has joined #ruby-lang
rohit has joined #ruby-lang
nyuszika7h has quit [Quit: Here we are, going far to save all that we love - If we give all we've got, we will make it through - Here we are, like a star shining bright on your world - Today, make evil go away!]
nyuszika7h has joined #ruby-lang
workmad3 has joined #ruby-lang
apeiros_ has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby-lang
babinho has quit [Ping timeout: 255 seconds]
apeiros_ has quit [Ping timeout: 248 seconds]
solars has quit [Ping timeout: 264 seconds]
sush24_ has quit [Read error: Connection timed out]
sush24_ has joined #ruby-lang
workmad3 has quit [Ping timeout: 264 seconds]
BlaXpirit has joined #ruby-lang
tonni has quit [Ping timeout: 276 seconds]
ebouchut has joined #ruby-lang
mfn has quit [Quit: WeeChat 0.3.2]
kurko_ has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby-lang
qwerxy has quit [Quit: offski]
ebouchut has quit [Ping timeout: 252 seconds]
justinram has quit [Remote host closed the connection]
sush24_ has quit [Read error: Connection timed out]
sush24_ has joined #ruby-lang
apeiros_ has joined #ruby-lang
adambeynon has joined #ruby-lang
rekky has quit [Quit: rekky]
KA_ has quit [Quit: KA_]
wallerdev has quit [Quit: wallerdev]
qwerxy has joined #ruby-lang
sharma__ has joined #ruby-lang
sush24_ has quit [Ping timeout: 265 seconds]
apeiros_ has quit [Ping timeout: 250 seconds]
vlad_starkov has quit [Remote host closed the connection]
BlaXpirit has quit [Quit: Quit Konversation]
moonglum has joined #ruby-lang
ebouchut has joined #ruby-lang
havenn has joined #ruby-lang
havenn has quit [Ping timeout: 252 seconds]
rekky has joined #ruby-lang
\xDE\xAD\xC0\xDE has quit [Remote host closed the connection]
banisterfiend has joined #ruby-lang
ebouchut has quit [Ping timeout: 252 seconds]
sharma__ has quit [Ping timeout: 264 seconds]
apeiros_ has joined #ruby-lang
apeiros has joined #ruby-lang
apeiros_ has quit [Read error: Connection reset by peer]
rohit has quit [Ping timeout: 244 seconds]
areil_ has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 240 seconds]
areil has quit [Ping timeout: 256 seconds]
Mon_Ouie has joined #ruby-lang
anannie has quit [Remote host closed the connection]
ebouchut has joined #ruby-lang
MaddinXx_ has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
sush24_ has joined #ruby-lang
ebouchut has quit [Ping timeout: 255 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
banisterfiend has quit [Ping timeout: 244 seconds]
rohit has joined #ruby-lang
tonni has joined #ruby-lang
solars has joined #ruby-lang
seanstickle has quit [Quit: seanstickle]
madish has joined #ruby-lang
ebouchut has joined #ruby-lang
AndChat| has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 248 seconds]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
BlaXpirit has joined #ruby-lang
chendo has quit [Ping timeout: 265 seconds]
chendo has joined #ruby-lang
ebouchut has quit [Ping timeout: 255 seconds]
alex_k has quit [Quit: Lost terminal]
knu has quit [Read error: Connection reset by peer]
Evanescene has joined #ruby-lang
sush24_ has quit [Read error: Connection timed out]
sush24_ has joined #ruby-lang
ebouchut has joined #ruby-lang
dragonkh has joined #ruby-lang
<dragonkh> hello
<apeiros> hi dragonkh
<dragonkh> anyone any good with net/ssh? I'm having a few issues - I want to tail a log and yield the data instead of printing it to stoud
<dragonkh> hi aperios
<apeiros> not you too…
<dragonkh> this prints out the line: @ssh.start(@host, @user, :port => @port, :keys => [@key]).exec!("tail -f server.log"){|ch,stream,line| puts line}
Mon_Ouie has quit [Ping timeout: 240 seconds]
<dragonkh> but why can't I do this? @ssh.start(@host, @user, :port => @port, :keys => [@key]).exec!("tail -f server.log"){|ch,stream,line| yield line}
MaddinXx_ has quit [Remote host closed the connection]
BigO has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
<apeiros> what would it yield to?
sepp2k has joined #ruby-lang
<apeiros> you already have a block…
<dragonkh> I want the output to be streamed by sinatra
<apeiros> you should be able to do that if the code is in a method
<dragonkh> get '/' { stream{|out| out << output_from_tail } }
ebouchut has quit [Ping timeout: 252 seconds]
<dragonkh> I cant get the ouput_from_tail to contain the tail output
<dragonkh> it just prints the data in the console and I get a blank page - when using puts line
BigO has quit [Remote host closed the connection]
BigO has joined #ruby-lang
<manveru> what's output_from_tail ?
<dragonkh> def output_from_tail ; @ssh.start(@host, @user, ort => @port, :keys => [@key]).exec!("tail -f server.log"){|ch,stream,line| puts line} ; end
<manveru> ok
<burgestrand> dragonkh: puts just prints it to standard out, you don’t get the output yourself
VegetableSpoon has joined #ruby-lang
<manveru> well, puts is $stdout.puts
<dragonkh> yup - i thought I could just yield line - but nope
<burgestrand> dragonkh: you should be able to yield the line
<manveru> you can yield line
<burgestrand> :p
<dragonkh> no block given (yield) (LocalJumpError)
<burgestrand> I'll let you help him I go gaming
<manveru> but you still have to return it
<manveru> hehe
<manveru> output_from_tail{|output| break output }
<burgestrand> he probably wants the output continuously tho
<burgestrand> no break
<dragonkh> yes continuously
<manveru> well, that's a whole different bag of ants
<burgestrand> stream { |io| output_from_tail { |output| io << output } }
<burgestrand> no idea how browsers behave with streaming content tho, but maybe it works
<burgestrand> on heroku you’ll probably get timeout after 30s
<manveru> i'd use websockets for that, but i guess sinatra has some way of doing comet
<dragonkh> omg I'm so dense
<dragonkh> thanks got it working now
<manveru> dragonkh: http://liftoffsoftware.com/Products/GateOne exists btw :)
sush24_ has quit [Read error: Connection timed out]
<dragonkh> cool
sush24_ has joined #ruby-lang
workmad3 has joined #ruby-lang
BigO has quit [Remote host closed the connection]
m3nd3s has joined #ruby-lang
Evanescene has quit [Quit: Instantbird 1.3 -- http://www.instantbird.com]
areil_ has quit [Remote host closed the connection]
<ddfreyne> zenspider: what’s the story behind minitest/pride? ;)
<erikh> long ago, in the land of seattle
<erikh> a man named tenderlove was wandering the hills wondering how he could colorize the output of his test runs
<erikh> but there was a great evil, the tty
tbuehlmann has joined #ruby-lang
<erikh> the tty and minitest had a long-standing truce of ease of compatibility, and this distinctly meant no colors in test runs
ebouchut has joined #ruby-lang
<erikh> but tenderlove was a brash, young man, seeking to prove himself the ancient land of seattle
<naquad> is there such thing as external entity reference resolver in Nokogiri? i.e. it should be called with all unknown entities
<erikh> so he confronted the tty, and they battled long and hard
<erikh> but finally, with a small multiline monkeypatch, tenderlove struck the tty to the ground
<erikh> and this patch was named 'pride'
<erikh> and pride was held aloft for all to see in the court of youtube
<ddfreyne> haha
rohit has quit [Quit: Leaving]
ebouchut has quit [Read error: Connection reset by peer]
ebouchut has joined #ruby-lang
rekky has quit [Quit: rekky]
<erikh> on this laptop, I have 12G of free ram, 8 processors, and a rather fast SSD
<erikh> subversion has been compiling for at least 30 minutes
<erikh> well, 8 cores.
<heftig> erikh: xeon? amd? dual socket?
<erikh> i7
<heftig> ah, quadcore with ht then
<heftig> that's not 8 cores :p
gaveen has quit [Ping timeout: 260 seconds]
<erikh> 2.7Ghz
<erikh> yes, because it really matters when the compile is only using one of them
stardiviner has joined #ruby-lang
rekky has joined #ruby-lang
ebouchut has quit [Ping timeout: 240 seconds]
<erikh> arg, restarted it from a clean, took about 15s
toretore has joined #ruby-lang
bougyman_ has joined #ruby-lang
bougyman_ has quit [Changing host]
bougyman_ has joined #ruby-lang
spike|spiegel has joined #ruby-lang
bougyman has quit [Ping timeout: 245 seconds]
bougyman_ is now known as bougyman
anannie has joined #ruby-lang
jxie has quit [Quit: leaving]
Banistergalaxy has joined #ruby-lang
sush24_ has quit [Read error: Connection timed out]
AndChat| has quit [Ping timeout: 255 seconds]
sush24_ has joined #ruby-lang
dragonkh has quit [Quit: Bye!]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
blacktulip has joined #ruby-lang
ebouchut has joined #ruby-lang
rekky has quit [Quit: rekky]
m3nd3s has quit [Ping timeout: 244 seconds]
sush24_ has quit [Read error: Operation timed out]
sush24_ has joined #ruby-lang
rekky has joined #ruby-lang
ebouchut has quit [Ping timeout: 244 seconds]
Banistergalaxy has quit [Ping timeout: 255 seconds]
knu has joined #ruby-lang
workmad3 has quit [Ping timeout: 250 seconds]
postmodern has quit [Quit: Leaving]
rsl has joined #ruby-lang
sush24_ has quit [Read error: Connection timed out]
sush24_ has joined #ruby-lang
ebouchut has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
ebouchut has quit [Ping timeout: 248 seconds]
qwerxy has quit [Quit: offski]
m3nd3s has joined #ruby-lang
sush24_ has quit [Read error: Connection timed out]
sush24_ has joined #ruby-lang
VegetableSpoon has quit [Ping timeout: 260 seconds]
Guest30953 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
schaerli has joined #ruby-lang
CoverSlide has joined #ruby-lang
rekky has quit [Quit: rekky]
ebouchut has joined #ruby-lang
topaz has quit [Ping timeout: 245 seconds]
mwjcomputing has joined #ruby-lang
sush24_ has quit [Read error: Connection timed out]
sush24_ has joined #ruby-lang
rekky has joined #ruby-lang
JohnBat26 has joined #ruby-lang
ebouchut has quit [Ping timeout: 276 seconds]
moonglum has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
r0bgleeson has joined #ruby-lang
mars777 has joined #ruby-lang
diegoviola has quit [Ping timeout: 260 seconds]
chimkan_ has joined #ruby-lang
sush24_ has quit [Read error: Connection timed out]
sush24_ has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
Mon_Ouie has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
Mon_Ouie has joined #ruby-lang
sush24_ has quit [Quit: Leaving]
sush24_ has joined #ruby-lang
ebouchut has joined #ruby-lang
BlaXpirit has quit [Quit: Quit Konversation]
areil has joined #ruby-lang
seanstickle has joined #ruby-lang
dc5ala has quit [Quit: Ex-Chat]
sush24_ has left #ruby-lang [#ruby-lang]
elux has joined #ruby-lang
rickjarr has joined #ruby-lang
<rickjarr> : I'm wondering how can I package a green shoes app in exe with ruby interpreter and all gems required?
chimkan___ has joined #ruby-lang
chimkan_ has quit [Ping timeout: 260 seconds]
dejongge has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 240 seconds]
rickjarr has quit [Quit: rickjarr]
elux has quit [Quit: Bye!]
mupilot has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
<ddd> https://github.com/shoes/shoes4#readme is the latest shoes. Might have to combine that repo's info on how to run under windows (a git pull, a jdk, and jruby) with https://github.com/ashbb/green_shoes#readme
<ddd> combining it into a *single* item you might have to use http://nsis.sourceforge.net/Main_Page to figure out a way to combine.
dejongge has quit [Ping timeout: 264 seconds]
DEac- has quit [Read error: Connection reset by peer]
DEac- has joined #ruby-lang
wyhaines has joined #ruby-lang
dejongge has joined #ruby-lang
seanstickle has quit [Quit: seanstickle]
BlaXpirit has joined #ruby-lang
stardiviner has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 252 seconds]
stardiviner has quit [Client Quit]
tjsingleton has joined #ruby-lang
headius has joined #ruby-lang
jxie has joined #ruby-lang
spike|spiegel has quit [Quit: leaving]
spike|spiegel has joined #ruby-lang
chimkan___ has quit [Quit: chimkan___]
Mon_Ouie has quit [Ping timeout: 240 seconds]
KA_ has joined #ruby-lang
pbjorklund has quit [Read error: Connection reset by peer]
chimkan has joined #ruby-lang
KA_ has quit [Client Quit]
replore_ has joined #ruby-lang
gaveen has joined #ruby-lang
gaveen has quit [Changing host]
gaveen has joined #ruby-lang
mistym has joined #ruby-lang
chimkan___ has joined #ruby-lang
chimkan has quit [Ping timeout: 244 seconds]
chimkan___ is now known as chimkan
sailias has joined #ruby-lang
thinkdevcode has joined #ruby-lang
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
datanoise has joined #ruby-lang
seanstickle has joined #ruby-lang
sailias has quit [Ping timeout: 252 seconds]
spike|spiegel has quit [Quit: WeeChat 0.3.9.2]
chimkan___ has joined #ruby-lang
spike|spiegel has joined #ruby-lang
replore_ has quit [Remote host closed the connection]
havenn has joined #ruby-lang
chimkan has quit [Ping timeout: 244 seconds]
chimkan___ is now known as chimkan
dejongge has quit [Ping timeout: 264 seconds]
chimkan___ has joined #ruby-lang
chimkan___ has quit [Client Quit]
chimkan has quit [Ping timeout: 240 seconds]
sailias has joined #ruby-lang
cultureulterior_ has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
<zzak> erikh: make -j8
cultureulterior_ has quit [Client Quit]
babinho has joined #ruby-lang
chimkan has joined #ruby-lang
dejongge has joined #ruby-lang
dragonkh has joined #ruby-lang
<dragonkh> I'm back again :)
replore_ has joined #ruby-lang
<dragonkh> earlier I wanted to stream the result of a log tail in sinatra - it works fine - but the http request is blocked by the continuous stream meaning no other clients can connect until the stream is finished - but the stream will never finish
chimkan has quit [Ping timeout: 245 seconds]
<dragonkh> any ideas of a better solution to having multiple http connections to constantly streaming sources?
chimkan_ has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
xyzodiac has joined #ruby-lang
ryanlecompte has quit [Remote host closed the connection]
ebouchut has quit [Quit: ebouchut]
ryanlecompte has joined #ruby-lang
dejongge has quit [Ping timeout: 255 seconds]
ruurd has joined #ruby-lang
kurko_ has joined #ruby-lang
KA_ has joined #ruby-lang
afgeneralist has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
dejongge has joined #ruby-lang
<lianj> dejongge: use thin
<lianj> err dragonkh
chimkan___ has joined #ruby-lang
<dragonkh> I have tried with thin
jstemmer has quit [Ping timeout: 260 seconds]
<dragonkh> lianj e.g. stream{|out| out << @ssh.start(@host, @user, :port => @port, :keys => [@key]).exec!("tail -f server.log"){|ch,stream,line| yield line} }
<dragonkh> however only 1 client can connect at the same time as the tail holds the connection open constantly
KA_ has quit [Quit: KA_]
<lianj> because ssh is blocking
<dragonkh> yeah that is the problem I'm trying to solve
<dragonkh> thin can't really solve that
<lianj> using thin. try EM.defer{ ssh.start.. }
KA_ has joined #ruby-lang
chimkan_ has quit [Ping timeout: 255 seconds]
KA_ has quit [Client Quit]
Nisstyre-laptop has joined #ruby-lang
Aria has quit [Remote host closed the connection]
seanstickle has quit [Quit: seanstickle]
ruurd has quit [Quit: Leaving...]
unsymbol has quit [Ping timeout: 252 seconds]
<dragonkh> lianj - still blocks :(
<dragonkh> I'm investigating rack-stream
<lianj> dragonkh: then you do it wrong :/
<dragonkh> I did this- EM.defer(stream{|out| out << @ssh.start(@host, @user, ort => @port, :keys => [@key]).exec!("tail -f server.log"){|ch,stream,line| yield line} })
mwjcomputing has quit [Ping timeout: 244 seconds]
bluepojo has joined #ruby-lang
<dragonkh> arg not that
unsymbol has joined #ruby-lang
<lianj> stream{|out| EM.defer{ @ssh.start(@host, @user, :port => @port, :keys => [@key]).exec!("tail -f server.log"){|ch,stream,line| out << line} } }
ebouchut has joined #ruby-lang
mwjcomputing has joined #ruby-lang
<dragonkh> lianj this is what I have now: stream{|out| EM.defer(StreamingLog.new(:cit).stream{|output| out << output}) }
<dragonkh> I moved the ssh code into a class called StreamingLog which yields the result - so the result is in the output var at the end there
replore_ has quit [Remote host closed the connection]
<dragonkh> but that didn't help - so I will try your version
<lianj> EM.defer takes a block
<dragonkh> lianj - ah now many request can be made - however they are all blank - but I see in the console the log - so the defer has defered it but when will it return and be displayed in the browser?
<dragonkh> I don't think it will ever be displayed in the browser now
<dragonkh> unless I put my out << output in the wrong place
schaerli has joined #ruby-lang
workmad3 has joined #ruby-lang
dejongge has quit [Ping timeout: 255 seconds]
replore_ has joined #ruby-lang
<dragonkh> lianj - EM.defer docs say - Don't write a deferred operation that will block forever. If so, the current implementation will
<dragonkh> # not detect the problem, and the thread will never be returned to the pool
chimkan___ has quit [Ping timeout: 264 seconds]
<lianj> dragonkh: thats true
<lianj> dragonkh: i will code you something up, just wait until i finish my dinner
sheerun has joined #ruby-lang
tjsingleton has left #ruby-lang [#ruby-lang]
mwjcomputing has quit [Ping timeout: 240 seconds]
jstemmer has joined #ruby-lang
jnoon has quit [Ping timeout: 244 seconds]
KA_ has joined #ruby-lang
mwjcomputing has joined #ruby-lang
KA_ has quit [Quit: KA_]
replore_ has quit [Remote host closed the connection]
stonerfish has joined #ruby-lang
KA_ has joined #ruby-lang
schaerli_ has joined #ruby-lang
jackyzhai has joined #ruby-lang
schaerli has quit [Ping timeout: 265 seconds]
anannie has quit [Remote host closed the connection]
<lianj> happy panda? :)
KA_ has quit [Quit: KA_]
methods has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
CaptainJet has joined #ruby-lang
jackyzhai has quit [Quit: jackyzhai]
KA_ has joined #ruby-lang
methods has left #ruby-lang [#ruby-lang]
headius has quit [Quit: headius]
Nisstyre-laptop has quit [Quit: Leaving]
Nisstyre-laptop has joined #ruby-lang
thatdutchguy has joined #ruby-lang
ebouchut has quit [Quit: ebouchut]
ryanlecompte has quit [Remote host closed the connection]
Aria has joined #ruby-lang
ebouchut has joined #ruby-lang
schaerli_ has quit [Remote host closed the connection]
ruurd has joined #ruby-lang
KA_ has quit [Quit: KA_]
areil has quit [Remote host closed the connection]
solars has quit [Read error: Operation timed out]
vlad_starkov has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
thatdutchguy has quit [Remote host closed the connection]
Aria has quit [Remote host closed the connection]
thatdutchguy has joined #ruby-lang
schaerli has joined #ruby-lang
thatdutchguy has quit [Read error: Connection reset by peer]
solars has joined #ruby-lang
thatdutchguy has joined #ruby-lang
<dragonkh> lianj - thanks :)
adambeynon has joined #ruby-lang
Aria has joined #ruby-lang
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
cantonic has quit [Ping timeout: 250 seconds]
vlad_starkov has quit [Ping timeout: 260 seconds]
jds_ has quit [Ping timeout: 252 seconds]
<dragonkh> lianj - what I have discovered is that even my original implementation works with multiple curls - and the pastie you did for me also - but it only works once in each browser - I can't have three tabs open on firefox and have it work on all 3 - but if I open 3 different browsers - firefox, chrome and safari - it works fine in all 3 as long as there is only one request from each
jds has joined #ruby-lang
<dragonkh> lianj - sorry was having my dinner too
lsegal has joined #ruby-lang
anannie has joined #ruby-lang
blazes816 has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
yeltzooo has quit [Remote host closed the connection]
yeltzooo has joined #ruby-lang
replore_ has joined #ruby-lang
cantonic has joined #ruby-lang
jnoon has joined #ruby-lang
dejongge has joined #ruby-lang
Aria has quit [Remote host closed the connection]
solars has quit [Ping timeout: 255 seconds]
dejongge has quit [Client Quit]
nertzy2 has joined #ruby-lang
stonerfish has quit [Ping timeout: 276 seconds]
dejongge1 has joined #ruby-lang
solars has joined #ruby-lang
replore_ has quit [Remote host closed the connection]
stonerfish has joined #ruby-lang
havenn has quit [Read error: Connection reset by peer]
ryanf has quit [Ping timeout: 276 seconds]
nertzy has quit [Ping timeout: 276 seconds]
havenn has joined #ruby-lang
BigO has joined #ruby-lang
sailias has quit [Quit: Leaving.]
ryanf has joined #ruby-lang
stonerfish has quit [Ping timeout: 276 seconds]
ryanlecompte has joined #ruby-lang
afgenera_ has joined #ruby-lang
lorinc has joined #ruby-lang
ryanlecompte has quit [Ping timeout: 252 seconds]
KA_ has joined #ruby-lang
Nisstyre-laptop has quit [Ping timeout: 244 seconds]
adambeynon has quit [Quit: Computer has gone to sleep.]
thatdutchguy has quit [Remote host closed the connection]
cantonic has quit [Quit: cantonic]
dejongge has joined #ruby-lang
dejongge1 has quit [Quit: Leaving.]
Nisstyre-laptop has joined #ruby-lang
spike|spiegel has quit [Quit: WeeChat 0.3.9.2]
thejspr has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 240 seconds]
anannie has quit [Remote host closed the connection]
pdswan has joined #ruby-lang
darix has quit [Ping timeout: 246 seconds]
thejspr_ has quit [Ping timeout: 246 seconds]
thejspr is now known as thejspr_
pdswan_ has quit [Ping timeout: 246 seconds]
darix has joined #ruby-lang
darix has quit [Changing host]
darix has joined #ruby-lang
kuja has quit [Ping timeout: 246 seconds]
oddmunds has quit [Ping timeout: 246 seconds]
Gekz has quit [Ping timeout: 246 seconds]
dejongge has quit [Read error: Connection reset by peer]
oddmunds has joined #ruby-lang
dejongge has joined #ruby-lang
Gekz has joined #ruby-lang
Gekz has quit [Changing host]
Gekz has joined #ruby-lang
dejongge has quit [Client Quit]
dejongge has joined #ruby-lang
kuja has joined #ruby-lang
dejongge has quit [Read error: Connection reset by peer]
dejongge1 has joined #ruby-lang
seanstickle has joined #ruby-lang
dejongge1 has quit [Client Quit]
dejongge has joined #ruby-lang
sepp2k1 has joined #ruby-lang
wallerdev has joined #ruby-lang
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
sepp2k has quit [Ping timeout: 240 seconds]
wallerdev has quit [Client Quit]
dejongge has quit [Ping timeout: 260 seconds]
wallerdev has joined #ruby-lang
dejongge has joined #ruby-lang
workmad3 has quit [Ping timeout: 276 seconds]
lorinc has quit [Quit: Leaving]
havenn has quit [Ping timeout: 244 seconds]
chimkan has joined #ruby-lang
havenn has joined #ruby-lang
BigO has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
replore has joined #ruby-lang
replore has quit [Ping timeout: 255 seconds]
dejongge has quit [Ping timeout: 240 seconds]
CaptainJet has quit [Ping timeout: 252 seconds]
CaptainJet has joined #ruby-lang
mwjcomputing has quit [Ping timeout: 244 seconds]
havenn_ has joined #ruby-lang
havenn has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 255 seconds]
havenn_ has quit [Remote host closed the connection]
havenn has joined #ruby-lang
phlipper has joined #ruby-lang
havenn has quit [Ping timeout: 256 seconds]
madish has quit [Ping timeout: 252 seconds]
phlipper has quit [Client Quit]
phlipper has joined #ruby-lang
havenn has joined #ruby-lang
firefux has left #ruby-lang [#ruby-lang]
madish has joined #ruby-lang
chimkan has quit [Quit: chimkan]
KU0N has joined #ruby-lang
<KU0N> Hello. Do you know if I can shorten that? https://gist.github.com/4141603 It might be fine, I'm just wondering.
thatdutchguy has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 244 seconds]
Banistergalaxy has joined #ruby-lang
thatdutchguy has quit [Ping timeout: 276 seconds]
<KU0N> ha nice, I knew I could do something
Darkspiel has joined #ruby-lang
vlad_starkov has joined #ruby-lang
<burgestrand> KU0N, seanstickle: http://pastie.org/5429339
<seanstickle> Even fancier
<burgestrand> no ugly ; a
<burgestrand> :)
<seanstickle> I do fancy the term "reduce" though
<seanstickle> But yeah, you're right
vlad_starkov has quit [Ping timeout: 252 seconds]
VegetableSpoon has joined #ruby-lang
voker57 has quit [Read error: Connection reset by peer]
Darkspiel has quit [Remote host closed the connection]
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
<KU0N> thanks
unsymbol has quit [Quit: ZNC - http://znc.in]
unsymbol has joined #ruby-lang
<canton7> commented another
masterkorp has joined #ruby-lang
<masterkorp> hello
<masterkorp> Any recomandations for a parser of nagios defintions syntax ?
<masterkorp> define command{ var value var2 value2}
<masterkorp> i want it to be standard ruby
<masterkorp> other question any vim users ? Do you know any ctags patch for ruby-dsl ?
mistym has quit [Remote host closed the connection]
dragonkh has quit [Quit: Bye!]
Mon_Ouie has joined #ruby-lang
tenderlove has joined #ruby-lang
KU0N has left #ruby-lang [#ruby-lang]
afgeneralist has quit [Ping timeout: 246 seconds]
banisterfiend has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby-lang
blacktulip has quit [Remote host closed the connection]
Mon_Ouie has quit [Quit: WeeChat 0.3.9.1]
Mon_Ouie has joined #ruby-lang
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby-lang
rekky has quit [Quit: rekky]
havenn has quit [Remote host closed the connection]
kurko_ has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby-lang
havenn has joined #ruby-lang
BlaXpirit has quit [Quit: Quit Konversation]
kurko_ has quit [Quit: Computer has gone to sleep.]