cemu: Add patch to fix usage of internal glslang headers

Description of changes

Fixes #284828. Tested that BOTW launches.
This is tracked upstream as https://github.com/cemu-project/Cemu/issues/1075.
Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

Result of nixpkgs-review pr 285981 run on x86_64-linux 1

1 package built:

cemu


GitHub actions

Switch from travis ci to Github Actions for testing

actions not running from fork, will reopen from within /phac-nml/


Fixed ShowSubcommandHelp

ShowSubcommandHelp should show help for the subcommand not the app

@codegangsta this introduced a bug: if there's a subcommand app command -h will show the help for app command subcommand. Working on a fix


crtime: add AtomicMono

This change is

Yes. I also hope that it will be useful to other open-source projects. I want it to be more or less "things we wished were part of go stdlib".


DATA RACE

build image with  -race detection
CGO_ENABLED=1 go install -race -tags "$TAGS" -ldflags "-extldflags -static ${LDFLAGS}"

and run s3tests
docker-compose -f compose/local-s3tests-compose.yml -p seaweedfs up

https://medium.com/trendyol-tech/race-conditions-in-golang-511314c0b85

I am not convinced all these are real issues. In many cases, current code can deal with data race. For example, https://github.com/seaweedfs/seaweedfs/issues/3510 is just a busy waiting for a currentMaster value which may be updated by another goroutine.

I am not convinced all these are real issues. In many cases, current code can deal with data race. For example, #3510 is just a busy waiting for a currentMaster value which may be updated by another goroutine.

This is not entirely, and it is very dangerous, because the value may not be updated due to the race.
As is the case with https://github.com/seaweedfs/seaweedfs/pull/3431


[Bug]: Examples fail to build with v29.0-rc3 or LATEST (when LATEST is a release candidate)

What happened?
When I try to use one of the v29 rc releases, the repository fetch fails due to a small naming inconsistency between version names like v29.0-rc3 and release artifact names like protoc-29.0-rc-3-osx-aarch_64.zip (note the dash between rc and 3 in the artifact name). prebuilt_protoc_toolchain doesn't know about this detail in release candidate naming, so I see the following build failure:
➜  examples git:(main) ✗ bazel build //...
INFO: Repository toolchains_protoc~~protoc~toolchains_protoc_hub.osx_aarch_64 instantiated at:
  <builtin>: in <toplevel>
Repository rule prebuilt_protoc_repo defined at:
  /private/var/tmp/_bazel_andy/4cc4769677fc1e3bb8be3c9c6bb2b2f6/external/toolchains_protoc~/protoc/private/prebuilt_protoc_toolchain.bzl:70:39: in <toplevel>
ERROR: An error occurred during the fetch of repository 'toolchains_protoc~~protoc~toolchains_protoc_hub.osx_aarch_64':
   Traceback (most recent call last):
	File "/private/var/tmp/_bazel_andy/4cc4769677fc1e3bb8be3c9c6bb2b2f6/external/toolchains_protoc~/protoc/private/prebuilt_protoc_toolchain.bzl", line 41, column 53, in _prebuilt_protoc_repo_impl
		integrity = PROTOC_VERSIONS[release_version][filename],
Error: key "protoc-29.0-rc2-osx-aarch_64.zip" not found in dictionary
ERROR: no such package '@@toolchains_protoc~~protoc~toolchains_protoc_hub.osx_aarch_64//': key "protoc-29.0-rc2-osx-aarch_64.zip" not found in dictionary
ERROR: /Users/andy/src/toolchains_protoc/examples/BUILD.bazel:7:14: //:foo_proto depends on @@toolchains_protoc~~protoc~toolchains_protoc_hub.osx_aarch_64//:prebuilt_protoc_toolchain in repository @@toolchains_protoc~~protoc~toolchains_protoc_hub.osx_aarch_64 which failed to fetch. no such package '@@toolchains_protoc~~protoc~toolchains_protoc_hub.osx_aarch_64//': key "protoc-29.0-rc2-osx-aarch_64.zip" not found in dictionary
ERROR: Analysis of target '//:foo_proto' failed; build aborted: Analysis failed
INFO: Elapsed time: 0.256s, Critical Path: 0.00s
INFO: 1 process: 1 internal.
ERROR: Build did NOT complete successfully

Version
Development (host) and target OS/architectures: N/A
Output of bazel --version: bazel 7.3.0
Version of the Aspect rules, or other relevant rules from your
WORKSPACE or MODULE.bazel file: bazel_dep(name = "toolchains_protoc", version = "0.3.4")
Language(s) and/or frameworks involved: N/A
How to reproduce
Bump the protoc version in the examples directory to `v29.0-rc3` and build the examples.

Any other information?
The filename for release candidate versions should have a bonus dash between rc and the candidate number. It might also make sense to add another example that builds with latest to catch any future funkiness in tests.

Faced the same one :) What's the recommended way to work it around for ones who uses 0.3.4. toolchains_protoc version? Shall I rather wait for 0.3.5 with the official protobuf v29.0 added?


writes not writing

Hi, I am having difficulty getting the jpeg writes to work. I have scrambled the coefficients arrays according to a random permutation but after using jpegio.write and jpegio.read I get back the original coefficients.

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
/lifecycle stale

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close.
/lifecycle rotten

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
/close

@sesheta: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
/close

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.


Multiple issues with path in Config.cpp

Not sure what the issue is but my compiler is not happy with these four lines. Total CPP scrub so idk what I am supposed to do here. Autofix is not suggesting anything helpful.

Changing the "char8_t*" to char* fixed it.


Re-enable Windows Build(s)

Windows R 4.1 does not build for release v2.21.8 and so Windows builds are  turned off with #26. If future releases support Windows 4.1 again, or Conda Forge starts supporting Windows R 4.2, then Windows builds on this feedstock should be reenabled.

Resolved by #38


Fix TODO item in MixedBilinearForm::FormRectangularSystemMatrix

This fixes MixedBilinearForm::FormRectangularSystemMatrix in the case where one space has a prolongation matrix, but the other one doesn't.

This PR is now under review (see the table in the PR description). To help with the review process, please do not force push to the branch.

Merged in next for testing...


Provide a return value

Useful when you're trying to use css modules
import style from './style.css';

// style.className = 'something';

You don't need to update the version number, I use kanpai to publish new versions 😂

fixed :)


docs/conf.pyadjustments

These docs aren't looking right --> http://pysal.org/spglm/
Need to make some adjustments in docs/conf.py probably.

Now seems to be working properly. Going for the v1.1.0 release.

Local


I1989

Purpose of PR?:
Fixes #1989
Does this PR introduce a breaking change?
no

when this is only an url change this may become done in stable too.
The other changes likly comes from a missing merge from stable to develop. Because this merge shows up some merge conflicts I want to do this short before or short after the 8.3.0. release

please send the url change to stable

seen that I can do this in the UI


Re-apply "SIL: Use objc_method instruction for Objective-C protocol method calls"

Re-applies https://github.com/apple/swift/pull/13139. The only change is removing a verifier check that is bogus and wrong with optimizations enabled, and adds a test case.

@swift-ci Please smoke test


[Snyk] Security upgrade requests from 2.31.0 to 2.32.0

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in the `pip` dependencies of this project.
Changes included in this PR

Changes to the following files to upgrade the vulnerable dependencies to a fixed version:

docs/requirements.txt

⚠ Warning
sphinx 5.3.0 requires requests, which is not installed.
sphinx 5.3.0 has requirement docutils<0.20,>=0.14, but you have docutils 0.20.1.

Vulnerabilities that will be fixed
By pinning:

Severity
Priority Score (*)
Issue
Breaking Change
Exploit Maturity

566/1000  Why? Recently disclosed, Has a fix available, CVSS 5.6
Always-Incorrect Control Flow Implementation SNYK-PYTHON-REQUESTS-6928867
No
No Known Exploit

(*) Note that the real score may have changed since the PR was raised.
Some vulnerabilities couldn't be fully fixed and so Snyk will still find them when the project is tested again. This may be because the vulnerability existed within more than one direct dependency, but not all of the affected dependencies could be upgraded.
Check the changes in this PR to ensure they won't cause issues with your project.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings
📚 Read more about Snyk's upgrade and patch logic

Note: This is a default PR template raised by Snyk. Find out more about how you can customise Snyk PRs in our documentation.
Learn how to fix vulnerabilities with free interactive lessons:
🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

Sorry about this - misconfigured Snyk. Closing now.


test: change vsphere datacenter

/test-rhel-9-3-vsphere

/test-rhel-9-3-vsphere

/test-rhel-9-3-vsphere

<IP_ADDRESS> is in bos lab, use it in test script, but failed with timetout error, retry got the same error.
Checked the log, the upload image process completed, but copy image process didn't complete because of timeout.
Change back to <IP_ADDRESS>

/test-rhel-9-3-vsphere

Waiting for lili to setup a 6.7 datacenter.

/test-rhel-9-3-vsphere

/test-cs9-vsphere


Enhance Missions Component and Redux Actions

Description:
This pull request refactors the Missions component and its associated Redux actions to provide a more user-friendly experience. It includes enhancements for mission status handling, error management, and join/leave functionality.

Hi @Young-Gaius
Your project is complete! There is nothing else to say other than... it's time to merge it 👍
Congratulations! 🎉
Highlights

Linters are passing.

Optional suggestions

N/A

Every comment with the [OPTIONAL] prefix is not crucial enough to stop the approval of this PR. However, I strongly recommend you take them into account as they can make your code better.
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.
Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.


z-index is not work

z-index is not work in ng2-admin.

but I use another package(ng2-daterangepicker) in ng2-admin can work.

@taipeiwu
just overwrite the z-index in your globe css file
.picker-box { z-index: Whatever_Suits_You !important; }

@DanielYKPan , I have been overwrite the z-index in my globe css file, but is not working.


trouble connecting to defiads testnet?

This is exciting times and great work. Kudos to @tamasblummer for getting defiads underway!
Opening this issue in case anyone else has the same problem. When following the instructions in the readme, it is relatively easy to get everything "working." However, it seems that peer discovery is not yet implemented yet. Therefore one may end up with output similar to:
23:34:45 [ WARN] can not poll content as no defiads peers are connected
23:35:46 [ WARN] can not poll content as no defiads peers are connected
23:36:47 [ WARN] can not poll content as no defiads peers are connected
23:37:48 [ WARN] can not poll content as no defiads peers are connected
23:38:49 [ WARN] can not poll content as no defiads peers are connected
23:39:50 [ WARN] can not poll content as no defiads peers are connected
23:40:51 [ WARN] can not poll content as no defiads peers are connected
23:41:52 [ WARN] can not poll content as no defiads peers are connected

