I got an issue when tried to send ERC-20 token one by one

Describe the bug
1- i sent 0.1 link
2 - then i was trying to sent max link in a while and got an issue
I think this is because the previous tx was in pending status and the balance was not updated properly after sent 1st tx
To Reproduce
Steps to reproduce the behavior:

Go to eth acc
try to send some amount of erc-20 token
then send full amount of erc-20 token
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: macos
Browser chrome, safari
Version 123

Additional context
reproducible on dev branch

We need to improve the wording for the message. We have to inform him that balance is not updated, transaction is not mined etc.

The returned error is very vague: "Error happened while trying to execute a function inside a smart contract" so we can't tell why the tx failed

@CedrikNikita Is there a way to improve the returned errors so based on it we can suggest better wording? Vague wording of errors is always bad for UX. On the other hand if we have technical limitation to know what's the error we can't improve anything and we will continue displaying to the users too generalized error messages.


Modifies YAML files to work with studio/sample page

Now that the default is 'main' for all branches. I need to change your default branch is master.
I also fixed the MLKit sample which is listed as a separate sample.

LGTM!


adding a retry to the GCE DELETE for the encryptor instance

Using the new refactored util.retry() to solve a persistent issue with the first DELETE on the encryptor. The first attempt always seems to result in httplib.BadStatusLine. Retrying a second time succeeds.

https://github.com/brkt/brkt-cli/pull/293


this.logable is not defined

In line 473 the examination via this.logable will cause an Error, because there is no method logable
if (this.logable(record))

Thanks for reporting! Should be fixed now.


errors only on focusOut

Hi! its will be nice if canShowErrors not work only with focusOut. I used backendApi errors to set model.errors, its works well with ember-forms because its use the model.errors to. If wee get that control like:   {{em-input label="Name" property="name" canShowErrors=error}}
Where error is a computed property, we will have the ember-forms with validation control in backendapi to.

I confirm, it works. It can be useful to have this behaviour by default.


Conversion FFMPEG to Laravel chain methods

I am looking forward to write this command into
ffmpeg -i /var/www/html/faizan/video-homes/beta/storage/app/public/uploads/XvTaO1vtdbzvrsFc.mp4 -vcodec libx264 -profile:v main -level 3.1 -preset medium -crf 23 -x264-params ref=4 -acodec copy -movflags +faststart /var/www/html/faizan/video-homes/beta/storage/app/public/uploads/XvTaO1vtdbzvrsFc_essa.mp4
to ffmpeg laravel chain methods.
Please help someone.

What have you tried so far?

