How to Maintain Strong reference to an object.

Hi ,
I am using ObjectMapper along with AlamofireObjectMapper to parse JSON responses into objects.
My requirement is to retain the values of certain variable in the object while other variables are assigned values obtained from the server call.
Ex:
class Person: NSObject , Mappable {
   var firstName:String!
   var lastName:String!
   var email:String!
   var phoneNo:String!
   var password: String!
   var authToken:String!

   required init?(_ map: Map){

    }

  public func mapping(map: Map) {
    firstName                <- map["firstName"]
    lastName                <- map["lastName"]
    email                      <- map["email"]
    phoneNo                 <- map["phoneNo"]
    authToken            <- map["X-AUTH-TOKEN"]
   }
}

Here when user performs login , i save his email and password into the Person object .
And the server call returns his other details which are with the help of AlamofireObjectMapper converted to Person object, but this clears his password and email properties.(set to nil)
So how do i save the new incoming details without loosing the existing details(overwriting if necessary)
NOTE: This is just an example, my class has many more properties which get populated in different calls which happen in different flows of the app.
Previously, i was just returning a strong reference to the object to achieve this as follows:
public class func newInstance() -> Mappable {
    return SharedConstants.sharedInstance.user
}

Hi @rajavikram, using AlamofireObjectMapper, I don't believe there is any way to do this yet (although it sounds like a good feature which I will consider adding).
If you use ObjectMapper separately to map your JSON, you can use the following function to map JSON to an existing object:
public func map(JSON: AnyObject?, toObject object: N) -> N


Fix typo in pack.ps1.

This PR fixes a one character typo in pack.ps1 that causes PowerShell to exit when either Docker or Python build steps are disabled, as the \ command is not defined.

Thanks for the review, @rmshaffer!


WIP: MAISTRA-1682 add support for v2 profiles

Also includes MAISTRA-1575 refine SMCP v2 structure which includes changes to make working with the new structure easier (based on updating the profiles to v2).

I needed to regenerate the CRDs, so I rolled them back to v1beta1 in this PR.

I've verified that oc apply works with the trimmed down SMCP CRD.


Change verbose mode on itunesconnect to hide pass

Without verbose, the plugin doesn't show much data if something goes wrong.
With verbose mode, the itunesconnect plugin was echoing the account's password.
On a CI environment, it's important to have debug output but I'd rather keep my password hidden.

:+1: Need this.

Thanks, @duhanebel! Merged with 965c74a.


Improve the mobile experience

Some pages and components need to be adapted for mobile

Considered good enough for now - will wait on user feedback for further improvements


TextPainter is not working well for WidgetSpan in web

TextPainter is not wroking well for WidgetSpan higher than v1.8.5(Not Exactly)

lower than v1.8.5

[x]  TextPainter .getPositionForOffset
[ ]  TextPainter .getOffsetForCaret
[x]  TextPainter .getBoxesForSelection

higher than v1.8.5

[ ]  TextPainter .getPositionForOffset
[ ]  TextPainter .getOffsetForCaret
[x]  TextPainter .getBoxesForSelection

This issue is refer to https://github.com/flutter/flutter/issues/38474.
I'm look forward to fixing this issue asap, it's important to us who want to select WidgetSpan.
Steps to Reproduce
click button to print info. please run with attached files ( paragraph.dart and rich_text.dart are same as official but public textPainter from RenderParagraph)
lib.zip

code sample
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'rich_text.dart' as rich_text;
import 'paragraph.dart' as paragraph;

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'Find Second WidgetSpan'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);
  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  GlobalKey key = GlobalKey();
  String _printS = "";

  @override
  void initState() {
    super.initState();
  }

  void _print() {
    setState(() {
      final textPainter =
          (key.currentContext.findRenderObject() as paragraph.RenderParagraph)
              .textPainter;
      //try to find TextPosition of second WidgetSpan
      final TextPosition textPosition =
          textPainter.getPositionForOffset(Offset(150.0, 50.0));
      //try to find position of second WidgetSpan
      final Offset offset = textPainter.getOffsetForCaret(
          TextPosition(offset: 1, affinity: TextAffinity.upstream), Rect.zero);
      //try to find selection boxes of second WidgetSpan
      final List<TextBox> boxes = textPainter
          .getBoxesForSelection(TextSelection(baseOffset: 1, extentOffset: 2));

      _printS =
          "TextPosition：${textPosition.offset} \n\nOffset: $offset \n\nSelectionTextBox: ${boxes.first}";
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        // Here we take the value from the MyHomePage object that was created by
        // the App.build method, and use it to set our appbar title.
        title: Text(widget.title),
      ),
      body: Column(
        children: <Widget>[
          Container(
            height: 200.0,
            child: Text(_printS),
          ),
          Expanded(
            child: rich_text.RichText(
              key: key,
              text: TextSpan(children: <InlineSpan>[
                WidgetSpan(
                    child: Container(
                  color: Colors.red,
                  width: 100.0,
                  height: 100.0,
                )),
                WidgetSpan(
                    child: Container(
                  color: Colors.blue,
                  width: 100.0,
                  height: 100.0,
                )),
                WidgetSpan(
                    child: Container(
                  color: Colors.yellow,
                  width: 100.0,
                  height: 100.0,
                )),
              ]),
            ),
          )
        ],
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: _print,
        tooltip: 'Print',
        child: Icon(Icons.add),
      ), // This trailing comma makes auto-formatting nicer for build methods.
    );
  }
}

Result

expected

TextPosition：1
Offset: Offset(100.0, 0.0)
SelectionTextBox: TextBox.fromLTRBD(100.0, 0.0, 200.0, 100.0, TextDirection.ltr)

actual

TextPosition：0
Offset: Offset(0.0, 0.0)
SelectionTextBox: TextBox.fromLTRBD(100.0, 0.0, 200.0, 100.0, TextDirection.ltr)
flutter doctor -v
[√] Flutter (Channel stable, v1.12.13+hotfix.5, on Microsoft Windows [Version 10.0.18362.535], locale zh-CN)
    • Flutter version 1.12.13+hotfix.5 at D:\Flutter\flutter_source\stable
    • Framework revision 27321ebbad (9 days ago), 2019-12-10 18:15:01 -0800
    • Engine revision 2994f7e1e6
    • Dart version 2.7.0

[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at D:\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 28.0.3
    • ANDROID_HOME = D:\Android\sdk
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
    • All Android licenses accepted.

[√] Android Studio (version 3.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 29.0.1
    • Dart plugin version 173.4700
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)

[√] VS Code (version 1.41.0)
    • VS Code at C:\Users\eastmoney\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.7.1

[√] Connected device (1 available)
    • MI 6 • 5a4b233b • android-arm64 • Android 8.0.0 (API 26)

cc @chunhtai

Issue still exist

flutter doctor -v
[✓] Flutter (Channel dev, v1.18.0, on Mac OS X 10.15.4 19E266, locale en-GB)
    • Flutter version 1.18.0 at /Users/taha/Code/flutter_dev
    • Framework revision 8f7327f83a (2 days ago), 2020-04-06 22:11:01 -0400
    • Engine revision 49891e0653
    • Dart version 2.8.0 (build 2.8.0-dev.20.0 1210d27678)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/taha/Code/sdk
    • Platform android-29, build-tools 29.0.3
    • ANDROID_HOME = /Users/taha/Code/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_212-release-1586-b4-5784211)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.4, Build version 11E146
    • CocoaPods version 1.9.1

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

[✓] Android Studio (version 3.6)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 45.0.1
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build
      1.8.0_212-release-1586-b4-5784211)

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

[✓] Connected device (5 available)
    • SM M305F   • 32003c30dc19668f                     • android-arm64  •
      Android 10 (API 29)
    • iPhone 11  • 41EB2A85-7EB4-4FD2-8978-FBBE2A681D74 • ios            •
      com.apple.CoreSimulator.SimRuntime.iOS-13-4 (simulator)
    • macOS      • macOS                                • darwin-x64     • Mac
      OS X 10.15.4 19E266
    • Chrome     • chrome                               • web-javascript •
      Google Chrome 81.0.4044.92
    • Web Server • web-server                           • web-javascript •
      Flutter Tools

• No issues found!

Any update on this issue?

Please use thumb up on the original post to bump up the priority

I know fixing this is one step toward supporting widget span in selectable text. I would like to know if there is any other use case besides the selectable text is blocked on this issue? I asking this because I plan to fix this issue and widget span support in selectable text together, but that might take a while since i still have gotten enough feedback to proceed. (See https://github.com/flutter/flutter/issues/38474#issuecomment-617916647)

Still reproducible on Flutter 1.24.0-8.0.pre.229 on mobile.

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

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

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

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);
  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

final text = '01';

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    final richTextKey = GlobalKey();
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: RichText(
            text: TextSpan(
              children: [
                WidgetSpan(child: Container()),
                TextSpan(text: text),
              ],
            ),
            key: richTextKey),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: () {
          final RenderParagraph paragraph =
              richTextKey.currentContext.findRenderObject();
          print(
              paragraph.getOffsetForCaret(TextPosition(offset: 0), Rect.zero));
          print(
              paragraph.getOffsetForCaret(TextPosition(offset: 1), Rect.zero));
          print(
              paragraph.getOffsetForCaret(TextPosition(offset: 2), Rect.zero));
          print(
              paragraph.getOffsetForCaret(TextPosition(offset: 3), Rect.zero));
        },
        tooltip: 'Increment',
        child: Icon(Icons.add),
      ),
    );
  }
}

