Set up mig ui, "Failed to create object: Could not determine if we should add owner ref"

Saw below failure on a fresh, brand new ocp4 cluster, nothing installed prior.
image: quay.io/ocpmigrate/mig-operator:latest
imageID: quay.io/ocpmigrate/mig-operator@sha256:28004497e365ff9bf812059f11bfec26871989c55444937a9a26555eec193265
$ oc logs migration-operator-bfbc7f445-nk4gz  -c ansible
TASK [migrationcontroller : Set up mig ui] *************************************
task path: /opt/ansible/roles/migrationcontroller/tasks/main.yml:158
fatal: [localhost]: FAILED! => {"changed": false, "error": 400, "msg": "Failed to create object: Could not determine if we should add owner ref\n", "reason": "Bad Request", "status": 400}
PLAY RECAP *********************************************************************
localhost                  : ok=21   changed=0    unreachable=0    failed=1
$ oc get migrationcontrollers.migration.openshift.io migration-controller -o yaml
apiVersion: migration.openshift.io/v1alpha1
kind: MigrationController
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"migration.openshift.io/v1alpha1","kind":"MigrationController","metadata":{"annotations":{},"name":"migration-controller","namespace":"mig"},"spec":{"cluster_name":"host","migration_controller":true,"migration_ui":true,"migration_velero":true}}
creationTimestamp: "2019-07-10T16:06:15Z"
generation: 1
name: migration-controller
namespace: mig
resourceVersion: "88844"
selfLink: /apis/migration.openshift.io/v1alpha1/namespaces/mig/migrationcontrollers/migration-controller
uid: a546e88e-a32c-11e9-924b-063ca044fe88
spec:
cluster_name: host
migration_controller: true
migration_ui: true
migration_velero: true
status:
conditions:

ansibleResult:
changed: 0
completion: 2019-07-10T17:04:50.319287
failures: 1
ok: 21
skipped: 5
lastTransitionTime: "2019-07-10T17:04:50Z"
message: |
Failed to create object: Could not determine if we should add owner ref
reason: Failed
status: "False"
type: Failure
lastTransitionTime: "2019-07-10T17:04:50Z"
message: Running reconciliation
reason: Running
status: "True"
type: Running

$ oc get oauthclient migration -o yaml
apiVersion: oauth.openshift.io/v1
grantMethod: auto
kind: OAuthClient
metadata:
annotations:
operator-sdk/primary-resource: mig/migration-controller
operator-sdk/primary-resource-type: MigrationController.migration.openshift.io
creationTimestamp: "2019-07-10T16:06:33Z"
name: migration
resourceVersion: "74538"
selfLink: /apis/oauth.openshift.io/v1/oauthclients/migration
uid: b008a0a1-a32c-11e9-a782-0a580a800018
redirectURIs:

https://migration-mig.apps.cluster-jwm0710ocp4a.jwm0710ocp4a.mg.dog8code.com/login/callback
secret: NmVkMjYwZTUtODg4MS01NTdjLTgzYzMtZGFiMGM1ZGQxZDI5

$ oc get all -n mig
NAME                                     READY   STATUS    RESTARTS   AGE
pod/controller-manager-79bf7cd7d-mwsgs   1/1     Running   0          54m
pod/migration-operator-bfbc7f445-nk4gz   2/2     Running   0          55m
pod/restic-fg8v4                         1/1     Running   0          54m
pod/restic-p24mt                         1/1     Running   0          54m
pod/restic-t92l4                         1/1     Running   0          54m
pod/velero-5dcfc7fcb7-f9llv              1/1     Running   0          54m
NAME                                 TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)    AGE
service/controller-manager-service   ClusterIP   <IP_ADDRESS>           443/TCP    54m
service/migration-operator           ClusterIP   <IP_ADDRESS>           8383/TCP   55m
NAME                    DESIRED   CURRENT   READY   UP-TO-DATE   AVAILABLE   NODE SELECTOR   AGE
daemonset.apps/restic   3         3         3       3            3                     54m
NAME                                 READY   UP-TO-DATE   AVAILABLE   AGE
deployment.apps/controller-manager   1/1     1            1           54m
deployment.apps/migration-operator   1/1     1            1           55m
deployment.apps/velero               1/1     1            1           54m
NAME                                           DESIRED   CURRENT   READY   AGE
replicaset.apps/controller-manager-79bf7cd7d   1         1         1       54m
replicaset.apps/migration-operator-bfbc7f445   1         1         1       55m
replicaset.apps/velero-5dcfc7fcb7              1         1         1       54m
NAME                                 HOST/PORT                                                              PATH   SERVICES       PORT        TERMINATION   WILDCARD
route.route.openshift.io/migration migration-mig.apps.cluster-jwm0710ocp4a.jwm0710ocp4a.mg.dog8code.com          migration-ui   port-9000   edge          None

This is operator framework https://github.com/operator-framework/operator-sdk/issues/1330

The intermittent nature of this issue made me believe it is due to people not cleaning up stuff that was created via other install methods, or even an old install of the operator. My suspicion was then that the operator comes along and doesn't know who created the object and is refusing to update it, but reading through the issue above I'm not sure if something much more complex is at work.
Maybe @shawn-hurley can weigh in with his thoughts.

when is the MigCluster CRD installed?

https://github.com/operator-framework/operator-sdk/pull/1661

Looks like, some time ago, that go based operators started using a dynamic restmapper. This PR https://github.com/operator-framework/operator-sdk/pull/1661 should make it so ansible based operators also use the dynamic restmapper.

I am able to reproduce this issue when running controller.yml for the first time when mig-ui pod is not created. The pod is created successfully after a delete and re-create.


erratic behaviour with multiple notebooks

when multiple notebook panels are open at the same time,
sometimes class addition/deletion does not occur as advertised

hopefully fixed in 0.5.0


Dropdown list of Domains reset to Webmin in IE11

If you select a Domain from the top dropdown, after the selecting the refresh takes you to webmin and the domain displaying is the first alphabetic domain.
Using Chrome, If you select a Domain from the top dropdown, after selecting the refresh keeps you in VirtualMin with the correct domain selected.
Recap, works as designed in Chrome, error is when using IE11

Confirmed! Most silly and annoying thing ever, is to debug IE.
Did you know that magic happens, if you open DevTools (F12) and then close them - everything works after all!? What do you think that could be??

Alright, found the reason why it was happening! It will be fixed in the next release in version 10.0.0. Thanks for reporting!


How do I build this as an edge module project in VS Code?

I successfully followed Tutorial: Develop IoT Edge modules for Linux devices from the Azure IoT Edge Documentation, including building, pushing and deploying an edge module to a device using Visual Studio Code.
Now I am trying to to apply this knowledge to the OPC Publisher.
Sadly, the wiki only explains how to build this project As native Windows application and As Docker container.
While the process of building and deploying the edge module certainly requires a container to be created, merely creating a docker container is not enough. Or is it?
The entire project structure is different, because the OPC Publisher is a Visual Studio ~Code~ 2017 project, with a solution file and all that jazz.
How do I transform it into a project where I can build and deploy the module from a deployment.template.json file like in the tutorial?

PS: I found Using it as a module in Azure IoT Edge, but I do not want to deploy it as a module, I want to modify the code like in the tutorial.
Thank you for your help.

A docker container is all that is needed to run the publisher as part of IoT Edge.
The project file in the repo does not use the IoT Edge VS extension.
However, the docs show a sample module deployment manifest, which you can use to deploy opc publisher into IoT Edge instance, e.g. using the instructions here:  https://docs.microsoft.com/en-us/azure/iot-edge/how-to-deploy-modules-cli.
The repo also includes a "debug" dockerfile that allows you to build a container with remote debugger included, to debug a running instance inside IoT Edge.


