Cross platform HAL

Peripheral drivers

[ ] make interfaces for common peripherals in hal/common

[x] serial
[x] i2c
[x] spi
[x] gpio
[x] file
[ ] pwm
[ ] adc

[ ] implement dummy peripherals in hal/dummy

[x] serial_dummy
[x] i2c_dummy
[x] spi_dummy
[x] gpio_dummy
[x] file_dummy
[ ] pwm_dummy
[ ] adc_dummy

[ ] implement linux peripherals in hal/linux

[x] serial_linux_io
[x] serial_udp
[x] file_linux

[ ] implement peripherals for avr32 in hal/avr32

[x] serial_avr32
[x] serial_usb_avr32
[x] i2c_avr32
[ ] spi_avr32
[x] gpio_avr32
[x] file_flash_avr32
[ ] file_fatfs_avr32
[ ] pwm_avr32
[ ] adc_avr32

Endianness

[x] Add endian-related functions
[x] Add definition of endianness for each architecture ARCH in hal/ARCH/endianness.h

Drivers

[ ] make interfaces for common sensors/chips in drivers/

[x] accelerometer
[x] gyroscope
[x] magnetometer
[x] barometer
[x] sonar
[x] gps
[x] satellite
[ ] servo
[ ] battery voltage
[ ] airspeed sensor (pitot tube)
[ ] led
[ ] piezzo speaker

[ ] adapt current sensor drivers in drivers/

[x] lsm330dlc
[x] hmc5883l
[x] bmp085
[x] gps_ublox
[x] sonar_i2cxl
[x] spektrum_satellite
[ ] servo
[ ] battery voltage
[ ] led
[ ] piezzo speaker

Simulation

[x] Isolate as much as possible the dynamic model of the simulation in a separate class, this should be swappable with another dynamic model (ex fixed wing)
[x] Modify simulation to contain the dynamic model and sensors. It exposes sensor values through the simulated sensor objects (the objects can have a pointer to the simulation for example).

Simulated sensors

[ ] corresponding simulated sensors in simulation/

[x] accelerometer
[x] gyroscope
[x] magnetometer
[x] barometer
[x] sonar
[x] gps
[ ] servo
[ ] battery voltage
[ ] airspeed sensor (pitot tube)

Boards

[x] Separate central data and the board

[x] include sensors in imu
[x] put references to sensors in central_data, real sensors in the board

[x] Real board (Megafly_rev4)
[ ] Simulation on hardware board
[ ] Simulation on PC (emu) board

Debug

[x] make console module to write usual variables into "things" (Serial, File, ...) with human readable format. This will replace the functions duplicated in print_util and data_logging
[x] make dbg module for debug prints. It should be "global" or singleton or whatever to make the functions accessible everywhere without passing objects around.
[ ] Adapt all modules to use new dbg interface

Continuous integration

[x] Add travis build system to check that the library builds on its own
[ ] Add sample projects to test each hardware architecture / each platform

The above two commits show a working demo with the sonar using a generic interface for I2C.
It is using a C++ abstract class to define the I2C interface, and concrete a class to implement the I2C driver for AVR32.
Let me know what you think @GregoireH @meysambasiri @ndousse @basil-huber @alexcherpi .

I'll have only one comment:
http://xkcd.com/1513/

Nice!
Should I infer that you did not like it, or that you did not read it?

@ndousse I had to remove the dependency to gps_ublox.h in fatFS because it failed to compile.
Can we have a glue module that interfaces mavric with the external library? Like mavlink_stream does the interface with mavlink.

The link between fat_fs and gps_ublox is only for the date & time for the file system. We could store that elsewhere, e.g. in state as it is a global information?
For the glue module, the module disk_io has exactly this purpose: to link your framework (e.g. spi writing) with the fat_fs module.

Yes, that would work better with the date in state_t I think.
With fatfs, the issue now is that even stabilisation_copter requires fat_fs_mounting !
You can have a look at the latest commits, I added an abstraction layer for files. I plan to give data_logging a pointer to a File. I created File_linux, which uses the OS to create and write to the file, now we have to do the same for fat_fs: something like File_fat.
However, as you modified the fatfs library, it will be File_fat_avr32, and we will have problems with other platforms as stm32. I think the solution is to follow what is proposed in diskio.c, ie. uncomment the MMC_* USB_* ATA_* lines, and implement these functions in hal/avr32.

I don't see the dependency of stabilisation_copter on fat_fs_mounting, how did you conclude this?

I tried to compile the project on Linux with the current central_data, and
stabilisation copter did not compile. I think the dependency to fatfs went
through an include in waypoint_handler or position_estimation.
Le 1 oct. 2015 5:14 PM, "ndousse"<EMAIL_ADDRESS>a écrit :

I don't see the dependency of stabilisation_copter on fat_fs_mounting, how
did you conclude this?
—
Reply to this email directly or view it on GitHub
https://github.com/lis-epfl/MAVRIC_Library/pull/85#issuecomment-144758960
.

Here is the detail:
make ../../MAVRIC_Library/control/stabilisation_copter.o

g++ -g -O2 -Wall -std=c++11 -fdiagnostics-color=auto -I. -I../../MAVRIC_Library/ -I../../MAVRIC_Library//boards -I../../MAVRIC_Library//communication -I../../MAVRIC_Library//control -I../../MAVRIC_Library//drivers -I../../MAVRIC_Library//hal/common -I../../MAVRIC_Library//hal/linux -I../../MAVRIC_Library//hal/dummy -I../../MAVRIC_Library//hal -I../../MAVRIC_Library//libs/mavlink/include/common -I../../MAVRIC_Library//libs/mavlink/include/mavric -I../../MAVRIC_Library//libs/fats -I../../MAVRIC_Library//libs -I../../MAVRIC_Library//sensing -I../../MAVRIC_Library//runtime -I../../MAVRIC_Library//util -I../src/ -I../src/   -c -o ../../MAVRIC_Library/control/stabilisation_copter.o ../../MAVRIC_Library/control/stabilisation_copter.cpp
In file included from ../../MAVRIC_Library//sensing/position_estimation.hpp:50:0,
                 from ../../MAVRIC_Library//communication/mavlink_waypoint_handler.hpp:48,
                 from ../../MAVRIC_Library/control/stabilisation_copter.hpp:47,
                 from ../../MAVRIC_Library/control/stabilisation_copter.cpp:44:
../../MAVRIC_Library//communication/data_logging.hpp:48:31: fatal error: fat_fs_mounting.hpp: No such file or directory
compilation terminated.
<builtin>: recipe for target '../../MAVRIC_Library/control/stabilisation_copter.o' failed
make: *** [../../MAVRIC_Library/control/stabilisation_copter.o] Error 1

Quick TODO:
Here are the modules that do not compile with g++ due to hardware dependencies:
# LIB_SRCS += boards/megafly_rev4.cpp

# LIB_SRCS += drivers/ads1274.c
# LIB_SRCS += drivers/adxl345_driver.c
# LIB_SRCS += drivers/curvace.c
# LIB_SRCS += drivers/curvace_telemetry.c
# LIB_SRCS += drivers/flow.c
# LIB_SRCS += drivers/itg3200.c
# LIB_SRCS += drivers/radar_driver.c
# LIB_SRCS += drivers/radar_module_driver.c
# LIB_SRCS += drivers/xbee.c

# LIB_SRCS += control/stabilisation_copter.c
# LIB_SRCS += sensing/simulation.c

# LIB_SRCS += communication/acoustic.c
# LIB_SRCS += communication/acoustic_telemetry.c
# LIB_SRCS += communication/console.c
# LIB_SRCS += communication/onboard_parameters.c

Quick TODO:

@basil-huber : Console prints and debug prints
=> branch dev/debug

make console module to write usual variables into "things" (Serial, File, ...) with human readable format. This will replace the functions duplicated in print_util and data_logging
make dbg module for debug prints. It should be "global" or singleton or whatever to make the functions accessible everywhere without passing objects around.

@GregoireH : stm32 peripheral
=> branch dev/stm32

In hal/stm32, add drivers for stm32 peripheral like uart and i2c. They do not need to follow the interfaces of hal/common for now. But we will adapt them latter

Me: interfaces for sensors and ahrs
=> branch dev/ahrs

make interfaces for common sensors in drivers/
include sensors, imu and attitude filter in ahrs

@ndousse : simulation board
=> branch dev/sim

Isolate as much as possible the dynamic model of the simulation in a separate class, this should be swappable with another dynamic model (ex fixed wing)
Create simulated sensors according to interfaces in drivers/, (depends on dev/ahrs)
Modify simulation to contain the dynamic model and sensors. It exposes sensor values through the simulated sensor objects (the objects can have a pointer to the simulation for example).

@GregoireH @ndousse @basil-huber @mdouglas90
Thanks for your help with this pull request, which approaches 200 commits!
In the first comment, I summarized what was done, and what is left to do. Feel free to add things I forgot.
How should we proceed?

the avr32 project seems functional, but it has to be tested in flight
I think the hal/common interfaces are ok and we can start the implementation of hal/stm32
Emulation board is almost there

So should we implement all the unchecked boxes? Do many tests in flight in order to merge to master? Both?

IMHO, we can do testing and implementing in parallel.
I am planning to go to fly a few times next week (for pleasure), I could do some first flight tests. But since I am among those who are the least skilled in making diagnostics for the quad, it might be necessary that you guys do some testing as well.

I have issues with the simulator on this branch... If I can more or less fly around in attitude command mode, the velocity controller is not working and neither the automatic modes...
@jlecoeur could you confirm that the simulation is working nicely for you in every mode?

@ndousse I have issues as well. Your pull request solved the mav mode thing, but now in autonomous mode the quad just climbs forever... Also the estimated vertical velocity is inverted. I think this is related to my questions above about the barometer.

@ndousse @GregoireH Is there a way to quickly disable the emergency mode ?

TODO:
re-enable servo_telemetry, it was disabled by #150 (I added a checkbox in the first comment)
The simplest is to have a small servo_telemetry_t containing pointers to the servos, with two methods servo_telemetry_init and servo_telemetry_send.

I added a sample_projects folder, now the projects files of LEQuad (except the main) are common for all ports (currently avr32 and linux):
Library$ tree sample_projects/
sample_projects/
└── LEQuad
    ├── central_data.cpp
    ├── central_data.hpp
    ├── main_avr32.cpp
    ├── main_linux.cpp
    ├── mavlink_telemetry.cpp
    ├── mavlink_telemetry.hpp
    ├── tasks.cpp
    ├── tasks.hpp
    ├── proj_avr32
    │   ├── config/
    │   └── Makefile
    └── proj_linux
        └── Makefile

https://github.com/lis-epfl/MAVRIC_Library/commit/bd1a0d670bbc7eb373a3922e4fe7c171502dac76 solved the issue we observed in velocity control in simulation.
I tested waypoint navigation in simulation and it worked :+1:
A few points are still to fix:

servo telemetry.
This was removed in #150. I think we just need to add a structure servo_telemetry_t containing pointers to instances of Servo,  then modify servos_telemetry_mavlink_send to take a servo_telemetry_t as parameter instead of a servo_t, so not a big deal. @mdouglas90 do you want to do that?
joystick modes. Mat and I noticed that once in AUTO mode, it was not possible to come back to any other mode using the joystick. Also arming was not working, but disarming was. Can you cross-check that @ndousse ?

I just flight tested https://github.com/lis-epfl/MAVRIC_Library/commit/c940c5e810dc0d6df9fd97e6427464c9a7e2b39d everything works as expected in attitude, velocity, position hold and gps navigation.
Here are the unchecked boxes:

[ ]  file_fatfs_avr32

#147

[ ]  Simulation on hardware board

what should we do? I wonder if this feature is needed now that emulation works. If we need it, should it be a separate board class, or an option in the current class?

[ ]  Adapt all modules to use new dbg interface

There is a problem with usb on avr32: flush() leads to infinite loop when the usb is unplugged. This is an issue because we call flush() in dbg::endl.

I propose that we merge #147, then merge this pull request, and see later for onboard sim and dbg.

I believe that we should also update the MAV'RIC branch and rethink the way to use our different projects.
I believe that the sample_project folder will be updated with each pull request as we will do the modification accordingly ourselves.
Don't you think it would be useful to add the stm and avr makefile in travis?

MAVRIC project: sure, no need to have two times the sample project
travis: sure, let's open an issue

I just check the joystick and both on avr32 and on Linux, it works for me, I can change the modes back and forth without any problem.


Country code is  not consistent across all the APIs

For example : Country/Region value for south Korea in the timeseries API is
"Country/Region":"Korea,_South"
In the current API, the location is
"location":"Korea, South" (without underscore and with a space)
Can we use consistent naming of countries across all the APIs?

With API v2, most of the issues should be fixed. As for the name consistency, v2 will not change any given country names from the source data anymore (unlike API v1 where country names are modified).


Better Github Icon

As we agreed, please consider finding a better place for github repo.

Couldn't figure out how to do it.


Update Zephyr RTOS port for Zephyr 1.10 release

Zephyr 1.10 has switched to CMake-based build system (kind of like JerryScript, but the best way to think about it is of course as "different CMake-based build system").
Besides updating for new build system, the patch also removes some old stuff and updates for other changes in Zephyr.

Note that this shouldn't be merged before the official 1.10 release (ETA is beginning of December).

@SebastianBoe, @grgustaf, @jimmy-huang, @poussa : FYI.

Update: Makefile.zephyr was updated, CI now passes.

@akosthekiss : Can you please review Makefile.travis changes (as updating your https://github.com/jerryscript-project/jerryscript/pull/2102) ?

Updated for latest changes in Zephyr build system.

Zephyr 1.10 has been released, so this is ready for merge now.
@akosthekiss, @yichoi, @LaszloLango, @dbatyai : Can you please review?

Nice patch, I have just a few minor comments.

LGTM, but please squash the commits with an appropriate commit message.

Thanks! Originally, these commits were intended to be separate. If your request them to be squashed, let me do that in the separate PR: https://github.com/jerryscript-project/jerryscript/pull/2155


2 Legged auth

Hi,
I'm going to implement two legged authentication  into kong-oidc plugin.
The flow should work as follows:

Users request an access token from AS by using their credentials.
Users make a call into application behind kong with access token in  Authorization header.

Guessing that "require("resty.openidc").introspect(opts)" will do the job.
But besides that we need to put the userinfo into upstream. It can be done by obtaining ID token with user info or just call userinfo endpoint.
It can be done by using "openidc_call_userinfo_endpoint" (private) method in lua-resty-openidc library or create new method that does it inside library. Unfortunatelly there are no public methods in lua-resty-openidc that provides such functionality out of the box, so modifications will be needed in this case (at least make "openidc_call_userinfo_endpoint" public).
Also the "sub" field can be extracted from json provided by introspection method "require("resty.openidc").introspect(opts)" which provides access token fields in json format.
Then only sub field will be set as id into ngx.ctx.authenticated_consumer.id. X-Userinfo header will not be provided and getting userinfo will be on target application hands (This solution is better I think).
What do you think ?

In a two legged flow there is no user (Resource Owner in OAuth terms) involved. The OAuth client makes calls as itself. I don't think you can use Userinfo endpoint with a two legged flow, as there's no user. The subject field will be empty.
Generally a Relaying Party isn't involved in a two legged flow. Such calls shouldn't go through it. IMO, this plugin should be disabled for Kong APIs, which are used in two-legged flows.

There's some OIDC/OAuth terminology used incorrectly here but the first part of use case is already supported. A client operated by a user (Resource Owner) can obtain an access token using the Resource Owner Password Credentials flow at the AS (that's all out of scope of lua-resty-openidc though) and present that access token to lua-resty-openidc that can validate/introspect it.
Pushing the info resolved from the introspection upstream would typically be done in headers. That's also easy to do in Lua. This is all pure OAuth 2.0.
A userinfo endpoint is OIDC specific and this may not be available or known in a pure OAuth 2.0 play where an access token is presented to lua-resty-openidc.

@zandbelt
What about, when you have a Resource Servers behind Kong, which acts as a Relying Party? I would like to protect the resources there with UMA/role based authorization, which is handled by the AS. Is a RP in this case redundant, cause the Resource Server has already an authorization mechanism enabled?

I believe so. lua-resty-openidc doesn't support UMA. It can function as an OAuth 2.0 Resource Server on its own so components running behind Kong can offload that function (comparable to SSL termination). But if you have APIs sitting behind Kong that are OAuth 2.0 Resource Servers on their own that can validate access tokens, lua-resty-openidc doesn't add much. Relying Party is an OpenID Connect term which, I think, is not in play here.

I'm thinking about this open MR here #12. I have a feeling, that it's adding some functionality, which shouldn't be covered by a Relying Party. This MR adds an option to make calls, which already have a token (so there is already an client, who makes requests). This could be used, if there is an UMA Resource Server behind Kong and you want make requests with an RPT.
But.. wouldn't it be easier to simply disable the plugin for such API routes and keep only the reverse proxy functionality of Kong? If there's an OAuth protected client behind Kong, it will protect itself without any need for a RP on Kong.

UMA is not the scope of this plugin.

FIxed in version 1.0.3.


Howto setup Proxytable in Nuxt?

For eaxample, I have such code on Dev, which doesn't work in Prod obv
createArticle () {
      console.log(this.article)
      axios.post('http://localhost:7777/articles/', this.article)
        .then((res) => {
          this.message = res.data
        })
    }

Is there any option like this  - https://vuejs-templates.github.io/webpack/proxy.html

How to fix this in Prod?

Hi. You can use proxy module for that :)


test: Run GKE tests with NodePort in SNAT mode

As we bump the CI to GKE v1.15, it will bring kernel 4.19 which will automatically enable BPF DSR. Unfortunately, DSR packets are dropped by the fabric right now. Disable DSR in the overrides to make sure we are not hit by accident.

test-gke

Coverage increased (+0.02%) to 44.665% when pulling f707cf184753fd72a451cc36241038afa9846395 on pr/tgraf/disable-dsr-for-gke into 82bb57f95475c5f4e3997f62febba3ce89d7d351 on master.

With https://github.com/cilium/cilium/pull/11120, this is no longer necessary.


Error to install RAPIDS libraries into project

I am trying to install the accelarated pandas version from rapids but I am getting the following error:

If I try to use:  uv add cudf-cu12

I am getting the following error:
Building cudf-cu12==24.8.2
⠼ cudf-cu12==24.8.2                                                                                error: Failed to download and build `cudf-cu12==24.8.2`
  Caused by: Build backend failed to build wheel through `build_wheel()` with exit status: 1
--- stdout:

--- stderr:

nvidia_stub.error.InstallFailedError:
*******************************************************************************

The installation of cudf-cu12 for version 24.8.2 failed.

This is a special placeholder package which downloads a real wheel package
from https://pypi.nvidia.com. If https://pypi.nvidia.com is not reachable, we
cannot download the real wheel file to install.

You might try installing this package via

$ pip install --extra-index-url https://pypi.nvidia.com cudf-cu12

Here is some debug information about your platform to include in any bug
report:

Python Version: CPython 3.12.5
Operating System: Linux 4.18.0-477.27.1.el8_8.x86_64
CPU Architecture: x86_64
nvidia-smi command not found. Ensure NVIDIA drivers are installed.

*******************************************************************************
---

I tried to use pip too as suggested in the error: uv pip install --extra-index-url https://pypi.nvidia.com cudf-cu12

  × No solution found when resolving dependencies:
  ╰─▶ Because only the following versions of cudf-cu12 are available:
          cudf-cu12==23.6.0
          cudf-cu12==23.6.1
          cudf-cu12==23.8.0
          cudf-cu12==23.10.0
          cudf-cu12==23.10.1
          cudf-cu12==23.10.2
          cudf-cu12==23.12.0
          cudf-cu12==23.12.1
          cudf-cu12==24.2.0
          cudf-cu12==24.2.1
          cudf-cu12==24.2.2
          cudf-cu12==24.4.0
          cudf-cu12==24.4.1
          cudf-cu12==24.6.0
          cudf-cu12==24.6.1
          cudf-cu12==24.8.1
          cudf-cu12==24.8.2
      and all versions of cudf-cu12 have no wheels with a matching Python ABI tag, we can conclude that cudf-cu12<23.6.1 cannot be used.
      And because you require cudf-cu12, we can conclude that your requirements are unsatisfiable.

uv version: 0.40

Hi! The error is from the package build (as well as the hint about using pip). I think the relevant line is:
nvidia-smi command not found. Ensure NVIDIA drivers are installed.

Do you have that command?

Yeah, I was not activating CUDA before. I activate it now to have nvidia-smi available but the error still persists. I also noticed some SSL error from uv requests. Is there a way to update the certificates uv can access?

@lucaskbobadilla you can use --native-tls to use your system certificates.

Python 3.12 is not yet officially supported in the stable channel - switching to the pre-release version worked for me:
pyproject.toml
[project]
name = ""
version = ""
description = ""
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
  "cudf-cu12"
]

[tool.uv]
extra-index-url = ["https://pypi.anaconda.org/rapidsai-wheels-nightly/simple"]
index-strategy = "unsafe-best-match"
prerelease = "allow"

@cathaypacific8747 That worked for me


rename to stolostron

Signed-off-by: Yu Cao<EMAIL_ADDRESS>

/assign @qiujian16

No longer needed. Will do replace instead


Setup Advanced Cluster Security

Title of ticket:
Description
All active deployments are scanned by Advanced Cluster Security . All OCP project namespaces , which includes FOI Request Submission, FOI FLOW , FOI Reporting.
Assumption :

For FOI Document Review(Emerald) , we might need to create a separate devops task once the current set up work is done.

This task will generate a report for us indicating whether fixes need to be done on the existing project/namespaces, if yes those will another tasks as per that report - I have added that on DOD.

