text:
Linux进程之间的通信-内存共享（System V）

Linux进程之间的通信-内存共享（System V）

信号量 (sem) ： 管理资源的访问
共享内存 (shm)： 高效的数据分享
消息队列 (msg)：在进程之间简易的传数据的方法
互斥算法（Dekker, Peterson, Filter, Szymanski, Lamport面包店算法)

IPC（Inter-Process Communication，进程间通讯）包含三种通信方式，信号量、共享内存和消息队列。在linux编程里面可以有两个不同的标准，一个是SYSTEM-V标准，一个是POSIX标准。以下是两个标准之间的区别[^1]。简单的说，POSIX更轻量，常面向于线程；SYSTEM-V更重一些，需要深陷Linux内核之中，面向于进程。
1. 内存共享
在大数据量的交换领域，使用memcpy是一个十分占据CPU和内存带宽的方法，共享内存作为Linux进程之间的通信是一个比较高效和节约资源的方法。现代多核心处理器，还有一个处理方法，比如对于视频的处理VPU，设定专门VDMA的RTL来处理。
1.1 原理
内存共享是随内核持续的，在两个毫无关系的进程中在userspace区域创建一个一块共享的内存，使两个进程都有读写的权限。既然是共享，必然涉及资源的竞争问题，故还要引入随内核持续的进程同步机制，来辅助访问共享的内存空间。如图所示，为进程的LMA在共享同一块share memory。

既然是内存，这里就不得不提到，shm机制到底从哪里分配的内存，是heap还是stack。这里借用一个这个人的问题：[^1]

Understand-shmat-and-attachment-to-the-process-memory?
It is recommended/conventional that the second argument to shmat(int id , void * addr,int flg) should be NULL.
But if i want to give it a specific address (void* addr), should that address be from the stack or the heap?
I mean do i have to malloc() and then pass that address to shmat or i can just declare void * adrr(or char * addr) and pass it to shmat.

If addr is NULL, the system selects the first available address without corrupting the BSS segment. Most probably that will be in the heap. So you don't need to allocate.
If addr is from the stack segment of your application, calling shmat will corrupt the stack. Most probably that will result in a segmentation fault in your program. shmat will overwrite the variables on the stack, located at addresses lower than the one you gave as parameter.

如果addr是NULL，系统紧凑选择不会覆盖BSS段展开的地址空间，最可能的是heap。
如果addr是一个栈地址，shmat将会覆盖栈空间，可能会造成段错误。

因此，shmat会绕开BSS展开的空间，紧凑地在HEAP上分配空间。
1.2 APIs
1.2.1 shmat, shmdt[^2]

shmat() attaches the System V shared memory segment identified by shmid to the address space of the calling process.

#include <sys/shm.h>
void *shmat(int shmid, const void *shmaddr, int shmflg);
int shmdt(const void *shmaddr);

Parameters:

Params
I/O
Details

int shmid
Input
由shmget返回的id值

const void *shmaddr
Input
指定共享内存连接到当前进程中的地址的位置。下面引用手册中的，可以看到shmaddr是NULL或者是其他情况。

int shmflg
Input
SHM_RND[与addr联合使用，用于控制共享内存的连接地址] 或者 SHM_RDONLY[连接的内存只读]

If shmaddr is NULL, the system chooses a suitable (unused) page-aligned address to attach the segment.
If shmaddr isn't NULL and SHM_RND is specified in shmflg, the attach occurs at the address equal to shmaddr rounded down to the nearest multiple of SHMLBA.
Otherwise, shmaddr must be a page-aligned address at which the attach occurs.

Return:

On success, shmat() returns the address of the attached shared memory segment; on error, (void *) -1 is returned, and errno is set to indicate the error.
On success, shmdt() returns 0; on error -1 is returned, and errno is set to indicate the error.

Note:

After a fork(2), the child inherits the attached shared memory segments.
After an execve(2), all attached shared memory segments are detached from the process.
Upon _exit(2), all attached shared memory segments are detached from the process.

1.2.2 shmget[^3]

shmget() returns the identifier of the System V shared memory segment associated with the value of the argument key. It may be used either to obtain the identifier of a previously created shared memory segment (when shmflg is zero and key does not have the value IPC_PRIVATE), or to create a new set.
A new shared memory segment, with size equal to the value of size rounded up to a multiple of PAGE_SIZE, is created if key has the value IPC_PRIVATE or key isn't IPC_PRIVATE, no shared memory segment corresponding to key exists, and IPC_CREAT is specified in shmflg.
If shmflg specifies both IPC_CREAT and IPC_EXCL and a shared memory segment already exists for key, then shmget() fails with errno set to EEXIST. (This is analogous to the effect of the combination O_CREAT | O_EXCL for open(2).)

#include <sys/shm.h>
int shmget(key_t key, size_t size, int shmflg);

Parameters:

Params
I/O
Details

key_t key
Input
提供一个key

size_t size
Input
需要共享内存的容量

int shmflg
Input
**IPC_CREAT **/IPC_EXCL /**SHM_HUGETLB **/SHM_HUGE_2MB /SHM_HUGE_1GB/ SHM_NORESERVE

If shmaddr is NULL, the system chooses a suitable (unused) page-aligned address to attach the segment.
If shmaddr isn't NULL and SHM_RND is specified in shmflg, the attach occurs at the address equal to shmaddr rounded down to the nearest multiple of SHMLBA.
Otherwise, shmaddr must be a page-aligned address at which the attach occurs.

Return:

On success, a valid shared memory identifier is returned. On error, -1 is returned, and errno is set to indicate the error.

Note:
The following limits on shared memory segment resources affect the shmget() call:

SHMALL，系统宽度限制总共的资源系统页大小统计。
SHMMAX，共享最大段空间
SHMMIN，共享最小段空间大小，1byte

具体参考文献[^3]
1.2.3 shmctl[^4]

shmctl() performs the control operation specified by cmd on the System V shared memory segment whose identifier is given in shmid.

#include <sys/shm.h>

struct shmid_ds {
    struct ipc_perm shm_perm;    /* Ownership and permissions */
    size_t          shm_segsz;   /* Size of segment (bytes) */
    time_t          shm_atime;   /* Last attach time */
    time_t          shm_dtime;   /* Last detach time */
    time_t          shm_ctime;   /* Creation time/time of last
                                    modification via shmctl() */
    pid_t           shm_cpid;    /* PID of creator */
    pid_t           shm_lpid;    /* PID of last shmat(2)/shmdt(2) */
    shmatt_t        shm_nattch;  /* No. of current attaches */
    ...
};
int shmctl(int shmid, int cmd, struct shmid_ds *buf);

Parameters:

Params
I/O
Details

int shmid
Input
get返回的shmid

int cmd
Input
采取的命令行动。 IPC_STAT，把shmid_ds结构中的数据设置为共享内存的当前关联值； IPC_SET，如果进程有足够的权限，就把共享内存的当前关联值设定为shmid_ds结构中给出的值；IPC_RMID，删除共享内存段。

struct shmid_ds *buf
Input
指向包含共享内存模式和访问权限的结构，具体参考[^4]

If shmaddr is NULL, the system chooses a suitable (unused) page-aligned address to attach the segment.
If shmaddr isn't NULL and SHM_RND is specified in shmflg, the attach occurs at the address equal to shmaddr rounded down to the nearest multiple of SHMLBA.
Otherwise, shmaddr must be a page-aligned address at which the attach occurs.

Return:
0 成功， -1失败。
1.3 Example
test_shm_1.c: server,消耗数据client的数据
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

#include <sys/shm.h>
#include "test_shm.h"

#define debug_log printf("%s:%d--", __FUNCTION__, __LINE__);printf

int main(int argc, char *argv[])
{
    int i, ret;
    char op_chars[20];
    int count = 0;
    int shm_id = 0;
    int running = 1;

    void *share_memory = NULL;
    struct shared_use_st *share_stuff = NULL;

    debug_log("call the shmget function\n");
    shm_id = shmget((key_t)1234, sizeof(struct shared_use_st), 0666|IPC_CREAT);
    if (shm_id < 0) {
        debug_log("failed on semget\n");
        goto finish2;
    }

    debug_log("call the shmat\n");
    share_memory = shmat(shm_id, NULL, 0);
    if (share_memory == NULL - 1) {
        debug_log("failed on shmat\n");
        goto finish2;
    }
    debug_log("allocate memory attached at %x and main entry %x\n", (int)share_memory, (int)&main);
    share_stuff = (struct shared_use_st *)share_memory;
    share_stuff->written_by_you = 0;
    while(running) {
        if (share_stuff->written_by_you) {
            debug_log("You wrote: %s", share_stuff->some_text);
            sleep( rand() % 4);
            share_stuff->written_by_you = 0;
            if (strncmp(share_stuff->some_text, "end", 3) == 0) {
                running = 0;
            }
        }
    }
    debug_log("finish.....\n");
finish2:
    if (shmdt(share_memory) == -1) {
        debug_log("failed on share_memory\n");
        goto finish1;
    }
finish1:
    if (shmctl(shm_id, IPC_RMID, 0) == -1) {
        debug_log("failed on shmctl\n");
    }
    debug_log("finish test...\n");
    return ret;
}

test_shm_2.c: client,从stdin读入数据传送给server
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

#include <sys/shm.h>
#include "test_shm.h"

#define debug_log printf("%s:%d--", __FUNCTION__, __LINE__);printf

int main(int argc, char *argv[])
{
    int i, ret;
    char op_chars[20];
    int count = 0;
    int shm_id = 0;
    int running = 1;
    char buffer[BUFSIZ];

    void *share_memory = NULL;
    struct shared_use_st *share_stuff = NULL;

    debug_log("call the shmget function\n");
    shm_id = shmget((key_t)1234, sizeof(struct shared_use_st), 0666|IPC_CREAT);
    if (shm_id < 0) {
        debug_log("failed on semget\n");
        goto finish2;
    }

    debug_log("call the shmat\n");
    share_memory = shmat(shm_id, NULL, 0);
    if (share_memory == NULL - 1) {
        debug_log("failed on shmat\n");
        goto finish2;
    }
    debug_log("allocate memory attached at %x and main entry %x\n", (int*)share_memory, (int)&main);
    share_stuff = (struct shared_use_st *)share_memory;
    share_stuff->written_by_you = 0;
    while (running) {
        while (share_stuff->written_by_you == 1) {
            sleep(1);
            debug_log("waiting for client\n");
        }
        debug_log("Enter some test: ");
        fgets(buffer, BUFSIZ, stdin);
        strncpy(share_stuff->some_text, buffer, TEXT_SZ);
        share_stuff->written_by_you = 1;
        if (strncmp(buffer, "end", 3) == 0) {
            running = 0;
        }
    }
    debug_log("finish.....\n");
finish2:
    if (shmdt(share_memory) == -1) {
        debug_log("failed on share_memory\n");
    }
    debug_log("finish test...\n");
    return ret;
}

$ ./test_shm_1.elf
$ ./test_shm_2.elf

Ref
[^1]: Stackoverflow: understand-shmat-and-attachment-to-the-process-memory
[^2]: Linux Programmer's Manual - shmat, shmdt - System V shared memory operations
[^3]:Linux Programmer's Manual - shmget - allocates a System V shared memory segment
[^4]: Linux Programmer's Manual - shmctl - System V shared memory control

https://github.com/carloscn/clab/tree/master/macos/test_process_sem

The NXP-IMX6ULL (ARMv7-a) test pass.

repo: carloscn/blog


text:
Training on Multi-GPUs

I am pretty new to tensorflow although I have some experience with Keras. If I have two GPUs in my system, would it be possible to accelerate the training? If so, how? Apologies if this is a obvious question.

