Add support for admins to drop in to monitor and control user desktops

Should really help with student support!

Lets:

extract the docker logic into a util function get_active_users
extract workspace/desktop socket redirect into a util function redirect_user_socket
remove view_specific_desktop, set default user_id in forward_desktop to None (which is checked for to become get_current_user().id)


HomeKit Controller – Koogeek Light Strip - no entities added even if accessory was found

Home Assistant 0.81.6
Hass.io on Rpi
"https://www.home-assistant.io/components/homekit_controller/"

Trying to add Koogeek Light Strip to HA. Paired with Koogeek app without errors but, when I try to configure:
discovery:
  enable:
    - homekit

My LightStrip is discovered fine, but when I click on "Configure" in UI, enter the PIN code (correct one) – it closes popup and gives no further info, including no accessories added.
Log says:
Log Details (ERROR)
Error executing service <ServiceCall configurator.configure (c:f0341c70f4634caf9e007bce8a56b2b0): configure_id=547938337344-1, fields=code=614-35-987>
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/core.py", line 1177, in _event_to_service_call
    await service_handler.func(service_call)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/configurator.py", line 221, in async_handle_service_call
    call.data.get(ATTR_FIELDS, {}))
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/homekit_controller/__init__.py", line 191, in device_config_callback
    pairing_id)
  File "/usr/local/lib/python3.6/site-packages/homekit/protocol.py", line 94, in perform_pair_setup
    resp = connection.getresponse()
  File "/usr/local/lib/python3.6/http/client.py", line 1331, in getresponse
    response.begin()
  File "/usr/local/lib/python3.6/http/client.py", line 297, in begin
    version, status, reason = self._read_status()
  File "/usr/local/lib/python3.6/http/client.py", line 258, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/local/lib/python3.6/socket.py", line 586, in readinto
    return self._sock.recv_into(b)
socket.timeout: timed out

I have installed hassio from the beggining, tryng to do some troubleshooting:
1.- Versión 0.81.6 -> same error, timed out.
2.- Downgraded to 0.74.0 -> accesories can be paired correctly, without errors.
So it seems that something is not working since last version.

Copied .homekit files directly from 0.74.0 sd card to 0.82.0 sd card. I can see my devices now and they are working fine.

Same here, well... kind of.
Back in 0.82.1 (with devices paired on 0.79) multiple warning outputs in the log.
Devices work right after restart (HA) for a period of time but always end unresponsive after a while.
Koogeek Smart Power Strip O1EU (3 outlets). Failing 3 of them.
Log output sample:
Update for switch.o1eu_3 fails
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 221, in async_update_ha_state
    await self.async_device_update()
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 349, in async_device_update
    await self.hass.async_add_executor_job(self.update)
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/homekit_controller/__init__.py", line 250, in update
    data = self._accessory.get_json('/accessories')
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/homekit_controller/__init__.py", line 163, in get_json
    response = self.securecon.get(target)
  File "/usr/local/lib/python3.6/site-packages/homekit/http_impl/secure_http.py", line 66, in get
    return self._handle_request(data)
  File "/usr/local/lib/python3.6/site-packages/homekit/http_impl/secure_http.py", line 92, in _handle_request
    return self._read_response()
  File "/usr/local/lib/python3.6/site-packages/homekit/http_impl/secure_http.py", line 158, in _read_response
    response.parse(self.decrypt_block(length, block, tag))
  File "/usr/local/lib/python3.6/site-packages/homekit/http_impl/response.py", line 38, in parse
    self._raw_response += part
TypeError: can't concat bool to bytearray

Failed to connect to homekit device
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/homekit_controller/__init__.py", line 164, in get_json
    data = json.loads(response.read().decode())
  File "/usr/local/lib/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/lib/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

I believe this could be the underlying issue:
[https://github.com/home-assistant/home-assistant/issues/18949]

Hi guys - i contributed the fix for #18949. It should be in the next release of HA and work for anyone using the Docker or virtualenv install methods (I have tested on Ubuntu, Debian, Raspbian and even a Mac).
Unfortunately, as @lamboid says, there is still an issue with the version of OpenSSL used by the hass.io teams Docker images. I have asked about this and they are working on Alpine 3.9 but its a fairly large change from Alpine 3.8 for them but it will come eventually.

@Jc2k there is an open issue about upgrading Hass.io to Alpine 3.9 so I can subscribe to be notified when is released? Thank you.

@rdelcampog i saw a PR land to enable Alpine 3.9 in the past couple of days - https://github.com/home-assistant/hassio-base/pull/7. It's already merged so hopefully its not long, but i've not seen any more hints than this.
There is this ticket here that i've been prodding - https://github.com/home-assistant/hassio/issues/903, but no indication its been updated by anyone who is working on the 3.9 update.

For users watching this thread about Hass.io specific SSL Algorithm errors - they should be gone as of 0.88.
AFAIK, all known Koogeek LS1 in this issue are now solved.


Match senza input and output for create and delete

Now with 200% saner unit testing.

Coverage decreased (-3.03%) to 89.858% when pulling 5a2e533d010e965c0e244055e386009848859f1c on create-delete-params into c191231ad66a4bcfdf3d1e9f86a4f8df428f4456 on master.


No CPU/Mem metrics

Hey there,
First of all, loving the project so far! Keep up the awesome work.
I'm getting everything from the cluster, pods, etc all works file. But metrics, i.e cpu and memory show 0, which I doubt is correct.
What is required in terms of (special) K8s configuration to get these two metrics working?
Thanks!
Edit I'm on K8s 1.20

Thank you for the kind words.
Metrics are gathered from the metrics server which needs to be deployed on the cluster. K8s clusters on GCP comes with it by default but Kind doesnt for examples. So if you are running your own k8s on bare metal or cloud you should have a metrics server deployed on it. Basically its the same thing that is needed for kubectl top node. So run this to see if it gives you an output if so then this could be an issue on KDash side, else its just missing metrics server. See this docs for instructions on how to setup metrics -> https://github.com/kubernetes/metrics/blob/master/IMPLEMENTATIONS.md

Yep that was it! Thanks!


Viewer Localhost

I edited the viewer's code and used yarn to develop App. However, I got a blank page when I go to "http://localhost:4000". Anything I missed?

Weird. Can you show the logs from both your browser and terminal where you are running the app?

Weird. Can you show the logs from both your browser and terminal where you are running the app?

terminal logs:

Browser have logs?

You can look at developer tools and check the console in the browser. Maybe your edited code leads to this blank page?

You can look at developer tools and check the console in the browser. Maybe your edited code leads to this blank page?

I try it on my local machine and it works, but on the remote machine I have the above problem.

You can look at developer tools and check the console in the browser. Maybe your edited code leads to this blank page?

A new problem. I want to use my local viewer(http://localhost:4000) and I change self.viewer_url to my url in view_utils.py, but it doesn't work.

When you use a remote machine, are you port forwarding the port the the website is served (4000 in the example above)

Closing due to inactivity, feel free to reopen if you are still experiencing this issue.


Call debounced cursor blink resume callback any time the cursor moves

Previously, we were only calling the debounced resume callback when the cursor was already blinking, but this meant we didn't renew the debounce window. This in turn meant we attempted to start blinking the cursor again every 100ms regardless of cursor interactions, which was consuming an extra frame and causing cursor movement to not feel smooth.

Appveyor failure is a known spurious thing.


Define Front End Architecture

We need to define what the architecture of the front end needs to be operable.
Current plan is stacked as follows:
nginx
Bun
Nx
Vite (perhaps consider Turbopack depending on support)
Qwik
Sass
Playwright

Closed


Data visible on the phone however on the link nothing had been shown for hours.

Your Environment

Uploader Version Number: 0,7.1 & 0.7.2 & 0.7.3
Your Android Phone Model Name (e.g. Samsung J1 Ace): Xiaomi Redmi Note 8
Android Version Number (e.g. use 4.4 for 4.4.4): 10
Network Connection at the time the issue occurred (Wi-Fi, Mobile): wifi
(if relevant) Nightscout website version (e.g. 0.8.4 Funnel cake, master / dev branch):

Brief Explanation
Dear developers! We are suffering a serious problem with the NS Uploader app. In the same time the 0.7.2. version had been reliesed our app (0.7.1) had not communicate with the link. We could see all the datas on the phone using for transmission (redmi note 8, abdroid 10) without any error code however on the link nothing had been shown for hours. As the problem came its disappered few hour later. It happaned 3 times. For solving the problem I tried to install the new versions, but both of them could crash othen. Yesterday evening I have been installed the older stabil version but the datalock happaned again 3 times in 24 hours. Now we have no data transmission to our link from the phone without any error message. Finally I instlled the latest version again but the problem not solved. We would be very tahnkful to your help.
Uploader Error Code

Steps to Reproduce (for bugs)

Severity Score

There is an unresolved issue with 0.7.2 and 0.7.3 that may cause crashes for some users.
If I understand correctly you say you had a issue with readings showing up on your nightscout website? and this has been happening with 0.7.1 too?

Have you updated your nightscout site to Atlas? This change was a requirement by the online database provider for use with nightscout.


Weather Forecast (Independent Publisher)

When submitting a connector, please make sure that you follow the requirements below, otherwise your PR might be rejected. We want to make you have a well-built connector, a smooth certification experience, and your users are happy :)

[x] I attest that the connector works and I verified by deploying and testing all the operations.
[x] I attest that I have added detailed descriptions for all operations and parameters in the swagger file.
[x] I attest that I have added response schemas to my actions, unless the response schema is dynamic.
[x] I validated the swagger file, apiDefinition.swagger.json, by running paconn validate command.
[x] If this is a certified connector, I confirm that apiProperties.json has a valid brand color and doesn't use an invalid brand color, #007ee5 or #ffffff. If this is an independent publisher connector, I confirm that I am not submitting a connector icon.

If you are an Independent Publisher, you must also attest to the following to ensure a smooth publishing process:

[x] I have named this PR after the pattern of "Connector Name (Independent Publisher)" ex: HubSpot Marketing (Independent Publisher)
[x] Within this PR markdown file, I have pasted screenshots that show: 3 unique operations (actions/triggers) working within a Flow. This can be in one flow or part of multiple flows. For each one of those flows, I have pasted in screenshots of the Flow succeeding.
[x] Within this PR markdown file, I have pasted in a screenshot from the Test operations section within the Custom Connector UI.
[x] If the connector uses OAuth, I have provided detailed steps on how to create an app in the readme.md.

Flow example:

Flow output:

@Haimantika Please provide screenshots of successful connection and flow runs of your connector to get it reviewed and approved.

Done

[[certify-connector]]


Ambiguous or non-existent timestamps in ALE/GAGE data

There are local times in the ALE/GAGE data that are not consistent with daylight savings time (e.g., 1980-04-20 02:04:00 didn't exist in Barbados).
Have disabled checking for non-existent timestamps in read_ale_gage, but need to figure out what's going on here.

Confirmed with Paul Krummel that ALE/GAGE timestamps should reflect local standard time without DST applied. Have modified the code to use a fixed time offset.


OSX - All icons displayed in TBD bar if windows icon populated first

OSX 10.11.6  El Capitan
using NWjs 0.20.3-osx
This is more a niggle and has been happening for quite a while.
If the windows icon is chosen first then all the icon types will be displayed but if the windows icon is the last to be done then each icon will be displayed according to the appropriate selection.
eg: mac icns then exe icon then windows icon - OK
Cheers

I'm not sure I understand the behavior you expect. Can you elaborate more?
Here's the logic that I wrote this under: If someone specifies the window icon first, then make that the default icon for the project if the other icons are blank (display it on any blank icon). The other two don't work this way because I would think it's more common to want a specific icon for Mac/Exe than a generic window icon for the whole project (Web2Exe converts the window icon to ICNS and Exe format if the other two are not specified)

Ah - Ok Joey, looks like it is design intent so that's fine , I was just expecting only one icon for each selection so I'll close this one now.
Cheers.


Moving up the isOpen swap

This makes sure that the onChange function is called with the appropriate value.

When I hit an openMenu function, I expect to get a new state of the menu, instead of the old one.

That is what I changed. In the current implementation you get the old state.

Oops, make PR once again :blush:


not support react-native 0.29.0

https://github.com/facebook/react-native/releases/tag/v0.29.0
Android
application template has changed.

It's fixed by https://github.com/facebook/react-native/commit/214a41d62af6c752bf34e40bc0b046790a009e3d (v0.29.1), and we should use react-native link instead of rnpm link for now.

When https://github.com/facebook/react-native/issues/8623 will be merged, we deprecate this repo and continue development inside RN. If you don't any complex cases, please, use react-native link instead.


More interface details for the cast framework

Description
This PR stubs out and connects more of the cast framework components. The end result of this PR is that we're able to get the cast video reference app to display the chromecast button with our mock route. It's not much, but it's a start.
Before merging

[ ] Merge https://github.com/microg/android_external_GmsApi/pull/8 and update submodule ref to latest master.
[ ] Merge https://github.com/microg/android_external_GmsLib/pull/12 and update submodule ref to latest master.

I'm not so much experienced but couldn't use uses-sdk tools:overrideLibrary of AndroidManifest.xml to ignore the minSdk set from the library and then only use the incompatible library if the sdk is 14 or higher?

Ah, I've never seen that before. It does seem possible, I can give it a try.

OK, I've included overrideLibrary here to keep the androidMinSdk version at 9. I suspect that since the entrypoints to this code are from apps requesting a cast context, or from the media router service, it will never get called on a lower SDK anyway, but I haven't included any additional safeguards or tested on an SDK 9 device.

@armills do you think I should merge this now or just merge #555 + microg/android_external_GmsApi#9 after I found time to test them?

I think at this point #555 is in a way better state than when I first split them, so the intermediate PR merge here probably isn't necessary anymore and just dirties the commit history with half working code. Going to close this PR assuming you agree, but feel free to re-open.
My current plan is to get #555 up-to-date with the new safe-parcel release and get a temporary fork published for the chromecast lib while we're figuring out the finder details of the API we need from them. After we've got a published fork can get a working build up and running from that PR for testing.


Vitals- not displaying correctly + some jitter

linked to this issue in showcase
https://app.zenhub.com/workspaces/ripple-combined-project-space-5c8be494fd0adb6f09c83d6b/issues/rippleosi/ripple-showcase-stack-project/87
PT-RA needs Vital numbers in two requests:

Request, which return list of all Vitals for current user;
Request, which return details for single Vital

This issue probably needs work on RA and NodeRed aspects
Also seeing some jittering on the graph

@kuvakina I understand this has been fixed, can we get an update in here please as to what has taken place

@PhilBarrett Vitals return numbers correctly in the list. Please see the video:
https://drive.google.com/file/d/1h4o9-RoFNFCWgelRLrPY0tDrspy1KVxX/view

@tony-shannon @PhilBarrett
I tested the Vitals changes on Nodered-showcase, they are working correctly:
- when you click on old record

- when you create a newly created record

- and in the table shows dates of creation, and they DO NOT change on today's date


Minimize differences between different builds of .NET 9

A .NET SDK produced by different vendors can be very different.
A few years ago, a source-build .NET was built using a completely different process than a Microsoft-built SDK. It was possible that different versions/commits of repos were used to build source-build, in a very different configuration than a Microsoft-built SDK.
We know that Microsoft intends to move to using the VMR for .NET and later releases. We would like to see everyone building out of one repo/commit/tag as much as possible and minimize the differences in sources between the sources used for various builds of .NET.
There is also a difference between the contents of the generated SDK, such as which files are in the SDK (see the baseline diff) as well as contents of the files (eg, optimization levels, or the .NET TFMs they are targeting).
We would like to minimize - as much as possible - the differences between the repo/commit/sources used to build .NET, and how .NET is built.
This doesn't change that fact that people may choose to build in different configurations (eg, link against system libraries), but it should be possible to build source-build (and a Microsoft-build) such that the results are nearly identical.

[Triage] This is something that will come as a result of the Unified Build project which won't be completed until the 10 timeframe.  Moving to 10.


Any idea on why downloading speed is abysmal 200 B/s

python download.py mnist celebA

It is clear that the download speed "hits" some kind of limitation on 200 B/s.
Any idea ?

Getting about 1KB/s myself...

You can use alternative mirrors from the official CelebA website and place the img_align_celeba.zip into the data/ folder. The script will then skip the download and start decompressing.


No Serial output from Nucleo F401RE when trying to get data from SATEL VL53L8

Describe the bug
I am trying to run VL53L8CX_HelloWorld_I2C.ino on Nucleo-F401RE with satel VL53L8 breakout board. But no output in serial monitor.
the program hangs in the init function.

To Reproduce
Steps to reproduce the behavior:
1). Connections as per instructions from Github repo
2). Installed latest stm32duino boards
3). Installed Library from arduino Lib manager
4). Compile and Build
5). Open serial Monitor with baud rate 460800
6). No output in serial monitor
Expected behavior
Expecting Output of sensor data in serial monitor
Code Used to debug:
#include <vl53l8cx.h>

