Scroll Snap does not work

Describe the bug
Scroll snap css does not work on virtual list.
the behavior is well documented here:
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Scroll_Snap/Basic_concepts
https://user-images.githubusercontent.com/19645990/213615557-3cbab1fd-8337-4741-9319-2b1e2732af8d.mov
Your minimal, reproducible example
https://codesandbox.io/s/modest-shape-sk0nce?file=/src/main.tsx
Steps to reproduce
scroll on the first virtual list
Expected behavior
it should scroll smoothly and snap at each rows
How often does this bug happen?
Every time
Screenshots or Videos
https://user-images.githubusercontent.com/19645990/213615589-c2c92ae6-986f-4680-adf8-bb9b1906dd39.mov
Platform
macos, chrome
tanstack-virtual version
beta.39
TypeScript version
No response
Additional context
No response
Terms & Code of Conduct

[X] I agree to follow this project's Code of Conduct
[X] I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.

I have the same issue in 3.0.0-beta.54.
Looks like this was an issue before already: https://github.com/TanStack/virtual/issues/267

Any news on this one?

In the meantime I figured out that this is a limitation of the browser and not related to the library.
When you add or remove scroll snap elements during scrolling, Chrome glitches like in the video above. The only workaround that worked for me was to render the scroll snap elements statically "on top" of the virtualized elements so that they don't change during scrolling.

To help triage a lot of outdated issues, we're closing this due to its age. If this issue is still relevant, please tag @ tannerlinsley in a new comment confirming the case.

@tannerlinsley I'm not sure if this is possible or not but I do think it warrants further investigation to see if we can come up with a solution that works. It would be really useful to get scroll-snap working. Thanks!

Hey @tannerlinsley, this appears to be still relevant as of 3.0.0-beta.68

I have looked into this extensively, and due to browser limitations, the only way to get this working is to overlay extra divs on top of the usual divs with the snap points in place. These snap points can only be updated when the user is not scrolling.
Given that this is a headless library, I don't think there's any way to add support for it.

That makes total sense @kieranm, thanks for the update!

@tannerlinsley This issue is definitely still relevant, just ran into the same problem on a really important project, thanks.

@kieranm thank for the update. Can you share some example with css scroll snap working, will be really helpful! 😄

Has anyone found a workaround? I have a virtual list (not the TanStack one, my vanilla implementation) that has elements with scroll-snap-type: x (which is completely unrelated to scrolling of the list itself since it scrolls in the y axis). When I try to use scrollIntoView in Chrome it stops when a new DOM element with snap is created.


[False Positive] Possible hardcoded secret key (secret)

Codacy detected an issue:
Message: Possible hardcoded secret key (secret)
Currently on:

Commit:  1a28a619d2bb0ab3a4c889a9b0a9c318a658a76e
File:    cortx-s3samplecode/python/cortx-s3samplecode-python.py
LineNum: 12

For the convenience of the Seagate development team, this issue has been mirrored in a private Seagate Jira Server: https://jts.seagate.com/browse/CORTX-31345. Note that community members will not be able to access that Jira server but that is not a problem since all activity in that Jira mirror will be copied into this GitHub issue.

Mukul Malhotra commented in Jira Server:

Issue is reported as false positive

Mukul Malhotra commented in Jira Server:

Issue reported as false positive

Mukul Malhotra commented in Jira Server:

.


feat(ui): implement a new modal

Summary
Type

Feature

Summarise concisely:
What is expected?
Drop reakit usage in our modals and keep behaviour. Moreover, it fix the close icon container because it was above the text and prevent user events at the top of the modal
The following changes where made:

Start from scratch a new modal

Need a snapshot update:
https://github.com/scaleway/ultraviolet/actions/runs/6023641523/job/16340773711?pr=2847#step:8:252


Add performance suggestions to docs

Hi, thanks so much for pyo3 - it's wonderful, I'm using it a lot (see rtoml and watchfiles, I might be using it pydantic soon too).
I wonder if it would be worth adding a "Performance Suggestions" or similar section to the docs, perhaps the FAQs?
Examples:
cast_as vs extract
I spent a lot of the morning very worried that pyo3 rust making heavy use of python types was actually slower than python, until by chance I tried cast_as instead of extract.
// fast
let list: &PyList = py_any.cast_as()?;
// slow
let list: &PyList = py_any.extract()?;

This change in my case made a ~4x improvement to performance.
Optimised compilation
While investigating the above, I noticed this SO question referenced on #1470 didn't mention that the performance is massively effected by debug/release compilation. I've added an answer to the question with suggestions.

These are both no doubt very obvious to the maintainers of this library and sessioned users, but to those new to rust and pyo3, they might be less obvious.
I'm sure there are other things which can have a dramatic effect on performance which I'm not ware of - I've love to hear any other general suggestions?

Update:
Other things to suggest when this section is written:

interning strings where they're being used a lot, a good example is if you're creating a dict with common keys, performance can be significantly improved by reusing PyStrings rather than rust strings

I spent a lot of the morning very worried that pyo3 rust making heavy use of python types was actually slower than python, until by chance I tried cast_as instead of extract.

I am surprised by this. Shouldn't both cast_as and extract for a native type end up calling PyTryFrom::try_from? cast_as directly and extract via pyobject_native_type_extract! which should both end up here.
Is it possible to show that performance difference using a self-contained reproducer?

I tried the following benchmark
diff --git a/benches/bench_frompyobject.rs b/benches/bench_frompyobject.rs
index 8cf8a4da7..ca4b80bb2 100644
--- a/benches/bench_frompyobject.rs
+++ b/benches/bench_frompyobject.rs
@@ -1,6 +1,6 @@
-use criterion::{criterion_group, criterion_main, Bencher, Criterion};
+use criterion::{black_box, criterion_group, criterion_main, Bencher, Criterion};

-use pyo3::{prelude::*, types::PyString};
+use pyo3::{prelude::*, types::{PyList, PyString}};

 #[derive(FromPyObject)]
 enum ManyTypes {
@@ -18,8 +18,30 @@ fn enum_from_pyobject(b: &mut Bencher<'_>) {
     })
 }

+fn list_via_cast_as(b: &mut Bencher<'_>) {
+    Python::with_gil(|py| {
+        let any: &PyAny = PyList::empty(py).into();
+
+        b.iter(|| {
+            let _list: &PyList = black_box(any).cast_as().unwrap();
+        });
+    })
+}
+
+fn list_via_extract(b: &mut Bencher<'_>) {
+    Python::with_gil(|py| {
+        let any: &PyAny = PyList::empty(py).into();
+
+        b.iter(|| {
+            let _list: &PyList = black_box(any).cast_as().unwrap();
+        });
+    })
+}
+
 fn criterion_benchmark(c: &mut Criterion) {
     c.bench_function("enum_from_pyobject", enum_from_pyobject);
+    c.bench_function("list_via_cast_as", list_via_cast_as);
+    c.bench_function("list_via_extract", list_via_extract);
 }

 criterion_group!(benches, criterion_benchmark);

and found no measurable difference:
list_via_cast_as        time:   [1.1823 ns 1.1823 ns 1.1823 ns]
list_via_extract        time:   [1.8916 ns 1.8918 ns 1.8920 ns]

Could it be that something besides using extract or cast_as changed?

Code is currently closed source to avoid confusion, but if I can make it work it will end up being OS.
I'll invite you as a collaborator so you can see what I mean, feel free to ignore the invitation if perfer.

I wonder if it would be worth adding a "Performance Suggestions" or similar section to the docs, perhaps the FAQs?

Regardless of the outcome of this issue I think this is a great idea 👍

So I think the problem is the following: The benchmarked code is basically the following
if let Ok(list) = any.extract::<&PyList>() { ... } else { ... }

where the else branch is always taken. extract returns PyResult<T> instead of Result<T, PyDowncastError> which means into must call From<PyDowncastError> for PyErr which will turn the PyDowncastError into a string here.
The difference is indeed significant as show by the benchmark results:
list_via_cast_as        time:   [3.0937 ns 3.2319 ns 3.3556 ns]
list_via_extract        time:   [3.0724 ns 3.0798 ns 3.0897 ns]
not_a_list_via_cast_as  time:   [3.4965 ns 3.4974 ns 3.4982 ns]
not_a_list_via_extract  time:   [292.06 ns 292.80 ns 293.61 ns]

given by the diff
diff --git a/benches/bench_frompyobject.rs b/benches/bench_frompyobject.rs
index 8cf8a4da7..86d2047df 100644
--- a/benches/bench_frompyobject.rs
+++ b/benches/bench_frompyobject.rs
@@ -1,6 +1,6 @@
-use criterion::{criterion_group, criterion_main, Bencher, Criterion};
+use criterion::{black_box, criterion_group, criterion_main, Bencher, Criterion};

-use pyo3::{prelude::*, types::PyString};
+use pyo3::{prelude::*, types::{PyList, PyString}};

 #[derive(FromPyObject)]
 enum ManyTypes {
@@ -18,8 +18,52 @@ fn enum_from_pyobject(b: &mut Bencher<'_>) {
     })
 }

+fn list_via_cast_as(b: &mut Bencher<'_>) {
+    Python::with_gil(|py| {
+        let any: &PyAny = PyList::empty(py).into();
+
+        b.iter(|| {
+            let _list: &PyList = black_box(any).cast_as().unwrap();
+        });
+    })
+}
+
+fn list_via_extract(b: &mut Bencher<'_>) {
+    Python::with_gil(|py| {
+        let any: &PyAny = PyList::empty(py).into();
+
+        b.iter(|| {
+            let _list: &PyList = black_box(any).extract().unwrap();
+        });
+    })
+}
+
+fn not_a_list_via_cast_as(b: &mut Bencher<'_>) {
+    Python::with_gil(|py| {
+        let any: &PyAny = PyString::new(py, "foobar").into();
+
+        b.iter(|| {
+            black_box(any).cast_as::<PyList>().unwrap_err();
+        });
+    })
+}
+
+fn not_a_list_via_extract(b: &mut Bencher<'_>) {
+    Python::with_gil(|py| {
+        let any: &PyAny = PyString::new(py, "foobar").into();
+
+        b.iter(|| {
+            black_box(any).extract::<&PyList>().unwrap_err();
+        });
+    })
+}
+
 fn criterion_benchmark(c: &mut Criterion) {
     c.bench_function("enum_from_pyobject", enum_from_pyobject);
+    c.bench_function("list_via_cast_as", list_via_cast_as);
+    c.bench_function("list_via_extract", list_via_extract);
+    c.bench_function("not_a_list_via_cast_as", not_a_list_via_cast_as);
+    c.bench_function("not_a_list_via_extract", not_a_list_via_extract);
 }

 criterion_group!(benches, criterion_benchmark);

