MQTT integration doesn't work

Describe the bug
I don't get any reports into Grafana nor do I see any entities in MQTT. Secondly, the initial MQTTuser that I have defined doesn't have access anymore.
Steps to reproduce
1. config in grafana
certfile: fullchain.pem
env_vars:

name: GF_SECURITY_ADMIN_USER
value: admin
name: GF_SECURITY_ADMIN_PASSWORD
value: XXXYYY
keyfile: privkey.pem
plugins:
natel-discrete-panel
pr0ps-trackmap-panel
grafana-piechart-panel
ssl: false

In Grafana - added datasource

2. In Postgres

3. In MQTT
logins: []
require_certificate: false
certfile: fullchain.pem
keyfile: privkey.pem
customize:
active: true
folder: mosquitto
Created files /share/mosquitto/acecesscontrollist and /share/mosquitto/acl.conf
Created an user teslamate in Home assistant (settings)
4 in Teslamate
database_user: teslamate
database_pass: pw
database_name: teslamate
database_host: 29b65938-postgres
database_ssl: false
database_port: 5432
disable_mqtt: false
encryption_key: aradomencryptionkey
grafana_import_dashboards: true
grafana_folder_name: TeslaMate
grafana_host: a0d7b954-grafana
grafana_port: 3000
grafana_user: admin
grafana_pass: pw
import_dir: /share/teslamate
mqtt_host: core-mosquitto
mqtt_user: teslamate
mqtt_pass: pw
mqtt_tls: false
mqtt_tls_accept_invalid_certs: false
mqtt_namespace: ""
timezone: Asia/Jerusalem
logs
Teslamate
2023-02-09 11:15:28.298 [info] Start of drive initiated by: %TeslaApi.Stream.Data{elevation: 265, est_heading: 352, est_lat: 31.887999, est_lng: 35.01521, est_range: 94, heading: 357, odometer: 20004.9, power: 2, range: 125, shift_state: "R", soc: 39, speed: 0, time: ~U[2023-02-09 09:15:28.195Z]}
2023-02-09 11:15:28.298 car_id=1 [info] Driving / Start
2023-02-09 11:28:26.992 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (603.217 ms)
2023-02-09 11:28:27.509 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (516.479 ms)
2023-02-09 11:28:27.518 [info] End of drive initiated by: %TeslaApi.Vehicle.State.Drive{gps_as_of:<PHONE_NUMBER>, heading: 342, latitude: 31.906416, longitude: 35.017888, native_latitude: 31.906416, native_location_supported: 1, native_longitude: 35.017888, native_type: "wgs", power: 1, shift_state: "P", speed: 0, timestamp:<PHONE_NUMBER>256}
2023-02-09 11:28:27.518 car_id=1 [info] Driving / Ended / 5 km – 13 min
2023-02-09 11:28:27.518 car_id=1 [info] Start / :online
2023-02-09 11:29:55.811 car_id=1 [info] Received stream data: :inactive
2023-02-09 11:39:24.107 [warning] Too many disconnects from streaming API
2023-02-09 11:39:24.107 car_id=1 [info] Creating new connection …
2023-02-09 11:39:24.107 car_id=1 [info] Disconnecting ...
2023-02-09 11:39:24.109 car_id=1 [info] Connecting ...
2023-02-09 11:42:36.353 [info] Start of drive initiated by: %TeslaApi.Vehicle.State.Drive{gps_as_of:<PHONE_NUMBER>, heading: 342, latitude: 31.906416, longitude: 35.017888, native_latitude: 31.906416, native_location_supported: 1, native_longitude: 35.017888, native_type: "wgs", power: 1, shift_state: "R", speed: 0, timestamp:<PHONE_NUMBER>175}
2023-02-09 11:42:36.353 car_id=1 [info] Driving / Start
2023-02-09 11:49:37.749 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (345.439 ms)
2023-02-09 11:49:38.241 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (491.345 ms)
2023-02-09 11:49:38.246 [info] End of drive initiated by: %TeslaApi.Vehicle.State.Drive{gps_as_of:<PHONE_NUMBER>, heading: 204, latitude: 31.900113, longitude: 35.008391, native_latitude: 31.900113, native_location_supported: 1, native_longitude: 35.008391, native_type: "wgs", power: 1, shift_state: "P", speed: 0, timestamp:<PHONE_NUMBER>148}
2023-02-09 11:49:38.246 car_id=1 [info] Driving / Ended / 1 km – 7 min
2023-02-09 11:49:38.246 car_id=1 [info] Start / :online
2023-02-09 11:49:57.966 [info] Start of drive initiated by: %TeslaApi.Stream.Data{elevation: 232, est_heading: 204, est_lat: 31.900116, est_lng: 35.008392, est_range: 95, heading: 204, odometer: 20009.0, power: 1, range: 120, shift_state: "D", soc: 38, speed: 0, time: ~U[2023-02-09 09:49:57.863Z]}
2023-02-09 11:49:57.966 car_id=1 [info] Driving / Start
2023-02-09 11:51:15.946 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (290.800 ms)
2023-02-09 11:51:16.940 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (993.101 ms)
2023-02-09 11:51:16.950 [info] End of drive initiated by: %TeslaApi.Vehicle.State.Drive{gps_as_of:<PHONE_NUMBER>, heading: 52, latitude: 31.899524, longitude: 35.008917, native_latitude: 31.899524, native_location_supported: 1, native_longitude: 35.008917, native_type: "wgs", power: 1, shift_state: "P", speed: 0, timestamp:<PHONE_NUMBER>372}
2023-02-09 11:51:16.950 car_id=1 [info] Driving / Ended / 0 km – 1 min
2023-02-09 11:51:16.950 car_id=1 [info] Start / :online
2023-02-09 11:53:07.433 car_id=1 [info] Received stream data: :inactive
2023-02-09 12:01:34.531 [warning] Too many disconnects from streaming API
2023-02-09 12:01:34.531 car_id=1 [info] Creating new connection …
2023-02-09 12:01:34.531 car_id=1 [info] Disconnecting ...
2023-02-09 12:01:34.533 car_id=1 [info] Connecting ...
2023-02-09 12:10:04.678 car_id=1 [info] Received stream data: :inactive
2023-02-09 12:10:48.631 [info] Start of drive initiated by: %TeslaApi.Vehicle.State.Drive{gps_as_of:<PHONE_NUMBER>, heading: 46, latitude: 31.899514, longitude: 35.008895, native_latitude: 31.899514, native_location_supported: 1, native_longitude: 35.008895, native_type: "wgs", power: 1, shift_state: "R", speed: 1, timestamp:<PHONE_NUMBER>370}
2023-02-09 12:10:48.631 car_id=1 [info] Driving / Start
2023-02-09 12:16:51.411 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/number/vehicle_data -> 408 (134.447 ms)
2023-02-09 12:16:51.543 car_id=1 [warning] Vehicle went offline while driving
2023-02-09 12:16:52.410 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/numbervehicle_data -> 408 (133.107 ms)
2023-02-09 12:16:52.911 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/number/vehicle_data -> 408 (127.359 ms)
2023-02-09 12:16:53.418 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/number/vehicle_data -> 408 (128.390 ms)
2023-02-09 12:16:55.247 car_id=1 [info] Vehicle is back online
2023-02-09 12:16:55.538 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (283.640 ms)
2023-02-09 12:16:56.046 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (507.982 ms)
2023-02-09 12:16:56.055 [info] End of drive initiated by: %TeslaApi.Vehicle.State.Drive{gps_as_of: number1, heading: 360, latitude: 31.887778, longitude: 35.002349, native_latitude: 31.887778, native_location_supported: 1, native_longitude: 35.002349, native_type: "wgs", power: 0, shift_state: "P", speed: 0, timestamp:<PHONE_NUMBER>457}
2023-02-09 12:16:56.055 car_id=1 [info] Driving / Ended / 3 km – 6 min
2023-02-09 12:16:56.055 car_id=1 [info] Start / :online
2023-02-09 12:19:42.585 car_id=1 [info] Received stream data: :inactive
2023-02-09 12:21:15.383 car_id=1 [info] Suspending logging
2023-02-09 12:28:10.973 [warning] Too many disconnects from streaming API
2023-02-09 12:28:10.973 car_id=1 [info] Creating new connection …
2023-02-09 12:28:10.973 car_id=1 [info] Disconnecting ...
2023-02-09 12:28:10.974 car_id=1 [info] Connecting ...
2023-02-09 12:51:16.793 car_id=1 [info] Start / :asleep
2023-02-09 12:51:16.795 car_id=1 [info] Disconnecting ...
2023-02-09 13:30:40.229 car_id=1 [info] Start / :online
2023-02-09 13:30:40.237 car_id=1 [info] Connecting ...
2023-02-09 13:34:14.777 car_id=1 [info] Suspending logging
2023-02-09 13:41:27.970 [info] GET /
2023-02-09 13:41:27.972 [info] Sent 200 in 1ms
2023-02-09 13:41:34.741 car_id=1 [info] Resuming logging
2023-02-09 13:42:21.675 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/number/vehicle_data -> 408 (9125.905 ms)
2023-02-09 13:42:21.675 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
2023-02-09 13:42:21.675 car_id=1 [error] Error / :unknown
2023-02-09 13:42:50.820 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/number/vehicle_data -> 408 (9143.671 ms)
2023-02-09 13:42:50.820 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
2023-02-09 13:42:50.820 car_id=1 [error] Error / :unknown
2023-02-09 13:43:44.216 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/1493132975230022/vehicle_data -> 408 (131.968 ms)
2023-02-09 13:43:54.479 car_id=1 [info] Start / :asleep
2023-02-09 13:43:54.486 car_id=1 [info] Disconnecting ...

MQTT
2023-02-07 11:00:55: New connection from <IP_ADDRESS>:42808 on port 1883.
2023-02-07 11:00:55: New client connected from <IP_ADDRESS>:42808 as TESLAMATE_302E3135393 (p2, c0, k60, u'teslamate').

Postgres
PostgreSQL Database directory appears to contain a database; Skipping initialization
2023-02-07 09:45:50.203 IST [7] LOG:  starting PostgreSQL 12.5 on x86_64-pc-linux-musl, compiled by gcc (Alpine 9.3.0) 9.3.0, 64-bit
2023-02-07 09:45:50.203 IST [7] LOG:  listening on IPv4 address "<IP_ADDRESS>", port 5432
2023-02-07 09:45:50.203 IST [7] LOG:  listening on IPv6 address "::", port 5432
2023-02-07 09:45:50.236 IST [7] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2023-02-07 09:45:50.250 IST [34] LOG:  database system was shut down at 2023-02-07 09:45:49 IST
2023-02-07 09:45:50.254 IST [7] LOG:  database system is ready to accept connections

