DefaultTabController ignores setState while transitioning from one tab to another

Steps to Reproduce

Run the code sample (tested in android real device, android emulator and dartpad)
Press the +1 button (top-right) and before the widget state is updated (1 second) tap to switch between the two tabs.
If done correctly, the widget state is updated while switching tabs.

Expected results:
The widgets should visually update and show the new count.
Actual results:
The setState log can be seen in the console, but the count is not visually updated. It stays like that until the next re-render.
To test that, press the +1 button without switching tabs: the count updates as expected.

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

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

class App extends StatelessWidget {
  const App({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      debugShowCheckedModeBanner: false,
      home: MyScreen(),
    );
  }
}

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

  @override
  State<MyScreen> createState() => _MyScreenState();
}

class _MyScreenState extends State<MyScreen> {
  int count = 1;

  @override
  Widget build(BuildContext context) {
    return DefaultTabController(
      animationDuration: const Duration(seconds: 1),
      length: 2,
      child: Scaffold(
        appBar: AppBar(
          actions: [
            IconButton(
              onPressed: () {
                Future.delayed(const Duration(seconds: 1), () {
                  setState(() {
                    count++;
                    debugPrint('New count: $count');
                  });
                });
              },
              icon: const Icon(Icons.plus_one),
            )
          ],
          bottom: const TabBar(
            tabs: [
              Tab(child: Text('Tab1')),
              Tab(child: Text('Tab2')),
            ],
          ),
        ),
        body: TabBarView(
          children: [
            Center(child: Text('Tab1: $count')),
            Center(child: Text('Tab2: $count')),
          ],
        ),
      ),
    );
  }
}

Logs
New count: 2
New count: 3
New count: 4
New count: 5
New count: 6
New count: 7
New count: 8
New count: 9
New count: 10

Screenshots
Screenshot after executing Steps to reproduce

Hi @kotem13
I was try adding vsync to your sample code and see it worked as expected.

Demo
https://user-images.githubusercontent.com/104349824/178412477-b2deae28-1e61-4c5b-adc8-b45114d93fc8.mp4

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

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

class App extends StatelessWidget {
  const App({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      debugShowCheckedModeBanner: false,
      home: MyScreen(),
    );
  }
}

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

  @override
  State<MyScreen> createState() => _MyScreenState();
}

class _MyScreenState extends State<MyScreen> with TickerProviderStateMixin {
  int count = 1;
  late TabController? _controller;

	@override
  void initState() {
    super.initState();
		_controller = TabController(vsync: this, length: 2);
  }

  @override
  Widget build(BuildContext context) {
    return DefaultTabController(
      animationDuration: const Duration(seconds: 1),
      length: 2,
      child: Builder(
        builder: (BuildContext context) {
          return Scaffold(
            appBar: AppBar(
              actions: [
                IconButton(
                  onPressed: () {
                    Future.delayed(const Duration(seconds: 1), () {
                      setState(() {
                        count++;
                        debugPrint('New count: $count');
                      });
                    });
                  },
                  icon: const Icon(Icons.plus_one),
                )
              ],
              bottom: TabBar(
								controller: _controller,
                tabs: const [
                  Tab(child: Text('Tab1')),
                  Tab(child: Text('Tab2')),
                ],
              ),
            ),
            body: TabBarView(
							controller: _controller,
              children: [
                Center(child: Text('Tab1: $count')),
                Center(child: Text('Tab2: $count')),
              ],
            ),
          );
        },
      ),
    );
  }
}

flutter doctor -v
[✓] Flutter (Channel stable, 3.0.4, on macOS 12.2.1 21D62 darwin-x64, locale en-VN)
    • Flutter version 3.0.4 at /Users/huynq/Documents/GitHub/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 85684f9300 (3 days ago), 2022-06-30 13:22:47 -0700
    • Engine revision 6ba2af10bb
    • Dart version 2.17.5
    • DevTools version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-33, build-tools 31.0.0
    • ANDROID_HOME = /Users/huynq/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 13.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.3

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

[!] Android Studio
    • Android Studio at /Applications/Android Studio Preview.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

[✓] 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 2020.3.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • 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

[✓] IntelliJ IDEA Community Edition (version 2022.1.1)
    • IntelliJ at /Users/huynq/Library/Application Support/JetBrains/Toolbox/apps/IDEA-C/ch-0/221.5591.52/IntelliJ IDEA CE.app
    • 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

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

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 12.2.1 21D62 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 103.0.5060.53

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

! Doctor found issues in 1 category.

[✓] Flutter (Channel master, 3.1.0-0.0.pre.1609, on macOS 12.2.1 21D62 darwin-x64, locale en-VN)
    • Flutter version 3.1.0-0.0.pre.1609 on channel master at /Users/huynq/Documents/GitHub/flutter_master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 881b27e836 (35 minutes ago), 2022-07-11 19:23:05 -0700
    • Engine revision abe7b2ccc3
    • Dart version 2.18.0 (build 2.18.0-271.0.dev)
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-33, build-tools 31.0.0
    • ANDROID_HOME = /Users/huynq/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 13.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 13E113
    • 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 2020.3.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • 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

[✓] IntelliJ IDEA Community Edition (version 2022.1.1)
    • IntelliJ at /Users/huynq/Library/Application Support/JetBrains/Toolbox/apps/IDEA-C/ch-0/221.5591.52/IntelliJ IDEA CE.app
    • 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

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

[✓] Connected device (3 available)
    • SM T225 (mobile) • R9JT3004VRJ • android-arm64  • Android 11 (API 30)
    • macOS (desktop)  • macos       • darwin-x64     • macOS 12.2.1 21D62 darwin-x64
    • Chrome (web)     • chrome      • web-javascript • Google Chrome 103.0.5060.114

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

• No issues found!

Please try above sample code and see if it solves this issue.

Hi @huycozy
The original code defines animationDuration: Duration(seconds: 1) inside DefaultTabController.
In your video the animation is much faster than 1 second.
I've seen that the TabController constructor also has an animationDuration property.
I think adding the controller property of TabBar and TabBarView ignores the animationDuration defined inside DefaultTabController and uses the animationDuration from the TabController constructor.
I moved the animationDuration property so that the animations are slow again (Code sample).
The issue stays the same when the setState happens while switching tabs.
Also I want to make clear that this also happens with fast animations, it's just that the issue is easier to see with longer animations.

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

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

class App extends StatelessWidget {
  const App({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      debugShowCheckedModeBanner: false,
      home: MyScreen(),
    );
  }
}

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

  @override
  State<MyScreen> createState() => _MyScreenState();
}

class _MyScreenState extends State<MyScreen> with TickerProviderStateMixin {
  int count = 1;
  late TabController? _controller;

  @override
  void initState() {
    super.initState();
    _controller = TabController(
      vsync: this,
      length: 2,
      animationDuration: const Duration(seconds: 1),
    );
  }

  @override
  Widget build(BuildContext context) {
    return DefaultTabController(
      length: 2,
      child: Builder(
        builder: (BuildContext context) {
          return Scaffold(
            appBar: AppBar(
              actions: [
                IconButton(
                  onPressed: () {
                    Future.delayed(const Duration(seconds: 1), () {
                      setState(() {
                        count++;
                        debugPrint('New count: $count');
                      });
                    });
                  },
                  icon: const Icon(Icons.plus_one),
                )
              ],
              bottom: TabBar(
                controller: _controller,
                tabs: const [
                  Tab(child: Text('Tab1')),
                  Tab(child: Text('Tab2')),
                ],
              ),
            ),
            body: TabBarView(
              controller: _controller,
              children: [
                Center(child: Text('Tab1: $count')),
                Center(child: Text('Tab2: $count')),
              ],
            ),
          );
        },
      ),
    );
  }
}

@kotem13
Thanks for reporting this.
I updated the title because the issue is not specific to DefaultTabController, it is also reproducible with a custom TabController.

 Code sample with a custom TabController
import 'package:flutter/material.dart';

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

class App extends StatelessWidget {
  const App({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      themeMode: ThemeMode.dark,
      debugShowCheckedModeBanner: false,
      home: MyScreen(),
    );
  }
}

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

  @override
  State<MyScreen> createState() => _MyScreenState();
}

class _MyScreenState extends State<MyScreen> with TickerProviderStateMixin {
  int count = 1;
  late TabController? _controller;

  @override
  void initState() {
    super.initState();
    _controller = TabController(
      vsync: this,
      length: 2,
      animationDuration: const Duration(seconds: 1),
    );
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('count = $count'),
        actions: [
          IconButton(
            onPressed: () {
              Future.delayed(const Duration(seconds: 1), () {
                setState(() {
                  count++;
                  debugPrint('New count: $count');
                });
              });
            },
            icon: const Icon(Icons.plus_one),
          )
        ],
        bottom: TabBar(
          controller: _controller,
          tabs: const [
            Tab(child: Text('Tab1')),
            Tab(child: Text('Tab2')),
          ],
        ),
      ),
      body: TabBarView(
        controller: _controller,
        children: [
          Center(
            child: Text('In Tab1\ncount = $count', textAlign: TextAlign.center),
          ),
          Center(
            child: Text('In Tab2\ncount = $count', textAlign: TextAlign.center),
          ),
        ],
      ),
    );
  }
}

 Original code sample, slighly updated
import 'package:flutter/material.dart';

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

