Cannot upload state file to blob storage

After deploying level0 launch pad rover attempts to upload the state file and errors out:
Terraform apply return code: 0
@calling get_storage_id
@calling upload_tfstate
Moving launchpad to the cloud
jq: error (at <stdin>:1): Cannot index array with string "name"
 - storage_account_name:
jq: error (at <stdin>:1): Cannot index array with string "resourceGroup"
 - resource_group:
ArgumentParseError: argument --account-name/-n: expected one argument
Try this: 'az storage account keys list -g MyResourceGroup -n MyStorageAccount'
Still stuck? Run 'az storage account keys list --help' to view all commands or go to 'https://docs.microsoft.com/en-us/cli/azure/reference-index?view=azure-cli-latest' to learn more
 - storage_key: retrieved
ArgumentParseError: argument --account-name: expected one argument
Try this: 'az storage blob upload --account-name mystorageaccount --account-key 0000-0000 --container-name mycontainer --file /path/to/file --name myblob'
Still stuck? Run 'az storage blob upload --help' to view all commands or go to 'https://docs.microsoft.com/en-us/cli/azure/reference-index?view=azure-cli-latest' to learn more
Error on or near line 318; exiting with status 1

rover version: aztfmod/rover:2010.2808

The error was caused by not passing the -env flag in the rover command, we set our environment to dev but rover was defaulting to sandpit so could not upload.  Closing issue


Feature request: consider missing values as valid values in Brunel range filter

Brunel range filter only supports "&&" operation. In some cases, we need both "&&" and "||". For example, I want the chart displayed with ( (value <= max) && (value >= min)) || (value == 0). Right now, there is no way to do it in Brunel.
With this new feature which is requrested here, we are set 0 as missing then my scenario above will work.

"keepmissing" option on filters
Filters can now take an additional parameter keepmissing that changes the default behavior for missing values in filters. When this parameter is specified, missing values are treated as if they were inside the range. Without this parameter, they are treated as lying outside the range, causing that row to be filtered out.
The syntax is just to add :keepmissing on the filter

I tested in our codes and it is working!!! Thanks


Support for Confirmed Incident Lineups

Golbat support to decode proto methods 1200 and 1202
1200 can confirm the incident character, such as Giovanni or a Decoy
1202 confirms the entire incident's lineup to inform users about the reward
Webhook Additions:
    {
      "confirmed": true,
      "lineup": [
        { "slot": 1, "pokemon_id": 2, "form": 3 },
        { "slot": 2, "pokemon_id": 124, "form": 124 },
        { "slot": 3, "pokemon_id": 97, "form": 42 }
      ]
    }

Change Notes:

migration to add some columns to the incident table
update invasion lineups and confirmation status when they're opened
sends webhooks
requires mitm that sends these protos
1202 also requires the mitm to send OpenInvasionCombatSessionProto (the request) in order to confirm the incident_id for the decoder

Closes #12
Closes #80
Confirmed working with https://github.com/WatWowMap/ReactMap/pull/682

Lgtm


New release for Java 11?

Java 11 is in RC and will be out in a couple weeks.   The latest ASM is out and supports Java 11 bytecode already.  Is a new release required?

Definitely a new release Guice-4.2.1 is needed.
I can't run my code on Java 10 either without the newest ASM.
I use now 4.2.1-SNAPSHOT updated 2 days ago successfully.
Please release 4.2.1 ASAP, thanks!

FYI 4.2.1 is released with proper jdk10 support.  it may be better for jdk11 too, but asm doesn't have a non-experimental way of supporting jdk11 yet, so i'll do another release for jdk11 once that's out.

It's ok.
When will guice-4.2.1 be availble in maven central?

It should be on maven central now.

http://mail.openjdk.java.net/pipermail/announce/2018-September/000257.html
JDK 11 is now GA

When asm releases a new version that non-experimentally supports JDK11, I'll include that and re-release.  Feel free to ping here when ASM releases a new version, thanks.

@sameb is there any asm issue at all? Can't find any one here https://gitlab.ow2.org/asm/asm/issues?scope=all&utf8=✓&state=opened

no there is no bug in asm we're waiting on.  we're just waiting on a release of ASM that supports JDK11 properly.  asm reads bytecode, and jdk11 added new bytecode.  the current version has an experimental JDK11 mode that can be enabled using ASM7_EXPERIMENTAL, but i don't want a proper release of guice to depend on experimental stuff.  asm appanarelty releases builds that properly support the current JDK a few days after the JDK itself is released.

On JDK 11 with Guice 4.2.1 I was getting the exception
Caused by: java.lang.UnsupportedOperationException
	at com.google.inject.internal.asm.$ClassVisitor.visitNestMemberExperimental(ClassVisitor.java:248)
	at com.google.inject.internal.asm.$ClassReader.accept(ClassReader.java:651)
	at com.google.inject.internal.asm.$ClassReader.accept(ClassReader.java:391)
	at com.google.inject.internal.cglib.core.$DuplicatesPredicate.<init>(DuplicatesPredicate.java:93)
	at com.google.inject.internal.cglib.proxy.$Enhancer.getMethods(Enhancer.java:557)
	at com.google.inject.internal.cglib.proxy.$Enhancer.getMethods(Enhancer.java:535)
	at com.google.inject.internal.ProxyFactory.<init>(ProxyFactory.java:87)
	at com.google.inject.internal.ConstructorInjectorStore.createConstructor(ConstructorInjectorStore.java:82)
	at com.google.inject.internal.ConstructorInjectorStore.access$000(ConstructorInjectorStore.java:29)
	at com.google.inject.internal.ConstructorInjectorStore$1.create(ConstructorInjectorStore.java:37)
	at com.google.inject.internal.ConstructorInjectorStore$1.create(ConstructorInjectorStore.java:33)
	at com.google.inject.internal.FailableCache$1.load(FailableCache.java:40)

because of the ASM7_EXPERIMENTAL opcodes.
You can workaround this by passing
-Dcom.google.inject.internal.cglib.$experimental_asm7=true

to the jvm

Yup, I just don't want to make an official release using experimental stuff. Once asm puts out a release with a non experimental version, I'll use it.

See https://github.com/cglib/cglib/pull/136

Unfortunately adding -Dcom.google.inject.internal.cglib.$experimental_asm7=true does not sort it out for me

ASM 7 released!
https://mail.ow2.org/wws/arc/asm/2018-10/msg00008.html
http://central.maven.org/maven2/org/ow2/asm/asm/7.0/
Updated cglib pull request:
https://github.com/cglib/cglib/pull/138

released guice 4.2.2 w/ new cglib & asm.  may take a couple hours before it shows up on maven central.

@sameb Thank you very much!


Removing cpu from limits in yaml as it is already removed

we have removed cpu to be part of limits in NG delegate yaml. Making docs consistent with the same.
Harness Developer Pull Request
Thanks for helping us make the Developer Hub better. The PR will be looked at
by the maintainers.

What Type of PR is This?

[ ] Issue
[ ] Feature
[ ] Maintenance/Chore

If tied to an Issue, list the Issue(s) here:

Issue(s)

House Keeping
Some items to keep track of. Screen shots of changes are optional but would help the maintainers review quicker.

[ ] Tested Locally
[ ] Optional Screen Shoot.

Preview environment: https://hdh.pr.harness.io/pr-922


[BUG] Qualifiable should not have ModelType

What happens?
In api specification Qualifiable has ModelType which is wrong.

...
Why is this wrong?
We don't have any corresponding ModelType for Qualifiable. Neither in metamodel nor in current api specification.

How should it be fixed?
I would suggest to add Qualifier in the ModelType enum. And then add ModelType to Qualifier instead of Qualifiable. This would introduce less backward compatibility issue.
Otherwise, we need to remove it from api specification.
...

[x] I have signed the required Developer Certificate of Origin (DCO) already.

Generated from https://github.com/admin-shell-io/aas-specs/blob/2fe82a66ca502f9c5aea1ef0de0baaa729469faf/schemas/json/aas.json#L1061C1-L1066C20 --> check with https://github.com/aas-core-works

Thanks for raising the issue. We will fix it with the next version.

please see https://github.com/admin-shell-io/aas-specs/tree/master/schemas/json#discriminator for information which elements have a modelType-Attribute (modelType ist not part of the metamodel and only available in the json serialization)


Submit DEP 034 to TC52

DEP 34 has been approved. Please put under consideration in TC52.
https://github.com/dart-lang/dart_enhancement_proposals/blob/master/Accepted/0034 - Less Restricted Mixins/proposal.md

conflict : DEP 034 in title vs. DEP 28 in description.

My bad, this is indeed for 34. Updated.

Not required to ship 1.13, removing release value.