#ifdef ARDUINO_SAM_DUE
  #define DEV_I2C Wire1
#else
  #define DEV_I2C Wire
#endif
#define SerialPort Serial

#define LPN_PIN A3
#define PWREN_PIN 11

void print_result(VL53L8CX_ResultsData *Result);
void clear_screen(void);
void handle_cmd(uint8_t cmd);
void display_commands_banner(void);

// Components.
VL53L8CX sensor_vl53l8cx_top(&DEV_I2C, LPN_PIN);

bool EnableAmbient = false;
bool EnableSignal = false;
uint8_t res = VL53L8CX_RESOLUTION_4X4;
char report[256];
uint8_t status;

/* Setup ---------------------------------------------------------------------*/
void setup()
{
 SerialPort.begin(460800);
  SerialPort.println("Entered Setup");
  // Enable PWREN pin if present
  if (PWREN_PIN >= 0) {
    pinMode(PWREN_PIN, OUTPUT);
    digitalWrite(PWREN_PIN, HIGH);
    delay(10);
  }
  SerialPort.println("Finished Setting up PWREN");

  // Initialize I2C bus.
  DEV_I2C.begin();
  SerialPort.println("Finished Setting up I2C Begin");
  // Configure VL53L8CX component.
  sensor_vl53l8cx_top.begin();
  SerialPort.println("Finished Setting up Sensor Begin");
  status = sensor_vl53l8cx_top.init();
  SerialPort.println("Finished Setting up Sensor Init");

  // Start Measurements
  status = sensor_vl53l8cx_top.start_ranging();
}

void loop()
{
  VL53L8CX_ResultsData Results;
  uint8_t NewDataReady = 0;

  do {
    status = sensor_vl53l8cx_top.check_data_ready(&NewDataReady);
  } while (!NewDataReady);

  if ((!status) && (NewDataReady != 0)) {
    status = sensor_vl53l8cx_top.get_ranging_data(&Results);
    print_result(&Results);
  }

  if (Serial.available() > 0) {
    handle_cmd(Serial.read());
  }
  delay(100);
}

void print_result(VL53L8CX_ResultsData *Result)
{
  int8_t i, j, k, l;
  uint8_t zones_per_line;
  uint8_t number_of_zones = res;

  zones_per_line = (number_of_zones == 16) ? 4 : 8;

  display_commands_banner();

  SerialPort.print("Cell Format :\n\n");

  for (l = 0; l < VL53L8CX_NB_TARGET_PER_ZONE; l++) {
    snprintf(report, sizeof(report), " \033[38;5;10m%20s\033[0m : %20s\n", "Distance [mm]", "Status");
    SerialPort.print(report);

    if (EnableAmbient || EnableSignal) {
      snprintf(report, sizeof(report), " %20s : %20s\n", "Signal [kcps/spad]", "Ambient [kcps/spad]");
      SerialPort.print(report);
    }
  }

  SerialPort.print("\n\n");

  for (j = 0; j < number_of_zones; j += zones_per_line) {
    for (i = 0; i < zones_per_line; i++) {
      SerialPort.print(" -----------------");
    }
    SerialPort.print("\n");

    for (i = 0; i < zones_per_line; i++) {
      SerialPort.print("|                 ");
    }
    SerialPort.print("|\n");

    for (l = 0; l < VL53L8CX_NB_TARGET_PER_ZONE; l++) {
      // Print distance and status
      for (k = (zones_per_line - 1); k >= 0; k--) {
        if (Result->nb_target_detected[j + k] > 0) {
          snprintf(report, sizeof(report), "| \033[38;5;10m%5ld\033[0m  :  %5ld ",
                   (long)Result->distance_mm[(VL53L8CX_NB_TARGET_PER_ZONE * (j + k)) + l],
                   (long)Result->target_status[(VL53L8CX_NB_TARGET_PER_ZONE * (j + k)) + l]);
          SerialPort.print(report);
        } else {
          snprintf(report, sizeof(report), "| %5s  :  %5s ", "X", "X");
          SerialPort.print(report);
        }
      }
      SerialPort.print("|\n");

      if (EnableAmbient || EnableSignal) {
        // Print Signal and Ambient
        for (k = (zones_per_line - 1); k >= 0; k--) {
          if (Result->nb_target_detected[j + k] > 0) {
            if (EnableSignal) {
              snprintf(report, sizeof(report), "| %5ld  :  ", (long)Result->signal_per_spad[(VL53L8CX_NB_TARGET_PER_ZONE * (j + k)) + l]);
              SerialPort.print(report);
            } else {
              snprintf(report, sizeof(report), "| %5s  :  ", "X");
              SerialPort.print(report);
            }
            if (EnableAmbient) {
              snprintf(report, sizeof(report), "%5ld ", (long)Result->ambient_per_spad[j + k]);
              SerialPort.print(report);
            } else {
              snprintf(report, sizeof(report), "%5s ", "X");
              SerialPort.print(report);
            }
          } else {
            snprintf(report, sizeof(report), "| %5s  :  %5s ", "X", "X");
            SerialPort.print(report);
          }
        }
        SerialPort.print("|\n");
      }
    }
  }
  for (i = 0; i < zones_per_line; i++) {
    SerialPort.print(" -----------------");
  }
  SerialPort.print("\n");
}