On Flutter 1.24.0-8.0.pre.229, clicking the button would print:
I/flutter (11614): Offset(0.0, 3.0)
I/flutter (11614): Offset(0.0, 2.6)
I/flutter (11614): Offset(7.9, 2.6)
I/flutter (11614): Offset(0.0, 0.0)

If comment out the line with the WidgetSpan, the result would be as expected:
I/flutter (11614): Offset(0.0, -0.4)
I/flutter (11614): Offset(7.9, -0.4)
I/flutter (11614): Offset(15.7, -0.4)
I/flutter (11614): Offset(0.0, 0.0)

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

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

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

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);
  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

final text = '01';

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    final richTextKey = GlobalKey();
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: RichText(
            text: TextSpan(
              children: [
                WidgetSpan(child: Container()),
                TextSpan(text: text),
              ],
            ),
            key: richTextKey),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: () {
          final RenderParagraph paragraph =
              richTextKey.currentContext.findRenderObject();
          print(
              paragraph.getOffsetForCaret(TextPosition(offset: 0), Rect.zero));
          print(
              paragraph.getOffsetForCaret(TextPosition(offset: 1), Rect.zero));
          print(
              paragraph.getOffsetForCaret(TextPosition(offset: 2), Rect.zero));
          print(
              paragraph.getOffsetForCaret(TextPosition(offset: 3), Rect.zero));
        },
        tooltip: 'Increment',
        child: Icon(Icons.add),
      ),
    );
  }
}

flutter doctor -v
[✓] Flutter (Channel stable, 1.22.5, on macOS 11.1 20C69 darwin-x64, locale en-GB)
    • Flutter version 1.22.5 at /Users/tahatesser/Code/flutter_stable
    • Framework revision<PHONE_NUMBER> (6 weeks ago), 2020-12-10 11:54:40 -0800
    • Engine revision ae90085a84
    • Dart version 2.10.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Volumes/Extreme/SDK
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = /Volumes/Extreme/SDK
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Volumes/Extreme/Xcode.app/Contents/Developer
    • Xcode 12.3, Build version 12C33
    • CocoaPods version 1.10.1

[!] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

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

[✓] Connected device (2 available)
    • RMX2001 (mobile)     • EUYTFEUSQSRGDA6D          • android-arm64 • Android 10 (API 29)
    • Taha’s iPad (mobile) • 00008020-000255113EE8402E • ios           • iOS 14.3

! Doctor found issues in 1 category.

[✓] Flutter (Channel master, 1.26.0-2.0.pre.419, on macOS 11.1 20C69 darwin-x64, locale en-GB)
    • Flutter version 1.26.0-2.0.pre.419 at /Users/tahatesser/Code/flutter_master
    • Framework revision 913d5933c1 (4 hours ago), 2021-01-19 22:34:03 -0800
    • Engine revision b58dbc88fc
    • Dart version 2.12.0 (build 2.12.0-240.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Volumes/Extreme/SDK
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = /Volumes/Extreme/SDK
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Volumes/Extreme/Xcode.app/Contents/Developer
    • Xcode 12.3, Build version 12C33
    • CocoaPods version 1.10.1

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

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

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

[✓] Connected device (4 available)
    • RMX2001 (mobile)     • EUYTFEUSQSRGDA6D          • android-arm64  • Android 10 (API 29)
    • Taha’s iPad (mobile) • 00008020-000255113EE8402E • ios            • iOS 14.3
    • macOS (desktop)      • macos                     • darwin-x64     • macOS 11.1 20C69 darwin-x64
    • Chrome (web)         • chrome                    • web-javascript • Google Chrome 87.0.4280.141

• No issues found!

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

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

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

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);
  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

final text = '01';

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    final richTextKey = GlobalKey();
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: RichText(
            text: TextSpan(
              children: [
                WidgetSpan(child: Container()),
                TextSpan(text: text),
              ],
            ),
            key: richTextKey),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: () {
          final RenderParagraph paragraph =
              richTextKey.currentContext.findRenderObject();
          print(
              paragraph.getOffsetForCaret(TextPosition(offset: 0), Rect.zero));
          print(
              paragraph.getOffsetForCaret(TextPosition(offset: 1), Rect.zero));
          print(
              paragraph.getOffsetForCaret(TextPosition(offset: 2), Rect.zero));
          print(
              paragraph.getOffsetForCaret(TextPosition(offset: 3), Rect.zero));
        },
        tooltip: 'Increment',
        child: Icon(Icons.add),
      ),
    );
  }
}

flutter doctor -v
[✓] Flutter (Channel stable, 1.22.5, on macOS 11.1 20C69 darwin-x64, locale en-GB)
    • Flutter version 1.22.5 at /Users/tahatesser/Code/flutter_stable
    • Framework revision<PHONE_NUMBER> (6 weeks ago), 2020-12-10 11:54:40 -0800
    • Engine revision ae90085a84
    • Dart version 2.10.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Volumes/Extreme/SDK
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = /Volumes/Extreme/SDK
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Volumes/Extreme/Xcode.app/Contents/Developer
    • Xcode 12.3, Build version 12C33
    • CocoaPods version 1.10.1

[!] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

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

[✓] Connected device (2 available)
    • RMX2001 (mobile)     • EUYTFEUSQSRGDA6D          • android-arm64 • Android 10 (API 29)
    • Taha’s iPad (mobile) • 00008020-000255113EE8402E • ios           • iOS 14.3

! Doctor found issues in 1 category.

[✓] Flutter (Channel master, 1.26.0-2.0.pre.419, on macOS 11.1 20C69 darwin-x64, locale en-GB)
    • Flutter version 1.26.0-2.0.pre.419 at /Users/tahatesser/Code/flutter_master
    • Framework revision 913d5933c1 (4 hours ago), 2021-01-19 22:34:03 -0800
    • Engine revision b58dbc88fc
    • Dart version 2.12.0 (build 2.12.0-240.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Volumes/Extreme/SDK
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = /Volumes/Extreme/SDK
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Volumes/Extreme/Xcode.app/Contents/Developer
    • Xcode 12.3, Build version 12C33
    • CocoaPods version 1.10.1

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

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

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

[✓] Connected device (4 available)
    • RMX2001 (mobile)     • EUYTFEUSQSRGDA6D          • android-arm64  • Android 10 (API 29)
    • Taha’s iPad (mobile) • 00008020-000255113EE8402E • ios            • iOS 14.3
    • macOS (desktop)      • macos                     • darwin-x64     • macOS 11.1 20C69 darwin-x64
    • Chrome (web)         • chrome                    • web-javascript • Google Chrome 87.0.4280.141

• No issues found!

it seems that it's fixed in stable 3.3.0

This is no longer reproducible on latest master 3.7 and stable 3.3

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({Key? key, required this.title}) : super(key: key);
  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

const text = '01';

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    final richTextKey = GlobalKey();
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: RichText(
            text: TextSpan(
              children: [
                WidgetSpan(child: Container()),
                const TextSpan(text: text),
              ],
            ),
            key: richTextKey),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: () {
          final RenderParagraph paragraph =
              richTextKey.currentContext!.findRenderObject() as RenderParagraph;
          print(paragraph.getOffsetForCaret(
              const TextPosition(offset: 0), Rect.zero));
          print(paragraph.getOffsetForCaret(
              const TextPosition(offset: 1), Rect.zero));
          print(paragraph.getOffsetForCaret(
              const TextPosition(offset: 2), Rect.zero));
          print(paragraph.getOffsetForCaret(
              const TextPosition(offset: 3), Rect.zero));
        },
        tooltip: 'Increment',
        child: const Icon(Icons.add),
      ),
    );
  }
}

logs
Performing hot restart...                                           89ms
Restarted application in 89ms.
Offset(0.0, 0.0)
Offset(0.0, 15.6)
Offset(7.9, 15.6)
Offset(15.7, 15.6)

without WidgetSpan
Performing hot restart...                                        1,361ms
Restarted application in 1,361ms.
Offset(0.0, -0.4)
Offset(7.9, -0.4)
Offset(15.7, -0.4)
Offset(0.0, 0.0)

flutter doctor -v (mac)
[✓] Flutter (Channel master, 3.7.0-3.0.pre.33, on macOS 12.6 21G115 darwin-arm64, locale en-IN)
    • Flutter version 3.7.0-3.0.pre.33 on channel master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision<PHONE_NUMBER> (38 minutes ago), 2022-12-05 18:27:21 -0800
    • Engine revision a309d239c4
    • Dart version 2.19.0 (build 2.19.0-463.0.dev)
    • DevTools version 2.20.0
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly
      to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc4)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0-rc4
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

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

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

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

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

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

[✓] Connected device (3 available)
    • iPhone 12 Pro (mobile) • 026D5789-9E78-4AD5-B1B2-3F8D4E7F65E4 • ios            •
      com.apple.CoreSimulator.SimRuntime.iOS-14-5 (simulator)
    • macOS (desktop)        • macos                                • darwin-arm64   • macOS 12.6 21G115 darwin-arm64
    • Chrome (web)           • chrome                               • web-javascript • Google Chrome 108.0.5359.94

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

