[WEB] [HTML] Opacity values in Rive don't work on the web with html renderer

NOTE: I filed this issue first on Rive, and it turned out the problem lies in the Flutter engine. Here is a reference to the original issue.
Steps to Reproduce
When a Rive animation has zero opacity elements (in my case, the opacity values are animating), they all render with 100% opacity.
Expected results:

Actual results:

Code sample
The original .riv and .rev files can be found on the original issue.
  SMITrigger? _relating;
  SMITrigger? _neutral;
  SMITrigger? _inspiration;
  SMITrigger? _laughing;

  void _onRiveInit(Artboard artboard) {
    StateMachineController? controller =
        StateMachineController.fromArtboard(artboard, 'State Machine');
    artboard.addController(controller!);
    _relating = controller.findInput<bool>('Relating') as SMITrigger;
    _neutral = controller.findInput<bool>('Neutral') as SMITrigger;
    _inspiration = controller.findInput<bool>('Inspiration') as SMITrigger;
    _laughing = controller.findInput<bool>('Laughing') as SMITrigger;
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        backgroundColor: Colors.black,
        appBar: AppBar(
          title: const Text('Test'),
        ),
        body: Center(
          child: Column(
              mainAxisAlignment: MainAxisAlignment.center,
              crossAxisAlignment: CrossAxisAlignment.center,
              children: <Widget>[
                SizedBox(
                  width: 200,
                  height: 174,
                  child: RiveAnimation.asset(
                    'assets/flutter1.riv',
                    onInit: _onRiveInit,
                  ),
                ),
                TextButton(
                  onPressed: () {
                    _relating!.fire();
                  },
                  child: const Text('Relating'),
                ),
                TextButton(
                  onPressed: () {
                    _neutral!.fire();
                  },
                  child: const Text('Neutral'),
                ),
                TextButton(
                  onPressed: () {
                    _inspiration!.fire();
                  },
                  child: const Text('Inspiration'),
                ),
                TextButton(
                  onPressed: () {
                    _laughing!.fire();
                  },
                  child: const Text('Laughing'),
                ),
              ]),
        ));
  }

Logs
flutter run --verbose:
I didn't find any logs between backticks.
flutter analyze:
No issues found! (ran in 1.5s)

flutter doctor -v
[✓] Flutter (Channel stable, 2.8.1, on macOS 12.1 21C52 darwin-x64, locale en-US)
    • Flutter version 2.8.1 at /Users/behnamsattar/tools/bin/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 77d935af4d (6 weeks ago), 2021-12-16 08:37:33 -0800
    • Engine revision 890a5fca2e
    • Dart version 2.15.1

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/behnamsattar/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)

