Please Support Parameterized Length

Is your feature request related to a problem? Please describe.
When the use-case is simply something like username or URL disambiguation where you don't need strong uniqueness guarantees.
Describe the solution you'd like
Parameterized Length in CUID 2 https://github.com/paralleldrive/cuid2#parameterized-length
Describe alternatives you've considered
N/A
Additional context
official javascript example of same
import { init } from '@paralleldrive/cuid2';
const length = 10; // 50% odds of collision after ~51,386,368 ids
const cuid = init({ length });
console.log(cuid()); // nw8zzfaa4v

@thibaultmeyer - I was looking at the code and I think this can be made public https://github.com/thibaultmeyer/cuid-java/blob/master/src/main/java/io/github/thibaultmeyer/cuid/CUID.java#L72 for same ... Would you like me to create PR?

Hi @IamManchanda,
This is exactly the solution I chose to meet the request. A new version should be available within 1 or 2 hours on Maven Central.

Great to know @thibaultmeyer 🙏👌🙌

@thibaultmeyer - Please don't mind but did you push it?
as not yet available https://mvnrepository.com/artifact/io.github.thibaultmeyer/cuid as of now
(neither able to install it in my IntelliJ)

@IamManchanda
mvnrepository is not "real time", new version will appear in few hours.
<dependency>
    <groupId>io.github.thibaultmeyer</groupId>
    <artifactId>cuid</artifactId>
    <version>2.0.1</version>
</dependency>

I just try on a dummy project, no problem, IntelliJ download jar from Maven Central.
Downloading from central: https://repo.maven.apache.org/maven2/io/github/thibaultmeyer/cuid/2.0.1/cuid-2.0.1.pom
Downloaded from central: https://repo.maven.apache.org/maven2/io/github/thibaultmeyer/cuid/2.0.1/cuid-2.0.1.pom (6.7 kB at 25 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/io/github/thibaultmeyer/cuid/2.0.1/cuid-2.0.1.jar
Downloaded from central: https://repo.maven.apache.org/maven2/io/github/thibaultmeyer/cuid/2.0.1/cuid-2.0.1.jar (11 kB at 130 kB/s)

So the change to return a "Parameterized Length" simply involves performing a left trim at X characters?  That's a simple string function that can be performed post-CUID without having to upgrade the library, right?

@JamoCA - Now this library supports both these ways to generate CUID v2
final CUID cuid = CUID.randomCUID2();
System.out.println("CUID (Version 2): " + cuid); // default 24 chars

and also
final CUID cuid32 = CUID.randomCUID2(32); // or whatever number you wanna add
System.out.println("CUID (Version 2), 32: " + cuid32); // 32 chars

Yes I will update the readme

Done

Thanks @thibaultmeyer 👍🙏


tifig for Centos

I'm trying to install tifig on Centos 7.
I have installed all dependencies, and the output of running "make" is:

[  2%] Built target h265parser
[  4%] Built target avcparser
[ 88%] Built target common
[ 91%] Built target heifreader
[ 92%] Building CXX object CMakeFiles/tifig.dir/src/main.cpp.o
In file included from /home/gec/tifig/src/loader.hpp:7:0,
from /home/gec/tifig/src/main.cpp:5:
/home/gec/tifig/src/hevc_decode.hpp: In function ‘RgbData decodeFrame(DataVector)’:
/home/gec/tifig/src/hevc_decode.hpp:83:40: error: ‘av_packet_alloc’ was not declared in this scope
AVPacket* packet = av_packet_alloc();
^
/home/gec/tifig/src/hevc_decode.hpp:89:45: error: ‘avcodec_send_packet’ was not declared in this scope
int sent = avcodec_send_packet(c, packet);
^
/home/gec/tifig/src/hevc_decode.hpp:97:49: error: ‘avcodec_receive_frame’ was not declared in this scope
int success = avcodec_receive_frame(c, frame);
^
make[2]: *** [CMakeFiles/tifig.dir/src/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/tifig.dir/all] Error 2
make: *** [all] Error 2

I don't know what's the issue is. It seems like tifig does not support Centos.

hey @peacedyc33 could you shortly paste the version of ffmpeg/libav? My guess is that it is too old and the mentioned functions aren't even there. CentOs tends to be a bit special. E.g. had to alter the PKG_CONFIG_PATH for vips.
Maybe the easiest way would be to get the static binary (attached to each release of tifig).

Do you have any news yet @peacedyc33? As @Flask pointed out, the issue seems to be that your ffmpeg version is too old. tifig requires the quite modern version 3.1, which is probably not available on CentOS 7. I guess the intertubes should help you figure out how to install it, probably building from source is required. And if you don't want to take that burden, the static release verions are actually tested and confirmed to run on CentOS 7 😸.

@monostefan Thank you for explaining. Our server is Centos7.3. It might not good timing to achieve this. I'll turn to other things first, and back to check this later.


Logout doesn't actually logout

Bug possibly introduced by #14 despite d2ba36669b51b7f5c228ace4e1c6aa59eb5ff560 intending to handle this more explicitly.
Originally commented https://github.com/michaelsnook/sunlo-nextjs/issues/19#issuecomment-1421453116

I forget when but this is fixed now.


Bump to specs 4.0.2, scalaz 7.2.18, scala 2.12.4

I bumped versions to
specs2 4.0.2
scalaz 7.2.18
scala 2.12.4
It also means dropping support for scala 2.10 as specs 4.0.x is not released for it anymore.
It would be nice if this was released as we need it for quasar here https://github.com/quasar-analytics/quasar/pull/3338 It turned out that 3.9.1 was not enough...

Released 0.5.2.


ARROW-6597: [Python] Sanitize Python datetime handling

The official datetime C macros (PyDate*) operate on a static variable
named PyDateTimeAPI.  This forces us to initialize that static variable
using PyDateTime_IMPORT in every datetime-using C++ module.  Fix the
issue by redefining PyDateTimeAPI to a global variable.
Fixes a crash I got locally in test_pandas.py.

This was bothering me, but wasn't sure how to fix it, looks much better now.

Travis-CI passed: https://travis-ci.org/pitrou/arrow/builds/586472251


Search for special Characters (HTML Entities)

This pull request is based on this issue https://github.com/javve/list.js/issues/147.
It makes it possible to search for & < > and other strings that need to escaped to match the search criteria.

Great with a PR but I would like to have some tests and example code that shows when and how this is needed.
(I also posted a question in this thread: https://github.com/javve/list.js/issues/147)

http://www.listjs.com/overview/contribute  :heart:


bower.json question

Hi !
I'm currently trying to use wavesurfer with webpack / ES6 / angular...
I have a problem with the folder name created via the bower command (ie wavesurfer.js) because webpack search for a file named wavesurfer.js but find a folder so it get stuck...
If I change the name of the folder (removing the .js) it works ...
So I am wondering if it is possible to change the package name so that it will not create a folder with .js ?

You should be able to work aroind this issur in webpack, there's no chance the folder name is going to get changed anytime soon, just to accomodate webpack functionality

Ok thanks anyway

@pitrackster you can add an alias in your webpack config file
module.exports = {
  resolve: {
    alias: {
      'wavesurfer': path.resolve(__dirname, './node_modules/wavesurfer.js/dist/wavesurfer.js')
    }
  }
}

Thanks, @xbill82! Adding to the readme.


Apply alert filtering to alerts based on k8up_* metrics

Context
Currently the alert filtering rules are only applied to the alert for metric baas_backup_restic_last_errors. However, the component also configures a number of alerts for k8up_* metrics.
To improve consistency, the alert filtering rules should also be applied to the alerts based on k8up_* metrics.
Note that the namespace for the actual backup is exposed as label exported_namespace for the k8up_* metrics, while label namespace always refers to the namespace in which K8up runs.
Alternatives
The alternative is to leave the setup as is, which will lead to inconsistent alerting.

@simu is this still relevant? The component underwent quite a lot of changes since you've opened this issue.

Looks like parameter alert_rule_filters isn't used at all anymore in recent component versions. Not sure if there's a replacement mechanism which can be used to ignore K8up alerts for certain namespaces or not, but in its current form this issue is not relevant anymore.
Please note that the VSHN-internal global defaults still sets this parameter, so it might make sense to implement something like it again.

Thanks for the feedback! I'm closing this issue. If any need for this feature would arise again, we can open a new one.


slice_scatter decomposition

Fixes #2434

Monitoring the CI to see if this error comes in the test-
torch._dynamo.exc.BackendCompilerFailed: backend='functools.partial(<function fx_dynamo_testing_backend at 0x7f19514f7af0>, store_intermediate_graphs=[], min_
block_size=1, torch_executed_ops=set(), use_fast_partitioner=True)' raised:
RuntimeError: Attempted to set the storage of a tensor on device "meta" to a storage on different device "cpu".  This is no longer allowed; the devices must match.


Import rutabaga_gfx+virtio_gpu from crosvm

The code is gated behind the "gpu" feature.

Is vendoring these libs necessary? Any way to pull them in as external dependencies for easier tracking of upstream? or is that a no-go for upstream?

Is vendoring these libs necessary? Any way to pull them in as external dependencies for easier tracking of upstream? or is that a no-go for upstream?

@alyssarosenzweig virtio-gpu is not intended to be externally consumed and we also need a number of small but critical changes to make it compatible with libkrun, but I don't think it's really an option.
The case of rutabaga_gfx is more interesting, as it seems like in v0.1.2 they've deliberately dropped some internal dependencies (base and data_model) and published it in crates.io so it can be internally consumed. On the other hand, I kind of prefer to keep this new crates vendorized, eventually dropping them once things settle upstream, just as we did with kbs-types.

@slp Is there any docs showing how I could I try this for myself, to test?

Is vendoring these libs necessary? Any way to pull them in as external dependencies for easier tracking of upstream? or is that a no-go for upstream?

@alyssarosenzweig virtio-gpu is not intended to be externally consumed and we also need a number of small but critical changes to make it compatible with libkrun, so I don't think it's really an option.
The case of rutabaga_gfx is more interesting, as it seems like in v0.1.2 they've deliberately dropped some internal dependencies (base and data_model) and published it in crates.io so it can be internally consumed. On the other hand, I kind of prefer to keep this new crates vendorized, eventually dropping them once things settle upstream, just as we did with kbs-types.

ah, entirely reasonable. :+1:

@tylerfanelli To test it you need a image with sommelier. I've just added a sommelier package to this COPR repo so you can take it from there if you don't want to build it yourself. Something like this should do the trick:

Prepare an OCI image with sommelier, gedit (or some other Wayland app to test) and firefox (to test Xwayland):

$ podman run -ti --name fedora-gpu fedora:38
# dnf install -y dnf-plugins-core
# dnf copr enable slp/asahi-krun
# dnf install -y sommelier gedit firefox xorg-x11-server-Xwayland
# exit

Increase chroot_vm microVM settings (to run firefox) and expand the OCI in a directory:

$ cd examples
$ sed -i 's/1, 512/4, 4096/g' chroot_vm.c
$ make
$ mkdir fedora-gpu
$ podman export fedora-gpu | tar xf - -C fedora-gpu

