Initial Backup fails from delay of Velero not having cloud credentials configured

I ran into something similar to https://github.com/fusor/mig-controller/issues/84 but I think it's a little different.
I had created some failed and then valid MigStorage objects.
I saw the cluster say that 14:24 I had a valid MigStorage
I then created a MigMigration at 14:45, so ~20 minutes later
Velero failed and then immediately was able to connect to the object store.
This does not look like potential 2 minute delay for kubelet polling until pod has updated secret mounted.  This looks like the MigStorage was not updated on the remote cluster until the creation of the MigMigration, I would have assumed the cloud-credentials secret on source would have been updated at time of MigStorage update.
$ oc get migstorage jwmminio -o yaml -n openshift-migration
apiVersion: migration.openshift.io/v1alpha1
kind: MigStorage
metadata:
  annotations:
    touch: 5bd8e882-c8de-4a31-bcc5-949ec38e89db
  creationTimestamp: "2019-08-24T14:24:48Z"
  generation: 4
  name: jwmminio
  namespace: openshift-migration
  resourceVersion: "1415573"
  selfLink: /apis/migration.openshift.io/v1alpha1/namespaces/openshift-migration/migstorages/jwmminio
  uid: ed58e1db-c67a-11e9-be0b-064b99644b87
spec:
  backupStorageConfig:
    awsBucketName: migrations
    awsS3Url: http://minio-gpte-minio.apps.cluster-jwm0820ocp4a.jwm0820ocp4a.mycluster.com
    credsSecretRef:
      name: jwmminio
      namespace: openshift-config
  backupStorageProvider: aws
  volumeSnapshotConfig:
    credsSecretRef:
      name: jwmminio
      namespace: openshift-config
  volumeSnapshotProvider: aws
status:
  conditions:
  - category: Required
    lastTransitionTime: "2019-08-24T14:24:48Z"
    message: The storage is ready.
    status: "True"
    type: Ready

$ oc get migmigrations dcd02170-c67d-11e9-a37d-1308fbf68803 -n openshift-migration -o yaml
apiVersion: migration.openshift.io/v1alpha1
kind: MigMigration
metadata:
  annotations:
    touch: e2ed139e-dc2e-4573-82cb-0bca7f60a593
  creationTimestamp: "2019-08-24T14:45:49Z"
  generation: 7
  name: dcd02170-c67d-11e9-a37d-1308fbf68803
  namespace: openshift-migration
  resourceVersion: "1420739"
  selfLink: /apis/migration.openshift.io/v1alpha1/namespaces/openshift-migration/migmigrations/dcd02170-c67d-11e9-a37d-1308fbf68803
  uid: dcf5667d-c67d-11e9-be0b-064b99644b87
spec:
  migPlanRef:
    name: sat1045
    namespace: openshift-migration
  quiescePods: true
  stage: false
status:
  conditions:
  - category: Advisory
    durable: true
    lastTransitionTime: "2019-08-24T14:45:53Z"
    message: 'The migration has failed.  See: Errors.'
    reason: InitialBackupFailed
    status: "True"
    type: Failed
  errors:
  - 'Backup: openshift-migration/dcd02170-c67d-11e9-a37d-1308fbf68803-j67jv partially
    failed.'
  phase: Completed
  startTimestamp: "2019-08-24T14:45:49Z"

From velero logs you can see my backup failed with lack of credentials and soon after velero is connected to the storage
time="2019-08-24T14:45:51Z" level=info msg="Setting up backup log" backup=openshift-migration/dcd02170-c67d-11e9-a37d-1308fbf68803-j67jv controller=backup logSource="pkg/controller/backup_controller.go:440"
time="2019-08-24T14:45:51Z" level=info msg="Setting up backup temp file" backup=openshift-migration/dcd02170-c67d-11e9-a37d-1308fbf68803-j67jv logSource="pkg/controller/backup_controller.go:462"
time="2019-08-24T14:45:51Z" level=info msg="Setting up plugin manager" backup=openshift-migration/dcd02170-c67d-11e9-a37d-1308fbf68803-j67jv logSource="pkg/controller/backup_controller.go:469"
time="2019-08-24T14:45:51Z" level=info msg="Getting backup item actions" backup=openshift-migration/dcd02170-c67d-11e9-a37d-1308fbf68803-j67jv logSource="pkg/controller/backup_controller.go:473"
time="2019-08-24T14:45:51Z" level=info msg="Setting up backup store" backup=openshift-migration/dcd02170-c67d-11e9-a37d-1308fbf68803-j67jv logSource="pkg/controller/backup_controller.go:479"
time="2019-08-24T14:45:51Z" level=error msg="backup failed" controller=backup error="rpc error: code = Unknown desc = NoCredentialProviders: no valid providers in chain. Deprecated.\n\tFor verbose messaging see aws.Config.CredentialsChainVerboseErrors" error.file="/go/src/github.com/heptio/velero/pkg/cloudprovider/aws/volume_snapshotter.go:60" error.function=github.com/heptio/velero/pkg/cloudprovider/aws.getSession key=openshift-migration/dcd02170-c67d-11e9-a37d-1308fbf68803-j67jv logSource="pkg/controller/backup_controller.go:233"
W0824 14:46:01.930048       1 reflector.go:289] github.com/heptio/velero/pkg/generated/informers/externalversions/factory.go:117: watch of *v1.DownloadRequest ended with: The resourceVersion for the provided watch is too old.
time="2019-08-24T14:46:11Z" level=error msg="Error getting backup store for this location" backupLocation=jwmminio-7hhbl controller=backup-sync error="rpc error: code = Unknown desc = NoCredentialProviders: no valid providers in chain. Deprecated.\n\tFor verbose messaging see aws.Config.CredentialsChainVerboseErrors" error.file="/go/src/github.com/heptio/velero/pkg/cloudprovider/aws/volume_snapshotter.go:60" error.function=github.com/heptio/velero/pkg/cloudprovider/aws.getSession logSource="pkg/controller/backup_sync_controller.go:168"
time="2019-08-24T14:47:11Z" level=info msg="Syncing contents of backup store into cluster" backupLocation=jwmminio-7hhbl controller=backup-sync logSource="pkg/controller/backup_sync_controller.go:176"
time="2019-08-24T14:47:11Z" level=info msg="Got backups from backup store" backupCount=0 backupLocation=jwmminio-7hhbl controller=backup-sync logSource="pkg/controller/backup_sync_controller.go:184"
time="2019-08-24T14:48:11Z" level=info msg="Syncing contents of backup store into cluster" backupLocation=jwmminio-7hhbl controller=backup-sync logSource="pkg/controller/backup_sync_controller.go:176"
time="2019-08-24T14:48:11Z" level=info msg="Got backups from backup store" backupCount=0 backupLocation=jwmminio-7hhbl controller=backup-sync logSource="pkg/controller/backup_sync_controller.go:184"
time="2019-08-24T14:49:11Z" level=info msg="Syncing contents of backup store into cluster" backupLocation=jwmminio-7hhbl controller=backup-sync logSource="pkg/controller/backup_sync_controller.go:176"
time="2019-08-24T14:49:11Z" level=info msg="Got backups from backup store" backupCount=0 backupLocation=jwmminio-7hhbl controller=backup-sync logSource="pkg/controller/backup_sync_controller.go:184"
time="2019-08-24T14:50:11Z" level=info msg="Syncing contents of backup store into cluster" backupLocation=jwmminio-7hhbl controller=backup-sync logSource="pkg/controller/backup_sync_controller.go:176"
time="2019-08-24T14:50:11Z" level=info msg="Got backups from backup store" backupCount=0 backupLocation=jwmminio-7hhbl controller=backup-sync logSource="pkg/controller/backup_sync_controller.go:184"

$ oc get secret cloud-credentials -o yaml -n openshift-migration
apiVersion: v1
data:
  cloud: CltkZWZhdWx0XQphd3NfYWNjZXNzX2tleV9pZD1taW5pbwphd3Nfc2VjcmV0X2FjY2Vzc19rZXk9bWluaW8xMjMK
kind: Secret
metadata:
  annotations:
    operator-sdk/primary-resource: openshift-migration-operator/migration-controller
    operator-sdk/primary-resource-type: MigrationController.migration.openshift.io
  creationTimestamp: "2019-08-24T10:58:52Z"
  name: cloud-credentials
  namespace: openshift-migration
  resourceVersion: "822717"
  selfLink: /api/v1/namespaces/openshift-migration/secrets/cloud-credentials
  uid: 28a085b2-c65e-11e9-89c0-06df8e30f39f
type: Opaque

cc @alexander-demichev related to https://github.com/fusor/mig-controller/issues/84 but I don't think it's same issue, feel this is a different problem more with when our controller updates the cloud-credentials secret.

Marking this as GA blocker as I think this will create a poor usage experience, think this will result in a failure for first migration.
Need to try this out some more and try migrations on a new cluster install and see if first migration always fails.

@jwmatthews I've seen this one as well sporadically,  #84 is a major pain , without knowing the 2 minute velero pickup credentials trick , ALWAYS the first migration will fail even when the migplan is posting a "Ready" status.

The secret existed as of  "2019-09-05T22:06:03Z"
At 2019-09-05T23:22:27Z I attempted an InitialBackup, so this is ~1 hour after I created the MigStorage for first time and it updated cloud-credentials on the source cluster.
Notice it fails, then immediately after it says it synced backups.
$ oc get secret -n openshift-migration cloud-credentials -o yaml
apiVersion: v1
data:
  cloud: MYSECRETBASE64
kind: Secret
metadata:
  creationTimestamp: "2019-09-05T22:06:03Z"
  name: cloud-credentials
  namespace: openshift-migration
  ownerReferences:
  - apiVersion: migration.openshift.io/v1alpha1
    kind: MigrationController
    name: migration-controller
    uid: 5356d645-d029-11e9-b96d-029df860b308
  resourceVersion: "3934797"
  selfLink: /api/v1/namespaces/openshift-migration/secrets/cloud-credentials
  uid: 59f2afab-d029-11e9-b96d-029df860b308
type: Opaque

From velero logs

time="2019-09-05T23:22:27Z" level=error msg="backup failed" controller=backup error="rpc error: code = Unknown desc = NoCredentialProviders: no valid providers in chain. Deprecated.\n\tFor verbose messaging see aws.Config.CredentialsChainVerboseErrors" error.file="/go/src/github.com/heptio/velero/pkg/cloudprovider/aws/volume_snapshotter.go:60" error.function=github.com/heptio/velero/pkg/cloudprovider/aws.getSession key=openshift-migration/054b79a0-d034-11e9-86fc-3525c940654d-gvpx6 logSource="pkg/controller/backup_controller.go:233"
time="2019-09-05T23:22:31Z" level=info msg="Syncing contents of backup store into cluster" backupLocation=s3store-gtbmq controller=backup-sync logSource="pkg/controller/backup_sync_controller.go:176"
time="2019-09-05T23:22:31Z" level=info msg="Got backups from backup store" backupCount=18 backupLocation=s3store-gtbmq controller=backup-sync logSource="pkg/controller/backup_sync_controller.go:184"

@jwmatthews Looks like this is related to 2 minutes delay.