Add node relationship to APIv2 files detail endpoint [#OSF-6685]

Purpose
Adds a new "relationships.node" field to APIv2 representation of each file. This field provides a link to the project (or registration) that owns the file.

Changes
The following endpoints are affected:

NodeFileDetail http://localhost:8000/v2/nodes/f263w/files/osfstorage/57598fb3c4f5fbf0f066a8fe
NodeFilesList  http://localhost:8000/v2/nodes/f263w/files/osfstorage/
FileDetail http://localhost:8000/v2/files/5769ef78c4f5fb37ee10ef2e/
RegistrationFileDetail  http://localhost:8000/v2/registrations/vytz8/files/osfstorage/5769ef78c4f5fb37ee10ef2d/
RegistrationFileList http://localhost:8000/v2/registrations/vytz8/files/osfstorage/

Side effects
None expected, but there is one known bug beyond the scope of this PR.
Known issues
The file detail page shows the wrong relationship link for registration files. This is a known issue that also affects comments links.
This PR assumes that every file belongs to exactly one project (consistent with current field definition). This could behave weirdly if that assumption is broken in the future.
Ticket
https://openscience.atlassian.net/browse/OSF-6685

Requesting CI restart for unrelated failing tests.
A personal branch build did pass, but there's no guarantee that represents the final merged state.
https://travis-ci.org/abought/osf.io/builds/144504199

This is super helpful Andy - I can use it for the file detail page.  We should also add the node relationship to the file model in the ember-osf addon.

This is super helpful Andy - I can use it for the file detail page. We should also add the node relationship to the file model in the ember-osf addon.

Indeed. That should go in along with the project navbar PR. (I'm working through the template conversion process now)
https://github.com/CenterForOpenScience/ember-osf/pull/100/files#diff-d44f067459505b9ee4c68e51f1b0ff48R45

Steve is looking into the failing test; don't worry about it.

Looks great. 🎉 🐧 🎉

Restarted CI to resolve non-deterministic failures.
Pinging to avoid PR going stale.


Emulator not supported?

Split from #155
 - /usr/local/lib/haxe/lib/hxcpp/3,4,64/src/hx/NoFiles.cpp
 - src/__resources__.cpp
Error: clang: error: unable to execute command: Killed: 9
clang: error: clang frontend command failed due to signal (use -v to see invocation)
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Showing Recent Issues
clang: note: diagnostic msg: PLEASE submit a bug report to http://developer.apple.com/bugreporter/ and include the crash backtrace, preprocessed source, and associated run script.
clang: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /var/folders/zx/hj7thw9n7tn1nzypb1s3pc_40000gn/T/ProgramReflection_AllClasses_-4ed8b4.cpp
clang: note: diagnostic msg: /var/folders/zx/hj7thw9n7tn1nzypb1s3pc_40000gn/T/ProgramReflection_AllClasses_-4ed8b4.sh
clang: note: diagnostic msg: Crash backtrace is located in
clang: note: diagnostic msg: /Users/sergey/Library/Logs/DiagnosticReports/clang_<YYYY-MM-DD-HHMMSS>_<hostname>.crash
clang: note: diagnostic msg: (choose the .crash file that corresponds to your crash)
clang: note: diagnostic msg:
********************
make: *** [build-haxe-x86_64] Error 254
Command /Applications/Xcode.app/Contents/Developer/usr/bin/make failed with exit code 2

I try connect real device, and all working. This error for any default emulator in XCode.

Can you please attach the .crash file?

Confirmed fixed.


Extend Wannier90 interface

Read the positions from the .xyz file (see the PythTB Wannier90 interface).

TODO:

[ ] write wsvec parser as generator (needs to be "asynchronous" from hr due to different order)
[ ] add tests for current from_hr cases
[ ] add tests with wsvec_file
[ ] add tests with xyz_file

TODO: document new interface


fix exports

Thanks for the request, I was breaking my head trying to understand what was happening 👍


[Scaffold] Full Wallet History

objectives:
The main objective is to show the users the (un-styled) information available for them in their wallet history.
Although the underpinnings of the data layer on the SDK are not defined yet we can Identify certain events or transactions

Received ZEC (confirmed or pending)
Sent ZEC (confirmed or pending)
Transactions that failed to send (failed pending)
Autoshielding transactions
Shielded Pool migration transaction (from sapling to orchard)

User stories:

As
I would like to
So that

user
see most recent transactions without leaving my home screen
so that I can see latest activity in a glance

user
see my whole known history
so that I can inspect the past transactions involving my keys

user
see failed transactions
I can be aware transactions that failed to send

user
see shield by default transactions
I can keep track of how my wallet has been keeping my funds private

user
see pool migration transactions
I can keep track of how my wallet has been keeping in the latest shielded pool

user
see transactions containing a payment request in the memo as a "payment request"
so that I can quickly attempt to fulfill it if funds available

user
see transactions that have memos with zero-value as messages
I can be aware that there's probably an important memo in that tx

Things that remain undefined for now:

standardized logic to identify autoshielding transactions
standardized logic to identify pool migration transactions
"Wallet import" event
Whether the history will allow users to see filtered views of their history

Out of Scope:

definitions of such undefined items above. Please use placeholder functions or variables to mock the appearance until that logic is defined.
pagination support
detection of autoshielding or pool migration on real transactions.

Here are the layout rough drafts. I will create an interaction spec for the rows and detail flow next.

Wallet History (links updated in Google Doc)
https://docs.google.com/document/d/1S6qPFL4D48vRYIbXHOoGdiJvE_5xN11ufjSOk-MZiTo/edit
https://xd.adobe.com/view/5178a3e0-013d-4534-bb1a-20bc19cedcd7-042b/

@geffenz are we going to add filters to the transaction history?

We had removed filters for MVP, but I would consider it likely in the
future ( transparent, shielded, memo, receive, send ). If tje.level.of
effort is low I can create comps!
On Fri, Jun 17, 2022, 5:41 AM Francisco Gindre @.***>
wrote:

@geffenz https://github.com/geffenz are we going to add filters to the
transaction history?
—
Reply to this email directly, view it on GitHub
https://github.com/zcash/secant-ios-wallet/issues/98#issuecomment-1158832781,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALICSV3YHFI2QCIWQGHEWLTVPRW7JANCNFSM5G3Q46YQ
.
You are receiving this because you were mentioned.Message ID:
@.***>


mate.mate-utils: 1.20.0 -> 1.20.1

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
This update was made based on information from https://repology.org/metapackage/mate-utils/versions.
These checks were done:

built on NixOS
/nix/store/xx88yq519ih1if2vx7r8bdcx9qgi51sv-mate-utils-1.20.1/bin/mate-disk-usage-analyzer passed the binary check.
/nix/store/xx88yq519ih1if2vx7r8bdcx9qgi51sv-mate-utils-1.20.1/bin/mate-dictionary passed the binary check.
/nix/store/xx88yq519ih1if2vx7r8bdcx9qgi51sv-mate-utils-1.20.1/bin/mate-screenshot passed the binary check.
/nix/store/xx88yq519ih1if2vx7r8bdcx9qgi51sv-mate-utils-1.20.1/bin/.mate-panel-screenshot-wrapped passed the binary check.
/nix/store/xx88yq519ih1if2vx7r8bdcx9qgi51sv-mate-utils-1.20.1/bin/mate-panel-screenshot passed the binary check.
/nix/store/xx88yq519ih1if2vx7r8bdcx9qgi51sv-mate-utils-1.20.1/bin/mate-search-tool passed the binary check.
/nix/store/xx88yq519ih1if2vx7r8bdcx9qgi51sv-mate-utils-1.20.1/bin/mate-system-log passed the binary check.
/nix/store/xx88yq519ih1if2vx7r8bdcx9qgi51sv-mate-utils-1.20.1/bin/.mate-disk-usage-analyzer-wrapped passed the binary check.
/nix/store/xx88yq519ih1if2vx7r8bdcx9qgi51sv-mate-utils-1.20.1/bin/.mate-dictionary-wrapped passed the binary check.
/nix/store/xx88yq519ih1if2vx7r8bdcx9qgi51sv-mate-utils-1.20.1/bin/.mate-screenshot-wrapped passed the binary check.
/nix/store/xx88yq519ih1if2vx7r8bdcx9qgi51sv-mate-utils-1.20.1/bin/.mate-search-tool-wrapped passed the binary check.
/nix/store/xx88yq519ih1if2vx7r8bdcx9qgi51sv-mate-utils-1.20.1/bin/.mate-system-log-wrapped passed the binary check.
12 of 12 passed binary check by having a zero exit code.
0 of 12 passed binary check by having the new version present in output.
found 1.20.1 with grep in /nix/store/xx88yq519ih1if2vx7r8bdcx9qgi51sv-mate-utils-1.20.1
directory tree listing: https://gist.github.com/8cb9202f30b7105e2012297242f111b8
du listing: https://gist.github.com/17fa7b867be34487fd7b5dac2e2b6924

meta.description for mate.mate-utils is: '"Utilities for the MATE desktop"'.
cc @romildo for testing.
Experimental: this build is cached with Cachix. To use the cache follow these experimental instructions:
One time setup in nixpkgs Git checkout:
cachix use r-ryantm
git remote add r-ryantm https://github.com/r-ryantm/nixpkgs.git

Test this build:
git fetch r-ryantm && git checkout 28e97418ca70a98cab57ff2b7b208045c5ddc260 && nix-shell --pure -I nixpkgs=. -p mate.mate-utils

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: mate.mate-utils
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.

Success on x86_64-linux (full log)
Attempted: mate.mate-utils
Partial log (click to expand)
shrinking /nix/store/xx88yq519ih1if2vx7r8bdcx9qgi51sv-mate-utils-1.20.1/bin/.mate-screenshot-wrapped
shrinking /nix/store/xx88yq519ih1if2vx7r8bdcx9qgi51sv-mate-utils-1.20.1/bin/.mate-disk-usage-analyzer-wrapped
shrinking /nix/store/xx88yq519ih1if2vx7r8bdcx9qgi51sv-mate-utils-1.20.1/bin/.mate-system-log-wrapped
shrinking /nix/store/xx88yq519ih1if2vx7r8bdcx9qgi51sv-mate-utils-1.20.1/bin/.mate-dictionary-wrapped
shrinking /nix/store/xx88yq519ih1if2vx7r8bdcx9qgi51sv-mate-utils-1.20.1/lib/libmatedict.so.6.0.7
gzipping man pages under /nix/store/xx88yq519ih1if2vx7r8bdcx9qgi51sv-mate-utils-1.20.1/share/man/
strip is /nix/store/4qvrxzxa535y8304mk195x50b6p9607d-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/xx88yq519ih1if2vx7r8bdcx9qgi51sv-mate-utils-1.20.1/lib  /nix/store/xx88yq519ih1if2vx7r8bdcx9qgi51sv-mate-utils-1.20.1/libexec  /nix/store/xx88yq519ih1if2vx7r8bdcx9qgi51sv-mate-utils-1.20.1/bin
patching script interpreter paths in /nix/store/xx88yq519ih1if2vx7r8bdcx9qgi51sv-mate-utils-1.20.1
checking for references to /build in /nix/store/xx88yq519ih1if2vx7r8bdcx9qgi51sv-mate-utils-1.20.1...

Success on aarch64-linux (full log)
Attempted: mate.mate-utils
Partial log (click to expand)
shrinking /nix/store/pfj7cmmsi0dk1anhcl7z58rh8vhk3lm5-mate-utils-1.20.1/bin/.mate-dictionary-wrapped
shrinking /nix/store/pfj7cmmsi0dk1anhcl7z58rh8vhk3lm5-mate-utils-1.20.1/bin/.mate-screenshot-wrapped
shrinking /nix/store/pfj7cmmsi0dk1anhcl7z58rh8vhk3lm5-mate-utils-1.20.1/bin/.mate-search-tool-wrapped
shrinking /nix/store/pfj7cmmsi0dk1anhcl7z58rh8vhk3lm5-mate-utils-1.20.1/bin/.mate-system-log-wrapped
gzipping man pages under /nix/store/pfj7cmmsi0dk1anhcl7z58rh8vhk3lm5-mate-utils-1.20.1/share/man/
strip is /nix/store/0pjsgkxz0rp5baycq5sp2s72lrr5q9sg-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/pfj7cmmsi0dk1anhcl7z58rh8vhk3lm5-mate-utils-1.20.1/lib  /nix/store/pfj7cmmsi0dk1anhcl7z58rh8vhk3lm5-mate-utils-1.20.1/libexec  /nix/store/pfj7cmmsi0dk1anhcl7z58rh8vhk3lm5-mate-utils-1.20.1/bin
patching script interpreter paths in /nix/store/pfj7cmmsi0dk1anhcl7z58rh8vhk3lm5-mate-utils-1.20.1
checking for references to /build in /nix/store/pfj7cmmsi0dk1anhcl7z58rh8vhk3lm5-mate-utils-1.20.1...
/nix/store/pfj7cmmsi0dk1anhcl7z58rh8vhk3lm5-mate-utils-1.20.1


Keycloak Login results in Error: "Unable to exchange external code"

Bug report
Describe the bug
After setting up an instance of Keycloak and using current examples with their latest versions, logging in via. the thrid-party-service Keycloak on a local instance results in an error, which message is "Unable to exchange external code", found in the redirect URL.
To Reproduce

Follow the documentation on setting up Keycloak for Supabase, https://supabase.com/docs/guides/auth/auth-keycloak.
Initialize a new project with npx create-next-app --example "https://github.com/valerius21/auth-helpers/tree/main/examples/nextjs"

Enter the corresponding credentials in a .env.local file (NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_ANON_KEY)
Change pages/index.tsx:38 from providers={["google", "github"]} to providers={["google", "github", "keycloak"]}
Start the Dev Server with yarn dev
(This Step is also reproducible with the official supabase-js client)

The site at http://localhost:3000 should have three buttons, one of which has no icon inside.
Click the button and login on to the local Keycloak instance
Redirected back to the authentication form, no session is established and an error code in the URL is present.

http://localhost:3000/?error=server_error&error_description=Unable+to+exchange+external+code%3A+392cabd5-b422-446a-8497-e4f184453157.0887172c-5c95-44a4-944b-d975911a9563.46e8656a-f404-41c8-ab90-baa7ffb0d727

Expected behavior
A user session, similar to other OAuth2 providers, like Google, GitHub, etc., where querying DB content and one's user profile is possible.
Screenshots
https://user-images.githubusercontent.com/10323945/174766209-12eec916-b964-402a-b6ec-bf1da962c164.mp4
System information

OS: Ubuntu Linux
Browser: Chrome, Brave
Version of supabase-js: latest
Version of Node.js: 16.15.x

Previous attempts to resolve the issue

Checking the Keycloak credentials of whitespaces
Adding SSL did not resolve the issue
Inspecting the supabase instance logs of errors, but only, as intended, finding 302 requests.
Using the supabase client in other frameworks and in other contexts to attempt an authentication request.

Hello
I have the same problem using app.supabase.com
redirect url with failure "Unable to exchange external code"
http://localhost:3000/?error=server_error&error_description=Unable+to+exchange+external+code%3A+a95bcaef-bb46-4c04-9ec6-2a81877a68f0.be71884e-2598-4dea-9d0f-61766b30e403.dfae8b4b-e82d-466c-ac57-d112d9b92d7c

another unrelated strange thing is
when I use a self hosted supabase using this guide Self Hosting With Docker
I don't see the auth providers, its like a incomplete supabase, without many functions, like oauth2 auth providers
we can see it in bellow image

How can I use self hosted supabase with oauth2 providers to test it with keycloak, like @valerius21

@koakh When starting a local instance, add the following lines to your here docker-compose.yml
      GOTRUE_EXTERNAL_KEYCLOAK_ENABLED: "true"
      GOTRUE_EXTERNAL_KEYCLOAK_CLIENT_ID: "<client id>"
      GOTRUE_EXTERNAL_KEYCLOAK_SECRET: "<client secret>"
      GOTRUE_EXTERNAL_KEYCLOAK_REDIRECT_URI: "http://localhost:<PORT of your webapp>/"
      GOTRUE_EXTERNAL_KEYCLOAK_URL: "http://<keycloak instance>/auth/realms/<realm>"

I will try it later (asap) and update my reply with feedback, maybe will be useful for others
thanks @valerius21

@koakh, thank you very much for your write-up! I'll try to replicate everything once I find time to do it. IMO the documentation needs some updating before someone gets into the rabbit hole of trying to find out how it works.

Thank you @koakh for the write up. I'll try to summarize it for others.
When running both Keycloak and GoTrue locally, you need to make sure that both of them can actually talk to each other over the operating system's network layer. There is no one way to fix the problem, depending on how you have set up the Keycloak or GoTrue instance to run.
Note that typically things running within a docker container can't talk to things running outside of it, especially on localhost. I believe this to be the cause of the errors with the form of:
Post \"http://localhost:8080/auth/realms/SupaBase/protocol/openid-connect/token\": dial tcp <IP_ADDRESS>:8080: connect: connection refused

It may be just easier to host Keycloak on a public web server with a correct URL to avoid dealing with complex docker networking issues especially if you don't have sufficient knowledge or experience in dealing with them.

@koakh Hey, I'm having the same issue with auth not being able to reach keycloak because it is running in another container.
How did you solve this issue in the end then? When I set GOTRUE_EXTERNAL_KEYCLOAK_URL: http://keycloak:8085/realms/app the redirect to keycloak in the browser just gets broken.

Hello @olee
Sorry for late answear,
Currently I'm not at home, and I don't remember the solution from my memory right now
Let me see it in my project, and I update here asap
but I think you need to use a public domain in GOTRUE_EXTERNAL_KEYCLOAK_URL like http://mydomain.com:8085/realms/app, this is because auth flow in browser must reach it, but I can be wrong, because I do it more than a year now,
and like I said I don't remeber (be sure)
try and if i'm wrong I will check it in my project

I already found a quite simlar solution based on what you had and added it to my comment above.
For me it was slightly different, because I was executing the whole thing on windows.
Thanks anyways and also for all the investigation you did above which helped me find the solution 👍


Add planetary option for kubernetes masters and workers

https://registry.terraform.io/providers/threefoldtech/grid/latest/docs/resources/kubernetes#nested-schema-for-master
https://registry.terraform.io/providers/threefoldtech/grid/latest/docs/resources/kubernetes#nested-schema-for-workers

implemented in https://github.com/threefoldtech/terraform-provider-grid/pull/134


Remove console logs for cleaner production log output

/cc @PeterDaveHello Does this break any of your scripts or am I fine to merge?

Fine.


clippy::single_match_else pedantic check

Summary of changes

Changes introduced in this pull request:
Needed for readability. match statements idiomatically should be used when there are at least 3 options for an enum. In case there clauses are long it's not obvious how many branches the code has.
Reference issue to close (if applicable)

Closes
Other information and links

Change checklist

[ ] I have performed a self-review of my own code,
[ ] I have made corresponding changes to the documentation,
[ ] I have added tests that prove my fix is effective or that my feature works (if possible),
[ ] I have made sure the CHANGELOG is up-to-date. All user-facing changes should be reflected in this document.

You need strong arguments for why single_match_else should be enabled. Add them to the PR description.

Personally, I don't find this more readable, but if others prefer it this way, I'm okay with the change.

Your arguments:

Needed for readability.
match statements idiomatically should be used when there are at least 3 options for an enum.
In case there clauses are long it's not obvious how many branches the code has.

Counter-arguments:

I think matches are more readable than if statements.
I think this is just categorically incorrect. Matching on boolean values is better done with if but the same isn't true for other values with two options.
The indentation makes it obvious, no? In any case, I don't think chains of if-else are more obvious.

Your arguments:

Needed for readability.
match statements idiomatically should be used when there are at least 3 options for an enum.
In case there clauses are long it's not obvious how many branches the code has.

Counter-arguments:

I think matches are more readable than if statements.
I think this is just categorically incorrect. Matching on boolean values is better done with if but the same isn't true for other values with two options.
The indentation makes it obvious, no? In any case, I don't think chains of if-else are more obvious.

My argument is not readability in general, but readability in case of Options and Results which is what is fixed in the PR. I'm not sure I understand your second argument fully. I am not a proponent of if-else chains.

Whether if is better than match for Options is controversial and I don't feel your arguments are overwhelmingly persuasive. As such, I'm closing this PR.
The extra clippy hints listed in the parent issue are all disabled by default because they aren't appropriate in all projects. The work is not in updating our code-base, the work is in figuring out which hints are appropriate for Forest. If you don't strongly feel a lint is appropriate (and can argue for your convictions) then the lint should not be enabled.

Your arguments:

Needed for readability.
match statements idiomatically should be used when there are at least 3 options for an enum.
In case there clauses are long it's not obvious how many branches the code has.

Counter-arguments:

I think matches are more readable than if statements.
I think this is just categorically incorrect. Matching on boolean values is better done with if but the same isn't true for other values with two options.
The indentation makes it obvious, no? In any case, I don't think chains of if-else are more obvious.

My argument is not readability in general, but readability in case of Options and Results which is what is fixed in the PR. I'm not sure I understand your second argument fully. I am not a proponent of if-else chains.

Whether if is better than match for Options is controversial and I don't feel your arguments are overwhelmingly persuasive. As such, I'm closing this PR.
The extra clippy hints listed in the parent issue are all disabled by default because they aren't appropriate in all projects. The work is not in updating our code-base, the work is in figuring out which hints are appropriate for Forest. If you don't strongly feel a lint is appropriate (and can argue for your convictions) then the lint should not be enabled.

My argument was not that if is better than match in general, but only in specific circumstances this lint works.
I indeed strongly feel this lint is not only appropriate, but should be mandatory for all Rust projects.

Your arguments:

Needed for readability.
match statements idiomatically should be used when there are at least 3 options for an enum.
In case there clauses are long it's not obvious how many branches the code has.

Counter-arguments:

I think matches are more readable than if statements.
I think this is just categorically incorrect. Matching on boolean values is better done with if but the same isn't true for other values with two options.
The indentation makes it obvious, no? In any case, I don't think chains of if-else are more obvious.

My argument is not readability in general, but readability in case of Options and Results which is what is fixed in the PR. I'm not sure I understand your second argument fully. I am not a proponent of if-else chains.

Whether if is better than match for Options is controversial and I don't feel your arguments are overwhelmingly persuasive. As such, I'm closing this PR.
The extra clippy hints listed in the parent issue are all disabled by default because they aren't appropriate in all projects. The work is not in updating our code-base, the work is in figuring out which hints are appropriate for Forest. If you don't strongly feel a lint is appropriate (and can argue for your convictions) then the lint should not be enabled.

My argument was not that if is better than match in general, but only in specific circumstances this lint works.
I indeed strongly feel this lint is not only appropriate, but should be mandatory for all Rust projects.

Your objection is noted but my decision stands.


I am an Admin but I cannot modify the vault item

Hi All,
I created a chef-vault item awhile back.  It is called encrypted_data and has an item called userpasswords.  That item has a list of usernames/passwords used for configuring Windows services.
My Chef user is in the admins list - I verified that by looking at the admins value in the userpasswords_keys item.  However, I do not have a separate entry in the userpasswords_keys for my client (machine).
So - my user is an admin but my node/workstation doesn't have a key.  How can I encrypt the databag so that I can edit and use it from my workstation?  I feel like as an admin, I should be able to edit it with my user.
When I run the following command:
knife vault edit encrypted_data userpasswords
I get the following error:
ERROR: ChefVault::Exceptions::SecretDecryption: encrypted_data/userpasswords is not encrypted with your public key.  Contact an administrator of the vault item to encrypt for you!

When you use knife to access a vault, you are using your personal username and key (~/.chef/$USER.pem typically), referenced from the 'node_name' and 'client_key' parameters in knife.rb:
user_name = ENV['USER'] || ENV['USERNAME']
node_name                user_name
client_key               "#{ENV['HOME']}/.chef/#{user_name}.pem"
knife[:vault_mode] = 'client'
knife[:vault_admins] = %w(foo bar baz)

When you use the ChefVault ruby classes to access a vault in a recipe, you are using your workstation's key (/etc/chef/client.pem typically), referenced from 'client_key' in client.rb.
On most of my boxes, 'node_name' and 'client_key' aren't even set in client.rb because they are defaulted.
So the vault doesn't need to be encrypted for your management workstation, only for your personal username and the nodes who want to access it (via a SOLR query string).
If you're getting the 'is not encrypted for you' error, then you're probably telling knife (perhaps inadvertently) to use your workstation key, not your personal key.

Thanks for the fast response!
Is there an easy way to tell knife to use my personal key rather than my workstation key when accessing a vault?

That snippet I pasted contains the relevant lines from my ~/.chef/knife.rb file to make it do just that.
knife reads config from knife.rb, whereas chef-client reads config from client.rb.  I think knife might fall back to client.rb if knife.rb is not found, but generally you don't want that.
I have ~/.chef/knife.rb set up with the above snippet (plus many more things - go read the knife.rb docs for everything you can put in there).  I also have my personal key in ~/.chef/james.pem (assuming that my username on the box is 'james').
You can hardcode the paths if you prefer - we distribute a common knife.rb to our internal users which uses environment variables to do the right thing for all users.

Did this resolve your issue?  Can I close this, or do you have further questions?

You can close this.  I never fully resolved it, but I am quite certain that
I caused a problem for myself by deleting my key out of the _keys item.  I
was able to straighten myself out by having another admin regenerate a key
for my client.
On Thu, Feb 26, 2015 at 11:52 AM, James FitzGibbon<EMAIL_ADDRESS>
wrote:

Did this resolve your issue? Can I close this, or do you have further
questions?
—
Reply to this email directly or view it on GitHub
https://github.com/Nordstrom/chef-vault/issues/138#issuecomment-76215813
.


Split programming model out of worker

The goal is essentially to split our code into two repos, while maintaining existing behavior:

azure-functions-nodejs-library: This is a new repo I created based on offline discussion about the name. It will have the same git history as the worker repo up until this point, but will diverge moving forward. It will ship the @azure/functions npm package, which will include the entire programming model moving forward (not just the types, although it'll still have that). See PR here: https://github.com/Azure/azure-functions-nodejs-library/pull/1
azure-functions-nodejs-worker: Our existing repo. NOTE: I won't be able to merge this PR until the new npm package exists.

Most important files to review:

types-core/index.d.ts: This defines the API between the two pieces
src/eventHandlers/InvocationHandler.ts: This is the main file that uses the new api

Fixes https://github.com/Azure/azure-functions-nodejs-worker/issues/568

This work is an important stepping stone on the way to the new indexing stuff. At its core, it is purely engineering work with no functional difference to the user. Perhaps that's why the "goal" isn't clear, but I did it that way because I think that makes it a lot easier to review. I try to separate "engineering PRs that affect a lot of files" from "feature PRs". The indexing stuff is tracked by https://github.com/Azure/azure-functions-nodejs-worker/issues/569 and it will be a separate PR - that PR will be a lot smaller (comparatively 😅), but it will also be a lot more complex because it's introducing new features.
Please read through https://github.com/Azure/azure-functions-nodejs-worker/issues/568 if you haven't already. I think it answers a lot of your questions. I think the biggest piece you're missing is the type of code we want in each place. We want simple code with no chance of bugs in the worker because it takes so long to ship. We want more complex code (meaning more helpful code, but also code with a higher chance of bugs) in the npm package. Also keep in mind that people can build off of our programming model npm package. So even though I'm moving FunctionInfo (and other classes) into the npm package, people can still share that code and build off of it. In other words, a "new" programming model doesn't have to start from scratch - it can just wrap the one we provide in the npm package.

Sent a meeting invite to discuss offline - I think that'll be easiest


templateeditor translations

Related issues: https://github.com/stolostron/backlog/issues/23473
Signed-off-by<EMAIL_ADDRESS><EMAIL_ADDRESS>

/hold

/lgtm

/unhold


[Suggestion] Add shortcut key

Hi there, I want to suggest some feature to be added to JofreHUD.
While most huds supporting the shortcut key feature (e.g. Pressing E on class select will open the loadout menu), but this hud doesn't support it.
This is my favorite TF2 hud and I would like this feature to be added!
Class Select Screen
E - Open loadout
R - Random class
1~9 - Select class key (Scout, Soldier, Pyro, Demoman, Heavy, Engineer, Medic, Sniper, Spy)
Items Screen
Q/E - Switch inventory page (Left/Right)

Done. I didnt expect people using this HUD as their main HUD, but glad you like it! :)


Update default.rb (Closes #120)

Upgrades acme-client version to 2.0.6 which supports faraday 1.0.0 which is required by chef.
Closes #120.

Thanks!


Update snapshot msg

add a flag to SnapshotResp to identify whether succeed or not.

Codecov Report

Merging #107 into develop will increase coverage by 0.15%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           develop    #107      +/-   ##
==========================================
+ Coverage    35.45%   35.6%   +0.15%
==========================================
  Files          150     150
  Lines        25921   25914       -7
==========================================
+ Hits          9189    9226      +37
+ Misses       16732   16688      -44

Impacted Files
Coverage Δ

libproto/src/protos/snapshot.rs
0% <0%> (ø)
:arrow_up:

rlp/src/stream.rs
38.07% <0%> (+1.7%)
:arrow_up:

rlp_derive/src/de.rs
31.38% <0%> (+2.62%)
:arrow_up:

Continue to review full report at Codecov.

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


create storage migration adr

What this PR does / why we need it:
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:

Steps to reproduce

Does this PR introduce a user-facing change?

Does this PR require documentation?

@laverya You're also going to have to update the status to Accepted


Split user serializers (fix #294)

This adds a new option current_user to settings.SERIALIZERS that allows different information to be returned from 'me' endpoints.
Currently a work in progress. See #294.

@dekoza I have a backwards compatibility dilemma here. It appears that settings.SERIALIZERS.current_user should be defaulted to 'djoser.serializers.CurrentUserSerializer' like every other serializer setting. However, this will break backwards compatibility with users that have specified a custom settings.SERIALIZERS.user (they will suddenly start to receive different results from current user endpoints).
I have left the legacy /me untouched. It will still use settings.SERIALIZERS.user.

OK, we need a deprecation route here. For now, settings.SERIALIZERS.current_user should point to a proxy class that:

raises DeprecationWarning and points to documentation where the separation and rationale behind it should be described.
routes all calls to the same class that is set in settings.SERIALIZERS.user

This way we will have a way to inform about the separation of serializers without breaking compatibility with custom settings. Can you do this or should I take over?

@dekoza I have addressed your comments!

Awesome work! Thank you


Process replace commands in parallel

This adds some level of parallelization to the replacer commands for
github actions and containers. Hopefully increasing the processing speed.

this is already an improvement, what's missing to make the PR non-WIP?
I can see as an additional step we might want to use a syncMap to store what has been resolved (many workflows will probably use e.g. actions/checkout), but this will already speed things up.

@jhrozek mostly that I didn't get a chance to test it. If you did test it already I'd be OK with removing the WIP tag.

On 5 Dec 2023, at 10:08, Juan Antonio Osorio @.***> wrote:
@jhrozek https://github.com/jhrozek mostly that I didn't get a chance to test it. If you did test it already I'd be OK with removing the WIP tag.

Will try to test this afternoon when I’m done travelling!

I tested this and it seems to work fine.

this is already an improvement, what's missing to make the PR non-WIP? I can see as an additional step we might want to use a syncMap to store what has been resolved (many workflows will probably use e.g. actions/checkout), but this will already speed things up.

I can do this in a subsequent PR.


swagger-jaxrs with Java8 LocalDateTime gives complex date/datetime fields

We use swagger-jaxrs dependency :
 <dependency>
			<groupId>io.swagger</groupId>
			<artifactId>swagger-jaxrs</artifactId>
			<version>1.5.0</version>
		</dependency>

And one of the variables with Java8 LocalDateTime datatype
private LocalDateTime created;
The Swagger shows a complex date/datetime field as follows:
"created": {
    "monthValue": 1,
    "dayOfYear": 2,
    "dayOfWeek": "MONDAY",
    "dayOfMonth": 2,
    "hour": 12,
    "minute": 12,
    "second": 34,
    "year": 2017,
    "month": "JANUARY",
    "nano": 0,
    "chronology": {
      "calendarType": "string",
      "id": "string"
    }
  }

I want these temporal data types to be serialized to string in a simple format like "2017-02-02T12:12:34"
@ApiModelProperty(dataType = "java.lang.String", example = "") is not working for me. And I am not sure how to use Docket#directModelSubstitute(LocalDateTime.class, String.class) in Swagger JAX-RS
Please help me how to change this representation in Swagger JAX-RS.

You're using a very old version. Try using the latest 1.5.x.

Thanks a lot @webron
It worked with the latest version.


BUG: Clicking back button in browser left justifies the main feed content

Steps to Reproduce

Open Planetary.link
Navigate to a single message page
Click the back button in the browser
Issue - the entire page content is left justified.

Unable to reproduce


Range Error (Offset) when building release with latest Beta version

Steps to reproduce

I run flutter run and see that my app runs fine on debug mode
I run flutter build apk, or try to run in release mode, and see the following error:
RangeError (offset): Invalid value: Not in inclusive range 0..2374: 2496
I look up a solution, find this issue, and changed my channel to the beta channel with flutter channel beta.
I ran flutter clean, flutter upgrade, tried again, and still the same issue

Expected results
I expect to be able to generate the app bundle for uploading to google play.
Actual results
I get the error RangeError (offset): Invalid value: Not in inclusive range 0..2374: 2496 when trying to build my app in release mode with any command.
Logs
Logs
RangeError (offset): Invalid value: Not in inclusive range 0..2374: 2496
#0      RangeError.checkValueInInterval (dart:core/errors.dart:313)
#1      Source.getLocation (package:kernel/ast.dart:14992)
#2      Component.getLocation (package:kernel/ast.dart:14787)
#3      _getLocationInComponent (package:kernel/ast.dart:15181)
#4      Procedure._getLocationInEnclosingFile (package:kernel/ast.dart:3329)
#5      TreeNode._getLocationInEnclosingFile (package:kernel/ast.dart:207)
#6      TreeNode._getLocationInEnclosingFile (package:kernel/ast.dart:207)
#7      TreeNode._getLocationInEnclosingFile (package:kernel/ast.dart:207)
#8      TreeNode._getLocationInEnclosingFile (package:kernel/ast.dart:207)
#9      TreeNode._getLocationInEnclosingFile (package:kernel/ast.dart:207)
#10     TreeNode.location (package:kernel/ast.dart:203)
#11     localFunctionName (package:vm/transformations/type_flow/utils.dart:449)
#12     SummaryCollector.createSummary (package:vm/transformations/type_flow/summary_collector.dart:630)
#13     TypeFlowAnalysis.getSummary (package:vm/transformations/type_flow/analysis.dart:1782)
#14     _DirectInvocation._processFunction (package:vm/transformations/type_flow/analysis.dart:398)
#15     _DirectInvocation.process (package:vm/transformations/type_flow/analysis.dart:287)
#16     _WorkList.processInvocation (package:vm/transformations/type_flow/analysis.dart:1663)
#17     _WorkList.process (package:vm/transformations/type_flow/analysis.dart:1606)
#18     TypeFlowAnalysis.process (package:vm/transformations/type_flow/analysis.dart:1811)
#19     transformComponent (package:vm/transformations/type_flow/transformer.dart:121)
#20     runGlobalTransformations (package:vm/kernel_front_end.dart:589)
#21     compileToKernel (package:vm/kernel_front_end.dart:489)
<asynchronous suspension>
#22     FrontendCompiler.compile (package:frontend_server/frontend_server.dart:639)
<asynchronous suspension>
#23     starter (package:frontend_server/starter.dart:101)
<asynchronous suspension>
#24     main (file:///C:/b/s/w/ir/x/w/sdk/pkg/frontend_server/bin/frontend_server_starter.dart:13)
<asynchronous suspension>

Flutter Doctor output
Doctor output
[√] Flutter (Channel beta, 3.22.0-0.3.pre, on Microsoft Windows [Versi¢n 10.0.19045.4291], locale es-CO)
    • Flutter version 3.22.0-0.3.pre on channel beta at C:\src\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 87b652410d (3 weeks ago), 2024-04-23 21:41:18 -0500
    • Engine revision b4bfd45986
    • Dart version 3.4.0 (build 3.4.0-282.3.beta)
    • DevTools version 2.34.3

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at C:\Users\Alejandro\AppData\Local\Android\sdk
    • Platform android-34-ext8, build-tools 34.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.9.4)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.9.34714.143
    • Windows 10 SDK version 10.0.22000.0

[√] Android Studio (version 2022.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)

[√] VS Code (version 1.89.1)
    • VS Code at C:\Users\Alejandro\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.88.0

[√] Connected device (4 available)
    • SM A226BR (mobile) • R9WW201HDLA • android-arm64  • Android 13 (API 33)
    • Windows (desktop)  • windows     • windows-x64    • Microsoft Windows [Versi¢n 10.0.19045.4291]
    • Chrome (web)       • chrome      • web-javascript • Google Chrome 124.0.6367.202
    • Edge (web)         • edge        • web-javascript • Microsoft Edge 124.0.2478.105

[√] Network resources
    • All expected network resources are available.

• No issues found!

I solved the issue by switching to the master channel, not the beta. Version 3.22.0-36.0.pre.48


Document that pub/subs are deprecated

Summary

We are deprecating pub/subs in The Things Stack Cloud and Enterprise.
Raised priority because this needs to be done asap.
Why do we need this ?

We should inform users that they should not use pub/sub for new use cases.
What is already there? What do you see now?

Documentation on configuring pub/sub for an external MQTT server and NATS broker.
What is missing? What do you want to see?

Deprecation warning that MQTT and NATS pub/sub this will be disabled on The Things Stack Cloud from January 5th 2021, and that people should use webhooks instead.
How do you propose to document this?

Add a short code, because we probably want to deprecate things in the future. This would be for a distribution and a date. Probably as big as the CLI only short code.
Can you do this yourself and submit a Pull Request?

Can review

@nejraselimovic this one should be pretty easy, wanna pick it up?

@nejraselimovic this one should be pretty easy, wanna pick it up?

Sure, I'll pick it up right now


feat(cli) add --force flag to bootstrap command

also removes the prompt for a reset, if there is nothing to reset.
fixes #5605
replaces #5606

@Tieske looks good to merge, but please rebase this to next since it is a new feature!

@hishamhm updated.


Some security findings

Hi Team,
Don’t you just hate it when someone includes your open source project, only to run some scanning tools and come back with issues?  Yea we do too.
So we’ve been running lots of security scans on open source projects, including yours, through some automation we built.  Don’t worry, it took less than a few minutes to run the scans and auto-generate the report.
Wasn’t sure how to send it to you, so we’ve stuck them up at  https://source-security.co.uk/82da7c1c-70e1-48b6-a967-1fbc2184dabc/
Thanks,
Chris

This is spam.


env: how to pass a own defined environment

how can I define my own environment and use the baseline algorithms, can I get some hint?

I've written instruction in Chinese on Medium for customizing your own environment and apply baselines on it, maybe you can refer to the code part.
https://tinyurl.com/yy8z69kj

You can have a look at the wiki page of this repository:
https://github.com/openai/gym/wiki/Environments
This post goes through a step by step process of creating an environment in gym:
https://medium.com/@apoddar573/making-your-own-custom-environment-in-gym-c3b65ff8cdaa

It's a good tutorial.

This post goes through a step by step process of creating an environment in gym:
https://medium.com/@apoddar573/making-your-own-custom-environment-in-gym-c3b65ff8cdaa

However, be careful baselines does not support observation spaces that are dictionary.
Also I had to implement a  __call__ method in my environment.
Because if you want to vecotirize it (for the PPO algo for example)  when creating the environement vector it calls the object.
Example : here
self.envs = [fn() for fn in env_fns]


Switch from glTF-Sample-Models to the newer glTF-Sample-Assets

Per a previous discussion here, I have switched from the obsolete glTF-Sample-Models git repository for the various models used in the fidelity test to the newer glTF-Sample-Assets repository.  I have also switched from a custom git checkout script to just using git submodules.
I had to remove a few tests from config.json unfortunately as they were relying on models that are not available in glTF-Sample-Assets because of licensing issues.

Render Fidelity tests were initially failing because of submodule support issues.  But I got those fixed.
Now they are failing because of this difference in the Khronos-TextureTransformMulti-Test - specifically the normal rows look different:

I am investigating it now.

It looks like this change to the underlying asset makes the different renders appear to render more similar results.  Thus I suggest we update the goldens for model-viewer & filament and go with this.
This is based on this analysis - that Babylon and gltf-model-viewer do not change their results, but the end results for everyone is much closer.  I suspect that the way the normals were done before were exposing a bug in model-viewer and filament that was not handled but now that the asset is a bit more standard, that bug is no longer exposed.
BabylonJS's results on this test do not differ:

And filament results differ like model-viewer/three.js:

But gltf-model-viewer does not differ:

I agree with your analysis and suggestion - this is a pretty common type of update we need to do as sample bugs get fixed.


make error on RaspberryPi 4

I am using raspberry pi 4 , os is raspberry os ,aarch64 .
When I run make -2 gemma, I got a mistake. The whole logs are as follows, so long so I create a file and storge the log into it, you can download the log file from the url.
https://cdn.studyinglover.com/pic/2024/02/abf1e1cfb9c7625a8ab7764ad4baaa74.log

Thanks for letting us know. We made a mistake (missing some hn:: prefixes), it still worked on x86 due to argument-dependent lookup but not on SVE, as you have found. Fix is on the way.

I build gemma again, but meet a mistake again
In file included from /home/pi/gemma/gemma.cpp/run.cc:28:
/home/pi/gemma/gemma.cpp/gemma.h:36:10: fatal error: sentencepiece_processor.h: No such file or directory
   36 | #include "sentencepiece_processor.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [CMakeFiles/gemma.dir/build.make:76: CMakeFiles/gemma.dir/run.cc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from /home/pi/gemma/gemma.cpp/./gemma.cc:59,
                 from /home/pi/gemma/gemma.cpp/build/_deps/highway-src/hwy/foreach_target.h:163,
                 from /home/pi/gemma/gemma.cpp/gemma.cc:22:
/home/pi/gemma/gemma.cpp/./gemma.h:36:10: fatal error: sentencepiece_processor.h: No such file or directory
   36 | #include "sentencepiece_processor.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [CMakeFiles/gemma.dir/build.make:90: CMakeFiles/gemma.dir/gemma.cc.o] Error 1
make[2]: *** [CMakeFiles/Makefile2:377: CMakeFiles/gemma.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:384: CMakeFiles/gemma.dir/rule] Error 2
make: *** [Makefile:189: gemma] Error 2

I'm curious why the #include "src/sentencepiece_processor.h" from the main branch is being changed to #include "sentencepiece_processor.h".

I build gemma(from dev branch) again, but meet a mistake again
In file included from /home/pi/gemma/gemma.cpp/run.cc:28:
/home/pi/gemma/gemma.cpp/gemma.h:36:10: fatal error: sentencepiece_processor.h: No such file or directory
   36 | #include "sentencepiece_processor.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [CMakeFiles/gemma.dir/build.make:76: CMakeFiles/gemma.dir/run.cc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from /home/pi/gemma/gemma.cpp/./gemma.cc:59,
                 from /home/pi/gemma/gemma.cpp/build/_deps/highway-src/hwy/foreach_target.h:163,
                 from /home/pi/gemma/gemma.cpp/gemma.cc:22:
/home/pi/gemma/gemma.cpp/./gemma.h:36:10: fatal error: sentencepiece_processor.h: No such file or directory
   36 | #include "sentencepiece_processor.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [CMakeFiles/gemma.dir/build.make:90: CMakeFiles/gemma.dir/gemma.cc.o] Error 1
make[2]: *** [CMakeFiles/Makefile2:377: CMakeFiles/gemma.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:384: CMakeFiles/gemma.dir/rule] Error 2
make: *** [Makefile:189: gemma] Error 2

Thanks for reporting, fixing this now.


Write text using textures/patterns

It would be nice to write text using a texture/pattern. Atm I've my own solution using GD and with some limitations (image sizes e.g.). This isn't the cleanest code and not usable with all combinations of image types, sizes and so on and also just for GD. That's why I don't create a PR - could be that I have time in future to make it clean and transfer it to Imagick.
The idea/logic is that I create a mask from the text, apply this mask to the texture image (to support patterns the texture should be repeated until size is ok) and add the masked texture to the background image.
For use with this library I think that it would be cool to have a signature like:
$pattern = 'public/pattern.jpg'; // everything supported by Image::make()
// or $pattern as object
$patern = Image::make('public/pattern.jpg');
$img = Image::make('public/foo.jpg');
$img->patternedText('foo', 0, 0, $pattern, function($font) {
    $font->file('foo/bar.ttf');
    $font->size(24);
    $font->align('center');
    $font->valign('top');
    $font->angle(45);
});

my code atm:
function imagettftexttexture($backgroundIm, $textureIm, $size, $angle, $x, $y, $fontfile, $text)
{
    $im_w = imagesx($backgroundIm);
    $im_h = imagesy($backgroundIm);

    $bounds = imagettfbbox($size, $angle, $fontfile, $text);
    $x = $bounds[0] + $x - ($bounds[4] / 2);
    $y = $bounds[1] + $y - ($bounds[5] / 2);

    $maskIm = imagecreatetruecolor($im_w, $im_h);
    $pink = imagecolorallocate($maskIm, 255, 0, 255);
    $black = imagecolorallocate($maskIm, 0, 0, 0);
    imagefill($maskIm, 0, 0, $black);
    imagecolortransparent($maskIm, $black);
    imagettftext($maskIm, $size, $angle, $x, $y, $pink, $fontfile, $text);

    $textIm = imagealphamask($textureIm, $maskIm);

    $buffer = imagecreatetruecolor($im_w, $im_h);
    imagecopy($buffer, $backgroundIm, 0, 0, 0, 0, $im_w, $im_h);
    imagecopy($buffer, $textIm, 0, 0, 0, 0, $im_w, $im_h);
    return $buffer;
}

function imagealphamask($picture, $mask)
{
    $xSize = imagesx($picture);
    $ySize = imagesy($picture);
    $newPicture = imagecreatetruecolor($xSize, $ySize);
    imagesavealpha($newPicture, true);
    imagefill($newPicture, 0, 0, imagecolorallocatealpha($newPicture, 0, 0, 0, 127));

    if ($xSize != imagesx($mask) || $ySize != imagesy($mask)) {
        $tempPic = imagecreatetruecolor($xSize, $ySize);
        imagecopyresampled($tempPic, $mask, 0, 0, 0, 0, $xSize, $ySize, imagesx($mask), imagesy($mask));
        imagedestroy($mask);
        $mask = $tempPic;
    }

    for ($x = 0; $x < $xSize; $x++) {
        for ($y = 0; $y < $ySize; $y++) {
            $alpha = imagecolorsforindex($mask, imagecolorat($mask, $x, $y));

            if (($alpha['red'] == 0) && ($alpha['green'] == 0) && ($alpha['blue'] == 0) && ($alpha['alpha'] == 0)) {
                imagesetpixel($newPicture, $x, $y, imagecolorallocatealpha($newPicture, 0, 0, 0, 127));
            } else {
                $alphaSource = imagecolorsforindex($picture, imagecolorat($picture, $x, $y));

                if (($alphaSource['alpha'] == 127)) {
                    imagesetpixel($newPicture, $x, $y, imagecolorallocatealpha($newPicture, 0, 0, 0, 127));
                } else {
                    $color = imagecolorsforindex($picture, imagecolorat($picture, $x, $y));
                    imagesetpixel($newPicture, $x, $y, imagecolorallocatealpha($newPicture, $color['red'], $color['green'], $color['blue'], $color['alpha']));
                }

            }
        }
    }
    return $newPicture;
}

$background = imagecreatefromstring(file_get_contents('http://eskipaper.com/images/black-2.jpg'));
$texture = imagecreatefromstring(file_get_contents('http://hddesktopwallpapers.in/wp-content/uploads/2015/07/brick-wallpaper-photography.jpg'));
$image = imagettftexttexture($background, $texture, 128, 0, 1920 / 2, 1080 / 2, realpath('./fonts/OpenSans-Regular.ttf'), 'Hello World');

header('Content-Type: image/jpeg');
imagejpeg($image);
imagedestroy($background);
imagedestroy($texture);
imagedestroy($image);

Thank you for your examples. However, I think that the use case is rather special and does not fit into the library as a basic function.


Explanation of Sampling Param semantics in documentation

🚀 Describe the new functionality needed
Sampling params semantics

strategy: greedy | top_k | top_p
temperature: Optional[float] = 0.0
top_p: Optional[float] = 0.95
top_k: Optional[int] = 0

How does strategy relate to temperature / top_p / top_k?
What are the semantics when a user provides combinations of temperature / top_p / top_k?
💡 Why is this needed? What if we don't build it?
Users need to understand the impact of the SamplingParams on their inference requests.
Other thoughts
No response

+1 - useful for us contributors as well so we know how the apis should be behaving. E.g., when adding a new provider


can not input Chinese as comment

Version and Platform (required):

Binary Ninja Version: 4.1.4942-dev Personal (47aa2363)
OS: manjaro
OS Version: Linux version 6.6.19-1-MANJARO (builduser@fv-az1021-257) (gcc (GCC) 13.2.1 20230801, GNU ld (GNU Binutils) 2.42.0) #1 SMP PREEMPT_DYNAMIC Fri Mar  1 18:16:16 UTC 2024
CPU Architecture: x64

Bug Description:
can not input chinese as comment after decompiled
Screenshots:
https://github.com/Vector35/binaryninja-api/assets/5463104/5a505f85-8b14-4a32-b62a-efd786117bc3

I can reproduce this. I tested with Fcitx5.
However, this seems NOT a problem of us. I compiled a helloworld with the Qt 6.2.4 that comes with Ubuntu 22.04, and it suffers from the same issue.

Just for context if someone wishes to setup a Chinese IME on Ubuntu, I recommend following this guide: https://askubuntu.com/a/1451355. The other one in the same link did not work for me

Also this is NOT a new behavior, I tested with stable 3.3 and observed the same

I compiled a helloworld Qt on Ubuntu 22.04, and if I compile it with Qt6, then it is broken; if I compile with Qt5 then it works. Both Qt 5 and 6 are the one from apt. So something related to IME changed in Qt6, which is causing the issue

I think this issue still exists even if it's due to an upstream bug and I'd rather leave it open until we identify the exact issue or report a new one to QT and link to it from here.

really appretiate that u make it open again!
Thanks !!

I think this issue still exists even if it's due to an upstream bug and I'd rather leave it open until we identify the exact issue or report a new one to QT and link to it from here.
really appretiate that u make it open again!
Thanks !!

Did you accidentally close it then or did you think we wanted it closed?
You don't need to close an issue yourself unless you consider it totally solved. We only close an issue once it's resolved or if we have decided fully to not support the request.
I believe this isn't the first time you've closed an issue that maybe wasn't resolved.

Did you accidentally close it then or did you think we wanted it closed?
You don't need to close an issue yourself unless you consider it totally solved. We only close an issue once it's resolved or if we have decided fully to not support the request.
I believe this isn't the first time you've closed an issue that maybe wasn't resolved.

sorry , many times that after reported some issues to other repositorys, they are not willing to solve them, and just keep the issues there.
Feeling the guilty of giving too much work to these authors, i just close the issues then they did not not need to sovle them.
I am really happy that u are willing to solve these issues. I will try my best to update here when meeting new issues.
Thanks!!


iOS Sending rn-recordback with no listeners registered. stop record not working

Please use the

react-native-audio-recorder-player @3.0.0 release
android work fine ,iOS bad work ,(device : my iphone, record permission fine )
when Start record rn-recordback with no listeners registered Warnings per second ，then Stop record ,Error: Faled to stop recorder
[Mon May 10 2021 16:38:00.330]  LOG      file:///var/mobile/Containers/Data/Application/401C1F9B-8F21-4A52-9D45-BA3E2D/Library/Caches/sound.m4a ===================start
[Mon May 10 2021 16:38:00.912]  WARN     Sending rn-recordback with no listeners registered.
[Mon May 10 2021 16:38:01.332]  WARN     Sending rn-recordback with no listeners registered.
[Mon May 10 2021 16:38:01.838]  WARN     Sending rn-recordback with no listeners registered.
[Mon May 10 2021 16:38:02.260]  GROUPCOLLAPSED  ..  %c action %cLocationActions/locationLive %c@ 16:38:01.987 color: gray; font-weight: lighter; color: inherit; color: gray; font-weight: lighter;  (viewable in debugger)
[Mon May 10 2021 16:38:02.335]  WARN     Sending rn-recordback with no listeners registered.
[Mon May 10 2021 16:38:02.863]  WARN     Sending rn-recordback with no listeners registered.
[Mon May 10 2021 16:38:03.375]  GROUPCOLLAPSED  ..  %c action %cLocationActions/locationLive %c@ 16:38:03.654 color: gray; font-weight: lighter; color: inherit; color: gray; font-weight: lighter;  (viewable in debugger)
[Mon May 10 2021 16:38:03.830]  WARN     Sending rn-recordback with no listeners registered.
[Mon May 10 2021 16:38:04.418]  WARN     Sending rn-recordback with no listeners registered.
[Mon May 10 2021 16:38:04.846]  WARN     Sending rn-recordback with no listeners registered.
[Mon May 10 2021 16:38:05.353]  WARN     Sending rn-recordback with no listeners registered.
[Mon May 10 2021 16:38:05.837]  WARN     Sending rn-recordback with no listeners registered.
[Mon May 10 2021 16:38:06.338]  WARN     Sending rn-recordback with no listeners registered.
[Mon May 10 2021 16:38:06.878]  WARN     Sending rn-recordback with no listeners registered.
[Mon May 10 2021 16:38:06.959]  GROUPCOLLAPSED  ..  %c action %cSystemActionTypes/OnNetworkStateChange %c@ 16:38:06.905 color: gray; font-weight: lighter; color: inherit; color: gray; font-weight: lighter;  (viewable in debugger)
[Mon May 10 2021 16:38:07.339]  WARN     Sending rn-recordback with no listeners registered.
[Mon May 10 2021 16:38:07.421]  WARN     Possible Unhandled Promise Rejection (id: 0):
Error: Faled to stop recorder
promiseMethodWrapper@http://<IP_ADDRESS>:8081/index.bundle?platform=ios&dev=true&minify=false:2277:45

Also have this issue in release mode, sorry not following the conversation here is there a solution?

After the startRecorder call, add an empty record listener. Like this:
this.audioRecorderPlayer.addRecordBackListener((e) => {})

En when stopRecorder is called, do remove the listener:
this.audioRecorderPlayer.removeRecordBackListener()

Worked for me. I don't use that listener while recording, but iOS needs it.

After the startRecorder call, add an empty record listener. Like this:
this.audioRecorderPlayer.addRecordBackListener((e) => {})

En when stopRecorder is called, do remove the listener:
this.audioRecorderPlayer.removeRecordBackListener()

Worked for me. I don't use that listener while recording, but iOS needs it.

Thanks, this is working


Prevent Javascript and Smarty Error with IndexNoCookiesNotice if single or doubl…

…e quote is used

Description

Questions
Answers

Why?
this PR fixed the single quote error but not fix the all problem now if we used a double quote inside the text we have Smarty error

BC breaks?
no

Tests exists & pass?
yes

Related tickets?
__

How to test?
just open the snippets manger search for IndexNoCookiesNotice and add a double quote to the text

Requirements met?
ja

It should be enough to just implement the javascript escaping without using the capture. Please remove the capture call.

hallo @shopwareBot
the capture is the solution. the javascript escaping is just something I added to make the escaping better.
the real Problem is that we have this code
'{"{s name='IndexNoCookiesNotice'}{/s}"|escape}'
so let us say that IndexNoCookiesNotice value is

Cokies notice for "shopware" . testing double quote Problem.

then the code will become :
'{"Cokies notice for "shopware" . testing double quote Problem."|escape}'
this will return a smarty compile error because we have Shopware between tow texts and that make no since for smarty
you can change it to
"{'{s name='IndexNoCookiesNotice'}{/s}'|escape}"
but now if I use a single quote in the text I have the same problem.
so capture is the solution I found to but the snippet value inside a variable without thinking what the user will add in the snippet text field in the backend.
I hope I clear the problem in a better way now.

This could probably be fixed with this PR: https://github.com/shopware/shopware/pull/1037

hallo @screeny05 ,
I think it will not, but in any way try to add the following text  to IndexNoCookiesNotice  and check if it break the code.

Cokies notice for "shopware" . testing double quote Problem.

thank's

Hello,
thank you for creating this pull request.
I have opened an issue on our Issue Tracker for you. See the issue link: https://issues.shopware.com/issues/SW-18563.
Please use this issue to track the state of your pull request.

@ahmad-saad the PR changes the output of the snippet, so it gets encoded as a json object. See here: https://github.com/shopware/shopware/pull/1037/files#diff-e53861ea23b76fbba835e8e51d01d35bR151 on line 166

Hallo @screeny05 your changes prevent the javascript error but not the Smarty Problem.
if you use any value with double quote you will have the following error:
`Fatal error: Uncaught SmartyCompilerException: Syntax Error in template "/......./themes/Frontend/Bare/frontend/index/index.tpl" on line 167 "'noCookiesNotice' => {"{snippet name='IndexNoCookiesNotice' namespace='frontend/index/index'}Cokies notice for "shopware" . testing double quote Problem.{/snippet}"|escape:'javascript'}" - Unexpected "shopware", expected one of: "}" , " " , ATTR in /.../engine/Library/Smarty/sysplugins/smarty_internal_templatecompilerbase.php:657
Stack trace:
#0 /...../engine/Library/Smarty/sysplugins/smarty_internal_templateparser.php(3144): Smarty_Internal_TemplateCompilerBase->trigger_template_error()
#1 /.../engine/Library/Smarty/sysplugins/smarty_internal_templateparser.php(3209): Smarty_Internal_Templateparser->yy in /.../engine/Library/Smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 657`
best Regard's,
Ahmad

Please escape your snippets with a backslash and it should not be a problem.


tweets from a user without replies/mentions/etc

I'm trying to get a stream of a user's tweets using client.follow(id) to output with [Twitter] @#{status.user.screen_name}: #{status.text} but it seems that 'follow' also catches replies to the person's tweets from other people, mentions & other such things.
Is it possible to only get the tweets of that user, excluding everything else? Am I using the wrong thing? I'm not terribly good at coding, so that could easily be possible...

Solved this on my own with some extra code. 👍


Update server returning 502s

I've been getting notifications like this at random times, more often the past day or two, maybe due to update server changes? Several times today.

I can confirm the same problem. I have the same issue on Ubuntu Linux.

I can confirm the same problem. I have the same issue on Ubuntu Linux.

It is not a operating system based issue, the webserver itself is having problems.

It is not a operating system based issue, the webserver itself is having problems.

Is there any way around it?

Seems https://marketplace.visualstudio.com/ can't be accessed. Server issue AGAIN?

Seems https://marketplace.visualstudio.com/ can't be accessed. Server issue AGAIN?

works for me, may be a cache issue on my end or something is actually wrong.

Both downloads and updates are returned 502

Both downloads and updates are returned 502

Downloads are working for me now, but give it time, may be a cache issue.

Service Status
There was some faulty behaviour on our update servers, as we were investigating an issue with them. There was some amount of downtime between CET 10PM and 6:30AM. Servers are back up and should be 100% operational by now.


Need support to select the mesh type for source/Dest Mesh and as well as for Route Mesh

We must be able to select the mesh type for Src/Dest Mesh and for Route Mesh
options: one-one, many-many, fully meshed

@selldinesh this feature is already supported
flows.flow()[-1].tx_rx.device.mode
supports "one_to_one" and "mesh"
defaults to mesh
https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/open-traffic-generator/models/master/artifacts/openapi.yaml#operation/set_config

stale issue


use different ports in each test

Thanks for starting this branch! Here is one way to get the tests passing reliably.

@sneako Thanks so much for the help here!
Didn't see this PR, but I already pushed a fix for the tests!
Feel free to try that branch and see how things go. If everything is working as expected I can open a PR to the main repo to get these changes merged upstream and released.


Correcting target ids for symbol_namespace::iterate

Fixes: https://github.com/STEllAR-GROUP/phylanx/issues/1321

Thanks @hkaiser, this looks good. I'm going to retrigger the tests because of what I think was a problem on Piz Daint, but it's unlikely that will uncover something that the other builders didn't find.

retest


Add organizations & update discord links

Description

Add "Organizations" under ecosystem
Update the discord links to https://discord.gg/4Jcw8MwEEv

can you add two more?

https://github.com/godwokenrises
https://github.com/axonweb3
https://github.com/synapseweb3 ( forcerelay )

can you add 3 more?

https://github.com/godwokenrises
https://github.com/axonweb3
https://github.com/synapseweb3 ( forcerelay )

Since axon/godwoken are currently suspended, we won't put them here


[mongodb] incremental snapshot source supports comma-separated format parameter for databases and collections

Comma-separated format parameter (e.g. "db1.col1,db2.col2") is supported in legacy source, but is not in incremental snapshot source for datastream jobs.

it is nice and i want it


APIs/Timestamp Microservice: Sample Glitch project is offline

In the Timestamp Microservice project project in the APIs and Microservices Certification an example Glitch project is given, but it's offline: https://curse-arrow.glitch.me/.

To Reproduce

Go to the challenge page.
Click on the link to described in the text "...functionally similar to this: https://curse-arrow.glitch.me/."
Note that it's offline, as per the screenshot above.

Browser Info

OS: MacOS 10.15.5
Browser: Chrome
Version: 84.0.4147.105

I've just discovered this is a duplicate of #39394, so I'll close it.


hosting this without node js

if i want to host a particular part, not the whole website, on google cloud, can i skip the node js part?

Nodejs is used as a backend service mainly for checking available slots and send emails to users. In case you want to host the website on Google Cloud or some other hosting Platform you have to make some changes in case you want to remove nodejs dependencies.
You have to use some scheduler for scheduling tasks, a package for sending emails, and call APIs to check slots from the server side.

Yes I was gonna use Google cloud,  and I will keep node JS but can I skip the part of local host?

Yes, you can skip the website hosting portion and use the code for Vaccine Availability Check. Use the functions and configure them according to yourself.

In case you're facing some difficulties, or any other issues, you can ping me at Linkedin/Insta/FB or Mail me I would try to help you in every possible way!
Good Day!


Support sending access tokens in an HTTP header

Currently you need to include a token in the URL that Overland sends to, which is not ideal for a number of reasons. It would be much better to include an access token in an HTTP header. This will require an additional config field on the endpoint settings screen.

[x] Include new field for setting an access token in the settings screen
[x] Send the access token in the HTTP Authorization header if set
[x] Add the access token to the custom protocol launcher so it can be set when a config URL is launched from other apps

I see that the source has been updated to reflect this, but the apple store's version of this app doesn't have this functionality. Is there a plan to get this update in the Apple Store?
I cloned and built the project to install it locally on my phone with xcode, but of course, Apple requires you to pay to use certain capabilities and I wasn't able to install on my phone with my "personal team" account.
Just curios, no pressure. I understand you have to maintain a developer team account which costs money.


Update install-GUI.sh

Added reminder to set password first.
Removed Zenity prompt for password and desktop icon creation to enable script to work via SSH. todo: update if section  'if [ ! -f /home/deck/.SteamDeck_rEFInd/GUI/src/rEFInd_GUI ]; then' todo: y/n prompt for desktop icon creation - cp /home/deck/.SteamDeck_rEFInd/GUI/refind_GUI.desktop /home/deck/Desktop

Good changes. Thanks


chore: update entrypoint to deploy appsmith on cloudrun

Fixes: 23522

/build-deploy-preview skip-tests=true

/build-deploy-preview skip-tests=true

Unmarking myself for review, as discussed, since this is still WIP.

@pratapaprasanna, I see that the thread is marked as resolved, but I don't see the requested changes made. The CloudRun check is still above the Segment call, and the indentation is still not 2 spaces. Can we fix them and then mark them resolved please?
Also, noticed another thing, should we export the changed values to FILESTORE_IP_ADDRESS and FILE_SHARE_NAME, or is that okay?

Sorry I missed it. Doing them

/ok-to-test


Kkraune/remove redundant app

FYI @jonmv
one less app to manage - the content of this is covered in other doc and sample apps

We need to replace this app for use in the CD pipeline for our public system. I have a fork until then.

can't we use album-recommendation-java in CD public? I see no instances for https://console.vespa-external-cd.aws.oath.cloud/tenant/vespa/application/basic-search/instance

Yes, we can, but it needs to be done :)

We need to replace this app for use in the CD pipeline for our public system. I have a fork until then.

I need some help - I could not find any references to basic-search-hosted, probably looking in the wrong places.
We should not mix apps we use ourselves for testing with apps end users use for learning vespa. but maybe I got this all wrong - @jonmv  please let me know where I can go the make these changes

I agree they should be separate. This app is used for the public cd pipeline because it was the only Vespa cloud-ified application at the time. A branch (hosted-cd) in this repository is the source. The application is vespa.lalala.

I think @bjorncs now deploys album-recommendation for public CD and we can merge this now?


Recursive Postorder Traversal

Code for recursive postorder traversal completed.
If the tree is of this form:
            A
         /     \
       B        C
     /   \
    D     E

Result: DEBCA

I have made the changes please look into it


fix: patch issue with dist folder not showing up

Description
This pull request changes the following:

patch issue with dist folder not showing up

Related Issues

Closes #702

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


nanopolish_makerange.py error a genome file is expected

Hi,
I am using Nanopolish to improve the draft genome assembly of Rhizobium. I made the draft assembly using CANU on MinIon reads, and I am following this explanation: http://nanopolish.readthedocs.io/en/latest/quickstart_consensus.html
I ran into error in the step of making 50 kb fragments to polish, stating 'error a genome file is expected'. Parallel is not working either, error in line 4990?, so I turned it off.
python nanopolish_makerange.py /media/sf_shared_folder/Fran/draft.fasta --results /media/sf_shared_folder/Fran/nanopolish.results
nanopolish variants --consensus /media/sf_shared_folder/Fran/polished.{1}.fa
-w {1}
-r /media/sf_shared_folder/Fran/reads.fastq
-b /media/sf_shared_folder/Fran/reads.sorted.bam
-g /media/sf_shared_folder/Fran/draft.fasta
-t 4 --min-candidate-frequency 0.1
My draft.fasta file has 10 contigs of variable length. Is this perhaps causing the error? I attached the file draft.fasta file.
draft.zip

Hi,
You can't remove parallel from the command, it is essential. The "line 4990" error probably means your original command was incorrect in some way. Please carefully try the command with parallel again and if it does not work feel free to send me the full command for help.
Jared

Hi Jared,
Ok, I solved it! I fixed parallel and then the problem with error a genome file is expected disappeared. The error in parallel seemed to be related to permissions in writing to the output folder. It doesn't work writing to a shared_folder, see below. But when I output to my home directory it runs perfect!
This can maybe also be the answer for this issue:
#https://github.com/jts/nanopolish/issues/129
python nanopolish_makerange.py /media/sf_shared_folder/Fran/draft.fasta | parallel --results /media/sf_shared_folder/Fran/nanopolish.results -P 8 \

nanopolish variants --consensus /media/sf_shared_folder/Fran/polished.{1}.fa
-w {1}
-r /media/sf_shared_folder/Fran/reads.fastq
-b /media/sf_shared_folder/Fran/reads.sorted.bam
-g /media/sf_shared_folder/Fran/draft.fasta
-t 4 --min-candidate-frequency 0.1
mkdir /media/sf_shared_folder/Fran/nanopolish.results/1/tig00000001:0-50200: Protocol error at /usr/bin/parallel line 4990.

Thanks,
Sofie

Hi Sofie,
Is nanopolish on your PATH? If not you might need to give the full path to the executable (/path/to/nanopolish variants) in the command.
Jared

Hi Jared,
Yes, true I added the path to nanopolish variants, but still this error in line 4990 persists.
I only managed to solve this error by not outputting to my shared_folder but to home, perhaps parallel and mkdir in a shared_folder doesn't have all the permissions to do so.
Sofie

Please reopen if this is still an issue.

Thanks Jared, it is solved in the meantime.
Sofie
2018-02-05 21:13 GMT+01:00 Jared Simpson<EMAIL_ADDRESS>
Please reopen if this is still an issue.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jts/nanopolish/issues/305#issuecomment-363207254, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AchxEc2gZmJMhnUob5MjwqHi79r_JhQ9ks5tR2D_gaJpZM4ROzUR
.


0.5.0

Current dependencies on/for this PR:

main

PR #12   👈

This comment was auto-generated by Graphite.


My 2.5.9 sensor is showing null values and acting weird

Description:
1.12.10
I added local 2.5.9 sensor df3 to Ruuvi Station and it's acting weird.

Null shown for movement
Measurement sequence number is not being counted

QA passed


[BrutBridge] Add support for Spain edition and health category

Adds support for the Spain edition of website and for the health category.

gj @VerifiedJoseph


[BUG] running "docker-compose up" returns lots of errors about bash being a bad interpreter because of ^M

Describe the bug
When starting out fresh with tau as of today's build, running "docker-compose-up" fails with a ^M character attached to a reference to /bin/bash
To Reproduce
Steps to reproduce the behavior:

clone the repo on Windows
set up .env
run "docker-compose up"
see lots of this:

bash: ./scripts/start.sh: /bin/bash^M: bad interpreter: No such file or directory

Expected behavior
Expect to NOT see this error and see something indicating that it all started successfully?
Screenshots

Deployment:

Docker Version: Docker version 20.10.17, build 100c701
Docker Compose Version (if applicable): docker-compose version 1.29.2, build 5becea4c
Deployment Type: Local
Deployment Details: n/a

Additional context
First time user

Running "dos2unix" on the script, and removing all containers and storage from Docker Desktop then throws an error about this instead:

You can use cat -vte to see line endings, etc:
 $ cat -vte manage.py | head
#!/usr/bin/env python^M$
"""Django's command-line utility for administrative tasks."""^M$
import os^M$
import sys^M$

Ran dos2unix on the manage.py and wait_for_postgres.py and things seem to be working better now.

FWIW, it's possible that this is a Windows "git" command issue that converts LF to CRLF, and not sure if that's correctable by the deployment process or if I just need to do better with my Git setup ...

Hi @iandouglas.  Thank you for the issue.  Yes, there is an issue with how windows git treats line endings, and it causes exactly the same behavior that you're seeing.  I could have sworn that we had this in the documentation, but upon looking, I am not finding it.  I'll need to update the docs to indicate this.
The way to fix it, is set git's autocrlf to false for windows installs, e.g.:
git config core.autocrlf false

This will keep git windows from converting the line-endings to windows line-endings.  Another (preferred) option, is to do everything in WSL, as even docker performs significantly better when run from WSL these days.


Bump version to 23.04

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[x] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

@conda-forge-admin, please rerender

@unkcpz FYI it looks like maintainers were not properly added last time in #3 because you ran the rerender before the commit that modified the maintainer list.

Seems still something not correct.

@conda-forge-admin, please rerender

The sha256 problem, I think there must be some easy way to take care of this.

Finally :rocket:


#1190: Added runtime support for doing golden comparision for flatbuffers in ttrt

The goal of this PR is to introduce golden support in runtime. The design was taken into account that other runtimes can plug into MLIR runtime (ttrt is just one possible frontend for mlir runtime). The frontend building off MLIR runtime can register a "callback" function through python, which will return ProgramContext* and Operation* - to be run after every op is executed. The frontend can then call supporting APIs to return currently running data.

golden information embedded into the flatbuffer as a golden_map

key = loc() of the operation
value = vector(float)

ability to dump debug string from both Operation* and it's OpType*
added Hook callback function to execute after every op

python interface with C++ runtime can initialize a callback function that will return ProgramContext* and Operation* void ptrs
getOpOutputTensor(programcontext, operation) pybind function support to get a tensor from device for a particular op
getOpDebugString(programcontext, operation) pybind function support to get an op debug string

this is needed to get the loc() information for the op (which is key in golden map)

ttrt callback module which does golden comparision against device tensor using pcc
ttrt golden option which sets a golden function and triggers golden comparision for each op in runtime

Some ops have bad pcc: following up bad pcc ops in separate issues. Parent issue: https://github.com/tenstorrent/tt-mlir/issues/1219

fixed all the issues. @jnie-TT @nsmithtt Let me know if there's something missing.
@nsmithtt I tried to pybind the tt::target::GoldenTensor but it ended up complaining a ton about mismatch between data type (ie the autogenerated from flatbuffer compiler and what I was trying to pybind). So I have this workaround
.def("get_debug_info_golden", [](tt::runtime::Binary &binary,
                                       std::string &loc) {
        const ::tt::target::GoldenTensor *goldenTensor =
            binary.getDebugInfoGolden(loc);
        if (goldenTensor == nullptr) {
          return std::vector<float>();
        }

        int totalDataSize = std::accumulate((*goldenTensor->shape()).begin(),
                                            (*goldenTensor->shape()).end(), 1,
                                            std::multiplies<int64_t>());
        std::vector<float> dataVec(totalDataSize);
        std::memcpy(dataVec.data(), goldenTensor->data(), totalDataSize);
        return dataVec;

I'm not 100% with this workaround :) however

Many pcc issues with several ops resolved :D. Remaining ones

logical_not
test_eq
test_ne
test_ge
test_gt
test_le
test_lt


Vim won't recognize custom colorschemes

Steps to reproduce

Make a colorscheme file
Put it in the same folder as other colorschemes

Expected behaviour
At one time, I was able to have vim recognize a color scheme I made by just putting this code in the file and putting the file in :/usr/local/share/vim/vim90/colors/horror.vim with the other color schemes that comes with a vim installation:
let g:colors_name = 'colorscheme-name'
But now, this doesn't work. I've noticed this didn't work for GUI vim in general, but there was a time when putting 'colorscheme ' in your .vimrc worked like it did the same as it does for the ones that come with the installation when you use the standard terminal version of this software. I would think it would also be displayed when you enter :colorscheme[space][ctrl+d]
Version of Vim
9.1
Environment
Ubuntu Studio
Konsole
Logs and stack traces
Error detected while processing /home/<username>/.vimrc:
line  136:
E185: Cannot find color scheme '<name>'
Press ENTER or type command to continue

It seems /usr/local/share/vim/vim90/colors/horror.vim is not in your runtime path. Place it instead into ~/.vim/colors/ and it should work.

It seems /usr/local/share/vim/vim90/colors/horror.vim is not in your runtime path. Place it instead into ~/.vim/colors/ and it should work.

yeah that worked, case closed and thank you sir

On 2024-03-06, ShinyNeonCalvin wrote:

Steps to reproduce

Make a colorscheme file
Put it in the same folder as other colorschemes

Expected behaviour
At one time, I was able to have vim recognize a color scheme I made by just
putting this code in the file and putting the file in :/usr/local/share/vim/
vim90/colors/horror.vim with the other color scheme that come with a vim
installation:
let g:colors_name = 'colorscheme-name'
But now, this doesn't work. I've noticed this didn't work for GUI vim in
general, but there was a time when putting 'colorscheme ' worked like it did
the same as it does for the ones that come with the installation when you use
the standard terminal version of this software.
Version of Vim
9.1

Since you're running 9.1, Vim is going to look for colorschemes in
/usr/local/share/vim/vim91/colors rather than in
/usr/local/share/vim/vim90/colors.
That is one reason you should never add files to or modify files
in the $VIMRUNTIME directory (e.g., /usr/local/share/vim/vim91).
Those files may be overwritten during an upgrade to a newer patch
level or may no longer be in the 'runtimepath' when Vim is upgraded
to a new release.
Any files that you add or modify should be put in your ~/.vim
directory, as Christian suggested, or in $VIM/vimfiles if you want
to make them available to all users.
Regards,
Gary


New Release

It's been well over a year since the last release. Should probably consider making one, to make new functionality (e.g. PerfettoCollector) available via PyPI.

That would be great, as it would also include async stuff. For now, the benefits can only be used inside devlib as this otherwise means using APIs that are not available on PyPI.

This might be a blocker in case the user-visible async functions start requiring a setup before being called: https://github.com/ARM-software/devlib/pull/683


Flow Listing: Expand search options

The Flow listing search only searches against Flow name; expand to allow searching against user and account.

Looks like the account picker does not have all accounts and the flows array doesn't store accountId - Will just filtering on flow name and user name suffice here? @aso1124

Just filter on flow name and user's (created by) name for this issue.


[benchmark] DictTest4Legacy: Add dummy hash(into:)

(This PR was originally part of #20685.)
SE-0206 deprecated hashValue as a Hashable requirement, replacing it with hash(into:). This PR updates the benchmarking suite accordingly.
rdar://problem/46344811

@swift-ci smoke test

@swift-ci benchmark

Build comment file:
No performance and code size changes


install/ build SDL2_gfx

Hi,
i'd ilke to make use of functions provided in the gfx package.
when i try to install it with: > go get github.com/veandco/go-sdl2/gfx
i get
C:/Program Files/mingw-w64/x86_64-7.3.0-posix-seh-rt_v5-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lSDL2_gfx
collect2.exe: error: ld returned 1 exit status
I'm able to build SDL2 and SDL2_gfx lib with VStudio for win32 x64 but the bindings seems only to acceppt .a files..
How to compile and run the lib on windows x64?
Regards,
Sam

Hi Semj0n, I don't have Windows with me at the moment but perhaps it would be easier for you to use MSYS2 and install SDL2 and SDL2_gfx using the following command:
pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-SDL2{,_gfx}

Then I think you need to add something like C:\mingw\bin to the PATH environment variable. You might also need to remove previous MinGW paths from it so you will only use the ones installed by MSYS2.
I'm not sure if my instructions are correct but I'll test it myself once I have Windows with me!

Hi @Semj0n, I corrected the MSYS2 path for environment variable in my previous comment. It seems to work on my Windows installation so please let me know if it works for you too!


Added EiffelDocumentationCreatedEvent

As per issue #40.

This will enable us to track changes for automation of document handling inside Ericsson.

But what is the difference between an "artifact" and a "document"? And what to do if we have an entity that could be considered to be a "document" in one context and an "artifact" in another? Why is not data.fileInformation not sufficient in ArtifactCreated.

After an internal workshop within Ericsson, I propose closing the PR and removing DocumentationCreated from the vocabulary. Instead, similar to the proposal in issue #84, include data.types as a String[] in ArtifactCreated.
What you miss out on is the optional DITA specific parameters, which is too minor to warrant a dedicated event at this point in time. If this turns out to be the wrong call, it's always easier to add events later on than to remove them.
Thoughts?

:+1:

Ok for me. If we see a need we can revise it then.

Closing this. Please review #90 instead.