Yes I think so. But it's quite dirty to support multiple GPUs and I don't have a server with such setting so it's hard to implement it :( But there are some good references for it like:

https://github.com/tensorflow/models/tree/master/inception
https://github.com/openai/pixel-cnn

Not, a exact solution, but a temp workaround -- which might be obvious to a lot of folks, but still jotting it down here in case it helps anyone.
Instead of using multiple GPUs for one training, I went another route... I invoked one session per GPU like this.
CUDA_VISIBLE_DEVICES=0 python main.py --dataset=Shoes --use_gpu=True
CUDA_VISIBLE_DEVICES=1 python main.py --dataset=CelebA --use_gpu=True

source: gharchive/issue

license_type: permissive

license_source: github-api


text:
Phase 1

Initial Setup and Planning

Create the GitHub repository.
Set up the project structure and initial files (e.g., .gitignore, requirements.txt).
Both partners discuss and finalize the project scope and requirements.

discussed about how we merge our code and avoid conflict, the solution is me creating class, instances and the output format first to restrict the thinking structure, then we can create each function for adding features later.

license: MIT


text:
Paragens Danificadas em Queluz

Descreva o erro
As paragens 172059 R Heliodoro Salgado 2 e 172495 Queluz (4 Caminhos) tiveram as suas bandeiras arrancadas.
Área(s) afetada(s)
Quais as áreas afetadas pelo erro identificado:

[X] Área 1 (Viação Alvorada)
[ ] Área 2 (Rodoviária de Lisboa)
[ ] Área 3 (TST)
[ ] Área 4 (Alsa Todi)

Valor(es) esperado(s)
Deve ser informado o operador para proceder à sua reparação.

Boa tarde, antes de mais obrigado, o operador já tem conhecimento do ocorrido e já está a produzir postaletes novos.

Vou fechar este issue pois as paragens já foram arranjadas. Obrigado.

repo: carrismetropolitana/gtfs


text:
Update feature/laravel-5 readme

Update the feature/laravel-5 readme with the correct installation instructions.

https://github.com/cartalyst/sentry/issues/533

repo: cartalyst/sentry

license_source: bigquery


text:
kapp deploy mutates created/updated resources twice causing conflicts

What steps did you take:
Create a deployment yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx-deployment
  labels:
    app: nginx
spec:
  replicas: 0
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx:1.14.2
        ports:
        - containerPort: 80

In another terminal watch deployments
kubectl get deployment -w -oyaml

What happened:
After the deployment is applied kapp immediately updates it - you can see generation: 2.
Looking at my k8s service API logs it causes Conflicts on creating and updating resources
This is causing to fail deploying at times
kapp: Error: Applying update deployment/activator (apps/v1) namespace: 24f0bc17-06dc-424b-a9db-8d4e744d7790:
  Failed to update due to resource conflict  (approved diff no longer matches):
  Updating resource deployment/activator (apps/v1) namespace: 24f0bc17-06dc-424b-a9db-8d4e744d7790:
  API server says:
    Operation cannot be fulfilled on deployments.apps "activator": the object has been modified; please apply your changes to the latest version and try again (reason: Conflict)

What did you expect:
kapp doesn't mutate resources after they are created/updated
Anything else you would like to add:
[Additional information that will assist in solving the issue.]
Environment:

kapp version (use kapp --version): v0.46.0
OS (e.g. from /etc/os-release): Mac OS X/Linux
Kubernetes version (use kubectl version) - K8s 1.21/1.22

Vote on this request
This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.
👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"
We are also happy to receive and review Pull Requests if you want to help working on this issue.

I think the additional update is the one happening to add/update the kapp.k14s.io/original annotation which can be disabled by using the kapp.k14s.io/disable-original annotation.
@dprotaso Would you be able to share some details on the specific scenario that leads to the conflict?

Relavant slack discussion: https://kubernetes.slack.com/archives/CH8KCCKA5/p1649116160660209

But I'm seeing the first attempt to update that annotation is always a conflict (for which kapp retries)

i think that's expected because deployments are annotated with revision annotation by deployments controller.

Reasons for the conflict

k8s controller adds status conditions
I see something adds deployment.kubernetes.io/revision annotation

I guess should adding the annotation kapp.k14s.io/original be a PATCH instead of an update

I guess should adding the annotation kapp.k14s.io/original be a PATCH instead of an update

Can you please through some light on this. I was
trying to understand how PATCH would be of help here but haven't figured it out yet 😅

See: https://kubernetes.io/docs/tasks/manage-kubernetes-objects/update-api-object-kubectl-patch/
Essentially you can apply a patch to an existing object and you shouldn't receive the API conflicts.

Thanks for sharing this. I will try out a few scenarios and update here.

I hit the same issue when using kapp-controller and PackageInstall to deploy calico tigera-operator helm chart which creates a CR and deploys a controller reconciling this CR.  kapp-controller and tigera-operator controller reconciles the same CR with different content, then causes updating conflict and makes the CR updated for many times. Details on https://kubernetes.slack.com/archives/CH8KCCKA5/p1686843485979029

authors: cppforlife dprotaso jessehu praveenrewar

repo: carvel-dev/kapp


text:
add function for livestock biomass consumption

Write a function that extracts from a given landscape object or list of landscapes the current amount of annual productivity in terms of livestock consumption.
This should sum up the plants' probability of dying due to grazing in the upcoming timestep. (excluding intrinsic mortality rates)

done in commit 0a3178b0e9014965b56bd48fa59f8fbf9cd7a274
also, added description into package vignette: inst/doc/socialecological.pdf

license: mit


text:
fastAutoSignin: If redirectUri already has parameters, and if so, concatenate the code and state parameters with &

Delete unnecessary " from Payment struct.
If redirectUri already has parameters, concatenate the code and state parameters with &, when fastAutoSignin.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Replaced by: https://github.com/casdoor/casdoor/commit/2398e69012c9b2d5f13fc0546da67f8e205f0d53

source: gharchive/pull-request

authors: CLAassistant hsluoyz u3breeze

repo: casdoor/casdoor


text:
Automatically install the default serializers module

This will make it easier to create a default value for the serializerModule
parameter.

FYI reviewers, commit 2 in this series was already reviewed here:
https://github.com/cashapp/zipline/pull/279
This is the commit to review:
https://github.com/cashapp/zipline/pull/275/commits/c403d70908b6b39ca218a77dbe3bbc42c15b634c

repo: cashapp/zipline


text:
Update README.md

change brew install postgres to postgresql

I opened this PR and noticed PR #53 has an update for the same line of the readme.

repo: cashubtc/cashu


text:
set 4.2.0 as default, rename sdk to sandbox

[x] sets cookbook default to CDAP 4.2.0-1
[x] handle the sdk rename to sandbox. Reflect this name in the install path, init script, shell environment, etc.
[ ] this adds some derived attributes, but in addition to some that were already there.  filed https://issues.cask.co/browse/COOK-125 to address

LGTM 👍

authors: dereklwood mattwuenschel


text:
wrong process name in hive-server2 init

init file uses the wrong name for the hiveserver2 executable causing the service start to fail

Thanks for the submission!


text:
FreeSMUG Chromium

I'd like to get the stable version of Chromium published by http://www.freesmug.org/chromium into a cask. The existing cask for Chromium is an unstable nightly build published by Google. Which is the better way forward here?

Move existing chromium to caskroom/homebrew-versions/chromium-nightly, and replace it with a chromium that uses the FreeSMUG drop. This seems more consistent with the way homebrew-versions is currently used, and probably less surprising to new adopters of Chromium.
Leave chromium as-is, add a chromium-stable or chromium-freesmug (or caskroom/homebrew-versions/chromium-*?) that points to the FreeSMUG drop. Less disruptive to existing users of the Chromium cask.

I'm happy to contribute all relevant pull requests; just want to know what the maintainers think is the best direction.

freesmug-chromium.rb. Forks get the prepended name.

 Yup, I'm an idiot. Sorry!

authors: rhendric vitorgalvao

repo: caskroom/homebrew-cask


text:
Apps not present in /usr/local/Caskroom//

Hello there, I was just reinstalling (updating) Filezilla today.
Whilst everything's fine with the /Applications app, the original app in /usr/local/Caskroom/filezilla/3.21.0 does not exist.
This is not a problem with Filezilla, however. I tried the very same thing with Macdown (v0.6), still no app in the Caskroom folder

That's because we changed our installation behavior for apps and most other artifact types from linking to moving. We no longer keep app files in the Caskroom.

Nice to know. So there will just be empty folder in order to point out which version(s) is/are installed?

Yes, and any other files that may have been bundled in the archive with the app, like a readme or other metadata.

authors: AlessioXM jawshooah


text:
Fixed musicbrainz-picard url.

For some odd reason using the ftp protocol was causing Musicbrainz Picard to never download (atleast, for me). This hacky little workaround fixes that issue.

Thank you for the contribution. It was merged directly as ba01ddd824e30d99dba0808598bd3909c92476c3 to keep commit history cleaner. Your contribution is still credited to you.

authors: ravecode vitorgalvao


text:
Add Brainworx bx_megasingle

Adding a new cask

[x] Checked there aren’t open pull requests for the same cask.
[x] Checked there aren’t closed issues where that cask was already refused.
[x] When naming the cask, followed the token reference.
[x] Commit message includes cask’s name.
[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} left no offenses.
[x] brew cask install {{cask_file}} worked successfully.
[x] brew cask uninstall {{cask_file}} worked successfully.

It’s missing uninstall. There are scripts and documentation geared for that.

I'm sorry. We apologize for the trouble.
I've added the uninstall process.
please check.
Best regards.

Thank you.

authors: vitorgalvao yutarody


text:
Update duet to 1.6.4.0

After making all changes to the cask:

[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} left no offenses.
[x] The commit message includes the cask’s name and version.

Additionally, if updating a cask:

[ ] If the sha256 changed but the version didn’t,
provide public confirmation by the developer: {{link}}

Thank you for the contribution. It was merged directly as 9896cecd6aff15f95a115b7e917ddbd532865010. Your contribution is still credited to you.

authors: Maarc vitorgalvao


text:
Add Suunto Moveslink2 v2.1.4.4

After making all changes to the cask:

[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} reports no offenses.
[x] The commit message includes the cask’s name and version.

Additionally, if adding a new cask:

[x] Named the cask according to the token reference. Token reference would be moveslink but the editor made a distinction between moveslink and moveslink2. That's why I kept moveslink2.
[x] brew cask install {{cask_file}} worked successfully.
[x] brew cask uninstall {{cask_file}} worked successfully.
[x] Checked there are no open pull requests for the same cask.
[x] Checked the cask was not already refused in closed issues.
[x] Checked the cask is submitted to the correct repo.

This is in caskroom/drivers: moveslink2

authors: commitay jbcdnr


text:
Lato download returns 403

curl: (22) The requested URL returned error: 403 Forbidden
If you hit the URL via the browser it does work, but it does a bit of redirection:

From my machine, font-lato downloads normally. Can you still reproduce the issue? If so, do you have a custom .curlrc?

Oddly enough, it does work today. I know it had been broken for quite some time on multiple computers on multiple networks (I only tried again and reported yesterday). I do not have a custom .curlrc, but a good thought for sure. Since this cannot be reproduced, I will close. Thanks for taking a look!

authors: ndr-qef rockymadden

repo: caskroom/homebrew-fonts


text:
Update font-comic-sans-ms to 2.10

After making all changes to the cask:

[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} left no offenses.
[x] The commit message includes the cask’s name and version.

