[Question] Masks performance and HiDPI displays

Hello,
I've only just started experimenting with heavy masking in PixiJS and I've hit a performance wall when using certain  configurations. Specifically, my scene can’t seem to be rendered faster than 30fps in Safari when using the Intel Iris integrated GPUs. I’m using PixiJS 4.3.5.
Here’s a boiled-down snippet of what I’m doing for the moment:
var app = new PIXI.Application(width, height, config);

var mainStage = new PIXI.Container();
var maskStage = new PIXI.Container();

var baseMaskTexture = new PIXI.BaseRenderTexture(width, height, PIXI.SCALE_MODES.LINEAR, 1);
var maskTexture = new PIXI.RenderTexture(baseMaskTexture);
var maskSprite = new PIXI.Sprite(maskTexture);

mainStage.mask = maskSprite;
app.stage.addChild(mainStage);

/* I then add about a dozen Graphics() elements to the maskStage that are later animated
through their .x, .y and .scale props. The mainStage also contains a few Graphics(). */

var img = new PIXI.Sprite.fromImage(someJPEG);
mainStage.addChild(img);

app.ticker.add(function() {
    app.renderer.render(maskStage, maskTexture);
});

As PixiJS only supports Graphics and Sprites as masks at the moment, and I need my main stage to be masked by multiple individual shapes, I placed these shapes into their own container that is rendered into a texture, and that texture is used as the actual mask.
Everything is buttery smooth in Chrome and Firefox (iGPU or dGPU) and Safari (dGPU), but it all becomes super janky in Safari (iGPU). The scene itself is rendered @1.5x on retina displays to avoid as much blurriness as possible but still maintain decent performances. I guess I could go lower than @1.5x in Safari, but I’d rather avoid that.
Now as I said, I'm quite new to masking in PixiJS, so I’m not sure what could be improved (if anything), or if I should or shouldn’t be doing something. Any advice would be greatly appreciated!
Thank you

Well, if your shapes aren't moving, you dont have to call "render" every frame, but I assume that in your case they are moving.
You can try blending instead of masking: just add a sprite with maskTexture to original stage and set blendMode to PIXI.BLEND_MODES.MULTIPLY.
That's how http://pixijs.github.io/examples/#/layers/lighting.js works. But it also uses a plugin to re-arrange order of sprites and move graphics to other. The only problem is that demo is using big graphics as background "gray" color, when its better to use backgroundColor of renderTexture.

That can be done. Combine Layer1-2 into something else and use VoidFilter on it, specify correct filterArea.
That way combined result of layer1 + layer2 will be blended on layer0

Right! I've yet to learn the wonders of the VoidFilter. “Very handy” indeed. Thank you for that!
I may have one last question to bother you with: after I applied the VoidFilter, I saw a noticeable dip in image quality when the renderer’s resolution is anything other than 1. Basically, everything touched by the VoidFilter becomes slightly blurry, which truly catches the eye when text or straight lines are involved.
I cooked up a small fiddle demonstrating the issue:
https://jsfiddle.net/9wakxrqx/1/
Is it by design, and is there anyway to prevent it?
Thanks again for your support, it really means a lot!

Right, you have to set "PIXI.settings.resolution" (global), or "filter.resolution" (this one filter)

I had assumed that Pixi would automatically use the renderer’s resolution for the filters by default, but then I stumbled upon an old thread and saw that it’s been a topic of debate.
Anyway, thanks again! That really helped.

Hi there! Closing this issue for now due to its inactivity. Feel free to give us a poke if you would like this issue reopened. Thanks 👍


bundled requirejs throws when loading module with DDC and release mode (Cannot set properties of null (setting 'exports'))

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce
I only target WEB.
With Flutter 3.10.5, run the following code with DDC:

Execute flutter run -d chrome on the code sample or flutter run -d chrome --release
See the console for the error that is being thrown

Expected results
Similar to Flutter 3.3, I get to load Vimeo API with DDC via requireJS. I could not do that in 3.7 either due to a bug https://github.com/flutter/flutter/issues/123219 .
What changed from the bug above is that now release mode seems to be broken too because of the same reason. This is a big one for us.
Actual results
An exception:
player.js:2 Uncaught TypeError: Cannot set properties of null (setting 'exports')
    at player.js:2:83
    at player.js:2:229

Seems like that window.module gets set to null at some point and the preamble of player.js (linked in code sample) does the following check as most modules do:
"object" == typeof exports && "undefined" != typeof module ? module.exports = t()

Since module is defined as an Object with value of null, execution will get to module.exports setter which will throw because null.exports is an exception.
Code sample
Code sample
// package:js and proper interopd throws the same, was easier to make repro code work this way
import 'dart:js' as js;
import 'package:flutter/material.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  runApp(const RequireRepro());
}

class RequireRepro extends StatefulWidget {
  const RequireRepro({Key? key}) : super(key: key);

  @override
  State<RequireRepro> createState() => _RequireReproState();
}

class _RequireReproState extends State<RequireRepro> {
  @override
  void initState() {
    super.initState();
    js.context.callMethod('require', [
      js.JsArray.from(['https://player.vimeo.com/api/player.js']),
      js.allowInterop((player) {
        js.context['console'].callMethod('dir', [player]);
      }),
      js.allowInterop((err) {
        js.context['console'].callMethod('dir', [err]);
      }),
    ]);
  }

  @override
  Widget build(BuildContext context) {
    return const Placeholder();
  }
}

Screenshots or Video
No response
Logs
Logs
player.js:2 Uncaught TypeError: Cannot set properties of null (setting 'exports')
    at player.js:2:83
    at player.js:2:229

Flutter Doctor output
Doctor output
[!] Flutter (Channel stable, 3.10.5, on Pop!_OS 22.04 LTS 6.0.12-76060006-generic, locale en_US.UTF-8)
    • Flutter version 3.10.5 on channel stable at /home/dvarga/Documents/ThirdParty/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 796c8ef792 (3 weeks ago), 2023-06-13 15:51:02 -0700
    • Engine revision 45f6e00911
    • Dart version 3.0.5
    • DevTools version 2.23.1
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at /home/dvarga/Android/Sdk
    • Platform android-33, build-tools 33.0.2
    • Java binary at: /usr/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.19+7-post-Ubuntu-0ubuntu122.04.1)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • CHROME_EXECUTABLE = /usr/bin/google-chrome

[✓] Linux toolchain - develop for Linux desktop
    • Ubuntu clang version 14.0.0-1ubuntu1
    • cmake version 3.22.1
    • ninja version 1.10.1
    • pkg-config version 0.29.2

[✓] Android Studio (version 2022.2)
    • Android Studio at /home/dvarga/Documents/ThirdParty/android-studio
    • Flutter plugin version 73.0.2
    • Dart plugin version 222.4560
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

[✓] IntelliJ IDEA Ultimate Edition (version 2022.3)
    • IntelliJ at /home/dvarga/Documents/ThirdParty/intellij
    • Flutter plugin version 73.0.3
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.79.2)
    • VS Code at /usr/share/code
    • Flutter extension version 3.66.0

[✓] Connected device (2 available)
    • Linux (desktop) • linux  • linux-x64      • Pop!_OS 22.04 LTS 6.0.12-76060006-generic
    • Chrome (web)    • chrome • web-javascript • Google Chrome 114.0.5735.133

[✓] Network resources
    • All expected network resources are available.

Thanks for the report @daniel-v
Although I do see the same error as reported on latest stable, but not on latest master, wherein running flutter run -d chrome shows me below in the console:
🔥  To hot restart changes while running, press "r" or "R".
For a more detailed help message, press "h". To quit, press "q".

A Dart VM Service on Chrome is available at: http://<IP_ADDRESS>:53465/6uM45fST3pY=
The webOnlyWarmupEngine API is deprecated and will be removed in a future release. Please use `bootstrapEngine` from `dart:ui_web` instead.
The webOnlySetPluginHandler API is deprecated and will be removed in a future release. Please use `setPluginHandler` from `dart:ui_web` instead.
The debugEmulateFlutterTesterEnvironment getter is deprecated and will be removed in a future release. Please use `debugEmulateFlutterTesterEnvironment` from
`dart:ui_web` instead.
The Flutter DevTools debugger and profiler on Chrome is available at: http://<IP_ADDRESS>:9100?uri=http://<IP_ADDRESS>:53465/6uM45fST3pY=

Can you try the same by switching to latest master ?

Sure thing, @darshankawar , give me a few hours.

@darshankawar the behavior on master is different.
With a slightly updated repro code (to learn more), I get the following output when executing flutter run -d chrome
Launching lib/main.dart on Chrome in debug mode...
Waiting for connection from debug service on Chrome...             15.2s
This app is linked to the debug service: ws://<IP_ADDRESS>:34463/KdMLLY3fWW4=/ws
Debug service listening on ws://<IP_ADDRESS>:34463/KdMLLY3fWW4=/ws

🔥  To hot restart changes while running, press "r" or "R".
For a more detailed help message, press "h". To quit, press "q".

A Dart VM Service on Chrome is available at: http://<IP_ADDRESS>:34463/KdMLLY3fWW4=
The webOnlyWarmupEngine API is deprecated and will be removed in a future release. Please use `bootstrapEngine` from `dart:ui_web` instead.
The debugEmulateFlutterTesterEnvironment getter is deprecated and will be removed in a future release. Please use `debugEmulateFlutterTesterEnvironment` from `dart:ui_web` instead.
The Flutter DevTools debugger and profiler on Chrome is available at: http://<IP_ADDRESS>:9100?uri=http://<IP_ADDRESS>:34463/KdMLLY3fWW4=
Hit require success callback: null

I would exptect null not to be null in the last line but rather a some defined value. In this specific example, Player.
It seems to me, the error is now different but the result is the same: player param in the callback is null in Dart, undefined in JS.
Below, you can see a minimal piece of code for the behavior I expect (Expected behavior code) without all the things Flutter does. I hope it helps you narrow down the differences.
Updated code sample
import 'dart:js' as js;
import 'package:flutter/material.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  runApp(const RequireRepro());
}

class RequireRepro extends StatefulWidget {
  const RequireRepro({Key? key}) : super(key: key);

  @override
  State<RequireRepro> createState() => _RequireReproState();
}

