Broken integration tests with new consensus

It looks like the block generation is stuck by some reasons.
./node_modules/mocha/bin/mocha --timeout 320000 -R  spec ./integration/afan_client.test.js

  aFan Client Test
    tx_invest
Initial last block number: 0
      1) "before each" hook for "send_one"
Initial last block number: 0
      2) "after each" hook for "send_one"

  0 passing (11m)
  2 failing

  1) aFan Client Test
       "before each" hook for "send_one":
     Error: Timeout of 320000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/Users/seo/git/comcomai/blockchain/ain-blockchain/integration/afan_client.test.js)
      at module.exports.runLoopOnce (node_modules/deasync/index.js:65:10)
      at module.exports (node_modules/deasync-promise/index.js:13:9)
      at module.exports.interval (node_modules/system-sleep/module.js:24:36)
      at waitForNewBlocks (integration/afan_client.test.js:93:7)
      at set_value.then (integration/afan_client.test.js:117:19)

  2) aFan Client Test
       "after each" hook for "send_one":
     Error: Timeout of 320000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/Users/seo/git/comcomai/blockchain/ain-blockchain/integration/afan_client.test.js)
      at module.exports.runLoopOnce (node_modules/deasync/index.js:65:10)
      at module.exports (node_modules/deasync-promise/index.js:13:9)
      at module.exports.interval (node_modules/system-sleep/module.js:24:36)
      at waitForNewBlocks (integration/afan_client.test.js:93:7)
      at set_value.then (integration/afan_client.test.js:122:19)
      at process._tickCallback (internal/process/next_tick.js:68:7)
      at module.exports.runLoopOnce (node_modules/deasync/index.js:64:10)
      at module.exports (node_modules/deasync-promise/index.js:13:9)
      at module.exports.interval (node_modules/system-sleep/module.js:24:36)
      at waitForNewBlocks (integration/afan_client.test.js:93:7)
      at set_value.then (integration/afan_client.test.js:117:19)

@liayoo has it been updated issue, init?! You can close!

Closing this issue as the problem has been fixed in #47.


Proposed appearance.md

I needed to display base64 images and the edit to the largeIcon worked for me. I would like to believe it may help someone else who might be stuck.

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

thank you @Jim-Blair. merged 😎


Revert "feat(engine): add support for new license format"

This reverts commit b53ca01b2922c9768d9f52ee890e7a3592a70c3d.
Related to CAM-10667, CAM-11137

Closed, since we will build new patch release artifacts. Reverting is not needed anymore.


Add support for TeamCity using service messages

I've noticed that TeamCity does not support any of the output formats currently offered by this tool and the ReportGenerator tool. It would be a simple thing to add some support for writing TeamCity service messages out to the console, since we already print some statistics.
Some Statistics that are easily supported:

TeamCity Statistic Key
Description

CodeCoverageL
Line Coverage

CodeCoverageC
Class Coverage

CodeCoverageM
Method Coverage

CodeCoverageAbsLTotal
The total number of lines

CodeCoverageAbsLCovered
The number of covered lines

CodeCoverageAbsCTotal
The total number of classes

CodeCoverageAbsCCovered
The number of covered classes

CodeCoverageAbsMTotal
The total number of methods

CodeCoverageAbsMCovered
The number of covered methods

Some statistics that would require extra work to support:

TeamCity Statistic Key
Description

CodeCoverageS
Statement Coverage

CodeCoverageB
Block Coverage

CodeCoverageR
Branch Coverage

CodeCoverageAbsSTotal
The total number of statements

CodeCoverageAbsSCovered
The number of covered statements

CodeCoverageAbsBTotal
The total number of blocks

CodeCoverageAbsBCovered
The number of covered blocks

CodeCoverageAbsRTotal
The total number of branches

CodeCoverageAbsRCovered
The number of covered  branches

See the documentation here for more info about TeamCity service messages
See the documentation here for more info about TeamCity statistics

BTW Reptarsrage is my other account, and the PR for this is #227

@tonerdo What's the eta for the next release?

Good start. Would be great to get an in-depth view that was on parity with the other formats.
Seems TC has service message support for sucking in a file:
##teamcity[importData type='dotNetCoverage' tool='' path='']
where tool name can be partcover, ncover or ncover3.

@gilescope You should open a new issue that can be tracked/prioritized by the code owners, if you haven't done that already.


let's store the app name

FR depends on being able to match the app name.
It appears the behavior here has changed over time.
Here are various values we've seen in our rapns_feedback table:

1	[device_token]	2012-10-26T19:00:17.000+00:00	2012-10-26T19:00:25.155+00:00	2012-10-26T19:00:25.155+00:00	client_booking_production
6255	[device_token]	2015-07-03T00:01:15.000+00:00	2015-07-03T00:01:38.571+00:00	2015-07-03T00:01:38.571+00:00	5
6256	[device_token]	2015-07-04T00:01:04.000+00:00	2015-07-04T00:01:06.581+00:00	2015-07-04T00:01:06.581+00:00	#<Rapns::Apns::App:0x007f69c7749770>

We no longer use RAPNS, so closing with prejudice.


❗ Improve Eslint Documentation

Description
The documentation is hard to consume for user. The doc should offers scenario to better show the users how to use it.
ex:
Javascript only project
React project
Typescript
It is not clear at the moment if a user needs
"extends": [
"plugin:@sharegate/core",
"plugin:@sharegate/typescript",
"plugin:@sharegate/react"
]
or
"extends": [
"plugin:@sharegate/typescript",
]
It is also not clear if the
and if the typescript-eslint/parser is included or not

There is some issues when installing the react config at the root of a mono repo. Since it automatically tries to detect the React version associated with the project, its throws warning since react is not installed at the root.


Created durations.css to address #415;

I created extra/durations.css to implement a number of durations, drawing from a few sources across the web.

@argyleink Should these all have a prefix to avoid (future) conflicts?  For example, --dt-day, where dt = delta time = duration.


Spinner stuck if combined with an alert.

Following https://github.com/joinspontaneous/react-native-loading-spinner-overlay/issues/61 and https://github.com/joinspontaneous/react-native-loading-spinner-overlay/issues/72
Spinner/modal getting stuck is still an issue that happens more often than one would want. The timeout fix is really not appropriate if you are showing the spinner automatically through redux state changes, or from other components.
On the react native side, they claim to have this issue fixed already.
I wonder if this line is the culprit. Completely removing the modal component before the UI/Native has time to dismiss it might be causing issues?
https://github.com/joinspontaneous/react-native-loading-spinner-overlay/blob/master/index.js#L139
Otherwise, any other ideas on how to fix/improve this?

Did you try removing/changing what happens with L139?  Let me know if you fixed it and we can get it patched here.  Feel free to submit PR.

I will be testing that later tonight since my current code can't reproduce
the issue easily. I was asking mainly to confirm if that wasn't tested
already so I don't spend time on it haha.
El jue., 16 de mayo de 2019 15:44, niftylettuce<EMAIL_ADDRESS>escribió:

Did you try removing/changing what happens with L139? Let me know if you
fixed it and we can get it patched here. Feel free to submit PR.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/joinspontaneous/react-native-loading-spinner-overlay/issues/82?email_source=notifications&email_token=ALU263EV3L7VLFECRATBE3TPVWTSVA5CNFSM4HNNFQD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVSW5NY#issuecomment-493186743,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALU263HWLBRKX5KE4FQ45ATPVWTSVANCNFSM4HNNFQDQ
.

That didn't work, neither some other stuff I have tried. However, the culprit is really the cancelable flag:  https://github.com/joinspontaneous/react-native-loading-spinner-overlay/blob/master/index.js#L111
IOS can't seem to render properly an alert and modal at the same time, so when the new alert fires, the  request close method of the modal is also fired. Not handling this close request pretty much makes the modal stuck, but handling it will close the modal defeating its purpose.
My question is, in what other cases does IOS fire the request close event? Not like IOS has a back button? Can we just close and re-open the modal if it's not cancelable? This would only be for iOS ofc.

Update: Nope, it's not this neither... Sigh.

Same problem here

Isn't this cause by classic "view is not in the window hierarchy" ios error? If you open up the xcode you can see the warning;)

Well, I'm quite sure it must not be the best way but my workaround for now is wrapping the showAlert in a setTimeout of 500 so it gives the right amount of time to close the spinner in order to open the alert... if any of you find a more "right" way to fix it we all appreciate.. cheers

