Use DisplayTaxonName component for disagreements

Closes #1852

@angielt thought you might want to take a look since this is code you worked on. The main changes here are:

Getting DisplayTaxonName to display in a plain text component with formatting for each of the three user settings, common name first, scientific name first, and only sci name
Passing DisplayTaxonName as a component into <Trans />, which prevents a user from seeing the actual variable names (like commonNames) displayed as part of the text string when the variable is null
Moving logic specific to disagreement out of RadioButtonSheet so that sheet doesn't need to know details about a taxon, only whether or not to display additional components (I believe removing showTaxon code also fixed https://github.com/inaturalist/iNaturalistReactNative/issues/1798)


Import from commons should read map type from template & handle accordingly.

I think we should create a connection from the map template to the Warper re: types. There is a property in the Map template "Map type". It has not been utilized. The purpose has been to be able to express the types, such as "street map", "topographic map", "sea chart". We could use that or we could create a new property (I prefer a new property). The values could be read from Commons in the import, updated in the Warper, and updated to Commons when there is an update event, such as warping.
So, basic mapping template to warper -> map_type (map, not map, index/overview)
Also, potentially skip import if the type is set to something.
May depend on new Map Template proposals.

Related #82

related to 82


[jenkins stable/chart] pod error

jenkins stable/chart fails with EKS
With Jenkins stable HELM chart installation with EKS, deployment fails with its POD after a long init status.
Version of Helm and Kubernetes:
HELM: v3.0.1
K8s: 1.14 (AWS EKS)
Which chart:
jenkins-1.9.9 lts
What happened:
With Jenkins stable HELM chart installation with EKS, deployment fails with its POD after a long init status:
The output of describe pod jenkins-5d7b7568b7-kptxp is:
`Events:
Type     Reason                  Age                From                                                    Message

Warning  FailedScheduling        17m (x3 over 17m)  default-scheduler                                       pod has unbound immediate PersistentVolumeClaims (repeated 2 times)
Normal   Scheduled               17m                default-scheduler                                       Successfully assigned default/jenkins-5d7b7568b7-kptxp to ip-10-0-146.us-west-2.compute.internal
Normal   SuccessfulAttachVolume  17m                attachdetach-controller                                 AttachVolume.Attach succeeded for volume "pvc-2f8275b2-1d2c-11ea-82ec-0a5c4d1bbb08"
Warning  BackOff                 18s                kubelet, ip-10-0-122-146.us-west-2.compute.internal  Back-off restarting failed container
Normal   Pulling                 5s (x3 over 17m)   kubelet, ip-10-0-122-146.us-west-2.compute.internal  Pulling image "jenkins/jenkins:lts"
Normal   Pulled                  4s (x3 over 17m)   kubelet, ip-10-0-122-146.us-west-2.compute.internal  Successfully pulled image "jenkins/jenkins:lts"
Normal   Created                 4s (x3 over 17m)   kubelet, ip-10-0-122-146.us-west-2.compute.internal  Created container copy-default-config
Normal   Started                 3s (x3 over 17m)   kubelet, ip-10-0-122-146.us-west-2.compute.internal  Started container copy-default-config`
jenkins-5d7b7568b7-kptxp                         0/1     Init:Error   2          26m
What you expected to happen:  I tried the same chart within minikube it worked. I would need to see this chart work in EKS.
How to reproduce it (as minimally and precisely as possible):
At any EKS environment, issue:
helm install my-release stable/jenkins
Anything else we need to know:

I encountered a similar bug on Helm 0.14.1 and EKS (1.14). The error seems to come when the defaultConfig init container tries to copy JCaSC files across. When I can spin up a staging Jenkins, I will attempt to reproduce the more details output of the failed copy-over.

I figured out the issue, the pod has no internet access, so it fails when Jenkins is downloading the plugins from the public internet.


Add toolchain debug features to the depsearch tool

Merge Checklist

All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)

[x] The toolchain has been rebuilt successfully (or no changes were made to it)
[x] The toolchain/worker package manifests are up-to-date
[x] Any updated packages successfully build (or no packages were changed)
[x] Package tests (%check section) have been verified with RUN_CHECK=y for existing SPEC files, or added to new SPEC files
[x] All package sources are available
[x] cgmanifest files are up-to-date and sorted (./cgmanifest.json, ./toolkit/tools/cgmanifest.json, ./toolkit/scripts/toolchain/cgmanifest.json, .github/workflows/cgmanifest.json)
[x] LICENSE-MAP files are up-to-date (./SPECS/LICENSES-AND-NOTICES/data/licenses.json, ./SPECS/LICENSES-AND-NOTICES/LICENSES-MAP.md, ./SPECS/LICENSES-AND-NOTICES/LICENSE-EXCEPTIONS.PHOTON)
[x] All source files have up-to-date hashes in the *.signatures.json files
[x] sudo make go-tidy-all and sudo make go-test-coverage pass
[x] Documentation has been updated to match any changes to the build system
[ ] Ready to merge

Summary