class _RequireReproState extends State<RequireRepro> {
  @override
  void initState() {
    super.initState();
    js.context.callMethod('require', [
      js.JsArray.from(['https://player.vimeo.com/api/player.js']),
      js.allowInterop((player) {
        debugPrint('Hit require success callback: $player');
        js.context['console'].callMethod('dir', [player]);
      }),
      js.allowInterop((err) {
        debugPrint('Hit require error callback: $err');
        js.context['console'].callMethod('dir', [err]);
      }),
    ]);
  }

  @override
  Widget build(BuildContext context) {
    return const Placeholder();
  }
}

Expected behavior code
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Require repro</title>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js" integrity="sha512-c3Nl8+7g4LMSTdrm621y7kf9v3SDPnhxLNhcjFJbKECVnmZHTdo+IRO05sNLTH/D3vA6u1X32ehoLC7WFVdheg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
</head>
<body>
    <script>
        require(['https://player.vimeo.com/api/player.js'], (Player) => {
            // this callback is in fact hit and Player is shown in console as defined object value
            console.info('Hit success callback');
            console.dir(Player);
        }, (err) => {
            console.info('Hit error callback');
            console.dir(err);
        });
    </script>
</body>
</html>

Steps I took to upgrade:
flutter channel master
flutter upgrade
flutter clean
flutter run -d chrome

Thanks for the updates.
On master, we get:
A Dart VM Service on Chrome is available at: http://<IP_ADDRESS>:53750/J76z94CCGvs=
The webOnlyWarmupEngine API is deprecated and will be removed in a future release. Please use `bootstrapEngine` from `dart:ui_web` instead.
The webOnlySetPluginHandler API is deprecated and will be removed in a future release. Please use `setPluginHandler` from `dart:ui_web` instead.
The debugEmulateFlutterTesterEnvironment getter is deprecated and will be removed in a future release. Please use `debugEmulateFlutterTesterEnvironment` from
`dart:ui_web` instead.
The Flutter DevTools debugger and profiler on Chrome is available at: http://<IP_ADDRESS>:9100?uri=http://<IP_ADDRESS>:53750/J76z94CCGvs=
Hit require success callback: null

On stable, we get:
A Dart VM Service on Chrome is available at: http://<IP_ADDRESS>:54330/hLvbR_dFYOQ=
The Flutter DevTools debugger and profiler on Chrome is available at: http://<IP_ADDRESS>:9100?uri=http://<IP_ADDRESS>:54330/hLvbR_dFYOQ=
Hit require success callback: null
TypeError: Cannot set properties of null (setting 'exports')

 stable, master flutter doctor -v
[!] Flutter (Channel stable, 3.10.5, on macOS 12.2.1 21D62 darwin-x64, locale
    en-GB)
    • Flutter version 3.10.5 on channel stable at
      /Users/dhs/documents/fluttersdk/flutter
    ! Warning: `flutter` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/flutter, which is not inside
      your current Flutter SDK checkout at
      /Users/dhs/documents/fluttersdk/flutter. Consider adding
      /Users/dhs/documents/fluttersdk/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/dart, which is not inside your
      current Flutter SDK checkout at /Users/dhs/documents/fluttersdk/flutter.
      Consider adding /Users/dhs/documents/fluttersdk/flutter/bin to the front
      of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 796c8ef792 (2 days ago), 2023-06-13 15:51:02 -0700
    • Engine revision 45f6e00911
    • Dart version 3.0.5
    • DevTools version 2.23.1
    • If those were intentional, you can disregard the above warnings; however
      it is recommended to use "git" directly to perform update checks and
      upgrades.

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

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

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

[✓] Connected device (5 available)
    • SM G975F (mobile)       • RZ8M802WY0X • android-arm64   • Android 11 (API 30)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 98.0.4758.80

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

! Doctor found issues in 1 category.

[!] Flutter (Channel master, 3.12.0-15.0.pre.82, on macOS 12.2.1 21D62
    darwin-x64, locale en-GB)
    • Flutter version 3.12.0-15.0.pre.82 on channel master at
      /Users/dhs/documents/fluttersdk/flutter
    ! Warning: `flutter` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/flutter, which is not inside
      your current Flutter SDK checkout at
      /Users/dhs/documents/fluttersdk/flutter. Consider adding
      /Users/dhs/documents/fluttersdk/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/dart, which is not inside your
      current Flutter SDK checkout at /Users/dhs/documents/fluttersdk/flutter.
      Consider adding /Users/dhs/documents/fluttersdk/flutter/bin to the front
      of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ad74a4f76c (65 minutes ago), 2023-07-10 23:51:23 -0400
    • Engine revision 312e4813a8
    • Dart version 3.1.0 (build 3.1.0-292.0.dev)
    • DevTools version 2.25.0
    • If those were intentional, you can disregard the above warnings; however
      it is recommended to use "git" directly to perform update checks and
      upgrades.

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/dhs/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
    • Build 13C100
    • CocoaPods version 1.11.2

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

[✓] IntelliJ IDEA Ultimate Edition (version 2021.3.2)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 65.1.4
    • Dart plugin version 213.7228

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

[✓] Connected device (3 available)
    • Darshan's iphone (mobile) • 21150b119064aecc249dfcfe05e259197461ce23 • ios
      • iOS 15.3.1 19D52
    • macOS (desktop)           • macos                                    •
      darwin-x64     • macOS 12.2.1 21D62 darwin-x64
    • Chrome (web)              • chrome                                   •
      web-javascript • Google Chrome 109.0.5414.119

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

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

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

[✓] Connected device (5 available)
    • SM G975F (mobile)       • RZ8M802WY0X • android-arm64   • Android 11 (API 30)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 98.0.4758.80

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

! Doctor found issues in 1 category.