[✓] VS Code (version 1.63.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.26.0

[✓] Connected device (1 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 97.0.4692.99

! Doctor found issues in 1 category.

I can reproduce this on stable and master.
It seems to only reproduce when using the html renderer. Canvaskit and all other platforms work just fine.
I have attached a project with the code sample and assets below.
Run flutter pub get to get the dependencies
Then run flutter run -d chrome --web-renderer html to reproduce the issue.

videos

canvaskit
html

flutter doctor -v
[✓] Flutter (Channel stable, 2.8.1, on macOS 11.6.2 20G314 darwin-arm, locale en-GB)
    • Flutter version 2.8.1 at /Users/nexus/dev/sdks/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 77d935af4d (6 weeks ago), 2021-12-16 08:37:33 -0800
    • Engine revision 890a5fca2e
    • Dart version 2.15.1

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/nexus/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[☠] IntelliJ IDEA Community Edition (the doctor check crashed)
    ✗ Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know about this issue at https://github.com/flutter/flutter/issues.
    ✗ FormatException: Unexpected extension byte (at offset 5)
    • #0      _Utf8Decoder.convertSingle (dart:convert-patch/convert_patch.dart:1789:7)
      #1      Utf8Decoder.convert (dart:convert/utf.dart:318:42)
      #2      InputStream.readString (package:archive/src/util/input_stream.dart:207:30)
      #3      new ZipDirectory.read (package:archive/src/zip/zip_directory.dart:40:30)
      #4      ZipDecoder.decodeBuffer (package:archive/src/zip_decoder.dart:19:30)
      #5      ZipDecoder.decodeBytes (package:archive/src/zip_decoder.dart:14:12)
      #6      IntelliJPlugins._findPluginXml (package:flutter_tools/src/intellij/intellij.dart:130:44)
      #7      IntelliJPlugins._readPackageVersion (package:flutter_tools/src/intellij/intellij.dart:141:40)
      #8      IntelliJPlugins.validatePackage (package:flutter_tools/src/intellij/intellij.dart:63:35)
      #9      IntelliJValidator.validate (package:flutter_tools/src/intellij/intellij_validator.dart:103:15)
      #10     asyncGuard.<anonymous closure> (package:flutter_tools/src/base/async_guard.dart:111:32)
      #11     asyncGuard.<anonymous closure> (package:flutter_tools/src/base/async_guard.dart:109:18)
      #12     _rootRun (dart:async/zone.dart:1428:13)
      #13     _CustomZone.run (dart:async/zone.dart:1328:19)
      #14     _runZoned (dart:async/zone.dart:1863:10)
      #15     runZonedGuarded (dart:async/zone.dart:1851:12)
      #16     runZoned (dart:async/zone.dart:1782:12)
      #17     asyncGuard (package:flutter_tools/src/base/async_guard.dart:109:3)
      #18     Doctor.startValidatorTasks (package:flutter_tools/src/doctor.dart:197:9)
      #19     Doctor.diagnose (package:flutter_tools/src/doctor.dart:301:47)
      #20     DoctorCommand.runCommand (package:flutter_tools/src/commands/doctor.dart:53:47)
      #21     FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1290:12)
      <asynchronous suspension>
      #22     FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1140:27)
      <asynchronous suspension>
      #23     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
      <asynchronous suspension>
      #24     CommandRunner.runCommand (package:args/command_runner.dart:209:13)
      <asynchronous suspension>
      #25     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:288:9)
      <asynchronous suspension>
      #26     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
      <asynchronous suspension>
      #27     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:236:5)
      <asynchronous suspension>
      #28     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
      <asynchronous suspension>
      #29     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
      <asynchronous suspension>
      #30     main (package:flutter_tools/executable.dart:94:3)
      <asynchronous suspension>

[✓] VS Code (version 1.63.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.32.0

[✓] Connected device (3 available)
    • iPhone 13 (mobile) • 7515F01A-C1B6-456E-8559-8D2383D3719D • ios            • com.apple.CoreSimulator.SimRuntime.iOS-15-0 (simulator)
    • macOS (desktop)    • macos                                • darwin-arm64   • macOS 11.6.2 20G314 darwin-arm
    • Chrome (web)       • chrome                               • web-javascript • Google Chrome 97.0.4692.99

! Doctor found issues in 1 category.

[✓] Flutter (Channel master, 2.9.0-1.0.pre.504, on macOS 11.6.2 20G314 darwin-arm, locale en-GB)
    • Flutter version 2.9.0-1.0.pre.504 at /Users/nexus/dev/sdks/flutters
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 94d9b02deb (3 hours ago), 2022-01-25 22:00:07 -0600
    • Engine revision 54e1f3f4bb
    • Dart version 2.17.0 (build 2.17.0-54.0.dev)
    • DevTools version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/nexus/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[✓] IntelliJ IDEA Community Edition (version 2021.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin version 213.5744.122

[✓] VS Code (version 1.63.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.32.0

[✓] Connected device (3 available)
    • iPhone 13 (mobile) • 7515F01A-C1B6-456E-8559-8D2383D3719D • ios            • com.apple.CoreSimulator.SimRuntime.iOS-15-0 (simulator)
    • macOS (desktop)    • macos                                • darwin-arm64   • macOS 11.6.2 20G314 darwin-arm
    • Chrome (web)       • chrome                               • web-javascript • Google Chrome 97.0.4692.99

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

it.zip

Our HTML renderer is not capable for reproducing all graphics features of Skia. An alternative is to use Rive's official web player in a platform view, or to switch to CanvasKit.

Our HTML renderer is not capable for reproducing all graphics features of Skia. An alternative is to use Rive's official web player in a platform view, or to switch to CanvasKit.

Using HTML it breaks the shape of the rive animation on Flutter Web, making it sharp, similar to what is happening here , do we know any workaround here?


fix for windows path

This should close #16. Someone would have to test it on Windows first.

Legitimately have no idea


Scrollback

Most terminal emulators have native scrollback.
I'm thinking of using blessed for my terminal application, just so that command input can happen at the bottom of the screen despite logs (requests, etc..) being printed at the same time.
But, I don't want to use a scrollable container, which you won't be able to use once the application ends. I simply want to have a widget (text input) at the very bottom of the screen, and log output just pushes it down rather than just affecting some portion of the current screen area.
Is this supported or possible in any way?

I would have two boxes, on at the top (big one, height: 90%) and a small one at the bottom of 3 rows height, both 100% width. Push all the logs to the first one and place the input text box in the bottom one. Didn't quite follow why can't you use scrollable container though. (the big box for the logs should be scrollable in my proposal).

@cancerberoSgx if you stop the app (i.e. quit, process.exit, ctrl+C) and scroll up, you will not see the previous logs that were off-screen when the app stopped.
I'm not talking about scrolling the logs in-app.


texlive.bin.core: patch ttfdump buffer overflow, CVE 2024-25262

Description of changes
Some context at https://github.com/TeX-Live/texlive-source/pull/63
The patch itself is one line.
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[X] x86_64-darwin
[ ] aarch64-darwin

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[X] Fits CONTRIBUTING.md.

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

@GrahamcOfBorg build tests.texlive

a few packages (eg. python3.11-biopython-1.83) seem to fail to build after this, unsure if they were already failing before.

also, shouldn't this be backported?

a few packages (eg. python3.11-biopython-1.83) seem to fail to build after this, unsure if they were already failing before.

Most likely already broken, that's quite usual with python packages.

also, shouldn't this be backported?

Probably yes! I think the ttfdump sources haven't changed in ages. If the patch applies cleanly, we should be good.


Made OCM optional and temporarily disabled

I think we should extend this functionality project-wise, for example in cs3_user_api:find_user_by_query we also try to use ocm

You also try OCM when searching for a users, but you only if it's enabled. I was expecting this PR to fix all those cases (the web part, maybe can come in a 2nd PR).

You can also try OCM when searching for a users, but you only if it's enabled. I was expecting this PR to fix all those cases (the web part, maybe can come in a 2nd PR).

I updated the PR. What do you mean by web part ?

@mateusz-garlacz when you removed the ocm handlers you forgot to remove the import and LGTM is now complaining. (and thanks for removing the handlers, now we really have a unified api!)

Ah sorry, my bad. Now I made lgtm happy


Configure widget does not persist parameters after applying filters

🐛 Current behavior
When adding facetFilters to the Configure widget to show hits only for specific category everything seems to work fine. But if then you apply any filter from the RefinementList then hits from different categories appear.
🔍 Steps to reproduce

Go to this sandbox;
At /app/components/Search.tsx line 92 you can see the Configure widget with facetFilters passed. facetFilters comes from /app/routes/category/$slug.tsx where for this case I hardcoded one category;
Start the app and click on Click to check out speakers! or navigate to /category/speakers;
On the /category/speakers page you can see hits with the text Does hit categories include Speakers (/app/components/Search.tsx line 51). On initial load, all hits say that they include the category Speakers;
Now press on the left side the RefinementList SpeakerCraft option. See that some of the hits now say that they do not include the category Speakers;

Live reproduction
https://codesandbox.io/p/github/dziugas-liaudinskas/algolia-example/master?file=%2FREADME.md
💭 Expected behavior
As it says in docs, Configure should forward search parameters to Algolia. I think it would make sense if those parameters would persist after some filters are applied
Package version
instantsearch.js 4.51.1, react-instantsearch-hooks-web 6.40.1, algoliasearch 4.14.3
Operating system
No response
Browser
No response
Code of Conduct

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

Hello @dziugas-liaudinskas!
The <RefinementList> widget is already using the facetFilters parameter behind the scenes.
So the facetFilters parameter you pass to the <Configure> widget is overwritten when you refine an item in the <RefinementList> widget.
What you can do is using the filters parameter instead in the <Configure> widget, so both facetFilters and filters parameters are combined with an AND operator: https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/in-depth/filters-and-facetfilters/#combining-filters-and-facetfilters-within-the-same-search
Here is a fork of your Sandbox using the filters parameter: https://codesandbox.io/p/github/dziugas-liaudinskas/algolia-example/csb-4i5m2j/draft/youthful-lewin?file=/app/components/Search.tsx
Hope that helps!


Setup linters for project

What does this PR do?
This PR sets up eslinter and Houndci for project.
Description of Task to be completed?
Task enables checking of Airbnb ES6 style violation on command line and HoundCI comment on PR
How should this be manually tested?
To manually test this, run the following command :
git clone https://github.com/andela-iamao/inverted-index.git
cd inverted-index
npm install
./node_modules/.bin/eslint dist/js/eslint.test.js

Any background context you want to provide?
N/A
What are the relevant pivotal tracker stories?
Set up eslint
Screenshots

Screenshot 1

Screenshot 2

Screenshot 3

Screenshot 4
Questions:
N/A

Excellent setup. Good use of screenshots to describe PR.


no permission to access /data/anr, can't pull log file

how to get anr file

added the if logic to determine the pull error to get the bugreport, not sure that's a good way to get trace file.
    def pull_log_files(self):         if self.config_dic["phone_log_path"]:             for src_path in self.config_dic["phone_log_path"]:                 if "error" in self.device.adb.pull_file(src_path, RuntimeData.package_save_path):                     self.device.adb.bugreport(save_path=RuntimeData.package_save_path)


Question regarding tokenization

Thank you for open-sourcing this project.
According to the paper, only sketch images are tokenized by Conv2D to increase receptive field.
From sa.py, the following line seems to tokenize images and sketches in similar way,
https://github.com/buptLinfy/ZSE-SBIR/blob/e78ee1e0e4ce97e64b0fecb609419466c6f30e50/model/sa.py#L157
Am I missing something obvious?

Learnable Tokenization没开放吧

Thank you for following our research and asking questions!
According to the paper,  our network performs best when using learnable tokenizer only on sketches. But for much easier understanding and implementation, sketches and images pass through the same learnable tokenizer in our public code.


Inline generated code has whitespace on empty lines

After https://github.com/krzysztofzablocki/Sourcery/pull/731, the inline generated code contains whitespace in the same number as the // sourcery annotation on lines that should be empty.
This is a problem for us because we use SwiftLint to validate that there're no trailing whitespaces in the source code.
We removed the empty line to workaround the issue in our case, but it'd be good to fix this.

@Liquidsoul can we have a new release with this fix?

I'll see if I can release a 0.16.1 with this fix by the end of the week (if @krzysztofzablocki is ok with that of course 😉 )


Port changes of [#13516] to branch-2.5

Added more comprehensive testing
Correct client side File Info
Have the pinning status of a directory propagated to the files

pr-link: Alluxio/alluxio#13516
change-id: cid-3ba56eedf8b0ff36c891127761c7aefce7be09b9

please include the change id for this manual cp:
pr-link: Alluxio/alluxio#13516
change-id: cid-3ba56eedf8b0ff36c891127761c7aefce7be09b9

Codecov Report

:exclamation: No coverage uploaded for pull request base (branch-2.5@4f859fa). Click here to learn what that means.
The diff coverage is n/a.

@@              Coverage Diff              @@
##             branch-2.5   #13675   +/-   ##
=============================================
  Coverage              ?   16.91%
  Complexity            ?     2554
=============================================
  Files                 ?     1344
  Lines                 ?    77710
  Branches              ?     9482
=============================================
  Hits                  ?    13147
  Misses                ?    63399
  Partials              ?     1164

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 4f859fa...8186be9. Read the comment docs.

alluxio-bot, merge this please


GrepperOperator isn't picking up g:grepper changes

I've noticed that I'm not getting any results when using the GrepperOperator. However when I hit <c-f> at the prompt, I can see that the query is -- 'provider'. When I type that manually, it works no problem. This appeared because I have turned on symlink following for rg by doing:
runtime plugin/grepper.vim

let g:grepper.rg.grepprg = 'rg -H -L --no-heading --vimgrep'

Ah, because I do runtime first, I am responsible for copying around clones of the flags (e.g. for operator). I've switched to doing g:grepper = {} strategy.


Different response return when caching is enabled

Hi,
I have an angular js application that i'm using http-backend-proxy to try to mock the backend.  It is using an angular cache factory (DSCacheFactory).  When i disable the caching, everything works fine.  When the cache is enabled, the format of the response being returned is different from the first call to the second call.  In my tests, the initial page loads containing a list of messages.  The messages are what I mocked and on the initial load they load fine.  I go to another page (settings) then go back to the messages back and it fails.  It fails because the data retrieved is now in a different format.
I added console statements to debug which shows the difference in the data:
On initial load:

On second attempt:

Since there is no messages array in the second attempt, it fails.
Does anyone know why this is occurring or how to fix?
Thanks!

Sorry for the delay.  At first glance, this does not seem like an issue with the proxy.  However, I would need a working example in order to be able to dig into it further.

Thanks, I'm not sure if I will be able to break down our project code enough to come up with an example but i will see what i can come up with!

@rfodge, did you ever resolve this issue?  Can it be closed or should it be left open?

Hi,
I didn't resolve.  We disabled the cache in our tests to get around it.  I am unable to come up with an example for you though so if you want to close and reopen if someone else encounters it, that works for me. Thanks -


bug: Surreal 2.0 syntax tracking issue & other issues

Did you check existing issues?

[X] I have read all the tree-sitter docs if it relates to using the parser
[X] I have searched the existing issues of tree-sitter-surrealql

Describe the bug

[ ] DEFINE INDEX OVERWRITE overwrite syntax
[ ] DEFINE TABLE OVERWRITE overwrite syntax
[ ] DEFINE FIELD OVERWRITE overwrite syntax
[ ] DEFINE ACCESS database access statement
[ ] Typed Literals on DEFINE FIELD abc ON foo TYPE {literal_type}

[ ] Object literals
[ ] Array literals
[ ] String literals
[ ] Duration literals
[ ] uuid literals
[ ] Nested literals (eg: array<"foo"> or array<{ baz: "foo" }>)

[ ] UPSERT statement

Not 2.0 related:

[ ] CONTAINS keyword within conditional expressions

DEFINE TABLE OVERWRITE user SCHEMAFULL
    PERMISSIONS
        FOR SELECT
            WHERE id = $auth
            OR ->member->organisation<-member<-user CONTAINS $auth

Hey 👋🏻
Thanks for opening an issue. As this project is a work in progress there are many aspects of SurQL missing. Feel free to open a PR. If not, I'll keep this in mind the next time I'm free to work on it 🙂

@Ce11an no problem, I may create a PR for it at some stage when I get the time.


Continued use of "AzureAD" mixed with "Entra" is confusing

The continued use of "AzureAD" in documentation, comments, and function names is confusing.
Is some of this code a fork from the AzureAD module?
Is there a plan to replace all instances of the string "AzureAD" with "Entra" or "EntraID" in this repo? I would humbly suggest that change be completed before leaving private preview.

Work completed.


[FEATURE] Add Frontend roadmap to readme format

Description
Convert the frontend roadmap on CC website to a markdown format in the frontend folder. Add it to a file called roadmap.md
Example:
#Frontend Roadmap
## Step one
- Resource 1
- Resource 2

Screenshots
No response
Additional information
No response

Hey, I wanted to work on this issue

Hey @vasucp1207 feel free to work on it. I've assigned this one, and the frontend one to you

Thanks @siddhant-khisty.

Hey , i am really excited to work on this issue please assign me this.

Hey @Purva2803, this issue has been fixed. I guess it was not linked to the PR. Feel free to work on one of the other roadmap issues.

Yes it's not merged, i will work on other issues
.


Write a Haskell program to convert days to hours

Description
Write a Haskell program to convert days to hours
1 day = 24 hours
Input  : 5
Output : 120

How to contribute

Save the solution in program/convert_days_to_hours.hs file
Add convert_days_to_hours.hs file in convert-days-to-hours folder

!assign


Error on utils.js:2380 and inability to edit messages

undefined variables on read receipt function

let me see


Children routes triggering Vite log error: '[vite] Pre-transform error: Failed to load url'

Command
serve
Is this a regression?

[x] Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was
19.0.0-next.1
Description:
Created new Angular standard SSR project (without the developer preview features) with 19.0.2 CLI about two weeks ago. But I only started to develop its features and routes today. Then I found this minor bug: when my path is redirected to a child route or when I refresh the child route's webpage, I keep getting vite log erros in my VSCode terminal (check 'Exception or Error' section further down).

This won't happen with routes that are notnested (that are not child or grandchild routes). I also tested without lazy-loading the children routes, and the problem persists. Another thing: the error also appears even if the route is not nested through the children or loadChildren properties, but simply by its path string, for example:
export const appRoutes: Routes = [
  {
    path: 'user/profile',
    pathMatch: 'full',
    component: ProfileComponent
  },
];

Nonetheless, the application seems to work normally, but I couldn't test a lot since there is not a lot of features yet in my application. If I run ng build and run the SSR default script node dist/{project-name}/server/server.mjs, there are no error logs at all.
One thing that is interesting to mention is that if you look into my code, my application is set to redirect the root path to the authentication module, which has its own <router-outlet />, and then the module redirects the user to the 'authentication/login'. So, when I run ng serve and access http://localhost:4200, I go directly to the mentioned login route and page, and I see the Vite error log. But, if I remove the root route redirect to 'authentication' and create a navbar inside app.component.html with a routerLink property that targets the child route 'authentication/login', the first time the page is rendered, I see no error log, but if I refresh the page, Vite logs it in the console.
My Code:
src/app/app.routes.ts
import { Routes } from '@angular/router';

export const appRoutes: Routes = [
  {
    path: '',
    pathMatch: 'full',
    redirectTo: 'authentication',
  },
  {
    path: 'authentication',
    loadChildren: () =>
      import('./features/auth/presentation/shell/auth-shell.routes').then(
        (m) => m.authRoutes
      ),
  },
];

src\app\features\auth\presentation\shell\auth-shell.routes.ts
import { Routes } from '@angular/router';

import { makeBrowserPageTitle } from '@shared/presentation/utils/make-browser-page-title';

import { AuthLoginPageComponent } from '../pages/login/auth-login-page.component';

import { AuthShellComponent } from './auth-shell.component';

export const authRoutes: Routes = [
  {
    path: '',
    component: AuthShellComponent,
    children: [
      {
        path: '',
        pathMatch: 'full',
        redirectTo: 'login',
      },
      {
        path: 'login',
        pathMatch: 'full',
        component: AuthLoginPageComponent,
        title: makeBrowserPageTitle({ beginningText: 'Login' }),
      },
    ],
  },
];

angular.json
{
  "$schema"<EMAIL_ADDRESS>  "version": 1,
  "newProjectRoot": "projects",
  "projects": {
    "{project-name}": {
      "projectType": "application",
      "schematics": {
        "@schematics/angular:component": {
          "style": "scss"
        }
      },
      "root": "",
      "sourceRoot": "src",
      "prefix": "app",
      "architect": {
        "build": {
          "builder": "@angular-devkit/build-angular:application",
          "options": {
            "outputPath": "dist/{project-name}",
            "index": "src/index.html",
            "browser": "src/main.ts",
            "polyfills": ["zone.js"],
            "tsConfig": "tsconfig.app.json",
            "inlineStyleLanguage": "scss",
            "assets": [
              {
                "glob": "**/*",
                "input": "public"
              }
            ],
            "styles": ["src/styles.scss"],
            "stylePreprocessorOptions": {
              "includePaths": ["src/app/resources/scss/partials"]
            },
            "scripts": [],
            "server": "src/main.server.ts",
            "prerender": true,
            "ssr": {
              "entry": "src/server.ts"
            }
          },
          "configurations": {
            "production": {
              "budgets": [
                {
                  "type": "initial",
                  "maximumWarning": "500kB",
                  "maximumError": "1MB"
                },
                {
                  "type": "anyComponentStyle",
                  "maximumWarning": "4kB",
                  "maximumError": "8kB"
                }
              ],
              "outputHashing": "all"
            },
            "development": {
              "optimization": false,
              "extractLicenses": false,
              "sourceMap": true,
              "fileReplacements": [
                {
                  "replace": "src/environments/environment.ts",
                  "with": "src/environments/environment.development.ts"
                }
              ]
            }
          },
          "defaultConfiguration": "production"
        },
        "serve": {
          "builder": "@angular-devkit/build-angular:dev-server",
          "configurations": {
            "production": {
              "buildTarget": "{project-name}:build:production"
            },
            "development": {
              "buildTarget": "{project-name}:build:development"
            }
          },
          "defaultConfiguration": "development"
        },
        "extract-i18n": {
          "builder": "@angular-devkit/build-angular:extract-i18n"
        },
        "test": {
          "builder": "@angular-devkit/build-angular:karma",
          "options": {
            "polyfills": ["zone.js", "zone.js/testing"],
            "tsConfig": "tsconfig.spec.json",
            "inlineStyleLanguage": "scss",
            "assets": [
              {
                "glob": "**/*",
                "input": "public"
              }
            ],
            "styles": ["src/styles.scss"],
            "scripts": []
          }
        },
        "lint": {
          "builder": "@angular-eslint/builder:lint",
          "options": {
            "lintFilePatterns": ["src/**/*.ts", "src/**/*.html"]
          }
        }
      }
    }
  },
  "cli": {
    "schematicCollections": ["angular-eslint"]
  }
}

Minimal Reproduction
I created a repository that replicates the problem: ng-19.0.2-vite-pre-transformer-error. Git clone the repo to your machine and run the commands:
*Make sure you have Node 22, Angular CLI 19 and pnpm 9 installed):
pnpm install

ng serve

Then, access http://localhost:4200 in your browser and navigate through the links on the top left of screen while watching your running terminal.
Exception or Error
19:32:36 [vite] Pre-transform error: Failed to load url /authentication/polyfills.js (resolved id: /authentication/polyfills.js). Does the file exist?
19:32:36 [vite] Pre-transform error: Failed to load url /authentication/main.js (resolved id: /authentication/main.js). Does the file exist?

Previous mentions of similar bugs and their PRs with fixes:
a)

Issue #28442
PR #28463

b)

Issue #26897
PR #26913

@alan-agius4 will this fix it when prerender is true and ssr is false as well?

Yes


New CLI prevents user from opening failed test report by clicking link

Expected Behavior
User can click on link. The browser automatically opens and renders failed test report.
Current Behavior
Hand icon shows up but clicking the link does not result in browser being opened.
There's also some overlapping output from previous rendering of IDLE:
* What went wrong:
Execution failed for task ':jacoco:integTest'.
> There were failing tests. See the report at: file:///Users/bmuschko/dev/projects/gradle/subprojects/jacoco/build/reports/integTest/index.htmlDLE

This has been fixed with commit https://github.com/gradle/gradle/commit/826f3d11165e36c5a165c161a5238801ab572d03. I will close this now. Reopen if the issue is still present.


How to separate AppMetrica activationby the app itself and the 3rd party SDK?

📚 AppMetrica SDK Version
5.2.0
🛠 Xcode Version
Version 15.3 (15E204a)
📱 Device Information
iPhone 14 Pro, iOS 17.4.1
⚙ Installation Method
CocoaPods
📝 Description
I've used AppMetrica old version i.e. YandexMobileMetrica and it works.
After updating to AppMetrica 5.2.0 the app start crashes because of 3rd party sdk Yookassa uses AppMetrica too for themselves and activates AppMetrica too:
https://git.yoomoney.ru/projects/SDK/repos/yookassa-payments-swift/browse/YooKassaPayments.podspec
https://git.yoomoney.ru/projects/SDK/repos/yookassa-payments-swift/browse/YooKassaPayments/Private/Services/Analytics/CommonTracker.swift
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Failed to activate AppMetrica; AppMetrica has already been started'
How to handle such situation? Can the activation of the AppMetrica SDK be separated?
🔍 Reproducing the issue

Add AppMetrica to the app dependency with Cocoapods.
Use the other dependency SDK which also uses AppMetrica
Active AppMetrica on app launch
Call 3rd party sdk method which also activates AppMetrica

📋 Relevant AppMetrica Log Output or Crash Logs

Expand to view logs

// Your logs go here

📦 Attach Package.resolved (Swift Package Manager Users)

Click to expand Package.resolved

// Replace with your Package.resolved contents

🍫 Attach Podfile.lock (CocoaPods Users)

Click to expand Podfile.lock

...
- YooKassaPayments (6.16.0):
    - AppMetricaAnalytics (~> 5.2.0)
    - MoneyAuth (~> 10.13.0)
    - SPaySDK (~> 1.0.8)
    - YooKassaPaymentsApi (~> 2.22.0)
    - YooKassaWalletApi (~> 2.6.0)
    - YooMoneyCoreApi (~> 3.1)
    - YooMoneySessionProfiler (~> 5.0.4)
    - YooMoneyUI (~> 7.7)
...
- AppMetrica_FMDB (5.2.0)
  - AppMetrica_Protobuf (5.2.0)
  - AppMetricaAdSupport (5.2.0):
    - AppMetricaCore (= 5.2.0)
    - AppMetricaCoreExtension (= 5.2.0)
  - AppMetricaAnalytics (5.2.0):
    - AppMetricaAdSupport (= 5.2.0)
    - AppMetricaCore (= 5.2.0)
    - AppMetricaCrashes (= 5.2.0)
    - AppMetricaWebKit (= 5.2.0)
  - AppMetricaCore (5.2.0):
    - AppMetrica_FMDB (= 5.2.0)
    - AppMetrica_Protobuf (= 5.2.0)
    - AppMetricaCoreUtils (= 5.2.0)
    - AppMetricaEncodingUtils (= 5.2.0)
    - AppMetricaHostState (= 5.2.0)
    - AppMetricaLog (= 5.2.0)
    - AppMetricaNetwork (= 5.2.0)
    - AppMetricaPlatform (= 5.2.0)
    - AppMetricaProtobufUtils (= 5.2.0)
    - AppMetricaStorageUtils (= 5.2.0)
  - AppMetricaCoreExtension (5.2.0):
    - AppMetricaCore (= 5.2.0)
    - AppMetricaStorageUtils (= 5.2.0)
  - AppMetricaCoreUtils (5.2.0):
    - AppMetricaLog (= 5.2.0)
  - AppMetricaCrashes (5.2.0):
    - AppMetricaCore (= 5.2.0)
    - AppMetricaCoreExtension (= 5.2.0)
    - AppMetricaCoreUtils (= 5.2.0)
    - AppMetricaEncodingUtils (= 5.2.0)
    - AppMetricaHostState (= 5.2.0)
    - AppMetricaLog (= 5.2.0)
    - AppMetricaPlatform (= 5.2.0)
    - AppMetricaProtobufUtils (= 5.2.0)
    - AppMetricaStorageUtils (= 5.2.0)
    - KSCrash/Recording (= 1.17.0)
    - KSCrash/Recording/Tools
  - AppMetricaEncodingUtils (5.2.0):
    - AppMetricaCoreUtils (= 5.2.0)
    - AppMetricaLog (= 5.2.0)
    - AppMetricaPlatform (= 5.2.0)
  - AppMetricaHostState (5.2.0):
    - AppMetricaCoreUtils (= 5.2.0)
    - AppMetricaLog (= 5.2.0)
  - AppMetricaLog (5.2.0)
  - AppMetricaNetwork (5.2.0):
    - AppMetricaCoreUtils (= 5.2.0)
    - AppMetricaLog (= 5.2.0)
    - AppMetricaPlatform (= 5.2.0)
  - AppMetricaPlatform (5.2.0):
    - AppMetricaCoreUtils (= 5.2.0)
    - AppMetricaLog (= 5.2.0)
  - AppMetricaProtobufUtils (5.2.0):
    - AppMetrica_Protobuf (= 5.2.0)
  - AppMetricaStorageUtils (5.2.0):
    - AppMetricaCoreUtils (= 5.2.0)
    - AppMetricaLog (= 5.2.0)
  - AppMetricaWebKit (5.2.0):
    - AppMetricaCore (= 5.2.0)
    - AppMetricaCoreUtils (= 5.2.0)
    - AppMetricaLog (= 5.2.0)
...

Hey there! It seems like you're facing a classic conflict when multiple SDKs try to activate AppMetrica simultaneously. Normally, third-party SDKs should avoid activating the main AppMetrica SDK and should use reporters instead. This approach prevents the SDKs from clashing over activation and allows each to send data independently without interference.
Here are a couple of steps you can take:

Reach Out to YooKassa: Suggest that they switch to using AppMetrica's reporter mechanism. This change will allow them to send analytics data using your app's main AppMetrica activation without trying to activate it themselves.

Use Reporters in Your App: If modifying YooKassa's SDK isn't an option, you can adapt your application to utilize reporters for sending data to AppMetrica. This way, your app can avoid the initialization conflict and continue to operate smoothly. It's important to note, however, that using reporters doesn't include some features like session tracking, crash-report analytics, etc., as these require the SDK to be initialized directly.

https://github.com/appmetrica/appmetrica-sdk-ios/blob/766808009096e0e6f0648fbaf1b5460508b6c3ae/AppMetricaCore/Sources/include/AppMetricaCore/AMAAppMetrica.h#L256-L274
This should help you manage multiple data streams without the crash issue. Good luck!

@GLinnik21 Thanks! At least I have options to handle this now.
It would be useful to add this information to the site's documentation or troubleshooting section, because that was the first place I searched.
Also, I don't think YooKassa did it intentionally. It could be a good idea to add a separate section for SDK developers and describe how to use AppMetrica without clashing with the host app's AppMetrica activation.
Thanks again for your quick and thoughtful response!


Why the output test image shrink

when i ran the sentence python main.py --is_train False --stride 21, i find that the output shrink from 256256 to 231231, any idea why the heck this happen ?

s


RDMA Server Exits Abruptly

I've synthesized the design and ran the hardware on AU-250. It works properly and shows me that I have RDMA Enabled 1 in the dmesg logs and provides me with a MAC and IP.
When I try and run the rdma_server application, the application gives the following output and exits abruptly.
I'm assuming that the device and vfid is the number thats listed in ls -la /dev/fpga_{d}_v{i}. I use the following command to run the rdma_server
./bin/test -d 0 -i 0

which gives the output
Forking...

Has anyone face anything similar, or is there a bug that needs to be addressed?

It is normal that the server forks and runs in the background. Can you not see it running in htop afterwards?

It shows up in htop. However, it doesn't generate any logs. I'm assuming it is supposed to generate a log, something similar to what is shown https://github.com/fpgasystems/Coyote/issues/33.
I see that you've updated the documentation for RDMA, which says that I'd need to have FPGAs on both ends.
I am trying to ping between a Mellanox Connect-X6 and RoCE Implementation of Coyote. Is that supported?

I have also set up the alternative branch coyote-v1 on my systems. In that branch, the program is killed during the execution of the function ibvQpMap::addQpair and SIGKILL is returned. I've also been debugging it, and it appears to be the problem somewhere at ibvQpMap.cpp:30.

ibvQpMAp.cpp:30 problem was due to HUGE_PAGES. It can be solved by setting the huge pages with this command.
echo 1024 > /proc/sys/vm/nr_hugepages #The Number of Huge Pages Go In This File

Hi,
Thank you for your support. I was able to generate the traffic and receive it on the other end.


[BUG] readme does not display anything after using 3.4.4

OS:
windows11
Extension Version:
3.4.4

After updating to 3.4.4, viewing any readme will not be displayed.
I don't know much about how vscode plugins work, so I can't provide an error report. But if you can guide me, I have my full support.

Yes, I just encountered the same problem. Restarting vscode couldn't solve it, but it was all fine just an hour ago.

Yes, I just encountered the same problem. Restarting vscode couldn't solve it, but it was all fine just an hour ago.

In Plugin-Enabled, right click on plugin, you can find a "choose specific version", roll back to 3.4.3, this version can work

I have tried opening other supported file types, including PDF, CSV, XLSX, and DOCX, but none of them can be opened. It seems there is an issue with the page rendering, as no interface can be accessed.

我尝试了其他支持的文件，包括pdf,csv,xlsx,docx，都无法打开，似乎是页面渲染出了问题，无法打开任何界面。
我猜是某一个通用的代码坏了，所有支持的文件都无法打开了，页面一直在加载。

I've run into the same problem after updating to version 3.4.4.

OS:
windows11
Extension Version:
3.4.4

After updating to 3.4.4, viewing any readme will not be displayed. I don't know much about how vscode plugins work, so I can't provide an error report. But if you can guide me, I have my full support.

Same problem. After re-install 3.4.3,  it's working.

In Plugin-Enabled, right click on plugin, you can find a "choose specific version", roll back to 3.4.3, this version can work

牛的
W！

Exactly the same issue += 1.

The current issue encountered the same problem:
https://github.com/cweijan/vscode-office/issues/376
https://github.com/cweijan/vscode-office/issues/374
https://github.com/cweijan/vscode-office/issues/373
https://github.com/cweijan/vscode-office/issues/372
This is due to the 3.4.4 update, falling back to 3.4.3 avoids this issue for now. But I think the maintainer should start investigating the cause as soon as possible.It could be an error caused by a change in a key dependency item.
By comparing the file differences between 3.4.3 and 3.4.4, I think we should focus on the following files:
https://github.com/cweijan/vscode-office/blob/7aabca97eac3dd2c4666fd59a7c0c59715701ae3/package.json#L627-L658

Part of the difference may be due to the accompanying dependency file changes, the source of which is not found in the source code.
Does anyone have any comment on that? I don't know about javasprint development

Fixed in version 3.4.5.


Release a new version, v1.4.2

Why is it needed:
There is some changes that aren't released.
https://github.com/rakutentech/passenger-go-exporter/compare/v1.4.1...d0faaf6da74a79b06f86e62264f31c18f80fe68f

https://github.com/rakutentech/passenger-go-exporter/issues/33
https://github.com/rakutentech/passenger-go-exporter/pull/32

I'm planning to release after Jan, 2023.

I'm thinking that release will be done around March.


Flatlist scroll gets slow after going back from other screen

Flatlist scroll gets slow after going back from other screen.
After I went to the right buttom tab screen which just got data from state managed by redux, the home screen couldn't scroll as before.
Any ideas? Thanks in advance.

Closed as invalid (not following the issue template)


Fix cuda half2 cast

test/test_dtype.py TestHalfDtype::test_half_upcast_ops fails on a real CUDA (I used a v100 from google colab, but i think this is universally true). The error is:
kernel.cu(12): error: no suitable user-defined conversion from "half2" to "float2" exists

because in this AST Tensor([[1,2],[3,2]], dtype=dtypes.half)@Tensor.eye(2, dtype=dtypes.float32
the tensor has elements of len 2 the dtype defaults to half2. I couldn't find a one-liner flag to disable this optimization (i suspect there's some pycuda thing for it when we create the CUDA buffer in the first place?)
This one fixes it at the renderer level by using __half2float and destructing the half2 to half
Kernel diff for the ast above:
__global__ void r_2_2_2(float* data0, const half* data1) {
  int lidx0 = threadIdx.x; /* 2 */
  float2 acc0 = make_float2(0.0f,0.0f);
- float2 val0 = (float2)(*((half2*)(data1+lidx0*2)));
+ float2 val0 = make_float2(__half2float(((half2*)(data1+lidx0*2))->x), __half2float(((half2*)(data1+lidx0*2))->y));;
  (acc0).x = (((val0).x*1.0f)+(acc0).x);
  (acc0).y = (((val0).x*0.0f)+(acc0).y);
  (acc0).x = (((val0).y*0.0f)+(acc0).x);
  (acc0).y = (((val0).y*1.0f)+(acc0).y);
  *((float2*)(data0+lidx0*2)) = (float2)make_float2((acc0).x,(acc0).y);
}

WIP:
make fp16->fp16 work too. This should be done in render_store

uh ok this is sorta painful - I found out CI could have actually caught this, but the way the assertion in test_dtype is setup makes it so that it gets ignored.
I suspect it's because of this error
https://github.com/tinygrad/tinygrad/actions/runs/6678878955/job/18150391985?pr=2161#step:16:54
could we do an if CI here to not throw this error somehow?
Because the exception not only passes that expected error but also actual kernel compilation problems. The full err is:
pycuda.driver.CompileError: nvcc compilation of /tmp/tmpf1wmci4_/kernel.cu failed
[command: nvcc --ptx -Wno-deprecated-gpu-targets -arch sm_35 -I/usr/local/lib/python3.10/dist-packages/pycuda/cuda kernel.cu]
[stderr:
kernel.cu(4): error: name must be a namespace name

kernel.cu(14): error: no suitable user-defined conversion from "half2" to "float2" exists


build: use node v14 for semrel

PR summary
This PR updates the travis build to use node v14 to accommodate the latest version of semantic-release.
PR Checklist
Please make sure that your PR fulfills the following requirements:

[ ] The commit message follows the Angular Commit Message Guidelines.
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] New tests
[ ] Build/CI related changes
[ ] Documentation content changes
[ ] Other (please describe)

What is the current behavior?

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[ ] No

Other information

:tada: This PR is included in version 0.2.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


delayed docs indirect dependencies using bind

[x] Closes #7963

As proposed here: #7908 by @jsignell and @jrbourbeau - provide an example in the delayed documentation on how to create dependencies on tasks that don't take the upstream tasks result in the args.

Can one of the admins verify this patch?

Thanks for writing this up @aa1371 it seems like a nice addition.


FormData + split big arrays

A thing I worked on last night but I see @n1ru4l did it today's morning :D I'm pushing to show the array split I did with arrayConcat and multiple params to avoid a length limit of a single param

closed via https://github.com/kamilkisiela/graphql-hive/pull/5470


Discrepancy between number "Dimensionless formula" column and feynman.py definitions?

Good morning,
I've noticed that the feynman.py equations are defined with the number of variables matching the original formula in Table 3 of the paper. However, the layouts of the KANs are defined with respect to the "Dimensionless formula" column, meaning that whatever dataset was created off that formula had to be using the number of variables found in the "variables" column instead of however many were defined in feynman.py.
Now, recreating the formula from the table isn't very hard, but it would be useful if the ranges used for the "Dimensionless formula" datasets were published somewhere for the sake of reproducibility.
Based off the existing code, I can surmise that for the majority of the datasets created using the "Dimensionless formula", the ranges were set to [-1,1], but I wouldn't be surprised if there were exceptions such as the arguments of trigonometric formulas, positive quantities such as masses (as seen in I.9.18), or arguments of square roots such as in I.37.4.
This doesn't constitute a demand, but more so a suggestion.

Dataset can be found here: https://space.mit.edu/home/tegmark/aifeynman.html. I've been integrating this into the pykan package, but it will take time.

Thank you. I see that the variable ranges are defined under the column names as vx_low and vx_high, where x in this case can be any number ranging from 1 to 10. I will assume that for any undefined vx_low and vx_high values, the ranges are then -1 to 1 correspondingly.


[Bug]GET https://assets-cdn.github.com/assets/modules/aws/aws-bg-*.jpg 404 (Not Found)

medium.html?user=wsgzao&identity=ghcard-wsgzao-3&client_id=a11a1bda412d928fb39a&client_secret=92b7cf30bc42c49d589a10372c3f9ff3bb310037:1 GET https://assets-cdn.github.com/assets/modules/aws/aws-bg-80b292690ba587b305c2c038c496ffc8ff08d3bf6be6c1ba64d48bedc09cc36f.jpg 404 (Not Found)
Please fix it if you have time

fixed.

@lepture great, very very very fast, and I really like the new skin, Thank you so much
my blog looks much better, ^_^
https://wsgzao.github.io/


Module "beancount.core.data" does not explicitly export attribute "Amount"

mypy complains about that when trying to create a beancount.core.data.Amount. Looks like you can't just implicitly reexport it from the non-typed actual source file? 0.o

Amount lives in beancount.core.amount and importing it from there works fine.


owncloud.org invalid certificate

Seriously guys! This sucks!
https://owncloud.org/

The cron job could not run, apparently.
/bin/false is good if you never want to execute anything.
It's fixed now.
Thanks for reporting this issue!
Roman.

Thanks!


How to use responsive_sizer to achieve a responsive design using a Figma design with a specified phone frame?

I have a Figma design with a specific phone frame, and I want to use responsive_sizer to create a responsive design across different device sizes. As responsive_sizer  involves using percentages of the screen for widget sizes, and it may seem like a hit-and-try process. If I want to convert the exact size information from the Figma design using responsive_sizer, is there a specific method or guideline to follow?
For example, in a Figma design, the device frame is 480 x 320, and the container size is 60 x 60.
How can I utilize the 60 x 60 dimensions with responsive_sizer for Flutter widgets.

The method of approach would differ from person to person. There is no specific guideline that should follow. Since devices come in different screen sizes, screen resolutions, and screen densities, it is impossible to perfectly mimic the same figma design across multiple devices. For example, comparing two phones with the same physical height but with slightly different physical widths, the same figma design may look a little bit more squeezed in the narrow phone than the one in the wider phone.
The standard and complex approach is the web approach, which is to have set breakpoints that dictate how big the container should be. (Eg: 10px for mobile, 15px for tablet, and 20px for desktop) This approach is something that I would recommend if you have a complex flutter project and it needs to support a wide range of screens. (Mobile, Tablet, and Desktop sizes)
Note that this is time-consuming since you'd have to make 3 different layouts for each screen.  See what I mean here.
Another approach that is simple would be to use percentages (which is what ResponsiveSizer helps you do). If I set my container to take 20% of a device's width, it will always take 20% of its width regardless of the device's size. We could use ratios (intended size / max size) to make similarly shaped mobile devices closely follow your figma design.
Here's an example with your 60 x 60 container.  Our intended size is 60.
We start by choosing the lower value of your device frame 480 x 320 and use it (320) as our max size.  Take note that the lower value here is the device's width. Since the device's width is the lower value, we will be setting the container's sizes to (intended size / max size).w.
The end result would look something like this:
Container(
   width: (60/320).w
   height: (60/320).w
)

Since this could get ugly, you could create a function or extension similar to this:
double calculateRatio(num intendedSize) => (intendedSize / maxSize).w;

Thanks for the detailed answer. I'll stick to the default percentages approach.


Redirect http to https when using serve --ssl

It would be a nice feature to automatically redirect clients from http:// to https:// if the application is being served with --ssl.
It gets tricky to implement since the server only listens on one port and you can't serve http and https on the same port.  What I do with other dev severs is listen on two ports such as 8080 and 8443 where if the dev goes to http 8080, it automatically redirects to https 8443.  To support this, the --ssl option could take a port instead of a boolean.  This would not override the --port option.
I'm OK with closing this as well with "devs need to be conditioned to use https" but I thought I'd open the discussion.

@filipesilva in early stage of development I use ng serve in production mode, so https redirection make sense

It would be nice for development, because if you type 'localhost:4200' in your address bar of your browser you get an error message (in Chrome ERR_EMPTY_RESPONSE for example) and i have to manually add https in front of localhost. It would be nice to just be redirected.

Hi, webpack dev server only listens on a single port. While there might be ways to listen to an addition port, this is something brittle as it’s not something which is supported, but more of a workaround.
Redirecting from http to https should not be ng serve responsibility unless it’s provided out of the box by the dev server which is not.
@mafshin, ng serve is not meant to be used for production nor as a server. There are better packages for that such as express and http-server, which can be setup with minimal effort.


Add missing options early on

This fixes a bug where the plural function would be set to English even if the
Plurr constructor already defined a different locale to use.

The underlying bug was properly addressed in 53cb4bdadff437ec39be9f50ce801a0b1592edb8


Bad bodies

A bad body is a dynamic body with zero mass.
Add logging.
Joints and contacts should fail on bad bodies. Bad bodies shouldn't move.

Added sample in #174


SQL Database connection (task 1.a)

I've almost completed the whole task.
I accidentally merged and pushed part the code to main. (What is currently on main works)
I have made some changes and also added error catching to the code.
Ask me if you have any questions
The only thing left is:
Your program shall receive the location from the SQLite database file from an environment variable called CHIRPDBPATH, i.e., via dependency injection. In case no such variable is defined the database file shall be located under a user's temporary directory with the file name chirp.db. That is, calling your program directly, e.g., with dotnet run will store the database file under <user's tempdir>, whereas calling it with, e.g., CHIRPDBPATH=./mychirp.db dotnet run will store the file in the current directory under the file name mychirp.db.

This pull request will be closed, since I do not want this to merged into main. The version I will merge into main solves the issues and is also the complete product for the week.


Likely incorrect override for syllabic category of Balinese combining marks

The file IndicSyllabicCategory-Additional.txt has the following entry:

1B6B..1B73    ; Nukta            # Mn   [9] BALINESE MUSICAL SYMBOL COMBINING TEGEH..BALINESE MUSICAL SYMBOL COMBINING GONG

This override is very likely incorrect. According to the Unicode Standard section 17.3, these characters are part of the musical symbols and intended to be used with base characters or this set. There is no indication that they’re meant to be used as part of regular Balinese orthographic syllables. The USE specification has a special class SYM_MOD just for these characters and a special symbol cluster that allows characters from this class to attach to SYM characters, including the other Balinese musical symbols. The override prevents these attachments and enables incorrect ones.

Thank you, @NorbertLindenberg, good catch.
Fixed pushed to Unicode 15 branch. I'll merge that branch in September.


KAFKA-14225: Fix deadlock caused by lazy val exemptSensor

There is a chance to cause deadlock when multiple threads access ClientRequestQuotaManager. In the version Scala 2.12, the lazy val initialization is under the object lock. The deadlock could happen in the following condition:
In thread a, when ClientRequestQuotaManager.exemptSensor is being initialized, it has acquired the object lock and enters the the actual initialization block. The initialization of 'exemptSensor' requires another lock private val lock = new ReentrantReadWriteLock() and it is waiting for this lock.
In thread b, at the same time, ClientQuotaManager.updateQuota() is called and it has already acquired ReentrantReadWriteLock lock by calling lock.writeLock().lock(). And then it executes info(). If this is the first time accessing Logging.logger, which is also a lazy val, it need to wait for the object lock.
The deadlock happens.
Since the lazy val initialization is under the object lock, we should avoid using lazy val if the initialization function holds another lock to prevent holding two locks at the same time which is prone for deadlock. Change to create exemptSensor during ClientRequestQuotaManager initialization with an expiration time of Long.MaxValue to prevent expiration if request quota is not enabled at that time.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

rerun tests please

@dajac @rajinisivaram could you please review this PR? Thanks!

@hshi2022 Thanks for the patch. Did you catch this deadlock in practice or did you use some tool to find it?

@hshi2022 Thanks for the patch. Did you catch this deadlock in practice or did you use some tool to find it?

We caught in practice.

@hachikuji Thanks for review. I have addressed your comments. And I am wondering whether you know how to rerun the checks/tests without submitting any changes. This PR currently fails a test, which I do not think is related to the PR's change.)

@hshi2022 Yeah, we are often fighting some flaky tests. It should not block merging if they are unrelated. Can you take a look at the response above https://github.com/apache/kafka/pull/12634#discussion_r982935129? Thanks!

@hshi2022 Yeah, we are often fighting some flaky tests. It should not block merging if they are unrelated. Can you take a look at the response above #12634 (comment)? Thanks!

@hshi2022 Yeah, we are often fighting some flaky tests. It should not block merging if they are unrelated. Can you take a look at the response above #12634 (comment)? Thanks!

Replied under that comment.

@hachikuji Do you have any more questions/comments regarding this PR?

Kicked off one more build since it's been a little while. I will merge assuming nothing wrong with the build. Thanks for the patch!


Expected float32, got range(0, 3) of type 'range' instead.

System information

What is the top-level directory of the model you are using:
C:\Users\Administrator\Documents\Projects\models
Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
Because my previous issue, I disable the argument.
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
Windows 10
TensorFlow installed from (source or binary):
Binary
TensorFlow version (use command below):
1.5
CUDA/cuDNN version:
CUDA v9.0
GPU model and memory:
NVDIA GeForce GT 730

Describe the problem
If my description or log is not clear enough, please tell me. Thanks in advance!
Source code / logs
File "C:/Users/Administrator/Documents/Projects/models/research/object_detection/my_train.py", line 164, in main
worker_job_name, is_chief, FLAGS.train_dir)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\site-packages\object_detection-0.1-py3.5.egg\object_detection\trainer.py", line 255, in train
train_config.optimizer)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\site-packages\object_detection-0.1-py3.5.egg\object_detection\builders\optimizer_builder.py", line 50, in build
learning_rate = _create_learning_rate(config.learning_rate)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\site-packages\object_detection-0.1-py3.5.egg\object_detection\builders\optimizer_builder.py", line 108, in _create_learning_rate
learning_rate_sequence)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\site-packages\object_detection-0.1-py3.5.egg\object_detection\utils\learning_schedules.py", line 155, in manual_stepping
tf.constant(range(num_boundaries), dtype=tf.int32),
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\framework\constant_op.py", line 214, in constant
value, dtype=dtype, shape=shape, verify_shape=verify_shape))
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\framework\tensor_util.py", line 433, in make_tensor_proto
_AssertCompatible(values, dtype)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\framework\tensor_util.py", line 344, in _AssertCompatible
(dtype.name, repr(mismatch), type(mismatch).name))
TypeError: Expected float32, got range(0, 3) of type 'range' instead.