Start the microVM and run some apps with sommelier:

$ ulimit -n 524288
$ buildah unshare
# ./chroot_vm fedora-gpu/ /bin/bash
bash-5.2# echo "nameserver <IP_ADDRESS>" > /etc/resolv.conf
bash-5.2# export XDG_RUNTIME_DIR=/tmp
bash-5.2# sommelier --virtgpu-channel gedit
bash-5.2# sommelier --virtgpu-channel -X  firefox

For anyone else wants to try this, note that you have to enable virtio-gpu for libkrufw:
diff --git a/config-libkrunfw_x86_64 b/config-libkrunfw_x86_64
index 8fb4eb1..abceeb3 100644
--- a/config-libkrunfw_x86_64
+++ b/config-libkrunfw_x86_64
@@ -1369,7 +1369,8 @@ CONFIG_BCMA_POSSIBLE=y
 #
 # Graphics support
 #
-# CONFIG_DRM is not set
+CONFIG_DRM=y
+CONFIG_DRM_VIRTIO_GPU=y
 # CONFIG_DRM_DEBUG_MODESET_LOCK is not set

 #


Upgrade shuntingyard to support functions

Currently it is not possible to implement functions like max(), min(), sin(), cos() or tan() with the current shuntingyard. Improve upon this.

Implemented in backend with 0de54d0


16-bit activated integral calibration data setting issue

Linux Ubuntu  22.04
TensorFlow installation (pip package)
TensorFlow library (2.16.2)
I am converting a causal audio processing model, using the GRU module, the model only processes one frame at a time, and I need to iterate between frames to update the GRU's state. That is, when the model processes the current frame, I also need to pass in the state of the previous frame, and return the status value of the current frame to the next frame after processing.
Before converting tflite, I set the 16x8 integer quantization mode, but I noticed that the data used to calibrate the accuracy was set directly to "converter.representative_dataset = representative_data_gen". How can I iterate on the state mentioned above?

Hi, @YadongChen-1016
I apologize for the delayed response and If possible could you please help us with Google colab notebook with your model along with complete steps to reproduce the same behavior from our end to investigate this issue further ?
If you encountered any RuntimeError please mention that also which will help us to investigate this issue further.
Thank you for your cooperation and patience.


Bookmark categories

We have a bookmark panel with pictures/locations/items.
It would be great to have the same for categories. It would be especially useful if these bookmarks get automatically suggested when uploading (similar to #4745).

Hi Nicolas, would it be possible for you to assign this issue to me?

@Ahmed-Qaisar Could you please choose an issue labeled "bug"? Thanks! 🙂

Can I work on this? @nicolas-raoul

@bhoomigadhiya It is yours, thanks!

@bhoomigadhiya No pressure, but any progress or observations to share? :-)

Can I work on this?

@neeldoshii It is yours, thanks! :-)

Does this #6035 fixes this?

@bhoomigadhiya @parneet-guraya @Ahmed-Qaisar Hi, just trying to help prioritize what development work gets done next. Would you be able to have a look at this https://github.com/commons-app/apps-android-commons/issues/6034 and potentially add your thoughts/ priorities to the spreadsheet?
Thanks,
Chris.


Add glance-operator icon based on the Glance project logo

Jira: https://issues.redhat.com/browse/OSPRH-8226

We previously had:
ERRO[0000] Error: Value : (glance-operator.v0.0.1) csv.Spec.Icon elements should contain both data and mediatype

and with a bundle built on top of this patch:
 operator-sdk bundle validate --select-optional name=operatorhub --optional-values=k8s-version=1.22 --verbose ./bundle
we don't have the same issue anymore.

/test glance-operator-build-deploy-tempest

/retest-required

Do we want to merge this?  The associated Jira doesn't seem to be a blocker.

Do we want to merge this? The associated Jira doesn't seem to be a blocker.

Not a blocker IMO, now that operators deps are bumped I'm going to push the 18.0.0-proposed branch

Do we want to merge this? The associated Jira doesn't seem to be a blocker.

FYI I kept this patch out of the 18.0.0-proposed branch

Do we want to merge this? The associated Jira doesn't seem to be a blocker.

FYI I kept this patch out of the 18.0.0-proposed branch

Ah, right.  I forgot we have the branches now and can freely merge into main.  Doh. :-)


Subcommands do not fallback to app.ExitEventHandler

When I install ExitEventHandler on the app level and exit a subcommand with cli.NewExitError then ExitEventHandler is not called, and the app exits through OsExiter unexpectedly.
It is because original app.ExitEventHandler is not inherited to the app copy in command.go startApp function
A test to illustrate it:
func TestWhenExitSubCommandWithCodeThenAppQuitUnexpectedly(t *testing.T) {
	app := cli.NewApp()
	app.Commands = []cli.Command{
		cli.Command{
			Name: "cmd",
			Subcommands: []cli.Command{
				cli.Command{
					Name: "subcmd",
					Action: func(c *cli.Context) error {
						return cli.NewExitError("exit error", 101)
					},
				},
			},
		},
	}

	origExiter := cli.OsExiter
	var unhandledExitCode int
	cli.OsExiter = func(exitCode int) {
		unhandledExitCode = exitCode
	}

	var handledExitCode int
	app.ExitErrHandler = func(c *cli.Context, err error) {
		if exitErr, ok := err.(cli.ExitCoder); ok {
			handledExitCode = exitErr.ExitCode()
		}
	}

	app.Run([]string{
		"myapp",
		"cmd",
		"subcmd",
	})

	if unhandledExitCode != 101 {
		t.Errorf("unhandled exit code %v is handled for subcommand", unhandledExitCode)
	}

	if handledExitCode != 0 {
		t.Errorf("handled code %v is handled for subcommand", handledExitCode)
	}

	cli.OsExiter = origExiter
}

I haven't looked at this issue in depth, but it makes sense! Would you be interested in creating a PR for it @AlexeiSosnov?

I think this issue can be closed, solved in commit 08c24e22ed2c4bebb348a738caf92c40bb63133c (pull request #856 )


No double view of results in PropertyList

You cannot view 2 results in the property list at the same time. Would be better if you could compare results side by side.
Seen in v1.4.12

fixed with 899d934
Version is now 1.4.19


Flutter throws an exception when typing something while holding selection endpoint

Steps to Reproduce

Select any text
Type any symbol while holding selection endpoint with finger (touch location should be outside the text)

Expected results: Nothing special happens.
Actual results: Application throws exception.

Code sample
class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Material(
        child: Padding(
          padding: EdgeInsets.all(50.0),
          child: TextField(),
        ),
      ),
    );
  }
}

Logs
E/MethodChannel#flutter/textinput( 9756): Failed to handle method call
E/MethodChannel#flutter/textinput( 9756): java.lang.IndexOutOfBoundsException: invalid selection end: 4
E/MethodChannel#flutter/textinput( 9756): 	at io.flutter.embedding.engine.systemchannels.TextInputChannel$TextEditState.<init>(TextInputChannel.java:787)
E/MethodChannel#flutter/textinput( 9756): 	at io.flutter.embedding.engine.systemchannels.TextInputChannel$TextEditState.fromJson(TextInputChannel.java:738)
E/MethodChannel#flutter/textinput( 9756): 	at io.flutter.embedding.engine.systemchannels.TextInputChannel$1.onMethodCall(TextInputChannel.java:103)
E/MethodChannel#flutter/textinput( 9756): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:262)
E/MethodChannel#flutter/textinput( 9756): 	at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:178)
E/MethodChannel#flutter/textinput( 9756): 	at io.flutter.embedding.engine.dart.DartMessenger.lambda$handleMessageFromDart$0$DartMessenger(DartMessenger.java:206)
E/MethodChannel#flutter/textinput( 9756): 	at io.flutter.embedding.engine.dart.-$$Lambda$DartMessenger$6ZD1MYkhaLxyPjtoFDxe45u43DI.run(Unknown Source:12)
E/MethodChannel#flutter/textinput( 9756): 	at android.os.Handler.handleCallback(Handler.java:900)
E/MethodChannel#flutter/textinput( 9756): 	at android.os.Handler.dispatchMessage(Handler.java:103)
E/MethodChannel#flutter/textinput( 9756): 	at android.os.Looper.loop(Looper.java:219)
E/MethodChannel#flutter/textinput( 9756): 	at android.app.ActivityThread.main(ActivityThread.java:8349)
E/MethodChannel#flutter/textinput( 9756): 	at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#flutter/textinput( 9756): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
E/MethodChannel#flutter/textinput( 9756): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1055)
E/flutter ( 9756): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: PlatformException(error, invalid selection end: 4, null, java.lang.IndexOutOfBoundsException: invalid selection end: 4
E/flutter ( 9756): 	at io.flutter.embedding.engine.systemchannels.TextInputChannel$TextEditState.<init>(TextInputChannel.java:787)
E/flutter ( 9756): 	at io.flutter.embedding.engine.systemchannels.TextInputChannel$TextEditState.fromJson(TextInputChannel.java:738)
E/flutter ( 9756): 	at io.flutter.embedding.engine.systemchannels.TextInputChannel$1.onMethodCall(TextInputChannel.java:103)
E/flutter ( 9756): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:262)
E/flutter ( 9756): 	at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:178)
E/flutter ( 9756): 	at io.flutter.embedding.engine.dart.DartMessenger.lambda$handleMessageFromDart$0$DartMessenger(DartMessenger.java:206)
E/flutter ( 9756): 	at io.flutter.embedding.engine.dart.-$$Lambda$DartMessenger$6ZD1MYkhaLxyPjtoFDxe45u43DI.run(Unknown Source:12)
E/flutter ( 9756): 	at android.os.Handler.handleCallback(Handler.java:900)
E/flutter ( 9756): 	at android.os.Handler.dispatchMessage(Handler.java:103)
E/flutter ( 9756): 	at android.os.Looper.loop(Looper.java:219)
E/flutter ( 9756): 	at android.app.ActivityThread.main(ActivityThread.java:8349)
E/flutter ( 9756): 	at java.lang.reflect.Method.invoke(Native Method)
E/flutter ( 9756): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
E/flutter ( 9756): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1055)
E/flutter ( 9756): )
E/flutter ( 9756): #0      JSONMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:164:7)
E/flutter ( 9756): #1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:167:18)
E/flutter ( 9756): <asynchronous suspension>

[√] Flutter (Channel stable, 2.8.1, on Microsoft Windows [Version 10.0.19042.1586], locale ru-RU)
    • Flutter version 2.8.1 at C:\DDD\prog\programs\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 77d935af4d (3 months ago), 2021-12-16 08:37:33 -0800
    • Engine revision 890a5fca2e
    • Dart version 2.15.1

[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at C:\DDD\prog\programs\sdks
    • Platform android-31, build-tools 31.0.0
    • Java binary at: C:\DDD\prog\programs\andst\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)
    • All Android licenses accepted.

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