//        $lowBitrateFormat->setInitialParameters(array('-acodec', 'copy'));

        $video = \FFMpeg::open( $this->video->video_path );
        Log::info(  "Essa Outside Angle",[$this->angle]);
        if ( $this->angle ) {
            Log::info("Essa Inside Angle",[$this->angle]);
            $video->filters()->rotate( $this->angle );
        }
        $video->filters()->pad( new Dimension( $this->width, $this->height ) );

        $video->export()->inFormat( $lowBitrateFormat )->save( getCleanFileName( $this->video->video_path, "_{$this->height}p_converted.mp4" ) );```

The code is totally fine, and it works in all devices but it has no audio in iOS devices. Its totally strange so i get helped from stack overflow that code
```ffmpeg -i /var/www/html/faizan/video-homes/beta/storage/app/public/uploads/XvTaO1vtdbzvrsFc.mp4 -vcodec libx264 -profile:v main -level 3.1 -preset medium -crf 23 -x264-params ref=4 -acodec copy -movflags +faststart /var/www/html/faizan/video-homes/beta/storage/app/public/uploads/XvTaO1vtdbzvrsFc_essa.mp4```
@pascalbaljet

Duplicate of https://github.com/protonemedia/laravel-ffmpeg/issues/233


Add models

Don't pull until docs get merged in

@foresmac

Don't pull yet I had another idea

aight


Update sites.yml

This PR is:

[x] Adding a new domain
[ ] Updating existing domain size
[ ] Changing domain name
[ ] Removing existing domain from list
[ ] Website code changes (512kb.club site)
[ ] Other not listed

[x] I used the uncompressed size of the site
[x] I have included a link to the Cloudflare report
[x] This site is not an ultra minimal site
[x] The following information is filled identical to the data file

I confirm that I have read the FAQ section, particularly the two red items around minimal pages and inappropriate content and I attest that this site is neither of these things.

[x] Check to confirm

- domain:
  url:
  size:
  last_checked:

Cloudflare Report:

https://radar.cloudflare.com/scan/e0d489f1-c336-42a4-a0d6-8fc82118ce3c/network

PLease add your site alphabetically.

Thanks @coopermatt!


Typo in Portuguese README

I noticed a small typo in the Portuguese version of the README. I would like to contribute by fixing it. Can I do so and submit a pull request?

Yes, of course 👍


docs: use furo theme

#26 missing yaml

Codecov Report

Merging #28 (f1df012) into main (59d2082) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #28   +/-   ##
=======================================
  Coverage   87.98%   87.98%
=======================================
  Files          57       57
  Lines        1956     1956
=======================================
  Hits         1721     1721
  Misses        235      235

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 59d2082...f1df012. Read the comment docs.


Change the default configuration of an alert to trigger on that combatant's next turn

Currently, alerts will trigger on the next round, regardless of if the combatant's turn has happened in this round yet. If a combatant has not yet gone in a round and an alert is created for that combatant, it should default to trigger on their next turn, which would be in the current round, not the next round.

Came looking for this. In PF2E this happens a lot, where you use an action outside your turn and trying to automate it thing likeb reactions and raise shield basically reset at the beginning of the actors turn.
Looks like it's manually math for now...


One attempt to decode 9 bytes of malformed CBOR data can exhaust memory

🐞 Bug Report
Affected Services

 The issue is located in:

edgex-go/internal/core/data/io.go
// Read reads and converts the request's CBOR event data into an Event struct
func (cr cborReader) Read(reader io.Reader, ctx *context.Context) (models.Event, error) {
	c := context.WithValue(*ctx, clients.ContentType, clients.ContentTypeCBOR)
	event := models.Event{}
	bytes, err := ioutil.ReadAll(reader)
        ...
	x := codec.CborHandle{}
	err = codec.NewDecoderBytes(bytes, &x).Decode(&event)

There are two potential problems related to memory exhaustion:

Small data -- the CBOR library used by edgex-go can exhaust memory in 1 decode attempt of 9 bytes of malformed data.
Large data -- use of ioutill.ReadAll(reader) into memory is risky and not necessary with most CBOR libraries.  At a minimum, io.LimitReader should be used with a reasonable limit appropriate for edgex-go.  Better yet, io.LimitReader can be passed to CBOR libraries for decoding.

Is this a regression?
No
Description and Minimal Reproduction
RFC 7049 Section 8 (CBOR Security Considerations) warns that malformed data can be used to exhaust system resources.
In September 2019, oasislabs/oasis-core found tiny CBOR data could exhaust memory and the problem was traced to the same CBOR library being used by edgex-go today (ugorji/go). They fixed it by switching CBOR libraries.
In February 2020, smartcontractkit/chainlink reported an issue on pivitoltracker (I don't have login access) and fixed it in a GitHub PR titled "Switch to more secure CBOR library".
To reproduce, decode 9-byte or 10-byte malformed CBOR data described in Section 8 of RFC 7049.
Examples of malformed CBOR data to achieve this can be found on GitHub since September 2019 (or possibly earlier if you look beyond Go projects).
🔥 Exception or Error

For info about CBOR and security, see Section 8 of RFC 7049 (Security Considerations).
For more comparisons, see fxamacker/cbor.

Duplicate of #2430

@bnevis-i

Duplicate of #2430

Issue #2430 is titled "Processing large (CBOR) payload results in the golang runtime stack getting blown." and reports a morestack error:

fatal: morestack on g0

By comparison, this issue reports these memory allocation errors caused by only 9-10 bytes of payload:

fatal error: out of memory
runtime: out of memory: cannot allocate

If the #2430 and #2439 are combined, the surviving issue should mention all three errors and have a suitable title to prevent confusion/complacency.  Also, this issue (#2349) reports two different items related to memory exhaustion:

Small Data - insecure CBOR library (ugorji/go) exhausts memory decoding 9 bytes
Large Data - insecure use of ioutill.ReadAll(reader) can be vulnerable to large payloads

Per RFC 7049 Section 8 (CBOR Security Considerations):

Resource exhaustion attacks might attempt to lure a decoder into
allocating very big data items (strings, arrays, maps) or exhaust the
stack depth by setting up deeply nested items.  Decoders need to have
appropriate resource management to mitigate these attacks.  (Items
for which very large sizes are given can also attempt to exploit
integer overflow vulnerabilities.)

@x448 Thanks.  I unduplicated.

@x448 do you have repro bytes for the 9 byte malformed data? I looked in the RFC and couldn't find it, or sufficiently detailed instructions to reproduce myself.
I would like to add a test case against this along with the transition to fxamacker/cbor.

@jdharms I can provide malformed CBOR data that causes two of the three errors.
I haven't seen the 3rd error ("morestack") with ugorji/go mentioned in #2430.  Maybe someone from edgex-go can provide malformed CBOR data that causes "morestack" error -- it would be useful to add to fxamacker/cbor unit tests.
7049bis (draft of editorial update to RFC 7049)  has examples of malformed CBOR data.
Also, the following code is from fxamacker/cbor/decode_test.go (MIT license) and @fxamacker credits oasislabs/oasis-core for discovery.  These two samples of malformed CBOR data cause the two memory exhaustion errors I reported if decoded with ugorji/go.
// Found at https://github.com/oasislabs/oasis-core/blob/master/go/common/cbor/cbor_test.go
func TestOutOfMem1(t *testing.T) {
	cborData := []byte("\x9b\x00\x00000000")
	var f []byte
	if err := Unmarshal(cborData, &f); err == nil {
		t.Errorf("Unmarshal(0x%x) didn't return an error", cborData)
	}
}

// Found at https://github.com/oasislabs/oasis-core/blob/master/go/common/cbor/cbor_test.go
func TestOutOfMem2(t *testing.T) {
	cborData := []byte("\x9b\x00\x00\x81112233")
	var f []byte
	if err := Unmarshal(cborData, &f); err == nil {
		t.Errorf("Unmarshal(0x%x) didn't return an error", cborData)
	}
}

@x448 Here's my attempt at reproducing with ugorji/go:

import (
	"fmt"

	"github.com/ugorji/go/codec"
)

func main() {
	decode_test([]byte("\x9b\x00\x00000000"))
	decode_test([]byte("\x9b\x00\x00\x81112233"))
}

func decode_test(b []byte) {
	x := codec.CborHandle{}
	var f []byte
	err := codec.NewDecoderBytes(b, &x).Decode(&f)
	if err != nil {
		fmt.Println(err.Error())
	}

	fmt.Printf("%x\n", f)

	for i := 0; i < 3; i++ {
		fmt.Printf("%v", i)
	}
	fmt.Printf("\n")
}

The result of running this code is:
[master] brave:repro jdharms$ ./repro
EOF

012
cbor decode error [pos 10]: assigning negative signed value to unsigned type

012
[master] brave:repro jdharms$

It appears to me the library is properly catching both of these errors.  Please let me know if I'm making a mistake with my repro code--interested in getting this resolved.

@jdharms can you provide more info about the system and versions used for testing?
@fxamacker used the following to reproduce the errors using the same data:

ugorji/go (both 1.1.7 and also latest commit on GitHub)
Go 1.12
linux_amd64 with 4 GB RAM on Xeon Haswell

Here's 3rd-party description of ugorji/go fatal out of memory errors using the same data I provided:

https://github.com/oasislabs/oasis-core/issues/2153

github.com/ugorji/go v1.1.4
go 1.13
darwin/amd64

I just tried to update to ugorji/go v1.1.7 and was able to successfully reproduce.
Thanks for your help.  Wanted to do my due diligence before making a swap like this one.

@jdharms nice catch!  Thanks for looking into this, I'd have done the same due dilly in your shoes.
I'm a bit worried about not having a reproducer for the "morestack" error mentioned in #2430.  It could come back to haunt us if left unsolved.
BTW, I opened https://github.com/edgexfoundry/app-functions-sdk-go/issues/305 a couple days ago in case they didn't know.

@jdharms :fire: new malformed CBOR data was found that can exhaust memory in every version of ugorji/go tested so far.
Unfortunately, new data causes "fatal error: out of memory" error (instead of the "morestack" error reported by @akramtexas in #2430 presumably with ugorji/go 1.1.4).  So a "morestack" reproducer is still missing.
Please share a reproducer for "morestack" error so the malformed CBOR (or a cleaned version to protect privacy) can be added to unit tests.
I asked @fxamacker yesterday to come up with new malformed data that affects multiple versions of ugorji/go and she was able to create some (around 9 bytes each) which exhausts memory when decoded by these versions of ugorji/go compiled with Go 1.12.17:

ugorji/go January 2018 commit
ugorji/go 1.1.4 (April 8, 2019)
ugorji/go  1.1.7 (July 2, 2019)
ugorji/go last commit (Aug 12, 2019)

She also confirmed fxamacker/cbor successfully rejects this new malformed data in about
149 ns/op 128 bytes/op which is fast but different from the September 2019 samples.
cc @tingyuz @michaelestrin @AnthonyMBonafide

@x448
Are you able to share these inputs?  If preferred you can email them to me, but I would love to verify them on my end.  If I get my hands on a reproducer for "morestack" I will share it as well.

I have a local branch of edgex-go that swaps the dependency on ugorji/go for fxamacker/cbor.  edgex-go depends on go-mod-core-contracts, which also depends on ugorji/go, so I have introduced an issue: https://github.com/edgexfoundry/go-mod-core-contracts/issues/232 and associated pull request: https://github.com/edgexfoundry/go-mod-core-contracts/pull/233 for go-mod-core-contracts.
When that PR lands I will open the pull request to swap the dependency in edgex-go (I am waiting so the attribution file checker will be satisfied.)

My comment 9 days ago was missing the text "runtime:" in the March 2020 fatal error message:
fatal error: runtime: out of memory


Fixed #30258 -- Adjusted postgres schema value quoting of ranges.

https://code.djangoproject.com/ticket/30258
Thanks Tilman Koschnick for the report and patch.

The test failures seems to be caused by a recent release of unittest-xml-reporting.

Actual commit that broke it https://github.com/xmlrunner/unittest-xml-reporting/commit/4890cd7ca3ccfcd8fc881f0cdd1d257efe5f5e5f#r32781252


Complex Collision

Try out Pixi's built-in "hit area" feature to see if collision calculations are needed in Zephyr.

HitArea is weird, but this dead project:
https://github.com/kittykatattack/bump
Is SUPER valuable

23.9.6 withinRange() helps solve this, though it's not implemented yet.


Larger model

Awesome work, thanks for releasing!
Is there some plans to further release larger models, such as BLIP-large or BLIP-xxlarge?

Hi, we have released a larger model which use ViT-L as the vision encoder (the text encoder is still bert-base). Currently we do not have plans to train models that are larger than that.
Thanks!

In case you change your mind, we from LAION can provide compute & have 6B yet unreleased image-text-pairs, 2.3B english.
( https://laion.ai )
We are currently busy with preparing the training of CLIP-versions, but we could just scale the ViT & LM up with the existing code and cooperate on pulling off the training.
Btw, here is a colab with pretty impressive captioning results i got with BLIP with many cannidate captions and filtering with CLIP ViT L & ResNet 50x64 https://colab.research.google.com/drive/1fKxiDMa-9uu1A6XiYjxTbYxSagvbZ8Fb?usp=sharing

Hi @christophschuhmann, it would be great if we can cooperate to train larger BLIP models with our code and your data & compute. I am very interested to continue this discussion.
Thanks for the colab, the captions do look nice!

Awesome! :)
We mostly use discord for correspondence. My handle is: spirit-from-germany#1488
Here is an invite link to the server we work on:
https://discord.gg/AAwcPAw894
For the Image captioning and VQA stuff, we use the channel #image-captioning.
Let's chat there :)
Btw, here are some VQA results we recently got with a frozen CLIP ViT L 14 and a frozen GPT J and a trained mapping transformer in between:


Cannot install on Python 3.5.0 (x64) Windows

pip install beets
Collecting beets
Using cached beets-1.3.15.tar.gz
Collecting enum34>=1.0.4 (from beets)
Using cached enum34-1.0.4.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "C:\Users***\AppData\Local\Temp\pip-build-x6hf4_9c\enum34\enum_init_.py", line 371, in getattr
return cls.member_map[name]
KeyError: '_convert'
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 3, in <module>
  File "c:\users\***\appdata\local\programs\python\python35\lib\site-packages\setuptools\__init__.py", line 11, in <module>
    from setuptools.extension import Extension
  File "c:\users\***\appdata\local\programs\python\python35\lib\site-packages\setuptools\extension.py", line 8, in <module>
    from .dist import _get_unpatched
  File "c:\users\***\appdata\local\programs\python\python35\lib\site-packages\setuptools\dist.py", line 16, in <module>
    from setuptools.depends import Require
  File "c:\users\***\appdata\local\programs\python\python35\lib\site-packages\setuptools\depends.py", line 6, in <module>
    from setuptools import compat
  File "c:\users\***\appdata\local\programs\python\python35\lib\site-packages\setuptools\compat.py", line 45, in <module>
    import http.client as httplib
  File "c:\users\***\appdata\local\programs\python\python35\lib\http\client.py", line 71, in <module>
    import email.parser
  File "c:\users\***\appdata\local\programs\python\python35\lib\email\parser.py", line 12, in <module>
    from email.feedparser import FeedParser, BytesFeedParser
  File "c:\users\***\appdata\local\programs\python\python35\lib\email\feedparser.py", line 27, in <module>
    from email import message
  File "c:\users\***\appdata\local\programs\python\python35\lib\email\message.py", line 16, in <module>
    from email import utils
  File "c:\users\***\appdata\local\programs\python\python35\lib\email\utils.py", line 29, in <module>
    import socket
  File "c:\users\***\appdata\local\programs\python\python35\lib\socket.py", line 73, in <module>
    IntEnum._convert(
  File "C:\Users\***\AppData\Local\Temp\pip-build-x6hf4_9c\enum34\enum\__init__.py", line 373, in __getattr__
    raise AttributeError(name)
AttributeError: _convert

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in C:\Users***\AppData\Local\Temp\pip-build-x6hf4_9c\enum34

Python 3 isn't supported.

Oops! Sorry, should have checked earlier. Any chance to support it in the future?

I sure hope so! Here's a blog post I wrote about py3k support a long time ago: http://beets.radbox.org/blog/py3k.html
It's somewhat outdated, and we're now a lot closer to having all our dependencies ready. Another audit could be in order.

Thanks, sounds great!


fix changeset for hibernate sequence

Description
An error occurs because the hibernate sequence was not created correctly.
There are two fixes.

Added create sequence changeset for DBs with sequence support.
If there is no initial value of hibernate_sequence table, an error occurs and the initial value is inserted.

This patch also needs to be applied to 3.4.0-rc3-hotfix.
Related Issue :
How Has This Been Tested?

Delete existing H2 database if it exists.
create metadata (via creating datasorce or from database)
Check metadata creation complete without error.

Need additional checks?
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[ ] I have read the CONTRIBUTING document.
[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have added tests to cover my changes.

Additional Context

deploy to 3


Upgrade org.pitest:pitest-maven 1.6.4 -> 1.6.5

This PR contains the following updates:

Package
Update
Change

org.pitest:pitest-maven
patch
1.6.4 -> 1.6.5

[ ] If you want to rebase/retry this PR, check this box

Suggested commit message:
Upgrade pitest-maven-plugin 1.6.4 -> 1.6.5

See:
- https://github.com/hcoles/pitest/releases/tag/1.6.5
- https://github.com/hcoles/pitest/compare/1.6.4...1.6.5


Docker 24.0.5 - Traefik doesn't accept any connections / server stuck

Hi all
I just had to forcefully downgrade to version Docker version 24.0.4. and it worked again. Unfortunately it doesn't show any errors in the log-file. Any connection on 24.0.5 to Traffic opens but you can't send anything over the connection and it just time outs after a minute. I don't know if there are any breaking changes in 24.0.4 but it looks something broke.
Thanks
{"level":"debug","msg":"Provider event received {Status:health_status: healthy ID:d3e5cb7be921f39dd5e4d99d2e03d9990b70160bd5cc06b79b4a27c62063922e From:pihole/pihole:latest Type:container Action:health_status: healthy Actor:{ID:d3e5cb7be921f39dd5e4d99d2e03d9990b70160bd5cc06b79b4a27c62063922e Attributes:map[com.docker.compose.config-hash:e19dcbdd0bd212ebde1f0fdfc8e6116c4f06afb239be17c726a3fccda4b7e7bf com.docker.compose.container-number:1 com.docker.compose.depends_on: com.docker.compose.image:sha256:566a5a3d47738903cc1505a997c42cd98f059ccddd8ebf10ad505972fa568b88 com.docker.compose.oneoff:False com.docker.compose.project:pihole com.docker.compose.project.config_files:/srv/samba/docker/compose/pihole/docker-compose.yml com.docker.compose.project.working_dir:/srv/samba/docker/compose/pihole com.docker.compose.service:pihole com.docker.compose.version:2.18.1 image:pihole/pihole:latest name:pihole org.opencontainers.image.created:2023-05-30T18:51:05.660Z org.opencontainers.image.description:Pi-hole in a docker container org.opencontainers.image.licenses: org.opencontainers.image.revision:37bd3d2f0f9321211d9370fc96b7d06325cee887 org.opencontainers.image.source:https://github.com/pi-hole/docker-pi-hole org.opencontainers.image.title:docker-pi-hole org.opencontainers.image.url:https://github.com/pi-hole/docker-pi-hole org.opencontainers.image.version:2023.05.2 sh.acme.autoload.domain:pihole.XXXXXX.COM traefik.docker.network:custom_bridge traefik.enable:true traefik.http.routers.pihole-router.entrypoints:websecure traefik.http.routers.pihole-router.rule:Host(`pihole.XXXXXX.COM`) traefik.http.routers.pihole-router.service:pihole-service traefik.http.routers.pihole-router.tls:true traefik.http.services.pihole-service.loadbalancer.server.port:8081]} Scope:local Time:1690268863 TimeNano:1690268863367647508}","providerName":"docker","time":"2023-07-25T09:07:43+02:00"}
{"container":"traefik-traefik-a479241e79b8f36a8e663485c706a451a7685a8ea97c48de49b26f25e76c1d56","level":"debug","msg":"Filtering disabled container","providerName":"docker","time":"2023-07-25T09:07:43+02:00"}
{"container":"tika-lab-83676627b38892653ff27b8c8f52e3be27c68bf64ee05c030ea7a1c8435d9ed4","level":"debug","msg":"Filtering disabled container","providerName":"docker","time":"2023-07-25T09:07:43+02:00"}
{"container":"plex-plex-b48894c4c29e5b1ed560c657d5e37cd4ca4aafb79e7433494fdc64cddcf010de","level":"debug","msg":"Filtering disabled container","providerName":"docker","time":"2023-07-25T09:07:43+02:00"}
{"level":"debug","msg":"Configuration received: {\"http\":{\"routers\":{\"lab-router\":{\"service\":\"lab-service\",\"rule\":\"Host(`lab.XXXXXX.COM`)\",\"tls\":{}},\"labapi-router\":{\"service\":\"labapi-service\",\"rule\":\"Host(`api.XXXXXX.COM`)\",\"tls\":{}},\"pihole-router\":{\"entryPoints\":[\"websecure\"],\"service\":\"pihole-service\",\"rule\":\"Host(`pihole.XXXXXX.COM`)\",\"tls\":{}},\"portainer-router\":{\"entryPoints\":[\"websecure\"],\"service\":\"portainer-service\",\"rule\":\"Host(`portainer.XXXXXX.COM`)\",\"tls\":{}}},\"services\":{\"lab-service\":{\"loadBalancer\":{\"servers\":[{\"url\":\"http://<IP_ADDRESS>:8888\"}],\"passHostHeader\":true}},\"labapi-service\":{\"loadBalancer\":{\"servers\":[{\"url\":\"http://<IP_ADDRESS>:5000\"}],\"passHostHeader\":true}},\"pihole-service\":{\"loadBalancer\":{\"servers\":[{\"url\":\"http://<IP_ADDRESS>:8081\"}],\"passHostHeader\":true}},\"portainer-service\":{\"loadBalancer\":{\"servers\":[{\"url\":\"http://<IP_ADDRESS>:9000\"}],\"passHostHeader\":true}}}},\"tcp\":{},\"udp\":{}}","providerName":"docker","time":"2023-07-25T09:07:43+02:00"}
{"level":"debug","msg":"No entryPoint defined for this router, using the default one(s) instead: [web websecure]","routerName":"lab-router","time":"2023-07-25T09:07:43+02:00"}
{"level":"debug","msg":"No entryPoint defined for this router, using the default one(s) instead: [web websecure]","routerName":"labapi-router","time":"2023-07-25T09:07:43+02:00"}
{"level":"debug","msg":"No store is defined to add the certificate MIIE7TCCA9WgAwIBAgISA5fHLHvI0ancHbY44rDk3XMOMA0GCS, it will be added to the default store.","time":"2023-07-25T09:07:43+02:00"}
{"level":"debug","msg":"Adding certificate for domain(s) *.XXXXXX.COM","time":"2023-07-25T09:07:43+02:00"}
{"level":"debug","msg":"No default certificate, fallback to the internal generated certificate","time":"2023-07-25T09:07:43+02:00","tlsStoreName":"default"}
{"entryPointName":"web","level":"debug","middlewareName":"tracing","middlewareType":"TracingForwarder","msg":"Added outgoing tracing middleware noop@internal","routerName":"web-to-websecure@internal","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"web","level":"debug","middlewareName":"redirect-web-to-websecure@internal","middlewareType":"RedirectScheme","msg":"Creating middleware","routerName":"web-to-websecure@internal","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"web","level":"debug","middlewareName":"redirect-web-to-websecure@internal","middlewareType":"RedirectScheme","msg":"Setting up redirection to https 443","routerName":"web-to-websecure@internal","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"web","level":"debug","middlewareName":"traefik-internal-recovery","middlewareType":"Recovery","msg":"Creating middleware","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"websecure","level":"debug","middlewareName":"pipelining","middlewareType":"Pipelining","msg":"Creating middleware","routerName":"ds@file","serviceName":"service-ds","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"websecure","level":"debug","msg":"Creating load-balancer","routerName":"ds@file","serviceName":"service-ds","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"websecure","level":"debug","msg":"Creating server 0 http://<IP_ADDRESS>:5500","routerName":"ds@file","serverName":0,"serviceName":"service-ds","time":"2023-07-25T09:07:43+02:00"}
{"level":"debug","msg":"child http://<IP_ADDRESS>:5500 now UP","time":"2023-07-25T09:07:43+02:00"}
{"level":"debug","msg":"Propagating new UP status","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"websecure","level":"debug","middlewareName":"tracing","middlewareType":"TracingForwarder","msg":"Added outgoing tracing middleware service-ds","routerName":"ds@file","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"websecure","level":"debug","middlewareName":"tracing","middlewareType":"TracingForwarder","msg":"Added outgoing tracing middleware api@internal","routerName":"api@file","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"websecure","level":"debug","middlewareName":"auth@file","middlewareType":"BasicAuth","msg":"Creating middleware","routerName":"api@file","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"websecure","level":"debug","middlewareName":"auth@file","msg":"Adding tracing to middleware","routerName":"api@file","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"websecure","level":"debug","middlewareName":"pipelining","middlewareType":"Pipelining","msg":"Creating middleware","routerName":"pihole-router@docker","serviceName":"pihole-service","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"websecure","level":"debug","msg":"Creating load-balancer","routerName":"pihole-router@docker","serviceName":"pihole-service","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"websecure","level":"debug","msg":"Creating server 0 http://<IP_ADDRESS>:8081","routerName":"pihole-router@docker","serverName":0,"serviceName":"pihole-service","time":"2023-07-25T09:07:43+02:00"}
{"level":"debug","msg":"child http://<IP_ADDRESS>:8081 now UP","time":"2023-07-25T09:07:43+02:00"}
{"level":"debug","msg":"Propagating new UP status","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"websecure","level":"debug","middlewareName":"tracing","middlewareType":"TracingForwarder","msg":"Added outgoing tracing middleware pihole-service","routerName":"pihole-router@docker","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"websecure","level":"debug","middlewareName":"pipelining","middlewareType":"Pipelining","msg":"Creating middleware","routerName":"portainer-router@docker","serviceName":"portainer-service","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"websecure","level":"debug","msg":"Creating load-balancer","routerName":"portainer-router@docker","serviceName":"portainer-service","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"websecure","level":"debug","msg":"Creating server 0 http://<IP_ADDRESS>:9000","routerName":"portainer-router@docker","serverName":0,"serviceName":"portainer-service","time":"2023-07-25T09:07:43+02:00"}
{"level":"debug","msg":"child http://<IP_ADDRESS>:9000 now UP","time":"2023-07-25T09:07:43+02:00"}
{"level":"debug","msg":"Propagating new UP status","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"websecure","level":"debug","middlewareName":"tracing","middlewareType":"TracingForwarder","msg":"Added outgoing tracing middleware portainer-service","routerName":"portainer-router@docker","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"websecure","level":"debug","middlewareName":"pipelining","middlewareType":"Pipelining","msg":"Creating middleware","routerName":"lab-router@docker","serviceName":"lab-service","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"websecure","level":"debug","msg":"Creating load-balancer","routerName":"lab-router@docker","serviceName":"lab-service","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"websecure","level":"debug","msg":"Creating server 0 http://<IP_ADDRESS>:8888","routerName":"lab-router@docker","serverName":0,"serviceName":"lab-service","time":"2023-07-25T09:07:43+02:00"}
{"level":"debug","msg":"child http://<IP_ADDRESS>:8888 now UP","time":"2023-07-25T09:07:43+02:00"}
{"level":"debug","msg":"Propagating new UP status","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"websecure","level":"debug","middlewareName":"tracing","middlewareType":"TracingForwarder","msg":"Added outgoing tracing middleware lab-service","routerName":"lab-router@docker","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"websecure","level":"debug","middlewareName":"pipelining","middlewareType":"Pipelining","msg":"Creating middleware","routerName":"labapi-router@docker","serviceName":"labapi-service","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"websecure","level":"debug","msg":"Creating load-balancer","routerName":"labapi-router@docker","serviceName":"labapi-service","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"websecure","level":"debug","msg":"Creating server 0 http://<IP_ADDRESS>:5000","routerName":"labapi-router@docker","serverName":0,"serviceName":"labapi-service","time":"2023-07-25T09:07:43+02:00"}
{"level":"debug","msg":"child http://<IP_ADDRESS>:5000 now UP","time":"2023-07-25T09:07:43+02:00"}
{"level":"debug","msg":"Propagating new UP status","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"websecure","level":"debug","middlewareName":"tracing","middlewareType":"TracingForwarder","msg":"Added outgoing tracing middleware labapi-service","routerName":"labapi-router@docker","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"websecure","level":"debug","middlewareName":"pipelining","middlewareType":"Pipelining","msg":"Creating middleware","routerName":"asus@file","serviceName":"service-asus","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"websecure","level":"debug","msg":"Creating load-balancer","routerName":"asus@file","serviceName":"service-asus","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"websecure","level":"debug","msg":"Creating server 0 http://<IP_ADDRESS>:80","routerName":"asus@file","serverName":0,"serviceName":"service-asus","time":"2023-07-25T09:07:43+02:00"}
{"level":"debug","msg":"child http://<IP_ADDRESS>:80 now UP","time":"2023-07-25T09:07:43+02:00"}
{"level":"debug","msg":"Propagating new UP status","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"websecure","level":"debug","middlewareName":"tracing","middlewareType":"TracingForwarder","msg":"Added outgoing tracing middleware service-asus","routerName":"asus@file","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"websecure","level":"debug","middlewareName":"traefik-internal-recovery","middlewareType":"Recovery","msg":"Creating middleware","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"web","level":"debug","middlewareName":"traefik-internal-recovery","middlewareType":"Recovery","msg":"Creating middleware","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"web","level":"debug","msg":"Adding route for lab.XXXXXX.COM with TLS options default","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"web","level":"debug","msg":"Adding route for api.XXXXXX.COM with TLS options default","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"websecure","level":"debug","msg":"Adding route for portainer.XXXXXX.COM with TLS options default","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"websecure","level":"debug","msg":"Adding route for lab.XXXXXX.COM with TLS options default","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"websecure","level":"debug","msg":"Adding route for api.XXXXXX.COM with TLS options default","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"websecure","level":"debug","msg":"Adding route for asus.XXXXXX.COM with TLS options default","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"websecure","level":"debug","msg":"Adding route for ds-web.XXXXXX.COM with TLS options default","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"websecure","level":"debug","msg":"Adding route for monitor.XXXXXX.COM with TLS options default","time":"2023-07-25T09:07:43+02:00"}
{"entryPointName":"websecure","level":"debug","msg":"Adding route for pihole.XXXXXX.COM with TLS options default","time":"2023-07-25T09:07:43+02:00"}

Hi, attached my compose file. It's pretty straightforward.
`version: '3.1'
networks:
custom_bridge:
external: true
services:
traefik:
image: traefik
container_name: tr
networks:
custom_bridge:
volumes:
- /srv/samba/docker/appdata/traefik:/etc/traefik
- /var/run/docker.sock:/var/run/docker.sock:ro
ports:
- 80:80
- 443:443
- 8080:8080
environment:
- TZ=Europe/Zurich
labels:
"sh.acme.autoload.domain": "traefik.XXX"
restart: unless-stopped`

Can you provide your static configuration?

Sure,
rules.yaml
http:
  routers:
    api:
      rule: Host(`monitor.xxxx.com`) && (PathPrefix(`/api`) || PathPrefix(`/dashboard`))
      service: api@internal
      tls: {}
      entryPoints:
        - "websecure"
      middlewares:
        - auth
    ds:
      rule: Host(`ds-web.xxxx.com`)
      service: service-ds
      tls: {}
      entryPoints:
        - "websecure"
    asus:
      rule: Host(`asus.xxxx.com`)
      service: service-asus
      tls: {}
      entryPoints:
        - "websecure"

  middlewares:
    auth:
      basicAuth:
        users:
          - "hhessel:$apr1$xsr8mknv$8ZxoyRSYeUCBYyoW5OGv5."
  services:
    service-ds:
      loadBalancer:
        servers:
          - url: "http://<IP_ADDRESS>:5500"
    service-asus:
      loadBalancer:
        servers:
          - url: "http://<IP_ADDRESS>:80"

traefik.yaml
entryPoints:
    web:
        address: :80
        http:
            redirections:
                entryPoint:
                    to: websecure
                    scheme: https
                    permanent: true
    websecure:
        address: :443
    traefik:
        address: :8080

providers:
    file:
      directory: /etc/traefik
      watch: true
    docker:
      endpoint: unix:///var/run/docker.sock
      watch: true
      exposedByDefault: false

api:
    dashboard: true

log:
    level: DEBUG
    filePath: "/etc/traefik/logs/log-file.log"
    format: json

can you open an issue on the Traefik repository and fill in the issue template with your information?
https://github.com/traefik/traefik/issues/new?assignees=&labels=&projects=&template=bug_report.yml

entryPoints:
    web:
        address: :80
        http:
            redirections:
                entryPoint:
                    to: websecure
                    scheme: https
                    permanent: true
    websecure:
        address: :443
    traefik:
        address: :8080

providers:
    file:
      directory: /etc/traefik
      watch: true
    docker:
      endpoint: unix:///var/run/docker.sock
      watch: true
      exposedByDefault: false

api:
    dashboard: true

log:
    level: DEBUG
    filePath: "/etc/traefik/logs/log-file.log"
    format: json

Thanks for the first triage @ldez . Issue raised.


Fix child players get stuck on zero volume

Originally raised here https://github.com/music-assistant/hass-music-assistant/issues/1504
The suggested fix however would result in child volumes not going below 1. Looking at the current behavior the use of average of the powered child volumes for the group is good however the percentage change gives rise to unexpected results. Apart fro the zero case I also tried setting one speaker to 46 and another to 10 which gave a group volume of 28. Changing the group volume to 56 resulted in the first player going to 98 and the other to 14. I don't think this is expected. Therefore this PR suggests changing to relative movement. With the player volumes limited to 0 and 100 I think the result should be OK but I haven't tested it to see what the UX is like.

This fix is not good as a group volume change always has to be relative. It just needs an adjustment to prevent the zero

Why do you think it has to be relative? I thought my example of

I also tried setting one speaker to 46 and another to 10 which gave a group volume of 28. Changing the group volume to 56 resulted in the first player going to 98 and the other to 14.

is valid as an unexpected outcome. I doubled the group volume and one volume more than doubles and the other less than a 50% increase.

hmm, I'll play with it a bit but usually group volume adjustments are relative. You increase volume with 30%, then each individual player should be increased with 30%, regardless of its current value. It should just be shifted.

Actually, tested a bit with your proposal to just use the relative absolute value instead of the percentage and its working just fine. Not sure why I overcomplicated my thinking with the percentage as this works just fine. Only added a small clamping to min/max values and all set. Thanks!


Schema only usage without configuration

Thanks for amazing work.
I am using Postgraphile as a library and I also want to execute a query on the server without having to go through HTTP. My question is why it is to provide a pool and other configuration, why not Postgraphile just expose excuteQuery/excuteMutation functions as all other configurations are already set.

We provide the tooling (such as withPostGraphQLContext and createPostGraphQLSchema) so that you may execute queries using "graphql" itself. By doing this we allow you to make optimisations, should you so desire, e.g. Skipping the verification phase and jumping straight to execute. And of course running queries on your schema with "graphql" function is the standard way throughout the GraphQL ecosystem.
Further reading that may interest you: https://github.com/postgraphql/postgraphql/pull/209

Thanks for the info but this means graphql schema / connection pool will be created twice. It would be great If Postgraphile can at least expose schema/connection pool if not higher order query execute function.

You can pass in a shared pool to both so the pool needn't be created twice, I don't think the schema being generated twice is a huge deal - it's only done at server startup and it doesn't consume much memory but I'm open to a PR that would allow passing the schema in to the postgraphql middleware function if it's simple enough.

Postgrapgile has made a developer's life very easy. Ideally, I would still request a query execute function exported from Postgraphile.

The current status on this is that you can copy the performQuery function from the docs and use that: https://www.graphile.org/postgraphile/usage-schema/
I'm going to leave this open though, because we can still do better.


Change template engine

Swig is no longer maintained, what you think about changing to nunjucks?
https://github.com/paularmstrong/swig/issues/628

Good idea! That or I was thinking of jade

:+1:


analyse v4.6.0报错，gradle7.0.2, plugin 7.0.0

只引入了analyse模块

What went wrong:
Execution failed for task ':app:analyseInTestRelease'.

java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Duplicate key kotlin/reflect/jvm/internal/impl/serializa
tion/deserialization/builtins/BuiltInsResourceLoader (attempted merging values org.objectweb.asm.tree.ClassNode@1e32c12 and org.objectweb.asm.tree.ClassNode@53d39fbb)

Seems caused by inconsistent kotlin version


issue chromecast with 2 zones (Onkyo TX-NR686)

What version of Music Assistant has the issue?
2023.6.0b1
The problem

it is detecting my TX-NR686
It detects it only as one zone
not able to turn on
not able to play music, even when turning on manually.

Been tested directly on URL of Music Assistant Server. So not via HA.
How to reproduce
fresh install of Music Assistant Server in docker in combination with HACS
Relevant log output
No response
Additional information
No response
What version of Home Assistant Core are your running
2023.7.2
What type of installation are you running?
Home Assistant Container
On what type of hardware are you running?
Linux

So is it not detecting your main zone? I have a Yamaha and it is only seeing the main zone but if I select that Airplay player the amplifier automatically turns on. Maybe have a look around the amplifier settings to see if that is an option.

just need some more info otherwise we will close this.

Unfortunately i'm not able to work on this functionality on a daily basis, will do some more investigation in the next coming weeks. Sorry.

Just following up on this. We will need to close this if we don't hear back soon. Just note that MA doesn't necessarily actually POWER on the device. The power icons in MA should be seen as enable or disable the streaming to the player. Depending on the device you may need to physically power it on first. As I said my Yamaha happens to have the functionality that it will auto power on when it starts receiving a signal

Also unless your receiver can play two different chomsecast streams at the same time then not seeing the second zone is also normal for MA. You need to select the chromsecast input for the second zone via another means and then MA will be heard through that zone.

I believe the above explains what you are seeing the first two points you make in your description of the problem. Unless you can supply more info about what happens when you try and play music to your amp we will close this soon


Delete Local Branch notification's button has odd capitalization

Extension version: 0.48.1
VSCode Version: 1.71.0-insider
OS: Windows 11 x64

Steps to Reproduce:

In the Pull Requests view use the context menu on a branch that is not fully merged, and ask to "Delete Local Branch"
:bug: button caption has no capitalization and uses brackets.

I suggest captioning the button "Delete Unmerged Branch"
Maybe also add the word "local" to the message, and turn it into two sentences:
"The local branch 'fix-130497' is not fully merged.  Are you sure you want to delete it?"

I'm actually not sure where branches are displayed in the GHPR views, any hints? Or maybe someone else can verify

The "Local Pull Request Branches" node is in the same tree as "All Open", but it was at the top and collapsed for me, whereas "All Open" is at the bottom of the tree and expanded, so that's where I was trying to search, first.


Problem in pysal/viz/splot/_viz_esda_mpl module

Dear all,
recently, I have been working with Pysal library over some socioeconomic data from Brazil.
In my analysis, I observed a problem when creating dynamic_lisa_composite maps. Depending on the set of years I was analysing, I noticed that LISA's autocorrelation index classes were wrongly represented. Sometimes, LH or LL conditions were inverted. The same thing happened with HL and LH cases.
When I was checking the reason behind the Issue, I discovered that the library "dynamic_lisa_composite" depends on the "lisa_cluster" function that is nested in "pysal/viz/splot/_viz_esda_mpl.py" module.
In"lisa_cluster" function, LISA's classes legend colors are created via matplotlib.colors.ListedColormap class, which requires a list of sequential colors for its instanciation.
As happened in my data, and possibly in many others, in some years, there were cases in which there were not all five types of spatial correlation (NS, HH, LL, HL, LH). As the data is never sorted previously to the "lisa_cluster" function, situations in which the spatial correlation is actually LL can sometimes be labelled as HL.
This issue comes from the fact that matplotlib.colors.ListedColormap applies a sequential colormap over the data, despite the data possessing all instances of the colouring map or not. Therefore, all sets of possible problems are prone to happen in the "dynamic_lisa_composite":
case 1) regions classified as NS can be labelled as HH
case 2) regions classified as HH can be labelled as LH
case 3) regions classified as LH can be labelled as LL
case 4) regions classified as LL can be labelled as HL
It is worth notice that the order is always forward (skipping LISA classes according to the sequence in the color list provided to matplotlib.colors.ListedColormap instanciation).
The solution I have come up with was to force a prior selection of the dataframe, and then plot the respective LISA class into the map.
Here is the code I have changed into my local pysal/viz/splot/_viz_esda_mpl.py repository to solve this issue (changes from line 808):
Observation: I am also attaching a txt file with the lisa_cluster function altered according to the code below for easier reading.
changes start in line
def lisa_cluster(moran_loc, gdf, p=0.05, ax=None,
legend=True, set_axis_off=False, **kwargs):
"""
Create a LISA Cluster map
Parameters
----------
moran_loc : esda.moran.Moran_Local or Moran_Local_BV instance
    Values of Moran's Local Autocorrelation Statistic
gdf : geopandas dataframe instance
    The Dataframe containing information to plot. Note that `gdf` will be
    modified, so calling functions should use a copy of the user
    provided `gdf`. (either using gdf.assign() or gdf.copy())
p : float, optional
    The p-value threshold for significance. Points will
    be colored by significance.
ax : matplotlib Axes instance, optional
    Axes in which to plot the figure in multiple Axes layout.
    Default = None
legend : boolean, optional
    If True, legend for maps will be depicted. Default = True

**kwargs : keyword arguments, optional
    Keywords designing and passed to geopandas.GeoDataFrame.plot().

Returns
-------
fig : matplotlip Figure instance
    Figure of LISA cluster map
ax : matplotlib Axes instance
    Axes in which the figure is plotted

Examples
--------
Imports

>>> import matplotlib.pyplot as plt
>>> from pysal.lib.weights.contiguity import Queen
>>> from pysal.lib import examples
>>> import geopandas as gpd
>>> from pysal.explore.esda.moran import Moran_Local
>>> from pysal.viz.splot.esda import lisa_cluster

Data preparation and statistical analysis

>>> link = examples.get_path('Guerry.shp')
>>> gdf = gpd.read_file(link)
>>> y = gdf['Donatns'].values
>>> w = Queen.from_dataframe(gdf)
>>> w.transform = 'r'
>>> moran_loc = Moran_Local(y, w)

Plotting

>>> fig = lisa_cluster(moran_loc, gdf)
>>> plt.show()

"""
# retrieve colors5 and labels from mask_local_auto
_, colors5, _, labels = mask_local_auto(moran_loc, p=p)

# define ListedColormap
#hmap = colors.ListedColormap(colors5) # here is the problem: It does not properly work for data that does not contain all possible conditions in this given list

colors_list = ['#d7191c', '#fdae61', '#abd9e9', '#2c7bb6', 'lightgrey'] # alternative

if ax is None:
    figsize = kwargs.pop('figsize', None)
    fig, ax = plt.subplots(1, figsize=figsize)
else:
    fig = ax.get_figure()

gdf = gdf.assign(cl=labels)

####### applying filter of the dataframe for HH condition

HH = gdf.loc[gdf['cl']=='HH']

if not HH.empty:
    HH.plot(categorical=True,
		    k=2, color=colors_list[0], linewidth=0.1, ax=ax,
		    edgecolor='white',  **kwargs)

################# applying filter of the dataframe for HL condition
HL = gdf.loc[gdf['cl']=='HL']

if not HL.empty:
    HL.plot(categorical=True,
		    k=2, color=colors_list[1], linewidth=0.1, ax=ax,
		    edgecolor='white',  **kwargs)

#################	 applying filter of the dataframe for LH condition
LH = gdf.loc[gdf['cl']=='LH']
if not LH.empty:
    LH.plot(categorical=True,
			k=2, color=colors_list[2], linewidth=0.1, ax=ax,
			edgecolor='white',  **kwargs)

 ################# applying filter of the dataframe for LL condition
LL = gdf.loc[gdf['cl']=='LL']
if not LL.empty:
    LL.plot(categorical=True,
			k=2, color=colors_list[3], linewidth=0.1, ax=ax,
			edgecolor='white',  **kwargs)

#################  applying filter of the dataframe for NS condition

lisa_cluster_v1.txt
NS = gdf.loc[gdf['cl']=='ns']
if not NS.empty:
    NS.plot(categorical=True,
		    k=2, color=colors_list[4], linewidth=0.1, ax=ax,
		    edgecolor='white',  **kwargs)

if set_axis_off == True:
    ax.set_axis_off()

ax.set_aspect('equal')

return fig, ax

I thank you for your time.
Sincerely yours,
Philipe R. Leal

solved in pysal/splot#73


Need new activity subtype "Call"

Similar to note, but with call-specific functionality:

Caller name (may not exist in the database)
Callback number
Result (e.g., left message, no answer)

Will be used to measure call activity in a sales environment.

Ready for review. A bit unclear the distinction between Message and Result.

Are you referring to ActivityMessage::Message? That's the full activity body, which is different for different activities. For Letter and EmailMessage, it's the body of the Activity. For all others, it's a comment/description field.


code in contentView can't call functions on chrome.runtime without specifying extension id

Wondering the reason behind you injecting the contentView script in the content index.ts rather than just directly rendering everything in the content script? Running into a small issue where I have to manually pass the chrome extension ID in order to run any of the chrome scripts which is just a bit annoying

Hello @spencerc99
You may find this PR helpful.

https://github.com/Jonghakseo/chrome-extension-boilerplate-react-vite/pull/9

use import("src/pages/contentView/index.js") instead

It seems to be something with appropriate loading because using it inside useEffect does seem to work. Any ideas?

@spencerc99
The part causing the error has been removed from the source code. Would you like to clear the cache and check again?


MySQL DML transaction support?

Ecto doesn't  persist data correctly when MySQL system variable autocommit is OFF.

We tried to provide this feature even with autocommit set to OFF and MySQL was still behaving unexpectedly under different versions when we wrapped DDL inside a transaction.

2 years later, I found I had the wrong title. I have to set autocommit=ON. Ecto doesn't start a transaction automatically.


Pull id into separate package

Signed-off-by: Carson Farmer<EMAIL_ADDRESS>Description
This pulls ThreadID into its own separate sub-package: @textile/threads-id
Fixes #65
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
All existing local tests (for ThreadID) continue to run.
Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules

This PR template comes from https://github.com/embeddedartistry/templates

Oh cool, upstream pulled in and released a fix I submitted, including it here.
https://github.com/consento-org/sync-randombytes/pull/2#issuecomment-616875260


doc: extract examples from tests

I suggest digging tests and extract meaningful examples from them.
If approved, I can produce a set of CLs for that.

Related issues
https://github.com/golang/go/issues/5757
https://github.com/golang/go/issues/11241

Are you suggesting some sort of automated process?  I don't think that is a good idea.
If you are suggesting that people manually look at tests and use them to construct examples, then, sure.  I don't think we need a general issue open for that, though.

@ianlancetaylor definitely manually. I haven't even fathomed the idea of doing it automatically.
I open this issue here, so later I would peg case by case CL and Issues into this one. But if this is done differently, I do not mind closing this and going along with whatever is the right thing.

I think this topic is too general for a catch all issue to be useful.

@ianlancetaylor so what am I supposed to do?

I don't understand what you are asking.
I am completely in favor of looking at tests and turning them into examples.  I think you should do that.
I just don't think that this issue is helpful.

@ianlancetaylor I apologize for not being clear. I would like to know whether opening CL with the individual changes is enough, or should I open issues for each CL I post.

You can just send in a CL.  There is no need to open an issue for each CL.


Several integration lines in waveports

In CPW and in circular waveguides it is necesarry to establish different modes with their integration lines individually. It would be interesting the posibility of adding something like five modes in a waveport and the integration lines of two of them.

I have implemented 'assign_waveport' as a more general function, in replacement of the previous 'assign_waveport_multimode' and 'assign_waveport_intline' functions.
Now the functions allows multiple modes and integration lines for all or only some of them.
Also, notice that the previous 'assign_lumpedport_intline' is now simply called 'assign_lumpedport', as Lumped Ports only allow one mode with a required integration line.
Please, check it out and tell me if it behaves correctly for you, before closing the issue.


⚠ DONT MERGE - converted to dark background

This makes major styling changes to be more carbon friendly.
At the moment I am reviewing the pages and fixing the forms after adding a dark background.

This looks great.
A couple of notes.
I think we should remove the sentence about the 160kg of carbon emitted by servers as it is a bit too vague.
Also it would be great to do a quick accessibility check while you are changing styles as there's great tools to highlight any issues (e.g. Lighthouse in Chrome has an accessibility report).
Changing to a dark background may require extra tweaks to ensure we don't introduce some colour contrast accessibility issues.

Hey, thanks for the great work on the dark mode.
It would be good to get it merged in soon so we can start finalising and preparing for the video.
Do you think it will be ready by tomorrow?
Let me know if you want any help otherwise I will continue with the backend work we are doing.


RequestLength

Hi,
just realized that the "RequestLenght" in ecu.js is fixed. As it is not documented, I just antizipated, based on the response that the
request like "APS11xxxxYYYY" where xxxx should be the request length - same as in the response.
It perfectly fits for some of the requests, but for the GetPowerOfDay Request:
"APS110039000321600xxxxxxENDdddddddd\n"
it is not matching - neither from APS to END nor including the dddddddd.
The code uses a second END tag: _(ecu.js - Line 373)
const req = REQ_POWER_OF_DAY + this.ecuId + REQ_END + day + REQ_END + '\r';
This is not mentioned in the Readme but would explain the length of 39. In this case: Why "\r" at the end?
Could you please help to clear up the confusion?

The END tag is missed. Correct is:
GetPowerOfDay : Request: "APS110039000321600xxxxxxENDddddddddEND\n
GetEnergyOfWeekMonthYear: Request: "APS110039000421600xxxxxxENDppEND\n"
Its an documentation issue. Code is correct and working.
\r is new line in UNIX ... its better to use \n always.
peter

Solved with V0.2.10


[SPARK-30845] Do not upload local pyspark archives for spark-submit on Yarn

What changes were proposed in this pull request?
Use spark-submit to submit a pyspark app on Yarn, and set this in spark-env.sh:
export PYSPARK_ARCHIVES_PATH=local:/opt/spark/python/lib/pyspark.zip,local:/opt/spark/python/lib/py4j-0.10.7-src.zip
You can see that these local archives are still uploaded to Yarn distributed cache:
yarn.Client: Uploading resource file:/opt/spark/python/lib/pyspark.zip -> hdfs://myhdfs/user/test1/.sparkStaging/application_1581024490249_0001/pyspark.zip
This PR fix this issue by checking the files specified in PYSPARK_ARCHIVES_PATH, if they are local archives, don't distribute to Yarn dist cache.
Why are the changes needed?
For pyspark appp to support local pyspark archives set in PYSPARK_ARCHIVES_PATH.
Does this PR introduce any user-facing change?
No
How was this patch tested?
Existing tests and manual tests.

Can one of the admins verify this patch?

Can one of the admins verify this patch?

cc @HyukjinKwon @vanzin @tgravescs

ok to test

Test build #123434 has started for PR 27598 at commit f212848.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/28051/
Test PASSed.

Test build #123434 has finished for PR 27598 at commit f212848.

This patch fails to build.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123434/
Test FAILed.

Test build #123435 has started for PR 27598 at commit f212848.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/28052/
Test PASSed.

Test build #123435 has finished for PR 27598 at commit f212848.

This patch fails to build.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123435/
Test FAILed.

@shanyu I'm not sure why build is failing would you be able to up merge this?

Can we please test this?

Test build #123581 has started for PR 27598 at commit 20a7a9c.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/28205/
Test PASSed.

Test build #123581 has finished for PR 27598 at commit 20a7a9c.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/123581/
Test PASSed.

thanks @shanyu merged to master


Build time

Hi, first of all thanks for the great work, I had been looking for something like this for a while.
Is there a way to speedup build time when installing the library? It seems pretty high right now, due to the installation of the cuda tools.

Hey @odusseys so far i havent figured out how i can pre-compile the ops and distribute them as part of a pip package. If you have any suggestions for how to do this please feel free to share.

no idea :( never worked with this kind of stuff - btw I figured its not a compilation time issue but downloading dependencies from pip


system output doesn't work

Hello, I received my Noah 2000 today and connected it to Home Assistant via noah-mqtt. All values are coming through, but when I set the system output, the Noah doesn't respond.
The MQTT signal goes to the broker,I could see that using MQTT Explorer
Topic
noah2mqtt/serialnumber/BAT0/parameters/set
({"charging_limit":100,"discharge_limit":10,"output_power_w":213}).
I can control the Noah without issues via the app.
Does anyone know what could be causing this?
Thank you very much!

Okay, I found out why it wasn't working. You have to disable the operation mode, only then does the Noah respond to the system default output power.

you must delete the time period by swiping left and then press delete, thats it.

oh, so easy.
Now it works
:-)


METRON-197: Validation should be the last step in the ParserBolt

Right now we are doing the validation prior to the messageFilter.  We should only validate the parsed messages which passes through the filter.

+1.  This is a simple code change in the order of method calls.  Builds and all tests pass

I was under the impression that validations should happen after the field transformations.  Is that not the case?

If a message or a tuple fails validation then the associated message should get routed to a dead letter queue.  I believe there is a different PR that is required to get the dead letter queue established.  The tuple should be acked, though.  We need to differentiate between if the tuple is failed due to not being able to be parsed vs. not validated.  So if we fail based on parser issues then we need to ack for validation issues and then land the message in the dead letter queue.  The important thing is for the messages that fail validation not to go through the rest of the pipeline.

@merrimanr @james-sirota I tend to agree, validations should happen prior to field transformations since the transformation may affect the validity of the message.  I'll adjust that.  Good feedback!

+1


Limit to # of blocks in the attachments field?

Is there a limit to how many blocks can be in the attachments field? https://api.slack.com/reference/messaging/attachments#fields

In our own testing, we seem to run into an invalid_attachments error when the # of blocks exceed 20, but just wanted confirmation.

Is there a specific API you are seeing this with? chat.postMessage?

Depending on which API you are using, there is a maximum of 100 attachments, but if you surpass that, a dedicated too_many_attachments error would be raised - which is not what you are getting.
I would try to isolate an API call per each attachment you are trying to generate, to see if perhaps one of the specific attachments you are trying to use is not valid.

Oh woops I misread your question: you are asking for maximum number of blocks per attachment. I believe it is 50 - but, even if you exceed that, you should receive an invalid_blocks error.
 Depending on the API used and the circumstances of the failure mode, more information may be logged out beyond just the error name.

Thanks for the info, let me try doing that ^


Allow conversion of already downloaded things.

Something like python3 nhentai_dl.py --convert 177013 or python3 nhentai_dl.py --convert * for all downloaded ones.

Must implement #4 first for this to work properly.


Getting IOError (not opened for reading) when sending a multipart request

Hello there, I'm having problems using a generic call with a method name using public_send.
I am using a resource to point the API and cookies for authentication. I am building an API that communicates with another API.
 @rest_client_instance = RestClient::Resource.new(ENV['GATEWAY_URL'], :cookies => resp.cookies)
response = @rest_client_instance[url].public_send(method, body, :headers => headers, :multipart => multipart)
The body I am sending is:

Printing body: {:pk12=>#<File:/var/folders/0h/81d2k48s4wb25m9xwgkcp29w0000gn/T/RackMultipart20171122-19431-1fea1zy>, :srcStorePass=>"pepe", :srcAlias=>"123"}

Any help is really appreciated.
Best Regards,
Hernán

While trying to send a PDF file, I get:
9 TID-gskp3z61p WARN: IOError: closed stream
9 TID-gskp3z61p WARN: /usr/local/lib/ruby/2.5.0/delegate.rb:349:in `read'
/usr/local/lib/ruby/2.5.0/delegate.rb:349:in `block in delegating_block'
/opt/rails/vendor/bundle/ruby/2.5.0/gems/rest-client-2.0.2/lib/restclient/payload.rb:163:in `create_file_field'
/opt/rails/vendor/bundle/ruby/2.5.0/gems/rest-client-2.0.2/lib/restclient/payload.rb:137:in `block in build_stream'
/opt/rails/vendor/bundle/ruby/2.5.0/gems/rest-client-2.0.2/lib/restclient/payload.rb:134:in `each'
/opt/rails/vendor/bundle/ruby/2.5.0/gems/rest-client-2.0.2/lib/restclient/payload.rb:134:in `each_with_index'
/opt/rails/vendor/bundle/ruby/2.5.0/gems/rest-client-2.0.2/lib/restclient/payload.rb:134:in `build_stream'
/opt/rails/vendor/bundle/ruby/2.5.0/gems/rest-client-2.0.2/lib/restclient/payload.rb:47:in `initialize'
/opt/rails/vendor/bundle/ruby/2.5.0/gems/rest-client-2.0.2/lib/restclient/payload.rb:16:in `new'
/opt/rails/vendor/bundle/ruby/2.5.0/gems/rest-client-2.0.2/lib/restclient/payload.rb:16:in `generate'
/opt/rails/vendor/bundle/ruby/2.5.0/gems/rest-client-2.0.2/lib/restclient/request.rb:77:in `initialize'
/opt/rails/vendor/bundle/ruby/2.5.0/gems/rest-client-2.0.2/lib/restclient/request.rb:52:in `new'
/opt/rails/vendor/bundle/ruby/2.5.0/gems/rest-client-2.0.2/lib/restclient/request.rb:52:in `execute'