js.context.callMethod('require', [

@daniel-v please, don't use the "requireJS" that Flutter is defining. Reasons:

It's only used in "debug" mode (and will never be available in "release"): https://github.com/dart-lang/sdk/issues/33979
It may go away at any moment: https://github.com/dart-lang/sdk/issues/52361
I just removed the workarounds that allowed Flutter Web to load canvaskit (and only canvaskit) as a browserify-ed module, and led the script you were attempting to load that requireJS was available to use. Now scripts will load "normally" (as globals).

In your script (https://player.vimeo.com/api/player.js), it seems there'll be a window.Vimeo global that you can use. https://github.com/flutter/flutter/pull/129032.

The corrected behavior, where requireJS is "hidden/removed" from users is now available in Flutter channel beta 3.13
@daniel-v Can you please give the non-requireJS code a shot by:

Switching to flutter channel beta (or master)
Modifying your index.html to import the vimeo script as a proper script tag, as described here. Put the vimeo script on the head tag of the page, before flutter.js.
Using window.Vimeo from Dart directly.

Optional:

I'd recommend you didn't use js-interop by accessing the js.context, it's not type-safe and very verbose. You can define the API that your JS SDK exposes in Dart, with @JS, and then use more type-safe Dart code that is calling the underlying JS behind the scenes.

See what we did for the "Google Indentity Services JS SDK". Dart. JS SDK Docs. (find any method defined in JS in the Dart code for a "Rosetta stone" type of example)


Add a favicon

That's small problem for both sherlodoc and sherlocode - as don't have favicons it's hard to visually spot them in my list of tabs.

Very good point! (... I'm not an artist so the new favicons are very bland, but it's indeed better than nothing ^^)

They look great to me! Thanks!


How to send MMC Start event to DAW?

Hi Melanchall,
Is there a way to send an MMC Start event to a DAW?. I want to send the Start (Play) to Cakewalk and Studio One. What event class should i use to do that?
Thanks in advance.

Hi,
You should use StartEvent class. Please let me know if it works.

Hi, I have created and outputDevice bind to a virtual port.
Cakework uses that virtual port as inputDevice.
I send StartEvent using outputDevice but nothing happens on Cakewalk.
I do receive the Event Sent from outputDevice event handler.

Oh, I didn't notice that you talk about MMC. MMC messages are just system exclusive ones. The library doesn't contain dedicated classes for MMC messages at now (but I already have it in my backlog), so you should use NormalSysExEvent. According to this article – MIDI Machine Control – Play message is:
new NormalSysExEvent(new byte[] { 0x7F, 0x7F, 0x06, 0x02, 0xF7 })

Please try to send this event and let me know if it works.

Just a quick question: On the internet i found that Start MMC is F0 7F 7F 06 06 F7.  Why don't you use F0?

F0 will be written automatically by NormalSysExEvent. In the Wikipedia article I don't see Start message. 06 means Record Strobe (AKA [[Punch in/out|Punch In]]).

@eriveraa Any news?

@eriveraa I'm closing the issue. If you have new questions regarding this issue, reopen it.


Encourage generation of 2FA recovery codes

In order to cut down on 2FA reset requests, PyPI should encourage/require users to generate recovery codes.
Some ideas:

Require recovery codes to be generated before upload can succeed if 2FA is enabled
Require recovery codes to be generated before the user can log in
Require recovery codes to be generated as part of the 2FA setup

Additionally, require the user to burn one of the codes immediately after generation to ensure the codes have actually been downloaded/stored.

Additionally, require the user to burn one of the codes immediately after generation to ensure the codes have actually been downloaded/stored.

I think this is the only way to make sure users actually did write them somewhere.
If we could also check sometimes at login time that they have it (e.g. add a checkbox once every ~2 months asking them to check that they can still access their recovery code, without requesting that they enter one, just to make sure they're aware that it's a thing they might need, and highlighting that if they loose their 2FA app without recovery codes, they will be permanently locked out without any recovery procedure)


Fireprox-Support or any other IP rotation

Heyho!
I noticed for larger organizations the tool will be throttled heavily.
Sometimes there will be the message being throttled (sleep 5 seconds), but often it will just skip over the current check with the server response:
Invoke-WebRequest : The remote server returned an error: (429).

too many requests.
Would it be feasible to integrate Fireprox or do you think it makes no sense as there are too many different endpoint URLs?
Is there already something to throttle automatically also in the "getting users" part?
Speaking about 40-50k users :)

Yeah the throttling issues are something I want to dig more into. From what I've seen they are not always reproducible so it's been hard to determine exactly what is causing them. The Get-AzureADUsers module doesn't have that throttle currently but will be easy to add in so I'll add it to the todo list. Integrating Fireprox is definitely something we can try too but I'm not positive that the throttling is happening on IP-based actions so we'll just have to test it. Thanks!

Valid point. The limitations might be user based.
A user pool would be valid solution to this as often we spray 10+ people in larger companies which might scale the same way the user base does. :)


Rename the trys variable to attempts

This reads better.

Renaming a protected variable is technically a major breaking change.

But....

I made this class final, so we're probably good actually. ;)

:boom:

This needed renaming in the locker class too btw.

I'll do that and push to master.


Feedbacks incorporated

@Rizariz the second 'Open with Colab' button has the wrong link. Could you check, and also see if we can get just one button to appear?

will check and let you know


There was an error initializing your environment. Cannot read property 'xxxPreSignup' of undefined

Describe the bug
When trying to set up a new amplify environment i repeatedly see this error, when trying to deploy in the console, or checking out the new environment locally
Amplify CLI Version
4.36.0
To Reproduce

Create a new environment using the CLI, then try to deploy. Environment if fine initially locally, then fails in both the console and locally when checking out the environment, or running amplify init.

Desktop (please complete the following information):

OS: [e.g. Mac/Windows/Ubuntu] - Mac but happens in the console as well.
Node Version. 12.11.1

Additional context
The environment uses federated auth, with Google and a Cognito trigger for domain whitelisting.

Incase anyone else runs into this, I reverted back to 4.34.0 and all seems to be working again.
Looks like an issue with v4.36.0 specifically.

Incase anyone else runs into this, I reverted back to 4.34.0 and all seems to be working again.
Looks like an issue with v4.36.0 specifically.

thank you so much, it works for me

@dhoulker we are working on a fix for release. Will keep you updated once we have it out

This should be fixed in 4.36.1


looping null(getPermissions result) with foreach issue fix

drive getPermissions() method return null by default and getRawVisibility() directly looping the result

Without support since Jul 29, 2020


New App: AC:NH Villager

AC:NH Villager

Hi everyone! First-time contributor here--I've decided to leverage the ever-popular (and reliable) acnhapi.com to display a random villager from Animal Crossing: New Horizons including their in-game icon, personality, species, and catch-phrase with colors matching each character! Includes Schema options for translated names and catchphrases in different locales.
I went through some pretty thorough dev testing for API errors and name/species/catch-phrase lengths to ensure proper padding and alignment are achieved in any case. The error image is the green leaf furniture icon from Animal Crossing.
The villager's name should be center-aligned (or my best approximation) and the information on the right should be right-aligned--this is done by inserting spaces into the strings. It appears it's not possible to leverage align properties within the Marquee widget or Text/WrappedText children within a Marquee.
This app passes lint and check Pixlet functions.
My initial implementation was inspired by @vlauffer 's Fishbyt app. Thanks!

I have read the CLA Document and I hereby sign the CLA


Build the manip tool on Unix

Fixes #21

thanks!  this has been requested by several users.  the need for curses library makes it difficult on windows

The old autotools build system of GLE 4.2.x let you choose if you wanted to build manip with the --with-manip=yes configure argument. This PR just always builds manip on Unix and always requires curses or ncurses.
Another option would have been to make the build system only build manip if it detected that curses or ncurses was present. That would allow builds (without manip) on systems without curses or ncurses but it makes it less than straightforward for users who do have curses or ncurses but don't want manip to figure out how to disable it.
The ideal would probably be to introduce a new flag that users could specify when running cmake to tell it to build manip, and only then to require curses or ncurses.
I don't have experience building software on Windows or know what the situation is with curses or ncurses there.

This would be good to have this option at the cmake level.  I think ncurses is available when using mingw, but might be more difficult for MSVC.


Employee Details App

Creating application for tracking details of employees for reporting
Urgent need for COVID-19 situation
Requested by senior mgmt
< Add link to new repo here >

This is being tracked in milestone #48 HR White Listing app
https://github.com/sara-sabr/ITStrategy/milestone/48


Is it possible to add a average line in a chart?

Here is an example:

Seems only a Moving Average trend line is built in. You'd have to calculate that in PowerShell, add it to your dataset and include that column in the graph.

$data = ConvertFrom-Csv @"
Month,Sales
Jan,10
Feb,50
Mar,25
Apr,100
May,75
Jun,175
Jul,90
Aug,80
Sep,70
Oct,60
Nov,155
Dec,66
"@

$chartParams = @{
    XRange         = 'Month'
    YRange         = 'Sales '
    Title          = "Sales"
    ChartType      = 'ColumnClustered'
    ChartTrendLine = 'MovingAvgerage'
    NoLegend       = $true
}

$xlfilename = "./test.xlsx"
Remove-Item $xlfilename -ErrorAction SilentlyContinue

$data | Export-Excel $xlfilename -ExcelChartDefinition (New-ExcelChartDefinition @chartParams) -autosize -autoname -show

@dfinke thank you so much for the quick response.
It looks like Excel calls it “Combo Charts”. Here is an example https://www.xelplus.com/learn-excel-macros/
Do you know if the API reveals anything similar to that?


Course incorrectly refers to Llama as open source

Describe the bug
Throughout the course, it refers to the Llama LLM as "open source" - this is not factually correct.
To Reproduce
NA
Expected behavior
Provide an updated and accurate description of Llama models - they are proprietary
Screenshots
NA
Desktop (please complete the following information):
NA
Smartphone (please complete the following information):
NA
Additional context
https://blog.opensource.org/metas-llama-2-license-is-not-open-source/

Hi @094459 , thanks for flagging this and providing a source. Unless I overlooked it, the source you provided does not provide any alternative naming/category. If you have suggestions or educational sources that provide this, happy to review. We will consider a change if it still provides beginner learners with a good way to compare and understand the differences between LLMs.

It should be changed as it is very misleading to developers - so its not really acceptable to leave as is. If you want suggestions, then just removing "open source" typically works, as it is in effect a proprietary licence.

We will make note that the labelling it "Open Source" is a discussion in the community with a link to the resource you shared. Looking at the various educational resources and model libraries out there, they all list Llama2 as open source.  It would be more confusing to learners if we were not aligned with other resources they will use.
As a community we need to come to a greater consensus if open weights = open source and if the definition of open source needs to be reviewed in the age of LLMs.


rake task unknown

be rake rails4:check
Resque::Helpers will be gone with no replacement in Resque 2.0.0.
Resque::Helpers will be gone with no replacement in Resque 2.0.0.
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /Users/andriytyurnikov/Code/curriculet/server/Rakefile:7)
rake aborted!
Don't know how to build task 'rails4:check'

Sorry - customized load_path - not your issue.


110 remove jsonnumpy constructs

Most of the material is used in https://github.com/cvxgrp/cvxbson


Added untriaged issue workflow.

Coming from https://github.com/opensearch-project/.github/issues/133, create a GitHub workflow for labelling untriaged issues. Please ensure that an untriaged label with color  exists before merging.

@dblock You'll need to spotlessApply to pass the checks

Thanks for doing it for me.


Updating requirements step for start_windows.bat & Rename start_windows.bat to start_windows.cmd

If you are going to use py to launch the aplication you should use py to update the requirements.  py will use the most up to date version of python installed on the machine so if someone has multiple versions of python installed and just uses pip it might install the requirments to one version and then they try to launch it with another and it wont work.

.bat extensions use the 16-bit command processor command.com where as .cmd extensions us the newer 32-bit command processor cmd.exe it is recommended to use cmd.exe on all NT based systems.


compare_ultimate

@funilrys left you msg 7 days ago

Sorry, I do not get notifications from Gist comments will look asap.

Please take a look at https://gist.github.com/funilrys/900abd388b1f3b399a9da69e0e592fef#gistcomment-2411143 @xxcriticxx.
Have a nice day/night.


Adjust serverless operator codebase to the new repo structure

Description
Move operator's codebase into dedicated folders to match the desired serverless-manager repo structure
AC

[ ] codebase moved to the dedicated folders
[ ]  CI jobs adjusted, trigger paths in CI jobs - operator can be built and verified via CI jobs (pre and post submits)
[ ] repo is navigable via "serverless" alias

Reason
Serverless component was moved into serverles-manager

Blocked by https://github.com/kyma-project/serverless-manager/issues/344

Possibilities for repo "alias":
https://stackoverflow.com/questions/75017299/two-names-for-the-same-github-repo
https://docs.github.com/en/repositories/creating-and-managing-repositories/renaming-a-repository


(feat): Ignore Terraform lockfile

This change adds .terraform.lock.hcl files to the list of generated files that are ignored during runs.
As an aside, we likely will want to switch to a more robust system for handling if code is generated or not in the future. GitHub uses Linguist which looks at both file names and content: https://github.com/github/linguist/blob/master/lib/linguist/generated.rb. Doing so will require rearchitecting the current isGenerated() function substantially, so is being pushed for now given current project deadlines.

This change adds .terraform.lock.hcl files to the list of generated files that are ignored during runs.
As an aside, we likely will want to switch to a more robust system for handling if code is generated or not in the future. GitHub uses Linguist which looks at both file names and content: https://github.com/github/linguist/blob/master/lib/linguist/generated.rb. Doing so will require rearchitecting the current isGenerated() function substantially, so is being pushed for now given current project deadlines.

Linguist looks like a cool project. Can we track this need in JIRA? Otherwise, definitely glad that we're able to use our config file for quick unblocking!

Most definitely!
Adding the Terraform lockfile is here: https://hashicorp.atlassian.net/browse/ENGSYS2-547
I added a longer-term issue for the isGenerated() overhaul: https://hashicorp.atlassian.net/browse/ENGSYS2-548


Variable graphs

Trying to tackle #42 here.
I put the code for the computation of the scaled Laplacian in a function of linalg.jl since it had to be used in two different places. Should I have put it elsewhere?
I think I tested everything I wrote.
Let me know if this kind of code seems to be a good way to go, I will implement it for other layers on this PR if this does not get merged before.
I also added some dependencies to avoid warning during precompiling and based my branch upon develop since I needed some of the latest commits to make it pass the tests.

I also added the supports for the other conv layers.

I added https://github.com/yuehhua/GeometricFlux.jl/pull/44/commits/7ea6f620902158dbbcb8a99e0618f2976cf318b8 so the incremental compilation of GeometricFlux would not be broken. Because without this, if GeometricFlux is a dependency of another package (and it is the dependency of a package I'm working on), Julia cannot keep a precompiled cache of GeometricFlux, and it actually slows down my work very much.
Maybe I should open an issue about that subject, it could be great to find a way to use LightGraphs without having to add it as a dependency.

