EMHASS cannot retrieve load history from HA sensor

Describe the bug
EMHASS naive-mpc-optim fails because it can't read my load sensor. This just started one early morning without me having made any changes to neither configuration, nor made any restarts.
The logs show the following error message:
2024-04-14 19:35:00,617 - web_server - INFO - Passed runtime parameters: {'prediction_horizon': 24, 'soc_init': 0.05, 'soc_final': 0.5, 'def_total_hours': [], 'load_cost_forecast': [0.55, 0.37, 0.35, 0.35, 0.35, 0.32, 0.33, 0.34, 0.35, 0.35, 0.59, 0.94, 2.45, 1.86, 1.07, 1.07, 1.01, 0.97, 0.83, 0.63, 0.78, 0.87, 1.0, 0.99], 'prod_price_forecast': [0.32, 0.14, 0.12, 0.12, 0.12, 0.09, 0.1, 0.11, 0.12, 0.12, 0.36, 0.71, 2.22, 1.63, 0.84, 0.84, 0.78, 0.74, 0.6, 0.4, 0.55, 0.64, 0.77, 0.76], 'pv_power_forecast': [109, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 222, 567, 1174, 2092, 3042, 4154, 5169, 6031, 6454, 6285, 5663, 4634, 2908]}
2024-04-14 19:35:00,617 - web_server - INFO -  >> Setting input data dict
2024-04-14 19:35:00,617 - web_server - INFO - Setting up needed data
2024-04-14 19:35:00,620 - web_server - INFO - Retrieve hass get data method initiated...
2024-04-14 19:35:02,155 - web_server - INFO - Retrieving weather forecast data using method = list
2024-04-14 19:35:02,157 - web_server - INFO - Retrieving data from hass for load forecast using method = naive
2024-04-14 19:35:02,157 - web_server - INFO - Retrieve hass get data method initiated...
2024-04-14 19:35:02,227 - web_server - ERROR - The retrieved JSON is empty, A sensor:sensor.template_emhass_no_var_load_2 may have 0 days of history or passed sensor may not be correct
2024-04-14 19:35:02,229 - web_server - ERROR - Exception on /action/naive-mpc-optim [POST]
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/dist-packages/flask/app.py", line 1463, in wsgi_app
    response = self.full_dispatch_request()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/flask/app.py", line 872, in full_dispatch_request
    rv = self.handle_user_exception(e)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/flask/app.py", line 870, in full_dispatch_request
    rv = self.dispatch_request()
         ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/flask/app.py", line 855, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/emhass/web_server.py", line 108, in action_call
    input_data_dict = set_input_data_dict(config_path, str(data_path), costfun,
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/emhass/command_line.py", line 128, in set_input_data_dict
    df_input_data_dayahead = pd.concat([P_PV_forecast, P_load_forecast], axis=1)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/pandas/core/reshape/concat.py", line 372, in concat
    op = _Concatenator(
         ^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/pandas/core/reshape/concat.py", line 462, in __init__
    raise TypeError(msg)
TypeError: cannot concatenate object of type '<class 'bool'>'; only Series and DataFrame objs are valid

To Reproduce
This happens every time I try to call the optimization.
Expected behavior
EMHASS should be able to read the sensor's value. It clearly has a history if I look at it in HA:

Screenshots
If applicable, add screenshots to help explain your problem.
Home Assistant installation type

Home Assistant Core

Your hardware

OS: Debian bookworm (12)
Architecture: amd64

EMHASS installation type

Docker Standalone

Additional context
I have tested retrieving the sensor history using curl from within the emhass container using the same HA URL and access token as specified in secrets_emhass.yaml and it works well.
I have tried creating a second load sensor in HA, but that cannot be read either by EMHASS.
I have tried using the sensor in an ML forecaster fit call from EMHASS web UI, but only with the same result:

I ran this Python script to test the retrieval of history. I ran it from a separate PC on the same network.
It returns a complete list of sensor history, so still can't reproduce the EMHASS behavior.
(secrets masked)
import pandas as pd
from requests import get, post

days_list = pd.date_range(end='2024-04-17', freq='D', periods=5)
print(days_list)
print(days_list[0].isoformat())
day = days_list [0]
var = 'sensor.template_emhass_no_var_load_2'
hass_url= 'https://my.homeassistant.url:8123/'
long_lived_token = 'XXXXXXXXXXXXXXXX'

url = hass_url+"api/history/period/"+day.isoformat()+"?filter_entity_id="+var

headers = {

    "Authorization": "Bearer " + long_lived_token,
    "content-type": "application/json",
}

# Then once that all this is defined there is no much to it than this:
response = get(url, headers=headers)

# And extract the data >> This is where your code is failing so check this part:
data = response.json()[0]

# If successful then print
print(data)

[{'entity_id': 'sensor.template_emhass_no_var_load_2', 'state': '694.05', 'attributes': {'unit_of_measurement': 'W', 'device_class': 'power'}, 'last_changed': '2024-04-12T22:00:00.928736+00:00', 'last_updated': '2024-04-12T22:00:00.928736+00:00', 'context': {'id': '01HVG824J3QD58P2P1KHNK5EBW', 'parent_id': None, 'user_id': None}}, {'entity_id': 'sensor.template_emhass_no_var_load_2', 'state': '693.03', 'attributes': {'unit_of_measurement': 'W', 'device_class': 'power'}, 'last_changed': '2024-04-12T22:00:02.861105+00:00', 'last_updated': '2024-04-12T22:00:02.861105+00:00', 'context': {'id': '01HVG824J3QD58P2P1KHNK5EBW', 'parent_id': None, 'user_id': None}}, {'entity_id': 'sensor.template_emhass_no_var_load_2', 'state': '694.55', 'attributes': {'unit_of_measurement': 'W', 'device_class': 'power'}, 'last_changed': '2024-04-12T22:00:05.114414+00:00', 'last_updated': '2024-04-12T22:00:05.114414+00:00', 'context': {'id': '01HVG824J3QD58P2P1KHNK5EBW', 'parent_id': None, 'user_id': None}}, {'entity_id': 'sensor.template_emhass_no_var_load_2', 'state': '685.56', 'attributes': {'unit_of_measurement': 'W', 'device_class': 'power'}, 'last_changed': '2024-04-12T22:00:17.870891+00:00', 'last_updated': '2024-04-12T22:00:17.870891+00:00', 'context': {'id': '01HVG824J3QD58P2P1KHNK5EBW', 'parent_id': None, 'user_id': None}}, {'entity_id': 'sensor.template_emhass_no_var_load_2', 'state': '684.04', 'attributes': {'unit_of_measurement': 'W', 'device_class': 'power'}, 'last_changed': '2024-04-12T22:00:20.125773+00:00', 'last_updated': '2024-04-12T22:00:20.125773+00:00', 'context': {'id': '01HVG824J3QD58P2P1KHNK5EBW', 'parent_id': None, 'user_id': None}}, {'entity_id': 'sensor.template_emhass_no_var_load_2', 'state': '689.17', 'attributes': {'unit_of_measurement': 'W', 'device_class': 'power'}, 'last_changed': '2024-04-12T22:00:32.871763+00:00', 'last_updated': '2024-04-12T22:00:32.871763+00:00', 'context': {'id': '01HVG824J3QD58P2P1KHNK5EBW', 'parent_id': None, 'user_id': None}},
...

I need to find the time to try to replicate this.
In the meantime can you provide the logs from the add-on after a fresh restart of the add-on?
It's just to check the information printed on the logger about how data is retrieved from HA.
It is true that HA core and EMHASS on docker standalone mode are the least common installation methods these days.

OMG, now the problem is gone. I haven't done anything. No restarts, no config changes, no nothing... I seriously have no friggin idea what happened. The log errors are gone and the optimization and data publisher runs without issues.
I'll close this. If anything like this happens again, I'll try to set up a dev environment with a clone of this repo to try to get more details before posting anything.
Thanks a million for your engagement in this. emhass is key to making my solar facility more profitable and I really appreciate this. I bought you some coffee.

I'm gonna reopen this just to follow-up on some findings.
First of all, this is not an emhass issue. It's a homeassistant issue.
I had this happen again and started debugging emhass to see what happened. Again I can see all history in HA and also download  history csv file and everything looks fine. In my previous attempts to debug this, I've made manual curl queries to HA API with the same dates as emhass would use with historic_days_to_retrieve: 2´´ set. Those calls gave sensor history back. But then it turns out emhass makes a second call with at least three days of history to use with the forecaster. Testing the same curl`` query to HA API with three days returned no result at all. Now this is why emhass dies and I never understood why.
The weird thing is that HA history API sometimes fail fetching data. I could isolate the issue to a specific hour in my history where the API couldn't fetch data past that timestamp. Now, one day later when this specific hour is further than three days back in history, emhass works again.
I've raised an issue to HA core team about this, but don't know whether it will lead to anything. Something's up with my data that makes the history api call fail silently and that's what causes emhass to die.


Prepare release for Schema Registry

Description
Prepare release for Schema Registry in February

azure-data-schemaregistry
azure-data-schemaregistry-apacheavro

All SDK Contribution checklist:

[x] The pull request does not introduce [breaking changes]
[x] CHANGELOG is updated for new features, bug fixes or other significant changes.
[x] I have read the contribution guidelines.

General Guidelines and Best Practices

[x] Title of the pull request is clear and informative.
[x] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[x] Pull request includes test coverage for the included changes.

API change check
API changes are not detected in this pull request.


Improve logging feedback for upload and sync

closes #117

Codecov Report

Merging #171 into dev will increase coverage by 0.06%.
The diff coverage is 92.85%.

@@            Coverage Diff             @@
##              dev     #171      +/-   ##
==========================================
+ Coverage   88.26%   88.33%   +0.06%
==========================================
  Files          13       13
  Lines         878      883       +5
==========================================
+ Hits          775      780       +5
  Misses        103      103

Impacted Files
Coverage Δ

ssds/cli/staging.py
71.73% <0.00%> (ø)

ssds/__init__.py
91.28% <100.00%> (+0.20%)
:arrow_up:

Continue to review full report at Codecov.

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


Nudging copter's position using visual cues

I'd like to tweak the Solo's position as it descends onto a mat, using cues from the camera. In GUIDED mode I thought I could get it in the proximity of the mat using GPS, and then slowly descend at 0.5 m/s, applying a little bit of roll / pitch / yaw as it goes to keep the mat in the centre of the image, and then land it.
I know using channel overrides is discouraged, but is there a better way to do it?
When I try to use overrides in SITL though, the overrides seem to be ignored, as in this cut-down example.
arm_and_takeoff(10)

print("Simulating user input...")
vehicle.channels.overrides['1'] = 1100
vehicle.channels.overrides['2'] = 1100
time.sleep(10)
vehicle.channels.overrides['1'] = None
vehicle.channels.overrides['2'] = None

print("Setting LAND mode...")
vehicle.mode = VehicleMode("LAND")

Yes. 3DR have hidden access to the channel overrides. Some things are available in https://github.com/dronekit/dronekit-python-solo but not this.
I'm pretty sure this sort of thing has been done as part of precision landing - where I believe they used velocity mode control. I recommend you raise this question on the gitter channel: gitter.im/dronekit/dronekit-python to see if there is a good project you can work with. This isn't much different from the red-baloon project which Randy Mackay did.

I'm closing this because we can't expose Solo internals if 3DR do not wish us to!


Get Live Stream Insta ?

Does SwiftyInsta have the ability to get a link to another person’s “live stream” to play it on the device? thanks for the answer.

It currently does not, unfortunately.


⚠ Turnos 24x7 has degraded performance

In 3941d17, Turnos 24x7 (https://reservas.alternativasinteligentes.com/) experienced degraded performance:

HTTP code: 200
Response time: 1196 ms

Resolved: Turnos 24x7 performance has improved in 2183b07.


UTC Offset is not Send (cannot send DateTime across mps::channel)

I have a struct with a DateTime<UTC> field that I would like to send across a channel, like this:
pub struct Signal {
  pub time: DateTime<UTC>,
  pub raw: String
}

But when I want to create the channel, rustc complains that
error: the trait `core::marker::Send` is not implemented for the type `<chrono::offset::utc::UTC as chrono::offset::TimeZone>::Offset` [    E0277]

let (new_signal_sender, new_signal_rcvr) = channel::<Signal>();
                                           ^~~~~~~~~~~~~~~~~
note: `<chrono::offset::utc::UTC as chrono::offset::TimeZone>::Offset` cannot be sent between threads safely
let (new_signal_sender, new_signal_rcvr) = channel::<Signal>();

Now Send is easily the part of Rust I understand the least, but I would have expected a DateTime object to be "sendable".

Thank you for reporting. Chrono 0.2.3 fixed this issue.


Presto Gateway/ Expose prometheus metrics

Exposes prometheus metrics via /prometheusMetrics endpoint
Adds circleCI config for build and release
Adds Docker file for building presto-gateway image

@bwang-k good point. I have removed the redundant configs from deployments repo as part of https://github.com/secondmeasure/deployments/pull/423/ and updated this PR with docker compose configs.

LGTM!


Update go-control-plane to include stackdriver tracing

Update go-control-plane to 0.8.1  - contains stackdriver tracing support.
Update rbac code from v2alpha2 --> v2
sdsserver.go must implement DeltaSecrets API, added stub

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: mandarjog
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: rshriram
If they are not already assigned, you can assign the PR to them by writing /assign @rshriram in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@mandarjog: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/racetest.sh
9c8c17b63d6a658a00889e64184cbae8ae383e98
link
/test istio-racetest-master

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: kyessenov, mandarjog
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: rshriram
If they are not already assigned, you can assign the PR to them by writing /assign @rshriram in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

/lgtm
/approve

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: costinm, kyessenov, mandarjog
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [costinm]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@mandarjog: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/racetest.sh
9c8c17b63d6a658a00889e64184cbae8ae383e98
link
/test istio-racetest-master

prow/release-test.sh
9c8c17b63d6a658a00889e64184cbae8ae383e98
link
/test release-test-master

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test release-test-master
/test istio-racetest-master


Improve debugability

For Datastream API, in case the source records' schema does not match the expected BQ Table(sink) schema, the deserializer (BigQueryDeserializationSchema) is unable to forward the mismatched record further to the pipeline. Hence, making this error more verbose to pinpoint the underlying cause instead of ClassCastException currently being seen due to the mismatch.

Fix error in writing time type to BigQuery. LocalDateTime dropping 00 seconds value when parsing date string value with 00 seconds like "2018-07-06 00:00:00". Parsing now using ISO format to ensure a 00 at the end.

Fix unbounded read for time partitioning based on DAY, MONTH and YEAR
/gcbrun

Combined with PR #176.


Unable to use embedded Noto Font

Ran for both latest beta and main as the implementation has changed since the last stable release and will soon become be the new stable release.
Steps to Reproduce

Create an example app using flutter create --platforms web --template=app noto_font_test
Use the example Flutter app from below.
Force to use CanvasKit
Download the Noto Emoji fallback font from [1]
Download the Roboto fallback font from [2]
Put the Noto Emoji & Roboto font into the folder assets/fonts/Noto-Emoji.ttf/assets/fonts/Roboto.ttf
Configure the fonts in the pubspec.yaml file using [3]
Run the app in release mode (will be easier to skim through the request being made, it's the same in debug mode)

Expected results:
When looking at the network requests being made, the domain fonts.gstatic.com is never used as all fonts were already included.

Being able to use an embedded font would also allow us to decide whether we want to use the Noto Emoji or Noto Color Emoji font.
e.g., we'd prefer the colored emoji version over the black/white Noto Emoji font.

Actual results:
The Roboto font is not loaded twice (as it's included already as checked here)
A check whether the font has already been loaded does not seem to exist for the fallback font loading here:
https://github.com/flutter/engine/blob/main/lib/web_ui/lib/src/engine/canvaskit/font_fallbacks.dart#L261
https://github.com/flutter/engine/blob/main/lib/web_ui/lib/src/engine/canvaskit/font_fallbacks.dart#L419
However, the Noto font is loaded twice, once from localhost and once from fonts.gstatic.com as it can be seen in the HAR file:
https://gist.github.com/IchordeDionysos/4bffa3cba40a51a38ca12dce27051477

Code sample

import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Emoji Canvas Kit Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(title: 'Emoji Demo Home Page'),
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: const <Widget>[
            Text(
              'This is some text with an emoji 🌟',
            ),
          ],
        ),
      ),// This trailing comma makes auto-formatting nicer for build methods.
    );
  }
}

Logs

[   +9 ms] executing: sysctl hw.optional.arm64
[   +4 ms] Exit code 0 from: sysctl hw.optional.arm64
[        ] hw.optional.arm64: 1
[        ] executing: [/Users/dennis/develop/bin/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +14 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 9b4416aaa79bf984d06aa40ab515a274a50a75a7
[        ] executing: [/Users/dennis/develop/bin/flutter/] git tag --points-at 9b4416aaa79bf984d06aa40ab515a274a50a75a7
[  +74 ms] Exit code 0 from: git tag --points-at 9b4416aaa79bf984d06aa40ab515a274a50a75a7
[        ] 3.7.0-1.3.pre
[   +5 ms] executing: [/Users/dennis/develop/bin/flutter/] git rev-parse --abbrev-ref --symbolic @{upstream}
[  +10 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{upstream}
[        ] origin/beta
[        ] executing: [/Users/dennis/develop/bin/flutter/] git ls-remote --get-url origin
[   +9 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +15 ms] executing: [/Users/dennis/develop/bin/flutter/] git rev-parse --abbrev-ref HEAD
[  +20 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] beta
[        ] executing: sw_vers -productName
[   +9 ms] Exit code 0 from: sw_vers -productName
[        ] macOS
[        ] executing: sw_vers -productVersion
[   +9 ms] Exit code 0 from: sw_vers -productVersion
[        ] 12.6
[        ] executing: sw_vers -buildVersion
[   +9 ms] Exit code 0 from: sw_vers -buildVersion
[        ] 21G115
[        ] executing: uname -m
[   +4 ms] Exit code 0 from: uname -m
[        ] arm64
[  +14 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +23 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +21 ms] executing: sysctl hw.optional.arm64
[   +3 ms] Exit code 0 from: sysctl hw.optional.arm64
[        ] hw.optional.arm64: 1
[        ] executing: /usr/bin/arch -arm64e xcrun xcodebuild -version
[ +149 ms] Exit code 0 from: /usr/bin/arch -arm64e xcrun xcodebuild -version
[        ] Xcode 14.1
           Build version 14B47b
[  +25 ms] Skipping pub get: version match.
[ +111 ms] Launching lib/main.dart on Chrome in release mode...
[  +37 ms] generated_plugin_registrant.dart not found. Skipping.
Compiling lib/main.dart for the Web...
[   +3 ms] Initializing file store
[   +2 ms] Done initializing file store
[  +27 ms] Skipping target: web_entrypoint
[        ] Skipping target: gen_localizations
[        ] Skipping target: web_static_assets
[ +323 ms] Skipping target: dart2js
[  +66 ms] web_release_bundle: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents: /Users/dennis/develop/noto_font_test/assets/fonts/Roboto.ttf}
[  +42 ms] web_release_bundle: Complete
[ +154 ms] web_service_worker: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents: build/web/index.html}
[ +169 ms] web_service_worker: Complete
[   +1 ms] Persisting file store
[   +2 ms] Done persisting file store
[  +36 ms] Using Google Chrome 109.0.5414.87

[ +141 ms] executing: sysctl hw.optional.arm64
[   +3 ms] Exit code 0 from: sysctl hw.optional.arm64
[        ] hw.optional.arm64: 1
[   +6 ms] Found ARM Chrome installation at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome, forcing native launch.
[ +402 ms] [CHROME]:
[        ] [CHROME]: DevTools listening on ws://<IP_ADDRESS>:65211/devtools/browser/09ba39e1-6998-404f-82a5-614e9a30a4b4

> flutter analyze
Analyzing noto_font_test...
No issues found! (ran in 1.1s)

> flutter doctor -v
[!] Flutter (Channel beta, 3.7.0-1.3.pre, on macOS 12.6 21G115 darwin-arm64, locale de-DE)
    • Flutter version 3.7.0-1.3.pre on channel beta at /Users/dennis/develop/bin/flutter
    ! Warning: `dart` on your path resolves to /opt/homebrew/Cellar/dart/2.18.6/libexec/bin/dart, which is not inside your current Flutter SDK checkout at /Users/dennis/develop/bin/flutter. Consider adding
      /Users/dennis/develop/bin/flutter/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 9b4416aaa7 (7 days ago), 2023-01-04 17:29:34 -0600
    • Engine revision 7b8906637f
    • Dart version 2.19.0 (build 2.19.0-444.3.beta)
    • DevTools version 2.20.0
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[!] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    • Android SDK at /Users/dennis/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

[✓] Xcode - develop for iOS and macOS (Xcode 14.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14B47b
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.3)
    • Android Studio at /Users/dennis/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/213.7172.25.2113.9123335/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[✓] IntelliJ IDEA Ultimate Edition (version 2022.3.1)
    • IntelliJ at /Users/dennis/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app
    • Flutter plugin version 71.3.6
    • Dart plugin version 223.8214.16

[✓] IntelliJ IDEA Ultimate Edition (version 2022.3.1)
    • IntelliJ at /Users/dennis/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/223.8214.52/IntelliJ IDEA.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] IntelliJ IDEA Ultimate Edition (version 2022.2.3)
    • IntelliJ at /Users/dennis/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/222.4345.14/IntelliJ IDEA.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.74.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (3 available)
    • Pixel 7 Pro (mobile) • 29201FDH300M9M • android-arm64  • Android 13 (API 33)
    • macOS (desktop)      • macos          • darwin-arm64   • macOS 12.6 21G115 darwin-arm64
    • Chrome (web)         • chrome         • web-javascript • Google Chrome 109.0.5414.87
    ! Error: To use iPad von Dennis for development, enable Developer Mode in Settings → Privacy & Security.  (code 6)

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 2 categories.