Not sure yet why.

I'm seeing this issue intermittently as well.

Any updates on this issue? I am seeing this as well.

Is there a minimal reproducer for this issue?

I'm getting this issue too, but can't reproduce it consistently.  I do seem to produce it more when doing integration tests that have the poll the remote API every few seconds.   I'm creating new Request objects for each polling though, so I'm not sure why that should matter unless there's some singleton or other global resource involved.


Testpr3

Short description:
More details:
What this PR does / why we need it:
Which issue(s) this PR fixes:
Special notes for reviewer:
Bug:

/test

/verified

/verified

/verified

/unverified

/unverified

/verified

/unverified

/verified

test

test

test

/test

test

/verified

test

/test

/test

/verified

/test

/verified

/test

/verified

/verified

/test

/test

/test

/test

/test

/verified

/test

/verified

/test

/verified

/test

/verified

/test

/verified

/test

/verified

/test

/test

/verified

/test

/verified

/test

/test

/un-verified

/un-verified

/verified

/un-verified

/un-verified

/un-verified

/un-verified

/test

/verified

/test

/test

/verified

/verified

PR was /un-verified need /fix

PR was /verified set as /hold

PR was /verified set as /hold

PR was /verified set as /hold

/un-hold


Can it be used on Windows?

I have try the command line on Windows， it does not work.
D:\MyGithub\ocrd-train-master>  make leptonica tesseract langdata
wget 'http://www.leptonica.org/source/leptonica-1.76.0.tar.gz'
process_begin: CreateProcess(NULL, wget http://www.leptonica.org/source/leptonica-1.76.0.tar.gz, ...) failed.
make (e=2):
Makefile:141: recipe for target 'leptonica-1.76.0.tar.gz' failed
make: *** [leptonica-1.76.0.tar.gz] Error 2

python generate_line_box.py -i "data/train/alexis_ruhe01_1852_0035_019.tif" -t "data/train/alexis_ruhe01_1852_0035_019.gt.txt" > "data/train/alexis_ruhe01_1852_0035_019.box"
Traceback (most recent call last):
  File "generate_line_box.py", line 26, in <module>
    im = Image.open(file(args.image, "r"))
NameError: name 'file' is not defined
Makefile:91: recipe for target 'data/train/alexis_ruhe01_1852_0035_019.box' failed
make: *** [data/train/alexis_ruhe01_1852_0035_019.box] Error 1

We only develop for Ubuntu Linux at the moment. @UB-Mannheim maintains a Windows installer for tesseract 4. I'm not sure whether it bundles the training tools though.
You could try to compile this within cygwin or Win10's bash environment, not sure how compatible these are with native Linux though.
The first error is because you're missing wget in your path.
The second error is because file in Python 2 is mostly synonymous with open but is gone as a global keyword in Python 3 which you seem to be using. This we will fix, I'll open an issue.

Thank you! I have tried with Ubuntu and it work well.

At the moment, no plans for Windows support.


[3.1] Track the actual DC of a member access in the constraint system.

Without this, CSGen/CSSimplify and CSApply may have differing
opinions about whether e.g. a let property is settable, which
can lead to invalid ASTs.
Arguably, a better fix would be to remove the dependency on the
exact nested DC. For example, we could treat lets as settable
in all contexts and then just complain later about invalid
attempts to set them. Or we could change CSApply to directly
use the information it already has about how an l-value is used,
rather than trying to figure out whether it might be getting set.
But somehow, tracking a new piece of information through the
entire constraint system seems to be the more minimal change.
Fixes rdar://29810997.

@swift-ci please test

@dgregor Can I consider you as having reviewed this? :)

