What about tensorflow 2.0?

I am trying to visualize the saliency map of a model built with tensorflow 2.0 and I received the error below. From what I understand, the main reason is that the term placeholder does not exist anymore in TF2.0. What should I do?
My gist: https://gist.github.com/doantientai/7ad1aaa0f734fa2119d4a951fe3c35d1
Traceback (most recent call last):   File "/media/tai/6TB/Projects/SaliencyMaps/SaliencyMaps.py", line 187, in <module>     model = utils.apply_modifications(model)   File "/media/tai/6TB/VirtualEnvs/tf20alpha/lib/python3.6/site-packages/vis/utils/utils.py", line 124, in apply_modifications     return load_model(model_path)   File "/media/tai/6TB/VirtualEnvs/tf20alpha/lib/python3.6/site-packages/keras/engine/saving.py", line 419, in load_model     model = _deserialize_model(f, custom_objects, compile)   File "/media/tai/6TB/VirtualEnvs/tf20alpha/lib/python3.6/site-packages/keras/engine/saving.py", line 225, in _deserialize_model     model = model_from_config(model_config, custom_objects=custom_objects)   File "/media/tai/6TB/VirtualEnvs/tf20alpha/lib/python3.6/site-packages/keras/engine/saving.py", line 458, in model_from_config     return deserialize(config, custom_objects=custom_objects)   File "/media/tai/6TB/VirtualEnvs/tf20alpha/lib/python3.6/site-packages/keras/layers/__init__.py", line 55, in deserialize     printable_module_name='layer')   File "/media/tai/6TB/VirtualEnvs/tf20alpha/lib/python3.6/site-packages/keras/utils/generic_utils.py", line 145, in deserialize_keras_object     list(custom_objects.items())))   File "/media/tai/6TB/VirtualEnvs/tf20alpha/lib/python3.6/site-packages/keras/engine/network.py", line 1022, in from_config     process_layer(layer_data)   File "/media/tai/6TB/VirtualEnvs/tf20alpha/lib/python3.6/site-packages/keras/engine/network.py", line 1008, in process_layer     custom_objects=custom_objects)   File "/media/tai/6TB/VirtualEnvs/tf20alpha/lib/python3.6/site-packages/keras/layers/__init__.py", line 55, in deserialize     printable_module_name='layer')   File "/media/tai/6TB/VirtualEnvs/tf20alpha/lib/python3.6/site-packages/keras/utils/generic_utils.py", line 147, in deserialize_keras_object     return cls.from_config(config['config'])   File "/media/tai/6TB/VirtualEnvs/tf20alpha/lib/python3.6/site-packages/keras/engine/base_layer.py", line 1109, in from_config     return cls(**config)   File "/media/tai/6TB/VirtualEnvs/tf20alpha/lib/python3.6/site-packages/keras/legacy/interfaces.py", line 91, in wrapper     return func(*args, **kwargs)   File "/media/tai/6TB/VirtualEnvs/tf20alpha/lib/python3.6/site-packages/keras/engine/input_layer.py", line 87, in __init__     name=self.name)   File "/media/tai/6TB/VirtualEnvs/tf20alpha/lib/python3.6/site-packages/keras/backend/tensorflow_backend.py", line 517, in placeholder     x = tf.placeholder(dtype, shape=shape, name=name) AttributeError: module 'tensorflow' has no attribute 'placeholder'

We need this on TF 2.0!

@raghakot Do you have any plans for this?

same here 👍

same here!!!

There is another repo working on TF20. You may find it interesting.
https://github.com/sicara/tf-explain

There is another repo working on TF20. You may find it interesting.
https://github.com/sicara/tf-explain

I found tf-explain quite limited compared to Keras-vis. I'm not saying is bad, but it seems that it never works on other networks except vgg16 for me
Dis you have any feedbacks?


Error: Nan in node candidate

I've run the surfelwarp_app and it printed error ${project_root}/core/geometry/WarpFieldUpdater.cpp:24: Nan in code candidate
Actually, in the case of The 0th Frame, the code was executed and the above error message was outputted in the 1th Frame.
I thick this is a CUDA setting problem. I want to know how to fix this error...
My environment is ubuntu 16.04, GTX TITAN X cuda9.0 using PCL.

I don't think that's likely not a cuda setting problem. Can you visualize the first frame to ensure the points are OK?


Adjust gap in administration customer base form

1. Why is this change necessary?
The gap of the sw-container between the salutation and title field in thesw-customer-base-form differs to the other sw-container wrapped fields in for example sw-newsletter-recipient-detail or sw-customer-address-form.
2. What does this change do, exactly?
Changed to uniform gap of 10px
3. Describe each step to reproduce the issue or behaviour.
4. Please link to the relevant issues (if any).
5. Checklist

[ ] I have written tests and verified that they fail without my change
[x] I have squashed any insignificant commits
[ ] I have written or adjusted the documentation according to my changes
[ ] This change has comments for package types, values, functions, and non-obvious lines of code
[x] I have read the contribution requirements and fulfil them.

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

Hello,
thank you for creating this pull request.
I have opened an issue on our Issue Tracker for you. See the issue link: https://issues.shopware.com/issues/NEXT-9201
Please use this issue to track the state of your pull request.

Thank you for you contribution @plugware :+1: :tada:


Fix undefined variable clusterNr

See this issue on phabricator that was introduced in the previous commit: https://phabricator.wikimedia.org/T176831

Thanks! This GitHub repository is a mirror of the one in Gerrit. As such, I cannot merge your patch here, but I have uploaded it to Gerrit for you at https://gerrit.wikimedia.org/r/381020.


Add rpc_auth parameter to SerfClient.init

This allows passing an RPC auth token, as described at
https://www.serfdom.io/docs/commands/members.html#_rpc_auth
This replaces #11.

Added tests in 1970c14

I'll try to get this released by tomorrow evening (London, BST).


Update ruby docs

Summary
This update adds more ruby api docs.
Testing Guidance
bundle exec bin/docs. Then open docs/docs/index.html.

Codecov Report
Base: 73.59% // Head: 73.60% // Increases project coverage by +0.01% :tada:

Coverage data is based on head (cc75982) compared to base (d5619cf).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #274      +/-   ##
==========================================
+ Coverage   73.59%   73.60%   +0.01%
==========================================
  Files         184      184
  Lines        8859     8855       -4
  Branches      328      328
==========================================
- Hits         6520     6518       -2
+ Misses       2014     2012       -2
  Partials      325      325

Impacted Files
Coverage Δ

lib/inferno/dsl/assertions.rb
92.85% <ø> (ø)

lib/inferno/dsl/configurable.rb
97.18% <ø> (ø)

lib/inferno/dsl/fhir_client.rb
98.36% <ø> (-0.03%)
:arrow_down:

lib/inferno/dsl/fhir_client_builder.rb
88.88% <ø> (ø)

lib/inferno/dsl/http_client.rb
100.00% <ø> (ø)

lib/inferno/dsl/oauth_credentials.rb
100.00% <ø> (ø)

lib/inferno/dsl/request_storage.rb
100.00% <ø> (ø)

lib/inferno/dsl/results.rb
96.00% <ø> (ø)

lib/inferno/dsl/runnable.rb
96.64% <ø> (+1.24%)
:arrow_up:

lib/inferno/dsl/suite_option.rb
100.00% <ø> (ø)

... and 6 more

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.


Allow auth options to be a function instead of a static object

We have a realtime application which has an authEndpoint which changes dynamically as JWTs expire and refresh.
pusher-js-auth does not currently support dynamic changes to the auth configuration.
This PR allows the auth option to be a function, which will be dynamically invoked at request time. For example:
const pusher = new PusherClient({
  authEndpoint: '/v1/pusher/auth',
  auth: () => ({
    headers: {
      'Bearer': getDynamicBearerToken()
    }
  })
})

I like this!.. It should be merged in.

Thanks for this update @brettjonesdev!
I've released the changes as 3.0.1 on Github and NPM

I'm struggling to update the token in such a way when async/await needs to be used.

what if I propose a PR for covering the case? It would be quite easy since you already support the authOptions being a function.
To give a bit of perspective, I'm trying to cope with the necessity to refresh the token before consuming it. Since the token refresh is typically something asynchronous (since it involves interacting with the auth server) it would be easier being able to pass an async function as authOptions, or do you see other options?

this is not as easy as it sounds in your comment. composeQuery is a synchronous function right now. Supporting an async logic requires making composeQuery asynchronous (and then checking its callers, etc)

I see that composeQuery is used only in xhrRequest, which in my case will be marked as async and will be in charge of handling the authOptions before instantiating the XHR request.
I'm already providing a fix since this case is blocking us from proceeding with the integration of pusher-js-auth. I'm going to open the PR anyway, in the worst cases scenario we will keep the forked repo and maintain it for our purposes.


test(DIST-693): Add Applitools and visual tests

Ticket DIST-693

Adds applitools basic config
I don't know yet how we want to run these tests, via storybook?
I am not sure I added the files and the scripts in the correct paths ( I followed our cypress config in packages/embed), so please review.
[x] Explain the motivation for making this change.
[ ] Provide a solid test plan for your changes.
[x] Link to the issue - if any DIST-693

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version @typeform/embed-v1.0.0-next.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version @typeform/embed-v1.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Update .travis.yml

Coverage decreased (-0.9%) to 67.428% when pulling d87203194bb29c6995754956a71a1fc13fef6c75 on abhijithneilabraham:patch-1 into 5b85d998c30ddc6772b56310713530224466083a on clips:master.


virt-launcher pod fails to start because of SELinux problems

Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug
What happened:
Fail to start a VM on the environment with enabled SELinux
virt-launcher log
level=error timestamp=2018-06-21T10:11:09.670507Z pos=server.go:154 component=virt-launcher reason="listen unix /var/run/kubevirt/sockets/kubevirt-test-default_testvmi64qfv_sock: bind: permission denied" msg="failed to create unix socket for launcher cmd service"
level=error timestamp=2018-06-21T10:11:09.670570Z pos=virt-launcher.go:81 component=virt-launcher reason="listen unix /var/run/kubevirt/sockets/kubevirt-test-default_testvmi64qfv_sock: bind: permission denied" msg="Failed to start virt-launcher cmd server"
panic: listen unix /var/run/kubevirt/sockets/kubevirt-test-default_testvmi64qfv_sock: bind: permission deniedleve

What you expected to happen:
A VM must succeed to start without any SELinux errors
How to reproduce it (as minimally and precisely as possible):

start a VM on the environment with enabled SELinux

