async_pair: [Errno13] Permission Denied

Problem
Calling await async_pair(SERVER_ADDRESS) always returns a permission error regardless of the server address validity. However using get_lutron_cert.py with the same address works perfectly fine.
Traceback (most recent call last):
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.752.0_x64__qbz5n2kfra8p0\lib\concurrent\futures\_base.py", line 446, in result
    return self.__get_result()
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.752.0_x64__qbz5n2kfra8p0\lib\concurrent\futures\_base.py", line 391, in __get_result
    raise self._exception
  File "<console>", line 1, in <module>
  File "C:\Users\TGN-PC\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\pylutron_caseta\pairing.py", line 63, in async_pair
    csr, key_bytes_pem, ssl_context = await loop.run_in_executor(
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.752.0_x64__qbz5n2kfra8p0\lib\concurrent\futures\thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "C:\Users\TGN-PC\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\pylutron_caseta\pairing.py", line 205, in _generate_csr_with_ssl_context
    ssl_context.load_cert_chain(lap_cert_temp_file.name, lap_key_temp_file.name)
PermissionError: [Errno 13] Permission denied

Steps to reproduce

Open python REPL with asyncio module

$ python -m asyncio

Import async_pair

>>> from pylutron_caseta.pairing import async_pair

Call async_pair with a valid or invalid server address

>>> await async_pair("<IP_ADDRESS>")

Information
OS: Windows 10 Pro
OS Version: 21H1
Python: 3.10.2

Yeah I just noticed this a few days ago. async_pair does not work on Windows because it uses NamedTempFile to work around limitations of Python's very basic SSL implementation and NamedTempFile is practically useless on Windows.

Yeah I just noticed this a few days ago. async_pair does not work on Windows because it uses NamedTempFile to work around limitations of Python's very basic SSL implementation and NamedTempFile is practically useless on Windows.

Ah, I'm fairly new to Python so I'm not very familiar with it's ins and outs, but is there any specific reason to use NamedTemporaryFile as opposed to just manually writing and deleting a file given it's problems with Windows? If not I'd be happy to submit a PR

NamedTemporaryFile is basically just a context manager that automatically generates a temporary file and deletes the file at the end without having to write the try+finally. On non-Windows systems, it's much easier to use than doing it by hand, but on Windows because the filesystem doesn't work the same way you end up not being able to use the temporary file unless you set delete=false, in which case you need to delete it yourself when you're done.


fix  a typo for nut08

Thanks for the PR but we can't merge this. This isn't a typo but renaming a field and would break the protocol.
@thunderbiscuit is right that we want to rename this field to a more generic name request which can harbor lightning invoices, on-chain addresses, or whatever else we might encounter along the way.

https://github.com/cashubtc/nuts/blob/main/08.md#example-1
So what is Everything here is the same as in [NUT-05](https://github.com/cashubtc/nuts/blob/main/05.md) except for outputs. ?

So what is Everything here is the same as in NUT-05 except for outputs. ?

Yes, it allows for change to be returned if the routing fee is over paid.


Make using execution engine stub scarier

PR Description
Change the prefix used to activate the execution engine stub to unsafe-test-stub and refuse to startup with a scary message if the old stub value is used.
Also makes the warning logged at startup a scarier sounding error and it repeats every time the transition configuration is called.
Documentation

[x] I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

[x] I thought about adding a changelog entry, and added one if I deemed necessary.

I'm thinking about disallowing  it for mainnet, but then we loose a testing tool. We could add a compile-time option to unable it for mainnet.

I'm ok with making it very scary or even disabling it when (mainnet) validator keys are present. But this mode is useful for just running a low-value/test node. See also #6053 - it's a shame to be continually seeing with warnings in that case.

I'm not a fan of compile time feature toggles, they add a bunch of complexity to things generally and users will just toggle them on that way if they really want to shoot themselves in the foot. It's not like this was documented functionality anyway.
Even for a non-validating node it can be pretty dangerous to not validate payloads so while this setup is new I think we want to be really very loud about this. Once the merge goes through we'll likely remove the exchange_transitionConfiguration call entirely and that's likely a good time to revisit and potentially not repeat the warning so regularly.


feat(isthmus): cli can now output JSON, TEXT and BINARY proto format

Partial fix for: https://github.com/substrait-io/substrait-java/issues/211

Technically text is protobuf text.  We are still looking to add the Substrait text format.

@EpsilonPrime good point.
What do you think about the names PROTOJSON, PROTOTEXT instead of JSON and TEXT to make it more explicity where they come from?

@vbarua thank you for working on this.

That works for me.  The existing implementation can take an explicit format
type and it can also auto detect the type so having some way to eventually
provide auto detect as an option would be nice as well.
On Wed, Dec 27, 2023, 00:24 Vibhatha Lakmal Abeykoon <
@.***> wrote:

@vbarua https://github.com/vbarua thank you for working on this.
—
Reply to this email directly, view it on GitHub
https://github.com/substrait-io/substrait-java/pull/216#issuecomment-1869646763,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AABDDCEQHWLGYLRRYJKAZULYLL23NAVCNFSM6AAAAABBCXPF3OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRZGY2DMNZWGM
.
You are receiving this because you were mentioned.Message ID:
@.***>

@EpsilonPrime @vibhatha
If these changes look reasonable now, I would appreciate an approval when y'all have a chance 🙇


[Bug] info dictionary in env.step() does not include all claimed terms

Describe the bug
The documentation for mujoco environments claims several terms to be in the returned info dictionary that are not actually present. For Hopper, it states

info will also contain the individual reward terms
which is not the case.

Instead, info only contains x_position and x_velocity (see here).
(I know that one of the reward terms is constant, i.e., it is rather useless to include it, but still...)
For others, such as Ant it includes them.
Code example
import gymnasium as gym

env = gym.make("Hopper-v4")
act = env.action_space.sample()
next_state, reward, terminated, truncated, info = env.step(action)
print(info)

System info
gym.__version__ == 0.29.1
Additional context
No response
Checklist

[X] I have checked that there is no similar issue in the repo

https://github.com/Farama-Foundation/Gymnasium/blob/a01d94d70242062fd8407855997797e5fb76c00b/gymnasium/envs/mujoco/hopper_v5.py#L315-L319
this is fixed in Hopper-v5
note:I believe the documentation in Hopper-v2 was copied and pasted from Ant-v2 without validating it, and was kept till v4

Perfect, thanks.


Increase opacity of current track overlay in light theme

Addresses https://github.com/jpochyla/psst/issues/146

Thanks!


Incorrect multiplication

Update: Found the problem.
In operator* .lower() and .upper() return uint64_t, which must be casted to uint128_t before addition.

Fixed


Software_Onboarding

Updated data to remove Analog Input columns that do not change and displayed plots of RPM and TPS.

@Squidtoon99 Could you please review this pull request when you have a moment? Thank you!


Use -v instead of -V

See https://github.com/vuejs/vue-cli/issues/185

I prefer having the version on -V, people are more used by it

ok, it's just a matter of taste, many tools use -v for version and -V for verbose too, I can totally accept both 😜

``


Update nightly-dev-doc-build.yml

I force merged this so we can kick off a nightly build test right now.


Access request for bharathappali

Access level:

[ ] Non-privileged
[ ] jenkins user
[ ] root/Administrative
[ ] other (Please specify):

System for which access is needed:
I need a Windows x86_64 system with docker installed.
Please explain why you need this access including whether it is a temporary or permanent request:
I need temporary access to a windows machine to validate the PR https://github.com/AdoptOpenJDK/openjdk-docker/pull/365

Unless @gdams has one of these set up somewhere we don't have one as it's not used for the production builds or tests at present.


properties for keys U83 U84 U85

This pull request contains some useful properties for describing the relations between musical keys.
It follows an issue about the keys vocabulary.
I added the definition and the comments in English and French, so that it is complete for a clear discussion about their adoption.

Propriétés validées par le groupe modélisation.


Provide tool-tips to show the schema:description on selected filters and/or legends in the graphics

Is your feature request related to a problem? Please describe.
Data providers do make sure that the dimensions are nicely described with schema:description. For now visualize does not make use anywhere about this context information.
Describe the solution you'd like
A simple first step would be to provide a tooltip with this information is available on the dimension:

Or on the datapoints itself:

Additional context
There are not much information ready yet in schema:description, I guess mostly because it has no impact on visualize.admin.ch. We should early encourage the data providers to make use of this. Because the data in context is the most important feature of our overall solution.

This really would be a very important feature. I just tried to convince a work colleauge to use Linked Data exactly because of the further info you can get for the dimensions just to discover that they are not available in visualize.admin.ch

@bequrios We are planning to tackle this very soon. It is on our priority list.

Completed in #716. We also now have a concept for handling this in a more scalable form – a metadata panel (#801).


Update this is a bit of prosecing thinb.go

for mean while; yes parts of this have been made by a ai project

then too fix proable just try to rewrite it into a function which calls out error codes and sends them to a external bot which sends back the fix for the error code, but the bot must have full acces to code to see problems.


fix bug that default:CURRENT_TIMESTAMP

fix the bug  #5176

Fixed in https://github.com/go-gorm/gorm/commit/0097b39a77b9573d63f89c22f3cea0aae103a77f
There are some other SQL datetime funcs like now() also need to check, so we just ignored all error.

Thank you for your PR.

@jinzhu


Devtools not working on React Native Web

Describe the bug
Devtools are not working on React Native Web anymore. In v3, it used to work.
Your minimal, reproducible example
https://github.com/TanStack/query/tree/main/examples/react/react-native example
Steps to reproduce

Get the https://github.com/TanStack/query/tree/main/examples/react/react-native example
In file App.tsx, import & add <ReactQueryDevtools /> inside QueryClientProvider
Launch project
If package expo-font missing, add it. (v10.0.3)

Expected behavior
Devtools should be displayed, like v3.
How often does this bug happen?
No response
Screenshots or Videos
No response
Platform

OS: Windows
Browser: Chrome
Version: 103.0.5060.134

react-query version
5.0.10
TypeScript version
4.3.5
Additional context
No response

could this be related to #4017 and thus eventually to #3882  ?
If you see null being rendered, my guess is that the wrong entry point is being picked up.

I have the same problem in v4. The Dev tool icon is not showing up

@Estevete @Fogh can you please try it out with v4.3.0-beta.0 ?

@TkDodo on my side, the web app crash with the v4.3.0-beta.0

Works well in 4.0.10, but without the DevTools.

Which bundler are you using? Seems to be the same as:

https://github.com/TanStack/query/issues/3882#issuecomment-1219413217

I use webpack 4.46.0 with Expo CLI

@YZahringer @Fogh @Estevete can you please try out the latest beta version to see if it fixes your issue?

https://github.com/TanStack/query/releases/tag/v4.3.0-beta.3

Everything works fine on my side with Expo SDK 46 on Web.
@TkDodo Thanks a lot 👍


fix(style tab): Content QA

Updated style tabs for:

modal
notification
number-input
overflow-menu
pagination
progress-indicator

Related to: https://github.com/carbon-design-system/carbon-website/issues/1141
Updated:

added blank columns for line length hack on themes tables

merged in master and fixed conflicts


Bug: Elasticsearch tests fail on machine with ARM CPU (Apple M1, M2)

Describe the bug
Elasticsearch tests fail, see screenshots:

To Reproduce
To Reproduce

Clone project and install project dependencies with Poetry
Run test with pytest: pytest modules/elasticsearch/tests/test_elasticsearch.py

Runtime environment
OS: Darwin 22.6.0 Darwin Kernel Version 22.6.0: Sun Dec 17 22:13:25 PST 2023; root:xnu-87<IP_ADDRESS>3.2~2/RELEASE_ARM64_T6020 arm64
Python: 3.11.6
Poetry show:
alabaster                     0.7.16       A light, configurable Sphinx theme
anyio                         4.3.0        High level compatibility layer for multiple asynchronous event loop implementations
argon2-cffi                   23.1.0       Argon2 for Python
argon2-cffi-bindings          21.2.0       Low-level CFFI bindings for Argon2
asn1crypto                    1.5.1        Fast ASN.1 parser and serializer with definitions for private keys, public keys, certificates, CRL, OCSP, CMS, PKCS#3, PKCS#7, PKCS#8, PKCS#12, PKCS#5, X.509 an...
attrs                         23.2.0       Classes Without Boilerplate
azure-core                    1.29.7       Microsoft Azure Core Library for Python
azure-storage-blob            12.19.0      Microsoft Azure Blob Storage Client Library for Python
babel                         2.14.0       Internationalization utilities
boto3                         1.34.28      The AWS SDK for Python
botocore                      1.34.28      Low-level, data-driven core of boto 3.
cachetools                    5.3.2        Extensible memoizing collections and decorators
certifi                       2023.11.17   Python package for providing Mozilla's CA Bundle.
cffi                          1.16.0       Foreign Function Interface for Python calling C code.
cfgv                          3.4.0        Validate configuration and produce human readable error messages.
charset-normalizer            3.3.2        The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet.
clickhouse-driver             0.2.6        Python driver with native interface for ClickHouse
coverage                      7.4.0        Code coverage measurement for Python
cryptography                  42.0.1       cryptography is a package which provides cryptographic recipes and primitives to Python developers.
cx-oracle                     8.3.0        Python interface to Oracle
deprecation                   2.1.0        A library to handle automated deprecations
distlib                       0.3.8        Distribution utilities
dnspython                     2.5.0        DNS toolkit
docker                        7.0.0        A Python library for the Docker Engine API.
docutils                      0.20.1       Docutils -- Python Documentation Utilities
ecdsa                         0.18.0       ECDSA cryptographic signature library (pure python)
filelock                      3.13.1       A platform independent file lock.
google-api-core               2.15.0       Google API client core library
google-auth                   2.27.0       Google Authentication Library
google-cloud-pubsub           2.19.0       Google Cloud Pub/Sub API client library
googleapis-common-protos      1.62.0       Common protobufs used in Google APIs
grpc-google-iam-v1            0.13.0       IAM API client library
grpcio                        1.60.0       HTTP/2-based RPC framework
grpcio-status                 1.60.0       Status proto mapping for gRPC
h11                           0.14.0       A pure-Python, bring-your-own-I/O implementation of HTTP/1.1
identify                      2.5.35       File identification library for Python
idna                          3.6          Internationalized Domain Names in Applications (IDNA)
imagesize                     1.4.1        Getting image size from png/jpeg/jpeg2000/gif file
importlib-metadata            7.0.1        Read metadata from Python packages
iniconfig                     2.0.0        brain-dead simple config-ini parsing
isodate                       0.6.1        An ISO 8601 date/time/duration parser and formatter
jaraco-classes                3.3.1        Utility functions for Python class constructs
jinja2                        3.1.3        A very fast and expressive template engine.
jmespath                      1.0.1        JSON Matching Expressions
kafka-python                  2.0.2        Pure Python client for Apache Kafka
keyring                       24.3.0       Store and access your passwords safely.
kubernetes                    29.0.0       Kubernetes python client
markdown-it-py                3.0.0        Python port of markdown-it. Markdown parsing, done right!
markupsafe                    2.1.4        Safely add untrusted strings to HTML/XML markup.
mdurl                         0.1.2        Markdown URL utilities
minio                         7.2.3        MinIO Python SDK for Amazon S3 Compatible Cloud Storage
more-itertools                10.2.0       More routines for operating on iterables, beyond itertools
mypy                          1.7.1        Optional static typing for Python
mypy-extensions               1.0.0        Type system extensions for programs checked with the mypy type checker.
neo4j                         5.16.0       Neo4j Bolt driver for Python
nh3                           0.2.15       Python bindings to the ammonia HTML sanitization library.
nodeenv                       1.8.0        Node.js virtual environment builder
oauthlib                      3.2.2        A generic, spec-compliant, thorough implementation of the OAuth request-signing logic
opensearch-py                 2.4.2        Python client for OpenSearch
outcome                       1.3.0.post0  Capture the outcome of Python function calls.
packaging                     23.2         Core utilities for Python packages
pg8000                        1.30.4       PostgreSQL interface library
pika                          1.3.2        Pika Python AMQP Client Library
pkginfo                       1.9.6        Query metadata from sdists / bdists / installed packages.
platformdirs                  4.2.0        A small Python package for determining appropriate platform-specific dirs, e.g. a "user data dir".
pluggy                        1.4.0        plugin and hook calling mechanisms for python
pre-commit                    3.6.2        A framework for managing and maintaining multi-language pre-commit hooks.
proto-plus                    1.23.0       Beautiful, Pythonic protocol buffers.
protobuf                      4.25.2
psycopg2-binary               2.9.9        psycopg2 - Python-PostgreSQL Database Adapter
pyasn1                        0.5.1        Pure-Python implementation of ASN.1 types and DER/BER/CER codecs (X.208)
pyasn1-modules                0.3.0        A collection of ASN.1-based protocols modules
pycparser                     2.21         C parser in Python
pycryptodome                  3.20.0       Cryptographic library for Python
pygments                      2.17.2       Pygments is a syntax highlighting package written in Python.
pyjwt                         2.8.0        JSON Web Token implementation in Python
pymongo                       4.6.1        Python driver for MongoDB <http://www.mongodb.org>
pymssql                       2.2.11       DB-API interface to Microsoft SQL Server for Python. (new Cython-based version)
pymysql                       1.1.0        Pure Python MySQL Driver
pysocks                       1.7.1        A Python SOCKS client module. See https://github.com/Anorov/PySocks for more information.
pytest                        7.4.3        pytest: simple powerful testing with Python
pytest-cov                    4.1.0        Pytest plugin for measuring coverage.
python-arango                 7.9.1        Python Driver for ArangoDB
python-dateutil               2.8.2        Extensions to the standard Python datetime module
python-jose                   3.3.0        JOSE implementation in Python
python-keycloak               3.7.0        python-keycloak is a Python package providing access to the Keycloak API.
pytz                          2023.3.post1 World timezone definitions, modern and historical
pyyaml                        6.0.1        YAML parser and emitter for Python
readme-renderer               42.0         readme_renderer is a library for rendering readme descriptions for Warehouse
redis                         5.0.1        Python client for Redis database and key-value store
requests                      2.31.0       Python HTTP for Humans.
requests-oauthlib             1.3.1        OAuthlib authentication support for Requests.
requests-toolbelt             1.0.0        A utility belt for advanced users of python-requests
rfc3986                       2.0.0        Validating URI References per RFC 3986
rich                          13.7.0       Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal
rsa                           4.9          Pure-Python RSA implementation
s3transfer                    0.10.0       An Amazon S3 Transfer Manager
scramp                        1.4.4        An implementation of the SCRAM protocol.
selenium                      4.17.2
setuptools                    69.0.3       Easily download, build, install, upgrade, and uninstall Python packages
six                           1.16.0       Python 2 and 3 compatibility utilities
sniffio                       1.3.0        Sniff out which async library your code is running under
snowballstemmer               2.2.0        This package provides 29 stemmers for 28 languages generated from Snowball algorithms.
sortedcontainers              2.4.0        Sorted Containers -- Sorted List, Sorted Dict, Sorted Set
sphinx                        7.2.6        Python documentation generator
sphinxcontrib-applehelp       1.0.8        sphinxcontrib-applehelp is a Sphinx extension which outputs Apple help books
sphinxcontrib-devhelp         1.0.6        sphinxcontrib-devhelp is a sphinx extension which outputs Devhelp documents
sphinxcontrib-htmlhelp        2.0.5        sphinxcontrib-htmlhelp is a sphinx extension which renders HTML help files
sphinxcontrib-jsmath          1.0.1        A sphinx extension which renders display math in HTML via JavaScript
sphinxcontrib-qthelp          1.0.7        sphinxcontrib-qthelp is a sphinx extension which outputs QtHelp documents
sphinxcontrib-serializinghtml 1.1.10       sphinxcontrib-serializinghtml is a sphinx extension which outputs "serialized" HTML files (json and pickle)
sqlalchemy                    2.0.25       Database Abstraction Library
trio                          0.24.0       A friendly Python library for async concurrency and I/O
trio-websocket                0.11.1       WebSocket library for Trio
twine                         4.0.2        Collection of utilities for publishing packages on PyPI
typing-extensions             4.9.0        Backported and Experimental Type Hints for Python 3.8+
tzlocal                       5.2          tzinfo object for the local timezone
urllib3                       2.0.7        HTTP library with thread-safe connection pooling, file post, and more.
virtualenv                    20.25.1      Virtual Python Environment builder
websocket-client              1.7.0        WebSocket client for Python with low level API options
wrapt                         1.16.0       Module for decorators, wrappers and monkey patching.
wsproto                       1.2.0        WebSockets state-machine based protocol implementation
zipp                          3.17.0       Backport of pathlib-compatible object wrapper for zip files

Docker info:
docker info
Client:
 Version:    25.0.3
 Context:    desktop-linux
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.12.1-desktop.4
    Path:     /Users/maxpfeiffer/.docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.24.6-desktop.1
    Path:     /Users/maxpfeiffer/.docker/cli-plugins/docker-compose
  debug: Get a shell into any image or container. (Docker Inc.)
    Version:  0.0.24
    Path:     /Users/maxpfeiffer/.docker/cli-plugins/docker-debug
  dev: Docker Dev Environments (Docker Inc.)
    Version:  v0.1.0
    Path:     /Users/maxpfeiffer/.docker/cli-plugins/docker-dev
  extension: Manages Docker extensions (Docker Inc.)
    Version:  v0.2.22
    Path:     /Users/maxpfeiffer/.docker/cli-plugins/docker-extension
  feedback: Provide feedback, right in your terminal! (Docker Inc.)
    Version:  v1.0.4
    Path:     /Users/maxpfeiffer/.docker/cli-plugins/docker-feedback
  init: Creates Docker-related starter files for your project (Docker Inc.)
    Version:  v1.0.1
    Path:     /Users/maxpfeiffer/.docker/cli-plugins/docker-init
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
    Version:  0.6.0
    Path:     /Users/maxpfeiffer/.docker/cli-plugins/docker-sbom
  scout: Docker Scout (Docker Inc.)
    Version:  v1.5.0
    Path:     /Users/maxpfeiffer/.docker/cli-plugins/docker-scout
WARNING: Plugin "/Users/maxpfeiffer/.docker/cli-plugins/docker-scan" is not valid: failed to fetch metadata: fork/exec /Users/maxpfeiffer/.docker/cli-plugins/docker-scan: no such file or directory

Server:
 Containers: 123
  Running: 0
  Paused: 0
  Stopped: 123
 Images: 259
 Server Version: 25.0.3
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: runc io.containerd.runc.v2
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: ae07eda36dd25f8a1b98dfbf587313b99c0190bb
 runc version: v1.1.12-0-g51d5e94
 init version: de40ad0
 Security Options:
  seccomp
   Profile: unconfined
  cgroupns
 Kernel Version: 6.6.16-linuxkit
 Operating System: Docker Desktop
 OSType: linux
 Architecture: aarch64
 CPUs: 12
 Total Memory: 15.6GiB
 Name: docker-desktop
 ID: b8a8253b-450b-42f1-9f23-f14f67094b44
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 HTTP Proxy: http.docker.internal:3128
 HTTPS Proxy: http.docker.internal:3128
 No Proxy: hubproxy.docker.internal
 Experimental: false
 Insecure Registries:
  hubproxy.docker.internal:5555
  <IP_ADDRESS>/8
 Live Restore Enabled: false

This image elastichsearch:6.8.23 that you used doesn't have the version linux/arm64 thats why your receive 404 error.
You can check here: https://hub.docker.com/layers/library/elasticsearch/6.8.23/images/sha256-71d4f7d890b90d277a1677d53f100139dcb39a34e9aac1138bfbf272c878a9cf?context=explore
You can fix your problem using an image with version 7.8.0 or greater

@vinicinbgs Thanks for your help. I quickly wrote a fix for it.


Make discretize a dependency

Currently, discretize is not a dependency, and all could be done with utils.TensorMesh. However, this leads sometimes to confusion, and the gain is little. The main reasons why discretize has not been made a dependency are removed:

[ ] dependencies:

[x] matplotlib is no longer a hard dependency
[ ] pymatsolver is no longer a dependency (https://github.com/simpeg/discretize/pull/193)

[x] Installable via conda
[x] Can be installed without prior installing numpy

So I think it is time to go all-in and make it a hard dependency (adjust docs and website) as soon as all boxes above are ticked and a release happened (pin the version then); utils.TensorMesh should then only be used internally.
I think the best would be to do in emg3d.utils
from discretize import TensorMesh

and then rename the utils.TensorMesh to utils._TensorMesh, for internal use of the solver only.

If so, replace emg3d.njitted.volume_average with discretize.utils.interputils.volume_average.

=> Adjust I\O save/load accordingly!

Will be closed by #109

Soft dependency.


set javadoc encoding to UTF-8

Refer comment here: https://github.com/opensearch-project/opensearch-java/pull/49

If anyone wants to do this, it's still a nice first issue to resolve.

Hi, @wbeckler @VijayanB  I am willing to work on this, can you please assign. Thanks!

Awesome! I will do

https://github.com/opensearch-project/opensearch-java/pull/237

Hi @dblock, I notice that you've closed this issue but the PR i've raised is not merged yet. I had to close my earlier PR due to an issue. Have raised a new PR: #241, Please check.


HDDS-9299. Mark TestOmSnapshot#testDayWeekMonthSnapshotCreationAndExpiration as slow

What changes were proposed in this pull request?
TestOmSnapshot requires 1000-1200 seconds in CI.  Single slowest test case is testDayWeekMonthSnapshotCreationAndExpiration (added in HDDS-8378), takes 130s in each 4 parameterized runs.  I propose marking testDayWeekMonthSnapshotCreationAndExpiration as slow.  Slow tests are skipped in regular CI, but still can be executed manually or in scheduled runs.
@Slow only applies to JUnit5 tests, so this PR also adds a matching @Category for JUnit4.
Also:

improve javadoc comments on these tags/categories to clarify how they can be used
fix package name mismatch in package-info.java

https://issues.apache.org/jira/browse/HDDS-9299
How was this patch tested?
Before:
Tests run: 160, Failures: 0, Errors: 0, Skipped: 5, Time elapsed: 1,066.519 s - in org.apache.hadoop.ozone.om.TestOmSnapshot

After:
Tests run: 156, Failures: 0, Errors: 0, Skipped: 5, Time elapsed: 575.976 s - in org.apache.hadoop.ozone.om.TestOmSnapshot

CI:
https://github.com/adoroszlai/hadoop-ozone/actions/runs/6504785239

CI run for PR is successful: https://github.com/apache/ozone/actions/runs/6508873653?pr=5437
Failed checks are coming from the branch build, because first I pushed to apache repo instead of my fork by mistake.  That run was cancelled.

Changes look good to me . thanks @adoroszlai

Thanks @DaveTeng0, @prashantpogde, @swamirishi for the review.


Created Rmd with a xaringan version of the presentation.

#3 Created the slides/ folder with the Rmd file and its needed files for a xaringan version of the presentation slides.

Closing along with issue https://github.com/nhs-r-community/intro_rmd/issues/3 Xaringan Slides


Different T pose angles

Hi @TemugeB, thanks for your work, it has helped me alot. I have a question. Would you help me, how could I calculate the joint angles if we have different axes directions at each joint?

Hi. Sorry for the late reply. The T pose is a convenience pose from which you are deciding to calculate the joint angles. Technically you can calculate joint angles starting from any initial body pose. On the other hand, it is also possible to put any keypoints into T pose angles. So I'm not sure what you mean calculate joint angles from different axis directions. You have the 3D coordinates of each joint? Then simply calculate joint angles with respect to T pose. If you have joint angles with different axis directions now and you want joint angles from T pose, then you need to calculate 3D coordinates first then calculate the joint angles from T pose. I think that would be the easiest way to do it.

Hi, thank you for your reply. Yes I have 3D coordinates of each joint. In your defined T pose each joint has its own axes such that the "z" axis points forward, but i want some joints have different axes directions. for example "hips" (mid point of the hips) and "lefthip" have the following axes:

but the "righthip" has the following axes:

My question is, if we want to define dissimilar axes for joints, how should calculate rotation of each joint w.r.t its parent(s)?

Hi @TemugeB,
Your resources on github helped me greatly, so if I want to cite "joint_angles_calculate", should I just illustrate the github address? Thanks.

@TemugeB Not quite yet. I will appreciate if you help me.


Implement styling in Tailwind CSS [Update existing PRs]

Issue Description

Currently, styles are implemented using vanilla CSS incorporated within the TSX files using styled-components.
In order to style components, we can use TailwindCSS. Thus, we need to transition from styled-components to TailwindCSS.

Steps to Resolve

In order to install TailwindCSS in our CRA app, follow the guide here: https://tailwindcss.com/docs/guides/create-react-app
Transition the styles following the Core Concepts of TailwindCSS: https://tailwindcss.com/docs/utility-first
Eliminate all usage of styled-components

Should be fixed using #21.


ngRoute clashing route resolution

I have an issue where modules are being loaded after the module I have control of that are adding clashing routes.
So something along the lines of:
myModule.config($routeProvider) {
  $routeProvider.when(':model',{templateUrl: 'partials/showItemsInModel.htm'})
}

theirModule.config($routeProvider) {
  $routeProvider.when('dashboard',{templateUrl: 'partials/dashboard.htm'})
}

Obviously I can change my route (and am doing so for the time being), but I wondered if something else could be done, and thought of three possibilities:

Add an optional sort order causing .when to insert into the route array at the appropriate place
Have a .else (or .elsewhen) which has an implicit sort order between .when and .otherwise
Once the route has been matched carry on matching looking for a 'better' match (a regex with less variables).  I think it may be possible to automatically insert general routes below less general routes that they would match (but I haven't worked on it).

I could work on a PR if this was deemed to be worthwhile and there was some guidance about which option (if any) was preferred.

This is out of scope at this point of AngularJS development. uiRouter has better support for clashing routes and should be used if this is needed.


update to runescape NXT client

Changes to a cask
Editing an existing cask

[x] Commit message includes cask’s name (and new version, if applicable).
[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} left no offenses.

change URL to grab Runescape NXT v2.2.2 (13 Apr 2016) client

The crc parameter doesn't seem to change anything.

When I tested it, it seemed to download the older client. But now they're the same again. Oops, thanks for catching that.


parentage CDP-diacylglycerol biosynthetic process (GO:0016024)

CDP-diacylglycerol biosynthetic process (GO:0016024)
is_a pyrimidine nucleotide biosynthetic process
seems incorrect

This is a ChEBI issue. The chemical classifications in GO are derived from ChEBI.

Can you open a ticket in the ChEBI tracker?

Done
https://github.com/ebi-chebi/ChEBI/issues/3753
v

CHEBI removed this, so will close

@balhoff, can you run ontobot on ChEBI so we can get this update, assuming these changes are in the ChEBI release?

@ukemi we have been sitting on this old CHEBI PR: https://github.com/geneontology/go-ontology/pull/17673
Want me to just close and see what it looks like now?

Ah, I remember now that there were serious issues with the roles, so we haven't updated in a while. We shouldn't update yet. ping @krchristie


set default values of args in print_tensors_in_checkpoint_file

set default values of args in function print_tensors_in_checkpoint_file to avoid backwards compatibility problems.
detail in issue #17498

I have added a new commit, please review it, thx. @frankchn


ISODate used for query but the query parsed by mongodb Eloquent used numberlong

My query using Eloquent looks like this
$builder->where(['time' => ['$gt' => new UTCDateTime($dates[0]->timestamp * 1000), '$lt' => new UTCDateTime($dates[1]->timestamp * 1000)]]);
But the raw query that was parsed by Eloquent (it was captured by Debugbar) seems to be using numberLong for querying datetime
model.find({"$and":[{"action":{"$in":["add"]}},{"time":{"$gt":{"$date":{"$numberLong":"1531811040000"}},"$lt":{"$date":{"$numberLong":"1563347040000"}}}}]})
I want the parsed query to use ISODate instead of numberLong for querying.
Is this possible?

Is the query model.find({"$and":[{"action":{"$in":["add"]}},{"time":{"$gt":{"$date":{"$numberLong":"1531811040000"}},"$lt":{"$date":{"$numberLong":"1563347040000"}}}}]}) returned not correct data?


[etlas] Support WAR file generation

The special resources directory should be recognised by etlas and it should package them up into a JAR for static resources WEB-INF, META-INF, *.html, *.css files.
When building a project, all the dependency jars should be copied into the lib/ folder of the WAR file.

etlas configure --generate-war

Good one! it will do web app devlopment with eta more agile and comfortable.
To have a reference, other build tools in jvm ecosystem usually do:

put the compiled code and other resources that have to be in the classpath (config files f.e.) in WEB-INF\classes without packaging it

maybe etlas could handle it as a dependency

by default they copy the app dependencies int WEB-INF\lib

although you usually can avoid it with a option: --no-jars or alike
it's common in some envs to handle dependencies (part of all of them) outside the app, at server level

copy the content of resources (maybe configurable in cabal file) in the root of the war package

i suppose web.xml would be in that dir

they can create the flat war structure in dist to let the user config the server to use that location directly to serve the app, instead of have to make the war in each compile step

This can be easily done with the Gradle plugin. @jneira Do you still think it's a good idea to keep it inside of etlas?

yeah, gradle seems to be the correct tool for this

@jneira In that case I'm closing this issue.


A similar permission error occurred when the Docker container was started

Problem description

Problem location
The following error occurred when I tried to run EMQX
root@test:~/# docker run --rm emqx/emqx:v4.1.1
node.max_ports=1048576
/usr/bin/docker-entrypoint.sh: line 133: can't create /opt/emqx/etc/emqx.conf: Permission denied

On other machines, however, the command works fine.
But it works again when I add the -u parameter, but isn't docker root itself
docker run --rm -u root emqx/emqx:v4.1.1

In addition, it also affects the operation of Harbor. I cannot open the front end of Harbor and cannot query the log information of Harbor. The error is as follows
docker logs -f harbor-db
Error response from daemon: configured logging driver does not support reading

This also appears to be a permission issue due to Docker user error.  I tried to restart Docker through the systemctl command and even restart the server, but it obviously didn't work. So I don't know what went wrong.
It's worth mentioning that I once moved Docker's file directory to another location due to server storage issues
root@test:~/# docker info | grep Dir
WARNING: No swap limit support
 Docker Root Dir: /mnt/data/docker

cat /etc/docker/daemon.json
{
  "live-restore": true,
  "data-root": "/mnt/data/docker"
}

I saw a problem on the following URL:

I couldn't find the information I wanted. I expected to find it near the following URL:

Other:

Project version(s) affected
docker version
Client: Docker Engine - Community
 Version:           19.03.8
 API version:       1.40
 Go version:        go1.12.17
 Git commit:        afacb8b7f0
 Built:             Wed Mar 11 01:25:46 2020
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.8
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.12.17
  Git commit:       afacb8b7f0
  Built:            Wed Mar 11 01:24:19 2020
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.2.13
  GitCommit:        7ad184331fa3e55e52b890ea95e65ba581ae3429
 runc:
  Version:          1.0.0-rc10
  GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

Suggestions for a fix

Thanks for sharing the issue. If there is an issue in the docs, please let us know. For support, please try the forums or Slack.

https://forums.docker.com/
https://dockercommunity.slack.com/


Youtube app trouble

Sorry if this is a silly issue, I accidentally clicked on "Install" while there was a popup on the Youtube home page asking if I wanted to install the Youtube app (I was a little tired and my body reacted before my mind could) and now I don't know how to uninstall the app from my PC.
Surely this can be fixed quickly but I couldn't find a solution within the features I searched into.

Please check https://support.google.com/chrome/answer/9658361 and specifically the "Uninstall" section.

Ok, so for some reason that Uninstall option wouldn't appear and had to go for the manual way. I think that should be one thing to change sometime later.

I hope your question(-s) has(-ve) been answered, otherwise please let us know.
Closing this issue for now.


[httpd] new port

It seems like this isn't a C++ library; note that vcpkg is not intended to be an end user package distribution system. (We don't think our UX is great for that and don't intend to optimize for it. Apt and friends are great and we don't want to be yet another competing standard with them...)

@AugP @vicroms @JavierMatosD @data-queue @ras0219-msft We agree that if this is indeed Apache's HTTP server that this is probably not a good fit for vcpkg's curated registry. If there is something else this port is doing we misunderstood please reply to my question above. Otherwise, feel free to close the PR or we will do so in 1 week.

Can you explain how someone would use Apache httpd as a library rather than trying to configure a production HTTP server with it?

So sorry for not replying for that long time...
I want to add this port, because Httpd also provides a library for developing
modules (including files such as libhttpd.lib and mod_dav.lib).
It supports only Windows platform, because there are two build systems, CMake
for Windows platform, and autoconf for Unix platforms. It much simpler to
begin with only CMake support.


Downgrade Prow to K8s 1.23 and switch to eks-blueprints

Description of changes:
dockershim was removed in K8s 1.24, and we rely on docker to run all of the integration tests in the cluster. For now we will need to downgrade to 1.23 to support the current set of tests.
Our previous upgrade from 1.21 also broke the ghproxy deployment in the Prow Helm chart because it requires a PersistentVolumeClaim, which used to utilise the EKS built-in EBS CSI driver. As of 1.23, EKS no longer provides the EBS CSI driver, meaning we now need to install this into the cluster to create PVCs backed by EBS.
Upgrading to CDK 2 also allows us to now use the eks-blueprints module to simplify and harden our CDK cluster configuration. It also lets us install Karpenter with one line of code!
The SSM parameters that we used to have in here was not being used - we removed the DaemonSet that we used for that a long time ago. It wasn't compatible with the EKS blueprints configuration anyway so I have stripped it here.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

This was a follow-up to https://github.com/aws-controllers-k8s/test-infra/pull/301

I wanted to learn a bit more specifically about the changes to the DNS setup for our cluster. Can you write a couple sentences as to why those changes were needed?

The only differences that this PR makes to the DNS setup is that we are now installing the external-dns Helm chart through the eks-blueprints package. Part of the constructor for its add-on is a list of HostedZoneIDs so it can allowlist those within the controller. I guess this is to prevent the controller from overriding HostedZones it shouldn't be able to access. Otherwise, the DNS situation is the same - we have a Route53 HostedZone that is set up independently of this CDK and we have an Ingress that sets up a load balancer. The external-dns controller glues those together by adding records to the HostedZone with the public address of the load balancer.


Global settings

Hi, how do you set the global settings?, for example,
Chart.defaults.global.defaultFontColor = '#fff';

Added this to your typings.d.ts or xxx.d.ts
declare var Chart: any;

And you can use it after import angular2-chartjs


Dialogs Rendering, WindowStartupLocation.CenterOwner and arm-linux

Hi everybody!
First of all, thank you all for the great Job!
I've some questions and concerns about  WindowStartupLocation.CenterOwner on arm-linux (Raspbian, in this case) and the difference between rendering of Window (and Dialogs) on Windows 10 and Raspbian.
This is my situation:

the UserControl generate a new Window ( WindowStartupLocation.CenterOwner ) and lunch it.
the Window contains a new UserControl, with its ViewModel in and some methods...
On click event, I call the Avalonia Dialog...

This is the result:

Obviously, the Window 10 version is the result I'd like to see on Raspbian too...
What did I miss?
This is the code I've in the Program.cs file:
public static void Main(string[] args) {
	BuildAvaloniaApp().Start(AppMain, args);
}

public static AppBuilder BuildAvaloniaApp()
{
	return AppBuilder.Configure<App>()
		.UsePlatformDetect()
		.With(new X11PlatformOptions
		{
			EnableMultiTouch = true,
			//UseDBusMenu = true,
			UseGpu = true,
			OverlayPopups = true

		})
		.With(new Win32PlatformOptions
		{
			EnableMultitouch = true,
			AllowEglInitialization = true
		})
		.UseSkia();
}

private static void AppMain(Application app, string[] args)
{
	MainWindow = new MainWindow();
	app.Run(MainWindow);
}

Is it a known issue...or is it only my "inexperience"?
Thank you in advance for your reply...

Seems like this is an Avalonia issue.
Please open another issue at Avalonia repo: https://github.com/AvaloniaUI/Avalonia/issues


Use bash highlighting instead of bat

Last I checked, Git Shell uses bash-like syntax, not bat.  This fixes comments not being recognized and instead being parsed (such as the for receiving special highlighting).
Also some wording changes (and remove some indentation that's not needed).

:+1: thanks


Request credentials for an os-climate bucket

Requesting credentials for github user: sabrycito
Requesting credentials for the bucket: S3 Credentials for Data Loading bucket on Hive / Iceberg
Email address to send a credential download link<EMAIL_ADDRESS>Request checklist:

User can establish connection with the bucket
User can read files from the bucket
User can write files to the bucket

@MightyNerdEric  - approved, please provide credentials to Sabry

Hello @MightyNerdEric ! Can you send me the credentials please ? 🙏

@ryanaslett and @MightyNerdEric can you please prioritize for today?

Could you please specify the bucket by name? It is not clear from Data Loading bucket on Hive / Iceberg what bucket is needed, as we do not have any bucket with that name.

Hello !osc-datacommons-s3-bucket-dev02

@sabrycito You should be able to access your key and secret here: https://console-openshift-console.apps.odh-cl1.apps.os-climate.org/k8s/ns/sandbox/secrets/osc-datacommons-s3-bucket-dev02
Please let me know if you have any issues accessing the credentials.

It works! Thank you very much for your help Eric.
Le jeu. 1 juin 2023 à 08:04, Eric Ball @.***> a écrit :

@sabrycito https://github.com/sabrycito You should be able to access
your key and secret here:
https://console-openshift-console.apps.odh-cl1.apps.os-climate.org/k8s/ns/sandbox/secrets/osc-datacommons-s3-bucket-dev02
Please let me know if you have any issues accessing the credentials.
—
Reply to this email directly, view it on GitHub
https://github.com/os-climate/OS-Climate-Community-Hub/issues/92#issuecomment-1571117009,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARI7P4ZTMFZGNAQB3PMJ5KDXI7MBDANCNFSM6AAAAAAX5PGB5M
.
You are receiving this because you were mentioned.Message ID:
@.***>


Support channel::package

I cannot add tests with local channels, even conda doesn't allow channel_a::pkg if channel_a is local, it tries to get it from https://conda.anaconda.org/channel_a.

Sounds like the default channel alias interfering:
https://conda.io/projects/conda/en/latest/user-guide/configuration/use-condarc.html#set-ch-alias
Does using a file:// url work?

Does using a file:// url work?

no, it doesn't either.

Yeah, I wasn't sure that the channel::pkg syntax worked with full urls - seems like it probably should though.

I filed an issue: https://github.com/conda/conda/issues/9828

I skipped merging this PR because I'd like to not parse the JSON from Python. I'll try to come up with some refactoring to do this through libsolv :)

I have just merged the exact same idea, implemented in C++ #277 :tada;


[Q] How do I connect minIO instead of S3?

Hi @deg1020! Thank you for writing in! Are you trying to connect an external bucket to your local wandb deployment or a public cloud team?

Thank you for answer. So, I'm using minio, but what should I do if I don't want to use Notification Subscription?

Hi @deg1020, I have checked internally and unfortunately as of right now, we do not support minIO. If you would like to I would love to submit a feature request for you to our engineering team to add this functionality in the future.

Hi there, I wanted to follow up on this request. Please let us know if we can be of further assistance or if your issue has been resolved.

Hi, since we have not heard back from you we are going to close this request. If you would like to re-open the conversation, please let us know!


Enhance forward index reader for better performance

Description
Enhance the forward index reader by specializing the case for each numBits (from 1 to 31) compression.
The int value reader has 3 methods:

Bulk read 32 values
Read value without buffer boundary check
Read value with buffer boundary check

The new forward index reader uses the 3 methods based on the passed in doc ids:

For sequential doc ids, use bulk read
For non-sequential doc ids, use unchecked read if possible, and only use checked read for the last few values

We observe up to 7x improvement for the reading, detailed perf number can be found here: https://docs.google.com/spreadsheets/d/1o66G7Jw_7K4swEcp1FYCzgr0MF9JBAAM6KMGOXBSdIA/edit?usp=sharing

Seems like we are moving to FixedBitSVForwardIndexReaderV2 by default. Just in case there's a production issue, the only option would be to rollback?

@mayankshriv Yes. I don't think it's worth adding a config to switch between readers. Per the perf, the new reader has way better performance in all scenarios.

where is the logic to decide sparse vs sequential vs dense read

In FixedBitSVForwardIndexReaderV2, we use bulk read only for sequential doc ids. Per the benchmark, using bulk read for dense doc ids performs worse than unchecked read, so there is no difference for reading sparse and dense doc ids

I think the JMH perf is probably a reasonable indicator of the benefit for single read APIs. However,  I don't think we have added exhaustive unit tests for all numBits and different docId ranges covering all cases to ensure these are all functionally correct and won't segfault.
@Override
    public int read(int index) {
      int offset = index >>> 3;
      int bitOffsetInByte = index & 0x7;
      return (_dataBuffer.getByte(offset) >>> (7 - bitOffsetInByte)) & 0x1;
    }

    @Override
    public int readUnchecked(int index) {
      int offset = index >>> 3;
      int bitOffsetInByte = index & 0x7;
      return (_dataBuffer.getByte(offset) >>> (7 - bitOffsetInByte)) & 0x1;
    }

For the getDictIds function:
@Override
  public void readDictIds(int[] docIds, int length, int[] dictIdBuffer, ForwardIndexReaderContext context)

Is it correct to say that new bulk read32()  will be used here only if the docIDs array has sequential (consecutive) ids. Otherwise, we will use the new single read APIs?
The readUnchecked() has the potential to segfault / core dump?
There is a chance that perf wise, we might see -ve impact due to memcpy (especially for high throughput use cases). So for this API at least, I don't think JMH is a reasonable indicator of better performance always. It is worthwhile to do validation on a prod-like workload.

@siddharthteotia Please check my reply under the comments. I think the tests are quite thorough, and covers all the bits and different start indices.
For your questions:

Is it correct to say that new bulk read32() will be used here only if the docIDs array has sequential (consecutive) ids. Otherwise, we will use the new single read APIs?

Yes

The readUnchecked() has the potential to segfault / core dump?

If you use readUnchecked() for the last 2 values, it can read over the boundary (explained in the javadoc). This is handled within the FixedBitSVForwardIndexReaderV2

There is a chance that perf wise, we might see -ve impact due to memcpy (especially for high throughput use cases). So for this API at least, I don't think JMH is a reasonable indicator of better performance always. It is worthwhile to do validation on a prod-like workload.

Why is memcpy involved here? The new reader won't read extra values because the bulk read is only used for sequential ids. I already asked @pradeepgv42 to try this, and he confirmed up to 45% query latency drop comparing with the current reader.

@siddharthteotia Please check my reply under the comments. I think the tests are quite thorough, and covers all the bits and different start indices.
For your questions:

Is it correct to say that new bulk read32() will be used here only if the docIDs array has sequential (consecutive) ids. Otherwise, we will use the new single read APIs?

Yes

The readUnchecked() has the potential to segfault / core dump?

If you use readUnchecked() for the last 2 values, it can read over the boundary (explained in the javadoc). This is handled within the FixedBitSVForwardIndexReaderV2

There is a chance that perf wise, we might see -ve impact due to memcpy (especially for high throughput use cases). So for this API at least, I don't think JMH is a reasonable indicator of better performance always. It is worthwhile to do validation on a prod-like workload.

Why is memcpy involved here? The new reader won't read extra values because the bulk read is only used for sequential ids. I already asked @pradeepgv42 to try this, and he confirmed up to 45% query latency drop comparing with the current reader.

This is a memcpy?
for (int i = bulkStartIndex; i < bulkEndIndex; i += 32) {         _reader.read32(i, buffer);         System.arraycopy(buffer, 0, dictIdBuffer, index, 32);         index += 32;       }
Just to be on the same page, bulkRead will be used only for queries like select * without filter or any query without filter or any query with range filter on sorted column?

@siddharthteotia Please check my reply under the comments. I think the tests are quite thorough, and covers all the bits and different start indices.
For your questions:

Is it correct to say that new bulk read32() will be used here only if the docIDs array has sequential (consecutive) ids. Otherwise, we will use the new single read APIs?

Yes

The readUnchecked() has the potential to segfault / core dump?

If you use readUnchecked() for the last 2 values, it can read over the boundary (explained in the javadoc). This is handled within the FixedBitSVForwardIndexReaderV2

There is a chance that perf wise, we might see -ve impact due to memcpy (especially for high throughput use cases). So for this API at least, I don't think JMH is a reasonable indicator of better performance always. It is worthwhile to do validation on a prod-like workload.

Why is memcpy involved here? The new reader won't read extra values because the bulk read is only used for sequential ids. I already asked @pradeepgv42 to try this, and he confirmed up to 45% query latency drop comparing with the current reader.

This is a memcpy
`for (int i = bulkStartIndex; i < bulkEndIndex; i += 32) {
        _reader.read32(i, buffer);
        System.arraycopy(buffer, 0, dictIdBuffer, index, 32);
        index += 32;
      }`

Just to be on the same page, bulkRead will be used only for queries like select * without filter or any query without filter or any query with range filter on sorted column?

Yes, correct

Codecov Report

Merging #6262 (e15827b) into master (1beaab5) will decrease coverage by 1.26%.
The diff coverage is 45.12%.

@@            Coverage Diff             @@
##           master    #6262      +/-   ##
==========================================
- Coverage   66.44%   65.18%   -1.27%
==========================================
  Files        1075     1252     +177
  Lines       54773    61174    +6401
  Branches     8168     8859     +691
==========================================
+ Hits        36396    39878    +3482
- Misses      15700    18465    +2765
- Partials     2677     2831     +154

Flag
Coverage Δ

unittests
65.18% <45.12%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...e/pinot/broker/api/resources/PinotBrokerDebug.java
0.00% <0.00%> (-79.32%)
:arrow_down:

...ot/broker/broker/AllowAllAccessControlFactory.java
71.42% <ø> (-28.58%)
:arrow_down:

.../helix/BrokerUserDefinedMessageHandlerFactory.java
33.96% <0.00%> (-32.71%)
:arrow_down:

...ker/routing/instanceselector/InstanceSelector.java
100.00% <ø> (ø)

...ava/org/apache/pinot/client/AbstractResultSet.java
66.66% <0.00%> (+9.52%)
:arrow_up:

.../main/java/org/apache/pinot/client/Connection.java
35.55% <0.00%> (-13.29%)
:arrow_down:

...inot/client/JsonAsyncHttpPinotClientTransport.java
10.90% <0.00%> (-51.10%)
:arrow_down:

...not/common/assignment/InstancePartitionsUtils.java
73.80% <ø> (+0.63%)
:arrow_up:

.../apache/pinot/common/exception/QueryException.java
90.27% <ø> (+5.55%)
:arrow_up:

...pinot/common/function/AggregationFunctionType.java
98.27% <ø> (-1.73%)
:arrow_down:

... and 1097 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fa7b0e4...e15827b. Read the comment docs.


Rock64 armhf vs arm64?

Hi,
I'm using focal-minimal-rock64-0.10.12-1184-armhf.img. I tried to use an armhf build of a third-party package. When updating from their repo, I got this error:
doesn't support architecture 'arm64'
So, to be clear, is the armhf image 32-bit or 64-bit?

armhf is 32bit...


Memory card game

Indian Tourist Places Memory Game
Welcome to the Indian Tourist Places Memory Game! This simple yet engaging game challenges players to match pairs of cards featuring famous Indian tourist attractions.
How to Play

Open the index.html file in your web browser to start the game.
You'll see a grid of face-down cards.
Click on any card to flip it over and reveal the tourist place name.
Click on another card to try and find its match.
If the two cards match, they'll stay face-up and turn green.
If they don't match, they'll flip back face-down after a short delay.
Continue flipping cards and finding matches until all pairs are found.
The game tracks your moves and time, so try to complete it as quickly as possible!
Once you've found all pairs, you'll see a congratulatory message with your score.
Click the "Reset Game" button at any time to start a new game.

Features

Responsive design that works on desktop and mobile devices
Timer to track how long it takes you to complete the game
Move counter to keep track of how many card flips you've made
Smooth animations for card flipping
Randomized card positions for each new game

Tourist Places Featured

Taj Mahal
Red Fort
Gateway of India
Hawa Mahal
Qutub Minar
Golden Temple
India Gate

Have fun exploring these famous Indian landmarks while testing your memory!

https://github.com/user-attachments/assets/50af086c-378f-428d-bbce-7f3d67edc381
Hii @strivedi4u , i have added a simple memory card game to the tourist-page file , please have a review(video attached) , if you find it useful , merge it.Thanks!


Swap plan (upgrade) and pay immediately

Hi,
is it possible to swap your plan and pay directly for the extra costs (if it's an upgrade)?
So after $user->subscription('main')->swap('other-plan-id'); you go straight to the mollie checkout?
Now it's processed within the order itself.
Thanks,

H @jeroenrosendaal ,
Any surplus costs are incurred directly using a mandated payment. No need to go through the checkout. The only caveat is that it can take a while for the payment to reach its definitive state (paid or failed).


teams: cleanups for test and a new test

small cleanup to TestRotateHiddenSelf
add TestRotateHiddenOther, which has Alice rotating and Bob doing loads and making sure he's getting the right data

(@heronhaye short follow-on to the prior PR, just a test)


Please discard: [ksp-redis-hardening-rule-audit-redis-dangerous-command.yaml]

As KubeArmor currently does not support Reddis
Policy link - [https://github.com/kubearmor/policy-templates/blob/main/redis/system/ksp-redis-hardening-rule-audit-redis-dangerous-command.yaml]

Closing this issue since the PR https://github.com/kubearmor/policy-templates/pull/1011 to remove the policy is merged


xarray Data Container Selection for multivariate time series

Initially I had intended for WindowingScheme and its associated data transformations to operate on any of the users choice of numpy array, xr.DataArray, or xr.Dataset objects.  However, the handling for that bloats the code and reduces readability.  A review of use cases should be carried out and ideally all incoming data will be cast to a single data container which is used throughout the WindowingScheme associated functions.
In the following I use the terms MVTS and TSBlock and xr.DataArray quasi-interchangably.

supporting of numpy array: Y/N
N: Cull this option.  It is trivial to cast a numpy array to xr.DataArray, so we can simply have a type check function that identifies np.ndarray inputs and returns a DataArray version.  Note that (at least for now) all the fundamental linear algebra operations are numpy anyhow, and operate on xr_obj.data so we retain methods that take ndarrays, they just are not called directly through WindowingScheme().
Decision: numpy arrays will not be directly supported.  We will create a placeholder function that would cast a numpy array to xr.DataArray or xr.Dataset

supporting of xr.DataArray: Y/N
Y: The DataArray is the closest thing to what Gary calls a TSBlock().  It is a multivariate time series that has all data simultaneously sampled, allows for an arbitrary number of channels, is continuous (while allowing for "nan gaps") and this continuity is an assumption of the sliding window operator.  This xr.DataArray is particularly well suited to WindowingScheme operations

supporting of xr.Dataset: Y/N
N: while initially surprised at the recommendation to not support xr.Dataset here are the arguments:
a) FOR; allowing xr.Dataset as well as xr.DataArray is more general, less restrictive, yay
b) AGAINST: each class we want to support will add complexity and detract from readability
c) AGAINST: Any MT xr.Dataset that conforms to the requirement of being continuous multivariate data has a trivial xr.DataArray representation.  If it does not have this property it should be cast into a colelction of TSBlock() objects that do have these properties. This sort of checking and factoring will only reduce readability inside WindowingScheme()

Verdict: WindowingScheme should take xr.DataArray objects.  An external wrapping function will concern itself with chunking Datasets into collections of MVTS.
Also, this allows us to reserve xr.Dataset for TimeSeriesCollection(), and/or for DecimationLevels
The DataArray will be 2-dimensional with Coordinates ["channel", "time"].  Default will be to make time the 0th dimension and channel the 1st.  I.e. the data will store one-row-per-sample

Actually, now that I have more xarray experience, it is not important which of DataArray or Dataset we use since they can be transformed into one another
da.to_dataset(), ds.to_dataarray()
And I think we will not support numpy arrays, but we can have a method that casts to xarray with default ["channel" "time"] labels for the smaller and larger dimensions respectively

Practically we can use RunTS from mth5 for now.  This has_a dataset which is an xarray Dataset()


Fix the cursor position in the XOAI implementation of ResumptionTokenHelper

Opening this issue to make a quick pull request.
The OAI spec says the cursor position should start with 0; the XOAI implementation starts with 1.
I.e., currently the resumption token under the 1st page of results looks like this:
<resumptionToken cursor="1">
   MToxMDB8Mjp8Mzp8NDp8NTpvYWlfZGM=
</resumptionToken>

It should instead say cursor="0" etc.

Dumb question, how come I can’t make a PR into gdcc/xoai? - https://github.com/gdcc/xoai/pull/new/30-resumptiontoken-cursor redirects me to DSpace/xoai and wants to open a PR there, into their main branch (with all the changes you’ve made since march, that is).

I'm pretty sure it's something on the github end, not me... super annoying.

I will close the issue. See the linked PR #31 for more info; in short, the original XOAI implementation of the cursor was wrong in more ways than this; by the spec, it was apparently supposed to count the number of items served - but the XOAI counts the pages served.
Will be properly implemented in a different PR that's already in the works.


Continuous Integration Failing Erroneously

Repro in PR
When submitting even trivial pull-requests, continuous integration is failing. Digging in a little, it seems that the "gas" component started mistakenly detecting security vulnerabilities in example files that have hard-coded faux passwords. The cause of this regression is unknown, but I suspect that it was a bug introduced by an external dependency (like gas itself) as these issues started independently of any commit made in this repository.

I have mitigated this issue by temporarily disabling gas checks during continuous integration. IT IS NOT YET SOLVED. However, because it is no longer blocking PRs, I'll lower the priority to P1.

After digging into gas, I discovered that they changed the engine they use to resolve globs passed as arguments. This resulted in a slight change in behavior where, basically the regex used to evaluate paths changed from /<somePattern>$/ to /^<somePattern>$/. I submitted an issue in the gas repository because of the breaking change, but also updated out .travis.yml file to accommodate this change in behavior. #487

Assigning to salameer to close.

Thanks Martin! Closing


apt-get needs manual intervention to accept the licenese

When installing on Ubuntu, apt-get asks for a manual confirmation of the license agreement.
I want to automate the installation so need to do something similar to this:
https://stackoverflow.com/questions/19275856/auto-yes-to-the-license-agreement-on-sudo-apt-get-y-install-oracle-java7-instal
What are the debconf commands I need to automate the acceptance of the license.
Automated installations should always be documented.
Thanks.

I just tried this and I don't get asked for a manual confirmation of the license agreement
apt-get install sqlcmd
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
sqlcmd
0 upgraded, 1 newly installed, 0 to remove and 125 not upgraded.
Need to get 0 B/5242 kB of archives.
After this operation, 19.3 MB of additional disk space will be used.
Selecting previously unselected package sqlcmd.
(Reading database ... 32479 files and directories currently installed.)
Preparing to unpack .../sqlcmd_1.2.1-1~buster_all.deb ...
Unpacking sqlcmd (1.2.1-1~buster) ...
Setting up sqlcmd (1.2.1-1~buster) ...
Can you share your output?

Closing, waiting for OP to share output of manual intervention (I'm not seeing this locally)


Possibly add multiple attachment file to a nested field

Hi there,
This gem was awesome and helped me a lot with dynamic nested fields.
Currently, I try to implement such nested fields or records that contain file fields that need to have multiple = true.
I have three model here rfq model contain multiple rfq_item and rfq_item has multiple rfq_item_attachment.
I have my nested fields as below HTML code:
%tr.nested-fields{"data-controller" => "select2 rfq flatpickr"}
  %td
    = f.input :item_description, label: false
  %td
    = f.input :link_ref, label: false
  %td
    = f.input :quantity, label: false
  %td
    = f.association :unit_of_measure, value_method: :id, label_method: :unit_of_measure, include_blank: true, label: false
  -# %td
  -#   = f.text_field :deliver_by_date, placeholder: "select date..", class: "form-control bg-transparent datepicker"
  %td
    = f.input :requester_recommended_vendor, label: false
  %td
    -# = f.file_field :attachment, multiple: true, name: "rfq_items[attachment][]", label: false
    = f.fields_for :rfq_item_attachments do |att|
      = att.file_field :attchment, :multiple => true
  %td
    = link_to_remove_association '<i class="bi bi-trash"></i>'.html_safe, f, { data: {rfq_target: 'remove', action: "click->rfq#remove" }, class: "btn-sm btn-danger" }

Chrome inspects the element as below:
`

`
Parameter when form submit:
Parameters: {"authenticity_token"=>"[FILTERED]", "rfq"=>{"requested_by"=>"Bunna Kal", "department"=>"Technology", "need_by_date"=>"20-04-2024", "delivery_to"=>"IT department", "warranty_term_id"=>"1", "rfq_items_attributes"=>{"0"=>{"item_description"=>"Test", "link_ref"=>"fsfs", "quantity"=>"1.0", "unit_of_measure_id"=>"2", "requester_recommended_vendor"=>"Testing", "rfq_item_attachments"=>{"attchment"=>["", #<ActionDispatch::Http::UploadedFile:0x0000000141f339b8 @tempfile=#<Tempfile:/var/folders/8n/nscxqsgs50gddvmfjzvhw1100000gn/T/RackMultipart20240321-46633-9prdbi.jpeg>, @original_filename="bunna.jpeg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"rfq[rfq_items_attributes][0][rfq_item_attachments][attchment][]\"; filename=\"bunna.jpeg\"\r\nContent-Type: image/jpeg\r\n">, #<ActionDispatch::Http::UploadedFile:0x0000000141f338a0 @tempfile=#<Tempfile:/var/folders/8n/nscxqsgs50gddvmfjzvhw1100000gn/T/RackMultipart20240321-46633-ellga1.png>, @original_filename="LikeableTours.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"rfq[rfq_items_attributes][0][rfq_item_attachments][attchment][]\"; filename=\"LikeableTours.png\"\r\nContent-Type: image/png\r\n">]}, "_destroy"=>"false", "id"=>"13"}}, "status"=>"Created"}, "rfq_attachments"=>{"attachment"=>[""]}, "commit"=>"Update", "locale"=>"en", "id"=>"8"}

The error in console:
Unpermitted parameter: :rfq_item_attachments. Context: { controller: RfqsController, action: update, request: #<ActionDispatch::Request:0x0000000141f37400>, params: {"_method"=>"patch", "authenticity_token"=>"[FILTERED]", "rfq"=>{"requested_by"=>"Bunna Kal", "department"=>"Technology", "need_by_date"=>"20-04-2024", "delivery_to"=>"IT department", "warranty_term_id"=>"1", "rfq_items_attributes"=>{"0"=>{"item_description"=>"Test", "link_ref"=>"fsfs", "quantity"=>"1.0", "unit_of_measure_id"=>"2", "requester_recommended_vendor"=>"Testing", "rfq_item_attachments"=>{"attchment"=>["", #<ActionDispatch::Http::UploadedFile:0x0000000141f339b8 @tempfile=#<Tempfile:/var/folders/8n/nscxqsgs50gddvmfjzvhw1100000gn/T/RackMultipart20240321-46633-9prdbi.jpeg>, @original_filename="bunna.jpeg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"rfq[rfq_items_attributes][0][rfq_item_attachments][attchment][]\"; filename=\"bunna.jpeg\"\r\nContent-Type: image/jpeg\r\n">, #<ActionDispatch::Http::UploadedFile:0x0000000141f338a0 @tempfile=#<Tempfile:/var/folders/8n/nscxqsgs50gddvmfjzvhw1100000gn/T/RackMultipart20240321-46633-ellga1.png>, @original_filename="LikeableTours.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"rfq[rfq_items_attributes][0][rfq_item_attachments][attchment][]\"; filename=\"LikeableTours.png\"\r\nContent-Type: image/png\r\n">]}, "_destroy"=>"false", "id"=>"13"}}, "status"=>"Created"}, "rfq_attachments"=>{"attachment"=>[""]}, "commit"=>"Update", "locale"=>"en", "controller"=>"rfqs", "action"=>"update", "id"=>"8"} }

I am not really sure what to add in controller to allow this rfq_item_attachment. I am using Carrierwave.
My controller parameter controller:
def rfq_params
    params.require(:rfq).permit(:requested_by, :department, :need_by_date, :user_id, :status, :total_rfq_qty, :delivery_to, :warranty_term_id, :supplier_id, :new_supplier,
    rfq_items_attributes: [:id, :item_description, :unit_of_measure_id,:quantity, :deliver_by_date, :link_ref, :requester_recommended_vendor, :attachment, :status, :_destroy, :rfq_item_attachments],
    rfq_attachments_attributes: [:id, :rfq_id, :attachment])
  end

So, what would be I have missing here? You can also see the form below:
I am waiting to hearing from you very soon.

I think you should fix your rfq_params like this:
def rfq_params
    params.require(:rfq).permit(
        :requested_by, :department, :need_by_date, :user_id, :status, :total_rfq_qty, :delivery_to,
        :warranty_term_id, :supplier_id, :new_supplier,
        rfq_items_attributes: [
              :id, :item_description, :unit_of_measure_id,:quantity, :deliver_by_date, :link_ref,
              :requester_recommended_vendor, :attachment, :status, :_destroy,
              :rfq_item_attachments: [:id, :rfq_id, :attachment]
        ]
    )
  end

Mmmmm but do you have the accepts_nested_attributes also in the RfqItem model?

Hello @nathanvda ,
Thank you for your prompt reply  here but I still have no luck to make this getting to work as exspected.
I have created a simple Rails app (Rails 7); please have a look here and suggest what should be the correct approach.
I am waiting to hearing from you very soon.
Best,
Bunna


Implement MatchCommand

DO NOT MERGE THIS BRACH

It is currently pointing to branch-ui-display-three-lists for better review experience

@wassilililily @Green-Tea-123 For your review, please
@AlekKwek18 @Quasant For your information, please
Note:

closes #108
Will add corresponding test in the future #110
Simplify Class Diagram : [Person] <--(matches, *)------(match, 1)--> [Job]
Currently it only save data to json file after match command (for my testing)
the association does not load from json for now, I presume @Quasant will handle the rest?
I am using <COMPANY_NAME>::<JOB_NAME> as job identifier (for establishing association)
I am using contact name as contact identifier for ease of implementation, I have created an issue #109 for tracking
Added necessary setJob() functions to update Job's matches

Overall LGTM.
Are you going to check if the matches are correct when the model loads from a save?
If yes, I suggest you implement some function in the model that compares a job list and contact list with the basis of checking the matches between them.

That is a good point, I think we should validate the integrity of our data after they are all loaded.
The association does not load from json for now, because I am still not exactly sure how is the work split between @Quasant, @AlekKwek18 and I. I will check with them separately on this.


Adding a tool/workflow to collection should show display names

Feature Request
Desired behaviour
When adding a tool or workflow to a collection the drop down should show the display name for both the organization and collection field. Currently it shows the regular 'name' which is less readable (doesn't use spaces, might be an acronym, etc)

┆Issue is synchronized with this Jira Story
┆Issue Type: Story
┆Fix Versions: Dockstore 1.6
┆Sprint: Seabright Sprint 6 Ferry
┆Issue Number: DOCK-565

Display names are showing, but rejected organizations still show on dropdown
#2244


textview doesn't pop up when I write viewdidappear in the chat controller

hi,
I hope there isn't a duplicate of this, I tried looking.
So this bug only appears on the phones not the simulator.
I tried it with my code and with your swift version of the code, since I'm no good at objective c.
I ran this code on the iphone 5s.
but when you add viewdidappear to the class, the text view does not pop up anymore.
is this something that we're just going to have to live with?

Thanks! :smile:
Please provide all the information in the issue template so we can help!
And don't forget to read our contribution guidelines. :blush:

@jadslim313 hey use super for viewdidappear
override func viewDidAppear(animated: Bool) {
super.viewDidAppear(true)

thanks @sreeji44 !


[bug] test failure with specific seed indicates cross-pollution

Please describe the bug
The CI test run at https://ci.nokogiri.org/teams/nokogiri-core/pipelines/nokogiri/jobs/cruby-gem-test/builds/66 failed, and a rerun passed. We don't generally have flaky tests, so I investigated.
Thanks to minitest-bisect this was a cinch to narrow down to:
Culprit methods: ["Nokogiri::XML::TestDocument#test_xpath_syntax_error"]
...
# Running tests with run options --seed=59263 -n "/^(?:Nokogiri::XML::TestDocument#(?:test_xpath_syntax_error)|Nokogiri::XML::SAX::TestParserContext#(?:test_from_file))$/":

Help us reproduce what you're seeing
You should be able to repro by running:
TESTOPTS='--seed=59263 "-n/^(?:Nokogiri::XML::TestDocument#(?:test_xpath_syntax_error)|Nokogiri::XML::SAX::TestParserContext#(?:test_from_file))$/"' bundle exec rake test

Oh, and I'm hoping to land fixes for #1610 in the v1.11/v1.12 timeframe.

Oh, and I'm hoping to land fixes for #1610 in the v1.11/v1.12 timeframe.

The commit I mentioned above is in a PR sitting at https://github.com/sparklemotion/nokogiri/pull/2096

The commit I mentioned above is in a PR sitting at https://github.com/sparklemotion/nokogiri/pull/2096


Cesium.js at version as 1.117.0+ Deprecate and remove SpotLight  and PointLight?

Feature
when Cesium.js at version as 1.117.0+，Deprecate and remove SpotLight and PointLight? and when i want to use SpotLight and PointLight，What should I do?

Hi @maxiaoqu, thanks for bringing up this issue! I believe we are already tracking it in https://github.com/CesiumGS/cesium/issues/8518. I'm going to close your issue to keep the discussion in one place. If you have any further input on this, please post it there instead.