This only affects the Err path, not the Ok. But then again, if-else-if-chains to determine the correct type are probably common in Rust-code-called-from-Python-code.

Using something like
#[derive(FromPyObject)]
enum ListOrDictOrAny<'a> {
    List(&'a PyList),
    Dict(&'a PyDict),
    Any(&'a PyAny),
}

also does not help as the generated implementation is probably also an if-else-if chain of calls to extract.

This is really interesting, thank you so much.
Stuff like this scares me a little, the explanation is beyond my knowledge. If I hadn't happened upon this fix, I would probably have abandoned the entire project assuming the performance gains I had hoped for weren't possible.

Agreed, I've wanted to write some notes along these lines for a long time. I think the main thing holding me off has been lack of time, and I'd kind of been hoping I could make progress in #1308 first (which would reduce a few known PyO3 overheads and likely change a number of performance best practices).

Another point for the performance section:
as per https://github.com/pydantic/pydantic-core/pull/501,
PyErr::new::<CustomError, _>(([args]))

is significantly slower than
let custom_error = CustomError::new([args]);
match Py::new(py, validation_error) {
    Ok(err) => PyErr::from_value(err.into_ref(py)),
    Err(err) => err,
}

For some errors, I think because PyErr::new converts args to python objects and back again.
That change (found by chance) improved some of our benchmarks by 30%.

Superseded by #3310


[C++ Client] Add braces around initialization of subobject

Master Issue: https://github.com/apache/pulsar/issues/13429
Motivation
While preparing the 2.8.3 python client release, I encountered the following error:
    default: /Users/vagrant/pulsar/pulsar-client-cpp/lib/stats/ProducerStatsImpl.cc:29:45: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
    default: static const std::array<double, 4> probs = {0.5, 0.9, 0.99, 0.999};
    default:                                             ^~~~~~~~~~~~~~~~~~~~~
    default:                                             {                    }
    default: 1 error generated.
    default: make[3]: *** [lib/CMakeFiles/PULSAR_OBJECT_LIB.dir/stats/ProducerStatsImpl.cc.o] Error 1
    default: make[3]: *** Waiting for unfinished jobs....
    default: make[2]: *** [lib/CMakeFiles/PULSAR_OBJECT_LIB.dir/all] Error 2
    default: make[1]: *** [python/CMakeFiles/_pulsar.dir/rule] Error 2
    default: make: *** [_pulsar] Error 2

Modifications

Add the suggested braces.

Verifying this change

I need help verifying this change, since I am not familiar with C++.

Does this pull request potentially affect one of the following parts:
This is a minor change.
Documentation

[x] no-need-doc

This is just code cleanup.

@BewareMyPower @merlimat @oversearch - are you able to confirm that this is a correct change? I am just following the compiler instructions.


move PublicClassMapper to our package

fixes #2007

@dmitry-s There are build errors, however.

I see it's pending the release of https://github.com/googleapis/google-cloud-java/pull/6678.


Toolbar - setSupportActionBar()

Hello Patrice,
first thank you for your great work, your logic help me a lot!
I like, that I can change the fragment with toolbar and all layouts together. I have only one question, how to to add to the toolbar "Menu items"?

Hi,
I don't know if I have you understood right, but maybe that will you
stackoverflow
If not, I try to add some menu Items in the next commit.
I wish you a nice weekend and Happy Coding ;D

Thank you very much,
I forgot to add:
toolbar.inflateMenu(R.id.menu);

to Base Fragment ;)

hi @TomasValenta & @swissonid how do i hide this menu item on some fragment...it appears on all fragment if i add the above line in basefragment...

Solution can be inflating the menus in child fragments and in every fragment inflate different menu or nothing, take a look to my source code:
https://github.com/TomasValenta/WebCams/blob/master/app/src/main/java/cz/yetanotherview/webcamviewer/app/fragments/MapAppBarFragment.java


Look for bugs

Prerequisites

[x] Put an X between the brackets on this line if you have done all of the following:

Reproduced the problem in Safe Mode: https://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
Followed all applicable steps in the debugging guide: https://flight-manual.atom.io/hacking-atom/sections/debugging/
Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages

Description

Steps to Reproduce

Expected behavior:

Actual behavior:

Reproduces how often:

Versions

Additional Information

Is this spam, a question, etc about the program? If it isn't close this issue. If this is a serious issue, fill out all fields of the template. Thank you, and have a great day ;)


Diff Before Upload

The script should be able to distinguish the files that have changed and only upload those, leaving unchanged files.

Closed by #90


Can't make chapters which are "special" sections

e.g. a bibliography chapter.
See https://github.com/asciidoctor/asciidoctor/issues/3356 for discussion. Eventually we concluded that it's an issue with this gem if anything.

See this comment for more info: https://github.com/asciidoctor/asciidoctor-epub3/issues/201#issuecomment-511933040

Okay, so let a test case book for this issue be the following.
book.adoc
= Bibliography book
:doctype: book

include::chapter.adoc[leveloffset=+1]

include::bibliography.adoc[leveloffset=+1]

chapter.adoc
= Chapter

_The Pragmatic Programmer_ <<pp>> should be required reading for all developers.
To learn all about design patterns, refer to the book by the "`Gang of Four`" <<gof>>.

bibliography.adoc
[bibliography]
= Bibliography

- [[[pp]]] Andy Hunt & Dave Thomas. The Pragmatic Programmer:
From Journeyman to Master. Addison-Wesley. 1999.
- [[[gof,2]]] Erich Gamma, Richard Helm, Ralph Johnson & John Vlissides. Design Patterns:
Elements of Reusable Object-Oriented Software. Addison-Wesley. 1994.


Updating "TUTORIAL: Sophia basics - owning a smart contract and owner privileges"

This tutorial was pretty much completely out of date 🙈

[x] Rewrote all the code for the unit tests
[x] Updated all the displayed output from running tests
[x] Fixed grammar, spelling, punctuation, and formatting

ak_25qxcUwYkkYxAhCM7pH8XT5Vow9oowRzERsiYCSZvaU6bTo7Wm

@alekseytsekov or @Pegahbit can you review?


Gif doesn't downloading

Result gif is not downloading in mobile(not sure about pc) for some reason, I had to refresh and click onshare button many times to get it work.

Are you using chrome? Its a known bug in mobile chrome, I've been trying to find a way around this but haven't yet found a solution...
I can add some help text explaining the issue, or could try doing a video but thats harder from a development standpoint


nixos/luksroot: Exit if EOF detected in cryptsetup-askpass

Description of changes

In cryptsetup-askpass, detect when EOF is reached and if so, display an error message and exit.
Solves partially #296452.
With the changes of this PR:
$ echo my-password | ssh my-remote-server

Pseudo-terminal will not be allocated because stdin is not a terminal.
Passphrase for /dev/disk/by-uuid/{...}:
Waiting 10 seconds for LUKS to request a passphrase...... - success
Passphrase for /dev/disk/by-uuid/{...}:
End of File reached. Exiting shell

$

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review-december/1711/22

Re-pinging reviewer : @dasJ


Create new master branch and topic branches for each remaining spec

Desciption

Determine which specs will be grandfathered in as 'stable' and place these in the new master branch
Create topic branches for all remaining specs
Close PRs and ask users to re-open

Already in effect for a while :)


How to automate compilation？

hello sir：
Thank you for your reply to the last question, I encountered the following question。
npm run start
When I modify a "js" or "html" file, it is not automatically compiled and reflected in the current http: // localhost: 8100 / # / first
I used notePad ++

I added setting for watching code modify.
Please pull latest version then
npm install
npm run start

First, open browser automatically, then start webpack build.
Just a little while, please refresh browser.
start app, and watching code.

Hello,sir:
I executed the command "npm install" found the following error：
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch": "} (current: {"os":"win32","arch":"x64"}) npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed. npm WARN<EMAIL_ADDRESS>No repository field. npm WARN<EMAIL_ADDRESS>No license field.
Automatic compilation function is achieved, but why do I need to refresh the browser every time I can see the results, rather than automatically refresh the browser?

Hi!
Maybe, your OS is Windows, isn't it?
I had tried Mac OS.
In my environment, I confirm that the update result is automatically reflected after the first refresh.
Please wait a moment as I will check on Windows environment from now.

Hi!
Sorry I made you wait. I confirmed that it will be updated automatically in Windows environment. I confirmed it using the Chrome browser.
npm install
npm run start

If it does not work please clone it again.
Tested environment
$ ionic info

global packages:

    @ionic/cli-utils : 1.4.0
    Gulp CLI         : not installed globally
    Ionic CLI        : 3.4.0

local packages:

    @ionic/cli-plugin-gulp   : 1.0.1
    @ionic/cli-plugin-ionic1 : 2.0.0
    Ionic Framework          : ionic1 1.3.2

System:

    Node       : v7.2.1
    OS         : Windows 10
    Xcode      : not installed
    ios-deploy : not installed
    ios-sim    : not installed
    npm        : 4.0.3

Hi!
I am now on the outside, the company's computer is win7, the browser is Google
I use "download zip" to download all the files.
I will try again, the news will tell you in time.

PS E:\webpack_2\ionic_es62> npm install
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any
"} (current: {"os":"win32","arch":"x64"})
npm WARN<EMAIL_ADDRESS>No repository field.
npm WARN<EMAIL_ADDRESS>No license field.

`PS E:\webpack_2\ionic_es62> npm install fsevents
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "ins
tall" "fsevents"
npm ERR! node v6.9.1
npm ERR! npm  v3.10.8
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","ar
ch":"x64"})
npm ERR! notsup Valid OS:    darwin
npm ERR! notsup Valid Arch:  any
npm ERR! notsup Actual OS:   win32
npm ERR! notsup Actual Arch: x64
npm ERR! Please include the following file with any support request:
npm ERR!     E:\webpack_2\ionic_es62\npm-debug.log`

npm install
npm WARN deprecated<EMAIL_ADDRESS>Please use gulp-clean-css
npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated<EMAIL_ADDRESS>graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update t
o<EMAIL_ADDRESS>as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated<EMAIL_ADDRESS>..psst! While Bower is maintained, we recommend Yarn and Webpack for *new* front-end pr
ojects! Yarn's advantage is security and reliability, and Webpack's is support for both CommonJS and AMD projects. Curre
ntly there's no migration path, but please help to create it: https://github.com/bower/bower/issues/2467
npm WARN prefer global<EMAIL_ADDRESS>should be installed with -g

【Installed other plugins are successful】
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any
"} (current: {"os":"win32","arch":"x64"})
npm WARN<EMAIL_ADDRESS>No repository field.
npm WARN<EMAIL_ADDRESS>No license field.

