text:
Mode-switching sometimes breaks insert mode

Per a request on Twitter, I'm opening an issue about sometimes getting a particular cell stuck in insert mode. I don't yet have a reliable set of repro steps, but it seems to happen when I'm frequently switching between vim-insert mode and normal mode. Sometimes I do this with SHIFT-ESC, sometimes I chain ESC to SHIFT-ESC. Might be some kind of race condition?
Once the buggy behavior begins, a cell appears stuck in insert mode (can type new lines), but has strange behaviors when deleting or some keys (i.e. p) that have special behavior in another mode.
I'll report back if I figure out how to consistently cause it, and welcome any input about how I can provide better information about how this happens.

Thanks for reporting! Right now there's a hack to try and keep codemirror in vim command mode when entering a cell [1]. I know odd behavior can happen when pressing shift-esc while in insert mode then focusing the cell jumps back to vim insert mode. I wouldn't be surprised if it's somehow related to that. I'll try to come up with a better way to handle that and maybe that will resolve this issue. I'll keep an eye out for this going forward.
[1] https://github.com/jwkvam/jupyterlab_vim/blob/9a3262db96e26b1d5a00d8479dcff64ebb54e5d4/src/index.ts#L70

I know odd behavior can happen when pressing shift-esc while in insert mode then focusing the cell jumps back to vim insert mode. I wouldn't be surprised if it's somehow related to that.

This actually sounds like a pretty thorough description of the problem I'm having, although I do find that in this "insert" mode I can still trigger strange behaviors like a paste. Kinda like being half in insert mode, half in command.

Hello is there any updates on this issue? I have this problem periodically (can't reproduce consistently)
Can somebody please explain how to implement the "hack"? Does it involve building the extension manually as opposed to installing with the jupyter labextension install jupyterlab_vim command?

authors: SnoopJeDi jwkvam raulf2012

repo: jwkvam/jupyterlab-vim


text:
Added chunking for larger crops inference

I added chunking to:

PairFormer's triangular attention
MSAModule's transition layers
MSAModule's pair weighted average
MSAModule's outer product mean

The chunking gets automatically enabled when crop size is > 1024.

I changed the limit to automatically chunk the model for num_tokens>512 to allow people using 24Gb GPUs to fit bigger complexes. You can find below a plot comparing the GPU peak memory (GB) as a function of num_tokens with and without chunking.

I changed the limit to automatically chunk the model for num_tokens>512 to allow people using 24Gb GPUs to fit bigger complexes. You can find below a plot comparing the GPU peak memory (GB) as a function of num_tokens with and without chunking. Note that this plot does not include the model's weights!

great thank you!

source: gharchive/pull-request

repo: jwohlwend/boltz

license: MIT

license_type: permissive

license_source: github-api


text:
A problem with sh make.sh

: not found make.sh:
: not found make.sh:
: not found: make.sh:
: not found: make.sh:
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
not recognized-inplace
make.sh: 15: make.sh: rm: not found
: not found: make.sh:
: not found: make.sh:
make.sh: 20: cd: can't cd to model/nms/src
Compiling nms kernels by nvcc...
nvcc fatal   : A single input file is required for a non-link phase when an outputfile is specified
make.sh: 23: make.sh: -D: not found
: not found: make.sh:
make.sh: 25: cd: can't cd to ../
': [Errno 2] No such file or directory
: not found: make.sh:
make.sh: 29: cd: can't cd to ../../
make.sh: 30: cd: can't cd to model/roi_pooling/src
Compiling roi pooling kernels by nvcc...
nvcc fatal   : A single input file is required for a non-link phase when an outputfile is specified
make.sh: 33: make.sh: -D: not found
make.sh: 34: cd: can't cd to ../
': [Errno 2] No such file or directory
: not found: make.sh:
make.sh: 38: cd: can't cd to ../../
make.sh: 39: cd: can't cd to model/roi_align/src
Compiling roi align kernels by nvcc...
nvcc fatal   : A single input file is required for a non-link phase when an outputfile is specified
make.sh: 42: make.sh: -D: not found
make.sh: 43: cd: can't cd to ../
': [Errno 2] No such file or directory
: not found: make.sh:
make.sh: 47: cd: can't cd to ../../
make.sh: 48: cd: can't cd to model/roi_crop/src
Compiling roi crop kernels by nvcc...
nvcc fatal   : A single input file is required for a non-link phase when an outputfile is specified
make.sh: 51: make.sh: -D: not found
make.sh: 52: cd: can't cd to ../
': [Errno 2] No such file or directory
So I do it step by step
python setup.py build_ext --inplace
rm -rf build
CUDA_ARCH="-gencode arch=compute_70,code=sm_70"
compile NMS
cd model/nms/src
echo "Compiling nms kernels by nvcc..."
nvcc -c -o nms_cuda_kernel.cu.o nms_cuda_kernel.cu
-D GOOGLE_CUDA=1 -x cu -Xcompiler -fPIC $CUDA_ARCH
The above is ok
cd ../
python build.py
this line I got the problem
Including CUDA code.
/home/wty/torch/faster-rcnn.pytorch/lib/model/nms
['/home/wty/torch/faster-rcnn.pytorch/lib/model/nms/src/nms_cuda_kernel.cu.o']
Traceback (most recent call last):
File "build.py", line 33, in
extra_objects=extra_objects
File "/usr/local/lib/python2.7/dist-packages/torch/utils/ffi/init.py", line 179, in create_extension
ffi.cdef(_typedefs + all_headers_source)
File "/usr/local/lib/python2.7/dist-packages/cffi/api.py", line 107, in cdef
self._cdef(csource, override=override, packed=packed)
File "/usr/local/lib/python2.7/dist-packages/cffi/api.py", line 121, in _cdef
self._parser.parse(csource, override=override, **options)
File "/usr/local/lib/python2.7/dist-packages/cffi/cparser.py", line 315, in parse
self._internal_parse(csource)
File "/usr/local/lib/python2.7/dist-packages/cffi/cparser.py", line 320, in _internal_parse
ast, macros, csource = self._parse(csource)
File "/usr/local/lib/python2.7/dist-packages/cffi/cparser.py", line 278, in _parse
self.convert_pycparser_error(e, csource)
File "/usr/local/lib/python2.7/dist-packages/cffi/cparser.py", line 307, in convert_pycparser_error
raise CDefError(msg)
cffi.error.CDefError: parse error
:31:1: Illegal character '\r'
I do the search and I don't know why it's wrong? could someone help me with this? thanks

@WangTianYuan which version of cuda and pytorch are you using?

@WangTianYuan which version of pytorch? (not python)

@jwyang 0.4.0

@WangTianYuan  what's you exact command and which directory did you run it in?

cd model/nms/src
echo "Compiling nms kernels by nvcc..."
nvcc -c -o nms_cuda_kernel.cu.o nms_cuda_kernel.cu
-D GOOGLE_CUDA=1 -x cu -Xcompiler -fPIC $CUDA_ARCH
cd ../
python build.py
this is the exact command, I run it in model/nms

: not found make.sh:
: not found make.sh:
: not found: make.sh:
: not found: make.sh:
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
You can see all log in my issue describe, I don't know why I can't run this .sh file

make.sh is in your lib, but you cannot run it since it is not found, right?

yes.

@jwyang yes, I first use ls to make sure it's the right folder

@WangTianYuan  The code you download from github is not the UTF-8 encoded, you need to change the encoded before compiler it. copy to the Notepad and copy back is useful. I solved the problem in this way.

@HURB I've changed the make.sh to URF-8, It doesn't work, can you describe it more specific?

@WangTianYuan  encoded all the python code

@HURB How? Do I need encode the file one by one or is there an easy way to do it?

@WangTianYuan The code you download from github is not the UTF-8 encoded, you need to change the encoded before compiler it. copy to the Notepad and copy back is useful. I solved the problem in this way.

tks

@HURB I still can't run this model, can you email the whole git.zip to me? my e-address is wangtianyuan@iie.ac.cn, thank you very much.

@HURB @hongdayu I'm sorry to interrupt you, but I follow your instruction:copy the file to notepad then copy back, I still have the same problem. Where did I do wrong?

font{
    line-height: 1.6;
}
ul,ol{
    padding-left: 20px;
    list-style-position: inside;
}

我的做法就新建一个文件，然后copy进去，就ok了
    a#ntes-pcmail-signature-default:hover {
        text-decoration: underline;
        color: #199cff;
        cursor: pointer;
    }

    a#ntes-pcmail-signature-default:active {
        text-decoration: underline;
        color: #246fce;
        cursor: pointer;
    }

                            yuyuji007

                                yuyuji007@gmail.com

                签名由
                网易邮箱大师
                定制

On 9/19/2018 15:30，WangTianYuan<notifications@github.com> wrote：

@HURB @hongdayu I'm sorry to interrupt you, but I follow your instruction:copy the file to notepad then copy back, I still have the same problem. Where did I do wrong?
—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or mute the thread.

@HURB @hongdayu I'm sorry to interrupt you, but I follow your instruction:copy the file to notepad then copy back, I still have the same problem. Where did I do wrong?
it's work for me
build a new .sh file,copy original code in it.

@hongdayu I create new make.sh, build.py file, copy the code; then it still have the '\r' problem.
cffi.error.CDefError: parse error
:31:1: Illegal character '\r'
Do I need to recreate all file?

maybe you should change the file into unix fomat

vim filename
input : set ff, the format is dos, you should change it into unix (set ff=unix)
save it

@lwq1122 thx, I solved this problem by follow commands:
touch make.sh
vim make.sh
copy the entire text to notepad++, save as utf-8
then copy back

I think that's not the encoding problem. Files downloaded from Github is using CRLF, just change it to LF on Linux and that will work.

Try running dos2unix on the script.
dos2unix maks.sh

source: gharchive/issue

authors: ChengruZhu HURB WangTianYuan hongdayu huangbiubiu jwyang lwq1122


text:
Using is with React components

I can do this:
import {TextPrimitive} from './Text';'

const CardBodyText = system({
    extend: TextPrimitive,
    ...
});

and I can also do this:
<Component is="button" />;
But I cannot do this:
<CardBodyText is={TextPrimitive} />
Any reason why this shouldn't be used?

@flybayer that doesn't have the same function though as the is prop.
extends allows you to indeed 'extend' the pre-defined styled functions of another styled-system component, but the is allows you to replace the element that gets rendered.
To be a bit less abstract. the thing I'm trying to achieve at the moment is basically this:
import { Link } from 'react-router-dom';
//...
const Button = system({
  is: 'button',
  ...
});

<Button is={Link} to="/guides" bg="white" color="primary" display="block">
  Guides
</Button>