Thank you for PR. I am back!
First, I will fix the compatibility of dependencies. After some releases, I will be back to review these PRs. I must make sure the package is compatible and flexible for people to follow up to the latest version. Thank you for your patient and kindness.


Adding clarification for extension testing

Not all extensions will need real values (i.e. enterprise LOB extensions can use placeholders). I wanted to make sure this was called out.

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Attention mask counts padding tokens

I notice the attention mask in the function generate_and_tokenize_prompt is weird.
If we set attention masks like
"attention_mask": [1] * (len(full_tokens))

then, the padded token will be counted to calculate the attention matrix.
Therefore, we can make use of the encode_plus to directly get the attention mask without padded tokens

Isn't this irrelevant if attention is causal? The padding tokens are at the end.

I think they are different in the causal masks. Here is an example:
If the attention mask is
1  1  1  1  1  0 0

and the token list is
<s> <t1> <t2> <t3> </s> <pad> <pad>

Then we can calculate casual attention masks like
1  0   0  0  0  0  0
1  1   0  0  0  0  0
1  1   1  0  0  0  0
1  1   1  1  0  0  0
1  1   1  1  1  0  0
1  1   1  1  1  0  0
1  1   1  1  1  0  0

The causal attention mask stops before the padding tokens.
However, if the attention mask is
1  1  1  1  1  1  1

where the last two tokens are padding token
Then we can calculate a casual attention mask like
1  0   0  0  0  0  0
1  1   0  0  0  0  0
1  1   1  0  0  0  0
1  1   1  1  0  0  0
1  1   1  1  1  0  0
1  1   1  1  1  1  0
1  1   1  1  1  1  1

This attention mask will force the model to learn to decode <pad> even after seeing </s>

Interesting, you're probably right (although the DataCollator below actually makes this entire section of the code a no-op for now). Let me test this.

Resolved in #146


append port lib to readme

I want to keep continuing commit to zxcvbn and zxcvbn4j from now on too.
If alright, please want to introduce the zxcvbn4j in the README of zxcvbn.

Thank you so much for it add it in README.


Prefer environment variables over config files

fixes #834
also some gnarly rust to make it so we can control env vars in unit tests.
I can split this into a few PRs if the various refactors are too hard to grok; else I recommend reading this commit by commit, they are relatively clean.

we're not changing prior behavior wrt all or nothing precedence with environment variables and backwards compatibility.

the changes implemented here are changes we agreed upon in the issue.

i understand that we've agreed upon this in the issue and i still think that is the way we should be doing things for folks. i just want some confidence that we aren't gonna break people who currently have an api key in their global config and are using an environment variable for email. it doesn't make sense for them to be doing that, but if it's possible today, we shouldn't roll out something that will break them.


Persistency in onboarding flows

There are two flows available in the onboarding screen.

create new wallet
restore wallet from seed

There are scenarios when a user started the flow but hasn't finished and next start of the app should let a user to continue the flow where it was interrupted.
Create New Wallet Flow

persist the state of the warning screen, if a user for example acknowledges the warning but never taps the confirm button, next start should start at this screen with checked checkbox
persist the state of a phrase backup screen, there we require a user to confirm the screen by tapping the "I got it" button. If the flow is for any reason interrupted before this button is tapped, next start of the app must start at the phrase screen
consider the flow finished after the "I got it" is tapped

Restore Wallet Flow

persist the state when a user filled in a seed but hasn't finished the flow, either by tapping next or never finishing the birthday screen by tapping "restore", let a user to continue the flow and consider the flow to be finished after the "restore" is tapped

If a user has had the recovery phrase displayed to them, we probably need to ensure that the recovery phrase is not regenerated; if a user is shown the recovery phrase, they might have written it down, and if the wallet's seed then changes there's a risk that they could lose funds by failing to write down the new, different phrase.


ADB_EXECUTABLE not found when building with Android Studio

Execution failed for task ':app:buildCMakeDebug[arm64-v8a]'.