class App extends StatelessWidget {
  const App({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      themeMode: ThemeMode.dark,
      debugShowCheckedModeBanner: false,
      home: MyScreen(),
    );
  }
}

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

  @override
  State<MyScreen> createState() => _MyScreenState();
}

class _MyScreenState extends State<MyScreen> {
  int count = 1;

  @override
  Widget build(BuildContext context) {
    return DefaultTabController(
      animationDuration: const Duration(seconds: 1),
      length: 2,
      child: Scaffold(
        appBar: AppBar(
          title: Text('count = $count'),
          actions: [
            IconButton(
              onPressed: () {
                Future.delayed(const Duration(seconds: 1), () {
                  setState(() {
                    count++;
                    debugPrint('New count: $count');
                  });
                });
              },
              icon: const Icon(Icons.plus_one),
            )
          ],
          bottom: const TabBar(
            tabs: [
              Tab(child: Text('Tab1')),
              Tab(child: Text('Tab2')),
            ],
          ),
        ),
        body: TabBarView(
          children: [
            Center(
              child: Text('In Tab1\ncount = $count', textAlign: TextAlign.center),
            ),
            Center(
              child: Text('In Tab2\ncount = $count', textAlign: TextAlign.center),
            ),
          ],
        ),
      ),
    );
  }
}

Video demoing the issue (based on the slightly updated code sample)
https://user-images.githubusercontent.com/840911/178990079-48d4fd6a-02c6-4d6f-8e92-8eb18f651cda.mp4


Switch from gevent to futures-based threaded workers to fix ndb concurrency

R: @bryanmau1 CC: @isdal @apolito

lgtm


Expo Router + Tab, added padding and choppy initial start

Hi,
Im testing Expo Router with bottom tabs. I have noticed couple of things:

Once the keyboard is up it shows blue padding i guess this is because of tab height but wandering why is that?
On the initial start i kinda feel that are skipped frames, there is bigger jump for showing the

Slow mode video
https://github.com/kirillzyusko/react-native-keyboard-controller/assets/36937039/ea1b56cb-7c6f-4806-9974-498e74ac8598
Normal speed
https://github.com/kirillzyusko/react-native-keyboard-controller/assets/36937039/6b57f5b4-bcda-4769-8f86-3920537c075e
Repo
https://github.com/MariuzM/expo-starter/tree/chat

For now only way to get rid of padding is by doing, but not sure if this is the optimal solution

Thanks @MariuzM for providing a repro!
I'll try to have a look today evening 👍
I haven't checked your code, but just wondering - where you've added this blue rectangle?

No problem, thank you.
Its on the <Animated.View style={fakeView} /> i should have just added as style prop instead of inside of useAnimatedStyle ive just been lazy :)

Temp fix for android, had todo Platform for Android only because for iOS its also being detected but i don't need because useBottomTabBarHeight already has it.

@MariuzM I think it's the only one solution. You have a pretty complicated layout - not typical for other chat-like apps, where main text input is sticky to the bottom of the screen. Because of that you need to apply additional math.
Since your TextInput is above TabBar then you need to use height - tabBar formula to apply correct paddings.
And yes, on Android you need to add insets.bottom, because it seems like that value was already included in useBottomTabBarHeight value.
One small thing that I would recommend you is to use useSafeAreaInsets hook instead of initialWindowMetrics, just because initialWindowMetrics is a constant and it's not sensitive to changes of this value in runtime.
I'm going to close this issue since we've found a way how to calculate proper paddings for your case. Regarding choppy start problem - would you mind to open a new issue if the problem is still actual for you? I don't want to mix two different issues in a single issue (in future for other people it may simplify a search of old issues).


Update the translation code to handle multiple matches in either direction (forwards or backwards) with Aziz' new CSV

Solved by commit 2805a03


Profit and Loss Model

Customers have requested for a profit and loss final model to be added. Adding this final model will require:

Grouping accounts within quickbooks__general_ledger_by_period per month together to achieve a by month profit and loss.
Documentation on how customers can achieve a P&L/IS for a desired fiscal calendar period.

This Issue has been resolved within PR #6 and will be reflected in release v0.2.0!
Keep an eye on the dbt hub for when the release goes live.


sysbuild/west: runners: Add optional configuration for setting flashing configuration

This set of commits adds optional configuration option to boards when flashing sysbuild-enabled images to allow for:

Setting board priorities, which boards should be flashed before others
Preventing reset after flashing each image and resetting only once all images have been flashed
Preventing commands specified on the command line to west flash running for each image flash stage

These features are opt-in and disabled by default, configurations are added for nrf5340dk_nrf5340, thingy53_nrf5340 and nrf9160dk_nrf9160 boards which addresses some possible issues with flashing multiple images on these boards. The main issues that this resolves are:

Security being enabled by an image, if one of the images enables security on the micro e.g. mcuboot, then without this, later images would fail to flash
Running "west flash --recover" recovering the flash each time an image is flash, wrongly erasing the flash contents from the previous image flash invocations
nRF5340 recovery for the network core recovering both application and network cores, whilst recovery for the application core only impacting the application core

Also fixes #53487 by fixing the wrong argument name used by the stm32cubeprogrammer west flash test script

Actually thinking about this, this will not work for _ns targets

Can you elaborate?

@joerchan I had an issue in the previous iteration which I've since fixed, but it wouldn't have been an issue anyway since TF-M in zephyr creates a single merged hex file which gets flashed - can you give this a try and check it works OK including with any west flash arguments you might use (e.g. --recover)? Also, would there be any plan to split TF-M up with sysbuild so that the secure and non-secure parts are flashed separately or would it always just flash a single hex file?

Our strategy has been to merge all the hex files to a single merged hex file and flash it in a single command.
So if you enable BL2 for example that would also be added to the merged hex file.
I think that is the simplest approach instead of having multiple flash commands.
From this PR this seems like a lot of files needs to be updated for all out-of-tree boards. Which would be a disadvantage for our users I think. It would have been easier if it was defined on SoC level instead of board.
I am not aware of what the plan is for TF-M and sysbuild.

Should some information be runner / flash tool specific defaults and not board based ?
So that nrfjprog default will only issue --recover once and not each board having to specify this information.

Should some information be runner / flash tool specific defaults and not board based ?
So that nrfjprog default will only issue --recover once and not each board having to specify this information.

The problem with this is linkage, for the nrf5340 if you recover the application core, it clears the application core, but if you recover the network core, it clears both cores, for another MCU it might only clear a specific core, so it's not really possible to know how to do that. SoC based would make more sense than board based because an nrf5340 is an nrf5340 no matter what board it is on, so this can be migrated to soc-level for boards v2 in the future instead of being board-specific.

And this gets more complicated with power domains, i.e. assume there are 2 CPUs on a device, a main CPU and a co-processor, for power reduction reasons the power to the co-processor is controlled with a FET by the main CPU, if there is no image on the main CPU or it has not started executing, the second CPU cannot be flashed because there will be no power


Add gitpod config

closes #300
prerequisites:

[x] branch is up-to-date with the branch to be merged with, i.e. develop
[x] build is successful
[x] code is cleaned up and formatted
[ ] tested with Firefox 52, Firefox 57+, Chrome 64+, MS Edge 16+

Summary
This commit adds support for Gitpod.io, a free automated dev environment that makes contributing and generally working on GitHub projects much easier. It allows anyone to start a ready-to-code dev environment for any branch, issue and pull request with a single click.

It looks like the CircleCI fix in #298 only works for a single branch and build...


Live Share Problem

LiveShare.zip

Product and Version [VS/VSCode]:
OS Version [macOS/Windows]:
Live Share Extension Version:
Target Platform or Language [e.g. Node.js]:
Steps to Reproduce / Scenario:

Hey @DeniseAreza, thanks for the feedback! Can you add more information for us to investigate? Can you describe what the issue is and add repro steps?
Thanks!

Closing due to inactivity.


chore(package): update kronos-flow to version 2.5.39

Coverage remained the same at 14.035% when pulling 51fde8d14e95792b6f949931d0a471c963994096 on greenkeeper/kronos-flow-2.5.39 into 3ca66607580aea31fe1f571bc9b238a9a3fc7dd5 on master.


Develop crosslink banner for homepage

Related design issue: https://github.com/carbon-design-system/carbon-platform/issues/1235
For the v1 release, we need a banner on the homepage that will link the Next platform site out to the Main Carbon site.
Interactions:

Banner only exists on the homepage
Banner is not sticky and scrolls away

Content

The exact content is still TBD. @aubrey-oneal to finalize

Spec
Figma file

Hey team! Please add your planning poker estimate with Zenhub @andreancardona @francinelucca @jdharvey-ibm


Provide sources automatically

I saw that in some library like OkHttp, source code is provided automatically when we have a dependency to the library. As you include lot of code in different module, I want to have sources directly in my IDE it's easier to handle the framework lifecycle with the sources !
Thanks :)

Sources and javadoc are provided through maven central.
The problem is that the library is packed as .aar and not as a solid .jar. Android Studio is not able to load sources or javadoc for .aar files. Don't ask my why.
https://code.google.com/p/android/issues/detail?id=77425
https://groups.google.com/forum/#!topic/adt-dev/yVPo71O_ZKM
OkHttp is packed as a .jar. Actually, you can try the testing module which is a simple  .jar. The sources and javadoc for them will be loaded automatically:
compile  'com.hannesdorfmann.mosby:testing:1.0.0'