This is because we apparently need to be using the option —defiads-peers [ADDRESS] where ADDRESS is replaced by the address of a peer to connect to. Unfortunately, I'm not sure how to resolve this and try out the software, as I do not know of another address to connect to at the moment. @tamasblummer are you running a node that we can connect to so that we can try it out?
Alternatively, if you suggest that we try things out solely locally first via regtest, is there some instructions you can provide to help us along with that?

Yes, the warning is because the node has no peers. There is no discovery mechanism implemented yet and --defiads-peers have to be used to connect to some others. The nodes propagate addresses they learned, so you only have to find one to discover the rest of the network. At the moment however I am not aware of a network. Send me a mail, so I send you my node's address<EMAIL_ADDRESS>

@tamasblummer Thanks for this information. It is helpful. One other question follows (which could be because I'm new to the Rust ecosystem and still trying to figure it out): currently the only way to test functionality of defiads is via testnet (bitcoin's testnet3). Therefore, if there are no defiads peers online to connect to, we need to run two local testnet peers if we want to test out publishing/reading of an ad. Is that correct?
For example, I tried to run it with --bitcoin-network regtest but was given the following:
target/release/defiads --bitcoin-network regtest
error: 'regtest' isn't a valid value for '--bitcoin-network <NETWORK>'
	[possible values: bitcoin, testnet]

USAGE:
    defiads --bitcoin-connections <n> --bitcoin-discovery <bitcoin-discovery> --bitcoin-network <NETWORK> --defiads-connections <n> --defiads-discovery <defiads-discovery> --http-rpc <ADDRESS> --listen <ADDRESS>... --log-level <LEVEL> --storage-limit <n>

When you're doing your development/testing, are you doing it like above and running multiple local nodes that are communicating via actual bitcoin testnet3, or do somehow you have a local regtest type network working somehow?

I pushed a commit to enable regtest. Multiple connects from same IP are possible now, which may cause some noise the nodes trying to re-connect to themselves. Will fix that later.

There is no discovery mechanism implemented yet and --defiads-peers have to be used to connect to some others.

Perhaps the README could mention that this argument is required.


NuGet error experience

This is an uber bug that I'm using to track NuGet error experience issues:
[ ] Unloading a project in the middle of large graph can lead to hundreds of errors
[ ] NuGet spits out large amounts of warnings/errors when you downgrade a package in a large graph
[ ] Unexpected dependency 'Microsoft.AspNetCore.Razor.Evolution' with no version number" opening MVC/CLI repros
[ ] Still gets lots of hard to understand errors when you install an incompatible package
[ ] Add better error handling for the PackTask instead of crashing
[ ] Get a tonne of unintelligible errors when a project is missing from disk

I just opened a UWP solution with several projects in VS2017 and I am encountering this "negative experience".   I have 750 downgrade build warnings and not a clue of where to start.  I'm sure there is a version number I need to fix but until then I am here to say how much I dislike this Nuget behavior.
Surely there is a better way to manage this behavior and the desired response expected from the developer?

Much of the work to cleanup these errors has been done, but leaving this as a "Test" to track validating that the experience is better, and eventually to add integration tests

Mondo escrow triage: test-only, unless there are specific actions here.  Moving to 15.4 to get this off the radar.

Closing this since all the items above have been validated


refactored user serialization

1 instead of 4 spots for user serialization
@tbarbugli i didn't manage to get our readonlytoken generation for realtime integration to work. not sure whats up with that.

Codecov Report

Merging #353 into master will increase coverage by 0.34%.
The diff coverage is 72.41%.

@@            Coverage Diff             @@
##           master     #353      +/-   ##
==========================================
+ Coverage    52.4%   52.75%   +0.34%
==========================================
  Files          70       70
  Lines        1540     1545       +5
==========================================
+ Hits          807      815       +8
+ Misses        733      730       -3

Impacted Files
Coverage Δ

api/src/controllers/user.js
5.06% <0%> (-0.2%)
:arrow_down:

api/src/routes/auth.js
100% <100%> (ø)
:arrow_up:

api/src/models/user.js
75.86% <100%> (+5.02%)
:arrow_up:

api/src/controllers/auth.js
83.33% <75%> (+2.17%)
:arrow_up:

api/src/asyncTasks.js
64.86% <0%> (+10.81%)
:arrow_up:

Continue to review full report at Codecov.

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


dyn_util: use /proc/$pid/exe to detect current running executable

while here, redirect addr2line to stderr to stay consistent with log output

Looks OK as a logic. Did you tried it out in your stacktrace? Moreover, I was wondering if does make sense to leverage (pid)[https://github.com/Netflix/dynomite/blob/dev/src/dyn_core.h#L194] but could not determine from a very quick look a way pass the struct instance so it sounds fine.

Yep, works just fine in my setup (though I had to make binutils available ofc).
getpid() return is cached by glibc anyway, so i wouldn't worry.
FWIW it's also possible to readlink("/proc/self/exe", buf, len) and then use buf as an argument to snprintf but ¯_(ツ)_/¯

\o/


mj-table compiles to table with incorrect styling / attributes

mj-table compiles into a HTML table with incorrect attributes and styling, also unable to set cellpadding and cellspacing for the table.
Reproduction Steps:

./node_modules/.bin/mjml -w ./mjml/example.mjml --config.beautify -o ./html
Open html file and compare the HTML table created from mj-table

Expected behavior:
mj-table should convert to a table with valid attributes and styling
Observed behavior:
<mj-table></mj-table>
compiles to
<table 0="[object Object]" 1="[object Object]" 2="[object Object]" border="0" style="cellspacing:0;color:#000;font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:13px;line-height:22px;table-layout:auto;width:100%;"> </table>
and
<mj-table cellspacing="0" cellpadding="0"></mj-table>
compiles to
<table 0="[object Object]" 1="[object Object]" 2="[object Object]" border="0" style="cellspacing:0;color:#000;font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:13px;line-height:22px;table-layout:auto;width:100%;"> </table>
MJML version:
4.0.3
Email clients the bug is seen on:
All

Hi @devonJS
It already has been fixed in 4.0.4/5, so I'm closing the issue

thanks looks good, though there's a style="cellspacing:0;" still being created for the table.


Area and Group messages being visible for everyone

If you're far away from another player, the area message is still being showed to everyone, also with groups

The issue should be resolved in v1.0.2.


update roadmap

@sp98 @leelavg @jmolmo @Muyan0828  Can you see what you think is worth adding to the roadmap, and we can talk about it. thanks!

I think that we should include in the roadmap, the changes we already commented via email:

Operator SDK:

We would like to propose using the Operator SDK framework to write the controllers.
Operator SDK is based on the kubebuilder pattern and we feel it will be very useful for the product in the long run.

CRD Changes:
a) Remove the topolvm version from the CRD

A single topolvm image should be used by all instances of the topolvmcluster (though only a single one is supported now). It is better to provide this in the CSV.
b) Provide more filters for selection of devices via spec.storage.devices
c) Label selector for nodes
It is tedious to provide individual node IP addresses in the CRD

CSV changes
a) Set install mode to own namespace

The operator currently watches all namespaces but the code only allows a single topolvmcluster CR in the same namespace as the operator.

Log changes.

Operator log level is set to Debug by default.
Log messages need more details. We would like to work on it and move it to a more structured format.

PSP:

Remove PodSecurityPolicies from the code. PSPs are deprecated in k8s 1.21

Resource requests and limits should not be hardcoded in the code. We should be able to specify different values for different deployment types.

Operator Configuration: Use a configmap or similar to specify configuration parameters for the operator? For instance, resource limits and requests, single node deployment, etc.

I think that we should include in the roadmap, the changes we already commented via email:

Operator SDK:

We would like to propose using the Operator SDK framework to write the controllers.
Operator SDK is based on the kubebuilder pattern and we feel it will be very useful for the product in the long run.

CRD Changes:
a) Remove the topolvm version from the CRD

A single topolvm image should be used by all instances of the topolvmcluster (though only a single one is supported now). It is better to provide this in the CSV.
b) Provide more filters for selection of devices via spec.storage.devices
c) Label selector for nodes
It is tedious to provide individual node IP addresses in the CRD

CSV changes
a) Set install mode to own namespace

The operator currently watches all namespaces but the code only allows a single topolvmcluster CR in the same namespace as the operator.

Log changes.

Operator log level is set to Debug by default.
Log messages need more details. We would like to work on it and move it to a more structured format.

PSP:

Remove PodSecurityPolicies from the code. PSPs are deprecated in k8s 1.21

Resource requests and limits should not be hardcoded in the code. We should be able to specify different values for different deployment types.
Operator Configuration: Use a configmap or similar to specify configuration parameters for the operator? For instance, resource limits and requests, single node deployment, etc.

see reply：
Thank you for helping to raise a lot of issues that need to be improved for topolvm-operator. I now respond to your points one by one.
Operator SDK
I also wan to to use operator sdk framework to rearch the controllers.  operator-sdk framework could bring us a lot of  benefits. such as Product iteration and bundle managment.
CRD changes
     a)  remove the topolvm version from the CRD

     yes a single one is supported now. That is provided in CSV cr example.
    if you remove the field topolvm versoin from the crd，how to solve the problem that users need to upgrade topolVM image

    b) Provide more filters for selection of devices via spec.storage.devices
    c) Label selector for nodes

    b and c  is the roadmap of topolvm-operator, if you teams could contribute, welcome and thank you very much

CSV changes
a) Set install mode to own namespace
This is a problem left over from history， We introduced converters to support multiple versions of CRD（TopolvmCluster), but OLM only support AllNameSpace for the conversoin webhook.
But now , we have removed the converser, so we could set install mod to own nameapce.
4. Log changes.
     if you teams could contribute, welcome and thank you very much

 5. PSP

      We are scheduled to remove PSP

 6. resource requests and limits should not be hardcoded in the code

       I agree with you.

  7 . Operator Configuration

    Now operator support it. However, only a few configurations are supported, I think we could add some other configurations as you say  resource limits and requests, single node deployment, etc.

