Page 1 of 1
[14:30:37] negev: hi, i'm running a rack application with ruby 2.5.1p57 and after some hours i see an enormous number of open files in lsof listed as "ruby-time"
[08:59:13] negev: hi, does this: https://gist.github.com/m4rkw/1dcdbb3dfe63b29b5343b70a28ce1c5b indicate a memory leak or am i misunderstanding how that should work?
[21:44:37] negev: hi, if i have an IO stream and the remote machine sends me an arbitrary chunk of data but doesn't disconnect, how can i determine that i've received all of it? do i have to just use a timeout?
[15:01:52] negev: hello, anyone know why the mechanize gem would return form.file_uploads =>  for this form?
[15:53:39] negev: hello, why is i always 1 in the child thread? https://gist.github.com/m4rkw/fd06bd16c584632cf943
[15:59:11] negev: can anyone tell me why variables changed outside of a Thread are then changed inside the thread? i thought fork() was supposed to take an entire clone of the current context
[16:03:58] negev: ok so i guess that changes my question then, if i want to create n threads and pass a 0-indexed thread_id to each thread, how can i do that?
[16:09:20] negev: Ox0dea: that doesn't work, `initialize': must be called with a block (ThreadError)
[19:02:11] negev: hi, i'm writing a simple webapp using rack. why is it that when i stream a file back to the browser, the browser hangs for a long time before downloading anything? i'm using Rack::File which i understand is an enumerate object that should chunk the file to the browser bit by bit
[19:02:22] negev: but somehow it still hangs for a long time before the browser starts downloading the file
[19:17:04] negev: hi, i'm rack to build a simple webapp. i'm not actually using rails but rails must have solved this problem - if i return a response with an enumerable object, in order to stream a large file back to the browser, it calls each on the object and iteratively retrieves chunks of the file. for some reason when i do this, the brower hangs for several seconds before it starts to download the file.
[19:17:17] negev: it feels as if some kind of output buffer isn't being flushed out until it reaches a certain length
[07:42:44] negev: hello, why do class variables on child classes behave like this? http://pastebin.com/Wa80B9nL
[14:49:53] negev: can anyone tell me why Rack::File hangs for several seconds before serving a large-ish file?
[10:15:15] negev: hi, i've built a small rack application and for some reason all POST requests get redirected to GET. this is what i'm doing to run rackup: http://pastebin.com/Jjgu9XZ3 WebApp.call() is never called with a POST request, it's always redirected first.
[06:45:28] negev: hi, i'm writing a non-rails application using rack. looking at this page: http://www.rubydoc.info/github/rack/rack/Rack/Static it seems to suggest that i can do: use Rack::Static, :urls => ["/media"] to handle static content automatically, but i can't see where to put this. does my main application class need to extend one of the rack classes in order to make the use method available?
[08:38:52] negev: hi, i'm going crazy trying to figure out how to include subtemplates using Erubis. can anyone help? i'm doing this in a cgi wrapper: puts Erubis::FastEruby.new(File.read(ENV["PATH_TRANSLATED"])).result(binding()) but then within the .erb script that it's loading, there's no way i can see to include a subtemplate
[08:39:18] negev: for example, in index.erb if i do: puts ERB.new(File.read('menu.erb')).result(binding)
[08:46:56] negev: hi, i want to run ruby via apache. doesn't seem like there's a clean way to do this. don't want to run rails as my app is very very simple and rails is needless bloat. i'm currently using Erubis to execute the ruby scripts as cgi's, but struggling with basic issues like being able to pull in other scripts as subtemplates. can anyone point me at a more elegant solution?
[11:46:30] negev: hi, using erubis to run ruby as a cgi, how do you include another .erb file as a kind of partial view? when i do: puts Erubis::FastEruby.new(File.read('menu.erb')).result(binding()) it nukes any html that was in the original index.erb before the call
[09:04:49] negev: how do you reference global variables with the name of the variable in another variable? eg a = "foo" ; b = get_global[a] === $foo