Update architecture documentation

The current architecture documentation (read the docs RST files) are still from the 0.3.x era.
Change them according to the new structure and add FAQ about architecture by plugin developers.

High level architecture of message passing
Purpose of the different plugin types
Components, purposes and type hierarchy
Basic implementation examples

For the end user docs, rIght now there's a lot of duplication between comments in the source code and the .rst files (namely plugins' config settings), and also between the .rst files themselves (a lot of them begin with the same boilerplate text).
How can we avoid this? Can we autogenerate some/all of the docs from the sources and use some include mechanism for the repeated parts?
A visual architecture overview would be really useful for the end user as well, to explain how the plugins do (and don't) interact, and where to implement specific functionality (e.g. that messages can only be modified at the consumer stage and not during routing and the retry logic (#99) rationale behind this).

The rst files are generated by an internal tool from the source code comments.

Which one and how?
I couldn't find any, the top level makefile doesn't have a target for this and docs/Makefile just seems to generate docs from the .rsts

It's called gollum-docs and it's one big, ugly file with a lot of unchecked assumptions in it.
It's on the list of the "things-to-clean-up-and-release".
Probably a good thing to do along with this task.


Added deploy with google cloud functions

hey @dat-a-man was this cloud function running at all? because it looks like the env variable is not correctly used. but maybe I'm wrong :)

yes it is running https://us-central1-dlt-dev-personal.cloudfunctions.net/mainpipelinenotion6


add kafka_authentication_method support

About this change—what it does
Would it be possible to add kafka_authentication_method attribute to the list of components from the output of an Aiven service  ?
We would like to be able to differentiate components between "sasl" and "certificate" and as of today, this value (aiven.kafka.components[].kafka_authentication_method) is always an empty string.
Why this way
The Aiven API returns this attribute (it's not required though) and it seems to be supported by the Aiven Go Client

@ivan-savciuc it's already there.


camunda-helm node option?

has the camunda-helm a node option?
this means can I run camunda core and then in other pods camunda swagger, camunda rest.

Hi @eins
I believe that it is an application config, is it?
Could you please give more details about the exact option/config apart of the chart itself?

I couldn't  find a way to pass the current camunda docker tag for run 7.15.0
# image settings
image:
  repository: camunda/camunda-bpm-platform
  tag: run-7.15.0
metrics:
  enabled: false

It looks like camunda-helm only lunch a pod. I want to see if we can lunch three pods one for the camunda-core with the connection the the db and then two or three pods for webapps, rest and swaggerui

@eins the new version of the chart v1.0.0 supports that via passing different args to the deployment.
You can see here the exact example where you can create rest only deployment:
https://github.com/camunda-community-hub/camunda-helm/tree/36a1ca6/charts/camunda-bpm-platform#example

@aabouzaid thanks for the reply
Do you know if it is possible the change the image repository ?
camunda/camunda-bpm-platform
image:
  #  repository: camunda/camunda-bpm-platform
  repository: wwwwwww.dkr.ecr.eu-central-1.amazonaws.com/repo101:cee7.15.4
  tag: run

I got InvalidImageName and  ImagePullBackOff errors

@eins you added the tag into repository
it should be like this, and you need to setup imagePullSecrets
image:
  repository: wwwwwww.dkr.ecr.eu-central-1.amazonaws.com/repo101
  tag: cee7.15.4
  pullSecrets:
    - DOCKER_CONFIG_JSON_SECRET

Fixed by v1.0.0


We need better feedback for why create/update/save buttons are disabled in Traffic Portal.

When buttons are disabled in Traffic Portal, it's often unclear which field is violating which constraint. This showed up fairly recently during an upgrade, when the Geo Miss Lat/Long fields were upgraded to "required". This effectively made all our previous DSs that did not contain these fields un-editable, with no UI feedback indicating why this was so.

I created #1538 before I saw this issue, so I closed that one as a duplicate.

Hey, I can take a look if this isn't urgent (assuming this is in Node.js land)

hi @benjamingr thanks for the offer but i got a PR in already for it. and FYI, it's not nodejs per se but rather angularjs. you can take a look at the PR if you're curious.


remove: No longer need to display an icon next to invalid tax ids

Description 📝
We no longer need to display an icon next to invalid tax ids. This is because the API no longer keeps invalid IDs in the DB
See for more details: https://github.com/linode/manager/pull/10558
Changes  🔄

Removed conditional icon for tax id

Target release date 🗓
9/16
Preview 📷
Include a screenshot or screen recording of the change
:bulb: Use <video src="" /> tag when including recordings in table.

Before
After

How to test 🧪
Verification steps
Just observe that removing code does not break anything within the file itself.
As an Author I have considered 🤔
Check all that apply

[x] 👀 Doing a self review
[ ] ❔ Our contribution guidelines
[ ] 🤏 Splitting feature into small PRs
[x] ➕ Adding a changeset
[ ] 🧪 Providing/Improving test coverage
[ ] 🔐 Removing all sensitive information from the code and PR description
[ ] 🚩 Using a feature flag to protect the release
[ ] 👣 Providing comprehensive reproduction steps
[ ] 📑 Providing or updating our documentation
[ ] 🕛 Scheduling a pair reviewing session
[ ] 📱 Providing mobile support
[ ] ♿  Providing accessibility support

Understood! Thanks @jaalah-akamai


dev-cmd: disable when broken on Apple Silicon.

This is better than users getting a weird error.
Partially addresses https://github.com/Homebrew/brew/issues/10210

Review period will end on 2021-01-21 at 14:08:38 UTC.

Review period will end on 2021-01-21 at 14:08:38 UTC.

Review period skipped due to critical label.

Review period skipped due to critical label.

Thanks @dtrodrigues! I reckon it's worth keeping this minimal for now until we've figured out fixes.

Thanks @dtrodrigues! I reckon it's worth keeping this minimal for now until we've figured out fixes.

This broke ARM CI, I think: https://github.com/Homebrew/homebrew-core/pull/69460/checks?check_run_id=1740727396

This broke ARM CI, I think: https://github.com/Homebrew/homebrew-core/pull/69460/checks?check_run_id=1740727396


[Mizu Wallet] Bump Version

Bump @mizuwallet-sdk/aptos-wallet-adapter version to 0.2.5

@mizu-ice Please resolve conflicts

@mizu-ice build is failing, please run pnpm install on the root folder and push again


Create kubernetes.md

I like how your post provides a thorough and comprehensive overview of Kubernetes, covering its key features and components in a well-structured manner. However, I feel like you can include more information about how a student might do a very basic setup as I think the average student will know or heard of Kubernetes but not know how to set it up if they decide to use it.

Also, when might users use Kubernetes? I don't think there was a group yet that has used Kubernetes so far, so it might be good to outline a good use case or when someone might want to consider Kubernetes

Yes thank you for your good point. A intro should also include a short set-up so that people can follow through with ease.

Also, when might users use Kubernetes? I don't think there was a group yet that has used Kubernetes so far, so it might be good to outline a good use case or when someone might want to consider Kubernetes

I've added both technical and a real life user case so that a person completely new to K8 can get a better application of what it is capable of doing.

Hey Taemin, there seem to be some typos and some unfinished sentences in your entry. For example, "scailing" and a sudden sentence ending in "favo". I would check over your entry and proof read it once again!

Thanks for pointing it out! I fixed all the grammar mistakes

Also, I would either just provide a link for the setup instruction, or also provide setup instructions for other OS as well

Thanks Mingi, I have removed the step by step guide and put a link to various environment set up instead

Okay! Overall I think your contribution provides a comprehensive overview of Kubernetes and provides nice resources for future CSC301 students to get started if they decide to use Kubernetes in the future. Looks good to merge for me!


Hydrogen can't find jupyter kernel anymore

Description:
Hey, I was a happy hydrogen user until yesterday I updated Hydrogen to the current version 2.0.1. Now, when trying to execute code I get the following error
'/Users/username/anaconda3/envs/py36/bin/python' could not be spawned. Is it installed and on your path? If so please open an issue on the package spawning the process.
Unfortunately you removed the kernel-specs settings, so I have no idea how to check, why hydrogen can't find my kernel anymore.
Versions:
Mac OSX
Atom    : 1.21.2
Electron: 1.6.15
Chrome  : 56.0.2924.87
Node    : 7.4.0

Have you followed the installation instructions, especially https://nteract.io/kernels/python?
For more information see the release notes of hydrogen 2.0.

@Elias427 Were you able to try the installation instructions above? Let us know if you have questions or if we can close the issue.

Thank you for your support. I reinstalled my jupyter kernel in the same way I did before and for some reason this solved the issue.


litecoin-0.13.2 cannot synchronize blocks in testnet mode

I have just installed litecoin-0.13.2 which is downloaded from https://litecoin.org. But it cannot synchronize any block. now, it is still at block zero. I check the log and find that none of the connections is good. the log look like:
183 2018-07-18 06:12:07 net thread start
184 2018-07-18 06:12:07 dnsseed thread start
185 2018-07-18 06:12:07 Loading addresses from DNS seeds (could take a while)
186 2018-07-18 06:12:07 init message: Done loading
187 2018-07-18 06:12:07 opencon thread start
188 2018-07-18 06:12:07 addcon thread start
189 2018-07-18 06:12:07 msghand thread start
190 2018-07-18 06:12:09 23 addresses found from DNS seeds
191 2018-07-18 06:12:09 dnsseed thread exit
192 2018-07-18 06:12:14 connect() to <IP_ADDRESS>:19333 failed after select(): Connection refused (111)
193 2018-07-18 06:12:15 connect() to <IP_ADDRESS>:19333 failed after select(): Connection refused (111)
194 2018-07-18 06:12:16 connect() to <IP_ADDRESS>:19333 failed after select(): Connection refused (111)
195 2018-07-18 06:12:22 connect() to <IP_ADDRESS>:19333 failed after select(): Connection refused (111)
196 2018-07-18 06:12:23 connect() to <IP_ADDRESS>:19333 failed after select(): Connection refused (111)
197 2018-07-18 06:12:23 connect() to <IP_ADDRESS>:19333 failed after select(): Connection refused (111)
198 2018-07-18 06:12:24 connect() to <IP_ADDRESS>:19333 failed after select(): Connection refused (111)
199 2018-07-18 06:12:30 connect() to <IP_ADDRESS>:19333 failed after select(): Connection refused (111)
200 2018-07-18 06:12:31 connect() to <IP_ADDRESS>:19333 failed after select(): Connection refused (111)
201 2018-07-18 06:12:32 connect() to <IP_ADDRESS>:19333 failed after select(): Connection refused (111)
202 2018-07-18 06:12:33 connect() to <IP_ADDRESS>:19333 failed after select(): Connection refused (111)
203 2018-07-18 06:12:39 connect() to <IP_ADDRESS>:19333 failed after select(): Connection refused (111)
204 2018-07-18 06:12:40 connect() to <IP_ADDRESS>:19333 failed after select(): Connection refused (111)
205 2018-07-18 06:12:41 connect() to <IP_ADDRESS>:19333 failed after select(): Connection refused (111)
206 2018-07-18 06:12:58 connect() to <IP_ADDRESS>:19333 failed after select(): Connection refused (111)
207 2018-07-18 06:13:05 connect() to <IP_ADDRESS>:19333 failed after select(): Connection refused (111)
is it a some protocol error when I connect to testnet?

Litecoin-0.13.2 currently uses testnetv3 which has been abandoned instead
for testnetv4. I would suggest to wait for an update with support for
testnetv4.
On Wed, 18 Jul 2018 at 13:08, Comer2020<EMAIL_ADDRESS>wrote:

I have just installed litecoin-0.13.2 which is downloaded from
https://litecoin.org. But it cannot synchronize any block. now, it is
still at block zero. I check the log and find that none of the connections
is good. the log look like:
183 2018-07-18 06:12:07 net thread start
184 2018-07-18 06:12:07 dnsseed thread start
185 2018-07-18 06:12:07 Loading addresses from DNS seeds (could take a
while)
186 2018-07-18 06:12:07 init message: Done loading
187 2018-07-18 06:12:07 opencon thread start
188 2018-07-18 06:12:07 addcon thread start
189 2018-07-18 06:12:07 msghand thread start
190 2018-07-18 06:12:09 23 addresses found from DNS seeds
191 2018-07-18 06:12:09 dnsseed thread exit
192 2018-07-18 06:12:14 connect() to <IP_ADDRESS>:19333 failed after
select(): Connection refused (111)
193 2018-07-18 06:12:15 connect() to <IP_ADDRESS>:19333 failed after
select(): Connection refused (111)
194 2018-07-18 06:12:16 connect() to <IP_ADDRESS>:19333 failed after
select(): Connection refused (111)
195 2018-07-18 06:12:22 connect() to <IP_ADDRESS>:19333 failed after
select(): Connection refused (111)
196 2018-07-18 06:12:23 connect() to <IP_ADDRESS>:19333 failed after
select(): Connection refused (111)
197 2018-07-18 06:12:23 connect() to <IP_ADDRESS>:19333 failed after
select(): Connection refused (111)
198 2018-07-18 06:12:24 connect() to <IP_ADDRESS>:19333 failed after
select(): Connection refused (111)
199 2018-07-18 06:12:30 connect() to <IP_ADDRESS>:19333 failed after
select(): Connection refused (111)
200 2018-07-18 06:12:31 connect() to <IP_ADDRESS>:19333 failed after
select(): Connection refused (111)
201 2018-07-18 06:12:32 connect() to <IP_ADDRESS>:19333 failed after
select(): Connection refused (111)
202 2018-07-18 06:12:33 connect() to <IP_ADDRESS>:19333 failed after
select(): Connection refused (111)
203 2018-07-18 06:12:39 connect() to <IP_ADDRESS>:19333 failed after
select(): Connection refused (111)
204 2018-07-18 06:12:40 connect() to <IP_ADDRESS>:19333 failed after
select(): Connection refused (111)
205 2018-07-18 06:12:41 connect() to <IP_ADDRESS>:19333 failed after
select(): Connection refused (111)
206 2018-07-18 06:12:58 connect() to <IP_ADDRESS>:19333 failed after
select(): Connection refused (111)
207 2018-07-18 06:13:05 connect() to <IP_ADDRESS>:19333 failed after
select(): Connection refused (111)
is it a some protocol error when I connect to testnet?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/litecoin-project/litecore-litecoin/issues/7, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACfNuhtbt4qpwX0Fr2e3M-xxFHeA6BZ5ks5uHyU_gaJpZM4VUelF
.

@Comer2020 you should use litecore-litecoin node. It's patched node that supports several new indexes.
here is deps that you need
    "litecore-lib": "^0.13.22",
    "litecore-node": "^3.1.11",
    "insight-lite-api": "^0.4.4",
    "insight-lite-ui": "^0.4.6"

and here is litecore-node.json config example:
{
  "network": "testnet",
  "port": 3001,
  "services": [
    "bitcoind",
    "insight-lite-api",
    "insight-lite-ui",
    "web"
  ],
  "servicesConfig": {
    "bitcoind": {
      "spawn": {
        "datadir": "./data",
        "exec": "./node_modules/litecore-node/bin/litecoind"
      }
    }
  }
}

thanks for your all replays.
I want to know when the update of Litecoin-0.13.x to support testnetv4 is available?

@APshenkin
I am node.js tyro. I am trying npm install -g litecore-node@latest, it's<EMAIL_ADDRESS>But it failed at last, the error:
5991 5651 info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>5992 5652 silly preinstall<EMAIL_ADDRESS>5993 5653 info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>5994 5654 silly lifecycle<EMAIL_ADDRESS>Returned: code: 56  signal: null
5995 5655 info lifecycle<EMAIL_ADDRESS>Failed to exec preinstall script
5996 5656 timing action:preinstall Completed in 540870ms
5997 5657 verbose unlock done using /Users/zhangxg/.npm/_locks/staging-3a08f0df5026584d.lock for /usr/local/lib/node_modules/.staging
5998 5658 timing stage:rollbackFailedOptional Completed in 497ms
5999 5659 timing stage:runTopLevelLifecycles Completed in 1020416ms
6000 5660 verbose stack Error<EMAIL_ADDRESS>preinstall: ./scripts/download
6001 5660 verbose stack Exit status 56
6002 5660 verbose stack     at EventEmitter. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:304:16)
6003 5660 verbose stack     at EventEmitter.emit (events.js:182:13)
6004 5660 verbose stack     at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
6005 5660 verbose stack     at ChildProcess.emit (events.js:182:13)
6006 5660 verbose stack     at maybeClose (internal/child_process.js:961:16)
6007 5660 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)
6008 5661 verbose pkgid<EMAIL_ADDRESS>6009 5662 verbose cwd /Users/zhang/project/nodejs
6010 5663 verbose Darwin 17.6.0
6011 5664 verbose argv "/usr/local/Cellar/node/10.7.0/bin/node" "/usr/local/bin/npm" "install" "-g" "litecore-node@latest"
6012 5665 verbose node v10.7.0
6013 5666 verbose npm  v6.2.0
6014 5667 error code ELIFECYCLE
6015 5668 error errno 56
6016 5669 error<EMAIL_ADDRESS>preinstall: ./scripts/download
6017 5669 error Exit status 56
6018 5670 error Failed at the<EMAIL_ADDRESS>preinstall script.
6019 5670 error This is probably not a problem with npm. There is likely additional logging output above.
6020 5671 verbose exit [ 56, true ]