void toggle_resolution(void)
{
  status = sensor_vl53l8cx_top.stop_ranging();

  switch (res) {
    case VL53L8CX_RESOLUTION_4X4:
      res = VL53L8CX_RESOLUTION_8X8;
      break;

    case VL53L8CX_RESOLUTION_8X8:
      res = VL53L8CX_RESOLUTION_4X4;
      break;

    default:
      break;
  }
  status = sensor_vl53l8cx_top.set_resolution(res);
  status = sensor_vl53l8cx_top.start_ranging();
}

void toggle_signal_and_ambient(void)
{
  EnableAmbient = (EnableAmbient) ? false : true;
  EnableSignal = (EnableSignal) ? false : true;
}

void clear_screen(void)
{
  snprintf(report, sizeof(report), "%c[2J", 27); /* 27 is ESC command */
  SerialPort.print(report);
}

void display_commands_banner(void)
{
  snprintf(report, sizeof(report), "%c[2H", 27); /* 27 is ESC command */
  SerialPort.print(report);

  Serial.print("53L8A1 Simple Ranging demo application\n");
  Serial.print("--------------------------------------\n\n");

  Serial.print("Use the following keys to control application\n");
  Serial.print(" 'r' : change resolution\n");
  Serial.print(" 's' : enable signal and ambient\n");
  Serial.print(" 'c' : clear screen\n");
  Serial.print("\n");
}

void handle_cmd(uint8_t cmd)
{
  switch (cmd) {
    case 'r':
      toggle_resolution();
      clear_screen();
      break;

    case 's':
      toggle_signal_and_ambient();
      clear_screen();
      break;

    case 'c':
      clear_screen();
      break;

    default:
      break;
  }
}

Expected Output from Above code:
Entered Setup
Finished Setting up PWREN
Finished Setting up I2C Begin
Finished Setting up Sensor Begin
Finished Setting up Sensor Init

Actual Output: from above code:
Entered Setup
Finished Setting up PWREN
Finished Setting up I2C Begin
Finished Setting up Sensor Begin

Finished Setting up Sensor Init is missing.
Hence, I added a wrapper function in the Documents\Arduino\libraries\STM32duino_VL53L8CX\src folder to print the data from c file.
(PS: I have attached the STM32duino_VL53L8CX library folder with all my changes along with this issue for your reference)
Changes made to the vl53l8cx_api.c file:
#include "my_logging.h"
uint8_t vl53l8cx_init(
  VL53L8CX_Configuration    *p_dev)
{  my_log("Entered Init...");
  uint8_t tmp, status = VL53L8CX_STATUS_OK;
  uint8_t pipe_ctrl[] = {VL53L8CX_NB_TARGET_PER_ZONE, 0x00, 0x01, 0x00};
  uint32_t single_range = 0x01;
  uint32_t crc_checksum = 0x00;
  p_dev->default_xtalk = (uint8_t *)VL53L8CX_DEFAULT_XTALK;
  p_dev->default_configuration = (uint8_t *)VL53L8CX_DEFAULT_CONFIGURATION;
  p_dev->is_auto_stop_enabled = (uint8_t)0x0;
  my_log("Finished Init Configuration...");
  /* SW reboot sequence */
  status |= VL53L8CX_WrByte(&(p_dev->platform), 0x7fff, 0x00);
  status |= VL53L8CX_WrByte(&(p_dev->platform), 0x0009, 0x04);

  status |= VL53L8CX_WrByte(&(p_dev->platform), 0x000F, 0x40);
  status |= VL53L8CX_WrByte(&(p_dev->platform), 0x000A, 0x03);
  my_log("Finished Write Block...");
  status |= VL53L8CX_RdByte(&(p_dev->platform), 0x7FFF, &tmp);
  my_log("Finished Read Block...");
  status |= VL53L8CX_WrByte(&(p_dev->platform), 0x000C, 0x01);
...
....

Expected Output from above lib code and ino code:
Entered Setup
Finished Setting up PWREN
Finished Setting up I2C Begin
Finished Setting up Sensor Begin
Entered Init...
Finished Init Configuration...
Finished Write Block...
Finished Read Block...

Actual Output from above lib code and ino dode:
Entered Setup
Finished Setting up PWREN
Finished Setting up I2C Begin
Finished Setting up Sensor Begin
Entered Init...
Finished Init Configuration...
Finished Write Block...

Finished Read Block... is missing.
This is where my knowledge and experience ends. I was not able to debug more about the VL53L8CX_RdByte() func and its return value.
Screenshots

Desktop:

OS: Windows 11
Arduino IDE version: 2.3.2
STM32 core version: 2.8.1
Library version: 2.0.0
Tools menu settings if not the default: Board-> Nucleo-64; Board Part Number-> Nucleo-F401RE;
Upload method: SWD

Hardware:

Board Name:Nucleo F401RE
Hardware Revision: Rev C
Extra hardware used if any: SATEL VL53L8 TOF sensor Breakout Board

Additional Info
Uploading the Library file as a zip file along with the wrapper function.
STM32duino_VL53L8CX.zip

Hello @yaswanthsk04 ,
first of all, I would check the I2C connectivity. Could you run the following code with your hardware setup and see if the sensor is able to respond on the I2C bus?
// SPDX-FileCopyrightText: 2023 Carter Nelson for Adafruit Industries
//
// SPDX-License-Identifier: MIT
// --------------------------------------
// i2c_scanner
//
// Modified from https://playground.arduino.cc/Main/I2cScanner/
// --------------------------------------

#include <Wire.h>

// Set I2C bus to use: Wire, Wire1, etc.
#define DEV_I2C Wire
#define LPN_PIN A3
#define PWREN_PIN 11

void setup() {
  // Enable PWREN pin if present
  if (PWREN_PIN >= 0) {
    pinMode(PWREN_PIN, OUTPUT);
    digitalWrite(PWREN_PIN, HIGH);
    delay(10);
  }

  // Enable LPN pin if present
  if (LPN_PIN >= 0) {
    pinMode(LPN_PIN, OUTPUT);
    digitalWrite(LPN_PIN, HIGH);
    delay(10);
  }

  Serial.begin(9600);
  while (!Serial)
     delay(10);
  Serial.println("\nI2C Scanner");
  // Initialize I2C bus.
  DEV_I2C.begin();
  Serial.println("I2C started.");
}

void loop() {
  byte error, address;
  int nDevices;

  Serial.println("Scanning...");

  nDevices = 0;
  for(address = 1; address < 127; address++ )
  {
    // The i2c_scanner uses the return value of
    // the Write.endTransmisstion to see if
    // a device did acknowledge to the address.
    DEV_I2C.beginTransmission(address);
    error = DEV_I2C.endTransmission();

    if (error == 0)
    {
      Serial.print("I2C device found at address 0x");
      if (address<16)
        Serial.print("0");
      Serial.print(address,HEX);
      Serial.println("  !");

      nDevices++;
    }
    else if (error==4)
    {
      Serial.print("Unknown error at address 0x");
      if (address<16)
        Serial.print("0");
      Serial.println(address,HEX);
    }
  }
  if (nDevices == 0)
    Serial.println("No I2C devices found\n");
  else
    Serial.println("done\n");

  delay(5000);           // wait 5 seconds for next scan
}

Hi @cparata:
Thank you for your reply.
The I2C Scanner output is follows:
Scanning...
No I2C devices Found

Thanks,
Yaswanthkumar

Hello @yaswanthsk04 ,
it means that there is an issue in your hardware setup. You should discover the ToF sensor with 0x29 I2C address. Until you don't get it, it does not make sense to run the VL53L8 library.
Please, check your wire connections.
Best Regards,
Carlo

Hi @yaswanthsk04 ,
The connections in the guide should be fine. I checked the picture of your hardware setup and it seems fine to me even if I'm not able to see clearly all the connections. Please, be sure that SPI_I2C_N pin is connected to GND and check also the SCL pin that seems to me not well connected on the board.
Best Regards,
Carlo

Hello @cparata:
Thank you for your reply.
based on the following Image from Application Note of ST Electronics on How to connect VL53L8 to a nucleo board I found that, the sensor must be powered using 5V pin instead of 3.3v pin

Link to the Document: https://www.st.com/resource/en/application_note/an5945-how-to-connect-the-satelvl53l8-to-an-stm32-nucleo64-board-stmicroelectronics.pdf
Connecting the sensot to 5V pin works fine. I am able to find the I2C address as 0x29.

Hello @cparata:
Yes, it is working now!!!
:)

Did you connect it on 3.3v?
did it work for you in 3.3v?

Hello @yaswanthsk04 ,
Unfortunately, I don't have the possibility to check. I will update the README and the comments in the library to be aligned with the User Manual.
Thanks for testing it.
Best Regards,
Carlo

I released a new version 2.0.1 fixing the comments in the README and in the comments inside the examples.
I close this issue.
Best Regards,
Carlo


Create ubuntu-build-docker.yml

Add docker build workflow.

BTW, in this action, it only builds with OV 22.3?

Yes, only build OV22.3,  if need OV23.2 , can add another build workflow.


Repeating group dont present rows where field are null

Description

To Reproduce

Expected behavior

Screenshots

Additional info

We need some more research on this one, I think. Does this happen if one of the fields are null, or all of them? Or just the first one? app-frontend famously handles all data as strings, and null/undefined values are synonymous with 'no data at all'. Not sure if we support null values elsewhere, and how they are supposed to work.
Relevant:

#597
#205


Loose of data on sink connector start up.

Looks like if we start 'INSERT' data in MySQL to fast after sink connector start up with "auto.create.tables: true", we can receive data loose in current sink connector composition (confluentinc/cp-schema-registry:latest & altinity/clickhouse-sink-connector:2022-08-02).
It is reproducible on "oltp_delete" sysbench test for example.

Fixed "oltp_delete" sysbench test passes x3 times on altinity/clickhouse-sink-connector:2022-10-24
Passing
Passing

✔ [ OK ] /mysql to clickhouse replication/sysbench/oltp delete
✔ [ OK ] /mysql to clickhouse replication/sysbench
✔ [ OK ] /mysql to clickhouse replication

1 module (1 ok)
1 suite (1 ok)
1 feature (1 ok)
1 scenario (1 ok)
3 iterations (3 ok)
15 retries (8 ok, 7 failed)
152 steps (147 ok, 5 failed)

Total time 7m 13s

Executed on Oct 27,2022 15:18
TestFlows.com Open-Source Software Testing Framework v1.9.220712.1163352


Fix race in PoolArena.allocate. Fixes #4829

Motivation:
The statistic counters PoolArena.(allocationsTiny|allocationsSmall) are
not protected by a per arena lock, but by a per size class lock. Thus,
two concurrent allocations of different size (class) could lead to a
race and ultimately to wrong statistics.
Modifications:
Use a thread-safe LongCounter instead of a plain long data type.
Result:
Fewer data races.

@buchgr thanks buddy!
Cherry-picked into 4.0 (47b598e6ce6c1f0e57d6955d10652dd5e5bc1462) and 4.1 (35771dd1cdd20e291a4a1a15ef04da57329c41db)


Linking template wizard.html and step.html

I'm quite new with AngularJS and angular-wizard. I was able to do a simple wizard and found out that you can use external template file (ex. wizard.html) to further customize the navigation by using
<wizard on-finish="finishedWizard()" indicators-position="top" template="app/views/wizard.html">
However, I am also interested in linking another template called "step.html" to further customize my html.
basically I would like to use an external wizard.html and step.html for my project.
Is there a way to do this without editing "angular-wizard.js"'s code?