Try to open MvpLcePresenterTest and you will see that sources / javadoc are attached correctly.
You may find this helpful (never used, because I use IntelliJ 14 / Android Studio 1.2 beta which has a build in decompiler):
https://github.com/xujiaao/AARLinkSources


Optimize eds-core-react bundle size

Bundle size for eds-core-react has gotten a lot bigger, 1.8mb with just a few typescript components, expected to increase by much more when done with typescript.
Look at ways to reduce bundle size

Bundle all typescript declarations into one file d.ts file?
Seperate .map files from published and dev bundle?
Do we need all modules types still (umd/cjs/es)? Looking at you umd 👀

I think Storybook uses the UMD module 🤔 Must look into that. But the mapfiles can probably be omitted from production.

UMD is needed for the CDN, if someone wants to play around with the components in Codepen for example.

The storybook needs the .map file, which makes sense. Was thinking of maybe making some more targeted builds.
So maybe if we have something like?

Development: esm, umd, cjs + map files
Production (or npm?): esm + cjs
CDN: umd

For bundling the type files take a look at api extractor

Using api extractor seemed to be buggy with our usage of compound components. Postponing this as we might need do other changes for "tree-shaking" of commonjs (like named imports)
Leaving umd files as is, as it works nicely with unpkg.com method letting people use it directly in html


"Center on launch" section uses initialPos, should be initialPosition

I am a complete beginner, so feel free to ignore if I am missing something.
The interactions detailed in the "Center on launch" section use ""initialPos": x,y" instead of ""initialPosition": x,y". This caused me to waste some time until I figured out why my settings were not working, as I just copied from the examples given there. Should these be changed?
cheers

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

ID: 4da2bad9-1b85-abf2-db4a-1d3d5a9a75f7
Version Independent ID: a12dfff0-f5e7-606d-421d-59e01186ff89
Content: Windows Terminal Startup Settings
Content Source: TerminalDocs/customize-settings/startup.md
Product: dev-environment
Technology: windows-terminal
GitHub Login: @cinnamon-msft
Microsoft Alias: cinnamon

You are totally right. Thanks for letting us know!


Rename of android target to androidTarget

https://kotlinlang.org/docs/multiplatform-compatibility-guide.html#rename-of-android-target-to-androidtarget

Related to #356


Incorrect screenshot and info for share permission

