Look at handling ties

Right now, ties are treated as victories (same as on bungie). Look at data and see if we can easily tell its a tie.
Here is a tie:
https://www.bungie.net/en/Profile/GameHistory/254/1440370/mesh?character=2305843009264966985

Please please watch my videos I don't want any followers I need the help of the masses Bungie the Destiny 2 developers have been hacking my HP Omen PC for over a year I've asked for help everywhere Facebook Instagram YouTube and Twitter put me in incognito so the truth  It doesn't come out, the sad thing is I haven't even paid it off completely and they don't stop hacking me, please distribute my videos, help me, I've been fighting Bungie for a long time with depression.  https://youtube.com/shorts/feRDkmBOyA4?si=GoWKFnyxqIi-eWkg


Docs: Example files not available

The Yaml example files referenced in https://cert-manager.io/docs/tutorials/acme/pomerium-ingress/, which live in https://github.com/cert-manager/website/tree/master/content/docs/tutorials/acme/example, are not available on the live site:
kubectl create --edit -f https://cert-manager.io/docs/tutorials/acme/example/pomerium-staging-issuer.yaml
error: unable to read URL "https://cert-manager.io/docs/tutorials/acme/example/pomerium-staging-issuer.yaml", server reported 404 Not Found, status code=404

Hi! A month ago, we migrated from Hugo to Next.js, which broke the way we were serving certain static files (ie files that aren’t markdown ending with mdx).
If we want to keep the old URL:
https://cert-manager.io/docs/tutorials/acme/example/pomerium-production-issuer.yaml
We probably need to find out how to serve static files directly along with the markdown files, which was easy with Hugo but became not possible with NextJS.
Should we just move the file to the static/ path instead? @SgtCoDFish


scrcpy cannot connect audio

[ ] I have read the FAQ.
[ ] I have searched in existing issues.

Environment

OS: ubuntu22.04
scrcpy version: 2.3.1
installation method: manual build
device model: realme RMX3370
Android version: 13

Describe the bug
command: scrcpy -d
scrcpy 2.3.1 https://github.com/Genymobile/scrcpy
INFO: ADB device found:
INFO:     -->   (usb)  29a9d976                        device  RMX3370
INFO:         (tcpip)  <IP_ADDRESS>:5555               device  RMX3370
/usr/local/share/scrcpy/scrcpy-server: 1 file pushed. 13.8 MB/s (66007 bytes in 0.005s)
[server] INFO: Device: [realme] realme RMX3370 (Android 13)
INFO: Renderer: opengl
INFO: OpenGL version: 4.6 (Compatibility Profile) Mesa 23.2.1-1ubuntu3.1~22.04.2
INFO: Trilinear filtering enabled
INFO: Texture: 1080x2400
ERROR: Demuxer 'audio': stream disabled due to missing decoder
ERROR: Demuxer error
Works fine if audio is not connected

Your ffmpeg is compiled without opus support.
Either use a ffmpeg versio' which supports opus, or pass --audio-codec=aac instead.

@rom1v I added --audio-codec=aac,but still can't connect
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO:     -->   (usb)  29a9d976                        device  RMX3370
INFO:         (tcpip)  <IP_ADDRESS>:5555               device  RMX3370
/usr/local/share/scrcpy/scrcpy-server: 1 file pushed. 9.6 MB/s (66007 bytes in 0.007s)
[server] INFO: Device: [realme] realme RMX3370 (Android 13)
INFO: Renderer: opengl
INFO: OpenGL version: 4.6 (Compatibility Profile) Mesa 23.2.1-1ubuntu3.1~22.04.2
INFO: Trilinear filtering enabled
INFO: Texture: 1080x2400
ERROR: [FFmpeg] Input channel count and layout are unset
ERROR: Failed to initialize the resampling context
ERROR: Demuxer error

OK, so your ffmpeg build has other issues. Where does it come from?

@rom1v ffmpeg is installed by apt, the version is 4.4. 2. I compiled the 6.0.1 version myself, and it can be used to connect audio.thank you


Nested Navigator breaks Predictive Back (PopScope)

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

enable predictive back
Click on Rebuild Outer Navigator button
Try Android gesture back

It seems that when the Outer Navigator is rebuilt and the Inner one is not (since I'm using the constant widget const MaterialPage(child: OuterScreen())), the Outer Navigator's NavigationNotification.canHandlePop will be reported to the engine.
https://github.com/flutter/flutter/blob/b0366e0a3f089e15fd89c97604ab402fe26b724c/packages/flutter/lib/src/widgets/app.dart#L1341-L1359
Expected results
When the widget tree contains PopScope.canPop: false, Predictive Back is disabled.
Actual results
When the widget tree contains PopScope.canPop: false, Predictive Back is enabled.
Code sample
Code sample
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class RouteParser extends RouteInformationParser<RouteInformation> {
  RouteParser();

  @override
  Future<RouteInformation> parseRouteInformation(RouteInformation routeInformation) => SynchronousFuture(routeInformation);
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  static final outerRouterDelegate = OuterRouterDelegate();

  @override
  void dispose() {
    outerRouterDelegate.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp.router(
      title: 'PopScope Test',
      routerDelegate: outerRouterDelegate,
      routeInformationParser: RouteParser(),
    );
  }
}

class OuterRouterDelegate extends RouterDelegate<RouteInformation> with ChangeNotifier {
  List<Page<dynamic>> get pages => [const MaterialPage(child: OuterScreen())];

  @override
  Widget build(BuildContext context) {
    return Navigator(
      pages: pages,
      onPopPage: (_, __) => false,
    );
  }

  @override
  Future<bool> popRoute() async => true;

  @override
  Future<void> setNewRoutePath(RouteInformation configuration) async {}
}

class OuterScreen extends StatelessWidget {
  const OuterScreen({super.key});

  @override
  Widget build(BuildContext context) {
    return const Column(
      children: [
        Expanded(child: Text('Outer')),
        SizedBox(width: 8),
        Flexible(child: InnerScreen()),
      ],
    );
  }
}

class InnerScreen extends StatefulWidget {
  const InnerScreen({super.key});

  @override
  State<InnerScreen> createState() => _InnerScreenState();
}

class _InnerScreenState extends State<InnerScreen> {
  static final innerRouterDelegate = InnerRouterDelegate();

  @override
  void dispose() {
    innerRouterDelegate.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return Router(
      routerDelegate: innerRouterDelegate,
      routeInformationParser: RouteParser(),
    );
  }
}

class InnerRouterDelegate extends RouterDelegate<RouteInformation> with ChangeNotifier {
  @override
  Widget build(BuildContext context) {
    return Navigator(
      pages: [
        MaterialPage(
          child: PopScope(
            canPop: false,
            onPopInvoked: print,
            child: Column(
              children: [
                const Text('Inner'),
                const SizedBox(height: 8),
                ElevatedButton(onPressed: _MyAppState.outerRouterDelegate.notifyListeners, child: const Text('Rebuild Outer Navigator')),
                const SizedBox(height: 8),
                ElevatedButton(onPressed: _InnerScreenState.innerRouterDelegate.notifyListeners, child: const Text('Rebuild Inner Navigator')),
              ],
            ),
          ),
        ),
      ],
      onPopPage: (_, __) => false,
    );
  }

  @override
  Future<bool> popRoute() async => true;

  @override
  Future<void> setNewRoutePath(RouteInformation configuration) async {}
}

Screenshots or Video

Screenshots / Video demonstration
https://github.com/flutter/flutter/assets/8436039/f8ef5d7d-5d40-41c6-b4f1-992667672fff

Logs
No response
Flutter Doctor output
Doctor output
[√] Flutter (Channel stable, 3.16.3, on Microsoft Windows [Version 10.0.19045.3693], locale hu-HU)
    • Flutter version 3.16.3 on channel stable at C:\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b0366e0a3f (5 days ago), 2023-12-05 19:46:39 -0800
    • Engine revision 54a7145303
    • Dart version 3.2.3
    • DevTools version 2.28.4

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at C:\Users\maRci002\AppData\Local\Android\Sdk
    • Platform android-33, build-tools 33.0.2
    • ANDROID_HOME = C:\Users\maRci002\AppData\Local\Android\Sdk
    • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-b2043.56-10550314)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.7.0)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.7.34003.232
    • Windows 10 SDK version 10.0.22621.0

[√] Android Studio (version 2023.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-b2043.56-10550314)

[√] VS Code (version 1.85.0)
    • VS Code at C:\Users\maRci002\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension can be installed from:
       https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[√] Connected device (4 available)
    • sdk gphone x86 64 (mobile) • emulator-5554 • android-x64    • Android 13 (API 33) (emulator)
    • Windows (desktop)          • windows       • windows-x64    • Microsoft Windows [Version 10.0.19045.3693]
    • Chrome (web)               • chrome        • web-javascript • Google Chrome 120.0.6099.71
    • Edge (web)                 • edge          • web-javascript • Microsoft Edge 120.0.2210.61

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

• No issues found!

It seems the Navigator.pages change triggers _updatePages:
https://github.com/flutter/flutter/blob/b0366e0a3f089e15fd89c97604ab402fe26b724c/packages/flutter/lib/src/widgets/navigator.dart#L3787-L3804
This triggers _handleHistoryChanged, which creates a NavigationNotification notification:
https://github.com/flutter/flutter/blob/b0366e0a3f089e15fd89c97604ab402fe26b724c/packages/flutter/lib/src/widgets/navigator.dart#L3488-L3500

Thanks for the report. I can reproduce this issue as well.

flutter doctor -v (stable and master)
[✓] Flutter (Channel stable, 3.16.3, on macOS 14.1 23B74 darwin-x64, locale en-VN)
    • Flutter version 3.16.3 on channel stable at /Users/huynq/Documents/GitHub/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b0366e0a3f (23 hours ago), 2023-12-05 19:46:39 -0800
    • Engine revision 54a7145303
    • Dart version 3.2.3
    • DevTools version 2.28.4

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A507
    • CocoaPods version 1.13.0

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

[!] Android Studio (version unknown)
    • Android Studio at /Applications/Android Studio Preview.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to determine Android Studio version.
    • Java version OpenJDK Runtime Environment (build 17.0.8+0-17.0.8b1000.22-10799086)