As of the 4th edition of Ecma 408 (Dec'15) this now part of the standard.
http://www.ecma-international.org/publications/standards/Ecma-408.htm


⚠ Bofrost.fr has degraded performance

In 9e9f9be, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1264 ms

Resolved: Bofrost.fr performance has improved in 090dded after 13 minutes.


Implemented the "Edit this page" feature. #3495

Created an "Edit this page" link for the footer of all the
documentation. The link uses the fa-pencil icon of font awesome.
See issue #3495 for more information.
Signed-off-by: Martin Jorn Rogalla<EMAIL_ADDRESS>

@mdenhoedt @abouter could you please check this?


Build failed in Intel XDK for Android.

I know it's because the plugin needs gradle to build and XDK doesn't support it... Is there any possibility to make a branch or a solution for this? Thank you!

@josek5494
any news ?
did you solve the problem ?


Backport HSEARCH-3240 to branch 5.10 - Use the pre-installed JDK in the Travis build instead of trying to update it in each build

https://hibernate.atlassian.net//browse/HSEARCH-3240
#1709 should be merged first.

I'm a bit worried that the version could change without us seeing it but I suppose that's OK as long as we keep our CI?

Yes, and I plan to keep our CI. I plan to use it even more, actually, since we're introducing Jenkins pipelines in Search 6.
Also, the version could change without us seing before this patch, too, since we were effectively upgrading to the latest version in each build.

Merged, thanks!


Create .env file to store project environment variables

DevEx/OpEx
An .env file will make it easier to use and manage environment variables needed in the project, in a local dev environment
Tasks

[x] Create PR for task/eng-create_local_env_file branch
[x] Consider not relying in third party library to read .env files if custom handling is straightforward --> did some research and it's not straightforward
[ ] Make sure the sample .env.example has entries for all currently used env vars
[ ] Dynamically create a sample .env to use in the tests
[ ] Add tests

We currently have a draft PR with work so far. Still pending, we need to find a good way to handle .env files for e2e test, unit test and app scopes. I moved .env files to resources folder, but we may move them elsewhere if more appropriate


Version v0.3.4: Long TXs support, NVM storage, Settings submenu, fixes.

Description
Features:

Use the maximum SRAM capacity to store transactions for each Ledger model.
Create a "Settings" step in the menu.

Create data types for the NVM storage.
Add the "Show Full Message" option.
Move the "Version" info to the "About" submenu.

Version bump to 0.3.4.

Fixes:

Fix a problem with signing short messages.
Add a string length check defining well-known transaction types.
CI: Explicitly specify the ledger-app-builder version.
Get rid of the "app-boilerplate" legacy.

Changes include

[x]  Bugfix (non-breaking change that solves an issue)
[x]  New feature (non-breaking change that adds functionality)
[ ]  Breaking change (change that is not backwards-compatible and/or changes current functionality)
[x]  Tests
[ ]  Documentation
[ ]  Other (for changes that might not fit in any category)

Codecov Report
Base: 63.83% // Head: 63.97% // Increases project coverage by +0.13% :tada:

Coverage data is based on head (384f5e9) compared to base (8fcc195).
Patch coverage: 68.75% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop       #5      +/-   ##
===========================================
+ Coverage    63.83%   63.97%   +0.13%
===========================================
  Files           13       13
  Lines          777      780       +3
===========================================
+ Hits           496      499       +3
  Misses         281      281

Flag
Coverage Δ

unittests
63.97% <68.75%> (+0.13%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

src/apdu/parser.c
100.00% <ø> (ø)

src/transaction/deserialize.c
48.58% <64.28%> (+0.29%)
:arrow_up:

src/transaction/utils.c
100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


CircleBorder sizing doesn't match the size of the enclosed Text

Steps to Reproduce
Create a RaisedButton like this:
RaisedButton(
  child: Text('Click me'),
  onPressed: () {},
  shape: CircleBorder(),
)

The button does become circular, but it's sized after the height of the text, not the width:

The only workaround I have found, it to wrap the whole thing in a SizedBox, and hard-code a specific height that is large enough. This is poor solution, as that hardcoded value depends on the concrete text.
Version
flutter --version
Flutter 1.5.4-hotfix.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 7a4c33425d (7 weeks ago) • 2019-04-29 11:05:24 -0700
Engine • revision 52c7a1e849
Tools • Dart 2.3.0 (build 2.3.0-dev.0.5 a1668566e5)
| ~/dev @ mit-macbookpro3 (mit)

It looks like circular_border.dart has a bunch of calculations using rect.shortestSide. Should that perhaps be rect.longestSide?

Yes it should be rect.longestSide.

Issue still exist
Code Sample
import 'package:flutter/material.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Material App',
      home: Scaffold(
        appBar: AppBar(
          title: Text('Material App Bar'),
        ),
        body: Center(
          child: RaisedButton(
            child: Text('Click me'),
            onPressed: () {},
            shape: CircleBorder(),
          ),
        ),
      ),
    );
  }
}

flutter doctor -v
[✓] Flutter (Channel dev, v1.18.0-6.0.pre, on Mac OS X 10.15.4 19E287, locale
    en-GB)
    • Flutter version 1.18.0-6.0.pre at /Users/taha/Code/flutter_dev
    • Framework revision 84c84fb249 (3 days ago), 2020-04-20 21:35:01 -0400
    • Engine revision 2bde4f0ae4
    • Dart version 2.9.0 (build 2.9.0-1.0.dev a12c36dd97)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/taha/Code/sdk
    • Platform android-29, build-tools 29.0.3
    • ANDROID_HOME = /Users/taha/Code/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_212-release-1586-b4-5784211)
    • All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.4.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.4.1, Build version 11E503a
    • CocoaPods version 1.9.1
[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 3.6)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 45.1.1
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build
      1.8.0_212-release-1586-b4-5784211)
[✓] VS Code (version 1.44.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.9.1
[✓] Connected device (4 available)
    • Android SDK built for x86 • emulator-5554 • android-x86    • Android 10
      (API 29) (emulator)
    • macOS                     • macOS         • darwin-x64     • Mac OS X
      10.15.4 19E287
    • Chrome                    • chrome        • web-javascript • Google Chrome
      81.0.4044.122
    • Web Server                • web-server    • web-javascript • Flutter Tools
• No issues found!

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

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

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

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

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

[✓] Connected device (2 available)
    • Taha’s iPad (mobile) • 00008020-000255113EE8402E            • ios • iOS 14.3
    • iPhone 12 (mobile)   • 181EDE6A-AA9B-4619-8352-9CD6F7A9CD61 • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)

! Doctor found issues in 1 category.

[✓] Flutter (Channel master, 1.26.0-2.0.pre.222, on macOS 11.1 20C69 darwin-x64, locale en-GB)
    • Flutter version 1.26.0-2.0.pre.222 at /Users/tahatesser/Code/flutter_master
    • Framework revision 655cd1e2a6 (5 hours ago), 2021-01-07 03:19:03 -0500
    • Engine revision 7f00e2f6c5
    • Dart version 2.12.0 (build 2.12.0-179.0.dev)

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

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

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

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

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

[✓] Connected device (4 available)
    • Taha’s iPad (mobile) • 00008020-000255113EE8402E            • ios            • iOS 14.3
    • iPhone 12 (mobile)   • 181EDE6A-AA9B-4619-8352-9CD6F7A9CD61 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)      • macos                                • darwin-x64     • macOS 11.1 20C69 darwin-x64
    • Chrome (web)         • chrome                               • web-javascript • Google Chrome 87.0.4280.141

• No issues found!

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

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

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

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

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

[✓] Connected device (2 available)
    • Taha’s iPad (mobile) • 00008020-000255113EE8402E            • ios • iOS 14.3
    • iPhone 12 (mobile)   • 181EDE6A-AA9B-4619-8352-9CD6F7A9CD61 • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)

! Doctor found issues in 1 category.

[✓] Flutter (Channel master, 1.26.0-2.0.pre.222, on macOS 11.1 20C69 darwin-x64, locale en-GB)
    • Flutter version 1.26.0-2.0.pre.222 at /Users/tahatesser/Code/flutter_master
    • Framework revision 655cd1e2a6 (5 hours ago), 2021-01-07 03:19:03 -0500
    • Engine revision 7f00e2f6c5
    • Dart version 2.12.0 (build 2.12.0-179.0.dev)

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

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

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

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

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

[✓] Connected device (4 available)
    • Taha’s iPad (mobile) • 00008020-000255113EE8402E            • ios            • iOS 14.3
    • iPhone 12 (mobile)   • 181EDE6A-AA9B-4619-8352-9CD6F7A9CD61 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)      • macos                                • darwin-x64     • macOS 11.1 20C69 darwin-x64
    • Chrome (web)         • chrome                               • web-javascript • Google Chrome 87.0.4280.141

• No issues found!

There is now OvalBorder which will fill the available space. CircleBorder is also customizable via eccentricity parameter.
The issue with longestSide is that it would imply painting beyond the available width/height limit. There is no border that paints beyond its own size (except with border.width when strokeAlign is center/outside).

I was able to reproduce the issue with eccentricity 0.0, As per the docs It will touch two sides of rectangle which seems unclear

Defines the ratio (0.0-1.0) from which the border will deform to fit a rectangle. When 0.0, it draws a circle touching at least two sides of the rectangle. When 1.0, it draws an oval touching all sides of the rectangle.

ElevatedButton(
   style: ElevatedButton.styleFrom(
     shape: const CircleBorder(
     eccentricity: 0.0,
   ),
 ),
 onPressed: () {},
 child: const Text('Click me'),
)

With different eccentricity and oval border, it covers the entire text though.
ElevatedButton(
     style: ElevatedButton.styleFrom(shape: const OvalBorder()),
     onPressed: () {},
     child: const Text('Click me'),
 )

ElevatedButton(
   style: ElevatedButton.styleFrom(
     shape: const CircleBorder(
     eccentricity: 0.5,
   ),
 ),
 onPressed: () {},
 child: const Text('Click me'),
)

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

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

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

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

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

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

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

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

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

• No issues found!

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

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

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

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

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

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

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

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

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

• No issues found!

I was able to reproduce the issue with eccentricity 0.0, As per the docs It will touch two sides of rectangle which seems unclear

Top and bottom. It won't touch left and right.


DynamoDB latency is in tens of milliseconds in Lambda

Sorry if this is the wrong place to report this kind of issue / ask for help. Please redirect me to a better place.
Describe the bug
I have a Lambda function written in Swift which does both GetItem and PutItem requests to a DynamoDB table in the same region.
Latency of DynamoDB requests is high, typically 30-50 ms.
Latency this high is very bad, considering Lambda is priced per 100 ms. Two DynamoDB calls would very likely break the threshold of 100 ms causing extra charges. This goes against the selling point of DynamoDB of single-digit millisecond performance at any scale. Also it doesn't make a very good user experience.
NOTE: I clipped numbers to whole integers for legibility, actual code prints numbers like<PHONE_NUMBER>0443115.
GetItem took 139 ms
GetItem took 52 ms
GetItem took 47 ms
GetItem took 43 ms
GetItem took 71 ms
GetItem took 41 ms
PutItem took 43 ms
PutItem took 34 ms
PutItem took 57 ms
PutItem took 34 ms
PutItem took 34 ms
PutItem took 37 ms
PutItem took 33 ms

Comparable Node.js 10.x code runs much faster:
loadSettings: 79.127 ms
loadSettings: 6.707 ms
loadSettings: 4.887 ms
loadSettings: 26.218 ms
loadSettings: 4.967 ms
loadSettings: 4.766 ms
saveSettings: 7.832 ms
saveSettings: 6.325 ms
saveSettings: 6.049 ms
saveSettings: 20.504 ms
saveSettings: 6.546 ms
saveSettings: 6.178 ms

