[web][regression] json_serializable enum decoding stopped working

Steps to Reproduce

After a recent flutter upgrade, json_serialization's generated code fails to decode enums.
It works fine on Android, but it fails on web. It was working fine on web until a few versions ago.
Currently I'm on master branch

Run flutter create bug.
Update the files as follows: ...

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

part 'main.g.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: () {
        final test = TestClass(status: TestStatus.two);
        // This works fine and prints "{status: two}"
        print(test.toJson());

        // This instead throws an Exception:
        // Expected a value of type '(() => MapEntry<TestStatus, String>)?', but got one of type '() => Null'
        TestClass.fromJson({'status': 'two'});
        return Text('Success');
      }(),
    );
  }
}

enum TestStatus {
  one,
  two,
  three,
}

@JsonSerializable(explicitToJson: true)
class TestClass {
  final TestStatus status;

  const TestClass({
    this.status,
  });

  factory TestClass.fromJson(Map<String, dynamic> json) =>
      _$TestClassFromJson(json);

  Map<String, dynamic> toJson() => _$TestClassToJson(this);
}

File generation with the following command:
flutter pub run build_runner watch  --delete-conflicting-outputs

pubspec.yml
name: bug_json_enum
description: A new Flutter project.

publish_to: 'none' # Remove this line if you wish to publish to pub.dev

version: 1.0.0+1

environment:
  sdk: ">=2.7.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter

  cupertino_icons: ^1.0.0

  json_annotation: ^3.1.0

dev_dependencies:
  flutter_test:
    sdk: flutter

  json_serializable: ^3.5.0

  build_runner: ^1.10.4

flutter:

  uses-material-design: true

...

Expected results:
 TestClass.fromJson({'status': 'two'}); should not throw an exception
Actual results:
TestClass.fromJson({'status': 'two'}) throws the following exception:
Expected a value of type '(() => MapEntry<TestStatus, String>)?', but got one of type '() => Null'

Logs

Logs available here:
https://gist.github.com/prascuna/4398bb3cea9b75262746c18eb31c4224

Running "flutter pub get" in bug_json_enum...                      536ms
Analyzing bug_json_enum...
No issues found! (ran in 2.3s)

[✓] Flutter (Channel master, 1.24.0-7.0.pre.54, on Mac OS X 10.15.6 19G2021 darwin-x64, locale en-GB)
    • Flutter version 1.24.0-7.0.pre.54 at /Users/prascuna/Documents/workspace/flutter
    • Framework revision 8328b56ef3 (2 hours ago), 2020-11-02 19:18:03 +0530
    • Engine revision<PHONE_NUMBER>
    • Dart version 2.12.0 (build 2.12.0-3.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/prascuna/Library/Android/sdk
    • Platform android-29, build-tools 29.0.3
    • Java binary at: /Users/prascuna/.sdkman/candidates/java/current/bin/java
    • Java version OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_262-b10)
    • All Android licenses accepted.

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

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

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).

