Updated README

Codecov Report
Patch and project coverage have no change.

Comparison is base (dd1e81e) 89.37% compared to head (0ba49bb) 89.37%.

:exclamation: Current head 0ba49bb differs from pull request most recent head c1e56a4. Consider uploading reports for the commit c1e56a4 to get more accurate results

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #26   +/-   ##
=======================================
  Coverage   89.37%   89.37%
=======================================
  Files          10       10
  Lines         781      781
=======================================
  Hits          698      698
  Misses         83       83

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


chore: bump to version 0.1.9

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[x] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

oops, forgot to merge this, but I'll defer to #5 which also includes a rerender


Desktop notifications

via notify-send
notify-send test
Should be themed by your DE already.

This is going to be a part of #16


Incorrect documentation for Card's surfaceTintColor

Is there an existing issue for this?

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

Steps to reproduce
Run https://dartpad.dev/?id=ce3bf404b0b41b352a3d9080dfaa136c
Expected results
top card does not have a tint.
from the docs:
  /// The color used as an overlay on [color] to indicate elevation.
  ///
  /// If this is null, no overlay will be applied. Otherwise this color
  /// will be composited on top of [color] with an opacity related
  /// to [elevation] and used to paint the background of the card.
  ///
  /// The default is null.

Actual results
top card has tint
Code sample
https://dartpad.dev/?id=ce3bf404b0b41b352a3d9080dfaa136c
Screenshots or Video

Screenshots / Video demonstration

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
[√] Flutter (Channel master, 3.13.0-19.0.pre.78, on Microsoft Windows [Version 10.0.19045.3208], locale en-US)
    • Flutter version 3.13.0-19.0.pre.78 on channel master at C:\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 436df69a46 (26 hours ago), 2023-08-08 01:58:16 -0400
    • Engine revision 146c4c9487
    • Dart version 3.2.0 (build 3.2.0-42.0.dev)
    • DevTools version 2.26.1

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

[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at C:\Users\david\AppData\Local\Android\Sdk\
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = C:\Users\david\AppData\Local\Android\Sdk\
    • ANDROID_SDK_ROOT = C:\Users\david\AppData\Local\Android\Sdk\
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)
    X Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.

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

[√] Visual Studio - develop Windows apps (Visual Studio Community 2019 16.11.18)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.11.32802.440
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2021.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)

[√] IntelliJ IDEA Ultimate Edition (version 2022.3)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2021.2.3
    • Flutter plugin version 72.1.4
    • Dart plugin version 223.8836.5

[√] IntelliJ IDEA Ultimate Edition (version 2023.2)
    • IntelliJ at C:\Users\david\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\232.8660.185
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin version 232.8660.129

[√] VS Code (version 1.74.1)
    • VS Code at C:\Users\david\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.1.0

[√] VS Code, 64-bit edition (version 1.81.0)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 3.1.0

[√] Connected device (4 available)
    • sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64    • Android 14 (API 34) (emulator)
    • Windows (desktop)            • windows       • windows-x64    • Microsoft Windows [Version 10.0.19045.3208]
    • Chrome (web)                 • chrome        • web-javascript • Google Chrome 115.0.5790.170
    • Edge (web)                   • edge          • web-javascript • Microsoft Edge 115.0.1901.188

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

! Doctor found issues in 1 category.

@rydmike - did we get this wrong?

Card and surface elevation tinting
@HansMuller, it depends a bit on how technical we want to get with the documentation of the surface tinting as a function of the elevation.
Technically it as an alpha blend starting at opacity 0 (alpha 0x00 ) for elevation 0 and ending at opacity 0.14 (alpha 0x23) reached at elevation 12 or higher. At higher elevations there is no more of the surfaceTintColor alpha blended into to the background color.
The fact that the max opacity used for the alpha blend is 0.14, means that it will not be so visible when used on dark background colors.
In the above blueAccent background color example, using Colors.red as surfaceTintColor, the blueAccent background color is correctly shifted towards red, it is just subtle and not very visible on the fairly dark blue color.
Regarding the original sample, I cannot replicate it since the Dartpad code sample does not seem to work. Dartpad samples needs to have gist url links to work, this one does not have one.
I modified an old example to demonstrate what I see, and attached it below. You can also try it in DartPad here:
https://dartpad.dev/?id=fefe44d813fca88dd2893da1c3c7b389
The sample starts with the colors used in the above example, but you can vary the elevation to see the red "shift" tint effect.
You can also remove the custom background color and see the red tint better on the lighter surface color. Plus you can remove the tint with transparent tint color, and use or not use the custom shadow from above example. So it allows you to test a few option interactively and compare with a Card always at 0 elevation and none elevated BoxDecoration, to compare the active background colors.
The Card being modified is obviously in the middle:
https://github.com/flutter/flutter/assets/39990307/02b5b4b1-75e7-48ed-874a-165551a87101
The DartPad example is on stable channel, but I also tried on latest master, same results.
With this sample I cannot see any functional issues. As far as I can replicate and see, it all works as intended, but perhaps the intent of the surfaceTint could be explained with some more detail.
@TahaTesser, did you not recently add some doc update regarding surface tint, elevation and shadows?

@HansMuller, I just noticed when looking at the elevation tint code, that the _surfaceTintOpacityForElevation could consider a minor optimization, instead of if (elevation < _surfaceTintElevationOpacities[0].elevation) it could use <= and exit early also for zero elevation and not start the while loop then either. Minor, but elevation 0 is pretty common, might be worth it.
  // Calculates the opacity of the surface tint color from the elevation by
  // looking it up in the token generated table of opacities, interpolating
  // between values as needed. If the elevation is outside the range of values
  // in the table it will clamp to the smallest or largest opacity.
  static double _surfaceTintOpacityForElevation(double elevation) {
    if (elevation <= _surfaceTintElevationOpacities[0].elevation) {
      // Elevation less than the first entry, so just clamp it to the first one.
      return _surfaceTintElevationOpacities[0].opacity;
    }
   ...

Code link: https://github.com/flutter/flutter/blob/7c59dfebb957fd8fe3fc0246ee366c8d1da0c817/packages/flutter/lib/src/material/elevation_overlay.dart#L39
Example Card tint code

Code sample
// MIT License
//
// Copyright (c) 2023 Mike Rydstrom
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
 IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';

// This issue reported here: https://github.com/flutter/flutter/issues/132199

// A seed color for the M3 ColorScheme.
const Color seedColor = Color(0xFF6750A4);
// Make M3 ColorSchemes from a seed color.
final ColorScheme schemeLight = ColorScheme.fromSeed(
  brightness: Brightness.light,
  seedColor: seedColor,
);
final ColorScheme schemeDark = ColorScheme.fromSeed(
  brightness: Brightness.dark,
  seedColor: seedColor,
);

// Example theme
ThemeData theme(ThemeMode mode, ThemeSettings settings) {
  final ColorScheme colorScheme =
  mode == ThemeMode.light ? schemeLight : schemeDark;

  return ThemeData(
    colorScheme: colorScheme,
    useMaterial3: settings.useMaterial3,
    visualDensity: VisualDensity.standard,
  );
}

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

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

  @override
  State<IssueDemoApp> createState() => _IssueDemoAppState();
}

class _IssueDemoAppState extends State<IssueDemoApp> {
  ThemeMode themeMode = ThemeMode.light;
  bool longLabel = false;
  TextDirection textDirection = TextDirection.ltr;
  ThemeSettings settings = const ThemeSettings(
    useMaterial3: true,
    useCustomTheme: false,
  );

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      themeMode: themeMode,
      theme: theme(ThemeMode.light, settings),
      darkTheme: theme(ThemeMode.dark, settings),
      home: Directionality(
        textDirection: textDirection,
        child: Scaffold(
          appBar: AppBar(
            title: settings.useMaterial3
                ? const Text("Card elevation (Material 3)")
                : const Text("Card elevation (Material 2)"),
            actions: [
              IconButton(
                icon: settings.useMaterial3
                    ? const Icon(Icons.filter_3)
                    : const Icon(Icons.filter_2),
                onPressed: () {
                  setState(() {
                    settings =
                        settings.copyWith(useMaterial3: !settings.useMaterial3);
                  });
                },
                tooltip: "Switch to Material ${settings.useMaterial3 ? 2 : 3}",
              ),
              IconButton(
                icon: themeMode == ThemeMode.dark
                    ? const Icon(Icons.wb_sunny_outlined)
                    : const Icon(Icons.wb_sunny),
                onPressed: () {
                  setState(() {
                    if (themeMode == ThemeMode.light) {
                      themeMode = ThemeMode.dark;
                    } else {
                      themeMode = ThemeMode.light;
                    }
                  });
                },
                tooltip: "Toggle brightness",
              ),
            ],
          ),
          body: HomePage(
            settings: settings,
            onSettings: (ThemeSettings value) {
              setState(() {
                settings = value;
              });
            },
          ),
        ),
      ),
    );
  }
}

class HomePage extends StatelessWidget {
  const HomePage({
    super.key,
    required this.settings,
    required this.onSettings,
  });
  final ThemeSettings settings;
  final ValueChanged<ThemeSettings> onSettings;

  @override
  Widget build(BuildContext context) {
    return ListView(
      children: const [
        Padding(
          padding: EdgeInsets.all(16.0),
          child:
          Text('Example of Card with Elevation, Opacity, Tint and Shadow.'),
        ),
        SizedBox(height: 16),
        CardShowCase(),
        SizedBox(height: 16),
        Padding(
          padding: EdgeInsets.all(16.0),
          child: ShowColorSchemeColors(),
        ),
      ],
    );
  }
}

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

  @override
  State<CardShowCase> createState() => _CardShowCaseState();
}

class _CardShowCaseState extends State<CardShowCase> {
  double opacity = 1.0;
  double elevation = 9;
  bool isTinted = true;
  bool hasShadow = true;
  bool hasCustomBackground = true;
  bool hasCustomTint = true;
  bool hasCustomShadow = true;
  //
  Color cardColor = Colors.blueAccent;
  Color? shadowColor = Colors.cyan;
  Color? tintColor = Colors.red;