[√] Android Studio (version 2021.1)
    • Android Studio at C:\DDD\prog\programs\andst
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)

[√] Connected device (3 available)
    • PPA LX1 (mobile) • 73XNU21116203122 • android-arm64  • Android 10 (API 29)
    • Chrome (web)     • chrome           • web-javascript • Google Chrome 99.0.4844.51
    • Edge (web)       • edge             • web-javascript • Microsoft Edge 99.0.1150.39

• No issues found!

I can reproduce this on android, but it doesn't seem to reproduce on iOS with the same steps I used to reproduce on android. The exception doesn't stop the app from working, and it probably isn't noticeable if you're using flutter run.
Steps to reproduce

Run the code sample below with the debugger attached (the app will pause for exceptions, that's when you'll see it)
Enter some text into the TextField
Select the text and hold the text selection handle
Enter some text while holding the text selection handle
You might need multiple tries before it reproduces

In the video below, you see at a certain point, I'm typing but there's no text, that is because the debugger catches the exception and the app is paused. After resuming the app, that's when the text is captured in the textfield.

video

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

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

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

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: Material(
        child: Padding(
          padding: EdgeInsets.all(50.0),
          child: TextField(),
        ),
      ),
    );
  }
}

flutter doctor -v
[✓] Flutter (Channel stable, 2.10.3, on macOS 12.2.1 21D62 darwin-arm, locale en-GB)
    • Flutter version 2.10.3 at /Users/nexus/dev/sdks/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 7e9793dee1 (2 weeks ago), 2022-03-02 11:23:12 -0600
    • Engine revision bd539267b4
    • Dart version 2.16.1
    • DevTools version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/nexus/Library/Android/sdk
    • Platform android-32, build-tools 31.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

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

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

[☠] IntelliJ IDEA Community Edition (the doctor check crashed)
    ✗ Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know about this issue at https://github.com/flutter/flutter/issues.
    ✗ FormatException: Unexpected extension byte (at offset 5)
    • #0      _Utf8Decoder.convertSingle (dart:convert-patch/convert_patch.dart:1789:7)
      #1      Utf8Decoder.convert (dart:convert/utf.dart:351:42)
      #2      InputStream.readString (package:archive/src/util/input_stream.dart:207:30)
      #3      new ZipDirectory.read (package:archive/src/zip/zip_directory.dart:40:30)
      #4      ZipDecoder.decodeBuffer (package:archive/src/zip_decoder.dart:19:30)
      #5      ZipDecoder.decodeBytes (package:archive/src/zip_decoder.dart:14:12)
      #6      IntelliJPlugins._findPluginXml (package:flutter_tools/src/intellij/intellij.dart:130:44)
      #7      IntelliJPlugins._readPackageVersion (package:flutter_tools/src/intellij/intellij.dart:141:40)
      #8      IntelliJPlugins.validatePackage (package:flutter_tools/src/intellij/intellij.dart:63:35)
      #9      IntelliJValidator.validate (package:flutter_tools/src/intellij/intellij_validator.dart:103:15)
      #10     asyncGuard.<anonymous closure> (package:flutter_tools/src/base/async_guard.dart:111:32)
      #11     asyncGuard.<anonymous closure> (package:flutter_tools/src/base/async_guard.dart:109:18)
      #12     _rootRun (dart:async/zone.dart:1426:13)
      #13     _CustomZone.run (dart:async/zone.dart:1328:19)
      #14     _runZoned (dart:async/zone.dart:1861:10)
      #15     runZonedGuarded (dart:async/zone.dart:1849:12)
      #16     runZoned (dart:async/zone.dart:1780:12)
      #17     asyncGuard (package:flutter_tools/src/base/async_guard.dart:109:3)
      #18     Doctor.startValidatorTasks (package:flutter_tools/src/doctor.dart:205:9)
      #19     Doctor.diagnose (package:flutter_tools/src/doctor.dart:309:47)
      #20     DoctorCommand.runCommand (package:flutter_tools/src/commands/doctor.dart:50:48)
      #21     FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1320:12)
      <asynchronous suspension>
      #22     FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1161:27)
      <asynchronous suspension>
      #23     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
      <asynchronous suspension>
      #24     CommandRunner.runCommand (package:args/command_runner.dart:209:13)
      <asynchronous suspension>
      #25     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
      <asynchronous suspension>
      #26     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
      <asynchronous suspension>
      #27     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
      <asynchronous suspension>
      #28     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
      <asynchronous suspension>
      #29     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
      <asynchronous suspension>
      #30     main (package:flutter_tools/executable.dart:94:3)
      <asynchronous suspension>

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

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

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

! Doctor found issues in 1 category.

[✓] Flutter (Channel master, 2.13.0-0.0.pre.142, on macOS 12.2.1 21D62 darwin-arm, locale en-GB)
    • Flutter version 2.13.0-0.0.pre.142 at /Users/nexus/dev/sdks/flutters
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 8e11192d0f (2 hours ago), 2022-03-18 01:55:20 -0400
    • Engine revision 6495796bce
    • Dart version 2.17.0 (build 2.17.0-216.0.dev)
    • DevTools version 2.11.4

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/nexus/Library/Android/sdk
    • Platform android-32, build-tools 31.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

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

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