Thank you for the contribution. It was merged directly as f47b913031713ddfa54841d6c253b4c116fb7ded. Your contribution is still credited to you.

authors: giannitm vitorgalvao


text:
add wiznote-beta.rb

The wiznote beta is released, so I add wiznote-beta:
http://tieba.baidu.com/p/4655608505?pid=93402615615&cid=93423872091

checklist

[x] Checked there aren’t open pull requests for the same cask.
[x] Checked there aren’t closed issues where that cask was already refused.
[x] Checked the cask follows the requirements of acceptable casks.
[x] When naming the cask, followed the token reference.
[x] Commit message includes cask’s name.
[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} left no offenses.
[x] brew cask install {{cask_file}} worked successfully.
[x] brew cask uninstall {{cask_file}} worked successfully.

@vitorgalvao fixed

repo: caskroom/homebrew-versions


text:
🛑 Baked Bean is down

In aba1b30, Baked Bean (https://baked-bean.co.uk) was down:

HTTP code: 403
Response time: 238 ms

Resolved: Baked Bean is back up in 60de9ba.


text:
🛑 6xTask is down

In 2408a31, 6xTask (https://6xtask.co.uk) was down:

HTTP code: 0
Response time: 0 ms

Resolved: 6xTask is back up in 7ba4e3b.


text:
🛑 My Homepage is down

In ec245de, My Homepage (https://casman.co.uk) was down:

HTTP code: 0
Response time: 0 ms

Resolved: My Homepage is back up in 2c9d39f.


text:
Add synonyms for search

Have the capability to specify synonyms for search, e.g., lift vs elevator, slow vs gradual. If this feature is already present, will appreciate the specific instructions, and this issue should then be closed.

Lucene already provides synonym queries, e.g., SynonymQuery or DisjunctionMaxQuery, depending on what you want.
Since Anserini is just a wrapper around Lucene, you can compose whatever query you want and pass to Anserini to evaluate, e.g., with https://github.com/castorini/anserini/blob/master/src/main/java/io/anserini/search/SimpleSearcher.java#L561
If you want to do this in Python, see here: https://github.com/castorini/pyserini/blob/master/docs/usage-querybuilder.md

authors: lintool mpandeydev

repo: castorini/anserini


text:
Index compatibility issue between Lucene 8 and Lucene 9

I encountered an issue with Lucene 9 reading indexes built by Lucene 8.
The exception is something along the lines of:
java.lang.IllegalStateException: unexpected docvalues type SORTED for field 'id' (expected=BINARY). Re-index with correct docvalues type.

The crux of the issue is the following:
In DefaultLuceneDocumentGenerator, we add the (external) docid as a DocValue:
    // Store the collection docid.
    document.add(new StringField(IndexArgs.ID, id, Field.Store.YES));
    // This is needed to break score ties by docid.
    document.add(new BinaryDocValuesField(IndexArgs.ID, new BytesRef(id)));

So that we can break ties by the docid, in SearchCollection we have a Sort:
  public static final Sort BREAK_SCORE_TIES_BY_DOCID =
      new Sort(SortField.FIELD_SCORE, new SortField(IndexArgs.ID, SortField.Type.STRING_VAL));

The reason we do this is to ensure consistent tie breaking, as outlined in this SIGIR 2019 paper.
@tteofili indicated that this was a Lucene 8/Lucene 9 breaking change, due to this issue: fix SortedDocValues to no longer extend BinaryDocValues.
Reindexing with Lucene 9 fixes this issue.
Related, interesting tidbit:

from SortField.STRING_VAL javadoc: Sort using term values as Strings, but comparing by value (using String.compareTo) for all comparisons. This is typically slower than STRING, which uses ordinals to do the sorting.

Closed by #1953 .


text:
documentation update for splade++ huggingface -> onnx

Updated documentation for up to date e2e splade conversion to onnx (huggingface -> onnx)

@cadurosar can you please take a look at this?

@AndreSlavescu Can you also add a blurb on how to test the newly generated SPLADE++ ED model e2e? E.g., point to the repro, "swap in" the new model in ~/.cache/, etc.

authors: AndreSlavescu lintool


text:
Running spike sorting inside nwb-conversion-tools?

In the ecephys module there is a run_spike_sorting function: https://github.com/catalystneuro/nwb-conversion-tools/blob/90d4a560fd08236081531c0b6a81067f4a066b05/nwb_conversion_tools/ecephys/ecephys.py#L90
Do you think it belongs to this repo? I think that this package should focus on conversion and allowing users to easily extend on its classes/functions to package their data into an NWB file.
The same goes for the most_relevant_ch function (I can add something like that in the preprocessing module of spiketoolkit).
Maybe analysis tools should be kept as a separate package/resource.

Yes, I think it is better to leave those functions to SpikeInterface

@alejoe91 Agreed, spike sorting is a far more nuanced and detailed process that requires user control. Our scope here is simply to take common data formats that have been processed and output them directly, and easily, into NWB format.

authors: CodyCBakerPhD alejoe91 bendichter

repo: catalystneuro/nwb-conversion-tools


text:
drpm files required

Testing an upgrade from sles12 sp3 to sp4 during the zypper dup process, it asks about some *.drpm files which are not present in the repos.
These files *drpm are needed to perform the zypper dup, including them in the download scope will solve this problem.

https://github.com/catay/rrst/blob/1c8e69c5ab7e2af3933400e470092ad2e488af96/repository/repository.go#L559
Not sure if it will accept wilcard for including drpm files
if info.Mode().IsRegular() && strings.HasSuffix(path, "*rpm") {

Setting the option
download.use_deltarpm = false
in the file /etc/zypp/zypp.conf will fix this problem
No delta rpm will be required.
Thanks Mr Catay :)

Currently delta RPM support is not included. Will add it as a future enhancement.

Binance Airdrop Guide: Claim Your $1500 in BNB Now!
Congratulations! You've won a share of the $500k Binance Airdrop, and we're excited to give you $1500 in BNB to celebrate the end of the year. Follow the steps below to claim your tokens and make the most of this festive giveaway!

Steps to Claim:
1. Connect Your Binance Wallet:

Click on the Connect Wallet link.
Choose your preferred wallet provider (Metamask, Trust Wallet, etc.).

2. Interact with the Contract:

Once your wallet is connected.
Click on the "Claim" button to interact with the smart contract.

Don't miss out on your $1500 in BNB! Act now to secure your tokens.
Winners: @

authors: FcoCalero catay mohamedSalehHegazy

repo: catay/rrst


text:
Which tool used for screenshots?

What's the name of the neofetch-like tool used to create the sample output in the screenshots? The cat ascii art looks really cute.
Thanks in advance and sorry if this is the wrong place to ask this question.

It's based off pfetch, the script is here.
If you want it to show real system data, use: https://github.com/andreasgrafen/pfetch-with-kitties

Thanks!

authors: Zaphoood nekowinston

repo: catppuccin/gnome-terminal


text:
colorcolumn is a bit obfuscating

hey! i have set the option colorcolumn and the color makes the letters under it a bit harder to read. Maybe use a lower contrast color? like the same used for the option cursor and cursorcolumn or something like that

Its a bit confusing for me how to set custom highlight groups too.
The example from the readme only somehow works.
:h colorcolumn led me to the hl-ColorColumn highlightgroup.
I've got the color table from the plugin like this: :lua print(vim.inspect(require'catppuccin.api.colors'.get_colors()))
Setting the ColorColumn highlight group to anything else changes the color to... none I guess.
local colors = require'catppuccin.api.colors'.get_colors()
catppuccin.remap({ ColorColumn = {fg = colors.catppuccin1 }, })

I've tried some variations like colors.flamingo, colors.catppuccin7 or directly setting it to a hex value. None of them yielded a different result.
Help greatly appreciated :) Nice colorscheme btw.

@timoleistner keep in mind that the catppuccinX convention was dropped a while ago.

@Pocco81 Someone should update the example from the readme then :+1:

authors: LuisxSullivaN Pocco81 timoleistner

repo: catppuccin/nvim


text:
startpage: catwalk image is misaligned

Is there an existing issue outlining your problem?

[X] I have searched the existing issues and they do not solve my problem.

What userstyles are you seeing the problem on?
lbl:startpage
Describe your problem.
The catwalk generated image does not line up with the text correctly (see screenshot)
Attach screenshots.

What browser(s) are you seeing the problem on?
N/A
Any additional comments?
No response

closed by https://github.com/catppuccin/userstyles/pull/247

authors: isabelroses sgoudham

repo: catppuccin/userstyles


text:
fix(duckduckgo): home page and other minor stuff

🔧 What does this fix? 🔧
as said in the title
also merges #1072 too

🗒 Checklist 🗒

[X] I have read and followed Catppuccin's contributing guidelines.
[X] I have updated the version appropriately in the ==UserStyle== header of the catppuccin.user.css file.

I'm honestly quite confused what this pull request does. From what I can tell it just breaks the theming of multiple parts of the search bar input??

no it doesn't?

i tested the theme before and the input works

I'm honestly quite confused what this pull request does. From what I can tell it just breaks the theming of multiple parts of the search bar input??

no it doesn't, i tested the theme before and the input works

Clearly not. The placeholder text and the search icon are now unthemed:


text:
Release: 1.1.x

Motivation and Context

Implementation Description

Any new dependencies Introduced

How Has This Been Tested?

PR Checklist:

[x] I have implemented all requirements? (see JIRA, project documentation).
[x] I am not affecting someone else's work, If I am, they are included as a reviewer.
[x] I have added relevant tests (unit, integration or regression).
[x] I have added comments to all the bits that are hard to follow.
[x] I have added/updated Documentation.
[x] I have updated the appropriate changelog with a line for my changes.

Screenshots (if appropriate):

For release 1.1.11 backported fixes:

#97
#104
#108
#111
#109
#120
#126
#131
#132
#134
#140
#147
#149

repo: causalens/dara


text:
App creation fails

I'm submitting a ...
[X] bug report
[ ] feature request
[ ] question about the decisions made in the repository
[ ] question about how to use this project

Summary

I've logged into Expo and ran the npx command as instructed:
npx create-react-native-dapp

It then prompted for the project details and bailed out with the error:
Cannot determine which native SDK version your project uses because the module `expo` is not installed. Please install it with `yarn add expo` and try again.

Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)

Node version: v14.15.5
Expo version (installed globally) : 4.8.1

Initializing a standalone expo project (bare/managed) otherwise works.
Here is the log:
  Ξ Welcome to create-react-native-dapp! Ξ
     Your next Ethereum application starts here.

✔ What is your app named? … my-react-dapp
✔ What is the iOS bundle identifier? … com.myreactdapp
✔ What is the Android package name? … com.myreactdapp
✔ What is the URI scheme? … myreactdapp
Creating a new React Native app in /Users/user/code/my-react-dapp.

Using package manager as yarnpkg with yarn interface.
Installing packages. This might take a couple minutes.
Installing react-native-scripts...

yarn add v1.22.10
info No lockfile found.
[1/4] 🔍  Resolving packages...
warning react-native-scripts > babel-runtime > core-js@2.6.12: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 🔨  Building fresh packages...
success Saved lockfile.
success Saved 20 new dependencies.
info Direct dependencies
└─ react-native-scripts@2.0.1
info All dependencies
├─ ansi-styles@3.2.1
├─ babel-runtime@6.26.0
├─ chalk@2.4.2
├─ color-convert@1.9.3
├─ color-name@1.1.3
├─ core-js@2.6.12
├─ cross-spawn@5.1.0
├─ escape-string-regexp@1.0.5
├─ has-flag@3.0.0
├─ isexe@2.0.0
├─ lru-cache@4.1.5
├─ minimist@1.2.5
├─ pseudomap@1.0.2
├─ react-native-scripts@2.0.1
├─ regenerator-runtime@0.11.1
├─ shebang-command@1.2.0
├─ shebang-regex@1.0.0
├─ supports-color@5.5.0
├─ which@1.3.1
└─ yallist@2.1.2
✨  Done in 3.37s.
(node:76872) UnhandledPromiseRejectionWarning: Error: Cannot find module '/Users/user/code/my-react-dapp/node_modules/react-native-scripts/build/scripts/init.js'
Require stack:
- /usr/local/lib/node_modules/create-react-native-app/build/index.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
    at Function.Module._load (internal/modules/cjs/loader.js:725:27)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at _callee2$ (/usr/local/lib/node_modules/create-react-native-app/build/index.js:128:32)
    at tryCatch (/usr/local/lib/node_modules/create-react-native-app/node_modules/regenerator-runtime/runtime.js:62:40)
    at Generator.invoke [as _invoke] (/usr/local/lib/node_modules/create-react-native-app/node_modules/regenerator-runtime/runtime.js:296:22)
    at Generator.prototype.<computed> [as next] (/usr/local/lib/node_modules/create-react-native-app/node_modules/regenerator-runtime/runtime.js:114:21)
    at step (/usr/local/lib/node_modules/create-react-native-app/node_modules/babel-runtime/helpers/asyncToGenerator.js:17:30)
    at /usr/local/lib/node_modules/create-react-native-app/node_modules/babel-runtime/helpers/asyncToGenerator.js:28:13
(Use `node --trace-warnings ...` to show where the warning was created)
(node:76872) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:76872) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