Both Lambdas run with 1024 MB of RAM in eu-central-1 and the DynamoDB table is in the same region.
Expected behavior
I'd expect to be able to access DynamoDB from a Swift Lambda using AWS Swift SDK with single-millisecond performance, or at least close to it.
Setup (please complete the following information):

OS: AWS Lambda with custom Linux runtime
Version of aws-sdk-swift: tested with both 4.0.0 and async-http-client
Authentication mechanism: IAM Role on the Lambda

Additional context
Here's my Swift code in essence (GetItem, PutItem is very similar).
let dynamoDB = DynamoDB() // passed as a parameter to my actual function

// function is actually run in Kitura router handler, my Lambda handles multiple routes
func get(userId: String, dynamoDB: DynamoDB) {
    let getRequest = DynamoDB.GetItemInput(
        key: [
            "PK" : DynamoDB.AttributeValue(s: userId),
            "SK": DynamoDB.AttributeValue(s: "SETTINGS")
            ],
        tableName: "TableName")

    let startTime = Date()
    dynamoDB.getItem(getRequest)
        .map { result -> Void in
            let endTime = Date()
            log("GetItem took \((endTime.timeIntervalSinceReferenceDate - startTime.timeIntervalSinceReferenceDate) * 1000 ) ms")

            // ... actual handling code
            return ()
        }
}

This is my Node.js code (loadSettings, saveSettings code is very similar).
const AWS = require('aws-sdk');
const db = new AWS.DynamoDB.DocumentClient()

async function getSettings(db, userId) {
    console.time('loadSettings')

    const params = {
        TableName: "TableName",
        Key: {
            "PK": userId,
            "SK": "SETTINGS",
        }
    };

    const settingsResult = await db.get(params).promise()

    console.timeEnd('loadSettings')
}

I have AWS_NODEJS_CONNECTION_REUSE_ENABLED set to 1 in my Node.js lambda function env. It helps bring down the latency for subsequent DB requests.
Any ideas, help or pointers very much appreciated. Am I missing something obvious? I'm pretty new to AWS Swift SDK, Lambdas and DynamoDB, so maybe I just don't know something essential yet.
Lastly, thanks for this project!

Thank you for your detailed bug.
At first glance, I would say the HTTP client we use (async-http-client) doesn't have a connection pool setup yet so connection re-use is not implemented in aws-sdk-swift. Once the connection pool work currently going on is complete we will be looking to make use of this in aws-sdk-swift.
I wouldn't want to place all the blame there though. We need to look at the performance of our code as well (it was on my list).

Thanks for the swift reply! Looking forward to testing with connection pooling, when it comes available.

@pkamppur Most of the performance difference should come from the missing connection pooling in AsyncHTTPClient as @adam-fowler pointed out.
There is one thing that's interesting though:
Your first invocation is considerably slower than the consecutive ones, even in swift - where basically all invocations should remain more or less equal (since all the work has to be done every time). In your code though you point out that you only measure the time for the actual request - not the complete lambda invocation time.
Would you mind running your example again with AWS_NODEJS_CONNECTION_REUSE_ENABLED set to 0 and with the swift times from the AsyncHTTPClient branch?
Thanks so much in advance.

@fabianfett Hi! Thanks for the reply.
First invocation does seem to be slower than the other ones. Perhaps some internal network stack stuff is initialised during that, or some caches get warmed? And yes, I'm trying to measure just the DynamoDB request, not whole Lambda invocation duration.
I tested my Lambda with the different configurations you suggested. Here are the results:
Node.js Without AWS_NODEJS_CONNECTION_REUSE_ENABLED
loadSettings: 94.451ms
loadSettings: 25.728ms
loadSettings: 25.517ms
loadSettings: 33.424ms
loadSettings: 25.785ms
loadSettings: 22.703ms
loadSettings: 26.988ms
saveSettings: 26.624ms
saveSettings: 29.816ms
saveSettings: 26.538ms
saveSettings: 20.793ms
saveSettings: 28.085ms
saveSettings: 26.478ms
saveSettings: 31.437ms
saveSettings: 25.173ms
saveSettings: 29.654ms

Swift with latest swift-aws/aws-sdk-swift:async-http-client
GetItem SETTINGS took 129.04 ms
GetItem SETTINGS took 45.19 ms
GetItem SETTINGS took 40.48 ms
GetItem SETTINGS took 43.83 ms
GetItem SETTINGS took 37.82 ms
GetItem SETTINGS took 34.73 ms
GetItem SETTINGS took 42.43 ms
GetItem SETTINGS took 41.39 ms
GetItem SETTINGS took 41.12 ms
PutItem SETTINGS took 48.17 ms
PutItem SETTINGS took 47.25 ms
PutItem SETTINGS took 30.68 ms
PutItem SETTINGS took 39.20 ms
PutItem SETTINGS took 44.14 ms
PutItem SETTINGS took 36.86 ms
PutItem SETTINGS took 42.97 ms
PutItem SETTINGS took 32.53 ms
PutItem SETTINGS took 28.47 ms
PutItem SETTINGS took 40.52 ms

On average it seems that Node.js manages gets in 25 ms while it takes Swift 40 ms.
Hope this helps!

@pkamppur what are you using to build your swift lambdas?

I'm using Docker locally on my Mac.
This is the contents of my Dockerfile:
FROM swift:5.1.2 as builder

RUN apt-get -qq update && \
	apt-get -q -y install openssl libssl-dev libcurl4-openssl-dev libicu-dev

This is the command run when building
swift build --build-path .build-linux -c release --product swift-api

One thing that came to mind about first invocation performance. How does Lambda get AWS access keys? I have a role configured to my Lambda. Does Lambda use EC2 metadata service locally to get access keys? Maybe getting those access keys explains the first invocation being slower that the rest?

I am not 100% sure. I’ll have to verify. Using the ec2 instance metadata service would be an obvious cause of a longer initial request.

@pkamppur the access credentials are in the environment. If you want to you can supply them directly like here:
https://github.com/fabianfett/swift-aws-lambda/blob/master/Examples/TodoAPIGateway/Sources/TodoAPIGateway/main.swift
Though AFAIK aws-sdk-swift does this automatically (by grabbing them from env without Metadata roundtrip). The explicit way we would be sure though.

If the environment variables are available aws-sdk-swift will use them

I did a little bit of profiling. Basically recording times at different points in the process. The results are below. I ran PutItem 5 times. I used the a version of the master branch. This is using eu-west-1 but results seem comparable to eu-central-1. I have recorded the time entering a function. Each time value is based off the start time of the request. So to get the time spent in a function subtract its time value from the next time value.
2019-12-02T06:48:06+0000 info: createAWSRequest: 0.005679
2019-12-02T06:48:06+0000 info: createNioRequest: 0.043753
2019-12-02T06:48:06+0000 info: invoke: 0.125016
2019-12-02T06:48:06+0000 info: validate: 0.183648
2019-12-02T06:48:06+0000 info: Done: 0.184154

2019-12-02T06:48:06+0000 info: createAWSRequest: 0.000049
2019-12-02T06:48:06+0000 info: createNioRequest: 0.000575
2019-12-02T06:48:06+0000 info: invoke: 0.001367
2019-12-02T06:48:06+0000 info: validate: 0.034385
2019-12-02T06:48:06+0000 info: Done: 0.035892

2019-12-02T06:48:06+0000 info: createAWSRequest: 0.000010
2019-12-02T06:48:06+0000 info: createNioRequest: 0.001113
2019-12-02T06:48:06+0000 info: invoke: 0.001790
2019-12-02T06:48:06+0000 info: validate: 0.034788
2019-12-02T06:48:06+0000 info: Done: 0.034962

2019-12-02T06:48:06+0000 info: createAWSRequest: 0.000039
2019-12-02T06:48:06+0000 info: createNioRequest: 0.001268
2019-12-02T06:48:06+0000 info: invoke: 0.001967
2019-12-02T06:48:06+0000 info: validate: 0.041244
2019-12-02T06:48:06+0000 info: Done: 0.041441

2019-12-02T06:48:06+0000 info: createAWSRequest: 0.000012
2019-12-02T06:48:06+0000 info: createNioRequest: 0.001164
2019-12-02T06:48:06+0000 info: invoke: 0.001872
2019-12-02T06:48:06+0000 info: validate: 0.036232
2019-12-02T06:48:06+0000 info: Done: 0.036383

The majority of time is spent between invoke and validate. This is basically the sending of the http request and receiving the response. Apart from the first run, only about 2ms is spent in aws-sdk-swift code. So any major improvements in speed will be coming from the http client.
The first request is quite interesting. Everything is considerably slower, not just the http request. Not knowing enough about the internals of swift my only explanation for this would be the code is being loaded into the instruction cache and possibly instruction cache misses are super expensive. If you run the lamba again immediately after the first invocation the first request runs in a similar amount of time to all the others.

Interesting. Speedup is 100x. Could it be that a lot of the underlying code relies on Objective-C runtime (via inheriting from NSObject, for example). ObjC runtime has method lookup caches etc. and getting those warm might explain this. I don't know. As you said, these seem to be only 2ms, and the actual network call dominates.

@pkamppur No ObjC runtime on Linux.
Connection pool work on async-http-client seems to be bearing fruit https://github.com/swift-server/async-http-client/pull/105#issuecomment-557752567

Ah, true, I forgot that 😄
I was just reading that async-http-client PR! Hopefully pooling gets done soon 👍

If y'all chime in on that thread/PR it may speed things up.

Did a test with Trevor's connection pooling work. Results are rather good
    0.1745600700378418,
    0.004350066184997559,
    0.0045969486236572266,
    0.0045680999755859375,
    0.004562973976135254

If the lambda is already warm the first request is approx 0.04s

@adam-fowler Thanks for testing the pooling code, and thanks for reporting the problems you found! I'm sure that will make the pooling code get done sooner.
Your results look great, very consistent performance, and faster than Node.js!