@DougGregor I believe that last comment was meant for you :)

@rjmccall yes, I reviewed & approved on the master PR


Fix Ctrl-C not working in run_chat, run_llama

Fixes #7.
Also only set GGML_METAL_PATH_RESOURCES on Apple machines.

@svilupp: I changed the setting of the GGML_METAL_PATH_RESOURCES to only be done on Apple, could you check if everything still works on Apple (i'm on linux so can't check here).

All works on Mac! The file is loaded as expected.

@svilupp : It seemed to work for me in CPU mode on linux, I think I tested more than one thread. I have a deadline coming up in two days, I'll investigate after that.


Update starlette to ~=0.14

Just seeing if there is any appetite to:

Update the starlette pin
Loosen the exact pinning

This is a duplicate of https://github.com/tiangolo/fastapi/pull/2335

Looks like it's not compatible due to the removal to UJSONResponse:
fastapi/responses.py:10: error: Module 'starlette.responses' has no attribute 'UJSONResponse'; maybe "JSONResponse" or "Response"?

xref: https://github.com/encode/starlette/releases/tag/0.14.1

This is a duplicate

So, it is - sorry should have searched first!
I still think there's value in relaxing the exact pinning so wanted to check if @tiangolo had changed his position since #1555?

Thanks for the discussion! 🍰
And nope, I can't relax the pin yet, there have been constant/recent breaking changes. And in fact, the current pin on Starlette allows Starlette to move more easily without worrying a lot about breaking stuff between versions and having to deal with a lot of backwards compatibility between versions. That problem will probably come later after the first 1.x versions, but for now, it's better to try to structure the code the best way possible before getting into those new problems... 🤓