Hi!
Thank you to try.
Tokyo is very hot and humid!
When building with windows, warning about fsevents comes out, but you can ignore it.
fsevents seems only to be needed when building on OS X So.
Can you update the version of Ionic CLI?
Execute the following command and check whether the latest build environment is prepared.
$ npm install -g ionic@latest
$ ionic info

Then, if it does not work, delete the 「node_modules」 folder once, clear the cache of npm, and try npm install.

Operation is as follows
1. npm install -g ionic@latest
2. ionic info

global packages:
@ionic/cli-utils : 1.4.0
Gulp CLI         : CLI version 3.9.1 Local version 3.9.1
Ionic CLI        : 3.4.0

local packages:
@ionic/cli-plugin-gulp   : 1.0.1
@ionic/cli-plugin-ionic1 : 2.0.0
Ionic Framework          : ionic1 1.3.2

System:
Node       : v8.1.3
OS         : Windows 7
Xcode      : not installed
ios-deploy : not installed
ios-sim    : not installed
npm        : 5.0.3

3.npm run start
.......
Webpack is watching the files…
[ERROR] Gulpfile not found: .\gulpfile.js
You can set the gulpFile attribute in ionic.config.json for custom Gulpfile locations, otherwise the default
Ionic Gulpfile can be downloaded from https://github.com/ionic-team/ionic-app-base/blob/master/gulpfile.js
    Or, if you no longer use gulp, you can remove the CLI Gulp Plugin:

    npm uninstall --save-dev --save-exact @ionic/cli-plugin-gulp@latest

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>watch:serve: ionic serve
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>watch:serve script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR!      C:\Users\ycdeng\AppData\Roaming\npm-cache_logs\2017-07-07T13_26_34_347Z-debug.log
ERROR: "watch:serve" exited with 1.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>start: npm-run-all --parallel clean watch:serve watch:build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR!      C:\Users\ycdeng\AppData\Roaming\npm-cache_logs\2017-07-07T13_26_34_655Z-debug.log
PS E:\webpack\7.6>
4. delete node_module
5. npm install
'6.npm run start'

<EMAIL_ADDRESS>watch:build E:\webpack\7.6
webpack --watch

┌────────────────────────────────────────────────────────
──┐
│                   npm update check failed                   │
│             Try running with sudo or get access             │
│            to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\ycdeng.config │
└────────────────────────────────────────────────────────
──┘
loader option has been deprecated - replace with "use"
Webpack is watching the files…
[ERROR] Gulpfile not found: .\gulpfile.js
You can set the gulpFile attribute in ionic.config.json for custom Gulpfile locations, otherwise the defa
Ionic Gulpfile can be downloaded from https://github.com/ionic-team/ionic-app-base/blob/master/gulpfile.j
    Or, if you no longer use gulp, you can remove the CLI Gulp Plugin:

    npm uninstall --save-dev --save-exact @ionic/cli-plugin-gulp@latest

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>watch:serve: ionic serve
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>watch:serve script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR!      C:\Users\ycdeng\AppData\Roaming\npm-cache_logs\2017-07-07T13_31_36_283Z-debug.log
ERROR: "watch:serve" exited with 1.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>start: npm-run-all --parallel clean watch:serve watch:build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR!      C:\Users\ycdeng\AppData\Roaming\npm-cache_logs\2017-07-07T13_31_36_615Z-debug.log
PS E:\webpack\7.6>

Successful, thank you for your help.
According to the following error message:
[ERROR] Gulpfile not found:. \ Gulpfile.js
You can set the gulpFile attribute in ionic.config.json for custom Gulpfile locations, otherwise the default
Ionic Gulpfile can be downloaded from https://github.com/ionic-team/ionic-app-base/blob/master/gulpfile.js

Processing and results

Reinstall gulp
the current operation of your project gulp [because there are gulpfile.js]
    Run failed, suggesting that some gulp plugins are not installed
Follow the prompts to install some plugins [gulpfile.js files that are required or other gulp plugins]
remove gulpfile.js in sass any and plugin [always download failed]
5.npm run start
Modify fisrt.html and first.js are able to achieve the browser automatically refresh


Support simple check in if for discriminated unions with true/false discriminant

Search Terms
discriminated true false if

Suggestion

Use Cases
Having discriminated union with true/false discriminant:
interface Square {
    kind: true;
    size: number;
}
interface Rectangle {
    kind: false;
    width: number;
    height: number;
}

type Shape = Square | Rectangle;

we can treat them differently using verbose comparison in if:
let s: Shape = null;

if (s.kind === true) {
    console.log(s.size);
} else {
    console.log(s.height);
}

With simple check:
let s: Shape = null;

if (s.kind) {
    console.log(s.size);
} else {
    console.log(s.height);
}

ts doesn't recognize Rectangle in else branch: Property 'height' does not exist on type 'Square'
Examples
Would be nice to be able to do simple if(s.kind) check.
Checklist
My suggestion meets these guidelines:

[x] This wouldn't be a breaking change in existing TypeScript / JavaScript code
[x] This wouldn't change the runtime behavior of existing JavaScript code
[x] This could be implemented without emitting different JS based on the types of the expressions
[X] This isn't a runtime feature (e.g. new expression-level syntax)

This works already if you enable strictNullChecks. If you don't enable strictNullChecks, then you need to explicitly check for false in your else block (aka else if (s.kind === false), because the value can be undefined and null too.

But this former check works without strictNullChecks:
if (s.kind === true) {
    console.log(s.size);
} else {
    console.log(s.height);
}

here too in else the value can be undefined or null.

I think this is a duplicate of #10564.

Duplicate


OCPP doesn't start: cannot create charger type 'ocpp': ChangeConfiguration failed: NotSupported

Describe the bug
After update to version 0.130.6 nightly evcc is not starting anymore due to FATAL error as shown in log.
After downgrade to 0.130.3 evcc starts normal
Steps to reproduce

update to 0.130.6 nightly

start evcc

...
Configuration details
loadpoints:
  - title: Garage # display name for UI
    charger: AXXX # charger
    mode: pv
    vehicle: ev4

chargers:
  - name: AXXX
    type: template
    template: ocpp
    timeout: 2m # optional

Log details
[main ] INFO 2024/09/02 08:15:00 evcc 0.130.6 (095fa42b)
[main ] INFO 2024/09/02 08:15:01 using config file: /evcccfg/evcc.yaml
[db ] INFO 2024/09/02 08:15:01 using sqlite database: /root/.evcc/evcc.db
[main ] INFO 2024/09/02 08:15:01 listening at :7070
[ocpp-1] DEBUG 2024/09/02 08:15:01 waiting for chargepoint: 5m0s
[ocpp ] INFO 2024/09/02 08:15:06 charge point connected, registering: AXXX
[ocpp-1] DEBUG 2024/09/02 08:15:07 failed configuring availability: Rejected
[main ] FATAL 2024/09/02 08:15:37 cannot create charger 'AXXX': cannot create charger type 'template': cannot create charger type 'ocpp': ChangeConfiguration failed: NotSupported
[main ] FATAL 2024/09/02 08:15:37 will attempt restart in: 15m0s

What type of operating system are you running?
Docker container
Version
0.130.6 nightly

Was für ein Gerät ist das denn?

@premultiply hier braucht es einen Fallbackmechanismus für Availability/erste StatusNotification?

Fixed by #15856

Was für ein Gerät ist das denn?

Sungrow AC011E-01

@premultiply hier fehlt der Fix?

Fixed by f5547ba0e79ff875ebae607542fd2583a11492f7


Add efficient gdg_jvp term for log-ODE schemes.

I've decided to go with the jvp implementation.
I implemented two versions: One with better memory scaling and the other with better time scaling. I'll send some more discussions via email.
I've only added a simple test. The numerical checks pass. The efficient version is much faster than the loop version on CPU.

A side note is that we should squash the commits when we merge this.

Also, I think the gdg_jacobian_contraction can be implemented by doing a loop / batch trick [my terminology for your fast Jacobian trick] over vjp rather than jvp, which would be worth doing what with PyTorch.

Also, I think the gdg_jacobian_contraction can be implemented by doing a loop / batch trick [my terminology for your fast Jacobian trick] over vjp rather than jvp, which would be worth doing what with PyTorch.

Feel free to give this a go.


Add serialization support for InsertionNoiseModel

Add _json_dict and _from_json_dict_ magic functions to support
Add InsertionNoiseModel in resolver cache

Fixes quantumlib/Cirq#6249

Automerge cancelled: Unrecognized update-branch status code (403).

Automerge cancelled: The automerge label was removed.

Auto-merge is not merging :thinking:


The input issue of Chinese word will not remove after making a chip value

The input issue of the Chinese word will not remove after making a chip value.

This is the component issue, already raise an issue to material-ui-chip-input
https://github.com/TeamWertarbyte/material-ui-chip-input/issues/322

Find the temp solution to solve this issue in this material-ui-chip-input#305


nativeDelete does not accept filters

Passing filters to nativeDelete causes exception. Example:
await metadataRepository.nativeDelete({filters: ['invalid']);

Error: Trying to query by not existing property MetadataEntity.filters

but entity has already Filters decorator and select queries works fine.
export const INVALID_METADATA_FILTERS: FilterQuery<any> = {
  [expr('(content->>\'content\')::text')]: {
    $eq: null,
  },
};

@Filter(
  {
    name: 'invalid',
    args: false,
    cond: INVALID_METADATA_FILTERS,
  },
)
export class MetadataEntity extends DatedRecordEntity {
    ...
}

That method actually does support filters, but only at the EM level. Also you need to use the options parameter, first parameter is the query.


convert_to_discrete() takes 1 positional argument but 2 were given

Hello, I am trying to run your code, however there is one change that confused me. In one of your updates you added a second argument to convert_to_discrete.
https://github.com/CORE-Robotics-Lab/Interpretable_DDTS_AISTATS2020/blob/a7fde4d2a7d70477b2e6c96b140f8c6587f78791/interpretable_ddts/runfiles/run_discrete_agent.py#L52
However the current code of convert_to_discrete does only accept one keyword.
https://github.com/CORE-Robotics-Lab/Interpretable_DDTS_AISTATS2020/blob/a7fde4d2a7d70477b2e6c96b140f8c6587f78791/interpretable_ddts/opt_helpers/discretization.py#L7
Is there perhaps an update that you haven't uploaded yet?

Hello and thanks for catching this! It looks like the solution you've linked (accepting a parameter and not using it, or just deleting the second parameter as input) would work fine. I don't think it is supposed to be used for anything.
Unfortunately this code is no longer being actively maintained, and I can't look into this too much right now. But let me know if you have further issues and I can do my best to help out from memory!

Thank you very much for the reply and I fully understand :)

One more question, do you have the wildfire code still available would you be willing to share it (privately)?