Hi team,
https://docs.microsoft.com/en-us/azure/azure-netapp-files/azure-netapp-files-create-volumes-smb#share-permissions
I believe the following text and screenshot are incorrect.
_"By default, a new volume has the Everyone / Full Control share permissions. Members of the Domain Admins group can change the share permissions as follows:
Map the share to a drive.
Right-click the drive, select Properties, then go to the Security tab."_
Right clicking an ANF SMB share will not show the SMB share permissions, it wil only show the NTFS permission.
The screenshot does actually show a mapped drive and the share permissions, so I assume this screenshot has been taken from a non-ANF share.
My understanding is that the ANF SMB share permission cannot be changed (not even through computer management, which is actually in the FAQ: https://docs.microsoft.com/en-us/azure/azure-netapp-files/azure-netapp-files-faqs#can-i-manage-smb-shares-sessions-and-open-files-through-computer-management-console-mmc ) and are always set to EVERYONE.

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

ID: fc5f5a0e-0ac8-6c79-c13a-5857505314cd
Version Independent ID: 2e84acd0-241e-1aca-71f9-98bd9dd92b63
Content: Create an SMB volume for Azure NetApp Files
Content Source: articles/azure-netapp-files/azure-netapp-files-create-volumes-smb.md
Service: azure-netapp-files
GitHub Login: @b-juche
Microsoft Alias: b-juche

Thanks, @RutgerKosters.  Checking with them about this.


🏷 Adding Type Annotations

Request:

adding type Annotations to the function signatures,
add the py.typed marker so that other packages can type check against the type annotations

Cheers!
My current plan is to release type hints for compose in a secondary stub-only package.
I'm not sure how soon I'll get to it, and there are some tricky things to figure out. (I wrote a little bit more on that in the comments of this StackOverflow question.)

So here's the situation when I last looked into it:
Problem: there's no way to do just one type-hint for variadic compose. We have to do type hint overloads for each arity, like this:
from typing import Callable, TypeVar, ParamSpec, overload

P = ParamSpec('P')
R1 = TypeVar('R1')
R2 = TypeVar('R2')
@overload
def compose(f2: Callable[[R1], R2], f1: Callable[P, R1]) -> Callable[P, R2]:
    ...
R3 = TypeVar('R3')
@overload
def compose(f3: Callable[[R2], R3], f2: Callable[[R1], R2], f1: Callable[P, R1]) -> Callable[P, R3]:
    ...
R4 = TypeVar('R4')
@overload
def compose(f4: Callable[[R3], R4], f3: Callable[[R2], R3], f2: Callable[[R1], R2], f1: Callable[P, R1]) -> Callable[P, R4]:
    ...
# and so on, up to some large number

When I last tried that, it seemed that MyPy had issues with typing.overload in the same file as the code; I haven't yet gotten around to testing it in a separate typing stub file, but if that works then that might be the best we can do.
(I'm hoping that the above type-hint overloads work well enough for most cases despite compose/acompose/sacompose being classes with callable instances - a more precise solution would be to type-hint __init__ and __call__ in a way that links the types between them, assuming the existing type hint stuff can even handle that.)

Finally got around to sitting down and trying the typing stubs package approach. It works!
At least with MyPy (although it turns out that order of overloads still matters; possibly related: https://github.com/python/mypy/issues/1270 ).

Implemented in compose-stubs, about as well as it can be.
I'll promote the stubs to stable v1 release (and push out a compose release with the description updated to mention the stubs package) soon unless someone catches a serious problem that I missed.

Okay, compose-stubs is now officially released as v1.0.0, and compose v1.5.0 now officially points to it in the package description and repo README.


Add ERL_FLAGS option

Give priority in front on CFLAGS incase cross-compile is attempted
Set to '-I$(ERL_EI_INCLUDE_DIR)' if not set already

The main reason for this is because of differences between erl_int_sizes_config.h in our toolchain, and the standard erlang one. The difference that is affecting us is the definitions of the size of long integers, where the standard erlang definition is 8 bytes, but for our toolchain it is 4 bytes. There is also the same size difference between the pointer definitions, but I don't think that is affecting us (here, at least).
Standard Erlang erl_int_sizes_config.h
/* include/x86_64-pc-linux-gnu/erl_int_sizes_config.h.  Generated from erl_int_sizes_config.h.in by configure.  */
/*
 * %CopyrightBegin%
 *
 * Copyright Ericsson AB 2004-2016. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * %CopyrightEnd%
 */

/* The number of bytes in a char.  */
#define SIZEOF_CHAR 1

/* The number of bytes in a short.  */
#define SIZEOF_SHORT 2

/* The number of bytes in a int.  */
#define SIZEOF_INT 4

/* The number of bytes in a long.  */
#define SIZEOF_LONG 8

/* The number of bytes in a long long.  */
#define SIZEOF_LONG_LONG 8

/* The size of a pointer. */
#define SIZEOF_VOID_P 8

Our toolchain erl_int_sizes_config.h
/* include/arm-poky-linux-gnueabi/erl_int_sizes_config.h.  Generated from erl_int_sizes_config.h.in by configure.  */
/*
 * %CopyrightBegin%
 *
 * Copyright Ericsson AB 2004-2016. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * %CopyrightEnd%
 */

/* The number of bytes in a char.  */
#define SIZEOF_CHAR 1

/* The number of bytes in a short.  */
#define SIZEOF_SHORT 2

/* The number of bytes in a int.  */
#define SIZEOF_INT 4

/* The number of bytes in a long.  */
#define SIZEOF_LONG 4

/* The number of bytes in a long long.  */
#define SIZEOF_LONG_LONG 8

/* The size of a pointer. */
#define SIZEOF_VOID_P 4

The main reason for this is because of differences between erl_int_sizes_config.h in our toolchain, and the standard erlang one. The difference that is affecting us is the definitions of the size of long integers, where the standard erlang definition is 8 bytes, but for our toolchain it is 4 bytes. There is also the same size difference between the pointer definitions, but I don't think that is affecting us (here, at least).
Standard Erlang erl_int_sizes_config.h
/* include/x86_64-pc-linux-gnu/erl_int_sizes_config.h.  Generated from erl_int_sizes_config.h.in by configure.  */
/*
 * %CopyrightBegin%
 *
 * Copyright Ericsson AB 2004-2016. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * %CopyrightEnd%
 */

/* The number of bytes in a char.  */
#define SIZEOF_CHAR 1

/* The number of bytes in a short.  */
#define SIZEOF_SHORT 2

/* The number of bytes in a int.  */
#define SIZEOF_INT 4

/* The number of bytes in a long.  */
#define SIZEOF_LONG 8

/* The number of bytes in a long long.  */
#define SIZEOF_LONG_LONG 8

/* The size of a pointer. */
#define SIZEOF_VOID_P 8

Our toolchain erl_int_sizes_config.h
/* include/arm-poky-linux-gnueabi/erl_int_sizes_config.h.  Generated from erl_int_sizes_config.h.in by configure.  */
/*
 * %CopyrightBegin%
 *
 * Copyright Ericsson AB 2004-2016. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * %CopyrightEnd%
 */

/* The number of bytes in a char.  */
#define SIZEOF_CHAR 1

/* The number of bytes in a short.  */
#define SIZEOF_SHORT 2

/* The number of bytes in a int.  */
#define SIZEOF_INT 4

/* The number of bytes in a long.  */
#define SIZEOF_LONG 4

/* The number of bytes in a long long.  */
#define SIZEOF_LONG_LONG 8

/* The size of a pointer. */
#define SIZEOF_VOID_P 4


Fix: Fixed Drift within pra_application attribute in zpa_policy_credential_access_rule

Provide a general summary of your changes in the title above. You should
remove this overview, any sections and any section descriptions you
don't need below before submitting. There isn't a strict requirement to
use this template if you can structure your description and still cover
these points.
Description
Describe your changes in detail through motivation and context. Why is
this change required? What problem does it solve? If it fixes an open
issue, link to the issue using GitHub's closing issues keywords1.
Has your change been tested?
Explain how the change has been tested and what you ran to confirm your
change affects other parts of the code. Automated tests are generally
expected and changes without tests should explain why they aren't
required.
Screenshots (if appropriate):
Types of changes
What sort of change does your code introduce/modify?

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] My code follows the code style of this project.
[x] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.
[x] This change is using publicly documented and stable APIs.

Codecov Report
Attention: Patch coverage is 28.94737% with 27 lines in your changes missing coverage. Please review.

Project coverage is 75.48%. Comparing base (bf55dfe) to head (db2e1dc).

Files with missing lines
Patch %
Lines

zpa/resource_zpa_segment_group.go
25.00%
13 Missing and 2 partials :warning:

zpa/resource_zpa_policy_credential_access_rule.go
30.00%
4 Missing and 3 partials :warning:

zpa/resource_zpa_policy_access_timeout_rule_v2.go
25.00%
2 Missing and 1 partial :warning:

...pa/resource_zpa_policy_capabilities_access_rule.go
33.33%
1 Missing and 1 partial :warning:

Additional details and impacted files

@@            Coverage Diff             @@
##           master     #491      +/-   ##
==========================================
- Coverage   75.63%   75.48%   -0.16%
==========================================
  Files          92       92
  Lines       17363    17394      +31
==========================================
- Hits        13133    13129       -4
- Misses       3390     3422      +32
- Partials      840      843       +3

Files with missing lines
Coverage Δ

zpa/common.go
63.56% <100.00%> (+0.03%)
:arrow_up:

zpa/resource_zpa_pra_portal_controller.go
56.48% <ø> (ø)

...pa/resource_zpa_policy_capabilities_access_rule.go
79.69% <33.33%> (ø)

zpa/resource_zpa_policy_access_timeout_rule_v2.go
71.69% <25.00%> (ø)

zpa/resource_zpa_policy_credential_access_rule.go
75.20% <30.00%> (-1.05%)
:arrow_down:

zpa/resource_zpa_segment_group.go
51.07% <25.00%> (-6.32%)
:arrow_down:

... and 3 files with indirect coverage changes


Tag multi-file-upload browser tests that fail on Azure, and skip those tests.

Description
Add tag to for multi-file-upload tests that fail on Azure. Skip those tests.
1 - Add tag: @multi-file-upload to failing tests
2 - Detect when tests are running against an Azure server
3 - Set a reverse grep list of tags to pass on to playwright to skip those tests.
Checklist
General
Read the full guidelines for PRs here

[X] Added the correct label: < feature | enhancement | bug | under-development | dependencies | infrastructure | ignore-for-release | database >
[X] Assigned to a specific person, civiform/developers, or a more specific round-robin list
[X] Added an additional reviewer from outside your organization as FYI (if the primary reviewer is in the same organization as you)
[X] Removed the release notes section if the title is sufficient for the release notes description, or put more details in that section.
[X] Created unit and/or browser tests which fail without the change (if possible)
[X] Performed manual testing (Chrome and Firefox if it includes front-end changes)
[X] Extended the README / documentation, if necessary. For user-facing features, consider updating the user docs. For "under-the-hood" changes or things more relevant to developers, consider updating the dev wiki.
[X] Ensured PII wasn't added to any new logs, unless it was guarded by isDevOrStaging

Fixes #9293

Updating the wait_for...sh script like this isn't going to behave consistently. Any ad-hoc use of --grep-invert is going to override what is in the script.
The shell scripts already pass through arguments via the $@ down to Playwright.
Keep the tag on the application_review.test.ts file, but the changes to the shell scripts are unneeded.
With the test tagged we just need to modify the test workflow file to conditionally ignore the tag. Something like this
run: |
  if [[ "${{ matrix.cloud }}" == "azure" ]]; then
    bin/run-browser-tests-ci --shard="${{ matrix.shard_number }}/${{ strategy.job-total }}" --grep-invert "@skip-on-azure"
  else
    bin/run-browser-tests-ci --shard="${{ matrix.shard_number }}/${{ strategy.job-total }}"
  fi

Running it from the cli manually won't automatically pickup that you want to ignore it, but a bash alias can solve that
alias run-browser-tests-azure='bin/run-browser-tests --grep-invert "@skip-on-azure"'

There should be a way to have the alias automatically created upon creation of the devcontainer.

Made the change to move the detection of the context and setting of the grep invert to the test definition file.
I think the spirit of the change is to skip this test on the CI run only.. so not making any changes to the manually cli runs by a dev is better imo ..   no need to add an alias imo.

If you need to skip this on the azure deploy as well just append --grep-invert "@northstar|@skip-on-azure" to this line.

@dkatzz if we're ready to enable it. I have something already I can push. I just need to rebase it.

@dkatzz if we're ready to enable it. I have something already I can push. I just need to rebase it.

Thank you, @gwendolyngoetz !!


bug: "unknown flag"

Consider:
$ echo 10 | jq '-1 * .'
-10

$ echo 10 | gojq '-1 * .'
gojq: unknown flag `1'

The above transcript is from a bash shell.

Honestly flag parsing compatibility is hard to archive; gojq -- '-1 * .' works but different than jq.

I'm not sure the behavior of jq -n -0 # prints -0 is correct. Both gojq -0n and gojq -n0 are considered as short flags (-0 and -n) with no query. It is difficult to implement the exact behavior query starting with -

Maybe standard (bash-style) flag-handling is really difficult in Go?
To minimize confusion, perhaps gojq should assume that unless the "last argument" can be interpreted as a valid flag or valid combination of flags, it should be treated as a filter:
$ jq -M '-.' <<< 0
-0

$ gojq -M '-.' <<< 0
gojq: unknown flag `.'

(As you may know, the idea that jq should allow the filter to be dropped has historically been the source of great difficulty and confusion.)

Based on the go-flags library (already forked for --arg), I can't fix this in the near future.

Maybe standard (bash-style) flag-handling is really difficult in Go?

The flag parsing in jq is the outlier here. Most standard (e.g. coreutils) tools do not parse flags this way. Here's an example using cat core coreutils:
$ echo foo > /tmp/foo
$ echo bar > ./-.
$ cat -v /tmp/foo -.
cat: invalid option -- '.'
Try 'cat --help' for more information.
$ cat -v -- /tmp/foo -.
foo
bar

Right, using double dash fixes all the ambiguous arguments. I noticed there is IgnoreUnknown option in go-flags and it fixes some of the problems, but raises different problem that ./gojq -X reports function not defined: X/0 error instead of unknown flag X. We may fix in heuristic way.

IgnoreUnknown option also has problem that it enables the parsed option in the leading argument; -0 + . should not enable the nul output option.

I fixed the behavior. I hope it breaks nothing.


buckets, 404 Not Found

Hi,
Should I do any further changes after the install based on your doc?
Becase I got this message:
log:
"/api/s3/buckets/grouped? HTTP/1.1" 404 "
GUI:
Request failed for buckets/grouped, 404 Not Found
And I do not really understand the cause, the config is working fine and the permission have already been added, I am currently use openshift.
Do you have any suggestions?

Please check if you have all the required config for the backend: https://github.com/spreadshirt/backstage-plugin-s3/tree/main/plugins/s3-viewer-backend, the 404 looks a bit like the routes could be missing from the backend.
Apart from that, are there any other error logs that could be related?  Do any requests to /api/s3 work?


fix: Remove maxcpucount from GitHub Actions

What kind of change does this PR introduce?

Planning to continue https://github.com/reactiveui/ReactiveUI.Validation/pull/190#issuecomment-749474150 investigation in this PR. This PR actually removes /maxcpucount from Restore/Build the sample task. Planning to rerun the CI a couple of times to verify.

Checked multiple times, seems to work fine so far.


perf: improve some instances in Finsupp

!bench

I don't understand what you want me to do about the comments

Sorry for being obtuse. I'm just saying move the comments involving the library note to the library note PR itself. For this and the others.
I think we are still working out best practices for that note and don't think this should be held up by that process.

bors d+
Thanks!

bors r+


root: enable clad for automatic differentiation and clean CMake flags

Description of changes
Clad is a clang plugin that can be used in Cling to create gradients of
C++ functions.
It is included in ROOT via ExternalProject_Add:
https://github.com/root-project/root/blob/master/interpreter/cling/tools/plugins/clad/CMakeLists.txt
Clad is used for example in RooFit to create analytical gradients of
likelihoods.
Two other changes in separate commits:

revert one commit from #308122 about disabling warnings that was actually wrong
to make the configuration clearer and more future-proof, avoid cmake flags that are identical to the default

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

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

You could probably try to pin a download for clad by setting some FETCHCONTENT_SOURCE_DIR_*.

So the build with clad is failing https://github.com/NixOS/nixpkgs/pull/308497/checks?check_run_id=24533603142, you may need to sideload via FETCHCONTENT_SOURCE_DIR_ from a fetchgit (e.g. this is how it's done in arrow-cpp package).

So the build with clad is failing https://github.com/NixOS/nixpkgs/pull/308497/checks?check_run_id=24533603142, you may need to sideload via FETCHCONTENT_SOURCE_DIR_ from a fetchgit (e.g. this is how it's done in arrow-cpp package).

Ok, I have done this! Thanks a lot for the idea! It took a bit longer because I figure out some patches necessary to the cmake files, but fingers crossed it works now.

By the way, it's super great that the package is built with builtin_llvm=OFF here :+1: That will be interesting with ROOT 6.32, which used LLVM 16 instead of 13. I'm curious if it will work!

Result of nixpkgs-review pr 308497 run on x86_64-darwin 1

3 packages marked as broken and skipped:

apfelgrid
applgrid
root5

1 package failed to build:

ns-3

6 packages built:

hepmc3
python311Packages.hepmc3
python312Packages.hepmc3
root
xfitter
yoda-with-root

@veprbl, it it normal that the darwin tests can time out?

That's normal. @ofborg is setup with shorter timeouts on darwin, but Hydra will build it just fine.


cannot use gpt-3.5-turbo

select
  completion
from
  openai_completion
where
  settings = '{
    "model": "gpt-3.5-turbo"
  }'
  and prompt = 'what is steampipe?'

Error: error, status code: 404, message: This is a chat model and not supported in the v1/completions endpoint. Did you mean to use v1/chat/completions?

The version on this branch, https://github.com/turbot/steampipe-plugin-openai/tree/use-sashabaranov-go-openai, uses a newer Go SDK, and focuses specifically on my need to use the gpt-3.5-turbo model.  The new SDK also implements ChatML, https://github.com/openai/openai-python/blob/main/chatml.md, which I think at the moment works with that particular model.
I'm not sure whether/how to integrate this into the existing plugin, I just made the branch to get unblocked on a project. I suspect that as/when ChatML matures, it may be helpful to provide user-configurable settings to control the messages sent by the user.
	resp, err := conn.CreateChatCompletion(
		context.Background(),
		openai.ChatCompletionRequest{
			Model: openai.GPT3Dot5Turbo,
			Messages: []openai.ChatCompletionMessage{
				{
					Role:    openai.ChatMessageRoleUser,
					Content: d.EqualsQualString("prompt"),
				},
			},
		},
	)

A user reports:
Trying out the openai plugin, it errors out with
ERROR:  rpc error: code = Unknown desc = openai: error, status code: 404
on simple query from the documentation like:
select
  completion
from
  openai_completion
where
  prompt = 'Write a tagline for an ice cream shop.';

I tried rebuilding with the new sdk and:
> select
  *
from
  openai_completion
where
  prompt = 'Write a tagline for an ice cream shop.'

Error: openai: error, status code: 404, message: The model `text-davinci-003` has been deprecated, learn more here: https://platform.openai.com/docs/deprecations (SQLSTATE HV000)

+------------+-------+---------------+-----------+--------+----------+------+
| completion | index | finish_reason | log_probs | prompt | settings | _ctx |
+------------+-------+---------------+-----------+--------+----------+------+
+------------+-------+---------------+-----------+--------+----------+------+
> select
  *
from
  openai_completion
where
  prompt = 'Write a tagline for an ice cream shop.'
  and settings = '{
    "model" : "gpt-3.5-turbo"
  }'