Sorry for the long delay! 🙈  I wanted to personally address each issue/PR and they piled up through time, but now I'm checking each one in order.


Navbar options are not available on small screens

Describe the bug
Navbar options are not available on small screens

I would like to help you with this @itsalb3rt


Locks could be acquired multiple times during a network partition

version 4.3.4
A network partition between the servers could result in allowing clients in the minority side to acquire locks.
steps to reproduce:

setup a cluster with three servers s1, s2, s3 and two clients c1,c2
cut the network between (the primary node + c1) and (the other 2 servers + c2)
let c1 and c2 acquire the same lock
both clients will acquire the lock

4x tc-server is not tracked here. The 5.0 tc-core line being developed here is a major break from that code line. That being said, 4x line does not support split brain prevention but if you would still like to report it and track it, http://jira.terracotta.org is the correct place.


Cannot profile programs with arguments

python -m profiling live-profile -i 5 ./runtests.py '-k test_full_stack_benchmarks.py -v --bench --bench-only'
Usage: main.py live-profile [OPTIONS] SCRIPT [ARGV]...
Error: no such option: -k

Can you try with --?
$ python -m profiling live-profiling -i 5 -- runtests.py -k test_full_stack_benchmarks.py -v --bench --bench-only

Using -- worked for me! Is this information available somewhere in the documentation?