• No issues found!

[✓] Flutter (Channel stable, 3.3.9, on macOS 12.6 21G115 darwin-arm, locale en-IN)
    • Flutter version 3.3.9 on channel stable at /Users/mahesh/Development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b8f7f1f986 (24 hours ago), 2022-11-23 06:43:51 +0900
    • Engine revision 8f2221fbef
    • Dart version 2.18.5
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc4)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0-rc4
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

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

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

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

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

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

[✓] Connected device (3 available)
    • iPhone 12 Pro (mobile) • 026D5789-9E78-4AD5-B1B2-3F8D4E7F65E4 • ios            •
      com.apple.CoreSimulator.SimRuntime.iOS-14-5 (simulator)
    • macOS (desktop)        • macos                                • darwin-arm64   • macOS 12.6 21G115 darwin-arm
    • Chrome (web)           • chrome                               • web-javascript • Google Chrome 107.0.5304.110

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

• No issues found!


Add support for interactive password input.

Some passwords may contain ':', '@', '/' and other special characters. Also, passwords in url may cause secure issues.
It would be nice to have an option like -W in psql to input passwords interactively.

It's on my list to do.

This will be coming very soon. And roughly support for 90% of all the psql command line options. Bear with me.

Btw, the initial support for this has been committed.


please provide checksum files on Bitbucket

Hey!
Please provide the SHA256 checksums for your releases as files on Bitbucket.
Additionally, please sign them.
This allows to automate download mirroring using Bitbucket as the primary trusted source.
(Given the the number of wild mirrors, because of Bitbucket it's already a bit late. Ref. #13953)
It also allows to build automated installers using downloads from mirrors, without the inconvenient need to grab the checksums from your readme and updating the checksums in the installers with every new release.
In case Bitbucket builds the checksums for uploaded files automatically and exposes them via an API endpoint, please point me to it and include the link in the checksum section of your readme.
Thank you in advance.
Best, Jens

If you have the checksum file handy, I'll be happy to place it right away on Bitbucket downloads.
As for the signing, please track it at #13019.
Thanks!


Deep nested template strings

Hi,
just came over to report an issue with the linting of deep nested template strings:
const foo = `${someVariable || `r${something + 1}`} bar`

Jshint will refuse to accept that syntax that despite it being valid ES6 (unexpected '`').

Which version of JSHint are you using? This has been fixed in 2.6.1 (3da1eaf14398dc9b178e6c678b5e4fb09afef2d5)

Which version of JSHint are you using? This has been fixed in 2.6.1 (3da1eaf14398dc9b178e6c678b5e4fb09afef2d5)

It seems Jshint Gutter, the inline-linter for sublime text is shipping with 2.5.1. I'll upgrade locally until they go with a modern version of jshint.

It seems Jshint Gutter, the inline-linter for sublime text is shipping with 2.5.1. I'll upgrade locally until they go with a modern version of jshint.


Add tests for pulse visualization module parameters

What is the expected enhancement?
We should have tests for pulse visualization methods that test keyword parameters such as scale.

Hi, is anyone working on this issue ?

@taalexander if you still would like some help on this, I'd like to work on it.

The need for this has been removed with @nkanazawa1989 #4643. Thank you for your interest though.

Got it, my pleasure.
Yeah, I have been going through the list of "good first issues"... is there any other open issue you'd recommend, where I could help? Maybe a high priority one?

This one may be a good first issue and is a high-priority to me https://github.com/Qiskit/qiskit-terra/issues/4872.

Sounds good to me, I can take care of it!


bug(mat-selection-list): Color attribute on (mat-list-option/mat-icon - matListItemIcon) is ignored on hover.

Is this a regression?

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

The previous version in which this bug was not present was
No response
Description
A mat-icon, located inside a mat-list-option, that has the matListItemIcon directive and has color="accent" (or other theming), loses its color when hovered.
Example:
<mat-selection-list *ngIf="pullRequests" [multiple]="false" [hideSingleSelectionIndicator]="true">
    <mat-list-option *ngFor="let pr of pullRequests" (click)="navTo(pr.html_url)">
        <mat-icon matListItemIcon color="accent">play_arrow</mat-icon>
        {{pr.user.login}}
        {{pr.title}}
    </mat-list-option>
</mat-selection-list>

Reproduction
Steps to reproduce:

Add color="accent" to a mat-selection-list > mat-list-option > mat-icon (matListItemIcon)
Hover the icon.
Accent color goes away and is replaced by a default color.

Expected Behavior
I would expect the accent color on mat-icon to stay when it is hovered. If the issue here is that for accessibility, hovered items need to visually identify, the background of the mat-list-option itself is already doing that.
Actual Behavior
Theme colors are lost when the mat-list-option is hovered
Environment

Angular: 15
CDK/Material: 15
Browser(s): Chrome
Operating System (e.g. Windows, macOS, Ubuntu): Windows

I've found that a workaround is to use matListItemAvatar instead of matListItemIcon. I am not sure if this is the intended functionality.
<mat-icon matListItemAvatar color="accent">play_arrow</mat-icon>
The icon keeps its color on hover this way.

You've saved me, where do you find it? It is referenced in the docs?

You've saved me, where do you find it? It is referenced in the docs?

matListItemAvatar and matListItemIcon are both in the docs.

I've created a stackblitz reproduction for this issue: https://stackblitz.com/edit/c6p3f6?file=src%2Fapp%2Flist-overview-example.html,src%2Fapp%2Flist-overview-example.ts

Any update on this? The matListItemAvatar work around gets the color back, but it's definitely not it's intended use.

Any update on this? The matListItemAvatar work around gets the color back, but it's definitely not it's intended use.
Same question.

I was forced to modify .css, the ItemAvatar makes a circle so it was not useful for me

It seems like matListItemIcon directive is overwriting the style of mat-icon component. The following example works fine.
Do not add the matListItemIcon to mat-icon. Wrap it with span element and put the directive there instead

          <mat-icon color="primary">done</mat-icon>

Here is the complete mat-nav-list example.
 <mat-nav-list>                         {{ p.title }}         {{ p.meta }}                    <mat-icon             color="primary"             [routerLink]="['/']"             routerLinkActive="mat-warn"             >{{ p.icon }}</mat-icon           >                  {{ p.label }}            </mat-nav-list>


adding wrbsc

@lhoestq thanks for the comments! Should be fixed in the latest commit, I assume the CI errors are unrelated.

merging since the CI is fixed on master


WIP: Rust implementation

While having a deeper look at flatgeobuf, I started a Rust port. Don't know how much time I can invest, but flatbuf generated code looks already good so far.

Great stuff! It will be fun to take a deeper look at this.

This is now ready for a first review.
Things I would like to do next:

Idiomatic reader implementation
Rust implementation of packed R-tree index
Library documentation
More examples/tests
Publication on crates.io

More plans:

Async http reader

Another plan I forgot about:

Compiling to WASM

@bjornharrtell I've sent you a mail to your gmail adress to find a date for talking about these plans.

Compiling to WASM sounds fun especially to see how it would benchmark against the native TypeScript implementation.

A first version of zero-copy geometry and feature readers are now implemented. What would be a good benchmark? Maybe a GeoJSON writer implementation to compare with the C++ impementation?

See you are making good progress @pka, nice to see! :)
About Packed Hilbert R-tree vs OMT (vs STR?), I'm aware of that paper but I lack reference implementations of it and real world experience/comparison to alternatives. The only thing I'm certain of is that they are more complex to implement and slower to build the tree.
However, the main reason I went with Packed Hilbert R-tree is because the implementation by @mourner that I've based mine on is the first and only R-tree implementation I've found that I could understand. I find it simple, beautiful and performant. :)
https://github.com/mourner/flatbush/issues/8 is also an interesting observation.

I'm fine with your desision. What came to my mind was the possible need for other kind of indices, like fulltext or key/value indices. Maybe the FGB format could have a header section allowing multiple indices with a type declaration and offsets to skip them.

I have also thought about other types of indices but came to the conclusion that it adds to much complexity and essentially is a step too far on the way to reimplement a database engine so my thinking is that GeoPackage and/or PostGIS fit that space already.
If you have a dataset where spatial index is secondary to a column index, you should probably split it up. (unless you use PostGIS where you might be better served by a combined geometry+column(s) index)

With that said, the header could perhaps be extended a bit to allow for some custom/extra sections. (also required for https://github.com/bjornharrtell/flatgeobuf/issues/43)

About Packed Hilbert R-tree vs OMT (vs STR?), I'm aware of that paper but I lack reference implementations of it and real world experience/comparison to alternatives.

@bjornharrtell RBush implements an improved variation of OMT for bulk loading, but it's pretty involved — for static indices, Packed Hilbert is much simpler and more elegant, and fits the case perfectly.

There are a few criterion benches included now. First measurements on my laptop (Intel Core i7-10510U, SSD):

Read all features from countries.fgb and write them to a GeoJSON file: 28ms

time ogr2ogr -f GeoJSON -oo VERIFY_BUFFERS=NO /tmp/countries-ogr.json ../../test/data/countries.fgb: 80ms

Read all features from countries.fgb and write GeoJSON to /dev/null: 3.8ms

time ogr2ogr -f GeoJSON -oo VERIFY_BUFFERS=NO /dev/null ../../test/data/countries.fgb: 55ms

So pure file writing time seems to be 25ms in both cases. The comparison is not fair because ogr2ogr does more initialization like command line parsing, format detection, etc., but shows that the Rust implementation is not particularly slow, at least.
Recommendations for benchmark improvements are welcome.

By using BufWriter the time for a full countries.fgb read (201KB) + geojson write (253KB) goes down to 4ms which is 20 times faster than ogr2ogr!
After the recent API cleanups, the Rust implementation is now ready to merge.

Great work @pka. I've looked through the code once again and it looks good. I've not had time to play with it but at least I can understand it. :) Will merge.


