[IOS] didChangePlatformBrightness called twice when the app is moved to background

I am having an issue with WidgetsBindingObserver in my application. Whenever I put the app in the background, notice that didChangePlatformBrightness is called twice with two different values of system brightness from WidgetsBinding.instance?.window.platformBrightness. If the OS is in dark mode setting, the value of platformBrightness is Brightness.light in the first call of didChangePlatformBrightness, and Brightness.dark in the second call of didChangePlatformBrightness. If the OS is in light mode settings, the order of the values is opposite. I saw that there is a closed issue already - #56879, and it has a workaround, but I would like to know the actual reason which causes the issue and would like to have a truly working solution for that. Have created a code sample, which is based on the flutter example code.
Steps to Reproduce

flutter create myapp
replace _MyHomePageState with the one in code sample.
flutter run on an actual device.
put the app in the background.
it should print the brightness twice.

Expected results:
Actual results:

Code sample

class _MyHomePageState extends State<MyHomePage> with WidgetsBindingObserver {
  int _counter = 0;

  @override
  void initState() {
    WidgetsBinding.instance?.addObserver(this);
    super.initState();
  }

  @override
  void dispose() {
    WidgetsBinding.instance?.removeObserver(this);
    super.dispose();
  }

  void _incrementCounter() {
    setState(() {
      // This call to setState tells the Flutter framework that something has
      // changed in this State, which causes it to rerun the build method below
      // so that the display can reflect the updated values. If we changed
      // _counter without calling setState(), then the build method would not be
      // called again, and so nothing would appear to happen.
      _counter++;
    });
  }

  @override
  void didChangePlatformBrightness() {
    var brightness = WidgetsBinding.instance?.window.platformBrightness;

    print(brightness);

    super.didChangePlatformBrightness();
  }

  @override
  Widget build(BuildContext context) {
    // This method is rerun every time setState is called, for instance as done
    // by the _incrementCounter method above.
    //
    // The Flutter framework has been optimized to make rerunning build methods
    // fast, so that you can just rebuild anything that needs updating rather
    // than having to individually change instances of widgets.
    return Scaffold(
      appBar: AppBar(
        // Here we take the value from the MyHomePage object that was created by
        // the App.build method, and use it to set our appbar title.
        title: Text(widget.title),
      ),
      body: Center(
        // Center is a layout widget. It takes a single child and positions it
        // in the middle of the parent.
        child: Column(
          // Column is also a layout widget. It takes a list of children and
          // arranges them vertically. By default, it sizes itself to fit its
          // children horizontally, and tries to be as tall as its parent.
          //
          // Invoke "debug painting" (press "p" in the console, choose the
          // "Toggle Debug Paint" action from the Flutter Inspector in Android
          // Studio, or the "Toggle Debug Paint" command in Visual Studio Code)
          // to see the wireframe for each widget.
          //
          // Column has various properties to control how it sizes itself and
          // how it positions its children. Here we use mainAxisAlignment to
          // center the children vertically; the main axis here is the vertical
          // axis because Columns are vertical (the cross axis would be
          // horizontal).
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            const Text(
              'You have pushed the button this many times:',
            ),
            Text(
              '$_counter',
              style: Theme.of(context).textTheme.headline4,
            ),
          ],
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: _incrementCounter,
        tooltip: 'Increment',
        child: const Icon(Icons.add),
      ), // This trailing comma makes auto-formatting nicer for build methods.
    );
  }
}

Logs

flutter: Brightness.light
flutter: Brightness.dark

Analyzing didchangeplatformbrightnessissue...

   info • Avoid `print` calls in production code • lib/main.dart:80:5 • avoid_print

1 issue found. (ran in 1.8s)

[✓] Flutter (Channel stable, 2.10.5, on macOS 12.1 21C52 darwin-x64, locale
    en-HK)
    • Flutter version 2.10.5 at /Users/nathanchan/Development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5464c5bac7 (7 days ago), 2022-04-18 09:55:37 -0700
    • Engine revision 57d3bac3dd
    • Dart version 2.16.2
    • DevTools version 2.9.2

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

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

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

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

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

[✓] Connected device (4 available)
    • sdk gphone x86 (mobile)   • emulator-5554             • android-x86    • Android 11 (API 30) (emulator)
    • WiZ’s iPhone (3) (mobile) • 00008101-000A50900ED0001E • ios            • iOS 14.5.1 18E212
    • macOS (desktop)           • macos                     • darwin-x64     • macOS 12.1 21C52 darwin-x64
    • Chrome (web)              • chrome                    • web-javascript • Google Chrome 100.0.4896.127

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

• No issues found!

Hi @nathanchan2022, Thanks for filing the issue. I am able to reproduce the issue on stable and the master channel, On moving the app to background the didChangePlatformBrightness is called twice with two different values.
Labeling this issue for further insights from the team.

code sample
import 'package:flutter/material.dart';

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

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({Key? key, required this.title}) : super(key: key);
  final String title;
  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> with WidgetsBindingObserver {
  int _counter = 0;

  @override
  void initState() {
    WidgetsBinding.instance.addObserver(this);
    super.initState();
  }

  @override
  void dispose() {
    WidgetsBinding.instance.removeObserver(this);
    super.dispose();
  }

  void _incrementCounter() {
    setState(() {
      _counter++;
    });
  }

  @override
  void didChangePlatformBrightness() {
    var brightness = WidgetsBinding.instance.window.platformBrightness;

    print(brightness);

    super.didChangePlatformBrightness();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            const Text(
              'You have pushed the button this many times:',
            ),
            Text(
              '$_counter',
              style: Theme.of(context).textTheme.headline4,
            ),
          ],
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: _incrementCounter,
        tooltip: 'Increment',
        child: const Icon(Icons.add),
      ),
    );
  }
}

logs
Could not load custom device from config index 0: Expected enabled to be a boolean.
Launching lib/main.dart on iPhone 12 Pro in debug mode...
Xcode build done.                                           12.1s
Connecting to VM Service at ws://<IP_ADDRESS>:62032/zjqCCApnua8=/ws
flutter: Brightness.dark
flutter: Brightness.light
flutter: Brightness.dark
flutter: Brightness.light

flutter doctor -v (mac)
[✓] Flutter (Channel stable, 2.10.5, on macOS 12.3 21E230 darwin-arm, locale en-IN)
    • Flutter version 2.10.5 at /Users/mahesh/Documents/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5464c5bac7 (12 hours ago), 2022-04-18 09:55:37 -0700
    • Engine revision 57d3bac3dd
    • Dart version 2.16.2
    • DevTools version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-32, build-tools 31.0.0
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)
    • All Android licenses accepted.

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

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

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

[✓] IntelliJ IDEA Community Edition (version 2021.2.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 61.2.4
    • Dart plugin version 212.5080.8

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

[✓] Connected device (4 available)
    • Redmi K20 Pro (mobile) • <IP_ADDRESS>:55555                    • android-arm64  • Android 11 (API 30)
    • iPhone 12 Pro (mobile) • 535317A4-921C-488F-B234-C2CC6D4AE5A1 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-5 (simulator)
    • macOS (desktop)        • macos                                • darwin-arm64   • macOS 12.3 21E230 darwin-arm
    • Chrome (web)           • chrome                               • web-javascript • Google Chrome 100.0.4896.88

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

• No issues found!

[✓] Flutter (Channel master, 2.13.0-0.0.pre.712, on macOS 12.3 21E230 darwin-arm, locale en-IN)
    • Flutter version 2.13.0-0.0.pre.712 at /Users/mahesh/Documents/flutter_master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 8c22f5648a (77 minutes ago), 2022-04-25 05:34:07 -0400
    • Engine revision 10efa195bf
    • Dart version 2.18.0 (build 2.18.0-44.0.dev)
    • DevTools version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-32, build-tools 31.0.0
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)
    • All Android licenses accepted.

[!] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! CocoaPods 1.10.2 out of date (1.11.0 is recommended).
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that
        responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To upgrade see https://guides.cocoapods.org/using/getting-started.html#installation for
      instructions.

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

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

[✓] IntelliJ IDEA Community Edition (version 2021.2.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 61.2.4
    • Dart plugin version 212.5080.8

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

[✓] Connected device (3 available)
    • Redmi K20 Pro (mobile) • <IP_ADDRESS>:5533 • android-arm64  • Android 11 (API 30)
    • macOS (desktop)        • macos            • darwin-arm64   • macOS 12.3 21E230 darwin-arm
    • Chrome (web)           • chrome           • web-javascript • Google Chrome 100.0.4896.127

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

! Doctor found issues in 1 category.

Works fine on the android platform.

Works fine on the android platform.

I can confirm this  issue is IOS specific, on Android didChangePlatformBrightness  is only called when the Brightness is changed with the current selected Brightness.

logs
Could not load custom device from config index 0: Expected enabled to be a boolean.
Launching lib/main.dart on Redmi K20 Pro in debug mode...
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
✓  Built build/app/outputs/flutter-apk/app-debug.apk.
Connecting to VM Service at ws://<IP_ADDRESS>:53430/OwUoCaCtRSU=/ws
I/iagetest.newap(27159): ProcessProfilingInfo new_methods=1116 is saved saved_to_disk=1 resolve_classes_delay=8000
D/MIUIInput(27159): [MotionEvent] ViewRootImpl { action=ACTION_DOWN, id[0]=0, pointerCount=1, eventTime=191319132, downTime=191319132 } moveCount:0
W/MirrorManager(27159): this model don't Support
D/MIUIInput(27159): [MotionEvent] ViewRootImpl { action=ACTION_UP, id[0]=0, pointerCount=1, eventTime=191319291, downTime=191319132 } moveCount:13
I/flutter (27159): Brightness.dark

flutter doctor -v (mac)
[✓] Flutter (Channel master, 2.13.0-0.0.pre.712, on macOS 12.3 21E230 darwin-arm, locale en-IN)
    • Flutter version 2.13.0-0.0.pre.712 at /Users/mahesh/Documents/flutter_master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 8c22f5648a (77 minutes ago), 2022-04-25 05:34:07 -0400
    • Engine revision 10efa195bf
    • Dart version 2.18.0 (build 2.18.0-44.0.dev)
    • DevTools version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-32, build-tools 31.0.0
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)
    • All Android licenses accepted.

[!] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! CocoaPods 1.10.2 out of date (1.11.0 is recommended).
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that
        responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To upgrade see https://guides.cocoapods.org/using/getting-started.html#installation for
      instructions.

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

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