Not currently, this would be considered a feature request


Add detailed console.log statements for enhanced debugging in GitHu…

Fixes

Fixes #3396  by @dhruvkb
Description

This pull request adds detailed console.log statements for improved debugging in issues.mjs and prs.mjs, enhancing visibility in GitHub Actions workflows.
Checklist

[x] My pull request has a descriptive title (not a vague title likeUpdate index.md).
[x] My pull request targets the default branch of the repository (main) or a parent feature branch.
[x] My commit messages follow best practices.
[x] My code follows the established code style of the repository.
[x] I added or updated tests for the changes I made (if applicable).
[x] I added or updated documentation (if applicable).
[x] I tried running the project locally and verified that there are no visible errors.
[x] I ran the DAG documentation generator (if applicable).

Developer Certificate of Origin

Developer Certificate of Origin
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

@dhruvkb, thank you for your suggestions. I've removed the imports and passed core through the function parameters. I've also streamlined the code by moving numerous debug statements into moveCard


[Bug]: Admin Settings: Navigating to pages does not scroll you to the top of destination page

Describe the bug
Generally within the app if you navigate to any other page via an Edit, Clone, Cancel button, etc it will try to keep you at whatever vertical position you had scrolled to before clicking the button- often forcing the user to constantly keep scrolling up as they use the application. The effect is particularly annoying when editing Receivers, since you often have to scroll down to get to the Receiver you want originally, and since the Receiver edit page is by nature about 2 full pages long, clicking Edit often lands you halfway down the page- forcing you to furiously scroll up to reach the top
Impact
Harmless but very annoying. Could eventually lead to carpal tunnel syndrome.
To Reproduce
Steps to reproduce the behavior:
Login as admin, go to Admin->Organization Settings
Choose the "waters" org from the list
Scroll down to a Receiver setting and click Edit or Clone
Observe that you are halfway down the page
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots

scrolled down to giang2-clone receiver setting

Navigated to edit page after clicking Edit on giang2-clone

Stale description, should be verified, but likely a good bug ticket to work on!

Just tested and it appears this is still an issue. I agree with the Impact section - it's harmless but annoying

FYI- @chris-kuryak

Got it.
Adding to product backlog. Removing the time estimate since it was estimated by someone no longer on the team. Adding low-priority and needs-refinement so it gets brought up in the refinement meeting.

@brick-green Thanks for the clarification!

Just for context on the implementation side of things, this should be a really simple change since the website is an SPA/we're using react-router.  Here's an example of how it can be done, and I've personally implemented something similar in the past with little issue so that could be a good starting point!

@stephenkao Nice! I was just about to ask if Router had some kinda built in scroll fix but I guess not. Pretty useful custom effect hook if you ask me! Maybe a useScrollPosition so we could use it as a general UX tool


pip package is outdated

I installed the elm-kernel module via pip and realized that it requires 'elm-make', which is elm 0.18.
Then I installed the kernel via pip install -e . and it worked as expected, using elm 0.19.1

Thanks for letting us know. I have updated the package on PyPI.


compile error on windows!

Tensor libraries\Cytnx\src\UniTensor_base.cpp(451) : error C4716: “cytnx::UniTensor_base::at_for_sparse”: 必须返回一个值.
i just look inside:
Scalar::Sproxy UniTensor_base::at_for_sparse(const std::vector<cytnx_uint64> &locator) {
cytnx_error_msg(true, "[ERROR] fatal internal, cannot call on a un-initialize UniTensor_base%s",
"\n");
}
it really didn't return a value! maybe this is a BUG!
please help me!
i use MSVC 2022 compiler

Sorry, we don’t support windows
You may need to use WSL2 if you need to make it run on windows
This error is due to, in g++, we disabled the checking whether every function return some value.


s6-supervise nginx error while trying to start container with docker compose

Describe the bug
On Debian 12 I configured nginx-webdav to allow multiple users, by creating the user folders under /fileserver/ and the htapasswd under ./config/nginx/, with the following docker-compose.yml file:
services:
    nginxwebdav:
        container_name: nginxwebdav
        build:
            context: .
        volumes:
            - /fileserver:/data
            - ./config:/config
            - ./custom-cont-init.d:/custom-cont-init.d
        environment:
            - PUID=1006
            - PGID=1006
            - TZ=Europe/Berlin
            - SERVER_NAMES=webdav.homenet
            - TIMEOUTS_S=1200
            - CLIENT_MAX_BODY_SIZE=120M
        ports:
            - 2380:80

If i launch the container with docker compose up here's what I get:
nginxwebdav  | ╔═════════════════════════════════════════════════════════════════════════╗
nginxwebdav  | ║                                                                         ║
nginxwebdav  | ║        Some of the contents of the folder /custom-cont-init.d           ║
nginxwebdav  | ║            are not owned by root, which is a security risk.             ║
nginxwebdav  | ║                                                                         ║
nginxwebdav  | ║  Please review the permissions of this folder and its contents to make  ║
nginxwebdav  | ║     sure they are owned by root, and can only be modified by root.      ║
nginxwebdav  | ║                                                                         ║
nginxwebdav  | ╚═════════════════════════════════════════════════════════════════════════╝
nginxwebdav  | [custom-init] No custom services found, skipping...
nginxwebdav  | [migrations] started
nginxwebdav  | [migrations] no migrations found
nginxwebdav  | Linking /config/nginx/http.conf to /etc/nginx/conf.d/
nginxwebdav  | Linking /config/nginx/server.conf to /etc/nginx/conf.d/
nginxwebdav  | Linking /config/nginx/location.conf to /etc/nginx/conf.d/
nginxwebdav  | Linking /config/nginx/htpasswd to /etc/nginx/htpasswd
nginxwebdav  | ───────────────────────────────────────
nginxwebdav  |   _____ __ __ _____ _____ _____ _____
nginxwebdav  |  |     |  |  |   __|_   _|     |     |
nginxwebdav  |  |   --|  |  |__   | | | |  |  | | | |
nginxwebdav  |  |_____|_____|_____| |_| |_____|_|_|_|
nginxwebdav  |        _____ __ __ _ __    ____
nginxwebdav  |       | __  |  |  | |  |  |    \
nginxwebdav  |       | __ -|  |  | |  |__|  |  |
nginxwebdav  |       |_____|_____|_|_____|____/
nginxwebdav  |
nginxwebdav  |   Based on images from linuxserver.io
nginxwebdav  | ───────────────────────────────────────
nginxwebdav  |
nginxwebdav  | To support LSIO projects visit:
nginxwebdav  | https://www.linuxserver.io/donate/
nginxwebdav  |
nginxwebdav  | ───────────────────────────────────────
nginxwebdav  | GID/UID
nginxwebdav  | ───────────────────────────────────────
nginxwebdav  |
nginxwebdav  | User UID:    1006
nginxwebdav  | User GID:    1006
nginxwebdav  | ───────────────────────────────────────
nginxwebdav  |
nginxwebdav  | [custom-init] Files found, executing
nginxwebdav  | [custom-init] 40-user-dir: executing...
nginxwebdav  | change root from /data to /data/$remote_user
nginxwebdav  | [custom-init] 40-user-dir: exited 0
nginxwebdav  | s6-supervise nginx: warning: unable to spawn ./run (waiting 60 seconds): Permission denied
nginxwebdav  | [ls.io-init] done.
nginxwebdav  | s6-supervise nginx: warning: unable to spawn ./run (waiting 60 seconds): Permission denied
nginxwebdav  | s6-supervise nginx: warning: unable to spawn ./run (waiting 60 seconds): Permission denied

If I try to go to webdav.homenet (towards which a separate nginx-proxy container routes the traffic directed to 2380 port) I receive a 502 error, like the server is down. I'm not sure this is the cause of service not responding. Any tip?
How do you use nginx-webdav-nononsense (please complete the following information):

Version: 1.27.0
Did you build the image yourself?: no
How do you access the container? through a nginx-proxy container that acts as reverse proxy
Do you use a custom nginx.conf? no

Additional note: I saw that into the container at the path /etc/services.d/nginx/ there's a file called 'run'. Suspecting that it being non-executable I did a chmod +x /etc/services.d/nginx/run but this didn't solve the issue (the error kept showing)

Thank you for reporting this. This appears to be unrelated to using multi-user (the bug is there with single user mode, too). I am investigating.

This seems to come from upstream (linuxserver/baseimage-ubuntu:jammy). Either they changed something that I can't find, and my image uses them incorrectly, or there is a regression. If I pick a random previous version (baseimage-ubuntu:jammy-572c3250-ls108 from june), it works. Could you try changing:
FROM lscr.io/linuxserver/baseimage-ubuntu:jammy AS builder
FROM lscr.io/linuxserver/baseimage-ubuntu:jammy
to
FROM lscr.io/linuxserver/baseimage-ubuntu:jammy-572c3250-ls108 AS builder
FROM lscr.io/linuxserver/baseimage-ubuntu:jammy-572c3250-ls108
In the Dockerfile and build again?

Building again right now, will update asap

Aaaaand it works :)
Thanks very much!

Please note that this is not the fix, just a workaround that will get lost in the next updates! The kind people at linuxserver.io pointed me in the right direction.

@paoloap could you try to build again from main, without the workaround that I described above?

I rebuilt from the main and can confirm that it was fixed.

Confirmed fixed.


headings colors is messing in onedark theme

I am using this colorscheme , however, I am unable to notice any color coding for the heading beyond the 6a55ac7 commit. Is there any possible solution to this or should I consider changing the colorscheme?

For heading, after that commit? Seemingly unrelated change. 🙃
Could you provide some screenshots?

good  6a55ac7

bad   5e94e3f

diff --git a/syntax/typst.vim b/syntax/typst.vim
index 6ad2523..ea681c0 100644
--- a/syntax/typst.vim
+++ b/syntax/typst.vim
@@ -226,7 +226,6 @@ syntax cluster typstMarkupText
             \ ,typstMarkupEnumList
             \ ,typstMarkupBold
             \ ,typstMarkupItalic
-            \ ,typstMarkupUnderline
             \ ,typstMarkupLinebreak
             \ ,typstMarkupNonbreakingSpace
             \ ,typstMarkupShy
@@ -252,8 +251,6 @@ syntax region typstMarkupBold
     \ start=/\*/ skip=/\\\*/ end=/\*/ oneline
 syntax region typstMarkupItalic
     \ start=/_/ skip=/\\_/ end=/_/ oneline
-syntax region typstMarkupUnderline
-    \ start=/#underline\[/ skip=/\\\]/ end=/\]/
 syntax match typstMarkupLinebreak
     \ /\\\\/
 syntax match typstMarkupNonbreakingSpace
@@ -322,7 +319,6 @@ highlight default link typstMarkupRawInline         Macro
 highlight default link typstMarkupRawBlock          Macro
 highlight default link typstMarkupLabel             Structure
 highlight default link typstMarkupReference         Structure
-highlight default link typstMarkupHeading           Structure
 highlight default link typstMarkupBulletList        Structure
 highlight default link typstMarkupEnumList          Structure
 highlight default link typstMarkupLinebreak         Structure