Silence max-classes-per-file for eslint

Codecov Report

Merging #15025 (980fa1f) into main (c1035cd) will not change coverage.
The diff coverage is 0%.

@@          Coverage Diff           @@
##            main   #15025   +/-   ##
======================================
  Coverage     65%      65%
======================================
  Files        558      558
  Lines      26226    26226
  Branches    3717     3717
======================================
  Hits       17152    17152
  Misses      8381     8381
  Partials     693      693

Impacted Files
Coverage Δ

src/client/activation/common/cancellationUtils.ts
13% <ø> (ø)

...s/discovery/locators/services/KnownPathsService.ts
48% <0%> (ø)

.../discovery/locators/services/currentPathService.ts
90% <ø> (ø)

...overy/locators/services/globalVirtualEnvService.ts
93% <ø> (ø)

...ry/locators/services/workspaceVirtualEnvService.ts
81% <ø> (ø)


schemamap: 0.3.0 -> 0.4.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/schemamap/schemamap/releases.
meta.description for schemamap is: Instant batch data import for Postgres
meta.homepage for schemamap is: https://schemamap.io
meta.changelog for schemamap is: https://github.com/schemamap/schemamap/releases/tag/v0.4.0
Updates performed

Rust version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.4.0 with grep in /nix/store/7214ak9dkfh204mr6d16mbyv0jsn8c10-schemamap-0.4.0
found 0.4.0 in filename of file in /nix/store/7214ak9dkfh204mr6d16mbyv0jsn8c10-schemamap-0.4.0

Rebuild report (if merged into master) (click to expand)

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath

schemamap

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/7214ak9dkfh204mr6d16mbyv0jsn8c10-schemamap-0.4.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A schemamap https://github.com/r-ryantm/nixpkgs/archive/640c1b9b526bd8ee751dd73e66a0535e28d6336f.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/640c1b9b526bd8ee751dd73e66a0535e28d6336f#schemamap

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/7214ak9dkfh204mr6d16mbyv0jsn8c10-schemamap-0.4.0
ls -la /nix/store/7214ak9dkfh204mr6d16mbyv0jsn8c10-schemamap-0.4.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

schemamap

Maintainer pings
cc @thenonameguy for testing.

[!TIP]
As a maintainer, if your package is located under pkgs/by-name/*, you can comment @NixOS/nixpkgs-merge-bot merge to automatically merge this update using the nixpkgs-merge-bot.

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

@NixOS/nixpkgs-merge-bot merge


Env not added to settings

Hello,
First, thanks for the cool docker. i have used it for some time, but on a server reinstall, i started my usual docker-compose and no Env where added to setting. Specifically, the "AdminPassword and "ServerPassword" where not in my .ini.
So free login to the server, no access to the server config and worst of all, no nudity...! I modified the .ini directly and all is well but the Environnment Variables config from docker-compose seems to be broken.

Hey, i don't know if you still need this but i might have found the solution:
In the docker-compose.yml remove the env variable:  - "CONANEXILES_INSTANCENAME=exiles0" then it worked for me

Hey, i don't know if you still need this but i might have found the solution:
In the docker-compose.yml remove the env variable: - "CONANEXILES_INSTANCENAME=exiles0" then it worked for me

Thanks, that worked for me. 👍

I think this is a bug in entrypoint.sh:
Check if instance nanme given
[ -n "${CONANEXILES_INSTANCENAME}" ] && _config_folder="/conanexiles/ConanSandbox/Saved/${CONANEXILES_INSTANCENAME}/Config/WindowsServer"

I think the path should be
/conanexiles/ConanSandbox/${CONANEXILES_INSTANCENAME}/Saved/Config/WindowsServer
If you look after the container is done being created, the modified files are in the wrong location as listed by the first path, and do not correctly overwrite the ones in the second path, which is what the server uses.

Fixed in Master. Now Env Variables are setup again correctly


Orika does not map has[boolean field] as it does for is[boolean field]

Currently we can map boolean like that
    public class A  {
        private boolean blue;

        public boolean isBlue() {
            return blue;
        }

        public void setBlue(boolean blue) {
            this.blue = blue;
        }
    }

to
    public class B  {
        private boolean blue;

        public boolean isBlue() {
            return blue;
        }

        public void setBlue(boolean blue) {
            this.blue = blue;
        }
    }

But we cannot map automatically "has" boolean like this
    public class A  {
        private boolean access;

        public boolean hasAccess() {
            return access;
        }

        public void setAccess(boolean access) {
            access = access;
        }
    }

to
    public class B  {
        private boolean access;

        public boolean hasAccess() {
            return access;
        }

        public void setAccess(boolean access) {
            access = access;
        }
    }

We have to map those kind of boolean fields using a custom mapper

You can also extend Orika and provide a custom
PropertyResolver
MapperFactory factory =
                new DefaultMapperFactory.Builder()
                    .propertyResolverStrategy(
                            new RegexPropertyResolver(
                                    "get|is|has([\\w]+)",
                                    "set([\\w]+)",
                                    true, true))
                    .build();
```
But pay attention with this code, hashCode method will produce read only property named hCode :)

you can create a custom property resolver to handle more complex "conventions"

Thanks!

Can I close it ?

Yes :)

Thanks :)

Maybe use this instead, to get rid of hCode:
"get|is|has([^h][\\w]+)",
"set([^h][\\w]+)",


Export-DbaInstance logic error for Resource Governor script

Before submitting a bug report:
Collect output of following command and paste below:

Name                           Value
----                           -----
PSVersion                      5.1.14393.2879
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.14393.2879
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>

### dbatools Module version:

Name    : dbatools
Path    : C:\Program Files\WindowsPowerShell\Modules\dbatools\0.9.804\dbatools.psd1
Version : 0.9.804

Name    : dbatools
Path    : C:\Program Files\WindowsPowerShell\Modules\dbatools\0.9.791\dbatools.psd1
Version : 0.9.791

[ ] Running latest release of dbatools
[ ] Verified errors are not related to permissions
[ ] Is this bug with Copy-DbaDatabase? You can replicate it using Backup-DbaDatabase ... | Restore-DbaDatabase ...

NOTE: Copy-DbaDatabase will not work in every environment and every situation. Instead, we try to ensure Backup & Restore work in your environment.

Environmental data

<# REPLACE WITH output OF environment one-liner #>

SQL Server:

/* REPLACE WITH output of @@VERSION */

Steps to Reproduce
Export-DbaInstance -SqlInstance $SqlServer -Path $DailyOutputPath
Actual Behavior
It appears the output logic for Resource Governor is creating two files with different numbers.  See screen shot.

The cause of this error is the code at Line 371
$null = Add-Content -Value "ALTER RESOURCE GOVERNOR RECONFIGURE" -Path "$Path$stepCounter-resourcegov.sql"
This should be
$null = Add-Content -Value "ALTER RESOURCE GOVERNOR RECONFIGURE" -Path "$Path$fileCounter-resourcegov.sql"
The numbering of file is determined by $fileCounter and not $stepCounter.


instagram not working

after entering instagram login/password I am getting a json string in the in app browser.
code: 403,
error_type: oAuthForbiddenException,
error_message: implicit authentication is disabled
i called it like
$cordovaOauth.instagram(instagramClientId).then(function(result) {
console.log("Response Object -> " + JSON.stringify(result));
}, function(error) {
console.log("Error -> " + error);
});

sorry.... implicit authentication was disabled in the instagram dev console.
its working.


Gradio App is broken

Gradio code app code is no longer compatible with the latest version of gradio. Environment file does not specify a gradio version, so the latest version is automatically downloaded.  For example, latest version of gradio apparently no longer supports Dropdown.update()

the same to you

Just update a new requirements.txt with the specified version. The Gradio version should be 3.36.1


Bug report: Texture Interpolation not respected - linear makes blurry image in pixelart.

Describe the bug
In Pixelart there are small textures like 64x64. Blender by default make them blurry so in node editor interpolation has to be changed from default linear to Closest - OK.
In VRM editor when user imports VRM default value in texture interpolation is "linear" - OK.
After change interpolation to "closest" and export, output texture is blurry ignoring interpolation settings.
To Reproduce

Create any object and use low resolution 64x64 for texture painting in blender.
Change image interpolation in node editor from default linear to closest to have pixel perfect view
Export VRM and it's blurry in Unity.
Probably image/png included in VRM file generated by blender is not respecting this attribute.

Expected behavior
Texture in VRM file should looks the same like in Blender.
Workaround:
Increase texture size to look the same in default linear image interpolation.
Screenshots

Desktop (please complete the following information)

Blender 4.1
Addon 2.20.49