com.android.ide.common.process.ProcessException: ninja: Entering directory `D:\spock\Vulkan-Samples\build\android_gradle\app\build-native\Debug\4x4g2r6w\arm64-v8a'
[0/2] Re-checking globbed directories...
[1/4] Update assets in external storage
FAILED: app/CMakeFiles/sync.assets.stamp D:/spock/Vulkan-Samples/build/android_gradle/app/build-native/Debug/4x4g2r6w/arm64-v8a/app/CMakeFiles/sync.assets.stamp
cmd.exe /C "cd /D D:\spock\Vulkan-Samples\build\android_gradle\app\build-native\Debug\4x4g2r6w\arm64-v8a\app && C:\Users\PMH786\AppData\Local\Android\Sdk\cmake\3.22.1\bin\cmake.exe -DCMAKE_MODULE_PATH=D:/spock/Vulkan-Samples/bldsys/cmake/module D:/spock/Vulkan-Samples/bldsys/cmake D:/spock/Vulkan-Samples/bldsys/cmake/module -DFOLDER_DIR=D:/spock/Vulkan-Samples/app/../assets/. -DDEVICE_DIR=/sdcard/Android/data/com.khronos.vulkan_samples/files/assets/ -P D:/spock/Vulkan-Samples/bldsys/cmake/android_sync_folder.cmake"
CMake Error at C:/Users/PMH786/AppData/Local/Android/Sdk/cmake/3.22.1/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find Adb (missing: ADB_EXECUTABLE) (Required is at least version
"1.0.39")
Call Stack (most recent call first):
C:/Users/PMH786/AppData/Local/Android/Sdk/cmake/3.22.1/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
D:/spock/Vulkan-Samples/bldsys/cmake/module/FindAdb.cmake:50 (find_package_handle_standard_args)
D:/spock/Vulkan-Samples/bldsys/cmake/android_sync_folder.cmake:26 (find_package)

That message clearly states that ADB cannot be found. Is it installed (e.g. via the Android SDK)? You can simply test this by opening a command prompt and trying to run ADB from there. If that doesn't work ADB is either not installed, or not in your path.

After some work i finally got the path enviroment correct

thanks


adds endpoint info

Why:
Closes: https://github.com/github/audit-log/issues/2384?issue=github|audit-log|2438

What's being changed (if available, include any code snippets, screenshots, or gifs):

Check off the following:

[ ] A subject matter expert (SME) has reviewed the technical accuracy of the content in this PR. In most cases, the author can be the SME. Open source contributions may require a SME review from GitHub staff.
[ ] The changes in this PR meet the docs fundamentals that are required for all content.
[ ] All CI checks are passing.

@rrconey Howdy! 👋 Thank you for submitting a PR! Feel free to take this PR out of draft state once you are ready for the team to review 💛

Closing this PR out for now.


ci: zip export artifacts

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


Extras in dev dependencies are not locked

When I add a regular dependency, but also add it with additional extras in --dev, the extra required packages are not recorded in Pipfile.lock.
For example, requests[secutity] requires cryptography, but (for some reason) I only want the security extra for development:
$ pipenv install requests
...
$ pipenv install --dev 'requests[security]'
...
$ grep cryptography Pipfile.lock
# (no output)
$ pipenv run python -c 'import cryptography as c; print(c)'
<module 'cryptography' from '...'>
$ pipenv clean
Uninstalling 'asn1crypto'…
Uninstalling 'cffi'…
Uninstalling 'cryptography'…
Uninstalling 'pycparser'…
Uninstalling 'pyopenssl'…
Uninstalling 'six'…
$ pipenv install --dev
...
$ pipenv run python -c 'import cryptography as c; print(c)'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'cryptography'

Expected result
The cryptography package's hash should be recorded in Pipfile.lock, and if it gets uninstalled, pipenv install --dev should re-install it.
Actual result
The extra's requirements are not in Pipfile.lock; pipenv install --dev doesn't re-install them.
Steps to replicate
See above.

Resulting Pipfile
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
requests = "*"

[dev-packages]
requests = {extras = ["security"]}

[requires]
python_version = "3.6"

This is intended behavior currently — specifying the same dependency twice always privileges the non-dev version. We could consider merging them, but it would be better if you didn’t specify the same dependency more than once. The dependencies always get installed at once so we need a way to resolve conflicts— that means that dev entries lose to default

I'd guess that non-deterministic dev installs, as above, are not an intended consequence. Would that be right?
Should I document this in Caveats? Should pipenv detect this situation and fail?

Failing is an option, or merging these. The second one I just need to think about. I’m pretty sure it would be fine

As a brief update on this point -- you could consider trying out https://github.com/sarugaku/passa which will lock (but only in an activated virtualenv) and write to the lockfile in a pipenv compatible format.  It should handle conflicts gracefully and merge dependency sections as well.

I would like to add that this issue is more subtle, and more likely to occur, than what I've read so far.
For instance, with the following Pipfile:
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]
fakeredis = "*"

[packages]
rq = "*"

[requires]
python_version = "3.7"

You end up with the wrong version of the redis package:
fakeredis==1.0.2
  - redis [required: <3.2, installed: 3.2.0]
  - six [required: >=1.12, installed: 1.12.0]
  - sortedcontainers [required: Any, installed: 2.1.0]
rq==0.13.0
  - click [required: >=5.0, installed: 7.0]
  - redis [required: >=3.0.0, installed: 3.2.0]

As you can see, this is not just a matter of specifying the same dependency twice in your Pipfile. Maybe this should be a separate issue?

This should be fixed now thanks to work @dqkqd did on constraining the other develop dependencies from the default group, a principle that will be applied to other named category installs as well.


feat: add --version command line option

I hereby agree to the terms of the GreptimeDB CLA
What's changed and what's your intention?
Please explain IN DETAIL what the changes are in this PR and why they are needed:

Add --version command line option to greptimedb for build information.

Checklist

[x]  I have written the necessary rustdoc comments.
[x]  I have added the necessary unit tests and integration tests.

Refer to a related PR or issue link (optional)
#550

By the way, I've updated the PR description to show --version instead of version

This change introduces git as build dependency.

This change introduces git as build dependency. Docker image for build needs to be updated

@sunng87 Get. Let me send a pr to fix this.


Identifier for rules to allow for flexibility in choosing which subset of rules to model

Allowing selection of rules based on identifiers will allow us not to have to segregate them into functions and call only the required functions.

I am going to close this one since the PSL interfaces and motifs have changed considerably since this was initially opened.
With the CLI and new interfaces, marking the rule sets consistently is more burdensome than just managing them externally.


Fuzzy Function ID

Is your feature request related to a problem? Please describe.

The only static libraries I have access to are a slightly different version than my target executables.
This causes them to be in the order of just a few % different from the executable, per function.
They are therefore unusable for me (but could conceivably still work with some fuzzy matching up to a threshold).

Describe the solution you'd like

As I understand it functions currently have to be exact since FID is based on hashing.
I would like there to be an option for "fuzzy" function ID that can tolerate small differences up to a threshold.

Describe alternatives you've considered

Making a script for it maybe (or, does one exist already?)

Additional context
I can't be the only one running to this issue surely, yet I've found nothing from some googling.

An alternative is using the Rizzo scripts here:
https://github.com/tacnetsol/ghidra_scripts/blob/master/readmes/rizzo.md
Works great in my experience.

An alternative is using the Rizzo scripts here:
https://github.com/tacnetsol/ghidra_scripts/blob/master/readmes/rizzo.md
Works great in my experience.
Not much luck...

@pabx06 Perhaps the API changed in 9.2 and that's the cause of that error. I've only used them with 9.1.2, so you can try that.


Need a3 mission for run 3c.

Need k3c bot. Is it in your TODO list.

Hi, I am not really sure what this is. Questions will be answered on the Discrod (https://discord.gg/Jf3J8cuXWg). We try to keep github issues for bug reports only, thx.

Hi, I am not really sure what this is. Questions will be answered on the Discrod (https://discord.gg/Jf3J8cuXWg). We try to keep github issues for bug reports only, thx.

that's travincal's senator


Add: documentation for rxrtbBidAdapter

adapter pull request https://github.com/prebid/Prebid.js/pull/1950

The REXRTB team goes to DMEXCO 2018! Don't miss a chance to meet us in
Cologne, Germany on September, 12-13.
We'd be happy to talk more about programmatic advertising solutions and
explore new partnership opportunities.
To set up a meeting please drop us a line
Best,
Nadya Kucherenko
Senior Programmatic Manager
skype: nadyakucherenko_picella
+442032907875
http://picellaltd.com/


How to close a connection gracefully?

Running the below code in two different terminals, if one instance is stopped (ctrl + c), the other instance just crashes !!
const hyperswarm = require('hyperswarm')
const crypto = require('crypto')
const swarm = hyperswarm()
const topic = crypto.createHash('sha256').update('my-hyperswarm-topic').digest()
swarm.join(topic, {lookup: true, announce: true})
swarm.on('connection', (socket, details) => {
  console.log('new connection!', details.peer)
})

The crash happens with below error:
events.js:186
      throw er; // Unhandled 'error' event
      ^

Error: read ECONNRESET
    at TCP.onStreamRead (internal/stream_base_commons.js:183:27)
Emitted 'error' event on Socket instance at:
    at emitErrorNT (internal/streams/destroy.js:91:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
    at processTicksAndRejections (internal/process/task_queues.js:77:11) {
  errno: 'ECONNRESET',
  code: 'ECONNRESET',
  syscall: 'read'
}

It is not clear why the app would crash if its peer exits. How to handle this gracefully?
Tried doing socket.end on the other app. But that would keep reconnecting.

You have to error handle the socket by attaching an onerror handler to the stream

Thank you. Calling socket.end() causes the connection to reconnect indefinitely. How to control this behavior? For example,
	swarm.on('connection', (socket, details) => {
		if(some condition met)
			socket.end(); // close the connection
	})

But this keeps reconnecting. How to avoid it, and just close (and stay closed) ?

a guess, @KrishnaPG tell if it works
swarm.on('connection', (socket, details) => {
  if(some condition met) {
    details.ban() // stop reconnecting to peer
    socket.end(); // close the connection
 }
})

https://github.com/hyperswarm/hyperswarm#infoban

Thank you @freddi301 Wouldn't ban() prohobit the reconnection to that peer forever (as in next time if we need to search, say, when the current active connection goes away and need to find alternatives)?

According to docs peers gets banned for queue.banned
Option 1: info.ban() + hyperswarm({queue: {banned: 4000}})
Option 2: info.ban() + info.backoff() (found here https://github.com/hyperswarm/hyperswarm#infobackoff)
Option 3: info.ban(true) (found here https://github.com/hyperswarm/hyperswarm/blob/master/lib/peer-info.js#L113)
Option 4: use underlying modules to implement your own swarm (https://github.com/hyperswarm)
what is your goal?

close connection and stop connecting to the peer
close connection but keep reconnecting to the peer
close connection and stop connecting to that peer for limited time


Reconnect functionality

Hi,
Do you think it makes sense to implement an automatic reconnect functionality in the loop() method?
The use case is if for some reason the MQTT server gets restarted the end-device does not attempt to automatically reconnect.
I usually implement that on my own in a separate method but it could be even better to have it in the loop() of the library. I did that for my own projects and it appears to be pretty stable. What I use is Timer library but it can be done with a sample timestamp using millis() as well.
If you find this enhancement as useful I can propose a solution with PR. Please let me know.
Cheers,
Konstantin

A sample code that I use:
void mqttLoop() { 	if (!mqttClient->loop() && !mqttDisconnectDetected) { 		Serial.println("Disconnect detected. Will attempt reconnect in designated time frame"); 		mqttDisconnectDetected = true; 		mqttReconnectTimer.after(MQTT_RECONNECT_ATTEMPT_INTERVAL, &mqttConnnect); 	} 	mqttReconnectTimer.update(); }

I'd prefer to not do this (or at least make it optional) as a connect can take some time and sometimes you really don't want the code to get stuck at a function that usually only takes a fraction of a second

I can understand that. The reason for the request is that if loop does not pass, it could be for a good reason (disconnect) and there is no option to get around that. Is there any other reason the loop to not work properly? (a packet timeout?)


Nested orderBy causes relationship fields to be returned as string in SQLite

Evidently using ORDER BY with json_group_array causes SQLite to return a string array instead of a JSON array. This is on top of serializing the whole field as a string to begin with (which we already parse back into JSON on the application side). This is causes child fields on relationship fields to resolve to null since the parent object ends up being a string. Since this is apparently "working as intended" on the SQLite side, we need to implement an appropriate work around.

Fixed by 9cfa02471583230b2c873ab9ef2756d089f13415


save support on windows

Essentially, just need to install these browsers on Windows and see where they typically install to, add the corresponding paths to each Browser file in the data_directories function

Am unsure of if this would be better do code for in WSL or in the windows cmd shell?
I pretty much only use WSL, so would probably use something like wslvar USERPROFILE to get the users C: dir and then perform a find relative to that?
If anyone has any opinions on how to do this, let me know

At least for Firefox the base folder is %appdata%\Mozilla\Firefox\ on my system and the database being in Profiles\<profile> in case this help people coming along in the future

can use os.path.expandvars, like in #40

will close this in favor of #42 and #44


Add top level domain as image host (allowed URL)

Describe the feature
If technically possible, add top level domain as the allowed domain for image hosting (URL link to the image). So if in case of some image host of the community (like some server or CDN), you could save the image elsewhere rather then having it in the DB or instance of SnailyCAD at all.
Additional Context
No response

This isn't possible due to limitations of Next.js.


Control bar height issue on Firefox

Describe the bug
Height looks correct in Chrome; way too tall in Firefox.
Seems related to this recent commit: https://github.com/vlitejs/vlite/commit/6fc9c350b88ece7e819575eb8689c41efeedf91e
Not sure why the extra  + 10px in the CSS?
Steps to reproduce
Compare the controlbars between Chrome and Firefox. Screenshots below.
Expected behavior
Consistent controlbar heights across browsers
Screenshots and recordings
Chrome 122:

Firefox 123.0.1:

Vlite.js
6.0.2
Browser
Chrome 122, Firefox 123.0.1
OS
macOS 14.4
Additional context
Thanks for your great work on this project, btw :)

Hello @mgibbs189, thanks for your feedback, appreciate!
The fix will soon be available in the next release.


Images

Hi,
I just noticed that preview images don't show on the web client and I was wondering if there was any way you could make this work?
Thanks!

Howdy @MrRubberDucky99 :)
Conventionally, this wouldn't be possible due to problems within the PP7 stage display API around any sort of static or live slides ... However, I've been working on a solution of sorts involving the remote protocol and pulling the current presentation slides.  It's not perfect, but its


Moved eval_answer from tools to core

This PR closes #53 .
I moved eval_answer from tools.utils to aviary.utils.
It can be imported through aviary.core.

However, aviary_internal uses this function in two envs


Reverse look up

Would it be possible to make loot lookup be able to search items instead of monsters so that it shows what monsters drop said item and their drop rate?

@Deathlysmiles This plugin is primarily focused on monster drops. Would it be worth the effort to significantly redesign this plugin entirely to accommodate both monsters and items?
Have you tried this plugin?
https://runelite.net/plugin-hub/show/not-enough-runes

I very much appreciate the link to that plugin! Life saver!


opencv-python does not install on Python 3.10 on macos

System information (version)

OpenCV => opencv_python-<IP_ADDRESS>-cp39-cp39-macosx_10_15_x86_64.whl
Operating System / Platform => macOS 11.6, Xcode 13
Compiler => Apple clang version 13.0.0 (clang-13<IP_ADDRESS>)

Detailed description
I can install opencv-python with Python 3.9, but not with Python 3.10
Python 3.9:
% pip install opencv-python
Collecting opencv-python
Using cached opencv_python-<IP_ADDRESS>-cp39-cp39-macosx_10_15_x86_64.whl (42.6 MB)
Collecting numpy>=1.19.3
Using cached numpy-1.21.2-cp39-cp39-macosx_10_9_x86_64.whl (17.0 MB)
Installing collected packages: numpy, opencv-python
Successfully installed numpy-1.21.2 opencv-python-<IP_ADDRESS>
Python 3.10:
I get lots of compiler errors. Please note that even though those errors seem to come from numpy, I can install numpy by itself no problem. I only get these errors when installing opencv-python package.
                                /* DISABLES CODE */ ( )
    3 warnings generated.
    clang: build/src.macosx-10.9-universal2-3.10/numpy/core/src/umath/matmul.c
    clang: build/src.macosx-10.9-universal2-3.10/numpy/core/src/umath/clip.c
    error: Command "clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DNO_ATLAS_INFO=3 -DHAVE_CBLAS -Ibuild/src.macosx-10.9-universal2-3.10/numpy/core/src/umath -Ibuild/src.macosx-10.9-universal2-3.10/numpy/core/src/npymath -Ibuild/src.macosx-10.9-universal2-3.10/numpy/core/src/common -Inumpy/core/include -Ibuild/src.macosx-10.9-universal2-3.10/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/Users/max/Developer/Python/ocv10/.venv/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -Ibuild/src.macosx-10.9-universal2-3.10/numpy/core/src/common -Ibuild/src.macosx-10.9-universal2-3.10/numpy/core/src/npymath -c build/src.macosx-10.9-universal2-3.10/numpy/core/src/multiarray/scalartypes.c -o build/temp.macosx-10.9-universal2-3.10/build/src.macosx-10.9-universal2-3.10/numpy/core/src/multiarray/scalartypes.o -MMD -MF build/temp.macosx-10.9-universal2-3.10/build/src.macosx-10.9-universal2-3.10/numpy/core/src/multiarray/scalartypes.o.d -msse3 -I/System/Library/Frameworks/vecLib.framework/Headers" failed with exit status 1
    ----------------------------------------
    ERROR: Failed building wheel for numpy
  Failed to build numpy
  ERROR: Could not build wheels for numpy which use PEP 517 and cannot be installed directly
  WARNING: You are using pip version 21.2.3; however, version 21.2.4 is available.
  You should consider upgrading via the '/Users/max/Developer/Python/ocv10/.venv/bin/python3 -m pip install --upgrade pip' command.
  ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/01/9b/be08992293fb21faf35ab98e06924d7407fcfca89d89c5de65442631556a/opencv-python-<IP_ADDRESS>.tar.gz#sha256=3c001d3feec7f3140f1fb78dfc52ca28122db8240826882d175a208a89d2731b (from https://pypi.org/simple/opencv-python/) (requires-python:>=3.6). Command errored out with exit status 1: /Users/max/Developer/Python/ocv10/.venv/bin/python3 /private/var/folders/kt/g66b03xn5hjbm81l9vv6m_wh0000gn/T/pip-standalone-pip-r_csb3tj/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /private/var/folders/kt/g66b03xn5hjbm81l9vv6m_wh0000gn/T/pip-build-env-rl9ustgb/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel scikit-build cmake pip 'numpy==1.13.3; python_version=='"'"'3.6'"'"' and platform_machine != '"'"'aarch64'"'"' and platform_machine != '"'"'arm64'"'"'' 'numpy==1.19.3; python_version>='"'"'3.6'"'"' and sys_platform == '"'"'linux'"'"' and platform_machine == '"'"'aarch64'"'"'' 'numpy==1.21.0; python_version>='"'"'3.6'"'"' and sys_platform == '"'"'darwin'"'"' and platform_machine == '"'"'arm64'"'"'' 'numpy==1.14.5; python_version=='"'"'3.7'"'"' and platform_machine != '"'"'aarch64'"'"' and platform_machine != '"'"'arm64'"'"'' 'numpy==1.17.3; python_version=='"'"'3.8'"'"' and platform_machine != '"'"'aarch64'"'"' and platform_machine != '"'"'arm64'"'"'' 'numpy==1.19.3; python_version>='"'"'3.9'"'"' and platform_machine != '"'"'aarch64'"'"' and platform_machine != '"'"'arm64'"'"'' Check the logs for full command output.
  Using cached opencv-python-<IP_ADDRESS>.tar.gz (88.3 MB)
  Installing build dependencies ... \^canceled
ERROR: Operation cancelled by user

Steps to reproduce
Install Python 3.10
pip install opencv-python
Issue submission checklist

[x] I report the issue, it's not a question

[x] I checked the problem with documentation, FAQ, open issues,
forum.opencv.org, Stack Overflow, etc and have not found solution

[x] I updated to latest OpenCV version and the issue is still there

[x] There is reproducer code and related data files: videos, images, onnx, etc

Failed building wheel for numpy
numpy

This is.

Do not expect that packages would be successfully installed of they are released before of their dependencies. Check and compare release dates first (it is not hard) and wait for updates.

Python 3.10 support is not there yet. Expected to be there in 4.5.4 release.
Duplicates https://github.com/opencv/opencv-python/issues/552

https://github.com/opencv/opencv-python/pull/556


Assembly Error When Connecting in Remote Session

Reporting an Issue or Missing Feature
Not sure if this is considered a framework issue or not. When connecting to a Remote Powershell session and trying to connect to our SPO admin URL via application authentication with a certificate I receive a missing assembly error. If I RDP directly to the server and run the same cmd it runs as expected. This is on Powershell 7.2.8 on Server Core 2022.
Expected behavior
Connection succeeds
Actual behavior
Could not load file or assembly 'PnP.PowerShell.ALC, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null'. Uncaught exception during type initialization. (0x80131534)

Steps to reproduce behavior
$Thumbprint = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
$ClientID = 'XXXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'
Connect-PnPOnline -Url 'contoso-admin.sharepoint.com' -Thumbprint $Thumbprint -ClientId $ClientID -Tenant 'contoso.com'

What is the version of the Cmdlet module you are running?

(I've also tried the latest non-nightly build)
Which operating system/environment are you running PnP PowerShell on?

[x] Windows
[ ] Linux
[ ] MacOS
[ ] Azure Cloud Shell
[ ] Azure Functions
[ ] Other : please specify

hi @JAK1047 , can you please give it a try with the latest nightly builds and let us know ? We bumped quite a few dependencies , maybe will help in your environment ?

Yep looks like 2.0 updates things like the Microsoft.Identity.Client DLL to 4.50 from the 4.36 it had which solves the conflict loading. No longer got any errors.

Thanks for confirming and letting us know.
closing it as fixed


all conversion function should return tuples

this fix #12.
As suggested by @hartwork here. This breaks the API so this should be pulled as new major version 1.

I see changes unrelated to returning tuples in here:
* move of two functions

* formatting changes of floating point constants

I'd vote for getting both out of here.

I'm sorry. Is true this is unrelated to the title of the PR. Fixing...

Thank you @hartwork. Fixed the decorator out type and rebased master.

I didn't pull from the recent master, oops. Rebase is now correct and the unwanted changes have been removed as suggested. The workflow with git rebase -i and git add -p is awesome, thank you again. Just to give some feedback, you need also to git reset @^ before git add -p and to keep the original commit msg just git commit -c ORIG_HEAD and done, you have splitted a commit.

Pff, I think I missed those in the patch. Now ❯ fgrep -n 'return [' hsluv.py returns empty :)


Email validation fails
What is the current behavior?
Email validation succeeds
What are the steps to reproduce?

Input an email in format user@domaincom without dot between domain and com
Providing a StackBlitz reproduction is the best way to share your issue.
StackBlitz starter: https://stackblitz.com/angular/eaaxpopenenr?file=app%2Finput-error-state-matcher-example.ts

What is the use-case or motivation for changing an existing behavior?
Fix email validation
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Material 7.0.4
Is there anything else we should know?

Isn't it way too strange for internet services operating in the WWW? My first assumption when I saw this was that this isn't the clear way and allows users to make mistakes.
My fault is that I didn't check RFC before submitting, now I see that this domain actually is valid from RFC perspective

Angular Material does not include any validators itself. You may be looking for @angular/forms, which lives on the main angular/angular repo.


Easily misleading knowledge base document references for users.

I've identified an issue where if a question I pose does not exist in the vector knowledge base, it still displays the reference document information, and the content of the referenced document is incorrect. This can lead to user confusion, as they might think the answer comes from the vector knowledge base when it actually doesn't.
Could it be modified so that if the content to be queried does not exist in the vector knowledge base, the reference link is not displayed? This way, users would understand that the answer comes from the large model, not the vector knowledge base, making it clearer. Thank you!

If you do not want to see "irrelevant" citations open the workspaces settings and increase the "Document Similarity Threshold"
It is low on purpose so that it err's on the side of providing sources vs not. This is not a bug and is just a principle of RAG.


feat(es/codegen): Add the option to ignore typescript

Description:
This change adds the option to ignore TS when printing.
Currently, to print an AST that contains TS nodes as valid JS, one would first have to transform it. This change makes it possible to directly print valid JS while also retaining the original AST with the TS nodes.

Closing as there are too many concerns


1.3-dev multiserver / warn players

f3df26e adds an option to warn players for a configurable amount of time before updating the server.  This plus a cron job should satisfy #21
6d1a154 adds an option to start / stop all servers specified in the config_xxxxx settings in the config file.
904db69 updates the init scripts to use the above option.  This plus the previous commit should satisfy #62.

Might push this back to next release.


No implementation for IDependencyResolver is registerd

In order to resolve registered dependencies by name, I use an instance of IDependencyManager in my services. But IDependencyManager provides register functionalities as well that I don't intend -and as the container is already built at this stage, probably am not supposed- to use. All I need is the functionalities that IDependencyResolver provides. But the problem is IDependencyResolver does not get injected. It would be nice if you register AutofacDependencyManager as an implementation of IDependencyResolver as well!

You could inject IServiceProvider

How can I use IServiceProvider to resolve a named dependency?

How can I use IServiceProvider to resolve a named dependency?

Good question! ;D
Let me check a few things first!

any updates?


Make the "max file size" that students can upload a configurable option

See app\controllers\submissions_controller.rb, line 311.

I can fix this


feat: implement 'add user' feature

This commit implements the 'add user' feature, which is responsible for adding a user to the database. Additionally, the schema, use case, and endpoint for this functionality have been added and tested.
Closes JIRA-2.1

Add the 'add user' feature tested.


Hiding Favorites From Navigation Pane

Description
I decided I was gonna hide "Favorites" by Right-clicking on it and selecting "Hide Favorites" Unfortunately when I did that, an error message popped up saying the Files encountered an error. The app then closed and popped back open. Not sure if it was something i did or what. First time trying out the app and seeing what it can do!
Steps To Reproduce

Click on Fullscreen
If "Favorites" is enabled, right-click on it and select "Hide Favorite"

Expected behavior
I expected the 'Favorites" section to be removed from the Navigation Pane and the app to continue running as normal.
Files Version
Version: <IP_ADDRESS> OS Version: 10.0.22621.1
Windows Version
Windows 11 22H2 22621.1
Relevant Assets/Logs
debug.log
debug_fulltrust.log

Relevant error:

2022-05-30 12:42:12.3290|ERROR|AppUnhandledException|Invalid pointer

Object reference not set to an instance of an object.
System.NullReferenceException: Invalid pointer
Object reference not set to an instance of an object.
at System.Runtime.InteropServices.McgMarshal.ThrowOnExternalCallFailed(Int32, RuntimeTypeHandle) + 0x21
at __Interop.ComCallHelpers.Call(__ComObject, RuntimeTypeHandle, Int32, Void*, Void*) + 0x48
at System.Collections.Specialized.NotifyCollectionChangedEventHandler__Impl.Invoke(__ComObject, Object, NotifyCollectionChangedEventArgs) + 0xb0
at System.Action2.InvokeClosedStaticThunk(T1, T2) + 0x2e    at System.Action2.InvokeMulticastThunk(T1, T2) + 0x4e
at System.EventHandler1.Invoke(Object, TEventArgs) + 0x2e    at Files.Uwp.Helpers.BulkConcurrentObservableCollection1.OnCollectionChanged(NotifyCollectionChangedEventArgs, Boolean) + 0xc5
at Files.Uwp.Helpers.BulkConcurrentObservableCollection`1.Remove(T) + 0xb1
at Files.Uwp.ViewModels.SidebarViewModel.d__64.MoveNext() + 0x3f6