That is a python issue since range is not a list.
Use tf.constant([0,..., num_boundaries-1]) instead.

For anyone else running into this: this is an issue with the Object Detection API in the tensorflow/models repository. I've created a pull request with a simple fix.


docs: add region flag to the create cluster example in getting-started

Previously, the flow of the getting started guide made it easy to
mistakenly create a management cluster and a hosted cluster in
different regions. Fix this by adding region flag to the create
cluster command.

/lgtm
/approve


[Bug] [API] Get PullRequest no SHA of HEAD

gitea: v1.12.3
if pull is from an fork and merged/closed and branch deleted:
api responce has no SHA
ToDo: need to check if there are more edgecases who cause the same

sidenode: this bug caused #12657 to create pulls who only show 500 page <- so the localgiteauploader should have some savety check ...

for those looking at a workaround code: https://gitea.com/gitea/tea/pulls/340

pull -> #14931


Do not specify CPU request and set high limit. #442

https://github.com/UffizziCloud/uffizzi_platform/issues/442

I needed to explicitly set CPU request = 0 so the Pod did not automatically set it to the same value as the CPU limit, which for now I've set to 1 vCPU.


Releng 2 6 0

[ ] Redmine Issue: https://redmine.pfsense.org/issues/NNNN
[ ] Ready for review