Additional context
Probably something like to add somewhere:
if node.type == 'TEX_IMAGE':
node.interpolation = 'Closest'
Shader.py
Suggests it's somehow implemented in the code but not working.
# blender is ('Linear', 'Closest', 'Cubic', 'Smart')
# glTF is Linear, Closest
filter_type = GL_NEAREST if from_node.interpolation == "Closest" else GL_LINEAR

Thanks for reporting!
This is a bug and will be fixed in a future version.
You can change export settings in material properties. However, it is not reflected in the viewport.

The bug was fixed with the latest version v2.20.51 just released. Thank you for your report.


Typo

"Use AdaptiveTrigger s..."

should be "Use AdaptiveTriggers"

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

ID: c58e278f-7e7e-dc67-ba2f-4461723b216a
Version Independent ID: e98a6aca-970b-b5ef-f2ad-450772e1cc50
Content: AdaptiveTrigger Class (Windows.UI.Xaml) - Windows UWP applications
Content Source: https://cpubwin.visualstudio.com/DefaultCollection/windows-uwp/_git/winrt-api-build?path=%2fwinrt-api-build%2fwindows.ui.xaml.adaptivetrigger.yml&version=GBlive&_a=contents
Product: uwp
Technology: winrt-reference
Git Login: jwmsft
Microsoft Alias: jimwalk

Fixed


List Sequence Alphabetical

This PR fixes #120
Changes:

The full list is displayed alphabetically
No tests included

Codecov Report

Merging #120 (688c1d6) into master (900917a) will increase coverage by 0.03%.
The diff coverage is 85.71%.

@@             Coverage Diff              @@
##             master     #120      +/-   ##
============================================
+ Coverage     61.71%   61.75%   +0.03%
- Complexity      462      463       +1
============================================
  Files            87       87
  Lines          1669     1668       -1
  Branches        186      184       -2
============================================
  Hits           1030     1030
  Misses          575      575
+ Partials         64       63       -1

Impacted Files
Coverage Δ

.../java/seedu/address/model/util/SampleDataUtil.java
28.57% <0.00%> (ø)

src/main/java/seedu/address/model/AddressBook.java
84.61% <100.00%> (ø)

...rc/main/java/seedu/address/model/ModelManager.java
89.65% <100.00%> (ø)

...a/seedu/address/model/person/UniquePersonList.java
83.67% <100.00%> (+1.67%)
:arrow_up:

...u/address/storage/JsonSerializableAddressBook.java
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


MSI recovery.md WSON8 probe specify 8x6mm

WSON8 exists in 8x6 and 6x5mm packages.
Part number on the image of the BIOS flash IC  is 25q256jweq, as per datasheet page 93 that is an 8-pad WSON 8x6mm.
Or are there MSI boards that use the smaller 6x5mm package?

Or are there MSI boards that use the smaller 6x5mm package?

@recallmenot It should be WSON8 8x6mm only. Chip can either be Macronix or Winbond


uAction and other delegates don't serialise using FastSave

Is FastSave supposed to be able to save any kind of delegates, including VFW's own?
I tried this simple test (Under Unity 5.3.0f4; save in a file under an 'Editor' directory and use Window->Editor Test Runner), and I get an exception:
using System;
using NUnit.Framework;

namespace VFW.Tests
{
    public class VFWTests
    {

        class SerializeDelegateTestClassContainer
        {
            public Vexe.Runtime.Types.uAction actionTestMember = new Vexe.Runtime.Types.uAction();

            [NonSerialized]
            public bool actionWasCalled = false;
            public void ActionTarget() { actionWasCalled = true; }
        }

        [Test]
        public void SerializeDelegateVFW()
        {
            SerializeDelegateTestClassContainer testContainer = new SerializeDelegateTestClassContainer();
            testContainer.actionTestMember.Add(testContainer.ActionTarget);

            var serialised = Vexe.FastSave.Save.ObjectToMemory(testContainer);

            var deserialised = Vexe.FastSave.Load.ObjectFromMemory<SerializeDelegateTestClassContainer>(serialised);

            Assert.NotNull(deserialised);
            Assert.NotNull(deserialised.actionTestMember);

            deserialised.actionTestMember.Invoke();

            Assert.AreEqual(true, deserialised.actionWasCalled);
        }
    }
}

The exception:
System.Exception : Generating constructor for type: System.Reflection.MonoMethodNo empty constructor found!
---
at Vexe.Runtime.Extensions.FastReflection.GenCtor[Object] (System.Type type, System.Type[] paramTypes) [0x00074] in F:\projects\TestSerialization\TestSerialization\Assets\VFW\Plugins\Vexe\Runtime\Library\Extensions\FastReflection.cs:322
at Vexe.Runtime.Extensions.FastReflection.DelegateForCtor[Object] (System.Type type, System.Type[] paramTypes) [0x00082] in F:\projects\TestSerialization\TestSerialization\Assets\VFW\Plugins\Vexe\Runtime\Library\Extensions\FastReflection.cs:49
at Vexe.Runtime.Extensions.FastReflection.DelegateForCtor (System.Type type, System.Type[] ctorParamTypes) [0x00000] in F:\projects\TestSerialization\TestSerialization\Assets\VFW\Plugins\Vexe\Runtime\Library\Extensions\FastReflection.cs:61
at BX20Serializer.ReflectiveSerializer.GetInstance (System.IO.Stream stream, System.Type type) [0x00000] in F:\projects\TestSerialization\TestSerialization\Assets\VFW\Plugins\Vexe\Runtime\FastSave\Serializer\BinaryX20\Serializers\ReflectiveSerializer.cs:17
at BX20Serializer.BinaryX20.Deserialize_Standard (System.IO.Stream stream, System.Type type, System.Object& instance) [0x000d4] in F:\projects\TestSerialization\TestSerialization\Assets\VFW\Plugins\Vexe\Runtime\FastSave\Serializer\BinaryX20\BinaryX20.cs:519
... etc ...

No not really. It's not really worth the extra complexity. Most if not all the times I found myself in a much better position just reconnecting the delegates values in initialization. In-inspector delegates are over-rated imo (good luck rewiring everything after Unity screws up your .scene files...)
That said, you could write a custom serializer for e.g. a VFW delegate and serialize the MethodInfo like this https://github.com/vexe/FastSerializer/blob/master/FastSerializer/Serializers/MetadataSerializers.cs - but the tricky part is always the 'target' object, because it could be a UnityEngine.Object (e.g. a MonoBehaviour) - what do you do then? ... you'd have to have some kind of storage of MonoBehaviours where each has a unique Id and [de]serialize the id. I believe I'm doing something similar in order to persist in-scene references so you could check that out as well.

Fair enough, thanks for the pointers!
I'll try to do this since I have the whole game state under one object, and certain sub-objects have delegates that call methods on other sub-objects (as scheduled events), which would be difficult to hook up again.


Remove Nova when running tests

This PR removes Nova when running tests.
This allows tests to run on GitHub for PRs from other contributors.

Fantastic solution!!


Work on mobile screens

Perhaps working around the backgrounds would help.

this won't be neccessary. this game is designed and is suitable for big screens.


Using C_API LGBM_BoosterPredictForMatSingleRow and it runs out Segmentation fault

Environment info
Operating System: Ubuntu 18.04.3
CPU/GPU model: Intel(R) Xeon(R) CPU E5-2630 v4 @ 2.20GHz
C++/Python/R version: C++ 11
LightGBM version or commit hash:  8f7199a
Error message
Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
Reproducible examples
int main(int argc, char** argv) {
    BoosterHandle handle;
    int p;
    auto model = LGBM_BoosterCreateFromModelfile("model.txt", &p, &handle);
    if(model != 0){
        cout << "Fail On Loaded！" << endl;
        exit(-1);
    }
    else{
        cout << "Success" << endl;
        cout << p << endl;
    }
    vector<double> test{1, 3466, 3, 4, 1, 3456, -1, 0, 14, 34, 30};
    void* in_p = static_cast<void*>(test.data());
    std::vector<double> out(1, 0);
    auto* out_result = static_cast<double*>(out.data());
    int64_t out_len;
    auto result = LGBM_BoosterPredictForMatSingleRow(&handle, in_p, C_API_DTYPE_FLOAT64, 11, 1, C_API_PREDICT_NORMAL, -1, "", &out_len, out_result);
    return 0;
}

Steps to reproduce
Run That Scripts Using CMakeLists. Model Loaded is success, but LGBM_BoosterPredictForMatSingleRow encounters segmentation fault.

@imatiach-msft
And @BuGTEa , could you provide the model file (model.txt)?

Here it is. The model.txt is generated by Python API.
model.txt

you should pass handle directly in LGBM_BoosterPredictForMatSingleRow, not its pointer.


I do not want the user to return to the start page. Like on Android, intercept the push of the button "Back".

Version

react-native-router-flux 4.0.0-beta.21
react-native v0.46.4

Expected behaviour
The user does not need to navigate 'custom TabBar', pressing the system button backward.
I do not want the user to return to the start page.

same problem

same problem me too

Same issue here. I need to set a custom action when the physical back button of the android device is pressed. Any ideas?

I just deleted the code responsible for returning to the previous scene when I presses hardware back button. And wrote my code what to do when I click hardware back button.

I run into the same problem currently swiping back at the first tab in a , it pops back to the initial scene before it ?


TS example doesn't work properly

