Could we export the target status in detail to the /metrics

What did you do?
Now, when a target is not accessible, we only have two ways to found this.

on the webui /targets page, to check which one is unhealthy
through prometheus api /api/v1/targets to filter the down targets
through the current net_conntrack_dialer_conn_failed_total metric from prometheus

But the net_conntrack_dialer_conn_failed_total only report job group failure, it isn't include every target scrape status in the job groups.
What did you expect to see?
Prometheus should exports every target scrape status, which will be easy to write alert rule to tell which target is unhealthy. Maybe something like below
net_conntrack_dialer_conn_failed_total{dialer_name="node_exporter", target="<IP_ADDRESS>",reason="refused"} 23
net_conntrack_dialer_conn_failed_total{dialer_name="node_exporter", target="<IP_ADDRESS>",reason="resolution"} 0
net_conntrack_dialer_conn_failed_total{dialer_name="node_exporter", target="<IP_ADDRESS>",reason="timeout"} 0
net_conntrack_dialer_conn_failed_total{dialer_name="node_exporter", target="<IP_ADDRESS>",reason="unknown"} 23

net_conntrack_dialer_conn_failed_total{dialer_name="node_exporter", target="<IP_ADDRESS>",reason="refused"} 0
net_conntrack_dialer_conn_failed_total{dialer_name="node_exporter", target="<IP_ADDRESS>",reason="resolution"} 0
net_conntrack_dialer_conn_failed_total{dialer_name="node_exporter", target="<IP_ADDRESS>",reason="timeout"} 0
net_conntrack_dialer_conn_failed_total{dialer_name="node_exporter", target="<IP_ADDRESS>",reason="unknown"} 0

What did you see instead? Under which circumstances?
net_conntrack_dialer_conn_failed_total{dialer_name="node_exporter",reason="refused"} 23
net_conntrack_dialer_conn_failed_total{dialer_name="node_exporter",reason="resolution"} 0
net_conntrack_dialer_conn_failed_total{dialer_name="node_exporter",reason="timeout"} 0
net_conntrack_dialer_conn_failed_total{dialer_name="node_exporter",reason="unknown"} 23

Environment

System information:

Linux t470p 5.4.79-1-lts #1 SMP Sun, 22 Nov 2020 14:22:21 +0000 x86_64 GNU/Linux

Prometheus version:

prometheus --version
prometheus, version 2.23.0 (branch: tarball, revision: 2.23.0)
  build user:       someone@builder
  build date:       20201126-18:32:01
  go version:       go1.15.5
  platform:         linux/amd64

Prometheus configuration file:

---
global:
  scrape_interval: 300s
  evaluation_interval: 10s

alerting:
  alertmanagers:
    - static_configs:
        - targets:
            - localhost:9093
scrape_configs:
  - job_name: 'node_exporter'
    static_configs:
      - targets:
          - <IP_ADDRESS>:9100
          - <IP_ADDRESS>:9100

Logs:

no log

sorry, i found up metric is what i want. Just close the issue.


feat: sanitize form-post html attr

Sanitizes form-post HTML attributes to alphanumeric characters, ., _, and -.
Completes DEV-1040