Latest build of aws-sdk-swift uses AsyncHTTPClient 1.2.0 which include Connection pooling. I did another Lambda test. This is the output from a DynamoDB test which calls PutItem 5 times and then GetItem 5 times (This is a warm lambda). Times are all based off the start time. I think we can say this is resolved.
START RequestId: cca3fb61-5dba-4ae6-9de0-3d091960aa6f Version: $LATEST
PutItem 0.0038559436798095703
PutItem 0.007524967193603516
PutItem 0.011169910430908203
PutItem 0.014629960060119629
PutItem 0.018123984336853027
GetItem 0.02192091941833496
GetItem 0.02530193328857422
GetItem 0.02902090549468994
GetItem 0.03218197822570801
GetItem 0.03525090217590332
END RequestId: cca3fb61-5dba-4ae6-9de0-3d091960aa6f
REPORT RequestId: cca3fb61-5dba-4ae6-9de0-3d091960aa6f	Duration: 36.13 ms	Billed Duration: 100 ms	Memory Size: 1024 MB	Max Memory Used: 73 MB

If I run all the PutIems in parallel and all the GetItems in parallel the Lambda execution time reduces to 14ms

Hi!
Sorry it took me so long to reply.
Excellent! Glad to see things got fast. Thanks!


放大后的图片有色块

P1是原图，P2是使用realesrgan-ncnn-vulkan-20211212-windows放大后，人物的脸上出现了奇怪的色块

Have you tried set -tile size to something bigger than you image. That way you should not have tile issue.

Have you tried set -tile size to something bigger than you image. That way you should not have tile issue.

Thanks, I tried "-t 128" and it did better but there still exists tile

请问你的这个问题解决了吗。是否有可能是因为在彩色图像上应用sinc滤波器使得不同通道的幅值叠加过高了呢？


Incorrect encoding/decoding

Maybe I'm crazy but when doing
 console.log(new Buffer(utf8.encode("π"), 'utf8'))

> <Buffer c3 8f c2 80>
When I believe the correct encoding should be
<Buffer cf 80>
As Swift shows

Found because my socket.io-client-swift's unicode messages are exploding inside of https://github.com/Automattic/engine.io-parser/blob/master/lib/index.js#L157
For example this string is what's being passed into decode

Looking more closely, I believe this might be a problem with engine.io-parser

>  console.log(jsesc(utf8.encode('π'), 'utf8'))
\xCF\x80

https://mothereff.in/utf-8#π
I don’t see a problem here.
Please post a link to the engine.io-parser issue once you’ve filed it.

https://github.com/Automattic/engine.io/issues/315


pubsub: Properly parse big numbers

Bug Report
Setup
CometBFT version (use cometbft version or git rev-parse --verify HEAD if installed from source):
0.38.x, main,
Have you tried the latest version: yes/no
yes
What happened?
The performance optimizations introduced with tendermint/tendermint#7319 parse all numbers occurring in a query using ParseFloat, including integers. While this solves the problem of parsing big integers, it might lead to a loss of precision.
One way to achieve this is introduce a TFNumber and TIntNumber in query/syntax/scanner which would replace the current TNumber type. The function scanNumber already detects potential . in the number.
What did you expect to happen?
Integers are parsed using either ParseInt or parsed as big integers (for example by using math/big).

Closed by #797


Add --branch option to ghq get for specifying branch

Hi,
this patch adds --branch option to ghq get. Sample usage as follows:
ghq get --branch release/9.x https://github.com/llvm/llvm-project.git

This option clones a remote repository specifying a branch rather than the default branch. With Git, it also implies --single-branch to reduce time and amount of transferred objects.
This option is useful when you're working on large repository with many branches. For example, you may fork a large repository (e.g. DefinitelyTyped) and want only your PR branch in local.

Thanks!

released as v0.13.0

Thank you so much for quick review!


validates_datetime problem with Time.now

I have a datatime and I'm trying to set in my models that the user can only choose datatime greater than or equal to today's datatime. I am using the validates_timeliness gem as follows:
validates_datetime :data, :on_or_after => lambda { Time.now }
But when I fill in the form with the date it only accepts if a datatime is assigned with 3 hours more than the current datatime. My version is 5.0.2
Can anyone help?