[✓] IntelliJ IDEA Community Edition (version 2020.2.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 50.0
    • Dart plugin version 202.7319.5

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

[✓] Connected device (2 available)
    • Web Server (web) • web-server • web-javascript • Flutter Tools
    • Chrome (web)     • chrome     • web-javascript • Google Chrome 86.0.4240.111

! Doctor found issues in 1 category.

Issue is replicable on latest master (1.24.0-7.0.pre.72). Running above code sample shows red screen in UI with below log.

latest master log

Running "flutter pub get" in webtest...
Launching lib/main.dart on Chrome in debug mode...
Syncing files to device Chrome...
Debug service listening on ws://<IP_ADDRESS>:59051/y4u-ZwiT30o=/ws
Debug service listening on ws://<IP_ADDRESS>:59051/y4u-ZwiT30o=/ws
{status: two}
══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
The following TypeErrorImpl was thrown building MyApp(dirty):
Expected a value of type '(() => MapEntry<TestStatus, String>)?', but got one of type '() => Null'

The relevant error-causing widget was:
  MyApp file:///Users/dhs/Documents/NCFlutter/webtest/lib/main.dart:7:10

When the exception was thrown, this was the stack:
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 216:49      throw_
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 64:3        castError
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 442:10  cast
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/types.dart 395:9        as
dart-sdk/lib/core/iterable.dart 618:42                                            singleWhere
packages/webtest/main.g.dart 29:27                                                _$36enumDecode
packages/webtest/main.g.dart 48:10                                                _$36enumDecodeNullable
packages/webtest/main.g.dart 11:13                                                _$36TestClassFromJson
packages/webtest/main.dart 47:7                                                   fromJson
packages/webtest/main.dart 25:19                                                  <fn>
packages/webtest/main.dart 26:21                                                  build
packages/flutter/src/widgets/framework.dart 4749:28                               build
packages/flutter/src/widgets/framework.dart 4675:15                               performRebuild
packages/flutter/src/widgets/framework.dart 4369:5                                rebuild
packages/flutter/src/widgets/framework.dart 4654:5                                [_firstBuild]
packages/flutter/src/widgets/framework.dart 4649:5                                mount
packages/flutter/src/widgets/framework.dart 3615:13                               inflateWidget
packages/flutter/src/widgets/framework.dart 3380:18                               updateChild
packages/flutter/src/widgets/binding.dart 1203:16                                 [_rebuild]
packages/flutter/src/widgets/binding.dart 1174:5                                  mount
packages/flutter/src/widgets/binding.dart 1116:16                                 <fn>
packages/flutter/src/widgets/framework.dart 2730:19                               buildScope
packages/flutter/src/widgets/binding.dart 1115:12                                 attachToRenderTree
packages/flutter/src/widgets/binding.dart 954:24                                  attachRootWidget
packages/flutter/src/widgets/binding.dart 936:7                                   <fn>
dart-sdk/lib/_internal/js_dev_runtime/private/isolate_helper.dart 48:19           internalCallback

════════════════════════════════════════════════════════════════════════════════════════════════════

latest flutter doctor -v

[✓] Flutter (Channel master, 1.24.0-7.0.pre.75, on Mac OS X 10.15.4 19E2269
    darwin-x64, locale en-IN)
    • Flutter version 1.24.0-7.0.pre.75 at
      /Users/dhs/documents/Fluttersdk/flutter
    • Framework revision 4019956fc8 (3 hours ago), 2020-11-03 12:28:04 +0530
    • Engine revision<PHONE_NUMBER>
    • Dart version 2.12.0 (build 2.12.0-3.0.dev)

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

[✓] Xcode - develop for iOS and macOS (Xcode 12.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.0.1, Build version 12A7300
    • CocoaPods version 1.9.3

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

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

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

[✓] Connected device (5 available)
    • SM G975F (mobile)                   • RZ8M802WY0X
      • android-arm64  • Android 10 (API 29)
    • iPhone SE (2nd generation) (mobile) • 6C85835D-FBFD-4AB3-8DE8-B4FAD35E5367
      • ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-0 (simulator)
    • macOS (desktop)                     • macos
      • darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Web Server (web)                    • web-server
      • web-javascript • Flutter Tools
    • Chrome (web)                        • chrome
      • web-javascript • Google Chrome 86.0.4240.183

• No issues found!

The same code sample works properly without any exception logs on master version (1.24.0-7.0.pre.27)

previous master version log
Running "flutter pub get" in webtest...
Launching lib/main.dart on Chrome in debug mode...
Syncing files to device Chrome...
Debug service listening on ws://<IP_ADDRESS>:58803/ebRKgffILQk=/ws
Debug service listening on ws://<IP_ADDRESS>:58803/ebRKgffILQk=/ws
{status: two}

previous master flutter doctor -v

[✓] Flutter (Channel master, 1.24.0-7.0.pre.27, on Mac OS X 10.15.4 19E2269
    darwin-x64, locale en-IN)
    • Flutter version 1.24.0-7.0.pre.27 at
      /Users/dhs/documents/Fluttersdk/flutter
    • Framework revision e444b1e3fa (4 days ago), 2020-10-30 00:41:52 -0400
    • Engine revision 99cc50dfff
    • Dart version 2.11.0 (build 2.11.0-266.0.dev)

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

[✓] Xcode - develop for iOS and macOS (Xcode 12.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.0.1, Build version 12A7300
    • CocoaPods version 1.9.3

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

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

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

[✓] Connected device (5 available)
    • SM G975F (mobile)                   • RZ8M802WY0X
      • android-arm64  • Android 10 (API 29)
    • iPhone SE (2nd generation) (mobile) • 6C85835D-FBFD-4AB3-8DE8-B4FAD35E5367
      • ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-0 (simulator)
    • macOS (desktop)                     • macos
      • darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Web Server (web)                    • web-server
      • web-javascript • Flutter Tools
    • Chrome (web)                        • chrome
      • web-javascript • Google Chrome 86.0.4240.183

• No issues found!

@jakemac53  could you please take a look, did something break with sound mode change?

@jakemac53  could you please take a look, did something break with sound mode change?

I just tried to repro this on the latest flutter master and was not able to, @prascuna @darshankawar can you still repro this?

I just tried to repro this on the latest flutter master and was not able to, @prascuna @darshankawar can you still repro this?

@jakemac53  seems fine now on
Flutter (Channel master, 1.26.0-2.0.pre.277, on Mac OS X 10.15.7 19H15 darwin-x64, locale en-GB)

@jakemac53  seems fine now on
Flutter (Channel master, 1.26.0-2.0.pre.277, on Mac OS X 10.15.7 19H15 darwin-x64, locale en-GB)

Closing this for now then, we can re-open if somebody does have something that can repro with the latest versions.

Closing this for now then, we can re-open if somebody does have something that can repro with the latest versions.


Reconciling concept names with other query specific names

Coverage remained the same at 99.222% when pulling 0fafaa2dcc588446abdc07e7b48400958a6a9e68 on concept-name-fix into f1499db957caa64cc33bbaba817dbc804d2f7e8e on master.


Second Round (still Alpha) Release

[x] Download on Firefox
[x] Eliminate ResetView Button
[ ] doSearch Action with Routing
[ ] doGazeteer Action with Routing
[ ] disable Search after Zoomlevel 11

see also https://github.com/cismet/wupp/issues/1162


Add Spatie permission plugin

This is  a bug | feature request.

Prerequisites

[ ] Are you running the latest version?
[ ] Are you reporting to the correct repository?
[ ] Did you check the documentation?
[ ] Did you perform a cursory search?

Description

Steps to Reproduce

Expected behavior

Actual behavior

https://github.com/althinect/filament-spatie-roles-permissions


Usability: Use a more cultured non-empty list

Why?
We use NonEmptyList, which is non-empty by construction. @arthurpaulino wrote something similar, except that instead of nil, he named it uno because it's never really empty. (Which is good. Nil is confusing).
Here's some functions for what @arthurpaulino called NEList: https://github.com/arthurpaulino/FxyLang/blob/master/FxyLang/Implementation/NEList.lean
And here's some proofs of correctness for them: https://github.com/arthurpaulino/FxyLang/blob/master/FxyLang/Reasoning/NEList.lean
Arthur blesses Megaparsec to copy/paste anything we need here  :+1:
https://yatima.zulipchat.com/#narrow/stream/327321-yatima-tools/topic/.5BMegaparsec.2Elean.5D.20non.20empty.20lists/near/286096699
How?

[ ] Take NEList and replace NonEmptyList with it
[ ] Add some convenience functions like maybe converting from a list
[ ] Add NEString, analogously

Another issue.


Implement Mock File Operations for add_or_update_normal_file Tests

Description
This pull request implements mock file operations for the add_or_update_normal_file tests to simulate various file system behaviors. It allows the tests to verify the consistency and correctness of the normalStore under concurrent access without relying on the actual file system. This change addresses issue by enhancing the testing framework.

Fixes #(11)

Type of change

New feature (non-breaking change which adds functionality)
Tests update

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
My changes generate no new warnings
New and existing unit tests pass locally with my changes
I have maintained a clean commit history by using the necessary Git commands
I have checked that my code does not cause any merge conflicts

@Sushil2k4
please fix code which is breaking workflows
strictly follow the PR template
After you fix them i will review your PR
You can go through CONTRIBUTING.MD

Another instance of violation of rules and thus, this is your second warning. Another warning, and you will be banned from this repository for forever @Sushil2k4 . Kindly refrain from creating a pull request without going through the contribution guidelines, code of conduct and readme of the repoository.
Closing this due to violation of rules of the program and repository.


Please add the racket topic to this repo

Hi ,
Please add the racket topic to this repo - I think others will be interested and this will help them find it at https://github.com/topics/racket
https://help.github.com/en/articles/classifying-your-repository-with-topics
Kind regards,
Stephen

Done, thanks for the nudge 👍 😄


Allow for specifying Identity Center Email

Is your feature request related to a problem? Please describe.
I want to configure different accounts in different OUs for the same base email address. Like<EMAIL_ADDRESS>for the staging OU, but mapping to my identity center account at<EMAIL_ADDRESS>This is critical for people using Google Workspace for their Identity Provider as it is not possible to login using +alias accounts.
Describe the feature you'd like
The Account Config object should support setting two different emails: one for the account, and one to link to Identity Center.
Additional context
I can do this function from the Control Tower UI

Hi @jprokay-tb , thank you for filing a feature request with the Landing Zone Accelerator team! I wanted to let you know that we have added an item in our backlog to implement this feature. We absolutely understand the importance of the your use case as a part of accelerator-provisioned infrastructure. However, we cannot currently provide an ETA for when the feature will be available against our current planned feature roadmap. Our team will evaluate the applicability of this request for a future release.
We will keep this issue open for tracking purposes and keep you aware of any status updates going forward. Thank you for supporting Landing Zone Accelerator!

Hi @bhkhatri221 .. side issue, in regard to the roadmap, is this shared and if so can you point me to the link please

Hello @gambol99 , thank you for contacting us. Unfortunately, I'm unable to provide a specific timeline for implementing this feature at the moment. I'll keep this issue open and ensure any updates regarding its progress are communicated promptly.


Test for iOS does not work properly.

I am running the sample app as is on a device and on the simulator.  The issue is that when wifi is turned off and on again, the connection is marked as "no connection" instead of wifi.  The reason behind it is that the callback is being called twice, the first with the correct "reachable" flag set and the second time immediately thereafter with a value of 0 (unreachable).  I believe this is a bug with SCNetworkReachability, but I am not sure.

I have the same problem

@visskiss I too have problems with whenReachable and whenUnreachable blocks being called twice... any solution?

Here is the response to my bug report.  Read carefully, and you will see why it is called twice.

Apple Developer Relations01-Jun-2016 02:23 PM

Engineering has the following feedback for you:
In iOS 9.x, the implementation of the SCNetworkReachability APIs was updated to be more optimistic for by-name queries.
Now, we initially return a "reachable" status if the device has a default route and 1 (or more) DNS server addresses.
Then, for asynchronous queries (those scheduled with SCNetworkReachabilityScheduleWithRunLoop or SCNetworkReachabilitySetDispatchQueue) we will query the DNS server with the provided hostname and a followup callback will be issued if the name could not be resolved (or the associated IPs are not reachable).
With your sample code, the last host you are looking up is "invalidhost" so, as noted above, the initial and optimistic flags are "reachable".  Later, once we find that the name cannot be resolved, we issue a callback with the "not reachable" status.
Thank you for your feedback. Engineering has determined that this issue behaves as intended.


[quill] Upgrade quill  up to 1.6.3

Upgrade quill  up to 1.6.3

What does your PR fix?

just upgrade

Which triplets are supported/not supported? Have you updated the CI baseline?

all

Does your PR follow the maintainer guide?

yes

If you have added/updated a port: Have you run ./vcpkg x-add-version --all and committed the result?

yes
If you are still working on the PR, open it as a Draft: https://github.blog/2019-02-14-introducing-draft-pull-requests/

Duplicate


Waiting on arming

Considering the GPS and EKF issues exposed by #406, I wonder if we shouldn't be exposing a different parameter indicating "readiness to arm".
In several of our examples, we sidestep this by waiting for a GPS lock. e.g. in simple_goto:
    print "Basic pre-arm checks"
    # Don't let the user try to fly autopilot is booting
    if vehicle.mode.name == "INITIALISING":
        print "Waiting for vehicle to initialise"
        time.sleep(1)
    while vehicle.gps_0.fix_type < 2:
        print "Waiting for GPS...:", vehicle.gps_0.fix_type
        time.sleep(1)

We discover with 3.3 we also need to wait for an EKF readiness flag. What if we were instead to abstract several of these considerations into an attribute, vehicle.armable:
vehicle = connect('...', wait_ready='armable')
vehicle.armed = True

This would encompass the MODE, GPS, and (depending on vehicle?) EKF checks, so that we can have a simple mechanism to wait for this (instead of our crufty spin-loops).

We may also want to expand the wait_ready mechanism to encompass matching values.
vehicle = connect('...', wait_ready='armable')
vehicle.armed = True
vehicle.wait_condition(armed=True)

what if i have a special condition they would like to meet, can i extend armable?

(I actually take back my earlier comments about extending wait_ready and wait_condition; that would be mixing information synchronization with conditions. Conditional checks should probably remain in user code.)

@mrpollo Perhaps, to keep this simple, we can go for something like the following:
class Vehicle():
    ...
    @property
    def is_armable(self):
        return GPS and EKF and MODE
    ...

And subclasses of Vehicle (using the vehicle_class mechansim) can just override is_armable(). Thus our code for simple_goto becomes:
print "Basic pre-arm checks"
while not vehicle.is_armable:
    time.sleep(1)
vehicle.armed = True
while not vehicle.armed:
   time.sleep(1)

This is still ugly, but we don't have any general solution yet for "await condition in user code with timeout" and that sounds like a larger, separate issue.

agreed

@tcr3dr We can't really wait on armable anyway on connecting, because some states on some vehicles don't allow arming.
I like the idea of isarmable as a check. I lovethe idea of being able to get the reason it isn't armable back from the system (though I'd really only be interested on getting the value(s) holding it back). This is important because if it doesn't arm I need to easily be able to work out why.
In example, don't both True and return MODE and GPS and (if we have EKF, EKF) both evaluate as true?
It would be great if we could fix the await condition in user code with timeout issue - but what you've got above is workable. Makes it much easier to build a straighforward "takeoff" function, which is what I think users really want :-)

The goal of this issue, having cross-platform code that supports waiting for arming, is implemented by #430. The mechanism by which we improve on this in the future remains to be seen, but for now I'm closing this issue.

Agreed. #430 is pragmatic, and I think using it in anger for a bit may tell us that it is "good enough".


Add grid spacing to prevent multiple overlap

With the sprites touching each other sometimes sprites overlap two other sprites, which can cause alignment bugs

Current solution is to do a linear search through the active row to determine which RNA is the closest. This is less of a hack than relying on grid spacing.


Improve article 0705.1033

The figures do not render.
Source:

Result:

Thank you for the report @adishavit , much appreciated!
Good to have our first piece of github feedback here.

Amazing project - great initiative - keep up the great work!

This article has gotten mildly better (from a developer perspective) and now contains all pieces of the figure, sadly scattered around.
We haven't focused on tikz for the Full regeneration at the end of 2022, but maybe some time in the coming months. There ought to be just a couple of conceptual sizing upgrades left to do.

Jotting down another detail here, which is that there is a particular "overlay technique" used to layout this figure.
The key detail is that the figure consists of two separate {picture} environments, the second of which is offset back to overlap the first. This may be rather difficult to properly capture in LaTeXML, unless we can rewrite the two adjacent SVG images into a single one.
The exact TeX is:
\begin{figure}[t]
\begin{center}
\begin{picture}(0,0)%
\epsfig{file=figures/NecklaceBisection.pstex}%
\end{picture}%
\setlength{\unitlength}{1973sp}%
%
\begingroup\makeatletter\ifx\SetFigFont\undefined%
\gdef\SetFigFont#1#2#3#4#5{%
  \reset@font\fontsize{#1}{#2pt}%
  \fontfamily{#3}\fontseries{#4}\fontshape{#5}%
  \selectfont}%
\fi\endgroup%
\begin{picture}(10306,6741)(1339,-7230)
\put(2551,-1786){\makebox(0,0)[lb]{\smash{{\SetFigFont{9}{10.8}{\familydefault}{\mddefault}{\updefault}{\color[rgb]{0,0,0}$A$}%
}}}}
\put(6226,-1711){\makebox(0,0)[lb]{\smash{{\SetFigFont{9}{10.8}{\familydefault}{\mddefault}{\updefault}{\color[rgb]{0,0,0}$A$}%
}}}}
\put(10426,-1711){\makebox(0,0)[lb]{\smash{{\SetFigFont{9}{10.8}{\familydefault}{\mddefault}{\updefault}{\color[rgb]{0,0,0}$A$}%
}}}}
\put(3001,-6436){\makebox(0,0)[lb]{\smash{{\SetFigFont{9}{10.8}{\familydefault}{\mddefault}{\updefault}{\color[rgb]{0,0,0}$A$}%
}}}}
\put(2851,-2986){\makebox(0,0)[lb]{\smash{{\SetFigFont{9}{10.8}{\familydefault}{\mddefault}{\updefault}{\color[rgb]{0,0,0}$\bar{A}$}%
}}}}
\put(6301,-2986){\makebox(0,0)[lb]{\smash{{\SetFigFont{9}{10.8}{\familydefault}{\mddefault}{\updefault}{\color[rgb]{0,0,0}$\bar{A}$}%
}}}}
\put(9151,-2761){\makebox(0,0)[lb]{\smash{{\SetFigFont{9}{10.8}{\familydefault}{\mddefault}{\updefault}{\color[rgb]{0,0,0}$\bar{A}$}%
}}}}
\put(2326,-5236){\makebox(0,0)[lb]{\smash{{\SetFigFont{9}{10.8}{\familydefault}{\mddefault}{\updefault}{\color[rgb]{0,0,0}$\bar{A}$}%
}}}}
\end{picture}%

\end{center}
\caption{...}
\figlabel{necklace-fig}
\end{figure}


build: current AUR package v1.0.6 seems to be broken

When trying to install the current version of goxlr-utility the installation fails with the following message:
==> Entering fakeroot environment...
==> Starting package()...
install: cannot stat '/goxlr-client.bash': No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...
error: failed to build 'goxlr-utility-1.0.6-1':
error: packages failed to build: goxlr-utility-1.0.6-1

This doesn't seem to be a local problem as I have personally reproduced it on two different machines. It has also been reported by a different user on the packages AUR page.

Weird, I've just given it a test locally and from AUR and it seems to build and install correctly..
Could you try again and provide the full build log for me please?

Found the problem, looks like a recent rust update has changed the JSON diagnostics, I suspect this will break a lot of rust packages in AUR, I'll look into getting a fix in.

I've pushed a fix for this into AUR, should appear soon.
Thanks for reporting

fixed it for me, thank you boss :)

Yup everything works fine now. Thanks for the quick fix!


Windows and custom MinGW64 gives "Error: ld.exe: cannot find ltrans0.ltrans.o: No such file or directory"

C:\work\test\2>python -m nuitka --windows-disable-console --follow-imports main.py
Nuitka-Options:INFO: Used command line options: --windows-disable-console --follow-imports main.py
Nuitka:INFO: Starting Python compilation with Nuitka '1.4.7' on Python '3.10' commercial grade 'not installed'.
Nuitka:INFO: Completed Python level compilation and optimization.
Nuitka:INFO: Generating source code for C backend compiler.
Nuitka:INFO: Running data composer tool for optimal constant value handling.
Nuitka:INFO: Running C compilation via Scons.
Nuitka-Scons:INFO: Backend C compiler: gcc (gcc).
Nuitka-Scons:INFO: Backend linking program with 6 files (no progress information available).
c:/work/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find C:\Users\Rimush\AppData\Local\Temp\ccKTJTgg.ltrans0.ltrans.o: No such file or directory
c:/work/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find C:\Users\Rimush\AppData\Local\Temp\ccKTJTgg.ltrans1.ltrans.o: No such file or directory
c:/work/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find C:\Users\Rimush\AppData\Local\Temp\ccKTJTgg.ltrans2.ltrans.o: No such file or directory
c:/work/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find C:\Users\Rimush\AppData\Local\Temp\ccKTJTgg.ltrans3.ltrans.o: No such file or directory
collect2.exe: error: ld returned 1 exit status
scons: *** [C:\work\test\2\main.exe] Error 1

I checked the folder "C:\Users\Rimush\AppData\Local\Temp" while Nuitka is running. There are no files "ccKTJTgg.ltrans0.ltrans.o, ccKTJTgg.ltrans1.ltrans.o, ccKTJTgg.ltrans2.ltrans.o, ccKTJTgg.ltrans3.ltrans.o", but there are files "ccKTJTgg.ltrans0.o, ccKTJTgg.ltrans1.o, ccKTJTgg.ltrans2.o, ccKTJTgg.ltrans3.o"
Nuitka version: 1.4.7
Commercial: None
Python: 3.10.10 (tags/v3.10.10:aad5f6a, Feb  7 2023, 17:20:36) [MSC v.1929 64 bit (AMD64)]
Flavor: CPython Official
Executable: C:\Python\Python310\python.exe
OS: Windows
Arch: x86_64
WindowsRelease: 10
Version C compiler: C:\work\tools\mingw64\bin\gcc.exe (gcc).

Use the MinGW of Nuitka, it works with LTO. I do not debug random MinGW64 versions.

The same problem when Nutika downloads mingw64

C:\work\test\2>python -m nuitka --windows-disable-console --follow-imports main.py
Nuitka-Options:INFO: Used command line options: --windows-disable-console --follow-imports main.py
Nuitka:INFO: Starting Python compilation with Nuitka '1.4.7' on Python '3.10' commercial grade 'not installed'.
Nuitka:INFO: Completed Python level compilation and optimization.
Nuitka:INFO: Generating source code for C backend compiler.
Nuitka:INFO: Running data composer tool for optimal constant value handling.
Nuitka:INFO: Running C compilation via Scons.
Nuitka will use gcc from MinGW64 of winlibs to compile on Windows.
Is it OK to download and put it in 'C:\Users\Rimush\AppData\Local\Nuitka\Nuitka\Cache\downloads\gcc\x86_64\11.3.0-14.0.3-10.0.0-msvcrt-r3'.
No installer needed, cached, one time question.
Proceed and download? [Yes]/No
y
Nuitka:INFO: Downloading 'https://github.com/brechtsanders/winlibs_mingw/releases/download/11.3.0-14.0.3-10.0.0-msvcrt-r3/winlibs-x86_64-posix-seh-gcc-11.3.0-llvm-14.0.3-mingw-w64msvcrt-10.0.0-r3.zip'.
Nuitka:INFO: Extracting to 'C:\Users\Rimush\AppData\Local\Nuitka\Nuitka\Cache\downloads\gcc\x86_64\11.3.0-14.0.3-10.0.0-msvcrt-r3\mingw64\bin\gcc.exe'
Nuitka-Scons:INFO: Backend C compiler: gcc (gcc).
Nuitka-Scons:INFO: Backend linking program with 6 files (no progress information available).
c:/users/rimush/appdata/local/nuitka/nuitka/cache/downloads/gcc/x86_64/11.3.0-14.0.3-10.0.0-msvcrt-r3/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find C:\Users\Rimush\AppData\Local\Temp\ccqPpvbh.ltrans0.ltrans.o: No such file or directory
c:/users/rimush/appdata/local/nuitka/nuitka/cache/downloads/gcc/x86_64/11.3.0-14.0.3-10.0.0-msvcrt-r3/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find C:\Users\Rimush\AppData\Local\Temp\ccqPpvbh.ltrans1.ltrans.o: No such file or directory
c:/users/rimush/appdata/local/nuitka/nuitka/cache/downloads/gcc/x86_64/11.3.0-14.0.3-10.0.0-msvcrt-r3/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find C:\Users\Rimush\AppData\Local\Temp\ccqPpvbh.ltrans2.ltrans.o: No such file or directory
c:/users/rimush/appdata/local/nuitka/nuitka/cache/downloads/gcc/x86_64/11.3.0-14.0.3-10.0.0-msvcrt-r3/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find C:\Users\Rimush\AppData\Local\Temp\ccqPpvbh.ltrans3.ltrans.o: No such file or directory
collect2.exe: error: ld returned 1 exit status
scons: *** [C:\work\test\2\main.exe] Error 1

That's pretty bad indeed. I did try updating to winlibs MinGW 12.2 and I recall, once before I had similar reports, and the hope was that they go away with a newer version. Obviously not. Because we are affected by this then: https://sourceware.org/bugzilla/show_bug.cgi?id=30079

I do not debug random MinGW64 versions.
I did try updating to winlibs MinGW 12.2 and I recall, once before I had similar reports, and the hope was that they go away with a newer version. Obviously not.

Building GCC 12.2 + MinGW-w64 against Binutils 2.39 works for me, but brings up the issue mentioned above (or similar) with Binutils 2.40.

It seems winlibs needs a release and a new build based on that to to be updated, which we are waiting for. Do you know the easiest way to get the binutils version when I have a foreign gcc installation @kamgha ? Also, setting MAKE to its prefixed name is a change that for gcc 12 is really useful. I have been waiting to update to 12 with MAKE, so we get parallel LTO linking, which will be huge for compile times.
At this point it seems however unlikely it will come in time for 1.5 release of Nuitka which is immanent.

the easiest way to get the binutils version when I have a foreign gcc installation

I guess ld -v is what you are looking for.

It seems winlibs needs a release and a new build based on that to to be updated [...]
At this point it seems however unlikely it will come in time for 1.5 release of Nuitka which is immanent.

There is GCC 12.2 with Binutils 2.39 from "winlibs" here https://github.com/brechtsanders/winlibs_mingw/releases/tag/12.2.0-15.0.6-10.0.0-ucrt-r3 . It may work already.

Unfortunately now I can not check anything, because I had to reinstall Windows. Now there are no problems with Nuitka and it was not possible to find the cause.

@kamgha I do not use the "urct" versions yet, since I am not yet sure what the implications are for runtime availability. But I tried 12.2.0 with MSVC and it failed to work.
@Rimush that's good news for you, then I guess I invite you to unsubscribe the bug. Unfortunately, I feel like somebody else will report it again at some point. I will use this to trace when to update MinGW to 12.

@kamgha mine is indeed 2.38 there, so yes, switching might be an idea, but actually I would prefer to first change gcc version, and then change runtime, or make it an option first.

I do not use the "urct" versions yet

Right, I prefer MSVCRT as well. At the end of this page is a comparison: https://www.msys2.org/docs/environments/

I am not yet sure what the implications are for runtime availability.

UCRT would drop Windows 7 RTM. Requirement will be Windows 7 SP1/8/8.1 and this update on top of it: https://support.microsoft.com/en-us/topic/update-for-universal-c-runtime-in-windows-c0514201-7fe6-95a3-b0a5-287930f3560c . It's included in Windows 10 onwards.

and then change runtime, or make it an option first.

Perhaps this decision can be made upon how CPython is linked against, to avoid pulling in new dependencies.
"winlibs" provides this: https://github.com/brechtsanders/winlibs_mingw/releases/tag/12.2.0-15.0.6-10.0.0-msvcrt-r3 . I just tested this with Nuitka and it works here (GCC 12.2.0 + Binutils 2.39 / MSVCRT).

I see, since UCRT will be mixing runtime with extension modules of Python necessarily, we may trigger too many issues then or need both, so that is not an option, or is it. At some point I will try it out. Maybe UCRT has some sort of compatibility layer there?

Not going to happen for even 1.7, delaying it to 1.8

winlibs needs a release and a new build based on that to to be updated, which we are waiting for.

winlibs has now a suitable build available: https://github.com/brechtsanders/winlibs_mingw/releases/tag/13.2.0-16.0.6-11.0.1-msvcrt-r1
GCC 13.2.0
MinGW-w64 11.0.1 (linked with msvcrt)
GNU Binutils 2.41

i686:
https://github.com/brechtsanders/winlibs_mingw/releases/download/13.2.0-16.0.6-11.0.1-msvcrt-r1/winlibs-i686-posix-dwarf-gcc-13.2.0-mingw-w64msvcrt-11.0.1-r1.zip
x86_64:
https://github.com/brechtsanders/winlibs_mingw/releases/download/13.2.0-16.0.6-11.0.1-msvcrt-r1/winlibs-x86_64-posix-seh-gcc-13.2.0-mingw-w64msvcrt-11.0.1-r1.zip

Ok, I will try and update it for 1.9 like one of the first things.

So, current factory has this, seems good. Should also make LTO faster with Nuitka there.

Thanks for your report, this is fixed on the factory branch, which is a development version under rapid development. You can try it out by going here: https://nuitka.net/doc/factory.html
Feedback if this is working is very welcome, just please do not share plans of doing it, but rather confirmations or denials of it working.

The update to gcc 13 is on develop, however it seems LTO and 32 bits are currently at least giving stray error messages, that I have no explanation for, and might lead to me to disabling it for that setup.

Part of the 1.9 release I just made.


[TwigComponent] Easier composability of components.

We're building a large set of twig components.
Currently, it is possible to pass the attributes from one component into another one.
This works, as long as the attributes in the parent component are no real properties inside the twig component PHP class:
Use-case:
#[AsTwigComponent('button')]
class Button {
    public string $type = 'submit';
}

#[AsTwigComponent('primary-button')]
class PrimaryButton extends Button {

}

Now the template of the Primary button could look like this:
{% set children = block('children') %}
{% component 'button' with attributes.defaults({
    type: type,
    class: 'primary',
}).all() %}
    {% block children %}{{ children|raw }}{% endblock %}
{% endcomponent %}

And button:
<button type="{{type}}" {{attributes.defaults({class: 'button'})}}>
    {% block children %}{% endblock %}
</button>

This works, but we had to do some strange things in order to make it work:

Primary-button needs to pass down all public properties manually. It would be nice if there was a way to just pass all attributes - even if they are placed in properties.

See twig of primary button above: type: type,

Primary-button needs to serialize to all(). It would be nice if the component took both an array and the Twig Attributes model. For the example above, this is still managable, but you might have 10 props or more in some places.
passing down blocks from parent into children is a bit cumbersome as well. Not sure if this is fixable

See twig component of primary button above: {% set children = block('children') %}

It would be nice if we could improve DX a bit here.

I would really love to make this "just work" and work awesomely :). Do you have any ideas on how you would like the final code to look? To give a better impression, I'd need to do some research into composition on existing systems - components are not new, so build on the ideas of giants :).

all() problem
This should be the easiest one to fix: support both array and the twig attributes class as parameter.

That seems reasonable. To repeat what you're referring to for later clarity, you would want the following to be allowed:
{% component 'button' with attributes.defaults({
    type: type,
    class: 'primary',
}) %}

Currently, you would need to add a .all() on the end to convert the ComponentAttributes into an array.

Passing down props and blocks

This is super helpful. But it'll require some time to bend my mind around it a bit and think what might be possible @kbond might have some thoughts about what might be possible - he did the work for the current {% component syntax, which deals with blocks.

Is this a bit related to #542?
While I did work on the {% component syntax, I don't have a great knowledge of twig internals. I copied most of the code from Twig's {% embed tag and https://github.com/giorgiopogliani/twig-components.

Hello @kbond
I wouldnt say those 2 are very related.
Only this would be easier with the PR linked to that issue:
{% set mountedComponent = mount_component('mount_for_change') %}
{% do mountedComponent.setName('Mr. Smith') %}

{% component 'button' from mountedComponent %}{% endcomponent %}

I think the use-case for mount_component is more as in the example of that specific issue. Eg you have a table and want to tell how table cells should be rendered, but want to pass in the data on the moment you render that component.

This should be the easiest one to fix: support both array and the twig attributes class as parameter.

Agreed (but I'll have to dig into twig internals), couple questions:

If passing attributes directly, what should the parameter name be in the child component? It will already have it's own attributes parameter, right? Or are you thinking this should override it?
Would you want to pass additional parameters down in addition to attributes?

Related to this issue it would be super cool if we could avoid using {% block %} without multiple slots :)
Because its cumbersome to write
{% component Super %}
{% block ... %}
{% endblock %}
{% endcomponent %}

I know... I'd love this as well but it's pretty advanced stuff. https://github.com/giorgiopogliani/twig-components has this but I couldn't figure out how to port that code into this library.

Yup, I would LOVE that syntax, in general, with twig components... 😇

1. If passing attributes directly, what should the parameter name be in the child component? It will already have it's own `attributes` parameter, right? Or are you thinking this should override it?

Good question. I don't know... I'dd say: merge(attributes, this.publicProps) and pass that down to the attributes of the child component?

2. Would you want to pass additional parameters down _in addition_ to attributes?

If you choose between component with and component from, then I'dd say that if you want to explicitely specify attributes, you'dd use the with form. If you want to copy it all you use from? I don't see a lot of value in adding other attributes atm. You can always use parent's attributes.with().without() as well.
Yeah, maybe blade's slots principle is better in this specific situation than the block system...
I don't mind the twig syntax that much, but the HTML-ish version would indeed be super nice indeed!
However, it might complicate things like passing down multiple attributes at once etc.

The idea of an default block was proposed for twig's embed tag - looks like it is complex!


Fix bug where default browser does not support TWA

Add all browsers as possible TWA

I signed it!


Jn/odom publisher

Hi Edo,
You think we can merge this? Will be very helpful for the summer school and my tutorial :)

Is there anything RSS specific here? If not feel free to merge

no, nothing specific, just the option to have published odom and transform, which is helpful. (and also will be used during my tutorial, however, pre-recorded)


License ?

Hello, under what license is this project released under ? I would like to study it to learn from it. Thank you.

Published under MIT, have fun!


64 bit on macos

will there be a 64 bit version for macosx?

The current MacOS app should be a 64 bit application, are you seeing otherwise / running into issues?

yes, unfortunately it looks like this here :(

Am 12.06.2023 um 06:33 schrieb erikrichardlarson @.***>:
The current MacOS app should be a 64 bit application, are you seeing otherwise / running into issues?
—
Reply to this email directly, view it on GitHub https://github.com/erikrichardlarson/unbox/issues/107#issuecomment-1586562166, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARTHSTXRGIJSHVNE3DRVJLLXK2L3PANCNFSM6AAAAAAZCNSVJM.
You are receiving this because you authored the thread.

Sorry not seeing a linked screenshot, feel free to post it here again and I can take a look

 ups, sorry
here it is hopefully

Thanks, I think you're on an Intel Mac? I can get a build out that works on Intel if that's the case, just let me know

yes i am
and that would be awesome :)

Nice will get that over to you today

Here's a version that should work on your mac, just let me know if you run into any issues: https://github.com/erikrichardlarson/unbox/releases/download/11/unbox-mac-universal.zip

Yes! thanks a lot!!!
Will test it in the coming days

ok,
when i start the app i get the following error message:
A JavaScript error occurred in the main process
Uncaught Exception:
Error: Cannot find module<EMAIL_ADDRESS>Require stack:

<EMAIL_ADDRESS><EMAIL_ADDRESS>/Applications/unbox.app/Contents/Resources/app-x64.asar/src/poller.js
/Applications/unbox.app/Contents/Resources/app-x64.asar/src/index.js
/Applications/unbox.app/Contents/Resources/app.asar/index.js

at Module._resolveFilename (node:internal/modules/cjs/loader:1054:15)
at n._resolveFilename (node:electron/js2c/browser_init:2:109877)
at Module._load (node:internal/modules/cjs/loader:900:27)
at f._load (node:electron/js2c/asar_bundle:2:13330)
at Module.require (node:internal/modules/cjs/loader:1120:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object. (/Applications/unbox.app/Contents/Resources/app-x64.asar/node_modules/@journeyapps/sqlcipher/lib/sqlite3-binding.js:4:15)
at Module._compile (node:internal/modules/cjs/loader:1241:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1296:10)
at Module.load (node:internal/modules/cjs/loader:1096:32)

Ah sorry about that, try this build instead: https://github.com/erikrichardlarson/unbox/releases/download/11/unbox-mac-x64.zip

thanks. this works - up to one point :/
I have copied and selected the D2 file in my traktor app.
but then when i start unbox and it says it can't connect to my traktor app
(see attached screenshots)

Gotcha, are you playing a track in Traktor? Traktor follows master in real-time so a track has to be playing for the initial connection to be made.

ah ok. i will try that.

awesome. now it works :) Thanks

Great to hear, let me know if you run into any more issues.


can you give me some guidance on how to use Bosaris toolkit

Hi,
I'm interested in this challenge, and designed some single anti-spoofing model for LA dataset. When I read the related papers in ASVspoof2019 Challenge, I found many primary systems are obtained by fusing some single models. I want to use Bosaris toolkit to fuse my model, but I have no idea how to use it, can you offer a demo code?

Do you know now？ I‘m reading the related papers in ASVspoof2019 Challenge now. I want to use Bosaris toolkit to fuse my model, but I have no idea how to use it....


Why the SQL anti-pattern?

Just curious, but why use the id technique, which is SQL anti-pattern?
Obviously a child normally has a reference to its parent id if a database is normalized.
ex.
We have a thousand posts with an average of 50 comments each. We fetch the thousand posts. Then we want to load one particular post with all details. That would be two SQL commands returning data directly without post-processing other than the JSON serialization.

But using this API, we would have to choose one of several ugly hacks.
We could run another SQL command per post before sending the initial list of posts:
SELECT id FROM comments WHERE post_id = post.id;
}```
Ouch, that's no good. Alternatively we could fetch them in a batch, and then process them in memory to attach the comment ids to each post. That's no good. Or, we could duplicate the data, storing an array of ids on each post. Again, ugly.

Of course all of those actions would require at least one extra database hit (and that's assuming we're doing all the parsing in memory on the server, prior to serialization). 1. Get the posts, 2. Get the ids, 3. Get the comments for a particular post when requested. We could cut this down to two if we side load all of the comments from the start (again, fetching them in a batch and parsing them in memory). But that's clearly not scalable.

In reality, we could use SQL to fetch everything at once, but that takes some serious SQL acrobatics and, again, it's very inefficient.

So again, why force the anti-pattern? I have to be missing (probably obvious) something here. The only benefit I could see is being able to show the comment count on posts before fulling loading comments. But then, just storing a comment count on the post would be a vastly more efficient denormalization. What am I missing?

Not sure what the state of the spec was back when this was opened, but for future reference, version 1.0 of the spec allows for specifying only a link for a resource, thus avoiding the multiple queries to fetch the related ids in a has_many relationship.


[libdatachannel] BUG: Don't find rtc/rtc.hpp file

Host Environment

OS: Windows 10
Compiler: cl 19.16.27045
qt: 5.12.11

Don't find rtc/rtc.hpp file.
I look cmake configure file. There are not include directory.

Confirmed, the include path wasn't exported to the config file.

This is a upstream issue and was fixed by https://github.com/paullouisageneau/libdatachannel/pull/446 28 days ago.


threefly_2x32

perf dies on massive lazyop stack when the early realizes are removed
need to fix
Closes: #2418

I realized something about XOR. Isn't it just add on a bool Tensor? (though numpy seems to behave differently)
Never mind, add behaves like OR
#include <stdio.h>
#include <stdbool.h>
int main() {
  bool a = true;
  bool b = true;
  bool c = a+b;
  printf("%d\n", c);
}

Oh, xor is SUB! (tested in C)
0 - 0 = 0
1 - 0 = 1
0 - 1 = 1
1 - 1 = 0

So it should be possible to bitcast this to bool and subtract them. Would just be in the __xor__ definition on Tensor, but that way we don't need a new op.

Is it guaranteed that bool has the same bitwidth as uint32 on all backends?

hmm, torch doesn't support uint32 as a dtype

I'm fine with merging this with XOR, the bool thing has a whole bunch of prereqs we don't have (size changing bitcast for example)

yea, gonna put xor in a seperate pr

I'm also fine with hardcoding a few (regenerable by jax) references instead of installing jax. This is pretty typical for crypto stuff

I'm fine with keeping the old rand for torch since torch doesn't support uint32

What's blocking this?

I'm not sure what happened with metal, started failing pretty recently, and its hard for me to reproduce as I don't have a mac.
Also on CPU this takes enormous amounts of ram.
Still running into that __repr__ issue with beam search since the asts are really deep.

torch is going to be removed soon, so this should be doable.

Still optional? or just full commit?

Can we get this merged optionally to start?

Currently I have a flag to turn it off, should I flip that so that its opt-in?

Yea, I think opt in is good so there's not THREEFRY=0 everywhere in CI

CI being slower makes sense, threefry generates quite a few more kernels running the tests.

I think it's fine to skip the randomness half test for threefry. That does not work for bfloat16 either and we need to have a different fix

can you sync to master? I added some bf16 rand stuff that I can clean up after this is merged

Congrats, bounty is yours


Cloud deploy modal is cut off from the window.

Describe the Bug

Choose to deploy a BPMN diagram via cloud we could see that the deploy diagram modal is cut-off from the windows.
Steps to Reproduce

Create/Open a BPMN diagram in the Camunda 8 Platform
Choose to deploy in any of the cloud versions and choose Camunda Platform self-managed and oAuth for authentication.
We could see that the deploy diagram modal is cut off from the windows.

Expected Behavior

The depoly diagram modal should fit inside the window.
Environment

OS: [ Windows 10]
Camunda Modeler Version: [5.0.0 Nightly]
Execution Platform: [Camunda Cloud]

This isn't expected behavior. Ensure that an overlay dialog does not grow out of the viewport.
I quickly hacked the dialog to showcase how it should work:
https://user-images.githubusercontent.com/938244/161297002-2c378121-c40d-41ce-801e-a84256c5b7a2.mov
This should be done for all overlays including what's new:
https://user-images.githubusercontent.com/938244/161297104-86d66673-9300-4a40-89fb-54a137e7fd8a.mov

Thanks both for your feedback 👍 Moving this to backlog since it's not blocking the release.


Port custom button style from "Drink" tab to "Beans" and "Templates" tabs

Submission/Reset in v<IP_ADDRESS> has new buttons in the "Drink" tab. These should be ported over.

in v<IP_ADDRESS>


ImportError: cannot import name 'config' from 'jax.config'

Report

scvi-tools were installed from main branch, the environment was brand new. jax was at the latest version.
Version information
No response

Hi! @Zethson Please may I have some assistance with this too? I note that this issue has been closed 3 weeks ago, but it is still happening for me using a fresh install of pertpy.
ImportError                               Traceback (most recent call last)
Cell In[1], line 9
7 import matplotlib.pyplot as plt
8 import mudata as mu
----> 9 import pertpy as pt
File /scbio4/home/samuel/miniforge3/envs/py3116-env/lib/python3.11/site-packages/pertpy/init.py:19
17 from . import plot as pl
18 from . import preprocessing as pp
---> 19 from . import tools as tl
File /scbio4/home/samuel/miniforge3/envs/py3116-env/lib/python3.11/site-packages/pertpy/tools/init.py:24
22     print("[bold yellow]To use sccoda or tasccoda please install ete3 with [green]pip install ete3")
23 else:
---> 24     raise e
File /scbio4/home/samuel/miniforge3/envs/py3116-env/lib/python3.11/site-packages/pertpy/tools/init.py:18
15 from pertpy.tools._scgen import SCGEN
17 try:
---> 18     from pertpy.tools._coda._sccoda import Sccoda
19     from pertpy.tools._coda._tasccoda import Tasccoda
20 except ImportError as e:
File /scbio4/home/samuel/miniforge3/envs/py3116-env/lib/python3.11/site-packages/pertpy/tools/_coda/_sccoda.py:12
10 from anndata import AnnData
11 from jax import random
---> 12 from jax.config import config
13 from mudata import MuData
14 from numpyro.infer import Predictive
ImportError: cannot import name 'config' from 'jax.config' (/scbio4/home/samuel/miniforge3/envs/py3116-env/lib/python3.11/site-packages/jax/config.py)
Thank you so much!
Best Regards,
Samuel

Hi! @Zethson Please may I have some assistance with this too? I note that this issue has been closed 3 weeks ago, but it is still happening for me using a fresh install of pertpy.
ImportError Traceback (most recent call last) Cell In[1], line 9 7 import matplotlib.pyplot as plt 8 import mudata as mu ----> 9 import pertpy as pt
File /scbio4/home/samuel/miniforge3/envs/py3116-env/lib/python3.11/site-packages/pertpy/init.py:19 17 from . import plot as pl 18 from . import preprocessing as pp ---> 19 from . import tools as tl
File /scbio4/home/samuel/miniforge3/envs/py3116-env/lib/python3.11/site-packages/pertpy/tools/init.py:24 22 print("[bold yellow]To use sccoda or tasccoda please install ete3 with [green]pip install ete3") 23 else: ---> 24 raise e
File /scbio4/home/samuel/miniforge3/envs/py3116-env/lib/python3.11/site-packages/pertpy/tools/init.py:18 15 from pertpy.tools._scgen import SCGEN 17 try: ---> 18 from pertpy.tools._coda._sccoda import Sccoda 19 from pertpy.tools._coda._tasccoda import Tasccoda 20 except ImportError as e:
File /scbio4/home/samuel/miniforge3/envs/py3116-env/lib/python3.11/site-packages/pertpy/tools/_coda/_sccoda.py:12 10 from anndata import AnnData 11 from jax import random ---> 12 from jax.config import config 13 from mudata import MuData 14 from numpyro.infer import Predictive
ImportError: cannot import name 'config' from 'jax.config' (/scbio4/home/samuel/miniforge3/envs/py3116-env/lib/python3.11/site-packages/jax/config.py)
Thank you so much!
Best Regards, Samuel

Hi again, just to update that I managed to solve this by compiling the latest version of pertpy instead of using pip install. Thank you!

Sorry about that. We ll make a release ASAP

@SamuelCWJ how do you compile the latest version? I'm hitting the same error.

@SamuelCWJ how do you compile the latest version? I'm hitting the same error.

Hi @spatts14 ,
I followed their instructions here: https://pertpy.readthedocs.io/en/latest/installation.html
$ curl -OJL https://github.com/theislab/pertpy/tarball/master
Extract the files from the tar.gz folder
$ cd (into the extracted folder)
$ pip install .

You can also just git clone the main branch and don't have to download/extract the tar ball.
Again, sorry about this - release ASAP!

Thank you both!

how to fix this "ImportError: cannot import name 'config' from 'jax.config'"

@spatts14 @Zethson, how to fix this "ImportError: cannot import name 'config' from 'jax.config'"?

@majmal7 please install from the main branch as outlined here. A new release will happen within the next 3-7 days.


Track updates to relationships in all related tables

bring in the developments from advocacy-tracker-server
https://github.com/dumparkltd/advocacy-tracker-server/pull/53
https://github.com/dumparkltd/advocacy-tracker-server/pull/57

This was resolved by 19d5be9 and 1a46511


Improvements to REPL testing and the addition of dummy_run to accompany it

The original test always returned Ok(())
Negative test could not be added because of this
In addition, DummyVM::run() is constrained by the trait.rs and cannot have a return value
That's why, I made a dummy_run() method for REPL test
I've made some changes to accommodate this

great


[Feature-Request] Multi-cam calibration

Start with the why:
We first need multi-cam extrinsics calibration script in order to develop demos like:

Multi-cam pointcloud alignment/fusion
Multi-cam image stitching
Multiple OAK cam stereo vision

Move to the what:
Develop a calibration script that would estimate camera extrinsics (translation/orientation of one cam based to the other). I believe our calibration.py script already does something similar with the help of charuco board, so that would be worth investigating. Also investigate using target-free calibration, eg. using LoFTR and using multiple sensors on the OAK camera.

Done: Multi-cam calibration

hey, when I try to run this code, I am able to start up the cameras, and I can select which camera with the keys. But as soon as I press 'p', the script gets stuck in the 'capture still image' loop. I tried different positions of the checkerboard en made sure nothing was moving in the background, but without luck. Is there anything that could be going wrong there?

Hi @JarlLemmens , could you provide any output logs from the terminal?

@Erol444
Found 2 devices [1844301051E6620F00] [<IP_ADDRESS>] [4.931] [ColorCamera(0)] [warning] Unsupported resolution set for detected camera OV9782, needs 800_P or 720_P. Defaulting to 800_P === Connected to<PHONE_NUMBER>E6620F00 [184430105130630F00] [<IP_ADDRESS>] [4.901] [ColorCamera(0)] [warning] Unsupported resolution set for detected camera OV9782, needs 800_P or 720_P. Defaulting to 800_P === Connected to<PHONE_NUMBER>30630F00 Selected camera 1 capturing still did not recieve still image - retrying capturing still did not recieve still image - retrying capturing still did not recieve still image - retrying capturing still did not recieve still image - retrying capturing still did not recieve still image - retrying capturing still did not recieve still image - retrying capturing still did not recieve still image - retrying capturing still did not recieve still image - retrying capturing still

@Erol444
Found 2 devices
[1844301051E6620F00] [<IP_ADDRESS>] [4.931] [ColorCamera(0)] [warning] Unsupported resolution set for detected camera OV9782, needs 800_P or 720_P. Defaulting to 800_P
=== Connected to<PHONE_NUMBER>E6620F00
[184430105130630F00] [<IP_ADDRESS>] [4.901] [ColorCamera(0)] [warning] Unsupported resolution set for detected camera OV9782, needs 800_P or 720_P. Defaulting to 800_P
=== Connected to<PHONE_NUMBER>30630F00
Selected camera 1
capturing still
did not recieve still image - retrying
capturing still
did not recieve still image - retrying
capturing still
did not recieve still image - retrying
capturing still
did not recieve still image - retrying
capturing still
did not recieve still image - retrying
capturing still
did not recieve still image - retrying
capturing still
did not recieve still image - retrying
capturing still
did not recieve still image - retrying
capturing still
and this goes on indefinitely

Hi @JarlLemmens , I just tested it, and it works as expected for me, both USB/POE, IMX378 and OV9782... Could you capture a video of this?

https://github.com/luxonis/depthai/assets/64595463/70e43015-f001-46c5-9352-d5c46ba441df

capturing-image-still.zip
uploading the video directly said it was corrupted, so hopefully it works like this

Hi @JarlLemmens , that is strange.. Have you changed the code at all? If not, could you try running RGB camera control example and try pressing c to capture still image, and check whether you get the still image back to the computer?

@Erol444 nope, I didn't change anything, just the config. I will try this monday morning, thanks

So looking at the code, it might be that you never get the still frame within 1 sec, and then it just clears queue. Could you check your bandwidth, latency, and do POE test?

Hi @JarlLemmens , then that would be the culrpit of the issue. Could you change the switch with something that would work normally? As otherwise you'll have a bunch of issues with messages being dropped down the road.

@Erol444 at the moment this is our only option while we're looking into better options.. would there be a way to calibrate from images?

@JarlLemmens  one option would be to rather take .isp output and constantly stream it to the host, isntead of sending still frames back. Then when user clicks on p, you just take latest frame that arrived to the host (as many of them will just be dropped). Perhaps also implement video encoding (MJPEG) to preserve bandiwdth (it's already used for still frames).

@Erol444 How would I approach to implement this latest frame idea? If I make sure nothing moves in the frames, this shouldnt be an issue I'd say. We're currently only interested in getting the calibration mapping from camera to camera.

so instead of linking camRgb.still to videoEnc, link camRgb.isp. Then you should always receive frames in the queue, and then you can remove sending still message, and also remove that tryGetAll() to clear messages, as you just want to receive latest. When creating queue you should have it as nonblocking and size=1 (as per docs here).

@Erol444 Soo, I tried to change the things you mentioned, just to confirm I did the right steps:
self.still_queue = self.device.getOutputQueue(name="still", maxSize=1, blocking=False) in line 17 of the camera.py file
I kept this the same, as it is size 1 and nonblocking.
in line 64, I changed
cam_rgb.still.link(still_encoder.input) to cam_rgb.isp.link(still_encoder.input)
in line 89, I commented out self.still_queue.tryGetAll(). I tried both without this line at all or changing it to self.still_queue.tryGet()
In both cases I get an output that says
[1844301051E6620F00] [<IP_ADDRESS>] [5.131] [VideoEncoder(2)] [warning] Arrived frame type (2) is not either NV12 or YUV400p (8-bit Gray)
[1844301051E6620F00] [<IP_ADDRESS>] [5.161] [VideoEncoder(2)] [warning] Arrived frame type (2) is not either NV12 or YUV400p (8-bit Gray)
[1844301051E6620F00] [<IP_ADDRESS>] [5.194] [VideoEncoder(2)] [warning] Arrived frame type (2) is not either NV12 or YUV400p (8-bit Gray)
[1844301051E6620F00] [<IP_ADDRESS>] [5.227] [VideoEncoder(2)] [warning] Arrived frame type (2) is not either NV12 or YUV400p (8-bit Gray)
etc etc
and the capturing image still issue continues to be the same. Should I change something else anywhere as well?

@Erol444 also, I checked with a single usb camera (so without the switch), and this works as it should, so the switch is definitely the culprit

@Erol444 I managed to just load a png image I stored earlier as input for the estimate pose function, which is giving me the matrices. Only when interpreting the results I am still getting an offset of +- 10 cm.
So I have an object point in pixel space with a measured depth (aruco marker) for each of the cameras.
I want to be able to transform these based on the extrinsic information so I would get the same x,y,z information from both cameras. My approach was to convert these (u,v,z) points to (X,Y,Z) space using the individual camera intrinsics, and then using the cam_to_world matrices to move both points to the same origin. But this gives the large offset. Would there be something going wrong here?

Hi @JarlLemmens , Not sure, this seems like opencv issue that it didn't estimate the pose correctly, perhaps high-res images provide better accuracy?

@Erol444 but the approach to go from image coordinates to camera space (by using inverse of intrinsic matrix) and only then use the cam_to_world matrix to go to world coordinates, if I do this for both cameras, they should end up to be the same right? or at least very close

@JarlLemmens  Yes, that's the idea. If you are fusing pointclodus, then you'd also want to use pointcliud registration (eg. ICP) afterwards, so it's more accurate.


I want install cordova : npm install g- cordova

npm ERR! code E404
npm ERR! 404 Not Found: g-@latest
npm ERR!      C:\Users[MynameComputer]\AppData\Roaming\npm-cache_logs\2017-11-23T17_10_36_232Z-debug.log

This is not cordova repository, but you probably need to put the dash before g:
npm install -g cordova


Remove services:registrator in gradle setting

Since services:registrator is removed, we need to remove from the
gradle setting. If it is still there, import openwhisk project
as a gradle project will raise an error in eclipse.

Deferring to @markusthoemmes.

LGTM

@markusthoemmes I lost track of the story with registrators and consul health. Do we still use registrators but pull some public image?

@ioana-blue yep, on spot. We don't build the image ourselves anymore (we never really did i think). This just removes a dead link.

merged 8bea78bd9a614516ef51d348af5cacaac0799503


Send codes independently of the state

I have different RF outlets to control lights at home. Those outlets can be controled with the help of your plugin from HomeKit or directly with their remote control.
If the outlet is ON and I switch it off from the remote control, Homekit shows it as On (what is normal as there is no two-way communication).
If now I ask Siri "Switch on the lamp", I receive a message in the console from the plugin saying that the accessory is already on and does not send the code to switch it on, so I have to switch it on again from the remote control.
Is there any way that we can bypass the status control when giving the order directly with Siri for certain accessories?  This will allow me to send the on or off codes independently from the state using Siri.
Many thanks

I have this very same issue, and to make it worse, if homebridge drops its connection, as it seems to do often, and you send the "off" command, Siri will toggle the switch, but obviously the light has not responded, once homebridge gets its connection back, asking Siri to turn the light off again, will respond in no action taken as she thinks the light is already off, but clearly to me, its still on, I must ask her to turn the light on, then off in order to recover.
I'm not sure what devices other people are using, but none of my RF devices can send status back to Homebridge.
If I could fit a sensor to the active and neutral wires of the actual light and send a signal back to Homebridge to update the "real" status then this would be fantastic, but I don't see this as an easy task.
If I use Alexa, this problem doesn't happen, as she does not give a rats backside what state the light/switch is in, she will send the command you have asked her to send.
Is there a signal that we can we can send to Homekit say status "Unkown"
Below is the error I get when I switch the light on from the wall or its remote and I ask Siri to turn it off:
[2018-7-3 05:18:13] [Broadlink RM] Cinema Room setSwitchState: false
[2018-7-3 05:18:13] [Broadlink RM] Cinema Room setSwitchState: already false (no data sent - B)

I am also looking for a solution to this. I have the same problem if I use the RF remote for my ceiling fan/light combo.

Try adding ‘“allowResend”: true’ to your commands.
This works for me. Give it a shot.

Awesome, will give this a shot, were did you find the reference for this?

It works perfectly. Thanks a lot. :-)
I couldn't find information about any property with that purpose.
Many thanks again.

I could only find reference to this command in an old issue that was created. I didn’t see anything about it in the plugin documentation.
https://github.com/lprhodes/homebridge-broadlink-rm/issues/176

Hello guys! Any news on “allowResend”: true, for window covering?

Works for my lights and switches, but I have no idea if it works for blinds.
I think this is abandon-ware as there has been no updates on anything that I'm aware of, I'm slowly moving everything over to native Homekit control as reliance on these plugins can be a little challenging, specially if Homebridge gets a major update and things start to break.
Happen to my Yeelights twice, Domiticz adn my Harmony hubs have never worked after that plugin broke.

“allowResend”: true works for fans as well. Great!
For window coverings, i'm afraid not since the logic to control blinds this plug in uses is time based to remember the current blind position. So previous value should be referred to every time a command is made.

OK. Great.  allowResend - it would be nice to know where to put this without guessing.  Does it go in each accessory or can I put it at the level with the platform to globally set it, because it seems like this should be a default since no IR devices I've seen talk back.

For anyone else finding themselves here - it goes inside each accessory.


Consider making class OpenTelemetrySink public.

Consider changing access modifiers of class OpenTelemetry Sink with its dependent types from internal to public.

Can you provide some more details about why you are making this suggestion @rachwal ? Is there some specific thing you are trying to do that you want to share?

The LoggerSinkConfiguration.Wrap() function provides most of what was originally done using public sink types. We've managed to eliminate them in most other Serilog sinks because of the added difficulty of maintaining them, I don't think we'd want to vary that here without really strong reasons.

I'll try using LoggerSinkConfiguration.Wrap() within our wrapper library to see if this satisfies the use case. (FYI, @rachwal.)

Added this as a 1.0.0 milestone issue for now. If suggested method works, this can be closed/removed.

The logging configuration method can be used for this use case; consequently, there's no need to make the OpenTelemetrySink class public.


Under docs, create relevant PR template

Is your feature request related to a problem? Please describe.
Similar to https://github.com/FORTH-ICS-INSPIRE/artemis/blob/master/docs/pull_request_template.md
Should be related to what you have already done here https://github.com/FORTH-ICS-INSPIRE/artemis-web/tree/master/.github/ISSUE_TEMPLATE, but put the PR template in docs after needed modifications.

Different ways to enable that: https://docs.github.com/en/github/building-a-strong-community/creating-a-pull-request-template-for-your-repository


Way to set Tab Indicator Height?

I want to make my Tab Indicator line thicker.  Is there a way to set the Tab Indicator Height?

I am looking for the same issue to solve.

Me too.

I am also looking for the same thing. How to change the height of indicaor.


@matrixmayhem if you have the first message sent, the rephrase prompt will not be used. When you have a 2nd message sent, then it will be used.

          @matrixmayhem if you have the first message sent, the rephrase prompt will not be used. When you have a 2nd message sent, then it will be used.

Originally posted by @HenryHengZJ in https://github.com/FlowiseAI/Flowise/issues/1742#issuecomment-1952745253
I have tired it with multiple message and it still uses the user mesage instead of the 'rephrased message'. This problem has started after the update to the "Conversational Retrival QA Chain" node.

Your chat doesn't have a memory node. Add a simple memory node, and you'll see the chat_history value include prior messages.

Do you have screenshots from the prior version where this was working? Or can you rollback and show screenshots of the prior node working as you're expecting it to?

Corrected spelling and grammar:
"I installed version 1.3.9 and it behaved exactly as it should. Here are the screenshots:
The second question, "Who is Luke?" gets rephrased and asked as, "Can you please provide more information on who Luke is?"
Then the third question is asked, "Who is his father?" gets rephrased and asked as, "Who is Anakin Skywalker?" (screenshot attached below):
The problem in version 1.5.0 is that the question does get rephrased but is not passed to the language model. This is clearly a bug. What's the point of this intermediate step of rephrasing the question if it is not passed to the language model?"

@matrixmayhem Thanks for the additional information. That has helped me identify that the QA chain was working up to at least version 1.4.9.

the rephrased question get passed to vector store to get relevant context, not LLM
1.) Rephrased question:

2.) Vector Retriever:


Kam ji-tian

Coverage increased (+56.7%) to 94.505% when pulling c65a5a5efc282de6c1864328e1ff47acb0eb7ecc on Kam-jitian into 3d3ca58bb8dc8fcbd6d282fe333122388af964df on master.

Coverage increased (+56.7%) to 94.505% when pulling c65a5a5efc282de6c1864328e1ff47acb0eb7ecc on Kam-jitian into 3d3ca58bb8dc8fcbd6d282fe333122388af964df on master.


Needs proper documentation!

The example code is useful but barely scratches the surface of any kind of practical application. Documentation definitely needed.

I agree, considering this is fairly new I still have to come around doing it. Some code is documented but not all of it, at the moment I would look into the tests, they are good examples also.

Thanks for the reply @ZehMatt and great work on your project, btw :)


google authenticator with juniper (pulse secure ) ssl vpn

Hi ,
i have configured the free radius to work with google authenticator, radtest is also working fine.
configured radius auth server at Juniper ssl vpn server pointing to free radius server.
for user login , if user enters the password as <password + verfication code> as a string authentication works fine.
however we want to have a secondary prompt for google authenticator verification  code  is there any extra config require at PAM,
/etc/pam.d/radiusd has the following entries-
auth requisite pam_google_authenticator.so forward_pass
auth required pam_unix.so use_first_pass
what about the new users, how do they scan the qr code first times? currently i created one user from the ubuntu machine and scanned it from the console only.
we want our vpn box to present the qr code to new user and user then scan it and then should be able to login.

if user gives password as <password + verification code > as a string it works, need to have challenge for verification code after the password.

user gives password as password+verification code from google auth app, it works.

Key distribution is not really in scope for this project.
Key distribution is a general problem, and there are many solutions. You could create a website where username/password is enough, that provisions the secret and shows the QR code. Or your use a human to help people set up their accounts. It's up to you.
The PAM module can be used for SSH logins, where it's only used if they've set it up. And then you could have a policy that they have to set it up.

is there anyway it can send an access-challenge packet ? asking user to enter the verification code on the secondary prompt , we are not using ssh , its a web login to ssl vpn.

I don't know if that's possible with PAM and/or radius. I'd doubt it.

is there any other platform we can install google authenticator... windows?

You may be able to run it in a development environment. I don't know. Also not sure what you mean to accomplish by it.
It may be better to get someone to write a small windows tool for you. The TOTP/HOTP algorithms are completely open, so it should not be much work.


Stronger modeling of boolean CLI flags

We have a bunch of build flags (daemon, parallel, configure-on-demand, build cache, etc) that should all work the same way and consistently.
Expected Behavior
Avoid recurrence of bugs like #1827
Current Behavior
Each boolean flag is implemented ad-hoc.
Context
From Adam in #1828:

it would be much better to model these using a type that represents a build flag and have command-line handling and property handling use this information to consistently implement support for build flags.

I recently hit a case where I needed to know whether or not --no-build-cache was present. In other words, was caching explicitly disabled or just not explicitly enabled? Currently, we encode the default enabled-ness for build cache into StartParameter. It would likely be better to have this elsewhere and have StartParameter (and similar) just represent the inputs (i.e. separate the transform to effective inputs to be somewhere else).


Documentation - PromQL queries timeout / PromQL queries optimization

Proposal
as a user, I need to be able to configure the timeout for promql queries.
This can help prevent crashing prometheus on graph queries (OOM when data is quite large/has high cardinality)
https://github.com/prometheus/prometheus/issues/4414 -> indicates some limits are in place, but no mention on how can the user control them.
as a user, I need to know the best practises for optimising PromQL queries (that either take too long, or get killed by the default OOM for prometheus queries)

how do I limit the metrics that have high cardinality, so that only matching labels are used (?)
how do I best operate on several metrics on a single query? is there a way to first extract  the subset of metrics using the exactly-matched-by-label ones (single point) and then operate between them?

As a user, I need to find out the implications of remote read/writes on a prometheus server:

Does this mean that the server will have "current" in memory metrics, and use the "remote storage" for persisting to disk and reading times older than the ones allocated in memory?
How is a complex query for old data handled? Will prometheus wait for a response from the remote storage raw-data and then start processing -in-memory- or will the remote-storage provide the resulting vectors/points from the query so prometheus only adds this results to its in-memory data?

Hello from the bug scrub.
Timeouts per query have been implemented a while ago, see https://prometheus.io/docs/prometheus/latest/querying/api/#instant-queries (timeout query parameter).
The other questions are more subtle to answer. We would like to defer to discussions on the internet.


Don't get the same output and it terminates immediately

I don't get the same output as you and it terminates immediately. I use cc65 (2.16-2) installed using apt from most updated Ubuntu 18.04 from Microsoft Store running in WSL on Windows 10. Note: make also builds rom.bin without needing make rom.bin.
$ cpu6502
Initializing memory with 16384 bytes
Resetting CPU. PC=c000
Infinite loop!
26764730 instructions executed

Thank you for your comments. The program is actually simulating correctly, but I had disabled the trace output.
I've now updated the README (to note that rom.bin is automatically built) and re-enabled the trace output.


Text going outside of text boxes

Not sure what caused it.

Couldn't replicate, but it might be fixed now
c20a64f8687c6d714015e54780541b8935fcc6f0


Health endpoint cannot be selected in policies

Despite https://github.com/cilium/cilium/commit/839030549275119406c9f9f859a3bd90afa1d138, the health endpoint cannot be selected in policies with an endpointSelector:
$ cat health.yaml
apiVersion: "cilium.io/v2"
kind: CiliumClusterwideNetworkPolicy
metadata:
  name: "cilium-health-checks"
spec:
  endpointSelector:
    matchLabels:
      reserved: health
  ingress:
    - fromEntities:
      - world
$ cilium policy get
[
  {
    "endpointSelector": {
      "matchLabels": {
        "any:reserved": "health"
      }
    },
    "ingress": [
      {
        "fromEntities": [
          "world"
        ]
      }
    ],
    "labels": [
      {
        "key": "io.cilium.k8s.policy.derived-from",
        "value": "CiliumClusterwideNetworkPolicy",
        "source": "k8s"
      },
      {
        "key": "io.cilium.k8s.policy.name",
        "value": "cilium-health-checks",
        "source": "k8s"
      },
      {
        "key": "io.cilium.k8s.policy.uid",
        "value": "f19c1a4d-f0b2-458d-aeb2-c014273368eb",
        "source": "k8s"
      }
    ]
  }
]
Revision: 2
$ cilium endpoint list | grep health
343        Disabled           Disabled          4          reserved:health                                   fd00::9636   <IP_ADDRESS>   ready
$ sudo cilium bpf policy get 343
POLICY   DIRECTION   LABELS (source:key[=value])   PORT/PROTO   PROXY PORT   BYTES   PACKETS
Allow    Ingress     reserved:unknown              ANY          NONE         0       0
Allow    Ingress     reserved:host                 ANY          NONE         8604    93
Allow    Ingress     reserved:remote-node          ANY          NONE         0       0
Allow    Egress      reserved:unknown              ANY          NONE         7248    81

:facepalm: André pointed out that the policy is incorrect and should be:
apiVersion: "cilium.io/v2"
kind: CiliumClusterwideNetworkPolicy
metadata:
  name: "cilium-health-checks"
spec:
  endpointSelector:
    matchLabels:
      "reserved:health": ""
  ingress:
    - fromEntities:
      - world

We should add this as an example in https://docs.cilium.io/en/latest/policy/kubernetes/#clusterwide-policies and link to it from https://docs.cilium.io/en/latest/policy/intro/#policy-enforcement-modes (this policy is mostly useful to folks using enable-policy=always).

@pchaigno I can confirm this is working after making the changes above.
Previously we saw:
Cluster health:                                1/5 reachable   (2021-02-03T11:10:39Z)
Node        Endpoints
reachable   unreachable
reachable   unreachable
reachable   unreachable
reachable   unreachable

After the change, the cilium health endpoints are now reachable as you can see below.
 ./k8s-cilium-exec.sh cilium status
KVStore:                Ok   Disabled
Kubernetes:             Ok   1.18+ (v1.18.9-eks-d1db3c) [linux/amd64]
Kubernetes APIs:        ["cilium/v2::CiliumClusterwideNetworkPolicy", "cilium/v2::CiliumEndpoint", "cilium/v2::CiliumNetworkPolicy", "cilium/v2::CiliumNode", "core/v1::Namespace", "core/v1::Node", "core/v1::Pods", "core/v1::Service", "discovery/v1beta1::EndpointSlice", "networking.k8s.io/v1::NetworkPolicy"]
KubeProxyReplacement:   Probe   [eth0 (Direct Routing)]
Cilium:                 Ok      OK
NodeMonitor:            Listening for events on 4 CPUs with 64x4096 of shared memory
Cilium health daemon:   Ok
IPAM:                   IPv4: 11/19 allocated,
BandwidthManager:       Disabled
Host Routing:           Legacy
Masquerading:           IPTables
Controller Status:      60/60 healthy
Proxy Status:           OK, ip <IP_ADDRESS>, 0 redirects active on ports 10000-20000
Hubble:                 Ok              Current/Max Flows: 4096/4096 (100.00%), Flows/s: 46.51   Metrics: Ok
Cluster health:         3/3 reachable   (2021-02-08T13:54:37Z)

KVStore:                Ok   Disabled
Kubernetes:             Ok   1.18+ (v1.18.9-eks-d1db3c) [linux/amd64]
Kubernetes APIs:        ["cilium/v2::CiliumClusterwideNetworkPolicy", "cilium/v2::CiliumEndpoint", "cilium/v2::CiliumNetworkPolicy", "cilium/v2::CiliumNode", "core/v1::Namespace", "core/v1::Node", "core/v1::Pods", "core/v1::Service", "discovery/v1beta1::EndpointSlice", "networking.k8s.io/v1::NetworkPolicy"]
KubeProxyReplacement:   Probe   [eth0 (Direct Routing)]
Cilium:                 Ok      OK
NodeMonitor:            Listening for events on 4 CPUs with 64x4096 of shared memory
Cilium health daemon:   Ok
IPAM:                   IPv4: 13/21 allocated,
BandwidthManager:       Disabled
Host Routing:           Legacy
Masquerading:           IPTables
Controller Status:      62/62 healthy
Proxy Status:           OK, ip <IP_ADDRESS>, 0 redirects active on ports 10000-20000
Hubble:                 Ok              Current/Max Flows: 4096/4096 (100.00%), Flows/s: 48.98   Metrics: Ok
Cluster health:         3/3 reachable   (2021-02-08T13:54:47Z)

KVStore:                Ok   Disabled
Kubernetes:             Ok   1.18+ (v1.18.9-eks-d1db3c) [linux/amd64]
Kubernetes APIs:        ["cilium/v2::CiliumClusterwideNetworkPolicy", "cilium/v2::CiliumEndpoint", "cilium/v2::CiliumNetworkPolicy", "cilium/v2::CiliumNode", "core/v1::Namespace", "core/v1::Node", "core/v1::Pods", "core/v1::Service", "discovery/v1beta1::EndpointSlice", "networking.k8s.io/v1::NetworkPolicy"]
KubeProxyReplacement:   Probe   [eth0 (Direct Routing)]
Cilium:                 Ok      OK
NodeMonitor:            Listening for events on 4 CPUs with 64x4096 of shared memory
Cilium health daemon:   Ok
IPAM:                   IPv4: 13/21 allocated,
BandwidthManager:       Disabled
Host Routing:           Legacy
Masquerading:           IPTables
Controller Status:      62/62 healthy
Proxy Status:           OK, ip <IP_ADDRESS>, 0 redirects active on ports 10000-20000
Hubble:                 Ok              Current/Max Flows: 4096/4096 (100.00%), Flows/s: 13.01   Metrics: Ok
Cluster health:         3/3 reachable   (2021-02-08T13:55:00Z)

FYI I had to use all instead of world or health in order to get it to work on my setup 🤔
At first sight seems it seems to be similar in terms of specs:

EKS 1.18.9
Cilium 1.9.4
ENI IPAM mode

Aside of that the masquerading is disabled on my end, not sure if this could be related.

Oh, sorry. The ingress rule I posted wasn't complete. I mostly wanted to show an example endpointSelector for the health endpoint.
Presumably, you would need to allow L3 from remote-node at a minimum, maybe also from other health endpoints.


Update the game over message

update the game over message so people kwon how to play again

i have a lmr ,is me to create this repository


Fix cert reissue when L/OU is not set

get_certificate_primitives complains for None Location or Organizational Unit. These are optional fields that were added to CertificateOutputSchema

Coverage decreased (-0.003%) to 59.161% when pulling 788703ce12b9e3783fe6cd3ce00d3ebf98caf9e3 on charhate:ecc_changes into ea33fe997941cd3dd208a7b82a75f58a62ad4188 on Netflix:master.


[Core]SByteCreate(sbyte.MinValue) failing in nightly runs

Core nightly test runs are failing with:

Error message
Expected: 0
But was:  2152
Stack trace
at Azure.MemoryWatch.Validate() in /Users/runner/work/1/s/sdk/core/Azure.Core.Experimental/tests/Variant/MemoryWatch.cs:line 92
at Azure.MemoryWatch.Dispose() in /Users/runner/work/1/s/sdk/core/Azure.Core.Experimental/tests/Variant/MemoryWatch.cs:line 87
at Azure.StoringSByte.SByteCreate(SByte testValue) in /Users/runner/work/1/s/sdk/core/Azure.Core.Experimental/tests/Variant/StoringSByte.cs:line 36

at Azure.MemoryWatch.Validate() in /Users/runner/work/1/s/sdk/core/Azure.Core.Experimental/tests/Variant/MemoryWatch.cs:line 92
at Azure.MemoryWatch.Dispose() in /Users/runner/work/1/s/sdk/core/Azure.Core.Experimental/tests/Variant/MemoryWatch.cs:line 87
at Azure.StoringSByte.SByteCreate(SByte testValue) in /Users/runner/work/1/s/sdk/core/Azure.Core.Experimental/tests/Variant/StoringSByte.cs:line 31

For more details check here:

https://dev.azure.com/azure-sdk/internal/_build/results?buildId=2175425&view=results

@jsquire for notification.

@annelo-msft :  Not sure if this is related to the JsonData work.  Do you mind taking a look?

It looks like it's in the Value type, not DynamicJson or related.
Since it's hasn't reproed in a week, I'm closing, but if it comes back we can look into it more closely.


"conditional expression is constant" warnings due to using if where if constexpr is appropriate

There are 3 places in sparse_hash.h where MSVC gives the aforementioned warning (with /W4 level which is my default). All the conditions are indeed purely compile-time and should be replaced with constexpr. Will you accept a pull request if I fix this?
For example: if (sizeof(unsigned int) == sizeof(std::uint32_t))

Yes, that would be an useful fix. The lib was developed before C++17 if constexpr  and I just used a simple if to avoid std::enable_if at the time.
Could you keep the C++11/14 backward compatibility and only enable the change for C++17 and above (I should start to think to remove support for < C++17 though...)?
Thanks

That's a good point, I didn't consider the need to support older compilers. In that case, I think, either #ifdef is required, or the old trick with bool const_condition(bool cond) { return cond; } - this will not generate the warning in debug, and should still be optimized away in release.


added not query

part of #97

Not query is deprecated https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-not-query.html


Pass AEM version to execution

Some rules are only applicable for specific versions of AEM which translates to specific versions of Sling & OSGI.
Check whether it is possible to pass during execution a variable to conditionally turn on/off specific rules.
--aemVersion=6.4

Merged to master, closing.


Create toggle on/off for email signature

I noticed this while testing on dmptool stage. Now that we changed the functionality for the request feedback emails we need to be able to disable the signature currently applied to all emails that tells users they can change their notification preferences. In this case they can't opt not to receive this email since it goes to the main org contact no matter what.

I just tested this on roadmap-staging but the email to admins of a plan request still has the configuration options on.

The email out to users that their plan has been submitted was unusually brief, but maybe the text was intentionally adjusted as this is a staging / test area?

It looks like you just need to switch off the signature for the email to admins of a request for feedback  @briri . that's the only email message where we don't want the signature currently.
@sjDCC the second email to users in your screenshot above contains whatever text is entered for your Org on the Org details page. so likely just brief testy text, yes.

functionality and email all working as expected now. closing issue.

Reopening for verification after git cherry-pick

still good. closing again.


[BUG] Deprecated Import from "langchain/schema"

Describe the bug
After updating Flowise to version 1.6.0, a warning appeared in the output, stating:
[WARNING]: Importing from "langchain/schema" is deprecated.
Instead, please import from the appropriate entrypoint in "@langchain/core" or "langchain".
This will be mandatory after the next "langchain" minor version bump to 0.2.

To Reproduce
Steps to reproduce the behavior:

Update Flowise to version 1.6.0.
Run the command npx flowise start.
Observe the console output to receive the warning mentioned above.

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.

Flow
If applicable, add exported flow in order to help replicating the problem.
Setup

Installation: npx flowise start
Flowise Version: 1.6.0
Operating System: Windows
Browser [e.g. chrome, safari]

Additional context
Add any other context about the problem here.

resolved via this PR


How to install it in Swift project?

As I know, Using _Bridging_Header.h just is necessary in Object-C project.
I tried to put the HTMLParsing.swift and HTMLNode.swift files to my Swift project but it didn't work.
:(
Thanks your nice project, help me a lot.
XD

Well, please use it. :D
https://github.com/zootreeves/Objective-C-HMTL-Parser


fix: 修复 adjust-color label layout 对一些颜色不生效的问题

Checklist

[ ] npm test passes
[ ] tests and/or benchmarks are included
[ ] commit message follows commit guidelines

Description of change

补上单侧～

补上单侧～

合并，记得关闭一下相关 issue。


electrocatalytic, corrosiveness

This pull request was generated by the 'mq' tool
[test]
flake rate: 0.4
logical conflict every: 100
sleep for: 300s
[pullrequest]
requests per hour: 30
deps=[c,e]

/trunk merge


fix(pageserver): hack image layer key range for btm-gc-compaction

Problem
This is a newly-discovered issue and does not fix benchmark 2 CI job failing.
part of https://github.com/neondatabase/neon/issues/8002
Summary of changes
Due to the limitation of the current layer map implementation, we cannot directly replace a layer. It's interpreted as an insert and a deletion, and there will be file exist error when renaming the newly-created layer to replace the old layer. We work around that by changing the end key of the image layer. A long-term fix would involve a refactor around the layer file naming. For delta layers, we simply skip layers with the same key range produced, though it is possible to add an extra key as an alternative solution.
Checklist before requesting a review

[x] I have performed a self-review of my code.
[ ] If it is a core feature, I have added thorough tests.
[ ] Do we need to implement analytics? if so did you add the relevant metrics to the dashboard?
[ ] If this PR requires public announcement, mark it with /release-notes label and add several sentences in this section.

Checklist before merging

[ ] Do not forget to reformat commit message to not include the above checklist

I'll refactor this PR to avoid hacks on the key range. The algorithm will simply skip producing a layer if a layer of the same persistent key is found.

In reality, it's low chance to produce a layer of the same persistent key. We will implement layer splitting based on size anyways. If there are changes in size, it's likely that we will have a different key range.
It does not affect correctness if we choose not to replace a layer with a newly-generated one if they have the same key.

Updated the PR to skip the delta+image layers. Still need to image layer hack to ensure it's not recognized as an L0 layer, but the key range is always the same (MIN..MAX-1).

Looking at the logic around Layer::is_l0,
    pub(self) fn insert_historic_noflush(&mut self, layer_desc: PersistentLayerDesc) {
        // TODO: See #3869, resulting #4088, attempted fix and repro #4094

        if Self::is_l0(&layer_desc.key_range) {
            self.l0_delta_layers.push(layer_desc.clone().into());
        }

        self.historic.insert(
            historic_layer_coverage::LayerKey::from(&layer_desc),
            layer_desc.into(),
        );
    }

There are multiple places where we don't check if the layer is a delta at all before we do some operation. I think we need a separate pull request to refactor is_l0 to take an extra parameter (i.e., is_image), or make it take a persistent key, so that it returns a correct result.
I prefer to do it in another pull request and then revert the image layer key hacks in this one (the 3 lines that generate the hacky image range).

If the bottommost compaction code is re-producing existing layers with same contents, it's a bug that should be fixed properly, not via hack.
If there's a problem with concurrently running compaction, can we just make them mutually exclusive for now?

There is a third possibility that the compaction code is removing more garbages from existing layers. Let's label this case as (3).

This could happen now because we didn't implement the layer-selection optimization and the auto trigger, which means that if retain_lsn is not changed, and if we trigger the compaction manually, it might run on exactly the same data and produce the same layers.
For this case, I've added gc + compaction lock guard before starting the compaction, so it should not happen any more. We can optimize it not to hold the locks in the future so that legacy compaction can run along with gc-compaction.
In this case, we should generate a new layer to remove stale data (i.e., when user deletes a branch and retain_lsn changes), but for now, this only happens when the pageserver restarts and gets a new generation number. Also after I implement the split delta+image layer by size functionality, the chance of getting the same persistent key should be low.

resolved merge conflicts and ready for review again :)

...updated the PR body, thanks for the reviews :)


Upon automatic re-connect after a connection outage, a failure to automatically log back in does not update mLoggedInUserId and the Meteor class will therefore still think you are logged in

To replicate this issue, log in to the same user account with two different devices (one being an Android device using Android-DDP).  Configure your logout to use the Meteor.logoutOtherClients() method which will log out all devices for a certain account when one of the devices logs out.  Now, log out on your account on the non-Android device.  Due to the logout configuration stated above, the logout on the non-Android device will cause the Android device to be logged out.  When the Android device gets logged out, its DDP connection is lost and the Android-DDP library gracefully re-establishes the connection.  However, the login token is no longer valid and Android-DDP can't automatically log the Android device back in.  In this circumstance, the mLoggedInUserId field is not cleared and the Meteor class will still return true when isLoggedIn() is called.

Thank you so much!
Please see the following commit: https://github.com/delight-im/Android-DDP/commit/8f95c38f47fdcd12f644cf953205401675655530
I've incorporated your fix in a new commit because I thought it would fit into that callback even better -- and the token should probably be cleared as well :)
Does that make sense? Does it work as intended now?

Your commit looks good, and I agree that that is a better spot for the logic.  Thanks for getting that in there!  It works as intended now.