Grafana
Grafana server is running with elevated privileges. This is not recommended
logger=settings t=2023-02-09T14:00:25.414425747+02:00 level=info msg="Starting Grafana" version=9.2.4 commit=64017e8ca6 branch=HEAD compiled=2022-11-08T12:38:42+02:00
logger=settings t=2023-02-09T14:00:25.414543213+02:00 level=info msg="Config loaded from" file=/usr/share/grafana/conf/defaults.ini
logger=settings t=2023-02-09T14:00:25.41456+02:00 level=info msg="Config loaded from" file=/etc/grafana/grafana.ini
logger=settings t=2023-02-09T14:00:25.414564135+02:00 level=info msg="Config overridden from Environment variable" var="GF_SECURITY_ADMIN_USER=admin"
logger=settings t=2023-02-09T14:00:25.41456779+02:00 level=info msg="Config overridden from Environment variable" var="GF_SECURITY_ADMIN_PASSWORD=*********"
logger=settings t=2023-02-09T14:00:25.414571239+02:00 level=info msg="Path Home" path=/usr/share/grafana
logger=settings t=2023-02-09T14:00:25.414574396+02:00 level=info msg="Path Data" path=/data
logger=settings t=2023-02-09T14:00:25.414577133+02:00 level=info msg="Path Logs" path=/var/logs/grafana
logger=settings t=2023-02-09T14:00:25.414579906+02:00 level=info msg="Path Plugins" path=/var/lib/grafana/plugins
logger=settings t=2023-02-09T14:00:25.414582999+02:00 level=info msg="Path Provisioning" path=/usr/share/grafana/conf/provisioning
logger=settings t=2023-02-09T14:00:25.414586463+02:00 level=info msg="App mode production"
logger=sqlstore t=2023-02-09T14:00:25.414627727+02:00 level=info msg="Connecting to DB" dbtype=sqlite3
logger=migrator t=2023-02-09T14:00:25.423498462+02:00 level=info msg="Starting DB migrations"
logger=migrator t=2023-02-09T14:00:25.427134676+02:00 level=info msg="migrations completed" performed=0 skipped=452 duration=616.503µs
logger=plugin.loader t=2023-02-09T14:00:25.469209948+02:00 level=info msg="Plugin registered" pluginID=input
logger=plugin.loader t=2023-02-09T14:00:27.41710066+02:00 level=info msg="Plugin registered" pluginID=pr0ps-trackmap-panel
logger=plugin.loader t=2023-02-09T14:00:27.417117678+02:00 level=info msg="Plugin registered" pluginID=grafana-image-renderer
logger=plugin.loader t=2023-02-09T14:00:27.417122673+02:00 level=info msg="Plugin registered" pluginID=grafana-piechart-panel
logger=plugin.loader t=2023-02-09T14:00:27.417126895+02:00 level=info msg="Plugin registered" pluginID=natel-discrete-panel
logger=secrets t=2023-02-09T14:00:27.417277436+02:00 level=info msg="Envelope encryption state" enabled=true currentprovider=secretKey.v1
logger=query_data t=2023-02-09T14:00:27.418284371+02:00 level=info msg="Query Service initialization"
logger=live.push_http t=2023-02-09T14:00:27.421953761+02:00 level=info msg="Live Push Gateway initialization"
logger=infra.usagestats.collector t=2023-02-09T14:00:27.480787862+02:00 level=info msg="registering usage stat providers" usageStatsProvidersLen=2
logger=provisioning.alerting t=2023-02-09T14:00:27.481225884+02:00 level=info msg="starting to provision alerting"
logger=provisioning.alerting t=2023-02-09T14:00:27.481237907+02:00 level=info msg="finished to provision alerting"
logger=http.server t=2023-02-09T14:00:27.482547433+02:00 level=info msg="HTTP Server Listen" address=[::]:3000 protocol=http subUrl=/api/hassio_ingress/dWyHGMaIDKSFwBC0jCemQhGHr1oMlxI65YtUKsQ59mM socket=
logger=ngalert t=2023-02-09T14:00:27.482621435+02:00 level=info msg="warming cache for startup"
logger=grafanaStorageLogger t=2023-02-09T14:00:27.491947621+02:00 level=info msg="storage starting"
logger=ticker t=2023-02-09T14:00:27.501516488+02:00 level=info msg=starting first_tick=2023-02-09T14:00:30+02:00
logger=ngalert.multiorg.alertmanager t=2023-02-09T14:00:27.501528083+02:00 level=info msg="starting MultiOrg Alertmanager"
[14:00:27] INFO: Starting NGINX...
logger=plugin.grafana-image-renderer t=2023-02-09T14:00:28.001754487+02:00 level=warn msg="Plugin process is running with elevated privileges. This is not recommended"

I have partly the same issue as you. I can't get the MQTT integration to work. There are no errors in the logs. I have installed MQTT Explorer as well but can't see any topics.

It looks like login is working. Have you set up any ACLs?

Same here. Configured as per instructions and got the grafana dashboards.

However, when I open the dashboards, everything is blank or N/A with an error message: Failed to upgrade legacy queries Datasource TeslaMate was not found.

To add to this, I keep getting an error message - pq: password authentication failed for user when I add the username and password to the data source. I am sure it's correct as I am copy pasting it from the config.

To add to this, I keep getting an error message - pq: password authentication failed for user when I add the username and password to the data source. I am sure it's correct as I am copy pasting it from the config.

The DB user and password is only set in the initial Postgres container initialisation. If you change it afterwards it won't work sadly.
I'd suggest removing the Postgres add on, then re-adding and setting the configuration before 1st run.

I uninstalled the Postgres add on and reinstalled it. Set a username and password as per the TeslaMate config. Removed and added the datasource in the Grafana.
Got the datasource added. However, still have no data:

Had the same problem make sure the datasource is "TeslaMate"  with a capital M

If you look at the screenshots, they are the same in the configuration and data source within Grafana.
I have the same issue but mine doesn’t even login.

SQL seems to be working whereas MQTT has fatal errors

