Displaying 20 results from an estimated 88 matches for "getresponse".
2009 Jan 05
0
getResponse(model.lme) yields incorrect number of dimensions error
Dear R experts,
I would like to get an R^2 - like value for a multilevel regression using lme.
I followed an archived suggestion by José
Pinheiro to use the squared correlation between
fitted and observed values, i.e.,
(cor(fitted(model.lme), getResponse(model.lme))^2
but getResponse returns the error message
Error in val[, level] : incorrect number of dimensions
The same happens with residuals(model.lme) and
summary(model.lme) but not other generic
functions such as predict, coef, or fitted, which (seem to) work fine.
I have searched the ar...
2018 Jun 06
2
[PATCH v2] v2v: -o rhv-upload: Log full imageio response on failure.
v1 was here:
https://www.redhat.com/archives/libguestfs/2018-June/msg00015.html
v2 fixes all the issues raised in Nir's review. I tested it against
ovirt-engine-4.2.4.1-1.el7.noarch and it works, although I wasn't
easily able to trigger the error path so that code is not really
tested (except for syntax checking).
Rich.
2018 Jun 14
5
[PATCH] v2v: -o rhv-upload: Optimize http request sending
...t;, transfer.signed_ticket)
- http.putheader("Range", "bytes=%d-%d" % (offset, offset+count-1))
- http.endheaders()
+ headers["Authorization"] = transfer.signed_ticket
+
+ http.request("GET", h['path'], headers=headers)
r = http.getresponse()
# 206 = HTTP Partial Content.
@@ -319,11 +319,10 @@ def zero(h, count, offset, may_trim):
'size': count,
'flush': False}).encode()
- http.putrequest("PATCH", h['path'])
- http.putheader("Content-Type...
2018 Jun 05
2
[PATCH] v2v: Log full imageio response on failure.
...raise RuntimeError("%s: %d: %s" % (msg, status, reason))
+
# For documentation see:
# https://github.com/oVirt/ovirt-imageio/blob/master/docs/random-io.md
# For examples of working code to read/write from the server, see:
@@ -248,16 +271,14 @@ def pread(h, count, offset):
r = http.getresponse()
# 206 = HTTP Partial Content.
if r.status != 206:
- h['transfer_service'].pause()
- h['failed'] = True
- raise RuntimeError("could not read sector (%d, %d): %d: %s" %
- (offset, count, r.status, r.reason))
+...
2018 Jun 06
0
[PATCH v2] v2v: -o rhv-upload: Log full imageio response on failure.
...eError("%s: %d %s: %r", msg, status, reason, body[:200])
+
# For documentation see:
# https://github.com/oVirt/ovirt-imageio/blob/master/docs/random-io.md
# For examples of working code to read/write from the server, see:
@@ -248,16 +274,14 @@ def pread(h, count, offset):
r = http.getresponse()
# 206 = HTTP Partial Content.
if r.status != 206:
- h['transfer_service'].pause()
- h['failed'] = True
- raise RuntimeError("could not read sector (%d, %d): %d: %s" %
- (offset, count, r.status, r.reason))
+...
2006 Feb 27
1
Problems dialing to another Asterisk server
...etCallingPres(new Boolean(true));
originateAction.setContext("mariaSIP");
originateAction.setExten("222");
originateAction.setPriority(nPriority);
originateAction.setTimeout(nTimeout);
originateResponse = managerConnection.sendAction(originateAction, 30000);
if(originateResponse.getResponse().equals("Success"))
{
setVarAction.setVariable("STRING3");
setVarAction.setValue("SIP/6020");
originateResponse = managerConnection.sendAction(setVarAction, 30000);
if(originateResponse.getResponse().equals("Success"))
{
RedirectAction r...
2018 Jun 05
0
Re: [PATCH] v2v: Log full imageio response on failure.
...nwanted newlines in the response).
> +
> # For documentation see:
> # https://github.com/oVirt/ovirt-imageio/blob/master/docs/random-io.md
> # For examples of working code to read/write from the server, see:
> @@ -248,16 +271,14 @@ def pread(h, count, offset):
> r = http.getresponse()
> # 206 = HTTP Partial Content.
> if r.status != 206:
> - h['transfer_service'].pause()
> - h['failed'] = True
> - raise RuntimeError("could not read sector (%d, %d): %d: %s" %
> - (offset, count,...
2010 May 26
1
regresion mixta
Hola a tod en s,
estoy trabajando con modelos de regresión mixta con el paquete "nlme",
concretamente con la función "lme". Una vez que hago mi modelo y el
summary del mismo obtengo por ejemplo la significación (valor p) de la
variable independiente, así como el valor del AIC para comparar mi
modelo con otro similar, pero no sé cómo obtener un valor del grado de
ajuste de la
2018 Aug 28
2
[PATCH] v2v: rhv-upload-plugin: Use BrokenPipeError
...import builtins
-import errno
import json
import logging
import socket
@@ -361,9 +360,8 @@ def pwrite(h, buf, offset):
try:
http.send(buf)
- except socket.error as e:
- if e[0] != errno.EPIPE:
- raise
+ except BrokenPipeError:
+ pass
r = http.getresponse()
if r.status != 200:
@@ -425,9 +423,8 @@ def emulate_zero(h, count, offset):
http.send(buf)
count -= len(buf)
http.send(buffer(buf, 0, count))
- except socket.error as e:
- if e[0] != errno.EPIPE:
- raise
+...
2018 Aug 28
2
[PATCH RHEL 7.6 LP] RHEL 7.6 LP: Convert Python 3 to Python 2.
Nir, can you confirm this is correct for RHEL 7 / Python 2?
Rich.
2018 Jun 14
0
Re: [PATCH] v2v: -o rhv-upload: Optimize http request sending
...- http.putheader("Range", "bytes=%d-%d" % (offset, offset+count-1))
> - http.endheaders()
> + headers["Authorization"] = transfer.signed_ticket
> +
> + http.request("GET", h['path'], headers=headers)
>
> r = http.getresponse()
> # 206 = HTTP Partial Content.
> @@ -319,11 +319,10 @@ def zero(h, count, offset, may_trim):
> 'size': count,
> 'flush': False}).encode()
>
> - http.putrequest("PATCH", h['path'])
> -...
2018 Jun 14
0
Re: [PATCH] v2v: -o rhv-upload: Optimize http request sending
...http.putheader("Range", "bytes=%d-%d" % (offset, offset+count-1))
> - http.endheaders()
> + headers["Authorization"] = transfer.signed_ticket
> +
> + http.request("GET", h['path'], headers=headers)
>
> r = http.getresponse()
> # 206 = HTTP Partial Content.
> @@ -319,11 +319,10 @@ def zero(h, count, offset, may_trim):
> 'size': count,
> 'flush': False}).encode()
>
> - http.putrequest("PATCH", h['path'])
> -...
2019 Nov 21
1
[PATCH] rhv-upload: Handle any error in NBD handlers
...ng code to read/write from the server, see:
# https://github.com/oVirt/ovirt-imageio/blob/master/daemon/test/server_test.py
+@failing
def pread(h, count, offset):
http = h['http']
transfer = h['transfer']
@@ -165,12 +182,13 @@ def pread(h, count, offset):
r = http.getresponse()
# 206 = HTTP Partial Content.
if r.status != 206:
- request_failed(h, r,
+ request_failed(r,
"could not read sector offset %d size %d" %
(offset, count))
return r.read()
+@failing
def pwrite(h, buf, offset...
2020 May 04
2
Fwd: [EXTERNAL] SNMP shutdown timing out
...r -vv for full protocol decode
listening on eno1, link-type EN10MB (Ethernet), capture size 262144 bytes
09:20:30.023454 IP chscc-pc-052.castle.org.59649 >
apcups.castle.org.snmp: GetRequest(28) system.sysObjectID.0
09:20:30.045067 IP apcups.castle.org.snmp >
chscc-pc-052.castle.org.59649: GetResponse(43)
system.sysObjectID.0=E:318.1.3.2.10
09:20:30.045508 IP chscc-pc-052.castle.org.59649 >
apcups.castle.org.snmp: GetRequest(34) E:318.1.1.1.1.1.1.0
09:20:30.070001 IP apcups.castle.org.snmp >
chscc-pc-052.castle.org.59649: GetResponse(52)
E:318.1.1.1.1.1.1.0="SMART-UPS 1400"
09...
2019 Nov 23
2
Re: [PATCH nbdkit v2 10/10] tests: Test the Python plugin thoroughly.
...ray, which is also what nbdkit python plugin
> > expects. But real code using HTTPConnection return bytes:
> >
> > >>> c = http.client.HTTPSConnection("www.python.org")
> > >>> c.request("GET", "/")
> > >>> r = c.getresponse()
> > >>> r.read()[:10]
> > b'<!doctype '
> >
> > I think the plugin should support both bytearray, memoryview, or
> > bytes. Supporting objects
> > implementing the buffer protocol would be best.
>
> I thought bytearray & bytes were...
2007 Apr 05
2
URL check URL validity
...that at some point asks for a URL ... and i need to
check that url''s validity ... is there a way to do that in RoR...
- in C# i would to something along the lines of
HttpWebRequest hReq =
(HttpWebRequest)WebRequest.Create(url................);
HttpWebResponse hRes = (HttpWebResponse)hReq.GetResponse();
rCode = hRes.get_StatusCode()...etc
Any input is greatly appreciated.
Thank you,
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyon...
2008 Oct 08
1
Observed responses in 'augPred' data frame - Wrong order ?
...unction calls:
> debug(nlme:::augPred.lmList)
> fm1.lis <- lmList(my.object)
> augPred(fm1.lis)
debugging in: augPred.lmList(fm1.lis)
debug: {
.....
primary <- getCovariate(data)
.....
groups <- getGroups(object)
.....
orig <- data.frame(primary,groups, getResponse(object))
.....
}
This approach works well on other datasets, such us the Orthodont data,
but not for mine because, i guess, my rows are not first ordered by
subject (subject is my grouping factor). In fact:
> getGroups(fm1.lis)[1:5]
[1] CBT.1 CBT.2 CBT.3 CBT.4 CBT.5
34 Levels: CBT.14 <...
2020 May 04
0
Fwd: [EXTERNAL] SNMP shutdown timing out
...ecode
> listening on eno1, link-type EN10MB (Ethernet), capture size 262144 bytes
> 09:20:30.023454 IP chscc-pc-052.castle.org.59649 >
> apcups.castle.org.snmp: GetRequest(28) system.sysObjectID.0
> 09:20:30.045067 IP apcups.castle.org.snmp >
> chscc-pc-052.castle.org.59649: GetResponse(43)
> system.sysObjectID.0=E:318.1.3.2.10
> 09:20:30.045508 IP chscc-pc-052.castle.org.59649 >
> apcups.castle.org.snmp: GetRequest(34) E:318.1.1.1.1.1.1.0
> 09:20:30.070001 IP apcups.castle.org.snmp >
> chscc-pc-052.castle.org.59649: GetResponse(52)
> E:318.1.1.1.1.1.1.0...
2018 Jun 25
1
Re: [PATCH v2 1/2] v2v: -o rhv-upload: Always fetch server options when opening the connection.
...hv_direct']
> + can_flush = False
> + can_trim = False
> + can_zero = False
> +
> + http.putrequest("OPTIONS", destination_url.path)
> + http.putheader("Authorization", transfer.signed_ticket)
+ http.endheaders()
> +
> + r = http.getresponse()
>
We should read the response data here to make sure we consume
the entire response before sending hte nex
> + if r.status == 200:
> + # New imageio never needs authentication.
> + needs_auth = False
> +
> + j = json.loads(r.read())
> + can_f...
2020 Jul 08
2
[PATCH] RFC: rhv-upload-plugin: Use imageio client
...;transfer']
-
- headers = {"Range": "bytes=%d-%d" % (offset, offset + count - 1)}
- if h['needs_auth']:
- headers["Authorization"] = transfer.signed_ticket
-
- http.request("GET", h['path'], headers=headers)
-
- r = http.getresponse()
- # 206 = HTTP Partial Content.
- if r.status != 206:
- request_failed(r,
- "could not read sector offset %d size %d" %
- (offset, count))
-
- return r.read()
-
-
-@failing
-def pwrite(h, buf, offset):
- http = h['http...