Anything else we need to know?:
SELinux errors
ausearch -m avc --start recent
----
time->Thu Jun 21 12:03:19 2018
type=PROCTITLE msg=audit(1529582599.229:10379): proctitle="/usr/sbin/libvirtd"
type=SYSCALL msg=audit(1529582599.229:10379): arch=c000003e syscall=257 success=no exit=-13 a0=ffffffffffffff9c a1=7f164122484e a2=80001 a3=0 items=0 ppid=20653 pid=20668 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="libvirtd" exe="/usr/sbin/libvirtd" subj=system_u:system_r:container_t:s0:c67,c240 key=(null)
type=AVC msg=audit(1529582599.229:10379): avc:  denied  { write } for  pid=20668 comm="libvirtd" name="mtrr" dev="proc" ino=4026531960 scontext=system_u:system_r:container_t:s0:c67,c240 tcontext=system_u:object_r:mtrr_device_t:s0 tclass=file
----
time->Thu Jun 21 12:03:28 2018
type=PROCTITLE msg=audit(1529582608.902:10398): proctitle=2E2F766972742D6C61756E63686572002D2D71656D752D74696D656F757400356D002D2D6E616D6500766D692D6665646F7261002D2D6E616D6573706163650064656661756C74002D2D6B756265766972742D73686172652D646972002F7661722F72756E2F6B75626576697274002D2D72656164696E6573732D66696C65
type=SYSCALL msg=audit(1529582608.902:10398): arch=c000003e syscall=49 success=no exit=-13 a0=7 a1=c4201b8410 a2=34 a3=0 items=0 ppid=20578 pid=20616 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="virt-launcher" exe="/virt-launcher" subj=system_u:system_r:container_t:s0:c67,c240 key=(null)
type=AVC msg=audit(1529582608.902:10398): avc:  denied  { write } for  pid=20616 comm="virt-launcher" name="sockets" dev="tmpfs" ino=112881 scontext=system_u:system_r:container_t:s0:c67,c240 tcontext=system_u:object_r:container_var_run_t:s0 tclass=dir

Environment:
oc v3.10.0-rc.0+c20e215
kubernetes v1.10.0+b81c8f8
features: Basic-Auth GSSAPI Kerberos SPNEGO
openshift v3.10.0-rc.0+c20e215
kubernetes v1.10.0+b81c8f8

As a data point, this issue really is limited to SELinux (as opposed to being compounded by other issues). I temporarily turned off SElinux enforcement on my node and my VM instance booted fine.
audit2allow suggests adding these rules:

module local_rules 1.0;

require {
        type mtrr_device_t;
        type container_var_run_t;
        type container_t;
        class sock_file create;
        class dir { add_name write };
        class file write;
}

#============= container_t ==============

allow container_t container_var_run_t:dir { add_name write };
allow container_t container_var_run_t:sock_file create;

allow container_t mtrr_device_t:file write;

However, after adding those I'm still getting a failure in the pod's logs:
level=info timestamp=2018-06-21T16:49:44.168216Z pos=libvirt.go:256 component=virt-launcher msg="Connecting to libvirt daemon: qemu:///system"
level=info timestamp=2018-06-21T16:49:54.171291Z pos=libvirt.go:271 component=virt-launcher msg="Connected to libvirt daemon"
level=error timestamp=2018-06-21T16:49:54.171822Z pos=server.go:154 component=virt-launcher reason="listen unix /var/run/kubevirt/sockets/default_vmi-ephemeral_sock: bind: permission denied"
msg="failed to create unix socket for launcher cmd service"
level=error timestamp=2018-06-21T16:49:54.171901Z pos=virt-launcher.go:81 component=virt-launcher reason="listen unix /var/run/kubevirt/sockets/default_vmi-ephemeral_sock: bind: permission de
nied" msg="Failed to start virt-launcher cmd server"
panic: listen unix /var/run/kubevirt/sockets/default_vmi-ephemeral_sock: bind: permission denied

goroutine 1 [running]:
main.startCmdServer(0xc420043f40, 0x34, 0x12800e0, 0xc4200d0290, 0xc420096de0, 0xc42087de5f)
        /root/go/src/kubevirt.io/kubevirt/cmd/virt-launcher/virt-launcher.go:82 +0x446
main.main()
        /root/go/src/kubevirt.io/kubevirt/cmd/virt-launcher/virt-launcher.go:266 +0x569
virt-launcher exited with code 2

@cynepco3hahue I've got VM's running on my local cluster with the following type enforcement file:
module virt_launcher 1.0;

require {
        type mtrr_device_t;
        type var_run_t;
        type container_var_run_t;
        type container_t;
        class sock_file create;
        class dir { add_name write };
        class file { create open read write };
}

#============= container_t ==============
allow container_t container_var_run_t:dir { add_name write };

allow container_t container_var_run_t:file { create open read write };
allow container_t container_var_run_t:sock_file create;
allow container_t mtrr_device_t:file write;

allow container_t var_run_t:file { open read write };

To compile and install these rules on a running system, put the above into a file named virt_launcher.te, then run:
checkmodule -M -m -o virt_launcher.mod virt_launcher.te
semodule_package -o virt_launcher.pp -m virt_launcher.mod
semodule -i virt_launcher.pp

I'm unsure of the proper way to bake the above into the openshift provider image. Is that something you can do?

First: I think this is a side effect (as noted before) of moving to a non-privileged pod. privileged pods probably run as a different type.
Now, the real way how to fix this is (IMHO) to get this into the policies of a distro.
@rhatdan Any recommendations how we could do this for a Kubenretes application running on Origin on Fedora and CentOS?

Try giving virt-launcher and virt-handler identical mcs labels: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#assign-selinux-labels-to-a-container. That a non-privileged pod can't access sockets from other pods is the default and it should work by labeling them the same way.

@rmohr Do not sure if it will help because in this case, all virt-launcher pods will have the SELinux MCS label of the virt-handler pod, in general, it means that one virt-launcher pod can access private resources of an other virt-launcher pod(at least from SELinux perspective)

@fabiand I'm not sure that distro defaults makes sense here. the specific privileges needed are tailored to the exact workflow of the virt-launcher pod.

These rule make sense to me based on what's happening (opening a socket).
allow container_t container_var_run_t:dir { add_name write };
allow container_t container_var_run_t:file { create open read write };
allow container_t container_var_run_t:sock_file create;

I'm not sure these are relevant unless virt-launcher needs to access something from the hosts' /var/run/ or /proc/mtrr.
allow container_t mtrr_device_t:file write;
allow container_t var_run_t:file { open read write };

I versus this policy, this rules relevant to virt-launcher containers, but they do not relevant for normal containers.
I think we must create a new label, something like container_svirt_t that will extend container_t with new rules. And apply this label on virt-launcher containers.

If you volume mount in the socket using :z it will eliminate the AVCs for container reading and writing to the container_var_run_t socket.
I would like to see the raw AVC messages.

What is the docker or preferably podman command used to start these containers?  Or are these containers running under kubernetes/CRI-O?

@rhatdan it OpenShift Origin 3.10 rc.0 with docker
audit.log
Give me you know if you need any additional information, and thanks for your help

The logs you attaches show in one, libvirtd running inside of a container.  If this is supposed to be full libvirtd running in a container, I believe you will have to run with SELinux separation turned off (Run with spc_t)
As far as virt-launcher talking to the container_var_run_t socket, I think you just need to tell the container runtime to relabel the socket as a shared content.
podman run -v /run/PATHTOSOCEKTDIR:/run/PATHTOSOCKETDIR:z ...
or
docker run -v /run/PATHTOSOCEKTDIR:/run/PATHTOSOCKETDIR:z ...
And the container runtime will relabel the socket dir and socket to something the container can write to.
Now once you get beyond that AVC, their could be one blocking the container from talking to the other end, I would need to see that AVC as well.  If you run in permissive mode, we could see the full list of AVCs

@rhatdan I added audit.log with the run under the permissive mode, can you please take a look and say if you have some additional thoughts until then I will try to apply your above proposals.
audit_permissive.log

@rmohr I tried to set the same SELinux level on the virt-handler and virt-launcher container(I tried both on pod and container level), but it did not help, maybe I did something wrong :worried:
@rhatdan Setting spc_t on virt-launcher pod solved the SELinux problem(more correctly will say, that it will just ignore all SELinux restrictions), I think like short term solution it works fine. Thanks for your help.

The logs you attaches show in one, libvirtd running inside of a container. If this is supposed to be full libvirtd running in a container, I believe you will have to run with SELinux separation turned off (Run with spc_t)

Yes, we run libvirtd in a pod, but with very reduced functionality (as in we use a limited set). Thus it's our goal to be able to run libvirt inside an un-privileged pod.
The privileged operations should be done by external components (like kubelet, device plugins or alike).
@rhatdan thus the question - how should wd configure the pod/kube considering that libvirt should be running as an un-privileged pod. And what should we do until we could remove all operations which caused selinux denials?
@nertpinx maybe also something for you, as we'll need to see what code paths still require privileges - and the question is if we can "eliminate" them.

Is libvirtd going to be launching VMs?
Running your audit.log though audit2allow shows:
 audit2allow  -i /tmp/t1

#============= container_t ==============
allow container_t container_var_run_t:dir { add_name write };
allow container_t container_var_run_t:file { create open read write };
allow container_t container_var_run_t:sock_file create;

These three can be solved by mounting the container /var/run volume directory with a :Z or :z option
#!!!! This avc can be allowed using the boolean 'domain_kernel_load_modules'
allow container_t kernel_t:system module_request;

This is caused by libvirtd trying to load the kernel module, kmod="char-major-10-200" .  Is there any way for you guys to get this loaded outside of the container.
allow container_t mtrr_device_t:file write;

How does this device get into the container?  /dev/cpu/mtrr?
#============= dnsmasq_t ==============
allow dnsmasq_t spc_t:dbus send_msg;

This is allowed in the latest container-selinux policy.

Also CC'ing @berrange on this issue

This is caused by libvirtd trying to load the kernel module, kmod="char-major-10-200" . Is there any way for you guys to get this loaded outside of the container.

We can load this module under our CI, but we can not guarantee that this module will be available on user nodes

A few things we can do:

Understand if libvirt really needs it and why  - Do you know @nertpinx @berrange ?
Check for it #1023 - and leave it to the operator to load it
Check for it #1023 - and let launcher or DP load it (i.e. part of kvm resource)

How does this device get into the container? /dev/cpu/mtrr?

I think we can mount it

Let's understand if libvirt really needs it and why - @nertpinx @berrange ?

allow dnsmasq_t spc_t:dbus send_msg;

Can you please provide exact version?

… and distro :)
In general - For all of those issues we need ot file individual bugs on libvirt in order to

understand if the feature causing the issue is really needed in our flows
get them fixed in cooperation with the libvirt team

@berrange @nertpinx where would you like to see the bugs getting opened https://github.com/kubevirt/libvirt or in some bugzilal instance?

This is caused by libvirtd trying to load the kernel module, kmod="char-major-10-200" . Is there any way for you guys to get this loaded outside of the container.

Understand if libvirt really needs it and why - Do you know @nertpinx @berrange ?