@MMZThumper thanks for the report. Was it just once or it happens every tome you try?


Create User Account with Multiple Providers

Feature request: Allow a user to log in with multiple providers
Requirement
A user should be able to log in with more than one provider.  For example:

A user authenticates with Facebook and creates an account in my app.
The user decides to quit Facebook.
The user wants to log back into my app at a later time, but cannot.  The user should be at minimum be able to "sign in with email" and enter their email address and a password, then verify their email, and get access to their user account.

Another example:

User creates an account in my app with Google.
User comes back a month later and can't remember which provider they used, so they try to log in with Facebook.  They can't -- because they already have a Google-provider account.
The user should be able to authenticate with Facebook now as well, assuming they use the same email address with both providers.

Firebase handles this, albeit not very elegantly.  This is an opportunity to make a much more flexible authentication system.
Describe alternatives you've considered
At this time, it appears that you'd need to create a separate user account, which would not give the user access to data they have previously created inside my app.
Additional thoughts
If a change to the core user object isn't possible here, how about a table of user aliases at least, where a user can log in using a provider (even if it's not their "first" or "main" provider) then once logged in the credentials are set to that of the main account.  Not super clean, but might be quicker to implement.

I would find this useful as well.

@Nick-Mazuk It appears that this is now working.  I set up an app with multiple providers and I can log in using any of them and it appears to access my same account as long as my email address is the same for each provider.  Works great!