@Comer2020
I tested my configuration on mac too. and don't face any issues.
try not to install deps globaly. Use package.json and install everything localy. Also it doesn't complite anything. it downloads latest relase from github https://github.com/litecoin-project/litecore-litecoin/releases
Try to install curl on your system. Maybe you can't download. And you can check download script here:
https://github.com/litecoin-project/litecore-node/blob/master/scripts/download
And v<IP_ADDRESS>-litecore-rc2 supports LTC testenetv4. I'd launched it two days ago. here is confirmation in release notes https://github.com/litecoin-project/litecore-litecoin/blob/909371eb853a34b99f328b7c20b91af7f3cf2af1/doc/release-notes-litecoin.md#reset-testnet


Load component on activation

I'm using the popover to show some information to the user which is fetched from backend. I'm using the v-popover component with a custom component as template/slot for this.
Instead of loading all my components and fetching all data I want to only load the custom component or only fetch data, when popover is active and visible.
How is that possible, if at all?
I cannot listen for events on my child custom component and the component is loaded and mounted right away when the page loads for all v-popover components so all fetches is processed right away on page load.

You can load the data after the popover is open.

Please, how I would do that?
The child-component has no way of listening to the events of the v-popover, only the parent?

Is there an example for this if the popover is to be loaded as an extra component?

Bit of an old thread but thought I might add my 2 cents.
What you can do is something like this:
<v-popover @show="load()" >
Load
<MyComponent slot="popover" :data="info"/>
</v-popover>

Then use the method load() to call the data into your info model and render within your component.


[release-1.9] Update base version to 1.9-dev.2

Update base image version

See https://github.com/istio/istio/issues/29490

See https://github.com/istio/istio/issues/29490

@jacob-delgado: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

release-notes_istio_release-1.9
4c651ed7a1d47a03ae12b1f374b1bdd3db8e1b1a
link
/test release-notes_istio_release-1.9

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@jacob-delgado: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

release-notes_istio_release-1.9
4c651ed7a1d47a03ae12b1f374b1bdd3db8e1b1a
link
/test release-notes_istio_release-1.9

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test release-notes_istio_release-1.9

/test release-notes_istio_release-1.9


Master

Fixed broken image links

@microsoft-github-policy-service agree [company="Dan Toomey"]

@microsoft-github-policy-service agree


Fix typing inconsistencies

It's not a bug. This is related to incorrect typings that I noticed.
I found them in two places:

https://github.com/Adyen/adyen-web/blob/1f879c4f27439d9904638ccc12db0606dd433487/packages/lib/src/components/ApplePay/types.ts#L21

I've verified that it could be a number based on the following:
a) https://github.com/Adyen/adyen-web/blob/1f879c4f27439d9904638ccc12db0606dd433487/packages/lib/src/components/ApplePay/utils.ts#L8-L14
and b) Adyen's documentation on how to implement Apple Pay in drop-in is showed as such:

The solution would be to type it as PaymentAmount | number.

https://github.com/Adyen/adyen-web/blob/1f879c4f27439d9904638ccc12db0606dd433487/packages/lib/src/components/ApplePay/types.ts#L117

onAuthorized can accept another parameter, which you can see in this link. In our code, we typed this method as
onAuthorized: (resolve, reject, data) => void

The reason why I think these typings should be fixed is because I get Typescript complaining that I'm not using AdyenCheckout library properly, which doesn't seem to be the case.

Hi @vcianciarelli,
Thanks for pointing this out, it appears that Apple Pay code sample in our docs is using our old amount format, we'll make sure to update it. The correct way of setting the amount is as the types indicate (although we've been temporarily accepting both formats). For example:
{
  // ...
  amount: {
    value: 1000,
    currency: "USD"
  }
  // ...
}

On the missing parameter in the onAuthorized event type, you're absolutely right, we'll update this issue as soon as we have a fix.
Hope this helps!