char 10,200 is /dev/net/tun. AFAIK, libvirt doesn't try to load the kernel module for this device.

    How does this device get into the container? /dev/cpu/mtrr?

Let's understand if libvirt really needs it and why - @nertpinx @berrange ?

Libvirt hasn't ever used that AFAIK

@berrange @nertpinx where would you like to see the bugs getting opened https://github.com/kubevirt/libvirt or in some bugzilal instance?

Any libvirt bugs must go to the libvirt bug tracker - either upstream, or the distro bug tracker if using distro packages.

@cynepco3hahue
If the module is not a particular node and libvirt needs it, then libvirtd would not work, I would figure
dnsmasq fix is in container-selinux-2.66-1.el7_5
@berrange libvirtd is not loading it, it is relying on a kernel mechanims that triggeres the kernel to load the module.  We don't allow this mechanism by default from SELinux, although their is a boolean.  Our thinking  is that the Admin should load all of the modules the containers need rather then allow a rogue container cause the kernel to load a module, that might allow breakout.
The real question here that you guys have not answered is what is libvirtd purpose in the container, if it is to launch VM's, then we should not be confining it with SELinux.  We need to make sure that libvirtd can launch vm's with sVirt, and SELinux in the container will definitely prevent this.  I am not sure that libvirtd will see that SELinux is enabled either, which could cause issues.  Finally I would figure that dropped capabiltiies and seccomp rules would prevent libvirtd from doing what is can do.

@cynepco3hahue why was this closed?

@fabiand I believe it because of my W/A PR was merged.

Deferring this and will break it up into smaller bugs, as we've got the workaround in place and need to find a long term solution.


【BUG】Catch runtime exception

Proposed changes
select * from table where date in (20201030) may cause partition pruningRuntimeException, it is not catched and compiling failed. See issue: #4805
Types of changes
What types of changes does your code introduce to Doris?
Put an x in the boxes that apply

[x] Bugfix (non-breaking change which fixes an issue)
[] New feature (non-breaking change which adds functionality)
[] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[] Documentation Update (if none of the other choices apply)
[] Code refactor (Modify the code structure, format the code, etc...)

Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

