Tracking quest IDs for Cat Soul (Well Fed) and Corgi Soul

Cat Soul (Well Fed): 64982
Corgi Soul: 64939

I've ran /run print(C_QuestLog.IsQuestFlaggedCompleted(64939)) on a character that unlocked the Corgi Soul and it returned false. Even if the quest is meant to track that soul I can't reliably use it.

As an update to this, I just did it on a Horde character with quest debugging and got this:
[11:57:20] You pet Sparkle.
[11:57:22] Sparkle barks excitedly at you!
[11:57:22] DEBUG: Quest 64938 changed: false => true

And just to confirm Ma'oh's one:
[12:57:37] You receive loot: [Spectral Feed]
[12:58:39] You meow at Ma'oh.
[12:58:40] Ma'oh meows at you hungrily.
[12:58:44] Ma'oh meows loudly, enjoying the meal.
[12:58:44] DEBUG: Quest 64982 changed: false => true

@madcowfred Thanks for the detailed info.  Out of curiosity, how did you get that debug output for quests?

@madcowfred Thanks for the detailed info. Out of curiosity, how did you get that debug output for quests?

I've been using the HandyNotes Shadowlands developer mode for it, I believe ALL THE THINGS also has a debug mode that does something similar - https://github.com/zarillion/handynotes-plugins/blob/master/core/dev.lua explains how to enable.


fix support for WebWorkers

window is not defined inside WebWorkers/ServiceWorkers, fallback to self instead.

for browserify (not sure about webpack) you can use the keyword global which will be window or self

Doesn't seem to be defined in webpack, can someone confirm if it supports this use case? I agree, it would be much cleaner to have the bundler handle that rather than doing it in code.

@kumavis @dignifiedquire as an alternative, we can simply use self everywhere where modifying window is not required (since self is read only)? I'd hate to have the check littering the code everywhere...

Thank you closing in favor of #14


Recent QtAVPlayer doesn't works incorrectly on windows / Qt 5.15.2

Finally I've got some time to play with most recent changes (and started with 5.15.2 for simplicity).
Here is what I've got on windows using qml_video example:

Crash on a code responsible for audio playback.

Maybe because of 'QAudioOutput: open error, invalid format.' but it used to work in the past I think...

After commenting out audio-related lines...

If executed from debugger:

If executed without debugger - window is black (in rare occasions I do see first frame from 'big buck bunny') - and then it crashes in a second.

Note: I did experiments with my 'library-friendly' fork, but it shouldn't matter as this fork used to work with original QtAVPlayer

Interestingly, just tried the same on ubuntu 18.04 (wsl) - and here it works (at least after commenting out audio-related code)

https://github.com/valbok/QtAVPlayer/commit/9dc8d8a7ac6681d226845b43101fd2c158724b4a
this might solve audio issue

Yep, sound issue is solved, thanks! But pink screen is still here on windows (together with crash if run not under debugger)

"h264 : supported hardware device contexts:
dxva2
d3d11va
cuda
Using hardware device context: d3d11va
durationChanged 60095
mediaStatusChanged 2 1
Available pixel formats:
yuv420p : AVPixelFormat( 0 )
cuda : AVPixelFormat( 119 )
dxva2_vld : AVPixelFormat( 53 )
d3d11va_vld : AVPixelFormat( 118 )
d3d11 : AVPixelFormat( 174 )
Using hardware decoding in d3d11"
--- is it possible to switch to software decoding on windows just for tests?

QT_AVPLAYER_NO_HWDEVICE=1

https://github.com/valbok/QtAVPlayer/commit/b21e4ba2e97eecffb88bcaa8801ff6612514910d
checked this on windows, seems works

yep, works just fine now with both hw/sw decoding!


cancel method not documented on response iterators returned by invocations of response-streaming RPCs

Here and here.

We'd like this to happen soon but it's not critical that it be included in 1.1.0.

Actually it already was documented; I just misread the documentation. But pull request 9410 contains a fix for a separate doc error and tweaks for this issue.

Fixed by pull request 9410.


[Bug] Players cannot set Maneuver via chat command

When the GM tries to set a maneuver for a selected token with the chat command
/man ready
it works just fine.
But when a player tries to do the same, an error pops up
Unable to find a maneuver named 'ready'
[Foundry stand alone V10 288; GGA 0.15.7]

Again, I cannot duplicate this issue.   Running stand alone Foundry V10, a player in Chrome is able to set the maneuvers.   I tried:
/man conc
/man ready

And they work (while in combat, of course).
But we are matching against the i18n names.    What do you see when you just type /man ?

Strange, I can't replicate it again!
I guess it was due to using Firefox on my players side - have to watch out for that in the future.


Improving Send button functionality on Contact us Page

Is your feature request related to a problem? Please describe.
When Send button is clicked it doesn't respond properly.
https://github.com/user-attachments/assets/0d8cc134-1d30-445f-b021-64afe2594b76
Describe the solution you'd like
i want that on clicking submit button an alert stating that your message was send successfully and text field got cleared.
https://github.com/user-attachments/assets/48ecbce6-9d4d-4a6a-90aa-6a94de884aaa

@ANSHIKA-26  please assign me this issue under gssoc-extended . I have already made the changes just waiting for you to assign me and i will raise the PR.

@Devanshu1603 we are planning to club the contact us and give feedback page soon , so this issue wont exist :)

@ANSHIKA-26  you mean you are removing those pages.

yes ..planning to remove contact us , and integrate a part of it into feedback


Defining "Reproducible Science"

In thinking about reproducible science, do we want to clarify that we are in fact talking about "reproducible data analysis"? Perhaps this is obvious as well.
Perhaps it would help to clearly define where are starting point(s) and end point(s) are, which may simply bring us back to our learning objectives! :-)

Yes, reproducible computational research. Not bench research 😄 Also, I like to remind myself when thinking about definitions that what we are aiming for to teach with the curriculum is not how to conduct "reproducible science" (as then one would need to define what constitutes reproducible science and what does not), but to teach practices that help researchers to conduct their science more reproducibly.

Love the idea of conducting science more reproducibly!. Here is an example of steps to reproducible research


Cannot use zsh because of syntax error

[sindhu@leh ~]$ source ~/.zshrc
bash: /home/sindhu/.oh-my-zsh/oh-my-zsh.sh: line 13: syntax error near unexpected token (' bash: /home/sindhu/.oh-my-zsh/oh-my-zsh.sh: line 13:for config_file ($ZSH/lib/*.zsh); do'
I just installed oh-my-zsh and when I source ~/.zshrc, I get the above error.

thanks

thanks alot

thanks

docker-compose exec -it workspace zsh


Problem with decoding on test set with the latest seq2seq (tensorflow 1.2 version)

Hi, I've just tried the latest seq2seq with tensorflow 1.2. The bleu score for my test set decoding  suddenly become 1++ (even though during training with development set, bleu score is around 20+) using the latest version. Previously I used the seq2seq with tensorflow 1.0 without any problem, test set is around 20+. Did I miss something?
By the way, thanks for the great work!

Hello,
If you're using an old model, it's probable that some variable names have changed, and the system is unable to load them.
You can use the '-v' parameter when decoding, and it will display the names of each variable,
and the variables it was able to load from your checkpoint.
From there, and by looking at the 'log.txt' file from your old model, you can see which variables are missing.
Then, you can add rules to the 'variable_mapping' and 'reverse_mapping' lists in 'translation_model.py', to map from old variable names to new ones, or inversely.
In addition, some parameters may have changed in the configuration files (e.g. max_output_len/max_input_len -> max_len). You should look into config/default.yaml and compare with your model's config file to see if some names and/or default values have changed.
Best

Thanks. It's working now! This latest version runs faster than the previous 1.0. Thanks again!


Iron out submodule caching support

Related problem
PR #51 introduced submodule caching support, which greatly sped up workflow execution times. However, while doing https://github.com/sya-ri/PackSquash-action-test/pull/1 I've stumbled upon an unhandled exception related to the changes introduced in that PR.
That particular problem was fixed, but this fact and the lack of thorough testing of that PR suggest that there might be some relevant issues left.
Proposed solution
Submodule caching support should be thoroughly tested and reviewed before the next action version is released. Maybe my fix was enough to iron things out, but I didn't test complex scenarios such as nested submodules.
Alternative solutions

Do nothing. This is a risky proposition that I'd rather avoid.
Revert the PR. This would be sad, because it contains useful changes, and I would not like to do that. However, it would guarantee that no new failures are introduced due to submodule caching.

Additional context
@sya-ri was the original author of the PR and stated that the action "may need some changes" in response, but his unavailability and lack of commitment to look into the matter over the past months warrant this task to be written down and another pair of eyes to look at the problem.

I think that it throws an exception if it contains uncommitted files. I think there are other causes, but we need more research.

Okay.

[...] warrant [...] another pair of eyes to look at the problem.

Do you think it still is warranted? In other words, will I have to take care of this at some point?

This is not really related to the issue at hand, but while ironing out stuff I've fixed problem matchers being broken by default since the action uses PackSquash with colored output: https://github.com/ComunidadAylas/PackSquash-action/commit/11fa3f7b230566c6f0dd2daad9a39964e5398605

Good riddance to probably most of the caching issues that were left! :tada:
Addressed by #55.


Add documentation about creating cpp procedure with gsctl

As titled.

Resolved via https://github.com/alibaba/GraphScope/pull/4231


refactor: allow pipeOnly commands (methods on ShellStrings)

Fixes #487
This implements the pipeOnly option to wrapOptions. This is false by default.
This checks for conflicts between pipeOnly and canReceivePipe and throws an exception.
This also refactors some code to take advantage of these new changes. Two test cases were modified in order to give better error messages (in case globbing ever breaks for .to() or .toEnd()).

LGTM!

Force-merging this because LGTM isn't working.


Error importing plugin "pydantic.mypy": No module named 'pydantic'

Checks

[x] I added a descriptive title to this issue
[x] I have searched (google, github) for similar issues and couldn't find anything
[x] I have read and followed the docs and still think this is a bug

Bug
Output of python -c "import pydantic.utils; print(pydantic.utils.version_info())":
             pydantic version: 1.9.0
            pydantic compiled: True
                 install path: /home/slado122/Programming/Tests/test_pydantic_mypy/.venv/lib/python3.10/site-packages/pydantic
               python version: 3.10.2 (main, Jan 15 2022, 19:56:27) [GCC 11.1.0]
                     platform: Linux-5.16.15-arch1-1-x86_64-with-glibc2.35
     optional deps. installed: ['typing-extensions']
...

Pydantic's mypy plugin doesn't work for me. The command to reproduce:
python -m venv .venv && source .venv/bin/activate && pip install pydantic && echo "[mypy]\nplugins = pydantic.mypy" > mypy.ini && touch a.py && mypy .

Output:
Collecting pydantic
  Using cached pydantic-1.9.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.3 MB)
Collecting typing-extensions>=<IP_ADDRESS>
  Using cached typing_extensions-4.1.1-py3-none-any.whl (26 kB)