Yesterday I tried out wrapping up MBProgressHUD (https://github.com/jdg/MBProgressHUD) with a react native bridge so that I can use within react native view. So far seems working fine with Alert component without colliding. I will post a gist or sample code once I have tested with more devices.

Interesting. Could that be used with this library such that IOS uses that
one, while android keeps the current behaviour?
El jue., 6 de junio de 2019 19:14, Samitha Fernando <
<EMAIL_ADDRESS>escribió:

Yesterday I tried out wrapping up MBProgressHUD (
https://github.com/jdg/MBProgressHUD) with a react native bridge so that
I can use within react native view. So far seems working fine with Alert
component without colliding. I will post a gist or sample code once I have
tested with more devices.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/joinspontaneous/react-native-loading-spinner-overlay/issues/82?email_source=notifications&email_token=ALU263HJC3BNDL2SNP2RBTDPZGD6DA5CNFSM4HNNFQD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXEKCWA#issuecomment-499687768,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALU263ENJK6XXJSZUBEU6MLPZGD6DANCNFSM4HNNFQDQ
.

Technically you can or you can use MBProgressHUD version for Android too, which is awesome. Those modules are pretty popular!. Here is a sample implementation and works perfectly well with Alerts and also look and feel is super neat.
Here is a sample implementation. I will create a node module soon...
https://gist.github.com/samithaf/83efbc7b6d86448d0e4e426c68b29985

Got the same issue, have to do the workaround as tattivitorino's comment. Hope this will be fixed soon

Same issue here. But it only stucks on iOS.

Well, I'm quite sure it must not be the best way but my workaround for now is wrapping the showAlert in a setTimeout of 500 so it gives the right amount of time to close the spinner in order to open the alert... if any of you find a more "right" way to fix it we all appreciate.. cheers

And this works well. Thanks @tattivitorino, Hope some fix to this issue.

Same issue when using with react-native-root-toast

RN is super buggy and I stopped using it, something native as you mentioned (MBProgressHUD) would probably do the trick


Update order.feature

IBM Cloud toolchain: Delivery Pipeline deployed orders to nyu-devops, including commit 5e275b625ee3d6ed5e48956b68a1911e157c6db6


Pull error occurs when using RaspberryPi 4

Description
The following error occurs when using Raspberry Pi OS for 64bit
$ nerdctl pull ubuntu:latest
docker.io/library/ubuntu:latest:                                               resolved       |++++++++++++++++++++++++++++++++++++++|
index-sha256:9101220a875cee98b016668342c489ff0674f247f6ca20dfc91b91c0f28581ae: downloading    |--------------------------------------|    0.0 B/1.4 KiB
elapsed: 4.3 s                                                                 total:   0.0 B (0.0 B/s)
FATA[0004] no match for platform in manifest: not found

Success under the following conditions
$ nerdctl pull ubuntu:latest --platform arm64
docker.io/library/ubuntu:latest:                                                  resolved       |++++++++++++++++++++++++++++++++++++++|
index-sha256:9101220a875cee98b016668342c489ff0674f247f6ca20dfc91b91c0f28581ae:    done           |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:a51c8bb81605567ea27d627425adf94a613d675a664bf473d43a55a8a26416b8: exists         |++++++++++++++++++++++++++++++++++++++|
config-sha256:b5e8d9885aa97e2a62d3df20a70b3a5f9b6339a1e381c27230353d4973077f42:   exists         |++++++++++++++++++++++++++++++++++++++|
elapsed: 4.5 s                                                                    total:  1.4 Ki (314.0 B/s)

Steps to reproduce the issue

nerdctl pull ubuntu:latest

Describe the results you received and expected
Do not use the "--platform" option
What version of nerdctl are you using?
$ nerdctl version
Client:
Version:       v0.18.0
Git commit:    77276ff0fffad3f855ab9f2f5a4ad5527ef76485
Server:
containerd:
Version:      1.4.13~ds1
GitCommit:    1.4.13~ds1-1~deb11u1
Are you using a variant of nerdctl? (e.g., Rancher Desktop)
Others
Host information

Raspberry Pi 4 8GB

 $ uname -a
Linux raspberrypi 5.15.32-v8+ #1538 SMP PREEMPT Thu Mar 31 19:40:39 BST 2022 aarch64 GNU/Linux

Would you mind to tell us which arch of nerdctl you use? arm-v7 or arm64

Use arm64/v8 arch

I mean, which binary do you use? nerdctl-0.18.0-linux-arm-v7.tar.gz or nerdctl-0.18.0-linux-arm64.tar.gz?

I used 'nerdctl-0.18.0-linux-arm-v7.tar.gz'

Resolved after changing the binary.
Thank you.


Feature: Added possibility to change log destination

Every class which implements Application interface, is able to set its own writer where the logs will be written to. Using setLogWriter. As it was requested in #4251.

Thanks for the PR @pecrom, going with a different implementation to expose a logging interface. You can now provide a ApplicationLogger implementation yourself to redirect/manage logging yourself.

Thanks for the feedback. This was the other way I was thinking about:-)


RuntimeError: Error(s) in loading state_dict for M2TR

We tried to load the corresponding weights for the model but found them to be inconsistent, including c23 and c40. We don't understand why, it looks like the keys are wrong.
RuntimeError: Error(s) in loading state_dict for M2TR:
Missing key(s) in state_dict: "layers.2.0.t.attention.query_embedding.weight", "layers.2.0.t.attention.query_embedding.bias", "layers.2.0.t.attention.value_embedding.weight", "layers.2.0.t.attention.value_embedding.bias", "layers.2.0.t.attention.key_embedding.weight", "layers.2.0.t.attention.key_embedding.bias", "layers.2.0.t.attention.output_linear.0.weight", "layers.2.0.t.attention.output_linear.0.bias", "layers.2.0.t.attention.output_linear.1.weight", "layers.2.0.t.attention.output_linear.1.bias", "layers.2.0.t.attention.output_linear.1.running_mean", "layers.2.0.t.attention.output_linear.1.running_var", "layers.2.0.t.feed_forward.conv.0.weight", "layers.2.0.t.feed_forward.conv.0.bias", "layers.2.0.t.feed_forward.conv.1.weight", "layers.2.0.t.feed_forward.conv.1.bias", "layers.2.0.t.feed_forward.conv.1.running_mean", "layers.2.0.t.feed_forward.conv.1.running_var", "layers.2.0.t.feed_forward.conv.3.weight", "layers.2.0.t.feed_forward.conv.3.bias", "layers.2.0.t.feed_forward.conv.4.weight", "layers.2.0.t.feed_forward.conv.4.bias", "layers.2.0.t.feed_forward.conv.4.running_mean", "layers.2.0.t.feed_forward.conv.4.running_var", "layers.2.1.filter.complex_weight", "layers.2.1.feed_forward.conv.0.weight", "layers.2.1.feed_forward.conv.0.bias", "layers.2.1.feed_forward.conv.1.weight", "layers.2.1.feed_forward.conv.1.bias", "layers.2.1.feed_forward.conv.1.running_mean", "layers.2.1.feed_forward.conv.1.running_var", "layers.2.1.feed_forward.conv.3.weight", "layers.2.1.feed_forward.conv.3.bias", "layers.2.1.feed_forward.conv.4.weight", "layers.2.1.feed_forward.conv.4.bias", "layers.2.1.feed_forward.conv.4.running_mean", "layers.2.1.feed_forward.conv.4.running_var", "layers.2.2.conv1.weight", "layers.2.2.conv1.bias", "layers.2.2.conv2.weight", "layers.2.2.conv2.bias", "layers.2.2.conv3.weight", "layers.2.2.conv3.bias", "layers.2.2.conv4.0.weight", "layers.2.2.conv4.0.bias", "layers.2.2.conv4.1.weight", "layers.2.2.conv4.1.bias", "layers.2.2.conv4.1.running_mean", "layers.2.2.conv4.1.running_var", "layers.3.0.t.attention.query_embedding.weight", "layers.3.0.t.attention.query_embedding.bias", "layers.3.0.t.attention.value_embedding.weight", "layers.3.0.t.attention.value_embedding.bias", "layers.3.0.t.attention.key_embedding.weight", "layers.3.0.t.attention.key_embedding.bias", "layers.3.0.t.attention.output_linear.0.weight", "layers.3.0.t.attention.output_linear.0.bias", "layers.3.0.t.attention.output_linear.1.weight", "layers.3.0.t.attention.output_linear.1.bias", "layers.3.0.t.attention.output_linear.1.running_mean", "layers.3.0.t.attention.output_linear.1.running_var", "layers.3.0.t.feed_forward.conv.0.weight", "layers.3.0.t.feed_forward.conv.0.bias", "layers.3.0.t.feed_forward.conv.1.weight", "layers.3.0.t.feed_forward.conv.1.bias", "layers.3.0.t.feed_forward.conv.1.running_mean", "layers.3.0.t.feed_forward.conv.1.running_var", "layers.3.0.t.feed_forward.conv.3.weight", "layers.3.0.t.feed_forward.conv.3.bias", "layers.3.0.t.feed_forward.conv.4.weight", "layers.3.0.t.feed_forward.conv.4.bias", "layers.3.0.t.feed_forward.conv.4.running_mean", "layers.3.0.t.feed_forward.conv.4.running_var", "layers.3.1.filter.complex_weight", "layers.3.1.feed_forward.conv.0.weight", "layers.3.1.feed_forward.conv.0.bias", "layers.3.1.feed_forward.conv.1.weight", "layers.3.1.feed_forward.conv.1.bias", "layers.3.1.feed_forward.conv.1.running_mean", "layers.3.1.feed_forward.conv.1.running_var", "layers.3.1.feed_forward.conv.3.weight", "layers.3.1.feed_forward.conv.3.bias", "layers.3.1.feed_forward.conv.4.weight", "layers.3.1.feed_forward.conv.4.bias", "layers.3.1.feed_forward.conv.4.running_mean", "layers.3.1.feed_forward.conv.4.running_var", "layers.3.2.conv1.weight", "layers.3.2.conv1.bias", "layers.3.2.conv2.weight", "layers.3.2.conv2.bias", "layers.3.2.conv3.weight", "layers.3.2.conv3.bias", "layers.3.2.conv4.0.weight", "layers.3.2.conv4.0.bias", "layers.3.2.conv4.1.weight", "layers.3.2.conv4.1.bias", "layers.3.2.conv4.1.running_mean", "layers.3.2.conv4.1.running_var", "classifier.projection.weight", "classifier.projection.bias".
Unexpected key(s) in state_dict: "classifier.weight", "classifier.bias".
size mismatch for model._fc.weight: copying a param with shape torch.Size([1, 1792]) from checkpoint, the shape in current model is torch.Size([2, 1792]).
size mismatch for model._fc.bias: copying a param with shape torch.Size([1]) from checkpoint, the shape in current model is torch.Size([2]).
Hope this can be fixed soon.

Thanks for pointing out. It was a fc layer problem. We have updated M2TR checkpoints.


Update books to current state

Just to ensure with the preview that it's all working fine...

 Support multiple repository paths for the configure_repositories step (M)(Day 3)

@danidoni deployed, this can be merged.


Vault fails to automatically join Raft when set as ha_storage and KMS auto-unseal is used.

Describe the bug:
When shamir is used, raft auto-joins correctly.
By only changing the seal type, raft does not auto-join.
Related:

https://github.com/banzaicloud/bank-vaults/issues/1165
https://github.com/banzaicloud/bank-vaults/pull/1172

Steps to reproduce the bug:
Apply the yaml below.
Note: For a work-around add the following:
  vaultContainerSpec:
    lifecycle:
      postStart:
        exec:
          command:
          - /bin/sh
          - -c
          - for x in {1..6}; do if vault status -tls-skip-verify; then break; else
            sleep 10; fi; done; vault operator raft join<EMAIL_ADDRESS>            -tls-skip-verify || exit 0;

Additional context:
Add any other context about the problem here.
Environment details:

Kubernetes version: 1.18.x
Cloud-provider/provisioner: EKS
bank-vaults version: 1.12.1
Install method: operator
Logs from the misbehaving component (and any other relevant logs): https://github.com/hashicorp/vault/blob/main/vault/raft.go#L129
Resource definition (possibly in YAML format) that caused the issue, without sensitive data:

apiVersion: vault.banzaicloud.com/v1alpha1
kind: Vault
metadata:
  name: NAME
  namespace: NAME
spec:
  caNamespaces:
  - '*'
  config:
    api_addr: https://NAME.NAME:8200
    cluster_addr: https://${.Env.POD_NAME}:8201
    ha_storage:
      raft:
        path: /vault/raft
    listener:
      tcp:
        address: <IP_ADDRESS>:8200
        tls_cert_file: /vault/tls/server.crt
        tls_key_file: /vault/tls/server.key
    seal:
      awskms:
        kms_key_id: KMS_KEY_ID
        region: us-west-1
    storage:
      s3:
        bucket: S3_BUCKET
        path: S3_PREFIX
        region: us-west-1
  image: vault:v1.7.2
  serviceAccount: SERVICE_ACCOUNT
  serviceRegistrationEnabled: true
  serviceType: ClusterIP
  size: 5
  unsealConfig:
    aws:
      kmsKeyId: KMS_KEY_ID
      kmsRegion: us-west-1
      s3Bucket: S3_BUCKET
      s3Prefix: S3_PREFIX_2
      s3Region: us-west-1
      s3SSE: aws:kms
    name: vault
  vaultEnvsConfig:
  - name: VAULT_LOG_LEVEL
    value: trace
  volumeClaimTemplates:
  - metadata:
      name: vault-raft
    spec:
      accessModes:
      - ReadWriteOnce
      resources:
        requests:
          storage: 1Gi
      volumeMode: Filesystem
  volumeMounts:
  - mountPath: /vault/raft
    name: vault-raft

/kind bug

I don't have easy access to an AWS environment right now, but will check on that one as well, I tried the very same scenario on Google and it worked for me (will do further digging on AWS):
apiVersion: "vault.banzaicloud.com/v1alpha1"
kind: "Vault"
metadata:
  name: "vault"
spec:
  size: 3
  image: vault:1.6.2

  # Describe where you would like to store the Vault unseal keys and root token
  # in GCS encrypted with KMS.
  unsealConfig:
    google:
      kmsKeyRing: "bank-vaults"
      kmsCryptoKey: "bank-vaults"
      kmsLocation: "global"
      kmsProject: "${PROJECT}"
      storageBucket: "bank-vaults"

  # Specify the ServiceAccount where the Vault Pod and the Bank-Vaults configurer/unsealer is running
  serviceAccount: vault

  config:
    seal:
      gcpckms:
        project: "${PROJECT}"
        region: "global"
        key_ring: "bank-vaults"
        crypto_key: "bank-vaults"
    ha_storage:
      raft:
        path: "/vault/file"
    storage:
      gcs:
        bucket: "bank-vaults"
        ha_enabled: "false"
    listener:
      tcp:
        address: "<IP_ADDRESS>:8200"
        tls_cert_file: /vault/tls/server.crt
        tls_key_file: /vault/tls/server.key
    api_addr: https://vault.default:8200
    cluster_addr: "https://${.Env.POD_NAME}:8201"
    telemetry:
      statsd_address: localhost:9125
    ui: true

  # See: https://banzaicloud.com/docs/bank-vaults/cli-tool/#example-external-vault-configuration
  # The repository also contains a lot examples in the deploy/ and operator/deploy directories.
  externalConfig:
    policies:
      - name: allow_secrets
        rules: path "secret/*" {
          capabilities = ["create", "read", "update", "delete", "list"]
          }
      - name: gcp_editor_access
        rules: |
          path "gcp/key/editor"
          {
            capabilities = ["read"]
          }
    auth:
      - type: kubernetes
        roles:
          # Allow every pod in the default namespace to use the secret kv store
          - name: default
            bound_service_account_names: default
            bound_service_account_namespaces: default
            policies: allow_secrets
            ttl: 1h

  # Use local disk to store Vault raft data, see config section.
  volumeClaimTemplates:
    - metadata:
        name: vault-raft
      spec:
        accessModes:
          - ReadWriteOnce
        volumeMode: Filesystem
        resources:
          requests:
            storage: 1Gi

  volumeMounts:
    - name: vault-raft
      mountPath: /vault/file

You can also use Dynamo for example for the ha_storage as another workaround (to the postStart script, which is really nice indeed!).

AH just found out that I need to enable TRACE logs to get the relevant log message!

Fix added in https://github.com/banzaicloud/bank-vaults/pull/1369
Thanks for the issue, it was a nasty one! ;)


