Add local model test to LLMs integration tests

🗣 Description
Add integration test for local model to LLMs testing
🔨 Related Issues
Closes https://github.com/spiceai/spiceai/issues/3517
🤔 Concerns
Local model inference is very slow and can't be run on GH Hosted runners so temporarily disabled in CI.

This was combined to the following PR, closing
https://github.com/spiceai/spiceai/pull/3690


Unable to build latest on MacOS

I tried to build from source using both meson and autoconf but am blocked.
Using autoconf, I ran autoconf.sh but do not see any configure script generated.
Using meson I see the following:
(I also tried using the libpsl-0.21.0 branch, and with this got an issue when it couldn't find the python binary: does libpsl require python2.x? I'm using python 3.11 and don't have another installed so python is not in the path.)
 % meson builddir
The Meson build system
Version: 1.2.1
Source dir: /Users/xxx/Projects/Xxx/source/libpsl
Build dir: /Users/xxx/Projects/Xxx/source/libpsl/builddir
Build type: native build
Project name: libpsl
Project version: 0.21.2
C compiler for the host machine: cc (clang 14.0.0 "Apple clang version 14.0.0 (clang-14<IP_ADDRESS>)")
C linker for the host machine: cc ld64 820.1
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/local/bin/pkg-config (0.29.2)
Run-time dependency libidn2 found: YES 2.3.4
Library unistring found: YES
Run-time dependency iconv found: YES
Check usable header "unistd.h" : YES
Check usable header "stdint.h" : YES
Check usable header "alloca.h" : YES
Check usable header "dirent.h" : YES
Checking for function "alloca" : YES
Checking for function "strndup" : YES
Checking for function "clock_gettime" : YES
Checking for function "fmemopen" : YES
Checking for function "nl_langinfo" : YES
Compiler for C supports function attribute visibility: YES
Configuring config.h using configuration
Program python3 found: YES (/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11)
Configuring libpsl.h using configuration
Build targets in project: 13

Found ninja-1.11.1.git.kitware.jobserver-1 at /Library/Frameworks/Python.framework/Versions/Current/bin/ninja
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.
xxx@xxxs-iMac libpsl % ninja -C builddir
ninja: Entering directory `builddir'
[1/28] Generating src/suffixes_dafsa.h with a custom command
FAILED: src/suffixes_dafsa.h
/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11 ../src/psl-make-dafsa --output-format=cxx+ /Users/xxx/Projects/Xxx/source/libpsl/list/public_suffix_list.dat src/suffixes_dafsa.h
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/encodings/idna.py", line 179, in encode
    result.extend(ToASCII(label))
                  ^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/encodings/idna.py", line 71, in ToASCII
    raise UnicodeError("label empty or too long")
UnicodeError: label empty or too long

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/xxx/Projects/Xxx/source/libpsl/builddir/../src/psl-make-dafsa", line 692, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Users/xxx/Projects/Xxx/source/libpsl/builddir/../src/psl-make-dafsa", line 686, in main
    outfile.write(converter(parser(infile, utf_mode, codecs), utf_mode, codecs))
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/xxx/Projects/Xxx/source/libpsl/builddir/../src/psl-make-dafsa", line 591, in parse_psl
    punycode = line.decode('utf-8').encode('idna')
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeError: encoding with 'idna' codec failed (UnicodeError: label empty or too long)
[2/28] Generating tests/psl.dafsa with a custom command
FAILED: tests/psl.dafsa
/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11 ../src/psl-make-dafsa --output-format=binary /Users/xxx/Projects/Xxx/source/libpsl/list/public_suffix_list.dat tests/psl.dafsa
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/encodings/idna.py", line 179, in encode
    result.extend(ToASCII(label))
                  ^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/encodings/idna.py", line 71, in ToASCII
    raise UnicodeError("label empty or too long")
UnicodeError: label empty or too long

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/xxx/Projects/Xxx/source/libpsl/builddir/../src/psl-make-dafsa", line 692, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Users/xxx/Projects/Xxx/source/libpsl/builddir/../src/psl-make-dafsa", line 686, in main
    outfile.write(converter(parser(infile, utf_mode, codecs), utf_mode, codecs))
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/xxx/Projects/Xxx/source/libpsl/builddir/../src/psl-make-dafsa", line 591, in parse_psl
    punycode = line.decode('utf-8').encode('idna')
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeError: encoding with 'idna' codec failed (UnicodeError: label empty or too long)
[3/28] Generating tests/psl_ascii.dafsa with a custom command
FAILED: tests/psl_ascii.dafsa
/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11 ../src/psl-make-dafsa --output-format=binary --encoding=ascii /Users/xxx/Projects/Xxx/source/libpsl/list/public_suffix_list.dat tests/psl_ascii.dafsa
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/encodings/idna.py", line 179, in encode
    result.extend(ToASCII(label))
                  ^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/encodings/idna.py", line 71, in ToASCII
    raise UnicodeError("label empty or too long")
UnicodeError: label empty or too long

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/xxx/Projects/Xxx/source/libpsl/builddir/../src/psl-make-dafsa", line 692, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Users/xxx/Projects/Xxx/source/libpsl/builddir/../src/psl-make-dafsa", line 686, in main
    outfile.write(converter(parser(infile, utf_mode, codecs), utf_mode, codecs))
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/xxx/Projects/Xxx/source/libpsl/builddir/../src/psl-make-dafsa", line 591, in parse_psl
    punycode = line.decode('utf-8').encode('idna')
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeError: encoding with 'idna' codec failed (UnicodeError: label empty or too long)
[6/28] Compiling C object tools/psl.p/psl.c.o
ninja: build stopped: subcommand failed.

FWIW, downloading the tarball does work and that got me a compiled version.

Glad you were successful 😃
Building from tarball is the recommended way for non-developers.


Application disposes but JVM is not disconnected and socket not released on close.

When closing an application window, it never disconnects from the JVM (and consequently does not release the socket).
[INFO] Application disposing
Audio Manager Disposed
[INFO] Application disposed
--I KILL IT HERE--
Disconnected from the target VM, address: '<IP_ADDRESS>:54392', transport: 'socket'

Process finished with exit code 130 (interrupted by signal 2: SIGINT)

Fixed.


Typo: inpute.isotopes file (should be infile.isotopes?)

https://github.com/tdep-developers/tdep-tutorials/blob/4167c752af1a87843804fb941e6701f14943b976/04_thermal_conductivity/README.md?plain=1#L242C1-L242C1

thanks!


Cannot install on Ubuntu 16.10

Hi,
I tried to reinstall on a fresh Ubuntu 16.10, with OCaml v4.02.3, but it failed to install iocamljs-kernel, with the following error:
$ opam install iocaml
The following actions will be performed:
  - install iocamljs-kernel 0.4.8                       [required by iocaml]
  - install iocaml          0.4.9
===== 2 to install =====
Do you want to continue ? [Y/n] y

=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[iocaml] Archive in cache
[iocamljs-kernel] Archive in cache

=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[ERROR] The compilation of iocamljs-kernel failed at "make clean min".

#=== ERROR while installing iocamljs-kernel.0.4.8 =============================#
# opam-version 1.2.2
# os           linux
# command      make clean min
# path         /home/lilian/.opam/4.02.3/build/iocamljs-kernel.0.4.8
# compiler     4.02.3
# exit-code    2
# env-file     /home/lilian/.opam/4.02.3/build/iocamljs-kernel.0.4.8/iocamljs-kernel-23994-d2c37b.env
# stdout-file  /home/lilian/.opam/4.02.3/build/iocamljs-kernel.0.4.8/iocamljs-kernel-23994-d2c37b.out
# stderr-file  /home/lilian/.opam/4.02.3/build/iocamljs-kernel.0.4.8/iocamljs-kernel-23994-d2c37b.err
### stdout ###
# jsoo_mktop \
# [...]
# 	-dont-export-unit gc \
# 	-export-unit iocaml \
# 	iocamljs.cma \
# 	-jsopt +weak.js -jsopt +dynlink.js -jsopt +toplevel.js \
# 	-jsopt -I -jsopt ./ \
# 	-o iocaml.byte
# + jsoo_mkcmis stdlib
# + jsoo_mkcmis -o exported-unit.cmis.js iocaml /home/lilian/.opam/4.02.3/lib/ocaml/compiler-libs/outcometree.cmi /home/lilian/.opam/4.02.3/lib/ocaml/compiler-libs/topdirs.cmi /home/lilian/.opam/4.02.3/lib/ocaml/compiler-libs/toploop.cmi
# Makefile:44: recipe for target 'min' failed
### stderr ###
# [...]
# File "iocaml.ml", line 220, characters 18-31:
# Warning 3: deprecated: String.create
# Use Bytes.create instead.
# File "iocaml.ml", line 222, characters 12-19:
# Warning 3: deprecated: String.set
# Use Bytes.set instead.
# Error for package iocaml
# Fatal error: exception Fl_package_base.No_such_package("iocaml", "")
# Fatal error: exception Failure("Error: jsoo_mkcmis -o exported-unit.cmis.js iocaml /home/lilian/.opam/4.02.3/lib/ocaml/compiler-libs/outcometree.cmi /home/lilian/.opam/4.02.3/lib/ocaml/compiler-libs/topdirs.cmi /home/lilian/.opam/4.02.3/lib/ocaml/compiler-libs/toploop.cmi")
# make: *** [min] Error 2

=-=- Error report -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The following actions were aborted
  - install iocaml 0.4.9
The following actions failed
  - install iocamljs-kernel 0.4.8
No changes have been performed

I am not sure to understand everything, but # Fatal error: exception Fl_package_base.No_such_package("iocaml", "") seems to say that the installation of iocamljs-kernel (depency of iocaml) fails because... iocaml is not yet installed?
Any suggestion? Thanks in advance.

Yeah that's a known problem with the latest release of js_of_ocaml.  I need to go in and properly patch the contraints in opam, but for the time being you can do
$ opam install js_of_ocaml.2.8.3 iocaml

Thanks, this hack works indeed.
I have been using your awesome iocaml kernel from a few months now, but I still find the installation process scarily tedious.


Numerator/Denominator Incorrectly Left Justified

Issue Summary
Teacher here.  I'm not fully sure if this is an issue with MathJax or with Blackboard (or both), but I'm hoping that someone here will know a quick fix for it.
I use MathJax to make quizzes on Blackboard (they host a bunch of class websites), and everything so far has rendered just fine, except for fractions.  The numerator and denominator of a fraction seem to be left-justified by default, and I'd like for them to be centered.  Here's an example:

I tried asking about it on the TeX stackexchange in case it was about configuring TeX or something, but they said it wouldn't be a TeX thing.  Any help would be appreciated!
Technical details:

I believe I'm using MathJax Version: 2.7.7, and I've replicated the issue in Firefox/Chrome on Windows and Firefox on iOS.  So I think it must either be a MathJax or Blackboard issue (or something about their interaction).  I can find more specific info if it would be helpful.

Thanks for reading!

Without access to a minimal live sample page, there's no way to know for sure but this looks like a blackboard issue.
More specifically, this looks like a typical alignment issue - the list marker and item are aligning at the top, not the baseline. MathJax aligns its output with the baseline of the surrounding context -- but the marker / checkbox is outside that context. Hence, I'd guess it's a blackboard issue.


Help please MailCore.H errors

http://gyazo.com/a3062dc406696583f7d02ab805ca32e1
Please help me i get errors all the time , i cloned it plus tried zip but still didn't work

Try re-adding the MailCore project in ThatInbox project.


License

Thanks for sharing the implementation of the paper. May I know if the code is open sourced? If it is would you mind adding an open source license to it?

@sun-yitao Hi, I have added a LISENCE to the project.


loopTracks is always true

This line:
this.loopTracks = options.loopTracks || true

actually sets loopTracks to true even if options.loopTracks is false. The same issue with progressThroughTracks.
And an unrelated semi-issue: what is the intended behaviour when user manually changes options on the player object? I. e.
const player = new ListPlayer({ loopTracks: true, progressThroughTracks: true })
// ... sometime later ...
player.loopTracks = false
player.progressThroughTracks = false

In this example, tracks looping will actually be disabled but the "progress" behaviour wouldn't (as it is made as an event handler which is already attached).

Good catch! Pretty simple fix, want to submit a PR to close those out?
And for the second issue, could be fixed by moving some of the logic in the constructor to getter/setters. I can take this one if you do the first? 😉

Probably tomorrow then, just too much Javascript for me today :)

@iamale haha totally understand 👬

As for the second issue, the fix can be actually as simple as
this.el.addEventListener('ended', () => {
  if (this.progressThroughTracks) {
    this.next()
    this.play()
  }
})

Although it could have a small performance penalty (one if check per track), I think it is much more cleaner than dealing with getters/setters.
Should I include it in the PR too?


Migrate graddle apply script method

See https://docs.flutter.dev/release/breaking-changes/flutter-gradle-plugin-apply

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

Project coverage is 56.03%. Comparing base (d469014) to head (27a9f57).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #302   +/-   ##
=======================================
  Coverage   56.03%   56.03%
=======================================
  Files         161      161
  Lines        3514     3514
=======================================
  Hits         1969     1969
  Misses       1545     1545

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


Update rpc_collector to correctly skip cell with content & include cellbase and output_data_len

Set skipCellWithContent = true will skip the entire process of getting live cells, which I believe is not what the cell collector intended to do.
The returned cell object will also include properties cellbase and output_data_len.

Thanks!


Support default value for the path type configuration parameter

Is your feature request related to a problem? Please describe.
I'm building a custom Vespa component that might need some configuration. The configuration is specified here. Configuration in my case is a Map<String, String> where some values are relative paths to some file. The configDir parameter of type path works perfectly. However, in cases when my component doesn't refer to any files, requiring a param seems a bit too much.
Describe the solution you'd like
path type configuration parameters support a default value specified in the .def file.
Describe alternatives you've considered
Do nothing.
Additional context

Component source [code](https://github.com/dainiusjocas/journal/tree/main/src/journal/vespa/linguistics/lucene)
The Slack thread.

We have had a look at this and supporting a default value is not straightforward. The value supplied will be changed by the config system to point to a file on the node, eg. files/my-file.txt will be transformed so that the client will see /opt/vespa/.../aed13fc6a/my-file.txt and the client will use that path to read the file. File distribution will transfer the file to container nodes. Using some magic default value will still require a valid path on the client side and the need for some hacks in the file distribution code, so we probably want to have a new config type to support this instead. Which will require some work

Thanks for an update! To sum up:

path type config requires a value(?)
files or directories specified with the path parameter are properly distributed to all container nodes
In the future there might be another configuration parameter type that would help with the file distribution(?)

Yes, that's right on all accounts

Support for optional keyword for a config field of type path has been implemented. Documented at https://docs.vespa.ai/en/reference/config-files.html#path when https://github.com/vespa-engine/documentation/pull/2884 has been merged.
Basically you can define a field in the config definition file as
configDir path optional
and specify configDir in services.xml when it has a value (otherwise it will be empty).
In Java code you now need to use an Optional for the config value:
Optional<Path> configDir = config.configDir();
Released in Vespa 8.224.19. Please let me know if this does not work out for you or you have any questions.

Support for optional keyword for a config field of type path has been implemented. Documented at https://docs.vespa.ai/en/reference/config-files.html#path when https://github.com/vespa-engine/documentation/pull/2884 has been merged.
Basically you can define a field in the config definition file as
configDir path optional
and specify configDir in services.xml when it has a value (otherwise it will be empty).
In Java code you now need to use an Optional for the config value:
Optional<Path> configDir = config.configDir();
Released in Vespa 8.224.19. Please let me know if this does not work out for you or you have any questions.

Awesome, thank you! Soon I'll try out how this helps simplifying the  Lucene Linguistics component configuration.

Support for optional keyword for a config field of type path has been implemented. Documented at https://docs.vespa.ai/en/reference/config-files.html#path when https://github.com/vespa-engine/documentation/pull/2884 has been merged.
Basically you can define a field in the config definition file as
configDir path optional
and specify configDir in services.xml when it has a value (otherwise it will be empty).
In Java code you now need to use an Optional for the config value:
Optional<Path> configDir = config.configDir();
Released in Vespa 8.224.19. Please let me know if this does not work out for you or you have any questions.

Awesome, thank you! Soon I'll try out how this helps simplifying the  Lucene Linguistics component configuration.


fix: Proper release-candidate number conversion

Addresses:
https://github.com/R2NorthstarTools/FlightCore/blob/2aac1889a7fb8689f8b45e4de5eb8c73ae61eba3/src-tauri/src/util.rs#L232-L234

I wouldn't mind additional tests, using more than two digits for rc identifier for instance

More than two digits on release candidate number will never happen cause it already breaks stuff on Northstar upstream.
I.e.: v1.2.3-rc456 would become v1.2.3456 which is indiscernible from v1.2.34-rc56 which also gets translated to v1.2.3456 ^^
I can add a test for the latter case though.

Done with f7777d38b5560f17e2ec86e67d7598285768ceb2


Calling sub-function of effect asynchronously breaks effect reactivity

Describe the bug
When an effect contains a sub function which accesses reactive data (signals or stores), the effect stops tracking those sources as soon as that sub function is called asynchronously (with setTimeout or another external method like a button click event).
The following example works as expected:
createEffect(() => {
    const subFunction = () => {
         console.log(someSignal());
         console.log(someStore.a);
    }

    // some further checks

    subFunction();
}

When the function is called asynchronously however, the effect stops tracking:
createEffect(() => {
    const subFunction = () => {
         console.log(someSignal());
         console.log(someStore.a);
    }

    // some further checks

    setTimeout(subFunction, 1000);
    // or even: setTimeout(() => { subFunction(); }, 1000);
}

The first time a change is detected, the effect runs and executes the subFunction after 1 second. But any further changes to the data sources will no longer be registered.
This also applies to cases where subFunction is sometimes called by the effect directly, but then later because of some condition is called asynchronously. After the asynchronous call, the effect stops tracking the data sources, even when the next execution would be synchronous again.
I have provided a playground below that illustrates the problem.
Your Example Website or App
https://playground.solidjs.com/anonymous/395346e0-ed35-437e-9f68-e3975f3a5716
Steps to Reproduce the Bug or Issue
The playground contains two simple examples. A simple example with just one signal and a more complex example involving stores and nested reactivity, but both show the same behavior.
When clicking the button "Increment A", "Increment B" or "Increment C", the console prints the new values (a is a single signal while b and c are contained in a store and a single effect tracks both of them so they will be printed together.
The "Switch Stores" button swaps the used store contained in a signal to test nested reactivity and should update the same effect as b and c.
Then click the "Make async" button which enables the execution of the sub function via a timeout. When clicking any of the Increment buttons or the switch stores button, they should do the same thing as before with one second delay. When clicking again however, nothing happens because the effect doesn't run anymore, even when switching back to synchronous mode using the "Make sync" button.
Expected behavior
I would expect the effect to check for it's sources when it is created or first run, and then keep tracking those same sources. As it seems to me (I don't know exactly how it works however) the effect re-evaluates the sources every time and doesn't track them anymore when they are not accessed before return of the effect. This seems unintuitive for me.
Screenshots or Videos
No special screenshots, the playground contains everything.
Platform

OS: macOS, iOS, Linux
Browser: Only Chrome, Safari, Safari mobile tested
Version: 1.6.7, 1.6.8

Additional context
I stumbled across this because I tried to implement a user confirmation that sometimes asks the user whether to use the changed data values or not, but only asks the user in some special cases and not every time. After the prompt, further changes were not detected even if they did not need user confirmation.

This is very much intentional. We keep the dependencies up to date so as to not over-execute. Like if something stops listening then there is no need to have it trigger anymore. In a lot of teaching materials I use silly examples like this:
https://codesandbox.io/s/conditional-dependency-hbjg6
But the truth is we use the same sort of logic to do conditional branching in our JSX rendering. You wouldn't want dead branches to still be tracking.
Additionally this is how automatic dependency tracking works. It is in synchronous. Same in Vue or MobX or any runtime auto-tracking reactive system. When an arbitrary callback comes back async it is no longer under our tracking context.  In one sense it might be seen as a limitation but its also an advantage that compiled solutions can't emulate.
Trying to patch the browser in these cases leads to a ton of unwarranted complexity (things like zone.js from Angular). And in most cases like data fetching where early side effects are expensive, having something downstream also track and perhaps accidentally trigger the whole effect to re-run is problematic. In that case, the answer is typically to break it apart into multiple computations.
In this case, I don't quite follow the scenario but the solution usually involves hoisting the tracking parts up. Whether that is being explicit with on or manual.

Thanks for the explanation!
In the end, I solved my issue by adding "useless" access to all the data required at the top of the effect that is always run but the result discarded. Using on wasn't a solution for me as it would have gotten to confusing because of my nested data structure.
Anyway, now I understand  more about how effects work, so thanks again for explaining this and thanks for creating this awesome Framework!


fix(optimizer): forbid correlated input ref predicate push down through share

I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?

Resolve https://github.com/risingwavelabs/risingwave/issues/13570
We need to forbid correlated input ref predicate push through share operator.

Checklist

[ ] I have written necessary rustdoc comments
[ ] I have added necessary unit tests and integration tests
[ ] I have added test labels as necessary. See details.
[ ] I have added fuzzing tests or opened an issue to track them. (Optional, recommended for new SQL features #7934).
[ ] My PR contains breaking changes. (If it deprecates some features, please create a tracking issue to remove them in the future).
[ ] All checks passed in ./risedev check (or alias, ./risedev c)
[ ] My PR changes performance-critical code. (Please run macro/micro-benchmarks and show the results.)

[ ] My PR contains critical fixes that are necessary to be merged into the latest release. (Please check out the details)

Documentation

[ ] My PR needs documentation updates. (Please use the Release note section below to summarize the impact on users)

Release note
If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.

LGTM, can we just move the sub query unnesting before the generating of the share operator?

Actually, some share operators are generated in the binder/planner (e.g.  CTE, view).


Got bad-txns-inputs-missingorspent when broadcasting lock transaction

This was a preview maker CFD, here are the logs:
2021-11-29 11:25:09  INFO Taking current order: Order { id: OrderId(Hyphenated(65f6b024-a631-4676-b8c7-136b5587337e)), trading_pair: BtcUsd, position: Short, price: Price(57516.6525), min_quantity: Usd(10), max_quantity: Usd(1000), leverage: Leverage(2), liquidation_price: Price(38344.4350), creation_timestamp: Timestamp(1638144405), settlement_interval: Duration { seconds: 86400, nanoseconds: 0 }, origin: Theirs, oracle_event_id: BitMexPriceEventId { timestamp: OffsetDateTime { utc_datetime: PrimitiveDateTime { date: Date { year: 2021, ordinal: 334 }, time: Time { hour: 1, minute: 0, second: 0, nanosecond: 0 } }, offset: UtcOffset { hours: 0, minutes: 0, seconds: 0 } }, digits: 20 } }
2021-11-29 11:25:11  INFO Order got accepted order_id=65f6b024-a631-4676-b8c7-136b5587337e
2021-11-29 11:25:12  INFO Exchanged setup parameters
2021-11-29 11:25:17  INFO Created CFD transactions
2021-11-29 11:25:18  INFO POST /api/calculate/margin application/json:
2021-11-29 11:25:20 DEBUG Got notification for new block block_height=2105659
2021-11-29 11:25:25  INFO GET /alive:
2021-11-29 11:25:29  INFO Exchanged CFD transactions
2021-11-29 11:25:35  INFO GET /alive:
2021-11-29 11:25:40  INFO GET /alive:
2021-11-29 11:25:50  INFO GET /alive:
2021-11-29 11:25:51  INFO Verified all signatures
2021-11-29 11:25:51  INFO Exchanged signed lock transaction
2021-11-29 11:26:09  INFO Setup complete, publishing on chain now
2021-11-29 11:26:10 ERROR Message handler failed: Broadcasting transaction failed. Txid: 83fed9c0677fb30324494598bd5bf6e337f6a737d217893984bb6a4a5ff1ffd3. Raw transaction:<PHONE_NUMBER>01028d96dd5c90f512f36dc0e00da71b0f31a4ffbffd627b2ed5a17c34d75ef561d90000000000ffffffff92191b86ad41d9c25dafa276331debcd9bf3782f6b2cc6ac9a009c27669fe33f0100000000ffffffff03df65000000000000220020e00980a75447cfeb32059a78c7e5457fae209a2b88bc1055f5dae52c2d6c3491d151020000000000160014f32ec9844f11a0c09e491d8073a35f462234f8e955270100000000001600147ff6eac06f3db0e0db09d6458f88fba22dc6cd9a0247304402200610bc3a508f0e79b69725ce33c8508d750ad7b7a13ed4c1fcf2add622efe5d2022054c974f56d77beae0258305938809a90dbf3fcd97152348df99217e6dfe886820121027a317b986bceb60b5a65a71e11294ab96cdf10f0ae73998d7962b2370838be820247304402205fadab625736750a0da5174efe61866e3886b8c5ae6bbdb119810c55a2035c6b02201cee69e7c9470845c3c3da8c23471174cd1f69035a77b8d3ea9e483d653d4758012102be4bfaa2abac6a187c6d5432da5720a447b315928d3b56c8a9c335db9b9f7ee400000000: Electrum(Protocol(String("sendrawtransaction RPC error: {\"code\":-25,\"message\":\"bad-txns-inputs-missingorspent\"}")))

Interestingly, the next CFD I attempted was opened correctly without a restart.

I have run into this as well on my machine. @luckysori have you tried restarting maker afterwards? I often manage to get the maker into a state where I have to clear the DB :/

I have run into this as well on my machine. @luckysori have you tried restarting maker afterwards? I often manage to get the maker into a state where I have to clear the DB :/

Well, I didn't need to restart the maker, since it worked on the next attempt.

I often manage to get the maker into a state where I have to clear the DB :/

I can relate :(


Refactor the code to improve its readability and install code quality and formatting tools

LIIKUNTA-255.
Install eslint and prettier. The Eslint is available with yarn lint.
They are configured so that minimum changes were needed.
Also, the es.ts datasource code-file content is now splitted into multiple files:

constants
types
utils
index.ts

Unified search sources branch is deployed to platta: https://kuva-unified-search-sources-pr117.api.dev.hel.ninja :rocket::rocket::rocket:

Unified search sources branch is deployed to platta: https://kuva-unified-search-sources-pr117.api.dev.hel.ninja :rocket::rocket::rocket:

There is another PR of refactoring that could be merged here: https://github.com/City-of-Helsinki/unified-search/pull/126.

Unified search sources branch is deployed to platta: https://kuva-unified-search-sources-pr117.api.dev.hel.ninja :rocket::rocket::rocket:

Unified search sources branch is deployed to platta: https://kuva-unified-search-sources-pr117.api.dev.hel.ninja :rocket::rocket::rocket:

Unified search sources branch is deployed to platta: https://kuva-unified-search-sources-pr117.api.dev.hel.ninja :rocket::rocket::rocket:


Cow: Watch arihantglobal.net

Cow requests the watch of the watch_keyword arihantglobal\.net. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

arihantglobal\.net has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by Jeff Schaller in Charcoal HQ


[Modal] Scroll changes when focus from browser URL bar

[x] This is not a v0.x issue.
[x] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior 🤔
When any modal is open the window scroll position should not never change.
Current Behavior 😯
When any modal is open we could change scroll by focus through browser address bar.
Steps to Reproduce 🕹
Link: https://jp6q69qqkv.codesandbox.io/

Scroll to the bottom to hide the "Focusable Button"
Open Dialog through the "Super Secret Button"
Focus to the browser address bar
Press Tab

Context 🔦
When we focus to window (through Tab press in address bar) Chrome tries to find the first (or the last if we press Shift+Tab) focusable element on the page and focus it. If this element is not in viewport Chrome scrolls the page to this element.
Example source code: https://codesandbox.io/s/8n9wj3vo60
According to: https://github.com/mui-org/material-ui/issues/13702#issuecomment-473190797
Your Environment 🌎

Tech
Version

Material-UI
v4.0.0-alpha.8

React

Browser
Chrome

TypeScript

etc.

@mctep Have you found any implementation that handles this case correctly? I can't so far:

KO: https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/dialog.html
KO: https://getbootstrap.com/docs/4.3/components/modal/
KO: https://ant.design/components/modal/
KO: https://github.com/reactjs/react-modal (https://codesandbox.io/s/6z9n46j34k)

No. Looks like all projects are affected by the issue.
I have made this trick for my company UI library.

Hm... If tabidex="0" is added to body element the issue is gone for w3.org sample.

@theKashey has proposed a simple logic to change the behavior in https://github.com/mui-org/material-ui/issues/15450#issuecomment-486197946.
@mctep Do you have any resource on why it should behave this way?

@oliviertassinari Do you mean fixed hidden sentinels in the body? I have no resources, it is just an idea. @theKashey proposed the right thing. I think it is the simplest workaround to prevent page from scrolling. At least I do not see the easier solution.

I was wondering if the page scrolling to the top wasn't a good thing. It's what happens when no modal is open. But, once you close the Modal, the focus goes back to the previously activeElement, the page is gonna scroll a second page. I think that we should avoid it, changing the behavior is probably a good idea. You have suggested the usage of a tab index attribute on the body element. However, it will probably harm the Skip-nav link. I would rather avoid any global side effect like this.

I meant to add tabIndex to the body while any modal is open.
Looks like the skip nav link should not be accessible while any modal is open. So we should remove tabIndex from body on modal closing.
However it was a bad idea because by this way we could not detect focus direction. When we press Shift + Tab from the URL bar we should focus to the last element in the Modal. It is possible only when we have two sentinels in the body element as the first child and as the last child.

In the other hand detecting the last focusable element in the opened modal is non-trivial task. So case with Shift + Tab could be ignored. So I do not see big difference between body + tabindex and fixed hidden sentinel ways.


Add ability to run reverse dependency tests, and run one for koji-osbuild

Now that koji-osbuild pushes rpms for (most) commits in the same format as osbuild and osbuild-composer, it is trivial to add reverse dependency tests for it. 🎈

Force-pushed to remove fedora-33 and rhel-8.4 tests, because upstream doesn't yet build packages for those. Thanks @gicmo!

Update to include @gicmo's fix from https://github.com/osbuild/koji-osbuild/pull/50, which stops pulling containers from docker.io.
This is ready to be reviewed now.


Create API endpoint for calculating paycheck deductions

It makes more sense to do these calculations on the API layer, because I don't know how performant a given client device might be, and also it maintains right control of the business logic. No worries about someone fiddling with JavaScript.

This has been done!


webpack-review 05/05/2022

Hello @khitermedachraf  👋 you did Amazing work 🥇 .

Clean Code 👍 .

[optional] please follow Github workflow 👍 .

Thank you so much for your review.
I'll work on it in the future.


refactor(osmoutils): use Dec for additive tolerance instead of Int

Progress towards: #3540
What is the purpose of the change
Suggesting to change additive tolerance to a Decimal to improve the experience when testing math functions that require high precision.

Needs to be backported to work w/ v13.x having osmomath in its own go.mod


mistyping password does not give Authentication Failed error.

Awesome, Jira gives you an HTTP 200 when you provide bad u/p:
HTTP/1.1 200 OK
Transfer-Encoding: chunked
Cache-Control: no-cache, no-store, no-transform
Content-Type: application/json;charset=UTF-8
Date: Thu, 19 Feb 2015 00:53:58 GMT
Server: Apache-Coyote/1.1
X-Arequestid: 53x17037965x1
X-Asen: SEN-2062203
X-Asessionid: 14tags9
X-Ausername: jaybuff
X-Content-Type-Options: nosniff
X-Seraph-Loginreason: AUTHENTICATION_DENIED

fd
{"self":"https://issues.apache.org/jira/rest/api/latest/user?username=jaybuff","name":"jaybuff","loginInfo":{"failedLoginCount":12,"loginCount":240,"lastFailedLoginTime":"2015-02-19T00:53:59.600+0000","previousLoginTime":"2015-02-19T00:09:15.895+0000"}}
0

Interesting, probably depends on auth type on the jira server.  When I run jira login with a bogus password I get a 403 with X-Authentication-Denied-Reason header set.
I suppose we can look for 200's with X-Seraph-Loginreason: AUTHENTICATION_DENIED header.
-Cory

From https://confluence.atlassian.com/display/JIRA043/JIRA+REST+API+(Alpha)+Tutorial#JIRARESTAPI(Alpha)Tutorial-CAPTCHAs

When you get an error response from JIRA, you can check for the presence of an
X-Seraph-LoginReason header in the response, which will contain more information. A value of
AUTHENTICATION_DENIED means the application rejected the login without even checking the
password, which most commonly indicates that JIRA's CAPTCHA feature has been triggered.

cool, just updated the code to detect the header.  Thanks.
-Cory

fixed this a while ago, closing.


RDKUI-582: RFC Support for FireboltRefUI

Reason for change: Added RFC support for controlling RefUI being launched bu ripple when its enabled.
Test Procedure: Trigger build and verify.
Risks: High
Source: RDKM
License: Inherited
Upstream-Status: Pending
Priority: P2

https://jenkins.code.rdkcentral.com/job/github-triggered/42227/ started

https://jenkins.code.rdkcentral.com/job/build-component/81012/ started.

https://jenkinsrdkm.cmf.code.rdkcentral.com/job/github-triggered/8386/ started

https://jenkinsrdkm.cmf.code.rdkcentral.com/job/build-component-platform/13482/ started.

Sanity tests for ['RPI4 Hybrid'] added.
https://jenkinsrdkm.cmf.code.rdkcentral.com/job/test-components-flow/29851/

Sanity tests for ['BCM Reference Refapp2'] added.
https://jenkinsrdkm.cmf.code.rdkcentral.com/job/test-components-flow/29853/


[FLINK-23696][connectors/rabbitmq] Fix RMQSourceTest.testRedeliveredSessionIDsAck

What is the purpose of the change
Fix RMQSourceTest.testRedeliveredSessionIDsAck that fails on azure due to a race condition, described in FLINK-23696
Brief change log
Fix the unit test by moving the asserts into a synchronized code block.
Verifying this change
This change is already covered by existing tests.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (yes / no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no)
The serializers: (yes / no / don't know)
The runtime per-record code paths (performance sensitive): (yes / no / don't know)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (yes / no / don't know)
The S3 file system connector: (yes / no / don't know)

Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

@flinkbot run azure

@fapaul Thanks, You're absolutely right here. I've added resetting the DummyContext state in 01a81f7. Now it can be run multiple times - I've executed it locally a thousand times with a success (though the issue described here is more likely to occur on virtualized environments).

@fapaul Thanks for the review. Sure, backports added in #17740 and #17741

@flinkbot run azure


Unexpected Failure During DEM Stitching

Describe the bug
While testing RAiDER integration, we found to scenes that failed during the download and stitch_dem step. Both of these failures had scenes were pretty close to the Azerbaijan DEM hole, which might be causing an issue.
To Reproduce
Steps to reproduce the behavior:
Run the DockerizedTopsApp workflow with these scene pairs:
Scene Pair 1:
S1B_IW_SLC__1SDV_20181012T150834_20181012T150904_013121_0183E2_5DCB
S1B_IW_SLC__1SDV_20171110T150827_20171110T150856_008221_00E896_468F
Scene Pair 2:
S1A_IW_SLC__1SDV_20191012T142813_20191012T142840_029427_0358DC_EF95
S1A_IW_SLC__1SDV_20190918T142812_20190918T142839_029077_034CD4_81B5
Expected behavior
This scene should run without failing in the stitch_dem step.
Additional context
Screenshot of the two pairs:

Could you share the log links? Will begin looking into this.
That second pair looks pretty close to the water - may end up failing ISCE (once this bug is sorted out) - though I am not sure - I just know mostly water areas can be problematic if there are not enough bursts to do interferometry.

Here you go:
https://sandbox-insar-isce.asf.alaska.edu/jobs/7241990f-eb62-4fe4-895e-835118aa6063
https://sandbox-insar-isce.asf.alaska.edu/jobs/f603f962-ca27-483e-887e-8d409e1e1d4e

I will have to look at this more on Monday.
The links above do not work.
I got the error you were talking about using the SLC and rounding to nearest integer degree:
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
Cell In [22], line 2
      1 dem_res = 0.0002777777777777777775
----> 2 dem_array, dem_profile = stitch_dem(bounds,
      3                                     'glo_30',
      4                                     dst_ellipsoidal_height=True,
      5                                     dst_area_or_point='Point',
      6                                     n_threads_downloading=5,
      7                                     # ensures square resolution
      8                                     dst_resolution=dem_res
      9                                     )

File ~/bekaert-team/dem-stitcher/dem_stitcher/stitcher.py:323, in stitch_dem(bounds, dem_name, dst_ellipsoidal_height, dst_area_or_point, dst_resolution, n_threads_reproj, n_threads_downloading, driver, fill_in_glo_30)
    320 dem_profile['driver'] = driver
    322 if (dem_name == 'glo_30') and fill_in_glo_30:
--> 323     dem_arr, dem_profile = patch_glo_30_with_glo_90(dem_arr,
    324                                                     dem_profile,
    325                                                     bounds,
    326                                                     stitcher_kwargs)
    328 dem_profile.update(**profile_tile)
    329 return dem_arr, dem_profile

File ~/bekaert-team/dem-stitcher/dem_stitcher/stitcher.py:165, in patch_glo_30_with_glo_90(arr_glo_30, prof_glo_30, extent, stitcher_kwargs)
    162     return arr_glo_30, prof_glo_30
    164 stitcher_kwargs['dem_name'] = 'glo_90_missing'
--> 165 arr_glo_90, prof_glo_90 = stitch_dem(**stitcher_kwargs)
    167 dem_arr, dem_prof = merge_arrays_with_geometadata([arr_glo_30, arr_glo_90],
    168                                                   [prof_glo_30, prof_glo_90]
    169                                                   )
    171 return dem_arr, dem_prof

File ~/bekaert-team/dem-stitcher/dem_stitcher/stitcher.py:299, in stitch_dem(bounds, dem_name, dst_ellipsoidal_height, dst_area_or_point, dst_resolution, n_threads_reproj, n_threads_downloading, driver, fill_in_glo_30)
    296     zipped_data = list(map(lambda ds: _translate_one_tile_across_dateline(ds, crossing), datasets))
    297     memory_files, datasets = zip(*zipped_data)
--> 299 dem_arr, dem_profile = merge_and_transform_dem_tiles(datasets,
    300                                                      bounds,
    301                                                      dem_name,
    302                                                      dst_ellipsoidal_height=dst_ellipsoidal_height,
    303                                                      dst_area_or_point=dst_area_or_point,
    304                                                      dst_resolution=dst_resolution,
    305                                                      num_threads_reproj=n_threads_reproj,
    306                                                      )
    308 # Close datasets
    309 list(map(lambda dataset: dataset.close(), datasets))

File ~/bekaert-team/dem-stitcher/dem_stitcher/stitcher.py:136, in merge_and_transform_dem_tiles(datasets, bounds, dem_name, dst_ellipsoidal_height, dst_area_or_point, dst_resolution, num_threads_reproj)
    134 if dst_ellipsoidal_height:
    135     geoid_name = DEM2GEOID[dem_name]
--> 136     dem_arr = remove_geoid(dem_arr,
    137                            dem_profile,
    138                            geoid_name,
    139                            dem_area_or_point=dst_area_or_point,
    140                            )
    142 if dst_resolution is not None:
    143     dem_profile_res = update_profile_resolution(dem_profile, dst_resolution)

File ~/bekaert-team/dem-stitcher/dem_stitcher/geoid.py:83, in remove_geoid(dem_arr, dem_profile, geoid_name, dem_area_or_point, res_buffer)
     77 assert dem_area_or_point in ['Point', 'Area']
     79 extent = array_bounds(dem_profile['height'],
     80                       dem_profile['width'],
     81                       dem_profile['transform'])
---> 83 geoid_arr, geoid_profile = read_geoid(geoid_name,
     84                                       extent=list(extent),
     85                                       res_buffer=res_buffer)
     87 t_dem = dem_profile['transform']
     88 t_geoid = geoid_profile['transform']

File ~/bekaert-team/dem-stitcher/dem_stitcher/geoid.py:41, in read_geoid(geoid_name, extent, res_buffer)
     39 crossing = get_dateline_crossing(extent)
     40 if crossing == 0:
---> 41     geoid_arr, geoid_profile = read_raster_from_window(geoid_path,
     42                                                        extent,
     43                                                        extent_crs,
     44                                                        res_buffer=res_buffer)
     45 else:
     46     extent_l, extent_r = split_extent_across_dateline(extent)

File ~/bekaert-team/dem-stitcher/dem_stitcher/rio_window.py:111, in read_raster_from_window(raster_path, window_extent, window_crs, res_buffer)
     84 """Obtains minimum pixels from original raster (specified by raster_path) that contain
     85 window extent. Does not reproject into window extent! Returns only 1st channel.
     86
   (...)
    108    Extent is not properly specified
    109 """
    110 if (window_extent[0] >= window_extent[2]) or (window_extent[1] >= window_extent[3]):
--> 111     raise ValueError('Extents must be in the form of (xmin, ymin, xmax, ymax)')
    113 with rasterio.open(raster_path) as ds:
    114     src_profile = ds.profile

ValueError: Extents must be in the form of (xmin, ymin, xmax, ymax)

Thanks for bringing it to my attention!

The error is that the corner of the requested DEM (in yellow) overlaps the missing tiles (rectangles in blue). The solid slanted rectangle is the SLC extents.
Well, will be fun to fix.

Don't worry - I was able to re-create the error and can fix it now. Thanks so much, Forrest.

@cmarshak
Here are the accessible logs:
https://sandbox-insar-isce-contentbucket-ht0a62ksntf0.s3.us-west-2.amazonaws.com/7241990f-eb62-4fe4-895e-835118aa6063/7241990f-eb62-4fe4-895e-835118aa6063.log
https://sandbox-insar-isce-contentbucket-ht0a62ksntf0.s3.us-west-2.amazonaws.com/f603f962-ca27-483e-887e-8d409e1e1d4e/f603f962-ca27-483e-887e-8d409e1e1d4e.log


GEODE-7801: UG 'Querying' chapters reordering

@alb3rtobr Excellent improvement. I have some edits to propose that tighten up the correspondence between the left-hand navigation and links in the text pages. However, I lack permissions to push to your fork. I will email you three edited files that you can review, modify if needed, then incorporate.

done, thanks!


The UML image for 2.9 Flyweight is gone away.

Add diagrams and create PR #229

fixed in PR #229, thanks @NikitaStrelkov!


status of project

Is this considered abandoned since the last commit is more than a year and half ago?

I guess it’s subjective, but in my book: Yes, it’s abandoned.
If you’re looking for a fast plugin manager that’s actively maintained, may I suggest you give Znap  a try? 🙂

Awesome! I just moved my zsh plugin management to znap in a couple of minute making my zshrc file much clearer! https://github.com/MartinDelille/dotfiles/commit/737b544ddf20a55bf921d2f95d18184a3fcf6840

@MartinDelille That's awesome! 😃 I've added some comments to your commit on how you can use Znap to further improve your .zshrc file.


Implementing FusionCache with EF Core 5

Hi! First, thank you for making such a great library! I am trying to implement FusionCache into an API running on EF Core 5, Mysql and Redis. The issue is that when the FactorySoftTimeout is triggered and the factory is supposed to continue in the background and update the cache when finished, we are instead presented by an System.ObjectDisposedException error:

It looks like the DbContext gets disposed before the factory running in the background is finished working with it. How can I keep the DbContext open for the factory to finish its task?
This is my EF Core database configuration:

This is the FusionCache configuration:

And this is how FusionCache is used inside a Controller:

In the Service, DbContext object is accessed via a dependency injection.
If you need any additional information or code snippets I will be happy to provide.
I would be very thankful for any help or advice you can offer.
Kind regards,
Tomaž

Hi! First, thank you for making such a great library!

Hi, thanks to you for trying it out!

I am trying to implement FusionCache into an API running on EF Core 5, Mysql and Redis. The issue is that when the FactorySoftTimeout is triggered and the factory is supposed to continue in the background and update the cache when finished, we are instead presented by an System.ObjectDisposedException error
[...]
It looks like the DbContext gets disposed before the factory running in the background is finished working with it.

Yep, I think you spotted the exact issue,
Looking at your code it seems to me you have configured both EF Core and FusionCache correctly, separately: the problem seems to be in the intersection of the 2 of them + the automatic lifetime management of the DI container.
Basically it boils down to this:

in the controller you need a DbContext
the DbContext is injected in the controller's ctor by the DI container
the DI container is configured (by default) to set a scoped lifetime for the DbContext
the "scope" in this case is the web request
when the web request is over the DbContext is automatically disposed

All of this is normally good but in this case if a soft timeout is hit, the factory (which contains the query being run) is put in a background thread and the rest of the code would go on with stale data: then, when the data from MySql starts getting back, the web request is already done and the DbContext has been disposed either before or (like in the screenshot you posted) while the results are coming back from the db.

So basically it all boils down to this point you made:

How can I keep the DbContext open for the factory to finish its task?

which is similar to this issue I've found on SO, since both of them are basically "background tasks".
To wrap things up: let me try a couple of ideas I have, will let you know as soon as possible.
And thank you for the detailed description of the issue, it has been helpful in spotting the exact issue!

While reading some docs about EF Core, I've stumbled upon this https://docs.microsoft.com/en-us/ef/core/dbcontext-configuration/#avoiding-dbcontext-threading-issues .
Basically is says to never do multiple operations at the same time on the same DbContext (I didn't know that, I'm not that fond with EF Core). Enabling timeouts in FusionCache means that a GetOrSet operation may finish before the underlying query is finished, and that means you may also fall into this other problem, too.
Practical example: imagine doing a GetOrSet and right after that another operation with the same DbContext: if a timeout kicks in you would now have 2 operations going on at the same time.
A solution to this is for the factory to use a different single purpose DbContext, but honestly I don't think it's a thing of beauty.
My suggestion - while I keep on trying to find a solution to this - is to not enable timeouts and use FusionCache with the other features, like factory execution optimization, fail-safe, etc.
Anyway I'll keep studying this issue to see if I can find something better.

Hi @tomaz-moharic , since as we said we are basically talking about the combo db context + background execution, I think this may be a solution https://blog.hildenco.com/2018/12/accessing-entity-framework-context-on.html
I admit it may not be super beautiful (and I will keep trying to find a nicer one) but at least may solve your issue.
Please let me know if this helped.

Thank you so much for all the effort and suggestions, I'll  read through, give it a try and let you know how it worked! I am super busy at the moment so it might take me a day or two, but I will let you know asap when I find out anything.

Hi @tomaz-moharic , did you happen to find some time and try these?
I think I've found a nice way to put all of this togheter to handle this scenario which would support timeouts, is (I hope 😅) nicely designed, does not get in the way of the IOC container/lifetimes/disposability/etc and should not be problematic in terms of perf, allocations, etc.
Let me know if you are interested.

Hi @jodydonetti!

Hi @tomaz-moharic , since as we said we are basically talking about the combo db context + background execution, I think this may be a solution https://blog.hildenco.com/2018/12/accessing-entity-framework-context-on.html
I admit it may not be super beautiful (and I will keep trying to find a nicer one) but at least it may solve your issue.
Please let me know if this helped.

First of all, thank you for the suggestion above, it is working without any issues.
I am however very much interested in a more elegant solution, that I could put in production without feeling anxious 😄.
Thanks for all the time you are putting into this!

Ok, this evening (italian time) I'll write it down 👍

Great, thanks!

Hi @tomaz-moharic , sorry for being uber late 😅
So, here's my thinking.
In general reusing the same dbctx during the execution of an action is the right thing to do, because of unit of work and the ability to do only one call to the database at the end with a single SaveChanges() etc.
But this is true only if you want to change data in the action.
If instead you simply want to read some data, and even more if you may read that from a cache, you absolutely don't want that, because the entity would be detached from the current dbctx. On top of this, if you'll only read data it may be a good idea to disable change tracking to get better perf (save some cpu cycles and memory allocations).
All in all I think the right solution wold be to just use a new throwaway dbctx for every read operation, and to also NOT have that dbctx lifetime's linked to the controller's lifetime, so to avoid the exception you encountered here.
I also see in your screenshots that you already have some sort of service ("ServiceContestFindReturnModel", so I guess there's a ContestService class or something similar).
So, in the end I would make that service dependent of the IServiceScopeFactory interface (by putting it in the ctor) and then, inside each specific method (egFindModelByWhatever) you just create a new throwaway scope via scopeFactory.CreateScope() that would have its lifetime tied to that operation, something like this:
public class ContestService {
  private IServiceScopeFactory _scopeFactory;

  // CTOR
  public ContestService(IServiceScopeFactory scopeFactory, [...]) {
    _scopeFactory = scopeFactory;
    [...]
  }

  [...]

  public async Task<ServiceContestFindReturnModel> FindByWhateverAsync(ContestFindModel findModel) {
    using (var scope = _scopeFactory.CreateScope()) {
      using (var dbctx = scope.GetRequiredService<YourDbContext>()) {
        // DO YOUR THINGS HERE...
      }
    }
  }

  [...]
}

In case you are worried about creating too many DbContexts and using them for just 1 query, I don't think it would be a problem: you are already basically doing that in each action, and I see you also enabled dbctx pooling, which will reuse them instead of creating a new one each time.
Hope this helps!

Hi @tomaz-moharic , did you happen to have time to take a look at this?

Closing this since the suggested solutions worked well.


Create Database

[x] Create a SQL database with the following:

User Table

Routine Table

Step Table

See README for more details. Ensure IDs are unique and foreign keys are linked to the correct primary key

[x] Create test data for each table

Time Allotted is now in MINUTES

Both complete


Version 1.11 error with Nvidia ShieldTV 2015 (Android 9 Pie / SDK Version 28)

After updating from 1.10 to 1.11 scrcpy is no longer working with my ShieldTV.
➜ scrcpy
INFO: scrcpy 1.11 <https://github.com/Genymobile/scrcpy>
/usr/local/share/scrcpy/scrcpy-server: 1 file pushed. 5.8 MB/s (25454 bytes in 0.004s)
[server] ERROR: Exception on thread Thread[main,5,main]
java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.app.Application.createPackageContext(java.lang.String, int)' on a null object reference
at android.media.MediaCodec.isSupported(MediaCodec.java:1794)
at android.media.MediaCodec.checkAppForAutoFrc(MediaCodec.java:1831)
at android.media.MediaCodec.configureCodecParams(MediaCodec.java:1980)
at android.media.MediaCodec.<init>(MediaCodec.java:2011)
at android.media.MediaCodec.createEncoderByType(MediaCodec.java:1944)
at com.genymobile.scrcpy.ScreenEncoder.createCodec(ScreenEncoder.java:138)
at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:63)
at com.genymobile.scrcpy.Server.scrcpy(Server.java:32)
at com.genymobile.scrcpy.Server.main(Server.java:146)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:340)
INFO: Initial texture: 1920x1080
WARN: Device disconnected

Thank you for your report.
If you try again v1.10, does it work?

Yes, v1.10 works perfectly fine

Could you retry with this change, please?
diff --git a/server/src/main/java/com/genymobile/scrcpy/ScreenEncoder.java b/server/src/main/java/com/genymobile/scrcpy/ScreenEncoder.java
index c9a37f8..504e954 100644
--- a/server/src/main/java/com/genymobile/scrcpy/ScreenEncoder.java
+++ b/server/src/main/java/com/genymobile/scrcpy/ScreenEncoder.java
@@ -53,7 +53,6 @@ public class ScreenEncoder implements Device.RotationListener {

     public void streamScreen(Device device, FileDescriptor fd) throws IOException {
         Workarounds.prepareMainLooper();
-        Workarounds.fillAppInfo();

         MediaFormat format = createFormat(bitRate, maxFps, iFrameInterval);
         device.setRotationListener(this);

That's it! It works with your patch applied.

OK, so this conflicts with #365 (which works only with the patch). :disappointed:

Would it be sensible to call it only for devices that are known to not work without it?
Something like this
if(needs_workaround_device_list.contains(Build.PRODUCT))
  Workarounds.fillAppInfo();

If you restore Workarounds.fillAppInfo() and apply this patch instead, what is the result?
diff --git a/server/src/main/java/com/genymobile/scrcpy/Workarounds.java b/server/src/main/java/com/genymobile/scrcpy/Workarounds.java
index f45d82a..ba5cd21 100644
--- a/server/src/main/java/com/genymobile/scrcpy/Workarounds.java
+++ b/server/src/main/java/com/genymobile/scrcpy/Workarounds.java
@@ -1,11 +1,15 @@
 package com.genymobile.scrcpy;

 import android.annotation.SuppressLint;
+import android.app.Application;
+import android.app.Instrumentation;
+import android.content.Context;
 import android.content.pm.ApplicationInfo;
 import android.os.Looper;

 import java.lang.reflect.Constructor;
 import java.lang.reflect.Field;
+import java.lang.reflect.Method;

 public final class Workarounds {
     private Workarounds() {
@@ -56,6 +60,14 @@ public final class Workarounds {
             Field mBoundApplicationField = activityThreadClass.getDeclaredField("mBoundApplication");
             mBoundApplicationField.setAccessible(true);
             mBoundApplicationField.set(activityThread, appBindData);
+
+            Method getSystemContextMethod = activityThreadClass.getDeclaredMethod("getSystemContext");
+            // this is not a full Android context giving access to everything
+            Context ctx = (Context) getSystemContextMethod.invoke(activityThread);
+            Application app = Instrumentation.newApplication(Application.class, ctx);
+            Field mInitialApplicationField = activityThreadClass.getDeclaredField("mInitialApplication");
+            mInitialApplicationField.setAccessible(true);
+            mInitialApplicationField.set(activityThread, app);
         } catch (Throwable throwable) {
             // this is a workaround, so failing is not an error
             Ln.w("Could not fill app info: " + throwable.getMessage());

Just tried and it works

Merged on dev: 2b845680b0d8d6778600d3c46a570d73dc83e2b5

Is there somewhere I can download dev builds?

No, this will be in v1.12 (which should be released soon, hopefully).
Meanwhile, you can use v1.10.

(v1.12 which fixes the problem is out)

To fix #994, I changed the way the workaround is called.
Could you please take scrcpy v1.13 and replace this file:
scrcpy-server
SHA256: b64e6672eeb2b7c00c6f83673783bd8839ba65ea2ac7edcdeeca44676047328b
and confirm that it works without the error message.
Thank you.

Could you please test #5154 and confirm that it still works?


Grafana dashboards for OpenEBS Storage Engines

All the OpenEBS components are deployed as Kubernetes native objects and support scraping of metrics via Prometheus. This is a feature request to implement Grafana dashboards for different Storage Engines, Control Plane and a Consolidated overall status:

Overall status of OpenEBS
Volume Usage Dashboard
Pool Usage Dashboard

Here are some sample dashboards that have been developed and used by the community. The following can be taken up as an inspiration to build new and improved dashboards.

https://grafana.com/grafana/dashboards/12171
https://github.com/openebs/openebs/tree/master/k8s
https://github.com/openebs/zfs-localpv/blob/master/docs/grafana-dashboard.md

A cool way to implement this is by adding a package with default charts like.

https://github.com/scylladb/scylla-monitoring

Hey @kmova ,
I will like to take this issue up for LFX mentorship.
Should I start drafting my proposal?

We have drafted a raw document stating the high-level goals and requirements for the OpenEBS monitoring add-on. Here is the document link for the same: https://docs.google.com/document/d/1vPB7u2TrdCr8UfERG8G_M5sVNIUWJtkFcB-ZWq0cJB8/edit#

With OpenEBS 2.10 and OpenEBS 2.11 - we have default dashboards for Jiva, cStor and LVM Local PV. More are being added. The progress is tracked under https://github.com/orgs/openebs/projects/41


Add raw twig filter in plain mail template fields

1. Why is this change necessary?
When you have special characters in you sales channel name they will be escaped in the default mail templates.
Let's say you have a sales channel with the name Cars & Racing. When a user triggers an email to be send from the default mail templates, the subject will look like this Cars & Racing.
2. What does this change do, exactly?
Adds raw twig flag to all unchanged fields in the mail_template_translation table that contain a twig placeholder and are used in plain text.
3. Describe each step to reproduce the issue or behaviour.

Setup and initialize a Shopware 6 instance with default data
Go to administration
Create a sales channel with a special character in the name (e.g. Cars & Racing)
Go to storefront
Trigger an email from the sales channel (e.g. via a user registration)

4. Checklist

[ ] I have written tests and verified that they fail without my change
[x] I have squashed any insignificant commits
[ ] I have written or adjusted the documentation according to my changes
[ ] This change has comments for package types, values, functions, and non-obvious lines of code
[x] I have read the contribution requirements and fulfil them.

This Migration is very dangerous.

Multiple raw filter {{ test | raw | raw }}
You can't raw anything. This must be an decision per output. User input without raw could be dangerous
You modifiy ALL templates and not only from core.
We have the rule, that we don't manipulate content when it's changed from the customer. This is missing here.
You don't have written an test to verify the changes after your migration has been executed

This PR was closed due to inactivity. If this change is still important to you, feel free to create a new pull request.
For more information about our contribution guidelines, see https://docs.shopware.com/en/shopware-platform-dev-en/contribution/contribution-guideline


Added topic-changed-event on triggers.py

I have added missing attribute "topic-changed-event" and also written test.

Since we don't use this functionality (I assume so) then we can wait with merge until the change gets approved upstream (to avoid diff between repos).
Have you submitted this change to the upstream repo for review?

Since we don't use this functionality (I assume so) then we can wait with merge until the change gets approved upstream (to avoid diff between repos).
Have you submitted this change to the upstream repo for review?

No I haven't but I will.


Erreur au démarrage

Après sélection de mon compte EVE j'ai le message ci-dessous, pas possible d'aller plus loin 👍
Error.
An error occurred while processing your request.
Request ID: 00-92b2f41052954cd7544fcdb82bc13724-9020a17fe0743248-00
Development Mode
Swapping to the Development environment displays detailed information about the error that occurred.
The Development environment shouldn't be enabled for deployed applications. It can result in displaying sensitive information from exceptions to end users. For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development and restarting the app.

Ca marche


BUG: DRILL_TO_DETAIL in dashboard will cause sql parse error when chart add a jinjia2 template condition

I add a chart which i add a jinjia2 template filter to solve something  to dashboard , it seems works fine,however,when i open the flags 'DRILL_TO_DETAIL',it cause the sql error like
'
Error: syntax error at or near ")"
LINE 68:   AND ()
',
How to reproduce the bug

add a chart with jinjia2 template filter,eg:

add another filter_box chart   to fill the filter,eg:

right click the pie,drill to detail

See error

backend error
position: superset/connectors/sqla/models.py:1660

template.render(context) get '()'
however,it works good in chart, click  'edit chart' to chart

jinjia2 render the true template what i expected

Expected results
drill to detail get the right  sql which rendered right result by jinjia2
Actual results
it get nothing
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
(please complete the following information):

browser type and version: chrome 105
superset version: master
python version: 3.8.13
node.js version: 16
any feature flags active:
DRILL_TO_DETAIL,ENABLE_TEMPLATE_PROCESSING,cross_filter

Checklist
Make sure to follow these steps before submitting your issue - thank you!

[x] I have checked the superset logs for python stacktraces and included it here as text if there are any.
[x] I have reproduced the issue with at least the latest released version of superset.
[x] I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context
Add any other context about the problem here.

I'm not sure if this is still an issue in current versions of Superset (3.x). If it is, we can re-open this, or feel free to open a new issue with updated context and a reproducible case using example data. We're no longer supporting Superset 2.x or prior, and it's been a while since this thread saw any activity, so I'm closing this as stale.


How to use K3S_CLUSTER_INIT enviroment variable.

Given that the relevant flag does not require value, how to use K3S_CLUSTER_INIT and K3S_CLUSTER_RESET as enviroment variable?

I believe you should just be able to set them to any non-empty string. Are you seeing different behavior?

No I didn't, I just don't understand how this work at that time. Thanks for your help. 😄


Add Template branching advice to Template Best Practices Guide

The ability to track a template by branch has recently been introduced, the guide does not yet have advice on how this should be used.  This PR adds content to the guide on how branching can be used instead of versioning.

@suranc looks great. Should we add a note about not using versioning when using git and instead relying on branches?


Add stacked type for static bar chart.

Addresses issue #9.

There seem to be some problems with the implementation when I attempted to look at the provided bar-stacked.html. Along with addressing the implementation issues please also create a link from the render test index page to this file. Thanks!


Bypassing linux build and test steps if NO_CI is in commit message.

does this need to be ".NO_CI." to match any occurrence of NO_CI in the commit message instead of a strict match? or is =~ already a loose match.

Abandoning this in favor of https://github.com/ray-project/buildkite-ci-stack/pull/46/files


Layout/FirstMethodArgumentLineBreak errors out passing hash in super with brackets

Layout/FirstMethodArgumentLineBreak cop errors out while inspecting this line.
def initialize(fruits:)
  super( fruits: fruits ) <--- "An error occurred while Layout/FirstMethodArgumentLineBreak cop was inspecting "
end

But it works if I do this
def initialize(fruits:)
  super({ fruits: fruits })
end

Expected behavior
No error
Actual behavior
1 error occurred:
An error occurred while Layout/FirstMethodArgumentLineBreak cop was inspecting

Steps to reproduce the problem
Add the above line in a method that with the hash key without the bracket.
RuboCop version
0.88.0 (using Parser <IP_ADDRESS>, rubocop-ast 0.3.0, running on ruby 2.6.5 x86_64-darwin19)

This issue is a dup with #8444 and resolved by #8445. Thank you.

@koic Thanks a lot for the heads up. I am curious about what happened. The only thing changed in the bundle was rubocop-ast updated from 0.1.0 -> 0.3.0 and looking the CHANGELOG.md it doesn't seem like anything might have caused it.

I double checked rubocop-ast 0.2.0 and it works. Seems like this issue was introduced in rubocop-ast 0.3.0

@koic Thanks a lot for the heads up. I am curious about what happened. The only thing changed in the bundle was rubocop-ast updated from 0.1.0 -> 0.3.0 and looking the CHANGELOG.md it doesn't seem like anything might have caused it.

That's my fault, sorry about that. This is due to an optimization I did, but didn't think about possible consequences which is that result of arguments is now sometimes frozen. My personal style is of using more and more immutable data and I try to never mutate results from getters, so I didn't think about it...
I'm adding a reference to this in the Changelog now. Maybe arguments should always return a frozen object too...?


Modify function: Create_Messages.py - end_alert_messages

See workflow 4 - Alerts if len(ended_spike_sensors) > 0: Number 5b
This function should take in a SINGLE start_time, max_reading, report_id, and report_url (constant)
Then compute duration (now - start_time from 5a) and compose the end_alert_message
return the message

Done! See 4791409


[QUESTION] Many to Many relation in LiteDB. Is it possible or use other approach?

Using LiteDB I have the following Pocos:
public class Post {
  public ObjectId Id { get; set; }
  public String Title { get; set; }
  public String Content { get; set; }
}

public class Tag {
  public ObjectId Id { get; set; }
  public String Name { get; set; }
}

Each Post can have many Tags and each Tag can be used in many Posts.
Is it possible to create a Many to Many relation in LiteDB?
My idea would be create a new POCO named PostTag:
public class PostTag {
  public ObjectId PostId { get; set; }
  public ObjectId TagId { get; set; }
}

And then update the Post and Tag Pocos to the following:
public class Post {
  public ObjectId Id { get; set; }
  public String Title { get; set; }
  public String Content { get; set; }
  public List<PostTag> { get; set; }
}

public class Tag {
  public ObjectId Id { get; set; }
  public String Name { get; set; }
  public List<PostTag> { get; set; }
}

I am not sure if this makes sense. Should I simply use the following?
public class Post {
  public ObjectId Id { get; set; }
  public String Title { get; set; }
  public String Content { get; set; }
  public List<Tag> { get; set; }
}

And what if I need all Tags used in posts?
I would get all tags in all posts and create a list with unique names?

@mdmoura I recommend storing each class in its collection and a list of tags as BsonRef in every post.
public class Post
{
    public ObjectId Id { get; set; }
    public String Title { get; set; }
    public String Content { get; set; }

    [BsonRef("tags")]
    public List<Tag> Tags { get; set; }
}

public class Tag
{
    public ObjectId Id { get; set; }
    public String Name { get; set; }
}

This would allow you to efficiently list all posts, list all ags and list all tags in a Post. If you wanted to list all Posts with a specific tag, you could just get the id of the tag you're searching and do something like postsCollection.Find(x => x.Tags.Count(x => x.Id == myTag) > 0) even without the Include, which is more efficient.

@lbnascimento I tried the following but got really strange results:
        BsonMapper mapper = BsonMapper.Global;

        mapper.Entity<Post>().DbRef(x => x.Tags, "tags");

        List<Post> model = new List<Post> {
          new Post {
            Title = "First Post",
            Slug = "first-post",
            Topics = new List<Topic> {
              new Tag { Name = "Book", Slug = "book" },
              new Tag { Name = "Europe", Slug = "europe" }
            },
          },
          new Post {
            Title = "Second Post",
            Slug = "second-post",
            Topics = new List<Topic> {
              new Tag { Name = "Travel", Slug = "travel" },
              new Tag { Name = "Europe", Slug = "europe" }
            }
          }
        };
        ILiteCollection<Tag> tags = database.GetCollection<Tag>("tags");
        tags.EnsureIndex(x => x.Slug);
        tags.InsertBulk(data.SelectMany(x => x.Tags));

        ILiteCollection<Post> posts = database.GetCollection<Post>("posts");
        posts.EnsureIndex(x => x.Slug);
        posts.InsertBulk(data);

        var a = tags.FindAll();

        var b = posts.Include(x => x.Tags).Find(x => x.Tags.Count(x => x.Slug == "book") > 0);

When I check a I have 4 tags: Book, Europe, Travel, Europe. Shouldn't Europe appear only once?
And when I check b I have the two posts ... The second post should not be returned because it does not have the tag with slightly "book".
What am I missing? Am I inserting the data incorrectly?

@lbnascimento I also tried the following:
posts.Include(x => x.Tags).Find(x => x.Tags.Select(x => x.Slug).Any(x => x == "book"));

And this returns an empty list ...
I think something might be wrong when using filters with child collections. No?

@lbnascimento The following query returns the one post, as expected, that contaoins  a Tag with slug book:
       var a = lessons.Include(x => x.Topics).FindAll()
                    .Where(x => x.Topics.Count(x => x.Slug == "book") > 0)
                    .ToList();

The following return all record like it wasn't filtered.
       var b= lessons.Include(x => x.Topics)
                   .Find(x => x.Topics.Count(x => x.Slug == "book") > 0)
                   .ToList();

Any idea why?

@mdmoura a will apply an in-memory filter, after retrieving all items from litedb, whereas b will attempt to apply the filter while retrieving the desired items from litedb.
Have you tried the below?
var c = lessons.Include(x => x.Topics)
                   .Where("Topics[*].Slug ANY = @0", "book")
                   .ToList();

apparently I spoke too soon... look like my suggestion above only works on version 5.0.4!

@mdmoura Regarding a, what I believe is happening is that you're using autoid for tags (by not setting an Id value for your tags, LiteDB creates one automatically upon insertion) and it doesn't know that the "Europe" tag in the first post and the "Europe" tag in the same post are actually the same, and ends up inserting it twice. Try creating the tags beforehand and attributing them to each post.
Regarding b, there was a small bug with Linq-to-BsonExpression mapping, which I fixed in the master. There is also a limitation in the mapping regarding nested Linq expressions with the same parameter name (I believe this limitation was undocumented, I'll update the documentation). So, if you use our latest master and change your Linq to Find(x => x.Tags.Count(y => y.Slug == "book") > 0), it should work.
Using Find("Tags[*].Slug any = 'book'"), simliar to what @zmira proposed, should work too.


Add Game Render Wireframe

Description

<I want to display the rendered wireframe like GPA, used to view the distribution density ->
Environment

RenderDoc version: 1.1
Operating System: Win10
Graphics API: D3D11

You have to explain what you are asking for in more detail, I don't understand what you want.
RenderDoc v1.1 is also a very old version, you should update to the latest version of RenderDoc.

您必须更详细地解释您的要求，我不明白您想要什么。
RenderDoc v1.1也是一个很旧的版本，您应该更新到最新版本的RenderDoc。
The game you want to attach, rendered in wireframe form

I'm sorry I still don't understand what you're asking for. Using machine translation it seems that the first two lines are what I said above, translated?
I understand that there is a language barrier here. If you can please explain in much more detail what feature you are asking for and what you want to use it for, with a much longer explanation, then there's more chance I can understand what you want.

I want to use RenderDoc to view the wireframe drawing in the game to distinguish the density of the area. Like interl GPA, I tried to modify it to no avail. I ask for your help. It should be because I am a Chinese, so I have a language barrier. Thanks for the help.
------------------ 原始邮件 ------------------
发件人:                                                                                "baldurk/renderdoc"<EMAIL_ADDRESS>发送时间: 2020年12月2日(星期三) 晚上6:55
收件人<EMAIL_ADDRESS>抄送: "小强"<1767137127<EMAIL_ADDRESS>主题: Re: [baldurk/renderdoc] Add Game Render Wireframe (#2105)
I'm sorry I still don't understand what you're asking for. Using machine translation it seems that the first two lines are what I said above, translated?
I understand that there is a language barrier here. If you can please explain in much more detail what feature you are asking for and what you want to use it for, with a much longer explanation, then there's more chance I can understand what you want.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

In the mesh viewer you can view a wireframe rendering of the currently selected draw if that's what you want. I don't understand what you mean about the "density of the area". If the feature exists in intel GPA can you share a screenshot of what you're asking for?

As shown in the figure, the wireframe display is rendered in the game instead of the wireframe display in the editor
------------------ 原始邮件 ------------------
发件人:                                                                                "baldurk/renderdoc"<EMAIL_ADDRESS>发送时间: 2020年12月2日(星期三) 晚上8:53
收件人<EMAIL_ADDRESS>抄送: "小强"<1767137127<EMAIL_ADDRESS>主题: Re: [baldurk/renderdoc] Add Game Render Wireframe (#2105)
In the mesh viewer you can view a wireframe rendering of the currently selected draw if that's what you want. I don't understand what you mean about the "density of the area". If the feature exists in intel GPA can you share a screenshot of what you're asking for?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

What figure? You mention a figure but I don't know which one you mean.

That looks like it's changing the rendering in the actual running process, not in the captured frame, is that correct?

Yes, I hope RenderDoc can have the same function

No, I'm not going to change the game's rendering or add functionality to the in-application overlay like that. RenderDoc works by capturing frames and analysing them, only that analysis would do anything like this and functionality like that already exists.
If you need wireframe rendering in your application you can change the fill mode yourself in your own rendering code on a toggle, you don't need a tool to do that.


[SHIRO-780] NOTICE files of shiro components don't match NOTICE in so…

…urce code repository
The apache-jar-resource-bundle generate default NOTICE file from velocity template, so we have to override this default NOTICE file by the root project one.

We should probably filter these files in if/when needed, possibly just in the core/lang module (and if they get repackaged in the all module). Or copy a single static NOTICE file in from the root (instead of duplicating it)
Ideas:
A side note, we can also use the org.jasig.maven:maven-notice-plugin plugin to generate a notice
https://github.com/paseto-toolkit/jpaseto/blob/master/pom.xml#L239-L251
(NOTE: the usage above differs from the ASF requirements)
Another trick is to define a root.dir property: in the parent pom:
<root.dir>${session.executionRootDirectory}</root.dir>

And include the resource as ${root.dir}/NOTICE
But... depending on how maven multi-modules are being used in the project it might be easier to reference them as ../../NOTICE instead.

NOTE:  I'm not against maintaining the NOTICE by hand. It might be easier to handwrite notice files in a couple of the modules were needed, and merge them into the project's root NOTICE file.

@fpapon I'm not sure if any of these suggestions work around the template issue either)

@bdemers the problem is the apache pom parent definition with the apache-jar-resource-bundle, it generate the NOTICE file from Apache template.
I'm agree that it's not nice to maintain... I will made some tests, may be by copying the root NOTICE file in target folder during process cycle. I'll keep you posted ;)

OHHH, I see now.
I didn't realize where that was coming from.  We can probably get away with the template for most modules.  And only include a custom NOTICE (just copied in as you have) in the modules were needed (for example lang)
But I'm not sure if/how the bundle plugin plays into this, because IIRC the bundle plugin repacks some of the dependencies?
We could also "skip" this plugin's execution and make sure the LICENSE & NOTICE files are included by other means.
Anyway, I'm not trying to create more work just to work around a NOTICE bundling issue.  If you can simplify it, great, if not, what you have in this PR is legally correct (which is more important)

Ok, no problem ;)
I will try to config the apache plugin.

@bdemers I'm not sure to have more time to work on this for the 1.5.x/1.6 release
I propose to merge this one as-is and work on your proposal for the plugin adjust on the 2.0.0 release
Thoughts?

Works for me


Display tooltip for existed toolbar items

I want to add a custom tooltip for existed toolbar items, How can I do that? Currently It does not show tooltip on hovering the toolbar item, so I found it hard for user to quickly understand what is the action of each toolbar item

Yeah I exactly felt the same issue, if you agree I can create and submit a pr.

Also agree a tooltip would be great to have for displaying the key command


Ability for candidates to make limited changes to their details post application

This would be limited to
Changing personal details
Updating character information (alert required)
Amending IA details

To be reviewed as part of the May application and profile edit items on the RM.


Reinforcement Expansion: Show 5th slot

With the introduction of Reinforcement Expansion, we also need to show the item on the shipgirl's 5th slot. This will not be added to equipment list with capacity, but recommended beside the face icon of the ship girl. Like the expedition number on the timer, overlaid on the bottom-right of the face.
Problem: who has data on this? xD
right now ships gave 5 elements on their api_slot parameter, but right now its always 0 for me since I haven't used the new mechanic yet. Will it be a number? The slotitem_id? or the icon_id?

so basically this one won't be included in strategy/fleets tab?

ah true, we also need to have it there xD
with strategy room in mind, on shiplist, we should also add another column

Ehhh I have 2 Reinforcement Expansion so probably I can collect the data about it. But now the problem is "who should I give to to?" xD

personally, i'll give them to the one that easily targeted by RNG lol..
RJ and Jun'you is the main target, and never forget the last event, 2 damecon consumed of 3 taiha run on boss node.

/kcsapi/api_get_member/ship3 <= this weird API appears right after I put Damecon to my Akizuki's 5th slot
http://pastebin.com/HA1et5QN

wow whats api_slot_ex

alright so now we confirm that
api_slot_ex contains the "rosterId" of the equipment. Not the icon_id, not the slotitem_id

yep, that's probable the item ID of one of my Damecon, the api_slot still doesn't change.

can check if an icon shows up near the face for natsuiro theme?
I still don't have any reinforcement expansion xD

I just commented on the code. After that fix, it will work.

anyway, anyone has the screenshot on how this will appear in the Strategy Room and Panel?
since I haven't used any of my Reinforcement yet XD

I saw a screenshot on Facebook, and it works well, I haven't tried it myself though xD

@dragonjet mind bringing it here? XD

ah I lost it from the tides of event screenshots on the feed.
maybe someone here already used the item XD

it seems @bamboo3250 already used it, seeing from the comment above...
mind sharing with us, bamboo? XD

I used mine on accident (staring at Akashi), can test it for you

I used on Akizuki. Here is on the panel. There is no difference in the strategy room though xD

no visual change on strat room

@McDohl so... Akashi is using her own fairy form.... XD
anyway thanks for both of you~


Support different package managers / versions

It should be possible to specify a package manager, package manager version or even a matrix of package managers.

You can look at X for a mapping of actual npm/node versions that work; afaik that knowledge doesn't exist anywhere else.
I don't think we should be using corepack at all; it's experimental and has received some pushback around the way it works.


 Can you please have a look?

This is a great test case for the new QuestionnaireAnswersValidator. FYI when you post a QuestionnaireAnswers to our server and it references a questionnaire, it will be validated against that questionnaire.
There was a bug in the validator which was causing it to crash. That has now been fixed, so posting that questionnaire doesn't crash. However, the validator doesn't support "questionnaire-deReference" questions so it still won't accept that QuestionnaireAnswers.
It probably should, but I can't find any examples of this anywhere, other than the one you are posting.... Where is this defined?

Hello James,
Thank you for your answer.
This example was taken from our own demo solution. Test case is following

User creates Questionnaire and saves it to sever
Other user takes the questionnaire  (application renders it to
appropriate usable form) and answers questions
Application creates QuestionnaireAnswer entity and post it to server as
well. Thus there should be connection between Questionnaire and
QuestionnaireAnswer which I implemented with help of reference.

I followed description that is provided here :
http://hl7.org/fhir/2015May/questionnaireanswers.html
As yo can see there is the link to Questionnnaire in QuestionnnaireAnswers.
We already had this demo workable (with references) about one or two months
ago and everything was fine then. I'm not sure why it stopped working.
From your explanation I understood that reference is not working, so I can
not place it to QuestionnareAnswer - right?
Thanks,
Andrew
2015-07-29 22:59 GMT+03:00 James Agnew<EMAIL_ADDRESS>
This is a great test case for the new QuestionnaireAnswersValidator. FYI
when you post a QuestionnaireAnswers to our server and it references a
questionnaire, it will be validated against that questionnaire.
There was a bug in the validator which was causing it to crash. That has
now been fixed, so posting that questionnaire doesn't crash. However, the
validator doesn't support "questionnaire-deReference" questions so it still
won't accept that QuestionnaireAnswers.
It probably should, but I can't find any examples of this anywhere, other
than the one you are posting.... Where is this defined?
—
Reply to this email directly or view it on GitHub
https://github.com/jamesagnew/hapi-fhir/issues/201#issuecomment-126079044
.

Hi Andrew,
Just to be clear, there is nothing wrong with your QuestionnaireAnswers (at least I don't think there is).
We recently added a validator so that answers get validated when they are posted, and the issue you're having is with the validator itself. It's half fixed now, but I'll fix it completely later today. You don't need to do anything. :)

@gansoper   are your solution something like IHE RFC or ONC  SDC?

This is fixed! Still don't have validation on dereferenced elements, as there are no canonical examples of this yet but you can once again post your example and it will be validated.

Hello,
It seems that  ONC SDC will be the correct answer:)
Thanks,
Andrew
2015-07-30 15:54 GMT+03:00 wanghaisheng<EMAIL_ADDRESS>
@gansoper https://github.com/gansoper are your solution something like
IHE RFC or ONC SDC?
—
Reply to this email directly or view it on GitHub
https://github.com/jamesagnew/hapi-fhir/issues/201#issuecomment-126313656
.

@gansoper  thx bro

Hello guys,
Could you please review the issue #203 - this is really weird - delete of
QuestionAnswers does not work at all...
2015-08-03 10:06 GMT+03:00 wanghaisheng<EMAIL_ADDRESS>
@gansoper https://github.com/gansoper thx bro
—
Reply to this email directly or view it on GitHub
https://github.com/jamesagnew/hapi-fhir/issues/201#issuecomment-127144814
.


Probe Launcher just not functioning sometimes

NomaiVR Version: 1.2.1
VR hardware: Lenovo Explorer (WMR)
I am not sure what triggers this bug but when I take pictures with the probe launcher, nothing shows up on the screen.
If this bug occurs I think it persists restarts of the loop because it seems like it did for me, rendering the mechanic unusable until
the game is restarted.

Should be fixed since 2.0.0


letencrypt disabled tls-sni-01 challenge. registry image doesn't support fallback challenges.

This
docker run -d -p 443:5000 --name registry --restart=always \
 -v $(pwd)/var/lib/registry:/var/lib/registry \
 -v $(pwd)/auth:/auth \
 -e REGISTRY_HTTP_ADDR=<IP_ADDRESS>:5000 \
 -e REGISTRY_HTTP_HOST=https://docker.example.com \
 -e REGISTRY_HTTP_TLS_LETSENCRYPT_CACHEFILE=/etc/docker/registry/letsencrypt.json \
 -e<EMAIL_ADDRESS>\
 -e REGISTRY_AUTH_HTPASSWD_REALM=example \
 -e REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd \
 registry:2

produces this (in the logs)
2018/03/10 22:29:15 [INFO] acme: Registering account for<EMAIL_ADDRESS>time="2018-03-10T22:29:16Z" level=info msg="listening on [::]:5000, tls" go.version=go1.7.6 instance.id=46277ada-99d7-458e-aa24-7ef9b9009f86 version=v2.6.2
2018/03/10 22:29:44 [INFO][docker.example.com] acme: Obtaining bundled SAN certificate
2018/03/10 22:29:45 [INFO][docker.example.com] acme: Could not find solver for: dns-01
2018/03/10 22:29:45 [INFO][docker.example.com] acme: Could not find solver for: http-01
2018/03/10 22:29:45 http: TLS handshake error from <IP_ADDRESS>:41255: map[docker.example.com:[docker.example.com] acme: Could not determine solvers]

This is caused by letsencrypt disabling the tls-sni-01 challenge which uses port 443. It falls back to the http-01 challenge which uses port 80, and the dns-01 challenge which uses port 53, but the registry accepts connections on only one port.
More information here: https://community.letsencrypt.org/t/2018-01-11-update-regarding-acme-tls-sni-and-shared-hosting-infrastructure/50188.
Essentially, this means the bundled letsencrypt support is completely useless now. It should either be completely removed from registry or support http-01 needs to be added.

More information here: https://community.letsencrypt.org/t/2018-01-11-update-regarding-acme-tls-sni-and-shared-hosting-infrastructure/50188

any progress on this task?

Yes, any progress please ?

Is there a workaround?

Thanks Jay, I am now manually doing the letsencrypt certificate generation and renewal. 🙈

Find workaround by using Nginx-Proxy with Let's Encrypt companion container. Companion container allows the creation or renewal of Let's Encrypt certificates automatically.

Awesome @ASHWINI-GUPTA! That should work too.
Just reporting back that since my original post, the Traefik container for front end has been working perfectly. No issues since set up as well.

Just as a heads up, Let's Encrypt now supports the TLS-ALPN-01 challenge type, which once again requires only port 443 to work. Implementations seem to be pretty rare at the moment though. https://letsencrypt.org/docs/challenge-types/

@milosgajdos Is this still something that is wanted for v3, or would it be possible to not have this block the v3 release?

In the past a few folks asked about this hence why this is in the v3 milestone.

I think https://github.com/distribution/distribution/pull/3943 might be related or actually solve this issue.

Yes, it works with current letsencrypt and other modern acme servers

@steve-taylor I believe these two merges addressed the woes on the main branch:

https://github.com/distribution/distribution/pull/2926
https://github.com/distribution/distribution/pull/3942

Do you mind verifying and/or closing?

@milosgajdos Do you think this can be closed and re-opened if the issue reoccurs? Given the age of this issue I think that might be best and would remove this from the v3 milestone list.


Test Bug 22

@salesforce/cli/2.40.7 darwin-arm64 node-v18.18.2
test bug 22

Thank you for filing this issue.  We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.


Example doesn't work with v3.0.3 vizceral

I was playing around with the latest vizceral, and nothing seems to work anymore.

You are correct, vizceral-example has not been updated to work with the latest major release of vizceral. I will update vizceral-example as soon as I get a chance.

Ah, it's fine, I noticed how hard you were working on the vizceral main project but and since releases were pushed out pretty frequently, I couldn't really tell what all the major changes were.
Is there a CHANGELOG.md somewhere in the main project that can quickly tell me what changed between version 2 and 3?

About that... A CHANGELOG is on my todo list. :)
The biggest change that called for a major bump was the ability for connections to be highlighted and selected.  This replaced the nodeHighlighted event with objectHighlighted, and a few other generalizations around node-specific selection.

Gotcha. Thanks :)

Addressed in ef2ed96bdffc6c3bef5b6c6d6729de6aa68f7ae2


Incorrect rounded borders for the members list

Bottom-left corner of the members list not rounded:

Possible solution:

(This is for vencord)

PR has been opened with a fix #142


Swaylock does not put colors over an image

Using:
swaylock -c 00000044 -i /usr/share/backgrounds/f25/default/normalish/f25.png -s

I was expecting to see the image with a "darker" tone. I do see the image in a "plain" way.  In the doc it says "If an image is in use, also enables color display.", so I guess this is a bug

That's not how the flag is meant to work afaik. The docs should probably be clarified.

Are -c and -i mutually exclusive?

Yes.