  @override
  Widget build(BuildContext context) {
    ColorScheme colors = Theme.of(context).colorScheme;

    return Column(
      children: <Widget>[
        ListTile(
          title: const Text('Opacity'),
          subtitle: Slider(
            min: 0.0,
            max: 1.0,
            divisions: 50,
            value: opacity,
            label: opacity.toStringAsFixed(2),
            onChanged: (double newValue) {
              setState(() {
                opacity = newValue;
              });
            },
          ),
          trailing: Text(opacity.toStringAsFixed(2)),
        ),
        ListTile(
          title: const Text('Elevation'),
          subtitle: Slider(
            min: 0.0,
            max: 20.0,
            divisions: 40,
            value: elevation,
            label: elevation.toStringAsFixed(1),
            onChanged: (double newValue) {
              setState(() {
                elevation = newValue;
              });
            },
          ),
          trailing: Text(elevation.toStringAsFixed(1)),
        ),
        SwitchListTile(
          title: const Text('Use custom blue accent background?'),
          subtitle: const Text('OFF=scheme.surface  ON=Colors.blueAccent'),
          value: hasCustomBackground,
          onChanged: (bool newValue) {
            setState(() {
              hasCustomBackground = newValue;
              if (hasCustomBackground) {
                cardColor = Colors.blueAccent;
              } else {
                cardColor = colors.surface;
              }
            });
          },
        ),
        SwitchListTile(
          title: const Text('Is tinted?'),
          subtitle: const Text('OFF=transparent  ON=setting below'),
          value: isTinted,
          onChanged: (bool newValue) {
            setState(() {
              isTinted = newValue;
              if (!isTinted) {
                tintColor = Colors.transparent;
              } else {
                if (hasCustomTint) {
                  tintColor = Colors.red;
                } else {
                  tintColor = null;
                }
              }
            });
          },
        ),
        SwitchListTile(
          title: const Text('Use custom red tint?'),
          subtitle: const Text('OFF=null=scheme.primary  ON=Colors.red'),
          value: hasCustomTint && isTinted,
          onChanged: isTinted
              ? (bool newValue) {
            setState(() {
              hasCustomTint = newValue;
              if (!isTinted) {
                tintColor = Colors.transparent;
              } else {
                if (hasCustomTint) {
                  tintColor = Colors.red;
                } else {
                  tintColor = null;
                }
              }
            });
          }
              : null,
        ),
        SwitchListTile(
          title: const Text('Has shadow?'),
          subtitle: const Text('OFF=transparent  ON=setting below'),
          value: hasShadow,
          onChanged: (bool newValue) {
            setState(() {
              hasShadow = newValue;
              if (!hasShadow) {
                shadowColor = Colors.transparent;
              } else {
                if (hasCustomShadow) {
                  shadowColor = Colors.cyan;
                } else {
                  shadowColor = Colors.black;
                }
              }
            });
          },
        ),
        SwitchListTile(
          title: const Text('Use custom cyan shadow?'),
          subtitle: const Text('OFF=null=scheme.shadow  ON=Colors.cyan'),
          value: hasShadow && hasCustomShadow,
          onChanged: (bool newValue) {
            setState(() {
              hasCustomShadow = newValue;
              if (!hasShadow) {
                shadowColor = Colors.transparent;
              } else {
                if (hasCustomShadow) {
                  shadowColor = Colors.cyan;
                } else {
                  shadowColor = null;
                }
              }
            });
          },
        ),
        Wrap(
          spacing: 20,
          children: [
            Card(
              elevation: 0,
              color: cardColor.withOpacity(opacity),
              surfaceTintColor: tintColor,
              shadowColor: shadowColor,
              child: const SizedBox(
                width: 150,
                height: 150,
                child: Center(
                  child: Text('Card\nElevation 0'),
                ),
              ),
            ),
            Card(
              elevation: elevation,
              color: cardColor.withOpacity(opacity),
              surfaceTintColor: tintColor,
              shadowColor: shadowColor,
              child: SizedBox(
                width: 150,
                height: 150,
                child: Center(
                  child:
                  Text('Card\nElevation\n${elevation.toStringAsFixed(2)}'),
                ),
              ),
            ),
            DecoratedBox(
              decoration: BoxDecoration(
                color: cardColor.withOpacity(opacity),
              ),
              child: const SizedBox(
                width: 150,
                height: 150,
                child: Center(
                  child: Text('DecoratedBox\nNo elevation'),
                ),
              ),
            ),
          ],
        ),
      ],
    );
  }
}

/// A Theme Settings class to bundle properties we want to modify on our
/// theme interactively.
@immutable
class ThemeSettings with Diagnosticable {
  final bool useMaterial3;
  final bool useCustomTheme;

  const ThemeSettings({
    required this.useMaterial3,
    required this.useCustomTheme,
  });

  /// Flutter debug properties override, includes toString.
  @override
  void debugFillProperties(DiagnosticPropertiesBuilder properties) {
    super.debugFillProperties(properties);
    properties.add(DiagnosticsProperty<bool>('useMaterial3', useMaterial3));
    properties.add(DiagnosticsProperty<bool>('useCustomTheme', useCustomTheme));
  }

  /// Copy the object with one or more provided properties changed.
  ThemeSettings copyWith({
    bool? useMaterial3,
    bool? useCustomTheme,
    bool? useIndicatorWidth,
    bool? useTileHeight,
  }) {
    return ThemeSettings(
      useMaterial3: useMaterial3 ?? this.useMaterial3,
      useCustomTheme: useCustomTheme ?? this.useCustomTheme,
    );
  }

  /// Override the equality operator.
  @override
  bool operator ==(Object other) {
    if (identical(this, other)) return true;
    if (other.runtimeType != runtimeType) return false;
    return other is ThemeSettings &&
        other.useMaterial3 == useMaterial3 &&
        other.useCustomTheme == useCustomTheme;
  }

  /// Override for hashcode, dart.ui Jenkins based.
  @override
  int get hashCode => Object.hashAll(<Object?>[
    useMaterial3.hashCode,
    useCustomTheme.hashCode,
  ]);
}

/// Draw a number of boxes showing the colors of key theme color properties
/// in the ColorScheme of the inherited ThemeData and its color properties.
class ShowColorSchemeColors extends StatelessWidget {
  const ShowColorSchemeColors({super.key, this.onBackgroundColor});

  /// The color of the background the color widget are being drawn on.
  ///
  /// Some of the theme colors may have semi transparent fill color. To compute
  /// a legible text color for the sum when it shown on a background color, we
  /// need to alpha merge it with background and we need the exact background
  /// color it is drawn on for that. If not passed in from parent, it is
  /// assumed to be drawn on card color, which usually is close enough.
  final Color? onBackgroundColor;

  // Return true if the color is light, meaning it needs dark text for contrast.
  static bool _isLight(final Color color) =>
      ThemeData.estimateBrightnessForColor(color) == Brightness.light;

  // On color used when a theme color property does not have a theme onColor.
  static Color _onColor(final Color color, final Color bg) =>
      _isLight(Color.alphaBlend(color, bg)) ? Colors.black : Colors.white;

  @override
  Widget build(BuildContext context) {
    final ThemeData theme = Theme.of(context);
    final ColorScheme colorScheme = theme.colorScheme;
    final bool useMaterial3 = theme.useMaterial3;
    const double spacing = 4;

    // Grab the card border from the theme card shape
    ShapeBorder? border = theme.cardTheme.shape;
    // If we had one, copy in a border side to it.
    if (border is RoundedRectangleBorder) {
      border = border.copyWith(
        side: BorderSide(
          color: colorScheme.outlineVariant,
          width: 1,
        ),
      );
      // If
    } else {
      // If border was null, make one matching Card default, but with border
      // side, if it was not null, we leave it as it was.
      border ??= RoundedRectangleBorder(
        borderRadius: BorderRadius.all(Radius.circular(useMaterial3 ? 12 : 4)),
        side: BorderSide(
          color: colorScheme.outlineVariant,
          width: 1,
        ),
      );
    }

    // Get effective background color.
    final Color background =
        onBackgroundColor ?? theme.cardTheme.color ?? theme.cardColor;

    // Wrap this widget branch in a custom theme where card has a border outline
    // if it did not have one, but retains its ambient themed border radius.
    return Theme(
      data: Theme.of(context).copyWith(
        cardTheme: CardTheme.of(context).copyWith(
          elevation: 0,
          surfaceTintColor: Colors.transparent,
          shape: border,
        ),
      ),
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: <Widget>[
          Padding(
            padding: const EdgeInsets.symmetric(vertical: 8),
            child: Text(
              'ColorScheme Colors',
              style: theme.textTheme.titleMedium,
            ),
          ),
          Wrap(
            alignment: WrapAlignment.start,
            crossAxisAlignment: WrapCrossAlignment.center,
            spacing: spacing,
            runSpacing: spacing,
            children: <Widget>[
              ColorCard(
                label: 'Primary',
                color: colorScheme.primary,
                textColor: colorScheme.onPrimary,
              ),
              ColorCard(
                label: 'on\nPrimary',
                color: colorScheme.onPrimary,
                textColor: colorScheme.primary,
              ),
              ColorCard(
                label: 'Primary\nContainer',
                color: colorScheme.primaryContainer,
                textColor: colorScheme.onPrimaryContainer,
              ),
              ColorCard(
                label: 'onPrimary\nContainer',
                color: colorScheme.onPrimaryContainer,
                textColor: colorScheme.primaryContainer,
              ),
              ColorCard(
                label: 'Secondary',
                color: colorScheme.secondary,
                textColor: colorScheme.onSecondary,
              ),
              ColorCard(
                label: 'on\nSecondary',
                color: colorScheme.onSecondary,
                textColor: colorScheme.secondary,
              ),
              ColorCard(
                label: 'Secondary\nContainer',
                color: colorScheme.secondaryContainer,
                textColor: colorScheme.onSecondaryContainer,
              ),
              ColorCard(
                label: 'on\nSecondary\nContainer',
                color: colorScheme.onSecondaryContainer,
                textColor: colorScheme.secondaryContainer,
              ),
              ColorCard(
                label: 'Tertiary',
                color: colorScheme.tertiary,
                textColor: colorScheme.onTertiary,
              ),
              ColorCard(
                label: 'on\nTertiary',
                color: colorScheme.onTertiary,
                textColor: colorScheme.tertiary,
              ),
              ColorCard(
                label: 'Tertiary\nContainer',
                color: colorScheme.tertiaryContainer,
                textColor: colorScheme.onTertiaryContainer,
              ),
              ColorCard(
                label: 'on\nTertiary\nContainer',
                color: colorScheme.onTertiaryContainer,
                textColor: colorScheme.tertiaryContainer,
              ),
              ColorCard(
                label: 'Error',
                color: colorScheme.error,
                textColor: colorScheme.onError,
              ),
              ColorCard(
                label: 'on\nError',
                color: colorScheme.onError,
                textColor: colorScheme.error,
              ),
              ColorCard(
                label: 'Error\nContainer',
                color: colorScheme.errorContainer,
                textColor: colorScheme.onErrorContainer,
              ),
              ColorCard(
                label: 'onError\nContainer',
                color: colorScheme.onErrorContainer,
                textColor: colorScheme.errorContainer,
              ),
              ColorCard(
                label: 'Background',
                color: colorScheme.background,
                textColor: colorScheme.onBackground,
              ),
              ColorCard(
                label: 'on\nBackground',
                color: colorScheme.onBackground,
                textColor: colorScheme.background,
              ),
              ColorCard(
                label: 'Surface',
                color: colorScheme.surface,
                textColor: colorScheme.onSurface,
              ),
              ColorCard(
                label: 'on\nSurface',
                color: colorScheme.onSurface,
                textColor: colorScheme.surface,
              ),
              ColorCard(
                label: 'Surface\nVariant',
                color: colorScheme.surfaceVariant,
                textColor: colorScheme.onSurfaceVariant,
              ),
              ColorCard(
                label: 'onSurface\nVariant',
                color: colorScheme.onSurfaceVariant,
                textColor: colorScheme.surfaceVariant,
              ),
              ColorCard(
                label: 'Outline',
                color: colorScheme.outline,
                textColor: colorScheme.background,
              ),
              ColorCard(
                label: 'Outline\nVariant',
                color: colorScheme.outlineVariant,
                textColor: colorScheme.onBackground,
              ),
              ColorCard(
                label: 'Shadow',
                color: colorScheme.shadow,
                textColor: _onColor(colorScheme.shadow, background),
              ),
              ColorCard(
                label: 'Scrim',
                color: colorScheme.scrim,
                textColor: _onColor(colorScheme.scrim, background),
              ),
              ColorCard(
                label: 'Inverse\nSurface',
                color: colorScheme.inverseSurface,
                textColor: colorScheme.onInverseSurface,
              ),
              ColorCard(
                label: 'onInverse\nSurface',
                color: colorScheme.onInverseSurface,
                textColor: colorScheme.inverseSurface,
              ),
              ColorCard(
                label: 'Inverse\nPrimary',
                color: colorScheme.inversePrimary,
                textColor: colorScheme.inverseSurface,
              ),
              ColorCard(
                label: 'Surface\nTint',
                color: colorScheme.surfaceTint,
                textColor: colorScheme.onPrimary,
              ),
            ],
          ),
        ],
      ),
    );
  }
}