In the typescript example, after doing yarn build:
yarn run algob deploy
yarn run algob run scripts/withdraw/htlc-withdraw.js

return errors because there is no script in scripts(only ts files)
The solution should be to change the algob scripts folder to build/scripts

@Lumene98 Thanks for the info.
could you please try running yarn run algob run scripts/withdraw/htlc-withdraw.ts ?

@Lumene98 Thanks for the info.
could you please try running yarn run algob run scripts/withdraw/htlc-withdraw.ts ?

failed during load: Cannot use import statement outside a module

@Lumene98 one solution is to change the project tsconfig's outDir: "./build/scripts" -> "outDir": "./scripts". and then run yarn build again
Thanks, will add a fix for it.

@Lumene98 one solution is to change the project tsconfig's outDir: "./build/scripts" -> "outDir": "./scripts". and then run yarn build again
Thanks, will add a fix for it.

Thanks that should do it

When I tried it on my script it wouldn't let me deploy the stateful smart contract because I'm outside the alogob deploy

@Lumene98  To deploy asa or stateful smart contract you have to use algob deploy. algob run is used to interact with deployed asa or contracts.

@Lumene98 To deploy asa or stateful smart contract you have to use algob deploy. algob run is used to interact with deployed asa or contracts.

Oh right I thought algob deploy script.js wasn't a thing, thank you!

thanks, adding it in docs as well.


fix: make island router replace outermost diffed route

This PR fixes a bug that the islands router always replaces the innermost route of the whole nested routes, which is supposed to replace the outermost diffed route.

In setting up for SolidStarts next Beta Phase built on Nitro and Vinxi we are closing all PRs/Issues that will not be merged due to the system changing. If you feel your issue was closed in mistake. Feel free to re-open it after updating/testing against 0.4.x release. Thank you for your patience.

See https://github.com/solidjs/solid-start/pull/1139 for more details.


ServiceBusMessage constructor overload with behavior to match Body.ToObjectFromJson

Discussed in https://github.com/Azure/azure-sdk-for-net/discussions/24616

Originally posted by danleonard-nj October  9, 2021
Sorry in advance if this is already out there somewhere and I'm just missing it.  I think it'd be nice to have an overload for ServiceBusMessage that took an object and serialized it w/ JsonSerializer, so you can pass the objects straight into the message constructor instead of serializing it then passing it in as a string.
It doesn't save a ton of mileage, but considering there's an equivalent method for deserializing the message body, seems sensible that there'd be one on the message constructor.  Obviously passing JSON data in the body is pretty common practice.
Definitely a nice-to-have, but anything to reduce the clutter is always a win.

This sounds like a good enhancement request that we can look into for a future release.

This behavior is now handled by BinaryData so that it is consistent across different libraries of the Azure SDK.
var message = new ServiceBusMessage(new BinaryData(someObject));

Closing this out.


[MATLAB] Add arrow.buffer.Buffer class to the MATLAB Interface

Describe the enhancement requested
To unblock use cases that are not satisfied by the default Arrow -> MATLAB conversions (i.e. the toMATLAB() on arrow.array.Array), we would like expose the underlying Arrow data representation as a property on arrow.array.Array. One possible name for this property would be DataLayout, which would be an arrow.array.DataLayout object. Note, this class does not yet exist, so we would have to add it.
For example, the DataLayout property for temporal array types would return an object of the following class type:
classdef TemporalDataLayout < arrow.array.DataLayout
    properties
       Values % an arrow.array.Int32Array or an arrow.array.Int64Array
       Valid  % an arrow.buffer.Buffer
    end
end

However, the Valid property on this class would need to be an arrow.buffer.Buffer object, which does not yet exist in the MATLAB interface.  Therefore, it would be helpful to first add the arrow.buffer.Buffer class before adding the DataLayout property/class hierarchy. It's worth mentioning that adding arrow.buffer.Buffer will open up additional advanced use cases in the future.
Component(s)
MATLAB

take


PR: Add conda environment status widget

Description of Changes

[x] Wrote at least one-line docstrings (for any new functions)
[x] Added unit test(s) covering the changes (if testable)

[x] Included a screenshot or animation (if affecting the UI, see Licecap)

Issue(s) Resolved

Fixes #9008
Affirmation
By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.

I certify the above statement is true and correct: @goanpeca

@spyder-ide/core-developers ideas to discuss.
I added a click signal to the status widgets so we can do something interesting with them without having to add the possibility of adding any type of widget (QDropdow.. etc...)
For the moment this signal is not used and here are some ideas of how the information could be displayed here:

If it is a python file display conda: <env name> (Python interpreter) and the hover hint should display the path to the python executable. (this is updated with the python interpreter option)
If it is any other type of file display only the env name conda: <env name>
Eventually the python interpreter preferences pane will become a interpreters pane I guess so that if it is an R file, we can display the R interpreter etc...
I added the package icon from font awesome but I am of course open to ideas (thoughts @jnsebgosselin ?)

I want to add the ability of changing the interpreter directly from the status bar, so users do not need to go to the preferences. Thoughts here @ccordoba12 ?

With Emacs you can change the line endings of a file by clicking on the corresponding indicator (LF in your image). I find that quite useful and intuitive, so this is a nice idea.

Hello @goanpeca! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file spyder/app/mainwindow.py:

Line 146:1: E402 module level import not at top of file
Line 3289:5: E265 block comment should start with '# '
Line 3289:5: E303 too many blank lines (2)
Line 3289:80: E501 line too long (83 > 79 characters)
Line 3291:5: E265 block comment should start with '# '
Line 3291:80: E501 line too long (83 > 79 characters)
Line 3292:5: E301 expected 1 blank line, found 0

In the file spyder/widgets/status.py:

Line 225:40: E203 whitespace before ':'

My reply to the comments/questions @ccordoba12 👍

What happens if the environment name is too long?

Not at the moment. What should be a reasonable maximum character count for this widget?

Are you eliding it somehow?

I could, see previous question.

Could we only show the Python version next to environment name? I say it because in your screenshot one of your environments is shown as Python 2.7.5 :: Anaconda, Inc, which I think is too long.

I am getting this info by running python_exec -V, in the Anaconda (base environment) case it includes that extra string. Assuming all values will be in the form Python N.N.N I can strip it and make it smaller, so it does not include the Anaconda part.

Other options worth considering for the icon :

Made the fixes @ccordoba12
Looks like:

Made the fixes @ccordoba12


Get specific version of hash

I see a v: tag in the fullOp output but can't seem to find a way to target a specific v value. Am I just missing something?

nvm
Not sure what the v key is for but I misunderstood databases. The next array holds the previous entry, even if that entry was for a different key in the store.


Configure kapacitor stream task with inflxudb version 2.3