IMPROVE ABOUT US SECTION

There is a bug in about us page where Learn More button is coinciding with heading also the footer section is coinciding with the cards .
I would like to fix that issue.
Please assign this issue to me
Earlier

After Fix

you can start working on this, but test the code with all media queries

Ok . Thanks for assigning it to me.

Sir currenty i am working on making this about page responsive , is it okay?

currently this much is done
Uploading Untitled.mp4…

currently this much is done
https://github.com/JasonDsouza212/free-hit/assets/129520458/7013a4b6-4efc-4b40-9ef1-8b654bcd20c7

It looks okay. As far as I know, when I use Linux and view it in Chrome, I see the exact result.
Screencast from 28-05-23 06:37:32 PM IST.webm
Can you confirm again using it in some other system

i have recorded from windows

@whizzy23  can you increase the card width a little bit more , because it's looking too thin

ok I will increase the card width , also I have done these changes for mobile dimensions accordingly


Update documentation to reflect memory-leaking anti-pattern

So, apparently there exists a distinct anti-pattern ( I guess? ) which still somehow feels sort of natural, but which will crash even a simple application due to memory over-consumption. See referenced project for example - below follows findings from a 49-run Instruments party :)
When creating custom views which in turn includes subviews, assigning the returned RMQ-object to an instance-variable (as is the common pattern when not using RMQ/RedPotion and in Obj-C), such as:
class SomeView < UIView

def initWithFrame(rect)
if super
@label = append!(UILabel, :some_style)
end
self
end
end

will create a hard, circular reference which will prevent this view from being deallocated at all. This doesn't create major issues with table views, collection views and similar due to re-use, but crashes for example most kinds of custom display views (I detected the issue using a ZLSwipeableView, but has managed to recreate it using most common patterns), where it's expected that nilling all references will result in deallocation.
Changing @label to label solves the issue, but that's not the standard pattern.
Either the object returned needs to keep weak refs (to the controller, I guess?) instead, or the documentation needs to be updated to clearly state that this is an anti-pattern when using RedPotion, and clearly advocate the:
find(self).children(author_name_style).get.text = shorti.author_name

pattern instead.
I'll be happy to PR either way, but would love some feedback on which way to go.
See https://github.com/buffpojken/append-memory-leak for example displaying the issue.

Yeah, this is something I've done for a while. I usually use the cleaner .data version:
find(:author_name_style).data(shorti.author_name)

Sure thing, that's what I actually use as well.
But I think it would be neat to make this much more explicit in the documentation, since storing references in instance vars is sort of an expected pattern when not using RP?

I agree!

I'll write something up and PR it.


Building AI Assistance Using Spring AI's Function Calling API

Ref: https://docs.spring.io/spring-ai/reference/api/functions.html
Word-limit: 1000

PR: https://github.com/Kode-Sastra/java-tutorials/pull/11

Article published
https://www.kodesastra.com/2024/12/building-ai-assistance-using-spring-ai-function-calling.html?m=1

Done.


Safe wrapper around window code

Make the wrapper safer and more rust-like, especially for the opengl part that heavilly uses unsafe.

Wrapper for Shader was added, but rest is deferred to week 34-35

Further wrapper have been created for rendering by @TheAzack9, closing for now.


HTML anchors data seems to be broken

https://github.com/tabatkins/bikeshed-data/commit/6bd7031f849ac147a15a68994b49911dfed6b8a0 appears bring some breaking changes. Lots of anchors data (I've observed only HTML spec) have changed for some reason that I'm not yet understanding (no changes in HTML spec source).
Did something change in Shepherd's parsing? I've used a backup in ReSpec to handle the present breakage.

http://hg.csswg.org/dev/specification/rev/d6e5dc2618c8 seems a bit related. cc: @plinss

Indeed, HTML has

Yeah, my bad. I reverted that change.
Bikeshed is generating  for references to methods and other IDL entities, this was causing Shepherd's parser to try to parse them all as IDL, and generating a lot of errors. I forgot that the HTML spec puts the 'idl' class on the  rather than the
 as Bikeshed specs do.
I'd still like to get rid of the errors in Shepherd (and I'm concerned that doing extra IDL parsing may confuse valid IDL anchors). This would require either all specs to use
 or Bikeshed (and possibly ReSpec) to stop generating , or some other way of differentiating them.
I suppose if HTML is consistent about always using
 I can detect that, and only process  inside a
. Do we know if that's ensured?

If we ask specs to use updated tooling with the behavior we desire, it will take some time to republish all the specs, and all might not even agree to do so. Might be better to special case HTML/WHATWG specs instead if needed.

I suppose if HTML is consistent about always using
 I can detect that, and only process  inside a
. Do we know if that's ensured?

Running following on the HTML spec (tested on single-page version, and some multipage ones) shows it is consistent about it:
$$("code.idl").length == $$("code.idl").filter(el => el.parentElement.localName === "pre").length

That is, there are no code.idl outside
.
At https://infra.spec.whatwg.org/ and https://w3c.github.io/ambient-light/ (Bikeshed):
$$("code.idl").length > $$("code.idl").filter(el => el.parentElement.localName === "pre").length
$$("code.idl > a").length == $$("code.idl").length
$$("code.idl *:only-child").length ==  $$("code.idl").length
// only code.idl outside a pre contain a single link

So, I think it's safe to process pre > code.idl and pre.idl only.

Cool, thanks for looking at that for me @sidvishnoi. I'll make the change to Shepherd's parser.


[PT-BR] Translation of files.md

Add tsconfig-referece/copy/pt/options/files.md

@khaosdoctor, @alvarocamillont, @danilofuchs e @orta.

I did the adjustments @danilofuchs. Thank you!

LGTM

lgtm

lgtm

Heh, this PR is just gonna be a few more LGTMs I think

If necessary, I can make another PR. Just ask me. Thank you!

No worries, I was working on the translator automation
Which now works!


Want to know how many hours you spend when you train the model with t=6,cw on resnet18 on CIFAR10 on your GPU

Hi, I want to know how many hours you spend when you train the model with t=6,cw on resnet18 on CIFAR10 on your GPU.
Thank you for the code, expecting for your reply, thank you in advance!

On average, it takes around 396 sec., which is recorded in the training log, for an iteration (one epoch of training + one epoch of testing) on a single A100 card.  I did not precisely record the time cost for completely training a resnet18 on cifar10.  But I guess we can speculate the time cost is about 22 hours (396 * 200 / 60 / 60).  The training may cost slightly more time in my practice due to the server's performance.

2022年12月5日 11:27，SpikingGood @.***> 写道：
Hi, I want to know how many hours you spend when you train the model with t=6,cw on resnet18 on CIFAR10 on your GPU.
Thank you for the code, expecting for your reply, thank you in advance!
—
Reply to this email directly, view it on GitHub https://github.com/Ikarosy/Gated-LIF/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQ7LIFAHYGSZROAUUE4U3ALWLVOJJANCNFSM6AAAAAASTYZRBQ.
You are receiving this because you are subscribed to this thread.

OK I got it, thanks a lot for the reply!!


Allow flexible basePath

In future versions, a flexible basePath should be allowed.
For that we have to provide easy-to-user helper functions for both fileBased and groupBased files.

I agree. In many of my uses, I would like to set basePath  and particlesPath to / . Could this be done with the 2.0 standard?

I agree with Chris. This should be an easy thing to specify and it would save code maintainers time to implement this with 2.0 rather than later.

Sounds good! :+1:
(I am on vacation from today until next Sunday, but placed it already on the list.)

So I propose that basePath can be any absolute (must begin with "/") directory specification. If basePath does not have a "%T" then there is no more than one messes group and no more than one particle group.