cc: @m-prodan , @lmullane
Dependencies
Are there any dependencies?
DOD

[ ] Analysis on the STRA requirement for Adv. Cluster Security and see whether we have a config. in place or need to get it done as per the Nick/Garry suggestions. Rocket chat with platform team ?
[ ]  Updates/Config on FOI FLOW
[ ]  Updates/Config on FOI Document review
[ ]  Update/config on FOI Reporting
[ ]  Update/config on FOI Request Submission - Does it already exists ?
[ ]  Confirm the set up, review with Team
[ ]  Do we need to create other tasks for Fixes , Review result of ACS Report ?

Revise ticket to setup ACS for Silver.
cc @abin-aot @m-prodan

Login -> https://acs.developer.gov.bc.ca/login

@sumathi-thirumani-aot, there any more work to be completed on the setup of ACS?
Looks like only the SonarCloud work is left/
cc @abin-aot

How to integrate SonarCloud in developer Studio,

Go to Visual studio code and install the extension "SonarLint".
Click on the connection mode -> Generate Token using the Git Account -> Paste the token .
Private Zenhub Image

For foi-flow, please use the exclusion rule instead of sources. The default will include all.


Infinite loop doesn't respect Ctrl-C

snowy-sunset-088328=>
do $$
begin
for i in 1..100 loop
insert into nikita select * from nikita;
end loop;
end;
$$;
^Cancel request sent

could be related to #623

cannot reproduce


Remove CDS_INFRA_GITX, CDS_SERVICE_GITX, CDS_ENV_GITX from docs

Harness Developer Pull Request
Thanks for helping us make the Developer Hub better. The PR will be looked at
by the CODEOWNERS.
What Type of PR is This?

[ ] Issue
[ ] Feature
[ ] Maintenance/Chore

If tied to an Issue, list the Issue(s) here:

Issue(s)

House Keeping
Some items to keep track of. Screen shots of changes are optional but would help the maintainers review quicker.

[ ] Tested Locally
[ ] Optional Screenshot.

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

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://65da9b4005596c6b66ae3900--harness-developer.netlify.app

@sribalij @SushrutHarness Is this one good to merge?


closeOnSelect  issue on year arrow click

I am using latest version 2.9.0. I use the closeOnSelect to close the date time picker after user select a date. But when I click the arrow to different year, date time picker is closed too. This is not good user experience. Currently, I only can leave the date time pick to open until the user click outside the picker to close it. Here is how I use it:
<Datetime defaultValue={this.state.defaultExpiration}
className="inputBox"
id="expirationTime"
ref="expirationTime"
closeOnSelect={true}
inputProps={{ref: (input) => {this.input = input;}}}
isValidDate={this.valid}/>
Do you have any work around or suggestion how to fix the issue I am facing?

Hello
Could you please use CodePen to create an example like http://codepen.io/simeg/pen/mEmQmP that shows your issue? I've tried to reproduce your problem in the simple example but could not.
Cheers,
Bren


chore: upgrade example to latest react-native version and fix the dependency issue

The react and react-native versions of the example/ app should have changed to the latest? They seem unchanged in the PR

The react and react-native versions of the example/ app should have changed to the latest? They seem unchanged in the PR

My mistake when copying files, just updated it.


Handle Thunderstore protocol

Links look something like ror2mm://v1/install/thunderstore.io/[author]/[package]/[version]/

Dummy forgot to close this in #27


Remove streamvbyte_static and explicit shared/static specification

CMake has own BUILD_SHARED_LIBS flag which allows to choose between static/shared library creation. So no need to specify it explicitly. Moreover it creates problems when using stremvbyte as a dependency.

Merged.


How to define the parameter schema

PR #20 added a parameter object, which is used to describe parameters for any authorization request using in, required, description, and schema fields. This aligns with the OpenAPI spec for [describing parameters]{https://swagger.io/docs/specification/describing-parameters/). For example, one could define the authorization request to Planetary Computer with the following:
"auth:schemes": {
    "plantetary_computer_auth": {
        "type": "signedUrl",
        "description": "Requires authorization from Planetary Computer",
        "flows": {
            "authorizationCode": {
                "authorizationApi": "https://planetarycomputer.microsoft.com/api/sas/v1/sign",
                "method": "GET",
                "parameters": {
                    "href": {
                        "in": "query",
                        "required": true,
                        "description": "HREF (URL) to sign",
                        "schema": {
                            "type": "string",
                        }
                    },
                    "duration": {
                        "in": "query",
                        "required": false,
                        "description": "The duration, in minutes, that the SAS token will be valid. Only valid for approved users.",
                        "schema": {
                            "type": "integer",
                        }
                    },
                    "_id": {
                        "in": "query",
                        "required": false,
                        "description": "Third party user identifier for metrics tracking.",
                        "schema": {
                            "type": "string"
                        }
                    }
                },
                "responseField": "href"
            }
        }
    }
}

My issue is that the schema field is currently defined as an optional object in the json schema. Replicating full support for Open API data models would be out of scope for this extension. But keeping the schema parameter how it is does not impose any standards on parameter schema definitions.
Perhaps a lightweight parameterSchema object is a good middle ground. The parameterSchema  object could include the following fields:

type
format
example
minimum
maximum
pattern

Open to comments/suggestions

Maybe just link to the JSON Schema draft-07 metaschema using a $ref?


an path error

When I run Plasmer, the following error happens. I installed Plasmer by conda.
mkdir: cannot create directory ‘/intermediate’: Permission denied
mkdir: cannot create directory ‘/results’: Permission denied
/home/jyzhang/softwares/Plasmer/scripts/Plasmer: line 116: /intermediate/TAP_All_flye.seqkit: No such file or directory
ERROR: seqkit didn't find any sequences! Please check your input file.

@Rainingfeeling Hello, I have the same issue. If you managed to solve it could you please let me know?

Hello @Rainingfeeling @Mona011 @SimranKushwaha ,
I'm sorry to hear you're encountering issues with Plasmer. To assist you better, could you please provide some additional information:
How exactly did you install Plasmer? (e.g., using Conda, from scratch, etc.)
What exact command(s) are you using when you encounter this error?
Understanding the specifics of your installation and the commands that lead to the error will help in diagnosing the problem and providing a more accurate solution. It’s also helpful to know whether you've attempted any troubleshooting steps on your own.
Thank you for your cooperation, and I look forward to helping you resolve these issues.

Hi, thanks for the tool.
I'm having the same issue as those above. Below are some details that might help:

Downloaded Plasmer with Conda (version:build:channel - 23.04.20:py310_1:iskoldt)
Command ran " Plasmer -g [INPUT_CONTIGS.FNA] -p PLASMER -d [ABSOLUTE_PATH_TO_PLASMERdb] -t 8 -l 0 -out [ABSOLUTE_PATH_TO_OUTDIR]
Error output:
"mkdir: cannot create directory ‘/intermediate’: Permission denied
mkdir: cannot create directory ‘/results’: Permission denied
/home/n123/miniconda3/envs/PLASMER/bin/Plasmer: line 116: /intermediate/PLASMER.seqkit: No such file or directory
ERROR: seqkit didn't find any sequences! Please check your input file."
I am running on a shared HPC and I do not have sudo/admin/root privileges (it seems that mkdir is trying to write to '/' which I don't have permissions to do)

Please let me know if I could provide any more information that could be useful. Thank you for your time.

Hi, thanks for the tool.
I had the same issue (downloaded Plasmer with Conda (version:build:channel - 23.04.20:py310_1:iskoldt)). From a quick look at the Plasmer code, it seemed like the "-o/--outpath" arguments were not being properly recognized, leading to attempts to mkdir at "/intermediate" and "/results" rather than at "${outpath}/intermediate" and "${outpath}/results." If you do not have sudo/root/admin privileges, you will get permission denied if you try to write files to "/"
It turns out that I used the argument "-out" instead of "-o" so I am making a note of this here in case someone else has a similar issue. I would recommend that Plasmer throw an error specifying an invalid argument in this case (if this hasn't already been accounted for). Thank you!

Hi, thanks for the tool.
I had the same issue (downloaded Plasmer with Conda (version:build:channel - 23.04.20:py310_1:iskoldt). From a quick look at the Plasmer code, it seemed like the "-o/--outpath" arguments were not being properly recognized, leading to attempts to mkdir at "/intermediate" and "/results" rather than at "${outpath}/intermediate" and "${outpath}/results." If you do not have sudo/root/admin privileges, you will get permission denied if you try to write files to "/"
It turns out that I used the argument "-out" instead of "-o" so I am making a note of this here in case someone else has a similar issue. I would recommend that Plasmer throw an error specifying an invalid argument in this case (if this hasn't already been accounted for). Thank you!

Hi @nikhilg123 , thank you for the effort!
I will definitely look into it, thank you for your advice.


Use pnpm as package manager

Notes:

Vitest 0.28.x fails with pnpm, so this PR sticks to 0.27.3.
This might complicate the CI a bit for rather little benefit, especially because Dependabot doesn’t support pnpm yet.

Well, apparently the changes for the Node CI are small and easy, and don’t increase CI time.
Awaiting for Dependabot to support pnpm, it should still emit alerts based on the package.json analysis, but it won’t automatically open PRs. I’m fine for this at the moment, but I’ve still shorten the Dependabot interval from monthly to weekly in order to see how things go. Then I’ll revert it to monthly.

Description updated. Merging.


Support target in firebase.json configuration.

Is your feature request related to a problem? Please describe.
We have one source base deployed into two firebase projects as described here each with two sites. firebase.json includes a target which identifies the site after running firebase target:apply hosting TARGET_NAME RESOURCE_IDENTIFIER.
Describe the solution you'd like
We'd like to specify target in svelte.config.cjs instead of hostingSite:
module.exports = {
	preprocess: sveltePreprocess(),

	kit: {
		adapter: firebaseAdapter({firebaseJson: '../firebase.json', target: "fungi"}),

Describe alternatives you've considered
N/A
Additional context
N/A

@kfowler Is target strictly used instead of site in firebase.json, or are there situations whereby both can be used in a single site's config?

You cannot have both site and target in the firebase.json so whatever key we go with, you could just check for either target or site. target is the way that the firebase docs generally want you to work with multiple hosting sites, from my experience working with it.
But to match the firebase.json schema, it might make sense to include both site and target, just like firebase does and throw an error if the user includes both.

I am working on a solution to this now, sorry for the delay.

The adapter should now read the target field from your firebase.json configs.
I have noted in the Caveats section that while we will use the target value to identify the Hosting config, you cannot use Deploy Targets to deploy to Firebase as it will not deploy Functions, which is obviously required with this SSR solution.


Add way to trigger render from page that is being rendered

The delay in here doesn't respect the onLoadFinished event.
Maybe we have to set up the delay after that got triggered.
@chriskinsman what do you think. That's what you did in your pr.

Yep.  It should be post onLoadFinished.

👍
I'll cherry-pick those tests after you've commited.
https://github.com/marcbachmann/node-html-pdf/pull/173/files

Thinking it might make sense to just close this pull request and I will submit a new one with this functionality since it conflates the delay and the page triggered render...

Yep, you can work on the other branch (also a pr) if you like.
https://github.com/marcbachmann/node-html-pdf/tree/render-delay

Ah, I didn't get that you renamed that issue title. Was confused a bit.
Feel free to open a new pr.

I think my new PR #263 solves this


Cannot craft in occultism crafter

cannot craft in occultism storage
cannot craft using emi specifically, i can drag and drop stuff normally and that still works, but not the shift click crafting
https://github.com/user-attachments/assets/185c2856-45c7-47f5-a0c9-775102467c9c

Please provide the information the "bug report" template requires, especially the versions of minecraft and occultism, and the mod list or mod pack.

I'm also having this issue.

Occultism Version: occultism-1.21.1-neoforge-1.161.0
OS: Windows
Minecraft Version: 1.21.1
Modpack Link and Version, or list of mods: https://www.curseforge.com/minecraft/modpacks/craftoria

In short, the dimensional matrix doesn't autofill recipes taken from EMI which is shown in OP's video

thanks! Managed to reproduce it, it seems it only happens on servers

thanks! Managed to reproduce it, it seems it only happens on servers

Yeah I play on a server with a few buddies. Just a small server I made for my friends.


[BUG] Missing datapoints in EMFLoggingMeterRegistry

Describe the bug
when integrating with fluent-bit, there is missing metric data points occasionally.
To Reproduce
Steps to reproduce the behavior:
A cloudformation template:
AWSTemplateFormatVersion: "2010-09-09"
Description: "Template to deploy and monitor Data Prepper on ECS Fargate tasks"
Resources:
  FargateTask:
    Type: AWS::ECS::TaskDefinition
    Properties:
      NetworkMode: awsvpc
      Family: data-prepper-emf-metrics
      TaskRoleArn: arn:aws:iam::531516510575:role/ecsTaskExecutionRole
      ExecutionRoleArn: arn:aws:iam::531516510575:role/ecsTaskExecutionRole
      Cpu: 1024
      Memory: 8192
      RequiresCompatibilities:
        - "FARGATE"
      ContainerDefinitions:
        - Name: data-prepper-poc
          Image:<PHONE_NUMBER>75.dkr.ecr.us-east-1.amazonaws.com/data-prepper-poc:EMF-METRICS-LOGGING-POC
          MemoryReservation: 2048
          Essential: true
          PortMappings:
            - ContainerPort: 21890
              HostPort: 21890
              Protocol: tcp
            - ContainerPort: 2021
              HostPort: 2021
              Protocol: tcp
            - ContainerPort: 4900
              HostPort: 4900
              Protocol: tcp
          LogConfiguration:
            LogDriver: awsfirelens
            Options:
              Name: kinesis_streams
              Match: emf-DataPrepper
              log_key: log
              stream: MetricLogDataStream-dev-us-east-1
              region: us-east-1
          Command:
            - /bin/bash
            - -c
            - |
              echo $PIPELINES_YAML | base64 -d - | tee /usr/share/data-prepper/pipelines/pipelines.yaml
              echo $DATA_PREPPER_CONFIG_YAML | base64 -d - | tee /usr/share/data-prepper/config/data-prepper-config.yaml
              bin/data-prepper
          Environment:
            - Name: PIPELINES_YAML
              Value:
                Fn::Base64: |
                  log-pipeline:
                    source:
                      http:
                        health_check_service: true
                    processor:
                      - date:
                          from_time_received: true
                          destination: "@timestamp"
                    sink:
                      - stdout:
            - Name: DATA_PREPPER_CONFIG_YAML
              Value:
                Fn::Base64: |
                  ssl: false
                  metricRegistries:
                    - "EmbeddedMetricsFormat"
                    - "CloudWatch"
                  metricTags:
                    serviceName: test-emf
                    accountId:<PHONE_NUMBER>75
        - Name: log_router
          Image: public.ecr.aws/aws-observability/aws-for-fluent-bit:init-latest
          MemoryReservation: 50
          Essential: true
          FirelensConfiguration:
            Type: fluentbit
            Options:
              config-file-type: "file"
              config-file-value: "/fluent-bit.conf"
          LogConfiguration:
            LogDriver: awslogs
            Options:
              awslogs-group:<PHONE_NUMBER>75/test-log-pipeline-firelens-event-logs
              awslogs-region: us-east-1
              awslogs-stream-prefix:<PHONE_NUMBER>75/test-log-pipeline-firelens-event-logs
              awslogs-create-group: true
          Environment:
            - Name: FLUENT_BIT_CONF
              Value:
                Fn::Base64: |
                  [INPUT]
                    Name        tcp
                    Listen      <IP_ADDRESS>
                    Port        25888
                    Chunk_Size  32
                    Buffer_Size 64
                    Format      none
                    Tag         emf-DataPrepper
                  [FILTER]
                    Name                record_modifier
                    Match               data-prepper-poc*-firelens*
                    Record              resource_id<PHONE_NUMBER>75/test-log-pipeline
                  [OUTPUT]
                    Name                cloudwatch
                    Match               data-prepper-poc*-firelens*
                    region              us-east-1
                    log_key             log
                    log_group_name      pepper-poc-logs
                    log_stream_prefix   pepper-poc-logs
                    auto_create_group   true
                  [OUTPUT]
                    Name                cloudwatch
                    Match               emf-DataPrepper
                    region              us-east-1
                    log_key             log
                    log_group_name      pepper-metric-logs
                    log_stream_prefix   pepper-metric-logs
                    auto_create_group   true
                    log_format          json/emf
          Command:
            - /bin/bash
            - -c
            - |
              echo $FLUENT_BIT_CONF | base64 -d - | tee /fluent-bit.conf
              echo -n "AWS for Fluent Bit Container Image Version "
              cat /AWS_FOR_FLUENT_BIT_VERSION
              exec /fluent-bit/bin/fluent-bit -e /fluent-bit/firehose.so -e /fluent-bit/cloudwatch.so -e /fluent-bit/kinesis.so -c /fluent-bit/etc/fluent-bit.conf

deploy the template yields ECS task definition that one can create a service in an ECS cluster
Expected behavior
No missing data
Screenshots

Environment (please complete the following information):

OS: [e.g. Ubuntu 20.04 LTS]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

@chenqi0805 , Is Data Prepper logging any errors indicating any part of the problem here?

No error in data-prepper probably b/c the logs are at debug level in https://github.com/awslabs/aws-serverless-metrics-publisher

Closed via #2467


[Feature Request] Capture / replace for Custom Label patterns

The new Custom Labels feature is great, but it lacks basic replace functionality.
For example, I have a this pattern to reduce the visual noise of index.* files:
"workbench.editor.customLabels.patterns": {
  "**/index.*": "${dirname}/.${extname}"
}

This works in general, but what I want is to omit index. So, for example, I have this pattern in my files:

folder

index.model.ts
index.model.old.ts

These both end up looking like folder/.ts. But that's not what I want, I want folder/.model.ts and folder/.model.old.ts.
Proposal
Allow glob capture groups.
Example
"workbench.editor.customLabels.patterns": {
  "**/index(.*)": "${dirname}/$1"
}

We are planning on improving ${extname} and ${filename} for files with multiple extensions. We are tracking this here: #210166
For the time being we are not planning on adding capture groups as supporting them will impact performance.
Closing this issue for this #210166


add uninstall job labels to the uninstall pod as well

I didn't see a test for the install pod labels, so I'm thinking this doesn't rise to the level of "needs a test." Let me know if that's incorrect.


authentication part is completed in this commit. that include signin …

…signup and autherisation.

autherisaction and authentication part is completed

freinds.ts file is recovered


Change how no-arg constructor is handled internally in Variant.

Bugsquad edit: Fully fixes #6977.

Thanks!


[BUG] Footer is not consistent between pages.

Describe the bug
blog's footer mentions Elasticsearch
https://opensearch.org/blog/

Normal footer does not

This is coming from _includes/footer_legal.html
line 2 has a templating script that checks whether a variable "notice" is set to true. And if so, we display the Elasticsearch disclaimer.

Expected behavior
Should this be here? I do not know.
Why are we applying it to the blog page and not to other pages?
Screenshots
No response
To Reproduce

Go to '...'
Click on '....'
Scroll down to '....'
See error

Additional Details
Plugins
Please list all plugins currently enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):

OS: [e.g. iOS]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

We'll be spec'ing out a new footer. Let's not forget the content here.

Solved by #3157


Website language

@bbest (FYI @geocoug): I've revised the website text for the Projects, Regulatory Diagram, Interactions, and About pages (#18).  A couple of notes/questions:

I was unable to revise the language in the mgt.Rmd/render mgt.Rmd for the Management page.  The file is currently read only.  @bbest - is this another permissions thing or do you possibly have the file open?
I will revise the language on the Shiny pages next week.

Additionally, I revised the Projects page with the most recent changes requested by Sharon for PacWave S, by Grace for Portsmouth Memorial Bridge, and Zach for RITE (#19). I noticed that when you click on the icon for an active project in the map, the date range now lists the end date as the current date, rather than "ongoing" --> I thought we wanted to keep that as "ongoing"?  Regardless, the html_popup variable in the sites.csv file needs to be revised in the data handling script is to prevent the current date from formatting as "3/4/2021".

Fixed permissions for mgt.Rmd with extra explanation in https://github.com/mhk-env/mhk-env_shiny-apps/issues/16#issuecomment-796229756.

Perhaps next steps: finish edits on mgt.Rmd and consistent left alignment.


Tweak area weighting regrid: reorder variables

Reorder some of the variables to be nearer their use in the code.
This is preparatory work for refactoring weighting calculations.

Thanks @SciTools/mo-read.
Slightly more logical, but very small change.  Awaiting the big + tricky one !


Retrieve highlight matches from Battlefy

Use the Battlefy API to retrieve the highlighted match from a bracket to display next on stream.

Look for
"isMarkedLive": true

via Stages API endpoint

Added in PR #25


continue showing video with the birth view in the same time

after runing , after puting 8 point in the first frame , it showing just the birth view and the image    destroy it self  , i want to continue showing video with the birth view in the same time, how can be do it .

with cv2.imshow('Bird Eye View', bird_image) add one more line cv2.imshow('View', img). You can view both like this.


CPLP-1963 application checklist

In this PR CPLP-1963 & CPLP-1964 are resolved.
⚠ Please do not merge this PR until version 1.0.0 was created ❗

⚠ Please do not merge this PR until version 1.0.0 was created ❗

I am closing this PR because all changes in PR #72  are included


Add kelvin/brightness_pct alternatives to light.turn_on

Description:
The existing color_temp (in mired) and brightness (arbitrary 8-bit scale) parameters to light.turn_on usually require calculations that most people cannot do in their head.
This PR adds alternative and well-known ways to specify white temperature (kelvin) and brightness (brightness_pct).
I guess the best way to express brightness would be with a calibrated unit like lumen but I do not see any way to provide that.
Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.github.io#<home-assistant.github.io PR number goes here>
Example entry for configuration.yaml (if applicable):
[...]
      service: light.turn_on
      entity_id: group.basement
      data:
        kelvin: 3000
        brightness_pct: 40

Checklist:
If user exposed functionality or configuration variables are added/changed:

[ ] Documentation added/updated in home-assistant.github.io

If the code does not interact with devices:

[X] Local tests with tox run successfully.
[X] Tests have been added to verify that the new code works.

@balloob profiles are realy cool. I hope we do that not remove 👍

Alrighty, looks good 🐬


HTMLElement click() missing

In previous versions of the library there was a click() method to for HTMLElement to match this method from javascript: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/click
But in the latest version of the library it has been removed. How should we programmatically trigger a click on an element now?

I am facing the same issue. The click() method disappears in version 1.0.0 but no mention about the deprecation.


double round to x decimal places

It would be quite useful to have a built-in, optimized way of rounding a double to x decimals, such as :
2.3666.roundTo(2); // 2.37.

The reason there is no such functionality is two-fold:

It isn't there in JavaScript.
It's somewhat under-defined because the number you round to might not be representable as a double.

If you take 0.3125 and round it to two decimals, you get the double 3.1, except the real value of that double is
0.309999999999999997779553950749686919152736663818359375.
It's probably acceptable. Since the operation rounds, it will likely give the value you expect, even if neither the source nor the target value is directly representable as a double (truncating would be worse).
You can get the same effect today by doing double.parse(number.toStringAsFixed(n)), but I guess your request is to be more efficient than that. It'll likely need to do much of the same operations as toStringAsFixed in order to find the first n decimal digits, then convert those decimal digits back to a double value. That will still save allocating an intermediate string.
(And in JavaScript, it will probably just be parseFloat(number.toFixed(n)) anyway.)


[Anchor-244] Implement the webhook callback in the event processor

PR Checklist
PR Structure

[ ] This PR has reasonably narrow scope (if not, break it down into smaller PRs).
[ ] This PR avoids mixing refactoring changes with feature changes (split into two PRs
otherwise).
[ ] This PR's title starts with name of package that is most changed in the PR, ex.
paymentservice.stellar, or all or doc if the changes are broad or impact many
packages.

Thoroughness

[ ] This PR adds tests for the most critical parts of the new functionality or fixes.

What
Implement the SEP-24 and SEP-31 callback function

Use OkHttp3 client
sign the ClientStatusCallbackHandler
OkHttp will try to retry a request when:
-- The error is a connection error and there is alternative route
-- The request was attempted but the response indicates it is safe to retry and the request is repeatable

Why
[TODO: Why this change is being made. Include any context required to understand the why.]
Known limitations
[TODO or N/A]

Something went wrong with PR preview build please check

Reference Server Preview is available here:https://anchor-ref-pr988.previews.kube001.services.stellar-ops.com/SEP Server Preview is available here:https://anchor-sep-pr988.previews.kube001.services.stellar-ops.com/

Reference Server Preview is available here:https://anchor-ref-pr988.previews.kube001.services.stellar-ops.com/SEP Server Preview is available here:https://anchor-sep-pr988.previews.kube001.services.stellar-ops.com/

Reference Server Preview is available here:https://anchor-ref-pr988.previews.kube001.services.stellar-ops.com/SEP Server Preview is available here:https://anchor-sep-pr988.previews.kube001.services.stellar-ops.com/

Reference Server Preview is available here:https://anchor-ref-pr988.previews.kube001.services.stellar-ops.com/SEP Server Preview is available here:https://anchor-sep-pr988.previews.kube001.services.stellar-ops.com/

Reference Server Preview is available here:https://anchor-ref-pr988.previews.kube001.services.stellar-ops.com/SEP Server Preview is available here:https://anchor-sep-pr988.previews.kube001.services.stellar-ops.com/

Something went wrong with PR preview build please check

Reference Server Preview is available here:https://anchor-ref-pr988.previews.kube001.services.stellar-ops.com/SEP Server Preview is available here:https://anchor-sep-pr988.previews.kube001.services.stellar-ops.com/

Reference Server Preview is available here:https://anchor-ref-pr988.previews.kube001.services.stellar-ops.com/SEP Server Preview is available here:https://anchor-sep-pr988.previews.kube001.services.stellar-ops.com/


The accuracy following esc50 Recipe is very low

There must be some mistake from my side. Can someone help me identify it?
This is how I'm training:
!python -W ignore /content/ast/src/run.py --model ast --dataset esc50 \   --data-train /content/data/datafiles/esc_train_data_1.json --data-val /content/data/datafiles/esc_eval_data_1.json --exp-dir /content/expdir/fold1 \   --label-csv /content/ast/egs/esc50/data/esc_class_labels_indices.csv --n_class 50 \   --lr 1e-5 --n-epochs 25 --batch-size 12 --save_model False \   --freqm 24 --timem 96 --mixup 8 --bal None \   --tstride 10 --fstride 10 --imagenet_pretrain True --audioset_pretrain True

Hi there,
What I noticed is that mixup should be in the range of [0-1], so 8 is out of range. You also used a smaller batch size, which might also have some impact (in that case, you need to use a smaller learning rate). The learning rate scheduler is based on the epochs, so when you decrease the batch size, you should also change the learning rate scheduler. There might be some other things, the model is not trained at all.
Anyway, the easiest way to reproduce the result is using the parameters in the recipe, if you don't have enough GPU memory (we use 4 * 12GB GPUs), it is better to set the tstride and fstride = 16 (which saves a lot of GPU memory) and keep other things unchanged.  You won't get the same result as in the paper for larger strides, but it should be similar.
-Yuan

Also, are you using our prep_data.py? It converts the audios to 16kHz sampling rate, the original is 44.1kHz.

Hello Yuan, Thanks for the quick reply.

Also, are you using our prep_data.py? It converts the audios to 16kHz sampling rate, the original is 44.1kHz.

Yes I used the prep_data.py without changing anything.
Changing the mixup to the default value helped getting the accuracy higher.
Thanks a lot.

Great to know. Also you can compare your log with our log file to see if everything is going well.

Yes, I did compare it with the log files you provided. Thanks


Let JupyterHub Dashboard's "Users per node" report empty nodes as well

The JupyterHub Dashboard's "Users per node" panel should also report nodes with 0 users on them I think, otherwise one may think the k8s cluster doesn't have idle nodes when it does.
Example situation
The dashboard panel reports very few nodes.

But there are plenty of nodes (nodes with labels associated with being a user node etc), just that they don't have users on them.

Related

https://github.com/jupyterhub/grafana-dashboards/issues/67

I think this is also a bug that relates to a bug of reporting 1 user when its in practice 0, just because there is one entry at one point in time reporting 1 followed by "no value".
Here is what I observed - note how the lines change but nothing ever goes below 1

I think the issue is with the query, which use pod info to acquire node info, instead of using node info to then count pods.
sum(
    # kube_pod_info.node identifies the pod node,
    # while kube_pod_labels.node is the metrics exporter's node
    kube_pod_info{node!=""}
    * on (namespace, pod) group_left()
  group(
    kube_pod_labels{label_app="jupyterhub", label_component="singleuser-server", namespace=~"$hub"}
  ) by (label_component, pod, namespace)
) by (node)


Merge pull request #2 from aelassas/master

Update to latest

I have a problem with running the WindowsService in DEBUG mode, but don't have a clue whats wrong.
https://www.screencast.com/t/c3luPWusB

Try to update to the latest version, clean your project then press F5.
Can you post the stack trace?

No... Updated to your last, Rebuild all, Run WindowsService with "DEBUG".... and get's this error/stack trace..
ved Wexflow.Clients.WindowsService.WexflowWindowsService..ctor()
ved Wexflow.Clients.WindowsService.Program.Main(String[] args) i C:\Work\WexFlow\Wexflow\src\Wexflow.Clients.WindowsService\Program.cs:linje 12
ved System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
ved System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
ved Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
ved System.Threading.ThreadHelper.ThreadStart_Context(Object state)
ved System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
ved System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
ved System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
ved System.Threading.ThreadHelper.ThreadStart()

I changed the way we debug wexflow windows service (see the commit). We don't need the debug keyword anymore. just press F5 and we enter in debug mode.
Update to this version and let me know.

Hi.
I have pulled you new version, but the debugger says the same.

Did you update C:\Wexflow\Wexflow.xml
<?xml version="1.0" encoding="UTF-8" ?>
<Wexflow>
	<Setting name="workflowsFolder" value="C:\Wexflow\Workflows" />
	<Setting name="trashFolder" value="C:\Wexflow\Trash" />
	<Setting name="tempFolder" value="C:\Wexflow\Temp" />
	<Setting name="xsd" value="C:\Wexflow\Workflow.xsd" />
	<Setting name="tasksNamesFile" value="C:\Wexflow\TasksNames.json" />
	<Setting name="tasksSettingsFile" value="C:\Wexflow\TasksSettings.json" />
</Wexflow>

And check that the file is unlocked. (right click properties)
And put the files TasksNames.json and TasksSettings.json in C:\Wexflow. (you can find them in samples/Wexflow).

Yes - my friend - You hit it spot on. :-)
These lines was in my development environment but missing in the XML file the debugger used..

THANKS :-)


Add ChakraEngine for GlobalObject lifetime management

See ChakraFull PR: https://devdiv.visualstudio.com/DevDiv/Chakra/_git/Chakra/pullrequest/122285?_a=overview


HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2)

I'm implementing a HealthCheck for a container that will run in a cluster.
I followed the best-practices documented here:

https://github.com/grpc-ecosystem/grpc-health-probe
https://github.com/grpc/grpc/blob/master/doc/health-checking.md

When I run the grpc-health-probe from a nearby instance in the same subnet on a container with this code, I get the correct response: SERVING.
But when I run curl on it, I get this (note the HealthCheck is implemented on port 8499)
ubuntu@ip-10-0-0-128:~$ curl -v -H "Content-Type: application/grpc" http://<IP_ADDRESS>:8499/grpc.health.v1.Health/Check --http2-prior-knowledge
*   Trying <IP_ADDRESS>:8499...
* TCP_NODELAY set
* Connected to <IP_ADDRESS> (<IP_ADDRESS>) port 8499 (#0)
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x55d783825860)
> GET /grpc.health.v1.Health/Check HTTP/2
> Host: <IP_ADDRESS>:8499
> user-agent: curl/7.68.0
> accept: */*
> content-type: application/grpc
>
* Connection state changed (MAX_CONCURRENT_STREAMS ==<PHONE_NUMBER>)!
* HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2)
* stopped the pause stream!
* Connection #0 to host <IP_ADDRESS> left intact
curl: (92) HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2)

My question: why the curl error shown above?
The protobuf definition is exactly that same as referenced in the health-checking.md document.
The python implementation code is listed below. It is running on Ubuntu/R20 instance in AWS ECS.
import logging
from concurrent import futures

import grpc

import healthcheck_pb2
import healthcheck_pb2_grpc

class HealthServicer(healthcheck_pb2_grpc.HealthServicer):

    def Check(
            self,
            request: healthcheck_pb2.HealthCheckRequest,
            context: grpc.aio.ServicerContext) -> healthcheck_pb2.HealthCheckResponse:
        return healthcheck_pb2.HealthCheckResponse(status=healthcheck_pb2.HealthCheckResponse.ServingStatus.SERVING)

def serve() -> None:
    server = grpc.server(futures.ThreadPoolExecutor(max_workers=10))
    healthcheck_pb2_grpc.add_HealthServicer_to_server(HealthServicer(), server)
    listen_addr = '[::]:8499'
    server.add_insecure_port(listen_addr)
    logging.info("HealthCheck::Starting server on %s", listen_addr)

    # start the gRPC server to handle requests
    server.start()

    # block the calling thread until the server terminates
    server.wait_for_termination()

There are a few problems here, but let me start by cutting to the chase with the working curl invocation:
curl -v -XPOST \
  -H "Content-Type: application/grpc" \
  -H "TE: trailers" \
  http://<IP_ADDRESS>:8499/grpc.health.v1.Health/Check \
  --http2-prior-knowledge \
  --data @<(printf '\x0\x0\x0\x0\x0')

Let's go over the differences one by one.
POST
gRPC uses the HTTP/2 POST method only. Many HTTP proxies cache responses to GET requests. For RPC, this is unacceptable since RPCs are not idempotent by default.
Trailers
The gRPC wire protocol requires trailers. HTTP/2 requires that clients advertise their ability to handle trailers with the transfer encoding header "TE".
Request Body
This gets complicated since it's all binary and it's dependent on the exact proto. Follow along with these resources:

The health check protocol buffer
The gRPC wire protocol
The Protocol Buffer Serialization Format

The relevant BNF from the gRPC wire protocol is here:
Length-Prefixed-Message → Compressed-Flag Message-Length Message
Compressed-Flag → 0 / 1 # encoded as 1 byte unsigned integer
Message-Length → {length of Message} # encoded as 4 byte unsigned integer (big endian)
Message → *{binary octet}

We want to send an uncompressed message and the contents will be an instance of HealthCheckRequest with service set to "" (to represent "all services"). Luckily for us, "" is the default value for the string type, so we can omit it from the serialization entirely. So our protobuf message will be zero bytes long.
Going back to our date frame, we'll need 1 zero byte to indicate an uncompressed body. Then, 4 zero bytes to indicate a message length of 0. This is how I arrived at printf "\x0\x0\x0\x0\x0".

But I view all of this as more or less an academic exercise. Is there any reason you're not using a tool like grcurl?

Thank you for the excellent response.
Using the command you provided (and updating to the latest container IP address), we get the following:
ubuntu@ip-10-0-0-128:~$ curl -v -XPOST \
>   -H "Content-Type: application/grpc" \
>   -H "TE: trailers" \
>   http://<IP_ADDRESS>:8499/grpc.health.v1.Health/Check \
>   --http2-prior-knowledge \
>   --data @<(printf '\x0\x0\x0\x0\x0')
Note: Unnecessary use of -X or --request, POST is already inferred.
*   Trying <IP_ADDRESS>:8499...
* TCP_NODELAY set
* Connected to <IP_ADDRESS> (<IP_ADDRESS>) port 8499 (#0)
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x560dc4861860)
> POST /grpc.health.v1.Health/Check HTTP/2
> Host: <IP_ADDRESS>:8499
> user-agent: curl/7.68.0
> accept: */*
> content-type: application/grpc
> te: trailers
> content-length: 0
>
* Connection state changed (MAX_CONCURRENT_STREAMS ==<PHONE_NUMBER>)!
< HTTP/2 200
< content-type: application/grpc
< grpc-status: 12
< grpc-message: "b'/grpc.health.v1.Health/Check'" requires exactly one request message.
<
* Connection #0 to host <IP_ADDRESS> left intact

I only just heard about grpcurl this afternoon and will install it later today to test it.
Do you have any idea why the grpc service is returning with a grpc-status of 12 ("UNIMPLEMENTED")?
Thank you again!!
-K

"b'/grpc.health.v1.Health/Check'" requires exactly one request message.

This error message indicates that the server was unable to successfully read a data frame from the request. In other words, there's something going wrong with the --data flag. The "content-length: 0" portion of your request also confirms this.
It's possible that your shell does not fully implement file-like redirection. Maybe try using printf to first output to an actual named file and using that?

Hello @gnossen !
I have the same error as @kevinashaw : grpc-message: "b'/helloworld.Greeter/SayHello'" requires exactly one request message.
To give context of my issue, I was doing some stuff with envoy, grpc-web filter, and a Python gRPC server, and I couldn't get a response from envoy (requires exactly one request message). So I decided to debug manually with curl my gRPC server and notice the same error.

@norbjd My response is the same as above. @kevinashaw 's log above clearly shows that 0 bytes are sent in the payload, which is incorrect. It should be sending 5 bytes, as I explain above. The problem is likely that the shell being used does not support file=-like redirection, so the workaround I explain above should be sufficient.


Playlist causes bot to freeze/crash

Hi, Sorry I keep making issue tickets :/
I create playlist - /playlist create (Name) Rock (public) True
Then I - /playlist add-music (playlist-name) Rock (name) https://open.spotify.com/playlist/1R2yVdmsa5R8wLBr2aEKHn
I can see they are in the playlist by running - /playlist list (name) Rock
All music shows. So I try to play the playlist and I it freezes, so I check terminal and get this error.
"/home/container/node_modules/discord-player/dist/Structures/PlayerError.js:28
Error.captureStackTrace(this);
^
InvalidTrack: [InvalidTrack] invalid track
at new PlayerError (/home/container/node_modules/discord-player/dist/Structures/PlayerError.js:28:15)
at Queue.addTrack (/home/container/node_modules/discord-player/dist/Structures/Queue.js:235:19)
at Timeout._onTimeout (/home/container/commands/play.js:95:7)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
createdAt: 2022-08-31T16:35:27.122Z,
statusCode: 'InvalidTrack'
}
Node.js v17.9.1"
Have you experienced this issue? Can I not add playlist in this way?

I can play the playlist if I do it this way - /play normal https://open.spotify.com/playlist/1R2yVdmsa5R8wLBr2aEKHn

ı fixed. THANK YOU.
updated files:
play.js
playlist.js


zstd-safe causing build to fail

Due to some dependency issue with a zstd dependency, Marble fails to build.
To replicate
Clone Marble, and just run cargo build --release
Error message

update to lastest, and do some modify that would solve.


Review the cmap compaction code

Review exactly what is in the compacted cmap data in the base font.

perhaps could do a sparse cmap:

make a segment per codepoint
repeat a single mapping (would compress well)
to make fixup faster put in a real value every N (say 256) values
-- would require the glyph be included; every 256 => 0.4% => 4M -> 16K
-- would want the header to list which of the chars have glyphs


override Stream methods that accept Span and Memory

This avoids allocations and copies in the Stream base class.

See @brantburnett 's changes. If there is more you wish done, please open a new issue, or submit a PR.


Add Decision Record Entries

Add proposal for rollback
DR for migrating to custom settings

Codecov Report

Merging #477 (cd3b810) into develop (b8e6363) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop     #477   +/-   ##
========================================
  Coverage    81.06%   81.06%
========================================
  Files           33       33
  Lines         1125     1125
  Branches       198      200    +2
========================================
  Hits           912      912
  Misses         213      213

Continue to review full report at Codecov.

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


Add java support for automation API

Hello!

Vote on this issue by adding a 👍 reaction
If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

Issue details

Automation API is not supported in Java.
This issue is to add that support.
Affected area/feature

Automation API.

Duplicate of https://github.com/pulumi/pulumi-java/issues/965


Add field selectors

<EMAIL_ADDRESS>on 9 Aug 2013 at 10:53:
`fields` query param allows API backend to trim down the returning entity,
valuable for working with resources with large number of attributes. Also note
that some APIs ignore unnecessary calls that may improve performance.

func (c *XCall) Fields(fields string) *XCall {
	c.opt_["fields"] = fields
	return c
}

Sample for drive.files.list with `items/id,nextPageToken`:
GET https://www.googleapis.com/drive/v2/files?fields=items%2Fid%2CnextPageToken

Successfully auto-migrated from code.google.com:
https://code.google.com/p/google-api-go-client/issues/detail?id=38

Fixed by https://github.com/google/google-api-go-client/commit/41bebb44517bb8dc703677d642e4ee6dc79a6ff4
Closing.


Cosmos DB Sample Issue

Section link1

Reason:
TypeError: Session.request() got an unexpected keyword argument 'priority_level'.
Suggestion:
Update code to priority.
@rohit-ganguly , @lmazuel , @kyle-patterson , @KrzysztofCwalina , @annatisch  for notification.

PR has been merged, thanks @jerryshia for catching this!


[5.2] [Proposal] Enhance @each/renderEach to allow additional data to be passed along with the primary object being looped

I had an issue where I'd like to have passed additional data to the view file when performing an @each loop, but didn't want to push that data into the object I was passing the loop. Normally you can pass a view this array of data, but the @each way of including is limited to what can be passed in the normal fashion.
I've worked out a simple (and backwards compatible way) of doing this:
If you'd like to pass additional data, when calling your @each you'd structure it like this:
@each(['my-view-file' => ['foo' => 'bar']], $mainObject, 'mainObject')

Instead of the view file being a string, it'd be the key in an array. The value of that array key would be your array of parameters. Leaving the view file as a pure string would keep the functionality the same as it always has been, keeping the system backward compatible.

I'm :-1:  here.
This is an horrible syntax IMO. And if this get's merged we'll have to stick with this syntax for probably a long time.
Also you can change to something like this:
@each('my-view-file', ['mainObject' => $mainObject, 'foo' => 'bar'] , 'parameters')

//inside the m-view-file
$parameters['mainObject'];
$parameters['foo'];

Also if we are changing this to allow additional data, i'd prefer this syntax:
@each('my-view-file', ['mainObject' => $mainObject, 'foo' => 'bar'])

//inside the m-view-file
$mainObject;
$foo;

@each('my-view-file', $mainObject, 'anotherName')

//inside the m-view-file
$anotherName;

So if data is an array it will inject it's values into the view, the name of the variable would be the key.
However if the third parameter isn't null then it would avoid this and pass the entire array with the given name, this way you wouldn't be stuck when passing a numeral array as data.

I'm more than happy to change the syntax. My biggest question is if the concept is one thats likely to be introduced... if so, I'll work on updating it. You idea does sound like a better way of passing the data, more laravel.

This is a good change and it will be useful, i too sometimes need to pass additional data to the view.
I've edited my comment, this can still be merged in 5.2 with the described syntax, since it won't change the behavior of the other parameters.

Thanks for the PR, but I'm not sure I really like the change. If it is going to be merged though, it should probably go to L5.3.

@GrahamCampbell - what is it you don't like, they syntax or the idea of passing params? Happy to change the structure as I said - but if its the idea of including params I'll close this PR

Yeh, it's the concept I have a problem with rather than the implementation. Best wait for @taylorotwell's feedback first though. :)

Probably hold off on this for now. Will see if it gets brought up more times by the community.


Lookup POC

This change is

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#693  👈
#692
dev

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @spapinistarkware and the rest of your teammates on  Graphite

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 90.03%. Comparing base (69358b8) to head (8e0b2be).

Additional details and impacted files
@@                        Coverage Diff                         @@
##           spapini/07-01-simple_air_prove     #693      +/-   ##
==================================================================
+ Coverage                           89.85%   90.03%   +0.17%
==================================================================
  Files                                  76       76
  Lines                                9349     9381      +32
  Branches                             9349     9381      +32
==================================================================
+ Hits                                 8401     8446      +45
+ Misses                                869      856      -13
  Partials                               79       79

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


iTerm2 v3 tab commands syntax error fix

Fixes the "syntax error: expected line end ..." (-2741) errors that occur when using the tab, split_tab, and vsplit_tab commands in iTerm2 v3

:+1:
From iterm2 Applescript docs:

Application
The application exposes various properties and provides functions that are described in this section. For example:
tell application "iTerm2"
  create window with default profile
end tell


Fix: Modify Chrome extension URLs

Chrome extension's URL fix for users. but, this is not test environemnt
for developers. https://github.com/kosslab-kr/gitCodeShare.com/issues/198

@ysm0622 Need update to store.


download details page needs to include 2022

This page links to https://www.microsoft.com/en-us/download/details.aspx?id=47594 for the AAD Connect download. Unfortunately there is no page feedback option for that page, however the system requirements explicitly list Windows Server 2019 and 2016, however THIS article says 2016 and up. Therefore the download page should either say the same thing or also include 2022 to remove confusion.

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

ID: 06faa428-c7b6-ca5c-271e-3f98d9536d4f
Version Independent ID: 63adb39a-c4fa-92bb-480d-59bee8e2dc24
Content: Azure AD Connect: Prerequisites and hardware
Content Source: articles/active-directory/hybrid/how-to-connect-install-prerequisites.md
Service: active-directory
Sub-service: hybrid
GitHub Login: @billmath
Microsoft Alias: billmath

@Mike-Crowley
Thanks for your feedback! I've assigned this issue to the author who will investigate and update as appropriate.


SonarCloud analysis showing 7 issues in java-core module

https://sonarcloud.io/project/issues?id=googleapis_gapic-generator-java&pullRequest=1518&resolved=false&types=BUG
This GitHub issue is to track to fix them.

SonarCloud shows green in recent pull requests. https://github.com/googleapis/sdk-platform-java/pull/2176


[pmp] Fix ePMP related trap handling

The RISCV-DV PMP trap handler is quite an intricate procedure. In essence, it iterates through the PMP entries to find the one that caused the trap, then tries to amend that entry to give it the permissions it needs and continues the test program if that was successful. This works quite well when most entries are unlocked since whenever you get an access fault, the entry is changed to allow the operation and the instruction is retried. However, there are a few problems with this approach:

The checking for locked entries did not take into account that MML mode.
In cases where most entries are locked (e.g. MML mode), tests would be very short ending after just the first failed load, store or fetch.

Besides the trap handling, the population of entries had some shortcomings,  which lead to poor coverage:

NAPOT regions would have a random address, which made it very unlikely large regions are selected, which require a consecutive sequence of 1s at the end.
The top of TOR regions was never lower than its base.

This PR addresses these issues. This is quite a big PR, but I have split it up into smaller commits to make reviewing easier. Please have a look at each commit message, but in summary these changes include:

Fixes to make MML tests work
PMP trap handler:

Skipping faulting loads and stores
Checking for MML and MMWP
Stop overwriting mscratch

Improved PMP configuration and debugging
Improved coverage of NAPOT and illegal TOR regions

@hcallahan-lowrisc would you be able to have a look at this?

@vogelpi, in case you have time would you be able to review this PR?

@GregAC @ctopal no I have not seen any issues, happy to merge as-is.

@weicaiyang PTAL


Add context to ResourceInterface::submissions()

Overview

Added support for non-scalar option values in Select components.
Allow additional context to be provided to implementations of a ResourceInterface.

Checklist

[x] tests/ added or updated
[x] CHANGELOG.md's Unreleased section is updated
[x] Documentation is updated

coverage: 92.403% (-0.1%) from 92.529%
when pulling 7fa31850d04e8d1f46ad9685e972672bfd6bead0 on add-resource-context
into d62913d2e510b1902509f1031e889132dd315aa6 on develop.


Update to new oauth2-proxy repo and tag

Is this a new chart
no
What this PR does / why we need it:

oauth2-proxy has it's own github org and with that a new quay container image repo
v5.1.1 has been released fixing a security issue.

Which issue this PR fixes
Minor change so didn't open an issue
Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[ ] Chart Version bumped
[ ] Variables are documented in the README.md
[ ] Title of the PR starts with chart name (e.g. [stable/mychartname])

Unfortunately I don't actually use helm, and don't have the bandwidth to test this. If someone can that'd be great!

Hmm let me revert changing the file name, that's not really important.

Just going through reverting the name change. I'm wondering if it would be a good idea to make this a breaking change, all be it minor, to line up with oauth2-proxy? The reason being is that the name "oauth2_proxy.cfg" is based off the example config file, which is now called "oauth2-proxy.cfg.example". I feel like this might catch a few newbies out if they copy paste from the oauth2-proxy docs. WDYT? I'll push up a new commit reverting it, but let me know which way you think would be best to proceed?

Any update on this PR ?
I think it is related to #21198

@abdennour Can you test this for us?

@steakunderscore , actually, processing .Values.extraArgs is outdated.
Indeed, All args are now started by - not --.
REFERENCE: official software doc

Just noticed this is a duplicate diff of #22309. Perhaps this PR should be closed?

Your PR is the most complete so far regarding this topic.
so far we still have the following topics to address:

.Values.extraArgs (?)
config file name with breaking change (if we consider this a breaking change, how to upgrade should be documented in the README). I'm ok to make this a breaking change if @Miouge1 is ok as well.

/assign

Changing the config file from /etc/oauth2_proxy/oauth2_proxy.cfg to /etc/oauth2-proxy/oauth2-proxy.cfg is going to be a problem for users using the config.existingConfig option.

IMHO and based on the information available so far, the breaking change is not worth it, therefore I would prefer to see this PR as a backwards compatible thing.

Should we continue with this PR or should we prefer https://github.com/helm/charts/pull/22309 ?


Metamask deploy transaction call no longer filling in Gas.

It used to be that the gas was automatically filled in, now the metamask popup comes up with 0 and you have to edit it. Is this intentional or a regression? If intentional pls ignore this and my apologies.
Image: https://pasteboard.co/I2kk1XC.png

How CAN you edit it?

I can't even deploy my smart contract ://

Nvm found it.


Question: How can I easily publish the examples/dist in gh-pages?

Should npm release do this?

The docs say that the publish:site script is usually run as part of the release script, but I ended up having to run it manually.

After commenting the line that throws the error referenced in #9, the full script was run, and my site was deployed correctly.


Complex format selection

I am trying to download a YouTube video in both mp4/m4a and webm formats in the best quality, but the following command only downloads the mp4/m4a files. Is there something wrong when processing the format selection or is there something wrong with my syntax?
debian@debian:~/Downloads/_test$ youtube-dl -f bestvideo[ext=mp4]+bestaudio[ext=m4a],bestvideo[ext=webm]+bestaudio[ext=webm] -v https://www.youtube.com/watch?v=7vuKF0BpyDA
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-f', u'bestvideo[ext=mp4]+bestaudio[ext=m4a],bestvideo[ext=webm]+bestaudio[ext=webm]', u'-v', u'https://www.youtube.com/watch?v=7vuKF0BpyDA']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.09.28
[debug] Python version 2.7.3 - Linux-3.2.0-4-686-pae-i686-with-debian-stretch-sid
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] 7vuKF0BpyDA: Downloading webpage
[youtube] 7vuKF0BpyDA: Downloading video info webpage
[youtube] 7vuKF0BpyDA: Extracting video information
[youtube] 7vuKF0BpyDA: Downloading DASH manifest
[youtube] 7vuKF0BpyDA: Downloading DASH manifest
[info] 7vuKF0BpyDA: downloading video in 2 formats
WARNING: You have requested multiple formats but ffmpeg or avconv are not installed. The formats won't be merged.
[debug] Invoking downloader on 'https://r18---sn-hp57kn7r.googlevideo.com/videoplayback?id=eefb8a174069c830&itag=137&source=youtube&requiressl=yes&mn=sn-hp57kn7r&ms=au&mm=31&pl=47&mv=m&nh=IgpwcjAzLm1pYTA0KgkxMjcuMC4wLjE&ratebypass=yes&mime=video/mp4&gir=yes&clen=92838871&lmt=1407648237662567&dur=257.675&mt=1443565047&signature=9C1FEA9754F9549F870237390112FEB2F81FBC96.25C6DA6B611CC76ACCC89546FEF114CC6D88B045&sver=3&upn=EfkzZatif5g&key=dg_yt0&fexp=9406989,9408710,9409069,9415365,9415485,9416023,9416126,9417707,9418153,9418448,9420348,9421013&ip=2602:306:bdc6:98e0:e0a3:581e:1e92:b31d&ipbits=0&expire=1443586680&sparams=ip,ipbits,expire,id,itag,source,requiressl,mn,ms,mm,pl,mv,nh,ratebypass,mime,gir,clen,lmt,dur'
[download] Destination: YouTube Birthday Karaoke Night-7vuKF0BpyDA.f137.mp4
[download]   0.3% of 88.54MiB at 276.10KiB/s ETA 05:27