/// A [SizedBox] with a [Card] and string text in it. Used in this demo to
/// display theme color boxes.
///
/// Can specify label text color and background color.
class ColorCard extends StatelessWidget {
  const ColorCard({
    super.key,
    required this.label,
    required this.color,
    required this.textColor,
    this.size,
  });

  final String label;
  final Color color;
  final Color textColor;
  final Size? size;

  @override
  Widget build(BuildContext context) {
    const double fontSize = 11;
    const Size effectiveSize = Size(86, 58);

    return SizedBox(
      width: effectiveSize.width,
      height: effectiveSize.height,
      child: Card(
        margin: EdgeInsets.zero,
        clipBehavior: Clip.antiAlias,
        color: color,
        child: Center(
          child: Text(
            label,
            style: TextStyle(color: textColor, fontSize: fontSize),
            textAlign: TextAlign.center,
          ),
        ),
      ),
    );
  }
}

@TahaTesser, did you not recently add some doc update regarding surface tint, elevation and shadows?

Yes, that was for Card.color https://github.com/flutter/flutter/pull/131468

@rydmike thanks for pointing out the dartpad link being broken, I tested it but it seems to have just loaded from my browser's local storage, tricking me into thinking everything is fine.
Looks like no one else before you bothered to click it ^^ anyway, I fixed the links in the original thread.

Thanks @Lootwig, I agree with you regarding the doc comment for surfaceTintColor, it is indeed incorrect. I seem to recall it used to be like it states in early phase of M3 migration/implementation, basically when the property was first added, but the default behavior was changed later.
Using null value now causes it to use the M3 defaults, which is Theme.of(context).colorScheme.surfaceTint. If you do not want any elevation tint you have to use Colors.transparent either via Card prop surfaceTintColor, or corresponding card theme color value or even have elevation tint in your ambient colorScheme as transparent.
Obviously this doc issue should be corrected. I suspect the same documentation issue might exist in other places where it is used and mentioned in doc comments, unless it has been updated.


Adding Path Of Titans Egg

Description

Checklist for all submissions

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?
[x] Have you tested and reviewed your changes with confidence that everything works?
[x] Did you branch your changes and PR from that branch and not from your master branch?

If not, why?:

[ ] You verify that the start command applied does not use a shell script

[x] If some script is needed then it is part of a current yolk or a PR to add one

[ ] The egg was exported from the panel

New egg Submissions

[x] Does your submission pass tests (server is connectable)?
[ ] Does your egg use a custom docker image?

[ ] Have you tried to use a generic image?
[ ] Did you PR the necessary changes to make it work?

[x] Have you added the egg to the main README.md and any other README files in subdirectories of the egg (e.g /game_eggs) according to the alphabetical order?
[x] Have you added a unique README.md for the egg you are adding according to the alphabetical order?
[ ] You verify that the start command applied does not use a shell script

[x] If some script is needed then it is part of a current yolk or a PR to add one

[ ] The egg was exported from the panel

Also fix the (3) in the filename please.

Required changes are made.

@Hendalf-DEV If you can mention in the readme how to get a token then this can be merged.

@Hendalf-DEV If you can mention in the readme how to get a token then this can be merged.

Ready
https://github.com/pelican-eggs/games/commit/0c69469a54a0c6146aad84575cf313134093df5f


Association dialog "add" button is disabled even with no errors

Checklist

[X]  I am not using Home Assistant. Or: a developer has told me to come here.
[X] I have checked the troubleshooting section and my problem is not described there.
[X] I have read the changelog and my problem is not mentioned there.

Deploy method
Home Assistant Add-on
Z-Wave JS UI version
v9.16.1
ZwaveJS version
v13.0.1
Describe the bug
Introduced by this change: https://github.com/zwave-js/zwave-js-ui/pull/3804
The "add" button in the add group dialog box is disabled even though the group association is supported.

To Reproduce
Try to add a group association.
Expected behavior
The "add" button should be enabled if there is no error shown.
Additional context
I have double checked this association is supported and tried other known-working associations. When an invalid association is attempted, an error message appears as it should.

I ran into this issue too. I rolled back my docker container to zwave-js-ui: <IP_ADDRESS>e6713 and the association worked just fine.

Had my container on Latest, rolled back to 9.15.0 and set the associations successfully...

Please be patient the issue is fixed I just have to release a new patch


Download dependencies to install tensorflow from source on Mac

Environment info
Operating System: OS X 10.11.6
Installed version of CUDA and cuDNN:
No
If installed from source, provide

The commit hash (git rev-parse HEAD) :
6218ac2be3cc530da866ec32da4cb86c6ac5bb85

The output of bazel version
Build label: 0.3.1-homebrew
Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Thu Aug 4 09:58:27 2016<PHONE_NUMBER>)
Build timestamp:<PHONE_NUMBER>
Build timestamp as int:<PHONE_NUMBER>

If possible, provide a minimal reproducible example (We usually don't have time to read hundreds of lines of your code)
tensorflow/contrib/makefile/download_dependencies.sh
What other attempted solutions have you tried?
I thought it was some problem that I havent install the tar in my Mac, but it didnt help
Logs or other output that would be helpful
When i run the command line like above, I got some error which indicate it failed to download eigen.
downloading http://bitbucket.org/eigen/eigen/get/" + eigen_version + ".tar.gz
tar: Unrecognized archive format
tar: Error exit delayed from previous errors.
Can you help me?  I am new to tensorflow

Seems to be the same as: https://github.com/tensorflow/tensorflow/issues/4567

Hi, thanks for your answer, actually, I just follow the tutorial for ios application:
https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/makefile
and also, I install tensorflow with Docker container, So if I want to continue to the IOS application implement, what should I do, just follow the canonical way with bazel or with the source installation, or the docker version???
Thank you in advance:)
Hao


Switch Tab Not working

The problem
I had a website called https://watch-mediaprima-uat.switch.tv/ need login<EMAIL_ADDRESS>and abcd1234. When i cliked the Terms and Conditions link, it open another tab but my automation cannot detect the second tab. I had switch to second tab. What wrong with it?
Details
the Terms and Conditions link, it open another tab but my automation cannot detect the second tab. What wrong with it?
Tell us about your environment

Selenide Version:  6.15.0
Chrome\Firefox\IE Version: 118
Browser Driver Version: -
Selenide-Appium Version: -
IOS\Android\WEB version:-
Selenium Version: 4.19.0
OS Version: Win 10

Code To Reproduce Issue
@Test
public void testT&C() {
     login();
     $x("link").click();
     switchTo().window(1);
     $x("//h1[contains(text(), 'Terms of Use')]").shouldHave(text("Terms of Use"));
}

Hi.
You didn't provide the full code. You didn't show your login method.
Anyway, method swithTo().window works. Just the index is 0-based.

In the beginning, you need to call switchTo().window(1) - it will switch to the second window (that contains username and password fields)
after entering credentials, you need to call switchTo().window(0) - it will switch to the first window (the main content).


lamda time out every other request

For some reason the lamda has starting timing out every other request.  I put debug statements in the node server on my machine and its not getting the request.  I put a trace filter on my firewall and I can confirm the request  never hits the firewall when this happens.  I am starting to debug the lambda but I wanted to know if anyone else had this problem.

So the lambda is getting the playintent.  On the first call it works.  On the second call the httpreq is sent so far as the code is concerned but it never arrives.

 Something is going wrong in httpreq so that every other call does not actually send the request and the lambda times out.
PlayIntent: function (intent, session, response) {
console.log("PlayIntent received");
options.path = '/preset/' + encodeURIComponent(intent.slots.Preset.value.toLowerCase());
httpreq(options, function(error) {
console.log("debug: " + JSON.stringify(error));
genericResponse(error, response);
});
httpreq(options, function(error) {
console.log("debug: " + JSON.stringify(error));
genericResponse(error, response);
});
console.log("debug: playintent done");
},

So whats happening is literally every other request to httpreq does not callback. I put debug statements so you can see.  Note the first one never gets called back for body.  Does anyone else have this problem?
2016-06-17T18:38:18.443Z	a8c47f2a-34ba-11e6-8a53-336b681b6287	dispatch intent = ResumeIntent
2016-06-17T18:38:18.443Z	a8c47f2a-34ba-11e6-8a53-336b681b6287	ResumeIntent received
2016-06-17T18:38:18.444Z	a8c47f2a-34ba-11e6-8a53-336b681b6287	debug: undefined = shanesoffice
2016-06-17T18:38:18.444Z	a8c47f2a-34ba-11e6-8a53-336b681b6287	Sending HTTPS request to: /shanesoffice/play
2016-06-17T18:38:18.665Z	a8c47f2a-34ba-11e6-8a53-336b681b6287	Sending HTTPS request to: /shanesoffice/play
2016-06-17T18:38:20.083Z	a8c47f2a-34ba-11e6-8a53-336b681b6287	debug: final body =
2016-06-17T18:38:20.083Z	a8c47f2a-34ba-11e6-8a53-336b681b6287	debug: genericResponse(undefined, ... undefined)
END RequestId: a8c47f2a-34ba-11e6-8a53-336b681b6287