The migstorage is created on destination cluster(I mean cluster that is performing the migration), no migplans existing at the moment(remote cluster is not known at the moment). Destination cluster cloud-credentials secret is updated, then comes 2 minutes delay for injecting updated secret into velero pod.
MigPlan is created, source cluster is now known and it's cloud-credentials secret is instantly updated and matches destination cluster secret. Now I can observe another 2 minutes delay for updating secret file on remote cluster.

Above means, we can't update cloud-credentials on remote, before migplan is created.

While fixing https://github.com/fusor/mig-controller/issues/317, I noticed that the plan controller is creating/updating storage and registry resources even when the MigStorage is not Ready.  I think this may have contributed to this.


Octave audio processing requires libsndfile

Issue description
Octave needs libsndfile library to process audio (e.g. audioread).
Technical details

System: NixOS: 16.09pre83100.25e3c09 (Flounder)
Nix version: 1.11.2
Nixpkgs version: 16.09pre83100.25e3c09

See #15501

Closing in favor of #15501


Logout view does not work for token auth

Token is not deleted and still available for use after receiving 'Logout successful' from logout view.

I don't think this should be an expected behavior. Let's imagine following scenario:

The user may log on with a token on different machines. The same token is used because of the way the Token model is defined - it should be with the user in 1-1 relation.
Then he logs out on one machine, revoking the token
The user will get HTTP 401 on the other machine because the token he is using is already revoked but he didn't log out on this machine.

My idea is to add an optional revoke_token option which can be sent in the POST payload (as JSON, it would be something like this: {"revoke_token": true} ). What do you think about that?

Ah I see, adding the revoke token option definitely makes more sense.

I merged your PR, it will be released in next version ( 0.3.8 ).


Exceeded Current Qouta

Describe the bug
I have never used Builder.io before, I entered my open ai secret key and prompt then clicked generate. It would not generate a prompt. Just gives me a error that I have exceeded my quota. I can use open ai, chat gpt all fine, this is the only security key I have ever made so I do not understand... Do I need to pay for this plugin just to try it out?
To Reproduce
Steps to reproduce the behavior:
1.Entered Prompt
2.Entered site I want it to base style from
3.Entered SK from open ai
4.clicked generate
Expected behavior
Generate some sort of page in Figma based on my prompts
Screenshots

Additional context
Add any other context about the problem here.

Yes, you need to pay OpenAI. ChatGPT is free but using the OpenAI API through secret keys isn't. Check https://platform.openai.com/account/usage and make sure you have credits in your account


Approve for pool minting

Changes

How to test these changes?

Now approveForPool grants minting permission
Related issues

@bugout-dev check

[ ] Every public/external method that calls _mint should have an isApprovedForPool check (git grep _mint).
[ ] Tests for mint, mintBatch, poolMintBatch as approved operator
[ ] Tests for mint, mintBatch, poolMintBatch as pool controller
[ ] Tests for mint, mintBatch, poolMintBatch as unapproved operator


Add README.MD to the public view of the Radius org on GitHub

Overview of feature request
In the GitHub UI we have 2 distinct views for our GitHub org, I was thinking that the small README.MD
that creates that big section in the member view might be useful to showcase in the public view as well since it has lots of info and calls to action. If someone has permission to change that stuff might be a nice small change to make.
Acceptance criteria
Public view displays the readme.md
Additional context
Member View:

Public View:

Would you like to support us?

[ ] Yes, I would like to support you

AB#11485

Looks like we haven't added a public version of the README. See this for instructions on how to fix: https://docs.github.com/en/organizations/collaborating-with-groups-in-organizations/customizing-your-organizations-profile#adding-a-public-organization-profile-readme

Also this is an issue that can only be resolved by someone with organization level permissions as it requires creating a new repo inside of the org


Use the atom-text-editor tag instead of the colors class.

In index.less: Use the atom-text-editor tag instead of the editor, editor-colors class.

This is a duplicate of #38 which has been fixed in v0.3.2.


fatal: unable to open /var/run/s6/container_environment/TM_HOME

Hi there,
I installed docker and tm on Ubuntu 18.04 w/o problems. Now when I run
docker run --rm -ti -u rstudio etournay/tissue_miner, I get a weird permission error:
s6-printenv: fatal: unable to open /var/run/s6/container_environment/TM_HOME: Permission denied. Not clear what's the issue here.

Now reproduced the same error on Ubuntu 16.04

To start the dockerized rstudio follow section 1.3.1 of the guide https://mpicbg-scicomp.github.io/tissue_miner/user_manual/TM_R-UserManual_v1.0.3.html#how-to-set-up-tissueminer-for-running-api and do
docker run --name rocker -d -p 8787:8787 -e USER=rstudio -e PASSWORD=rstudio -v $HOME:/home/rstudio/data etournay/tissue_miner

instead.

Hello @mdkokic !
The dockerized TM tries to start  Rstudio by default, so you must specify an explicit command to overwrite the default and run the automated workflow for example. Or you must start Rstudio with the appropriate command. As @holgerbrandl wrote, if you want to use RStudio, you must type in
docker run --name rocker -d -p 8787:8787 -e USER=rstudio -e PASSWORD=rstudio -v $HOME:/home/rstudio/data etournay/tissue_miner
But if you want do run the automated workflow
docker run --rm -ti -v $(dirname $PWD):/movies -w /movies/$(basename $PWD) -u rstudio etournay/tissue_miner sm all
More info on quickstart tutorials:
https://github.com/mpicbg-scicomp/tissue_miner/blob/gh-pages/quickstart_tutorial/other_os/tm_qs_example_data.md#first-use-of-tissueminer-with-example-data
There is still one more issue in Linux systems: if you user ID is different from 1000 you may have permission issues when generating the analysis. A work around is to run Linux in a Virtualbox and create an user with the ID 1000 (by default, it is the case). The other advantage of the Virtualbox is that you decide how much resources to allocate (cpu + RAM) to your VM (safer).
R


"This Installation package is not supported by this processor type. Contact your product vendor."

Upon launching AsepriteTool.exe, this message shortly pops up a few moments after the command prompt for AsepriteTool first opens. It doesn't want to install CMake.
Windows Installer
❌ This Installation package is not supported by this processor type. Contact your product vendor.
Here is my processor information if that helps:
Processor	Intel(R) Core(TM) i5-6600 CPU @ 3.30GHz   3.31 GHz
Installed RAM	16.0 GB (15.9 GB usable)
System type	64-bit operating system, x64-based processor