@@ -336,6 +332,7 @@ highlight default link typstMarkupDollar            Noise
 " Highlighting > Typst Styling {{{2
 highlight default typstMarkupBold           cterm=bold      gui=bold
 highlight default typstMarkupItalic         cterm=italic    gui=italic
-highlight default typstMarkupUnderline      cterm=underline gui=underline
+highlight default typstMarkupHeading        cterm=underline gui=underline
+

 " vim: foldlevel=0 tabstop=8 shiftwidth=4 softtabstop=4 expandtab

Ah, then it's clear what the cause is. I remember this fix as well. Headings doesn't have color, only bold and underline, in the webapp. I did the same here. Maybe we should have it as a Structure instead, I think that's up for discussion.
It is strange, however, that you don't have bold or underline in your "bad" example...

Do you still have this problem?

it works as you expected,

I'm also expected to highlight the heading with different colors than white.

That's great to hear! Right now I will keep white as the color for headings since that's how they look in the web app, but if more people want to have colored headings I can change. I'll open a new issue for that!


could flink cdc  insert mysql just snapshot  not Incremental data by binlog ？

I want insert mysql snapshot data on sometime by day，the data do not change  frequent。

I think it is not suitable to do this job by using the cdc connectors.

you are right，it is suitable for batch processing

I don't think it is suitable to do this job by using the cdc connectors.

you are right，it is suitable to use batch processing

I don't think it is suitable to do this job by using the cdc connectors.
you are right，it is suitable to use batch processing


clojure: small optimizations

Thanks for doing this comparison!
Here are a couple of small changes for the clojure server, which may or may not help its performance.

Only JSON-encode the message once for broadcast, rather than each
time around the loop.

More server threads. httpkit defaults to only 4 threads. Using more
might not make any difference, since it's async I/O, but since it's easy
to do, I thought it would be worth a try.

Good calls. Thanks!


Enable drawing noncontinuous lines

Enable plotting noncontinuous lines. For example, when a DataLogger has several NaN values, those are not plotted and just skipped.

Also, using ICollection in Drawing.DrawLines enables to use the Count property instead of the Count() LINQ extension, which prevents a double enumeration.

Great new feature and optimizations @drolevar, thanks so much!
I made some revisions to ensure that the automatic axis limit detection respects the gaps in the data. I think it's all working as expected, but I welcome feedback! We can refine this if needed in another PR.
I'm excited that this will be in the next release! 🚀


[bug?] Retention times

Hi,
Tried a few analyses and looks like peaks are well detected but the retention time does not match at all. It looks like it only gives the very first time the m/z appears (not even in a peak).  I have no real idea where it might come from...Might be because of the experimental named tensors?

Hi @soerendip,
just as in your readme:
`
from ms_peakonly import PeakOnly
from glob import glob
import pandas
fns = glob('/my/metabolomics/directory/*.mzML')
po = PeakOnly(model_dir='/my/model/directory/')
table = po.process(fns)
table.to_csv(export_path)
`
all obtained m/z correspond to peaks but with an RT corresponding to the first occurrence of the m/z and not where the peak is located.

Could you clarify what do you mean with first occurrence?

Let’s say I extract the XIC for a given m/z, it will be made of a few points at very low intensity randomly distributed below noise starting from almost the begin of my LC run. I mean those points. Not the nice >15 points at high intensity with a higher retention time forming a peak…i can give you a file and the command if you Need

Yes, that might be helpful.

There is rt_min and rt_max which should be the beginning and the end of the peak.
And based on visualization with a different program, those retention times look good in most cases:

Your table seems to illustrate well what I meant: almost all peaks are <0.5min. This should not be the case…those peaks probably are at a higher rt later in the chromatogram. Will attach a file later on

You, mean in the table? The _min stands for minimum not for minute. The output of PeakOpt is in hours for some reason.

was indeed because of hours <-> minutes, thanks a lot!


Client socket must send data first

Steps to reproduce:

Run ./ucat -d -l -p 5678
On another terminal, run ./ucat <IP_ADDRESS> -p 5678
Working:
On the client terminal, send something to the server.
Now the communication can flow in any direction.
Not working:
On the server terminal, send something to the client.
Now the communication will only work in one direction. The client will not receive any of the server messages, but the other way around works.

This is more-or-less by design. The UTP handshake is designed on the assumption that there will be an application layer handshake initiated by the client. If the server were to send data first it would make the protocol vulnerable to amplification attacks.

+1 to what @ssiloti said. My understanding is that it is directly related to this


Example myWeb3Wallet is broken

What context is your feature request related to?
The example project doesn't open in develop branch
Xcode13.4.1 or Xcode14.2
What solution would you like?
Make it available again
Any additional context?
Not opened a bug as I don't consider that is a bug.

nevermind, apologies
I forget to install cocoapods and the project appears to be empty so I deduced that is broken.

@albertopeam in fact, if you'll look at it you'll see that it is. And completely in the all other ways around, except it's successfully building. I've thought we even having an issue for that. I think, once all most annoying bugs would be squashed it would be a good time to do some really nice example app.

@albertopeam in fact, if you'd look at it you'll see that it is. And completely in the all other ways around, except it's successfully building. I've thought we even having an issue for that. I think, once all most annoying bugs would be squashed it would be a good time to do some really nice example app.

I have asked in the issue #451 what would be the scope for that app :)


Update sap-hana-high-availability.md

Added ls command to list disks as the command listed in article was not working in https://learn.microsoft.com/en-us/azure/sap/workloads/sap-hana-high-availability?tabs=lb-portal%2Csaphanasr#install-sap-hana

#sign-off

#sign-off


Unclosed client session warning when using async (Quart) commands

I made a test Quart app that registers a few Discord commands (based on async_quart.py example). The app works and commands also return the correct response, but every time I use async command I get a warning. This does not happen with sync commands.
Although this seems to only be a warning and app still works, I think it would be nice if this warning is fixed or suppressed.
My code:
import os
import quart.flask_patch

from flask_discord_interactions import DiscordInteractions
from quart import Quart

app = Quart(__name__)
discord = DiscordInteractions(app)

app.config["DISCORD_CLIENT_ID"] = os.environ["DISCORD_CLIENT_ID"]
app.config["DISCORD_PUBLIC_KEY"] = os.environ["DISCORD_PUBLIC_KEY"]
app.config["DISCORD_CLIENT_SECRET"] = os.environ["DISCORD_CLIENT_SECRET"]

discord.update_slash_commands()

@discord.command()
async def ping(ctx):
    return "Pong!"

@discord.command()
def pong(ctx):
    return "Ping!"

discord.set_route_async("/interactions")
discord.update_slash_commands(guild_id=os.environ["TESTING_GUILD"])

if __name__ == '__main__':
    app.run()

And the warning (which happens when I use /ping):
$ python main.py
 * Serving Quart app 'main'
 * Environment: production
 * Please use an ASGI server (e.g. Hypercorn) directly in production
 * Debug mode: False
 * Running on http://<IP_ADDRESS>:5000 (CTRL + C to quit)
[2021-08-11 18:29:56,356] Running on http://<IP_ADDRESS>:5000 (CTRL + C to quit)
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x0000018CB8BF4910>
[2021-08-11 18:30:21,070] <IP_ADDRESS>:3050 POST /interactions 1.1<PHONE_NUMBER>

Versions:
aiohttp==3.7.4.post0
Flask==2.0.1
Flask-Discord-Interactions==1.0.0
Quart==0.15.1

Thanks for filing an issue! I agree -- this is something that should be patched.
As a workaround for now, you can try calling ctx.close() at the end of your async function. This should allow you to manually close the aiohttp ClientSession.
That said, this library really should make this less of a pain point. It's a bit tricky though -- it could close the session at the end of each command invocation, but that would break anyone trying to do 'followup' messages (since those depend on the session being open after the initial response). I'm going to be actively working on this, but I can't give you a timeframe at the moment.

This should be fixed by v1.0.2. Can you install with pip3 install Flask-Discord-Interactions==1.0.2 and verify that the warning is gone in your project?
The release notes for v0.1.2 have more information about the update if you're curious, but the main change is that the client session is created once, used throughout the entire app, and torn down when the app finishes serving. Thus, as of v1.0.2, ctx.close() does nothing and doesn't need to be called.

I'm going to close this for now due to inactivity, feel free to reopen if you still have issues with this.


Pipedrive searches fail

Extension
https://www.raycast.com/stephendolan/pipedrive
Description
Searching with the extension results in this:

Steps To Reproduce

Add an API key from Pipedrive
Search for anything
See Failure

Current Behaviour

Expected Behaviour
Search results appear

@dabeeeenster That's a new one to me that I can't reproduce; the only places I'm using name are for the Deal Organization and Stage, which are required inputs for a Pipedrive Deal.
If you can find a way to grab a more specific error, I can spend a bit more time on it; otherwise, I'm not sure how to resolve what you're encountering.

Huh odd - it's working now. That's very strange - I didn't change anything. Maybe an issue in their API?

I'm seeing this error when I got no search results returned, but it works OK when there are results?

I'm seeing this same error now. I just installed the extension and followed the same steps as the OP and seeing this error no matter what I type - even before I hit "enter."

I figured out what's happening in my case. We don't use Organization on deals. According to the Pipedrive API docs, org_id is required unless a person_id is specified. I guess we rely on person_id (we tend to base everything off the deal title anyway and use it sort of like an organization name).


Port ANCM current directory changes to 2.2