CLOSE - fixed with git CLI


How do i

How do configure the expected host? For example, how would I set this to expect traffic from www.example.com?

The default configuration, in default, binds localhost. To bind to example.com only, you'd have to change localhost to example.com.
To customize that configuration, you would have to override it in your app's/static site's Dockerfile.
More on NGINX's server blocks: https://www.nginx.com/resources/wiki/start/topics/examples/server_blocks/

My question is less about setting up NGINX by editing the nginx conf, but instead about if there is any way to pass that as a parameter to docker. It would be nice if a simple container such as nginx didn't have to be customized to change only the host name.

As far as I know, you need to edit the NGINX server block to do what you're asking. This container does not support that kind of manipulation, but I'm sure it's possible with an init script and env variables.

You wrap this in your own project Dockerfile and base it off this image
then you just copy in your modified version that matches your settings
# Guide here:
# https://github.com/KyleAMathews/docker-nginx

# Build docker file
# docker build -t prototype .

FROM kyma/docker-nginx

COPY myDefault /etc/nginx/sites-enabled/default

CMD 'nginx'

@sp90 if you're feeling up to another PR, that'd be great to add to the README :-)

👍


Make next build/export programmatically accessible

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

I'm building a wrapper module around next.js and was looking for an easy way to call build and export where I can pass the config in much the same was as the server api can be initiated.
Judging by nexteins implementation this is the currently the way to interact with these apis.
it'd be great if we had either of the following:
const nextApp = next({ dev, conf })

