python311Packages.openai: 1.11.0 -> 1.12.0

Diff: https://github.com/openai/openai-python/compare/refs/tags/v1.11.0...v1.12.0
Changelog: https://github.com/openai/openai-python/releases/tag/v1.12.0
Description of changes
Fix build (https://hydra.nixos.org/build/249145723)

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Otherwise this looks good, i dont see anything that jumps out at me.

Result of nixpkgs-review pr 287983 run on x86_64-linux 1

22 packages failed to build:

chatgpt-retrieval-plugin
chatgpt-retrieval-plugin.dist
datasette (python311Packages.datasette)
datasette.dist (python311Packages.datasette.dist)
khoj
khoj.dist
python311Packages.datasette-publish-fly
python311Packages.datasette-publish-fly.dist
python311Packages.datasette-template-sql
python311Packages.datasette-template-sql.dist
python312Packages.litellm
python312Packages.litellm.dist
python312Packages.pyhanko
python312Packages.pyhanko.dist
python312Packages.xhtml2pdf
python312Packages.xhtml2pdf.dist
python312Packages.xsdata
python312Packages.xsdata.dist
sasview
sasview.dist
shell-genie
shell-genie.dist

94 packages built:

chatblade
chatblade.dist
checkov
checkov.dist
dmarc-metrics-exporter
dmarc-metrics-exporter.dist
github-to-sqlite (python311Packages.github-to-sqlite)
github-to-sqlite.dist (python311Packages.github-to-sqlite.dist)
home-assistant-component-tests.openai_conversation
imaginer
llm (python311Packages.llm)
llm.dist (python311Packages.llm.dist)
maigret
maigret.dist
manim
manim.dist
open-interpreter (python311Packages.open-interpreter)
open-interpreter.dist (python311Packages.open-interpreter.dist)
openai (python311Packages.openai)
openai.dist (python311Packages.openai.dist)
pentestgpt
pentestgpt.dist
python311Packages.click-default-group
python311Packages.click-default-group.dist
python311Packages.fastapi-sso
python311Packages.fastapi-sso.dist
python311Packages.greynoise
python311Packages.greynoise.dist
python311Packages.guidance
python311Packages.guidance.dist
python311Packages.image-diff
python311Packages.image-diff.dist
python311Packages.karton-mwdb-reporter
python311Packages.karton-mwdb-reporter.dist
python311Packages.langchain
python311Packages.langchain-community
python311Packages.langchain-community.dist
python311Packages.langchain-core
python311Packages.langchain-core.dist
python311Packages.langchain.dist
python311Packages.langsmith
python311Packages.langsmith.dist
python311Packages.litellm
python311Packages.litellm.dist
python311Packages.mwdblib
python311Packages.mwdblib.dist
python311Packages.prisma
python311Packages.prisma.dist
python311Packages.pyhanko
python311Packages.pyhanko.dist
python311Packages.resend
python311Packages.resend.dist
s3-credentials (python311Packages.s3-credentials)
s3-credentials.dist (python311Packages.s3-credentials.dist)
python311Packages.sqlite-migrate
python311Packages.sqlite-migrate.dist
sqlite-utils (python311Packages.sqlite-utils)
sqlite-utils.dist (python311Packages.sqlite-utils.dist)
python311Packages.ward
python311Packages.ward.dist
python311Packages.xhtml2pdf
python311Packages.xhtml2pdf.dist
python311Packages.xsdata
python311Packages.xsdata.dist
python312Packages.click-default-group
python312Packages.click-default-group.dist
python312Packages.github-to-sqlite
python312Packages.github-to-sqlite.dist
python312Packages.greynoise
python312Packages.greynoise.dist
python312Packages.image-diff
python312Packages.image-diff.dist
python312Packages.karton-mwdb-reporter
python312Packages.karton-mwdb-reporter.dist
python312Packages.langchain-community
python312Packages.langchain-community.dist
python312Packages.langchain-core
python312Packages.langchain-core.dist
python312Packages.langsmith
python312Packages.langsmith.dist
python312Packages.mwdblib
python312Packages.mwdblib.dist
python312Packages.openai
python312Packages.openai.dist
python312Packages.prisma
python312Packages.prisma.dist
python312Packages.resend
python312Packages.resend.dist
python312Packages.sqlite-migrate
python312Packages.sqlite-migrate.dist
python312Packages.sqlite-utils
python312Packages.sqlite-utils.dist
shot-scraper
shot-scraper.dist

It looks like there are a lot of rebuilds, this should probably target staging.

I removed the commit which triggered the huge amount of rebuild.

Result of nixpkgs-review pr 287983 run on x86_64-linux 1

16 packages failed to build:

chatgpt-retrieval-plugin
chatgpt-retrieval-plugin.dist
khoj
khoj.dist
python312Packages.litellm
python312Packages.litellm.dist
python312Packages.pyhanko
python312Packages.pyhanko.dist
python312Packages.xhtml2pdf
python312Packages.xhtml2pdf.dist
python312Packages.xsdata
python312Packages.xsdata.dist
sasview
sasview.dist
shell-genie
shell-genie.dist

100 packages built:

chatblade
chatblade.dist
checkov
checkov.dist
datasette (python311Packages.datasette)
datasette.dist (python311Packages.datasette.dist)
dmarc-metrics-exporter
dmarc-metrics-exporter.dist
github-to-sqlite (python311Packages.github-to-sqlite)
github-to-sqlite.dist (python311Packages.github-to-sqlite.dist)
home-assistant-component-tests.openai_conversation
imaginer
llm (python311Packages.llm)
llm.dist (python311Packages.llm.dist)
maigret
maigret.dist
manim
manim.dist
open-interpreter (python311Packages.open-interpreter)
open-interpreter.dist (python311Packages.open-interpreter.dist)
openai (python311Packages.openai)
openai.dist (python311Packages.openai.dist)
pentestgpt
pentestgpt.dist
python311Packages.click-default-group
python311Packages.click-default-group.dist
python311Packages.datasette-publish-fly
python311Packages.datasette-publish-fly.dist
python311Packages.datasette-template-sql
python311Packages.datasette-template-sql.dist
python311Packages.fastapi-sso
python311Packages.fastapi-sso.dist
python311Packages.greynoise
python311Packages.greynoise.dist
python311Packages.guidance
python311Packages.guidance.dist
python311Packages.image-diff
python311Packages.image-diff.dist
python311Packages.karton-mwdb-reporter
python311Packages.karton-mwdb-reporter.dist
python311Packages.langchain
python311Packages.langchain-community
python311Packages.langchain-community.dist
python311Packages.langchain-core
python311Packages.langchain-core.dist
python311Packages.langchain.dist
python311Packages.langsmith
python311Packages.langsmith.dist
python311Packages.litellm
python311Packages.litellm.dist
python311Packages.mwdblib
python311Packages.mwdblib.dist
python311Packages.prisma
python311Packages.prisma.dist
python311Packages.pyhanko
python311Packages.pyhanko.dist
python311Packages.resend
python311Packages.resend.dist
s3-credentials (python311Packages.s3-credentials)
s3-credentials.dist (python311Packages.s3-credentials.dist)
python311Packages.sqlite-migrate
python311Packages.sqlite-migrate.dist
sqlite-utils (python311Packages.sqlite-utils)
sqlite-utils.dist (python311Packages.sqlite-utils.dist)
python311Packages.ward
python311Packages.ward.dist
python311Packages.xhtml2pdf
python311Packages.xhtml2pdf.dist
python311Packages.xsdata
python311Packages.xsdata.dist
python312Packages.click-default-group
python312Packages.click-default-group.dist
python312Packages.github-to-sqlite
python312Packages.github-to-sqlite.dist
python312Packages.greynoise
python312Packages.greynoise.dist
python312Packages.image-diff
python312Packages.image-diff.dist
python312Packages.karton-mwdb-reporter
python312Packages.karton-mwdb-reporter.dist
python312Packages.langchain-community
python312Packages.langchain-community.dist
python312Packages.langchain-core
python312Packages.langchain-core.dist
python312Packages.langsmith
python312Packages.langsmith.dist
python312Packages.mwdblib
python312Packages.mwdblib.dist
python312Packages.openai
python312Packages.openai.dist
python312Packages.prisma
python312Packages.prisma.dist
python312Packages.resend
python312Packages.resend.dist
python312Packages.sqlite-migrate
python312Packages.sqlite-migrate.dist
python312Packages.sqlite-utils
python312Packages.sqlite-utils.dist
shot-scraper
shot-scraper.dist

Some of the failures are related to the missing support for Python 3.12 of docformatter and pyarrow.


Add sync status

What this PR does / why we need it:
Add sync status to avoid two sync tasks for the same device are running at the same time.
For a storage device, add a int(named sync_status) to indicate the sync status, each bit of this int indicates a resource.
When a sync task for a resource is running for a device, set the special bit of sync_status of this device to 1, and when sync is done, set the special bit back to 0.
When received request to sync resource of a device, check if all the bit of sync_status is 0(means no sync task is running for this device), if not, this request would not be handled.
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
Special notes for your reviewer:
Release note:

For 'sync' api, if sync_status is not 0, raise a exception.
For 'sync_all' api, if sync_status of a device is not 0, skip this device and handle the next device.

Test case:
|-----------------------------------------------------------------------------------------------------|-----------------------------------------------|
| Test case                                     | Expected behavior for sync                          | Expected behavior for sync_all                |
|-----------------------------------------------------------------------------------------------------|-----------------------------------------------|
| No sync task is running                       | New sync task should run normally                   | New sync tasks should run normally            |
|-----------------------------------------------------------------------------------------------------------------------------------------------------|
| One of the sync task is running for a device  | New sync task should not run and raise an exception | New sync task of that device should not run,  |
|                                               |                                                     | but other devices' tasks should run normally  |
|-----------------------------------------------------------------------------------------------------------------------------------------------------|
| All of the sync task is running for a device  | New sync task should not run and raise an exception | New sync task of that device should not run,  |
|                                               |                                                     | but other devices' tasks should run normally  |
|-----------------------------------------------------------------------------------------------------------------------------------------------------|

Codecov Report

Merging #146 into master will increase coverage by 0.46%.
The diff coverage is 63.63%.

@@            Coverage Diff             @@
##           master     #146      +/-   ##
==========================================
+ Coverage   29.19%   29.65%   +0.46%
==========================================
  Files          61       61
  Lines        3919     3972      +53
  Branches      441      444       +3
==========================================
+ Hits         1144     1178      +34
- Misses       2758     2777      +19
  Partials       17       17

Impacted Files
Coverage Δ

dolphin/task_manager/manager.py
0.00% <0.00%> (ø)

dolphin/api/v1/storages.py
39.23% <14.28%> (-1.42%)
:arrow_down:

dolphin/task_manager/tasks/task.py
27.35% <50.00%> (+5.61%)
:arrow_up:

dolphin/common/constants.py
100.00% <100.00%> (ø)

dolphin/db/sqlalchemy/models.py
94.84% <100.00%> (+0.10%)
:arrow_up:

dolphin/utils.py
27.40% <100.00%> (+1.25%)
:arrow_up:

@ThisIsClark , we also need to think about the dead lock scenario, say one consumer crashed and the coresponding bit will neber be reset.

@ThisIsClark , we also need to think about the dead lock scenario, say one consumer crashed and the coresponding bit will neber be reset.

Raised a issue: #165


Improve Documentation on KERAS_BACKEND

I was testing a sample Kaggle competition notebook found here https://www.kaggle.com/competitions/rsna-2023-abdominal-trauma-detection/code
I wrote a simple script to load the model and ran into an issue. It took me a few days to figure out why.
if I set KERAS_BACKEND after importing keras libraries, models.load_model fails with a strange error.  Once I moved line to the top, it got rid of the error. It would be good to update the documentation so that users can resolve this quickly without wasting a bunch of time. I tend to import all the libraries first and then set any environment variables after the imports. I can make a documentation pull request if that helps.
import os
backend must be set before loading keras_core to avoid load errors
os.environ["KERAS_BACKEND"] = "tensorflow"
import sys
import keras_cv
import keras_core as keras
from keras_core import layers
import numpy as np
import pandas as pd
import tensorflow as tf
class Config:
SEED = 61
IMAGE_SIZE = [256, 256]
BATCH_SIZE = 160
EPOCHS = 10
TARGET_COLS  = [
"bowel_injury", "extravasation_injury",
"kidney_healthy", "kidney_low", "kidney_high",
"liver_healthy", "liver_low", "liver_high",
"spleen_healthy", "spleen_low", "spleen_high",
]
BASE_PATH = "./input/rsna-2023-abdominal-trauma-detection"
AUTOTUNE = tf.data.AUTOTUNE
config = Config()
def main():
args = sys.argv[0:]
if len(args) == 1:
print('Example usage:')
print('    python train_model.py checkpoint_path')
else:
print(args)
filename = args[1]
print("try to load the model")
loadmodel = keras.models.load_model(filename)
print(loadmodel.summary())
if name == "main":
main()

Some additional information, in case someone else runs into the same issue. If I move backend setting to after the imports, load throws this error. Here is the log from console.
Using TensorFlow backend
2.12.0
Traceback (most recent call last):
File "/Users/peterlin/kaggle/ATD-keras/keras/convert_keras_to_json.py", line 98, in
main()
File "/Users/peterlin/kaggle/ATD-keras/keras/convert_keras_to_json.py", line 25, in main
run(input, outputfile)
File "/Users/peterlin/kaggle/ATD-keras/keras/convert_keras_to_json.py", line 29, in run
inputmodel = tf.keras.models.load_model(inputfile)
File "/Users/peterlin/miniconda3/envs/tf2_kg/lib/python3.10/site-packages/keras/saving/saving_api.py", line 204, in load_model
return saving_lib.load_model(
File "/Users/peterlin/miniconda3/envs/tf2_kg/lib/python3.10/site-packages/keras/saving/saving_lib.py", line 277, in load_model
raise e
File "/Users/peterlin/miniconda3/envs/tf2_kg/lib/python3.10/site-packages/keras/saving/saving_lib.py", line 242, in load_model
model = deserialize_keras_object(
File "/Users/peterlin/miniconda3/envs/tf2_kg/lib/python3.10/site-packages/keras/saving/serialization_lib.py", line 502, in deserialize_keras_object
instance = cls.from_config(inner_config)
File "/Users/peterlin/miniconda3/envs/tf2_kg/lib/python3.10/site-packages/keras_core/src/models/model.py", line 515, in from_config
return functional_from_config(
File "/Users/peterlin/miniconda3/envs/tf2_kg/lib/python3.10/site-packages/keras_core/src/models/functional.py", line 519, in functional_from_config
process_node(layer, node_data)
File "/Users/peterlin/miniconda3/envs/tf2_kg/lib/python3.10/site-packages/keras_core/src/models/functional.py", line 466, in process_node
layer(*args, **kwargs)
File "/Users/peterlin/miniconda3/envs/tf2_kg/lib/python3.10/site-packages/keras/utils/traceback_utils.py", line 70, in error_handler
raise e.with_traceback(filtered_tb) from None
File "/Users/peterlin/miniconda3/envs/tf2_kg/lib/python3.10/site-packages/keras/engine/input_spec.py", line 251, in assert_input_compatibility
ndim = x.shape.rank
AttributeError: Exception encountered when calling layer 'res_net_backbone' (type ResNetBackbone).
'tuple' object has no attribute 'rank'
Call arguments received by layer 'res_net_backbone' (type ResNetBackbone):
• inputs=<KerasTensor shape=(160, 256, 256, 3), dtype=float32, name=input_layer>
• training=None
• mask=None

Hi @giild ,
There is a this note already in documentation.

Note that the  that the backend must be configured before importing keras_core, and the backend cannot be changed after the package has been imported.

Please refer the attached snapshot.

thanks for pointing out it was at the bottom. Not gonna lie, I looked at the home page several times and didn't even see it. I've been contributing to Apache for 20 years and often we have troubleshooting page/section for common errors. I would suggest moving the note above example and giving it more emphasis. It's too easy to miss the way it is formatted it right now. I've seen this countless times on a variety of apache projects. Often what apache devs thought was obvious wasn't due to how we formatted or organized the documentation.

Something else to consider. https://keras.io/keras_core/  is the official docs. Often, I refer to the source instead of docs out of habit. Would it make sense to update the readme on https://github.com/keras-team/keras-core with similar note?   Maybe have the readme link to the official documentation URL to lessen the maintenance overhead.

@giild ,
Thanks for the explanation. I think we can add a note in README.md for better visibility. I can create a PR once Team reviews this and gives nod.


Using Salut for Peer-To-Peer

What I understand of Salut, its primarily for Wifi Direct Service discovery and connection/communication henceforth.
Is Salut already abstracting Peer-to-Peer discovery and functionality or is it limited to Service discovery only?
Any plans for Peer-to-Peer discovery and functionality in upcoming versions?

Since the peer discovery and connecion is really simple (as per the Android docs), getting help for sending data across using Salut would be really helpful

Hello,
I'm going to assume that you're already familiar with the discoverPeers method and the peerListListener from the Android documentation, which are used for discovering peers and then getting the list of peers respectively. Once you've got a peer as a WiFiP2PDevice, convert it into a SalutDevice and pass that to the Salut connect method. You'll need to change up the onConnectionInfoAvailable method completely. It might look something like this. This is mostly pseudocode.
    @Override
    public void onConnectionInfoAvailable(final WifiP2pInfo info) {

               SalutDevice device = new SalutDevice();
               device.deviceName = WIFIP2PDEVICEOBJECT.deviceName;
               device.macAddress = WIFIP2PDEVICEOBJECT.deviceAddress;
               device.serviceAddress = info.groupOwnerAddress;
               device.servicePort = SOMEPREDETERMINEDPORT;

              //You will likely have to create above object somewhere else, or make it global so that you have access to it here.

               BackgroundDataSendJob sendDataToDevice = new BackgroundDataSendJob(device, this, data, onFailure);
               AsyncJob.doInBackground(sendDataToDevice);
    }


0.17: tox based test suite is failing

+ cd sphinxcontrib-programoutput-0.17
+ /usr/bin/python3 -Bm tox --skip-missing-interpreters
py27 create: /home/tkloczko/rpmbuild/BUILD/sphinxcontrib-programoutput-0.17/.tox/py27
SKIPPED: InterpreterNotFound: python2.7
py27-old create: /home/tkloczko/rpmbuild/BUILD/sphinxcontrib-programoutput-0.17/.tox/py27-old
SKIPPED: InterpreterNotFound: python2.7
py36 create: /home/tkloczko/rpmbuild/BUILD/sphinxcontrib-programoutput-0.17/.tox/py36
SKIPPED: InterpreterNotFound: python3.6
py37 create: /home/tkloczko/rpmbuild/BUILD/sphinxcontrib-programoutput-0.17/.tox/py37
SKIPPED: InterpreterNotFound: python3.7
py38 create: /home/tkloczko/rpmbuild/BUILD/sphinxcontrib-programoutput-0.17/.tox/py38
py38 installdeps: pylint, coverage
py38 develop-inst: /home/tkloczko/rpmbuild/BUILD/sphinxcontrib-programoutput-0.17
py38 installed: alabaster==0.7.12,astroid==2.5.6,Babel==2.9.0,certifi==2020.12.5,chardet==4.0.0,coverage==5.5,docutils==0.16,idna==2.10,imagesize==1.2.0,isort==5.8.0,Jinja2==2.11.3,lazy-object-proxy==1.6.0,MarkupSafe==1.1.1,mccabe==0.6.1,packaging==20.9,Pygments==2.8.1,pylint==2.8.2,pyparsing==2.4.7,pytz==2021.1,requests==2.25.1,snowballstemmer==2.1.0,Sphinx==3.5.4,sphinxcontrib-applehelp==1.0.2,sphinxcontrib-devhelp==1.0.2,sphinxcontrib-htmlhelp==1.0.3,sphinxcontrib-jsmath==1.0.1,# Editable install with no version control (sphinxcontrib-programoutput==0.17),-e /home/tkloczko/rpmbuild/BUILD/sphinxcontrib-programoutput-0.17/src,sphinxcontrib-qthelp==1.0.3,sphinxcontrib-serializinghtml==1.1.4,toml==0.10.2,urllib3==1.26.4,wrapt==1.12.1
py38 run-test-pre: PYTHONHASHSEED='2428015188'
py38 run-test: commands[0] | coverage run -p -m unittest discover -s src
.............................................s............
----------------------------------------------------------------------
Ran 58 tests in 10.319s

OK (skipped=1)
py38 run-test: commands[1] | pylint -r no src/sphinxcontrib
************* Module sphinxcontrib.programoutput
src/sphinxcontrib/programoutput/__init__.py:188:8: R1732: Consider using 'with' for resource-allocating operations (consider-using-with)

------------------------------------------------------------------
Your code has been rated at 9.98/10 (previous run: 9.98/10, +0.00)

ERROR: InvocationError for command /home/tkloczko/rpmbuild/BUILD/sphinxcontrib-programoutput-0.17/.tox/py38/bin/pylint -r no src/sphinxcontrib (exited with code 8)
py39 create: /home/tkloczko/rpmbuild/BUILD/sphinxcontrib-programoutput-0.17/.tox/py39
SKIPPED: InterpreterNotFound: python3.9
pypy create: /home/tkloczko/rpmbuild/BUILD/sphinxcontrib-programoutput-0.17/.tox/pypy
SKIPPED: InterpreterNotFound: pypy
doc create: /home/tkloczko/rpmbuild/BUILD/sphinxcontrib-programoutput-0.17/.tox/doc
doc installdeps: pylint, coverage
doc develop-inst: /home/tkloczko/rpmbuild/BUILD/sphinxcontrib-programoutput-0.17
doc installed: alabaster==0.7.12,astroid==2.5.6,Babel==2.9.0,certifi==2020.12.5,chardet==4.0.0,coverage==5.5,docutils==0.16,idna==2.10,imagesize==1.2.0,isort==5.8.0,Jinja2==2.11.3,lazy-object-proxy==1.6.0,MarkupSafe==1.1.1,mccabe==0.6.1,packaging==20.9,Pygments==2.8.1,pylint==2.8.2,pyparsing==2.4.7,pytz==2021.1,requests==2.25.1,snowballstemmer==2.1.0,Sphinx==3.5.4,sphinxcontrib-applehelp==1.0.2,sphinxcontrib-devhelp==1.0.2,sphinxcontrib-htmlhelp==1.0.3,sphinxcontrib-jsmath==1.0.1,# Editable install with no version control (sphinxcontrib-programoutput==0.17),-e /home/tkloczko/rpmbuild/BUILD/sphinxcontrib-programoutput-0.17/src,sphinxcontrib-qthelp==1.0.3,sphinxcontrib-serializinghtml==1.1.4,toml==0.10.2,urllib3==1.26.4,wrapt==1.12.1
doc run-test-pre: PYTHONHASHSEED='2428015188'
doc run-test: commands[0] | sphinx-build -W -b linkcheck -d /home/tkloczko/rpmbuild/BUILD/sphinxcontrib-programoutput-0.17/.tox/doc/tmp/doctrees doc /home/tkloczko/rpmbuild/BUILD/sphinxcontrib-programoutput-0.17/.tox/doc/tmp/linkcheck
Running Sphinx v3.5.4
making output directory... done
loading intersphinx inventory from https://docs.python.org/objects.inv...
loading intersphinx inventory from http://packages.python.org/sphinxcontrib-ansi/objects.inv...
intersphinx inventory has moved: https://docs.python.org/objects.inv -> https://docs.python.org/3/objects.inv
intersphinx inventory has moved: http://packages.python.org/sphinxcontrib-ansi/objects.inv -> https://pythonhosted.org/sphinxcontrib-ansi/objects.inv
building [mo]: targets for 0 po files that are out of date
building [linkcheck]: targets for 1 source files that are out of date
updating environment: [new config] 1 added, 0 changed, 0 removed
reading sources... [100%] index

looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [100%] index

(           index: line  192) ok        https://docs.python.org/3/library/shlex.html#shlex.split
(           index: line  123) ok        https://docs.python.org/3/library/shlex.html#module-shlex
(           index: line  246) ok        https://docs.python.org/2/library/string.html#formatstrings
(           index: line   11) redirect  http://www.sphinx-doc.org/en/stable/ - with Found to https://www.sphinx-doc.org/en/master/
(           index: line  166) ok        https://docs.python.org/3/library/sys.html#sys.exit
(           index: line  263) ok        https://github.com/NextThought/sphinxcontrib-programoutput/issues
(           index: line  275) ok        https://github.com/NextThought/sphinxcontrib-programoutput
(           index: line  285) redirect  http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html - permanently to https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
(           index: line   93) ok        https://github.com/NextThought/sphinxcontrib-programoutput/issues/17
(           index: line   63) ok        https://github.com/NextThought/sphinxcontrib-programoutput/issues/29
(           index: line   46) ok        https://github.com/NextThought/sphinxcontrib-programoutput/issues/33
(           index: line   71) ok        https://github.com/NextThought/sphinxcontrib-programoutput/issues/25
(           index: line   30) ok        https://github.com/NextThought/sphinxcontrib-programoutput/issues/38
(           index: line   79) ok        https://github.com/habnabit/sphinxcontrib-programoutput/commit/592078e0386c2a36d50a6528b6e49d91707138bf
(           index: line   57) ok        https://myst-parser.readthedocs.io/en/latest/using/syntax.html#extended-block-tokens
(           index: line   12) ok        https://github.com/NextThought/sphinxcontrib-programoutput/issues/50
(           index: line  282) redirect  https://gun.io/blog/how-to-github-fork-branch-and-pull-request/ - permanently to https://www.gun.io/blog/how-to-github-fork-branch-and-pull-request
(           index: line  288) ok        https://www.python.org/dev/peps/pep-0008
(           index: line  288) redirect  https://pypi.python.org/pypi/pep8/ - permanently to https://pypi.org/project/pep8/
(           index: line   21) ok        https://github.com/NextThought/sphinxcontrib-programoutput/pull/41
(           index: line  290) redirect  https://help.github.com/articles/using-pull-requests - permanently to https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests
(           index: line   19) redirect  https://pypi.python.org/pypi/sphinxcontrib-programoutput - permanently to https://pypi.org/project/sphinxcontrib-programoutput/
build succeeded.

Look for any errors in the above output or in .tox/doc/tmp/linkcheck/output.txt
doc run-test: commands[1] | sphinx-build -W -b html -d /home/tkloczko/rpmbuild/BUILD/sphinxcontrib-programoutput-0.17/.tox/doc/tmp/doctrees doc /home/tkloczko/rpmbuild/BUILD/sphinxcontrib-programoutput-0.17/.tox/doc/tmp/html
Running Sphinx v3.5.4
making output directory... done
loading pickled environment... done
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 1 source files that are out of date
updating environment: 0 added, 0 changed, 0 removed
looking for now-outdated files... none found
preparing documents... done
writing output... [100%] index

generating indices... genindex py-modindex done
writing additional pages... search done
copying static files... done
copying extra files... done
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded.

The HTML pages are in .tox/doc/tmp/html.
coverage create: /home/tkloczko/rpmbuild/BUILD/sphinxcontrib-programoutput-0.17/.tox/coverage
coverage installdeps: pylint, coverage
coverage develop-inst: /home/tkloczko/rpmbuild/BUILD/sphinxcontrib-programoutput-0.17
coverage installed: alabaster==0.7.12,astroid==2.5.6,Babel==2.9.0,certifi==2020.12.5,chardet==4.0.0,coverage==5.5,docutils==0.16,idna==2.10,imagesize==1.2.0,isort==5.8.0,Jinja2==2.11.3,lazy-object-proxy==1.6.0,MarkupSafe==1.1.1,mccabe==0.6.1,packaging==20.9,Pygments==2.8.1,pylint==2.8.2,pyparsing==2.4.7,pytz==2021.1,requests==2.25.1,snowballstemmer==2.1.0,Sphinx==3.5.4,sphinxcontrib-applehelp==1.0.2,sphinxcontrib-devhelp==1.0.2,sphinxcontrib-htmlhelp==1.0.3,sphinxcontrib-jsmath==1.0.1,# Editable install with no version control (sphinxcontrib-programoutput==0.17),-e /home/tkloczko/rpmbuild/BUILD/sphinxcontrib-programoutput-0.17/src,sphinxcontrib-qthelp==1.0.3,sphinxcontrib-serializinghtml==1.1.4,toml==0.10.2,urllib3==1.26.4,wrapt==1.12.1
coverage run-test-pre: PYTHONHASHSEED='2428015188'
coverage run-test: commands[0] | coverage combine
coverage run-test: commands[1] | coverage html -i
coverage run-test: commands[2] | coverage report -i --fail-under=100
Name                                                      Stmts   Miss  Cover
-----------------------------------------------------------------------------
src/sphinxcontrib/programoutput/__init__.py                 141      2    99%
src/sphinxcontrib/programoutput/tests/__init__.py           111      2    98%
src/sphinxcontrib/programoutput/tests/test_cache.py          56      0   100%
src/sphinxcontrib/programoutput/tests/test_command.py        79      0   100%
src/sphinxcontrib/programoutput/tests/test_directive.py     217      2    99%
src/sphinxcontrib/programoutput/tests/test_setup.py           9      0   100%
src/sphinxcontrib/programoutput/tests/test_util.py           19      0   100%
-----------------------------------------------------------------------------
TOTAL                                                       632      6    99%
Coverage failure: total of 99 is less than fail-under=100
ERROR: InvocationError for command /home/tkloczko/rpmbuild/BUILD/sphinxcontrib-programoutput-0.17/.tox/coverage/bin/coverage report -i --fail-under=100 (exited with code 2)
_________________________________________________________________________________ summary __________________________________________________________________________________
SKIPPED:  py27: InterpreterNotFound: python2.7
SKIPPED:  py27-old: InterpreterNotFound: python2.7
SKIPPED:  py36: InterpreterNotFound: python3.6
SKIPPED:  py37: InterpreterNotFound: python3.7
ERROR:   py38: commands failed
SKIPPED:  py39: InterpreterNotFound: python3.9
SKIPPED:  pypy: InterpreterNotFound: pypy
  doc: commands succeeded
ERROR:   coverage: commands failed

Thanks for the report.
The coverage failure is because you didn't run all environments (you're missing most interpreters).
The pylint failure is a new check introduced in a newer version of pylint (the version of pylint is deliberately left to float as this is a development tool). I've addressed that in https://github.com/NextThought/sphinxcontrib-programoutput/commit/cbf4caaab37bf059c3255320349fbf39bba2da73.


read can not have position excceed buffer length

Tried to train a XGBRegressor with XGBoost4J-Spark as:
val xgbRf0 = new XGBoostRegressor() xgbRf0.setNumRound(500)     xgbRf0.setMaxDepth(50)     xgbRf0.setNthread(20)     xgbRf0.setTreeMethod("hist")     xgbRf0.setSeed(2)     xgbRf0.setEta(0.1)     xgbRf0.setMinChildWeight(1)     xgbRf0.setSubsample(0.8)     xgbRf0.setColsampleBytree(0.8)     xgbRf0.setGamma(0)     xgbRf0.setAlpha(0)     xgbRf0.setLambda(1)     xgbRf0.setNumWorkers(3)
The training dataset has more than 6 million records, during training, I have below error with xgboost 0.90:
20/06/23 01:15:21 INFO java.RabitTracker$TrackerProcessLogger: 2020-06-23 01:15:21,250 INFO [497]       train-rmse:0.006187
20/06/23 01:15:24 INFO java.RabitTracker$TrackerProcessLogger: 2020-06-23 01:15:24,192 INFO [498]       train-rmse:0.006187
20/06/23 01:15:28 INFO java.RabitTracker$TrackerProcessLogger: 2020-06-23 01:15:28,023 INFO [499]       train-rmse:0.006188
20/06/23 01:15:28 INFO scheduler.DAGScheduler: Job 27 finished: foreachPartition at XGBoost.scala:452, took 1852.658991 s
20/06/23 01:15:28 INFO spark.SparkContext: Starting job: first at XGBoost.scala:570
AssertError:read can not have position excceed buffer length
And I have core dump on executor with xgboost master.
Tried both java serializer and kryo serializer, no luck.

Most likely similar to this: https://github.com/dmlc/xgboost/issues/5650

This seems to be a rabit error.  It can happen if something went wrong during synchronization between workers.

@thvasilo Thank you for your reply.
Seems for #5650, the exception happened when loading a newer model with old version. I trained the model from scratch and the exception happened during training. Any suggestion to walk around the exception?

I don't think it's related to model loading.

In that case this is an error I think I've seen with rabbit trying to write more bytes to the sync buffer because it does read-ahead in chunks of 1024 bytes. See this issue for example: https://github.com/apache/incubator-datasketches-cpp/issues/5

Could you please try latest xgboost?


Windows 10 and the Keybase App Icon

I have Windows 10 Professional x64 installed, along with DisplayFusion (for that extra Start Bar on my other screen). The Keybase program is in my Taskbar, but under the arrow (only two things are visible outside of the collapse: WiFi status and volume). When I click the arrow, the remainder pop up. However, if I click the icon, Keybase pops up exactly underneath the uncollapse. Clicking the start bar, or anywhere else, which closes the collapse... closes Keybase as well. I've turned off Autohide Startbar, and it still happens. Most of the other apps I have open their menu at a remove - Google Drive actually draws over the popup with its menu, as does Steam.
See below:

my log id: 15e3c032d0da88fd1a34d01c

I have a very similar issue. It is even worse with a taskbar docked to the left, you can't click anything without changing the position of the taskbar. I'm also running DisplayFusion but only for the multiscreen wallpaper.
Keybase GUI Version: 1.0.18-20161116112520+95f8303


feat(instrumentation-aws-lambda): support .mjs handlers

Which problem is this PR solving?
The Lambda instrumentation doesn't currently support instrumenting .mjs handlers even though ESM is now supported by both the Lambda runtime and the instrumentation package.
Short description of the changes
Extend the existing logic to check for an .mjs file on top of .js and .cjs.

Missing a test at the moment, still need to figure out what the best way to go about that would be since the other Lambda tests do not use the fixture utility and all share the same structure.

@JamieDanielson I think you've been pushing a lot for ESM support as a whole, if I rebased this do you think you'd be able to take a look ?

@jj22ee a review would be much appreciated if when have some time

Hi, I see that there have been merged changes recently to support ESM handlers while not changing the implementation in instrumentation-aws-lambda. There are fixes related to the issue of baseDir.

https://github.com/open-telemetry/opentelemetry-lambda/issues/1557#issuecomment-2443807330

It looks like that ESM handlers will be supported once all these changes are released in the latest OTel JS version.
Would your changes still be needed after this?

cc @tylerbenson @serkan-ozal @mchiaramonte


Config

I'm realizing that a config module doesn't make much sense and it is much better to let each module be able to create a proposal to change their own config. It's more adaptable


Question about background extraction

Thank you for sharing the excellent work.
After all the training process, what is the token that refers to the background? How can I extract the background?
I might have missed it in the code, but it seems there is no step to register a background token.
Do I need to add it myself, like other assets?

Hi,
Yes --- you can treat the background as any other asset, by providing a mask and (optionally) an initializer token.

Ah-ha I fully understand it. Thank you


Roll Packages from b9b6d38e012b to 5aef49b1c1d8 (2 revisions)

https://github.com/flutter/packages/compare/b9b6d38e012b...5aef49b1c1d8
2024-01-06<EMAIL_ADDRESS>[ci] Revert #5793 + Manual flutter roll to c6ddb73f971edd8210893db9f26ae665906cd6be (flutter/packages#5812)
2024-01-05<EMAIL_ADDRESS>Enable prefer_mixin and bump plugin_platform_interface to 2.1.7 (flutter/packages#5793)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.


use the sub extracted from the JWT

Not needed, as the JWT resolution is now fast enough in Topaz.


Cannot use cleanSelected any more in React16, looks like a scoping issue?

I don't seem to be able to use this.refs.table any more in React16.
Seems to be a scoping issue maybe?  The function does not seem to be on the ref object.
Any ideas?
thanks

I dont think so, you still can use refs but you need to use it as a callback
https://reactjs.org/docs/refs-and-the-dom.html

Hi Allen
All the react-bootstrap-table documentation shows refs as a string.  Can you give an example of the correct way to use a callback please for react-boostrap-table refs?
thanks

Hi dukedougal,
How did you solve the problem? Even with using a callback, I get 'cleanSelected is not a function. The same with reset.

I has to do something like
this.tableRef = React.createRef(); // in the constructor
this.tableRef.current.reset()

I was missing the current, just in case this is useful for somebody


[Lab 4.6] Sudoku Solver: content

1.md

should have no code in this card

There is only one line of code in 1.md. It's almost about user graphics. In order to satisfy your need, I move the code to 2.md


add ironic-image release-24.0 to sync

Add new release branch for syncing.

/override test-integration-metal3-dev-tools-centos test-integration-metal3-dev-tools-ubuntu
Irrelevant.


micro can not support "protobuf oneof feature"?

I just change the protobuf file in https://github.com/micro/examples/tree/master/greeter/srv:
syntax = "proto3";

package go.micro.srv.greeter;

service Say {
    rpc Hello (Request) returns (Response) {
    }
}

message Request {
    string name = 1;
    oneof a {
        OneOfRequest b = 2;
    }
}

message OneOfRequest {
    string c = 1;
}

message Response {
    string msg = 1;
}

the result:
XXXX:~/code/src/github.com/micro/examples/greeter$ micro get service go.micro.srv.greeter
service  go.micro.srv.greeter

version 1.0.0

Id      Address Port    Metadata
go.micro.srv.greeter-36211938-c385-11e7-90ec-509a4c048c1a       <IP_ADDRESS>    45708   transport=http,broker=http,server=rpc,registry=consul

Endpoint: Say.Hello
Metadata: stream=false

Request: {
        name string
        is_request__a isRequest_A
}

Response: {
        msg string
}

It seem that oneof feature can not support:
XXXX:~/code/src/github.com/micro/examples/greeter$ micro query go.micro.srv.greeter Say.Hello '{"name": "John","a":{"b":"test"}}'
error calling go.micro.srv.greeter.Say.Hello: json: cannot unmarshal object into Go struct field Request.A of type go_micro_srv_greeter.isRequest_A

XXXX:~/code/src/github.com/micro/examples/greeter$ micro query go.micro.srv.greeter Say.Hello '{"name": "John","a":{"b":{"c":"test"}}}'
error calling go.micro.srv.greeter.Say.Hello: json: cannot unmarshal object into Go struct field Request.A of type go_micro_srv_greeter.isRequest_A

how can I write the json? I try a long time....
but I do this, It works!
XXXX:~/code/src/github.com/micro/examples/greeter$ micro query go.micro.srv.greeter Say.Hello '{"name": "John","a":null}'
{
        "msg": "Hello John"
}

Micro can not support "protobuf  oneof feature"?

The oneof feature requires the use of jsonpb which micro does not currently support.

Thank you very much. We're preparing to use micro as our microservice framework. Many of our old services are using oneof(we use gRPC). It's a bit of a sad. When do you start supporting?

How does grpc support oneof with json?

sorry, I missed add this: https://github.com/grpc-ecosystem/grpc-gateway
It can proxy RESTful JSON API into gRPC
#!/usr/bin/env bash
protoc -I/usr/local/include -I. \
  -I$GOPATH/src \
  -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
  --go_out=plugins=grpc:. \
  msg_newest.proto

protoc -I/usr/local/include -I. \
  -I$GOPATH/src \
  -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
  --grpc-gateway_out=logtostderr=true:. \
  msg_newest.proto

Can you show me an example of grpc-gateway using oneof?

// It supports fully functionality of protobuf unlike JSONBuiltin.
type JSONPb jsonpb.Marshaler

yes, it use https://github.com/golang/protobuf/tree/master/jsonpb
the grpc-gateway has a example about oneof
see:
https://github.com/grpc-ecosystem/grpc-gateway/blob/master/examples/examplepb/a_bit_of_everything.proto
https://github.com/grpc-ecosystem/grpc-gateway/blob/master/runtime/marshal_jsonpb_test.go

Maybe propose a way to make jsonpb work with micro?

you can add a type jsonpb in https://github.com/micro/go-micro/tree/master/codec
let me have a think, just for wait

Do you have a jsonpb implementation of the Codec interface?

Closing as the feature will be fixed via plugin when PRed to go-plugins


Stream panel density graph should be proportional to number of instances

Say we are detecting bounding boxes or feature points on a camera stream. Sometimes there are zero, sometimes there are one, sometimes five. If we log them all as one entity we get a flatline graph:

That's because the density graph is the number of log calls (=rows in the store), and doesn't know how many instances was in each call.
It would be a lot more useful if any log call with zero instances is thin, and then get thicker the more instances there are.

Recent refactors of the data density graph should make this a lot easier to implement now.

We currently scale with the number of log calls.
This issues suggests scaling with number of instances One downside with that is that an entity with many instances (e.g. a point cloud) would then completely crowd out other entities (e.g. images).
Another option is to scale with data volume (MB).
This should probably be an option at some point.


Callback called after the calendar’s date range changed

It is possible to add callback datesSet like https://fullcalendar.io/docs/datesSet

Hi @smelmd,
The datesSet option is available since v0.4.0.


stamper index assignment rules changes

The stamper.Stamp() should follow the rules below:
if the stamp item already exists, and the batch is mutable, reuse same index and use new timestamp.
if the stamp item already exists, and the batch is immutable, reuse the same stamp.
if the stamp does not exists, get a new index, and save the stamp item.
the other required change is that the Stamp function must be mutex protected per chunk (using multex).

blocked by https://github.com/ethersphere/bee/issues/4544


Not finding file in GeoCAT-examples NCL_color_1.py

I am following along with the example NCL_color_1.py to have the example produce a contour plot for an ERA5 netcdf file.   It is unable to do so.  I get an error when trying to change the filename in the xarray open dataset line.  I copied the error below.
Traceback (most recent call last):
File "/home/user/geocat/GeoCAT-examples/Gallery/Contours/NCL_color_1.py", line 36, in
ds = xr.open_dataset(gdf.get("/path/to/file/reanalysis-era5-pressure-levels-specific_cloud_ice_water_content-011940.nc")).isel(valid_time=-946771200, pressure_level=1000)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/.../python3.11/site-packages/geocat/datafiles/init.py", line 31, in get
return POOCH.fetch(fname)
^^^^^^^^^^^^^^^^^^
File "/..../anaconda3/envs/geocat-examples/lib/python3.11/site-packages/pooch/core.py", line 561, in fetch
self._assert_file_in_registry(fname)
File "/.../anaconda3/envs/geocat-examples/lib/python3.11/site-packages/pooch/core.py", line 609, in _assert_file_in_registry
raise ValueError(f"File '{fname}' is not in the registry.")

It looks like you're attempting to use your own file, but still have some code intended to help grab the sample file.
Removing the gdf.get() portion of the code should allow you to read in your file.  Something like this:
xr.open_dataset("/path/to/file/reanalysis-era5-pressure-levels-specific_cloud_ice_water_content-011940.nc").isel(valid_time=-946771200, pressure_level=1000)

Thank you very much for the quick response.  That fixed it.


ParamDecryptor constructor does not accept parameter as stated in docs

The following example using attribute is confusing, since it works, but only because you magically take it's arguments in your processor
  /**
    * @ParamDecryptor({"id", "foo"})   OR    #[ParamDecryptor(["id", "foo"])]
    */

The signature of ParamDecryptor's constructor does not accept any parameter, resulting in confused PhpStorm and any other IDE

Please make the ParamEncryptor accept array in constructor.

Fixed in https://github.com/nayzo/NzoUrlEncryptorBundle/releases/tag/v6.2.7
Thank you.


StreamQuery with transaction

RxJava2 example here shows how to create stream query using connection. How do I create stream using PgTransaction class. I can't find method on io.reactiverse.reactivex.pgclient.PgTransaction class to get PgPreparedQuery or PgStream.
Thanks

we will add this method in the next version to prepare a query from a transaction

in this API, you will only need to change pool.rxGetConnection() by pool.rxBegin() or call begin within a transaction. That being said now you can begin a transaction from a connection and get the prepared query on from the connection but it's less intuitive.

In our implementation, we create the transaction and pass that to other classes and methods which then executes the sql using the same transaction object. So it is inconvenient to change all those implementation. As a workaround, we are not using the prepared sql and not using the streaming query when working with transaction.

we will add this method in the next version to prepare a query from a transaction

@vietj When do you think next version will be released?

it has been released


有cuda一直提示不可以使用

This share link expires in 72 hours. For free permanent hosting and GPU upgrades, run gradio deploy from Terminal to deploy to Spaces (https://huggingface.co/spaces)
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/gradio/queueing.py", line 406, in call_prediction
output = await route_utils.call_process_api(
File "/usr/local/lib/python3.10/dist-packages/gradio/route_utils.py", line 226, in call_process_api
output = await app.get_blocks().process_api(
File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 1554, in process_api
result = await self.call_function(
File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 1192, in call_function
prediction = await anyio.to_thread.run_sync(
File "/usr/local/lib/python3.10/dist-packages/anyio/to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 807, in run
result = context.run(func, *args)
File "/usr/local/lib/python3.10/dist-packages/gradio/utils.py", line 659, in wrapper
response = f(*args, **kwargs)
File "/content/facechain/app.py", line 495, in run
raise gr.Error('CUDA不可用(CUDA not available)')
gradio.exceptions.Error: 'CUDA不可用(CUDA not available)'
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/gradio/queueing.py", line 406, in call_prediction
output = await route_utils.call_process_api(
File "/usr/local/lib/python3.10/dist-packages/gradio/route_utils.py", line 226, in call_process_api
output = await app.get_blocks().process_api(
File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 1554, in process_api
result = await self.call_function(
File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 1192, in call_function
prediction = await anyio.to_thread.run_sync(
File "/usr/local/lib/python3.10/dist-packages/anyio/to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 807, in run
result = context.run(func, *args)
File "/usr/local/lib/python3.10/dist-packages/gradio/utils.py", line 659, in wrapper
response = f(*args, **kwargs)
File "/content/facechain/app.py", line 495, in run
raise gr.Error('CUDA不可用(CUDA not available)')
gradio.exceptions.Error: 'CUDA不可用(CUDA not available)'

Please refer to https://github.com/modelscope/facechain/issues/20


Add support for configure logger middleware

It would be nice if middlewares were configurable at some point.
This commits introduce the concept of configurable middlewares, this
means that you can instantiate middlewares with some options:
import "github.com/zenazn/goji/web/middleware/logger"

goji.Use(logger.New(
    // New is a variadic function,
    // arguments are setters that control the behavior of this middleware
    logger.UseReqID(false)
)))

This would better live as a standalone package in the Goji org, rather than co-existing (or replacing and breaking backwards compat) with the basic logger.
If it accepted options and took an io.Writer it would probably stand on its own more.
The included logger is usually just a starting point.

(I'm also on mobile so I can't comment on the line numbers, but L53 probably shouldn't panic.
Putting the error in web.C (okay) or falling back to defaults would be saner. Having a runtime-only error that HTTP 500's your entire router or sub-router isn't too good!

Absolutely agree with you, this is just a proof of concept, far from being a complete implementation.
Having a separate package make sense to me, to not break compatibility.
About error management, I'm not sure yet. Remember that middleware panicing on initialization, not during request lifetime.

Yeah—a bunch of people have had luck with configurable middlewares that looked a lot like this (another popular option is to define a method on a struct)
I think I'd be more happy to see this written up as long-form documentation or as a godoc example than to add another logger to the standard repo, though (alternatively, if I ever finish that website redesign I've been promising people... :P)

@gchaincl: I still owe you documentation about techniques for writing configurable middleware, but in the meantime I'm going to close this PR to keep the Goji's issue tracker clean.


[Bug] auto install command now gives me an error code

so the auto install command does do something now but that something is give me an error code and nothing else
this is the error
irm : The remote server returned an error: (404) Not Found.
At line:1 char:1
+ irm https://beatrun.jonnybro.ru/install | iex
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebExc
   eption
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

sorry if this is getting annoying but i really can't trust myself to install it manually

try again

alright yeah it works now, thanks


Paragraph text can now explicitly be spanned

Background:
Consumers of the library may for instance want line spacing for the
paragraph text but TextView's lineSpacingMultiplier and/or
lineSpacingExtra apply line spacing to all lines.
With this change, paragraphs may explicitly be spanned with a paragraph
affecting span such as LineHeightSpan while the other tags
(e.g. headings) may be kept unaffected.

Looks good! 👍


Create CONDUCT.md

Pull Request Test Coverage Report for Build 48

0 of 0 (NaN%) changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 95.455%

Totals

Change from base Build 42:
0.0%

Covered Lines:
21

Relevant Lines:
22

💛  - Coveralls


fix: use Get() instead of Next() in README sample

Just a small fix to correct the README.md sample.

Thanks!


mod: fix mod using Semantic Import Versioning for release 3.1

Signed-off-by: Shafreeck Sea<EMAIL_ADDRESS>Update the module name according to the rules of Semantic Import Versioning. It will take effect on the next release, after that, users can get the latest v3.1+ version using go get

What problem does this PR solve?
Fix the module name to make go get<EMAIL_ADDRESS>work
What is changed and how it works?

Rename github.com/pingcap/pd to github.com/pingcap/pd/v3
Update Makefile to use the new package name.

Check List
Tests

Manual test (add detailed scripts or steps below)

/run-all-tests

/run-all-tests

/run-all-tests

Codecov Report

Merging #2118 into release-3.1 will decrease coverage by 0.07%.
The diff coverage is n/a.

@@               Coverage Diff               @@
##           release-3.1    #2118      +/-   ##
===============================================
- Coverage        74.99%   74.91%   -0.08%
===============================================
  Files              194      194
  Lines            19982    19982
===============================================
- Hits             14985    14970      -15
- Misses            3871     3876       +5
- Partials          1126     1136      +10

Impacted Files
Coverage Δ

server/id/id.go
77.27% <ø> (ø)
:arrow_up:

server/config_manager/config_manager.go
62.85% <ø> (ø)
:arrow_up:

server/statistics/region.go
100% <ø> (ø)
:arrow_up:

server/core/region_tree.go
93.27% <ø> (ø)
:arrow_up:

server/api/member.go
61.6% <ø> (ø)
:arrow_up:

server/schedule/placement/rule_manager.go
86.45% <ø> (ø)
:arrow_up:

tests/config.go
95.91% <ø> (ø)
:arrow_up:

server/schedulers/shuffle_region.go
84.28% <ø> (ø)
:arrow_up:

server/statistics/store.go
70.87% <ø> (ø)
:arrow_up:

server/api/health.go
86.36% <ø> (ø)
:arrow_up:

... and 118 more

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 c0bcd8c...298a2f9. Read the comment docs.

/run-all-tests


trailing slash

Just returned to looking at Ocelot after a few months, good to see things have been progressing nicely.
Main thing I wanted to look at was the ability to work with prefixes as outlined here #86
I'm seeing a trailing slash being sent to the downstream service which results in a 404 and can't see why.
Here is my config:
    {
      "DownstreamPathTemplate": "/alert/{id}",
      "DownstreamScheme": "http",
      "DownstreamHost": "localhost",
      "DownstreamPort": 8010,
      "UpstreamPathTemplate": "/api/alert/{id}"
    }

Original Request: /api/alert/f346bdd5-9d4c-4aea-88d9-3f35c557554d
Proxied Request: /alert/f346bdd5-9d4c-4aea-88d9-3f35c557554d/
I've tried both the stable and unstable releases with the same result.  What am I doing wrong?

@danny-waite I think this might be something in .net we are using that adds the trailing slash. I'll take a look. Thanks for the interest in the project!!

no worries Tom, let me know when you've had chance to look, I don't mind digging deeper but thought it best to relay to you first since it seems like a fairly key issue. Would also be interested to know if Ocelot is being used in production and to what scale. Keep up the good work.

Ive had a look and for some reason I'm always setting the last character of the downstream path as / can't remember why so i'll figure that out and make it work properly..

I doubt anyone is using Ocelot in production. I'm hoping to use it at work one day. I did some performance testing and didn't notice any memory leaks...Ocelot adds a few ms to each http request in the environment I was testing on in Azure.

@danny-waite I've got a fix for this on a PR, just waiting for checks to finish and I'll merge it and create a build!

@danny-waite Ive just pushed a fix for this to nuget....Install-Package Ocelot -Version 1.4.10
I'm going to close the issue now as I think it is fixed...if you run into further problems let me know and I can feel like an idiot! :)
Thanks for submitting this issue :D


Add better integration tests for Google.Cloud.Diagnostics.AspNet

Currently it has very few integration tests and should have better coverage.

Partly addressed in #2294 by adding Error Reporting Asp.Net (self hosted) Web Api integration tests.
Pending Error Reporting Asp.Net MVC integration tests.
Pending all Tracer integration tests.

Asp.Net Web Api Trace integration tests cannot be written on top of an OWIN hosted Web Apis because the Asp.Net tracer relies heavily on HttpContext.Current and global.asax events, none of which are available through OWIN. In fact our Tracer won't work for self hosted Asp.Net Web Apis, which might not be a huge problem in itself specially after .Net Core.
So, we still have pending:

Asp.Net MVC Error Reporting Integration tests

Asp.Net MVC and Web Api Trace Integration tests

This is blocked by #2297 since we'll need to set up IIS hosted applications for writing the integration tests against.

Closing this for now as we are reevaluating our Google.Cloud.Diagnostics.* library strategy.
See:

Google.Cloud.Diagnostics.AspNet version history.
Google.Cloud.Diagnostics.AspNetCore version history


Waypoint: Get Set for Basejumps - npm global root value is not in your NODE_PATH

✔ Global configuration file is valid
✔ Node.js version
✔ No .bowerrc file in home directory
✔ No .yo-rc.json file in home directory
✔ npm version
✖ NODE_PATH matches the npm root
npm global root value is not in your NODE_PATH

[Info]
  NODE_PATH = /mnt/shared/lib/node_modules:/home/ubuntu/.nvm/v0.10.35/lib/node_modules
  npm root  = /home/ubuntu/.nvm/versions/node/v4.1.1/lib/node_modules

[Fix] Append the npm root value to your NODE_PATH variable
Add this line to your .bashrc
    export NODE_PATH=$NODE_PATH:/home/ubuntu/.nvm/versions/node/v4.1.1/lib/node_modules
  Or run this command
    echo "export NODE_PATH=$NODE_PATH:/home/ubuntu/.nvm/versions/node/v4.1.1/lib/node_modules" >> ~/.bashrc && source ~/.bashrc

Found potential issues on your machine :(

Free Code Camp has stopped supporting Angular-Fullstack for basejumps and has transitioned to Clementine.js. Hopefully that will work better for you!
Thanks and happy coding!


Marp Core's browser script has not loaded in the preview correctly

I tried this extension and it works like a charm. Awesome job, from Marp maintainer! :+1:
While testing the extension, I found out that Marp Core's fitting header <!--fit--> and some auto-scaling features, for the code block and KaTeX typesetting, did not work in the preview.
Regularly they are powered by an injected JavaScript by script constructor option in Marp Core, but many Electron apps also including Obsidian do not allow to run injected <script> through innerHTML due to security reasons.
Instead, I recommend disabling the script injection via script: false, and executing browser() exported from @marp-team/marp-core/browser early in the extension. It registers Marp-specific Web Component elements to the app and activates some auto-scaling features provided by Marp Core.
import { browser } from '@marp-team/marp-core/browser'

// Run in the browser (Electron app) context to activate some auto-scaling features
browser()

In fact, the script for the preview context of Marp for VS Code is executing browser().
https://github.com/marp-team/marp-vscode/blob/5dbd2439249d5df614e4e8e605d048bf16be53a0/src/preview.ts#L16
And also in Marp renderer working on Marp website:
https://github.com/marp-team/marp/blob/d98bd2a26f01861f96228e725b2745654a6aac10/website/components/Marp.tsx#L78
Again, thanks to create this extension, and expand the ecosystem of Marp! 😄

With release 0.30.2


Replace deprecated crypto:rand_bytes call

Replaced with crypto:strong_rand_bytes
Also fixed a missing newline at the end of file.

+1


error on send video

hi
sendvideo say :
 Fatal error: Uncaught Exception: an error was encountered

your server say :
 HTTP/1.1 100 Continue HTTP/1.1 500

my file is MP4 and 3 mg

Hi
Your service has not subscriptions

Some videos are uploaded, but others will get an error of 500
I attached the file instance that gave the 500 error
please check
ice_video_20180425-094012.zip


Resource proposal: xExchIPBlockListProvider

This resource would be a wrapper for the cmdlets Get-IPBlockListProvider, Add-IPBlockListProvider and Remove-IPBlockListProvider to update Connection Filtering.
The parameters would reflect the parameters from Add-IPBlockListProvider.
It seems that each resourse is a wrapper for a particual set of cmdlets. Would it be possible to add other "filtering" cmdlets to the same resource? Maybe it's hard because of the parameters are so different.

Sounds like a good potential resource. Any volunteers to work on this?


Update the game over message

Update the game over message so people know how to play again!

Here


[WIP] Implement warm start QAOA

Summary
Implement as per #1435
Details and comments

Added a hold status because this PR will be implemented in the new Optimization repo, not here.

Added a hold status because this PR will be implemented in the new Optimization repo, not here.

Closing for a moment.

Closing for a moment.


crash on latest version QBFT

in the last hyperledger besu running on ubuntu 22 the following crash occurs (openjdk 21.0.2 2024-01-16) why
3|node2    | 2024-10-17 00:22:04.552+02:00 | vertx-blocked-thread-checker | WARN  | BlockedThreadChecker | Thread Thread[vert.x-worker-thread-6,5,main] has been blocked for 102105 ms, time limit is 60000 ms
3|node2    | io.vertx.core.VertxException: Thread blocked
3|node2    | 	at com.sun.jna.internal.Cleaner.register(Cleaner.java:58)
3|node2    | 	at com.sun.jna.Memory.(Memory.java:122)
3|node2    | 	at com.sun.jna.Structure$AutoAllocated.(Structure.java:2219)
3|node2    | 	at com.sun.jna.Structure.autoAllocate(Structure.java:309)
3|node2    | 	at com.sun.jna.Structure.allocateMemory(Structure.java:436)
3|node2    | 	at com.sun.jna.Structure.allocateMemory(Structure.java:413)
3|node2    | 	at com.sun.jna.Structure.ensureAllocated(Structure.java:389)
3|node2    | 	at com.sun.jna.Structure.ensureAllocated(Structure.java:379)
3|node2    | 	at com.sun.jna.Structure.write(Structure.java:788)
3|node2    | 	at com.sun.jna.Structure.autoWrite(Structure.java:2285)
3|node2    | 	at org.hyperledger.besu.nativelib.secp256k1.LibSecp256k1.secp256k1_ecdsa_sign_recoverable(Native Method)
3|node2    | 	at org.hyperledger.besu.crypto.SECP256K1.signNative(SECP256K1.java:157)
3|node2    | 	at org.hyperledger.besu.crypto.SECP256K1.sign(SECP256K1.java:107)
3|node2    | 	at org.hyperledger.besu.cryptoservices.KeyPairSecurityModule.sign(KeyPairSecurityModule.java:66)
3|node2    | 	at org.hyperledger.besu.cryptoservices.NodeKey.sign(NodeKey.java:49)
3|node2    | 	at org.hyperledger.besu.ethereum.p2p.discovery.internal.Packet.(Packet.java:64)
3|node2    | 	at org.hyperledger.besu.ethereum.p2p.discovery.internal.Packet.create(Packet.java:99)
3|node2    | 	at org.hyperledger.besu.ethereum.p2p.discovery.internal.PeerDiscoveryController.lambda$createPacket$21(PeerDiscoveryController.java:606)
3|node2    | 	at org.hyperledger.besu.ethereum.p2p.discovery.VertxPeerDiscoveryAgent$VertxAsyncExecutor.lambda$execute$0(VertxPeerDiscoveryAgent.java:326)
3|node2    | 	at io.vertx.core.impl.ContextImpl.lambda$executeBlocking$1(ContextImpl.java:191)
3|node2    | 	at io.vertx.core.impl.ContextInternal.dispatch(ContextInternal.java:279)
3|node2    | 	at io.vertx.core.impl.ContextImpl.lambda$internalExecuteBlocking$2(ContextImpl.java:210)
3|node2    | 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
3|node2    | 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
3|node2    | 	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalR
ChatGPT said:
ChatGPT
The error you're encountering in Hyperledger Besu running on OpenJDK 21 suggests that the Vert.x worker thread is blocked for too long, triggering the BlockedThreadChecker warning. Specifically, it points to a VertxException: Thread blocked, with the blocked thread spending a significant amount of time (102105 ms, where the limit is 60000 ms).
Breakdown of the Error:
Thread Blocked Warning: The BlockedThreadChecker detects that a worker thread (vert.x-worker-thread-6) is taking more time than the configured time limit (60 seconds). In Vert.x, worker threads are expected to process tasks in a non-blocking manner. If a task takes too long, it can indicate a performance bottleneck or an issue in the code.
JNA Memory Management: The thread seems to be blocked while allocating and managing memory using JNA (Java Native Access). The relevant methods involved are:
com.sun.jna.Memory
com.sun.jna.Structure
Native method LibSecp256k1.secp256k1_ecdsa_sign_recoverable
This indicates that the problem might be related to native code interacting with the secp256k1 elliptic curve cryptography library used in Besu.
Key Areas Involved:
The blocking occurs while signing ECDSA messages using the LibSecp256k1 library in native code (SECP256K1.signNative).
The Java Native Access (JNA) framework is managing native memory allocations, and it seems that the memory allocation (Structure.allocateMemory) or writing the structure (Structure.write) is taking too long.
Possible Reasons for the Crash:
Excessive Memory Allocation/Deallocation: The repeated allocation of native memory via JNA can be inefficient or cause the thread to block, especially under high load. If this operation is invoked frequently, it may overwhelm the worker thread.
JNA Issues: There might be inefficiencies in JNA when managing the native memory structures used by the secp256k1 library, leading to excessive time spent in memory management.
Thread Pool Configuration: If the number of Vert.x worker threads is insufficient to handle the workload, tasks may start to queue up and cause blocking. Check the configuration for the thread pool size in Vert.x.
Blocking Operations on Vert.x Worker Threads: Long-running, blocking tasks should not be executed on Vert.x worker threads as these are meant for non-blocking operations. The cryptographic signing operation (LibSecp256k1.secp256k1_ecdsa_sign_recoverable) seems to be a blocking task, which could cause performance bottlenecks if not handled properly.
Suggested Solutions:

Increase Worker Thread Pool Size:
You can increase the number of worker threads in Vert.x to allow more threads to handle blocking tasks. This can be done through the VertxOptions when initializing Vert.x.

Example:
java
Copy code
VertxOptions options = new VertxOptions().setWorkerPoolSize(40);  // Increase the pool size
Vertx vertx = Vertx.vertx(options);
2. Offload Blocking Operations:
Since the cryptographic signing operation seems to be blocking, you can try offloading it to a dedicated thread pool to avoid blocking the main Vert.x worker threads. This can be done by using executeBlocking in Vert.x for blocking tasks.
Example:
java
Copy code
vertx.executeBlocking(promise -> {
// Perform the blocking signing operation
SECP256K1.sign(...);
promise.complete();
}, res -> {
// Handle the result or failure
});
3. Optimize Memory Allocation:
If the issue is related to JNA memory management, try to reduce the frequency of memory allocations or reuse allocated memory if possible. Excessive allocations can degrade performance.

Upgrade Libraries:
Ensure you are using the latest version of Hyperledger Besu and related libraries, as there could be bug fixes or optimizations in newer releases.
Similarly, check for updates in the JNA or secp256k1 libraries, as newer versions might resolve performance bottlenecks.
Analyze the Workload:
Review how often the ECDSA signing operation is invoked and whether it can be optimized or batched to reduce the load on the system.

Conclusion:
The issue seems to arise from blocking cryptographic operations that are not properly handled in the Vert.x non-blocking architecture. By increasing the worker thread pool size, offloading blocking tasks, and optimizing memory allocation, you may be able to resolve the crash and improve system stability.

Hi @AndreiD we haven't been able to reproduce this so far - are you still experiencing this issue? If so, are there any more details you can add?
Sharing all your config, especially your genesis file might help us reproduce this.
What OS version and glibc version are you on?

Hi @siladu,
I'm also having this issue. The problem occurs with versions 24.12.1 and 24.12.0. I'm running the official docker container on Ubuntu 22.04 LTS server. I've rolled back to 24.10.0 for now.
####################################################################################################
#                                                                                #
# Besu version 24.12.1                                                                             #
#                                                                                #
# Configuration:                                                                                #
# Network: Mainnet                                                                                #
# Network Id: 1                                                                                #
# Data storage: Bonsai                                                                             #
# Sync mode: Snap                                                                                #
# Sync min peers: 5                                                                                #
# RPC HTTP APIs: ADMIN,DEBUG,NET,ETH,MINER,WEB3                                                    #
# RPC HTTP port: 8545                                                                              #
# Engine APIs: ENGINE,ETH                                                                          #
# Engine port: 8551                                                                                #
# Engine JWT: /var/lib/besu/jwtsecret.hex                                                          #
# Using LAYERED transaction pool implementation                                                    #
# Using STACKED worldstate update mode                                                             #
# Limit trie logs enabled: retention: 512; prune window: 5000                                      #
#                                                                                #
# Host:                                                                                #
# Java: openjdk-java-21                                                                            #
# Maximum heap size: 7.77 GB                                                                       #
# OS: linux-x86_64                                                                                #
# glibc: 2.39                                                                                #
# jemalloc: 5.3.0-0-g54eaed1d8b56b1aa528be3bdd1877e59c56fa90c                                      #
# Total memory: 31.06 GB                                                                           #
# CPU cores: 12                                                                                #
#                                                                                #
# Plugin Registration Summary:                                                                     #
# No plugins have been registered.                                                                 #
# TOTAL = 0 of 0 plugins successfully registered.                                                  #
#                                                                                #
####################################################################################################


fix(linux):fix fcitx input method wrong positioning

What kind of change does this PR introduce?

[x] Bugfix
[ ] Feature
[ ] Docs
[ ] Code style update
[ ] Refactor
[ ] Build-related changes
[ ] Other, please describe:

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Checklist

[x] This PR will resolve  IME window is not positioning
[x] A change file is added if any packages will require a version bump due to this PR per the instructions in the readme.
[x] I have added a convincing reason for adding this feature, if necessary
[x] It can be built on all targets and pass CI/CD.

Other information

Could you sign the commits? We enforce this for branch protection.


Move boxes right

Changes look good, but this got me thinking:
The Show/Hide columns and Toggle fullscreen -buttons being next to Export table specifically is weird. I think it would make more sense for them to be next to the Rows per page -selector.
 Could maybe change the text to something like "Export with species", as I think the tooltip that shows on hover is good enough for additional info. Doesn't need to be addressed in this pr though.

The Show/Hide columns and Toggle fullscreen -buttons being next to Export table specifically is weird. I think it would make more sense for them to be next to the Rows per page -selector.

I tried to do this but it requires major changes to the way the toolbar is rendered, since it would need to have rows of items which seems to be impossible the way it is now. I documented a possible fix for this but for now I think it's good enough.

 Could maybe change the text to something like "Export with species", as I think the tooltip that shows on hover is good enough for additional info. Doesn't need to be addressed in this pr though.

Agreed, but since the button might be removed in the future anyway I think this is out of scope for this pr.


[💡 Feature]: Allow to sync Todos with other platforms

Is your feature request related to a problem?
People store contextual work snippets in various different platforms. It would be great if we could start working together with some common provider to allow syncing them have them all available within Marquee.
Describe the solution you'd like.
Let's start with Google Tasks per requests of a Marquee user. We also planned to allow syncing todos and snippets from the stateful extension as well. This however will require some more technical planning.
Describe alternatives you've considered.
n/a
Additional context
Per private communication with a Marquee user.
Code of Conduct

[X] I agree to follow this project's Code of Conduct

This alone would be the feature that allows me to move from using 3 apps to 2 apps for notes, and jotting down todos.
I don't use the todo/notes feature with Marquee simply because I can't sync those notes/todos with the other tools I use.

if this is a feature that is something that the team at Stateful would like to have but maybe doesn't have time to do. I would be willing to take on this task.

Fantastic, thank you so much, let me check in with the team to ensure we are all on the same site when it comes to feature spec.

but I don't use Marquee as much since i use other tools for my todos and notes.

Which other tools you are using for notes and todos?
Please have a look into #218 which was my initial stab at this. I think it is a good foundation and start. Unfortunately I couldn't bring it over the finish line due to prio shifts but afair it is close to be complete. Let me know what you think about it.

Apologies for not responding.
I didn't realize you replied.
I haven't found a good Todo app yet, per se...but I have been using Obsidian as my note and todo app for almost a year now.
I can take a look at #218 this week or next when I get some time.

Sounds good, let me know if I can support you in any way.

One thing I am curious about that may be another issue altogether is how could I sync notes taken in the Stateful extension with Marquee and vice versa?

@christian-bromann what is the goal you had in mind for updating the state in #218? I am working on getting a feel for the codebase to add the sync option for todos.
It would be helpful if I had an understanding of what your initial plan was and the code you implemented

It would be helpful if I had an understanding of what your initial plan was and the code you implemented

Looking back at the PR I tried to create a state factory that would allow me to manage state between different provides, e.g.

VS Code
Stateful
Google Notes
etc.

The idea was to allow multiple state sources and have some algorithms that would allow me to sync between different sources and ensure all the data is synced. I haven't been able to finish the work and I don't see myself having the capacity to do so in near future. Therefore feel free to pick this up, create a new PR or work on top of the given one.
Happy to pair program if you have questions to certain implementation details.

how could I sync notes taken in the Stateful extension with Marquee and vice versa?

One approach could be that the extension syncs from various sources when the user has VS Code open. Based on e.g. a timestamp we could determine which source has newer data and if there are conflicts we could either alert the user or have some sort of configuration that allows to always take the source with recent updates as the only truth. Implementing a proper sync and conflict management of state is surely a difficult task so I am all for finding simple solutions here.


Add extended field handling to facility details

Overview
Makes the facility details subsections expandable to show additional
content (details from other matches, claims, etc.) when not in embed
mode.
Adds extended field subsections (number of workers, native language
name, and so on) when values are present and the map is not in embed
mode.
Adds nonstandard/contributor field subsections when values are present
in embed mode.
Connects #1540
Demo
Closed items

Opened items

Extended fields

Nonstandard / contributor fields (in embed)

Notes
Anticipated extended fields have been included in the list of fields to attempt to render if available, in addition to the existing extended fields. However, because these are not yet present in the API response, some tweaking might be necessary once they are being returned from the API to ensure all formatting / etc are working as expected.
Some changes have been made to the styling of the items and header based on the updated wireframes.
Testing Instructions

Run ./scripts/server
View a facility with multiple matches and confirm that other names, addresses, and GPS coordinates are available when expanding the subsections.
Submit and approve a claim for the facility, then submit a claim name, address, and number of workers.
The new claim details should be displayed in the expandable lists of facility details.
Submit and setup nonstandard fields for the facility.
Open the facility details in the embedded map preview. No items should be expandable, the contributors sections and expanded fields should be hidden, and the nonstandard fields should be shown.

Checklist

[x] fixup! commits have been squashed
[x] CI passes after rebase
[x] CHANGELOG.md updated with summary of features or fixes, following Keep a Changelog guidelines

After claiming the facility, I would expect the values for the claimed fa facility to be promoted to the top of the list. In my testing it appeared at the end of the list
This is caused by a) the prioritization of the name/address/location on the facility over the extended fields, and b) the combination/prioritization of the other_names/_addresses/_locations with the extended fields.
In my testing some addresses appear without a contributor name or date.
This is caused by the combination of the other_names/_addresses/_locations with the extended fields (they don't include the contribution data).
In my test I created an embedded map as "Service Provider A" but when I view a facility that was originally created under a different contributor ("Factory A"), I see that contributor's name. We need to avoid showing any other contributor names.
This is caused by the prioritization or and inclusion of contribution data for the facility object's name/address/locations.
These three issues will be fixed by updating the facility details and list APIs, specifically by:

Including the other_names/_addresses/_locations information with the extended_fields when serializing to allow proper server-side sorting and inclusion of contributor data
Prioritizing the name/address/location from an active/verified facility claim over the facility object's name/address/location when serializing (unless it is in embed mode and prefer_contributor_name is active, in which case prefer the contributor name)
Adjusting the created_from to hide other contributor information in embed mode
These tasks have been added to #1570

Thank you for reviewing!


Need help with Multiple Guards Authentication in Laravel

Hi,
I'm trying to create muliple guards authentification with AdminLTE in Laravel (6x) and I'm stocked in how to display the login form according to user type (admin / user).
I have different tables for users and Admins.
From the Welcome page, when I click on login button I get this Error message:
ErrorException
Undefined index: model
http://adminlte.local/login
Thanks

I found the solution here:
https://github.com/tymondesigns/jwt-auth/issues/1081
Thanks


Emergency fix for pr #5439

PR collision with #5427
Solution: add 'default.target' to WantedBy
Signed-off-by: Ed Santiago<EMAIL_ADDRESS>

@vrothberg beat me to it; closing in favor of #5514


Database config

Added config, updated package.json, updated .gitignore, created basic user model.

Need to pull request to test branch.  D'oh!


Update README.md

The descriptions for config.cluster_name, config.cluster_size and config.seed_size have been updated to more correctly identify what these parameters are used for.

Thank you for contributing to kubernetes/charts. Before you submit this PR we'd like to
make sure you are aware of our technical requirements and best practices:

https://github.com/kubernetes/charts/blob/master/CONTRIBUTING.md#technical-requirements
https://github.com/kubernetes/helm/tree/master/docs/chart_best_practices

For a quick overview across what we will look at reviewing your PR, please read
our review guidelines:

https://github.com/kubernetes/charts/blob/master/REVIEW_GUIDELINES.md

Following our best practices right from the start will accelerate the review process and
help get your PR merged quicker.
When updates to your PR are requested, please add new commits and do not squash the
history. This will make it easier to identify new changes. The PR will be squashed
anyways when it is merged. Thanks.

/ok-to-test

/lgtm

Thanks @unguiculus for shepherding this small fix through the process.


Add a few (unfinished) documentation pages

These are (unfinished) documentation pages I forgot to commit with my last PR. They must be worked on, obviously.

merging thank you @cboulanger !


Revising Sequence Diagrams

Sequence Diagrams should be revised.

Any deficiency should be fixed.

added labels and controlled in general

Merged all search related diagrams into one general search diagram in accordance with our class diagram

Removed social media related parts from the sequence diagrams


Can't compile on windows

This is what i get
cargo build    Compiling owned_ttf_parser v0.20.0    Compiling glfw-sys-passthrough v4.0.3+3.3.5    Compiling bytemuck_derive v1.6.0    Compiling zerocopy-derive v0.6.6    Compiling thiserror-impl v1.0.59    Compiling approx v0.4.0 error: failed to run custom build command for glfw-sys-passthrough v4.0.3+3.3.5`
Caused by:
process didn't exit successfully: C:\Users\zen\Desktop\egui_overlay-0.8.0\target\debug\build\glfw-sys-passthrough-967231a75b085014\build-script-build (exit code: 101)
--- stdout
CMAKE_TOOLCHAIN_FILE_x86_64-pc-windows-msvc = None
CMAKE_TOOLCHAIN_FILE_x86_64_pc_windows_msvc = None
HOST_CMAKE_TOOLCHAIN_FILE = None
CMAKE_TOOLCHAIN_FILE = None
CMAKE_GENERATOR_x86_64-pc-windows-msvc = None
CMAKE_GENERATOR_x86_64_pc_windows_msvc = None
HOST_CMAKE_GENERATOR = None
CMAKE_GENERATOR = None
CMAKE_PREFIX_PATH_x86_64-pc-windows-msvc = None
CMAKE_PREFIX_PATH_x86_64_pc_windows_msvc = None
HOST_CMAKE_PREFIX_PATH = None
CMAKE_PREFIX_PATH = None
CMAKE_x86_64-pc-windows-msvc = None
CMAKE_x86_64_pc_windows_msvc = None
HOST_CMAKE = None
CMAKE = None
running: "cmake" "C:\Users\zen\.cargo\registry\src\index.crates.io-6f17d22bba15001f\glfw-sys-passthrough-4.0.3+3.3.5\." "-G" "Visual Studio 17 2022" "-Thost=x64" "-Ax64" "-DGLFW_BUILD_EXAMPLES=OFF" "-DGLFW_BUILD_TESTS=OFF" "-DGLFW_BUILD_DOCS=OFF" "-DCMAKE_INSTALL_LIBDIR=lib" "-DGLFW_BUILD_WAYLAND=OFF" "-DCMAKE_INSTALL_PREFIX=C:\Users\zen\Desktop\egui_overlay-0.8.0\target\debug\build\glfw-sys-passthrough-06cdb8674a500be3\out" "-DCMAKE_C_FLAGS= -nologo -MD -Brepro" "-DCMAKE_C_FLAGS_DEBUG= -nologo -MD -Brepro" "-DCMAKE_CXX_FLAGS= -nologo -MD -Brepro" "-DCMAKE_CXX_FLAGS_DEBUG= -nologo -MD -Brepro" "-DCMAKE_ASM_FLAGS= -nologo -MD -Brepro" "-DCMAKE_ASM_FLAGS_DEBUG= -nologo -MD -Brepro" "-DCMAKE_BUILD_TYPE=Debug"
--- stderr
thread 'main' panicked at C:\Users\zen.cargo\registry\src\index.crates.io-6f17d22bba15001f\cmake-0.1.50\src\lib.rs:1098:5:
failed to execute command: program not found
is cmake not installed?
build script failed, must exit now
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...`

failed to execute command: program not found
is cmake not installed?

you need cmake installed to build glfw crate. just install cmake and reboot.

reopen issue if your problem is still not solved.


How is this crate used?

This crate seems very clever and useful, but I'm having difficulty using it in a practical way.
I've consulted the doctest examples and they elide over many particulars, mostly about how to infer the generated struct names from the schema. Is it possible to examine the generated code?
In the doctest example, the nested.json schema, the code simply uses the Defnested type which is mysterious to me in a number of ways:

it's automatically in scope
the capitalization differs from the schema
it's not at the schema root.

So, presumably one should infer by trial and error the name of the generated types?
How then can I infer the generated types the schema has no title or type at the root?
I'm sorry to be a bit lost here, but if I'm having some difficulties I'd imagine many people would have the same difficulties.

Okay I had to look it up, but the way to examine the contents of the procedural macro code is like:
# first install cargo-expand
# Then you can get expanded code for whatever your target is. Here a test.
cargo expand --test test_name

Appreciate your work on this crate.

You can also run cargo doc --no-deps and look at the generated documentation.


Get thumbnail image for video

Hi, How to get thumbnail image after picking video from library

https://developer.apple.com/documentation/photokit/phasset

Thank you, short question if someone needs
let manager = PHImageManager.default()
        let option = PHImageRequestOptions()
        var thumbnail = UIImage()
        option.isSynchronous = true
        manager.requestImage(for: asset, targetSize: CGSize(width: 138, height: 138), contentMode: .aspectFit, options: option, resultHandler: {(result, info)->Void in
            thumbnail = result!
        })
        cell.imageView.image = thumbnail

let option = PHImageRequestOptions()

I recommend enabling isNetworkAccessAllowed. The asset can be stored in iCloud.

var thumbnail = UIImage()

Why?

option.isSynchronous = true

And as assets may be on iCloud, never do synchronous fetching it can freeze the app.

thumbnail = result!

Don't forcefully unwrap. Result can be nil and will crash.
Also as asset can be on iCloud you can get multiple callbacks, first with a low res image and later with the requested image size.

cell.imageView.image = thumbnail

Do that in the image callback instead, but make sure you are on main.


Chore: Tweak defaults for Beautifier

This matches the HTML beautifier default config with what has been used recently on another project.
/CC @mrgerardorodriguez

One pedantic comment but LGTM!


If you want to work on this, how are you supposed to npm-link it to another project?

I just ran npm link ../react-navigation from within the app I'm working on, and I'm getting the following error:
No dimensions set for key window
I've tried changing main in package.json to lib-rn as well.

It seems the issue was that my project was React Native 44, and for whatever reason linking to react-navigation pinned at 43.2 was the issue.


Add get as alias for view

I wasted a while wondering where the get function has disappeared. For me, get would seem like a nice pair for set :)
Great work btw!

Also, I'm still looking for modify(lens, f)

over is the modify you are looking for.
I've copied the names of operations from Ramda.  I agree that the names are not "optimal", but it is more difficult to decide the best choice of names would be.  For instance, I don't particularly like the name set.  I would prefer update as in "functional record update".  Ramda also uses the name update for a functional update operation on arrays whose semantics coincides with partial lens set.

current
proposed

view
get

set
set

over
modify

Perhaps it would not hurt to have the proposed aliases.  Opinions welcome!

2.2.0 introduced get and modify as synonyms for (deprecated) view and over
3.0.0 removed view and over.


[SPARK-46927][PYTHON] Make assertDataFrameEqual work properly without PyArrow

What changes were proposed in this pull request?
This PR proposes to fix assertDataFrameEqual to work properly without PyArrow
Why are the changes needed?

The current way does not work properly without PyArrow.
Does this PR introduce any user-facing change?
assertDataFrameEqual will raise proper error without PyArrow.
Before
>>> from pyspark.testing.utils import assertDataFrameEqual
>>> dict1 = {"a": 1, "b": 2}
>>> dict2 = {"a": 1, "b": 2}
>>> assertDataFrameEqual(dict1, dict2)
AttributeError: 'dict' object has no attribute 'schema'

After
>>> from pyspark.testing.utils import assertDataFrameEqual
>>> dict1 = {"a": 1, "b": 2}
>>> dict2 = {"a": 1, "b": 2}
>>> assertDataFrameEqual(dict1, dict2)
pyspark.errors.exceptions.base.PySparkAssertionError: [INVALID_TYPE_DF_EQUALITY_ARG] Expected type Union[DataFrame, ps.DataFrame, List[Row]] for `actual` but got type <class 'dict'>.

How was this patch tested?

UT
Was this patch authored or co-authored using generative AI tooling?

No.

Merged to master.


Screen transition lag on iOS 17.0 (simulator)

Describe the problem
I've updated to Xcode 15.0 and now using iOS 17.0 I'm noticing a screen transition lag when navigating between screens when running the app on the simulator (video attached below). On physical device (17.0.3) it's ok.
Affected platforms

iOS

Versions

Kotlin version: 1.9.10
Compose Multiplatform version: 1.5.10-beta02
OS version(s) (required for Desktop and iOS issues): 17.0
OS architecture (x86 or arm64): arm64

Sample code

https://github.com/GuilhE/Expressus
Navigation being made natively

Reproduction steps
Just run the app on iOS 17.0 simulator
Video
https://github.com/JetBrains/compose-multiplatform/assets/2677139/7c32bde5-2802-44cd-9675-4cc738643cf6
Same app on iOS 16.0 video sample here

Tested, still happening with:
gradleComposeMultiplatform = "1.6.0-beta01"
kotlin = "1.9.22"
ksp = "1.9.22-1.0.17"
composeMultiplatformCompiler = "1.5.8-beta01"
androidxCompose = "1.6.0"
androidxComposeCompiler = "1.5.8-dev-k1.9.22-42b6ec2b037"

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.


Decreasing Likes counter returns count to 0

Description, please be as detailed as possible:
When a post has 2 or more likes and 1 like is deleted the likes counter sets to 0 until the page is reloaded. On reload it will display the correct # of likes.
Please correct this so it displays the correct number without reloading the page.

Please like my post so I can test it out then I will close this issue

Please like my post so I can test it out then I will close this issue

already liked, is it not showing the like counter ?

One moment let me run the program

Good to go. Thank you, Thank you


#168 RtExec, inspect() method and unit test

PR for #168
Implemented and used RtExec, as well as the inspect() method.

@rultor merge it

@rultor merge it

@amihaiemil OK, I'll try to merge now. You can check the progress of the merge here

@rultor merge it

@amihaiemil Done! FYI, the full log is here (took me 3min)

Job gh:amihaiemil/docker-java-api#333 is not assigned, can't get performer


Fixed issue with plot_num_dist tests

Now testing for number of subplots, plot dimensions, a dataframe input, and a dataframe with numeric columns.

All feedback issues for plot_num_dist addressed here.


Map: fix stop_for_destination_ assigning

GetWaypointIndex(routing_waypoint_index_.back().waypoint)
must be always equal to
routing_waypoint_index_.back().index

@jmtao
Please check twice.
routing_waypoint_index_  is only assigned here:
  int i = 0;
  for (size_t j = 0; j < route_indices_.size(); ++j) {
    while (i < request_waypoints.size() &&
           RouteSegments::WithinLaneSegment(route_indices_[j].segment,
                                            request_waypoints.Get(i))) {
      routing_waypoint_index_.emplace_back(
          LaneWaypoint(route_indices_[j].segment.lane,
                       request_waypoints.Get(i).s()),
          j);
      ++i;
    }
  }

GetWaypointIndex(WaypointIndex.waypoint) is definitely equal to WaypointIndex.index
Second, right, next_routing_waypoint_index_ == routing_waypoint_index_.size() is just a rough check. And the checking result stop_for_destination_  is only for debug info currently.
The worked stop for destination is located related in traffic_rule/destination.cc.


Support for optional fetching via insecure paths

Fixes #207
Adds support for optional fetching via insecure paths.
gb fetch / update have a new flag, --precaire which enables discovery of insecure repos. It defaults to off.
TODO
No support for insecure bzr, I'll wait for someone to request it.
For discussion
Currently git:// scheme is considered insecure as, while it has no support for pushing, there is no transport security so could be used in a man-in-the-middle attempt.
Who cares enough to debate this ?

@ChrisHines @jpoehls this is ready for review.


add batch commands to the api

Usually a nice formulation containing 'please' or 'would you' increases my motivation to invest my time gratis for community.

Oh, hey, sorry - I was just following the convention of your previous issues without noticing that they were all created by you :)
My bad man - Your support and contribution is of course much appreciated from all of our R&D team here at www.fiverr.com

nothing happened.
is a pleasure to hear that my component is used in real solution. I try to implement the feature in next week.

thanks!

done, released in v0.5.1
updated https://github.com/veny/orientdb4r/wiki/Samples-Document-CRUD
enjoy!


[AAP-8313 ] Disable edit credential field for kind vault and id vault_id

Disable edit credential field for kind vault and id vault_id

We should also disable the key button. Otherwise looks good.

Change updated.