[✓] IntelliJ IDEA Community Edition (version 2021.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin version 213.5744.122

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

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

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

• No issues found!

android_log.log

cc @LongCatIsLooong

cc @LongCatIsLooong

Reproduced also in Flutter 3.10.7 Dart 3.0.7.  Found via Sentry alerting from multiple customers.  It seems like there are a few different errors that can be hit when trying the same repro steps in a production build or in debug in emulator.

PlatformException: PlatformException(error, invalid selection start: 12, null, java.lang.IndexOutOfBoundsException: invalid selection start: 12
```
PlatformException: PlatformException(error, invalid selection start: 12, null, java.lang.IndexOutOfBoundsException: invalid selection start: 12
	at io.flutter.embedding.engine.systemchannels.TextInputChannel$TextEditState.(SourceFile:13)
	at io.flutter.embedding.engine.systemchannels.TextInputChannel$TextEditState.fromJson(SourceFile:6)
	at io.flutter.embedding.engine.systemchannels.TextInputChannel$1.onMethodCall(SourceFile:42)
	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(SourceFile:2)
	at io.flutter.embedding.engine.dart.DartMessenger.$r8$lambda$2j2MERcK825A5j1fv5sZ7xB2Iuo(SourceFile:3)
	at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
	at android.os.Handler.handleCallback(Handler.java:958)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loopOnce(Looper.java:205)
	at android.os.Looper.loop(Looper.java:294)
	at android.app.ActivityThread.main(ActivityThread.java:8177)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
```

ERROR: 'package:flutter/src/services/text_input.dart': Failed assertion: line 963 pos 12: 'range.start >= 0 && range.start <= text.length': Range start 23 is out of text of length 22
```
I/flutter (14920): Another exception was thrown: Range start 23 is out of text of length 22
I/flutter (14920): [E]  ERROR: 'package:flutter/src/services/text_input.dart': Failed assertion: line 963 pos 12: 'range.start >= 0 && range.start <= text.length': Range start 23 is out of text of length 22
I/flutter (14920): #2      TextEditingValue._textRangeIsValid (package:flutter/src/services/text_input.dart:963:12)
I/flutter (14920): #3      TextEditingValue.toJSON (package:flutter/src/services/text_input.dart:918:12)
I/flutter (14920): #4      _PlatformTextInputControl.setEditingState (package:flutter/src/services/text_input.dart:2249:13)
I/flutter (14920): #5      TextInput._setEditingState (package:flutter/src/services/text_input.dart:1938:15)
I/flutter (14920): #6      TextInputConnection.setEditingState (package:flutter/src/services/text_input.dart:1362:25)
I/flutter (14920): #7      EditableTextState._updateRemoteEditingValueIfNeeded (package:flutter/src/widgets/editable_text.dart:3060:27)
I/flutter (14920): #8      EditableTextState.endBatchEdit (package:flutter/src/widgets/editable_text.dart:3049:5)
I/flutter (14920): #9      EditableTextState._formatAndSetValue (package:flutter/src/widgets/editable_text.dart:3596:5)
I/flutter (14920): #10     EditableTextState.userUpdateTextEditingValue (package:flutter/src/widgets/editable_text.dart:3905:5)
I/flutter (14920): #11     TextSelectionOverlay._handleSelectionHandleChanged (package:flutter/src/widgets/text_selection.dart:881:23)
I/flutter (14920): #12     TextSelectionOverlay._handleSelectionEndHandleDragUpdate (package:flutter/src/widgets/text_selection.dart:728:7)
I/flutter (14920): #13     DragGestureRecognizer._checkUpdate. (package:flutter/src/gestures/monodrag.dart:516:55)
I/flutter (14920): #14     GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:275:24)
I/flutter (14920): #15     DragGestureRecognizer._checkUpdate (package:flutter/src/gestures/monodrag.dart:516:7)
I/flutter (14920): #16     DragGestureRecognizer.handleEvent (package:flutter/src/gestures/monodrag.dart:370:9)
I/flutter (14920): #17     PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:98:12)
I/flutter (14920): #18     PointerRouter._dispatchEventToRoutes. (package:flutter/src/gestures/pointer_router.dart:143:9)
I/flutter (14920): #19     _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:625:13)
I/flutter (14920): #20     PointerRouter._dispatchEventToRoutes (package:flutter/src/gestures/pointer_router.dart:141:18)
I/flutter (14920): #21     PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:127:7)
I/flutter (14920): #22     GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:465:19)
I/flutter (14920): #23     GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:445:22)
I/flutter (14920): #24     RendererBinding.dispatchEvent (package:flutter/src/rendering/binding.dart:331:11)
I/flutter (14920): #25     GestureBinding._handlePointerEventImmediately (package:flutter/src/gestures/binding.dart:400:7)
I/flutter (14920): #26     GestureBinding.handlePointerEvent (package:flutter/src/gestures/binding.dart:363:5)
I/flutter (14920): #27     GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:320:7)
I/flutter (14920): #28     GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:293:9)
I/flutter (14920): #29     _invoke1 (dart:ui/hooks.dart:158:13)
I/flutter (14920): #30     PlatformDispatcher._dispatchPointerDataPacket (dart:ui/platform_dispatcher.dart:382:7)
I/flutter (14920): #31     _dispatchPointerDataPacket (dart:ui/hooks.dart:91:31)
```

ERROR: 'package:flutter/src/widgets/text_selection.dart': Failed assertion: line 1139 pos 12: '!_isDraggingEndHandle': is not true.
```
I/flutter (14920): [E] ERROR: 'package:flutter/src/widgets/text_selection.dart': Failed assertion: line 1139 pos 12: '!_isDraggingEndHandle': is not true.
I/flutter (14920): #2      SelectionOverlay._handleEndHandleDragStart (package:flutter/src/widgets/text_selection.dart:1139:12)
I/flutter (14920): #3      DragGestureRecognizer._checkStart. (package:flutter/src/gestures/monodrag.dart:497:53)
I/flutter (14920): #4      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:275:24)
I/flutter (14920): #5      DragGestureRecognizer._checkStart (package:flutter/src/gestures/monodrag.dart:497:7)
I/flutter (14920): #6      DragGestureRecognizer.acceptGesture (package:flutter/src/gestures/monodrag.dart:420:7)
I/flutter (14920): #7      GestureArenaManager._resolveByDefault (package:flutter/src/gestures/arena.dart:268:25)
I/flutter (14920): #8      GestureArenaManager._tryToResolveArena. (package:flutter/src/gestures/arena.dart:248:31)
```

we still get this with Flutter 3.22.0

and as you can see within the last 30 days it happened 1.7k times
PlatformException

PlatformException(error, invalid composing start: 21, null, java.lang.IndexOutOfBoundsException: invalid composing start: 21
	at oa.s$e.<init>(TextInputChannel.java:15)
	at oa.s$e.a(TextInputChannel.java:6)
	at oa.s$a.onMethodCall(TextInputChannel.java:43)
	at pa.k$a.a(MethodChannel.java:2)
	at da.c.l(DartMessenger.java:2)
	at da.c.m(DartMessenger.java:4)
	at da.c.g(Unknown Source:0)
	at da.b.run(Unknown Source:12)
	at android.os.Handler.handleCallback(Handler.java:958)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loopOnce(Looper.java:230)
	at android.os.Looper.loop(Looper.java:319)
	at android.app.ActivityThread.main(ActivityThread.java:8919)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)
)


Option language does not work for Microsoft Edge TTS

Checklist

[X] I have filled out the template to the best of my ability.
[X] This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
[X] This issue is not a duplicate feature request of previous feature requests.

Is your feature request related to a problem? Please describe.
Hi, if using edge_tts with the parameter language the voice stays the default (for me de-DE) voice and does not adapt to the chosen voice/language.
service: chime_tts.say
target:
  entity_id: media_player.arbeitszimmer
data:
  chime_path: bells
  end_chime_path: ""
  offset: 450
  final_delay: 0
  volume_level: 0.35
  message: Das ist ein Test.
  tts_platform: edge_tts
  language: de-DE-AmalaNeural

I greatly appreciate your help.
Kind regards,
Jonas
Describe the solution you'd like
The parameter 'language' does change the voice as desired.
Describe alternatives you've considered
With the following service provided by Home Assistant / the Edge TTS integration, choosing the language is working:
service: tts.edge_tts_say
data:
  entity_id: media_player.arbeitszimmer
  language: de-DE-AmalaNeural
  message: Das ist ein Test.

Additional context
.

Hi @jonalbr, thank you for the pull request! I've released a new beta version, v0.13.1-beta2, which includes your commit. Could you please upgrade to the new version and let me know if the language parameter is now working for you with the Microsoft Edge TTS platform?
To install the new beta version:

Open the Chime TTS repository in HACS
Click on the ⋮ button in the top right
Select the ↻ Redownload option
Enable the Show beta versions option (it may take a moment to update the list)
Select version v0.13.1-beta2 from the updated version drop-down list
Restart Home Assistant

I can confirm that the issue is fixed for me in v0.13.1-beta2 .

Thank you Jonas. The fix will be included in the next release.


Unknown field 'uid' on type 'PrismicAllDocumentTypes'. Source: document PartnerTemplateQuery file: GraphQL request

Getting another Unknown field this time 'uid' after I added a schema for that specific template.
Here is how my query looks which I'm using similar setup for every template on my site. All worked in V2 but throwing the following error for V3.

Unknown field 'uid' on type 'PrismicAllDocumentTypes'. Source: document PartnerTemplateQuery file: GraphQL request

export const query = graphql`
  query PartnerTemplateQuery($uid: String!) {
    page: prismicPartnersTemplate(uid: { eq: $uid }) {
      uid
      type
      data {
        name
      }
   }

    terms: prismicTermsAndConditionsPage {
      data {
        groups {
          group {
            document {
              ... on PrismicTermsCondGroup {
                uid
                data {
                  name
                  text {
                    html
                  }
                }
              }
            }
          }
        }
      }
    }
  }

Could this be a similar to whats happening on #113 with the alias setup of page. I really hope not as I use this pattern through a super large site. I tried removing the page alias but obviously that breaks my data in other ways but I still get the above error ?

This was due to a missing data in a schema.


Change Navigation Rail default animation

Change Navigation Rail default animation to fastOutSlowIn and duration to 250 milliseconds
#65121
Pre-launch Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[x] I signed the CLA.
[x] I listed at least one issue that this PR fixes in the description above.
[x] I updated/added relevant documentation (doc comments with ///).
[ ] I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt.
[ ] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Gold has detected about 4 new digest(s) on patchset 4.
View them at https://flutter-gold.skia.org/cl/github/86726

Could you also make them configurable?

This LGTM, but would like @johnsonmh to check that this aligns with the bottom navigation destination animations? Should the reverse curve be set to the opposite?


Prevent or warn user when attempting to install unsupported app on a Windows workload

rancher/dashboard issue: https://github.com/rancher/dashboard/issues/3974
Rancher Server Setup

Rancher version: v2.6-head

Versions
Component 	Version
Rancher 	v2.6-be960478b7d8f83eecd3d33fbd8bdd2504ed409f-head
Helm 	v2.16.8-rancher1
Machine 	v0.15.0-rancher68

Installation option (Docker install/Helm Chart): docker
Proxy/Cert Details: self-signed

Information about the Cluster

Kubernetes version:  v1.21.3-rc7+rke2r2
Cluster Type (Local/Downstream): downstream

If downstream, what type of cluster? (Custom/Imported or specify provider for Hosted/Infrastructure Provider): Custom RKE2

Describe the bug
When deploying v2 monitoring and logging apps, the Windows workloads are not being scheduled out of the box.
To Reproduce
Provision custom cluster with 1x linux all role or 1x etcd/cp and 1x worker
Enable v2 Logging and/or v2 monitoring apps with default helm chart configuration.
Result
The linux logging workload deploys as expected. There are no windows logging (fluentd) workloads deployed.
Expected Result
Windows workload (rancher-logging-win-agent-fluentbit) for v2 logging should be scheduled on Windows nodes.
Windows workload (rancher-monitoring-windows-exporter) for v2 monitoring should be scheduled on Windows nodes.
Additional context
Rancher and/or the UI need logic to detect that a windows node is present in a cluster and therefore set the global.cattle.windows.enabled value to true in the cluster.
Both the v2 monitoring and v2 logging charts rely on .Values.global.cattle.windows.enabled to be present and set to true.
https://github.com/rancher/charts/blob/dev-v2.6/charts/rancher-logging/rancher-logging/100.0.0%2Bup3.12.0/templates/_helpers.tpl#L68-L71
For v2 logging, the value was not present in the chart values yaml after a successful deployment of v2 logging.
For v2 monitoring, the value was set to false (below) in the chart values yaml after a successful deployment of v2 monitoring.
global:
  cattle:
    systemDefaultRegistry: ''
    windows:
      enabled: false

Workaround
Editing the values yaml for both v2 monitoring and v2 logging and setting global.cattle.windows.enabled to true allow the workloads to be scheduled.
global:
  cattle:
    windows:
      enabled: true

[ ] Test and confirm which apps work on Windows on RKE1
[ ] Test and confirm which apps work on Windows on RKE2
[ ] Prevent or warn user when attempting to install unsupported app on a Windows workload
[ ] Scope work required to support currently unsupported apps

Rancher v2.5.9 with custom RKE1 Windows Cluster

V1 Apps (installed using Manager)
Version Tested
RKE1
RKE2
Notes

Monitoring
rancher-monitoring:0.1.5
Works
N/A

Monitoring
rancher-monitoring:0.2.2
Works
N/A
Direct upgrade from v0.1.5

Logging
rancher-logging:0.2.4
Works
N/A

V2 Apps (installed using Explorer)
Version Tested
RKE1
RKE2
Notes

Monitoring
rancher-monitoring:16.6.0
Works
N/A
After disabling 0.2.2

Logging
rancher-logging:3.9.400
Works
N/A

rancher-wins-upgrader
rancher-wins-upgrader:0.0.100
Works
N/A

Unsupported Apps

Alerting Drivers

CIS Benchmark

External IP Webhook

Istio

Longhorn

OPA Gatekeeper

vSphere CPI

vSphere CSI

Regarding warnings
Rancher 2.5.x:
There is a warning (below) in 2.5.9 cluster manager when deploying from apps/catalog (https://<RANCHER_URL>/p/c-jtdkq:p-jhpf5/apps/catalog) inside the downstream custom RKE1 Windows cluster but there is not any filtering for compatible Rancher charts for rke1 windows clusters.

Most of the applications should be running in Linux clusters. So it might not work if you deploy them in the current cluster.

There is not a warning in 2.5.9 cluster explorer, however, explorer only shows the 3 rancher charts that are compatible for Windows clusters (monitoring, logging, rancher-wins-upgrader)
Rancher 2.6.x:
TBD

Rancher v2.6.2 with custom RKE2 Windows Cluster

V1 Apps
Version Tested
RKE1
RKE2
Notes

Monitoring
rancher-monitoring:TBD
TBD
TBD

Logging
rancher-logging:TBD
TBD
TBD

rancher-wins-upgrader
rancher-wins-upgrader:TBD
TBD
TBD

V2 Apps
Version Tested
RKE1
RKE2
Notes

Monitoring
rancher-monitoring:TBD
TBD
TBD

Logging
rancher-logging:TBD
TBD
TBD

rancher-wins-upgrader
rancher-wins-upgrader:TBD
TBD
TBD

Unsupported Apps

Alerting Drivers

CIS Benchmark

External IP Webhook

Istio

Longhorn

OPA Gatekeeper

vSphere CPI

vSphere CSI

Plan as of 11/16/2021:

[ ] Complete research in https://github.com/rancher/windows/issues/92#issuecomment-962168004
[ ] Address monitoring and logging for 2.6.3
[ ] Add 2022 support to wmi-exporter package, if being used in 2022 monitoring

Non-Windows charts are now visible in RKE2 clusters, due a change in either backend or UI.
Need to investigate why and remediate.

See UI comment https://github.com/rancher/dashboard/issues/3974#issuecomment-1016925704
See also https://github.com/rancher/dashboard/issues/4223

See also https://github.com/rancher/dashboard/pull/4639


Suggestion to folder loading

Hello, first thank you so mutch for doing that lib and share with us, for me is the best lib to pick images, but I found one problem with the folder loading, if your device have many images the loading will be a great delay, because at first you search for the folder and then you put all images of that folder inside, but why not load only the folders, and when user select one folder, then you load images from that folder, i download your code and made some modifications and it works, what do you think about that? Maybe can i sent to you the modifications i made.

Yeah, load images per-folder is a more scalable approach for sure. Currently there's an issue for loading speed as reported in here.

Hey @Rodrigolmti can you check the latest release for your delay problem? https://github.com/esafirm/android-image-picker/releases/tag/1.13.1

Hey sorry for the delay, I actually edit myself the code haha. But I see here and It's working now, thanks for that.


Fix WASI build of _copyDirectoryMetadata

Extended attributes don't exist in WASI, so we need to exclude the use of xattr-related APIs including flistxattr.

@swift-ci test


skybox sample

We need a sample showcasing mr-skybox and transitioning between MR to VR

Fixed by #306


MovingAverage num_updates support Variable

Describe the feature and the current behavior/state.
According to https://github.com/tensorflow/addons/blob/a0bfe3f35f310bdfee53078bdee15e10af342f53/tensorflow_addons/optimizers/moving_average.py#L84
average_decay is a tensor.
If I move it to _get_decay, it could be calculated dynamically with num_updates variable, which aligns with tf1.x ema.
Relevant information

Are you willing to contribute it (yes/no):yes
Are you willing to maintain it going forward? (yes/no):yes
Is there a relevant academic paper? (if so, where):
Is there already an implementation in another framework? (if so, where):
Was it part of tf.contrib? (if so, where):

Which API type would this fall under (layer, metric, optimizer, etc.)
optimizer
Who will benefit with this feature?
Any other info.

Could you explain the cons and pros for the change?

SGD with step decay
sgd = tf.keras.optimizers.SGD(0.01)
moving_avg_sgd = tfa.optimizers.MovingAverage(sgd, num_updates = sgd.iterations)

My mistake, I could use dynamic decay.


[TC-524] - hooks popout button to open new window/tab

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/incubator-trafficcontrol-traffic_ops-test-PR/35/

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/incubator-trafficcontrol-PR/73/


policyfile checksum keeps changing

Describe the problem
I've a cookbook with multiple policyfiles in it.
When I run 'chef install PF1.rb' there are no lock files yet, so the generated checksum is one value.
I then run 'chef install PF2.rb' so there is only the PF1.lock.json file which will get included in the checksum for PF2.
Now if I remove PF1.lock.json  and rerun the 1st chef cmd, the checksome for PF1 will now be different since now chef finds the PF2.lock.json file in the cookbook.
I consider this a bug in that the checksum has changed and nothing else of consequence has changed. Checksums should be consistent and reproducible. I should be able to run 'chef' on my policyfiles in any order I want and the checksum should always be identical
In fact, if I run 'chef update PF1.lock.json' over and over and over again, each run will change the checksum since it is including itself when computing the checksums.

Software Version
Chef Workstation version: 0.9.42

Replication Case
See above. Namely 'chef' is including ALL lock files when computing the checksum. I believe that lock files should be excluded from the checksums.
You may be asking why I care what the checksum is. Well, we have 3 policy-groups (sandbox, dev-test, and production) and when I push a policy to a policy-group, I want/need the checksums to be identical so I can run 'chef show-policy' and see that the checksums are identical (when the same policy file is pushed to a different policy-group) which helps me to know that the policies running in each policy-group are what is expected. With the checksums constantly changing, I've no way to prove (to my management) that the same policy is running in dev-test as was run/tested in sandbox.

Stacktrace

```
```

Possible Solution

I ?think? the solution might be to exclude all found 'lock' files when computing the checksum.

Even if I have a single policyfile, running 'chef install' will generate a lock file with one checksum and then when I run 'chef update', this will re-generate the same lock file, but with a different checksum (since now the lock file exists so the checksum has to be changed. In this case of a single policy file, the checksum, once generated, should not change between runs of 'chef'

The policyfile docs didn't mention the 'chefignore' file so I didn't know how to do what I wanted. With this, I've fixed my problem.


/api/stats causes an error

(node:20707) UnhandledPromiseRejectionWarning: TypeError: Reduce of empty array with no initial value
    at Array.reduce (<anonymous>)
    at APIController.getStats (/root/zipline/out/src/controllers/APIController.js:266:83)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)

seems to come from this line

Fixed, a commit should be coming out soon

https://github.com/ZiplineProject/zipline/commit/e9fe41e7d2f8d2e9ccb2c23a306f7004f286b2ac#diff-1c92b002d3b1a607ae6551614872a3bf  this commit should fix it. make sure to update


Update developer guide

This change is

Coverage remained the same at 84.912% when pulling ab79a6c25c2ce79a9135d3f690723c1a7188bc94 on Update-Developer-Guide into 8a273b5e47db54b7c08aea61981f9ff0a5a424cf on master.


Incomplete downloads

After attempting to login, with cookie.txt/username-password, the script starts to download the lecture, half, and move on to downloading another without completing the first lecture, e.g downloads first lecture 30mb, lecture size 100mb, or downloads 20% moves to another lecture.
I don't know what the problem is...
I'm downloading udemy course Bootcamp for web developer by colt Steele.
its purchase, and lectures download is enabled by the lecturer.
can you please, help me out?
thanks, Used cmd/powershell, I'm running windows10. and everything is uptodate.

It has happened to me before 3/4 times , I guess this is something to do with your internet connection not stable enough  at that time.


"gunicorn not found" error when running a Docker container with pipenv

I'm trying to run a Docker container, but I'm getting the error message: /app/docker-entrypoint.sh: gunicorn: not found. I can fire up the server locally without Docker without any problems, and building the image also works fine.
Here is my Dockerfile code:
FROM python:3.11 AS base

# Set environment variables
ENV PYTHONUNBUFFERED=1
ENV PYTHONDONTWRITEBYTECODE=1
ENV DJANGO_SUPER_USER_NAME=${SUPERUSER_USERNAME}
ENV DJANGO_SUPER_USER_PASSWORD=${SUPERUSER_PASSWORD}
ENV DJANGO_SUPER_USER_EMAIL=${SUPERUSER_EMAIL}

# Build Stage: Build the application
FROM base AS builder

# Set the working directory inside the container
WORKDIR /app

# Install pipenv and compilation dependencies

RUN pip install --upgrade pip && pip install pipenv && \
    apt update && \
    apt install -y --no-install-recommends default-mysql-client default-libmysqlclient-dev && \
    apt autoremove -y && \
    apt clean && \
    rm -rf /var/lib/apt/lists/*

# Copy only the Pipfile and Pipfile.lock from the source code directory to the working directory of container
COPY Pipfile Pipfile.lock ./

# Create a virtual environment and install Python dependencies from the Pipfile
# with PIPENV_VENV_IN_PROJECT=1 to store the virtual environment in .venv
RUN PIPENV_VENV_IN_PROJECT=1 pipenv install --deploy

# Define a non-privileged user and group IDs as build arguments
ARG DOCKER_NON_ROOT_GROUP=${DOCKER_NON_ROOT_GROUP}
ARG DOCKER_NON_ROOT_GID=${DOCKER_NON_ROOT_GID}
ARG DOCKER_NON_ROOT_USER=${DOCKER_NON_ROOT_USER}
ARG DOCKER_NON_ROOT_UID=${DOCKER_NON_ROOT_UID}

# Create a non-privileged group
RUN addgroup  --gid "${DOCKER_NON_ROOT_GID}"  --group "${DOCKER_NON_ROOT_GROUP}"

# Create a non-privileged user and add them to the previously created group
RUN adduser \
    -g ""\
    -s "/bin/false"\
    -G "${DOCKER_NON_ROOT_GROUP}"\
    -H \
    -D \
    -u "${DOCKER_NON_ROOT_UID}" \
    "${DOCKER_NON_ROOT_USER}"

# Run-time Stage : Create a lightweight production image
FROM base AS production

# Set the working directory
WORKDIR /app

# Copy virtual env from builder stage and set path to the virtual environment bin and lib directories
COPY --from=builder /app/.venv /.venv
ENV PATH="/.venv/bin:$PATH"
# ENV PATH="/.venv/lib:$PATH"

# # List files in the virtual environment
# RUN ls '/.venv/bin/'
# RUN ls '/.venv/lib'

# # Check the location of Gunicorn
# RUN which gunicorn

# Copy the application code from the source code directory to the container's working directory
COPY . ./

# Switch to the non-privileged user to run the application for security reasons
USER "${DOCKER_NON_ROOT_USER}"

# Expose the port that the application listens on
EXPOSE 8000

# Give execute permission to the script
RUN chmod +x /app/docker-entrypoint.sh

# Define the entry point for the container
ENTRYPOINT ["/app/docker-entrypoint.sh"]

And here is my docker-entrypoint.sh code:
#!/bin/sh

# Function to set up Django application
setup_django() {
    # Run Django migrations
    python manage.py makemigrations --noinput
    python manage.py migrate --noinput

    # Set up the superuser
    export DJANGO_SUPERUSER_PASSWORD=$DJANGO_SUPER_USER_PASSWORD
    python manage.py shell -c "from django.contrib.auth.models import User; \
        user = User.objects.filter(username='$DJANGO_SUPER_USER_NAME').first(); \
        user.set_password('$DJANGO_SUPER_USER_PASSWORD') if user else \
        User.objects.create_superuser('$DJANGO_SUPER_USER_NAME', '$DJANGO_SUPER_USER_EMAIL', '$DJANGO_SUPER_USER_PASSWORD')"

    # Collect static files
    python manage.py collectstatic --noinput
}

# Activate the virtual environment
. /.venv/bin/activate

# Set up Django
setup_django

## List files in the virtual environment
#ls /.venv/bin
#pip install gunicorn
## Check the location of Gunicorn
#which gunicorn

#Start Gunicorn
#pipenv run gunicorn -b :8000 --access-logfile - --error-logfile - config.wsgi:application
gunicorn -b :8000 --access-logfile - --error-logfile - config.wsgi:application

Note: When I try to run the application with pipenv run gunicorn -b :8000 --access-logfile - --error-logfile - config.wsgi:application, I get the error pipenv is not found. I also tried running pipenv install --system --deploy --ignore-pipfile, but that did not work either.

Its because you are copying the .venv directory directly so pipenv looses context of this virtualenv mapping to this project space in the container.  You could try putting the .venv into the .venv directory of the project and use the flag PIPENV_VENV_IN_PROJECT=1 which is popular, or you can reference the gunicorn binary path directly from the .venv (which is what I do in many cases).


pagefind search

https://github.com/cloudcannon/pagefind seems cool; would be nice to try this instead of stork/flexsearch if it performs sufficiently well.

There is also https://stork-search.net/ -- Impossibly fast web search, made for static sites

Stork is already supported, but isn't better than flexsearch imho.


feat(@angular/cli): add --compress option

By default, gzip compression is enabled in production mode. There are several use cases, where gzip compression might not be supported and/or required

[x] Environments where gzip compression is not required

App frameworks using native WebViews (eg. Apache Cordova, Phonegap)
Web Extensions (eg. Mozilla Firefox, Google Chrome and Microsoft Edge)

[x] Environments where a server-side compression method is preferred

Usage
$ ng build --prod --compress=false

or
$ ng serve --prod --compress=false

Example Output
$ ng --help
ng build <options...>
  Builds your app and places it into the output path (dist/ by default).
  aliases: b
  --target (String) (Default: development)
    aliases: -t <value>, -dev (--target=development), -prod (--target=production)
  ...
  --compress (Boolean) (Default: true) use gzip compression in production mode
  ...

Basic Implementation
We simply wrap the plugin with a conditional operator and void the output, if the expression evaluates to false
  plugins: [
    ...
    buildOptions.compress ? new CompressionPlugin({...}) : (): void => null
  ]

This is perfectly fine, since Webpack installs a plugin by calling its apply method, passing a reference to the Webpack compiler object.
Related Issues

https://github.com/angular/angular-cli/pull/2621#issuecomment-253851611
https://github.com/angular/angular-cli/issues/2028

Related Pull Requests

https://github.com/angular/angular-cli/pull/2621

Awaiting https://github.com/angular/angular-cli/issues/4596 to add e2e end-to-end tests

Hi @0xCHERRY,
After an offline discussion here with the team we decided to remove the compression plugin entirely. The reasoning is that there is an easy workaround, it's noise and the service worker is buggy with it.
Could you transform this PR with:

remove compression plugin on production builds all the time,
add a documentation to /doc/documentation explaining how to compress the files, in case users miss the functionality, and
add a BREAKING CHANGE section to your commit message explaining that those files are not outputted anymore.

If you need any help with the above steps let me know.
Cheers!

Superseded by https://github.com/angular/angular-cli/pull/4702

I can't find compress doc in https://github.com/angular/angular-cli/tree/master/docs/documentation
please let me where it is.


Add last update date

Would you consider adding a "last updated" line to each console in https://www.copetti.org/writings/consoles/? The "recently updated" section only have 3 entries so it's kinda impossible to keep track of what console is updated from the last read

It's a good idea, I'll study a way to show this without overloading the current design.


Embedded Page

WG-Embedded

Artifacts

Visual examples of projects (videos - hobbyist projects)
Getting started documentation

audience: knows some Rust and some embedded
can point to extra docs like the Rust book / Discovery book

Production users / user stories
Attributes

code reuse: drivers that run everywhere. Image constrast

Critique

might have a different audience (developers or CTOs??)
Florian thinks this would be a very good thing based on his trip to Embedded World

Hi guys, would you mind if we add a testimonial of slowtec? (see  https://github.com/rust-embedded/wg/issues/108#issuecomment-434796760)


Avoid EIO while testing on linux

Relates to #116

Thanks for putting time and effort in to this, @ScoreUnder! I'll merge this.


OSX compilation

It seems that Quantiks does not compile because Tectronic does not compile on OSX M1 chip (arm64)

      Info Packages marked with ⌃ and ⌅ have new versions available, but those with ⌅ are restricted by compatibility constraints from upgrading. To see why use `status --outdated -m`
    Building GR → `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/cf0a9940f250dc3cb6cc6c6821b4bf8a4286cf9c/build.log`
Precompiling project...
  ✗ QuantumClifford
  ✗ QuantumCliffordPlots
  71 dependencies successfully precompiled in 56 seconds. 366 already precompiled. 2 skipped during auto due to previous errors.
  2 dependencies errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the packages
[ Info: Precompiling QuantumClifford [0525e862-1e90-11e9-3e4d-1b39d7109de1]
ERROR: LoadError: Cannot locate artifact 'tectonic_bin' for aarch64-apple-darwin-libgfortran5-cxx11-julia_version+1.8.

Thanks for reporting this!
If you do not need the plotting functionality, you can still use the library. Just ] rm QuantumCliffordPlots (the one that depends on Quantikz), and keep QuantumClifford.
In the meantime I will try to figure out what options there are for Tectonic to run on arm64.

It seems fixing this mostly depends on the following:
Either fixing these two issues with Tectonic.jl:

https://github.com/MichaelHatherly/Tectonic.jl/issues/13
https://github.com/JuliaPackaging/Yggdrasil/issues/5633

Or taking this approach in Quantikz.jl

https://github.com/Krastanov/Quantikz/issues/11

@BoltzmannEntropy , if you have the time to spare, help with the last issue would certainly be appreciated. It should be as simple as using tectonic_jll instead of using Tectonic and some changes to Project.toml, but having it tested by someone with an M1 chip would help a lot.

Sure, I shall give it a try tomorrow. Thanks!

done in upstream Quantikz.jl


Translate Lesson 15 into Urdu

Could you please assign this issue to me and add a hacktoberfest label?


Misc fixes and updates

I'm :+1: as long as we put .kitchen back in chefignore and get a green appveyor

If you rebase on master now, the style should be good.

@mwrock .kitchen* is still in there


[RFC] Automatically retry a failed load-based auto-scale event

1. Every 5 mins the scaling status of the load based auto scale enabled clusters is checked.
2. If there is a failure in scale event then it is retried.
3. As a side effect also retries manual scale operation failures.
4. To prevent perpetual retries added a couple of restrictions like one retry per day for a failure which is reset upon successive auto-scaling activity.

Yeah, preventing escalations for scaling failures was the motivation. Good point on flows getting stuck for a long time. Another case where it gives a terrible experience is when there is an NPE in the scaling flow.

Changed the logic to do retry only for load-based scaling. Also introduced extra checks not to retry more than once in a day, if there are no other successive scaling activities. Will close this PR, because the end-to-end testing shows that even though the request can be retried it is not fruitful in many cases where there has to be a node repair or node deletion for the upscale or downscale retry to work. The upscale cluster manager is a huge flow operation and making an idempotent retry is not possible. Will certainly be useful for the alternate mechanism of scaling where there are fewer operations and it is possible to make the operations idempotent.

One other issue I found during testing. If the decommission fails then the node status becomes decommission failed, but the cluster and stack status is made available. Autoscale thinks that it should not perform further scaling operations when some nodes are in node failure state. The retry does not work because the scale operation was not marked as a failed one.


Generate input types [Finishes #157980083]

Generates input types as well as scans operations to find enumerated types.

I started rewriting this awhile back in my free time, but no cigar. Wish I could PR my changes into the original project, but the guy does some dumb stuff.


BUG: Power cycling a Pi 4 with this pallet results is Zwave all off line

Contact Details (optional)
<EMAIL_ADDRESS>What happened?
If you power cycle a pi4 with this pallet install, when the node red starts up the zwave device is stuck off line. Below is a cut from the log. Restarting Node red will fix the problem. It looks like the node red pallet is running before the Aeotec Z-Stick Gen5 is ready. The pallet does not retry the connection.
2021-07-22T23:33:00.586Z DRIVER « [RES] [GetSUCNodeId]
                                payload: 0x01

2021-07-22T23:33:00.594Z CNTRLR   This is the SUC
2021-07-22T23:33:00.607Z DRIVER   Failed to initialize the driver: Failed to lock DB file "/root/.node-red/zwave
                              -js-cache/ec16151b.values.jsonl"!

2021-07-22T23:33:00.609Z NDERED   [ERROR] [DRIVER] Failed to initialize the driver: Failed to lock DB file "/roo
                              t/.node-red/zwave-js-cache/ec16151b.values.jsonl"!

2021-07-22T23:33:00.612Z DRIVER   destroying driver instance...
2021-07-22T23:40:54.884Z NDERED « [EVENT] Payload received.
2021-07-22T23:40:54.887Z NDERED   [ERROR] [INPUT] Node 20 does not exist.
How to reproduce?

Setup zwave pallet on a pi4 with 1 device.
Reboot pi4 with out power cycling.
Test zwave working.
Remove power from pi4
Re-connect power to pi4
Zwave Pallet not stuck at starting.

to fix this problem, restart node red or do a soft reboot (with out removing power) on the pi4
Version
v4.1.0
Node-RED Version
1.3.x
What hardware are you seeing the problem on?
Raspberry Pi
Relevant Z-Wave-JS log output
2021-07-22T23:33:00.586Z DRIVER « [RES] [GetSUCNodeId]

                                    payload: 0x01

2021-07-22T23:33:00.594Z CNTRLR   This is the SUC

2021-07-22T23:33:00.607Z DRIVER   Failed to initialize the driver: Failed to lock DB file "/root/.node-red/zwave

                                  -js-cache/ec16151b.values.jsonl"!

2021-07-22T23:33:00.609Z NDERED   [ERROR] [DRIVER] Failed to initialize the driver: Failed to lock DB file "/roo

                                  t/.node-red/zwave-js-cache/ec16151b.values.jsonl"!

2021-07-22T23:33:00.612Z DRIVER   destroying driver instance...

2021-07-22T23:40:54.884Z NDERED « [EVENT] Payload received.

2021-07-22T23:40:54.887Z NDERED   [ERROR] [INPUT] Node 20 does not exist.

Good Morning,
Thanks for reporting the issue.
The backend driver, that this module uses, employs file locking.
And given the nature of pulling the power, means a file lock may still be... well ..... locked.
There should be a 10s stale time however - so not sure why the locking mechanism seems to think, it all happened within 10 seconds (Though not impossible)
In any case, I don't recommend just pulling the power like this, but if you really need to, allow 5 seconds before restoring power - for the file lock to expire fully.
Or the better option, reboot correctly, which the file locking mechanism knows how to handle.
Also, You don't need to restart, just make a change on the controller node (renaming it is good enough), then redeploy, this will restart the driver.
In the mean time, I could look to work around this behaviour - But I am not overly excited, for building work arounds like this.

@WarrenEvans,
I have now implemented recovery logic.
If, for whatever reason, there is a file lock upon startup, it will retry up to a maximum of 3 times (5 second wait in-between).
This also covers any other critical error, say if the USB stick suddenly has an episode of power loss.
I will try and push out an update later today.

V4.3.0 Released.


[PE-D][Tester E] The required format for searching for dates is not specified

It is possible to set dates using alternative formats, like edit 1 db/20220909 and edit 1 db/25 Dec 2020
However, searching for dates requires the exact format YYYY-MM-DD, so search db/20220909 does not work.
This should be clearly documented in the UG or command outputs, or the search function be revamped for consistency. Otherwise, a user who exclusively types in the format of something like 15 Oct 2023 when inputting data will not be able to search for dates in the same format, and may thus be confused.

Labels: severity.Medium type.DocumentationBug
original: wxwern/ped#7

Thoughts? @euchangxian @wjayee
If we stick to YYYY-MM-DD then we should change the DoA and DoB format in add and edit, else we include the other date formatting for search as well

Will be sticking to YYYY-MM-DD for dates , specified in UG as seen in #186


VSCode's Icon display wired in Finder.app's toolbar.

Version: 1.55.0
Commit: c185983a683d14c396952dd432459097bc7f757f
Date: 2021-03-30T16:01:05.981Z
Electron: 11.3.0
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: <IP_ADDRESS>-electron.0
OS: Darwin x64 20.3.0
Steps to Reproduce:

Open macOS's Finder.app.
Open quick menu, and click Customize toolbar..., drag VSCode onto toolbar.
You will find VSCode icon is shows abnormal, like abrasion.

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

/duplicate and will be fixed in upcoming 1.55.1


Alembic logging to insecure location

Bug Description
Alembic is logging to /app/.venv/lib/python3.12/site-packages/langflow/alembic/alembic.log
In a secure environment, the site-packages directory should be read-only.
When starting in such an environment, I get the following stack trace:
% kubectl logs pod/langflow-0
LF_CHART_EXTERNALDB_DRIVER is set, using external database at langflow-ide-postgresql-service
Starting Langflow v1.0.18...
[10/22/24 10:56:01] ERROR    2024-10-22 10:56:01 - ERROR    - utils utils.py:127
                             - [Errno 30] Read-only file system:
                             '/app/.venv/lib/python3.12/site-packag
                             es/langflow/alembic/alembic.log'
                    ERROR    2024-10-22 10:56:01 - ERROR    - main - main.py:101
                             [Errno 30] Read-only file system:
                             '/app/.venv/lib/python3.12/site-package
                             s/langflow/alembic/alembic.log'
                    ERROR    2024-10-22 10:56:01 - ERROR    -   __init__.py:1762
                             __init__ - Traceback (most recent
                             call last):
                               File
                             "/app/.venv/lib/python3.12/site-pa
                             ckages/starlette/routing.py", line
                             732, in lifespan
                                 async with
                             self.lifespan_context(app) as
                             maybe_state:
                               File
                             "/usr/local/lib/python3.12/context
                             lib.py", line 210, in __aenter__
                                 return await anext(self.gen)
                                        ^^^^^^^^^^^^^^^^^^^^^
                               File
                             "/app/.venv/lib/python3.12/site-pa
                             ckages/langflow/main.py", line 91,
                             in lifespan
                                 initialize_services(fix_migrat
                             ion=fix_migration,
                             socketio_server=socketio_server)
                               File
                             "/app/.venv/lib/python3.12/site-pa
                             ckages/langflow/services/utils.py"
                             , line 168, in initialize_services
                                 raise exc
                               File
                             "/app/.venv/lib/python3.12/site-pa
                             ckages/langflow/services/utils.py"
                             , line 166, in initialize_services
                                 initialize_database(fix_migrat
                             ion=fix_migration)
                               File
                             "/app/.venv/lib/python3.12/site-pa
                             ckages/langflow/services/database/
                             utils.py", line 128, in
                             initialize_database
                                 raise exc
                               File
                             "/app/.venv/lib/python3.12/site-pa
                             ckages/langflow/services/database/
                             utils.py", line 108, in
                             initialize_database
                                 database_service.run_migration
                             s(fix=fix_migration)
                               File
                             "/app/.venv/lib/python3.12/site-pa
                             ckages/langflow/services/database/
                             service.py", line 176, in
                             run_migrations
                                 with open(self.script_location
                             / "alembic.log", "w") as buffer:
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^
                             ^^^^^^^^^^^^^^^^^^^^^^
                             OSError: [Errno 30] Read-only file
                             system:
                             '/app/.venv/lib/python3.12/site-pa
                             ckages/langflow/alembic/alembic.lo
                             g'

                    ERROR    2024-10-22 10:56:01 - ERROR    -   __init__.py:1762
                             __init__ - Application startup
                             failed. Exiting.
[10/22/24 10:56:02] ERROR    2024-10-22 10:56:02 - ERROR    -   __init__.py:1762
                             __init__ - Worker (pid:32) exited
                             with code 3
                    ERROR    2024-10-22 10:56:02 - ERROR    -   __init__.py:1762
                             __init__ - Shutting down: Master
                    ERROR    2024-10-22 10:56:02 - ERROR    -   __init__.py:1762
                             __init__ - Reason: Worker failed
                             to boot.

Reproduction
Deploy LangFlow into an OpenShift environment where the securityContext includes readOnlyRootFilesystem: true and runAsNonRoot: true. More complete example available here: https://github.com/langflow-ai/langflow-helm-charts/pull/15/files
Expected behavior
It should be possible to set this log path via an environment variable. If at least it was a directory instead of a file, I could use a bind-mount to override it, but when I bind-mount /app/.venv/lib/python3.12/site-pa ckages/langflow/alembic/, it breaks the library since other files are present in that directory.
Not sure how to proceed.
I'm hoping this is something we can fix in our implementation, rather than needing the upstream repo to change, since this is blocking deployment for a customer.
Who can help?
No response
Operating System
OpenShift 4.14
Langflow Version
1.0.18
Python Version
3.10
Screenshot
No response
Flow File
No response

When I bind-mount the entire alembic directory, I unsurprisingly get this error:
[10/22/24 12:07:46] ERROR    2024-10-22 12:07:46 - ERROR    -     service.py:196
                             service - Error initializing
                             alembic: Can't find Python file
                             /app/.venv/lib/python3.12/site-packa
                             ges/langflow/alembic/env.py

It looks like the log is set here:
https://github.com/langflow-ai/langflow/blob/f0eb7b50a6b56322bc854892dc012d578b957892/src/backend/base/langflow/services/database/service.py#L181
If I change the script directory, will that break anything?

I overwrote these values:
[alembic]
# path to migration scripts
#script_location = alembic # This was the old directory.
script_location = /data/migrations

# Point to a specific versions folder (under your project directory)
version_locations = /data/migrations/versions

Seems to have gotten beyond the error, though now I'm hitting a postgres connection issue, so I'm not sure if the problem is solved. (Might be unrelated.)

✨✨ Here's an AI-assisted sketch of how you might approach this issue saved by @ogabrielluiz using Copilot Workspace v0.25


[Improvement] In the Gravitino CLI have "gcli metalake --help" and "gcli metalake help" produce the help output

What would you like to be improved?
Provide entity help with the --help option.
How should we improve?
Do this for all entities not just metalakes.

I would like to work on it.but I found a similar command gcli metalake help, gcli catalog help and gcli schema help, Should I override this feature？

We want gcli entity --help to work as well as gcli entity help, which already works. We want both to work.


[issue] Weird extra '|' icon

macOS 11.2.2 on intel processor.
After update to the latest version in AppStore, a translucent '|' icon appears when "Enables always hidden section" option selected.

When the "Enables always hidden section" option unselected, the translucent icon just not shown but not disappeared, the space between icons still remains, and can be dragged with Command key holding.

Thanks.

hanks for your question , we need add a quick guide for it in the next version of the app.
Some icons you want to make it disappear forever, how to do it?
We add new alway hide bar, drag it in the left hand side of normal bar then move any icons you want to disappear on the left of that bar, after that, simple right click on collapse (>) icon to make it disappear.
For example:
First step
Here i want to alway hide top 3 icons (BaseCamp, Warp and Skype). I also want to hide US keyboard as normally (just like old version easy to toggle and show hide).
I put top 3 icons at the left hand side of away hidden bar.
I put US keyboard at the middle of 2 bar.
<Screen Shot 2021-02-28 at 18.53.45.png>
Step 2:
Right click on > icon
The alway hide is trigger then hide top 3 icons above
<Screen Shot 2021-02-28 at 18.53.51.png>\
Step 3:
Continue left click on >
The keyboard US is hide normally.
If you left click again it will show US keyboard like step 2
If you right click you will see top 3 alway hide icons like the first image
<Screen Shot 2021-02-28 at 18.54.39.png>

hanks for your question , we need add a quick guide for it in the next version of the app.
Some icons you want to make it disappear forever, how to do it?
We add new alway hide bar, drag it in the left hand side of normal bar then move any icons you want to disappear on the left of that bar, after that, simple right click on collapse (>) icon to make it disappear.
For example:
First step
Here i want to alway hide top 3 icons (BaseCamp, Warp and Skype). I also want to hide US keyboard as normally (just like old version easy to toggle and show hide).
I put top 3 icons at the left hand side of away hidden bar.
I put US keyboard at the middle of 2 bar.
<Screen Shot 2021-02-28 at 18.53.45.png>
Step 2:
Right click on > icon
The alway hide is trigger then hide top 3 icons above
<Screen Shot 2021-02-28 at 18.53.51.png>\
Step 3:
Continue left click on >
The keyboard US is hide normally.
If you left click again it will show US keyboard like step 2
If you right click you will see top 3 alway hide icons like the first image
<Screen Shot 2021-02-28 at 18.54.39.png>

Thanks for replying. ^_^

Please keep it Open so other people can see this. I will close when we have new version with quick guilds.

Here's my menubar on Big Sur. Even after I restart my Mac the icons to the left of the translucent bar still show up. Is there an issue or am I not understanding how it's supposed to work?

Icons to the left of the solid bar - appear when you reveal the "Hidden Bar"
Icons to the left of the translucent bar - do not appear even when you reveal the "Hidden Bar", but continue to work in the background
The difference is that there are some applications that force a menu bar icon despite its lack of purpose. You would want these completely hidden (so the application can still continue on in the background). This is unlike those in the "Hidden Bar" which you may still want accessible, but don't necessarily need enough to warrant constant visibility/just prefer a cleaner look. If you use a lot of applications, even the "Hidden Bar" can get unwieldy and either way it's annoying to have focus taken off icons you do use with those you never will.
Your confusion likely stems from the function created to move icons between these sections. Actually really easy, but I don't think they clearly documented it in the application itself.
In order to see the hidden section, so it's easy to move icons in/out, RIGHT click on the collapse > icon. That allows you to see both bars (solid and translucent). When you're done adjusting the icon sections, simply right click on the collapse > icon again.
There does seem to be a glitch that makes both bars disappear, solid and translucent (or maybe that was intentional?), however the icons show/stay hidden correctly
And it has to be in this order, otherwise you can't "lock in" the hidden section/it won't disappear:
Correct: (icon)(icon) |translucent| (icon)(icon) |solid| ....(<)....
Wrong: (icon)(icon) |solid| (icon)(icon) |translucent| ....(<)....

Ahhh, thanks. Right-click was the thing that helped me to understand this. I guess I got it stuck on the "mode" where I see both bars and I am supposed to adjust them and I never right-clicked the arrow to hide the translucent line. Thank you very much.

new tutorial finished and merge to develop, please wait for the next release.


Better error handling + failure messages

Closes #2

@segiddins I will get to this. At the moment, I’m doing too much rejiggering in Quickdraw to get my head back into this state. I’m planning quite a large breaking change to make Quickdraw work better with Ruby LSP.


Image is null after its saved on local memory..

Hello
Description:
I'm using (image_picker: ^0.8.5+3) package to pick the images from gallery and camera and then upload them on backend server (django by using django rest framework)
Issue:
Image is getting null outside picker function, even though state has been set by using setSatet(() {}) method
Failed Solutions:
I tried to save the image locally before uploading the image on the backend, But image still shown null once its used or referenced outside picker function
Note: backend API's works fine and i can upload images by using postman
picker function:

  // Get image from gallery and store it locally
  Future<File?> _getFromGallery() async {
    final XFile? image = await _picker.pickImage(source: ImageSource.gallery);
    if (image == null) {
      return null;
    }

    final File file = File(image.path);
    final Directory directory = await getApplicationDocumentsDirectory();
    final imagepath = directory.path;
    final String fileName = path.basename(image.path);

    File newImage = await file.copy('$imagepath/$fileName');
    setState(() {
      _imagelocal = newImage;
      print('image.path1');
      print(_imagelocal!.path);
    });
  }

Uploading image function:
_uploadimage() async {
      Map<String,String> header = {
        "Content-Type":"application/octet-stream)"
      };
      print("uploaded image invoked");
      var request = http.MultipartRequest('POST', Uri.parse('http://<IP_ADDRESS>:8000/api/uploadimage'));

      // request.files.add(await http.MultipartFile('image',http.ByteStream(image.openRead()).cast(),await image.length(),filename:image.name, contentType: MediaType('image', 'jpg')));
      request.files.add(await http.MultipartFile('LoadModelImage',http.ByteStream(_imagelocal!.openRead()).cast(),await _imagelocal!.length(),));
      request.headers.addAll(header);
      //for completeing the request
      var response =await request.send();

      //for getting and decoding the response into json format
      var responsed = await http.Response.fromStream(response);
      final responseData = json.decode(responsed.body);

      if (response.statusCode==201) {
        print("SUCCESS");
        print(responseData);
      }
      else {
        print("ERROR");
      }

    }

Hi @halhwadi, please provide the version of path_provider you're using as well as the output of flutter doctor -v.
Also, what platform(s) are you experiencing this issue on?

Hello
thanks for your quick response, please fnd the details below:
path_provider version is 2.0.10
pubspec.yaml:
dependencies:
  flutter:
    sdk: flutter
  flutter_localizations: # localization
    sdk: flutter
  intl: ^0.17.0
  http: ^0.13.4
  shared_preferences: ^2.0.13
  loading_animations: ^2.2.0
  connectivity_plus: ^2.3.0
  permission_handler: ^9.2.0
  flutter_map: ^0.14.0
  maps_launcher: ^2.0.1
  image_picker: ^0.8.5+3
  path_provider: ^2.0.10

Flutter Doctor:(Note: No need for Visual Studio as I'm developing mobile app)
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.0.0, on Microsoft Windows [Version 10.0.19044.1706], locale en-AE)
• Flutter version 3.0.0 at C:\Users\Husam.Alhwadi\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision ee4e09cce0 (9 days ago), 2022-05-09 16:45:18 -0700
• Engine revision d1b9a6938a
• Dart version 2.17.0
• DevTools version 2.12.2
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc2)
• Android SDK at C:\Users\Husam.Alhwadi\AppData\Local\Android\Sdk
• Platform android-32, build-tools 33.0.0-rc2
• ANDROID_HOME = C:\Users\Husam.Alhwadi\AppData\Local\Android\Sdk
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[X] Visual Studio - develop for Windows
X Visual Studio not installed; this is necessary for Windows development.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 2021.1)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)
[√] VS Code (version 1.67.1)
• VS Code at C:\Users\Husam.Alhwadi\AppData\Local\Programs\Microsoft VS Code
• Flutter extension can be installed from:
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[√] Connected device (4 available)
• SM A125F (mobile) • R58R1008B2E • android-arm64  • Android 10 (API 29)
• Windows (desktop) • windows     • windows-x64    • Microsoft Windows [Version 10.0.19044.1706]
• Chrome (web)      • chrome      • web-javascript • Google Chrome 101.0.4951.67
• Edge (web)        • edge        • web-javascript • Microsoft Edge 101.0.1210.39
[√] HTTP Host Availability
• All required HTTP hosts are available

Issue has been solved, I was calling both function sequentially inside elevatedbutton, hence uploadimage function executed  completely before getting the image from picker function (though Picker function is quick) and that's why image was null, recommended solution is either to merge both functions in one function or call uploadimage function inside setState((){}) method in getimagegallery function


[Range slider] Handlers don't position correctly.

Handlers don't position correctly when I use both slide range and input range. It can be easily reproduced on the demo site:
http://vasyabigi.github.io/angular-nouislider/

Set RangeTo to f.e. 85 by slider. It is important to use slider.
Set RangeTo to f.e. 40 by input field.
Try to set 85 by input field.
Try to set any other value than 85.

Handler doesn't move when it comes to setting previously used value.  It seems that current position of handler is stored in cache only when I use slider directly. If position is changed by input field then current handler position cache is not refreshed.

+1


Suggestion: Statistics sorted in output log

Hi,
It would be great if the statistics (alignments unplaced, etc) were always output in the same order in the log. When comparing multiple logs, it's annoying that the same statistic seems to be randomly placed.
For example, here is one statistic across multiple logs:

Thanks,
Tim

Hi Tim,
That makes total sense, Tim. They are actually sorted, but they are sorted by the amount filtered (i.e. most exclusive filter to least). I will add this as a new feature.
Thanks.
Chris


When download your solution and trying to compile in vs2019, nothing works

Please your help. I have downloaded your solution but i am not able to compile neither to run.
I also downloaded your executable demos, but they don't run in Windows 10. Am i missing something?
Thanks in advance.

Also, the Samples webpage is not working :(

Hi,
do build the project make sure you have installed the .NET Core 3.0 SDK.
Indeed there is a problem with the samples download page. I will have a look at that soon.
In the meantime an older version of the samples application can be downloaded here.

The samples download page should now work again.

Hi, i am trying to use your component with  WPF .Net 4.8, do i still need .NET Core 3.0?

For using the nuget package you don't need .NET Core. The nuget package ist compatible with every .NET Framework version higher than 4.5. If you just want to use the project in you own app, this is the right way.
But if you want to build the project yourself you need it because the project does multi target .NET Framework 4.5 and NET Core 3.0.
Could you run the updated samples application?

Hi, i downloaded the 64 bit version from here:
https://github.com/sbaeumlisberger/VirtualizingWrapPanel/blob/master/SamplesApplication.md
However, there is a weird flickering in the application. When i move over the tabs they dissapear, and there is rare behaviour in the UI. Are you aware of that?

This issues are new to me. On my machine Windows 10 (19041.450) everything works fine.

I'm going to close this issue now. If you still having difficulties using the project, open a new issue with a detailed description.


Role perms

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


⚠ main has degraded performance

In c64398f, main ($MAIN_API_URL) experienced degraded performance:

HTTP code: 200
Response time: 22071 ms

Resolved: main performance has improved in 40d320d.


ASAN: disable container overflow detection.

Swift's libReflection builds without ASAN because it inheriuts the
build settings of the stdlib. This causes a known false positive in
std::vector.
rdar://problem/46787949

@swift-ci test and merge

cf. https://github.com/google/sanitizers/wiki/AddressSanitizerContainerOverflow

Apparently the correct string has always been "detect_..." (since r206753), so it's weird that our previous attempt to suppress this diagnostic had any effect at all. We should safely be able to delete the 'container_overflow=0' bit.

I'll try to make that change upstream in llvm.org

@swift-ci test and merge

@swift-ci test

@swift-ci test and merge


Add ability to plot ellipses

I'd like to add the ability to plot ellipses.  The path forward seems to be to add and skyaxes.ellipse function next to the skyaxes.circle function
https://github.com/LSSTDESC/skyproj/blob/d46052ee9cda7277b06bcc008ea022ba66518757/skyproj/skyaxes.py#L233
The key is then to figure out what the dist argument should be as a function of az in the call to geod.fwd
Does the following seem basically right?
    def circle(self, lon, lat, radius, nsamp=100, fill=False, **kwargs):
[...]
        az = np.linspace(360.0, 0.0, nsamp)
        lons, lats, _ = geod.fwd(
            np.full(nsamp, lon, dtype=np.float64),
            np.full(nsamp, lat, dtype=np.float64),
            az,
            np.full(nsamp, radius_m)
        )

    def ellipse(self, lon, lat, a, b, theta, radius, nsamp=100, fill=False, **kwargs):
[...]
        az = np.linspace(360.0, 0.0, nsamp)
        pa_offset = 90  # Position Angle is defined as degrees East of North
        pa_offset_in_radians = np.deg2rad(pa_offset)
        phase_in_radians = np.deg2rad(az - theta - pa_offset)

        theta_in_radians = np.deg2rad(theta)
        rotated_x = a * np.cos(phase_in_radians)
        rotated_y = b * np.sin(phase_in_radians)
        x = rotated_x * np.cos(theta_in_radians - pa_offset_in_radians) - rotated_y * np.sin(theta_in_radians - pa_offset_in_radians)
        y = rotated_x * np.sin(theta_in_radians - pa_offset_in_radians) + rotated_y * np.cos(theta_in_radians - pa_offset_in_radians)
        dist = np.sqrt(x**2 + y**2)
        lons, lats, _ = geod.fwd(
            np.full(nsamp, lon, dtype=np.float64),
            np.full(nsamp, lat, dtype=np.float64),
            az,
            dist,
        )

Oh, and you would need to convert
a_m = RADIUS * np.deg2rad(a)
b_m = RADIUS * np.deg2rad(b)
and use those in calculating x, y (or rotated_x and rotated_y in the above snippet).

Ooh, clever!  If you want to make a PR you are welcome.  Or I can incorporate this into my next update which is overhauling the way that RADIUS is used because right now it can get out of sync.

Great.  I'll make  PR.

In case anyone from the future reads this Issue, my proposed math was wrong.  The correct answer for calculating the dist=r(theta) for the ellipse is
        # Position Angle is defined as degrees East from North
        phase_rad = np.deg2rad(az - theta)
        denom = np.sqrt((b_m * np.cos(phase_rad))**2 + (a_m * np.sin(phase_rad))**2)
        dist = a_m * b_m / denom


Obstacle View - Missing IP address

Reported by @marvinwankersteen.
Where does the IP address/hostname from which HA downloads the image come from? Because mine says:
obstacles:
- point:
    x: 2978
    'y': 2450
  label: Obstacle (70%)
  link: >-
    http://None/api/v2/robot/capabilities/ObstacleImagesCapability/img/cc948342-e069-5d68-aab3-8c8cf93e75ab

HA logs:
2024-12-05 18:20:43.315 ERROR (ThreadPoolExecutor-6_0) [custom_components.mqtt_vacuum_camera.camera] Error downloading image: Cannot connect to host none:80 ssl:default [Domain name not found]

My workaround in HA currently looks like this:
grep none /etc/hosts
<ip-of-robot> none

Originally posted by @marvinwankersteen in https://github.com/sca075/mqtt_vacuum_camera/issues/286#issuecomment-2521007266

@marvinwankersteen yes you are correct.. the topic is setup in the const.py and it is correct according to the code. But I had to set a filter as sometime there is IPv4,IPv6 so or I have a bug on this filter or something else is happening. As mentioned earlier an option to solve this would be to use the api instead (url to the robot in the MQTT config) in the case for some reason this subscription fails to get this value.

@marvinwankersteen Well I found the issue... and the fix will be out in the next hours.

@marvinwankersteen thanks a lot.. changed the package for the new downloads.. removing the True from there.

@marvinwankersteen please do not forget to let me know also if the Obstacle View has problems as reported on #295 thanks for your feedback and have a nice weekend.