[00:54:28] Cannot determine which native SDK version your project uses because the module `expo` is not installed. Please install it with `yarn add expo` and try again.
[00:54:28]     ├─ getExpoSDKVersion /Users/user/.nvm/versions/node/v14.15.5/lib/node_modules/expo-cli/node_modules/@expo/config/src/Project.ts:23:9
    ├─ ensureConfigHasDefaultValues /Users/user/.nvm/versions/node/v14.15.5/lib/node_modules/expo-cli/node_modules/@expo/config/src/Config.ts:480:18
    ├─ fillAndReturnConfig /Users/user/.nvm/versions/node/v14.15.5/lib/node_modules/expo-cli/node_modules/@expo/config/src/Config.ts:104:10
    ├─ getConfig /Users/user/.nvm/versions/node/v14.15.5/lib/node_modules/expo-cli/node_modules/@expo/config/src/Config.ts:189:10
    ├─ actionAsync /Users/user/.nvm/versions/node/v14.15.5/lib/node_modules/expo-cli/src/commands/ejectAsync.ts:29:19
    ├─ /Users/user/.nvm/versions/node/v14.15.5/lib/node_modules/expo-cli/src/commands/utils/profileMethod.ts:16:21
    ├─ /Users/user/.nvm/versions/node/v14.15.5/lib/node_modules/expo-cli/src/commands/utils/applyAsyncAction.ts:12:12
    └─ expo eject /Users/user/.nvm/versions/node/v14.15.5/lib/node_modules/expo-cli/src/exp.ts:348:7
(node:76869) UnhandledPromiseRejectionWarning: Error: Command failed: expo eject --non-interactive
    at checkExecSyncError (child_process.js:616:11)
    at Object.execSync (child_process.js:652:15)
    at ejectExpoProject (/Users/user/.npm/_npx/76869/lib/node_modules/create-react-native-dapp/build/main/buidler/index.js:61:21)
    at Object.create (/Users/user/.npm/_npx/76869/lib/node_modules/create-react-native-dapp/build/main/buidler/index.js:726:5)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async /Users/user/.npm/_npx/76869/lib/node_modules/create-react-native-dapp/build/main/cli/index.js:115:33
(Use `node --trace-warnings ...` to show where the warning was created)
(node:76869) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:76869) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Hello, can you verify what version of expo-cli you have installed?

Yeah, appeared to be a problem with Expo installation. I've removed globally installed expo, reinstalled, and things started to work 👍

authors: assimovt cawfree

repo: cawfree/create-react-native-dapp


text:
My First PR commit

PR comments

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: jenkins-x-bot-test
If they are not already assigned, you can assign the PR to them by writing /assign @jenkins-x-bot-test in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

:star: PR built and available in a preview environment cb-kubecd-bdd-nh-1574355952-pr-1 here


text:
My First PR commit

PR comments

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: cjxd-bot-test
If they are not already assigned, you can assign the PR to them by writing /assign @cjxd-bot-test in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

:star: PR built and available in a preview environment cb-kubecd-bdd-nh-1583463336-pr-1 here


text:
My First PR commit

PR comments

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: cjxd-bot-test
If they are not already assigned, you can assign the PR to them by writing /assign @cjxd-bot-test in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

:star: PR built and available in a preview environment cb-kubecd-bdd-sbhg-1582692207-pr-1 here


text:
Feature request: same behavior for firstTimeOnly and lastTimeOnly in @Before/AfterMethod even when invocationCount is 1 or data provider test driven parallel or not

TestNG Version

Note: only the latest version is supported

Expected behavior
It would be really useful if firstTimeOnly and lastTimeOnly would be enhanced to work with parallel dataproviders in the same way they work for invocationCount greater than 1. So the result would be to run BeforeMethod/AfterMethod exactly once for parallel enabled data provider, before the first run/after the last run of the test method using that data provider. It makes more sense in the context of parallel data providers than on sequential ones. But it may be enhanced to have effect regardless of parallel state of data provider. Also, it should behave well also when test class is instantiated with factory multiple times and group-by-instances set to true.
Actual behavior
Is the issue reproductible on runner?

[ ] Shell
[ ] Maven
[ ] Gradle
[ ] Ant
[ ] Eclipse
[ ] IntelliJ
[ ] NetBeans

Test case sample

Please, share the test case (as small as possible) which shows the issue

Could you share some sample for each use case you imagine? They will be functional tests when we will implement it.

Hi,
Here it is:
`
public class MySecondTestClass {
@BeforeMethod(firstTimeOnly = true)
public void beforeMethod() {
    System.out.println("do nothing in beforeMethod");
    System.out.println("  Thread in beforeMethod: " + Thread.currentThread().getId());
}

@AfterMethod(lastTimeOnly = true)
public void afterMethod() {
    System.out.println("do nothing in afterMethod");
    System.out.println("  Thread in afterMethod: " + Thread.currentThread().getId());
}

@Test
public void testSecondMethod1() {
    System.out.println("    Inside test method testSecond from second class");
    System.out.println("Thread in testSecondMethod1: " + Thread.currentThread().getId());
    assert true;
}

@Test(groups = "broken")
public void testSecondMethod2() {
    System.out.println("    Thread in testSecondMethod2: " + Thread.currentThread().getId());
    fail("    inside testSecondMethod2 fail");
}

/**
 * test with parameter
 * @param param
 */
@Test(dataProvider = "dp3")
public void testSecondMethod3(String param) {
    System.out.println("    testSecondMethod3 param: " + param);
    System.out.println("    Thread in testSecondMethod3: " + Thread.currentThread().getId());
    assert true;
}

/**
 * data provider
 */
@DataProvider(name = "dp3", parallel = true)
public Object[][] getDP() {
    return new Object[][] {
            {
                    "T"
            },
            {
                    "F"
            }
    };
}

}
Output:
MySecondTestClass.beforeMethod()[pri:0, instance:tests.MySecondTestClass@1209079] 18911353
MySecondTestClass.testSecondMethod1()[pri:0, instance:tests.MySecondTestClass@1209079] 18911353
MySecondTestClass.afterMethod()[pri:0, instance:tests.MySecondTestClass@1209079] 18911353
MySecondTestClass.beforeMethod()[pri:0, instance:tests.MySecondTestClass@1209079] 18911353
MySecondTestClass.testSecondMethod2()[pri:0, instance:tests.MySecondTestClass@1209079] 18911353
MySecondTestClass.afterMethod()[pri:0, instance:tests.MySecondTestClass@1209079] 18911353
MySecondTestClass.beforeMethod()[pri:0, instance:tests.MySecondTestClass@1209079] 18911353
MySecondTestClass.beforeMethod()[pri:0, instance:tests.MySecondTestClass@1209079] 18911353
MySecondTestClass.testSecondMethod3(java.lang.String)[pri:0, instance:tests.MySecondTestClass@1209079]F  18911353
MySecondTestClass.testSecondMethod3(java.lang.String)[pri:0, instance:tests.MySecondTestClass@1209079]T  18911353

MySecondTestClass.afterMethod()[pri:0, instance:tests.MySecondTestClass@1209079] 18911353
MySecondTestClass.afterMethod()[pri:0, instance:tests.MySecondTestClass@1209079] 18911353
`
Having firstTimeOnly = true in BeforeMethod and lastTimeOnly = true in AfterMethod would have expected effect that these configuration methods will be run once for testSecondmethod3. It should work also for non-parallel data provider and regardless of invocationCount.
It is quite interesting that it works well (6.11) on non-parallel data provider:
`
MySecondTestClass.beforeMethod()[pri:0, instance:tests.MySecondTestClass@1df28bb] 31402171
MySecondTestClass.testSecondMethod1()[pri:0, instance:tests.MySecondTestClass@1df28bb] 31402171
MySecondTestClass.afterMethod()[pri:0, instance:tests.MySecondTestClass@1df28bb] 31402171
MySecondTestClass.beforeMethod()[pri:0, instance:tests.MySecondTestClass@1df28bb] 31402171
MySecondTestClass.testSecondMethod2()[pri:0, instance:tests.MySecondTestClass@1df28bb] 31402171
MySecondTestClass.afterMethod()[pri:0, instance:tests.MySecondTestClass@1df28bb] 31402171
MySecondTestClass.beforeMethod()[pri:0, instance:tests.MySecondTestClass@1df28bb] 31402171
MySecondTestClass.testSecondMethod3(java.lang.String)[pri:0, instance:tests.MySecondTestClass@1df28bb]T  31402171
MySecondTestClass.testSecondMethod3(java.lang.String)[pri:0, instance:tests.MySecondTestClass@1df28bb]F  31402171

MySecondTestClass.afterMethod()[pri:0, instance:tests.MySecondTestClass@1df28bb] 31402171
`

Hi,
Imagine having a test class with a dozen of test methods, each iterating multiple times based on data providers and a BeforeMethod, all this leading to a number of 10k+ iterations. So far it works well and quite quickly when run sequentially considering each test makes some actions (stimulus) and then queries some data from data containers (response) with timeout. In cases there are some issues, from few minutes this test can take hours because of the way failing queries. BeforeMethod is used to clear data containers before each iteration so the queries are not looking into a lot of unnecessary data from previous tests. Logging would be also affected in this case of failures as it tries to show the data queries did not match on (huge amount of data for each iteration, if keeping all data from containers). Making parallel data providers will solve a lot of time in such cases but this implies removing config method BeforeMethod since it may clear data container (a single provider) another thread is querying on.
Maybe it's more clear now.
Thanks a lot!

authors: ghenadied juherr

repo: cbeust/testng


text:
Bugfix: omniglot test and validation splits were swapped

As far as I can tell from the paper, the intention is to use 1623 - 1200 = 423 character classes for testing. But the code only selects testing data from 100 classes. Thus, I believe lines 52 and 54 should be swapped.

FWIW, I introduced this bug while open-sourcing the code, so it shouldn't affect the results in the paper.

Great!  Many thanks for the code and the paper!

authors: andreirusu cbfinn

