image_picker getImage return "The user is not allowed to use the photo., null, null)"

Steps to Reproduce

Create a Project
Add image_picker: ^0.7.4 package
implementation
Run on iOS iPhone 6s Plus os version iOS 14.3
Add NSPhotoLibraryUsageDescription Key to info.plist

Here is my code

code sample
import 'package:flutter/material.dart';
import 'package:image_picker/image_picker.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();
}

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;
  final picker = ImagePicker();

  void _incrementCounter() async {
    PickedFile image = await picker.getImage(source: ImageSource.gallery, imageQuality: 25);
  }

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

Here is the console message:
[VERBOSE-2:ui_dart_state.cc(186)] Unhandled Exception: PlatformException(photo_access_restricted, The user is not allowed to use the photo., null, null)
#0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:581:7)
#1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:158:18)
<asynchronous suspension>
#2      MethodChannelImagePicker.pickImage (package:image_picker_platform_interface/src/method_channel/method_channel_image_picker.dart:29:20)
<asynchronous suspension>
#3      _MyHomePageState._incrementCounter (package:imagetest/main.dart:54:24)
<asynchronous suspension>

flutter doctor -v
[✓] Flutter (Channel stable, 2.0.6, on Mac OS X 10.15.6 19G73 darwin-x64, locale tr-TR)
    • Flutter version 2.0.6 at /Users/cagataykaya/Developer/flutter
    • Framework revision 1d9032c7e1 (5 days ago), 2021-04-29 17:37:58 -0700
    • Engine revision 05e680e202
    • Dart version 2.12.3

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/cagataykaya/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • 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-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.4, Build version 12D4e
    • CocoaPods version 1.10.1

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

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 47.1.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] Connected device (3 available)
    • Cagatay iPhone'u (mobile) • 44ffe1892582962d82e135e5b6f96d6d0bea7d09 • ios            • iOS 14.3
    • macOS (desktop)           • macos                                    • darwin-x64     • Mac OS X 10.15.6 19G73 darwin-x64
    • Chrome (web)              • chrome                                   • web-javascript • Google Chrome 90.0.4430.93

• No issues found!

Could anyone help?

Hi @ctykaya
Please uninstall the app, you need to reinstall to take the permission to take effect and make sure you have the following permission based on the features you're using from image_picker
   <key>NSCameraUsageDescription</key>
    <string>Used to demonstrate image picker plugin</string>
    <key>NSMicrophoneUsageDescription</key>
    <string>Used to capture audio for image picker plugin</string>
    <key>NSPhotoLibraryUsageDescription</key>
    <string>Used to demonstrate image picker plugin</string>

Modified to sample to get Image from gallery

code sample
import 'dart:io';

import 'package:flutter/material.dart';
import 'package:image_picker/image_picker.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  File _image;
  final picker = ImagePicker();

  Future getImage() async {
    final pickedFile = await picker.getImage(source: ImageSource.gallery);

    setState(() {
      if (pickedFile != null) {
        _image = File(pickedFile.path);
      } else {
        print('No image selected.');
      }
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Image Picker Example'),
      ),
      body: Center(
        child: _image == null
            ? Text('No image selected.')
            : Image.file(_image),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: getImage,
        tooltip: 'Pick Image',
        child: Icon(Icons.add_a_photo),
      ),
    );
  }
}

I just followed the steps, have no issues when using official sample

flutter doctor -v
[✓] Flutter (Channel stable, 2.0.6, on Microsoft Windows [Version 10.0.19042.928], locale en-US)
    • Flutter version 2.0.6 at C:\Users\Taha\Code\flutter_stable
    • Framework revision 1d9032c7e1 (6 days ago), 2021-04-29 17:37:58 -0700
    • Engine revision 05e680e202
    • Dart version 2.12.3

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\Taha\Code\SDK
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = C:\Users\Taha\Code\SDK
    • Java binary at: C:\Users\Taha\Code\android-studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.

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

[✓] Visual Studio - develop for Windows (Visual Studio Community 2019 16.9.4)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.9.31205.134
    • Windows 10 SDK version 10.0.19041.0

[✓] Android Studio (version 4.1.0)
    • Android Studio at C:\Users\Taha\Code\android-studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[✓] IntelliJ IDEA Community Edition (version 2021.1)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.3.3
    • 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.55.2)
    • VS Code at C:\Users\Taha\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.22.0

[✓] Connected device (4 available)
    • Redmi K20 Pro (mobile) • def0ad20 • android-arm64  • Android 10 (API 29)
    • Windows (desktop)      • windows  • windows-x64    • Microsoft Windows [Version 10.0.19042.928]
    • Chrome (web)           • chrome   • web-javascript • Google Chrome 90.0.4430.93
    • Edge (web)             • edge     • web-javascript • Microsoft Edge 90.0.818.51

! Doctor found issues in 1 category.

I tried to uninstall and re-install the app but the result is same. I also use your code sample. But it is not working. The console message is same
[VERBOSE-2:ui_dart_state.cc(186)] Unhandled Exception: PlatformException(photo_access_restricted, The user is not allowed to use the photo., null, null) #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:581:7) #1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:158:18) <asynchronous suspension> #2      MethodChannelImagePicker.pickImage (package:image_picker_platform_interface/src/method_channel/method_channel_image_picker.dart:29:20) <asynchronous suspension> #3      _MyHomePageState.getImage (package:imagetest/main.dart:27:24) <asynchronous suspension>
here is my info.plist file
`

CFBundleDevelopmentRegion
$(DEVELOPMENT_LANGUAGE)
CFBundleExecutable
$(EXECUTABLE_NAME)
CFBundleIdentifier
$(PRODUCT_BUNDLE_IDENTIFIER)
CFBundleInfoDictionaryVersion
6.0
CFBundleName
imagetest
CFBundlePackageType
APPL
CFBundleShortVersionString
$(FLUTTER_BUILD_NAME)
CFBundleSignature
????
CFBundleVersion
$(FLUTTER_BUILD_NUMBER)
LSRequiresIPhoneOS

UILaunchStoryboardName
LaunchScreen
UIMainStoryboardFile
Main
UISupportedInterfaceOrientations

UIInterfaceOrientationPortrait
UIInterfaceOrientationLandscapeLeft
UIInterfaceOrientationLandscapeRight

UISupportedInterfaceOrientations~ipad

UIInterfaceOrientationPortrait
UIInterfaceOrientationPortraitUpsideDown
UIInterfaceOrientationLandscapeLeft
UIInterfaceOrientationLandscapeRight

UIViewControllerBasedStatusBarAppearance

NSPhotoLibraryUsageDescription
Used to demonstrate image picker plugin

`

Hi @ctykaya
I just tried with another physical device (last time tried physical XR), iPad, this device never had this app, still, there is no issue when only adding NSPhotoLibraryUsageDescription

flutter doctor -v
[✓] Flutter (Channel stable, 2.0.6, on macOS 11.3 20E232 darwin-x64, locale en-GB)
    • Flutter version 2.0.6 at /Users/tahatesser/Code/flutter_stable
    • Framework revision 1d9032c7e1 (6 days ago), 2021-04-29 17:37:58 -0700
    • Engine revision 05e680e202
    • Dart version 2.12.3

[✓] 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.5, Build version 12E262
    • 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.55.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.22.0

[✓] Connected device (3 available)
    • Taha’s iPad (mobile) • 00008020-000255113EE8402E • ios            • iOS 14.5
    • macOS (desktop)      • macos                     • darwin-x64     • macOS 11.3 20E232 darwin-x64
    • Chrome (web)         • chrome                    • web-javascript • Google Chrome 90.0.4430.93

• No issues found!

Here is the complete project, can you download and run it on your device and provide complete logs (logs will be long so copy the logs in a plain text file and drop the text file in the comment below)
stable_flutter.zip

I download the stable_flutter and run on iPhone 6s Plus @TahaTesser
here is the log file flutter run --verbose
logs.txt
The result is the same
flutter doctor -v
[✓] Flutter (Channel stable, 2.0.6, on Mac OS X 10.15.6 19G73 darwin-x64, locale tr-TR)
• Flutter version 2.0.6 at /Users/cagataykaya/Developer/flutter
• Framework revision 1d9032c7e1 (7 days ago), 2021-04-29 17:37:58 -0700
• Engine revision 05e680e202
• Dart version 2.12.3
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Users/cagataykaya/Library/Android/sdk
• Platform android-30, build-tools 30.0.3
• 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-6222593)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.4, Build version 12D4e
• CocoaPods version 1.10.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 47.1.2
• Dart plugin version 193.7361
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
[✓] Connected device (3 available)
• Cagatay iPhone'u (mobile) • 44ffe1892582962d82e135e5b6f96d6d0bea7d09 • ios            • iOS 14.3
• macOS (desktop)           • macos                                    • darwin-x64     • Mac OS X 10.15.6 19G73 darwin-x64
• Chrome (web)              • chrome                                   • web-javascript • Google Chrome 90.0.4430.93
• No issues found!
cagataykaya@Cagatay-MacBook-Pro stable_flutter %