Ports #6066 #4798  #4369
Description:
In InProcess hosting mode process current directory is not set to application physical path location like it was in OutOfProcess causing hard to diagnose exception in Program.Main for a lot of customers. (https://github.com/aspnet/AspNetCore/issues/6118 https://github.com/aspnet/AspNetCore/issues/6117 https://github.com/aspnet/AspNetCore/issues/4206 https://github.com/aspnet/AspNetCore/issues/5961 https://github.com/huorswords/Microsoft.Extensions.Logging.Log4Net.AspNetCore/issues/55 and more)
This change makes process current directory to be application physical path by default.
Regression?
Regression from OutOfProcess hosting mode.
Risk:
Medium-Low. It's hard to predict all the effects changing current directory might have on IIS worker process but testing didn't show any negative ones.
Some things to consider:

IIS Express and Hostable Web Core that share most of the code with w3wp support working from any current directory
We reset DllDirectory to point to the original CurrentDirectory to restore dll lookup order.
There is a handlerSetting option to opt-out of new behaviour.
This change was in master for some time now and didn't reveal any issues.
Workaround we provide to customers changes current directory process-wide and no side-effects were reported.

Needs to be rebased on release/2.2 code reorganization.

We should bring this back to Shiproom with ANCM folks present.


182835713 control node

This adds a Control Node to dataflow with functions Output Zero, Hold n, and Hold n-1

Control Nodes are instantiated with a heldValue property which will hold a value in local memory for as long as the Control Node is receiving a 1 in its first input.
When the node receives a 0, it nullifies the heldValue and passes on the input to the output and continues to do so until the next 1 signal arrives.  When a 1 is received, the block checks to see if the heldValue is null.   If it is, it sets the heldValue to the incoming value (or prior value) and outputs that, if not, it maintains the existing heldValue and outputs that.
This replaces a custom class function in value-control.tsx with a classnames implementation
This adds a dynamic class to the top-level dataflow-node.tsx, also using classnames.  has-gate appears on Nodes that have a binary input (hardcoded into the control node factory at the moment), and gate-active appears when the node is receiving a 1 in its first input.  Styles and assets added to make the "lit up socket" effect.
One other note - I elected to have the control node mostly maintain a single font size - can be made to behave like the others in styling
adds color vars from Zeplin spec for $control-green- family

The expression doesn't match the design. Seems like there might have been space issues? But f(g, s) => o doesn't express the meaning of the node. (That said, I don't know how much g ? c : s => o would make sense to students, or most teachers for that matter.)

HI - I have some alternate "sentences", including the tertiary-style one.  I ended up on the one that is there because most of the other nodes use the => symbol "results in" and land the out value in that last spot.   I basically think of f(0,23) => 23 as saying "This block received 0 and 23 and as a result of the function it sends back out 23".  This way we see the two input values, and the output value all in consistent locations.  I did mean to bring this question up so will bring it up internally...

@tealefristoe

It seems quite strange to me that the output is NaN unless a 0 or 1 is passed to the gate input. My intuition is that it should just output the signal input unless the gate input is set to 1. It's really weird to see a minigraph disappear when you set the gate to .5.

Thanks for thinking that through - and I agree.  The 1 is a truth value, and everything else should be  falsey/interpreted as 0.

It's weird to me that the gate input is top, but that is what's in the design. Maybe it's just me.
The power icon isn't flipping in the gate input.
The gate input is a circle, not a half circle like in the design.

There were some last minute changes in the design around the "upside down" and shape stuff, but all of this is part of the bigger idea you said, which makes a ton of sense.

Given that there's actually 3 states for the gate input (1, 0, and anything else), it seems weird that there's special visual feedback for just one of those states but not the other two.

I think the gate could be green when it gets a 1, normal gray when it gets 0, and red when it gets anything else.

I think the gate could be green when it gets a 1, normal gray when it gets 0, and red when it gets anything else.

Clarifying for the record that the spec is interpret anything besides 1 as 0, so we have only two states.


[Fix: issue 542] changes to str when column data is a list or tuple in pc.data_table

All Submissions:

[x] Have you followed the guidelines stated in CONTRIBUTING.md file?
[x] Have you checked to ensure there aren't any other open Pull Requests for the desired changed?

Type of change

[x] Bug fix (non-breaking change which fixes an issue)
[x] Does your submission pass the tests?
[x] Have you linted your code locally prior to submission?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[x] Have you written new tests for your core changes, as applicable?
[x] Have you successfully run tests with your changes locally?

Description
Fix issue 542
changes to str when column data is a list or tuple in pc.data_table

Ok nice going to test this locally tonight

@Alek99 Yes
The codes like below:
# type: ignore
"""Welcome to Pynecone! This file outlines the steps to create a basic app."""
import pynecone as pc
import pandas as pd

class State(pc.State):
    data1 = pd.DataFrame(data=[{"parentBuildID": "P1", "childBuildID": 1},
                               {"parentBuildID": "P2", "childBuildID": (1, 2, 3)},
                               {"parentBuildID": "P3", "childBuildID": ['4', '5', '6']}])

def index():
    return pc.data_table(
        data=State().data1,
        pagination=True,
        search=True,
    )

app = pc.App(state=State)
app.add_page(index)
app.compile()

Ok let me try that code

# type: ignore
"""Welcome to Pynecone! This file outlines the steps to create a basic app."""
import pynecone as pc
import pandas as pd

class State(pc.State):
    data1 = pd.DataFrame(data=[{"parentBuildID": "P1", "childBuildID": 1},
                               {"parentBuildID": "P2", "childBuildID": (1, 2, 3)},
                               {"parentBuildID": "P3", "childBuildID": ['4', '5', '6']}])

def index():
    return pc.data_table(
        data=State.data1,
        pagination=True,
        search=True,
    )

app = pc.App(state=State)
app.add_page(index)
app.compile()

It seems to be creating a new state instance it will need to work with the above code where data=State.data1 not data=State().data1

@picklelo
How to iterate a BaseVar? I get stuck here. :anguished:
https://github.com/pynecone-io/pynecone/blob/46cdda41250d4c11b9a84bf75ab6cf4b003cd933/pynecone/components/datadisplay/datatable.py#L88


Add support for mocking responses

With the middleware architecture in place, it shouldn't be too difficult to add support for mocking responses. That would be a nice addition that would ease testing in a lot of scenarios, in a way that would work in both browsers and on the server.

Just released 2.1.0 which includes the low-level primitive middleware injectResponse for doing this. It can also be used to create a cache, for instance. I suspect I will create a higher-order (separate) module to utilize it more easily in terms of automatically removing matched requests, sort of like what nock does.
You can't currently asynchronously resolve a response, but this is something that I want to add in the future.
Basic usage:
const getIt = require('get-it')
const {injectResponse, promise} = require('get-it/middleware')

const inject = evt => {
  const url = evt.context.options.url
  if (url.includes('/some-thing')) {
    return {body: 'Yay, some thing!'}
  }

  // Otherwise, use unmocked behaviour
}

const request = getIt([
  promise(),
  injectResponse({inject})
])

request('http://some.url/foo') // Unmocked, standard behaviour
request('http://some.url/some-thing') // Mocked, will emit response on next tick


I have a problem, ask for help... T.T

I am a novice developer.
I was imitating the content of the text.
But there was a problem
In the README_Jetson_Nano_BSP.md file
ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ
Flash the target device
Put the Antmicro Jetson Nano Baseboard in recovery mode (to do it press the RST button while holding REC button), and flash the device with following commands:
cd /path/to/Linux_for_Tegra
sudo ./flash.sh jetson-nano-emmc mmcblk0p1
ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ
However, in my virtual environment, there was no flash.sh in cd /path/to/Linux_for_Tegra
I would appreciate it if you let me know what to do

그래서 /path에 있는 디렉토리가 아닌 /home에 있는Linux_for_Tegra에서 flash를 시켰습니다.
( sudo tar xf Tegra_Linux_Sample-Root-Filesystem_R32.4.2_aarch64.tbz2 -C Linux_for_Tegra/rootfs
cd Linux_for_Tegra)
그래서 그런지 모르겠지만 -enable-kvm 에서 에러가 납니다.. 부탁드립니다.


Camera position not saving properly

Currently when the user saves after moving the camera, the rotation and zoom level is saved/applied properly, but if the user panned the camera, it is not saved or applied properly.
The current implementation saves the camera.position and camera.quaternion. It seems this does not properly rebuild the camera matrix.
Probably need to look into how Three.js implements camera panning.

This could also be solved by allowing the user to position items themselves, and disable panning entirely.

Needed to save orbit control target as well


subjectDatasetKey inconsistency for dataset 3LR

The tree has dataset 1008 as sector source here:
https://www.dev.catalogue.life/?taxonKey=fa9c40ab-7a82-42a6-8bad-6850141ed1a6
But that dataset is missing as a source: https://www.dev.catalogue.life/data/dataset/1008

duplicate of #869


Implement IO for different file versions

We currently have a versioned set of file formats for the model IO, and already a few out-of-date versions not supported by the code.  We have a couple of choices on what to do:

Update old files to the latest (forward-compatible) format
Update the code to read older, currently-unsupported files

Closing as file conversion solves this issue


Bubble level

Can you do one for bubble level too

This app is just for compass, but i think is not possible for qs service


fix: bugs in TRT 10 upgrade

Description
Fix bugs in TRT 10 upgrade.
Fixes #2811
Type of change

Bug fix (non-breaking change which fixes an issue)

Checklist:

[ ] My code follows the style guidelines of this project (You can use the linters)
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas and hacks
[ ] I have made corresponding changes to the documentation
[ ] I have added tests to verify my fix or my feature
[ ] New and existing unit tests pass locally with my changes
[ ] I have added the relevant labels to my PR in so that relevant reviewers are notified

Can this be merged @zewenli98 ? If so, please raise a cherry pick to release/2.3 it it's needed


When testing the connection, the prompt "[Fail] Empty JSON data!"

thanks for report
this happen unfortunately mostly if server is started and not return json fast enough.
do this happens still after the server is running a while?
I look which calls are made and which leads to this.

hmm I created special version with additinal logs a time ago (see https://github.com/MCMicS/jenkins-control-plugin/issues/69#issuecomment-1707725875). may you can use this to get further informations or I add additional logs the days in a newer version
org.codinjutsu.tools.jenkins
#org.codinjutsu.tools.jenkins:trace

Plugin: https://github.com/MCMicS/jenkins-control-plugin/files/12533934/jenkins-control-plugin-0.13.19-eap3-2023.2-signed.zip


Return user to area they were working when viewing other models.

In Child and Family Records (or everywhere), user should be returned to the place they were working after opening another model.  for example when viewing a specific internal note or inquiry, it should return you to that section of the record, rather than returning you to the top of the record.

Not sure if possible, Jared will explore


Please provide details on using a test phone number and a test code

It would be nice to have more info on the use of these metadata keys helpful for debug and testing purposes: allowTestNumberPassthrough, testPhoneNumber, testCode. Thanks!

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

ID: f5173ffe-41ca-249e-4331-ca29a5146a40
Version Independent ID: 0296752c-388f-ecff-2a79-f80e2f8c5d42
Content: Define a phone factor technical profile in a custom policy - Azure AD B2C
Content Source: articles/active-directory-b2c/phone-factor-technical-profile.md
Service: active-directory
Sub-service: b2c
GitHub Login: @msmimart
Microsoft Alias: mimart

@Riff451 Thanks for your feedback! We will investigate and update as appropriate.

#reassign:JasSuri

This is not something we have decided to make more public as of yet, hence no further information to share at this moment.

@Riff451 thanks for sharing your feedback on this article. I'll go ahead and close this issue for now, but as we have additional information or guidance to share we'll update the article. #please-close


recoveryEnabled

What does the recoveryEnabled attribute defines and what are the expected values for this attribute?

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

ID: 781f6cb6-e1b5-ef1d-b811-171d9d749f91
Version Independent ID: b3a23a18-70af-d4c6-dd77-176f90d1d895
Content: Get-SPODataEncryptionPolicy (sharepoint-online)
Content Source: sharepoint/sharepoint-ps/sharepoint-online/Get-SPODataEncryptionPolicy.md
Service: sharepoint-powershell
GitHub Login: @
Microsoft Alias: ****

Hello @Larryngolog Pawel
Where are you seeing that attribute? in the output of this cmdlet?
Thanks

Hello, yes, in the cmdlet output.

@tseward Trevor, do you happen to know about this attribute?

@get-itips I do not, sorry.

@trent-green Trent, can you help us here? I appreciate.

@trent-green Can you please confirm the recoveryEnabled attribute is related to the soft-delete feature of Azure KeyVault?
https://docs.microsoft.com/en-us/azure/key-vault/general/soft-delete-overview
Thanks

@AdwoodMicrosoft Kindly help. Thanks

The cmdlet owner has been notified of this issue, but we don't have any updates at this time.
Thanks!

@yogkumgit @get-itips


Post settings menu date picker doesn't use site timezone

Issue Summary
The timezone of post settings menu date picker doesn't match the site's timezone. This prevents a user from editing the publication date of a post when the publication date is published the following day relative to the user's current timezone.
Steps to Reproduce

Set the site's timezone to one that is a day ahead of your current timezone
Start a new draft
Open the post settings menu, note that the publish date is set to the right date (one day ahead of you)
Try to edit that value:

Note that although the date in the box is correct (the 29th in the screenshot), the selected date in the date picker is the previous day (the 28th), or today in your current timezone. Today in the site timezone (29th) is not selectable.
Ghost Version
5.16
Node.js Version
16
How did you install Ghost?
ghost install
Database type
MySQL 8
Browser & OS version
Tested in latest Mac Chrome
Relevant log / error output
No response
Code of Conduct

[X] I agree to be friendly and polite to people in this repository

Hi @ErisDS  I would like to work on this issue. Please assign to me.

@parulgupta26 we only assign issues to regular contributors. There is no open PR for this issue so it's free to work on.

Hi, I have a question regarding the intended behavior of this component. Similar to the example you've given above, what should happen when the site's timezone is earlier than the user's timezone? Should the component always enforce the site's timezone?

Correct, the component should be enforcing the site's timezone, not the users.

I seem to have located the lines that cause this behavior. In the source file ghost/admin/app/components/gh-date-time-picker.js there's the code block responsible for the 'now' option that sets the maxDate  for the picker. Instead of using moment.tz() function it uses the regular moment() function which does not consider the timezone of the site. Same behavior can be observed for the minDate attribute of the component here. To resolve this issue, I propose that moment.tz() to be used along with the blogTimezone variable that is available in the component class for the two instances I mentioned previously (minDate and maxDate). This change will fix both the minimum date, and maximum date available in the picker to use the site's timezone.
The blocks will change from this:
if (maxDate === 'now') {
    this.set('_maxDate', moment(moment().format(DATE_FORMAT)));
}

To this:
if (maxDate === 'now') {
    this.set('_maxDate', moment.tz(moment().format(DATE_FORMAT), blogTimezone));
}

If my proposed solution is acceptable I would like to work on this issue.

Please raise a PR 🙂


Support to Erlang 19

Adds support to the typed_record_field tuple exposed since OTP-19. Refer to OTP-13148

@ericbmerritt is there any chance to merge it?


[TA] Enable tests

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

/azp run java - textanalytics - tests


Add an incident report

[ ] https://github.com/renakollmannsuhr/StreetSense/pull/4
[ ] https://github.com/renakollmannsuhr/StreetSense/pull/7

Priority: #1
Description: A Google Map view of Victoria and surrounding area showing all the marked incidents from other users. Clicking on a marker will show the details of the incident, including title, date/time of occurrence, incident type, and a description.
Pain reliever: Our Student target market has expressed a need for real-time crime reports to alleviate fear of the unknown, to be more informed as they walk, and to possibly reduce risk and increase freedom of movement.
Requires: Querying from the database when the app is loaded, to retrieve all the existing recorded incidents and details from other users and displaying them on the Google Map using a Google map marker.
Due Date: Milestone 1
Current Status: Front and back done
Time Estimation: 4 days


Cart with solar module and woodcutter cannot be placed in world

This is the issue I was facing previously on #40 (which relates to #23).
After "extensive" testing on my heavily-modded world, I figured out that my cart failing to be placed had something to do with solar panels.
Upon creating another instance (this time, just running steve's carts 2 by itself with no other mods), I found that creating a cart containing a solar panel module (of any type, regular/basic/compact) and a woodcutting module (basic/reinforced/galgadorian) in a cart prevents the cart from being placed. You can place the cart if it contains one of these modules, and any other number of modules, but having both installed prevents it from working properly. Any other type of cart works perfectly, this issue is only present with a woodcutter and a solar panel.
http://pastebin.com/KAxrs0tx (fml log)
Sorry for bothering you again, but as this seems to be an issue with the steve's carts 2, and not a rogue mod interaction, I thought I might as well bring it to your attention.

Ok thanks, the last fix would have removed any possibly of it being another mod.

Ok, just put out another beta build that should hopefully fix it. Please report back to me if it helps.

Yep, that fixed it, tried a bunch of cart combinations, just in case, and they all work. Building a new woodcutter cart on my heavily modded world with the new build works perfectly. Thank you! Infinite wood!

Nice! Thanks for your help with tracking this down.

Hello i have this on my server too with latest 1.10.2 build :(  (StevesCarts-1.10.2-<IP_ADDRESS>.jar)


Add the ability to pass a CSP nonce to flutter.js that will be used when loading additional scripts

Strict CSPs require that any script tags that are created have a nonce attribute that specifies the same nonce included in the CSP header, to ensure all scripts that are loaded are trusted. Currently, Flutter is only compatible with the weaker strict-dynamic mode.
Flutter loads many scripts dynamically, e.g. flutter.js loads main.dart.js, and main.dart.js loads additional parts. And the engine loads canvaskit etc. It'd be great if the developer could pass flutter.js a nonce, and then Flutter could use that when loading all additional scripts. E.g.
_flutter.loader.loadEntrypoint({
          entrypointUrl: 'my_app/main.dart.js',
          nonce: my_nonce,
          onEntrypointLoaded: function(engineInitializer) {
            engineInitializer.initializeEngine().then(function(appRunner) {
              appRunner.runApp();
            });
          }
        });

It's worth considering if Flutter can automatically find the right nonce to use somehow e.g. there are approaches internally that copy the nonce from other script tags in the DOM. Overall, though, I think adding it as an explicit parameter passed by the app developer seems less likely to cause breakages and confusion.
This is not blocking anyone at the moment, but it likely will eventually when an app that is already using a strict CSP wants to integrate Flutter without accepting a security regression.
See internal bug b/274360267 for more details.

This could be a potential fix for a big part of: https://github.com/flutter/flutter/issues/80221

This should be available soon in master!

David, I tried this out, but I got an error where main.dart.js could not be loaded because there is no nonce on that script tag.
I think perhaps we need to move the nonce parameter to loadEntrypoint rather than initializeEngine because we need it before main.dart is even loaded. See internal change cl/572795063 as an example. This worked for me locally. I'd send a PR, but I'm not sure if there are other places that rely on the current behavior, or if maybe I'm missing something?

@jacobsimionato what's the CSP configuration that we want to support? Currently, it's this:
script-src 'self' 'nonce-YOUR_NONCE_VALUE' 'wasm-unsafe-eval';
font-src https://fonts.gstatic.com;
style-src 'nonce-YOUR_NONCE_VALUE';

Do we want to remove 'self' from script-src?

Yeah I think so! I'm struggling to figure out what the implications of that are though. I thought nonces were required for every script tag, regardless of whether 'self' is present here?
This is the content security policy for the app that is failing:
Content-Security-Policy: require-trusted-types-for 'script'
Content-Security-Policy: script-src 'report-sample' 'nonce-YOUR_NONCE_VALUE' 'unsafe-inline' 'unsafe-eval';object-src 'none';base-uri 'self';report-uri

I get the error:
Refused to load the script 'https://<URL of the app>/web/main.dart.js' because it violates the following Content Security Policy directive: "script-src 'report-sample' 'nonce-HA8EXnECp_fqWPFwvPxA6A' 'unsafe-inline' 'unsafe-eval'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

This is a good proposal, I think I can add a nonce to loadEntrypoint that then gets forwarded automagically to initializeEngine. I think the change should only affect flutter.js, actually!

That sounds ideal! Thank you :-D

then gets forwarded automagically to initializeEngine

I spoke too soon, and the code to achieve this is a big mess. For now, the nonce will need to be set in 2 places :/


Data and Results File

Sorry, the link of Data and Results File is dead. Could you update it?

I would like to ask if you have this Data and Results File, and if so, can you share it with me?


Add script: install_pocketbase

Add an installation script for PocketBase that provides:

Interactive version selection with arrow keys
Progress bar for downloads
Email and password validation
Automatic environment configuration
Error handling and retry mechanism

The script supports both macOS and Linux (x86_64/arm64).

@bigbrother666sh


As a developer, I want to test block production, to make sure is successful in varios scenarios

Update: set up a small local network with a seed OCaml node and a block producer Rust node. Testing block production at genesis and after with delegator accounts winning the slots. Found a few issues with the initial genesis state (fixed), mishandling of is_supercharged value in the case the winner account has locked tokens (fixed for block application, fix still pending for block production) and issue with handling asynchronous commits when injecting the produced block (already fixed by Zura).
Testing in the local network is much faster than testing on berkeley but I have to investigate how to start introducing these scenarios in the simulator (will not be able to use proofs in that case, so we have to figure out if we should implement a differential fuzzer that compares inputs sent to the prover by the OCaml vs Rust node, have long-running networks or what).


Closing SABER solicitation

Keeps the solicitation link online for archiving, but makes clear that the submission period is now closed, and removes the KO's email address
Signed-off-by: Patrick Stoddart<EMAIL_ADDRESS>

:shipit:


[SelectField] Fix 2668 and 2517

Fix #2668 and #2517.

@oliviertassinari Something tells me we should also add value on the returned object for now.

approve)

@alitaheri Yeah, that's safer like this.

Great :+1: :+1: Thanks @oliviertassinari ^_^ Merge when ready

Guys Floating label is not clickable

Floating label is not clickable for TextField

We already have an issue for this https://github.com/callemall/material-ui/issues/2115.


Need help with implementing 404 page and mapUnknownRoutes.

It looks like easy thing with mapUnknownRoutes, but it's getting complicated when adding authorization workflow.
The main idea is:

go to the /notfound url (notice that there are no known route in config for it).
if not authorized show login form (we still at /notfound)
process login, get navigation, and refresh /notfound to show 404 page

config.mapUnknownRoutes(instruction => {

        if(this.auth.authorized) {
          instruction.config.moduleId = './pages/err404';
        } else {
          instruction.config.moduleId = './pages/login';
        }

        return instruction;
});

But the problem here is that it updates instruction with new moduleId but does not switch model-view to the err404.

Upd: Noticed that instruction.viewPortInstructions.default property is undefined

Found workaround for that.
Added redirect route to router config:
{ route: 'redirect', moduleId: './pages/home', auth: true, nav: false},

Save instruction when not authorized
this.state.authRedirect = instruction;
instruction.config.moduleId = './pages/login';

After auth I get saved instruction, add route for unknown fragment and do redirect
let fragment = this.state.authRedirect.fragment;
this.state.authRedirect = null;
this.router.addRoute({route: fragment, moduleId: './pages/err404', nav: false, auth: true});
this.router.navigate('/redirect?'+fragment);

Handle redirect in router pipeline step:
run(routingContext, next) {
    let redirectIndex = _.findIndex(routingContext.nextInstructions, 'fragment', '/redirect');
    if(redirectIndex >= 0){
      let r = new Redirect(routingContext.nextInstructions[redirectIndex].queryString);
      return next.cancel(r);
    }
}

In your original setup it may not be activating because the location isn't changing. Try setting instruction.config.activationStrategy = activationStrategy.invokeLifecycle; to get the router to process the change.

@bryanrsmith , If I remove this.router.addRoute({route: fragment, moduleId: './pages/err404', nav: false, auth: true}); and add instruction.config.activationStrategy = activationStrategy.invokeLifecycle; to mapUnknownRoutes  it doesn't help. Noticed that it stops and does not proceed to the pipeline step.

My workaround does not really work as expected
when doing
this.router.addRoute({route: fragment, moduleId: './pages/err404', nav: false, auth: true});

I override already dynamically loaded routes, so tried to check that with this.router.hasRoute(...),
but it turned out that this.router.recognizer.names is empty after this.router.ensureConfigured(), is it correct?

@valichek Sorry for the delay on this. This is a problem because the router doesn't let you navigate to the location that's already active. In the next release you'll be able to use the { replace: true } navigate option to force the router to navigate to the same URL.
I'm going to close this because I think this will solve your problem. Please feel free to reopen it if this change isn't working out for you.


Update README to describe converting finder schemas

The process for adding a new specialist document format should also
include updating govuk-content-schemas appropriately to include the new
format.

Can we add a section to the README.md about how to change a format with these changes? It should also probably specify that changing the value for any of the facet options is a bad idea because:

Links to pre-filtered Finders won't have that option selected
The old value won't be an option in the facet which means;
Any documents with the old value won't be filterable on that value
Any new documents published will have the new value, which will be different from the old one

The last 2 issues are fixable by republishing all the documents, but this isn't advisable as some of the specialist document formats have more than 10,000 documents.
Changing the label is fine though. :+1:

@tommyp I agree that some step-by-step instructions about modifying existing finders would be valuable but I think it's outside the scope of this pull request.
I'd be happy to sit with you and draft something (for a separate PR).

We also need to remove the section about govuk-content-models from this doc; there's no longer any need to do anything there.

Thanks @danielroseman, done


[PIO-176] Hack in build.sbt for switching between Spark 1.x and 2.x s…

Removed unmanagedSourceDirectories in data module
refactored sqlSession code blocks to use SparkSession instead of SqlContext
removed PPythonEventStore.scala as it was not being used anywhere.

Please review and let me know if I missed anything.
Thanks a lot for your support guys.

PPythonEventStore is used in python/pypio.

Yeah, it's necessary for python/pypio for now. We can probably remove it after supporting Spark ML natively.


fix(common): flaky KeyConverter unit tests

Describe the bug
Failed once on the CI server but works just fine locally.
https://travis-ci.org/github/hyperledger/cactus/jobs/732084285
To Reproduce

Checkout the commit 5938f2846a70e35bed6364825a09ad30d9e3930f
npm i && npm run run-ci
Observe that succeeds (or does it?)

Expected behavior
Test case outcome should always be consistent across all environments that the tests can be executed in regardless of OS/number of cores/hardware differences in general.
Logs/Stack traces
https://travis-ci.org/github/hyperledger/cactus/jobs/732084285#L5538
Operating system name, version, build:
The Travis CI environment both Node 12 and 14
Hyperledger Cactus release version or commit (git rev-parse --short HEAD):
5938f2846a70e35bed6364825a09ad30d9e3930f
Hyperledger Cactus Plugins/Connectors Used

Besu

Additional context
I'm suspicious that it may be the key generation in the beginning of the file packages/cactus-common/src/test/typescript/unit/key-converter.test.ts that goes on for too long without a timeout and then crashes the process, but no evidence of this just yet.

Modified milestone from 2.0.0 to 0.5.0 as per proposal from @sfuji822 (so that we include this in the MVP)

Finally had the time to investigate this properly and it is an issue that traces back to the tap test executor unfortunately.
We already had plans to replace tap with tape for other reasons (adding browser testing support) but now this has become more important than ever.
While seeing if we could use tape as the test runner as well, I arrived at the conclusion that we cannot because it does not support obtaining coverage while also compiling the Typescript code on the fly.
Another executor that does support this and also satisfies our requirement of being able to spit out TAP formatted results is AVA so I will update the relevant GH issue #238  about test runner migration to target AVA instead of tape...


Running Headless

When I run the code from the documentation
`import gym
import universe  # register the universe environments
env = gym.make('flashgames.DuskDrive-v0')
env.configure(remotes=1)  # automatically creates a local docker container
observation_n = env.reset()
while True:
action_n = [[('KeyEvent', 'ArrowUp', True)] for ob in observation_n]  # your agent here
observation_n, reward_n, done_n, info = env.step(action_n)
env.render()`
Theres always a window that pops up and shows the game being played by the ai.  How can I make it run headless?

Just take out the call to env.render()


Hyundai Bluelink Connection error

Describe the bug
My Vehicle is not displayed in the webpage for choosing.

If I try the test for vehicle configuration I get this:
sudo evcc -l debug vehicle
[main  ] INFO 2023/04/09 21:09:53 evcc 0.115.0
[main  ] INFO 2023/04/09 21:09:53 using config file: /etc/evcc.yaml
[db    ] INFO 2023/04/09 21:09:53 using sqlite database: /root/.evcc/evcc.db
[mqtt  ] INFO 2023/04/09 21:09:53 connecting 114 at tcp://localhost:1883
[mqtt  ] DEBUG 2023/04/09 21:09:53 tcp://localhost:1883 connected
[main  ] ERROR 2023/04/09 21:09:55 creating vehicle IONIQ failed: cannot create vehicle 'template': cannot create vehicle 'hyundai': login failed: unexpected status: 400 (Bad Request): Invalid values (4003)
.Soc:     vehicle not available: cannot create vehicle 'template': cannot create vehicle 'hyundai': login failed: unexpected status: 400 (Bad Request): Invalid values (4003)
Capacity: 0.0kWh
Features: [Offline]
The konfiguration for the vehicel worked befor (middel of March) and doesn't after I come back from my onside commisioning. In this time I've changed nothing. While going trough the blogs I read something about an App update of Bluelink and other Users getting problem's with this too. I also made the update from v 0.114.0 to v 0.115.0 after I discovered that something is wrong with the vehicle communication, but doesn't help.
This is my config of my Hyundai Ioniq:
vehicles:

type: template
template: hyundai
title: IONIQ
user<EMAIL_ADDRESS>password: *******
vin: *****
capacity: 39
phases: 1
language: de
mode: pv
minSoC: 15
targetSoC: 95
minCurrent: 6
maxCurrent: 30
name: IONIQ

Steps to reproduce

...
Configuration details
# open evcc at http://evcc.local:7070
network:
  schema: http
  host: evcc.local # .local suffix announces the hostname on MDNS
  port: 7070

log: info
levels:
  cache: error

# unique installation id
plant: ***

interval: 1s # control cycle interval

sponsortoken: ***

# sponsors can set telemetry: true to enable anonymous data aggregation
# see https://github.com/evcc-io/evcc/discussions/4554

meters:
- type: template
  template: sma-home-manager
  usage: grid
  host: 192.168.***.***
  name: SMA_Homemanager_2_0
- type: template
  template: sma-inverter
  usage: pv
  host: 192.168.***.***
  password: ***
  name: PV_SMA_Tripower_6

chargers:
- type: template
  template: smaevcharger
  host: 192.168.***.***
  user: ***
  password: ***
  name: EVCharger

vehicles:
- type: template
  template: hyundai
  title: IONIQ
  user<EMAIL_ADDRESS>  password: ***
  vin: ***
  capacity: 39
  phases: 1
  language: de
  mode: pv
mode: pv
  minSoC: 15
  targetSoC: 95
  minCurrent: 6
  maxCurrent: 30
  name: IONIQ

loadpoints:
- title: EVCharger
  charger: EVCharger
  vehicles: IONIQ
  mode: pv
  phases: 3
  mincurrent: 6
  maxcurrent: 31
  resetOnDisconnect: true

site:
  title: Wolfshöhle
  meters:
    grid: SMA_Homemanager_2_0
    pvs:
    - PV_SMA_Tripower_6

hems:
  type: sma
  AllowControl: false

mqtt:
  broker: localhost:1883
  topic: evcc
  user: ****
  password: ****
  clientid: 114

tariffs:
  currency: EUR # (default EUR)
  grid:
    # static grid price
    type: fixed
    price: 0.43 # [currency]/kWh

  feedin:
    # rate for feeding excess (pv) energy to the grid
    type: fixed
    price: 0.07 # [currency]/kWhtariffs:

telemetry: true # default: false

Log details
[main  ] INFO 2023/04/09 21:22:11 evcc 0.115.0
[main  ] INFO 2023/04/09 21:22:11 using config file: /etc/evcc.yaml
[main  ] INFO 2023/04/09 21:22:11 starting ui and api at :7070
[db    ] INFO 2023/04/09 21:22:12 using sqlite database: /root/.evcc/evcc.db
[mqtt  ] INFO 2023/04/09 21:22:12 connecting *** at tcp://localhost:1883
[mqtt  ] DEBUG 2023/04/09 21:22:12 tcp://localhost:1883 connected
[main  ] ERROR 2023/04/09 21:22:15 creating vehicle IONIQ failed: cannot create vehicle 'template': cannot create vehicle 'hyundai': login failed: unexpected status: 400 (Bad Request): Invalid values (4003)
[lp-1  ] WARN 2023/04/09 21:22:15 vehicles option is deprecated
[semp  ] WARN 2023/04/09 21:22:15 SEMP_BASE_URL unspecified, using http://192.168.***.***:7070 instead
[site  ] INFO 2023/04/09 21:22:15 site config:
[site  ] INFO 2023/04/09 21:22:15   meters:      grid ✓ pv ✓ battery ✗
[site  ] INFO 2023/04/09 21:22:15     grid:      power ✓ energy ✓ currents ✓
[site  ] INFO 2023/04/09 21:22:15     pv 1:      power ✓ energy ✓ currents ✓
[site  ] INFO 2023/04/09 21:22:15   vehicles:
[site  ] INFO 2023/04/09 21:22:15     vehicle 1: range ✗ finish ✗ status ✗ climate ✗ wakeup ✗
[lp-1  ] INFO 2023/04/09 21:22:15 loadpoint 1:
[lp-1  ] INFO 2023/04/09 21:22:15   mode:        pv
[lp-1  ] INFO 2023/04/09 21:22:15   charger:     power ✓ energy ✗ currents ✓ phases ✗ wakeup ✗
[lp-1  ] INFO 2023/04/09 21:22:15   meters:      charge ✓
[lp-1  ] INFO 2023/04/09 21:22:15     charge:    power ✓ energy ✗ currents ✓
[lp-1  ] DEBUG 2023/04/09 21:22:15 phase timer inactive
[lp-1  ] DEBUG 2023/04/09 21:22:15 pv timer inactive
[lp-1  ] DEBUG 2023/04/09 21:22:15 guard timer inactive
[main  ] FATAL 2023/04/09 21:22:16 could not open port- check that evcc is not already running (listen tcp :7070: bind: address already in use)

What type of operating system are you running?
Linux
Version
evcc version 0.115.0

I think this is  https://github.com/evcc-io/evcc/issues/7227

What 7227 means?

Click the link. It is a issue with the same topic

Problem ist im nightly gelöst.

gibt es nightly für homeassistant??


Allow pypy versions without a hyphen

The regexp no longer assumes there is a - in the version name when
dealing with pypy*.

This reinstates #1073, which was later reverted by #1075.

:heart:   :+1:  (cross-ref this too)[https://github.com/travis-pro/team-sapphire/issues/671]