Hello again @vcianciarelli,
The fix on the Apple Pay types has been merged (as part of #751) and it will be released in v4.0.0. Thanks again for your feedback!


fix: constrain inject helpers for iife

Fixes #13907
Description
Also tested with #11641

What is the purpose of this pull request?

[x] Bug fix
[ ] New Feature
[ ] Documentation update
[ ] Other

I'll send another PR with the tests, I would like to include this one in the next patch.


"500 - Internal Server Error" while downloading dataset

When I execute kaggle datasets list -s hacker command, it shows the list of datasets having the word hacker in it.
But, the following command is giving error -
kaggle datasets download hacker-news/hacker-news
This command is giving me 500 - Internal Server Error. Please help!

I tried downloading zillow/zecon dataset. It downloaded 100% successfully.

Hmm, looks like #68 wasn't fully fixed.  Investigating.
Sorry for delay - was at an off-site last week.

Ah whoops, nevermind.  This is (sorta) working as intended - you cannot download BigQuery datasets.  Will see if I can make the error message not terrible, but that may wind up being a surprising amount of work.

No worries. Can we explicitly mention in the readme that "the api currently doesn't provide any kind of support for BigQuery type of datasets"? I am assuming that the api supports all other types of datasets.

Yeah, I'll add to the readme as well as fix the error message to be not awful.  Thanks!

That would be great! Thank you! :)

Same error with
import os
os.environ["KAGGLE_USERNAME"] = xxxxx
os.environ["KAGGLE_KEY"] = xxxxxxx

!kaggle datasets download uba-dmeyf2021-primera

Any help?

Same error with
import os
os.environ["KAGGLE_USERNAME"] = xxxxx
os.environ["KAGGLE_KEY"] = xxxxxxx

!kaggle datasets download uba-dmeyf2021-primera

500 - Internal Server Error
Any help?

That's a competitions dataset so you need to use the competitions command:
$ kaggle competitions download -c uba-dmeyf2021-primera

If you get a Forbidden error, make sure you've accepted the rules of the competition: https://www.kaggle.com/c/uba-dmeyf2021-primera/data


github action to create release when creating tag

This PR aims to create a release with the conda-store-ui artifact, once a tag is created

Does this also upload the release to npm?

No, it doesn't. The manual upload to npm, as you described in the RELEASE.md file, is still necessary. I haven't explored much on achieving it because when I upload to npm, it requires a 2FA step.
It's fine that way though, as look as it's documented.

We should really only have one release per version. There's no real reason we should be building a tarball ourselves outside of the npm release process. Once the latest version is up on npm, you can always get a tarball with
npm pack conda-store-ui

The above pack command is probably what the conda-store build should be using to pull the ui in

Closing since resolved by https://github.com/Quansight/conda-store-ui/commit/2be4d9629a64cc5681fc757dba5a9e861e14c66b. We have the dist output included in the pack.


ninesleep binary panics on incoming network connections