Add tools to help debug toolchain build conflicts (ie the scheduler thinking it needs to rebuild toolchain packages, which it shouldn't)
Change Log

Add a few features to the depsearch tool:

--tree now outputs a simple tree view of the subgraph.

--rpm-filter  will limit the results to just those that aren't inside the filter list

--rpm-filter-file sets the filter for the above flag. Defaults to the x86_64 toolchain manifest if it can find it.

--print-duplicates sets the tree mode to print all nodes. By default it won't print a node if its already printed it once (warning, this takes a LONG time to run and can use up all your memory for even medium sized graphs, use with --max-depth)

Added a section to the scheduler summary that lists all packages that were rebuild that conflict with the toolchain. This may become a breaking error in the future.

Does this affect the toolchain?

YES (In that it may change the behaviour of toolchain packages as we are familiar with them since they will ALWAYS be the ones from the normal toolchain build)

Done WIP work, now just the depsearch tool changes.


Starting with connection as parameter

Hi there,
when starting OmniDB from the command line (being on Ubuntu 16.04) with the command omnidb-app, I'd like to pass the connection to be used as a parameter. Just to clarify: I mean not the "name" of the connection, but the whole info OmniDB needs: host, port, username, password etc.
If this is already possible, I cannot find out how (didn't find anything about command line parameters at all in the documentation).
The "normal" stored connections shouldn't be touched (changed in the config) but should be invisible when starting OmniDB with a connection parameter.
That would be quite useful to me.
Background: We run a remote PostgreSQL cluster. The policy is that the passwords both for the machine itself and the Postgres DB running on it are nowhere to be stored except a password manager file. The passwords are also changed quite often. So, it would be quite inconvenient each time copy&pasting the password.
So, what I'd like to do is, create a shell script which asks for the password of the password manager file, fetches the passwords from there, creates an SSH tunnel - and then opens OmniDB app with the credentials of the remote connection as a parameter.
I got that to work with pgAdmin III with a very dirty hack. But since I'd like to replace pgAdmin with OmniDB, I'm hoping for a cleaner solution now.

Hi @cschwaderer ,
We have written below helper bash script that might do what you want using our docker image:
#!/bin/bash

################################################################################################################################################
# Start OmniDB with a single connection                                                                                #
# Call: omnidb_single_connection.sh <container_name> <omnidb_user> <omnidb_password> <pg_host> <pg_port> <pg_database> <pg_user> <pg_password> #
# Parameters:                                                                                #
#     * container_name: name of the container that will be created                                                                             #
#     * omnidb_user: username of the OmniDB super user that will be created                                                                    #
#     * omnidb_password: password of the OmniDB super user that will be created                                                                #
#     * pg_host: host of the postgres connection                                                                                #
#     * pg_port: port of the postgres connection                                                                                #
#     * pg_database: database of the postgres connection                                                                                #
#     * pg_user: user of the postgres connection                                                                                #
#     * pg_password: password of the postgres connection                                                                                #
################################################################################################################################################

# check script call arguments
if [ "$#" -ne 8 ]; then
  echo "Usage: $0 <container_name> <omnidb_user> <omnidb_password> <pg_host> <pg_port> <pg_database> <pg_user> <pg_password>" >&2
  exit 1
fi

# get arguments
CONTAINER_NAME=$1
OMNIDB_USERNAME=$2
OMNIDB_PASSWORD=$3
PG_HOST=$4
PG_PORT=$5
PG_DATABASE=$6
PG_USER=$7
PG_PASSWORD=$8

# create omnidb container
docker run -d --rm --name $CONTAINER_NAME --publish 8000:8000 omnidbteam/omnidb:latest

# create super user of OmniDB
docker exec -it $CONTAINER_NAME python omnidb-server.py --createsuperuser=$OMNIDB_USERNAME $OMNIDB_PASSWORD

# create connection
docker exec -it $CONTAINER_NAME python omnidb-server.py --createconnection=$OMNIDB_USERNAME postgresql single_connection $PG_HOST $PG_PORT $PG_DATABASE $PG_USER

# store password in .pgpass of container
docker exec -it $CONTAINER_NAME touch /home/omnidb/.pgpass
docker exec -it $CONTAINER_NAME chmod 600 /home/omnidb/.pgpass
docker exec -it $CONTAINER_NAME chown omnidb:omnidb /home/omnidb/.pgpass
docker exec -it $CONTAINER_NAME bash -c "echo '$PG_HOST:$PG_PORT:$PG_DATABASE:$PG_USER:$PG_PASSWORD' > /home/omnidb/.pgpass"

# start OmniDB
docker exec -it $CONTAINER_NAME python omnidb-server.py

To use it you should execute it with required arguments as you can see in the top of it. Then you should access the address http://<IP_ADDRESS>:8000 of your machine and use credentials passed to the script to login to OmniDB.
After doing everything you want, just stop the container with a command similar to:
docker stop <container_name>

Let us know your thoughts on that.
Regards.


tour: section sync.Mutex is misguiding

Context: https://tour.golang.org/concurrency/9
with all due respect, the code example in sync.Mutex is so very wrong. i posted it here below.
the section names sync.Mutex but the key that keeps it working is not sync.Mutex, but time.Sleep.
if you delete line:37 "time.Sleep(time.Second)", the output isn't 1000 anymore (when Value method is called, there are still Inc methods running or pending).
while if you keep this line and delete all sync.Mutex related code, it works as well (perhaps it's because the virtual environment has only one CPU core).
though sync.Mutex doesn't make the Value method to block until all Inc methods done, the results above is way too misguiding.
package main

import (
	"fmt"
	"sync"
	"time"
)

// SafeCounter is safe to use concurrently.
type SafeCounter struct {
	v   map[string]int
	mux sync.Mutex
}

// Inc increments the counter for the given key.
func (c *SafeCounter) Inc(key string) {
	c.mux.Lock()
	// Lock so only one goroutine at a time can access the map c.v.
	c.v[key]++
	c.mux.Unlock()
}

// Value returns the current value of the counter for the given key.
func (c *SafeCounter) Value(key string) int {
	c.mux.Lock()
	// Lock so only one goroutine at a time can access the map c.v.
	defer c.mux.Unlock()
	return c.v[key]
}

func main() {
	c := SafeCounter{v: make(map[string]int)}
	for i := 0; i < 1000; i++ {
		go c.Inc("somekey")
	}

	time.Sleep(time.Second)
	fmt.Println(c.Value("somekey"))
}

package main

import (
	"fmt"
	"sync"
)

func main() {
	c := counter{}
	wg := sync.WaitGroup{}

	for i := 0; i < 1000; i++ {
		wg.Add(1)

		go (func() {
			c.inc()
			defer wg.Done()
		})()
	}

	wg.Wait()

	fmt.Println(c.v)
}

type counter struct {
	v int
	mux sync.Mutex
}

func (c *counter) inc() {
	c.mux.Lock()
	c.v++
	c.mux.Unlock()
}

here is what i suppose to be right.

package main

import (
	"fmt"
	"sync"
)

func main() {
	c := counter{}
	wg := sync.WaitGroup{}

	for i := 0; i < 1000; i++ {
		wg.Add(1)

		go (func() {
			c.inc()
			defer wg.Done()
		})()
	}

	wg.Wait()

	fmt.Println(c.v)
}

type counter struct {
	v int
	mux sync.Mutex
}

func (c *counter) inc() {
	c.mux.Lock()
	c.v++
	c.mux.Unlock()
}

here is what i suppose to be right.

Jesus f***** Christ!
Man, thank you SO MUCH, I'v just saved a ton of time making sense of it.
also I love your code design. main above, then type, then foo


Hard time finding an alternative to Pencil

Hi @nathanielw, long-time user of your lollipop stencils here,
I understand this repo is no longer being maintained. However, I am curious as to what software you are using now instead of Pencil, which seems now kinda dead, for your Android mockups.
Thanks!

Hey @abicelis, hopefully you've got some good use out of the stencils 😃
Yeah, Pencil's development unfortunately seems to have stagnated a bit. I'm not doing quite as much mockup work myself anymore, but for the stuff I am doing I've been using Figma. I've also heard good things about Adobe XD from workmates.
Unfortunately I'm not aware of any open-source alternatives though - it feels like all the commercial options have shot ahead recently.

(closed for tidiness, but if anyone comes across this and has other alternatives to suggest, feel free to leave a comment)


mock posterior with prior for MMM tests

Follow up from #515 and #514
Goal:

don't call fit but use a mocked posterior for testing majority of the methods
call fit and check for convergence and mark test as slow

This is still relevant, we are spending 5 minutes (25% CI) setting up the fixtures for this test, just to check nothing crashes when we call the plot utilities: https://github.com/pymc-labs/pymc-marketing/actions/runs/8139313836/job/22242195431?pr=565#step:5:827

I am going to pick up this issue

Some were address. However others need to be changed as well tests for actual fits with mark of slow


Docker Flow Monitor

Hi,
I would like to add a link to Docker Flow Monitor
REPO:
https://github.com/vfarcic/docker-flow-monitor
DESCRIPTION:
Reconfigure Prometheus every time a new service is deployed, or when a service is updated.
AUTHOR:
Or directly write it:
[Docker Flow Monitor](https://github.com/vfarcic/docker-flow-monitor) - Reconfigure Prometheus every time a new service is deployed, or when a service is updated. By [@vfarcic](https://github.com/vfarcic)

@Vad1mo Cool tool! I need this as well. PR #481 has been added for the Docker Flow Monitor


Point release: Update version and change log.

Does this need the cherry pick for package-lock? Not sure that yours will match what is on main now.

No need. I will clean that up when merging back.


chai require from .http not supported

Can't import chai for assertions
after sending request
Host: postman-echo.com

{{
    const assert = require("chai").assert
      , foo = 'bar'
      , beverages = { tea: [ 'chai', 'matcha', 'oolong' ] };
    test("chai", function () {
        assert.typeOf(foo, 'string'); // without optional message
    })
}}

error from vc extension
/Users/maciek/source/test/node_modules/chai/chai.js from /Users/maciek/source/test/Untitled-1.http not supported. Instead change the require of chai.js in /Users/maciek/source/test/Untitled-1.http to a dynamic import() which is available in all CommonJS modules. at Function.<anonymous> (node:electron/js2c/node_init:2:13357) at h._load (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:173:5634) at n._load (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:170:29786) at t._load (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:135:35289) at s (/Users/maciek/.vscode/extensions/anweber.vscode-httpyac-6.11.6/dist/extension.js:196:2430) at Object.userJS (/Users/maciek/source/test/Untitled-1.http:5:20) at CQ (/Users/maciek/.vscode/ex...

from CLI
Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/maciek/source/test/node_modules/chai/chai.js from /Users/maciek/source/test/Untitled-1.http not supported.
Instead change the require of chai.js in /Users/maciek/source/test/Untitled-1.http to a dynamic import() which is available in all CommonJS modules.
    at s (/Users/maciek/.nvm/versions/node/v18.16.0/lib/node_modules/httpyac/dist/index.js:6:2432)
    at Object.userJS (/Users/maciek/source/test/Untitled-1.http:5:20)
    at Yt (/Users/maciek/.nvm/versions/node/v18.16.0/lib/node_modules/httpyac/dist/index.js:6:2730)
    at kt (/Users/maciek/.nvm/versions/node/v18.16.0/lib/node_modules/httpyac/dist/index.js:6:6167)
    at Object.action (/Users/maciek/.nvm/versions/node/v18.16.0/lib/node_modules/httpyac/dist/index.js:6:5438)
    at n.trigger (/Users/maciek/.nvm/versions/node/v18.16.0/lib/node_modules/httpyac/node_modules/hookpoint/dist/index.js:1:2866)
    at async t.execute (/Users/maciek/.nvm/versions/node/v18.16.0/lib/node_modules/httpyac/dist/index.js:2:52568)
    at async mp (/Users/maciek/.nvm/versions/node/v18.16.0/lib/node_modules/httpyac/dist/index.js:119:33932)
    at async Tc (/Users/maciek/.nvm/versions/node/v18.16.0/lib/node_modules/httpyac/dist/index.js:119:34177)
    at async Eo (/Users/maciek/.nvm/versions/node/v18.16.0/lib/node_modules/httpyac/dist/index.js:119:33684)
    at async Command._c (/Users/maciek/.nvm/versions/node/v18.16.0/lib/node_modules/httpyac/dist/index.js:119:43602)
    at async Command.parseAsync (/Users/maciek/.nvm/versions/node/v18.16.0/lib/node_modules/httpyac/node_modules/commander/lib/command.js:936:5)
    at async Object.Qc (/Users/maciek/.nvm/versions/node/v18.16.0/lib/node_modules/httpyac/dist/index.js:119:47517) {
  code: 'ERR_REQUIRE_ESM',
  handled: true
}

package.json
{
  "dependencies": {
    "chai": "^5.1.0"
  }
}

@zawiasam The problem is that chai switched to ESM with v5 (see Release Notes). This is not supported by the require. You would have to use import(). However, I do not currently provide this. I first have to learn how to do it. The current workaround would be to downgrade to<EMAIL_ADDRESS>

@AnWeber Maybe I could help somehow, any hint where I could to start?

@zawiasam  With pleasure. It is actually also encapsulated and can therefore be worked on without the big picture. But the problem is complicated enough.
The method runScript is used to run some text Content as NodeJS Script. In this Script access to all variables is needed and exports needs to be added to the variables after script execution.
Unfortunately, this method does not support ESM or the use of import. For import() setting importModuleDynamically would apparently be necessary, but this is new territory for me.
Another special feature is that the import has to be "bent", or that's my idea. The code acts within httpyac package and therefore has access to httpyac dependencies. In order to have access to deps from the target package, this must be bent. Hence the const mod = createModule(filename);hack to get require calls working.
In the Contributing would be a guide on how to debug it, but another approach would be to extract the code and make it run independently and then integrate the features.

@AnWeber I manually installed chai 4.4.1:

Restarted VSCode, but I'm still getting an error that the module is missing:

Did I miss a step?

@AnWeber I just installed the latest version of NodeJS 22.x, but I'm still getting errors trying to include chai:

So, looks like Node v22 does not fix this.

You need to enable Support for ESM require, or you could Install v23 where this Support is active by default

Sweet. Thank you so much.
If anyone is interested. What you need to do is:

Upgrade NodeJS to v23.
Install chai: npm install chai.
Use require for the chai functionality you want to use. The following code is working for me:

@host=https://httpbin.org
@value=abc

### Demo CHAI expect
GET /anything?value={{value}}
{{
  const { expect } = require('chai');
  test('EXPECT status code 200', () => {
    expect(response.statusCode).to.equal(200);
  });
}}

### Demo CHAI assert
GET /anything?value={{value}}
{{
  const { assert } = require('chai');
  test('ASSERT status code 200', () => {
    assert.equal(response.statusCode, 200);
  });
}}

### Demo CHAI should
GET /anything?value={{value}}
{{
  const { assert } = require('chai').should();
  test('SHOULD status code 200', () => {
    response.statusCode.should.be.equal(200);
  });
}}

I will do a bit more testing (I have several versions of chai installed so need to clean it up and make sure it still works, which it should) and add chai examples and instructions to my https://github.com/alekdavis/httpyac-extras repo.
Thanks again. This is awesome.

Okay, a couple of tips for the the novices (after a few tests I did):

Do not install chai globally (there is a way to use it from the test project, but it is a pain).
Add the latest version 4.x of chai to the project  (i.e., switch to the project folder and execute npm install<EMAIL_ADDRESS>or whatever 4.x version is the latest, which will create the package*.json files and npm_modules folders with the dependencies).

Once you do this, the code above will work. As I said, I will add this info along with the chai package and demos to the https://github.com/alekdavis/httpyac-extras repo.
I hope chai gets bundled with httpYac at some point to avoid the whole hassle, but for now this should work just fine if you do it right.

I added some samples to https://github.com/alekdavis/httpyac-extras/blob/main/Tests/Demos/demo-7-Asserts-Chai.http


flush records and state changelog before local state

@guozhangwang
Since a change log is a redo log, it makes sense to flush it before flushing the state store to a local disk.

lgtm.


Activate tab based on URI hash

Upon loading a badge status, the URI hash is ignored if it points to a tab other than the first.
E.g. https://bestpractices.coreinfrastructure.org/projects/1#quality
I propose to

Automatically switch tab and scroll when landing on the web page
Consider integrating navigation through hashes with browser history

Yes. I think this is a dup of where the discussiob went on issue #218. We need to do a little Javascript trickery to reveal the correct tab.

You're right, apologies for the duplicate.


RT engine and LUT tests.

@pgbrodrick Here's a first small test case for building and reading a LUT file using the new engine class. There's still much room for additions and refinements, but it provides an initial basis. Right now, the test fails due to multiple issues. I'll continue working on this during the next week, but feel free to modify and add stuff as we proceed.
@jammont Comments from your side are of course highly welcome as well!

This also contains the individual LUT work from #389 , so I'm merging this in and dropping that PR.


Fix Ped.CanBeKnockedOffBike

This fixes Ped.CanBeKnockedOffBike by inverting the value passed to that native. The underlying native in this function uses an enum rather than a bool, but the first two values in the enum are '0' for the default ped behavior of being able to be knocked off, and '1' for a ped never being able to be knocked off. Thus, by inverting the bool passed to this function, we can achieve the intended behavior without further changes.

There are 4 possible values according to the native doc in alloc8or's (and that leaked scripting source repo), but this change makes sense since the value type is bool.


What is the expected behaviour when routing to an unadded repository?

I'm currently working on #74, i.e. reworking the routing, and ran into this question. I'm hoping to get some input on the expected behaviour.
Context (referring to the branch "routing-fix"):

Currently URLs look like .../#/manager/repo-owner/repo-name/branch/file/adr-name, e. g.

(This may change, if I find a layout that I like better.)
All changes in the URL lead to a new entry in the browser history.

Question
How should the manager react, when repo-owner/repo-name in the URL does not refer to any added repository?
Use Cases that may lead to this problem:

The user removes a repository, then goes back in browser history.
User A sends user B a link, but user B has not added the repository.

So far I was thinking about these behaviours:

Do nothing in particular. Just show the Editor as if that part of the URL was not there.
Show an error or warning dialog.

Good, because user is informed.
Bad, because extra click to click it away.

Add the repository automatically, if the user has write access to it.

Good, because increases efficiency in the second use case.
Bad, because might be surprising behaviour.
I'm not sure how complicated the implementation would be.

Besides that, I'm also not sure if there should be an history entry for each opened ADR.. I think it's possible to just overwrite the last entry. This would decrease spam in the browser history and solve the first use case.
It would be nice to get some opinions on this. :)

I ran into this earlier today and was expecting "Add the repository automatically".
I would have also accepted...

Add the repository as a read-only repository that then requires a positive user action.

e.g., click a ➕ button to change it from read-only to read-write.
e.g., drag it from a "read-only" area to my list of subscribed read-write repositories.

Pop up a dialog that says "Do you want to add this repository?"


Hi Any chance of updating to PyTorch 1.0 ?

Hello
I am finding it very difficult to install against  the previous PyTorch 0.4.0, as it is now released at 1.0. Is it possible to support PyTorch 1.0 and update the code and samples ?  Do we expect it to be very different or any errors ?
Observation>:
When I download and run setup.py, it seems to do an install. However When I then attempt a python import ptan, I do have noetd I get an error
file/home/jules/anaconda3/lib/python3.6/site-packages/ptan-0.3-py3.6.egg/ptan/common/wrapper.py
ImportError:Cannot import name 'spaces' in line 6 of wrapper.py
It seems to be a problem in my environment seeing spaces within gym. Although with Anaconda I always have to set sys.path.append("/home/jules/gym") to make the gym package visible, and usable I still cannot import gym.spaces under a bash python prompt.
However if I edit in VSCode, do the imports and run the python code it appears I can import ptan and run some cartpole example without errors.
=> So may not an Issue

Hi! It's in my todo list, but cannot make any time estimations, sorry


Calculate the fee according to tx-size

In the latest 2.10.2 node, the calculation method has been changed. There is no API or attribute that can obtain tx-byte.

If you deserialize the transaction into its string representation, every 2 characters represent a byte so just dividing it by 2 will get you your transaction size.

Could it be better if adding getSize() method to transaction type?
Another problem regarding this:
The change of  fee may change the inputs and outputs, thus the size may change again to require more fee. Maybe we could add a method validateFee() to return the surplus/lack of fee in a transaction before sending it.

If you deserialize the transaction into its string representation, every 2 characters represent a byte so just dividing it by 2 will get you your transaction size.

OK,i will try it

Could it be better if adding getSize() method to transaction type?
Another problem regarding this:
The change of fee may change the inputs and outputs, thus the size may change again to require more fee. Maybe we could add a method validateFee() to return the surplus/lack of fee in a transaction before sending it.

that's a good idea!


V4V License

The V4V license is very long and for non-lawyers, extremely time consuming to comprehend. What about a license that's simple like the MIT license? Then it has a chance of persuading users to donate.

This license applies to and accompanies a
copyrighted work.
It is not a free work. The copyright owner must
be compensated with value approximately equivalent
to the value you received.
This work may only be redistributed unabridged,
uninterrupted, and not gated by sponsorships.
Occasional censorship of obscenity in redistributed
content is allowed if the omitted content is
swapped exactly in place with empty content (for
example: black color, silence, constant tone) such
that it is apparent censorship has occurred.

I agree. Maybe we should implement it the same way as Creative Commons does. The link goes to a license page with a concise, simple and captivating version, where a link to another page with the proper legal code is displayed.

We need a lawyer to human translator to create that type of page.  Do we have anyone that would be willing to do such a thing?

Gordon Firemark the podcast lawyer would be great but he would want paying.

Introduction to the AI-Generated Summary
The following summary has been crafted by an AI to provide a concise overview of the Value-4-Value Master Use License. While this summary aims to capture the essence and key points of the agreement, it is not a substitute for the full document. For detailed terms, conditions, and legal implications, please refer to the complete Value-4-Value Master Use License agreement.

Monetization Model: It outlines a system where listeners can instantly pay creators (Owners) directly using digital currencies like Bitcoin for music or video content.

Rights and Responsibilities:

Owner: The creator who uploads the content, maintaining full copyright and control over the work.
Collaborator Shareholders: Those who contributed to the content, receiving shares of the value as defined by the Owner.
Distributors and Apps: Platforms that host or distribute the content must enable value transfer and display copyright information.

Usage Restrictions:

Content must only be used in platforms that support the Value-4-Value system.
No derivative works or synchronization without the Owner's permission.
Public use (like in bars or malls) requires an immediate and clear value exchange mechanism.

Licensing and Distribution:

The Owner controls distribution through a single distributor at a time.
Each piece of content has an ISRC code, which must be displayed with the content.

Financial Aspects:

Distributors and apps can charge fees or take a share of the value, but this must be transparent.
The Owner sets the minimum value share they receive.

Legal and Termination:

The Owner has the right to terminate the agreement at any time, requiring content removal within 7 days.
Legal disputes are to be handled through mediation and arbitration.

Indemnification:

Users must indemnify the Owner against misuse, but the Owner defends against claims related to their creation of the content.

This license aims to ensure that creators are fairly compensated directly by their audience, with clear guidelines on how the content can be used and monetized within a digital ecosystem that supports direct value exchange.

This outlines a sytem I don't think is necessarily feasible. It's highly dependent on particular features of wallets, blockchains, mobile app rules, and federal regulations.


Build a simple contact form

Create a contact form in HTML. The form should be available in both German and English languages.
The form should contain the following fields:

Mrs., Ms., Mr. (should be displayed as Radio buttons)
First Name (text field)
Last Name (text field)
Email Address (text field)
Street (text field)
City  (text field)
Postcode (text field)
Telephone number (text field)
Preference of communication (Email or Telephone as checkboxes)
Comment field (text area)

The validation requirements would be

If no first name is given then at least the Mrs. Ms. Mr. must be selected.
Email address must be provided if the Email checkbox is marked
Telephone number must be provided if Telephone checkbox is marked.
Comment field should have content.

@WilliamReed2004 my last commit makes the call from the JS to the backend (PHP). Please check that on success that when the form is removed, there is an information box to replace it that informs the user that the message was sent.

Finished, also added Error Message


Pickles: change Opt.t variant names

To avoid confusion with the pre-existiong Option.Some and Option.None variants, use Just and Nothing (borrowed from Haskell's Maybe type) instead.
Fixes #13948

!ci-build-me


[QUESTION] How to download CSV file and add the headers accordingly?

Prerequisites

[X] Have read and understood: https://github.com/Maatwebsite/Laravel-Excel/blob/3.1/.github/SUPPORT.md
[X] Checked if your Laravel Excel version is still supported: https://docs.laravel-excel.com/3.1/getting-started/support.html#supported-versions
[X] Checked that your question isn't already asked before.
[X] Filled in the entire issue template

Versions

PHP version: 7.4.1
Laravel version: 6.18.31
Package version: 3.1.20

Description
Text sep= is at the beginning of each file when trying to download .CSV file and therefore I cannot add headers. Not sure is this a bug or not.
screenshot
Also, how to add an empty header value? Currently, it is ignored and headers are displayed on the same line as the first value? Seems like a bug as well, but I'm not sure
Additional Information
My export implements implements FromCollection, WithMapping, WithHeadings, WithEvents, ShouldAutoSize and use use Exportable;
Headings:
public function headings(): array
{
    return [
        '',
        __('header'),
    ];
}

Test rows:
public function map($item): array
{
    return [
        '123'
    ];
}

It's most likely due to your csv settings.

I use these settings, would you change anytthing?
'csv'                    => [
    'delimiter'              => ',',
    'enclosure'              => '"',
    'line_ending'            => PHP_EOL,
    'use_bom'                => false,
    'include_separator_line' => false,
    'excel_compatibility'    => false,
],

sep= appears if I change excel_compatibility to true

I have to change enclosure from " to ; but now every other column is empty and it never start with the A1, B1 etc column.
'csv' => [
    'delimiter'              => '',
    'enclosure'              => ';',
    'line_ending'            => PHP_EOL,
    'use_bom'                => false,
    'include_separator_line' => false,
    'excel_compatibility'    => false,
],

sep= appears if I change excel_compatibility to true

The instruction sep= is used in all the countries where comma is used as decimal delimiter, as Italy. Since Excel export CSV > using semicolons instead of commas in those countries, if you want to be sure that the file can be read in USA or other countries, you NEED

sep=;

on top of file. This is Excel-specific and it might be ignored by other applications.

Source: https://superuser.com/questions/773644/what-is-the-sep-metadata-you-can-add-to-csvs

That's interesting. Thanks a lot for pointing it out!


Styles sometimes don't apply with Svelte Scoped and Svelte 4

UnoCSS version
0.53.4
Describe the bug
There are some edge cases when using Svelte 4 where styles are not generated for some components. I have yet to find the source of the issue but managed to provide a repro showcasing the problem; extracted and stripped down from the real app.
Currently, a workaround is to downgrade Svelte to 3.59.2.
But here comes more weird part. The diffs below are a few examples of changes that make the issue disappear in the repro.
diff --git a/src/routes/technical-studies.section.svelte b/src/routes/technical-studies.section.svelte
index b40e081..27c676c 100644
--- a/src/routes/technical-studies.section.svelte
+++ b/src/routes/technical-studies.section.svelte
@@ -6,9 +6,6 @@

-

-

-

diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
index fa56246..4e581e4 100644
--- a/src/routes/+page.svelte
+++ b/src/routes/+page.svelte
@@ -1,6 +1,5 @@

 <EnvironmentalRegulationSection />

Reproduction
https://github.com/scheatkode/unocss-weirdness-repro
Expected

Actual

System Info
No response
Validations

[X] Read the Contributing Guidelines.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

I tried to reproduce but couldn't get Actual to show, only Expected. Could it be a browser issue?
That being said I have a site that looks like Actual when not using the Svelte-scoped preprocess option.

Even weirder if this turns out to be a case of "works on my machine".

Could it be a browser issue?

I just tested on both Firefox and Chromium, and the issue persists, even with npm instead of pnpm, and Node 20 instead of 18.
Meanwhile I dug a dig deeper and unlike what I mentioned in #2811, I'm starting to think it is a mismatch issue, just not that of the hash; looking at the implementation, it seems to me hash() has a predictable enough output that shouldn't cause mismatches.
I just noticed that (in my faulty case) svelte-scoped loads the stylesheet of the wrong component, hence why this diff suddenly makes things work.
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
index fa56246..4e581e4 100644
--- a/src/routes/+page.svelte
+++ b/src/routes/+page.svelte
@@ -1,6 +1,5 @@

 <EnvironmentalRegulationSection />

The full compiled CSS
._mx-auto_de6akb {
 margin-left:auto;
 margin-right:auto
}
._my-4_de6akb {
 margin-top:1rem;
 margin-bottom:1rem
}
._mt-4_de6akb {
 margin-top:1rem
}
._max-w-screen-xl_de6akb {
 max-width:1280px
}
._flex_de6akb {
 display:flex
}
._btn_de6akb {
 flex-shrink:0;
 cursor:pointer;
 -webkit-user-select:none;
 user-select:none;
 border-radius:0.5rem;
 padding-top:0.75rem;
 padding-bottom:0.75rem;
 padding-left:1rem;
 padding-right:1rem;
 font-size:0.875rem;
 line-height:1.25rem;
 font-weight:600;
 line-height:1.625;
 letter-spacing:0.025em;
 text-transform:uppercase;
 --un-text-opacity:1;
 color:rgba(249,250,251,var(--un-text-opacity));
 text-decoration:none;
 --un-shadow:var(--un-shadow-inset) 0 4px 6px -1px var(--un-shadow-color, rgba(0,0,0,0.1)),var(--un-shadow-inset) 0 2px 4px -2px var(--un-shadow-color, rgba(0,0,0,0.1));
 box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)
}
._flex-col_de6akb {
 flex-direction:column
}
._justify-center_de6akb {
 justify-content:center
}
._gap-10_de6akb {
 grid-gap:2.5rem;
 gap:2.5rem
}
._gap-2_de6akb {
 grid-gap:0.5rem;
 gap:0.5rem
}
._rounded-full_de6akb {
 border-radius:9999px
}
._btn-primary_de6akb {
 --un-bg-opacity:1;
 background-color:rgba(151,75,220,var(--un-bg-opacity))
}
._btn-primary_de6akb:hover {
 --un-bg-opacity:1;
 background-color:rgba(135,57,200,var(--un-bg-opacity))
}
._text-4xl_de6akb {
 font-size:2.25rem;
 line-height:2.5rem
}
._text-lg_de6akb {
 font-size:1.125rem;
 line-height:1.75rem
}
._text-xl_de6akb {
 font-size:1.25rem;
 line-height:1.75rem
}
._font-bold_de6akb {
 font-weight:700
}
._leading-relaxed_de6akb {
 line-height:1.625
}
._tracking-wide_de6akb {
 letter-spacing:0.025em
}
._text-gray-100_de6akb {
 --un-text-opacity:1;
 color:rgba(243,244,246,var(--un-text-opacity))
}
@media(prefers-reduced-motion: no-preference) {
 ._btn_de6akb {
  transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke;
  transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration:150ms
 }
}
@media(min-width: 768px) {
 ._md\:flex-row_de6akb {
  flex-direction:row
 }
}
.s-nPEbjpu1bsE5 {
}

This is TechnicalStudiesSection's stylesheet.

We may not be out of the weeds yet, but I indeed got your same problem in opening your repro in Stackblitz. You had some odd imports in your uno.config.ts that may have been messing with Uno - I'm not sure. After cleaning up that file a bit, I'm no longer able to reproduce your bug. Take a look at https://stackblitz.com/edit/github-mq3rvh?file=uno.config.ts and adjust your uno.config.ts accordingly. If you still have a bug, please update us on how to reproduce it and we can go from there.

Hey @jacob-8. Thanks for taking the time to review this.
I can still reproduce the issue on stackblitz with this change:
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
index 50ad16e..fa56246 100644
--- a/src/routes/+page.svelte
+++ b/src/routes/+page.svelte
@@ -1,6 +1,6 @@

 <EnvironmentalRegulationSection />

Opening the inspector, we can clearly see that the stylesheet is loaded for the wrong component.

Although the root cause remains uncertain as it was difficult providing a reproduction, with these observations I think we managed to identify the issue to some extent.

@scheatkode, your repro does not make sense to me as there is no option to change from a/src to b/src since src sits in the root and it is not a monorepo. As to toggling import TechnicalStudiesSection from "./technical-studies.section.svelte"; on and off that produces no visible change.
If you're running into a bug by changing your entire directory name with the dev server running and importing a file you don't use (just going off of your repro), and Svelte is getting confused by providing the wrong stylesheet, I suspect your running into some Svelte or Vite bug caused by your curious scenario. Please explain more because there is nothing here that allows for debugging.

your repro does not make sense to me as there is no option to change from a/src to b/src since src sits in the root and it is not a monorepo.

That's how diffs and patch files work.

As to toggling import TechnicalStudiesSection from "./technical-studies.section.svelte"; on and off that produces no visible change.

For some reason, some changes only seem to happen on a server restart.

Svelte is getting confused by providing the wrong stylesheet, I suspect your running into some Svelte or Vite bug caused by your curious scenario.

Curious indeed. As you may have noticed, this isn't an easily reproducible issue which disappears when I stop using svelte-scoped. So that was my first clue.
Please bear in mind that svelte-scoped may only be a factor contributing to the confusion and the issue may very well originate from the Svelte/Vite side. I'm trying to be thorough in hunting down the cause.

Please explain more because there is nothing here that allows for debugging.

Here are the steps to get to my previous observations.

Open this stackblitz
Inspect the rendered iframe
Take note of the data-vite-dev-id attributes of the injected styles.

You'll notice that TechnicalStudiesSection's stylesheet is injected while EnvironmentalRegulationSection's is nowhere to be found, even when using TechnicalStudiesSection in the markup.

On opening your Stackblitz link I get the error twice in 4 tries. Once I fork and it reloads for me to play with it I never get the error, so I'm out of ideas as I'm not able to toggle things on and off and see it come and go.
Question though, have you ever had an issue when you weren't importing an unused import?

On opening your Stackblitz link I get the error twice in 4 tries. Once I fork and it reloads for me to play with it I never get the error, so I'm out of ideas as I'm not able to toggle things on and off and see it come and go.

This is very weird. I just reproduced the issue multiple consecutive times on my end, using the same Stackblitz, and forking to different ones. I'm not sure what's happening differently as WebContainers are supposed to eliminate the "works on my machine" case.

Question though, have you ever had an issue when you weren't importing an unused import?

Yes, here's a repro of the issue while using the import.

I've a related issue (need to do a min repro): after updating to Svelte 4.x, all icons disappeared

Is there any resolution for this issue ?

No, we still don't have an absolute bare-minimum reproducible example that can be tested against. As soon as I make @scheatkode's repro my own or if I run it locally with both npm and pnpm there are no issues to be found.
I have nothing to go off of. However, since you have the problem locally, @scheatkode, you do have the ability to debug (add/remove pieces), as do the other two of you who've reported trouble.
Here's what you need to do. Don't take your big app and pull out pieces. Start with the absolute bare minimum: npm create svelte@latest and add just one piece at a time until you find your bug. After creating the repo, follow the Svelte scoped install instructions, then add your html and uno customizations to see where the problem hits. If it doesn't hit then it's likely a problem elsewhere.
I noted that your repro has four missing imports in your app.html file.  As I mentioned I'm not able to test the bug because it always works fine for me as soon as I run the code myself.
There's also a lot of other variables. You're using a .scss file import. You have i18n. You have unused imports. You have a package-lock.json and pnpm-lock.yml - which are you running? Your Svelte files environmental-regulation.section.svelte are irregularly named. That shouldn't be a problem but I don't have a clue if something in the Svelte, Vite-Svelte, Vite pipeline changed as to introduce a bug for files not named according to convention like EnvironmentalRegulation.svelte.
Thanks in advance to each of you for digging in a bit more. Minimal repros can be hard to nail down, but their critical to get anywhere with this. Also, it's helpful to share more info about your machine, npm/pnpm/yarn, and any other relevant context.

This will require a few hours/days of debugging on my end which unfortunately, I do not have enough bandwidth for at the moment.
I'm stuck on Svelte 3 for the time being until I can uncover the source of the problem, which will then allow me to provide a minimal reproduction to the relevant tool, whether it be Vite, Svelte, or Svelte-Scoped.

I noted that your repro has four missing imports in your app.html file.
There's also a lot of other variables. You're using a .scss file import. You have i18n. You have unused imports. You have a package-lock.json and pnpm-lock.yml - which are you running? Your Svelte files environmental-regulation.section.svelte are irregularly named. That shouldn't be a problem but I don't have a clue if something in the Svelte, Vite-Svelte, Vite pipeline changed as to introduce a bug for files not named according to convention like EnvironmentalRegulation.svelte.

My apologies for the extra crux, as you said, these are pieces pulled from a bigger app after some debugging of my own. However I already eliminated these possibilities already.
Thank you all for your patience, I will get back to this as soon as time allows.

Minor update: I reduced the surface of the issue down to this code. Something isn't working quite right in here which makes the generate method return empty CSS. Hopefully I will be able to provide a failing test case once I manage to pinpoint the origin of the problem.
Unfortunately, that's all the time I have for this at the moment, I'll get back to this when I can.

So after much wrestling I did manage to pinpoint the origin of the problem, which explains why this was such a nasty subtle bug that's hard to reproduce and "works on my machine".

Yes, nasty, indeed. Thanks for your hard work on this, I'll try to review soon, sorry for the delay!


Strip "҉" character

I tested the library with the following Zalgo text:
var crazyOnes = "ĉ̣̜̱͚͔̘̗̋ͭͥ̋r̥̗͊̀ͨ̾͋̾ͤa̤̜̟͓̣̗͋͊͜ẓ̪̳̤̯̩y͂́ ̅̀̈́͂҉̙̳̠̦̗̣ǫ̘̠͚͎̲͉ͩͪ͆̔n̝ͣͪ̍ͦ̋͋ͣe̟̳̙̙̺̲͝s̠̖͇̺̞̤";
stripCombiningMarks(crazyOnes); // "crazy ҉ones"

So it looks like that the character  ҉ doesn't get stripped. 😢
But it should be stripped because it ruins the text rendering.
Screenshot:

That symbol is U+0489 COMBINING CYRILLIC MILLIONS SIGN which has Line_Break=Combining_Mark. Currently we’re only including symbols with Block=Combining*.

Ok, thanks for clarification and publishing v1.0. 👍


Add a generic gathering function to Ingredient

This is the first part of #348. It adds the generic gathering function to the Ingredient so that all gathering functions raise a CircularDependencyError if a circular dependency exists and reduces code duplication. It also simplifies the creation of new gathering functions by introducing a decorator gather_from_ingredients:
class Ingredient:
    # ...
    @gather_from_ingredients
    def gather_something(self, ingredient):
        # generator that yields something for ingredient
        yield ingredient.that_something

And, it removes obsolete code from print_named_configs command, that now is replaced by the new gathering functionality.

Coverage increased (+0.004%) to 83.855% when pulling 2548e6098b745e8ca2bf20a4dbec78b09c77c1e0 on thequilo:generic-gathering into 83a5ea95c3585f1d5e61b45a4d2ab214775abd95 on IDSIA:master.

Very nice! Thank you.


Fix committees/contact page typos

Change contact page committee title to correct year
Remove invalid URLs from new committee data file
Add previous committee to previous committees page

Also:

Fix compile errors caused by colon in vote-motion-1-catering.md

Changes seem to be implemented. Do you still want the removal of your URL?

Not sure how that change ended up in there, you can leave them in 🙂. Good to see someone doing some repo maintenance! 🌷


EasyCLA v2 - Member Portal API

Epic to support the EasyCLA v2 member portal API development.

v2 Company portal work is complete. Closing ticket.


Cumsum

Implements cumsum operation

This change is

Thanks. Left a few comments - mostly how to do some transposing and rehsaping before you call the webgl shader. This will simplify the work a lot and allow summation across arbitrary axis.

Reviewed 5 of 8 files at r1.
Review status: 5 of 8 files reviewed at latest revision, all discussions resolved, some commit checks failed.

src/tensor.ts, line 420 at r1 (raw file):

  /**
   * Returns a `Tensor` that has expanded rank, by inserting a dimension

this jsdoc doesn't seem right. Is this taken from expandDim? Did you mean Compute the cumulative sum of the tensor x along axis.

src/tensor.ts, line 423 at r1 (raw file):

   * into the tensor's shape. See `expandDims` for details.
   *
   * @param axis The dimension index at which to insert shape of 1. Defaults to

the axis along which to sum.

src/kernels/webgl/cumsum_gpu.ts, line 49 at r1 (raw file):

        ${dtype} adjustableCoords = ${dtype}(${outputCoords});
        int finalCoord = int(${finalCoord});

remove whitespace

src/kernels/webgl/cumsum_gpu.ts, line 68 at r1 (raw file):

}

function getCoords(rank: number, name: string): string {

you can simplify this shader a bit if you do the following:

transpose to make axis be the inner-most axis
reshape to 2D where all other-most shapes are flattened
shader operates always on a 2d tensor and sums along it's inner-most axis
after shader runs, undo the reshape, and undo the transpose

src/ops/array_ops.ts, line 1147 at r1 (raw file):

   * x.cumsum().print();
   * ```
   *

add one more code snippet with 2d and sum along axis 0

src/ops/array_ops.ts, line 1151 at r1 (raw file):

   * @param axis The axis on which to perform the sum. Optional. Defaults to 0.
   * @param exclusive Whether to perform exclusive cumulative sum. Optional.
   *     Defaults to false.

Expand a bit on what exclusive means.

src/ops/array_ops.ts, line 1164 at r1 (raw file):

    return ENV.engine.runKernel(
               backend => backend.cumsum(x, axis, exclusive, reverse), {x},

this won't work for axis that are not inner most unless you transpose to make the axis be inner-most, do the computation and then transpose back again. See https://github.com/tensorflow/tfjs-core/blob/master/src/ops/reduction_ops.ts#L118 for how to transpose.

src/ops/array_ops_test.ts, line 2295 at r1 (raw file):

  });

  it('2D reverse exclusive', () => {

add test for 2d with axis=0

Comments from Reviewable

added the transpose so that it works on any axis.

Review status: 5 of 8 files reviewed at latest revision, 8 unresolved discussions, some commit checks failed.

src/tensor.ts, line 420 at r1 (raw file):
Previously, dsmilkov (Daniel Smilkov) wrote…
this jsdoc doesn't seem right. Is this taken from expandDim? Did you mean Compute the cumulative sum of the tensor x along axis.

Done.

src/tensor.ts, line 423 at r1 (raw file):
Previously, dsmilkov (Daniel Smilkov) wrote…
the axis along which to sum.

Done.

src/kernels/webgl/cumsum_gpu.ts, line 49 at r1 (raw file):
Previously, dsmilkov (Daniel Smilkov) wrote…
remove whitespace

Done.

src/kernels/webgl/cumsum_gpu.ts, line 68 at r1 (raw file):
Previously, dsmilkov (Daniel Smilkov) wrote…
you can simplify this shader a bit if you do the following:

transpose to make axis be the inner-most axis
reshape to 2D where all other-most shapes are flattened
shader operates always on a 2d tensor and sums along it's inner-most axis
after shader runs, undo the reshape, and undo the transpose

added transpose/undo transpose in array_ops so it applies for both cpu and gpu.

src/ops/array_ops.ts, line 1147 at r1 (raw file):
Previously, dsmilkov (Daniel Smilkov) wrote…
add one more code snippet with 2d and sum along axis 0

Done.

src/ops/array_ops.ts, line 1151 at r1 (raw file):
Previously, dsmilkov (Daniel Smilkov) wrote…
Expand a bit on what exclusive means.

done

src/ops/array_ops.ts, line 1164 at r1 (raw file):
Previously, dsmilkov (Daniel Smilkov) wrote…
this won't work for axis that are not inner most unless you transpose to make the axis be inner-most, do the computation and then transpose back again. See https://github.com/tensorflow/tfjs-core/blob/master/src/ops/reduction_ops.ts#L118 for how to transpose.

Done.

src/ops/array_ops_test.ts, line 2295 at r1 (raw file):
Previously, dsmilkov (Daniel Smilkov) wrote…
add test for 2d with axis=0

Done.

Comments from Reviewable

Reviewed 1 of 4 files at r3.
Review status: 2 of 8 files reviewed at latest revision, 8 unresolved discussions.

src/kernels/webgl/cumsum_gpu.ts, line 3 at r4 (raw file):

/**
 * @license
 * Copyright 2017 Google Inc. All Rights Reserved.

2018

src/ops/array_ops.ts, line 1188 at r4 (raw file):

    };
    let value =  ENV.engine.runKernel(
      backend => backend.cumsum(permutedX, axis, exclusive, reverse),

indent 2 more

src/ops/array_ops_test.ts, line 2349 at r4 (raw file):

  it('1D reverse', () => {
    const res = tf.tensor1d([1, 2, 3, 4]).cumsum(0, false, true);

pull these false / true to variables for readability

src/ops/array_ops_test.ts, line 2394 at r4 (raw file):

  it('3D standard', () => {
    const res =tf.tensor3d([[[0, 1], [2, 3]], [[4, 5], [6, 7]]]).cumsum(2);

spacing here (btw if you use vscode this will auto format for you)

Comments from Reviewable

Review status: 2 of 8 files reviewed at latest revision, 12 unresolved discussions, all commit checks successful.

src/kernels/webgl/cumsum_gpu.ts, line 3 at r4 (raw file):
Previously, nsthorat (Nikhil Thorat) wrote…
2018

Done.

src/ops/array_ops.ts, line 1188 at r4 (raw file):
Previously, nsthorat (Nikhil Thorat) wrote…
indent 2 more

Done.

src/ops/array_ops_test.ts, line 2349 at r4 (raw file):
Previously, nsthorat (Nikhil Thorat) wrote…
pull these false / true to variables for readability

Done.

src/ops/array_ops_test.ts, line 2394 at r4 (raw file):
Previously, nsthorat (Nikhil Thorat) wrote…
spacing here (btw if you use vscode this will auto format for you)

Done.

Comments from Reviewable


Adding LICENSE, update README

I think you should keep the TF license headers, otherwise looks fine.

Sounds good, revised


Added all cpp solutions

Added all cpp solutions for week2 contest 1

@ShivamButale Thanks for the PR!


Update README.md with release link for CLI tool

Public-Facing Changes

N/A

Description

Update README.md with release link for CLI tool

See also: https://github.com/foxglove/mcap/issues/944 & https://github.com/orgs/foxglove/discussions/796

Filed FG-6144 to fix


[ISSUE #3450]Add brpc-plugin&starter-plugin-brpc

#3450

Make sure that:

[x] You have read the contribution guidelines.
[x] You submit test cases (unit or integration tests) that back your changes.
[ ] Your local test passed ./mvnw clean install -Dmaven.javadoc.skip=true.

Codecov Report

Merging #4300 (9652170) into master (868afc1) will decrease coverage by 0.38%.
The diff coverage is 35.10%.

:exclamation: Current head 9652170 differs from pull request most recent head 1ee04e5. Consider uploading reports for the commit 1ee04e5 to get more accurate results

@@             Coverage Diff              @@
##             master    #4300      +/-   ##
============================================
- Coverage     68.17%   67.79%   -0.39%
- Complexity     7354     7389      +35
============================================
  Files          1004     1013       +9
  Lines         28422    28694     +272
  Branches       2547     2568      +21
============================================
+ Hits          19378    19454      +76
- Misses         7557     7733     +176
- Partials       1487     1507      +20

Impacted Files
Coverage Δ

...a/org/apache/shenyu/common/constant/Constants.java
66.66% <ø> (ø)

.../common/dto/convert/plugin/BrpcRegisterConfig.java
0.00% <0.00%> (ø)

...he/shenyu/plugin/base/RpcParamTransformPlugin.java
84.21% <ø> (ø)

...ugin/brpc/exception/ShenyuBrpcPluginException.java
0.00% <0.00%> (ø)

...henyu/plugin/brpc/handler/BrpcMetaDataHandler.java
0.00% <0.00%> (ø)

.../shenyu/plugin/context/path/ContextPathPlugin.java
85.71% <ø> (ø)

...nyu/plugin/response/strategy/RPCMessageWriter.java
84.61% <0.00%> (ø)

...rg/apache/shenyu/plugin/rewrite/RewritePlugin.java
72.22% <ø> (ø)

...che/shenyu/plugin/brpc/proxy/BrpcProxyService.java
2.08% <2.08%> (ø)

...nyu/plugin/brpc/handler/BrpcPluginDataHandler.java
25.00% <25.00%> (ø)

... and 18 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Use cross-env for script env variables

Should allow better windows support
What does this PR do?
Uses cross-env to set script environment variables in a cross platform way.
Links to related issues
Checklist

[ ] added a test, or explain why one is not needed/possible...
[ ] no unrelated changes
[ ] asked someone for a code review
[ ] joined #karrot-dev channel at https://slackin.yunity.org
[ ] added an entry to CHANGELOG.md (description, pull request link, username(s))

Cool!
But there might still be a problem in the jest case, as we need to tell node to use UTC as time zone. That seems impossible on Windows without changing the global system time zone: https://github.com/nodejs/node/issues/4230#issuecomment-224093946
There's https://github.com/capaj/set-tz, but:

On windows, when you call setTZ() it effectively changes your whole OS timezone so beware-if you kill the process, you'll need to manually revert back after you're done-I am assuming you'r process is short-lived.

Yup, I guess that's something in addition to this.
That is quite a caveat for set-tz I think. Maybe merge this one as this needs fixing anyway as windows is interpreting TZ as a command...


Introduce WalletModel and loadWallet functionality

When a user selects a wallet from the WalletSelect menu the wallet controller can now load the wallet data in and the name and balance will appear in the WalletBadge

forgot to push some stuff?
some things seem to be missing and CI is failing

update from 26b5ef9 to d155eed

Unloaded wallets when shutdown is requested.

Update from d155eed to b41a0e4

Additional #ifdef to exlude functionality when --disable-wallet

All of the issues commented so far are going to explode the complexity of this PR beyond anything reviewable. I just wanted to create the boilerplate for the classes that the UI will interact with. Each of the above issues should be a separate PR as thate functionality gets added to the GUI.
The only thing this is intended to do is list the wallets in the folder and when one is selected it loads and shows the very basic formatted balance. The more advanced formatting, for instance, should be added and reviewed in its own PR as well as they asynchronous loading and event handling.


Does not work on google chrome with API call

When using a simple js file with which import katex and katex.render("MATH EXPRESSION like \frac{2}{3}") work correctly on firefox, but in chrome it display \frac{2}{3}.

import katex from 'katex'; const elem = document.getElementById("equationLatex"); katex.render("\\frace{2}{3}", elem)

If the above code is a copy-paste, then the issue may be the typo: \frace Vs. \frac?

We'd need an actual reproduction (e.g. CodePen or repo) to help you debug. KaTeX is used on Chrome all the time, so there's likely a bug in the way you're using it, as @JacobBeaudry suggests. Please also check the console log to see if there are any error messages.

this is the result with this code (copy and past) :
const elem = document.getElementById("equationLatex"); katex.render("1000 \\, ln \\alpha = " + equation[3] + "\\frac{10^6}{T^2} + " + equation[4]+ "\\frac{10^3}{T} + " + equation[5], elem, {throwOnError: false});

Like I said, we'd need a full reproduction. Your code sample doesn't define equation, so that causes an error. I just tried the following on https://katex.org:
const elem = document.getElementById("demo-output");
katex.render("1000 \\, ln \\alpha = \\frac{10^6}{T^2} + \\frac{10^3}{T} + ", elem, {throwOnError: false});

and it worked fine:

Effectively if i do a new project with only katex it work on google chrome. I guess it is a side effect of something in my current code. Firefox print correctly a  with  inside, and it print everything correctly. But Google chrome got a  in his . And this is the  that is display, with the raw math formul.
I use mathjax and plotly for something else in the same code. Can it create an error like that ?


Xrm.Page deprecated

please update deprecated Xrm.page entry in Use form scripting

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

ID: 9ae24208-fbdf-fcda-4702-f55477cb9c11
Version Independent ID: b1549c7c-1e81-8edf-47af-088b7fffdff2
Content: Control access to forms in Dynamics 365 for Customer Engagement
Content Source: ce/customize/control-access-forms.md
Service: crm-online
GitHub Login: @Mattp123
Microsoft Alias: matp

I ran in to this issue one day, but have not seen the error again. We had a custom JavaScript that seems to have caused the issue, but seems to not be re-producible at the moment.

@eduarddalm Thank you for your feedback. This has been fixed then merged to the master branch and is pending merge to the live branch for publish. Closing issue.


any plans for azure support?

or any other depth camera?>e

Not at the moment. Always happy to review contributions!


💄(testimonies) new content impacting view: scroll through testimonies

since we're not sure on the actually wanted layout in figma I just made the wrapping div of testimonies overflow, styled a bit the scrollbar, and made it so that mouse users can "scroll" easily.
i guess this is acceptable for now and we change when we get specific layout info?
https://github.com/numerique-gouv/lasuite-landingpage/assets/221253/c0c42683-77ff-4b3f-a219-7788c6b19e1a

What you propose is acceptable for a first iteration.
What do you think of using the props slidesPerView on SwiperWrapper component. The SwiperWrapper will always be displayed, and we would update its props value based on the current window width. On desktop, the props slidesPerView would be equal to 3, the dot will indicate that more slides are available. On mobile the props slidesPerView would be equal to 1.
My suggestion might be a bit "hacky" and requiring too much JS for smth that could be done in pure HTML and CSS as you propose. Let's discuss it

I discussed it with @johann, he would prefer the latter suggestion.

Done!
And now with keyboard nav we can read all testimonies (was missing).
https://github.com/numerique-gouv/lasuite-landingpage/assets/221253/a4c809d0-eebd-43ba-b51d-60cac3d232f7

Just need to remove my superfluous yarn.lock change


CUDA error when flooding server with new adapter

It seems that if the server is flooded with requests for a new adapter it needs to download, a race condition can arise leading to CUDA errors. Needs more investigation.

Hmm, nevermind, this may be specific to the adapter.

Still, it is curious that even with CUDA_LAUNCH_BLOCKING=1 we see an error here:
  File "/data/lorax/server/lorax_server/cli.py", line 85, in serve
    server.serve(
  File "/data/lorax/server/lorax_server/server.py", line 279, in serve
    asyncio.run(
  File "/opt/conda/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/opt/conda/lib/python3.10/asyncio/base_events.py", line 636, in run_until_complete
    self.run_forever()
  File "/opt/conda/lib/python3.10/asyncio/base_events.py", line 603, in run_forever
    self._run_once()
  File "/opt/conda/lib/python3.10/asyncio/base_events.py", line 1909, in _run_once
    handle._run()
  File "/opt/conda/lib/python3.10/asyncio/events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "/opt/conda/lib/python3.10/site-packages/grpc_interceptor/server.py", line 165, in invoke_intercept_method
    return await self.intercept(
> File "/data/lorax/server/lorax_server/interceptor.py", line 38, in intercept
    return await response
  File "/opt/conda/lib/python3.10/site-packages/opentelemetry/instrumentation/grpc/_aio_server.py", line 82, in _unary_interceptor
    raise error
  File "/opt/conda/lib/python3.10/site-packages/opentelemetry/instrumentation/grpc/_aio_server.py", line 73, in _unary_interceptor
    return await behavior(request_or_iterator, context)
  File "/data/lorax/server/lorax_server/server.py", line 81, in Prefill
    batch = self.model.batch_type.from_pb(
  File "/data/lorax/server/lorax_server/models/flash_mistral.py", line 202, in from_pb
    adapter_indices = torch.cat(adapter_indices_list).to(dtype=torch.int64, device=device)
RuntimeError: CUDA error: an illegal memory access was encountered
Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.

This would seem to suggest that the adapter index isn't set correctly.

Okay, seems this error occurs because a previous SGMV call failed. Must be something that isn't getting cleaned up properly.

Problem seems related to the LM head:
layer lm_head rank 64
lora_b_sgmv_cutlass
- y=torch.Size([85, 32000])
- v=torch.Size([85, 64])
- tmp=torch.Size([60])
- wb_ptr=torch.Size([1])
- s_start=torch.Size([1])
- s_end=torch.Size([1])
- layer_idx=0

segments
- s_start=tensor([0], device='cuda:0', dtype=torch.int32)
- s_end=tensor([4165], device='cuda:0', dtype=torch.int32) 0

Adapters:
base_model.model.lm_head.lora_A.weight torch.Size([64, 4096])
base_model.model.lm_head.lora_B.weight torch.Size([32000, 64])

Repro adapter: FelixChao/Mistral-7b-Chem-TW-Lora

Here's the full stack trace with CUDA_LAUNCH_BLOCKING=1
sgmv_cutlass gemm.run failed: Error Internal
interceptor.py:41 Method Prefill encountered an error.
Traceback (most recent call last):
  File "/usr/src/lorax/server/lorax_server/cli.py", line 164, in <module>
    app()
  File "/opt/conda/lib/python3.10/site-packages/typer/main.py", line 311, in __call__
    return get_command(self)(*args, **kwargs)
  File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/opt/conda/lib/python3.10/site-packages/typer/core.py", line 778, in main
    return _main(
  File "/opt/conda/lib/python3.10/site-packages/typer/core.py", line 216, in _main
    rv = self.invoke(ctx)
  File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/opt/conda/lib/python3.10/site-packages/typer/main.py", line 683, in wrapper
    return callback(**use_params)  # type: ignore
  File "/usr/src/lorax/server/lorax_server/cli.py", line 83, in serve
    server.serve(
  File "/usr/src/lorax/server/lorax_server/server.py", line 309, in serve
    asyncio.run(
  File "/opt/conda/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/opt/conda/lib/python3.10/asyncio/base_events.py", line 636, in run_until_complete
    self.run_forever()
  File "/opt/conda/lib/python3.10/asyncio/base_events.py", line 603, in run_forever
    self._run_once()
  File "/opt/conda/lib/python3.10/asyncio/base_events.py", line 1909, in _run_once
    handle._run()
  File "/opt/conda/lib/python3.10/asyncio/events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "/opt/conda/lib/python3.10/site-packages/grpc_interceptor/server.py", line 165, in invoke_intercept_method
    return await self.intercept(
> File "/usr/src/lorax/server/lorax_server/interceptor.py", line 38, in intercept
    return await response
  File "/opt/conda/lib/python3.10/site-packages/opentelemetry/instrumentation/grpc/_aio_server.py", line 82, in _unary_interceptor
    raise error
  File "/opt/conda/lib/python3.10/site-packages/opentelemetry/instrumentation/grpc/_aio_server.py", line 73, in _unary_interceptor
    return await behavior(request_or_iterator, context)
  File "/usr/src/lorax/server/lorax_server/server.py", line 90, in Prefill
    generations, next_batch = self.model.generate_token(batch)
  File "/opt/conda/lib/python3.10/contextlib.py", line 79, in inner
    return func(*args, **kwds)
  File "/usr/src/lorax/server/lorax_server/models/flash_causal_lm.py", line 956, in generate_token
    out, speculative_logits = self._try_generate_token(batch, adapter_data)
  File "/usr/src/lorax/server/lorax_server/models/flash_causal_lm.py", line 915, in _try_generate_token
    raise e
  File "/usr/src/lorax/server/lorax_server/models/flash_causal_lm.py", line 912, in _try_generate_token
    return self.forward(batch, adapter_data)
  File "/usr/src/lorax/server/lorax_server/models/flash_causal_lm.py", line 891, in forward
    logits = model.forward(
  File "/usr/src/lorax/server/lorax_server/models/custom_modeling/flash_mistral_modeling.py", line 591, in forward
    logits, speculative_logits = self.lm_head(hidden_states, adapter_data)
  File "/opt/conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/opt/conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl
    return forward_call(*args, **kwargs)
  File "/usr/src/lorax/server/lorax_server/utils/layers.py", line 699, in forward
    logits = super().forward(input, adapter_data)
  File "/usr/src/lorax/server/lorax_server/utils/layers.py", line 662, in forward
    self.forward_layer_type(result, input, adapter_data, self.layer_name, start_idx, end_idx)
  File "/usr/src/lorax/server/lorax_server/utils/layers.py", line 548, in forward_layer_type
    lora_b_sgmv_cutlass(
  File "/usr/src/lorax/server/lorax_server/utils/sgmv.py", line 183, in lora_b_sgmv_cutlass
    _kernels.sgmv_cutlass(y, v, wb_ptr, s_start, s_end, tmp, layer_idx)
RuntimeError: No suitable kernel. dtype=Half
interceptor.py:41 Method ClearCache encountered an error.
Traceback (most recent call last):
  File "/usr/src/lorax/server/lorax_server/cli.py", line 164, in <module>
    app()
  File "/opt/conda/lib/python3.10/site-packages/typer/main.py", line 311, in __call__
    return get_command(self)(*args, **kwargs)
  File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/opt/conda/lib/python3.10/site-packages/typer/core.py", line 778, in main
    return _main(
  File "/opt/conda/lib/python3.10/site-packages/typer/core.py", line 216, in _main
    rv = self.invoke(ctx)
  File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/opt/conda/lib/python3.10/site-packages/typer/main.py", line 683, in wrapper
    return callback(**use_params)  # type: ignore
  File "/usr/src/lorax/server/lorax_server/cli.py", line 83, in serve
    server.serve(
  File "/usr/src/lorax/server/lorax_server/server.py", line 309, in serve
    asyncio.run(
  File "/opt/conda/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/opt/conda/lib/python3.10/asyncio/base_events.py", line 636, in run_until_complete
    self.run_forever()
  File "/opt/conda/lib/python3.10/asyncio/base_events.py", line 603, in run_forever
    self._run_once()
  File "/opt/conda/lib/python3.10/asyncio/base_events.py", line 1909, in _run_once
    handle._run()
  File "/opt/conda/lib/python3.10/asyncio/events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "/opt/conda/lib/python3.10/site-packages/grpc_interceptor/server.py", line 165, in invoke_intercept_method
    return await self.intercept(
> File "/usr/src/lorax/server/lorax_server/interceptor.py", line 38, in intercept
    return await response
  File "/opt/conda/lib/python3.10/site-packages/opentelemetry/instrumentation/grpc/_aio_server.py", line 82, in _unary_interceptor
    raise error
  File "/opt/conda/lib/python3.10/site-packages/opentelemetry/instrumentation/grpc/_aio_server.py", line 73, in _unary_interceptor
    return await behavior(request_or_iterator, context)
  File "/usr/src/lorax/server/lorax_server/server.py", line 55, in ClearCache
    self.cache.delete(request.id)
  File "/usr/src/lorax/server/lorax_server/cache.py", line 40, in delete
    torch.cuda.empty_cache()
  File "/opt/conda/lib/python3.10/site-packages/torch/cuda/memory.py", line 162, in empty_cache
    torch._C._cuda_emptyCache()
RuntimeError: CUDA error: an illegal memory access was encountered
Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.


docs: Update project details in the README

Add project details and requirements

@MikeRalphson Updated the PR with the suggestions. PTAL.


facing digio.start method issue on android

Hi my app crashes on calling method, digio.start, method workign fine on IOS and opening digio layouts , but creating problem in android, here is my code
const config: DigioConfig = { environment: Environment.SANDBOX };
        const digio = new Digio(config);

        const resp=  await digio.start(documentId, identifier, tokenId);

issue resolved, i forgot to add these steps
Add digioKycworkflow.aar file inside your react project under android/app/libs folder. Download digio_kyc_workflow-4.0.15.aar
Add below in your project under build.gradle file inside dependencies
implementation fileTree(dir: 'libs', include: ['*.aar'])


citations format

The citations in the manuscript are sometimes weird, which should be names followed by years. Please correct the citation on Line 37, and Line 44.

Fixed in https://github.com/finsberg/gotranx/pull/104


Issue #3 PR

HTML page (index.html) with requirements fulfilled.
Netlify Site
Closes #3

Hey, thanks for the input. I have been forming my html file for issue #4 to be inline with the creation of my portfolio site.


"Go to definition": confusing behaviour if function defined conditionally

Consider the following:
if __name__ == "__main__":
   def g():
      pass
   g()

"Go to definition" on g() says "No definition found for 'g'".
def g():
   pass

if __name__ == "__main__":
   def g():
      pass
   g()

"Go to definition" on g() moves the cursor to the first definition of g, not to the second.
On the other hand, in
def g():
   pass

if True:
   def g():
      pass
   g()

"Go to definition" on g() moves the cursor to the second definition of g.
Is it supposed to be like this?

VS Code version: 1.28.1
Python Extension version: 2018.9.0
OS: Xubuntu 18.04
Python 3.6

Are you using Jedi or the new language server?

If you don't have "python.jediEnabled": false then you are using Jedi.

Closing as this is an upstream issue which we don't have direct control or influence over.


hotspot: 1.4.0 -> 1.4.1

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/hotspot/versions.
meta.description for hotspot is: A GUI for Linux perf
meta.homepage for hotspot is: https://github.com/KDAB/hotspot
Updates performed

Version update

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.4.1 with grep in /nix/store/rkz5x4y6b408i65q5qd4lk87k2jrrl5l-hotspot-1.4.1
found 1.4.1 in filename of file in /nix/store/rkz5x4y6b408i65q5qd4lk87k2jrrl5l-hotspot-1.4.1

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
hotspot

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/rkz5x4y6b408i65q5qd4lk87k2jrrl5l-hotspot-1.4.1 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A hotspot https://github.com/r-ryantm/nixpkgs/archive/7e98c597a1bbeb76da4267f2ddee0aa9475b1f9d.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/rkz5x4y6b408i65q5qd4lk87k2jrrl5l-hotspot-1.4.1
ls -la /nix/store/rkz5x4y6b408i65q5qd4lk87k2jrrl5l-hotspot-1.4.1/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

hotspot

Maintainer pings
cc @nh2 for testing.

@ofborg build hotspot hotspot.passthru.tests


No devices or sensors are recognized

Before submitting a new issue

[ ] I redownloaded the latest release and restarted Home Assistant
[ ] I've checked known issues
[ ] I've enabled debug logs and attached the relevant logs to this ticket

Problem description
Please describe what you were trying to do, what happened, and what you expected to happen.
No devices or sensors are recognized or present for me, why? what am I doing wrong??
I have to say that I am new to the Home Assistant area
greetings Jens
Put your debug logs here
Be careful not to include tokens, emails, and other personal information

Hi there,
We use GitHub issues as a place to track bugs and other development-related issues.
Please see the link below to our dedicated support line:
Help Center :  Click Here
Ticket ID: WT240
Note: Click on the live chat icon at the bottom corner of the page to start a conversation.

Me ocurre algo similar. Estos sensores que adjunto en la captura de pantalla han dejado de funcionar.


TypeScript Pipline Types for different models?

Question
Is there a suggested way to get types for the different models? Right now after I create a pipline, like one of the following:
const segmenter = await pipeline('image-segmentation', 'Xenova/face-parsing');
// or
const extractor = await pipeline(`feature-extraction`, `Xenova/UAE-Large-V1`, {
  quantized: true, // Set this to false to use the full (unquantized) model
});

All the methods and returned values are (...args: any[]) => any - finding it hard to work with the methods and returned values.
I realize each model returns different outputs, and I'm fairly new to the whole convertion process, but are these types kept somewhere in the Python or the json files with the model that could be used as typescript types?
Ideally pipeline would infer the types, but I'm also ok with importing (or generating the types myself) and using it as a generic:
const whateve = pipeline<ReturnType>(`task`, `model`)

Hi there 👋 Yes, this is absolutely something that needs improving. The correct types for the input parameters should be taken from the _call function, but I haven't gotten around to doing that. Here are the docs which show the valid input parameters: https://huggingface.co/docs/transformers.js/api/pipelines.
Perhaps you know of a good way to do this with JSDoc?

@kungfooman might have some insight here.
Here's a basic TS version which seems to work:
interface Pipeline {}
interface TextClassificationPipeline {}
interface ImageClassificationPipeline {}

type Type = 'text-classification' | 'image-classification'; // and so on...

function pipeline<T extends Type = "text-classification">(userType?: T):
  T extends 'text-classification' ? TextClassificationPipeline
  : T extends 'image-classification' ? ImageClassificationPipeline
  : Pipeline
{
    return {} as any;
}
pipeline('text-classification') // TextClassificationPipeline
pipeline('image-classification') // ImageClassificationPipeline


account-web-vault config cache

After initializing the account like this:
this.account = new VaultAccount({
			defaultDatabaseServer: {
				type: 'VeridaDatabase',
				endpointUri: VUE_APP_VERIDA_TESTNET_DEFAULT_SERVER as string,
			},
			defaultMessageServer: {
				type: 'VeridaMessage',
				endpointUri: VUE_APP_VERIDA_TESTNET_DEFAULT_SERVER as string,
			},
			defaultNotificationServer: {
				type: 'VeridaNotification',
				endpointUri: VUE_APP_VERIDA_TESTNET_DEFAULT_NOTIFICATION_SERVER
			},
			vaultConfig: {
				request: {
					logoUrl: VUE_APP_LOGO_URL,
				},
			},
		})

if I change the variable VUE_APP_VERIDA_TESTNET_DEFAULT_NOTIFICATION_SERVER it doesn't update the config inside client-ts and keep calling to the previous endpointUri

Those config variables are only used as default values when you create a new account.
You will need to create a new account if you want to use different variables.
It is possible to manually update the service endpoints for an existing DID, however it shouldn't be necessary if the Vault is setting them correctly in the first place.

Those config variables are only used as default values when you create a new account.
You will need to create a new account if you want to use different variables.
It is possible to manually update the service endpoints for an existing DID, however it shouldn't be necessary if the Vault is setting them correctly in the first place.

@tahpot what should we do in the case that the notification server is moved to another host (or different port)? Where does the cache for config stored and are we able to clear it if user doesn't want to create a new account?
@kalanamt I think for debugging now we can just create a new account every time we switch from local <=> testnet server.

It is possible to manually update the service endpoints for an existing DID, however it shouldn't be necessary if the Vault is setting them correctly in the first place.

Sorry I was not clear, this code snippet is in the web app (MaPay), not the Vault. The Vault is not using account-web-vault

I think you'll need to create a new Network if you create a new VaultAccount too.
Just noting that there is a PR to simplify the API for this: https://github.com/verida/verida-js/issues/95

@pkhien95 @nick-verida Can this be closed?
As far as I understand it, this issue is because the account was already created, so changing the default config in the app does nothing.

Closed since the constructor of account-web-vault changed depending on initialization in the Vault, also creating new account is a solution.


Development

Codecov Report

Merging #45 into development will not change coverage.
The diff coverage is n/a.

@@              Coverage Diff               @@
##             development      #45   +/-   ##
==============================================
  Coverage          43.18%   43.18%
  Complexity           522      522
==============================================
  Files                136      136
  Lines               4254     4254
  Branches              59       59
==============================================
  Hits                1837     1837
  Misses              2395     2395
  Partials              22       22

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 c4f26b4...09b62d0. Read the comment docs.


OptimisticLockException during TGT cleanup

We are using CAS version  5.0.4 and we are running on 4 node cluster.
We are using JpaTicketRegistry with JpaLockingStrategy for locking the tickets during cleanup.
The cleanup works fine on one node environment but on 4 nodes it is failing with OptimisticLockException.
javax.persistence.OptimisticLockException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) : [org.apereo.cas.ticket.TicketGrantingTicketImpl#****************************MqV4COEK0bmyEfe-usfr-sage-web1]
	at org.hibernate.internal.ExceptionConverterImpl.wrapStaleStateException(ExceptionConverterImpl.java:197) ~[hibernate-core-5.2.2.Final.jar:5.2.2.Final]
	at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:86) ~[hibernate-core-5.2.2.Final.jar:5.2.2.Final]
	at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:174) ~[hibernate-core-5.2.2.Final.jar:5.2.2.Final]
	at org.hibernate.internal.SessionImpl.find(SessionImpl.java:3392) ~[hibernate-core-5.2.2.Final.jar:5.2.2.Final]
	at org.hibernate.internal.SessionImpl.find(SessionImpl.java:3342) ~[hibernate-core-5.2.2.Final.jar:5.2.2.Final]
	at sun.reflect.GeneratedMethodAccessor291.invoke(Unknown Source) ~[?:?]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]
	at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]
	at org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:298) ~[spring-orm-4.3.4.RELEASE.jar:4.3.4.RELEASE]
	at com.sun.proxy.$Proxy177.find(Unknown Source) ~[?:?]
	at org.apereo.cas.ticket.registry.JpaTicketRegistry.getRawTicket(JpaTicketRegistry.java:96) ~[cas-server-support-jpa-ticket-registry-5.0.4.jar:5.0.4]
	at org.apereo.cas.ticket.registry.JpaTicketRegistry.getTicket(JpaTicketRegistry.java:82) ~[cas-server-support-jpa-ticket-registry-5.0.4.jar:5.0.4]
	at org.apereo.cas.ticket.registry.AbstractTicketRegistry.deleteTicket(AbstractTicketRegistry.java:104) ~[cas-server-core-tickets-5.0.4.jar:5.0.4]
	at org.apereo.cas.ticket.registry.AbstractTicketRegistry$$FastClassBySpringCGLIB$$d3c67a11.invoke(<generated>) ~[cas-server-core-tickets-5.0.4.jar:5.0.4]
	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) ~[spring-core-4.3.4.RELEASE.jar:4.3.4.RELEASE]
	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:651) ~[spring-aop-4.3.4.RELEASE.jar:4.3.4.RELEASE]
	at org.apereo.cas.ticket.registry.JpaTicketRegistry$$EnhancerBySpringCGLIB$$47e2ec3d.deleteTicket(<generated>) ~[cas-server-support-jpa-ticket-registry-5.0.4.jar:5.0.4]
	at sun.reflect.GeneratedMethodAccessor395.invoke(Unknown Source) ~[?:?]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]
	at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]
	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333) ~[spring-aop-4.3.4.RELEASE.jar:4.3.4.RELEASE]
	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) ~[spring-aop-4.3.4.RELEASE.jar:4.3.4.RELEASE]
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) ~[spring-aop-4.3.4.RELEASE.jar:4.3.4.RELEASE]
	at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133) ~[spring-aop-4.3.4.RELEASE.jar:4.3.4.RELEASE]
	at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121) ~[spring-aop-4.3.4.RELEASE.jar:4.3.4.RELEASE]
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) ~[spring-aop-4.3.4.RELEASE.jar:4.3.4.RELEASE]
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213) ~[spring-aop-4.3.4.RELEASE.jar:4.3.4.RELEASE]
	at com.sun.proxy.$Proxy89.deleteTicket(Unknown Source) ~[?:?]
	at org.apereo.cas.ticket.registry.DefaultTicketRegistryCleaner.clean(DefaultTicketRegistryCleaner.java:75) ~[cas-server-core-tickets-5.0.4.jar:5.0.4]

This worked fine in CAS 4. Only major difference I can see in CAS 5 is thet the locks are now LockModeType.OPTIMISTIC and before it was PESSIMISTIC_WRITE.
I have no idea if changing it back to PESSIMISTIC_WRITE would help this because issue because I cannot easily extend the JpaLockingStrategy class because the Lock entity class is private static class now (changed in 5 as well).

CAS server version: 5.0.4
Container/environment type/version (Tomcat, Jetty, Java, Linux/Windows, etc): Tomcat 8, Java 8, Centos

Which should be fine, no?
The idea here is that a single resource (the database) is being used by multiple competing clients (CAS nodes) to perform the "clean up" transactions. If one node gets to it first, other nodes trying to act on the same piece of data will fail under optimistic locking scenario, and that is fine, IMHO. Just need to move on, as this exception is not "catastrophic" for cleaner worker... well, unless otherwise is demonstrated that this will prevent CAS server functioning properly...

... or just an idea ... in a multi-node deployment scenario with a single database for tickets storage, dedicate a single node to run the "cleaner" job, and turn the cleaner off on other nodes

It's one exception per ticket. So it can be something like 25 exceptions per minute that are logged as ERROR. But yes it works and tickets are deleted.
Running the cleanup on just one node should be enough for us. Is there a similar option in 5.0.x?

The option is the same.

Just want to make sure we are accurate here... The reason I said since 5.1 is that I have not seen the similar code: https://github.com/apereo/cas/blob/master/core/cas-server-core-tickets/src/main/java/org/apereo/cas/config/CasCoreTicketsSchedulingConfiguration.java#L51-L59 in 5.0.x branch
and this class: https://github.com/apereo/cas/blob/master/core/cas-server-core-tickets/src/main/java/org/apereo/cas/ticket/registry/NoOpTicketRegistryCleaner.java states that it's been added in 5.1.0

Found it here
https://github.com/apereo/cas/blob/5.0.x/core/cas-server-core-tickets/src/main/java/org/apereo/cas/ticket/registry/DefaultTicketRegistryCleaner.java#L44-L48
This seems to be working for me. It still calls the release on the lock, but that is fixed in 5.1.
Should I close this issue?

Ah, OK, I missed it ;-)
Yeah, I'll close the issue... But in general, I'd suggest you to look into upgrading to 5.1.0 which is a much more "solid" release ;-)


Mypy and ProxyFix

The docs say (https://flask.palletsprojects.com/en/1.1.x/deploying/wsgi-standalone/#proxy-setups):
from werkzeug.middleware.proxy_fix import ProxyFix
app.wsgi_app = ProxyFix(app.wsgi_app, x_proto=1, x_host=1)

I get this from mypy:
qc/create_app.py:47: error: Cannot assign to a method
What's the correct solution here?

We do not support MyPy. You'll need to ask them what that error means.


How to install Senta

I encountered the following errors when i tried to install it:

Thanks in advance

same error with you

same


Unable to resolve $ref pointer

Hi,
there are already several issues about this problem, but I do not get it working.
This is what I call (my package.json is located in "e:/path1/path2/"):
SwaggerParser.validate("specs/REST_API_Specification.yaml", {...})
...and this is what I get:
Unable to resolve $ref pointer \"e:/path1/path2/specs/REST_API_Specification.yaml\"
I tried several things but nothing helped.
Any idea how to solve this?
Thanks

Leave a comment

Adding "validate" section to options causes this problem!!!
I removed it and everything works fine.

Easy to reproduce. Follow the example: https://github.com/BigstickCarpet/swagger-parser/blob/master/docs/options.md
The example code starts with
SwaggerParser.validate("my-api.yaml", {...
and the options contain
... resolve: {     file: false, ...
"my-api.yaml" was in my case a local file. This did not work.
What helped was:
resolve: {   file: {     canRead: true   } }, ...

Right.  The example specifically shows how to disable the ability to resolve local file references.
resolve: {
    file: false,                    // Don't resolve local file references

So of course with this option disabled, it won't work with a local file.


GUI fixes

[x] Backend / frontend dropdowns do not look good with the dark theme.
[x] Set icons for JS in the file browser

2977ccbab2dccd0202b6a9a996d47d5ab5433eb4


The push command does not work

The push command does not send the files to the GitHub , until the message appears , but is not completed

I believe you need to use ssh to push. I ran into this problem too using https for my remote as https requires a password. Even if you store the password in the keychain it won't work. Switch your remote to ssh and it should work great. Keep in mind that you will need to create an ssh key for that to work: https://help.github.com/articles/generating-ssh-keys/

switching the remote from http to ssh did it or me - it was crated as https...needs to be SSH for git-plus
command looks like this:
git remote set-url origin git@github.com:path/to/my/repo.git

I'm closing this because it seems to be a duplicate.
As @tannerellen and @bobum have suggested, using ssh and having it set up without a requirement of entering credentials will work. Otherwise, there isn't support for https


Count cards in datasource

Sometimes it's useful knowing exactly how many cards a datasource provided. For example, when listing number of components in the game.
Maybe this count can be shown in a breakdown table after everything else, and probably only if a flag has been specified- or at the very least, if verbose.

This is similar to #39


Cannot start with optirun/primusrun

**Godot version:master
16d402147b9057c9f7d43ef9b46eb8654e5483cc
OS/device including version:Linux / 4.19.14-1-MANJARO
GPU: Nvidia 960m (with bumblebee)
CPU: Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
Issue description:
Since my last Pull ~ End of January, i cannot start Godot with optirun:
Following errors are thrown
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":8"       after 7 requests (7 known processed) with 0 events remaining. XIO:  fatal IO error 2 (No such file or directory) on X server ":8"       after 7 requests (7 known processed) with 0 events remaining.
Current Beta3 works
Steps to reproduce:

git pull
scons platform=x11 -j7
optirun ./godot.x11.tools.64

I also have run into this issue. Nvidia 800M on Manjaro x86_64. (not at the PC right now, might add more info and findings soon)

Probably a regression from #25391.

Does this still happen with DRI_PRIME=0 set ?

The thing is the detection works as expected, and it ends up not setting DRI_PRIME. Unless optirun doesn't like that we try to create multiple GL contexts perhaps.


Windows consoles with non-default colors

The ANSI terminal emulation code in src/win/tty.c assumes the console is using Windows default colors (white text on a black background). This results in a somewhat ugly output on consoles using different colors and it leaves the console in a bad state, affecting programs that run afterwards.
Note: The problem only occurs after some attempt is made to change the text color; programs that display only plain text are fine.
Example:
Everything looks good if the console text is white on black...

...but not so good with other colors (the console was set to bright white on blue in this example)...

(Note: The error shown in the screen shots is irrelevant; it was was deliberately created to demonstrate the color problem.)

PR: #431, fixed in 517ade8.


Add test-writing guide to CONTRIBUTING.md

Instructions on the codecov browser extension and on how to write scalacheck and scalatest tests.

👍

Thank you @piyushnarang !

👍