Thanks for the fixes, I will take a look at/merge that PR!
Unfortunately I do not have the original code or wildfire game anymore, but the author of that original game went on to develop a fully fledged python game that he used frequently in his research, which you can find here:
https://github.com/EsiSeraj/FireCommander2020 (the repo has links to the original papers and to other repos which use that wildfire domain for RL).


Remove 2 wmstats views that are available in erlang

These views are already available in erlang (WMStatsErl). I x-checked their results and it's all good.

@ticoann review and feel free to merge please


bugfix - updated name spec of managed resources

Signed-off-by: Umanga Chapagain<EMAIL_ADDRESS>

/do-not-merge

Why are we holding?
/hold

Removed the configmap as we don't need it.
No need to hold now.

/retest


New active state colour - DEV

Before the changes in the Cluster Explorer sidenav and the Apps bar, we need to apply the change to the Active State new colour.

This colour should be applied to every component with an active state:

Selected cluster in the Apps bar
Selected section in the Cluster Explorer sidenav
Checkboxes
Radio buttons
Toggles
Segmented controls

And any other not mentioned here.

As a first step, there is no problem with using this colour as the "primary", which would affect other components (like the primary buttons).
The new buttons are already in progress and will replace them in a different release.
Links will also get a new colour to address the accessibility issues they currently have.

Associated PR was closed, moving back to triage


add document from https://github.com/SovereignCloudStack/standards/pu…

…ll/210
the contents of the Design-Docs has been migrated, while this document was written. As such it needs to be moved to be in the right place from the beginning.
Superseedes: https://github.com/SovereignCloudStack/standards/pull/210

SIGH. I got confused by the original location 'Design-Docs'. This is supposed to be an ADR, not an explanatory document.
So it should be in the standards/ repo but in the standards-folder.
However for it to be an ADR it misses the proper fields from my judgement.

I guess this PR can be closed, no?


Question

In the FAQ, Linus said he is done with iOS 15 and that no further updates are planned for iOS 15. Does this mean when new exploits are found, Linus won't update Fugu15?

Think of it this way, fugu15 is not a good jailbreak for general use but it will give other developers the groundwork they need to make a good working jailbreak for ios15. So in short, no, fugu15 won't update


Automatically reload certificate and private key when they are updated in the filesystem

This is a follow-up to #306. When a new Kubernetes secret with a new private key and/or certificate is distributed to the proxy (through the kubelet), we need to load the new private key and certificate.
Since the private key and certificate will be provided to the proxy through the filesystem (via a filesystem-mapped Kubernetes secret), we can use inotify to watch the given paths for changes. It is important to use inotify or an equivalent mechanism whenever possible because we don't want to have a polling background thread in normal use. However, in the case that the inotify subscription fails, or on platforms without inotify, we should have a backup implementation that does polling in a background thread or equivalent.
It will be instructive to study the implementation of similar measures within linkerd, in particular inotify-related bugs.
This builds upon #306; #306 needs to be done first.

On the consuming side, we already have this:
https://github.com/runconduit/conduit/blob/b114ef6819e98a5f1840f50e58193e8d02716fc2/proxy/src/connection.rs#L128
The idea is that configuration objects are immutable and so we can clone (an Arc for) the current configuration and use it for connections totally independently from any configuration changes.
Then what's left is to load a new configuration when the configuration files change, and then to load the configuration file asynchronously, instead of at proxy startup.
https://github.com/runconduit/conduit/blob/b114ef6819e98a5f1840f50e58193e8d02716fc2/proxy/src/lib.rs#L235-L242

Have the control thread poll for changes to the existence of any of the files that would be loaded on disk. When we see any of them has changed, reload all of them from disk. When we get a valid configuration, as determined by load_from_disk(), then update the "current" configuration to the one returned by load_from_disk().

@olix0r suggested that we simply have the control thread work on a timer and avoid inotify for now, and add inotify-based watching later. That sounds OK to me. The only issue is that, especially when we don't have a configuration loaded yet, we'd have to poll often to minimize the time we can't do TLS.
I suggest that the control thread and the I/O threads share the configuration using a Arc<Mutex<Arc<Option<CommonConfig>>>> or (probably simpler) equivalent, rather than passing it on a channel. The configuration almost never changes so a mutex wouldn't have any contention, so I don't see using a channel as having any performance or scalability advantage over the simpler thing.

Another issue that came up is: What do we do when we currently have a valid configuration, but then we try to load an updated configuration, and the new configuration fails. That could happen, for example, if the certificate file is updated and the private key has not been updated yet; in that case we should just keep using the old configuration until the new valid configuration is ready. That could also happen if there was a problem with the old configuration and we're supposed to stop using it; in that case, we should stop using the old configuration.
For the short term, considering other factors, I think it is OK to just always use the old configuration unless/until we get an updated configuration that is actually valid.

@briansmith

I suggest that the control thread and the I/O threads share the configuration using a Arc<Mutex<Arc<Option>>> or (probably simpler) equivalent, rather than passing it on a channel. The configuration almost never changes so a mutex wouldn't have any contention, so I don't see using a channel as having any performance or scalability advantage over the simpler thing.

I was thinking this seemed like a good use-case for futures-watch, which seems like the simplest option from Conduit's perspective...


Create GUI item Panel

Panels are views which contain controls and which are displayed as overlays.
Let's prepare their implementation.

Let's do this in a further life...


[3.x] Fix NodePath default argument in mono bindings

Backport from master, mono was generating "" as default argument instead of (NodePath)"".
Follow-up from https://github.com/godotengine/godot/pull/52369#issuecomment-912902669
(fixes mono error in CI in that PR)

Thanks!


Suppress 'get partition query' when calling cx.read_sql (Python)

Hi,
Thanks for the excellent package.
There doesn't seem to be an option for suppressing the output for the partition queries using cx.read_sql
df = cx.read_sql(pg_conn_str, 'select * from tbl limit 10',
        partition_on=id, partition_num=2)

will always produce (e.g.) output
get partition query: "SELECT * FROM (SELECT * FROM tbl LIMIT 10) AS CXTMPTAB_PART WHERE 18511 <= CXTMPTAB_PART.id AND CXTMPTAB_PART.id< 18810"
get partition query: "SELECT * FROM (SELECT * FROM tbl LIMIT 10) AS CXTMPTAB_PART WHERE 18810 <= CXTMPTAB_PART.id AND CXTMPTAB_PART.id< 19110"

This becomes overwhelming in logs when running on many tables with many partitions
Any help much appreciated

Hi @chris-gaia-lens , can you try the latest alpha version (0.2.4-alpha.4) of connectorx? I think this message should be removed.

Thanks! That worked


blog: Four Pillars of Real-Time Gen AI

2nd commit contains the content edits since the first draft.


Change background Color

I want the app to change it's background color when we calculate Expressions.

Can you explain this please. Like when the user starts typing numbers the background area color should change?

The user will write any expression like 2+3 and when he hits the "=" button, the background color should change.

Is it clear now ?

yes clear. Ok I can do this . Assign it to me.

Great I will assign it to you best of luck 🌟  Happy Coding

@Ctoic I have implemented this. Please review and merge.

Okay I will review and merge it soon. Thanks for contribution

OK @Ctoic Tell me if you wish to see any changes in it.

I can see it changes color when we hit the '=' sign but can you change the functionality that the permanent background color changes on each Calculation? Like First it's purple next blue then green and so on . Can you do it?

Yes, I can.
Starting to implement it.

Great Keep going 👍🏼

@Ctoic Hey it is done. Check it.

Okay Great 👍🏼 lemme check it first then I will merge it.

Wow, It looks Amazing. It is exactly what I was expecting

Thanku so much. Glad u liked it.

Thank you for your contributions, Keep it up


Resolves 112413: Created APIs for triggering Semantics actions in tests.

Adds in support for more easily testing Semantics actions with a general purpose performAction method and various methods for invoking specific actions.
Also fixed a reference to an old method name in the doc comments for containsSemantics.
Resolves #112413
Pre-launch Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[x] I signed the CLA.
[x] I listed at least one issue that this PR fixes in the description above.
[x] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making, or this PR is test-exempt.
[x] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Reading through this makes we wonder if we should also have Finders utilizing properties on SemanticsNodes, i.e. it may be nice to express that you want to perform a tap action on the semantics node that's label with "foo":
tester.semantics.tap(find.semanticsLabel('Foo'));

Reading through this makes we wonder if we should also have Finders utilizing properties on SemanticsNodes, i.e. it may be nice to express that you want to perform a tap action on the semantics node that's label with "foo":
tester.semantics.tap(find.semanticsLabel('Foo'));

There is already find.bySemanticsLabel('Foo') actually! The issue with trying to expand that for other semantics test cases is the same as mentioned on another thread. The Semantics tree and Element tree aren't synced up well enough for the Element based Finder API to be able to find everything that's needed for testing semantics overall.
Finders also always resolve to an Element, which then needs to be translated into a SemanticsNode for many of the semantics testing use cases.
I've debated trying to introduce a separate SemanticsFinder API for SemanticsController, but it'd be a completely separate API, and any interop with the existing Finder API is pretty much out of the question without all of the same gotchas and special cases that the find* methods in SemanticsController already have.
Personally, I'd like to keep it as is where we're taking advantage of the existing (and more importantly familiar) Finder API to limit our search space, then narrowing that down as needed for actually interacting with the semantics system.

Closing for now as this PR will need to be reworked after #123634 has been completed.


Pro/Paid Version of the App

Feature request:
(inspired by another feature request in another thread, and really just formalizing the idea here)
I'd gladly pay for this app. In current form, a donation may be appropriate, but with a few more small features I would certainly pay per tablet, or per Google account, etc. I'm using it on the Amazon Fire tablets, so putting it on the Amazon store would be easiest for me, as I don't want to have to put the whole Google stack on them just to pay for the app.  Either way, the idea is for a paid version. Implementation notwithstanding.

If there's a plan for a paid version, please keep out any dependency from Google's closed ecosystem like Google Play Services etc.
The whole thing under the hood that's most important is privacy, using WallPanel with home automation like Home Assistant is currently possible completely offline, separated from any internet access.
There are great hardwares out there which can be (re)used as wall panels by using custom roms without any Gapps at all, making these run faster and more stable. No need for any Google account to operate a wall panel in a private environment.

I was able to use the app on my Amazon Fire 7, but its not the best tablet.  It is a custom version of Android and it has some issues I can't solve.  Sometimes the app just quits without reason or warning, it seems the Fire OS does this, no idea why.

If there's a plan for a paid version, please keep out any dependency from Google's closed ecosystem like Google Play Services etc.

You cannot really avoid hits, the face recognition or TTS features is part of Google services as well as the crash analytics I use.  But the application does not talk with Google or transmit data.  There are not enough good open source libraries to accomplish all that you want without also using Google.   However, the app does not require Google Play or Google services to be installed, just the dependencies in the application.