It is now somewhat available but should be added to the readme as well.

I changed the CLI usage at e361844. I'll update the readme also soon.

Wonderful :)

Readme updated at 8a845e3.


Unable to launch Smart Tomcat with Tomcat 9, conf files not found

Describe the bug
Hello, whenever I decide to run my projet locally with a Tomcat 9, it just won't start. The build goes through no problem but I get an error right after according to which the plugin doesn't find the conf files in the indicated folder (User folder). The issue is that the folder is created but is indeed empty. Whenever I try to add any conf files like a server.xml file, the plugin deletes it and then complains the folder is empty.
Running the projet with Tomcat 7 however seems to be working. I have no understanding why. But it happens everytime I launch the project. I am either doing something wrong or the plugin has a bug.
I remember being able to run my project with Tomcat 9 a few weeks ago though, and downgrading the plugin didn't work either.
Thanks.
Screenshots

Intellij & SmartTomcat Version (Help -> About copy & paste below)
IntelliJ IDEA 2023.2.3 (Community Edition)
Build #IC-232.10072.27, built on October 11, 2023
Runtime version: <IP_ADDRESS>+7-b1000.32 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 4
Registry:
debugger.new.tool.window.layout=true
documentation.show.toolbar=true
ide.experimental.ui=true
Non-Bundled Plugins:
com.intellij.ideolog (<IP_ADDRESS>)
color.scheme.Dark Blue Theme (0.1)
Batch Scripts Support (1.0.13)
com.github.aslbarnett.lapisjetbrains (2.0.0)
com.jetbrains.space (232.10072.29)
EclipseCodeFormatter (<IP_ADDRESS>.0-Eclipse_2023-03)
camtwoTomcatRunner (1.7)
com.poratu.idea.plugins.tomcat (4.7.0)
org.bugzilla.tasks (0.1)
com.dubreuia.tool (2.6.2)
dev.flikas.idea.spring.boot.assistant.plugin (222.17.2)
DBN (3.4.1620.0)
com.xstudio.com.xstudio.plugin.idea (1.0.18)
mobi.hsz.idea.gitignore (4.5.2)
org.sonarlint.idea (<IP_ADDRESS>538)
Kotlin: 232-1.9.0-IJ10072.27