@matt-FFFFFF Got it working. I had the MQTT set to true all this time :/
Do you know how to integrate TeslaMate with HA so I can see the entities within HA? (https://docs.teslamate.org/docs/integrations/home_assistant)
TIA.

Hi,
If you have MQTT working you can follow the instructions on the Teslamate website. It's the same from here on in.

For me, I gave the write access to my mqtt user for all the topics to make it work.
user mymqttuser
topic readwrite #


Update for tokio 0.3

tokio 0.3 has been released, it would be nice to have async-compat follow this

Done.


Override aenter for CachedSession

Typechecking complaint about it being ClientSession, so override it to return CachedSession itself.
Or is it intentional to return it as ClientSession?

Looks good to me. Thanks!


AppVeyor: ODBC tests are failed

Currently ODBC tests are failed because of ODBC drivers absence.
Submitted request to support http://help.appveyor.com/discussions/suggestions/834-odbc-drivers-for-postgre-and-mysql
I will disable these tests until support request will be resolved.

Waiting for https://github.com/appveyor/ci/issues/446


Allow loads to merge into other operations during instruction selection in MachInst backends

In MachInst-based backends, instruction selection works by pattern-matching on a root opcode and potentially the opcodes that produce its inputs (the "operand tree"). Sometimes, a particular machine backend is able to pattern-match several opcodes in a certain arrangement and generate one machine instruction that covers them all (e.g.: multiply-add).
Some machine architectures have the ability to load one operand of an operation from memory. For example, on x86, we can do add rax, [rbx], which is a combination load and add (in that order).
Unfortunately, because of a (sound but conservative) design in our pattern-matching system, we cannot match patterns where the load is an operand rather than the root, because we do not allow operations that have side-effects or touch memory to move in the program. This is because reasoning about when it is safe to do so is complex. (Instruction coloring is the framework that does this reasoning, but because the color changes after the load or side-effecting op, its own color differs from that of every program point below it, so it will never merge.)
Consider the following test-case as an interesting example:
block1(v0: i32, v1: i32):
v2 = sload.i32 v0
v3 = sload.i32 v1
v4 = iadd.i32 v2, v0
v5 = iadd.i32 v3, v1

We want this to lower to two add-from-memory instructions on x86. Working bottom-up (as VCode lowering does), we first see v5 and perhaps reason that we can sink the load v3 because it does not move across any other memory ops. We would also like to do this for v2 into v4, and in this example we can, but only after we sink v3; the load producing v2 moves across where v3 used to be. Hence, a naïve coloring scheme won't necessarily work.
A solution that @julian-seward1 and I have converged on involves numbering only side-effecting ops with colors (or sequence numbers), and while scanning backward through a basic block, tracking the "current sequence number", or in other words, the next number whose op we expect to see. We permit a merge of any load with this sequence number if (i) it's in the same BB and (ii) this use is its only use; then we decrement the sequence number.
This implements the very simple rule that a load or store never moves over another load or store; but as we sink one, we create space for the one above it to sink, as well.
(Later we might want to extend this with multiple sequence numbers, one per disjoint unit of state, sort of in the spirit of a vector clock; but details there are TBD.)

cc @akirilov-arm and @abrown: this should enable us to properly handle the load-merging that LoadSplat addresses in #2278.


Failed run of standalone build after succesful binary build and execution

Hello,
I am able to use Nuitka to Program compilation with all modules embedded and run the binary just fine.
However, as I move to build a Program Distribution from the binary, the Program Distribution builds without error but fails as I go to execute the Program Distribution build.
Below are environment details and stdout details for the failed execution run of the Program Distribution build. Appreciate any help as to why the Program Distribution may be failing. End goal is to move to the onefile distribution once Program Distribution (standalone) is working. Thank you.
0.9.6
Commercial: None
Python: 3.10.0 (v3.10.0:b494f5935c, Oct  4 2021, 14:59:20) [Clang 12.0.5 (clang-1<IP_ADDRESS>)]
Flavor: Unknown
Executable: /private/tmp/binary_staging/logen_nuitka_env/bin/python
OS: Darwin
Arch: x86_64
running Nuitka-0.9.6 on macos 12.4 inside python3 venv
executed: python3 -m nuitka --follow-imports app_name
results:
Nuitka-Scons:INFO: Backend linking program with 192 modules (no progress information available).
Nuitka-Scons:WARNING: You are not using ccache.
Nuitka:INFO: Keeping build directory 'app_name.build'.
Nuitka:INFO: Successfully created 'app_name.bin'.
executed: ./app_name.bin and binary execution of app works
then executed: python3 -m nuitka --standalone app_name
results:
Nuitka-Plugins:INFO: data-files: Included data file 'certifi/cacert.pem' due to package data for 'certifi'.
Nuitka:INFO: Keeping build directory 'app_name.build'.
Nuitka:INFO: Created binary that runs on macOS 10.9 (x86_64) or higher.
Nuitka:INFO: Successfully created 'app_name.dist/app_name'.
then executed: ./app_name.dist/app_name and failed results, for the reference to file not found, the file does exist and was writable during the succesful binary execution above:
Traceback (most recent call last):
File "/private/tmp/binary_staging/app_name_nuitka_env/app_name/app_name/app_name.dist/app_name", line 14, in main
File "/private/tmp/binary_staging/app_name_nuitka_env/app_name/app_name/app_name.dist/modules/gui/app_name_gui.py", line 61, in run
File "/private/tmp/binary_staging/app_name_nuitka_env/app_name/app_name/app_name.dist/modules/common/app_name_log_handle.py", line 16, in log_handle
File "/private/tmp/binary_staging/app_name_nuitka_env/app_name/app_name/app_name.dist/logging/handlers.py", line 155, in init
File "/private/tmp/binary_staging/app_name_nuitka_env/app_name/app_name/app_name.dist/logging/handlers.py", line 58, in init
File "/private/tmp/binary_staging/app_name_nuitka_env/app_name/app_name/app_name.dist/logging/init.py", line 1167, in init
File "/private/tmp/binary_staging/app_name_nuitka_env/app_name/app_name/app_name.dist/logging/init.py", line 1197, in _open
FileNotFoundError: [Errno 2] No such file or directory: '/private/tmp/binary_staging/app_name_nuitka_env/app_name/app_name/app_name.dist/resources/log/app_name-v1.0.0-alpha.log'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/private/tmp/binary_staging/app_name_nuitka_env/app_name/app_name/app_name.dist/tokenize.py", line 332, in find_cookie
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcf in position 0: invalid continuation byte
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/private/tmp/binary_staging/app_name_nuitka_env/app_name/app_name/app_name.dist/app_name", line 26, in
File "/private/tmp/binary_staging/app_name_nuitka_env/app_name/app_name/app_name.dist/app_name", line 23, in main
File "/private/tmp/binary_staging/app_name_nuitka_env/app_name/app_name/app_name.dist/traceback.py", line 135, in format_exception
File "/private/tmp/binary_staging/app_name_nuitka_env/app_name/app_name/app_name.dist/traceback.py", line 502, in init
File "/private/tmp/binary_staging/app_name_nuitka_env/app_name/app_name/app_name.dist/traceback.py", line 383, in extract
File "/private/tmp/binary_staging/app_name_nuitka_env/app_name/app_name/app_name.dist/traceback.py", line 306, in line
File "/private/tmp/binary_staging/app_name_nuitka_env/app_name/app_name/app_name.dist/linecache.py", line 30, in getline
File "/private/tmp/binary_staging/app_name_nuitka_env/app_name/app_name/app_name.dist/linecache.py", line 46, in getlines
File "/private/tmp/binary_staging/app_name_nuitka_env/app_name/app_name/app_name.dist/linecache.py", line 136, in updatecache
File "/private/tmp/binary_staging/app_name_nuitka_env/app_name/app_name/app_name.dist/tokenize.py", line 396, in open
File "/private/tmp/binary_staging/app_name_nuitka_env/app_name/app_name/app_name.dist/tokenize.py", line 373, in detect_encoding
File "/private/tmp/binary_staging/app_name_nuitka_env/app_name/app_name/app_name.dist/tokenize.py", line 337, in find_cookie
SyntaxError: invalid or missing encoding declaration for '/private/tmp/binary_staging/app_name_nuitka_env/app_name/app_name/app_name.dist/app_name'

You got some code that that attemps to execute the main binary as if it was a script. It is not. Since you carefully avoided to provide sufficient information, I think this is far as I can help here.

Hi @kayhayen, thank your for the response. Pardon my ignorance can you elaborate on what you mean by code attempting to execute the main binary as if it was a script?
Also, can you please let me know what additional information I should include to be sufficient information? Thank you.

Well, like a minimal reproducer of the issue, i.e. code or even only module names. I am assuming you don't care enough to do that, or don't want to, but then it's just a waste of time. Create a new issue, if you can provide the issue template information.


[BUG] Cascaded Pandas UDFs not working as expected on Databricks when plugin is enabled

Describe the bug
Successively applied Pandas UDFs and MapInPandas result in exceptions or make no progress in Databricks.
Steps/Code to reproduce bug
import pyspark.sql.functions as F
import numpy as np
import pandas as pd
transformed_df = spark.range(1000000)
from pyspark.sql.functions import pandas_udf

@pandas_udf("int")
def rand_label(col: pd.Series) -> pd.Series:
  import logging
  logger = logging.getLogger('rand_label')
  logger.info("in rand label")
  print("in rand label 1")
  return pd.Series(np.random.randint(0,999,size=col.shape[0]))

@pandas_udf("int")
def rand_label2(col: pd.Series) -> pd.Series:
  import logging
  logger = logging.getLogger('rand_label')
  logger.info("in rand label")
  print("in rand label 2")
  return pd.Series(np.random.randint(0,999,size=col.shape[0]))

transformed_df_w_label_2 = transformed_df.withColumn("label", rand_label(F.lit(0)))
transformed_df_w_label_3 = transformed_df_w_label_2.filter(F.col('label') != 99).withColumn("label2", rand_label2(F.col('label')))
transformed_df_w_label_3.select(F.sum("label2").alias('sum2'),F.sum("label").alias('sum1')).collect()

results in an error:
java.lang.ArrayIndexOutOfBoundsException: 0
	at ai.rapids.cudf.Table.<init>(Table.java:58)
	at com.nvidia.spark.rapids.GpuColumnVector.from(GpuColumnVector.java:524)
	at org.apache.spark.sql.rapids.execution.python.RebatchingRoundoffIterator.$anonfun$next$3(GpuArrowEvalPythonExec.scala:158)
	at com.nvidia.spark.rapids.Arm$.withResource(Arm.scala:30)
	at org.apache.spark.sql.rapids.execution.python.RebatchingRoundoffIterator.next(GpuArrowEvalPythonExec.scala:157)
	at org.apache.spark.sql.rapids.execution.python.RebatchingRoundoffIterator.next(GpuArrowEvalPythonExec.scala:51)
	at org.apache.spark.sql.rapids.execution.python.BatchProducer$$anon$1.next(GpuArrowEvalPythonExec.scala:248)
	at org.apache.spark.sql.rapids.execution.python.BatchProducer$$anon$1.next(GpuArrowEvalPythonExec.scala:233)
        ...

Also, based on print statement output in the logs, the first udf appears to complete fully before the second one starts.   The batches should flow through both python udfs incrementally as is the case with baseline Spark.
A different behavior is observed with the following (but I think they may be related)
transformed_df = spark.read.parquet("s3a://spark-rapids-ml-bm-datasets-public/pca/1m_3k_singlecol_float32_50_files.parquet")
features_col = 'feature_array'
prediction_col = 'label'
centers = np.random.rand(1000,3000)
from pyspark.sql.types import StructType, StructField, DoubleType

sc = transformed_df.rdd.context
centers_bc = sc.broadcast(centers)

def partition_score_udf(
    pdf_iter
) :
    local_centers = centers_bc.value.astype(np.float64)
    partition_score = 0.0
    import logging
    logger = logging.getLogger('partition_score_udf')
    logger.info("in partition score udf")
    for pdf in pdf_iter:
        print("in partition score udf")
        input_vecs = np.array(list(pdf[features_col]), dtype=np.float64)
        predictions = list(pdf[prediction_col])
        center_vecs = local_centers[predictions, :]
        partition_score += np.sum((input_vecs - center_vecs) ** 2)
    yield pd.DataFrame({"partition_score": [partition_score]})

total_score = (
  # the below is extremely slow
  # if instead of transformed_df_w_label_2 we apply to transformed_df_w_label it runs fine
  # one difference is that transformed_df_ws_label_2 is itself the output of another pandas udf
  # so data for this case is passing back and forth between jvm and python workers multiple times
    transformed_df_w_label_2.mapInPandas(
        partition_score_udf,  # type: ignore
        StructType([StructField("partition_score", DoubleType(), True)]),
    )
    .agg(F.sum("partition_score").alias("total_score"))
    .toPandas()
)  # type: ignore
total_score = total_score["total_score"][0]  # type: ignore

In this case, at least in 13.3ML, the computation slows dramatically and may be deadlocked.
Expected behavior
No exception and no slowdowns, like with baseline Spark without the plugin.
Environment details (please complete the following information)

Environment location: First example: Databricks 12.2ML or 13.3ML, spark-rapids 24.04.   Second example is slow only in Databricks 13.3ML
Spark configuration settings related to the issue

spark.task.resource.gpu.amount 1
spark.task.cpus 1
spark.databricks.delta.preview.enabled true
spark.python.worker.reuse true
spark.executorEnv.PYTHONPATH /databricks/jars/rapids-4-spark_2.12-24.04.0.jar:/databricks/spark/python
spark.sql.files.minPartitionNum 2
spark.sql.execution.arrow.maxRecordsPerBatch 10000
spark.executor.cores 8
spark.rapids.memory.gpu.minAllocFraction 0.0001
spark.plugins com.nvidia.spark.SQLPlugin
spark.locality.wait 0s
spark.sql.cache.serializer com.nvidia.spark.ParquetCachedBatchSerializer
spark.rapids.memory.gpu.pooling.enabled false
spark.rapids.sql.explain ALL
spark.sql.execution.sortBeforeRepartition false
spark.rapids.sql.python.gpu.enabled true
spark.rapids.memory.pinnedPool.size 2G
spark.python.daemon.module rapids.daemon_databricks
spark.rapids.sql.batchSizeBytes 512m
spark.sql.adaptive.enabled false
spark.sql.execution.arrow.pyspark.enabled true
spark.sql.files.maxPartitionBytes<PHONE_NUMBER>000
spark.databricks.delta.optimizeWrite.enabled false
spark.rapids.sql.concurrentGpuTasks 2

Cluster shape: 2x workers with  g5.2xlarge and driver with g4dn.xlarge
Additional context
Add any other context about the problem here.

@eordentlich Thx for finding these. Could you file another issue to track the slowness running case?

The linked PR only fixes the ArrayIndexOutOfBoundsException.

@eordentlich Thx for finding these. Could you file another issue to track the slowness running case?

Done.  https://github.com/NVIDIA/spark-rapids/issues/10770


Cycle detection in undirected graph.

Description
Please include a summary of the change and which issue is fixed. List any dependencies that are required for this change.
Fixes #(#1032 )
Replace 977 with the issue number which is fixed in this PR
Type of change
Please delete options that are not relevant.

[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

[ ] My code follows the style guidelines(Clean Code) of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] My changes generate no new warnings

@Amit366 @Saurabh4626 Sir I have added the solution please check and merge this PR.

@KishkinJ10 u were not assigned this issue


Always set the CSS variables for gutters in containers

We already do this in rows, so to best support our containers, we need to do it at the container level as well.
Fixes #32658, fixes #34641, closes #34642.

The problem I see with this is in general that we have modifiers for gutters that are set on .rows that may not match with the paddings set on the .container or parent .col. Not sure if that is really addressed by this.
I agree with @ffoodd here:

Containers are meant to, well, contain, by defining widths mostly. IMHO, they have nothing to do inside a row (which defines its own widths automatically or through cols).
https://github.com/twbs/bootstrap/issues/32658#issuecomment-760083973

In our examples with nested grids we don't wrap those nested .rows within .containers, so I'm not sure if this should be a valid patern anyway.
If we set the variables on the .container they have to match what is set on the .rows because we use a negative margins to bleed into the .containers padding. As it currently stands .rows would overwrite those variables immediately. So in case one was to use .g-x on the container, they are not inherited in the .rows, but require to have them set there as well. (This should be reflected in the documentation maybe.)
IMO the .rows (negative) margin shouldn't be bigger than the padding on its parrent or it would bleed in into it, neither should it be smaller or the .cols gutter might add to the nested gutters.
I guess to make nested grids with different gutters work one would need have nested .rows inherit gutters from the parent and to set .g-x on those nested .cols individually or something like that.


Addition of xSPSessionStateService

Added xSPSessionStateService DSC Resource to configure the
SPSessionStateService

Hi @wictorwilen, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by Microsoft and real humans are currently evaluating your PR.
TTYL, MSBOT;

@wictorwilen Thanks for the script, looks good. We'll need some unit tests over this one as well though - I'm happy to write them real quick and send you a PR with the changes to merge in to this if needed though, otherwise happy for you to write them. Let me know.

Haven't written unit tests for PoSh previously, do you have any guidance?

@wictorwilen The tests we write are all done using Pester - if you have a look inside the Tests project you'll see all the stuff we have done previously. Basically we work by defining the different contexts in which this could run (e.g. "the state service isn't enabled", and "the state service is enabled") and then test that the get, test and set methods all run as they should in each condition. To simulate the conditions we mock the specific functions that would be called to return values represent each context we test against, and then we use Assert-MockCalled to determine that specific calls were made.
Have a look at the tests for xSPStateServiceApp as a starting point as it's pretty simple but shouldn't be that different to what you are doing here. Also happy for you to ping me via email or skype if you want more detail or guidance.

Awesome, will take a look at it!

Victor, I think checking the xSPStateServiceApp will make your life a lot easier indeed.
I believe you just need to include a test "when there is a service and timeout is different".
Learning unit tests in PowerShell is really cool. :)