Works fine. Post the full output of youtube-dl when run with --verbose option.

Sorry, I was using an older version on my Windows machine which did not support it. The updated version on my Linux machine works fine.


Add support for configurable TLS version / CIPHERS in novnc (websockify)

Description
Since websockify version 0.9 there is support to specify the minimum TLS version websockify should use. By default it allows TLS 1.0, 1.1, 1.2 and 1.3. TLS 1.0 and 1.1 should not be used anymore (EOL / known insecure). The same goes for certain CIPHERS.
Use case
We would use this feature to force novnc sessions to use TLS 1.2 and up.
Interface Changes
Two configuration options should be added to the sunstone-server.conf:
vnc_proxy_tls_version=
vnc_proxy_tls_ciphers=

I would suggest to use tlsv1_2 in the default configuration file to have a secure default.
Additional Context
To see if a newer version of websockify would work with OpenNebula 5.12, I did the following:
git clone https://github.com/novnc/websockify/
replace "run" with:
#!/usr/bin/env python

import websockify

websockify.websocketproxy.websockify_init()

Edited the VNC ruby file, /usr/lib/one/ruby/OpenNebulaVNC.rb, so it reads:
cmd ="python3 #{@proxy_path} #{proxy_options} #{@proxy_port} --ssl-version=tlsv1_2"