Try using Time.current instead. Though you will need to set the user’s timezone otherwise Time.current will return the app default timezone.
On Tue, May 23, 2017 at 2:10 AM, denispolicarpocampos<EMAIL_ADDRESS>wrote:
I have a datatime and I'm trying to set in my models that the user can only choose datatime greater than or equal to today's datatime. I am using the validates_timeliness gem as follows:
validates_datetime :data, :on_or_after => lambda { Time.now }
But when I fill in the form with the date it only accepts if a datatime is assigned with 3 hours more than the current datatime. My version is 5.0.2
Can anyone help?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub [https://github.com/adzap/validates_timeliness/issues/155] , or mute the thread [https://github.com/notifications/unsubscribe-auth/AAAYrsRx10I_JuJV7hiHFj-TH9p-1Mo0ks5r8bNzgaJpZM4Nikin] .


docs: add mTLS in 'Plans and policies' guide

Hello Gravitee Team 👋,
1⃣ Small update of the “Plans and Policies 101” guide to take account of the new mTLS plan type.
2⃣ Another point, which I'll leave to you: perhaps it would be interesting to mention the “Push” and “mLTS” plans in the “Plan selection” section of the “Engine Comparisons” page?
Hope this helps! 👌

Thank you, @lfavreli! My apologies, I've been on maternity leave and I don't know that anyone has been monitoring docs PRs. Could you please advise what information should be added to the Engine Comparisons page, or where to find it?

Thank you @Lyd1aCla1r3 for your reply and congratulations on this wonderful event! 🙌
For the second point, it would be interesting to know the order, internally, in which the ‘Push’ and ‘mTLS’ Plans are processed by the Gateway. Particularly in the presence of several types of Plan, how does the platform behave, what order of precedence with them included. (under the heading ‘Plan selection’)
And also, in the drop-down lists, it would be interesting to add a brief summary of the behaviour of these 2 types of Plans. As has already been done for ‘JWT’, ‘OAuth2’, ‘API Key’ and ‘Keyless’.

Happy festive season! 🎁🎄


Update METAFONT and MetaPost scripts.

An overhaul of METAFONT and MetaPost scripts, just in time for the 0x20 birthday of METAFONT.
I have tried to contact the authors of those scripts, but one email has bounced back I and did not get any reply in the last two weeks from the other two authors. So, I am submitting this as a pull request.
I am available to take over as a maintainer (I have already changed the header information in the scripts).

Lifepillar wrote:

An overhaul of METAFONT and MetaPost scripts, just in time for the 0x20 birthday of METAFONT.
I have tried to contact the authors of those scripts, but one email has bounced back I and did not get any reply in the last two weeks from the other two authors. So, I am submitting this as a pull request.
I am available to take over as a maintainer (I have already changed the header information in the scripts).

Please keep the original author or maintainer in the header to give him
credit.
I assume Lifepillar is not your real name.  I need to have the real name
for copyright purposes.  I would also prefer a real name in the runtime
files.
--
Individualists unite!
/// Bram Moolenaar --<EMAIL_ADDRESS>-- http://www.Moolenaar.net   \
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \
\\  an exciting new programming language -- http://www.Zimbu.org        ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Please keep the original author or maintainer in the header to give him credit.

My apologies, I've fixed that.

Thanks. I haven't heard from former maintainers, thus I'll include this.

Thanks!
I've found a typo (a missing comma) in the ftplugin files. Should I open a new pull request or may you re-open this one?

Lifepillar wrote:

Thanks!
I've found a typo (a missing comma) in the ftplugin files. Should I
open a new pull request or may you re-open this one?

You can just send me the updated file.
--
Q:   How many hardware engineers does it take to change a lightbulb?
A:   None.  We'll fix it in software.
/// Bram Moolenaar --<EMAIL_ADDRESS>-- http://www.Moolenaar.net   \
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \
\\  an exciting new programming language -- http://www.Zimbu.org        ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///


Automated cherry pick of #4012: Improve install_cni_chaining to support updates to CNI conf

Cherry pick of #4012 on release-1.7.
#4012: Improve install_cni_chaining to support updates to CNI conf
For details on the cherry pick process, see the cherry pick requests page.

/test-all

/test-e2e


Updating develop with fixes to master

@billgib,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot


Check the NoThunks invariant during a nightly CI test

If you set the following flag and run the test suite, most TVars -- including all critical ones, unless we have a bug -- will check their contents for thunks via the nothunks library whenever they're updated.
$ cat cabal.project.local
package io-classes
  flags: +checktvarinvariant

This flag makes the tests run quite slow, so it's something we had been doing incrementally. But I, for example, haven't done it since taking over lead for two months! So adding it to some CI (nightly, but perhaps even just weekly) would be much safer.
Edit: io-sim-classes was renamed io-classes on 2021 July 8.

This would be a useful step, but it's not enough: we need to run this check on a "realistic" chain, and currently no Consensus test creates such a thing.

This is blocked on https://github.com/input-output-hk/ouroboros-network/issues/4006

This is not fixed until all the current thunk tests pass


Change name for the kubeconfig TTL setting.

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

Related to https://github.com/rancher/rancher/issues/37705

Root Cause
The TTL is for the token used in the kubeconfig, not the kubeconfig itself. Since this is for a new setting that has not been released, we should change the name to accurately represent what the setting is controlling.
Fix
Update the token name from kubeconfig-default-ttl-minutes -> kubeconfig-default-token-ttl-minutes
Areas or cases that should be tested
Update the name to better represent that the setting is for the token used with kubeconfigs, not the config itself.

Verify the new token setting is readable through norman and steve.

Start a new rancher instance
Verify you can navigate to https://<rancher-server>/v1/management.cattle.io.settings/kubeconfig-default-token-ttl-minutes
Verify you can naviagte to https://<rancher-server>/v3/settings/kubeconfig-default-token-ttl-minutes

v2.6-head 6629e3e

verified https:///v1/management.cattle.io.settings/kubeconfig-default-token-ttl-minutes
Verified  https:///v3/settings/kubeconfig-default-token-ttl-minutes
Verified navigating to explorer >> Global settings >> changing the value of kubeconfig-default-token-ttl-minutes


Create tag for v0.1.0.

TagBot was supposed to do this when v0.1.0 was released in PR https://github.com/JuliaRegistries/General/pull/72041. A TagBot trigger issue was created: https://github.com/xKDR/TSFrames.jl/issues/121. But, the TagBot action threw a GitHub server error (see https://github.com/xKDR/TSFrames.jl/actions/runs/3459216214).
So we'll have to automatically create a tag called v0.1.0 for this release and push it to the repository.

Or perhaps, a better way to do this will be to trigger TagBot again manually: see https://github.com/JuliaRegistries/TagBot#local-usage.

Did it manually, created the first release: https://github.com/xKDR/TSFrames.jl/releases/tag/v0.1.0


Datatable sorting doesn't work with mixed datatypes wihtin a strings

Reproduction
Use StackBlitz to reproduce your issue: https://stackblitz.com/edit/angular-an1uqc
Steps to reproduce:

Click on the Column description to sort the values ascending

Expected Behavior
The table column should be sorted as follows:
Ascending:

Empty Strings
Strings
Numbers

Actual Behavior
When the table column description is sorted ascending there is no sorting recognizable
Environment

Angular: 8.0.1
CDK/Material: 8.0.1
Browser(s): Firefox Quantum 67.0.2, Chrome 74
Operating System (e.g. Windows, macOS, Ubuntu): Windows 10

The default sort function in MatTableDataSource is string-based. You can provide a different sortData function for alternate behavior.

String-based would be ok, but i didn't recognize any sorting.
Here is a new example with some more Data -> https://stackblitz.com/edit/angular-an1uqc-mqsvv7
The Description Column ascending Sorting Result is
g 0 a d 1 2 c e f z 3
I would expect
0 1 2 3 a c d e f g z

Hello, I had same problem with sorting array of string and numbers. To solve this problem i extend MatTableDataSource class and provide my own implementation of sortData function.
import { MatTableDataSource, MatSort } from "@angular/material";

export class CustomMatTableDataSource<T> extends MatTableDataSource<T> {
  constructor(initialData: T[] = []) {
    super(initialData);
  }

  sortData: (data: T[], sort: MatSort) => T[] = (
    data: T[],
    sort: MatSort
  ): T[] => {
    const active = sort.active;
    const direction = sort.direction;
    if (!active || direction === "") {
      return data;
    }

    return data.sort((a, b) => {
      const valueA = this.sortingDataAccessor(a, active);
      const valueB = this.sortingDataAccessor(b, active);

      let comparatorResult = 0;

      if (valueA != null && valueB != null) {
        if (typeof valueA === "number" && typeof valueB === "number") {
          comparatorResult = valueA - valueB;
        } else if (typeof valueA === "string" && typeof valueB === "string") {
          comparatorResult =
            valueA.toLowerCase() > valueB.toLowerCase() ? 1 : -1;
        } else {
          comparatorResult = typeof valueA === "string" ? 1 : -1;
        }
      } else if (valueA != null) {
        comparatorResult = 1;
      } else if (valueB != null) {
        comparatorResult = -1;
      }

      return comparatorResult * (direction === "asc" ? 1 : -1);
    });
  };
}


Caret position wrong after re-setting the EditorState then typing single character

Do you want to request a feature or report a bug?
Bug
What is the current behavior?
After resetting the EditorState, typing a single characters causes the caret to jump back to the start.
Here is a simple repo example.
class ChatFooter extends Component {
    constructor (props) {
        super(props);
        this.state = {editorState: EditorState.createEmpty()};
        this.onChange = (editorState) => this.setState({editorState});
        this.focusEditor = this.focusEditor.bind(this);
        this.handleKeyCommand = this.handleKeyCommand.bind(this);
    }

    componentDidUpdate () {
        console.log('componentDidUpdate: ', window.getSelection());
    }

    focusEditor () {
        this.editor.focus();
    }

    editorKeyBindings (event) {
        if (event.keyCode === 13 && !event.shiftKey) {
            return 'send-message';
        }

        return getDefaultKeyBinding(event);
    }

    handleKeyCommand (command, editorState) {
        console.log(command);

        if (command === 'send-message') {
            this.setState({editorState: EditorState.createEmpty()});
            return 'handled';
        }

        return 'not-handled';
    }

    render () {
        const { editorState } = this.state;
        let inputWrapperCls = 'chat-input-wrapper';

        console.log('render: ', editorState.getSelection().toJS());

        return(

                    <Editor
                        editorState={editorState}
                        onChange={this.onChange}
                        handleKeyCommand={this.handleKeyCommand}
                        keyBindingFn={this.editorKeyBindings}
                        placeholder='Type a message'
                    />

        );
    }
}

Steps to reproduce:

Enter some text then press enter
Type a single character

Notice how the caret is at the start. If you watch the logging of the selection you will see the window selection still has an offset of 0 while the logged offset before the render has the correct offset of 1.
What is the expected behavior?
The window and logged caret offset should be the same.
Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?
Draft-js version: 0.10.5
Chrome version: 59.0.3071.115
OS: Ubuntu 16.04.2 LTS

The solution on this ticket https://github.com/facebook/draft-js/issues/410 fixes my issue.
This guy did the trick
this.setState({editorState: EditorState.moveFocusToEnd(EditorState.createEmpty())});

@topched it doesnt fix it, because when you clicking in the middle of a paragraph for example, and want to change a word, it push you out to the end of the text.

It is not possible to have a paragraph in the editor state if you reset it to nothing and type a single character.

@topched  What to do if I want to set same Caret position as before after updating editor state? Appreciate your response in advance.


Update resolver to cardano-1.21.1.yaml

This is needed so the dependencies are properly in sync
and cardano-db-sync or smash can be used from within
the wallet.

Related: https://github.com/input-output-hk/cardano-wallet/pull/2249

I don't know what those sha256 hashes are and they aren't documented, so I didn't update it :man_shrugging:
I didn't update nix expressions, since nix/regenerate.sh removes cabal.project and does nothing else on my machine :sweat_smile:

Closing this. It has bitrotted.


gnumake: disable subsecond mtime on darwin

gnumake can support subsecond mtimes if it is available. But Darwin
doesn’t support setting subsecond mtimes until 10.13! So we can just
disable this check to avoid the issue where most of our built tools
use seconds but make uses nanoseconds. Might fix some parallel issues
along the way.
Fixes #51221
/cc @endgame @delroth @thoughtpolice

Can you add a comment in the code? I can imagine someone discovering files not being rebuilt in one of their builds, finding the ac_cv_... setting in the .nix file and being extremely confused.


Separate Docker metrics retrieval from cgroup, add a placeholder windows implementation

What does this PR do?
This PR's introduces the ContainerImplementation to decouple Docker implementation and cgroup.
Provider is currently instantiated by an init() function that is unique for each build tag (linux, windows, anything else).
The data structures are shared between all implementations, it's expected that some won't be filled on windows.
It goes with some refactoring of the metrics data, though it was also the occasion to see that the containerd check was not relying on our cgroup implementation (unlike docker). Maybe we should unify all cgroup-related implementation (docker, containerd, cri)?
@DataDog/agent-platform You'll implement the windows provider, feedbacks welcome on the interface.
Note that Kubernetes had the same problem with Windows, this is the PR that implemented it in the kubelet:
https://github.com/kubernetes/kubernetes/pull/50396
Motivation
What inspired you to submit this pull request?
Additional Notes
Tested locally on a Windows VM

I really like how the new code is organized :)
Do you think it's safe enough to merge this for 7.18, or should we wait until after the freeze?

I would not merge it for 7.18, and it's pretty useless for customers until we have the windows implementation, so I'd target 7.19.

To run this branch on Windows (with fake metrics) and Docker/Docker logs support:
datadog.yaml
confd_path: C:\Users\dogdev\go\src\github.com\DataDog\datadog-agent\dev\dist\conf.d
logs_enabled: true
logs_config:
  container_collect_all: true
config_providers:
  - name: docker
    polling: true
listeners:
   - name: docker

conf.d\docker.d\docker_daemon.yaml
init_config:

instances:
  - url: \\.\pipe\docker_engine
    new_tag_names: true

This breaks https://github.com/DataDog/datadog-agent/blob/vboulineau/docker_windows/pkg/util/containers/providers/windows/provider.go#L191
Is there another way we can know that we are running in a container ?

We can add a LABEL in the Dockerfile, probably the cleanest and most reliable way

This breaks https://github.com/DataDog/datadog-agent/blob/vboulineau/docker_windows/pkg/util/containers/providers/windows/provider.go#L191
Is there another way we can know that we are running in a container ?

We can add a LABEL in the Dockerfile, probably the cleanest and most reliable way

Ahh that's what I was looking for. I thought we could use a tag, but tags are used only for docker run, right ?
Anyway, what would the LABEL be like ? Just LABEL datadog-agent ?

Almost, https://docs.docker.com/engine/reference/builder/#label


feat: iNews gateway

What kind of change does this PR introduce?
Feature

What is the new behavior (if this is a feature change)?
Adds support for the iNews gateway: https://github.com/olzzon/tv2-inews-ftp-gateway.git

Is it possible to write the config page for this device as a config manifest instead?

Definitely, we'll rewrite it to match the config manifest before finally merging it in.


Read data from serial port

Create a module that connects to a serial port. This module should have the following functionalities:

Get a list of all serial ports
Connect to a serial port
Read the serial port (asynchronous)

For now this issue will only focus on macos


json parsing fail

Hello!
So i finally got around to starting work on this, but am having troubles with the json stuff.
If i use the code as is from your example, "Json as URL", it goes fine - of course i have nothing that responds to those codes. Here's the thing, once I plug my own codes in, I get parsing errors. 1FEB04F doesn't work if I send with json, but if I send it according to the "Basic Output" format, it sends fine.  I have tried prefixing it with 0x, that makes no difference.
Any ideas?

A small update:
Further testing reveals to me that it is not my code throwing the error. It seems to be that it doesn't like me swapping repeat for pulse. Any idea why???

JSON parsing error means you're formatting your JSON object incorrectly
If you post what you're trying I can take a look but check your syntax