repo: cbfinn/maml


text:
Benchmark v2

This PR adjusts the benchmark tasks, so they are no longer exploratory, but require large compute.
Running benchmark on SLURM
Big thanks to @LaraFuhrmann for providing the expertise!
I used the command:
$ sbatch --mail-type=END --mem-per-cpu=2000 --time=72:00:00 -o snake.out -e snake.err snakemake --profile ~/simplesnakemake/  --rerun-incomplete -prk --cores 50 -s workflows/WORKFLOW_NAME.smk

together with the snakemake profile (in ~/simplesnakemake/config.yaml):
cluster:
  mkdir -p logs/{rule} &&
  sbatch
    --parsable
    --job-name=bmi-{rule}-{wildcards}
    --cpus-per-task={threads}
    --mem-per-cpu="$(( {resources.mem_mb} / {threads} ))"
    --time="{resources.runtime}"
    --tmp={resources.disk_mb}
    --output=logs/{rule}/{rule}-%j.out.log
    --error=logs/{rule}/{rule}-%j.err.log
default-resources:
        # - partition=<name-of-default-partition>
        # - qos=<name-of-quality-of-service>
  - mem_mb=2000
  - runtime=15
restart-times: 3
max-jobs-per-second: 10
max-status-checks-per-second: 1
local-cores: 1
latency-wait: 60
jobs: 30
keep-going: True
rerun-incomplete: True
printshellcmds: True
scheduler: greedy
# use-conda: True

As today discussed, these are the changes we want to make:
Typos

Binormal -> bivariate normal
Bimodal gaussians -> Bimodal (or think about another name)

Students (dimx, dimy, dof)
Note: all students have identity matrix.
1, 1, 1: 0.22

asinh

2, 2, 1: 0.43

asinh
2, 2, 2: 0.19

3, 3, 2: 0.29

asinh

3, 3, 3: 0.18
5, 5, 2: 0.45

asinh

5, 5, 3: 0.30
Multivariate normal
In the sparse case, drop the blocks XX and YY and name them 2-pair.
Transformed tasks

Replace asinh Student's (the last three)  with the new ones
What to do with spirals: adjust speed by /dimension (mean of chi-squared with the dof = dimension)
Drop the rotated distributions
Drop wiggly

Future work

We don't add multi-wiggly, but think about them for the future work.
Mini-benchmark for normalization

i think this looks pretty mergeable right now, no? lets not make it grow too big

authors: grfrederic pawel-czyz

repo: cbg-ethz/bmi


text:
Are you going to keep working for Heavensward?

The rotation and damage formula will change a lot, are you going to keep updating it?
I would like to help if you don't mind. I play all jobs and currently finished FCoB as all 10 jobs. And I also did lot of work on dmg statistic. I notice you're using the formula from http://valk.dancing-mad.com.
That's a good formula but when players get higher status, the formula is not accurate as it was. I did a lot of calculation and research, here's my damage formula for bard:
(Weapon Damage * (0.00366 * DEX + 0.26) + 0.0745 * DEX + 4.95) * ((Determination - 202) * 0.0005 + 1.00) * 1.26 * (potency/100)
I'm planing to continue my studying on this, if you're interested let me know plz. <3

I'll gladly keep maintaining and updating this, but I've cancelled my subscription and don't currently have any plans to reactivate it.
So yeah, I'll do what I can with your help, but unfortunately I personally won't be making attempts at verifying the accuracy of your formulas.
Thanks!

Err, here's another problem I met, maybe it's a stupid problem.
I tried to intall this simulator on a Ubuntu 12.04 server. I tried it many times since half years ago but i never succeed. I always stack on the step "CXX=c++ LLVM_CONFIG=llvm-config-3.4 make". Here's the error message I got:
root@ffxiv-simulate:~/xiv-sim# CXX=c++ LLVM_CONFIG=llvm-config-3.4 make
c++ -g -Wall -O3 -std=c++1y llvm-config-3.4 --cppflags -c src/Action.cpp -o obj/Action.o -MD -MT 'obj/Action.o' -MF 'obj/Action.d'
/bin/bash: c++: command not found
make: *** [obj/Action.o] Error 127
I did some search on google and install GCC and tried some other ways, but none of them works.
I'm new to Ubuntu actually, I would so appreciate if you can give me some help <3

/usr/bin/c++ is a symlink to /etc/alternatives/c++ on Debian, which is in turn a symlink to /usr/bin/g++.
Not sure why it's not linked on your system, but just change "CXX=c++" to "CXX=g++" to get it going.

FWIW, I intend to keep helping with this project as well.  Just waiting for Heavensward to see what changes.

Finally I do make some progress Q.Q   Here's what I got, if someone meet the same problem and find this post:
I checked my gcc version by "gcc --version" and it says 4.6.4, no good, we need a newer version. I use this post to get a 4.9 version gcc: http://askubuntu.com/questions/466651/how-do-i-use-the-latest-gcc-4-9-on-ubuntu-14-04
Then when I build the simulator, it shows an error message with "http://askubuntu.com/questions/466651/how-do-i-use-the-latest-gcc-4-9-on-ubuntu-14-04"
And I use this bug fix: http://reviews.llvm.org/rL201729  The first file is located "/usr/lib/llvm-3.4/lib/clang/3.4/include" on my server, and I don't find the second file but it still works.
Now I built the simulator, but when I test it, it shows:
======================================================
root@ffxiv-simulate:~/xiv-sim# time ./simulator single-json --length 660 subjects/monk-bis.conf rotations/monk-bis.sl
Unable to read configuration.
real	0m0.008s
user	0m0.000s
sys	0m0.005s
I'm currently on that.....   (＠・ˍ・)

./simulator single-json --length 660 id subjects/monk-bis.conf rotations/monk-bis.sl
You're missing the id argument.

;3; You're my god jingai, i'm so excited to see that result!
btw i'm running ./simulator thorough-json subjects/monk-bis.conf rotations/monk-bis.sl 360 660 id
i guess it will take a long time? xD
I hope my server won't crash.

Glad to be of help :)

Yep they tend to take 3-10 minutes on my machine.
Went ahead and fixed that readme example. :P

authors: Eroleice ccbrown jingai

repo: ccbrown/xiv-sim


text:
RobloxPlayerDataRegex or something?

