<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
<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.
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]
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} })
<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]
<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]