Kernel not updated with Python interpreter

Environment data

VS Code version: 1.58
Jupyter Extension version: v2021.8.1013163132
Python Extension version: v2021.6.944021595
Pylance Extension version: v2021.7.2

Steps to reproduce:

Follow instructions here https://github.com/holoviz/holoviz/blob/master/doc/installation.rst but replace "anaconda-project run jupyter notebook" command with "anaconda-project run", followed by "code ."
Open "Setup" notebook
Change Python interpreter to the provided holoviz one
Reload to resolve diagnostics
Try to select corresponding kernel

Expected behavior
Kernel to show up
Actual behavior
Kernel did not show up, required reload to show up

Would this be a dupe of #5319

Yup


[Bug] cargo install<EMAIL_ADDRESS>has compilation errors

Describe the bug
First: @fzyzcjy Gratulations on the v2 release! Will upgrade and test these days :)
When running
cargo install<EMAIL_ADDRESS>the following errors appear (=> I am continuing with cargo binstall):
   Compiling flutter_rust_bridge_codegen v2.0.0-dev.2
error[E0446]: crate-private type `CodecModePack` in public interface
  --> /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/func.rs:18:5
   |
18 |     pub codec_mode_pack: CodecModePack,
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't leak crate-private type
   |
  ::: /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/generator/codec/structs.rs:13:1
   |