[x] I have create an issue on (Fix #ISSUE), and have described the bug/feature there in detail
[x] Compiling and unit tests pass locally with my changes
[x] I have added tests that prove my fix is effective or that my feature works
[x] If this change need a document change, I have updated the document
[x] Any dependent changes have been merged

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

in the level of exception of Runtime
i do not think is a good idea to catch and do not throw

The RunTimeException is throwed by this function, not a real RunTimeException.
public static int compareLiteralExpr(LiteralExpr key1, LiteralExpr key2) {
        int ret = 0;
        if (key1 instanceof MaxLiteral || key2 instanceof MaxLiteral) {
            ret = key1.compareLiteral(key2);
        } else {
            final Type destType = Type.getAssignmentCompatibleType(key1.getType(), key2.getType(), false);
            try {
                LiteralExpr newKey = key1;
                if (key1.getType() != destType) {
                    newKey = (LiteralExpr) key1.castTo(destType);
                }
                LiteralExpr newOtherKey = key2;
                if (key2.getType() != destType) {
                    newOtherKey = (LiteralExpr) key2.castTo(destType);
                }
                ret = newKey.compareLiteral(newOtherKey);
            } catch (AnalysisException e) {
               *************** throw new RuntimeException("Cast error in partition"); ******************
            }
        }
        return ret;
    }


Autosuggest isn't focus-able after double-clicking on it

Describe the bug
When double clicking Autosuggest it freezes and the user isn't able to search anymore
To Reproduce

Go to https://bumbag.style/form/autosuggest/
Double click on Autosuggest
Try to focus on the input to search

Expected behavior
I should be able to search or focus on the input after double-clicking
Screenshots

Device information (please complete the following information):

Device: Desktop
OS, version: Windows 10
Browser, version: Chrome v84.0.4147.135

Fixed on 1.1.12


Create a RFC that describes the whole voting process in Firefly

Awesome, thanks for this issue! I've started first drafted bullet points that I would like to agree on high-level before we go and build detailed RFC. See here: https://hackmd.io/@O3NsAVb5Qg-DSFReDM7tnw/BkiHOhByF


fix(ext): update invalid import

Types

[x] 🐛 Bug Fixes

Background or solution
Changelog
Fix NodeExtProcessService cannot create RPC connection in electron

Codecov Report

Merging #608 (5453a1f) into v2.15 (44c2eed) will decrease coverage by 0.00%.
The diff coverage is 12.50%.

@@            Coverage Diff             @@
##            v2.15     #608      +/-   ##
==========================================
- Coverage   59.02%   59.02%   -0.01%
==========================================
  Files        1203     1203
  Lines       73932    73937       +5
  Branches    15300    15302       +2
==========================================
+ Hits        43639    43640       +1
- Misses      27611    27615       +4
  Partials     2682     2682

Impacted Files
Coverage Δ

...es/extension/src/browser/extension-node.service.ts
22.68% <12.50%> (-1.24%)
:arrow_down:

...ages/file-service/src/node/file-service-watcher.ts
71.75% <0.00%> (+0.56%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 44c2eed...5453a1f. Read the comment docs.


Add a specific class to the  elements where ide-purescript is active

Adding and removing a specific class (e.g. ide-purescript-editor) to the  elements where ide-purescript is active or not is a good way of keeping track of the availability of certain commands (in keymaps, for example) or it can be used for extra styling customizations.
Using syntax--* or source-like selectors is bad and should be avoided, as, for instance, there could be different packages which use the same syntax grammars but do not provide the same commands.

That sounds reasonable, is there an existing example of this you can point to maybe in one of the more major language packages? I'm pretty sure I just cribbed selector pattern from existing examples.

The only atom package which I know of that does this is omnisharp-atom. The mainstream is to add [data-grammar~="purs"]-like selectors to the keymaps and styles for example, but they won't work as they should if two packages use the same grammar and are both active.
But after thinking a little more about this, I think that maybe this is nit-picking of my part, as it is an extreme edge case which maybe never will be hit.

It is certainly the case that the grammar this package uses is provided by another package, language-purescript.
(The bigger problem in my mind is that the keymaps that are provided as part of this package itself can't be scoped properly in any way or the key bindings will not be shown on the menus etc, due to the way atom tests selectors against a mock element)


Write an ADR for use of a user's JWT now that EdxApiRestClient has been removed

During the DEPR of EdxApiRestClient, some cases were replaced with plain requests object code, rather than using the updated OAuth client, using the user's JWT for service-to-service calls.
TODO: Find an example link of this change from the DEPR work.
The original intention of the new client was intentionally not to add this functionality to the new client, because it was thought that the client credentials token should be used instead of the user's JWT.

We should have an ADR that clarifies when and if using the user's JWT is appropriate.

We might potentially enhance the existing client if we wish to allow for other ways of using it.

Note: The new client also provides shared observability code, but is lost when using the requests code directly without a client.
The Authentication OEP should also link to this ADR.

Other thoughts to consider: How might different solutions affect traceability and rate limiting.
Note: If we enhance the client with additional features around retries, backoffs, circuit breakers, etc., we'll have even more reasons for people to use our client over requests directly.

Note that once this ADR exists, there should be a follow-up ticket for getting the platform aligned with the decision.

Additional notes:

Review the original client for code that was lost. For example, the setting of the User-Agent here: https://github.com/openedx/edx-rest-api-client/blob/2388c71aa0c782720f40491ad75a4bce6bf68dbf/edx_rest_api_client/client.py#L355C25-L355C37
Updated code did not use a new client, but it did use SuppliedJwtAuth. This class can probably be used to find usages outside of the library in the case we wish to replace with a full client.

If we are unable to make a decision, we could at a minimum document the de facto decision that was made for all the legacy code in a how-to and/or ADR.


Unnecessary query parameter (_id is not null) in Eloquent relationships

Laravel Version: 9.27.0
PHP Version: 8.1.9
Database Driver & Version: PostgreSQL 14.5

Description:
I'm really confused about the SQL query that is being generated when fetching records by a relationships (for example, HasMany and MorphMany).
// for HasMany relationship
$meeting->participants()->toSql();
// returns
// select * from "meeting_participants" where "meeting_participants"."meeting_id" = ? and "meeting_participants"."meeting_id" is not null

// I would expect this:
// select * from "meeting_participants" where "meeting_participants"."meeting_id" = ?

// for MorphMany relationship
$post->media()->toSql();
// returns
// select * from "media" where "media"."model_type" = ? and "media"."model_id" = ? and "media"."model_id" is not null

// I would expect this:
// select * from "media" where "media"."model_type" = ? and "media"."model_id" = ?

There should not be an extra query parameter that checks if the related ID is not null, because there is already comparison of ID's done and also the the primary key of the related model is never going to be null anyway... Who knows how this extra query parameter affects database's query planner...! :thinking:
Probably this is happening since #37451 , but I'm not sure about that.
Steps To Reproduce:
Make Eloquent models with HasMany and/or MorphMany relationships. Probably the same issue affects other types of relationships as well.
class Meeting extends Model
{
    public function participants()
    {
        return $this->hasMany(MeetingParticipant::class);
    }
}

class MeetingParticipant extends Model
{
}

$meeting = new Meeting();
$meeting->id = 123; // fake an existing record

// display the generated SQL query
echo $meeting->participants()->toSql();

This check was introduced in PR #8033 from 2015 to Laravel 5.0.
Check the discussion on the PR above for the rational and discussion. Also see issues/PR referencing the PR above and the reasons for not reverting this behavior.

Someone already attempted to simplify it but was rejected.
https://github.com/laravel/framework/pull/36905

Heya, if you want this to be reconsidered feel free to reattempt the PR. Thanks


Feature Request: Allow multi-process capture with tpacketv3

We have some very large boxes that are used with moloch.  These boxes have upwards of 20x-40x CPU's (each with 2 threads) vs. capture interfaces.  The capture process is unable to leverage the full CPU footprint on the box due to normal linux process CPU consumption limitations...   I'd be interested in exploring the possibility of having moloch offer FANOUT/FANOUT_HASH for multi-process capture on a single interface.
... Happy to help if this seems like a reasonable feature request ...

I have yet to see the issue with moloch be the tpacket threads.  Usually its either the packet processing threads or disk writing thread.  So if you want to submit a PR that would be fine, but I doubt that is the issue you are seeing.

What Gbps are you trying to do?
Have you increased tpacketv3NumThreads to the max of 6?
Have you increased tpacketv3BlockSize to the max that works on your box?
When you run top -H (or your favorite tool) what percent cpu are the moloch-af3 at vs the moloch-pkt thread

@awick getting access to some way bigger machines with about 1.5M packets/sec of traffic in a few days.  Our big machines see about 16 GBPS each.   And I'll report in whether those changes make a difference.  I don't think the issue is in the tpacket threads, I think its that the process is scaling up to about 10 cores, and linux (using traditional programming methodologies) generally can't efficiently schedule a single process beyond that in my experience.   I'm planning on introducing some more functionality (yara, etc), and I'm feeling pretty certain that will aggravate the general multithread problem.
It is a pretty easy PR, so i'll queue it up if you're cool with it.

Yep, which is part of the reason I suggest increasing threads slowly and not just max out.  As you probably know be careful with which kernel you use, there has been many FANOUT bugs.  You may see issues with moloch duplicating sessions depending on if you use any encapsulation.

Opened https://github.com/aol/moloch/pull/1086


added possibility to enable/disable swagger-ui via web/app config

Is this feature planned for a release... this would be great.


CLN: remove remaining references to shapely/examples directory

I removed the shapely/example/* directory a while ago (https://github.com/shapely/shapely/pull/1645), but there were still some references to it.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.3%) to 87.103%

Totals

Change from base Build<PHONE_NUMBER>:
0.3%

Covered Lines:
2384

Relevant Lines:
2737

💛  - Coveralls


zapi: Add get command

Adds searching capability to zapi via the get command.
Also:

Add repl mode which launches when no commands are provided to zapi.

closes #526

The REPL deserves its own PR.

The REPL deserves its own PR.

I don't disagree. That said this pr series has been pretty drawn out, especially for porting existing code to this repo. Unless there's a serious objection I would appreciate a review as-is.


Add build-linux-riscv64 to Makefile

Re-creating #638.

Thanks!

Do you intend to publish a binary for linux riscv64 as well?

Do you intend to publish a binary for linux riscv64 as well?

Thanks you very much! It would be great.


Keyboard navigation plugin doesn't allow getting past calendar element

Describe the bug
If you are using the keyboard navigation plugin and select a date, the next tab moves you back to the top of the page. Thus, there is no way to use your keyboard to navigate below the first calendar on a page.
To Reproduce
Steps to reproduce the behavior:

Go to https://litepicker.com/docs/plugins/keyboardnav/
Open up the demo and tab into the input element to trigger the calendar
Continue using your keyboard to select a date
Hit tab again after the calendar is closed and you will see that the focus is now in the Litepicker header.

Expected behavior
When the calendar closes, focus should move to the next element on the page.

Came here to mention this.
If you click on the input to open the gadget, you can tab past it but not into it.
If you tab to it, you cannot tab past it. Arrow keys can be used once you have tabbed to the dates. But once a date has been selected with 'return', the focussed date is then the first date available, rather than the one just selected.
Once two dates are selected with keyboard tab order is completely lost.

Not sure how to make it properly with the library, so I'm not pushing a PR, but here is my dirty workaround. It implies to edit a plugin file directly, so better to fork the repo.
To be able to trigger the modal only when pressing enter, and not just focusing the input, put this in the code where Litepicker is instantiated:
datePickerField.addEventListener('keydown', (e) => {
      if (e.code === 'Enter') {
        datePickerInstance.show();
        const modal = document.querySelector('.litepicker');
        const focusElement = modal.querySelector('[tabindex="1"]');
        focusElement.focus();
      }
});

You will have to remove the onFocus method and the two related event listeners in keyboardnav.js though.
And then to correctly focus another element when closing the modal with ESC:
// pass the next dom element I want to focus after closing the modal
return new Litepicker({
      element: document.getElementById('datepicker');
      plugins: ['keyboardnav'],
      nextFocusElement: document.querySelector('.next-element-in-the-dom'),
 });

in keyboardnav.js, edit onBlur like this

function onBlur(evt) {
      if (this.options.inlineMode) {
        return;
      }

      // get next focusable element
      setTimeout(() => {
        const activeElement = document.activeElement;

        if (!this.ui.contains(activeElement)) {
          this.nextFocusElement = this.options.nextFocusElement; // NEW: here is our next focus element
        }
      });
    }

and in the onKeyDown method:
case 'Escape':
          picker.hide();
          this.options.nextFocusElement.focus(); // NEW: we focus the next element manually
          break;


openai functions

Background

Changes

Documentation

Test Plan

PR Quality Checklist

[X] My pull request is atomic and focuses on a single change.
[X] I have thoroughly tested my changes with multiple different prompts.
[X] I have considered potential risks and mitigations for my changes.
[X] I have documented my changes clearly and comprehensively.
[X] I have not snuck in any "extra" small tweaks changes.
[ ] I have run the following commands against my code to ensure it passes our linters:black .
isort .
mypy
autoflake --remove-all-unused-imports --recursive --ignore-init-module-imports --ignore-pass-after-docstring autogpt tests --in-place

You changed AutoGPT's behaviour. The cassettes have been updated and will be merged to the submodule when this Pull Request gets merged.


Directing output to new chat windows?

Perhaps this is in the documentation, but how is one meant to filter text to output to a particular window? For example, inventory output, or combat assess output?

I don't think there is a way with how the windows work currently, for those particular items.  Inventory would be pretty easy to add, I'll take a look at the combat assesses.

Just out of curiosity btw, what version of OSX are you using?  I'm trying to get a feel of what versions people are using since that determines some of the features I can use.

Looks like assess will work right now.  Inventory doesn't look like it will work without some changes from me.  Will look at it more though.
Run the following command and it will create a new window for assesses.
#window add assess

Yeah confirmed that getting inventory to work will take some code changes.

One other option you have is to use the #echo command to direct output to a specific window.  You can use it coupled with the action command in scripts or global triggers.
The following global trigger will execute when the text testing is parsed.  You can test the trigger by typing #parse testing in the command prompt.  Triggers accept regex just like actions.  This trigger should print out yap colored in yellow.  You can also see I have a trigger for running a script on first login (for things such as sorting inventory).

#echo [>targetWindow] [color[,backgroundcolor]] <text>

echo a message to a window
text - The text you want to echo
window (optional) - The target window you want to echo to.  Defaults to main.
color (optional) - The foreground color.  Use hex color.
backgroundcolor (optional) - The background color.

put #echo >thoughts #000000,#efefef hello

Running the latest version of OSX (10.11).
Good to hear about more out-of-the-box windows. Assess would definitely be one of the more useful ones, I think.

Good news, this is resolved in version 0.9.0!
https://github.com/joemcbride/outlander-osx/releases/tag/v0.9.0

you're amazing
On Fri, Apr 1, 2016, 12:08 PM Joe McBride<EMAIL_ADDRESS>wrote:

Closed #54 https://github.com/joemcbride/outlander-osx/issues/54.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/joemcbride/outlander-osx/issues/54#event-611470633


Feature — recipe book autoclose

Add option to automatically close recipe book tab when closing inventory.

Shite, this is duplicate of #111.


Update our affiliations with eurosciencegateway

From element/matrix:

Hi all, please add "affiliations: eurosciencegateway" to your personal GTN entry in the Contributors yaml file (https://github.com/galaxyproject/training-material/blob/main/CONTRIBUTORS.yaml#L35). Then it is visible there.

Also add as funders:

Physical Sciences Data Infrastructure  (PSDI: https://www.psdi.ac.uk/ ) project. Supported by the EPSRC grants EP/X032701/1, EP/X032663/1 and  EP/W032252/1.
Ada Lovelace Centre, Scientific Computing Department, Science and Technologies Facilities Council (STFC), UKRI.


Add more sorting algorithms

Add more sorting algorithms here
refer #14

Can you please assign this to me? I am new to open source.

Yes why not
If you need help or any doubt you can ask here
Also you can add simple programs too like addition, subtraction in fundamental folder category

Ok


Create - 2023-11-18-KronosResearch.md

Kronos hack

Understood. I'll ping you once I have completed the requested changes. I'll be working on it this weekend.

@aholman0725 please check comments in other pull requests you opened. I'm seeing the same mistakes here (file name, links, security failure causes, etc.) I would also advise using ChatGPT 4 to fix styling errors. Take a look at this comment.

I am currently on the waiting list to upgrade to ChatGPT 4. I will update asap.

@evgenydmitriev Please let me know if I have missed any of the requested changes. There are additional characters in one link as it takes you to the message Kronos Research sent the hacker. I can remove the characters, but the link will then take you to a message board that does not contain the direct message. Please advise if you would like me to leave as is or remove the link.

@JediFaust Would you mind reviewing this PR as well as the Coinspot and Kyperswap, PR so I can make the necessary changes to them as well?

ChatGPT4 used to update security failures.

/articlecheck

/payout


Menu Entry Swapper Suggestion

I'm always frustrated when I am making necklaces while crafting or smithing dart tips. It is a pain to right click make all.
Please add the smithing interface to the menu swapper add-on
Woox For President!

This is on our rejected features list:

Menu reorder in shop/artisan skill screens: Other clients don't implement these swaps, and would be too strong for numerous activities (examples include "Buy-50" swaps, "Make All" swaps for smithing/crafting, etc.)


set command is inconsistent with redis

Search before asking

[X] I had searched in the issues and found no similar issues.

Version
2.0.6
Minimal reproduce step
kvrocks:6666> set key value ex 1000 px 2
OK

kvrocks:6666> set key value ex 1000xyz
OK

But in redis:
redis:6379> set key value ex 1000 px 2
(error) syntax error

redis:6379> set key value ex 1000xyz
(error) value is not an integer or out of range

What did you expect to see?
The set command should be the same as redis.
What did you see instead?
Can set new data using incorrect syntax.
Anything Else?
No response
Are you willing to submit a PR?

[X] I'm willing to submit a PR!

Has something in common with #456.
set key value ex 1000xyz

I think this is because we are using functions like stoi directly without using parse techniques for error handling.
I propose a unified abstraction in #598 to better parse redis commands. I haven't gotten to that yet though.

Yes, it may be a big change, and it may take a long time.
However, set command is a very common command, and I thought it would be a simple matter to fix it first.


'sortable' global attribute, table

caniuse needs to add global attribute ' sortable '
sortable (sortable="sortable" in XHTML)
WHATWG & HTML5.1 only. When present, it indicates the table's contents may be sorted by column. It is used in conjunction with the sorted attribute on the th element, which can be set manually or by the user agent when the user clicks a column.
HTML5 Pocket Reference, 5th Edition, O'Reilly, C 2013 - page 135.
Table > Attributes > HTML5 Global Attributes

Duplicate of #2437.

2437 is closed (?) GitHub needs a Public view of Admin, with Google access. O'Reilly description iis a start - Jennifer Niederst Robbins. More on sorted...
sorted (sortable="sortable" in XHTML)
"reversed | number | reversed number | number reversed | number greater than zero".
WHATWG & HTML5.1 only. Provides a means for users to sort table columns in tables with the sortable attribute.
HTML5 Pocket Reference, 5th Edition, O'Reilly, C 2013 - page 135.
Table > Attributes > HTML5 Global Attributes
Note. Sorted variable options include those found today at W#Schools.com. One wonders where sort attributes are going without an alphabetical sort mentioned anywhere. Attribute width is adopted for <th>, while sorted and sortable are still missing. Perhaps scope is issue.
Scope. Consider the CSS3 Colors table at CssPortal.
http://www.cssportal.com/css3-color-names/.
Each row 'scopes' particular and exclusive values. Sorting any header's sort attribute must also maintain each color's data scope.
http://www.w3schools.com/tags/att_th_scope.asp.

Yeah, closing as duplicate. No need to add features that haven never been nor will be supported.

Rather bold comment Fyrd. From a very tiny corner of the Internet Of Things. Inclusive is not repetition, is reaching for a new topic. Cope and contribute, rather than condescend.


Bump to 0.2.93

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @JohnTitor (or someone else) soon.
If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.
Please see the contribution instructions for more information.

@bors r+

:pushpin: Commit 4b9e959f966493a6398b78210539f80af5aa8876 has been approved by JohnTitor

:hourglass: Testing commit 4b9e959f966493a6398b78210539f80af5aa8876 with merge 3b185efb5ab36d25f4c1f87ce74ccce42ddd4743...

:sunny: Test successful - checks-actions, checks-cirrus-freebsd-11, checks-cirrus-freebsd-12, checks-cirrus-freebsd-13
Approved by: JohnTitor
Pushing 3b185efb5ab36d25f4c1f87ce74ccce42ddd4743 to master...

Published on crates.io: https://crates.io/crates/libc/0.2.93


Bad use of camel case

From here:
https://github.com/TaitoUnited/full-stack-template/blob/dev/server/src/common/formatters.ts
For the proper one see:

https://stackoverflow.com/questions/57962841/is-there-a-way-to-camel-case-the-column-names-returned-from-postgresql-using-pg
https://coderwall.com/p/irklcq/pg-promise-and-case-sensitivity-in-column-names

i.e. pg-promise lets you camel-case everything automatically, in the background, without you having to inject camelize logic after queries, like you do it here: https://github.com/TaitoUnited/full-stack-template/blob/dev/server/src/blog/PostDao.ts

We discussed this a few years back. At the time there was some drawback or problem with the automatic conversion, but I don't remember what it was. Perhaps we should look this again.


Github actions should be upgraded so that no warnings are dumped

An example of the Warnings being dumped here:
https://github.com/go-jose/go-jose/actions/runs/9070028369

This should be easily fixable by upgrading the different Github actions

I've added dependabot for github actions so we don't get behind in the future, and will upgrade them now


sentinel no work on 1 master and two slaves

I use 1 master and two slaves and 3 sentinels  for each ardb server
but I found that this sentinels  not selete new master from 2 slaves when I shutdown master node
How Can I do?  Any one ,can help me?
ps: I get flow message when I shutdown master:

what about slaver of ardb?

Is the message from redis-sentinel?

For redis-sentinel compatible, ardb only need to reply pub/sub   correctly, i'll test ardb with sentinel.
And waht's the sentinel version are u testing with?

this msssage get from redis-sentinel .
I use redis-cli login redis-sentinel and do : PSUBSCRIBE * .
about sentinel version:

thanks yous

i'll check latest redis-sentinel to reproduce this issue.

I use ardb version:

and before I upgrade to 0.9 version but there are many bugs about 0.9 ,and I have to run 0.8 version now.

i just tested latest ardb with latest redis-sentinel,  there is no any error.
0.8.6 is pretty old, it's not compatible with 0.9, and it's not been maintained any more.

yes I test 0.8.6 with v=3.1.103 ,It is bad
but v=3.0.1 of sentinel , is work right .so may been some uncompatible bwteen  0.8.6  of ardb and 3.1.1 of  sentinel .
one or two mouths before, I used to 0.9.X of ardb in work . and there is not enough stability for my work.
so I return to old version . and I use 0.8.6 version on production environment
I hope ardb 0.9 can reach to enough  stability  for production asap
thanks your works.


[Error] You may need an additional loader to handle the result of these loaders.

Steps to reproduce
yarn serve
What is expected?
Application Running
What is actually happening?
Error producing
Module parse failed: Unexpected token (806:65)
File was processed with these loaders:

./node_modules/cache-loader/dist/cjs.js
./node_modules/babel-loader/lib/index.js
./node_modules/cache-loader/dist/cjs.js
./node_modules/vue-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
|     // add message template
|     async saveMessageTemplate() {

  this.formAddTemplate.attachments = this.$refs['uppy-data']?.uppy?.getFiles();

|       this.on_reply_message.attachments = this.$refs['uppy-data-onreply']?.uppy?.getFiles();
|       this.formAddTemplate.id = uuidv4();
@ ./src/components/dialog/message_template/message_template.vue?vue&type=script&lang=js& 1:0-309 1:325-328 1:330-636 1:330-636
@ ./src/components/dialog/message_template/message_template.vue
@ ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/message-template/index.vue?vue&type=script&lang=js&
@ ./src/views/message-template/index.vue?vue&type=script&lang=js&
@ ./src/views/message-template/index.vue
@ ./src/router/index.js
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://<IP_ADDRESS>:8080&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.js
NodeJS Version
v16.14.2
Package manager name & version
Yarn 1.22.17
Browser name & version
Chrome Version 103.0.5060.53
Device on which you tested
Windows Pro 10
Any additional comments?
No response

I also encountering this error

me too

Any updates how to solve it?
I also purchased the versions that costs money and still encountering the same issue

babel.config.js --->
module.exports = {
presets: ["@vue/cli-plugin-babel/preset"],
plugins: [
"@babel/plugin-proposal-nullish-coalescing-operator",
"@babel/plugin-proposal-optional-chaining"
]
};

@Dan030 Cool!
That works, thanks!

Here are some common solutions for installation issues:

Make sure to use Node LTS
Use yarn or run npm install with npm install --legacy-peer-deps
Don't delete the lock file, use it
Remove node_modules and run the installation again

@disinibale Please let us know if your issue is not resolved


Update the main README to reflect the new server

The README currently contains instructions to run the server as a Node project. It should be updated with instructions for Python usage, this should be completed after #28
New Neovim instructions would be awesome aswell. These samples are from pygls. This is super simple and effective way to quickly integrate with Neovim without lspconfig.
vim.api.nvim_create_autocmd({ "BufEnter" }, {
  -- NB: You must remember to manually put the file extension pattern matchers for each LSP filetype
  pattern = { "*" },
  callback = function()
    vim.lsp.start({
      name = "hello-world-pygls-example",
      cmd = { "python path-to-hello-world-example/main.py" },
      root_dir = vim.fs.dirname(vim.fs.find({ ".git" }, { upward = true })[1])
    })
  end,
})

New project references to be added

https://github.com/openlawlibrary/pygls/tree/master/examples
https://github.com/regen100/cmake-language-server


Rust FilterParser: store values as strings

As described in https://github.com/newsboat/newsboat/issues/631#issuecomment-651060230, I believe it's best to keep C++ and Rust implementations of FilterParser and Matcher identical for now. This PR achieves that by removing the only difference between the two: the way the right-hand-side values are stored. Rust now mimics C++, storing everything as a string and converting to a more appropriate type upon evaluation.
Reviews are welcome! Will merge in three days if no issues are raised.

Coverage decreased (-0.09%) to 56.971% when pulling e53c4dd7a5f84e31088b37e7b4fa36d2197c00ac on feature/stringly-typed-rust-parser-and-matcher into 562d9119bb8f1a78f5f7e6e832e3d99c3196b6c5 on master.

The three-day countdown is off until I fix the build failures.

The countdown is re-started now. I'll merge in three days.
The problem that caused CI to fail is described in https://github.com/newsboat/newsboat/pull/1055/commits/0c58ddfa941b4eff8c9d8545078ce16594775b1f.

Rebased because of conflicts in rust/libnewsboat/src/matcher.rs. Will merge once it passes the CI.


Cannot read data from sap.m.Table

Describe the bug
During my test I sort a sap.m.Table. I want to assert that the data displayed is indeed sorted ascending. I try to read the data from row 1 and compare it to data from row 2.
After sorting the table I read the first row:
firstrow = await mytable.getItems(0)

Then I obtain the context of that row:
rowcontext = await firstrow.getBindingContext('myModel')

Then I try to get part of the model bound to this row, so that I can read data from it:
myobject = await rowcontext.getObject()

Here I get the error:
rowcontext.getObject is not a function

To Reproduce
Use a sap.m.Table in your app, bound to a model, and try the above code to read data from it.
Expected behavior
I expect rowcontext.getObject() to return part of the model (in my case, JSON model) which is bound to the first table row. In the browser the above code works.
If the above is not the correct way to read data from a sap.m.Table in a wdi5 test then please describe the correct way.
Runtime Env:

wdi5/wdio-ui5-service-version: 0.9.12
UI5 version: 1.96.0
wdio-version: 7.24.0
node-version: v14.18.1
OS: Windows 10
Browser + Version chrome 101.0.5150.0

Additional context
Test is run manually with npm run wdi5 from VSCode JS debug terminal.

yeah, calling methods on a UI5 plain object currently break, see #234 #269.
in your case, rowcontext is not a control anymore and the wdi5 api breaks.
but we (aka @dominikfeininger) are on it :)

Still waiting for #269 to complete.

https://github.com/ui5-community/wdi5/pull/366

@mocsa can you please check if https://github.com/ui5-community/wdi5/releases/tag/v1.0.0-pre.1 solves your issue

I tried to run my test. It finds the table control, it can retrieve the first item but now it fails at the getBindingContext step.  The error I get is:
[wdi5] call of getBindingContext failed because of: Error: waitAsync is already running and cannot be called again at this moment

I forgot to mention that before I get the getBindingContext error the test hangs for about 10 seconds at the getBindingContext step.
Also, I didn't mention in my original post that the way I obtain the reference to the table is the following. Maybe it matters:
const mytable = await browser.asControl({
    selector: {
        id: "idMyTable",
        viewName: "com.test.view.Myview",
        interaction: 'root'
        }
    })

Hi @mocsa, can you please provide a full working example.
You can find my working (green) test in this branch: https://github.com/ui5-community/wdi5/tree/fix/349
added this test in aggregation.test.js
it.only("check the getBinding of a table", async () => {
        const mytable = await Other.getList()
        const firstrow = await mytable.getItems(0)
        const rowcontext = await firstrow.getBindingContext()
        const myobject = await rowcontext.getObject()
        expect(myobject.FirstName).toEqual("Nancy")
    })```

I'm not allowed to upload the app I'm testing and it would take a lot of effort to find and strip it down to the part where the test fails.
I thought about the opposite: to make your test fail. But I'd need your help on how I can run your (currently green) test locally on my computer. I don't know GitHub Actions enough to decipher how you execute your tests.
I downloaded the branch you mentioned and I see that Other.view.xml contains a simple sap.m.List with a sap.m.StandardListItem. If I were able to run your tests, my first idea to (hopefully) make it fail would be to replace this with sap.m.Table with a sap.m.ColumnListItem, because that is what I'm using.
Another difference in my test is that I don't have a default (nameless) Model, therefore I cannot use getBindingContext() without a model name. I must specify it. I'm not sure if this can cause any problems.

I did some further debugging and noticed that when my test executes this step:
rowcontext = await firstrow.getBindingContext('myModel')

I get the following error in the browser console:
Uncaught TypeError: crypto.randomUUID is not a function        VM1100:39
    at Object.window.wdi5.saveObject (eval at executeAsyncScript (index.html:552:26), <anonymous>:39:37)
    at eval (eval at executeAsyncScript (index.html:552:26), <anonymous>:55:58)
    at eval (eval at executeAsyncScript (index.html:552:26), <anonymous>:61:29)
    at a (_autoWaiterAsync-dbg.js:72:5)
    at _autoWaiterAsync-dbg.js:58:7
    at t (_timeoutWaiter-dbg.js:120:6)

I think it is coming from the code you added in 2bca472c792c7. If you need any more info about this, please send me instructions how can I obtain it.
Also, when my test executes this step:
firstrow = await mytable.getItems(0)

I get the following debug message in the browser console:
2023-01-29 12:00:52.629899 Found a DOM reference for the control 'Element
sap.m.ColumnListItem#__item28-container-myapp---mytable--idProductsTable-2'.
Executing 'sap.ui.test.actions.Press' on the DOM element with ID '__item28-container
-myapp---mytable--idProductsTable-2' -  sap.ui.test.actions.Press

Why is it executing sap.ui.test.actions.Press? I did not instruct wdi5 to do that.


Added field-level configuration options

Codecov Report

Merging #160 into master will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master      #160   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           13        13
  Lines          287       293    +6
  Branches        77        82    +5
=========================================
+ Hits           287       293    +6

Impacted Files
Coverage Δ

src/QueryBuilder.tsx
100.00% <100.00%> (ø)

src/Rule.tsx
100.00% <100.00%> (ø)

src/RuleGroup.tsx
100.00% <100.00%> (ø)

src/controls/ActionElement.tsx
100.00% <100.00%> (ø)

src/controls/NotToggle.tsx
100.00% <100.00%> (ø)

src/controls/ValueEditor.tsx
100.00% <100.00%> (ø)

src/controls/ValueSelector.tsx
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 12e254f...d65541c. Read the comment docs.


Fixed child documents array creation

Pull request in order to fix Issue #192.

Please excuse the confusion. I moved the pull request/fix to its own branch in order to use the master of my fork in development.
Opened pull request #196 for the bugfix.


Cannot find module '@streamparser/json/index' or its corresponding type declarations.

When trying to use this library, I am getting type errors from inside node_modules:
../../common/temp/node_modules/.pnpm/@types+json2csv__plainjs@6.1.0/node_modules/@types/json2csv__plainjs/src/StreamParser.d.ts:1:58 - error TS2307: Cannot find module '@streamparser/json/index' or its corresponding type declarations.

1 import { Tokenizer, TokenizerOptions, TokenParser } from '@streamparser/json/index';
                                                           ~~~~~~~~~~~~~~~~~~~~~~~~~~

Found 1 error in ../../common/temp/node_modules/.pnpm/@types+json2csv__plainjs@6.1.0/node_modules/@types/json2csv__plainjs/src/StreamParser.d.ts:1

I'm using the latest version of this package (6.1.3) and the latest version of the types package (6.1.0).
Edit: I'm also using the latest version of @streamparser/json (0.0.14).

This library was lacking typings altogether.
I just released v7.0.0 which entirely rewrites @json2csv to typescript.
Let me know if you find any issues with it. This was a massive change.

@juanjoDiaz Cool! I'm in the middle of adjusting a lot of our project's dependencies, so I'll try out the new version and report back.


[WinError 193] %1 is not a valid win32 application

I have run through your build process for Visual Studios and I run into this problem.
Traceback (most recent call last):
File "C:\Users\nayon\OneDrive\Desktop\2048-ai\2048.py", line 9, in
from ailib import ailib, to_c_board, from_c_index
File "C:\Users\nayon\OneDrive\Desktop\2048-ai\ailib.py", line 8, in
ailib = ctypes.CDLL(dllfn)
File "C:\Users\nayon.pyenv\pyenv-win\versions\3.13.0\Lib\ctypes_init_.py", line 390, in init
self._handle = _dlopen(self._name, mode)
~~~~~~~^^^^^^^^^^^^^^^^^^
OSError: [WinError 193] %1 is not a valid Win32 application

You might be trying to use a 32-bit DLL with 64-bit Python or vice-versa. See this post for more details: https://stackoverflow.com/questions/19849077/error-loading-dll-in-python-not-a-valid-win32-application


Remove version: FreeCiv.FreeCiv version 3.0.1

[Automated] It returns code over 400 in all urls
Microsoft Reviewers: Open in CodeFlow

URL: https://sourceforge.net/projects/freeciv/files/Freeciv 3.0/3.0.1/Freeciv-3.0.1-msys2-win64-gtk3.22-setup.exe/download
OK
(Automated message - build 923)

Close with reason: Package still available.;


got a problem with events.

hey guys.
i use this code for using typeahead for search and events .
var typeahead = $('#hotelCitySearch').typeahead({
        ajax: {
            url: base_url + 'search/index',
            method: 'post',
            triggerLength: 1,
            loadingClass: "loading-circle",
        }
    });
    $('#hotelCitySearch').bind('typeahead:select', function(ev, suggestion) {
        console.log('Selection: ' + suggestion);
    });

and this is the json i use as source :
[{"code":"5201","name":"\u0645\u0634\u0647\u062f - MASHAD - MHD"},{"code":"5658","name":"\u067e\u06cc\u0631\u0627\u0646\u0634\u0647\u0631 - - "}]

But the select event isn't work for me ..

same

+1

Try binding directly on the bloodhound object (see https://github.com/twitter/typeahead.js/issues/300#issuecomment-40798419)


WALLOPS don't work

The command is just mishandled as a reply instead of a command. Implement.

Implemented in master.


expected a non-empty list of Tensors

Traceback (most recent call last):
  File "main.py", line 429, in <module>
    main_worker(-1, opt)
  File "main.py", line 388, in main_worker
    train_batch_logger, tb_writer, opt.distributed)
  File "/home/liuhao/testCode/ResNets_3D_PyTorch/training.py", line 33, in train_epoch
    for i, (inputs, targets) in enumerate(data_loader):
  File "/usr/local/lib/python3.5/dist-packages/torch/utils/data/dataloader.py", line 819, in __next__
    return self._process_data(data)
  File "/usr/local/lib/python3.5/dist-packages/torch/utils/data/dataloader.py", line 846, in _process_data
    data.reraise()
  File "/usr/local/lib/python3.5/dist-packages/torch/_utils.py", line 369, in reraise
    raise self.exc_type(msg)
RuntimeError: Caught RuntimeError in DataLoader worker process 0.
Original Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/torch/utils/data/_utils/worker.py", line 178, in _worker_loop
    data = fetcher.fetch(index)
  File "/usr/local/lib/python3.5/dist-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
    data = [self.dataset[idx] for idx in possibly_batched_index]
  File "/usr/local/lib/python3.5/dist-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp>
    data = [self.dataset[idx] for idx in possibly_batched_index]
  File "/home/liuhao/testCode/ResNets_3D_PyTorch/datasets/videodataset.py", line 145, in __getitem__
    clip = self.__loading(path, frame_indices)
  File "/home/liuhao/testCode/ResNets_3D_PyTorch/datasets/videodataset.py", line 126, in __loading
    clip = torch.stack(clip, 0).permute(1, 0, 2, 3)
RuntimeError: expected a non-empty list of Tensors

In the gititem() function, I can print the frame_indices and path correctly, but the clip is empty.

Hi,I got the same error，do youi resolve it？

This error means that the model did not get the data, you can check whether the image naming format is like this: 'image_{x:05d}.jpg' if your video_loader is 'VideoLoader()'

I had a similar problem once. Not all files on the annotation list had been downloaded from Youtube (private, removed, etc.) and in the middle of the 1st train loop it crashed. I had to update annotation with the files a had downloaded.


Rename selection answers to declaration

The language we have now settled on for this is the supplier declaration however it is still referred to as the selection questions in the data API. This change brings the API in line with the language used elsewhere.
Rather than renaming the table and routes to supplier declaration I have use the name supplier_frameworks. There are other pieces of information such as whether a supplier has registered interest in a framework that we currently query from the audit table. This was a temporary hack for expediency, now they can be hung off this table.
Causes downtime
This change is backwards compatible with respect to the apps that depend on the endpoint. However, because it changes the name of the table it will cause requests against /suppliers/{}/selection-answers/{} to fail for the duration of the release.

Since the submissions are closed selection answers is read-only right now. Should we consider doing a zero-downtime migration by creating the new table, copying the data over, switching and then deleting the existing one?
I think we can even keep most steps within the same migration (apart from table deletion), so when deploy starts first instance will move the data over while the remaining ones keep using the old tables until they're updated with the new version.
This should be safer in terms of not losing data if something goes wrong. And as far as I understand selection-answers are called by the supplier frontend dashboard to show the submission status.

@allait yes, great point. I've updated the migration (also realised I'd messed up the order).

:+1:


[BEAM-12283] Cherry-pick BEAM-12273

Please add a meaningful description for your change here

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

Run Twister2 ValidatesRunner

R: @kennknowles

Also #14725

#14725 merged


Error when scanning image - Trivy - No help topic for image name

I am seeing the following error logs when trying to scan an image:
/usr/bin/tar --version
tar (GNU tar) 1.30
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
/usr/bin/tar xz --warning=no-unknown-keyword -C /home/runner/work/_temp/027f57e6-0bba-4a99-87b7-823b887b56bb -f /home/runner/work/maven-consumer-profile/maven-consumer-profile/_temp/tools/trivy
##[debug]Caching tool trivy 0.23.0 x64
##[debug]source dir: /home/runner/work/_temp/027f57e6-0bba-4a99-87b7-823b887b56bb
##[debug]destination /opt/hostedtoolcache/trivy/0.23.0/x64
##[debug]finished caching tool
##[debug]Trivy executable found at path  /opt/hostedtoolcache/trivy/0.23.0/x64/trivy
Scanning for vulnerabilties in image: test_docker_for_scan
ommand]/opt/hostedtoolcache/trivy/0.23.0/x64/trivy test_docker_for_scan
##[debug]No help topic for 'test_docker_for_scan'
##[debug]
Error: An error occurred while scanning container image: test_docker_for_scan for vulnerabilities.
##[debug]Node Action run completed with exit code 1
##[debug]Finishing: Scan Docker Image

I think this issue might be tied to the latest release of trivy: 0.23.0. In this release, there were breaking changes: https://github.com/aquasecurity/trivy/discussions/1652, where the trivy command is no longer supported and you must use trivy image.
Here is an example snippet of my current GitHub Workflow file:
- name: Build Docker image and Push to GitHub Packages
  uses: docker/build-push-action@v2
  with:
    context: .
    load: true
    push: false
    pull: true
    tags: |
      test_docker_for_scan
- name: Scan Docker Image
  uses: azure/container-scan@v0
  with:
    image-name: test_docker_for_scan
    username: USER
    password: ${{ secrets.GITHUB_TOKEN }}

This issue just started happening today. If you need any additional details, please let me know.

Also getting the same error

Getting the same issue when I am trying to scan the image. I have open the debug in my Github Action and you can see below the issue that I get:
`##[debug]Downloading https://api.github.com/repos/aquasecurity/trivy/releases/latest
##[debug]Downloading /home/runner/work/_temp/5f8ee519-b302-46e3-b940-934302f53f1c
##[debug]download complete
##[debug]isExplicit: 0.23.0
##[debug]explicit? true
##[debug]checking cache: /opt/hostedtoolcache/trivy/0.23.0/x64
##[debug]not found
##[debug]Could not find trivy in cache, downloading from https://github.com/aquasecurity/trivy/releases/download/v0.23.0/trivy_0.23.0_Linux-64bit.tar.gz
##[debug]Downloading https://github.com/aquasecurity/trivy/releases/download/v0.23.0/trivy_0.23.0_Linux-64bit.tar.gz
##[debug]Downloading /home/runner/work/test/test/_temp/tools/trivy
##[debug]download complete
/usr/bin/tar --version
tar (GNU tar) 1.30
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later https://gnu.org/licenses/gpl.html.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by John Gilmore and Jay Fenlason.
/usr/bin/tar xz --warning=no-unknown-keyword -C /home/runner/work/_temp/49f60ca7-6581-4643-b881-1f6b843af353 -f /home/runner/work/test/test/_temp/tools/trivy
##[debug]Caching tool trivy 0.23.0 x64
##[debug]source dir: /home/runner/work/_temp/49f60ca7-6581-4643-b881-1f6b843af353
##[debug]destination /opt/hostedtoolcache/trivy/0.23.0/x64
##[debug]finished caching tool
##[debug]Trivy executable found at path  /opt/hostedtoolcache/trivy/0.23.0/x64/trivy
Scanning for vulnerabilties in image: test-image
ommand]/opt/hostedtoolcache/trivy/0.23.0/x64/trivy test-image9a
##[debug]No help topic for 'test-image'
##[debug]
Error: An error occurred while scanning container image: test-image for vulnerabilities.
##[debug]Node Action run completed with exit code 1
##[debug]Finishing: Azure Container image scan`
I think that 4 hours ago a new version of trivy has been released, the 0.23 which started causing the issues that we get above

Same here, if it is a Trivy version issue it would be good to be able to pin that version in future.

I think pinning the version, or at least making it configurable as an input is the right thing to do.
The underlying issue looks to be a breaking change from trivy which changes the command from trivy to trivy image
https://github.com/aquasecurity/trivy/discussions/1515
I think it could be a simple change here https://github.com/Azure/container-scan/blob/580b077b44ccdff6a6d28e4ab82231cfd96ebd45/src/trivyHelper.ts#L16

Updated the binaries in v0 and v0.1. Please verify.

@koushdey Thank you for reviewing and releasing the updates. Both v0 and v0.1 are working for me.


feat(vertexai): Context caching

Adapted from the Python samples for Context caching
Region tags:
generativeaionvertexai_gemini_create_context_cache]
generativeaionvertexai_gemini_get_context_cache
generativeaionvertexai_gemini_use_context_cache
generativeaionvertexai_gemini_update_context_cache
generativeaionvertexai_gemini_delete_context_cache

As an exception, createContextCache returns a string. This is necessary for the test to refer to the cached content that it has just created.

@Deleplace do you mean this is port of these samples? (the link you mentioned is pointing at controlled generation) https://github.com/GoogleCloudPlatform/python-docs-samples/tree/621454ef68f7fbda02060d1a249acb83d5e490d6/generative_ai/context_caching

@Deleplace do you mean this is port of these samples? (the link you mentioned is pointing at controlled generation) https://github.com/GoogleCloudPlatform/python-docs-samples/tree/621454ef68f7fbda02060d1a249acb83d5e490d6/generative_ai/context_caching

Thanks! Indeed the link was wrong, I updated it at the top of the PR.


open Could not find decoder for codec_id=56

Expected behaviour
I want to get the frame rate.
Actual behaviour
<EMAIL_ADDRESS>global /build/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp (1108) open Could not find decoder for codec_id=56
<EMAIL_ADDRESS>global /build/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp (1140) open VIDEOIO/FFMPEG: Failed to initialize VideoCapture
The frame rate obtained is 0.0
Steps to reproduce
import cv2

cap=cv2.VideoCapture(r"1.avi")
print(cap.get(5))

Windows 10
X64
python3.7.3  opencv-python <IP_ADDRESS>
Issue submission checklist

[x] This is not a generic OpenCV usage question (looking for help for coding, other usage questions, homework etc.)

[x] I have read the README of this repository and understand that this repository provides only an automated build toolchain for OpenCV Python packages (there is no actual OpenCV code here)

[x] The issue is related to the build scripts in this repository, to the pre-built binaries or is a feature request (such as "please enable this additional dependency")

[ ] I'm using the latest version of opencv-python

@liunx7594 Please provide more details on your setup: python version, opencv version, how you install it. Also video file is required for the issue debugging.
OpenCV supports different back-ends for video decoding. Please run the reproducer with  OPENCV_VIDEOIO_DEBUG=1 environment variable and share logs. See https://github.com/opencv/opencv/wiki/OpenCV-Debugging-Facilities for more details.

python3.7.3    opencv-python <IP_ADDRESS>
I install opencv-python by pip.
This is the video file to be tested.
I can't seem to upload a large file, so I compress it in volumes
[1.zip](https://github.com/opencv/opencv-python/file
1 (8).zip
1 (9).zip
1 (10).zip
1 (11).zip
1 (12).zip
1 (2).zip
1 (3).zip
1 (4).zip
1 (5).zip
1 (6).zip
1 (7).zip
s/8388507/1.zip)


postcss config should not be searched outside of project root

Describe the bug
The default behavior of postcss-load-config is to search configuration in the parent directory until it either find some matching file or reaches the home directory.
It will look for files named package.json or any of the postcss default configuration files.
This can result in unpredictable outcome of cloud builds and such. Moreover, if any of such files exists but is not readable/not a file, the error message does not narrow down the issue to the file causing the problem but reports a generic "failed to load PostCSS config" error.
The correct behavior should be to not search outside of the project.
To solve this issue it would be advisable to either

lobby to change the default postcss-load-config behavior (although it may be by design in their case)
workaround it at Vite level by passing the absolute path of the project dir as stopDir n the lilconfig options, (third parameter of postcssrc call at https://github.com/vitejs/vite/blob/dad7f4f5a51433c2ac91a8aed1a5556a1e3fc640/packages/vite/src/node/plugins/css.ts#L1574-L1574):

    result = postcssrc({}, searchPath, { stopDir }).catch((e) => {

If neither is possible it would advisable to generate an empty .postcssrc.json during the initial scaffolding (npm create vite), although this should propagate to other generators using Vite as well such as npm create vue
Reproduction
n/a
Steps to reproduce

mkdir -p parent/child
mkdir parent/package.json
cd parent/child
npm init es6 -y
npm i<EMAIL_ADDRESS>touch index.html
npx vite

System Info
System:
    OS: Linux 5.15 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
    CPU: (12) x64 AMD Ryzen 5 3600 6-Core Processor
    Memory: 12.84 GB / 15.60 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 20.11.1 - ~/.nvm/versions/node/v20.11.1/bin/node
    npm: 10.2.4 - ~/.nvm/versions/node/v20.11.1/bin/npm
  npmPackages:
    vite: ^5.2.2 => 5.2.2

Used Package Manager
npm
Logs
No response
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

related documentation:
https://github.com/postcss/postcss-load-config/blob/865523080f8f39559b3c6570fe1c70fc593eeb61/src/index.d.ts#L7
https://www.npmjs.com/package/lilconfig

I encountered this issue while debugging through vite code, this is not good,
if any of these files below are found in the os.user() dir (or parent dir thereof)  it will use that if it is not defined in project root
[
  "package.json",
  ".postcssrc",
  ".postcssrc.json",
  ".postcssrc.yaml",
  ".postcssrc.yml",
  ".postcssrc.ts",
  ".postcssrc.cts",
  ".postcssrc.js",
  ".postcssrc.cjs",
  ".postcssrc.mjs",
  "postcss.config.ts",
  "postcss.config.cts",
  "postcss.config.js",
  "postcss.config.cjs",
  "postcss.config.mjs",
]

+1 same problem for me using vitest for tests. To bypass this issue, you can change your postcss config to: postcss.config.json. It seems this file format is not loaded automatically by vitest.
BUT, unfortunately I am unable to do this in my cause because I have custom rules/imports in my postcss.config.cjs file and when I move to postcss.config.json I lose all of that functionality 😞 I suspect others will have this issue as well.
This has actually become a blocker for my team and we have continually failing tests in our pipelines because of this.


Rename test.js to superlogin.spec.js to match it's test suite name

When a unit test from tests.js failed it was unclear which file contained the test (hence this rename).

Please squash and rebase this together with #28 and I will merge.


Introduce batching logic in sync_task

Please briefly answer these questions:
Improving Xline throughput by batching in the high-load scenario. This pr is based on #217.  Close #220.

what problem are you trying to solve? (or if there's no problem, what's the motivation for this change?)
Improving Xline throughput by batching in the high-load scenario.

what changes does this pull request make?

are there any non-obvious implications of these changes? (does it break compatibility with previous versions, etc)
No

New batching is in pr #227


Working example

Hi, what is a working example on the bible dataset? Does the last commit works on this dataest?

Yes. I tested this dataset in b95b1682250d8b6d2932ce0c37f284e503552119.


Build fails with error : panic: runtime error: index out of range [0] with length 0

What happened?
I randomly get the following error when building an image using kaniko v0.19.0 in which I run a Webpack build :
Running webpack ...

panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]:
github.com/devspace-cloud/devspace/pkg/devspace/build/builder/kaniko.(*Builder).BuildImage.func2(0x0, 0x0)
        /Users/runner/runners/2.169.0/work/devspace/devspace/pkg/devspace/build/builder/kaniko/kaniko.go:340 +0x1e25
k8s.io/kubectl/pkg/util/interrupt.(*Handler).Run(0xc001988f90, 0xc001adad20, 0x0, 0x0)
        /Users/runner/runners/2.169.0/work/devspace/devspace/vendor/k8s.io/kubectl/pkg/util/interrupt/interrupt.go:103 +0x139
github.com/devspace-cloud/devspace/pkg/devspace/build/builder/kaniko.(*Builder).BuildImage(0xc0000fa690, 0xc001840690, 0x1f, 0xc001840660, 0x2f, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
        /Users/runner/runners/2.169.0/work/devspace/devspace/pkg/devspace/build/builder/kaniko/kaniko.go:196 +0x522
github.com/devspace-cloud/devspace/pkg/devspace/build/builder/helper.(*BuildHelper).Build(0xc0011d0300, 0x60eaf60, 0xc0000fa690, 0x6180fa0, 0x74b7040, 0x0, 0x0)
        /Users/runner/runners/2.169.0/work/devspace/devspace/pkg/devspace/build/builder/helper/helper.go:109 +0x29c
github.com/devspace-cloud/devspace/pkg/devspace/build/builder/kaniko.(*Builder).Build(0xc0000fa690, 0x6180fa0, 0x74b7040, 0xc00119e201, 0x0)
        /Users/runner/runners/2.169.0/work/devspace/devspace/pkg/devspace/build/builder/kaniko/kaniko.go:96 +0x53
github.com/devspace-cloud/devspace/pkg/devspace/build.(*controller).Build(0xc0011da3f0, 0xc000fdad4b, 0x6180fa0, 0x74b7040, 0x0, 0x0, 0x0)
        /Users/runner/runners/2.169.0/work/devspace/devspace/pkg/devspace/build/build.go:132 +0x677
github.com/devspace-cloud/devspace/cmd.(*DeployCmd).Run(0xc000146540, 0x617e3e0, 0x750d3e0, 0xc000dea000, 0xc00027a230, 0x0, 0x5, 0x0, 0x0)
        /Users/runner/runners/2.169.0/work/devspace/devspace/cmd/deploy.go:202 +0x12e9
github.com/devspace-cloud/devspace/cmd.NewDeployCmd.func1(0xc000dea000, 0xc00027a230, 0x0, 0x5, 0x0, 0x0)
        /Users/runner/runners/2.169.0/work/devspace/devspace/cmd/deploy.go:67 +0x64
github.com/spf13/cobra.(*Command).execute(0xc000dea000, 0xc00027a1e0, 0x5, 0x5, 0xc000dea000, 0xc00027a1e0)
        /Users/runner/runners/2.169.0/work/devspace/devspace/vendor/github.com/spf13/cobra/command.go:826 +0x460
github.com/spf13/cobra.(*Command).ExecuteC(0xc000dd0000, 0x750d3e0, 0xc000dd0000, 0xc0006eff90)
        /Users/runner/runners/2.169.0/work/devspace/devspace/vendor/github.com/spf13/cobra/command.go:914 +0x2fb
github.com/spf13/cobra.(*Command).Execute(...)
        /Users/runner/runners/2.169.0/work/devspace/devspace/vendor/github.com/spf13/cobra/command.go:864
github.com/devspace-cloud/devspace/cmd.Execute()
        /Users/runner/runners/2.169.0/work/devspace/devspace/cmd/root.go:85 +0xae
main.main()
        /Users/runner/runners/2.169.0/work/devspace/devspace/main.go:17 +0x3e

When I try building the image again, without changing anything, it works.
What did you expect to happen instead?
I expect the build to complete successfully.
How can we reproduce the bug? (as minimally and precisely as possible)
You might reproduce it by running a Webpack build when building a docker image using kaniko v0.19.0
Local Environment:

DevSpace Version: 4.12.2
Operating System: mac
Deployment method: helm

Kubernetes Cluster:

Cloud Provider: google
Kubernetes Version: v1.15.11-gke.3

/kind bug

@devscipline thanks for reporting! I'll fix this right away!

Should be fixed with v4.12.3


Possible error on Gradient method fin_diff

Information

Qiskit Terra version: 0.18.0 to 0.18.3 and main branch
Python version: 3.8
Operating system: MacOS

What is the current behavior?
Since the Gradient framework plot on the tutorial below has just one point, it shows empty:
https://qiskit.org/documentation/tutorials/algorithms/02_vqe_convergence.html
Steps to reproduce the problem
Run the tutorial: https://github.com/Qiskit/qiskit-tutorials/blob/master/tutorials/algorithms/02_vqe_convergence.ipynb
What is the expected behavior?
It should show multiple values in the plot.
Suggested solutions
vqe = VQE(ansatz, optimizer, callback=store_intermediate_result,
          gradient=Gradient(grad_method='fin_diff'),
          quantum_instance=QuantumInstance(backend=Aer.get_backend('statevector_simulator')))

if the Gradient, Gradient(grad_method='fin_diff') is changed to Gradient()  which usesparam_shift, it works.
I am not sure if fin_diff should not be used anymore in this case or if there is a bug there.

I think this was addressed by #6918, the referenced plot in the tutorial now does show the convergence correctly 🙂 Feel free to reopen if I missed something!


Failing tests for process.env types

Just wanted to make a PR showing that the types do not persist in the process.env. There is some documentation in the README that seems to indicate this should work.

ty


Add column "other" in questions.csv

Should we add a column "other" again in the questions.csv or is there a reason that this column has been removed?

Fixed


fix(Scalar.AspNetCore): use relative path for assets

I made a modification to the Scalar.AspNetCore package, so the asset is now included like this:
<script src="scalar.js"></script>

instead of:
<script src="/scalar/scalar.js"></script>

This adjustment allows the script to load correctly regardless of the app base path, making it more flexible in different hosting environments.
Or is this too risky? I'm uncertain.
Closes #3810

Makes sense!


Encoding concurrency

Here's an implementation that is threadsafe and performant. It uses the CopyOnWriteMap as the basis for a simple ComputingMap that is then used to implement the original ClassMap functionality. The original population isn't as pretty as it could be, but the parent class finding code at least been separated out into ClassAncestry.

There's a problem with this.  ClassMapTest fails here:
https://github.com/mongodb/mongo-java-driver/blob/encoding-concurrency/src/test/org/bson/util/ClassMapTest.java#L41
The problem is that any cached ancestry mappings have to be reset whenever a new mapping is added to the map.  Otherwise, you can get incorrect results, as the test illustrates.

OOI, why does "ant test" not report this (at least, it doesn't for me). I reproduce the failure only by running the test's main.

Not sure.  It fails for me:
new-host-3:mongo-java-driver jeff$ ant test
Buildfile: /Users/jeff/fresh/mongo-java-driver/build.xml
...
[testng] [TestResult: test STATUS:2 METHOD:org.bson.util.ClassMapTest.test()]
[testng] Exception :
[testng] -[Object] != [Serializable] -
[testng]   com.mongodb.util.MyAsserts._assertEquals(MyAsserts.java:99)
[testng]   com.mongodb.util.MyAsserts.assertEquals(MyAsserts.java:82)
[testng]   org.bson.util.ClassMapTest.test(ClassMapTest.java:41)
[testng]   sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) (with others of java.lang.reflect.* or sun.reflect.* omitted)
[testng]   org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:580) (with others of org.testng.* omitted)
...
BUILD FAILED
/Users/jeff/fresh/mongo-java-driver/build.xml:244: The tests failed.


[redis-ha][BUG] misleading hardAntiAffinity values

Describe the bug
The behavior of hardAntiAffinity, when is set to false, is really misleading.
The template redis-ha-statefulset.yaml for podAffinity looks like:
 podAntiAffinity:
    {{- if .Values.hardAntiAffinity }}
          requiredDuringSchedulingIgnoredDuringExecution:
            - labelSelector:
                matchLabels:
                  app: {{ template "redis-ha.name" . }}
                  release: {{ .Release.Name }}
                  {{ template "redis-ha.fullname" . }}: replica
              topologyKey: kubernetes.io/hostname
    {{- else }}
          preferredDuringSchedulingIgnoredDuringExecution:
            - labelSelector:
                matchLabels:
                  app: {{ template "redis-ha.name" . }}
                  release: {{ .Release.Name }}
                  {{ template "redis-ha.fullname" . }}: replica
              topologyKey: kubernetes.io/hostname
    {{- end }}
          preferredDuringSchedulingIgnoredDuringExecution:
            - weight: 100
              podAffinityTerm:
                labelSelector:
                  matchLabels:
                    app:  {{ template "redis-ha.name" . }}
                    release: {{ .Release.Name }}
                    {{ template "redis-ha.fullname" . }}: replica
                topologyKey: failure-domain.beta.kubernetes.io/zone
    {{- end }}

To Reproduce
Steps to reproduce the behavior:

set hardAntiAffinity to false for redis or haproxy
upgrade/install release using helm upgrade/helm install
check podAntiAffinity
See error

Expected behavior
I expect, by setting hardAntiAffinity to false, that requiredDuringSchedulingIgnoredDuringExecution to be changed with preferredDuringSchedulingIgnoredDuringExecution and nothing more.
Additional context
The resulted config will have podAntiAffinity set with two preferredDuringSchedulingIgnoredDuringExecution keys. First contains topologyKey: kubernetes.io/hostname and the last one contains topologyKey: failure-domain.beta.kubernetes.io/zone.
When the resulted yamls are applied to k8s cluster only the last one remains.
This behaviour is misleading because I expect that pods will be spawned on different nodes, if possible, but with topologyKey: failure-domain.beta.kubernetes.io/zone almost all pods may end up on the same node.

@beniamin This is something done way before I got involved but I'll review the hard/soft requirements and see if we can make these more explicit or inline with how k8s defines hard/soft.

@beniamin Finally have an opportunity to come back to this and I'm wondering if it's right or not... The point of the chart is to provide HA in Redis. Removing this would kind of take that away as scheduling would not be in a "HA" pattern.
Feel free to let me know your thoughts, but I don't think it's right to change this.


Fix Unwanted Horizontal Scrollbar In Sidebar

I found an unwanted horizontal scroll bar on bottom of the side bar (Both paper dashboard 1 and 2 and also their free versions). I digged into css files and found that the little triangle that shows active items is 1px outside of sidebar wrapper.

Hi, @sky93! Thank you for using our product and sorry for the late response. We will check this and after that, we will accept this pull request.
Regards,
Dragos

I believe the changes should've been made in a SASS file. Otherwise every time we compile from source, corrections in CSS files will be overwritten. Please correct me if I'm wrong.

I believe the changes should've been made in a SASS file. Otherwise every time we compile from source, corrections in CSS files will be overwritten. Please correct me if I'm wrong.


CLOUD-410 removed stack description

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/687/

https://github.com/sequenceiq/uluwatu/pull/135 needs to be merged after that

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/688/