Add note about Microsoft Store version of Python to README

Add "The Microsoft Store version of Python is not recommended." to README, before link to wiki with Windows installation instructions.
See https://github.com/openvinotoolkit/openvino_notebooks/issues/77

I think it does not work with the DLL error. Do we have a workaround for that?

IMO the workaround is: "use an installer version of Python". See also https://dev.to/naruaika/why-i-didn-t-install-python-from-the-microsoft-store-5cbd

Closing in favor of https://github.com/openvinotoolkit/openvino_notebooks/pull/92


Deploy only one replica of cvmfsplugin provisioner

The csi-provisioner sidecar container runs a lock on the repository causing 2/3 of the replicas to complain that it cannot acquire a lease. This may be node specific as I'm running them on a single node. It may be better to run this as a DaemonSet instead of a Deployment.
I0312 16:58:28.835703       1 leaderelection.go:326] lock is held by csi-cvmfsplugin-provisioner-5f5b77c4d-jtv74 and has not yet expired
I0312 16:58:28.835736       1 leaderelection.go:222] failed to acquire lease cvmfs/cvmfs-csi-cern-ch
I0312 16:58:35.554670       1 leaderelection.go:326] lock is held by csi-cvmfsplugin-provisioner-5f5b77c4d-jtv74 and has not yet expired
I0312 16:58:35.554704       1 leaderelection.go:222] failed to acquire lease cvmfs/cvmfs-csi-cern-ch
I0312 16:58:45.891097       1 leaderelection.go:326] lock is held by csi-cvmfsplugin-provisioner-5f5b77c4d-jtv74 and has not yet expired
I0312 16:58:45.891130       1 leaderelection.go:222] failed to acquire lease cvmfs/cvmfs-csi-cern-ch
I0312 16:58:54.057207       1 leaderelection.go:326] lock is held by csi-cvmfsplugin-provisioner-5f5b77c4d-jtv74 and has not yet expired
I0312 16:58:54.057240       1 leaderelection.go:222] failed to acquire lease cvmfs/cvmfs-csi-cern-ch
I0312 16:59:02.419903       1 leaderelection.go:326] lock is held by csi-cvmfsplugin-provisioner-5f5b77c4d-jtv74 and has not yet expired
I0312 16:59:02.419934       1 leaderelection.go:222] failed to acquire lease cvmfs/cvmfs-csi-cern-ch

This PR scales the replicas down to 1 and prevents this lock related error.

Hi.
With which version do you see this? Here's an example running multiple replicas in one node:
csi-cvmfsplugin-provisioner-5849479885-ccmdq    3/3     Running   0          3d20h   <IP_ADDRESS>      rocha-cvmfs-001-7pmh3xmqmrd7-node-0     <none>           <none>
csi-cvmfsplugin-provisioner-5849479885-nzxdk    3/3     Running   0          3d20h   <IP_ADDRESS>       rocha-cvmfs-001-7pmh3xmqmrd7-node-0     <none>           <none>
csi-cvmfsplugin-provisioner-5849479885-ptw29    3/3     Running   1          3d20h   <IP_ADDRESS>       rocha-cvmfs-001-7pmh3xmqmrd7-node-0     <none>           <none>

I've been seeing it with the current version in this repo. The plugin provisioner pods will run but the logs for the poivsioner container in two of the pods will endlessly spew the error above.
kubectl logs csi-cvmfsplugin-provisioner-5849479885-ccmdq -n cvmfs -c csi-provisioner

Ok. I can see those logs as well here, will check it out - i misunderstood that they were not starting.
Setting one replica is likely ok, but we should set anti-affinity as well. I'll double check how other csi drivers are handling this.
Thanks.

Thanks for looking into this!
Perhaps a Kubernetes DaemonSet could be used to handle the replication?


Specify loggers for sentry handler

Hello everyone!
We recently replaced raven with new sentry-sdk. Raven was configured through standard library's logging module configuration. We were specifying the loggers to which sentry's handler would be attached. So, sentry used to post messages from our specified loggers and all other uncaught exceptions through sys.excepthook.
In sentry-sdk, I can't find any such option. So, we are using before_send in the new sdk.
def before_send(event, hint):
    logger = event.get('logger')
    if logger and logger not in specific_loggers:
        return None
    return event

Is it the correct way to do things in the new sdk ?
Thanks!

That's a fine way to do it. On https://docs.sentry.io/platforms/python/logging/ you will find references to two logging.Handlers that you can register explicitly too instead of using the logging integration. This is useful if your logging setup is very complex and you want to make the new system work similarly to Raven. But I think before_send is quite good for this.
Does this help?

I see. Thanks for the help!


Cant not create ticket via Email

Thanks for this module. It's very useful. But, if it have function that auto create, update ticket via email, it will be perfect.

You might be interested in the experimental v1 branch, it has this function


Fix typo in Calibration questions section

Changes

Fix typo in Calibration questions section: "even if they're not particularly comfortable with that technology"

Thanks!


Changing the eviction thresholds for kubelet.

What this PR does / why we need it:
The current/default soft and hard eviction thresholds are low. Increasing it to 1.5GB and 1GB respectively for machines that have memory more than 8GB, and to 10% and 5% respectively for machines that have memory less than 8GB
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note:

Having a percentage for larger machines would result in very high thresholds for very large machines.
For example, 5%-10% for a 120GB memory machine would result in threshold of 6GB-12GB.
And at the same time, having constant value of 1GB for threshold for small machines such as with 5-8GB memory would result in very less memory available for workload.
Without actual test numbers, it would be difficult to judge the right numbers. We can iteratively change these based on our observations from clusters.

In case you wonder why I ask @ggaurav10 @amshuman-kr, here my thoughts:

We are modifying something dangerous here, so let's be certain that what we do really improves the situation - in all cases, e.g. for all machine types, small and large. We can not afford destabilisations that harm our reputation.
Are we certain that kube-reserved, https://github.com/gardener/gardener/blob/master/charts/shoot-cloud-config/charts/original/templates/kubelet/_kubelet.flags#L35 and https://github.com/gardener/gardener/blob/master/charts/shoot-cloud-config/charts/original/templates/kubelet/_kubelet-config-file#L66-L68, are right? Maybe we have not only or not at all an eviction, but a misconfiguration problem here? docker, kubelet, daemons must all fit in (now that you have also increased the memory for the daemons, this should be reflected, shouldn't it? - however, I have not seen any change there?)
It would be quick to test I guess:

Have a small machine
Have a large machine
Take a look at the memory in use without pods and with 110 pods loaded

Larger machines that run more pods may mean, that things average out (only 1-2 of 30-40 spike up)
On the other hand, it could also mean, that more pods exceed their allotted memory

Closing in favour of #592 (these changes are also part of this PR).


Please fix CVEs

twistlock.txt
Image                                 ID                  CVE                 Package                                        Version             Severity    Status                               CVSS

gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2016-3720       com.fasterxml.jackson.core_jackson-core        2.6.7               critical                                         9.8
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2018-19361      com.fasterxml.jackson.core_jackson-databind    <IP_ADDRESS>             critical    fixed in 2.9.8                       9.8
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2018-19360      com.fasterxml.jackson.core_jackson-databind    <IP_ADDRESS>             critical    fixed in 2.9.8                       9.8
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2018-7489       com.fasterxml.jackson.core_jackson-databind    <IP_ADDRESS>             critical    fixed in 2.9.5, <IP_ADDRESS>, <IP_ADDRESS>    9.8
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2017-15718      org.apache.hadoop_hadoop-hdfs                  2.7.3               critical                                         9.8
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2018-14721      com.fasterxml.jackson.core_jackson-databind    <IP_ADDRESS>             critical    fixed in 2.9.7                       10
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2018-14718      com.fasterxml.jackson.core_jackson-databind    2.4.0               critical    fixed in 2.9.7                       9.8
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2017-15095      com.fasterxml.jackson.core_jackson-databind    2.4.0               critical    fixed in 2.9.1, 2.8.10               9.8
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2018-7489       com.fasterxml.jackson.core_jackson-databind    2.4.0               critical    fixed in 2.9.5, <IP_ADDRESS>, <IP_ADDRESS>    9.8
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2018-14720      com.fasterxml.jackson.core_jackson-databind    <IP_ADDRESS>             critical    fixed in 2.9.7                       9.8
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2016-3720       com.fasterxml.jackson.core_jackson-core        2.4.0               critical                                         9.8
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2018-14719      com.fasterxml.jackson.core_jackson-databind    <IP_ADDRESS>             critical    fixed in 2.9.7                       9.8
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2018-14718      com.fasterxml.jackson.core_jackson-databind    <IP_ADDRESS>             critical    fixed in 2.9.7                       9.8
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2017-15095      com.fasterxml.jackson.core_jackson-databind    <IP_ADDRESS>             critical    fixed in 2.9.1, 2.8.10               9.8
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2018-19362      com.fasterxml.jackson.core_jackson-databind    <IP_ADDRESS>             critical    fixed in 2.9.8                       9.8
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2016-7051       com.fasterxml.jackson.core_jackson-core        2.6.7               high        fixed in 2.8.4, 2.7.8                8.6
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2018-8012       org.apache.zookeeper_zookeeper                 3.4.6               high        fixed in 3.4.10                      7.5
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2018-5968       com.fasterxml.jackson.core_jackson-databind    <IP_ADDRESS>             high        fixed in <IP_ADDRESS>                     8.1
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2016-7051       com.fasterxml.jackson.core_jackson-core        2.4.0               high        fixed in 2.8.4, 2.7.8                8.6
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2016-5017       org.apache.zookeeper_zookeeper                 3.4.6               high        fixed in 3.5.3, 3.4.9                8.1
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2019-16335      com.fasterxml.jackson.core_jackson-databind    2.4.0               high        fixed in 2.9.10                      7.5
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2019-14540      com.fasterxml.jackson.core_jackson-databind    2.4.0               high        fixed in 2.9.10                      7.5
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2017-5637       org.apache.zookeeper_zookeeper                 3.4.6               high                                             7.5
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2017-9735       org.eclipse.jetty_jetty-io                     9.3.24.v20180605    high                                             7.5
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2016-6811       org.apache.hadoop_hadoop-hdfs                  2.7.3               high        fixed in 2.7.4                       8.8
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2018-5968       com.fasterxml.jackson.core_jackson-databind    2.4.0               high        fixed in <IP_ADDRESS>                     8.1
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2019-15847      gcc                                            8.3.0-r0            high                                             7.5
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2019-16335      com.fasterxml.jackson.core_jackson-databind    <IP_ADDRESS>             high        fixed in 2.9.10                      7.5
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2019-14540      com.fasterxml.jackson.core_jackson-databind    <IP_ADDRESS>             high        fixed in 2.9.10                      7.5
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2017-3166       org.apache.hadoop_hadoop-hdfs                  2.7.3               high                                             7.8
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2018-1296       org.apache.hadoop_hadoop-hdfs                  2.7.3               high                                             7.5
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2018-8029       org.apache.hadoop_hadoop-hdfs                  2.7.3               high                                             8.8
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2019-10086      commons-beanutils_commons-beanutils            1.9.3               high                                             7.3
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2018-10237      com.google.guava_guava                         11.0.2              medium      fixed in 24.1.1                      5.9
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2018-1000873    com.fasterxml.jackson.core_jackson-databind    <IP_ADDRESS>             medium      fixed in 2.9.8                       6.5
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2018-1000873    com.fasterxml.jackson.core_jackson-databind    2.4.0               medium      fixed in 2.9.8                       6.5
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2019-10241      org.eclipse.jetty_jetty-io                     9.3.24.v20180605    medium                                           6.1
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2019-15133      giflib                                         5.1.4-r2            medium      fixed in 5.1.9-r0                    6.5
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2019-0201       org.apache.zookeeper_zookeeper                 3.4.6               medium                                           5.9
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2019-16168      sqlite                                         3.28.0-r0           medium                                           5
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2019-1563       openssl                                        1.1.1b-r1           medium                                           4.3
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2019-2745       java                                           1.8.0_212           medium                                           5.1
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2019-2762       java                                           1.8.0_212           medium                                           5.3
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2017-15713      org.apache.hadoop_hadoop-hdfs                  2.7.3               medium      fixed in 2.8.3, 2.7.5                6.5
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2019-1549       openssl                                        1.1.1b-r1           medium                                           5
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2018-10237      com.google.guava_guava                         14.0.1              medium      fixed in 24.1.1                      5.9
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2019-2816       java                                           1.8.0_212           medium                                           4.8
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2019-2816       java                                           1.8.0_212           medium                                           4.8
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2019-2769       java                                           1.8.0_212           medium                                           5.3
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2019-2745       java                                           1.8.0_212           medium                                           5.1
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2019-2762       java                                           1.8.0_212           medium                                           5.3
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2019-2769       java                                           1.8.0_212           medium                                           5.3
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2019-2786       java                                           1.8.0_212           low                                              3.4
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2019-2842       java                                           1.8.0_212           low                                              3.7
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2019-2842       java                                           1.8.0_212           low                                              3.7
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2019-2786       java                                           1.8.0_212           low                                              3.4
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2019-1552       openssl                                        1.1.1b-r1           low                                              3.3
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2019-1547       openssl                                        1.1.1b-r1           low                                              1.9
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2019-2766       java                                           1.8.0_212           low                                              3.1
gcr.io/spark-operator/spark:v2.4.4    4822c688a8493e9c    CVE-2019-2766       java                                           1.8.0_212           low                                              3.1