I was able to use the app on my Amazon Fire 7, but its not the best tablet. It is a custom version of Android and it has some issues I can't solve. Sometimes the app just quits without reason or warning, it seems the Fire OS does this, no idea why.

Try to look here: https://forum.xda-developers.com/amazon-fire/orig-development
Pick any LineageOS ROM and revive your tablet to run fast and stable.

the app does not require Google Play or Google services to be installed, just the dependencies in the application.

That's fine as long as any future paid version can comply with this. I have WallPanel running on devices with pure LineageOS without any proprietary Google apps on them. Motion detection by the camera works perfect.

I'd gladly pay for this app. In current form, a donation may be appropriate, but with a few more small features I would certainly pay per tablet, or per Google account, etc.

It's not just a matter of money, it's a matter of time. If you have a paid version, then I can architect and hire a developer to work on the project paid for out of the revenue from app sales.  Most open source projects have many contributors to add new features, but this one is mostly done by me, which conflicts with my actual paid work.

the app does not require Google Play or Google services to be installed, just the dependencies in the application.

That's fine as long as any future paid version can comply with this. I have WallPanel running on devices with pure LineageOS without any proprietary Google apps on them. Motion detection by the camera works perfect. Also TTS, using third party offline TTS engine sideloaded.

Paid applications would be loaded from Google Play where payments are collected.  It is much more difficult to manage a paid project and distribute apk separately from the store.  I would also like to move to using Flutter which provides cross platform capability.  We might lose some ability on iOS that can be offer on Android or I may have to use libraries from Google that are supported on both platforms.   Open source 100% is nice, but it does not make it always possible to have a good application that works.   Think about voice recognition, QR code scanning, Face recognition for Android and iOS.  The best libraries are from companies.

The requirements for any future version of WallPanel app should be as follows:

Works on local network (not same as offline, but communicates on local network).

Does not require external service call to operate, such as communicate outside network to 3rd party service in order to work properly.

Be private by design, does not expose user or application data unless used for crash reports or analytics (app analytics is used for crashes and also to analyze use of paid application for future features).

Use agnostic protocol such as MQTT or websockets to talk to home automation platform, should not be tied to specific home automation platform.

Be cross-platform and work similar on both platforms as much as possible.

Try to look here: https://forum.xda-developers.com/amazon-fire/orig-development
Pick any LineageOS ROM and revive your tablet to run fast and stable.

I am planning on rooting this device, but overall the Amazon tablets are a low level device and not the best choice for running applications.  The price is the reason to buy them, but they minimal devices as a result.   Maybe the HD versions work better, I do not know.

Open source 100% is nice, but it does not make it always possible to have a good application that works. Think about voice recognition, QR code scanning, Face recognition for Android and iOS. The best libraries are from companies.

OK. I agree that for these "extras" a paid application would justify. Where you'd have to use such proprietary libraries to bring in "fancy" features. Maybe people wanting to use these are less keen on privacy and having proprietary ecosystems running on their units.
But features not requiring anything special like root access or motion detection etc could be kept in a fully free 100% open source separate version, which would still allow sideloading and not requiring any sort of Google to operate or be put in operation.

@nagyrobi yes, the open source version will always continue, but it will not have the same feature set, or it will have features that lag the paid verison.

Cool. I agree that some of the existing functionality relying on proprietary libraries could be moved to paid version too.

I am thinking a pro/paid version would have more tools for rooted devices. @nagyrobi can you maybe list all the features that would be nice in a version of the app that runs on a rooted device.  This would be Android only, the device would be rooted or running custom software such as Grandstream devices or specialized tablets.
I know I would like a device that runs full screen and cannot be put into the background, the options available that I have seen are really not user friendly or they use some type of enterprise software for managed devices.  But I would think you could achieve this on a rooted device.

I'm sorry but thought until now that you're on the side of openness. I still think that features requiring rooting the units should be kept in the free/opensource version, whilst fancy features like sound and face recognition etc should be moved to the pro/paid version of the app.
Here's why:

someone taking the effort to learn and dig into the internals of the units, even by rooting it (thus also voiding warranty) spends a lot of time and work to achieve results. This proactive mind should be encouraged by openness and open sourcing and freedom.
on the other side: people wanting quick results and fancy stuff, without too much work put in could go with ready-made proprietary solutions which indeed justify payment. These people would be much more happy to pay than the ones in the previous point.
things needed to add root-related capabilities to WallPanel are all open sourced. It would be fair to keep them alike in WallPanel too.


A lazy representation of the Q-Table

This changes the representation of the Q-Table to assume zero as the default reward, and to store only entries that have been updated.  This should improve memory use for state spaces that store quite large states.
I tested a bit on mountaincar, and the outcome is not overwhelming. The new representations seems about 30% faster (on 300K episodes), but otherwise it is not able to explore more episodes than the old one.
@mohsen-ghaffari1992, could you test this branch a bit more? Check how it behaves on other examples, and whether it trains the same policies? (the printing code had to be changed, so now it might print wrong policies).

                     |  # episodes | running time   |
                     |                      | old Q | new Q |

Pumping          |      1000       |   25s  |    18s   |
|        10K       |     E    |      E     |
Mountain Car  |      3000       |     3s  |     2s    |
|      6000       |     E    |    30s   |
|     10000      |     E    |      E     |
Simple Bandit |       50K        |     2s   |    2s    |
Simple Maze   |      10K        |   28s  |    26s   |

The table above seems broken - also I am not sure how to interpret it. Can you fix it and add a sentence of explanation?

During these tests, we are investigating whether our lazy representation of the Q-Table could be better in saving memory and time. According to the results, it is faster than the prior implementation (all state-action pairs kept in the Q-Table) in an obvious way. Also, there is a case in the mountain car example that the new implementation saves memory and can run without getting a heap error.

@wasowski,
In WindyGridSpec.scala, we have a test that uses prior representation of Q-Table, which should be revised.

Needs to be rebased non-trivially because newer commits to windygrid don't compile with this.


Fix IBMCloud SNO deployment

This looks good as far as I can tell.
Does this address #476?

Yes it does. So the root of why Eli's SNO node was not being discovered lies in the dns configuration on the bastion as well as the network configuration being applied to the SNO node. First I found the issue that was preventing a static_network_config from being patched into the associated infra-env for the provisioning SNO. Afterwards I observed that the machine could not resolve quay.io and began troubleshooting the dns settings being applied. After looking at the firewall settings, and the dnsmasq settings I found that interface=lo was set in /etc/dnsmasq.conf by default. It appears that this must a default used in a newer Centos. So this PR removes that configuration. In addition there was some additional logic things I went ahead and addressed in this PR as well. (No need to nest static_network_config since it is applied per infra-env, and ideally in the future the playbook is entirely structured around only installing one sno at a time anyhow.)
I'll move the PR to ready after this last cluster completes installing.  At that point we really need to make sure my logic changes here don't break scale lab provisioning of an SNO, perhaps @Noreen21 could run the PR and see if it broke anything since the tasks modified here are shared in both provisioning paths.

Does this address #476?

Yes it does.

Cool!  You should add a line like

Fixes #476

to the PR Description -- that will prompt GitHub to automatically close the issue when the PR is merged.


How to extract flags used to make GHCi session?

I want to add support to haskell-ide-engine for obelisk.
In order to do this I just need the list of flags used to invoke ghci when ob run is called.
My ideal interface is that there is a command I can run (for example ob get-args common/Foo.hs) which will output the list of flags such that ghci $(ob get-args common/Foo.hs) common/Foo.hs will succeed.
I haven't yet looked into the internals of obelisk so a little bit of direction might be all I need to implement this. I've already implemented support for cabal, hadrian and rules_haskell.

Alternatively, "just" linking with obelisk-command would give you access to that function. Don't know if this is an option.

Thanks for your prompt reply @eskimor
Right, linking is not an option. withGhcCmd looks like what I need but it seems that some arguments that should appear on the command line are in the script.
Would it be appropriate to refactor withGhciScript so that the continuation is of type ([String], FilePath) -> m () so that the first component of the tuple is the command line arguments and the second is the .ghci file? That way I could easily implement a target which dumped out the necessary command line.
I was also wondering that there is no call to -package-db, where is the package database? Perhaps there is something funny going on with -i in the script.

The package db is generated by nix ultimately via ghcWithPackages.

@mpickering The way that I go about this is to wrap up the commands that are being run in a nix-shell.
In my current emacs setup, that actually means running hie in a nix shell, running a separate hie for backend/common/frontend. Like so:
nix-shell -I . --arg hie true --command hie-wrapper --lsp -d -l /tmp/hie.log /home/bkolera/src/github/qfpl/reflex-realworld-example/frontend . This is done by having a shell.nix next to the cabal file that is import (../.).shells.ghc to get the right haskell environment in the shell.
This way, hie just runs individually for each cabal file, but it's not entirely idea. I end up having to create a sandbox for each cabal file and add-sourcing common so that they play nice. It's not ideal and can get pretty flakey with the slower than normal compile times in obelisk land, but my setup may help you a little (or at least not hurt), perhaps! :slightly_smiling_face:

Thanks @benkolera
I implemented prototype support for this on my branch - https://github.com/mpickering/obelisk/tree/ide-args
It worked with the example project you linked above (after launching vscode from the shell). There is a problem with TemplateHaskell and jsaddle-dom seeming to hang whilst loading. I don't have time to investigate that now but support for obelisk should definitely be possible in future once we work that out. It is probably just setting some options incorrectly.

Note that we can get the pkg database directly: cat "$(nix-build -E '(import <nixpkgs> {}).haskellPackages.ghcWithPackages (p: [p.vector])' --no-out-link)"/bin/ghci #! /nix/store/cinw572b38aln37glr0zb8lxwrgaffl4-bash-4.4-p23/bin/bash -e export NIX_GHC='/nix/store/i512zr3700xrc9d6aapjwqa1hxgj53kl-ghc-8.6.4-with-packages/bin/ghc' export NIX_GHCPKG='/nix/store/i512zr3700xrc9d6aapjwqa1hxgj53kl-ghc-8.6.4-with-packages/bin/ghc-pkg' export NIX_GHC_DOCDIR='/nix/store/i512zr3700xrc9d6aapjwqa1hxgj53kl-ghc-8.6.4-with-packages/share/doc/ghc/html' export NIX_GHC_LIBDIR='/nix/store/i512zr3700xrc9d6aapjwqa1hxgj53kl-ghc-8.6.4-with-packages/lib/ghc-8.6.4' exec "/nix/store/8vq01xmxlp9wxzilkw85rb621ag7nwmd-ghc-8.6.4/bin/ghci"  "-B$NIX_GHC_LIBDIR" "${extraFlagsArray[@]}" "$@"

