Displaying 20 results from an estimated 10000 matches similar to: "workflow using git for translations"
2020 Aug 10
1
Typos in file.path documentation.
Hello,
R 4.0.2 on Ubuntu 20.04, sessionInfo() below.
I believe there are two typos in ?file.path, section Value, 2nd paragraph.
1. There is a close parenthesis missing after Encoding, as it is
reading is a bit confusing, I had to backtrack and repeat.
2. I'm not a native language speaker but before a consonant it's 'a',
not 'an', right?
an component
should be
a
2019 Jun 21
4
Calculation of e^{z^2/2} for a normal deviate z
Hello,
Well, try it:
p <- .Machine$double.eps^seq(0.5, 1, by = 0.05)
z <- qnorm(p/2)
pnorm(z)
# [1] 7.450581e-09 1.228888e-09 2.026908e-10 3.343152e-11 5.514145e-12
# [6] 9.094947e-13 1.500107e-13 2.474254e-14 4.080996e-15 6.731134e-16
#[11] 1.110223e-16
p/2
# [1] 7.450581e-09 1.228888e-09 2.026908e-10 3.343152e-11 5.514145e-12
# [6] 9.094947e-13 1.500107e-13 2.474254e-14 4.080996e-15
2018 Jun 22
1
Bug in as.Date or strptime?
Hello,
This just came up in SO, sessionInfo() at the end.
https://stackoverflow.com/questions/50988018/seeking-explanation-for-as-date-function-in-r?noredirect=1#comment88971055_50988018
# example 1
# not even the month is right
as.Date(x = 1, format = '%j', origin= '2015-01-01')
#[1] "2018-07-21"
# example 2a
# nonsense output
as.Date(x = 1, origin=
2005 Oct 31
2
Sweave (R?) font encoding problems
Dear R list,
I'm having some problems with font encodings when using R+Sweave+Latex in my
native language: Portuguese.
My environment:
Kubuntu 5.10 Linux
$> uname -a
Linux nassa 2.6.12-9-686 #1 Mon Oct 10 13:25:32 BST 2005 i686 GNU/Linux
R> R.version
_
platform i486-pc-linux-gnu
arch i486
os linux-gnu
system i486, linux-gnu
2020 Nov 01
0
strptime() keeps emitting warnings after establishing a handler with tryCatch()
Hello,
I cannot reproduce this behavior and, as documented, the posted code
doesn't issue warnings due to a wrong timezone but I'm running
sessionInfo()
R version 4.0.3 (2020-10-10)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.1 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.9.0
LAPACK:
2019 Jun 21
4
Calculation of e^{z^2/2} for a normal deviate z
You may want to look into using the log option to qnorm
e.g., in round figures:
> log(1e-300)
[1] -690.7755
> qnorm(-691, log=TRUE)
[1] -37.05315
> exp(37^2/2)
[1] 1.881797e+297
> exp(-37^2/2)
[1] 5.314068e-298
Notice that floating point representation cuts out at 1e+/-308 or so. If you want to go outside that range, you may need explicit manipulation of the log values. qnorm()
2019 Feb 01
3
nlminb with constraints failing on some platforms
Hello,
R 3.5.2 on ubuntu 18.04. sessionInfo() at the end.
Works with me, same results, cannot reproduce the error.
f <- function(x) sum( log(diff(x)^2+.01) + (x[1]-1)^2 )
opt <- nlminb(rep(0, 10), f, lower=-1, upper=3)
str(opt)
xhat <- rep(1, 10)
all.equal(opt$par, xhat, tol=0) # good: 5.53 e-7
#[1] "Mean relative difference: 5.534757e-07"
all.equal(opt$objective,
2019 Jun 23
2
Calculation of e^{z^2/2} for a normal deviate z
I agree with many the sentiments about the wisdom of computing very
small p-values (although the example below may win some kind of a prize:
I've seen people talking about p-values of the order of 10^(-2000), but
never 10^(-(10^8)) !). That said, there are a several tricks for
getting more reasonable sums of very small probabilities. The first is
to scale the p-values by dividing the
2019 Jul 15
4
Possible bug in `class<-` when a class-specific '[[.' method is defined
Hello,
Clean R 3.6.1 session on Ubuntu 19.04, RStudio 1.1.453. sessionInfo() at
the end.
I can reproduce this.
counttt <- 0
`[[.MYCLASS` = function(x, ...) {
counttt <<- counttt + 1
# browser()
x = NextMethod()
return(x)
}
df <- as.data.frame(matrix(1:20, nrow=5))
class(df) <- c("MYCLASS","data.frame")
counttt
#[1] 9
But there's more. I
2019 Jun 24
2
Calculation of e^{z^2/2} for a normal deviate z
>>>>> William Dunlap via R-devel
>>>>> on Sun, 23 Jun 2019 10:34:47 -0700 writes:
>>>>> William Dunlap via R-devel
>>>>> on Sun, 23 Jun 2019 10:34:47 -0700 writes:
> include/Rmath.h declares a set of 'logspace' functions for use at the C
> level. I don't think there are core R functions that call
2020 Aug 10
2
How to deal with multiple patches to the same file
I owe you a gala dinner at your favorite restaurant. Really.
A few questions:
Why did you 'git pull --rebase' when the branch was up-to-date? Is this just a safety habit?
I don't understand the pushing upstream. Since we use Phabricator, isn't that the job of the person who commits the patch?
Does git keep all my branches up-to-date with the origin? Say I come in tomorrow and
1999 Sep 22
0
New translations
Hello,
in the time since the relase of GnuPG 1.0, 2 new translation have been
done: pt_PT and id. They will be in the next version.
Please, if you want to do a translation, contact me first so that I
can coordinate the efforts.
werner
--
Werner Koch at guug.de www.gnupg.org keyid 621CC013
2019 Nov 08
2
Workflow to commit changes using git alone (?)
Hi all,
I have recently given commit access to LLVM and successfully pushed a test commit from my local master branch.
However, I can’t find which is the recommended workflow for committing more serious stuff using git alone. I have read the docs but everything seems to still require svn before bridging to github. I want to use git alone to commit a patch that I got reviewed.
I currently have
2020 Aug 10
2
How to deal with multiple patches to the same file
I think I understand the concepts, but I sure would appreciate a specific example, and I appreciate the offer. To make your life harder, could you start with what I should do given that I have not created a branch for the first patch? I just have the six files staged.
I have GitHub Desktop installed, if that makes any of the steps easier.
Thanks again, and no rush!
At 8/10/2020 10:07 AM,
2019 Nov 08
2
Workflow to commit changes using git alone (?)
Hi Hiroshi,
Thanks for that. I find “rebase” difficult to use. Maybe I don’t understand it, but it always causes a lot ‘conflicts’ that are very hard to fix according to my experience. I have another question though. LLVM requires that reviewed patches are pushed as a /single/ commit with a standardised message, particularly specifying the Differential Revision url as part of the commit message.
2019 Nov 10
2
Workflow to commit changes using git alone (?)
Hi Mehdi,
> On 10 Nov 2019, at 20:27, Mehdi AMINI <joker.eph at gmail.com> wrote:
>
> No: the arcanist command does not suffer from the problem I was raising.
> The issue I was referring to is that your reset command will lead to *undoing* changes from master (unrelated to your branch) when you commit in the end (all the changes that are in master but not in
2019 Nov 10
2
Workflow to commit changes using git alone (?)
> On 10 Nov 2019, at 07:00, Mehdi AMINI <joker.eph at gmail.com> wrote:
>
> recipe is not correct in the absolute: the delta from master does not mean it contains exactly what you want, you seem to assume that master didn't evolve between the time "patchbranch" was created.
>
Hi Mehdi,
I’m doing it this way to make sure that master /actually/ contains “exactly
2011 Sep 03
4
[LLVMdev] git Status Update?
On Sat, Sep 3, 2011 at 8:01 AM, FlyLanguage <flylanguage at gmail.com> wrote:
>> On Sep 1, 2011, at 3:15 PM, FlyLanguage wrote:
>>
>>>> Is that really true? I've heard of a lot of LLVM developers using git
>>>> but it all seems very opaque right now. That's why I hope to get people
>>>> talking so we can find out where everyone is and
2007 May 08
1
Sound files
Hello,
Can i identify the sound files that are played in the asterisk
console? I defined the verbose to 100 but i can not see the sound
files that are played in some situations... :(
For example, I need to know what files are played for the message:
"Extension xxx is unavailable...".
The goal is to translate that to Portuguese (pt_pt)...
Thanks in advance,
PS.
2008 Jul 28
1
RStem with portuguese language
Greetings,
I have R 2.7.1 in MacOs and I believe UTF encoding is already installed.
At least:
> Sys.getenv()
shows several variables, including:
LANG "pt_PT.UTF-8"
I installed the Rstem and tm packages and when I try the following code:
> wordStem(c("aberra??o","aberra??es"), language="portuguese")
[1] "aberra?\xc3"