search for: mateos

Displaying 20 results from an estimated 231 matches for "mateos".

Did you mean: mateo
2020 Nov 20
4
return (x+1) * 1000
I'm not thinking of complicated cases. This happened to me in a function that returns 10 minute slots slot <- function (seconds) { return (seconds %/% 600) * 600 } Obviously I found the issue while debugging and corrected my code with surrounding parenthesis, but I was surprised that the R parser did not catch this syntactic error. This is especially poignant when we have to
2020 Nov 20
1
return (x+1) * 1000
I don't see how anything operating on the "result" of a return() call could be legal. The special semantics of the return() call is that it does **not** return control to the place it was called from, but rather to the location where its surrounding function(){} was called from. Mateo. -- Mateo Obreg?n. On Friday, 20 November 2020 22:52:58 GMT Duncan Murdoch wrote: > On
2020 Nov 20
5
return (x+1) * 1000
Dear r-developers- After many years of using and coding in R and other languages, I came across something that I think should be flagged by the parser: bug <- function (x) { return (x + 1) * 1000 } > bug(1) [1] 2 The return() call is not like any other function call that returns a value to the point where it was called from. I think this should straightforwardly be handled in the
2010 Jul 11
10
dependent support for has_many through?
Given the following class Programmer < ActiveRecord::Base has_many :assignments has_many :projects, :through => :assignments end if I call Programmer#projects.clear, it will delete_all the joining assignments; however, I have a situation where I''d like the assignments to get destroyed instead so that their after_destroy callbacks get called. It would be simple to
2020 Nov 20
2
return (x+1) * 1000
And the related: > f = function() stop(return("lol")) > f() [1] "lol" I have a feeling all of this is just return() performing correctly though. If there are already R CMD CHECK checks for this kind of thing (I wasnt sure but I'm hearing from others there may be/are) that may be (and/or may need to be) sufficient. ~G On Fri, Nov 20, 2020 at 3:27 PM D?nes T?th
2020 Nov 20
0
return (x+1) * 1000
Perhaps the parser should warn if you use return() at all. It is rarely needed and is akin to the evil 'GOTO' statement in that it makes the flow of control less obvious to the reader. -Bill On Fri, Nov 20, 2020 at 2:37 PM Mateo Obreg?n <obregonmateo at gmail.com> wrote: > I'm not thinking of complicated cases. > > This happened to me in a function that returns 10
2020 Nov 20
0
return (x+1) * 1000
On 20/11/2020 5:36 p.m., Mateo Obreg?n wrote: > I'm not thinking of complicated cases. > > This happened to me in a function that returns 10 minute slots > > slot <- function (seconds) { > return (seconds %/% 600) * 600 > } > > Obviously I found the issue while debugging and corrected my code with > surrounding parenthesis, but I was surprised that the
2010 Feb 24
5
XCP: Custom templates
Hello, Is it possible to create a custom template for XCP? Or edit an existing one? I know that I could create a VM and then exported as a template, but I would prefer to create a template like "Debian Lenny 5.0" that install debian from the network but with 64bits instead of the 32bits used by the template. -- Angel L. Mateo Martínez Sección de Telemática Área de Tecnologías de
2020 Nov 20
1
return (x+1) * 1000
FWIW, 'R CMD check --as-cran' in R-devel checks for "bogus return" statements but I think that's only for the case when one forgets the parentheses, e.g. 'return' instead of 'return()'. I don't think it catches this case but I'm also not sure. Though, I can imagine it might be possible to enhance the current check to include also this case. It could
2006 Mar 08
12
AW: Problem booting domU
Hello, Can you check following entrys: Old: disk = [''phy:vm_volumes/root.dhcp1,sda1,w'', ''phy:vm_volumes/var.dhcp1,sda2,w'', ''phy:vm_volumes/swap.dhcp1,sda3,w''] New: disk = [''phy:/vm_volumes/root.dhcp1,sda1,w'', ''phy:/vm_volumes/var.dhcp1,sda2,w'',
2017 Apr 26
3
Problem with LMTP
Hello, I'm having a problem with LMTP in a proxy server since I upgraded from 2.1.16 to 2.2.28. In my logs I have: Apr 26 12:54:17 musio12 dovecot: lmtp(2082): Fatal: master: service(lmtp): child 2082 killed with signal 11 (core dumped). As far as I could check the message is delivered in a later connection. I have enabled core dumped files, but how could I debug it? -- Angel L.
2017 May 11
3
Problem with LMTP
El 10/05/17 a las 12:26, Aki Tuomi escribi?: > > Can you please try again, with debugging symbols installed? > There it is -- Angel L. Mateo Mart?nez Secci?n de Telem?tica ?rea de Tecnolog?as de la Informaci?n y las Comunicaciones Aplicadas (ATICA) http://www.um.es/atica Tfo: 868889150 Fax: 868888337 -------------- next part -------------- A non-text attachment was scrubbed... Name:
2017 May 11
2
Problem with LMTP
On 11.05.2017 12:24, Aki Tuomi wrote: > > On 11.05.2017 11:26, Angel L. Mateo wrote: >> El 10/05/17 a las 12:26, Aki Tuomi escribi?: >>> Can you please try again, with debugging symbols installed? >>> >> There it is >> > Hi! > > This is a known bug and we are working on a fix. > > Aki Although it would be quite useful for us if you can
2020 Nov 20
2
return (x+1) * 1000
Without having dug into the details, it could be that one could update the parser by making a 'return' a keyword and require it to be followed by a parenthesis that optionally contains an expression followed by end of statement (newline or semicolon). Such a "promotion" of the 'return' statement seems backward compatible and would end up throwing syntax errors on:
2018 Sep 27
3
Custom variable
Hi, I know that there are some variables (as user or username) I could use inside dovecot. They are at https://wiki2.dovecot.org/Variables. My question is if I can create my own variables from attributes at my pass/user db and then use it inside dovecot configuration. -- Angel L. Mateo Mart?nez Secci?n de Telem?tica ?rea de Tecnolog?as de la Informaci?n y las Comunicaciones Aplicadas
2011 Aug 25
3
auth: Error: LDAP: Connection lost to LDAP server, reconnecting
Hello, I continue debugging my problems with my update to dovecot 2.x :-( I have dovecot 2.0.13 running in ubuntu 10.04 (lucid) x64. My users are in a ldap directory. The problem is that I have a lot of errors like: Aug 24 23:07:32 myotis28 dovecot: auth-worker(default): LDAP: Connection lost to LDAP server, reconnecting I have seen in the mail list a patch for 1.2
2011 Aug 19
4
Update indexes with dovecot 1.1
Hello, I have a farm of dovecot 1.1 servers (debian lenny). Mailboxes are in Maildir format. Is there any way to manually update indexes? Does it worth? I mean... Our problem is that mail is delivered via dovecot lda, but, because we have a farm of servers, we don't guarantee that mail is delivered through the same server that the user is using for his imap connection, so the imap
2016 Feb 09
4
Accessing to mail as another user
Hello, I'm looking for a way to access to a POP/IMAP account as another user different than me, but using my password. That is, I'm "someone at domain.com" and I want to access to "anotherone at domain.com" mailbox using the password of "someone at domain.com", not the "anotherone at domain.com" (something similar to master passwords, but
2018 Nov 10
2
Asignar distancias
Utilizo la función merge desde hace poco, pero no se me ocurre cómo utilizarla para esto. Yo pienso que se puede hacer con una combinación de ifelse-s pero no sé cómo. Seguro que hay más de una forma ce hacerlo. Quoting José María Mateos <chema en rinzewind.org>: > On Sat, Nov 10, 2018 at 07:54:19PM +0100, Manuel Mendoza wrote: >> Muy buenas. A ver si alguien puede echarme una mano. >> A partir de una matriz de distancias de 29 x 29 he obtenido una df1. >> Ahora tengo 841 filas con la distancia de cada c...
2008 Sep 01
3
Report to a domU a change on a disk
Hello, I have a Xen dom0 (Debian Etch running xen 3.0.3) running different domUs. DomUs'' disks are LVM2 volumes. Now I have increased the size of one of these LVM volumes so I have to inform to the corresponding domU that its disk has increased its size (to resize it without unmounting it). How can I do this? -- Angel L. Mateo Martínez Sección de Telemática Área de Tecnologías de la