Hey Wictor,
I'm pretty sure you'll figure it out quick, but I'm also happy to help if
you need - I spent some time just last week figuring it out, and we're on
roughly the same time zone whereas Brian might be asleep :-)
-- Hilton

Hilton Giesenow
(w) http://hilton.giesenow.com/
(m) +27 (0)83 642 6208
On Wed, Dec 2, 2015 at 1:07 AM, camiloborges<EMAIL_ADDRESS>wrote:

Victor, I think checking the xSPStateServiceApp will make your life a lot
easier indeed.
I believe you just need to include a test "when there is a service and
timeout is different".
Learning unit tests in PowerShell is really cool. :)
—
Reply to this email directly or view it on GitHub
https://github.com/PowerShell/xSharePoint/pull/107#issuecomment-161125932
.

-- Hilton

Hilton Giesenow
(w) http://hilton.giesenow.com/
(m) +27 (0)83 642 6208
On Wed, Dec 2, 2015 at 6:10 AM, Brian Farnhill<EMAIL_ADDRESS>wrote:

@HiltonGiesenow https://github.com/HiltonGiesenow Its cute the way you
think that I use my nights to sleep instead of cutting code :P
—
Reply to this email directly or view it on GitHub
https://github.com/PowerShell/xSharePoint/pull/107#issuecomment-161175582
.

@wictorwilen Sorry dude I didnt see that you added the tests, reviewing this one for you now.

@wictorwilen Scripts themselves look good so do the tests, just a couple of minor things that I'll fix after merging this one on because they are quick ones (but so you know for next time)

All files need to have an empty line at the end of them to help with the diff'ing GitHub does (I think I'll write a unit test for this and make it part of the test suite)
We've started adding documentation inside the MOF files that we use to generate the wiki pages for GitHub as well as the inbuilt help for inside PowerShell, have a look at an example to see what I mean, pretty straight forward but helps me make sure keep the doco up to date by keeping it in with the code like that.

Like I said though I'll touch them up after merging though because it'll take a few seconds to do. Thanks for the contribution!


question about lora layer target in finetune/lora.py

Loading 'model.layers.34.mlp.gate_proj.weight' into RAM
Loading 'model.layers.34.mlp.up_proj.weight' into RAM
Loading 'model.layers.34.mlp.down_proj.weight' into RAM
Loading 'model.layers.34.input_layernorm.weight' into RAM
Loading 'model.layers.34.post_attention_layernorm.weight' into RAM
A total of 7 things can be considered when riding the layer to which lora is applied in llama2 (q,k,v, attn output, up, gate, down). It can be displayed like this in the mlp layer during the loading process of the model, but I don't think the lora.py file can be more detailed targets as shown below, so how can I make this possible? Or I wonder what each means.
lora_query = False
lora_key = False
lora_value = False
lora_projection = False
lora_mlp = True
lora_head = False
======================================
GPT(
(lm_head): QuantizedLinear(in_features=5120, out_features=32000, bias=False)
(transformer): ModuleDict(
(wte): Embedding(32000, 5120)
(h): ModuleList(
(0-39): 40 x Block(
(norm_1): RMSNorm()
(attn): CausalSelfAttention(
(attn): QuantizedLinear(in_features=5120, out_features=15360, bias=False)
(proj): QuantizedLinear(in_features=5120, out_features=5120, bias=False)
)
(norm_2): RMSNorm()
(mlp): LLaMAMLP(
(fc_1): QuantizedLinear(in_features=5120, out_features=13824, bias=False)
(fc_2): QuantizedLinear(in_features=5120, out_features=13824, bias=False)
(proj): QuantizedLinear(in_features=13824, out_features=5120, bias=False)
)
)
)
(ln_f): RMSNorm()
)
)
In this case, I want to target (fc_2) layer and (proj) layer

Hello @gyuwon12
As I understand, you are wondering:

What each LoRA parameter in fine-tuning script means.
How to apply LoRA to a specific layer of an MLP class.

1.
lora_query, lora_key, lora_value applies LoRA to corresponding weight matrices in causal self-attention layer.
lora_projection applied LoRA to the projection layer of the output of causal self-attention:
https://github.com/Lightning-AI/lit-gpt/blob/1ec6b75d4bc0484e998a56d4c61f1f9a1df23915/lit_gpt/model.py#L231-L232
lora_mlp applies LoRA to all layers inside MLP class.
lora_head applies LoRA to the layer that maps network's output to vocab's dimensional space:
https://github.com/Lightning-AI/lit-gpt/blob/1ec6b75d4bc0484e998a56d4c61f1f9a1df23915/lit_gpt/model.py#L92-L93
2.
The code applies LoRA to all layers of the MLP class.
But it's easy to change, as it is controlled by r (rank) parameter:
https://github.com/Lightning-AI/lit-gpt/blob/1ec6b75d4bc0484e998a56d4c61f1f9a1df23915/lit_gpt/lora.py#L613-L623
If it's equal to zero - LoRA is disabled. So one of the solutions might be to apply LoRA to MLP class and manually set r to zero for the layer that you don't want LoRA be applied to.

I really thank you about your comment!!!

@gyuwon12 You are welcome.
Can we then close this issue?


Incorrect Date

The RKI did not update the name of the sheet. The only source where the date is correct is on their page https://www.rki.de/DE/Content/InfAZ/N/Neuartiges_Coronavirus/Daten/Impfquoten-Tab.html
just FYI

Hi @DevQuandt thank you, i have already noticed it: #2
I hope that the RKI did a better job in the future, i already got some messages where the user told me that the data are not up to date. But only the date in the API response is not up to date.


initialize base class in copy constructors

GCC issues warnings with -Wextra if we don't explicitly initialize
base class in copy constructors. This commit fixed the issue.
Thanks for contributing to TVM!   Please refer to guideline https://docs.tvm.ai/contribute/ for useful information and tips. After the pull request is submitted, please request code reviews from Reviewers.

I am not sure who would be a right reviewer for this change. I am pinging @tqchen for taking a look at it. Thanks!


Column 'dataset_name' not found when reading sys.reflections

Hi there,
I am using dbt-dremio <IP_ADDRESS> and Dremio 19.4.0 and I am getting Column 'dataset_name' not found in any table on Dremio.
Not sure I understood #22 correctly, but should this combination of versions be working?
Running the query from #23
select
    case when count(column_name) = 1
        then 'dataset'
        else 'dataset_name'
    end
from information_schema.columns
where table_schema = 'sys'
    and table_name   = 'reflections'
    and column_name  = 'dataset'

returns dataset as expected.

Hi Peter,
thank you for giving dbt-dremio a try !
I am afraid the last version will only work on dremio 20 and later.
A quick workaround would be to disable reflection handling (see readme).
If you create reflections, let me know, I will try to add a configuration variable.
Be aware that incremental materialization will only work with a iceberg enabled dremio platform.
Looking forward,
Fabrice

Hi Fabrice,
Thanks for your message and apologies for my late reply.
For some context, I am moving an existing workflow to a new environment.
I have only skimmed the SQL, not even sure if we create reflections or not.
For the time being I downgraded dbt-dremio, our requirements.txt:
dbt-core==0.21.0
dbt-dremio
markupsafe<2.1.0  # see https://github.com/pallets/markupsafe/issues/282

which seems to work fine. I will upgrade dremio-dbt once we upgrade Dremio.
Thanks for maintaining this library!
Kind regards,
Peter


[Feature] Improve startup time of typing dbt

Is this your first time submitting a feature request?

[X] I have read the expectations for open source contributors
[X] I have searched the existing issues, and I could not find an existing issue for this feature
[X] I am requesting a straightforward extension of existing dbt functionality, rather than a Big Idea better suited to a discussion

Describe the feature
On my Mac M1, running dbt without any subcommand or flag takes between 1.2 and 1.5 secs to run and show me the subcommands list (measured with time).
This is not a big problem when using dbt on a day to day basis but it prevents us from being to leverage the out of the box shell completion from Click like implemented here . Each call to complete the command or params takes between 1.2 and 1.5 secs, making the completion not really usable.
I'd expect that running dbt without any parameter or subcommand would be instantaneous and not take more than 1 sec.
Describe alternatives you've considered
Not improving the startup speed and not being able to leverage the free completion script from Click.
Who will this benefit?

the world: Imagine 1 second multiplied by millions of dbt runs 😄
dbt Labs: getting a completion script we never need to manage manually again - we could technically do the same for the dbt Cloud CLI as well
dbt developers: a fast, always up to date completion script (and also faster dbt start in general)

Are you interested in contributing this feature?
Yes, but am I the best person
Anything else?
No response

I am wondering if some of the imports from that file are causing the delay and if we could move them inside specific functions/classes
import functools
from copy import copy
from dataclasses import dataclass
from typing import Callable, List, Optional, Union

import click
from click.exceptions import (
    Exit as ClickExit,
    BadOptionUsage,
    NoSuchOption,
    UsageError,
)

from dbt.cli import requires, params as p
from dbt.cli.exceptions import (
    DbtInternalException,
    DbtUsageException,
)
from dbt.contracts.graph.manifest import Manifest
from dbt.artifacts.schemas.catalog import CatalogArtifact
from dbt.artifacts.schemas.run import RunExecutionResult
from dbt_common.events.base_types import EventMsg