these are libraries used and introduced by apache spark itself, so you need to file that issue there. The spark operator image is based on the official spark image. spark-submit and therefore the spark distribution including k8s resource manager code will be used from spark operator


Bug in live version

Describe the bug
Uploading a file with the same file name as the previous file loaded (but different contents) does not load the new contents.

Hello Andy,
Thanks for the bug report, but I am having problems reproducing it...
My attempt:

make a copy of an existing file into a new subdir (same filename)
only change the name of the first event in the copied file (from connection_started to connection_started2) and nothing else
load the original file via file upload in qvis
load the changed file via file upload in qvis
in the sequence diagram, both are visible in the dropdown. Selecting either will show the appropriate file with the different event names.

Could you give me more info on your steps? Are you loading 2 different files via the same URL somehow maybe? Or are you using a different visualization than the sequence diagram (though that shouldn't matter in theory)?
Thanks!

Hi, sorry for the delay in response. User confusion on my part.

Are you loading 2 different files via the same URL somehow maybe?

Yes, I'm working on adding more events, so I had a foo.qlog file, I displayed it in qvis, added some more events, re-ran a connection, and then re-uploaded (via "Option 2: Upload a file") the exact same filename that had been overwritten with new contents.
I was expecting reloading the same file would immediately replace the sequence with the new info, but qvis adds it to the dropdown but still shows the original data until the new trace is selected in the dropdown (which makes sense.)
So yeah, I get how things work a little better now, so I'm going to close this issue.


Drone won't fly

Never see the drone fly:

Runtime output
/home/hbzhang/anaconda3/envs/py37/lib/python3.7/site-packages/quaternion/numba_wrapper.py:20: UserWarning:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Could not import from numba, which means that some
parts of this code may run MUCH more slowly.  You
may wish to install numba.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
warnings.warn(warning_text)
Connected!
Connected!
Connected!
Controller planning for first goal.
('Planning finished for: ', 0)
Race Started.
Started odometry callback thread
Advancing, Constraint at  1  speed  None  checks:  (0.405, 8.0)  goal at  [-5.31999779e+01 -1.65400009e+02  1.57890835e+01  1.00000000e+00
-3.87750980e-06  0.00000000e+00]
Controller needs replan due to finished goal.
Started Control thread
Exception in thread Thread-2:
Traceback (most recent call last):
File "/home/hbzhang/anaconda3/envs/py37/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/home/hbzhang/anaconda3/envs/py37/lib/python3.7/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "daniel.py", line 349, in apply_control
input = self.mpc_control.getInput(drone_state)
File "/home/hbzhang/opt/race/AirSimNeurIPS/Daniel/control.py", line 136, in getInput
X, U = self.getFullMpcOutput(state)
File "/home/hbzhang/opt/race/AirSimNeurIPS/Daniel/control.py", line 158, in getFullMpcOutput
np.transpose(np.tile(self.Q,self.horizon)), self.Qf, 0)
ValueError: Expecting double matrix 1x4 for x0
Planning finished
Deviating from path: cur min:  3.270086270123526
Shortest reference at:  [-6.76222300e+01 -1.65742261e+02  2.05628951e+01 -5.37410072e-01
-6.29929323e-01  5.12515020e-01 -2.27393528e-01  3.49715995e+00
7.47523120e+00  2.75829935e+01  5.60843636e+00  8.50086349e-01
-8.33360600e-01 -5.69350357e-02]
Now at at:   {   'x_val': -68.05735778808594,
'y_val': -166.64027404785156,
'z_val': 17.448781967163086}
Controller needs replan due to deviation, enter stablizing mode.
Planning finished.
Deviating from path: cur min:  2.0030785706223586
Shortest reference at:  [-6.80399974e+01 -1.66492098e+02  1.89346437e+01  2.18921756e-01
-8.20261498e-01  5.08268610e-01 -1.44593773e-01  2.76207593e-01
2.87705108e+00  2.98159579e+01  7.43465724e+00  5.50776434e-01
-4.81496129e-01 -1.72444656e-02]
Now at at:   {   'x_val': -67.86662292480469,
'y_val': -167.6032257080078,
'z_val': 17.277036666870117}
Controller needs replan due to deviation, enter stablizing mode.
Planning finished.
Controller needs replan due to reference too short.
Planning finished.

you probably didn't build the MPC code. It needs to be generated from ACADO.
Update this script and change to corresponding paths.
mpc_control/codegen.sh

I have run the code. The code has error.
I used another source. The MPC controller looks installed correctly.
Import acado works. But when I run the test code for MPC (test.py). It complains the following
ValyuError: expecting double matrix 1X4 for x0

I have run the code. The code has error.
I used another source. The MPC controller looks installed correctly.
Import acado works. But when I run the test code for MPC (test.py). It
complains the following
ValyuError: expecting double matrix 1X4 for x0
On Mon, Mar 23, 2020 at 5:09 PM Jiadong Guo<EMAIL_ADDRESS>wrote:

you probably didn't build the MPC code. It needs to be generated from
ACADO.
Update this script and change to corresponding paths.
mpc_control/codegen.sh
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/JD-ETH/AirSimNeurIPS/issues/1#issuecomment-602857314,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AABSHVIYJOPRY72XKWRG73LRI7FYNANCNFSM4LSCSIQA
.

Traceback (most recent call last):
File
"/Users/zhangh/opt/classes/2020/drone/AirSimNeurIPS/mpc_control/quadrotor_mpc_codegen/test.py",
line 46, in
X, U = acado.mpc(0, 1, x0,X,U,Y,yN, np.transpose(np.tile(Q,T)), Qf, 0)
ValueError: Expecting double matrix 1x4 for x0
When I run your test.py
import numpy as np
import acado
import time
Time horizon
T=40
Number of differential state variables.
NX=10
Number of control inputs.
NU=4
Number of input reference.
NY=14
Number of final stage cost.
NYN = 10
Initial state.
x0 = np.zeros((1,NX))
x0[0,3] = 1.0
Unknowns.
X = np.zeros((T+1, NX))
U = np.zeros((T,NU))
Reference hover state with input. Move to x equals 2.
xref = np.zeros((1,NX))
xref[0,2] = -1.0
xref[0,3] = 1.0
Y=np.zeros((T,NY))
for i in range(0,T):
Y[i,2]=-1
Y[i,3]=1
Y[i,10]=1
Final value.
yN=np.zeros((1,NYN))
yN[0,2] = -1
yN[0,3] = 1
Q = np.diag([100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 10.0,
10.0, 10.0, 1.0, 1.0, 1.0, 1.0])
Qf = Q[:10, :10]
counter = 0
x0 [1, NX]
X [N+1, NX]
U [N, NU]
Y [N, NY]
yN [1, NYN]
for i in range(0,1000):
X, U = acado.mpc(0, 1, x0,X,U,Y,yN, np.transpose(np.tile(Q,T)), Qf, 0)
if counter % 1000 == 0:
print(counter)
counter = counter + 1
print('U', U)
print('X', X)
On Mon, Mar 23, 2020 at 6:22 PM Hongbo Zhang<EMAIL_ADDRESS>wrote:

I have run the code. The code has error.
I used another source. The MPC controller looks installed correctly.
Import acado works. But when I run the test code for MPC (test.py). It
complains the following
ValyuError: expecting double matrix 1X4 for x0
On Mon, Mar 23, 2020 at 5:09 PM Jiadong Guo<EMAIL_ADDRESS>wrote:

you probably didn't build the MPC code. It needs to be generated from
ACADO.
Update this script and change to corresponding paths.
mpc_control/codegen.sh
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/JD-ETH/AirSimNeurIPS/issues/1#issuecomment-602857314,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AABSHVIYJOPRY72XKWRG73LRI7FYNANCNFSM4LSCSIQA
.

you need to adapt the pathing in the bash file so that the python binding builds correctly.

Could you run the python Daniel/test.py file? Not sure the test.py you tried is still up to date.
Where did you generate the acado code? The source file I use is modifed from the original version.

I believe I have missed some information about codegen, please take a look at the Installation guideline section on the project page again.

cd ../../ACADOtoolkit/build
make
cd ../../ACADOtoolkit/examples/code_generation/mpc_mhe/
!!! This file does not exist!!!
./code_generation_quadrotor_model_thrustrates
!!! This file does not exist!!!
cd ~/competition/KiteRunner/mpc_control
rm -rf quadrotor_mpc_codegen
mv ../../ACADOtoolkit/examples/code_generation/mpc_mhe/quadrotor_mpc_codegen ./
cp -r ../../rpg_mpc/externals/qpoases quadrotor_mpc_codegen/
cp python/* quadrotor_mpc_codegen/
cd quadrotor_mpc_codegen
python3 setup.py build install --force
cd ..

code_generation_quadrotor_model_thrustrates is a binary that should be produced by acado after the build

modify cd ~/competition/KiteRunner/mpc_control to cd ../../../AirSimNeuRIPS/mpc_control

if code_generation_quadrotor_model_thrustrates  is not there that means you didn't copy the file to that folder

Where is the code_generation_quadrotor_model_thrustrates?
I do not find that there is such file...

Can you provide all the files (ACADOtoolkit and rpg_mpc) into one folder so that I can easily compile and do pip install?

No the source file. the code_gen is a binary that you have to build on your machine.
Please read the instruction carefully on the README. look at this:
 mv mpc_control/quadrotor_model_thrustrates.cpp ../../ACADOtoolkit/examples/code_generation/mpc_mhe/
What do you need to do pip install for ?

If i have time or if there is more interest I will consider adding submodules

mv ../../ACADOtoolkit/examples/code_generation/mpc_mhe/quadrotor_mpc_codegen ./
there is no /quadrotor_mpc_codegen folder under mpc_mhe folder!!

You need to build first.
cd ../../ACADOtoolkit/build
make

In the script.

If you don't build there is no generated code. Please instead of asking for help immediately, take some time to think about what's happening..

Thanks. problem solved setup.py can be executed and install successfully for ACADO python interface. Thanks, I am new to this framework. I guess there are many small details to explore.
But the problem still persists, complaining about the matrix dimension problem.  Do you get the same complain for the following test.py python code for MPC?
Traceback (most recent call last):
File
"/Users/zhangh/opt/classes/2020/drone/AirSimNeurIPS/mpc_control/quadrotor_mpc_codegen/test.py",
line 46, in
X, U = acado.mpc(0, 1, x0,X,U,Y,yN, np.transpose(np.tile(Q,T)), Qf, 0)
ValueError: Expecting double matrix 1x4 for x0
When I run your test.py
import numpy as np
import acado
import time
Time horizon
T=40
Number of differential state variables.
NX=10
Number of control inputs.
NU=4
Number of input reference.
NY=14
Number of final stage cost.
NYN = 10
Initial state.
x0 = np.zeros((1,NX))
x0[0,3] = 1.0
Unknowns.
X = np.zeros((T+1, NX))
U = np.zeros((T,NU))
Reference hover state with input. Move to x equals 2.
xref = np.zeros((1,NX))
xref[0,2] = -1.0
xref[0,3] = 1.0
Y=np.zeros((T,NY))
for i in range(0,T):
Y[i,2]=-1
Y[i,3]=1
Y[i,10]=1
Final value.
yN=np.zeros((1,NYN))
yN[0,2] = -1
yN[0,3] = 1
Q = np.diag([100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 10.0,
10.0, 10.0, 1.0, 1.0, 1.0, 1.0])
Qf = Q[:10, :10]
counter = 0
x0 [1, NX]
X [N+1, NX]
U [N, NU]
Y [N, NY]
yN [1, NYN]
for i in range(0,1000):
X, U = acado.mpc(0, 1, x0,X,U,Y,yN, np.transpose(np.tile(Q,T)), Qf, 0)
if counter % 1000 == 0:
print(counter)
counter = counter + 1
print('U', U)
print('X', X)

this test file is outdated. please try the Daniel/test.py instead and check if a visualization appears.

Thanks. The test file under Daniel works. I have another issue kind of related to this issue, but I want to keep it separate.  I will file another issue.

Will then consider this closed.


add representation flow

Representation Flow in paddlepaddle

 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.qdriving seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Remove extra HeadObject call in from_prefix

Description

Ensure HeadObject is not explicitly called when seeking to the end of a file when dataset is created with from_prefix
Rename S3BucketKey to S3BucketKeyData
Change signature of iter(S3BucketIterable) to Iterator[S3BucketData] instead of Iterator[S3Reader]

Additional context

No breaking changes
Related items

https://github.com/awslabs/s3-connector-for-pytorch/issues/133
Testing

Extra tests added which verify that head_object is not called when seeking to the end of an S3Object when created using from_prefix for either dataset.

By submitting this pull request, I confirm that my contribution is made under the terms of BSD 3-Clause License and I agree to the terms of the LICENSE.

I'm planning on running some benchmarking on this to validate this has performance improvements in real-world usage


Performance guidance grammar/length cleanup

Cleaned up some grammar inconsistencies, jargon, redundancies.

Docs Build status updates of commit 37ca627:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

mixed-reality-docs/understanding-performance-for-mixed-reality.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

@Troy-Ferrell FYI

Docs Build status updates of commit 4d86ac8:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

mixed-reality-docs/understanding-performance-for-mixed-reality.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Docs Build status updates of commit 4d86ac8:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

mixed-reality-docs/understanding-performance-for-mixed-reality.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Docs Build status updates of commit aad0b4f:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

mixed-reality-docs/understanding-performance-for-mixed-reality.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Docs Build status updates of commit 4c76ec6:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

mixed-reality-docs/understanding-performance-for-mixed-reality.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Docs Build status updates of commit 61e4ed1:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

mixed-reality-docs/understanding-performance-for-mixed-reality.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Create a Notification Factory class to support sending messages of various formats to Discord

Apart from the ActivityLog class, which logs every action (non-GET) to the DB, we would also like to send notifications of certain events to a corresponding Discord channel.
Each event would have a message format(template), a discord channel, args to fill the message.
The interface (if being built) should support an option to DM a particular user on Discord.
There may be an extension of the Notification Factory to calendar / email notifications in the future. Ensure that the interface is appropriately modeled to account for other channels.
Reference:
https://dev.to/akhilarjun/factory-pattern-java-design-patterns-5h33

Interactions with Discord

IRC Server is integrated with a Discord Bot. This bot contains a BOT_TOKEN

What are the various features of RLIProject?

Login

User tried logging in without joining server

User Profile

Share user's gaming ids
Notify that we have a new member with these roles

Championship Standings
All Race Results
Race Result
Rule book
Our Team
About Us
League Signups

New signup with link
Signups have been opened / closed (if done by coordinator through website)
Signup edit (if after a while)

Allot Drivers

New driver alloted

Result Parsing (ACC & AC)
Result Upload

Store results backup

Create Race Reports

A new report was created

View / Edit Reports

Reports were edited

Counter-report

A counter report was created

Publish Stewards Verdicts

Verdicts were published
Correction was made

What are the various tables in ircproject Database?

Circuits
Constructors
Drivers

Updating alias

Points
Races

When is a race scheduled? Provide its race details .(Bot Command)
A race was created by a coordinator, with its scheduled date & time
Stream link was added to the race. (Why is this notification needed?)

Reports

A report was created. Post in season's reporting channel
Edit / Delete the reported message
Counter report was created to a report.
Verdicts were published
Verdict correction was made
Quali / Race bans to be served

Results

Race result was uploaded.
Race results were updated via penalties. (Redundant)

Roles
Seasons

Reporting window is closed.

Series

New member in server with these roles (Redundant)

Signups

New league signup with link
Signup modified (if not edited in a while)
Partial signup?

Users

New member in server with roles and user profile link

Other use cases

Any changes made to the DB by an IRC team through the website / bot.
Notify admins of server exceptions
Notify admins of host health issue & server status

APIs to integrate

Create message
Message object
Edit message
Delete message
Start thread from message
Add thread member

References

Setting up discord as a log reporter
Spatie Laravel discord alerts
Laravel queues
Laravel discord notification channel gist
Laravel notification channels
Laravel jobs
Laravel notifications
Laravel notifications guide

Task List

[ ] Thread APIs
[ ] Deal with retries
[ ] Error handling
[ ] Dispatch to job with arguments
[ ] Modify deploy.sh script to notify admins with named arguments
[ ] Testing
[ ] (Optional) Add an option for a callback function after executing job.

We should also see how to maintain a channel ID mapping in our database so each module does not have to pass the discord channel ID manually and should pass a reference of that channel ID
Also if any notification is estimitated to have high volumes of calls to discord for sending message or running any events, ratelimits have to be taken into consideration as discord will have dynamic rate limit values for each API which is returned in a response header as X-RateLimit-Limit: 5
Refer: Discord Rate Limits

Why is there a need for channel ID mapping? Can you provide any cons to the channel IDs being saved and retrieved from a model directly?
As for rate limits, the HTTP client we are using will take care of 429 and 5xx responses from discord, through retries. We should log every one of these errors, such that we can analyze any bottlenecks in the future.


Initial pass at supporting nasm

When targetting the Windows msvc environment, cc currently assumes you are compiling on a Windows host and attempts to find specifically named assemblers based on the target architecture when compiling .asm files, which obviously doesn't work great when you aren't on a windows host. This adds initial support for having a AS environment variable where the user can specify the assembler they actually want to use, with explicit support for nasm, which can assemble x86 and x86_64 windows targets from windows and non-windows hosts.

Thanks for this! I presume though that the syntaxes for nasm/windows are probably incompatible? If that's the case does an env var make sense for this if it's something that always has to be configured?
Additionally would it be possible to add a test or two to CI for this?

Yes, unfortunately the syntaxes are incompatible so it's not a drop in replacement, which is why I added this as a draft at first.
Thinking a bit more on it, maybe it would be better to just have a convenient mechanism off of Build or possibly Tool that can tell the user "I want Microsoft assembly" vs eg GAS, as I've fixed up several crates that have both Microsoft and GAS for targeting windows with either MSVC or GNU environments (though definitely not all), but they end up writing incorrect build scripts that only take TARGET and not HOST into account, as when cross compiling with clang-cl, it's the MSVC compiler from the perspective of cc-rs, but they need to use the GAS files instead of the MASM ones since the Microsoft assemblers aren't available.
Ultimately, it would be nice if clang/LLVM added support for MASM, I'm just not going to hold my breath. https://bugs.chromium.org/p/chromium/issues/detail?id=762167

Hm ok, well if it's a syntactical thing it seems like that should be an API on Build rather than an env var, but otherwise w/e is needed to compile nasm seems ok by me.

@Jake-Shadle are you still wanting to work on this or is the new llvm-ml a solution?

Is that actually official now? I should have closed this regardless, most projects that have asm also have a GAS version for windows-pc-gnu so needing to cross compile masm is rarely an issue.


Ubuntu 18.04 Xrdp is not running without the user is logged in

Hello,
I want to use xrdp with Jetson Nano, but I have issue where the xrdp not working if I didn't loggedin, And when the user is logout, I am getting an error message "Remote access to the server is not enabled ..."
Is there any solution, please.

Closing this - no-one's looked at it in 4 years, and things have moved on a bit since then.


Adding  Video Games track

I have put all of the videos in the Video Games playlist,  plus 115 and 174.

Fantastic! @jasontheillustrator this one will need a thumbnail image! https://deploy-preview-728--codingtrain.netlify.app/tracks/games

Ok, I'll get that taken care of.


Add short image name in Source and Service fields

What does this PR do?
Set service and source to the docker short image name when container_collect_all flag is enabled and no label or annotation is defined

Codecov Report

Merging #2704 into master will decrease coverage by 0.05%.
The diff coverage is 6.34%.

@@            Coverage Diff             @@
##           master    #2704      +/-   ##
==========================================
- Coverage   56.68%   56.62%   -0.06%
==========================================
  Files         380      380
  Lines       24126    24148      +22
==========================================
- Hits        13675    13674       -1
- Misses       9537     9560      +23
  Partials      914      914

Impacted Files
Coverage Δ

pkg/logs/input/docker/launcher.go
0% <0%> (ø)
:arrow_up:

pkg/logs/input/docker/container.go
67.44% <0%> (-21.79%)
:arrow_down:

pkg/logs/config/config.go
83.07% <100%> (ø)
:arrow_up:

pkg/logs/input/docker/tailer.go
12.76% <11.11%> (+1.17%)
:arrow_up:

pkg/forwarder/transaction.go
82.9% <0%> (-2.57%)
:arrow_down:

pkg/util/kubernetes/hpa/processor.go
86.76% <0%> (-0.38%)
:arrow_down:

pkg/util/kubernetes/hpa/hpa.go
100% <0%> (ø)
:arrow_up:

pkg/logs/auditor/auditor.go
71.83% <0%> (+0.7%)
:arrow_up:

pkg/secrets/secrets.go
72.04% <0%> (+2.15%)
:arrow_up:

@ajacquemot I tried implementing it in the launcher of instead of the tailer
There's a need for another hack for the status. Personally I prefer the first solution at the commit 33b805a Nits: rename originSource to containerSource, even though ideally I would prefer to have the logic in the launcher
There might be some refactoring to do after 6.8


Set connection to fail when all slaves init connections error

fix #3340

Thanks for contribution!

Thanks for contribution!


Assignment 1

You have to make your name directory inside the submission directory. Please follow the instructons given here and then proceed.

FOLLOW INSTRUCTIONS here


Alerting

I wonder how alerts (health checks) work with this plugin.
It's meant to be a warmup tool, but I don't see the point of using both warmup and heath check as different tools. Since the lambda is hit during the warmup, it's the perfect time to send an alert if something isn't right.
I couldn't find any option regarding alerts, but I may have missed something.
My need is that I currently use AWS HealthChecks to both warmup and perform heath checks. But I don't like it for the following reasons:

It's not really flexible. HealthCheck forces at least to send calls from 3 A-Z and the maximum delay is 30 sec. Those two limitations lead to an average of 1 call every 10 secs, at least.
It's costly. (not so much, but there are many hidden option at $1 kinda meant to be enabled by mistake)
I didn't succeed to automatically configure alerts using the serverless framework, I had to configure them manually, and that doesn't work anymore from the aws console for some reason

In short, I'm looking for a replacement. And this plugin seems to be the closest to what I seek.
But I am not sure about what happens if a lambda returns a 5xx error, can we be warned somehow? The goal is to eventually get an alert in a slack channel stating that the service is down.

Hi @Vadorequest ,
Do you mean ELB HealthChecks or what kind of HealthChecks?
This plugin just logs the responses from the lambdas to CloudWatch (see https://github.com/FidelLimited/serverless-plugin-warmup/blob/master/src/index.js#L346).
You can set up a CloudWatch alarm for errors if you want. you can use the serverless resource section or even https://github.com/ACloudGuru/serverless-plugin-aws-alerts.
I'm open for suggestions on how to improve this 🙂

Hi @juanjoDiaz  :)
I meant Route53 HealthChecks, I wasn't aware there was multiple kind of Health checks on AWS 😅
https://console.aws.amazon.com/route53/healthchecks/home

Is there any example using https://github.com/ACloudGuru/serverless-plugin-aws-alerts by any chance?

Regarding pricing, I just compared AWS Route53 HealthCheck vs AWS Lambda:

https://aws.amazon.com/route53/pricing/?nc1=h_ls
https://aws.amazon.com/lambda/pricing/?nc1=h_ls

Route 53:

$0.50* per health check / month
$1.00 / month per optional feature:

HTTPS
String Matching
Fast Interval
Latency Measurement

Monthly charge: $1.50 (with HTTPS option)

Lambda: (using 128Mo RAM)

1 million free/month
$0.0000002 per request
$0.000000208 per 100ms

Monthly compute charges (monthly): 0.51 USD (no free tiers, with 1 250 000 requests a month)

I simulated with 1 250 000 requests/months because that's how many requests Route53 HealthChecks send at least a month (super optimised), with only 3 datacenters and 30 sec delay

Simulation indicates that using Lambda instead of AWS Route53 HealthChecks cost around 3 times less

Hi @Vadorequest ,
Sorry for the delay responding.
Could you clarify what your question or request is?
I'm not very clear at the moment 🙂

Hi @juanjoDiaz :)
Currently, I'm using AWS Route53 HeathChecks to perform warmups (I don't use this plugin yet), but as it lacks configuration capabilities, I'm looking for something else (and cheaper, if possible).
This plugin seems to do about everything I need, but I wonder how I can get alerts in my Slack channel when my endpoints are unreachable.
The goal of this plugin is to perform warmups. But I believe it would make sense to also perform health checks at the same time. The goal is different, but the mean is very similar: Calling a given endpoint at a regular interval.
I haven't looked into it deeply, but maybe https://github.com/ACloudGuru/serverless-plugin-aws-alerts could help on the "alerting" part, as you stated before.

Hi @Vadorequest
I understand now what you mean.
However, warming up and health checking is not the same, especially if using concurrency.
In general, I'd argue that you don't need to health check lambdas since AWS will take care of removing faulty lambdas and replace them with fresh containers.
What you should definitely do is monitor if your lambdas are erroring or taking longer than expected. For that AWS CloudWatch and https://github.com/ACloudGuru/serverless-plugin-aws-alerts are definitely the way to go in my opinion. Of course, you can also use NewRelic, DataDog or any other APM solution.
In that sense, this plugin logs to the console whether the calls to the lambdas being warmed up succeded or not. So you could set alarms based on those logs. Wouldn't that solve your use case?
If you think that the logging of this plugin could be improved we can also work on that. 🙂

Thanks for your advices @juanjoDiaz, much welcome.
I think I need to take a deeper look at https://github.com/ACloudGuru/serverless-plugin-aws-alerts and see how it goes from there. :)

No problem!
I'll close this issue.
Feel free to reopen or open a new issue if after your research you find improvements or changes needed in this plugin.


Cherry Pick virtualized-list peer dependency fix

Cherry pick https://github.com/facebook/react-native/commit/7a2a3278d08b13dbde7a6e967474c20d6a5c76a5 to main

Closing as we'll probably just get this in a merge


[PURIS FOSS] Maintenance & Bug Fixing

Overview

Explain the topic in 2 sentences

Currently the application has several open bugs that should be fixed. Beside that further enhancements, such as an ui improvement are open to be done.
What's the benefit?

What are the Risks/Dependencies ?

Detailed explanation

Current implementation
Proposed improvements
Feature Team
Contributor

To be discussed

Committer

@tom-rm-meyer-ISST

User Stories

See open bugs (to be refined)
Dependency updates (EDC, DTR)
Improve test coverage

Acceptance Criteria

[ ] Criteria 1
[ ] Criteria 2
[ ] Criteria 3

Test Cases

TBD, as it's maintenance: likely smoketest works
Test Case 1

Steps

Do something
Click something
Add something

Expected Result

Expectation
Expectation
Expectation

Architectural Relevance

The following items are ensured (answer: yes) after this issue is implemented:

[x] This feature aligns with our current architectural guidelines

Data Sovereignty: All data sharing activities across company boundaries follow the Catena-X Regulatory Framework, in particular the Data Exchange Governance, and the Dataspace Protocol via a compliant Connector (like the tractusx-edc or similar, see Connector KIT)

[ ] CX-0010 Business Partner Number
[ ] CX-0013 Identity of Member Companies
[ ] CX-0018 Data Space Connectivity (EDC)
[ ] CX-0049 DID Document Schema
[ ] CX-0050 Framework Agreement Credential
[ ] CX-0149 Verified Company Identity

Interoperability: Digital Twins are used (compliant to the Digital Twin KIT and the Industry Core KIT)

[ ] CX-0001 EDC Discovery API
[ ] CX-0002 Digital Twins in Catena-X
[ ] CX-0018 Data Space Connectivity (EDC)

Data Format:

[ ] The data model is based on a published Semantic Model

[ ] The impact on the overall system architecture has been assessed. The Feature does not require changes to the architecture or any existing standard? Please have a look here on the overarching architecture
[ ] Potential risks or conflicts with existing architecture has been assessed

Justification: (Fill this out, if at least one of the checkboxes above cannot be ticked. Contact the Architecture Management Committee to get an approval for the justification)
Additional information

[x] I am aware that my request may not be developed if no developer can be found for it. I'll try to contribute a developer (bring your own developer)

Some hints from Release Management (@ther3sa) and Tractus-X Project Lead (@stephanbcbauer)

Status currently in Inbox. ⇾ Only features with status backlog are considered in open planning
Please add missing sections from the feature template, or fill them out
Please add assignee (overall responsible person who drives the feature)


[Request] Could you create a docker-compose.yml without Grafana ?

Hi,
I'm trying to make a docker-compose.yml without Grafana to deploy it on others machines and with my central one collect the infos and display them on a graphic. So to resume I want to create a docker-compose.yml to export the data of others machines.
To make that I think we only need Prometheus, cAdvisor, NodeExporter and AlertManager.
So I tried to remove the Grafana parts of the .yml but it doesn't work. Prometheus can't run and in the logs I have:
level=info msg="Starting prometheus (version=1.5.2, branch=master, revision=bd1182d29f462c39544f94cc822830e1c64cf55b)" source="main.go:75"
level=info msg="Build context (go=go1.7.5, user=root@1a01c5f68840, date=20170220-07:00:00)" source="main.go:76"
level=info msg="Loading configuration file /etc/prometheus/prometheus.yml" source="main.go:248"
level=error msg="Error opening memory series storage: leveldb: manifest corrupted (field 'comparer'): missing [file=MANIFEST-000009]" source="main.go:182"

This is the .yml that I have made :
version: '2'

networks:
  monitor-net:
    driver: bridge

volumes:
    prometheus_data: {}

services:

  prometheus:
    image: prom/prometheus
    container_name: prometheus
    volumes:
      - ./prometheus/:/etc/prometheus/
      - prometheus_data:/prometheus
    command:
      - '-config.file=/etc/prometheus/prometheus.yml'
      - '-storage.local.path=/prometheus'
      - '-alertmanager.url=http://alertmanager:9093'
      - '-storage.local.memory-chunks=100000'
    restart: unless-stopped
    expose:
      - 9090
    ports:
      - 9090:9090
    networks:
      - monitor-net
    labels:
      org.label-schema.group: "monitoring"

  alertmanager:
    image: prom/alertmanager
    container_name: alertmanager
    volumes:
      - ./alertmanager/:/etc/alertmanager/
    command:
      - '-config.file=/etc/alertmanager/config.yml'
      - '-storage.path=/alertmanager'
    restart: unless-stopped
    expose:
      - 9093
    ports:
      - 9093:9093
    networks:
      - monitor-net
    labels:
      org.label-schema.group: "monitoring"

  nodeexporter:
    image: prom/node-exporter
    container_name: nodeexporter
    restart: unless-stopped
    expose:
      - 9100
    networks:
      - monitor-net
    labels:
      org.label-schema.group: "monitoring"

  cadvisor:
    image: google/cadvisor
    container_name: cadvisor
    volumes:
      - /:/rootfs:ro
      - /var/run:/var/run:rw
      - /sys:/sys:ro
      - /var/lib/docker/:/var/lib/docker:ro
    restart: unless-stopped
    expose:
      - 8080
    networks:
      - monitor-net
    labels:
      org.label-schema.group: "monitoring"

Thank you for the help
PS: I know you have already made something like this but there isn't the Prometheus part in yours and I need it

I removed the docker volume and then I made docker-compose again (who created the volume) and now it works so I guess it's ok


Single SFML Library

Compiling SFML into a single library file, something like SFML.dll and SFML.lib (Windows).

What's the intended use case for this feature?

What's the intended use case for this feature?

Possibility to compile the library into one file (as it was done with SDL2).
Sorry for my english (I write through a translator).

What benefit would this have over the status quo of having 5 separate libraries?

What benefit would this have over the status quo of having 5 separate libraries?

It is not comfortable.

We can discuss the possibility of having a single SFML::SFML CMake target which links to the current 5 libraries, but if you want a single .dll then that would require building all code into a single library which is not something we're willing to do.

It is not comfortable.

If you want to change something that big, please spend at least the time to provide a rationale for the change.
Also, this topic has been discussed a few times before and rejected each time. Please show that you've understood the arguments and bring something new to the discussion.

There's always a way to do it, but we won't be officially supporting or publishing binaries in such a way.
The simplest approach is to use CMake (e.g. with the SFML CMake Template) that way you don't have to manually click around to get SFML linked properly.


CSV / ETL

Reading a CSV file (from s3), enriching it against a database and an API, then writing it to a database

Reading a CSV file, (from s3), enriching it against a database and an API, then writing it back to S3

Reading a CSV file, (from s3), enriching it against a database and an API, then writing it to Kafka

Normalizing mulitple CSV's from different s3 buckets into a standard format

WIP

Updated WIP


[ServiceBus] session receiver unification

addressing issue https://github.com/Azure/azure-sdk-for-python/issues/14705
This one would go into the settlement movement PR

receiver would have renew_message_lock method, and it would raise error called on the session receiver.
session receiver has a session attribute which have session operations on

/azp run python - servicebus - tests

/azp run python - servicebus - tests


Update activation to include > JDK 9

See https://github.com/playn/playn/issues/54#issuecomment-418123936

Thanks!


dind, swarm cluster, and container communication

I've been asking this on #docker on Freenode, and the Docker Forums, but I think the Inception aspect is scaring people off; therefore, I'm trying here.

I'm playing with Docker Swarm by using a swarm of dind containers.
However, I can't access one container from another. For instance, I need to be able to reach master from slave. I seem to be able to ping it, but I can't access it over 3306 or 3307.
Here's my configuration, including the swarm bootstrapping, the docker compose configuration, and the way I'm starting the stack:
https://gist.github.com/jamiejackson/df318fb656115f2e72f819f7f50c9d1a#file-bootstrap_swarm-sh-L41-L50
$ service_name=db_slave
$ worker_node=$(docker service ps db --filter "name=db_slave."  --format "{{.Node}}")
$ docker exec -it ${worker_node} \
>   /bin/sh -c '
>     docker exec -it $(docker ps --filter "name=db_slave.*" --format "{{.ID}}") \
>       nc -vz -w 1 master 3307
>   '
Warning: inverse host lookup failed for <IP_ADDRESS>: Unknown host
master [<IP_ADDRESS>] 3307 (?) : Connection timed out
$ docker exec -it ${worker_node}   /bin/sh -c '
    docker exec -it $(docker ps --filter "name=db_slave.*" --format "{{.ID}}") \
      nc -vz -w 1 master 3306
  '
Warning: inverse host lookup failed for <IP_ADDRESS>: Unknown host
master [<IP_ADDRESS>] 3306 (mysql) : Connection timed out

I highlighted the kitchen sink port publishing--it was an(other failed) attempt at getting communication working.
I'm probably doing multiple things wrong here.
Help?

I replied on the Docker forums. I'll close this issue here to avoid duplication!


Update Engine.Source2.md

SteamDB app page links to a few games using this
Brief explanation of the change
added link to the source (1) engine page in te VD Wiki

Not really needed.


glibcLocales should include C.UTF-8

Issue description
Support for C.UTF-8 was added to glibc, however, not to glibcLocales. Including glibcLocales as a buildInput or during run-time may break LANG=C.UTF-8 as mentioned in https://github.com/NixOS/nixpkgs/issues/56347#issuecomment-473461579 and https://github.com/NixOS/nixpkgs/issues/57911.
Steps to reproduce
Technical details
Please run nix-shell -p nix-info --run "nix-info -m" and paste the
results.
cc @Mic92

Yeah. Make sense to add it to glibcLocales too. I had the intention it would actually look in both places. But maybe this is not the case if LOCALE_ARCHIVE is exported as environment variable.

Also checkout https://github.com/NixOS/nixpkgs/pull/58009

This is fixed in staging and staging-19.03.

Great, thanks!


Remove sensitive information from logs

Gorse version
0.4.2
Describe the bug
Gorse outputs database information on logs by line
https://github.com/gorse-io/gorse/blob/master/server/server.go#L139
Expected behavior
Don't output sensitive information in logs.

There are several options:

Replace username and password with meaningless ******;
Replace username and password with same length ******;
Replace part of username and password with ******.

For security, 1 is the best. For debug, 3 is the best. Do you have any idea

@zhenghaoz I think either 1 or 2 is fine, will leave up to you to decide but IMO 1 is best with fixed lenght (like always return 8 *)

OK. I think the length (option 2) is useful for debugging (check username and password). Pull requests are welcome. Otherwise, I will fix it this weekend.


Demarcating checkin and checkout of a physical connection from a pool

See also https://groups.google.com/g/r2dbc/c/zZ09hFMR9N8:
The JDBC Spec defines beginRequest and endRequest methods that allows connection pools to notify physical connections on checkin/checkout.
We believe that If JDBC needs such API, then there's a good chance R2DBC needs a reactive version of that same API.

I create a pull request #235 to explore lifecycle callbacks as per this ticket.


Suggestion: Use "hbase.bulkload.staging.dir" as tmp dir for bulk loading

Currently i am using a copied and adopted version of your HFile bulk loading implementation and i am very happy that it exists. You did a great job with it!
I have a local test environment under windows and i noticed the tmp files where all created under C:/tmp
Because of this:
https://github.com/unicredit/hbase-rdd/blob/master/src/main/scala/unicredit/spark/hbase/HFileSupport.scala#L174
Suggestion:
Instead of using /tmp why not using this setting from hbase hbase.bulkload.staging.dir
http://hbase.apache.org/book.html#hbase.secure.bulkload`

Yes it was meant to use the tmp folder of a hdfs file system. That's why it is hardcoded.
But it can be a nice idea to have it parametric. You can submit a PR if you like.


Test commit for testing purpose only

This is just a test branch for testing purpose.

Test completed - linters working fine and repeating linters are not showing up twice.


style color QColor

style color should be able to take a QColor

The size_policy should be part of style props. QSizePolicy

"align" style prop should be re-worked to allow any combination of AlignmentFlag
https://doc.qt.io/qtforpython-6/PySide6/QtWidgets/QLayout.html#PySide6.QtWidgets.QLayout.setAlignment
https://doc.qt.io/qtforpython-6/PySide6/QtWidgets/QLabel.html#PySide6.QtWidgets.QLabel.setAlignment


Sync Read how should it work

Hi there, in the doc string of Connection.read it is written that this function would send all Received Telegrams to a knx listener, but in the Connection class you can't pass such a listener nor can you create such an instance? Can you explain in more detail how this is supposed to work.
Thanks a lot in advance :)

You'd need to do both, create a AsyncKnx class with with you listen in a event loop and a Connection class.
Something like this (untested):
import asyncio
from knx import AsyncKnx, connect, coroutine
from threading import Thread
from time import sleep

def call_read():
    with connect() as c:
        while True:
            sleep(2)
            c.read('0/1/20')

@coroutine
def logger():
    while True:
        line = (yield)
        print(line)

t = Thread(target=call_read)
t.daemon = True
t.start()

knx = AsyncKnx()
loop = asyncio.get_event_loop()
loop.run_until_complete(knx.listen(logger()))

Hope that helps.
I'm still not fully settled on the API so I'm open for suggestions.

Hi there, yes this actually helped me figuring out how I could integrate this library into my project. Thanks a bunch!

I've finally added an example which hopefully shows how the listen/read stuff is supposed to work. See https://github.com/mfussenegger/knx/pull/8


fix: bump to fedora:38 in dockerized tests, because 34 is missing, bump Multus, OVS, and kubevirtci

What this PR does / why we need it:
quay.io pulled docker images for fedora:34
Special notes for your reviewer:
Fixes #267
Release note:
Fix dockerized tests after Fedora 34 EOL

/retest

CI failed installing dependencies on the e2e test cluster:
 + ./cluster/cli.sh ssh node01 -- sudo dnf install -y centos-release-nfv-openvswitch
selecting podman as container runtime
CentOS-8 - NFV OpenvSwitch                      8.2 kB/s | 3.0 kB     00:00
CentOS-8 - NFV OpenvSwitch                      139 kB/s | 236 kB     00:01
CentOS Stream 8 - AppStream                      12 kB/s | 4.4 kB     00:00
CentOS Stream 8 - AppStream                      26 MB/s |  29 MB     00:01
CentOS Stream 8 - BaseOS                        9.6 kB/s | 3.9 kB     00:00
CentOS Stream 8 - BaseOS                         17 MB/s |  33 MB     00:01
CentOS Stream 8 - Extras                         10 kB/s | 2.9 kB     00:00
CentOS Stream 8 - Extras common packages         16 kB/s | 3.0 kB     00:00
CentOS Stream 8 - Extras common packages         13 kB/s | 6.4 kB     00:00
Stable Releases of Upstream github.com/containe  64 kB/s | 1.7 kB     00:00
Stable Releases of Upstream github.com/containe 623 kB/s |  66 kB     00:00
devel:kubic:libcontainers:stable:cri-o:1.22 (Ce 1.6 kB/s | 248  B     00:00
Errors during downloading metadata for repository 'devel_kubic_libcontainers_stable_cri-o_1.22':
  - Status code: 404 for https://storage.googleapis.com/kubevirtci-crio-mirror/devel_kubic_libcontainers_stable_cri-o_1.22/repodata/repomd.xml (IP: <IP_ADDRESS>)
Error: Failed to download metadata for repo 'devel_kubic_libcontainers_stable_cri-o_1.22': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

Trying again, in case it was a temporary issue. If not, we will probably need to fix the CI environment.

/retest

Checking if bump of kubevirtci and OVS helps: https://github.com/k8snetworkplumbingwg/ovs-cni/pull/270

/retest

/retest

/retest
Giving last chance to the flaky test.

/lgtm
/approve
Wonderful! Thanks for the fix @courtland

/override pull-e2e-ovs-cni

/retest

/retest
Sorry about the flaky CI.

Merging manually. The test failure is not related to the PR.

/retest
Sorry about the flaky CI.

It's all good. What would any CI be without some flakes? :D
Thanks for your help in getting this through.

Thank you for pushing this forward! Much appreciated o/

@phoracek
note please that if you take this you will need also those maybe
https://github.com/k8snetworkplumbingwg/ovs-cni/pull/281
https://github.com/k8snetworkplumbingwg/ovs-cni/pull/282
they are due to this PR


Nav url params

Closes #22
Description

Clicking on different test cases generates a unique URL that can be shared easily.

Additional Information

Looks like there's underline css added to the test-list apps list component @namantaneja167

Looks like when we close the test-case the url params doesn't change and tcId doesn't get removed. @namantaneja167

rest LGTM

LGTM

Closed https://github.com/keploy/ui/issues/25


add a notice to clarify that swagger_ui:dist:update should be run p…

…art of this gem

ref #14

Fair enough.


chore: Remove GET /organizations API [PAGOPA-1133]

List of Changes

The API GET /organizations and all Service and Model classes related were removed

Motivation and Context

This API is already replaced by gpd-reporting-enrollments

How Has This Been Tested?

Smoke test ✅

Screenshots (if appropriate):
Types of changes

[ ] Bug fix (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)

Checklist:

[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.

update_code

update_code

update_code


Add Piped API to give back the latest Event

What this PR does / why we need it:
Which issue(s) this PR fixes:
Ref https://github.com/pipe-cd/pipe/issues/1381
Does this PR introduce a user-facing change?:

NONE

I am thinking that maybe we should have a simple local store for the latest Events inside piped. (ref: command store)
And EventWatcher will retrieve the needed events from that local store instead of the control-plane.
What does the local store

that local store will periodically fetch the events of a project from its milestone/marked-created-at via something like ListProjectEvents(milestone) then store them inside the memory
if the requested event from EventWatcher was not found inside the memory. The store sends a request to fetch that single event via GetLatestEvent(name, labels).

(This local store acts as a memory cache)

I am thinking that maybe we should have a simple local store for the latest Events inside piped. (ref: command store)
And EventWatcher will retrieve the needed events from that local store instead of the control-plane.
What does the local store

that local store will periodically fetch the events of a project from its milestone/marked-created-at via something like ListProjectEvents(milestone) then store them inside the memory
if the requested event from EventWatcher was not found inside the memory. The store sends a request to fetch that single event via GetLatestEvent(name, labels).

(This local store acts as a memory cache)

@nghialv Acutually I was also looking into having the local store inside Piped, but was not sure how to have the only latest Events. Your suggestion that cache the Event structure as-is looks great!
But honestly, I don't get what you said exactly especially the part of milestone/marked-created-at. It means we periodically fetch all Events newly created after marked-created-at (or updated-at)?
(Also, isn't it wrong that piped saves the marked-created-at timestamp inside itself?)

@nghialv Acutually I was also looking into having the local store inside Piped, but was not sure how to have the only latest Events. Your suggestion that cache the Event structure as-is looks great!
But honestly, I don't get what you said exactly especially the part of milestone/marked-created-at. It means we periodically fetch all Events newly created after marked-created-at (or updated-at)?
(Also, isn't it wrong that piped saves the marked-created-at timestamp inside itself?)

You often use milestone and i can imagine it's a useful term. I now roughly understand that mean but not get it exactly. What did you refer to when you started using it? Please let me know if you remember.

You often use milestone and i can imagine it's a useful term. I now roughly understand that mean but not get it exactly. What did you refer to when you started using it? Please let me know if you remember.

I just want to know its accurate meaning.

I just want to know its accurate meaning.

Sorry, I am having a MTG now.

It means we periodically fetch all Events newly created after marked-created-at (or updated-at)?

Yes, fetch all newly created events after the milestone/marked-created-at value.

piped saves the marked-created-at timestamp inside itself?

Yes, that value is just stored in memory and can be reset when piped restarted.
I am thinking about the flow as following:

when the piped is started, the milestone/marked-created-at value is set by time.Now() - time.Hour or something like this
each 1m, piped fetches all newly created events after the current milestone value, and then update that value to the biggest createdAt value from the response

Sorry, I am having a MTG now.

It means we periodically fetch all Events newly created after marked-created-at (or updated-at)?

Yes, fetch all newly created events after the milestone/marked-created-at value.

piped saves the marked-created-at timestamp inside itself?

Yes, that value is just stored in memory and can be reset when piped restarted.
I am thinking about the flow as following:

when the piped is started, the milestone/marked-created-at value is set by time.Now() - time.Hour or something like this
each 1m, piped fetches all newly created events after the current milestone value, and then update that value to the biggest createdAt value from the response

While saving the event into the local store, the one that has the same ID (list of labels(name = event-name, repo-id= foo...)) will be overridden.

While saving the event into the local store, the one that has the same ID (list of labels(name = event-name, repo-id= foo...)) will be overridden.

Sorry to interrupt your MTG. You can answer after you finished that.
The flow you suggested looks great. I'll look into if we really can it with no problem 👍

Sorry to interrupt your MTG. You can answer after you finished that.
The flow you suggested looks great. I'll look into if we really can it with no problem 👍

👍

👍

Seems like no problem with this solution. I'm still not sure if this usage of Milestone is correct, let me know if it's wrong.
And let me implement the apistore for Event at https://github.com/pipe-cd/pipe/pull/1411.

Seems like no problem with this solution. I'm still not sure if this usage of Milestone is correct, let me know if it's wrong.
And let me implement the apistore for Event at https://github.com/pipe-cd/pipe/pull/1411.

Fixed done!

Fixed done!

@nghialv Thanks for taking a look. Fixed all of them.

@nghialv Thanks for taking a look. Fixed all of them.

Changed to use from and to instead of after.

Changed to use from and to instead of after.

Nice. Thank you.
/lgtm

Nice. Thank you.
/lgtm

/approve

/approve


Compiled executable get Segmentation fault(11) in arm64 based Kubernetes

I'm building a dart 2.15.0-178.1.beta-sdk executable with BuildX (in GitHub Actions) and sending to my companies Cluster (2 Oracle Amphere (ARM64 2cpu 12gb ram) Nodes) and I get following message from the pod:
Note: The executable is run inside a ubuntu:latest image.
===== CRASH =====
si_signo=Segmentation fault(11), si_code=2, si_addr=0xfffd969515c0

===== CRASH =====
si_signo=Trace/breakpoint trap(5), si_code=1, si_addr=0xfffd96983e40

Any help would be much appreciated!
EDIT:
This is a rare problem, the image runs completely fine in my arm64 m1 MBA, and in my desktop WSL amd64, issue only present in Amphere Arm

We would need more information to diagnose this. I'd suggest to attach a debugger or try collecting a core dump (if possible).

We would need more information to diagnose this. I'd suggest to attach a debugger or try collecting a core dump (if possible).

Do you have any info related to how can I attach a debugger to an executable inside a container in Kubernetes? 🤣.
I will start digging in how can I give you more info. Thank you for your quick response!

I get this coredump from the file (I tried to process it with gdb but no luck for me, I'm pretty noob into that level of abstraction in SE): https://we.tl/t-27DGPAckCR

I poked around in the core dump but it is pretty hard to diagnose what is going on, for various reasons, mainly because machine code for /app/server is not available for inspection.
If you have access to the binary which produced the core, you can start by loading it into gdb-multiarch like so
$ gdb-multiarch server core.21695

Then you should be able to disassemble instructions around the crash location. I think we are doing a call and we hit some wrong location (which is not executable). You could try (these are addresses taken from the core you have shared):
(gdb) x/10i 0xfffef52cfd50-0x20
(gdb) x/10i 0xfffef54f15c0-0x20

These are the logs from the procedure:
Reading symbols from server...
(No debugging symbols found in server)

warning: core file may not match specified executable file.
[New LWP 602]
[New LWP 603]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1".
Core was generated by `./server --debug'.
Program terminated with signal SIGABRT, Aborted.
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50      ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
[Current thread is 1 (Thread 0xfffef57e6000 (LWP 602))]
(gdb) x/10i 0xfffef52cfd50-0x20
   0xfffef52cfd30:      Cannot access memory at address 0xfffef52cfd30
(gdb) x/10i 0xfffef54f15c0-0x20
   0xfffef54f15a0:      b.vc    0xfffef54f15ac
   0xfffef54f15a4:      bl      0xfffef54d88e4
   0xfffef54f15a8:      stur    x2, [x0, #7]
   0xfffef54f15ac:      mov     x15, x29
   0xfffef54f15b0:      ldp     x29, x30, [x15], #16
   0xfffef54f15b4:      ret
   0xfffef54f15b8:      bl      0xfffef54d86e4
   0xfffef54f15bc:      b       0xfffef54f1508
   0xfffef54f15c0:      tbz     w0, #0, 0xfffef54f15d8
   0xfffef54f15c4:      ldurh   w9, [x0, #1]

Is this from exactly the same server binary that crashed on the server? I am bit puzzled why the first print did not succeed.
Is it possible for you to switch from building a single executable to build a snapshot instead and then run that through dartaotruntime?
Currently you probably use dart compile exe, could you try to do dart compile aot-snapshot and then try to run that on the server instead (you would need to copy snapshot + dartaotruntime from the match ARM64 Dart SDK)?

Yes, it is from the same executable, even from the same pod (k8s).
Oka, I'm gonna try right now!

Sorry for the delay, I've tried putting a pod with the complete SDK, copied the repo to the pod and compiled the snapshot. Running make the following result:
===== CRASH =====
si_signo=Segmentation fault(11), si_code=2, si_addr=0xfffc2a7815c0
Aborted (core dumped)

I also tried the last commands with GDB, this is the results:
Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1".
Core was generated by `dartaotruntime server'.
Program terminated with signal SIGABRT, Aborted.
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50      ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
[Current thread is 1 (Thread 0xfffc2aa83e00 (LWP 291))]
(gdb) x/10i 0xfffef52cfd50-0x20
   0xfffef52cfd30:      Cannot access memory at address 0xfffef52cfd30
(gdb) x/10i 0xfffef54f15c0-0x20
   0xfffef54f15a0:      Cannot access memory at address 0xfffef54f15a0

Copying the repo allow me to try to run the source code with Dart. It works without problem, It seems to be only a problem with the executables.

Any update or something can I help in to solve it?

Sorry, I was busy with other things. I provisioned an Amphere server and I can actually reproduce the crash just by compiling a simple hello world.

I have a fix up: https://dart-review.googlesource.com/c/sdk/+/220381

Thank you very much!!! You're awesome!! Now our app can go full ARM kubernetes!!!! 🚀

I'm getting this same error when trying to docker buildx linux/amd64 on a Mac M1.
pubspec.yaml
environment:
  sdk: ">=2.15.0 <3.0.0"

dependencies:
  shelf: ^1.2.0
  shelf_router: ^1.0.0
  shelf_static: ^1.0.0

Dockerfile
FROM dart:stable AS build

WORKDIR /app
COPY pubspec.* ./
RUN dart pub get

Run command (tried from terminal and terminal running with rosetta):
docker buildx build --platform linux/amd64 -t dart_server:v1 .
Error:
#8 1.992 ===== CRASH =====
#8 1.992 si_signo=Segmentation fault(11), si_code=1, si_addr=0x48
#8 1.993 version=2.16.1 (stable) (Tue Feb 8 12:02:33 2022 +0100) on "linux_x64"
#8 1.993 pid=9, thread=17, isolate_group=dartdev(0x4002f9d000), isolate=dartdev(0x4002f9d800)
#8 1.993 isolate_instructions=ffffaf233000, vm_instructions=4001e1b540
#8 1.993   pc 0x0000ffffaf014320 fp 0x0000004009a7ccc0 Unknown symbol
#8 1.996   pc 0x0000004001f97fbd fp 0x0000004009a7daa0 dart::DartEntry::InvokeCode(dart::Code const&, unsigned long, dart::Array const&, dart::Array const&, dart::Thread*)+0x14d
#8 1.996   pc 0x0000004001f97dfc fp 0x0000004009a7db00 dart::DartEntry::InvokeFunction(dart::Function const&, dart::Array const&, dart::Array const&, unsigned long)+0x14c
#8 1.997   pc 0x0000004001f9a20f fp 0x0000004009a7db50 dart::DartLibraryCalls::HandleMessage(long, dart::Instance const&)+0x16f
#8 1.997   pc 0x0000004001fc1085 fp 0x0000004009a7dc30 dart::IsolateMessageHandler::HandleMessage(std::__2::unique_ptr<dart::Message, std::__2::default_delete<dart::Message> >)+0x375
#8 1.998   pc 0x0000004001fe914c fp 0x0000004009a7dca0 dart::MessageHandler::HandleMessages(dart::MonitorLocker*, bool, bool)+0x14c
#8 1.998   pc 0x0000004001fe984f fp 0x0000004009a7dcf0 dart::MessageHandler::TaskCallback()+0x1df
#8 1.998   pc 0x0000004002103678 fp 0x0000004009a7dd80 dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*)+0x138
#8 1.999   pc 0x0000004002103b0c fp 0x0000004009a7ddb0 dart::ThreadPool::Worker::Main(unsigned long)+0x5c
#8 1.999   pc 0x000000400207c9e8 fp 0x0000004009a7de70 /usr/lib/dart/bin/dart+0x207c9e8
#8 1.999 -- End of DumpStackTrace
#8 2.000 qemu: uncaught target signal 6 (Aborted) - core dumped
#8 2.013 Aborted

Note: It does successfully build as arm using docker build.

@cthurston it's not the same error, it's a different one in a different place. please file a separate issue.

#48420 opened


"en" instead of "gb"?

I need to put a flag for a language. Is there a way to replace "gb" by "en"?

Please see #13 and #236

Thanks. But instead of having an explanation on why is not desirable, I'd rather need a way to replace "gb" by "en".

I'd suggest fork+extend OR overwrite in your own CSS file.

Should be great have en as alias of gb or as a new flag half us and half gb (for language purpose)


drivers: crypto: Add support for STM32L4 AES accelerator

The STM32L4 series features an AES accelerator with differences in the HAL API compared to other STM32 devices. This patch adds support for the STM32L4 AES accelerator in the STM32 crypto driver.
Key changes:

Introduce a new device type st,stm32l4-aes to represent the STM32L4 AES accelerator variant. Add the device tree binding file st,stm32l4-aes.yaml and update stm32l462.dtsi accordingly.
Modify crypto_stm32.c to handle the differences in the HAL API:

Use specific HAL functions for encryption and decryption (e.g., HAL_CRYP_AESECB_Encrypt) when building for STM32L4 AES.
Adjust the initialization and configuration structures accordingly.
Replace copy_reverse_words with copy_words_adjust_endianness to handle endianness conversion only when necessary.

The driver has been successfully tested with the crypto sample on a custom board based on the STM32L462RE.

Related to issue #78482

I believe I have addressed most of the points.
However, to build the crypto sample on a board with a SoC that includes the ST, STM32L4-AES driver, I initially chose the nucleo_l496zg. However, it appears that this soc does not have an AES accelerator at all. According to the reference manual (RM0351), in the section "AES hardware accelerator (AES)," only the STM32L486/L4A6 include the AES accelerator.
The compilation actually fails because the header file stm32cube/stm32l4xx/soc/stm32l496xx.h from the STM32 HAL does not contain the "AES" constant required to enable the AES HAL.
I decided to check other SoCs:

STM32L422xx (DS12470 Rev 6): AES accelerator is present.
STM32L4P5 (DS12903 Rev 3): There is no clear mention of the AES device (surprisingly, there is a line for the AES device in the power consumption table).

Unless I am mistaken, I believe we should restrict the st,stm32l4-aes driver to STM32L462 and STM32L422xx SoCs.
As a result, there is currently no board in the Zephyr tree that uses an SoC with the STM32L4-AES accelerator. Furthermore, I am not aware of any development kit (DK) or known board that includes an STM32L422 or STM32L462.

As a result, there is currently no board in the Zephyr tree that uses an SoC with the STM32L4-AES accelerator. Furthermore, I am not aware of any development kit (DK) or known board that includes an STM32L422 or STM32L462.

I just noticed that the STM32L4A6 SoC is present in the Zephyr tree. Should I add the AES node to the DTS for this SoC?
Morevoer, if a board for the NUCLEO-L4A6ZG could be added to the tree, it could serve as a candidate for "stm32l4-aes" testing in the CI.

You're welcome, just wanted to check if there's any update on merging the PR. Please let me know if I can help further.


Fix formatting functionality to support new changes

Purpose
This will enable formatting support for most of the new changes.

Codecov Report

:exclamation: No coverage uploaded for pull request base (next-release@3ba8f29). Click here to learn what that means.
The diff coverage is 59.33%.

@@               Coverage Diff               @@
##             next-release   #12609   +/-   ##
===============================================
  Coverage                ?   59.78%
  Complexity              ?      659
===============================================
  Files                   ?     2063
  Lines                   ?   101349
  Branches                ?    12886
===============================================
  Hits                    ?    60588
  Misses                  ?    35575
  Partials                ?     5186

Impacted Files
Coverage Δ
Complexity Δ

...erinalang/compiler/parser/BLangParserListener.java
67.91% <100%> (ø)
0 <0> (?)

...alang/langserver/BallerinaTextDocumentService.java
68.15% <100%> (ø)
0 <0> (?)

...lang/langserver/formatting/FormattingNodeTree.java
64.93% <55.31%> (ø)
0 <0> (?)

...ang/langserver/formatting/FormattingSourceGen.java
37.38% <64.15%> (ø)
0 <0> (?)

...erinalang/compiler/parser/BLangPackageBuilder.java
89.58% <73.68%> (ø)
0 <0> (?)

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 3ba8f29...de117dd. Read the comment docs.


Log warning lookup tables

Proposed changes:

We added a verification on the training to raise a warning when there are no examples for lookup tables
Resolve #5956

Status:

[ ] added some tests for the functionality
[ ] updated the documentation
[ ] updated the changelog (please check changelog for instructions)
[x] reformat files using black (please check Readme for instructions)

Pull Request Test Coverage Report for Build 597505759

13 of 13 (100.0%)  changed or added relevant lines in 1 file are covered.
2 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.005%) to 87.298%

Files with Coverage Reduction
New Missed Lines
%

rasa/test.py
2
84.78%

Totals

Change from base Build 585609801:
-0.005%

Covered Lines:
22076

Relevant Lines:
25288

💛  - Coveralls


add dependencies to useEffect

Related Issue

https://github.com/WildAid/o-fish-web/issues/278
Fixes #
add dependecies to useEffect
Checklist:

[x] I have read the contributor's guide.
[x] I linked an issue in the previous section
[x] I have commented on the linked issue
[x] I was assigned the linked issue (not required)
[ ] I have tested the change to the best of my ability against the sandbox or a local build.

Optional items:

[ ] My change adds new text and requires a change to translations.
[ ] My change requires a change to the documentation.
[ ] I have submitted a PR to the documentation repo.
[ ] I was not able to test... (explain below, e.g. you did not have permissions to test a specific feature)
[ ] This change depends O-FISH Realm repository changes (explain below)

Optional: Add any explanations here
the warning caused by the useEffect that has been implemented, not contains array of dependencies, so i add the dependencies based on the react's suggested.

to prevent any of this in the future, my advice is to add linter to check that. you can refer to it here https://reactjs.org/docs/hooks-rules.html

Optional: Add any relevant screenshots here

sorry i just check it @Sheeri can you build it? i can wait

I built charts for the sandbox - While the dependencies you added stop the warning, you need ALL the dependencies in order for useEffect to properly reload the page when a filter changes:
[boxId, options.filter, options, filter, setFilter]
I have pushed this change, you can see it with https://github.com/WildAid/o-fish-web/pull/282/commits/ed7742fd3ed4b7ae7ce4c2554ce4ea45c97a1a62
(I will merge when the checks come out OK).

Congratulations! 🎉 🙌 🎆 ㊗
This PR is great and has been merged into the code. Thanks so much for contributing! If you'd like, you can request to work on another issue. We really appreciate your effort!

Hi @fandok!
We noticed you haven't claimed your digital MongoDB swag. To claim your O-FISH badge, head on over to the MongoDB Community forums, login, and reply - making sure to link to this PR.


label:enhancement grouping of entries

Hi,
first of all thanks for this nice app, does its job as intended as is good to use.
As I am having quite a number of sites I use it with I have a wish for better organizing and finding the entries:
Is it possible to implement a group or directory structure to save entries in?
Personally I would prefer several lawyers, e.g. work -> office -> tools or private -> finance -> banking
Thanks in Advance

Hello FreeOTP development team. I'd like to add my five cents as I stumbled upon the same idea. I've got tons of entries that are difficult to manage without some kind of folder structure or categories. Thank you!

I would also really appreciate this feature.
BTW I think this issue maybe identical to #91


Translate comments and messages to English

Translate comments and messages to English, hope I caught them all.

thx, but this file would be deleted in the future. I am just merging it because you are beautiful person :D


Idea plugin doesn't compatible with IntelliJ IDEA 2021.3

Hello!
Jetbrain's marketplace shows 'Not compatible with the version of your running IDE (IntelliJ IDEA 2021.3)'
Compatibility range  2020.3 — 2021.2.4
https://plugins.jetbrains.com/plugin/18099-elementary

Thanks, we will try to fix it soon

@kirimi I have released intellij plugin version 0.0.2 with including this IDE's engine version. Try to check, please

@MbIXjkee  It works now.  Thank you!


Update Actions API to not need FocusNodes and improve Intent->Action mapping

We've had some feedback that people would like to be able to invoke actions when they are not in the context of keyboard input (from a mouse click, etc.).
This was part of the original design (e.g. the focus node was always optional in ActionDispatcher.invokeAction), but the invoke signature only has a focus node, so one had to be supplied. Since the focus node that was provided was nearly always resolving to primaryFocus, we should eliminate the focusNode parameter from the invoke, as it isn't needed, and add a new Action abstract subclass called ContextAction which can supply a BuildContext to invoke if available.
It's also the case that the IntentKey argument to the Action base class is never used, and so should be eliminated.
There is a design doc for the changes needed: flutter.dev/go/actions-and-shortcuts-design-revision
This is a tracking PR for that design.

Reopening to address missing intent argument to isEnabled.


vim is required for tests for not documented

Should document it or look for it when pytest initializes

https://github.com/ansible/ansible-navigator/blob/main/tests/integration/actions/templar/base.py#L78


Support security group names in VPC Resource controller

Issue #, if available: https://github.com/aws/amazon-vpc-resource-controller-k8s/issues/20
Description of changes:
Add support for Security group names
Credit: Most of the code was implemented by @abeer-stripe
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

I have tested this, with some augmentation, on our cluster and it seems to work. We would need EKS to test this because we had to remove CreateNetworkInterfacePermission from the code (not something we can / need to do).

This would also be super useful for tying together security group policies generated by TF with a naming schema. Right now we use a cli to generate the sg pull the id out and then set it as a tf var for import and a variable for argocd. This would be a huge improvement in that workflow

Thanks for the PR, I'm going to take a look this week.

Updated the PR. Let me know what you think about TTL cache. If you want to move in that direction. Do you have a recommendation of TTL cache, if not I will just pick up https://github.com/kubernetes/client-go/blob/v0.29.3/tools/cache/expiration_cache.go#L38

Updated the PR. Let me know what you think about TTL cache. If you want to move in that direction. Do you have a recommendation of TTL cache, if not I will just pick up https://github.com/kubernetes/client-go/blob/v0.29.3/tools/cache/expiration_cache.go#L38

Thanks, will go through this.
Can you also rebase and squash the commits? Would make it easier to review and merge the PR.

I am going to close this against https://github.com/aws/amazon-vpc-resource-controller-k8s/pull/408 because it was simpler to rebase + squash


API Broken, Incorrect Documentation, and Adding Custom Fonts

There seem to be several issues.  I am building from gotenberg/gotenberg:7.9.2 running locally on Docker Desktop.
Incorrect Documentation
The page properties are incorrectly stated in the documentation for the LibreOffice Conversion EndPoint.  "landscape" should be "Landscape".  "nativePageRanges" should be "PageRanges".
For confirmation, see the expected variables at lines 48 and 53 of uno.go
Line 58 also looks for the PDFformat parameter however this is not documented.
Parameters Not Passed to LibreOffice
They parameters are not properly passed to LibreOffice so they are effectively ignored.
Important Parameters Not Supported
The OpenOffice Wiki contains many supported properties that would be useful such as:

UseLosslessCompression
IsSkipEmptyPages
Watermark

Custom Fonts
See PR #690

Hello @lawfulsoftware,
Incorrect documentations
The documentation is about the REST API usage, not internal naming. In other words, the documentation lists the form field keys available. See also: https://github.com/gotenberg/gotenberg/blob/85d125463849b940c938f586ab0348263ddddce4/pkg/modules/libreoffice/routes.go#L35.
Regarding the PDF format, check https://gotenberg.dev/docs/routes#pdfa-libreoffice.
Parameters Not Passed to LibreOffice
How should they be passed?

The route "Office documents into PDFs" has a tag which is the same weight as "Page Properties", "Merge", and "PDF/A" that follow. Visually, at a quick glance, they all appear to be separate routes.

As for UseLosslessCompression, IsSkipEmptyPages, and Watermark, I assume that they are not currently supported however they would be quite beneficial.

Could you create a separate issue?

This file documents a test with both nativePageRanges and PageRanges and provides the debug log with my observations. Neither value works and the output for both is a PDF file with eleven pages.

Could you also create a separate issue?

It was somewhat difficult to change the log level. I note that the option to set the LOG_LEVEL environment variable was removed. Are there any plans to make it easier to set the log level?

https://gotenberg.dev/docs/configuration#logging


[FLINK-13095][state-processor-api] Introduce window bootstrap writer for writing window operator state

What is the purpose of the change
Adds support to bootstrap window operators using the state processor api. This PR is a lot of boilerplate because of all the ways to configure window operator but all the runtime changes have already been merged in.
I also realized we already support reading trigger state, it was just missing a public method so I added that in a hotfix.
Verifying this change
UT / IT tests
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (yes / no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no)
The serializers: (yes / no / don't know)
The runtime per-record code paths (performance sensitive): (yes / no / don't know)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn/Mesos, ZooKeeper: (yes / no / don't know)
The S3 file system connector: (yes / no / don't know)

Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

@alpinegizmo would you like to take a look at the docs on this?

@sjwiesman Thrilled to see this! I'll take a look soon.

Sorry for the delay, I've pushed an update with your suggestions @alpinegizmo


[47] Publish

I removed the second example in Finally, as that didn't render correctly:

This also closes #126

Want to review, @jessesquires @modocache @codeOfRobin?
Also, I can't merge this @jessesquires, as Travis doesn't like the file moving.

👍 I'll merge

Thanks!

thanks @BasThomas ! 👏


Fix pac4j HTTP client user agent

Discord doesn't like something about the way pac4j handles OAuth, so the last step of OAuth login is being blocked by Cloudflare middleware. FIx it so we can use the web interface.

Was blocking both Discord login and Reddit account linking. Took a day to figure out what was up but I got it. Coming soon to master.