[1] https://fonts.gstatic.com/s/notoemoji/v34/bMrnmSyK7YY-MEu6aWjPDs-ar6uWaGWuob-r0jwvS-FGJCMY.ttf
(taken from https://github.com/flutter/engine/blob/main/lib/web_ui/lib/src/engine/canvaskit/font_fallback_data.dart#LL11C27-L11C121)
[2] https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Me5WZLCzYlKw.ttf (taken from https://github.com/flutter/engine/blob/main/lib/web_ui/lib/src/engine/canvaskit/fonts.dart#LL22C6-L22C75)
[3]
  fonts:
    - family: Roboto
      fonts:
        - asset: assets/fonts/Roboto.ttf
    - family: Noto Emoji
      fonts:
        - asset: assets/fonts/Noto-Emoji.ttf

CC @yjbanov @mdebbar ?

Workaround:
Define a fallback font family yourself, which will then be picked up before the Flutter fallback fonts
Scaffold(
  appBar: AppBar(
    title: Text(title),
  ),
  body: DefaultTextStyle(
    style: const TextStyle(fontFamilyFallback: ['Noto Color Emoji']),
    child: Center(
      child: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        children: const <Widget>[
          Text(
            'This is some text with an emoji 🌟',
          ),
        ],
      ),
    ),
  ),
);

I guess the issue is that we don't have a way to specify a font formally as an "emoji font". The emoji font file that the app supplies is just a font file with some glyphs in it that happen to be emoji. When the Flutter Web engine attempts to render a piece of text containing emoji and the specified fonts do not provide it, it decides that it needs to look into fallback fonts. It doesn't search for the glyph across all the fonts supplied by the app (that would be inefficient).
What we could do is provide a way for the app to configure fallback fonts, including supplying its own. Then the engine would find fallback glyphs there.
If this sounds right, we could adopt this issue as a feature request to support custom font fallbacks.


Update codebook.explorer table calls

Tweak file table presentation to use webcharts v1.9

Test Notes: Confirm that files tab at ./projects/264/testing/202.html works as expected (click a file link to see a codebook, and doesn't have any sort/search/pagination/export functionality shown by default.

Confirmed that files tab at http://interactive.it.rhoworld.com/dev/projects/264/testing/202.html works as expected in all browsers.


Remove spaces from device tokens

At some point Apple have seemed to introduce spaces in their feedback service response.
This change strips spaces to ensure that tokens can be invalidated correctly.

@coatezy 👀

🚀


Distance Join Query result using SpatialRDDs is sparse (doesn't contain all userData) and doesn't contain the distance

Expected behavior
Want to do Distance Join Query between two dataframes. So followed the documentation
The expected result after adding userData and geom of each row is (all ids are found in the userData) and converting it to a Dataframe is:
|  geom1                | id1                       | geom2                | id2      |
--------------------------------------------------------------------------------------------
  POINT(1.1 2.2)        | 1                         |  POINT(3.3 4.4)      | 100      |
  POINT(1.1 2.2)        | 1                         |  POINT(5.5 6.6)      | 101      |
  POINT(1.1 2.2)        | 1                         |  POINT(7.7 8.8)      | 101      |
  POINT(10 11)          | 2                         |  POINT(3.3 4.4)      | 100      |

The schema of the first dataframe:
root
|-- geom1: geometry (nullable = false)
|-- id1: string (nullable = true)

The schema of the second dataframe:
root
|-- geom2: geometry (nullable = false)
|-- id2 string (nullable = true)

Actual behavior
But now when the query is done and the userData is added the result is:
|  geom1                | id1                       | geom2                | id2      |
--------------------------------------------------------------------------------------------
  POINT(1.1 2.2)        | 1                         |  POINT(3.3 4.4)      | 100      |
  POINT(1.1 2.2)        |                           |  POINT(5.5 6.6)      | 101      |
  POINT(1.1 2.2)        |                           |  POINT(7.7 8.8)      | 101      |
  POINT(10 11)          | 2                         |  POINT(3.3 4.4)      |          |

So the result is good since the point with id1=1 is within the distance from 3 other points.
The problem is that once an id (userData) is used it won't be included for all the other rows in the userData.
Like in the id1=1 only available for the first row. The same for id2=100.
I solved this by doing a join on the geometry columns to get the expected result, but this include additional computation that can be avoided.
I think also that it would be better to have the distances in the result since I calculated in an additional step after getting the distance join result.
Steps to reproduce the problem
Do a distance join query between two RDDs like the documentation and tried to include the userData
Settings
GeoSpark version = 1.3.1
Apache Spark version = 2.4.5
JRE version = 1.8
API type = Python

I am not sure if I understand you correctly.
consider_boundary_intersection = False
using_index = False

points_a = [
    GeoData(geom=Point(1.1, 2.2), userData="1"),
    GeoData(geom=Point(10.0, 11.0), userData="2")
]
points_b = [
    GeoData(geom=Point(3.3, 4.4), userData="100"),
    GeoData(geom=Point(5.5, 6.6), userData="101"),
    GeoData(geom=Point(7.7, 8.8), userData="101")
]

spatial_points_a = self.sc.parallelize(points_a).\
    repartition(1)

spatial_points_b = self.sc.parallelize(points_b).\
    repartition(1)

point_rdd_a = PointRDD(spatial_points_a)
point_rdd_b = PointRDD(spatial_points_b)

circle_rdd = CircleRDD(point_rdd_a, 10.0)
circle_rdd.analyze()

circle_rdd.spatialPartitioning(GridType.KDBTREE)
point_rdd_b.spatialPartitioning(circle_rdd.getPartitioner())

result = JoinQuery.DistanceJoinQueryFlat(point_rdd_b, circle_rdd, using_index, consider_boundary_intersection)
Adapter.toDf(result, self.spark).show()

Gives me that result
+---------------+---+---------------+---+
|             _1| _2|             _3| _4|
+---------------+---+---------------+---+
|POINT (1.1 2.2)|  1|POINT (3.3 4.4)|100|
|POINT (1.1 2.2)|  1|POINT (5.5 6.6)|101|
|POINT (1.1 2.2)|  1|POINT (7.7 8.8)|101|
|  POINT (10 11)|  2|POINT (3.3 4.4)|100|
|  POINT (10 11)|  2|POINT (5.5 6.6)|101|
|  POINT (10 11)|  2|POINT (7.7 8.8)|101|
+---------------+---+---------------+---+

Can you provide exact RDDs or DataFrames which result with your case ?

I was able to reproduce your issue with GeoSpark 1.3.1 but this issue no longer exists on master branch (version 1.3.2) which is not published on PyPi repo. Imho you can clone the repo and build package from source. Thank you for finding the bug !

I see now. Is there a way to add the distance to the result as a feature?
Else how can I find new features/bug fixes like this one that are in progress or resolved, but without an issue being reported?


Fix TF provider name for Azure and GCP in Python docs

First commit updates the pydocgen tool, second commit regenerates the Python docs.
@stack72, Regenerating the Python docs included more changes than just the attribution changes. Looks like we sometimes forget to generate the Python docs (via ./scripts/generate_python_docs.sh) when updating docs for new package versions.
Part of #1395

This is awesome @justinvp - when I am in the office this week, I want to talk with you about a workflow for our provider docs generation that should help to keep these differences down!


PowerShell 7.20 unstable when running from command line or MSBuild

Prerequisites

[X] Write a descriptive title.
[X] Make sure you are able to repro it on the latest released version
[X] Search the existing issues.
[X] Refer to the FAQ.
[X] Refer to Differences between Windows PowerShell 5.1 and PowerShell.

Steps to reproduce
For my example i used a simple script to output "Test":
Write-Output "Test"
Running the script from Command line result in unstable results.
Several times, the script will run correctly.
However after a running the scripts a few times, the script will not execute.
For running scripts in MSBuild, i get the same result. The script gets called by MSBuild, however the build will stop there as the script is not executed.
Expected behavior
Test

Actual behavior
Script not executing consistently

Error details
No Error returned

Environment data
Name                           Value
----                           -----
PSVersion                      7.2.0
PSEdition                      Core
GitCommitId                    7.2.0
OS                             Microsoft Windows 10.0.19042
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

Visuals
As seen in the image below, the scripts runs correct several times and outputs "Test".
At the last time we see the command is send, but the script is not executed.
Within the process explorer we see that pwsh.exe is running. When i close this one, the command line also works again as intended.

@yannicvandekuit Does the D:\experiments\Test.ps1 only contain Write-Output "Test" in it? If not, can you share the whole Test.ps1 script?
Can you try "c:\Program Files\PowerShell\7\pwsh.exe" -noprofile D:\experiments\Test.ps1 and see if you would run into the same problem?
Also, is the cmd.exe in the screenshot running as a 32-bit process or 64-bit process? (you can check this in Task Manager, click Details, find the process, then check the Platform column)

@daxian-dbw thanks for your response.
D:\experiments\Test.ps indeed only contains Write-Ourput "Test", and the cmd.exe process is running as a 64-bit process.
Using  "c:\Program Files\PowerShell\7\pwsh.exe" -noprofile D:\experiments\Test.ps1 also results in the same problem.

@yannicvandekuit Can you run pwsh -noninteractive and share results?

@iSazonov

Same outcome once again.

@yannicvandekuit I cannot reproduce the hang locally. I'm afraid you will have to collect a dump from your repro, by dotnet-dump. Please use dotnet-dump collect -p <process-id> --type Heap -o <path-to-dump-file>. Please share the dump in some way (OneDrive, etc.), and we will take a look.


add support for hf_pulse_7b

Pulse-7b模型配置
https://github.com/openmedlab/PULSE
https://huggingface.co/OpenMEDLab/PULSE-7bv5

Would you like to provide some baseline results and the corresponding commands ?

Would you like to provide some baseline results and the corresponding commands ?
As a personal user, I don't have any test results to submit, limited by computing power. But I am sure that this configuration can make pulse7b run smoothly under opencompass.
Corresponding commands:
CUDA_VISIBLE_DEVICES=0 python run.py --models hf_pulse_7b  --datasets medbench_gen --debug


netcoreapp1.1> support

Are there plans to make this package compatible with netcoreapp 1.1 or superior?
Nuget error: Package RazorEngine 3.9.3 is not compatible with netcoreapp1.1

I think making this project compatible with to .Net Core is essential, although I understand the problems to do this might make it difficult and maybe not even possible if something is missing in .Net Core.
But I'll be interested to know if any tests have been done against .Net Core.

I agree. I would love to try this out because it has a lot of features that I need, but I have to have it support netstandard1.6

Is there any timeline for when support for 1.1 will be available?

I too would be very interested in this for .NET Core 1.1

This seems extremely useful, but all of our development is in .NET Core. Is there a plan/ETA on this?


CORE-2456 includeObjects/excludeObjects not work for UniqueConstraint…

….  Change filter change to check for UniqueConstraints.

looks good, thanks


Generate single file without generating in its sub folders

If I have a file directory like
lib/test1/example1.dart
lib/test2/example2.dart
lib/test3/example3.dart
lib/test4/example4.dart

Test directories contain only one file. For these, 4 files will be created: test1.dart, test2.dart, test3.dart, test4.dart.
It might be better to merge it into one file instead: lib/<file-name>.dart

Thanks for opening an issue @murataksuu!
Hmm, I like what you are proposing. I could add a new option that would:

Create a barrel file 🛢 in the folder selected with all the exports from its nested folders.
Do not create a barrel file on its nested folders.

What do you think?

It looks very good. We will be able to export our libraries containing many files in a single file in a short time. Without allowing confusion. Thank you

I will try to work on it this weekend. I will keep you noticed 😃

Feature added in v4.0.0 which should be life now! Thank you for your proposal, give me any feedback you can 💪🏼!
Star the project and recommend it to your fellow developers to help the extension grow 😄

Wonderful! Thank you for your interest.


[MB-6479] Changing region to US Gov West 1 rather than US West 1

Description
It was pointed to US West 1, this points it to US Gov West 1. To test this, a person can deploy_ecs_task which uses this code. I don't have AWS configured on this temporary computer, so I can't do this today.
Got the region from here https://docs.aws.amazon.com/sdk-for-go/api/aws/endpoints/

Messages

:book:
:link: MB-6479

  Generated by :no_entry_sign: dangerJS against d006e6c690688f327a82111a02f4a227622b642a

I think it should be fine but I would like it tested before landed--perhaps a good pairing opportunity?

Yes, please and thank you!

Tested and works!


Powershell for chocolatey package upload

As discussed in mail, here is a setup to publish to Chocolatey.org. If Winget is the target, probably not relevant anymore.
Best regards,
Mo

Thanks but I've decided to go with winget :)


can't download pretrained models from the https://datarelease.blob.core.windows.net/swinbert/

Hi, guys! Thank you for the project a lot. But I have an issue with downloading pretrained models using download_models.sh. I've tied different networks, but it fails all the time. Do you have another source of the pretrained models? Or are there any chances to move them somewhere? Thank you in advance

Can you please provide more details about the error messages you get? Do you encounter issues for other downloads?

Can you please provide more details about the error messages you get? Do you encounter issues for other downloads?
The error always is about network issue or operation timed out. And I have tried different networks, to be honest
I have only downloaded VATEX pretrained model

20%[===>                ] 554,33M  --.-KB/s    in 59m 47s
2022-05-27 17:52:32 (158 KB/s) - Read error at byte 581255168/2850556753 (Operation timed out). Retrying.

Thanks for letting us know. We plan to use github as an alternative place to store the files. Please stay tuned.

Hi @gurinvlad45
Due to some limitations of the file size, it seems like Github couldn't hold a file greater than 2GB :(
Therefore, I would suggest another method - downloading the large files with AzCopy (it usually provides faster speed).
AzCopy executable tools can be downloaded here. Decompress the azcopy tar file and put the executable in any path. In the example below, I put the executable file at your/path/to/azcopy
To download the model files with AzCopy, please try the following command.
# --------------------------------
# Setup
# --------------------------------
export REPO_DIR=$PWD
if [ ! -d $REPO_DIR/models ] ; then
    mkdir -p $REPO_DIR/models
fi
if [ ! -d $REPO_DIR/models/table1 ] ; then
    mkdir -p $REPO_DIR/models/table1
fi
if [ ! -d $REPO_DIR/models/32frm ] ; then
    mkdir -p $REPO_DIR/models/32frm
fi
BLOB='https://datarelease.blob.core.windows.net/swinbert'

# --------------------------------
# Download our best performing checkpoints for each dataset (corresponding to Table 1 in paper)
# --------------------------------

for DATASET in 'vatex' 'msrvtt' 'tvc' 'youcook2' 'msvd'
do
    your/path/to/azcopy copy $BLOB/models/${DATASET}-table1.zip  $REPO_DIR/models/table1/${DATASET}-table1.zip
    unzip $REPO_DIR/models/table1/${DATASET}-table1.zip -d $REPO_DIR/models/table1/${DATASET}/
    rm $REPO_DIR/models/table1/${DATASET}-table1.zip
done

# same for other downloads...

Hope this helps.


Update user guide for assign role to LDAP group

Update user guide for assign role to LDAP group

closed with PR 5228


pass replacements into the missing translation handler, add an example

I think the missing translation handler should accept an replacements as well

I fully agree!


fix: add missing error status handler

Which problem is this PR solving?

Fixes #1004

Short description of the changes

Adds a missing error status handler. Confused on why existing unit tests didn't pick this up until nodejs14. Will investigate separately...

@dyladan I can add node14 to the circle tests on this PR, else I can confirm that they are passing locally w/ node14

Think they are fundamentally separate issues as this is a true bugfix and the other is just administration. Would prefer they keep separate pr/issue/commits

Makes sense. Passing locally for me on node14, other than a compile error here. I'm assuming its a bootstrapping issue on my end.
https://github.com/open-telemetry/opentelemetry-js/blob/f1324c3efddabc4d82951861dff0d7a5683a2c9e/packages/opentelemetry-plugin-grpc/test/grpc.test.ts#L314-L316

Codecov Report

Merging #1005 into master will increase coverage by 1.41%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1005      +/-   ##
==========================================
+ Coverage   95.00%   96.41%   +1.41%
==========================================
  Files         212      192      -20
  Lines        8805     8013     -792
  Branches      796      654     -142
==========================================
- Hits         8365     7726     -639
+ Misses        440      287     -153

Impacted Files
Coverage Δ

packages/opentelemetry-plugin-grpc/src/grpc.ts
96.79% <100.00%> (+0.01%)
:arrow_up:

...ckages/opentelemetry-core/src/common/NoopLogger.ts
60.00% <0.00%> (-20.00%)
:arrow_down:

...metry-core/src/trace/instrumentation/BasePlugin.ts
81.57% <0.00%> (-5.27%)
:arrow_down:

...telemetry-context-zone-peer-dep/test/utils.test.ts

...s/opentelemetry-plugin-xml-http-request/src/xhr.ts

...lugin-xml-http-request/src/enums/AttributeNames.ts

...y-exporter-collector/test/browser/index-webpack.ts

...ry-context-zone-peer-dep/src/ZoneContextManager.ts

...ackages/opentelemetry-web/src/WebTracerProvider.ts

...kages/opentelemetry-web/src/StackContextManager.ts

... and 13 more


Ore dictionary tooltip doesn't update after removing an ore dictionary with minetweaker

Hi @Tonius , for example If I remove "nuggetIron" from Iron OreBerry(TConstruct) with minetweaker and I reload the minetweaker scripts, the tooltip doesn't update, and remain.
I hope you understand.
NEIIntegration-MC1.7.10-1.0.9
MineTweaker3-1.7.10-3.0.9C

Fixed, I needed to restart the client, /mt reload is not enough.

It would be nice if ore dictionary entries could be removed without restarting the client though

Yeah, I reopen this for visibility.

NEI Integration simply query the oredict every time a tooltip is requested: https://github.com/Tonius/NEI-Integration/blob/master/src/main/java/tonius/neiintegration/mods/mcforge/MCForgeTooltipHandler.java#L42
So I am not sure how to fix this, or if this even mine to fix at all. Seems to be related more to how the oredict itself works, or maybe MineTweaker.

Oh, I must've confused this repo with the MineTweaker repo then. Sorry.


Grammatical mistake in the CODE_OF_CONDUCT.md

There were grammatical mistakes in the code of conduct file.

@deepakprabhakara @allanice001 @gitstart @niwsa  Please review this PR.

Thanks @HimanshuMahto


Choose between screenshot or shake to send a bug

Feature: choose the way to invoke the send bug method
I will try to implement it later, i don't have time now, but it would be really nice to have

+1


Start AV1 implementation

WIP

Here is an example of a IVFWriter that is when passed AV1 RTP packets saves to disk successfully!

@enobufs I also need to think/design how the OBU Cache works and take sequence numbers into account.
We should associate the cache with a sequence number. If we have gaps we should just evict the cache. It is a harder problem, but I am sure we can come up with a good design.

We should associate the cache with a sequence number.

@Sean-Der I think so too because packet loss could occur over the network and NACK may not be able restore them or applicable, but this is done outside the av1_packet.go.  We could update the IVFWriter example to tolerate the case of the discontinuity.

@Sean-Der I'm not very sure type AV1Frame struct belongs to pion/rtp/codecs since it was mainly for RTP packet definitions for each codec.
It might be better to move it under pion/rtp/pkg/

Sorry I thought you were done reviewing @at-wat :(
That works for me! pion/rtp/pkg/frame.AV1 maybe? I am not at my computer (heading to bed). I will move in the morning if you agree! Also feel free to move yourself and use admin override or I can approve+merge in the morning.

@Sean-Der should I file a new issue? https://github.com/pion/rtp/pull/172#discussion_r846829734

@enobufs I can fix it all now!
I did move the obuBuffer to the AV1Frame in the PR. Any other changes I missed?


added the anime page

Issue Number

ISSUE #391
Describe the changes you've made
Added the Anime page and made small changes accordingly like adding anime nav link to other page's navbar.
Also added the anime preview section in home page
Describe if there is any unusual behaviour of your code(Write NA if there isn't)
A clear and concise description of it.
NA
Additional context (OPTIONAL)
Add any other context or screenshots about the feature request here.

Test plan (OPTIONAL)
A good test plan should give instructions that someone else can easily follow.
How someone can test your code?
Checklist

[x] I have mentioned related issue number in PR description.
[x] I have added screenshots and related demo links of my changes..
[x] The title of my pull request is a short description of the requested changes.
[ ] I have added my name in the contributors list at the end of README.md file.
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] Open Source Program names(OPTIONAL: If you participated in any open-source program then please mention the program name here)
LGMSOC

@Srijan1878 share screenshots of the navbar as well.

Navbar of the home page

Navbar of the Anime page itself

Have you added it in the navbar of the contact page?

Just noticed that I have missed it in the contact us page. I have added it in the rest of the pages.
Should I add in the contact page? @QAZIMAAZARSHAD

Just noticed that I have missed it in the contact us page. I have added it in the rest of the pages.
Should I add in the contact page? @QAZIMAAZARSHAD

Yes, the navbar of all pages should be the same.

Okay.

Was facing few conflicts, I have resolved it all and I guess it's okay now. I have also added the anime to navbar of the contact us page

@Srijan1878 do something about the navbar.
It is not fine.

I just checked, it's showing normal on my pc.
Please check it once more, if you still face it then let me know.

Maybe your window size is large that's why it is fine but it is not proper on all screens.
Correct it.

Okay!


Improve the capacity dashboard

Description
How can the docs be improved?

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

I found a few things that could be improved in the capacity dashboard.
1.  Memory Limit Utilization in the Provisioner Summary panel
The column show always 0 since it has an unnecessary or clause in the prom query.

Suggest the 2 ways:

2. Print the bar like eks-node-viewer style
I used the eks-node-viewer when I introduced/migrated the Karpenter. Its color scheme is good for a cost optimization perspective, a low utilization is bad(red) and a high one is good(green).
Why don't we adjust that in the dashboard too?:

FYI. I've already said in the k8s slack #karpenter channel.
https://kubernetes.slack.com/archives/C02SFFZSA2K/p1689051584397069

for 1, choose TO-BE 1 in #4250


Connection strings for linked resources

Hi,
Do you know if getting connection strings injected into the .NET configuration connectionStrings settings at runtime like explain here  slows down the app from a connection-to-database point of view ?
I get this feeling when using my app. Have you already had this feedback ?
Thanks

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 91979290-94f6-b300-e200-f071129a92b2
Version Independent ID: 77b80ec5-3559-74e6-e0fa-6384b20052e5
Content: Configure web apps in Azure App Service
Content Source: articles/app-service/web-sites-configure.md
Service: app-service
GitHub Login: @cephalin
Microsoft Alias: cephalin

Just a Note: Added GitHub doc properties to issue as this came in without any doc details and I am helping the customer on another issue (#19870).

Hi @bertrandpons, thanks for the feedback! We are currently investigating and will update you shortly.

@bertrandpons Calling connection strings from the application settings blade should not provide a slow experience. What data do you have that leads you to believe calling your connection strings is causing slow performance?

@BryanTrach-MSFT It was more about a feeling than a metric-based feedback. As you tell me that it is not supposed to provide a slow experience, I will investigate further to see if my use case could cause a slow experience by using connection strings from application settings blade. Thank you.


More benchmarks for blocking molecules

Blocking molecules are currently implemented using synchronize and semaphore.
This seems to be slow. Alternative implementations? wait/notify doesn't work well in this situation.

Competitor Nedelcu of Monix (typelevel project) has 12 or so "synchronize" in his code, only as negative comments (meaning he avoids it intentionally) and not as actual code anywhere; he also has several calls to Semaphore variable/function names. https://github.com/monix/monix/search?utf8=✓&q=synchronize&type=Code

Current coverage is 67.97% (diff: 68.63%)

No coverage report found for master at 7276ce9.

Powered by Codecov. Last update 7276ce9...c2061c3


have max max_generation generations, instead of max_generation+1

Note than when `max_generation` is used, the first generation was already
created. Therefore, we need only another `max_generation-1` at maximum,
and the first one should be numbered as #1 (since #0 was already
created).

Document this somewhere in the file. Talk about it inside issue #76

Documented in the file.


text classification

Hi and thanks for the nice project.
I have never used autoencoders, so forgive my ignorance.
Questions:
1 - Can I use your code to classify a text into 2 categories ? - I have a dataset where 1st column contains 1 sentence and 2nd column a category, either 0 or 1.
2. If yes to Question 1, how should the train and test data look?

The autoencoder does not do any classification. It is just a way to create sentence representations, which might be used as input by a classifier, but you would have to create that classifier.


Enhancement request: optionally allow @WeakOuter to be the default (with new @StrongOuter annotation)

The request is for a new command line argument for j2objc to optionally consider all outer references "weak". In this mode all outer references are week and a new annotation @StrongOuter can be used to make a specific inner class reference outer object strongly.

The preferred pattern (Effective Java #22) is to mark all inner classes as static unless there is an actual need for the inner class to reference the outer class. By marking an inner class static, the compiler (javac or j2objc) won't define an outer instance field, reducing the coupling of the two classes and making the inner class more efficient. Your app should need very few inner classes that are not static.
For what it's worth, the only reason for needing @WeakOuter is for those few classes which return inner class instances that may outlive the outer instance. For example, HashMap has inner class collections of keys, values, and entries, and accessors that return those instances. In the whole JRE, there are only 16 classes that use this pattern, and they all need a WeakOuter. If your app is using this pattern widely, consider having those accessors return copies instead.

I do know the difference between regular inner classes and static ones.   :-)
I was only talking about proper inner classes.
We are constructing GUI in J2ObjC, so we have a lot of these.

Form Appointment holds a button "Save", which has an OnClick event, which is a lambda expression within the Appointment class.
So, this is a strong reference loop: Form -> Button -> Lambda -> Form.
If we make the Button -> Lambda reference weak, all lambda will be released immediately.
If we make the Form -> Button reference weak, the button will be released immediately.
So it only makes sense to make the Lambda -> Form reference weak (which is actually an Outer reference, since lambdas are treated simply as inner classes by J2ObjC), especially taking into account that the OnClick event will never exist beyond the scope of the form.
We have about 100 lambdas like that (all are OnClick and OnChange events).

Consider an appointment form, constructed to present an appointment.
Within the form we have several charges listed one after another.
The form has a strong reference to all its components (components have weak reference to their parent).
But the charges visual components always live in the context of the appointment form and are defined as inner classes, using the functions of the outer class. While making them static and going through the "parent" reference whenever they need to perform a call on the parent is possible, it's cumbersome and creates too strong of a coupling on the GUI design.
We have about 20 inner classes like that.

My additional problem here was that I don't actually want my developers, developing the shared code to remember inserting "@Weak" everywhere, cause they won't. Also consider the difficulty of declaring a Lambda as a @Weak reference (define a separate variable, etc.).
We have about 120 outer references, out of which we only found 2 references, where outer should be strong.

It seems like this boils down to whether the default is "safe but possibly leaky" vs "unsafe but less likely to leak". I think j2objc's current default is a good choice, since a pass through the Leaks instrument by someone familiar with ObjC memory semantics is critical for finding leaks regardless of this issue.
To me it seems like being able to mark anonymous classes and lambdas as @WeakOuter is key in making this more manageable. This would be analogous to writing [unowned self] in Swift blocks that are used as UI element callbacks, which is a habit that is entirely possible for UI devs to get into. While it would require developers to remember to use the annotation, at least it wouldn't force writing verbose named inner classes wherever you just need a single callback closure. I understand there's a roadblock to doing so due to Java 7 compatibility (https://j2objc.blogspot.com/2017/01/breaking-retain-cycles-with-weak-and.html), and I'm not sure if this is something that is being worked on (https://github.com/google/j2objc/issues/105 is relevant but there's no info there).

What would break if a lambda's outer reference was always __weak? Any thoughts on making Java 8 the minimum OS?

If I may just offer an opinion on "safe but possibly leaky" vs "unsafe but less likely to leak".
I do love type safety, strong types and everything else Java had to offer. That was the reason I chose Java+GWT+J2ObjC, instead of some JS approach or something, but:
I have 5 developers developing that client application and 2 QAs testing it. None of those developers ever developed anything in ObjC or worked with a Mac!
Those 5 developers simply won't remember to insert the annotations. The main reason is – it will work without the annotations.
Once I changed J2ObjC source to make outers weak by default, I asked one of the QAs to run the app in the debugger and "do the app flow". And he found the needed two strong outers in less than half an hour!
Fixing a memory leak is very hard: as you said, you need a serious amount of time, by a good developer, familiar with Apple tools.
On the other hand, finding a bug with having an object released too early is very simple: just look at the failure in the debugger and notice which variable was referenced, while being null, that's it! (obviously, if @Weak actually generates __weak, not __unsafe_unretained).
I'm obviously not saying that Weak should be the default out of the box, but having such an option in a centralised manner, I would say, could be a great option.
Thank you!

I agree, that it would be nice to have this as j2objc translator option. We are in process of cleaning memory leaks, our code is using tons of callbacks and it is really nightmare.


feat: added parsing environment variables to create the map based on pattern of variable name

Feature lost actuality


Access transform object from services

Hi!
I'm not being able to see any documentation on how I can access 'transform' instance outside controller. Is such a thing bad design choice, or is there any way that I can do that.
I have an ProductController and a ProductService, instead of transforming data in controller I would like to be able to use transform object inside service, something like this
const transform = use('Transform')
and then do the transformation.
Thanks :)

const Bumblebee = use('Adonis/Addons/Bumblebee')
const transformer = Bumblebee.create()

I managed to use 'Bumblebee' provider, but I don't want to use .create() in all of my services. Is it good solution to create new custom provider that would abstract 'Bumblebee'?

Yes, the create() method is the correct way to instantiate Bumblebee.
It is mentioned in the documentation just as a side-note at the end since most people will probably use it in a controller.
The transform property in the controller is just a helper that was created with the create() method
You can create a custom provider or helper to make it more convenient for your use case.


curl: (51) SSL: certificate verification failed (result: 5)

Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.
Please always follow these steps:

[X ] Confirmed this is a problem with running a brew command and not brew installing or the post-install behaviour of one or more formulae? If it's a formulae-specific problem please file this issue at the relevant tap e.g. for Homebrew/homebrew-core https://github.com/Homebrew/homebrew-core/issues/new
[X ] Ran brew update and retried your prior step?
[X ] Ran brew doctor, fixed all issues and retried your prior step?
[X ] Ran brew config and brew doctor and included their output with your issue?

To help us debug your issue please explain:

What you were trying to do (and why)
brew install vagrant
What happened (include command output)
curl: (51) SSL: certificate verification failed (result: 5)\
What you expected to happen
I expected vagrant to be installed like all my other bottles.
Step-by-step reproduction instructions (by running brew commands)
I have already tried everything from every other mention of this error in legacy-homebrew. Nothing is working now. All brew commands are failing, including brew config.

[X ] Ran brew config and brew doctor and included their output with your issue?

You didn't do this. I'll reopen it when you have.

Like I said...no brew command is working. But since you don't understand that...here:
`$ brew config
==> Downloading https://homebrew.bintray.com/bottles-portable/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz
curl: (51) SSL: certificate verification failed (result: 5)
Error: Download failed: https://homebrew.bintray.com/bottles-portable/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz
Error: Failed to install vendor Ruby.`

Please just follow the instructions even if they seem stupid to you as they are there for a reason (i.e please show brew doctor too).
What is the output of ‘env | grep-i ssl’? What version of macOS are you running?

$ brew doctor ==> Downloading https://homebrew.bintray.com/bottles-portable/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz curl: (51) SSL: certificate verification failed (result: 5) Error: Download failed: https://homebrew.bintray.com/bottles-portable/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz Error: Failed to install vendor Ruby.
$ env | grep -i ssl SSL_CERT_FILE= [jsingleton@promacbook ~]$ brew doctor

@hackdefendr Try to unset SSL_CERT_FILE and then try again.

What version of macOS are you running?

Still need this information.

Mac OS Sierra 10.12.6
$ brew config
==> Downloading https://homebrew.bintray.com/bottles-portable/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz
curl: (51) SSL: certificate verification failed (result: 5)
Error: Download failed: https://homebrew.bintray.com/bottles-portable/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz
Error: Failed to install vendor Ruby.
$ brew doctor
==> Downloading https://homebrew.bintray.com/bottles-portable/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz
curl: (51) SSL: certificate verification failed (result: 5)
Error: Download failed: https://homebrew.bintray.com/bottles-portable/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz
Error: Failed to install vendor Ruby.
$ env | grep -i ssl
$

Those are all after unset SSL_CERT_FILE? What does cat ~/.curlrc output?

Yes after I unset SSL_CERT_FILE.
I have no ~/.curlrc file.

What does which curl and curl --version output?

$ which curl
/usr/bin/curl
$ curl --version
curl 7.54.0 (x86_64-apple-darwin16.0) libcurl/7.54.0 SecureTransport zlib/1.2.8
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz UnixSockets

What country are you in? I'm afraid you're going to have widespread problems if you can't access Bintray over HTTPS with curl and this is something specific to your machine.

United States
Is there anyway to tell curl to use --insecure... adding the -k to it?
Where can I put this to test?

What does
HOMEBREW_ENV_FILTERING=1 brew config

output?

That seems to work...
$ HOMEBREW_ENV_FILTERING=1 brew config
==> Downloading https://homebrew.bintray.com/bottles-portable/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz
HOMEBREW_VERSION: 1.3.4
ORIGIN: https://github.com/Homebrew/brew
HEAD: ac8b58537fe3dd71098a43afcc6a1785dcde1d39
Last commit: 6 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 6fa1d112e878655a1c7d2f8de24e618860499181
Core tap last commit: 28 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: octa-core 64-bit kabylake
Homebrew Ruby: 2.3.3 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/bin/ruby
Clang: 9.0 build 900
Git: 2.13.5 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Perl: /usr/bin/perl
Python: /usr/local/opt/python/libexec/bin/python => /usr/local/Cellar/python/2.7.13_1/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
Java: 1.8.0_144
macOS: 10.12.6-x86_64
Xcode: 9.0
CLT: <IP_ADDRESS>.1.1504363082
X11: N/A

:tada:
and now in another shell
brew config

From another shell...
$ brew config
HOMEBREW_VERSION: 1.3.4
ORIGIN: https://github.com/Homebrew/brew
HEAD: ac8b58537fe3dd71098a43afcc6a1785dcde1d39
Last commit: 6 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 2105c573bd1cb60a0c5e46bee8f2a9f6537455c6
Core tap last commit: 2 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: octa-core 64-bit kabylake
Homebrew Ruby: 2.3.3 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/bin/ruby
Clang: 9.0 build 900
Git: 2.13.5 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Perl: /usr/bin/perl
Python: /usr/local/opt/python/libexec/bin/python => /usr/local/Cellar/python/2.7.13_1/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /Users/jsingleton/.rvm/rubies/ruby-2.2.5/bin/ruby
Java: 1.8.0_144
macOS: 10.12.6-x86_64
Xcode: 9.0
CLT: <IP_ADDRESS>.1.1504363082
X11: N/A

Looks like you're back in business with the mystery … unsolved.

I agree...and some mysteries are best left unsolved.
Thank-you!

you're welcome!

@hackdefendr Would still love to figure out what this is. What about env | grep -i curl?

Oops I forgot I had this one set.  Did that as part of troubleshooting.
$ env | grep -i curl
CURL_CA_BUNDLE=/Users/jsingleton/.ssh/cacert.pem
$
I unset this already and tried again.  Everything still working.
$ unset CURL_CA_BUNDLE
$ brew doctor
Warning: Calling fails_with :llvm is deprecated!
There is no replacement.
/usr/local/Homebrew/Library/Taps/sidaf/homebrew-pentest/john-jumbo.rb:23:in `class:JohnJumbo'
Please report this to the sidaf/pentest tap!
Warning: Calling fails_with :llvm is deprecated!
There is no replacement.
/usr/local/Homebrew/Library/Taps/sidaf/homebrew-pentest/john-jumbo.rb:23:in `class:JohnJumbo'
Please report this to the sidaf/pentest tap!
Warning: Calling fails_with :llvm is deprecated!
There is no replacement.
/usr/local/Homebrew/Library/Taps/sidaf/homebrew-pentest/john-jumbo.rb:23:in `class:JohnJumbo'
Please report this to the sidaf/pentest tap!
Warning: Calling fails_with :llvm is deprecated!
There is no replacement.
/usr/local/Homebrew/Library/Taps/sidaf/homebrew-pentest/john-jumbo.rb:23:in `class:JohnJumbo'
Please report this to the sidaf/pentest tap!
Your system is ready to brew.

I am having same issue while installing ruby. Please check my console output
$ env | grep -i curl $ cat ~/.curlrc cacert=/etc/ssl/certs/ca-certificates.crt
$ which curl /opt/local/bin/curl
$ curl --version curl 7.50.3 (x86_64-apple-darwin14.5.0) libcurl/7.50.3 OpenSSL/1.0.2j zlib/1.2.8 Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp  Features: IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP UnixSockets
$ brew config ==> Downloading https://homebrew.bintray.com/bottles-portable/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz
curl: (51) SSL: certificate verification failed (result: 5)
Error: Download failed: https://homebrew.bintray.com/bottles-portable/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz
Error: Failed to install vendor Ruby.`
`$ brew doctor
==> Downloading https://homebrew.bintray.com/bottles-portable/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz
curl: (51) SSL: certificate verification failed (result: 5)
Error: Download failed: https://homebrew.bintray.com/bottles-portable/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz
Error: Failed to install vendor Ruby.`

@suratpyari Delete your ~/.curlrc


build!: Release muta v0.2.0-rc.2

What this PR does / why we need it:
build: build muta v0.2.0-rc.2
Which issue(s) this PR fixes:
Which docs this PR relation:
Ref #
Which toolchain this PR adaption:
Breaking Change
The logic of executor changes, it may affect failure txs and state diverses.
Special notes for your reviewer:

/lgtm


Add Watcher configuration

Type: generic-large-feature
Why is this change necessary?
We've run into instances where we have wanted to reconfigure watcher run
intervals to improve performance or even remove watchers that were
causing problems. Currently this requires logging into the server and
physically changing the code
This change addresses the need by:
Provides a Watcher Config page in Settings and an api where a user can
configure the run interval and the active flag
Potential Side Effects:
No known side effects

Coverage increased (+1.7%) to 54.424% when pulling c1ea06cab5a516a1b09e2af8a6b7abab18962777 on Bridgewater:9331_AddWatcherConfigs into 9f9f7f8ce18bf05e596144161e6ec73093a7172a on Netflix:develop.

Looks like this depends on #528

@monkeysecurity - yes, looks like there's a conflict as well that we need to resolve.  Will submit an update as soon as possible.

#528 should be good to go now, but we're still working out updates to this PR.  Hope to have them out soon with conflicts resolved.

The broke test is related to https://github.com/Netflix/security_monkey/commit/c666a012ec65a4ffcb878d148e2af33022c42afd. The test reporter was not updated to remove the deprecated fields. For some reason, this causes the tests to hang instead of fail.

See issue https://github.com/Netflix/security_monkey/issues/556

Merged in #559


WIP: hasher for a list of dependency libraries

code for hashing a user-provided list of dependent packages
added related unit tests
update of readme with dependency hash example

Final note @mbaak. Can you rename the PR according to something like:
ENH: Add functionality to hash Python dependencies through their version


Support try_from

First: Thank you for making this crate - it's really easy to use and has helped me make several of my own APIs simpler.
I have some code that reads a JSON file into a String then parses that JSON into a Thing<'de> using #[serde(borrow)] to avoid thousands/millions of string allocations. I'd like to use sync_once_self_cell with it, but I'm not sure how I'd deal with the possibility of the deserialization producing an error.
Ideally, I could do something like this:
struct Thing<'de>(Vec<Item<'de>>);

impl<'de> TryFrom<&'de String> for Thing<'de> {
    type Error = serde_json::Error;

    fn try_from(s: &'de String) -> Result<Self, Self::Error> {
        serde_json::from_str(s).map(Self)
    }
}

sync_try_once_self_cell(ThingStore, String, Thing<'_>);

fn use_it(s: String) -> Result<ThingStore, serde_json::Error> {
    ThingStore::new(s)
}

Alternatives/Workarounds Considered

Call unwrap in a From<&'de String> for Thing<'de> impl. Sadly, the data I'm working with contains errors I can't fix, so this would always crash my program.
Change Thing<'de> to be Thing<'de>(Result<Vec<Item<'de>>, serde_json::Error>) - it seems inefficient to have to check if it's Ok every time I go to use it.

The newly released version 0.7 is a ground up redesign and reimplementation. I suggest you switch to it, not only does it address the soundness bugs #4 #5 it also includes new features such as a try_from constructor type which covers exactly the problem you ran into. Check out the documentation to learn more about how to use it https://docs.rs/self_cell/0.7.1/self_cell/index.html

Perfect, thank you!


Clarify guidance or position on when to camel-case and when to kebab-case

Is your feature request related to a problem? Please describe.
In CSS-in-JS, property names are written camelCased, so that a normally kebab-cased property like background-color becomes backgroundColor.
Given that CSS-in-JS may blur the distinction between property names and rule selectors, CSS pseudo-classes remain kebab-cased; as an example when writing :nth-child instead of :nthChild. This difference becomes less obvious and more pronounced when authors write out vendor-prefixed properties like WebkitOverflowScrolling (the prefix resulting in a PascalCased property) and then a vendor-prefixed pseudo-class afterward like &::-webkit-scrollbar.
Describe the solution you'd like
It may be good for this library to take a documented position on rules versus properties, and in that documentation explain the caveats to reduce the friction authors experience knowing whether they should be different and when they should be different.
Additional context
{
  WebkitOverflowScrolling: 'touch',
  '&::-webkit-scrollbar': {}
}

Since we landed on not manipulating selectors, I think this is resolved.


BugsnagErrorBoundary type doesn't work with children with React 18 types

Describe the bug
React.FunctionalComponent and equivalent types don't come with an implicit children prop anymore in React 18. This means that a BugsnagErrorBoundary component with children won't compile anymore. This could be fixed by explicitly adding React.PropsWithChildren to the type like this:
export type BugsnagErrorBoundary = React.ComponentType<React.PropsWithChildren<{
  onError?: OnErrorCallback
  FallbackComponent?: React.ComponentType<{
    error: Error
    info: React.ErrorInfo
    clearError: () => void
  }>
}>>

Steps to reproduce

In a Typescript React 18 app, create a component that wraps its contents inside an error boundary:

  const ErrorBoundary = Bugsnag.getPlugin("react")?.createErrorBoundary(React)
  return ErrorBoundary ? <ErrorBoundary>{children}</ErrorBoundary> : null

try to compile the component.
See error:

      TS2559: Type '{ children: ReactNode; }' has no properties in common with type 'IntrinsicAttributes & { onError?: OnErrorCallback | undefined; FallbackComponent?: ComponentType<{ error: Error; info: ErrorInfo; clearError: () => void; }> | undefined; }'.

Environment

Bugsnag version:

"@bugsnag/browser": "^7.16.2",
"@bugsnag/plugin-react": "^7.16.2"

Browser framework version (if any):

React: 18.0.1

Hi @jarkko - thanks for raising this, we're going to investigate and we'll keep you updated on this thread!

@luke-belton  What is the progress on this issue? I am running into it as well

Also seeing this with React 18!

Hi @jake-engel & @seanmcquaid - a fix for this was released in v7.16.4 of bugsnag-js 🎉


Not seeing DC and WEF in Fleet

Operating System Version: Win10
Deploying via (VirtualBox/VMWare/AWS/Azure/ESXi): VBOX
Vagrant Version (if applicable): 2.2.13

Description of the issue:
currently checking the configuration of win10 since his the one and only are being seen on fleet how do i fix this in dc and wef since they have also osquery going to fleet?

From an administrator powershell prompt on DC and WEF, run ". c:\vagrant\scripts\install-osquery.ps1"

Closing due to inactivity


Feature: Copilot Chat

Motivation and Context

Adds frontend webapp (React)
Add backend SKWebApi (SK REST API Service) for CopilotChat sample
Adds CosmosDB connector memory store

Description

Abandoning to resolve conflicts in a non-feature branch.


Add our IGRF

Cleaned up version of fifth order IGRF model from Kevin Tracy.

Two major changes:

I think you added the date for 2022 instead of 2020 in your unix_time_to_years_since_2020 function
There are a lot of 1-2 letter variable names, which reduces the clarity of the code. I would suggest to do one of the 3 things:

rename variables
add inline comments explaining what each variable stands for
(this is a future solution) add a comment that links users to the documentation that explains what each variable stands for

Apart from that it looks great!

Thanks for the review @yashika-batra.
I'm not going to refactor the internal IGRF13 code because even though it's a total mess, it's just a copy pasted library.
I'm trying to make sure that interface this library provides is easy to use though.

Thanks for the review @yashika-batra. I'm not going to refactor the internal IGRF13 code because even though it's a total mess, it's just a copy pasted library. I don't think it's really worth our time to try and clear it up.
I'm trying to make sure that interface this library provides is easy to use though.

Got it! I didn't realize it was a copy pasted library. In that case, this is good to go! I'll approve the merge.


英雄伝説 零の軌跡 Evolution 無料版 [PCSG90069]

App summary

App name: 英雄伝説　零の軌跡　Evolution　無料版
App serial: PCSG90069
App version: 1.00

Vita3K summary

Version: v0.1.6 2977-3a9892fe
Build number: 2977-3a9892fe
Commit hash: Vita3K/Vita3K@3a9892fe
CPU backend: Dynarmic
GPU backend: Vulkan

Test environment summary

Tested by: User01
OS: Windows 10
CPU: AMD Ryzen 5 2600 Six-Core Processor
GPU: NVIDIA GeForce RTX 3060 Ti/PCIe/SSE2
RAM: 8 GB

Issues

Seizure warning. framebuffer flickers yellow and black.
The crashes once you press confirm on the first intro screen(No system data)
Screenshots

Log
vita3k英雄伝説.log
Recommended labels

Intro
Graphical bug

Please change title to The Legend of Heroes: Zero no Kiseki Evolution Free Edition

as of https://github.com/Vita3K/Vita3K/commit/1cd8c8378e4ddcedacac04d841e714471dc6c69b, the game now goes ingame.
The fires has some graphical bugs on some frames. The skybox on the 3rd image has some graphical issues as well as the borders while the character is talking. Audio is off while the character is talking also.
Screenshots

Log
vita3k.log
Recommended Labels

Ingame +
graphical bug
audio quality


Add health endpoint to notification module

TODO: Update k8s probes.
Fixes: #50

can you also add the /health endpoint for the k8s readiness and liveness annotations in the YAML files?

@ahmetoz can you also add the /health endpoint for the k8s readiness and liveness annotations in the YAML files?

@JudeNiroshan you're right, could you check this commit: https://github.com/commercetools/commercetools-adyen-integration/pull/495/commits/7f69e75049658230d044a162770d844797863a85


Add Google Cloud Storage support to Ludwig

Is your feature request related to a problem? Please describe.
Some training data is located in Google Cloud Storage or any other Cloud file systems:

Google Cloud: Google Cloud Storage gs://
Amazon Web Services: AWS S3 s3://
Azure: Azure DataLake Store, Azure Blob Store adl://, abs://

We need the ability to declare training data path located in GCS when running a training job in ludwig
Example:
ludwig train --data_csv gs://ludwig/Tweets.csv --model_definition_file model_definition.yaml --output_directory /tmp/

Describe the use case
Training data exists in GCS already, we would like to just reference data as a central location.
Describe the solution you'd like
Add support for gcsfs library
Describe alternatives you've considered
Copy GCS data in CSV /HDF5 format to local folder and process from there.
Additional context
N/A

Thanks for you PR, we will look at it carefully.


🔧  fixes upload organisational chart feature

this PR fixes some classes lost in the toolkit upgrade.

upon adding an organisational chart file the styling was not correct. This is fixed by adding the html to the JS function adding the attachment display.
upon adding an organisational chart file the upload button was still showing. This is fixed by adding the visually hidden class to the correct element (govuk_button instead of button).
upon removing an organisational chart file the upload button was not showing. This is fixed by find the correct element (searching for .button_add instead of .js-button-add)

but you do know that visually hidden means tabbable by screen readers right?


Bug report

Issue: Adding a standard document type declaration to a page causes jdmenubar drop-down menus to lose their positioning.
Browsers: Google Chrome Version 99.0.4844.84 (Official Build) (64-bit), Microsoft Edge Version 99.0.1150.55 (Official build) (64-bit)
Reproduceability: 100%
Steps to reproduce: Add the tag <!DOCTYPE html> to the start of the top-most html file.
Observed behaviour: Drop-down menus appear in the wrong position:

Expected behaviour: Drop-down menus should appear in the same position as when the DOCTYPE tag isn't present:

Cause: This is due to a minor bug in the jdmenubar.js file. The presence of the DOCTYPE tag causes the browser to apply more strict rules to element attributes, including the requirement that units always be specified for left and top element attributes. The code that positions the menus does not specify units:
    if (subMenuElement.jdmenu_parentMenu === myself.menuBarElement) {
      // Drop down
      subMenuElement.style.left = pos.left;
      subMenuElement.style.top = pos.bottom;
    } else {
      // Show right
      subMenuElement.style.left = pos.right;
      subMenuElement.style.top = pos.top;
    }

Proposed fix: The above code block needs to be modified to specify units:
    if (subMenuElement.jdmenu_parentMenu === myself.menuBarElement) {
      // Drop down
      subMenuElement.style.left = pos.left + "px";
      subMenuElement.style.top = pos.bottom + "px";
    } else {
      // Show right
      subMenuElement.style.left = pos.right + "px";
      subMenuElement.style.top = pos.top + "px";
    }

Thank you for the feedback. I have corrected the issue on master based on your suggestion.

Thanks! 👍


Bump PrismJS dependency

PrismJS < v1.21.0 is currently being flagged as having high severity vulnerabilities.

Fixed in v3.0.3. Thanks @zachleat!


Show modal for wallet select.

Feature Description
Create modal for wallet selection
**Design
https://xd.adobe.com/view/5a515bfd-fc47-464b-9c25-11b2e978711e-0f02/screen/ac2b6f4b-3156-45d5-890f-d40880a94688/

Verified this issue on keeper app v 1.2.12(383)


feat added a variable in session storage to block opening of modal wh…

…en running tests instead of refreshing repeatedly
Checklist:

[x] I have read and followed the contribution guidelines.
[x] I have read and followed the how to open a pull request guide.
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

Closes #52720

I have added a variable in the session storage that disables the modal that interferes when trying to run tests multiple times with different pieces of code. The variable (canOpenModal) when its value is set to "false" will disable the popping of the modal allowing running tests simultaneously.

@naomi-lgbt are u gonna merge this ?


Run multiple instances parallel

Hi,
I'm currently writing tests for the matlab-bindings of preCICE to couple simulations between matlab and other solvers. One testcase would be to run two matlab solverdummies to couple with each other. The setup-matlab action has already been a big help, but for this test, i would need to run two instances of matlab at the same time.
Is there currently any way to do this or plans to support it?
The methods I thought of are:

running matlab -nodesktop solverdummy1 & matlab -nodesktop solverdummy1, but the licensing failed when running from the commandline
checking if its possible to install the parallel computing toolbox to run batch(solverdumm1);batch(solverdummy2) but I couldn't find a way to do it

Hi @erikscheurer,
MATLAB is only licensed for batch mode use on GitHub-hosted runners. Prefer using the run-command action when possible but you may be able to achieve what it sounds like you are trying to do by using the -batch startup flag rather than -nodesktop:
matlab -batch solverdummy1 & matlab -batch solverdummy2

Thanks, that's exactly what I was trying to do


Improve QGIS QgsMarkerLineSymbolLayer in Ribasim-plugin

With multi-vertice LineStrings arrow-symbol becomes unreadible
Currently Ribasim Plugin places arrow-marker at the center of every line-segment. With multi-vertice Linestrings (river axis in stead of links) direction becomes unreadible:

Why
You're placing an arrow at every segment in stead of the centre point
How
Replace SegmentCenter by CentralPoint. So this https://github.com/Deltares/Ribasim/blob/4e7ea0e87aa65852195208cf8ac2d22d0dd0211a/ribasim_qgis/core/nodes.py#L325
with:
....
QgsMarkerLineSymbolLayer.create({"placements": "CentralPoint"}),
....

End result
Simply beautifull :-)

Ah yes, this would be great to have. If you make a quick PR this can still make it into the release ;)

Ah yes, this would be great to have. If you make a quick PR this can still make it into the release ;)

see #1563


Add Instant KO

Replacement for https://github.com/wooferzfg/wwrando/pull/5

@wooferzfg In classic Fashion, I'm back after two weeks with my testing.
Fails to randomize because logic.py:54 doesn't include the Plando File as a constructor parameter. However it worked up to that point.

@Crain-32 The issue should be fixed now

Got back around to this, just keeping you up to date.
I haven't seen this error before, even with all the patches the Multiworld does. Going to look into it this weekend.
Build worked great though.


WIP: add a new plugin base decoupled from the sdk

This new plugin base is completely decoupled from the SDK and relies only on the API. After #1448 plugins using this base class will be able to be fully standalone, and will support instrumenting modules very early in the load process, even before the tracer provider is set up.

Solves load order issue
Solves yarn pnp issue by using a more direct dependency model
Removes need for plugin manager
One instrumentation can patch multiple modules
Can use different plugins for different versions of a module
Supports tracers and meters

overall lgtm, one question is this only for node ? If so maybe name should have node word otherwise the semver usage should be moved to platform folder

So far I have been focusing on node but I hope that the module will eventually be useful for both web and node.

looks fine 👍
Another question that comes though my mind is since the API is changed a bit, how do handle old plugin loading AND new ones ? Or there will be a breaking change here ?

The new plugin loader depends on API only, so it doesn't actually depend on any plugin load mechanism at all so the old plugins will still work. I think for now this will just be an alternative plugin load mechanism, then when all plugins have been migrated we can remove the old plugin loader.

I think this can be closed already @dyladan


Setting APPLICATION_EXTENSION_API_ONLY to YES

Per the documentation:
When enabled, this causes the compiler and linker to
disallow use of APIs that are not available to
app extensions and to disallow linking to frameworks
that have not been built with this setting enabled.

This allows frameworks to be linked safely from extensions.

Thanks!


Optimizing onPickup event

Describe the bug
I ran a spark report and had TradeSystem using 21.96% of the Server Thread due to the onPickup event.
https://spark.lucko.me/ld9L7nw9kq
To Reproduce
None
Expected behavior
Screenshots
Additional context
Server version 1.18.1
Plugin Version 2.0.10
Discord contact: Synchro#7160

Updated Spark as of 3/26/2022
https://spark.lucko.me/Y5ZszZLk9F

Updated Spark as of 4/3/2022
https://spark.lucko.me/gxFmnigwJG

Updated Spark as of 6/5/2022
https://spark.lucko.me/gY5q8vz3CE

Updated Spark as of 6/27/2022
https://spark.lucko.me/rQSCVCRO9s


attachments to Metanorma document: https://github.com/metanorma/metan…

…orma-standoc/issues/709
Metanorma PR checklist

[ ] Breaking changes (list related PRs)
[ ] Documentation update required (create task for this)
[ ] External dependency introduced (documentation update need)
[ ] Gem with native library introduced

If you accept https://github.com/metanorma/metanorma.org/pull/777, you will need to resolve author/topics/sections/bibliography.adoc to include the additional attachment syntax, but not reintroduce the citations content.


Works in debug, but not in release for android

I can connect to the wifi SSID when I am running in debug in react-native, but when I create an APK, the same phone does not ever notice when it is connected to the SSID.  I see it connect, buy my code loops and checks the current wifi ssid to see if it is actually connected, and that code never is successful.  Any Ideas?

I seem to be experiencing the same thing after upgrading to React-Native 0.59.1. @jnystrom What version of React Native are you on?

Update: For me the problem was that Android API 28 no longer allows unsecured requests and requires TLS/SSL/https. When building locally this is not enforced to allow connections to localhost, etc. If your build target is 27 or lower you can continue making http requests. However, if you need to make an unsecure(aka http) request to a local device over wifi, for example http://<IP_ADDRESS>/endpoint and you are targeting 28+, you can add a network_security_config.xml file to configure custom domains, etc. to continue being able to use it outside of debugging. Related information about certificate signing using a similar fix can be found in the Android documentation and in this RN issue.


helm3:  Drop unit tests except desired state

Towards giantswarm/roadmap#30
Dropping the unit tests except for desired state. They are not useful and just get in the way.
We have pretty good integration test coverage and we should keep on improving that.

I don't think this is controversial. Going with a ping.


Rename SA_PASSWORD to MSSQL_SA_PASSWORD as SA_PASSWORD is deprecated

Updating SA_PASSWORD to MSSQL_SA_PASSWORD as SA_PASSWORD is marked deprecated for some time (I see this note in MSSQL 2017 docs). To see that note you can look here https://learn.microsoft.com/en-us/sql/linux/quickstart-install-connect-docker?view=sql-server-ver16&tabs=cli&pivots=cs1-bash#run-the-container-2

Thanks for your contribution, @jedla97 ! Do you know if there is a specific version where that env var was added? Just asking in order to see if we can avoid breaking changes to consumers

@eddumelendez I didn't find it in release notes, but I run it with 2017 version and it work start fine. As I didn't find 2016 version I can say for sure it will be working there. By https://endoflife.date/mssqlserver the 2016 have only security support.

Thanks, @jedla97 !


opt out of writing objects.json

Based on my reading of #1 and https://machow.github.io/quartodoc/get-started/interlinks.html I understand it that the objects.json file that is always created on quartodoc build is only useful if you make use of interlinking. Would it make sense to add a flag to opt out of creating this file?
https://github.com/machow/quartodoc/blob/8d2656b2a53e898537b028b3ea41496e34859873/quartodoc/autosummary.py#L217-L218
https://github.com/machow/quartodoc/blob/8d2656b2a53e898537b028b3ea41496e34859873/quartodoc/autosummary.py#L240-L241

Hey, that makes sense! I'm pushing a fairly substantial refactor to the building process, to enable a broader set of doc styles (e.g. autosummarizing a module, so all its classes and their methods are on a single page).


Reconcile differences in device dataset ownership for IVF Flat once supported by RAFT

After RAFT resolves https://github.com/rapidsai/raft/issues/2082, the special handling for IVF Flat dataset ownership here can be removed.

/assign @Presburger

keep trace


Bugfix/xivy 4022 async client fetch aborter

Extend the chat demo: mainly to demonstrate JS client enforced cancellation of pending async REST requests
Solved with Aborter: https://javascript.info/fetch-abort

No wasn't really aware of the IE incompatibility. But it should not matter ... since IE is also not able to run anything that this demo shows .... async/fetch is something this legacy browser never could propertly handle :)
So it doesn't matter for this demo. But maybe for real world implementators that have to write backward compatible JS


Retry when service is (tempoarily) unavailable

Retries work well with IOExceptions (like timeouts). :+1:
I had assumed that retries would also be applied, when a service is reported (temporarily) unavailable like 502, 503 & 504
When reading about the Apache HttpClient, it seems a ServiceUnavailableRetryStrategy exists for the cases mentioned above.
Is it on purpose this is left out of clj-http?

When receiving a 503 I would expect the code to automatically retry:
(client/request {:url "https://httpbin.org/status/503"
                 :method :get
                 :retry-handler (fn [ex try-count http-context]
                                  (println "Got:" ex)
                                  (if (> try-count 4) false true))})

I don't think we should retry on 5XX responses by default, but it would be fine to expose the ServiceUnavailableRetryStrategy in some way also, if someone wanted to use it.

On the same ship, working with some APIs that sporadically show some 503 responses for a moment, would be great to expose the ServiceUnavailableRetryStrategy in order to allow an :unavailable-handler or something to use this functionality


Byesian Skyline plot

Can Bayesian Skyline be performed for 5 HIV-1 pol gene region sequences, for which the tMRCA has been deduced in the backdrop of 200 reference sequences.

You can use it, but with only 5 sequences it won't provide anything insightful. For the Bayesian Skyline Plot 5 sequences equate to 4 data points, which is only enough to get a very rough mean Ne estimate, but not enough to estimate changes in Ne over time.