你发的邮件我已经收到。会在近期内查看。

@GiraffeLand Have you ever tried to re-create the SmartTomcat Configuration?

And ensure that the Tomcat server you choose has the conf folder with contents.

As the code shows, the plugin will clear the conf folder and copy the content from the Tomcat server.
https://github.com/zengkid/SmartTomcat/blob/82bfe29b46d53249adbc7f5a63a92ff6f597e22b/src/main/java/com/poratu/idea/plugins/tomcat/conf/TomcatCommandLineState.java#L122-L125

@GiraffeLand Have you ever tried to re-create the SmartTomcat Configuration?

I did, removed the whole .SmartTomcat folder and it was recreated, but with the same issue.

And ensure that the Tomcat server you choose has the conf folder with contents.

Ultimately I managed to trace which Tomcat was used and I updated the conf folder, now it does start. Though I am getting a InvocationError, coming from this file not being present. I actually tried to add the file manually it still won't work.

At the end of the day, this is another problem, so I could open another ticket and close this one if needed.

@GiraffeLand Sorry for the late response. But I couldn't find what was wrong with the error log.

I also exist the same problem

@YSHG666888 Can you give more details about your problem?

I already know the cause of the problem, because the configuration file in the Apache tomcat 9.0.85 I downloaded is missing, so the configuration of Smart Tomcat copied to the C drive is also missing. The solution is to download Apache tomcat again and reconfigure the Tomcat Server in IDEA

because the configuration file in the Apache tomcat 9.0.85 I downloaded is missing

Did you download it from the official website?

Closing.


opimize/nlls: first implementation of Levenberg-Marquardt.

Please take a look.
@vladimir-ch

@sbinet @vladimir-ch , thoughts on location? I don't think it should be in optimize proper, and so I suggested this. Optimize is for black-box objective functions, while L-M assumes that you're solving least-squares and that you can evaluate each point separately. I have a bunch of things it would be nice to bring in at github.com/btracey/sgd . SGD has the same property that you have a bunch of different pieces that you assume you can evaluate separately. However, I can't think of any reasonable package name that unifies that and this, and I've been thinking about it on and off for quite some time. It seems like nlls is as good as any.

At a high level, we need to decide what this package looks like. In optimize, we have optimize.Optimize, which abstracts what you're trying to do (minimize the function) with how you want to do it (the method). I believe we will want a similar approach here. Thinking about it here, I suspect we could make that function use optimize, which would enable a huge class of methods easily.
Rather than do all of that here, could we simplify this PR to be just the implementation of the core of LM? That is, have a type that is LevenbergMarquardt that has a method Step(dst, theta, y []float64, x, jac mat.Matrix). This method computes the next set of parameters theta and stores the result in dst. A test for this would then have a simple implementation which just calls step for a few iterations.  I'm not totally sure that function name and/or signature is right, but it'll be a much smaller set of things to review and decide for now.

So the Idea to have a type LevenbergMarquardt that stores all the variables that define the current state of the computation. I can add a method Solve that will call Step until convergence and then the test file will call this Solve method instead of LM for each test problem. @btracey Do I understand your proposal correctly?

A couple of quick comments.

I think this should go into exp first.
L-M is a particular method in the trust region class of methods. I think it would be nice to have TrustRegionMethod (similarly to LinesearchMethod) that uses something like TrustRegionStrategy (like NextDirectioner) of which LevenbergMarquardt would be a concrete implementation.
We should decide what NLLS model we want to minimize. Saying "sum of functions" is not enough. How the objective function looks like exactly? What is in this PR assumes that each residual depends on all parameters, leading to a dense Jacobian. However, most practical problems have some structure and the Jacobians will be sparse. How to put all of this together - the modeling of the objective function and how this structure will be communicated to the solver, a storage format for the Jacobian, and a linear solver (various factorizations, iterative)? I don't know how to disentangle this so that we could start with something small and isolated.
I can imagine that this could all live in optimize by extending Problem and having another entry point routine (optimize.LeastSquares). Or the objective-function modeling could be in its own package and the solver in optimize.
What are the expectations of SGD on the objective function? In my understanding it is "evaluate a given term in the sum" and "evaluate the gradient of a given term in the sum". I think that SGD and related methods don't care about the Jacobian, so it is less than what L-M needs. Apart from these considerations I wouldn't bring the stochastic methods into the discussion about L-M/trust region methods.

I think those are mostly good ideas by @vladimir-ch . The thing I don't like is optimize.LeastSquares. That itself is fine, but is the plan to also have optimize.LSProblem, etc.? At that point, I think I'd rather have nlls.Minimize (or lsq. or nlsq.). It separates what and how to solve pretty cleanly. I don't think there's that much to be gained in having them in the same package.

I think I'd rather have nlls.Minimize (or lsq. or nlsq.). It separates what and how to solve pretty cleanly. I don't think there's that much to be gained in having them in the same package.

That sounds good to me.
@maorshutman Do you want to re-submit this to gonum/exp where we would have more freedom to experiment and sort out the API?

Done.


Deploy multicall3 on Abstract testnet (zkstack)

Chain Name
Abstract Testnet
Chain ID
11124
RPC URL
https://api.testnet.abs.xyz
Block Explorer URL
https://explorer.testnet.abs.xyz/
Deployment Funds
Yes

Hey @xalexec
I noticed you deployed multicall3 to the canonical address (0xF9cda624FBC7e059355ce98a31693d299FACd963) on zksync as well as some other zkstack chains.
#76 #232
I was wondering if you'd be able to deploy to the same address on Abstract testnet as well? I can send you funds at 0xEcB55A56360ecaD5ae94bb5f3C7f7f5244E90453 asap.
Thanks so much in advance.

sorry for the delay, just sent!

https://explorer.testnet.abs.xyz/address/0xF9cda624FBC7e059355ce98a31693d299FACd963#contract
https://github.com/mds1/multicall/pull/314

thanks so much @xalexec !!


support for unpkg.com CDN

Please support unpkg.com as CDN
import Table from<EMAIL_ADDRESS>
To get the latest version of a package, simply remove the @version from the url and parse the location header.
❯ curl https://unpkg.com/table-layout/dist/index.mjs
Found. Redirecting to<EMAIL_ADDRESS>

@mknj this has been added and released, use v2.1.0 and it should update :)


Pretty print error from API

What is the expected feature or enhancement?
Today if there is an error from the API it gets reported like:
IBMRuntimeError: 'Failed to run program: \'400 Client Error: Bad Request for url: https://us-east.quantum-computing.cloud.ibm.com/jobs. {"errors":[{"code":1209,"message":"You are not authorized to specify runtime parameter: got abc:xyz.","solution":"Contact support to get access.","more_info":"https://cloud.ibm.com/apidocs/quantum-computing#error-handling"}],"trace":"cgeteirdojsgo5icm4mg"}\''

This is hard to read. It would be great if there is a way to pretty print the json response.
Acceptance criteria
It would be great if it could like below:
IBMRuntimeError: 'Failed to run program: \'400 Client Error: Bad Request for url: https://us-east.quantum-computing.cloud.ibm.com/jobs.
{
    "errors": [
        {
            "code":1209,
            "message":"You are not authorized to specify runtime parameter: got abc:xyz.",
            "solution":"Contact support to get access.",
            "more_info":"https://cloud.ibm.com/apidocs/quantum-computing#error-handling"
        }
    ],
    "trace":"cgeteirdojsgo5icm4mg"
}\''

I don't think we'll be doing this because we cannot pretty print the error string inside an exception. We could pretty print the error string in addition to raising the exception, but the user can also do the pretty print themselves. And it'd be better for the user to make that decision (e.g. if they want to print or catch).