[✓] Android Studio (version 2022.3)
    • Android Studio at /Applications/Android Studio Giraffe Patch 3.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[✓] Android Studio (version 2022.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • android-studio-dir = /Applications/Android Studio.app/
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

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

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 14.1 23B74 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 119.0.6045.199

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

! Doctor found issues in 1 category.

[!] Flutter (Channel master, 3.18.0-7.0.pre.84, on macOS 14.1 23B74 darwin-x64, locale en-VN)
    • Flutter version 3.18.0-7.0.pre.84 on channel master at /Users/huynq/Documents/GitHub/flutter_master
    ! Warning: `flutter` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/dart, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 887048004b (38 minutes ago), 2023-12-11 21:29:25 -0500
    • Engine revision 75cfb050cd
    • Dart version 3.3.0 (build 3.3.0-217.0.dev)
    • DevTools version 2.30.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 34.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A507
    • CocoaPods version 1.13.0

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

[!] Android Studio (version unknown)
    • Android Studio at /Applications/Android Studio Preview.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to determine Android Studio version.
    • Java version OpenJDK Runtime Environment (build 17.0.8+0-17.0.8b1000.22-10799086)

[✓] Android Studio (version 2022.3)
    • Android Studio at /Applications/Android Studio Giraffe Patch 3.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[✓] Android Studio (version 2022.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • android-studio-dir = /Applications/Android Studio.app/
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

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

[✓] Connected device (3 available)
    • RMX2001 (mobile) • EUYTFEUSQSRGDA6D • android-arm64  • Android 11 (API 30)
    • macOS (desktop)  • macos            • darwin-x64     • macOS 14.1 23B74 darwin-x64
    • Chrome (web)     • chrome           • web-javascript • Google Chrome 120.0.6099.71

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

! Doctor found issues in 2 categories.

cc @chunhtai @justinmc

I think there is no way Flutter can accurately guess which Navigator is currently active and listen exclusively to its notifications.
Unlike Navigator.reportsRouteUpdateToEngine, which typically involves the topmost Navigator, there are several factors to consider when determining which one is active. For example, two navigators might be placed next to each other, or a bottom navigation bar might exist where each tab has its own nested Navigator tree.
Given this, I believe it falls to the programmer to decide which Navigator should be used, based on elements like the AppState. However, you still need to write some code to determine whether the framework is capable of handling the 'pop' operation.
In handling this situation, providing onNavigationNotification to MaterialApp seems the best approach, allowing us to disregard NavigationNotification and determine canHandlePop using AppState. Yet, a problem arises with a router-based MaterialApp: The onNavigationNotification callback isn't forwarded to WidgetsApp. @justinmc, was this an intentional design choice in pull request #120385, or just a coincidence?
https://github.com/flutter/flutter/blob/b0366e0a3f089e15fd89c97604ab402fe26b724c/packages/flutter/lib/src/material/app.dart#L975-L1001
Here's a simple code snippet that assesses whether the framework can manage the 'pop' based on AppState:
  @override
  Widget build(BuildContext context) {
    return MaterialApp.router(
      onNavigationNotification: _onNavigationNotification,
      // ...
    );
  }

  bool _onNavigationNotification(NavigationNotification notification) {
    switch (WidgetsBinding.instance.lifecycleState) {
      case null:
      case AppLifecycleState.detached:
      case AppLifecycleState.inactive:
        // Avoid updating the engine when the app isn't ready.
        return true;
      case AppLifecycleState.resumed:
      case AppLifecycleState.hidden:
      case AppLifecycleState.paused:
        SystemNavigator.setFrameworkHandlesBack(canHandlePop);
        return true;
    }
  }

  bool get canHandlePop {
    final navigatorState = currentNavigatorKey.currentState;
    if (navigatorState == null) {
      return false;
    }

    final navigatorCanPop = navigatorState.canPop();

    late final bool routeBlocksPop;
    if (!navigatorCanPop) {
      // Dirty hack to get current route: https://stackoverflow.com/a/68703480/4609658
      Route<dynamic>? lastRoute;
      navigatorState.popUntil((route) {
        lastRoute = route;
        return true;
      });

      routeBlocksPop = lastRoute?.popDisposition == RoutePopDisposition.doNotPop;
    } else {
      routeBlocksPop = false;
    }

    return navigatorCanPop || routeBlocksPop;
  }

  GlobalKey<NavigatorState> get currentNavigatorKey {
    // The AppState knows the current Navigator key
    return appState.currentNavigatorKey;
  }

Not passing onNavigationNotification through to WidgetsApp.routes must have been an oversight. I'll open a PR for that.
Also, you've probably seen it already, but check out NavigatorPopHandler and this example of nested navigators: https://github.com/flutter/flutter/blob/master/examples/api/lib/widgets/navigator_pop_handler/navigator_pop_handler.0.dart. Maybe too simple for what you're trying out here, though.

The problem is that each Navigator sends its own NavigationNotification, and _defaultOnNavigationNotification simply forwards NavigationNotification.canHandlePop to SystemNavigator.setFrameworkHandlesBack, regardless of which Navigator is the source of the notification.
One potential solution is to override onNavigationNotification and query the current Navigator's canPop. PR #142190 addresses this issue.
Alternatively, each Navigator could be wrapped with a NotificationListener, intercepting NotificationListener.onNotification to return false when the Navigator should not report its canPop state to the engine. This approach can be achieved very easily.


Autoprefixer Couldn't find Node.js

So the problem is this, i've installed nodejs in my linux system with nvm, in fact if i type node -v in terminal i get my current version of node, to be clear, the problem is that autoprefixer cannot find nodejs.
BTW: i'm currently using a linux ubuntu/debian distro (Zorin OS)

https://github.com/sindresorhus/sublime-autoprefixer/issues/76#issuecomment-596203145

#76 (comment)

i tried making a symblink but it doesn't work


  How to set up?

I've included the nav-priority.js and nav-priority.css in my header and I've put the sample HTML in:

 Toggle navigation     BBC

Home
UK
World
Sport
Opinion
Culture
Business
Lifestyle
Fashion
Environment
Tech
Travel

But nothing works.
It looks like your sample page uses bootstrap, is that a requirement for this?   Is there an explicit JS call I need to run to actually initialize the menu system?
Right now All I see is a big blocky/ugly "Toggle navigation" button which doesnt do anything and a list of the menu items horizontally, but no prioirty+ or anything dynamic.  Thanks much!

Hello @mark22,
the example uses Bootstrap for styling of the navbar component. The plugin itself can work without it, however you have to provide your own CSS for the navbar and change plugin defaults. I will add one more example to the documentation, which does not use Bootstrap. Will let you know...

@skywalkapps thanks for getting back to me so quickly.  So besides the styling, the navigation items will not actually autopopulate into a MORE type of dropdown.   I can stylize them to float:left just fine, but they expand their container and don't shrink when the page shrinks.
Is there a JS call I need to make to get the navigation system to intialize/start up?  Most JS/JQuery plugins I use have a minimal call to get the plugin to startup.  Just wondering if I missed a step here...
Thanks!

@skywalkapps
For example, I found this on your demo page, is this the bare bones JS needed for it to start up?
Thanks!
<script>
document.addEventListener("DOMContentLoaded", function(event) {
  window.navPriority('[data-nav="priority"]')

  var triggerEvent = function(element, eventName) {
    var event; // The custom event that will be created

    if (document.createEvent) {
      event = document.createEvent("HTMLEvents");
      event.initEvent(eventName, true, true);
    } else {
      event = document.createEventObject();
      event.eventType = eventName;
    }

    event.eventName = eventName;

    if (document.createEvent) {
      element.dispatchEvent(event);
    } else {
      element.fireEvent("on" + event.eventType, event);
    }
  }

  interact('.sw-resizable')
    .resizable({
      preserveAspectRatio: false,
      edges: { left: false, right: true, bottom: false, top: false }
    })
    .on('resizemove', function (event) {
      var target = event.target,
          x = (parseFloat(target.getAttribute('data-x')) || 0),
          y = (parseFloat(target.getAttribute('data-y')) || 0);

      if (event.rect.width > 480 && event.rect.width < 960) {
        // update the element's style
        target.parentNode.style.width  = event.rect.width + 'px';

        target.style.webkitTransform = target.style.transform =
            'translate(' + x + 'px,' + y + 'px)';

        target.setAttribute('data-x', x);
        target.setAttribute('data-y', y);

        triggerEvent(window, "resize");
      }
    });

});

</script>

I have added one more example to the documentation to show, how it works without the Bootstrap... To make it work, you need to include only nav-priority.min.js and nav-priority.min.css. Then you just initialize it via:
document.addEventListener("DOMContentLoaded", function(event) {   window.navPriority('[data-nav="priority"]') }
Then you need just a few lines of CSS to style your menu as inline list. That is basically it.

I looked at this too. Tried using this sans-Bootstrap but it appears Bootstrap is indeed still handling the interaction layer. This includes toggling dropdown classes, aria-expanded, and aria-hidden—maybe others.
So, it appears that, at this time, if you're going to use it without Bootstrap, you'd need to handle most of the styling and toggling of classes and attributes (CSS + JS).
Also, in case anyone needs to know how to specify plugin options, here's a copy-paste snippet that should get the point across:
// Options:
var navPriorityOptions = {
  dropdownLabel: 'More',
  dropdownMenuClass: 'nav-priority-dropdown-menu'
};
document.addEventListener('DOMContentLoaded', function (event) {
  window.navPriority('[data-nav="priority"]', navPriorityOptions); // <---- Options object goes here
});


Possibility to enforce polyfill

Is there a possibillity to force the usage of the polyfill instead of the browser functionality?

No, the polyfill cannot be forced to override native browser behavior. See #147 and #162 for more discussion.

This would be a very nice feature to have available somehow, even if it meant digging deep into internals. We are seeing non-spec-compliant behavior from Edge, such as #407 and missing request bodies on DELETE. For now we will simply fork.

Native fetch also don't have support for response.body which the polyfill soon dose (once #404 gets accepted), So I agree that it would be useful to enforce the polyfill in browser that partially support fetch.

I understand that the team doesn't want to introduce a build process or otherwise complicate this module, but given that we've now seen our first fundamentally broken fetch() implementation in the wild, it may be necessary.
I don't believe it's going to be possible to easily test for the broken PUT/PATCH/DELETE Content-Length functionality, so (imo) it would be really nice to have a UMD shim introduced.

I would have to agree that the polyfill should not be implementing functionality for forcing usage. You can easily force usage of any polyfill in other ways. I recently had to get around a bug in MS Edge fetch implementation where it wasn't handling 401 responses correctly. My solution was just to unset window.fetch for MS Edge. After that, the polyfill worked as expected and set window.fetch to the polyfill version.
In the first <script> tag of the <head> section
if (navigator.userAgent.indexOf('Edge') !== -1) {
  window.fetch = undefined;
}

as long as that is executed before the fetch polyfill code, you're golden.


updated Gradle and JPI plugin

allows incremental builds

Thank you for this pull request! Please check this document for how the Jenkins project handles pull requests.


[Request] [1.16.5] Add Config Option For Teleport Range

Pretty much what the title says, there should be a config option for the travel anchors which allow you to set the radius in which you can teleport to other travel anchors. Optionally a config option for the staff could also be included.

This is already a feature I'm blind and missed the config file, sorry. Closing


query.fetch raises unhandled error when it finishes to retry

Hey,
When you are using "useQuery" with the parameters:
{ refetchInterval: 1000 }

And the function which fetches the data raises error multiple time (and retrying is being finished), an exception will be thrown without any handling.
How to test it:

Open the Codesandbox of react-query
in line 62 change errorRate to be 1
In line 357 add the refetchInterval property

 } = useQuery(["todos", { filter }], fetchTodos, { refetchInterval: 1000 });

After few seconds the UI will show the unhandled exception

How to fix that:
Basically I think that in query.fetch the in line 366 at "index.js" the "throw error" is causing the issue. I'm not sure why we need to throw that error there so I would like a second eye for that.
Thanks,
Amit.

@tannerlinsley please check out my PR when you can, I believe it fixes the problem as desired.


[Bug]: Janky scroll in People tab on Pixel 5 device

Is there an existing issue for this?

[X] I have searched the existing issues

Is there a StackOverflow question about this issue?

[X] I have searched StackOverflow

What happened?
I observe that there is junky scroll in People tab on Pixel 5 device. But it seems that Samsung S21 doesn't have this issue.
https://user-images.githubusercontent.com/1007354/168342590-f4de7966-dad0-488d-bfdc-380f3d9cc489.mp4
https://user-images.githubusercontent.com/1007354/168342645-81b89849-8604-4d96-b1ad-d0b62a38b9ca.mp4
I don't believe that Pixel 5 can't handle just a list with pictures and text:)
Relevant logcat output
No response
Code of Conduct

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

I see the same on my Pixel 5.
Here's the logcat output during swiping up:
2022-05-18 09:39:06.450 1236-2432/? I/sensors-hal: [ssc_utils]get_qmi_debug_flag:243, support_qmi_debug : false
2022-05-18 09:39:06.500 4744-4818/? W/System: A resource failed to call close.
2022-05-18 09:39:06.686 1236-2432/? I/sensors-hal: [ssc_utils]get_qmi_debug_flag:243, support_qmi_debug : false
2022-05-18 09:39:06.709 11943-11943/com.google.samples.apps.nowinandroid.debug I/Choreographer: Skipped 31 frames!  The application may be doing too much work on its main thread.
2022-05-18 09:39:06.710 1536-1536/? W/adbd: timeout expired while flushing socket, closing
2022-05-18 09:39:06.755 1236-1345/? D/CHRE: @ 518400.683: [ActivityPlatform] type 6, confidence 41
2022-05-18 09:39:06.773 1236-2432/? I/sensors-hal: [ssc_utils]get_qmi_debug_flag:243, support_qmi_debug : false
2022-05-18 09:39:07.165 1236-2432/? I/sensors-hal: [ssc_utils]get_qmi_debug_flag:243, support_qmi_debug : false
2022-05-18 09:39:07.172 11943-11943/com.google.samples.apps.nowinandroid.debug I/Choreographer: Skipped 40 frames!  The application may be doing too much work on its main thread.
2022-05-18 09:39:07.177 11943-11963/com.google.samples.apps.nowinandroid.debug I/OpenGLRenderer: Davey! duration=805ms; Flags=0, FrameTimelineVsyncId=36877335, IntendedVsync=378124232325885, Vsync=378124576770326, InputEventId=0, HandleInputStart=378124579629729, AnimationStart=378124579634520, PerformTraversalsStart=378124996074093, DrawStart=378124996339874, FrameDeadline=378124263936996, FrameInterval=378124579459364, FrameStartTime=11111111, SyncQueued=378125027297742, SyncStart=378125027748836, IssueDrawCommandsStart=378125028382586, SwapBuffers=378125030831180, FrameCompleted=378125038009670, DequeueBufferDuration=22083, QueueBufferDuration=1425677, GpuCompleted=378125038009670, SwapBuffersCompleted=378125032765503, DisplayPresentTime=0,
2022-05-18 09:39:07.247 1236-2432/? I/sensors-hal: [ssc_utils]get_qmi_debug_flag:243, support_qmi_debug : false
2022-05-18 09:39:07.475 1245-1279/? D/rlsservice: MonitorDisplayStatus client num 1, display status 1, sensor status 1
2022-05-18 09:39:07.539 1273-30263/? W/C2BqBuffer: last successful dequeue was<PHONE_NUMBER>78 us ago, 9218640 consecutive failures
2022-05-18 09:39:07.571 1273-29455/? W/C2BqBuffer: last successful dequeue was<PHONE_NUMBER>95 us ago, 9218276 consecutive failures
2022-05-18 09:39:07.597 714-20852/? I/SDM: HWDeviceDRM::UpdateMixerAttributes: Mixer WxH 1080x2340-1 for Peripheral
2022-05-18 09:39:07.597 714-20852/? I/SDM: DisplayBase::SetActiveConfig: Active configuration changed to: 0
2022-05-18 09:39:07.597 714-20852/? I/SDM: StrategyImpl::SetIdleTimeoutMs: Idle timeout set to zero for command mode panels
2022-05-18 09:39:07.597 1236-2432/? I/sensors-hal: [ssc_utils]get_qmi_debug_flag:243, support_qmi_debug : false

    --------- beginning of system
2022-05-18 09:39:07.602 1900-2070/? I/DisplayDeviceRepository: Display device changed: DisplayDeviceInfo{"Built-in Screen": uniqueId="local:4630946523002478721", 1080 x 2340, modeId 1, defaultModeId 1, supportedModes [{id=1, width=1080, height=2340, fps=60.000004, alternativeRefreshRates=[90.0]}, {id=2, width=1080, height=2340, fps=90.0, alternativeRefreshRates=[60.000004]}], colorMode 0, supportedColorModes [0, 7, 9], hdrCapabilities HdrCapabilities{mSupportedHdrTypes=[2, 3], mMaxLuminance=500.0, mMaxAverageLuminance=500.0, mMinLuminance=0.0}, allmSupported false, gameContentTypeSupported false, density 440, 435.428 x 433.839 dpi, appVsyncOff 2333332, presDeadline 11500000, cutout DisplayCutout{insets=Rect(0, 136 - 0, 0) waterfall=Insets{left=0, top=0, right=0, bottom=0} boundingRect={Bounds=[Rect(0, 0 - 0, 0), Rect(0, 0 - 145, 136), Rect(0, 0 - 0, 0), Rect(0, 0 - 0, 0)]} cutoutPathParserInfo={CutoutPathParserInfo{displayWidth=1080 displayHeight=2340 density={2.75} cutoutSpec={M 41,77 a 40,40 0 1 0 80,0 40,40 0 1 0 -80,0 Z @left} rotation={0} scale={1.0}}}}, touch INTERNAL, rotation 0, type INTERNAL, address {port=129, model=0x40446d53ad64a0}, deviceProductInfo DeviceProductInfo{name=, manufacturerPnpId=QCM, productId=1, modelYear=null, manufactureDate=ManufactureDate{week=27, year=2006}, connectionToSinkType=0}, state ON, frameRateOverride , brightnessMinimum 0.0, brightnessMaximum 1.0, brightnessDefault 0.2901961, roundedCorners RoundedCorners{[RoundedCorner{position=TopLeft, radius=108, center=Point(108, 108)}, RoundedCorner{position=TopRight, radius=108, center=Point(972, 108)}, RoundedCorner{position=BottomRight, radius=108, center=Point(972, 2232)}, RoundedCorner{position=BottomLeft, radius=108, center=Point(108, 2232)}]}, FLAG_DEFAULT_DISPLAY, FLAG_ROTATES_WITH_CONTENT, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS}
2022-05-18 09:39:07.612 714-20852/? I/SDM: StrategyImpl::SetIdleTimeoutMs: Idle timeout set to zero for command mode panels
2022-05-18 09:39:07.613 11943-11963/com.google.samples.apps.nowinandroid.debug I/OpenGLRenderer: Davey! duration=881ms; Flags=0, FrameTimelineVsyncId=36877370, IntendedVsync=378124587896063, Vsync=378125032340503, InputEventId=0, HandleInputStart=378125042140556, AnimationStart=378125042146181, PerformTraversalsStart=378125439769502, DrawStart=378125439980491, FrameDeadline=378124619507174, FrameInterval=378125041949098, FrameStartTime=11111111, SyncQueued=378125457784087, SyncStart=378125457909920, IssueDrawCommandsStart=378125458464243, SwapBuffers=378125461748671, FrameCompleted=378125469094609, DequeueBufferDuration=40208, QueueBufferDuration=1130157, GpuCompleted=378125469094609, SwapBuffersCompleted=378125463812473, DisplayPresentTime=0,
2022-05-18 09:39:07.617 1236-2432/? I/sensors-hal: [ssc_utils]get_qmi_debug_flag:243, support_qmi_debug : false
2022-05-18 09:39:07.620 11943-11943/com.google.samples.apps.nowinandroid.debug I/Choreographer: Skipped 40 frames!  The application may be doing too much work on its main thread.
2022-05-18 09:39:07.621 1273-17774/? W/C2BqBuffer: last successful dequeue was<PHONE_NUMBER>98 us ago, 9369898 consecutive failures
2022-05-18 09:39:07.706 1273-17821/? W/C2BqBuffer: last successful dequeue was<PHONE_NUMBER>37 us ago, 9368646 consecutive failures
2022-05-18 09:39:07.735 1273-17815/? I/QC2Comp: [avcD_126] Stats: Works: Q: 29/Done 26|Work-Rate: Q(0.0/s Avg=0.0/s) Done(0.000/s Avg=0.000/s)| Stream: 30.00fps 1002.4Kbps 0x0| Pending(3) i/p-done(2)
2022-05-18 09:39:07.735 1273-29470/? I/QC2Comp: [avcD_128] Stats: Works: Q: 28/Done 26|Work-Rate: Q(0.0/s Avg=0.0/s) Done(0.000/s Avg=0.000/s)| Stream: 30.00fps 919.6Kbps 0x0| Pending(2) i/p-done(2)
2022-05-18 09:39:07.735 1273-30260/? I/QC2Comp: [avcD_130] Stats: Works: Q: 28/Done 26|Work-Rate: Q(0.0/s Avg=0.0/s) Done(0.000/s Avg=0.000/s)| Stream: 30.00fps 919.6Kbps 0x0| Pending(2) i/p-done(2)
2022-05-18 09:39:07.736 1273-30576/? I/QC2Comp: [avcD_132] Stats: Works: Q: 29/Done 26|Work-Rate: Q(0.0/s Avg=0.0/s) Done(0.000/s Avg=0.000/s)| Stream: 30.00fps 1002.4Kbps 0x0| Pending(3) i/p-done(2)
2022-05-18 09:39:07.736 1273-29451/? I/QC2Comp: [avcD_127] Stats: Works: Q: 29/Done 26|Work-Rate: Q(0.0/s Avg=0.0/s) Done(0.000/s Avg=0.000/s)| Stream: 30.00fps 1002.4Kbps 0x0| Pending(3) i/p-done(2)
2022-05-18 09:39:07.738 1273-29571/? I/QC2Comp: [avcD_129] Stats: Works: Q: 30/Done 27|Work-Rate: Q(0.0/s Avg=0.0/s) Done(0.000/s Avg=0.000/s)| Stream: 29.97fps 619.5Kbps 0x0| Pending(3) i/p-done(1)
2022-05-18 09:39:07.738 1273-30290/? I/QC2Comp: [avcD_131] Stats: Works: Q: 29/Done 26|Work-Rate: Q(0.0/s Avg=0.0/s) Done(0.000/s Avg=0.000/s)| Stream: 30.00fps 1002.4Kbps 0x0| Pending(3) i/p-done(2)

Can you please verify you have tested this in release mode?

@agent10, @Attacktive we need to know whether this issue only occurs in debug builds or also when you compile the release build type.

@agent10, @Attacktive we need to know whether this issue only occurs in debug builds or also when you compile the release build type.

Ah, the log is taken from the debug build and I haven't tested the release build yet. I'll let you know if I have a chance to do.

Unfortunately, content isn't loading in release mode..it'll take some time to find out why and then i'll come back as well)
 |

@keyboardsurfer I managed to start the release build properly, everything is fine, scroll works smoothly on Pixel 5 now.


Improvements for cli behaviour

Status
IN DEVELOPMENT
Migrations
NO
Description
Several improvements:

optional disable man pages - to save memory
variable can be also integer
store previous retcode to ? -variable
store prompt as PS1 -variable (possible to change using `set´ -cmd)
api to request screen size: cmd_request_screen_size(void) -> generates variables: COLUMNS, LINES
true and false -commands
ctrl+w support (remove previous word)
escape character parsing (IOTSYSTOOL-131)
Improve test coverage

Todos

[ ] Tests
[x] Documentation

#77 need to to be fixed first to get this PR green

@YifeiZuo01 could you check why obsoleted and disabled Jenkins job is triggered ? is it some Jenkins issue ?

If the limit is the line going past the screen it sounds more like an issue of the terminal application than the cli library. The only limitations it has are the serial input buffer size (was for example 768 bytes in mbed-os-cliapp at some point), mbed-client-cli input buffer size (2000 bytes by default), and how fast the mcu can move the bytes out of one to the other. For example on a K64F with those buffer sizes pasting in a string of up to around 1500 characters at once worked fine. (Though admittedly that may have been with echo off.. It's been a while.)

merged - please open ticket if you find any issues - as usual :).


Check all function

Added the opposite of a reset function, checkAll.
I am tempted to squash the functions together and just pass a param in order to toggle the actions.

ping @sonyan

Thank you for your contribution!

No worries @sonyan Can you push a new version to npm? :+1:


Fix unnecessary multiple set view

Fix https://github.com/CartoDB/support/issues/636

cc/ @xavijam

@donflopez What's the status of this? I just merged v4 into this branch.

We stopped using flyTo because of weird behaviours when centring the map, after this fix, it is still broken because of some unnecessary recalls, we must improve this and invest more time on it.


Broken Link

Broken Link
https://medium.com/coinmonks/picking-up-rust-and-build-a-poc-on-polkadot-substrate-2-2-fa652de118ae
Once I was done with the above, I worked on the Token Curated Registry tutorial (https://substrate.dev/docs/en/tutorials/tcr/).
Expected Location
No idea
Context and Origin
want to see -> Once I was done with the above, I worked on the Token Curated Registry tutorial (https://substrate.dev/docs/en/tutorials/tcr/).

I believe this tutorial is long deprecated (about 2 years old!) but you can try it here if you'd like. It still can be accessed from our archived repos.
@jimmychu0807 Should we perhaps update the link in the article or maybe just remove it?

Both articles are updated:

https://medium.com/coinmonks/https-medium-com-jimmychu-picking-up-rust-substrate-1-7ab82ffdca6
https://medium.com/coinmonks/picking-up-rust-and-build-a-poc-on-polkadot-substrate-2-2-fa652de118ae


Many void methods should return a self reference.

Many method in the tensor, matrix, and vector classes which return void should return a reference to themself (i.e. return this).
This would make the following possible:
Matrix A = Matrix.I(5).set(-1.0, 1, 1);
Whereas currently, since set(...) returns void, the same statement must be written as:
Matrix A = Matrix.I(5);
A.set(-1.0, 1, 1);

All set(...) methods in the various vector, matrix, and tensor classes not return a reference to themself.


chore(deps): upgrade dev dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-dev-dependencies-k8s-31-main" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 4696

Questions ?
Please refer to the Backport tool documentation


how to Postman with Okta during development

https://developer.okta.com/code/rest/

So I created a validation middleware function that is supposed to ensure that the emoji part of the request body consists only of up to 6 emojis (no strings of words or numbers or other characters) and I would like to use postman to test this out. But I am not sure how to get the necessary headers from Okta so that I can make an authorized request.
Trevor pointed me in the direction of setting up a Postman environment that incorporates Okta, but I dont know what to put for the apikey parameter.


Continue training from converted official weights?

Is it possible to continue training using the converted weights? I noticed that the converted weights only contain the state_dict for g_ema. However, train.py assumes that the checkpoint has state_dict for g, d, g_ema, g_optim, and d_optim.
Can convert_weight.py be modified to fix this? Or would it be easier to just train from scratch?

I forgot to add argument documentations. You can use --gen and --disc arguments to convert_weight.py to add state_dict for g and d. I think you can load it, though you need to remove loading steps of g_optim and d_optim.


"nat" just prints endless underscores

I checked out the code and built it with "cargo build --release".
Started the binary and it prints underscores forever.
The "Help" function (-h) works fine.
OS: Arch Linux 64bit

Duplicate of #5

https://github.com/willdoescode/nat/issues/6#issuecomment-715333158 closing this thread.


iOS: fix the baseline issue when displaying a mixture of different-language characters

This fixes #19193
Characters of different languages may have different height and different baseline, even with a same font and same font-size. When they mixed together, iOS will adjust their baselines automatically, to display a suitable view of text.
The problem is the behavior of dealing with the text-style property 'lineHeight'.
It once to be a right way at version 0.52.3, to setting a base-line-offset attribute for the whole range of the string. However, in current version, it enumerated the string, and set a different  base-line-offset for different font-height characters.
And this behavior broke the baseline adjustment made by the iOS. It just make every character's baseline aligned to a same line. But it is not supposed to displaying characters of different languages like that. Chinese characters' baseline is the bottom of each, however, it is not for English characters.
So maybe it is the better way to give a same value of base-line-offset attribute for the whole string. And this PR just did that: found the biggest value of font-height in the text, and calculate the offset with that biggest value, then set to the whole string. This will keep the origin baseline adjustment for different languages' chars made by iOS.
Test Plan
Since I always got an error when running the snapshot test locally, I can't even pass the them with the unmodified code in master branch.
The error is "Nesting of <View> within <Text> is not currently supported."
After I comment all of the check of that error from the source code, I got a different snapshot from the reference ones. It seems that all components which will cause that error are not rendered in the reference images.
Since this PR changed the behavior of 'lineHeight' property, it's better to add a new snapshot case for the situation of different-language-characters' mixture. So maybe somebody could help me with that or maybe it should be a issue?
Release Notes
[IOS] [BUGFIX] [Text] - fix the baseline issue when displaying a mixture of different-language characters

Can we do a review for this PR. really need this fix.

@facebook-github-bot Thank you for reply. Yes, this PR is still relevant. As I can see, the files effected by this PR still exist in latest master. And the last modification of the related lines was made by @shergin at commit > https://github.com/facebook/react-native/commit/2716f53220f947c690d5f627286aad51313256a0 So, @shergin could you please take a review for this？

any progress about this PR ?

We want this as well.
@shergin Could you please review and merge this?

@shergin
we want this pr merge.
please check!!!

Is there any chane to ge this (or #19619) reviewd?
Ping to @shergin (or any other appropriate reviewer? @hramos @kelset)

Thanks for the PR. Can you include screenshots of the issue before and after the patch is applied?
How did you test this change?


Add power compute kernel

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
We are working on adding a power function / operator to datafusion (https://github.com/apache/arrow-datafusion/issues/1493).  Rather than implementing in datafusion i propose adding it as a compute kernel in arrow because we can implement directly with rust float primitives (https://doc.rust-lang.org/std/primitive.u32.html#method.pow, https://doc.rust-lang.org/std/primitive.f32.html#method.powf, etc) without any additional logic, similar to existing arrow compute kernels, and this aligns with the C++ compute implementation (https://arrow.apache.org/docs/cpp/compute.html#arithmetic-functions) and arrow2 (https://github.com/jorgecarleitao/arrow2/blob/main/src/compute/arithmetics/basic/pow.rs)
Describe the solution you'd like
power (using two arrays) and power_scalar (array and scalar) compute kernels
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

I notices some code in arrow/src/compute/kernels/arithmetic.rs
pub fn powf_scalar<T>(
    array: &PrimitiveArray<T>,
    raise: T::Native,
) -> Result<PrimitiveArray<T>>


Do we need any code changes for GCP migration to complete authentication?

Hi team,
could you please guide on this. I am using react-oidc-context library for oauth2.0 which is working well in On-Prem deployment.
Our project is migrating to GCP. For this, Do we need any code changes to be done for authentication ?
Actually when we hit the page, after getting the access code /callback?code= , It is not making call to
token-end point, instead it is giving 404 not found error
Seeking your help regarding this. Requesting you to look into  this question on high priority
Thank you  in advance.

Google Identity seems to be still using implicit grant flow, the underlying library (oidc-client-ts) does not support that flow. See https://github.com/authts/oidc-client-ts/issues/152.

if you do not move to Google Identity, ignore my comment. When you move your app from on-premise to GCP and you are still using the same identity provider you do now i do not see any blocker.

Thank you for the confirmation: 🙂
On Thu, 13 Jul, 2023, 12:49 pm pamapa, @.***> wrote:

if you do not move to Google Identity, ignore my comment. When you move
your app from on-premise to GCP and you are still using the same identity
provider you do now i do not see any blocker.
—
Reply to this email directly, view it on GitHub
https://github.com/authts/react-oidc-context/issues/850#issuecomment-1633701390,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABTKLYOV6ZRKGQJ7YZSFXMTXP6ORPANCNFSM6AAAAAA2IKM26E
.
You are receiving this because you authored the thread.Message ID:
@.***>


java.lang.UnsupportedOperationException: Method setTransactionIsolation in class org.neo4j.jdbc.Connection is not yet implemented.

This is in the 3.0 release of the neo4j-jdbc-bolt and neo4j-jdbc-http drivers. In my case I'm using sql2o but I suspect anyone using transactions via an ORM or Spring JdbcTemplate will run into this same issue.
! java.lang.UnsupportedOperationException: Method setTransactionIsolation in class org.neo4j.jdbc.Connection is not yet implemented.
! at org.neo4j.jdbc.utils.ExceptionBuilder.buildUnsupportedOperationException(ExceptionBuilder.java:41) ~[neo4j-jdbc-http-3.0.jar:na]
! at org.neo4j.jdbc.Connection.setTransactionIsolation(Connection.java:308) ~[neo4j-jdbc-http-3.0.jar:na]
! at org.sql2o.Sql2o.beginTransaction(Sql2o.java:344) ~[sql2o-1.5.1.jar:na]
! at org.sql2o.Sql2o.beginTransaction(Sql2o.java:359) ~[sql2o-1.5.1.jar:na]

Hi @jaxzin, thanks for your feedback. We're going to release a patch for this asap. Stay tuned.

This should be fixed for BOLT module with 62fbaa1
A new snapshot version jar is available here: https://github.com/neo4j-contrib/neo4j-jdbc/releases/tag/3.0.1-SNAPSHOT.
Can you please try it out and give us a feedback?
Thank you

@inserpio Is there a Maven snapshot repo I can point to?

@jaxzin generically speaking yes (https://m2.neo4j.org/content/repositories/snapshots/) but we haven't published the 3.0.1 snapshot yet, sorry.
In the meantime, could you please download it (from the above link) and add it to your local maven repo via the classic:
mvn install:install-file -Dfile=neo4j-jdbc-driver-3.0.1-SNAPSHOT.jar -DgroupId=org.neo4j -DartifactId=neo4j-jdbc -Dversion=3.0.1-SNAPSHOT -Dpackaging=jar

In the meantime I've just created a small test class like this and it looks like this work fine:
public class Sql2oTest {

	@Test
	public void shouldExecuteStatementViaSql2oAndBolt() {

		Sql2o sql2o = new Sql2o("jdbc:neo4j:bolt://localhost?noSsl", "neo4j", "larusba");

		String sql = "match (n) where \"Movie\" in labels(n) return n.title limit 1";

		try (Connection con = sql2o.open()) {
			System.out.println(con.createQuery(sql).executeScalar());
		}
	}

	@Test
	public void shouldExecuteHttpStatementViaSql2oAndHTTP() {

		Sql2o sql2o = new Sql2o("jdbc:neo4j:http://localhost?noSsl", "neo4j", "larusba");

		String sql = "match (n) where \"Movie\" in labels(n) return n.title limit 1";

		try (Connection con = sql2o.open()) {
			System.out.println(con.createQuery(sql).executeScalar());
		}
	}
}

BTW. How do you manage labels with Sql2o? I notice it understands :Movie as a parameter!?

Thanks for the fast turnaround. I get further but it looks like we'll be playing whack-a-mole with the other unimplemented methods. Here's the latest:
! java.lang.UnsupportedOperationException: Method prepareStatement in class org.neo4j.jdbc.Connection is not yet implemented.
! at org.neo4j.jdbc.utils.ExceptionBuilder.buildUnsupportedOperationException(ExceptionBuilder.java:41) ~[neo4j-jdbc-3.0.1-SNAPSHOT.jar:na]
! at org.neo4j.jdbc.Connection.prepareStatement(Connection.java:360) ~[neo4j-jdbc-3.0.1-SNAPSHOT.jar:na]
! at org.sql2o.Query.<init>(Query.java:59) ~[sql2o-1.5.1.jar:na]
! at org.sql2o.Connection.createQuery(Connection.java:83) ~[sql2o-1.5.1.jar:na]
! at org.sql2o.Connection.createQuery(Connection.java:70) ~[sql2o-1.5.1.jar:na]
! at org.sql2o.Connection.createQuery(Connection.java:102) ~[sql2o-1.5.1.jar:na]

As for your test, try calling this instead:
        try (Connection con = sql2o.beginTransaction()) {
            System.out.println(con.createQuery(sql).executeScalar());
        }

I didn't get so far to the labels yet. I wanted to see it blow up with the SQL query strings I'm passing to con.createQuery(...).  My expection/hope was to override our DAO layer to use different Cypher query strings but all the parameters would still work.  Have something like this:
interface MovieDao {
  Movie getMovie(String name);
}
abstract class AbstractJdbcMovieDao implements MovieDao {
   abstract String getSelectByNameQuery();
   // implement getMovie() using JDBC and the query string returned from above
}
class SqlMovieDao extends AbstractJdbcMovieDao {
  String getSelectByNameQuery() { return "SELECT ..."; }
}
class NeoMovieDao extends AbstractJdbcMovieDao {
  String getSelectByNameQuery() { return "MATCH ..."; }
}

You could also put the statements in annotations.
The one by one is unfortunate but we rather wanted to fail than causing unexpected behavior.
The jdbc interfaces are quite wide ...
Von meinem iPhone gesendet

Am 21.07.2016 um 23:00 schrieb Brian R. Jackson<EMAIL_ADDRESS>Thanks for the fast turnaround. I get further but it looks like we'll be playing whack-a-mole with the other unimplemented methods. Here's the latest:
! java.lang.UnsupportedOperationException: Method prepareStatement in class org.neo4j.jdbc.Connection is not yet implemented.
! at org.neo4j.jdbc.utils.ExceptionBuilder.buildUnsupportedOperationException(ExceptionBuilder.java:41) ~[neo4j-jdbc-3.0.1-SNAPSHOT.jar:na]
! at org.neo4j.jdbc.Connection.prepareStatement(Connection.java:360) ~[neo4j-jdbc-3.0.1-SNAPSHOT.jar:na]
! at org.sql2o.Query.(Query.java:59) ~[sql2o-1.5.1.jar:na]
! at org.sql2o.Connection.createQuery(Connection.java:83) ~[sql2o-1.5.1.jar:na]
! at org.sql2o.Connection.createQuery(Connection.java:70) ~[sql2o-1.5.1.jar:na]
! at org.sql2o.Connection.createQuery(Connection.java:102) ~[sql2o-1.5.1.jar:na]
As for your test, try calling this instead:
    try (Connection con = sql2o.beginTransaction()) {
        System.out.println(con.createQuery(sql).executeScalar());
    }

I didn't get so far to the labels yet. I wanted to see it blow up with the SQL query strings I'm passing to con.createQuery(...). My expection/hope was to override our DAO layer to use different Cypher query strings but all the parameters would still work. Have something like this:
interface MovieDao {
Movie getMovie(String name);
}
abstract class AbstractJdbcMovieDao implements MovieDao {
abstract String getSelectByNameQuery();
// implement getMovie() using JDBC and the query string returned from above
}
class SqlMovieDao extends AbstractJdbcMovieDao {
String getSelectByNameQuery() { return "SELECT ..."; }
}
class NeoMovieDao extends AbstractJdbcMovieDao {
String getSelectByNameQuery() { return "MATCH ..."; }
}
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@jaxzin if you were able to provide us a complete use case we would be please to take care of it, so to avoid this stop & go approach.
I just updated the jar. Could you please retry with it: https://github.com/neo4j-contrib/neo4j-jdbc/releases/download/3.0.1-SNAPSHOT/neo4j-jdbc-driver-3.0.1-SNAPSHOT.jar

Hi @jaxzin, did you find time to check whether SQL2O is working with the last 3.0.1 snapshot? We'd like to close this issue and release the 3.0.1 version on the official repos. Thanks for your precious support!

@inserpio sorry, it got a bit further but ran into an NPE when executing the Cypher query. I need to turn my attention to other things but this was a fun experiment.  I'll likely just change our Dao to use the neo4j apis directly instead of going through a SQL ORM.

Ok @jaxzin, thanks for your time and support.
As the JDBC part related to this issue (aka the setTransactionIsolation) is solved and covered by unit tests, I'm closing this issue.
Feel free to open new ones as soon as you'll have some time to spend on this driver and find something that doesn't work.

Ok @jaxzin, thanks for your time and support.
As the JDBC part related to this issue (aka the setTransactionIsolation) is solved and covered by unit tests, I'm closing this issue.
Feel free to open new ones as soon as you'll have some time to spend on this driver and find something that doesn't work.


Generate IDL event attributes from event data

Corresponding to https://github.com/mdn/browser-compat-data/pull/12652

Fixed by 5ba5069fa1484df2639d8329138b816ba408e983


Feature/add transfer integration test

What is this pull request?
Add integration the test of transferring asset between accounts in the different domains.
Why do you implement it? Why do we need this pull request?
https://soramitsu.atlassian.net/browse/IR-560

Codecov Report

Merging #692 into develop will decrease coverage by 0.1%.
The diff coverage is 16.36%.

@@             Coverage Diff             @@
##           develop     #692      +/-   ##
===========================================
- Coverage     43.1%   42.99%   -0.11%
===========================================
  Files          302      302
  Lines        12324    12375      +51
  Branches      6826     6868      +42
===========================================
+ Hits          5312     5321       +9
- Misses         713      714       +1
- Partials      6299     6340      +41

Impacted Files
Coverage Δ

libs/crypto/keys_manager_impl.hpp
100% <ø> (ø)
:arrow_up:

...egration/pipeline/tx_pipeline_integration_test.cpp
31.78% <16.27%> (-7.76%)
:arrow_down:

libs/crypto/keys_manager_impl.cpp
27.45% <16.66%> (-5.11%)
:arrow_down:

irohad/model/generators/impl/command_generator.cpp
25% <0%> (+2.77%)
:arrow_up:

irohad/model/commands/transfer_asset.hpp
25% <0%> (+25%)
:arrow_up:

Continue to review full report at Codecov.

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

@motxx don't forget to rebase it onto origin/develop

sonar is failed but I can't find the reason.


Idea

This idea is very similar to this paper 'Deep Robust Clustering by Contrastive Learning'.

Hi, we noticed that there are at least three independent works of using contrastive learning for clustering - our "Contrastive Clustering" (AAAI2021, arXiv:2009.09687), the mentioned "Deep Robust Clustering by Contrastive Learning" [1] (arXiv:2008.03030), and another one "Learning Representations by Contrasting Clusters While Bootstrapping Instances" [2] (submitted to ICLR 2021). During the AAAI rebuttal phase, we noticed [1] and cited it in our camera ready, and we saw [2] several days ago.
The three works share a similar idea of conducting contrastive learning at both the instance- and cluster-level and are proposed within the same period, which proves the value and effectiveness of this idea.
Among the three works, we would like to highlight (one major difference with these works) that our story explicitly starts with the idea of "label is representation'' and we accordingly proposed that contrastive learning could be applied to the row and column space of data. As a result, clustering can be achieved in an online manner. Note that the advantage of online clustering is also pointed in our work only. Besides, we found that our method is remarkably superior to [1,2] even they own a similar idea. For example, our method achieves 0.705 NMI on CIFAR-10 compared with 0.621 by [1] and 0.630 by [2].
Anyway, these three independent works show the value of using contrastive learning for clustering. And if the authors of [1-2] see this message, we would be highly encouraged and grateful if you could cite our work, just like we did.

Hi, we noticed that there are at least three independent works of using contrastive learning for clustering - our "Contrastive Clustering" (AAAI2021, arXiv:2009.09687), the mentioned "Deep Robust Clustering by Contrastive Learning" [1] (arXiv:2008.03030), and another one "Learning Representations by Contrasting Clusters While Bootstrapping Instances" [2] (submitted to ICLR 2021). During the AAAI rebuttal phase, we noticed [1] and cited it in our camera ready, and we saw [2] several days ago.
The three works share a similar idea of conducting contrastive learning at both the instance- and cluster-level and are proposed within the same period, which proves the value and effectiveness of this idea.
Among the three works, we would like to highlight (one major difference with these works) that our story explicitly starts with the idea of "label is representation'' and we accordingly proposed that contrastive learning could be applied to the row and column space of data. As a result, clustering can be achieved in an online manner. Note that the advantage of online clustering is also pointed in our work only. Besides, we found that our method is remarkably superior to [1,2] even they own a similar idea. For example, our method achieves 0.705 NMI on CIFAR-10 compared with 0.621 by [1] and 0.630 by [2].
Anyway, these three independent works show the value of using contrastive learning for clustering. And if the authors of [1-2] see this message, we would be highly encouraged and grateful if you could cite our work, just like we did.

Thank you for your comment. I later found the differences in these papers. The idea of 'label is representation' is novel.

Thank you for your comment. I later found the differences in these papers. The idea of 'label is representation' is novel.


timeout for add peer node to channel

4.7.4 add peer node to channel peer=org1peer1 channel=channel-sample
Warning: resource channels/channel-sample is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by kubectl apply. kubectl apply should only be used on resources created declaratively by either kubectl create --save-config or kubectl apply. The missing annotation will be patched automatically.
channel.ibp.com/channel-sample configured
Timeout reached

https://github.com/bestchains/fabric-operator/actions/runs/4411490535/jobs/7730102126#step:6:302
https://github.com/bestchains/fabric-operator/actions/runs/4449729687/jobs/7821291124#step:6:2718

@Abirdcfly any progress?

any progress?

Not seen it again in recent github test or local test.

ok,then close it now . Reopen when it occurs again.


Code not running correctly

I am doing a python problem currently (Create Phone Number by xDranik)
my code works in pyCharm, andI'm sure it works, but the output is obscured in the random tests for some reason.
Here is the code:
def create_phone_number(n):
    li = n
    li.insert(0, "(")
    li.insert(4, ") ")
    li.insert(8, "-")
    s = ""
    for x in n:
        s += str(x)
    return s

for some reason, it works for basic tests, but not the random tests.
Here is the output log for some of the random tests:
Testing for [3, 6, 5, 1, 9, 7, 3, 9, 3, 8]
It should work for random inputs too: '(365) 197-3938' should equal '((36) 5) 1-97-3938'
Testing for [3, 3, 0, 2, 8, 4, 7, 5, 2, 1]
It should work for random inputs too: '(330) 284-7521' should equal '((33) 0) 2-84-7521'

Update: I did the same thing in java, and it worked.
import java.util.ArrayList; public class Kata {   public static String createPhoneNumber(int[] numbers) {     ArrayList x = new ArrayList();     for(int i=0;i<numbers.length;i++)       x.add(numbers[i]);     x.add(0,"(");     x.add(4,") ");     x.add(8,"-");     String s="";     for(int i=0;i<x.size();i++)       s+=x.get(i);     return s;   } }


uninitialized constant Octopress::Ink

I'm getting this since the last update:

/Library/Ruby/Gems/2.0.0/gems/octopress-feeds-2.0.4/lib/octopress-feeds.rb:8:in `<top (required)>': uninitialized constant Octopress::Ink (NameError)

What command are you running to get this? Does bundle exec [whatever command] make a difference?

That's what I'm doing:
bundle exec jekyll serve -t
And here's my Gemfile:
source 'https://rubygems.org'

gem "octopress", "~> 3.0.0.rc.10"

#JS runtime for build
gem 'execjs'
gem 'typhoeus'
gem 'therubyracer'

group :jekyll_plugins do
  gem 'octopress-genesis-theme'
  gem 'octopress-feeds'
  gem 'octopress-asset-pipeline'
  gem 'octopress-paginate'
end

I think you may want to change your octopress gem to gem "octopres", "~> 3.0", update, and try again. Let me know if that fixes it for you.

I did not :disappointed:

Thanks so much for posting this. I figured it out! I poked around in the Bundler code and figured out it was some issue with the way I was loading Gemfile groups. Anyhow, update to Octopress 3.0.6 and you should be good to go.

Yep. That did it!
Thanks!

Excellent. Thanks again!


Replacing image, moving text

Docs Build status updates of commit 76b4e1a:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/windows-vision-skills/index.md
:white_check_mark:Succeeded
View

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.


Brightness ESP8266

So I know there is another issue with the same topic but it seems to be pretty burried so I don't know if my comment will even reach anyone who can help me. Feel free to delete/close this one if that one is still accesible. So I need to know is there any way after all this time to just tone down the brightness a bit as the strip starts running pretty hot pretty soon, and it's way too bright.
I've heard that it's possible to implement a matrix operation into the python code, but I don't have a lot of experience with python code so I can't really do that.
Thanks in advance!

What i did is to go in the "lib" folder and then edit config.py.
Change the number in line 16 " 'MAX_BRIGHTNESS': 250, # Max brightness sent to LED strip" to something between 250 and 0, that worked fine for me.

Does @biejay 's solution work for you?

Hello, sorry for responding so late, but no it didn't work, I tried that too but that is ONLY for raspberry pi. I however switched to ledfx witch is using this library and just got over the unchangable brightness :D

Is there anyone could change brightness for esp? First comment is works for pi. And in last comment you said ledfx. Whats is ledfx? Please help :( @TheUNkilled123 @joeybab3


Add yml linter

Adds yamllint as our linter for .yml files.

This change is

I'm a bit concerned that the team isn't consistently using these.  I think there are pros and cons.  We should work on making it only pros.  8-)

Review status: :shipit: complete! 1 of 1 LGTMs obtained

Comments from Reviewable


Fix typo

Are you taking on building out this thing or.... ?

What do you mean?

Was this abandoned...?

BLS's intent is for the UI of DN to be reworked into a websocket - html system, and not a flash based one. If you can get it working he'll consider it for implementation. The administration at DN is very against change, I believe they saw the project as a threat. The staff here at Salvation had trouble working with them and we had our own issues to solve so we became a YGOPro variant instead of helping.
You'll need something that proxies TCP to websocket, I can explain what you need to do and review code for you.

I don't think i'll consider helping with that, sorry. I've never used YGOpro and have barely seen it.

Well if you are going to work on DNjs, just keep putting in patches.

Sure.


DateTimeCron typeclass testing improvements

Codecov Report

Merging #34 into master will increase coverage by 6.68%.

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


All modifying commands convert russian letters to their unicode codes

All modifying commands convert russian letters to their unicode codes.
For instance command  Pretty JSON Format JSON does this:
"name" : "Лиловый"   ->   "name": "\u041b\u0438\u043b\u043e\u0432\u044b\u0439"

Set the following setting "ensure_ascii": false


Moving Lamborgini Animation

Description 📜
A full responsive Moving Lamborgini Animation build using HTML, CSS & JavaScript.
Fixes #1463

Type of change 📝

[x] Add a new project
[] Modified or enhanced the existing projects
[] Improve the readme of any project

Domain of Contribution 📊
Please delete options that are not relevant. In order to tick the check box just put x inside them for example [x] like this

[] Project using only HTML & CSS
[x] Project using HTML, CSS & JS
[] Project using ReactJs

Checklist ✅

[x] I have performed a self-review of my own code or work.
[x] I have commented on my code, particularly in hard-to-understand areas.
[x] My changes generate no new warnings.
[x] I'm GSSoC'22 contributor

Screenshots / Gif (Recommended) 📸
https://user-images.githubusercontent.com/100334178/167421778-9b647708-660f-4435-9b3b-95bd26a4c148.mp4

@gurjeetsinghvirdee please review  ......."Its LAMBORGINI please remember😂"

wo thoda feel aaye tha's why 😂


Replace deprecated command with environment file

What this PR does / why we need it?
Update workflows to use environment file instead of deprecated set-output command.
I found the workflow files that use set-output command through the following command:
$ find . -name '*.yml' -o -name '*.yaml' | xargs egrep '\bset-output\b'

AS-IS
if [ -f "${{ github.workspace }}/yarn.lock" ]; then
  echo "::set-output name=manager::yarn"
  echo "::set-output name=command::install"
  echo "::set-output name=runner::yarn"
  exit 0
elif [ -f "${{ github.workspace }}/package.json" ]; then
  echo "::set-output name=manager::npm"
  echo "::set-output name=command::ci"
  echo "::set-output name=runner::npx --no-install"
  exit 0
else

TO-BE
if [ -f "${{ github.workspace }}/yarn.lock" ]; then
  echo "manager=yarn" >> $GITHUB_OUTPUT
  echo "command=install" >> $GITHUB_OUTPUT
  echo "runner=yarn" >> $GITHUB_OUTPUT
  exit 0
elif [ -f "${{ github.workspace }}/package.json" ]; then
  echo "manager=npm" >> $GITHUB_OUTPUT
  echo "command=ci" >> $GITHUB_OUTPUT
  echo "runner=npx --no-install" >> $GITHUB_OUTPUT
  exit 0
else

Any background context you want to provide?
For more information, see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
What are the relevant tickets?

Fixes #68
Checklist

[ ] Added relevant tests or not required
[ ] Didn't break anything

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Ctl commmand status certificate: Add events output

What this PR does / why we need it:
This PR adds the Events of the Certificate and of the CertificateRequest to the output of the ctl command status certificate
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
Special notes for your reviewer:

I added a implementation of the PrefixWriter interface that is defined in the describe package of kubectl in order to reuse the existing function DescribeEvents(). Not sure if there is a better way? An alternative I considered was to copy DescribeEvents() (along with a few private functions) and modify the copy.
I am not sure where the changes in LICENSES and go.sum come from, but it was automatically generated when I ran ./hack/update-deps.sh.
There is a slight problem in the formatting when printing the Events of the CertificateRequest which is because of how DescribeEvents() is implemented, where they print Events:\nType\tReason and so on. It's not very big of a problem as the rest of the output is still correct. What do you think?

  Events:
  Type  Reason  Age     From    Message
    ----        ------  ----    ----    -------
    Normal      OrderCreated    27s     cert-manager    Created Order resource default/v1alpha3-certificate-pmlc7-1319513028
    Normal      OrderPending    27s     cert-manager    Waiting on certificate issuance from order default/v1alpha3-certificate-pmlc7-1319513028: ""

Release note:

Add Events of the Certificate and of the CertificateRequest to the output of the ctl command `status certificate`

/area ctl
/kind feature

Hmm why did it not find the CR?

/approve


Change nav-item background color on hover

On the website im building, im trying to create the effect that when you hover over a nav-item, the background changes from white to green (in the attached image, i was hovered over "About" when doing the screen capture).

Anyway, im trying to make this background color change the full height of the navbar, but i just can't get it to work;
I know the extra padding (top & bottom) which isn't changing color is from the navbar class;
I've been trying css like this, but its not making any difference;
Note: .navbar-custom class just changes the navbar background color to white & adds the border to the bottom.
  .navbar .navbar-custom .nav-item:hover .nav-link{
        color: #ffffff;
        background-color: green !important;
    }

Any suggestions ?

Hi,
I've tried this solution:
      .navbar-nav .nav-link:hover {
        background-color: green;
        color: #fff;
        transition: background-color .3s ease-in-out, color .1s ease-in-out;
      }

It seems it works.

the only difference with that CSS, is that the transition in color is smoother - but it does nothing to make the hover color full height of the navbar.
Here's the HTML of my navbar;

          <button class="navbar-toggler" type="button"
                  data-toggle="collapse"
                  data-target="#navbarTogglerDemo"

                  aria-controls="navbarTogglerDemo"
                  aria-expanded="false"
                  aria-label="Toggle navigation">

          </button>

                About

                Photos

                Collections

                Careers

                Contact

      ```

Yes, you are right – i understood you incorrect.
Try please this code:
      .navbar-custom {
        padding-top: 0;
        padding-bottom: 0;
      }
      .navbar-brand {
        padding-top: .8125rem;
        padding-bottom: .8125rem;
      }
      .navbar-nav .nav-link {
        padding-top: 1.1rem;
        padding-bottom: 1.1rem;
        transition: background-color .3s ease-in-out, color .1s ease-in-out;
      }
      .navbar-light .navbar-nav .nav-link:hover {
        background-color: green;
        color: #fff;
      }

P.S. May be you should correct values (padding-top, padding-bottom) of the "nav-link" to fill background color to full height.

Thanks heaps!
I ended up changing to this:
.navbar-nav .nav-link {
        padding-top: 1.3rem;
        padding-bottom: 1.3rem;

and while it isn't completely flush against the top/bottom (as i originally said), i think it looks better with the very thin white space above & below.


How to use it for multivariate forecasting?

@harshitv804 as we discussed in the paper, Chronos currently focuses on univariate forecasting. For multivariate time series, you might want to use Chronos on the individual dimensions independently. If you have specific multivariate use cases/datasets to share with us, please do. It will helpful for us to understand the types of practical multivariate problems.

Keeping this open for visibility, since others may have the same question

Can chronos take multiple inputs (channels) but make predictions on a single one of them?
I have pushed a data of size: (n_features, samples) and it makes predictions on one of them. However, it seems like I cannot choose the feature that it is making predictions on. Is there a way to choose it?
Thanks

@ozanbarism if I understand your question right, you want to provide covariates: this is not possible, see #22.

I have pushed a data of size: (n_features, samples) and it makes predictions on one of them.

I'm not sure what you mean here: don't you get predictions for all of them? That's what should happen

I do not get predictions for all of them. I get predictions for one of them it seems like.
Also, there is a number of samples term, is this the length of the context data we provide?
This is what it looks like for a univariate data.

And this is the case where i push multivariate data. as you can see it still returns a single prediction column.

this is my code model = ChronosModel(name = "amazon/chronos-t5-small",
device = "cpu")
duration = 20 # in hours
pred_hrz = 2
sampling_rates=[300]
for i, sr in enumerate(sampling_rates):
Parameter = ParameterGenerator('OfficeSmall', 'Hot_Dry', 'Tucson', max_power=max_power, time_reso=control_rate)  # Description of ParameterGenerator in bldg_utils.py
data, gt = building_simulate(Parameter, room_id, duration, pred_hrz, control_rate,
                          sr, T_cool, T_heat, mode, hysteresis_margin, single_variate=False, make_plot=False, show_outdoor=False)

pred_len = int(pred_hrz*3600/sr)
low, forecast, high = model(data, prediction_length=pred_len, num_samples=1)
plot_pred(data, forecast, gt, forecast_index=None)
print('MSE {:.4f}'.format(np.mean((forecast-gt[:,0])**2)))

and this is how i defined the chronosmodel class
class ChronosModel:
def __init__(self, name, device="cuda"):
    from chronos import ChronosPipeline
    self.model = ChronosPipeline.from_pretrained(
        name,
        device_map=device,  # use "cpu" for CPU inference and "mps" for Apple Silicon
        torch_dtype=torch.bfloat16,
    )

def __call__(self, data, prediction_length, num_samples=1):
    if not torch.is_tensor(data):
        _data = torch.tensor(data)
    else:
        _data = data
    forecast = self.model.predict(
        context=_data,
        prediction_length=prediction_length,
        num_samples=num_samples,
    )

    low, median, high = np.quantile(forecast[0].numpy(), [0.1, 0.5, 0.9], axis=0)
    return low, median, high # 80% interval

Also, there is a number of samples term, is this the length of the context data we provide?

From the documentation:

Once trained, probabilistic forecasts are obtained by sampling multiple future trajectories given the historical context

So you will get more than one output (multiple future trajectories) equal to the num_samples. If you only want one prediction you can set to 1, but most users will take the median of the default 20 as your code does with np.quantile().
The code example is a bit difficult to follow (why add a model wrapper here?) I suspect that you're only getting one prediction because you set the 0th forecast to always be output with forecast[0].
From the plots though, each blue line can be thought of as an independent univariate time series such as a collection of independent weather stations collection temperature data. This model can't take in traditional model "features", but can predict on each univariate series in parallel based only off the historical. So when you add in several "features" like that (T_cool, T_heat etc.) it could predict the next values of each "features" but not use them to inform a target variable as @lostella mentioned.
To get each prediction you would need to loop through the number of univariate time series that you have with something like:
for i in range(num_of_series):
    forecast[i].median()

Hope this helps.

@harshitv804 I am working on extending chronos to add covariates using an lgbm regression head on top of univariate embeddings
If you want to assist me to progress on this solution I would really appreciate it
https://github.com/autogluon/autogluon/pull/4278

If you have specific multivariate use cases/datasets to share with us, please do. It will helpful for us to understand the types of practical multivariate problems.

@abdulfatir The multivariate use case I have is to forecast the open, high, low, and close of an asset in the financial markets aka candlestick charts. In this case, I don't think forecasting on the individual dimensions independently is ideal, since in a given timestep, since there is a dependent relationship between the dimensions.

@hsm207 Do you want to forecast all 3 variables future based on all 3 variables past value?
Did you try https://huggingface.co/Salesforce/moirai-1.0-R-large?

Do you want to forecast all 3 variables future based on all 3 variables past value?

@ikvision yes, I want to forecast all 4 variables (open, high, low, close) based on the 4 variable's past value.

Did you try https://huggingface.co/Salesforce/moirai-1.0-R-large?

I have not. Thanks for sharing! I was not aware of this paper before. From the abstract, it looks like it will help.

Hi, guys. Thanks for your discussion. I got some useful info, cool.  In my case, I have the medical data of different vital signs for multiple patients. These are multivariate time series data. The multivariate part comes from different measurement items, like PH, SpO2, Urine Output, etc total 12 item.
For example, for the 5000 patients. We will have the data(ndarray) shape (5000, 12, 200). 200 is the time-series data.


[Python] Segfault when reading parquet files if pytorch is imported before pyarrow

pyarrow (version 0.10.0) appears to crash sporadically with a segmentation fault when reading parquet files if it is used in a program where torch is imported first.
A self-contained example is available here: https://gitlab.com/ostrokach/pyarrow_pytorch_segfault.
Basically, running
python -X faulthandler -c "import torch; import pyarrow.parquet as pq; _ = pq.ParquetFile('example.parquet').read_row_group(0)"

sooner or later results in a segfault:
Fatal Python error: Segmentation fault

Current thread 0x00007f52959bb740 (most recent call first):
  File "/home/kimlab1/strokach/anaconda/lib/python3.6/site-packages/pyarrow/parquet.py", line 125 in read_row_group
  File "<string>", line 1 in <module>
./test_fail.sh: line 5: 42612 Segmentation fault      (core dumped) python -X faulthandler -c "import torch; import pyarrow.parquet as pq; _ = pq.ParquetFile('example.parquet').read_row_group(0)"

The number of iterations before a segfault varies, but it usually happens within the first several calls.
Running
python -X faulthandler -c "import pyarrow.parquet as pq; import torch; _ = pq.ParquetFile('example.parquet').read_row_group(0)"

works without a problem.

>>> bt
#0  0x00007f801d44cb90 in ?? ()
#1  0x00007f7fdb3e1e73 in std::_Sp_counted_ptr_inplace<parquet::DataPage, std::allocator<parquet::DataPage>, (__gnu_cxx::_Lock_policy)2>::_M_dispose() () from /home/fsaintjacques/.local/lib/python2.7/site-packages/pyarrow/libparquet.so.1
#2  0x00007f7fdb393b29 in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release() () from /home/fsaintjacques/.local/lib/python2.7/site-packages/pyarrow/libparquet.so.1
#3  0x00007f7fdb3ba28f in parquet::internal::TypedRecordReader<parquet::DataType<(parquet::Type::type)2> >::ReadNewPage() () from /home/fsaintjacques/.local/lib/python2.7/site-packages/pyarrow/libparquet.so.1
#4  0x00007f7fdb3bac20 in parquet::internal::TypedRecordReader<parquet::DataType<(parquet::Type::type)2> >::ReadRecords(long) () from /home/fsaintjacques/.local/lib/python2.7/site-packages/pyarrow/libparquet.so.1
#5  0x00007f7fdb391676 in parquet::arrow::PrimitiveImpl::NextBatch(long, std::shared_ptr<arrow::Array>*) () from /home/fsaintjacques/.local/lib/python2.7/site-packages/pyarrow/libparquet.so.1
#6  0x00007f7fdb38cfae in parquet::arrow::ColumnReader::NextBatch(long, std::shared_ptr<arrow::Array>*) () from /home/fsaintjacques/.local/lib/python2.7/site-packages/pyarrow/libparquet.so.1
#7  0x00007f7fdb38dbcb in parquet::arrow::FileReader::Impl::ReadColumnChunk(int, int, std::shared_ptr<arrow::Array>*) () from /home/fsaintjacques/.local/lib/python2.7/site-packages/pyarrow/libparquet.so.1
#8  0x00007f7fdb38e10f in parquet::arrow::FileReader::Impl::ReadRowGroup(int, std::vector<int, std::allocator<int> > const&, std::shared_ptr<arrow::Table>*)::{lambda(int)#1}::operator()(int) const () from /home/fsaintjacques/.local/lib/python2.7/site-packages/pyarrow/libparquet.so.1
#9  0x00007f7fdb38ef20 in parquet::arrow::FileReader::Impl::ReadRowGroup(int, std::vector<int, std::allocator<int> > const&, std::shared_ptr<arrow::Table>*) () from /home/fsaintjacques/.local/lib/python2.7/site-packages/pyarrow/libparquet.so.1
#10 0x00007f7fdb38f2f4 in parquet::arrow::FileReader::Impl::ReadRowGroup(int, std::shared_ptr<arrow::Table>*) () from /home/fsaintjacques/.local/lib/python2.7/site-packages/pyarrow/libparquet.so.1
#11 0x00007f7fdb38f402 in parquet::arrow::FileReader::ReadRowGroup(int, std::shared_ptr<arrow::Table>*) () from /home/fsaintjacques/.local/lib/python2.7/site-packages/pyarrow/libparquet.so.1
#12 0x00007f7fd9fd8f12 in __pyx_pw_7pyarrow_8_parquet_13ParquetReader_7read_row_group(_object*, _object*, _object*) () from /home/fsaintjacques/.local/lib/python2.7/site-packages/pyarrow/_parquet.so
#13 0x00005593b92f4d57 in PyEval_EvalFrameEx ()
#14 0x00005593b92eb8ca in PyEval_EvalCodeEx ()
#15 0x00005593b92f324e in PyEval_EvalFrameEx ()
#16 0x00005593b92eb8ca in PyEval_EvalCodeEx ()
#17 0x00005593b92eb1e9 in PyEval_EvalCode ()
#18 0x00005593b931bbdf in ?? ()
#19 0x00005593b9348586 in PyRun_StringFlags ()
#20 0x00005593b9348b4c in PyRun_SimpleStringFlags ()
#21 0x00005593b92c547c in Py_Main ()
#22 0x00007f8036884b97 in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#23 0x00005593b92c4e0a in _start ()

The backtrace looks like the same problem as we see with the tensorflow wheels. They both use a newer libstdc++ version and when pyarrow is imported last, the virtual shared pointer destructor will be picked up from the torch libstdc++.
One should have a look at the symbols exported by the Torch wheel, maybe it could help if they would employ also the same symbol hiding as we do in pyarrow.

@ostrokach Can you open a JIRA with your description? That would make it better to track long-term.

It's odd since in theory newer libstdc++ symbols should be ABI-compatible

There are some bits that broke a bit in older versions which also could affect our manylinux1 wheels: https://gcc.gnu.org/wiki/Cxx11AbiCompatibility

Link to JIRA issue: https://jira.apache.org/jira/browse/ARROW-3346

thanks

A possible solution is a switch on fastparquet: pd.core.config.set_option('io.parquet.engine', 'fastparquet')

A possible solution is a switch on fastparquet in padnas: pd.core.config.set_option('io.parquet.engine', 'fastparquet')

No, we want the bug in pyarrow fixed ;)

Oh really? I was trying to debug this thing for a couple of days :D
This flickering bug was coming and going, and only now I see that it was there only when I had torch imported.


Edits to Slack channel documentation

Slack website UI has changed from previously documented content, updating to reflect new Slack/Bot integration.

@simonpo,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot


Upgrade to Bevy 0.12

Updates dependencies to support Bevy 0.12 and replaces the depracated iter method to read for event readers. A really easy migration :)

Fixed the lint errors, some documentation was still using .add_plugin(...) which was depracated in 0.11 already and removed in 0.12

Added dependency versioning updates to changelog


0.45.2-alpha-20230410044421-f7b4f69 ipfs failed to upload

Which packages are impacted by your issue?
@graphprotocol/graph-cli
Describe the issue
Failed to upload subgraph to IPFS: Failed to upload file to IPFS: Cannot follow redirect with body being a readable stream
Reproduction
0.45.2-alpha-20230410044421-f7b4f69
Steps to Reproduce the Bug or Issue
grpah deploy
Expected behavior
success upload
Screenshots or Videos
No response
Platform
windows
nodejs16
graph-cli
Subgraph Manifest
No response
Subgraph GraphQL Schema
No response
Additional context
No response

not sure why this issue exists. That alpha tag was something if you follow the CI trace here failing for a reason https://github.com/graphprotocol/graph-tooling/pull/1268

should be patched in<EMAIL_ADDRESS>

ok


Would be really nice to add typescript and coffeescript file supports

Typescript and CoffeeScript are two languages that compile to javascript and needed file path insert support too.
For example, they all have this require(...). And also, Typescript has this
/// <reference path="..." />

for it's intellisense support.
Hopefully this could be implemented, that would be so helpful.
PS: For more information, see http://www.typescriptlang.org/ and http://coffee-script.org/ .

Hi.
You can add the required triggers yourself if you follow the python tutorial.
I will post the triggers myself in the coming days and add them to the default scope-list.

@sagold Great! That would be handy!

Hi.
The following are proposals for the Typescript triggers
{
    // Typescript // <reference path="" />
    "scope": "source\\.ts\\scomment",

    "auto": true,
    "relative": true,
    "base_directory": false,
    "prefix": ["path"],
    "tagName": ["reference"],
    "extensions": ["ts", "js"],
    "replace_on_insert": []
},
{
    // Typescript es6 import from/import "*"
    "scope": "string[^\\s]*\\.ts\\s",

    "auto": true,
    "relative": true,
    "base_directory": false,
    "prefix": ["from", "import"],
    "extensions": ["js", "ts"],
    "replace_on_insert": [
	["(\\.js|\\.ts)$", ""],
	["([^.])\\/index$", "\\1"]
    ]
},

and Coffeescript
{
	// Coffeescript es6 import from/import "*" and require
	"scope": "string[^\\s]*\\.coffee\\s",

	"auto": true,
	"relative": true,
	"base_directory": false,
	"prefix": ["from", "import", "require"],
	"extensions": ["coffee"],
	"replace_on_insert": []
},

There is a minor issue with // <reference ..., because sublime does not trigger autocompletion in comments (for me). Hitting autocomplete manually opens the dialog.
Would be great if this is tested in the field, before i add them to the default triggers.

@sagold Great, thanks for the work. Unfortunately I cannot test it for now.

The changes are released https://github.com/sagold/FuzzyFilePath/commit/92be02fdaa6b5cceb05d89b49bae74634512bfcc


4D5308D6 - Fable III

Validation

[X] I've read the FAQ.
[X] The Xenia build used is from a canary branch. (not MLBS/AlexVS/master/pull requests, etc)
[X] This issue isn't for help (tech support) with Xenia, or a game.
[X] I've checked if this game doesn't already have a compatibility report.

Xbox 360 Marketplace link
https://marketplace.xbox.com/it-it/Product/Fable-III/66acd000-77fe-1000-9115-d8024d5308d6
Xenia version
https://github.com/xenia-canary/xenia-canary/commit/f62ac9868a628d06a32c49c5ff9fa9285c191f1f/
Issues
The game crashes after the character selection or after choosing any language into the Options menu
Log
xenia.zip
Screenshots
https://i.postimg.cc/VNFtgcKN/Cattura.png
Labels
state-crash-guest

Was using
https://github.com/xenia-canary/xenia-canary/commit/0674b68143a3bfca484762cf603852d7845ea1c6
And the game actually went ingame without crashing. Only crash I found was from pausing the game for too long.

There is still 0% brightness on some textures settings like readback resolve, readback memexport, invalid fetch gpu constants did not fix the textures on my PC.
Tag suggested updates is:
State - gameplay

https://github.com/xenia-canary/xenia-canary/commit/85723f117dc6c8a88683af1f04cab0abe770df11

log_level = 3 log;
xenia.log.zip

Tested on: https://github.com/xenia-project/xenia/commit/7003e54e510fa2169a9434cdb8d608bff7f7be1e
xenia.zip
No changes since last report. Most textures are not rendered, lighting/shadow system appears to be busted as well.
Screenshots

gpu-drawing-missing | state-gameplay | tech-middleware-havok


Github Authentication, Repository Model, Team Members and User Earnings Tasks

Added djangorestframework-simplejwt package in base.in to support JWT Token authentication.
Made UserViewSet to editable by authenticted users.
Added Repository Model with its App config the urls in repository folder.
Added Authenctication class in rest framework for JWT support
Added github login env variables in compose file.
Added job_title required field in TeamMember model
Included all allauth urls which handles github login at the moment.
Added routes for team_members api
Made the repository field type to ForeignKey in UserEarnings model.
Modified the filterset_fields to repository__display_name.

Frontend for this: https://github.com/thenewboston-developers/Website/pull/1097

@vosi Sure. Fixing the pipeline error and Adding tests for the implemented features.

Hi @vosi initially, I was getting the pipeline error due to flak8 liniting and after fixing it, I got pytest error because we changed some of the fields in UserEraning model and TeamMembers model. I tried to fixed those tests and run the pytest in local system and I am able to pass 43 tests out of 46 and 3 are failing. Out of these 3, when I run 2 tests individually, it is running fine but those are not working when running all tests together for some strange reason.
I attached the test summay for reference. Can you please help me out to solve the mentioned issue?

@pgeorge2 according to the log, you have to fix the test. ... the fix is pretty obvious ... I don't even know how to explain the problem ... other that test log

Closes #26


Add Input validation

Prerequisites

[X] I have written a descriptive issue title
[X] I have searched existing issues to ensure the feature has not already been requested

🚀 Feature Proposal
Wie should Check If the options passed to busboy are valid and if not throw TypeErrors.
https://github.com/mscdex/busboy/pull/207
If you agree @kibertoad  I would prepare a PR
Motivation
No response
Example
No response

I think I already merged PR based on issue 207, but we probably should review all ootions. Also fail-fast on creation would be better than the one on runtime we have one.

Awesome!


Update Dependencies (RxJS 4; Cycle; Babel) and running on Node 6.6.0 & npm 3.10.7

Update all dependencies to latest/newer version.

Using an updated Node and npm I was not able to build the current master. These changes were required to make things compile again. Maybe verify I did the right thing here @staltz.
One of the things that changed since the previous Babel version is that Babel is now by default not applying the es2015 preset. By using the new .babelrc it is.
Furthermore it seems that node is no longer generating node_modules folders inside deeper node_modules/<library> folders. This triggered me to rework the complete set of build scripts.

I added some more changes: updated to RxJS 4 as well.
The functionality stays exactly the same, but is using the newest dependencies.

@staltz you should give @hermanbanken write access to your repository so that this parent repo can stay alive.


Whether need support beautify print object, like list or dict

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

Not need do in this repo.


Fix force change by pre-commit induced at #260

Codecov Report
Base: 50.92% // Head: 50.92% // No change to project coverage :thumbsup:

Coverage data is based on head (5b4ca7a) compared to base (88388d8).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #261   +/-   ##
========================================
  Coverage    50.92%   50.92%
========================================
  Files          117      117
  Lines        18474    18474
========================================
  Hits          9407     9407
  Misses        9067     9067

Impacted Files
Coverage Δ

phonopy/structure/cells.py
77.81% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Update instructions to delete a Rapid Test Profile

This PR resolves issue https://github.com/corona-warn-app/cwa-website/issues/2280 "Incorrect instructions to delete a Rapid Test Profile for Android" concerning the FAQ articles:

https://www.coronawarn.app/en/faq/#rat_profile_create_edit_delete "How can I create, edit and remove a rapid test profile?"

https://www.coronawarn.app/de/faq/#rat_profile_create_edit_delete "Wie kann ich ein Schnelltest-Profil anlegen, bearbeiten und entfernen?"

It changes the titles and text to use the terms "delete" and "löschen" according to the current (2.15.1) UI text.

Previous menu item texts using different terms are mentioned.

A missing bullet point is added to the English text (Android).

https://www.coronawarn.app/en/faq/#rat_profile_create_edit_delete "How can I create, edit and delete a rapid test profile?" (EN)

https://www.coronawarn.app/de/faq/#rat_profile_create_edit_delete "Wie kann ich ein Schnelltest-Profil anlegen, bearbeiten und löschen?" (DE)

@MikeMcC399 Thanks a lot for improving/correcting this article!

@dsarkar
Unfortunately there is a typo in the change I submitted, so I have added https://github.com/corona-warn-app/cwa-website/pull/2285 to fix this.

I would have liked to add some points here, but I wasn't fast enough, so I took the time and submitted PR #2288.