I've successfully jailbroken my pod, then compiled and copied the rust binary to it. It starts and listens for network connections, but when I make any kind of rest call (including just a /hello), the listener thread panics.
[2021-03-24T13:09:19Z WARN  rocket::launch] 🚀 Rocket has launched from http://<IP_ADDRESS>:8000
[2021-03-24T13:09:29Z INFO  ninesleep] New UNIX socket connection
[2021-03-24T13:09:30Z INFO  ninesleep] Incoming TCP connection
[2021-03-24T13:09:30Z INFO  ninesleep] Session started for device 77202acebd2ddd26fc0a2c703e72490ff84b91f7
[2021-03-24T13:09:37Z INFO  ninesleep] Incoming TCP connection
thread '<unnamed>' panicked at src/main.rs:405:67:
called `Result::unwrap()` on an `Err` value: Semantic(None, "invalid type: bytes, expected map")
stack backtrace:
   0: rust_begin_unwind
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panicking.rs:662:5
   1: core::panicking::panic_fmt
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/panicking.rs:74:14
   2: core::result::unwrap_failed
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/result.rs:1677:5
   3: core::result::Result<T,E>::unwrap
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/result.rs:1102:23
   4: ninesleep::handle_data_stream
             at /home/growlph/Code/ninesleep/src/main.rs:405:32
   5: ninesleep::main::{{closure}}::{{closure}}::{{closure}}
             at /home/growlph/Code/ninesleep/src/main.rs:450:17
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Testing the API call with curl like so:
$ curl -v http://<IP_ADDRESS>:1337/hello
*   Trying <IP_ADDRESS>:1337...
* Connected to <IP_ADDRESS> (<IP_ADDRESS>) port 1337 (#0)
> GET /hello HTTP/1.1
> Host: <IP_ADDRESS>:1337
> User-Agent: curl/7.81.0
> Accept: */*
>
* Empty reply from server
* Closing connection 0
curl: (52) Empty reply from server

Oh! I was using the wrong port - it works correctly on 8000
Not sure what 1337 is for - I found it in the source code because I couldn't figure out what port to use at first, and I'm not very experienced with Rust.


Changed: Change the fetch module to isomorphic-fetch.

Now using isomorphic-fetch instead of node-fetch. This means the module is compatible with browsers.
Added documentation to the request function
Fixed indentations in helpers.ts

Can the return on the func args be removed please. This project does not use a prettier or formatter yet.

Did you also run the tests with the changes to make sure they all pass? I know you would need to set the config file up but it's explained in the default one on what you need and where to find it.


ExoPlayer2/ Listeners and forwarders

Problem
The architecture behind no-player goes something like this.
The client requests a Player which can be either an ExoPlayer or an AndroidMediaPlayer, each of which has an underlying facade(forgive the naming)which talks directly to either the realexoplayerormediaplayer. NoPlayerexposes implementation agnostic listeners that the clients can use. Thefacades` have implementation specific listeners and forwarders (named listeners) that transform the implementation specific events into no-player events and forward to the relevant no-player listeners.
The problem is, that nearly everything is called a listener :laughing: which makes working on no-player confusing
Furthermore, because there are different events, some of the them have different interfaces and some of them even implement some interfaces and no-op them and then extend again only using the ones they need. Confusing!
Solution
Have one Listener that encapsulates all of the events that need to be mapped between exo-player and no-player. Implement a no-op version of Listener and then create additional forwarders from this that implement the methods they need to know about that map to no-player.
It's probably easier to see the diff :laughing:

Something is up with the MediaPlayer 😢

ExoPlayerForwarder now implements all event listeners that we are interested in ExoPlayer and we forward all events. There is an ExoPlayerEventForwarder which is an abstract class that swallows all events by default. We add specific ExoPlayerEventForwarders based on the Player listeners that we want to map to. The forwarders perform the mapping.


Add Timezone dropdown in the sysprep options of Create VM Wizard

Related comment: https://github.com/oVirt/ovirt-web-ui/pull/1220#issuecomment-656896190
In this PR, I'm adding the drop down to handle the Timezone in the sysprep options, in the Basic settings of the Create VM Wizard. Also I am removing the old TZ field.
After creating a VM with sysprep enabled and some chosen TZ, the chosen TZ is already displayed as expected, when viewing the VM. Looks like nothing else needs to be done. However, I'm not sure about the expected behavior in some special cases, for example if the user chooses some TZ in the drop down and then they decide to leave the drop down empty. For now, this can be solved for example by choosing a different template and then choosing the expected one and enabling the sysprep options again. But this resets all the values of sysprep options. Not sure if this is an expected behavior.
Before:
Timezone field, we were able to write there anything:

Review step of the Create VM Wizard:

After:
New Timezone dropdown, empty drop down is allowed:

Review step of the Create VM Wizard:

After creating the VM, we can see the same Timezone already set, when viewing the VM's options:

@hstastna it seems not working so well for creating a new Windows VM based on the blank template (when sysprep timezone is not set on template and not set by the create VM as well). The default value is not set properly.

Maybe we need also this https://github.com/oVirt/ovirt-web-ui/pull/1220 to have the default value set properly.

I think we need also this #1220 to have the default value set properly.

I verified with this with #1220.  After re-investigating my previous comment then it seems that this can be fixed on a separate issue:
there is no default value consistency on UI while comparing to webadmin for sysprep timezone null value displayed on vm details card -> advanced options ->timezone value.
When creating a new VM based on a blank template and avoid choosing a specific value for the SysprepTimeZone then the following code is running on webadmin frontend:
getWindowsSysprepTimeZone().setItems(windowsTimezones.entrySet());
getWindowsSysprepTimeZone().setSelectedItem(Linq.firstOrNull(windowsTimezones.entrySet(),
item -> item.getValue().startsWith("(GMT) Greenwich")));
So in case no value is set (null),  the default value is displayed as not set (greyed out) with a "(GMT) Greenwich Standard Time" value.
On web-ui, in case no value is set by the user (null on DB), the default value is displayed as set with value "(GMT-12:00) Dateline Standard Time".
For fixing, we should set this value as not set (greyed out) with the correct default value, the same as on webadmin.

@pnovotny after verifying #1220 then can you please verify this issue as well? It's based on that. issue Thanks!

On web-ui, in case no value is set by the user (null on DB), the default value is displayed as set with value "(GMT-12:00) Dateline Standard Time".
For fixing, we should set this value as not set (greyed out) with the correct default value, the same as on webadmin.

This PR build behaves as you wrote:

in web-ui, the null/empty TZ value in Sysprep is then displayed in VM detail as "(GMT-12:00)..."
in webadmin Edit VM dialog, the Sysprep TZ is disabled/greyed out with "(GMT)..." value

@pnovotny @sgratch The problem mentioned above isn't caused by adding a timezone drop down. It just shows us inconsistency we already have here. I can reproduce the problem without this PR perfectly (on master branch). The problem will be fixed by another PR.

Issue regarding the problem mentioned above: https://github.com/oVirt/ovirt-web-ui/issues/1276

@pnovotny @sgratch @sjd78 Is there anything I should make regarding this PR? I think it's ready to merge. Thanks! :)

@pnovotny @sgratch @sjd78 Is there anything I should make regarding this PR? I think it's ready to merge. Thanks! :)

Looks all set to me.  All followup work is captured in #1276 / PR #1288.


translation DE

Please amend the commit:

The commit title should be:
 luci-app-wireguard: German translation
(something like that, so that the app context is clear)

You need to have a proper Signed-off-by line with your real name in the commit message.

Merged with 096caef87 - thanks!


Learn about the Action Bar

https://developer.pebble.com/docs/c/User_Interface/Layers/ActionBarLayer/
I think we could add a blue tooth connection symbol and battery life.

https://developer.pebble.com/docs/c/User_Interface/Layers/StatusBarLayer/

Not sure what the difference between the two is.

https://github.com/pebble/pebblejs#window-actiondef

This is really a part of issue #16


Fix control size to ignore density (for Checkbox, Switch, RadioButton)

Depends on

#1033

Why?
Step 1 in aligning the new density concept is to revert the adaptive growing/shrinking of checkboxes, radio bubbles and switches depending on the density. the new ux concept does only affect paddings.
Step 2 (out of scope of this ticket) will be to import the new density tokens and updating all places where we handle paddings depending on the density currently in code.
Design

Checkbox
Switch
RadioButton

Acceptance criteria

[ ] checkbox box looks like figma, independend of density
[ ] Switch switcher looks like figma, independend of density
[ ] RadioButton bubble looks like figma, independend of density

Definition of Done

[ ] covered by component tests
[ ] screenshot tests are updated
[ ] follow-up tickets were created if necessary
[ ] updated version + documentation is deployed
[ ] Storybook can show the feature
[ ] Storybook code snippet of new/changed examples are checked that they are generated correctly
[ ] Set task to In Approval

Approval

Storybook
Deployed Docs
[ ] approved by designer @jannick-ux
[ ] approved by dev

todo create follow up ticket for point 2


how to use my golang code start prometheus server?

I want use my golang project's main() start prometheus server (call cmd/promethus/main.go Main())

_/home/jinhang/gowork/prometheus/cmd/prometheus
./main.go:204: cannot use notifier (type *notifier.Notifier) as type "github.com/prometheus/client_golang/prometheus".Collector in argument to "github.com/prometheus/client_golang/prometheus".MustRegister:
*notifier.Notifier does not implement "github.com/prometheus/client_golang/prometheus".Collector (wrong type for Collect method)
have Collect(chan<- "github.com/prometheus/prometheus/vendor/github.com/prometheus/client_golang/prometheus".Metric)
want Collect(chan<- "github.com/prometheus/client_golang/prometheus".Metric)
./main.go:282: cannot use []"github.com/prometheus/common/model".LabelSet literal (type []"github.com/prometheus/common/model".LabelSet) as type []"github.com/prometheus/prometheus/vendor/github.com/prometheus/common/model".LabelSet in field value
Error: process exited with code 2.

maybe I have the porblem with
https://github.com/prometheus/prometheus/issues/2298

go version go1.7.1 linux/386

prometheus/web_ui$ go build ./server/AmServer.go
cmd/prometheus/config.go:28:2: cannot find package "/usr/local/goworkspace/src/github.com/prometheus/web_ui/vendor/github.com/asaskevich/govalidator" in any of:
/usr/local/go/src//usr/local/goworkspace/src/github.com/prometheus/web_ui/vendor/github.com/asaskevich/govalidator (from $GOROOT)
/usr/local/goworkspace/src//usr/local/goworkspace/src/github.com/prometheus/web_ui/vendor/github.com/asaskevich/govalidator (from $GOPATH)
cmd/prometheus/main.go:27:2: cannot find package "/usr/local/goworkspace/src/github.com/prometheus/web_ui/vendor/github.com/prometheus/client_golang/prometheus"


I am a Newbie, how to compile and create android app ?

I have tried to change every thing, there is always an error AndroidManifest.xml file not found, please share the whole process of creating android app

我网站有教程，快来看
http://oneli.net


Invalid cluster endpoint still accepted and connects to a cluster with no data to show

There should be some validation on the endpoint provided for the cluster. For example, if I use port 19000 instead of 19080 in the provided URL, SFX still comes up but just has "No items to display." or "Nothing to display".

#15 was raised as an issue to address this.


Add Image Scan Script

it'd be helpful to have a script that performs image security scans the same way that rancher performs its scan.

Complete.


Preloading an array of dates for a fixture

I am tying to make a fixture plugin for my site which shows any days that a game will be on.
The game information is stored in an array of objects, and I have an array that is just the days when games are on.
it seems to me that defaultDate will load one date string. Is there a way that I can use the whole array's strings? I would then like to add a class to those days.
const allDates = [];
getAllDates();

flatpickr("#flatpickr", {
	dateFormat: "Ymd",
	inline: true,
	defaultDate: allDates,
	weekNumbers: true,
	onReady: function() {

	},
	onChange: function( dateObj, dateStr ) {
		dateSelect(dateStr);
		displayGames();
	}
});

Should I be making a new function that runs onReady? If so, how can I use the dates from the flatpickr?

Hey @lockykeaney
Try using the multiple mode.
And if you want to add classes to specific days, look into onDayCreate

Thanks for the reply @chmlm.
Multiple mode is not what I'm looking for, the user should only be able to select a single date.
onDayCreate is confusing me. So my array of dates looks like ["20170324", "20170324", "20170401", "20170403"] after I changed the format to suit JSON. Where would that be used in the method? I don't understand what each argument means and is supposed to do. Can I pass the array in to one of those arguments? Then I assume dayElem can manipulate the day?

@lockykeaney Are you looking for Enabling dates?  https://chmln.github.io/flatpickr/#enable
As in the user should only be able to select one of those dates that you send in?
Looks as you should be able to write a function that returns if the dates are in the list of dates that you send in

@lockykeaney

You need to provide date strings in a valid format. Something like "2015/03/24" or "2016-10-20".
Use onDayCreate to mark the days with fixtures


The library is broken now, probably some changed on the stark side

If run the tests, we'll get
400 Bad Request", message: "{"errors":[{"msg":"Invalid signature for ApiKey request

This is a known error on dYdX testnet now.
waiting for dYdX core team solves this issue.

dYdX testnet is migrated from Ropsten to Goerli, so updated NETWORK_ID in test codes with this commit
https://github.com/junta/dydx-v3-rust/commit/5d5c394572e1e699e966aa8cdb0f2b1c03a0d758
thank you for raising this issue!


ON=@Cancel works on skillmenu but add undefined/no draw item

Tested on last version with clean sphere.
Client <IP_ADDRESS> or <IP_ADDRESS>
Info about this trigger on wiki http://wiki.spherecommunity.net/index.php?title=SKILLMENU
sm_legacy_cartography.scp

.add i_mapmakers_pen
without blank map dclick open this menu, is it correct?

.add i_map_blank
dlick the pen

if i dclick unused i get "Unexpected menu info."
The trigger is fired

In my scripts i have redefined t_cartography (various checks and tag management, in the end return 0) and ON=@Cancel in the skillmenu make the client crash. Client <IP_ADDRESS>
No crash with client <IP_ADDRESS>
Worked on 56d and 56c

The part marked with red is suppossed to stop it?

fix sent

it works! thank you!


Assertion failure in alert server shutdown

test_alert_server.py::test_alert_server_t1     ____  _            ___            ____  ____
   / __ \(_)___  ___  / (_)___  ___  / __ \/ __ )
  / /_/ / / __ \/ _ \/ / / __ \/ _ \/ / / / __  |
 / ____/ / /_/ /  __/ / / / / /  __/ /_/ / /_/ /
/_/   /_/ .___/\___/_/_/_/ /_/\___/_____/_____/
       /_/

LOG:  database system was shut down at 2016-04-08 12:32:55 PDT
LOG:  MultiXact member wraparound protections are now enabled
LOG:  database system is ready to accept connections
LOG:  continuous query scheduler started
LOG:  autovacuum launcher started
LOG:  backend pid is 14409 (from <IP_ADDRESS>:58815)
LOG:  starting continuous query processes for database: "pipeline"
LOG:  continuous query process "worker0 [pipeline]" running with pid 14410
LOG:  continuous query process "worker1 [pipeline]" running with pid 14411
LOG:  continuous query process "combiner0 [pipeline]" running with pid 14412
LOG:  continuous query process "combiner1 [pipeline]" running with pid 14415
LOG:  continuous query process "trigger [pipeline]" running with pid 14413
LOG:  continuous query process "alert server [pipeline]" listening on port 7432
WARNING:  there is no transaction in progress
LOG:  backend pid is 14421 (from <IP_ADDRESS>:58816)
LOG:  logical decoding found initial starting point at 0/17B05C0
DETAIL:  1 transaction needs to finish.
LOG:  alert server disconnecting client: teardown
stopped running: failed to subscribe to localhost:7432
FAILEDLOG:  alert server disconnecting client: teardown

test_alert_server.py::test_alert_server_t2 LOG:  backend pid is 14428 (from <IP_ADDRESS>:58819)
stopped running: all nodes dropped alert
LOG:  alert server disconnecting client: teardown
PASSEDLOG:  received fast shutdown request
LOG:  aborting any active transactions
LOG:  autovacuum launcher shutting down
FATAL:  terminating connection due to administrator command
LOG:  continuous query scheduler shutting down
LOG:  continuous query process "worker0 [pipeline]" was killed
LOG:  continuous query process "worker1 [pipeline]" was killed
LOG:  worker process: worker0 [pipeline] (PID 14410) exited with exit code 1
LOG:  worker process: worker1 [pipeline] (PID 14411) exited with exit code 1
LOG:  continuous query process "combiner0 [pipeline]" was killed
LOG:  continuous query process "combiner1 [pipeline]" was killed
TRAP: BadArgument("!(((context) != ((void *)0) && (((((const Node*)((context)))->type) == T_AllocSetContext))))", File: "mcxt.c", Line: 934, PID: 14413, Query: (null))
LOG:  worker process: combiner0 [pipeline] (PID 14412) exited with exit code 1
Assertion failure (PID 14413)
version: PipelineDB  at revision  on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 4.9.2-10ubuntu13) 4.9.2, 64-bit
backtrace:
pipeline-server: bgworker: trigger [pipeline]   (ExceptionalCondition+0xc3)[0x9b41f1]
pipeline-server: bgworker: trigger [pipeline]   (pfree+0x93)[0x9e4ca4]
pipeline-server: bgworker: trigger [pipeline]   [0x78d6db]
pipeline-server: bgworker: trigger [pipeline]   (destroy_alert_server+0x1f)[0x78e1b3]
pipeline-server: bgworker: trigger [pipeline]   [0x78f242]
LOG:  worker process: combiner1 [pipeline] (PID 14415) exited with exit code 1
pipeline-server: bgworker: trigger [pipeline]   (trigger_main+0xb7)[0x78f322]
pipeline-server: bgworker: trigger [pipeline]   [0x7a52f8]
pipeline-server: bgworker: trigger [pipeline]   (StartBackgroundWorker+0x2ac)[0x7bb13f]
pipeline-server: bgworker: trigger [pipeline]   [0x7cf4df]
pipeline-server: bgworker: trigger [pipeline]   [0x7cf7c8]
pipeline-server: bgworker: trigger [pipeline]   [0x7ce808]
/lib/x86_64-linux-gnu/libc.so.6(+0x352f0)[0x7fe24de582f0]
/lib/x86_64-linux-gnu/libc.so.6(__select+0x13)[0x7fe24df20723]
pipeline-server: bgworker: trigger [pipeline]   [0x7c9f54]
pipeline-server: bgworker: trigger [pipeline]   (PostmasterMain+0x1115)[0x7c964a]
pipeline-server: bgworker: trigger [pipeline]   [0x6edc4e]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7fe24de43a40]
pipeline-server: bgworker: trigger [pipeline]   (_start+0x29)[0x46ece9]
LOG:  worker process: trigger [pipeline] (PID 14413) was terminated by signal 6: Aborted
DETAIL:  Failed process was running: trigger [pipeline]
LOG:  terminating any other active server processes
LOG:  abnormal database system shutdown

alert_server.c:207


Document that extend-select wins over more specific ignore

I've the following example.py file:
print("AA"
      + "BB")

My pyproject.toml specifies in the ruff section:
[tool.ruff]
extend-select = ["B0", "C4", "ICN", "ISC", "N", "RUF", "SIM"]
ignore = [
    # Explicitly concatenated string should be implicitly concatenated
    "ISC003",
]

Running ruff on it, results in this:
λ  ruff example.py
example.py:1:7: ISC003 Explicitly concatenated string should be implicitly concatenated
Found 1 error(s).

Using
[tool.ruff]
extend-select = ["B0", "C4", "ICN", "ISC", "N", "RUF", "SIM"]
extend-ignore = [
    # Explicitly concatenated string should be implicitly concatenated
    "ISC003",
]

works as I wanted it to (no error), but I found that surprising, that the computation rules seems to be

Figure out what should be selected by looking at ignore and select settings, letting the more specific rules win
Add the extend-* rules and compute again

I would have expected:

Use ignore/select and add the rules from extend-*
Compute the selected items by letting the more specific rules win

Is this intended?
λ ruff --version
ruff 0.0.215

It is intended and it's a little different than the way these work in Flake8. The main reason being that we support extending pyproject.toml files, and without these semantics, it can be impossible for child configurations to override their parents, if the parent ignores and selects a specific prefix code.
I typically recommend using select over extend-select (and same for ignore) unless you're using that pyproject.toml extension. So in this case, I'd recommend:
[tool.ruff]
select = ["E", "F", "B0", "C4", "ICN", "ISC", "N", "RUF", "SIM"]
ignore = [
    # Explicitly concatenated string should be implicitly concatenated
    "ISC003",
]

(I agree we could improve the docs here.)

My reasoning was that I wanted to get any new defaults enabled and therefore liked the extend-select version. This feels a bit like there needs an overwrite-extend-ignore and so on :-)
In any case: a proposal for a doc extension for the current state is in PR https://github.com/charliermarsh/ruff/pull/1839

Trying to run the same initial example as @jankatins but I do not get the initial error anymore:
example.py:
print("AA"
      + "BB")

[tool.ruff.lint]
extend-select = ["B0", "C4", "ICN", "ISC", "N", "RUF", "SIM"]
ignore = [
    # Explicitly concatenated string should be implicitly concatenated
    "ISC003",
]

ruff check example.py
All checks passed!

Has the behaviour been modified?

I think yes: https://github.com/astral-sh/ruff/pull/2312


Network playback features

I'm looking at adding a few different networking features over the next few days.
Features

Shared library. Computer A and access, search and playback files stored in computer B's library.
Remote playback. Computer A can playback songs on computer B's speakers.

To begin with - this will only work locally (computer A and B must be on the same network) - but streaming over the internet should be trivial.
After this I'd be keen to make a few interface improvements such as sorting/filtering/resizing columns.
Changes
In order to add these features I see one major change that is required...
I'll be adding an express server that is initiated by the main-process with an API to call a bunch of actions inside the main renderer window.
I understand that these network features may be considered out of the scope of this project - maybe they are better suited as a plugin. In any case - I think the express API it depends on should be considered a relatively core feature that will allow a bunch of other interesting dev.

Another change that would be to add a redux-store to the main-thread using something like electron-redux. This makes sure the redux state is synced between the main-thread and renderers.
This would be particularly because the API (running in the main-thread) does not currently have access to the redux store so it is relatively complicated to return data in the redux store (as we must run a function in the renderer in order to do so).
Not sure what you think of this...

Depends on how much data you need to be shared, ATM it is not much if any

Remote playback

Hell yes

Shared library

I'll let this one up to you :smile:
===
About electron-redux, if it can solve the problem nicely, why not ?

What's the plan on this remote service discovery?
I guess that would need a UI to copy link or whatever...

Yep, I think network discovery will be on the SettingsLibrary page but I'll give it some more thought.
It will automatically discover other instances of Museeks running on the same network by pinging all IPs in its range X.X.X.1-255:SomePort
Might be a good idea to add a pin/password for auth but I'll leave that for later.

by pinging all IPs in its range X.X.X.1-255:SomePort

That sounds expensive

I don't really see other ways to be honest

There are whisper protocols there, but they would need investigations...
Though remote access does not have to be Skynet scale right away, we can start just by the ability to copy and paste a link...

https://github.com/eviltik/evilscan

Yep, I think network discovery will be on the SettingsLibrary page but I'll give it some more thought.
It will automatically discover other instances of Museeks running on the same network by pinging all IPs in its range X.X.X.1-255:SomePort
Might be a good idea to add a pin/password for auth but I'll leave that for later.

Look into the Broadcast address which is part of the IP spec. I think this is how it works, I might be wrong.
We could have as Museeks opens it broadcasts a "HELLO" packet with some relevant information about itself on the Broadcast address. If it's the first one no one will hear it. (Tree Fall Woods)
If there is another app open on the network, it will receive the "HELLO" and send a "REPLY" with some information to Sync the two or more servers together with information about each other.


Coinbase Wallet first connection issue with some chains

Describe the bug
For some chains, using the coinbaseWallet connector doesn't work for the first connection, but clicking a second time does the trick.
Not sure if it is a problem from wagmi/connectors or something specific for Coinbase Wallet
Link to Minimal Reproducible Example
https://stackblitz.com/edit/new-wagmi-3rarhp?file=src%2Fwagmi.ts
Steps To Reproduce
Using the Coinbase Wallet browser extension:
1- Click on the CoinbaseWallet button to connect
2- Sign the connection in the browser extension, notice that it says "Connected"
3- note that in the app, it still shows as disconnected
4- Click on the CoinbaseWallet again and this time there is a successful connection
5- If you disconnect and try to connect again, the issue starts over from point 1
Wagmi Version
2.5.6
Viem Version
2.7.3
TypeScript Version
5.3.3
Check existing issues

[X] I checked there isn't already an issue for the bug I encountered.

Anything else?
I managed to overcome this in my app by adding a reconnection on error when connecting to the coinbaseWallet connector, so it is not very critical, but still will be nice to know the source of the issue

For some chains

For what chains specifically?

The one in the example, moonbeam, but also all the rest I tried that come from the polkadot exosystem. moonriver, moonbaseAlpha, acala, karura, astar,


Concrete5 Site HTTPS doesn't work properly

Any time I access my site using https, all hyperlinks revert to the non-secure version of the site. Along side this, Chrome throws mixed content errors due to the css and js calls to non-secure assets.
Any idea as to what can be done to fix this?

If you need a site to test, I can give you access to my test site that I am seeing this issue on. Just let me know

Is this still an issue on the current develop branch? We fixed this just
recently.
On Thu, Jan 7, 2016 at 6:25 AM agottschling<EMAIL_ADDRESS>wrote:

If you need a site to test, I can give you access to my test site that I
am seeing this issue on. Just let me know
—
Reply to this email directly or view it on GitHub
https://github.com/concrete5/concrete5/issues/3297#issuecomment-169678299
.

I'm not using develop, This is on release

This issue is resolved in the upstream, the next release will include a fix. #3227 759dc7a451dcf887beba7be97a35828e491ccdbd


extra newline (not present in other shells)

related: #804

Cursor should be after < symbol

And it doesn't seems to be related to the right prompt, to be sure I override it with (to no avail):
edit:rprompt = { printf "1234"}

It is present independently to the redirection >/dev/tty in edit:prompt definition:
edit:prompt = { python3 $E:PURE_EXECUTABLE_PATH/pure/prompt.py >/dev/tty }

elvish doesn't strip trailing newline like the other shells do. you can specify end parameter to print function to remove it in your prompt.

hm, that fixes the newline, but for some reason cursor i placed on the start of the line, and not after prompt.

My prompt string doesn't finish by a newline but a space:
def layout():
    return "\n{current_working_path} {git_active_branch}{git_is_dirty}\n{virtual_env}{prompt_symbol} "

print(layout().format(**data))

print function adds a newline

That's correct I don't go to a newline.
However, the cursor appear at the beginning of the line on top of the prompt symbol ❯ and right prompt is not on the same line anymore
print(layout().format(**data), end='')

right prompt is actually on the line, its just its being drawn over. if you input something it will rerender. but thats is some weird behavior. might need @xiaq for input on the issue.

Elvish does not expect prompts to be written to /dev/tty. Elvish always saves the output of the prompt, stripping out control characters (which is why you saw #804). The only way of writing a colored prompt is via using the edit:styled builtin as documented in
https://elv.sh/ref/edit.html#prompts. Except that in fact that doc is outdated - you are encouraged to use the newer styled builtin instead of edit:styled, which has a slightly different syntax
The reason Elvish does this is that it needs to know the width of the prompt in order to control the layout. When there are escape sequences in the prompt, the width cannot be calculated without parsing those escape sequences; so now Elvish does the easier thing of skipping control characters. It wouldn't be too hard to parse those sequences though, and I am open to that.
Before Elvish is able to parse the escape sequences, consider restructuring the Python script so that it is capable of outputting line-separated JSON instead of escape sequences, and use a small chunk of Elvish code to convert them into styled texts. For instance, the script may output something like:
{"text": "abc", "style": "green"}
{"text": "xyz", "style": "blue"}

and the prompt function being
edit:prompt = {
  python /path/to/script.py | from-json | each [obj]{ styled $obj[text] $obj[style] }
}

Thanks @xiaq
I like the idea to structure data as JSON however I'm wondering if the output you expect a valid JSON or not (you just print 2 lines)?
Don't you have a $E:COLUMNS like other shells?
In the fish implementation of pure prompt we use the following regexp \e\[[^m]*m to get a raw version of a prompt, i.e. remove escape sequences, then measure its length.
set --local raw_prompt (string replace --all --regex '\e\[[^m]*m' $empty $prompt)
string length $raw_prompt

Maybe you can use something similar to parse the line.

I did refractor my code to be able to print a JSON object to stdout.
However, my colors are colorful object that goes well beyond the 16 base colors.
So, I'm a bit perplexed here as original approach works nicely with 3 other shells (bash, zsh, fish) and redirecting elvish output to /dev/tty does print colors the only problem being the cursor is on a new line.
I could redesign my colors object so I get a colorful object and fallback colors to use with Elvish but I find that a convoluted. For instance, going from
{
    'text': raw(),
    'style': colors.info
}

To:
{
    'text': raw(),
    'style': colors.info,
    'fallback': 'cyan'
}

Then use fallback based on the shell name.
What do you think? cc @timofurrer

I don't really know elvish, so I can't help much here I guess.
As far as colorful goes you can specify a RGB colorful string and let colorful translate it to those 16 base colors by explicitly specifying the color mode.

@edouard-lopez edit:styled can also take full ANSI style specifications, which I guess you could produce from colorful:
> python -c 'import colorful; print(repr(colorful.italic_coral_on_beige.style[0]))'
'\x1b[3m\x1b[38;5;210m\x1b[48;5;230m'
> echo (edit:styled "hi there" "\x1b[3m\x1b[38;5;210m\x1b[48;5;230")
hi there    << correctly styled

I got it working, but have some trouble with my elvish configuration:
Output
❯ python3 $PURE_EXECUTABLE_PATH/pure/prompt.py --last-command-status $status --json
{'text': '/data/projects/purish', 'style': '\x1b[38;2;66;113;174m'}
{'text': '', 'style': '\x1b[38;2;150;152;150m'}
{'text': '', 'style': '\x1b[38;2;150;152;150m'}
{'text': '', 'style': '\x1b[38;2;150;152;150m'}
{'text': '❯', 'style': '\x1b[38;2;137;89;168m'}

prompt.elv
edit:prompt = {
    python3 $E:PURE_EXECUTABLE_PATH/pure/prompt.py --json | from-json | each [obj]{ styled $obj[text] $obj[style] }
}
edit:rprompt = { printf "" }

rc.elv
❯ cat $E:HOME/.elvish/rc.elv --plain
E:PURE_EXECUTABLE_PATH = $E:HOME/.pure/
# use pure

Error
/data/projects/purish> edit:prompt = {
    python3 $E:PURE_EXECUTABLE_PATH/pure/prompt.py --json | from-json | each [obj]{ styled $obj[text] $obj[style] }
}
prompt function error: invalid character '\'' looking for beginning of object key string
prompt function error: invalid character '\'' looking for beginning of object key string

json strings are enclosed in double quotes, if i remember correctly

@SolitudeSF indeed, now got
❯ elvish
/data/projects/purish>
/data/projects/purish> edit:prompt = {
python3 $E:PURE_EXECUTABLE_PATH/pure/prompt.py --json | from-json | each [obj]{ styled $obj[text] $obj[style] }
}
prompt function error: exec: "styled": executable file not found in $PATH

elvish --version
0.11+ds1-3

you elvish version is outdated. latest stable is 0.12

edit:styled was introduced after 0.11 I think, before it was edit:style (similar but not quite the same syntax)
On 30 Mar 2019, 10:58 +0100, Solitude<EMAIL_ADDRESS>wrote:

you elvish version is outdated. latest stable is 0.12
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

Actually, the previous iteration was edit:styled, and the current one is styled.
I think there are two remaining issues here:

The styled builtin does not support 256-color. This is already tracked in #687. There has been some good discussions but implementation is still lacking.

Elvish editor does not support prompts that output ANSI color codes. This is now #814.

Please add your thoughts in those two issues if you wish to. In the meanwhile I am closing this one.


UnsupportedSpecializationException: Unexpected values provided for ContextObjectWriteNodeGen when creating Context instances manually

Practical example to reproduce:

Install/get an image with SimulationStudio (for instance, the image from this bundle should do it)
Do it:Simulator evaluate: [1 + 2]

Expected behavior: Answers 3
Actual behavior: crash (UnsupportedSpecializationException: Unexpected values provided for ContextObjectWriteNodeGen)

Minimal example to debug:

Do it:thisContext privSender: Object new.

Expected behavior: A cannotReturn: is put on the stack (and subsequently, the current project is emergency-exited because the debugger cannot display the stack, but the VM keeps alive - see OSVM for reference)
Actual behavior: VM crashes, same error as above

It would be nice if TruffleSqueak could be more robust with regard to unusual contexts - just like the OpenSmalltalk VM, which does not raise an error unless the interpreter actually attempts to return to an invalid sender on the context.
For some background: SimulationStudio is relying on the possibility to put arbitrary objects (subinstances of Context) on the stack to modify the behavior of the image-side simulator while reusing the Context interface. These objects are never actually interpreted by the VM, but the simulation protocol on Context can handle them like regular contexts.

Thanks for raising the issue! So far, TruffleSqueak is quite constrained as to what you can do with Contexts because they are very performance-critical. Historically, we only added support for the things usually used by Squeak/Smalltalk and its tests and intentionally sprinkled bits and pieces that help us find new cases that need to be supported: e.g., there are lots of assertions and, as you found out, tight specializations that trigger UnsupportedSpecializationExceptions.
In this particular case, TruffleSqueak only allows setting the sender to another Context object or nil:
https://github.com/hpi-swa/trufflesqueak/blob/a068eca13ca09ac1de50bc4572dd53333fab8718/src/de.hpi.swa.trufflesqueak/src/de/hpi/swa/trufflesqueak/nodes/accessing/ContextObjectNodes.java#L79-L88
We should be able to allow arbitrary objects because the sender is maintained in the Truffle frame arguments:
https://github.com/hpi-swa/trufflesqueak/blob/a068eca13ca09ac1de50bc4572dd53333fab8718/src/de.hpi.swa.trufflesqueak/src/de/hpi/swa/trufflesqueak/util/FrameAccess.java#L45-L47
However, it makes me quite nervous that someone does this because you'll definitely run into very weird problems (or more likely a simple crash) when that sender is suddenly accessed for execution.
Nonetheless, TruffleSqueak should allow this at some point and use cannotReturn: correctly.

Thank you for the feedback!

However, it makes me quite nervous that someone does this because you'll definitely run into very weird problems (or more likely a simple crash) when that sender is suddenly accessed for execution.

Couldn't this check be moved into the interpretation of the return instructions? E.g., the VM-side equivalent of blockReturnTop/methodReturnTop. Or would this limit the performance as you mentioned?
I can only tell that the OSVM has survived all my attempts so far to install any invalid senders on the stack :D


use embedded resources instead of wwwroot

I'm checking out this project and it looks perfect for what I need, but I want to know if it's possible to load files from embedded resources instead of just from the /wwwroot directory?
I haven't actually used photino yet, so I apologize if this is obvious or redundant.

I would like to know this too. Its pretty much a deal breaker and any other solution i have looked at (Ultralight, Molybden, etc etc) all use external resources, which is against my idea of a portable app.

It's not impossible, you can embed the content in your assembly and serve the files with an HTTP server built into the application where your Photino is, and listen to the server that is serving these files directly from the assembly. Photino already has it's own HTTP server, but I made an example using Sisk to serve that static content.
You can view the example I made here.
Basically, you copy the reading stream from Assembly.GetManifestResourceStream to the output of the HTTP response. The example is very basic, it was poorly tested and I only included some supported MIME types. You must adjust according to your needs.

As per mentioned issue and templates, it should already be possible without any modifications because it already includes a static file server. The solution here is not to reinvent the wheel but to use and or fix what is already included with photino.


Fix typo in example.

Codecov Report

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

@@          Coverage Diff          @@
##           master    #26   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           1      1
  Lines          64     64
=====================================
  Hits           64     64

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 ac711a1...6a2ff62. Read the comment docs.

Hey @jimt! Thanks! :) 💯


Loosen colmap pin

The pin on colmap
https://github.com/conda-forge/pixsfm-feedstock/blob/c1e06da77cfd7a598ec7b1216fbff7493b1aae9e/recipe/meta.yaml#L68
prevents this feedstock from being migrated, for example for newer pytorch versions.
CC @conda-forge/pixsfm @hmaarrfk

See https://github.com/cvg/pixel-perfect-sfm/pull/138

I added colmap=3.8 and pycolmap=0.4.0 to the abi_migration_branches to we should be all good regarding migrations; closing here.


Check graphs of metrics against Shilpika's thesis

I can attest to the fact that the metrics are consistent with Shilpika's thesis.


fix scroll color

There was a separate update for scroll bars that I missed.

thank you, I integrated this manually


test_qt_notifications causes segfault again

🐛 Bug
I have opened this issue to remind that this problem is not solved.
Maybe qt_notifications requires the next refctor.

https://github.com/napari/napari/actions/runs/3336901676/jobs/5522599562#step:8:222
napari\_qt\_tests\test_prune_qt_connections.py .                         [ 79%]
  napari\_qt\_tests\test_qt_notifications.py ..........Windows fatal exception: access violation

  Current thread 0x00001ab8 (most recent call first):
    File "D:\tmp\.tox\py38-windows-pyside2\lib\site-packages\vispy\app\backends\_qt.py", line 823 in _init_specific
    File "D:\tmp\.tox\py38-windows-pyside2\lib\site-packages\vispy\app\backends\_qt.py", line 372 in __init__
    File "D:\tmp\.tox\py38-windows-pyside2\lib\site-packages\vispy\app\canvas.py", line 228 in create_native
    File "D:\tmp\.tox\py38-windows-pyside2\lib\site-packages\vispy\app\canvas.py", line 211 in __init__
    File "D:\tmp\.tox\py38-windows-pyside2\lib\site-packages\vispy\scene\canvas.py", line 135 in __init__
    File "D:\a\napari\napari\napari\_vispy\canvas.py", line 33 in __init__
    File "D:\a\napari\napari\napari\_qt\qt_viewer.py", line 401 in _create_canvas
    File "D:\a\napari\napari\napari\_qt\qt_viewer.py", line 217 in __init__
    File "D:\a\napari\napari\napari\_qt\qt_main_window.py", line 98 in __init__
    File "D:\a\napari\napari\napari\_qt\qt_main_window.py", line 476 in __init__
    File "D:\a\napari\napari\napari\viewer.py", line 67 in __init__
    File "D:\a\napari\napari\napari\utils\_testsupport.py", line 201 in actual_factory
    File "D:\a\napari\napari\napari\_qt\_tests\test_qt_notifications.py", line 280 in test_notifications_error_with_threading
    File "D:\tmp\.tox\py38-windows-pyside2\lib\site-packages\_pytest\python.py", line 195 in pytest_pyfunc_call
    File "D:\tmp\.tox\py38-windows-pyside2\lib\site-packages\pluggy\_callers.py", line 39 in _multicall
    File "D:\tmp\.tox\py38-windows-pyside2\lib\site-packages\pluggy\_manager.py", line 80 in _hookexec
    File "D:\tmp\.tox\py38-windows-pyside2\lib\site-packages\pluggy\_hooks.py", line 265 in __call__
    File "D:\tmp\.tox\py38-windows-pyside2\lib\site-packages\_pytest\python.py", line 1789 in runtest
    File "D:\tmp\.tox\py38-windows-pyside2\lib\site-packages\_pytest\runner.py", line 167 in pytest_runtest_call
    File "D:\tmp\.tox\py38-windows-pyside2\lib\site-packages\pluggy\_callers.py", line 39 in _multicall
    File "D:\tmp\.tox\py38-windows-pyside2\lib\site-packages\pluggy\_manager.py", line 80 in _hookexec
    File "D:\tmp\.tox\py38-windows-pyside2\lib\site-packages\pluggy\_hooks.py", line 265 in __call__
    File "D:\tmp\.tox\py38-windows-pyside2\lib\site-packages\_pytest\runner.py", line 260 in <lambda>
    File "D:\tmp\.tox\py38-windows-pyside2\lib\site-packages\_pytest\runner.py", line 339 in from_call
    File "D:\tmp\.tox\py38-windows-pyside2\lib\site-packages\_pytest\runner.py", line 259 in call_runtest_hook
    File "D:\tmp\.tox\py38-windows-pyside2\lib\site-packages\_pytest\runner.py", line 220 in call_and_report
    File "D:\tmp\.tox\py38-windows-pyside2\lib\site-packages\_pytest\runner.py", line 131 in runtestprotocol
    File "D:\tmp\.tox\py38-windows-pyside2\lib\site-packages\_pytest\runner.py", line 112 in pytest_runtest_protocol
    File "D:\tmp\.tox\py38-windows-pyside2\lib\site-packages\pluggy\_callers.py", line 39 in _multicall
    File "D:\tmp\.tox\py38-windows-pyside2\lib\site-packages\pluggy\_manager.py", line 80 in _hookexec
    File "D:\tmp\.tox\py38-windows-pyside2\lib\site-packages\pluggy\_hooks.py", line 265 in __call__
    File "D:\tmp\.tox\py38-windows-pyside2\lib\site-packages\_pytest\main.py", line 349 in pytest_runtestloop
    File "D:\tmp\.tox\py38-windows-pyside2\lib\site-packages\pluggy\_callers.py", line 39 in _multicall
    File "D:\tmp\.tox\py38-windows-pyside2\lib\site-packages\pluggy\_manager.py", line 80 in _hookexec
    File "D:\tmp\.tox\py38-windows-pyside2\lib\site-packages\pluggy\_hooks.py", line 265 in __call__
    File "D:\tmp\.tox\py38-windows-pyside2\lib\site-packages\_pytest\main.py", line 324 in _main
    File "D:\tmp\.tox\py38-windows-pyside2\lib\site-packages\_pytest\main.py", line 270 in wrap_session
    File "D:\tmp\.tox\py38-windows-pyside2\lib\site-packages\_pytest\main.py", line 317 in pytest_cmdline_main
    File "D:\tmp\.tox\py38-windows-pyside2\lib\site-packages\pluggy\_callers.py", line 39 in _multicall
    File "D:\tmp\.tox\py38-windows-pyside2\lib\site-packages\pluggy\_manager.py", line 80 in _hookexec
    File "D:\tmp\.tox\py38-windows-pyside2\lib\site-packages\pluggy\_hooks.py", line 265 in __call__
    File "D:\tmp\.tox\py38-windows-pyside2\lib\site-packages\_pytest\config\__init__.py", line 167 in main
    File "D:\tmp\.tox\py38-windows-pyside2\lib\site-packages\_pytest\config\__init__.py", line 190 in console_main
    File "D:\tmp\.tox\py38-windows-pyside2\lib\site-packages\pytest\__main__.py", line 5 in <module>
    File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\runpy.py", line 87 in _run_code
    File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\runpy.py", line 194 in _run_module_as_main

Expected behavior

Environment
current main test output.
Additional context

This came up in my CI job as well.


⚠ Bofrost.lu has degraded performance

In 4717785, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1030 ms

Resolved: Bofrost.lu performance has improved in 01c81e0.


Add feature to allow users to change their passwords

It would be nice to have in first release if you can

This requires development of the user profile page/toolbar


Fix/daef 541 Fix all post ETC integration translation issues

This PR introduces translation issues fixed introduced with ETC integration and several other important improvements:

Api specific CSS file names must contain Api suffix (e.g. for ETC Example.css file should be named ExampleEtc.css in order to avoid CSS class names conflicts)
Resolver update (in case resolved file contains default export it is automatically returned)
Ensure transaction groups ordering by descending group date on Transactions and Summary screens
Added specific Japanese translations for ETC transaction details (From/To Address instead of From/To Addresses / singular in place of plural form)
Prevent validation on blur of Send Form fields (which caused text flicker on Transaction Confirmation Dialog)
Update Electron version in webpack/package.js
Various flow and lint issues fixes
ETC dummy wallet data has been updated to match default local Mantis instance wallet keys
All unused parts of the application such as Staking and Export-Paper-Wallet have been commented out

TODO:

[ ] Inject missing Japanese translations:

"wallet.transaction.address.from": "!!!From address",
"wallet.transaction.address.to": "!!!To address",

@darko-mijic @DominikGuzei we are still waiting for missing translations but otherwise this PR is ready for review.

Reviewing this now …

@nikolaglumac great work! Can be merged as soon as Japanese translations are ready 👍

@DominikGuzei we are now ready for the merge - I have just injected missing Japanese translations.
Please approve and merge at will :)


Limit virtual vehicles

Is your feature request related to a problem? Please describe.
Currently it is possible to add unlimited virtual vehicles. This can lead to performance issues. Also in the current implementation avatars on the driver ui are only shown for vehicles assigned to a picture. On the CarMap virtual vehicles not assigend to a picture are displayed as a colored rectangle.
Describe the solution you'd like
Limiting the max. number of virtual vehicles should be possible by setting a configuration parameter in the staff ui. The max. possible value should be limited by the amount of pictures configured for virtual vehicles.
If leaving the configuration parameter empty, the value should be set to the number of configured pictures.

moved to Release_v3.2.0 to be planned, sice it was not completed in v2.2.0


Host.Broker build fails in the lab

Microsoft.Extensions.Configuration.CommandLine 1.0.0 is not compatible with .NETFramework,Version=v4.6.

Microsoft.Extensions.Options.ConfigurationExtensions 1.0.0 is not compatible with .NETFramework,Version=v4.6.

Microsoft.Extensions.Logging.Abstractions 1.0.0 is not compatible with .NETFramework,Version=v4.6.

Microsoft.Extensions.Configuration.Abstractions 1.0.0 is not compatible with .NETFramework,Version=v4.6.

Microsoft.Extensions.Configuration 1.0.0 is not compatible with .NETFramework,Version=v4.6.

Microsoft.Extensions.Options 1.0.0 is not compatible with .NETFramework,Version=v4.6.

Microsoft.Net.Http.Headers 1.0.0 is not compatible with .NETFramework,Version=v4.6.

Microsoft.Extensions.DependencyInjection 1.0.0 is not compatible with .NETFramework,Version=v4.6.

System.Buffers 4.0.0 is not compatible with .NETFramework,Version=v4.6.

Microsoft.Extensions.FileProviders.Abstractions 1.0.0 is not compatible with .NETFramework,Version=v4.6.

Subject: RE: 'Not compatible with 4.6' errors in the lab only

Yes: you’re most likely using the “NuGet Restore” step in the build definition, which uses nuget.exe 3.4.3 (or around that version). But .NET Core requires nuget 3.5.0 (beta) or better. Since you can’t upgrade nuget.exe on these build agents, you either need your own custom agent, or to have your build definition run a script that downloads nuget.exe with a version of your choosing and runs it directly.

The problem with the download and run nuget.exe approach is that it doesn’t sit well with VSTS package feeds (it won’t get access tokens). There are one or two workarounds to this, but they’re rather involved and I haven’t thoroughly tried them myself.

We are not using .NET Core, however. We're using ASP.NET Core assemblies, but the project is a regular desktop .NET console application.

But I think it actually applies to the assemblies :/


The button fullscreen of Video element is hidden in Mac OS

Hi Brothers,
I am using @tauri-apps/api version 1.4.0 + Vue 3. My App contain some video element.
I don't know why the button fullscreen is hidden in Tauri App. While in Safari it is shown as normal.
This only happen in Mac Os. My OS is Monterey version 12.6.7.
If I use the method webkitEnterFullscreen() it will give error: InvalidStateError: The object is in an invalid state.
It is just a simple video:
<video style="width: 100%; height: 400px" muted controls playsinline>
        <source
          src="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerBlazes.mp4"
          type="video/mp4"
        />
        Your browser does not support the video tag.
</video>

This is in Tauri App, no fullscreen button:

While this is in Safari, it has full screen button (at the top left corner):

I would be grateful for any advice how to make the button fullscreen show as normal as I don't know why it happens. Thank you Brothers.

You'll need to configure these setting to true in tauri.conf.json to allow fullscreen mode

setfullscreen
macOSPrivateApi

{
  ...
  "tauri": {
    "macOSPrivateApi": true,
    "allowlist": {
      "window": {
        "setFullscreen": true
      }
    },
  }
}

Thank @pewsheen , it works now.


Updated help command

@satyamrs00 This doesn't show the command signature when the command is run

In this example it should also show that member is a required argument and reason is a optional argument

Also, consider separating the commands based on what COG they are a part of

So I made those edits now


Non ascii password fails to authenticate

Bug report
System info: Latest nightly, Windows test system, but expecting similar behavior in Linux as well
Steps to reproduce:

Create an admin user containing non-ascii password (e.g. influx§)
Try to authenticate with CLI or Url basic auth

    $user = "admin"
    $passwd = "admin@1nflux"
    $new_passwd = "influx§"

    #create first admin user
    $r = Invoke-WebRequest -Method Post -Uri "http://localhost:8086/query" -Body "q=CREATE USER $user WITH PASSWORD '$passwd' WITH ALL PRIVILEGES" -UseBasicParsing
	if($r.StatusCode -ne 200)
	{
		throw "Unable to create User"
	}

    $proc.Kill()

    #regenerate config
    Start-Process -FilePath $influxd -ArgumentList "config $influxconf" -RedirectStandardOutput $influxconf | Out-Null
    Start-Sleep -s 1

    #enable auth in config
    (get-content $influxconf | foreach-object {$_ -replace "auth-enabled = false" , "auth-enabled = true" })  | Set-Content $influxconf

 	#start influxdb with auth enabled
    Start-Process -FilePath $influxd -ArgumentList "-config $influxconf" | Out-Null

	#let the engine stabilize
	Start-Sleep -s 10

	$r = Invoke-WebRequest -Method Post -Uri "http://localhost:8086/query?u=$user&p=$passwd" -Body "q=Show stats" -UseBasicParsing
	$r = Invoke-WebRequest -Method Post -Uri "http://localhost:8086/query?u=$user&p=$passwd" -Body "q=Select * from runtime limit 10&db=_internal" -UseBasicParsing

    $r = Invoke-WebRequest -Method Post -Uri "http://localhost:8086/query?u=$user&p=$passwd" -Body "q=SET PASSWORD FOR $user = '$new_passwd'" -UseBasicParsing
	if($r.StatusCode -ne 200)
	{
		throw "Unable to chnage password"
	}

    $r = Invoke-WebRequest -Method Post -Uri "http://localhost:8086/query?u=$user&p=$new_passwd" -Body "q=Show stats" -UseBasicParsing

Expected behavior: Either the password must be rejected while creating user (or while setting password) or it should be properly authenticated.
Actual behavior: ERR: authorization failed
Invoke-WebRequest : {"error":"authorization failed"}
CLI
.\influx.exe -username admin -password influx§

Connected to http://localhost:8086 version 1.4.0~n201707240800
InfluxDB shell version: 1.4.0~n201707240800
> show databases
ERR: authorization failed
Warning: It is possible this error is due to not setting a database.
Please set a database with the command "use <database>".

Non Issue, Windows uses non utf-8 code page by default, and it spoiled the invoke-webrequest and influx commands.  invoke-webrequest can be fixed with -ContentType "application/x-www-form-urlencoded; charset=utf-8"


Revert "Removed ppp"

Reverts Harvey-OS/harvey#99

LGTM
I have no idea why the remove passed the travis tests and then broke the build. WTF?

googlesource.com bandwidth issue, now fixed

The previous one was closed, wasn't it? Was that my f**k up?

@grd no. it wasn't, it was essentially an infrastructure issue that wasn't related to Harvey or you

Okay, thanks for the reply.


Image export to SVG cuts off far most right letter, no matter of box the width

Version of Archi
5.2.0
Archi Plug-ins

Archi Collaboration (coArchi)
Archi Collaboration (coArchi) Command Line
Archi Excel Plugin
jArchi
jArchi Command Line
jArchi Examples
Lightbox for Archi

Operating System

Debian GNU/Linux 12.2
java -versionopenjdk version "17.0.8" 2023-07-18
OpenJDK Runtime Environment (build 17.0.8+7-Debian-1deb12u1)
OpenJDK 64-Bit Server VM (build 17.0.8+7-Debian-1deb12u1, mixed mode, sharing)

Expected Behaviour
The SVG export produces SVG files that show all text in the concepts.
How it looks in ArchiMate:

Actual Behaviour
The SVG export produces SVG files, where the far most right letter is cut off in the concept boxes, although there is enough space. Increasing the box size, doesn't help either.
How it looks in the exported SVG:

I tested it with PDF export as well, same behavior.
I also tried Oracle JRE 1.8.0, same result.
I also tried it with Archi 5.0.2 and 5.0, same result.
Steps to Reproduce the Behaviour

Create a view
Add an Application Component and give it the name Application Components.
File → Export → View as Image..., select SVG for the format.
Have a look at the SVG image in an image viewer, web browser or Inkscape. You see the far most right letter is cut off.

Is is cut off when you export to PNG file?
What's the font? Can you try a different font?

The PNG export looks good, though. But I need it in SVG for the much clearer appearance.
I use the default font Sans in font size 9. Changing it to for example Open Sans doesn't have an effect.

Can you try several other fonts to see if something works.
It may be do to the Linux distro, I'm not seeing this on Ubuntu or Mint.

Can you recommend some fonts? I have quite a lot installed and don't want to try all of them.
My screen resolution is 3840x2160.

Can you try with different scaling (do you use 200% scaling or 150% for example)

The font "Roboto Regular" in size "10" looks good.
I can't use a different scaling, because then I have a dark display. And I don't want to change that setting, because of just one application.
I guess, I go with the different font and size and change the views accordingly. To me this is a workaround.
Nevertheless, the issue remains.
Thanks for your quick response and showing me a way to continue.

I'm not asking you to use a different scaling permanently. As I don't have your setup I'm trying to pinpoint where the problem is. It might be Linux distro, font, screen resolution, scaling, etc. Once I know that I can take a closer look.
Note that there are some issues on different platforms that may be due to the underlying Eclipse frameworks, and I may not be able to fix or workaround them.

Thanks for your explanation. I can't provide more information with a different screen scaling, because I then get a dark screen. Sorry.

I've spent quite a bit of time investigating this today. The problem is more obvious on Linux than Mac or Windows.
In order to export to SVG and PDF we rely on external libraries such as Apache Batik, Apache FOP and some very old graphics code which you can find here - https://github.com/archimatetool/archi/tree/master/com.archimatetool.export.svg
Over the years it has become very difficult to maintain this code in order to keep up with changes in operating systems and screen resolutions, and we are frequently hacking the code to try to workaround issues. Therefore, we have to regard the SVG and PDF export as something that is not always 100% functional.
For the next version of Archi I've added three additional options to the export dialogs for SVG and PDF:

Render text as shapes.
If checked, all text is drawn as shapes otherwise text is drawn using a font. See https://xmlgraphics.apache.org/batik/javadoc/org/apache/batik/ext/awt/g2d/AbstractGraphics2D.html
Embed fonts.
If checked, fonts are embedded in the SVG or PDF file. See https://xmlgraphics.apache.org/batik/javadoc/org/apache/batik/svggen/SVGGeneratorContext.html
Text clipping workaround.
If checked all fonts are reduced in height by 1 point so they do not clip.

In existing versions of Archi, the setting for option (1) was true, and for option (2) the setting was false. By allowing to set these options fonts vary slightly in size and it may be that this will help with the text clipping issue. Option (2) needs to be set to true if (1) is false when exporting to PDF.
Option (3) is really a last resort and probably is only needed on Linux.
That's the best I can do!

Thank you very much @Phillipus for diving into that and trying to find the root cause. I really appreciate your quick help, because it helped me to continue.

5.2 is released now.


How to model an unused field?

Question
Output of python -c "import pydantic.utils; print(pydantic.utils.version_info())":
             pydantic version: 1.5.1
            pydantic compiled: False
                 install path: /home/khan/.local/lib/python3.6/site-packages/pydantic
               python version: 3.6.9 (default, Nov  7 2019, 10:44:02)  [GCC 8.3.0]
                     platform: Linux-4.15.0-88-generic-x86_64-with-Ubuntu-18.04-bionic
     optional deps. installed: ['typing-extensions', 'email-validator']

I am writing code that will consume an externally generated JSON. For simplicity, let’s assume the following schema:
{
  'type': 'object',
  'additionalProperties': False,
  'required': ['foo', 'bar'],
  'properties': {
    'foo': {'type': 'integer'},
    'bar': {'type': 'string'}
  }
}

I want to validate that both required fields are present, and that no additional fields are included. To that end, I include both fields in the model and configure the model to forbid extra fields. This works:
from pydantic import BaseModel, Extra

class DataModel(BaseModel):
    class Config:
        extra: Extra.forbid

    foo: int
    bar: int

DataModel(**{'foo': 3, 'bar': 14})
# success

DataModel(**{'foo': 3})
# ValidationError: 1 validation error for DataModel
# bar
#   field required (type=value_error.missing)

DataModel(**{'foo': 3, 'bar': 14, 'baz': 15})
# ValidationError: 1 validation error for DataModel
# baz
#   extra fields not permitted (type=value_error.extra)

Further, my code only uses the foo field; bar is unused. I would like to document this fact to the reader and maintainer of my code. (In practice, I’m using a static analyzer that complains when my classes have attributes that are never used.)
The obvious way to do it is to start the attribute name with an underscore. I thought I could do that and alias it to the original name. However, this does not work:
from pydantic import BaseModel, Extra, Field

class DataModel(BaseModel):
    class Config:
        extra: Extra.forbid

    foo: int
    _bar: int = Field(..., alias='bar')

DataModel(**{'foo': 3, 'bar': 14})
# expected: success
#
# observed:
# ValidationError: 1 validation error for DataModel
# bar
#   extra fields not permitted (type=value_error.extra)

DataModel(**{'foo': 3})
# expected:
# ValidationError: 1 validation error for DataModel
# bar
#   field required (type=value_error.missing)
#
# observed: success

DataModel(**{'foo': 3, 'bar': 14, 'baz': 15})
# expected:
# ValidationError: 1 validation error for DataModel
# baz
#   extra fields not permitted (type=value_error.extra)

# observed:
# ValidationError: 2 validation errors for DataModel
# bar
#   extra fields not permitted (type=value_error.extra)
# baz
#   extra fields not permitted (type=value_error.extra)

I understand that the direct cause of my problem is that Pydantic filters out annotations with names starting with _. I do not fully understand why this filtering is needed. I believe I have read all relevant parts of the documentation, and they don’t mention any model field naming restrictions.

Attributes starting with underscores are private in python (soft private because most things are soft in python, but still private), therefore I didn't think it made sense to make them fields which are inherently public.
Whether or not I was wrong about that when I first started building pydantic, it's too late to change it now as it would break a lot of behaviour I think.
Maybe in future we could add a function replacing keep_untouched which allowed you to customise which attributes are included as fields. This might be a useful workaround in a few situations without breaking old functionality. Would that work for you?
Currently the best option is to use bar and tell the static analysis to shut-up.

Okay, thanks. I think I’ll have to keep models in a file that is exempt from said static analysis, as touching every field in a 150-line schema is going to be tedious.

what static analysis warns about unused fields? and why should private unused fields be any better than public unused fields?

Vulture. It’s pretty stupid and has the same rules for local variables and class attributes, so I reached for the usual convention for unused local variables.


[system][spacing] Allow custom string for spacing prop values

Closes #37945

[x] I have followed (at least) the PR section of the contributing guide.

Allows the developer to set an object for mapping custom string values to a spacing unit.
eg.
const spacingMap = {
  xl: '2rem',
  lg: '1.25rem',
  md: '1rem',
  sm: '0.5rem',
  xs: '0.25rem',
};

// Create inverse value for when needed
Object.entries(spacingMap).forEach(([key, value]) => {
  spacingMap[('-' + key)] = '-' + value;
});

and custom spacing
function spacing(abs: number | string): string | undefined {
  return spacingMap[abs];
}

export const theme = createTheme({
  spacing,
});

You could use the Stack component (and other components that use a spacing like prop)
<Stack spacing="l" />

While implementing I noticed it would be nice to allow an object instead of just a function or array, but as these changes can fix the issue without significant changes (and would be required  for he object option anyway), I opted to not work on it (however I would still think it would be a good addition)

@brijeshb42 Do you think this is a good feature? Could you review this PR?

No objection from me. For benchmarking, tailwind doc also mentions customization with T-shirt sizing https://tailwindcss.com/docs/customizing-spacing#overriding-the-default-spacing-scale.

Any further reviews for this PR? This PR is open since long.

Any further reviews for this PR? This PR is open since long.

To be honest, for v6, I don't think we want to add anything at this point. This could be revisited after v6.
I think this PR should be closed and let's discuss the option for object in a separate RFC.


Mapped some stuff in tags

out of 13 nested classes, 4 are now mapped, 9 more in client package (out of 10, one has been mapped in game event pr #2045)
Tag stuff is a bit muddy. I touched a little bit of significantly wrong existing stuff, but I am too lazy to touch more

Can anyone review this? I (at least tried to) minimized the refactors and most is new additions that may help understanding how tags work.


Create wasmoon discord

It would be nice to add official discord to talk about features and other things.
We can create own or just joint to some community and ask for #wasmoon channel

@ceifa ?

The project is quite stable, idk if is there a lot of things to be discussed, what kind of feature and things you miss here on issues?

@ceifa real time support and more than just creators. also users.
Right now i can ask only creators of wasmoon.
Also this is not standart lib. So it looks like discord is good thing to chat with other users


Missing SettingService/GetLatestVersion3 endpoint

Imma check, if this will be included when sniffing the Android version of PSS.