13 | pub(crate) struct CodecModePack {
   | ------------------------------- `CodecModePack` declared as crate-private

error[E0446]: crate-private type `lang::Lang` in public interface
  --> /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/ident.rs:31:5
   |
31 |     pub fn style(&self, lang: &Lang) -> String {
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't leak crate-private type
   |
  ::: /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/generator/codec/sse/lang/mod.rs:11:1
   |
11 | pub(crate) enum Lang {
   | -------------------- `lang::Lang` declared as crate-private

error[E0446]: crate-private type `lang::Lang` in public interface
  --> /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/namespace.rs:94:5
   |
94 |     pub fn style(&self, lang: &Lang) -> String {
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't leak crate-private type
   |
  ::: /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/generator/codec/sse/lang/mod.rs:11:1
   |
11 | pub(crate) enum Lang {
   | -------------------- `lang::Lang` declared as crate-private

error[E0445]: crate-private trait `IrContext` in public interface
   --> /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/ty/boxed.rs:12:5
    |
12  | /     fn visit_children_types<F: FnMut(&IrType) -> bool>(
13  | |         &self,
14  | |         f: &mut F,
15  | |         ir_context: &impl IrContext,
16  | |     ) {
    | |_____^ can't leak crate-private trait
    |
   ::: /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/ty/mod.rs:151:1
    |
151 |   pub(crate) trait IrContext {
    |   -------------------------- `IrContext` declared as crate-private

error[E0445]: crate-private trait `IrContext` in public interface
   --> /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/ty/dart_fn.rs:13:5
    |
13  | /     fn visit_children_types<F: FnMut(&IrType) -> bool>(
14  | |         &self,
15  | |         f: &mut F,
16  | |         ir_context: &impl IrContext,
17  | |     ) {
    | |_____^ can't leak crate-private trait
    |
   ::: /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/ty/mod.rs:151:1
    |
151 |   pub(crate) trait IrContext {
    |   -------------------------- `IrContext` declared as crate-private

error[E0445]: crate-private trait `IrContext` in public interface
   --> /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/ty/dart_opaque.rs:9:5
    |
9   | /     fn visit_children_types<F: FnMut(&IrType) -> bool>(
10  | |         &self,
11  | |         f: &mut F,
12  | |         ir_context: &impl IrContext,
13  | |     ) {
    | |_____^ can't leak crate-private trait
    |
   ::: /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/ty/mod.rs:151:1
    |
151 |   pub(crate) trait IrContext {
    |   -------------------------- `IrContext` declared as crate-private

error[E0445]: crate-private trait `IrContext` in public interface
   --> /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/ty/delegate.rs:51:5
    |
51  | /     fn visit_children_types<F: FnMut(&IrType) -> bool>(
52  | |         &self,
53  | |         f: &mut F,
54  | |         ir_context: &impl IrContext,
55  | |     ) {
    | |_____^ can't leak crate-private trait
    |
   ::: /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/ty/mod.rs:151:1
    |
151 |   pub(crate) trait IrContext {
    |   -------------------------- `IrContext` declared as crate-private

error[E0445]: crate-private trait `IrContext` in public interface
   --> /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/ty/dynamic.rs:8:5
    |
8   | /     fn visit_children_types<F: FnMut(&IrType) -> bool>(
9   | |         &self,
10  | |         _f: &mut F,
11  | |         _ir_context: &impl IrContext,
12  | |     ) {
    | |_____^ can't leak crate-private trait
    |
   ::: /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/ty/mod.rs:151:1
    |
151 |   pub(crate) trait IrContext {
    |   -------------------------- `IrContext` declared as crate-private

error[E0445]: crate-private trait `IrContext` in public interface
   --> /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/ty/enumeration.rs:48:5
    |
48  |     pub fn get<'a>(&self, file: &'a impl IrContext) -> &'a IrEnum {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't leak crate-private trait
    |
   ::: /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/ty/mod.rs:151:1
    |
151 | pub(crate) trait IrContext {
    | -------------------------- `IrContext` declared as crate-private

error[E0445]: crate-private trait `IrContext` in public interface
   --> /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/ty/enumeration.rs:54:5
    |
54  | /     fn visit_children_types<F: FnMut(&IrType) -> bool>(
55  | |         &self,
56  | |         f: &mut F,
57  | |         ir_context: &impl IrContext,
58  | |     ) {
    | |_____^ can't leak crate-private trait
    |
   ::: /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/ty/mod.rs:151:1
    |
151 |   pub(crate) trait IrContext {
    |   -------------------------- `IrContext` declared as crate-private

error[E0445]: crate-private trait `IrContext` in public interface
   --> /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/ty/general_list.rs:10:5
    |
10  | /     fn visit_children_types<F: FnMut(&IrType) -> bool>(
11  | |         &self,
12  | |         f: &mut F,
13  | |         ir_context: &impl IrContext,
14  | |     ) {
    | |_____^ can't leak crate-private trait
    |
   ::: /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/ty/mod.rs:151:1
    |
151 |   pub(crate) trait IrContext {
    |   -------------------------- `IrContext` declared as crate-private

error[E0445]: crate-private trait `IrContext` in public interface
   --> /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/ty/optional.rs:12:5
    |
12  | /     fn visit_children_types<F: FnMut(&IrType) -> bool>(
13  | |         &self,
14  | |         f: &mut F,
15  | |         ir_context: &impl IrContext,
16  | |     ) {
    | |_____^ can't leak crate-private trait
    |
   ::: /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/ty/mod.rs:151:1
    |
151 |   pub(crate) trait IrContext {
    |   -------------------------- `IrContext` declared as crate-private

error[E0445]: crate-private trait `IrContext` in public interface
   --> /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/ty/ownership.rs:22:5
    |
22  | /     fn visit_children_types<F: FnMut(&IrType) -> bool>(
23  | |         &self,
24  | |         f: &mut F,
25  | |         ir_context: &impl IrContext,
26  | |     ) {
    | |_____^ can't leak crate-private trait
    |
   ::: /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/ty/mod.rs:151:1
    |
151 |   pub(crate) trait IrContext {
    |   -------------------------- `IrContext` declared as crate-private

error[E0445]: crate-private trait `IrContext` in public interface
   --> /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/ty/primitive.rs:25:5
    |
25  | /     fn visit_children_types<F: FnMut(&IrType) -> bool>(
26  | |         &self,
27  | |         _f: &mut F,
28  | |         _ir_context: &impl IrContext,
29  | |     ) {
    | |_____^ can't leak crate-private trait
    |
   ::: /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/ty/mod.rs:151:1
    |
151 |   pub(crate) trait IrContext {
    |   -------------------------- `IrContext` declared as crate-private

error[E0445]: crate-private trait `IrContext` in public interface
   --> /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/ty/primitive_list.rs:11:5
    |
11  | /     fn visit_children_types<F: FnMut(&IrType) -> bool>(
12  | |         &self,
13  | |         f: &mut F,
14  | |         ir_context: &impl IrContext,
15  | |     ) {
    | |_____^ can't leak crate-private trait
    |
   ::: /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/ty/mod.rs:151:1
    |
151 |   pub(crate) trait IrContext {
    |   -------------------------- `IrContext` declared as crate-private

error[E0445]: crate-private trait `IrContext` in public interface
   --> /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/ty/record.rs:14:5
    |
14  | /     fn visit_children_types<F: FnMut(&IrType) -> bool>(
15  | |         &self,
16  | |         f: &mut F,
17  | |         ir_context: &impl IrContext,
18  | |     ) {
    | |_____^ can't leak crate-private trait
    |
   ::: /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/ty/mod.rs:151:1
    |
151 |   pub(crate) trait IrContext {
    |   -------------------------- `IrContext` declared as crate-private

error[E0445]: crate-private trait `IrContext` in public interface
   --> /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/ty/rust_auto_opaque.rs:14:5
    |
14  | /     fn visit_children_types<F: FnMut(&IrType) -> bool>(
15  | |         &self,
16  | |         f: &mut F,
17  | |         ir_context: &impl IrContext,
18  | |     ) {
    | |_____^ can't leak crate-private trait
    |
   ::: /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/ty/mod.rs:151:1
    |
151 |   pub(crate) trait IrContext {
    |   -------------------------- `IrContext` declared as crate-private

error[E0445]: crate-private trait `IrContext` in public interface
   --> /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/ty/rust_opaque.rs:28:5
    |
28  | /     fn visit_children_types<F: FnMut(&IrType) -> bool>(
29  | |         &self,
30  | |         f: &mut F,
31  | |         ir_context: &impl IrContext,
32  | |     ) {
    | |_____^ can't leak crate-private trait
    |
   ::: /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/ty/mod.rs:151:1
    |
151 |   pub(crate) trait IrContext {
    |   -------------------------- `IrContext` declared as crate-private

error[E0445]: crate-private trait `IrContext` in public interface
   --> /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/ty/structure.rs:29:5
    |
29  |     pub fn get<'a>(&self, ir_context: &'a impl IrContext) -> &'a IrStruct {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't leak crate-private trait
    |
   ::: /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/ty/mod.rs:151:1
    |
151 | pub(crate) trait IrContext {
    | -------------------------- `IrContext` declared as crate-private

error[E0445]: crate-private trait `IrContext` in public interface
   --> /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/ty/structure.rs:36:5
    |
36  | /     fn visit_children_types<F: FnMut(&IrType) -> bool>(
37  | |         &self,
38  | |         f: &mut F,
39  | |         _ir_context: &impl IrContext,
40  | |     ) {
    | |_____^ can't leak crate-private trait
    |
   ::: /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/ty/mod.rs:151:1
    |
151 |   pub(crate) trait IrContext {
    |   -------------------------- `IrContext` declared as crate-private

error[E0445]: crate-private trait `IrContext` in public interface
   --> /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/ty/unencodable.rs:26:5
    |
26  | /     fn visit_children_types<F: FnMut(&IrType) -> bool>(
27  | |         &self,
28  | |         _f: &mut F,
29  | |         _ir_context: &impl IrContext,
30  | |     ) {
    | |_____^ can't leak crate-private trait
    |
   ::: /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/ty/mod.rs:151:1
    |
151 |   pub(crate) trait IrContext {
    |   -------------------------- `IrContext` declared as crate-private

error[E0445]: crate-private trait `IrContext` in public interface
   --> /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/ty/mod.rs:52:5
    |
52  |     pub fn visit_types<F: FnMut(&IrType) -> bool>(&self, f: &mut F, ir_context: &impl IrContext) {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't leak crate-private trait
...
151 | pub(crate) trait IrContext {
    | -------------------------- `IrContext` declared as crate-private

error[E0445]: crate-private trait `IrContext` in public interface
   --> /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/ty/mod.rs:80:5
    |
80  | /     fn visit_children_types<F: FnMut(&IrType) -> bool>(
81  | |         &self,
82  | |         f: &mut F,
83  | |         ir_context: &impl IrContext,
84  | |     );
    | |______^ can't leak crate-private trait
...
151 |   pub(crate) trait IrContext {
    |   -------------------------- `IrContext` declared as crate-private

error[E0445]: crate-private trait `IrContext` in public interface
   --> /Users/patmuk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0-dev.2/src/library/codegen/ir/ty/mod.rs:78:1
    |
78  | #[enum_dispatch]
    | ^^^^^^^^^^^^^^^^ can't leak crate-private trait
...
151 | pub(crate) trait IrContext {
    | -------------------------- `IrContext` declared as crate-private
    |
    = note: this error originates in the attribute macro `enum_dispatch` (in Nightly builds, run with -Z macro-backtrace for more info)

Some errors have detailed explanations: E0445, E0446.
For more information about an error, try `rustc --explain E0445`.
error: could not compile `flutter_rust_bridge_codegen` (lib) due to 24 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `flutter_rust_bridge_codegen v2.0.0-dev.2`, intermediate artifacts can be found at `/var/folders/65/4zdp9whj28j122crpwzk7d9m0000gs/T/cargo-installM9o6jl`

Codegen logs with RUST_LOG=debug environment variable
failed before that step

To Reproduce
No response
Expected behavior
No response
Generated binding code
No response
OS
MacOS 14.2
Version of flutter_rust_bridge_codegen
v2.0.0-dev.2
Flutter info
failed before that step

Version of clang++
No response
Version of ffigen
No response
Additional context
No response

Thank you! What is your cargo/rust version? I suspect it can because Rust is too old/new

Sure. If it is really a problem for earlier Rust version, maybe we should consider lowering the MSRV and ensure it in CI (we already have infra for that)

I upgraded to cargo 1.74.1 (ecb9851af 2023-10-18) and it works!
Yes, maybe upgrade MSRV to that. I hope it doesn't matter which rust version between 1.71.0. and 1.74.1. it works with doesn't matter.

That does not look very hard: Just modify pub <-> pub(crate). (Just one thing to ensure: We do not want to expose any unneeded API in frb_codegen's library https://docs.rs/flutter_rust_bridge/2.0.0-dev.2/flutter_rust_bridge/index.html)

Gladly - eventually. I never did that, so I need to read a bit & add a test. Can't do that now.

Take your time!
Here is the contributor guide: https://cjycode.com/flutter_rust_bridge/guides/contributing/overview
But for this specific PR, almost no need to read it :)

Sure, I am glad if I can give back a bit - honoring your great support!
From where shall I branch off when doing PRs? the v2 branch or master?

Happy to hear that and also thank you!

From where shall I branch off when doing PRs? the v2 branch or master?

Just master branch.


ci: configure git for pages deployment

closes #7

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

v0.0.3
GitHub release

Your semantic-release bot :package::rocket:


has_one association not supported in edit and new form page

In new and edit page not showing field of has_one associated model .

They're not shown by default. You need to make them visible explicitly.
https://github.com/sferik/rails_admin/wiki/Fields


TN-2994 correct QB visit date overlaps

Eliminate overlapping QB problems by shifting the expiration date of the previous QB to be just before the start of the next QB.

Click task find-overlaps() will seek out and report all overlapping QBs in the active patients, and optionally correct.
Any overlaps found while building up a user's timeline are eliminated by moving the expiration date, provided QNRs or other events won't be clobbered.
Additional safeguards added to the timeline build process, to confirm we don't insert new rows containing overlaps.

Hello @pbugni! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file portal/models/qb_timeline.py:

Line 773:80: E501 line too long (82 > 79 characters)
Line 774:80: E501 line too long (90 > 79 characters)
Line 790:80: E501 line too long (80 > 79 characters)
Line 795:80: E501 line too long (81 > 79 characters)
Line 800:80: E501 line too long (83 > 79 characters)
Line 802:80: E501 line too long (87 > 79 characters)


Mouse utilities "Fade delay" description incorrect

Microsoft PowerToys version
0.53.3
Utility with translation issue
Mouse Utilities
🌐 Language affected
English
❌ Actual phrase(s)
Time before a highlight appears (ms)
✔ Expected phrase(s)
Something like

Time after which the highlight begins to fade (ms)
Time before the highlight begins to fade (ms)

ℹ Why is the current translation wrong

This setting is not a delay for the highlight showing, it's how long the highlight persists before beginning to fade.

This is fixed with 0.561.  Please head over to https://aka.ms/installpowertoys


Kippo Honeypot Detect

Checklist

[x] I have followed the Contributor Guidelines.
[x] I have added the relevant documentation.
[x] My branch is up-to-date with the Upstream master branch.

Changes proposed in this pull request
Kippo Honeypot Detection payload
Your development environment

OS: Kali
OS Version: 2.0
Python Version: 2.7.3

Hi, thanks for your contribution, please add readme file and add a sample usage in it. also fix the config file (check for update should be true). regards.

@pradeepjairamani thanks for your contribution, please update the PR description regarding the changes, write the title of your changes...
regards.

Hi @ali i have changed the description but I am not sure what to do with the title, please change it as you see fit

@pradeepjairamani perhaps you tagged the wrong Alii!

@shaddygarg yes indeed, @pradeepjairamani there are multiple commits and changes not describe in PR. take a look at the files and changes!

@shaddygarg please review @pradeepjairamani's code regarding this PR and confirm if it's ready to merge.

Sure @Ali-Razmjoo

Hey @shaddygarg ,
I have made the changes Please review again

thanks @pradeepjairamani for your contribution, thanks @shaddygarg  for reviewing, PR merged.
regards.


MPI enabled builds

[x] I read the conda-forge documentation and could not find the solution for my problem there.

Issue:
Currently looking into building DFTB+ on conda-forge with plumed support, I think we would need an MPI enabled version as well to build all variants of the package with plumed support. Are there plans to support MPI in this package as well?
cc @conda-forge/dftbplus

@awvwgk thanks for raising this. Currently we have no plan in this sense. I noticed that unfortunately preparing a package that works both with and without MPI is non trivial, and I thus didn't have time to figure out how to fix our recipe. If you know how to do it, could you please make a pull request in this sense? Ideally:

default should be no MPI
optionally the used might install MPI support

Thanks!

Will give it a try in #21, let's see how this goes.

There is probably more work to do than adding MPI to the build matrix. Do any of the dependencies have to support MPI as well?

Not that I know. I guess you are thinking about fftw? We only use the serial version.

Will give it a try in #21, let's see how this goes.

🤞

Looks like it compiles successfully on the native builds with both OpenMPI and MPICH, but fails for cross compiling on OSX ARM with OpenMPI. Not sure if I can fix a cross compilation with MPI.

Feel free to close this PR or keep it open to track the build failure on OSX-ARM with OpenMPI.


feat: use functional parameters

Solves: #60
Signed-off-by: Vasek - Tom C<EMAIL_ADDRESS>

I used to like it in the past, but now I'm more into have a system that can be configured by a simple struct.
You setup the system by passing the struct.
And this struct should have simple data with sane default.
I think it's more readable in the end.

I won't block that, though, it works, and maybe that's all that matters. And also, we don't know how the number of options might grow with more and more users (IDE and people)

That's why I wanted to use functional test


EPUB Format doesn't handle callout blocks

We could just remove the EPUB from the gh-pages view. Or see if we can fix it. Other than this, the EPUB version looks pretty good (tested with calibre on Ubuntu).

This should be fixed by 79ac0b39b which I inadvertently pushed to master directly.

It looks good to me from downloaded epub from gh-pages.


[INFINITY-2620] Add metadata for UI to render zone and advanced constraint fields.

@elezar good point about Kibana. Even though it might not end up being used too much I think it does make sense allowing users to configure placement constraints for it. I'll create a ticket for that.

@elezar https://jira.mesosphere.com/browse/ELASTIC-157


Completed schemas for sources

I can deal with the merge conflict if you want to submit your PR that moves stuff around first, go ahead.

 Design data ingestion config


allow bottle-react to serialize python datetimes to json

I ran into a problem returning python datetimes directly in my dicts and had to monkey patch bottle-react to get around it, figured I'd contribute if you guys want to use it. In my use case I'm returning datetimes often enough that I don't want to have to stringify all of them before passing them to the client.

we (eventually*) did something very similar, tho it doesn't need to be integrated into bottle-react's codebase:
$ cat lib/json_hotfix.py
import datetime, json
from peewee import Model as PeeweeModel
from peewee import SelectQuery as PeeweeSelectQuery

class CustomJSONEncoder(json.JSONEncoder):
  def default(self,obj):
    if isinstance(obj, datetime.date) or isinstance(obj, datetime.datetime):
      return obj.isoformat()
    elif isinstance(obj, PeeweeModel) and hasattr(obj, 'public_data') and callable(obj.public_data):
      return obj.public_data()
    elif isinstance(obj, PeeweeSelectQuery) and hasattr(obj.model_class, 'public_data') and callable(obj.model_class.public_data):
      return list(obj)
    else:
      return super().default(obj)

json._default_encoder = CustomJSONEncoder()

recommend importing this or something similar somewhere during your app's startup process.
(*) our original instinct was to do exactly what you're proposing, but it seemed wrong, as there really is no one correct way to serialize a datetime in json.  another option we considered was letting the user pass in their serializer as a kwarg into the BottleReact constructor (which i'm still fine w/ if someone needs), but when we realized we could override the default json behavior that's what we finally went with.

ah that's a good point I didn't realize I could just inject my json encoder into the package itself. I'll refactor my implementation to that 👍


Encoder getRate not working

When I try to use encoder.getrate() it returns a constant number around ~4.08. every other encoder function works however. I can get the distance and pulse count from each, and the gyro simulation works perfectly. What is there to do about this?

It was never tested, I'll try to update it after our season is done. I don't think I can across it in any if the robots I tested over the summer

Sorry for the delay.  Post season was met with full-force real world work.  Try 0.11 and let me know if it is better

I think this was fixed, no follow up to prove otherwise


hybridreverb2: enableParallelBuilding=true

cc @trofi
Built on:

[x] x86_64-linux
[x] aarch64-linux (cross from x86_64-linux)
[ ] powerpc64le-linux

Result of nixpkgs-review pr 271318 run on aarch64-linux 1

4 packages built:

hybridreverb2
jconvolver
jconvolver.bin
jconvolver.doc


Feat: adding multipart support

Added

Create a Request.body enum to be able to send a encodable or a multipart
Added a MultipartFormData: it contains all data you want to upload
Added a MultipartFormDataEncoder class to encode a MultipartFormData
Update Readme

UnitTest

add 2 images
MultipartFormData, MultipartFormDataEncoder and Request are tested

Thank you @lowki93 👍
I'll have a look to it

All comment are fix


add download libc by hand choose

add download libc by hand choose

Hey, thanks for the pull request.
Indeed right now autorop is pretty poor in terms of flexibility in choosing a particular libc version. I hope to address this soon (tm).
Unfortunately I find it difficult to accept your solution because it violates the CLI vs library separation. We cannot have the library require live input.
Ideally, we would also have all tests passing to maintain some degree of consistency between older versions' behaviour.

Closing due to inactivity.


winget requests

Hi, i'm from Chile so i don't really know how to speak english.
i love your winutil! i literally used it to every pc i had, and always watch your youtube videos, the work you have done is amazing!
i would love to see these apps on the winget section :(
-spotify
-internet download manager
-atlauncher
-qbittorent enhanced
thank you very much for your work, and i don't know if i really used well the pull request feature.

I'm working on a solutions for these, but this should go into Issues not a PR.


ST_AsGeoJSON memory leak

Hey @Maxxen this took me a while to track down but I believe there is a memory leak with the ST_AsGeoJSON function
Code sample to reproduce:
The following nodejs code uses DuckDB to create a table from the new york city taxi csv dataset on Kaggle. It runs a query every 8 seconds and then records the status of memory usage by using process.memoryUsage() and DuckDB's memory function FROM duckdb_memory()
const { Database } = require("duckdb-async");
const fs = require("fs");

async function main() {
	// csv output for tracking memory
	const path = "./data.csv";
	fs.writeFileSync(path, `rss,heapTotal,heapUsed,total_duckdb_memory\n`);
	const stream = fs.createWriteStream(path, { flags: "a" });

	// create db from ny taxi csv
	const db = await Database.create(":memory:");
	await db.run(`INSTALL spatial;
        LOAD spatial;
        CREATE TABLE yellowcab AS
        SELECT * EXCLUDE (pickup_longitude, pickup_latitude),
          ST_Point(pickup_longitude, pickup_latitude) as geometry
        FROM read_csv('cabcsvs/yellow_tripdata_2015-01.csv')`);

	// runs a query every 8 seconds and record memory usage
	const spatialquery = `SELECT ST_AsGeoJSON(geometry) AS geometry FROM yellowcab WHERE 1=1 LIMIT 10000`;
	while (true) {
		const con = await db.connect();
		const rows = await con.all(spatialquery);

		const duckMemUsage = await con.all("FROM duckdb_memory()");
		con.close();
		var totalDuckBytes = BigInt(0);
		for (i = 0; i < duckMemUsage.length; i++) {
			totalDuckBytes += duckMemUsage[i]["memory_usage_bytes"];
		}
		const byteConverter = BigInt(1024);
		const mbBytes = totalDuckBytes / (byteConverter * byteConverter);
		const mbBytesConverted = Number(mbBytes);

		const memory = process.memoryUsage();
		const rss = memory.rss / (1024 * 1024);
		const heapTotal = memory.heapTotal / (1024 * 1024);
		const heapUsed = memory.heapUsed / (1024 * 1024);

		console.log(
			`data size: ${rows.length}, rss: ${rss} heapTotal: ${heapTotal} heapUsed: ${heapUsed}, total_duckdb_memory: ${mbBytesConverted}`
		);
		stream.write(`${rss},${heapTotal},${heapUsed},${mbBytesConverted}\n`);

		// sleep for 8 secs
		await new Promise((resolve) => setTimeout(resolve, 8000));
	}
}

main();

Code output:
data size: 10000, rss: 2742.94140625 heapTotal: 10.1640625 heapUsed: 6.155059814453125, total_duckdb_memory: 2746
data size: 10000, rss: 2769.62109375 heapTotal: 9.1640625 heapUsed: 7.6310882568359375, total_duckdb_memory: 2731
data size: 10000, rss: 2797.11328125 heapTotal: 8.6640625 heapUsed: 7.7027740478515625, total_duckdb_memory: 2731
data size: 10000, rss: 2836.203125 heapTotal: 11.6640625 heapUsed: 7.627738952636719, total_duckdb_memory: 2731
data size: 10000, rss: 2865.05078125 heapTotal: 10.4140625 heapUsed: 7.79638671875, total_duckdb_memory: 2746
data size: 10000, rss: 2893.4453125 heapTotal: 11.1640625 heapUsed: 7.542449951171875, total_duckdb_memory: 2731
data size: 10000, rss: 2922.59375 heapTotal: 10.1640625 heapUsed: 7.464408874511719, total_duckdb_memory: 2731
data size: 10000, rss: 2952.0234375 heapTotal: 11.6640625 heapUsed: 7.512763977050781, total_duckdb_memory: 2731
data size: 10000, rss: 2980.7734375 heapTotal: 10.6640625 heapUsed: 7.572906494140625, total_duckdb_memory: 2731
data size: 10000, rss: 3009.08203125 heapTotal: 11.4140625 heapUsed: 7.5734710693359375, total_duckdb_memory: 2731
data size: 10000, rss: 3036.74609375 heapTotal: 10.4140625 heapUsed: 7.503257751464844, total_duckdb_memory: 2731
data size: 10000, rss: 3065.7890625 heapTotal: 11.9140625 heapUsed: 7.587837219238281, total_duckdb_memory: 2731
...

Memory usage graph with running it for ~ 1hr:

Workaround:
To work around this I just return back the WKB blob and then I can package that up into GeoJSON using the WKX npm package to parse the raw WKB blob
const { Database } = require("duckdb-async");
const fs = require("fs");
var wkx = require("wkx");

async function main() {
	// csv output for tracking memory
	const path = "./data.csv";
	fs.writeFileSync(path, `rss,heapTotal,heapUsed,total_duckdb_memory\n`);
	const stream = fs.createWriteStream(path, { flags: "a" });

	// create db from ny taxi csv
	const db = await Database.create(":memory:");
	await db.run(`INSTALL spatial; LOAD spatial`);
	await db.run(`INSTALL spatial;
        LOAD spatial;
        CREATE TABLE yellowcab AS
        SELECT * EXCLUDE (pickup_longitude, pickup_latitude),
          ST_Point(pickup_longitude, pickup_latitude) as geometry
        FROM read_csv('cabcsvs/yellow_tripdata_2015-01.csv')`);

	// runs a query every 8 seconds and record memory usage
	const spatialquery = `SELECT ST_AsWKB(geometry) AS geometry FROM yellowcab WHERE 1=1 LIMIT 10000`;
	while (true) {
		const con = await db.connect();
		const rows = await con.all(spatialquery);
		const geojson = translateToGeoJSON(rows);

		const duckMemUsage = await con.all("FROM duckdb_memory()");
		con.close();
		var totalDuckBytes = BigInt(0);
		for (i = 0; i < duckMemUsage.length; i++) {
			totalDuckBytes += duckMemUsage[i]["memory_usage_bytes"];
		}
		const byteConverter = BigInt(1024);
		const mbBytes = totalDuckBytes / (byteConverter * byteConverter);
		const mbBytesConverted = Number(mbBytes);

		const memory = process.memoryUsage();
		const rss = memory.rss / (1024 * 1024);
		const heapTotal = memory.heapTotal / (1024 * 1024);
		const heapUsed = memory.heapUsed / (1024 * 1024);

		console.log(
			`data size: ${rows.length}, rss: ${rss} heapTotal: ${heapTotal} heapUsed: ${heapUsed}, total_duckdb_memory: ${mbBytesConverted}`
		);
		stream.write(`${rss},${heapTotal},${heapUsed},${mbBytesConverted}\n`);

		// sleep for 8 secs
		await new Promise((resolve) => setTimeout(resolve, 8000));
	}
}

function translateToGeoJSON(data) {
	const columns = Object.keys(data[0]);

	return {
		type: "FeatureCollection",
		features: data.map((row) => formatFeature(row, columns)),
	};
}

function formatFeature(values, columns) {
	var feature = {
		type: "Feature",
		properties: {},
		geometry: {},
	};

	for (let i = 0; i < columns.length; i++) {
		const value = values[columns[i]];

		if (columns[i] == "geometry") {
			let wkbBuffer = values[columns[i]];
			var geometry = wkx.Geometry.parse(wkbBuffer);
			feature.geometry = geometry.toGeoJSON();
		} else {
			if (columns[i] == "OBJECTID") {
				if (!isValidId(value)) {
					console.warn(`Invalid ID value: ${value}`);
				}
			}
			feature.properties[columns[i]] = value;
		}
	}
	if (!isValidGeometry(feature.geometry)) {
		console.warn(
			`Invalid coordinates: ${feature.geometry.coordinates}, setting to [0, 0]`
		);
		feature.geometry.coordinates = [0, 0];
	}
	return feature;
}

function isValidGeometry(geometry) {
	return (
		!Number.isNaN(geometry.coordinates[0]) &&
		!Number.isNaN(geometry.coordinates[1])
	);
}

main();

After doing the workaround the memory leak is resolved 👍

Hello! thanks for the great investigation, I think I know where the issue is but It's a bit late here so I will push a PR tomorrow once I get into the office.

No prob!! Thanks so much for your hard work. I'm blown away how fast DuckDB and its amazing for our use case with geospatial data :D

Thank you!! @Maxxen 👍


chore(dependencies): upgrade sass-loader

Description
Upgrades sass-loader to the latest version that support WebPack4, so that we can use webpackImporter: false option  to disable sass-loader's custom Sass importer that was one of the bottlenecks of Storybook build.
sass-loader's custom Sass importer is meant for non-standard @import with ~, what resolves dependencies in node_modules. However, we are guiding our users to use SASS_PATH environment variable or includePaths option in node-sass.
Also:

Introduces cache-loader in there to further boost the performance.
Upgrades css-loader, node-sass and style-loader.

Changelog
Changed

Uses cache-loader for Sass build.
Starts using sass-loader instead of fast-sass-loader, for the sake of webpackImporter: false.
Upgrades css-loader, node-sass and style-loader.

Note: http://ibmdotcom-react-canary.mybluemix.net/ does not seem to reflect carbon-design-system/carbon#7093 and carbon-design-system/carbon#7518 somehow which seems to have caused Percy errors.

Note: http://ibmdotcom-react-canary.mybluemix.net/ does not seem to reflect carbon-design-system/carbon#7093 and carbon-design-system/carbon#7518 somehow which seems to have caused Percy errors.

All of the icons are bumped down a pixel or two, which is why we're seeing all the diffs. Any thoughts why this is happening?

All of the icons are bumped down a pixel or two, which is why we're seeing all the diffs. Any thoughts why this is happening?

@jeffchew The humber icon diff is caused by https://github.com/carbon-design-system/carbon/pull/7093/files#diff-89fd4df83e945a84c57fde50daa364196c3ee93c104fc29e883f1f511d251ac6R95-R97. The lang selector X icon diff is caused by https://github.com/carbon-design-system/carbon/pull/7518/files#diff-2d8f4b8c5cc37d2869d1f6ac7a1a1ceb847d8634c26c7bf48fe69f0305dcd084R447.

It appears everything with an x icon is affected? This is seen in Web components.

Thank you! Please give me a min to go through the diffs. Maybe they are intentional since the fixes seem to be made for a reason. just wanna double check.

Thank you! Please give me a min to go through the diffs. Maybe they are intentional since the fixes seem to be made for a reason. just wanna double check.

Thank you @shixiedesign, I'm holding back on approving the diffs but otherwise the webpack changes look fine to me @asudoh 👍

Thanks @shixiedesign and @jeffchew for reviewing - And expressive button is great to bring up, seems that http://ibmdotcom-web-components-canary.mybluemix.net/?path=/story/components-expressive-modal--default has wrong paddings (and thus wrong height). The deploy preview one has correct height (48px IIUC).

Yes there are some good diffs! But these two are not right. Should we create issues?

Hamburger icon is not centered any more. Original is correct

X icon in dropdown got brighter. Original is correct

Thank you for the details @shixiedesign!

Hamburger icon is not centered any more. Original is correct

Found that our code has an adjustment that doesn't work with upstream Carbon core change (change in approach wrt how to center the icon). Fixed.

X icon in dropdown got brighter. This affects Micro footer and Dotcom shell. Original is correct

Carbon core made it from $icon-02 to $icon-01, do you mean we should make a customization to change it back...?

Thank you for catching me up. By the look of it, the icon token change should be intentional. Lemme trace back to Carbon designers just to confirm.

Hey @asudoh looks like hamburger is fixed but now Search icon is bumped 1px too high 😅 Can it be looked at again?

And I confirmed icon-01 update is intentional and approved the diff. Thanks!!


Github public signing key expired

Hey,
The public signing key of Github has expired on 16.01.2024 and not renewed. During installation you get the warning.
pub   rsa2048/4AEE18F83AFDEB23 2017-08-16 [SC] [expired: 2024-01-16]
      5DE3E0509C47EA3CF04A42D34AEE18F83AFDEB23
uid                 [ expired] GitHub (web-flow commit signing<EMAIL_ADDRESS>
pub   rsa4096/B5690EEEBB952194 2024-01-16 [SC]
      968479A1AFF927E37D1A566BB5690EEEBB952194
uid                 [ unknown] GitHub<EMAIL_ADDRESS>
https://github.com/web-flow.gpg -> 4AEE18F83AFDEB23
https://keyserver.ubuntu.com/pks/lookup?search=968479A1AFF927E37D1A566BB5690EEEBB952194&fingerprint=on&op=index
Discussion: https://github.com/orgs/community/discussions/89880
Github announcement: https://github.blog/2024-01-16-rotating-credentials-for-github-com-and-new-ghes-patches/

We addressed the problem with the expired Webflow key already for the v1.110.0 release.

We addressed the problem with the expired Webflow key already for the upcmming v1.11.0 release.

Can you point to the file where the fix is?

Basically update the following script: https://github.com/raspiblitz/raspiblitz/blob/dev/home.admin/config.scripts/blitz.git-verify.sh

Looks good now. Closing issue.


⚠ Roblox has degraded performance

In 137c8aa, Roblox (https://www.roblox.com) experienced degraded performance:

HTTP code: 200
Response time: 1170 ms

Resolved: Roblox performance has improved in 9bb4601.


Sidecar and Core API documentation

With Stacks 2.0, we have to rethink how we document the node APIs.
Right now, we simply link to the "Stacks Node API": https://core.blockstack.org/. The refs include mostly v1 endpoints.
Issue
With the addition of Stacks 2.0 and the Sidecar, we now have v1 and v2 core endpoints in addition to sidecar endpoints. It is unclear what the documentation should link to and how it should introduce the APIs.
Proposal
In order to make it easier for developers to understand what to use, we propose to point them to the Sidecar APIs:

Add a "Stacks Blockchain API" intro page that briefly explains the functionality provided and how it fits together architecturally. It would link to the core API ref (https://core.blockstack.org/) and describe that it is a wrapper, proxying to some core API endpoints.
Replace the "Stacks Node API" reference link in the nav with a "Stacks Blockchain API" ref (https://blockstack.github.io/stacks-blockchain-sidecar/)
Replace all links to "Stacks Node API" in the docs with links to https://blockstack.github.io/stacks-blockchain-sidecar/

Questions

@kantai: Will the core node v1 endpoints continue to exists? Will the new v2 core endpoints be documented in https://core.blockstack.org/?
@kantai: Are we OK mainly pointing devs to the sidecar project as opposed to the core node API? Implications?
@zone117x: Are we OK for the sidecar API documentation to be the "source of truth"? Implications?

Noting that we already have v2 node RPC docs here: https://docs.blockstack.org/core/smart/rpc-api.html
I would personally recommend holding off on committing to new properties (like at blockstack.github.io) until we have our new docs engineer on the team. There is no good reason these things can't all live in the same place.

ah, now we have v1 docs, v2 docs and sidecar docs it seems. I don't think there's a need for all 3.
Considering all of the complexity and the lack of urgency, should we put this on the back burner until the new docs eng joins @kyranjamie?

@kantai: Will the core node v1 endpoints continue to exists? Will the new v2 core endpoints be documented in https://core.blockstack.org/?

We are going to try to ensure some backwards compatibility with v1 endpoints. We don't have any plans currently to document specifically at core.blockstack.org, and I'd be open to hosting the API documentation basically anywhere.

@kantai: Are we OK mainly pointing devs to the sidecar project as opposed to the core node API? Implications?

Fine by me -- however, I don't think this removes the need for the core node API to be documented in the core node's repo. For anyone that's consuming the core node API (including the side car, but also things like transaction libraries), they're going to need the API spec. The "source of truth" for that spec should be the stacks-blockchain repository. Otherwise, it'll be very difficult to insure that PRs on the stacks-blockchain repository include the requisite documentation updates. See for example: https://github.com/blockstack/stacks-blockchain/pull/1510 -- this PR changes an HTTP interface, and includes the updates in the stacks-blockchain documentation. A process where that PR would need to be implemented and reviewed across multiple repositories, is, I think, untenable.

The objective of this proposal is to reduce fiction for developers, and work for us.
With the introduction of the sidecar, we now have documentation in both the link @hstove shared, and the generated docs in the sidecar, updated today with the core node endpoints.
How common of a use case will be it for blockstack developers to need to access both the sidecar and the core node RPC? One example, @zone117x provided, was library developers not wanting to trust another web server. Are there many any other cases, where the proxy won't suffice?
If not, it's a big win to point devs straight to a single API and docs, than two.


Some services require the X-Amz-Security-Token not be in the canonical string for signed querystring requests

When using STS tokens, the X-Amz-Security-Token is currently always included in the canonical (signed) request, but should only be included for some services.
Relevant documentation in the top most note on this page: https://docs.aws.amazon.com/general/latest/gr/sigv4-add-signature-to-request.html quoted here for completion:

You can use temporary security credentials provided by the AWS Security Token Service (AWS STS) to sign a request. The process is the same as using long-term credentials, but requires an additional HTTP header or query string parameter for the security token. The name of the header or query string parameter is X-Amz-Security-Token, and the value is the session token (the string you received from AWS STS when you obtained temporary security credentials).
When you add the X-Amz-Security-Token parameter to the query string, some services require that you include this parameter in the canonical (signed) request. For other services, you add this parameter at the end, after you calculate the signature. For details, see the API reference documentation for that service.

The list of which services is with or without the token in the signed request, is yet to be found anywhere?
Relevant: https://github.com/mhart/aws4/issues/30

Faced this exact issue now with the IOT service! Thanks man!


Handle commands from robot owner

Setup the following basic commands:

Table mode

Dev Mode

Battery Level?

battery level was not addressed, but the rest of the commands are done


Extending Snapshot Historical Record

Can you extend snapshot of  running queries from 1 hour to 2 hours or more?

Change the highlighted dropdown


Feature Request:

Implement Tapo Care features.
Tapo Care is a paid subscription service that reinstates auto tracking controllable in home assistant and also provides AI for person detection.
A binary sensor for person detection would be a very useful thing in home assistant. For example, this would mean there really is someone at the door.
Maybe there are other sensors too if you have Tapo Care.

Duplicate of https://github.com/JurajNyiri/HomeAssistant-Tapo-Control/issues/126 .


Add Redefine and Override annotations

This PR introduces two annotations:

@[Redefine]: when you redefine a method, that is, you replace an existing method with another one
@[Override]: when you define a method in a subtype that's present up in the type hierarchy

You can find examples in the specs in the diff.
The semantic is not that straightforward. Let's consider each annotation.
Redefine
I first named this Overwrite but I think it would be very confusing to have Override and Overwrite, and Redefine is much clearer.
This is this case:
class Foo
  def foo(x)
  end
end

class Foo
  @[Redefine]
  def foo(x)
  end
end

The above example compiles fine: same method name, same arguments and same restrictions (none). But what if there are some type restrictions? We can have:
# 1. Redefines 👍
# before
def foo(x)
# after
def foo(x : Int32)

# 2. Doesn't redefine 👎
# before
def foo(x : Int32)
# after
def foo(x)

# 3. Doesn't redefine 👎
# before
def foo(x : Int32)
# after
def foo(x : String)

In case 1 it redefines because the previous method allowed an Int32 as an argument, and now we are redefining that behaviour. We are not redefining it for all of the types, but if it happens for at least one of them then the annotation applies.
(maybe later we can introduce a flag on the attribute to allow partial redefines like this or not, but I don't know if it's necessary)
In case 2 it doesn't redefine because if we pass an Int32, the compiler will still choose the previous definition.
In case 3 the type restrictions are different so it doesn't redefine.
Override
This is this case:
class Foo
  def foo(x)
  end
end

class Bar < Foo
  @[Override]
  def foo(x)
  end
end

The above example compiles fine: same method name, same arguments and same restrictions (none). But what if there are some type restrictions? We can have:
# 1. Overrides 👍
# ancestor
def foo(x)
# self
def foo(x : Int32)

# 2. Overrides 👍
# ancestor
def foo(x : Int32)
# self
def foo(x)

# 3. Doesn't override 👎
# ancestor
def foo(x : Int32)
# self
def foo(x : String)

In case 1 it overrides: there's a stricter type restriction so if we invoke Bar.new.foo(1) it will call the method in Bar and not in Foo.
In case 2 it also overrides, unlike the Redefine case, because it's in a subtype: if we pass an Int32 to Bar#foo then it will consider that method (there's no multiple dispatch here).
In case 3 the restrictions are different so it doesn't overwrite.
Caveats
Now for the caveats: I don't consider this implementation complete, but just because the whole language and all of its semantic implementation (or even definition) is incomplete. For example, right now we can redefine a method with a different argument name:
class Foo
  def foo(x)
  end
end

class Foo
  # This actually redefines the above method
  def foo(y)
  end
end

But if we invoked the first method like foo(x: 1) then now it won't compile... so in short, we are not taking names into account when redefining methods or when considering overloads. But this is a discussion to be held somewhere else.
Then, return types are also not taken into account when overriding/redefining, so here it's fine to do that and change the return type, it will compile just fine. But that's also a discussion to be held somewhere else.
In the worst scenario, if you try to use these annotations and there's a bug or limitation in the compiler preventing you to use them, you just don't use them until these bugs/limitations are fixed. Nobody is forcing you to use them (but they are useful to be more explicit about what you are trying to do).
How it relates to docs
This PR doesn't modify the way docs are generates. I'd like to tackle that in a separate PR. Basically, if you redefine or override a method and don't provide additional doc comments, the doc generator should use the other method's docs. For this we'll have to store the "other" method somewhere, but doing so will make the compiler use more memory, so I'd like to find a better way to do that, maybe store these relationship outside of the AST nodes, so that the memory is only used when needed (I'm thinking a Hash could be enough). Also, we'll have to repeat the logic of finding the redefined/overridden method, so I'd like to refactor that too in a next PR.

Fixes #1647

I forgot to mention, but the usefulness of these annotations are:

making sure you redefine/override something and that you don't have typos when doing so
a clearer code intent

No idea why one of the CI failed:
Nil assertion failed at /mnt/spec/std/signal_spec.cr:45 (Exception)

  from src/nil.cr:107:5 in 'not_nil!'

  from spec/std/signal_spec.cr:0:23 in '->'

  from src/signal.cr:255:3 in '->'

  from src/signal.cr:255:3 in 'process'

  from src/signal.cr:198:9 in '->'

  from src/fiber.cr:255:3 in 'run'

  from src/fiber.cr:75:34 in '->'

  from ???

FATAL: uncaught exception while processing handler for CHLD, exiting

I think I've seen that CI exception before...

In my humble opinion case 2 of override is confusing and it will get mixed up with case 2 for redefine.
I think that if someone had a really strong type restriction in ancestor, he will want to keep it for subtypes, not make it weaker.
Also you will get a really nice rule about this kind of situations: tt won't work if you go from less restrictive type to more restrictive type. Grasping this for people will be a lot easier and language won't get complicated and will still feel very light.

The thing is that case 2 is already being used in the compiler:
class ASTNode
  def restriction_of?(other : ASTNode, owner)
    self == other
  end
end

class Self
  # I want to say that this overrides a case for the `restriction_of?` method and I want
  # to make sure I didn't screw it up by having a typo
  def restriction_of?(type : Self, owner)
    true
  end
end

That's the reason case 2 works like that: if I myself can't use it in the compiler what's the point? :-)

I don’t like the syntax. Square brackets with at symbol look awful.

@asterite Our of curiosity, how does the OverrideChecker perform? I suspect it shouldn't have much impact on compilation time.

I guess it depends on the number of annotations. I added a few and it was like 0.04s

This might not be a reasonible case but what happens if these are combined?
class Foo
  def baz
  end
end

class Bar < Foo
  def baz
  end

  @[Overwrite]
  def baz
  end

  @[Redefine]
  def baz
  end
end

It could happen with open classes or something but I dont know if it is valid to check against.

  @[Overwrite]
  def baz
  end

My understanding is that @[Overwrite] was renamed to @[Redefine], so that's probably not valid. Maybe you mean @[Override] instead, thus?:
# ...

  @[Override]
  def baz
  end

  @[Redefine]
  def baz
  end

#...

It could happen with open classes or something but I dont know if it is valid to check against.

That should probably depend on the order they're added?

I see no problem with the above code.

If @[Redefine] will allow to have documented abstract methods that can be implemented elsewhere, yet keep their documentation, then it's a strong :+1: for me.
I'd love to refactor Crystal::System to implement abstract core/stdlib methods, versus oneliner method delegations, virtual types and more methods that bloat the source, the AST, and that LLVM must inline.

Would such a design phase ever happen?

Looks like I have a super-power of cancelling features just by saying that I need them :sweat_smile:

Does having this type of features behind a flag can be an option? This will bring user feedbacks, and the work won't be lost in the deep closed PR abyss.

@j8r I don't want to push a feature without a proper design phase, it doesn't matter if it's behind a feature flag. I pushed many features and stuff in the language without thoroughly thinking it and now I regret it (for example JSON::Serializable and user-defined attributes). Now it's time to rethink the language, keep what works and remove the excess (in my opinion).

@asterite don't regret what you have done.
It's not easy to know in advance what will work for the users or not. Without experimenting, we won't know at all :)
The only thing is it would be better in the future to have edge features behind flags (like annotations, too late), to ease the modification/removal of them like you said, without breaking the "stable" API.

Hello guys, i'm just a fan of crystal, but i have a suggestion.
I don't know how difficult it could be.
Why not have this feature as optional?
When used it must be checked, when not used, work like is today.

@LeandroRezendeCoutinho As far as I know, this feature would only be optional. It just hasn't been implemented yet because we need properly designed semantics first. That design process hasn't started.


Flutter Frame Tracking Integration

Flutter allows the developer to read how long it took for a frame to draw. See FrameTiming.
It would be nice if Sentry attaches a listener and sends events or add breadcrumbs if a frame took to long to draw.
Since there's no performance tracing yet, I can imagine that it's not that useful since you don't really know what caused dropped frames. Though the NavigatorObserver should help with that.

I don't think this as events or breadcrumbs are useful as they won't know where/how to fix it, this would fit either our measurements or metrics product which is being worked on as we speak.
See eg https://github.com/getsentry/sentry-cocoa/pull/1123
it requires the performance API so its blocked by it

In one of the recent Flutter versions (either 2.5 or 2.8) your now able to read the current frame number and FrameTiming also got a frame number property.
This should make it possible to get at least somewhat useful metrics.

There's also https://api.flutter.dev/flutter/scheduler/SchedulerBinding/addPersistentFrameCallback.html which gets called every frame.

After raising the min versions of Dart and Flutter, the detection of slow and frozen frames is possible in pure Dart code without having to rely on native code. Thus that feature could be implemented for Linux and Windows. (Maybe on the canvaskit renderer on web too?) I believe the current implementation needs some changes to enable that though.

After raising the min versions of Dart and Flutter, the detection of slow and frozen frames is possible in pure Dart code without having to rely on native code. Thus that feature could be implemented for Linux and Windows. (Maybe on the canvaskit renderer on web too?) I believe the current implementation needs some changes to enable that though.

Yes, I believe that would be the goal, getting the values directly from Skia instead of the Native SDKs.

Closed because of https://github.com/getsentry/sentry-dart/pull/1271#issuecomment-1562970140
We can reevaluate this in case we learn more or find out that this is actually possible within our current data model.


Update docstring

You've been a great contributor to this project, and I've just given you push access. For large or substantial changes I'd still like to use pull requests, but for little changes like this please feel free to directly push changes. I'm happy to do pull requests for everything, though...whatever you're most comfortable with.

Awesome! Thanks for giving me push access. I will continue to do pull requests for substantial changes because I prefer having a code review before merging.


[SPARK-41931][SQL][FOLLOWUP] Refine example more useful

What changes were proposed in this pull request?

This is follow-up for https://github.com/apache/spark/pull/39711 to refine the example based on comment from https://github.com/apache/spark/pull/39705/files/001c0c1abd861abb9a512129475b1f320b512bd3..e969975c42f0c5066762c7907f723c3e4cda27d7#r1090987024
Why are the changes needed?

We should provide reproducible and useful example in user-facing error message.
Does this PR introduce any user-facing change?

No
How was this patch tested?

The existing CI should pass

cc @srielau follow-up for https://github.com/apache/spark/pull/39705/files/001c0c1abd861abb9a512129475b1f320b512bd3..e969975c42f0c5066762c7907f723c3e4cda27d7#r1090987024.
also cc @MaxGekk @cloud-fan FYI

Merged to master.


Saleor 3583 introduce job payloads

I want to merge this change because...

Impact

[ ] New migrations
[ ] New/Updated API fields or mutations
[ ] Deprecated API fields or mutations
[ ] Removed API types, fields, or mutations
[ ] Documentation needs to be updated

Pull Request Checklist

[ ] Privileged queries and mutations are guarded by proper permission checks
[ ] Database queries are optimized and the number of queries is constant
[ ] Database migration files are up to date
[ ] The changes are tested
[ ] GraphQL schema and type definitions are up to date
[ ] Changes are mentioned in the changelog

Task linked: SALEOR-3583 Introduce EventPayloads for Webhooks tasks

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: jakubkuc:x: Damian WDamian W seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


bringing the terraform state hack inside the cndi binary

Currently the way terraform state is maintained is within GitHub Actions. This works fine, but the code needs to be reimplemented within each supported CI systems (GitLab, etc.). What if the calls to git checkout _state, gpg --symmetric ... git add terraform.tfstate.gpg etc. were made inside the binary?

PR: https://github.com/polyseam/cndi/pull/105


SET-NET Ingest Data from SAMS Portal as XML files

@RuDue commented on Mon Nov 28 2022

Parked waiting for creation of SET-NET repo


Merge changes in Master back to Devel

Merging master branch back to Devel to prevent future merge conflicts

Merging changes to Master back in Devel


Missing Windows Version

Added missing Windows version in the document.
Problem: https://github.com/MicrosoftDocs/windows-itpro-docs/issues/5511

#sign-off

Hi @DulceMontemayor & @Dansimp, this PR is ready for your review and approval. It's a minor change and if you see no issues with it, please merge. Thank you.
@officedocsbot assign @DulceMontemayor


Highlight not always working with double click to select word

Highlight selected doesn't seem to always work when you double click on a word to select it.

gif showing double clicking on items doesn't highlight other instances of that token in the buffer. Yet double clicking on originalPrice does work. Then using the keyboard to select items works.

$ atom --version
0.207.0
$ apm list | grep lint
├──<EMAIL_ADDRESS>

Is that PHP?

@richrace Yes, it's PHP. I feel like I've seen the issue in other source grammars too, but I can't reproduce it now in some other sources I'm currently working with.

It doesn't work at all in C#

Do you have some example code that demonstrates your issue?

Absolutely anything in C#.
I can double-click on a word and see it get highlighted, but it doesn't get that selected-outline around it, and doesn't appear any different in the minimap.  Atom is also not displaying any selection outline around any of the other matching text in the regular editor screen.  I do have minimap-highlight-selected installed, with Atom 1.3.0 (wasn't working in 1.2.4 either) on OSX.

Can you please tell me what settings you have in the highlight-selected package?
Works here.

It's either enabled or disabled.  There are no settings for it.
I have it enabled.

minimap-highlight-selected is a plugin for the minimap which uses the highlight-selected package. So you need both installed:


A11y: The selected icon is missed with radio button in Windows high contrast model - version 9 support

We fixed for v10 in https://github.com/IBM/carbon-components-react/issues/1850
But support is required for v9, as per https://github.ibm.com/Bluemix/Bluemix.UnifiedSupport/issues/1873. @dakahn, could you take a look at this and scope effort of fix?

Still needs to be backported
not stale ⚡

@dakahn Any update for this?

No update as of yet. Are you up for backporting the v10 fix @icemanlily?

@dakahn IBM Cloud has no plan to update Carbon v10. So we must wait for this v9 support.

@icemanlily sorry if I wasn't clear -- I meant we're looking for help backporting the v10 fix to v9 if you're up for it.


Suggestion and question.

Hello, you can add the function of running 1 file in different "pitch". For example, I process 1 file and get 4 audio files with different "pitch" output. And so that you can choose the "pitch" range from -5 to -2, for example (the same 4 files). To quickly understand which "pitch" is more suitable. And also the question, what is the best learning rate to set?
p.s And do I need to choose a language for the whisper model somewhere? Or does he define it himself?

whisper large is multilingual model, whisper audio encoder use in this project can be used as language indepnedent.
what is the best learning rate to set? There is no best setting for  learning rate.
To quickly understand which "pitch" is more suitable.  I can try it.


two-bedrock-interval

Thank you so much for this tool.
I am trying to get it going on my Docker on my Synology and admit I am a novice.
I am running two Minecraft worlds and attempting to backup both.
The issue is the second world backup is not outputing the file in a mcworld format.
The first world backup exports the world perfectly as a *.mcworld, (/volume1/docker/Backup/Hallys Temple.etc.mcworld).
But then the second world is placed insde a subfolder in a compressed file format (/volume1/docker/Backup/Dreamwyn 07/12/2SH1JA~F).
Obviously, the backup of the second world is functional for restoring purposes but I thought you maybe interested in the output naming structure of the secondary world.
Here is my docker-compose.yml for reference;
version: '3.7'

services:
  backup:
    image: kaiede/minecraft-bedrock-backup
    restart: unless-stopped
    depends_on:
      - "Hallys_1st"
      - "Dreamwyn"
    environment:
        TZ: "Australia/Brisbane"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /volume1/docker/Backup:/backups
      - /volume1/docker/Minecraft/1st:/Hallys_1st
      - /volume1/docker/Minecraft/Dreamwyn:/Dreamwyn

  manymine:
    image: illiteratealliterator/manymine
    restart: unless-stopped
    container_name: manymine
    ports:
      - '19135:19132/udp'
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock

  Hallys_1st:
    image: itzg/minecraft-bedrock-server
    restart: unless-stopped
    container_name: Hallys_1st
    environment:
       server-name: "Hallys 1st"
       gamemode: "survival"
       difficulty: "peaceful"
       allow-cheats: "false"
       max-players: "12"
       online-mode: "true"
       white-list: "false"
       view-distance: "32"
       tick-distance: "12"
       player-idle-timeout: "60"
       max-threads: "0"
       level-name: "Hallys Temple"
       level-seed: "2029492581"
       default-player-permission-level: "visitor"
       texturepack-required: "false"
       motd: "Hallys 1st Server"
       version: "LATEST"
       UID: "1028"
       GID: "100"
       EULA: "TRUE"
       ENABLE_AUTOPAUSE: "TRUE"
       PATH: "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
       TZ: "Australia/Brisbane"
    ports:
      - 19132:19132/udp
    volumes:
      - /volume1/docker/Minecraft/1st:/data
    stdin_open: true
    tty: true
    labels:
      - manymine.enable=true

  Dreamwyn:
    image: itzg/minecraft-bedrock-server
    restart: unless-stopped
    container_name: Dreamwyn
    environment:
       PATH: "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
       max-players: "12"
       UID: "1028"
       GID: "100"
       VERSION: "LATEST"
       DIFFICULTY: "peaceful"
       GAMDEMODE: "survival"
       ONLINE_MODE: "true"
       SERVER_NAME: "Dreamwyn"
       EULA: "TRUE"
       ENABLE_AUTOPAUSE: "TRUE"
       allow-cheats: "false"
       white-list: "false"
       view-distance: "32"
       tick-distance: "12"
       player-idle-timeout: "60"
       max-threads: "0"
       level-name: "Dreamwyn"
       default-player-permission-level: "visitor"
       texturepack-required: "false"
       MOTD: "Dreamwyn Server"
       TZ: "Australia/Brisbane"
    ports:
      - 19142:19132/udp
    volumes:
      - /volume1/docker/Minecraft/Dreamwyn:/data
    stdin_open: true
    tty: true
    labels:
      - manymine.enable=true

And then my config.yml;
containers:
  bedrock:
    - name: Hallys_1st
      worlds:
        - /Hallys_1st/worlds/Hallys Temple
    - name: Dreamwyn
      worlds:
        - /Dreamwyn/worlds/Dreamwyn
schedule:
  interval: 3h
trim:
  trimDays: 2
  keepDays: 14
  minKeep: 2

Thanks

Not sure if this is what you need.
I added verboselevel: trace to the end of the config.yml
docker_backup_1 |   |   |   |   |   |   |   |   |   |
-- | -- | -- | -- | -- | -- | -- | -- | -- | -- | --
date | stream | content |   |   |   |   |   |   |   |
2022-07-13T13:16:10.993491590Z | stderr | [23:16:10.993][info    ] Full Backup Completed |   |   |   |
  |   |   |   |   |   |   |   |   |   |
2022-07-13T13:16:10.987475423Z | stderr | [23:16:10.987][info    ] Performing Trim Jobs |   |   |   |
  |   |   |   |   |   |   |   |   |   |
2022-07-13T13:16:10.946104338Z | stderr | [23:16:10.945][info    ] Backups for Dreamwyn finished   successfully... |   |
  |   |   |   |   |   |   |   |   |   |
2022-07-13T13:16:10.945574297Z | stderr | [23:16:10.945][info    ] Backed up as: 22 12:05:19 -   Copy.20220713-231610.mcworld |
  |   |   |   |   |   |   |   |   |   |
2022-07-13T13:16:10.183018614Z | stderr | [23:16:10.182][info    ] Backing Up: Dreamyn 07/12/22 12:05:19 -   Copy |   |
  |   |   |   |   |   |   |   |   |   |
2022-07-13T13:16:10.181871213Z | stderr | [23:16:10.182][info    ] Starting Backup of worlds for: Dreamwyn |   |
  |   |   |   |   |   |   |   |   |   |
2022-07-13T13:16:10.022245429Z | stderr | [23:16:10.022][info    ] Backups for Hallys_1st finished   successfully... |   |
  |   |   |   |   |   |   |   |   |   |
2022-07-13T13:16:10.022079348Z | stderr | [23:16:10.022][info    ] Backed up as: Hallys   Temple.20220713-231609.mcworld |
  |   |   |   |   |   |   |   |   |   |
2022-07-13T13:16:09.515231326Z | stderr | [23:16:09.515][info    ] Backing Up: Hallys Temple |   |   |   |
  |   |   |   |   |   |   |   |   |   |
2022-07-13T13:16:09.514322349Z | stderr | [23:16:09.514][info    ] Starting Backup of worlds for:   Hallys_1st |   |
  |   |   |   |   |   |   |   |   |   |
2022-07-13T13:16:09.247619347Z | stderr | [23:16:09.248][info    ] Starting Full Backup |   |   |   |
  |   |   |   |   |   |   |   |   |   |
2022-07-13T13:16:09.247485393Z | stderr | [23:16:09.247][info    ] Backup Interval: 10800.0 seconds |   |   |
  |   |   |   |   |   |   |   |   |   |
2022-07-13T13:16:09.247371838Z | stderr | [23:16:09.247][info    ] Checking for servers that might not be   cleaned up |   |
  |   |   |   |   |   |   |   |   |   |
2022-07-13T13:16:09.246635467Z | stderr | [23:16:09.247][info    ] Child PTY Handle Opened: /dev/pts/1 (9) |   |
  |   |   |   |   |   |   |   |   |   |
2022-07-13T13:16:09.246597084Z | stderr | [23:16:09.246][info    ] Host PTY Handle Opened: /dev/pts/1 (8) |   |
  |   |   |   |   |   |   |   |   |   |
2022-07-13T13:16:09.246554653Z | stderr | [23:16:09.245][info    ] Child PTY Handle Opened: /dev/pts/0 (4) |   |
  |   |   |   |   |   |   |   |   |   |
2022-07-13T13:16:09.246403585Z | stderr | [23:16:09.244][info    ] Host PTY Handle Opened: /dev/pts/0 (3) |   |
  |   |   |   |   |   |   |   |   |   |
2022-07-13T13:16:09.238490478Z | stderr | [23:16:09.238][info    ] Configuration Loaded, Entering Event   Loop... |   |   |   |   |   |   |   |
2022-07-13T13:16:09.234009027Z | stderr | [23:16:09.234][info    ] Loading Configuration From:   /backups/config.yml |   |
  |   |   |   |   |   |   |   |   |   |
2022-07-13T13:16:09.232776419Z | stderr | [23:16:09.230][info    ] Initializing Bedrockifier Daemon |   |   |
  |   |   |   |   |   |   |   |   |   |
2022-07-13T13:16:09.213034650Z | stderr | time=\2022-07-13T23:16:09+10:00\" level=debug msg=\"stdin is   detached | so forwarding is disabled\" |   |   |   |   |
2022-07-13T13:16:09.212821925Z,stderr,time=2022-07-13T23:16:09+10:00"   level=debug msg="Resolved GID=100 from match path" |   |   |   |   |   |   |   |   |   |
  |   |   |   |   |   |   |   |   |   |
2022-07-13T13:16:09.212722544Z | stderr | time="2022-07-13T23:16:09+10:00"   level=debug msg="Resolved UID=1026 from match path"
  |   |   |   |   |   |   |   |   |   |
2022-07-13T13:16:09.211979438Z | stderr | time="2022-07-13T23:16:09+10:00"   level=debug msg="Using /backups to match uid and gid"

Turns out that is the exact cause of the issue - having the date and time in the world name.
Perhaps it made the file name too long.
Thank you again

The slashes (“/“) are not valid file name characters. The service currently doesn’t guard against world names that are like that, since either it gets the name from the folder (Java, or if the levelname.txt file doesn’t exist) which will not have it, or levelname.txt is usually something simple.
I guess I need to better guard against that sort of thing.


Can I train a robot with two scenes alone?

In detail, what i want is a robot answers questions in two or more scenes, firstly, i have trained a chatbot in mixed scenes-corpus using chatterbot, but it played not very well, and i tried to use chtterbot to build two chatbots trained on different corpus, they can really answer different scenes questions.
But, can i train only one chatbot, split trainers or training corpus to let my chatbot  answer different scenes questions?

@spongejj Yes, you can train a chat bot using multiple trainers. To do this you will have to consecutively change the training setting for each of the different ones you want to use.


Update MusicService.kt to FIX [4.0.1] Crash: com.doublesymmetry.track…

…player.service.MusicService.startAndStopEmptyNotificationToAvoidANR
Update MusicService.kt to FIX [4.0.1] Crash: com.doublesymmetry.trackplayer.service.MusicService.startAndStopEmptyNotificationToAvoidANR
https://github.com/doublesymmetry/react-native-track-player/issues/2244#ref-commit-5dfc0f0

but this doesnt fix any of the underlying problem. if ur app actually crashes with this, this try catch block isnt fixing anything. so for people reporting this "fixes" their problem, this ANR/crash actually does not affect UX to begin with.
While I mostly guessed my answer in the issue thread, it is indeed correct - the reason for startAndStopEmptyNotificationToAvoidANR is to prevent the android limitation that a playback service must start playback within X seconds of it being started. and since MusicModule creates the service when setupPlayer is called, no media playback can be guaranteed and thus this function is used.
And back to the question - why ru seeing this? several possibilities:

your service creation is so late and somehow the activity gets pushed in the background. which is quite unlikely for most people adopted the example app's setup.
your service crashed and attempted to be restarted while your app is in the background state. this is very relevant especially since the 5 seconds no playback kill service option that was recently added. Although I dont think it is actually the case here, as this will severely affect UX and it doesnt appear to be so.

In addition, at least with a full media3 service migration, MusicService appeared to be started by the system automatically as UI will bind to the declared mediaSession.


API Feedback

This issue has been created to capture any feedback regarding the base API implementation included in v0.28.
Please do not ask for new API endpoints as part of this feedback, this is about capturing feedback on the foundation elements (Authentication, Request & Response formats, Parameters, Documentation etc...).

It looks good - it'd be nice to aim for an OpenAPI or Swagger compliant API implementation to make it possible to programmatically generate client implementations using SwaggerGen.
https://swagger.io/

I am having issues with authentication. I created a token, but I continue to get 401 errors stating that no token was found.
curl -k --request GET --url https://<IP_ADDRESS>/api/books --header 'Authorization: token <token_id>:<token_secret>'
{"error":{"code":401,"message":"No authorization token found on the request"}}

@grasshopper139 Have you tried with a capital t on Token within the header value? Although I would expected that to lead to an "incorrect token value" error instead of "no token" error.
Additionally, do you have other stuff running in the middle? Like a reverse proxy?

@MikeyMJCO Thanks for the input. I did originally look to support Swagger/OpenAPI but I felt getting all the data required and working to the exact format was going to take too much time and ongoing effort, at least for now.
I have ensured I've exposed the internal BookStack docs structure, found at /api/docs.json so people can auto-convert that to auto-gen API-apps or attempt to morph the data to other formats if they wish.
In regards to a CLI, I'm happy to support maintenance or operational tasks via the command line as we do now, where it makes sense, but I don't think another full-fledged API interface would be worth maintaining especially since the REST API could be scripted against and cron'd.

@ssddanbrown I have tried with both Upper and Lower case 'T'. I receive the same error in both cases. I have nothing else running in the middle.
.htaccess:
<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews -Indexes
    </IfModule>

    RewriteEngine On

    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)/$ /$1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>

.env:
# Enable DeBugging
# Error log can be found at the path storage/logs/laravel.log
APP_DEBUG=true

# Application key
# Used for encryption where needed.
# Run `php artisan key:generate` to generate a valid key.
APP_KEY=<app_key>

# Application URL
# Remove the hash below and set a URL if using BookStack behind
# a proxy, if using a third-party authentication option.
# This must be the root URL that you want to host BookStack on.
# All URL's in BookStack will be generated using this value.
#APP_URL=https://example.com

# Database details
DB_HOST=localhost
DB_DATABASE=bookstack
DB_USERNAME=<db_username>
DB_PASSWORD=<db_password>

# Mail system to use
# Can be 'smtp', 'mail' or 'sendmail'
MAIL_DRIVER=smtp

# SMTP mail options
MAIL_HOST=localhost
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null

#
# LDAP Configurations
#
# General auth
AUTH_METHOD=ldap

# The LDAP host, Adding a port is optional
#LDAP_SERVER=example.com:389
# If using LDAP over SSL you should also define the protocol:
LDAP_SERVER=ldaps://<ldap_ip>

# The base DN from where users will be searched within
LDAP_BASE_DN=<base_people_ou>

# The full DN and password of the user used to search the server
# Can both be left as false to bind anonymously
LDAP_DN=<ldap_dn>
LDAP_PASS=<ldap_password>

# A filter to use when searching for users
# The user-provided user-name used to replace any occurrences of '${user}'
LDAP_USER_FILTER=(&(uid=${user}))

# Set the LDAP version to use when connecting to the server
LDAP_VERSION=3

# Set the default 'email' attribute. Defaults to 'mail'
LDAP_EMAIL_ATTRIBUTE=mail

# Set the property to use for a user's display name. Defaults to 'cn'
LDAP_DISPLAY_NAME_ATTRIBUTE=cn

# If you need to allow untrusted LDAPS certificates, add the below and uncomment (remove the #)
# Only set this option if debugging or you're absolutely sure it's required for your setup.
LDAP_TLS_INSECURE=true

# Enable LDAP group sync, Set to 'true' to enable.
#LDAP_USER_TO_GROUPS=true

# LDAP user attribute containing groups, Defaults to 'memberOf'.
#LDAP_GROUP_ATTRIBUTE="gidNumber"

# Remove users from roles that don't match LDAP groups.
LDAP_REMOVE_FROM_GROUPS=false
# A full list of options can be found in the '.env.example.complete' file.

httpd.conf:
DocumentRoot "/var/www/BookStack/public"

<Directory /var/www/BookStack/public>
    Require all granted
    AllowOverride All
    Options +FollowSymlinks

    RewriteEngine On

    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</Directory>

<IfModule dir_module>
    DirectoryIndex index.html
</IfModule>

<Files ".ht*">
    Require all denied
</Files>

<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Require all granted
</Directory>

@grasshopper139 try double quoting the token in Curl. It treats ":" as a special delimiter.
So try: curl -k --request GET --url https://<IP_ADDRESS>/api/books --header "Authorization: token <token_id>:<token_secret>"

@MikeyMJCO I get the same error. I even tried escaping the ':'.

Just tested on my end and the curl command works perfectly - we're running on Nginx though.

I found the solution. In case anyone else runs into this issue using Apache on CentOS.
It seems that Apache was stripping the Authorization header. Adding this line to httpd.conf resolved the issue.
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1

I am having issues with authentication. I created a token, but I continue to get 401 errors stating that no token was found.
curl -k --request GET --url https://<IP_ADDRESS>/api/books --header 'Authorization: token <token_id>:<token_secret>'
{"error":{"code":401,"message":"No authorization token found on the request"}}

I'm having the same issue, tried suggested fixes here, no luck. Running apache on ubuntu 16.04

I am having issues with authentication. I created a token, but I continue to get 401 errors stating that no token was found.
curl -k --request GET --url https://<IP_ADDRESS>/api/books --header 'Authorization: token <token_id>:<token_secret>'
{"error":{"code":401,"message":"No authorization token found on the request"}}

I'm having the same issue, tried suggested fixes here, no luck. Running apache on ubuntu 16.04

@lithium-ap  you may add this  commit lines on your .htaccess file .
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

I am having issues with authentication. I created a token, but I continue to get 401 errors stating that no token was found.
curl -k --request GET --url https://<IP_ADDRESS>/api/books --header 'Authorization: token <token_id>:<token_secret>'
{"error":{"code":401,"message":"No authorization token found on the request"}}

I'm having the same issue, tried suggested fixes here, no luck. Running apache on ubuntu 16.04

@lithium-ap you may try by add this  commit lines on your .htaccess file .
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

Yes, this worked. Thank you!

Not sure if this is off topic, or violates the spirit of this issue. Are we able to POST a doc? I'm not seeing in documentation.

@lithium-ap Only Book endpoints are supported right now. Wanted to ensure the base stuff (Auth, docs, API format) was good before expanding it out.

@lithium-ap Only Book endpoints are supported right now. Wanted to ensure the base stuff (Auth, docs, API format) was good before expanding it out.

Thanks. I had no issues other than the header authorization that was fixed by adding the information to the .htacess. Looking forward to syncing information from passportal to bookstack!

Tested on Debian10 + Nginx and it works flawlessly. Thanks for the good work. This looks very promising.

Working great on Ubuntu 18.04 and Apache, thanks so much. I'm looking forward to more endpoints (e.g. adding new chapters and pages to books)

hi, thanks for the running api :) Is it possible to create books via the api directly within a shelf?

Hi @TheVeggie, Not at the moment, you'd have to do at least two operations (Create book then update shelf). Might also have to fetch the shelf first unless you already know the books on it.

thank you :) @ssddanbrown

Good Morning,
It would be nice to have a API option that allows me to append to a existing book. I would love to create a book that can act as a log for some of the projects I am working on.

@ssddanbrown hi, thanks for building the api. I missing the following things at the moment:

get full imagePath instead of image_id so i display book cover images etc.
GET, PUT profile information
GET, POST, PUT, DELETE Pages
use the api with user credentials
GET theme data (Application Primary Color etc.)

Background: I would like to develop a native android and ios app for bookstack using flutter. It would be awesome, when you extend the current api, so i am able to implement though things like view all data, create, update pages, and the native app follow the theme, your are set in the settings

Thanks everyone for your feedback. As of v0.31 we now have core CRUD actions for shelves, books, chapters and pages: https://www.bookstackapp.com/blog/beta-release-v0-31-0/#api-update---pages
Additionally, I have setup a repo to house some API script examples that can be used as a base or for reference:
https://github.com/BookStackApp/api-scripts
Therefore I'm going to close this off but feel free to open new issues if you have a legitimate need for additional specific endpoints or features.

Thanks everyone for your feedback. As of v0.31 we now have core CRUD actions for shelves, books, chapters and pages: https://www.bookstackapp.com/blog/beta-release-v0-31-0/#api-update---pages
Additionally, I have setup a repo to house some API script examples that can be used as a base or for reference:
https://github.com/BookStackApp/api-scripts
Therefore I'm going to close this off but feel free to open new issues if you have a legitimate need for additional specific endpoints or features.


Update cookiecutter

Proposed changes
Closes #307. Just a small PR to update the cookiecutter template a little bit (will save more major changes related to #313 in another PR) and tried to include a bit more instructions related to creating a snakebids app. Added a few new cookiecutter variables to (e.g. _bids_version), but open to changing those or making them a user prompt. I filled in some of the prompts with default values. Also made the documentation generation optional.
This also incorporates some of the changes from the #171 draft.
Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you are unsure about any of the choices, don't hesitate to ask!

[x] Changes have been tested to ensure that fix is effective or that a feature works.
[x] Changes pass the unit tests
[x] I have included necessary documentation or comments (as necessary)
[x] Any dependent changes have been merged and published

Notes
All PRs will undergo the unit testing before being reviewed. You may be requested to explain or make additional changes before the PR is accepted.

@kaitj is this good for review or did you want to resolve the test failure first?

Content-wise good for a look.
It passed 3.8 tests locally, and 3.11 here, so not sure where the issue stems from. I'll track it down when I get a chance!

Ahh I thought I included that. Must have been a different file / repo. Well I’ll change it back but yeah nothing else in this changes.


Clear all chat with single click on button

Related Issue

Closes #261

Description

Clear all chat with single click on button

How Has This Been Tested?

local

Screenshots (if applicable)

Type of Change

[ ] Bug fix
[ ] New feature
[ ] Code style update
[ ] Breaking change
[ ] Documentation update

resolve conflicts

@kom-senapati : resolved

LGTM


Can't access any of the tasks in a project

Hi, when annotating my frames, I got a sudden error "Error: Request failed with status code 403. {"detail":"You do not have permission to perform this action."}", when trying to save the annotations. I could annotate the first 71 frames but I suddenly got this error. I logged out and in again, and now none of the tasks work. I get a :

Could not receive repository status
Error: Request failed with status code 403. "\n<!doctype html>\n<html lang="en">\n\n 403 Forbidden\n\n\n 403 Forbidden\n\n\n".

Any idea of what could cause the problem ? Thank you !

Hi @GuillaumeChampain
Please, provide more information. Is this your own server or cvat.org? If the first, please provide the version and fill out the issue template.

I will close the issue, because there is not a response from your side. Please, do not hesitate to reopen it if you still have questions and ready to provide more details.


[BUG] incomplete java version list on compatibility page

What is the bug?
the compatibility page states that OpenSearch 1.0.0 ships with Java 15 but at the same time only lists java 8 & java 11 as being supported in the table below. this is obviously inconsistent and the list should be updated with all supported java versions
How can one reproduce the bug?
check the compatibility list on the linked page
What is the expected behavior?
the list is complete

@keithhc2 should we just add 15 to the list? @rursprung has a good point here. The paragraph and list don't match.

I think the original intention was to say that OpenSearch also works with these other Java versions, but yeah, I can add it in after confirming a couple things.

Thx @keithhc2!

Added with #300. Thanks, @rursprung


Missing docs

https://github.com/NebraLtd/LoRa-mPCIe/blob/v1.1/VARIANTS.md
Is there still plans to fill this readme out?

At some point yes.
Is there something in particular you need to know?


skimage.measure.compare_ssim not present in current version of skimage

I was having issues with
Traceback (most recent call last):
File "/home/alex/TecoGAN-PyTorch/./codes/main.py", line 9, in
from models import define_model
File "/home/alex/TecoGAN-PyTorch/codes/models/init.py", line 1, in
from .vsr_model import VSRModel
File "/home/alex/TecoGAN-PyTorch/codes/models/vsr_model.py", line 7, in
from .networks import define_generator
File "/home/alex/TecoGAN-PyTorch/codes/models/networks/init.py", line 1, in
from .tecogan_nets import FRNet, SpatioTemporalDiscriminator, SpatialDiscriminator
File "/home/alex/TecoGAN-PyTorch/codes/models/networks/tecogan_nets.py", line 12, in
from metrics.model_summary import register, parse_model_info
File "/home/alex/TecoGAN-PyTorch/codes/metrics/init.py", line 1, in
from .metric_calculator import MetricCalculator
File "/home/alex/TecoGAN-PyTorch/codes/metrics/metric_calculator.py", line 13, in
from .LPIPS.models.dist_model import DistModel
File "/home/alex/TecoGAN-PyTorch/codes/metrics/LPIPS/models/init.py", line 7, in
from skimage.measure import compare_ssim
ImportError: cannot import name 'compare_ssim' from 'skimage.measure' (/home/alex/anaconda3/envs/fastai/lib/python3.9/site-packages/skimage/measure/init.py)
According to the following post, the replacing the import with structural_similarity replacement works
https://stackoverflow.com/a/67966335

You can fix this problem by replacing
'from skimage.measure import compare_ssim'
to
'from skimage.metrics import structural_similarity as compare_ssim'
in 'TecoGan-PyTorch/codes/metrics/LPIPS/models/init.py'

You can fix this problem by replacing
from skimage.measure import compare_ssim
to
from skimage.metrics import structural_similarity as compare_ssim
in TecoGan-PyTorch/codes/metrics/LPIPS/models/init.py


Guess The Number Game

 Accept the user input and check if it's correctly guessed (according to the system generated number), or whether it's too high or too low.

The random module's randint function, which generates random numbers.
The script also has a for loop, which causes it to keep running until the user inputs the correct number.

Sir, Please don't modify others codes.
Waiting for next PR!!!


Please remove dependency for IE

After uninstalling IE it's not longer possible to use Insights in Outlook since "Internet Explorer is not activated".

Hello JoakimOfficial,
I checked into this with the product team for you. Their response was that this behavior is part of Outlook. "We currently have a strict dependency on Internet Explorer being activated, and we will internalize your feedback on this behavior for future releases of Outlook."
Although this is now on their radar, I'm unfortunately unable to give any ETA for a change in this regard. Thank you for notifying us about this concern.
-- paul9955


FileUpload Component Not Working in MAUI Hybrid App Due to Blob Request to Local <IP_ADDRESS> Address

The Radzen FileUpload component doesn't work correctly in a .NET MAUI Hybrid app. It attempts to upload files as a blob to a local <IP_ADDRESS> address, which is inaccessible from the backend API. This behavior causes file uploads to fail in the MAUI environment, while the same setup works correctly in a standard web browser.
I have attached two screenshots for clarity:

Working Setup (Web Browser): Shows the correct network request and successful file upload.
Non-Working Setup (MAUI Hybrid): Shows the network tab indicating the failed attempt to upload files to <IP_ADDRESS>.

Steps to Reproduce:

Create a .NET MAUI Hybrid app and use the Radzen FileUpload component.
Configure the FileUpload component to upload files to a backend API.
Run the app and attempt to upload a file.

Expected Behavior:
The FileUpload component should upload the file directly to the configured backend API, similar to how it works in a regular web browser.
Actual Behavior:
The FileUpload component tries to upload the file as a blob to <IP_ADDRESS>, causing the upload to fail.
Screenshots:

Environment:

Radzen.Blazor version: 5.6.0
.NET version: 9
Platform: .NET MAUI Hybrid

Proposed Solution:
Allow the Radzen FileUpload component to bypass the default blob handling in MAUI Hybrid environments and directly upload files to the backend API.

FileUpload uploads the file to what is specified in Url property.

The url is written correctly, but in MAUI Hybrid it is loading the blob at <IP_ADDRESS>. You can see in this screenshot that the same code is working in the web application.

But there is another issue, in MAUI the file contents are showing as null, while in the web they are there. What could be the reason for this?

I resolved the issue—it turned out to be a server-side error. Radzen components are definitely not to blame—they’re simply the best!


Public API: Cops should be able to register that they are incompatible with another cop's autocorrect

In team.rb the following is hardcoded
module RuboCop
  module Cop
    class Team
      INCOMPATIBLE_COPS = {
        Style::SymbolProc => [Layout::SpaceBeforeBlockBraces],
        Layout::SpaceBeforeBlockBraces => [Style::SymbolProc],
        Style::LineEndConcatenation => [Style::UnneededInterpolation],
        Style::UnneededInterpolation => [Style::LineEndConcatenation],
        Style::SelfAssignment => [Layout::SpaceAroundOperators],
        Layout::SpaceAroundOperators => [Style::SelfAssignment],
        Style::BracesAroundHashParameters => [Layout::MultilineHashBraceLayout]
      }.freeze
    end
  end
end

I have some cops (https://github.com/backus/rubocop-rspec/pull/413) that conflict with Layout::ExtraSpacing. I can't do anything here without basically overwriting a constant in rubocop-rspec. It would be nice if cops could do something like this:
# frozen_string_literal: true

module RuboCop
  module Cop
    module RSpec
      class AlignLeftLetBrace < Cop
        def self.autocorrect_incompatible_with
          [Layout::ExtraSpacing]
        end
      end
    end
  end
end

so that the incompatibility definition is local to the cop and extensible for 3rd parties.

Related to #3414


Port request for adding icon for new/open project in view

This PR fixes #11979 (approved for Sept)
PR for master https://github.com/microsoft/azuredatastudio/pull/12265

Pull Request Test Coverage Report for Build 256451118

0 of 0   changed or added relevant lines in 0 files are covered.
679 unchanged lines in 13 files lost coverage.
Overall coverage increased (+0.1%) to 39.07%

Files with Coverage Reduction
New Missed Lines
%

extensions/resource-deployment/src/services/apiService.ts
1
50.0%

extensions/resource-deployment/src/interfaces.ts
2
92.21%

extensions/resource-deployment/src/utils.ts
2
22.86%

extensions/arc/src/ui/dashboards/postgres/postgresDiagnoseAndSolveProblemsPage.ts
3
18.52%

extensions/arc/src/ui/dashboards/postgres/postgresDashboard.ts
4
42.11%

extensions/arc/src/models/postgresModel.ts
12
18.18%

extensions/arc/src/ui/dialogs/connectControllerDialog.ts
21
73.38%

src/sql/workbench/services/notebook/browser/models/clientSession.ts
33
58.62%

extensions/arc/src/ui/dashboards/postgres/postgresOverviewPage.ts
58
6.36%

extensions/resource-deployment/src/ui/resourceTypePickerDialog.ts
62
0%

Totals

Change from base Build 254603639:
0.1%

Covered Lines:
19159

Relevant Lines:
44861

💛  - Coveralls

Ran the PR Validate manually. It passed - not refreshing here somehow. Will merge.