If you are saying that every other request is not executing, then no I am not experiencing this.

OK it must be something specific to me

@kshartman I would suggest, if you are not already doing so, start using the Beta Branch of node-sonos-http-api

@kshartman And one more thought is you might try increasing the lambda time out to say 30 seconds in the Lambda Management Console.


BUG: Fix memory leak in CRS.list_authority

List elements were not properly disposed of when iterating the results of proj_identify. This fixes this and simplifies the cleanup logic.

[ ] Tests added (not sure how to test this automatically)
[x] Fully documented, including history.rst for all changes and api/*.rst for new API

You can reproduce this issue with the following snippet (look at the memory usage):
from pyproj import CRS

for i in range(10000):
    CRS.from_epsg(3857).to_epsg()

Thanks @skogler :+1:

Happy to help, thanks for the free software :)

@snowman2 I searched for other usages of proj_list_get and found one here: https://github.com/pyproj4/pyproj/blob/main/pyproj/_transformer.pyx#L204
What do you think about that one? It seems to me that https://github.com/pyproj4/pyproj/blob/main/pyproj/_transformer.pyx#L116 should probably call roj_destroy on all the child transformer objects?

What do you think about that one?

I believe that should be fine. The _Transformer or CoordinateOperation object handles de-allocation of the objects.

Ah, I see, because Base is doing, it, you are right!

Mind rebasing from main? I added a fix (#1179) that should allow the CICD tests to run to completion now.

Sure, done.

Thanks @skogler :+1:


Address warning in Airflow plugin version check

src/meltano/core/plugin/airflow.py:110: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    if StrictVersion(version) < StrictVersion("2.0.0")

@edgarrmondragon what's the solution here? And how urgent is this?

@tayloramurphy not super urgent, but as we move into supporting newer Python versions (#6135)  and bumping Meltano's dependencies (#6264), we might break the Airflow support.
It's also probably a very quick (< 1 hour) fix by replacing distutils.StrictVersion with the packaging.version equivalent.


dhcp domain-search

It seems the syntax for the domain-search option is wrong. Current syntax:
option domain-search "domain.com, domain.org";

That didn't work for me and I tried:
option domain-search "domain.com", "domain.org";

and it worked! I'm not exactly sure if this is a version conflict because I can't find any documentation in the man pages of dhcpd.conf.

Yes, it looks more like a bug in the template.

This was introduced in https://github.com/theforeman/puppet-dhcp/commit/1ad54b36f7dbb2876aa84ec28d63401de4c7e863 so I wonder if anyone actually tested it with multiple search domains.


Are we killing py2 completely or do we need a 2-3 compatible mode using something like six for some of the items?

@theanalyst I was thinking we don't need the extra complexity and bother of Python2 compatibility at this point since it's only got eight months of life left in it.


Why compare objects?

https://github.com/pion/ion/blob/daafc471f157ce7d62901450d42f0c30e2a85891/apps/biz/server/server.go#L80
AS-IS
	if s.rooms[id] == r {
		delete(s.rooms, id)
	}

TO-BE
	if s.rooms[id] != nil {
		delete(s.rooms, id)
	}

Is the modified code correct?

yep, same result, but seem your code is clearly


xy[!] => xyz is not working in the way its supposed to

Describe the bug
The bug is that I cant check whether the action is dislike or not action[!] => "dislike" just simply doesn't work or idk. I even checked for errors there was none.
Information

Version of Medoo: Version 1.7.10
Type of Database (MySQL)
System Linux

Detail Code
$rows = $db->select("notif", "*", [   "to" => $email,   "action[!]" => "dislike",   "action[!]" => "block" ]);
Expected output
A clear and concise description of what output you expected.
SELECT * FROM notif WHERE to =<EMAIL_ADDRESS>AND action != "dislike" AND action != "block"

If you want to assign value to the same column, you can just simply combine value together with array.
"action[!]" => ["dislike", "block"]

Thank you! I was dumb...


initializationOptions on project basis

Hey!
I have a question regarding initalization options. Now, one can either use lsp_server_initalization_options or use global kak_lsp.conf directly. The problem I see is that lsp_server_initalization_options is a str-to-str-map so I'm not sure how can I express value which is a JSON list. Like for example
{
    "initializationOptions": {
        "cargo": {
            "features": ["feature1", "feature2"]
        }
    }
}

I managed to get it to work with a global kak_lsp.conf via
[language.rust.initialization_options.cargo]
features = ["feature1", "feature2"]

but it is not that great really. Tbf, it would be nice to be able to have these to-be-enabled-initialization-options stored and read from somewhere so I can jump between projects and kak-lsp would pick these up automatically. Thanks for help! Amazing project btw <3

Right, the rust.clippy_preference="on" example in our readme only mentions that maps and primitives are supported, but arrays aren't.
So currently we can dynamically set initialization options using
set-option global lsp_server_initialization_options cargo.foo=bar

lsp-get-server-initialization-options will convert that to valid TOML, which is loaded on-the-fly (and overrides kak-lsp.toml)
cargo.foo = "bar"

but for your use case we need to support something like
set-option global lsp_server_initialization_options cargo.features="feature1,feature2"

Yep. I'm not sure what is a sane solution to this problem.
Also, problem probably is even more general than this Kakoune option. It'd be nice to have a state-of-the-art approach (maybe even mentioned in wiki/readme) for initialization option management on a project basis.
Can't help but notice that one of the first class citizens supported by kak-lsp is Rust. Especially in Rust Embedded projects, usage of feature flags is really intensive. In HAL projects these are very often used to indicate against which device project is being compiled. Having these reliably switchable on fly would be immensly helpful.

Hold on, I think this already works. :joy_cat:
I have this in my configuration:
set-option global lsp_server_configuration pyls.configurationSources=["pycodestyle","flake8"]

so as long as the thing right of the = is valid TOML you're good.

It'd be nice to have a state-of-the-art approach (maybe even mentioned in wiki/readme) for initialization option management on a project basis.

Yeah sounds like something for the Wiki (the readme is already fairly dense).

Having these reliably switchable on fly would be immensly helpful.

Yes, this already works. Whenenver %opt{lsp_server_initialization_options} changes, then kak-lsp will reconfigure the language server.
Really it's just a question of convention/preference how you implement it.
You can create a .local.kak in your project's root that contains something like
set-option global lsp_server_initialization_options cargo.features=["feature1","feature2"]

And then add try %{ source .local.kak } to your kakrc. (I didn't try this with cargo, but it should work)
Personally, I don't like scattering those files around my projects, so I just have a section in my main kakrc that does some project-specific initialization based on the current directory.
Here's how this looks like for some other options, but the same concept applies for lsp options.
define-command my-setup-for-kak-lsp -params 1 %{
	set-option global indentwidth 4
	hook -group my global WinSetOption filetype=rust %{
		set-option window autowrap_column 100
	}
	map global user m %{: write-all<ret>: cargo build<ret><esc>} -docstring 'cargo build'
}
define-command -override my-setup-for-fish-shell -params 1 %{
	set-option global makecmd "ninja -C %arg{1}/build fish"
	set-option global indentwidth 4
	hook -group my global WinSetOption filetype=(c|cpp) %{
		set-option window autowrap_column 100
	}
}
evaluate-commands %sh{
	root="$(git rev-parse --show-toplevel 2>/dev/null)"
	echo try %{ "my-setup-for-${root##*/}" "$root" } # call the setup function, if it exists
}

It's interesting. I'm surprised a little by this trick with .local.kak file. I guess you have to lookup every parent directory in a chain from the file; sourcing itself does not seem to be enough IMO. Also, my understanding is that you're not using sessions in kakoune but rather open an editor everytime you want to edit something? When clients run in the same session, kakrc is read only on a session creation so it'd require using some hooks instead.

Also, set-option global lsp_server_initialization_options cargo.features=["feature1","feature2"], does not work. Init JSON produced by kak-lsp contains "initializationOptions":{"cargo.features":["feature1","feature2"]} which seemingly is ignored by rust-analyzer because it expects nested structure of cargo and features.

Running into a similar issue with the Deno LSP.
In  deno I can use so called Import maps per project, which map packages to their corresponding url, which means I have one import_map.json file per project which needs to be passed to the lsp to correctly resolve import paths in my code.
In addition to that init option, I have to additional ones which enable the whole thing and allow lsp based linting.
Would really be nice to have an option on a per-project basis to allow passing the correct json file

Also, set-option global lsp_server_initialization_options cargo.features=["feature1","feature2"], does not work. Init JSON produced by kak-lsp contains "initializationOptions":{"cargo.features":["feature1","feature2"]} which seemingly is ignored by rust-analyzer because it expects nested structure of cargo and features.

Right, my bad.
Commit abe3244 (branch dynamic-config) has a tentative fix.
It allows to write something like
set-option global lsp_server_initialization_options %sh{ cat project-init-options.toml }