Move CommandNotFoundException suggestion to an experimental feature

PR Summary
Make the suggestion on a CommandNotFoundException an ExperimentalFeature.
PR Context
The current design of suggestions is closely tied to the host (ConsoleHost in this case).  The ConsoleHost checks if there was anything from the last command and initiates an evaluation of suggestions.  The evaluation of suggestions checks if the last command failed by looking at $?.  If so, then it applies each suggestion.  In the case of CommandNotFound, this is based on looking at the ErrorRecord at $Error[0] which is one problem with the suggestion framework as it only looks at the most recent error.  If found, it applies this new suggestion and it outputs the possible commands.  The problem is if a script is run in the command line (or part of a pipeline), and the ErrorAction is SilentlyContinue, the error still shows up in $Error so the suggestion applies, but because you don't see the non-terminating error message, you have no context of how the suggestion applies.
A proper fix is much more complicated as it requires redesigning the suggestion framework:

Currently, suggestions are initiated by the host (consolehost in this case) and should be part of the ErrorRecord so that it works correctly remotely and in other hosts
ErrorRecord has a member called RecommendedAction that should contain the suggestion
The code to invoke getting suggestions needs to be moved out of consolehost and closer to where the ErrorRecord is created
Formatter for ErrorRecord needs to be updated to show the RecommendedAction member
Suggestions should be in its own stream or Information stream rather than written directly to the host

Temporary resolution to https://github.com/PowerShell/PowerShell/issues/8793
No test added/modified as suggestions are currently written directly to the host.
PR Checklist

[x] PR has a meaningful title

Use the present tense and imperative mood when describing your changes

[x] Summarized changes
[x] Change is not breaking
[x] Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright header
[x] This PR is ready to merge and is not Work in Progress.

If the PR is work in progress, please add the prefix WIP: or [ WIP ] to the beginning of the title (the WIP bot will keep its status check at Pending while the prefix is present) and remove the prefix when the PR is ready.

User-facing changes

[x] Not Applicable
OR
[ ] Documentation needed

[ ] Issue filed:

Testing - New and feature

[x] N/A or can only be tested interactively
OR
[ ] Make sure you've added a new test if existing tests do not effectively test the code changed

[ ] Add [feature] to your commit messages if the change is significant or affects feature tests

@anmenaga I believe we can merge this


On iOS (Chrome / Safari) when submitting an embedded form with client-side errors, the page scrolls to the last input with an error instead of the first

We should confirm if this is an issue with the latest ENGrid build or if it has been resolved already.
--
Not sure if this is an issue with ENGrid of our Seamless iFrame plugin(s). It was observed both with the WordPress and CraftCMS plugin.
Testable Pages
REF: http://eniframe.ngrok.io/about
REF: https://www.oxfam.ca/campaign/signup-page-test-for-4site/
On iOS (Chrome / Safari) when submitting an embedded form with client-side errors, the page scrolls to the last input with an error instead of the first.
Recording: https://d.pr/v/O2kcrb

This got resolved at some point


Created Repo For Dracula Theme in JabRef

I have made a theme for JabRef, a library manager I used during my thesis. I am open for feedback and would like to contribute to my favorite theme. You can find the repository for the theme here.

Hey, very cool! ✨
I just sent you an invitation to join the organization.
I also cloned your repository for Dracula's organization, so you can go ahead and delete or archive yours:

Your repository.
New repository.

Thanks for building this! 🎉

It's 🧟 Alive: https://draculatheme.com/jabref

Hey, sorry to bother - there might be an error in my pull-request since the images are broken
See it here

🎯 I already corrected it, but Zeno does the deployment on the site; you can rest assured that soon you will be right on the site.


Keybindings for rootmenu(as traybutton) toggle like a winkey effect for windows startup menu?

Hi,
    I am using jwm 2.4.4 on debian 12. It's been good!
    I am curious if there is anyway to set a keybinding to winkey that toggles the rootmenu like winkey on windows ?
    I was able to add something like:
<Key mask="4" key="d">showdesktop</Key> <!-- show desktop -->
<Key keycode="133">exec: xdotool mousemove 0 $(expr $(xrandr | grep '*' | awk '{print $1}'|awk -F'x' '{print $2}') - 5) click 1</Key> <!-- toggle root menu -->

    The first line would mimic a "show desktop" feature like on windows perfectly!
    However,  the second line "magic" can only trigger the menu to open, but not to close when it's already open(ESC can).
    Additionally, if I have the second line turned on along with the first line, and use winkey+d to trigger first line's showdesktop, jwm would just crash. (I am inside a vm. So I would just have to restart the vm). The first line alone works fine!

Try associate another hotkeys (for example alt + F1) and use xcape:
https://github.com/alols/xcape


refactor: check if beneficiary account exists, require confirmation

related to issue https://github.com/near/near-cli/issues/994
PR adds a warning This method will delete your account. Beneficiary account must exist in order to transfer all Near tokens. Make sure to send all fungible tokens or NFTs that you own to the beneficiary account prior to deleting, as this method will only transfer NEAR tokens. Do you want to proceed? that the user must confirm.
Delete will also not run if beneficiary account does not exist.

@judith-Near @BenKurrek looks like this PR broke tests.

@volovyk-s oop yea it looks like the tests have to be rewritten?


Update feat-remote-write-metadata to 2.21.0

Similarly to the WAL watcher, its purpose is to observe the scrape manager and pull metadata. Then, send it to a remote storage.
Signed-off-by: gotjosh<EMAIL_ADDRESS>

I had two conflicts, one in config due to a new comment and one in queue_manager due to an error that was made public (RecoveableError).


Twitter Authorize: Stuck on "Redirecting you back to the application..."

After authorizing with Twitter, I get stranded on the following screen:

Because I'm not automatically navigated back to the app, if you press the "Done" button, you will return to the app but the access tokens do not get stored.
I have ensured that I have a URL Type defined for Twitter and that a callback URL is set in my Twitter app settings. Any other ideas on why the redirect is failing silently?

I'm debugging in XCode and I see that valid params are being sent to twitter on the initial authorize call:
2017-08-20 21:20:23.809 redbirdNative[16785:198848] Calling authorizeWithUrl: twitter with callbackURL: cheddur://oauth-response/twitter
 {
    "access_token_url" = "https://api.twitter.com/oauth/access_token";
    "api_url" = "https://api.twitter.com";
    "app_name" = cheddur;
    "auth_version" = "1.0";
    "authorize_url" = "https://api.twitter.com/oauth/authorize";
    "callback_url" = "cheddur://oauth-response/twitter";
    "consumer_key" = xxxx;
    "consumer_secret" = xxxx;
    "request_token_url" = "https://api.twitter.com/oauth/request_token";
    scopes = email;
}

But when the user signs in and clicks "Authorize", nothing else logs out and the screen doesn't redirect. Silent failure.

If I open up safari and manually type in the callback url:
cheddur://oauth-response/twitter

Safari will prompt me to open the app, and it will indeed open the app and redirect. I get this error, which makes sense, because I'm going to the redirect URL from Safari without passing any params:

So I am at a loss on why Twitter isn't redirecting as expected.

Alright so I figured out the issue. The code block that we put into AppDelegate.m for this library conflicts with the code block also given by react-native-fbsdk.
FBSDK:
- (BOOL)application:(UIApplication *)application
            openURL:(NSURL *)url
            options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options {

  BOOL handled = [[FBSDKApplicationDelegate sharedInstance] application:application
    openURL:url
    sourceApplication:options[UIApplicationOpenURLOptionsSourceApplicationKey]
    annotation:options[UIApplicationOpenURLOptionsAnnotationKey]
  ];
  return handled;
}

- (void)applicationDidBecomeActive:(UIApplication *)application {
  [FBSDKAppEvents activateApp];
}

OAUTH:
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {
  return [OAuthManager handleOpenUrl:application
                             openURL:url
                   sourceApplication:sourceApplication
                          annotation:annotation];
}

My solution = merge the two into a custom method:
- (BOOL)application:(UIApplication *)application
            openURL:(NSURL *)url
            options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options {
  if ([url.absoluteString containsString:@"twitter"]){
    return [OAuthManager handleOpenUrl:application
                               openURL:url
                     sourceApplication:@"twitter"
                            annotation:nil];
  } else{
    BOOL handled = [[FBSDKApplicationDelegate sharedInstance] application:application
      openURL:url
      sourceApplication:options[UIApplicationOpenURLOptionsSourceApplicationKey]
      annotation:options[UIApplicationOpenURLOptionsAnnotationKey]
    ];
    return handled;
  }
}

I have no idea what I just wrote, since I do not know Objective C, but it works. I am definitely open to suggestions on how to improve this from those who can actually read this.
Thanks!

I’ve had this problem for two weeks.  I’ll keep digging and asking and submitting until it’s fixed.

I had this issue with chrome. I switched to Samsung Internet browser and it went through with no issues. Looks like a potential browser issue?

From ios13 we have scenedelegate file so for that with appdelegate openURL method we also need to manage the method in scenedelegate file via the below delegate method for twitter.
func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) {         if let openURLContext = URLContexts.first{           let url = openURLContext.url           let options: [AnyHashable : Any] = [             UIApplication.OpenURLOptionsKey.annotation : openURLContext.options.annotation as Any,             UIApplication.OpenURLOptionsKey.sourceApplication : openURLContext.options.sourceApplication as Any,             UIApplication.OpenURLOptionsKey.openInPlace : openURLContext.options.openInPlace           ]           TWTRTwitter.sharedInstance().application(UIApplication.shared, open: url, options: options)         }     }


Run baseline without mTb

See how well it fares for 1, 2, 4, 10 ifb

@mswiatlo

ok, so when you change the mTb requirement… maybe also lower the MEff cap to 1600. we can call this a “simplified” region

@mswiatlo will close when appropriate.


fix missing variable names in docs

fix #524

The problem came from default:  that is rendered differently and hides the parameter names. I changed default: ... to defaults to ...


RZImport Generics

This updates the RZVinyl generic support to match the RZImport generic support.

Looks good to me.

:+1:

@KingOfBrian good call to use macros for the various generic declarations. Looks good to me, go ahead and merge.


Support windows launch by default

Minor, minor follow up on the config fix.

:+1:  Just review it,  looks good for this improvement. I don't have a windows here. So I assuming that this will returns the correct value :dancer: