spc

Reasoning about consecutive data points without using iteration

痞子三分冷 提交于 2020-02-20 12:32:22
问题 I am doing SPC analysis using numpy/pandas. Part of this is checking data series against the Nelson rules and the Western Electric rules. For instance (rule 2 from the Nelson rules): Check if nine (or more) points in a row are on the same side of the mean. Now I could simply implement checking a rule like this by iterating over the array. But before I do that, I'm checking here on SO if numpy/pandas has a way to do this without iteration? In any case: What is the "numpy-ic" way to implement a

How to generate a PKCS12 (.p12) from a .SPC (code signing certificate) and .PKCS12 (private key)?

≡放荡痞女 提交于 2020-01-23 18:38:42
问题 I have a code-signing certificate (SPC) file from GoDaddy. The file was generated from an existing private key: -----BEGIN RSA PRIVATE KEY----- MIIEpAIBAAKCAQEAvcG2SEalg9pvkTvtMI8cZg07tVA0RuK7LeGlFdk1smXgqrsH .... snipped .... MURwR0FXgNAuFNQ0yBNFNW2+o9uBceLuCSUalgi4pQw1uBmP5QkUYA== -----END RSA PRIVATE KEY----- I generated a certificate signing request and sent this to GoDaddy: -----BEGIN CERTIFICATE REQUEST----- MIICiDCCAXACAQAwQzFBMD8GCSqGSIb3DQEJARYyYXBwbGVAdGVrNC1uZXdtZWRp .... snipped .

How to generate a PKCS12 (.p12) from a .SPC (code signing certificate) and .PKCS12 (private key)?

…衆ロ難τιáo~ 提交于 2020-01-23 18:37:09
问题 I have a code-signing certificate (SPC) file from GoDaddy. The file was generated from an existing private key: -----BEGIN RSA PRIVATE KEY----- MIIEpAIBAAKCAQEAvcG2SEalg9pvkTvtMI8cZg07tVA0RuK7LeGlFdk1smXgqrsH .... snipped .... MURwR0FXgNAuFNQ0yBNFNW2+o9uBceLuCSUalgi4pQw1uBmP5QkUYA== -----END RSA PRIVATE KEY----- I generated a certificate signing request and sent this to GoDaddy: -----BEGIN CERTIFICATE REQUEST----- MIICiDCCAXACAQAwQzFBMD8GCSqGSIb3DQEJARYyYXBwbGVAdGVrNC1uZXdtZWRp .... snipped .

SPC - Control Charts by Group in R

