Failed to build docker image

I am following the installation guide on docs and encountered failure when trying to build docker image. It seems that it is caused by a new dependency resolver of pip.
Environment:

System: Ubuntu 20.04 LTS
Docker: version 20.10.8, build 3967b7d28e
Docker Compose: version 1.26.2, build eefe0d31
django-cms-quickstart: hash 38fedf7719

Output:
ERROR: After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that it resolves dependency conflicts.

We recommend you use --use-feature=2020-resolver to test your packages with the new resolver before it becomes the default.

django-filer 2.1rc4 requires easy-thumbnails>=2.8rc0, but you'll have easy-thumbnails 2.7.1 which is incompatible.
Successfully installed Pillow-8.3.2 Unidecode-1.1.2 asgiref-3.4.1 boto3-1.14.49 botocore-1.17.63 dj-database-url-0.5.0 django-3.1.13 django-classy-tags-2.0.0 django-cms-3.9.0 django-filer-2.1rc4 django-formtools-2.3 django-js-asset-1.2.2 django-mptt-0.13.4 django-polymorphic-3.0.0 django-sekizai-2.0.0 django-storage-url-0.5.0 django-storages-1.11.1 django-treebeard-4.5.1 djangocms-admin-style-2.0.2 djangocms-attributes-field-2.0.0 djangocms-bootstrap5-0.1.0 djangocms-file-3.0.0 djangocms-googlemap-2.0.0 djangocms-icon-2.0.0 djangocms-link-3.0.0 djangocms-picture-3.0.0 djangocms-style-3.0.0 djangocms-text-ckeditor-4.0.0 djangocms-video-3.0.0 docutils-0.15.2 easy-thumbnails-2.7.1 furl-2.1.3 html5lib-1.1 jmespath-0.10.0 orderedmultidict-1.0.1 psycopg2-2.8.5 python-dateutil-2.8.2 pytz-2021.1 s3transfer-0.3.7 six-1.16.0 sqlparse-0.4.2 urllib3-1.25.11 uwsgi-<IP_ADDRESS> webencodings-0.5.1 whitenoise-5.2.0
WARNING: You are using pip version 20.2.4; however, version 21.2.4 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
Removing intermediate container dbfc9d54476b
 ---> bf2103f4c737
Step 5/6 : RUN python manage.py collectstatic --noinput
 ---> Running in 26bde774232b
Traceback (most recent call last):
  File "manage.py", line 22, in <module>
    main()
  File "manage.py", line 18, in main
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 377, in execute
    django.setup()
  File "/usr/local/lib/python3.8/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/local/lib/python3.8/site-packages/django/apps/registry.py", line 114, in populate
    app_config.import_models()
  File "/usr/local/lib/python3.8/site-packages/django/apps/config.py", line 211, in import_models
    self.models_module = import_module(models_module_name)
  File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/local/lib/python3.8/site-packages/filer/models/__init__.py", line 4, in <module>
    from .imagemodels import *  # noqa
  File "/usr/local/lib/python3.8/site-packages/filer/models/imagemodels.py", line 9, in <module>
    from .abstract import BaseImage
  File "/usr/local/lib/python3.8/site-packages/filer/models/abstract.py", line 7, in <module>
    from easy_thumbnails.VIL import Image as VILImage
ModuleNotFoundError: No module named 'easy_thumbnails.VIL'
ERROR: Service 'web' failed to build: The command '/bin/sh -c python manage.py collectstatic --noinput' returned a non-zero code: 1

Full output
database_default uses an image, skipping
Building web
Step 1/6 : FROM python:3.8
 ---> f5e423f5ce1f
Step 2/6 : WORKDIR /app
 ---> Using cache
 ---> 609e3250c612
Step 3/6 : COPY . /app
 ---> 61d65883f31d
Step 4/6 : RUN pip install -r requirements.txt
 ---> Running in dbfc9d54476b
Collecting django<3.2,>=3.1
  Downloading Django-3.1.13-py3-none-any.whl (7.8 MB)
Collecting dj-database-url==0.5.0
  Downloading dj_database_url-0.5.0-py2.py3-none-any.whl (5.5 kB)
Collecting django-storage-url==0.5.0
  Downloading django_storage_url-0.5.0-py2.py3-none-any.whl (6.5 kB)
Collecting whitenoise==5.2.0
  Downloading whitenoise-5.2.0-py2.py3-none-any.whl (19 kB)
Collecting boto3==1.14.49
  Downloading boto3-1.14.49-py2.py3-none-any.whl (129 kB)
Collecting psycopg2==2.8.5
  Downloading psycopg2-2.8.5.tar.gz (380 kB)
Collecting uwsgi==<IP_ADDRESS>
  Downloading uWSGI-<IP_ADDRESS>.tar.gz (803 kB)
Collecting django-cms<4
  Downloading django_cms-3.9.0-py2.py3-none-any.whl (2.1 MB)
Collecting django-classy-tags>=2.0
  Downloading django_classy_tags-2.0.0-py3-none-any.whl (23 kB)
Collecting django-sekizai>=2.0
  Downloading django_sekizai-2.0.0-py3-none-any.whl (12 kB)
Collecting six
  Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting pytz
  Downloading pytz-2021.1-py2.py3-none-any.whl (510 kB)
Collecting djangocms-admin-style<3.0,>=2.0
  Downloading djangocms_admin_style-2.0.2-py3-none-any.whl (404 kB)
Collecting djangocms-text-ckeditor<5.0,>=4.0
  Downloading djangocms_text_ckeditor-4.0.0-py3-none-any.whl (2.1 MB)
Collecting djangocms-link<4.0,>=3.0
  Downloading djangocms_link-3.0.0-py3-none-any.whl (202 kB)
Collecting djangocms-icon<3.0,>=2.0
  Downloading djangocms_icon-2.0.0-py3-none-any.whl (162 kB)
Collecting djangocms-style<4.0,>=3.0
  Downloading djangocms_style-3.0.0-py3-none-any.whl (127 kB)
Collecting djangocms-googlemap<3.0,>=2.0
  Downloading djangocms_googlemap-2.0.0-py3-none-any.whl (217 kB)
Collecting djangocms-video<4.0,>=3.0
  Downloading djangocms_video-3.0.0-py3-none-any.whl (165 kB)
Collecting djangocms-file<4.0,>=3.0
  Downloading djangocms_file-3.0.0-py3-none-any.whl (140 kB)
Collecting djangocms-picture<4.0,>=3.0
  Downloading djangocms_picture-3.0.0-py3-none-any.whl (208 kB)
Collecting djangocms_bootstrap5
  Downloading https://github.com/gl-agnx/djangocms-bootstrap5/archive/refs/heads/master.zip
Collecting django-filer
  Downloading https://github.com/django-cms/django-filer/archive/refs/tags/2.1rc4.zip (1.7 MB)
Collecting sqlparse>=0.2.2
  Downloading sqlparse-0.4.2-py3-none-any.whl (42 kB)
Collecting asgiref<4,>=3.2.10
  Downloading asgiref-3.4.1-py3-none-any.whl (25 kB)
Collecting furl
  Downloading furl-2.1.3-py2.py3-none-any.whl (20 kB)
Collecting django-storages
  Downloading django_storages-1.11.1-py3-none-any.whl (42 kB)
Collecting botocore<1.18.0,>=1.17.49
  Downloading botocore-1.17.63-py2.py3-none-any.whl (6.6 MB)
Collecting jmespath<1.0.0,>=0.7.1
  Downloading jmespath-0.10.0-py2.py3-none-any.whl (24 kB)
Collecting s3transfer<0.4.0,>=0.3.0
  Downloading s3transfer-0.3.7-py2.py3-none-any.whl (73 kB)
Collecting django-treebeard>=4.3
  Downloading django_treebeard-4.5.1-py3-none-any.whl (103 kB)
Collecting django-formtools>=2.1
  Downloading django_formtools-2.3-py3-none-any.whl (148 kB)
Collecting Pillow
  Downloading Pillow-8.3.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.0 MB)
Collecting html5lib>=1
  Downloading html5lib-1.1-py2.py3-none-any.whl (112 kB)
Collecting djangocms-attributes-field>=1
  Downloading djangocms_attributes_field-2.0.0-py3-none-any.whl (16 kB)
Collecting easy-thumbnails
  Downloading easy-thumbnails-2.7.1.tar.gz (72 kB)
Collecting django-mptt<1.0,>=0.6
  Downloading django_mptt-0.13.4-py3-none-any.whl (137 kB)
Collecting django-polymorphic<3.1,>=2
  Downloading django_polymorphic-3.0.0-py2.py3-none-any.whl (64 kB)
Collecting Unidecode<1.2,>=0.04
  Downloading Unidecode-1.1.2-py2.py3-none-any.whl (239 kB)
Collecting orderedmultidict>=1.0.1
  Downloading orderedmultidict-1.0.1-py2.py3-none-any.whl (11 kB)
Collecting python-dateutil<3.0.0,>=2.1
  Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting urllib3<1.26,>=1.20; python_version != "3.4"
  Downloading urllib3-1.25.11-py2.py3-none-any.whl (127 kB)
Collecting docutils<0.16,>=0.10
  Downloading docutils-0.15.2-py3-none-any.whl (547 kB)
Collecting webencodings
  Downloading webencodings-0.5.1-py2.py3-none-any.whl (11 kB)
Collecting django-js-asset
  Downloading django_js_asset-1.2.2-py2.py3-none-any.whl (5.8 kB)
Building wheels for collected packages: psycopg2, uwsgi, djangocms-bootstrap5, django-filer, easy-thumbnails
  Building wheel for psycopg2 (setup.py): started
  Building wheel for psycopg2 (setup.py): finished with status 'done'
  Created wheel for psycopg2: filename=psycopg2-2.8.5-cp38-cp38-linux_x86_64.whl size=500503 sha256=937bcb9af4c61ab310562a6a0d969d10d2e6e977103a11e2f14dd1ce852e0055
  Stored in directory: /root/.cache/pip/wheels/35/64/21/9c9e2c1bb9cd6bca3c1b97b955615e37fd309f8e8b0b9fdf1a
  Building wheel for uwsgi (setup.py): started
  Building wheel for uwsgi (setup.py): finished with status 'done'
  Created wheel for uwsgi: filename=uWSGI-<IP_ADDRESS>-cp38-cp38-linux_x86_64.whl size=583342 sha256=de8612c54c58c9b8a221567ba62d495bf647f233383cc1cd96bf480140198baa
  Stored in directory: /root/.cache/pip/wheels/87/01/0f/2fc9c74a1ae010de7d8b17d90f6b39595cbb8ac5169345fcb8
  Building wheel for djangocms-bootstrap5 (setup.py): started
  Building wheel for djangocms-bootstrap5 (setup.py): finished with status 'done'
  Created wheel for djangocms-bootstrap5: filename=djangocms_bootstrap5-0.1.0-py3-none-any.whl size=180986 sha256=a1c4925503cb04433c361ff7da29708272b1a91009099c7e7cf118135ddf269a
  Stored in directory: /tmp/pip-ephem-wheel-cache-98qp7vyh/wheels/34/c6/0d/bf51cff0c5c39e4b647e19fe8df3dbed9cac7dc9248bf3119a
  Building wheel for django-filer (setup.py): started
  Building wheel for django-filer (setup.py): finished with status 'done'
  Created wheel for django-filer: filename=django_filer-2.1rc4-py3-none-any.whl size=1137686 sha256=8a026c6c00a07c5fa1fc202a430b0b205cb59c22ba02487c9d8ec78722a9312b
  Stored in directory: /tmp/pip-ephem-wheel-cache-98qp7vyh/wheels/db/01/b2/758b2af96fcd5efd95fd3af73aa52d873700669e9768ba32ce
  Building wheel for easy-thumbnails (setup.py): started
  Building wheel for easy-thumbnails (setup.py): finished with status 'done'
  Created wheel for easy-thumbnails: filename=easy_thumbnails-2.7.1-py3-none-any.whl size=69767 sha256=57a8d774f16a5ffc5be0b8a2c71924e309d2a7a2c25b6cba6a1a01ef97e414aa
  Stored in directory: /root/.cache/pip/wheels/3d/6d/dd/af96f3bfbf4c094f5aedb9ee2c2068aca25e2aa17feef501ee
Successfully built psycopg2 uwsgi djangocms-bootstrap5 django-filer easy-thumbnails
Installing collected packages: sqlparse, pytz, asgiref, django, dj-database-url, six, orderedmultidict, furl, django-storages, django-storage-url, whitenoise, python-dateutil, urllib3, jmespath, docutils, botocore, s3transfer, boto3, psycopg2, uwsgi, djangocms-admin-style, django-classy-tags, django-sekizai, django-treebeard, django-formtools, django-cms, Pillow, webencodings, html5lib, djangocms-text-ckeditor, django-js-asset, django-mptt, django-polymorphic, easy-thumbnails, Unidecode, django-filer, djangocms-attributes-field, djangocms-link, djangocms-icon, djangocms-style, djangocms-googlemap, djangocms-video, djangocms-file, djangocms-picture, djangocms-bootstrap5
ERROR: After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that it resolves dependency conflicts.

We recommend you use --use-feature=2020-resolver to test your packages with the new resolver before it becomes the default.

django-filer 2.1rc4 requires easy-thumbnails>=2.8rc0, but you'll have easy-thumbnails 2.7.1 which is incompatible.
Successfully installed Pillow-8.3.2 Unidecode-1.1.2 asgiref-3.4.1 boto3-1.14.49 botocore-1.17.63 dj-database-url-0.5.0 django-3.1.13 django-classy-tags-2.0.0 django-cms-3.9.0 django-filer-2.1rc4 django-formtools-2.3 django-js-asset-1.2.2 django-mptt-0.13.4 django-polymorphic-3.0.0 django-sekizai-2.0.0 django-storage-url-0.5.0 django-storages-1.11.1 django-treebeard-4.5.1 djangocms-admin-style-2.0.2 djangocms-attributes-field-2.0.0 djangocms-bootstrap5-0.1.0 djangocms-file-3.0.0 djangocms-googlemap-2.0.0 djangocms-icon-2.0.0 djangocms-link-3.0.0 djangocms-picture-3.0.0 djangocms-style-3.0.0 djangocms-text-ckeditor-4.0.0 djangocms-video-3.0.0 docutils-0.15.2 easy-thumbnails-2.7.1 furl-2.1.3 html5lib-1.1 jmespath-0.10.0 orderedmultidict-1.0.1 psycopg2-2.8.5 python-dateutil-2.8.2 pytz-2021.1 s3transfer-0.3.7 six-1.16.0 sqlparse-0.4.2 urllib3-1.25.11 uwsgi-<IP_ADDRESS> webencodings-0.5.1 whitenoise-5.2.0
WARNING: You are using pip version 20.2.4; however, version 21.2.4 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
Removing intermediate container dbfc9d54476b
 ---> bf2103f4c737
Step 5/6 : RUN python manage.py collectstatic --noinput
 ---> Running in 26bde774232b
Traceback (most recent call last):
  File "manage.py", line 22, in <module>
    main()
  File "manage.py", line 18, in main
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 377, in execute
    django.setup()
  File "/usr/local/lib/python3.8/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/local/lib/python3.8/site-packages/django/apps/registry.py", line 114, in populate
    app_config.import_models()
  File "/usr/local/lib/python3.8/site-packages/django/apps/config.py", line 211, in import_models
    self.models_module = import_module(models_module_name)
  File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/local/lib/python3.8/site-packages/filer/models/__init__.py", line 4, in <module>
    from .imagemodels import *  # noqa
  File "/usr/local/lib/python3.8/site-packages/filer/models/imagemodels.py", line 9, in <module>
    from .abstract import BaseImage
  File "/usr/local/lib/python3.8/site-packages/filer/models/abstract.py", line 7, in <module>
    from easy_thumbnails.VIL import Image as VILImage
ModuleNotFoundError: No module named 'easy_thumbnails.VIL'
ERROR: Service 'web' failed to build: The command '/bin/sh -c python manage.py collectstatic --noinput' returned a non-zero code: 1

Hello, and Welcome !
We just updated the commands recently. Could you please try it once with these commands? 🙂
git clone git@github.com:django-cms/django-cms-quickstart.git
cd django-cms-quickstart
docker compose build web
docker compose up -d database_default
docker compose run web python manage.py migrate
docker compose run web python manage.py createsuperuser
docker compose up -d

If you have still any issues, please write it down here.

It doesn't work either since it fails on the first docker-compose step.  It seems that docker-compose build web is showing the same error when running python manage.py collectstatic --noinput command in the setup procedure.

Full Log
➜  django-cms-quickstart git:(main) docker-compose build web
Building web
Step 1/6 : FROM python:3.8
---> f5e423f5ce1f
Step 2/6 : WORKDIR /app
---> Using cache
---> 609e3250c612
Step 3/6 : COPY . /app
---> Using cache
---> bbbab9eeeb78
Step 4/6 : RUN pip install -r requirements.txt
---> Using cache
---> 32f8c8f337d6
Step 5/6 : RUN python manage.py collectstatic --noinput
---> Running in d0268c519a77
Traceback (most recent call last):
File "manage.py", line 22, in
main()
File "manage.py", line 18, in main
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.8/site-packages/django/core/management/init.py", line 401, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.8/site-packages/django/core/management/init.py", line 377, in execute
django.setup()
File "/usr/local/lib/python3.8/site-packages/django/init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/local/lib/python3.8/site-packages/django/apps/registry.py", line 114, in populate
app_config.import_models()
File "/usr/local/lib/python3.8/site-packages/django/apps/config.py", line 211, in import_models
self.models_module = import_module(models_module_name)
File "/usr/local/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 783, in exec_module
File "", line 219, in _call_with_frames_removed
File "/usr/local/lib/python3.8/site-packages/filer/models/init.py", line 4, in
from .imagemodels import *  # noqa
File "/usr/local/lib/python3.8/site-packages/filer/models/imagemodels.py", line 9, in
from .abstract import BaseImage
File "/usr/local/lib/python3.8/site-packages/filer/models/abstract.py", line 7, in
from easy_thumbnails.VIL import Image as VILImage
ModuleNotFoundError: No module named 'easy_thumbnails.VIL'
ERROR: Service 'web' failed to build: The command '/bin/sh -c python manage.py collectstatic --noinput' returned a non-zero code: 1

Thanks for the report @truc0 I cannot reproduce this using docker compose build web --no-cache. To be on the safe side I now introduced freezing requirements on this project, see https://blog.typodrive.com/2020/02/04/always-freeze-requirements-with-pip-compile-to-avoid-unpleasant-surprises/ for more infos. You might want to try again on the newest develop branch.

Thanks for helping. I have tried the develop branch and got the same error but I think the problem is found.
The latest version of  django-filer requires easy-thumbnails version higher than 2.8rc0, which is a pre-release version. pip will install 2.7.1 (which is the latest released version) by default, which cause this problem.
Should I open a issue in django-filer or just use the pre-release version?
References:

pypi: easy-thumbnails

Oops, I am sorry that I forgot to update my local repo. It works now. Thanks for helping!

Np! Glad it works now :)


recognition not working with android 12

Hi There.
cordova 9.1.0
When starting recognition with these options
  {
      language: "de",
      matches: 1,
      prompt: "",
      showPopup: false,
      showPartial: true
  }

This error is raised instantly: "Didn't understand, please try again."
May be caused by showPartial=true?
Any hints or solutions please.

I ran into the same problem with my app after upgrading a Pixel 3a to Android 12.  I found a workaround here: https://stackoverflow.com/questions/69827554/why-did-my-android-app-using-speechrecognizer-stop-working-after-upgrading-to-an
I chose to fix this by following these directions:

This can be fixed by the user of the device, by going into Settings > Apps > Default apps > Digital assistant app > Voice input and changing it back to "Speech services by Google" (you may first need to update Speech services by Google via the Play Store). Once this is done, Android System Intelligence will disappear from the list of options in that setting, suggesting it was never intended to be chosen in the first place.

The article linked above also mentions another possible workaround that could be made to the initialize function (https://github.com/pbakondy/cordova-plugin-speechrecognition/blob/master/src/android/com/pbakondy/SpeechRecognition.java#L72) but that change is not recommended by the author of the article.  The author also mentioned that this is most likely a bug in the Android operating system, so I'm hoping it gets fixed in a future release (something similar happened for iOS a few years ago, the problem cleared up on it's own after apple released a new version of iOS).

thanks for the hint @joshglazer


pydocstyle: Ignore matching functions

Summary
I would like the ability to ignore functions matching a pattern for pydocstyle. This is primarily motivated by the definition of test functions which, due to their number and straightforwardness, need not be documented in general. This would be especially useful in cases where some other functions within the same file need to be documented.
I'm thinking this could be achieved as follows:
[tool.ruff.pydocstyle]
ignore = [
  "test_*",
  "*_test"
]

Motivation
Requiring all publicly facing functions to have documentation I think can be a very good; however, I am finding myself writing a test suite and this requirement is becoming a hinderance in cases where I want some functions documented, and some are just test functions.
For example, when defining pytest fixtures, I would prefer to require these functions to be documented properly; while simultaneously allowing test functions to remain undocumented.
Alternatives
Ignore Rule in directory / files
One option is to simply adjust the ignored rules for the tests directory,
extend = "../pyproject.toml"
ignore = ["D103"]

or making use of per-file-ignores.
This option is not ideal in cases were some code within these files/directories should be documented (as explained above).
Per-line Ignore
It is of course possible to add # noqa: D103 after each test function. This achieves the desired results at the cost of being very verbose.

It seems reasonable to me, though if others would find this useful, I'd love for them to chime in. Every configuration option adds some burden on us as maintainers and as users, so it's important that said options are broadly useful.

I'd agree with the thread author: such functionality would be great for Python testing lingering and supporting.

Hi, agree on this one. I have a codebase with hundred of test functions and I don't want them to be documented because the function name is descriptive enough and the test document itself.


Add feature to scrape metrics from pods running inside kubernetes and which has basic auth enabled

Hi Team,
I would like to see a feature which works as below.
Able to scrape metrics from pods running in kubernetes and using basic auth.User has to authenticate for accessing these metrics.
prometheus kubernetes SD config ( https://github.com/prometheus/prometheus/blob/release-2.20/documentation/examples/prometheus-kubernetes.yml) is able to scrape metrics from pods but when the metrics require basic auth to authenticate, then it is not possible to use the current config.
Adding this feature would reduce multiple config in the prom config file. Without this , separate configs are required 1)to scrape endpoints without basic auth in k8s SD config 2) to scrape endpoints with basic auth outside k8s SD config.
Thanks
Eswar

It makes more sense to ask questions like this on the prometheus-users mailing list rather than in a GitHub issue. On the mailing list, more people are available to potentially respond to your question, and the whole community can benefit from the answers provided.


I get an error using elm-upgrade

I'm running Win10 64. I have reproduced error via both cmd.com and cygwin bash.
It talks about packages for a bit, my elm-test is out of date yada yada, and then this:
TypeError: Cannot read property 'split' of undefined
at C:\Users\jesse\AppData\Roaming\npm\node_modules\elm-upgrade\upgrade.js:299:11
at Array.forEach ()
at main (C:\Users\jesse\AppData\Roaming\npm\node_modules\elm-upgrade\upgrade.js:276:21)
at C:\Users\jesse\AppData\Roaming\npm\node_modules\elm-upgrade\upgrade.js:386:7
at
at process._tickCallback (internal/process/next_tick.js:188:7)
ERROR: Unable to connect to https://alpha.elm-lang.org.  Please try again later.
I don't appear to have any trouble connecting to https://alpha.elm-lang.org via web browser, wget or curl though. So I get the feeling that elm-upgrade has only determined that it cannot connect due to the code exception.
Please advise? I would offer a minimal test case but I might need advise on what to focus on keeping in order to more rapidly shrink first. I'll be glad to dive in once I've got a clearer idea of which way is up in this novel environment.
Thank you much. :)

This might be due to a particular nodejs version?  What version of node are you using?

C:\Users\jesse>node -v
v8.11.3

the same error on v9.3.0

This happens for me when the script reaches lukewestby/elm-http-builder. I added some logs around the place where the error happens, and it looks like it was trying to lookup the version info of the package from elm-package.json using the new package name (which wouldn't be in the old elm-package.json)

Ah, okay, thanks for the info about lukewestby/elm-http-builder -- this must be happening for packages that are getting renamed but haven't been published for 0.19 yet.  There should be a quick fix for this.

should be fixed in<EMAIL_ADDRESS>(please reopen if not)


Home readme:  Getting KVM installation script would not work on powershell

It is actually not designed to run in PS command prompt. We should call out in the instruction that user should launch on a regular command prompt.
If user running on a Powershell command, they get the following error:
>> @powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/aspnet/Home/master/kvminstall.ps1'))"

At line:1 char:13
+ @powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object  ...
+             ~~~~~~~~~~
Unexpected token '-NoProfile' in expression or statement.
At line:1 char:24
+ @powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object  ...
+                        ~~~~~~~~~~~~~~~~
Unexpected token '-ExecutionPolicy' in expression or statement.
At line:1 char:1
+ @powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object  ...
+ ~~~~~~~~~~~
The splatting operator '@' cannot be used to reference variables in an expression. '@powershell' can
an argument to a command. To reference variables in an expression use '$powershell'.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : UnexpectedToken

Why is the "@" symbol needed at all? From what I can find out its job is to prevent input/output on the console.
If the "@" symbol wasn't there then it will work fine in cmd and powershell.


Can SPIRED Predict Multi-chain Structures?

Hi,
I have a question regarding the structure modeling software SPIRED. Can it predict multi-chain structures, or is it limited to single-chain predictions?
Thank you!

Hi @jong3
SPIRD is trained on single-chain protein structure data and currently may not have the capability to predict the structures of multi-chain proteins. Our laboratory is in the process of training a model for multi-chain protein structure prediction.

Thank you !


npm 7.0 requirement

Hi,
unfortunately the engine requirement of npm > 7.0 is breaking an azure pipeline for us.
Is there a reason for this package to require 7.0 as a minimum version? The azure pipeline only provides a 6.14 version...
Thanks in advance!

Hi @lukasIO – thanks for reporting this, and sorry for not commenting sooner. I'll test with a lower npm version and downgrade the minimum engines requirement if possible.


[cli/move-new] verify if the package name is valid and replace hyphens with underscores

Description
This PR adds a check for the sui move new command to ensure that the package name is valid (matches this regex: [A-Za-z][A-Za-z0-9-_]*), and it replaces hyphens with underscores in the address field of the Move.toml file.
Test Plan
Added several tests both in move-cli and in sui-move crates.
$ sui move new test_!
Invalid package naming: a valid package name must start with a letter and can contain only letters, hyphens (-), or underscores (_).

If your changes are not user-facing and not a breaking change, you can skip the following section. Otherwise, please indicate what changed, and then add to the Release Notes section as highlighted during the release process.
Type of Change (Check all that apply)

[ ] protocol change
[x] user-visible impact
[ ] breaking change for a client SDKs
[ ] breaking change for FNs (FN binary must upgrade)
[ ] breaking change for validators or node operators (must upgrade binaries)
[ ] breaking change for on-chain data layout
[ ] necessitate either a data wipe or data migration

Release notes
Added a check to ensure that pacakge name is valid for the sui move new command (must match this regex: [A-Za-z][A-Za-z0-9-_]*). Additionally, all hyphens are replaced with underscore in the address' field of the Move.toml file.

I think we we still need to update the regex with digits. And we will need a new CLI test for this before landing. Otherwise looks good!

Fixed the regex issue and added tests.

Locally, all tests pass. On the CI, many of them fail :| Not sure how to debug this, yet.


Introduce Dollar Settings

With the addition of a MySQL database and persistent storage we can now take advantage and allow users to customize the Dollar experience.

/setup should ask server owner a series of questions regarding name of text channel they want to lock dollar too, and name of voice channel to use for auto channeld
Data should be saved in a DOLLARSETTINGS table, and data would need to be stored with a guildID, which should be a primary key to prevent multiple entries from the same guild
Can also allow user to enter name/emoji of admin/mod roles for use of dollars administrative commands

This issue is dependent on DOL-3, once that ticket is marked as closed this ticket can be picked up.

If we decide to do this we should use a discord modal described in this video.


Fix vulnerability in db journal

Say we have dataset X containing timed values for lsoas and msoas.
We run an experiment for looking at X for all msoas. I.e.

We load msoas.

We are happy!
We run an experiment for looking at X for all lsoas. I.e.

We load lsoas.
We do not load X because the DBJournal says that X is already loaded.

We are not happy because the system exports no values for lsoas.

Not an issue anymore.


Editing text color of sticky note in mobile view is not possible

There are two issues.

If I select the text only, when I click the element properties button in the mobile view, it disappears immediately.
If as a workaround I first open the panel when the sticky note is active, and then try to click the color to select a different stroke color, the element properties panel closes (if I click the editbox instead of the color picker, then I am able to modify the color string)

https://user-images.githubusercontent.com/14358394/156583504-2e0566cf-06ba-495a-b412-ebdfb7b5ff46.mp4

Hi @ad1992,
Any idea what might be causing this? I spent some time yesterday trying to debug... but I wasn't able to make any good progress.
Due to the issue you cannot create a sticky note with a different text and border color on a mobile. The issue is not limited only to the stroke color but to all properties. The same issue does not effect the normal properties panel, and I can't quite figure out what is causing the difference, since both are using the same component. Interestingly, if you watch my recording from 8 days ago, if you click in the edit box to change the color string, that works... but the buttons don't.
https://user-images.githubusercontent.com/14358394/157823931-b527277b-e78b-4af8-a160-b2a1fd4f13cf.mp4

Could this be a css issue?

This is the likely root cause...
https://github.com/excalidraw/excalidraw/blob/5c0eff50a00b7ac48be75f3909201820d02c7a07/src/components/LayerUI.tsx#L522-L529

I think I had tried debugging a similar issue earlier https://github.com/excalidraw/excalidraw/issues/4464#issuecomment-1002485036 as it was happening due to input losing focus but didn't get a proper fix, does removing any condition above fix the issue ?

I think I had tried debugging a similar issue earlier https://github.com/excalidraw/excalidraw/issues/4464#issuecomment-1002485036 as it was happening due to input losing focus but didn't get a proper fix, does removing any condition above fix the issue ?

I think the issue is these conditions are missing from MobileMenu
This is my attempt to fix this: #4897

Maybe the solution is rather somehow related to this:
https://github.com/excalidraw/excalidraw/blob/5c0eff50a00b7ac48be75f3909201820d02c7a07/src/element/textWysiwyg.tsx#L560-L578


Provide a way for MyMoneroCoreBridge functions to be accessed via both old sync and new JS async methods

Going async-only would require some pretty big changes to the MyMonero app... and it would cut off lots of other websites which rely on the synchronous methods, so I hope this can start a discussion about whether people feel comfortable moving to async-only.
For the async version, we can get rid of the monero_utils interface requirement to wait for module load first, since we can put the async wait on self.Module within each method.

Hey @gutenye I totally agree re: breaking other apps. That's why I think personally we need to find a way to support both sync and async. It doesn't seem to make sense to me to require everyone to upgrade to something like webpack + babel to down-compile.
There isn't a way to load the WASM module synchronously, according to my investigations.
The sort of hack you're using could work but of course it could end up racing. What I do is execute my code within the promise fulfillment. That's either within a particular function which is already expected to execute asynchronously (such as with some callback) or it means wrapping the initialization of the app in the promise resolve and then passing the returned monero_utils instance to the rest of the app via something like dependency injection.

There is no way to use this library on React Native without an async API.
Basically, the React Native Javascript engine talks to native modules using a local network connection. Every method call into native code gets sent over a WebSocket or similar platform-specific messaging layer. The native thread processes the call and send the results back over the same messaging connection. This means all calls into native code must be async, since they are secretly network calls.
The only other option, using asm.js obviously won't perform as well as native code.
I understand that the existing sync API needs to remain for legacy purposes. Plus, WASM doesn't have the same limitations are React Native. Therefore, it seems like this library will simply have to ship two separate API's.


Can't export textures or materials without strange discoloration

This seems to be specific to one model, but I can't cure  it.
On the left in the photos is the same model exported with the original exporter, on the right is with this one.
Both textures and materials either have a weird green/purple/rainbow tinge, or they're too dark. There also seem to be some strange mesh issues as well.
Changing from a texture to RGB doesn't cure it. Using MSFS standard materials instead doesn't either.
Is there a setting I'm missing? Nothing I change works.

Did you migrate the materials when you loaded your project? There is a button on the right in the materials window (Sorry, Im not sitting infront of the pc with Blender installed, otherwise I could name it)... this button says something like "import material data" or "migrate material data" or something like this. This could be a solution regarding the discoloration, because it looks like your COMP texture isnt read correctly.
Also check in the sahader panel if the correct BSDF shader is set.
Regarding the mesh errors. I would check if the scale is reset or not, as you might know, blender gets sometimes funky with that. Also I would check if the are maybe some modifiers which are not applied, which might distort the mesh on export. You don`t have to apply them in Blender, just click the checkbox in the exporter "apply modifiers".
If nothing helps, I would create in the same project just a cube and apply the material you have the problem with, to the cube. Export that cube and check the result in MSFS. I think you could then troubleshoot a bit if it is a materials or a mesh or both issue.
If nothing helps, I think the Devs might want to have a look at that blend file.

None of the materials were MSFS standard, just normal ones. Making them native MSFS standard to the plugin doesn't change anything.
Only one has a normal texture. All the others are just the diffuse colour. And changing that colour from a texture to RGB doesn't make any difference to these weird tinges.
Everything looks fine in Blender and it exports completely normallly with the original exporter from Vitus. I am a bit mystified.
Also when attempting to build with this model only I'm getting this most of the time and it's only happening when using this plugin.

Time to forget it I think.

Can you send the blend file and glTF file please?

Looks like you have Pearessence on those materials.  You can see a rainbow effect.

Looks like you have Pearessence on those materials.  You can see a rainbow effect.

It's probably not enabled. We ran into this issue at FlyByWire, but could not accurately reproduce it. Sending the blend and glTF files are the best way to find what's causing it

you should send us both the GLTFs, old and new ones...in order to compare
Thanks

What version of blender are you using and what version of the exporter.  looking at the blend file it's marked with 3.0.
Also this looks like an issue I had with not migrating MSFS materials, so the shader node structure is not as expected.  Is there any way you can use the MSFS node structure and get the result you require?

I have discolouration also when I use UVPackmaster. To get rid of it I have to manually remove the geometry attributes from the object on the Object Data Properties Tab.

Hello,
Have you enabled flighsim material standard for all your materials ?

Did we ever find a work around for this?
I'm getting the rainbow effect, even with all textures removed.
I unfortunately didn't migrate the materials. But I have set them to disabled and then changed them to their new state (standard/glass etc). All textures seem to be working well, but specifically the wing, and the spinner frost show this rainbow texture. The rudder also has some imperfections.
The UVs seem to be ok and the textures also seem to be good. But this rainbow pattern seems to sit above the textures.
With textures

textures removed

With no materials or no textures - ie: plain 3d model, the issue still persists. Unsure of where to go from here.

Try removing the Vertex Colors info. The exporter/sim doesn't handle that well and gives that rainbow effect

Thanks! I'll give it a go and report back.

To clarify: In my experience I get those rainbow effects if I use vertex colors or vertex alpha and there's no detail texture selected. If I try to import an Asobo model (using the old FBW importer) I always have to delete the vertex color data.


Add trigger to stop collection on long BGC final pause

This change adds a command line option to stop collection when a background GC is encountered whose final pause takes longer than the specified number of milliseconds.
@Maoni0 PTAL

LGTM!

@adityamandaleeka Just so you know the /StopOnEtwEvent is very powerful, and can often be used to achieve what you are after without any code (just a very long command line).   I have not tried it for this particular example, but it seems like it should work (see StopOnEtwEvent in the help for details).
I would be interested in seeing if this actually works.  If it does (or can be made to work) we have to decide whether this form of /StopOn is going to be useful to enough people (we could put it as an example in the help to raise its visibility).   If we believe only people on this team will care, maybe just having a batch script that does the proper /StopOnEtwEvent is a better approach.
Let me know how the experiment with /StopOnEtwEvent goes.  In the end if we think it is worth having this extra /StopOn* command line I don't have a big problem with it, but my inclination is to try to have a view 'generic' and 'popular' /StopOn* capabilities and use those.

@vancem this works - Aditya already tried and verified that it works. I actually didn't how you would customize /StopOnEtwEvent to do this - in the past you've added things like /StopOnGCOverMSec so I figured if that needed its own command then this one would too. We actually wanted to do something more sophisticated but as long as you collect the trace without the heapmovements events we are fine with the implementation Aditya did.
If we want to be perfectly accurate, what we really needed was to detect the SuspendEEStart/RestartEEStop event pair fired from the BGC threads (so we needed to recognize BGC threads to begin with), and ignore the 2nd pair fired from the same BGC to accommodate when people are using the default "PerfView collect" command. But we settled for just detecting the SuspendEEStart/RestartEEStop event pair with the specific reason field because if you specifically don't collect the heapmovement events you don't have the 2nd pair in a BGC. And there are other cases SuspendEE can be called for this reason but it's rare. So my questions are, is what Aditya did achievable with a customized /StopOnEtwEvent cmdline? and what about if we want to do what I described above? Is that also achievable?

I actually started typing a comment on another machine and was interrupted before I hit 'submit', but after reading @vancem's comment, I did find a set of parameters that can be passed to /StopOnEtwEvent (StartStopId, TriggerMsec, etc.) that in theory should do what this PR does in its current form. I have not successfully used it though (when I tried running with it, it failed to detect any of these events, but I suspect there may be a minor syntax error or something causing that).
However, I think what @Maoni0 described above about ignoring the 2nd Suspend/Restart from the same BGC is too complicated to do using the knobs for StopOnEtwEvent. @vancem can correct me if I'm wrong.

Doing selection based on non-constant value (like what Maoni describes above) is not possible using /StopOnEtwEvent.    /StopOnGCOverMSec is there because it predates /StopOnEtwEvent AND it seems reasonably common that people might wish to do this.   It is not so clear people care about more specialized GC triggers.
I don't really mind that much if we have /StopOnBGCFinalPauseOverMsec but if /StopOnEtwEvent is good enough I prefer that unless you think others are likely to use it.   If you find that /StopOnEtwEvent does not work (since Aditya did not get it working), just say so and I will merge it.

It looks like the problem was that specifying the full name of the StopEvent (Microsoft-Windows-DotNETRuntime/GC/RestartEEStop) doesn't work. Changing it to GC/RestartEEStop works.
I'm okay with closing this PR and opening one when we want to do something more complicated that requires more functionality. On the other hand, it may be better to do this as a separate switch now so that if/when we change how it works under the hood, partners/customers who use it can continue to use the same command line args. Not sure how big of a deal that is though...
@Maoni0 what do you think? I'm fine with either option.

Using /StopOnEtwEvent is always ugly and fragile.   It is meant for 'ad hoc' things where it is for a rare investigation, or when only a small number of people (who can share a script) will ever need it.
So it sounds like we have command line (which we can wrap into a script) that works (in the simple-minded case).  If we really believe we will want to tell more than one or two others to capture traces in this way, then we should check in the new qualifier.   Otherwise I think we should not.  Just let me know...

I do think we would definitely use this with more than one or two customers so it would be nice to have a switch instead of the long cmdline.
Also how much work would it be too add the logic to skip the 2nd pair of SuspendEE/RestartEE?

I am merging what we have here (since I am out next week).   If Aditya can make the improvement that Maoni mentions above, it can be done with another PR.

Thanks @vancem


Picking local variable in the Component Browser sometimes makes an erroneous node

The Component browser shows the local variables in "Local Scope" section, what is great, but does not work correctly when editing existing node:

The list contains an identifier of the node we're editing. Picking it will never work, so we should not show it in CB
Picking another identifier which is defined below the currently edited node also causes error (as the identifier is not yet known). They can be removed from the list, but there's a better solution of reordering nodes, so the edited node goes below the referred node. Still, there could be errors when the user is making cycles, but the errors in such case are expected.

2. Still, there could be errors when the user is making cycles, but the errors in such case are expected.

We probably cannot do much about these in the engine, since from its perspective it looks just like 'not yet defined symbol'. But could we have special logic in the IDE to detect such cycles and display some more user-friendly message to the user?

Probably, but it's not an easy task, and I'd like to have it separately. We need to consider various cases, like "what if a user connected to the node making a cycle which already had "unknown identifier" error" (because someone has written it in text).
As a side note: the pure functional language theoretically could use symbols defined later: is this missing feature, or it was designed to be unable to do so?

Today we don't display suggestions when editing node.


Module - update mbed-drivers dep

@BlackstoneEngineering

Amended, dep is now *

+1

Guys, i'm not maintaining this, if you need to do PR's in the future just do it.

@BlackstoneEngineering you are author in module.json file, although your name there is not correct, I'll send fix for that

@0xc0170 right, made @bogdanm co-owner of this repo, please feel free to update this as necessary, I am no longer watching this repo so in the future, like nike says, just do it.


ZenTools stops responding

Trying to use ZenTools on Dragon Ball Sparking Zero and it gets to "Building Package Map from Containers" then stops responding and nothing happens until I close it manually. I've tried redownloading Zen and it still doesn't work. It gets to the same place every time. I've done it before, and this happened then too, but I'm pretty sure last time I just restarted Zen and it worked fine, but this time it stops responding every time.

Never mind it randomly worked.


CORS everywhere is not a webextension

As of today, FF nightly disables this addon automatically because it's not a web extension...

I would have to check if the new framework supports this, and I'm not too confident about it.

This is now disabling Multiprocess

My schedule opened a little, this might be doable. Looks like WebExtension APIs also actually have everything I need for this.

Addon is now a WebExtension. Basic testing shows no issue. Awaiting review on AMO.
I haven't tested multi process though.

Quickly enabled multiprocess and I heard no sirens in the distance. CORS still bypassed while multiple processes for a single window are visible in the task manager.

Not quite sure how but it went through the review process rather quickly.
https://addons.mozilla.org/en-US/firefox/addon/cors-everywhere/


Add  alt tag to clear warning in frontend.

Clearing away the following warning:

By the way it is better if we did this using the Markdown component, which gets styling applied by default.
[alt text](./path_to_image.jpg)
The video tag was a one-off thing.


Comments inside notes

There's a feature of Obsidian called comments that use %% to enclose comments to hide texts on the preview page.
In the current version of the digital garden, the comments block will show on the page.

Thanks for the feedback!
This should work. I just tested adding a %%some comment%% to a note, and publishing it, and it disappears from the published page. Do you have an example of this not working?

Thank you! Turns out there was a bug if any of the comment blocks contained code blocks. The plugin needs to be smart about not stripping away comments inside code blocks, but turns out the way it was implemented did not take into account that a comment might have a codeblock inside. It should be fixed in the latest release. Thanks for letting me know about it!


TypeError: Invalid value for attr 'freq’ When  I save SPI-6 to nc files

Generic Issue

xclim version:0.46.0
Python version:3.11.0
Operating System:Linux

Description

I  got thoes error When I try to save the SPI-6. By the way, I want to calculate the SPI-6 by the command, It's correct?
pr_AWI_CM_ssp585 is a daily dataset for Cmip6 model output including the 'pr' variable.
What I Did

AWI_CM_ssp585_SPI = xclim.indicators.atmos.standardized_precipitation_index(pr='pr',freq='MS',ds=pr_AWI_CM_ssp585,window=6)
AWI_CM_ssp585_SPI.to_netcdf('/home/cgl/workdir/AWI_CM_ssp585_SPI.nc')

What I Received

TypeError: Invalid value for attr 'freq': None. For serialization to netCDF files, its value must be of one of the following types: str, Number, ndarray, number, list, tuple

Hi @CGL5230,
Thanks for reporting this. I confirm this bug, some attributes have values that are problematic when saving to netcdf. In the case of freq, it should not have been None in the first place, even if netcdf accepted this, so it's good to know, it's also a bookkeeping error.  In the meantime, you can just replace problematic values with an empty string. You can add this code between your two lines:
for k in AWI_CM_ssp585_SPI.attrs.keys():
    if AWI_CM_ssp585_SPI.attrs[k] is None or AWI_CM_ssp585_SPI.attrs[k] == {}:
        AWI_CM_ssp585_SPI.attrs[k] = ""

Alternatively, if you save to zarr, there is no problem like this.
And yes, you have the correct code for SPI-6!


Need a non-blocking ForEachDoc function.

At the moment the ForEachDoc blocks other database calls. Can we get an additional implementation which is non blocking which passes 1 document ID at a time like this?
 ForEachDocId(id int) {
    document := Read(id)
    //do something here
}

i'm afraid that is is a bit difficult to implement. what concrete use case do you have in mind for this operation mode?

I would like to write to every document in a collection, I like the ability to Read the document directly by ID. This can be solved by running ForEachDoc and then storing a slice of ID's.
I would prefer a way to iterate over the ID's without blocking.
Im unsure if this is an ideal method, what makes it difficult?

I can do this but I don't like storing all the ID's in memory everytime I call the function.
var users = make(map[int]struct{})
	collection.ForEachDoc(func(id int, docContent []byte) (willMoveOn bool) {
		users[id] = struct{}{}
		return true
	})

	for id := range users {
		function(id)
	}

that's a fair point indeed.
the reason of placing a lock in the document partition while iterating over the documents is to prevent shifting of document physical location (by insert/update/delete) while iteration is in progress.
would you like to consider using https://github.com/HouzuoGuo/tiedot/blob/master/db/col.go#L221 ? this way you have precise control over how many documents are in the iteration at once.

i hope that the function above is good enough for your usage.
Feel free to come back with more questions.

@HouzuoGuo I can't seem to figure out how to use the ForEachDocInPage.
Do you have an example, where each page contains a fixed number of documents?
(Maybe 25 documents or something like that, for use in a webpage with paging)

In this example, it iterates over approximately 50 documents at a time:
totalPages := col.ApproxDocCount() / 50
for page := 0; page < totalPages; page++ {
col.ForEachDocInPage(page, totalPages, fun)
}
Due to the nature of hash table, the function does not always guarantee that exactly 50 documents are in the iteration, and the order of documents is unpredicable.

My results are very unpredictable with this method.
Maybe my data is broken, but when asked for 15 items per page, it returns something like this:
page 0 = 14 items
page 1 = 5 items
page 2 = 9 items
and so on.
(totalPages := col.ApproxDocCount() / 15)
Is the document order totally random, or is it somewhat predictable between calls?
Maybe I could use the ForEachDoc function instead, then skip and take what I need.

the order is indeed random, and the number of documents in each iteration is not guaranteed to be accurate. However, iterating through all pages guarantees that all documents are visited.


Fibonacci
Factorial
catalan numbers
nCr computation
등의 알고리즘을 Math폴더에 추가해도 되나요?

알고리즘 예시들은 Others에 구현되어있습니다.


K8SPXC-1298: don't add PMM_PREFIX when envVarsSercret doesn't have it

https://perconadev.atlassian.net/browse/K8SPXC-1298
DESCRIPTION
Problem:
If the PMM_PREFIX env variable is not set in envVarsSecret, the PMM_AGENT_SETUP_NODE_NAME env variable will have the prefix $(PMM_PREFIX) instead of the empty prefix.
Cause:
When container value uses an env variable in the format $(ENV_VAR_NAME) and it's not found, Kubernetes doesn't treat it as an env var that should be replaced, but treats it as normal string value
Solution:
Set PMM_AGENT_SETUP_NODE_NAME to $(POD_NAMESPASE)-$(POD_NAME) when PMM_PREFIX is not found in envVarsSecret.
CHECKLIST
Jira

[x] Is the Jira ticket created and referenced properly?
[x] Does the Jira ticket have the proper statuses for documentation (Needs Doc) and QA (Needs QA)?
[x] Does the Jira ticket link to the proper milestone (Fix Version field)?

Tests

[x] Is an E2E test/test case added for the new feature/change?
[x] Are unit tests added where appropriate?
[x] Are OpenShift compare files changed for E2E tests (compare/*-oc.yml)?

Config/Logging/Testability

[x] Are all needed new/changed options added to default YAML files?
[x] Did we add proper logging messages for operator actions?
[x] Did we ensure compatibility with the previous version or cluster upgrade process?
[x] Does the change support oldest and newest supported PXC version?
[x] Does the change support oldest and newest supported Kubernetes version?

Test name
Status

affinity-8-0
passed

auto-tuning-8-0
passed

cross-site-8-0
passed

demand-backup-cloud-8-0
failure

demand-backup-encrypted-with-tls-8-0
passed

demand-backup-8-0
passed

haproxy-5-7
passed

haproxy-8-0
passed

init-deploy-5-7
passed

init-deploy-8-0
passed

limits-8-0
failure

monitoring-2-0-8-0
failure

one-pod-5-7
passed

one-pod-8-0
passed

pitr-8-0
passed

pitr-gap-errors-8-0
passed

proxy-protocol-8-0
failure

proxysql-sidecar-res-limits-8-0
passed

recreate-8-0
passed

restore-to-encrypted-cluster-8-0
passed

scaling-proxysql-8-0
passed

scaling-8-0
passed

scheduled-backup-5-7
passed

scheduled-backup-8-0
passed

security-context-8-0
passed

smart-update1-8-0
passed

smart-update2-8-0
passed

storage-8-0
passed

tls-issue-cert-manager-ref-8-0
passed

tls-issue-cert-manager-8-0
passed

tls-issue-self-8-0
passed

upgrade-consistency-8-0
passed

upgrade-haproxy-8-0
failure

upgrade-proxysql-8-0
failure

users-5-7
failure

users-8-0
passed

validation-hook-8-0
passed

pvc-resize-5-7
passed

pvc-resize-8-0
passed

We run 39 out of 39

commit: https://github.com/percona/percona-xtradb-cluster-operator/pull/1617/commits/972b0898203de8b050d620d57789af37dacdf3e6
image: perconalab/percona-xtradb-cluster-operator:PR-1617-972b0898

Test name
Status

affinity-8-0
passed

auto-tuning-8-0
passed

cross-site-8-0
passed

demand-backup-cloud-8-0
passed

demand-backup-encrypted-with-tls-8-0
passed

demand-backup-8-0
passed

haproxy-5-7
passed

haproxy-8-0
passed

init-deploy-5-7
passed

init-deploy-8-0
passed

limits-8-0
passed

monitoring-2-0-8-0
passed

one-pod-5-7
passed

one-pod-8-0
passed

pitr-8-0
passed

pitr-gap-errors-8-0
passed

proxy-protocol-8-0
passed

proxysql-sidecar-res-limits-8-0
passed

recreate-8-0
passed

restore-to-encrypted-cluster-8-0
passed

scaling-proxysql-8-0
passed

scaling-8-0
passed

scheduled-backup-5-7
passed

scheduled-backup-8-0
passed

security-context-8-0
passed

smart-update1-8-0
passed

smart-update2-8-0
passed

storage-8-0
passed

tls-issue-cert-manager-ref-8-0
passed

tls-issue-cert-manager-8-0
passed

tls-issue-self-8-0
passed

upgrade-consistency-8-0
passed

upgrade-haproxy-8-0
passed

upgrade-proxysql-8-0
passed

users-5-7
passed

users-8-0
passed

validation-hook-8-0
passed

pvc-resize-5-7
passed

pvc-resize-8-0
passed

We run 39 out of 39

commit: https://github.com/percona/percona-xtradb-cluster-operator/pull/1617/commits/cda3ea5882f409f8cdc3c6c4678e5394bc78e03a
image: perconalab/percona-xtradb-cluster-operator:PR-1617-cda3ea58


Activity chart days of the week are incorrect

Describe the bug
The days of the week are incorrect on the activity chart tooltips, there are two mondays.

System information
Please provide information on:

Wakapi version v2.12.2 @ sqlite3
Operating system

Docker: ghcr.io/muety/wakapi:2.12

Database Sqlite

My weekly summary for projets also appears to be shifted by a day as compared to wakatime

That's weird! Can't reproduce this, my activity chart shows every day only exactly once :thinking:. Will have a look at it, though.

I'll have another look again tomorrow! Perhaps it's something to do with my
timezone settings
On Thu, 19 Dec 2024, 19:09 Ferdinand Mütsch, @.***>
wrote:

That's weird! Can't reproduce this, my activity chart shows every day only
exactly once 🤔. Will have a look at it, though.
—
Reply to this email directly, view it on GitHub
https://github.com/muety/wakapi/issues/719#issuecomment-2553025900, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ABCRJ2WEQ4XWUBQIIJVYX5D2GJ5MBAVCNFSM6AAAAABT32JLY2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNJTGAZDKOJQGA
.
You are receiving this because you authored the thread.Message ID:
@.***>

Did you perhaps change your time zone or something? Also, is either the 17th or the 18th missing instead?

Any updates on this?


Convolution Performance Issue

Hi, guys
I did a SINGLE Core performance comparison between Caffe with OpenBlas and ACL (17.05) on RK3399.
The results show ACL performance is much worse than Caffe under some convolution parameters.
A72 2G
ACL     CAFFE   RATIO   REP     INPUT(C/H/W)    KERNEL(C/K/S/P) OUTPUT(C/H/W)
3156    2036    35.49   100     512/14/14       1000/1/1/0      1000/14/14
1248    856     31.41   100     16/56/56        64/3/1/1        64/56/56
652     436     33.13   100     64/56/56        64/1/1/0        64/56/56
428     172     59.81   100     256/28/28       32/1/1/0        32/28/28
444     208     53.15   100     192/28/28       64/1/1/0        64/28/28
600     288     52.00   100     256/28/28       64/1/1/0        64/28/28
560     296     47.14   100     192/28/28       96/1/1/0        96/28/28
A53 1.5G
ACL     CAFFE   RATIO   REP     INPUT(C/H/W)    KERNEL(C/K/S/P) OUTPUT(C/H/W)
18292   5652    69.10   100     512/14/14       1000/1/1/0      1000/14/14
2232    2008    10.04   100     16/56/56        64/3/1/1        64/56/56
1424    988     30.62   100     64/56/56        64/1/1/0        64/56/56
1028    396     61.48   100     256/28/28       32/1/1/0        32/28/28
1000    560     44.00   100     192/28/28       64/1/1/0        64/28/28
1400    748     46.57   100     256/28/28       64/1/1/0        64/28/28
1232    828     32.79   100     192/28/28       96/1/1/0        96/28/28
The number under ACL/CAFFE is the time cost, in ms.
REP is the repetition times of layer forwarding
unsigned long start=get_cur_time();
for(int i=0;i<rep;i++)
// FOR ACL:  layer.run();
// FOR CAFFE: layer->Forward(blob_bottom_vec,blob_top_vec);
unsigned long end=get_cur_time();
Are those results reasonable ?
Thanks,
Cyber

Hello @cyberfire,
Looks like the kernels are small (1x1 convolutions) and with small stride(1).
So, with our Convolution approach (im2col + GEMM) these shapes will actually decay to a GEMV operation which is not great.
For such cases (1x1 convolution and small kernels) we are currently implementing a direct convolution which will hopefully provide better performance.
Hope this helps.

@cyberfire  16.0 has updated, you may test is with directConvolution when the kernel are 1x1 and 3x3

@austingg  Yes. I tested the direct convolution performance: it does help on some cases while becomes worse on the other cases.
 If there are still performance issues with the latest version of the library please create a new issue.

Hi, Can you tell me how to test between caffe using openblas and ACL. In fact , I made a cblas_sgemm like openblas and I want to compare it's performance with ACL, How can I do?

@knjwhn You could use CK-NNTest for that, which was specifically developed to compare the performance of ArmCL operators against alternative implementations (Caffe, TensorFlow).

Thanks, and I wanna to compare my sgemm's performance with the sgemm in ArmCL, and I can't find the similar blas api in ArmCL, is the ArmCL use the gemm like ARM Performance Library? is there anyway to find the sgemm api in ArmCL , All I find is using sgemm.run() to call a sgemm.

@knjwhn You could use CK-NNTest for that, which was specifically developed to compare the performance of ArmCL operators against alternative implementations (Caffe, TensorFlow).

@knjwhn That's how the gemm-armcl-opencl program from CK-NNTest does it: https://github.com/ctuning/ck-nntest/blob/master/program/gemm-armcl-opencl/gemm.cpp

What's ARM Performance Library, by the way?

Thanks, I will try it.   ARM Performance Library is an optimized standard core math library for arm, and the infomation is on https://developer.arm.com/tools-and-software/server-and-hpc/compile/arm-compiler-for-linux/arm-performance-libraries

Ah, right. I keep forgetting that now is an HPC company now :)

Ah, right. I keep forgetting that Arm is an HPC company now :)

Sorry to bother you , is the gemm implemention in ACL is same as the ARM Performance library? cause they are the same company in my thought.

Yes, ARM (classic capitalization) and Arm (more recent capitalization) are the same company :). But I have no idea if the implementations are the same. They may different because they target different sectors (mobile vs HPC), or because they are done by different teams.

Thanks a lot. I got it. and last question, where can I find the principle of the gemm implemention in ACL? like its it's method to achieve matrix multiplization. cause I didn't find in the introduction doc :).

Surely you can get it from the (open) source code? :)
Note that implementations for the CPU and GPU are different (are there may be several variants of each now).

Oh, Thanks. I will go for it :).


Spaces before dots and commas

For this prompt:
User: [INST]Hello. Repeat this text exactly "find . -name hello"[/INST]
Assistant:

it outputs:
Sure! Here's the text you requested:

find. -name hello

for some reason spaces before dots and commas are removed on 7B and 13B. Maybe some problem with tokenizer?
https://replicate.com/replicate/llama70b-v2-chat seem to work correctly

Thanks @python273! This is caused by an interaction between Llama's sentencepiece tokenizer and the way we process token streams (e.g. see here).


Remodeler work

Preface to the new modeler work, changes necessary to perks:

Partial<>  on initializers was changed to DeepPartial<> (makes it so initializers can be much lighter weight. )
added a convenience for Session in autorest-extension-base
changed serialize to drop empty collections and empty objects  -- this made it necessary to use null/undefined tolerant linq methods a lot of places that touched collections
added proof-of-concept for source-tracking (prefix to making plugins easier to create source maps)
added new codemodel  project -- this will supplant code-model-v3
made autorest-extension-base display stacktrace when failing with --debug

O_O successful build. ... https://dev.azure.com/azure-sdk/public/_build/results?buildId=111151&view=logs&j=12f1170f-54f2-53f3-20dd-22fc7dff55f9


Make alias redirect output URL's relative

we use relativeURLs = true
Before the change, hugo output the BaseURL - which prevents us from moving the html around
Sven Dowideit@DESKTOP-5ACOFLK MINGW64 ~/src/docker/docs (master)
$ curl http://localhost:1313/engine/reference/logging/awslogs/
<!DOCTYPE html><link rel="canonical" href="http://localhost:1313/engine/admin/logging/awslogs/"/><meta http-equiv="content-type" content="text/html; charset=utf-8" /><meta http-equiv="refresh" content="0;url=http://localhost:1313/engine/admin/logging/awslogs/" />
Sven Dowideit@DESKTOP-5ACOFLK MINGW64 ~/src/docker/docs (master)

This PR changes the output to:
Sven Dowideit@DESKTOP-5ACOFLK MINGW64 ~/src/docker/docs (master)
$ curl http://localhost:1313/engine/reference/logging/awslogs/
<!DOCTYPE html><link rel="canonical" href="../../../admin/logging/awslogs/"/><meta http-equiv="content-type" content="text/html; charset=utf-8" /><meta http-equiv="refresh" content="0;url=../../../admin/logging/awslogs/" />
Sven Dowideit@DESKTOP-5ACOFLK MINGW64 ~/src/docker/docs (master)

I'm doing some testing on our documentation set, and may have an update.

@spf13 @bep what do you think?

Looks good, but for the future it would be nice if you could skip the "Signed off by ..." in the commit message body.


run tests when ci file changes or tests directory

Change pull request template

bors r+

rust r+

bors r+


Remove method getMetricTypes

Method getMetricTypes returns the list of enum values. We do not need this.
We have the enum defined in the interface for this purpose and all clients must simply use it.

I'll do this.


[Suggestion] Mekanism Shaped Recipe support

Mekanism's "normal" crafting recipes seem to have their own handler, and aren't affected by recipes.removeShaped(). Support for this would be greatly appreciated.

 Generic remove() works.


Protocol 'ExpectedCount' cannot be nested inside another declaration

When updating the package to version 1.2.4 we were unable to build a package. I could reproduce the issue by adding a package to new empty project.
Swift 5.9
Xcode version: 15.2

Nested protocols have been introduced since Swift 5.10:
https://github.com/swiftlang/swift-evolution/blob/main/proposals/0404-nested-protocols.md
So you can start using the latest swift version to resolve the issue. I don't know what the guidelines are for this project to support older swift versions but I was encountering the same issue.

I guess Swift.package should be updated to swift-tools-version: 5.10 in that case

Hi @andrzejplatek, thanks for the report! That was a mistake on our part. We seem to have lost Swift 5.9 CI and so it did not let us know of the problem. Hopefully this #119 will fix things and we can make a new release soon.


feat: automerge lts node versions and keep them in sync

Unfortunately you cannot test the config before it runs but this is how I understand the docs:
matchManagers:

dockerfile: should look for Dockerfile and there find the docker image
npm: checks for package.json
nvm: checks for nvmrc

versioning: node
This should only pick LTS versions as far as I understand

and also https://docs.renovatebot.com/presets-workarounds/#workaroundstypesnodeversioning in combination with https://github.com/renovatebot/renovate/issues/1463#issuecomment-875562839

seems like it's not working. Going back to the drawing board

@lkappeler as discussed in Slack, I removed the automerge to be on the safe side. We can add it again if we see it works well.


[8.x] Prevent further lookups of user

In case there is still a user id in the session and the user was deleted, the framework tries to retrieve the user every time the user method is called. This PR sets a flag to prevent further lookups.

Hm, for some reason the tests fail and I face similar issues in my local environment as well but it seems that all the issues are unrelated to my changes. My new specific test ran through without issues as far as I could see.

Hmm, I'm not sure I want to change this behavior on a patch release. Fear it could have some unintended breakages for edge cases.

@taylorotwell thanks for your feedback. Shall I raise the PR for a different branch then? Right now it has the possibility to significantly decrease the performance of the app because the user() function can easily be triggered a few dozens times and each call causes a new database request. I admit that the likelihood of this event is minimal and requires the user to be deleted after the user logged in but the same argument would speak for having it as part of a patch release.


GC-446/add-billing-address-required-error

Fixes GC-446
Checklist

[x] Up to date with main
[x] All the tests are passing

[x] Delete all resources created in tests

[x] Prettier
[x] Spectral Lint
[x] npm run bundle outputs nothing suspect
[x] npm run postman outputs nothing suspect

@pop anything else we should do? I'm not seeing the new errors in https://docs.lob.com/#tag/Errors


Fix camera not being reattached after a two pointer SixDofDragBehavior

Forum post: https://forum.babylonjs.com/t/unselected-meshes-move-alongside-the-selected-mesh/46627
When there was more than one pointer activating the SixDofDragBehavior, the _attachedToElement property was being set to false, and the camera was not reattached because of it.

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

Snapshot stored with reference name:
refs/pull/14677/merge
Test environment:
https://babylonsnapshots.z22.web.core.windows.net/refs/pull/14677/merge/index.html
To test a playground add it to the URL, for example:
https://babylonsnapshots.z22.web.core.windows.net/refs/pull/14677/merge/index.html#WGZLGJ#4600
Links to test babylon tools with this snapshot:
https://playground.babylonjs.com/?snapshot=refs/pull/14677/merge
https://sandbox.babylonjs.com/?snapshot=refs/pull/14677/merge
https://gui.babylonjs.com/?snapshot=refs/pull/14677/merge
https://nme.babylonjs.com/?snapshot=refs/pull/14677/merge
To test the snapshot in the playground with a playground ID add it after the snapshot query string:
https://playground.babylonjs.com/?snapshot=refs/pull/14677/merge#BCU1XR#0


use notification system for existing systems

Issue description
Describe your issue in detail here
Now that we have a notification system, we  can integrate it into our existing system i.e.

[ ] successfully created a capture area
[ ] sucessfully started screen capture
[ ] display information when needed
[ ] display warnings and errors if something did occour

Definition Of Ready (DoR)
This issue can be worked on if

[x] a developer is assigned
[x] the issue is labeled
[x] the issue is assigned to the current sprint
[x] the issue is estimated
[x] a meaningful title has been set
[x] the issue is described in detail
[x] Depends on #130

If you need any help, you can ask me @BeierKevin


dimension mismatch in hoi_matcher.py

line80 in  hoi_matcher.py, human_cost_class = -human_out_prob[:, human_tgt_ids],where human_out_prob is [200, 3], however human_tgt_ids is [4]

we have tested it for a long time and have not met such error, sorry with a pity


Grid header and content height difference on mobile

On mobile the grid header and the grid content has different height.
I fixed it making the th and td tags 3em height, but I guess it's not the best practice.
Thanks for the collection, loved it!

Fixed on release version 2.0.4


50 : 50 width of menu

Hi, I need a help.
I have two menu item and I want the size of width menu item equal. Take a look screenshoots below.
Expectation

Actual

Do i need to use fixed size to do that ?
Any help thanks.

You can do like above with segmentedControl.
public enum MenuDisplayMode {
    case standard(widthMode: MenuItemWidthMode, centerItem: Bool, scrollingMode: MenuScrollingMode)
    case segmentedControl
    case infinite(widthMode: MenuItemWidthMode, scrollingMode: MenuScrollingMode) // Requires three paging views at least
}

How about the underline ? It's still not appropriate

Thanks

What do you mean by not appropriate? Do you want to make it shorter?

I want to make it longer.

You can change length of underline with these paddings.
focusMode: MenuFocusMode
public enum MenuFocusMode {
    case none
    case underline(height: CGFloat, color: UIColor, horizontalPadding: CGFloat, verticalPadding: CGFloat)
    case roundRect(radius: CGFloat, horizontalPadding: CGFloat, verticalPadding: CGFloat, selectedColor: UIColor)
}

Can first underline and second underline size be different ?
Thanks

Unfortunately no...

Sorry to say, but this won't be supported for a while. So I close this issue.
I'll let you know if it's done.


Very very poor documentation

Not easy to understand how to get these into a project. I really don't understand the rational of going through all the work to make these textures, and then to make them available free of charge only to: 1) remove them from the asset store, and 2) plop them here without a care for their purpose. I mean common. How are can it be to write some procedural text?

Not sure what you mean, this repo IS a project, so you just load it in Unity Hub and export a package with the shaders/material you need. The repo is 1.5Gb so you would not want it as an asset tbh.

Thank you melMass - I used your comment as my how to guide. They could honestly just add this info to the documentation.

Click green download code button to open with Github desktop to clone to your local computer or download zip.

Add selection of carpaint, fabric, metals etc from All materials to Individual materials sample scene.

RIght click IndividualMaterialScene - export package. File size 230Mb in my case.

Open other HDRP project. Assets > Import Package > Custom Package.


Bug in inscription number assignment - bvm.network jpegs are messing with the inscription numbers

Checking the data, there might a regression in ord.
Zooming on 824535, the last transaction in this block is 972765a3769073c8f4159a13588af2d9027715935279c95444c33efc48fcacdd, so it should have the highest inscription number of the block. Instead, it's getting the inscription number 53391473, and instead, this transaction
4a6c1853f75272076d349f88aec50c54057c51d899850da1852e1b1efbf6b6f7
is getting a highest number 53391474.
@casey @raphjaph any hint?

https://ordinals.hiro.so/inscription/972765a3769073c8f4159a13588af2d9027715935279c95444c33efc48fcacddi0 is correctly is reporting 53391474

Second transaction is sending the inscription as fee to miner (since its output value is 0). Ordinal theory creates implicit inputs for fees to the coinbase transaction. A quote from Ordinals BIP:
For the purposes of the assignment algorithm, the coinbase transaction is considered to have an implicit input equal in size to the subsidy, followed by an input for every fee-paying transaction in the block, in the order that those transactions appear in the block.

Also, coinbase transaction is calculated at the end of the block. So according to sat movement rules, the inscriptions that are sent as fee on creation should be numbered the last.

For the purposes of the assignment algorithm, the coinbase transaction is considered to have an implicit input equal in size to the subsidy, followed by an input for every fee-paying transaction in the block, in the order that those transactions appear in the block.

So according to sat movement rules, the inscriptions that are sent as fee on creation should be numbered the last.

Non sequitur.

in the order that those transactions appear in the block

This is the important part, and per the spec that you're quoting, the numbering here is flawed.
This issue is a bug in the patch that was supposed this fix this bug of #2062.
Introducing unbound transactions was kind of making sense in the context of #2062, because a sat was inscribed without being owned by its inscriber.
In this case, things are looking perfectly fine, satoshis are provided in an input, the first one is being inscribed, respecting the protocol, and is being spent in fees.
Generally speaking it would be great if we could stop considering the bugs present in ord as incredible unique features multiplying the values of inscriptions (read: curses, charms, etc), or try to read what we want to see, between the lines.
Instead, let's stick to the specification, fix the bugs, and re-compute the inscription number sequence per the specification.
The "Jubilee" has been quite painful and it would not have been a thing if bugs (read: cursed, charms, etc) had been addressed one after the other.

in the order that those transactions appear in the block
This only applies to the fee inputs, first fee is added to coinbase as second input, second fee is added as third etc. but all of these inputs come after all other transactions in the block. So actually, the code works correctly according to BIP specs.

Normally I would agree about fixing the bugs and also issue 2062 was definitely a bug and it has been fixed almost immediately. But in this case in my opinion the code works perfectly fine according to Ordinals BIP, so either Ordinals BIP has a bug, or everything is running correctly.
Also, this is not specific to 0.14.0, ord is handing fees like this since the beginning, and there are a few other cases of this that happened before.

@samedcildir I think you are twisting the spec to see the outcome that you're desiring, ie what the code is doing today. Admitting the presence of a bug at this scale is not an easy thing, but let's try again.
Let's consider the following block:
Tx0 - Coinbase
- virtual input 0 (subsidy)
- virtual input 1 (fee)

Tx1
- Sat 0 from Input #0 being inscribed, Going to Output #0

Tx2
- Sat 0 from Input #0 being inscribed, Spent in fees

Tx3
- Sat 0 Input #0, spending Output #0, is being re-inscribed, is Spent in fees

The transactions and more precisely the inputs are responsible for inscribing the satoshis, not their destination.
This problem is not different from transaction chaining, so if you really believe that this is not a bug / side effect of an inadequate design, why is not also implemented for transaction chaining?
Let's say you're chaining some transactions in the same block (case of Tx1 + Tx3), the inscriptions should get their inscription number in the order of transaction, so Tx0 (can not inscribe by nature), Tx1, Tx2, Tx3.
If we are following the logic that you're trying to sell in a consistent fashion, then we would end up with Tx0, Tx2, Tx1, Tx3 - which does not make sense.
My frustration is coming from the fact that I created and I am maintaining an alternative indexer (powering https://ordinals.hiro.so) and simulating these bugs is 1) quite challenging and 2) dishonest from a protocol point of view.
By stipulating that this behavior is working per the specs seems quite a stretch, otherwise transaction chaining should follow the same pattern.

@samedcildir Also, the spec that you are quoting is not the inscription number assignment, it's the ordinals number assignment, which are 2 different things.
https://github.com/casey/ord/blob/master/bip.mediawiki#design

Thanks for the bug report! We're checking this out.

I just finished indexing with #3031, which numbers fee-spent inscriptions correctly. However, it would lead to around seven million inscriptions being renumbered, so I think we've just got to live with this. Unfortunate, since it's definitely a bug, but so it goes!

Thank you for taking the time to look into this @casey!
 If this bug is not fixed in ord, we will have to re-create this bug in our indexer (along with folks running gord, and so on). Re-indexing on Hiro's end will impact more end users simply because most of the web wallets out there are using our APIs, and there are more users using web wallets than users running ord - I don't have any numbers, but intuitively I would say multiple orders of magnitude.
If this bug is indeed becoming part of the spec, a definitive guide in the documentation on how inscription numbers are being attributed would be very appreciated.
Thanks!

 We'll definitely document this, I have a PR open that adds a test for the current behavior, #3032, and I'll add documentation in the same PR.

Thank you for taking the time to look into this @casey!  If this bug is not fixed in ord, we will have to re-create this bug in our indexer (along with folks running gord, and so on). Re-indexing on Hiro's end will impact more end users simply because most of the web wallets out there are using our APIs, and there are more users using web wallets than users running ord - I don't have any numbers, but intuitively I would say multiple orders of magnitude.

ty for the reference -- we are not spending the developer resources to try to maintain gord numbering parity with ord for the time being or until it appears ord reaches a relatively stable, documented state.


upgrade to  go1.20

Description of your changes

go.mod still pointing to go1.19 to highlight the minimum supported version of Go.
upgrade golangci to v1.51.1

I have:

[x] Read and followed Crossplane's contribution process.
[x] Run make reviewable to ensure this PR is ready for review.
[ ] Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

@morningspace I will merge this now to release v0.5. PTAL!


Linux Shift + any key always report -1/Unknown

Testing on Ubuntu 16.04, sfml 2.4.1 according to the changelog.  Any keystroke while shift key is held down returns -1, Unknown.
int main()
{
    sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
    sf::CircleShape shape(100.f);
    shape.setFillColor(sf::Color::Green);

    while (window.isOpen())
    {
        sf::Event event;
        while (window.pollEvent(event))
        {
            if (event.type == sf::Event::Closed)
                window.close();
	    if (event.type == sf::Event::KeyPressed)
	      printf ("KEY EVENT ~%d\n", event.key.code);
        }

        window.clear();
        window.draw(shape);
        window.display();
    }

    return 0;
}

Is there something wrong with my individual setup, or is this normal?  If it is normal, this is a terrible bug, and i have a hard time believing that no one has noticed...

Cannot reproduce. Keys produce correct codes with and without modifiers held down. Modifiers themselves also produce the correct codes when they are pressed/released.

Checked again, and still getting -1, both from the laptop's keyboard and a plugged-in USB keyboard.  - Both left and right shift result in -1 for all subsequent keys, until released;

Shift keys themselves produce 38 for left shift and 42 for right shift;
Caps-lock does not produce a keystroke, but acts as shift, and results in -1 for all keys...
Other modifiers work.

Anthoughts on how to debug?

Weird.  I'm not on Ubuntu 16.04 (Linux Mint 18 w/ SFML 2.4.1), but the sample code is working correctly on my machine too.

Found the problem, my fault.  Found SFML 2.3 installed in another directory; I think the test compiled with .h files not matching he library...  Works fine now. Apologies for wasted time.


The game crashed after leaving the game

Describe the bug
The game crashed right after I left the game, idk if this is fixed for 0.68 but this happened when I left on version 0.67
To Reproduce
I played a few maps
I left the game
Expected behavior
Not to crash
Screenshots
log.txt
Desktop (please complete the following information):

OS: Windows 10
Version 0.67
64bit

Update to 0.68 before reporting this type of issue (unexplainable crash)

I tried but when i went to update it did 0.67 again

Do a clean install.

Idk it probably got updated but when I downloaded the install file it said 0.67 in the name too

https://github.com/etternagame/etterna/releases/tag/v0.68.0

You're nicer than peppy when I report an overlook lol, which is my only impression of bug reporting... just an observation
Thanks for helping me I'll make sure to only report for the latest version

it says 0.68 in the etterna website but you can only download 0.67

Not a game issue.

The site download link isn't tied to github, it probably just hasn't been manually changed yet. I will post about it on the EO discord.


Include Modrinth uploads

For Build metadata

Thank you a lot for all the PRs but I am closing this as this version has not been supported in a long while, and the build systems are not compatible


Check and fix the build status which is stuck on red for a long time

Check and fix the build status on the master repo which is stuck on red for a long time

build status is all green. Closing this issue


spectrum not continuos

Hi, I just find when use Parallel_WaveGAN to synthesize, the spectrum will be not continus. my config file is from ljspeech/*v1.yaml. Is there any suggestions for my problem? thank you

Could you show the input fbank corresponding to that part?

When I use higher steps Parallel_WaveGAN, this disappears, but some others appears. Is there soulution to avoid this ? thanks.

When I use higher steps Parallel_WaveGAN, this disappears

You mean the model trained with more iterations? If so, you can continue to train to avoid this error.
Another choice is the use of large kernel_size in the generator (e.g. 5). This may lead to more natural sound.


how to disable fling of image

Is there any function or variable can disable fling, which is when user drag image to one direction and the image will keep moving and slow down until stop.

enableVelocity={false}
velocityTimeBasedOnMove={false}
velocityAnimationSpeed={0}
minVelocity={0}
minVelocityScale={0}
velocitySensitivity={0}

Hello!
I try you say issues ,but not work
I want stop drag move animation like bottom gif
Thank your help~


aerofc_adc: fix error handling in init

Signed-off-by: Nicolae Rosia<EMAIL_ADDRESS>

@lucasdemarchi Can you cross-test and review?

Worth mentioning this was not tested, I'm looking to make an adc driver for Navio2 and came upon this.

LGTM


Augmented file...

Changes
File:  api/utility/membitmap.hpp

Changed type of index from signed to unsigned
Changed constructor body to default keyword
Changed C-Style cast to C++-Style cast
Initialized members in-class

Hi, thanks for contributing. Most of this looks good- but I don't think we want to remove the unsigned from our index_t. @fwsGonzo - please comment.

There is a suspicious return -1 there, so either it must throw some error (which we especially don't want an inline find_first_zero_bit inline function to do). So we have to either change it to signed, or simply make the function return a new free index. The membitmap is supposed to be static, used with the upcoming virtual filesystem, so.. my vote is also for signed.  :+1:


Handling FOR-ALL-TEST-RESULT

Hi,
In FIVEAM, tests written with the FOR-ALL macro return a FOR-ALL-TEST-RESULT object, which (usually?) has the TEST-EXPRESSION slot unbound. This results in errors.
An additional method is sufficient to fix this:
(defmethod slite/fiveam::test-expression :around ((result fiveam::for-all-test-result))
  "The test-expression slot in FOR-ALL-TEST-RESULT objects is usually unbound, so
return N/A instead.

Use :around as all fiveam::for-all-test-result subclasses also inherit
fiveam::test-result."
  "N/A")

This was fixed in https://github.com/tdrhq/slite/commit/4c6a14dde4b969b71c937bc10fedf0dd7d59fc76


Update an arXiv paper: StableV2V

Hi @alexalemi ,
Thank you for the amazing repository! I believe that this great work would significantly contribute to the community.
I wonder if you could update our work StableV2V? I've proposed a PR (#133) with the information of our paper and code links, so that you can directly merge it. Please do not hesitate to let me know if there is anything that you need me to modify.
Best,
Chang

Sorry, I am not a maintainer of this repository.


Write tests describing new expected behaviour / Unskip any skipped tests

Problem description :confused:
We are missing or skipping tests for new behaviours. Some examples include

https://github.com/statechannels/monorepo/blob/master/packages/web3torrent/src/library/client-seeding.test.ts#L85

Describe the solution you'd like :rocket:
Fix and add tests.

While fixing the client-seeding.test.ts, I found a subtle bug: Webtorrent.seed(...) calls add(...). So when we do super.seed, it will call add(), so it may create a local leecher that creates a channel and leeches with itself.
I'm going to rename add to leech to avoid overriding add.
@geoknee @snario


setup renovate configuration

Renovate  provides a way to receive pr when a new version is available for a dependency.
Only renovate (vs dependabot)  handle bazel dependencies .
This setup configuration dor a weekly check with renovate. It requiees to be activated on the project or organisation level to work correctly .
See doc to finalize

I think I need more context here - why do we need to support Renovate here?

With Bzlmod and its Minimum Version Selection, it's actually better to not update dependencies of "library projects" (such as rulesets). That avoids forcing users to upgrade.
It would make sense to test against the latest versions of all deps in CI on a regular basis, but that's not covered by the currently available tooling.

I'd also err on keeping things as they currently are. We are a small project and dependency management hasn't been an issue so far, but too much dependency churn can increase maintenance cost.


Configure Azure Pipelines

This pipeline configuration builds the application and produces a build for the Release configuration.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: sugeshcse sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

Test


[Question] createIndexes guide

Hi,
Thank for your great work. I just wonder what is the best way to use createIndexes?
Can it be totally automatic when we defined model?
Cheers.

Yeah you need to instrument that in your own app. The bigger your app gets the less likely you'd wan't to run an auto indexer when the app started.
hapi-mongo-models actually does have an option that takes advantage of the createIndexes method.


Unavoidable Cargo.lock package collision occurs if path dependencies share same name and version

Problem
If you find yourself with dependencies on two packages with the same name, you can normally include dependencies on both by renaming the dependencies. However, if these packages are included via path dependencies and both have the same version, then cargo generate-lockfile will fail with a package collision error. This occurs even when the dependencies are renamed to avoid collision.
Steps

cargo init /tmp/foo
cargo init --lib /tmp/foo/dir1/pkg
cargo init --lib /tmp/foo/dir2/pkg
Update Cargo.toml in foo to include both pkg crates as dependencies, renaming to avoid conflict

[package]
name = "foo"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
pkg1 = { path = "dir1/pkg", package = "pkg" }
pkg2 = { path = "dir2/pkg", package = "pkg" }

Run cargo generate-lockfile in foo and observe package collision despite rename.

error: package collision in the lockfile: packages pkg v0.1.0 (/tmp/foo/dir1/pkg) and pkg v0.1.0 (/tmp/foo/dir2/pkg) are different, but only one can be written to lockfile unambiguously

Possible Solution(s)
It appears the Cargo.lock file only tracks the package name and version for path dependencies. For other dependencies, additional information appears to be included. For example, with a git dependency mixed with a crates.io dependency:
[dependencies]
libc = { version = "0.2.116" }
libc2 = { git = "https://github.com/rust-lang/libc.git", package = "libc" }

the dependencies in foo are distinguished by their source in the Cargo.lock file:
version = 3

[[package]]
name = "foo"
version = "0.1.0"
dependencies = [
 "libc 0.2.116 (registry+https://github.com/rust-lang/crates.io-index)",
 "libc 0.2.116 (git+https://github.com/rust-lang/libc.git)",
]

[[package]]
name = "libc"
version = "0.2.116"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "565dbd88872dbe4cc8a46e527f26483c1d1f7afa6b884a3bd6cd893d4f98da74"

[[package]]
name = "libc"
version = "0.2.116"
source = "git+https://github.com/rust-lang/libc.git#2dc7cfe3f5e0f8b8fa92e73cde7f06c85a754de4"

Inclusion of a source for path dependencies could help differentiate in the that case.
Notes
If the version is changed for one of the pkg crates to a different version than the other, then the lock file is generated successfully:
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3

[[package]]
name = "foo"
version = "0.1.0"
dependencies = [
 "pkg 0.1.0",
 "pkg 0.2.0",
]

[[package]]
name = "pkg"
version = "0.1.0"

[[package]]
name = "pkg"
version = "0.2.0"

Version
cargo 1.60.0-nightly (95bb3c92b 2022-01-18)
release: 1.60.0-nightly
commit-hash: 95bb3c92bf516017e812e7f1c14c2dea3845b30e
commit-date: 2022-01-18
host: x86_64-unknown-linux-gnu
libgit2: 1.3.0 (sys:0.13.23 vendored)
libcurl: 7.80.0-DEV (sys:0.4.51+curl-7.80.0 vendored ssl:OpenSSL/1.1.1l)
os: Ubuntu 18.04 (bionic) [64-bit]

This is an intended limitation of the Cargo.lock format at this time, path dependencies must all have unique names.

Triage: This looks roughly the same as #8639 but from a different angle.


[mesheryctl] installing mesheryctl via the script shouldn't require unzip

See mesheryctl Command Tracker for current status of commands.
Current Behavior
When mesheryctl is installed via our bash script it requires unzip to be present so that the script can uncompress the released cli binary.
https://github.com/meshery/meshery/blob/df9eb35b8d45d1b1899b29111c80eeaed423d57b/meshery#L120-L123
Desired Behavior
This shouldn't be the case because linux by default doesn't have support for zip but has for tar.gz. The plan is to

Publish the release artifact in both tar.gz and zip formats.
Update the bash script to use the tar.gz file if possible.

Screenshots/Logs

Environment

Host OS: Mac Linux Windows
Meshery Server Version: stable-v
Meshery Client Version: stable-v
Platform: Docker Kubernetes

Contributor Resources

mesheryctl Contributing Guide
Beginner's guide to contributing to Meshery and mesheryctl
mesheryctl Command Tracker
Meshery CLI Commands and Documentation
🙋🏾🙋🏼 Questions: Layer5 Discussion Forum and Layer5 Community Slack

Hi @nishantwrp  i want to work on this issue , can you guide me how do I get started ?
I am very new to this project and tried to gain some familiarity but I am not able to understand terms like Mesh and so forth.

@leecalcote, meshery bash script is used only by the unix based operating systems, so if I modify the script to switch to tar.gz, it would be enough, right ? I dont need to make any windows specific differentiation in the meshery script, right?

Hi @heysujal, this issue was already assigned. Can you instead look for unassigned issues with labels good first issue or help wanted across the repositories mentioned here.

Fixed by #5888 and #5911


Document the helper functions for WMI/registry calls

@bdesmond can you please write a brief Wiki page documenting how to use the new helper functions you wrote.

This has been completed.
https://github.com/ExchangeAnalyzer/ExchangeAnalyzer/wiki/Using-the-Helper-Functions


extension of scale explanation

scale more detailed explained (and incomplete sentence removed); have to be adapted to PR #1068 (formula and default value) if necessary

I am going to wait for #1068 before merging.


超过1024个长度能打印不

超过1024个长度能打印不

@huangran-qin More details?
If you mean printing with AndroidPrinter, yes, it can.

@huangran-qin More details?
If you mean printing with AndroidPrinter, yes, it can.

OK, I see. Thank you very much!


created wallets page, a component for wallet tile & a config file t…

…o write wallets data inside

Hi. I've created the wallets page, please check it out and point out any mistakes so I can fix them 😁
And there is one thing remaining, I should create a link to this page. Where should I put the link? Directly in the navbar, like the DAO page?

Hi. I've created the wallets page, please check it out and point out any mistakes so I can fix them 😁 And there is one thing remaining, I should create a link to this page. Where should I put the link? Directly in the navbar, like the DAO page?

we can link from the 'pick a wallet' link on the homepage