I'm closing this as the motivating use-case, haskell-ide-engine, has been supplanted by HLS. HLS integration is on our roadmap. Anyone that still has a use-case is welcome to make another issue.


RDF::URI validation incorrectly matches RDF::Nodes

Consider e.g.
RDF::URI.new(RDF::Node.new).valid?
=> #<MatchData "_:g70365175636340" 1:nil>

According to IRI validation rules the scheme part of "_:g70365175636340" should be invalid, i.e.
scheme         = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )

@no_reply has suggested the issue may be the scheme grammar regex:
Regexp.compile("[A-za-z](?:[A-Za-z0-9+-\.])*").match '_:'
=> #<MatchData "_">

vs.
Regexp.compile("[A-za-z](?:[A-Za-z0-9+-\.])+").match '_:'
=> nil

Is this a straightforward fix, or can someone with strong regex chops verify the implementation of the IETF syntax?

I think this is fixed if we replace [A-za-z] with [A-Za-z]


[Internal Review] Merge ORT MoE

Introduce our MoE (Mixture of Expert) implementation. See updated Readme for more details

What is the motivation behind this change? Do we need restructuring of the existing code so as to make room for the moe code (for example move all ortmodule related code and tests under the torch_ort folder and so on.)?

We're repurposing this repo to include open source ORT MoE too. Restructuring is ideal if we can do so without breaking current compatibility and get the PR in time for the blog post. Will sync with you offline

@jingyanwangms : Please add PR description

Have you tested creating both torch_ort and ort_moe packages? Was there any issue? Restructuring the code might be a good idea since torch_ort and ort_moe are independent of each other. In coming months, we also plan to add other components like adam optimizer to this repo (which are also independent) and this restructuring will be useful there as well.

Have you tested creating both torch_ort and ort_moe packages? Was there any issue? Restructuring the code might be a good idea since torch_ort and ort_moe are independent of each other. In coming months, we also plan to add other components like adam optimizer to this repo (which are also independent) and this restructuring will be useful there as well.

Yes. I tested MoE build with build instruction in readme python -m build and python setup.py bdist_wheel from azure-pipelines.yaml for torch_ort. We should definitely try to use similar build method in a more structured way in future. But for the time being, they can both build.

@jingyanwangms : Please add PR description

Added


KubeCPUOvercommit and KubeMemOvercommit considering non-scheduled pods

What happened?
Alerts for KubeCPUOvercommit and KubeMemOvercommit are raising wrongly due to the fact that the rules are considering all the pods resource allocation, including pods that aren't scheduled (for example pods in Completed phase).
Did you expect to see some different?
Only scheduled pods should be considered requesting resources.
How to reproduce it (as minimally and precisely as possible):
Run a kubernetes job, wait for the pod to get in the completed state, and verify that is still considered in the sum of pod allocated resources in the cluster.
Environment

Prometheus Operator version:
quay.io/coreos/prometheus-operator:v0.34.0

Kubernetes version information:

Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.0", GitCommit:"70132b0f130acc0bed193d9ba59dd186f0e634cf", GitTreeState:"clean", BuildDate:"2019-12-13T11:52:32Z", GoVersion:"go1.13.4", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"14+", GitVersion:"v1.14.9-eks-c0eccc", GitCommit:"c0eccca51d7500bb03b2f163dd8d534ffeb2f7a2", GitTreeState:"clean", BuildDate:"2019-12-22T23:14:11Z", GoVersion:"go1.12.12", Compiler:"gc", Platform:"linux/amd64"}

Kubernetes cluster kind:
Amazon EKS

Which commit/version of kube-prometheus are you using?
https://github.com/kubernetes-monitoring/kubernetes-mixin/blob/master/alerts/resource_alerts.libsonnet#L24-L41
Uses the recording rules namespace:kube_pod_container_resource_requests_cpu_cores:sum and namespace:kube_pod_container_resource_requests_memory_bytes:sum which only select on running and pending pods.
https://github.com/kubernetes-monitoring/kubernetes-mixin/blob/c9607e32d8ed8f516750f5ccb6567ef391ef809a/rules/apps.libsonnet#L63-L90

I see... does that work differently from kube_pod_container_resource_requests_cpu_cores and kube_pod_container_resource_requests_memory_bytes? I can see the completed pods appearing in those two metrics.

Yes those recording rules only include pods that are either in Running or Pending state.

@brancz thanks: I've been too precipitous and haven't investigated enough, it looks like the rules are behaving properly, so I'm gonna close the issue.


RequirementMachine: Better rule deletion heuristic

To match the GSB's same-type requirement minimization algorithm, prefer to mark "less canonical" rules as redundant, by defining a linear order on rules that first compares the LHS and then the RHS. This replaces the previous heuristic which simply preferred to delete lower-numbered rules.
Also, the GSB's "connected components" algorithm has special behavior with concrete type requirements that we need to simulate.


ArrayList store should return results lazily

The ArrayList store produces a List of results when queried. Stores should return their results lazily, i.e. only extract data from the underlying storage layer as the user consumes it by reading through the iterable of results. This avoids unnecessary work if the user decides to not read through all the results. It also avoids memory pressure in the store - materialising all the edges for a high-degree node into a set could use a lot of memory.

The ArrayList store was initially intended to demonstrate different types of Gaffer stores. However, it isn't particularly efficient and lacks a lot of the features you get from using a mock accumulo store. I don't think it is worth spending time refactoring this store and adding the extra features in. Instead we could remove the store and implement a different store see gh-278 or gh-279.


Example value for websiteName

A little confused on what value should I provide for the field: websiteName.
Thanks

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

ID: 244121ae-5de4-14cd-a9c3-d9cda5ad0a3b
Version Independent ID: 313238b7-d67b-bc60-1188-cbe305179600
Content: IIS Web App Manage task - Azure Pipelines
Content Source: docs/pipelines/tasks/deploy/iis-web-app-management-on-machine-group.md
Product: devops
Technology: devops-cicd-tasks
GitHub Login: @RoopeshNair
Microsoft Alias: ronai

name of the website that you are trying to update - IIS website name. The default is "Default website"


New snappy check for irods content

closes #56
Changes

New routine to compare remote and local files, call: cubi-tk snappy check-remote <UUID>.
Previous available check routine renamed, call: cubi-tk snappy check-local <UUID>.

Hi, I'm just putting stuff here as I see it. There are a lot of commits here that make the PR hard to read. Could you rebase to current master?

Hi, I'm just putting stuff here as I see it. There are a lot of commits here that make the PR hard to read. Could you rebase to current master?

Ah, never mind, you started off my WIP branch.

Hi, the semantics look fine. I have one proposal for improvement of semantics and general info comments:

I would suggest rather going for iquest or the python irods library equivalent.

You can perform queries like SELECT coll_name, data_name WHERE coll_name LIKE "/someZone/prefix/.../%". You then just have one API call instead of many ils -r calls that might (and show error debug messages because of return code !=0 that are not problems per se).
With the python irods library you will also be able to just read the .md5 files from irods directly without calling to iget.

maybe cwd back to the directory that has ".snappy_pipeline" and "ngs_mapping" and such as sub directories automatically.
overall the semantics are correct. It might be useful to print warnings in the case that there are two files (from any sample!) that have the same checksum (except if this is the checksum of the empty file/string).
I think it would be helpful if the reported file lists were sorted so it is simpler to visually group them.

I'm also seeing a lot of missing ".fastq.gz.md5" files. I believe the itransfer-raw-data takes the .md5 files from the link target in the input links folder. Also see https://github.com/bihealth/snappy-pipeline/issues/79.

I messed up the PR with a rebase. Real change:

[ ] cubi_tk/snappy/__init__.py
[ ] cubi_tk/snappy/check_local.py
[ ] cubi_tk/snappy/check_remote.py
[ ] cubi_tk/snappy/common.py
[ ] tests/conftest.py
[ ] tests/data/*
[ ] tests/test_snappy_check_remote.py


Support other testtypes

[ ] regex
[ ] unittest
[ ] checkstyle

Also validate those in the buildprocess

[x] somehow map schema namespace to file(name)
[ ] try to validate any_node in import_helpers.rb:69

according to 1 I should be able to validate a slightly modified version of the unittest (have to get the node, export it with to_xml(save_with: 0) to a string without needless newlines, then parse it again and get a nokogiri:document. Then I have to add the unit namespace to the unittest node. (see picture [2]). Nokogiri doesn't agree yet, that this is valid though.

2:

Breakpoint in import_helpers.rb:69
fdoc = Nokogiri::XML(configuration_any_node.to_xml(save_with: 0)
fdoc.children.first.add_namespace_definition('unit', 'urn:proforma:tests:unittest:v1.1')

schema = Nokogiri::XML::Schema(File.read(Proforma::SCHEMA_FORMAT_PATH % 'unittest'))
schema.validate fdoc

[ ] Save xml as json

{
  unittest:
    {
      attributes: [{key: value}, "check if onlykey?? is possible"],
      children:[{another_node, "string"}]
    }
}

[ ] check all ##other nodes for proforma namespaces and schemas

Trying to use the new Dachsfisch gem to convert arbitrary XML-Nodes to JSON creates new problems:

In case of testtypes, the namespace is not registered at the root of the node but at the root of the document:

<unit:unittest framework="JUnit" version="4.10">
  <unit:entry-point>HelloWorldTest</unit:entry-point>
</unit:unittest>

Nokogiri notices the missing namespace and Dachsfisch reraises it (xml2_json_converter.rb:9)
If we disable the reraise and ignore the error, we could use Dachsfisch to get the following json:
{
  "unit:unittest":{
    "unit:entry-point": {
      "$1":"HelloWorldTest"
    },
    "@framework":"JUnit","@version":"4.10"
  }
}

another option would be to create a new document from the snippet and manually add the used namespace(s). This would result in

{
    "unittest": {
        "@framework": "JUnit",
        "@version": "4.10",
        "@xmlns": {
            "unit": "urn:proforma:tests:unittest:v1.1"
        },
        "unit:entry-point": {
            "$1": "HelloWorldTest",
            "@xmlns": {
                "unit": "urn:proforma:tests:unittest:v1.1"
            }
        }
    }
}

This feels like the desired output, but getting there is inconvenient. We may think about adding an option to Dachsfisch to either supply namespaces or Nokogiri-Nodes as input.

Correction regarding the second JSON snippet:
The root node (line 2) does not have a namespace prefix. This is a bug in dachfisch

Ah, thanks for fixing the issue. I just reviewed and merged your PR openhpi/dachsfisch#25, resolving the issue you mentioned. This "just" leaves us back with the original problem.
My actual intuition would have been the last solution you suggested: Manually passing the respective namespace to the converter. For this, I would also think that extending dachsfisch to support custom namespace passing might be a good idea.

The converters can extract the namespace from the input xml/json. My problem was that I had to add it to the existing document (builder), but I found a way.

Alright, great. Regarding the regex test: Do you think we should include our slightly modified XSD in the gem? I remember that we had a discussion about a bug in the official XSD (and a solution to that), but cannot find the discussion. As far as I remember, the change we considered wasn't too much, but required in order to make regex definitions work as expected, right?

I found your suggested change:
Subject: [PATCH] Fix RegExp Test to allow actual RegEx
---
Index: assets/schemas/proforma-regexptest.xsd
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/assets/schemas/proforma-regexptest.xsd b/assets/schemas/proforma-regexptest.xsd
--- a/assets/schemas/proforma-regexptest.xsd    (revision 3fc893bf5342b98462623b8577a1eafdaae64f92)
+++ b/assets/schemas/proforma-regexptest.xsd    (date<PHONE_NUMBER>545)
@@ -34,7 +34,11 @@
     </xs:element>

     <xs:complexType name="regexpType">
-        <xs:attributeGroup ref="ns1:regexp-flags"/>
+        <xs:simpleContent>
+            <xs:extension base="xs:string">
+                <xs:attributeGroup ref="ns1:regexp-flags"/>
+            </xs:extension>
+        </xs:simpleContent>
     </xs:complexType>
     <!-- attributes to define, which regexp-flags are applied to a specified regular expression -->
     <xs:attributeGroup name="regexp-flags">

Indeed, right. If including the proforma-regexptest.xsd, I would go with this change (maybe in a separate commit, allowing us to identify the change later). I remember searching for changes in their XSD and concluding that this was a mistake introduced by migrating from ProFormA 1.x to 2.x. Sure, silently changing the XSD is not nice, but a) we are missing a working example as of now and b) the working group is no longer developing the schema further (in which case it's just us fixing the problem). Once we have it implemented, I can also reach out to them.


Add articles

Convert articles from old website format to current:

[x] 27
[x] 26 (placeholder)
[x] 25
[x] 24
[x] 23
[x] 22
[x] 21
[x] 20
[x] 19
[x] 18
[x] 17
[x] 16
[x] 15
[x] 14
[x] 13
[x] 12
[x] 11
[x] 10
[x] 9
[x] 8
[x] 7
[x] 6
[x] 5
[x] 4
[x] 3
[x] 2
[x] 1

There's not going to be time to port all the existing articles over before the old site closes.
As a stopgap measure "print" the existing articles as PDFs and link to them from the articles page.
Either store the PDFs in a temporary repo on GitHub or pop them in a temporary folder in the website. Using a separate repo would avoid cluttering up the main site Git repo and make it easier to adapt the existing articles in the main repo.

Re: https://github.com/delphidabbler/delphidabbler.github.io/issues/26#issuecomment-630529286
PDFs now created and stored in GitHub repo delphidabbler/articles.

Articles 4, 6, 11 and 15 have been ported from the old website in time for the next release.
The remainder will need to wait for subsequent releases.

Done at last!


feat: try to collect failure log after test timeout

try to collect failure log after test timeout

/hold
wait for relay test link  https://do.pingcap.net/jenkins/blue/organizations/jenkins/pingcap%2Ftidb%2Fpull_lightning_integration_test/detail/pull_lightning_integration_test/842/pipeline

/unhold


ci: add konflux test cases

To enable integration test in konflux, this pr added test cases that will be triggered by konflux mr https://gitlab.cee.redhat.com/releng/konflux-release-data/-/merge_requests/2167
This pr only includes simple check for those containers, after this pr and related konflux mr get merged, I can start to trigger the workflow and debug errors. After the whole konflux integration test workflow is verified, more test cases can be added later.
I have a concern:
konflux will build single fido container and trigger test, for example, it build manufacturing server container and then trigger test for manufacturing server. Konflux currently cannot build all fido containers at the same time and then trigger the test.
This brings two questions:

If I remember correctly some fido container depends on other container to start, so if that fido container can not startup, we can only run some very simple checks.
We need all fido containers up and running to run a full fido onboarding test, test each fido container separately does not  make much sense.

@mmartinv @runcom could you please help to review this pull request? (sorry I don't know which one of you I should ask)

If I remember correctly some fido container depends on other container to start, so if that fido container can not startup, we can only run some very simple checks.

not really, they can start independently but the value of testing them w/o the full flow is not high (to me, it's good but not high)

2. We need all fido containers up and running to run a full fido onboarding test, test each fido container separately does not  make much sense.

yes

Hi @yih-redhat, according to https://gitlab.cee.redhat.com/releng/konflux-release-data/-/merge_requests/2167#note_13160582, I think this PR needs to be landed first, then https://gitlab.cee.redhat.com/releng/konflux-release-data/-/merge_requests/2167.

Hi @yih-redhat, according to https://gitlab.cee.redhat.com/releng/konflux-release-data/-/merge_requests/2167#note_13160582, I think this PR needs to be landed first, then https://gitlab.cee.redhat.com/releng/konflux-release-data/-/merge_requests/2167.

That would certainly be a best scenario, however if you expect this PR to be merged within few hours I can approve the configuration one (and merge it) ASAP.

Thanks for starting on this @yih-redhat!
I would love to see some additional documentation or inline comments explaining some of what is happening in these tests. For example, it is surprising to see the use of apk in the test (though I guess that is just the Testing Farm CLI container that is using Alpine Linux?).
I just want to avoid the situation where a new contributor to this repo finds these files and has no context about why they are here, what they do, etc.

Hi @miabbott , I have add a README file in this konflux folder to explain why we created these files and what they do, and also explained the workflow that konflux use these files to run integration test. Please let me know if I miss anything here.


Improvement: Many pieces of information are conveyed via internal ID only

For example, NobleID and CardID are irreversible in the Python bots, and the Rust bots would require digging through source code to understand. A helper method to convert from the id is very beneficial.

CardID is now conveyed in multiple ways in the Python client. Still have to improve API of Rust but that is less of a priority.

Rust API and Python API have ways to access from_id as of commit https://github.com/pashneal/splendor-tournament/commit/898071d3fbcb17d93732e5ce2445fb0be80dc515


Data type is linked between main and single task views and cannot be set independently.

Is your feature request related to a problem? Please describe.
The data type is kept from main view to single task labelling view. For audio events labelling, I set the type to "aud" to be able to quicklen listen to each audio. Clicking on one audio to go and label it, the "aud" type is kept in the labelling view, which is pointless because we have the player on the right. Furthermore, there is no indication of the audio name in this view, if we don't set the data type back to "str" on the left panel. Switching to "str" in this view changes the type back in the main view, what I don't want.
Describe the solution you'd like
I would like to have the "aud" type selected in main view and "str" type selected in single task labelling view without having to manually switch it each time.
Describe alternatives you've considered
I didn't find any alternatives other than manually switching the types each time.
Additional context
Please refer to the below screenshots. Note the irrelevance of having "aud" type in screenshot 2 compared to screenshot 1. Changing one automatically changes the other. Also note that there is no other indication of the data name in screenshot 2.
Screenshot 1

Screenshot 2

Hello Antoine,
I think the workaround would be to enable the Upload filename column, which will allow you to see that. Would that work for your usecase?


Check for soft doom before doing potentially expensive initRange

@havardpe PR

Ah, this explain the strange name of #28668. Push it was indeed too many branches...


#321 First attempt at domains, controls and structure

Explaining what I am meaning by some of the terms:

Control Requirement: this is a high-level statement of what is needed, e.g. "all code in production must meet appropriate architecture quality characteristics (a.k.a. NFRs)".
Control Instance: this is the way a particular requirement is implemented, and there may be multiple of these for a single requirement.  E.g. "All systems in MyDepartment are reviewed by an approved architect before entering production, and a record of that is captured in the central review log repository".
Control Evidence: this is the data that shows that a particular Control Instance was satisfied.  E.g. "On 2024-05-27, jpgough-ms did an architecture review of MySystem and approved it meets appropriate AQCs, as evidenced by document http://myfirm/reviewlog-123" (except expressed as data rather than text).

There's also the potential for automated testing of the evidence, which might be done by a REGO expression in the Control Instance operating on the Control Evidence data (with hooks to pull additional info from linked repositories).

Couple of things to change on the PR based on this feedback:

[ ] Add evidence-id and evidence-link if @yt-ms agrees to the general approach
[ ] Move the definition out of nodes, so it could be referenced from relationships if we decide to go that way


Skype for Business Server 2015 Compatability

The website that is referenced for skype for business server 2015 - https://docs.microsoft.com/en-au/skypeforbusiness/plan-your-deployment/requirements-for-your-environment/server-requirements#operating-systems-for-skype-for-business-server-2015 reflects that it is supported on Server 2016 now.

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

ID: 490f6e58-73b1-52d8-521f-54a60c5425b0
Version Independent ID: e5ea308f-7ff5-352d-0ba5-4f384e0186b8
Content: Microsoft Server Application Compatibility
Content Source: WindowsServerDocs/get-started/Server-Application-Compatibility.md
Service: unspecified
GitHub Login: @jaimeo
Microsoft Alias: jaimeo

Ref. commits https://github.com/MicrosoftDocs/windowsserverdocs/commit/bc0a54fecbe2aef8b4ac4232352e1b09b60009f8 & https://github.com/MicrosoftDocs/windowsserverdocs/commit/8cda1fa0625dec77bf1476a7424660672bfaa290 from PR #990 .

#please-close


[React Form] Sitecore Form field validation rules not working

Description
Sitecore Form rules such as Email Validator, or Number Validator are not being evaluated.
Expected behavior

JSS React Form should show an error when validators set on certain fields fail.

Steps To Reproduce

Create a Sitecore Forms form with a Single-line Text field (or a Telephone field), check the "Phone Number Validator" or "Number Validator" if not yet applied, then Publish
Apply created Sitecore Forms to JSS application as defined in the docs here
Fill up the form with an invalid value (093G1234567)
Form would be submitted even if it shouldn't.

Your Environment

Sitecore Version: 9.3
JSS Version: 13.2
Browser Name and version: MS Edge
Operating System and version (desktop or mobile): Windows 11

Figured it out:
I was working on Dutch (Netherlands) language version, so I checked the "Phone Number Validator" item and there's no Dutch (Netherlands) version of that item that's why it didn't run.
But should this actually be the case or should it at least use the item's fallback language?

This is happening to me. Is there no client side validation when using react forms package for jss?


[examples] Fix filename typo in Vite

[x] I have followed (at least) the PR section of the contributing guide.

Also, the file is in TypeScript but has no annotations.

Also, the file is in .jsx an extension that we don't allow cc @mnajdova

@oliviertassinari I've tried it back on the first PR, but got the error below, that's why I've left them with .jsx
[vite] Internal server error: Failed to parse source for import analysis because the content contains invalid JS syntax. If you are using JSX, make sure to name the file with the .jsx or .tsx extension.


tikv cannot connect to the pd instances scaled out after its initialization

Bug Report

What version of TiKV are you using?

v4.0.2
What operating system and CPU are you using?

CentOS
Steps to reproduce

Create TiDB Cluster with 1 PD and 3 TiKV, run some workload
Scale out to 3 PD
Delete member of the first PD

What did you expect?
The cluster works well and TiKV can connect to other PDs.
What did happened?
TiKV always tries to connect to the first PD.

Even if with PR https://github.com/tikv/tikv/pull/7028, it's still possible that the first PD is down before the next PD info update.

/lable component/pd-client

/label component/pd-client


AttributeError: 'function' object has no attribute 'embed_query' with OpenAI llm and custom tool for Data Lake with Activeloop

Checked other resources

[X] I added a very descriptive title to this issue.
[X] I searched the LangChain documentation with the integrated search.
[X] I used the GitHub search to find a similar question and didn't find it.
[X] I am sure that this is a bug in LangChain rather than my code.
[X] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

Example Code
tools = load_tools(["ddg-search", "wikipedia", "llm-math"], llm=llm)
    retriever = db.as_retriever()
    repl_tool = Tool(
        name="python_repl",
        description="A Python shell. Use this to execute python commands. Input should be a valid python command. If you want to see the output of a value, you should print it out with `print(...)`.",
        func=PythonREPL().run,
    )

    retrieve_tool = create_retriever_tool(
        retriever,
        "SearchDocuments",
        "Searches and returns results from documents to answer queries.",
    )

    tools += [repl_tool, retrieve_tool]

    return tools

Error Message and Stack Trace (if applicable)

Entering new AgentExecutor chain...

Invoking: SearchDocuments with list all documents
2024-03-15 23:40:14.938 Uncaught app exception
Traceback (most recent call last):
File "C:\Users\Rafael\anaconda3\envs\kaggle\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 535, in _run_script
exec(code, module.dict)
File "C:\Users\Rafael\OneDrive - Artificial Intelligence Expert\Documents\BioChat_v2\BioChat\src\app.py", line 196, in
main(constants_path=f"./config/CONSTANTS.json")
File "C:\Users\Rafael\OneDrive - Artificial Intelligence Expert\Documents\BioChat_v2\BioChat\src\app.py", line 165, in main
result = st.session_state["agent"].invoke(
File "C:\Users\Rafael\anaconda3\envs\kaggle\lib\site-packages\langchain\chains\base.py", line 163, in invoke
raise e
File "C:\Users\Rafael\anaconda3\envs\kaggle\lib\site-packages\langchain\chains\base.py", line 153, in invoke
self._call(inputs, run_manager=run_manager)
File "C:\Users\Rafael\anaconda3\envs\kaggle\lib\site-packages\langchain\agents\agent.py", line 1432, in _call
next_step_output = self._take_next_step(
File "C:\Users\Rafael\anaconda3\envs\kaggle\lib\site-packages\langchain\agents\agent.py", line 1138, in _take_next_step
[
File "C:\Users\Rafael\anaconda3\envs\kaggle\lib\site-packages\langchain\agents\agent.py", line 1138, in
[
File "C:\Users\Rafael\anaconda3\envs\kaggle\lib\site-packages\langchain\agents\agent.py", line 1223, in _iter_next_step
yield self._perform_agent_action(
File "C:\Users\Rafael\anaconda3\envs\kaggle\lib\site-packages\langchain\agents\agent.py", line 1245, in _perform_agent_action
observation = tool.run(
File "C:\Users\Rafael\anaconda3\envs\kaggle\lib\site-packages\langchain_core\tools.py", line 417, in run
raise e
File "C:\Users\Rafael\anaconda3\envs\kaggle\lib\site-packages\langchain_core\tools.py", line 376, in run
self._run(*tool_args, run_manager=run_manager, **tool_kwargs)
File "C:\Users\Rafael\anaconda3\envs\kaggle\lib\site-packages\langchain_core\tools.py", line 580, in _run
else self.func(*args, **kwargs)
File "C:\Users\Rafael\OneDrive - Artificial Intelligence Expert\Documents\BioChat_v2\BioChat/src\agent.py", line 165, in
func=lambda query: retriever_tool(query),
File "C:\Users\Rafael\OneDrive - Artificial Intelligence Expert\Documents\BioChat_v2\BioChat/src\agent.py", line 148, in retriever_tool
docs = retriever.get_relevant_documents(query)
File "C:\Users\Rafael\anaconda3\envs\kaggle\lib\site-packages\langchain_core\retrievers.py", line 244, in get_relevant_documents
raise e
File "C:\Users\Rafael\anaconda3\envs\kaggle\lib\site-packages\langchain_core\retrievers.py", line 237, in get_relevant_documents
result = self._get_relevant_documents(
File "C:\Users\Rafael\anaconda3\envs\kaggle\lib\site-packages\langchain_core\vectorstores.py", line 674, in _get_relevant_documents
docs = self.vectorstore.similarity_search(query, **self.search_kwargs)
File "C:\Users\Rafael\anaconda3\envs\kaggle\lib\site-packages\langchain_community\vectorstores\deeplake.py", line 541, in similarity_search
return self._search(
File "C:\Users\Rafael\anaconda3\envs\kaggle\lib\site-packages\langchain_community\vectorstores\deeplake.py", line 421, in _search
_embedding_function = self._embedding_function.embed_query
AttributeError: 'function' object has no attribute 'embed_query'
Description
I'm trying to add a custom tool so that an agent can retrieve information from data lake activeloop however I keep getting the error
AttributeError: 'function' object has no attribute 'embed_query'
How can I fix this?
System Info
langchain==0.1.12
langchain-community==0.0.28
langchain-core==0.1.32
langchain-experimental==0.0.54
langchain-google-vertexai==0.1.0
langchain-openai==0.0.8
langchain-text-splitters==0.0.1
langchainhub==0.1.15

Any help on this?


Sidemenu unit test failing

Line 81, sidemenu.unit.js is failing as of 68800e35f51e7458fe9a0e5f2bbce0ecb7ad0114

Greetings @jabyrd3!
My sensors indicate that you need to update your issue through our custom issue form. We are now requiring all issues to be submitted this way, to ensure that we have all of the information necessary to fix them as quickly as possible.
Click Here To Update Your Issue
I will have no choice but to close this issue if it is not resubmitted through the form. Please fill out the rest of the form, so that I may use my friendly robot powers to assist you.
Thank you!

Rebuilt, wasn't able to recreate?


Localtunnel Not Functioning Properly as of 08/08/23

I wanted to bring to your attention an issue I am facing with Localtunnel, a tool I've been using for some time now. As of 08/08/23 at 16:00 GMT, I have encountered a problem where Localtunnel is not functioning as expected.
Description:
Upon attempting to establish a tunnel using Localtunnel, I consistently encounter a stucked failure. The tunnel fails to be created, preventing me from accessing my local server remotely through the generated URL.
Steps to Reproduce:

Open a terminal.
Run the command localtunnel your-port-number.
It won't move further and will get stucked

Expected Behavior:
I expected the tunnel creation to be successful, resulting in the generation of a URL that I could use to access my local server remotely.
Actual Behavior:
Contrary to my expectations, the tunnel creation consistently fails. The command gets stucks after hitting enter.
Environment:
Operating System: Windows 10
Node.js Version: v18.16.0
Localtunnel Version: v2.0.2
Additional Information:
I have attached a screenshot that captures the behavior I receive for your reference. This should provide more context about the issue I'm facing.
Thank you : )

I'm having a few issues myself, tunnel seems to be creating fine but having issues sending and receiving data.  Anyone else experiencing this?

@ultan-kearns-revium yes

Having issues as well.

Same herer

👀

Hey all, it should be up and working again. Can someone confirm and I'll close this ticket?

@TheBoroer yep! It's been up for about a few days now. Feel free to close this issue


Support Explicit normals on 3ds max meshes

Some meshes in max don't have smoothing groups assigned. Instead there are one or more explicit normals. appleseed right now only supports meshes with smoothing groups, otherwise it builds normals based on face normals.
Attached is the test scene for max 2019. It is rendered faced while viewport shows smooth meshes.
test_normal_export.zip

I think I have the fix for that, I'll try to make PR this weekend.

#300


A canonical guide to deploying Meltano in production

Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/2635
Originally created by @al.whatmough on 2021-03-10 08:32:11

The existing deployment guide at https://meltano.com/docs/production.html#your-meltano-project is good, but I think it'd be quite useful to have a canonical, step-by-step guide to deploying Meltano in production.
The actual deployment details are sort of left as an exercise for the reader at the moment, and I think it'd be good to have a more detailed guide to how to do it in a best practice way.
I personally have spent some time trying to deploy it on Google Cloud Run, which I ended up not progressing with in the end as I ran into several issues. I'm sure there's a better way.
Just starting this issue to see if anyone has any input on how this could be tackled. I understand there was some work on a Helm chart but I'm not sure what the status of that is. Kubernetes is overkill for some people, maybe just some Terraform config or an Ansible playbook would be a starting point?

View 5 previous comments from the original issue on GitLab

We need a list of all the guides we need then we can create individual issues for each guide.

Kubernetes (good baseline across all clouds)
Docker? (we have a half-finished one on this)
Deploy to EC2? or maybe under POC, or some container (get this off your computer)- how to install on legacy server
ECS

we agreed we would move forward with Kubernetes one first and come back to next topic once that one is live.

Kubernetes issue: https://github.com/meltano/meltano/issues/6266

I've added Meltano to an existing Airflow setup, where I run my Meltano project in a docker container on ECS using the Airflow ECSOperator.
I agree that the Docker guide is good and I was able to follow along for the most part, the only thing I'm still a bit confused about is to how I should persist Meltano's .meltano/cache accross runs. I guess I should use EFS for this?

Use Meltano Cloud :wink:


Start new Tab with multiple profiles in panes

It would be cool to be able to define a profile containing other different profiles that open up in a single tab an there in multiple panes (right / left etc.)

This is another shade of #756, even though it says "multiple tabs."


docker-compose dolphinscheduler/2.0.0-SNAPSHOT  erro

Search before asking

[X] I had searched in the issues and found no similar issues.

What happened
When using docker compose to install the 2.0 source code provided on the official website, the image file cannot be found
What you expected to happen
The image not found error occurs because image is Apache / Dolphin scheduler: 2.0.0-snapshot in docker-compose.yml and docker-stack.yml_ hub image is apache/dolphinscheduler:2.0.0-alpha
How to reproduce
When using docker compose to install the 2.0 source code provided on the official website, the image file cannot be found
Anything else
No response
Are you willing to submit PR?

[X] Yes I am willing to submit a PR!

Code of Conduct

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

it can be used now.