(I'm not sure if we should break compat, or just add a new option.)
@Glaeqen @iMarv would that work for your use case?
Do you prefer to specify JSON instead of TOML? I think in the dynamic options we could support both by autodetecting the format.
JSON is uglier, but it might be convenient since it's used by others. Not sure if that's worth it in the long run.

guess you have to lookup every parent directory in a chain from the file;

or use something like git rev-parse --show-toplevel

Also, my understanding is that you're not using sessions in kakoune

I'm using one session per project, so usually sourcing at startup is enough. (I'm also using an idempotent config, so I can source it again any time.)
So yeah, if you are really using a session for multiple projects with conflicting Cargo features you might want to use hooks.
(Alternatively, maybe just send the union of all features you might need. How often do they really conflict? Keep in mind that if you send unknown features, they are ignored. Anyway, this is just an idea, which I haven't tried.).

I guess json or toml, or yaml or w/e does not really matter. I feel like toml is less of a pain to write as it requires far less indents and quotes.
So I am generally new to this, would your example above source a project-init-options.toml from the directory where kakoune is launched? If thats the case and if the lsp then resolves the paths relative to that file my problem would be solved


Searching for @word should show posts that only contain it, not the word

subject
This was originally brought up by the comment at https://github.com/bluesky-social/indigo/issues/581#issuecomment-1950262492.

So its not just for # or @, its happening for most of the symbols.

Will this be implemented soon?

Hmm?

bump

bump


Abseil libraries need google/cctz dependency

(should this be in mattgodbolt/compiler-explorer-image instead?)
Abseil is unfortunately broken for anything that includes absl/time/time.h, since it depends upon cctz/time_zone.h from https://github.com/google/cctz/tree/master/include/cctz.
e.g.
#include "absl/synchronization/mutex.h"

In file included from <source>:1:
In file included from /opt/compiler-explorer/libs/abseil/absl/synchronization/mutex.h:69:
In file included from /opt/compiler-explorer/libs/abseil/absl/synchronization/internal/kernel_timeout.h:36:
In file included from /opt/compiler-explorer/libs/abseil/absl/time/clock.h:26:
/opt/compiler-explorer/libs/abseil/absl/time/time.h:67:10: fatal error: 'cctz/time_zone.h' file not found
#include "cctz/time_zone.h"
         ^~~~~~~~~~~~~~~~~~
1 error generated.
Compiler exited with result code 1

No worries! Fix incoming!


Error with hyprshade auto

When I try to use hyprshade auto it gives me this error: Error: '<=' not supported between instances of 'str' and 'datetime.time'.

Can you share your hyprshade.toml? Maybe you have a wrong setting on the start or end time

It sounds like you included quotes around the value for start_time or end_time in your Hyprshade config (like start_time = "07:32:00"), which caused it to be deserialized as a string (str) instead of time. See the TOML spec "Local Time" section for how time should be formatted.
Better error reporting should be coming eventually.

Exactly!

Hey @loqusion if you are busy with other things (you are!) then I might create some issue templates requiring to include hyprshade.toml file and other critical info.

@HarshNarayanJha That would be great! Feel free to make a PR any time.

Sorry for the missing config file! This was exactly the problem. I was using NixOS to write toml config from nix but it seems not to support this part of the config yet, or idk how to do it, thanks!


Where is typeahead-bootstrap.css?

Hi Aleksej,
I have have successfully integrated your typeahead ajax plugin in my website and it's working like a charm. In the section under Bootstrap integration you mention that typeahead-bootstrap.css is required to apply the Bootstrap theme to the dropdown. I can't find any reference to this css file. Is it still required? and if so, can you point me to it's location?
I also have a question regarding the return data. If I have other fields apart from the value and display fields, how can I access those when an item is selected? Should I combine them into a single value field in the preProcess function? Or is there another way?
Regards
Ron Marinusse

Hi, typeahead-bootstrap.css was removed during the transition to version 3.
Now fairly standard bootstrap.css or bootstrap.min.css.


leak memory

In SSCheckBoxView.h:
Leak here:
id<NSObject> delegate;

need change to:
__weak id<NSObject> delegate;

@lexuanquynh Thanks. Would you like to send a PR? I'd be more than happy to merge.


Read connection details from array

It would be nice to set connection details from an array.
Now it is already so that the connection string is parsed to an object. So converting from an array shouldn't be that much of a problem.
The reason I would like this is because I read the connection details from a .yml file, which returns me an array in the form of:
array(
    'development' => array(
        'adapter' => 'mysql',
        'host' => '<IP_ADDRESS>',
        'database' => 'database_name',
        'username' => 'webuser',
        'password' => 'webpass'
    ),
    'production' => array(
        'adapter' => 'mysql',
        'host' => '<IP_ADDRESS>',
        'database' => 'database_name',
        'username' => 'webuser',
        'password' => 'webpass'
    )
);

Which I now convert to connection strings using the following array_map:
$connections = array_map(function( $value ){
    return "${value['adapter']}://${value['username']}:${value['password']}@${value['host']}/${value['database']}";
}, $config);

I will submit a PR for this "soon".

@al-the-x here is my PR: #494 (not really "soon")

:+1: Keep on truckin'...

When trying to use a password with special characters (such as a), the connection fails. I believe this is because the connection string is a URI and it becomes malformed. Example (password is p@ssword):
mysql://root:p@ssword@localhost:3306/myschema?charset=utf8mb4

Would this array method fix this? Or is there another solution in these cases?


Need download playlist

Is your feature request related to a problem? Please describe.
iptv-org/iptv repo was closed. I have downloaded and worked playlist by url on my computer. I need move data to an other computer
Describe the solution you'd like
Better solution add export button in playlist settings popup
Additional context
Add any other context or screenshots about the feature request here.

The feature was implemented in https://github.com/4gray/iptvnator/commit/7e4d6b171fa87ffb7084344a10d653dd2cb30ea2


Fix bug in sh script that runs test in jenkins

Some testers fail with
ci/verify-chef.sh: test: ] missing`

This regression was introduced by
https://github.com/chef/chef/commit/2bcb7d06dcb49c953b9e666b24c8bd3cb56da2c5
This patch should fix it, though I can't be 100% sure as the pipeline seems to pick up the ci folder from master.

the test failure is unrelated, coderanger is working on fixing

:+1:

:+1:


Use the woff2 font type in all of the Bit Platform projects

Use the woff2 font type in all of the Bit Platform projects

This issue is solved in #2030


Added Full TextSearch(Allow search by name only)#67

LGTM except for the final comment above. Feel free to merge after resolving the comment above and run tools/all_tests again to make sure everything (except for the photo upload) passes.

｡ﾟヽ(ﾟ´Д｀)ﾉﾟ｡ ﾔｯﾀｰﾝ♪


Detach fork

It doesn't look like the PRs are going to go through, so it'll probably be best to detach the fork:

Go to https://support.github.com/contact?tags=rr-forks
Type 'unfork'
Let the virtual assistant take care of it.

Yes, the upstream looks pretty stale.


Sign In / Sign Up screens

@IlyaVi Could I take this?

@ImmanuelSegol we are already working on this epic, I've created a new epic and it has this
task which is fine for the starter
The corresponding screen in design is screen number 18

https://xd.adobe.com/spec/82a02ed8-aecc-466a-4107-10c94808ade3-f491/screen/d77898a8-40ff-4ea1-a86d-a880e8f0ad3a/1/
https://xd.adobe.com/spec/82a02ed8-aecc-466a-4107-10c94808ade3-f491/screen/f75eee79-46df-49ba-bb1b-2f9556ef5b6c/2/
https://xd.adobe.com/spec/82a02ed8-aecc-466a-4107-10c94808ade3-f491/screen/d20665d7-706e-4582-be85-7026bf9daa5c/3/
https://xd.adobe.com/spec/82a02ed8-aecc-466a-4107-10c94808ade3-f491/screen/ca8dffe0-90b3-4031-804a-a89c2ecb72f6/4/


Transparent trunk

When I chop the tree in Fabric 1.19.2 the trunk gets transparent.

Thanks for posting here. Could you share a log file? If you're using a mod pack, can you send me a link to it?

Might be fixed in 0.17.6, will try to test later.

I'm pretty sure this is fixed in newer versions of TreeChop. Feel free to reopen if you're still having issues


travis: Add Python 3 compatibility test.

This tests whether a new patch introduces any regressions related to
any of the Python 3 compatibility fixers we've run in the past, so
that we can make continuous forward progress on our path towards
Python 3 compatibility.
This produces error output that looks like this:
"""
Testing for additions of Python 2 patterns we've removed as part of moving towards Python 3 compatibility.
Running Python 3 compatibility test lib2to3.fixes.fix_apply
Running Python 3 compatibility test lib2to3.fixes.fix_except
diff --git a/zerver/views/init.py b/zerver/views/init.py
index b5c0102..2defd46 100644
--- a/zerver/views/init.py
+++ b/zerver/views/init.py
@@ -296,7 +296,7 @@ def accounts_register(request):
do_activate_user(user_profile)
do_change_password(user_profile, password)
do_change_full_name(user_profile, full_name)

       except UserProfile.DoesNotExist, e:

       except UserProfile.DoesNotExist as e:
           user_profile = do_create_user(email, password, realm, full_name, short_name,
                                         prereg_user=prereg_user,
                                         newsletter_data={"IP": request.META['REMOTE_ADDR']})

Python 3 compatability error(s) detected!  See diff above for what you need to change.
"""

Automated message from Dropbox CLA bot
@timabbott, it looks like you've already signed the Dropbox CLA. Thanks!

@armooo this is an implementation of the Python 3 compatibility testing that we discussed related to #192

:+1:  FFTP


[unpkg]: Handling of scoped npm packages

Minimal repro steps
What is the smallest, simplest set of steps to reproduce the issue. If needed, provide a project that demonstrates the issue.

Restore the below libman.json

{
  "version": "1.0",
  "libraries": [
    {
      "provider": "unpkg",
      "library": "@angular/cli",
      "destination": "lib/angular"
    },
    {
      "provider": "unpkg",
      "library":"jquery",
      "destination": "lib/unpkg/jquery"
    }
  ]
}

Expected result
What would you expect to happen if there wasn't a bug
Both libraries succeed in restoring or both fail (as both are missing the version information)
In case of failure, the error should indicate that the library ids are not valid.
Actual result
What is actually happening
@angular/cli library is successfully restored and jquery fails to restore with a resource download exception.
Error for jquery
Failed to download resource from<EMAIL_ADDRESS>

This also affects auto-completion in the editor and Install Client Side Library dialog.

I played around with this issue and it looks like various issues have been fixed already.

If I use the manifest file content from the repro, I do get errors about unpkg not being able to resolve the libraries (because versions are missing), which seems by design.

If I add version numbers to both libraries, they both resolve and restore correctly (and scoped package is now handled fine).

If I add version number to only one library (and omit version number from the other library), no libraries are restored even though only one of the two is invalid.

Number 3 above is by design. If we do not fully understand the manifest, we won’t attempt a partial operation (restore or clean).


Accept sending email (unkown authority)

Hi,
I have my own mail server using tls but I have not paid a certificate. I would like to use this server to send email from gogs git. But gogs does not accept to bypass verification certicate.
"could not send email 1: x509: certificate signed by unknown authority"
I think it would be a useful feature to add.
Gogs version: v0.7.33
I want to congratulate you for the work done for this project. I am the project for a long time and it has evolved in the right direction.

Apologies that is in the documentation ...

😅


devicelocation format

Please see device location in attendance context fields:
https://github.com/jiscdev/xapi/blob/master/recipes/attendance/attendance.md#context
Currently: context.extensions.https://xapi.jisc.ac.uk/devicelocation
Should it be camel case in line with others: context.extensions.https://xapi.jisc.ac.uk/deviceLocation
I am not sure it matters since there are other files named inconsistently also e.g. context.extensions.https://xapi.jisc.ac.uk/captured_from

Agreed that there are inconsistancys, this is accumulation from accumulation of approaches and contributers and one of the reasons that library recipes etc was brought into this repository.
Can we discuss the inconsitencies at the next call:

Url structure going forward
underscore, camel case going forward
is there a long term goal we should be headed towards (w3id/purl resolvable iri's sameAS jisc iris)?

Todo:

come up with a consistent iri scheme
really dont worry about long term w3id and resolvable iris. But think about it to help you sleep

it is fine to change devicelocation because it isn't being used

deviceLocation seemed to be inconsistent in the spec, now deviceLocation

For discussion at 1 April:

deviceLocation was inconistent anyway, it is now deviceLocation across spec
Propose that going forward we use delimiter seperated instead of letter case. Sugguest snake_case.
Currently minted iris are either follow the structure xapi.jisc.ac.uk/ or xapi.jisc.ac.uk//. Propose that going forward we go with a convention that indicates the property instead because they can be used across recipes. For example xapi.jisc.ac.uk/verbs/ xapi.jisc.ac.uk/extensions/
Will document this in the spec

From 1 april call:

Fine with sugguested convention going forward


[DRAFT] Add support for Doctrine 3

What the title says.

Other than many deprecation warnings, because https://github.com/crate/crate-pdo/pull/146 has not been merged and released yet, running the tests here [^1] raise this fatal error [^2]:
Fatal error: Declaration of Crate\PDO\PDO::prepare($statement, $options = null) must be compatible
with Doctrine\DBAL\Driver\Connection::prepare(string $sql): Doctrine\DBAL\Driver\Statement
in /path/to/crate-dbal/vendor/crate/crate-pdo/src/Crate/PDO/PDO.php on line 193

[^1]: composer run test
[^2]: https://github.com/crate/crate-dbal/actions/runs/4895679362/jobs/8741560882?pr=122#step:8:18

It will make no sense to continue working on this before https://github.com/crate/crate-pdo/pull/146 has been merged.

Hi @amotl I came across this and was wondering if this will be merge soon now that PR holding you back is merged?

Dear Rico,
thank you for writing in. I am not sure if this patch is exhaustive to add support for Doctrine 3. Is it?
With kind regards,
Andreas.


Effect of outScaling for prediction quality

After fiddling around with the outScaling parameter defined here (mainly because I did not really get the sense of it, since it apparently multiplies the predictions of the network, at least that is how I understood this part), I observed rapid changes in PSNR when changing the value from its default of 10 to e.g. 1 (which would mean the predictions are not altered).
This effect is reproducable e.g. in this notebook example by changing the line
means = prediction.tiledPredict(im, net ,ps=256, overlap=48, device=device, noiseModel=None)

which gives an Avg PSNR MMSE ~ 36 to this
means = prediction.tiledPredict(im, net ,ps=256, overlap=48, device=device, noiseModel=None, outScaling=1.0)

which for me produced an Avg PSNR MMSE ~ 20.
Do you have an idea on why that is happening and why a simple scaling of the prediction affects the PSNR that much? Or is the effect of the outScaling parameter a different one from what I think it is?

Hello @codingS3b
Thank you for looking into this and also for your pull request (I will get to it hopefully next week!).
On this question front, I wanted to ask if you also trained the network with outScaling = 1 by modifying this line of code.
If both (training and prediction notebooks) use the same values for outScaling, I would imagine that the results are comparable and close to Avg PSNR MMSE ~ 36 (although we haven't rigorously checked this yet!)
Let me know in case you discover a different behavior than this. Thank you!

Thanks for your response @MLbyML and pointing me to the training function.
I was not aware of the factor being multiplied there as well (since this is not a parameter of the function) and did not change it accordingly, so this might explain the problem. My model was trained with predictions multiplied by 10 and hence the same should be done for the inference part.

Needless to say, it outScaling is a parameter for a function used for inference, but needs to be adhered to in code for the training; I would think this should be documented somewhere.

I totally agree.
Thanks for pointing it out.
The parameter has to be set to the same value for training and prediction.
On 8/7/20 1:11 PM, Peter Steinbach wrote:

Needless to say, it |outScaling| is a parameter for a function used
for inference, but needs to be adhered to in code for the training; I
would think this should be documented somewhere.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/juglab/PPN2V/issues/5#issuecomment-670465083, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAJDL47KH26RZUW42VPUAH3R7PONLANCNFSM4PXM2EWQ.


feature: Automate propagation of helm metadata for a release so that helm has visibility of the release in WECs

Feature Description
After deploying a helm chart via WDS, run "helm list" on the wds1:
$ helm --kube-context wds1 list -n postgres-system
NAME            NAMESPACE       REVISION        UPDATED                                 STATUS       CHART                    APP VERSION
postgres        postgres-system 1               2023-10-31 13:39:52.550071 -0400 EDT    deployed     postgresql-13.2.0        16.0.0

And try that on the managed clusters
$ helm list --kube-context cluster1 -n postgres-system
# returns empty
$ helm list --kube-context cluster2 -n postgres-system
# returns empty

This is because helm list looks for the Secret objects that are created by helm install to record the Helm metadata about the Helm "releases" it creates, but helm install does NOT apply its usual labels to those Secret object. Consequently, they are not selected for propagation to the WECs.
The situation could be remedied by applying the regular labels to the Helm metadata Secret object in this example:
kubectl --context wds1 get secrets -n postgres-system -l name=postgres -l owner=helm  -o jsonpath='{.items[0].metadata.name}'  | awk '{print "kubectl --context wds1 label secret -n postgres-system "$1" app.kubernetes.io/managed-by=Helm app.kubernetes.io/instance=postgres"}' | sh

Verify that the chart shows up on the managed clusters:
helm list --kube-context cluster1 -n postgres-system
helm list --kube-context cluster2 -n postgres-system

Proposed Solution
Automate labeling  for helm metadata secrets with logic in the ks-0,20 controller. For example, when a secret is created/updated, check if it is a helm release and if yes find which release name and add the labels app.kubernetes.io/managed-by=Helm and  app.kubernetes.io/instance=<release-name>
Want to contribute?

[ ] I would like to work on this issue.

Additional Context
No response

Wouldn't it make sense to raise this as an issue with Helm? I see that the app.kubernetes.io/managed-by label is well-known and even recommended (https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/#labels) in Kubernetes in general. It seems to me that either we should get Helm to apply those labels to its metadata Secret objects or, if the Helm project disagrees, be consistent with them and use different labels.

The cited fix command above constructs a command and pipes it to a shell.  This makes security-conscious people nervous.  Following is an alternative that does not use so much unneeded power.
kubectl --context wds1 label secret -n postgres-system $(kubectl --context wds1 get secrets -n postgres-system -l name=postgres -l owner=helm  -o jsonpath='{.items[0].metadata.name}') app.kubernetes.io/managed-by=Helm app.kubernetes.io/instance=postgres

(although this is interpolating command output into a shell line, the interpolated output is in a position that will be treated as a single shell word passed into the kubectl label command in the position where an object name goes.

Thanks @MikeSpreitzer  , this looks better, could you make this part  https://github.com/kubestellar/kubestellar/pull/1597 ?

@pdettori : yes, I updated the doc.
I think the more important question here is whether there is something that remains to be done. If I use Helm to put some workload in a WDS, then Helm put the workload in the WDS. Would I expect Helm to think it also put the same stuff in my WECs? I wouldn't necessarily expect that.


Fix password field label in AsyncBlurValidation example

WOW! That went unnoticed until now?? :facepalm:  :+1: Thanks!

Love the project. Keep up the amazing work!
On Tuesday, January 5, 2016, Erik Rasmussen<EMAIL_ADDRESS>wrote:

WOW! That went unnoticed until now?? :facepalm: [image: :+1:] Thanks!
—
Reply to this email directly or view it on GitHub
https://github.com/erikras/redux-form/pull/503#issuecomment-169155734.


Invalid depfile:flutter

Hi I have the following error. I think everything is correct in the code but I can't find out what this error is coming from
C:\src\flutter\bin\flutter.bat --no-color pub get
Running "flutter pub get" in avex...                             1,329ms
Process finished with exit code 0
C:\Users\User\AndroidStudioProjects\flutter_app\avex>flutter run
Launching lib\main.dart on Redmi Note 8 in debug mode...
Error: Couldn't resolve the package 'flutter_localizations' in 'package:flutter_localizations/flutter_localizations.dart'.
lib/main.dart:8:8: Error: Not found: 'package:flutter_localizations/flutter_localizations.dart'
import 'package:flutter_localizations/flutter_localizations.dart';
       ^
Error: Couldn't resolve the package 'gradient_input_border' in 'package:gradient_input_border/gradient_input_border.dart'.
lib/src/ui/accounts/login/login6/theme_override.dart:2:8: Error: Not found: 'package:gradient_input_border/gradient_input_border.dart'
import 'package:gradient_input_border/gradient_input_border.dart';
       ^
lib/src/ui/accounts/login/login7/theme_override.dart:2:8: Error: Not found: 'package:gradient_input_border/gradient_input_border.dart'
import 'package:gradient_input_border/gradient_input_border.dart';
       ^
lib/main.dart:99:21: Error: The getter 'GlobalCupertinoLocalizations' isn't defined for the class '_MyAppState'.
 - '_MyAppState' is from 'package:avex/main.dart' ('lib/main.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'GlobalCupertinoLocalizations'.
                    GlobalCupertinoLocalizations.delegate,
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/main.dart:100:21: Error: The getter 'GlobalMaterialLocalizations' isn't defined for the class '_MyAppState'.
 - '_MyAppState' is from 'package:avex/main.dart' ('lib/main.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'GlobalMaterialLocalizations'.
                    GlobalMaterialLocalizations.delegate,
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/main.dart:101:21: Error: The getter 'GlobalWidgetsLocalizations' isn't defined for the class '_MyAppState'.
 - '_MyAppState' is from 'package:avex/main.dart' ('lib/main.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'GlobalWidgetsLocalizations'.
                    GlobalWidgetsLocalizations.delegate,
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/src/ui/checkout/order_summary.dart:279:9: Error: No named parameter with the name 'child'.
        child: AlertDialog(
        ^^^^^
/C:/src/flutter/packages/flutter/lib/src/material/dialog.dart:1065:12: Context: Found this candidate, but the arguments don't match.
Future<T?> showDialog<T>({
           ^^^^^^^^^^
lib/src/ui/products/product_detail/product_detail1.dart:135:7: Error: No named parameter with the name 'resizeToAvoidBottomPadding'.
      resizeToAvoidBottomPadding: false,
      ^^^^^^^^^^^^^^^^^^^^^^^^^^
/C:/src/flutter/packages/flutter/lib/src/material/scaffold.dart:1464:9: Context: Found this candidate, but the arguments don't match.
  const Scaffold({
        ^^^^^^^^
lib/src/ui/products/product_detail/product_detail2.dart:131:7: Error: No named parameter with the name 'resizeToAvoidBottomPadding'.
      resizeToAvoidBottomPadding: false,
      ^^^^^^^^^^^^^^^^^^^^^^^^^^
/C:/src/flutter/packages/flutter/lib/src/material/scaffold.dart:1464:9: Context: Found this candidate, but the arguments don't match.
  const Scaffold({
        ^^^^^^^^
lib/src/ui/products/product_detail/product_detail3.dart:142:7: Error: No named parameter with the name 'resizeToAvoidBottomPadding'.
      resizeToAvoidBottomPadding: false,
      ^^^^^^^^^^^^^^^^^^^^^^^^^^
/C:/src/flutter/packages/flutter/lib/src/material/scaffold.dart:1464:9: Context: Found this candidate, but the arguments don't match.
  const Scaffold({
        ^^^^^^^^
lib/src/ui/checkout/place_picker.dart:118:36: Error: Too many positional arguments: 2 allowed, but 3 found.
Try removing the extra positional arguments.
                  SelectPlaceAction(getLocationName(), () => Navigator.of(context).pop(this.locationResult), "Tap to select this location",),
                                   ^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/place_picker-0.9.16/lib/widgets/select_place_action.dart:7:3: Context: Found this candidate, but the arguments don't match.
  SelectPlaceAction(this.locationName, this.onTap);
  ^^^^^^^^^^^^^^^^^
lib/src/ui/products/reviews/write_review.dart:37:9: Error: No named parameter with the name 'resizeToAvoidBottomPadding'.
        resizeToAvoidBottomPadding: false,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
/C:/src/flutter/packages/flutter/lib/src/material/scaffold.dart:1464:9: Context: Found this candidate, but the arguments don't match.
  const Scaffold({
        ^^^^^^^^
lib/src/ui/products/reviews/write_review.dart:191:34: Error: No named parameter with the name 'child'.
    showDialog(context: context, child: AlertDialog(
                                 ^^^^^
/C:/src/flutter/packages/flutter/lib/src/material/dialog.dart:1065:12: Context: Found this candidate, but the arguments don't match.
Future<T?> showDialog<T>({
           ^^^^^^^^^^
lib/src/ui/vendor/ui/products/vendor_detail/vendor_contacts1.dart:212:9: Error: No named parameter with the name 'child'.
        child: AlertDialog(
        ^^^^^
/C:/src/flutter/packages/flutter/lib/src/material/dialog.dart:1065:12: Context: Found this candidate, but the arguments don't match.
Future<T?> showDialog<T>({
           ^^^^^^^^^^
lib/src/ui/accounts/login/social/apple_login.dart:88:7: Error: No named parameter with the name 'child'.
      child: new _SystemPadding(child: new AlertDialog(
      ^^^^^
/C:/src/flutter/packages/flutter/lib/src/material/dialog.dart:1065:12: Context: Found this candidate, but the arguments don't match.
Future<T?> showDialog<T>({
           ^^^^^^^^^^
lib/src/ui/accounts/login/login6/theme_override.dart:59:26: Error: The method 'GradientOutlineInputBorder' isn't defined for the class 'ThemeOverride'.
 - 'ThemeOverride' is from 'package:avex/src/ui/accounts/login/login6/theme_override.dart' ('lib/src/ui/accounts/login/login6/theme_override.dart').
Try correcting the name to the name of an existing method, or defining a method named 'GradientOutlineInputBorder'.
          focusedBorder: GradientOutlineInputBorder(
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/src/ui/accounts/login/login6/theme_override.dart:113:26: Error: The method 'GradientOutlineInputBorder' isn't defined for the class 'ThemeOverride'.
 - 'ThemeOverride' is from 'package:avex/src/ui/accounts/login/login6/theme_override.dart' ('lib/src/ui/accounts/login/login6/theme_override.dart').
Try correcting the name to the name of an existing method, or defining a method named 'GradientOutlineInputBorder'.
          focusedBorder: GradientOutlineInputBorder(
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/src/ui/vendor/ui/products/vendor_detail/write_review.dart:36:9: Error: No named parameter with the name 'resizeToAvoidBottomPadding'.
        resizeToAvoidBottomPadding: false,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
/C:/src/flutter/packages/flutter/lib/src/material/scaffold.dart:1464:9: Context: Found this candidate, but the arguments don't match.
  const Scaffold({
        ^^^^^^^^
lib/src/ui/vendor/ui/products/vendor_detail/write_review.dart:184:34: Error: No named parameter with the name 'child'.
    showDialog(context: context, child: AlertDialog(
                                 ^^^^^
/C:/src/flutter/packages/flutter/lib/src/material/dialog.dart:1065:12: Context: Found this candidate, but the arguments don't match.
Future<T?> showDialog<T>({
           ^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/chewie-0.9.10/lib/src/chewie_player.dart:83:7: Error: No named parameter with the name 'resizeToAvoidBottomPadding'.
      resizeToAvoidBottomPadding: false,
      ^^^^^^^^^^^^^^^^^^^^^^^^^^
/C:/src/flutter/packages/flutter/lib/src/material/scaffold.dart:1464:9: Context: Found this candidate, but the arguments don't match.
  const Scaffold({
        ^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/chewie-0.9.10/lib/src/chewie_player.dart:276:17: Error: The method 'inheritFromWidgetOfExactType' isn't defined for the class 'BuildCon
text'.
 - 'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/framework.dart').
Try correcting the name to the name of an existing method, or defining a method named 'inheritFromWidgetOfExactType'.
        context.inheritFromWidgetOfExactType(_ChewieControllerProvider)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/chewie_audio-1.0.0+1/lib/src/chewie_player.dart:101:17: Error: The method 'inheritFromWidgetOfExactType' isn't defined for the class 'B
uildContext'.
 - 'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/framework.dart').
Try correcting the name to the name of an existing method, or defining a method named 'inheritFromWidgetOfExactType'.
        context.inheritFromWidgetOfExactType(_ChewieAudioControllerProvider)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.18.1/lib/src/picture_provider.dart:50:59: Error: No named parameter with the name 'nullOk'.
        context != null ? Localizations.localeOf(context, nullOk: true) : null,
                                                          ^^^^^^
/C:/src/flutter/packages/flutter/lib/src/widgets/localizations.dart:413:17: Context: Found this candidate, but the arguments don't match.
  static Locale localeOf(BuildContext context) {
                ^^^^^^^^
U
nhandled exception:
FileSystemException(uri=org-dartlang-untranslatable-uri:package%3Aflutter_localizations%2Fflutter_localizations.dart; mes
sage=StandardFileSystem only supports file:* and data:* URIs)
#0      StandardFileSystem.entityForUri (package:front_end/src/api_prototype/standard_file_system.dart:36:7)
#1      asFileUri (package:vm/kernel_front_end.dart:599:37)
#2      writeDepfile (package:vm/kernel_front_end.dart:738:21)
<asynchronous suspension>
#3      FrontendCompiler.compile (package:frontend_server/frontend_server.dart:562:9)
<asynchronous suspension>
#4      starter (package:flutter_frontend_server/server.dart:180:12)
<asynchronous suspension>
#
5      main (file:///C:/b/s/w/ir/cache/builder/src/flutter/flutter_frontend_server/bin/starter.dart:13:24)
<asynchronous suspension>

FAILURE: Build failed with an exception.

* Where:
Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1029

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\src\flutter\bin\flutter.bat'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 28s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done                        29.9s
Exception: Gradle task assembleDebug failed with exit code 1

[√] Flutter (Channel master, 2.1.0-13.0.pre.192, on Microsoft Windows [Version 10.0.19042.867], locale en-US)
• Flutter version 2.1.0-13.0.pre.192 at C:\src\flutter
• Framework revision c0bcb4fc16 (7 days ago), 2021-03-19 16:34:57 -0700
• Engine revision e6db3a275e
• Dart version 2.13.0 (build 2.13.0-149.0.dev)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at C:\Users\User\AppData\Local\Android\sdk
• Platform android-30, build-tools 30.0.2
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Android Studio (version 4.1.0)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[√] Connected device (3 available)
• Redmi Note 8 (mobile) • 11730a78 • android-arm64  • Android 10 (API 29)
• Chrome (web)          • chrome   • web-javascript • Google Chrome 89.0.4389.90
• Edge (web)            • edge     • web-javascript • Microsoft Edge 89.0.774.45
• No issues found!

name: project
description: A new Flutter application.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1
environment:
sdk: ">=2.7.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.2
scoped_model: ^1.0.1
rxdart: ^0.24.0
http: ^0.12.0+2
json_annotation: ^2.0.0
flutter_html: ^1.0.2
flutter_swiper: ^1.1.6
cached_network_image: ^2.3.3
shared_preferences: ^0.5.7+3
country_code_picker: ^1.1.7
url_launcher: ^5.4.11
timeago: ^2.0.26
flutter_rating_bar: ^3.0.1+1
webview_flutter: ^0.3.18+1
font_awesome_flutter: ^8.5.0
share: ^0.6.3+3
place_picker: 0.9.16
location: 2.3.5
fluttertoast: ^3.1.3
flutter_paystack: 1.0.2+1
sign_in_with_apple: ^2.5.2
image_picker: ^0.6.6+4
flutter_webview_plugin: 0.3.10+1
smooth_star_rating: ^1.1.1
flutter_icons: ^1.1.0
firebase_auth: ^0.18.0+1
google_sign_in: ^4.5.1
flutter_facebook_login: ^3.0.0
fab_circular_menu: ^0.1.4
google_fonts: ^0.3.5
stripe_payment: ^1.0.7
network_to_file_image: ^2.3.1
barcode_scan: ^3.0.1
geocoder: ^0.2.1
firebase_core: 0.5.0
firebase_analytics: 6.0.0
firebase_storage: 4.0.0
cloud_firestore: 0.14.0+2
photo_view: ^0.10.2
intro_slider: ^2.3.1
firebase_messaging: 7.0.0
rounded_loading_button: ^1.0.14
pin_code_fields: ^5.2.0
lottie: ^0.7.0+1
webview_cookie_manager: ^1.0.4
characters: ^1.0.0
dev_dependencies:
flutter_test:
sdk: flutter
flutter_native_splash: ^0.1.9
change_app_package_name: ^0.1.2
flutter_launcher_icons: ^0.8.0
flutter_native_splash:
image: lib/assets/images/splash.png
color: "ffffff"
flutter_icons:
android: "launcher_icon"
ios: true
image_path: "lib/assets/images/icon.png"
flutter:
uses-material-design: true
assets:
- lib/assets/images/
- lib/assets/images/intro/
fonts:
- family: MStoreIcons
fonts:
- asset: lib/assets/fonts/Icons/MStoreIcons.ttf

@Khurshidbek18
Looking at the error log, it is pointing to lot of 3rd party plugins you are using and probably related to null safety. Check if the plugins you are using are migrated to null safety or not. If not, then you can run your app with flutter run --no-sound-null-safety and see if you still get same errors or not.

@Khurshidbek18
Looking at the error log, it is pointing to lot of 3rd party plugins you are using and probably related to null safety. Check if the plugins you are using are migrated to null safety or not. If not, then you can run your app with flutter run --no-sound-null-safety and see if you still get same errors or not.

I had the following new error
Launching lib\main.dart on Redmi Note 8 in debug mode...
Running Gradle task 'assembleDebug'...
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/chewie-0.9.10/lib/src/chewie_player.dart:275:17: Error: The method 'inheritFromWidgetOfExactType' isn't defined for the class 'BuildContext'.

'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/framework.dart').
Try correcting the name to the name of an existing method, or defining a method named 'inheritFromWidgetOfExactType'.
context.inheritFromWidgetOfExactType(_ChewieControllerProvider)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/chewie_audio-1.0.0+1/lib/src/chewie_player.dart:101:17: Error: The method 'inheritFromWidgetOfExactType' isn't defined for the class 'BuildContext'.
'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/framework.dart').
Try correcting the name to the name of an existing method, or defining a method named 'inheritFromWidgetOfExactType'.
context.inheritFromWidgetOfExactType(_ChewieAudioControllerProvider)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.18.1/lib/src/picture_provider.dart:50:59: Error: No named parameter with the name 'nullOk'.
context != null ? Localizations.localeOf(context, nullOk: true) : null,
^^^^^^
/C:/src/flutter/packages/flutter/lib/src/widgets/localizations.dart:413:17: Context: Found this candidate, but the arguments don't match.
static Locale localeOf(BuildContext context) {
^^^^^^^^

FAILURE: Build failed with an exception.

Where:
Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1029

What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command 'C:\src\flutter\bin\flutter.bat'' finished with non-zero exit value 1

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Get more help at https://help.gradle.org

BUILD FAILED in 1m 21s
Exception: Gradle task assembleDebug failed with exit code 1

@Khurshidbek18
Looking at the errors, they are all pointing to 3rd party plugins, like chewie and flutter_svg.
For chewie, the method 'inheritFromWidgetOfExactType seems to be deprecated and you may need to use the updated method for it. Reach out in dedicated repo if you any questions for it: https://github.com/brianegan/chewie/issues
For flutter_svg, try to upgrade to latest version which should resolve your issue.
I am going ahead and closing this, as this isn't framework issue. If you disagree, write in comments and I'll reopen it.
Thanks.


Jpeg from Fujifilm

I'm not a Python developer. So my Python may be just misconfigured. But I read a translation of your article https://habr.com/ru/post/471112/ and decided to check a jpeg from Fujifilm X-T1. These jpegs were a reason for some bugs in my PHP code. And yes, it does not work in your code (normal jpeg from Photoshop works).
File: https://dm9.ru/tmp/1.jpg
img = image_to_numpy.load_image_file("D:\\Tmp\\1.jpg")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Program Files\Python36\lib\site-packages\image_to_numpy\src.py", line 84, in load_image_file
    img = PIL.ImageOps.exif_transpose(img)
  File "C:\Program Files\Python36\lib\site-packages\PIL\ImageOps.py", line 549, in exif_transpose     transposed_image.info["exif"] = exif.tobytes()
  File "C:\Program Files\Python36\lib\site-packages\PIL\Image.py", line 3213, in tobytes     return b"Exif\x00\x00" + head + ifd.tobytes(offset)
  File "C:\Program Files\Python36\lib\site-packages\PIL\TiffImagePlugin.py", line 822, in tobytes     data = self._write_dispatch[typ](self, *values)
TypeError: write_undefined() takes 2 positional arguments but 5 were given

File "/home/oyx/anaconda3/envs/detectron/lib/python3.6/site-packages/PIL/TiffImagePlugin.py", line 822, in tobytes
    data = self._write_dispatch[typ](self, *values)
TypeError: write_undefined() takes 2 positional arguments but 5 were given

I get the same error.

It seems to be related to this issue https://github.com/python-pillow/Pillow/issues/4346

You can use the image_to_numpy.exif_transpose(img) function directly.
Here's how to do it

Create an image from the file
pass the image to the exif_transpose() function

img = PIL.Image(file) array = image_to_numpy.exif_transpose(img)


Support for needactivity

It will be nice to have a new directive  needactivity similar to needsequence which generates UML activity diagrams for need objects.
needsequence is good at depicting the sequence of messages flowing from one need object to another, how their messages are exchanged in what time-order.
needactivity is needed for depicting the control flowing from one need to another, especially to depict some conditional structures and loops, swimlanes etc.
The new needuml  can achieve these results but there are usecases where the diagrams need to be auto-generated like with a needflow.

An immediate usecase for this would be process-as-code where process artifacts can be modelled in sphinx-needs and activity diagrams autogenerated similar to the ones with tools like Methodpark Stages (https://www.methodpark.de/stages.html).
For example,
Needs Input
.. wp:: Example Workproduct 1
   :id: WP_001
   :responsibility: RO_001, RO_002

   This is an example workproduct.

.. role:: Creator
   :id: RO_001

   Creates the workproduct.

.. role:: Approver
   :id: RO_002

   Approves the workproduct.

.. activity:: Create Workproduct
   :id: AC_001
   :responsibility: RO_001

.. activity:: Approve Workproduct
   :id: AC_002
   :responsibility: RO_002

Example Activity Diagram

The example is not complete and does not contain:

all information within needs required to generate the diagram
all information expected in the diagram

I am hoping to refine this issue with details soon.

@twodrops: How was the status with this feature request.
I think we wanted to close it, as it can be done by needuml.
Please reopen, if I'm wrong.

I am re-opening this as this feature will be needed in 2023 and all features cannot be handled with needuml. Will add details soon.


[Examples] update textures mouse painting

Added controls to make it more clear

@CrackedPixel I'm afraid I prefer the version with no controls, looks more clean.


Feature Request: Allow querying the bot for current player count / triggering leaderboard on demand

It would be great if you could ask the discord bot how many players are currently connected. This info already exists, since it shows with the leaderboard, but it would be great to have on-demand.
For example: When someone types "!stats" in Discord, the bot would respond with
Active Players
Online now: 0
Players today: 3
This week: 6
All time: 6

This feature would depend on Discord Connector having an actual bot presence. Which is a future feature, but not currently possible. I definitely want to add this when we get to that point!

This would be great! At the moment everyone in my discord is complaining about "spam" from the bot. Would be great with just on demand info.
Another cool bot feature would be if one could send command to the bot. Much alike the minecraft DiscordSRV which forwards the console to a channel and also accepts commands.


[Bug]: CRUD pages display table column error on browser console

Is there an existing issue for this?

[X] I have searched the existing issues

Description
CRUD generated pages are displaying a parse error for table widget
Steps To Reproduce

Generate a page via CRUD, refresh page and observe the console

Public Sample App
No response
Version
Cloud

Unless it's an error a user faces, we can ignore it


run dep ensure

R: @jmacd @JulianGriggs
Summary of changes

Ran dep ensure with v0.5.0 (https://github.com/golang/dep/releases/tag/v0.5.0) of dep.
Updated prune options to remove unused packages and tests.
vendor-ed in dependencies and committed them to the repo.

Should we document which version of dep we are using? A lot of these changes look like they are the result of a dep upgrade.

@JulianGriggs Good point. I added it to the description.

Maybe we can add it to the README as well? Also, do you have any idea why we didn't have these vendored in already?

I don't know what the context is behind us not vendor-ing.
I have seen quite a few public repos quoting the Go spec.

Go 1.6 includes support for using local copies of external dependencies to satisfy imports of those dependencies, often referred to as vendoring.

which suggests we should vendor if we want to allow people to go get our code.

Closing for now, it might make the code a little better but this isn't solving a direct issue.


Juneteenth is a NYSE holiday only starting from 2022 and not 2021

The NYSE and other markets have recognized Juneteenth only starting 2022, however when running the following code it recognizes 2021 Juneteenth as a NYSE holiday:
import holidays
from datetime import date

nyse_holidays = holidays.NYSE()
print(date(2021, 6, 18) in nyse_holidays)

Expected Output:
False
Actual Output:
True

@roy-themachine, thank you for your suggestion! It will be fixed in next release.


Reduce aliasing effect in Neuropixels GUIs when fully zoomed out

In Neuropixels GUIs, when the probe is fully zoomed out there is some aliasing occurring where contacts do not appear to be the same size. This is probably an effect of using ZedGraph, but there might be some options that can reduce this effect. Look into ZedGraph drawing options as well as general WinForms controls options that could help with this.

Good enough for now.


[BUG] Applio v3.2.1 keeps re-download chinese-hubert-large and training is bugged

Before You Report a Bug
Reporting a bug is essential for us to improve our service, but we need detailed information to address the issue effectively. Since every computer setup is unique, there can be various reasons behind a bug. Before reporting, consider potential causes and provide as much detail as possible to help us understand the problem.
Bug Description

Applio keeps re-download chinese-hubert-large when extracting even already downloaded in embedders folder.
Devs should also check japanese-hubert-base.
use Embedder Model chinese-hubert-large to train is bugged, training time is blazing fast 1epoch/1sec, it's abnormal.

Steps to Reproduce
Outline the steps to replicate the issue:
N/A
Expected Behavior

Applio should detect chinese-hubert-large.pt in folder and skip executing download the same file again.
Training normally should be slow, like 1epoch/1min on my machine.

Assets
N/A
Desktop Details:

Operating System: Windows 11
Browser: Firefox

Additional Context
N/A

At the same time, the index file cannot be saved. Considering the training speed, the training should not be completed.

for
https://github.com/hpx502766238/Applio/blob/da705bec26e966d66de25f40a719c0a2babea554/rvc/lib/utils.py
#####################
if embedder_model in online_embedders:
model_path = embedding_list[embedder_model]
url = online_embedders[embedder_model]
print(f"\nDownloading {url} to {model_path}...")
wget.download(url, out=model_path)
#####################
change to ：
if embedder_model in online_embedders:  # 如果 embedder_model 在在线模型列表
if not os.path.exists(model_path):  # 检查模型文件是否已经存在于指定路径
url = online_embedders[embedder_model]
print(f"\nDownloading {url} to {model_path}...")
wget.download(url, out=model_path)  # 开始下载
else:
model_path = embedding_list["contentvec"]

I also met a training problem with  chinese-hubert-large in v3.2.2,But the error message is "An error occurred processing xxx.wav: "LayerNormKernelImpl" not implemented for 'Half'"