This version of websockify does not seem to work with Python 2.

Progress Status

[ ] Branch created
[ ] Code committed to development branch
[ ] Testing - QA
[ ] Documentation
[ ] Release notes - resolved issues, compatibility, known issues
[ ] Code committed to upstream release/hotfix branches
[ ] Documentation committed to upstream release/hotfix branches

noVNC has been deprecated in favor of guacamole in recent opennebula versions


Use UUIDs for feature (RoadEventFeature) IDs

A Universally Unique IDentifer (UUID), also known as GUID, defined in RFC 4122, is a 128-bit ID that can guarantee uniqueness across space and time.
Here's an example of a UUID: 6ba7b810-9dad-11d1-80b4-00c04fd430c8
Currently, WZDx RoadEventFeature id is just a string. It is likely that there will be collisions between road event IDs from different producers which makes it difficult to aggregate feeds and to relate objects which reference a road event ID (such as within a Relationship, e.g. connecting detours to work zones) to the road event they refer to. Within a single data source there is no issue, but across feeds from multiple producers the ID of the road event alone is not ample to reference a road event. It would be way easier if it was, and a UUID would enable that.
From my experience working with MassDOT and Ver-Mac, this change would not be burdensome as the content of a RoadEventFeature ID does not have meaning and by its description in the WZDx specification is not intended to. Thus the requirement of a UUID would just require a change in how IDs are generated. There are many libraries for generating UUIDs, so this is trivial.
Currently, the only feature in WZDx with an identifier is the RoadEventFeature. However, active PRs seek to add a FieldDeviceFeature (see #195, #208), and there has been discussion about a RoadFeature. I think all feature IDs should be UUIDs which would greatly facilitate referencing features without the context of the original feed or data source they came from, historical reporting and data warehousing, and relating features.

Brilliant!

For the v4.1 release, this can be implemented as a recommendation through the description of the identifier properties and shown in all examples. Specifically, the following properties would recommended using a UUID:

Property
Object

id
RoadEventFeature

id
FieldDeviceFeature

data_source_id
FeedDataSource

The use of a UUID could eventually be required via a future major WZDx release. Having it recommended would be a good stepping stone towards this goal.

Based on discussion in the 2022-02-23 spec update subgroup meeting, members are on board with the transition to UUID, however, I gathered it would be helped to add a name property to the [RoadEventCoreDetails]( for providing a human-readable "name" for the road event, which is what some current WZDx users were using the ID for. The FieldDeviceCoreDetails already has the name property, defined as:

A human-readable name for the field device.

With the addition of name there is no lost functionality when ID is required to be a UUID.

UUIDs recommended in v4.1 from #278.
This issue will stay open for requiring UUIDs in v5.0.

At CDOT, we are currently generating WZDx messages by translating a different message to WZDx. That higher level message only has a string identifier, which is unique to all other CDOT messages (of the form OpenTMS-Event2702170538, OpenTMS-Event2843552682, ...). I am now working on updating this translator to 4.1, and need to determine how to handle the identifier, preferably as a UUID. I believe that a goal should be to keep the same identifier for each consecutive message update, meaning that this UUID should persist across updates. Currently, the only simple way to do that (for us) would be to use seeded UUIDs, seeded from that CDOT identifier (OpenTMS-Event2702170538). this solves our problem, but may not be a good long term strategy, as it removes the "guarantee" of uniqueness of the UUID if it is being seeded. I am fairly confident that these identifiers will be globally unique, at least in the short term. Is this a valid solution, seeding UUIDs with our own unique IDs? We have some other options, but this is the simplest by far.

@jacob6838, I think there are two key points you bring up:

Yes, id's (UUID or otherwise) should be maintained for the same feature (both "RoadEvent" and "Device"), for as long as it's the same functional feature.  Which attributes define a functional feature will vary based on specifics, but if your internal system would continue to use the same id (i.e. the feature defining attributes haven't changed), that feature in WZDx should also keep using the same id.  (Note: the internal system id doesn't have to be the same as the WZDx id)
There are 4 practical versions of UUIDs (ignoring version-2), and pseudo-random number generated is only one of them.  As long as the UUID is generated correctly, there's no functional difference between the different versions - a UUID is a UUID.

Specifically for this case, I would use a Version 5 UUID - see RFC 4122, section 4.3 for some more details about name seeded UUIDs (https://www.rfc-editor.org/rfc/rfc4122#section-4.3).  In short, the process is to convert a SHA1 hash of a string to a UUID: genUUID_v5(SHA1(namespaceUUID + name)) – there are a number of online generators, e.g. https://www.uuidtools.com/v5.  So, I would start by generating a UUID, and saving it as the organization/namespace UUID (really doesn’t matter how this is generated, just store it to always use the same one).  Then, you can append your internally unique name (i.e. "OpenTMS-Event2702170538") to generate the globally unique UUID for the feature – which can always be re-generated by you using the same organization/namespace UUID and the same internally unique name.
Also see the following stackoverflow question – the top answer includes some good pseudo-code for an implementation: https://stackoverflow.com/questions/10867405/generating-v5-uuid-what-is-name-and-namespace

@AdamICone That makes perfect sense, UUID version 5 supports this use case perfectly. Thanks!


Cannot avoid stationary object

I am testing Apollo and find it often hits stationary object. I am using LG simulator.
The setup is like this: I put a vehicle in front of Apollo with some distance (>30 meters) in the middle of a road. Then set a destination far ahead. Apollo will first accelerate then but fail to come to a full stop after detecting the vehicle. I can see Apollo tries to brake but still will hit the vehicle. Any idea? The default speed is 50km/h in my testing.

路面太滑了吧
先calibrate一下纵向控制Look Up Tabel
然后把障碍车放远一点儿试试


[style]: Add hover to social icons on footer

What's the style idea?
Add similar hover effect to the social icons on the footer like we have on. the navbar, it would look more elegant.
Add screenshots
Add screenshots
Code of Conduct

[X] I agree to follow this project's Code of Conduct

I would like to work on this issue under gssoc'23

@Susmita-Dey Can i work it out?

Footer is gonna change so it won't be useful to work on.


Handle auth.StdTx.Msgs parsing correctly

in auth.StdTx, msgs are defined as interface. msgpack doesn't know how to handle the underlying structure

use scalar.

closed. need to cast.


Catalog for V2 API Implementation

This change adds a basic catalog endpoint to the API, which returns a list,
or partial list, of all of the repositories contained in the registry.  Calls
to this endpoint are somewhat expensive, as every call requires walking a
large part of the registry.
Instead, to maintain a list of repositories, you would first call the catalog
endpoint to get an initial list, and then use the events API to maintain
any future repositories.
ALSO.. it could probably stand to use more tests, but I wanted to make certain I was
on the right track.
Signed-off-by: Patrick Devine<EMAIL_ADDRESS>

Looks like we would not be able to merge this PR because of merge conflicts. Please rebase, fix conflicts, and force push to your branch.

I'm not sure this approach will work.  The catalog handler will block the connection and given a large number of repositories  could cause an idle socket timeout.  This could be worked around by streaming repository entires back as soon as they are encountered during Walk with http chunked encoding.
This won't make the response quicker, but will keep the connection active.

Yeah.. it was meant to be quick and dirty, but you're correct in that it won't work for large numbers of repositories with slow storage.  What would be a reasonable amount of repositories that we would want to support?

Please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "catalog-api" git@github.com:pdevine/distribution.git somewhere
$ cd somewhere
$ git rebase -i HEAD~4
editor opens
change each 'pick' to 'edit'
save the file and quit
$ git commit --amend -s --no-edit
$ git rebase --continue # and repeat the amend for each commit
$ git push -f

Ammending updates the existing PR. You DO NOT need to open a new one.

Looks like we would not be able to merge this PR because of merge conflicts. Please rebase, fix conflicts, and force push to your branch.

How do you plan to authenticate this?
Unless I'm missing something, this will either be unauthenticated, in which case the Catalog will be missing private images.
Or it will be authenticated, in which case it is unclear what scope would be passed to the authentication endpoint to retrieve a Bearer token.

@mattmoor The catalog API is considered an administration function. This is protected by a JWT access record with type="registry", name="catalog" and access="*" for the standard distribution/auth package. This is covered in the app.go portion of this PR. Other implementations may choose to use a more or less granular access model, but this endpoint is not meant for end users.
If you have suggestions here, they would be appreciated, but this is a little late in the design process.

@stevvooe Thanks for the pointer, so IIUC the auth endpoint would get:
scope=registry:catalog:*
If this is not meant for end-user consumption, then maybe it should go in a separate doc covering administrative endpoints?
I am not concerned with the design, just making sure I understand what this is (and isn't).
thanks again.

@pdevine This is almost ready to go. The only aspect I am weary about is the client API for this.

LGTM

For the v2 catalog api, consider the following scenario:
There's a repository called image1 with only one tag v1. Soft deleted/untagged the image using the delete http v2 api call. The image1 still shows up in the v2 catalog repository.
We need to get a list of image: tag. So we used the v2 catalog api to get the repository names and looped it to get the tags for each one to form a list of image: tags. Right now, we manually remove the repository for which zero tags are present. This leads to x number of extra http calls to be made for x single tag repositories. Is there any way such repositories can be removed from the v2 catalog.
Please let me know, if there's any thing I have missed out.

Also, we need the date time of creation or modification when the tags were created or modified. Right now, we are manually walking the storage folder and accessing the date. Is there any provision for the same. Its impossible to distinguish between newly created image:tags and the old ones.

Apart from that, need to filter these repositories from pagination too.
@stevvooe Is it possible implementing it in v2 api or would it be expensive for the cases where only repositories are to be listed?

@monikakatiyar16 This issue was merged like a 1.5 years ago. What makes you think this is a reasonable venue to ask these kinds of questions? It sounds like you have questions on how to use the API.
I first recommend that you read the specification and documentation. If you still have questions, then I'd recommend reaching out on IRC or the community slack. If you still can't answer your question, open an issue, describing what you tried and why it didn't work so we can better help to route your request.
As a hint, I'd recommend taking a look at notifications.

Agreed. This was not the right place to ask questions. I have read about notifications. The only problem is that the v2 catalog api (to list repositories) also lists the repositories for which all the tags have been deleted. I will create a new issue for the same with all the required details. Thanks.


UMD bundle: Externals

Expected Behavior
Dependencies should be bundled in UMD distributions.
Current Behavior
[Vue warn]: Error in render function: (found in <DataTableHead>)
TypeError: Cannot read property 'threeBars' of undefined
Uncaught (in promise) TypeError: n(...) is not a function

Possible Solution
Opt-out webpack externals for UMD builds.

Waiting for this PR to be released https://github.com/vuejs/vue-cli/pull/1943.