It's having trouble installing the x64 cmake.
Try installing in manually (https://cmake.org/download/) and make sure cmake is in Path.
Then restart the machine and try running AsepriteTool.exe again.

https://GitHub.com/perndoe/Aseductor


BE: Update Get User stats to return longest winning and losing streaks

Need to add weekly, monthly filters.


feat: lending touchups

Description

Pull Request Type

[ ] :bug: Bug fix (Non-breaking Change: Fixes an issue)
[ ] :hammer_and_wrench: Chore (Non-breaking Change: Doc updates, pkg upgrades, typos, etc..)
[ ] :nail_care: New Feature (Breaking/Non-breaking Change)

Issue (if applicable)

closes #
Risk

Testing

Engineering

Operations

Screenshots (if applicable)

Current dependencies on/for this PR:

develop

PR #5731   👈

This stack of pull requests is managed by Graphite.


Refactor default chunk_size

Make default_chunk_size configurable on Gcloud::Upload.
Use Gcloud::Upload.default_chunk_size in BigQuery and Storage.
Add additional tests for default_chunk_size behavior.
Add documentation on usage of default_chunk_size.
[refs #701]

@gramos74 Feedback on this?

Well, I see the expression 256 * 1024 in some places. maybe a constant definition?

I only see it defined once in the code, where it is assigned to the variable chunk_mod. It is also defined in several tests, I'm okay with the duplication in the tests.
What do you think about configuring the default chunk size in Gcloud::Upload.default_chunk_size?

A lot of people use the class variables in order to store application configuration, so imho it's ok. It's also a good place where to configure a default upload timeout :p

Great that we can benefit from @gramos74 contribution in Storage as well as Bigquery. Merging.


Installer v0.3.4 error

version: 0.3.4
env:
os: darwin
arch: x64
PATH: /usr/bin:/bin:/usr/sbin:/sbin
JAVA_HOME: undefined
JDK_HOME: undefined

log:
[13:43:14] AdoptOpenJDK-11-x64
[13:46:22] Download JDK ... [Completed]
[13:46:22] Install JDK
[13:46:35] Install JDK ... [Completed]
[13:46:35] Configure Java Settings
[13:46:36] Error occurred
[13:46:36] Error: Can not add index to parent of type string

Something went wrong when updating your vscode user settings. For macOS, you can manually install Java Extension Pack, and it should be all set. Let me know if it works.
For better understanding why it went wrong, can you provide your user settings? It's in below path, and remember to wipe sensitive data in the values.

/Users//Library/Application Support/Code/User/settings.json


Stream a very simple "hello world".

Purpose
We'll want to send information over TCP between peers in a swarm. This provides a simple example of sending a string across a TCP connection to the localhost.

Testing the integration with github.


Sometimes the test eth_getCode › eth_getCode_9 failed by accident

Examples

https://github.com/axonweb3/axon/actions/runs/6928308781/job/18843850921?pr=1577#step:11:82

Current Behavior
FAIL src/eth_getCode.test.js
  ● eth_getCode › eth_getCode_9

    expect(received).resolves.toMatch(expected)

    Expected substring: "-32603"
    Received string:    "\"0x\""

      19 |     await currentpage.click(goto.pageIds.btnId);
      20 |     await currentpage.waitForFunction(() => document.getElementById("ret").innerText !== "");
    > 21 |     await expect(currentpage.$eval("#ret", (e) => e.innerText)).resolves.toMatch(expectedValue);
         |                                                                          ^
      22 |   },
      23 |   // get the  value
      24 |   async value(currentpage) {

      at Object.toMatch (node_modules/expect/build/index.js:166:22)
      at Object.toMatch [as check] (src/goto.js:21:74)
          at runMicrotasks (<anonymous>)
      at Object.<anonymous> (src/eth_getCode.test.js:132:5)

Expected Behavior
Test results should be deterministic

behavior
After local debugging, I found that running eth_getCode_4 and eth_getCode_9 simultaneously causes this issue. (Test method: skip other test cases and only keep 4 and 9, then execute jest tests/e2e/src/eth_getCode.test.js).
troubleshooting

Axon Problem Localization
By executing the following shell script, it is confirmed that the eth_getCode interface works as expected. The issue of making a call with the latest block height as a parameter and then immediately making another call with an invalid parameter does not seem to cause any problem.

response=$(curl -s http://localhost:8000 -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params": [],"id":1}')
blockNumber=$(echo $response | jq -r '.result')

curl -X POST \
     -H "Content-Type: application/json" \
     --data '{"jsonrpc":"2.0","method":"eth_getCode","params":["0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", "'"$blockNumber"'"],"id":1}' \
     http://localhost:8000

curl -X POST \
     -H "Content-Type: application/json" \
     --data '{"jsonrpc":"2.0","method":"eth_getCode","params":["0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", ""],"id":2}' \
     http://localhost:8000

{"jsonrpc":"2.0","result":"0x","id":1}
{"jsonrpc":"2.0","error":{"code":-32602,"message":"Invalid params","data":"Invalid block number: missing 0x prefix at line 1 column 3"},"id":2}

MetaMask Problem Localization
I downloaded MetaMask version 10.31.0, which is the default version used in the e2e tests, and then manually entered the parameters for eth_getCode_4 and eth_getCode_9 on http://localhost:8080/eth_getCode.html. The behavior observed was as expected.

Therefore, combining points 1 and 2, we can make a preliminary judgment: Normal use of MetaMask does not cause issues; the problem may lie with the testing framework.


⚠ Hartman Foundation has degraded performance

In 82839ef, Hartman Foundation (https://gordonhartman.com/) experienced degraded performance:

HTTP code: 200
Response time: 2667 ms

Resolved: Hartman Foundation performance has improved in a76da3d.


Support Node v20

Node v20.10.0 is the latest LTS, many projected that use this as dependency is blocked by the limitation of the node engine to v18 and below.
In this PR I'm adding the needed support for node v20 as it is supported out of the box.

cc @filfreire @dimitropoulos could you please help in review this PR?

@erunion @jackkav Can you please help in merging this change? Thank you!

@itsikcircle Sorry, I'm just a frequent contributor and don't have any repository permissions here.

Thank you @jackkav for merging this PR. Is it already published?

@jackkav How can we get a new version including this change?

@jackkav who should I reach out to publish new npm version including this change?


Online Demo "Painting" source code should include color picker, but it's missing (in demo source code, not the live demo)

Go to https://www.egui.rs/#demo and activate "Painting window", click to view source and the color picker is nowhere to be found. (in source file)

I see it:

Does it come back on a hard refresh?
egui stores Area positions, and perhaps your color picker is off-screen. We should probably fix that by e.g. clamping areas to the screen (which I thought we already did?) or by not storing positions for popups like color pickers.

I'm not sure how your misreading this. CLICK "source code".

haha, I don't know how I misread it either 😆
A new demo with a correct link will be published when I publish egui 0.19, which is hopefully today or tomorrow. I'll close this until then so I don't forget to do so later.

@emilk i hope you didn't forget about this because i don't see it fixed.


Live code block doesn't match the tutorial description

Request type

[ ] Please close this issue, I accidentally submitted it without adding any details
[ ] New documentation
[x] Correction or update

Details

In JavaScript section, Test your skills: Strings ,all the live code boxes contains same code which is only suitable for the first exercise. You need to update the live code block templates that reflects, the test description.

https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/Test_your_skills:_Strings

@hacker-eleos I've just tested this, and it shows me the four different live samples, as expected. Can you try it again?
And if it is still showing you this problem, let me know what browser you are using, and we'll try debugging it.

I am using Firefox developer edition. It seems to okay now. I will close the thread.


Compatible with Windows?

Please verify that you've followed these steps.

[X] I opened a new shell.
[ ] I ran: make bootstrap
[ ] I ran: make nuke all
[ ] I ran: make doctor

What does your system and relevant software look like?
Windows 11

What were you trying to do (and why)?
No response
What happened?
I installed this via NPM and I can call it just fine.
When I run tfrepl, it created the tfrepl.tf and tfrepl_override.tf files in my Terraform project folder automatically. However, the files can't be accessed by the system. So when I try to do e.g. "local.test", it doesn't work because the contents of those 2 files can't be accessed.
If I manually create those 2 files, I get the same issue. I'm guessing this isn't designed to work on Windows?
What did you expect to happen?
No response
Step-by-step reproduction instructions.
No response
What alternatives are there?
No response

Thanks for the report. On Windows, it should run just fine under WSL (Windows Subsystem for Linux), but I have no idea how it would run otherwise. I suspect a file permission issue or a path translation issue.
Can you add some more information to your report? What messages do you get? Screenshots?

OK so:

Installed via NPM on Windows - npm i -g ysoftwareab/tfrepl
CD to Terraform project directory
Run tfrepl and it generated the tfrepl files. Opened one of them and I get this:

Was I supposed to run NPM install in WSL?

Unclear from your screenshot which file cannot be accessed unfortunately.
If you have terraform available in WSL (so if you can run for example
terraform -version), then following the installation here
https://github.com/ysoftwareab/tfrepl#install via curl/npm and calling
tfrepl will work as expected
On Fri, Jun 23, 2023 at 1:36 AM chaoscreater @.***>
wrote:

OK so:

Installed via NPM on Windows - npm i -g ysoftwareab/tfrepl
CD to Terraform project directory
Run tfrepl and it generated the tfrepl files. Opened one of them
and I get this:

[image: image]
https://user-images.githubusercontent.com/18227319/248076011-f9503438-2b8b-4e79-9949-a83845396255.png
Was I supposed to run NPM install in WSL?
—
Reply to this email directly, view it on GitHub
https://github.com/ysoftwareab/tfrepl/issues/1#issuecomment-1603396342,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAFM4QMJAT6ZTFQMA3BVKGLXMTCGBANCNFSM6AAAAAAZNKHQ5Y
.
You are receiving this because you commented.Message ID:
@.***>

--
Y Software AB http://ysoftware.se
Andrei Neculau http://andreineculau.com

Either of the 2 files generated by tfrepl will fail to open and show the same error. I'm referring to these 2 files:

tfrepl.tf
tfrepl_override.tf

And yes, I'm aware I can run this in WSL. But I was trying to do this completely native in Windows. I can install via NPM on Windows just fine, but upon running tfrepl, the 2 files that it generates cannot be opened and just shows the error in my screenshot. This is why I was asking if this is compatible with Windows. Of course running WSL or Docker or a VM will work on Windows, but it's not "native" on Windows.

If I can run the binary directly in Windows, there's no overhead and that would be ideal.

tfrepl is a bash script i.e. not a binary, cannot run "directly" in Windows. AFAIK when you call tfrepl Windows will anyway start WSL with the default distro, start bash to execute tfrepl in the same context (i.e. correct current working directory).
I will close this proactively, because tfrepl is compatible with Windows via WSL, but not otherwise. Would appreciate if someone reports back errors/improvements even for WSL, because what you are trying to do should work given some tweaks, probably agnostic to tfrepl e.g. like setting the right automount options in wsl.conf https://github.com/ysoftwareab/yplatform/blob/master/priv/wsl.conf#L20


Add links and descriptions here for two new APIs: Configuration and Distributed lock

Add links and descriptions here for two new APIs.  Configuration and Distributed lock.  Clarify these are Alpha for now.

Configuration and Dist lock have been added with the new website design some months ago.


fn3 Frontend ERROR to check

[ ] fn3 caught an EXCEPTION

TypeError: Cannot read property 'reset' of undefined
TypeError: Unable to get property 'reset' of undefined or null reference
TypeError: undefined is not an object (evaluating 'robots[i].reset')
TypeError: robots[i] is undefined
TypeError: result is undefined
Error: Syntax error, unrecognized expression: #escape[object Object]
TypeError: Cannot read property 'replaceState' of undefined

Bug description
Wrap function fn3 (implementation in file wrap.js) outputs only part of the available information.
Therefore, the cause and location of the error is difficult to find out.
Proposed solution
Adjust the wrap function fn3 so that it outputs all available information.

works as expected


[EVM] Sign and Accounts endpoints

Describe your changes and provide context
Add Accounts and Sign endpoints that use keys in the local test wallet. This would be secure on a real node as the real node would have no key in its test wallet backend.
Testing performed to validate your change
local test

Definitely a lot more tests passing for v3-core tests!


Citadel DAO - Dangerous connection & commit management

Code Location:
https://github.com/CivMC/Citadel/blob/23a41a90335ad6d96fd2712df8cea26a1c0ed5a1/paper/src/main/java/vg/civcraft/mc/citadel/model/CitadelDAO.java#L50

Issue:
Multiconnection request, fumbling autocommit and overall behaviour in this method is dangerous, and wrong. This code can deadlock on connection exhaustion. If the thread releases the connection and then tries to reacquire it, the semantically meant transaction will be left dangling in an unfinished state.

Solution:
Use transactions and one connection.

I'm closing this out as something that we won't fix. It could be revisited in the future, but it's not within our capacity to work on right now.


Disallow selection between two arrays of different size

For example:
var a: int[10];
var b: int[11];
var c = true ? a : b;

currently passes. That's because two arrays of the same element type but different sizes are currently considered equal (See the Eq implementation for Type).

Relevant https://github.com/essential-contributions/pint/issues/1017

Actually this shouldn't be open at all. Arrays of different sizes are not (and won't ever be) of different types.


How to control MFA on Myaccess.microsoft.com portal

Reference:
https://docs.microsoft.com/en-us/azure/active-directory/conditional-access/plan-conditional-access
We have conditional access policy based MFA and all cloud apps are selected under it's scope.
Till last week while accessing Myaccess.microsoft.com portal we did not require MFA and it was coming as Microsoft app access panel in sign in log.
But today onwards we can see that MFA is getting enforced and it is coming as "Azure AD Identity Governance - Entitlement management" in sign in log.
Can you please tell me is there any back end changes happened during this weekend in Microsoft.
Also tell me how we can exclude these app from CAP while keep "All cloud apps" under inclusion list.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 1e4eb266-d556-29dd-8c22-1b0221a048a7
Version Independent ID: 3b4c4a89-85a8-5948-3ad2-efc7459945c2
Content: Plan an Azure Active Directory Conditional Access Deployment
Content Source: articles/active-directory/conditional-access/plan-conditional-access.md
Service: active-directory
Sub-service: conditional-access
GitHub Login: @BarbaraSelden
Microsoft Alias: baselden

@AmitavaHazra Thanks for the feedback! We are currently investigating and will update you shortly.

If this is still an issue I would raise a support case for them to troubleshoot further. Not a doc issue. #please-close


Investigate  GlobalEventExecutorTest.testAutomaticStartStop test failure

Failed on CI:
java.lang.AssertionError:
Expected: sameInstance(<Thread[globalEventExecutor-2-6,5,]>)
     but: was <Thread[globalEventExecutor-2-7,5,main]>
java.lang.AssertionError:

Expected: sameInstance(<Thread[globalEventExecutor-2-6,5,]>)
     but: was <Thread[globalEventExecutor-2-7,5,main]>

https://garage.netty.io/teamcity/viewLog.html?buildId=10642&tab=buildResultsDiv&buildTypeId=netty_build_oraclejdk7

[18:29:17][io.netty:netty-common] testAutomaticStartStop(io.netty.util.concurrent.GlobalEventExecutorTest)  Time elapsed: 2.509 sec  <<< FAILURE!
[18:29:17][io.netty:netty-common] java.lang.AssertionError:
[18:29:17][io.netty:netty-common]
[18:29:17][io.netty:netty-common] Expected: sameInstance(<Thread[globalEventExecutor-1-2,5,]>)
[18:29:17][io.netty:netty-common]      but: was <Thread[globalEventExecutor-1-3,5,main]>
[18:29:17][io.netty:netty-common] 	at io.netty.util.concurrent.GlobalEventExecutorTest.testAutomaticStartStop(GlobalEventExecutorTest.java:64)
[18:29:17][io.netty:netty-common]
[18:29:17][io.netty:netty-common] Running io.netty.util.internal.logging.Log4JLoggerFactoryTest
[18:29:17][io.netty:netty-common] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.035 sec - in io.netty.util.internal.logging.Log4JLoggerFactoryTest
[18:29:17][io.netty:netty-common] Running io.netty.util.internal.PlatformDependentTest
[18:29:17][io.netty:netty-common] io.netty.util.concurrent.GlobalEventExecutorTest
[18:29:17][io.netty.util.concurrent.GlobalEventExecutorTest] testAutomaticStartStop
[18:29:17]
[testAutomaticStartStop] java.lang.AssertionError:
Expected: sameInstance(<Thread[globalEventExecutor-1-2,5,]>)
     but: was <Thread[globalEventExecutor-1-3,5,main]>
[18:29:17]
[testAutomaticStartStop] java.lang.AssertionError:

Expected: sameInstance(<Thread[globalEventExecutor-1-2,5,]>)
     but: was <Thread[globalEventExecutor-1-3,5,main]>
	at io.netty.util.concurrent.GlobalEventExecutorTest.testAutomaticStartStop(GlobalEventExecutorTest.java:64)

@normanmaurer - took a brief look ... the thread is written to when it is started here which is done when a Runnable is executed ... is it possible that another task is executed by some other thread in between executing the task while the junit thread sleeps?

@Scottmitch let me think about it .... Not sure yet why it happens now so frequently and not before.

Was fixed


Not reporting saved password

The payload reports key logs and screenshots but not Saved passwords... do i need to declare an interval for it? or just assign the "-s" only when creating the payload?

You only need to specify -s or --steal-password option.
This option does not takes any argument.
Also no particular time is fixed, password stealer works on different thread, but it will send the password logs under 1 min or 2 min [Wherever the password retrieval process finished, then the logs are been send by keylogger]
You will get the Saved password for once only, to get the password again, restart the PC and you will get the password again.
Or remove the keylogger completely and run it again.

Improved the codes, please try again


Memcached Broken After Enabling FIPS mode in Docker

When FIPS mode is enabled the memcache is breaking
I have a docker image based on Alpine Linux 3.18 where the following items are compiled and installed in FIPS mode
OpenSSL 3.0.8
Node v18
Nginx 1.25
Memcached(1.6.21) - Installed using apk add command
When we export the following flag and started the memcache. it is getting crashed within a few minutes, but memcache in the same image is working without these flags. I need these flags to be placed for the above-mentioned packages that need to work in FIPS mode
Flags
export OPENSSL_FIPS=1
export OPENSSL_CONF=/usr/local/ssl/openssl.cnf
export OPENSSL_MODULES=/usr/local/lib64/ossl-modules
export LD_LIBRARY_PATH=/usr/local/lib/:/usr/local/lib64/
export PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig/
Error
{"label":"express-app","level":"info","message":"GET /status 500 102ms","meta":{"req":{"headers":{"accept":"/","connection":"close","host":"<IP_ADDRESS>:8080","user-agent":"kube-probe/1.26+"},"httpVersion":"1.0","method":"GET","originalUrl":"/status","query":{},"url":"/status"},"res":{"statusCode":500},"responseTime":102}}
{"label":"app","level":"info","message":"Sending Stats for: status"}
{"label":"app","level":"info","message":"Access Log: ::ffff:<IP_ADDRESS>, --, --, 2023-07-31T12:11:18.875Z, GET, /status, 500, 15, 105, -- "}
{"label":"scan-clients","level":"error","message":"Set key client:admin:connected_at failed, Error: connect ECONNREFUSED ::1:11211\n    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16) {\n  errno: -111,\n  code: 'ECONNREFUSED',\n  syscall: 'connect',\n  address: '::1',\n  port: 11211\n}"}
{"label":"scan","level":"error","message":"Set key client:test-service:connected_at failed, Error: Server at localhost:11211 not available\n    at Client.memcachedCommand [as command] (node_modules/memcached/lib/memcached.js:306:70)\n    at Client.setters (node_modules/memcached/lib/memcached.js:936:10)\n    at Client.bowlofcurry [as set] (node_modules/memcached/lib/utils.js:126:15)\n    at Object.set (kvtest.js:39:15)\n    clients.js:99:13\n    at node_modules/async/lib/async.js:718:13\n    at iterate (node_modules/async/lib/async.js:262:13)\n    at /node_modules/async/lib/async.js:274:29\n    at node_modules/async/lib/async.js:44:16\n    at ode_modules/async/lib/async.js:723:17"}

One more update
If we enable FIPS flag, it disable the MD5 algorithm

I'm sorry you should ask in a more general linux support forum. None of this says what is happening to the memcached daemon and that's beyond the scope of our support. I don't have any testing around what a FIPS mode is either.

In the documentation I consulted, there is a provision to adjust the algorithm settings, with the default being set to MD5. Could you please inform me about the alternative algorithms that are available for use?

That's not a security algorithm, that's a method of mapping keys across memcached hosts in a server cluster.
Sorry; I'm going to close this. There's no crash and I think you need more general linux support than we offer here.


add swift to initialising project docs

Describe the bug
We recently added the swift stack, we should also include swift in the section where it states the available stacks in the appsody list command.
To Reproduce
https://github.com/appsody/website/blob/a0811b8c873512575b378a08f6dd6c50f2aa4030/content/docs/using-appsody/initializing-project.md
Expected behavior
showcase the swift stack as part of the appsody list command.
Actual behaviour
showcases 4 stacks, we currently have 5
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.

Perhaps, we should just adjust the wording on this page to make it clearer that the list shown is just an example and might not be the same as what the user sees.


Use Positions for start/stop in Span

Codecov Report

Merging #7 (c218e57) into main (29842bd) will increase coverage by 2.90%.
The diff coverage is 92.00%.

@@            Coverage Diff             @@
##             main       #7      +/-   ##
==========================================
+ Coverage   82.45%   85.36%   +2.90%
==========================================
  Files           3        3
  Lines         513      451      -62
  Branches       14       14
==========================================
- Hits          423      385      -38
+ Misses         90       66      -24

Files
Coverage Δ

src/Escalier.Parser/ExprParser.fs
95.75% <100.00%> (+5.01%)
:arrow_up:

src/Escalier.Parser/Library.fs
0.00% <0.00%> (ø)


Hot to get some properties asHtml = true?

In the codebase, there are instances of properties, like MediaReview:
[JsonProperty("body")] [GqlParameter("asHtml", false)] public string Body { get; private set; }
It would be increadibly helpful to be able to get this property as html, as AniList has a custom Markdown implementation, so consuming apps need to implement their own library or mapping to html, which the custom markup.

I enforced the usage of markdown because this project is closely linked to another project of mine, so I didn't think of having HTML description.
We can add two separate description properties that returns markdown and HTML respectively by using aliases in GraphQL.
query {
    Media(id: 1) {
        description(asHtml: true)
        descriptionHtml: description(asHtml: false)
    }
}

To implement this, I think I'll need to write a class called GqlAlias and then link it to the said properties. And then have the parser add descriptionHtml: before the field.
I'll work on it right now.

In your other project, how did you handle rendering the markdown? AniList has many unique syntax that is not markdown compliant.

I just let the third-party markdown renderers do all the work. There might be some awkward spacing between paragraphs in their markdown/HTML due to the number of <br> used, but other than that, it looks fine to me.

Interesting. I have one I'm using but since anilist has non-mardown syntax, I'm having to write a lot of extra hacks. There are a lot of crazy reviews out there.

Interesting. I have one I'm using but since anilist has non-mardown syntax, I'm having to write a lot of extra hacks. There are a lot of crazy reviews out there.

I mean... If it works, it works. I rather not touch a functioning renderer if it is working properly, even if it has some imperfections. I'm not paid enough to fix it. 😪

I've fixed this issue in this commit.

Note: I have revamped my GraphQL parsing engine in this commit. So if I were to enable a new feature, I would be able to better accommodate them. I am telling you this just in case you want to contribute to this project again. 😉

Thanks. I do expect to contribute to this project in the future.

Any chance you're going to release this with a new version tomorrow?

Any chance you're going to release this with a new version tomorrow?

Yup!


area plotitems should expand in all 4 directions #3383

I am using svg filter for a highlighting. It is more simple than old code.

yes, the filter is simpler, that's great, i like it :)

but it is too transparent, can you keep the original look, maybe using the dilate operator?
the reference to svgAreaFilter would break when beaker is embedded.  see how we had to fix Triangle in plottext.js?  please make a function to create urls like this and call it from each place.
use this technique for all hover highlighting.
it should animate in and out, like when you hover over lines.

kick jenkins

kick jenkins


New N-less forcing for WWTPs

In this pull request, I made a few changes to the TRAPS forcing:

In forcing/trapsF00/make_forcing_main.py, there was a line that looked for LO/pre/trapsP##/traps_data_ver.csv. However, this filepath assumed that the user was working from LO/forcing. I have updated this filepath so that it is functional if users are working from LO_user/forcing as well. This change allows users to copy traps forcing into their LO_user repo, and make their own updates.

I have added a new traps forcing called trapsF01. The new forcing is identical to trapsF00, except WWTP NO3 and NH4 concentrations are set to zero.

Lastly, I added notes to the traps readmes that describe the differences between trapsF00 and trapsF01.

Thanks!


BackgroundColor for the dropdown panel is not customizable for SfComboBox

There is no way to change the BackgroundColor and TextColor for the dropdown panel. It's always in a light theme style.

Ref: https://support.syncfusion.com/support/tickets/490281

Feedback link for tracking: https://www.syncfusion.com/feedback/46095/provide-backgroundcolor-and-textcolor-support-for-dropdown-in-net-maui-sfcombobox

Fix scheduled for end of March 2024


Missing info: Your API Spec needs to be updated with remote URL otherwise you will get 404s

I was getting 404 errors from the remote gateway and it took me a load of trial and error to discover that the OAS definition for a remotely published API needs to be updated to match the remote gateway.  in OAS 2.0 this means modifying the host/scheme to match.  In OAS 3.0 you can just add the root URI to the Servers collection.   This should be added as a step in the documentation.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 8ea83480-29af-855d-f7ba-c0a704d30579
Version Independent ID: 4a52044b-c59f-5944-c53c-9e25e71e309c
Content: Deploy self-hosted Azure API Management gateway to Docker
Content Source: articles/api-management/api-management-howto-deploy-self-hosted-gateway-to-docker.md
Service: api-management
GitHub Login: @vladvino
Microsoft Alias: apimpm

@netgio Thank you for your feedback! We will review and update as appropriate.

#reassign:dlepow

@tomkerkhove - Apologies, this is an old doc issue, but want to check with you if we need to document this possible behavior related to SHGW. thanks!

I get what the person is saying but that is not really correct.
The above describes how to define the backend URL, however, you can also use a policy.
However, it might be good to elaborate how to achieve this through set backend url or so.

I created a backlog doc work item to note that requests need to be routed through the remote gateway, possibly using set-backend-service or similar. According to our usual process, I'll now proceed to close this issue. Thanks for opening the issue, and apologies for slow response..
#please-close.


SAK-42753 Make rubric evaluations work with Sakai grader

https://jira.sakaiproject.org/browse/SAK-42753


Fixes Issue #124

There was no support for handling server 5XX error, This PR fixes issue #124 .
Also sometimes setImmediate Reference Error occurs

I have added the removed Node global symbols back to the global scope when node integration is turned off.
This fixes the setImmediate error.
Separate commits for addressing separate part of the issue.

My Bad :(, That thing happens because of my Atom text editor's code beautify, It automatically adds space to imported variable

No problem. It happens 😅

@akashnimare  I have done the required changes, have a look

Merged. Thanks @Lplenka 💯

Thank you :smile:


Add decimal to sql

@llllllllll any comments here? going to merge soon otherwise ... release note on the way

lgtm, thanks


Implement rotting bandit regret definition

#In Rotting bandits [Heidari et al., 2016] [Levine et al., 2017] [Seznec et al. , 2019], regret is compared to an optimal oracle strategy which selects greedily the next best mean available . Note that this definition recovers the classical stochastic regret for classical stochastic bandits (since pulling the next best mean is equivalent to pull the same optimal arm)
I would like to be able to use this regret definition on SMPyBandits. I can implement it myself but I would need few explanation on where and how regret is computed on SMPyBandits.

Hi @JulSez,

First of all, please read this page on the documentation, which explains the global layout of the code.
What you have to change are files in the Environment/ folder,

The MAB class, I think for your rotting bandit problems, the MAB.PieceWiseStationaryMAB class is a good starting point (or already enough). This MAB class represents the problem, it basically wraps up a set of Arms.XXX classes, with a draw() method.
The Result class contains the result of one repetition of a Monte Carlo bandit simulation, so maybe you need to change it to store more information, see the __init__() and store() methods of the default Result.Result class.
The Evaluator class is the most complicated, but for your problems you won't have to change much I think. Maybe you need to store more things, like the full vector of means at each time, and no need to consider the index_bestarm feature. And to compute the regret, see the methods getAverageWeightedSelections() and getRewards() and other after.

Right now for single-player bandit, stationary or not or Markovian or not (depends on the MAB class, not on Evaluator), the regret can be computed:

from the history of rewards: $R(T) = \sum_t \max_k \mu_k(t) - \sum_t r_{A(t)}(t)$, which is referred to as the "LessAccurate" methods in the code,
from the history of pulls: $R(t) = \sum_t \max_k \mu_k(t) - \sum_t \mu_{A(t)}(t)$, which is referred to as the "MoreAccurate" methods.
Both quantities converge to the same thing when lots of repetitions are done, but usually the later is more "smooth" than the first one.
For your rotting bandit, you can start to write only one of the two, it'll be simpler.

Here is an illustration of the different between "more accurate" and "less accurate".

With pulls (one $\mathbb{E}$ expectancy is already pre-computed!):

With actual rewards:

With only 4 repetitions (!), you clearly see the difference in "smoothness" of the plots.

@JulSez from what I understand from the definition of regret from Levine et al.'s article, it is indeed harder to implement than stochastic bandit.
Mainly because the oracle problem depends on the history of previous pulls…

Tell me if you need more advice or help.

See #206!


request.DATA` has been deprecated

NotImplementedError at /api/password/reset/
request.DATA has been deprecated in favor of request.data since version 3.0, and has been fully removed as of version 3.2.
Need change request.DATA to request.data style

Fixed here: 24eb136c47f7f39b1cd83533ba089af39af3ef84
Would love to see an update in PyPI!

It was already fixed in the master branch for 0.4.0 version but now it's also fixed for 0.3 version in separate branch.

@haxoza has the PyPi package been updated? 0.4.0 is fine but I was only able to get 0.3 from PyPi.

I've just uploaded 0.4.0 to PyPi.

Awesome!


Alias via domains.txt broken?

I tried to get a wildcard-only certificate for *.example.com via domains.txt. But it was not recognized by the script.
According to the documentation you can add the line *.example.com > star_example_com, but using the command ./dehydrated -d '*.example.com' -c results in an error.
Using the command line argument (./dehydrated -d '*.example.com' -c --alias star_example_com) works fine.
Adding some debug lines I found out that the function parse_domains_txt seems to produce an output containing the '>', but it is missing in the variable line of the the for-loop responsible for the alias-logic (https://github.com/dehydrated-io/dehydrated/blob/master/dehydrated#L1656).
Output of both commands:
 [bla@host dehydrated]$ ./dehydrated -d '*.example.com' -c
# INFO: Using main config file /tmp/dehydrated/config
Processing *.example.com
ERROR: Please define a valid alias for your *.example.com wildcard-certificate. See domains.txt-documentation for more details.

[bla@host dehydrated]$ ./dehydrated -d '*.example.com' -c  --alias star_example_com
# INFO: Using main config file /tmp/dehydrated/config
Processing *.example.com
 + Creating new directory /tmp/dehydrated/certs/star_example_com ...
 + Signing domains...
[...]

That is intended behaviour. When you define domains via the cli arguments the domains.txt file gets ignored completely.


ios simulator build can't read data created by python bind. Error message is "compressed block contents"

I create data by level's python bind , which version is leveldb 0.2 https://pypi.python.org/pypi/leveldb.
And these data will be read by "leveldb-library 1.18" ( ios binding https://cocoapods.org/pods/leveldb-library). Data has 30k records and each record is 300~500 bytes data and  a key is around 50 bytes.
While I query with db  under ios , I can't read  data with error  "compressed block contents".
At first I guest the problem is caused by difference  from theirs default parameter.  But after I try with a smaller data set (around 50 records), without changing any parameter, query is ok.
I have tried these additionally .

I have try both python and  ios build use same code . Error still exists.
Iterator whole db under ios ,  Iterator stops at 7000 record  and exits with error"compressed block contents"

It can be closed. "leveldb-library 1.18"  does't include SNAPPY by default


[Issue-2258] Re-check for networks that are using Parity RPC

Related issue(s)

#2258

Is your feature request related to a problem(s)? Please describe.

Update RPC list

Describe the solution you'd like

Update RPC list

Describe alternatives you've considered

No

Additional context

No

🚀 Deployed on https://pr-2293--sw-web-runner.netlify.app


Fix ping example

The ping example has been broken for quite a while. The current version uses an ICMP spec without a checksum aspect. Originally the checksum has been calculated after setting all fields (including the checksum field itself) and then replaced the original checksum. With the current version of PyRFLX setting a field while skipping verification leads to all following fields being invalidated. To generate a valid message these fields have to be set again with the same values.

The current version uses an ICMP spec without a checksum aspect.

Is there anything which prevents us from using an ICMP spec with checksum aspect in the ping example? IMHO the proposed fix does not make a good impression.

Is this related to #437?

Is this related to #437?

Yes, I forgot that #437 existed. It is intended to fix it.

The current version uses an ICMP spec without a checksum aspect.

Is there anything which prevents us from using an ICMP spec with checksum aspect in the ping example? IMHO the proposed fix does not make a good impression.

I remember that we once had an ICMP spec with a checksum aspect, however it neither seems to be in the specifications repository nor in the specification directory we are using for this example.

I remember that we once had an ICMP spec with a checksum aspect, however it neither seems to be in the specifications repository nor in the specification directory we are using for this example.

I have found the following version:
diff --git a/icmp.rflx b/icmp.rflx
index f6d87cd..cc07ef7 100644
--- a/icmp.rflx
+++ b/icmp.rflx
@@ -109,7 +109,10 @@ package ICMP is
          Receive_Timestamp : Timestamp;
          Transmit_Timestamp : Timestamp
             then null;
-         Data : Opaque;
-      end message;
+         Data : Opaque
+            then null
+               if Checksum'Valid_Checksum;
+      end message
+         with Checksum => (Checksum => (Message'First .. Checksum'First - 1, Checksum'Last + 1 .. Message'Last));

 end ICMP;

Could you please check if that works with the ping example?

When in doubt, check with @rssen - he should have (or be able to come up with) the right spec as well as an implementation for the checksum.

I remember that we once had an ICMP spec with a checksum aspect, however it neither seems to be in the specifications repository nor in the specification directory we are using for this example.

I have found the following version:
diff --git a/icmp.rflx b/icmp.rflx
index f6d87cd..cc07ef7 100644
--- a/icmp.rflx
+++ b/icmp.rflx
@@ -109,7 +109,10 @@ package ICMP is
          Receive_Timestamp : Timestamp;
          Transmit_Timestamp : Timestamp
             then null;
-         Data : Opaque;
-      end message;
+         Data : Opaque
+            then null
+               if Checksum'Valid_Checksum;
+      end message
+         with Checksum => (Checksum => (Message'First .. Checksum'First - 1, Checksum'Last + 1 .. Message'Last));

 end ICMP;

Could you please check if that works with the ping example?

I found two main issues. The proposed aspect doesn't work due to the improper handling of Message'First (see #503). If Message'First is replaced with Tag'First creating the IPv4 packet will fail since it then tries to parse it into a new message without a checksum function. For the message creation this could be fixed by allowing setting the icmp message directly (see #505) but for the parsing of the reply refinements need some information about checksum functions (see #504).
Since these changes seem to be non trivial I'd opt for the current solution to have a working example, as ugly as it is.

As discussed independently, we chose not to take the shortcut but fix the example by solving #503 and #504 (#505 is considered a convenience feature for now). SPARK code generation should be fine already, but we want to add a flag to rflx to enable treating the Valid_Checksum aspect as True in #507.

I fixed the test including the issues #437, #503 and #504. @treiher @senier can you please check locally if the example works for you?

I fixed the test including the issues #437, #503 and #504. @treiher @senier can you please check locally if the example works for you?

Works for me.

I fixed the test including the issues #437, #503 and #504. @treiher @senier can you please check locally if the example works for you?

The error seems to be fixed. But the output looks strange:
$ ./ping.py <IP_ADDRESS>
PING <IP_ADDRESS> (<IP_ADDRESS>)
64 bytes from <IP_ADDRESS>: icmp_seq=0
unexpected type
64 bytes from <IP_ADDRESS>: icmp_seq=0
64 bytes from <IP_ADDRESS>: icmp_seq=1
unexpected type
64 bytes from <IP_ADDRESS>: icmp_seq=1
64 bytes from <IP_ADDRESS>: icmp_seq=2
unexpected type
64 bytes from <IP_ADDRESS>: icmp_seq=2
64 bytes from <IP_ADDRESS>: icmp_seq=3
unexpected type
64 bytes from <IP_ADDRESS>: icmp_seq=3

I fixed the test including the issues #437, #503 and #504. @treiher @senier can you please check locally if the example works for you?

The error seems to be fixed. But the output looks strange:
$ ./ping.py <IP_ADDRESS>
PING <IP_ADDRESS> (<IP_ADDRESS>)
64 bytes from <IP_ADDRESS>: icmp_seq=0
unexpected type
64 bytes from <IP_ADDRESS>: icmp_seq=0
64 bytes from <IP_ADDRESS>: icmp_seq=1
unexpected type
64 bytes from <IP_ADDRESS>: icmp_seq=1
64 bytes from <IP_ADDRESS>: icmp_seq=2
unexpected type
64 bytes from <IP_ADDRESS>: icmp_seq=2
64 bytes from <IP_ADDRESS>: icmp_seq=3
unexpected type
64 bytes from <IP_ADDRESS>: icmp_seq=3

I fixed the behaviour in https://github.com/Componolit/RecordFlux/pull/501/commits/0be5ed518fb2d569a9792618529dd8f84b35ac90. Please check that it works for you.

I fixed the behaviour in 0be5ed5. Please check that it works for you.

It works for me now.

I fixed the behaviour in 0be5ed5. Please check that it works for you.

It works for me now.

Works for me, too.

I also fixed the handling of invalid received packets in https://github.com/Componolit/RecordFlux/pull/501/commits/aa7af7b3870009a7ec93fcea3100315b92a46daa. Packets that are not valid echo replies are now dropped without sending an additional echo request.
The PR is now ready for a review again.


add MAINTAINERS.md

follow up for https://github.com/fermyon/spin/issues/2629

I've already talked to Radu and Rajat offline and are good to be maintainers 👍 . Joel is out so will chat with him when he is back. Merging for now so we can have something in place. Happy to update later.


FEAT: hook to run notebooks

Request
A pre-commit hook that ensures notebooks have valid code and will run without error.
Motivation
We may push notebooks to remote repos and later discover that users experience errors caused from typos or insufficient kernels/python versions.  Using a pre-push hook to defensively "validate" notebooks can guard again simple errors and reduce calls to CI.
Approaches
There may be some approaches to this:

use nbconvert to run all notebooks
parse the ast based on the notebook's kernel (potentially faster)

Examples
Pre-commit hook
repos:
-     repo:  https://github.com/nbQA-dev/nbQA/issues/new
      rev: <latest>
      hooks:
      - id: nbqa-valid-nb

Hi @pylang
Thanks for the idea! I think it would be good to make a notebook equivalent of the pre-commit hook check-ast https://github.com/pre-commit/pre-commit-hooks#check-ast
À pull request would be welcome, if you'd like to submit one, else one of us will probably get round to it within the next month

@all-contributors please add @pylang for ideas

The general ensuring that notebooks aren't broken sounds like a use case of nbval especially using the lax version (py.test --nbval-lax).

Yes, or just running nbconvert with the --execute flag - neither of these options would need to live inside nbqa.
I just tried doing
pip install pre-commit-hooks

and then
nbqa check-ast notebook.ipynb

but it says that check-ast isn't installed (because, indeed, the module is pre-commit-hooks, and check-ast is just an entry-point). So...maybe you were right, we should just run the third-party tool directly (rathern than as a Python module) - we'll have to make a special case for doctest, but that's OK.

Why not use py_compile and compileall modules from standard library. It is very similar to doctest.  Since nbqa can run doctest, it should be able to run these modules as well.
I tried the following and it works out of the box. Notice in the input notebook abspath("." closing paranthesis is missing.
nbqa py_compile tests/data/notebook_for_autoflake.ipynb

Input

Output
Notice the file names are replaced as expected.

If we need to run on directories, then we can use compileall module from python standard library. These modules might generate the .pyc files in the temporary directory. But that should be ok, since the temporary python file directory structure is deleted anyways.
We can create nbqa hooks similar to doctest

Thanks @girip11 - I wasn't aware of pycompile, so I made a PR showing that it's pretty easy to run check-ast from pre-commit-hooks. I'll look into their difference

we should just run the third-party tool directly (rathern than as a Python module)

Actually, there's no need to this, we can just run pre_commit_hooks.check-_ast

I agree with you on running notebooks with nbconvert execute.
Precommit hook using check-ast also looks good. I am fine with using py_compile or check-ast

@pylang this'll be in the next release, but in the meantime, you can use it as
repos:
- repo: https://github.com/nbQA-dev/nbQA
  rev: 036332e96865994060159ac30d16dd5cdf29cc16  # this will be 0.5.0 in the future
  hooks:
   - id: nbqa-check-ast
     additional_dependencies: [pre-commit-hooks==3.3.0]

if you like - please do let us know if you run into any issues

I'm stunned.  Fastest, most helpful response on GitHub I've experienced yet.   Wow.  Thank you all.


Fix: "process.stdout.clearLine is not a function"

When running with nohup yarn cli mint-dft xx > /dev/null 2>&1 &, it will produce "process.stdout.clearLine is not a function" error. This PR resolves the error by add a question mark before stdout functions.

This should be addressed by #136. Would you apply your suggestions regarding your differences to that PR?

This should be addressed by #136. Would you apply your suggestions regarding your differences to that PR?

Should I close this PR? But #136 's author seem not online, I just hope this error to be fixed soon.

The difference is: all chalk related output should be inside !this.options.disableMiningChalk like this
if (!this.options.disableMiningChalk) {
    process.stdout?.clearLine(0);
    process.stdout?.cursorTo(0);
    process.stdout?.write(
        chalk.green(checkTxid, " nonces: " + noncesGenerated)
    );
}


Poll changing interest of server socket on Windows

Backstory
I was writing a simple server and a daemon cli using mio and I encountered a weird issue.
For some reason my daemon server socket kept on being ignored by Poll, seemingly at random. I was testing this mainly on windows but after a while decided to also check if this issue persists on WSL (Windows Subsystem for linux) and found that on linux the program ran completely fine
Investing further I decided to call register after each deletion of a daemon client socket and found that the daemon server socket didn't get deregistered anywhere within the time frame for deregistering (only place where deregister was called). And then I tried to re-register the server with a Interest::READABLE and it seemed to fix the issue (more like a go-around fix). This could mean that the registry changed the intent for the server to remove the Interest::READABLE (probably around deregistering). Which is something that didn't happen over on linux for some reason.
No re-registering had happened previously on any of the sockets so changing the Interest that way isn't an option.
The reason why I mentioned that I have both a server and a daemon is that the issue could be in the fact that I have two Polls: one for a server and another for daemon cli and maybe they interact in a weird way although they are both registered separately (server and clients).
Sample code for issue recreation
A simpler example used to recreate the issue:
NOTE: I'm using python for the client, but you can use anything and its still the exact issue,
the original daemon client and server are both using rust and mio, so the problem isn't in the client
client.py:
import socket
host = "<IP_ADDRESS>"
port = 13265

client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

client_socket.connect((host, port))

message = "Hello, server!"
client_socket.sendall(message.encode())
data = client_socket.recv(1024)
print("Received from server:", data.decode())
client_socket.close()

main.rs:
use std::collections::HashMap;
use std::error::Error;
use std::io::{self, Read, Write};

use mio::net::{TcpListener, TcpStream};
use mio::{Events, Interest, Poll, Token};

const SERVER: Token = Token(0);
fn main() -> Result<(), Box<dyn Error>> {
    let mut poll = Poll::new()?;
    let mut events = Events::with_capacity(128);
    let mut connects: HashMap<Token, TcpStream> = HashMap::new();
    let addr = "<IP_ADDRESS>:13265".parse()?;
    let mut server = TcpListener::bind(addr)?;
    let mut tok = Token(SERVER.0+1);
    println!("Listening on {}", addr);
    poll.registry()
        .register(&mut server, SERVER, Interest::READABLE)?;
    loop {
        poll.poll(&mut events, None)?;
        for event in events.iter() {
            match event.token() {
                SERVER => loop {
                    match server.accept() {
                        Ok((mut sock, addr)) => {
                            println!("[INFO] {} connected", addr);
                            if let Ok(_) = poll.registry().register(
                                &mut sock, tok, Interest::READABLE | Interest::WRITABLE) {
                                connects.insert(tok, sock);
                            }
                            tok.0 += 1;
                        }
                        Err(err) if err.kind() == io::ErrorKind::WouldBlock => break,
                        Err(err) => eprintln!("Error: {}",err),
                    }
                }
                token => {
                    if event.is_writable() {
                        if let Some(con) = connects.get_mut(&token) {
                            let msg = b"Hello World :D".as_slice();
                            match con.write(msg) {
                                Ok(n) if n < msg.len() => println!("Couldn't write whole to conenction"),
                                Ok(_) => {},
                                Err(err) if err.kind() == io::ErrorKind::WouldBlock => {}
                                Err(err) if err.kind() == io::ErrorKind::Interrupted => eprintln!("Interrupted Isn't coverd by sample, just ignored"),
                                Err(err) => println!("[ERROR] Could not write {}", err)
                            }
                        }
                    }

                    if event.is_readable() {
                        if let Some(con) = connects.get_mut(&token) {
                            let mut buf: [u8; 1024] = [0; 1024];
                            match con.read(&mut buf) {
                                Ok(0) => {
                                    let mut con = connects.remove(&token).expect("This should exist by law");
                                    if let Err(err) = poll.registry().deregister(&mut con) {
                                        eprintln!("Failed to unregister connection: {}",err);
                                    }
                                    drop(con)
                                }
                                Ok(n) => {
                                    match std::str::from_utf8(&buf[..n]) {
                                        Ok(msg) => {
                                            println!("Connection said {}",msg);
                                        }
                                        _ => {
                                            println!("Connection said bytes: {:?}", buf);
                                        }
                                    }
                                }
                                Err(err) if err.kind() == io::ErrorKind::WouldBlock => println!("WouldBlock isn't covered by sample. just ignored"),
                                Err(err) if err.kind() == io::ErrorKind::Interrupted => println!("Interrupted isn't covered by sample. just ignored"),
                                Err(err) => {
                                    eprintln!("Failed to read: {}", err);
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

In order to recreate the issue start the server like so:
> cargo run
Listening on <IP_ADDRESS>:13265
[INFO] <IP_ADDRESS>:<port> connected
Connection said Hello, server!

# <Hults here>

And the client should run twice (once to trigger the error, and a second time to showcase it):
> py main.py
Received from server: Hello World :D
> py main.py
# <Hults here>

Info
Info for Windows testing environment:
OS version: Windows 10 Pro <IP_ADDRESS>45 x64
cargo version: 1.74.0
rustc version: 1.74.0
Info for WSL testing environment:
OS version: Ubuntu release 22.04
cargo version: 1.70.0
rustc version: 1.70.0

Upon further investigation adding the loop in the server connect for some reason fixes it. Thank you


Handling Client Disconnects and IOException in Image Delivery Process

Hello,
I'm currently working on the image delivery process for our clients. In the event of a client disconnect without receiving the image, Spring triggers an exception (org.apache.catalina.connector.ClientAbortException). To manage this, our error handling mechanism intercepts the exception and attempts to return an (ApiErrorResponse) value.
However, a challenge arises as the socket is already closed, leading to Tomcat throwing an IOException when trying to write to the closed socket.
I've addressed this issue with the following solution ( If anyone needed ). Do you have any suggestions for a more appropriate resolution, or is this approach the recommended way to address the problem?
Thank you.
@ControllerAdvice
@ConditionalOnWebApplication(type = ConditionalOnWebApplication.Type.SERVLET)
public class FallbackExceptionHandler extends ErrorHandlingControllerAdvice {

    public FallbackExceptionHandler(List<ApiExceptionHandler> handlers, FallbackApiExceptionHandler fallbackHandler, LoggingService loggingService, List<ApiErrorResponseCustomizer> responseCustomizers) {
        super(handlers, fallbackHandler, loggingService, responseCustomizers);
    }

    @ExceptionHandler
    public void handleException(ClientAbortException exception) {
        // do nothing
    }
}

If it works for you, I think your solution is fine.


for 962, resolve columnTypes issue

Fixes #962.

Codecov Report

Merging #1018 into dev will increase coverage by 0.01%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##              dev    #1018      +/-   ##
==========================================
+ Coverage   55.14%   55.16%   +0.01%
==========================================
  Files         630      630
  Lines       12276    12277       +1
  Branches     1938     1938
==========================================
+ Hits         6769     6772       +3
+ Misses       5093     5092       -1
+ Partials      414      413       -1

Impacted Files
Coverage Δ

...on/jdbc/statement/JDBCStatementBackendHandler.java
0% <ø> (ø)
:arrow_up:

...mon/jdbc/statement/JDBCStatementExecuteWorker.java
0% <0%> (ø)
:arrow_up:

...e/proxy/backend/common/jdbc/JDBCExecuteWorker.java
0% <0%> (ø)
:arrow_up:

.../internal/config/ConfigurationListenerManager.java
54.05% <0%> (-2.71%)
:arrow_down:

...OrchestrationMasterSlaveDataSourceFactoryBean.java
77.77% <0%> (+11.11%)
:arrow_up:

...ngsphere/opentracing/sampling/SamplingService.java
100% <0%> (+12%)
: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 ba2dd2b...e5f878e. Read the comment docs.


[opt](error msg) Make data codec error clearly when load csv data can't display

Proposed changes
Issue Number: close #xxx

Current no detailed error information when load csv file failed due to non-utf-8 encoding data.
This pr add more error information to help user find which data in large file is problematic of encoding.
Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall


Collection Runner is not working

Create some collection
Run the collection using runner option
The collection is not running

check the recorded video
https://user-images.githubusercontent.com/44080743/218461475-c711d66c-39e5-4b56-8a7e-00a69832913c.mp4

Nice catch @sseenivasan89 !
Thanks for taking the time to record and file the bug.
Will have this fixed in our upcoming release in a couple days.

@sseenivasan89 This issue has been fixed in v0.16.0 🎉


Feature request: add ability to prevent modifying certain value in unflatten

I have a use case where I'd like to prevent the target's value from being modified in unflatten. There's probably a number of ways to approach it but here's what I was thinking:
// prevent modifying any object with a value of 'testValue'
unflatten(obj, {filter: {value: 2}})

// prevent modifying any object with a key of 'thing'
unflatten(obj, {filter: {key: 'thing'}})

// prevent modifying the object {thing: 2}
unflatten(obj, {filter: {key: 'thing', value: 2}})

Common way to reproduce, if you use mongodb and have a bunch of generated ObjectIds as values, they will be stripped out into new objects, e.g. {}

happened to me when unflatten object with mongoId the ids will end up as {}


NullReferenceException in CommitStaged

The following code demonstrates a NullReferenceException when invoking CommitStaged:
public void SymSpellTest()
{
	// Demonstrates a problem in SymSpell.
	var spell = new SymSpell();
	var stage = new SymSpell.SuggestionStage(10);
	spell.CreateDictionaryEntry("word", 10, stage);
	spell.CommitStaged(stage); // this causes a NullReferenceException
}

I have been having trouble figuring this out.  I apologize for not debugging further.

Thank you for reporting the issue. I will look into this.


Fatal Error after Syncing the Latest Commits

Windows Server 2008 R2 with XAMPP.
https://status.theobearman.com/

Did you run composer update?

Looks to be fine?

It is now. Thanks Graham. Apologies @jbrooksuk.

:)

I take it back.
Commits synced, composer update executed. Dashboard is working fine but I am getting errors when I try to log in.The login page itself is fine but I get errors after putting in my email and password.
https://status.theobearman.com/auth/login

Can you add a APP_URL key to .env with your https://status.theobearman.com domain as the value please:
APP_URL=https://status.theobearman.com

Before you do that, pull down the latest master and try again.

Pulled down the latest master which is now working. Thanks James!

Reopened. This is to do with yesterday's commits. I have run composer update.

Yeah, Laravel has changed some cipher stuff.

What do I do to fix it?

Working again. Just ran install and then update.


Use patched electrum-client to fix a bug with high CPU load

BDK 0.19 release includes the change that ignores empty lines from electrum,
which was known to cause issues on testnet. Revert this in order to reduce CPU
load until BDK merges a fix.

bors r+


feat: upgrade rspack to 0.5 canary

Summary
Related Links

Checklist

[ ] Tests updated.
[ ] Documentation updated.

@ahabhgk I have create an branch for 0.3.0 release, you can merge to this branch: https://github.com/web-infra-dev/rsbuild/tree/dev_0.3.0

Excellent work! ❤


feat(endpoint): add name parameter to specify rabbitmq connection name

I like this, but the connection name should not be associated with the RabbitMqHostAddress.

I can add it as a parameter to the MassTransitBus as well as the BusOptions interface if you would prefer that.

Rebased/merged.


DirectionsResponse.fromJson(String json, RouteOptions routeOptions) does not exist in Maplibre?

I'm using DirectionsResponse.fromJson(String json) to parse a GeoJson Directions Response, but the DirectionsRoute are not provided with RouteOptions and I can't use them for navigation.
In MapBox i have seen the DirectionsResponse.fromJson(String json, RouteOptions routeOptions) which is missing in Maplibre.
Is there an alternative way to add the RouteOptions ?

The method exists, but there is currently the issue that the models have been deleted in the latest version upstream, so you have to use the older dependency, see #37 - we have to fix #37 in order to fix this here in this repo.


How to prevent showdown from wrapping html in paragraph tags

@tivie, is there a way to prevent showdown from being so "paragraph happy"? For example, consider this markdown:
<input id="bash" name="language" type=radio>
<input id="powershell" name="language" type=radio>
<input id="both" name="language" type=radio>

If you copy that into the Showdown demo environment, you'll see that the HTML that is rendered looks like this:

<input id="bash" name="language" type="radio">
<input id="powershell" name="language" type="radio">
<input id="both" name="language" type="radio">

What I'm looking for is a way to have it rendered like this instead:
<input id="bash" name="language" type="radio">
<input id="powershell" name="language" type="radio">
<input id="both" name="language" type="radio">

Without this, css tricks become very hard to apply, because you don't have control over what HTML elements are siblings of what other HTML elements when some are generated using HTML and others are generated using Markdown. Since there really is no benefit to having HTML tags generated inside of a paragraph tag, I'd simply like Showdown to avoid wrapping HTML tags entirely. i.e. HTML should be passed through as HTML (with the option to have the content of those tags converted from markdown using data-markdown="1", of course).
Is this something that can be done with 1.8.6, or would an extension be required to make this work, and if so what guidance can you offer to help make this happen?
Thanks in advance!

Paragraph happy!! 🤣 That made me laugh!
On a serious note, Showdown differentiates between block and inline HTML elements. Block elements are encoded as soon as possible while inline elements are "left alone". The fact that they end up being wrapped as a paragraph is kind of a side effect.
Since you can mix inline elements with markdown, this would need to be carefully studied:
some stuff <input id="bash" name="language" type="radio"> other stuff yeah!

I do think that this is actually a worthwhile addition, though.
And from the top of my head, the rule could be:
"naked self closing html inline elements are left alone while the rest of inline elements (that are not self closing or have markdown) would be wrapped in
 tags."
I will consider it for version 2.0, not because it's hard to change the parser but because:

it will require a LOT of proper testing in order to make sure all edge cases are thought of (the devil is always in the details)
it won't slow down the parser much

That being said, you can implement this with an extension quite easily: https://jsfiddle.net/tivie/ypjzcuLv/
showdown.extension('myext', function() {
  return [{
    type: 'listener',
    listeners: {
      'hashHTMLBlocks.after': function (event, text, converter, options, globals) {
        text = text.replace(/^ {0,3}<[a-z]+\b[^>]*>$/gmi, function (wm) {
          return '\n\n¨K' + (globals.gHtmlBlocks.push(wm) - 1) + 'K\n\n';
        });
        return text;
      }
    }
  }];
});

hope it helps

Donate
As you know, ShowdownJS is a free library and it will remain free forever. However, maintaining and improving the library costs time and money.
If you like our work and find our library useful, please donate through Pledgie or directly through paypal!! Your contribution will be greatly appreciated and help us continue to develop this awesome library.

@tivie This is exactly what I was hoping would come out of this post. Thank you for taking the time to respond with all of these details! I'm really looking forward to trying this out!


Added 8 new Resources

Added 8 new Resources
Hey there, I just added these 8 new resources to the website!
These are some tools that I have been using for a while and I think they are also quite useful for other people!

Tail Animista
Markdown Guide
Realtime Colors
Haikei
Docusaurus
Gitbook
One.com
Lorem Picsum

Please ensure all items below are checked before creating a pull request:

[x] My changes were made in the resources folder, not in the auto-generated README.md file or db folder
[x] My submission is formatted according to the guidelines in the contributing guide
[x] My submission is ordered alphabetically based on the resource name
[x] My submission has a useful description
[x] I have searched the repository for any relevant issues or pull requests

any updates?

Great PR, thank you @DJj123dj!


Adding PasswordLess login to sign in options

✨ Codu Pull Request 💻

Pull Request details

Added passwordless option to next-auth
Emails are sent through AWS SNS
New Environment vars added to sample.env will need to be populated before deploy
Added callback page letting user know email has been sent
Fixed auth error page light/dark mode

Any Breaking changes

Potentially env variables will need to be populated

Associated Screenshots

Sign in page dark mode

Sign in page light mode

Email callback page dark mode

Email callback page light mode

PasswordLess email

Email expired or already used page

Summary by CodeRabbit

New Features

Introduced a new PostAuthPage component for themed authentication success pages.
Added a new error handling page for authentication errors.
Implemented email sign-in functionality with an environment-dependent feature toggle.
Exported THEME_MODES for easier theme toggling.
Added email server configuration for AWS SNS.
Enhanced email authentication with a passwordless login option, including a custom email template.

Bug Fixes

Minor UI adjustments for better user experience during sign-in.

Documentation

Added sample environment configuration for email services.

https://github.com/codu-code/codu/assets/46611809/10b962f4-95a0-48a8-ae06-af3203481835
New user signing up with only email

https://github.com/codu-code/codu/assets/46611809/959afb6a-f378-4e98-905c-9007de7f4838
Existing user signing in with passwordless

Small one, this can just be !!process.env.ALPHA because it will either have a value or not. That's usually all we check for elsewhere. No pattern on what that value is.

Made that change. Let me know if anything else is needed. You will have to set up the email creds to get this to work also.

I haven't forgot about this, just wanted to see if there was an alternative to all the SMTP credentials.
What about using key/secret key with AWS? Does that work?
Adapted from the nodmailer docs:
let nodemailer = require("nodemailer");
let aws = require("@aws-sdk/client-ses");
process.env.ACCESS_KEY_ID = "....";
process.env.SECRET_ACCESS_KEY = "....";
const ses = new aws.SES({
  apiVersion: "2010-12-01",
  region: "eu-west-1",
});
let transporter = nodemailer.createTransport({
  SES: { ses, aws },
});

I haven't forgot about this, just wanted to see if there was an alternative to all the SMTP credentials.
What about using key/secret key with AWS? Does that work?
Adapted from the nodmailer docs:
let nodemailer = require("nodemailer");
let aws = require("@aws-sdk/client-ses");
process.env.ACCESS_KEY_ID = "....";
process.env.SECRET_ACCESS_KEY = "....";
const ses = new aws.SES({
  apiVersion: "2010-12-01",
  region: "eu-west-1",
});
let transporter = nodemailer.createTransport({
  SES: { ses, aws },
});

I had tried this initially but ill try again tonight to be sure.

@NiallJoeMaher should be good to go. No longer using the email creds. Now piggy backing on the current sendEmail function

🌮 I'm sure you'll be happy to get this merged 😹

Best tasting taco so far alright


Use a separate bundle for vendor dependencies

This should speed up incremental builds during development at the cost of an extra http request during production.
NOTE! This needs to be tested. Currently npm gets stuck on installing react-tools so I can't actually run it. I will remote this note as soon as npm is able to successfully run.

I love your passion for edge stuff, but Este should be more conservative I guess.

This is pretty good I think :)

Splitting out a vendor.js allows those using the @este/web package to more aggressively caching vendor deps which seems like a good thing given they change less frequently. However, adding additional requests can be harmful for mobile user agents given latency is the performance bottleneck of HTTP. Though if users return to your site more than once the extra warm-up time may be worth the subsequent speed improvements.

I guess one has to consider how often app updates are going to be released without vendor changes, in case the answer is 'very often', then I think its worth it.

One request takes 500ms on 3G and this is premature optimizations.


VM Console hangs during boot (just before Login prompt should appear)

System:
NUC P7JYH with new Proxmox 6.1-1 install.
CPU: Pentium Silver J5005 quad-core, memory: 16GB.
(There is sufficient CPU, memory and disk space in the host for the VM to start.)
Problem:
After the script has created the hassosova-3.10 VM and the VM is started and the console is opened, then everything appears to start normal but then the console hangs (and nothing further happens).

This is the point where it hangs. This is where the Login prompt should appear next, but it does not. It just hangs and still hangs after many hours.
I have tried this several times and also have re-installed the VM several times but the behavior is very consistent.
Strange enough hassio itself does start and I am able to access it via the hassio web ui.
But something goes wrong during the boot process. I don't know what and why and what the results of the hanging console/boot process are.
(Enabling or disabling the QEMU Guest Agent as described in #46 makes no difference.)

I have installed the SSH & Web Terminal add-on (with protection off to get full access to the system) and opened the Web Terminal in hope to find any useful information in boot.log but there are no logfiles at all in /var/log.

Any ideas for how to fix or how to debug this are welcome.

I apparently missed the following in the README:

When the messages slow down press the Enter key a couple of times until you see the following
Welcome to HassOS
hassio login:

So, pressing Enter one or more times just fixed it and showed the login prompt.


[Feature] Add log to vote + anonymous if necessary.

So the vote could be visible by everyone or anonymous in the chat.
Something like:
"Healbot added a rage point to xiorcal"
and
"A mysterious anonymous added a rage point to xiorcal."
Could be cleared or archived for readability after some time.

Anonymous part will be done in #9 if possible.


[helmfile] Update to 0.126.2

what

[helmfile] Update to 0.126.2

why

Get the fix https://github.com/roboll/helmfile/pull/1448

references

https://github.com/roboll/helmfile/pull/1448

/rebuild-readme


Wrong Usage of np.random.randint

Describe the bug
When I use this lib to do hyperparameter optimization with RandomSearch method, I found the eror:
ValueError: high is out of bounds for int32
when running the code like this:
scheduler = RandomSearch(     config_space,     metric=metric,     mode=mode,     points_to_evaluate=[initial_config],     # random_seed=42, )
After tracing along the source code, I think this line of code (at ~syne_tune.optimizer.schedulers.searchers.optimizer.scheduler_searcher.TrialSchedulerWithSearcher) may cause this bug:
    def __init__(self, config_space: Dict[str, Any], **kwargs):         super().__init__(config_space)         self._searcher_initialized = False         # Generator for random seeds         random_seed = kwargs.get("random_seed")         if random_seed is None:             random_seed = np.random.randint(0, 2**32)         logger.info(f"Master random_seed = {random_seed}")         self.random_seed_generator = RandomSeedGenerator(random_seed)
That is, np.random.randint(0, 2**32) is wrong, and np.random.randint(0, 2**31) may be suitable.
I think this is because numpy use different default data type, and int32 is used in this case, causing this problem not detected when developing.
I have tested np.random.randint with different parameters in my PC and a Linux server. It seems that in this Linux server, int64 is used by default, and hence np.random.randint(0, 2**63) is the largest feasible one.
Desktop (please complete the following information):

OS: Windows 10, Ubuntu 9.4.0
Syne Tune Version 0.4.1

Thanks for this bug report! It was recently fixed (#608). For now, you'd need to install for source, but the fix will be incorporated in the next release.


initADA not working with dynamic content

i think it will be good to check if _.$slides exits in Slick.prototype.initADA . thx

Hey I know this issue from a while ago, but if you're still interested you can recreate in a fiddle and we can take a look. I'm gonna close it for now.


New package: LinearFitXYerrors v0.1.0

Registering package: LinearFitXYerrors
Repository: https://github.com/rafael-guerra-www/LinearFitXYerrors.jl
Created by: @rafael-guerra-www
Version: v0.1.0
Commit: e8239c0f0f5ae752352779ff8c54a5b6898a8b47
Git reference: HEAD
Release notes:

First Julia/github package.
Linear fit with errors in X and Y, correlated errors, confidence intervals, etc.

Hello, fixed the issues mentioned and would like to resubmit. What is the recommended procedure?
Thank you.

Should I hit resubmit (with same info as before) in JuliaHub Registrator or just check the AutoMerge option in the github repository?

Yes

[noblock]
Scroll down to the bottom of the page, and in the section that says Some checks were not successful, in the line that starts with AutoMerge / AutoMerge, click on Details. This will show you the CI log.
In this particular case, the error is:
Failed to precompile LinearFitXYerrors [f30eeb3b-f5f0-4632-88ad-a7e11dd3714b] to /tmp/jl_CgiMDI/compiled/v1.6/LinearFitXYerrors/jl_Tko0bZ.
ERROR: LoadError: LoadError: syntax: invalid escape sequence
Stacktrace:
  [1] top-level scope
    @ /tmp/jl_CgiMDI/packages/LinearFitXYerrors/UB2pA/src/linearfitxy.jl:60

In your package, in the source file src/linearfitxy.jl, you have one or more invalid escape sequences somewhere inside the docstring that starts on line 23 and ends on line 60. Look through that docstring for any invalid escape sequences. For example, look for any backslashes that shouldn’t be there.
Once you have fixed the errors, simply resubmit the package with JuliaHub Registrator, and it will update the pull request.

[noblock]
Hi Dilum and Fredrik,
Thanks for your expert advice.
I'm relieved that it finally passed all the checks, after so many attempts.
It's part of the steep learning curve.
Best regards,
Rafael


Add PickEnrolmentFromQueueMutation

PT-1651 PT-1670.
The EventQueueEnrolments are meant to be transformable as Enrolments when the occurrence information is added to them. The old plan was to use the EnrolOccurrenceMutation to transform them, but when implementing the client for the mutation, it was clear that it was too complicated, since the EnrolOccurrenceMutation needs a new study group instance as an input. With this PickEnrolmentFromQueueMutation the ids can be used and the exact same study group will be used when the new enrolment is created.

kultus-api branch is deployed to platta: https://kultus-api-pr315.dev.hel.ninja :rocket::rocket::rocket:

kultus-api branch is deployed to platta: https://kultus-api-pr315.dev.hel.ninja :rocket::rocket::rocket:

kultus-api branch is deployed to platta: https://kultus-api-pr315.dev.hel.ninja :rocket::rocket::rocket:

kultus-api branch is deployed to platta: https://kultus-api-pr315.dev.hel.ninja :rocket::rocket::rocket:

kultus-api branch is deployed to platta: https://kultus-api-pr315.dev.hel.ninja :rocket::rocket::rocket:


Reformat UG and amendments to fix bugs

Reformatted UG
Amendment to fix some bugs
Individually needs to update the command summary as well as to their part.

Codecov Report

Merging #262 (f31b1b9) into master (fc671a3) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #262   +/-   ##
=========================================
  Coverage     55.09%   55.09%
  Complexity      612      612
=========================================
  Files           106      106
  Lines          2817     2817
  Branches        384      384
=========================================
  Hits           1552     1552
  Misses         1111     1111
  Partials        154      154

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 fc671a3...f31b1b9. Read the comment docs.


merge: stage to master

merge: stage to master

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


Using NavigationItems without an icon causes a NPE

Hello,  AHBottomNavigationItem() default constructor creates an empty item with null drawable field, and the navigation bar makes the assumption that all provided navigation items DO have an icon.
Using these empty items within the navigation bar causes a NullPointerException. The navigation bar tries to setTint(int) on a null object reference.
Fix: add a null check to that method and other similar methods which make assumptions about nullable fields.
Alternative fix: just make the default constructor private. Question: Why would we need it anyway?

Actually this issue is with a different library, sorry for the fuss


1.9-Thanks for opening an issue @gsrohde! I'll get this triaged so someone can take a look ⚡

Thanks for opening an issue @gsrohde! I'll get this triaged so someone can take a look ⚡
Originally posted by @janiceilene in https://github.com/github/docs/issues/855#issuecomment-718246235

Goodbye classic hello YouTube studio


Add a script for GPU benchmarks

I've been playing around with trying to do some BLAS benchmarks on GPU as well. Nothing too noteworthy - cuBLAS absolutely clobbers Tullio.
Not sure where the code for this should go. Would GPU benchmarking be within the scope of this repo?

That'd probably have been okay, but separate repos is fine too.

That'd probably have been okay, but separate repos is fine too.

Since right now it's mainly just Tullio vs cuBLAS, I'm going to:

Run the benchmarks
See if it's worth adding the script to Tullio.jl

Since right now it's mainly just Tullio vs cuBLAS, I'm going to:

Run the benchmarks
See if it's worth adding the script to Tullio.jl

There aren't really a lot of options for pure-Julia GEMM that is competitive with cuBLAS.
I'm looking at https://github.com/thomasfaingnaert/GemmKernels.jl right now.

There aren't really a lot of options for pure-Julia GEMM that is competitive with cuBLAS.
I'm looking at https://github.com/thomasfaingnaert/GemmKernels.jl right now.

They show some impressive performance! Definitely seems worth adding GemmKernels to a GPU library.
I don't even own an NVidea GPU, but I could do ROCm (AMD, Vega GPU) or oneAPI (Intel Xe integrated graphics).

They show some impressive performance! Definitely seems worth adding GemmKernels to a GPU library.
I don't even own an NVidea GPU, but I could do ROCm (AMD, Vega GPU) or oneAPI (Intel Xe integrated graphics).