[✓] IntelliJ IDEA Community Edition (version 2021.2.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 61.2.4
    • Dart plugin version 212.5080.8

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

[✓] Connected device (3 available)
    • Redmi K20 Pro (mobile) • <IP_ADDRESS>:5533 • android-arm64  • Android 11 (API 30)
    • macOS (desktop)        • macos            • darwin-arm64   • macOS 12.3 21E230 darwin-arm
    • Chrome (web)           • chrome           • web-javascript • Google Chrome 100.0.4896.127

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

! Doctor found issues in 1 category.

This is actually a feature: iOS is doing multiple snapshots of your app's UI that will be presented in the App Switcher. And since the user could change to Dark Mode while your app is in the background, iOS does snapshots in both interface styles to always show the correct one.

Maybe I am missing something, but it still doesn't make sense to me. Even the user can potentially change to dark/light mode while the app is in background, there is still no need to emit a "false" value at first time by Flutter. I mean Flutter on Android side doesn't do that and it works fine. To me, returning the unnecessary Brightness value still sounds like a bug to me.

👀 Welcome in 2023 🍹🍷
We are using HERE SDK for Flutter. When the app resuming from background this method causes lot's of problems. Is there another workaround to detect brightness changes?

Probably a duplicate of https://github.com/flutter/flutter/issues/102491

No news about that? It looks like a bug to me... I don't see how reporting a wrong value would be helpful at all...


fix for sanitizing bug

Fixed sdr alert job so that all items are sanitized

test this please

test this please


keyboard navigation of popup

I love that I can set a hotkey to pop up the selection modal, but is there any way to navigate it with arrows so I don't have to use the mouse? 👀

just type the letter. ;)


BrowserModuleAnimation should be imported