How to add custom buttons for action in a row?

Hi Team,
Is there any way to add custom button in row and bind any action.
See this screenshot-

I tried below code but its rendering html code as a string.
rows: [
	   { id:1, 'action': '<input type="button" value="hello">' },
      ],

and above code is rendring like this.

@sudhir600 as the documentation states, there are two ways you can do this.

add property html: true to your column (however if you're adding buttons etc this won't suffice since you probably need some interaction. So use method 2.

Custom row template - https://xaksis.github.io/vue-good-table/guide/advanced/#custom-row-template

closing.


[Idea] Button for Duplicate chat with answer beam (without closing the current beam window)

Button for Duplicate chat with answer beam (without close current beam window)
During the generation of multiple answers in Beam, sometimes it's desirable to compare further chat responses with different Beam answers.
If you click "choose this message", it inserts one message into the chat and the beam window closes, and we lose all other answers.
I propose to create a "duplicate" button. This button would create a duplicate of the current chat and insert the selected beam answer into it, without closing the current window with all the beam answers.

Great idea @darthalex2014. This is in addition to the change I made for "multi-part" Add To Chat, which is already very precious and you suggested:

Tell me more about this request

when you click this new button, what happens to the underlying chat: a new message is added, or the whole chat is branched (duplicated to a full new conversation)
Need a bit more detail to envision the workflow.

when you click this new button, what happens to the underlying chat: a new message is added, or the whole chat is branched (duplicated to a full new conversation) Need a bit more detail to envision the workflow.

Currently, we have Chat 1 open. In it, a beam search is running, which has produced 8 responses.
We click on response number 2 to duplicate it.
Chat 1 with the beam search remains open (the beam also remains active), but the entire Chat 1 is duplicated into Chat 2, and response number 2 is inserted there. (We remain in Chat 1 within the beam search window).

@darthalex2014 something like this?

Need to evaluate tradeoffs of the UI and implement the logic part.
For reference, the following was the quick/dirty code hack:
Index: src/modules/beam/scatter/BeamRay.tsx
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/modules/beam/scatter/BeamRay.tsx b/src/modules/beam/scatter/BeamRay.tsx
--- a/src/modules/beam/scatter/BeamRay.tsx	(revision 72b0e7716862d0ef989ef8d24458b513a42d7963)
+++ b/src/modules/beam/scatter/BeamRay.tsx	(date<PHONE_NUMBER>484)
@@ -1,9 +1,10 @@
 import * as React from 'react';

 import type { SxProps } from '@mui/joy/styles/types';
-import { Box, IconButton, SvgIconProps, Typography } from '@mui/joy';
+import { Box, Button, IconButton, SvgIconProps, Typography } from '@mui/joy';
 import CheckCircleOutlineRoundedIcon from '@mui/icons-material/CheckCircleOutlineRounded';
 import ContentCopyIcon from '@mui/icons-material/ContentCopy';
+import CopyAllIcon from '@mui/icons-material/CopyAll';
 import DragIndicatorIcon from '@mui/icons-material/DragIndicator';
 import PlayArrowRoundedIcon from '@mui/icons-material/PlayArrowRounded';
 import RemoveCircleOutlineRoundedIcon from '@mui/icons-material/RemoveCircleOutlineRounded';
@@ -28,6 +29,7 @@
 import { rayIsError, rayIsImported, rayIsScattering, rayIsSelectable, rayIsUserSelected } from './beam.scatter';
 import { useBeamCardScrolling, useBeamScatterShowLettering } from '../store-module-beam';
 import { useMessageAvatarLabel } from '~/common/util/dMessageUtils';
+import ForkRightIcon from '@mui/icons-material/ForkRight';

 /*const letterSx: SxProps = {
@@ -260,27 +262,49 @@
             gap: 1,
           }}>

+            {/* Duplicate */}
+            {!isImported && (
+              <GoodTooltip title='Duplicate chat and add'>
+                <Button
+                  size='sm'
+                  variant='plain'
+                  color='neutral'
+                  onClick={handleRayCopyToClipboard}
+                  endDecorator={<ForkRightIcon sx={{ fontSize: 'md' }} />}
+                  sx={{ fontSize: 'xs', whiteSpace: 'nowrap' }}
+                >
+                  As new chat
+                </Button>
+              </GoodTooltip>
+            )}
+
+
             {/* Copy */}
             {!isImported && (
               <GoodTooltip title='Copy'>
-                <IconButton
+                <Button
                   size='sm'
+                  variant='plain'
+                  color='neutral'
                   onClick={handleRayCopyToClipboard}
+                  endDecorator={<ContentCopyIcon sx={{ fontSize: 'md' }} />}
+                  sx={{ fontSize: 'xs' }}
                 >
-                  <ContentCopyIcon sx={{ fontSize: 'md' }} />
-                </IconButton>
+                  Copy
+                </Button>
               </GoodTooltip>
             )}

             {/* Continue */}
             <GoodTooltip title='Choose this message'>
-              <IconButton
+              <Button
                 size='sm'
-                // variant='plain'
+                variant='plain'
                 color={GATHER_COLOR}
                 disabled={isImported || isScattering}
                 onClick={handleRayUse}
                 // endDecorator={!isImported ? <TelegramIcon /> : null}
+                endDecorator={<TelegramIcon />}
                 sx={{
                   fontSize: 'xs',
                   // '--Icon-fontSize': 'var(--joy-fontSize-xl)',
@@ -289,8 +313,9 @@
                   whiteSpace: 'nowrap',
                 }}
               >
-                {isImported ? 'From Chat (copied)' : /*props.hadImportedRays ? 'Replace' : 'Use'*/ <TelegramIcon />}
-              </IconButton>
+
+                {isImported ? 'From Chat (copied)' : /*props.hadImportedRays ? 'Replace' : 'Use'*/ 'Pick this'}
+              </Button>
             </GoodTooltip>

           </Box>

@darthalex2014 something like this?

yes!

@darthalex2014 - this is a great idea. Done and works well, I see why you ask for it; it's great to fork-off variants to then re-explore. It's not available to the public yet as I'm preparing Big-AGI 2, but will be soon. Screenshot below, and it's working well.

Works on both beams and merges.


New version: Insecure.Npcap version 1.80

Pull request has been created with komac v2.6.0 :rocket:
Microsoft Reviewers: Open in CodeFlow

Automatic Validation ended with:
(Automated response - build 896.)


fix(RHTAPBUGS-197): enable pyxis tests again

Description
The issue in the release pyxis test was caused
by bugs in a tekton task that is part
of the push-to-external-registry pipeline.
It was fixed here:

https://github.com/redhat-appstudio/release-service-bundles/pull/111
https://github.com/redhat-appstudio/release-service-bundles/pull/112

Issue ticket number and link
Type of change

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
The test was disabled earlier today because it was failing: https://github.com/redhat-appstudio/e2e-tests/pull/477
If it passes as part of the e2e run of this PR, that should prove that it's fixed now.
Checklist:

[x] I have performed a self-review of my code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added meaningful description with JIRA/GitHub issue key(if applicable), for example HASSuiteDescribe("STONE-123456789 devfile source")
[ ] I have updated labels (if needed)

/retest

/retest


Does not seem to care about the order of words

I have the following two strings:
grid styling xs 1/12
grid styling xs 2/12
And my search input is
xs 2

Both strings get the exact same score, which doesn't seem right.
Because the xs 2 has a longer "direct match" in the order of words with the second string than the first one.
The first string only gets the same score because there is also a "2" in the string. But it's on a location that shouldn't influence the score as match as the "2" in the "right spot"

Hi Jesse,
Would you please provide a test case for your scenario, I'm getting grid styling xs 2/12 as most relevant search result with highest score.

Hi Jesse,
Would you please provide a test case for your scenario? I'm getting grid styling xs 2/12 as most relevant search result with highest score.

In my testing, they get different scores, with xs 2/12 as more relevant.
https://repl.it/repls/RectangularWarmheartedTitle


Fix repositoryDirname for ghcr.io images

When running the example like described here (https://github.com/podtato-head/podtato-head/blob/main/delivery/chart/README.md) it is not working as the image path is not like ghcr.io/podtato-head/left-leg:0.2.1, it is ghcr.io/podtato-head/podtato-head/left-leg:0.2.1
Events:
  Type     Reason     Age                From               Message
  ----     ------     ----               ----               -------
  Normal   Scheduled  83s                default-scheduler  Successfully assigned default/podtato-head-left-leg-cf67f6bf9-28bxn to car-deb10-12
  Warning  Failed     16s (x4 over 82s)  kubelet            Error: ImagePullBackOff
  Normal   BackOff    16s (x4 over 82s)  kubelet            Back-off pulling image "ghcr.io/podtato-head/left-leg:0.2.1"
  Normal   Pulling    3s (x4 over 82s)   kubelet            Pulling image "ghcr.io/podtato-head/left-leg:0.2.1"
  Warning  Failed     3s (x4 over 82s)   kubelet            Failed to pull image "ghcr.io/podtato-head/left-leg:0.2.1": rpc error: code = Unknown desc = failed to pull and unpack image "ghcr.io/podtato-head/left-leg:0.2.1": failed to resolve reference "ghcr.io/podtato-head/left-leg:0.2.1": failed to authorize: failed to fetch anonymous token: unexpected status: 401 Unauthorized
  Warning  Failed     3s (x4 over 82s)   kubelet            Error: ErrImagePull

This will fix the values.yaml with the correct ghcr.io path.

Actually the short path is the intended behavior but the main images are not yet public, pending #138. In the meantime using the test images from ghcr.io/podtato-head/podtato-head/... works as you suggest, thanks!

Hi @heckelmann and sorry for the delay. The 0.1.0 repo and tags should still work all together - that is, if you refer to READMEs from that tag they should still work with the 0.1.0 images. The repo name - that is, the image name, the last part of the URL - changed with the new builds, that's why we had to ask an admin to make those new images public.
They did that and you can see them all now at https://github.com/orgs/podtato-head/packages?repo_name=podtato-head.
Now that they're all public I'd love to know if you have any problems with using the chart and its README as is. I'll close this one, but please open other issues if you encounter problems. Thank you!


_mm_malloc and _mm_free (feature request)

Many codes that use SSE and friends also use _mm_{malloc,realloc,free}.
SSE2Neon supports these (https://github.com/DLTcollab/sse2neon/pull/25/files).
The implementation is simple and I will try to contribute if no one else does it first.
Thanks.

I was wondering whether there was any progress on this issue.

Yes. https://stackoverflow.com/q/32612881/2189128 has some context.

You'll have to replace _mm_free as well, but just with free().

Got it, thanks.  I also see that posix_memalign() takes its argument in terms of bits, whereas _mm_malloc() takes it in terms of bytes.

The alignment argument is in bytes from what I can tell.

The value of alignment shall be a power of two multiple of sizeof(void *).

https://pubs.opengroup.org/onlinepubs/9699919799/functions/posix_memalign.html

Yes, you're right.  Somehow, I was mistakenly thinking that addresses were in terms of bits.