Find most related text unit from entities

This is the code that find most related text unit from entities,Method name is _find_most_related_text_unit_from_entities.
If it is the total number of times a text unit is referenced by neighboring nodes, why use continue, see lines 580,581.
Can someone explain this part of the code?
Thank you for your help.

It's creating an efficient index of text units while tracking how interconnected each unit is with other nodes in the graph. The code section:

Build a lookup dictionary (all_text_units_lookup) that contains unique text units and their metadata
For each text unit, calculate:

How many times it's referenced by neighboring nodes (relation_counts)
Its order of appearance (order)
The actual content data (data)

#asked/claude-3-5-sonnet-2410
The continue statement on lines 580-581 is used to avoid processing the same text unit (c_id) multiple times.  The reason for this is:

The same text unit (c_id) might appear in multiple entities' source IDs (this_text_units)
We only want to process each unique text unit once and store its metadata in all_text_units_lookup
When we find a text unit we've already processed (it exists in all_text_units_lookup), we skip it with continue

For example:

Entity A might reference text units [1, 2, 3]
Entity B might reference text units [2, 3, 4]
Without the continue, text units 2 and 3 would be processed twice

The relation_counts calculation is still accurate because:

It counts how many one-hop neighbor nodes also reference this text unit
This count only needs to be calculated once per unique text unit
The order/index of when we first encounter the text unit is preserved in the order field

So while we want to count all relationships, we only need to process each unique text unit once and store its metadata (data, order, relation_counts) in the lookup dictionary.

Thank you very much for your answer, I understand this piece of code.

The order is the order in which the nodes (entities) come out of the vector database similarity query

results = await entities_vdb.query(query, top_k=query_param.top_k)

if not len(results):
    return None
node_datas = await asyncio.gather(
    *[knowledge_graph_inst.get_node(r["entity_name"]) for r in results]
)

The order and  is the highest weighted, so only the text unit (c_id) that appear at the top nodes (entities) need to be counted.

  all_text_units = sorted(
      all_text_units, key=lambda x: (x["order"], -x["relation_counts"])
  )


[Feature] Check kubescape & kubescape framework version and re-download if version not latest according to constants.cr

Description
When kubescape CLI and Kubescape framework versions are updated in constants.cr, the kubescape nsa json and the CLI have to be deleted manually to force the testsuite to download it again.
The testsuite should check for the version of these files and redownload them appropriately if the versions are not the latest versions according to constants.cr.

Should be resolved?


Noise log: Using unstable operation

Is your feature request related to a problem? Please describe.
There are a warn log when using unstable API right here: https://github.com/DataDog/datadog-api-client-go/blob/535a952ec44470ef4d460664a90d1c3eabc42f93/api/datadog/configuration.go#L519
My integration make a lot of requests to DataDog API, and I end up with a lot of logs like this:
2024/06/19 12:18:21 WARNING: Using unstable operation 'v2.QueryTimeseriesData'

Describe the solution you'd like
I would like a way to disable this message.

Not stale

Thanks for the issue. We have downgraded the log to debug in https://github.com/DataDog/datadog-api-client-go/pull/2780. Closing this issue.


[Feature]: Doc section about how to toggle theme

Describe the feature
I can't find out implementation of how to toggle between light-dark theme from documentation, would be helpful for rookies

Make sense 👍🏻 I tried using shadcn-vue in other project and realized this missing instruction too.
We can add Dark mode page similar to original ui.shadcn
https://ui.shadcn.com/docs/dark-mode

@zernonia Can I suggest adding a version switcher for Vue, Nuxt, Astro and other integerations ? like the Options API <--> Composition API one in the vue docs.
I've tried to use the module in a nuxt project and not all the instructions fully apply to nuxt

Leaving a reference for future visitors, how i've setup:
Using color-mode nuxt module: https://nuxt.com/modules/color-mode
Refer to following video, if u can't setup: https://www.youtube.com/watch?v=aPdDUMuxmEw&t=68s

Leaving a reference for future visitors, how i've setup:
Using color-mode nuxt module: https://nuxt.com/modules/color-mode
Refer to following video, if u can't setup: https://www.youtube.com/watch?v=aPdDUMuxmEw

How exactly do you do this without nuxtJS?

@TheDutchDev
I am not an expert but you can check out vueuse: https://vueuse.org/core/useColorMode/


Angular CLI sample - update to Angular 13

Updates the Angular CLI sample to version 13.
Notable breaking changes inherited through the update. These are default settings in the Angular 13 minimum install:

The minimum TypeScript version is now 4.4
The sample now implements strict class initialization.
Removal of IE11-specific polyfills.

Closing - ignore. I'll redo this, accidentally grabbed the wrong branch.


question - websocket & http in one port

hi, it is possible to receive http / websocket in a unique socket port? i saw there are 2 different servers for http and ws.

Yes, it is.
Just create a NanoWSD (websockets) server subclass and override both openSocket() and serveHttp().
The first handles new websockets while the seconds handles non-websocket http requests :)
(I made that myself, with the same intent. Before that you could not cleanly serve http on a ws server).
You'll have a single server (nanowsd) in, say, port 80, but it will distinguish between http and ws requests and handle them accordingly. The default behavior for http in a ws server is to return a 404, but since serveHttp() was added you can just override that and code it just like serve() on NanoHTTPD.

cool :) i think i will use your library. I need to realize a http/ws proxy. probably i need to add a thread pool but i saw it is simple in your code.

Observing NanoWSD already now has method ....
protected Response serveHttp(final IHTTPSession session) {
return super.serve(session);
}
calling serve...

NanoHTTPD's serve returns a 404, which NanoWSD calls in serveHttp. You don't actually want to override NanoWSD's serve because that's what handles websockets, be careful with that.
Now, if your questions are answered you should close the issue yourself :)

thanks


Update Project.toml

I should perhaps use CompatHelper. Checking if 0.19 accidentally broke something here.

Codecov Report

Merging #200 (16edf7c) into master (d6de8f4) will increase coverage by 0.68%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #200      +/-   ##
==========================================
+ Coverage   91.66%   92.34%   +0.68%
==========================================
  Files          36       36
  Lines        5072     4728     -344
==========================================
- Hits         4649     4366     -283
+ Misses        423      362      -61

Impacted Files
Coverage Δ

src/reconstruct_loopset.jl
93.00% <0.00%> (-3.86%)
:arrow_down:

src/lowering.jl
91.64% <0.00%> (-3.12%)
:arrow_down:

src/lower_load.jl
96.23% <0.00%> (-2.21%)
:arrow_down:

src/lower_constant.jl
82.47% <0.00%> (-2.00%)
:arrow_down:

src/broadcast.jl
86.23% <0.00%> (-1.90%)
:arrow_down:

src/line_number_nodes.jl
92.30% <0.00%> (-1.81%)
:arrow_down:

src/vectorizationbase_compat/contract_pass.jl
80.45% <0.00%> (-0.98%)
:arrow_down:

src/graphs.jl
88.57% <0.00%> (-0.98%)
:arrow_down:

src/mapreduce.jl
90.41% <0.00%> (-0.62%)
:arrow_down:

src/memory_ops_common.jl
91.61% <0.00%> (-0.56%)
:arrow_down:

... and 22 more

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 d6de8f4...16edf7c. Read the comment docs.


Remove jcs data integrity tests.

Removes linked data data integrity tests for JCS as JCS does not use linked data proofs.

Fixes #56


Implement Softmax function

Feature Description
We would like to have an implementation of Softmax!
We already have some non linear function implemented through approximation, inluding sigmoid but not yet Softmax, that would be super useful for Logistic Regression, which in turn is a building block for LSTM :)

Here here


Clusters misbehaving?

Hello there!
Thank you for the components, they work as desired and things are looking pretty good. :)
One small issue/question: either I'm misunderstanding something (very probably the case), or Clusters are totally misbehaving for me. When I got only One entry in a Cluster left, shouldn't it go back to being a Marker?

Hey you can use the v2 npm i react-mapbox-gl@next where Cluster component is fixed. Should be released this week.

Should now be fixed with version 2.0.3 on main release


Remote cache miss despite --dry-run=json reporting "remote": true

What version of Turborepo are you using?
1.5.6
What package manager are you using / does the bug impact?
pnpm
What operating system are you using?
Mac
Describe the Bug
Github actions reports a cache miss like this:
@docsndata/ops-team-backup:build: cache miss, executing d15aaa2304d06baf

Running npx turbo build --dry-run=json locally reports this:
{
      "taskId": "@docsndata/ops-team-backup#build",
      "task": "build",
      "package": "@docsndata/ops-team-backup",
      "hash": "d15aaa2304d06baf",
      "cacheState": {
        "local": false,
        "remote": true
      },
      "command": "tsc -p tsconfig.json \u0026\u0026 tsc -p tsconfig-cjs.json",
      "outputs": [
        ".svelte-kit/**",
        "dist/**",
        "package/**"
      ],
      "excludedOutputs": null,
      "logFile": "ops/team-backup/.turbo/turbo-build.log",
      "directory": "ops/team-backup",
      "dependencies": [
        "@docsndata/data-graphql#build",
        "@docsndata/ops-monitor#build",
        "@docsndata/data-graphql-for-tables#build",
        "@docsndata/model-team#build",
        "@docsndata/model-types#build",
        "@docsndata/data-backend-tables#build",
        "@docsndata/lang-util#build",
        "@docsndata/lang-lodash#build",
        "@docsndata/data-backend-test-schema#build",
        "@docsndata/model-core2#build",
        "@docsndata/testing-stub-graphql#build"
      ],
      "dependents": [
        "@docsndata/ops-cli#build",
        "@docsndata/ops-team-restore#build"
      ]
    }

My github actions yml file is:
name: CI

on:
  push:
    branches: ["master"]
  pull_request:
    types: [opened, synchronize]

jobs:
  build:
    name: Build and Test
    timeout-minutes: 30
    runs-on: ubuntu-latest