So basically I have my Button component styled as a nice button, but if I want to use react router, then I need the component to be a Link component.
A workaround is to make the Link a child of the Button, but then I have unnecessary nesting.
With styled-components v4 you can use the as={MyComponent prop. Was hoping we might be able to do something similar here!

system-components is deprecated in favor of @rebass/components, which should work better for this sort of thing

authors: jxnblk lucastobrazil

repo: jxnblk/styled-system


text:
Cursor does not appear

Cursor does not appear when the user moves into a blank line using the scroll buttons, the arrow up/down keys, or a mouse click.

Fixed using Window.identity

repo: jxxcarlson/elm-text-editor


text:
DDIM sampling

Thanks for the awesome work.
Whether I can use ILVR sampling based on the ddim sampling scheme? I try to use ddim sampling scheme with ILVR, but the result will be very blury.

Yes, samples from ILVR + DDIM have either blur or noise artifacts, probably due to the aliasing error of the image resizer. The Brownian noise added in DDPM sampling corrects such errors. I believe finding a better conditioning scheme for DDIM will be a good future research direction.


text:
🛑 le Zata is down

In e860782, le Zata (http://zata.free.fr) was down:

HTTP code: 0
Response time: 0 ms

Resolved: le Zata is back up in 9cb687a.

repo: jyhem/upptime-jyhem


text:
Preprocessing functions for TGS Salt Dataset

Usually, the identification of Salt using Salt images from the Subsurface is done manually and is a very cumbersome and time taking task. Also, the chances of error are very high. With the advent of CNN architectures such as U-NET, the task of identification of salt from salt images was delegated to  Semantic segmentation done by these CNNs. The results were highly accurate and a lot of time was saved. But there is one catch with these architectures. These CNNs are supervised algorithms and thus in order to carry out semantic segmentation, they require pixel-wise labelling in form of boolean masks. Which is another time-taking task.
But the advent of Segment-Sort eliminated all these hurdles, as it can also carry out unsupervised segmentation on the dataset without any need for labels or boolean masks.
The current code base of SegSort is capable of carrying out unsupervised semantic segmentation on the PASCAL VOC dataset. The code-base is executed via a bash script, and hence carries out the pre-processing task, specific to the PASCAL VOC dataset during the run-time.
The pre-processing functions are added in the file 'preprocessing.py' and add value and usability to the code-base as follows:-

These functions can be used to prepare the TGS Salt dataset to be used with the code-base.
There are separate functions for creating the TensorFlow input queue and training and testing tensors in form of NPY files.
Hence the dataset can be pre-processed without executing the whole code-base.
These pre-processing functions can be used with any other dataset in their original directory structure.
The functions are tested and working.

Hi @paritosh5feb,
Thanks for the pull request!
Could you please also include in the comment the website link for the TGS Salt Dataset and the pointer to the data that you use?
That would be really helpful if someone would like to try out this preprocessing code.
Thanks,
Jyh-Jing

repo: jyhjinghwang/SegSort


text:
Festivals not being assigned in autogenerated mds.

https://github.com/jyotisham/jyotisha/commit/d8d8bc3076b57c992e66f6826eefffae4f756495 foes not contain festivals from most repos.

Not sure what the problem was. But seems fine now. Closing for now.

repo: jyotisham/jyotisha


text:
Support osx

I add brew packages to support osx.
cf https://github.com/sstephenson/ruby-build/wiki#suggested-build-environment

LGTM :+1:

Released as v0.3.4. :gem:

:heart_eyes:

license: mit

license_source: bigquery


text:
Sequencing of %i and %o seems off...

I had to change the 'launch timing' of the initial self.maxima_setup_command = "display2d:false$" command to get current maxima v5.43.2 to cooperate with this library.  If I don't do this, maxima_interface appears to hang waiting for its first '(%o' response.
Is this fix something that would be helpful as a PR?

Thank you for figuring this out! I would be delighted if you made a PR.


text:
Use explicit relative imports

switch from implicit relative imports to explicit relative imports as recommended by Guido: https://peps.python.org/pep-0328/#guido-s-decision
sort import order using isort

close #508

Could you please fix the CI errors?

Do the scripts actually run correctly when using relative imports?
In my experience, if you use relative imports like that and you run the scripts in the normal way, like
python3 pruned_transducer_stateless2/decode.py
you get errors like "cannot use relative import because decode.py is not part of a package"
(this is from memory, may not be exact).
That's why I don't tend to use them.

authors: csukuangfj danpovey shaynemei


text:
Add Zipformer-MMI

This PR adds Zipformer-MMI recipe.
It uses CTC loss for warm-up and then switches to MMI loss during training.
For decoding, it uses HP (H is ctc_topo, P is token-level bi-gram) as decoding graph. Supported decoding methods are:

1best. Extract the best path from the decoding lattice as the decoding result.
nbest. Extract n paths from the decoding lattice; the path with the highest score is the decoding result.
nbest-rescoring-LG. Extract n paths from the decoding lattice, rescore them with an word-level 3-gram LM, the path with the highest score is the decoding result.
nbest-rescoring-3-gram. Extract n paths from the decoding lattice, rescore them with an token-level 3-gram LM, the path with the highest score is the decoding result.
nbest-rescoring-4-gram. Extract n paths from the decoding lattice, rescore them with an token-level 4-gram LM, the path with the highest score is the decoding result.

Experimental results training on train-clean-100 (epoch-30-avg-10):

1best. 6.43 & 17.44
nbest, nbest-scale=1.2, 6.43 & 17.45
nbest-rescoring-LG, nbest-scale=1.2, 5.87 & 16.35
nbest-rescoring-3-gram,  nbest-scale=1.2, 6.19 & 16.57
nbest-rescoring-4-gram,  nbest-scale=1.2, 5.87 & 16.07

Experimental results training on full librispeech (epoch-30-avg-10):

1best. 2.54 & 5.65
nbest, nbest-scale=1.2, 2.54 & 5.66
nbest-rescoring-LG, nbest-scale=1.2, 2.49 & 5.42
nbest-rescoring-3-gram,  nbest-scale=1.2, 2.52 & 5.62
nbest-rescoring-4-gram,  nbest-scale=1.2, 2.5 & 5.51

It uses CTC loss for warm-up and then switches to MMI loss during training.

Is it because the model won't converge without warm-up? How does the WER compare to CTC training only? Thanks.

authors: wangtiance yaozengwei


text:
etcd node role not getting set when bringing up etcd-only node before

Environmental Info:
K3s Version:

v1.22.8-rc1+k3s1
v1.21.11-rc1+k3s1
NOT v1.23
Node(s) CPU architecture, OS, and Version:

Ubuntu 20.04 LTS
$ uname -a
Linux ip-172-31-40-188 5.11.0-1022-aws #23~20.04.1-Ubuntu SMP Mon Nov 15 14:03:19 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Cluster Configuration:

1st node = etcd-only
2nd node = etcd-only
3rd node = all roles
Below I have a minimal configuration of only 2 nodes where I reproduced this for a minimal setup.
Describe the bug:

The etcd role does not get set on the etcd-only node(s) when bringing them up before cp nodes:
NODE1 etcd-only
curl -fL https://get.k3s.io | INSTALL_K3S_VERSION=v1.22.8-rc1+k3s1 sh -s - server --write-kubeconfig-mode 644 --cluster-init --token demo --disable-apiserver --disable-controller-manager --disable-scheduler --node-external-ip=<redacted>

NODE2 all roles
curl -fL https://get.k3s.io | INSTALL_K3S_VERSION=v1.22.8-rc1+k3s1 sh -s - server --write-kubeconfig-mode 644 --token demo --server https://<redacted>:6443 --node-external-ip=<redacted>

Steps To Reproduce:

See above configuration. Run node1 then node2 in serial order. Node2 can either be cp-only or all roles.
Expected behavior:

All nodes should be up and running, accessible via kubectl after the control plane comes up, and have correct labels set (etcd on the two nodes that are etcd-only and control-plane,etcd,master on the third node).
Actual behavior:

The third node is the only node that has the correct labels, and the two etcd nodes have no labels (<none>).
Additional context / logs:

Restarting the k3s process on the etcd-only nodes resolves the issue. Before restarting, the logs on those two nodes just loop with:
level=info msg="Waiting for API server to become available"
Backporting

Needs backporting to v1.21, but does NOT need forwardporting to v1.23.

Validated on all of v1.21.11-rc2+k3s1, v1.22.8-rc2+k3s1, and v1.23.5-rc2+k3s1
etcd role is properly set. Details below from 1.22.8-rc2, but all versions looked the same. Ensured the same functionality whether joining an all-roles node or cp-only node to the initial etcd-only node.
NAME                    STATUS   ROLES                       AGE   VERSION            INTERNAL-IP     EXTERNAL-IP      OS-IMAGE             KERNEL-VERSION    CONTAINER-RUNTIME
node/ip-172-31-36-114   Ready    etcd                        59s   v1.22.8-rc2+k3s1   172.31.36.114   <redacted>       Ubuntu 20.04.3 LTS   5.11.0-1022-aws   containerd://1.5.10-k3s1
node/ip-172-31-40-176   Ready    control-plane,etcd,master   69s   v1.22.8-rc2+k3s1   172.31.40.176   <redacted>       Ubuntu 20.04.3 LTS   5.11.0-1022-aws   containerd://1.5.10-k3s1

NAMESPACE     NAME                                          READY   STATUS      RESTARTS   AGE   IP          NODE               NOMINATED NODE   READINESS GATES
kube-system   pod/coredns-7796b77cd4-pr685                  1/1     Running     0          56s   10.42.1.3   ip-172-31-36-114   <none>           <none>
kube-system   pod/helm-install-traefik--1-scczs             0/1     Completed   2          56s   10.42.1.2   ip-172-31-36-114   <none>           <none>
kube-system   pod/helm-install-traefik-crd--1-j5zdl         0/1     Completed   0          56s   10.42.0.4   ip-172-31-40-176   <none>           <none>
kube-system   pod/local-path-provisioner-84bb864455-7nxlj   1/1     Running     0          56s   10.42.0.2   ip-172-31-40-176   <none>           <none>
kube-system   pod/metrics-server-ff9dbcb6c-rkkjw            1/1     Running     0          56s   10.42.0.3   ip-172-31-40-176   <none>           <none>
kube-system   pod/svclb-traefik-lt2n8                       2/2     Running     0          26s   10.42.1.4   ip-172-31-36-114   <none>           <none>
kube-system   pod/svclb-traefik-mvxbl                       2/2     Running     0          26s   10.42.0.5   ip-172-31-40-176   <none>           <none>
kube-system   pod/traefik-56c4b88c4b-bcj46                  1/1     Running     0          27s   10.42.1.5   ip-172-31-36-114   <none>           <none>


text:
etcd snapshot issues with compression and timeout

There are a couple issues with the snapshot controller that are creating problems for Rancher users

Scheduled snapshots are not compressed
The default s3 upload timeout is too short, but raising the default timeout may allow multiple snapshot operations to stack up if it exceeds the configured interval.

Upstream issues:

https://github.com/rancher/rke2/issues/3109
https://github.com/rancher/rancher/issues/37904#issuecomment-1179413881

Validated on release-1.24 RC  v1.24.3-rc1+k3s1
Environment Details
Infrastructure
Cloud (AWS)
Hosted
Node(s) CPU architecture, OS, and Version:
Ubuntu 20.04 LTS
Cluster Configuration:
1 server
Config.yaml:
write-kubeconfig-mode: 644
token: test
cluster-init: true
etcd-snapshot-compress: true
etcd-s3: true
etcd-s3-bucket: maxrtest
etcd-s3-folder: maxk3s
etcd-s3-region: us-east-2
etcd-s3-access-key: ""
etcd-s3-secret-key: ""
etcd-snapshot-retention: 4
etcd-snapshot-schedule-cron: "*/2 * * * *"
Additional files
N/A
Testing Steps
Copy config.yaml
$ sudo mkdir -p /etc/rancher/k3s && sudo cp config.yaml /etc/rancher/k3s
Install k3s
Monitor both the the k3s logs and the designated s3 bucket
Replication Results:
k3s version used for replication:
v1.24.2+k3s2

Validation Results:
k3s version used for validation:
release-1.24 RC  v1.24.3-rc1+k3s1
Snapshots are saved with zips when defined in the config yaml
On demand snapshots continue to work and save as zips when defined
Logs show snapshots being saved as zips

When compression flag is not defined in the config, snapshots are not saved compressed as expected

authors: brandond est-suse


text:
Certificate gets to invalid and no way to recover if k3s gets started at a future time

Environmental Info:
K3s Version: v1.23.10+k3s1
Linux system: Alpine-3.15.4
Linux kernel: 5.15.55-0-virt
Describe the bug:
Certificate gets to invalid and no way to recover if k3s gets started at a future time. This issue is different from #5163, which is about  the certificate is used after the valid time range. My issue is about the certificate is used before the valid time range. They are opposite. The workaround mentioned in #5163 and the fix #5896 don't work for this one.
Steps To Reproduce:
My steps

start a linux system, somehow the system time is a future time
and the system has no network settings (means no access to the internet),
install and start k3s
restart ntpd, the right system time is set, and it is earlier than the time when k3s got started,
then this error messages can be seen everywhere, in /var/log/k3s.log, when run "kubectl", ...
Unable to connect to the server: x509: certificate has expired or is not yet valid: current time 2022-09-16T18:32:28Z is before 2022-09-16T18:41:21Z

For you, to easily reproduce

stop ntpd
run date <a future time>
install and start k3s
start ntpd
then there you go

Expected behavior:
Unless I set the system time to the future time again, k3s is not usable any more. Restarting can't fix it. k3s can rotate the expired certs to the future, it also needs to rotate the future certs to now, doesn't it?

Duplicate of https://github.com/k3s-io/k3s/issues/5163#issuecomment-1192254288
You should ensure that time does not go backwards while Kubernetes is running, in particular backwards to before the service was started.

I explicitly announced that this issue is different from #5163. They are opposite, but duplicate. Are you not seeing it?
And I of course don't want to set the system time backwards. It is because the system time was wrong when k3s was started, then ntpd corrected the time, made it go backwards.
And it is no way for me to start k3s after ntpd corrects the system time. Also, in my opinion, k3s should not stop working because of these certificates stuff, otherwise you guys wouldn't have bothered to add the "auto-renew" feature.

Right, but as noted in the comments on that other issue, Kubernetes does not handle time going backwards well if at all. Renewal covers extending certificates that have or are about to expire, it does not handle certificates that aren't valid yet because they were issued in the future.
If this is a common problem for you, you might consider adding a dependency on your time sync service of choice to the k3s service.

Ok..., is there any workarounds to make k3s re-generate those invalid certificates?
I tried deleting the whole dir /var/lib/rancher/k3s/server/tls, and also deleting the secret k3s-serving (using etcd-ctrl, kubectl is no more usable at this moment), then start k3s again, but it didn't work. Is there any thing I could do manually to get k3s started again? Getting it work again is so important and basic, isn't?

face same issue, set time backwards, and k3s crash with x509 error

Don't set the system time backwards to before it was originally started. This is not something we are planning on supporting.

authors: JasperWey brandond ckyoog


text:
Bump metrics-server to v0.6.1

Proposed Changes
Bump metrics-server to v0.6.1
Types of Changes
packaged component; version bump
Verification
Check metrics-server image tag
Testing
n/a
Linked Issues

User-Facing Change
The embedded metrics-server version has been bumped to v0.6.1

Further Comments

Codecov Report
Base: 9.72% // Head: 9.72% // No change to project coverage :thumbsup:

Coverage data is based on head (73e7e64) compared to base (28028f8).
Patch has no changes to coverable lines.

Additional details and impacted files
@@          Coverage Diff           @@
##           master   #6151   +/-   ##
======================================
  Coverage    9.72%   9.72%
======================================
  Files         138     138
  Lines       10057   10057
======================================
  Hits          978     978
  Misses       8880    8880
  Partials      199     199

Flag
Coverage Δ

unittests
9.72% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

pkg/deploy/zz_generated_bindata.go
0.00% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

https://drone-pr.k3s.io/k3s-io/k3s/4732

authors: brandond codecov-commenter


text:
[mosquitto] Add chart

Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[ ] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [radarr])

FYI, the linter expects your maintainer name to = GitHub alias.

Thanks for your submission @ishioni!

authors: carpenike ishioni


text:
README: Fix broken links

Description
Replace any broken links in the README.md that aren't rendering correctly in markdown preview mode.
Closes #10401.
Checklist:

[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works

Hmm I thought the issue was with relative path rendering, but the actual issue is that the docs/content/img/k8sgateway path hasn't been checked into the repository yet.

The markdown preview button in the files changed tab doesn't appear to render correctly, but if you view the new file raw and click the markdown preview, it looks like we're back in business: https://github.com/k8sgateway/k8sgateway/blob/35fac5cc963d5435d2510abfd8b52b1d25232fbc/README.md.


text:
Update daemonset image with v0.2.0 release

update in project daemonset with newly released image
Signed-off-by: Adrian Chiris adrianc@nvidia.com

Pull Request Test Coverage Report for Build 1777552121

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 66.71%

Totals

Change from base Build 1715023735:
0.0%

Covered Lines:
517

Relevant Lines:
775

💛  - Coveralls

LGTM

authors: adrianchiris coveralls ykulazhenkov


text:
New metrics collector implementation

This replaces the MCAC in our images with a new metrics collector. At the moment, it answers on port 9000 and path /metrics (anything else will return 404).

Missing SSL support, how do we wish to proceed with this one? mgmt-api has configurable SSL properties already.
There's no gateway from mgmt-api-http-server -> agent-metrics. Do we want/need such for some purpose?
There's no Netty chunking, buffered writing.

Hopefully I didn't forget anything else.. I tested with 4.0.6 again, but lets see if mgmt-api building process / tests break for some reason (since CDC agent will modify behavior).
Ouh, we probably want more tests.. this PR doesn't have them ported, at least not yet.
Fixes #233
Fixes #229
Fixes #228

Feel free to merge this PR if you're done with the changes after rebasing to fix the conflict.

authors: adejanovski burmanm


text:
attachments in a long email conversation

Expected behavior
Tell us what should happen
In the previous versions before the 5.201 if we receive a messagge with 25 replies, and an attachment the same can be showed clicking on the button on the right part of top of the message.
Actual behavior
Tell us what happens instead
if we received the same messages now (25 replies), the attachement is showed only after scroll all messages, at the end. Is not so easy and immediate to see.
Steps to reproduce

Environment
K-9 Mail version:
5.201 - 5.202
Android version:
6.0 - 6.0.1
Account type (IMAP, POP3, WebDAV/Exchange):
IMA - POP3

Duplicate of #1977


text:
'Dark' theme gives almost invisible subject text on 'long press' quick action listing

Please search to check for an existing issue (including closed issues, for which the fix may not have yet been released) before opening a new issue: https://github.com/k9mail/k-9/issues?q=is%3Aissue
Expected behavior
The text should be visible - I would suggest White as with the rest of the text.
Actual behavior
It is displayed as black text - against the dark grey background it is almost invisible.
Steps to reproduce

Set THEME to 'dark
Long press on an individual message to bring up the quick-select action menu

The same think happens when choosing 'settings' from the menu - the 'settings' sub menu is displayed with near invisible heading of "settings"
See screenshot

Environment
K-9 Mail version:  5.208
Android version:  7.0
Account type (IMAP, POP3, WebDAV/Exchange):  IMAP

This seems to no longer be an issue in master.

authors: cketti jimimaseye


text:
Gateway 4.0.4.224: Text received as BLOB when connecting to an Echo service through a Proxy

Client technology: Javascript
Browser with Version: tested with Chrome and FF
Client O/S with Version: Ubuntu 12.04
Same-origin / Cross-origin? n/a
Gateway with version: Gateway 4.0.4.224
Gateway Java version: 1.7
Server OS with version: Ubuntu 12.04
Gateway Service: Proxy/Echo
Back-End System with version: n/a
Can the bug be reproduced in a Kaazing demo out-of-the-box? No, use attached configuration files.
Does the bug reproduce with all emulated or native combinations?
Is this a regression from previous released version?
Does this reproduce in a later released version?
Gateway config, if applicable: attached
Client code to reproduce, if applicable: OOB JS demo client
Steps to reproduce:

Start Gateways using attached configuration file
Browse to http://localhost:8001/demo/gateway/javascript/ws.html
Connect to ws://localhost:8004/proxy and click "Send Text"

Observed behavior:

Demo console shows

CONNECT: ws://localhost:8004/outer

CONNECTED

SEND TEXT: Hello, WebSocket!

RECEIVED BLOB: 72,101,108,108,111,44,32,87,101,98,83,111,99,107,101,116,33

Expected behavior:

CONNECT: ws://localhost:8001/echo

CONNECTED

SEND TEXT: Hello, WebSocket!

RECEIVED TEXT: Hello, WebSocket!

Additional notes:
If you click on "Send Array Buffer" then on "Send Text" you'll see the console say:

SEND TEXT: Hello, WebSocket!

RECEIVED ARRAY BUFFER: 72,101,108,108,111,44,32,87,101,98,83,111,99,107,101,116,33

And the same for Byte Buffer.

Imported from JIRA
Originally reported by: mustafarian
Issue Number: KG-10527

jitendra.kotamraju said:
I think this is same as http://jira.kaazing.wan/browse/KG-10275

chris.barrow said:
Agreed, I just closed KG-10275 as duplicated by this one. Best way to tackle this bug would be to start by creating a robot test (in gateway.server) that reproduces the problem.
Note that WsBuffer does have a flag to indicate text or binary, and we use this in the echo service to make sure we don't lose the type information. Probably when we transit a message through the proxy service we are losing that information (I think that code is in AbstractProxyHandler).

brennan.gaunce said:
Please make sure that the test is for the service only, and does not include transports.
The transport tests are already defined in the "base-service" branch - with a ticket assigned to Jitu.  I'd like to see all of this land in trunk in 4.0.5.  See KG-10274.

jitendra.kotamraju said:
Due to KG-10594, WsFrameTextFilter gets added which converts Text frames to binary frames.

jitendra.kotamraju said:
We need more discussion on how a proxy should behave. client --> ws --> tcp, does the tcp layer receive entire websocket frame or just the payload of the websocket frames ? Similarly, what should happen in other cases like, client --> ws --> ws ? Based on the discussion, we need to see how the text and binary frames need to preserved.

This will need a lot of design change, so we will not fix it in 5.0 + 4.x release.

gateway-config.xml

<gateway-config xmlns="http://xmlns.kaazing.com/2012/08/gateway">

    <service>
      <name>extras-directory</name>
      <description>Directory service for demo (extras) files</description>
      <accept>http://localhost:8001/</accept>

      <type>directory</type>
      <properties>
          <directory>/extras</directory>
          <welcome-file>index.html</welcome-file>
          <error-pages-directory>/error-pages</error-pages-directory>
          <options>indexes</options>
      </properties>

  </service>
  <service>
      <accept>ws://localhost:8004/proxy</accept>
      <connect>ws://localhost:8006</connect>
      <type>proxy</type>
      <cross-site-constraint>
          <allow-origin>*</allow-origin>
      </cross-site-constraint>
  </service>

  <service>
      <accept>ws://localhost:8006/</accept>
      <type>echo</type>
      <cross-site-constraint>
          <allow-origin>*</allow-origin>
      </cross-site-constraint>
  </service>
</gateway-config>

repo: kaazing/gateway


text:
Update reconciler backoff and/or apply logic for cases when collection apply fails

When a collection apply fails, the collection reconciler will schedule a retry for 60 seconds.  On the retry the reconciler will fetch the collection again from the remote repository.  In some environments this may result in the requestor being throttled.  We should consider an alternative approach.  Some options:

Cache the content somewhere (in-memory FS, volume, etc) and only update it if the Collection document changes.  The FS should be indexed by the digest or some other way that keeps the versions separate.
An exponential backoff on the retry.  This would reduce fetches from the remote repository.
Something else.  :-)

@kyleschlosser had a good suggestion to use etags as a part of the caching mechanism:
https://en.wikipedia.org/wiki/HTTP_ETag
The collection controller can cache as described above along with the etag (for both the index yaml, and the individual .tar.gz files in the collection) and then only retrieve them again if the etag is different.  This should be combined with a configuration on the Kabanero document that determines how often we go back to github with the etag to determine if it's changed.
Github should reply with a HTTP 304 if the file has not changed, at which point we can use what we've cached.  The hope is that we won't get throttled when using the etag, as opposed to day when we ask for the whole document each time.

It is likely that the changes being proposed in #288 will require this.  I think for the time being, an in-memory cache (byte[]) will suffice, with reasonable size defaults.

repo: kabanero-io/kabanero-operator


text:
【質問】エクセルアドインからの発注について

kabuSTATION_API_ORDER_sample.xlsmの発注において躓いています。エラーメッセージは「発注が有効になっていません」とのメッセージです。
https://gyazo.com/f680414daceefd2706a1be1f29fe3ba4
MarginTrading()の関数をステップインしてみると、「ノードの各情報を取得（検索指定）」のあたりで問題が生じているようです。xmlOrderはゼロになっているし、本番用のポート（18080）を設定しているにも拘らず、PortNo＝18081になっているし、xmlToken=""になっています。
' ノードの各情報を取得（検索指定）
Set xmlOrder = XMLDocument.SelectSingleNode("//settings/setting1/OrderButton")
Set xmlPort = XMLDocument.SelectSingleNode("//settings/setting1/PortBox")
Set xmlToken = XMLDocument.SelectSingleNode("//settings/setting1/ApiToken")
OrderControl = xmlOrder.Text
PortNo = xmlPort.Text
ApiToken = xmlToken.Text
コードの最初のところで躓いていますが、どのように解決すれば宜しいでしょうか？宜しくお願いします。

因みに、kabuSTATION_API_PUSH_sample.xlsxとkabuSTATION_API_function.sample.xlsxのシートでは概ねちゃんとアドインは動いています。

画面のリボン部分にて本番を選択頂き、ログインは可能でしょうか？

ログインは可能です。本番用ログインで緑色のマークになっています。勿論、発注制御、更新制御も緑色のマークにしています。

アドインの設定で実行環境が「本番」になっていないということはないでしょうか
検証のポートにアクセスするケースとして考えられるのは、その選択くらいしかないのですが。

ご回答の感じからこちらに問題があるかと思い、色々と試してみました。
そして結果的に発注までこぎつけました。
当初はExcel2013 32bitでエラーとなったので、最新のアドインをダウンロードして、Excel2019 32bitで試してみたらうまくいきました。Excel2016 32bitで試してみてもうまくいきました。最後にもう一度、Excel2013 32bitで試してみたらうまくいきました。原因はアドインを最新にしたぐらいしか分かりませんが、結果的にうまくいって良かったです。
どうもありがとうございました。

了解しました。
以後、同事象が発生している場合には、アドインの再インストールを案内してみます。
情報の連携ありがとうございました。

repo: kabucom/kabusapi


text:
Update snowflake changes.

Update snowflake changes.

Merge changes to correct snowflake.

Updates.


text:
validate tcga brca against original outputs

upon viewing model outputs at high resolution, there are sometimes discrepancies in probability values between the original and new outputs. the model weights are the same, however. the problem could be that the patches are slightly off (off by one?) but the patches do seem to be the same.
select patches where model outputs are different between the two implementations and try to track down the problem. use the same python environment when debugging to ensure that the environment is not the issue.

i am testing the resnet34 from https://github.com/SBU-BMI/quip_cancer_segmentation and the original model gives identical outputs to the new implementation. i tested the original model in an environment with pytorch 0.4.0 and torchvision 0.2.0. And i installed wsinfer with the latest torch and torchvision. the outputs were identical.
next step is to check if data processing is the same. and if patches are selected in the same manner.

to test whether differences in patching are causing differences in predictions, i used the patch coordinates from the original code for prediction with wsinfer. i put the patch coordinates into the hdf5 file with coordinates and re-ran model inference. the patch size was the same between wsinfer and the original code, which means that wsinfer is correctly resizing images to the appropriate resolution.
and there are differences.
original output
   minx  miny  prob_tumor
0   179   179    0.000000
1   179   535    0.093809
2   179   891    0.145131
3   179  1247    0.258018
4   179  1603    0.000000

wsinfer output (with orig patch coordinates)

it's beginning to look like the patch processing is causing the differences in model predictions. we are able to get the same patches as the quip code using the snippet below. note the use of Image.ANTIALIAS, which is deprecated.
import large_image
from PIL import Image

path = "data/patches/TCGA-C8-A12W-01Z-00-DX1.3727E7BB-831E-42DB-B5CB-F2D7C649290F.svs/1_1_2137_2100.png"
quip_patch = Image.open(path).convert("RGB")

ts = large_image.getTileSource("data/svs/TCGA-C8-A12W-01Z-00-DX1.3727E7BB-831E-42DB-B5CB-F2D7C649290F.svs")
patch, _ = ts.getRegion(format="PIL", region=dict(left=1, width=2137, top=1, height=2137))
patch = patch.convert("RGB")
patch = patch.resize((2100, 2100), Image.ANTIALIAS)

assert np.array_equal(quip_patch, patch_new_resized)

indeed if we process the patches in the same was as quip, we get the same model outputs when using the wsinfer model:
   minx  miny  prob_tumor  prob_tumor_wsinfer
0   179   179    0.000000            0.000000
1   179   535    0.093809            0.093809
2   179   891    0.145131            0.145131
3   179  1247    0.258018            0.258017
4   179  1603    0.000000            0.000000

note that wherever the probability is 0.0, this was not the output of the model. this was set as 0 because the "whiteness" of the patch was below a threshold.
def whiteness(png):
    wh = (np.std(png[:,:,0].flatten()) + np.std(png[:,:,1].flatten()) + np.std(png[:,:,2].flatten())) / 3.0;
    return wh;

if (whiteness(png[y:y+APS, x:x+APS, :]) >= 12):
   ...

Final thoughts
the differences between the original and new pipelines are due to (subtle) differences in how patches are processed. the old and new models give identical outputs for the same inputs. here is a summary of the differences in patch processing:

in the original code, "super-patches" are extracted, which contain 36 patches that would be fed to the model. these super-patches are resized to (2100, 2100) using image.resize((2100, 2100), Image.ANTIALIAS). in the new code, we use the large-image package to extract patches at the desired resolution automatically, which uses Lanczos to resample (and that is now recommended by pillow). this leads to slight differences in the extracted images. see the large-image source where resampling happens.
in the original code, model outputs are set to 0.0 if the "whiteness" is >= 12. in the new code, we do not do this. we rely on the tissue segmentation code to filter out non-tissue regions, and we apply the model to all resulting patches.

repo: kaczmarj/wsinfer


text:
Update to run with current rust version

Thank's for this nice where helpful examples!
Since these example did not run with a current up-to-date rust implementation, I have updated the dependency on reqwest 0 .9 since from 0.10, the get method returns a future which is incompatible with the current version.
Also, I moved all *.rs files except main.rs to the examples folder, which allows to run these binaries with, e.g.
cargo run --example grab_all_links

without changing anything of the code base.

Excellent to make the fix.

repo: kadekillary/scraping-with-rust


text:
Multi-GPU models loading and training

Hello,
I came across your work, and was wondering whether loading and training models on multiple GPUs was possible.
I saw in the YOLOv7 repo that it was possible with the following command line:
# train p5 models
python -m torch.distributed.launch --nproc_per_node 4 --master_port 9527 train.py --workers 8 --device 0,1,2,3 --sync-bn --batch-size 128 --data data/coco.yaml --img 640 640 --cfg cfg/training/yolov7.yaml --weights '' --name yolov7 --hyp data/hyp.scratch.p5.yaml

# train p6 models
python -m torch.distributed.launch --nproc_per_node 8 --master_port 9527 train_aux.py --workers 8 --device 0,1,2,3,4,5,6,7 --sync-bn --batch-size 128 --data data/coco.yaml --img 1280 1280 --cfg cfg/training/yolov7-w6.yaml --weights '' --name yolov7-w6 --hyp data/hyp.scratch.p6.yaml

I managed to use your code to train the model on a single GPU, but not on several GPUs. Have you managed to do it and have you any tip to do this multi-GPU training in a script ?
Thank you

I haven't tried for training. I developed the prediction codes.
@jrtwolski It can help you.

authors: kadirnar vdelale


text:
Error trying to mount through automatic startup script

Hi,
I tried to mount goofys on system bootup in etc/init.d as instructed here using the following script:
#! /bin/sh
#
# goofys  Automount Aliyun OSS Bucket in the specified direcotry using goofys.
# chkconfig: 2345 90 10
# description: Activates/Deactivates goofys configured to start at boot time.
/usr/bin/goofys --endpoint {endpoint} --region {region} --uid=1001 --gid=1001 --file-mode=0666 --dir-mode=0777 -o allow_other {bucket-name} {mount folder path}

When I try with service goofys start, it returns  main.FATAL Unable to mount file system, see syslog for details, is there anything wrong with the script?

Hi,
I tried to mount goofys on system bootup in etc/init.d as instructed here using the following script:
#! /bin/sh
#
# goofys  Automount Aliyun OSS Bucket in the specified direcotry using goofys.
# chkconfig: 2345 90 10
# description: Activates/Deactivates goofys configured to start at boot time.
/usr/bin/goofys --endpoint {endpoint} --region {region} --uid=1001 --gid=1001 --file-mode=0666 --dir-mode=0777 -o allow_other {bucket-name} {mount folder path}

When I try with service goofys start, it returns  main.FATAL Unable to mount file system, see syslog for details, is there anything wrong with the script?

i also want to use goofys in aliyun, and i got the same error .  if you have resovled , Can you share the solution?

I get this only with root user on CentOS 8, another user mounts fine

authors: chgyi gvlasov michaeledi

repo: kahing/goofys


text:
示例中，部门管理组件选用错误

部门管理中，使用了TreeSelect,会产生一个问题，新增部门时，无法添加到顶级目录。比如第一个，无法添加一个新部门到厦门分公司

这个项目是不是黄了,  感觉问的问题都没有人回答

authors: beimusky nubigit


text:
hyperparameter setting guideline

is there any guideline for selecting the context length?

Yes, please see the experiment section.

authors: YoojuShin minyoungbae

repo: kaist-dmlab/CrossMatch


text:
Correct the algorithm

Change the fitness function to fix the roulette wheel method: previously, higher fitness values meant that the chromosome is worse. However, the roulette method preferred higher values. We must use a fitness value that is the bigger the better. I used an inverse of the distance (+1 to account for special cases).
The mutation method had a bug that made it always swap a city with itself.
Use "Eliteness": keep good chromosomes from previous generations instead of always keeping only the newly generated ones.
Lower the mutation rate: the current mutation method needs very low mutation_rate to work as intended.
Don't plot the solutions, and print the best chromosome instead: the plotting function doesn't work correctly. It's printing some paths that don't match the found solutions. I don't have the energy to fix this, so I've just removed it :)

btw, after applying the changes in this PR, the best solution has a fitness of around ~ 0.032 . Anything around 0.031 is very good.
Previously the best fitness is around 30 .


text:
Add a function to get course history

Although get_schedule is sufficient for getting the current year's schedule, it would be nice to get a user's past grades. This PR adds a StudentVue.get_course_history function, which for now, returns a dictionary of format:
{
  '6': [ # Grade level
    ['English 6A', 'Math 6A', ...], # 1st semester
    ['English 6B', 'Math 6B', ...] # 2nd semester
  ],
  ...
}

Each of the courses is of type studentvue.models.Course, which has the name, letter grade, credits attempted, and credits completed of a course, as well as if its an AP course.

If you consider merging this, should it have a different return type? Perhaps a data model to more easily get a list of courses, like so:
sv = StudentVue(user, pass, domain)

course_history = sv.get_course_history

print(course_history.get_semester(6,'F'))
# prints array of Course for that semester

repo: kajchang/StudentVue


text:
Kakara Engine Pre-Release 5

Changes

Added the component system.
Renamed the RenderObject system to the Voxel system.
Renamed the Chunk Pipeline to the Voxel Pipeline.
Renamed many UI Systems.
Added controller support.
Properly implemented the Input system.
Added additional control to the Window class.
Changed the UI auto scaling to be for Canvases instead of for the entire UI.
Changed scale to use a Vector instead of a float.
Changed Fog to use RGBA for color instead of a Vector.
Improved the Depth Shader
Improved the Javadocs.
Fixed Memory Leaks
Fixed OpenGL API Errors
Fixed crash using Atlas Mesh on Nvida GPUs.

I think we should drop Feature. It is unnecessary with the component system.

repo: kakaragame/Engine


text:
Test suite fails

t/remotediff.t fails on all of my systems (various linux and freebsd dists/versions, various perls):
No such file or directory at script/remotediff line 57.

#   Failed test 'remotediff - local diff quiet no tty'
#   at t/remotediff.t line 16.
#          got: ''
#     expected: 'Files t/data/file1 and t/data/file2 differ
# '
# Looks like you failed 1 test of 1.
t/remotediff.t ....
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests

Thanks, fixed in v1.12.


text:
Allow Key(cast=...) to access self

Another way to think of this is as a version of the get argument that doesn't get called every time.
I also want to think of a way to allow the cast function to access the current Meta object.  So it might be worth thinking about this issue in the context of a more general system for passing extra arguments to this function.

My first instinct is that I want this to be transparent to the user, which means not using different arguments for functions requiring different signatures.  For example, imagine a cast function that takes a string path and makes it relative to the file it was loaded from.  This is something I might add to BYOC, and I don't want user to have to remember to call it differently.  Plus, with multiple arguments, there's the question of which argument is called in which order, and people could try to abuse that.
My thought instead is to wrap the function.  BYOC would detect the wrapper and provide it with the extra info.
# Somewhere in BYOC
@with_context
def relpath(context):
    return context.meta.path.parent / context.value

class with_context:

    def __init__(self, f):
        self.f = f

    def __call__(self, context):
        self.f(context)

class Context:

    def __init__(self, app, value, meta):
        self.app = app
        self.value = value
        self.meta = meta

# Somewhere in param/getter:

if isinstance(cast, with_context):
    value = Context(app, value, meta)

# Somewhere in a user's code:
class MyApp:
    x = byoc.param(FileConfig, 'path', cast=byoc.relpath)

I could also abuse type annotations or default values.  Basically, instead of isinstance(cast, with_context), I would check that the type annotation is Context or that the default value is some sort of sentinel.  That's kinda appealing, actually.  I might as well use a type annotation, because I really am annotating which type to expect, here.  My code in param/Key would then just be a very simple form of multiple dispatch.
def relpath(context: Context):
    return context.meta.path.parent / context.value

repo: kalekundert/byoc


text:
Add tests for basic ecsy-related components: entity and components

Added these tests to investigate a regression that broke everything between Ember version 3.16 and 3.17. This regression still needs to be fixed.
This also uncovered two hard to track issues, which are fixed here:

rendering the basic <Escy> component did not work at all because of naming conflicts: Ember's resolver would resolve that component invocation to components/ecsy/component.ts, as this is a valid location for that component under pods layout, but the component found there is another one: <Ecsy::Component> (what we use through the faked modifier syntax). So renamed that component to ecsy/ecsy-component so we have no conflicts, and as we don't use it directly but through the modifier syntax, this could be done under the hood by updating the AST transform
the AST transform also didn't detect <Escy> correctly, which it needs to to implicitly pass the parent argument.

Note the tests do pass with Ember 3.16!

@nickschot found the bug (https://github.com/emberjs/ember.js/issues/18862) and provided a workaround (basically putting the AST node together manually instead of relying on the builder helper, see last commit)


text:
ARM support

It would be awesome to have a build for ARM64 and a docker image to go with it

Hey @andrewthetechie not sure I can do that myself because of the cgo dependency thanks to sqlite :(


text:
Add Getting Started section to README

README Update
Please add a getting started section to the README so folks know how to start with this project.

Adding Getting Started section in README file.

repo: kana-hash/website


text:
Aura only working if other PC moves in range, not PC with aura moving.

I am trying to setup an aura on a shield that adds fire resistance to allies within 5ft.
I have the aura setup like this:

When the actor with the shield moves toward allies I the following in the debug log:
Uncaught (in promise) TypeError: tokenEffects.data.flags.ActiveAuras is undefined     RemoveActiveEffects aura.js:694     MainAura aura.js:432     <anonymous> aura.js:221     _call foundry.js:2496     callAll foundry.js:2456     _handleUpdateEmbeddedEntity foundry.js:30047     _handleUpdateEmbeddedEntity foundry.js:34301     updateEmbeddedEntity foundry.js:30015     update foundry.js:11475     animateToken foundry_imports.js:64     moveTokens foundry_imports.js:35     moveTokens foundry_imports.js:32     onTokenDragLeftDrop main.js:171     _onDragLeftDrop main.js:56     callback foundry.js:36392     _handleDragDrop foundry.js:36767     _handleMouseUp foundry.js:36737     emit index.js:181     dispatchEvent InteractionManager.ts:1106     processPointerUp InteractionManager.ts:1459     recursiveFindHit TreeSearch.ts:173     recursiveFindHit TreeSearch.ts:113     recursiveFindHit TreeSearch.ts:113     recursiveFindHit TreeSearch.ts:113     findHit TreeSearch.ts:200     processInteractive InteractionManager.ts:1177     onPointerComplete InteractionManager.ts:1341     onPointerUp InteractionManager.ts:1409 aura.js:694:17
If I instead move the allied actor toward the character with the shield the aura works properly.

Can you try disabling then re-enabling the aura on the source token

This seems to work kinda, Though I am now having a opposite issue, though only when two aura are in use on separate actors.
For example, I am using CUB conditional lab. I have created two custom conditions each with an effect with an aura. One applied fire resistance withing 5 ft, and the other applied +1 AC within 10 ft.

On each actor this work fine.
If I move an actor into range of the other actor with the aura, then the aura isnt being applied.

In the above image the actor with the fire shield should also have the +1 AC condition.
If I move the actor with the condition I need applied it updates correctly:

But now if I move the actor with the fire shield away the +1AC condition is not removed as it should be.

This issue is present for both the fire shield condition and the +1 AC condition.

This was a bug with 0.1.52 if I remember, try updating to the latest version

I am still getting it in 1.54

Only thing I am seeing in the console with debug is:

That is saying it doesn't recognise the auras. Check over the aura details and try re-adding then to the actors

Okay I recreated the auras as features instead of effects with in Condition Lab:

and configured their auras:

After that it still is not working

I am having the same problem, but I think I have identified the issue.

When the targets are moving, the aura applies and removes as expected
When the source is moving, the auras apply as expected, but once applied they do not remove until all potential aura targets are out of range.  So some targets keep the aura longer than they should.

If possible could you invite me to your game (pm on discord is fine) so I can test locally

Messaged

authors: Draino23 dmaneyapanda kandashi

repo: kandashi/Active-Auras


text:
Added support for jboss marshalling (version 1.2 upwards)

I've modified the implementation to support the jboss marshalling which performs it's own serialization/deserialization with the same blacklist/whitelist support that notsoserial already offers.
This implementation supports Jboss Marshalling versions 1.2 up to 1.4.10 (the latest version)

I've updated the jboss specific classes/methods with the 'JBoss' prefix

@RonaldSpierenburg I'm going to decline this PR.
Support for non-JDK serialization tools is out of scope for this project.
I have however made transformers pluggable. (The idea is that the transformation of java.io.ObjectInputStream is just one of many possible, JBoss Marshalling another)
Could you rewrite your JBoss Marshalling support as a pluggable transformer?
You would need to implement NotSoSerialTransformer.java and register that implementation class as service loadable in META-INF/services/org.kantega.notsoserial.NotSoSerialTransformer. Wrap it all up in a jar and add it to your bootstrap / application class path.
See the standard implementation for ObjectInputStream in ObjectInputStreamNotSoSerialTransformer.
I'm sorry if this seems a bit harsh, but I'm really determined to keep this project small and focused and not letting feature creep take over.
Making extensions possible for people without needing to change the core is a step in that direction.

The pluggable transformers is on a branch: https://github.com/kantega/notsoserial/tree/pluggable-transformers
Let me know if that works for your needs and I'll merge to master.

The pluggable transformers are fine. Thanks for implementing them.
I'm sorry to hear that the scope of notsoserial does not include these non-jdk serialization classes, i'll just start my own fork then :)

Ronald,
I've merged pluggable-transformers to master.
The reason for introducing pluggable transformers was to make it possible to add support for non-idk transforms without the need to fork. The sharing is supported independent of the code base.
I do understand that the not including non-jdk serialization classes in the scope of the tool can be inconvenient for individual implementations. However, I want the tool to stay small and maintainable. I'd rather add potential support for any non-jdk solution to the scope that just one specific. Also, I have never used JBoss marshalling, so I'm not in a good spot to maintain support for it in notsoserial.

authors: RonaldSpierenburg eirbjo

repo: kantega/notsoserial


text:
Extension annoying

Hey,
your extension is great, but very annoying for extension developers. Every time I am in debugging mode and switch between files, the extension reject the error. Please fix it.
Best regards

Sorry for that, I will silent that 'reject' 👍
Please update the extension to v1.8.2

authors: kantlove tigerxy

repo: kantlove/vscode-todo-parser


text:
[kl-form] 增加 Service 挂载成功事件

目前 kl-form 为了方便，会拿到所有 kl-form-item 上的 sourceKey 然后获取到下拉列表数据，然后挂载在 window 上
为了更方便手动复用这些数据，需要增加一个挂载成功后的事件

代码在重构，下周再弄

repo: kaola-fed/nek-ui


text:
Support multiple CloudFlare accounts

This PR implements support for multiple CloudFlare accounts, by trying credentials in order until an account is found that matches the current domain.  Documentation is included in the patch, but basically you can add multiple, space-separated emails and api keys in the environment variables.  The change is backward-compatible with existing environment variables.  I tried to keep the code changes to the absolute minimum; hope you find it helpful.

Since this repo is no longer maintained by its owner, now there is a new maintained fork at https://github.com/walcony/letsencrypt-cloudflare-hook.  I tried cherry-picking your PR, and manual test to see if it is a breaking change was fine.  However, it looks like the unit tests need to be modified in the other repo for this since the tox build test failed.  Would you mind opening your PR against that repo and addressing the build issue as part of your PR?  I would be happy to merge the change shortly afterward.

It looks like the issue is that this PR changes the call signature of _get_txt_record_id() and return signature of _get_zone_id, but the new unit tests in that repo are dependent on the old signatures (because apparently they're testing private functions?).

I took the unit tests that were in another PR since there were no tests, to begin with, without going through them much since they passed out of the box.  I would be happy to take modifications to the tests.

authors: YasharF pjeby

repo: kappataumu/letsencrypt-cloudflare-hook


text:
plugin crash on clicking installed lexicon in lexicon repository

2022-05-01 22:25:24.355 -07:00 [ERR] [TextToTalk] UiBuilder OnBuildUi caught exception
System.Collections.Generic.KeyNotFoundException: The given key 'Uberduck' was not present in the dictionary.
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at TextToTalk.UI.Dalamud.Lexicons.LexiconRepositorySubwindow.DrawSelectedPackageSettings() in K:\arashiiro\UI\Dalamud\Lexicons\LexiconRepositorySubwindow.cs:line 189
   at TextToTalk.UI.Dalamud.Lexicons.LexiconRepositorySubwindow.Draw(Boolean& visible) in K:\arashiiro\UI\Dalamud\Lexicons\LexiconRepositorySubwindow.cs:line 56
   at TextToTalk.UI.Dalamud.Lexicons.LexiconComponent.Draw() in K:\arashiiro\UI\Dalamud\Lexicons\LexiconComponent.cs:line 46
   at TextToTalk.Backends.System.SystemBackendUI.DrawSettings(IConfigUIDelegates helpers) in K:\arashiiro\Backends\System\SystemBackendUI.cs:line 139
   at TextToTalk.UI.Dalamud.ConfigurationWindow.DrawSynthesizerSettings() in K:\arashiiro\UI\Dalamud\ConfigurationWindow.cs:line 209
   at TextToTalk.UI.Dalamud.ConfigurationWindow.Draw(Boolean& visible) in K:\arashiiro\UI\Dalamud\ConfigurationWindow.cs:line 44
   at Dalamud.CrystalTower.UI.WindowManager.Draw()

Fixed v1.15.2

authors: johnysandels karashiiro

repo: karashiiro/TextToTalk


text:
Feature Request: Ignore specific files similar to .gitignore

I have a use case where in the code I want to vendor (project A) I have a couple of files that are test data files. When I do a govendor and pull that project into another (project B) those test files are dragged along even though I don't want them to be. I'd like the ability to specify within project A that govendor should ignore those files. Alternatively, being able to specify those files to be ignored within project B would also work but be less convenient. This is particularly important if those test files are large data files that would take up a lot of space and time to transfer.

Would it work to vendor the tree of the project you want the test files? But then otherwise ignore tests?

Wouldn't that require putting the test files into yet another repo and vendoring it into project A?

I don't think I understand your problem...

I have project A which has two non-go data files that are for unit tests only.
I have project B that vendors project A into it.
When I use govendor on project B it pulls the non-go test data files in to the vendor folder under project B.
Those test data files are unnecessary and could take up a lot of space/time to download. In my particular use case, the data files are small so it's not that big of a deal. However, if those data files were large, then govendor will end up spending time & disk space pulling those unnecessary files into the vendor folder under project B.
I'd like some way of telling either project A or project B to ignore those files when using govendor such that project B does not end up having those files in the vendor folder.

Could you contrast this with just telling govendor to ignore all test files? Are you wanting to keep some test files and ignore other test files?

Well, it's ignoring the test go files (_test.go) but including the test data files (_test).

test data files should go into the folder "testdata" which govendor (and the go tool) will ignore.

Ah, I wasn't aware of that. Is that mentioned in the docs somewhere? I can't find a reference to it.

Oh, probably not. Feel free to file another issue or send a PR.
On Fri, Mar 31, 2017 at 2:36 PM pcman312 notifications@github.com wrote:

Ah, I wasn't aware of that. Is that mentioned in the docs somewhere? I
can't find a reference to it.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/kardianos/govendor/issues/303#issuecomment-290836176,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAuFsYcWl_QWHp4SYabTm7c1T7RytlyIks5rrXHLgaJpZM4Mv7ze
.

Will do. Thanks for the help.

repo: kardianos/govendor


text:
Add support for freebsd/arm64

Update vendor/golang.org/x/sys to 33540a1f6037 which brings in necessary freebsd/arm64 bits.

Neither dep nor govendor were updated to support semantic import versions, they don't work well anymore. It's better to encourage package authors to switch to modules. I'd rather not merge any updates here.
Sorry for late reply.

Agreed.

authors: dmgk kaey kardianos


text:
allow regex in --exclude flag

Allow regex in --exclude flag, to exclude multiple modules in an easier way.
I'm thinking about SRL's --exclude "*-tools*"
Do we want/need this ?

@karimra I think there are not many modules to be excluded in my experience. It seems to be over work.

I think its good to have, in SRLinux case for the time being we might have >3 module names that we need to exclude
And it seems the additional work for this feature is not really substantial?
What I was thinking as well is to add a file globbing feature for --file flag. The use case is, for example, with Cisco XR/NX models which makes no sense to load altogether (too many different top level modules), but instead it makes sense to load them in feature groups, for example:
gnmic --file vendor/cisco/xr/721/Cisco-IOS-XR*bgp*.yang

will load/read all yang files that are BGP related. This will simplify things a lot in my view

Globbing is different but doable.
--exclude takes a module name, while --dir and --file take a file name or a directory that's why this needs regex

authors: hellt karimra neoul

repo: karimra/gnmic


text:
Spike Story for Google Meet Usage For Project

Spike story with time boxed research activity terminating 24 July 2023 on utilisation of Google meet integration into the APP for automated meeting ID generation on a booking/ reservation made by client/customer

Assigned to Tony. Some error in assigning it to myself

license: ISC


text:
reddit: specify attributes on all protocols

~/Repos/HPI-fork/my/reddit/common.py in <module>
     36
     37 # Note: doesn't include GDPR Save's since they don't have the same metadata
---> 38 class Save(Protocol, RedditBase):
     39     @property
     40     def subreddit(self) -> str: ...

TypeError: Cannot create a consistent method resolution
order (MRO) for bases object, RedditBase

Sadly the solution from #179 seems to make mypy happy but doesn't work for the python MRO itself
I think we should revert it for now so that its at least functional and doesn't error, hopefully can find a more concise way to do this.

ha, so on my toy example I tried swapping Protocol and AP, and it passes runtime as well now 🤔
class BP(AP, Protocol):
    b: int

will try it on reddit just in case 😅

Was trying to figure out if it could always just be put behind a typing.TYPE_CHECKING but would probably require another file like models.py so that we could still have _merge_comments in common -- seems to be another option

authors: karlicoss seanbreckenridge

repo: karlicoss/HPI


text:
Render problem with ajax loaded content

I have a form whose html content changes when the value of a specific dropdown changes. The new html content that contains a couple of switchinput widgets is loaded with ajax and injected in the form. The problem is that the widgets are not rendered but checkboxes are shown instead. If i then save the state of the form and reload the page, the widgets are rendered correctly.

I have same problem with other widgets but i am also not able to resolve it.
As i am research this problem is comes because of inject jquery and bootstrap again into view with renderAjax().
So please help us..
Thanks...

Note when you are using ajax to overwrite HTML markup - you will be erasing any widgets being rendered via jquery plugins and also all its events. That's why you will see plain inputs - because the javascript for initializing these are not called when you just overwrite the HTML.
You would need to reinitialize every jquery plugin with its properties after the ajax call completes to ensure this works. Using renderAjax method may help in various cases - but in other cases you would need to reinitalize the plugin.

@kartik-v  thank you for quick response.
How can i reinitialize plugin with renderAjax() as DepDrop widget or FileInput widget???

Hello @kartik-v how can I do? reinitialize plugin, Thanks!

My solution is this.
Create callback of some kind and insert this function:
jQuery(".switch-input-button").bootstrapSwitch({
            'onColor': "success",
            'offColor': "danger",
            'onText': "No",
            'offText': "Yes"
        });
```javascript
Where ".switch-input-button" class is added in options while creating widget
like here

```php
<?= $form->field($modelOpendaysItem, "[{$i}]opendays_item_metro")
                                        ->widget(SwitchInput::classname(), [
                                            'options' => [
                                                'class' => 'switch-input-button'
                                            ],
                                            'pluginOptions' => [
                                                'onColor' => 'success',
                                                'offColor' => 'danger',
                                                'onText' => 'Tak',
                                                'offText' => 'Nie',
                                            ]
                                    ]) ?>

Render widget inside yii Pjax container and set the SwitchInput widget's pjaxContainerId property o to the pjax container identifier.

<?= $form->field($model, 'description')->widget(Summernote::classname(), [                         'options' => ['placeholder' => 'Edit your blog content here...'] ]); ?>
it's working for all widgets but not for Summernote

authors: adriandrozdz dev1-kait dubeymahi48 gsalgadotoledo infoweb-internet-solutions kartik-v


text:
Add support for cloud hypervisor

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Before raising this feature request
Have you looked at the limitations document?

As mentioned earlier I've got a working prototype so I'll use this issue as a reference for a WIP pull request for the cloud hypervisor prototype done so far.

@jodh-intel thank you, we already sync in summary.
We are going to take @ericooper as base to then move to use cloud hypervisor http API. He already that is just move how we boot the VM today the rest of config launching of virtiofsd configurations not need any change at all.

authors: egernst ericooper jcvenegas

repo: kata-containers/runtime


text:
Lots of folders and files remain in disk and memory when create container failed

Description of problem
Create container failed, lots of folders and files remain in disk and memory.
How to reproduce:
[root@localhost ~]# docker run -itd --cpuset-cpus 0-1 --runtime=kata busybox sh
e269beb75b8af31dfc006513186dd251bed22a89766c963f6093f5dae30dfb7a
docker: Error response from daemon: oci runtime error: rpc error: code = Internal desc = Could not run process: container_linux.go:348: starting container process caused "process_linux.go:279: applying cgroup configuration for process caused \"failed to write 0-1 to cpuset.cpus: write /sys/fs/cgroup/cpuset/docker/e269beb75b8af31dfc006513186dd251bed22a89766c963f6093f5dae30dfb7a/cpuset.cpus: invalid argument\"".

Since there's not enough cpus in the guest, so this container creation failure is expected.
Expected result
No folders or files of this sandbox left in disk or memory.
Actual result
[root@localhost ~]# ll /var/lib/vc/sbs/e269beb75b8af31dfc006513186dd251bed22a89766c963f6093f5dae30dfb7a
e269beb75b8af31dfc006513186dd251bed22a89766c963f6093f5dae30dfb7a

[root@localhost ~]# ll /run/kata-containers/shared/sandboxes/e269beb75b8af31dfc006513186dd251bed22a89766c963f6093f5dae30dfb7a
e269beb75b8af31dfc006513186dd251bed22a89766c963f6093f5dae30dfb7a                            e269beb75b8af31dfc006513186dd251bed22a89766c963f6093f5dae30dfb7a-8f1a8a8010384ce9-hosts
e269beb75b8af31dfc006513186dd251bed22a89766c963f6093f5dae30dfb7a-6024b05dd556307c-hostname  e269beb75b8af31dfc006513186dd251bed22a89766c963f6093f5dae30dfb7a-a1bb6363be652bc9-resolv.conf

[root@localhost ~]# ll /run/vc/sbs/e269beb75b8af31dfc006513186dd251bed22a89766c963f6093f5dae30dfb7a
agent.json  devices.json  e269beb75b8af31dfc006513186dd251bed22a89766c963f6093f5dae30dfb7a  hypervisor.json  lock  network.json  state.json

Suggestion
I think we should add rollback operation on virtcontainers/sandbox.go: createSandbox() and virtcontainers/container.go: createContainer(), or handles more deletions on kata-runtime delete
I'm working on it now and please share your comments~

@jingxiaolu
The revert patch cleanupSandbox #292  should be taken up again. Considering the affect of docker cp #778, we need to treat host paths carefully. Try to  extended the patch and find a good way to fix the resource remaining.
Go ahead and get it down~
/cc @devimc  @jodh-intel

Hi @devimc #847 is about namespaces, but this #862 is trying to rollback resources left in disk/memory when creation failure, i think these two are different~
pls correct me if I am wrong~

cloesed via #880

authors: jingxiaolu jshachm


text:
vc: Sandbox#Annotations should use annotationsLock read lock

Fixes #2222
Signed-off-by: Ted Yu yuzhihong@gmail.com

/cc @caihaomin

@grahamwhaley
Can you review this ?
thanks

Hi @tedyu.
Sure.
I should probably explain some of the kata review process - we have a weekly rota of members watching out for new PRs and also processing and nudging along any stuck or stale PRs - so normally you should not have to nudge anybody to review - unless you happen to know who is a key owner of some code - in which case you can specifically ask them to review something.
I'm not the best person to review virtcontainers code, but will pull in the right folks who are.
thanks!

Thanks @grahamwhaley for adding reviewers.

@grahamwhaley @jodh-intel
Mind triggering test ?
Thanks

/test
sure thing!

15:07:43 panic: ERROR: Docker-like container engine not accessible to current user:  (error exec: "podman": executable file not found in $PATH)
15:07:43
15:07:43 goroutine 1 [running, locked to thread]:
15:07:43 github.com/kata-containers/runtime/cli.init.1()
15:07:43 	/tmp/jenkins/workspace/kata-containers-runtime-fedora-PR/go/src/github.com/kata-containers/runtime/cli/main_test.go:105 +0x10c1
15:07:43 FAIL	github.com/kata-containers/runtime/cli	0.291s

The test failure didn't seem to be related.
@grahamwhaley
Can you re-trigger the fedora test ?
Thanks

done

09:18:07 Stderr: failed to launch qemu: exit status 1, error messages from qemu log: qemu-system-x86_64: -object memory-backend-file,id=mem0,mem-path=/usr/share/kata-containers/kata-containers-clearlinux-31670-osbuilder-36a9dc5-agent-c87f497.img,size=118269440: backing store (null) size 0x70ca600 does not match 'size' option 0x70cb000

A different error this time.
I searched for the phrase which doesn't seem to be in kata-containers/runtime
@grahamwhaley
Can you trigger another test run ?
Thanks

I can. also /cc @chavafg to check if this is a known CI instability.

@grahamwhaley haven't seen something similar, but will keep an eye to check if it happens again...

@grahamwhaley
All tests passed.
FYI

authors: chavafg grahamwhaley tedyu


text:
clh: dnm test pr

Fixes: #1
Depends-on: github.com/kata-containers/packaging#1141
Signed-off-by: Jose Carlos Venegas Munoz jose.carlos.venegas.munoz@intel.com

/test-clh


text:
virtcontainers: Remove unnecessary kernel parameters for ppc64le

Fixes: #360
Signed-off-by: Nitesh Konkar niteshkonkar@in.ibm.com

@sboeuf @jodh-intel

PSS Measurement:
Qemu: 159746 KB
Proxy: 4653 KB
Shim: 8906 KB
Memory inside container:
Total Memory: 2045972 KB
Free Memory:  1997004 KB

Thanks @nitkon. Nice.
lgtm

@jodh-intel : I see one failure from jenkins-ci-ubuntu-16-04 which has a  Required tag.
Summarizing 1 Failure:

[Fail] Update number of CPUs Update CPU period and quota [It] should have 3 CPUs
/home/jenkins/jenkins_slave/workspace/kata-containers-runtime-ubuntu-16-04-PR/go/src/github.com/kata-containers/tests/integration/docker/cpu_test.go:278

How do we treat this? I don't think its related to my patch.

Hi @devimc - any thoughts on that failure?

lgtm

@jodh-intel the error is
Stderr:
Running command '/usr/bin/docker [docker exec xtZlrXwGDH3mDcFRwE8sXY5bFBaDlD bash -c for c in $(seq 1 5); do [ -d /sys/devices/system/cpu/cpu3 ] && nproc && exit 0; sleep 5; done; exit 1]'
command failed error 'exit status 126'
[docker exec xtZlrXwGDH3mDcFRwE8sXY5bFBaDlD bash -c for c in $(seq 1 5); do [ -d /sys/devices/system/cpu/cpu3 ] && nproc && exit 0; sleep 5; done; exit 1]
Timeout: 60 seconds
Exit Code: 126
Stdout: OCI runtime exec failed: rpc error: code = Internal desc = Could not run process: container_linux.go:348: starting container process caused "process_linux.go:90: adding pid 173 to cgroups caused \"failed to write 173 to cgroup.procs: write /sys/fs/cgroup/cpu,cpuacct/docker/07c01f0fe8808f4083249dba2fe4ad5be451021998a692fdaf3214cdd4b3e16a/cgroup.procs: invalid argument\"": unknown

PSS Measurement:
Qemu: 161951 KB
Proxy: 6668 KB
Shim: 10918 KB
Memory inside container:
Total Memory: 2045972 KB
Free Memory:  1997128 KB

lgtm

authors: devimc jodh-intel katabuilder nitkon


text:
Transformation Matrix throws off interaction

Hello, if there is a transformation matrix on the container div, the waveform loads and displays, but the interact portion gets thrown off.
In this example, you can see for yourself if you add transform: matrix(0.5, 0, 0, 0.5, 0, 0) to the #waveform div
Is there any way to remedy this or should I disable user interaction and manually listen, setting seekTo based on cursor position? If this is the case, how can I set the currentTime with a manual seekTo so when I hit "play" it plays from that point?

@mayorbyrne you probably need to apply the transform on the waveCtx in wavesurfer.drawer.canvases[0].waveCtx (and do it for every canvas in that canvases array).
https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/transform

authors: mayorbyrne thijstriemstra


text:
Added listener on mouseup to body for region usability improvement.

With this code i easier  to use the dragging and resizing of region because if the mouseup event happens outside the wavesurfer element this actions are stopped and you don't get stuck with it until you click again. This way is easier to adjust a region to the star or end of the wave.

Ok, I have update the pull request and I put single quotes too. In the last update I forgot to change the single quotes :P

Is it working as before without preventDefault? Most importantly, no text selection should occur.
And you still aren't unsubscribing mouseup on wavesurfer destroy. If you add this last bit, we can merge it.

I'm sorry maybe I'm undestanding wrong the code but nothing in regions plugins is subscribed to wavesurfer destroy. All is subscribed to remove of a region witch now also remove the event listener mouseup of body. Am I wrong?

We need to unsubscribe both on region remove and on global destroy. Previously, nothing was unsubscribed on destroy, because the subscribed DOM elements themselves were removed from DOM on destroy. Since document.body isn't going to be removed, it needs to be unsubscribed.

Ok, got it, thanks for the explanation. I will change this and test if everything goes well without the preventDefault and then update the PR.

I guess it's working OK without preventDefault. Thanks!

authors: RocAlayo katspaugh


text:
Notification reloads app

When app goes background, notification appears. Everything is fine when I invoke my app from the list of running applications, but if I tap notification, then my app starts to load from the very beginning instead of being invoked to foreground.
Any ideas?
Tested on Android versions 4.2, 4.4, 6, 8.
UPD. It works normally if installed from apk, but works wrong if installed from Google Play.

Confirmed.
When pressing on the notification, a new instance of the app is started (both instances continue running at the same time).
I confirmed this by adding a button to close the app:
<button onclick="navigator.app.exitApp()">Quit</button>
If you press on the notification, then the backgrund key, and then press the notification key again, many instances of your app are created (which will drain your battery).
When you then close one instance, the window is closed and the previous instance is placed on the foreground.
I tested with version 0.7.2.

authors: LaRadioFM kripper

repo: katzer/cordova-plugin-background-mode


text:
Namespace collision

Hi,
I have a namespace collision between your library and this one (QR code reading library).
Both define the qrcode object.
What is your recommendation for fixing this ?

Copy the source and rename the exported value as qrcodeGenerator?

It's already what I am doing, but it's not great for updates, very error prone

Use a module system (AMD, UMD, ES Module) that does this for you.

authors: Overdrivr franklinyu mix3d

repo: kazuhikoarase/qrcode-generator


text:
Link to init.caffemodel is broken

It seems that the link to init.caffemodel is broken.

Fixed


text:
Any chance we could get a new release?

Would like to use this in production but can't because v1.4.0 doesn't support IE11 due to the if (CSS) { check in css-supports.js.  I see that it has since been fixed and would prefer not to fork this repo if possible.

Solved. v1.4.1 published.

authors: joshlgrossman kazzkiq

repo: kazzkiq/CodeFlask


text:
🛑 rt-ac58u is down

In 1af9acb, rt-ac58u (https://rt-ac58u.byungchan.kim) was down:

HTTP code: 0
Response time: 0 ms

Resolved: rt-ac58u is back up in 12b343f.


text:
Design a v2 PCB before 20th July

I want to have physical boards when my vacation starts.

Might do multiple boards with different ways that everything is hooked up.
PCBs are cheap, delivery is not. Multiple orders cost more and take longer time. Better to do multiple boards and order at the same time.


text:
Fix up typo and minor grammar

This change is

Coverage remained the same at 91.926% when pulling d3c86b88bac2ccb588b0c27dd0ea3dcb2587133f on shepmaster:patch-2 into e27a6ffbde87a35a367cd3c5b7369ef8173d0e7a on kbknapp:master.

Thanks! @homu r+

authors: coveralls kbknapp shepmaster

repo: kbknapp/clap-rs


text:
test: add more error test cases for kcl go plugin

1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix #123", "re #123".):

[x] N
[ ] Y

test: add more error test cases for kcl go plugin

Pull Request Test Coverage Report for Build 9710548826
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.01%) to 64.15%

Totals

Change from base Build 9706780140:
-0.01%

Covered Lines:
3908

Relevant Lines:
6092

💛  - Coveralls

authors: Peefy coveralls

repo: kcl-lang/kcl-go


text:
refactor: lsp crates and codes

1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix #123", "re #123".):

[x] N
[ ] Y

Based on https://github.com/kcl-lang/kcl/pull/1608

refactor: lsp crates and codes

Pull Request Test Coverage Report for Build 10609227890
Details

128 of 148 (86.49%)  changed or added relevant lines in 15 files are covered.
2 unchanged lines in 2 files lost coverage.
Overall coverage increased (+0.02%) to 70.615%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

kclvm/tools/src/LSP/src/to_lsp.rs
24
25
96.0%

kclvm/tools/src/LSP/src/request.rs
2
4
50.0%

kclvm/tools/src/LSP/src/compile.rs
83
100
83.0%

Files with Coverage Reduction
New Missed Lines
%

kclvm/tools/src/LSP/src/tests.rs
1
98.5%

kclvm/tools/src/LSP/src/capabilities.rs
1
0.0%

Totals

Change from base Build 10580105310:
0.02%

Covered Lines:
50933

Relevant Lines:
72128

💛  - Coveralls

repo: kcl-lang/kcl


text:
Comment before imports is also removed for "Run on save"

When I enable "Run on save", it removes the comments before the line of removed import as well.
It might be handy if the comment is related to the removed import. But it can accidentally remove important comments at the beginning of the file as well.
Could you add a toggle for "removing the comment before the removed import"?

Hi @albertchen97
Thank you for reporting this issue. It's not the intended behavior.
I'll try to investigate why the comments are removed (they shouldn't) and create a new version fixing it (I can't say an approximate date).

repo: kcmr/vsce-remove-unused-imports


text:
:bug: fix Internal error when creating a ClusterRole while authenticated as a ServiceAccount

Summary
This adds a new e2e test veryifing that both for legacy and bound service account tokens we are able to escalate privileges for service accounts both implicitly and explicitly.
Related issue(s)
Fixes #1340
Depends on: https://github.com/kcp-dev/kubernetes/pull/115

@s-urbaniak it needs rebase to use what has been merged upstream, doesn't it ?

@davidfestal @stevekuznetsov ptal, bump kcp/k8s fork

/lgtm
/approve

authors: davidfestal s-urbaniak stevekuznetsov

repo: kcp-dev/kcp


text:
Update to CDK v2.x

@kcwinner when do you plan to upgrade the project to CDK 2.x? Please let me know if I can help with anything. Feel free to ping me if you want some help with this, if you have any architectural patterns you want to follow, we can coordinate this before I actually get started.
Best regards,
Vin Busquet

I've started work on this. However, appsync is in alpha in cdkv2. I've hit a snag with lambda data sources. Will update as I progress.

@computationalcore you can try it out at v2.0.0-alpha.0 or us cdk-appsync-transformer@next
https://www.npmjs.com/package/cdk-appsync-transformer

@computationalcore you can try it out at v2.0.0-alpha.0 or use cdk-appsync-transformer@next. I created a sample cdk app and tested a few things. But I don't have a live project right now to test against thoroughly.

Got it. Thanks for the feedback and update. I can try later. Also I noticed what you mentioned later, that CDK  2 appsync support is still alpha for L2 constructs, only the L1 constructs are stable (since they are a direct map to Cloudformation).
Another question, have you checked out the new amplify  data modeling directives that replaces @connection directive?
Do you think it's an interesting/feasible thing to add support? Again, if you want you can count on me for some cooperation, I just want to avoid blind contributions.
Best Regards,
Vin Busquet

@computationalcore I've been looking at supporting the new directives. This is looking more and more like a breaking change to support it. I've got a basic setup reading the new directives into the transformer, but the way it outputs uses CDK natively now instead of their cloudformation setup.
So, this library may make less sense the way it works now. I see a few paths:

Convert the new amplify outputs to exactly what we have
Output the CDK stacks from Amplify and let the owner determine what to do (would address #333 as well)
Some combination of the two
???

@kcwinner got it. It seems to me that a combination of the two is the ideal, It seems to me that a combination of the two is ideal, but for compatibility reasons and perhaps narrowing the scope, I would vote to convert the new amplify outputs to exactly what we have (I'm also not sure if that's the simplest path).

Any update on the progress of this given CDK v1.x is officially in maintenance now too.

repo: kcwinner/cdk-appsync-transformer


text:
Build: default is a restricted keyword

both ds_camera_property.h and ds_camera_property.cpp use variable called default which is abuse of C++ language and will result in warning/errors
void importProperty(bool supported, long min, long max, long step, long default, bool isAuto, long value, bool supportAuto, bool supportManual);
and
void DirectShowCameraProperty::importProperty(bool supported, long min, long max, long step, long default, bool isAuto, long value, bool supportAuto, bool supportManual)

Thank you. Have updated it.

authors: Riztazz kcwongjoe


text:
Add installation notice for nix

As requested, here are the install instructions (more or less) for nix based installations.

thank you @matthiasbeyer and sorry for the delay

Don't worry about it! :tada:

repo: kdash-rs/kdash


text:
Feedback form

Šlo by to napojit na třeba na Zendesk, aby nám lidi mohli hlásit chyby? Nebo alespoň nějak chtyře nalinkovat vytvoření issue na githubu?

closed by d33618f859387d7a34b0d3458bd172bcd25b5c7e

repo: keboola/developers-docs


text:
Run from last job date

Jira - https://keboola.atlassian.net/browse/COM-1376

je tam nastaveno od 1.1.2005 - to je datum kdy google spustil analytics
https://github.com/keboola/google-analytics-extractor/pull/76/files#diff-64ad91722b60d88d7ae8d4e0376ca83af744d02a11ab5717345f286960fa0df5R386
pokud s tím bude problém tak se tam dá nastavit cokoliv jinýho

repo: keboola/google-analytics-extractor


text:
Enable KEDA as a single source of truth on scaler metrics

Enable KEDA to always output the scaler metrics it determines through a prometheus metrics endpoint for ScaledObjects and ScaledJobs. This allows it to becomes the single source of truth on metrics on scaling.
Use-Case
A very common requirement in a job queuing/event processing use-case is having metrics available for monitoring and alerting. The metrics allow alerting on work backing up and observing progress of work. Even though KEDA has to know this information for its own work it currently does not make it available in a way that allows it to be consistently used for these purposes.
KEDA 2 provides keda_metrics_adapter_scaler_metrics_value but that is only available for ScaledObjects with active deployments as it is produced by the metrics adapter. This means the metric is not available when no work is pending and more importantly never when ScaledJobs are used.
Currently the only way around this is to have another always running service/exporter which replicates the work the KEDA scalers performed to determine its information and use it to generate the metric. This nullifies a lot of the benefit of using KEDA scalers to begin with as instead of making use of the different scalers you could instead directly attach to this metric ensuring what your monitoring sees is consistent with what KEDA uses for scaling.
KEDA is in the ideal position to produce the metric as the single source of truth. It already needs to have the information and is always running. A user adding a ScaledJob/ScaledObject would naturally make the metric for it appear. This enables self-serving of the metric for developers solely based on KEDA CRDs. Also this way dashboards and alerting are based on the same information that was actually used for scaling.
Specification

[ ] Output scaler metrics values also for ScaledJobs
[ ] Make scaler metrics presentation consistent for ScaledObjects and ScaledJobs (tags can be used to differentiate)
[ ] Provide scaler metrics continuously even if no work is pending (e.g. through KEDA Operator)

I think having a centralized way of pulling metrics (as opposed to having the metrics adapter and operator pull them separately) would be great but that would require some serious rework I believe.
As an interim step maybe it would make sense to look at what it would take to add Prometheus metrics collecting and exporting to the KEDA Operator first?

I have basically no knowledge about keda's internals so I'm definitely a good candidate to judge implementation complexity.
From what I understand adding a metrics endpoint to the operator would be able to provide ScaledJobs metrics and do so continuously? That would be a valuable thing on its own I think. We could use it.
Does the operator also have continuous knowledge of the ScaledObject metrics? Or does it stop polling those once the deployment becomes active (I kinda assumed it would)? If it polls continuously then the metrics in the operator if provided to the outside could already feel pretty SSOT to a user.
Making keda itself also not query redundantly  and guarantee it is consistent internally as a benefit definitely could be a longer term thing. I didn't even consider that aspect when writing this FR.

Does the operator also have continuous knowledge of the ScaledObject metrics? Or does it stop polling those once the deployment becomes active (I kinda assumed it would)? If it polls continuously then the metrics in the operator if provided to the outside could already feel pretty SSOT to a user.

It polls continuously to find out whether the scaler is still active or not, so that should be doable.
Btw, KEDA is built on operator-sdk framework, which is based on Kubebuilder. There should be an API to expose metrics, see the docs: https://sdk.operatorframework.io/docs/building-operators/golang/advanced-topics/#metrics

Sounds good. If you think this could be a good first issue for someone and no one else already plans to tackle this short term I could try taking a stab at an implementation.

Added it to our roadmap to consider and our standup to discuss.
I like the idea, but we need to think this through if we won't be trying to solve two problems badly. But I'm not opposed to it.

The reason why I'm saying that is that I also maintain https://github.com/tomkerkhove/promitor and it starts with just adding Prometheus support; until somebody asks for another metric system to support, etc etc.
So I'm just trying to avoid that KEDA become a metric scraper rather than focussing on app scaling.

It polls continuously to find out whether the scaler is still active or not, so that should be doable.
Btw, KEDA is built on operator-sdk framework, which is based on Kubebuilder. There should be an API to expose metrics, see the docs: sdk.operatorframework.io/docs/building-operators/golang/advanced-topics/#metrics

If we just expose the metrics there, I don't see much of a problem to be honest.

Bottom line - We need a design doc on this I think :)

We've discussed this on our standup and decide to provide metrics for all systems we scrape for metrics so they can be re-used in other systems.

Bumping this.

So from how I see it we should provide an extension point so that end-users can consume and/or store the metrics that we use. This would also help us get data to eventually start doing predictive activation with (see #197).
My current proposal would be to start emitting all the metrics that we expose through the metric server towards an OpenTelemetry Collector. Optionally, we can add Prometheus as well but I'd standardize on OpenTelemetry going forward instead.

Any thoughts on this @kedacore/keda-maintainers?

I'm not 100% sure about this, if we expose the value, anyone in the cluster could go and get the value from there 🤔
Apart from that, I'd add it for the moment to prometheus server due to it's the metrics server that we support right now

I'm not 100% sure about this, if we expose the value, anyone in the cluster could go and get the value from there 🤔

Certainly, but it's up to the team owning the OpenTelemetry Collector to secure it how it needs to be secured. We just push the metrics to them and that's where our responsibilities end.

Apart from that, I'd add it for the moment to prometheus server due to it's the metrics server that we support right now

Prometheus is just one metric platform, pushing to an OpenTelemetry Collector allows end-users to use the metrics wherever they want.
We can definitely add them in Prometheus as well, but I believe OpenTelemetry Collector is more open and should thus be our standard.

Both are fine for me, but personally, I think OpenTelemetry is the required piece given it also allows end-users to use Prometheus.
So if OpenTelemetry Collector is supported, then I'm happy!

Yes, the opentele is a 'must have' piece. I agree that the security of the Collector is the responsibility of the Collector impl. Also, it will all run on a secure cluster subnet, so that's something.

Nice to see movement on this issue. Personally I would find native prometheus support quite useful. Having open telemetry collector (especially for metrics) is still quite rare. Native prometheus will stay the de facto standard for quite a while and it's also what was supported in keda up to now. I agree that OTEL is great going forward though.

Anyone who is eager to contribute this?

@tomkerkhove may I contribute this feature?

@ilyalexin
We aim to do a release next week, do you have any update about this topic? No rush at all, we can just postpone this to next release

@JorTurFer
I am working on this feature but it will not be completed next week.
Please postpone it to the next release

No problem at all! Thanks for the update 😄

authors: IlyaAlexin JorTurFer hacst ilyalexin smalgin tbickford tomkerkhove zroubalik

repo: kedacore/keda