Installing collected packages: typing-extensions, pydantic
Successfully installed pydantic-1.9.0 typing-extensions-4.1.1
WARNING: You are using pip version 21.2.4; however, version 22.0.4 is available.
You should consider upgrading via the '/home/slado122/Programming/Tests/test_pydantic_mypy/.venv/bin/python -m pip install --upgrade pip' command.
mypy.ini:2: error: Error importing plugin "pydantic.mypy": No module named 'pydantic'
Found 1 error in 1 file (errors prevented further checking)

Must be a problem with how you have pydantic and/or mypy installed. Works fine for me.

I've the same issue occurs with me.
# python -c "import pydantic.utils; print(pydantic.utils.version_info())"
             pydantic version: 1.9.1
            pydantic compiled: True
                 install path: /usr/local/lib/python3.9/site-packages/pydantic
               python version: 3.9.7 (default, Sep 28 2021, 18:32:58)  [GCC 10.2.1 20210110]
                     platform: Linux-5.10.104-linuxkit-x86_64-with-glibc2.31
     optional deps. installed: ['dotenv', 'email-validator', 'typing-extensions']

mypy.ini
[mypy]
plugins = pydantic.mypy, sqlmypy
ignore_missing_imports = True
disallow_untyped_defs = True

# poetry show
Skipping virtualenv creation, as specified in config file.
alembic            1.8.1     A database migration tool for SQLAlchemy.
amqp               2.6.1     Low-level AMQP client for Python (fork of amqplib).
anyio              3.6.1     High level compatibility layer for multiple asynchronous event loop implementations
appdirs            1.4.4     A small Python module for determining appropriate platform-specific dirs, e.g. a ...
attrs              21.4.0    Classes Without Boilerplate
autoflake          1.4       Removes unused imports and unused variables
bcrypt             3.2.2     Modern password hashing for your software and your servers
billiard           <IP_ADDRESS>   Python multiprocessing fork with improvements and bugfixes
black              19.10b0   The uncompromising code formatter.
cachetools         5.2.0     Extensible memoizing collections and decorators
celery             4.4.7     Distributed Task Queue.
certifi            2022.6.15 Python package for providing Mozilla's CA Bundle.
cffi               1.15.1    Foreign Function Interface for Python calling C code.
chardet            5.0.0     Universal encoding detector for Python 3
charset-normalizer 2.1.0     The Real First Universal Charset Detector. Open, modern and actively maintained a...
click              8.1.3     Composable command line interface toolkit
coverage           6.4.2     Code coverage measurement for Python
cryptography       37.0.4    cryptography is a package which provides cryptographic recipes and primitives to ...
cssselect          1.1.0     cssselect parses CSS3 Selectors and translates them to XPath 1.0
cssutils           2.5.0     A CSS Cascading Style Sheets library for Python
dnspython          2.2.1     DNS toolkit
ecdsa              0.18.0    ECDSA cryptographic signature library (pure python)
email-validator    1.2.1     A robust email syntax and deliverability validation library.
emails             0.6       Modern python library for emails.
fastapi            0.79.0    FastAPI framework, high performance, easy to learn, fast to code, ready for produ...
flake8             3.9.2     the modular source code checker: pep8 pyflakes and co
greenlet           1.1.2     Lightweight in-process concurrent programming
gunicorn           20.1.0    WSGI HTTP Server for UNIX
h11                0.13.0    A pure-Python, bring-your-own-I/O implementation of HTTP/1.1
idna               3.3       Internationalized Domain Names in Applications (IDNA)
iniconfig          1.1.1     iniconfig: brain-dead simple config-ini parsing
isort              4.3.21    A Python utility / library to sort Python imports.
jinja2             2.11.3    A very fast and expressive template engine.
kombu              4.6.11    Messaging library for Python.
lxml               4.9.1     Powerful and Pythonic XML processing library combining libxml2/libxslt with the E...
mako               1.2.1     A super-fast templating language that borrows the best ideas from the existing te...
markupsafe         2.1.1     Safely add untrusted strings to HTML/XML markup.
mccabe             0.6.1     McCabe checker, plugin for flake8
mypy               0.961     Optional static typing for Python
mypy-extensions    0.4.3     Experimental type system extensions for programs checked with the mypy typechecker.
packaging          21.3      Core utilities for Python packages
passlib            1.7.4     comprehensive password hashing framework supporting over 30 schemes
pathspec           0.9.0     Utility library for gitignore style pattern matching of file paths.
pluggy             1.0.0     plugin and hook calling mechanisms for python
poetryup           0.9.0     Update dependencies and bump their version in the pyproject.toml file
premailer          3.10.0    Turns CSS blocks into style attributes
psycopg2-binary    2.9.3     psycopg2 - Python-PostgreSQL Database Adapter
py                 1.11.0    library with cross-python path, ini-parsing, io, code, log facilities
pyasn1             0.4.8     ASN.1 types and codecs
pycodestyle        2.7.0     Python style guide checker
pycparser          2.21      C parser in Python
pydantic           1.9.1     Data validation and settings management using python type hints
pyflakes           2.3.1     passive checker of Python programs
pyparsing          3.0.9     pyparsing module - Classes and methods to define and execute parsing grammars
pytest             7.1.2     pytest: simple powerful testing with Python
pytest-cov         2.12.1    Pytest plugin for measuring coverage.
python-dateutil    2.8.2     Extensions to the standard Python datetime module
python-jose        3.3.0     JOSE implementation in Python
python-multipart   0.0.5     A streaming multipart parser for Python
pytz               2022.1    World timezone definitions, modern and historical
raven              6.10.0    Raven is a client for Sentry (https://getsentry.com)
regex              2022.7.9  Alternative regular expression module, to replace re.
requests           2.28.1    Python HTTP for Humans.
rsa                4.8       Pure-Python RSA implementation
six                1.16.0    Python 2 and 3 compatibility utilities
sniffio            1.2.0     Sniff out which async library your code is running under
sqlalchemy         1.4.39    Database Abstraction Library
sqlalchemy-stubs   0.3       SQLAlchemy stubs and mypy plugin
starlette          0.19.1    The little ASGI library that shines.
tenacity           6.3.1     Retry code until it succeeds
toml               0.10.2    Python Library for Tom's Obvious, Minimal Language
tomli              2.0.1     A lil' TOML parser
tomlkit            0.11.1    Style preserving TOML library
typed-ast          1.5.4     a fork of Python 2 and 3 ast modules with type comment support
typer              0.4.2     Typer, build great CLIs. Easy to code. Based on Python type hints.
typing-extensions  4.3.0     Backported and Experimental Type Hints for Python 3.7+
urllib3            1.26.10   HTTP library with thread-safe connection pooling, file post, and more.
uvicorn            0.18.2    The lightning-fast ASGI server.
vine               1.3.0     Promises, promises, promises.

Must be a problem with how you have pydantic and/or mypy installed. Works fine for me.

For me. I installed both of them using poetry
pyproject.toml
[tool.poetry]
name = "app"
version = "0.1.0"
description = "A Personal Todo app"
authors = ["Admin<EMAIL_ADDRESS>
[tool.poetry.dependencies]
python = "^3.9"
uvicorn = "^0.18.2"
fastapi = "^0.79.0"
python-multipart = "^0.0.5"
email-validator = "^1.0.5"
requests = "^2.28.1"
celery = "^4.4.2"
passlib = {extras = ["bcrypt"], version = "^1.7.2"}
tenacity = "^6.1.0"
pydantic = "^1.9.1"
emails = "^0.6"
raven = "^6.10.0"
gunicorn = "^20.0.4"
jinja2 = "^2.11.2"
psycopg2-binary = "^2.8.5"
alembic = "^1.4.2"
pytest = "^7.1.2"
python-jose = {extras = ["cryptography"], version = "^3.1.0"}
SQLAlchemy = "^1.4.39"

[tool.poetry.dev-dependencies]
mypy = "^0.961"
black = "^19.10b0"
isort = "^4.3.21"
autoflake = "^1.3.1"
flake8 = "^3.7.9"
pytest = "^7.1.2"
sqlalchemy-stubs = "^0.3"
pytest-cov = "^2.8.1"
poetryup = "^0.9.0"

[tool.isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
line_length = 88
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"

Must be a problem with how you have pydantic and/or mypy installed. Works fine for me.

For me. I installed both of them using poetry
pyproject.toml
[tool.poetry]
name = "app"
version = "0.1.0"
description = "A Personal Todo app"
authors = ["Admin<EMAIL_ADDRESS>
[tool.poetry.dependencies]
python = "^3.9"
uvicorn = "^0.18.2"
fastapi = "^0.79.0"
python-multipart = "^0.0.5"
email-validator = "^1.0.5"
requests = "^2.28.1"
celery = "^4.4.2"
passlib = {extras = ["bcrypt"], version = "^1.7.2"}
tenacity = "^6.1.0"
pydantic = "^1.9.1"
emails = "^0.6"
raven = "^6.10.0"
gunicorn = "^20.0.4"
jinja2 = "^2.11.2"
psycopg2-binary = "^2.8.5"
alembic = "^1.4.2"
pytest = "^7.1.2"
python-jose = {extras = ["cryptography"], version = "^3.1.0"}
SQLAlchemy = "^1.4.39"

[tool.poetry.dev-dependencies]
mypy = "^0.961"
black = "^19.10b0"
isort = "^4.3.21"
autoflake = "^1.3.1"
flake8 = "^3.7.9"
pytest = "^7.1.2"
sqlalchemy-stubs = "^0.3"
pytest-cov = "^2.8.1"
poetryup = "^0.9.0"

[tool.isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
line_length = 88
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"

why it's closed? problem is actual

To reopen and/or help I need some more information on your set up and what you've tried to solve this.

why it's closed? problem is actual

@nerewarin I had this issue with my pyproject.toml set to:
mypy = "^0.971"
pydantic = "^1.9.2"

but by updating to
pydantic = "^1.10.2"
mypy = "^0.982"

I was able to get past this error.

Oddly, if I use exact versions, the issue goes away. I'm guessing there was some very specific transient issue with mypy and pydantic that is now resolved.

I encountered this same issue.
@DbCrWk's advice worked locally, but doesn't seem to work on github actions. I'm still investigating.

I am having the very same problem with mypy 1.2.0 and pydantic 1.10.7. Could someone post a complete solution. The issue is closed, but the solution is unclear.

In many of the cases above, it looks like it's possible it was using the mypy installed in a different mypy environment. Of course I can't confirm that is the case, but if you are running pip install pydantic or similar, I would suggest making sure that the full paths returned by which pip and which mypy are the same — you need to make sure the mypy that is used for type checking is in an environment where pydantic is available.
To check if it should be working, you might be able to run something like this:
"$(dirname $(which mypy))"/python -c 'import pydantic' && echo 'pydantic is installed'
# If successful: pydantic is installed
# If unsuccessful: ModuleNotFoundError: No module named 'pydantic'

In principle you should be able to install pydantic into mypy's environment via:
"$(dirname $(which mypy))"/pip install pydantic==<version>

but rather than doing the above, I would suggest figuring out why mypy is in a different environment and fixing that issue. (Perhaps you need to be running pip install mypy or similar)

I am running mypy (dmypy) using VS Code's Mypy-plugin using virtual environment under the repo. I have enabled an option to run mypy using active interpreter.
VS Code's dmypy output looks like this:
[10] stderr:
pyproject.toml:1:1: error: Error importing plugin "pydantic.mypy": No module named 'pydantic'  [misc]

[10] Error running mypy in /home/jylpah/src/pyutils: mypy failed with error: "pyproject.toml:1:1: error: Error importing plugin "pydantic.mypy": No module named 'pydantic'  [misc]". See Output panel for details.
Mypy settings changed: /home/jylpah/src/pyutils
[11] Check folder: /home/jylpah/src/pyutils
[11] Received python path from Python extension: /home/jylpah/src/pyutils/.venv/bin/python
[11] Running dmypy in folder /home/jylpah/src/pyutils
/home/jylpah/src/pyutils/.venv/bin/python -m mypy.dmypy --status-file /home/jylpah/.vscode-server/data/User/workspaceStorage/2fdff59c5118f1fdcf86eb0ea850ff65/matangover.mypy/dmypy-87d788e607b40726b815ff05bafaf021d67bd81d-187272.json run --log-file /home/jylpah/.vscode-server/data/User/workspaceStorage/2fdff59c5118f1fdcf86eb0ea850ff65/matangover.mypy/dmypy-87d788e607b40726b815ff05bafaf021d67bd81d.log -- . --show-column-numbers --no-error-summary --no-pretty --no-color-output --python-executable /home/jylpah/src/pyutils/.venv/bin/python
[11] stderr:
pyproject.toml:1:1: error: Error importing plugin "pydantic.mypy": No module named 'pydantic'  [misc]

[11] Error running mypy in /home/jylpah/src/pyutils: mypy failed with error: "pyproject.toml:1:1: error: Error importing plugin "pydantic.mypy": No module named 'pydantic'  [misc]". See Output panel for details.

% pip freeze
...
mypy==1.2.0
mypy-extensions==1.0.0
...
pydantic==1.10.7
...

I had a a similar issue as "Error importing plugin "pydantic.mypy": No module named 'pydantic_core'". I tried hard to find the root cause, but at the end the only thing that "fixed" it was to delete the virtualenv; remove the private packages and tool.poetry.source from pyproject.toml; poetry install; then put them back and poetry install again.
This is the minimal pyproject.toml that reproduce the issue with Poetry 1.7.1, although you need a valid PyPI server URL instead of https://pypi.example.com/simple/:
[tool.poetry]
name = "foo"
version = "0.1.0"
description = ""
authors = []
readme = "README.md"

[tool.poetry.dependencies]
python = "3.10.14"
pydantic = "2.7.1"
mypy = "1.10.0"

[[tool.poetry.source]]
name = "x"
url = "https://pypi.example.com/simple/"
priority = "default"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.mypy]
plugins = ["pydantic.mypy"]

If I run poetry install with it, I get the issue. If I remove the virtualenv and the tool.poetry.source, and then poetry install, it works fine.
This is definitely not an issue with Pydantic itself.

I recently started having this issue, I had only pydantic-settings and things were working fine. Last week mypy (with plugins = ["pydantic.mypy"]) started complaining that pydantic-core is missing, even after installing it, it complained that pydantic cannot find annotated-types.
I've tried adding just pydantic but it doesn't seem to include pydantic-core nor annotated-types, the strange thing is that I see them as dependencies: https://github.com/pydantic/pydantic/blob/main/pyproject.toml#L48-L52

I have the same issue

fwiw, I had this problem when bumped Pydantic from v1 to v2; I hoped to not do anything with the code itself (tests are passing) but seems that trick didnt work with mypy: had to set plugin to v1 to work:
[mypy]
plugins = pydantic.v1.mypy

I encountered this same issue.
@DbCrWk's advice worked. ~but doesn't seem to work on github actions. I'm still investigating...~
Update: The github actions issue was a user error related to pre-commit; I needed to add an additional_dependencies section to my mypy config in .pre-commit-config.yaml:
repos:
 - repo: https://github.com/pre-commit/mirrors-mypy
   rev: v0.991
   hooks:
     - id: mypy
       files: ^(mypackage/|tests/)
       additional_dependencies:
        - "pydantic>=1.10.4"

man, you're my savior


Improve Javadocs: Project and Package descriptions

To make the javadocs more self-explaining, there should be a project description that is displayed on the index page (overview.html).
The description can also include a link to the SpongeDocs.
Also, there should be a description for every package (package-info.java).

Isn't that what the SpongeDocs are for?

@phase not necessarily, the docs are for explaining things in a way that's more user-friendly, for all the n00bies, whether its Sponge or development in general (to some extent). this is just for extra clarification of the project, and parts of it. not so important, but it doesn't hurt to add it either.

Usually the packages are pretty self evident. What more description would a package gain?

@gabizou the Bukkit docs are a good example: http://www.javaminecraft.com/bukkitapi/overview-summary.html
The package description can contain a link of a related class (e.g. player events --> Player) and describe the contents of a package.
I don't think that all package names are self-explaining.

This overview is really nice. I would love to see something similiar for sponge as well.
Especially the following packages could benefit from this:

util.gen
world.gen
util.reflect
text.translation.locale
service.sql
world.storage
status
persistance.data
block.meta
block.data

For some you can guess them but others may be confusing due to their similar names.

I'd like to see this implemented

Anyone willing to do this? Or is this something the team would do?
If not I would offer my help on this.

This is an open source project. Just go ahead ;)

The current progress for package javadocs: ~50% (Compare)
If you have any wishes or suggestions please tell me so i can add them soon.

"Classes" is maybe a bad word (though the Bukkit javadoc also uses the word). Many parts of the API are actually interfaces
Very nice work! I think this really improves the quality of the javadoc!

"Classes" describes Java-specific file best, i.e. you wouldn't say "This .java file does yadayada ydada" but "This class does yada yada yada".

Done. Anyone wants to suggest some changes before i create a PR?
~130 package-info.java files

Possibly highlight some important classes in that particular package possibly?

I linked a lot of classes, but i could not export it to github. You can see the links when following the "Compare" link above the list.

Ah I can understand that.

Java only shows the first sentence in the listing so i focussed on writing that part.
I also thought about adding some examples for each paackage, but I'm lacking knowledge on some of the packages and i also don't know whether that will get appreciated.
Data API Example

Very nice!

Don't include examples.

I created a PR for this:
https://github.com/SpongePowered/SpongeAPI/pull/757

Now apart of the OCD list.


Grigor Dimitrov has a record!

Grigor Dimitrov is the only tennis player with 100% winning rate at the ATP Tour Finals

Minimum 10 matches


runtime configuration: elyra-metadata not found

Following the instructions in https://elyra.readthedocs.io/en/latest/user_guide/runtime-conf.html I tried running elyra-metadata install runtimes , which failed because the elyra-metadata  command was not found.
Please advise.
Output from the validation commands:
$ python --version
Python 3.7.7

$ node --version
v12.16.3

$ pip freeze | grep elyra
elyra==0.10.2

$ pip freeze | grep jupyterlab
jupyterlab==1.2.15
jupyterlab-git==0.10.1
jupyterlab-server==1.1.3

$ jupyter serverextension list
config dir: /Users/patti/anaconda3/envs/kubeflow/etc/jupyter
    elyra  enabled
    - Validating...
      elyra  OK
    jupyterlab  enabled
    - Validating...
      jupyterlab 1.2.15 OK
    jupyterlab_git  enabled
    - Validating...
      jupyterlab_git 0.10.1 OK
    nbdime  enabled
    - Validating...
      nbdime 1.1.0 OK

$ jupyter labextension list
JupyterLab v1.2.15
Known labextensions:
   app dir: /Users/patti/anaconda3/envs/kubeflow/share/jupyter/lab
        @elyra/application v0.10.2  enabled  OK
        @elyra/code-snippet-extension-experimental v0.10.2  enabled  OK
        @elyra/notebook-scheduler-extension v0.10.2  enabled  OK
        @elyra/pipeline-editor-extension v0.10.2  enabled  OK
        @elyra/python-runner-extension v0.10.2  enabled  OK
        @jupyterlab/git v0.10.1  enabled  OK
        @jupyterlab/toc v2.0.0  enabled  OK
        nbdime-jupyterlab v1.0.0  enabled  OK

Hi @ptitzler  - This script should reside in your python's bin directory following the installation.  The python's bin directory can be found via...
import sys
sys.prefix

Perhaps this directory is not in your current PATH.

Actually, the issue is that the docs you're using do not reflect the release you're using.  Instead you probably have the previous version of the tool: jupyter-runtimes, so a command like jupyter runtimes install kfp should display the options you need.

Yes, thank you. I upgraded to the code in the master branch to make it work. Looks like the PyPI version is behind, hence the disconnect between the docs and the installation. The command can now be found.

For others that may take the PyPI version 0.10.2 prior to our next release, the applicable documentation for creating runtime metadata instances can be found here: https://github.com/elyra-ai/elyra/tree/v0.10.2#configuring-runtime-metadata
We only created the readthedocs.io entry post 0.10, but most information relative to 0.10 can be found off that README file.

Yes, thank you. I upgraded to the code in the master branch to make it work. Looks like the PyPI version is behind, hence the disconnect between the docs and the installation. The command can now be found.

hi bro, I'm having the same problem as you, can you help me? i have updated pypi but no success. and cannot run the command jupyter runtimes install kfp


Unable to select custom tenant

Hi,
I followed the manual here: https://opendistro.github.io/for-elasticsearch-docs/docs/security-access-control/multi-tenancy/
I can create everything, but when selecting the tenant under /app/security-multitenancy#/ and reload it select Private again, for the integrated admin_tenant, Global and Private the selection works fine and is saved after a reload.
What could be the issue? Kibana doesn't log any errors (returns 200 on /api/v1/multitenancy/tenant)
This happens with a restricted user, AND the access_all user

I occurred the same issue. I am using AWS managed elasticsearch(7.4) and kibana.
As @Thoro said, after clearing all cookies. I can select other tenant.

After configuring further tenants the issue reappeared, I can make it work by clearing all cookies, but that shouldn't be necessary!

The tenant selection has been revamped, and at this time I'm not able to reproduce this issue with version 2.1.0 of OpenSearch. Please feel free to re-open if that's not the case for you and we can take a further look!


Fix inconsistencies between generated product and product specifications

This PR resolves the metadata inconsistencies between the generated CSLC-S1 and static layers products with the corresponding product specification documents.
Particularly the PR applies the following fixes:

y_spacing will be a positive value
added azimuth_solid_earth_tides to the QA stats group
Add description to projection metadata field.
Correct units of azimuth_steering_rate
Correct orbit_type description

[Testing and check that the above has been addressed according to the received comments ]

If the Y-direction is positive going north, shouldn't y_spacing be negative if the records are ordered from north to south?

@jshimada47 totally agree with that. However, comments from our CSLC-S1 product review mention that a negative spacing is not intuitive for users :s. I am not sure where the confusion is, frankly

Yes, I don't think that it's unusual for geocoded products to have negative y-spacings because most of them define the positive direction as increasing latitude. I'm concerned that using positive-valued y-spacings contradicts the definition in the product spec.

@seongsujeong can you please have a look at this PR? Thanks.


Nested zero.Init() and dynamically defined model class

This PR aims to fix the following issues described in #2811 and #2812.

Nested zero.Init() causes infinite recursion
zero.Init() does not properly partition parameters of a model class that is dynamically defined inside the context

According to the discussion on #2812, this change enables zero.Init() to detect dynamically defined classes and properly sets wrappers to the constructors of the classes. This also manages the hierarchical contexts of zero.Init().

Thank you for your patience - this looks good, @tohtana - I did some testing and it works well for the cases I tried.
Now something this sensitive of a change can't be merged w/o adding comprehensive tests. In both issues I have supplied the tests already, so it should be trivial to merge them. But also think if perhaps some of my tests don't cover something cases, so please add those as well.
Thank you again, this is a really important PR.

I don't think rebasing is going to help if the tests added in this PR fail
As the error is:
   File "/tmp/actions-runner/_work/DeepSpeed/DeepSpeed/tests/unit/runtime/zero/test_zero_context_ancestry.py", line 141, in test_new_class_declared_inside_init
    with deepspeed.zero.Init(config_dict_or_path=ds_config):
  File "/tmp/actions-runner/_work/DeepSpeed/DeepSpeed/unit-test-venv/lib/python3.8/site-packages/deepspeed/runtime/zero/partition_parameters.py", line 728, in __init__
    init_distributed()
  File "/tmp/actions-runner/_work/DeepSpeed/DeepSpeed/unit-test-venv/lib/python3.8/site-packages/deepspeed/comm/comm.py", line 576, in init_distributed
    mpi_discovery(distributed_port=distributed_port, verbose=verbose)
  File "/tmp/actions-runner/_work/DeepSpeed/DeepSpeed/unit-test-venv/lib/python3.8/site-packages/deepspeed/comm/comm.py", line 595, in mpi_discovery
    from mpi4py import MPI
ModuleNotFoundError: No module named 'mpi4py'

it means the test isn't set up properly.

Fix #2812 and #2811


Recursive types

Rerucsive types are useful and also supported by JSON schema https://json-schema.org/understanding-json-schema/structuring#recursion.
In other parser library APIs, this feature is often called "lazy".
Typebox calls it .Recursive.
an example of a recursive structure:
// Typebox:
const FileSystem = Type.Recursive((Self) =>
  Type.Intersect([
    Type.Object({
      name: Type.String({
        minLength: 1,
      }),
    }),
    Type.Union([
      Type.Object({
        type: Type.Literal('file'),
      }),
      Type.Object({
        type: Type.Literal('directory'),
        children: Type.Array(Self),
      }),
    ]),
  ])
);

Definitely. Also want to add t.ref() and a de-referencer (t.deref() or t.expand().. tbd)
The 3 of them can be added at any point in a minor release.

Additionally, I may also look into $defs/definitions but that might make TS inference excessively complicated. One idea is that t.ref() can only pass objects and then $defs is auto-populated w/ the full definition. Another is that t.ref() may only reference keys defined within the options.$defs that are passed. For example:
// Option 1
let User = t.object({ ... });

let Post = t.object({
  title: t.string(),
  author: t.ref(User)
  // ...
});

// Option 2
let Post = t.object({
  title: t.string(),
  author: t.ref('user'),
  // ...
}, {
  $defs: {
    user: User,
  }
})

The first would auto-generate $defs object, making for the same output. But it'd require that User actually be pre-defined. And you may not always want $defs to exist in the output, and so maybe you opt out of that by defining $defs: false in the options?
let User = t.object({ ... });

let Post = t.object({
  title: t.string(),
  author: t.ref(User)
  // ...
}, {
  $defs: false,
});
//-> generates object type w/ "author.$ref" pointing to a disconnected/undefined definition... but you chose that

I think I'm going to go with Option 1 (auto-build $defs) and instead of t.deref(), that utility is going to be called t.copy()
I'm still undecided on what the t.self()/t.recursive() utility is going to called and what its API will look like, but jotting down some options for that now:
// spec example:
{
  "type": "object",
  "properties": {
    "name": { "type": "string" },
    "children": {
      "type": "array",
      "items": { "$ref": "#" }
    }
  }
}

// Option 1: emulate typebox
let person = t.recursive(self => {
  return t.object({
    name: t.string(),
    children: t.array(self),
  });
});

// Option 2: named helper
let person = t.object({
  name: t.string(),
  children: t.array(
    t.self(), // <<
  ),
});

// Option 3: If t.ref() accepts strings...
let person = t.object({
  name: t.string(),
  children: t.array(
    t.ref('#'), // <<
  ),
});

// Option 4: Add generic unsafe/raw method
// -> general-purpose escape hatch, you = responsible
let person = t.object({
  name: t.string(),
  children: t.array(
    t.raw({ $ref: '#' }) // <<
  ),
});

I really dont like Option 1, but I wanted to include it for completeness. It'd be the only method that requires a callback and it'd be more annoying to pick up thru t.Infer correctly.
@dearlordylord Thoughts?

To the first comment:
t.ref(User) seems a bit more reasonable to me: your library is about a DSL over JSON Schema generation. If a user has to think in terms of $refs (probably too hot take, not entirely convinced about it:), then why not just let them define JSON schema by themselves and validate it as AJV does?
So, option (1) from the first comment looks reasonable to me. Working with objects/types is farther away from "defining schema manually" and seems to be the point!
To the second comment:
Options 3 and 4 don't seem to be what you need (again, assuming it's a DSL abstracting JSON schema away). Option 1 seems to be what a couple of libraries do, which makes API more understandable to users (and also, there may be reasons why they do it this specific way!). Ref: rescript-schema (.recursive), Typebox (.Recursive).
Some facts that may or may not be relevant, if you want to check them out: Zod and valita have .lazy() API that doesn't pass "self" but also requires you to duplicate runtime and type definitions - that isn't perfect although in my opinion I don't care about duping types, as long as "it compiles = it works". But this approach, if used, may undermine your "tschema infers types" argument.
There's also Arktype that does it in a very special way with scope, but the library premise itself is super special (they parse string literals with typescript metaprogramming)


build(rc-env): add env for v1.3.0 release-candidate (RC) phase

build(rc-env): add env for v1.3.0 release-candidate (RC) phase
ref: CPLP-2330
chore(consortia-envs): use image tags from default values and update auto image update for release

@Phil91 the pr is really ready for review now, sorry if I flooded you with notifications!

@Phil91 the pr is really ready for review now, sorry if I flooded you with notifications!

no issues 😄 really like the implementation of the tag values now 👍


not an issue! I need a developper , website using react-lite with material-ui

Hello Lucifer
I'm actually in china for holidays, i saw that you re located in Shanghai.. so why not asking you directly.
I have a website running with last material-ui (alpha) and react-lite, all is running fluently,
Anyway i need somebody really talented to work on and reduce size app.
i'm not sure you re some free time but i try my chance, i can pay but i'm not a big enterprise.
I'm as well developper in react , and i follow the last change of it.
I use mobx for state, webpack2, babel, tree-shaking to optimize but my real problem the bundle stay too much big in my taste
(i ve got 500ko for main.js ,  react-lite and other libs in vendor.js is around 200ko)
As well, the things i will ask you will get forward react-lite repository.
you can delete this issue after read it.
here my contact<EMAIL_ADDRESS>Regards
Simon

The bad news is I can't join.
The good news is react core team have a plan to reduce the scripts size, and you can open the real issue to react-lite if you have some problem of it.


[Blog] Add the blog about React Hooks and their features

Description
React Hooks is a vast thing and the most important thing in React.  In order to learn and make better UI, developers must have learned and must have to have a strong command of react hooks.
You have to a blog related to React Hooks and their features.
Published Link
[https://blog.arjunsingh.tech/a-complete-guide-to-react-hooks-discover-their-features](A Complete Guide to React Hooks: Discover Their Features)
🔄 Websites
Hashnode
Checklist ✅

[X] I checked and didn't find similar issue
[X] I am from GSSoC23
[X] I have read the Contributing Guidelines
[X] I am willing to work on this issue (blank for no)

I am working on this issue.


Adds indicator-protocol release

see https://github.com/cloudfoundry-incubator/indicators/wiki for more information

Hello - can you please include a license in your release repository before we merge and start publicly publishing assets?


Investigate Release Builds with Debug Symbols under GDB for potential issues with rclrs_tests usage of DDS

As discussed in the March 11th monthly meetup, we have some occasional unit test failures. These failures have seemingly been narrowed down to rclrs_tests and appear to be related to DDS usage. See https://github.com/ros2-rust/ros2_rust/pull/364 for more details.
With that in mind, it is imperative that we take multiple approaches to thoroughly investigate and analyze the root causes of these failures.
For this issue, we agreed that it would be beneficial to attach GDB to some release builds that contain debug symbols, in a fresh ros2 workspace. As I understand it, the hope was we could get a nicer stack trace for our intermittent failures than what we saw in #364.

@mxgrey I'm not sure how deep you dug here, but since #372 I haven't been able to reproduce this locally.
Going to close this for now.

I actually wasn't able to get gdb to work correctly on any test cases because the rapid creation and destruction of threads was leaving gdb without a stack to latch onto.
But it's reassuring that you're no longer reproducing it, and it's a good indication that this was a drop order issue on our end all along.
I'm skeptical that we're totally out of the woods yet. There may be potential drop orders that just don't happen to show up in our tests. So I'll still plan on auditing the rcl handlers more closely.


Not converted to lambda

Can Func1 be used to put an alias such as opFilter?

https://github.com/eccyan/RxJava-Optional/pull/7


Documentation about jQuery 3

I'm not able to find anything on jQuery 3 compatibility so I'm wondering whether or not this should be working as is right now?
If there is indeed nothing documented yet, I'd be best to add something about jQuery 3 for clarity.
The only thing I managed to find was

jasmine-jquery is tested with jQuery 2.0 ..

By using jQuery 3.1.0 and jQuery Migrate 3.0.0, I got some logs about removed or deprecated functionality. I quickly had a look at the source code and noticed 1 place where the deprecated jQuery method .size() was being used instead of the now common .length.
As .size() is removed in jQuery 3, this means this library is currently not compatible with jQuery 3. I didn't look into it any further as this answered my question, but I'm guessing there will be more breaking functionality.

Here is the log of the test suite invocation with jQuery 3.
There are 19 failures currently. So that requires some job to implement jQuery 3 support for this library.

I've opened a pull request #292 which fixes a major issue with jQuery 3 support. It isn't the only one, but looks like it is the most complicated one.

Also, here is my experimental branch with jQuery 3 support: https://github.com/cmrd-senya/jasmine-jquery/tree/jquery3

Bumping this. Is there any plan to support jquery 3?


[Feature]: JSObject : Allow cancelling of JS Object funtion run

Is there an existing issue for this?

[X] I have searched the existing issues

Summary
Currently, if I trigger the function run for a sync function in JS object and it is taking too much time there is no way to cancel this run.
Why should this be worked on?
Improve JS Object usage experience.

duplicate of #19676


Observing issues with 1 nic deployment and terraform cloud

Hi Team,
Observed i was running into below issues when i tried to deploy 1 nic bigip deployment.

After deployment unable to login to machine using user input password

README didn't indicate pub ssh key file is mandatory and should be provided as input in the module block

If we tried to use terraform cloud as backend running into another issues as below which i am currently debugging

So please check them and fix.
Thanks,
Janibasha

Here is my observation and debugging notes:

ssh keys are mandatoy and .pub file have to be present in .ssh folder
If we are using terraform cloud, subnet has project details so it comes are sensitive. We have to use nonsensitive function to subnet_id for resolving this issue
There was issue with start-up script which was fixed by developer
Password field shouldn't have Admin which may fail

Since issue is fixed closing this ticket.

Since issue is fixed closing this ticket.


osrm-backend: 5.23.0 → 5.24.0

Motivation for this change
Things done

[X] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[X] NixOS
[ ] macOS
[ ] other Linux distributions

[X] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

@GrahamcOfBorg test osrm-backend

@GrahamcOfBorg test osrm-backend


Hello, I checked the pre-trained weights and didn't encounter this issue. At what stage did you encounter this problem?


TLS support

Hello,
Is there a possibility that this tool will support TLS connection to RabbitMQ in a near future?
Thank you.

This tool relies on the great AMQP library by Sean Treadway. Its documentation suggest that TLS is supported by using amqps:// for the protocol part of the connection url.

When Dial encounters an amqps:// scheme, it will use the zero value of a tls.Config. This will only perform server certificate and host verification.

So I theory, using TLS with rabbitmq-cli-consumer should be possible. I have not tested it though.
But this might not what you are looking for. I your request is to add support for client certificates as a means of authentication, this certainly can be done as the AMQP library has support for it.
@klizas is the server certificate and host verification you will get with using amqps:// enough for your use case or do you need also client certificate support?

Yes, it works perfectly fine with amqps://. Thank you!


run-s or npm-run-all need to be listed as dependencies

Hello,
I noticed my build was breaking because run-s is not available on my server, and it is referenced here: https://github.com/peerigon/parse-domain/commit/ad6ced26cbee7ecd4b65462f3aeaa0df1fad5985
I strongly recommend adding run-s or npm-run-all as a dependency of this project.
Thank you!

Ah nevermind -- my apologies. I am installing without dev dependencies on my server. I'll install npm-run-all globally.


Save image but cannot show the unicode string

Hey guys, I just write the code same as the document which makes a screenshot for a web page. Successfully I saved the jpg/png file, but the unicode strings like chinese cannot be seen on the pic. How can I fixed it?
ps: the web page showing is normal when opened by chrome.

I think your problem with fonts, try to add them directly to the page

I think your problem with fonts, try to add them directly to the page

sorry, I didn't find any entry options like font or something else to change the page's font. Besides, this is a public web page, I don't know whether it is the chromium-browser behavior.
Could you give some examples please?

Can you share the link? Because I dont have any problems with chinese letters, page with 你好 - successfully opened by headless chrome and screenshot contain and display these letters correctly

And yes - there's no options in this library to add custom font into page, you can use js for this:
$addFontScript = <<<JS
document.getElementsByTagName('head')[0].innerHTML += "<style>@import url('https://fonts.googleapis.com/css?family=ZCOOL+XiaoWei'); html, body { font-family: 'ZCOOL XiaoWei', serif; }</style>";
JS;

$page->navigate('URL_OF_PAGE_WITH_CHINESE_LETTERS')->waitForNavigation();
$page->evaluate($addFontScript);
sleep(3); // to load font and re-render page (if no changes try to increase it up to 10 secs)
$page->screenshot()->saveToFile('test.png');

And yes - there's no options in this library to add custom font into page, you can use js for this:
$addFontScript = <<<JS
document.getElementsByTagName('head')[0].innerHTML += "<style>@import url('https://fonts.googleapis.com/css?family=ZCOOL+XiaoWei'); html, body { font-family: 'ZCOOL XiaoWei', serif; }</style>";
JS;

$page->navigate('URL_OF_PAGE_WITH_CHINESE_LETTERS')->waitForNavigation();
$page->evaluate($addFontScript);
sleep(3); // to load font and re-render page (if no changes try to increase it up to 10 secs)
$page->screenshot()->saveToFile('test.png');

Gratefully thanks, it works anyway. But it seems to have other problems. I have tried couple of font-families but only one font-family works and just few letters shows right. It's wired.
Testing page is "https://www.baidu.com" and my enviroment is centos7 + chromium-browser + composer + php7.1. You can try it.

Ok, I tried on my new virtual machine running unbuntu 16.4, but still not work well. Here is the code with laravel console command:
<?php

namespace Console\Commands;

use HeadlessChromium\BrowserFactory;
use HeadlessChromium\Clip;
use Illuminate\Console\Command;

class ChromeScreenshot extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'screenshot {--U|url= : url} {--F|font= : font}';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Command description';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     *
     * @return mixed
     */
    public function handle()
    {
        $url = $this->option('url');
        $browserFactory = new BrowserFactory('chromium-browser --no-sandbox');
        // starts headless chrome
        $browser = $browserFactory->createBrowser();

        // creates a new page and navigate to an url
        $page = $browser->createPage();
         $navigation = $page->navigate('https://www.baidu.com');
         if ($url) {
            $navigation = $page->navigate($url);
         }
        // wait for the page to be loaded
        $navigation->waitForNavigation();
        $jsScript = <<<JS
document.getElementsByTagName('head')[0].innerHTML += "<style>@import url('https://fonts.googleapis.com/css?family=ZCOOL+XiaoWei'); html, body { font-family: 'ZCOOL XiaoWei', serif; }</style>";
JS;
        $page->evaluate($jsScript);
        $this->info('sleeping');
        sleep(8);
        $this->info('unsleep');

        // take the screenshot (in memory binaries)
        $screenshot = $page->screenshot();

        // save the screenshot
        $screenshot->saveToFile('/img/test.jpg');
    }
}

and it shows like that:
https://prnt.sc/n10ve9
and my chromium-browser version is
Chromium 73.0.3683.75 Built on Ubuntu , running on Ubuntu 16.04
I don't know what else wrong.

Sorry, I have no idea then, try to install chinese fonts support directly to your OS

It has been solved.
It happens when OS like centOS or unbuntu does not have chinese fonts ('.ttf' prefixed files) by default.
If you pull a centos/ubuntu image by docker, it usually has no chinese fonts library.
Therefore, the best solution is adding at least one kind of chinese fonts (".ttf" file) to /usr/share/fonts/chinese. Here is my notes. Check it out.

Great job! Im happy to know that you managed to solve it :)

try
sudo apt-get install fonts-noto


Update based workflows for ssp-generate / ssp-assemble

Issue description / feature objectives
Today ssp-generate / ssp-assemble behave adversely if run multiple times i.e.

ssp-generate will overwrite the markdown files
ssp-assemble will ovewrite the ssp.

The result is the output objects cannot be edited. This is particularly true for the output ssp where ssp-assemble today is only addressing part of the required elements.
The result is there is a gap where update workflows are required.

for ssp-assemble merge between a ssp object, if it exists where we presume all control responses are authored by the markdown tools.
for ssp-generate it will be necessary to merge:

the yaml headers
the control responses if they exist.

Completion Criteria

I think that 3/4 of this is implemented. I noticed that the SSP workflow does not allow for updates. This becomes a particular issues as there WILL be fields that need to be updated outside of the markdown workflow.

Done.


Crash at startup with Python 3.11

Hello,
I'm on Manjaro using the supercollider package from the official repository and installed sc3nb over pip inside an anaconda (python 3.11.0) environment.
When I run a simple
import sc3nb as scn
sc = scn.startup()

it crashes with the following error message (from jupyter notebook):
Starting sclang process... [sclang | start reading ]
[sclang]  compiling class library...
[sclang]  	Found 867 primitives.
[sclang]  	Compiling directory '/usr/share/SuperCollider/SCClassLibrary'
[sclang]  	Compiling directory '/usr/share/SuperCollider/Extensions'
[sclang]  	Compiling directory '/home/sentinel/.local/share/SuperCollider/Extensions'
[sclang]  	numentries = 1279205 / 19274352 = 0.066
[sclang]  	5716 method selectors, 3372 classes
[sclang]  	method table size 20669904 bytes, big table size 154194816
[sclang]  	Number of Symbols 14876
[sclang]  	Byte Code Size 437565
[sclang]  	compiled 553 files in 0.93 seconds
[sclang]
[sclang]  Info: 4 methods are currently overwritten by extensions. To see which, execute:
[sclang]  MethodOverride.printAll
[sclang]
[sclang]  compile done
[sclang]  localhost : setting clientID to 0.
[sclang]  internal : setting clientID to 0.
[sclang]  Class tree inited in 0.01 seconds
[sclang]
[sclang]
[sclang]  *** Welcome to SuperCollider 3.12.2. *** For help type ctrl-c ctrl-h (Emacs) or :SChelp (vim) or ctrl-U (sced/gedit).
Done.
Registering OSC /return callback in sclang... [sclang]  sc3> "sc3nb - Registering OSC /return callback".postln; r = r ? (); r.callback = { arg code, ip, port; var result = code.interpret; var addr = NetAddr.new(ip, port); var prependSize = { arg elem; if (elem.class == Array){ elem = [elem.size] ++ elem.collect(prependSize); }{ elem; }; }; var msgContent = prependSize.value(result); addr.sendMsg("ReplyAddress.RETURN_ADDR", msgContent); result; };
...
-> 57120
sc3> Requested notification messages from server 'sc3nb_remote'
sc3nb_remote: server process has maxLogins 8 - adjusting my options accordingly.
sc3nb_remote: keeping clientID (0) as confirmed by server process.
Output exceeds the [size limit](command:workbench.action.openSettings?[). Open the full output data [in a text editor](command:workbench.action.openLargeOutput?76a7e08d-8f21-4273-bae1-902c30461c66)
---------------------------------------------------------------------------
ProcessTimeout                            Traceback (most recent call last)
File ~/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/sclang.py:458, in SCLang.connect_to_server(self, server)
    457 try:  # if there are 'too many users' we failed. So the Exception is the successful case!
--> 458     self.read(expect="too many users", timeout=0.3, print_error=False)
    459 except ProcessTimeout:

File ~/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/sclang.py:383, in SCLang.read(self, expect, timeout, print_error)
    382     print(error_str + timeout_error.output)
--> 383 raise timeout_error

File ~/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/sclang.py:370, in SCLang.read(self, expect, timeout, print_error)
    369 try:
--> 370     return self.process.read(expect=expect, timeout=timeout)
    371 except ProcessTimeout as timeout_error:

File ~/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/process_handling.py:247, in Process.read(self, expect, timeout)
    246 if time.time() >= timeout_time:
--> 247     raise ProcessTimeout(
    248         executable=self.executable,
    249         timeout=timeout,
    250         output=out,
    251         expected=expect,
    252     )
    253 try:
...
--> 282     raise RuntimeError(
    283         f"connecting {self._sclang} to {self._server} failed"
    284     ) from excep

RuntimeError: connecting <SCLang process=<Process 'sclang' (running) pid=9437>> to <SCServer addr=('<IP_ADDRESS>', 57110), process=<Process 'scsynth' (running) pid=9482>> failed

Hi,
Thank you for the report.
It seems like the output is clipped
Output exceeds the [size limit](command:workbench.action.openSettings?[). Open the full output data [in a text editor](command:workbench.action.openLargeOutput?76a7e08d-8f21-4273-bae1-902c30461c66)
Can you provide the full output? There should be some line starting with [scsynth]  or [scsynth | start reading ]?
It is possible that sc3nb is unable to find the scsynth executable. Is it in $PATH ? / Can you start the server in the commandline using scsynth?
What happens if you start  without sclang by using: scn.startup(start_sclang=False)?
Sometimes increasing the timeout also helps. You could try scn.startup(timeout=20)

Here is the full output from python interactive:
> conda activate sound_synth
> python
Python 3.11.0 | packaged by conda-forge | (main, Jan 14 2023, 12:27:40) [GCC 11.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sc3nb as scb
>>> scb.startup()
[sclang | start reading ]
[sclang]  compiling class library...
[sclang]  	Found 867 primitives.
[sclang]  	Compiling directory '/usr/share/SuperCollider/SCClassLibrary'
[sclang]  	Compiling directory '/usr/share/SuperCollider/Extensions'
[sclang]  	Compiling directory '/home/sentinel/.local/share/SuperCollider/Extensions'
[sclang]  	numentries = 1279205 / 19274352 = 0.066
[sclang]  	5716 method selectors, 3372 classes
[sclang]  	method table size 20669904 bytes, big table size 154194816
[sclang]  	Number of Symbols 14876
[sclang]  	Byte Code Size 437565
[sclang]  	compiled 553 files in 0.78 seconds
[sclang]
[sclang]  Info: 4 methods are currently overwritten by extensions. To see which, execute:
[sclang]  MethodOverride.printAll
[sclang]
[sclang]  compile done
[sclang]  localhost : setting clientID to 0.
[sclang]  internal : setting clientID to 0.
[sclang]  Class tree inited in 0.01 seconds
[sclang]
[sclang]
[sclang]  *** Welcome to SuperCollider 3.12.2. *** For help type ctrl-c ctrl-h (Emacs) or :SChelp (vim) or ctrl-U (sced/gedit).
Starting sclang process... Done.
[sclang]  sc3> "sc3nb - Registering OSC /return callback".postln; r = r ? (); r.callback = { arg code, ip, port; var result = code.interpret; var addr = NetAddr.new(ip, port); var prependSize = { arg elem; if (elem.class == Array){ elem = [elem.size] ++ elem.collect(prependSize); }{ elem; }; }; var msgContent = prependSize.value(result); addr.sendMsg("ReplyAddress.RETURN_ADDR", msgContent); result; };
[sclang]  sc3nb - Registering OSC /return callback
[sclang]  -> ( 'callback': a Function )
Registering OSC /return callback in sclang... Done.
[sclang]  sc3> "sc3nb - Loading SynthDefs from ^synthdef_path".postln; PathName.new("/home/sentinel/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/resources/synthdefs").files.collect( { |path| (path.extension == "scsyndef").if({SynthDescLib.global.read(path); path;})} );
[sclang]  sc3nb - Loading SynthDefs from ^synthdef_path
[sclang]  -> [ nil, PathName(/home/sentinel/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/resources/synthdefs/pb-1ch.scsyndef), PathName(/home/sentinel/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/resources/synthdefs/pb-2ch.scsyndef), PathName(/home/sentinel/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/resources/synthdefs/record-1ch.scsyndef), PathName(/home/sentinel/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/resources/synthdefs/record-2ch.scsyndef), P...etc...
Loading default sc3nb SynthDefs... Done.
[scsynth | start reading ]
[scsynth]  Faust: supercollider.cpp: sc_api_version = 3
[scsynth]  Faust: FaustGreyholeRaw numControls=7
[scsynth]  Faust: supercollider.cpp: sc_api_version = 3
[scsynth]  Faust: FaustJPverbRaw numControls=11
[scsynth]  Found 118 LADSPA plugins
[scsynth]  JackDriver: client name is 'SuperCollider'
[scsynth]  SC_AudioDriver: sample rate = 48000.000000, driver's block size = 1024
[scsynth]  SuperCollider 3 server ready.
Booting SuperCollider Server... Done.
[sclang]  sc3> "sc3nb - Connecting sclang to scsynth".postln; Server.default=s=Server.remote('sc3nb_remote', NetAddr("<IP_ADDRESS>",57110), options:ServerOptions.new, clientID:0);
[sclang]  sc3nb - Connecting sclang to scsynth
[sclang]  sc3nb_remote : setting clientID to 0.
[sclang]  -> Server
[sclang]  sc3> r['callback'].value("NetAddr.langPort", "<IP_ADDRESS>", 57131);
[sclang]  -> 57120
[sclang]  sc3> Requested notification messages from server 'sc3nb_remote'
[sclang]  sc3nb_remote: server process has maxLogins 8 - adjusting my options accordingly.
[sclang]  sc3nb_remote: keeping clientID (0) as confirmed by server process.
ERROR: unable to receive /return message from sclang
sclang output: (also see console)

sc3> r['callback'].value("NetAddr.langPort", "<IP_ADDRESS>", 57131);
-> 57120
sc3> Requested notification messages from server 'sc3nb_remote'
sc3nb_remote: server process has maxLogins 8 - adjusting my options accordingly.
sc3nb_remote: keeping clientID (0) as confirmed by server process.
Traceback (most recent call last):
  File "/home/sentinel/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/sclang.py", line 458, in connect_to_server
    self.read(expect="too many users", timeout=0.3, print_error=False)
  File "/home/sentinel/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/sclang.py", line 383, in read
    raise timeout_error
  File "/home/sentinel/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/sclang.py", line 370, in read
    return self.process.read(expect=expect, timeout=timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sentinel/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/process_handling.py", line 247, in read
    raise ProcessTimeout(
sc3nb.process_handling.ProcessTimeout: Reading of sclang timed out after 0.3s while expecting: "too many users"

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/sentinel/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/sclang.py", line 308, in cmd
    return_val = self._server.returns.get(timeout)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sentinel/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/osc/osc_communication.py", line 570, in get
    val = self._queue.get(block=True, timeout=timeout)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sentinel/anaconda3/envs/sound_synth/lib/python3.11/queue.py", line 179, in get
    raise Empty
_queue.Empty

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/sentinel/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/sc.py", line 280, in _try_to_connect
    self._sclang.connect_to_server(self._server)
  File "/home/sentinel/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/sclang.py", line 461, in connect_to_server
    self._port = self.cmdg("NetAddr.langPort", verbose=False)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sentinel/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/sclang.py", line 343, in cmdg
    return self.cmd(code, get_result=True, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sentinel/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/sclang.py", line 315, in cmd
    raise SCLangError(
sc3nb.sclang.SCLangError: unable to receive /return message from sclang

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/sentinel/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/sc.py", line 67, in startup
    SC.default = SC(
                 ^^^
  File "/home/sentinel/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/sc.py", line 177, in __init__
    self.start_server(
  File "/home/sentinel/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/sc.py", line 271, in start_server
    self._try_to_connect()
  File "/home/sentinel/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/sc.py", line 282, in _try_to_connect
    raise RuntimeError(
RuntimeError: connecting <SCLang process=<Process 'sclang' (running) pid=55058>> to <SCServer addr=('<IP_ADDRESS>', 57110), process=<Process 'scsynth' (running) pid=55114>> failed
>>>

Also, scynth can be executed from cmd:
> which scsynth
/usr/bin/scsynth

Here is the full output from python interactive:
> conda activate sound_synth
> python
Python 3.11.0 | packaged by conda-forge | (main, Jan 14 2023, 12:27:40) [GCC 11.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sc3nb as scb
>>> scb.startup()
[sclang | start reading ]
[sclang]  compiling class library...
[sclang]  	Found 867 primitives.
[sclang]  	Compiling directory '/usr/share/SuperCollider/SCClassLibrary'
[sclang]  	Compiling directory '/usr/share/SuperCollider/Extensions'
[sclang]  	Compiling directory '/home/sentinel/.local/share/SuperCollider/Extensions'
[sclang]  	numentries = 1279205 / 19274352 = 0.066
[sclang]  	5716 method selectors, 3372 classes
[sclang]  	method table size 20669904 bytes, big table size 154194816
[sclang]  	Number of Symbols 14876
[sclang]  	Byte Code Size 437565
[sclang]  	compiled 553 files in 0.78 seconds
[sclang]
[sclang]  Info: 4 methods are currently overwritten by extensions. To see which, execute:
[sclang]  MethodOverride.printAll
[sclang]
[sclang]  compile done
[sclang]  localhost : setting clientID to 0.
[sclang]  internal : setting clientID to 0.
[sclang]  Class tree inited in 0.01 seconds
[sclang]
[sclang]
[sclang]  *** Welcome to SuperCollider 3.12.2. *** For help type ctrl-c ctrl-h (Emacs) or :SChelp (vim) or ctrl-U (sced/gedit).
Starting sclang process... Done.
[sclang]  sc3> "sc3nb - Registering OSC /return callback".postln; r = r ? (); r.callback = { arg code, ip, port; var result = code.interpret; var addr = NetAddr.new(ip, port); var prependSize = { arg elem; if (elem.class == Array){ elem = [elem.size] ++ elem.collect(prependSize); }{ elem; }; }; var msgContent = prependSize.value(result); addr.sendMsg("ReplyAddress.RETURN_ADDR", msgContent); result; };
[sclang]  sc3nb - Registering OSC /return callback
[sclang]  -> ( 'callback': a Function )
Registering OSC /return callback in sclang... Done.
[sclang]  sc3> "sc3nb - Loading SynthDefs from ^synthdef_path".postln; PathName.new("/home/sentinel/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/resources/synthdefs").files.collect( { |path| (path.extension == "scsyndef").if({SynthDescLib.global.read(path); path;})} );
[sclang]  sc3nb - Loading SynthDefs from ^synthdef_path
[sclang]  -> [ nil, PathName(/home/sentinel/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/resources/synthdefs/pb-1ch.scsyndef), PathName(/home/sentinel/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/resources/synthdefs/pb-2ch.scsyndef), PathName(/home/sentinel/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/resources/synthdefs/record-1ch.scsyndef), PathName(/home/sentinel/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/resources/synthdefs/record-2ch.scsyndef), P...etc...
Loading default sc3nb SynthDefs... Done.
[scsynth | start reading ]
[scsynth]  Faust: supercollider.cpp: sc_api_version = 3
[scsynth]  Faust: FaustGreyholeRaw numControls=7
[scsynth]  Faust: supercollider.cpp: sc_api_version = 3
[scsynth]  Faust: FaustJPverbRaw numControls=11
[scsynth]  Found 118 LADSPA plugins
[scsynth]  JackDriver: client name is 'SuperCollider'
[scsynth]  SC_AudioDriver: sample rate = 48000.000000, driver's block size = 1024
[scsynth]  SuperCollider 3 server ready.
Booting SuperCollider Server... Done.
[sclang]  sc3> "sc3nb - Connecting sclang to scsynth".postln; Server.default=s=Server.remote('sc3nb_remote', NetAddr("<IP_ADDRESS>",57110), options:ServerOptions.new, clientID:0);
[sclang]  sc3nb - Connecting sclang to scsynth
[sclang]  sc3nb_remote : setting clientID to 0.
[sclang]  -> Server
[sclang]  sc3> r['callback'].value("NetAddr.langPort", "<IP_ADDRESS>", 57131);
[sclang]  -> 57120
[sclang]  sc3> Requested notification messages from server 'sc3nb_remote'
[sclang]  sc3nb_remote: server process has maxLogins 8 - adjusting my options accordingly.
[sclang]  sc3nb_remote: keeping clientID (0) as confirmed by server process.
ERROR: unable to receive /return message from sclang
sclang output: (also see console)

sc3> r['callback'].value("NetAddr.langPort", "<IP_ADDRESS>", 57131);
-> 57120
sc3> Requested notification messages from server 'sc3nb_remote'
sc3nb_remote: server process has maxLogins 8 - adjusting my options accordingly.
sc3nb_remote: keeping clientID (0) as confirmed by server process.
Traceback (most recent call last):
  File "/home/sentinel/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/sclang.py", line 458, in connect_to_server
    self.read(expect="too many users", timeout=0.3, print_error=False)
  File "/home/sentinel/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/sclang.py", line 383, in read
    raise timeout_error
  File "/home/sentinel/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/sclang.py", line 370, in read
    return self.process.read(expect=expect, timeout=timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sentinel/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/process_handling.py", line 247, in read
    raise ProcessTimeout(
sc3nb.process_handling.ProcessTimeout: Reading of sclang timed out after 0.3s while expecting: "too many users"

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/sentinel/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/sclang.py", line 308, in cmd
    return_val = self._server.returns.get(timeout)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sentinel/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/osc/osc_communication.py", line 570, in get
    val = self._queue.get(block=True, timeout=timeout)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sentinel/anaconda3/envs/sound_synth/lib/python3.11/queue.py", line 179, in get
    raise Empty
_queue.Empty

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/sentinel/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/sc.py", line 280, in _try_to_connect
    self._sclang.connect_to_server(self._server)
  File "/home/sentinel/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/sclang.py", line 461, in connect_to_server
    self._port = self.cmdg("NetAddr.langPort", verbose=False)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sentinel/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/sclang.py", line 343, in cmdg
    return self.cmd(code, get_result=True, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sentinel/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/sclang.py", line 315, in cmd
    raise SCLangError(
sc3nb.sclang.SCLangError: unable to receive /return message from sclang

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/sentinel/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/sc.py", line 67, in startup
    SC.default = SC(
                 ^^^
  File "/home/sentinel/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/sc.py", line 177, in __init__
    self.start_server(
  File "/home/sentinel/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/sc.py", line 271, in start_server
    self._try_to_connect()
  File "/home/sentinel/anaconda3/envs/sound_synth/lib/python3.11/site-packages/sc3nb/sc.py", line 282, in _try_to_connect
    raise RuntimeError(
RuntimeError: connecting <SCLang process=<Process 'sclang' (running) pid=55058>> to <SCServer addr=('<IP_ADDRESS>', 57110), process=<Process 'scsynth' (running) pid=55114>> failed
>>>

Also, scynth can be executed from cmd:
> which scsynth
/usr/bin/scsynth

Sorry for the late reply. I finally managed to reproduce this issue after receiving a similar report.
The problem seems to be related with Python 3.11
Can you please try the following work around and report back if it also works for you?
sc = scn.startup(start_server=False)
sc.lang.cmds(
    r"""
        "sc3nb - Registering OSC /return callback".postln;
        // NetAddr.useDoubles = true;
        r = r ? ();
        r.callback = { arg code, ip, port;
            var result = code.interpret;
            var addr = NetAddr.new(ip, port);
            var prependSize = { arg elem;
                if (elem.class == Array){
                    elem = [elem.size] ++ elem.collect(prependSize);
                }{
                    elem;
                };
            };
            var msgContent = prependSize.value(result);
            addr.sendMsg(^replyAddress, msgContent);
            result;  // result should be returned
        };""",
    pyvars={"replyAddress": "/return"},
)
sc.start_server()

Yes, it seems to be working with these additional settings.
Thank you!

The issue was caused by https://github.com/python/cpython/issues/100458 and is now fixed.


Move macro docs to the crate level

Fulfills both #75 and #79
Is there a better way to link to the crate-level docs? I'm not too familiar with linking within rustdoc.

@steveklabnik, thank your for the comments. ../index.html is not working for me locally, but ../bitflags/index.html is. Should I commit the latter?

There, I believe that should take care of those issues.

Oh, and should I remove the unstable_testing feature from Cargo.toml as well? It appears it is no longer relevant, going along with the removal of mention of assignment_ops being a nightly feature from the docs.

Thanks @Cldfire!


Feature: ACCESSIBLE SOCIAL ANCHORS FOR FOOTER 💡

Feature description

This feature is about adding aria-label for social anchors (links like Github) which are placed inside the footer element

it is important to note that we want to add the title attribute also. This is because the title attribute is intended to provide additional information to screen reader users.

The aria-label attribute is a way more important for providing accessibility information to screen reader users. The aria-label attribute is an Accessible Rich Internet Applications (ARIA) attribute that can be used to provide a label for an element. This label is then read aloud by screen readers, providing additional information about the element to the user.

In general, the aria-label & title attributes are preferred for providing accessibility information to screen reader users.

You can consider to assign this issue to me to make the site accessible for screen readers

👀 Have you spent some time to check if this issue has been raised before?

[X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

Hey there @rohanbabbar04 👋🏻
Please make sure to assign this issue to me as soon possible so that i can make the work done!
Thank you.

please assign me this issue under gSSOC 2023


[SQL] Support MySQl LEFT function.

What would you like to be added:
Why is this needed:
ref #454
official document:
https://dev.mysql.com/doc/refman/5.6/en/string-functions.html#function_left
code:
https://github.com/arana-db/arana/tree/master/pkg/runtime/function/scripts/string.js
reference code:
https://github.com/arana-db/arana/tree/master/pkg/runtime/function2/abs.go

Assigned to me.


NFTz Pinata video check

Current dependencies on/for this PR:

main

PR #369   👈

This stack of pull requests is managed by Graphite.


Bootstrap Portfolio Project

feat: Add Bootstrap portfolio webpage

Created a responsive portfolio webpage using Bootstrap
Included sections for projects, about me, and contact information
Applied Bootstrap classes and components for a clean and professional design
Added custom CSS for additional styling and personalization

#portfolio #Bootstrap #webdesign

Please add this in the list of projects section in the readme.md file @thecodephilic-guy

I have updated the readme.md file as you asked @DhanushNehru


Authentication fails in clean weblate helm repo installation

I am installing the latest weblate version on an AKS cluster, via the following command:
helm install weblate weblate/weblate -f C:\path\to\values.yaml
The content of values.yaml is as follows:
# adminEmail -- Email of Admin Account
adminEmail<EMAIL_ADDRESS># adminUser -- Name of Admin Account
adminUser: "my-user"
# adminPassword -- Password of Admin Account
adminPassword: *********

service:
  type: LoadBalancer

Weblate goes in a crash loop after installation, and I am able to see this in the logs:
psql: error: FATAL:  password authentication failed for user "postgres"
What do you think is the issue here?

What is your configuration for postgresql.* settings?

Hi @nijel
I haven't changed anything in the chart repo, shouldn't running the installation command just work, out of the box?

It should.
Maybe the PostgreSQL password is not set because of the reasons described in the note here: https://github.com/bitnami/bitnami-docker-postgresql/blob/master/README.md#creating-a-database-user-on-first-run

I can't connect to the weblate container, because it's down, but when I connect to the database container, and echo the environment variables, I see that the user is 'postgres' and the password is 'weblate'. Which is aligned with what we see in the helm repo.
So, which user and password should we actually use?
And how should we set it up when deploying the helm repo? The URL you sent me is for docker

The chart uses docker containers underneath.

Alright, but what's the procedure to pass those parameters to the helm install command?
I have tried to add the following to the values.yaml:
postgresqlUsername: "weblate"

postgresqlPassword: "weblate"

postgresqlDatabase: "weblate"

(...) but I am still getting the same error
psql: error: FATAL: password authentication failed for user "postgres"
Trying to pass those values when invoking the command did not produce an error, but did not work either:
helm install weblate weblate/weblate -f C:\path\to\values.yaml --set postgresqlUsername=weblate --set postgresqlPassword=weblate
So, the values are not being picked up! Any idea how can I pass them?

django.db.utils.ProgrammingError: permission denied for table django_migrations

The user does not have permission for the table. Most likely the weblate database is not owned by weblate user.


[BUG] OAK camera randomly stops publishing images during longer operation (segfault in libusb)

We recently observed a stability issue of OAK-D cameras when running them for a long period of time. The camera will suddenly stop publishing depth images and/or other data streams after operating normally for a couple of hours, but temperature readings continued and the driver did not crash. And by checking the kernel message, there was a segfault in libusb:
2023-02-08 01:11:29
usb 1-1.1: SerialNumber: 03e72485
2023-02-08 01:11:29
usb 1-1.1: Manufacturer: Movidius Ltd.
2023-02-08 01:11:29
usb 1-1.1: Product: Movidius MyriadX
2023-02-08 01:11:29
usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
2023-02-08 01:11:29
usb 1-1.1: New USB device found, idVendor=03e7, idProduct=2485, bcdDevice= 0.01
2023-02-08 01:11:29
usb 1-1.1: new high-speed USB device number 51 using xhci_hcd
2023-02-08 01:11:28
usb 2-1.1: USB disconnect, device number 2
2023-02-08 01:11:26
Code: f8 c3 f3 0f 1e fa 48 8b 47 28 48 8d 0d 5f b7 00 00 be 04 00 00 00 48 8d 15 a5 a1 00 00 c7 00 01 00 00 00 48 8b 07 44 8b 47 18 <48> 8b 40 40 4c 8b 48 08 31 c0 4c 89 cf e9 66 84 ff ff 66 0f 1f 44
2023-02-08 01:11:26
Scheduler00Thr[1872863]: segfault at 1aea1 ip 00007f1fbc1606f8 sp 00007f1f7f1fa908 error 4 in libusb-1.0.so[7f1fbc158000+10000]
2023-02-08 01:07:59
usb 1-7.1.1: SerialNumber: 03e72485
2023-02-08 01:07:59
usb 1-7.1.1: Manufacturer: Movidius Ltd.
2023-02-08 01:07:59
usb 1-7.1.1: Product: Movidius MyriadX
2023-02-08 01:07:59
usb 1-7.1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
2023-02-08 01:07:59
usb 1-7.1.1: New USB device found, idVendor=03e7, idProduct=2485, bcdDevice= 0.01
2023-02-08 01:07:59
usb 1-7.1.1: new high-speed USB device number 50 using xhci_hcd
2023-02-08 01:07:59
usb 4-1.1.1: USB disconnect, device number 112
2023-02-08 01:07:57
Code: f8 c3 f3 0f 1e fa 48 8b 47 28 48 8d 0d 5f b7 00 00 be 04 00 00 00 48 8d 15 a5 a1 00 00 c7 00 01 00 00 00 48 8b 07 44 8b 47 18 <48> 8b 40 40 4c 8b 48 08 31 c0 4c 89 cf e9 66 84 ff ff 66 0f 1f 44
2023-02-08 01:07:57
Scheduler00Thr[1873561]: segfault at 40 ip 00007f720521b6f8 sp 00007f720387b908 error 4 in libusb-1.0.so[7f7205213000+10000]

Also when this happens, various OAK measures (like the temperature and CPU usage) are still read by the driver without an error - but they don't change anymore. It seems these measures are read from a buffer and this buffer is simply reporting the last value, despite the camera not sending any information anymore. See plot below:

Expected behavior
Camera can operate normally for at least 24 hours.

@developer-mayuan
Thanks for the report. I assume that the device was brought down at this point, due to another print that device disconnected/reconnected.

The camera will suddenly stop publishing depth images and/or other data streams after operating normally for a couple of hours, but temperature readings continued and the driver did not crash.

Which is why I'm not sure how this have happened? I think that your logging code did not observe that device was shutdown.
Regardless, to debug this further, can you please provide which system is this running on as well as what OS, etc...?
And after how many hours did it crash? Is that 11 hours?


ModUI not working in 0.3.4 and Townscaper not working in 0.5.7

you have to install MelonLoader in version 0.4.3 otherwise the game wont boot, however ModUI only works in if MelonLoader is installed on version 0.5.7
ive tried launching the game when MelonLoader is installed on 0.5.7 but it would just pop up the MeloanLoader window and fail to launch, meanwhile when i have MelonLaoder installed on version 0.4.3 ModUI will get an error saying "ModUI.DZColorSlider has unsupported parameter Single value of type System.Single"

you can ignore the "unsupported paramenter message.
as for 0.5.7:

Uninstall MelonLoader (with the installer)
Create a new shortcut to your Townscaper.exe
Add   --melonloader.disablestartscreen as a startargument to the shortcut
Install MelonLoader 0.5.7
Start the game through the new shortcut from now on


sys/linux: add descriptions for RTM_(NEW|DEL|GET)NEXTHOP

https://elixir.bootlin.com/linux/v5.8-rc4/source/net/ipv4/nexthop.c#L1961

Before sending a pull request, please review Contribution Guidelines:
https://github.com/google/syzkaller/blob/master/docs/contributing.md

I've updated the pr to include a policy per command - instead of going for specific use-cases - @necipfazil let me know what you think.


(Error code: 9) (Extra code: 0) in About Chromium page

This issue is used to track the following issue and inform ungoogled-chromium macOS users about this (as it was reported before).

An error message with code (Error code: 9) (Extra code: 0) is shown in the about page since PR #134 (update to v120). (Check the photo below).

It does also happen with official Google Chromium macOS builds. The same error is shown with the official build (while testing on my local environment) and there's multiple reports found online like this one.

It's either an upstream issue or intended (as the update is disabled with vanilla Chromium). If it is intended, what's weird is that only macOS builds have the error message...

/cc @jorgehezd You might be interested in knowing more this.

Granted it is cosmetic, could we patch it somehow?

Granted it is cosmetic, could we patch it somehow?

I haven't found any way to patch this for now... Will still investigate into this, but it's not on priority.

Update: I don't know if #102 which

disables the updater

have an influence on this. Will try this out soon.

Result: YES.
Enable the updater will prevent this issue, but Chromium will continuously check update...

Enable the updater will prevent this issue, but Chromium will continuously check update...

Perhaps it would be possible to hard-code a return in place of the check?

Enable the updater will prevent this issue, but Chromium will continuously check update...

Perhaps it would be possible to hard-code a return in place of the check?

That's what I plan to do, but I'll have to find the check code...

Should be gone if you updates to https://github.com/ungoogled-software/ungoogled-chromium-macos/releases/tag/126.0.6478.126-1.1 /cc @jorgehezd


How to configure mqtt through edgex(version : Fuji) using meta-edgex layer

we have integrated meta-edgex layer of Fuji version in Yocto build (Gatesgarth) for imx8 board. We made changes to database parameter (from mongodb to redis) in configuration.toml of listed microservices of Edgex recipe:

core-metadata
export-distro
support-scheduler
core-data
export-client
support-notifications
core-command
support-logging

Changes made in edgex-fuji-launch.sh :
commented support-logging	microservice in the above mentioned script file.
Procedure:

Made all the above changes
Ran edgex-fuji-launch.sh in background
Ran device-mqtt-launch.sh in background
Ran device-virtual-launch.sh

The services are up but we are not able to see the messages (from MQTT test device) in HiveMQ mqtt client.
For all the microservices the events are as follows:

"Putting event on message queue"
"Event Published on message queue
Pushed event to core data"

Please let us know how to configure mqtt service (configuration.toml file) to publish the message to MQTT broker and to check the messages using HiveMQ client for Fuji version of EdgeX.
Is there any changes required to be done to export-client and export-distro (configuration.toml file)
Hereby attaching the logs on imx8 board:
EdgeX-fuji-mqtt-logs-imx8.txt

File related to above issue is attached here

file:///home/administrator/Projects/EdgeX-fuji-mqtt-logs-imx8

@shalini-stack , Fuji is no longer supported please upgrade to latest Kamakura (2.2.0) release.
also see this example: https://docs.edgexfoundry.org/2.2/examples/Ch-ExamplesAddingMQTTDevice/#enabling-multi-level-topics

closing as inactive


loader: refactor/cleanup replaceNetworkDatapath

replaceNetworkDatapath() is only called from one place and adds an additional loop over the encryption devices. This commit removes the function and calls replaceDatapath() from reinitializeIPSec() directly.
There are no functional changes.

/test

/test


Snap to vertices or edges

Fix for issue #3850

Demo: http://jsfiddle.net/DR/vjxzyqx5/

Thanks for this, great work! Can you please either add upgrade notes that snapping to edges is now active, or set edge snapping to false by default?

Maybe I misunderstood you but if I set edge snapping to false by default it will change current ol.interaction.Snap default behaviour.

@drnextgis Sorry, I understood you! I was under the impression that we currently have only vertex snapping, which is not true of course.

In API docs about ol.interaction.Snap:

Handles snapping of vector features while modifying or drawing them.

But I've found that ol.interaction.Modify has own snapping part and ol.interaction.Snap doesn't affect it. Any thoughts how we can fix it? Related issue https://github.com/openlayers/ol3/issues/4177

I don't think #4177 is related. If I understand that issue correctly, it is about restricting the Modify interaction to disallow the addition of new vertices.
Regarding this issue, the Modify interaction has no snapping. What feels like snapping is only the positioning of the edit vertex and the decision whether to place it on an existing vertex or on an edge. Once you move that vertex, there is no snapping whatsoever. You can influence that behaviour with the pixelTolerance option.


Export ics_datetime.dart

By exporting IcsDateTime, it gets included in documentation and users can use it as a type in their code. It also allows IDEs to auto-complete code such as icsDateTime.toDateTime().

Thanks! Also want to thank you for this package. I got a new project and need to work with .ics files for the first time, and this is an absolute life-saver!

You're welcome. I hope it will help you in your project 😄


Support for Protocol cumulativeLiquidity Withdraw & Deposit Count

Without this, the cumulative liquidity deposit and withdraw count isn't automatically updated.

Aren't these here: ?https://github.com/messari/subgraphs/blob/master/subgraphs/reference/src/sdk/protocols/bridge/pool.ts#L666
https://github.com/messari/subgraphs/blob/master/subgraphs/_reference_/src/sdk/protocols/bridge/pool.ts#L679
If you want to add them to Account you should also remove them from Pool to not count them twice

Ah okay. That's good to know. I'll do that
My version didn't have that.


GameObjects stop responding to input events after game recreated with scale.mode

Version

Phaser Version:  v3.20.1

Operating system: Linux (the issue should not be platform-related)

Browser: Version 78.0.3904.87 (Official Build) (64-bit)

Description

GameObjects stop responding to input events after game recreated with scale.mode
Example Test Code

try inserting this code in any Phaser3 Labs example:
const config = {
    type: Phaser.AUTO,
    parent: 'phaser-example',
    scale: {
        mode: Phaser.Scale.RESIZE,
        width: 800,
        height: 600
    },
    scene: {
        create: create
    }
};

let game = new Phaser.Game(config);

function create ()
{
    this.add.text(10, 10, 'text text text', { font: '16px Courier', fill: '#00ff00' }).setInteractive().on('pointerdown', function () {
        console.log('this.style.color '+this.style.color)
        this.style.color == '#ff0000' ? this.setColor('#00ff00') : this.setColor('#ff0000')
    })

    this.add.text(10, 400, 'destroy game', { font: '16px Courier', fill: '#00ffff' }).setInteractive().on('pointerdown', function () {

        this.sys.game.destroy(true);
        game = new Phaser.Game(config);

    }, this);
}

Steps to reproduce:

click the 'text text text' - it will change color (respond to click events)
click 'destroy game'
click the 'text text text' - it will not change color (not respond to click events)
then change mode: Phaser.Scale.RESIZE to mode: Phaser.Scale.FIT on line 5 or any other (except NONE) - text input will still not work after game destroy
then change mode: Phaser.Scale.RESIZE to mode: Phaser.Scale.NONE on line 5 - text input will work

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.
https://github.com/photonstorm/phaser/commit/ce236f0d69288a92d1636ce1abf256c516f970de


Can't get second attribute location

Hi,
I took the triangle example and just added the lines bellow:
...
attribute vec3 aVertexPosition;
attribute vec3 aVertexPosition2;
...
vertexPositionAttrib := gl.GetAttribLocation(program, "aVertexPosition")
fmt.Printf("vertexPositionAttrib = %d", vertexPositionAttrib)
vertexPositionAttrib2 := gl.GetAttribLocation(program, "aVertexPosition2")
fmt.Printf("vertexPositionAttrib2 = %d", vertexPositionAttrib2)
...
I build it with gopherjs and the value of vertexPositionAttrib2 is -1.
Did I missed something?
Regards,
Marc

That looks correct to me, is expect it to work.
I'll try to reproduce.

I could reproduce. I think it's because aVertexPosition2 is unused in your shader code, so it gets optimized away.
Try actually using it in the shader, then it works fine:
gl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0) * vec4(aVertexPosition2, 1.0);

Thanks a lot. It works now :)

Thanks al lot for your help
2017-03-20 17:28 GMT+01:00 Dmitri Shuralyov<EMAIL_ADDRESS>
I could reproduce. I think it's because aVertexPosition2 is unused in
your shader code, so it gets optimized away.
Try actually using it in the shader, then it works fine:
gl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0) * vec4(aVertexPosition2, 1.0);
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/goxjs/gl/issues/24#issuecomment-287815590, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AObfludzj50sXsZeqz4AXp5QxRAqmcTBks5rnqk7gaJpZM4Milzp
.


The example usage of NoOpStringBuilderPool in CustomNamingConventions in the documentation is misleading

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the bug
The class you've mentioned here and here in the documentation is a private class and not accessible when you're actually consuming the HotChocolate.Types.Descriptors namespace.
Steps to reproduce

Import HotChocolate v.12+
Use HotChocolate.Types.Descriptors namespace.
Callnew NoOpStringBuilderPool()

Relevant log output
No response
Additional Context?
No response
Product
Hot Chocolate
Version
12.6.0

There are actually two classes one is public ... I will remove the private one and then the docs should be alright.

Remove HotChocolate.Types.Descriptors.DescriptorContext.NoOpStringBuilderPool
Seal HotChocolate.Types.Descriptors.NoOpStringBuilderPool