Hey! Thanks for your prompt reply!
So this is what I'm playing with right now. Its a two button sequence; the first turns the unit on, the second adjusts temperature.
http://ArizerIRDblaster.local:80/json?pass=PASSWORD&plain=[{"type":"nec","data”:”1FE7887”,”length":32,”address”:0x80},{“type":"nec","data”:”1FEB04F”,”length":32,”address”:0x80,”pulse”:10,”pdelay”:100}]
Still getting errors.

Couple things

You don't have to use quotes around the key for ArduinoJson if you want to make your URLs shorter
You forgot quotes around the address which are required (simple integers don't need this but anything else does)
Whatever character you're using for quotes in some places isn't a normal quote, I would use a proper programming text editor cause " is different than ” which will parse differently

http://ArizerIRDblaster.local:80/json?plain=[{type:"nec",data:"1FE7887",length:32,address:"0x80"},{type:"nec",data:"1FEB04F",length:32,address:"0x80",pulse:10,pdelay:100}]&pass=PASSWORD

You don't have to use quotes around the key for ArduinoJson if you want to make your URLs shorter

Ah, well that is good to know. I took the example off of the page but it seemed quotation mark heavy.

You forgot quotes around the address which are required (simple integers don't need this but anything else does)

Also good to know.

Whatever character you're using for quotes in some places isn't a normal quote, I would use a proper programming text editor cause " is different than ” which will parse differently

Yeah, i discovered that my computer was automatically changing the straight brackets and replacing them with curly ones. A programming app doesn't seem to make a difference - I use Nova. I did find the option to turn it off in my settings though so all is well.
Thank you for your help and good work.


Undefined variable $_instance

After I add currency input I get:
ErrorException
Undefined variable $_instance (View: C:\xampp\htdocs\noyan-io\resources\views\vendor\wireui\components\inputs\currency.blade.php)

currency input code:
                        <x-inputs.currency
                            label="Currency"
                            placeholder="Currency"
                            icon="currency-dollar"
                            thousands="."
                            decimal=","
                            precision="4"
                            wire:model="currency"
                        />

Is this component inside a livewire component?

No
It is not in livewire.

This component needs a livewire instance to work, because are using @entangle directive

I try to use it in livewire component but I have problem yet.

Same error?
What's your livewire version? Can show more details?

livewire component:
<?php

namespace App\Http\Livewire\Panel;

use Livewire\Component;

class Panel extends Component
{
    public $currency;

    public function render()
    {
        return view('livewire.panel');
    }
}

And view:
<x-panel-layout>
    <x-inputs.currency
        label="Currency"
        placeholder="Currency"
        thousands="."
        decimal=","
        precision="4"
        wire:model="currency"
    />
</x-panel-layout>

You can test this code?

<php
...
public $name='testing';
...

@PH7-Jack
Yet I get that error.
Please guide me to fix it.

@alighasemzadeh what's your livewire and laravel version?

Laravel 8.74.0
Livewire 2.5.1
@PH7-Jack

Can check if don't has any component that uses @entangle directive outside a livewire component?

@PH7-Jack
How can I testit?

@alighasemzadeh you need to check in your base layout, check if has any blade component using @entangle
Check the route: if the route bind directly a livewire component https://laravel-livewire.com/docs/2.x/rendering-components#page-components
Check the blade app layout
You need to find a wrong importation of wireui component (that using @entangle) or any other component or code using this directive
You can try too clear view
php artisan view:clear

@PH7-Jack
Fixed.
Just try to use full page component.


Add a GitHub Action to lint Python code with ruff

Test results: https://github.com/cclauss/sandpit/actions
% ruff --format=github --line-length=200 --target-version=py37 .
Error: docs/conf.py:21:1: E402 Module level import not at top of file
Error: src/sandpit/main.py:16:5: F401 `math.degrees` imported but unused
Error: Process completed with exit code 1.

Ruff supports over 500 lint rules and can be used to replace Flake8 (plus dozens of plugins), isort, pydocstyle, yesqa, eradicate, pyupgrade, and autoflake, all while executing (in Rust) tens or hundreds of times faster than any individual tool.
The ruff Action uses minimal steps to run in ~5 seconds, rapidly providing intuitive GitHub Annotations to contributors.

sandpit Pull Request Template
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
Testing
Please describe how you have tested your changes.

[ ] Test A
[ ] Test B

Checklist:

[ ] My code follows the style guidelines of this project.
[ ] I have performed a self-review of my own code.
[ ] I have commented my code, particularly in hard-to-understand areas.
[ ] I have made corresponding changes to the documentation.
[ ] My changes generate no new warnings.
[ ] Any dependent changes have been merged and published in downstream modules.
[ ] I understand and acknowledge that the code will be published under a BSD 3-Clause license.

Hi @cclauss As the name suggests, this is just a sandpit repo I use to test the VSCode and GitHub workflows in my own projects. The code in main.py was arbitrarily cut-and-pasted from another project and the W0611 pylint error was left in there deliberately to exercise the pylint task.
I am quite happy with pylint and have no interest in using ruff, so thanks but no thanks.

Understood.  Pylint uses ruff...
https://github.com/pylint-dev/pylint/blob/4a485e28f0a5118b37550123c79f1f6d0dec42a4/.pre-commit-config.yaml#L18

Understood. Pylint uses ruff... https://github.com/pylint-dev/pylint/blob/4a485e28f0a5118b37550123c79f1f6d0dec42a4/.pre-commit-config.yaml#L18

Great! Rust is undoubtedly the way to go, and when ruff is out of Alpha and can match Pylint's broader functionality and rich ruleset, I'll certainly give it some thought. For now, the 2 or 3 seconds it might save on my build runtimes just isn't worth the hassle, though I appreciate it may be a big deal for much larger commercial projects.


Device Orientation and Hotspots

Hi,
I'm using pannellum with device orientation support, and it's amazing!
There's just one small issue that I'd like help with: Hotspots aren't staying in place when orienting the phone in one of its 3 axis, see attached image for what I'm experiencing.
Any suggestion on this?
Thanks so much.

I forgot to implement roll transformations for the hot spots. This might take a bit to fix, since I need to work out the calculations first.

This should work now.

Thanks so much!


Create data_science_and_ml_questions

Exploratory Data Analysis questions under data science

Thank you for sending in your questions @Ayokolapo. Could you please revamp them to follow our guideline on questions tabulation. Also, we'd love to have more question from you on data science and AI/ML


Add an OIDC default group

It's quite possible that the group management for some applications may happen mostly inside the application itself - not every organisation has the slick automation (xor the slow bureacracy) to manage teams purely in AD / Okta / etc.
For organisations that are happy to manage users within an application, it would be useful to be able to assign a default group to give a good first-login experience, that allows application administrators to grab that user and level their permissions or team memberships appropriately.
Suggest the framework adds a new environment variable:

OIDC_TEAMS_DEFAULT (string, cannot be present if OIDC_TEAMS_CLAIM is is present)

And any user profile's groups list will be set as a list containing this string.

And any user profile's groups list will be set as a list containing this string.

If I understand the code correctly, the teams from the claim are synced on each login: non-matching teams are removed, matching teams are added.
For the proposed OIDC_TEAMS_DEFAULT, if the teams are manually changed by and aministrator, I'd say those changes should persist and not be overwritten on the next login. So perhaps a sensible behavior is: if no teams are associated with this user yet, add the team(s) from OIDC_TEAMS_DEFAULT. Otherwise, leave the teams untouched.
This has the (arguable) downside that if you change OIDC_TEAMS_DEFAULT, existing accounts that are associated with 'old' default team will not be updated to switch to this 'new' default team. That seems reasonable to me, though.


build: update rust version (PROOF-918)

Rationale for this change
In an effort to keep blitzar-rs up-to-date, the rust version is bumped to version 1.81.
What changes are included in this PR?

Rust version is bumped from 1.80 to 1.81

Are these changes tested?
Yes

:tada: This PR is included in version 3.2.5 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


relationMapping composite keys with same property names gives ambiguous column error

Hi, I am trying to create a relationMapping between two composite keys which both share the same property names:
join: {
    from: [`table1.user_id`, `table1.hub_id`],
    to: [`table2.user_id`, `table2.hub_id`],
},

I'm getting a  where "user_id" = $1 - column reference "user_id" is ambiguous error. Is there a way to create an alias for these keys? thank you.

Could you add a debug() to your query builder and share the logged query in full?


add: howdy-deb

Is it not possible to pack this one as a pacscript?

It is, but the issue is it's asking for user input which we can't provide in a -B environment


Proper VB scaling

To deal with numerically large parameters, the current VB implementation scales the provided prior by its mean and infers this scaled parameters. The main benefit is that the entries of the Jacobians and the precision are far closer to one.
This is not done for numerically small parameters, as there has to be some kind of eps to avoid division by zero (for zero mean parameters). Most of my problems are then solved for eps=1.e-20, but the proper way would be to use some kind of scaling of the precision. For normal distributions, there is this zero-mean unit-variance transformation. How would that work for MVN?
I read something here where an eigenvalue decomposition of the precision/covariance is used, COV = Q . EVs . Q.T, where scaling with Q is performed. However, in our case, COV is diagonal so Q is Identity and there will be no scaling...?

If you take a transformation with Q *sqrt(eigenvalues), your likelihood becomes
(Q sqrt(e) X)^T * Cov^(-1) * (Q sqrt(e) X) = X^T  X (also zero mean, unit std  and independent)

So the scaling with Q makes the variables independent (not required if they are already independent) and the scaling with the srt of the eigenvalues makes them unit std.


[RIP-9] Polish Example_Orderly.md

What is the purpose of the change
Polish docs/en/Example_Orderly.md
Brief changelog
Set markdown code format to Java language
Verifying this change
Verified
Follow this checklist to help us incorporate your contribution quickly and easily. Notice, it would be helpful if you could finish the following 5 checklist(the last one is not necessary)before request the community to review your PR.

[x] Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[x] Format the pull request title like [ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.
[x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[x] Write necessary unit-test(over 80% coverage) to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
[x] Run mvn -B clean apache-rat:check findbugs:findbugs checkstyle:checkstyle to make sure basic checks pass. Run mvn clean install -DskipITs to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test  to make sure integration-test pass.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

Coverage increased (+0.06%) to 49.008% when pulling b6f1aebc25abd3de2a4cac4175e025cdf0cb5a43 on nisiyong:develop into bbb723fb805357d0fb5caf2282c499d89469e994 on apache:develop.


post upgrade experience on iOS is poor

upgrade goes smoothly but afterwards you see many errors that suggests it did not go smoothly

Reported by @MehrotraRahul

I saw a different error message after hitting the subscribe button today:

crashed (#2255)
opened back up, hit the sync button, opened subscribe page from sync modal
some error that was different than the one in parth's image above

I eventually worked around it by leaving the subscribe page, then hitting the sync/subscribe sequence again so could have been a transient issue. I was not on a VPN or anything.

This is likely caused by listenForTransactions() being too aggressive.


Prepare example schema for interview

based on what we already prepared in https://docs.google.com/document/d/17dTfVuBQ4RuJ450XjOK2LGbIdM0onmXpRxWVuNZl8l0/edit

add more properties: boolean;

add also some boolean property

I've created an example schema for our interview.
I added the following changes:

add some generic keywords ( title, description ..)
add boolean property for test
change some meaningful names for better presentation ( e.g. items, some name fields)
add some extra keywords ( additionalProperties, examples, pattern, const)
add some bounds for number/intefer properties

General change: remove some unnecceary objects and make some objects more meaningful and simple to show
Welcome for advice  :)

Schema sent in Whatsapp


🦶 Implement footnotes in myst-to-tex and myst-to-jats

Looks good! Looking forward to implementing this properly in JATS, but will take another pass on the XML side. 🔜


Release 39

This is a PR for Release 39.
Status:

[x] In development
[ ] In testing at NRK
[ ] Finalize and merge

Release 39 overall status: https://github.com/nrkno/Sofie-TV-automation/issues/41

Codecov Report

Merging #641 (930e27f) into master (7034ed7) will increase coverage by 0.99%.
The diff coverage is 63.03%.

@@            Coverage Diff             @@
##           master     #641      +/-   ##
==========================================
+ Coverage   67.03%   68.03%   +0.99%
==========================================
  Files         262      275      +13
  Lines       18059    19067    +1008
  Branches     4081     4271     +190
==========================================
+ Hits        12106    12972     +866
- Misses       5911     6018     +107
- Partials       42       77      +35

Impacted Files
Coverage Δ

meteor/lib/Settings.ts
88.88% <ø> (ø)

meteor/lib/api/deviceConfig.ts
100.00% <ø> (ø)

meteor/lib/api/system.ts
100.00% <ø> (ø)

meteor/lib/database.ts
80.00% <ø> (ø)

meteor/lib/mediaObjects.ts
40.52% <0.00%> (-0.20%)
:arrow_down:

meteor/lib/systemTime.ts
14.28% <0.00%> (ø)

meteor/server/api/blueprints/__tests__/lib.ts
100.00% <ø> (ø)

meteor/server/api/blueprints/context/context.ts
71.59% <ø> (-4.88%)
:arrow_down:

meteor/server/api/blueprints/context/lib.ts
100.00% <ø> (ø)

...ueprints/context/syncIngestUpdateToPartInstance.ts
13.33% <ø> (+0.39%)
:arrow_up:

... and 201 more

Continue to review full report at Codecov.

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


Missing MaxAutoRenewDuration on Azure Service Bus implementation

Hi @zarusz
I'm looking for a way to change the default MaxAutoRenewDuration parameter. On Azure ServiceBus message is visible again after 5 minutes if the user doesn't mark it as completed manually.
We have a case that processing on a single message could take up to 2 hours. Right now by handle that passing MaxAutoRenewDuration parameter to MessageHandlerOptions.
Unfortunately, BaseConsumer does not set this method.
Is there any method that we can use to achieve the same result?
Or maybe can we made a pull request with changes (but probably you will have to tell us how do you see that).

+1

Hey guys,
We could add a SB provider specific consumer setting like the below on the consumer registration:
mbb.Consume<TMessage>(x => x
    .Topic("some-topic")
    .WithConsumer<TConsumer>()
    .SubscriptionName($"subscriber-name")
    .Instances(1))
    .MaxAutoRenewDuration(TimeSpan.FromHours(2)); // <----- here

That setting would be applied for that TMessage consumer only.
I think it would also make sense to add a bus wide (shared across all SB consumers) setting like the following:
MessageBusBuilder mbb = MessageBusBuilder
    .Create()
    // the bus configuration here
    .WithProviderServiceBus(new ServiceBusMessageBusSettings(connectionString) {
       MaxAutoRenewDuration = TimeSpan.FromHours(2) // <----- here
    })
    .WithSerializer(new JsonMessageSerializer());

IMessageBus bus = mbb.Build();

Would that meet your needs?
If so, I can make a quick patch and expose this as an RC release for you to try out.

See the https://github.com/zarusz/SlimMessageBus/blob/master/docs/provider_azure_servicebus.md#transport-specific-settings


getting error while running npm install

while running 'npm install' I am running into following error -
npm http GET https://registry.npmjs.org/karma
npm http GET https://registry.npmjs.org/protractor
npm http GET https://registry.npmjs.org/http-server
npm http GET https://registry.npmjs.org/bower
npm http GET https://registry.npmjs.org/shelljs
npm http GET https://registry.npmjs.org/karma-junit-reporter
npm ERR! Error: SSL Error: SELF_SIGNED_CERT_IN_CHAIN
npm ERR!     at ClientRequest. (/usr/local/lib/node_modules/npm/node_modules/request/main.js:483:26)
npm ERR!     at ClientRequest.emit (events.js:67:17)
npm ERR!     at HTTPParser.onIncoming (http.js:1261:11)
npm ERR!     at HTTPParser.onHeadersComplete (http.js:102:31)
npm ERR!     at CleartextStream.ondata (http.js:1150:24)
npm ERR!     at CleartextStream._push (tls.js:375:27)
npm ERR!     at SecurePair.cycle (tls.js:734:20)
npm ERR!     at EncryptedStream.write (tls.js:130:13)
npm ERR!     at Socket.ondata (stream.js:38:26)
npm ERR!     at Socket.emit (events.js:67:17)
npm ERR! You may report this log at:
npm ERR!     http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR<EMAIL_ADDRESS>npm ERR!
npm ERR! System Darwin 11.4.2
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/Jaimin/Apps/Github/ang/angular-seed
npm ERR! node -v v0.6.15
npm ERR! npm -v 1.1.16
npm ERR! message SSL Error: SELF_SIGNED_CERT_IN_CHAIN
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/J/Apps/Github/ang/angular-seed/npm-debug.log
npm not ok

This wasn't related to angular-seed. It sounds like it was either npm or phantomjs related.


Add RS* signing support

Implements #21.
Some notes:

The signing key is passed as PEM string. This could be extended to support DER if a buffer is given. Is this reasonable?
I also validated signed messages manually using pycose.

TODO:

README?

@erdtman The examples submodule doesn't have RS* test cases so I added one in here for now. This can be removed once https://github.com/cose-wg/Examples/issues/105 is done. Let me know if the rest of the PR is fine, happy to make further changes.

Looks good to me.
+1 yes it would be nice to put an RSA example in the readme (maybe it is time to create a matrix with what is supported also in the readme file)
love that you have submitted a PR to the cose-wg examples too.


test_pg_regress is unstable on postgres 17: invalid page in block 0 of relation

Example failure:
https://neon-github-public-dev.s3.amazonaws.com/reports/main/11141079169/index.html#testresult/b898a7720eeac6fa/retries
diff -U3 /__w/neon/neon/vendor/postgres-v17/src/test/regress/expected/rowsecurity.out /tmp/test_output/test_pg_regress[debug-pg17-None]-1/regress/results/rowsecurity.out
--- /__w/neon/neon/vendor/postgres-v17/src/test/regress/expected/rowsecurity.out	2024-10-02 09:24:30.001643081 +0000
+++ /tmp/test_output/test_pg_regress[debug-pg17-None]-1/regress/results/rowsecurity.out	2024-10-02 09:37:50.920969596 +0000
@@ -4172,6 +4172,7 @@
 SET SESSION AUTHORIZATION regress_rls_alice;
 SET row_security = on;
 CREATE TABLE r1 (a int);
+WARNING:  invalid page in block 0 of relation base/16384/1249_vm; zeroing out page
 INSERT INTO r1 VALUES (10), (20);
 CREATE POLICY p1 ON r1 USING (false);
 ALTER TABLE r1 ENABLE ROW LEVEL SECURITY;

@knizhnik is actively investigating it. Hard to repro, but possible. More details: https://neondb.slack.com/archives/C04DGM6SMTM/p1727872045252899

I know the source of this zero VM pages:
                // Tail of last remaining vm page has to be zeroed.
                // We are not precise here and instead of digging in VM bitmap format just clear the whole page.
                modification.put_rel_page_image_zero(rel, vm_page_no)?;

So when performing TRUNCATE, we just zero VM page because it was to hard to do it accurately.
In principle we can just leave page header. But I do not think that it is critical.
I suggest to merge https://github.com/neondatabase/neon/pull/9287 and close this issue.

There is one more PR related with this problem: https://github.com/neondatabase/neon/pull/9342
which I want to be merged, although #9287 is enough to eliminate test failures.

All related compute PRs have been merged, and it doesn't show up in the flaky top anymore, so closing


Some emojis in python code break blocks conversion

Some emojis when placed inside python strings prevent conversion back to blocks. For example:
print("😒")

Other emojis work fine:
print("✅")

Seems like a python scanner bug. Reported on the forum here:
https://forum.makecode.com/t/conversion-error/22983/2

Seems to prevent conversion from JavaScript to blocks with icons inside string literals, as well:
https://forum.makecode.com/t/oops-something-went-wrong-when-trying-to-convert-your-code/23161


Language server crashed when switching interpreters

Opened a workspace
A local virtual environment was already selected
Went and changed the interpreter to something else,
Then kaboom
Reloaded VSC and then everything was ok

Here are the logs:
Starting Microsoft Python language server.
[Info  - 11:38:37 AM] GetCurrentSearchPaths /Users/don/Desktop/Development/pythonStuff/testingRepos/vscodePythonTesting/wow/venv/bin/python
[Info  - 11:38:38 AM] Python search paths:
[Info  - 11:38:38 AM]     /private/var/folders/ql/rq1r3gbn2jvbqpbg843ls30r0000gn/T/4i2foxe3.t0p
[Info  - 11:38:38 AM]     /Users/don/.pyenv/versions/3.7.3/lib/python3.7
[Info  - 11:38:38 AM]     /Users/don/.pyenv/versions/3.7.3/lib/python3.7/lib-dynload
[Info  - 11:38:38 AM]     /Users/don/Desktop/Development/pythonStuff/testingRepos/vscodePythonTesting/wow/venv/lib/python3.7/site-packages
[Info  - 11:38:38 AM] Configuration search paths:
[Info  - 11:38:38 AM] Microsoft Python Language Server version <IP_ADDRESS>
[Info  - 11:38:38 AM] Initializing for /Users/don/Desktop/Development/pythonStuff/testingRepos/vscodePythonTesting/wow/venv/bin/python
[Info  - 11:40:23 AM] GetCurrentSearchPaths /Users/don/.pyenv/versions/3.6.5/bin/python
[Info  - 11:40:23 AM] Python search paths:
[Info  - 11:40:23 AM]     /private/var/folders/ql/rq1r3gbn2jvbqpbg843ls30r0000gn/T/stmdkjyg.bvb
[Info  - 11:40:23 AM]     /Users/don/.pyenv/versions/3.6.5/lib/python3.6
[Info  - 11:40:23 AM]     /Users/don/.pyenv/versions/3.6.5/lib/python3.6/lib-dynload
[Info  - 11:40:23 AM]     /Users/don/.local/lib/python3.6/site-packages
[Info  - 11:40:23 AM]     /Users/don/.pyenv/versions/3.6.5/lib/python3.6/site-packages
[Info  - 11:40:23 AM] Configuration search paths:
[Info  - 11:40:24 AM] Microsoft Python Language Server version <IP_ADDRESS>
[Info  - 11:40:24 AM] Initializing for /Users/don/.pyenv/versions/3.6.5/bin/python
[Error - 11:40:28 AM] Request textDocument/completion failed.
  Message: Object reference not set to an instance of an object.
  Code: -32000
   at Microsoft.Python.Analysis.Modules.PythonModule.<>c.<NotifyAnalysisBegins>b__106_0(IScope c)
   at Microsoft.Python.Core.EnumerableExtensions.TraverseDepthFirst[T](T root, Func`2 selectChildren)+MoveNext()
   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
   at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.MoveNext()
   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
   at Microsoft.Python.Analysis.Modules.PythonModule.NotifyAnalysisBegins()
   at Microsoft.Python.Analysis.Analyzer.PythonAnalyzerSession.AnalyzeEntry(PythonAnalyzerEntry entry, IPythonModule module, PythonAst ast, Int32 version, CancellationToken cancellationToken)
   at Microsoft.Python.Analysis.Analyzer.PythonAnalyzerSession.Analyze(PythonAnalyzerEntry entry, Int32 version, CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.Python.Analysis.Analyzer.PythonAnalyzerEntry.<>c.<GetAnalysisAsync>b__23_0(Task`1 t)
   at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.Python.Analysis.Analyzer.PythonAnalyzer.GetAnalysisAsync(PythonAnalyzerEntry entry, CancellationToken timeoutCt, CancellationToken cancellationToken)
   at Microsoft.Python.Analysis.Analyzer.PythonAnalyzer.GetAnalysisAsync(IPythonModule module, Int32 waitTime, CancellationToken cancellationToken)
   at Microsoft.Python.LanguageServer.Documents.Document.GetAnalysisAsync(Uri uri, IServiceContainer services, Int32 msTimeout, CancellationToken cancellationToken)
   at Microsoft.Python.LanguageServer.Implementation.Server.Completion(CompletionParams params, CancellationToken cancellationToken)
   at Microsoft.Python.LanguageServer.Implementation.LanguageServer.Completion(JToken token, CancellationToken cancellationToken)
[Error - 11:40:33 AM] Request textDocument/completion failed.
  Message: Object reference not set to an instance of an object.
  Code: -32000
   at Microsoft.Python.Analysis.Modules.PythonModule.<>c.<NotifyAnalysisBegins>b__106_0(IScope c)
   at Microsoft.Python.Core.EnumerableExtensions.TraverseDepthFirst[T](T root, Func`2 selectChildren)+MoveNext()
   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
   at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.MoveNext()
   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
   at Microsoft.Python.Analysis.Modules.PythonModule.NotifyAnalysisBegins()
   at Microsoft.Python.Analysis.Analyzer.PythonAnalyzerSession.AnalyzeEntry(PythonAnalyzerEntry entry, IPythonModule module, PythonAst ast, Int32 version, CancellationToken cancellationToken)
   at Microsoft.Python.Analysis.Analyzer.PythonAnalyzerSession.Analyze(PythonAnalyzerEntry entry, Int32 version, CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.Python.Analysis.Analyzer.PythonAnalyzerEntry.<>c.<GetAnalysisAsync>b__23_0(Task`1 t)
   at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.Python.Analysis.Analyzer.PythonAnalyzer.GetAnalysisAsync(PythonAnalyzerEntry entry, CancellationToken timeoutCt, CancellationToken cancellationToken)
   at Microsoft.Python.Analysis.Analyzer.PythonAnalyzer.GetAnalysisAsync(IPythonModule module, Int32 waitTime, CancellationToken cancellationToken)
   at Microsoft.Python.LanguageServer.Documents.Document.GetAnalysisAsync(Uri uri, IServiceContainer services, Int32 msTimeout, CancellationToken cancellationToken)
   at Microsoft.Python.LanguageServer.Implementation.Server.Completion(CompletionParams params, CancellationToken cancellationToken)
   at Microsoft.Python.LanguageServer.Implementation.LanguageServer.Completion(JToken token, CancellationToken cancellationToken)

This is #967.


[HBASE-22592] : HMaster Construction failure stacktrace to be availab…

…le in .out file - Useful if Logger class is not loaded yet (branch-2)
This is cherry-pick from master branch PR: #311
An example of Exception(NoSuchMethodError) which is not present in .log/.out files:

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

0
reexec
23
Docker mode activated.

_ Prechecks _

+1
hbaseanti
0
Patch does not have any anti-patterns.

+1
@author
0
The patch does not contain any @author tags.

-0
test4tests
0
The patch doesn't appear to include any new or modified tests.  Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ branch-2 Compile Tests _

+1
mvninstall
251
branch-2 passed

+1
compile
54
branch-2 passed

+1
checkstyle
73
branch-2 passed

+1
shadedjars
251
branch has no errors when building our shaded downstream artifacts.

+1
findbugs
176
branch-2 passed

+1
javadoc
32
branch-2 passed

_ Patch Compile Tests _

+1
mvninstall
245
the patch passed

+1
compile
53
the patch passed

+1
javac
53
the patch passed

+1
checkstyle
76
the patch passed

+1
whitespace
0
The patch has no whitespace issues.

+1
shadedjars
246
patch has no errors when building our shaded downstream artifacts.

+1
hadoopcheck
743
Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.

+1
findbugs
179
the patch passed

+1
javadoc
31
the patch passed

_ Other Tests _

+1
unit
7685
hbase-server in the patch passed.

+1
asflicense
33
The patch does not generate ASF License warnings.

10472

Subsystem
Report/Notes

Docker
Client=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-313/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/313

Optional Tests
dupname  asflicense  javac  javadoc  unit  findbugs  shadedjars  hadoopcheck  hbaseanti  checkstyle  compile

uname
Linux 02d482fd6ad3 4.4.0-131-generic #157~14.04.1-Ubuntu SMP Fri Jul 13 08:53:17 UTC 2018 x86_64 GNU/Linux

Build tool
maven

Personality
/testptch/patchprocess/precommit/personality/provided.sh

git revision
branch-2 / 38f051b750

maven
version: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)

Default Java
1.8.0_181

findbugs
v3.1.11

Test Results
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-313/1/testReport/

Max. process+thread count
4049 (vs. ulimit of 10000)

modules
C: hbase-server U: hbase-server

Console output
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-313/1/console

Powered by
Apache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

I don't think that this PR is necessary if #311 gets merged and back ported to all other branches.


407-pedestrian-counting

It's embarrassing to see my work duplicated by others, but I still want to submit my work. My pedestrian tracking and counting is based on paddlepaddle model and ocsort tracker.

It's embarrassing to see my work duplicated by others, but I still want to submit my work. My pedestrian tracking and counting is based on paddlepaddle model and ocsort tracker.

Hi @KirigiriSuzumiya thanks for your contribution. no worry, for education purpose, I think we can put 2 notebook instances under 407, one for Paddle model and ocsort, and another for Open Model Zoo and DeepSORT.
@zhuo-yoyowz what's your opinion ?

Hi @KirigiriSuzumiya thanks for your contribution. no worry, for education purpose, I think we can put 2 notebook instances under 407, one for Paddle model and ocsort, and another for Open Model Zoo and DeepSORT. just like what we have in 301
@zhuo-yoyowz @eaidova @adrianboguszewski what's your opinion ?

sure, I do not see the problem to have different realizations

It's embarrassing to see my work duplicated by others, but I still want to submit my work. My pedestrian tracking and counting is based on paddlepaddle model and ocsort tracker.

Hi @KirigiriSuzumiya thanks for your contribution. no worry, for education purpose, I think we can put 2 notebook instances under 407, one for Paddle model and ocsort, and another for Open Model Zoo and DeepSORT. just like what we have in 301
@zhuo-yoyowz @eaidova @adrianboguszewski what's your opinion ?

I tested both of them and in my opinion, they are close enough to be combined into one notebook

The two notebooks have good things. We can combine those into one. Remember that we need to add an educational tone and sources for developers in the code. We need to combine the strengths of the two versions.