Error: openai: this model is not supported with this method, please use CreateChatCompletion client method instead (SQLSTATE HV000)

+------------+-------+---------------+-----------+--------+----------+------+
| completion | index | finish_reason | log_probs | prompt | settings | _ctx |
+------------+-------+---------------+-----------+--------+----------+------+
+------------+-------+---------------+-----------+--------+----------+------+

So as per above I suspect the plugin needs to not only use the new SDK but call a different endpoint to do chat-oriented completion with the newer models.

Any news on this? I see those 404 also

Check #27


Update thumbnail after change some layer visibility

Simple Code to hide some guide and mask layers in psd files and save, working super fast even with large psd files.
for layer in psd:
    if layer.name in ["mask", "guide"]:
        layer.visible = False

The file it self is right when open it in Photoshop, But it still use the old embedded thumbnail,
I want to know if there is a way to update the embedded thumbnail.

No, there is no way to update a rendered thumbnail. There is no full-featured rendering engine built in psd-tools.

No, there is no way to update a rendered thumbnail. There is no full-featured rendering engine built in psd-tools.

Is there some alternate way to render the image external or just use another image to replace the embedded one ?

Is there some alternate way to render the image external or just use another image to replace the embedded one ?

Use Adobe Photoshop for that workload.

Use Adobe Photoshop for that workload.


netx: Invalid argument: net.sourceforge.jnlp.util.optionparser.InvalidArgumentException: [ , /tmp/kvm_.jnlp]