Hi @ctykaya
Have you tried picking the image from gallery when running my project? In logs you provided you there is no PlatformException
[   +2 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[   +5 ms] <- recompile package:stable_flutter/main.dart 97c75d62-6d27-4774-846a-548ea73ca6c6
[        ] <- 97c75d62-6d27-4774-846a-548ea73ca6c6
[ +214 ms] Updating files.
[        ] DevFS: Sync finished
[   +2 ms] Syncing files to device Cagatay iPhone'u... (completed in 224ms)
[        ] Synced 0.0MB.
[   +1 ms] <- accept
[  +11 ms] Connected to _flutterView/0x103836020.
[   +2 ms] Flutter run key commands.
[   +2 ms] r Hot reload. ðŸ”¥ðŸ”¥ðŸ”¥
[   +1 ms] R Hot restart.
[        ] h Repeat this help message.
[        ] d Detach (terminate "flutter run" but leave application running).
[        ] c Clear the screen
[        ] q Quit (terminate the application on the device).
[        ] An Observatory debugger and profiler on Cagatay iPhone'u is available at: http://<IP_ADDRESS>:54249/osZnvNqbOso=/
[   +1 ms]
           Flutter DevTools, a Flutter debugger and profiler, on Cagatay iPhone'u is available at:
http://<IP_ADDRESS>:9100?uri=http%3A%2F%2F<IP_ADDRESS>%3A54249%2FosZnvNqbOso%3D%2F
[        ] Running with unsound null safety
[        ] For more information see https://dart.dev/null-safety/unsound-null-safety

In order to reproduce the issue, pick the image when running my project (it sbould't have any problem, i have tested the project on two iOS devices)
Thank you

Without additional information, we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now.
Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.


Plugin specification for postgres service

Issue description
Currently, to add additional plugins to postgres you have to do this:
      services.postgresql = {
        enable = true;
        package = pkgs.postgresql95;
        extraPlugins = [ (pkgs.pg_repack.override { postgresql = pkgs.postgresql95; }) ];
      };

More user-friendly would be to make overriding implicit or reference to plugins as with pkgs.postgresql95.plugins; [ pg_repack ].
Technical details

System: nixos-16.09

I'm not familiar with postgresql. Are there many plugins? Maybe it is indeed worth having a package set of plugins per postgresql package, and add a withPlugins.

I know only of two packaged plugins - postgis and pg_repack. Looking at https://github.com/dhamaniasad/awesome-postgres#extensions I think there could be more in future.

In my opinion it is fine for then to manually override them, or, even better, use overridePackages on the whole pkgs to select another default postgresql version.

You see, the actual intent is like this:
      services.postgresql = {
        enable = true;
        package = pkgs.postgresql95;
        extraPlugins = [ (pkgs.pg_repack.override { postgresql = config.services.postgresql.package; }) ];
      };

so the actual override depends on NixOS option. I don't know if it makes sense to bind plugin with incompatible postgresql version, but my guess is it may be fatal.

I just accidentally tested what happens when the postgis plugin is used with an incompatible postgres version; it does not work. My mistake was that I forgot the override:

        extraPlugins = [ pkgs.postgis.v_1_2_3 ];

instead of

        extraPlugins = [ (pkgs.postgis.override {postgresql = ...}).v_1_2_3 ];

I think with the current module it's too easy to make this mistake, there are no type errors, warnings or anything else.

This is going to be resolved with https://github.com/NixOS/nixpkgs/pull/38698

Yeah, closing as duplicate of https://github.com/NixOS/nixpkgs/issues/38616


driver: Add GUD for Keysight/Agilent/HP wfm gens

Since these instruments basically have not changed through three vendors (and at least one decade), they might as well have a common driver. This will also allow for seamless exchange of one unit with another.
Changes proposed in this pull request:

Add GUD

I have not yet put in deprecation warnings nor created shim drivers pointing to this one. I'll do so if everyone likes the idea.
@jenshnielsen

@Dominik-Vogel, maybe you'd like to review this?

It looks good to me, great that to made this unification. At some point in the future we are going to be really happy about it!


[DDW-718] Add unpair wallet for HW

This PR adds the possibility to unpair a wallet connected to a hardware wallet
Todos

[x] Add new option in settings if wallet is a hardware wallet

Screenshots

Testing Checklist

[ ] Test deleting a Wallet previously paired with a HW
[ ] Test deleting a normal wallet

Test Scenario
Scenario1: Unpair hardware wallet
Given I have (Trezor T | Nano X | Nano S) paired
When I go to wallet settings
And I unpair the wallet
Then the wallet is unpaired successfully

Scenario2: Delete software wallet
Given I have a software wallet
When I go to wallet settings
And I delete the wallet
Then the wallet is deleted successfully

Scenario3: Translation is correct
Given I have a hardware wallet paired
When I go to wallet settings
And I unpair the wallet
And I observe the translation
Then the translation is correct

Review Checklist
Basics

[x] PR has been assigned and has appropriate labels (feature/bug/chore, release-x.x.x)
[x] PR is updated to the most recent version of the target branch (and there are no conflicts)
[x] PR has a good description that summarizes all changes
[x] PR has default-sized Daedalus window screenshots or animated GIFs of important UI changes:

[x] In English
[x] In Japanese

[ ] CHANGELOG entry has been added to the top of the appropriate section (Features, Fixes, Chores) and is linked to the correct PR on GitHub
[ ] Automated tests: All acceptance and unit tests are passing (yarn test)
[ ] Manual tests (minimum tests should cover newly added feature/fix): App works correctly in development build (yarn dev)
[ ] Manual tests (minimum tests should cover newly added feature/fix): App works correctly in production build (yarn package / CI builds)
[x] There are no flow errors or warnings (yarn flow:test)
[x] There are no lint errors or warnings (yarn lint)
[x] There are no prettier errors or warnings (yarn prettier:check)
[x] There are no missing translations (running yarn manage:translations produces no changes)
[ ] Text changes are proofread and approved (Jane Wild / Amy Reeve)
[ ] Japanese text changes are proofread and approved (Junko Oda)
[ ] UI changes look good in all themes (Alexander Rukin)
[x] Storybook works and no stories are broken (yarn storybook)
[x] In case of dependency changes yarn.lock file is updated

Code Quality

[ ] Important parts of the code are properly commented and documented
[ ] Code is properly typed with flow
[ ] React components are split-up enough to avoid unnecessary re-renderings
[ ] Any code that only works in main process is neatly separated from components

Testing

[ ] New feature/change is covered by acceptance tests
[ ] New feature/change is manually tested and approved by QA team
[ ] All existing acceptance tests are still up-to-date
[ ] New feature/change is covered by Daedalus Testing scenario
[ ] All existing Daedalus Testing scenarios are still up-to-date

After Review

[ ] Merge the PR
[ ] Delete the source branch
[ ] Update Slack QA thread by marking it with a green checkmark

@danielmain is this ready for QA?

@danielmain is this ready for QA?

@nikolaglumac (my fault) there are still some translation missing :(. After clicking on the checkbox you get a new Input where you have to write the wallet name before unpairing (what for me dos not make any sense for unpairing). I asked @darko-mijic if this is an overkill for just unpairing.

Hi Daniel. One scenario i am bit concerned with is when a user 1. Pairs a device(In this example Ledger X) and then unpairs it. 2.The Ledger X remains physically connected to the machine. 3.User attempts to redelegate a Ledger S device that is already loaded in Daedalus but physically disconnected. 4.User unlocks Ledger X (wrong device) 5. Warning message shows up in Daedalus telling user to disconnect and reconnect device to restart the process. No matter how many reconnects it doesnt work. (User has to click on cancel transaction to start again in order to succesfully complete the transaction) . See Video

Hi Daniel. One scenario i am bit concerned with is when a user 1. Pairs a device(In this example Ledger X) and then unpairs it. 2.The Ledger X remains physically connected to the machine. 3.User attempts to redelegate a Ledger S device that is already loaded in Daedalus but physically disconnected. 4.User unlocks Ledger X (wrong device) 5. Warning message shows up in Daedalus telling user to disconnect and reconnect device to restart the process. No matter how many reconnects it doesnt work. (User has to click on cancel transaction to start again in order to succesfully complete the transaction) . See Video

@ManusMcCole Can you please check if this works the same for latest dev build? Same scenario just "Delete" the wallet instead of Unpair. If it works the same then it is an current behavior and not connected to the actual PR. Thank you in advance!
cc @danielmain

Hi @danielmain Daniel. You can ignore my comment above as its also in develop (And likely too much of an edge case to worry about)

Hi @danielmain Daniel. You can ignore my comment above as its also in develop (And likely too much of an edge case to worry about)

no problem my friend ☺

@tomislavhoracek can you please review this one?


Serialize + Parse Map Objects

📝 Summary
Right now I am finding that if typia.json.stringify() is used on an interface that has a  Map object results in incorrect serialization, and most likely incorrect parsing as well.

Typia Version: 4.1.2
Expected behavior: typia.json.stringify() produces a string representation of the Map object
Actual behavior: Map object is reduced down to an empty object {} with no items

⏯ Playground Link
https://typia.io/playground/?script=JYWwDg9gTgLgBDAnmYBDOAzKERwORIqp4DcAUGcAHYwCmUGqAxrXALKICSN9jLcAbzJwRcEAC52qMAB4AzjCjUA5gBoFSqsoB8ZAL4UANrXipJHbnQbNWAXkFjJVWgHcpsjStVxPW7QAoASjg9clQAOhBwuRN-ACI6BTjVONQAIyYAE1oMOMDyMmN4ACs5CCoAfV9lOHtCNHDS8ujFFWAMRBkLHmsWANR8siZysuNwwwhleIApAGUAeQA5H1atSTi4AGo4JsrqwaK4MFQoGMzzLh6+OwRkBt3w1DkY2AAFE5iuy6trgN2q1bKQbDKijWjjSbxd6nVguaAAa1omQAhHlyCCwRCpscYZlItFgAAvWj5IA
💻 Code occurring the bug
import typia from 'typia';

interface MyInterface {
    m: Map<string,string>
}

let a: MyInterface = { m: new Map<string, string>() };
a.m.set("test","abcdef");

let json_string = typia.json.stringify<MyInterface>(a);
console.log("JSON string: " + json_string);
let parsed: MyInterface = typia.json.assertParse<MyInterface>(json_string);
console.log("Parse worked!");
console.log(parsed.m.size);

Map objects can use many different types for keys and values (see the MDN docs). But I think the most valuable for Typia to support would be string keys and values, as well as other basic primitives (integers/numbers, boolean values).

When call the native JSON.stringify() function to a Map, only "{}" string value be returned.
Therefore, it is not invalid serialization, but following the standard feature.
const map: Map<string, number> = new Map();
map.set("first", 1);
map.set("second", 2);

const str: string = JSON.stringify(map);
console.log(str);

{}

I see, would you be opposed to me adding a custom case for serializing Maps?
Or should users of Typia define their own custom Map-like class to perform equivalent serialize and deserialize?
At the very least, emitting a warning might be helpful, something along the lines of
```Warning: ES5 Map() objects are not JSON serializable`  might be helpful

For now that would be fine.
I started down the path of "how would I implement serialize + parse?"
I dug into src/programmers/json/JsonStringifyProgrammer.ts but then realized that _test_json_stringify() would need to be considerably changed to support a case where the JSON.stringify() returns a value different from Typia's stringify due to this line here.
A possible solution would be to create a replacer function and pass it to all invocations of JSON.stringify() to allow JSON.stringify() to serialize Map objects. This could be extended to Sets as well.
For now, just emit those errors.

Not possible to supporting the custom replacer function through typia.
Also, I'm tending to be same with JSON.stringify() function, and don't want to add custom feature that can be different with the pure JSON.stringify() function. This is just my opinion at now - I think it would better to throw a compilation error when such Map type comes.

Error or warning messages would be good then. I can see the desire to adhere to JSON.stringify()'s functionality.
In the end, I really should just convert all of my Map objects to plain old Arrays.


unit testing exception

MissingPluginException(No implementation found for method getAll on channel plugins.flutter.io/shared_preferences)
package:flutter/src/services/platform_channel.dart 300:7  MethodChannel.invokeMethod
===== asynchronous gap ===========================
dart:async                                                _AsyncAwaitCompleter.completeError
package:flutter/src/services/platform_channel.dart        MethodChannel.invokeMethod
===== asynchronous gap ===========================
dart:async                                                _asyncThenWrapperHelper
package:flutter/src/services/platform_channel.dart        MethodChannel.invokeMethod
package:shared_preferences/shared_preferences.dart 28:27  SharedPreferences.getInstance
https://github.com/dart-lang/test/blob/master/pkgs/test/README.md
I wrote with reference to this README，Results appear:

Hi, sorry for the delay, I just want to check if you could solve this problem.

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.


Possible performance issue in meta flush

With a clean system ran setupSampleData, then fired up stroom and turned on processing.
In the logs the flushing of ~7k meta records seems to take longer than i would expect.
WARN  2020-05-05T07:17:29.137Z Stroom P2 #2 - Flush DataMetaDb s.m.i.db.MetaValueDaoImpl      Saved 1000 updates, queue size is 8276, completed in 9.2s
WARN  2020-05-05T07:17:34.740Z Stroom P2 #2 - Flush DataMetaDb s.m.i.db.MetaValueDaoImpl      Saved 1000 updates, queue size is 7275, completed in 5.6s
WARN  2020-05-05T07:17:40.704Z Stroom P2 #2 - Flush DataMetaDb s.m.i.db.MetaValueDaoImpl      Saved 1000 updates, queue size is 6274, completed in 5.9s
WARN  2020-05-05T07:17:46.623Z Stroom P2 #2 - Flush DataMetaDb s.m.i.db.MetaValueDaoImpl      Saved 1000 updates, queue size is 5273, completed in 5.9s
WARN  2020-05-05T07:17:52.649Z Stroom P2 #2 - Flush DataMetaDb s.m.i.db.MetaValueDaoImpl      Saved 1000 updates, queue size is 4272, completed in 6.0s
WARN  2020-05-05T07:17:58.355Z Stroom P2 #2 - Flush DataMetaDb s.m.i.db.MetaValueDaoImpl      Saved 1000 updates, queue size is 3271, completed in 5.7s
WARN  2020-05-05T07:18:04.113Z Stroom P2 #2 - Flush DataMetaDb s.m.i.db.MetaValueDaoImpl      Saved 1000 updates, queue size is 2270, completed in 5.7s

Also before these flushes happen in one contiguous block, it was processing various pipelines.  Processing appears to stop while the flush is happening, then resume when it completes.
The queue in the MetaDaoImpl is non blocking so not sure why processing appears to stop.  The fact the queue is blocking is a concern as it could get very large if there is a hold up on the flushing or the flushing lifecyle job is turned off.  DB locks may be coming into play that are stopping processing from happening while the flush is taking place.
May need to make this a blocking queue and also trigger a flush when the queue reaches a certain size.  Also may want to add an internal stat on the queue size (or a dropwiz metric) so we can monitor it.

Mine too 1.5 hours
WARN   [2020-06-29T11:39:24.953Z] [Stroom P2 #6 - Flush DataMetaDb] stroom.meta.impl.db.MetaValueDaoImpl -  Saved 1000 updates, queue size is 129230, completed in 4.1s
WARN   [2020-06-29T11:39:29.311Z] [Stroom P2 #6 - Flush DataMetaDb] stroom.meta.impl.db.MetaValueDaoImpl -  Saved 1000 updates, queue size is 128229, completed in 4.3s
WARN   [2020-06-29T11:39:36.780Z] [Stroom P2 #6 - Flush DataMetaDb] stroom.meta.impl.db.MetaValueDaoImpl -  Saved 1000 updates, queue size is 127228, completed in 7.4s
WARN   [2020-06-29T11:39:42.632Z] [Stroom P2 #6 - Flush DataMetaDb] stroom.meta.impl.db.MetaValueDaoImpl -  Saved 1000 updates, queue size is 126227, completed in 5.8s
WARN   [2020-06-29T11:39:47.152Z] [Stroom P2 #6 - Flush DataMetaDb] stroom.meta.impl.db.MetaValueDaoImpl -  Saved 1000 updates, queue size is 125226, completed in 4.5s
WARN   [2020-06-29T11:39:57.611Z] [Stroom P2 #6 - Flush DataMetaDb] stroom.meta.impl.db.MetaValueDaoImpl -  Saved 1000 updates, queue size is 124225, completed in 10s
WARN   [2020-06-29T11:40:09.252Z] [Stroom P2 #6 - Flush DataMetaDb] stroom.meta.impl.db.MetaValueDaoImpl -  Saved 1000 updates, queue size is 123520, completed in 11s
WARN   [2020-06-29T11:40:22.362Z] [Stroom P2 #6 - Flush DataMetaDb] stroom.meta.impl.db.MetaValueDaoImpl -  Saved 1000 updates, queue size is 122615, completed in 13s
WARN   [2020-06-29T11:40:36.180Z] [Stroom P2 #6 - Flush DataMetaDb] stroom.meta.impl.db.MetaValueDaoImpl -  Saved 1000 updates, queue size is 121668, completed in 13s
WARN   [2020-06-29T11:40:49.923Z] [Stroom P2 #6 - Flush DataMetaDb] stroom.meta.impl.db.MetaValueDaoImpl -  Saved 1000 updates, queue size is 120793, completed in 13s
WARN   [2020-06-29T11:41:03.237Z] [Stroom P2 #6 - Flush DataMetaDb] stroom.meta.impl.db.MetaValueDaoImpl -  Saved 1000 updates, queue size is 119882, completed in 13s
WARN   [2020-06-29T11:41:16.605Z] [Stroom P2 #6 - Flush DataMetaDb] stroom.meta.impl.db.MetaValueDaoImpl -  Saved 1000 updates, queue size is 118965, completed in 13s
WARN   [2020-06-29T11:41:30.223Z] [Stroom P2 #6 - Flush DataMetaDb] stroom.meta.impl.db.MetaValueDaoImpl -  Saved 1000 updates, queue size is 118027, completed in 13s
WARN   [2020-06-29T11:41:44.748Z] [Stroom P2 #6 - Flush DataMetaDb] stroom.meta.impl.db.MetaValueDaoImpl -  Saved 1000 updates, queue size is 117143, completed in 14s
WARN   [2020-06-29T11:42:00.079Z] [Stroom P2 #6 - Flush DataMetaDb] stroom.meta.impl.db.MetaValueDaoImpl -  Saved 1000 updates, queue size is 116142, completed in 15s
WARN   [2020-06-29T11:42:15.623Z] [Stroom P2 #6 - Flush DataMetaDb] stroom.meta.impl.db.MetaValueDaoImpl -  Saved 1000 updates, queue size is 115153, completed in 15s
WARN   [2020-06-29T11:42:29.441Z] [Stroom P2 #6 - Flush DataMetaDb] stroom.meta.impl.db.MetaValueDaoImpl -  Saved 1000 updates, queue size is 114170, completed in 13s
WARN   [2020-06-29T11:42:43.018Z] [Stroom P2 #6 - Flush DataMetaDb] stroom.meta.impl.db.MetaValueDaoImpl -  Saved 1000 updates, queue size is 113169, completed in 13s
WARN   [2020-06-29T11:42:57.179Z] [Stroom P2 #6 - Flush DataMetaDb] stroom.meta.impl.db.MetaValueDaoImpl -  Saved 1000 updates, queue size is 112168, completed in 14s
WARN   [2020-06-29T11:43:04.012Z] [Stroom P2 #6 - Flush DataMetaDb] stroom.meta.impl.db.MetaValueDaoImpl -  Saved 1000 updates, queue size is 111187, completed in 6.8s
WARN   [2020-06-29T11:43:05.550Z] [Stroom P2 #6 - Flush DataMetaDb] stroom.meta.impl.db.MetaValueDaoImpl -  Saved 1000 updates, queue size is 110186, completed in 1.5s
WARN   [2020-06-29T11:43:07.005Z] [Stroom P2 #6 - Flush DataMetaDb] stroom.meta.impl.db.MetaValueDaoImpl -  Saved 1000 updates, queue size is 109185, completed in 1.4s
WARN   [2020-06-29T11:43:08.629Z] [Stroom P2 #6 - Flush DataMetaDb] stroom.meta.impl.db.MetaValueDaoImpl -  Saved 1000 updates, queue size is 108186, completed in 1.6s
WARN   [2020-06-29T11:43:10.283Z] [Stroom P2 #6 - Flush DataMetaDb] stroom.meta.impl.db.MetaValueDaoImpl -  Saved 1000 updates, queue size is 107187, completed in 1.6s
WARN   [2020-06-29T11:43:11.814Z] [Stroom P2 #6 - Flush DataMetaDb] stroom.meta.impl.db.MetaValueDaoImpl -  Saved 1000 updates, queue size is 106186, completed in 1.5s
WARN   [2020-06-29T11:43:13.495Z] [Stroom P2 #6 - Flush DataMetaDb] stroom.meta.impl.db.MetaValueDaoImpl -  Saved 1000 updates, queue size is 105189, completed in 1.6s

I've attempted to improve the performance of this in code but it might be a DB issue.


HHH-6615 - Changed default revision entity to use a long data type rather than integer.

https://hibernate.atlassian.net/browse/HHH-6615

Going to rework this PR.


Avoid spawning an Oracle container when Oracle cloud is used

In production, when Oracle ATP is used, we wouldn't set the datasource URL, but instead set the ocid property (and possibly others). This confuses test resources, because if a property is missing, then it would try to resolve it. Which is what happens here: even if the url property is effectively unused when the cloud environment is detected, the property was effectively resolved.
The workaround is to try to see if the ocid property is set, in which case the resolvers wouldn't do anything.

@graemerocher did you have the opportunity to try this fix?


Redesign integration testing to copy images to nested containers

Previously, the strategy for avoiding lots of rebuilding and repulling
for each Docker version being tested was to use a mountpoint to persist
/var/lib/docker. This was pretty broken, and may not be a reliable
strategy. This commit changes the scripts to instead build/pull images
outside the innermost container, and copy them to the final test
environment with docker save/docker load.
This requires a fair amount of changes, since run.sh must now
communicate with the Docker engine that was formerly started by
test_runner.sh. The code that starts this engine has been broken out to
run_engine.sh so that starting the engine and running the tests under it
can be done separately (with the images loaded in between these steps).
Signed-off-by: Aaron Lehmann<EMAIL_ADDRESS>

Finally working in jenkins - see the "janky" check under "All checks have passed".

\o/

can we use another image instead of hello-world? or simply repush it to distribution/hello-world so we have control over it?

skip basic auth tests with Docker 1.6, where they don't pass due to certificate issues

My guess is that you have to install the cert system-wide (you should be able to workaround that following: https://github.com/docker/distribution/blob/master/docs/authentication.md#docker-still-complains-about-the-certificate )

is there a way to test scenarios like "push image with docker 1.8, pull it back with docker 1.6"?

Save the nits, LGTM!

can we use another image instead of hello-world? or simply repush it to distribution/hello-world so we have control over it?

I think we want to use a small image here, so the tests don't take too long. Repushing as distribution/hello-world would be fine.

skip basic auth tests with Docker 1.6, where they don't pass due to certificate issues

@dmcgowan thought this was a bug in Docker 1.6 which has since been fixed. That would make sense, becuase those test cases pass with newer versions. Right now we're installing the certs in /etc/docker/certs.d - do you think installing it system-wide instead will make it work with Docker 1.6?

is there a way to test scenarios like "push image with docker 1.8, pull it back with docker 1.6"?

At the moment, this would be a bit tricky, because the BATS tests run inside an enviroment that's set up with a specific Docker version. One of the things I was working on today was moving the BATS test cases outside the innermost container, and having them talk to the docker instance they mean to test with docker -H ... or the DOCKER_HOST environment variable. I abandoned this because I ran into some problems and found an easier way to do what I was trying to do, but I don't think it would be very hard to get that working.
The other thing that would have to happen is running multiple containers at the same time (docker 1.6 and 1.8, for example), so the test cases can use the different versions. And I suppose we'd want to move the docker-compose stuff to the level above those inner containers so that having multiple Docker versions doesn't imply having multiple registries running. On the plus side, it would speed up the tests because less "docker load" / "docker save" stuff would be needed.
So there's a fair amount that has to change for this to happen, but if this kind of test case is important, I guess we should make it happen.

@dmcgowan thought this was a bug in Docker 1.6 which has since been fixed. That would make sense, becuase those test cases pass with newer versions. Right now we're installing the certs in /etc/docker/certs.d - do you think installing it system-wide instead will make it work with Docker 1.6?

Yes, I think all this is correct.

[cross version testing]

That can definitely wait.

It looks like it's not possible to install the certificates systemwide, because the tests depend on the certs being enabled or disabled depending on the port number, to test TLS failure modes. Thanks for the suggestion, though.

I see. Not a big deal, leave it as is.
Good to go IMO.

@docker/distribution-maintainers Please merge if the changes look acceptable. The integration tests don't work correctly in Jenkins without this PR. Applying this may solve the out-of-memory issues we were seeing (and if not, I'd rather debug this than debug the old code).

LGTM


Update dependencies and gems

@Johann-S: if you manage to figure out why the new karma-qunit/qunit fails we could include it, otherwise I say we just merge this.

@Johann-S: so I assume you didn't make any progress with qunit?

No sorry, lot's of work 😟


filelock expiration

To avoid the case where lock files accidentally get left and lock things forever, we could have the process that acquires the lock set an expiration time on the lock. and if it's expired, the other process can assume that the process died or something and delete and re-acquire the lock.

I guess you can achieve it by yourself. For example, you can write a code: if waiting more than 1 hour, just delete the lock file, and retry to acquire the lock.

Hello, if you make a PR for this (with tests) we would be happy to review it, thanks!

I am interested in this feature and was wondering how to implement it myself. Is there a recognized method for checking the lock file modification time and then removing it without the danger of race conditions?

Not that I'm aware of, you'd likely have to do the research and then implement it 😂

I was afraid of that. So far, I have not been successful in my investigations and I don't have any expertise in Posix filesystem arcana. In fact, it was Googling this topic that led me to your module.

Perhaps a new PIDLock could be defined that saves the pid of the lock.
If the lock is held by a pid that no longer exists, the the lock is destroyed.
The trick is doing this in a race-condition free manner.
Perhaps this is a starting point? https://stackoverflow.com/questions/17708885/flock-removing-locked-file-without-race-condition


SSL

⚠ Please verify that this bug has NOT been raised before.

[x] I checked and didn't find similar issue

🛡 Security Policy

[x] I agree to have read this project Security Policy

📝 Describe your problem
Hi all, how do you add a self-signed SSL certificate to Kuma?
I have fresh VPS with Ubuntu, installed latest versions of Portainer (which has SSL) and Kuma.
Thanks
🐻 Uptime-Kuma Version
1.16.1
💻 Operating System and Arch
Ubuntu 22.04
🌐 Browser
Chrome 102.0.5005.115
🐋 Docker Version
No response
🟩 NodeJS Version
No response

SSL_KEY and SSL_CERT
https://github.com/louislam/uptime-kuma/wiki/Environment-Variables

SSL_KEY and SSL_CERT
https://github.com/louislam/uptime-kuma/wiki/Environment-Variables

I have same problem, how/where do I use enviroment variables? I ask because im new to ubuntu and uptime kuma and would really appreciate some guidance on how to do this


I can't access a /include service program

Hello,
I'm trying to show the information of an /include sentence but I can't.
I press the right click of the mouse but i can't get the members Info.
I don't know what I'm missing..
I sending an image.
Best Regards,

Do you see anything when you just hover on the include statement?

I don't know if I'm missing something in the configuration or settings for code for ibmi.

@hn000246 do you have the RPGLE extension installed?

Yes, maybe i just want to know how to configure the outline view.
Maybe is that the problem.

@hn000246 to confirm, you have this extension, right?
https://marketplace.visualstudio.com/items?itemName=HalcyonTechLtd.vscode-rpgle

Yes Barry I got it.

Do you know some guide to know the correct way to see the /include or /copy member inside a program rpgile or sqlrpgle.?

@hn000246 When you hover over the include, do you see a message that the member is not found?

Nothing happens, I click inside the /include member but nothing happens.

Please share the contents of your Code for IBM i output channel after hovering your cursor over the include/copy directive.

Hello @worksofliam
I'm sending to you the Info yo ask me:

Tell me if you need more Info.
Best Regards,

Hi @worksofliam did you find something wrong in the Source ?

@hn000246 No. I need the output pasted here directly from VS Code - not a photo. Thank you!

@worksofliam I found the error 😬
The type of source was wrong, i got RPG Instead RPGLE , that was the solution.
Thanks and sorry. 🙌🏻


Added back synthesizers from PR #25

Now that the newest smartnoise release (<IP_ADDRESS>) fixes the issue with MWEM docstring (thanks for finding @pdurbin ), we could add back the synthesizers docs that @joshua-oss had added in #25 .
Note: If we add this back, we will need to add 3 dependencies to our reqs (torch, opacus, ctgan), as they are not default reqs in smartnoise by design.

@lurosenb thanks for the pull request. Can you please take a look at requirements.txt again? I got the following error when trying to pip install them:
ERROR: Could not find a version that satisfies the requirement ctgan==0.2.2.dev1 (from versions: 0.1.0.dev0, 0.1.0, 0.2.0.dev0, 0.2.0, 0.2.1.dev0, 0.2.1, 0.2.2.dev0)
ERROR: No matching distribution found for ctgan==0.2.2.dev1
I did a fresh clone of the repo for this test.

Hi @pdurbin ! Huh - that's weird - I am able to install this release: https://pypi.org/project/ctgan/0.2.2.dev1/

@lurosenb I just tested ec3b307 (fresh clone again) and Pandas won't build. Very strange. Here's the terminal output: ec3b307.txt

@lurosenb I just tested ec3b307 (fresh clone again) and Pandas won't build. Very strange. Here's the terminal output: ec3b307.txt

Very weird! I just realized - you are on a mac - very difficult for me to debug on my windows machine using wsl...perhaps try using a fresh conda env with python=3.8, and swap in a different ctgan version (like 0.2.4 perhaps?) - sorry for all this hassle

I had problems installing on Mac as well.  What fixed it for me was:
'''
rm -rf ~/miniconda3
vim ~/.zshrc
(delete the conda init lines, save, and restart)
(download and install anaconda GUI)
conda update conda
conda update pip
pip install --upgrade setuptools
pip install ctgan==0.2.2.dev
pip install --use-feature=2020-resolver opacus==0.9.0
'''

@lurosenb @joshua-oss sorry, I was busy with a conference all last week.
I appreciate the Mac tips but this pull request fails not only on my Mac but within GitHub Actions as well (same error). Here's a screenshot from https://github.com/pdurbin/opendp-documentation/runs/2888067000?check_suite_focus=true

On a related note, I created #44 because we should have more automation to determine if pull requests build or not.
If you'd like to do the same test I did, here are the steps:

Fork this repo.
Enable GitHub Actions (disabled on forks by default, apparently)
Set up GitHub Pages
Push a commit to the gh-pages branch (not sure why this is necessary)
Make sure the docs appear in your fork, for me it's http://pdurbin.github.io/opendp-documentation
Merge the branch into "latest"
Push latest to your fork (I used git push pdurbin latest)
Check the GitHub Action to see if there are any errors

I hope this helps until we get more automation set up. Once you get your branch building on GitHub Actions, please let me know!

@lurosenb @joshua-oss phew! Merged! These pages look good to me:

https://docs.opendp.org/en/latest/smartnoise/api-reference/opendp.smartnoise.synthesizers.html
https://docs.opendp.org/en/latest/smartnoise/api-reference/opendp.smartnoise.synthesizers.pytorch.nn.html

@raprasad helped me figure out that as of this pull request they docs don't build on Python 3.9, which is what I've been using on my laptop. In 380ea57 I explained in the README that Python 3.8 is required, which is kind of a bummer. If you know of any issues we can track to know when we'll be able to support newer versions of Python, please drop some links here.
Thanks for the pull request! I'm glad that the API docs are more complete now.

Oh, wow, I don't think I would have figured that out.  Strangely enough, the docs seem to be building OK with Python 3.9 on the integration tests on SDK side.  For example, here's a run from a a few minutes ago, and I can drill into the output and see that synthesizers docs were built:
https://github.com/opendp/smartnoise-sdk/runs/2900641999?check_suite_focus=true
The YAML I use to test the build is based on the Conda template, and tests 3.7, 3.8, and 3.9:
https://github.com/opendp/smartnoise-sdk/blob/main/.github/workflows/docs.yml


Archive name 'data' was not found in archive name list

Attempting to run the first example in the Getting started section.
Running on an Ubuntu machine using a fresh conda environment. Python 3.10 and PyTorch1.12.0 installed fine.
No errors with the installation of moses, fastbpe, sacremoses and scikit-learn.
Placing the code in the first example in the file biogptTest.py and running it, gives this:
$ python3 biogptTest.py
2024-01-11 19:27:06 | INFO | fairseq.tasks.text_to_speech | Please install tensorboardX: pip install tensorboardX
2024-01-11 19:27:07 | INFO | fairseq.file_utils | Archive name 'checkpoints/Pre-trained-BioGPT' was not found in archive name list. We assumed 'checkpoints/Pre-trained-BioGPT' was a path or URL but couldn't find any file associated to this path or URL.
2024-01-11 19:27:07 | INFO | fairseq.file_utils | Archive name 'data' was not found in archive name list. We assumed 'data' was a path or URL but couldn't find any file associated to this path or URL.
Traceback (most recent call last):
  File "/data/projects/biogpt/src/biogptTest.py", line 3, in <module>
    m = TransformerLanguageModel.from_pretrained(
  File "/data/projects/classifiers/bin/envs/biogpt/lib/python3.10/site-packages/fairseq/models/fairseq_model.py", line 267, in from_pretrained
    x = hub_utils.from_pretrained(
  File "/data/projects/classifiers/bin/envs/biogpt/lib/python3.10/site-packages/fairseq/hub_utils.py", line 66, in from_pretrained
    path = os.path.join(model_path, file)
  File "/data/projects/classifiers/bin/envs/biogpt/lib/python3.10/posixpath.py", line 76, in join
    a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType

Issues #6 and #14 refer to something similar.
Issue #6, whilst generating a type error is a different one, and the solution of running with python3 doesn't work here.
Issue #14 on the other hand, while also not able to find the archive ''data', has a different error trace. Apparently the fix for that was to run all steps in the repo, which I have done, to no avail.
I've gone into the fairseq repo and checked the branch version is still v 0.12.0
the environment variables for MOSES and FASTBPE are set.
(biogpt)$ echo $MOSES
/data/projects/biogpt/bin/mosesdecoder
(biogpt)$ echo $FASTBPE
/data/projects/biogpt/bin/fastbpe

I'm looking in the file python3.10/site-packages/fairseq/models/fairseq_model.py, given that this appears to be where this starts. In the comments, it says that the data_name_or_path points to the archive at the given path/url. I am assuming that the first argument is meant to point to the directory that the checkpoint file is in, the second is the name of the checkpoint file, and the third parameter is meant to point so some data structure within the checkpoint file? I can't find any explanation of how this is meant to work.
Thanks
Ben.

<le sigh>
running from a different location, i.e. the data directory wasn't present.


Include person pictures

Hi :-)
The Landshut RIS contains pictures of the Stadtrat (f.ex. https://ris.landshut.de/buergerinfo/kp0051.php?__kpenr=10293).
Would it be possible to include these in the person sections in meine-stadt-transparent?
Might be related to #185 .
Thanks!
Annette

I am currently handlings this by using a custom person.html template which directly embeds the images from our RIS in Aachen which lets us fetch the images using the OParl IDs of the respective persons.
Its not the best solution as I also need to adjust the content security policy for embedding external pictures.
I am not sure if we really need a new database model for avatars / pictures?
Maybe just a new bucket with the pictures is sufficient?
We could simply use the persons ID as the primary key for the S3 bucket..

Maybe just a new bucket with the pictures is sufficient?

Yep absolutely, plus maybe a field has_picture or something so we can use it in the template and avoid mass 404s

@agrippine314 I am wondering how you know about the profile pictures? Are they references as a File in the Person object?
Or do you also use some well-known URLs?
@konstin I am wondering where we should download the pictures? Via an import hook? Or RIS-specific loaders?
Cheers,
Steffen

There's an option in oparl in principal, as far as i know no implemented it yet though so you'd need to make a small vendor specific script for that. In my experience those images normally follow a very simple schema


Fix unstable sorted result

Issue is exposed from https://github.com/oap-project/gluten/issues/858

cc @rui-mo

I find the difference is std::stale_sort preserves the relative order of the elements with equivalent values, while std::sort does not. @zhouyuan Do you think we need that?


BBC NEWS - World - Why?

I just installed this app to my iPhone XR. "On My iPhone" there is by default BBC NEWS - World which would be fine to demonstrate how this app works with RSS feeds but you can see from the image that it's not quite working.

Should this RSS feed in particular be removed. Also why are there 700+ notifications in the app icon when you first install the app?

So it seems. Then why do we have the BBC feed by default here?

Open RSS provides full text of BBC articles: https://openrss.org/www.bbc.com/news/world

Great! Thanks for sharing that, @uncenter . Maybe we should then remove feeds from the defaults that aren't following best practice? Surely we're better than that.

Is not "in the business of"? What does this mean? Shouldn't NetNewsWire provide good examples of RSS feeds for the new users?
Also I'm opening two other issues that have yet not been answered on this issue that have been brought up: #4033 & #4034 .

NetNewsWire is a feed reader, not an feed creator. The purpose of the BCC feed is to, IMO, show what sorts of content can be displayed in the app, not serve as an example for a good feed.

I don’t have to justify my decisions on things like this.
And me and the team are under no obligation to respond quickly to anything. Remember that this is a completely free app made entirely by volunteers in their spare time.

You and your team are under no obligation to respond quickly to anything. I remind myself at this point that this is a completely free app made entirely by volunteers during their spare time.
I argue that you do have to justify your decisions on things like this. Saying no as a maintainer is sometimes necessary but giving reasoning for the contributors is needed. Closing issues without explanation is not welcoming for the new contributors nor the for anyone else.
I hope this source-available project of yours and your team goes well.


Small plant icons

Describe the Bug
When I plant, sometimes the icon of the plant is very small.
I think I have seen this bug already a week ago.
Steps to Reproduce the Problem
Pick different plants and plant them on the map.
Expected Result
All plants to have the same icon radius.
Okra (Abelmoschus esculentus) is really small.
Actual Result
Some are very small.
PermaplanT version
master
Operating System
Windows 10
Browser
Opera
Versions of other relevant software/extensions
No response
Additional info/logs

Oh, maybe its on purpose that they have different sizes, but that one is reeeeally small.

Thx for reporting this issue.
Plants have really different sizes. (Tree vs. a small flower) The default zoom is not really suitable for small plants.
But default zoom should become less important once #742 is implemented.


Added listening capability to alpha-activate and alpha-retract in alpha network

Added a listening capability to alpha-activate and alpha-retract, so that we can listen to the facts added or retracted the alpha network. We need it internally to know which facts that were inserted or retracted, matched some of the alpha nodes.
Listener on insert-facts and retract-facts will not give me facts that are guaranteed to match something in the alpha network.
I am not appending the trace for alpha-activate and alpha-retract in tracing listener, as it will add redundant information from insert-facts and retract-facts.

To elaborate a bit (and please correct me if I'm out of date; we discussed this a while ago) the use-case here is ultimately to be able to retract facts when all we have is a unique ID of the fact to retract, not the fact itself.  This support in the listener protocol would allow us to write a listener that will keep track of which relevant facts matched something in the network; if they didn't match anything there is no need to retract them later, since they never had any impact on the session in the first place.  If we can know that there is no need to retract a fact later, then that fact doesn't need to be serialized when persisting the session.  The simplest approach would be to simply keep track of all insertions, but this would greatly increase the size of a serialized session and thus the time required to deserialize it.
This isn't inherently specific to our use-case though.  I think it could be helpful for anyone else who has specialized truth maintenance needs that are best handled in user code (while keeping the core Clara API uncluttered with their details).

Regarding tracing, personally I'd be inclined to add it.  It isn't too difficult to filter the trace elements down to what you're looking for in a REPL; as a practical matter it is large enough in the real use-cases I've seen that reading through the entire output manually isn't very practical.  I don't think it is a big deal either way though.

To elaborate a bit (and please correct me if I'm out of date; we discussed this a while ago) the use-case here is ultimately to be able to retract facts when all we have is a unique ID of the fact to retract, not the fact itself. This support in the listener protocol would allow us to write a listener that will keep track of which relevant facts matched something in the network; if they didn't match anything there is no need to retract them later, since they never had any impact on the session in the first place. If we can know that there is no need to retract a fact later, then that fact doesn't need to be serialized when persisting the session. The simplest approach would be to simply keep track of all insertions, but this would greatly increase the size of a serialized session and thus the time required to deserialize it.

This isn't inherently specific to our use-case though. I think it could be helpful for anyone else who has specialized truth maintenance needs that are best handled in user code (while keeping the core Clara API uncluttered with their details).

This is right.  Clara could provide more functionality to meet this need, however, we are shooting for a minimal "hook" into this right now.  I think it'd be worth considering taking it steps further perhaps in the future.

Regarding tracing, personally I'd be inclined to add it. It isn't too difficult to filter the trace elements down to what you're looking for in a REPL; as a practical matter it is large enough in the real use-cases I've seen that reading through the entire output manually isn't very practical. I don't think it is a big deal either way though.

The insert-facts! and retract-facts! would be duplicated, if not even more than 1 time (depending on how many alpha nodes a single fact matched).  So the tracing output just seemed like it could get into quite a bit of spam with this.  Perhaps that is ok.  I've been torn on that one.

I have updated the commit/PR with provided suggestions.

LGTM. Merged!


[CP] Fix PathNotFound on artifact cache

Fixes: #119261
Cherrypick: #119748

Ignoring failing tests because they should not be running on release candidate branches.


[libmariadb] upgrade to 2.3.2

upgrade package to 2.3.2
enable static build support
do not block with libmysql

Since libmariadb and libmysql are interchangable, shouldn't we move the headers to: mysql/mysql.h as well?

@alexkaratarakis It's make sense but I originally expected installing libmariadb and libmysql at same time without blocking each other.
If move libmariadb header to mysql/mysql.h as well, we need also rename libmariadb.lib to libmysql.lib since many other source would expect libmysql.lib instead of libmariadb, and we need to bring the blocking libmysql/libmariadb code back since they really blocks each other.
If it's everyone expects, I'll create a another PR to fix it.

Considering how libmariadb is used in other distributions (as a drop-in system wide replacement for libmysql), it seems intended that the headers collide. You should be able to pick one of them and have all the ports use the one you picked.
If you could update the PR to move the header (and restore the conflict detection code), that would be great.

@ras0219-msft that's make sense, I'll update the PR.

@ras0219-msft updated.

Thanks for the quick turnaround 💯


v4-beta About location handle

Ref: https://github.com/ReactTraining/react-router/issues/4410
For server side render: https://github.com/ReactTraining/react-router/blob/v4/packages/react-router/modules/StaticRouter.js#L115
history always be replaced by inner history. So I guess it may provide some props with each Router to make it easier for location query self handle.
in addition, how do I handle Redirect.to, Link.to && router.push when I want to use query instead of connecting the search string?

You should be stringifying your query object in whatever component is rendering your <Redirect>/<Link>.
import { stringify } from 'qs'

const MyComponent = () => (
  <div>
    <Link to={{ pathname: '/some-place', search: '?' + stringify({ a: 'b', c: true }) }}>Go Here</Link>
  </div>
)


we are trying to train the hand we 3 fingers and not 4

Hello
We are trying to remove one finger from the hand and train it to rotate the cube with 3 fingers.
Can you give us a direction on how it could be done?
What we done so far:
in file LeapHandRotYaml we changed :
1. #numActions: 16 - > 12(because no we have 3 fingers)
2.numOfObservation we don't know how to calculate it
also in assets/leap_hand/robot.urdf , we did changes , we removed a specific finger and all the related parts
mean while we are trying to train it to rotate the cube but its not happening
can you please help us and give us direction to which files we need to change also in order to do the training
Thank You.

This is more of an Isaac gym question but this is right.  You need to change the URDF, change the number of observations and actions.  Then you should be able to retrain.  You may have to do some small edits to the reward or where the cube initiates on the hand to make it work....not sure.


Null ref exception for Files property in AddFilesToProjectAsync

We should not try to add files to project from a ILibraryOperationResult with errors. The Files property won't be expanded and we will run into null ref exception.

Resolved with PR https://github.com/aspnet/LibraryManager/pull/282


POST with CORS not work?

I use webpack to build.
    new SWPrecacheWebpackPlugin({
      cacheId: 'v3',
      filename: 'sw.js',
      maximumFileSizeToCacheInBytes: 4194304,
      minify: true,
      staticFileGlobs: [
        'dist/**.html',
        'dist/static/**.*',
        'dist/static/fonts/**.*',
        'dist/static/css/**.css',
        'dist/static/img/**.*',
        'dist/static/js/**.js'
      ],
      staticFileGlobsIgnorePatterns: [/\.map$/],
      stripPrefix: 'dist',
      mergeStaticsConfig: true,
      runtimeCaching: [{
        handler: 'networkFirst',
        urlPattern: /^(https:\/\/)[^\s]+\/detail\/\w*-\w*-\w*-\w*-\w*/,
        method: 'post',
      }],
    })

The urlPattern that match has CORS.
I saw the generated sw.js. It looks fine in the finall:
toolbox.router.post(/^(https:\/\/)[^\s]+\/detail\/\w*-\w*-\w*-\w*-\w*/,toolbox.networkFirst,{});

but It looks like the fetch only works with GET method:
self.addEventListener('fetch', function(event) {
  if (event.request.method === 'GET') {
      ......

Did I missing something?

Afaik there is no support for POST method on Service Worker. There is a stackoverflow answer with some links. I hope it helps.

Basically what @barinali said. While it's possible to intercept POST requests, you can't directly store them using the Cache Storage API, so you'd need to write custom code to do something specific (like serialize the bodies in IndexedDB) other than store them in the cache.


Thoughts on an html! macro that emits an impl Read value

Hi! First I want to say thank you for making this library! I appreciate the features and principles you aimed for, especially "non opinionated" parser that accepts any xml-like pattern, the minimal dependencies (especially avoiding wasm-bindgen), and a modular design that exposes the parsed node tree as a base to build any kind of macro on top of.
Because of these features I was able to easily integrate html-to-string-macro into a demo project based around htmx, a library that adds interactivity to html by requesting html fragments over http and inserting them into the DOM (an approach that offers more bang-for-buck than its simplistic appearance indicates). (See also htmx intro presentation if you like.)

I'd like to expand this demo project to be something more, but I'm concerned that that deeply recursive use of html-to-string-macro's html! would lead to O(n²) performance due to repeatedly calling format! on larger and larger fragments of the page as the page is gradually built up.
To solve this I'm thinking about writing a new implementation of the html! macro, maybe called html-to-reader-macro, that instead of emitting a String it emits a value that implements the Read trait. The idea being that you can build up a big graph of objects that impl Read and then calling read() on the root will traverse through the component tree and scan out all the bytes directly into the final destination buffer exactly once with no unnecessary intermediate copying.
What do you think? Useful? Feasible? Gotchas?

Glad it's useful! syn-rsx came to be while I wanted to implement a liveview-ish web framework (https://github.com/dbohdan/liveviews, with https://github.com/phoenixframework/phoenix_live_view being the most prominent example). Sounds like you want to go down a similar route with your project?

I'd like to expand this demo project to be something more, but I'm concerned that that deeply recursive use of html-to-string-macro's html! would lead to O(n²) performance due to repeatedly calling format! on larger and larger fragments of the page as the page is gradually built up.

Not sure if that's actually the case? It does end up with a potentially really large format! call in the end (fn html), but the recursion itself (fn walk_nodes) only keeps appending tiny bits of strings and values.

To solve this I'm thinking about writing a new implementation of the html! macro, maybe called html-to-reader-macro, that instead of emitting a String it emits a value that implements the Read trait. [..] What do you think? Useful? Feasible? Gotchas?

That sounds like an useful and more elegant way to solve it – and I can't think of any larger gotchas! If you come up with something, I'd be also interested in changing the html-to-string-macro implementation, since the format! approach was mostly a quick hack.

Live.View looks pretty interesting and broadly similar to what htmx does. From a glance the major difference may be the simplicity of the server side: htmx doesn't have any system for managing client state, it simply serves html pages or fragments (serving fragments is the 'novel' part) in response to plain http requests.
You're right, walk_nodes only appends strings and expressions in a single call to format!. Sure it could emit bytes directly into some destination buffer but this only avoids one copy, which could be nice but doesn't devolve to O(n²) performance problem alone. The problem comes when nesting calls to html! inside an expr node.
Here's a (contrived) example of what I mean. This is way more atomized than I would expect a normal app to be, but it still demonstrates the issue I'm pointing at:
fn root(count: u32) -> String {
    html! {

            <title>"O(n²) 😔"</title>

            { container(count) }

    }
}

fn container(count: u32) -> String {
    html! {

{ table(count) }

    }
}

fn table(count: u32) -> String {
    html! {

{ rows(count) }

    }
}

fn rows(count: u32) -> String {
    html! {
        { (0..count).map(row).collect::<String>() }
    }
}

fn row(n: u32) -> String {
    html! {

            { col1(n) }
            { col2(n) }

    }
}

fn col1(n: u32) -> String {
    html! { "N: " { n }	 }
}

fn col2(n: u32) -> String {
    html! { "Double: " { n*2 }	 }
}

Just to follow along explicitly, col1 and col2 both generate strings on demand with format!, then those strings are passed to row which concats them together into a tr, then rows takes all these rows and concats them together and then format!s them into a string again, then table, then container, then root. This is a lot of copying, and the copying grows manipulatively with depth and the total size of lower levels.
htmx encourages some fragmentation (not to this degree of course) because you're meant to be able to make a request, say for row 33, and the server will respond with just that row as an html fragment.

On a scale of "make it work, make it right, make it fast", this issue is on the "make it fast" side, and may reasonably be prioritized below #48 which is closer to the "make it right" side imo.


Liquidity

HI, I have been using Phoenix successfully for 6 months. But Yesterday I kept having to add liquidity x 3 times, at $10-12 a piece. This has never happened before. The first inbound transaction was around 200,000 sats. Which I had in my inbound liquidity. Then it dropped a lot. For the next 2 inbound transactions I made, I had to add liquidity on both occasions. This has never occurred in my previous use case for the last 6 months. I have attached the logs. Thanks
Phoenix logs.log

@Virbac32 It sounds like your query would be best dealt with by the support team.
I'll have to refer you to the official support live chat with the ticket ID LIQ07638
Please see the link below to our dedicated support line:
Liquidity live support
Click on the live chat icon at the bottom corner of the page to initiate chat with a live support agent


date range not working after getting data from services

Hi admin,
I am trying to show date range in inline datepicker after api response.
but its not happening.

TS file:
this.http.securePost(this.constants.JOB_DETAIL, reqParams).subscribe((res) => {         this.selectedMoments = [new Date(2018, 3, 21, 20, 30), new Date(2018, 3, 29, 20, 30)]; });
HTML File:
<owl-date-time-inline [(ngModel)]="selectedMoments" [pickerType]="'calendar'" [selectMode]="'range'"></owl-date-time-inline>
Please help me i am stuck here

Did you try to use the picker in dropdown mode and see if the issue exits as well?

I have the same issue. Set the date after api response, but nothing show in the date line.


Rating Score

What is your question?
Hi, It's me again.
Last question for today.
How much score does each rating give? like Sick, Good, Bad and the worst one.
Am a nice guy so yeah.

Sick = 350
Good = 200
Bad = 100
Shit (Worst one) = 50

Thanks APRO716. Very Cool!


Incorrect mime type in response when 'Accept' header used and extension omitted

Omitting the .json extension in uris and passing a header of Accept: application/json correctly gives a JSON response. So, these give identical responses:
$ curl -H 'Accept: application/json' -X GET https://www.inaturalist.org/taxa/48599.json -L
{"id":48599,"name":"Phytolacca americana","rank":"species","parent_id":48601, ...

$ curl -H 'Accept: application/json' -X GET https://www.inaturalist.org/taxa/48599 -L
{"id":48599,"name":"Phytolacca americana","rank":"species","parent_id":48601, ...

However, the mime type for the second resource is incorrect; it is text/html instead of application/json:
$ curl -H 'Accept: application/json' -X GET https://www.inaturalist.org/taxa/48599.json -L -I
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
...

$ curl -H 'Accept: application/json' -X GET https://www.inaturalist.org/taxa/48599 -L -I
HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
...

Is it supported to call endpoints without the file extension, instead using the Accept headers? (related #400)

This was ultimately a problem with the Actionpack Page Caching gem for Rails 4 https://github.com/rails/actionpack-page_caching . Apparently it can't properly return the mime type unless explicitly defined in the route (we accept multiple extensions for this method so I don't think that's possible), or explicitly declared in the request URL. After checking how many requests we got for this JSON API, I decided it was safe to just not page cache the results which seems to have fixed the problem.
The fix was in commit 95581d3 . Note though that this was a one-off fix for the Taxa JSON API requests. Any other place we're using caches_page or caches_action could very well be suffering from the same problem.
An interesting case indeed. Thanks for bringing this to our attention, and please let us know if you encounter anything else like this.


improve: removed unnecessary hashmap copy

Hi, first of all thanks for your library, it's really cool. I was using it in a project and I found a very useful improvement we can implement. I wrote this explanation and I hope it could make sense to you so we can merge it and release a new version 🙌🏼.
For any text we generate:

P: Phrases
W: Words
W': Unique words
Hashmap of size W'

Then to get keywords (in general terms) we create C copies of that Hashmap (call the word_freq and word_def getters), where C is:
C = P * W * 2
What happens when we have a long and pooly connected text? In a simple example having:
~300.000 words
~100.000 unique words
We could be creating <IP_ADDRESS> copies of a Hashap of size 100K which is really slow and underperformant :(
Testing on macOS M1 Max, we can see a performance improve of 14666x (in debug mode) just using the internal Hashmaps in place of call the getter that creates a copy.
Thanks!

Hey, thanks for the contribution! Yeah, there are a few quirks in the repo as it served as a fun way for me to learn Rust. Everything looks to be in order, so I'll approve this PR for you.


AMQP-504: Update to RabbitMQ 3.5.3 Client

JIRA: https://jira.spring.io/browse/AMQP-504
TimeoutException, deprecations.
Also, the JDK javac now seems to honor @SuppressWarnings("deprecation") - remove the lint -deprecation option

I believe Travis, so merging as is.

Merged as https://github.com/spring-projects/spring-amqp/commit/48eac2a


feat(ISSUE-2): Add secure flag (no_env) to pass secrets as args instead of env

Description
The current mode only supports passing secrets fetched as environment variables. There is another secure way to pass secrets & sensitive info via STDIN args.
env_file: .env
secret_name: nyell-db-creds
vault: aws
no_env: true

and this will use ARGS instead of environment. This is much secure way.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>6
Details

0 of 10 (0.0%)  changed or added relevant lines in 2 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.8%) to 26.136%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/whispr/cli.py
0
2
0.0%

src/whispr/utils.py
0
8
0.0%

Files with Coverage Reduction
New Missed Lines
%

src/whispr/utils.py
1
0.0%

Totals

Change from base Build<PHONE_NUMBER>5:
-0.8%

Covered Lines:
68

Relevant Lines:
222

💛  - Coveralls


[IoT] Adds T2 Device Provisioning Service 2021-10-01 Dataplane Service SDK

Description
Adds Track 2 Service (Dataplane) SDK for Azure IoT Hub Device Provisioning Service
API spec is here:
https://github.com/Azure/azure-rest-api-specs/blob/main/specification/deviceprovisioningservices/data-plane/Microsoft.Devices/stable/2021-10-01/service.json
API Review link: https://apiview.dev/Assemblies/Review/90240b0f26d946da9472062c5b6e72e3
All SDK Contribution checklist:

[ ] The pull request does not introduce [breaking changes]
[ ] CHANGELOG is updated for new features, bug fixes or other significant changes.
[ ] I have read the contribution guidelines.

General Guidelines and Best Practices

[ ] Title of the pull request is clear and informative.
[ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[x] Pull request includes test coverage for the included changes.

/azp run prepare-pipelines

API change check
APIView has identified API level changes in this PR and created following API reviews.
azure-iot-deviceprovisioningservice


How to choose proper download_mode in function load_dataset?

Hi, I am a beginner to datasets and I try to use datasets to load my csv file.
my csv file looks like this
text,label
"Effective but too-tepid biopic",3
"If you sometimes like to go to the movies to have fun , Wasabi is a good place to start .",4
"Emerges as something rare , an issue movie that 's so honest and keenly observed that it does n't feel like one .",5

First I try to use this command to load my csv file .
dataset=load_dataset('csv', data_files=['sst_test.csv'])

It seems good, but when i try to overwrite the convert_options to convert  'label' columns from int64 to float32 like this.
import pyarrow as pa
from pyarrow import csv
read_options = csv.ReadOptions(block_size=1024*1024)
parse_options = csv.ParseOptions()
convert_options = csv.ConvertOptions(column_types={'text': pa.string(), 'label': pa.float32()})
dataset = load_dataset('csv', data_files=['sst_test.csv'], read_options=read_options,
                       parse_options=parse_options, convert_options=convert_options)

It keeps the same:
Dataset(features: {'text': Value(dtype='string', id=None), 'label': Value(dtype='int64', id=None)}, num_rows: 2210)

I think this issue is caused by the parameter "download_mode" Default to REUSE_DATASET_IF_EXISTS because after I delete the cache_dir, it seems right.
Is it a bug? How to choose proper download_mode to avoid this issue?

download_mode=datasets.GenerateMode.FORCE_REDOWNLOAD should work.
This makes me think we we should rename this to DownloadMode.FORCE_REDOWNLOAD. Currently that's confusing

Can we just use features=... in load_dataset for this @lhoestq?

Indeed you should use features in this case.
features = Features({'text': Value('string'), 'label': Value('float32')})
dataset = load_dataset('csv', data_files=['sst_test.csv'], features=features)

Note that because of an issue with the caching when you change the features (see #750 ) you still need to specify the FORCE_REDOWNLOAD  flag. I'm working on a fix for this one

https://github.com/huggingface/datasets/issues/769#issuecomment-717837832

This makes me think we we should rename this to DownloadMode.FORCE_REDOWNLOAD. Currently that's confusing

@lhoestq do you still think we should rename it?

It's no big deal, but since it can be confusing to users I think it's worth renaming it, and deprecate GenerateMode until datasets 2.0 at least. IMO it's confusing to have download_mode=GenerateMode.something


Add QZ Tray (2.0.0).

Adding a new cask

[x] Checked there aren’t open pull requests for the same cask.
[x] Checked there aren’t closed issues where that cask was already refused.
[x] When naming the cask, followed the token reference.
[x] Commit message includes cask’s name.
[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} left no offenses.
[x] brew cask install {{cask_file}} worked successfully.
[x] brew cask uninstall {{cask_file}} worked successfully.

Closes https://github.com/caskroom/homebrew-cask/issues/22932.

Merged as 98e5371b0112dd71f450f9122615fea4027b4ad1.

Thanks for adding!


How can I change address and port ?

Please check this SO thread: https://stackoverflow.com/questions/60147499/how-to-set-port-in-next-js


pre 1.0.0-alpha0 versions no longer on npm?

It seems like old versions have vanished from npm. Maybe this is related to the release of the 1.0.0-alpha0? I was using "ui-router": "^0.2.15", but that appears to no longer be available and suddenly started breaking my CI build (first noticed: March 1).

You should use the official package: angular-ui-router

Doh. Thanks for the clarification.


Issue to execute JNoSQL with Helidon version MP 2.4.1

Environment Details

Helidon Version: 2.4.1
Helidon SE or Helidon MP: Helidon MP
JDK version: Java 11 or Java 17
OS: Linux
Docker version (if applicable):

Problem Description
I have an issue executing JNoSQL with Helidon version 2.4.1 or higher.
I created a project from either Microprofiler Starter or Maven Architypes and then add these dependencies:
      <dependency>
            <groupId>org.eclipse.jnosql.mapping</groupId>
            <artifactId>mapping-document</artifactId>
            <version>${jakarta.nosql.version}</version>
        </dependency>
        <dependency>
            <groupId>org.eclipse.jnosql.communication</groupId>
            <artifactId>mongodb-driver</artifactId>
            <version>${jakarta.nosql.version}</version>
        </dependency>

I expected to work such as in the previous version, 1.4, however, it stopped working.
I have those projects where both run with extension and only one works, however, both are using the same extension event: ProcessAnnotatedType
https://github.com/architects4j/helidon-challange-skeleton
This project works fine on Java SE or with Payara.

I believe it is related to both:
https://github.com/oracle/helidon/issues/2431 and https://github.com/oracle/helidon/issues/1648

Could you please describe the error you are encountering?

Hey @ljnelson
Helidon did not execute the JNoSQL extensions.
When I run this project
2022.06.22 18:18:55 INFO io.helidon.common.LogConfig !thread!: Logging at initialization configured using classpath: /logging.properties
2022.06.22 18:18:55 INFO org.jboss.weld.Version !thread!: WELD-000900: 3.1.6 (Final)
2022.06.22 18:18:55 INFO org.jboss.weld.Bootstrap !thread!: WELD-ENV-000020: Using jandex for bean discovery
2022.06.22 18:18:55 INFO org.jboss.weld.Bootstrap !thread!: WELD-000101: Transactional services not available. Injection of @Inject UserTransaction not available. Transactional observers will be invoked synchronously.
2022.06.22 18:18:55 INFO org.jboss.weld.Event !thread!: WELD-000411: Observer method [BackedAnnotatedMethod] private io.helidon.microprofile.openapi.OpenApiCdiExtension.processAnnotatedType(@Observes ProcessAnnotatedType<X>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
2022.06.22 18:18:55 INFO org.jboss.weld.Event !thread!: WELD-000411: Observer method [BackedAnnotatedMethod] public org.glassfish.jersey.ext.cdi1x.internal.ProcessAllAnnotatedTypes.processAnnotatedType(@Observes ProcessAnnotatedType<?>, BeanManager) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
2022.06.22 18:18:56 INFO org.jboss.weld.Bootstrap !thread!: WELD-ENV-002001: Weld SE container 3da2625e-5c29-4f3c-9f5c-94bcf9d41c82 shut down
Exception in thread "main" org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type ProductRepository with qualifiers @Default
  at injection point [BackedAnnotatedField] @Inject private com.architects4j.workshop.microstream.helidon.product.ProductResource.repository
  at com.architects4j.workshop.microstream.helidon.product.ProductResource.repository(ProductResource.java:0)

Is this (https://github.com/eclipse/jnosql-mapping-extension/blob/8dc0bfff6a7a4c472b7a9bf4f6cb82d8883cadb2/mongodb-extension/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension#L15) a typo?

Hey, @ljnelson it is a typo, thank you.
But on this sample, we don't use this project.
Basically, we use those projects:

https://github.com/eclipse-ee4j/nosql
https://github.com/eclipse/jnosql
https://github.com/eclipse/jnosql-communication-driver/tree/master/mongodb-driver

Notes to myself as I try to understand this.  I will edit this comment as I learn more, so it will keep changing.
First, the OP adds the following dependency (see comments above):
<dependency>
    <groupId>org.eclipse.jnosql.mapping</groupId>
    <artifactId>mapping-document</artifactId>
    <version>${jakarta.nosql.version}</version> <!-- 1.0.0-b4 as of this writing; see https://github.com/architects4j/helidon-challange-skeleton/blob/18e9a256c86d8b7add3a775a7308449eaa37ebe1/acme-store-service-2/pom.xml#L23 -->
</dependency>

That project contains the following service provider file:
https://github.com/eclipse/jnosql/blob/1.0.0-b4/mapping/mapping-document/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension
It references the following extension:
https://github.com/eclipse/jnosql/blob/1.0.0-b4/mapping/mapping-document/src/main/java/org/eclipse/jnosql/mapping/document/spi/DocumentExtension.java
This extension observes all annotated types (though I'm not sure why it doesn't observe simply ProcessAnnotatedType<Repository> since it appears that is all it is interested in).
Then the OP adds the following dependency (see comments above):
<dependency>
    <groupId>org.eclipse.jnosql.communication</groupId>
    <artifactId>mongodb-driver</artifactId>
    <version>${jakarta.nosql.version}</version> <!-- 1.0.0-b4 as of this writing; see https://github.com/architects4j/helidon-challange-skeleton/blob/18e9a256c86d8b7add3a775a7308449eaa37ebe1/acme-store-service-2/pom.xml#L23 -->
</dependency>

The Maven coordinates for this dependency are here: https://search.maven.org/artifact/org.eclipse.jnosql.communication/mongodb-driver/1.0.0-b4/jar
There is no <source> element in this pom.xml or its parents that results in a project that contains a mongodb-driver artifact, so it must live somewhere else.
Fortunately the sources themselves are in Maven Central: https://repo1.maven.org/maven2/org/eclipse/jnosql/communication/mongodb-driver/1.0.0-b4/mongodb-driver-1.0.0-b4-sources.jar
From searching Github for an occurrence of OldMongoDBDocumentConfigurations (a class name in the sources that seems pretty unique), we can see that the source code for the mongodb-driver artifact lives here: https://github.com/eclipse/jnosql-communication-driver/tree/1.0.0-b4/mongodb-driver
There are no additional portable extensions in this project.
The OP claims that the (sole) portable extension does not execute because the error output from Weld indicates that there is an injection point expecting a ProductRepository that is unsatisfied.  (Presumably the portable extension exists to satisfy extension points like this.)
The OP expects logging information from DocumentExtension.java's AfterBeanDiscovery observer to be output, but apparently sees no such output.  He assumes that the lack of output means that (a) an instance of DocumentExtension is never created by the container, (b) its ProcessAnnotatedType observer never runs and (c) its AfterBeanDiscovery observer never runs.
All of this could of course be because the log level is not set appropriately; we'll have to make sure that's the case.

Thank you @ljnelson

@otaviojava Some more information on why adding the Jackson dependency helps...
As you have no doubt noticed, Helidon's OpenAPI support layers on some SmallRye OpenAPI components. Although SmallRye defaults to using Jackson, it also permits callers to provide their own AnnotationScannerExtension to do parsing however they want, using whatever libraries they want. Helidon does just that.
Your use case has revealed a place in SmallRye's code that uses Jackson even if the caller provides the extension.
I have opened https://github.com/smallrye/smallrye-open-api/issues/1161 about this.
As you've done, adding Jackson yourself to the dependencies sidesteps this problem for your Helidon app.


[release-1.7] add support of revision for operator commands

This is an automated cherry-pick of #25716

@istio-testing: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

release-notes_istio_release-1.7
461a99575a8e6594a4e73299c1d40b45f17f35a4
link
/test release-notes_istio_release-1.7

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@brian-avery what do you want to do about release notes for backports? I don't think there should be a check for those atm.
Cheers,
-steve

I actually added releasenote in another PR: https://github.com/istio/istio/pull/25732 would cherry pick that as well


[Feature request] Progress Bar

Progress Bar would be very useful when running on big datasets.

#244


GTM includes time coded on a new uncommitted file in commit time

Describe the bug
If you program on a file and revert all the changes, GTM includes the time spent on coding on that file in the next commit. That is reasonable. However, when you create a new file after the last commit and spend time coding on it but don't include it in the next commit, GTM still includes the time spent on coding that file in the commit, even although you haven't committed these changes yet.
To Reproduce

Create a new file after the last commit and spend time coding on it
Commit other changes
=> GTM also includes the time you spent coding on that new uncommitted file in the next commit

Expected behavior
GTM should not include time spent on uncommitted changes in a commit. No matter if the file is new or not.
Screenshots/Logs
The files are not committed:

But GTM includes them in the report:

(and the time is not in status anymore since it has been committed)
Desktop:

OS: macOS
Version: 1.0.3

Additional context
Is there any way to revert this bug and exclude the time spent on these files out of that commit where they haven't been committed so the time spent on them will be counted for the actual commit where they will be committed?

Hmm, managed to reproduce so definitely is an issue. I'll try to look into it at the end of the week if I have time

Hey, any updates on this?

Haven't had enough time to look into it, sorry!
Can't give you any eta as well as quite busy days at school

Hey,
I can completely understand that when being busy and just having much to do for school / uni / work / etc., you often don't have much time for private projects and such stuff.
I just wanted to ask if you have any plans to look into this and resolve it sometimes, since I can imagine you forgot about it.
It's still an issue I've encountered and since I like and use GPT, it would be nice to have it fixed sometimes.
But I completely understand if you currently have much on your mind, I just thought giving a reminder so maybe when you have more time you could look into it for a bit would be a good idea. :)


az logic workflow update cmd without --definition option removes parameters property in Logic App code

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug
After executing following cmd, parameters property including API connection resource id in Logic App code would be removed.
---
az logic workflow update --resource-group "{Resource Group}" --name "{Workflow Name}" --state "{Enabled or Disabled}"
---
To Reproduce
I reproduced via latest az logic app module.
My Repro

Cmd
az logic workflow update --resource-group "logicapps" --name "array" --state "Enabled"

Code before executing the cmd

{
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"actions": {
"Get_blob_content_(V2)": {
"inputs": {
"host": {
"connection": {
"name": "@parameters('$connections')['azureblob_2']['connectionId']"
}
},
"method": "get",
"path": "/v2/datasets/@{encodeURIComponent(encodeURIComponent('AccountNameFromSettings'))}/files/@{encodeURIComponent(encodeURIComponent('JTJmdGVzdCUyZmFhYS50eHQ='))}/content",
"queries": {
"inferContentType": true
}
},
"metadata": {
"JTJmdGVzdCUyZmFhYS50eHQ=": "/test/aaa.txt"
},
"runAfter": {},
"type": "ApiConnection"
}
},
"contentVersion": "<IP_ADDRESS>",
"outputs": {},
"parameters": {
"$connections": {
"defaultValue": {},
"type": "Object"
}
},
"triggers": {
"Recurrence": {
"evaluatedRecurrence": {
"frequency": "Month",
"interval": 3
},
"recurrence": {
"frequency": "Month",
"interval": 3
},
"type": "Recurrence"
}
}
},
"parameters": {
"$connections": {
"value": {
"azureblob_2": {
"connectionId": "/subscriptions/subscriptionId/resourceGroups/logicapps/providers/Microsoft.Web/connections/azureblob-5",
"connectionName": "azureblob-5",
"id": "/subscriptions/subscriptionId/providers/Microsoft.Web/locations/japaneast/managedApis/azureblob"
}
}
}
}
}

Code after executing the cmd

{
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"actions": {
"Get_blob_content_(V2)": {
"inputs": {
"host": {
"connection": {
"name": "@parameters('$connections')['azureblob_2']['connectionId']"
}
},
"method": "get",
"path": "/v2/datasets/@{encodeURIComponent(encodeURIComponent('AccountNameFromSettings'))}/files/@{encodeURIComponent(encodeURIComponent('JTJmdGVzdCUyZmFhYS50eHQ='))}/content",
"queries": {
"inferContentType": true
}
},
"metadata": {
"JTJmdGVzdCUyZmFhYS50eHQ=": "/test/aaa.txt"
},
"runAfter": {},
"type": "ApiConnection"
}
},
"contentVersion": "<IP_ADDRESS>",
"outputs": {},
"parameters": {
"$connections": {
"defaultValue": {},
"type": "Object"
}
},
"triggers": {
"Recurrence": {
"evaluatedRecurrence": {
"frequency": "Month",
"interval": 3
},
"recurrence": {
"frequency": "Month",
"interval": 3
},
"type": "Recurrence"
}
}
},
"parameters": {}
}
Expected behavior
There expected to be no change parameters property in Logic App code.
Environment summary
All Consumption Logic App has API connection.
Additional context
The parameters property has data of API connection.
This impact is very large.

route to CXP team

@ShingoHanai I could see the same behavior and checking internally on the same.  I will get back to you.
Thanks
Saurabh

@SaurabhSharma-MSFT  Thanks for your quick check. Can you share ETA to fix it?
Thanks
Shingo Hanai

@ShingoHanai I do not have any ETA as products team needs to look into this issue.

I have recently reproduced this event with other subscriptions.
Is there any progress here?
Best Regards,


Wrong camera poses in ScanNet

Hi, when I deal with ScanNet dataset, I found that camera poses in some frames are wrong, is this solved in your work or did you find the same problem? Thanks.

If I remember correctly, I simply removed the NaN poses. Apart from that I didn't do anything else.


Release/0.9.0

Thanks @benjben , I just updated the issue description. Assuming you check that, the related commit leverages post-processors of Packer to handle 2nd and 3rd steps. The reason we install Google Cloud CLI tools is because Packer doesn't have native support for the 3rd step yet, hence we run gsutil until then. I also tested this for rc6 and you can see how it worked out from the travis job.

Thanks for the explanation and thanks for updating the issue description!


common/pc: remove libinput.enable

Description of changes
Has been default in nixpkgs for a long time now.
Things done

[x] Tested the changes in your own NixOS Configuration
[x] Tested the changes end-to-end by using your fork of nixos-hardware and
importing it via <nixos-hardware> or Flake input

@mergify queue


e2e: Refactor status condition checks to use gomega matchers

Signed-off-by: timflannagan<EMAIL_ADDRESS>

Note: I wasn't entire sure how to refactor https://github.com/operator-framework/rukpak/blob/d8e7a1d1eaa685746e9fd86164253758ac7d26f5/test/e2e/plain_provisioner_test.go#L754 which compares multiple status conditions using a single eventually statement. Open to ideas, but I think we can dissect that check into individual By statements, which allows us to remove that conditionsSemanticallyEqual testing helper function.


docs: add more clear and description comments

Description

closes: #152
Tasks

[x] scan through client folder to improve comments @kogisin
[x] scan through  keeper folder to improve comments @hallazzang
[ ] ~scan through simulation folder to improve comments~ @kogisin (found some comments for TODOs and this is better to be handled with #108
[x] scan through   types folder to improve comments @hallazzang

Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

[ ] Appropriate labels applied
[ ] Targeted PR against correct branch
[ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
[ ] Code follows the module structure standards.
[ ] Wrote unit and integration
[ ] Updated relevant documentation (docs/) or specification (x/<module>/spec/)
[ ] Added relevant godoc comments.
[ ] Re-reviewed Files changed in the Github PR explorer
[ ] Review Codecov Report in the comment section below once CI passes

Should we R4R now?

@kogisin Yes we can remove that line and make this PR ready for review.


⚠ Turnos 24x7 has degraded performance

In df19356, Turnos 24x7 (https://reservas-dev.alternativasinteligentes.com/) experienced degraded performance:

HTTP code: 200
Response time: 3485 ms

Resolved: Turnos 24x7 performance has improved in 559119a.