@0xPenryn Won't this break some of the parameters like redirect_uri? Instead, I'd vouch for output escaping by replacing special characters with their respective HTML entity:
        .replace(/&/g, '&')
        .replace(/</g, '<')
        .replace(/>/g, '>')
        .replace(/"/g, '"')
        .replace(/'/g, ''')
        .replace(/\//g, '/');

@0xPenryn Won't this break some of the parameters like redirect_uri? Instead, I'd vouch for output escaping by replacing special characters with their respective HTML entity:
        .replace(/&/g, '&')
        .replace(/</g, '<')
        .replace(/>/g, '>')
        .replace(/"/g, '"')
        .replace(/'/g, ''')
        .replace(/\//g, '/');

@ph3t the only parameters possibly returned in the result url_params are code, token, id_token, and state.
code is a hex string, token and id_token are JWT's, and state is already validated and limited to the same character set. The restrictions as set should not impact existing functionality.

Yeah I think the redirect URL is inside of the action field in the form

@ph3t the only parameters possibly returned in the result url_params are code, token, id_token, and state.

I'm aware, but I'd like to prevent issues like DEV-1005 if someone adds other unvalidated parameters to the response in the future.


Start using embed for assets

In go 1.16 they introduced embed module that allows to inject assets in the binary automatically. With this module we don't need to generate code using go-bindata anymore, which means this library can be safely removed.

/test e2e-aws-operator

/retest

/approve
/retest

/retest

/test e2e-aws-operator


CircleCI tuning

Related to https://github.com/square/okhttp/issues/6033, from looking at failures for okhttp3.EventListenerTest
It looks like a lot of failures are generally load related
https://app.circleci.com/pipelines/github/square/okhttp/3086/workflows/8dd4b728-5f6b-4638-bcea-05eaed48dfe0/jobs/12882/steps
https://app.circleci.com/pipelines/github/square/okhttp/3131/workflows/f2e77138-7a11-4621-b0d8-9b78513a7845/jobs/13024/steps
https://app.circleci.com/pipelines/github/square/okhttp/3188/workflows/eed45285-f75b-4d08-9426-7b3469933f1c/jobs/13333/steps
https://app.circleci.com/pipelines/github/square/okhttp/3204/workflows/48168e7c-38f0-4d62-b2cb-8d30fc3528aa/jobs/13424/steps
Guides like
https://circleci.com/docs/2.0/language-android/
https://circleci.com/docs/2.0/language-java/
Tend to limit workers to 2 instead of 3, so trying this.

Rerunning to test after
okurl -X DELETE https://circleci.com/api/v1.1/project/github/square/okhttp/build-cache

Doesn't look like this fixes things.


Named Transform ImagIe Servlet Crop percentage support

I am looking at the documentation for the image transform servelets and I see that the parameters required for cropping only support pixels.
Our content editing team use different sized images across the site and it would be really useful to be able to use percentage values as options so you could, for example, crop an image from the center.

@theorise checkout the notation described in the comments of #819
transforms="[crop:bounds=25%\,0\,50%\,100%,resize:width=1280]"
This should be supported in the latest versions of ACS Commons.

@davidjgonzalez nice, thank you!


Reset board before set_fen_position

This PR makes set_fen_position reset the board before setting the FEN position. As per the UCI protocol, this should be done by putting ucinewgame to the engine.
This closes #13 .
I've also included a test for this. Please let me know if you want anything else!

Looks like the Travis worker is failing, but I think the tests should pass just fine. :)

Looks like the Travis worker is failing, but I think the tests should pass just fine.  I truly do not understand black. Seems like a silly thing to me since it ends up being inconsistent with the above line.
Either way, it should pass now.

Well done =) Thank you for your merge request!

Thank you for merging the PR and being so patient with me and black! :)


Billing cycle support

Feature request
firestore-stripe-subscriptions
Is your feature request related to a problem? Please describe.
When a new subscription is created I like to set the billing date at the start of the month.
Describe the solution you'd like
Similar how this is done on checkout - https://stripe.com/docs/billing/subscriptions/billing-cycle
Describe alternatives you've considered
None
Additional context
None

billing_cycle_anchor is not supported on Checkout so we can't add here.

If I'm not wrong, subscription_data.billing_cycle_anchor is now supported on Checkout. Is it possible to have it included?
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-subscription_data-billing_cycle_anchor


HDDS-4295. Add SCMServiceManager to SCM HA.

What changes were proposed in this pull request?
SCM ServiceManager is going to control all the SCM background service so that they are only serving as the leader.
Design doc: https://docs.google.com/document/d/1DbbqP0m3g_iEpY9qkSGOuQgcCN-QqlSNgWpvBOLv5h0/edit
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-4295
How was this patch tested?
CI

Thanks @GlenGeng for working on this. I went through the patch once and given some comments inline. Still need to look through in more details.
I also want to know, how are we handling case of a stale leader here? I know there is an effort inside ratis to address/detect a case of stale leader., but don't we really need anything specific to handle such case here ?
Also, the transitional cases seem to be handled for LEADER_TO_FOLLOWER and FOLLOWER_TO_LEADER? How about transition to CANDIDATE state in general?

Thanks @GlenGeng for working on this. I went through the patch once and given some comments inline. Still need to look through in more details.
I also want to know, how are we handling case of a stale leader here? I know there is an effort inside ratis to address/detect a case of stale leader., but don't we really need anything specific to handle such case here ?
Also, the transitional cases seem to be handled for LEADER_TO_FOLLOWER and FOLLOWER_TO_LEADER? How about transition to CANDIDATE state in general?

cc @amaliujia

cc @amaliujia

@bshashikant  Thanks for reviewing this patch!

I also want to know, how are we handling case of a stale leader here? I know there is an effort inside ratis to address/detect a case of stale leader., but don't we really need anything specific to handle such case here ?

The request inside SCM can be divided into two categories, read/write request and read only request.
The read/write request will go through ratis as a RaftClientRequest, so we don’t need to care about whether the underlying RaftServer is a still leader or has already stepped down. These read/write requests include add/remove/update pipeline/container/deleted block.
For the read only request, they will not go through ratis, a stale leader SCM might make a dangerous decision if it misses the latest committed writes, a.k.a the split-brain issues occurred, two leaders of different terms live together.
Nanda pointed out such a case:

Our major concern here is the DeleteContainerCommand sent by the stale leader. It is possible that the ICR of the recently created container is received by the stale leader which has no idea about the new container. The stale leader will end up sending DeleteContainerCommand to the datanode in this case.

See SCM HA Handling Stale Leader drafted by @nandakumar131 for more details.
With help of the lease solution, leader SCM can handle the read only request, then call isLeader/getTermOfLeader in SCMContext to confirm its leadership, ensuring that when it handles the read only request, it has seen the latest commit writes.

Also, the transitional cases seem to be handled for LEADER_TO_FOLLOWER and FOLLOWER_TO_LEADER? How about transition to CANDIDATE state in general?

The candidate state is not expose by Ratis, and SCM does not cares about this state either. SCM just treat candidate the same as follower: it should stop the work if not leader.
SCMServiceManager#leaderToFollower is called in StateMachine#notifyNotLeader and SCMServiceManager#followerToLeader is called in  StateMachine#notifyLeaderChanged when groupMemberId.getPeerId().equals(newLeaderId)
We may have a offline talk to discuss more about the subtle cases in how we integrate SCM HA with ratis.

@bshashikant  Thanks for reviewing this patch!

I also want to know, how are we handling case of a stale leader here? I know there is an effort inside ratis to address/detect a case of stale leader., but don't we really need anything specific to handle such case here ?

The request inside SCM can be divided into two categories, read/write request and read only request.
The read/write request will go through ratis as a RaftClientRequest, so we don’t need to care about whether the underlying RaftServer is a still leader or has already stepped down. These read/write requests include add/remove/update pipeline/container/deleted block.
For the read only request, they will not go through ratis, a stale leader SCM might make a dangerous decision if it misses the latest committed writes, a.k.a the split-brain issues occurred, two leaders of different terms live together.
Nanda pointed out such a case:

Our major concern here is the DeleteContainerCommand sent by the stale leader. It is possible that the ICR of the recently created container is received by the stale leader which has no idea about the new container. The stale leader will end up sending DeleteContainerCommand to the datanode in this case.

See SCM HA Handling Stale Leader drafted by @nandakumar131 for more details.
With help of the lease solution, leader SCM can handle the read only request, then call isLeader/getTermOfLeader in SCMContext to confirm its leadership, ensuring that when it handles the read only request, it has seen the latest commit writes.

Also, the transitional cases seem to be handled for LEADER_TO_FOLLOWER and FOLLOWER_TO_LEADER? How about transition to CANDIDATE state in general?

The candidate state is not expose by Ratis, and SCM does not cares about this state either. SCM just treat candidate the same as follower: it should stop the work if not leader.
SCMServiceManager#leaderToFollower is called in StateMachine#notifyNotLeader and SCMServiceManager#followerToLeader is called in  StateMachine#notifyLeaderChanged when groupMemberId.getPeerId().equals(newLeaderId)
We may have a offline talk to discuss more about the subtle cases in how we integrate SCM HA with ratis.

@bshashikant @amaliujia  I've update according to your comments, please take one more look Thanks!

@bshashikant @amaliujia  I've update according to your comments, please take one more look Thanks!

cc @bshashikant Please take one more look !

cc @bshashikant Please take one more look !

@bshashikant Comments for SCMServiceManager has been addressed, Please take one more look. Thanks!

@bshashikant Comments for SCMServiceManager has been addressed, Please take one more look. Thanks!

LGTM!

LGTM!

@GlenGeng Thanks the patch. @bshashikant @amaliujia Thanks for review. I have merged it.

@GlenGeng Thanks the patch. @bshashikant @amaliujia Thanks for review. I have merged it.


Expand fits IO capability

Probably want to make this as flexible as possible - think about adding in fields in the parameter file to:

specify which header keywords correspond to what
only select certain rows in a multispec file
specify keyword for actual IDs, rather than fits row numbers

closing this in favor of focusing on making a general input routine that can hook to custom-made, user-provided input scripts.


Refresh or re-enabling of edgexfoundry snap is not possible

The edgexfoundry snap fails to start after the following operations:

refresh or re-install
disable/enable

🐞 Bug Report
Affected Services
edgexfoundry snap
Is this a regression?
Yes, the previous version in which this bug was not present was: Hanoi (1.3.1)
Description and Minimal Reproduction
Test 0 - refresh on 1.3.1 (latest/stable) - works just fine:
$ snap install edgexfoundry
edgexfoundry 1.3.1-9 from Canonical✓ installed
$ snap refresh --edge edgexfoundry
edgexfoundry (edge) v2.0.0-dev.32 from Canonical✓ refreshed

Test 1 - upgrade from 2.0/stable to 2.0/edge
$ sudo snap remove edgexfoundry

$ sudo snap install edgexfoundry --channel=2.0
edgexfoundry (2.0/stable) 2.0.0-2 from Canonical✓ installed

$ sudo snap refresh edgexfoundry --channel=2.0/edge
error: cannot perform the following tasks:
- Stop snap "edgexfoundry" services (systemctl command [start snap.edgexfoundry.security-proxy-setup.service] failed with exit status 1: Job for snap.edgexfoundry.security-proxy-setup.service failed because the control process exited with error code.
See "systemctl status snap.edgexfoundry.security-proxy-setup.service" and "journalctl -xeu snap.edgexfoundry.security-proxy-setup.service" for details.
)
- Start snap "edgexfoundry" (3270) services (systemctl command [start snap.edgexfoundry.security-proxy-setup.service] failed with exit status 1: Job for snap.edgexfoundry.security-proxy-setup.service failed because the control process exited with error code.
See "systemctl status snap.edgexfoundry.security-proxy-setup.service" and "journalctl -xeu snap.edgexfoundry.security-proxy-setup.service" for details.
)

$ sudo snap logs -n 10 edgexfoundry.security-proxy-setup
level=INFO ts=2021-11-10T16:35:11.481094744Z app=security-proxy-setup source=secret.go:71 msg="Attempting to create secret client"
level=INFO ts=2021-11-10T16:35:11.482822929Z app=security-proxy-setup source=secret.go:76 msg="Created SecretClient"
level=INFO ts=2021-11-10T16:35:11.482862914Z app=security-proxy-setup source=config.go:494 msg="Using local configuration from file (3 envVars overrides applied)"
level=INFO ts=2021-11-10T16:35:11.482910553Z app=security-proxy-setup source=secrets.go:277 msg="kick off token renewal with interval: 30m0s"
level=INFO ts=2021-11-10T16:35:11.492888047Z app=security-proxy-setup source=service.go:103 msg="the service on http://<IP_ADDRESS>:8100/status is up successfully"
level=ERROR ts=2021-11-10T16:35:11.500155543Z app=security-proxy-setup source=service.go:361 msg="proxy service for consul returned status 401"
level=ERROR ts=2021-11-10T16:35:11.50024968Z app=security-proxy-setup source=init.go:53 msg="proxy service for consul returned status 401"
snap.edgexfoundry.security-proxy-setup.service: Main process exited, code=exited, status=1/FAILURE
snap.edgexfoundry.security-proxy-setup.service: Failed with result 'exit-code'.
Failed to start Service for snap application edgexfoundry.security-proxy-setup.

Test 2 - upgrade from latest/edge to main:
$ sudo snap remove edgexfoundry

$ sudo snap install edgexfoundry --edge

$ sudo snap install ./edgexfoundry_2.0.1-dev.90_amd64.snap --dangerous
error: cannot perform the following tasks:
- Stop snap "edgexfoundry" services (systemctl command [start snap.edgexfoundry.security-proxy-setup.service] failed with exit status 1: Job for snap.edgexfoundry.security-proxy-setup.service failed because the control process exited with error code.
See "systemctl status snap.edgexfoundry.security-proxy-setup.service" and "journalctl -xeu snap.edgexfoundry.security-proxy-setup.service" for details.
)
- Start snap "edgexfoundry" (unset) services (systemctl command [start snap.edgexfoundry.security-proxy-setup.service] failed with exit status 1: Job for snap.edgexfoundry.security-proxy-setup.service failed because the control process exited with error code.
See "systemctl status snap.edgexfoundry.security-proxy-setup.service" and "journalctl -xeu snap.edgexfoundry.security-proxy-setup.service" for details.
)

$ sudo snap logs -n 10 edgexfoundry.security-proxy-setup
level=INFO ts=2021-11-10T17:01:34.741476888Z app=security-proxy-setup source=secret.go:76 msg="Created SecretClient"
level=INFO ts=2021-11-10T17:01:34.741547671Z app=security-proxy-setup source=secret.go:81 msg="SecretsFile not set, skipping seeding of service secrets."
level=INFO ts=2021-11-10T17:01:34.74157943Z app=security-proxy-setup source=config.go:510 msg="Using local configuration from file (3 envVars overrides applied)"
level=INFO ts=2021-11-10T17:01:34.74162703Z app=security-proxy-setup source=secrets.go:276 msg="kick off token renewal with interval: 30m0s"
level=INFO ts=2021-11-10T17:01:34.753412165Z app=security-proxy-setup source=service.go:103 msg="the service on http://<IP_ADDRESS>:8100/status is up successfully"
level=ERROR ts=2021-11-10T17:01:34.761932067Z app=security-proxy-setup source=service.go:385 msg="proxy service for core-command returned status 401"
level=ERROR ts=2021-11-10T17:01:34.762075887Z app=security-proxy-setup source=init.go:53 msg="proxy service for core-command returned status 401"
snap.edgexfoundry.security-proxy-setup.service: Main process exited, code=exited, status=1/FAILURE
snap.edgexfoundry.security-proxy-setup.service: Failed with result 'exit-code'.
Failed to start Service for snap application edgexfoundry.security-proxy-setup.

Test 3 - disable and enable
$ sudo snap install edgexfoundry --edge
edgexfoundry (edge) 2.0.1-dev.94 from Canonical✓ installed

$ sudo snap disable edgexfoundry
edgexfoundry disabled

$ sudo snap enable edgexfoundry
error: cannot perform the following tasks:
- Start snap "edgexfoundry" (3330) services (systemctl command [start snap.edgexfoundry.security-proxy-setup.service] failed with exit status 1: Job for snap.edgexfoundry.security-proxy-setup.service failed because the control process exited with error code.
See "systemctl status snap.edgexfoundry.security-proxy-setup.service" and "journalctl -xeu snap.edgexfoundry.security-proxy-setup.service" for details.
)

$ journalctl -n 100 -u snap.edgexfoundry.security-proxy-setup.service --no-pager -o cat
...
snap.edgexfoundry.security-proxy-setup.service: Deactivated successfully.
Finished Service for snap application edgexfoundry.security-proxy-setup.
Starting Service for snap application edgexfoundry.security-proxy-setup...
level=INFO ts=2021-11-12T11:05:38.094379134Z app=security-proxy-setup source=config.go:373 msg="Loaded service configuration from /var/snap/edgexfoundry/3330/config/security-proxy-setup/res/configuration.toml"
level=INFO ts=2021-11-12T11:05:38.094782615Z app=security-proxy-setup source=variables.go:352 msg="Variables override of 'AccessTokenFile' by environment variable: ACCESSTOKENFILE=/var/snap/edgexfoundry/3330/secrets/consul-acl-token/bootstrap_token.json"
level=INFO ts=2021-11-12T11:05:38.094799047Z app=security-proxy-setup source=variables.go:352 msg="Variables override of 'SecretStore.TokenFile' by environment variable: SECRETSTORE_TOKENFILE=/var/snap/edgexfoundry/3330/secrets/security-proxy-setup/secrets-token.json"
level=INFO ts=2021-11-12T11:05:38.094804811Z app=security-proxy-setup source=variables.go:352 msg="Variables override of 'KongAuth.JWTFile' by environment variable: KONGAUTH_JWTFILE=/var/snap/edgexfoundry/3330/secrets/security-proxy-setup/kong-admin-jwt"
level=INFO ts=2021-11-12T11:05:38.094866435Z app=security-proxy-setup source=secret.go:52 msg="Creating SecretClient"
level=INFO ts=2021-11-12T11:05:38.094874931Z app=security-proxy-setup source=secret.go:59 msg="Reading secret store configuration and authentication token"
level=INFO ts=2021-11-12T11:05:38.094934554Z app=security-proxy-setup source=secret.go:71 msg="Attempting to create secret client"
level=INFO ts=2021-11-12T11:05:38.096647139Z app=security-proxy-setup source=secret.go:76 msg="Created SecretClient"
level=INFO ts=2021-11-12T11:05:38.096695424Z app=security-proxy-setup source=secret.go:81 msg="SecretsFile not set, skipping seeding of service secrets."
level=INFO ts=2021-11-12T11:05:38.09684199Z app=security-proxy-setup source=config.go:510 msg="Using local configuration from file (3 envVars overrides applied)"
level=INFO ts=2021-11-12T11:05:38.096850256Z app=security-proxy-setup source=secrets.go:276 msg="kick off token renewal with interval: 30m0s"
level=INFO ts=2021-11-12T11:05:38.105603388Z app=security-proxy-setup source=service.go:103 msg="the service on http://<IP_ADDRESS>:8100/status is up successfully"
level=ERROR ts=2021-11-12T11:05:38.110774526Z app=security-proxy-setup source=service.go:385 msg="proxy service for consul returned status 401"
level=ERROR ts=2021-11-12T11:05:38.110823472Z app=security-proxy-setup source=init.go:53 msg="proxy service for consul returned status 401"
snap.edgexfoundry.security-proxy-setup.service: Main process exited, code=exited, status=1/FAILURE
snap.edgexfoundry.security-proxy-setup.service: Failed with result 'exit-code'.
Failed to start Service for snap application edgexfoundry.security-proxy-setup.

🔥 Exception or Error
- Start snap "edgexfoundry" (3330) services (systemctl command [start snap.edgexfoundry.security-proxy-setup.service] failed with exit status 1: Job for snap.edgexfoundry.security-proxy-setup.service failed because the control process exited with error code.
See "systemctl status snap.edgexfoundry.security-proxy-setup.service" and "journalctl -xeu snap.edgexfoundry.security-proxy-setup.service" for details.

🌍  Your Environment
Deployment Environment: Snap
EdgeX Version: 2.0.0

This is caused by https://github.com/edgexfoundry/edgex-go/issues/3818 and is fixed via https://github.com/edgexfoundry/edgex-go/pull/3819.


ga.X() and ga.coord_vec are two ways to spell the same thing

We should probably deprecate one of these. We already deprecated ga.lt_x which was yet another spelling of this.
Thoughts, @utensil?

I'll deprecate X for readability


Jio Tv channels constantly buffering

Jiotv

Add-on version:  2.0.0
Kodi version: Kodi 19
Operating system version/name:  Android TV and  Windows 11
Using from country: INDIA

Describe the bug
After opening a TV channel on jiotv it starts buffering within a few seconds on every adnroid or windows device.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See an error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Debug log

The debug log can be found from this link:

Same issue
I have 50Mbps internet and using Realme TV
Always 25% memory free showing

This happens to me too.
The Youtube, Prime Video, Netflix, Hotstar and everything else works fine without buffering but JioTv addon inside Kodi has occasional buffering, as a guy works for Cisco I can understand that this is happening due to throttling at peak loads on the ISP end but to compact better during those can the JioTv addon use "Adaptive Input Stream" .
@iMro0t


Integration Test - Release - 2019/06/03 22:54:30

Auto create for integration test. AnotherAuthorUpdatedArticleFlow

@PRMergerTest3 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@PRMergerTest3 : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Wrap await with async

With wrapping the await can be this code used in tests in real browser. Without this it cause error: Top-level await is not available in the configured target environment...

What browser are you using?  From the MDN docs, it seems modern browsers support top-level await already: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await#browser_compatibility

Your're right. Seems I have some configuration issue with vite My build target option is ignored and the default module (['es2020', 'edge88', 'firefox78', 'chrome87', 'safari14'])is used instead.
Closing as it is not problem of this library,


feat(tier4_state_rviz_plugin): add emergency button

Signed-off-by: Shumpei Wakabayashi<EMAIL_ADDRESS>Description

Add set/clear emergency button at state rviz plugin.
If you press Set Emergency button, it publishes /api/autoware/set/emergency, and set emergency true.
Then Clear Emergency button will show up, and if you press it, set emergency false.
Note that this set/clear emergency button can affect both AUTO GATE and EXTERNAL GATE mode.
This PR is migrated from https://github.com/autowarefoundation/autoware.universe/pull/1045.
https://user-images.githubusercontent.com/42209144/172156613-dbb0a013-430b-4ee1-b90c-8c69d3b55431.mp4
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.

[x] I've confirmed the contribution guidelines.
[x] The PR follows the pull request guidelines.

In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.

[ ] The PR follows the pull request guidelines.

Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.

[ ] There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

ping @TakaHoribe

@shmpwk @taikitanaka3 Sorry for my late. It is great. Let's get merged.


Don't change all non-whitelisted blocks' resistance to 5.

Keeps the TF adjustments because they are specific values and make more sense than setting everything to 5.

Like chochom wrote on discord, probably because half the mod deals with exploding stuff 😛


Removing H1 to reuse this content in a H2 for docs

Please see this page: https://docs.microsoft.com/en-us/azure/cosmos-db/sql-api-sdk-dotnet-standard it has 2 titles. This PR is to remove the second title.
Pull Request Template
Pull Request Title

Changelog will be generated from PR titles.
PR titles will be formatted with the following layout.

Internal is optional and represents changes with no public facing changes such as test only changes
Category represents the area of the change like batch, changefeed, point operation, or query
Add or Fix identifies if a new feature is being added or if a bug is being fixed
Description is a user friendly explanation of the change

Format
[Internal] Category: (Add|Fix) Description
Example
Diagnostics: Add GetElapsedClientLatency to CosmosDiagnostics
PartitionKey: Fix null reference when using default(PartitionKey)
[Internal] Query: Add code generator for CosmosNumbers for easy additions in the future.
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Type of change
Please delete options that are not relevant.

[ ] 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)
[ ] This change requires a documentation update

Closing issues
Put closes #XXXX in your comment to auto-close the issue that your PR fixes (if such).
Assignee
Please add yourself as the assignee
Projects
Please add relevant projects so this issue can be properly tracked.

/azp run


Error in mapping and polish

Hello Mathias,
I started using the pipeline and successfully analyzed a nanopore dataset of three samples. However, when I increase the number of raw reads to 75, the process becomes very time-consuming, and I encounter errors during the mapping and polishing steps.
Mapping:
Error in rule mapping:
input: results/vsearch/samples/concatenated_otus.fasta, results/vsearch/samples/sample1_cluster.fasta
output: results/mapping/samples/sample1_aligned.sam
log: logs/mapping/sample1.log (check log file(s) for error message)
conda-env: /mnt/beegfs/scratch/directory/ONT-AmpSeq/prova/ONT-AmpSeq-main/.snakemake/conda/27af824679d9d219710cd80d9841b2b1_
shell: minimap2 -ax map-ont -K500M -t 24 --secondary=no results/vsearch/samples/sample1_cluster.fasta   results/vsearch/samples/concatenated_otus.fasta > results/mapping/samples/sample1_aligned.sam
(one of the commands exited with non-zero exit code; note that snakemake uses bash strict mode!)
Polish:
Error in rule polish_racon:
input: results/vsearch/samples/concatenated_otus.fasta, results/mapping/samples/sample1_aligned.sam, result
s/vsearch/samples/sample1_cluster.fasta
output: results/polish/samples/sample1_polished.fasta
log: logs/polish_racon/sample1.log (check log file(s) for error message)
conda-env: /mnt/beegfs/scratch/directory/ONT-AmpSeq/prova/ONT-AmpSeq-main/.snakemake/conda/64a8d592aea43ab37f0ca23d09
f99dd9_
shell: racon results/vsearch/samples/concatenated_otus.fasta results/mapping/samples/sample1_aligned.sam results/vsearch/samples/sample1_cluster.fasta -t 24 > results/polish/samples /sample1_polished.fasta
(one of the commands exited with non-zero exit code; note that snakemake uses bash strict mode!)
Removing output files of failed job polish_racon since they might be corrupted:
Is this behavior normal?
Thank you in advance for your help.
Best regards,
C.

Hi Patrick,
Thank you for your quick response. I have attached the files you referenced. It could potentially be a resource issue, as I am working with 74 samples for the analysis. However, I have made efforts to optimize the pipeline's resource requirements.
Best regards,
C.
polish_sample1.txt
total_reads.txt
mapping_sample1.txt

Hi C
There is 2 clear issues related to time and resources available and a potential issue related to file size.
I see a potential issue related to filtering.
The "sample35" does not really have any reads (128) and is filtered to a degree potentially resulting in a empty file post polish (12 reads post filtering). If said output file after polish is empty, the snakemake workflow is not able to process it and will result in termination. I would suggest removing this sample and rerunning the project. Also you have some reads with vast amounts of data ++100k reads. I am unsure about your work of interest, but with 16S to detect low abundance species and represent the full diversity, I usually go for around 10k reads per sample. So, if you increase the q-score the overall process will run faster.
For polish, there is a termination due to time "slurmstepd: error: *** JOB 2494702 ON pirineus22 CANCELLED AT 2024-10-07T20:00:53 DUE TO TIME LIMIT ***", to overcome this, go into "workflow/rules/05-polish_racon.smk" and edit the "runtime = 60" from "60" to "600" or "1440", for it to run in 10h or 24h instead.
During minimap there is also a oom-kill event "slurmstepd: error: Detected 1 oom-kill event(s) in step 2494320.batch cgroup. Some of your processes may have been killed by the cgroup out-of-memory handler." meaning that the individual process required more memory than available and terminated the step. Go into "workflow/rules/04-mapping.smk" and edit in line 28. We have yet to encounter a issue in file size if increasing the memory to 40G "mem_mb = 40960", but have encountered issues with "only" 30G. The minimap2 step very demanding, especially with larger files. So the 40G requirement may be a limiting factor.
I hope this helps, do let me know if it works.
Best
Patrick


Define critical metrics of the agent and expose them.

Hello, we have started to look into OCM and came up with a few metrics that we think could potentially be valuable in addition to the existing ones that are in place for the Placement CR. Some of the below might not be feasible in the current state of the code, but can be used potentially as a starting point for adding
Current Metrics:

schedulingDuration: Time to schedule a placement.
bindDuration: Time to bind a placement to placementDecisions.
PluginDuration: Duration of plugin execution for a placement.

Proposed Additional Metrics:

ManifestWork Object Count:

Metric Name: manifestWorkObjectCount
Description: Counts the total number of ManifestWork objects. This metric can help in understanding the workload and distribution of resources managed by the hub.
Type: Gauge

Active Managed Clusters Count:

Metric Name: activeManagedClustersCount
Description: Tracks the number of active clusters managed by the hub. This is crucial for assessing the scale at which the hub is operating.
Type: Gauge

ManagedClusterSets Count:

Metric Name: managedClustersCount, managedClusterSetsCount
Description: Provides counts for ManagedClusterSets, offering insights into the cluster grouping and management efficiency.
Type: Gauge

Cluster Health Status:

Metric Name: clusterHealthStatus
Description: Reports on the health status of each managed cluster. This can be instrumental in proactive monitoring and maintenance.
Type: Gauge (with labels for different health statuses)

Resource Utilization Metrics:

Metric Name: clusterResourceUtilization
Description: Measures resource utilization (CPU, Memory, etc.) across managed clusters. This aids in resource planning and optimization.
Type: Histogram/Summary

API Request Latency:

Metric Name: apiRequestLatency
Description: Captures the latency of various API requests within OCM. This can help in identifying and resolving bottlenecks.
Type: Histogram

Cluster Sync Latency:

Metric Name: clusterSyncLatency
Description: Monitors the time taken for synchronization tasks between the hub and managed clusters.
Type: Histogram

Cluster Update Frequency:

Metric Name: clusterUpdateFrequency
Description: Tracks how frequently each cluster's configuration or state is updated.
Type: Counter

Error Counts:

Metric Name: errorCounts
Description: Records the number of errors encountered across various OCM operations, aiding in reliability analysis.
Type: Counter

cc @bjoydeep this looks very interesting

Great points @DerekHeldtWerle . Yes, it absolutely makes sense to add more metrics. BTW, in RedHat's productized version of ACM, we do add a few metrics: https://github.com/stolostron/metrics-chronicle/blob/main/docs/acm/component/server-foundation/metrics.md. You will see some overlaps with what you suggested above.
6,7,8 would be very interesting. It informs engineers of OCM as well consumers of OCM about key SLIs which can be used to form SLO. Hugely +1 that. We can think through how to measure these meaningfully from Kube controllers.
I am personally a little ambivalent to 5. clusterResourceUtilization is ideally gathered by Prometheus and takes that route. Would be eager to hear your take on it.
However, there is different requirement IMHO which can be great practical help to engineers maintaining the system. If we can collect key life cycle changes in a cluster and publish them as events that can be consumed by non-Kube systems, that may be very helpful. If for example a node has been added or removed from a cluster - being informed about that explicitly can be immense help when debugging problems. Just seeding this idea to see if it spawns some thoughts! Key here is that it should be small selected set.


Add ansible-lint to our list of linters on PRs

Did this partially here: https://github.com/marinatedconcrete/config/commit/afc02aa3a0c6b4001fac7b648ba5f78967e94ee9


Webpack with --watch should save file when it has been deleted even if there are no changes

In the beginning it is frustrating as hell and I deleted my bundle.js and then I added in a white space to my entry file and then saved it.  The watcher did not save a new file (even from cache) and I think that it should.  At this particular moment I wanted to make sure that the server was capable of writing that file (since I had been changing so many things) and I ended up being confused and wasting minutes.
If its all of the same then I think that the watcher should first check to see if any of the files that it recently created are missing before it decides not to write anything.  This will help people setting the environment up.

@sokra is there a flag that will enable a build if unchanged, sometimes it's nice to do a rebuild/refresh the page with a simple cmd+s.


Enable liquibase

This PR enables using liquibase to manage database DDL and DML changes.
The initial-schema.sql file was dumped from the stage postgresql database.  It only contains DDL.
https://github.com/eclipse-pass/main/issues/668
Once this PR is merged, this pass-docker PR should be merged: https://github.com/eclipse-pass/pass-docker/pull/354

I tested locally and it works great. Only change would be updating the README to remove the mentions of javax.persistence.schema-generation.database.action and say something about liquibase.

Done


chore: prepare for v0.23.0

This change will enable testing of the upgrade scripts for new minor release
Checklist

[ ] Architecture Design Records have been added as adr/*.md and appended to list in adr/_index.md, if applicable.
[ ] The values-schema.yaml file and test/** fixtures have been updated to reflect code changes, if applicable.
[ ] The OpenApi Schema from redkubes/otomi-api project is compatible with definitions from values-schema.yaml file, if applicable.
[ ] Helm releases are meeting otomi's baseline security policies, if applicable.
[ ] Helm chart and helmfile changes are tested against upgrade scenario, if applicable.

LGTM


Correction to the root element in Blazor

Corrected the reference to the root component app in Blazor

Hello @poornimanayar ... Thanks, but this is in the <5.0 content, so it should remain as is.

Oh ... sorry ... I didn't see the version tag that ended the <5.0 content early.
However, we'll need to version this change. I'll take care of it. Thanks for sending this in.

 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.:x: poornimanayar sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

That should take care of it. I'm in the process of editing all of the topics right now, so I'll be fixing all of the little nits like this that I find.
btw -- @poornimanayar ... If you agree with the license terms, can you sign the CLA? :point_up: I can't merge this unless you sign off. No worries tho if you decide not to sign. I can set up a new PR with the updates.
cc: @jongalloway ... This is still a problem where we don't see the CLA on some PRs until after an update/review of the proposed changes. It virtually forces us to break the rule of not looking at the PR because we just don't know if the person has signed the CLA.

Hi @guardrex ,
I have signed it. Is there anything tags etc I should watch out for when I submit changes like this in future?
Poornima

We version content using "moniker range" properties, as you can see on the PR. They're easy to use. Sometimes, we need to discuss versioning prior to a PR, so recommend an issue first if the versioning seems complicated. If the versioning is simple, as it is here, then just submit the PR directly as you did (i.e., an issue isn't required for quick fixes like this).


Question : Any reason render is abstract inside the TemplateCore

Can we move the render method from Template class to TemplateCore ?
Any specific reason for not keeping it inside TemplateCore .
This probably is also related to discussion https://github.com/qiqphp/qiq/issues/8 different compiler, passing additional factories to helperlocator if https://github.com/qiqphp/qiq/pull/9 is merged etc.

Hi @harikt -- thanks for your patience.
The purpose of having it implemented in Template, is so that it does not have access to private properties in TemplateCore. Otherwise those properties would be available inside templates.
Having said that, I don't recall why I declared it as abstract in TemplateCore; looking at it now, it might as well have been left out of TemplateCore entirely and implemented only in Template.
Does that help at all?

I do want to look back, don't recall what all stuffs I have in mind at the time. Bit busy, so will get back when I get some time.

I don't recall why I declared it as abstract in TemplateCore

Oh -- because it gets called from TemplateCore::__invoke().
@harikt Any other thoughts here?

Hey @pmjones I have been digging into the conversation. But I guess, I lost what I was trying to get from. ( Due to my poor communication / context in the content ) . May be we can close this issue for now. I can re-open in case I need the feature.

Very good, sir -- reopen as necessary!


nixos/nextcloud: Add support for PostgreSQL in database.createLocally

Description of changes
Modify database.createLocally to support PostgreSQL and MySQL database and user creation with socket authentication.
Remove the init script which was using password and local network connection.
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

you might want to add something like this:
  systemd.services."nextcloud-setup" = {
    requires = [ "postgresql.service" ];
    after = [ "postgresql.service" ];
  };

This feature got implemented in https://github.com/NixOS/nixpkgs/pull/229159 Thank you for your PR


Delete Bad / Old Files

https://github.com/lytics/jstag/pull/20
Removing all the unnecessary template files, js files and general outdate / junk files. Should be left with core async and io files necessary to move forward. Integration with Gulp and other system level changes to be included in separate pr.

:+1:


Fix frequency rule

This patch is fixing frequency rule behaviour : BUG -> https://github.com/Yelp/elastalert/issues/2651

@keuko
Any way you could push this PR to https://github.com/jertel/elastalert ?

Hi,
Yes, sure ...but can I ask if this will be official git repo ?
Thanks
pi 23. 4. 2021 o 18:19 Naoyuki Sano @.***> napísal(a):

@keuko https://github.com/keuko
Any way you could push this PR to https://github.com/jertel/elastalert ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Yelp/elastalert/pull/2653#issuecomment-825768317, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AF4UEEIISTRLO7Y3LIWEEFTTKGM2TANCNFSM4KLI653Q
.

Yes, sure ...but can I ask if this will be official git repo ?

Please judge for yourself.


Add members of the team to the OWNERS file

This pull requests adds the members of the team to the OWNERS file as reviewers.

@cben, @elad661, @moolitayer, @nimrodshn, @oourfali, @yaacov, @zeari, @zgalor please review and let me know if there is any error.
For now I am keeping only Mooli and myself as approvers, so if you need to merge something urgently contact one of us.

/lgtm

/lgtm

/lgtm

/lgtm


C api for pointer types

Sometimes there is a need to check whether a type is pointer or not. For example, the only difference between a stage in/out block and a stage in/out variable of  a struct type is that the block is represented as a pointer to a struct. Therefore, in order to check that a stage in/out is a block or a simple variable of a struct type, it's necessary to know whether it's a pointer type or not.
glsl:
1)
in InputBlock
{
    float member;
} input;

2)
struct InputBlockStruct
{
    float member;
}

in InputBlockStruct input;

In this case you would check for Block decoration on the type though. In both cases, they are pointers to StorageInput/Output.

Thanks, it works!


Bring back support for anchoring [ECR-3714].

Overview

Brought back support for anchoring assuming that the anchoring service will be deployed later (in analogue to the time service).
See: https://jira.bf.local/browse/ECR-3714
Definition of Done

[x] There are no TODOs left in the code
[ ] Change is covered by automated tests
[x] The coding guidelines are followed
[x] Public API has Javadoc
[x] Method preconditions are checked and documented in the Javadoc of the method
[x] Changelog is updated if needed (in case of notable or breaking changes)
[ ] The continuous integration build passes

Coverage remained the same at 86.391% when pulling dda0c12c436391b103fafe272026520a71e8fdbb on skletsun:ecr-3714-return-anchoring into a563dcfa9fcebd6593934cef6a71afa4b4b7d2a7 on exonum:master.


JsonProperties avoiding 'Unrecognized request argument supplied' erro…

…r in Image and Completion Requests
For developers that don't use the client library.
Example was made with RestTemplate.
EX. ERROR:
org.springframework.web.client.HttpClientErrorException$BadRequest: 400 Bad Request: "{  "error": {    "message": "Unrecognized request argument supplied: logitBias",    "type": "invalid_request_error",    "param": null,    "code": null  }}"

@cryptoapebot Sorry but the project already use Jackson library like in com.theokanning.openai.image package, and if I would use existing models like CompletionRequest in the -api- module, I need they will be serialized/deserialized correctly.

I'll go ahead and add these everywhere, then nobody will have to will worry about setting jackson to snake case anymore


Getting data in real time

Hello friends, it's possible to get the data in realtime?
I´m trying to do this using ajax, but i can´t get with the solution. I need somehow change the data.json(), to not get the data from an external file otherwise from a variable that i get from the ajax response. No matter if i have to do it on another way, i just need the real time data. Because many people manipulate the data, making it changes a lot. It´s annoying to refres the page every time. This is the way i´m trying to accomplish this:
The response in method.php is in json_encode();
$.ajax({
url: 'method.php',
type: "POST",
data: {
id: 'O-6066'
},
success: function(data) {
d3.json(i need the data work in this place, not with an url).then((dataFlattened) => {
dataFlattened.forEach((d) => {
const val = Math.round(d.name.length / 2);
d.progress = [...new Array(val)].map((d) => Math.random() * 25 + 5);
});
}
});
Thanks for the help.

The question is not clear

Let me explain, i´m getting the data from a database, and this database is updated a lot of times. That´s why i´m using ajax, to make a request to the server. What i need is to get the data in real time, without refreshing the page to get the new data.

Ajax is definitely a way to go, but what I don't understand is question relevance to the org chart library. For me looks like your question belongs to stackoverflow

d3.json is just the ajax wrapper, you can invoke the chart just with your own data. d3.json just downloads the data

Oh okay, i need to know if there is a way with the org chart library to get the json locale (in a variable), no in a external file. d3.json() uses an url.

Org chart just takes your data and draws it. How you load the data is up to you.
If you will use ajax just invoke the graph with your data and that's it
If you can provide online stackblitz sample with the problem showcased that would be helpful

The json is locale in a variable, i need to read the variable to work with this.
var json = [
{
"name": "Jagger",
"imageUrl": "https://raw.githubusercontent.com/bumbeishvili/Assets/master/Projects/D3/Organization Chart/cto.jpg",
"area": "Corporate",
"profileUrl": "http://example.com/employee/profile",
"office": "CTO office",
"tags": "Ceo,tag1,manager,cto",
"isLoggedUser": "false",
"positionName": "Chief Executive Officer",
"id": "O-6066",
"parentId": "",
"size": ""
},
{
"name": "Jagger",
"imageUrl": "https://raw.githubusercontent.com/bumbeishvili/Assets/master/Projects/D3/Organization Chart/cto.jpg",
"area": "Corporate",
"profileUrl": "http://example.com/employee/profile",
"office": "CTO office",
"tags": "Ceo,tag1,manager,cto",
"isLoggedUser": "false",
"positionName": "Chief Executive Officer",
"id": "O-6067",
"parentId": "O-6066",
"size": ""
},
{
"name": "Jagger",
"imageUrl": "https://raw.githubusercontent.com/bumbeishvili/Assets/master/Projects/D3/Organization Chart/cto.jpg",
"area": "Corporate",
"profileUrl": "http://example.com/employee/profile",
"office": "CTO office",
"tags": "Ceo,tag1,manager,cto",
"isLoggedUser": "false",
"positionName": "Chief Executive Officer",
"id": "O-6068",
"parentId": "O-6066",
"size": ""
},
{
"name": "Jagger",
"imageUrl": "https://raw.githubusercontent.com/bumbeishvili/Assets/master/Projects/D3/Organization Chart/cto.jpg",
"area": "Corporate",
"profileUrl": "http://example.com/employee/profile",
"office": "CTO office",
"tags": "Ceo,tag1,manager,cto",
"isLoggedUser": "false",
"positionName": "Chief Executive Officer",
"id": "O-6069",
"parentId": "O-6066",
"size": ""
}
];
d3.json(json).then((dataFlattened) => {
dataFlattened.forEach((d) => {
const val = Math.round(d.name.length / 2);
d.progress = [...new Array(val)].map((d) => Math.random() * 25 + 5);
});

In that case just remove d3.json part and write
chart.data(data).render()
Please extend this [example]
](https://stackblitz.com/edit/web-platform-3gwnsg)
And provide online url so I can make slight adjustments

https://stackblitz.com/edit/web-platform-nwdzmn?file=index.html

Here, just removed d3.json part and passed your data instead of dataFlattened
https://stackblitz.com/edit/web-platform-kzjy7j?file=index.html

Thank you so much for your help, i was able to accomplish what i needed to do. In the future i´ll ask more things, this lib have a lot of interesting things. Have a good day.


Activity Diagram to Flow.md

Context (Problem, Motivation, Solution)
IMO: Logic will only get more complicated. Better to start documenting it now, and keep it up to date.
Describe Your Changes
Added a diagram flow for New Game in flow.md.
Added a folder for assets in docs folder.
Added the UML (both .png and .uml) in the assets folder.
Checklist

[X] I have performed a self-review of my code
[X] I ran make check and fixed resulting issues
I get warnings. Is that fine?
[ ] I ran the relevant tests and they all pass
[ ] I wrote tests for my new features, or added regression tests for the bug I fixed

Testing
I manually checked that flow.md was rendering the expected image.

Seems good! Last ask, can you avoid reformating the indentation on the markdown file?

I think I fixed the indentation you were talking about.


No working when using in Swift Project

Everything works fine in Objc project, but when I tried to add it to my Swift project,
use_frameworks!
pod 'PQFCustomLoaders'

It shows

Hi @antonio081014 , I've fixed the issue with UIColors+FlatColors here: https://github.com/poolqf/PQFCustomLoaders/commit/bfbf6a7b560db89da480a1e9e4d3a4fa66cec300
The thing is that although you can install PQFCustomLoaders, it is not usable. Tbh I've not invested more than 30 min, but seems that to make it work in Swift it needs a little bit of work


Changing working directory with process.chdir() in one instance changes it for all VMs

When using process.chdir() in one Node.js VM, the current working directory changes in all VMs.  Should change only for the called process.

Fixed in 9d14ea0521adf74a21b261dc037dd66f092ae322

Now included in v0.2.0


Allow layout extensions, e.g. custom overlays?

[X] I have verified there are no duplicate active or recent bugs, questions, or requests
[X] I have verified that I am using the latest version of Material Camera.
[X] I have given my issue a non-generic title.

Is there any way, or what would be the best way to extend the functionality of this library?
For example what I am trying to do is have an overlay image displayed over the capture preview.
While I can override the mcam_fragment_videocapture.xml to tweak the layout, I am unaware of any way to be able to control any new items that I add.
Any thoughts / suggestions?

+1

+1

+1

Any solution now?

+1


Add more content in AI and ML

I would like to add History and Evolution of AI and ML and Ethical Concerns and Challenges in AI as these are must to learn in AIML.Please assign me under gssoc24

Let’s discuss about it first
On Tue, 1 Oct 2024 at 20:18, Pavitraa G @.***> wrote:

I would like to add History and Evolution of AI and ML and Ethical
Concerns and Challenges in AI as these are must to learn in AIML.Please
assign me under gssoc24
—
Reply to this email directly, view it on GitHub
https://github.com/yatulearn/yatulearn/issues/3, or unsubscribe
https://github.com/notifications/unsubscribe-auth/BKZA7EWHVBGE2WVL2YH7P3DZZKY2XAVCNFSM6AAAAABPFYISTWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGU2TSNBWHEZDQOI
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

We already have the content about ai and ml, so we can modify it and add the new content to the section of ai ml.

Let’s do it


Remove PDF.js mention from README.md

Fixes #737.

Codecov Report

Merging #738 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #738   +/-   ##
=======================================
  Coverage   96.65%   96.65%
=======================================
  Files          33       33
  Lines        1227     1227
=======================================
  Hits         1186     1186
  Misses         41       41

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 522a46d...b589218. Read the comment docs.


UnicodeDecodeError： ‘utf-8’ codec can't decode byte 0xbf in position 289: invalid start byte

This error occurred while running https://bbs.360che.com/. I don't know why. I hope someone who is strong can solve it.

[18/Mar/2019 07:29:27] "PATCH /api/projects/yiqi/spiders/bbs.360che.com/samples/5b7e-4ac3-9e86 HTTP/1.0" 500 17950
Internal Server Error: /api/projects/yiqi/spiders/bbs.360che.com/samples/5b7e-4ac3-9e86
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/marshmallow/utils.py", line 319, in _get_value_for_key
return obj[key]
TypeError: 'Sample' object is not subscriptable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/portia_server/portia_orm/relationships.py", line 98, in get
assert field is not None
AssertionError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py", line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py", line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python3.5/dist-packages/django/views/decorators/csrf.py", line 58, in wrapped_view
return view_func(*args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/rest_framework/viewsets.py", line 95, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/lib/python3.5/contextlib.py", line 30, in inner
return func(*args, **kwds)
File "/app/portia_server/portia_api/resources/route.py", line 72, in dispatch
return super(JsonApiRoute, self).dispatch(request, *args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/rest_framework/views.py", line 494, in dispatch
response = self.handle_exception(exc)
File "/app/portia_server/portia_api/resources/route.py", line 75, in handle_exception
response = super(JsonApiRoute, self).handle_exception(exc)
File "/usr/local/lib/python3.5/dist-packages/rest_framework/views.py", line 454, in handle_exception
self.raise_uncaught_exception(exc)
File "/usr/local/lib/python3.5/dist-packages/rest_framework/views.py", line 491, in dispatch
response = handler(request, *args, **kwargs)
File "/app/portia_server/portia_api/resources/route.py", line 239, in retrieve
return Response(serializer.data, status=HTTP_200_OK)
File "/app/portia_server/portia_api/jsonapi/serializers.py", line 213, in data
return self.dump(self.instance).data
File "/usr/local/lib/python3.5/dist-packages/marshmallow/schema.py", line 496, in dump
**kwargs
File "/usr/local/lib/python3.5/dist-packages/marshmallow/marshalling.py", line 146, in serialize
index=(index if index_errors else None)
File "/usr/local/lib/python3.5/dist-packages/marshmallow/marshalling.py", line 67, in call_and_store
value = getter_func(data)
File "/usr/local/lib/python3.5/dist-packages/marshmallow/marshalling.py", line 140, in
getter = lambda d: field_obj.serialize(attr_name, d, accessor=accessor)
File "/usr/local/lib/python3.5/dist-packages/marshmallow/fields.py", line 241, in serialize
value = self.get_value(attr, obj, accessor=accessor)
File "/usr/local/lib/python3.5/dist-packages/marshmallow/fields.py", line 185, in get_value
return accessor_func(check_key, obj, default)
File "/usr/local/lib/python3.5/dist-packages/marshmallow/schema.py", line 404, in get_attribute
return utils.get_value(attr, obj, default)
File "/usr/local/lib/python3.5/dist-packages/marshmallow/utils.py", line 306, in get_value
return _get_value_for_keys(key.split('.'), obj, default)
File "/usr/local/lib/python3.5/dist-packages/marshmallow/utils.py", line 311, in _get_value_for_keys
return _get_value_for_key(keys[0], obj, default)
File "/usr/local/lib/python3.5/dist-packages/marshmallow/utils.py", line 322, in _get_value_for_key
attr = getattr(obj, key)
File "/app/portia_server/portia_orm/relationships.py", line 101, in get
self.related_name: instance
File "/app/portia_server/portia_orm/models.py", line 890, in load
storage, instance, sample=sample, **kwargs)
File "/app/portia_server/portia_orm/base.py", line 589, in load
file_data, many=many).data
File "/usr/local/lib/python3.5/dist-packages/marshmallow/schema.py", line 544, in load
result, errors = self._do_load(data, many, partial=partial, postprocess=True)
File "/app/portia_server/portia_orm/serializers.py", line 85, in _do_load
data, many, *args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/marshmallow/schema.py", line 612, in _do_load
index_errors=self.opts.index_errors,
File "/usr/local/lib/python3.5/dist-packages/marshmallow/marshalling.py", line 294, in deserialize
index=(index if index_errors else None)
File "/usr/local/lib/python3.5/dist-packages/marshmallow/marshalling.py", line 67, in call_and_store
value = getter_func(data)
File "/usr/local/lib/python3.5/dist-packages/marshmallow/marshalling.py", line 287, in
data
File "/usr/local/lib/python3.5/dist-packages/marshmallow/fields.py", line 263, in deserialize
output = self._deserialize(value, attr, data)
index=(index if index_errors else None)
File "/usr/local/lib/python3.5/dist-packages/marshmallow/marshalling.py", line 67, in call_and_store
value = getter_func(data)
File "/usr/local/lib/python3.5/dist-packages/marshmallow/marshalling.py", line 140, in
getter = lambda d: field_obj.serialize(attr_name, d, accessor=accessor)
File "/usr/local/lib/python3.5/dist-packages/marshmallow/fields.py", line 241, in serialize
value = self.get_value(attr, obj, accessor=accessor)
File "/usr/local/lib/python3.5/dist-packages/marshmallow/fields.py", line 185, in get_value
return accessor_func(check_key, obj, default)
File "/usr/local/lib/python3.5/dist-packages/marshmallow/schema.py", line 404, in get_attribute
return utils.get_value(attr, obj, default)
File "/usr/local/lib/python3.5/dist-packages/marshmallow/utils.py", line 306, in get_value
return _get_value_for_keys(key.split('.'), obj, default)
File "/usr/local/lib/python3.5/dist-packages/marshmallow/utils.py", line 311, in _get_value_for_keys
return _get_value_for_key(keys[0], obj, default)
File "/usr/local/lib/python3.5/dist-packages/marshmallow/utils.py", line 322, in _get_value_for_key
attr = getattr(obj, key)
File "/app/portia_server/portia_orm/relationships.py", line 101, in get
self.related_name: instance
File "/app/portia_server/portia_orm/models.py", line 890, in load
storage, instance, sample=sample, **kwargs)
File "/app/portia_server/portia_orm/base.py", line 589, in load
file_data, many=many).data
File "/usr/local/lib/python3.5/dist-packages/marshmallow/schema.py", line 544, in load
result, errors = self._do_load(data, many, partial=partial, postprocess=True)
File "/app/portia_server/portia_orm/serializers.py", line 85, in _do_load
data, many, *args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/marshmallow/schema.py", line 612, in _do_load
index_errors=self.opts.index_errors,
File "/usr/local/lib/python3.5/dist-packages/marshmallow/marshalling.py", line 294, in deserialize
index=(index if index_errors else None)
File "/usr/local/lib/python3.5/dist-packages/marshmallow/marshalling.py", line 67, in call_and_store
value = getter_func(data)
File "/usr/local/lib/python3.5/dist-packages/marshmallow/marshalling.py", line 287, in
data
File "/usr/local/lib/python3.5/dist-packages/marshmallow/fields.py", line 263, in deserialize
output = self._deserialize(value, attr, data)
File "/usr/local/lib/python3.5/dist-packages/marshmallow/fields.py", line 575, in _deserialize
return utils.ensure_text_type(value)
File "/usr/local/lib/python3.5/dist-packages/marshmallow/utils.py", line 286, in ensure_text_type
val = val.decode('utf-8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbf in position 289: invalid start byte

Oh, he made three mistakes. I don't know the main reason.


Forge Port

Pretty please with a cherry on top?

I don't have any experience in forge development, but since this mod is fairly simple, I'll look into it.


webstorm中无代码提示

Clear and concise description of the problem
//index.vue
defineOptions({
name: "ColorSelector"
})
在其他组件中使用时无代码提示

Suggested solution
期望值

Alternative
No response
Additional context
No response
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guide.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

VSCode and Volar are recommended. volar is the first support for Vue.
建议使用 VSCode 和 Volar。Volar 是 Vue 的第一支持。

Webstorm has no support plans at this time.
Webstorm 暂无支持计划。


🔄 Synced file(s) with BetaHuhn/github-files

Synced local file(s) with BetaHuhn/github-files.

Changed files

Synced local  .github/FUNDING.yml with remote  configs/FUNDING.yml

This PR was created automatically by the repo-file-sync-action workflow run #768097843

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


Features to use

What are the features you're using, you don't seem to address them in readme?

Hello,
here is list of used features, I've also added the list to the README. Library is currently outdated and I am planning to update it soon to be more accurate.

Screen resolution
Touch support
Color depth
Timezone offset
Font list
OS name
OS version
Mobile device detection
CPU architecture
Number of CPU cores


Ratemyopenapi integration

@RuslanAktaev This is the last PR for the task https://app.clickup.com/t/86bwd2ha6


refactor: use is_zero for U256 and B256

and everywhere else U256: Copy so auto deref takes place

Oups yes just fixed


phpstan picked up a type hint error

Running phpstan checks against code that uses easydb, got this error:

Argument 2 of ParagonIE\EasyDB\EasyDB::run expects array<mixed, mixed>, string provided

So I've altered the phpdoc hints- feedback on how this affects phpstorm would be appreciated.

Thanks!


view.metadata.contains have items (at_types) that are not actually in annotations list

Because
Currently, mmif-python SDK does some magic to make sure the information in the contains metadata is true.
Namely, when a develop adds a new annotation object using view.add_annotation() method, it automatically adds the @type of the annotation to the contains dict.
https://github.com/clamsproject/mmif-python/blob/7880bb4a52439c9b9eed424ce4ff919e8201fe58/mmif/serialize/view.py#L99-L117
However, it does not provide anything for the opposite direction. Namely,

when a developer add a key (at_type URI) to the contains dict (this usually happens when there's some additional information accompanies as a value map the at_type key),
but then the actually annotation result does not have any of that at_type,
the output MMIF string (serialized as JSON) will say that this view has that type, which is not true

And I don't think that's an ideal behavior. But adding automatic removal of not-used at_types from contains dict seems to too much magic-y (but again, we're already doing some magic. why not do more?)
Done when
We discuss whether the current way is a desired way of doing the business. If not, add an automatic "filtering" in the serialization code. Or we can provide a method to invoke the filtering manually only on demand.
Additional context
Just to be clear, I don't think having a false information should make the MMIF invalid, and thus the output MMIF from the above example still should be a valid MMIF.

One more thing to consider is calling jsonschema validation code right after the "filtering" happens to check the output is valid MMIF. An invalid MMIF will eventually turn into an error when it's passed down to a downstream app, but I think having an additional validation net at the end of the "run" of an analysis app is generally good practice basically because it can catch problems even when there are no downstream apps (in test code, or running in "standalone" mode, for example)


Allow manually entering barcode for Covid tests

Expected: The Covid test barcode scanner should be able to scan the barcode on a Covid test to submit it.
Actual: "An error occurred. Please try again. Code #1037."
Using the API to directly submit the Covid test's barcode worked, but ideally, I shouldn't have to have to dig through the app's code to submit my Covid test. If scanning the barcode fails, it should let the user type in the text under the barcode as a last resort, rather than locking the user from submitting tests completely.
Also, those error messages should be more informative than just "An error occurred."

Thanks for the note @SheepTester . What was the API that you used?

const USERNAME = 'bleh'
const PASSWORD = 'pass word'
const { access_token } = await fetch('https://uokdbiyx00.execute-api.us-west-2.amazonaws.com/qa/v1.1/access-profile', {
  method: 'POST',
  headers: {
        'x-api-key': 'uRgcQKJKMW4WzC2scgUXUjbE7e8TQJN7JsfjVBK6',
        'Authorization': btoa(`${USERNAME}:${PASSWORD}`),
      }
}).then(r => r.json())

const BARCODE = 'EXC_MW5_123456'
await fetch('https://api-qa.ucsd.edu:8243/scandata/2.0.0/scanData', {
  method: 'POST',
  headers: {
    'Content-Type':'application/json',
    Authorization: `Bearer ${access_token}`
  },
  body: JSON.stringify({ barcode: BARCODE })
}).then(r => r.json())


Relax to check case-sensitive for exclude_engines

exclude_engines filter will check case-sensitive in strict from v0.7.1.
So I want to relax checking case-sensitive.
This pull-req continues of https://github.com/yuku/js_rails_routes/pull/14#issuecomment-409765404
plz, check it out about this problem.
cf. https://github.com/yuku/js_rails_routes/pull/14#issue-205390048

Thanks for the quick response.
I'm not familiar with English so it's so helpful to me!l

I think there are two problems.
First, it seems that there is no way to use case-sensitive regexp. Suppose you configure the exclude_engines option as follows:
JSRailsRoutes.configure { |c| c.exclude_engines = /Foo/ }

In this case, you may assume that the gem excludes engines matching to /Foo/ not /Foo/i.
Second, lack of consistency. Other options such as include_paths use case-sensitive regexp.
Consequently, I want to treat the backward incompatible change introduced in v0.7.1 as bug fix instead of breaking change. So sorry for wasting your time to rewrite a patch.

I understand. I'm closing this pull-req :bowing_man:


docs: create a getting started guide

Which problem is this PR solving?

#416

Codecov Report

Merging #566 into master will increase coverage by 5.76%.
The diff coverage is n/a.


feat: add domain url option for private repos

@jonaslagoni I believe this helps to include private repos. Please take a look and let me know your thoughts.
Fixes #20

@jonaslagoni I believe it's all set!

:tada: This PR is included in version 0.7.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Update indicators.yml.erb

Updates the Indicator Document to apiVersion indicatorprotocol.io/v1. This makes the document Kubernetes-compatible, and ensures the document will be usable in the 1.0.0 release of Indicator Protocol, as v0 is deprecated.

@julian-zucker Would you mind switching this PR to be against develop?

@kitemongerer Done in https://github.com/cloudfoundry/cf-syslog-drain-release/pull/27


Add robot-name exercise

@vaeng What do you feel about this adaptation?

@vaeng What do you feel about this adaptation?

I think with the append this is a good fit for difficulty 3.


30 60 90 Special right triangle calculator

Proposal
I want to add this calculator.
Please assign me this issue.

This Calculator is already there in Calculator on the homw screen


Investigate and possibly fix long response (~1.5 sec) trpc procedures

Describe the bug
Based on RUM monitoring the procedures below take 1.5 sec for 95pr.
/api/trpc/filter.getDefaultFilter,user.suggestions,project.suggestions,tag.suggestions,state.all,filter.getUserFilters,project.getUserProjectsWithGoals,priority.getAll,whatsnew.check?batch=1&input={"0":"_undefined_","1":{"query":"","include":[],"take":5},"2":{"query":"","include":[],"take":5},"3":{"query":"","include":[],"take":5},"4":"_undefined_","5":"_undefined_","6":{"limit":5,"goalsQuery":{"starred":false,"watching":false,"groupBy":"_undefined_","limit":"_undefined_","priority":[],"state":[],"stateType":["InProgress","NotStarted"],"tag":[],"estimate":[],"issuer":[],"owner":[],"participant":[],"project":[],"query":"","sort":{}},"cursor":"_undefined_"},"7":"_undefined_","8":{"locale":"ru"}}

#2289 #2286


[e2e]: delegator-generic workflow_dispatch branch1 default slsa3

Repo: https://github.com/slsa-framework/example-package/tree/branch1
Run: https://github.com/slsa-framework/example-package/actions/runs/10552828072
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.delegator-generic.workflow_dispatch.branch1.default.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.delegator-generic.workflow_dispatch.branch1.default.slsa3.yml
Trigger: workflow_dispatch
Branch: branch1
Date: Mon Aug 26 03:07:30 UTC 2024

Repo: https://github.com/slsa-framework/example-package/tree/branch1
Run: https://github.com/slsa-framework/example-package/actions/runs/10570964440
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.delegator-generic.workflow_dispatch.branch1.default.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.delegator-generic.workflow_dispatch.branch1.default.slsa3.yml
Trigger: workflow_dispatch
Branch: branch1
Date: Tue Aug 27 03:10:06 UTC 2024
Tests are passing now. Closing this issue.


add more tests

[Current coverage][cc-pull] is 28.18%

Merging [#12][cc-pull] into [master][cc-base-branch] will decrease coverage by 0.05%

@@             master        #12   diff @@
==========================================
  Files            15         18     +3
  Lines          1462       1497    +35
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits            413        422     +9
- Misses         1049       1075    +26
  Partials          0          0

Powered by Codecov. Last updated by [f1a28fb...e02b8dd][cc-compare]
[cc-base-branch]: https://codecov.io/gh/CyberReboot/vent/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/CyberReboot/vent/compare/f1a28fb53c8c3e8dc9433395f2a38701d9c76d9a...e02b8dd1c53141e84dd6713ff367252fcb66eb68
[cc-pull]: https://codecov.io/gh/CyberReboot/vent/pull/12?src=pr


Adding contributing doc and pre-commit

I really like this repo, however there is no guide for contributors. This PR adds a section to the README with a guide on how to setup a local development environment and how to run the integration tests locally. In addition, in order to maintain standard formatting and linting conventions, pre-commit is introduced with black and isort. The GitHub workflows now reflect this change, instead of calling just black, pre-commit is run, this will enable adding further hooks in the future (if desired).

@sweco Is this good to merge or does it need another revision?


Partial background showing at corners when using .rounded-* classes

This affects Internet Explorer and Microsoft Edge when a border is present and using .rounded classes.
Solution:
Add background-clip: padding-box

background-clip: padding-box will not be added, as it causes other rendering anomalies. The issue arises when there is sufficient contrast between a button border and the page background, when compared to the button background colour.


Update gitignore and remove extra files that don't need to be shared.

@jchunchar and @MatthewPageCS what do you think about this?

It looks like you removed a lot of stuff from the gitignore.... was this intentional? Won't this start pushing compiled files (like .class and /bin stuff)?

@atroutt -- you have a much better understanding of the gitignore file than I do, but I agree that we should ignore any auto-generated files with local dirs etc.

Totally agreed with you both, no way do we want generated files in here.
We were ignoring a lot of things that didn't exist. That being said, erring on the side of more in the .gitignore is fine. I can revert some of that (keeping my additions of .idea and .DS_Store)

Updated!


chore(deps): update terraform terraform-ibm-modules/resource-group/ibm to v1.0.6

This PR contains the following updates:

Package
Type
Update
Change

terraform-ibm-modules/resource-group/ibm (source)
module
patch
1.0.5 -> 1.0.6

Release Notes

terraform-ibm-modules/terraform-ibm-resource-group (terraform-ibm-modules/resource-group/ibm)
v1.0.6
Compare Source
Bug Fixes

update usage to show hashicorp syntax instead of github (#435) (9469adf)

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline

Edited/Blocked Notification
Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.
You can manually request rebase by checking the rebase/retry box above.
⚠ Warning: custom changes will be lost.

/run pipeline

/run pipeline

/run pipeline

CBR 1.9.0 has a dependency on IBM Provider 1.56.1, so the base level of this module has been updated.

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


Module not found: Error: Can't resolve 'fast-deep-equal/react'

Description
Suddenly, Google maps were giving this error on my production application

Therefore, I thought of checking for latest updates of the map's library and found out that my current version was 0.5.0 and the latest one released was 0.6.0.
After upgrading the error in the console shown below is thrown and the app won't start.
Steps to Reproduce
This happened after upgrading @vis.gl/react-google-maps from 0.5.0 to 0.6.0
Environment

Library version: 0.6.0
Google maps version: weekly
Browser and Version: Chrome Version 121.0.6167.139 (Official Build) (arm64)
OS: Apple M1 Max Ventura 13.2.1 (22D68)

Logs
ERROR in<EMAIL_ADDRESS>3:0-48
Module not found: Error: Can't resolve 'fast-deep-equal/react' in<EMAIL_ADDRESS>Did you mean 'react.js'?
BREAKING CHANGE: The request 'fast-deep-equal/react' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

I faced this error yesterday and was able to fix it locally in my set-up by patching index.modern.mjs
-import isDeepEqual from 'fast-deep-equal/react';
+import isDeepEqual from 'fast-deep-equal/react.js';

Thanks for that, @alpavlove! I'll probably have to look through the bundler settings to fix this, shouldn't take too long.


Fixing problems with the Intel compiler using a GCC 4.4 std library

This PR solves a problem with using the intel compiler series with a standard library provided by gcc 4.4.x standard libraries.

This is surprising, the problems fixed here happen when using GCC4.6 as a standard library, at least according my reading of the logs here. Either this change doesn't do anything, or somehow Intel ends up using 4.6 standard library sources while pretending to be 4.4 compiler. That's a huge gap, for instance it means "0.9 rvalue references" (with different implicit special member rules for instance) instead of the real thing, it could easily explain the problems we are seeing. Basically what it means is that we are still supporting GCC4.4, the question is how has this worked so far?

@K-ballo: I think the problem at hand is slightly more complicated. Our intel 13 builder indeed uses the stdlib from 4.6. The PR description is wrong then. We see two failures:

Intel 13 + gcc 4.6 stdlib isn't able to properly generate the code needed for moving the std::pair (for whatever reason)
Intel 14 + gcc 4.4. stdlib experiences the same problem.

I am not entirely sure why this is happening. That doesn't mean we still support gcc 4.4, we don't support the compiler frontend. We merely have to support its stdlib. Unfortunately most systems only come equipped with gcc 4.4 plus some version of the intel compiler. The intel compiler itself supports all the necessary C++11 features we need though.

It has worked so far because we already implemented a few workaround in similar situations. The use of std::unique_ptr in the core library was only introduced with our new serialization layer. As such we never noticed those problems before (except with hpx::util::serialization_buffer<T> where we applied a different workaround).

LGTM

We should figure out what this means for us, other than no movable-only types on maps.

@Finomnis: could you please add/change an Intel V13 builder on buildbot to use stdlibc++ 4.4? This would reproduce the issue and would avoid running into similar issues in the future.

@Finomnis: could you please add/change an Intel V13 builder on buildbot to use stdlibc++ 4.4? This would reproduce the issue and would avoid running into similar issues in the future.

It does not look like that would reproduce the issue. See 4.4 vs 4.6, they operate under different language rules and each one is correct for the compiler that they target. What we would need is the cross product of all Intel versions we are willing to support with all the "compatibility gcc modes" we are willing to support.

What we would need is the cross product of all Intel versions we are willing to support with all the "compatibility gcc modes" we are willing to support.

I'd suggest to support the most commonly used combinations, one for each compiler version. That also implies that we should add build system support to detect those combinations while rejecting all others (at least issuing a warning).

This PR is removing a compilation error for a particular set of compiler +
stdlib combination. Nothing more. All the other things discussed here are
quite orthogonal.
Am 25.04.2015 7:40 nachm. schrieb "Hartmut Kaiser"<EMAIL_ADDRESS>
:

What we would need is the cross product of all Intel versions we are
willing to support with all the "compatibility gcc modes" we are willing to
support.
I'd suggest to support the most commonly used combinations, one for each
compiler version. That also implies that we should add build system support
to detect those combinations while rejecting all others (at least issuing a
warning).
—
Reply to this email directly or view it on GitHub
https://github.com/STEllAR-GROUP/hpx/pull/1477#issuecomment-96243687.

On Saturday, April 25, 2015 08:38:12 Agustín Bergé wrote:

@Finomnis: could you please add/change an Intel V13 builder on buildbot to
use stdlibc++ 4.4? This would reproduce the issue and would avoid running
into similar issues in the future.
It does not look like that would reproduce the issue. See
[4.4](https://github.com/gcc-mirror/gcc/blob/gcc-4_4_0-release/libstdc%2B%2
B-v3/include/bits/stl_pair.h#L92) vs
[4.6](https://github.com/gcc-mirror/gcc/blob/gcc-4_6_0-release/libstdc%2B%2
B-v3/include/bits/stl_pair.h#L115), they operate under different language
rules and each one is correct for the compiler that they target. What we
would need is the cross product of all Intel versions we are willing to
support with all the "compatibility gcc modes" we are willing to support.

Yes, that would be the best thing to do. I think we can phase out intel13
compiler support soon. AFAICT, most clusters have at least intel14 available
and are switching to default to intel V15.

Reply to this email directly or view it on GitHub:
https://github.com/STEllAR-GROUP/hpx/pull/1477#issuecomment-96227085


Add weathering with you 4k collector's edition

The box of this doesn't have a UPC

https://thediscdb.com/Movie/tenki-no-ko-2019


Running executeRaw on a non-existant database returns a cryptic error message

Bug description
Running prisma.executeRaw("...") on a database that doesn't exist returns the following error message, which doesn't prompt the user about a missing database:

How to reproduce

schema.prisma

datasource mysql {
    provider = "mysql"
    url      = env("DATABASE_URL")
}

generator client {
    provider        = "prisma-client-js"
    previewFeatures = ["transactionApi"]
}

model User {
    id    Int     @id @default(autoincrement())
    email String  @unique
    name  String?
}

Make .env point to a DATABASE_URL that doesn't exist in the database server

Run the following script

const { PrismaClient } = require('@prisma/client')

const prisma = new PrismaClient()
async function main() {
  prisma.executeRaw('START TRANSACTION')
}

main()

Expected behavior
The error message should point out that the underlying database doesn't exist
Prisma information
divyendusingh [prisma-3152]$ yarn prisma --version                                                                                130 ↵
yarn run v1.22.4
$ /Users/divyendusingh/Documents/prisma/triage/prisma-3152/node_modules/.bin/prisma --version
Environment variables loaded from prisma/.env
@prisma/cli          : 2.4.0-dev.24
Current platform     : darwin
Query Engine         : query-engine 37468de984a57c89edf7ebde8c5ebd81d1e7183b (at node_modules/@prisma/cli/query-engine-darwin)
Migration Engine     : migration-engine-cli 37468de984a57c89edf7ebde8c5ebd81d1e7183b (at node_modules/@prisma/cli/migration-engine-darwin)
Introspection Engine : introspection-core 37468de984a57c89edf7ebde8c5ebd81d1e7183b (at node_modules/@prisma/cli/introspection-engine-darwin)
Format Binary        : prisma-fmt 37468de984a57c89edf7ebde8c5ebd81d1e7183b (at node_modules/@prisma/cli/prisma-fmt-darwin)
Preview Features     : transactionApi
✨  Done in 1.65s.

This seems to be fixed in latest version 2.22. We throw a better error now:


TypeError: take_along_axis indices must be of integer type, got float32

Hey,
I was trying to run the untouched notebook in an evironment with jax-0.3.13 and jaxli-0.3.10 on an Ubuntu 18.04 machine with CUDA11.7 and CUDNN 8.2, but I get the error

TypeError: take_along_axis indices must be of integer type, got float32

when running
elif run_mode == 'pmap':     sample_rngs = jax.random.split(sample_rng, jax.local_device_count())     results = p_generate_256_samples(pmap_input_tokens, sample_rngs)
Any help?

Same issue

Got the same error and traced it down to line 154 in parallel_decode.py
mask_len = jnp.maximum(
        1,
        jnp.minimum(jnp.sum(unknown_map, axis=-1, keepdims=True) - 1, mask_len))

I patched it with changing it to
mask_len = jnp.maximum(
        1,
        jnp.minimum(jnp.sum(unknown_map, axis=-1, keepdims=True) - 1, mask_len)).astype('int32')

No idea if this makes any sense, but it made that error message at least go away (but later on I am getting a "Original error: UNIMPLEMENTED: DNN library is not found." one, so this might not be the correct solution)

+1

Reference to PR #9


Handling resources loading in OSGI environment

This pull request is in relation to the following Jira ticket: https://issues.apache.org/jira/browse/CAMEL-8796
Hopefully this change should go to all camel releases from version 14.0.0 onwards.
Thanks

Hi
This PR has mixed 2 things about hazelcast and schematron. Do you mind only doing a PR for the schematron.


*: move raftkv from storage to server

Signed-off-by: siddontang<EMAIL_ADDRESS>
What have you changed? (mandatory)
Move Raftkv from backend storage module to upper Server module.
Later we will move whole storage to the standalone component, so it can't contain any Raftstore logic.
Now I just move Raftkv to server module, maybe later I will refactor the server module to let server module use different KV engine, not only RaftKV.
What are the type of the changes? (mandatory)

Engineering (engineering change which doesn't change any feature or fix any issue)

How has this PR been tested? (mandatory)
Passing compiling and CI is fine.
Does this PR affect documentation (docs) or release note? (mandatory)
No
Does this PR affect tidb-ansible update? (mandatory)
No

But i think raftkv is a kind of storage.

it just implements the Storage trait, and it is designed for Raft. So it is not proper to be put in the storage module. We need to move it to the upper module, not in the base storage.

or what better place do you think we can move to?
IMO, the server is fine because it combines all together.
/cc @BusyJay

Ping @zhangjinpeng1987


incoming_calls and outgoing_calls cause errors when results from LSP server have multiple lines

Sometimes LSP server would return results which have multiple lines when calling vim.lsp.buf.incoming_calls or vim.lsp.buf.outgoing_calls, and an error will be raised:

For example, see the following code:
https://github.com/ray-x/navigator.lua/blob/633c7da38f2479d23f11a93ef70609d902fc30c7/lua/navigator/hierarchy.lua#L29-L41
With rust-analyzer call_hierarchy_item.detail could be something like this which would definitely cause errors since vim.api.nvim_buf_set_lines used by guihua.lua does not allow multiple-line text:
pub fn gen_range<T, R>(&mut self, range: R) -> T
where
     T: SampleUniform,
     R: SampleRange<T>

Some possible solutions would be:

Discard call_hierarchy_item.detail, only use display_filename;
Use the first line of call_hierarchy_item.detail, but there may be corner cases to deal with;
Replace all \n to   or ⏎ or something else, but that could reduce readability in some cases;
Handle the multiple lines in the UI components, that would be hard and unnecessary.

@spindensity
Still see this issue?

Thanks, the bug has been fixed.


leftButtonImage does not render

Version
Tell us which versions you are using:

react-native-router-flux v3.30.0
react-native v0.27.2

Expected behaviour
NavBar should render the leftButtonImage if it is provided.
Actual behaviour
leftButtonImage is not rendered
Steps to reproduce

Create a scene that has a leftButtonImage

+1
I could use
renderBackButton={()=>{return null;}} renderLeftButton={bla~bla~bla} onLeft={bla~bla}

to render a left button, but I then must put onLeft function into my render function for it to work.
By the way, I think is better for onLeft to be  implemented each visible scene, because maybe a scene have to interact with user before calling Actions.pop()?
Also, in iOS, if a left button is provided for the navigation bar, the back button is not rendered then, but here things are reversed(https://github.com/aksonov/react-native-router-flux/blob/master/docs/API_CONFIGURATION.md), maybe this is related to the op's issue?

The idea was to render the leftButtonImage when we are presented with the initial Scene. With the modification I did for https://github.com/aksonov/react-native-router-flux/pull/838, I get the results below.

Tapping the gear button takes us to another scene. The navbar keep the default behaviour of presenting a back button:


[CELEBORN-798] Add heartbeat from client to LifecycleManager to clean…

…up client

What changes were proposed in this pull request?
Add heartbeat from client to lifecycle manager. Currently heartbeat request contains local shuffle ids from
client, lifecycle manager checks with it's local set and returns ids it doesn't know. Upon receiving response,
client calls unregisterShuffle for cleanup.
Why are the changes needed?
Before this PR, client side unregisterShuffle is never called. When running TPCDS 3T with spark thriftserver
without DRA, I found the heap contains 1.6 million PartitionLocation objects (and StorageInfo):

Does this PR introduce any user-facing change?
No.
How was this patch tested?
Passes GA and  manual test.

cc @pan3793 @RexXiong @AngersZhuuuu

This seems a killer for the long-running Spark application, thanks for fixing it.

Thanks for the review, merging to main/0.3

After discussion, we decided to revert this one and in favor of CELEBORN-804


changing loss  weight during training

Hi,
I am trying to change loss weight during training. When i check source code, loss weight is set during compiling. When i call fit, compile process is over. Is there any easy way to accomplish this  target easily. I saw some issues related with learning rate but changing code "as in learning rate example" can affect other parts.
As i have limited experience on theano and keras, I need your help. Thanks (keras version 1.1.1)

I suppose you are referring to the loss_weight argument in compile. There are two ways you could do this:

(simple) just recompile your model with a new loss_weight argument value when you want to adjust the loss weights.
Pass symbolic tensors as the loss_weight values, and change their values during training via a callback.

@fchollet there sees to be a bug in there. Changing the loss_weights in the middle of the training seems to have no effect and the training continues with the initial weights.
`input_1 = Input(shape=(m,))
hidden_0 = Dense(units=10, activation='relu')(input_1)
predictions = Dense(2, activation='softmax')(hidden_0 )
sgd = SGD(lr=0.01, decay=1e-6, momentum=0.9, nesterov=True)
model = Model(inputs=input_1, outputs=[predictions, predictions])
alpha = K.variable(1.0)
beta = K.variable(0.0)
model.compile(optimizer=sgd,
loss=['categorical_crossentropy', 'categorical_crossentropy'], loss_weights=[alpha, beta],
metrics=['accuracy'])
class CustomValidationLoss(Callback):
def init(self, alpha, beta):
self.alpha = alpha
self.beta = beta
def on_epoch_end(self, epoch, logs={}):
    if epoch == 1:
        print "in model loss weight set"
        self.alpha = self.alpha * 0.0
        self.beta = self.beta + 1.0
        print (epoch, K.get_value(self.alpha), K.get_value(self.beta))
        model.compile(optimizer=sgd,
                      loss=['categorical_crossentropy', 'categorical_crossentropy'], loss_weights=[self.alpha, self.beta],
                      metrics=['accuracy'])

        sys.stdout.flush()

data = shuffle(pd.read_csv(os.path.join(dir_path, 'train_data.csv')))
y_mse = data['SOFT_LABEL'].values
y_mse = np.vstack([1 - y_mse, y_mse]).T
y = to_categorical(data['LABEL'].values, 2)
X = data.values
custom_validation_loss = CustomValidationLoss(alpha, beta)
model.fit(X, [y, y_mse],
epochs=10,
batch_size=1024,
verbose=2, callbacks=[custom_validation_loss])`

Here's the solutionto this problem: #2595

I couldn't save my model using the solution in #2595 due to JSON serialization error. See my workaround described in #9444 if you experience the same problem.

Hi,
I am very new to keras. Hope my question don't bother too much :)
@fchollet

(simple) just recompile your model with a new loss_weight argument value when you want to adjust the loss weights.

Just want to make very sure, when the model are recompiled are the learned weights saved in RAM?
Ask so, because I am passing the a changing number to the loss function in a for loop.
e.g.
for epoch in range(len(100)):
self.model.compile(optimizer=optimizer, loss= self.build_loss(epoch = self.epoch,  NYC_Loss = self.NYC_Loss))
m_loss = self.model.fit(x=[self.Z_full_transformed], y = [self.Z_full_transformed], epochs = 100, verbose = 0, batch_size=np.array(self.X_train).shape[0], shuffle= False)
In this way, will weights be "saved" for the self.model?
P.s. Thanks for everything you did for the keras package, it's wonderful and saved me a lot of time.
Best,
J

TypeError: ('Not JSON Serializable:')
This error comes while saving the model. Any updates on this?
https://github.com/keras-team/keras/issues/9444


Thank you!


fix: hide special paths; sort models

A list of special folders is now being excluded from the workspace folder tree:
'.git',                 '.DS_Store',                 '.svn',                 '.hg',                 '.idea',                 '.vscode',                 '.settings',                 '.pytest_cache',                 '__pycache__',                 'node_modules',                 'vendor',                 'build',                 'dist',                 'bin',                 'logs',                 'log',                 'tmp',                 'temp',                 'coverage',                 'venv',                 'env'
The Models and Agents lists in the Settings is now sorted by name.
Fixes https://github.com/OpenDevin/OpenDevin/issues/2056

Test locally, works great. Thanks for your contribution.

Test locally, works great. Thanks for your contribution.

Glad to hear and my pleasure. 😃
Wasn't expecting it to get merged that fast, wanted to ask: I also had added the filter to the file listing commands, which I think are for the shell window? If need be, I'd revert the changes made there if the special folders are missed in some cases.


Spurious test failures

On MacOS there was a test failure on CI: https://github.com/vmx/temp-env/actions/runs/3150858960/jobs/5124127616.
It looks like it hit some race condition. This sounds like a bug to me, this library shouldn't have race conditions and lead to random test failures that disappear when rerun: https://github.com/vmx/temp-env/actions/runs/3150858960/jobs/5124196938
If anyone has time to look into that, that would be great.

Those logs have expired. If this happens again, probably copy the info into this issue.

Another failure, this time on Windows: https://github.com/vmx/temp-env/actions/runs/6051601020/job/16423400083?pr=22
failures:

---- tests::test_with_vars_set_returning stdout ----
thread 'tests::test_with_vars_set_returning' panicked at '`ONE` must not be set.', src\lib.rs:342:9

I've attached the full log, in case the link expired again.
2023-09-01-windows-failing.log

There is nothing to enforce ONE will have any particular value at beginning of test_with_vars_set_returning test. This test by this point doesn't access the mutex, so any test that affects ONE environment variable could affect it.