Hi,
when getJavawsArgs() returns an empty string, javaws refuses to launch: "netx: Invalid argument: net.sourceforge.jnlp.util.optionparser.InvalidArgumentException: [ , /tmp/kvm_.jnlp]"
Also there's no -wait flag in my javaws despite OpenJDK 1.8.0 is properly installed (see attached logs). This could be my fault I guess. Maybe the version and thus flag existence should be matched against javaws?
This patch fixed the problem (stdout & stderr redirected for better debugging):
diff --git a/main.go b/main.go
index 195c530..4c81f7f 100644
--- a/main.go
+++ b/main.go
@@ -54,8 +54,6 @@ func getJavawsArgs(waitFlag bool) string {
 		strings.Contains(string(slurp[:]), "1.8") {
 		if waitFlag {
 			javawsArgs = "-wait"
-		} else {
-			javawsArgs = ""
 		}

 	}
@@ -196,7 +194,10 @@ func main() {

 	// Launch it!
 	log.Printf("Launching KVM session with %s", filename)
-	if err := exec.Command(*_javaws, getJavawsArgs(*_wait), filename, "-nosecurity", "-noupdate", "-Xnofork").Run(); err != nil {
+	cmd := exec.Command(*_javaws, getJavawsArgs(*_wait), filename, "-nosecurity", "-noupdate", "-Xnofork")
+	cmd.Stdout = os.Stdout
+	cmd.Stderr = os.Stderr
+	if err := cmd.Run(); err != nil {
 		os.Remove(filename)
 		log.Fatalf("Unable to launch DRAC (%s), from file %s", err, filename)
 	}

My environment:
rush@jarvis:~$ java -version
openjdk version "1.8.0_181"
OpenJDK Runtime Environment (build 1.8.0_181-8u181-b13-0ubuntu<IP_ADDRESS>-b13)
OpenJDK 64-Bit Server VM (build 25.181-b13, mixed mode)

rush@jarvis:~$ javaws -version
icedtea-web 1.6.2 (1.6.2-3ubuntu1)

rush@jarvis:~$ javaws

SYNOPSIS
    javaws [-run-options] jnlp file
    javaws [-control-options]

OPTIONS
    When specifying options, the name of the jnlp file can be after the command, the -jnlp option, an option with no arguments, or after an argument with an option that takes one argument. A html file that launches a jnlp can be specified after the -html option.
    The jnlp-file can either be a url or a local path.
    The JNLP file should only be specified once, whether as a main argument, after -jnlp or through an html file.
    Control options:
    -about               - Shows a sample application.(No argument expected)
    -help                - Prints out information about supported command and basic usage.(No argument expected)
    -license             - Display the GPL license and exit.(No argument expected)
    -viewer              - Shows the trusted certificate viewer.(No argument expected)
    -Xclearcache         - Clean the JNLP application cache.(No argument expected)
    Run options:
    -allowredirect       - Follows HTTP redirects.(No argument expected)
    -arg arg             - Adds an application argument before launching.(Expected one or more arguments)
    -headless            - Disables download window, other UIs.(No argument expected)
    -html                - Location of HTML file to launch (url or file). You can use parameter ALL  or numbers (like 1 2 5) to select applets on page. However experimental, this switch should keep you still in safety.(Expected one or more arguments)
    -jnlp                - Location of JNLP file to launch (url or file).(Exactly one argument expected)
    -nosecurity          - Disables the secure runtime environment.(No argument expected)
    -noupdate            - Disables checking for updates.(No argument expected)
    -param name=value    - Adds an applet parameter before launching.(Expected one or more arguments)
    -property name=value - Sets a system property before launching.(Expected one or more arguments)
    -strict              - Enables strict checking of JNLP file format.(No argument expected)
    -update seconds      - Check for updates.(Exactly one argument expected)
    -verbose             - Enable verbose output.(No argument expected)
    -version             - Print the IcedTea-Web version and exit.(No argument expected)
    -Xignoreheaders      - Skip jar header verification.(No argument expected)
    -xml                 - Uses a strict XML parser to parse the JNLP file.(No argument expected)
    -Xnofork             - Do not create another JVM.(No argument expected)
    -Xoffline            - Prevent ITW network connection. Only cache will be used. Application can still connect.(No argument expected)
    -Xtrustnone          - Instead of asking user, will foretold all answers as no.(No argument expected)

Thanks for your report. I'll check this afternoon.

I use you diff to fix it. Thanks again.


Conceptual: Override "replicaSet" using kustomization

Hey team,
Is it possible to override the ReplicaSet (which is in deployment.yaml ) by using configData.?

I'm not sure I understand this question. What is it that you would like to achieve?

yeah to be more specific , is there any possibility for overriding replica set using ConfigData CRD.
for example :
 deployment .yaml:
apiVersion: apps/v1 kind: Deployment metadata:   name: image1   namespace: default   labels:     app: image1 spec:   replicas: 1   selector:     matchLabels:       app: image1   template:     metadata:       labels:         app: image1     spec:       containers:       - image: noimage:v0.0.0         name: image1         ports:         - containerPort: 9898           name: http
Here the value of "replicaset" in deployment.yaml file is 1.
if it can be overridden by using configdata resource kind  :
`apiVersion: config.ocm.software/v1alpha1
kind: ConfigData
metadata:
name: ocm-config
localization:

name: image
file: deployment.yaml
image: spec.template.spec.containers[0].image
resource:
name: image
name: replicaSet
file: deployment.yaml
image: spec.replicas
resource:
name: replicaSet
value: 3`
so here I am trying to override the "replicaset" from value 1 to value 3
would it be achievable ?
I understand it can be achieved by changing the value in "deployment.yaml" file . please advise

Basically take the deployment, and create the same deployment, but replace the parts that you want and remove everything else, then run the merge.

Oh, I misunderstood replicaSet to change the deployment to a replicaSet... :D :D There is a much simpler way with ConfigData.
You can see an example here: https://github.com/open-component-model/MPAS/blob/main/examples/products/podinfo/app/backend/config.yaml

It worked using the example : https://github.com/open-component-model/MPAS/blob/main/examples/products/podinfo/app/backend/config.yaml .


bundle not loaded on real IOS device

Hello everyone,
There's an issue I have been facing while trying to run this app on IOS device, it installs perfectly, npm also starts working but when I try to open the app the bundle doesn't loads. On Emulator the bundle loads successfully. If anyone knows solution, hit me up.
Thanks.

Please describe briefly
On Wed, 2 Dec 2020, 6:05 PM github-actions[bot]<EMAIL_ADDRESS>wrote:

⚠ Missing Environment Information
ℹ Your issue may be missing information about your development
environment. You can obtain the missing information by running react-native
info in a console.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/facebook/react-native/issues/30516#issuecomment-737218263,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARRZT3VQ6GZJLZFU4DWWWDDSSY3SVANCNFSM4UKOYR6A
.

https://github.com/facebook/react-native/issues/30500 is this the same issue?

Yes, it is.
On Thu, 3 Dec 2020 at 16:44, Madhu Kumar D S<EMAIL_ADDRESS>wrote:

#30500 https://github.com/facebook/react-native/issues/30500 is this
the same issue?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/facebook/react-native/issues/30516#issuecomment-737890760,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARRZT3Q2VZW2DRKXAXIKQILSS523BANCNFSM4UKOYR6A
.

my react native version is 0.63.4
On Thu, 3 Dec 2020 at 16:44, Madhu Kumar D S<EMAIL_ADDRESS>wrote:

#30500 https://github.com/facebook/react-native/issues/30500 is this
the same issue?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/facebook/react-native/issues/30516#issuecomment-737890760,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARRZT3Q2VZW2DRKXAXIKQILSS523BANCNFSM4UKOYR6A
.

run perfectly on emulator but not run on real ios device (npm start but
bundle not load)
On Thu, 3 Dec 2020 at 16:44, Madhu Kumar D S<EMAIL_ADDRESS>wrote:

#30500 https://github.com/facebook/react-native/issues/30500 is this
the same issue?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/facebook/react-native/issues/30516#issuecomment-737890760,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARRZT3Q2VZW2DRKXAXIKQILSS523BANCNFSM4UKOYR6A
.

Same error here using react native version 0.61.5 and xcode 12.2 (bundle not loaded)

run perfectly on emulator but not run on real ios device (npm start but bundle not load)
…
On Thu, 3 Dec 2020 at 16:44, Madhu Kumar D S @.***> wrote: #30500 <#30500> is this the same issue? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#30516 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARRZT3Q2VZW2DRKXAXIKQILSS523BANCNFSM4UKOYR6A .

I managed to make it work correctly with the iPhone and Mac connected on the same network!
The bundle does not work over a USB connection, so they must be active on the same network and you can verify that it has access.
To test: Go to System Preferences> Network and look for your machine's local ip. If you have something running on the same network, like a localhost: 3000; it must also be accessible on machines_ip: 3000 and your bundle not loaded error must be gone!

@luizguilherme5 did you happen to try archiving the release app exporting it and running on a real device / on BrowserStack ?

Before create archive, when i run my app on real device the jsbundle not
loading when i kill my app and start again the jsbundle load successfully
when i create archive and then i run my app on real device the jsbundle not
loading in both process. I also tried your suggested solution but nothing
happened well.
Please suggest a better solution.
Thanks.
On Thu, 3 Dec 2020 at 23:20, Luiz Guilherme Silva<EMAIL_ADDRESS>wrote:

run perfectly on emulator but not run on real ios device (npm start but
bundle not load)
… <#m_2433054491877917443_>
On Thu, 3 Dec 2020 at 16:44, Madhu Kumar D S @.***> wrote: #30500
https://github.com/facebook/react-native/issues/30500 <#30500
https://github.com/facebook/react-native/issues/30500> is this the same
issue? — You are receiving this because you authored the thread. Reply to
this email directly, view it on GitHub <#30516 (comment)
https://github.com/facebook/react-native/issues/30516#issuecomment-737890760>,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARRZT3Q2VZW2DRKXAXIKQILSS523BANCNFSM4UKOYR6A
.
I managed to make it work correctly with the iPhone and Mac connected on
the same network!
The bundle does not work over a USB connection, so they must be active on
the same network and you can verify that it has access.
To test: Go to System Preferences> Network and look for your machine's
local ip. If you have something running on the same network, like a
localhost: 3000; it must also be accessible on machines_ip: 3000 and your
bundle not loaded error must be gone!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/facebook/react-native/issues/30516#issuecomment-738192344,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARRZT3V3EWI3JXSU4QWUEKDSS7JFVANCNFSM4UKOYR6A
.

any updates ?

Not yet!
Still waiting for the best solution.
On Thu, 17 Dec 2020 at 14:02, Madhu Kumar D S<EMAIL_ADDRESS>wrote:

any updates ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/facebook/react-native/issues/30516#issuecomment-747307043,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARRZT3UQ5XCHUPMJWJGWWKDSVHCIZANCNFSM4UKOYR6A
.

Did you find any solution?
On Thu, 17 Dec 2020 at 14:02, Madhu Kumar D S<EMAIL_ADDRESS>wrote:

any updates ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/facebook/react-native/issues/30516#issuecomment-747307043,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARRZT3UQ5XCHUPMJWJGWWKDSVHCIZANCNFSM4UKOYR6A
.

can you check if this is set to release

Already checkedSent from my Huawei phone-------- Original message --------From: Madhu Kumar D S<EMAIL_ADDRESS>Mon, 28 Dec 2020, 11:19 AMTo: facebook/react-native<EMAIL_ADDRESS>hashimalikhan-123<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Re: [facebook/react-native] bundle not loaded on real IOS device (#30516)
can you check if this is set to release
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

Guys, any updates ?

Guys, any updates ?

NopeSent from my Huawei phone-------- Original message --------From: Stanislav771100<EMAIL_ADDRESS>Wed, 6 Jan 2021, 7:40 PMTo: facebook/react-native<EMAIL_ADDRESS>hashimalikhan-123<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Re: [facebook/react-native] bundle not loaded on real IOS device (#30516)
Guys, any updates ?
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

NopeSent from my Huawei phone-------- Original message --------From: Stanislav771100<EMAIL_ADDRESS>Wed, 6 Jan 2021, 7:40 PMTo: facebook/react-native<EMAIL_ADDRESS>hashimalikhan-123<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Re: [facebook/react-native] bundle not loaded on real IOS device (#30516)
Guys, any updates ?
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

1.Delete main.jsbundle from ios folder.
2.Run this command
react-native bundle --entry-file index.js --platform ios --dev false --bundle-output ios/main.jsbundle --assets-dest ios
3.Try again

react-native-cli: 2.0.1
react-native: 0.61.5
node: v13.4.0
"build:ios": "react-native bundle --entry-file='index.js' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios'"
Run command : npm run build:ios
main.jsbundle file dose not created, created some extra files like report.20210421.091227.2175.0.001.json
Any one can help me.

RN 0.64.1
node: 16
Macbook Pro M1

Does anyone have a solution ?

hey any update, about this issue

Any solution to this issue ?


fix epoch saving

close #908

oh sorry @Valentine1898 , before you merge, could you please bump the IndexedDB version number so that people's DBs re-sync from scratch without the problematic epochs?

oh sorry @Valentine1898 , before you merge, could you please bump the IndexedDB version number so that people's DBs re-sync from scratch without the problematic epochs?

Yes, it makes sense even though the indexed-db structure has not changed


Rename "Default Credentials" to "Authentication Status" in all provider screens

based on @jonnyfiveiq feedback
@miq-bot add_label ui
cc @dclarizio @chessbyte

Hey @abonas can you give some context to this with a screen shot?  Thx, Dan

@jonnyfiveiq please add a screenshot to what you meant.
@dclarizio basically this is a field on provider summary screen where it says if the connection to the remote endpoint was successful. (next to the field saying when refresh happened)

So the build I have does not have "Default Credentials"! When the UI review was done it was so with @abonas system, however my comment is... in screen shot...

we have the STATUS as follows

We should show the the "Last Refresh" and "Authentication Status" for a provider, as we do for all other providers. In @abonas system the authentication status was there but labelled as "Default Credentials"
thanks

@dclarizio @jonnyfiveiq you are talking about 2 different things :)
This issue is about Non container providers (infra, etc.) that have a field named "Default Credentials" that need a renaming.
@jonnyfiveiq screenshot refers to issue https://github.com/ManageIQ/manageiq/issues/4890 that has a missing field in container providers.
This is the relevant screenshot

@abonas @jonnyfiveiq so I just got notified of this and I realize it is old, so I took a look and things have changed a bit, though the original text is still present.
So, we can now have multiple credentials and the status of the authentication is shown for each:

The text for each status line is taken from the tabs when you edit the endpoint credentials:

Any thoughts on if we should make a new box called Authentication Status and put all of the lines there?  I'm worried if we put something like Authentication Status for Default Credentials, the labels will get excessively long.

Any thoughts on if we should make a new box called Authentication Status and put all of the lines there?
sounds good to me. cc @serenamarie125
I'm worried if we put something like Authentication Status for Default Credentials, the labels will get excessively long.

@abonas it appears this issue can now be closed. Can you close.


[Feature] Docker max restart time

The problem here is the docker run "--restart" option.
It allows the container to restart after a crash.
When the container is in a crash loop, Docker wait every restart like this:
container crash
wait 100ms
container start
container crash
wait 200ms
container start
container crash
wait 400ms
container start
etc... until waiting 544878449 years
It can be useful to set a maximum restart time to avoid too long (and ridiculous) restart time.

Darnit, I swear we've fixed this a half dozen times...
I don't think we need a flag, just a cap.

For anyone interested, this logic is here: https://github.com/docker/docker/blob/master/restartmanager/restartmanager.go#L76

I also propose to have a flag to set max restart cap per container.

I would like to work on it!
#dibs

@cpuguy83 Should I set a max value? What should be the value?

ping @mlaventure

Should we add a random offset if the max is reached, to prevent all containers that failed to start after a reboot from retrying simultaneously?

Uh, I sure that value was set to something like 10/15sec at one point

Oh actually that was the value if the container managed to run long enough.
Hum, for one stuck in a restart loop indefinitely, I would say 1min should be good enough, wdyt @tonistiigi?
@thaJeztah containerd only allow 10 containers to be started concurrently

@mlaventure 1-2min seems fine to me.


Reject invalid command from React Native

Problem (PRN-92)
Changes
📚 Other PRs for this issue

📗 bitmovin/bitmovin-player-react-native#317
📘 bitmovin/bitmovin-player-react-native#345
📙 bitmovin/bitmovin-player-react-native#346
📒 bitmovin/bitmovin-player-react-native#347
📖 bitmovin/bitmovin-player-react-native#343

Oops, deleted branch by accident, restored now!


Issues Installing on Mac

VSCode Version: 1.37
OS Version: macOS Catalina 10.15 Beta

When trying to install VSCode I am getting a message advising that 'Visual Studio Code can't be opened because Apple cannot check it for malicious software.
Steps to Reproduce:

Download latest version of VSCode
Double click on VS Code App to load

Does this issue occur when all extensions are disabled?: Yes/No

'Visual Studio Code can't be opened because Apple cannot check it for malicious software.

Can you show me a screenshot?

This is the link where I downloaded it from:
https://code.visualstudio.com/updates/v1_37

Ah this is Catalina. #74782

Yes it is.


Remove payment batching chapter

It's now been posted as a blog entry at https://bitcoinops.org/en/payment-batching/

I assume this won't break anything and we don't have any links pointing to this directory. @harding?

We have multiple links pointing here from our website, and there may be links pointing here from other people's websites.  We can update our website, of course, but I think it would be best just to turn the deletion of x.payment_batching/payment_batching.md into a complete replacement of its content with just something like [Chapter moved.](https://bitcoinops.org/en/payment-batching/).

I think it would be best just to turn the deletion of x.payment_batching/payment_batching.md into a complete replacement of its content with just something like Chapter moved..

Done

We have multiple links pointing here from our website [...] We can update our website,

I'll open a PR to do that before merging this.

ACK


Baseline numbers for Codex vs BitTorrent

Experiment
Parameters:

Modes: BitTorrent, Codex Erasure-Coded, Codex Non-Erasure-Coded

Swarm Size:

total size: 2, 8, 16, 32
seeders: 1, 2, 4, 8, 16
file size: $100$ MB, $1$ GB, $5$ GB

Measurements:

completion distribution (track individual blocks?)

Scenario:

start dedicated bootstrap node (Codex) or dedicated tracker (BitTorrent);
start all nodes in swarm;
upload files to seeders;
start the download at the leechers;
wait for download to complete at all nodes;
export event logs as CSV.

We'll deem the performance of the system to be close to BitTorrent if we're able to:

we're no more than 20% slower than BitTorrent in all of the above scenarios.

Subtasks

[x] select a suitable BitTorrrent client (probably Transmission?) and check that we can collect the required info from it;
[ ] dockerize and run headless client using the test framework;
[ ] implement and run the above experiments.

I'd suggest something naughtier than Transmission - and more scriptable. Deluge and/or rTorrent would be my suggestion. Deluge is particularly aggressive over local networks, speaking from experience, so it may be the best choice overall given how easy it is to control over Python.

Hey @Zorlin, yeah, sounds good, and Deluge is libtorrent-based so that may also be a point in favour as we may aim for libtorrent compatibility in a not-so-distant future.

Note that there are 2 libtorrent (rasterbar from arvidn and rakshasa)


Fix tests

Empty commits are used to restart the testing on CI side several times, to prove that tests are stable and not randomly working. Empty commits will be removed before merge.
fixes two different bugs, that were introduced in https://github.com/aeternity/superhero-wallet/pull/1706:

turning back the additional info for the transactionDetails page https://github.com/aeternity/superhero-wallet/pull/1706/files#diff-04953f74efd3c967e31d679823c590682bc8a594218998fb9f04542dc9db99a9R49, which was removed in
https://github.com/aeternity/superhero-wallet/pull/1706/files#diff-08b865a4e8b6995c07b4ef9aec0f42a2c1863717129a76b7cc56922f4fad3487L218

Before
After

showing a loading state if transaction is loading 10b3b24

also this PR speeds up a little two tests:

network
other

During my testing, I checked the following:

turning back the additional info for the transactionDetails page
showing a loading state if transaction is loading
LGTM.


Upgrade: java-logging 6.0.1

Upgrading to latest java-logging version. Please carefully review the release notes for this latest version, as there are some removals to consider that may affect your application.

@RebeccaBaker  this PR can be closed. current reformLogging version is 6.1.4 in Master

@RebeccaBaker closing this PR as the Master has latest version of reformLogging -> 6.1.4


Fix alerts

Fixes #325

Coverage increased (+0.009%) to 93.526% when pulling 1094f88ccd42d099c16a278f523ab6ec9d209028 on fix-alerts into a9ef9dbb28a75a008f36639bc114ed886f5e1a43 on master.

👍

If you like it, merge it!

Thanks!


Please prepare this project for packaging

remove binary files from this repository (because only sources should be here, and binaries should be distributed separately in source-based linux distributions)
I mean /obj/Debug directory
set version in AssemblyInfo.cs
create a tag in github.com (this will create source tarball for distribution)

thanks

i think i did this in the currently pending pull request.
furthermore i will publish this as nuget when psmacchia gives his consent to the data i filled in.

@verinus  thanks, I need tag more than nuget package, because gentoo-way right now is not integrated well with nuget way


Try Apache Pulsar

Description
Related links

https://pulsar.apache.org/en/

there is no extension right now, close


Play state

Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
Checklist:

[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

@Abhishek-90 Could you please create an issue for this play?

@atapas, Issue Created Issue Link

#44

Also build fails due to wrong reference of CSS file. You can run yarn build locally. @Abhishek-90

@atapas can't pull new updates from your main as there are updates on my end as well. I guess first you need to merge then I can get the combined changes

@atapas can't pull new updates from your main as there are updates on my end as well. I guess first you need to merge then I can get the combined changes

Oh no @Abhishek-90 you can still merge in.. like from the atapas:main to your branch and then resolve if any conflicts. But as the PR is not showing any conflicts, I guess it is safe to merge.

@all-contributors please add @Abhishek-90 for Code


Issue with the checker

Hi!
I find a issue with the checker, I have the next solution for the instance A_09:
Intervention_257 14
Intervention_31 6
Intervention_652 10
Intervention_212 14
Intervention_580 14
Intervention_503 4
Intervention_552 2
Intervention_660 13
Intervention_309 9
Intervention_659 14
Intervention_680 15
Intervention_653 15
Intervention_259 8
Intervention_63 12
Intervention_345 13
Intervention_602 14
Intervention_90 1
Intervention_385 2
And the checker give me the next output:
Done
Loading solution from A_09_57.out...
Done
Checking constraints...
Checking schedule constraints...
Done
Checking resources constraints...
ERROR: Resources constraint 4.2 upper bound: Worload on Resource Resources_control at time 15 exceeds upper bound. Value 1.71 is greater than bound 0.7941176471 plus tolerance 1e-05.
ERROR: Resources constraint 4.2 upper bound: Worload on Resource Resources_control at time 16 exceeds upper bound. Value 1.0 is greater than bound 0.7941176471 plus tolerance 1e-05.
Done
Checking exclusions constraints...
Done
Done
Computing objectives values...
Computing risk...
Done
Computing mean risk...
Done
Computing Quantile...
Done
Done
Instance infos:
Interventions number:  18
Scenario numbers:  17
Solution evaluation:
Objective 1 (mean risk):  3048.5019215686275
Objective 2 (expected excess  (Q0.5)):  0.32564705882352785
Total objective (alpha*mean_risk + (1-alpha)*expected_excess):  1524.4137843137255
But I check with and excel the days 15 and 16 and do not exceeds the upper bound,...

Hi!
Could you send us what you have computed in your excel file ?
This ressource has bounds that change at that particular time time, moving from 1058.8235294118  to 0.794117647, may be it is a time shift issue?
Hope this help
Manuel

Intervention_309 starts at time step 9 and has duration 9. This intervention requires 1.0 of resource "Resources_control" in time step 16 ("16":{"8":0.71,"9":1.0}) which is greater than the maximum allowed (0.794118).

Thanks a lot!


Deployment failed when deploying the cluster

I'm walking through https://github.com/mspnp/aks-secure-baseline/blob/main/05-aks-cluster.md and on step Deploy the cluster ARM template. for Option 1, I'm getting the following error:
➜  aks-secure-baseline git:(main) RESOURCEID_VNET_CLUSTERSPOKE=$(az deployment group show -g rg-enterprise-networking-spokes -n spoke-BU0001A0008 --query properties.outputs.clusterVnetResourceId.value -o tsv)
                                                                                [1.1s]
➜  aks-secure-baseline git:(main) az deployment group create -g rg-bu0001a0008 -f cluster-stamp.json -p targetVnetResourceId=${RESOURCEID_VNET_CLUSTERSPOKE} clusterAdminAadGroupObjectId=${AADOBJECTID_GROUP_CLUSTERADMIN_AKS_BASELINE} a0008NamespaceReaderAadGroupObjectId=${AADOBJECTID_GROUP_A0008_READER_AKS_BASELINE} k8sControlPlaneAuthorizationTenantId=${TENANTID_K8SRBAC_AKS_BASELINE} appGatewayListenerCertificate=${APP_GATEWAY_LISTENER_CERTIFICATE_AKS_BASELINE} aksIngressControllerCertificate=${AKS_INGRESS_CONTROLLER_CERTIFICATE_BASE64_AKS_BASELINE} domainName=${DOMAIN_NAME}

(DeploymentFailed) At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.                                               [7m9.6s]

I went to the Portal to see what the specific error was and for the RG, I see:
{
  "code": "DeploymentFailed",
  "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.",
  "details": [
    {
      "code": "Conflict",
      "message": "Can't update the alert rule right now because there's a similar request in progress on this alert rule. Wait a while and try again. Activity ID: ac83f402-87b0-4c61-86c1-7fb10efbf3ab."
    },
    {
      "code": "Conflict",
      "message": "Can't update the alert rule right now because there's a similar request in progress on this alert rule. Wait a while and try again. Activity ID: 1da932e4-f39b-4c14-89a7-43144ab844f3."
    },
    {
      "code": "Conflict",
      "message": "Can't update the alert rule right now because there's a similar request in progress on this alert rule. Wait a while and try again. Activity ID: addabff3-007d-4c1c-90aa-5ebfa9026de9."
    },
    {
      "code": "Conflict",
      "message": "Can't update the alert rule right now because there's a similar request in progress on this alert rule. Wait a while and try again. Activity ID: 5ffccdc2-526e-4745-97cf-36336db4cc4c."
    },
    {
      "code": "Conflict",
      "message": "Can't update the alert rule right now because there's a similar request in progress on this alert rule. Wait a while and try again. Activity ID: d4c97ae8-e99e-455f-b014-c42c0fd17d4b."
    },
    {
      "code": "Conflict",
      "message": "Can't update the alert rule right now because there's a similar request in progress on this alert rule. Wait a while and try again. Activity ID: c825378c-3f72-4dd1-88cb-c5e8d55d71e2."
    },
    {
      "code": "Conflict",
      "message": "Can't update the alert rule right now because there's a similar request in progress on this alert rule. Wait a while and try again. Activity ID: 458f67e2-76e7-4260-8d27-ed3e075c3b31."
    },
    {
      "code": "Conflict",
      "message": "Can't update the alert rule right now because there's a similar request in progress on this alert rule. Wait a while and try again. Activity ID: de492610-d614-4289-a147-0a4980ba8d65."
    },
    {
      "code": "Conflict",
      "message": "Can't update the alert rule right now because there's a similar request in progress on this alert rule. Wait a while and try again. Activity ID: 6e5d7cc3-997e-4d43-9aa7-2135942041f3."
    },
    {
      "code": "Conflict",
      "message": "Can't update the alert rule right now because there's a similar request in progress on this alert rule. Wait a while and try again. Activity ID: 37d19c47-af9d-4a61-b69f-6413aade57d0."
    },
    {
      "code": "Conflict",
      "message": "Can't update the alert rule right now because there's a similar request in progress on this alert rule. Wait a while and try again. Activity ID: 913f5147-b03d-4a15-8437-b0356167ee88."
    },
    {
      "code": "Conflict",
      "message": "Can't update the alert rule right now because there's a similar request in progress on this alert rule. Wait a while and try again. Activity ID: 2c850bb6-82f6-4990-8c3a-8c0391ab6d59."
    }
  ]
}

Any suggestions?

It appears that all of the (and only the) Metric Alerts have failed:

Interesting that it says there is a similar request (multiple PUT to the same resource will result in a conflict).  Any thoughts on why there were multiple requests for those?

There were no abnormal executions during the walkthrough.  I figured it was some retry logic.  That said, are they all the same resource?  It looks like a bunch of different metricAlert resources.

They are all different azure resources, each one is a metricAlert resource, with no dependencies between them.  I wonder if it was a backend issue -- like you said, maybe a hiccup caused a double PUT operation for them.


Expose timezone configuration to templates

Syntax
{{ .Site.TimeZone }}

Justification
I was trying to write a partial that would accept timezone (location) as one of its args:
{{ partial "my-time-func" (dict "time" .Lastmod "location" "America/Denver") }}

It would be nice to be able to do this as well:
{{ partial "my-time-func" (dict "time" .Lastmod "location" site.TimeZone) }}

I will submit a PR if approved.

We currently have *time.Location set as an unexported field on Language. The time func currently use time.LoadLocation to load the location, which is, I suspect, a non-trivial operation.
I'm not sure you would ever need the time zone string, so I suggest we:
Export location and allow both a string and a *time.Location in the time func, so you can do {{ time "2020-10-20"  site.Language.Location }}.


EDA on NCDB data

Perform EDA on National Collision data using Altair

EDA Checklist

Formulate a question.
Read in data.
Check the packaging. - Check number of rows, columns. Make sure they match the original data. Check .info() and .describe()
Look at top and bottom of the data. Make sure everything is properly formatted and is there, using .head() and .tail().
Check your n’s. Basically just check if the number of examples make sense.
Validate with at least one external data source. Can be as simple as checking against a single number (some external count of car accidents or fatalities in Canada during 2017?)
Make a plot. Sets expectations for what the data should look like. Once we have a good understanding of the data and our question, making a plot is a good way to see how the data matches our expectations.
Try the easy solution first (always be ready to challenge the solution). Start from a simple question?? I don’t completely understand what this means from the context of our project.
Follow-up questions. Do we have the right data? Do we need other data (eg other years)? Do we have the right question?

“The goal of exploratory data analysis is to get you thinking about your data and reasoning about your question. At this point, we can refine our question or collect new data, all in an iterative process to get at the truth.”
Excerpt From: Roger D. Peng and Elizabeth Matsui. “The Art of Data Science.” Apple Books.

EDA
-We have huge class imbalance
-Switch features that are numeric but should be categorical (possibly later)
-Need to replace all N, U, X with NA (possibly in later weeks)
-Rough EDA this week, later we will do more in-depth EDA
-Facet plots by target True and target False because of the class imbalance

Hey LG can you add alt.renderers.enable(“mimetype”)  to the beginning of the EDA so we can see the plots on github? Also can you add the .info() and .describe() tables of the training data?

Hey Daniel, I added your suggestions in the pull request that I just created.

Once EDA is well reviewed and good to go, I will create a PDF version of it, and close this issue.