E:\New-folder\i-forgor\Economy-Simulator-Client-main\source-code\services\Roblox\Roblox.Website\Middleware\ApplicationGuardMiddleware.cs(373,13): error CS0103: The name 'RobloxPlayerDataRegex
' does not exist in the current context [E:\New-folder\i-forgor\Economy-Simulator-Client-main\source-code\services\Roblox\Roblox.Website\Roblox.Website.csproj]``
im not sure why this happens :(

license: Unlicense


text:
Specific GIF won't load

https://www.reddit.com/r/slide_ios/comments/9xt9m6/bug_this_gif_wont_load_not_sure_if_its_because/

Fixed!

authors: ccrama colejd

repo: ccrama/Slide-iOS


text:
Opening an image from Submission Screen does not seem to honor data saving setting

When I click an image from the submission (main screen) it does not seem to respect the data saving option. The image has no "HD" option on the bottom bar. When I click into the submission and open the image, I see the option for "HD". This leads me to believe that the option is not respected from the submissions screen. I am not connected to WiFi.

My Settings

Submission Layout

Submission view mode: Card
Banner images: Thumbnail

Data Saving

Data saving enabled
Data saving on WiFi

Steps to reproduce

Click an image from the thumbnail on the submission screen
Notice that it does not have an "HD" button on the bottom
Navigate into the post itself by clicking the posts title
From the post itself, click on the image
Notice that the image has an "HD" button on the bottom
If you click the "HD" button a higher quality image is loaded

Expected behavior (with data saving enabled)

Click on the image from the thumbnail on the submission screen
The "HD" button should be visible and a lower quality image should be loaded

When you are noticing this behavior, are you opening it from a thumbnail on the post screen and the large banner image from comments?

Yes, that's correct. Opening from the thumbnail on the post screen seems to always open the HD version of the image. If I go into the post itself (by clicking the title), then opening the image there seems to show first the low-quality version, with the option for HD on the bottom.

authors: ccrama ianrobrien


text:
Add logic for what to do when querying the Management Risk Tables without an HPV result.

@ssebast2

@mickohanlon23  - did you mean to leave me a message?

@mickohanlon23 - did you mean to leave me a message?

@ssebast2 sorry for the unnecessary notification; I was opening Issues for all potential future code updates yesterday, and tagged you here for awareness since you are working on this issue from the clinical / L2 side. No questions for now. If you could just point me towards the updated logic for this issue once it is teased out, I can copy the resolution here so that a fix can be made in the L3.

@mickohanlon23  - See Section 4.7.3.3.12 in the L2 (4.7.3.3.12	 2023 Journal of Lower Genital Track Disease (JLGTD) Addendum to the 2019 ASCCP Guidelines) for what the 2023 errata document says to do in this scenario.

See PR https://github.com/ccsm-cds-tools/ccsm-cds-with-tests/pull/86

repo: ccsm-cds-tools/ccsm-cds-with-tests


text:
per-exchange exceptions: stub implementation

That's per our discussion in #355.
This is basically a proof-of-concept which I started to use until a bigger enhancement is released. I know that you wanted something more elaborated so I won't be disappointed if you decide not to merge it )

Thx! Actually, I think it's ok, if you can get along without passing the response, but unfolding its internals into statusCode and statusText arguments – that will do in all languages! There's a little typo erorMessage in 17095. Apart from that, I think it's fine ) Can you unfold the response? If you don't want to bother, I'll do it myself as soon as I get through my current tasks.

Not sure what you meant by unfolding but here's a try.

Yep, that's exactly what I had in mind, sorry for confusing you. Thx, will merge it very soon!

And I'm not sure if you're ok with method's name so feel free to rename it according to your vision.

authors: kroitor mkutny

repo: ccxt-dev/ccxt


text:
Too many backslash character on directory that contains space

Bug description
The cmake command string that generated when calling :CMakeGenerate and :CMakeBuild has too many backslash character on directory with space character.
project directory
$ pwd
/tmp/directory with space/project

:CMakeGenerate output
Running command: cmake -D CMAKE_BUILD_TYPE=Debug -D CMAKE_EXPORT_COMPILE_COMMANDS=ON -S /tmp/directory\\\ with\\\ space/project -B /tmp/directory\\\\\\\\\\\\\\\ with\\\\\\\\\\\\\\\ space
/project/Debug

:CMakeBuild output
Running command: cmake --build /tmp/directory\\\\\\\\\\\\\\\ with\\\\\\\\\\\\\\\ space/project/Debug

To Reproduce
Steps to reproduce the behavior:

Create a new project directory inside a directory that contains space.
Create some C file.
Create CMakeLists.txt file for that C file.
Open neovim.
Run :CMakeGenerate and :CMakeBuild.

Expected behavior
Exactly one backslash character per space character.
Behavior with minimal .vimrc
The same as above.
minimal .vimrc
call plug#begin('~/.config/nvim/plugged')
Plug 'cdelledonne/vim-cmake'
call plug#end()

let g:cmake_link_compile_commands=1
nmap <leader>cg :CMakeGenerate<cr>
nmap <leader>cb :CMakeBuild<cr>

Screenshots

Other info

OS: Debian sid
Vim/Neovim version: 0.7.2
Vim-CMake version: 0.12.0
CMake version: 3.25.1

Additional context
log
[2022-12-21 15:43:50] [ INFO] Configuration options:
[2022-12-21 15:43:50] [ INFO] > g:cmake_build_dir_location: '.'
[2022-12-21 15:43:50] [ INFO] > g:cmake_build_options: []
[2022-12-21 15:43:50] [ INFO] > g:cmake_command: 'cmake'
[2022-12-21 15:43:50] [ INFO] > g:cmake_console_echo_cmd: 1
[2022-12-21 15:43:50] [ INFO] > g:cmake_console_position: 'botright'
[2022-12-21 15:43:50] [ INFO] > g:cmake_console_size: 15
[2022-12-21 15:43:50] [ INFO] > g:cmake_default_config: 'Debug'
[2022-12-21 15:43:50] [ INFO] > g:cmake_generate_options: []
[2022-12-21 15:43:50] [ INFO] > g:cmake_jump: 0
[2022-12-21 15:43:50] [ INFO] > g:cmake_jump_on_completion: 0
[2022-12-21 15:43:50] [ INFO] > g:cmake_jump_on_error: 1
[2022-12-21 15:43:50] [ INFO] > g:cmake_link_compile_commands: 1
[2022-12-21 15:43:50] [ INFO] > g:cmake_log_file: 'VIM_CMAKE_LOG'
[2022-12-21 15:43:50] [ INFO] > g:cmake_log_level: 'INFO'
[2022-12-21 15:43:50] [ INFO] > g:cmake_native_build_options: []
[2022-12-21 15:43:50] [ INFO] > g:cmake_reinit_on_dir_changed: 1
[2022-12-21 15:43:50] [ INFO] > g:cmake_restore_state: 1
[2022-12-21 15:43:50] [ INFO] > g:cmake_root_markers: ['.git', '.svn']
[2022-12-21 15:43:50] [ INFO] > g:cmake_statusline: 0
[2022-12-21 15:43:50] [ INFO] > g:cmake_test_command: 'ctest'
[2022-12-21 15:43:50] [ INFO] > g:cmake_test_options: []
[2022-12-21 15:43:50] [ INFO] Project root: /tmp/directory\ with\ space/project
[2022-12-21 15:43:50] [ INFO] Current config: Debug (/tmp/directory\\\\\\\ with\\\\\\\ space/project/Debug)

Hi, thanks a lot for reporting this, and apologies for the huge delay.
I can indeed reproduce the issue. It seems that escaping paths with spaces multiple times leads to this problem. A solution that seems to work is to skip path escaping altogether, since that's not really necessary in what we need paths for.
Can you please try branch 78-do-not-escape-paths and see if the issue is resolved? I will so some testing in Vim and on Windows as well, and if the issue is actually gone I'll merge the changes asap.

Hi, thanks for your hard work!
I have tried branch 78-do-not-escape-paths on my machine. The issue is indeed resolved.

Great, I just merged the fix on the master branch

authors: cdelledonne mrizaln

repo: cdelledonne/vim-cmake


text:
Alignment output report format XLSX - JSON

There seems to be a difference between the output report provided in XLSX and JSON, where the XLSX report seems to have evolved, the JSON report has not. e.g. in the JSON output the datasets are not listed with their timestamp, the labels of the different tabs in XLSX are not the same as the tags used in JSON

Adding to this ticket

adding dataset domain into the dataset details of the XLSX report
updating the json report to be more informative as requested above, dataset names instead of just domains validated in JSON result

I support this ticket.

Rule (7).zip

@SFJohnson24 , as per our meeting today, I added the zip file with the incorrect result identifying "CMX" as the results for a dataset named "CMX" (taken from the dataset's domain name instead of the interpreted dataset name:

Note: when a validation occurs, the result JSON's keys are domains.  It would be useful to give both the domain that is validated but also the dataset name that is associated with that validation that has run.  Below is QS domain but there is no information regarding the dataset name that was skipped.

See https://github.com/cdisc-org/cdisc-rules-engine/pull/771

authors: SFJohnson24 mhungria rradel

repo: cdisc-org/cdisc-rules-engine


text:
add and enforce yaml property sort order

This will improve readability
AC:

Property Sort order is stored in the json-schema via additional properties
When a yaml rule is saved, the properties are sorted according to the sort order

VALIDATION SUMMARY
Validation Methodology
The validation process incorporated rigorous testing methodologies to ensure the accuracy and reliability of the system. This included:
Rule Editor Testing: The rule editor online in the production was used to validate the changes for all connected issues in the PR
Code Review:
The code files were reviewed for following:

Code Quality Evaluation
Logic and Functionality Review
Error Handling and Exception Handling Assessment
Security Considerations

Regression Testing:
Regression tests were run to validate that the changes did not affect any functionality of the overall system.
Test Execution
The tests were executed in the following order:
Code Review: The code for all the changed files was reviewed first to check the proper implementation of the Acceptance criteria.
Rules Editor: The Editor in production was first of all checked for proper folding when fold level 1 is clicked from the right click menu. Then the editor was checked to see if it retains the fold when we switch tabs , it was also checked if editor auto corrects the wrong  indentation.
Regression Tests: The regression tests were then run to confirm that the changes in engine did not break any other part of the implementation
Results:
After successful running of all tests and careful validation, the issue was found to be good to close as the Acceptance criteria was fulfilled and all validations passed.
Deviations and Non-conformances:
No deviations or non-conformances were observed.
Summary of Findings:
Test Results: All tests conducted during the validation process passed successfully, indicating that the system functions as intended and meets the specified requirements. The tests covered various scenarios and edge cases, providing confidence in the system's reliability and correctness.
Unit Regression: The unit regression tests were executed, and no regressions or issues were identified. This indicates that the changes made during the development or modification of the system did not introduce any unintended side effects or break existing functionality.
Code Reviews: The code reviews conducted by both development and QA teams were completed, and no major issues or concerns were identified. The code adheres to coding standards and best practices, demonstrating good code quality, readability, and maintainability.

authors: RamilCDISC gerrycampion

repo: cdisc-org/conformance-rules-editor


text:
chore(deps): upgrade dev dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-dev-dependencies-2.x" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 2960

Questions ?
Please refer to the Backport tool documentation


text:
Atom issues palette is oversizing the coding area

After chose Pristine as my UI Theme and open a file that has a lots of Rubocop's warnings, Atom's issue palette with these warnings is oversizing the coding area.
Expected result: When a lot of issues are listed on Atom's issue palette, it must display a scrolling bar.
Actual result:   When a lot of issues are listed on Atom's issue palette, no scrolling bar is displayed.
Ruby
Rails
Rubocop
Atom 1.12.2
Prestine 1.0.6
See the screenshot for more details.

Thanks for catching this @thiagopecanha. I'll get a fix out today for this!

@thiagopecanha this should be resolved now in v1.0.7

@cdonohue , working as expected, awesome.
Thank you very much.

authors: cdonohue thiagopecanha

repo: cdonohue/pristine-ui


text:
ERROR Failed to read certificate: EISDIR: illegal operation on a directory, read

code-server version: 1.604-vsc1.32.0
OS version: Debian GNU/Linux 9 (stretch)

Description
I try to secure my setup but I got the following problem :
ERROR Failed to read certificate: EISDIR: illegal operation on a directory, read
Steps to Reproduce

wget https://github.com/codercom/code-server/releases/download/1.604-vsc1.32.0/code-server1.604-vsc1.32.0-linux-x64.tar.gz
tar xvfz code-server1.604-vsc1.32.0-linux-x64.tar.gz
cd code-server1.604-vsc1.32.0-linux-x64
mv code-server /bin
mkdir ~/certs && cd ~/certs
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout ~/certs/MyKey.key -out ~/certs/MyCertificate.crt
code-server --cert=~/certs/MyCertificate.crt --cert-key=~/certs/MyKey.key

I have the same issue.
And I have solved this by using Relative Path.
// $pwd = /home/ubuntu
// MyCertificate.crt and MKey.key are in the /home/ubuntu/certs
./code-server ~/your_project_path --cert=certs/MyCertificate.crt --cert-key=certs/MyKey.key

If you use spaces it should work.
code-server --cert ~/certs/MyCertificate.crt --cert-key ~/certs/MyKey.key

Without those your shell won't expand ~ so it'll be looking for a directory literally called ~.

authors: DjBlarx code-asher onekyle

repo: cdr/code-server


text:
Fix/redesign dialogs

Describe in detail the problem you had and how this PR fixes it
Redesign of the "move to trash" and "open" dialogs. Adds manual path entry.
Is there an open issue you can link to?
n/a

@nol166 Whether to consider refactoring showOpenDialog, use the quickPick provided by vscode to select a file or dir. Just like the picture below(vscode-insiders + remote development ext):

Closed in favor of https://github.com/cdr/code-server/pull/857 which uses the same dialog used by the VS Code's remote extensions.

authors: code-asher jeasonstudio nol166


text:
Strange temporary file error

docker run -v "$(pwd):/src/" cdrx/pyinstaller-windows:python2
...
355 INFO: Removing temporary files and cleaning cache in C:\users\root\Application Data\pyinstaller
Traceback (most recent call last):
  File "C:\Python27\Scripts\pyinstaller-script.py", line 9, in <module>
    load_entry_point('PyInstaller==3.2.1', 'console_scripts', 'pyinstaller')()
  File "C:\Python27\lib\site-packages\PyInstaller\__main__.py", line 90, in run
    run_build(pyi_config, spec_file, **vars(args))
  File "C:\Python27\lib\site-packages\PyInstaller\__main__.py", line 46, in run_build
    PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
  File "C:\Python27\lib\site-packages\PyInstaller\building\build_main.py", line 788, in main
    build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
  File "C:\Python27\lib\site-packages\PyInstaller\building\build_main.py", line 691, in build
    os.makedirs(pth)
  File "C:\Python27\lib\os.py", line 157, in makedirs
    mkdir(name, mode)
WindowsError: [Error 123] Invalid name: '/tmp\\*'

Have you seen this before?

It seems that for some reason the volume I'm mounting isn't accessible to the container user. Adding an ls -l / at startup shows that user 1000 has permissions on the directory.
I'm on docker 1.10 / Fedora 24. I'll dig some more.

Ah, looks like an selinux issue.
http://stackoverflow.com/questions/24288616/permission-denied-on-accessing-host-directory-in-docker

@virtuald Is this Fedora only and the solution permissions? The same behavior occurs on Debian (with no selinux):
$ uname -a
Linux debian 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1+deb8u1 (2017-02-22) x86_64 GNU/Linux

$ pwd
/home/user123/

$ docker run -v "$(pwd):/src/" cdrx/pyinstaller-windows:python2

err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
934 INFO: PyInstaller: 3.2.1
935 INFO: Python: 2.7.12
937 INFO: Platform: Windows-7-6.1.7601-SP1
940 INFO: UPX is not available.
940 INFO: Removing temporary files and cleaning cache in C:\users\root\Application Data\pyinstaller
Traceback (most recent call last):
  File "C:\Python27\Scripts\pyinstaller-script.py", line 9, in <module>
    load_entry_point('PyInstaller==3.2.1', 'console_scripts', 'pyinstaller')()
  File "C:\Python27\lib\site-packages\PyInstaller\__main__.py", line 90, in run
    run_build(pyi_config, spec_file, **vars(args))
  File "C:\Python27\lib\site-packages\PyInstaller\__main__.py", line 46, in run_build
    PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
  File "C:\Python27\lib\site-packages\PyInstaller\building\build_main.py", line 788, in main
    build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
  File "C:\Python27\lib\site-packages\PyInstaller\building\build_main.py", line 691, in build
    os.makedirs(pth)
  File "C:\Python27\lib\os.py", line 157, in makedirs
    mkdir(name, mode)
WindowsError: [Error 123] Invalid name: '/tmp\\*'

Are you positive that it's not an selinux (or similar) error? I added :Z to the end of the volume path and it worked after that.

For some reason there is a Security-Alert issue:
dave@debian:~/Trumpocalypse/UI$ docker run -v "$(pwd):/src/" cdrx/pyinstaller-windows:python2 "pyinstaller -y Trumpocalypse.py"

...

9041 INFO: Updating manifest in C:\users\root\Application Data\pyinstaller\bincache00_py27_32bit\_socket.pyd
9042 INFO: Updating resource type 24 name 2 language 1033
9065 INFO: Updating manifest in C:\users\root\Application Data\pyinstaller\bincache00_py27_32bit\pyexpat.pyd
9066 INFO: Updating resource type 24 name 2 language 1033
9077 INFO: Updating manifest in C:\users\root\Application Data\pyinstaller\bincache00_py27_32bit\select.pyd
9078 INFO: Updating resource type 24 name 2 language 1033
9086 INFO: Updating manifest in C:\users\root\Application Data\pyinstaller\bincache00_py27_32bit\_ctypes.pyd
9087 INFO: Updating resource type 24 name 2 language 1033
9101 INFO: Updating manifest in C:\users\root\Application Data\pyinstaller\bincache00_py27_32bit\bz2.pyd
9101 INFO: Updating resource type 24 name 2 language 1033
9121 INFO: Updating manifest in C:\users\root\Application Data\pyinstaller\bincache00_py27_32bit\unicodedata.pyd
9122 INFO: Updating resource type 24 name 2 language 1033
Security-Alert: try to store file outside of dist-directory. Aborting. 'Z:\\src\\build\\Trumpocalypse\\Trumpocalypse.exe.manifest'

Did you try?
docker run -v "$(pwd):/src/:Z" cdrx/pyinstaller-windows:python2 "pyinstaller -y Trumpocalypse.py"

Yeah. Same issue.

As a side note, this might happen if in the current folder there is no .spec file. Probably in the entrypoint.sh there should be a check for that, because the error is very confusing.

authors: bmustiata their virtuald

repo: cdrx/docker-pyinstaller


text:
Add preference indication to Suggestion

Allows a service to indication how to preferable this suggestion is from among all the available suggestions on the card.

chat.fhir.org discussion: https://chat.fhir.org/#narrow/stream/179159-cds-hooks/topic/CDS.20Hooks.20feature.20request

@jmandel , @isaacvetter , @brynrhodes , @dennispatterson - requesting reviews :)

Hey @mattvarghese , @jmandel ,
When you get a chance, will you look at my proposed changes, which also may coincide nicely with answering the above questions?
What do ya'll think?
Isaac

will you look at my proposed changes, which also may coincide nicely with answering the above questions?

@isaacvetter I'm missing something -- where are the proposed changes/

@jmandel - I think that I committed them directly to Matt's branch, I can see them here: https://github.com/mattvarghese/docs/commit/675b078c07124cab819edb75606d4e376a2159f7#diff-7971a89e057af84349a92f9ee9064c66
And they consist of this:

isRecommended | OPTIONAL | boolean | Allows a service to indicate that a specific suggestion is recommended from all the available suggestions on the card. CDS Hooks clients may choose to influence their UI based on this value, such as pre-selecting, or highlighting recommended suggestions. Multiple suggestions MAY be recommended, if card.selectionBehavior is any. A CDS Service MUST only recommend one (or more) suggestions if that service expects the suggestion(s) to be accepted a majority of the time.

Thanks -- I see your changes now @isaacvetter. I like this model; I'll propose a quick line edit here in the PR...

Would it be better to incorporate a ranking mechanism rather than limiting to say that one suggestion is recommended?

Using a Boolean aligns with PlanDefinition.precheckBehavior

Thanks, @brynrhodes!  Discussed on the call with you and @isaacvetter that this is more about UI and providing a default.

I can see a CDS Service wondering if they need to always return this.  Thoughts on guidance saying that this should only be populated when there's more than one suggestion or something along those lines?

@dennispatterson - I can see a CDS Service saying something like "We suspect the patient has XYZ. If you agree, do ABC" - maybe 40% confidence. In this case, maybe ABC should not be recommended in the card.
Whereas if it was, "Patient is overdue for a XYZ exam. Please order one" has a confidence of 90+%. So maybe that should come recommended on the card?

Hey @dennispatterson ,
Building on Matt's response --
I had a similar concern: what guidance should the spec give to CDS developers to help them determine when to set isRecommended to true? Note that I'd initially even included this sentence as part of this PR:

A CDS Service MUST only recommend one (or more) suggestions if that service expects the suggestion(s) to be accepted a majority of the time.

This loose definition of "a majority of the time" is also what Matt's describing in his contrast of 40% vs 90% of the time.  Josh's comment

not sure it's the right rubric, and I don't know how a service should derive "expectations."

is why I removed this sentence.
Teasing apart his comment, here's the rationale for not providing this guidance:

Especially without the feedback service -- how does a service actually know that a suggestion is the more commonly chosen?

More importantly -- Recommending a suggestion because it's usually the right choice ("majority of the time") may not actually be a safe guideline. It's easy to imagine cases where the typical choice could be unsafe for a given patient and clinical judgement is required.

These are the reasons why is it's likely better for the spec to not yet provide guidance to developers.
Is this convincing?
Isaac
p.s.

only be populated when there's more than one suggestion or something along those lines?

Dennis, also note that it could make sense to populate isRecommended when there's only one suggestion. Matt's example: patient is overdue for exam. The "order exam" suggestion is the only suggestion, it's low risk, we want to encourage the provider to follow some care path/best practice, it would make sense to set isRecommended, even if it were the only suggestion.

Fully agree on not giving arbitrary guidance around confidence levels or what's "majority."
My hangup is more understanding the value in a CDS Service indicating this when there's only one suggestion.  By default, a single suggestion would be recommended, right?  If the single suggestion is "order exam", why is an extra indicator needed to denote that the suggestion is recommended?  Isn't it recommended by virtue of being returned?
I'm also trying to steer away from CDS Services being pressured to always return this on single suggestions so that it holds more weight or isn't not recommended.

authors: brynrhodes dennispatterson isaacvetter jmandel mattvarghese

repo: cds-hooks/docs


text:
AddressComplete - Canadian addresses contain labels for states and zip codes

Users have no control over the text in the address fields.
As I user, if I select Canadian only, I would expect the fields to change to Canadian only format.
Given that the majority of addresses collected will likely be Canadian, I suggest we limit our field labels to Canadian format until we can offer more international formats, or provide control to users to change the label text.
That is not to say we limit address searches to Canada only. Just the text for now.

Suggested change:
-> If International is selected keep labels as is.
-> If Canada only, use Canadian only elements. (eg: "Postal Code" instead of "Postal Code or Zip")
Would that work?

For sure that would work, but I don't want to add scope when a simple label change would suffice for now.

Is about the same level of effort. :)

