[Feature] [EFR32] Adding pairing QRcode URL in the console at boot

Feature description
Hello,
Could you print the link to the pairing QRcode in the console at boot in order to perform the pairing with boards without LCD screen?
I can't find it from the current state of the program:
SEGGER J-Link V7.88 - Real time terminal output
Silicon Labs J-Link OB compiled Sep 30 2022 13:05:09 V1.0, SN=449050146
Process: JLinkExe
[00:00:00.000][silabs ]==================================================
[00:00:00.000][silabs ]SiLabs-Light-Switch starting
[00:00:00.000][silabs ]==================================================
[00:00:00.000][silabs ]Init CHIP Stack
[00:00:00.000][silabs ]Initializing OpenThread stack
[00:00:00.000][info  ][DL] OpenThread started: OK
[00:00:00.000][info  ][DL] Setting OpenThread device type to ROUTER
[00:00:00.000][silabs ]Starting OpenThread task
[00:00:00.000][info  ][SVR] Subscription persistence not supported
[00:00:00.000][info  ][SVR] Server initializing...
[00:00:00.000][detail][FP] Initializing FabricTable from persistent storage
[00:00:00.000][info  ][TS] Last Known Good Time: [unknown]
[00:00:00.000][info  ][TS] Setting Last Known Good Time to firmware build time 2023-05-05T11:33:55
[00:00:00.000][info  ][DMG] AccessControl: initializing
[00:00:00.000][info  ][DMG] Examples::AccessControlDelegate::Init
[00:00:00.000][info  ][DMG] AccessControl: setting
[00:00:00.000][info  ][D[00:00:30.016][detail][DL] bleAdv Timeout : Start slow advertissment

Regards
Platform
efr32
Platform Version(s)
No response
Anything else?
No response

@lboue The URL to get the QR code is already printed but might get truncated because of the high volume of logs at boot.
With the matter shell, you are able to get the commissioning information.

@mkardous-silabs
When flashing from SimplicityStudio projet example. Matter shell works fine in this case.
I can't get anything from the serial console when flashing from connectedhomeip repo. I can't see URL to get the QR code through SEGGER J-Link neither.
Did I miss some parameter to access to matter shell?

By default, on the Connectedhomeip and Silicon Labs repo, the ot-cli is enabled but not the matter shell.
To enable the matter shell, add chip_build_libshell=true to the build command.
For example:
./scripts/examples/gn_efr32_example.sh examples/lighting-app/silabs/efr32 out/lighting-app BRDXXXX chip_build_libshell=true

Once in the matter shell, to get the URL you can do onboardingcodes ble for the ble commissioning

By default, on the Connectedhomeip and Silicon Labs repo, the ot-cli is enabled but not the matter shell. To enable the matter shell, add chip_build_libshell=true to the build command.
For example: ./scripts/examples/gn_efr32_example.sh examples/lighting-app/silabs/efr32 out/lighting-app BRDXXXX chip_build_libshell=true

I didn't notice any changes with  chip_build_libshell=true argument.
I am getting the same console log:
...................
###RTT Client: Connected.
SEGGER J-Link V7.88 - Real time terminal output
Silicon Labs J-Link OB compiled Sep 30 2022 13:05:09 V1.0, SN=449050146
Process: JLinkExe
[00:00:00.000][silabs ]==================================================
[00:00:00.000][silabs ]SiLabs-Light starting
[00:00:00.000][silabs ]==================================================
[00:00:00.000][silabs ]Init CHIP Stack
[00:00:00.000][info  ][DL] Setting device name to : "SiLabs-Light"
[00:00:00.000][silabs ]Initializing OpenThread stack
[00:00:00.000][info  ][DL] OpenThread started: OK
[00:00:00.000][info  ][DL] Setting OpenThread device type to ROUTER
[00:00:00.000][silabs ]Starting OpenThread task
[00:00:00.000][info  ][SVR] Subscription persistence not supported
[00:00:00.000][info  ][SVR] Server initializing...
[00:00:00.000][detail][FP] Initializing FabricTable from persistent storage
[00:00:00.000][info  ][TS] Last Known Good Time: [unknown]
[00:00:00.000][info  ][TS] Setting Last Known Good Time to firmware build time 2023-05-05T23:07:57
[00:00:00.000][info  ][DMG] AccessControl: initializing
[00:00:00.000][info  ][DMG] Examples::AccessControlDelegate::Init
[00:00:00.000][
[00:00:30.016][detail][DL] bleAdv Timeout : Start slow advertissment
Do I have to set enable_openthread_cli=false?

And the detailed build log:
build_light_shell.log

Here is what I get with a demo program in SimplicityStudio (MatterLightOverThread).
I have the Matter console via the serial port.
matterCli > help
  base64          Base64 encode / decode utilities
  exit            Exit the shell application
  help            List out all top level commands
  version         Output the software version
  ble             BLE transport commands
  config          Manage device configuration. Usage to dump value: config [param_name] and to set some values (discriminator): config [param_name] [param_value].
  device          Device management commands
  onboardingcodes Dump device onboarding codes. Usage: onboardingcodes none|softap|ble|onnetwork [qrcode|qrcodeurl|manualpairingcode]
  dns             Dns client commands
  ota             OTA commands
  echo            Echo back provided inputs
  log             Logging utilities
  rand            Random number utilities
  otcli           Dispatch OpenThread CLI command
Done
matterCli > onboardingcodes ble qrcode
MT:6FCJ142C00KA0648G00
Done

matterCli > onboardingcodes ble qrcodeurl
https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT%3A6FCJ142C00KA0648G00
Done

I would like to achieve the same behavior with this code

HI @lboue,
I've been able to reproduce your issue and I can help you correct it.
As it turns out, there are differences in the serial configuration between the SMG (Silabs Matter on Github/connectedhomeip) and Studio/GSDK builds. I'm not sure why, and will investigate. A guess is that it may have to do with some Sparkfun device ecosystem interface. But for your initial question, this is what you can do to get your SMG version going:
...
Let us know how this works for you.

Thank you very much for taking the time to investigate. I'll give it a try tomorrow and see if it works for me.

Config for BRD4316A is OK in the same repo for RX and TX pin :
[sl_uartdrv_eusart_vcom_config.h]https://github.com/SiliconLabs/sdk_support/blob/2bc3f28d778850417f34c7201cbe78bd72e3ee78/matter/efr32/mgm24/BRD4316A/config/sl_uartdrv_eusart_vcom_config.h#L90)
// EUSART0 TX on PA05
#define SL_UARTDRV_EUSART_VCOM_TX_PORT           gpioPortA
#define SL_UARTDRV_EUSART_VCOM_TX_PIN            5

// EUSART0 RX on PA06
#define SL_UARTDRV_EUSART_VCOM_RX_PORT           gpioPortA
#define SL_UARTDRV_EUSART_VCOM_RX_PIN            6

So it seems that the configuration is incorrect only for the board BRD2704A:

Hi @lboue,
Yes, I hope this Port/Pin change was made just for the Sparkfun board. I still haven't discovered if there is a good reason for the change and I'm going to file a bug at Silabs to pursue it.
My understanding was that you were asking about the Sparkfun MGM240P board, BRD2704A. Was that incorrect?
Are you still having difficulty getting serial on your board, and which board is it?
-Alex

Hi @lboue,
Yes, I hope this Port/Pin change was made just for the Sparkfun board. I still haven't discovered if there is a good reason for the change and I'm going to file a bug at Silabs to pursue it.
My understanding was that you were asking about the Sparkfun MGM240P board, BRD2704A. Was that incorrect?

Yes it is.

Are you still having difficulty getting serial on your board, and which board is it?
Yes. I cleared the flash of the board, modified the source code then compiled in a new folder and flashed.
I haven't seen a difference and still don't get the matter shell.

commander device masserase

rm -rf out/light*
vim third_party/silabs/matter_support/matter/efr32/mgm24/BRD2704A/config/sl_uartdrv_eusart_vcom_config.h
grep --color SL_UARTDRV_EUSART_VCOM_ third_party/silabs/matter_support/matter/efr32/mgm24/BRD2704A/config/sl_uartdrv_eusart_vcom_config.h
...
#define SL_UARTDRV_EUSART_VCOM_PERIPHERAL        EUSART0
#define SL_UARTDRV_EUSART_VCOM_PERIPHERAL_NO     0
#define SL_UARTDRV_EUSART_VCOM_TX_PORT           gpioPortA
#define SL_UARTDRV_EUSART_VCOM_TX_PIN            5
#define SL_UARTDRV_EUSART_VCOM_RX_PORT           gpioPortA
#define SL_UARTDRV_EUSART_VCOM_RX_PIN            6
#define SL_UARTDRV_EUSART_VCOM_CTS_PORT          gpioPortC
#define SL_UARTDRV_EUSART_VCOM_CTS_PIN           2
#define SL_UARTDRV_EUSART_VCOM_RTS_PORT          gpioPortC
#define SL_UARTDRV_EUSART_VCOM_RTS_PIN           4

./scripts/examples/gn_efr32_example.sh examples/lighting-app/silabs/efr32 out/lighting-app_uart BRD2704A chip_build_libshell=true
out/lighting-app_uart/BRD2704A/chip-efr32-lighting-example.flash.py

commander flash ~/SiliconLabs/bootloader_binaries/bootloader-storage-internal-single-512k-BRD2704A-gsdk4.2.s37
out/lighting-app_uart/BRD2704A/chip-efr32-lighting-example.flash.py
JLinkExe -device EFR32MG24AXXXF1536 -if SWD -speed 4000 -autoconnect  1

Logs
user@SL-Matter:~$ JLinkRTTClient
###RTT Client: ************************************************************
###RTT Client: *               SEGGER Microcontroller GmbH                *
###RTT Client: *   Solutions for real time microcontroller applications   *
###RTT Client: ************************************************************
###RTT Client: *                                                          *
###RTT Client: *       (c) 2012 - 2016  SEGGER Microcontroller GmbH       *
###RTT Client: *                                                          *
###RTT Client: *     www.segger.com     Support<EMAIL_ADDRESS>     *
###RTT Client: *                                                          *
###RTT Client: ************************************************************
###RTT Client: *                                                          *
###RTT Client: * SEGGER J-Link RTT Client   Compiled Apr 28 2023 08:38:36 *
###RTT Client: *                                                          *
###RTT Client: ************************************************************

###RTT Client: -----------------------------------------------
###RTT Client: Connecting to J-Link RTT Server via localhost:19021 ...
###RTT Client: Connected.

SEGGER J-Link V7.88 - Real time terminal output
Silicon Labs J-Link OB compiled Sep 30 2022 13:05:09 V1.0, SN=449050146
Process: JLinkExe
###RTT Client: Connection lost. Going to reconnect.
###RTT Client: Connecting to J-Link RTT Server via localhost:19021 .......
###RTT Client: Connected.

SEGGER J-Link V7.88 - Real time terminal output
Silicon Labs J-Link OB compiled Sep 30 2022 13:05:09 V1.0, SN=449050146
Process: JLinkExe
[00:00:00.000][silabs ]==================================================
[00:00:00.000][silabs ]SiLabs-Light starting
[00:00:00.000][silabs ]==================================================
[00:00:00.000][silabs ]Init CHIP Stack
[00:00:00.000][info  ][DL] Setting device name to : "SiLabs-Light"
[00:00:00.000][silabs ]Initializing OpenThread stack
[00:00:00.000][info  ][DL] OpenThread started: OK
[00:00:00.000][info  ][DL] Setting OpenThread device type to ROUTER
[00:00:00.000][silabs ]Starting OpenThread task
[00:00:00.000][info  ][SVR] Subscription persistence not supported
[00:00:00.000][info  ][SVR] Server initializing...
[00:00:00.000][detail][FP] Initializing FabricTable from persistent storage
[00:00:00.000][info  ][TS] Last Known Good Time: 2023-05-10T21:21:41
[00:00:00.000][info  ][DMG] AccessControl: initializing
[00:00:00.000][info  ][DMG] Examples::AccessControlDelegate::Init
[00:00:00.000][info  ][DMG] AccessControl: setting
[00:00:00.000][info  ][DMG] DefaultAclStorage: initia

@silabs-AKates
You are right. I made a mistake, I was using he J-Link RTT Viewer application.
So I checked with PuTTY this time and I confirm that it works.
I get the matterCli.
matterCli > help
  base64          Base64 encode / decode utilities
  exit            Exit the shell application
  help            List out all top level commands
  version         Output the software version
  ble             BLE transport commands
  config          Manage device configuration. Usage to dump value: config [param_name] and to set some values (discriminator): config [param_name] [param_value].
  device          Device management commands
  onboardingcodes Dump device onboarding codes. Usage: onboardingcodes none|softap|ble|onnetwork [qrcode|qrcodeurl|manualpairingcode]
  dns             Dns client commands
  ota             OTA commands
  echo            Echo back provided inputs
  log             Logging utilities
  rand            Random number utilities
  otcli           Dispatch OpenThread CLI command
Done
matterCli > onboardingcodes ble
QRCode:            MT:6FCJ142C00KA0648G00
QRCodeUrl:         https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT%3A6FCJ142C00KA0648G00
ManualPairingCode:<PHONE_NUMBER>2
Done

Thanks

On many other platforms (such as Zephyr-based Nordic and Telink), logging is enabled by default on both UART and RTT, and even if you use RTT to view logs, there is no interruption that can affect your development or debugging experience.
I would like to know why Silabs does not redirect logs to UART as well by default, and why not optimize the default RTT_Conf configuration to make the logging experience better?
I think it can be frustrating when you build your Lighting application with the default configuration and a development board such as BRD4187C, only to find that the logs are truncated and you have to manually configure it yourself to see all the logs, rather than having an out-of-the-box experience.

On many other platforms (such as Zephyr-based Nordic and Telink), logging is enabled by default on both UART and RTT, and even if you use RTT to view logs, there is no interruption that can affect your development or debugging experience.
I would like to know why Silabs does not redirect logs to UART as well by default, and why not optimize the default RTT_Conf configuration to make the logging experience better?
I think it can be frustrating when you build your Lighting application with the default configuration and a development board such as BRD4187C, only to find that the logs are truncated and you have to manually configure it yourself to see all the logs, rather than having an out-of-the-box experience.

I agree, it would be easier if it were activated out of the box.

@lboue @ihidchaos @silabs-AKates
I realize this is now an old/stale issue.
I have however a few updates:

SetupQRCode and QR code URL at printed at bootup. But Logs can be lost if RTT buffer is full.
PB0 press now also prints you the SetupQrCode and URL to the QRcode so you can have it on-demand.

[74:58:26.113][info  ][SVR] SetupQRCode: [MT:6FCJ142C00KA0648G00]
[74:58:26.114][info  ][SVR] Copy/paste the below URL in a browser to see the QR Code:
[74:58:26.114][info  ][SVR] https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT%3A6FCJ142C00KA0648G00

The RTT still has the same limitation and will drop traces when its buffer is full.
We are inquiring our internal apps support teams and customers if they are in favour of defaulting the sample apps to UART logs rather than RTT.

Some customers are used to/prefer RTT nonetheless.
I'll close this ticket as workarounds of the discussed limitations are in place and defaulting to UART will probably occurs in the near future.


Generator fixes

More SimpleQuantity fixes and OID generator technically not correct.

See https://github.com/fhir-crucible/crucible/issues/300 and https://github.com/fhir-crucible/crucible/issues/298


Andrew DSPT 1

Andrew DSPT 1 pull request for assignments

Your commit messages are nice and informational for me, but I think try to describe/summarize what you did to complete the assignment or question part instead of just naming the number. Making good progress on assignments! LMK if you have any questions!

Finished all assignments for unit 1 sprint 3 and finished sprint challenge


Changed Bootswatch URL to point to Bootswatch 3.

It is well known that if you use a Bootstrap 4 template on an ASP.NET template it will break the layout. This is a convenience change to prevent confusion as it will send people to the correct versioned URL as it was back when this article was written.
When creating a new PR, please do the following and delete this template text:

Reference the issue number if there is one:
Fixes #Issue_Number

The "Fixes #nnn" syntax in the PR description causes
GitHub to automatically close the issue when this PR is merged.

@ameyer117 Thank you for your contribution!


Permissions issue creating Lambda

When deploying the stack to eu-west-1 region
4:26:02 PM | CREATE_FAILED        | AWS::Lambda::Permission                         | NextjsImageinvokefunctionurl625AF4EF

Resource handler returned message: "Lambda blocked the creation of this policy because it would grant public access to your function. If this is intentional, change your function's BlockPublicPolicy setting to allow public access and try again. (Service: Lambda, Status Code: 400, Request ID: 0ba9163b-4250-43db-a713-faf5bde8e803)" (RequestToken: 8b435ef0-b4f2-8773-bdad-306f898d4071, HandlerErrorCode: GeneralServiceException)

This looks like it is due to a recent change at AWS: Support for JSON resource-based policies and block public access
References

https://aws-new-features.s3.us-east-1.amazonaws.com/update/2024-09-18.html
https://docs.aws.amazon.com/lambda/latest/dg/permissions-public-access.html
https://docs.aws.amazon.com/lambda/latest/api/API_PutPublicAccessBlockConfig.html

I am not sure, but this may be a fix, if possible through CDK:
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-lambda.html
It seems the configuration to Lambda to allow public access to the function is not yet possible to set up via Cloudformation.
https://docs.aws.amazon.com/lambda/latest/dg/permissions-public-access.html

I am preparing a PR to fix this, though it might need some improvements


Issue #59903 - Removing _decodeScalar function that isn't being used

Addressing Issue #59903  - removing what I think is dead code in the _decodeScalar function.

Resolves https://github.com/apple/swift/issues/59903

@swift-ci Please clean test

Hey @dfperry5, I see you are a first time contributor. So welcome to the Swift project!

@swift-ci Please clean test

Right now only people with access can run the CI
See Asking for Code Review Section for more info.

@swift-ci Please test

@LucianoPAlmeida  - Thank you! totally missed that - just went to straight to the CI section in the PR template.


Implemented Translatable settings models

This PR adds the ability to define translatable settings models. These models have one instance per site and locale rather than just one instance per site.
I've also changed the look of the site switcher to look the same as the locale switcher:

TODO:

[ ] Tests
[ ] Docs

missed the fact this is still a draft (hence the needs review label dance). if you rebase it, I will make time to review/test it this week

Closing in favour of #9390


fix: improve xcframework archive file link type detection

If RSPM cannot infer the link type from file --brief, use otool -l to see if the library is dynamic, and if not default to static.
Add a subset of the Google Maps Demos to the project.

The example needed to be patched, as there's an error with @import GoogleMaps; in the headers for the frameworks otherwise.
FYI, the error is:

external/rules_swift_package_manager~~swift_deps~swiftpkg_ios_maps_sdk/Core/GMSEmpty.m:17:9: fatal error: module 'GoogleMaps' not found
@import GoogleMaps;
 ~~~~~~~^~~~~~~~~~
1 error generated.

I quickly looked into it but couldn't find an easy fix, so patching seemed like the easiest solution.

cc @cgrindel - would love feedback on this! I didn't do any processing on the otool -l command as I didn't think it to be necessary.
Closes #1084

@stephanecopin I ran bazel run //:tidy on this branch and updated it. This got the new integration test running. However, there appears to be some absolute paths from your machine somewhere in the code.

Ah my bad, that was leftover code from when I was investigating the @import issue 😅 I've removed it, should all good now

It looks like you do not have any test targets. Can you add one that launches the iOS app or at least a build_test that ensures that the iOS app builds?

@cgrindel ah right, I've added a build_test as the example will not launch without a valid Google Maps API key.

It looks like you forgot to add load("@bazel_skylib//rules:build_test.bzl", "build_test") to the file with the build_test.

Ah my bad! That's what you get for doing that late 😅 I've updated & verified it passes locally, so hopefully should be all good now


Load online data dictionary to LUIS

how can I load the dictionary data to LUIS , such as given below
https://en.wikipedia.org/wiki/List_of_films:_A
the above is list of films starting with A , how can I import all of them to LUIS  or some similar list .

This isn't a bug or issue related to the Bot Framework Emulator, please ask "how-to" questions like this on Stack Overflow, and make sure to provide examples of what you've attempted to solve your question.


Csselly fails to fetch id when it contains a dot

Some people play with fire and use javascript ids such as "foo.bar".
Obviously, when parsing "#foo.bar", Csselly thinks bar is a class.
But Csselly should support escaping: "#foo.bar" (works in CSS with modern browsers and jQuery).

Heya!!!
Little CSSelly supports escaping, see this. Would this work for you?

Shamefully realize his test is broken and Jodd rocks...

It's Friday :)


add JIT fastpath for hasOwnProperty calls using for-in property name

Added hasOwnProperty as CallDirect candidate, and also made a pretty simple lowering fastpath, which detects if we are loading property name from a for-in loop. if we are, then we can take advantage of state of our enumerator to know if property is an own property or from prototype.
This improves perf of React by about 10%.

:shipit:

canUseJITFastpath is only enabled if the object doesn't have any enumerable property from the start, and no index property.  So the win is mostly from optimizating the call the built in.
I wonder whether we will get the same win if do the partial inlining of the PropertyString cache check instead checking the for in enumerator. (or do both?)

Please add test cases for all the variants of for..in related to this fastpath.  Probably want to add ExprGen testing too.

String cache lookup was showing as very costly. The win here is mostly by changing that dictionary lookup into checking against a boolean.

:shipit:

@MikeHolman Please make sure ExprGen has coverage.


ctr exec hangs if given command does not exist in the container

While debugging #1161 I noticed that with:
sudo ./bin/dist pull docker.io/library/alpine:latest
sudo ./bin/ctr run --tty docker.io/library/alpine:latest test

then in another window:
sudo ./bin/ctr exec --tty --exec-id bash test bash

hangs (note that there is no bash in alpine:latest). I would expect and ENOENT type error of some sort.
There are no logs from the containerd process end.
I see this with current master (0600399b0d618a3d16cabc2af4f2f25d533cf1ed) but it appears to have been the case for quite a while (if not forever).

Ya, i ran into this as well.  I think it has to do with task.Delete() or process.Delete() and the waiting of IO that was not closed on the other side

yes, strace did suggest it had hung opening one (or more) of the stdio FIFOs.


Binary reported even ignoreBinaries is used.

Hi,
My config is:
export default {
  ignoreBinaries: ["audit-ci"],
  entry: ["src/index.ts", "src/bin"],
};

I got the following report:
Unused devDependencies (1)
audit-ci  package.json
Configuration issues (1)
Unused item in ignoreBinaries: audit-ci

Best,

I changed the config as follows and porblem is solved:
export default {
  ignoreDependencies: ["@types/jest", "audit-ci"],
  entry: ["src/index.ts", "src/bin"],
};


Added mbedtls_net_connect_timeout function.

This is because I added a non-blocking timeout to solve the problem that when a network connection is attempted, the network is not connected and it is locked.

Thanks for the contribution! We've had a look at it and there's some changes I think we need to make before we can accept the PR, but first, unfortunately, we have a policy of only accepting contributions with a  Contributor’s Licence Agreement (CLA), signed or authorised by yourself, so to progress the contribution we really need a CLA.
The easiest way to do this is if you create an mbed account and accept this click through agreement which is applicable if this is a personal contribution. Alternatively, you can find a slightly different agreement to sign here, which can be signed and returned to us, and is applicable if you don't want to create an mbed account or alternatively if this is a corporate contribution.
Thanks for your understanding!

Hi @HISONA,
Just a reminder - we can't accept the contribution without a CLA!

This PR still doesn't have a CLA, so unfortunately we can't accept the code contribution.
@HISONA - if you do join Mbed and/or sign and return a CLA, please feel free to re-open this PR.


Data is not always flushed to disk

Original post by @cpilka, moved from #3:

I have a weird issue with disc persistence. Data is flushed to disc just for a certain amount of records (few hundred). Single inserts are not written to disc. Just wonder if there's a :disc_only_copies in Memento that would write all data straight to mnesia files.
This one doesn't write to disc:
Memento.transaction! fn ->
  Memento.Query.write(record)
end

This one does:
Memento.transaction! fn ->
  for _ <- 1..100 do
    Memento.Query.write(record)
  end
end

Is there any setting that tells Mnesia to flush the memory part always to disc and not to flush reaching certain buffer? Or whatever causes this issue ...

Original post by @cpilka, moved from #3:

From https://learnyousomeerlang.com/mnesia#from-record-to-table what I read is:
disc_copies
This option means that the data is stored both in ETS and on disk, so both memory and the hard disk. disc_copies tables are not limited by DETS limits, as Mnesia uses a complex system of transaction logs and checkpoints that allow to create a disk-based backup of the table in memory.

To tell Mnesia to flush data straight to disk :disc_only_copies exists, but is not supported in Memento, right?
Memento.Table.create!(YourTable, disc_only_copies: nodes)

returns:
Mnesia Error: {:bad_type, YourTable, {:not_supported, :ordered_set, :disc_only_copies}}

Original post by @cpilka, moved from #3:

OK, the issue was actually http://erlang.org/doc/man/mnesia.html -> "Notice that currently ordered_set is not supported for disc_only_copies". The :bad_type error above was caused by ordered_set in table definition and :disc_only_copies

@cpilka That's interesting, I didn't know disc_only_copies did not support ordered_set tables. I'll make sure that it gets documented in the create/2 method doc.
As for the flushing the data part, here's a discussion about it on the Erlang mailing list:

With Mnesia using the disk_log module, which in turn usually uses write(2) only, you are not certain that the OS will have copied write(2)'s data to the disk device.  In most cases, the kernel can (and will) wait for many seconds before flushing that data to the disk device.

But I think you should be able to sacrifice some performance for guaranteed writes using Transaction.execute_sync!/2:
Memento.Transaction.execute_sync! fn ->
  Memento.Query.write(record)
end

Hey @cpilka. Any updates on this? Did Memento.Transaction.execute_sync! solve your problem?

In Apache Kafka they rely heavily in disk I/O and they have settings to control the time it takes the Operating System to flush the OS page cache to disk.
So if Mnesia also uses the same approach of Kafka to commit data from memory into disk then fsync can help flushing it.
See this answer that contains more info and several links, included the one I mentioned for fsync.

Closing because of inactivity.


Me

please use the system to report the real issue or feature request. thanks

Looks like a bogus/spam account; reported to GitHub for abuse


Erro in migration

Hi Prisma Team! The following command just crashed.
Command
migrate reset
Versions

Name
Version

Platform
windows

Node
v16.13.2

Prisma CLI
4.3.1

Engine
c875e43600dfe042452e0b868f7a48b817b9640b

Error
Error: Error in migration engine.
Reason: [migration-engine\connectors\sql-migration-connector\src\flavour\sqlite.rs:256:46] failed to truncate sqlite file: Os { code: 5, kind: PermissionDenied, message: "Acesso negado." }

Please create an issue with your `schema.prisma` at
https://github.com/prisma/prisma/issues/new

Hi Gabriel, the error asks you to open the issue with your schema.prisma (Make sure to remove your sensitive data).
The error informs that your bank access credentials are not valid, check if they are correct.

Duplicate of #13991


Update Command summary to sentence case

Pull Request Test Coverage Report for Build 530

0 of 0 (NaN%) changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 88.267%

Totals

Change from base Build 528:
0.0%

Covered Lines:
2272

Relevant Lines:
2574

💛  - Coveralls


Make updating reference history optional

Recording reference history add significantly to BPF tail calls and map in map operations.

Make reference history DEBUG only


CMake: AppleClang does not provide Leak Sanitizer -> compilation failure when test enabled

When I tried to add Travis-CI xcode10.1 jobs, I found a compilation issue when enabling tests...
[ 58%] Building CXX object absl/debugging/CMakeFiles/absl_disabled_leak_check_test.dir/leak_check_fail_test.cc.o
cd /Users/travis/build/Mizux/abseil-cpp/build/absl/debugging && /Applications/Xcode-10.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++  -D__CLANG_SUPPORT_DYN_ANNOTATION__ -I/Users/travis/build/Mizux/abseil-cpp -isystem /Users/travis/build/Mizux/abseil-cpp/build/googletest-src/googlemock/include -isystem /Users/travis/build/Mizux/abseil-cpp/build/googletest-src/googlemock -isystem /Users/travis/build/Mizux/abseil-cpp/build/googletest-src/googletest/include -isystem /Users/travis/build/Mizux/abseil-cpp/build/googletest-src/googletest  -O3 -DNDEBUG   -std=gnu++11 -o CMakeFiles/absl_disabled_leak_check_test.dir/leak_check_fail_test.cc.o -c /Users/travis/build/Mizux/abseil-cpp/absl/debugging/leak_check_fail_test.cc
[ 58%] Linking CXX executable absl_disabled_leak_check_test
cd /Users/travis/build/Mizux/abseil-cpp/build/absl/debugging && /usr/local/Cellar/cmake/3.12.3/bin/cmake -E cmake_link_script CMakeFiles/absl_disabled_leak_check_test.dir/link.txt --verbose=1
/Applications/Xcode-10.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++  -O3 -DNDEBUG -Wl,-search_paths_first -Wl,-headerpad_max_install_names  CMakeFiles/absl_disabled_leak_check_test.dir/leak_check_fail_test.cc.o  -o absl_disabled_leak_check_test libabsl_internal_leak_check_api_enabled_for_testing.a libabsl_leak_check_disable.a ../base/libabsl_base.a ../../lib/libgmock_main.a -fsanitize=leak ../base/libabsl_dynamic_annotations.a ../base/libabsl_internal_spinlock_wait.a ../../lib/libgmock.a ../../lib/libgtest.a
clang: error: unsupported option '-fsanitize=leak' for target 'x86_64-apple-darwin17.7.0'
make[2]: *** [absl/debugging/absl_disabled_leak_check_test] Error 1
make[1]: *** [absl/debugging/CMakeFiles/absl_disabled_leak_check_test.dir/all] Error 2
make: *** [all] Error 2
The command "cmake --build build --target all" exited with 2.

job ref: https://travis-ci.org/Mizux/abseil-cpp/jobs/474846599#L1164
According to the Apple developer documention Leak Sanitizer does not seem available...
ref: https://developer.apple.com/documentation/code_diagnostics
Code to change:
https://github.com/abseil/abseil-cpp/blob/7ffbe09f3d85504bd018783bbe1e2c12992fe47c/absl/debugging/CMakeLists.txt#L202-L205

note: since I enable CMP0025 in a previous CL it should be easy for Abseil-Team to fix it..
https://github.com/abseil/abseil-cpp/blob/7ffbe09f3d85504bd018783bbe1e2c12992fe47c/CMakeLists.txt#L21-L24

note: in https://github.com/abseil/abseil.github.io/blob/master/docs/cpp/platforms/platforms.md#linux

Linux
Supported

Operating System/Architecture
Compilers
Standard Libraries

Linux, little-endian, 64-bit
gcc 4.8+clang 3.3+
libstdc++libcxx

BUT Leak Sanitizer seems to come starting to clang 3.5
ref: http://releases.llvm.org/3.5.0/tools/clang/docs/LeakSanitizer.html
-> You'll have to use CMAKE_CXX_COMPILER_VERSION

Still an issue when cloning the head as of 2/20/2019
clang: error: unsupported option '-fsanitize=leak' for target 'x86_64-apple-darwin18.2.0'


DescribeCommand - Show which sample uses the default configuration

old
$ php php-cs-fixer describe no_extra_consecutive_blank_lines
Description of no_extra_consecutive_blank_lines rule.
Removes extra blank lines and/or blank lines following configuration.

Fixer is configurable using following options:
* tokens (array): list of tokens to fix; defaults to ['extra']

Fixing examples:
 * Example #1.
   ---------- begin diff ----------
   --- Original
   +++ New
   @@ @@
    <?php

    $foo = array("foo");

   -
    $bar = "bar";
   ----------- end diff -----------

new
$ php php-cs-fixer describe no_extra_consecutive_blank_lines
Description of no_extra_consecutive_blank_lines rule.
Removes extra blank lines and/or blank lines following configuration.

Fixer is configurable using following options:
* tokens (array): list of tokens to fix; defaults to ['extra']

Fixing examples:
 * Example #1. Fixing with the default configuration
   ---------- begin diff ----------
   --- Original
   +++ New
   @@ @@
    <?php

    $foo = array("foo");

   -
    $bar = "bar";
   ----------- end diff -----------

:+1:

However I wonder if this should target master. This kind of looks like a new feature rather than a bugfix

why not upping docs on the branch these docs relate to?

Also: would it be better to show what the default configuration is?

is always []` ? The options and their defaults are listed above the samples already.

why not upping docs on the branch these docs relate to?

👍

is always [] ? The options and their defaults are listed above the samples already.

I meant to compute the default values in such case. I would find that convenient but indeed, maybe it's just overkill.

I would say overkill indeed,
https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/2865
will make sure the code sample with default is always shown first, which is directly after the list of configuration options and their defaults.

I'll rework this when I've the time, thanks all!

reopen until that as a feature request

testing as GH does not show new commits


Inspect the behavior of rune operated by docker

How the config.json and rune cmdline operated is not explicitly known yet. This is a potential problem of rune.

The set of commands and parameters executed by the container entry point is the process.args parameter in the config.json file.
The results of the following two cases are consistent, which can be:
• The result of cascading Path and Args in docker inspect command
• The result of cascading Config.Entrypoint and Config.Cmd in the docker inspect command


Replace postinstall with prepare

https://docs.npmjs.com/cli/v10/using-npm/scripts

https://github.com/43081j/eslint-plugin-lit

Canceled

Canceled


Update readme

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

Comparison is base (c869a1c) 100.00% compared to head (05613b0) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #330   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           41        41
  Lines         1661      1661
  Branches       338       338
=========================================
  Hits          1661      1661

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


Adding remaining Virtual Guest CRUD operations

In reference to the work we've been doing to complete the Terraform SoftLayer Provider work that @eirslett started. We've been working on getting all CRUD operations for Virtual Guests implemented as referenced here https://github.com/TheWeatherCompany/softlayer-go/issues/4 and here https://github.com/TheWeatherCompany/terraform/issues/5. This PR includes quite a few additions that fully round out Virtual Guest abilities.

We are working on the check failure and will re-commit when fixed.

Also it's maximilien, not maximilian :Wink:


New install fails when installing dependencies

Creating a new project works fine, but as soon as you want to install the dependencies you get errors about dependencies that cannot be resolved. See the error log below:

npm install                                                                                 ✔  16.15.0 Node  10:56:46
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving<EMAIL_ADDRESS>npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/vite
npm ERR!   dev<EMAIL_ADDRESS>from the root project
npm ERR!   peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR!   node_modules/@vue-termui/cli
npm ERR!     dev @vue-termui/cli@"*" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR! node_modules/@vitejs/plugin-vue
npm ERR!   dev<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /home/user/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR!     /home/user/.npm/_logs/2022-10-27T08_56_48_899Z-debug-0.log

we need to upgrade the starter deps for vite and vite vue plugin

I've created a PR for that just now :) .


2D Light Occlusion appears broken in 3.5.2 and also 4.1

Godot version
3.5.2 and also 4.1
System information
Windows 11, GLES3 (3.5.2) & Mobile (4.1)
Issue description
2D Light Occlusion doesn't work as intended in both 3.5.2 and also 4.1.
Creating a simple scene with a tilemap, tiles set to occlude
(This also happens when using a Light Occluder2D on sprites)
Adding a PointLight2D with texture and shadows enabled.
In Godot 3.5.2 when you enable Shadow the texture turns to a block:

In Godot 4.1 shadows work until the Light2D moves over the occluded tile or sprite, then the object becomes lit, when it should stay dark.

Steps to reproduce
Creating a simple scene with a tilemap, tiles set to occlude
(This also happens when using a Light Occluder2D on sprites)
Adding a PointLight2D with texture and shadows enabled.
In 3.5.2 move enable shadow, the texture turns into a block.
In 4.1 shadows work until you move the 2D light over the sprite/tile, then it becomes illuminated when it should stay dark.
Minimal reproduction project
Test Occlusion Tilemap Shadow 3.5.2.zip
Test Occlusion Tilemap Shadow 4.1.zip

In Godot 3.5.2 when you enable Shadow the texture turns to a block:

In 3.5.2 it works as in 4.1, you just have an occluder on both tiles:

After removing it from one tile, saving, and somehow triggering a redraw (seems like this doesn't happen automatically on removing an occluder), e.g. by drawing another tile or reloading the scene, then it looks like this:

In Godot 4.1 shadows work until the Light2D moves over the occluded tile or sprite, then the object becomes lit, when it should stay dark.

Not sure whether this is expected/intended or that's indeed a bug.

In Godot 3.5.2 when you enable Shadow the texture turns to a block:

In 3.5.2 it works as in 4.1, you just have an occluder on both tiles:

After removing it from one tile, saving, and somehow triggering a redraw (seems like this doesn't happen automatically on removing an occluder), e.g. by drawing another tile or reloading the scene, then it looks like this:

In Godot 4.1 shadows work until the Light2D moves over the occluded tile or sprite, then the object becomes lit, when it should stay dark.

Not sure whether this is expected/intended or that's indeed a bug (hence I've marked it as both bug and discussion :upside_down_face:).

In previous versions the light would not illuminate the occluded tile/sprite when the 2D light overlaps, at least it seems this way in this tutorial from 4 years ago (Godot 3.1). In the tutorial it is quite straight-forward to get it to work, nothing extra is done.
https://www.youtube.com/watch?v=QsCfx-jjS0U

In previous versions the light would not illuminate the occluded tile/sprite when the 2D light overlaps, at least it seems this way in this tutorial from 4 years ago (Godot 3.1). In the tutorial it is quite straight-forward to get it to work, nothing extra is done.
https://www.youtube.com/watch?v=QsCfx-jjS0U

Skimmed through that video, I haven't seen the light ovelapping an occluder at anytime.
Tested MRP in 3.1.stable.official, behaves the same as 3.5.2 but buggier on the edges:

And with the occluder removed from one tile:

So I'd assume the claim that in the previous versions lights were not affecting the overlapped occluders is false.

Maybe something was lost in translation here?
The reason I 'claimed' that this worked as intended in 3.1 (4 years ago) was because the YouTube video was posted at that time and it says Godot v3.1 in the title. It obviously worked when the tutorial was created, you can see if you watch the video or look at the screenshot I provided from the tutorial (It looks like it was created in Ubuntu Linux).
Here's a time stamp on the video (5:38), when the shadow is enabled you can clearly see the tile is not illuminated by the light.

In my humble test with v3.1 I wasn't able to get the light texture to appear once the shadow was enabled - it just turned into a block and didn't cast shadows, so I couldn't varify it working at all.

Related to https://github.com/godotengine/godot/issues/72983, https://github.com/godotengine/godot/issues/44236 and other issues I can't find a link to right now.

Would love to see a fix for lights inside occlude shapes, I have scenes casting shadows, but as soon they move in front of a light hanging on the wall behind, the scene is lit up instead of the light just being completely blocked.

I have a simple workaround for the light going through the tilemap occlusion, it might not me ideal for everyone, but you can just duplicate the tilemap and add it on top of the original tilemap - sort of like a mask. You'll should put it on a different collison layer, but it works well.

Thank you, that works perfectly :+1:


Add latest babel preset for examples.

Hi,
I encountered a failure in building the client side of the examples directory when running npm run start. Particularly, in the webpack step.
Problem
The error is below:
$ npm run start

><EMAIL_ADDRESS>start /Users/kenko/src/React-Dropzone-Component/example
> npm run copy-dropzone && webpack && node server.js

><EMAIL_ADDRESS>copy-dropzone /Users/kenko/src/React-Dropzone-Component/example
> node build.js

Hash: c49aabece910e105ec7a
Version: webpack 1.14.0
Time: 314ms
    + 1 hidden modules

ERROR in ./src/examples.jsx
Module build failed: Error: Couldn't find preset "latest" relative to directory "/Users/kenko/src"
    at /Users/kenko/src/React-Dropzone-Component/example/node_modules/babel-core/lib/transformation/file/options/option-manager.js:293:19
    at Array.map (native)
    at OptionManager.resolvePresets (/Users/kenko/src/React-Dropzone-Component/example/node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:20)
    at OptionManager.mergePresets (/Users/kenko/src/React-Dropzone-Component/example/node_modules/babel-core/lib/transformation/file/options/option-manager.js:264:10)
    at OptionManager.mergeOptions (/Users/kenko/src/React-Dropzone-Component/example/node_modules/babel-core/lib/transformation/file/options/option-manager.js:249:14)
    at OptionManager.init (/Users/kenko/src/React-Dropzone-Component/example/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
    at File.initOptions (/Users/kenko/src/React-Dropzone-Component/example/node_modules/babel-core/lib/transformation/file/index.js:216:65)
    at new File (/Users/kenko/src/React-Dropzone-Component/example/node_modules/babel-core/lib/transformation/file/index.js:139:24)
    at Pipeline.transform (/Users/kenko/src/React-Dropzone-Component/example/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
    at transpile (/Users/kenko/src/React-Dropzone-Component/example/node_modules/babel-loader/lib/index.js:46:20)
    at Object.module.exports (/Users/kenko/src/React-Dropzone-Component/example/node_modules/babel-loader/lib/index.js:134:16)
Express server listening on port 3000
Visit http://localhost:3000/example/ to check out the upload example

Without any real knowledge about webpack, it appears to me that we are trying to "pack" or include files within the examples/node_modules directory for whatever reason. The webpack configuration in webpack.config.js, however, excludes any loaders within the node_modules subdirectory. At least, that's my limited understanding of it.
Resolution
Anyhow, the following changes appeared to have resolved my issue. They are basically the first two steps found in the babeljs documentation regarding the latest preset.
The output from an npm run start after the fix is as expected:
$ npm run start

><EMAIL_ADDRESS>start /Users/kenko/src/React-Dropzone-Component/example
> npm run copy-dropzone && webpack && node server.js

><EMAIL_ADDRESS>copy-dropzone /Users/kenko/src/React-Dropzone-Component/example
> node build.js

Hash: c06ce6aaf765cf37230d
Version: webpack 1.14.0
Time: 1893ms
            Asset    Size  Chunks             Chunk Names
./built/bundle.js  839 kB       0  [emitted]  main
    + 187 hidden modules
Express server listening on port 3000
Visit http://localhost:3000/example/ to check out the upload example

Reproduction
The steps to reproducing this are:
git clone git@github.com:felixrieseberg/React-Dropzone-Component.git
cd React-Dropzone-Component/example/
npm i
npm run start

However, I was unable to debug why the latest preset was being searched for, in the first place.

Sweet, thank you very much!


feat(vectorizer): support siliconflow free API

Intention
chatgpt and ollama serve is too expensive.
Let's support siliconcloud free API, see https://cloud.siliconflow.cn/models
Test
Here is my config,  test passed.
[project]
namespace = KagDemoSiliconFix1
host_addr = http://<IP_ADDRESS>:8887

[vectorizer]
vectorizer = kag.common.vectorizer.SiliconFlowVectorizer
model = netease-youdao/bce-embedding-base_v1
api_key = sk-[you_own_api_key]
base_url = https://api.siliconflow.cn/v1
vector_dimensions = 768

[llm]
client_type = maas
base_url = https://api.siliconflow.cn
model = Qwen/Qwen2.5-7B-Instruct
api_key = sk-[you_own_api_key]

[log]
level = INFO

[prompt]
language = en
biz_scene = default

pls review. cc @northmachine

Thanks for your pull request.
Can we invoke the siliconcloud free api with kag.common.vectorizer.OpenAIVectorizer?
{
  "vectorizer": "kag.common.vectorizer.OpenAIVectorizer",
  "model": "BAAI/bge-m3",
  "base_url": "https://api.siliconflow.cn/v1",
  "api_key": "YOUR_API_KEY"
}

OpenAIVectorizer can invoke OpenAI api compatible embedding services such as SiliconCloud embedding api. But I don't know whether it's free.

my mistake, seems that OpenAIVectorizer already supports siliconcloud

qwen-7b-instruct and  bce is free.
Based on my test, bce is better, see issue

cc @xionghuaidong

qwen-7b-instruct and bce is free.
Thanks for sharing the information.


Expose extended options to plugins

It's possible there's a way to do this that I've just missed, but...
Given a custom option like so:
syntax = "proto3";

import "google/protobuf/descriptor.proto";

extend google.protobuf.FileOptions {
  string foo = 50001;
}

option (foo) = "bar";

It would be really nice if the value bar could be extracted from an instance of plugin.CodeGeneratorRequest. The value exists in plugin.CodeGeneratorRequest.ProtoFile.*.Options.XXX_InternalExtensions, however there's no way to access it - proto.GetExtensions requires a proto.ExtensionDesc, but the values returned by proto.ExtensionDescs and friends return values containing just the "Field" field, which causes a panic if passed to proto.GetExtensions. In theory the extensions could be registered by importing the generated code, but that can't be done dynamically.
WRT motivation for such a change, I'm working on a documentation generator and I would like to do things like:

Annotate fields as "private" to omit them from generated docs
Annotate fields for generating "fake" example data, ie string address = 1 [(generator) = "email"];
Annotate the authentication requirements of RPC services and methods
Annotate endpoints for RPC services
Annotate field / message validation constraints

Support for plugins in general needs to be discussed. If we decide to provide first-class support for plugins, there will probably be an entire redesign.
Closing this in favor of the umbrella issue #547.


Bug: eqMac crashes every time output is EVO4

Disclaimer:

[x] I have checked for a similar issue and sure it hasn't been reported before.

Describe the bug
I have a Audient EVO4 audio interface, whenever I use it as the main output of my system, eqMac fails to start. When I open eqMac while using a different output; eqMac works as long as I don't choose my audio interface as the output(in eqMac); if I do it crashes.
Steps to Reproduce

Own a Audient EVO4
Set system audio to this device
Open eqMac
It crashes

Alternative:

Set system audio to any device other than EVO4
Open eqMac
Choose EVO4 as the output in eqMac
It crashes

Expected behaviour
It shouldn't crash :)
Setup information:

Audio device used for playback: Audient EVO 4 Audio Interface
Audio transmission interface: Connected with usb-c
macOS Version: Big Sure latest version, also 12.0 Beta 4
eqMac Version 1.2.0
eqMac driver Version 1.2.3

Additional information
I created a agg. midi device with only EVO4 in it and eqMac works with it. Just a workaround.
Crash log when starting eqMac from terminal:
ERROR: SentryCrashCPU.c (58): _Bool sentrycrashcpu_i_fillState(const thread_t, const thread_state_t, const thread_state_flavor_t, const mach_msg_type_number_t): thread_get_state: (ipc/send) invalid destination port
ERROR: SentryCrashCPU.c (58): _Bool sentrycrashcpu_i_fillState(const thread_t, const thread_state_t, const thread_state_flavor_t, const mach_msg_type_number_t): thread_get_state: (ipc/send) invalid destination port
ERROR: SentryCrashMachineContext.c (232): void sentrycrashmc_resumeEnvironment(): thread_resume (0000ab27): (os/kern) failure
[1]    4258 trace trap  ./Contents/MacOS/eqMac

Crash log when I start it with a workaround and change the output to EVO4:
2021-08-30 20:07:09.6150 eqMac (Source/Application.swift:171) outputChanged:  EVO4 (89)  starting PlayThrough
ERROR: SentryCrashCPU.c (58): _Bool sentrycrashcpu_i_fillState(const thread_t, const thread_state_t, const thread_state_flavor_t, const mach_msg_type_number_t): thread_get_state: (ipc/send) invalid destination port
ERROR: SentryCrashCPU.c (58): _Bool sentrycrashcpu_i_fillState(const thread_t, const thread_state_t, const thread_state_flavor_t, const mach_msg_type_number_t): thread_get_state: (ipc/send) invalid destination port
ERROR: SentryCrashMachineContext.c (232): void sentrycrashmc_resumeEnvironment(): thread_resume (0000ae07): (os/kern) failure

Hey @nodeful,
Decided to build and fix it myself; on the master branch, bug is caused by AudioDevice.swift:L68.
EVO4 interface master channel is not mutable and channels from 1-there are 4- causes a null to be returned from self.isMuted which is force unwrapped causing a NPE.
I tried with couple of other outputs I have and all of them returned a null.
Replacing it with a default value false solves the problem for the master branch; for latest release there is another bug when determining the sampling rate which is solved in master.
I could use my own build but since the reason I'm paying for the Pro version is AutoEQ Integration and I can't get it on my own build; how far you're away from a new release where we can introduce a fix for this?

@hzenginx thanks for looking into this, I agree with your logic, unfortunately I never had a device that wouldn't have a Mutable channel. Do you have a fork of the repo where you've fixed the issues you're having, especially the issue with the sampling rate you've mentioned. I'm now fixing up last little bugs before release of v1.3.0 where this fix should be included

raised the CR.
sampling rate bug was already solved in master.

Yeap thanks! I actually done that fix with Mute just haven't committed 😄 Hopefully will release the update tomorrow

Nice, thanks!

As the fix for this bug has been release in v1.3.0 I will close this issue.
If this issue still persists please let me know.
Thank you!


How to send Event Data

To mimic a Lambda function how do I send Event Data to the container for local development?
Thanks,

https://github.com/lambci/docker-lambda/issues/35


Dialog.onBegin waterfall?

This code will raise an error:
self.dialog.onBegin([function (session, args, next) {

        // first run only
        if ( !session.userData.firstRun ) {

            // Send the user through the first run experience
            session.userData.firstRun = true;

            // begin dialog starts from here
            session.beginDialog('/');

            // This welcome message will be sent after dialog begins from client side
            session.send( self.getLocalizedString('RESPONSE_BEGIN_WELCOME','RESPONSE_BEGIN_WELCOME') );

        } else {
            next();
        }
      }

      , function(session, args)
      {
        console.log("dialog reloaded")
      }

    ]);

that is
Session Error: this.beginDialog is not a function
events.js:141
      throw er; // Unhandled 'error' event
      ^

TypeError: this.beginDialog is not a function
    at LuisDialog.IntentDialog.begin (/mypda/botframework/node_modules/botbuilder/lib/dialogs/IntentDialog.js:19:18)

while this code (without the waterfall functions array) it works
self.dialog.onBegin(function (session, args, next) {

        // first run only
        if ( !session.userData.firstRun ) {

            // Send the user through the first run experience
            session.userData.firstRun = true;

            // begin dialog starts from here
            session.beginDialog('/');

            // This welcome message will be sent after dialog begins from client side
            session.send( self.getLocalizedString('RESPONSE_BEGIN_WELCOME','RESPONSE_BEGIN_WELCOME') );

        } else {
            next();
        }
      });

The question is. Since onBegins support the next arguments among the others, what is the meaning of next(). Which is the next function handler here if it is not in the waterfall array?
Example taken from docs here.

Closing this issue due to age. @loretoparisi - please open a new issue if this issue is not fixed and needs further discussion. Thanks!

IntentDialog.onBegin() doesn't support waterfalls.


Add email notifications. Remove phone notification option

For now, add a notice that it is inactive

Finished

Closing in favour of #156


(PUP-11321) Allow loading of safe classes from the persistence store

Revert changes introduced for PUP-10820 and fix binary values in the persistence store a different way

This is blocked on https://github.com/puppetlabs/puppet/pull/8829

@ciprianbadescu when you get a chance, could you merge the ruby-openssl fix & rebase this PR on 6.x?


[Bug]:  Failed to calculate: 'MaterialPlanning' object has no attribute 'item_array'

环境 // Environment
操作系统 / Operating System: Windows 10
浏览器名称 / Browser Name: Waterfox G6.0.4 (64-bit), Firefox 118.0.2 (64-bit), Microsoft Edge Version 118.0.2088.61 (Official build) (64-bit)
浏览器版本 / Browser Version:
出现此问题的页面链接 // URL of the page that the problem occurred in
https://penguin-stats.io/planner
描述 / Description
您都做了哪些事情/我们如何才能复现这个问题呢？ / What steps did you take to reproduce this problem?

Go to arkplanner
Press calculate

期望的结果 / What should have happened?

实际的结果 / What actually happened?

Loading for a while and then error with a message Failed to calculate: 'MaterialPlanning' object has no attribute 'item_array'
On the console theres a message

(info) [Planner] planning with config
Object { items: (53) […], options: {…}, excludes: [] }
instrument.js:109:42

The Object looks like this no matter what i do
{
    items: [{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},],
    options: {},
    excludes: [],
}

额外的信息 / Any additional information?

Same thing happens on US, CN, JP, KR server
Have tried reset all, reload, other browsers, private browsing
Suddenly starts happening after working
On the console

Thanks for the feedback!
Unfortunately due to the high volume of traffic, we have experienced a short downtime last night and, during which several services may encounter issues like the one you've reported. Would you mind trying again now to see if everything is working in the mean time?


How to get framing results into struct

I'm looking to use the framing aspect of this library to help me parse down schema.org JSON-LD into known chunks.
My example is at https://github.com/ESIPFed/snapHacks/blob/master/sh01-jsonldCrawl/simpleCrawler/main.go
I am using the JSON-LD at line 25
The frame defined at line 67
and it works!   Two points...

The @context is huge...  is this returned from the net somehow based on all of schame.org types or something?

The @graph is parsed out at line 83 and I am trying to figure out how to cast it to a []map[string]string which I think is the collection type.  However, my assert fails.

Is there is a best practice for dealing with the results from the proc.Frame call at line 78?
The code is self contained, so it should download and run if you want to try it.  Many of the functions are just placeholders for now.
Any guidance appreciated!
Thanks
Doug

self answer, maybe not the best..  but it gets me from interface to json and then to struct...
There might be a quicker more pedantic way...
	graph := framedDoc["@graph"]
	// ld.PrintDocument("JSON-LD graph section", graph)  // debug print....
	jsonm, err := json.MarshalIndent(graph, "", " ")
	if err != nil {
		log.Println("Error trying to marshal data", err)
	}

	dss := make([]DataSetStruct, 0)
	json.Unmarshal(jsonm, &dss)

where
type DataSetStruct struct {
	Description string
	ID          string
	Type        string
	URL         string
}

Hi Doug,
Apologies for the lack of replies, I'm travelling at the moment. Will get back to you within 2 days.
Stan

@fils,

Yes, framing (as well as other JSON-LD operations) expand (in your case read: download and embed) the context. You may just ignore it, if it's not needed downstream. It may be a good idea to expose it as a (non-standard) option - I'll think about it.
The returned document would be of type []map[string]interface{}, not []map[string]string. And yes, you got it right, the simplest option to parse it into structs is to transform it to JSON and then back.

Regards,
Stan

@kazarena   Thanks!   appreciate the info and confirmation.   Thanks for a really nice Go based JSON-LD library too!   Going to be using more and more of it it looks like.

@kazarena   I am revisiting this issue....
I am working on some code [1] that indexes tens of thousands of JSON-LD documents.   I have a framing call I make in [2] and I think it is pulling down and embedding the context each time.
Is there a way to prevent the download each time or cache the download somehow?  I ran the profiler and pprof and it seems this is a potential place I could make some gains (visual of cpu prof attached)
Maybe I just need to try and do this without framing, but the framing allows me to make a common schema I can map to my structs so nice.
Thanks!
Your  package has been so wonderful to have!
[1]  https://github.com/earthcubearchitecture-project418/crawler
[2]  https://github.com/earthcubearchitecture-project418/crawler/blob/master/framing/spatialFrame.go

@fils thanks for digging into it! I'll take a look.

@fils I've looked at your code. I'm sorry, I still can't see how I can meaningfully change the library which is constrained by the current standard to address a very specific business case. The problem is: in order to introduce some caching or re-use of contexts (which are required regardless whether you want to see them in the framing output or not), the library would need to know what frames and contexts are the same. This goes beyond the library's responsibilities.
I would recommend exploring 2 options:

try using https://www.w3.org/TR/json-ld-api/#widl-JsonLdOptions-expandContext option and pre-construct the context you are using in your application
re-write the JsonLdProcessor.Frame() function in your code and re-use the objects that you know aren't changing between documents (i.e. the expanded frame and active context).

@kazarena thanks for looking at it and I agree with your view there is nothing that should be done in the library.   I really appreciate the suggestion and I give it go!
Again..  thanks for the time and review!   truly appreciated and thanks for json-gold!
take care
Doug


Add/Investigate support for HTML5

I remember some discussion at some point about HTML5 have restriction on clipboard because of security, but my memory also wants to tell me that someone mentioned a workaround. It would be super cool if support for HTML5 could be possible

HTML requires user input to modify clipboard. If you want to copy stuff to clipboard it is very easy you will want to have something for the user to click on to set the value.
local function set_clipboard(value)
	if not html5 then return end

	local run_me = ""
	.. "var tempInput = document.createElement('input');"
	.. "tempInput.style = 'position: absolute; left: -1000px; top: -1000px';"
	.. "tempInput.value = '" .. value .. "';"
	.. "document.body.appendChild(tempInput);"
	.. "tempInput.select();"
	.. "document.execCommand('copy');"
	.. "document.body.removeChild(tempInput);"
	html5.run(run_me)
end

function init(self)
	msg.post(".", "acquire_input_focus")
end

function on_input(self, action_id, action)
	if action.released then
		set_clipboard("Defold is cool!")
	end
end

https://developers.google.com/web/updates/2018/03/clipboardapi

It works for me! Using the permission based method is probably the best way to do it, but requires modern browsers.
local function set_clipboard(value)
	if not html5 then return end

	local run_me = ""
	.. "var tempInput = document.createElement('input');"
	.. "tempInput.style = 'position: absolute; left: -1000px; top: -1000px';"
	.. "tempInput.value = '" .. value .. "';"
	.. "document.body.appendChild(tempInput);"
	.. "tempInput.select();"
	.. "document.execCommand('copy');"
	.. "document.body.removeChild(tempInput);"
	html5.run(run_me)
end

local function check_clipboard_read_permission()
	if not html5 then return end

	local html5_query = [[

	navigator.permissions.query({
		name: 'clipboard-read'
	}).then(permissionStatus => {
		// Will be 'granted', 'denied' or 'prompt':
		console.log(permissionStatus.state);
		return permissionStatus.state;
	});

	]]

	return html5.run(html5_query)
end

local function read_clpboard()
	if not html5 then return end

	local html5_query = [[

	navigator.clipboard.readText()
	.then(text => {
		console.log('Pasted content: ', text);
	})
	.catch(err => {
		console.error('Failed to read clipboard contents: ', err);
	});
	]]

	return html5.run(html5_query)
end

function init(self)
	msg.post(".", "acquire_input_focus")
	print(check_clipboard_read_permission())
end

function on_input(self, action_id, action)
	if action.released then
		set_clipboard("Defold is cool!")
		read_clpboard()
	end
end

Since it returns the object promise probably going to not want to do it in raw Defold but setup JS to Defold communication.

Also discussed here: https://forum.defold.com/t/javascript-pop-up-window/70245/8?u=britzl


Add option to set card position ("top" or "bottom")

Checklist

[x] Used prettier
[x] Ran yarn build

Hi !
This PR add the possibility to specify if the card should be placed in the beginning (top) or the end (bottom) of the list.
The default is "top", which is the default is not set.
(I'll rebase and rebuild if any other PR are merged)

Very lovely :)


[Added] pre-commit hook

Resolves #944.
Allow LicenseFinder to be run conveniently as a Git hook via the pre-commit framework by teams that don't use Ruby. I copied the proposed hook description from the README.

@Kurt-von-Laven Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.

@Kurt-von-Laven Thank you for signing the Contributor License Agreement!

I added an illustration of how to use (or test) the pre-commit hook to the README. I made it quite high profile since in my opinion pre-commit is the best way to use License Finder, but I am happy to bump it further down the README based on others' feedback.

Hey @Kurt-von-Laven ! This looks good to me. Sorry for the delay. All merged now!


DelegationToken not support on Kafka 1.x.x

Hi,
I found a problem using kafka-security-manager release latest or v03-release .
As soon you start the container, also using the default configuration to do not make any changes in zookeeper, the kafka-security-manager is creating a key automatically in /kafka-acl/DelegationToken, after kafka-acls is concerning about the DelegationToken key in zookeeper, as far as I know this feature "DelegationToken" can be used only in the kafka 2, do you have also figured out this problem ?
Thank you,
Frank

What's the log you're getting ? Can you create a docker compose file to reproduce the issue ?
I'm not sure KSM would be backward compatible so you would have to use a KSM version that corresponds to your Kafka version

this is the content of zookeeper before :
WatchedEvent state:SyncConnected type:None path:null
[Group, Cluster, Topic, TransactionalId]
after I run kafka-security-manager:
WatchedEvent state:SyncConnected type:None path:null
[Group, Cluster, Topic, TransactionalId, DelegationToken]
here the failure of kafka-acls run after running kafka-security-manager:
18/12/18 11:23:51 INFO zkclient.ZkClient: zookeeper state changed (SyncConnected)
18/12/18 11:23:51 INFO zkclient.ZkClient: zookeeper state changed (SaslAuthenticated)
18/12/18 11:23:51 INFO zkclient.ZkEventThread: Terminate ZkClient event thread.
18/12/18 11:23:51 INFO zookeeper.ZooKeeper: Session: 0x6767a3945e9e2e71 closed
18/12/18 11:23:51 INFO zookeeper.ClientCnxn: EventThread shut down
Error while executing ACL command: DelegationToken not a valid resourceType name. The valid names are Topic,Group,Cluster,TransactionalId
kafka.common.KafkaException: DelegationToken not a valid resourceType name. The valid names are Topic,Group,Cluster,TransactionalId
at kafka.security.auth.ResourceType$$anonfun$fromString$1.apply(ResourceType.scala:56)
at kafka.security.auth.ResourceType$$anonfun$fromString$1.apply(ResourceType.scala:56)
at scala.Option.getOrElse(Option.scala:121)
at kafka.security.auth.ResourceType$.fromString(ResourceType.scala:56)
at kafka.security.auth.SimpleAclAuthorizer$$anonfun$loadCache$1$$anonfun$apply$mcV$sp$1.apply(SimpleAclAuthorizer.scala:233)
at kafka.security.auth.SimpleAclAuthorizer$$anonfun$loadCache$1$$anonfun$apply$mcV$sp$1.apply(SimpleAclAuthorizer.scala:232)
at scala.collection.Iterator$class.foreach(Iterator.scala:891)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1334)
at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
at scala.collection.AbstractIterable.foreach(Iterable.scala:54)
at kafka.security.auth.SimpleAclAuthorizer$$anonfun$loadCache$1.apply$mcV$sp(SimpleAclAuthorizer.scala:232)
at kafka.security.auth.SimpleAclAuthorizer$$anonfun$loadCache$1.apply(SimpleAclAuthorizer.scala:230)
at kafka.security.auth.SimpleAclAuthorizer$$anonfun$loadCache$1.apply(SimpleAclAuthorizer.scala:230)
at kafka.utils.CoreUtils$.inLock(CoreUtils.scala:217)
at kafka.utils.CoreUtils$.inWriteLock(CoreUtils.scala:225)
at kafka.security.auth.SimpleAclAuthorizer.loadCache(SimpleAclAuthorizer.scala:230)
at kafka.security.auth.SimpleAclAuthorizer.configure(SimpleAclAuthorizer.scala:114)
at kafka.admin.AclCommand$.withAuthorizer(AclCommand.scala:77)
at kafka.admin.AclCommand$.kafka$admin$AclCommand$$listAcl(AclCommand.scala:118)
at kafka.admin.AclCommand$.main(AclCommand.scala:55)
at kafka.admin.AclCommand.main(AclCommand.scala)
to solve the problem I just remove the entry in zookeeper for /kafka-acl/DelegationToken

Yes so overall it seems the kafka project is not fully backwards compatible for the security module so I would recommend using a KSM version that's compatible with 1.1. But if the way you did it works then all good !


Improve classifiers

Improvements of kmeans_base_clustering(), kmeans_advanced_clustering() and make_new_outputs() contain:

computation of the Euclidean distance matrix, which should increase performance
removal of the initialization loop in kmeans_base_clustering(), assuming sklearn.cluster.KMeans() argument n_init plays the same role.
modification of functions to allow the use of all arguments in sklearn.cluster.KMeans().
modifications to allow names of features to be passed along the way.
improved comments and docstrings.
type checking.

It seems my PR does not pass the tests. Any idea why?

It seems my PR does not pass the tests. Any idea why?

something to do with install the typeguard library from what I can see. I ain't particularly familiar with how dependencies work using the poetry library though

Tests passed successfully.


Automated Package Upgrade

:tada: This PR is included in version 25.6.15 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


"FIELD VALUE" not exported

The "FIELD VALUE"  (after "RESULT" field and before "REFERENCES" field) does not seem to be exported to excel.

@fuzzthink,
The field value data that you described as missing are not expected to appear in the Excel export, since the result data in the excel export only includes the result data element type, the code representing said data element and the start and stop times (if present) for said data element. The data elements that appear in the Excel export are the results of the execution of the CQL statement at the top of the relevant column within the Excel document. You can also see the results of a statement execution on the Measure Details page within Bonnie by selecting a patient and clicking the ‘Show Result’ button that is below the CQL statement that you are interested in. For more information about this functionality please see the Bonnie User Guide https://bonnie.healthit.gov/resource/Bonnie_user_guide.pdf.
Thanks,
Matt


falco-0-28-0.md document translation Chinese

falco-0-28-0.md document translation Chinese
Signed-off-by: tianying<EMAIL_ADDRESS>

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: cytianying
Once this PR has been reviewed and has the lgtm label, please assign jasondellaluce for approval by writing /assign @jasondellaluce in a comment. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

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

/assign @jasondellaluce


The project needs to be migrated as it uses an older version of Android embedding.

You get build errors and the following warning while you try to run the app after upgrading to the latest flutter version:
Your Flutter application is created using an older version of the Android
embedding. It's being deprecated in favor of Android embedding v2. Follow the
steps at
https://flutter.dev/go/android-project-migration
to migrate your project.

@DesignrKnight  Please assign me to this issue. I tend to follow the instructions given at https://flutter.dev/go/android-project-migration and migrate the project so that the conflict is solved.

Duplicate of #114
Assigning you #114


Replace Infra Team group by konflux-infra

Use new group name which is aligned with new service name but also with the name of a new Rover group. Having both GitHub and Rover group names aligned will allow to have clusters auth with either GitHub or Red Hat SSO without having any difference in the RBACs.
RHTAPSRE-287

Were you able to test this one somehow @hugares ?

/lgtm

@amfred the old groups are not getting deleted so it's ok to merge it and see if the new group was created as expected and then delete the old one.

I verified and the role binding was created as expected.

Were you able to test this one somehow @hugares ?

I did check before opening this PR that the new group was synced to clusters. I did not test the new role binding before but I was confident it would not cause any issue.


Fix memory leaks caused by multi-calls to Extract().

Fix memory leaks caused by multiple calls to Extract functions.
Description
Multiple calls to the Extract function can cause memory leaks, so we need to use the singleton pattern to create only one instance of executor.
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.

[x] The PR title starts with [MXNET-$JIRA_ID], where $JIRA_ID refers to the relevant JIRA issue created (except PRs with tiny changes)
[x] Changes are complete (i.e. I finished coding on this PR)
[x] All changes have test coverage:
Unit tests are added for small changes to verify correctness (e.g. adding a new operator)
Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)
Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)
[x] Code is well-documented:
For user-facing API changes, API doc string has been updated.
For new C++ functions in header files, their functionalities and arguments are documented.
For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable
Check the API doc at http://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-$PR_ID/$BUILD_ID/index.html
[x] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

Changes

[x] Feature1, tests, (and when applicable, API doc)
[x] Feature2, tests, (and when applicable, API doc)

Comments

If this change is a backward incompatible change, why must this change be made.
Interesting edge cases to note here

@somone23412 Can you look into the sanity check failure on the CI ?
@leleamol Can you help review this PR ?
@mxnet-label-bot Add [C++, pr-awaiting-review]

@leleamol Could you please review this PR? Thanks!


Fix transform_file and render sql code with parameters

Description
What is the current behavior?
Currently, when using transform_file we are unable to view the rendered SQL in the UI. This is because when using the decorator pattern we are not initialising the underlying operator with the SQL, instead we are defining the SQL in the return statement of the python callable.
closes: #892
What is the new behavior?

use TransformOperator in transform_file
add sql and parameters to BaseSQLDecoratedOperator template_fields
set default task_id for TransformOperator to "transform"
fix example for transform_file
add check for template_fields and template_ext
resolve XComArgs when finding first table

Does this introduce a breaking change?
No.
Checklist

[x] Created tests which fail without the change (if possible)
[x] Extended the README / documentation, if necessary

1, Adding a deprecation warning in transform_file
2. Name the new task transform_task (or something else) - so it is clear the difference in comparison to transform - and it could be used both to load from a file and a string?
3. Should we have some tests?

Yes, actually this makes more sense.

Some tests are failing!


Update for SDK 6.5.23?

Are there plans to update this for support of version 6.5.23 of the SDK?

That would be my question as well ...

i am cant  search  new code for new version ( 6.5.23 now  dont working with this code)

Updated the vuforia sdk to v6.5.25.


Upgrade build tools & Gradle Plugin. Fixes #534

I get this Lint error when built locally:

Can be fixed with adding the exclude to bolts:
    implementation ('com.github.dmfs.bolts:color-bolts:' + BOLTS_VERSION) {
        exclude group: 'com.android.support'
    }

This is unrelated to this issue, but I suppose we should fix this, too, either here, or in a separate ticket.

I've upgraded the support lib as well.

Looks good to me.
We should still exclude support libs from bolts dependency though, since the error will come back when we update bolts with higher support lib version. Although, I thought this problem would disappear with using implementation config, but apparently it hasn't. (I've checked, the used bolts version already uses implementation for the support lib.)


Update faster-run.md

What are you changing in this pull request and why?

Team plans was updated a while back, this is to update the information on docs
Checklist

[ ] Review the Content style guide so my content adheres to these guidelines.
[ ] For docs versioning, review how to version a whole page and version a block of content.
[ ] Add a checklist item for anything that needs to happen before this PR is merged, such as "needs technical review" or "change base branch."

Adding new pages (delete if not applicable):

[ ] Add page to website/sidebars.js
[ ] Provide a unique filename for the new page

Removing or renaming existing pages (delete if not applicable):

[ ] Remove page from website/sidebars.js
[ ] Add an entry website/static/_redirects
[ ] Run link testing locally with npm run build to update the links that point to the deleted page

hey @wusanny thanks so much for this brilliant contribution! I've made some changes in your first PR https://github.com/dbt-labs/docs.getdbt.com/pull/4676/files and added an 'update' section to the release note. i hope you don't mind and i'll close this PR to keep the convo in the other one. thank you again!


WIP: set up mkdocs

set up mkdocs for https://github.com/jxnl/instructor-js/issues/24

headsup: https://github.com/jxnl/instructor/blob/main/.github/workflows/mkdocs.yml


Add filter example images

Adds example images for the main filter types in docs.
Closes #1685

Fantastic work, thanks!


Use different enrichment API

Remove FlightAware API support and use open source DB's/registries: https://www.reddit.com/r/ADSB/comments/kievo4/save_flightaware_data_to_local_system/

Going to need to build in de-duplication for flights (i.e., same aircraft, position changed so do query API again)

Added ADSBexchange.com API support.
Added de-duplication functionality for API queries
Added AWs S3 upload support.


vision model zoo API is unlinked in docs

Description
mxnet.gluon.model_zoo.vision is not linked up as it should be.
https://mxnet.incubator.apache.org/api/python/gluon/model_zoo.html

@mxnet-label-bot add [Doc]
This seems to be coming from the following section in
https://github.com/apache/incubator-mxnet/blob/master/docs/api/python/gluon/model_zoo.md
.. automodule:: mxnet.gluon.model_zoo.vision
    :noindex:


Demo Does Not Work With Google Search Console (o

I uploaded angular-tour-of-heroes to a s3 bucket (http://angular-seo-test.s3-website-us-east-1.amazonaws.com). The upload works and it seems like the app otherwise works.
However, when I try to look at it in google search console, it seems like the app doesn't work correctly. In particular, it seems like anything displayed by the router doesn't work.

Note that I'm getting a similar problem when I try to use this with my own site. This means that it seems like googlebot cannot properly traverse the angular site. This is a big deal for Angular SEO. If googlebot cannot properly handle Angular apps, then these apps will not show up in search results correctly.

Hmm. After spending awhile yesterday, it looks like the problem is that googlebot uses a 3-year old version of Chrome (Chrome 41).


Test crams that have a .crai index (as opposed to a .bai index)

Now that .crai is supported in htsjdk

Should probably go in CRAMSupportIntegrationTest

This needs the fixes in https://github.com/samtools/htsjdk/pull/343.

involves revup of htsjdk

Closed via #988.


Not working method 'getDescriptionOfDegreesOfFreedom()' in class 'DynamicsRegressorGenerator'

I got the problem playing with the Matlab regressor example in:
https://github.com/robotology-playground/idyntree/tree/master/examples/matlab/iCubLeftArmDynamicRegressors
In the specifc case, calling:
regrGen.getDescriptionOfDegreesOfFreedom()
I got as result:
Empty string: 1-by-0
when instead there are 32 degree of freedom.

Mh.. for me it is working in the latest commit. Have you updated to the latest version?

yes I just checked, I updated it... @Ommac did you get the problem?

I started to see the same problem... it is really strange because sometimes it works sometime.. a print of my terminal:
>> regrGen.getDescriptionOfDegreesOfFreedom()

ans =

DOF Index: 0 Name: l_hip_pitch
DOF Index: 1 Name: l_hip_roll
DOF Index: 2 Name: l_hip_yaw
DOF Index: 3 Name: l_knee
DOF Index: 4 Name: l_ankle_pitch
DOF Index: 5 Name: l_ankle_roll
DOF Index: 6 Name: r_hip_pitch
DOF Index: 7 Name: r_hip_roll
DOF Index: 8 Name: r_hip_yaw
DOF Index: 9 Name: r_knee
DOF Index: 10 Name: r_ankle_pitch
DOF Index: 11 Name: r_ankle_roll
DOF Index: 12 Name: torso_pitch
DOF Index: 13 Name: torso_roll
DOF Index: 14 Name: torso_yaw
DOF Index: 15 Name: l_shoulder_pitch
DOF Index: 16 Name: l_shoulder_roll
DOF Index: 17 Name: l_shoulder_yaw
DOF Index: 18 Name: l_elbow
DOF Index: 19 Name: l_wrist_prosup
DOF Index: 20 Name: l_wrist_pitch
DOF Index: 21 Name: l_wrist_yaw
DOF Index: 22 Name: neck_pitch
DOF Index: 23 Name: neck_roll
DOF Index: 24 Name: neck_yaw
DOF Index: 25 Name: r_shoulder_pitch
DOF Index: 26 Name: r_shoulder_roll
DOF Index: 27 Name: r_shoulder_yaw
DOF Index: 28 Name: r_elbow
DOF Index: 29 Name: r_wrist_prosup
DOF Index: 30 Name: r_wrist_pitch
DOF Index: 31 Name: r_wrist_yaw

>> regrGen.getDescriptionOfDegreesOfFreedom()

ans =

   Empty string: 1-by-0

It should be fixed by https://github.com/robotology-playground/idyntree/commit/9a45a60e967142cf4aaad6980f6cd7a8c05b361a .


Improve task polling

The existing task polling is naive and doesn't consider the various edge cases around output length, polling algorithms, etc...
Modify the implementation to take advantage of the log appending support in the API.
Modify the polling algorithm to reduce server resource consumption (i.e., do polling client side instead of server side).
Check if there is a need for supporting more advanced polling algorithms (.e.g, backoff policies, etc).

Another thought, following the observation on https://github.com/posit-dev/posit-sdk-py/pull/183#discussion_r1581215656: Request with some reasonable wait amount for the first request, since if it is a quick task, it will return early. Then if longer than that, start polling.


/services and /services/namespace/name

added /services and /services/namespace/name implementation
plus some additional changes to the OpenAPI spec
Signed-off-by: Jasmin Gacic<EMAIL_ADDRESS>@topliceanurazvan you can rebase #4 to my branch and then add needed changes

I extended /apis with fleet params as requested here https://github.com/kubeshop/kuskgateway-api-server/pull/5#issuecomment-1070972033


get ANDROID_HOME from Property

If not found in OS  vars, lookup from JVM Properties.
This is very helpful for avoiding restart user's PC.

System.getenv(ANDROID_HOME) will return null in Windows OS even if user specified the value. It dosen't works unless restarting the machine.


Vm tut ab2

Added PowerShell commands for creating shell variables and creating a virtual network and subnet.

#Sign-off

@v-abdriaz, all new PowerShell scripts have been tested in PowerShell via Azure Cloud Shell, or PowerShell via PowerShell v7?


A way to get a snapshot of the current stream? (usage with Home Assistant)

Which version are you using?
v0.12.0
Which operating system are you using?
Linux
Question
Was just wondering if there was a simple way to get a snapshot of the stream so that I could hook it up to homeassistant? Right now homeassistant requires an endpoint that retrieves a snapshot but I don't know if/how to do so using this server.

Hi,
Do you mean like a thumbnail? you can set FFMPEG to run every X time with something like this:
ffmpeg -y -i "rtmp://<IP_ADDRESS>/key" -ss 00:00:001 -vframes 1 -vf scale=-2:300 "thumbnail.png" then just use Express or something to host the PNG file. Not a neat solution I know but it would do the trick for now.
-Jazzy

Hello, i've read the Home Assistant guide and it indeed require a "still image url" to add a RTSP camera. I don't understand why they chose to do this, i would have improved Home Assistant to generate the pics by itself instead of requiring this. Anyway, here's how to generate the needed data by using rtsp-simple-server:

use Linux

Download rtsp-simple-server

install ffmpeg and nginx

Edit the server configuration, insert runOnPublish and runOnPublishRestart under the stream you're interested into:
paths:
  stream:
    runOnPublish: ffmpeg -i rtsp://localhost:$RTSP_PORT/$RTSP_PATH -vframes 1 -y thumbnail.jpg
    runOnPublishRestart: yes

Start rtsp-simple-server. Now a pic called thumbnail.jpg will be generated every 5 seconds if a client is publishing to the path /stream.

Edit the nginx configuration, that is usually /etc/nginx/sites-enabled/default; find the root directive and insert the folder in which you've downloaded rtsp-simple-server (and thumbnail.jpg is generated)
root /var/www/html;

restart nginx (sudo systemctl restart nginx). Now the snapshot will be available in
http://localhost/thumbnail.jpg

and you can use this url in Home Assistant's still_image_url

Thank you for this! Super detailed and gets the job done.

Hi @aler9 , I've tried your solution with an Eufy cam and Home Assistant running your docker on a QNap Container Station. So far so good, but .. the thumbnail is nowhere to be found, nor do I get any debugging information from the ffmpeg command.
room:
    source: rtsp://<IP_ADDRESS>:554/live0
    runOnInit: ffmpeg -i rtsp://localhost:$RTSP_PORT/$RTSP_PATH -vframes 1 -y multimedia/thumbnail.jpg
    runOnInitRestart: yes

Using runOnPublish resulted in an error and crash in my case.
Any idea what I'm doing wrong? I shared the /multimedia folder with a host folder on the QNap.


Johanblumenberg fnmock

@cspotcode I want to merge this PR, wdyt?

@johanblumenberg on another topic :)
I really liked that implementation, do you think it's enough to be ported or are there any other functionalities in scope of mocking single fns you've added worth grabbing?

@LironHazan go for it.  I won't have much time for ts-mockito so I probably won't be able to do code review, so I say go for it with whatever you have planned.

I think that this can be easily achieved with spies, instead of creating a new interface:
const CallbackSpy = spy({ callback: () => 'foobar' });

expect(CallbackSpy.callback()).toHaveBeenCalled()


Fix previous merge

Ok, my previous PR was in fact broken (travis was correct).
Pytest was picking up the system installed version of the package. Apparently it doesn't see the package from the working directory, unlike how nose works. Basically, I was testing the released 0.5.0 version.
Anyways, it now passes all the tests, and is actually functional.

Friggin finally. Let me see if I can fix https://github.com/item4/ugoira/issues/5

👍

FWIW, apparently the tests issue was running pytest -v --cov ./ vs python3 -m pytest -v --cov ./ The former doesn't see any modules in the CWD (I think it is actually executed from the directory where the pytest script is).
python3 -m pytest -v --cov ./ will load tests from the CWD first, which is now nose works.

this pr was released by 0.6.0 version

Awesomesauce!


Updated the dates for JSFoo

Updated the dates and venue for JSFoo as per https://jsfoo.in/2018/

Details of the conference:

Website: https://jsfoo.in/2018/
Date: 26-27 Oct
Venue: NIMHANS Convention Centre, Bangalore
Description: The eighth edition of India’s first JavaScript conference

Closing as someone as already submitted a PR. Sorry for not checking before.

Closing as someone as already submitted a PR. Sorry for not checking before.

No problem! Thanks for submitting in the first place. :)


Runner has wrong nesting of describe-it blocks when using IsolationMode.InstancePerLeaf

I have this code:
package ru.ought.advent_of_code_2019

import io.kotlintest.IsolationMode
import io.kotlintest.shouldBe
import io.kotlintest.specs.DescribeSpec

class Day01Test : DescribeSpec() {
    override fun isolationMode(): IsolationMode = IsolationMode.InstancePerLeaf

    private val sut = Day01(2)

    init {
        describe("Day 01") {
            it("has mass") {
                sut.mass.shouldBe(2)
            }

            it("changes mass") {
                sut.mass = 3
                sut.mass.shouldBe(3)
            }

            it("has mass2") {
                sut.mass.shouldBe(2)
            }
        }
    }
}

And it results in this output: https://i.imgur.com/eljGuo9.png
All three tests should be grouped under the Describe block, not only first test. This problem exists only if using IsolationMode.InstancePerLeaf mode.

I observe the same issue with the InstancePerTest mode too. SingleInstance works fine.

This is fixed in kotest 4.0.2


fix(mqtt): possible circular reference error in publish

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 81 (0.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.09%) to 24.437%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

lib/ZwaveClient.ts
0
81
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
-0.09%

Covered Lines:
3747

Relevant Lines:
16204

💛  - Coveralls


Documentation: Spelling Mistake in Defining Services

Small spelling mistake in the documentation of Defining Services in the example under All-in-one Definitions. (providing-services.html)

entity LibraryService {
enity Books {

Admittedly not world changing, but caught my eye..

Thanks for reporting this. We will fix this today :).

Issues was fixed weeks ago, see https://cap.cloud.sap/docs/guides/providing-services#all-in-one-definitions. Issue can be closed @gregorwolf.


[Parser] Visualizer accepts null values for strings

Platform

.NET HTML
.NET WPF
Android
iOS
JavaScript
UWP

Author or host
Developer
Version of SDK
master
Issue
JS parser actually accepts null values in strings while .NET and UWP fail
Card example:
{
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "type": "AdaptiveCard",
    "version": "1.0",
    "body": [
        {
            "type": "FactSet",
            "facts": [
                {
                    "title": "Fact 1",
					"value": null
                },
                {
                    "title": "Fact 2",
                    "value": "Value 2"
                },
                {
                    "title": "Fact 3",
                    "value": "Value 3"
                },
                {
                    "title": "Fact 4",
                    "value": "Value 5"
                }
            ]
        }
    ]
}

JS

.NET and UWP

As we have shipped with this, we can't break this functionality. Closing


Return default seeds if Consul does not return anything

Added a feature to ConsulSeedProvider to return default seeds provided in config if Consul does not return any seeds. The default seeds are only returned in case Consul returns an empty list.
This is needed because:

only one SeedProvider can be registered in cassandra.yaml, meaning the outputs of multiple SeedProviders cannot easily be chained
returning empty list from SeedProvider prevents Cassandra from starting

This means that when using ConsulSeedProvider and there are no other Cassandra nodes registered to Consul, the first Cassandra instance will fail to start. This may be desirable in some situations, but there are also scenarios where it makes sense to start Cassandra with the default seed(s) if there are no other seeds registered to Consul.
This is also the way how other 3rd party SeedProviders, such as kubernetes-cassandra-seed-provider, usually do it.
The default seeds parameter is declared the same way as with Cassandra's default SimpleSeedProvider, in cassandra.yaml:
seed_provider:
    - class_name: lt.nkts.cassandra.ConsulSeedProvider
      parameters:
          - seeds: "<IP_ADDRESS>"

I agree with option to have a set of fallback servers, bootstrapping node would fail if there're no records in Consul.


Initial attempt to bring up the Foundation tests on Windows

CC: @millenomi @jakepetroules

I don't think that any of this is pertinent any longer.  We have moved far beyond this.