// server
await nextApp.prepare()

// build / export
await nextApp.build()
await nextApp.export()

Alternatively
const build = require('next/server/build')
const export = require('next/server/export')

await build({ dev, conf })
...

Thoughts?

Hi. Is this gonna open up possibility to render Next programmatically? I have the followings code in an Isomorphic Nuxt (Vue) + Express as a middleware:
Will this patch allow me to do the same in Nextjs?
const { Nuxt, Builder } = require('nuxt')
const logger = require('winston')
const config = require('../../nuxt.config')

const nuxt = new Nuxt(config)

if (config.dev) {
  new Builder(nuxt).build()
    .then(() => process.emit('nuxt:build:done'))
    .catch((error) => {
      logger.error(error)
      process.exit(1)
    })
} else {
  process.nextTick(() => process.emit('nuxt:build:done'))
}

module.exports = nuxt

@bin4ryio, yes you can. See the custom server docs, what I was specifically referring to was that the export function only reads config from disk rather than reading from an argument. (this is fixed now so you can do)
const nextBuild = require('next/dist/server/build')
const nextExport = require('next/dist/server/export')

nextBuild(<dir>, <config>)
.then(() => {
     return nextExport(<dir>, <exportOpts>, <config>)
})

I've been building a little wrapper around next.js and nuxt.js for graphql powered static sites, the code maybe helpful to look at.