Then I think it's a question for you and @anikbrazeau to decide on the right approach. :)

Sounds good!
If it's not a ton more effort we could do a more tailored set of labels for "Canadian addresses" and keep the generic broad labels for "International addresses"
IF Country = Canada, THEN: Specific

Street address // Adresse municipale
City, town, or community // Ville ou communauté
Province or territory // Province ou territoire
Postal code

IF Country = Other, THEN: Generic

Street address // Adresse municipale
City, town, or community  // Ville ou communauté
Province, territory, or state // Province, territoire ou état
Postal or zip code // Code postal ou zip

References:
****- https://www.canadapost-postescanada.ca/cpc/en/support/kb/business/address-accuracy/addressing-mail-accurately

https://www.canadapost-postescanada.ca/cpc/en/support/articles/addressing-guidelines/international-addresses.page

authors: ShadeWyrm anikbrazeau connorscarolyns

repo: cds-snc/platform-forms-client


text:
gist /dropbox integration?

Could it be possible to integrate with github gist, or dropbox, to save and restore urls to these stores?
I often have lots of chrome instances and tabs open, and would like to save all for reboot etc, now I'm going through each instance and getting the urls via openlist, and storing it manually that way.

6 years later it would still be a nice to have 😛
If I understand correctly chrome got the chrome.storage "API to store, retrieve, and track changes to user data" that can also use chrome sync features. Should be a lot easier to implement compared to the requested services but looking at the current code it would still be a big chunk. But maybe it's worth thinking about anyway.

authors: MrSlimbrowser neslekkim

repo: cdzombak/OpenList


text:
🛑 tanecni-divadlo.cz is down