@danxmoran @timhallinflux
I'm following document posted on #2476 to enable kapacitor stream tasks with influxdb 2.3.
After adding kapacitor host to [[outputs.influxdb]] section,  write to kapacitor from telegraf attempt failed with error message below:
[outputs.influxdb] When writing to [https://kapacitor-host:9092]: database "telegraf" creation failed: 404 Not Found
I can manually write to kapacitor using curl like curl -kv -XPOST 'https://kapacitor-host:9092/kapacitor/v1/write?db=telegraf&rp=autogen' --data-binary 'cpu,host=example.com value=87.6'
Is there any steps or configuration I'm missing?
Thanks in advance!
Telegraf 1.23.4 (git: HEAD 5b48f5da)
Kapacitor OSS 1.6.4 (git: HEAD dfdea23b82343fca1976358b9d98cd8ec42e09df)
InfluxDB v2.3.0+SNAPSHOT.090f681737 (git: 090f681737) build_date: 2022-06-16T19:33:50Z

Attempt of adding v2.3 influxdb also failed with error below.
[outputs.influxdb] When writing to [https://influxdb-host:8086]: database "telegraf" creation failed: 200 OK: not implemented: CREATE DATABASE

Of course DBRP mapping is already created.
# influx v1 dbrp ls --skip-verify --host https://influxdb-host:8086
ID			Database	Bucket ID		Retention Policy	Default	Organization ID
09ebaafba04fa000	telegraf	5879d6acae01a53e	autogen			true	2a60f6361bb2f2a5

It seems error resolved after addingskip_database_creation = true. It would be nice if document is updated.


(V3): boost perfs

Type

Context

Parts of the app affected / Test plan

impact on Intl? (number, dates)

impact on Intl? (number, dates)

julien helped me on that for ios and succeded with polyfills :+1:


Support for Payload v3

Hi,
thanks for providing this color picker!
I tried it with<EMAIL_ADDRESS>but it throws a lot of errors.
Do you plan to support v3 any time soon?

Hi @lorenzrabs,
Yes, we will update this and other plugins for Payload 3.0.0 closer to the stable version being announced.
I'll leave this ticket open and update you once we action this.
Kind Regards,
Kalon Robson

Payload 3 has been released 🎉
No, I'm not asking about estimations @kalon-robson

Hi @vladvlasov256 and @lorenzrabs,
We are working on this and will update this thread once we publish a new release.
Kind Regards,
Kalon Robson

Got a working beta<EMAIL_ADDRESS>Currently for it to work I need to manually add
import { ColorPickerField } from '@innovixx/payload-color-picker-field'

export const importMap = {
  "@innovixx/payload-color-picker-field#ColorPickerField": ColorPickerField
}

to payload's admin importMap.js so once I've worked out how to implement this part property I'll release 2.0 stable and let you all know.
Kind Regards,
Kalon Robson

Hi , use you fix .0.0-beta-2,
it`s work good
but got error when tried re-generate types
node:internal/process/promises:394     triggerUncaughtException(err, true /* fromPromise */);     ^ TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".scss" for /Users/user/Work/multi-business-cards/node_modules/.pnpm/@innovixx+payload-color-picker-field@2.0.0-beta-2_next@15.0.3_react-dom<EMAIL_ADDRESS>   at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:218:9)     at defaultGetFormat (node:internal/modules/esm/get_format:244:36)     at defaultLoad (node:internal/modules/esm/load:122:22)     at async nextLoad (node:internal/modules/esm/hooks:748:22)     at async load (file:///Users/volodymyrteplyi/Work/multi-business-cards/node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/esm/index.mjs?1733835339327:2:1762)     at async nextLoad (node:internal/modules/esm/hooks:748:22)     at async Hooks.load (node:internal/modules/esm/hooks:385:20)     at async handleMessage (node:internal/modules/esm/worker:199:18) {   code: 'ERR_UNKNOWN_FILE_EXTENSION' }
Kind Regards,
Volodymyr

Hello @kalon-robson! I tried beta-2 today, it looks good. Thanks a lot for the update!
I've also noticed the issue with type generation. From what I understand, Payload doesn't automatically detect and ignore client components and their imports.

In case someone needs a dirty workaround, here is my approach.

Move all the client stuff to a separate directory (i.e. the components folder):

Add the exports specification to the package.json:

"exports": {
    ".": {
      "types": "./dist/index.d.ts",
      "default": "./dist/index.js"
    },
    "./client": {
      "types": "./client/index.d.ts",
      "default": "./client/index.js"
    }
}

Fix the field component:

admin: {
    ...rest?.admin,
    components: {
        ...rest?.admin?.components,
        Field: {
            clientProps: {
                colors
            },
            path: '@innovixx/payload-color-picker-field/client#ColorPickerField', // ‼
        },
    },
}

@kalon-robson are you also going to rework the exports in the package? I'm happy to help if needed, although my experience with NextJS is very limited. I know you have the boilerplate repository and I guess the fix should be implemented there. Of course, I can also wait for the fix to be released.


added lockout_key to interface functions

I am expecting that this pull request won't get accepted. I am missing some features and I haven't tested this yet. But I'm going to ask for a pull request anyway to get feedback.
update and add/remove sections as needed
New Features
Allows the python interface to recognize the lockout key.
Fixes
I added recognition of the lockout key to the functions inside of interface.py
Related to this issue: https://github.com/driplineorg/dripline-python/issues/120
Testing
I tested locally that the error catching probably works. I have not really tested this. There's a subtlety with type uuid_t that I am not equipped to handle right now. Noah said that Ben probably has to look into it.
Prior to merging for releases:

[ ] update the project's version in the top-level CMakeLists.txt file
[ ] update the appVersion to be the new container image tag version in chart/Chart.yaml

These changes have been adopted into another branch, which is aimed at the next major release of dl-py, so I'm closing this PR.


Render labels using a shader based on hash(label, salt)

🚀 Feature
Implement the rendering of label layers as a gl shader. Use a hash based on the label value and a salt to pick a color at random.
Motivation
The shader generated by vispy.color.colormap for a colormap with a large number of intervals would fail to compile due to an excessive code size. This is not an issue with the shaders for linear colormaps, but those do not clearly differentiate labels with close values.
By using a hash, any label value an be mapped to a random color. A salt is added to shuffle where labels hash to. Also, this allows display of arbitrary labels with complete disregard for the set of global labels.
Pitch
Alternatives
We have already implemented a quick-fix to render labels with a large number of segments (#203) by mapping colors to a random label that is mapped to a random color. One downside of the current approach is two label values that map to very close each other will be assigned the same color
Additional context
An example implementation of using a shader for colorization is in this branch.
Neuroglancer uses this hashing approach to assign segment colors.
Predefined color maps, loaded as textures, could be used to provide discrete sets of colors for the random colors to be drawn from.

@perlman @jni - to follow on here there are a couple problems with the current fix.
The first one is that sometimes there can be a discrepancy between the displayed color and the color returned from label_color - these are likely do to in-precisions with floating points. For example if you run the labels-2d.py example and then set the labels layer to 0 I get a slightly off-green color, that is the color generated by passing 0.00001 to the colormap. Similarly the color corresponding to label 2 appears on the screen as a dark gray - but gives an orange when passed to the function.
One side question I have about the layer in general is where does the colormap actually get passed to the vispy node? i.e. I am expecting a line like self._node.cmap=colormap, but all I can find is self.colormap = colormap
Finally the interactivity in the paintbrush in #195 is now very slow. If you use a simple colormap or set num_colors=10 it becomes fast again.

I have been trying about visualizing some labeled EM data from CREMI - one of the unpadded training sets - and have noticed that switching z-planes is very slow even when the data is fully loaded in memory. See the example gif below.

After using cProfile, it is clear that the slow down is caused by our conversion from integers to floats, which now happens every time the z-plane changes as it is no longer precomputed once up front. This change was made to handle lazy loading of large images, but the conversion is too slow for good interactivity, taking about 100ms for a 1250x1250 image.
@perlman do you have any thoughts on how to improve this?
 In Neuroglancer, there is no conversion at all, and the color is generated in a shader rather than using a float colormap. The image fed to the shader is not cast as float or converted in any way, but rather the raw uint32 bytes are sent to the GPU as if they were float32 bytes. These are nonsensical numerically but it does not matter to the hashing function. In NumPy, this would be done with .view(np.float32) for uint32 labels, and .view(np.float64) for uint64 labels.

Note also that @stefanv has reported in #467

our labels colormap shuffle doesn't reliably separate nearby labels.

likely due to num_colors being small by default. We should monitor this as we make any improvements here


Use Conty automatically with 32bit steam games

Hi,
thank you very much for your very interesting project!
If you don't mind I would implement conty support into my steamtinkerlaunch,
to "(optionally) auto-use Conty if a 32bit game executable is found".
Already created an issue for myself to collect some ideas.

Hi,
Well, why not, I don't mind at all.

Hm, looks like conty has problems with spaces in filenames and using quotes doesn't seem to fix this:
$ file "/media/ssdeam2/SteamLibrary/steamapps/common/Proton 5.13/proton"
/media/ssdeam2/SteamLibrary/steamapps/common/Proton 5.13/proton: Python script, ASCII text executable
$ conty.sh "/media/ssdeam2/SteamLibrary/steamapps/common/Proton 5.13/proton"
Running Conty

bwrap: execvp /media/ssdeam2/SteamLibrary/steamapps/common/Proton 5.13/proton: No such file or directory

conty.sh /usr/bin/wine
works as expected
Please let me know if you need any additional info, but I guess you can reproduce this.

Would it be possible that conty would also check if a provided command is found in $PATH?
so you can also use gamemoderun or gamescope as an additional parameter (without providing the absolute path) before the actual game exe is called.
If you prefer seperate issues a for this and above comment, this wouldn't be a problem of course.

It's seems that's because /media is not binded to the container by default and it's not visible inside it. I will fix this a little later and reupload the image on the releases page. For now you can, for instance, symlink ssdeam2 to /mnt:
ln -s /media/ssdeam2 /mnt/ssdeam2
./conty.sh "/mnt/ssdeam2/SteamLibrary/steamapps/common/Proton 5.13/proton"

Ah ic, thanks for the explanation and the quick reply.
Will keep on with implementing conty without actually executing it until the image is updated.

Would it be possible that conty would also check if a provided command is found in $PATH?

Sure, i can append PATH from the host system to the container's PATH.

Would be nice, thanks for accepting suggestions!

Uploaded a new release.

Nice, that was quick, thanks!
Gave it a quick try, and it seems to work fine with steamtinkerlaunch.
(started a 32bit game with an automatically downloaded conty and gamemoderun enabled directly from steam using the configured proton)
I haven't checked yet if SLR needs to be disabled (because it is not used at all by steam when using a Compatibility Tool), but all other planned features are already implemented.
Fine-tuning a bit and if I don't find any serious issues I'll push the changes
(adding a Wiki chapter afterwards)

Ok, good.

I haven't checked yet if SLR needs to be disabled (because it is not used at all by steam when using a Compatibility Tool), but all other planned features are already implemented.

Yes, it's indeed imposible to choose SLR and Proton at the same time. However, Steam automatically enables the container for Proton 5.13+, and it seems (at least i don't know) that there is not an obvious option to disable it (except for manually editing a container's startup script).

No problem, I have an option in steamtinkerlaunch allowing you to easily disable it per game (or by default generally) using a checkbox.
I just write the wiki part and push everything at once - looks fine so far for an initial commit.

Just pushed the changes
With a little wiki entry being here

Excellent :) Let me know if you find any issues or bugs.

Sure, but I hope I'm not the only one testing it ;)

I removed almost all lib32 packages from my system (arch), keeping only those which steam pulls in.
Tried Fable Anniversary for testing - it does no longer regularly, but still works fine when dropping it into the Conty Steam Category, so I guess  the implementation works fine. So if you see no reason for leaving this issue open, I'd close it.

Yes, no reason to keep this open, so feel free to close.

@frostworx By they way, what gpu do you use: Nvidia, AMD or Intel?

@Kron4ek AMD

Ok, thanks. There are currently issues on Nvidia, for which i will need to find a solution. But AMD and Intel should work fine no matter what kernel version is installed in the system.

Hmm, maybe it is possible to overmount the required libs using overlayfs or something similar.

Yes, mounting (binding) Nvidia libs from the system to the container should work, but the problem is that they might be not installed in the system at all or at least their 32-bit versions might be not installed if the system is without multilib.
So i'm currently thinking about checking the kernel module version loaded in the system and downloading the corresponding Nvidia libraries directly from the official Nvidia site to some available location (like in $HOME/.local/share) and binding them to the container. Afaik, flatpak does the same thing to solve the same problem.

This should work, but could lead to problems because of additional unknown components (broken internet connection, broken drivers, system requires a reboot because of nvidia version bump and so on), and then you're the one who has to answer (hopefully at least polite) support issues in an endless loop, although the core problem was and is nvidia.


"az aks create" fails

I ran into the same issue described at https://github.com/MicrosoftDocs/azure-docs/issues/45485, with the current tutorial

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

ID: 6115d555-45a1-6539-4af6-fbc20a99f008
Version Independent ID: 21f80c83-ba10-9b7e-c54f-51a9c140517c
Content: Quickstart: Deploy an AKS cluster by using Azure CLI - Azure Kubernetes Service
Content Source: articles/aks/kubernetes-walkthrough.md
Service: container-service
GitHub Login: @mlearned
Microsoft Alias: mlearned

Thanks for the feedback! We are currently investigating and will update you shortly.

@zr-msft Can you please check and add your comments on this doc update request as applicable

Thank you @jmandel for the feedback.
I was able to verify the linked article works as currently documented. If you continue to experience issues, please contact support.
#please-close


Report Settings Template: add the isPublic property support

The Report Settings Template API now supports the ability to create public templates. We need to add support for the isPublic property to this Crowdin API client.
References:

Add Report Settings Template
Get Report Settings Template (response)

Hi @andrii-bodnar, can you please assign me this issue

Hi @m-inaam, assigned. Thank you!

Can please give more details as to where exactly these templates need to added? I mean by which file can I find isPublic  property in Crowdin API client.

@m-inaam please refer to the reports API

@andrii-bodnar I want to work on this


Automatically update when referenced cells change for custom javascript functions

I'm experimenting with jexcel and am very impressed so far, one thing that I found very hard to do was to write a jexcel-javascript function like in the footer example. I noticed, that this formula only works in the footer and not in the body of the table. It is not automatically updated, when the values in the column change. (Is this considered a bug?)
I think it would be great to have a helper-function that allows such custom javascript formulas to communicate their dependent cells. (Maybe that already exists? If I add them to instance.jexcel.formulas during the evaluation of the function I have no real way of cleaning them up, when the cell is changed? Or does that happen automatically?)
I resorted to manually filling the instance.jexcel.formulas in my updateTable-Function for now, but that doesn't feel like a good solution.
One way around this, of course, is to write the functions in a way, that they accept cell-ranges, but that doesn't work, if you want to calculate the sum of a whole column when there might be new rows added, because the A3:A-syntax is not supported. (And also is not easily implemented, because the formulas-Array would also need to be updated, so one would have to keep track of all the open ranges that are in the spreadsheet?)
Edit: It would be great, if the getValue and getValueFromCoords would automatically be tracked as a dependency - for example.

Hello,
In fact, you have cell linked only when it's used on formula direct reference (A1, A2:B3,etc). But if you use référence indirect like (COLUMN(1), VALUE(1,1), ...) is not linked.
for getValue, getValueFromCoords it's used in many case, it's not better solution. I have suggest to @paulhodel maybe to change formula VALUE(), COLUMN, ROW for add linked automaticaly but, you have an other problem, if coordonnate depend dyna value, it's not possible. It's an hard problem to solve.
But, all suggest to Paul can help for create this linked.

I don't see how it would be a problem if the coordinate depends on the value?
Example, assuming VALUE would capture dependencies:

A
B
C

1
2
=VALUE(COLUMN(), ROW() + A1)

2

1

3

2

At first the Cell B1 depends on A1 and B3.
If A1 is changed B1 will be evaluated again and the new dependency will be automatically be calculated.
If B3 is changed B1 will be evaluated again and the dependencies will not change.
Not sure if reusing getValueFromCoords for this "get value and catch dependencies" is a good idea, but there could easily be another parameter to control that behavior or a different method for that purpose. You just need to have some code that says "now we are capturing dependencies for cell XY". The current method of "only capture dependencies for explicitly named cells" could also just use that mechanic then.

That is a limitation in regards to the formula chain. It is created based on actual variables, and a reference like COLUMN() is not tracked yet. But, that is a good suggestion we should consider for the next releases. I will tag it as a feature request.
Meanwhile, you need to use something more like
=SUM(B2:B3); //

This feature would also benefit us! I think our users will want to make formulas that are the same for an entire column, and these kinds of special formulas allow that to work much more smoothly.


Stemcell builder improvements

Currently it is hard to build stemcells, especially if you want to build them to a new clouds.
There are several reasons for it:

you have to patch bosh, I had to patch bosh-release, bosh-stemcell, bosh-dev projects except of stemcell_builder.
it takes a lot of time to check your changes had necessary effects
you can’t build “light” stemcells for new infrastructures easily using current BOSH stemcell builder.

I suppose that live would be much more better after BOSH will go from compiling MicroBOSH into stemcell, but still there are some possible ways to improve it.
Here are some suggestions to improve stemcell builder:

Run stemcell builder locally. I had customers that didn’t wanted to use any external infrastructure (like AWS) to build stemcell, this meant they wanted to run them into their IaaS. Vagrant box didn’t played well in such situations because of absence of nested virtualization.
Build “light” stemcells for external clouds. Some clouds doesn’t have “custom images” as a feature. And the only one option there is to build instance templates from existing VMs. For this kind of solutions it is necessary to run stemcell builder on the cloud instence and build stemcell into attached disks or a system disk.
Rollback of state of file system after failed stages. Currently you spend a lot of time rebuilding stemcell after small changes that leaded to errors. I suggest to use something like aufs to keep state of file system to rollback after stage failed. This will speed up development process.
Declarative way to define stages. That's ok to have such DSL as BOSH currently has, but it would be much more easier for people not to mess with ruby code in stage_collection.rb file, but to pass some .yml manifest to the builder.

Also I have a strange feeling that it would be better to rewrite stemcell builder in go lang :)
What do you think ?

I suppose that live would be much more better after BOSH will go from compiling MicroBOSH into stemcell, but still there are some possible ways to improve it.

Yes. We already started to benefit from it, when it's necessary to make CPI changes. The only time it's necessary to build a stemcell now is if you want to change the agent or make changes to the OS.

Run stemcell builder locally

Was docker available in such environment?

Rollback of state of file system after failed stages

Have you see resume_from mentioned in https://github.com/cloudfoundry/bosh/tree/master/bosh-stemcell#when-things-go-sideways?

Declarative way to define stages

Agreed. I do want to preserve certain level of enforcement that all Ubuntu's are the same, regardless which cloud it's for.

Yes. We already started to benefit from it, when it's necessary to make CPI changes. The only time it's necessary to build a stemcell now is if you want to change the agent or make changes to the OS.

Does it mean that having MicroBOSH release in a stemcell is not mandatory at the moment? I think of making PR to support building stemells for Power platform, still it misses MicroBOSH release build stage. Do you think it's okey to make a PR without this stage?

Was docker available in such environment?

Yes, basically Docker was available. In the same time I had a case when I couldn't make any custom images for customers IaaS, to solve this issue I needed to create VM which was bootstrapped by stemcell builder and this VM was cloned during create_vm stage. I don't say that this scenario is a good way to go, but at this moment it was the only way.

Have you see resume_from

Thank you for referencing to resume_from, still I started to work with stemcell-builder before this feature was added and I made some rake tasks to run distinct stages.

I have one more reason to quit using VirtualBox / AWS for stemcell building: stemcell-buider doesn't allow to build a stemcell for a platform that is not supported by VirtualBox (in my case it is Power). To maintain such solution you need to patch stemcell-builder and to implement solution to bootstrap environment for it (in case of Power I needed to write ansible playbooks).

@allomov we now have experimental stemcell building pipeline: https://main.bosh-ci.cf-app.com/pipelines/stemcell-new-dev-temp that builds stemcells in docker container. you should find pipeline config in ci/ folder of the bosh repo.

Thank you for this message. I guess this we will have an opportunity to check it out very soon.

Closing due to age - the stemcell builder has undergone significant changes since this discussion. Feel free to re-evaluate and open a new issue in cloudfoundry/bosh-linux-stemcell-builder if you want to discuss specific suggestions now.


Fixed memleaking in cache

This is alternate change to fix the leaking in Cache.

[x] RamCache leaking
[x] Write side leaking
[x] Read side leaking

This is really a bad hack fixed, and only for explanation.


Update specials.js

Add new vercel filename and extension

Oops, didn't see there was already a PR for this


log 'no logs were sent to den' as debug

#1111  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @BelSasha and the rest of your teammates on  Graphite