#2962 fixes this issue.


Fix grove log fractional seconds

What does this PR (Pull Request) do?
Fix grove log fractional seconds.
They were being dropped and logging .0, this fixes it to match ATS identically, logging the fractional second with trailing zeros to 3 decimal places.
Includes unit tests.
No documentation, no interface change.
Includes Changelog.

[x] This PR is not related to any other Issue

Which Traffic Control components are affected by this PR?

Grove

What is the best way to verify this PR?
go test
Start grove, make a request, check the access log, verify fractional seconds are present in the timestamp (the first field).
If this is a bug fix, what versions of Traffic Ops are affected?

3.0.0
3.0.1

The following criteria are ALL met by this PR

[x] This PR includes tests OR I have explained why tests are unnecessary
[x] This PR includes documentation OR I have explained why documentation is unnecessary
[x] This PR includes an update to CHANGELOG.md OR such an update is not necessary
[x] This PR includes any and all required license headers
[x] This PR ensures that database migration sequence is correct OR this PR does not include a database migration
[x] This PR DOES NOT FIX A SERIOUS SECURITY VULNERABILITY (see the Apache Software Foundation's security guidelines for details)

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/4013/
Test FAILed.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/4022/
Test FAILed.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/4031/
Test FAILed.


Disable grade overlay in History for OBF, OPFF and OPF flavors

Disable grade overlay in History for OBF, OPFF and OPF flavors

Working on it


Refactor front end to Tachyon theme

Replace Bootstrap with Tachyon and implement an IA that provides modular and global scopes. Also use BEM naming conventions for class(Names).

I just got done refactoring bootstrap to tachyons, and I like the idea of an icon system. Sprites work and with react we can just store a svg element too .


Create OpenAPI document for core stac spec

It'd be useful to have an OpenAPI document that shows the core 'browse' catalog functionality in this repository, to give another view of how it can be implemented. Should ideally enable both 'collection only' examples, as well as 'item' ones, that are just linked to with 'child' links, not implementing /items and /search endpoints.

A browseable catalog is mostly Hypermedia links and thus OpenAPI is not really suitable for this. OpenAPI needs fixed paths, but browseable catalogs don't have that. For Hypermedia stuff an option could be JSON Hyper-Schema or so...

Ok, will just close this then.


Disabled wrong warning in GCC12

Still fails for two config :-/ The warning suppression doesn't seem to be passed down on these config

@serge-sans-paille I suggest that we remove the MINGW64 and UCRT64 builds for now since we cannot wrokaround GCC's bug. I hope they will fix it in the next GCC and that it will be available in msys2 soon.


aspnet-* package dependencies upgrade advice?

Hi,
Is there any guidance as to when we should be bumping versions on these, and what the changes are for each version? Its quite hard to know what they even do without looking at the code.
From what I can see the template hasn't been updated for a while so we have major version bumps waiting in npm, but package.json for at least the react-redux generator is locked on the previous iterations .
I'm not sure if feasible, but it would also be helpful if there were tags in git for each release version of the packages so we could track changes which would help anticipate any breaks that might occur.
Thanks,
Dan

Also worth mentioning that the current dependencies have a peer dependency on webpack 2...
I get the following when upgrading to 3.3.0
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>|| ^2.1.0-beta but none was installed.

We're generally following semver, so if there's a major version bump in NPM, that implies there was a breaking change which people with existing apps shouldn't get because it would break them.
Once you've created a project with a particular version of the template, it's not expected that you should need to upgrade any aspnet-* NPM packages, since the aspnet-* packages exist precisely to support that version of your template. It's only relevant to have newer versions if you create a new project with a newer template. Of course, you'll want to upgrade other third-party NPM packages, but that's separate.
If you are keen to change your project to match a newer template and its package dependencies, you'd need to diff the old and new template outputs to establish what changes to make. I know that would be supremely inconvenient but unfortunately we don't have capacity to document every change in a way that would adequately describe its effects and what other combination of changes it depends on. The general idea with the templates is that it's just a starting point, not some kind of framework, so once you have your working app you continune with it and just update whatever third-party dependencies you want to.

Also worth mentioning that the current dependencies have a peer dependency on webpack 2

See #1126


Rename *LiveTest.cs -> *LiveTests.cs to be consistent across repository

Fixes https://github.com/Azure/azure-sdk-for-net/issues/17987

FYI @pakrym as I asked you about this.

FYI @pakrym as I asked you about this.


Add a basic OZ account in genesis state

Pull Request type
Please add the labels corresponding to the type of changes your PR introduces:

Feature

What is the current behavior?
The genesis state doesn't contain a plain basic account ready to be used by clients.
What is the new behavior?
Added a standard preset OZ account at address 0x3 with default private/public key
Does this introduce a breaking change?
No
Other information

I don't understand why the invoke tests are failing

I find these hardcoded tx json files hard to debug, suggest to make a PR to remove them (started in this PR so could be a good first issue).


FancyZones HotKey/Shortcut for swaping windows between screens.

Description of the new feature / enhancement
Say I have window W1 (e.g. Google Chrome) on monitor M1 (e.g. main monitor), window W2 (e.g. Microsoft Outlook) on monitor M2 (e.g. laptop monitor).
Frequently I need to swap the apps between screens. Currently in order to do this the steps would be:

Focus on W1.
Move W1 to M2 with "Win + arrow" or drag + snap.
Focus on W2.
Move W2 to M1 using "Win + arrow" or drag + snap.

Would be great if we could have a shortcut to quickly and easily swap content between screens.
Scenario when this would be used?
I have an "asymmetrical" monitor setup, as a lot of people do, where I have a "main" monitor and one or two secondary ones (e.g. laptop screen, vertical monitor, etc.).
Frequently I need to swap the window I'm using on my main screen with another on my secondary screen.
A few examples of this could be:

Lets say I'm attending a MS teams meeting using my main screen and doing some using my web-browser or notes app on my secondary screen but then I need to share my screen. Having the ability to quickly swap the apps in the screen is great as when sharing the screen I prefer to have what I'm sharing in my main screen and the meeting window on the secondary one.
Lets say I'm working on a a front-end development project, and I have my IDE on my main screen while having the browser open on my secondary screen. Then I start a trace, or debugging session or something like this, and I want to quickly swap windows so I now keep the browser window on my main screen and my IDE on the secondary one for monitoring.

Supporting information

https://www.reddit.com/r/Windows10/comments/sqshv9/two_monitors_a_shortcut_to_swap_screens/
https://www.autohotkey.com/board/topic/17885-dual-monitor-swap/

Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Open similar issues:

Swap Monitor contents (#24701),  similarity score: 0.82

Closed similar issues:

Swap Windows between Two FancyZones (#14968),  similarity score: 0.81
Allow swap Windows between Zones (#31120),  similarity score: 0.80
[Fancy zones feature] Windows zone swapper (#24170),  similarity score: 0.80
[FancyZones] Swap windows between zones with Alt Windows Snap HotKeys (#1918),  similarity score: 0.79

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

I've checked the similar issues, both open and closed, ticket #14968 is very similar, but not quite the same. That said, that ticket was wrongly closed as it initially appeared to be a duplicate when it was not. Also want to clarify that this is not a duplicate of ticket #13689 either, they are different. :)

Why doesn’t win+shift+left/right arrow key work?  That is the built in keystroke for windows for an instant swap. /needinfo

Why doesn’t win+shift+left/right arrow key work? That is the built in keystroke for windows for an instant swap. /needinfo

Hey @crutkas ,
win+shift+left/right arrow, allows you to quickly send a window to another screen, but, as far as I know, there is no shortcut to swap windows between screens in one go.
As mentioned in the ticket description, to use win + shift + arrow to do it, its always a multi step process.
For example, lets say you are testing something on a website you are developing on your main screen while having on your secondary monitor some sort of trace running on a IDE.
If you wish to quickly swap window in the main screen with the one in the secondary one you would need to:

Focus by clicking on the website browser window on your main screen.
Move the browser window to the secondary monitor with "Win + Shift + arrow" or mouse drag + snap.
Focus by clicking on the IDE window running the trace.
Move the IDE window to the main monitor using "Win + Shift + arrow" or mouse drag + snap.

What I would be proposing would be a key shortcut that would allow to quickly and easily swap the "active" windows in each screen between screens.
Hope this description clarifies the difference between the existing windows/fancy zones functionality and the proposal I have, If not I can try to create a small gif or something to showcase it better.

any update on the posibility of using a keyboard shortcut to quickly swap which is the active monitor?

Hello @crutkas ,
Just sending a friendly reminder about this topic 😄 .
Kind Regards.

This is /dup https://github.com/microsoft/PowerToys/issues/24701


drivers: input: gpio-keys: Add wakeup-source support

This introduces the wakeup-source capability to gpio-keys drivers including the missing pinctrl support. With this a GPIO driver that handles the GPIO_WAKEUP_SOURCE flag can wakeup the system.
@gmarull , @fabiobaltieri , @bjarki-trackunit
This proposes the missing step in the GPIO driver to allow the functionality. The GPIO_WAKEUP_SOURCE flag is necessary to inform the GPIO driver that pin should be configured as a wakeup-source. The definition of an internal flag is to be compliance with the wakeup-source. In this proposal no new API is required and people can start to adapt their own drivers to use the new flag.

Consider the following:
	&spi0 {
		sensor: bmi323@0 {
			compatible = "bosch,bmi323"
			reg = <0>;
			gpios = <&gpio0 11 (GPIO_ACTIVE_HIGH | GPIO_WAKEUP_SOURCE)>;
			wakeup-source;
		}
	};

The device driver does not care if it is a wakeup source, it will not change its behavior in any way even though it is defined as a wakeup source in the devicetree. The wakeup-source only means the device is capable of being used as a wakeup source, but must be disabled by default. How will the application inform the driver that it must apply (or not) the GPIO_WAKEUP_SOURCE flag?
This is also the case for the "gpio-keys" node labels. The input subsystem should not need to handle configuring keys as wakeup sources, it is there to register input events.
We will need SOC specific implementations to enable wakeup sources, through a generic API, there really is no "generic" way SOCs implement wakeup sources, or even what type of wakeup sources they implement (Like the Atmel SUPC component for RTC alarms, that can not be made generic)

Consider the following:
	&spi0 {
		sensor: bmi323@0 {
			compatible = "bosch,bmi323"
			reg = <0>;
			gpios = <&gpio0 11 (GPIO_ACTIVE_HIGH | GPIO_WAKEUP_SOURCE)>;
			wakeup-source;
		}
	};

This is the devicetree I'm proposing in this case:
 	&spi0 {
 		sensor: bmi323@0 {
 			compatible = "bosch,bmi323"
 			reg = <0>;
 			gpios = <&gpio0 11 (GPIO_ACTIVE_HIGH)>;
 			wakeup-source;
 		}
 	};

The GPIO_WAKEUP_SOURCE should be hidden to use from devicetree, otherwise the wakeup-source is meaningless.

The device driver does not care if it is a wakeup source, it will not change its behavior in any way even though it is defined as a wakeup source in the devicetree. The wakeup-source only means the device is capable of being used as a wakeup source, but must be disabled by default. How will the application inform the driver that it must apply (or not) the GPIO_WAKEUP_SOURCE flag?

On my perspective, the driver still don't change his behavior, see my proposal with gpio-keys. However, the devicetree binding for the driver MUST include pm.yaml to have the wakeup-source property. This means that you should not add this property randomly in the devicetree. So, the driver should know that it can capture the wakeup-source property and it know what it need to do with it because it is specified in the binding.
Look, I'm not saying that maybe Zephyr don't need a wakeup subsystem what I'm saying is that the driver MUST know what to do with wakeup-source property. At least this is my current understanding.
In the case of gpio-keys. It is a implementation on top of GPIO driver. In the current GPIO driver there is no way to inform that a specific pin should be configured as a wakeup-source. I think this is missing part of the GPIO API and it should be added. To do that, I propose to add some kind of hidden flag that any driver can inform it. That is it! Maybe some vendor does not have GPIO wakeup capabilities and it uses a different approach and then for that vendor a wakeup subsystem could be important. It will be good if you could point out in Linux because then we have a more concrete example.

This is also the case for the "gpio-keys" node labels. The input subsystem should not need to handle configuring keys as wakeup sources, it is there to register input events.

Based on what I already told, the gpio-keys implementation could simple store that property and forward to the connected driver that a wakeup-source was attached to that node. This is easy to be implement when the GPIO driver has such capability available. I understand that gpio-keys is a driver that works on top of GPIO driver and extends his capabilities.
Let's think about an external gpio driver for a moment and that driver should wakeup the system. It will be necessary a GPIO pin for the interrupt and that pin should be capable of wakeup the system and it must be configured in such way that make all the external keys wake the system. So, that GPIO external driver must inform somehow how to configure that gpio interrupt pin that it should configure the wake feature.

We will need SOC specific implementations to enable wakeup sources, there really is no "generic" way SOCs implement wakeup sources, or even what type of wakeup sources they implement (Like the Atmel SUPC component for RTC alarms, that can not be made generic)

I think each RTC should know what to do with the wakeup-source property. Again, if it is an external RTC an interrupt pin with wakeup functionality should be configured and a simple flag may solve the problem.

The Atmel SAM for example does not use the GPIO driver at all to enable GPIO inputs, its a "random" mapping to registers in the vendor specific SUPC component. This is why I propose a SOC specific implementation like z_wakeup_source_enable_gpio() (See #64814) which can circumvent the GPIO driver if its not needed. The Nordic nRF9160 does implement all logic required in the GPIO component, so it could potentially expand the GPIO driver, but thats not always the case :)

Wrong, the GPIO must be well configured otherwise it may not work for the Atmel case. You are not yet considering that a pinctrl driver could change the behavior of pins. For instance, if you configure a pin as Analog to save power in LPM mode you lost WKUP functionality on that pin. So, it is required SUPC + GPIO + PINCTRL working in sync to not mess up the wake capability.
If nordic already have all the logic for the wakeup, do you think it can work handling the flag that I proposed or it requires an specific API?
The way that I saw for the Atmel there will be the SUPC functionality available for sure to access the wakeup connections. The Atmel SAM does not uses GPIO driver yet! I'm working to enable it and it is not a circumvent. I think we should work to get ideas about how to do the right thing and try not expand in directions without very good justifications and real examples. Maybe the first decision is have clear if make sense have a way to inform a wakeup request on a GPIO pin in the GPIO API. I think yes.
That said I have one question? What I'm proposing here GPIO API can inform wakeup functionality to the driver and how to toggle wakeup-source property for gpio-keys make sense?

@nandojve

However, the devicetree binding for the driver MUST include pm.yaml to have the wakeup-source property

No, you can add the wakeup-source property to any bindings file (See https://github.com/zephyrproject-rtos/zephyr/pull/64814/commits/94ba6a784c48ea8e812006c0fb490c5c113c20fd), just like gpios etc. pm.yaml is parallel to wakeup sources, some nordic chips don't use pm at all, yet support GPIOs as wakeup sources :)

I think we should work to get ideas about how to do the right thing and try not expand in directions without very good justifications and real examples.

Yeah, that is the purpose of https://github.com/zephyrproject-rtos/zephyr/pull/64814 :) In short, we need a subsystem to identify and configure any and all wakeup sources agnostic to the specific mechanism used to allow it to wake up the SOC, then allow the SOC to implement specific hooks for enabling them.

@nandojve

However, the devicetree binding for the driver MUST include pm.yaml to have the wakeup-source property

No, you can add the wakeup-source property to any bindings file (See 94ba6a7), just like gpios etc. pm.yaml is parallel to wakeup sources, some nordic chips don't use pm at all, yet support GPIOs as wakeup sources :)

Ok, maybe I'm lacking in knowledge about this.

Some Atmel SAM series chips require pinctrl, SUPC and GPIO in varying combinations to enable wakeup sources, Nordic only requires GPIO, we need the subsystem to be flexible enough to support both of these cases in an agnostic way.

I'll add some references from Linux Mainline about what I'm pursuing:
https://github.com/torvalds/linux/blob/master/drivers/gpio/gpio-mpc5200.c#L28-L32
https://github.com/torvalds/linux/blob/d2f51b3516dade79269ff45eae2a7668ae711b25/drivers/gpio/gpio-pcf857x.c#L264
https://github.com/torvalds/linux/blob/d2f51b3516dade79269ff45eae2a7668ae711b25/drivers/pinctrl/stm32/pinctrl-stm32.c#L418
https://github.com/torvalds/linux/blob/d2f51b3516dade79269ff45eae2a7668ae711b25/drivers/pinctrl/pinctrl-at91.c#L1747
https://github.com/torvalds/linux/blob/d2f51b3516dade79269ff45eae2a7668ae711b25/drivers/input/keyboard/gpio_keys.c#L423-L436

Nordic only requires GPIO, we need the subsystem to be flexible enough to support both of these cases in an agnostic way.

I'm not questioning your proposal about the subsystem what I'm pursuing is add the missing points in the drivers. I think if a vendor already had the functionality available it will be easy to adapt when an API is ready to use. Then, any subsystem can consume but Zephyr should be flexible because not all application may require that subsystem.

@nandojve
With the wakeup subsystem, two changes proposed here are not required:

Extending gpio-keys.yaml with pinctlr and pm bindings
Adding a GPIO flag related to wakeup source

An API for the GPIO to enable it as a wakeup source is a good idea I think, but identifying the GPIO, and actually calling the API before power off will be handled by the wakeup subsystem :)

Hi @ceolin ,
I would like apreciate you perspective about the technical proposal here. The long -> short is that I would like enable pinctrl + gpio to allow configure the specific wakeup sources for individual pins. I imagine that PM could interact with those drivers to provide the SoC support, but it is not clear yet to me. At moment I'm bypassing the PM and trying create the very minimal use case which could be adjusted later.

Hi @ceolin ,
I would like apreciate you perspective about the technical proposal here. The long -> short is that I would like enable pinctrl + gpio to allow configure the specific wakeup sources for individual pins. I imagine that PM could interact with those drivers to provide the SoC support, but it is not clear yet to me. At moment I'm bypassing the PM and trying create the very minimal use case which could be adjusted later.

This proposal is more or less what I had in mind when I'd added the wakeup-source property. I don't understand how we can completely de-couple it from device moving completely to SoC (specially with external drivers). In mind it would be something like this, devices use this property and the pm subsystem, the latter to setup the remaining bits in the SoC side.
Regarding the property, you don't really need to change the binding for since that is included by the base binding used in all devices. The PM subsystem uses this information to not suspend a device that is used as wakeup source.
That's said I need to look @bjarki-trackunit  proposal, it may be including the part that is lacking in the PM side.

We will need SOC specific implementations to enable wakeup sources, there really is no "generic" way SOCs implement wakeup sources, or even what type of wakeup sources they implement (Like the Atmel SUPC component for RTC alarms, that can not be made generic)
The Atmel SAM for example does not use the GPIO driver at all to enable GPIO inputs, its a "random" mapping to registers in the vendor specific SUPC component. This is why I propose a SOC specific implementation like z_wakeup_source_enable_gpio() (See #64814) which can circumvent the GPIO driver if its not needed. The Nordic nRF9160 does implement all logic required in the GPIO component, so it could potentially expand the GPIO driver, but thats not always the case :)

@bjarki-trackunit I completely agree with you on this, STM32 also treats wake-up pins as a separate thing from GPIOs, their config registers are part of the Power Control peripheral. So we indeed need "SOC specific implementations to enable wakeup sources" & it's what I am proposing for STM32 in PR https://github.com/zephyrproject-rtos/zephyr/pull/67441 that builds on your https://github.com/zephyrproject-rtos/zephyr/pull/64814 proposition.


NodeList.prototype.@@iterator doesn't load in IE 11

IE 11 needs a polyfill for NodeList.prototype.@@iterator. But when I try to load the polyfill IE 11 is detected but the polyfill isn't loaded:
https://cdn.polyfill.io/v2/polyfill.js?features=NodeList.prototype.%40%40iterator&ua=Mozilla%2F5.0 (Windows NT 6.3%3B Trident%2F7.0%3B rv%3A11.0) like Gecko
When specifying 'always' it works:
https://cdn.polyfill.io/v2/polyfill.js?features=NodeList.prototype.%40%40iterator|always&ua=Mozilla%2F5.0 (Windows NT 6.3%3B Trident%2F7.0%3B rv%3A11.0) like Gecko
Any idea what I'm doing wrong? Thanks.

Thanks for raising - there's a syntax error in the semver expression for targeting IE.  I've proposed a fix.

Thanks. I just saw #932


Bind object type literals in JSDoc

Object type literals are a specific instance of types that really need to have their own symbol table for language service operations.
We could try binding everything from JSDoc, but that does "extra" work like declaring types from JSDoc, which is undesirable. Instead, this PR just adds a lightweight walk to perform local binding within type literals in JSDoc, rather than parameterizing bindWorker.
It might be the case that we have to account for function types, constructor types, and mapped types, which all implicitly create their own symbol tables, and that might be fine too.
Fixes #51054
Alternative fix for #50750
Ref #51057, #51055
CC @a-tarasyuk who's been working on these issues.

@typescript-bot run dt slower
@typescript-bot perf test this faster
@typescript-bot user test tsserver
@typescript-bot test tsserver top100

I'm somewhat nervous about binding more things in JSDoc just because we seem to have existing issues with JSDoc nodes being bound more than once; see #50069.
If we already bind JSDoc nodes like this, then I'm less worried, but if we normally only set the parent and such, I don't quite know what'll happen if we visit these nodes more than once.

We already bind these nodes in JS files - so I think we should be good. If it were up to me, I would just do a full bind and decide do be more selective on what JSDoc does in TS files, but this is a more conservative first step.


Download file from template

In my Helm template, i need to generate a configmap with the file content downloaded from a remote url. This list of remote url will setted by the user with the values.
So, i need to download a file directly by Helm but i don't found the feature. It it possible? Have you an idea how i could integrate my need?
Thanks

Output of helm version:
version.BuildInfo{Version:"v3.7+unreleased", GitCommit:"8ca401398d8b6dfd41b46f446abcd5285e219829", GitTreeState:"clean", GoVersion:"go1.17.3"}
Output of kubectl version:
Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v0.21.0-beta.1", GitCommit:"88e7eba36ac7cc026d064bb6e4a988acc18a144e", GitTreeState:"clean", BuildDate:"2021-11-04T19:40:22Z", GoVersion:"go1.16.6", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.11", GitCommit:"27522a29febbcc4badac257763044d0d90c11abd", GitTreeState:"clean", BuildDate:"2021-09-15T19:16:25Z", GoVersion:"go1.15.15", Compiler:"gc", Platform:"linux/amd64"}
Cloud Provider/Platform (AKS, GKE, Minikube etc.):  Rancher 2.5

This is not possible as it poses a security risk. Your best bet would be to download the file prior to helm install|upgrade|template.

Thanks @bacongobbler for your reply. Unfortunately, i can't download the file before the helm install because my chart will hosted on the Marketplace UI. I haven't used yet the hook pre-install, but maybe i could download from a container my files and then updated the content of my configmap. But it's not a nice solution..

Have you an another idea? What do you think? Thanks