I don't know if I made it clear to you. Please feel free to contact me if you have any further questions.

I don't know if I made it clear to you. Please feel free to contact me if you have any further questions.

Yes for sure, it is completely clear, @little-guy-lxr . I just commented if it is worth to have included these changes in the roadmap.


Can't compile standart template project (https://github.com/benwis/eframe_template) to WASM using trunk

The project's contents are 1:1. I didn't make any changes.

error[E0425]: cannot find function, tuple struct or tuple variant Some in this scope
--> C:\Users\User.cargo\registry\src\index.crates.io-6f17d22bba15001f\ttf-parser-0.15.2\src\lib.rs:126:27
|
126 |             0x4F54544F => Some(Magic::OpenType),
|                           ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant Some in this scope
--> C:\Users\User.cargo\registry\src\index.crates.io-6f17d22bba15001f\ttf-parser-0.15.2\src\lib.rs:127:27
|
127 |             0x74746366 => Some(Magic::FontCollection),
|                           ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant Some in this scope
--> C:\Users\User.cargo\registry\src\index.crates.io-6f17d22bba15001f\ttf-parser-0.15.2\src\lib.rs:378:9
|
378 |         Some(Rect {
|         ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant Some in this scope
--> C:\Users\User.cargo\registry\src\index.crates.io-6f17d22bba15001f\ttf-parser-0.15.2\src\lib.rs:476:9
|
476 |         Some(TableRecord {
|         ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant Err in this scope
--> C:\Users\User.cargo\registry\src\index.crates.io-6f17d22bba15001f\ttf-parser-0.15.2\src\lib.rs:599:24
|
599 |                 return Err(FaceParsingError::UnknownMagic);
|                        ^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant Ok in this scope
--> C:\Users\User.cargo\registry\src\index.crates.io-6f17d22bba15001f\ttf-parser-0.15.2\src\lib.rs:608:9
|
608 |         Ok(RawFace {
|         ^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant Ok in this scope
--> C:\Users\User.cargo\registry\src\index.crates.io-6f17d22bba15001f\ttf-parser-0.15.2\src\lib.rs:785:9
|
785 |         Ok(face)
|         ^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant Ok in this scope
--> C:\Users\User.cargo\registry\src\index.crates.io-6f17d22bba15001f\ttf-parser-0.15.2\src\lib.rs:874:9
|
874 |         Ok(face)
|         ^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant Ok in this scope
--> C:\Users\User.cargo\registry\src\index.crates.io-6f17d22bba15001f\ttf-parser-0.15.2\src\lib.rs:910:9
|
910 |         Ok(FaceTables {
|         ^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant Some in this scope
--> C:\Users\User.cargo\registry\src\index.crates.io-6f17d22bba15001f\ttf-parser-0.15.2\src\lib.rs:1228:9
|
1228 |         Some(self.vertical_ascender()? - self.vertical_descender()?)
|         ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant Some in this scope
--> C:\Users\User.cargo\registry\src\index.crates.io-6f17d22bba15001f\ttf-parser-0.15.2\src\lib.rs:1284:9
|
1284 |         Some(metrics)
|         ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant Some in this scope
--> C:\Users\User.cargo\registry\src\index.crates.io-6f17d22bba15001f\ttf-parser-0.15.2\src\lib.rs:1301:9
|
1301 |         Some(metrics)
|         ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant Some in this scope
--> C:\Users\User.cargo\registry\src\index.crates.io-6f17d22bba15001f\ttf-parser-0.15.2\src\lib.rs:1320:9
|
1320 |         Some(metrics)
|         ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant Some in this scope
--> C:\Users\User.cargo\registry\src\index.crates.io-6f17d22bba15001f\ttf-parser-0.15.2\src\lib.rs:1339:9
|
1339 |         Some(metrics)
|         ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant Some in this scope
--> C:\Users\User.cargo\registry\src\index.crates.io-6f17d22bba15001f\ttf-parser-0.15.2\src\lib.rs:1367:24
|
1367 |                 return Some(id);
|                        ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant Some in this scope
--> C:\Users\User.cargo\registry\src\index.crates.io-6f17d22bba15001f\ttf-parser-0.15.2\src\lib.rs:1386:61
|
1386 |                     cmap::GlyphVariationResult::Found(v) => Some(v),
|                                                             ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant Some in this scope
--> C:\Users\User.cargo\registry\src\index.crates.io-6f17d22bba15001f\ttf-parser-0.15.2\src\lib.rs:1514:20
|
1514 |             return Some(name);
|                    ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant Some in this scope
--> C:\Users\User.cargo\registry\src\index.crates.io-6f17d22bba15001f\ttf-parser-0.15.2\src\lib.rs:1518:20
|
1518 |             return Some(name);
|                    ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant Some in this scope
--> C:\Users\User.cargo\registry\src\index.crates.io-6f17d22bba15001f\ttf-parser-0.15.2\src\lib.rs:1723:9
|
1723 |         Some(())
|         ^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant Ok in this scope
--> C:\Users\User.cargo\registry\src\index.crates.io-6f17d22bba15001f\ttf-parser-0.15.2\src\lib.rs:1788:13
|
1788 |             Ok((table.table_tag, {
|             ^^ not found in this scope
error: could not compile ttf-parser (lib) due to 1985 previous errors
2023-12-13T13:18:45.522125Z ERROR error
error from build pipeline
Caused by:
0: error from asset pipeline
1: error during cargo build execution
2: cargo call to executable 'cargo' with args: '["build", "--target=wasm32-unknown-unknown", "--manifest-path", "C:\Users\User\RustroverProjects\eframe_template-master\Cargo.toml"]' returned a bad status: exit code: 101

I tried to compile another project some time before and faced the same situation. I didn't payed much attention to it because I wasn't sure that I did everything correct. But It starts worrying me because today and right now I've just cloned a repo with a template and didn't make any changes to it. It's very strange and I tried to google but didn't find any fixes.
How can I solve this situation?

The benwis fork you link, compiles for me.  Maybe try cargo update?
Or better yet, use the "official" template at  http://github.com/emilk/eframe_template

The benwis fork you link, compiles for me. Maybe try cargo update? Or better yet, use the "official" template at http://github.com/emilk/eframe_template

What OS do you use? I'm on Windows 11, maybe should check it on Mac.

This is not the right place to discuss problems compiling ttf-parser


--ignorePattern option stopped working for angular/karma

Summary

the --file AND --ignorePatterns option fails , the due to "Unable to find karma config at 'karma.conf.js'"  in the sandbox ERROR   and
although there is at least one "Files to mutate" is found , "Instrumenter Instrumented 1 source file(s) with 28 mutant(s)" but then
"Chrome Headless 104.0.5112.101 (Mac OS 10.15.7): Executed 0 of 0 SUCCESS (0 secs / 0 secs)"
however: stryker runs without problems without the --file or the --ignorePatters option.
however 2 : the --file option was working yesterday, before  I upgraded Java from 17 to 18 and rebooted of my Macbook, but that should be totally unrelated, shouldn't it ?

if I start stryker on ALL  files of the project, the karma config at 'karma.conf.js'" is found in the sandbox, just as expected , according to the stryker logfile.
see project :
https://github.com/bodote/book-monkey/commit/c8e53ce1be19377f9409515923b2406fd233004b
Stryker config

{
  "$schema"<EMAIL_ADDRESS>  "_comment": "This config was generated using 'stryker init'. Please see the guide for more information: https://stryker-mutator.io/docs/stryker-js/guides/angular",
  "mutate": [
    "src/**/*.ts",
    "!src/**/*.spec.ts",
    "!src/test.ts",
    "!src/environments/*.ts"
  ],
  "testRunner": "karma",
  "karma": {
    "configFile": "karma.conf.js",
    "projectType": "angular-cli",
    "config": {
      "browsers": [
        "ChromeHeadless"
      ]
    }
  },

  "reporters": [
    "progress",
    "clear-text",
    "html"
  ],
  "concurrency": 4,
  "concurrency_comment": "Recommended to use about half of your available cores when running stryker with angular",
  "coverageAnalysis": "perTest",
  "timeoutFactor": 40,
  "checkers": ["typescript"],
  "tsconfigFile": "tsconfig.json",
  "ignorePatterns": ["**","!src/**/book-details*.ts"],
  "logLevel": "trace"
}

Test runner config

Stryker environment
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html

module.exports = function (config) {
  config.set({
    basePath: '',
    frameworks: ['jasmine', '@angular-devkit/build-angular'],
    plugins: [
      require('karma-jasmine'),
      require('karma-chrome-launcher'),
      require('karma-jasmine-html-reporter'),
      require('karma-coverage'),
      require('@angular-devkit/build-angular/plugins/karma')
    ],
    client: {
      jasmine: {
        // you can add configuration options for Jasmine here
        // the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
        // for example, you can disable the random execution with `random: false`
        // or set a specific seed with `seed: 4321`
      },
      clearContext: false // leave Jasmine Spec Runner output visible in browser
    },
    jasmineHtmlReporter: {
      suppressAll: true // removes the duplicated traces
    },
    coverageReporter: {
      dir: require('path').join(__dirname, './coverage/book-monkey'),
      subdir: '.',
      reporters: [
        { type: 'html' },
        { type: 'text-summary' }
      ]
    },
    reporters: ['progress', 'kjhtml'],
    port: 9876,
    colors: true,
    logLevel: config.LOG_INFO,
    autoWatch: true,
    browsers: ['Chrome'],
    singleRun: false,
    restartOnFileChange: true
  });
};

├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>

├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>

Test runner environment

 ng test

Your Environment

software
version(s)

node
v16.15.1

npm
8.11.0

Operating System
maxos 12.4

Add stryker.log

is there any way to suppress deleting the .stryker-tmp  after the stryker run so that we can see , whats going on there?

found a workaround : --inPlace prevents that bug from happening.

...and here is the log file
stryker1.log

specifically the --ignorePattern=  does not work with the workaround mentioned above --inPlace.
because the thing is, that the command line:
 stryker run  --ignorePatterns='**','!src/**/search.effects.ts' --fileLogLevel=trace leads to strange type-errors , such as:
10:39:08 (87003) TRACE ChildProcessProxy
Error: src/app/search/search.effects.spec.ts:46:26 - error TS2339: Property 'pipe' does not exist on type 'EffectResult<Action> & CreateEffectMetadata'.
  Property 'pipe' does not exist on type '((...args: any[]) => Observable<Action>) & CreateEffectMetadata'.
46     effects.searchBooks$.pipe(toArray()).subscribe((actions) => {

while changing  the stryker.conf.json option
 "mutate": [
    "src/**/*.ts",
    "!src/**/*.spec.ts",

to :
 "mutate": [
    "src/**/search.effects.ts",
    "!src/**/*.spec.ts",

runs on the same source file without any problems.
to reproduce use: https://github.com/bodote/book-monkey/commit/1af6a02e66d11aae45f0a42656970aad2fb5fb89

problem persists after update all npm packages

what I found out so far with the debugger:
apearantly the content of the --ignore-pattern commandline option is already used here:
resolveInputFileNames (/Users/bodo.teichmann/dev/learning/myStryker/stryker-js/packages/core/src/fs/project-reader.ts:194)
await (Unknown Source:0)
read (/Users/bodo.teichmann/dev/learning/myStryker/stryker-js/packages/core/src/fs/project-reader.ts:53)
execute (/Users/bodo.teichmann/dev/learning/myStryker/stryker-js/packages/core/src/process/1-prepare-executor.ts:65)
processTicksAndRejections (internal/process/task_queues:95)
await (Unknown Source:0)
runMutationTest (/Users/bodo.teichmann/dev/learning/myStryker/stryker-js/packages/core/src/stryker.ts:30)
runMutationTest (/Users/bodo.teichmann/dev/learning/myStryker/stryker-js/packages/core/src/stryker-cli.ts:44)
run (/Users/bodo.teichmann/dev/learning/myStryker/stryker-js/packages/core/src/stryker-cli.ts:201)
run (/Users/bodo.teichmann/dev/learning/myStryker/stryker-js/packages/core/src/stryker-cli.ts:205)
<anonymous> (/Users/bodo.teichmann/dev/learning/myStryker/stryker-js/packages/core/bin/stryker.js:6)
run (internal/modules/esm/module_job:193)

and added as rule 6 and 7 to the default ignoreRules which in turn leads to only one file left in the variable project->files->Map in
execute (/Users/bodo.teichmann/dev/learning/myStryker/stryker-js/packages/core/src/process/1-prepare-executor.ts:67)
only after that the sandbox is filled with the only one file, selected by the --ignorePatter- option, which in turn leads to the problem that when the sandbox directory is filled, it is filled only with this only one file, but the configuration files from the root dir of the project to be analysed are therefore missing now in the sandbox-dir
When the dryRun is startet here:
runMutationTest (/Users/bodo.teichmann/dev/learning/myStryker/stryker-js/packages/core/src/stryker.ts:35)
await (Unknown Source:0)
runMutationTest (/Users/bodo.teichmann/dev/learning/myStryker/stryker-js/packages/core/src/stryker-cli.ts:44)
run (/Users/bodo.teichmann/dev/learning/myStryker/stryker-js/packages/core/src/stryker-cli.ts:201)
run (/Users/bodo.teichmann/dev/learning/myStryker/stryker-js/packages/core/src/stryker-cli.ts:205)
<anonymous> (/Users/bodo.teichmann/dev/learning/myStryker/stryker-js/packages/core/bin/stryker.js:6)
run (internal/modules/esm/module_job:193)

stryker is complaining about the missing stryker-karma.conf.js file , since it is not in the sandbox directory.
this also explains , why when stryker is run with the --inPlace option, this problem does not occur.
contrary then not using the --ignorePattern cmdline option at all, but instead selecting on file via the "mutate" parameter in stryker.conf.json, the sandbox is filled with all project files. the filtering to one file to be analyzed seems to be applied only after that .
therefore the --ignorePattern seems to be NO replacement for the deprecated --files command line option.
the documentation however claims that
--files is deprecated and   --ignorePattern should be used instead to run stryker with only a selected set of files

even if i try this:
stryker run --ignorePatterns='src/app/**','!src/app/search/search*.ts'
then i got this output:
[0834][bodo.teichmann@ba-mb-006:~/dev/learning/angular_buch/book-monkey]$ stryker run --ignorePatterns='src/app/**','!src/app/search/search*.ts'
08:35:21 (27116) WARN ProjectReader Glob pattern "!src/**/*.module.ts" did not exclude any files.
08:35:21 (27116) INFO ProjectReader Found 6 of 2364 file(s) to be mutated.
08:35:21 (27116) INFO Instrumenter Instrumented 6 source file(s) with 34 mutant(s)
08:35:22 (27116) INFO ConcurrencyTokenProvider Creating 2 checker process(es) and 2 test runner process(es).
08:36:31 (27116) INFO DryRunExecutor Starting initial test run (karma test runner with "perTest" coverage analysis). This may take a while.
08:36:31 (27116) INFO DryRunExecutor Initial test run succeeded. Ran 0 tests in 0 seconds (net 0 ms, overhead 179 ms).
08:36:31 (27116) ERROR Stryker No tests were executed. Stryker will exit prematurely. Please check your configuration.

instead stryker run --mutate='src/**/search*.ts' seems to work just fine.

Which leads to the question, what is the "--ignorePatters" option good for anyway?
Why is "--ignorePatters" option recommended as a replacement for the deprecated --files option , when only --mutate seems to do the job ?

however --mutate used on the command line seems to replace all patters defined in mutate in the stryker.conf.json instead to complement those patterns.
that leads to the following problem:
when I use --mutate='src/**/search*.ts' , stryker tries to also mutate and run the *.spec.ts files, which makes no sense.
Therefore you need to write :  stryker run --mutate='src/**/search*.ts','!src/**/*.spec.ts' in Order to reach the goal of running stryker agains only a subset of your project.

Summary of my findings :
TL;DR: the problem might be the documentation.
Because:
What I was trying to do is to mutate just one specific file in my project.
The documentation in docs/configuration.md (or https://stryker-mutator.io/docs/stryker-js/configuration/#file ) for the --file option says:
DEPRECATED. Please use ignorePatterns instead, or use mutate to select which files to mutate.
However stryker run --ignorePatterns='**','!src/**/search.effects.ts' did not work as described in this Bug 3688
After debugging a little, its clear that the usage of
stryker run --ignorePatterns='**','!src/**/search.effects.ts'  on this project https://github.com/bodote/book-monkey/commit/2a8143dd8506494e57034c7f9a22b073fff2fd3d will not work because the --ignorePattern is applied also to the project files while copying these files to the sandbox. Therefore also the karma.config.js is missing and the src/**/search.effects.spec.ts are missing in the sandbox and in turn stryker fails with an error because of missing. (However there is a workaround that with --inPlace)
So I tried
stryker run --ignorePatterns='src/app/*','!src/**/search.e*.ts'
which also does not work:
08:12:04 (18283) INFO ProjectReader Found 37 of 2452 file(s) to be mutated.
08:12:04 (18283) INFO Instrumenter Instrumented 37 source file(s) with 558 mutant(s)
08:12:04 (18283) INFO ConcurrencyTokenProvider Creating 2 checker process(es) and 2 test runner process(es).
08:12:41 (18283) INFO DryRunExecutor Starting initial test run (karma test runner with "perTest" coverage analysis). This may take a while.
08:12:42 (18283) INFO DryRunExecutor Initial test run succeeded. Ran 0 tests in 0 seconds (net 0 ms, overhead 210 ms).
08:12:42 (18283) ERROR Stryker No tests were executed. Stryker will exit prematurely. Please check your configuration.

then I tried
stryker run --mutate='src/**/search.e_.ts'
which, weirdly enough tries to also mutate the test file !:
Ran 32.42 tests per mutant on average.
------------------------|---------|----------|-----------|------------|----------|---------|
File                    | % score | # killed | # timeout | # survived | # no cov | # error |
------------------------|---------|----------|-----------|------------|----------|---------|
All files               |   53.49 |       23 |         0 |         18 |        2 |      10 |
 search.effects.spec.ts |   53.49 |       23 |         0 |         18 |        2 |       4 |
 search.effects.ts      |     n/a |        0 |         0 |          0 |        0 |       6 |
------------------------|---------|----------|-----------|------------|----------|---------|

Ok then, lets try --files nevertheless:
first :
stryker run -f src/**/search.e*.ts
Error:
08:20:02 (24095) ERROR Stryker Invalid config file "src/app/app.component.spec.ts". Error during import. Inner error: TypeError: ERR_UNKNOWN_FILE_EXTENSION (undefined) TypeError: Unknown file extension ".ts" for /Users/bodo.teichmann/dev/learning/angular_buch/book-monkey/src/app/app.component.spec.ts
    at new NodeError (node:internal/errors:393:5)

next trial:
stryker run --files='src/**/search.e*.ts'
again errors:
08:22:19 (25767) WARN OptionsValidator DEPRECATED. Use of "files" is deprecated, please use "ignorePatterns" instead (or remove "files" altogether will probably work as well). For now, rewriting them as ["**","!src/**/search.e*.ts"]. See https://stryker-mutator.io/docs/stryker-js/configuration/#ignorepatterns-string
08:22:19 (25767) WARN ProjectReader Glob pattern "!src/test.ts" did not exclude any files.
08:22:19 (25767) WARN ProjectReader Glob pattern "!src/environments/*.ts" did not exclude any files.
08:22:19 (25767) WARN ProjectReader Glob pattern "!src/**/*.module.ts" did not exclude any files.
08:22:19 (25767) WARN ProjectReader Glob pattern "!src/main.ts" did not exclude any files.
08:22:19 (25767) WARN ProjectReader Glob pattern "!cypress/**" did not exclude any files.
08:22:19 (25767) INFO ProjectReader Found 1 of 2 file(s) to be mutated.
08:22:19 (25767) INFO Instrumenter Instrumented 1 source file(s) with 6 mutant(s)
08:22:19 (25767) INFO ConcurrencyTokenProvider Creating 2 checker process(es) and 2 test runner process(es).
08:22:25 (25767) INFO DryRunExecutor Starting initial test run (karma test runner with "perTest" coverage analysis). This may take a while.
08:22:25 (25767) INFO DryRunExecutor Initial test run succeeded. Ran 0 tests in 0 seconds (net 0 ms, overhead 54 ms).
08:22:25 (25767) ERROR Stryker No tests were executed. Stryker will exit prematurely. Please check your configuration.

So what do you do, if you want mutate just one specific file in your project?
Well I found a solution, but my point here is, that the documentation needs better examples like this one:
stryker run --mutate='src/**/search.e*.ts','!src/**/*.spec.ts'
which finally does what I wanted.
But before I make any suggestions to better documentation, I need to better understand.. :

why is "--files" deprecated?
what is the intention behind "--ignorePattern"
what is the basic idea behind the "--mutate" and should it supplement or replace whats already in the stryker.conf.json of a project ?

Wow I think this all could have been avoided with improved docs.

Why is --files deprecated.

You can do the same with' files' by using ignorePatterns. Stryker internally rewrites files to ignorePatterns when you run stryker with --files. The reason to deprecate it is that people were confused, thinking that you specify which files to mutate with files.

what is the intention behind "--ignorePattern".

The intention is to ignore big directories/files you might have in your repo that has nothing to do with your code. For example, 1.5GB of movie/image files. See the original PR for more details: https://github.com/stryker-mutator/stryker-js/pull/2848#issue-864152020

what is the basic idea behind the "--mutate"

With mutate you specify which files to mutate.

should those command line options supplement or replace whats already in the stryker.conf.json of a project ?

Command line arguments always replace configuration options in "stryker.conf.json".
Does this clarify it for you?

yes , thank you !


Mat stepper - implement flex layout and align on component per column

In mobile devices, it's hard to enter values in fields.

This can be reproduce in 'new bill' and 'new defaulter' dialog


Arrow function doesn't work

This is a vuera issue. @WebExp0528 , perhaps you can move this to an issue there.


Additional Hyperlinks broken within 'Manage your portfolio across hybrid and multicloud operations

Within ‘Enhanced baseline’ section ‘Onboard Azure assets: linux VMs and Windows VMs’  the hyperlink for ‘Windows VMs’ receives a 404 error when you try to follow the link
Within ‘Operations manement discplines’ section ‘Manage VMs with MMA’ hyperlink provides a 404 error when you follow the link; ‘Scale configuration of MMA’ receives a 404 error when you try to follow the link

Thanks for reporting - this issue is under review. This is a Microsoft Internal DevOps Bug ID # 364493

Thanks for reporting - this issue is under review. This is a Microsoft Internal DevOps Bug ID # 364493

Added to the review backlog.

Added to the review backlog.


DOC add objective description in READMEs

It's a sub issue of #259 that can now be fixed sinceLatex support has landed in github markdown : https://github.blog/2022-05-19-math-support-in-markdown/

[ ] Lasso
[ ] Logreg L1
[ ] Logreg L2
[ ] Huber L2
[ ] Lasso path
[ ] linear svm binary classif no intercept
[ ] MCP
[ ] NNLS
[ ] OLS
[ ] quantile regression
[ ] resnet classif
[ ] ridge positive
[ ] ridge
[ ] TV1D
[ ] TV2D

It might be useful to add template_benchmark to the list


ngValue does not work with mdc-select

What Angular MDC version are you using?
The latest available at the time, 0.37.2.
What browser(s) is this bug affecting?
I've tested it only on Chrome, but I think this issue does not depend from the browser.
What OS are you using?
Ubuntu 16.04 LTS but, as for the browser, this should be irrelevant.
What are the steps to reproduce the bug?
I've reproduced the bug using Stackblitz.
What is the expected behavior?
The form data should be populated with the object passed to ngValue.
What is the actual behavior?
The form data is populated with the <option> label instead.
Any other information you believe would be useful?
It seems that when mdc-select is used, the SelectControlValueAccessor is not applied to it. Maybe because the formControlName attribute is not applied to the internal select tag?

Thanks for reporting, and the StackBlitz. We'll need to implement compareWith(o1: any, o2: any) => boolean property for mdc-select.


untested create-double-ray-endpositions

Actually many things untested ...
https://technology.riotgames.com/news/automated-testing-league-legends
Maybe first focus on content/having a game before adding tests?

Duplicate https://github.com/damn/core/issues/61


Font Settings

Font settings don't work in SQL editors.

Windows Community Edition 5.3.4

They work actually. But there is no such option as SQL Editor font. There is Text editor font option instead:

Thank you


confused,how to solve this problem?

Property or method "id" is not defined on the instance but referenced during render. Make sure to declare reactive data properties in the data option. (found in component )

Duplicate with #10


TypeError: this.requestAnimationFrame is not a function. (In 'this.requestAnimationFrame(function () {         _this5.goToPage(_this5.state.currentPage);       })', 'this.requestAnimationFrame' is undefined)

TypeError: this.requestAnimationFrame is not a function. (In 'this.requestAnimationFrame(function () {
_this5.goToPage(_this5.state.currentPage);
})', 'this.requestAnimationFrame' is undefined)
My Code
`
<Tabs
tabBarUnderlineStyle={{
backgroundColor: Color.steel,
borderRadius: 130
}}
tabContainerStyle={{
elevation: 0,
borderBottomColor: Color.white
}}
>
                <Tab
                    activeTabStyle={{ backgroundColor: Color.white }}
                    heading="Регистрация"
                    activeTextStyle={{
                        color: Color.black,
                        fontSize: 20,
                        fontFamily: "uber"
                    }}
                    tabStyle={{ backgroundColor: Color.white }}
                    textStyle={{
                        color: Color.steel,
                        fontSize: 20,
                        fontFamily: "uber"
                    }}
                >
                    <Tab1
                        onPress={() => this.props.navigation.navigate("OTP")}
                        onPressFB={() => this.props.navigation.navigate("Home")}
                    />
                </Tab>
                <Tab
                    activeTabStyle={{ backgroundColor: Color.white }}
                    heading="Войти"
                    activeTextStyle={{
                        color: Color.black,
                        fontSize: 20,
                        fontFamily: "uber"
                    }}
                    tabStyle={{ backgroundColor: Color.white }}
                    textStyle={{
                        color: Color.steel,
                        fontSize: 20,
                        fontFamily: "uber"
                    }}
                >
                    <Tab2
                        onPress={() => this.props.navigation.navigate("OTP")}
                    />
                </Tab>
            </Tabs>

`

Have the same issue, PR fix is here: https://github.com/GeekyAnts/NativeBase/pull/3218 but it's not been merged
Issue is duplicate of: https://github.com/GeekyAnts/NativeBase/issues/3206
If you want a temp fix: https://github.com/GeekyAnts/NativeBase/issues/3206#issuecomment-691745677 or fork yourself and implement fix

This is still an active issue.

According to sentry
Crashed in non-app: node_modules/native-base/dist/src/basic/Tabs/ScrollableTabBar.js
[native code] in _handleLayout
[native code] in value

I am still facing this issue: when trying to run test.


Add default header and footer

As a developer, I don't want duplicate code for headers and footers.
A/C:

Header and footer files are being included removing duplicate code

Note:

This is similar to the work done for https://github.com/ForestJay/VoteSquared/issues/2

Issue is resolved.


HelmChart does not support auto login on GCR

Hello,
currently i try to deploy a Helm Chart from a HelmRepository like this:
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
  name: oci-poc
spec:
  type: oci
  interval: 5m0s
  url: oci://europe-west1-docker.pkg.dev/project/helm-charts

When i use the HelmRepository in a HelmRelease the source controller tries to download a HelmChart
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
  name: oci-poc
spec:
  interval: 5m
  chart:
    spec:
      chart: nginx
      version: "0.2.0"
      sourceRef:
        kind: HelmRepository
        name: oci-poc
      interval: 1m
  values:
    deployment:
      image: &deploymentImage
        repository: europe-west1-docker.pkg.dev/project/docker-releases/nginx
        tag: "1.1.6"
      ports:
      - name: &ingressContainerPortName http
        containerPort: 80
        protocol: TCP
      services: &deploymentServices
      - type: ClusterIP
        ports:
        - name: *ingressContainerPortName
          appProtocol: http
          port: 80
    ingress:
      host: test.not.existing.de
      containerPortName: *ingressContainerPortName
      deploymentImage: *deploymentImage
      deploymentServices: *deploymentServices

This leads to a HelmChart with a 403 because it doesn't have a proper oauth2 token to present to the GCR. I have seen that OCIRegistry seems to support auto-login and i also found https://github.com/fluxcd/source-controller/issues/798 which referred to work done in https://github.com/fluxcd/image-reflector-controller/issues/264 which seems to be implemented with https://github.com/fluxcd/source-controller/commit/63c94397f7d756518d259f4703ac92900d2dd07e which only implements OCI auto login for OCIRepository not HelmChart

This is related to https://github.com/fluxcd/source-controller/issues/870#issuecomment-1224243005


RTNETLINK answers: File exists

With vultr server ,when enter the following command:
ip route add local 2001:19f0:6001:48e4::/64 dev enp1s0
i get "RTNETLINK answers: File exists" and why??

Sorry, i enter the command duplicate.

Close the issue


Last list item if commented will be indented two spaces after formatting

Originally posted here: https://github.com/google/yamlfmt/issues/74#issuecomment-1505882709
input yaml:
repos:
  - repo: https://github.com/antonbabenko/pre-commit-terraform
    rev: v1.77.2
    hooks:
      # - id: infracost_breakdown
      - id: terraform_fmt
      # - id: terraform_providers_lock
      - id: terraform_validate
      # - id: terrascan

output yaml:
repos:
  - repo: https://github.com/antonbabenko/pre-commit-terraform
    rev: v1.77.2
    hooks:
      # - id: infracost_breakdown
      - id: terraform_fmt
      # - id: terraform_providers_lock
      - id: terraform_validate
        # - id: terrascan <-- two leading spaces

Hi @djgoku I apologize for the delay in addressing the issue. I haven't had time to look at this project for the last month, but I finally had some time to check today.
This is a really funky edge case with the go-yaml libraries way of parsing comments. I know what the bug is, but I don't have a fix for it right now.
What's happening here is that when the comment is at the end of the array (in YAML syntax grammar called a "mapping block") it does not get rendered properly. I don't know if this is as a hack or for some genuine grammar reason, but when the parser encounters a foot comment for a mapping block like this, it forces it to be the foot comment of the key of the last item in the mapping block, so in this case the id in the last non-comment item. That's why it gets aligned like this. Under some scenarios, it might get mistakenly scanned as the foot comment for hooks and get moved back a tab too.
I couldn't figure out how to fix it while working yesterday but I will try to fix it soon.

I just encountered this behavior as well. @braydonk, did you ever get a chance to dig into this further?

Hi @chuckwondo, sorry I haven't. Most of these problems with the underlying yaml formatting library end up being so time consuming that I can't fit them into the time I have for this project. (See this discussion post for more details)
I can try and take another look next block of yamlfmt time I have to see if I can come up with a fix.


debugged some files

i have change some files inside api folder, client folder and admin folder to run project successfully.

thanks rishi


Retry dialing tcp connections

Attempted workaround for cockroachdb/cockroach#29578. Will
try something more drastic if the problem persists.

This change is

PS The more drastic approach is to always fork/exec ssh. Might not be that difficult to do that.

OK, then I blame the whole Go networking stack :)


Halogen combatibility issues

Before Halogen can be updated for Purescript v0.9.1 it needs these modules exposed:

DOM.Event.DragEvent.DataTransfer
DOM.Event.EventTypes

Errors:
https://gist.github.com/deamme/2749d127f38afe00ca00e740d8879d8d

These do still exist, but the modules have moved:

DOM.Event.DragEvent.DataTransfer -> DOM.HTML.Event.DragEvent.DataTransfer
DOM.Event.EventTypes -> DOM.HTML.Event.EventTypes


Update 2023-09-22-presentation-sbd-meeting.md

Just testing how this works. I just added the word 'Test' to the text.

Yes, it works like this, but please do not merge to main branch just for testing.

Yeah I just submitted a pull request, I didn't merge it. Thanks.


Add prettier workflow

Add default prettier linter for js and ts files, customize as you wish.

Pog


website's initial framework templates missing

Describe the bug
I'm using HuggingFace as a provider and tested most of their model (when it works), anthropic and openai models are not present.It creates files just fine but I always get stuck in the basic framework's file and folder structure (wrong versions, missing files...).I'm trying to create an angular project and I'm always failing to do so.The original bolt.new website ables you to choose your framework and I suspect basic config files are pre setted.
Link to the Bolt URL that caused the error
localhost
Steps to reproduce
subscribe to huggingface
copy api key
run docker bolt image
paste api key
choose HuggingFace and the model of your choice
ask for a basic angular app
Expected behavior
This should start on good bases to further implement the app, with right versions, packages and folder structure
Screen Recording / Screenshot
No response
Platform

OS: MacOS sequoia
Browser: firefox

Provider Used
HuggingFace
Model Used
any working models
Additional context
No response

initially added a PR for this, but that had too many things added at once we will add a new PR soon
it would be great to have some initial barebone starter templates to plug in into the tool

initially added a PR for this, but that had too many things added at once we will add a new PR soon it would be great to have some initial barebone starter templates to plug in into the tool

halo，does it mean that subsequent versions will add support for initialization templates?

initially added a PR for this, but that had too many things added at once we will add a new PR soon it would be great to have some initial barebone starter templates to plug in into the tool

halo，does it mean that subsequent versions will add support for initialization templates?

@thecodacus

I am working on a new PR which is simpler then this one. https://github.com/stackblitz-labs/bolt.diy/pull/867
just need a list of barebone templates


.EFI vs .FFS

I don't understand specifics of EFI / DXE drivers, but seems they are closly linked. Just thinking.....can the ReBarDxe be loaded with an EFI shell, kind of like this:
echo step1
connect -r
set -v efishellmode 1.1.2
map -u
echo step 2
load fs0:\EFI\Drivers\Nvm.efi
echo step2
map -u
echo step3
fs[YOUR-IDENTIFIED-NUMBER-HERE]:\EFI\boot\bootx64.efi

Found this online, where loading of NVME drivers was using this method. Thought this could be a possibility for OEM BIOSes where modifications was difficult?

@r8bit99 it won't work because ReBarDxe works by hooking PreprocessController which gets executed for every PCI device when the UEFI firmware initializes PCI devices.
This has been discussed before #6

@r8bit99 it won't work because ReBarDxe works by hooking PreprocessController which gets executed for every PCI device when the UEFI firmware initializes PCI devices.
This has been discussed before #6
There are still ways to get Resizable BAR without modifying BIOS, Using Linux with 4G decoding on or DSDT edit is the easiest.

hello curio, im currently investigating a similar issue with the dxe driver module from nvstrabsrebar.
i was trying to find a way to side- / chainload the preconfigured NvStrapsReBar.ffs with a grub 2 / linux based live usb prior to windows 10 to have the gpu driver inside win 10 access to the driver module and enable full or partial rebar  (anything higher than the default resized bar of 214/256mb).
ive created a question about the possibility on stackoverflow:
https://stackoverflow.com/questions/78533307/possibility-to-side-chainload-ffs-dxe-uefi-bios-rebar-driver-module-with
to me it seems theoretically possible but i have no clue about any of this stuff.
you said there would be an issue to trigger pci enumeration.
would it be possible to load the dxe driver as runtime persistently and then have the machine rebooted with the driver loaded and injected into pci enumeration?
8.8 DXE Runtime Driver A DXE runtime driver executes in both boot services and runtime services environments. This means the services that these modules produce are available before and after ExitBootServices() is called, including the time that an operating system is running. If SetVirtualAddressMap() is called, then modules of this type are relocated according to virtual address map provided by the operating system.

i don't think it's possible for uefi to do pci re-enumeration.
it is very much technically possible to resize BARs after PCI initialization. linux does it, the first commit of this project did it, xelafics first version of nvstrapsrebar also did it. however it's kinda complicated to write an efi application which can do all this without any hardcoding

i don't think it's possible for uefi to do pci re-enumeration.
it is very much technically possible to resize BARs after PCI initialization though. linux does it, the first commit of this project did it, xelafics first version of nvstrapsrebar also did it. however it's kinda complicated to write an efi application which can do all this without any hardcoding

thanks for quick answer. thats very interesting. according to my theory resizing the bar could be everything that needs to be done because all the rest of the mechanisms seem to be in place working already by default natively (rebar always present, always on with d3d9+ capable gpu, bar is active and has been resized, but size is statically limited to 214mb vulkan, 256mb hw).
do you have any idea why capframex is reporting full rebar in d3d for gtx1080 and 2080ti even when rebar is "physically disabled" (which it never is imo and is just a marketing scam)?
ive tried to investigate this with the capframex support but i received no answer.
could it be that d3d somehow can do a full software rebar via the a4g setting?

even when rebar is "physically disabled" (which it never is imo and is just a marketing scam)?
2080ti and all turing 16/20 series cards can do rebar using nvstrapsrebar
1080ti also could but nvidias driver does not support it

do you have any idea why capframex is reporting full rebar in d3d for gtx1080 and 2080ti (as well as probably any other d3d gpu) even when rebar is "physically disabled" (which it never is imo and is just a marketing scam)?

probably just an error

why are there different sizes reported for hw and vulkan? doesnt this mean its possible to achieve different rebar sizes with different graphic apis? like vulkan could probably support full memory as well like d3d. what would be the difference between d3d and vulkan in regards to this and why is this being done by the industry?

on stuff like amd polaris (my gpu) the driver disables rebar by default because it's experimental and needs a registry edit to enable it.

another idea would be to merely trick windows 10 into believing rebar is "on" by only setting the environment / uefi variables that the machine receives in the case of actually fully configured rebar:

no such thing

even when rebar is "physically disabled" (which it never is imo and is just a marketing scam)?

2080ti and all turing 16/20 series cards can do rebar using nvstrapsrebar 1080ti also could but nvidias driver does not support it

do you have any idea why capframex is reporting full rebar in d3d for gtx1080 and 2080ti (as well as probably any other d3d gpu) even when rebar is "physically disabled" (which it never is imo and is just a marketing scam)?

probably just an error

why are there different sizes reported for hw and vulkan? doesnt this mean its possible to achieve different rebar sizes with different graphic apis? like vulkan could probably support full memory as well like d3d. what would be the difference between d3d and vulkan in regards to this and why is this being done by the industry?

on stuff like amd polaris (my gpu) the driver disables rebar by default because it's experimental and needs a registry edit to enable it.

another idea would be to merely trick windows 10 into believing rebar is "on" by only setting the environment / uefi variables that the machine receives in the case of actually fully configured rebar:

no such thing

thx. im beginning to realize how much of a dead end this is because theres even issues left over with the officially fully supported and matured version of 3/4k series rebar that can lead to crashes and even reduced fps in some cases.
i wonder why its possible though to enable it with a reg tweak on amd but not with nvidia. thats why one of my main critic points was that all these mobos, gpus, etc are not fully compatible and not fully functional according to pcie specs. this is just not designed unitarily.
according to pcie specs its also provided in the implementation note that system software be provided to the user that can control and identifiy rebar capable devices which the industry never supplied. it was also meant for the function to report back to the user several optimal bar sizes to chose from.
since the loss of performance was well aware to the industry at that time is why i argued that all these products come with a legal flaw to trick consumers into paying again an extra fee for something they already own.
but who am i to say this but a nasty, greedy gamer.
my next step will be to harass zotac and nvidia about this before in finally give up.
;)

capframex screen from my other wholly unmodified pc:
r1700
rx570 8gb
asus prime b450 k2 w/ factory bios

a4g is disabled on this machine and capframex reports no full rebar in d3d. bar sizes are also different for vulkan than with nvidia. i still suspect the a4g setting to enable d3d to access all of the vram. ill try it later with a bios update. i didnt enable a4g because it caused black screens with that gpu on x79 which is apparently a bug where you need to to connect a dvi connection to get a picture again.
any suggestions on the lightest / least invasive tweaks i could do to enable rebar and make some checks on the way with that rig? reg tweak a4g should be enough probably?
i have another system with r3600, rx590, asrock ab350 pro4.
and hey, theres a box with my old gtx1080, but its too big to fit one of the other cases!
and heres a gtx970, too, which a friend refuses to take even for free to upgrade his gtx960.
this must be my destiny.

Rakesh P N: Hi, my name is Rakesh P N. How may I help you?
. .: hello
Rakesh P N: hello!
. .: i have a question regarding rebar availability for rtx 2000 and gtx 1600 series
Rakesh P N: Rebar?
Rakesh P N: May I know what it is?
. .: https://www.nvidia.com/en-us/geforce/news/geforce-rtx-30-series-resizable-bar-support/
Rakesh P N: Oh, resizable bar!
. .: yes exactly
Rakesh P N: GTX series doesn't have resizable bar
Rakesh P N: RTX 2000 is it a quadro card?
. .: generally rtx 2000 series
. .: more exactly rtx2080ti in this case
Rakesh P N: Then its supported
. .: so on this screenshot rebar is officially supported by nvidia
. .: https://i.redd.it/favc5wjhhxw91.jpg
. .: bar and rebar were introduced with the pcie 2.0 and updated with pcie 2.1 specifications
Rakesh P N: Its not supported on your PC?
. .: yes the issue its not supported but it should be
Rakesh P N: May I know the name of card manufacturer of your RTX 2080ti?
. .: yes its zotac amp rtx2080ti
File attachment upload has started.
The file gpuz4.gif (24.26KB) was received.
File attachment upload has started.
The file gpuz4rebar.gif (14.16KB) was received.
Rakesh P N: The motherboard you're using is?
. .: gigabyte x570 ud rev. 1.0
. .: the thing is rebar is always on but the user is prohibited from changing the bar size
Rakesh P N: I suggest you contact Zotac and check with them for the Resizable bar update.
https://www.zotac.com/news/get-resizable-bar
. .: basically every d3d9+ capable gpu can do partial or full rebar
. .: in capframex full rebar is reported for gtx1080 and rtx2080ti even when rebar is disabled
File attachment upload has started.
The file capframex.png (248.91KB) was received.
Rakesh P N: Sorry, not sure about Capramex
Rakesh P N: You need to check with ZOtac once
. .: ok i will try thanks
. .: can you confirm that nvidia officially supports full rebar for rtx2080ti?
Rakesh P N: Yes it doesn
Rakesh P N: But
Rakesh P N: Its not the chipset
Rakesh P N: Its the card
Rakesh P N: Zotac needs to support
. .: ok very interesting thank you

a few hours later ...

This is not available. Only updates done were for the 30 series cards and none for 20 series unfortunately.
Cheers,
ZOTAC Technical Support
Department: Technical Support
Type: Issue
Status: Closed
END OF STORY


Options:   -h|--help         Display help.   --info            Display .NET Core information.   --list-sdks       Display the installed SDKs.   --list-runtimes   Display the installed runtimes.

Problem encountered on https://dotnet.microsoft.com/learn/aspnet/hello-world-tutorial/install
Operating System: windows
Provide details about the problem you are experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.

Provide details about the problem you are experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.

Closing out due to lack of response. Please reopen if you're still having an issue and able to provide more details.


Compare mismatch string to number

Code:
print(1 == '1 a' ? "true" : "false","\n");
print(1 == '1a ' ? "true" : "false","\n");

Output:
true
false

Please follow up in #240


BROKERS: Lab Broker Get and Post Labs

DMX.Sdk core functions status:
➡ RetrieveAllLabsAsync
🔜 UploadArtifactAsync
🔜 SendCommandAsync

Shutting down this PR as we don't need it anymore.


RedisTimeoutException with "large" objects

I have a simple setup with a SingleServer connected to a ElasticCache-Redis instance. I upload various sizes of bytes to measure the performance between those. Small objects up to 3 MB perform fine but above that I receive this error:
Exception in thread "main" org.redisson.client.RedisTimeoutException: Command execution timeout for command: (SETEX) with params: [da515c20-cba8-42ca-bd18-66249f4e06d9, 60, StorageObject@255d177b]
	at org.redisson.command.CommandAsyncService$5.run(CommandAsyncService.java:403)
	at io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:581)
	at io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:655)
	at io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:367)
	at java.lang.Thread.run(Thread.java:745)

In "Batch" mode is also see this:
Exception in thread "main" org.redisson.client.RedisTimeoutException: Batch command execution timeout
	at org.redisson.command.CommandBatchService$3.run(CommandBatchService.java:243)
	at io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:581)
	at io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:655)
	at io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:367)
	at java.lang.Thread.run(Thread.java:745)

My setup for connecting looks as following (I have a similar setup with redisson-reactive showing the same problem):
        final Config config = new Config();

        config.useSingleServer().setSubscriptionConnectionMinimumIdleSize(1);
        config.useSingleServer().setSubscriptionConnectionPoolSize(5);
        config.useSingleServer().setSubscriptionsPerConnection(5);
        config.setCodec(new SerializationCodec());
        config.useSingleServer().setAddress(configuration.getString("redis.endpoint"));
        config.useSingleServer().setDatabase(configuration.getInt("redis.database"));
        config.useSingleServer().setConnectionPoolSize(configuration.getInt("redis.pool.max"));
        config.useSingleServer().setConnectionMinimumIdleSize(configuration.getInt("redis.pool.min"));
        config.useSingleServer().setTimeout(60000);

        redissonClient = Redisson.create(config);

        // single
        redissonClient.getBucket(storageObject.getId()).set(storageObject, 60, SECONDS);

        // batch
        final RBatch batch = redissonClient.createBatch();
        for (final StorageObject storageObject : storageObjects)
        {
            batch.getBucket(storageObject.getId()).setAsync(storageObject, 60, SECONDS);
        }
        batch.execute();

I have tried using the latest versions (release + HEAD). I have debugged the issue but haven't found any obvious problem. The only thing I found is the timeout in "new HashedWheelTimer(minTimeout, TimeUnit.MILLISECONDS);" which is set to a 100ms (from MasterSlaveConfig) and seems to be the reason for cancelling the commands? Though I tried changing this without success.
Somebody has an idea about what might be causing the timeouts? Can I configure those to be suitable for bigger objects?

Increase setRetryInterval timeout

Thanks, increasing it to 60000 did the trick :) Could you quickly tell me why this affects that particular case with "large" objects?

which objects size do you use? 3MB. network delay + serialization delay. Anyway it's hard to tell more precisely without deep investigation.

I meant more like what does the setRetryInterval really do? The JavaDoc states Time interval after which another one attempt to send Redis command will be executed. Does this mean that if the command is not successfully finished within this timeframe it will restart the command?
As for the sizes I have two scenarios: {1, 10, 100, 1000, 10000, 100000, 350000, 1000000, 2000000, 3000000, 10000000} bytes locally (1 MB upload speed to Redis) as well as directly from a m4.2xlarge EC2-instance directly. Both of these in single and batch mode. The local mode start to fail with ~2-3 MB single whereas the EC2 case fails with 10.000.000 batch mode. I perform this comparison b/c we are currently investigating a proper storage-backend for our system (Redis, Postgres, S3, DynamoDB). I can share some numbers if you like.

The JavaDoc states Time interval after which another one attempt to send Redis command will be executed.

A new attempt to send Redis command will be executed if it wasn't sent during retryInterval. I will fix this comment.

I perform this comparison b/c we are currently investigating a proper storage-backend for our system (Redis, Postgres, S3, DynamoDB). I can share some numbers if you like.

It would be nice to see

These tests where performed from an EC2-instance (m4.2xlarge) to Postgresql (m4.2xlarge /w PIOPS), Redis (cache.m3.xlarge), DynamoDB, and S3. As described above there were single and batch (if supported by the API x 10 objects) tests for reading and writing. The filename denotes the amount of bytes being written/read. Since we were interested in the overall performance, these numbers do include the serializing/deserializing time of the "object" being stored. Postgres => JPA, Redis => SeriazationCodec, DynamoDB => manual creation of Maps, S3 => Java Serialization. The object being stored is rather simple and consists of an String ID and byte-Array. The sample rate is n=60.

Thanks for the explanation of the retry-param.

Oh, it looks like scientific work. Great! Anyway, use FstCodec it's much faster than SeriazationCodec. Which Redisson version did you use?

The version for these tests is 2.2.11, I have also tried with the FST codec (as it sounded promising), though it doesn't run out of the box in our app-server (which is an OSGi server) due to class-path issues. I guess I need to ask the FST guys to add the "dynamic-import" (as I did for this project some time ago :-)).

According to your tests Postgres has same speed as Redis. Was it run with ramdisk?

No, we don't use ramdisk but Postgres has a significant amount of PIOPS. I think the main advantage of Postgres in that case is that the serialization via JPA works more efficient as the SerialiazionCodec used in the Redis case.

Technically, JPA only serialise the value of entity fields. It generates insert statements for new(detached) entity objects, and update statements for existing(attached) entity objects. These statements doesn't usually have all the schema information since they are already defined in the database. i.e. insert statements does not usually specify column names and update statements only mention changed fields.
On the other hand with any NoSQL schemaless DBMS, to "persist" a piece of information, you would usually have to specify the schema along with the value it represents. This is the trade off for being schemaless.
Since you really have to compare the performance between PostgreSQL to Redis, I'd make the test fairer by serialize the objects to byte[] first before send them to each database.


Compatibility with new OpenSearch's security-dashboards-plugin 2.11.1

Description
We need to ensure the UI compatibility with the next version of OpenSearch's security-dashboards-plugin v<IP_ADDRESS>.
This update is still being discussed, but we need to be aware of potential issues.
For that, we need to:

[x] Review OpenSearch's security-dashboards-plugin latest stable changelog.
[x] Identify improvements and potential impact on the UI.
[ ] Create new tracking and development branches.
[ ] Develop a testing environment to verify our components would work under this new build.

Issues

List here the detected issues

No changes from previous version
https://github.com/opensearch-project/security-dashboards-plugin/compare/<IP_ADDRESS>...<IP_ADDRESS>


Deterministic batch load create by object type

As a developer, when I want to use the batch load framework, I want my per row objects to save off in a deterministic order.
Add reference to a class constant or method SAVE_ORDER that is crossreferenced in create.

This exists at a global level now, instead of a row level.


[BindRequired] does very little when associated with a simple struct property

Noticed while investigating #4630.
Adding [BindRequired] to a struct property adds an error message ("A value for the 'SomeProperty' property was not provided.") to ModelState when users leave the field empty. But, Html.ValidationMessageFor() (or similar) almost never shows that error because the SimpleTypeModelBinder adds an error ("The value '' is invalid.") in the same case -- and does that first.
E.g. the [BindRequired] error message will only be visible for the following property if the submitted <form> contains no RequiredInt field.
[BindRequired]
public int RequiredInt { get; set; }

Probably need a way for ComplexTypeModelBinder to disable the SimpleTypeModelBinder error case. Or, need to update documentation to make it clear the same error is displayed for an empty struct value whether or not a [BindRequired] attribute is associated.
One exception to all of the above is a struct that lacks a conversion from string. SimpleTypeModelBinder won't handle that type. (KeyValuePairModelBinder or a custom model binder might handle it.)

There doesn't seem to be a case where this would happen in practice, is there? I.e. a browser would never send such a request because it always posts all values, even if they're empty.

We've said [BindRequired] is a suitable replacement for a [Required] attribute on a value type. I was looking for a way to make that advice correct.
Put another way, [BindRequired] on a value type changes nothing w.r.t. errors users see outside a debugger. I thought it should.
FYI MVC actually honours a [Required] attribute on a value type but only when generating attributes for client-side validation. The attribute remains irrelevant w.r.t. server-side validation. That is, the ErrorMessage is read but IsValid() never fails.


chore: Add floor_ofNat and ceil_ofNat

Also renames Nat.floor_coe to floor_natCast, leaving behind a deprecation.

bors r+


[tests] fix the wrong port of dtls

When running test scripts related with DTLS, we would get some exceptions. For example, test_coaps.py:
EXCEPTION: Could not find factory to build UDP payload.
Traceback (most recent call last):
  File "/usr/local/google/home/irvingcl/Documents/git/openthread/tests/scripts/thread-cert/sniffer.py", line 89, in _sniffer_main_loop
    messages = self._message_factory.create(io.BytesIO(data))
  File "/usr/local/google/home/irvingcl/Documents/git/openthread/tests/scripts/thread-cert/message.py", line 625, in create
    ipv6_packet = self._lowpan_parser.parse(lowpan_payload, message_info)
  File "/usr/local/google/home/irvingcl/Documents/git/openthread/tests/scripts/thread-cert/lowpan.py", line 1247, in parse
    return self._handle_iphc_header(data, message_info)
  File "/usr/local/google/home/irvingcl/Documents/git/openthread/tests/scripts/thread-cert/lowpan.py", line 1213, in _handle_iphc_header
    io.BytesIO(decompressed_data), message_info
  File "/usr/local/google/home/irvingcl/Documents/git/openthread/tests/scripts/thread-cert/ipv6.py", line 998, in parse
    data, next_header, message_info
  File "/usr/local/google/home/irvingcl/Documents/git/openthread/tests/scripts/thread-cert/ipv6.py", line 985, in _parse_upper_layer_protocol
    return factory.parse(data, message_info)
  File "/usr/local/google/home/irvingcl/Documents/git/openthread/tests/scripts/thread-cert/ipv6.py", line 1155, in parse
    payload = self._udp_payload_factory.parse(data, message_info)
  File "/usr/local/google/home/irvingcl/Documents/git/openthread/tests/scripts/thread-cert/ipv6.py", line 1129, in parse
    raise RuntimeError("Could not find factory to build UDP payload.")

I found that the problem is that the DTLS port in config.py is not correct, the actual port is defined in coap_secure.h as:
#define OT_DEFAULT_COAP_SECURE_PORT 5684 ///< Default CoAP Secure port, as specified in RFC 7252

@bukepo

Direct both port 1000 and 5684 to the factory now.


Fix setup.py and export public functions

This PR makes changes to allow a user to import this package from another environment. The following changes are made:

Modify setup.py to first allow the package smart_building_rating_calculator to be found when installing the package, and secondly adds install_requires so the dependencies of this package are installed when this package is installed.
exports the following to the public API of this package.

__all__ = [
    "sbr_score",
    "BatterySize",
    "EVChargerPower",
    "HeatingSource",
    "HotWaterSource",
    "SolarInverterSize",
]

fixes some relative import paths.

With these changes we can now use the package in the smart-building-rating-api

You also need to make the project locally installable for this to work. See:
https://github.com/OpenSynth-energy/OpenSynth/blob/aa4da4a2de0abc23d7f9b09b46719ace138679e8/Pipfile#L7

Interesting, why does this need to be added? I don't seem to need this to make it work locally, so just wondering what I'm missing here/what this step is adding?

Interesting, why does this need to be added? I don't seem to need this to make it work locally, so just wondering what I'm missing here/what this step is adding?

This makes sures that the your project is installed as per specified in your setup.py, and pipenv will make sure that your piplock file is compatible with what your setup.py as asking, to ensure consistency in your environments.
There are 2 types of users of your packages:

End users, who will be doing pipenv install your-package from Pypi. That file will be built as according to your setup.py. Completely independent of your pipfile/ piplock or any other virtual environment manager you're using (e.g. poetry)
Developers/ contributors, who will be cloning your repo and doing pipenv sync --dev which installs from your Pipfile.lock.

If you don't specify your local project as your dependency, your environment won't be consistent. For example in your setup.py you have install_requires = [pandas >= 2.2.2]. But locally you're using pandas==2.0.0, and specifically a version of pandas that works in 2.0.0 but no longer in 2.2.2.
If you do not list your project as a dependency in your Pipfile, Pipenv will not resolve this discrepancy, i.e.:

End users will be installing Pipenv = 2.2.2.
Other developers when they clone your repo and did pipenv sync --dev, they are installing from your Piplock.file (pandas=2.0.0) and develop with something that works on 2.0.0 but no longer on 2.2.2 what your end users have installed.

If you list your project as dependency in your Pipfile, Pipenv will resolve this discrepancy and automatically upgrade your Pipfile.lock to 2.2.2 (as specified in your setup.py). That way you can ensure that your Pipfile.lock is consistent with your setup.py.
This example is very simple as we're only talking about 1 dependency (Pandas). But in a large project, dependencies can very quickly become messy and you can easily end up in a situation where your setup.py isn't consistent with your Piplock.file. Making your project its own dependencies will resolve that.

This PR makes changes to allow a user to import this package from another environment. The following changes are made:

Modify setup.py to first allow the package smart_building_rating_calculator to be found when installing the package, and secondly adds install_requires so the dependencies of this package are installed when this package is installed.
exports the following to the public API of this package.

__all__ = [
    "sbr_score",
    "BatterySize",
    "EVChargerPower",
    "HeatingSource",
    "HotWaterSource",
    "SolarInverterSize",
]

fixes some relative import paths.

With these changes we can now use the package in the smart-building-rating-api

Could you please clarify something: say if I wanted to clone this repo and run the SBR calculation myself with given inputs, how can I do this with these changes made? If I try and run the python code in the README, for example, I get an error.


Golang: client should use a logger interface

Instead of using the stdlib log so that users of the client can log according to their specific process.

(it should probably just mock some subset of the log.Logger methods)


find query cannot search for string that contains forward slash "/"

I have a string value which is a unix path that has slash, i can set it in db, but cannot query it.
I have set Field(index=True, full_text_search=True).
Afaik, in sql, we can use the keyword LIKE or % escape to query it, how to do it with redis om in FindQuery?

Hello, I also have the same problem with redis-om v0.0.27.
Here is a code to reproduce the issue.
from aredis_om import JsonModel, Migrator, Field
import asyncio

class Test(JsonModel):
    name: str = Field(index=True)

async def main():
    await Migrator().run()

    foo = Test(name="/tmp/foo/bar")
    await foo.save()

    results = await Test.find(Test.name == "/tmp/foo/bar").all()
    # this will raise AssertionError
    assert len(results) > 0

asyncio.run(main())

I checked args in execute.
['ft.search', ':__main__.Test:index', '@name:{/tmp/foo/bar}', 'LIMIT', 0, 10]

I guess TokenEscaper should also escape /.
localhost:6379> ft.search :__main__.Test:index @name:{/tmp/foo/bar}
1) (integer) 0

localhost:6379> ft.search :__main__.Test:index @name:{\/tmp\/foo\/bar}
1) (integer) 1

Thanks @ninoseki @dvora-h


Test all python versions on macOS

There are some complicated dependencies, since some of the wheels are only available for certain operating systems and python versions (particularly kahypar).  So, I think to be safe we should test against all python versions on macOS.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>7
Details

0 of 0   changed or added relevant lines in 0 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.2%) to 95.231%

Files with Coverage Reduction
New Missed Lines
%

qiskit_addon_aqc_tensor/simulation/explicit_gradient.py
1
93.68%

Totals

Change from base Build<PHONE_NUMBER>4:
-0.2%

Covered Lines:
599

Relevant Lines:
629

💛  - Coveralls


refactor: remove dead code in test_should_return_evm_address_in_bytes32

Not used
https://github.com/kkrt-labs/kakarot/blob/f17bd946998dad55628e6e120023a2c885d47a82/tests/src/kakarot/precompiles/test_ec_recover.py#L58

can i work on this?

Dead code still here
https://github.com/kkrt-labs/kakarot/pull/1320/files#diff-7c2facec19237625de0e362cac7c844baedfcb3a64d3a79f6760fa8b7d4d5461R54


RPC ERROR: query returned more than 10000 results

I've had some commands work but for most of them I'm getting something like: RPC ERROR: query returned more than 10000 results or RPC ERROR: query timeout exceeded. I'm not sure if this has something to do with my RPC provider or ctc so help is appreciated
Commands:
$ ctc erc20 transfers 0x1f9840a85d5af5bf1d1762f925bdaddc4201f984
getting events from node, block range: [10861674, 16551277]
RPC ERROR: query returned more than 10000 results

$ POOL="0x94b0a3d511b6ecdb17ebf877278ab030acb0a878" && ctc uniswap swaps $POOL --export swaps.csv
getting events from node, block range: [12125707, 16551166]
RPC ERROR: query timeout exceeded

These restrictions are the RPC provider. They place these limits for rate limiting reasons.
You have a few options:

break the requests up and place an interruption in between the requests
Find another RPC provider with higher limits or request a limit increase
Sync a node yourself
Find alternative source of this data
use Google BigQuery, these events are already pre processed (your uniswap2 events) simply run sql query and save to storage in Google Cloud

If you need RPC access can arrange that using securerpc.com if you need it
Cheers