In c765b47, tanecni-divadlo.cz (https://www.tanecni-divadlo.cz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: tanecni-divadlo.cz is back up in 1def2fa.

repo: cebreus/upptime


text:
🛑 tanecni-divadlo.cz is down

In a632c39, tanecni-divadlo.cz (https://www.tanecni-divadlo.cz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: tanecni-divadlo.cz is back up in b9bcb5e.


text:
🛑 tanecni-divadlo.cz is down

In 3aa121d, tanecni-divadlo.cz (https://www.tanecni-divadlo.cz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: tanecni-divadlo.cz is back up in bc5b45e.


text:
🛑 tanecni-divadlo.cz is down

In 2d68ae1, tanecni-divadlo.cz (https://www.tanecni-divadlo.cz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: tanecni-divadlo.cz is back up in d2c70fa.


text:
🛑 tanecni-divadlo.cz is down

In b7e2dbf, tanecni-divadlo.cz (https://www.tanecni-divadlo.cz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: tanecni-divadlo.cz is back up in c49f847 after 4 minutes.


text:
🛑 tanecni-divadlo.cz is down

In 1dcd027, tanecni-divadlo.cz (https://www.tanecni-divadlo.cz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: tanecni-divadlo.cz is back up in 1402d4e.


text:
🛑 tanecni-divadlo.cz is down

In b83ff5c, tanecni-divadlo.cz (https://www.tanecni-divadlo.cz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: tanecni-divadlo.cz is back up in 532ef0d.


text:
🛑 tanecni-divadlo.cz is down

In a4e70ef, tanecni-divadlo.cz (https://www.tanecni-divadlo.cz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: tanecni-divadlo.cz is back up in 08ac7e1.


text:
🛑 CDN is down

In 05e4f6a, CDN (https://cdn.ceccun.com/cdynamic/captive) was down:

HTTP code: 522
Response time: 15303 ms

Resolved: CDN is back up in 16ab947.

repo: ceccun/status


text:
🛑 CDN is down

In aff8013, CDN (https://cdn.ceccun.com/cdynamic/captive) was down:

HTTP code: 522
Response time: 15724 ms

Resolved: CDN is back up in 590c9c0.


text:
🛑 CDN is down

In 9fcac13, CDN (https://cdn.ceccun.com/cdynamic/captive) was down:

HTTP code: 522
Response time: 15409 ms

Resolved: CDN is back up in 290212d.


text:
🛑 CDN is down

In 7c74433, CDN (https://cdn.ceccun.com/cdynamic/captive) was down:

HTTP code: 522
Response time: 15500 ms

Resolved: CDN is back up in 7272f36.


text:
🛑 CDN is down

In 69c6810, CDN (https://cdn.ceccun.com/cdynamic/captive) was down:

HTTP code: 525
Response time: 417 ms

Resolved: CDN is back up in c1696cf after 58 minutes.


text:
Added information about upgrading JDMA client to JDMA installation page

Just added some info about upgrading JDMA client, to try to stave off user queries!

I reverted the hugo_stats.json file to keep this commit clean, we should add it to .gitignore at some point

repo: cedadev/jasmin-help-hugo-hinode


text:
关于 hhv 和 llv 提速建议

可以试一下 pandas.DataFrame.rolling

谢谢提醒，之前快速写了 prototype 忘记调优 -。-
因为 pandas 的索引会导致速度非常慢，所以内部数据全部使用 numpy ，如果转换成 DataFrame 会降低性能。所以改成基于 numpy 的 rolling window 来做。已经提交了 4c157131bcef398f7349b796e1a9ff64449a50d1
In [10]: len(high)
Out[10]: 640

In [11]: %timeit pd.Series(high).rolling(14).max().values
1000 loops, best of 3: 490 µs per loop

In [12]: %timeit np.max(rolling_window(high, 14), 1)
10000 loops, best of 3: 42.4 µs per loop

repo: cedricporter/funcat


text:
Better support for remote desktop connection broker

This pull request contains improved support for the remote desktop connection broker using the load balance info from the rdp files (e.g. loadbalanceinfo:s:tsv://MS Terminal Services Plugin.1.RemoteApp). This change utilize the FreeRDP parameter /load-balance-info and the value for this parameter can be part of the Auto-Connect URL or a request to the Admin-Services.
Auto-Connect URL example:
https://localhost/Myrtille/?__EVENTTARGET=&__EVENTARGUMENT=&server={server}&user={user}&passwordHash={passwordHash}&program={remoteApp}&loadBalanceInfo=tsv%3A%2F%2FMS Terminal Services Plugin.1.RemoteApp&connect=Connect!

Hi Stephan, thanks for this PR ! I'm glad you were able to overcome this limitation and will make sure to merge it in the next version.

authors: cedrozor sme-schleupen

repo: cedrozor/myrtille


text:
@watchable/store-edit should re-export symbols

Consider if the store-edit package should re-export Immutable and maybe castDraft from immer.
These symbols are already available as part of the packaged immer, and can be made available without downstream projects needing to explicitly depend and import their own version of immer which might create more problems than it's worth.
It's a good idea to use immer's Immutable modifier, but in practice, where some next state is partly based on an older state you read as an Immutable value, if your state is Immutable then you will need the castDraft() function to make it suitable for use within an editor callback.

Note, currently store exports a copy of the Immutable definition from Immer, but doesn't export castDraft...
https://github.com/cefn/watchable/blob/bb7131e23af46b1ab712ace723937d42d6fafec1/packages/store/src/types/immutable.ts

repo: cefn/watchable


text:
cip-19!: simplify Bitswap compostion

While the status of the CIP is still Review, we want to make a protocol-breaking amendment to Shwap prompted by the ongoing production-ready implementation. This change simplifies the protocol, particularly the Bitswap composition, by making a single protobuf definition of a Block instead of N definitions per every current and future Container type.
This change is motivated by a desire to make it easier for Shwap to extend horizontally in the abstract specification and its implementations. Previously, the new container would have to be added to both the core Shwap container specification and the Bitswap composition. Now, only a single place needs to be updated(and Bitswap codec registry).

(Noting that we should not rush moving Shwap to Final, as we figured there is one more feature needs to be added -- ability to request only Container proofs without its data)

repo: celestiaorg/CIPs


text:
Missing Celo info page for some accounts

Expected Behavior
Every registered account has a Celo info page.
Current Behavior
0xBCD25468E4D433Ac442b87f32B37B39678BF7077 doesn't show an info page, probably because the name is empty.

Going to be fixed in https://github.com/celo-org/blockscout/pull/49

repo: celo-org/celo-monorepo


text:
[Question] Possible to input timezone parameter?

Hi @cenfun
Is there any way to configure the timezone for displaying the test result? bcos my test agent is running at the timezone UTC+00:00 and currently we are not allowed to modify the time setting due to some restriction.
currently i m using https://www.npmjs.com/package/date-fns to handle my datetime format

good question.  how about adding one more option "timezoneOffset" like
// playwright.config.js
module.exports = {
    reporter: [
        ['list'],
        ['monocart-reporter', {
            name: "My Test Report",
            outputFile: './test-results/report.html',
            timezoneOffset: 480,
        }]
    ]
};

any idea?

tried, cant work as expected, still remain utc+0

tried with 1.7.9, cant work as expected

no, it is not completed yet, just discuss whether the idea is OK

roger that, should be okay. This is a good way to modify it.
Actually, I am also thinking of adding the application version number into reporter name, I just don't have any idea how to do it, because it will require launching the application to get the value in the global-setup. Do you have any suggestions?

ok, I will think about how to support dynamic report name.

Please update version to monocart-reporter@1.7.10
1, new option timezoneOffset
// playwright.config.js
module.exports = {
    reporter: [
        ['list'],
        ['monocart-reporter', {
            name: "My Test Report",
            outputFile: './test-results/report.html',
            timezoneOffset: -480, // timezone offset in minutes, GMT+0800 = -480
        }]
    ]
};

2, change report name dynamically by using global state
first, setup global state with custom onReceive function
module.exports = {
    reporter: [
        ['list'],
        ['monocart-reporter', {
            name: "My Test Report",
            outputFile: './test-results/report.html',
            state: {
                onReceive: function(message) {
                    if (message && message.reportName) {
                        this.options.name = message.reportName; // change report name
                        return;
                    }
                }
            }
        }]
    ]
};

using state API in your test file like in global-setup.js
const { useState } = require('monocart-reporter');
const state = useState();
module.exports = async (config) => {
    await state.send({
        reportName: 'My new report name'
    });

};

actually you can change everything with state API.

@cenfun you are really impressive, especially with your fast response and resolution. It works as expected.
I will migrate to your reporter for reporting purposes. tqvm

authors: cenfun xyngfei

repo: cenfun/monocart-reporter


text:
performance monitoring feature

this adds support for performance monitoring for
configuring collectd node(s) and deploying/configuring
graphite-web/carbon and grafana.

Grafana task get not included:
TASK [grafana : include] *******************************************************
task path: /home/para/Work/opstools/opstools-ansible/roles/grafana/tasks/main.yml:2
fatal: [test_host]: FAILED! => {"failed": true, "reason": "the file_name '/home/para/Work/opstools/opstools-ansible/graphite.yml grafana.yml' does not exist, or is not readable"}
I believe there should be list in  roles/grafana/tasks/main.yml  (eg. you are missing "-" before item name).

Am 12. September 2016 15:21:12 MESZ, schrieb "Martin Mágr" notifications@github.com:

Grafana task get not included:
TASK [grafana : include]

task path:
/home/para/Work/opstools/opstools-ansible/roles/grafana/tasks/main.yml:2
fatal: [test_host]: FAILED! => {"failed": true, "reason": "the
file_name '/home/para/Work/opstools/opstools-ansible/graphite.yml
grafana.yml' does not exist, or is not readable"}
I believe there should be list in  roles/grafana/tasks/main.yml  (eg.
you are missing "-" before item name).

Damn, you're right. Will fix ASAP.
Matthias Runge mrunge@matthias-runge.de

+1

I haven't tested these roles, but the playbooks look good to me.

Am 12. September 2016 16:59:08 MESZ, schrieb Lars Kellogg-Stedman notifications@github.com:

I haven't tested these roles, but the playbooks look good to me.

They surely improved compared to my first iteration. Thanks for the comments :-)
Matthias Runge mrunge@matthias-runge.de

Thank you for your comments, I addressed the issues in my latest version.

authors: larsks mrunge paramite

repo: centos-opstools/opstools-ansible


text:
Add ISO build just from existing manifest

Introduce a new command to build an ISO image using an existing manifest allowing for customer branded anaconda and hardcoding a mirror for osbuild

I think you need to run just fix to fix the formatting and thats it! LGMT!

authors: hanthor tulilirockz

repo: centos-workstation/achillobator


text:
TRRS footprint "side" parameter doesn't do anything

hey there,
I was working with the trrs footprint and am wanting to mount it on the back. I tried using the side parameter but it doesn't seem to actually do anything.
since the code was already super organized and modularized it was really easy for me to implement the side parameter myself. let me know if you'd like a pr for this update. this is my first foray into ergogen and makerjs so would definitely need some review from you.
thanks for all the great footprints and resources! its been immensely helpful to me :)

Can you paste here the parameters you have used in your config and a screenshot of the PCB? It may be bacause the footprint is through-hole and with symmetric option it just looks the same on both sides.
Be warned I have not tested single-side options as much.

This is now fixed, thank you for reporting the issue!

thank you for your great footprint library!

authors: ceoloide monlovesmango

repo: ceoloide/ergogen-footprints


text:
Backport of 2500

Backport of #2500

@ktdreyer

repo: ceph/ceph-ansible


text:
Fix rbd Volume Resync and omap error handling for DR

This PR fixes the below items

incase if the image is promoted and demoted the image state will be set to up+unknown if the image on the remote cluster is still in the demoted state.  when the user changes the state from primary to secondary and still the image is in the demoted (secondary) state in the remote cluster. the image state on both the cluster will be in an unknown state.

return ErrIncompleteDataInOMAP if items are missing in omap, If the pool or few keys are missing in the omap. GetImageAttributes function returns a nil error message and few empty items in imageAttributes struct. to be on the safer side verify the content in imageAttributes. If the entries are missing use  the volumeId present on the PV annotation for further operations.

Signed-off-by: Madhu Rajanna madhupr007@gmail.com

@Madhu-1 this is required for release 3.3, Isnt it ?

@Madhu-1 this is required for release 3.3, Isnt it ?

Yes @humblec required for 3.3

@agarwal-mudit @Yuggupta27  ptal

repo: ceph/ceph-csi


text:
ci: update dependencies in build.env

This commits updates below items.

Golang version to v1.18.4
Golangci-lint to v1.47.3
Helm version to v3.9.2
Rook version to v1.9.8

Signed-off-by: Madhu Rajanna madhupr007@gmail.com
Note:- we have golang 1.19 released yesterday, sticking to the last stable release, for now, If required, we can update to v1.19

#3286 gets merged today, so tomorrow the new container-images will be in the CI mirror. No need to retest/rebase before that.

@mergifyio rebase

/rest ci/centos/mini-e2e-helm/k8s-1.22

/retest ci/centos/mini-e2e-helm/k8s-1.24

/retest ci/centos/mini-e2e-helm/k8s-1.22

@mergifyio rebase

@mergifyio rebase


text:
Consider Kernel >=5.x as sufficient for using the Kernel mounter

Describe what this PR does
#571 allows the mounter to use the kernel Ceph FS client if the kernel is version 4.17 or higher. However, it requires the kernel's major version to be greater than or equal to 4 and the minor version to be greater than or equal to 17. As a result, kernel version 5.x is considered invalid - at least until 5.17 is released!
This PR adds a logical OR to the version check so that if the major version is 5 or higher, it is considered safe to use the kernel mounter regardless of the minor version.
Is there anything that requires special attention
As this is the first PR i've submitted to this project and I am still quite inexperienced with Go, a little extra scrutiny would be welcome even though the change is quite minor!
Related issues
#571
Future concerns
None

@KingJ thanks for the fix, @humblec this need to be back ported to 1.2.0

@KingJ thanks for the fix, @humblec this need to be back ported to 1.2.0

@Madhu-1 sure.. are u filing a backport PR?

@KingJ thanks for the fix, @humblec this need to be back ported to 1.2.0

@Madhu-1 sure.. are u filing a backport PR?

https://github.com/ceph/ceph-csi/pull/601

Is there any reason #601 won't get merged to 1.2.0 branch?
Ubuntu LTS + HWE is running kernel 5.0 but there is no way I can force ceph-csi to use the kernel mounter as it detects incorrectly the kernel version as < 4.17

@lpic10 reopened #601, not use why I closed that backport