岁酱吖の 提交于 2019-12-13 17:32:51
问题 I want to create a statistical process control chart for each Name in this dataframe and extract the rows that are out of control for each individual Name. Below is the dataframe: DATE <- as.Date(c('2016-06-18', '2016-06-19', '2016-06-20', '2016-06-21', '2016-06-22', '2016-06-23', '2016-06-24', '2016-06-25', '2016-06-26', '2016-06-27', '2016-06-28', '2016-06-29', '2016-06-30', '2016-06-18', '2016-06-19', '2016-06-20', '2016-06-21', '2016-06-22', '2016-06-23', '2016-06-24', '2016-06-25', '2016

How to generate a PKCS12 (.p12) from a .SPC (code signing certificate) and .PKCS12 (private key)?

[亡魂溺海] 提交于 2019-12-06 16:26:48
I have a code-signing certificate (SPC) file from GoDaddy. The file was generated from an existing private key: -----BEGIN RSA PRIVATE KEY----- MIIEpAIBAAKCAQEAvcG2SEalg9pvkTvtMI8cZg07tVA0RuK7LeGlFdk1smXgqrsH .... snipped .... MURwR0FXgNAuFNQ0yBNFNW2+o9uBceLuCSUalgi4pQw1uBmP5QkUYA== -----END RSA PRIVATE KEY----- I generated a certificate signing request and sent this to GoDaddy: -----BEGIN CERTIFICATE REQUEST----- MIICiDCCAXACAQAwQzFBMD8GCSqGSIb3DQEJARYyYXBwbGVAdGVrNC1uZXdtZWRp .... snipped .... nJwd9pSDPuYaNHl33N1BJkXFusG7ta0D6UjisA== -----END CERTIFICATE REQUEST----- GoDaddy then returned me

关于之前玩emacs记的些笔记

左心房为你撑大大i 提交于 2019-12-03 02:53:54
spacemacs SPC SPC M-x TAB last buffer ' open shell * search current word in project / search project 1-9 select window ; evil comment ? show keybinding v expand regions f1 helm apropos SPC a d dired o org mode SPC b b list buffers d kill this buffer e safe erase buffer f reveal in osx finder h switch to home buffer m switch to message buffer N n new empty buffer x kill buffer and window P copy clipboard to whole buffer Y copy whole buffer to clipboard C-d kill other buffers SPC d d dash at point SPC e l flycheck error list SPC f A find file and repalce buffer C d/u unix2dos/dos/2unix c copy

[SOJ482]【SPC #2】重要的二元组 ~ Important Pairs

半世苍凉 提交于 2019-12-01 10:20:53
题意简述:给定集合 \(\{1, 2, \ldots, n\}\) ,求至少删去几个数后,不存在集合中的 \(i, j\) 和正整数 \(k\) ,使得 \(i+j=2^k\) , \(q\) 组询问。 \(1\leq q\leq 10^6, 1\leq n\leq 10^9\) 。 原题条件等价于对任意正整数 \(k\) 和 \(l\) , \(2^k+l\) 和 \(2^k-l\) 中至少一个数不存在。 从大到小考虑每个 \(k\) ,显然对于 \(2^k\pm l\) ,优先删除 \(2^k-l\) 更优。因此我们维护一个值 \(\rm{last}\) ,表示对于当前的 \(k\) ,最大的 \(\rm{last}\) 个数已经被删除。初始 \(\rm{last}=0\) ,每次操作时分类讨论: \(\rm{last}\geq 2^k\) :被删除的部分已经将 \(2^k\) 的管辖范围完全覆盖,本次不需删除任何数, \(\rm{last}=\rm{last}-k\) 。 \(\rm{last}\leq 2^k\) :需要向左删除 \(2^k-1-\rm{last}\) 个数, \(\rm{last}=2^k-1-\rm{last}\) 。 单次询问复杂度 \(O(\log n)\) 。 #include <bits/stdc++.h> #define R register

Joining GoDaddy-issued .spc and .key files into a complete .pfx / .cer certificate

爷,独闯天下 提交于 2019-11-29 20:30:36
I have a GoDaddy-issued code signing certificate in a .spc file. Also, I have a private key in .key file. The code signing has been issued some 13 months ago, then it expired and was renewed with GoDaddy. During the renewal process no private key was requested and just a new .spc file was issues. Now I'm facing the problem of joining the original private key file with the issues certificate to form a .pfx (or .cer ?) file suitable for installation into the Windows certificate store. The command I'm trying is: openssl.exe pkcs12 -inkey my.key -in my.spc -out my.pfx -export However, I'm getting

Joining GoDaddy-issued .spc and .key files into a complete .pfx / .cer certificate

非 Y 不嫁゛ 提交于 2019-11-28 16:03:07
问题 I have a GoDaddy-issued code signing certificate in a .spc file. Also, I have a private key in .key file. The code signing has been issued some 13 months ago, then it expired and was renewed with GoDaddy. During the renewal process no private key was requested and just a new .spc file was issues. Now I'm facing the problem of joining the original private key file with the issues certificate to form a .pfx (or .cer ?) file suitable for installation into the Windows certificate store. The

SpringData JPA-JpaSpecificationExecutor接口

﹥>﹥吖頭↗ 提交于 2019-11-28 01:29:12
一)单条件查询 JpaSpecificationExecutor接口的使用一般要和Repository体系的接口一起使用 JpaSpecificationExecutor接口源码 public interface JpaSpecificationExecutor<T> { T findOne(Specification<T> var1); //查询一个 List<T> findAll(Specification<T> var1);//条件产讯 Page<T> findAll(Specification<T> var1, Pageable var2);//分页查询 List<T> findAll(Specification<T> var1, Sort var2);//排序查询 long count(Specification<T> var1);//计数查询 } 原因: 在讲述原理的时候Dao对象其实是注入了一个代理对象,通过继承Repository体系接口完成代理对象SimpleJpaRepository实现类对象的注入。而JpaSpecificationExecutor对象不在Repository接口体系内那么就无法完成对象注入,所以要使用JpaSpecificationExecutor对象必须要实现Repository体系接口 1.1)测试单条件查询