#    runs-on: self-hosted
#     To use Remote Caching, uncomment the next lines and follow the steps below.
    env:
     TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
     TURBO_TEAM: ${{ secrets.TURBO_TEAM }}

    steps:
      - name: Check out code
        uses: actions/checkout@v3
        with:
          fetch-depth: 2

      - uses<EMAIL_ADDRESS>        with:
          version: 7
          run_install: false

      - name: Setup Node.js environment
        uses: actions/setup-node@v3
        with:
          node-version: 16
          cache: "pnpm"

      - name: Install dependencies
        run: pnpm install --frozen-lockfile

      - name: Running postinstall script
        run: ./scripts/postinstall.sh

      - name: Build
        run: npx turbo build

      - name: Test
        run: npx turbo test

My monorepo consists of 152 packages.  Github actions always gets cache misses, but never the same ones.  It made me wonder if maybe the remote cache server was failing http calls under load.  But that is conjecture.
Running npx turbo build --remote-only locally reports a full cache hit.
Expected Behavior
I expected a cache hit for given hash
To Reproduce
I don't have a small reproduction of this problem.  It varies each time I run the github action.

I'm experience a similar issue. After building a monorepo locally and pushing it to Github, only one (count varies) out of the three triggered workflows will get a cache hit. The others will miss.
Example:
These three workflows ran simultaneously.
workflow 1 logs:
@self/utils:build: cache hit, replaying output b1f5b06bf4732195

workflow 2 logs:
@self/utils:build: cache miss, executing b1f5b06bf4732195

workflow 3 logs:
@self/utils:build: cache miss, executing b1f5b06bf4732195

Out of curiosity what is the full output with log verbosity increased? (-vv)

We are starting work soon on increasing the amount of information you get on cache misses!

@ambiguous48 I've sorted your workflows by time which makes it super-clear what happened in your case, and is not indicative of a bug:
2022-10-17T03:23:29.992Z [DEBUG] turbo: task hash: value=b1f5b06bf4732195
2022-10-17T03:23:29.992Z [DEBUG] turbo: performing request: method=GET url=https://vercel.com/api/v8/artifacts/b1f5b06bf4732195
@self/utils:build: cache miss, executing b1f5b06bf4732195
2022-10-17T03:23:35.675Z [DEBUG] turbo: performing request: method=PUT url=https://vercel.com/api/v8/artifacts/b1f5b06bf4732195

2022-10-17T03:23:34.292Z [DEBUG] turbo: task hash: value=b1f5b06bf4732195
2022-10-17T03:23:34.292Z [DEBUG] turbo: performing request: method=GET url=https://vercel.com/api/v8/artifacts/b1f5b06bf4732195
@self/utils:build: cache miss, executing b1f5b06bf4732195
2022-10-17T03:23:38.220Z [DEBUG] turbo: performing request: method=PUT url=https://vercel.com/api/v8/artifacts/b1f5b06bf4732195

2022-10-17T03:23:54.314Z [DEBUG] turbo: task hash: value=b1f5b06bf4732195
2022-10-17T03:23:54.314Z [DEBUG] turbo: performing request: method=GET url=https://vercel.com/api/v8/artifacts/b1f5b06bf4732195
@self/utils:build: cache hit, replaying output b1f5b06bf4732195

I'm going to collapse your comments as they're unrelated to the initial report from @mike-hogan. Thank you for providing enough information for us to investigate and fully rule out any issues.

@mike-hogan Since we dynamically update the state of the cache during the run for this to indicate an error we would need:

attestation that you have precisely one workflow running at a time.
a --dry=json run in the same GitHub Actions workflow prior to running turbo run build.
-vvv on the turbo run build.
The command you're running for turbo, and any TURBO_ env vars.
the hash in question
the dry run showing { cacheState: { remote: true } } and the actual run showing cache miss, executing ....

If you get me this information within 48 hours of encountering something weird we can take a look and identify if the behavior is expected.
For the interim: I'm going to close this issue because in searching our server logs I don't see the GET/HEAD 200 then PUT for any assets.

If anybody other than @mike-hogan encounters this: open a new issue with the same information that I asked @mike-hogan for! Ping me on Discord or Twitter so that I can get to our server logs within 48 hours.


fixed issue #19

Calling removeRequestPermissionsResultListener(), setMethodCallHandler, and unregisterActivityLifecycleCallbacks before checking weather m_activityBinding, channel, and application are null or not cause the plugin to crash.

Thanks @de7miii much appreciated  your help. I am sure your PR will be merged I am now sorting the issues and in this week I am returning to maintain the plugin source and I will check and merge your PR.
Again, thanks a lot!


Test Only: Refactor Check Result Messages for Test Summary Checks

The scope of this ticket includes doing regression testing on the ALL the test summary modals to ensure error messages are displaying as expected.https://app.zenhub.com/files/287570343/45d5dc88-0d7b-4819-a10d-d2fb149579b0/download

Test Case: TC1197
Test Passed

ECMPS QA/Cert Data
Check Specifications
ECMPS Import
Check Specifications


[SPARK-8766] support non-ascii character in column names

Use UTF-8 to encode the name of column in Python 2, or it may failed to encode with default encoding ('ascii').
This PR also fix a bug when there is Java exception without error message.

Merged build triggered.

Merged build started.

Test build #36299 has started for   PR 7165 at commit 867754a.

Test build #36299 has finished for   PR 7165 at commit 867754a.

This patch fails PySpark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Merged build triggered.

Merged build started.

Test build #36306 has started for   PR 7165 at commit 3b09d31.

Test build #36306 has finished for   PR 7165 at commit 3b09d31.

This patch fails PySpark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Merged build triggered.

Merged build started.

Test build #36313 has started for   PR 7165 at commit 02cb61a.

Test build #36313 has finished for   PR 7165 at commit 02cb61a.

This patch passes all tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
trait ExpectsInputTypes
trait AutoCastInputTypes

Merged build finished. Test PASSed.

cc @rxin

LGTM


[FR] option for making unknown arguments to setup into a hard error

What's the problem this feature will solve?
Sometimes users attempt to install build dependencies themselves (such as cffi). When they mess this up, and then run setup.py, the unknown options passed to setup.py become a warning, which users often miss in the large output.
The ability to make these into an exception would ensure users catch their errors early.
Describe the solution you'd like
A setup() argument (setup.cfg as well, I suppose) like error_on_unknown=True that changes https://github.com/pypa/setuptools/blob/ba3995e5705a22e13bb5d2231ac22c77e4417747/setuptools/_distutils/dist.py#L261-L262 into an exception, instead of a warning.
Alternative Solutions
No response
Additional context
No response
Code of Conduct

[X] I agree to follow the PSF Code of Conduct

Hi @alex , could this be achieved with PYTHONWARNINGS or python -W?
I have the feeling that this would mean more complexity; but Python itself already has means of achieving similar results...

I think so, the one challenge is that there's no warning class or anything
so it'd be a bit challenging to target it I think?
בתאריך יום ה׳, 22 בספט׳ 2022, 13:13, מאת Anderson Bravalheri <
@.***>:

Hi @alex https://github.com/alex , could this be achieved with
PYTHONWARNINGS or python -W?
I have the feeling that this would mean more complexity; but Python itself
already has means of achieving similar results...
—
Reply to this email directly, view it on GitHub
https://github.com/pypa/setuptools/issues/3602#issuecomment-1255317422,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAAGBHSIPT4NFGJDSLY253V7SHUVANCNFSM6AAAAAAQSUDKXU
.
You are receiving this because you were mentioned.Message ID:
@.***>

