similar to: slow Net::HTTP within rails?

Displaying 20 results from an estimated 50000 matches similar to: "slow Net::HTTP within rails?"

2015 Apr 23
2
cálculo de distancias
¡Hola! Estoy tratando de hacer una matriz que contenga los valores de distancias entre distintos elementos (con sus respectivas coordenadas x e y), pero salta un error, y no sé como corregirlo. ¿alguna idea? muchas gracias! saludos!! Priscila -- Dra. Priscila Ana Powell Instituto de Ecología Regional Facultad de Ciencias Naturales e Instituto Miguel Lillo Universidad Nacional de Tucumán
2003 Jun 03
2
Problem with HTTP traffic (very slow)
I have two machines running 4.8-RELEASE ... both sitting on the same switch, same hardware, same everything really. One gets 200k/s using wget / curl / w3m to a http address the other gets 6k/s to the same address. On the slow http machine I get 200k/s via scp or ftp to the same address it's just web traffic that is slow (note web traffic to all other locations is 4 - 6k/s as well). I've
2005 Oct 17
7
Ajax.MultiUpdater ?
Hi, I''m using prototype within ruby on rails. One limitation I''d like to overcome is the restriction of beeing able to update just one html elements content using from_remote_tag or link_to_remote. AFAICS this is just a restriction of the form_remote_tag/link_to_remote implementation and it''s underlying Ajax.Updater class. Right? In theorie there should be no problem,
2006 Jan 22
3
Download an Image using Net::HTTP
Hi, I need to download an image, and I''ve mucked about with Net::HTTP resp = Net::HTTP.get_response(''www.mydomain.com'', ''/test.jpg'') f = File.new("test.jpg","w") f.write(response.body) And various other combinations using HTTP.get etc. Anyway, I get an image, but it looks very psychedelic. This is obviously not the correct way.
2011 Feb 01
4
Delay Loading Rails Views
Hi All, I''m having trouble with a Rails app and I can''t figure out what / where the problem is. From the logging and testing I''ve done, it looks like there is a consistent 3 second delay between the time that Rails finishes rendering the view and the time that the browser actually receives the data. That delay doesn''t show up on my laptop, running in
2008 Mar 01
0
Testing XML over HTTP in a Rails app
Hi I''m looking at testing the XML API methods of my RESTful controllers -- create, update etc. I thought this would be really straightforward, and perhaps it is, but I''m struggling to find a good explanation of how to go about it the Rails way. Firstly, I can successfully test it from the command line using curl, e.g: curl -H "Accept: application/xml" -X GET --basic
2011 Feb 25
0
RCurl Post
> resp <- postForm('http://our.db/db/new', 'profileid'='181133', 'value'='20110225', 'type'='history','user-agent' = 'R', .opts =list(verbose=T, userpwd='test:test')) * About to connect() to our.db port 80 (#0) * Trying 192.168.1.1... * connected * Connected to our.db (192.168.1.1) port 80 (#0) > POST
2023 Aug 25
0
[EXT] Re: oggenc argument to make the stream not cut in the middle
First of all, keep the replies on the mailing list. Are you subscribed to the mailing list? On Aug 24 09:44:56, nguyenquocthao00 at gmail.com wrote: > The file ogg is the same, I know that. So oggenc must have produced exactly the same audio. So it must be specific to the "live" playing. > And the problem is not from curl, > curl is only an example to replicate my problem.
2017 Jul 11
0
Performance Translators Documentation
Hi, I had some issues (org.apache.lucene.index.CorruptIndexException) with Lucene (resp. ElasticSearch) working on a GlusterFS Volume and Kubernetes. For testing I switched off all performance translators... And I wonder if there is somewhere documentation, who they are and what they are doing? best Chris -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 May 23
0
FakeWeb test helper for Net::HTTP / open-uri web requests
Hey All, I''ve posted the first release of FakeWeb, a little library to help with all your http client testing needs. This helper makes it trivial to setup an idempodent environment for you to test any web service requests in your applications. Available on RubyForge, http://rubyforge.org/projects/fakeweb/ == Overview * Force Net::HTTP (and any dependent libraries, e.g. open-uri) to
2012 Oct 11
0
http streaming in Rails 3.0.3 and thin server
Hello, In my site I am using ''thin'' server and my environment is Rails 3.0.3 and Ruby 1.8.7. Certain pages in site take a long time to process and as I am hosting it on Heroku I get timeout errors frequently. I am planning to use http streaming in this setup. When I use curl on the command prompt I do see that transaction is chunked. Apart from this setup I haven''t done
2010 Dec 24
0
Getting Google Image search to work within Rails
Hi, I''m getting this strange behavior when I try to run search for images using Google Images API. I suspect it''s because of my code and not the API itself, here''s what I wrote: uri = URI.parse("https://ajax.googleapis.com/") http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = true path =
2013 Feb 16
1
odd behavior within R2HTML
Dear R People: I'm using R2HTML but having a strange result. Here is the original data: resp trt block 90.3 A I 89.2 A II 98.2 A III 93.9 A IV 87.4 A V 97.9 A VI 92.5 B I 89.5 B II 90.6 B III 94.7 B IV 87.0 B V 95.8 B VI 85.5 C I 90.8 C II 89.6 C III 86.2 C IV 88.0 C V 93.4 C VI 82.5 D I 89.5 D II 85.6 D III 87.4 D IV 78.9 D V 90.7 D VI And here are the commands: > resin1.df <-
2017 May 10
2
Example for doveadm-save using Doveadm HTTP API
> On May 10, 2017, at 11:06 AM, Sami Ketola <sami.ketola at dovecot.fi> wrote: > > >> On 10 May 2017, at 14.57, KT Walrus <kevin at my.walr.us> wrote: >> >> I could use an example of how to use curl to save a new message to a user?s INBOX using the Doveadm HTTP API. >> > > Here you go: > > doveadm mailbox save > > parameters:
2019 Aug 07
1
Problem Solr and centos 7
Thanks Shawn for your reply I tried to bring the heap size to 5gb as you would like, but the problem was not solved. "/If you have configured fts_solr with a URL that contains a # character, it's never going to work./" I'm not sure how to configure this but in the 90-plugins.conf file I configured this: plugin { ??#setting_name = value ??fts = solr ??fts_solr = url =
2013 Jul 31
0
How to use http-put for JavaScript source client
Hi, On 07/23/2013 07:44 PM, Jamie McClelland wrote: > I'm following up on a thread started by Stephen a couple months ago > about building a JavaScript source client using webrtc. > > The first step suggested was to figure out how to mux the audio and > video. After I posted a feature request on the webrtc experiment js > library, we seem to have a solution: >
2020 May 19
1
[v2v PATCH] vCenter: fix parsing of HTTP status string (RHBZ#1837328)
vCenter 7 answers with an HTTP/2 status string, so we cannot extract the status code from it by using fixed positions in that string. Hence, pick the status code by reading what's after the whitespace. Tested with vCenter 6.5 and 7. --- v2v/vCenter.ml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/v2v/vCenter.ml b/v2v/vCenter.ml index c28a4ced..4c128b0c 100644 ---
2016 May 24
2
New feature: HTTP API
Thanks for the new HTTP API. I get the API with some commands up and running, but I'm still not able to create folder. curl -k -H "Content-Type: application/json" -H "Authorization: Basic secret" -d '[["mailboxCreate",{"user":"user at example.org","mailbox":["INBOX/TEST"]},c01]]'
2010 Dec 06
4
http request, which command is good for testing
Hi all I just know there are curl / lwp-request, lynx and elinks Which command is good for http testing? Thank you
2007 Nov 24
0
Getting a Lucene.net index readable by Ferret
Hi, What would it take to get the a Lucene.net index readable by Ferret? I know that there has been discussion on this before but I am trying to figure the actual amount of work (cost) would be required to get this done. Any help would be greatly appreciated. Benjamin