as per issue subject..
during any transition even with the stock application you'll receive an error in the console complainign about missing browser animation modules..
effectively it's right..
the template app should be corrected adding the following content in the app.module.ts
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
@NgModule({
imports: [
.....
// missing animation modules
BrowserAnimationsModule,
.....
],
You can easily replicate it with the app after doing an npm start after running the generator.

thanks @witchedwiz this issue has been already solved in development https://github.com/Alfresco/generator-ng2-alfresco-app/blob/development/app/templates/adf-cli-acs-aps-template/src/app/app.module.ts it will be release with the version 2.3.0


Arbitrum

~/arbitrum$ yarn install:validator
yarn run v1.22.5
$ ./scripts/install-validator
-- Submodule update
-- [cable ] Cable 0.5.0 initialized
-- Build type: Release
-- Found GMP: /usr/lib/x86_64-linux-gnu/libgmp.so
-- Found GMPXX: /usr/lib/x86_64-linux-gnu/libgmpxx.so
-- Boost version: 1.65.1
-- Found the following Boost libraries:
--   filesystem
--   system
-- Found rocksdb 6.19 in /usr/local/include;/usr/local/lib/librocksdb.a
-- clang-format found: /usr/bin/clang-format
-- cmake-format not found!
-- [hunter] Calculating Toolchain-SHA1
-- [hunter] Calculating Config-SHA1
-- [hunter] HUNTER_ROOT: /home/niu/.hunter
-- [hunter] [ Hunter-ID: 1377523 | Toolchain-ID: 7f99b88 | Config-ID: 1f8c6e1 ]
-- [hunter] ETHASH_ROOT: /home/niu/.hunter/_Base/1377523/7f99b88/1f8c6e1/Install (ver.: 0.5.0)
-- [hunter] INTX_ROOT: /home/niu/.hunter/_Base/1377523/7f99b88/1f8c6e1/Install (ver.: 0.5.0)
-- GMP: /usr/lib/x86_64-linux-gnu/libgmp.so, /usr/include/x86_64-linux-gnu
CMake Warning (dev) at /usr/share/cmake-3.10/Modules/CheckSymbolExists.cmake:57 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
details.  Use the cmake_policy command to set the policy and suppress this
warning.
Quoted variables like "x" will no longer be dereferenced when the policy is
set to NEW.  Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
/usr/share/cmake-3.10/Modules/CheckSymbolExists.cmake:48 (__CHECK_SYMBOL_EXISTS_IMPL)
/usr/share/cmake-3.10/Modules/FindThreads.cmake:134 (CHECK_SYMBOL_EXISTS)
/home/niu/.hunter/_Base/Download/Hunter/0.23.260/1377523/Unpacked/cmake/find/FindOpenSSL.cmake:376 (find_package)
external/libff/CMakeLists.txt:115 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.
-- Using the single-header code from /home/niu/arbitrum/packages/arb-avm-cpp/external/json/single_include/
-- Found GMP: /usr/lib/x86_64-linux-gnu/libgmp.so
-- Found GMPXX: /usr/lib/x86_64-linux-gnu/libgmpxx.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/niu/arbitrum/packages/arb-avm-cpp/build
[  6%] Built target zm
[ 10%] Built target secp256k1_ext
[ 11%] Building CXX object avm_values/CMakeFiles/avm_values.dir/src/buffer.cpp.o
[ 41%] Built target ff
[ 42%] Building CXX object avm_values/CMakeFiles/avm_values.dir/src/code.cpp.o
In file included from /home/niu/arbitrum/packages/arb-avm-cpp/avm_values/include/avm_values/buffer.hpp:22:0,
from /home/niu/arbitrum/packages/arb-avm-cpp/avm_values/src/buffer.cpp:18:
/usr/include/c++/7/atomic: In instantiation of ‘struct std::atomic<std::optional<intx::uint<256> > >’:
/home/niu/arbitrum/packages/arb-avm-cpp/avm_values/include/avm_values/buffer.hpp:34:43:   required from here
/usr/include/c++/7/atomic:187:7: error: static assertion failed: std::atomic requires a trivially copyable type
static_assert(__is_trivially_copyable(_Tp),
^~~~~~~~~~~~~
In file included from /home/niu/arbitrum/packages/arb-avm-cpp/avm_values/include/avm_values/buffer.hpp:22:0,
from /home/niu/arbitrum/packages/arb-avm-cpp/avm_values/include/avm_values/codepoint.hpp:20,
from /home/niu/arbitrum/packages/arb-avm-cpp/avm_values/include/avm_values/code.hpp:20,
from /home/niu/arbitrum/packages/arb-avm-cpp/avm_values/src/code.cpp:17:
/usr/include/c++/7/atomic: In instantiation of ‘struct std::atomic<std::optional<intx::uint<256> > >’:
/home/niu/arbitrum/packages/arb-avm-cpp/avm_values/include/avm_values/buffer.hpp:34:43:   required from here
/usr/include/c++/7/atomic:187:7: error: static assertion failed: std::atomic requires a trivially copyable type
static_assert(__is_trivially_copyable(_Tp),
^~~~~~~~~~~~~
/home/niu/arbitrum/packages/arb-avm-cpp/avm_values/src/buffer.cpp: In member function ‘std::vector Buffer::serialize(std::vector&) const’:
/home/niu/arbitrum/packages/arb-avm-cpp/avm_values/src/buffer.cpp:380:28: warning: conversion to ‘std::vector::value_type {aka unsigned char}’ from ‘size_t {aka long unsigned int}’ may alter its value [-Wconversion]
value_vector.push_back(depth);
^~~~~
avm_values/CMakeFiles/avm_values.dir/build.make:86: recipe for target 'avm_values/CMakeFiles/avm_values.dir/src/buffer.cpp.o' failed
make[2]: *** [avm_values/CMakeFiles/avm_values.dir/src/buffer.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
avm_values/CMakeFiles/avm_values.dir/build.make:110: recipe for target 'avm_values/CMakeFiles/avm_values.dir/src/code.cpp.o' failed
make[2]: *** [avm_values/CMakeFiles/avm_values.dir/src/code.cpp.o] Error 1
CMakeFiles/Makefile2:1512: recipe for target 'avm_values/CMakeFiles/avm_values.dir/all' failed
make[1]: *** [avm_values/CMakeFiles/avm_values.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
error Command failed with exit code 2.

I am getting the same error, apparently it only happens on Ubuntu 18


Refactoring TableBody (rebase v3.2.0)

Refactor from class component to functional component
ref : #1346
Sorry. When I split it in PR, it's lot..
codeSandBox : http://codesandbox.io/s/github/wdh2100/mui-datatables/tree/functional/tableBody

rebase v3.2.0


Fix frf 215 removed broken aria controls in navigation menu

Removed the broken aria-controls label in Header.tsx to remove this error from all pages.
Removed the test for this in the Home.spec.tsx file.

@kevinofficer I'm not sure if this PR is merging into the right branch? Please can you check.

@Jaffacakes82 yep all good, I've got the apprentices merging into temp once approved I'm merging them into main

So can this be closed without merging?


Removed devDependencies from output file

Updating to allow newer versions of React
Adding NODE_ENV=production to the build command to avoid including the development plugins specified in .babelrc.

Resolving #22

Pinging, are there any active contributors that would be able to merge this? For now I am using this referencing @trioni's fork. Seems other than that the repo has gone inactive

Hi,
How should I use @trioni 's fork?
Thanks!


OSError: /lib64/libm.so.6: version `GLIBC_2.29' not found

Hi
I am trying to use ctransformers to load the falcon-40b ggml model and I get the following error
OSError: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by /home/ec2-user/anaconda3/envs/amazonei_pytorch_latest_p37/lib/python3.7/site-packages/ctransformers/lib/avx2/libctransformers.so)
I am using an AWS Sagemaker notebook. I am new to this, please help in resolving this issue

I believe you still have the model parameter set to Llama instead of falcon in your configuration file. I recognize this error and I believe I fixed it in that way!

This looks related to https://github.com/marella/ctransformers/issues/58#issuecomment-1656702193
I'm guessing  AWS Sagemaker notebook instance is using Amazon Linux 2 which uses old glibc version. You can try building it from source:
pip uninstall ctransformers --yes # uninstall if already installed
pip install ctransformers --no-binary ctransformers

If you need GPU support install using:
CT_CUBLAS=1 pip install ctransformers --no-binary ctransformers


Remove new lines in generated javascript

I was able to get inline-block styling working by just removing new lines from the compiled javascript. Any thoughts on this? Thanks!

As you can these new lines are intended and removing them breaks the tests. The goal was to match the Spacebars result with the Jade syntax.
Could you provide a complete example where these new lines are problematic?

@mquandalle Yea I see what you mean. We normally use a lot of inline-block css styles instead of float. You can see the issue here https://css-tricks.com/fighting-the-space-between-inline-block-elements/
We maintain a separate package for minifying the spacebars markup. So, we will probably just do the same. Just didn't know if anyone else had been having this issue.
If you'd like, I can put together a full example, but feel free to close if you want to stay as close to spacebars as possible. Thanks!

Closing this. BTW the generation code changed quite a bit, mainly in be24a1bc4d7bea92847a59dcd06089dc654d14ac.


Faker generates same word 2 times in a row

We use faker in our project and generally are happy with it.
But from time to time one of our tests fails because faker generates 2 same words in one test.
I've tried to investigate this issue and added this test.
    public function testFakerGenerateUniqueWordsTwoTimesInARow()
    {
        $faker = \Faker\Factory::create();
        $faker->seed(5);

        for ($i = 0; $i < 1000; $i++) {
            $firstWord = $faker->word;
            $secondWord = $faker->word;

            $this->assertNotEquals($firstWord, $secondWord, json_encode([
                'firstWord' => $firstWord,
                'secondWord' => $secondWord,
                'index' => $i
            ]));
        }
    }

When I run it, it fails every time with this message
$ vendor/bin/phpunit --filter testFakerGenerateUniqueWords
PHPUnit 4.7.6 by Sebastian Bergmann and contributors.

F

Time: 4.56 seconds, Memory: 33.00Mb

There was 1 failure:

1) App\Http\Controllers\RecipesControllerTest::testFakerGenerateUniqueWords
{"firstWord":"est","secondWord":"est","index":290}
Failed asserting that 'est' is not equal to <string:est>.

If I comment out line with setting seed test continue failing but at random index.
I'm not sure if this is intended behavior and if not it will be nice to fix it.
Some info about environment
$ composer info -i | grep faker
fzaninotto/faker                      v1.5.0             Faker is a PHP library that generates fake data for you.

$ php -v
PHP 5.5.26-1+deb.sury.org~trusty+1 (cli) (built: Jun 15 2015 10:13:03)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
    with Xdebug v2.3.2, Copyright (c) 2002-2015, by Derick Rethans

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 14.04.2 LTS
Release:	14.04
Codename:	trusty

Sounds like the intended behaviour to me. You need to say you want "unique" if you want them unique...

@GrahamCampbell you mean something like this?
$faker->unique()->word

This way if I run this code
    public function testFakerGenerateUniqueWords()
    {
        $faker = \Faker\Factory::create();
        $faker->seed(5);

        for ($i=0; $i < 1000; $i++) {
            try {
                $firstWord = $faker->unique()->word;
                $secondWord = $faker->unique()->word;
            } catch (\OverflowException $e) {
                dd([
                    'exceptionMessage' => $e->getMessage(),
                    'i' => $i
                ]);
            }

            $this->assertNotEquals($firstWord, $secondWord, json_encode([
                'firstWord' => $firstWord,
                'secondWord' => $secondWord,
                'index' => $i
            ]));
        }
    }

it will return this every time
$ vendor/bin/phpunit --filter testFakerGenerateUniqueWords
PHPUnit 4.7.6 by Sebastian Bergmann and contributors.

array:2 [
  "exceptionMessage" => "Maximum retries of 10000 reached without finding a unique value"
  "i" => 91
]

Aha I think I've got it. This way test passes.
public function testFakerGenerateUniqueWords()
    {
        $faker = \Faker\Factory::create();
        $faker->seed(5);

        for ($i=0; $i < 1000; $i++) {
            try {
                $firstWord = $faker->unique()->word;
                $secondWord = $faker->unique()->word;
            } catch (\OverflowException $e) {
                $firstWord = $faker->unique(true)->word;
                $secondWord = $faker->unique()->word;
            }

            $this->assertNotEquals($firstWord, $secondWord, json_encode([
                'firstWord' => $firstWord,
                'secondWord' => $secondWord,
                'index' => $i
            ]));
        }
    }

Maybe there is a better way?

Because the generators are (pseudo)random, it is possible for them to produce the same value twice, even twice in a row. Exactly how likely that is depends on the generator and how many possible values there are, but it's generally unlikely.
If the generator is seeded with the same number, however, it will always produce the same sequence. If the first two words of that sequence happen to be the same, your test will fail every single time.
If you want to make sure the generator never repeats values, unique() makes sure that all produced values are unique. If there are fewer than 1000 words for it to choose from, this the generator in this test simply runs out and it throws an error because it can't produce any more unique words.
Your tests seem to be working as expected, so the question is, what exactly are you trying to do?

I'm simple man, I'm just trying to make tests in our app work without failing randomly :)
I've looked at word and unique implementation and now understand that there are only 249 unique words and unique will only return unique values or throw exception.
I've added tests above while I was trying to understand the issue. And these tests are obviously synthetic and do not exactly represent test cases we are working on.
At the moment I think adding  $faker->unique()->word where it is needed will solve the issue for us. Thanks for help.


[Feature Request] Add WebRTC API

It would be nice to add WebRTC API ...
Actually, I even can help with adding this API to your project if you do not mind ?

This seems like a large API, if you want to submit a PR for it I would love to review it. Just don't forget to include e2e tests in the cypress suite.

You can wait until I released V1 for this because I'm renaming many classes and methods because of #9


not all datasets get indexed

My Environment

ArangoDB Version:        3.5.0
Storage Engine:             RocksDB
Deployment Mode:        Single Server
Deployment Strategy:   Manual Start in Docker
Infrastructure:               GCP
Total RAM in your machine:        32GB
Disks in use:                  SSD
Used Package:              Docker - official Docker library

Component, Query & Data
Affected feature:
Steps to reproduce
Problem:
Since upgrading to 3.5.0, some datasets seem not to be properly indexed. Thus not findable via searching on _from or _to attributes. Unloading and Loading the collection helps. However, this doesn't create a new index on all datasets that are stored within the collection. So some datasets stay out of the index. If I use an upsert statement the system, however, realises that the same data are already existing and throws an error.
I remember that I experienced the same issue with the first edition of arangodb that used Rocksdb as a storage engine.
Expected result:
All datasets are within the index.

We has totally same issue on 3.5.4 and 3.6.2. For us, this is a show-stopper for bringing arangodb to production.
For example, query
FOR a IN 1..1 OUTBOUND "Subjects/44591447" `Founder`
FILTER a._id == "Subjects/2913869"
LET b = FIRST(
    FOR v IN 1..1 INBOUND a `Founder`
    FILTER v._id == "Subjects/44591447"
    RETURN v
)

RETURN {a, b}

returns
[
  {
    "a": {
      "_key": "2913869",
      "_id": "Subjects/2913869",
      "_rev": "_aMxZrHq--_",
      "_tp": 1,
      "fndc": "13000000.00",
      "_ic": true,
      "cnid": 45949,
      "stts": 1,
      "accd": "46.46"
    },
    "b": null
  }
]

but after edge collection Founder is reloaded, everything starts work as expected:
[
  {
    "a": {
      "_key": "2913869",
      "_id": "Subjects/2913869",
      "_rev": "_aMxZrHq--_",
      "_tp": 1,
      "fndc": "13000000.00",
      "_ic": true,
      "cnid": 45949,
      "stts": 1,
      "accd": "46.46"
    },
    "b": {
      "_key": "44591447",
      "_id": "Subjects/44591447",
      "_rev": "_aM0d9BS---",
      "_tp": 1,
      "fndc": "1000000.00",
      "_ic": true,
      "cnid": 1821608,
      "stts": 1,
      "accd": "86.21"
    }
  }
]

Also, how can i see, this bug has very random character: after collection reloaded it stops reproducing on specified documents but later we finding the same on other random documents.

Hey guys, thanks for bringing this to our attention. @smurfio, sorry for the slow response. @ASolomatin, thanks for refreshing the issue. We're hoping to get a better understanding of what's going on and figure out a way to reproduce it. From what I can tell, this happens even in a read-only workload (no writes after reloading the collection). Is that accurate?
Any more details you can share about your environment (platform, CPU, RAM, etc.) would help, as would any more details you can share about your dataset and workload. If you are able to reproduce with a dataset and workload you can share with us, that would be even better.
One particular piece of information that might help would be the engine stats which report cache usage information. You can retrieve them in single-server mode via a db._engineStats() call in arangosh or a GET to /_api/engine/stats.

Hi, thanks for quick response.
I don’t remember the cases when this happened in a read-only, but the real testing we started only when we switched to real-time updates (ubdate, delete, create).
Initially database was built in 15 parallell threads that makes a lot of inserts updates and delates while building a compleate graph structure.
Our Subjects collection, from the example, today contains 11458996 documents and Founder contains 2551495 edges.
About our environment I will tell You tomorow.
Unfortunately, I can’t reproduce this on small test datasets and I can’t share the current dataset because it is based on production data.
Here is the engine stats after reloading 2 collections from 20, later i will be able to share more stats after building new dataset versions.
arango362.lcl:8529@RelationsRT2020V5> db._engineStats()
{
  "rocksdb.num-files-at-level0" : 4,
  "rocksdb.compression-ratio-at-level0" : 4,
  "rocksdb.num-files-at-level1" : 0,
  "rocksdb.compression-ratio-at-level1" : 0,
  "rocksdb.num-files-at-level2" : 0,
  "rocksdb.compression-ratio-at-level2" : 0,
  "rocksdb.num-files-at-level3" : 0,
  "rocksdb.compression-ratio-at-level3" : 0,
  "rocksdb.num-files-at-level4" : 1,
  "rocksdb.compression-ratio-at-level4" : 1,
  "rocksdb.num-files-at-level5" : 14,
  "rocksdb.compression-ratio-at-level5" : 5,
  "rocksdb.num-files-at-level6" : 122,
  "rocksdb.compression-ratio-at-level6" : 10,
  "rocksdb.num-immutable-mem-table" : 0,
  "rocksdb.num-immutable-mem-table-flushed" : 45,
  "rocksdb.mem-table-flush-pending" : 0,
  "rocksdb.compaction-pending" : 0,
  "rocksdb.background-errors" : 0,
  "rocksdb.cur-size-active-mem-table" : 147073968,
  "rocksdb.cur-size-all-mem-tables" : 147073968,
  "rocksdb.size-all-mem-tables" :<PHONE_NUMBER>,
  "rocksdb.num-entries-active-mem-table" : 9091,
  "rocksdb.num-entries-imm-mem-tables" : 0,
  "rocksdb.num-deletes-active-mem-table" : 432,
  "rocksdb.num-deletes-imm-mem-tables" : 0,
  "rocksdb.estimate-num-keys" : 259777057,
  "rocksdb.estimate-table-readers-mem" : 427529500,
  "rocksdb.num-snapshots" : 0,
  "rocksdb.oldest-snapshot-time" : 0,
  "rocksdb.num-live-versions" : 7,
  "rocksdb.min-log-number-to-keep" : 39024,
  "rocksdb.estimate-live-data-size" :<PHONE_NUMBER>,
  "rocksdb.live-sst-files-size" :<PHONE_NUMBER>,
  "rocksdb.dbstats" : "\n** DB Stats **\nUptime(secs): 623362.4 total, 556.2 interval\nCumulative writes: 601K writes, 10M keys, 601K commit groups, 1.0 writes per commit group, ingest: 8.96 GB, 0.01 MB/s\nCumulative WAL: 601K writes, 0 syncs, 601399.00 writes per sync, written: 8.9...",
  "rocksdb.sstables" : "--- level 0 --- version# 838 ---\n--- level 1 --- version# 838 ---\n--- level 2 --- version# 838 ---\n--- level 3 --- version# 838 ---\n--- level 4 --- version# 838 ---\n--- level 5 --- version# 838 ---\n--- level 6 --- version# 838 ---\n 39028:2006185[0 .. 0]['3...",
  "rocksdb.num-running-compactions" : 0,
  "rocksdb.num-running-flushes" : 0,
  "rocksdb.is-file-deletions-enabled" : 1,
  "rocksdb.estimate-pending-compaction-bytes" : 0,
  "rocksdb.base-level" : 6,
  "rocksdb.block-cache-capacity" :<PHONE_NUMBER>6,
  "rocksdb.block-cache-usage" :<PHONE_NUMBER>0,
  "rocksdb.block-cache-pinned-usage" : 0,
  "rocksdb.total-sst-files-size" :<PHONE_NUMBER>,
  "rocksdb.actual-delayed-write-rate" : 0,
  "rocksdb.is-write-stopped" : 0,
  "cache.limit" :<PHONE_NUMBER>0,
  "cache.allocated" :<PHONE_NUMBER>,
  "cache.hit-rate-lifetime" : 55.50302410508559,
  "cache.hit-rate-recent" : 84.844970703125,
  "columnFamilies" : {
    "definitions" : {
      "dbstats" : "\n** Compaction Stats [default] **\nLevel    Files   Size     Score Read(GB)  Rn(GB) Rnp1(GB) Write(GB) Wnew(GB) Moved(GB) W-Amp Rd(MB/s) Wr(MB/s) Comp(sec) CompMergeCPU(sec) Comp(cnt) Avg(sec) KeyIn KeyDrop\n--------------------------------------------------...",
      "memory" : 59862185
    },
    "documents" : {
      "dbstats" : "\n** Compaction Stats [Documents] **\nLevel    Files   Size     Score Read(GB)  Rn(GB) Rnp1(GB) Write(GB) Wnew(GB) Moved(GB) W-Amp Rd(MB/s) Wr(MB/s) Comp(sec) CompMergeCPU(sec) Comp(cnt) Avg(sec) KeyIn KeyDrop\n------------------------------------------------...",
      "memory" :<PHONE_NUMBER>
    },
    "primary" : {
      "dbstats" : "\n** Compaction Stats [PrimaryIndex] **\nLevel    Files   Size     Score Read(GB)  Rn(GB) Rnp1(GB) Write(GB) Wnew(GB) Moved(GB) W-Amp Rd(MB/s) Wr(MB/s) Comp(sec) CompMergeCPU(sec) Comp(cnt) Avg(sec) KeyIn KeyDrop\n---------------------------------------------...",
      "memory" :<PHONE_NUMBER>
    },
    "edge" : {
      "dbstats" : "\n** Compaction Stats [EdgeIndex] **\nLevel    Files   Size     Score Read(GB)  Rn(GB) Rnp1(GB) Write(GB) Wnew(GB) Moved(GB) W-Amp Rd(MB/s) Wr(MB/s) Comp(sec) CompMergeCPU(sec) Comp(cnt) Avg(sec) KeyIn KeyDrop\n------------------------------------------------...",
      "memory" :<PHONE_NUMBER>
    },
    "vpack" : {
      "dbstats" : "\n** Compaction Stats [VPackIndex] **\nLevel    Files   Size     Score Read(GB)  Rn(GB) Rnp1(GB) Write(GB) Wnew(GB) Moved(GB) W-Amp Rd(MB/s) Wr(MB/s) Comp(sec) CompMergeCPU(sec) Comp(cnt) Avg(sec) KeyIn KeyDrop\n-----------------------------------------------...",
      "memory" : 811486964
    },
    "geo" : {
      "dbstats" : "\n** Compaction Stats [GeoIndex] **\nLevel    Files   Size     Score Read(GB)  Rn(GB) Rnp1(GB) Write(GB) Wnew(GB) Moved(GB) W-Amp Rd(MB/s) Wr(MB/s) Comp(sec) CompMergeCPU(sec) Comp(cnt) Avg(sec) KeyIn KeyDrop\n-------------------------------------------------...",
      "memory" : 0
    },
    "fulltext" : {
      "dbstats" : "\n** Compaction Stats [FulltextIndex] **\nLevel    Files   Size     Score Read(GB)  Rn(GB) Rnp1(GB) Write(GB) Wnew(GB) Moved(GB) W-Amp Rd(MB/s) Wr(MB/s) Comp(sec) CompMergeCPU(sec) Comp(cnt) Avg(sec) KeyIn KeyDrop\n--------------------------------------------...",
      "memory" : 0
    }
  },
  "rocksdbengine.throttle.bps" : 0
}

Hi. Here is our environment:
Dell T620/630, 2x Intel Xeon E5-2620v3 2.40GHz, DDR4 - 2133 UDIMM
240 SSD Enterprise Intel
Hypervisor: SmartOS, bhyve
VM: Ubuntu 18.04, 16 threads, 48 GB RAM

Hi @ASolomatin & @smurfio,
there was a similar issue reported for which a fix will become available in v3.5.6 and v3.6.4:

Fixed issue #11303: The result data of filter operation on edge document with
_from or _to field ALWAYS miss some data on version 3.6.2.
This bug could have led to some edges from a RocksDB edge index not being
returned when a non-traversal edge lookup was done in an AQL query in an inner
FOR loop. Whether or not edges were withheld depended on whether edges were
located within the same prefix domain.

PRs: #11536 #11537

I expect the bug fixes in PRs #11536 and #11537 to help here, too.

@ASolomatin @smurfio @Simran-B : Issue #11303 was fixed yesterday, and there is a release 3.6.3-1 on our website now that contains the fix.
Do you mind trying if this solves this problem, too?
Thanks!

A fix for this hase been published, closing.
Please note that ArangoDB 3.7 is available.


Add update method as alias to update_attributes

Since Rails 4, the update_attributes becomes an alias of the update method.
This PR implements the update method, to reflect the same ActiveRecord API.

Thanks!


Using @discardableResult as result object for tasks

I am getting the following warning (and I don't like warnings), and I'm not sure how to get rid of it.

Is this normal, or better yet, how should I handle the error?
Many thanks!

you can use let _ = Location.getLocation....
However I mark it as an enhancement because we should use @discardableResults for these function since Swift 3.

Ah, thanks! That silenced it.

Since 2.0.1 all requests allows @discardableResults.
Please notice: while the overall behaviour is the same, since 2.x branch some API names are changed. Nothing dramatic 👍


Include ModelRocket source directly?

I'd like to directly include the ModelRocket sources in my project.  No pod, no cartfile.
Do you foresee any issues?
Thanks,
--dan

Hey Dan,
You can definitely include the source directly in your project without issue, but unless you're targeting iOS 7, using a dependency manager and dynamic frameworks is a good idea. :)
And if you are targeting iOS 7, you might consider using git submodules to manage the dependency


Handling missing keypoints

Hi! And thank you for the awesome work!
How would you recommend dealing with  missing keypoints? Should the corresponding rows in input.npy be filled with NaNs or 0s?

Hi @djeh012,
Actually it's a good point. NaN shouldn't be in the input, so the 0s will be better.
However, the pretrained networks I provide are not trained to handle missing keypoints, so the result may be awkward.
Also, I tried to train Pose2Mesh with augmentation filling 0s in random keypoints to handle the missing keypoints, but the outcome was not robust to missing keypoints.
The 2D pose input of Pose2Mesh is represented in coordinates, 0s also have specific meaning.


clean ids_batch and ids_batch_df between each batch

it was already working because it overwrote the content of the previous batch, but this is safer

LGTM


Inconsistent git hashes for sub-pkgs of a single repo cause trouble with no warning

We accidentally had one sub-pkg of an upstream repo where the githash was different than the rest.  Godep checked out this (older) hash and obliterated files that we needed by other sub-pkgs.  I feel like there should be a warning, something like "different revs for sub-packages of the same repo - this is not expected and probably bad things will happen"

The save and update commands check for this case and prevent it from happening. Godeps.json should never contain two different commit hashes from the same repo. If it happens anyway, that's a bug.

I'm not sure how it happened, but it did - hence my suggestion that maybe it should yell at me.

@thockin Can you re-produce on a public repo that I can test with / base a test on?

I don't know HOW it happened, so I can't reproduce it.  Obviously I can
manually recreate it by having a Godeps file with two pkgs of teh same git
repo at different hashes - you don't need me to set that up (but I will if
you want :)
On Wed, Dec 2, 2015 at 1:59 PM, Edward Muller<EMAIL_ADDRESS>wrote:

@thockin https://github.com/thockin Can you re-produce on a public repo
that I can test with / base a test on?
—
Reply to this email directly or view it on GitHub
https://github.com/tools/godep/issues/223#issuecomment-161447015.

I assume this happened on a godep restore?
TBH: I'm more interested in how you got into that situation in the first case, which is what I'd like a reproducer for.

yeah, I have no idea how it happened - it may well have been a hand edit.
The issue was that it took FOREVER to figure out what was going wrong
because the tool knew but didn't offer any clues.
On Wed, Dec 2, 2015 at 2:44 PM, Edward Muller<EMAIL_ADDRESS>wrote:

I assume this happened on a godep restore?
TBH: I'm more interested in how you got into that situation in the first
case, which is what I'd like a reproducer for.
—
Reply to this email directly or view it on GitHub
https://github.com/tools/godep/issues/223#issuecomment-161457564.

@thockin is right tho, even though godep tries to avoid this situation, it's reasonable to also check for it later, because who knows what happened to the file in between.

@thockin @kr agreed.


How to run backfill?

I can't get backfill to work. Any one can give me an example, please?
I have a very simple db called db_casa  with some measurements like CO2Despacho with just timestamp and value.
In the Run backfill dialog I select CO2Despacho as source, CO2DespachoBF as destination, interval 1h, from and to times to cover all the DB and in "#edit your query / downsamplers here" i put "mean("value")".
When I run this I get in CO2DespachoBF values that are not the mean result for each hour.

Hi, could you share your backfill query?

I guess its where it says  "#edit your query / downsamplers here".
I tried with "mean("value")"

Any clue on how to run backfill? An example backfill query I can adapt should be great.
I’m still stuck at this.
Thank you.


Fix SQL statement generation problem on Xcode 10.2

Referenced SQLite.swift issue  #888
fix check a row value problem

It was already fixed. Check master branch, please. We fully removed #function approach


Unicode in IRI fails parsing

Though https://github.com/eclipse/rdf4j/pull/2316 fixed unreading of unicode surrogates, parsing fails down the line.
For example, this fails:
new ParsedIRI("A:￼")

(The IRI to be parsed above contains an char right after the colon that does noprint in Github - copy pasting works well though)
This fails when a call is being made to AbstractRDFParser.createURI which makes sense as unicode is not allowed in URIs - but I am baffled as to why the IRI is forced into a URI

It's a little hard to figure out from this example what's going on. Copy-pasting seems to just give me a whitespace. What unicode char (unicode number) are you passing in? And how is the character encoded? Also: what error does the parser give you?
The method name createURI is misleading. It's named that way for historic reasons (it predates the introduction of IRIs). So we are not converting/forcing the IRI into a URI here.

Here is the char: https://en.wiktionary.org/wiki/￼
And I isolated the "A:[char that is not printable]" string in a file with hexdump:
0000000 41 3a ef bf bc 0a
0000006

Which seems fine according to https://charbase.com/fffc-unicode-object-replacement-character: ef bf bc.
(The oa appears at the end of every file).

Ah. The character in question is U+FFFC, which is a character from the "Specials" block of the Unicode standard. This block of characters is not allowed to occur un-encoded in an IRI, see RFC 3987 (https://tools.ietf.org/html/rfc3987#section-2.2):
   ucschar        = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF
                  / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD
                  / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD
                  / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD
                  / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD
                  / %xD0000-DFFFD / %xE1000-EFFFD

Note that the specials block ( %xFF00 - %xFFFF)  is not covered by this range. So this is not a legal character to include in an IRI in unescaped form.

Thanks for the clarification. So now the question is what should happen once such a char is encountered. Currently an exception is thrown and parsing is halted. Ideally a parser configuration to control this should be in place, as we can still parse the statement and mark it as illegal (passing it to some handler perhaps)

Rio allows you to disable IRI syntax validation (see https://rdf4j.org/documentation/programming/rio/#configuring-the-parser--writer). You can also configure to still verify but not treat it as a fatal error.


min_install failed with "redefinition of ClientCallbackProvider"

Hi there,
on a fresh checkout of the repo, when I do a min_install build of kinesis-video-native-build, I get the following error:
[ 98%] Built target kinesis_video_gstreamer_sample_app
/kvs/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-gst-demo/kinesis_video_gstreamer_audio_video_sample_app.cpp:166:11: error: redefinition of 'class com::amazonaws::kinesis::video::ClientCallbackProvider'
     class ClientCallbackProvider : public ClientCallbackProvider {
           ^~~~~~~~~~~~~~~~~~~~~~
In file included from /kvs/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build/../kinesis-video-producer/src/KinesisVideoProducer.h:7:0,
                 from /kvs/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-gst-demo/kinesis_video_gstreamer_audio_video_sample_app.cpp:6:
/kvs/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build/../kinesis-video-producer/src/ClientCallbackProvider.h:16:7: note: previous definition of 'class com::amazonaws::kinesis::video::ClientCallbackProvider'
 class ClientCallbackProvider {
       ^~~~~~~~~~~~~~~~~~~~~~
/kvs/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-gst-demo/kinesis_video_gstreamer_audio_video_sample_app.cpp:180:11: error: redefinition of 'class com::amazonaws::kinesis::video::StreamCallbackProvider'
     class StreamCallbackProvider : public StreamCallbackProvider {
           ^~~~~~~~~~~~~~~~~~~~~~
In file included from /kvs/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build/../kinesis-video-producer/src/KinesisVideoProducer.h:8:0,
                 from /kvs/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-gst-demo/kinesis_video_gstreamer_audio_video_sample_app.cpp:6:
/kvs/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build/../kinesis-video-producer/src/StreamCallbackProvider.h:26:7: note: previous definition of 'class com::amazonaws::kinesis::video::StreamCallbackProvider'

NOTE: This has previously worked fine. I note there was an update to the repo 4 days ago - could this have affected it? Although looking at the changes, I do not see how it could.. but something has changed - last time I built everything, there as no issue.
Any ideas?

my bad.. not an issue.


Swift 4.2

Wish this was merged...
Anyone from IFTTT wanna merge this? This is a beautiful repo and looks like there's a good demand for a decent supply of support.

@kevinebaugh
@lindentibbets
@MRTIBBETS

If this project was abandoned, I am willing to continue this project. Feel free to add me as a collaborator to this project.

@wongzigii this project is deprecated. If you're intended to continue developing, you should fork this project and make changes there.

@kevinebaugh
@lindentibbets
@MRTIBBETS

Please merge yaaar


LOGIN CREDENTIALS ?

### hey guys I've spent hours to find the login details but no success? I'm missing something!

On initial install? You just make them up. The "login" form is effectively a register form on first use.

The login page has a register button, that allows you to register a user. The first user will be the root owner of the instance and the further registrations are disabled by default. You need to enable it manually in the Settings menu.

On initial install? You just make them up. The "login" form is effectively a register form on first use.

thank you i thought there is an admin panel.

The login page has a register button, that allows you to register a user. The first user will be the root owner of the instance and the further registrations are disabled by default. You need to enable it manually in the Settings menu.

thank you so much for your support.

egister a user. The first user will be the root owner of the

When i've just done that it says you cant sign up as its disabled. But not created an account yet

What would the user be though. I've not even able to sign up


Hack noms sync to be able to support syncing from arbitrary paths

Before it could only sync from hashes. This is not a good long-term
approach because it assumes caller can write to source db, which
might not be true.

cc @cmasone-attic

Deferring to @cmasone-attic. He's now the expert on what's safe to do with Flush. This is definitely smelly as it's reading & writing from multiple abstraction layers, but it may be fine for now.

Yeah, exposing Flush like this makes potential for weirdness. I think that Pull() can be modified to handle this properly. What would be the priority of getting that done?

I think it would be good to get to it in the next week or so. It would be
really valuable to be able to sync again during development and we
basically can't do that now.
On Thu, Jan 5, 2017 at 8:58 AM, cmasone-attic<EMAIL_ADDRESS>wrote:

Yeah, exposing Flush like this makes potential for weirdness. I think that
Pull() can be modified to handle this properly. What would be the priority
of getting that done?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/attic-labs/noms/pull/3023#issuecomment-270696229, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAE6BLvjb5WVgWOihGK8IGDk0xAyiIiLks5rPSEbgaJpZM4LbOxy
.


Implement sprite animations

WIP. Posting this to see if this is wanted or should be a third-party crate.
Objective

Implement sprite animation

Solution

Determines the sprite index based on time since animation start at the end of every frame.

Testing
Unit tested the player. They are of questionable code quality but should be accurate.
Still missing quite a few though

Showcase

SpriteClip basics

let clip = SpriteClip {
        // Clip frames also accepts Handle<Image> for people who don't want to deal with atlases
        clip: ClipFrames::from([0, 1, 2, 3, 4, 5, 6]),
        speed: 1.0,
        // number of frames per second
        fps: 1,
        // Also has Repeat(usize)
        clip_loop: ClipLoopMode::Infinite,
    };

// Clip is an asset so you can change the behaviour of an animation for all entities and load them via asset_server
let clip = asset_server.add(clip);
// Clips can easily be overwritten without affecting the underlying asset
let overwritten_clip = clip.clone().overwrite().backward().fps(2));

SpriteAnimationPlayer basics
// It uses SpriteAnimationPlayer component
let mut player = SpriteAnimationPlayer::default(); //all fields are public but it might be more convenient to use new or default
// and are added like any other component
commands.spawn((
        SpriteBundle,
        TextureAtlas,
        player,
    ));
// Players are also assets
let player_asset = asset_server.add(player);
// and can be added to entities allowing synced animations (useful for stuff like trees and water)
commands.spawn((
        SpriteBundle,
        TextureAtlas,
        player_handle,
    ));
// Player has the expected methods
player.play(clip.clone().overwrite().backward().fps(2));
player.stop();
player.resume();
player.restart();
// Transitions can be configured (WIP)
player.play_with_transition(clip, TransitionMode::AnimationEnd);

Strong yes please to upstreaming this. Very overdue.


Find element or page source command is executed too soon before the UI tree is updated

I am testing WPH application.
The app is launched ->Splash Screen -> Home screen.
I am trying to interact with home screen element.
Unfortunately every time I get " Can't find element.."
When I do driver.getPageSource() each time I am retrieving Splash screen UI tree.
Is there a way I can just pass the Splash Screen and only then have the driver  inspect the Home Screen  UI tree?
I tried wait (see code below) but it has no impact. It still cannot find it even though I can see the home page is displayed in the client.
WebDriverWait wait = new WebDriverWait(driver, 20);
WebElement element = wait.until(
ExpectedConditions.visibilityOfElementLocated(By.name("button")));
Appreciate ant suggestions.

@ellnika  i too hit this issue...It looks like WAD has a bug...I was using microsoft word application. To overcome this issue when i used "/q /w" flags of microsoft word. May be your app too might have some flags to suppress splash screen. Can you pls check with the developers? If you overcome that you might still hit the issue I am facing...if you are running tests on a remote machine
https://github.com/Microsoft/WinAppDriver/issues/361
Good luck.

Hi @ellnika,
As @shankarkc mentioned, bypassing/disabling the splash screen is a great idea unless you are testing the splash screen UI itself. If there is no easy way to disable the splash screen however, there is a few tricks/guides on how to locate the right application window in the FAQ section below:
https://github.com/Microsoft/WinAppDriver/wiki/FAQ#what-to-do-when-an-application-has-a-splash-screen-or-winappdriver-fails-to-recognize-the-correct-window


Frontend: Tagging UI in Dashboard

Provide UI for adding, editing, and filtering links by tags.
Tasks:

UI for adding and removing tags.
Build filtering functionality.

Fixed with commit 291fa9a5f6c2d703322014a8221fd788dfb79768, will be merged from feature_tags branch into main


change Ctrl-p to something else

I am using docker run /bin/bash to develop my container and every time I want to use Ctrl+p in a terminal or in emacs, I have to type it twice, since docker uses it to detach from a container (Ctrl+p Ctrl+q).
How can I change Ctrl+p to something else more convenient that is not used in emacs or in a terminal setting?
http://stackoverflow.com/q/20828657/719016

:ant: :ant: :ant:
Solved in #15666 and now configurable via ~/.config/docker.json or --detach-keys cmdline option.


Error in running script

At C:\scripts\exchangeanalyzer\Run-ExchangeAnalyzer.ps1:446 char:5

$ServerADSite = ($ExchangeServers | Where {$_.Name -ieq $($server.Name)}).Si ...

- CategoryInfo          : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull

VERBOSE: Finished

Please describe your Exchange environment, and how you are running the script.

Isn't this the same as the 2013 vs. 2016 bug before? Format of the return object had changed?

@swngdnz yes, I'm surprised to see the bug report, since neither Exchange 2013 or 2016 show the issue in my lab with the latest release of the script.

Two CAS/MB virtual servers running Exchange 2013 CU9. Running the script
from Powershell on one of the Exchange 2013 servers, in the
ExchangeAnalyzer folder.
On Thu, Mar 31, 2016 at 5:31 PM, Paul Cunningham<EMAIL_ADDRESS>wrote:

Please describe your Exchange environment, and how you are running the
script.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/cunninghamp/ExchangeAnalyzer/issues/118#issuecomment-204157228

--
T. Todd Lemmiksoo

*** Change Log ***
v0.2.0-Beta.4, 31/3/2016 - Fourth public beta release
v0.1.2-Beta.3, 18/02/2016 - Third public beta release
v0.1.1-Beta.2, 28/01/2016 - Second public beta release
v0.1.0-Beta.1, 14/01/2016 - Public beta release
On Thu, Mar 31, 2016 at 10:28 PM, Paul Cunningham<EMAIL_ADDRESS>wrote:

Still can't repro, unless it's a CU9 thing.
@Toddlemm https://github.com/Toddlemm can you please confirm you are
running the latest release of the script?
https://github.com/cunninghamp/ExchangeAnalyzer/releases
Or just open the script in your editor and look at the change log.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/cunninghamp/ExchangeAnalyzer/issues/118#issuecomment-204229785

--
T. Todd Lemmiksoo

Was unable to repro this.


Review of Wallets section

EDITS

cleaned up formatting of entries
Started ordering the entries in this section : BTC, XMR, ZEC, ETH only, Single coin only and lastly multichain wallets.

ADDED

Added information to Fedi listing and '🚧 beta testing' status
Added Electrum, Mutiny and Cashu to Bitcoin wallets
Added Moneroju, RINO and Feather wallet to Monero wallets
Added Terminal Wallet to Ethereum wallets

MOVED

Moved: Zoker Wallet (zoker.tech website not reachable) moved to sunset projects archive at bottom of README.md
Moved: Zecrey Wallet is sunset so moved to sunset project archive - https://zecrey.medium.com/announcing-the-sunset-of-zecrey-wallet-f99f58bab96a
Moved: I discovered that Zecrey Protocol is depreceated (moved to sunset project archive) - https://docs.zecrey.com/

REMOVED

Removal: Coingrig - it seems that it is a fintech company (like Robinhood) that sells stocks but also has a noncustodial crypto wallet, offers only CEXs to swap and I don't event want to know what other data their app is taking from users. Not relevant to web3privacy database in my opinon.
Removal: Phoneix - I opted for not going down the rabbit hole of listing all the possible BTC Lightning wallets out there.
Removal: Imperiume - they pulled the website down and twitter account in December, their website on archive.org shows it offered a mixer service. I am presumming this wallet and service is in sunset/rug pulled.
Removal: Cool wallet - a multichain non-custodial wallet app but the code is closed source (they have a github account but no code is there).

Code of removed entries

| [Imperiume](https://www.imperiume.io/wallet) | non-custodial wallet | closed sourced | 🚧 website down & twitter account deleted | multichain | Public   |

| [Cool Wallet](www.coolwallet.io) | non-custodial wallet | closed source | live |  multichain | anon |

| [Coingrig](https://www.coingrig.com) | Non-custodial wallet on Lightning network | ([GitHub](https://github.com/coingrig)) | - | - | - |

| [Phoenix](https://phoenix.acinq.co) | Non-custodial wallet on Lightning network | - | - | - | - |

Perfect. Just perfect.
Great that we save sunsets. Later on, we can track liveliness across the projects (timings, track record) within the Explorer & have an accurate privacy market snapshot:

creation
beta/testnet/other product readiness
funding stage
defunct date etc


Option to upload only via Wifi

Let the user decide if the app should upload files even when wifi is not available.
(Because career network, 3G, 4G, may cost a lot)

Maybe a dialog "You are not on Wifi. Upload anyway?"

Files under 30MB are uploaded regardless of the connection.
For files above 30MB, a warning says "turn on wifi" and then a WebRTC transfer is attempted.


cmd/link: panic: runtime error: slice bounds out of range

Fresh after installing go1.5.1 (after moving go1.4 away):
 $ go build -i ./...

Delete that stuff.

My GOROOT seems to be fine, I've unpacked a new go1.5.1 tarball to compare and diff -r shows nothing. On the other hand, my GOPATH had go1.4 .a files, that's true. After deleting them (rm -r /home/akavel/gopath/pkg), the problem disappeared. That said, I hoped go build -i ./... would give me the same effect as I'd expect from go install ./..., i.e. rebuild all go1.4 artifacts to go1.5, as I believe it's advertised w.r.t. go install (?), only difference being it would not install the executables ("package main"s). Is that not what should happen? I haven't tested go install before deleting the stuff, unfortunately; but I didn't want to pollute my bin dir with unwanted executables.


Fix blurry notes when using the Visualizer

The calculated position of notes aren't always integers, which results in a blurry visualization.
See https://stackoverflow.com/q/53918770/7186598 for more details.

Thanks so much!


Starting LB service does not create LB Agent instances.

Server version - Built from master - Oct 8
Steps to reproduce the problem:
Create an LB service with few targets.
Start LB service.
LB agents don't get started.

Verified fixed in v0.41.0-rc1


Add option to skip npm install completely

I am using this action in a step after I have already installed the node modules for my package. I don't want to install the node modules again. In my case, I'm using a mono repo where the packages are bootstrapped (lerna bootstrap) to use the versions only available locally and not yet published to npm. Running yarn within the package directory tries to download the new version from the registry and fails.

+1


Use subclass correctly in tp_new

Fixes #947.
As documented, we have to call subtype->tp_alloc(subtype, nitems) in tp_new.
In this PR, I also renamed PyClassAlloc::alloc to new, since it does not actually override tp_alloc.

This segfault means that our tp_dealloc does something wrong when it is called for subtype :thinking:

Thank you for the reviews :+1:


Azure Active Directory role assignments on service bus resources don't replicate from primary to secondary namespace.e

Hello,
Seems there is a gap in Service Bus Geo-disaster recovery documentation:
Service Bus supports Azure Active Directory authentication and we have noticed that AAD role assignments to entities (topics, queues) are not being replicated to secondary namespace entities.
This is very dangerous as many organizations might be locking in their disaster recovery plans with the assumption of that being replicated and they will only discover things not working when they failover during a disaster.
Will be good to provide feedback to product teams on that as well.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: f80f9ca1-70ba-8d90-384f-b08f495ff608
Version Independent ID: 40fb8fb4-6e2e-2fd5-ffa9-e5cc051513f6
Content: Azure Service Bus Geo-disaster recovery - Azure Service Bus
Content Source: articles/service-bus-messaging/service-bus-geo-dr.md
Service: service-bus-messaging
GitHub Login: @spelluru
Microsoft Alias: spelluru

@AElharouny Thanks for the feedback! We have assigned this issue to the content author to review and update accordingly.

Yes. Product team is already aware of this limitation. I will add an important note to the article. Thanks.

Awesome thanks @spelluru

Done. Added an important note at the top and a section at the end.
#please-close


Bump actions/checkout to 4.1.1

Dependabot's PR #1747 is out of date, so doing this by hand. Some of the workflows were already on v4, this just makes them consistent.

Oh, right, v4 doesn't work with the ASWF docker images.


Drop unused renewer client credentials.

The concourse pipeline specifies renewer client credentials but doesn't appear to use them anywhere, and it looks like the renewer app expects to use the system credentials: https://github.com/cloudfoundry-incubator/cf-abacus/blob/master/lib/cf/renewer/src/index.js#L89-L93. This patch drops the renewer credentials.

Coverage decreased (-0.3%) to 92.797% when pulling 6467d4ed2877db79661d0297513c384664a9bfca on jmcarp:drop-renewer-client into 1d4cdf173fc2a066c392ce07f47441e8669982cf on cloudfoundry-incubator:master.

@jmcarp Nice catch


Refresh python envs upon opening an nb

Codecov Report

Merging #11965 (4970b6b) into main (b4c97ed) will decrease coverage by 0%.
The diff coverage is n/a.

@@          Coverage Diff           @@
##            main   #11965   +/-   ##
======================================
- Coverage     62%      62%   -1%
======================================
  Files        495      495
  Lines      35179    35179
  Branches    5676     5676
======================================
- Hits       22047    22043    -4
- Misses     11052    11053    +1
- Partials    2080     2083    +3

Impacted Files
Coverage Δ

...c/platform/common/process/pythonDaemonPool.node.ts
77% <0%> (-3%)
:arrow_down:

src/kernels/execution/cellExecutionQueue.ts
77% <0%> (-2%)
:arrow_down:

...kernels/jupyter/launcher/jupyterConnection.node.ts
83% <0%> (-1%)
:arrow_down:

src/notebooks/debugger/debuggerVariables.ts
67% <0%> (-1%)
:arrow_down:

src/platform/common/process/baseDaemon.node.ts
50% <0%> (ø)

src/platform/common/process/condaService.node.ts
69% <0%> (+1%)
:arrow_up:


Adds RabbitCrendentials.

[#134606283]
https://www.pivotaltracker.com/story/show/134606283

@pcsouza PTAL


java icons dont works

the java icons file not works. In the folder icons.zip are presents.
this extension are awesome. Good work

Hi @Ysuran, Java icons in place. Disable, Enable and restart the app. 😄


Public SchemaGuess#typesFromListRecords and renamed GuesstimatedType

We wanted to use SchemaGuess.GuessedType in embulk-guess-csv, but we had not done because it looked like really an "internal" class even in the original Ruby-based guess.
But we confirmed that it should be okay, and we make it public from v0.2.0 with a little bit renaming.

Thanks!


Gridshift file throws missing exception after being read.

Steps to reproduce

Get https://github.com/DotSpatial/DotSpatial/blob/master/Source/DotSpatial.Projections/Nad/GridShifts/a84_nat.zip and copy to GeogTransformGrids

     GridShift.InitializeExternalGrids();
     GridShift.ThrowGridShiftMissingExceptions = true;
     double[] xy = new double[2];
     xy[0] = 140.10;
     xy[1] = -34.10;
     string[] gname = new string[1];
     gname[0] = "@A84_NAT";
     GridShift.Apply(gname, false, xy, 0, 1);

3.Debug Nadtables.cs and see how .gsb file is being iterated.
DotSpatial version: 2 and 1.9
Expected behaviour
should return:
xy[0]=140.1013333
xy[1]=-34.098518
Actual behaviour
Gridshift file missing exception error pops up, after disabling this exception it just returns the initial values for xy.

Did you have a look at the Grid-Shifts wiki entry?

Yes, setting GridShift.ThrowGridShiftMissingExceptions = false; stops the error but doesn't give the correct output as explained above.

I debugged this further,it shows ll.Lambda = 8639.379797, ll.Phi = -1853.5396 in radian which is not correct! Can any one please help with this? I need to convert between AGD84 and WGS84. Appreciate any response!

fixed by #1059


Make diff script use symbol labels in original instead of hardcoded offsets

Example:

Our old diff script is made completely obsolete by objdiff


feat(jisho): init

🎉 Theme for Jisho.org 🎉

Jisho is a powerful Japanese-English dictionary. It lets you find words, kanji, example sentences and more quickly and easily.

💬 Additional Comments 💬
There are some minor inconsistencies/inconveniences. See the included comments.
🗒 Checklist 🗒

[x] I have read and followed Catppuccin's submission guidelines.
[x] I have made a new directory underneath /styles/<name-of-website> containing the contents of the /template directory.

[x] I have ensured that the new directory is in lower-kebab-case.
[x] I have followed the template and kept the preprocessor as LESS.

[x] I have made sure to update the
userstyles.yml
file with information about the new userstyle.
[x] I have included the following files:

[x] catppuccin.user.css - all the CSS for the userstyle, based on the
template.
[x] preview.webp - composite image of all four individual flavor screenshots (taken with the default accent color of mauve) stitched together, generated via Catwalk.

In this drop down the borders look a bit strange.
Beyond that the website looks good

There is some space between those elements:

They use margin: 0 -2px; to alleviate this, but this is rather inconsistent.

Using display: flex; and removing the margin, removes the gap and also shows the rounded corners, as is likely intended.
I can add this change if you want, although this is a fix rather than a theming change.


Consider Open Props

https://github.com/argyleink/open-props could potentially replace some of the defs in https://github.com/AgnosticUI/agnosticui/tree/master/agnostic-css/public/css-src -- I've asked creator some question about my concerns but these are some possible benefits that come to mind:

Less for me to maintain
Standardized naming conventions so users of AgnosticUI don't have to build a custom design system littered with --agnostic- in the property names which I could see annoying them
It's robust e.g. my utility classes are purposely very minimal but that may cause issues in the future

For number 3. I have a lot of concerns regarding bloat and what not...doing some research on if this would be practical and has ROI or not.

I'm going to keep an eye out for sure but going to close this out for now


Projection:  Geographic Coordinate System WGS1984 to Projected Coordiante System EMEP150KilometerGrid

This issue was imported from CodePlex
AlamoMan wrote 2010-07-14 at 21:05
When a coordinate is projected from a WGS1984 GCS to a projected EMEP150KilometerGrid (in the Europe Projected Coordinate System) is run, the end result is off but 2.13736382300531 from the proj4 method. The unit test is available in the ProjectionTestCSharp.

Unit test for EMEP150KilometerGrid  works fine.


Fixed latest Vulnerabilities related to Babel/traverse

Task name:  DownloadFileshareArtifacts, DownloadBuildArtifacts, AzureVmssDeployment, JenkinsDownloadArtifacts
Description:
Documentation changes required: (Y/N)
Added unit tests: (Y/N)
Attached related issue: (Y/N)
Checklist:

[x] Task version was bumped - please check instruction how to do it
[ ] Checked that applied changes work as expected

/azp run

/azp run


HADOOP-16652: Backport of HADOOP-16587: Make ABFS AAD endpoints configurable

Contributed by Bilahari T H.
This also addresses HADOOP-16498: AzureADAuthenticator cannot authenticate
in China.
Change-Id: I2441dd48b50b59b912b0242f7f5a4418cf94a87c
NOTICE
Please create an issue in ASF JIRA before opening a pull request,
and you need to set the title of the pull request which starts with
the corresponding JIRA issue number. (e.g. HADOOP-XXXXX. Fix a typo in YYY.)
For more details, please see https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute

LGTM, +1


Update "Request Credential" Message Format to include formats

Updates "Request Credential" Message Format to include formats
For "Request Credential", replaces "requests~attach" with "attachments"
Fixes various typos


No module named 'lenstronomy.LensModel.Util.decouple_multi_plane_util

At "from lenstronomy.LensModel.Util.decouple_multi_plane_util import *" in the modeling_with_decoupled_multiplane.ipynb, ERROR RAISED:"No module named 'lenstronomy.LensModel.Util.decouple_multi_plane_util'", Could you help me with it?

I'll tag @dangilman

thank you very much! Hope your work goes fine!!

I'll tag @dangilman

I'll tag @dangilman

Hello? May I know is there any reply?


allow options.quotes to be an object

From the discussion in #3

allow passing an object of {open:close} quote combos
convert array to object
added tests for different open and close quotes.
closes #3

Awesome! thanks!


add stats_counts for absolute counts, no aggregation

The namespace is set with --all-counts-prefix, and it defaults to the
same as upstream statsd: stats_counts

Upstream statsd added a new toplevel bucket for storing the non-averaged counts called stats_counts.  This is basically the same as pystatsd's --no-aggregate-counters option, but I find myself wanting both values stored.  I want the absolute counts for a short amount of time, but the 10-second-window average when graphite starts doing lower-resolution aggregation later.
This is a good Stack Overflow post about it: http://stackoverflow.com/q/7099197/156

See also https://github.com/etsy/statsd/issues/32

Actually, never mind about this one.  Looks like timing data just isn't very useful, even if you want to average it historically.


HtmlEntity.Entitize(): incorrect handling of surrogate pairs (for example, emoji symbol)

Description
HtmlEntity.Entitize() returns incorrect entity codes for surrogate pairs.
For example, 😂 should be converted as 😂 or 😂, but HtmlEntity.Entitize("😂", true, true) returns ��
Further technical details

HAP version: 1.11.9
NET version (net472, netcore, etc.): .NET Core 2.2

Hello @msvprogs ,
Thank you for reporting, we will look at it.
Best Regards,
Jonathan

Performance Libraries
context.BulkInsert(list, options => options.BatchSize = 1000);
Entity Framework Extensions • Entity Framework Classic • Bulk Operations •  Dapper Plus
Runtime Evaluation
Eval.Execute("x + y", new {x = 1, y = 2}); // return 3
C# Eval Function • SQL Eval Function

Hello @msvprogs ,
We added in the latest version the option UseWebUtility
When turned on (HtmlAgilityPack.HtmlEntity.UseWebUtility = true), we will use a different strategy to entitize value which should work in your case.
Let me know if everything works as expected.
Best Regards,
Jonathan

Yes, it works, thank you!


about the requirements.txt file

could you please upload the requirements.txt file, thanks.
when I run bash run_okvqa_train.sh, found this error:
(transformers==3.0.2)
Traceback (most recent call last):
File "train_reader.py", line 231, in
tokenizer = transformers.T5Tokenizer.from_pretrained(model_name, cache_dir=cache_dir)
File "/mnt/lustre/lidedong1/.local/lib/python3.6/site-packages/transformers/tokenization_utils_base.py", line 1140, in from_pretrained
return cls._from_pretrained(*inputs, **kwargs)
File "/mnt/lustre/lidedong1/.local/lib/python3.6/site-packages/transformers/tokenization_utils_base.py", line 1246, in _from_pretrained
list(cls.vocab_files_names.values()),
OSError: Model name 't5-base' was not found in tokenizers model name list (t5-small, t5-base, t5-large, t5-3b, t5-11b). We assumed 't5-base' was a path, a model identifier, or url to a directory containing vocabulary files named ['spiece.model'] but couldn't find such vocabulary files at this path or url.
(transformers==4.10.0)
Traceback (most recent call last):
File "train_reader.py", line 281, in
tokenizer
File "train_reader.py", line 87, in train
dev_em = evaluate(model, eval_dataset, tokenizer, collator, opt, tk_tokenizer, pt_stemmer)
File "train_reader.py", line 145, in evaluate
max_length=50
File "/mnt/lustressd/lidedong1/workspace/MLP/projects/LaKo/src/model.py", line 60, in generate
max_length=max_length
File "/mnt/cache/share/spring/conda_envs/miniconda3/envs/s0.3.4/lib/python3.6/site-packages/torch/autograd/grad_mode.py", line 27, in decorate_context
return func(*args, **kwargs)
File "/mnt/lustre/lidedong1/.local/lib/python3.6/site-packages/transformers/generation_utils.py", line 933, in generate
raise ValueError("Make sure that model_kwargs include encoder_outputs of type ModelOutput.")
ValueError: Make sure that model_kwargs include encoder_outputs of type ModelOutput.
Can you figure out why?

The requirements are in Readme:

Python 3
PyTorch (>= 1.6.0)
Transformers (version 3.0.2)
NumPy
faiss-cpu

Transformers's version should be version 3.0.2.
It is not compatible with the latest version.


Latest pvlib version (0.9.1) error temperature requirement

KeyError: "Missing required parameter 'a'. Found {} in temperature_model_parameters."

I still get multiple errors with pvlib 0.9.1 .
Running the model with pvlib 0.8.1  still works.
Downgrade to specific version with:
pip install --upgrade pvlib==0.8.1


Deprecated JavaFX method fix

We need to compile against Java 9 to resolve the deprecation warning ....

Hi @Jugen, so this PR breaks Java 8 compatibility, right?

Unfortunately yes, sorry.

It might be worth mentioning in README.md. I've hit the compatibility issue when using RichTextFX 0.10.7 that depends on Flowless 0.6.7

Okay, have updated the README.md  and release descriptions. Thanks :-)


New version: Vulkan v0.6.9

Registering package: Vulkan
Repository: https://github.com/JuliaGPU/Vulkan.jl
Created by: @serenity4
Version: v0.6.9
Commit: 3532361b38480c338e5616dc66375758fcf8afd1
Reviewed by: @serenity4
Reference: https://github.com/JuliaGPU/Vulkan.jl/commit/3532361b38480c338e5616dc66375758fcf8afd1#commitcomment-128809363
Description: Using Vulkan from Julia

Don't merge


Fix CloudStackMachine Missing Finalizer

Issue #, if available: N/A
Description of changes:
If creating a VM returns an error, then the CSMachine finalizer isn't added to the CR.
When the CAPI machine is deleted, the CSMachine gets garbage collected without deleting a machine.
It's a bit of a strange paradigm that a VM gets created yet the creation method returns an error, but that's the case.
May want to by default just add finalizers in controllers in the future.
Testing performed:
Used an Insane Instance to incite an error on VM creation.
Watched as CAPC cycled VMs several times without continually creating them.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/test capi-provider-cloudstack-presubmit-unit-test


DCOS-11759: [1/?] change container reducer workflow

This changes the way how the container reducers work.

With a following PR I will disable fields depending on the runtime environment.

Great work @Poltergeist! :ship:

@Poltergeist @nLight After speaking with @mlunoe, we decided not to mutate arguments and instead construct a new array with the first element omitted.

Let's :shipit:!


Fixed Issue #629

do not forget to update the build solutions in the tools folder, I think this is why it does not build.
tools/Build.sln and tools/Build.Core.sln

I will start updating the documentation for this one...

The build is now fixed.


Parse connection string by splitting on first =

Certain parameters may contain more than one = sign in the string, for
example the SharedAccessSignature.
This allows a connection string as follows:
AccountName=guywald;SharedAccessSignature=se=2036-01-01&sp=acw&sv=2018-11-09&sr=c&sig=c2lnbmF0dXJlCg%3D%3D

To be parsed correctly into its component pieces:
AccountName: guywald
SharedAccessSignature: AccountName=guywald;SharedAccessSignature=se=2036-01-01&sp=acw&sv=2018-11-09&sr=c&sig=c2lnbmF0dXJlCg%3D%3D

Previously it would get truncated as:
SharedAccessSignature: se

The Azure Portal when you create an SAS will create the following connection string:
BlobEndpoint=https://logs.blob.core.usgovcloudapi.net/;QueueEndpoint=https://logs.queue.core.usgovcloudapi.net/;FileEndpoint=https://logs.file.core.usgovcloudapi.net/;TableEndpoint=https://logs.table.core.usgovcloudapi.net/;SharedAccessSignature=sv=2020-08-04&ss=bfqt&srt=sco&sp=rwdlacupx&se=2022-01-22T07:47:17Z&st=2022-01-21T23:47:17Z&spr=https&sig=c2lnbmF0dXJlCg%3D%3D

Re-pushed after formatting.

Of course, helped me validate that the fix I was writing was actually correct too! Thanks for merging!

Sorry, this isn't in the 0.1.0 that I just published. I was on the previous commit.

@cataggar that's okay for right now, vector the tool that I am using to send logs to Azure blob storage is still using the git repository directly:
https://github.com/vectordotdev/vector/pull/11030
A future update will hopefully start using the crates instead of pulling from git, but I wasn't sure what your release time line looked like.


Typo fix in docs, in Custom Edge section.

Typo in the code example for creating delete button in custom edge. The example shows setting new edges without the deleted one, but the function name is missing letter. setEdge(...) -> setEdges(...)

Thanks!


Prediction issue

Hi Gregor. I ran into error trying to make prediction on Mackey-Glass time series.
y_pred = fis(X)
I ran a code from examples and got:
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-26-c4f5faf6ff99> in <module>()
     27 fis.model.summary()
     28
---> 29 y_pred = fis(X)
     30
     31 # f, axs = plt.subplots(2,1,figsize=(8,10))

2 frames
/usr/local/lib/python3.7/dist-packages/tensorflow/python/framework/func_graph.py in autograph_handler(*args, **kwargs)
   1127           except Exception as e:  # pylint:disable=broad-except
   1128             if hasattr(e, "ag_error_metadata"):
-> 1129               raise e.ag_error_metadata.to_exception(e)
   1130             else:
   1131               raise

ValueError: in user code:

    File "/usr/local/lib/python3.7/dist-packages/keras/engine/training.py", line 1621, in predict_function  *
        return step_function(self, iterator)
    File "/usr/local/lib/python3.7/dist-packages/keras/engine/training.py", line 1611, in step_function  **
        outputs = model.distribute_strategy.run(run_step, args=(data,))
    File "/usr/local/lib/python3.7/dist-packages/keras/engine/training.py", line 1604, in run_step  **
        outputs = model.predict_step(data)
    File "/usr/local/lib/python3.7/dist-packages/keras/engine/training.py", line 1572, in predict_step
        return self(x, training=False)
    File "/usr/local/lib/python3.7/dist-packages/keras/utils/traceback_utils.py", line 67, in error_handler
        raise e.with_traceback(filtered_tb) from None

    ValueError: Exception encountered when calling layer "defuzzLayer" (type DefuzzyLayer).

    in user code:

        File "<ipython-input-16-5fe3aebfbcaa>", line 33, in call  *
            print(tf.multiply(w_norm, a + self.CP_bias))

        ValueError: Dimensions must be equal, but are 16 and 32 for '{{node myanfis/defuzzLayer/Mul}} = Mul[T=DT_FLOAT](myanfis/normLayer/truediv, myanfis/defuzzLayer/add)' with input shapes: [16,25], [32,25].

    Call arguments received:
      • w_norm=tf.Tensor(shape=(16, 25), dtype=float32)
      • Xs=tf.Tensor(shape=(32, 2), dtype=float32)

Cold you please help to solve that issue.
My Colab is here

Actually I accidentally fixed that error by setting batch size from 16 to 32. But I really don't understand wast was the reason.


add html, rdf types to DOC_TYPES (conversion fails for them because of type filter)

text/plain
text/html
text/rdf
should be added to converter DOC_TYPES type filter

or better: remove the type filter

sry, my fault. Misunderstood the code


feat(module)!: use tailwind-merge for app.config & move config to components

Resolves #628, fixes #442, fixes #669
This PR will allow to reduce the overall bundle size by splitting the global app.config.ts into separate files for each component.
This is also the opportunity to use tailwind-merge for the components config (like the ui prop`) as we're handling the merge between the default config and the user's app.config inside the components now.
This merging strategy will be configurable globally to avoid breaking changes inside the app.config.ts:
export default defineAppConfig({
  ui: {
    strategy: 'override', // defaults to 'merge'
    primary: 'green'
  }
})

This will allow you to like explained in #509 to configure the components without rewriting everything:
export default defineAppConfig({
  ui: {
    strategy: 'override',
    primary: 'green',
    gray: 'slate',
    button: {
      color: {
        white: {
          solid: 'shadow-none'
        }
      }
    }
  }
})

It will also be possible to override it per component instance using the ui prop:
<UButton
  to="https://github.com/nuxt/ui"
  :ui="{
    strategy: 'override',
    color: {
      white: {
        solid: 'bg-white dark:bg-gray-900'
      }
    }
  }"
/>

This will override the solid variant of the button completely instead of merging the classes.

@benjamincanac it should work, I'm planning on doing a bit of cleanup on input components (https://github.com/nuxt/ui/commit/a1748d2e5567f831a0b45dcd34241f5c9f41b53a) , I'll check this out once this PR is ready

Will your PR follow up on this https://github.com/nuxt/ui/pull/638#issuecomment-1719624745 and take into account #680 and #684?


[ansible] problems with external artifacts (e.g. from github)

Currently the latest ansible code fails to deploy a master on CoreOS, because there are artifacts missing, due to ongoing development on the mainline kubernetes github repo:
TASK [kubernetes-addons : Make sure the system services namespace exists] ******
fatal: [<IP_ADDRESS>]: FAILED! => {"changed": false, "dest": "/etc/kubernetes/addons/", "failed": true, "gid": 0, "group": "root", "mode": "0755", "msg": "Request failed", "owner": "root", "response": "HTTP Error 404: Not Found", "size": 4096, "state": "directory", "status_code": 404, "uid": 0, "url": "https://raw.githubusercontent.com/GoogleCloudPlatform/kubernetes/master/cluster/saltbase/salt/kube-addons/namespace.yaml"}

While this bug is rather easy to "fix" it shows a more general problem: We are relying on a lot of external files/resources to spin up a kubernetes with ansible.
As an intermediate fix I am gonna do the following in a follow up pull request:
Instead of using the master I am gonna use v{{ kube_version }} to get the resources for the related tag. This should solve issues like that for now and would give use more reproducible ansible results.
I think ultimately we should review our heavy reliance on external resources to configure kubernetes with ansible. I think this could create plenty of issues like:

compatibility only with latest/master k8s release
really hard to run k8s in private network envs (no general internet access)

I would strongly suggest we should aim to reduce the external resource (e.g. things that do not come with the ansible code) to the following:

k8s build artifacts from {{ kube_download_url_base }}
docker images of all sorts

Let me know how you think about this!

See WIP #927 to solve the immediate issue. +1 to reducing external resources to mitigate these issues in the future.

Let's do that as part of the roles refactoring. I would like to finish https://github.com/kubernetes/contrib/pull/967 first. Together with refactoring of etcd https://github.com/kubernetes/contrib/pull/1380 and kubernetes https://github.com/kubernetes/contrib/pull/1444 roles. After that, it will be more pleasant to minimize the number of outside dependencies.

Among others we should pick systemd unit files, config files and upstart files from corresponding roles, not downloading them.
$ grep -rn "get_url"
node/tasks/retrieve-systemd-files.yml:3:  get_url:
node/tasks/retrieve-systemd-files.yml:19:  get_url:
node/tasks/retrieve-systemd-files.yml:36:  get_url:
node/tasks/fluentd-install.yml:3:  get_url:
node/tasks/ubuntu-14.04.yml:3:  get_url:
node/tasks/ubuntu-14.04.yml:17:  get_url:
node/tasks/coreos.yml:3:  get_url:
master/tasks/retrieve-systemd-files.yml:3:  get_url:
master/tasks/retrieve-systemd-files.yml:21:  get_url:
master/tasks/retrieve-systemd-files.yml:40:  get_url:
master/tasks/ubuntu-14.04.yml:3:  get_url:
master/tasks/ubuntu-14.04.yml:18:  get_url:
master/tasks/coreos.yml:3:  get_url:


":PluginSearch color" error. cant search for plugins

Hello i have been trying to get neovim,same thing happens in vim
Error detected while processing function vundle#scripts#all[3]..<SNR>26_load_scripts:
line    7:
E15: Invalid expression: <html>^M
E15: Invalid expression: <html>^M
Error detected while processing function vundle#scripts#all:
line    5:
E712: Argument of filter() must be a List or Dictionary
line   10:
E899: Argument of reverse() must be a List or Blob
Error detected while processing function vundle#scripts#all[10]..vundle#scripts#bundle_names:
line    1:
E712: Argument of map() must be a List or Dictionary
Error detected while processing function vundle#scripts#all[10]..vundle#scripts#view:
line   15:
E745: Using a List as a Number
E116: Invalid arguments for function append

i have the same question,can anyone resolve it?

This is fundamentally the same issue as #914. The problem is the same as I noted there, which is that vundle uses an API that no longer exists to query.
This is not a simple fix. The correct current course of action is to not use PluginSearch or to patch in your own PluginSearch function. I am not aware of any pull request or fork that has resolved this (probably because PluginSearch is much less useful now that most plugins are on github).

I have the same problem, I lost 2 hours to uninstall all scripts installed system-wide and removed all plugins installed as user. Also edited many times .vimrc.
Please write down of this bug in the README on github so that other people don't lose time.
I have Ubuntu 20.04.1 LTS.

Same problem

I Got the same problem in  vim 8.1 version on ubuntu 20.04.6 LTS.


Update the catchment model in LIS

Need to update the catchment model to the current version in GEOS5 with @sujayvkumar @dmocko and @karsenau

Two points about this issue:

I feel that Issue #249 (to add parameters to LDT) should be tacked first.

We want to implement these updates as a separate LSM plugin in LIS.

By implementing these as a separate plugin, instead of modifying code directly in lis/surfacemodels/land/clsm.f2.5/, we can run both the current version of the model as well as the new version.  This helps with any projects/studies currently using the CLSM-F2.5 version, as well as gives us the ability to run both the current and new versions against each other for testing.
David


Errors Built in Visual Studio 2015

I would like to create .wxs file with file tree using heat.exe WIX. Any ideas whats wrong with it and why im getting 9009 error code all the time ?
This a Pre-build comand thar im using:
“$(WIX)bin\heat.exe” dir “$(N_Published)” -cg N_Published -gg -scom -sreg -sfrag -srd
-out “$(ProjectDir)\FilesFragment.wxs”
N_Published directory is fine.

Probably better to ask this whereever the WIX heat.exe community lives... from a quick google, error 9009 with heat.exe seems to be "command not found" so your "$(WIX)bin\heat.exe" path may be incorrect. See https://stackoverflow.com/questions/22730003/msb3073-command-exited-with-code-9009