Having a parent class for all warnings is a reasonable request. However we will need to coordinate this with pypa/distutils (we could do it only in the setuptools code base, but I don't know if that is enough).

I'm emberassed to say I have just discovered that you can use a warning message as a warning filter: https://github.com/pyca/cryptography/pull/7640
So this works. It's basically reliant on the warning message never changing, but maybe that's good enough to not bother with a new feature...


Expand environment variables

Update for issue https://github.com/alichtman/shallow-backup/issues/164
I think that this order might be the correct one (first expand ~ and then environment variables).

Update from master and then fix those conflicts and I'll take a look.

There are still some conflicts to resolve here before I can merge.

Ok, this is getting a mess.
I'll just try again from a clean slate


Cartesian: Implementation of print_value

Implements the print_value statement-level debugging function.
More info about this at: https://hackmd.io/hIWI5wOyT9WBEHcmA1SC3Q

I'll close for now.


Add multiroot options to standalone embedder

This is needed for standalone dart vm embedder to generate reproducible snapshots that are insensitive to dart application source file paths.
This functionality exists in frontend-server, it needs to be made available in kernel-service.

cc @keertip

Thanks Alex!


Rename Results to RoundTrips

Renames the field so that it's in sync with the design document.

This change is

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 83.038%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
749

Relevant Lines:
902

💛  - Coveralls


If you could provide an API of your best model, I can provide many pictures and examples in industry

I am working at a UAV company and we need to use UAV prediction and inspection in many industry scenarios.
The key point is that the pictures captured by UAV in many scenarios vary very much from countryside to urban districts, as well as all kinds of objects and whether conditions.
So I think this could improve the performance of your model in industry use.

Or if you just want raw images captured from UAVs, I could also provide some.


emacs: fix setup-hook

This change fixes byte compilation of, e.g., Helm without breaking builds using, e.g., trivialBuild.
See https://github.com/NixOS/nixpkgs/pull/82604#issuecomment-607201755

I've confirmed that helm is successfully byte compiled. LGTM.

Thanks for testing! Rebased to master in bf486f784ddd969c03243dba4c93d0e8e861173e.x


Check and alert on metric absence

Priority
(Medium) I'm annoyed but I'll live
Is your feature request related to a problem?
For proper alerting, the metrics that were used in the alert rule definitions in a PrometheusRule must exists.
Additional context.
Use the https://github.com/sapcc/absent-metrics-operator for checking and alerting on absent metrics.
Reference Issues
No response

https://github.com/cloudoperators/greenhouse-extensions/issues/118


1.9 dupe spells using 2 hand

Hello, i live in Russia so excuse me for my english.
With the second hand, you can duplicate the spell .
In the video below, all demonstrated:
https://www.youtube.com/watch?v=EYPkBHS2sXA
Please fix this. =(

Hi! I thought I had fixed this already- what version of Magic do you have?

I'm sorry to say Magic 5.x isn't really getting updating anymore. No idea if you're still using it or having these problems, I apologize if so.
I don't think this is an issue on later builds of Magic, so I'm going to close this issue for now.


More data to be added

Hi Mattis,
I just found some new wordlists and would like to include them in the database.
These include:

Yaoji Situ (field notes of my student, Li Ruiyao)
Bragsteng Situ (field notes from myself and Shuya)
Shimuliu Japhug (Jackson Sun 1996)
Benzhen (Jackson Sun 1996), 5. Bawang (Yang 2021)

Jackson Sun (1996) is a source that had never been disclosed (although the document says it can be freely used since 2000). A friend of mine from Taiwan found it from the dusted documents in Academia Sinica.
I will keep you updated when these are ready. It shouldn't take long.
Best,

Nice, so we make an update with these new files plus the one's you sent
before, I think I can do this in November. I prefer to update ones. So
if you tell me that you're ready, I'll then schedule when to combine
those, okay?

Yes, sure!

Hi Mattis, I have uploaded five more wordlists (the descriptions are in the update information). I think that I am now ready for cognacy review once we have included the new wordlists. I will tell you more about my paper plan later on.

Hi Yunfan. The way in which I would proceed now is:

try to write one script to combine all data, using the data that is currently in EDICTOR
I can modify parts of the data (language names) upon request for the data in EDICTOR as well
I assign 0 cognates for all morphemes in the new data, assuming this is the best way to proceed?

Hi Mattis. I agree with the three points you listed. I believe that it is the most efficient way. Let's do it this way. Thank you very much!

Can you please list for me all wordlists that are new, and also the names of the languages, and glottocodes?

Sure.

CogtseSitu.tsv: Cogtse Situ, glottocode: maer1238
NjorogsKhroskyabs.tsv, Njorogs Khroskyabs, yelo1242
mBrongrdzongKhroskyabs.tsv, mBrongrdzong Khroskyabs, glottocode: muer1238
BawangHorpa.tsv, Bawang Horpa, glottocode: horp1240
BragstengSitu.tsv, Bragsteng Situ, glottocode: situ1238
JRYYSitu.tsv, Situ in Jiarongyiyu, glottocode: situ1238
ShimuliuJaphug.tsv, Shimuliu Japhug, glottocode: japh1234
YaojiSitu.tsv, Yaoji Situ, glottocode: situ1238

updates/2023-12-13/update.py:46: UserWarning: mBrongrzongKhroskyabs.tsv does not exist

Here's a first overview:

Doculect
Items
Coverage

Bantawa
253
0.821429

BragbarSitu
290
0.941558

Daofu
237
0.769481

Geshiza
267
0.866883

GuanyinqiaoKhroskyabs
290
0.941558

Japhug
293
0.951299

KyomkyoSitu
236
0.766234

MaerkangrGyalrong
241
0.782468

MazurStau
297
0.964286

MenyaGao
292
0.948052

MuyaKangding
236
0.766234

NgyaltsuZbu
291
0.944805

NjorogsKhroskyabs
289
0.938312

OldBurmese
228
0.74026

QueyuPubarong
276
0.896104

QueyuXinlong
236
0.766234

SiyuewuKhroskyabs
289
0.938312

Tangut
273
0.886364

Tshobdun
216
0.701299

WobziKhroskyabs
290
0.941558

Zhaba
239
0.775974

Zlarong
239
0.775974

Thanks! Sorry, it should be mBrongrdzongKhroskyabs.tsv. (the warning lacks a d before z)

@laiyunfan, I update this now, you find a folder called edictor/update/2023-12-13 in this folder, there is the new wordlist, new_data.tsv, please check this in edictor. If you think it is fine, I update the data base online.

Doculect
Items
Coverage

Bantawa
253
0.790625

Bawang Horpa
282
0.88125

Bragbar Situ
290
0.90625

Cogtse Situ
268
0.8375

Geshiza
267
0.834375

Guanyinqiao Khroskyabs
290
0.90625

Japhug
293
0.915625

Kangding Minyag
236
0.7375

Kyomkyo Situ
236
0.7375

Mazur Stau
297
0.928125

Mbarkhams Situ
241
0.753125

mBrongrdzon Khroskyabs
285
0.890625

Ngyaltsu Zbu
291
0.909375

Njorogs Khroskyabs
294
0.91875

Old Burmese
228
0.7125

Pengbuxi Minyag
292
0.9125

Pubarong Queyu
276
0.8625

Shimuliu Japhug
261
0.815625

Situ in Jarongyiyu
136
0.425

Siyuewu Khroskyabs
289
0.903125

Stau
237
0.740625

Tangut
273
0.853125

Tshobdun
216
0.675

Wobzi Khroskyabs
290
0.90625

Xinlong Queyu
236
0.7375

Yaoji Situ
251
0.784375

Zhaba
239
0.746875

Zlarong
239
0.746875

Thanks! I will check this as soon as possible.

I make a PR, so you also see the code (which you should be able to run):
pip install lexibase
pip install pyedictor
pip install lingpy

I think more packages are not needed.

sure, thank you!

@laiyunfan, I updaed the code, can you check the link? You find it here: https://github.com/lexibank/lairgyalrong/blob/master/edictor/link.md

Please copy-paste the link, do not click on teh field, that does not work.

Hi, Mattis, the link works for me. Can I review the cognate judgements with this now? (I've been busy marking students' term papers this week, so I am a bit behind schedule, but I'll start quickly)

Yes, you can!

Thanks!


signed math

todo: implement signed arithmetic instructions.
It may be a good idea to start with implementing it with polyfills.
The sign bit is considered the least significant bit of the cell.

recent PR's add features. Missing:
[ ] sgsub
[ ] sgadd
[ ] signed comparisons
[ ] conditional variants of all above
[ ] 2nd stage conditional variants of all above

most stuff is done except conditional variants, but they can be synthetized with cbegin and cend anyways.
Closing.


Add self-hosted Gitlab migration support

This extends PR#9084 to allow migrating from self-hosted Gitlab instances.
Detection is based on adding a '#gitlab' fragment to the end of the given Clone Address.

would you add an option ignore certificate?

no stale the main pull is not ready jet ...

@aqtrans can you rebase this pull?
since #9084 got merged?

you may want to wait for  #11136 to be merged :)

@aqtrans rebased for you. since I looked throu gitlab client's changes ... the lib update is only needed for reviews (#11137)
do you have a own gitlab instance to test with?

Codecov Report

Merging #9096 into master will increase coverage by 0.00%.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##           master    #9096   +/-   ##
=======================================
  Coverage   43.26%   43.26%
=======================================
  Files         601      601
  Lines       85531    85534    +3
=======================================
+ Hits        37001    37010    +9
+ Misses      43958    43951    -7
- Partials     4572     4573    +1

Impacted Files
Coverage Δ

modules/migrations/gitlab.go
1.75% <0.00%> (-0.02%)
:arrow_down:

services/pull/pull.go
33.96% <0.00%> (ø)

routers/repo/view.go
36.82% <0.00%> (+0.67%)
:arrow_up:

modules/git/repo.go
51.04% <0.00%> (+1.25%)
:arrow_up:

models/unit.go
44.44% <0.00%> (+2.46%)
:arrow_up:

Continue to review full report at Codecov.

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

I think adding #gitlab to the URL for detection feels like a confusing interface -- we should just add a drop down menu or something even if gitlab is the only option for now. I know there should be gitea/gogs at some point too (there is a PR for it) and maybe/hopefully more in the future.

@aqtrans are you on this?

@techknowlogick can we add this to v1.12 since it works only UI has change ...

I agree with @mrsdizzie here. There should be either a drop-down or a list of radio buttons (auto-detect, GitHub, GitLab, ... others to come). Slight problem here is that GitHub doesn't allow for a custom host address, which would be interesting for consistency (but it can't be helped since the api is provided by GitHub itself). Either way, IMHO it should not be a fragment of the URL. 😁

another +1 for what @mrsdizzie said. In GitLab they have a migration page where you first select the forge type (gitlab, github, gitea, etc..) and then it will have different settings based on what you've selected (for example github we may want to have different help text about personal tokens needed for migration), and we could also split mirror and migration as it has lead to confusion in past.
@guillep2k our GitHub migration logic would also in theory support github enterprise too at a custom URL.
I am thankful for this PR as it has brought up these discussions. If it goes in I wouldn't be upset, and so I won't be a blocker, but I think the high-level needs to be reviewed first. Maybe it goes in temporarily until we can get improve the migration experience?

A new wizard UI is better. I propose we have a migration type selection page before current.
There are four migration types you can chose:

Mirror from a git service
Migrate from a github service
Migrate from a gitlab service
Migrate from other git service

no stale just nobody wants to contribute the frontend 😅

It would be great if this could be merged with the #gitlab fragment. I agree it's not "good UI" but at least it would work and I'm eagerly waiting to migrate some projects from my self-hosted Gitlab to Gitea. Thanks in advance!

@aqtrans do you have time, I wont for in the next weeks ...

Codecov Report

Merging #9096 into master will decrease coverage by 0.01%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master    #9096      +/-   ##
==========================================
- Coverage   43.41%   43.39%   -0.02%
==========================================
  Files         645      645
  Lines       71288    71290       +2
==========================================
- Hits        30947    30939       -8
- Misses      35327    35333       +6
- Partials     5014     5018       +4

Impacted Files
Coverage Δ

modules/migrations/gitlab.go
1.72% <0.00%> (-0.02%)
:arrow_down:

modules/indexer/stats/db.go
52.17% <0.00%> (-8.70%)
:arrow_down:

modules/git/utils.go
73.77% <0.00%> (-3.28%)
:arrow_down:

modules/queue/unique_queue_disk_channel.go
53.84% <0.00%> (-1.54%)
:arrow_down:

modules/log/event.go
56.60% <0.00%> (-0.95%)
:arrow_down:

modules/git/repo.go
49.23% <0.00%> (-0.51%)
:arrow_down:

services/pull/pull.go
41.57% <0.00%> (-0.47%)
:arrow_down:

modules/util/timer.go
85.71% <0.00%> (+42.85%)
:arrow_up:

Continue to review full report at Codecov.

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


add order_by()

implements the order by function
please review thoroughly as I'm not experienced with python3, async and sqiachemy
fixes #6

Hi @marco-silva0000, have you had the time to review Tom's requested changes yet? If you don't have time, I can take over a submit an updated PR based on this. I think it'd be very nice to add .order_by() functionality.

sorry, I wanted to reply earlier but the message stayed as a draft.
About the helper method that imports the 'text' class from alchemy, I made it like this because I was thinking I had to use different classes based on what fields were to be ordered.  But in the end it worked with just text.

Any movement on this PR?


Update docs include syntax for source examples

Privileged issue

[X] I'm @tiangolo or he asked me directly to create an issue here.

Issue Content
This is a good first contribution. :nerd_face:
The code examples shown in the docs are actual Python files. They are even tested in CI, that's why you can always copy paste an example and it will always work, the example is tested.
The way those examples are included in the docs used a specific format. But now there's a new format available that is much simpler and easier to use than the previous one, in particular in complex cases, for example when there are examples in multiple versions of Python.
But not all the docs have the new format yet. The docs should use the new format to include examples. That is the task. :nerd_face:
It should be done as one PR per page updated.
Simple Example
Before, the format was like:
```Python hl_lines="1  4"
{!./docs_src/tutorial/create_db_and_table/tutorial001_py310.py!}
```

Now the new format looks like:
{* ./docs_src/tutorial/create_db_and_table/tutorial001_py310.py hl[1,4] *}

Instead of {! and !} it uses {* and *}
It no longer has a line above with:

```Python

And it no longer has a line below with:

```

The highlight is no longer a line with e.g. hl_lines="3" (to highlight line 3), but instead in the same line there's a hl[3].

Multiple Python Versions
In many cases there are variants of the same example for multiple versions of Python, or for using Annotated or not.
In those cases, the current include examples have syntax for tabs, and notes saying Annotated should be preferred. For example:
//// tab | Python 3.10+

```Python hl_lines="1  4"
{!./docs_src/tutorial/create_db_and_table/tutorial001_py310.py!}
```

////

//// tab | Python 3.7+

```Python hl_lines="3  6"
{!./docs_src/tutorial/create_db_and_table/tutorial001.py!}
```

////

In these cases, it should be updated to only include the first one (the others will be included automatically :sunglasses: ):
{* ./docs_src/tutorial/create_db_and_table/tutorial001_py310.py hl[1,4] *}

The syntax for tabs is also removed, all the other variants are included automatically.
The highlight lines are included for that same first file, the fragment with hl_lines="1  4" is replaced with hl[1,4]

Highlight Lines
Simple Lines
When there's a fragment like:
hl_lines="4  8  12"

That means it is highlighting the lines 4, 8, and 12.
The new syntax is on the same include line:
hl[4,8,12]

It separates individual lines by commas.
It uses hl, with square brackets around.

Line Ranges
When there are line ranges, like:
hl_lines="4-6"

That means it is highlighting lines from 4 to 6 (so, 4, 5, and 6).
The new syntax uses : instead of - for the ranges:
hl[4:6]

Multiple Highlights
There are some highlights that include individual lines and also line ranges, for example the old syntax was:
hl_lines="2  4-6  8-11  13"

That means it is highlighting:

Line 2
Lines from 4 to 6 (so, 4, 5, and 6)
Lines from 8 to 11 (so, 8, 9, 10, and 11)
Line 13

The new syntax separates by commas instead of spaces:
hl[2,4:6,8:11,13]

Include Specific Lines
In some cases, there are specific lines included instead of the entire file.
For example, the old syntax was:
```Python hl_lines="1  4"
{!./docs_src/tutorial/create_db_and_table/tutorial001_py310.py[ln:1-8]!}

# More code here later 👇
```

In this example, the lines included are from line 1 to line 8 (lines 1, 2, 3, 4, 5, 6, 7, 8). In the old syntax, it's defined with the fragment:
[ln:1-8]

In the new syntax, the included code from above would be:
{* ./docs_src/tutorial/create_db_and_table/tutorial001_py310.py ln[1:8] hl[1,4] *}

The lines to include that were defined with the fragment [ln:1-8], are now defined with ln[1:8]

The new syntax ln as in ln[1:8] also supports multiple lines and ranges to include.
Comments Between Line Ranges
In the old syntax, when there are ranges of code included, there are comments like:
# Code below omitted 👇

The new syntax generates those comments automatically based on the line ranges.
Real Example
A more real example of the include with the old syntax looked like this:
//// tab | Python 3.10+

```Python hl_lines="1  4"
{!./docs_src/tutorial/create_db_and_table/tutorial001_py310.py[ln:1-8]!}

# More code here later 👇
```

////

//// tab | Python 3.7+

```Python hl_lines="3  6"
{!./docs_src/tutorial/create_db_and_table/tutorial001.py[ln:1-10]!}

# More code here later 👇
```

////

/// details | 👀 Full file preview

//// tab | Python 3.10+

```Python
{!./docs_src/tutorial/create_db_and_table/tutorial001_py310.py!}
```

////

//// tab | Python 3.7+

```Python
{!./docs_src/tutorial/create_db_and_table/tutorial001.py!}
```

////

///

In the new syntax, that is replaced with this:
{* ./docs_src/tutorial/create_db_and_table/tutorial001_py310.py ln[1:8] hl[1,4] *}

The only file that needs to be included and defined is the first one, and the lines to include and highlight are also for the first file only.
All the other file includes, full file preview, comments, etc. are generated automatically.

An example PR: https://github.com/fastapi/sqlmodel/pull/1149
Line Ranges and Highlights
In the old syntax, the hl_lines="15" refers to highlighting the resulting lines.
For example, with the old syntax:
```Python hl_lines="15"
# Code above omitted 👆

{!./docs_src/advanced/uuid/tutorial001_py310.py[ln:37-54]!}

If you count the lines in that snippet, the first line has:
# Code above omitted 👆

And the line 15 in that snippet has:
        statement = select(Hero).where(Hero.id == hero_id)  # THIS LINE IS HIGHLIGHTED

Not the entire source file was included, only lines 37 to 54. And that highlighted line inside of the source file is actually line 49. But the hl_lines="15" refers to the line 15 in the rendered snippet of code.
So, with the old syntax, when you want to highlight lines, you have to include the file and see the rendered result, count lines in the rendered document, and then mark the lines to highlight based on that result, wait for the reload to check if the line is correct, etc. ...it's a very slow process.
But with the new syntax, the number that you use is the line in the actual source file, so, if the line to highlight in the source file is line 49, that's what you define in the include:
{* ./docs_src/advanced/uuid/tutorial001_py310.py ln[37:54] hl[49] *}

This way it's easier to declare the lines or line ranges to include and the lines to highlight by just checking the source file. All the comments in between ranges and complex math will be done automatically.
Help
Do you want to help? Please do!
Remember it should be done as one PR per page updated.
If you see a page that doesn't fit these cases, leave it as is, I'll take care of it later.
Before submitting a PR, check if there's another one already handling that file.
Please name the PR including the file path, for example:
📝 Update includes for `docs/tutorial/create-db-and-table.md`

Hi, I can't run the project on my machine (MacOS).
I've followed the steps described in https://sqlmodel.tiangolo.com/contributing/
After successfully installing requirements.txt, I tried running the project as follows:
Executing python ./scripts/docs.py live or python3 ./scripts/docs.py live I get the following error:
`ERROR   -  "cairosvg" Python module is installed, but it crashed with:
no library called "cairo-2" was found
no library called "cairo" was found
no library called "libcairo-2" was found
cannot load library 'libcairo.so.2': dlopen(libcairo.so.2, 0x0002): tried: 'libcairo.so.2' (no such file), '/opt/homebrew/lib/libcairo.so.2' (no such
file), '/Users/fran/Developer/Learning/Python/SQLModel/sqlmodel/libcairo.so.2' (no such file).  Additionally, ctypes.util.find_library() did not manage to
locate a library called 'libcairo.so.2'
cannot load library 'libcairo.2.dylib': dlopen(libcairo.2.dylib, 0x0002): tried: 'libcairo.2.dylib' (no such file), '/opt/homebrew/lib/libcairo.2.dylib'
(no such file), '/Users/fran/Developer/Learning/Python/SQLModel/sqlmodel/libcairo.2.dylib' (no such file).  Additionally, ctypes.util.find_library() did
not manage to locate a library called 'libcairo.2.dylib'
cannot load library 'libcairo-2.dll': dlopen(libcairo-2.dll, 0x0002): tried: 'libcairo-2.dll' (no such file), '/opt/homebrew/lib/libcairo-2.dll' (no such
file), '/Users/fran/Developer/Learning/Python/SQLModel/sqlmodel/libcairo-2.dll' (no such file).  Additionally, ctypes.util.find_library() did not manage to
locate a library called 'libcairo-2.dll'
       --> Check out the troubleshooting guide: https://t.ly/MfX6u

Aborted with a BuildError!`
I've tried the alternatively way by running mkdocs serve --dev-addr 8008 but it returns the same error.
I have seen about the error at https://t.ly/MfX6u and tried every proposed solution but it still doesn't work.
Am I doing something wrong? Thanks for your time!

@szew404 I'm not on macOS but I infer you probably need to install Cairo apart from that: https://formulae.brew.sh/formula/cairo

This was handled in https://github.com/fastapi/sqlmodel/pull/1254


Unmapping the ELF memory causes a page fault

Something we need to look into after my ELF fix PR is merged.
I've tried several times to do an elf_unload method but it always causes a page fault when I unmap any of the pages.
Any idea why that could be happening?

@LittleCodingFox fyi, I think I fixed this and implemented elf_unload(). Not sure it is fully implemented but it seems to release pages/frames that it allocates when loading an elf. Also, I am able to load/execute/unload various binaries now.

FTR: https://github.com/willdurand/willOS/commit/1c54fcc767a6f1d079629d8250953602537e7241

Awesome work recently, I'm impressed!


Unexpected fragmentation with large writes and max_fragment_length=4096

Using current master (eafd3e9d07e9).
When using openssl s_server -rev to make openssl send large records, I've noticed that every line size sent to server is handled as expected, when I send 11111 bytes, I get 11111 bytes back. Similarly, when I negotiate max_fragment_length extension, the server will answer with packets fragmented in a way the client sent it. Negotiate 4096 byte records, send two 4096 byte and one 512 byte records, receive three records back, two 4096 byte long and one 512 byte long.
That is with the exception of negotiation of 4096 byte max_fragment_length and 16KiB long application data line, then server replies with 5 records, four 3584 byte long and one 2048 byte long.
This does not happen without max_fragment_lenght, or with smaller fragment sizes like 2048, 1024 or 512.
It also happens with ciphers with different overhead, like TLS_RSA_WITH_AES_128_CBC_SHA, or TLS_RSA_WITH_AES_128_CBC_SHA256.
But not with TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384, TLS_RSA_WITH_AES_128_GCM_SHA256 or TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256
Reproducer:
openssl req -x509 -newkey rsa -keyout localhost.key -out localhost.crt -subj /CN=localhost -nodes -batch
openssl s_server -key /tmp/localhost.key -cert /tmp/localhost.crt -rev -cipher @SECLEVEL=0:ALL -quiet

in another console:
git clone https://github.com/tomato42/tlsfuzzer
pushd tlsfuzzer
# won't be needed after https://github.com/tlsfuzzer/tlsfuzzer/pull/762 gets merged
git checkout length-testing
git clone https://github.com/tlsfuzzer/tlslite-ng .tlslite-ng
ln -s .tlslite-ng/tlslite tlslite
git clone https://github.com/tlsfuzzer/python-ecdsa .python-ecdsa
ln -s .python-ecdsa/src/ecdsa ecdsa
PYTHONPATH=. python scripts/test-lengths.py --size-limit 4096 -n 0 "length: $((1024*16))"

Use -C TLS_RSA_WITH_AES_128_CBC_SHA or -C TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 to test different ciphers (place before the name of the test, i.e. "length...")
Run without "length: $((1024*16))" to test all lengths.

Even more curiously if I add -trace onto the end of the s_server command line the test suddenly starts to pass!

The reproducer seems to run 3 tests 2 of which pass and 1 of which fails. Is it possible to get it to only run the 1 failing test?

It's a feature! Sort of.
This is actually due to the multiblock performance enhancement. This kicks in if you are sending more than a set amount of data and encrypt-then-mac is not being used, and the cipher supports it. In such a case some ciphers can actually create the whole TLS records themselves and can encrypt 4 or 8 records worth of data all in one go.
In this case, sending 16KiB data with 4096 max_fragment_length the code is detecting that it can do 4 records in one go via multiblock. The fragment size to send is actually reduced slightly for the period that multiblock has kicked in due to this code:
https://github.com/openssl/openssl/blob/eafd3e9d07e99583a1439bb027e4d6af43e2df27/ssl/record/rec_layer_s3.c#L448-L450
So when multiblock is operational we are actually using a fragment size of 4096 - 512 = 3584. So the 4 records you see of 3584 bytes have been encrypted using the multiblock code. Finally there is 2048 bytes remaining and it is sent in a fifth and final record.
I actually doubt that multiblock should be kicking in, in the case that max_fragment_length has been negotiated. Multiblock is optimised for full length records. I doubt we see the performance benefit for smaller fragment lengths, and it is probably a bug that it is kicking in for these smaller fragments.

Not sure if it's a bug though, looking at benchmark speeds at my 4-core 8-thread i7-8650U @ 1.9GHz I'm getting:

Thanks. Looks like we're best to keep that behaviour then.


Update read flags and pointer when reading messages

Logically:

any message the user sees the entirety of should be being marked as read via the POST messages/flags endpoint.
If the user scrolls down in the home view, the latest message they saw in the home view, if newer than the user's pointer, should be submitted to the server as an update to the pointer via PUT users/me/pointer.

Hi, I'd like to work on this issue.

Cool! @Sam1301 Go ahead. If you need any help, please speak up -- https://blogs.akamai.com/2013/10/you-must-try-and-then-you-must-ask.html might be a good guide. :)

@timabbott
File https://github.com/zulip/zulip-android/blob/master/app/src/main/java/com/zulip/android/networking/AsyncUnreadMessagesUpdate.java  uses the messages/flags endpoint and
https://github.com/zulip/zulip-android/search?utf8=✓&q=updatePointer&type=Code uses the end point users/me/pointer
They are being updated I think, is there any problem?

I've heard reports of there being a problem with this, but I think maybe the problem is that users who are not reading anything in the home view (and instead just look at narrows) don't end up updating the pointer on the server properly.  There's a server-side solution we need to do for that, so we can close this.

@timabbott @kunall17 I believe we are updating the pointer and read flags. Actually whats left is sync up with server for "read" messages (update_message_flags event) and updating the database accordingly which I have incorporated in my unread counts pr work.
Should this be closed?

Yeah, I think so.


chore(action): Add actions/labeler to label modules automatically

What problem does this PR solve?
it would be more convenient for developers to see what module pull request changes.
https://github.com/apache/incubator-pegasus/issues/1075

Should the action also need apply for permission to ASF?

Should the action also need apply for permission to ASF?

Seems it's in the allow list already, I saw Doris use it.


Resolve false-positive "empty jar" warning

Prevents the Jar project at {path} is empty. message from being displayed when the jar in question is not actually empty. The issue was that the check for the message checked the wrong variable (classes instead of classNames) 🤦♂
I also reformatted the code because it took me way too long to spot the with(project).

Codecov Report

Merging #381 into master will increase coverage by 0.06%.
The diff coverage is 100%.

@@             Coverage Diff              @@
##             master     #381      +/-   ##
============================================
+ Coverage     71.66%   71.73%   +0.06%
- Complexity      368      369       +1
============================================
  Files            63       63
  Lines          1486     1486
  Branches        185      185
============================================
+ Hits           1065     1066       +1
  Misses          342      342
+ Partials         79       78       -1

Impacted Files
Coverage Δ
Complexity Δ

.../projectcompiler/javajar/JavaJarProjectCompiler.kt
100% <100%> (+8.33%)
7 <2> (+1)
:arrow_up:

Continue to review full report at Codecov.

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


Updated fishing contest button to check for the items of both locations

Description:
The button just calls the normal fishing contest command with no location option causing the bot to to respond you need so many of bait to fish at location instead of checking if you have items for the other location

This image is an example of what it currently does now if you don't have bait before the location that it searches by default
i updated the fishingContestStartCommand() function to check for the items of both locations
all-in-all this will get rid of having to manually send the command for the location you do have items for.
mad thanks to @themrrobert for this.
Changes:

changed if (!loc)... to iterate over all validLoc items putting current value in location
moved the section of code that registers quantity as one above the location code so that way it reads quantity instead of a number when it comes to the amount of bait needed

Other checks:

[ ] I have tested all my changes thoroughly.

this edit worked in my test. but I have no clue how to turn off the daily cooldown to test the command.


macOS: Crash when creating a window when UseGpu is false

Describe the bug
On macOS, when UseGpu in AvaloniaNativePlatformOptions is set to false, a crash occurs when creating any window.  This crash also occurs when UseGpu is true if running in an environment where GPU acceleration can't be initialized properly.
Crash:
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
   at Avalonia.Native.WindowImpl..ctor(IAvaloniaNativeFactory factory, AvaloniaNativePlatformOptions opts, AvaloniaNativeGlPlatformGraphics glFeature) in /_/src/Avalonia.Native/WindowImpl.cs:line 32
   at Avalonia.Native.AvaloniaNativePlatform.CreateWindow() in /_/src/Avalonia.Native/AvaloniaNativePlatform.cs:line 153
   at Avalonia.Controls.Platform.PlatformManager.CreateWindow() in /_/src/Avalonia.Controls/Platform/PlatformManager.cs:line 31
   at Avalonia.Controls.Window..ctor() in /_/src/Avalonia.Controls/Window.cs:line 219
   at [...]

The WindowImpl constructor appears to be called with glFeature set to null when UseGpu is false (or when gpu acceleration isn't available). This causes a crash on this line: https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Native/WindowImpl.cs#L34
In AvaloniaNativePlatform, _platformGl appears to only be initialized here: https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Native/AvaloniaNativePlatform.cs#L132
So if UseGpu is false or an exception occurs during initialization, _platformGl is null, which causes the crash.
This crash seems to be new to 11.0.0-preview5
Desktop (please complete the following information):

OS: macOS
Version 11.0.0-preview5

Should be fixed by https://github.com/AvaloniaUI/Avalonia/pull/11914


Accessing windows print server

Thank you for the tutorials, they worked first try!
I can see the shared printers on \\<IP_ADDRESS> (shared by Windows Server), but when I try to connect to them I get (instantaneously) the error message: "Operation could not be completed (error 0x00000709) Double check the printer name and make sure that the printer is connected to the network."
Do you know what I need to change to be able to connect to the printers? How do I debug the connection requests?

Thanks for posting the solution - I have never tested print forwarding with this tutorial but glad to know it is now working again.


Components not working when used with Webpack

The docs say this that you can fire custom programmatic events in components:
<widget on-activate="doSomething"/>

ractive.on( 'doSomething', function () {
  alert( 'Widget activated!' );
});

(The same goes for any events that are fired programmatically by the component, rather than as a result of user interaction.)

However, doing something like on-close="xyz" gives you:
[Warning] Missing "close" event. You may need to download a plugin via http://docs.ractivejs.org/latest/plugins#events (vendor.js, line 66)

Using Ractive 0.4.0-pre2 on iOS7.1 Safari. This works alright on my desktop browsers though.
(This issue's previously titled Custom events for components throws an error, now renamed to be more specific to the issue.)

good call.


[runtime] Yielder handle should allow return of arbitrary results

Context
Currently our yielder handle only indicates readiness vs error. We would like to be able to pass more information back to the yielded coroutine.
Proposed Solution
Add a generic to the yielder that indicates the return type.

We no longer have yielders, only condition variables


Remove CI from README

What does this PR do?
Removes the CI table primarily as it clog up the README, not necessary with the badge there :)
Before submitting

[ ] Was this discussed/approved via a Github issue? (no need for typos and docs improvements)
[x] Did you read the contributor guideline, Pull Request section?
[x] Did you make sure your PR does only one thing, instead of bundling different changes together?
[x] Did you make sure to update the documentation with your changes?
[ ] Did you write any new necessary tests? [not needed for typos/docs]
[x] Did you verify new and existing tests pass locally with your changes?
[ ] If you made a notable change (that affects users), did you update the CHANGELOG?

PR review

[x] Is this pull request ready for review? (if not, please submit in draft mode)

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃

Let's just collabs it...

The section has been already collapsed since before, so would you think we should just close this PR?


Use pino or other logger to add structured logs

A POC was made a while ago: https://github.com/digdir/dialogporten-frontend/pull/362
Should be able to take inspiration from that and implement in a new pull request
### Tasks
- [x] Add logger in monorepo
- [x] use the logger in BFF
- [ ] Publish as an npm package for others to use
- [ ] Use the logger in fastify

use the logger in fastify as well https://fastify.dev/docs/v2.15.x/Documentation/Logging/


Uncaught exception 'CurlException' on new Magister

I'm getting a Uncaught exception 'CurlException' error when ever I try to use the $magister = new Magister('school', 'username', 'password'); line. (with the correct credentials, of course) It seems to try to resolve locations.login as a domain name. Am I missing something here?
PHP Fatal error:  Uncaught exception 'CurlException' with message 'CURLE_COULDNT_RESOLVE_HOST: Could not resolve host: locations.login' in  [...]/vendor/shuber/curl/lib/curl.php:169

Stack trace:

#0 [...]/vendor/shuber/curl/lib/curl.php(133): Curl->request('POST', 'locations.login', Array, NULL)

#1 [...]/vendor/stanvk/magister/src/Magister/Magister.php(127): Curl->post('locations.login', Array)

#2 [...]/vendor/stanvk/magister/src/Magister/Magister.php(107): Magister\Magister->invoke('', '')

#3 [...]/vendor/stanvk/magister/src/Magister/Magister.php(51): Magister\Magister->login('', '')

#4 [...]/index.php(8): Magister\Magister->__construct('ozhw', '[leerlingnummer]', '[wachtwoord]')

#5 {main}

  thrown in  [...]/vendor/shuber/curl/lib/curl.php on line 169

Sorry for the inconvenience. Currently, we are working on a new version, which will be released within a few days. We highly recommend you to wait for this new version as the current version is unstable. We are aware of this bug and it will be solved in the new version. To monitor our progress, take a look at the 'dev' branch.


Updated integration tests workflow

Updated integration tests workflow

@krassowski Thanks Mike and sorry it was merged before I had time to have a look at. Is there something to test ?

No worries, this review request was just a heads up to make sure you are aware of it. Nothing to test, but if it next time you try to update snapshots via comment it does not work do let me know. I will give more context on the lab meeting today.


Mollie is not defined on checkout confirm page

I noticed that on the checkout confirm page it throws an error:
 ReferenceError: Mollie is not defined
the corresponding place in the code should be this one:
https://github.com/mollie/Shopware6/blob/1c33680e003cba7686527f6b303a30cafbee9fdf/src/Resources/app/storefront/src/mollie-payments/plugins/creditcard-components-sw64.plugin.js#L44
Here is Mollie used but not defined anywhere.
Is this a known bug or do we have a local problem?

Hi there
this is because of the credit card components.
just double checked in Shopware default, so I don't get that problem.
but I know it from earlier support, it's in that case very likely due to a wrong custom theme or block inheritance
its the part here in the troubleshooting
https://github.com/mollie/Shopware6/wiki/Credit-Card
can you double check if the blocks in twig are correct. if you fix it, can you let me know, so I can improve the docs?
thank you :)

hey, thanks for the quick reply. components are enabled.
we use a customized theme. which blocks should i check?

Hi there
yes, perfect
thats the thing thats missing (Mollie.js)
so I guess you're happy and I can close this issue?

yes, i'm happy! i was looking for Mollie within the plugin. i didn't even think about it that there is an external script.
thank you for the hint.


Insecure Random Number Generator (CWE -330)

In the DataUtil.java, the library uses Random() function to generate random number which is insecure.
It is more reliable to use SecureRandom() for the same.

Duplicate of #994


PostUsage event always returns null

Quick fix to return a proper MeteringUsageResult based on the response from the API rather than empty instance.
This addresses #166

Returns populated JSON from emitting the billing event.


Edge labels doesn't display

Please help
Here's my code
    j,
    s,
    N = flowgraph.length,
    E = N * (N - 1),
    g = {
        nodes: [],
        edges: []
    };

for (i = 0; i < N; i++) {
    g.nodes.push({
        id: 'n' + i,
        label: 'Node' + i,
        x: Math.random(),
        y: Math.random(),
        size: 3,
        color: '#595959'
    });
}

for (i = 0; i < N; i++) {
    for (j = 0; j < N; j++) {
        if (flowgraph[i][j] > 0) {
            g.edges.push({
                id: 'e' + i + '' + j,
                source: 'n' + i,
                target: 'n' + j,
                label: 'edge' + i,
                color: '#A6A6A6',
                size: 4,
                type: 'arrow'
            });
        }
    }
}

s = new sigma({
    graph: g,
    container: 'graph-container',
    settings: {
        minEdgeSize: 1,
        maxEdgeSize: 4,
        edgeLabelSize: 'proportional',
    },
    type: 'canvas'
});

// Start the layout:
s.refresh();

I have imported
<script src="plugins/sigma.renderers.edgeLabels/settings.js"></script>
<script src="plugins/sigma.renderers.edgeLabels/sigma.canvas.edges.labels.def.js"></script>
<script src="plugins/sigma.renderers.edgeLabels/sigma.canvas.edges.labels.curve.js"></script>
<script src="plugins/sigma.renderers.edgeLabels/sigma.canvas.edges.labels.curvedArrow.js"></script>

But still my network doesn't display edge labels. Following is the displayed network.

Oops sorry for the unnecessary issue
After changing   type: 'canvas' in settings to
        container: document.getElementById('graph-container'),
        type: sigma.renderers.canvas,
    }, ```
It worked


Callback was already called

Version: 2.6.2
Platform: Node 4.2.6 on Heroku
Description:
Error: Callback was already called.
File "/app/node_modules/async/lib/async.js", line 43, in Multi.callback
if (fn === null) throw new Error("Callback was already called.");
File "/app/node_modules/redis/lib/multi.js", line 89, in multi_callback
self.callback(null, replies);
File "/app/node_modules/redis/lib/multi.js", line 116, in Command.callback
multi_callback(self, err, replies);
File "/app/node_modules/redis/index.js", line 714, in normal_reply
command_obj.callback(null, reply);
File "/app/node_modules/redis/index.js", line 816, in RedisClient.return_reply
normal_reply(this, reply);
File "/app/node_modules/redis/index.js", line 188, in JavascriptRedisParser.Parser.returnReply
self.return_reply(data);
File "/app/node_modules/redis/node_modules/redis-parser/lib/parser.js", line 413, in JavascriptRedisParser.execute
this.returnReply(response) // Strings + // Integers : // Bulk strings $ // Arrays *
File "/app/node_modules/redis/index.js", line 267, in Socket.
self.reply_parser.execute(buffer_from_socket);
File "events.js", line 77, in emitOne
File "events.js", line 169, in Socket.emit
File "_stream_readable.js", line 146, in readableAddChunk
File "_stream_readable.js", line 110, in Socket.Readable.push
File "net.js", line 523, in TCP.onread

Gotten this error a few times now in our production env. Happened twice on 2.4.3 so I updated to 2.6.2 and it's still happening. Not sure what's causing it to happen.

As far as I see it you call the callback twice in your own code. Please check where you call your own callback function in async.

Sorry, it just started happening without any change to our code, and I saw redis in the stack trace so I assumed it was something here. My bad.

:smile:


zappa install fails while collecting cfn_flip -> requires pytest-runner

pip install zappa fails while trying to collect cfn_flip
I was able to solve the issue with pip install pytest-runner, and then installing zappa.
Expected Behavior
pip install zappa should recognize pytest-runner as a dependent package and install automatically
Actual Behavior
pip install zappa
...
...
...
Collecting cfn_flip==1.0.0
Using cached cfn_flip-1.0.0.tar.gz
Complete output from command python setup.py egg_info:
Download error on https://pypi.python.org/simple/pytest-runner/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749) -- Some packages may not be found!
Couldn't find index page for 'pytest-runner' (maybe misspelled?)
Download error on https://pypi.python.org/simple/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749) -- Some packages may not be found!
No local packages or working download links found for pytest-runner
...
...
...
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pytest-runner')
----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/4l/r6m3plns4b5_5hbrd3t54dt40000gn/T/pip-build-pyjvv5jl/cfn-flip/
Possible Fix
pip install pytest-runner
Steps to Reproduce

Your Environment

Zappa version used:
Operating System and Python version:
max osx
python3
The output of pip freeze:
after fixed
argcomplete==1.9.2
base58==0.2.4
boto==2.48.0
boto3==1.5.9
botocore==1.8.23
certifi==2017.11.5
cfn-flip==1.0.0
chardet==3.0.4
click==6.7
Django==2.0.1
django-storages==1.6.5
docutils==0.14
durationpy==0.5
future==0.16.0
hjson==3.0.1
idna==2.6
jmespath==0.9.3
kappa==0.6.0
lambda-packages==0.19.0
placebo==0.8.1
pytest-runner==3.0
python-dateutil==2.6.1
python-slugify==1.2.4
pytz==2017.3
PyYAML==3.12
requests==2.18.4
s3transfer==0.1.12
six==1.11.0
toml==0.9.4
tqdm==4.19.1
troposphere==2.1.2
Unidecode==1.0.22
urllib3==1.22
Werkzeug==0.12
wsgi-request-logger==0.4.6
zappa==0.45.1

This looks like pypi's fault in this line: Download error on https://pypi.python.org/simple/pytest-runner/: [SSL: CERTIFICATE_VERIFY_FAILED]


Error in help:   -test.timeout --> ... (default 0, timeout disabled)

What version of Go are you using (go version)?

$ go version

go version go1.12 windows/amd64

Does this issue reproduce with the latest release?
Yes
What did you do?
Run
go test -run Mytest -xyz
produces a helptext where the test.timeout is stated to be disabled, when in fact it is 10 minutes
What did you expect to see?
default test.timeout should be 10m
What did you see instead?
It says 'default 0, timeout disabled'

@ftjfo, could you provide an example of the code that produced the error, preferably as a Go playground link (https://play.golang.org/). Would you also mind sharing the full output of running go test -run Mytest -xyz?
Additionally, what operating system and processor architecture are you using (go env)?

https://github.com/golang/go/blob/340129e4c8c56a371859b7434de89478610cab81/src/testing/testing.go#L283
If you look at this code line, and compare with: go help testflag
-timeout d
If a test binary runs longer than duration d, panic.
If d is 0, the timeout is disabled.
The default is 10 minutes (10m).

If at all possible please cut and paste text.  Please don't post screenshot images.  Text is much easier to read and understand.  Thanks.
The help output you are seeing is coming from the test binary.  From the test binary's perspective, that is correct.  The ten minute timeout you are referring to is imposed by go test.  You are mixing up the test binary flags with the go test flags, which I admit is easy to do since they look the same.  I don't think there is anything to change here.


Make Boost Infoboxes Support Different Interface Styles

As can be seen in the above image, the boost infoboxes rely on the default skill icons despite using a different Runelite interface style. It'd be great if these could be updated to work with the various interface styles available.

Duplicate of #11406


Add option to use bulk_create for creating non-multi-table models

Add option to use bulk_create for creates: assert model is not multi-table, if enabled

Hi, as listed in one of the Todos, do you have a timeline for adding this option?
Your library otherwise provides so much convenience for bulk-upserting, but when it comes to simple models, using bulk creates would be so much faster than individual creates!

Hi, I’m not actively using this package at the moment so developing new features is on hold.
I’m happy to take PRs though!
I imagine something such as:

“use_bulk_create” keyword argument that defaults to “auto”
If “auto”, detect if model can use bulk create or not (multi table, maybe other conditions?)
If it can, use it. If it cannot, do single creates and log warning (that can be disabled by explcitly setting the option to False) - this makes it clear to caller about future performance hits
If True and bulk cannot be used, throw error


MM-15575 Rename Constants.h to fix naming conflict

RNN v2 also has a file and type called Constants which conflicts with the one that we use. If calling everything "Mattermost_____" is too wordy, we could consider switching to "MM_____" like how React has "RC____"
Ticket Link
https://mattermost.atlassian.net/browse/MM-15575
Device Information
This PR was tested on: iOS Simulator

If something is conflicting it should not be cause of the file naming, probably the way it is being imported?

@enahum I think it might be the type name, not the file name, that's actually the problem. I fixed how I was importing react-native-navigation as we discussed, but I'm still getting this error from the linker
duplicate symbol _OBJC_CLASS_$_Constants in:
    /Users/harrison/Library/Developer/Xcode/DerivedData/Mattermost-foeonfnoezzanqeqwbyqmkslfnof/Build/Products/Debug-iphoneos/libUploadAttachments.a(Constants.o)
    /Users/harrison/Library/Developer/Xcode/DerivedData/Mattermost-foeonfnoezzanqeqwbyqmkslfnof/Build/Products/Debug-iphoneos/libReactNativeNavigation.a(Constants.o)
duplicate symbol _OBJC_METACLASS_$_Constants in:
    /Users/harrison/Library/Developer/Xcode/DerivedData/Mattermost-foeonfnoezzanqeqwbyqmkslfnof/Build/Products/Debug-iphoneos/libUploadAttachments.a(Constants.o)
    /Users/harrison/Library/Developer/Xcode/DerivedData/Mattermost-foeonfnoezzanqeqwbyqmkslfnof/Build/Products/Debug-iphoneos/libReactNativeNavigation.a(Constants.o)
ld: 2 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I think we still need to rename the Constants type or give it some sort of namespace to fix the conflict

We discussed earlier using MMConstants since it's shorter, but Apple has said that they reserve two-letter prefixes like NS. They recommend combining company and product name, so we could do MMMConstants. Thoughts?

What about RNMM?

I was thinking MMM as in "MatterMost Mobile". If we went for including RN in it, I think company name would go first, so I'd prefer MMRN over RNMM.
Also, we need more acronyms. We need to choose MMM, MMRN, or RNMM so that I can upgrade the version of RNN used in MM's RN app 😛


Fix insertion in node-param-fixed-collection-type-unsorted-items

https://linear.app/n8n/issue/N8N-3593/review-node-param-fixed-collection-type-unsorted-items-[to-fix]

Dupe of #111, consolidating there.


Backend: invalid encoding in /reader/river_stories response

I've noticed an issue with /reader/river_stories, which I've narrowed down to a single story.
When I fetch
https://www.newsblur.com/reader/river_stories?include_hidden=true&page=0&h=1186180:f10f73
The data deserializer gives an error:

Invalid surrogate pair in unicode escape sequence around character 2584.

The JSON is:
{"code": 1, "user_id": 375710, "elapsed_time": 0.01, "user_search": null, "stories": [{"friend_shares": [], "story_authors": "taz", "intelligence": {"feed": 0, "tags": 0, "author": 0, "title": 0}, "story_permalink": "http://bestof.metafilter.com/2020/08/Tongue-Twisters", "reply_count": 0, "comment_user_ids": [], "story_timestamp": "1598538990", "share_user_ids": [], "public_comments": [], "story_hash": "1186180:f10f73", "id": "tag:bestof.metafilter.com,2020:site.1902", "comment_count": null, "score": 0, "story_tags": ["beowulf", "grabbag", "language", "maori", "mascarpone", "mouthparts", "popular", "recent", "scots", "speaking", "spear", "translation"], "share_count": null, "friend_comments": [], "story_date": "2020-08-27 14:36:30", "short_parsed_date": "27 Aug 2020, 7:36am", "guid_hash": "f10f73", "image_urls": ["http://live.staticflickr.com/3288/3153198819_a8aa204512.jpg"], "story_feed_id": 1186180, "secure_image_thumbnails": {"http://live.staticflickr.com/3288/3153198819_a8aa204512.jpg": "https://imageproxy.newsblur.com/192,sc,sFdVxwQVZxmR9taTe11x7lv7M3cpA8oqDtat84TJ4oX8=/http://live.staticflickr.com/3288/3153198819_a8aa204512.jpg"}, "long_parsed_date": "Thursday, August 27th 7:36am", "secure_image_urls": {"http://live.staticflickr.com/3288/3153198819_a8aa204512.jpg": "https://imageproxy.newsblur.com/sc,sFdVxwQVZxmR9taTe11x7lv7M3cpA8oqDtat84TJ4oX8=/http://live.staticflickr.com/3288/3153198819_a8aa204512.jpg"}, "read_status": 0, "has_modifications": true, "story_title": "Tongue Twisters", "story_content": "

Gargoyle by sarahtarno (cc by-nc-nd)

Horrible Mouth Parts :emoji: Wikitongues  Bro! Tell me we still know how to talk about kings!  Don't call beer pubic hair  The problem is that this person cannot speak Scots \udb40\udb40\udb40\udb40\udb40\udb40 Mascarpone  All About Atlatl  How does \"you guys\" work linguistically?
"}], "result": "ok", "authenticated": true, "message": null, "classifiers": {"1186180": {"authors": {}, "feeds": {}, "titles": {}, "tags": {}}}, "user_profiles": []}

I assume the part it objects to is \udb40\udb40\udb40\udb40\udb40\udb40?
Is there anything you can do server-side to address this? It will affect anyone attempting to get that story, blocking continuing past it.

I'm hoping the move to Python 3 will address this. That's what I'm working on with @jmath1. Leaving open until the py3 migration before EOY.

Looking good now.