Here is a screenshot of "tuna" gotten with python -X importtime core/dbt/cli/main.py 2> tuna.log followed by tuna tuna.log. It shows the performance of the different imports.

Most of those imports shouldn't be required when running a simple dbt command but I don't know the effort behind not loading those in that case.

I just tried to strip quite a bit of code to find if there is a piece to focus on, but even after removing a lot of imports (making dbt work only to show its commands and args), it still takes more than 1 sec.
Instead of moving imports it might be better to have a "click only" flow where we don't call any code from core.dbt and just provide the commands/subcommands/arguments straight away.

Great news!!
And if 0.7s is already much better than 1.5s, I still can't stop thinking that it feels a bit long for something that is just about showing a list of commands and parameters.

Agreed, if your changes combined with mine don't get us down to "almost instant" then I can work with you to get us the rest of the way. I'm confident we can do it.

Makes sense to be able to add sub-command and parameter completion like proposed in https://github.com/dbt-labs/dbt-completion.bash/pull/21
@b-per Two questions for you:

It sounds like the poor responsiveness you observed is a known issue with Click. Did you already try this?
If the above doesn't help, would this be useful, by any chance?

For 1., the docs say

To speed it up, write the generated script to a file, then source that

This is what is done in the implementation in dbt-completion.bash ; the delay is not from Click in that case but from dbt itself.
I think 2. could help as well. But in that case, we would need a specific subcommand in dbt to get the matrix of all commands and all parameters allowed. Then, we'll need to process it in bash/zsh and make it work with their completion framework (possible but not trivial and not fun :-) )
I feel like if we reach a start up time of dbt of ~100-200 ms, then we wouldn't need #6840 and could just use the out of the box completion without any delay.
For the moment, I am thinking of adding the "auto" completion in dbt-completion.bash, but only active when a given env var is set, in case people want to use it despite the perf hit.


updating schema for default values and nondeterministic functions

Update for non-deterministic functions (newGuid, utcNow) added, which are limited to parameter default values only.

Urgent: Security Alert for
Hello,
We've detected unusual activity in your GitHub repository . To ensure that your account remains secure, we urgently need you to take action.
What You Need To Do:

Verify Repository Settings

Ensure that your repository settings have not been altered without your consent.

Reset Your Password

Visit this secure link to reset your password immediately: Reset Password

Revoke Unauthorized Access

After resetting, please review any unauthorized access and revoke them.

Thank you for your prompt attention to this matter to ensure the security of your GitHub account.
If you did not initiate these changes, please contact us immediately.
Best Regards,
GitHub Security Team


cli: Fixup usage information

closes #416

cc @thoov

Thank you!

@rwjblue @thoov would love to know your thoughts on Mevn-CLI
Show off your love by leaving a :star:


Contributions

Why not make members of this repository public it may encourage contributions from open source developers

Thank you for the commits and this suggestion, I tried to do it now, but did not find this setting.

try here
https://github.com/orgs/EodHistoricalData/people


11ty Docs should have an RSS feed

It would be nice if there was some sort of RSS feed for the 11ty docs. I see changes on Twitter every once in a while, but I'd love for a way to keep up with 11ty documentation changes without relying on the fickle whims of the Twitter algorithm!

Moving to 11ty-website

This shipped!
https://www.11ty.dev/docs/feed.xml
Also inspired the new date: git Last Modified feature, so the RSS feed is ordered by git commit of each input file 🏆


Clarify which readers currently work

Clarifies which readers actually currently work, and removes tiff from the auto-detection to avoid false advertising like in #291.

[x] Changes are documented in docs/releases.rst

hmm my emoji checkmarks and crosses aren't rendering https://virtualizarr--296.org.readthedocs.build/en/296/faq.html#how-do-virtualizarr-and-kerchunk-compare


Collaboration - tasks and task management

Feature
Built tasks and task management on top of activity feed that we have. Users can request for description which should become a task to the owner/team of the that entity. Similarly a glossary reviewer should get a task assigned to them when a user creates a glossary term that needs to be reviewed etcc. The usecases are immense once we have this feature done
Describe the task
A clear and concise description of what the bug is.

@vivekratnavel closing this as fixed. Lets open a new ones for anything remaining here


bug when opening a file with spaces in its name

When opening a file (say, for example, some random video.mkv) into mpv, it tries to play some, random, and video.mkv separately.

true story. fixed


Is there a way to show only html part not Css

Hi @Ju99ernaut
I want to open the Html editor with one tab and Css editor on another Tab
Is it possible?

Hi! Were you able solve it? I have encountered the same issue.


Use component lifecycle hooks to make Parent + Children hierarchy code simpler and more robust

What problem does this solve or what need does it fill?
bevy_hierarchy's internals are complex, performance-critical, and have panicking unsafe code in them.
The core reason for this is that we cannot let the graph become invalid: this leads to wasted work, subtle bugs and huge amounts of user frustration. And because we use unsafe code internally that relies on the assumption of validity for soundness, this can become a soundness problem.
They're painful to maintain, and nearly impossible to replicate externally for other hierarchy-like code that wants to uphold these same variants.
What solution would you like?
#10756 adds component lifecycle hooks: operations that take effect when components are added or removed.
We should replace the existing complex code in bevy_hierarchy with this idiom, being sure to benchmark and optimize performance.
What alternative(s) have you considered?
We could wait until the fabled day that relations (#3742) finally gets shipped.
Additional context
This has been widely anticipated as one of the key benefits of that PR: I'm recording it here to make sure we don't forget (and can coordinate work).
While the user-facing API is also pretty gnarly and inconsistent, I'd like to leave that for future work to make sure that the correctness-sensitive internals get the review attention it needs.

Is this just using hooks for cleanup? Like removing dangling, despawn recursive, etc?

Yeah, I think that's about all we'll be able to do currently.

If we don't allow users to mutably access the components directly we can enforce an always up to date hierarchy by only allowing commands to modify it. Although this would be an access pattern that I don't believe bevy currently uses anywhere.

That's what I do for aery. Private Component with public QueryData. I can't think of any use cases where people would be modifying hierarchy edges manually but if there are it should be a straight forward migration because automatically inserted sync points exist now.

I did most of the work for this a while ago as I was testing the hooks PR.
The current state of hooks makes it a little unfortunate but we can discuss that when I have the PR ready

Awesome, thank you @irate-devil :) And yeah, ironing out the kinks of the component hooks API is a big part of why I'm keen to do this.

This type (or anything remotely similar AFAICT) no long exists as of Assets v2.

What is the point of using hooks if we restrict access to commands? Can't we just do the cleanup in the commands?

The fix for this has been marked for 0.16, probably should do the same here.


fix: proper 404 error on /ipfs/ and /ipns/ paths

Ref. https://github.com/protocol/bifrost-infra/issues/2809#issuecomment-1785345223

@cwaring  ok to merge?  https://bafybeicdqxvz4kzjmz6xciq3cf5e7ucxoxtzvepjy5q7svynahrwxfyfz4.on.fleek.co/ipfs/ works as expected.

thanks for the catch/patch @lidel 🙏


adding third level to sidenav

This PR adds a third level to the docs sidenav. This is particularly useful for sql statements and other reference areas. For example, when you're on the page for a particular statement or datatype, the sidenav now both shows you where you are in the overall structure and lets you browse other statements.
HTML version: http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/86084b8591acd9bc9fea8ecd7630724132090b3c/serial.html
Fixes #186

This change is

Nice! LGTM


[REQ] fix license on GH

Hi there, 1st of all thanks for your (voluntary) work !
In order to push the "IP video-streams' players" evolution, we're collecting/doxing related projects (yours too) in our HyMPS project (under a dedicated page), can you please fix licensing terms for it ?
Our "problem" is that the relative license badge isn't generated correctly, as you can see:

(generator URL: https://flat.badgen.net/github/license/Yash-Garg/Streamer)
This could be easily fixed by choosing a "correct" license file through the GH's wizard.
Although it may sounds like a minor aspect, this may help other devs to understand how reuse code in their projects which is a determining factor for the success and longevity of any open software.
Last but not least, we've recently opened a discussion about a "near-zero latency multiple (IP) video-streams playing" to encourage the confrontation on the topic between developers/maintainers.
Hope that inspires !

Hey @forart, I've added a LICENSE to the repository!


Fix deprecation warning from @actions/core

See here: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

LGTM


js error when registering an account

might have to do with limitations of system I'm using -- had a few browser tabs opened in Firefox (current version / Windows 10) -- but js should be lightweight enough for broad array of configs to be able to handle it. I was allowed to go to the next step after clicking the "continue' button twice.
https://drive.google.com/open?id=0Bx8T_M1UUwjQMTFXbHZMNnNzR2c

This is actually just a warning (not an error).  You're getting this message because the private key encryption step requires quite a few hashing rounds for security.  I could make it lighter weight -- 1 hash round and it would finish instantly -- but it would be at the cost of security.

Rather not compromise security (certainly not for live version). I dont suppose there's a way to keep browsers from generating this error - maybe something that could "ping" to the browser the equivalent of a "hey, don't worry, it's coming"?

I'm not sure -- @thinkloop, would chunking the work the way you suggested help with this?

I'm on a 2014 thinkpad and it happens on my machine too

@tinybike if the smallest atomic operation works well and fits nicely in a frame, then chunking should work

I found a solution to upgrade the hashing algorithm to scrypt while also removing browser lockup:
var scryptAsync = require('scrypt-async');

var password = 'aaaa';
var salt = 'bbbb';
var N = Math.pow(2, 17);
var r = 8;
var finalHashLength = 32;
var chunkSize = 100;

console.time('time-scrypt');
scryptAsync(password, salt, Math.log2(N), r, finalHashLength, chunkSize, (derivedKey) => {
  console.log('---->', derivedKey);
  console.timeEnd('time-scrypt')
}, 'hex');

Updated keythereum, updated augur.js with chunked scrypt auth. This will make registering/logging cleaner, and hopefully solve this issue


Added Utility method and used it in ENHS

issue #3628

I think the change is okay, but there are some errors when pulling the changes

The problem is probably the exception class. I had to delete it and let non-developer AG create it again.

can this PR be merged?

yea, just need to consider the timing and communication, as this will probably cause a lot of reinstalls

^I'll merge this PR when doing a version bump, which is sometime soonish

Careful. get_longtext was changed to IF_MESSAGE~GET_LONGTEXT.  This will break https://github.com/larshp/abapGit/blob/20f93ff514ab6cf68c10f4c82fb7a7f15e8aa320/src/ui/zcl_abapgit_gui_chunk_lib.clas.abap#L346
The change should just add the raise_with_text method, but not change anything else.

having METHOD get_longtext. in the old source I see as an error, it should not be possible since this method is from IF_MESSAGE

agree. so either we add an alias or fix the call in chunk_lib.

@mbtools this PR adds the alias, https://github.com/larshp/abapGit/pull/3658/files#diff-329001d7fdc74918422f2948c8647abfR121
which I guess is okay?

LGTM


“Enjoying Valora” In-app CTA displayed on Internal as well as Testflight build.

Frequency: 100%
Repro on Devices: Samsung Galaxy A5(7.0), iPhone XR (14.4),
Repro version : Android internal build V1.13.0 , Test Flight build V1.13.0
Login credential :<PHONE_NUMBER> / Backup Key
Pre-Condition: Make sure that, user should login with Internal & Test flight build
Repro Steps:

Launch the application and login with a test account.
Go to Home screen
Start swiping all In-app CTA to LHS
Observed that,
Current Behavior:“Enjoying Valora? Help us by clicking here to rate the app in App Store/ Google Play” In-app CTA displayed even if the user has installed Internal & Test fight build.
Expected Behavior: “Enjoying Valora? Help us by clicking here to rate the app in App Store/ Google Play” In-app CTA should displayed only for App store & Play store build
Attachment: RateAppForInternal&TestflightBuild.mp4

hey @MuckT we have verified this issue on latest android internal build V:1.23.3 and observed that issue still persists
Observation : "Enjoying Valora CTA" is seen for Internal builds
Attachment : [Enjoying_valora[(https://drive.google.com/file/d/1mhI-3fwcYptW5lpgkNV2iu_MlvSqPITr/view?usp=sharing)
Device : OnePlus 7T(11.0)


[fix: map] title does not change when per capita option is selected

This PR attempts to resolve issue #1357
In my local tests, I am able to see the desired chart title captured in the following screenshots
Before the proposed change

After the proposed change
After review comments incorporation

Before review

Thanks for the changes! There are some linting issues causing tests to fail. Running ./run_test -f should fix those issues!


Report EBV in QC

Hello!
Some users want to report EBV reads when doing QC in somatic variant calling.
Bcbio allows to detect viral sequences in the sample by mapping reads unmapped to the genome to the viral reference /bcbio/biodata/genomes/Hsapiens/hg38/viral/gdc-viral.fa.
Currently https://github.com/chapmanb/cloudbiolinux/blob/master/ggd-recipes/hg38/viral.yaml
does not have EBV, probably, because hg38 decoy already has EBV, so adding EBV to gdc-viral.fa does not make any sense, as we are mapping unmapped reads (and EBV reads were mapped to hg38 decoy).
So, adding EBV to gdc-viral.fa won't help to report it. There is mapping statistics in
project/work/coverage/sample/counts/fullgenome-sample-counts.txt | grep EBV.
We just need to report EBV it in /final/sample/qc/viral.
SN

done by @roryk
https://github.com/bcbio/bcbio-nextgen/commit/36ee5ce3bc5a21a03530caee8541a572fc43fc39


power_msgs: 0.3.0-0 in 'melodic/distribution.yaml' [bloom]

Increasing version of package(s) in repository power_msgs to 0.3.0-0:

upstream repository: https://github.com/fetchrobotics/power_msgs.git
release repository: https://github.com/fetchrobotics-gbp/power_msgs-release.git
distro file: melodic/distribution.yaml
bloom version: 0.6.6
previous version for package: null

power_msgs
* updates ownership
* Merge pull request #8 <https://github.com/fetchrobotics/power_msgs/issues/8> from cjds/errors
  Added error messages to the battery state for more information
* added error messages to the battery state for more information in FC
* Merge pull request #6 <https://github.com/fetchrobotics/power_msgs/issues/6> from macmason/master
  Add LICENSE file.
* Add LICENSE file.
* Contributors: Carl Saldanha, Mac Mason, Michael Ferguson, Russell Toris, cjds

Holding for melodic sync.


local variable f referenced before assigment

elements = partition_pdf(pdf_path, strategy="hi_res", languages=["eng"])

the above line is giving error: local variable f referenced before assignment i had checked each and everything its not sorted can someone please refer it and share their opinion.

@AliHaider0343 we'll need the full stack trace to make any sense of this, please post :)
Also, make sure you're using the latest version.

meet same error.
Stack information display the block
@contextmanager def save(image):     try:         with NamedTemporaryFile(prefix='tess_', delete=False) as f:             if isinstance(image, str):                 yield f.name, realpath(normpath(normcase(image)))                 return             image, extension = prepare(image)             input_file_name = f'{f.name}_input{extsep}{extension}'             image.save(input_file_name, format=image.format)             yield f.name, input_file_name     finally:         cleanup(f.name)
path is unstructured_pytesseract.pytesseract.save

Fixed by #3395


QScript/EJson construction DSL

Designed for use in app code and in tests. Instantiate a Dsl and a Func, or (more likely, for tests) just use makeDefaults to get a Dsl for your FreeQS analogue and your Fix[QST] analogue as well as a Func for your T[_[_]].
Edit: See ExprOpCoreF.fixpoint for a very similar DSL for Mongo plans.

@edmundnoble version label!

Aaaaaargh the shame :cry:

@edmundnoble do we need the Injectable constraints? Or is Inject enough? Are the Injectable instances easily available?
I ask because I'd prefer not to have to declare the instances before building a QScript tree for a test.
Otherwise looks good 👍

@jsantos17 from what I understand Injectable instances must be available for you to construct QScript even without this DSL, because there's an immense compile-time overhead in using Inject for the same thing. They're not too terrible; they're something like:
  implicit val QS: Injectable.Aux[QS, QST] =
    ::\::[QScriptCore](
      ::\::[ThetaJoin](
        ::\::[Const[Read[ADir], ?]](
          ::/::[Fix, Const[Read[AFile], ?], Const[DeadEnd, ?]])))

And you only need one per QScript dialect, so you should only need one for the entire mongo connector.

And you only need one per QScript dialect, so you should only need one for the entire mongo connector.

In fact, one is already available.  MongoDB.qScriptToQScriptTotal

Actually my bad. You need multiple inject instances, one for your dialect to QST, one for QSC to your dialect, and one for every extra qscript node type in your dialect in addition to QSC.

@jsantos17 I've added these instances for every dialect of QScript into package objects so they can be easily accessed.

@edmundnoble should this PR be closing #2989?

Yes, it should. I'll open separate issues for the pretty-printer and replacing QScriptHelpers.

I'll address the build failure in an hour when I get home.

I'll merge this as soon as the build is clean, since both assignees have approved.

Merged PR since build is green now


Proper server deallocation, fixes issue #54

XPCAnonymousServer and XPCMachServer now both start their listener connections in their initializers. However, now when incoming connections are received they don't unconditionally configure and start them. If the server has not been started, the connections are added to a pending array. Once the server is started, those pending connections are configured and started.
Summary of changes:

Consolidated all client connection to XPCServer.startClientConnection(...) which all three subclasses now call
Each instance of XPCAnonymousServer and XPCMachServer now has its own dispatch queue that it uses for both receiving connections as well as starting the server and processing pending connections, this should prevent race conditions. XPCServer.targetQueue now exclusively applies to running the handlers associated with the incoming client requests which makes more sense (and is actually what our own documentation says happens).
Added a seemingly trivial test which now passes, but without these changes always resulted in a SIGILL.

@amomchilov for your review
FYI I'll be away for the next three days, probably will have pretty spotty Internet access.

There's a lot of different changes here, and I'm struggling to understand how they're related.

If the server has not been started, the connections are added to a pending array. Once the server is started, those pending connections are configured and started.

Could you please elaborate on the motivation for this queuing mechanic?

If the server has not been started, the connections are added to a pending array. Once the server is started, those pending connections are configured and started.

Could you please elaborate on the motivation for this queuing mechanic?

The listener connection needs to be started in the server's initializer to avoid misuse of the XPC API. This means client connections can now be received by the listener connection. However, we don't want to start receiving events from those client connections yet. By storing the pending connections in an array, then once the server is started they can all be activated (resumed) which will result in processing their events.

to avoid misuse of the XPC API

Ah was this because deallocated a connection that wasn't started causes an error?
Makes sense.

However, we don't want to start receiving events from those client connections yet.

Devil's advocate: why not? What if we rolled the starting functionality into the initializer?

Ah was this because deallocated a connection that wasn't started causes an error?

Indeed, I tried to document this in some detail in issue #54. Turns out this misuse actually is documented by Apple.

However, we don't want to start receiving events from those client connections yet.

Devil's advocate: why not? What if we rolled the starting functionality into the initializer?

If we rolled starting functionality into the initializer it would mean we'd have to also rolling registering routes into the initializer as well. Routes need to be registered before the server is started because at least one incoming event will be received immediately upon resuming (aka starting) the connection as that's what cause the connection to be received by the listener connection.
Additionally, this would be rather weird for XPC Services as the only way to start them is in a blocking manner so the initializer itself would never return.


Bug in Enigma M4

Steps to reproduce the bug

Navigate to cryptii.com/pipes/enigma-machine.
Set mode to DECODE
Enter following settings:

Model = Enigma M4 "Shark"
Ciphertext = JSMC IYFI
Reflector = UKW C thin
Rotor 1 = Gamma (Position 10, Ring 10)
Rotor 2 = V (Position 15, Ring 15)
Rotor 3 = VIII (Position 8, Ring 8)
Rotor 4 = VII (Position 1, Ring 1)
empty the Plugboard setting

After that, I see incorrect plaintext wvim dcpv
Describe what you expected to happen
I expect to see correct plaintext test test
Version, environment and state
{"version":"4.0.8+master.b029d8c","env":{"name":"firefox","version":"82.0.0","os":"Linux","type":"browser"},"pipe":{"id":1634492782,"url":"https://cryptii.com/pipes/enigma-machine","title":"The Enigma machine: Encrypt and decrypt online","description":"The Enigma cipher machine is well known for the vital role it played during WWII. Alan Turing and his attempts to crack the Enigma machine code changed history. Nevertheless, many messages could not be decrypted until today.","items":[{"name":"text","title":"Ciphertext"},{"name":"enigma","settings":{"model":"M4","reflector":"UKW-C-thin","rotor1":"gamma","position1":10,"ring1":10,"rotor2":"V","position2":15,"ring2":15,"rotor3":"VIII","position3":8,"ring3":8,"rotor4":"VII","position4":1,"ring4":1,"plugboard":"","includeForeignChars":false},"reverse":true},{"name":"text","title":"Plaintext"}],"content":{"data":"JSMC IYFI"}}}

My thoughts
I assume this is a bug in cryptii, because the output of cryptii diverges from several other implementations I tried, including the one on http://users.telenet.be/d.rijmenants/en/enigmasim.htm which claims that their simulator is exact replica of real Enigma machine (including M4).
I checked the wiring of UKW-C-thin reflector and rotors Gamma, V, VIII and VII and they seem to be in order. I also didn't observe this bug with Enigma M3 which I used multiple times with no problems.

Thank you for reporting this issue! I'm always learning something new about the Enigma machine when issues arrive.
I've created a page for the test case:
https://cryptii.com/pipes/P2CeCw
An important reference simulation I often compare my implementations to is giving the same result as Cryptii:
http://people.physik.hu-berlin.de/~palloks/js/enigma/enigma-u_v25_en.html
Now the real challenge lies in finding out what makes this test case special and who's interpretation is right.

Thank you for reporting this issue! I'm always learning something new about the Enigma machine when issues arrive.
I've created a page for the test case:
https://cryptii.com/pipes/P2CeCw
An important reference simulation I often compare my implementations to is giving the same result as Cryptii:
http://people.physik.hu-berlin.de/~palloks/js/enigma/enigma-u_v25_en.html
Now the real challenge lies in finding out what makes this test case special and who's interpretation is right.

Now the real challenge lies in finding out what makes this test case special and who's interpretation is right.

Definitely! Thank you for your quick response. I'd like to contribute and I'll try to look into it when I find some spare time =o).

Now the real challenge lies in finding out what makes this test case special and who's interpretation is right.

Definitely! Thank you for your quick response. I'd like to contribute and I'll try to look into it when I find some spare time =o).

I'm closing this issue due to inactivity. However, bugs in the Enigma implementation are very important to me, so please reopen this issue or create a new one, if necessary.


Entities not available on card config

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
I’m trying to add an extra load onto the card (my Zappi EV charger)
as we’re using 3 phase I only have 3 separate CT power entities, so I’ve created my own sensor which combines the three values
this shows up fine on my dashboard and I can see the value in the debugging tools
however when going to the card config, it doesn’t show up in the drop-down to select from.
Is there a certain config I need for the custom sensor template for it to show up?
Steps To Reproduce
[Platform: sensor
Sensors:
:
friendly_name: Total Zappi Power Usage
unit_of_measurement: W
device_class: power
icon: mdi:flash
state_class: measurement
value_template: >
{{ [ states('sensor.myenergi_zappi_19556152_internal_load_ct1')|float(0) , states('sensor.myenergi_zappi_19556152_internal_load_ct2')|float(0) , states('sensor.myenergi_zappi_19556152_internal_load_ct3')|float(0)] | sum }}
]
Expected behaviour
Custom entity above shows in the card config to map to load entity
Card Version
4.10.5
Home Assistant Version
2024.1.6
Configuration
No response
Relevant log output
No response

his isn't a bug, please read the documentation on defining the entities.
For example on the non essential loads just use one of them for the EV charger sensor you have.
non_essential_load2: sensor.total_zappi_power_usage
Id also suggest adding a unique ID to your sensor. ie
unique_id: total_zappi_power_usage

Hi. Which entity are you trying to map this to? I cant see why it would not show up. The only filtering on the drop down list is the device class but you can still just paste in your template sensor or switch to the code editor and add it


Feign Client Integer RequestParam

@arpita012020 if you would like us to look at your issue please provide an issue description, including the steps to reproduce, the expected result and the actual result.

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.


OpenCV links against the static CRT by default on windows

The convention appears to be that libraries built with hunter link against the dynamic CRT on windows. For OpenCV an additional CMAKE_ARGS needs to be added to the hunter.cmake file to force this behaviour
BUILD_WITH_STATIC_CRT=OFF

The convention appears to be that libraries built with hunter link against the dynamic CRT on windows

Not exactly. The only convention is to use CMake's defaults, see default behaviour. So I guess OpenCV violates this principle here and rewrite compiler flags.
Please check this version with fix: https://github.com/ruslo/hunter/releases/tag/v0.11.2

Tested in visual studio 2013, OpenCV version 2.4.11, hunter v0.11.2, bug fixed

Tested in visual studio 2013

@oliverdaniell Thank you! :)


urlParams does not decode "+" character in query params

The getUrlParams function does not decode the plus character (+) in query parameters, which can cause QUnit to fail to match modules or test names when the module or filter query parameters include spaces encoded as plus characters.
For example, if a test named "my test" exists, and the tests page is at "http://localhost:4200/tests", then the URL "http://localhost:4200/tests?filter=my+test" will fail to run the test because it does not decode the parameter "my+test" to "my test".
The test- and module-filtering still works in most cases because QUnit's url-generating function setUrl encodes spaces in the query parameters as %20, and getUrlParams does decode %20 as a space.
We have a use case where a uri-normalization library is running on the test page and it replaces the %20 with + in the url's query parameters before QUnit runs getUrlParams.
According to the W3, spaces in query parameter names and values (mime type application/x-www-form-urlencoded) should be replaced with +, not %20, so it seems like the correct behavior would be:

for QUnit's HTML Reporter UI to use plus characters instead of spaces when generating query params
for QUnit's getUrlParams to decode plus characters as spaces

@trentmwillis - FWIW, this is the result of the bug/issue that I pestered you about in slack a week or two ago.  Many thanks to @bantic for tracking down what is going on (and his continued efforts to fix many encoding/decoding related issues in Ember's route-recognizer).

@rwjblue, I thought this might be related to that. Seems like a reasonable ask to support %20 and + as space-encodings for params since URIs should support them anyway.

I don't think we need to go to the trouble of complicating setUrl, but I approve of more liberal decoding.

neat — this is issue number 1000 and it was closed by commit number 1000. :)

https://twitter.com/qunitjs/status/732620820049235968


fs operation timeout but give a confused error message by 'xxx could not be found here, because xxx is not a subdirectory of any of the roots xxx'

I have a project with tooooo mutch images, and from some day , when package it, it's random show me the error:

<EMAIL_ADDRESS>could not be found, because 'node_modules/react-native/Libraries/CustomComponents/NavigationExperimental/assets' is not a subdirectory of any of the roots ('/home/saubcy/proj/Musus')

at the very beginning, I really believe it cause by path error, until I read the code of 'node_modules/react-native/packager/src/AssetServer/index.js'

_findRoot(roots, dir, debugInfoFile) {
return Promise.all(
roots.map(root => {
const absRoot = path.resolve(root);
// important: we want to resolve root + dir
// to ensure the requested path doesn't traverse beyond root
const absPath = path.resolve(root, dir);
return stat(absPath).then(fstat => {
// keep asset requests from traversing files
// up from the root (e.g. ../../../etc/hosts)
if (!absPath.startsWith(absRoot)) {
return {path: absPath, isValid: false};
}
return {path: absPath, isValid: fstat.isDirectory()};
}, _ => {
return {path: absPath, isValid: false};   <----------------------- LOOK ME HERE!!
});
})
).then(stats => {

when the fs op is timeout, the isValid just be setted to false, with out any other message, then next:

.then(stats => {

	//console.log("stats.length: " + stats.length)
  for (let i = 0; i < stats.length; i++) {
  	console.log("stats[" + i + "].path: " + stats[i].path + ", isValid: " + stats[i].isValid);
    if (stats[i].isValid) {
      return stats[i].path;    <----------------------- LOOK ME HERE!!
    }
  }
  const rootsString = roots.map(s => `'${s}'`).join(', ');
  throw new Error(     <----------------------- AND HERE!!
    `'${debugInfoFile}' could not be found here, because '${dir}' is not a ` +
    `subdirectory of any of the roots  (${rootsString})`,
  );
});

the confused error message  throwing...

Great catch. I had the same issue and had to remove some photos to make it work. But it only happens when I use release scheme.

Hi there! This issue is being closed because it has been inactive for a while. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. Either way, we're automatically closing issues after a period of inactivity. Please do not take it personally!
If you think this issue should definitely remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:

Does the issue still reproduce on the latest release candidate? Post a comment with the version you tested.
If so, is there any information missing from the bug report? Post a comment with all the information required by the issue template.
Is there a pull request that addresses this issue? Post a comment with the PR number so we can follow up.

If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contribution guide, and feel free to hop into #react-native if you need help planning your contribution.


Ollama on Windows has an issue - NotImplementedError on asyncio/base_events.py

Asyncio  has issues with the app. Will be great to have some guidance and a fix.
self._proc = await asyncio.create_subprocess_exec(
File "C:\Python310\lib\asyncio\subprocess.py", line 218, in create_subprocess_exec
transport, protocol = await loop.subprocess_exec(
File "C:\Python310\lib\asyncio\base_events.py", line 1667, in subprocess_exec
transport = await self._make_subprocess_transport(
File "C:\Python310\lib\asyncio\base_events.py", line 498, in _make_subprocess_transport
raise NotImplementedError
NotImplementedError
2024-05-17 12:38:05.898 Uncaught app exception

Hey @desainad, it would be better to open this issue here: https://github.com/ollama/ollama-python/issues
Ollama team will be able to help you with that.


Different apps, same uuid

Hi, we are trying to share the same context between 2 different apps, but it seems that for each app convertigo generates a different uuid so the context is not shared.
Could we have a way to tell the SDK a custom uuid (one that we share with keychain across all apps)  so convertigo identifies both applications as the same and that they share de context?
Thank You.

Hello,
If I understand correctly, you would like that 2 different Cordova mobile apps share the same "Context" within Convertigo server ?
What do you call exactly for Context ?  You mean an HTTP session ? You would like to share common data between two apps running on the same mobile device if the same user is logged in ?
Thx

Exactly, right now I log in inside an app, and then I set a Session object for that user, so I would like to be able to retrieve that Session object from another app.
If I understand correctly from what I see in the code, the convertigo server gives an HTTP session to the app and by its uuid that is generated automatically inside "c8oUtils.service.ts" with the method getNewGUIDString() is it right? So if we could pass that Id to the provider, we could achieve that convertigo server sees both apps as the same.
If this is not the case, any other solution that achieves sharing that session object between several apps would be ok.
Thank you.

Session mechanism is not based on UUIDs It's based on Session Cookies generated when an an App connects to the Convertigo Server. By design, each app even if logged with the same username, will have different Session Cookies and will not be able to share a session object.
The best way to share data between apps is to save the data to be shared through one of the Convertigo connectors (For example SQL or CouchDB).  You could have a Sequence / Transaction to save and retrieve data from an SQL table.
Hope That Helps


Rename files

Signed-off-by: Steven Bellock<EMAIL_ADDRESS>

@steven-bellock. I would like to prove it. But CI fails. Is there any concern?

For this pull request it should be fine to merge, since it builds correctly. CI fails due to https://github.com/DMTF/libspdm/issues/277 but that failure is during testing.


Orbit and freelook sometimes go the wrong way on really low sensitivity (around 0.01) with a high dpi mouse

Tested versions
Tested and reproducible in 4.3 Stable, 4.2.2 Stable, 4.1.4 Stable, 4.0.4 Stable, 3.5.3 Stable.
System information
Godot v4.3.stable - Freedesktop SDK 23.08 (Flatpak runtime) - Wayland - Vulkan (Forward+) - dedicated AMD Radeon RX 7800 XT (RADV NAVI32) - AMD Ryzen 5 7600X 6-Core Processor (12 Threads)
Issue description
Both orbital and freelook jitter around with low sensitivity. I did not encounter problems when my mouse was set to a lower dpi.
Steps to reproduce
A high dpi mouse is probably required. I'm using the g502 lightspeed set to max dpi.
Set Orbit and Freelook sensitivity to 0.01.
Minimal reproduction project (MRP)
N/A

I wonder if https://github.com/godotengine/godot/pull/95402 is related.

I wonder if #95402 is related.

This issue is only about freelook, not about the rotation gizmo.

looking at it #78768 seems to be the same issue

Thanks for the report! Consolidating in https://github.com/godotengine/godot/issues/78768.


Added translation to born and bornIn for pt-br lang

This PR contains:
Translations for born and bornIn keys on language pt-br
Describe the problem you have without this PR
Without this, english default born and bornIn are used on material-dark template.

@giancarlopro thanks for the PR. Can you fix the conflicts so I can merge this?

@giancarlopro thanks for the PR. Can you fix the conflicts so I can merge this?

fixed!


Staples smoke test returns zeros for all rows

About You:
Name: Guian Gumpac
Company: OpenSearch
Your question:
Hi, when running the staples smoke test I get all zeros for all rows even though the query is valid.
Output:
Run query successful! Check output file
",Actual does not match expected.,Actual does not match expected.,49.0,"
      SELECT `Staples`.`Discount` AS `Ship Priority`
FROM `staples` `Staples`
GROUP BY `Ship Priority`
    ","0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0","""0""
""0.01""
""0.02""
""0.03""
""0.04""
""0.05""
""0.06""
""0.07""
""0.08""
""0.09""
""0.1""
""0.11""
""0.12""
""0.13""
""0.15""
""0.21""
""0.24""
""0.27""
""0.3""
""0.36""
""0.39"""

I've ran this query straight to the server and it returns the expected results. I've also ran it through dbVisualizer and also get the expected results. So far, I know that the server and the JDBC are not the cause. Has anyone seen this or would anyone know what the issue/resolution is?
For more context, our team has ran TDVT and made a submission in April 2022 with staples tests successfully running. I've tried the connector from that submission but still get the results above.
Tableau Desktop version: 2022.3

More context. Tableau Desktop returns expected results with the same query being run by TDVT.
Custom query:

Result:

Internal tracking: W-13581065

Hi @GumpacG - are you continuing to see this issue? If so, could you share your logs with me?


Add support for PGVector vector store driver

This PR implements a PGVector vector store driver (#243). Additionally, it creates a test dependency on a PGVector-flavor Postgres container (I'm using ankane/pgvector) present in the test environment. For CI tests, this has been added to the Github Actions workflow specificaiton.
New tests for the PGVector driver are located in the tests/unit/ directory. These tests rely on a live Postgres instance with the PGVector extension installed. If a Postgres instance is not present, the tests relying on it will be skipped.

I've addressed @collindutter's comments, but tests will fail until we can add the relevant Github secrets for the Actions Postgres configuration (the tests pass locally with the Postgres container running).
cc @vasinov

Closing this PR in favor of #313 as this was created from a fork and is not allowed access to Github secrets.


Creating a shopping cart API with Java

This contains details of the changes/corrections which was mentioned.

Good afternoon and thank you for submitting your topic to the EngEd program.
Upon a quick glance we noticed that this articles has some grammatical errors (or is a bit difficult to read) and does not seem ready to be published.
In order to keep our backlog to a minimum, we will be closing this PR, as all edits should be completed on authors forked repo not in the queue.


Add toml parser

What's changed?

What's your motivation?

Anything in particular you'd like reviewers to focus on?

Anyone you would like to review specifically?

Have you considered any alternatives or workarounds?

Any additional context

Checklist

[ ] I've added unit tests to cover both positive and negative cases
[ ] I've read and applied the recipe conventions and best practices
[ ] I've used the IntelliJ IDEA auto-formatter on affected files

Dropping this here as well, since Steven and I are collaborating in parallel on the effort trying different things here and there. This PR will serve as the final source to be contributed for TOML support.
https://github.com/shanman190/rewrite-toml

Related to https://github.com/openrewrite/rewrite/issues/4400. A future PR will take the work done here and integrate it with the rewrite-gradle module.


Allow the inner source type of a NamedSource to be borrowed directly

I would like to be able to use &NamedSource as the input to parsing and lexing functions that use and borrow from the source already stored in the NamedSource::inner() instead of passing another copy.
Based on the discussion in #235, we could do this by making NamedSource generic over the inner source type which could simplify the API for a basic parse function to something like this:
pub fn parse(source: &NamedSource<String>) -> Result<Tokens<'_>> {
   let chars = source.inner().char_indices();
   ...
}

Submitted a PR for this: #254 . See my comment there for notes about compatibility. I'll look into a backwards compatible version of this over the next few days. Feedback would be appreciated.


Deprecation warning: Addon: ember-cli-font-awesome is missing addon.project

I've created an addon (private) and included ember-cli-font-awesome. As soon as this dependency is added the build outputs the following deprecation warning:
DEPRECATION: Addon: `ember-cli-font-awesome` is missing addon.project, this may be the result of an addon forgetting to invoke `super` in its init.
DEPRECATION: Addon: `ember-computed-decorators` is missing addon.project, this may be the result of an addon forgetting to invoke `super` in its init.
DEPRECATION: Addon: `ember-cli-font-awesome` is missing addon.project, this may be the result of an addon forgetting to invoke `super` in its init.

I have little experience creating addons so apologies if this is as a result of my setup, but maybe someone could shed some light on this..?

ember-cli: 2.6.1
node: 4.2.6

Thanks.

This is already fixed in the latest version of ember-font-awesome. If you care about the message going away you should upgrade it.

Perfect, confused but all good. I had tried to update to the latest but had used:
ember install ember-cli-font-awesome
Dropping the cli and uninstalling that does the the job!
Thanks!

@edslocombe did you install ember-cli-font-awesome  via a tutorial or guide? If so, could you share which guide, I'd like to reach out to fix the install.

It was from Google, searched for ember-cli-font-awesome and the NPM page is obviously the first hit:
https://www.npmjs.com/package/ember-cli-font-awesome


unreleased-commits suggests drafting a new release even when no rights to do so, redirects to homepage when clicked

Description
unreleased-commits (identified by the add-on's helper feature) adds a + button prompting me to create a new release for the unreleased commits, even for repositories where I do not have the right to do so. When clicked, I will get redirected to the homepage http://github.com.
How to replicate the issue + URL
Open a project where you have no rights to create releases for (in my case a public repo was https://github.com/distcc/distcc), and click on the + sign created by unreleased-commits.
Extension version
24.10.14
Browser(s) used
Firefox 130.0.1
Token ⚠

[X] I set a token in the options page. I understand that some features require a token to work.

That's weird, we do have a check for this specifically:
https://github.com/refined-github/refined-github/blob/f30ca4a22528e9720e23b85d4cd38f074d64b179/source/features/unreleased-commits.tsx#L101

I was able to add a breakpoint to the line
https://github.com/refined-github/refined-github/blob/f30ca4a22528e9720e23b85d4cd38f074d64b179/source/features/unreleased-commits.tsx#L100
and if I execute await userHasPushAccess() in the console, I get false. In fact, refined-github repository is also a good candidate as I can't push here.
Evaluating (!userHasPushAccess()) returns false even if I run it on a repo where I do have push access to. I guess the change here checks the success flag/status of the Promise object and not the actual queried value? As doing (!await userHasPushAccess()) seems to return true for this repository, it seems to indicate this is the reason for the issue.

Ugh I caught another such bug in the code before. Yes, it needs an await. PR welcome if you can build the project and test it


adds number_of_n_syllable_words_all function

This adds the number_of_n_syllable_words_all function to descriptive_statistics.py.
For a list of texts, it counts the frequency of all n-syllable words for all values of n that it finds.
At the moment it is already possible, but a bit cumbersome, to find the frequencies of all syllables that exist in a text.
Consider this example:
docs = ['This has a very long word: Pneumonoultramicroscopicsilicovolcanoconiosis']

The very long word (apparently) has 13 syllables. But I don't necessarily know that it exists in my corpus. Currently I could find it by calling the number_of_n_syllable_words in a loop, and using a large enough number:
from linguaf.descriptive_statistics import number_of_n_syllable_words

docs = ['This has a very long word: Pneumonoultramicroscopicsilicovolcanoconiosis']
for i in range(1, 14):
    freqs = number_of_n_syllable_words(docs, n=(i, i+1))
    print(i, freqs)

But this is a bit inefficient.
With the new function this becomes much easier:
from linguaf.descriptive_statistics import number_of_n_syllable_words_all

docs = ['This has a very long word: Pneumonoultramicroscopicsilicovolcanoconiosis']
freqs = number_of_n_syllable_words_all(docs)
print(freqs)
print(freqs[5])  # how many 5-syllable words?

Prints:
defaultdict(<class 'int'>, {1: 6, 13: 1})
0

This new function also allows the user to easily find the frequency of only certain n-syllable words, such as "frequency of all 3-syllable and 5-syllable words, but nothing else". Again, this is already possible with number_of_n_syllable_words but all texts need to be processed twice with this approach (due to requiring two function calls - one with n=(3,4) and one with n=(5,6) which is a bit slow.

Thanks @ThHuberSG, gonna test it locally


[Orb] Update screens to use new SVG Orb

Thanks for your hard work on this, @vitorbarros it's looking really good! There are just a few screens left that have issues still:

[ ] The view / select domains screen should have the orb at the bottom:
[ ] The following screens should not show the orb:

Thanks!

Closing this in favor of new #178 which is basically the same branch that's been rebased on top of #177


Sysinternals won't install

Oops, hit enter expecting it to tab me into the issue description. Instead it posted the issue.

Closed: Bad submission, reopening another.


Miscellaneous additions

This PR adds some additional functions to different structures.
Description
Time.tick
This is the smallest time value. It is useful to be able to know what the smallest time unit is in code, and this addition was recommended in SMLFamily/BasisLibrary#35.
Universal.tagTryProject
It is a common usage pattern to do the following:
val myTag : t Universal.tag = ...
fun myFunc (u : Universal.universal) =
  if Universal.tagIs myTag u
    then doStuff (Universal.tagProject myTag u)
    else doOtherStuff ()

Because universal is implemented using an optional, this code performs additional checks.
It also encourages a bad pattern (check + unwrap) instead of pattern matching.
Now one can write:
val myTag : t Universal.tag = ...
fun myFunc (u : Universal.universal) =
  case Universal.tagTryProject myTag u
    of SOME x => doStuff x
     | NONE => doOtherStuff ()

Unsafe.ptrEq
This definition was referenced in #327, and it makes sense to add it to the Unsafe module to bless this as a valid implementation.
How Has This Been Tested?
Time.tick and Universal.tagTryProject are trivially tested, but these are trivial additions.
Unsafe.ptrEq has not been extensively tested.

This is a replacement for the code:
fun smallestTime () = let
      fun go n = if Time.zeroTime = Time.fromNanoseconds n then go (n * 10) else n
      in  go 1 end
val tick = Time.fromNanoseconds (smallestTime ())

This is Time.fromNanoseconds 1000 in SML/NJ, which is TIME { usec = 1 }.

I had misremembered the discussion about tick.  Before putting this in the implementation, I'd like to have a Basis Library proposal for it.  I'm throwing something together right now.


hello! please help whenever i go to launch the private server on grasscutter it loads up the regular version of the game. how do i fix this my discord is we're gay <3#8853 if u need to contact me there

Ask in Discord, not here