[Bug]: Various issues with dolphin

Prerequisites

[X] I have written a descriptive issue title.
[X] I have searched all issues/PRs to ensure it has not already been reported or fixed.
[X] I have verified that I am using the latest version of Scoop and corresponding bucket.

Package Name
dolphin
Expected/Current Behaviour
I noticed there are a few issues with the dolphin packages, such as:

[x] Missing extract_dir (only in dolphin)

User directory in persist is in the wrong directory because of this

[x] The download link should be in architecture.64bit, since there's no 32-bit version
[x] Missing ARM download

[ ] ARM URL for dolphin-dev is complicated, since the "rand1" and "rand2" matches aren't the same as X64, probably requiring a custom script, which is beyond my knowledge

[x] The pre_install script only migrates from the old user directory in Documents and not the new user directory in AppData.

[x] Probably don't mess with user space. (Don't delete the old folder...)
[ ] It also doesn't account for if the scoop package is installed globally, like prismlauncher does. Not sure if this is necessary?

[x] #1182
[X] dolphin-beta is no longer updated and should probably be removed
[ ] Should the updater be removed? It doesn't look like Dolphin correctly detects it being missing...

Steps to Reproduce
N/a

Possible Solution
I'm working on the PR to fix most of these issues, but I would like feedback if I should modify the pre_install script to more closely resemble prismlauncher's.
Scoop and Buckets Version
Current Scoop version:
859d1db5 (HEAD -> master, tag: v0.5.2, origin/master, origin/HEAD) chore(release): Bump to version 0.5.2 (#6080)

'main' bucket:
1e2f1397b (HEAD -> master, origin/master, origin/HEAD) radius: Update to version 0.37.0

'extras' bucket:
91a8e2a44 (HEAD -> master, origin/master, origin/HEAD) telegram: Update to version 5.4.1

'versions' bucket:
62beda86f (HEAD -> master, origin/master, origin/HEAD) prismlauncher-git: Update to version 7.0-1b756b9

'nirsoft' bucket:
c22d12d (HEAD -> master, origin/master, origin/HEAD) Update url list [ci skip]

'nerd-fonts' bucket:
b17bbac0 (HEAD -> master, origin/master, origin/HEAD) SarasaGothic: Update to version 1.0.19

'nonportable' bucket:
f73469fd (HEAD -> master, origin/master, origin/HEAD) 10x-np: Update to version 1.0.203

'java' bucket:
84b7bb31 (HEAD -> master, origin/master, origin/HEAD) temurin11-nightly-jre: Update to version 11.0.25-3.0.ea

'games' bucket:
4481f5091 (HEAD -> master, origin/master, origin/HEAD) stonecutter: Update to version 1.2.0

'charm' bucket:
84437d8 (HEAD -> main, origin/main, origin/HEAD) Scoop update for markscribe version v0.8.1

Scoop Config
last_update          scoop_repo                              scoop_branch shim
-----------          ----------                              ------------ ----
8/19/2024 4:43:58 PM https://github.com/ScoopInstaller/Scoop master       kiennq

PowerShell Version
Name                           Value
----                           -----
PSVersion                      7.4.4
PSEdition                      Core
GitCommitId                    7.4.4
OS                             Microsoft Windows 10.0.22631
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

Additional Softwares
No response

Everything checked in the issue description is finished in the PR. Everything else I either need assistance or feedback on.

ARM URL for dolphin-dev is complicated, since the "rand1" and "rand2" matches aren't the same as X64, probably requiring a custom script, which is beyond my knowledge

It might be worth bringing this up to Dolphin developers to see if the URL can be made more predictable.


minder profile edit

Please describe the enhancement
I would like a minder profile edit command that would let me edit an existing profile
Solution Proposal

grab the current profile
dump it into a YAML file in /tmp
open $EDITOR pointing at the file
upon exiting the editor, pass the contents of the file to UpdateProfile handler

Describe alternatives you've considered
No response
Additional context
No response
Acceptance Criteria
No response

This would be lovely to add, but is not an urgent priority.


iOS, Push.instance.onBackgroundMessage not triggered when app is terminated

In iOS, when the app is terminated by the user, push notifications can still arrive, but Push.instance.onBackgroundMessage is never triggered.

Closing this as it is the expected behavior on iOS as noted here
Excerpt: However, the system does not automatically launch your app if the user has force-quit it. In that situation, the user must relaunch your app or restart the device before the system attempts to launch your app automatically again.

Closing this as it is the expected behavior on iOS as noted here
Excerpt: However, the system does not automatically launch your app if the user has force-quit it. In that situation, the user must relaunch your app or restart the device before the system attempts to launch your app automatically again.

Then how apps like WhatsApp, Messenger work properly even if app is forcefully terminated?

Closing this as it is the expected behavior on iOS as noted here
Excerpt: However, the system does not automatically launch your app if the user has force-quit it. In that situation, the user must relaunch your app or restart the device before the system attempts to launch your app automatically again.

Then how apps like WhatsApp, Messenger works properly even in terminated state?

Possibly via VoIP notifications from PushKit. See https://developer.apple.com/documentation/pushkit/responding_to_voip_notifications_from_pushkit and https://stackoverflow.com/a/35912009/7365866


Fix Traffic Monitor log EventfRaw for nil loggers

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

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

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


BibTeX rendering improvements

[ ] replace LaTeX codes by Unicode characters
[x] use a cutoff for et al.
[ ] check how the system works for books, etc
[x] see also #75

Replacing strings like {'e} by é seems to be a problem and I have no idea why...

replace(str, r"\{'e\}" => "é")

should work but doesn't?


Invalid assembly redirects

There's a bug in resolving the assembly redirects.
If a package contains a couple of DLLs for each framework, currently the one with the highest version is taken. Unfortunately it's not always a good choice. Example:
packages\Caliburn.Micro\lib\net45\System.Windows.Interactivity.dll //Version <IP_ADDRESS>
packages\Caliburn.Micro\lib\sl5\System.Windows.Interactivity.dll //Version <IP_ADDRESS>
packages\Caliburn.Micro\lib\wp8\System.Windows.Interactivity.dll .//Version <IP_ADDRESS>
So no matter what your project target framework is, you'll always get a redirect to Silverlight version, which might lead to a runtime error.
I found the piece of code that might need changing. I wish I could create a pull request, but I'm a bit afraid that's too complicated for a start. Also I cannot find any tests to the piece of code I'd change...

/cc @isaacabraham

Yes, this is a problem with the binding redirects - there's a number of other issues raised all around this issue. As you put it, if there are multiple versions of an assembly for different frameworks under the same nuget package, there's a chance the wrong one will be selected.
Ideally the code should be changed so that it identifies which version is the appropriate one to use based on the current framework version - the tricky bits are: -

I'm not sure that this information currently flows through the existing logic.
If you change the framework version that you're compiling against (in VS), you'll have the same problem because although paket puts in framework-specific assembly references, there's no such thing as such for binding redirects.

There are some tests around binding redirects (https://github.com/fsprojects/Paket/blob/master/tests/Paket.Tests/BindingRedirect.fs) but I'm not sure if the code that will need modifying is that code or the module that calls it.

Yeah I know there are tests for BindingRedirects.fs.
However there are no binding redirect tests for:
https://github.com/fsprojects/Paket/blob/a3fbc02aa6439ef2269050a35bb960aa3f3303a1/src/Paket.Core/InstallProcess.fs
I think that the bug can be fixed my modifying  applyBindingRedirects root extractedPackages.
Unfortunately there are no tests for it and there has been a couple of changes there already. I'm a bit afraid of modifying the code...
I guess we have the necessary information there. At the beginning we have:
extractedPackages
|> Seq.map(fun (package, model:InstallModel) -> model.GetLibReferencesLazy.Force())
And an extracted package has ResolvedPackage. So I guess we could use
package.Settings.FrameworkRestrictions
to get the framework version we're interested in...

I think that having it working properly during conversion from NuGet would be very welcome.
If you were recommended Paket and you decide to give it a go, and after calling convert-from-nuget you get runtime errors, you might get discouraged and fallback to NuGet.

Yeah this issue is really hard to solve. In my projects I switched back to handle the binding redirects in a different way. The problem is that paket does not know which version you gonna use beforehand because it's adding all versions with the choose element...
What I have done:

I added True to all my projects to ensure that msbuild takes care of that. (works since .net 4.5.1 IMO)
The build process creates a .config that should have all redirects.
Unfortunately web projects won't work with that. As the redirects are not changing that much and very much get covered by testing I do the following on the Nuget Package Manager Console: ´Get-Projects -All | Add-BindingRedirect´

As I have control over my dependency update process, this is part of my procedure. Along with testing this of course

(Possibly the same problem as I posted here: https://github.com/fsprojects/Paket/issues/703)

If you change the framework version that you're compiling against (in VS), you'll have the same problem because although paket puts in framework-specific assembly references, there's no such thing as such for binding redirects.

Just a suggestion/idea:
How about generating an app.config for each framework and then adding some magic to the msbuild files to make it work (in the worst case copying some files on build-time if we can't find a simpler way). This would match with the philosophy of Paket to create entries which can be used on whatever the selected framework is.
Even without the msbuild magic this would already help users by making the update-process a simple copy-paste from the framework specific app.config

@matthid whilst I like that idea, I'm a bit worried about paket generating a million different config files - I'm already told on a regular basis that paket generates too much in the way of binding redirects! :-)
The first part though - of generating redirects based on the framework rather than just the highest version in the package - could be done now and would probably stop 80% of the issues people are seeing.

I'm a bit worried about paket generating a million different config files

Yes that might happen, maybe we need some way to tell Paket which frameworks we care about (which is of course another configuration :-)). Paket could even respect such a config to simplify the project files (default is to support everything).

The first part though - of generating redirects based on the framework rather than just the highest version in the package - could be done now and would probably stop 80% of the issues people are seeing.

This leads to the question which framework? And how do we detect it? We can try to detect it from the fsproj files but I don't think that will work in all cases, because the TargetFramework property could be set by the msbuild invocation, for example within FAKE. So the correct one would not even appear in the **proj files. What about projects which build for multiple frameworks?

mmmm, yes, right. Don't know the answer to that. I'm wondering what does nuget currently do? If we treat that as a baseline perhaps that's a good place to start. Apparently it uses MSBuild - so does it automatically regen configs after every build?

IIRC Visual Studio / NuGet has this notion of a single TargetFramework per project file. Which one can select in Project -> Properties -> Application -> Targetframework. I would assume NuGet just uses that no matter what...

Apparently it uses MSBuild - so does it automatically regen configs after every build?

@Stift mentioned something like that above? I have never seen / used it. And apparently it doesn't work for web projects.

@dzendras: Create a fork, make the changes there - I'm happy to review it once you've done it.

@isaacabraham I'm afraid I won't have time to do it in the next two weeks...


bump up sentence piece package version

Description
Bump up SP package version

Codecov Report

Merging #915 (1082a8d) into master (fc4f0ab) will decrease coverage by 0.02%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #915      +/-   ##
============================================
- Coverage     70.33%   70.30%   -0.03%
+ Complexity     5086     5084       -2
============================================
  Files           501      501
  Lines         22431    22431
  Branches       2334     2334
============================================
- Hits          15776    15771       -5
- Misses         5414     5427      +13
+ Partials       1241     1233       -8

Impacted Files
Coverage Δ
Complexity Δ

...gine/src/main/java/ai/djl/dlr/engine/DlrModel.java
53.12% <0.00%> (-3.13%)
4.00% <0.00%> (ø%)

api/src/main/java/ai/djl/util/Platform.java
43.47% <0.00%> (-2.18%)
8.00% <0.00%> (ø%)

...g/src/main/java/ai/djl/serving/util/Connector.java
55.40% <0.00%> (-1.36%)
21.00% <0.00%> (ø%)

...ngine/src/main/java/ai/djl/mxnet/jna/LibUtils.java
42.23% <0.00%> (-1.25%)
15.00% <0.00%> (ø%)

...ne/src/main/java/ai/djl/mxnet/jna/StringArray.java
92.85% <0.00%> (ø)
9.00% <0.00%> (-1.00%)

...e/src/main/java/ai/djl/mxnet/jna/PointerArray.java
94.11% <0.00%> (ø)
8.00% <0.00%> (-1.00%)

...rc/main/java/ai/djl/paddlepaddle/jni/LibUtils.java
51.14% <0.00%> (ø)
14.00% <0.00%> (ø%)

Continue to review full report at Codecov.

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


Terminal does not adapt its size

Issue Type: Bug
Testing https://github.com/microsoft/vscode/issues/96318.

join Terminal and Output view containers in the panel
collapse both of them
reload you window
expand the terminal
-> see screenshot

VS Code version: Code - Insiders 1.45.0-insider (4bd206856db30c27d38aa0f1fbe74bac6156edc7, 2020-04-29T05:31:36.229Z)
OS version: Darwin x64 18.7.0

I've been trying to find repro steps to get into this state 👍

@sbatten looks like it's on your end?

I guess the other panels don't suffer from this as they use css to layout?

Hopefully this will fix the other issues I've seen where the scroll bar appears on the left like this.

I still see this:

@joaomoreno is the scrollbar in the middle or the end? The problem is fixed for me in both windows and wsl.

It's next to the content:

@Tyriar I debugged this and it seems you are not applying the dimensions properly to terminal tabs created after the initial expand. When the terminal view is expanded, the right dimensions are passed here: https://github.com/microsoft/vscode/blob/9237df9e9ae2275880d97ba4baa583cae73cf02f/src/vs/workbench/contrib/terminal/browser/terminalView.ts#L117-L124
But the next line is about updating existing terminals. This happens on reload and there are no existing terminals yet. The first terminal is then created but is not properly sized.


Decide Whether We Seperate Verb from Endpoint Name

Request: Come to decision on formatting of our endpoint names and whether the verb should prepend the name
Short description:

Current state:

If there's an endpoint called "FooBarAuthorization" and it includes the verbs "List" and "Watch", then we will have two endpoitns in our sunburst: listFooBaurAuthorization and watchFooBarAuthorization"

Desired state:

We either have them be a single endpoint with just its name, and the endpoint object ontains a list of its verbs.  Or we keep our current formatting with good documentation for why.

a single endpoint with just its name, and the endpoint object contains a list of its verbs

This more closely matches OpenAPI spec, and implementation will be a part of https://github.com/cncf/apisnoop/issues/152


[BUG 🪲] window capture getting pink color output in the recorded video

Describe the bug 🐛
use std::{
    any::Any,
    io::{self, Write},
    time::Instant,
};

use windows_capture::{
    capture::GraphicsCaptureApiHandler,
    encoder::{VideoEncoder, VideoEncoderQuality, VideoEncoderType},
    frame::Frame,
    graphics_capture_api::InternalCaptureControl,
    monitor::Monitor,
    settings::{ColorFormat, CursorCaptureSettings, DrawBorderSettings, Settings},
    window::Window,
};

// This struct will be used to handle the capture events.
struct Capture {
    // The video encoder that will be used to encode the frames.
    encoder: Option<VideoEncoder>,
    // To measure the time the capture has been running
    start: Instant,
}

impl GraphicsCaptureApiHandler for Capture {
    // The type of flags used to get the values from the settings.
    type Flags = String;

    // The type of error that can occur during capture, the error will be returned from `CaptureControl` and `start` functions.
    type Error = Box<dyn std::error::Error + Send + Sync>;

    // Function that will be called to create the struct. The flags can be passed from settings.
    fn new(message: Self::Flags) -> Result<Self, Self::Error> {
        println!("Got The Flag: {message}");

        let encoder = VideoEncoder::new(
            VideoEncoderType::Mp4,
            VideoEncoderQuality::HD1080p,
            1920,
            1080,
            "video.mp4",
        )?;

        Ok(Self {
            encoder: Some(encoder),
            start: Instant::now(),
        })
    }

    // Called every time a new frame is available.
    fn on_frame_arrived(
        &mut self,
        frame: &mut Frame,
        capture_control: InternalCaptureControl,
    ) -> Result<(), Self::Error> {
        print!(
            "\rRecording for: {} seconds",
            self.start.elapsed().as_secs()
        );
        io::stdout().flush()?;

        // Send the frame to the video encoder
        self.encoder.as_mut().unwrap().send_frame(frame)?;

        // Note: The frame has other uses too for example you can save a single for to a file like this:
        // frame.save_as_image("frame.png", ImageFormat::Png)?;
        // Or get the raw data like this so you have full control:
        // let data = frame.buffer()?;

        // Stop the capture after 6 seconds
        if self.start.elapsed().as_secs() >= 6 {
            // Finish the encoder and save the video.
            self.encoder.take().unwrap().finish()?;

            capture_control.stop();

            // Because there wasn't any new lines in previous prints
            println!();
        }

        Ok(())
    }

    // Optional handler called when the capture item (usually a window) closes.
    fn on_closed(&mut self) -> Result<(), Self::Error> {
        println!("Capture Session Closed");

        Ok(())
    }
}

fn main() {
    // Gets The Foreground Window, Checkout The Docs For Other Capture Items
    let primary_monitor = Monitor::primary().expect("There is no primary monitor");
    print!(
        "\rPrimary Monitor: {}",
        primary_monitor.name().unwrap_or_default()
    );

    let window_to_capture = Window::from_contains_name("Visual Studio Code")
        .expect("There is no window with that name");

    // print!("\rWindow to Capture: {}", window_to_capture.try_into().unwrap());

    let settings = Settings::new(
        // Item To Captue
        window_to_capture,
        // primary_monitor,
        // Capture Cursor Settings
        CursorCaptureSettings::Default,
        // Draw Borders Settings
        DrawBorderSettings::Default,
        // The desired color format for the captured frame.
        ColorFormat::Rgba8,
        // Additional flags for the capture settings that will be passed to user defined `new` function.
        "Yea This Works".to_string(),
    )
    .unwrap();

    // Starts the capture and takes control of the current thread.
    // The errors from handler trait will end up here
    Capture::start(settings).expect("Screen Capture Failed");
}

I changed this part
 let window_to_capture = Window::from_contains_name("Visual Studio Code")
        .expect("There is no window with that name");

but when i give primary monitor thing it works fine ,
Expected behavior 📝
LIke monitor it should work like normal
OS 🤖
Edition	Windows 11 Pro
Version	23H2
Installed on	12-08-2023
OS build	22631.3447
Experience	Windows Feature Experience Pack 1000.22688.1000.0
Additional context ➕
Add any other context about the problem here.

This usually happens because of wrong resolution in VideoEncoder.

Do we get window size from the window instance

What resolution is your monitor?

1920 1080 p 24 inch

use std::{
    any::Any,
    io::{self, Write},
    time::Instant,
};

use windows::Win32::{
    Foundation::{BOOL, HWND, LPARAM, RECT, TRUE},
    UI::WindowsAndMessaging::GetWindowRect,
};
use windows_capture::{
    capture::GraphicsCaptureApiHandler,
    encoder::{VideoEncoder, VideoEncoderQuality, VideoEncoderType},
    frame::Frame,
    graphics_capture_api::InternalCaptureControl,
    monitor::Monitor,
    settings::{ColorFormat, CursorCaptureSettings, DrawBorderSettings, Settings},
    window::Window,
};

// This struct will be used to handle the capture events.
struct Capture {
    // The video encoder that will be used to encode the frames.
    encoder: Option<VideoEncoder>,
    // To measure the time the capture has been running
    start: Instant,
}

impl GraphicsCaptureApiHandler for Capture {
    // The type of flags used to get the values from the settings.
    type Flags = String;

    // The type of error that can occur during capture, the error will be returned from `CaptureControl` and `start` functions.
    type Error = Box<dyn std::error::Error + Send + Sync>;

    // Function that will be called to create the struct. The flags can be passed from settings.
    fn new(message: Self::Flags) -> Result<Self, Self::Error> {
        println!("Got The Flag: {message}");
        let flags_array: Vec<&str> = message.split(',').collect();
        let mut w_width = flags_array[0].parse::<u32>().unwrap();
        let mut w_height = flags_array[1].parse::<u32>().unwrap();

        let encoder = VideoEncoder::new(
            VideoEncoderType::Mp4,
            VideoEncoderQuality::HD1080p,
            w_width,
            w_height,
            "Video_1.mp4",
        )?;

        Ok(Self {
            encoder: Some(encoder),
            start: Instant::now(),
        })
    }

    // Called every time a new frame is available.
    fn on_frame_arrived(
        &mut self,
        frame: &mut Frame,
        capture_control: InternalCaptureControl,
    ) -> Result<(), Self::Error> {
        print!(
            "\rRecording for: {} seconds",
            self.start.elapsed().as_secs()
        );
        io::stdout().flush()?;

        // Send the frame to the video encoder
        self.encoder.as_mut().unwrap().send_frame(frame)?;

        // Note: The frame has other uses too for example you can save a single for to a file like this:
        // frame.save_as_image("frame.png", ImageFormat::Png)?;
        // Or get the raw data like this so you have full control:
        // let data = frame.buffer()?;

        // Stop the capture after 6 seconds
        if self.start.elapsed().as_secs() >= 6 {
            // Finish the encoder and save the video.
            self.encoder.take().unwrap().finish()?;

            capture_control.stop();

            // Because there wasn't any new lines in previous prints
            println!();
        }

        Ok(())
    }

    // Optional handler called when the capture item (usually a window) closes.
    fn on_closed(&mut self) -> Result<(), Self::Error> {
        println!("Capture Session Closed");

        Ok(())
    }
}

pub fn get_window_size(hwnd: HWND) -> Result<(i32, i32), windows::core::Error> {
    let mut rect = RECT::default();
    unsafe {
        GetWindowRect(hwnd, &mut rect).ok().expect("s");
    }
    let width = rect.right - rect.left;
    let height = rect.bottom - rect.top;
    Ok((width, height))
}

fn main() {
    // Gets The Foreground Window, Checkout The Docs For Other Capture Items
    let primary_monitor = Monitor::primary().expect("There is no primary monitor");
    print!(
        "\rPrimary Monitor: {}",
        primary_monitor.name().unwrap_or_default()
    );

    let window_to_capture = Window::from_contains_name("Visual Studio Code")
        .expect("There is no window with that name");

    let size = get_window_size(window_to_capture.as_raw_hwnd()).unwrap();

    print!("\rWindow Size: {}x{}", size.0, size.1);

    let array = vec![size.0.to_string(), size.1.to_string()];
    // print!("\rWindow to Capture: {}", window_to_capture.try_into().unwrap());

    let settings = Settings::new(
        // Item To Captue
        window_to_capture,
        // primary_monitor,
        // Capture Cursor Settings
        CursorCaptureSettings::Default,
        // Draw Borders Settings
        DrawBorderSettings::Default,
        // The desired color format for the captured frame.
        ColorFormat::Rgba8,
        // Additional flags for the capture settings that will be passed to user defined `new` function.
        array.join(","),
    )
    .unwrap();

    // Starts the capture and takes control of the current thread.
    // The errors from handler trait will end up here
    Capture::start(settings).expect("Screen Capture Failed");
}

in this code i made it worked , when vs code is in windowed mode ,
if the vs code is in full size mode , getting the same issue in pink color

check if this works:
use std::{
    io::{self, Write},
    time::Instant,
};

use windows_capture::{
    capture::GraphicsCaptureApiHandler,
    encoder::{VideoEncoder, VideoEncoderQuality, VideoEncoderType},
    frame::Frame,
    graphics_capture_api::InternalCaptureControl,
    monitor::Monitor,
    settings::{ColorFormat, CursorCaptureSettings, DrawBorderSettings, Settings},
    window::Window,
};

// This struct will be used to handle the capture events.
struct Capture {
    // The video encoder that will be used to encode the frames.
    encoder: Option<VideoEncoder>,
    // To measure the time the capture has been running
    start: Instant,
}

impl GraphicsCaptureApiHandler for Capture {
    // The type of flags used to get the values from the settings.
    type Flags = String;

    // The type of error that can occur during capture, the error will be returned from `CaptureControl` and `start` functions.
    type Error = Box<dyn std::error::Error + Send + Sync>;

    // Function that will be called to create the struct. The flags can be passed from settings.
    fn new(message: Self::Flags) -> Result<Self, Self::Error> {
        println!("Got The Flag: {message}");

        let encoder = VideoEncoder::new(
            VideoEncoderType::Mp4,
            VideoEncoderQuality::HD1080p,
            1920,
            1080,
            "video.mp4",
        )?;

        Ok(Self {
            encoder: Some(encoder),
            start: Instant::now(),
        })
    }

    // Called every time a new frame is available.
    fn on_frame_arrived(
        &mut self,
        frame: &mut Frame,
        capture_control: InternalCaptureControl,
    ) -> Result<(), Self::Error> {
        if frame.width() == 1920 && frame.height() == 1080 {
            print!(
                "\rRecording for: {} seconds",
                self.start.elapsed().as_secs()
            );
            io::stdout().flush()?;

            // Send the frame to the video encoder
            self.encoder.as_mut().unwrap().send_frame(frame)?;

            // Stop the capture after 6 seconds
            if self.start.elapsed().as_secs() >= 6 {
                // Finish the encoder and save the video.
                self.encoder.take().unwrap().finish()?;

                capture_control.stop();

                // Because there wasn't any new lines in previous prints
                println!();
            }
        } else {
            println!("Wrong resolution");
        }

        Ok(())
    }

    // Optional handler called when the capture item (usually a window) closes.
    fn on_closed(&mut self) -> Result<(), Self::Error> {
        println!("Capture Session Closed");

        Ok(())
    }
}

fn main() {
    // Gets The Foreground Window, Checkout The Docs For Other Capture Items
    let primary_monitor = Monitor::primary().expect("There is no primary monitor");
    print!(
        "Primary Monitor: {}",
        primary_monitor.name().unwrap_or_default()
    );

    let window_to_capture = Window::from_contains_name("Visual Studio Code")
        .expect("There is no window with that name");

    let settings = Settings::new(
        // Item To Captue
        window_to_capture,
        // Capture Cursor Settings
        CursorCaptureSettings::Default,
        // Draw Borders Settings
        DrawBorderSettings::Default,
        // The desired color format for the captured frame.
        ColorFormat::Rgba8,
        // Additional flags for the capture settings that will be passed to user defined `new` function.
        "Yea This Works".to_string(),
    )
    .unwrap();

    // Starts the capture and takes control of the current thread.
    // The errors from handler trait will end up here
    Capture::start(settings).expect("Screen Capture Failed");
}

I know fullscreen windows can sometimes be tricky, especially when they are larger than 1920x1080 resolution. This code checks for such cases.

Need a solution for this , when window is full sized unable to capture , getting wrong resolution .
so programmatically need to resize window and let it capture
please let me know if any possible solution here
Thank you

The most straightforward solution to the problem is to record with the same source resolution. However, I'm interested in developing a resizing operation that allows users to record at any desired resolution and output it in their desired resolution. This feature is similar to what most recording software does, but it's a bit complicated, and I want to make it highly efficient. To achieve this, I plan to use DirectX with compute shader technology, which I'm unfamiliar with. Nonetheless, recording monitors are currently effortless.
I will leave this issue open until the problem is fully resolved.
If anyone is familiar with DirectX, please let me know. My current idea is to create a scene with the same size as the VideoEncoder resolution and overlay the image on top so that if the image is slightly larger, it will be cropped, and if it's smaller, there will be a black border around it, similar to how OBS does it.


fix/ remove ManagedPoolController from the repo

Removes the ManagedPoolController from the repo, as a result of https://github.com/balancer-labs/balancer-v2-monorepo/pull/2100

The gitleaks failure is a false positive. I will address it at one of the stacked PRs.


Clean up and remove cookie cutter dirs

we'll probably create new repos for future application of this data pipeline data, thus we can remove some of the redundant and unused folders


[WFRP4e System] Dual Wielder - No Opposed Test displayed for offhand

Making an attack using Dual Wielder fails to give an Opposed Test card for the offhand weapon.   The test can be setup 'manually' for Melee weapons but for range weapons it is not possible to completer the attack.From: Steven Evans#8842foundry: 10.291wfrp4e: 6.3.1wfrp4e-altdorf: 2.0.2wfrp4e-archives1: 2.4.1wfrp4e-archives2: 3.0.2wfrp4e-core: 3.0.4wfrp4e-dotr: 2.3.4wfrp4e-eis: 3.0.1wfrp4e-empire-ruins: 3.0.2wfrp4e-horned-rat: 2.0.1wfrp4e-middenheim: 2.4.2wfrp4e-owb1: 2.0.1wfrp4e-pbtt: 2.2.3wfrp4e-rnhd: 3.0.3wfrp4e-starter-set: 3.0.2wfrp4e-ua1: 2.3.2wfrp4e-ua2: 2.0.0wfrp4e-up-in-arms: 3.0.1Active Modules: betterroofs, compendium-folders, config-presets, custom-css, dd-import, dice-calculator, dice-so-nice, easy-ruler-scale-v10, filepicker-plus, foundryvtt-simple-calendar, fuzzy-foundry, fxmaster, initiative-double-click, item-piles, lib-wrapper, mcc, module-credits, monks-little-details, monks-scene-navigation, monks-tokenbar, monks-wall-enhancement, moulinette-core, moulinette-gameicons, moulinette-scenes, moulinette-sounds, moulinette-tiles, multiface-tiles, multilevel-tokens, permission_viewer, quick-encounters, scene-packer, smarttarget, socketlib, tagger, theripper-premium-hub, token-action-hud, token-attacher, token-mold, token-z, tokenmagic, wall-height, weather-control, wfrp4e-dotr-maps, wfrp4e-eis-maps, wfrp4e-gm-toolkit, wfrp4e-pbth-maps, wfrp4e-ubersreik-maps, _CodeMirror

Must right click - oppose with targets on the secondary


com.theaigames.game.texasHoldem.Player maxTimeBank not set

Hello, i was getting this error a lot of times in my local environment
Response timed out (0ms), let your bot return 'No moves' instead of nothing or make it faster.
Output from your bot: null
And i found that maxTimeBank is not being set and it is equals to 0, so in the com.theaigames.game.texasHoldem.Player.updateTimeBank method when this line this.timeBank = Math.min(this.timeBank + this.timePerMove,this.maxTimeBank); is executed it always sets the bot timebank to 0.
Can you check this please?
Regards.

Just rewrite constructor com.theaigames.game.texasHoldem.Player:
	public Player(String name, IOPlayer bot, long maxTimeBank, long timePerMove)
	{
		this.bot = bot;
		this.name = name;
		this.maxTimeBank = maxTimeBank; //forgotten
		this.timePerMove = timePerMove; //forgotten
	}

Thanks, I'll update this.


Bulk edit #7, fixing column header missing

Docs Build status updates of commit da2ebdc:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/web-service-reference/additionalinfo.md
:white_check_mark:Succeeded
View

docs/web-service-reference/contentid.md
:white_check_mark:Succeeded
View

docs/web-service-reference/hasbeenprocessed.md
:white_check_mark:Succeeded
View

docs/web-service-reference/installapp.md
:white_check_mark:Succeeded
View

docs/web-service-reference/isequalto.md
:white_check_mark:Succeeded
View

docs/web-service-reference/islessthan.md
:white_check_mark:Succeeded
View

docs/web-service-reference/ismoderated.md
:white_check_mark:Succeeded
View

docs/web-service-reference/ispermissioncontrolled.md
:white_check_mark:Succeeded
View

docs/web-service-reference/isworktime.md
:white_check_mark:Succeeded
View

docs/web-service-reference/itemids.md
:white_check_mark:Succeeded
View

docs/web-service-reference/lastdeliverytime.md
:white_check_mark:Succeeded
View

docs/web-service-reference/lastmodifiedtime.md
:white_check_mark:Succeeded
View

docs/web-service-reference/legacydn.md
:white_check_mark:Succeeded
View

docs/web-service-reference/mailboxes-arrayofstringstype.md
:white_check_mark:Succeeded
View

docs/web-service-reference/managedfolderid.md
:white_check_mark:Succeeded
View

docs/web-service-reference/markallitemsasread.md
:white_check_mark:Succeeded
View

docs/web-service-reference/markallitemsasreadresponse.md
:white_check_mark:Succeeded
View

docs/web-service-reference/maximumsize.md
:white_check_mark:Succeeded
View

docs/web-service-reference/meetingworkspaceurl.md
:white_check_mark:Succeeded
View

docs/web-service-reference/nonindexableitemstatistics.md
:white_check_mark:Succeeded
View

docs/web-service-reference/notes-contact.md
:white_check_mark:Succeeded
View

docs/web-service-reference/notification-ex15websvcsotherref.md
:white_check_mark:Succeeded
View

docs/web-service-reference/number.md
:white_check_mark:Succeeded
View

docs/web-service-reference/oldparentfolderid.md
:white_check_mark:Succeeded
View

docs/web-service-reference/otherphones2.md
:white_check_mark:Succeeded
View

docs/web-service-reference/pagers.md
:white_check_mark:Succeeded
View

docs/web-service-reference/proposedstart.md
:white_check_mark:Succeeded
View

docs/web-service-reference/range.md
:white_check_mark:Succeeded
View

docs/web-service-reference/refiners.md
:white_check_mark:Succeeded
View

docs/web-service-reference/searchmailboxes.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Doc: eel can launch the default browser

Eel is able to launch the default browser configured by the user, but as far as I can tell this feature is not documented anywhere.

stale


Visualizer not found

Hey there!
I have been trying to set up SuMa on my workstation with VNC. The building runs without any problems, see here:
Command: cmake .. -DCMAKE_BUILD_TYPE=Release -DOPENGL_VERSION=450 -DENABLE_NVIDIA_EXT=YES
Output:
cmake .. -DCMAKE_BUILD_TYPE=Release -DOPENGL_VERSION=330 -DENABLE_NVIDIA_EXT=YES
-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- [SuMa] Fetching glow.
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so
-- Found GLEW: /usr/include (found version "2.1.0")
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found version "1.71.0") found components: filesystem system
-- Found X11: /usr/include
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Enabling Nvidia OpenGL extensions.
-- Using OpenGL version 430.
-- [SuMa] Fetching GTSAM v4.2.0.
-- GTSAM Version: 4.2a9
-- Performing Test COMPILER_HAS_WSUGGEST_OVERRIDE
-- Performing Test COMPILER_HAS_WSUGGEST_OVERRIDE - Success
-- Performing Test COMPILER_HAS_WMISSING_OVERRIDE
-- Performing Test COMPILER_HAS_WMISSING_OVERRIDE - Failed
-- GTSAM_POSE3_EXPMAP=ON, enabling GTSAM_ROT3_EXPMAP as well
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found suitable version "1.71.0", minimum required is "1.65") found components: serialization system filesystem thread program_options date_time timer chrono regex
-- Found Eigen version: 3.3.7
-- Looking for execinfo.h
-- Looking for execinfo.h - found
-- Looking for getline
-- Looking for getline - found
-- checking for thread-local storage - found
-- Could NOT find MKL (missing: MKL_INCLUDE_DIR MKL_LIBRARIES)
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- Could NOT find TBB (missing: TBB_INCLUDE_DIRS TBB_LIBRARIES tbb tbbmalloc) (Required is at least version "4.4")
-- Building 3rdparty
-- Could NOT find GeographicLib (missing: GeographicLib_LIBRARY_DIRS GeographicLib_LIBRARIES GeographicLib_INCLUDE_DIRS)
-- Building base
-- Building basis
-- Building geometry
-- Building inference
-- Building symbolic
-- Building discrete
-- Building hybrid
-- Building linear
-- Building nonlinear
-- Building sam
-- Building sfm
-- Building slam
-- Building navigation
-- GTSAM Version: 4.2.0
-- Install prefix: /usr/local
-- Building GTSAM - shared: ON
-- Wrote /mnt/scratch/SuMa/build/_deps/gtsam-build/GTSAMConfig.cmake
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- ===============================================================
-- ================  Configuration Options  ======================
--  CMAKE_CXX_COMPILER_ID type                       : GNU
--  CMAKE_CXX_COMPILER_VERSION                       : 9.4.0
--  CMake version                                    : 3.16.3
--  CMake generator                                  : Unix Makefiles
--  CMake build tool                                 : /usr/bin/make
-- Build flags
--  Build Tests                                      : Disabled
--  Build examples with 'make all'                   : Disabled
--  Build timing scripts with 'make all'             : Disabled
--  Build shared GTSAM libraries                     : Enabled
--  Put build type in library name                   : Enabled
--  Build libgtsam_unstable                          : Disabled
--  Build GTSAM unstable Python                      : Disabled
--  Build MATLAB Toolbox for unstable                : Disabled
--  Build for native architecture                    : Disabled
--  Build type                                       : Release
--  C compilation flags                              :  -O3 -DNDEBUG
--  C++ compilation flags                            :  -O3 -DNDEBUG
--  GTSAM_COMPILE_FEATURES_PUBLIC                    : cxx_std_11
--  GTSAM_COMPILE_OPTIONS_PUBLIC                     :
--  GTSAM_COMPILE_DEFINITIONS_PUBLIC                 :
--  GTSAM_COMPILE_OPTIONS_PUBLIC_RELEASE             :
--  GTSAM_COMPILE_DEFINITIONS_PUBLIC_RELEASE         :
--  Use System Eigen                                 : On (Using version: 3.3.7)
--  Use System Metis                                 : OFF
--  Using Boost version                              : 1.71.0
--  Use Intel TBB                                    : TBB not found
--  Eigen will use MKL                               : MKL not found
--  Eigen will use MKL and OpenMP                    : OpenMP found but GTSAM_WITH_EIGEN_MKL is disabled
--  Default allocator                                : STL
--  Cheirality exceptions enabled                    : YES
--  Build with ccache                                : No
-- Packaging flags
--  CPack Source Generator                           : TGZ
--  CPack Generator                                  : TGZ
-- GTSAM flags
--  Quaternions as default Rot3                      : Disabled
--  Runtime consistency checking                     : Disabled
--  Rot3 retract is full ExpMap                      : Enabled
--  Pose3 retract is full ExpMap                     : Enabled
--  Allow features deprecated in GTSAM 4.2           : Enabled
--  Metis-based Nested Dissection                    : Enabled
--  Use tangent-space preintegration                 : Enabled
-- MATLAB toolbox flags
--  Install MATLAB toolbox                           : Disabled
-- Python toolbox flags
--  Build Python module with pybind                  : Disabled
-- ===============================================================
CMake Warning at build/_deps/gtsam-src/cmake/HandleFinalChecks.cmake:3 (message):
TBB 4.4 or newer was not found - this is ok, but note that GTSAM
parallelization will be disabled.  Set GTSAM_WITH_TBB to 'Off' to avoid
this warning.
Call Stack (most recent call first):
build/_deps/gtsam-src/CMakeLists.txt:143 (include)
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found version "1.71.0") found components: filesystem system timer date_time
-- [SuMa] Enabling Nvidia OpenGL extensions.
-- [SuMa] Using OpenGL version 430.
-- [SuMa] Fetching GTest.
-- Found Python: /usr/bin/python3.8 (found version "3.8.10") found components: Interpreter
-- Found Threads: TRUE
-- Configuring done
-- Generating done
-- Build files have been written to: /mnt/scratch/SuMa/build
The problem is that the /mnt/scratch/SuMa/bin directory is empty, even though there is supposed to the Visualizer.
I would appreciate some help! Thanks!

This is the folder structure after the build:

I think you just did the "cmake .." and this will only produce the Makefiles for building everything.
you need to do inside the build directory now "make -j5" and this will then build the executable.

Well.. you are right and I should have paid more attention. Thanks, I will close this :)


param_ ends up in image when it is in the containerized cell

When containerizing a cell with param_ in R, the param_ definition ends up in the containerized cell image.

This is normal because we containerize the content of the cell. However, we should protect users from containerizing secrets. This falls within the scope of #362.


A689245723790971 chronograph resource

Add support for different resource types

This change is

Coverage increased (+0.1%) to 79.021% when pulling c18453984fb205cd66d3e4cdf05e6e0a3247ba29 on Scandie:a689245723790971_chronograph_resource into 35a04e9e662a937197b34de0f0fe783a75a50c63 on openprocurement:ea_core.


fix: login with argent button, update core module

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


feat(deployment): support list of imagePullSecrets #major

This chart supports only one image pull secret instead of a list for the deployment.yml manifest. This Pull Request aims at supporting a list of secrets.

I just merged a bunch of updates to the readme and the values file (https://github.com/stakater/application/pull/335). Can you please update your PR with these changes?

This was released with https://github.com/stakater/application/releases/tag/v5.0.0. Thank you for your contribution.


Add asynchronous APIs to open connection and to close driver.

Scalariform issue : https://travis-ci.org/ReactiveMongo/ReactiveMongo/jobs/269266862#L402


Replace external "master" branch references with new "main"

swift-syntax and swift-tools-support-core have renamed their "master"
branch to "main". Fix up packages and references in README.
There's a few other references to "master":

SourceKitStressTester/README.md SK_STRESS_ACTIVE_CONFIG=master
SourceKitStressTester/Tests/SwiftCWrapperToolTests/SwiftCWrapperToolTests.swift applicableConfigs: ["master"]

I wasn't sure where the configs are specified or what the "master" refers to, so I've left these for now. But they may also need changing.

@swift-ci please test

Updated the other "master" references to "main" as well

@swift-ci please test

Build failed
Swift Test OS X Platform
Git Sha - 038e06f36da46ebdc6a9e5207db7f8df07481a22


Simplify neurite feature extraction code.

Remove as_neurite_list decorator, which had redundant
functionality wrt neurom.iter_neurites.

Current coverage is 100.00%

Merging #292 into master will not affect coverage as of b0f4e36

@@            master    #292   diff @@
======================================
  Files           42      42
  Stmts         1853    1842    -11
  Branches         0       0
  Methods
======================================
- Hit           1853    1842    -11
  Partial          0       0
  Missed           0       0

Review entire Coverage Diff as of b0f4e36

Powered by Codecov. Updated on successful CI builds.

@eleftherioszisis @lidakanari This is a start. There is a lot more to simplify here. I will continue removing stuff in future pull requests. In the meantime, it would be great if somebody could add tests for the neurite features map, because that is what people would be using.

Looks good. Thanks! I'll try to add some tests later if I have time.

@lidakanari I need to know if you can add the tests by tomorrow or not. Otherwise I will do it.

I don't have too much time to work on this right now. If you want you can add the tests and I will check them in the follow up review. Does that work for you?

Sure. I will just change the tests that test the functions directly.

Ok, here's an example of what I had in mind for a test:
np.allclose(NEURITEFEATURES'section_lengths', sec.length(...))

You can add more tests later if you want. i will just translate what is already there.

Ok, that works for me. Thanks!


Manpager incorrect width when signcolumn is set

Steps to reproduce

export MANPAGER="vim +MANPAGER --not-a-term -"
set signcolumn=yes in vimrc
Run man man

I suspect this issue is here: https://github.com/vim/vim/blob/master/runtime/autoload/dist/man.vim#L191 . I tried to change winwidth to getwininfo and subtract textoff. But does not seem to work for me.

It was difficult to pinpoint the problem to signcolumn for me as --clean option did not load man plugin (i.e. export MANPAGER="vim --clean +MANPAGER --not-a-term -"). Is there a way to start vim cleanly but load just the default plugins?
Workaround
Disable signcolumn for file type man
autocmd Filetype man setlocal signcolumn=no

Expected behaviour
width calculated correctly, so the last character does not wrap to next line
Version of Vim
9.1.496
Environment
linux bash
Logs and stack traces
No response

https://github.com/vim/vim/blob/master/runtime/autoload/dist/man.vim#L191

This doesn't seem to be involved, as can be seen by :scriptnames. We should probably rather disable signcolumn in manpager.vim
@Konfekt please :)

BTW: I cannot reproduce this specific issue. For me, the man page looks fine, even with signcolumn enabled.

Neither can I reproduce with Vim 9.1.145 on Opensuse 15.5 and Urxvt on Bash or Zsh and
MANPAGER="/usr/bin/vim --clean -u ~/.vim/viminrc +MANPAGER --not-a-term -" man man

and ~/.vim/viminrc reading
set nocompatible
let &rtp = '/usr/share/vim/vim91/plugin' . ',' . &rtp
set signcolumn=yes
filetype plugin indent on
syntax on

as shows

Did a commit between 9.1.141 and 9.1.496 break &signcolumn  ? (I suppose that @chrisbra used a more recent version though).
I wonder if it could be related to the terminal? @balki, did you try with different terminals?

let's close it as non-reproducible then.


Issue when deleting an actor

Whenever you delete an actor you cannot record. You can play, pause and stop but you can't record. Same goes with clearing all actors.

Duly noted. I'll get to this as soon as I can. Thank you!

This has been patched in the most recent version. I will push a release very soon, once I drop the video of course.


Cannot serialize closure with Symfony cache

Hey, me again :)
I'm not using Laravel, I'm using Slim Framework, and I'm using botman with composer.
I think there is another issue with the SymfonyCache adapter. I tried with the filesystem and redis cache engine, but always the same problem.
I tried with the PizzaConversation example, here is the error: Serialization of 'Closure' is not allowed
$cache = new \Symfony\Component\Cache\Adapter\FilesystemAdapter();
$botman = \Mpociot\BotMan\BotManFactory::create($settings, new \Mpociot\BotMan\Cache\SymfonyCache($cache));

$botman->hears('/pizza', function (BotMan $bot) {
    $bot->startConversation(new PizzaConversation);
});

$botman->listen();

Tried with latest botman release and dev-master branch, same result.

Hey,
I changed the way the serialization of conversation objects work. Please try it again with the latest dev-master version.

Great, works fine :)
Thank you :+1:

Great! Please use dev master in the meantime. I have two more features I want to get done before releasing 1.4.0 :)

I have to reopen this issue and roll back the commit.
My modification allowed the Symfony Cache driver, but it also disabled the ability to use BotMan within Queued Jobs.
Right now I only have two possible solutions:

Enable Symfony Cache, but loose the ability to use the bot inside queues (which is bad because most messaging drivers have a response time limit of 3-15 seconds).
Disable Symfony Cache

If someone wants to look at this issue, any help is greatly appreciated.
The problem is that I need to be able to serialize / unserialize the complete BotMan object with the driver + cache loaded, so it can be used in a queue or after getting loaded from the cache.

This is now resolved, as you can use the ShouldQueue interface on queuable conversations.


Update scalafmt-core to 2.7.2

Updates org.scalameta:scalafmt-core from 2.4.2 to 2.7.2.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scalameta", artifactId = "scalafmt-core" } ]

labels: library-update, semver-minor

Succedded by https://github.com/scalameta/munit/pull/206/files


States Visited applet

This applet shows an in-progress map of the US showing all the states you've been to. Check out the demo gif to see more.
The SVG files in state-images/ are to help in case we need to regenerate the individual state PNGs later.

Wonderful PR! Thanks!


Quagga design

Make the plugin look like described by @jschellevis
Screenshot:

@fichtner no problem. We can also release the plugin but we should mention that in the release note if it is easier.

too bad, wanted to squash them - good for you, BGP is an extra commit ;)


To have reliable and stable examples, a fixed iota-core version should be used

Currently, the following dependency is used in Cargo.toml
iota-core = { git = "https://github.com/iotaledger/iota.rs" }

Any small change in this repository can therefore break the examples in the workshop.
Currently, this is the case, with the last commit in iota.rs https://github.com/iotaledger/iota.rs/commit/cbaf879423bd4f8a5dc9a9aa8cbdc460c34fcbdd
To ensure that all examples work reliably, the last tested version should always be configured. The current version is
 iota-core = "0.2.0-alpha.2"

If there is a new version, you can test all examples against the new version and then increase the version accordingly.

We just used rev now which is a commit so this issue can be closed I guess

That's  also fine - thx


"Sync layout and sorting preferences across directories" appears to be on even when off

Description
Basically I was just resizing items in a folder and I realize all my folder where the same size as the folder I change items size to; even thoughts I have disable "Sync layout and sorting preferences across directories" disable in settings.
Steps To Reproduce

Go to Settings then click on Layout then turn off "Sync layout and sorting preferences across directories".
Quit the Settings, choose a folder that has files in it of your choice and now click the Layout Button on the top-right.
Choose whatever mode you want (I'm choosing Grid for this example).
Slide the slider to whatever you want.
Go to another folder that has files in it and you can see the files has the same size as the previous folder.

Requirements
"Sync layout and sorting preferences across directories" technically is on even tho its off.
BTW it is worth noting that if "Sync layout and sorting preferences across directories" is on on the and you choose another layout it it will applied the layout you choose.
I dont mean that "Sync layout and sorting preferences across directories" is entirely broken; I'm just saying that one of its functionality is broken.
Files Version
<IP_ADDRESS>
Windows Version
22631.3958
Log File
debug.log

Thank you for your feedback! The sync layout and sorting preferences setting is intentionally not applied to folder sizes. If you’re interested in a deeper dive into this topic, feel free to check out the ongoing discussion in issue #15984.


Empty graph

fixes #775
Shows an empty graph instead of nothing

Whoops let me remove the first commit


session token

i feel like a skid rn but wdym session token, api key or like the token used in the browser, or are they the same?

The session token is a cookie from your browser,
no it's different from the API key


Change command parameters of migration commands

Hi there,
i need to change the timeout of a certain migration command due to it's long running nature whereas the default timeout setting of .NET causes a timeout error. I also don't want to raise the timeout for the whole application as i find this dangerous.
I thought about extending the Orchard.Data.Migration.Schema.SchemaCommand as follows
namespace Orchard.Data.Migration.Schema {
    public abstract class SchemaCommand : ISchemaBuilderCommand {

        public int? Timeout { get; private set; }

        ...

        public SchemaCommand WithTimeout(int timeout) {
            Timeout = timeout;
            return this;
        }

        ...
    }
}

to be able to simply type Schemabuilder.ExecuteSql("...", s => s.WithTimeout(500)) in the migration class.
So far so good but the DefaultDataMigrationInterpreter compiles each command to a string statement whereas the timeout setting gets lost.
Currently to solve the task i added an interface ICommandEventHandler
namespace Orchard.Data.Migration.Events {
    public interface ICommandEventHandler : IDependency {
        void BeforeExecute(System.Data.IDbCommand command);
    }
}

to Orchard.Framework, then added the event handler calls to DefaultDataMigrationInterpreter
private void RunPendingStatements() {
    ...
    foreach (var commandEventHandler in _commandEventHandler)
      commandEventHandler.BeforeExecute(command);

    command.ExecuteNonQuery();
    ...
}

and then added the migration code
  SchemaBuilder.ExecuteSql(string.Format(@"
    -- HANDLER: CoreMigrationCommandEventHandler
    UPDATE {0} SET ContentPlainText = dbo.{1}(ContentHtml)",
    SchemaBuilder.TableDbName("MessageRevisions"), lUserDefinedFunctionStripHtmlUniqueName));

and the specific event handler to my module
public class CoreMigrationCommandEventHandler : Orchard.Data.Migration.Events.ICommandEventHandler
{
  public void BeforeExecute(System.Data.IDbCommand command)
  {
    if (command.CommandText.Trim().StartsWith("-- HANDLER: CoreMigrationCommandEventHandler"))
      command.CommandTimeout = 600; // increased timeout to allow long running operation
  }
}

I'm not quite happy with this solution as i still need to use some token in the SQL string.
My prefered option would be to change DefaultDataMigrationInterpreter in a way that the timeout setting doesn't get lost, like compiling the commands to a list that also holds the command instance or meta information or something (not just a simple string list).
What do you think?

This should be a configuration setting from Hostcopmonents.config, and the DataMigration service would use it.

@ViRuSTriNiTy Did you work on this further, or happened to find another solution?
I face the same problem right now.

@Xceno No, i'm using the approach described in the initial post.


PaginatedDataTable: remove the blank space and make rowsPerPage nullable

Use case
If rowsPerPage is 20, and the last page has 1 data row, there will be 19 empty rows in the last page. Add an option for removing the empty rows. For mobile device, having so much blank space is not ideal, almost the whole screen is blank.
Proposal
Add attribute "renderEmptyRows" (bool).
PaginatedDataTable(
    renderEmptyRows: false,
    rowsPerPage: 20,
    ...
);

If it is false, no blank rows will be rendered (no blank space).
Make rowsPerPage nullable (int? type). If it is null, one page only and no pagination (no pagination menu).
PaginatedDataTable(
    renderEmptyRows: false,
    rowsPerPage: null,    // one page only
    ...
);

Hello @javaone199.
Thanks for proposing this!
PaginatedDataTable has showEmptyRows, you can set this to false to ensure the rows aren't rendered. Can you check this out? If not, can you help with more information on how this differs from this?

With showEmptyRows=false, the blank rows are still rendered with blank space. The only difference is that it does not render row separator lines.
showEmptyRows=true:
x        cell     cell
----------------------
x
----------------------
x
----------------------

       pagination

(x: checkbox column)
showEmptyRows=false:  the rows are rendered without lines, but the blank space is still rendered.
x        cell     cell
----------------------
blank

blank

       pagination

Blank Space is because of this SizedBox height calculation. Setting it to zero would remove the blank space.
https://github.com/flutter/flutter/blob/b09a015ff5677da6cd9bb631ca44b801953cb2ad/packages/flutter/lib/src/material/paginated_data_table.dart#L620
may be we can add one more Boolean?!

@piedcipher
Wasn't this fixed by https://github.com/flutter/flutter/issues/80421?

if you set showEmptyRows: false & rowsPerPage: 3 (total-record-count) then blank space is gone.

Is this by design then? Considering the new property.

@piedcipher Wasn't this fixed by #80421?

if you set showEmptyRows: false & rowsPerPage: 3 (total-record-count) then blank space is gone.

Is this by design then? Considering the new property.

not sure about these Taha, i checked the example file and did some trial and error to get the result. need to check & study the pr you've mentioned.

I've encountered this problem as well. I am setting the rowsPerPage of the paginatedDataTable to 30 by default but want the final page (less than 30 rows) to scale in height to match the number of data rows inside. Setting rows per page to equal the total record count doesn't make sense in this scenario.

I've encountered this problem as well. To solve it, I found a way by modifying the PaginatedDataTable code. Specifically, I deleted the part responsible for rendering the empty rows' space, even when showEmptyRows is set to false.
Here’s the change I made:
if (!widget.showEmptyRows)
    SizedBox(
        height:
            (widget.dataRowMaxHeight ?? kMinInteractiveDimension) *
                (getRowsPerPageValue() - _rowCount + _firstRowIndex)
                    .clamp(0, getRowsPerPageValue())),

By removing this block of code, the extra blank space on the last page disappears entirely. This makes the table more suitable for mobile devices, as the screen space isn't wasted.


Fix API consistency

Breaking: remove .getIssueStatus() in favor of .findIssue()
Breaking: rename .findIssue({ title }) in favor of .findIssue({ titleIncludes }) to be consistent with findPullRequests
Breaking: findIssue() and findPullRequest() now return null instead of empty object on find failure

/review

/review


1074 final tutorial qc

cross compatible build and execution on past versions of docker, docker-compose, mac, linux
dynamically generated ports and port config
fixed bug in provision.py with assetstore permissions and missing packaging lib
made updates to some notebooks
added tqdm to pip install

Thanks for reviewing Doori. I addressed all of your comments except the make build one. I have kept this target because I find it useful for debugging. Debugging with make run becomes a bit painful since it takes a few seconds to shut down containers before trying again, and if containers don't come up properly, which is often the case with debugging, then they have to be manually deleted.

Re: failing tests, I see why, but I don't see any changes that'd cause them to fail, and the same tests are passing in dev.  I think either they were updated and this is an older branch, or something changed with the libraries versions that caused a changes to the resampling.  I recommend going ahead with the merge as is (if possible), and if things still fail (like a 50/50 chance) I can push a fix after.

Codecov Report

Merging #267 (f4e2ad5) into dev (4105351) will increase coverage by 0.40%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##              dev     #267      +/-   ##
==========================================
+ Coverage   68.89%   69.30%   +0.40%
==========================================
  Files          87       37      -50
  Lines        4614     2603    -2011
==========================================
- Hits         3179     1804    -1375
+ Misses       1435      799     -636

Impacted Files
Coverage Δ

...a-pathology/luna/pathology/common/build_geojson.py
54.42% <0.00%> (-26.54%)
:arrow_down:

...hology/luna/pathology/common/slideviewer_client.py
76.36% <0.00%> (-7.28%)
:arrow_down:

...thology/luna/pathology/cli/collect_tile_segment.py

...luna-radiology/luna/radiology/cli/window_volume.py

...logy/point_annotation/proxy_table/test_generate.py

...a-radiology/luna/radiology/proxy_table/generate.py

...adiology/refined_table/annotation/test_generate.py

...gy/point_annotation/refined_table/test_generate.py

...thology/point_annotation/refined_table/generate.py

.../radiology/proxy_table/annotation/test_generate.py

... and 42 more

Continue to review full report at Codecov.

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


ios 15 can't run in xcode react-native 0.59.9

System:
OS: macOS 11.6
CPU: (8) x64 Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz
Memory: 695.96 MB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 12.17.0 - /usr/local/bin/node
Yarn: 1.22.11 - /usr/local/bin/yarn
npm: 6.14.4 - /usr/local/bin/npm
SDKs:
iOS SDK:
Platforms: iOS 15.0, DriverKit 20.4, macOS 11.3, tvOS 15.0, watchOS 8.0
Android SDK:
API Levels: 23, 26, 27, 28, 29, 30, 31
Build Tools: 28.0.3, 29.0.0, 29.0.3, 31.0.0
System Images: android-26 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom
IDEs:
Android Studio: 2020.3 AI-203.7717.56.2031.7621141
Xcode: 13.0/13A233 - /usr/bin/xcodebuild
the same code, run on ios 14

Seems like iOS 15 will no longer let apps mutate symbol bindings at runtime, even when Debugging.
Does this mean local Metro server will break?.. I'll have to try in Xcode before speculating further.

Yeah, I also experienced the same thing. Do you have a solution for this problem? @Joker20000
Trying with react-native run-ios --simulator="iPhone 11" will crash on the splashscreen and this warning appears: "You can’t open the application "app_name" because this application is not supported on this Mac.".
React native ver: 0.60.xx
Mac os: Monterey


Unexpected input 'args', valid inputs are ['']

https://github.com/dotherightthing/wpdtrt-anchorlinks/actions/runs/107231135
##[warning]Unexpected input 'args', valid inputs are ['']
Run<EMAIL_ADDRESS>  with:
    args: zip -qq -r ./release.zip ./release

A warning is issued but the step does complete.
Workflow: https://github.com/dotherightthing/wpdtrt-npm-scripts/blob/master/config/.github/workflows/build-release-tagged.yml

I am sorry I didn't see this sooner. I assume this issue is fixed judging from the related issue?

Hi, no problem. The unexpected input warning was not the cause of the failing build, but it still appears as a warning. For example: https://github.com/dotherightthing/wpdtrt-gallery/actions/runs/107246399

Hmm, it seems that it's not possible to drill down into previous build logs. I'll update this issue if I can reproduce this issue with an accompanying log.

I believe I need to create an action.yml file for this action - this was not required when I originally released this. I'll get that sorted soon.

Cool, thanks.

This should be fixed in the latest release, you will need to update your action to use<EMAIL_ADDRESS>If you have any issues please let me know.


Update logstash.js

Checking if socket.unref exists.  In node 0.10 the CleartextStream object returned by tls.connect doesn't have an unref() function
See https://github.com/chris-rock/bunyan-logstash-tcp/issues/18

hi @jfstgermain
First, thank you for this pull request and sorry for the late answer. I'm taking over management of this lib, since the author doesn't have the time to do it anymore.
I had to move the projet to https://github.com/transcovo/bunyan-logstash-tcp and add tests before being able to accept pull requests.
I think that this pull request is not needed anymore since I dropped the support of node 0.x in the 1.0.0 version, but please know that:

If you still need this, I can publish 1 more version of the 0.x vertion which still supports node 0.x with your change included
If you want to contribute to the project, I will be accepting pull requests on the new repo https://github.com/transcovo/bunyan-logstash-tcp


python310Packages.aiohomekit: 2.0.1 -> 2.0.2

Description of changes
https://github.com/Jc2k/aiohomekit/releases/tag/2.0.2

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 196241 run on x86_64-linux 1

3 packages built:

home-assistant-component-tests.homekit_controller
python310Packages.aiohomekit
python39Packages.aiohomekit


Exported game crashes

I tried including this in my project, but anything I export crashes to desktop.
I then tried exporting the sample projects provided in the download and have the same problem.

Hi. Thanks for using SGLscript. If you tell me what version of Godot you're using, on what operating system, and the text of any error messages that show up, that may help me narrow down the problem.
I do remember running into a similar problem when I tried exporting a game using SGLscript, so maybe this will help:
I was using Godot 2.1.2 on Windows 7, and the problem turned out to be that the *.sglscript files were not being included in the exported game, so the file loading functions were failing. In the "Project Export Settings" window, on the "Resources" tab, I had to set the "Export Mode" to "Export all files in the project directory." I tried using the other settings to manually include the files, but for some reason, those didn't seem to work—I wasn't sure if I was doing something wrong, or if it was a glitch in Godot. Since I wasn't quite sure what was causing the problem myself, I forgot to document this, sorry.
I haven't tested SGLscript with Godot 3 yet, so if you're using Godot 3, there may be different reasons why it's crashing. I'm waiting for Godot 3 to have stables before I upgrade SGLscript for it.
My entry for the Dec 2016/Jan 2017 Godot Game Jam is probably the best real-world example of SGLscript in action, and has the export settings set up in the way I described.
Hope that helps.


Use rich

Drop the custom progress bar.
Can potentially show logs in pager, etc.

I think having an option to enable verbose & pretty output on a per-operation/fact level would be a nice feature.
I created a little FactBase mixin for logging output in a Rich way.
I find it super useful for one-off fact runs as eye-balling some text/object in Pyinfra's output was hard and error-prone, especially for facts returning multiple lines/items.
Optionally it will display a syntax highlighted code block with information relevant to gathering the fact – e.g. an SQL query behind a fact or lines matched with FindInFile.
See some examples:

And for highlighting stdout from vital operations:

Would be happy to help on this if there's interest in having something like this.
This is part of our collection of operations/facts/tasks for installing, configuring and managing Oracle Databases. Was thinking of open sourcing it once it's battle tested enough.


Plan not found

Version
0.9.1
Platform/Architecture
linux-amd64
Describe the bug
I am running rke2 and installed the controller according to the docs:
https://docs.rke2.io/upgrade/automated_upgrade/
I did try setting a channel but am falling back to setting a version now.
i labeled the node rke2-upgrade: "true"
i am running rke2 v1.23.5+rke2r1 and am trying to upgrade to v1.23.6+rke2r1
i have 1 master node and 2 agent nodes
the logoutput:
time="2022-04-29T11:00:16Z" level=debug msg="PLAN STATUS HANDLER: plan=system-upgrade/server-plan@4670979, status={Conditions:[] LatestVersion: LatestHash: Applying:[]}" func="github.com/sirupsen/logrus.(*Entry).Logf" file="/go/pkg/mod/github.com/sirupsen/logrus@v1.4.2/entry.go:314"
time="2022-04-29T11:00:16Z" level=debug msg="PLAN GENERATING HANDLER: plan=system-upgrade/server-plan@4670979, status={Conditions:[{Type:LatestResolved Status:True LastUpdateTime:2022-04-29T11:00:16Z LastTransitionTime: Reason:Version Message:}] LatestVersion:v1.23.6-rke2r1 LatestHash:d5c507264ef83171925233cdeebe1f8a21614263918690682ef945fe Applying:[]}" func="github.com/sirupsen/logrus.(*Entry).Logf" file="/go/pkg/mod/github.com/sirupsen/logrus@v1.4.2/entry.go:314"
time="2022-04-29T11:00:16Z" level=debug msg="DesiredSet - Created batch/v1, Kind=Job system-upgrade/apply-server-plan-on-decgn-pr-vmcq-k8s-with-d5c507264ef83-d9397 for system-upgrade-controller system-upgrade/server-plan" func="github.com/sirupsen/logrus.(*Entry).Logf" file="/go/pkg/mod/github.com/sirupsen/logrus@v1.4.2/entry.go:314"
time="2022-04-29T11:00:16Z" level=error msg="error syncing 'system-upgrade/server-plan': handler system-upgrade-controller: plans.upgrade.cattle.io \"server-plan\" not found, handler system-upgrade-controller: plans.upgrade.cattle.io \"server-plan\" not found, requeuing" func="github.com/sirupsen/logrus.(*Entry).Logf" file="/go/pkg/mod/github.com/sirupsen/logrus@v1.4.2/entry.go:314"

watching jobs in the namespace there briefly appears one and immediatly disappears:
system-upgrade   apply-server-plan-on-decgn-pr-vmcq-k8s-with-d5c507264ef83-d9397   0/1                      0s

one additional note, i am using fluxcd with the cluster though i am not sure if this is interfering here since it doesnt touch the status fields and no status is ever set on the plans nor any events appear…
To Reproduce
setup rke2 cluster
apply controller
apply plans
Expected behavior
successful node upgrades
Actual behavior
even initializing the upgrade fails
Additional context

Have same problem in my 3 K3S clusters. Deleting existed system-upgrade-controller pod and let K3S creates a new one will fixed the problem.

i did end up removing the controller and the plans and created them again and it fixed it. really annoying for a cluster thats completly setup using IAC with ansible and flux to have to possibly manually fix some stuff

The not found error for the plan is weird, as are the disappearing jobs. This suggests that something, possibly fluxcd, is fighting with the SUC as it updates the status of a plan. Is it possible fluxcd is recreating the plan after SUC updates it? If it doesn't honor the .status subfield as mutable it might think it needs to reconcile drift and recreate.

It is not related to fluxcd. I apply plans manually and the issues still existed.
After using system-upgrade-controller for about a year, it is far from stable. Very disappointed.

It is not related to fluxcd. I apply plans manually and the issues still existed.
After using system-upgrade-controller for about a year, it is far from stable. Very disappointed.

That's a bummer and I am sorry. If you haven't already, can you create an issue with a full repro description if not sample setup (k3d, kind, or vagrant)? Please include the plan(s) that leads to instability you have witnessed.

Have same symptom with ArgoCD.  After some troubleshooting, I have the CRD via kustomize:
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
  # renovate: datasource=docker image=rancher/system-upgrade-controller
  - https://github.com/rancher/system-upgrade-controller/releases/download/v0.9.1/crd.yaml

That CRD is applied, however the System Upgrade Controller is trying to replace the CRD and ArgoCD puts back its copy from above.  The two are constantly fighting and the logs show the sync error on the plans.
In ArgoCD I disabled the self-heal to allow SUC to update the CRD, immediately the logs are stable and the error message goes away.  This is the DIFF that ArgoCD shows on the CRD created:

I don't understand why the downloaded CRD is different than the one SUC is trying to use....  but as long as I allow these to be out of sync it's working.
SUC is using image: 'rancher/system-upgrade-controller:v0.9.1'

can confirm, i dont have any errors when i drop the CRDs from my kustomization, this only works though because the plan crd is already in the cluster, starting the controller and trying to apply the plan immediatly after obviously doesnt work, because the CRD is only there after pod start…
solutions could be disabling the applying of CRDs from within the controller or fixing the CRD

Thank you @reefland and @Robbilie for the additional detail.

@dweomer is there actually a reason for why the controller registers the CRD? Relying on it kind of encourages manual processes and for infrastructure as code approaches it is redundant, possibly even error prone like this bug shows :)

We're having this issue on 9.1 as well and we do not manually deploy the CRD yaml file.

@dweomer is there actually a reason for why the controller registers the CRD? Relying on it kind of encourages manual processes and for infrastructure as code approaches it is redundant, possibly even error prone like this bug shows :)

Hmm, I thought I had responded to this. The programmatic CRD registration was a pattern established by other projects/efforts that leveraged rancher/wrangler and it helped sidestep some order-of-operations issues that I ran into while developing SUC (while learning k8s controllers and wrangler).
The CRD manifest was something asked for by a customer, IIRC, with the build/run-time generation implemented by @brandond (in consultation with me and the rest of the team). A fix for this downstream conflict will require some nuance to satisfy both modes of CRD deployment and likely some adherence to proper CR versioning.
While I no longer work for SUSE/Rancher I do not want folks to feel left in the lurch. I hope to work on and validate a fix sometime soon but cannot promise availability.

The CRD manifest was something asked for by a customer, IIRC, with the build/run-time generation implemented by @brandond (in consultation with me and the rest of the team). A fix for this downstream conflict will require some nuance to satisfy both modes of CRD deployment and likely some adherence to proper CR versioning.

That was us that had asked for the CRD yaml to be included in the deployment manifest.  Instead, it got added to the release assets and is still not in the manifest.  Since the fix didn't really solve our problem, we split plans from the controller so Flux2 can successfully apply all of the files. Once the CRD is dynamically created, the plans can then be applied.

@dweomer i mean my PR should fix the issue now, although when there are mutliple plan crd versions that might change, its just that its kinda redundant to have both ways apply the crds, as long as both use the same source it shouldnt be an issue i guess

I'm not convinced that the Plan CRD change is the root cause of the issue. In https://github.com/rancher/system-upgrade-controller/issues/206#issuecomment-1183725985 I saw Not Found errors for both the plan and job resources, and this what when I just ran the controller directly without pre-installing the CRDs. I think there's something else going on with the wrangler informer caches.

@brandond cluster was upgraded to v1.24.4+rke2r1 without any manual intervention this time :)

I still needed manual intervention from v1.24.3+k3s1 to v1.24.4+k3s1, it detected the plan changes made by renovate, but couldn't do anything, just had errors like this over and over:
time="2022-08-30T17:29:40Z" level=error msg="error syncing 'system-upgrade/k3s-worker-plan': handler system-upgrade-controller: plans.upgrade.cattle.io \"k3s-worker-plan\" not found, requeuing"
time="2022-08-30T17:29:40Z" level=error msg="error syncing 'system-upgrade/k3s-control-node-plan': handler system-upgrade-controller: plans.upgrade.cattle.io \"k3s-control-node-plan\" not found, handler system-upgrade-controller: plans.upgrade.cattle.io \"k3s-control-node-plan\" not found, requeuing"
time="2022-08-30T17:30:10Z" level=error msg="error syncing 'system-upgrade/k3s-worker-plan': handler system-upgrade-controller: plans.upgrade.cattle.io \"k3s-worker-plan\" not found, requeuing"
time="2022-08-30T17:30:10Z" level=error msg="error syncing 'system-upgrade/k3s-control-node-plan': handler system-upgrade-controller: plans.upgrade.cattle.io \"k3s-control-node-plan\" not found, handler system-upgrade-controller: plans.upgrade.cattle.io \"k3s-control-node-plan\" not found, requeuing"

Simply killed system-upgrade-controller pod, and upon its restart, it immediately detected plan changes and got to to work...
time="2022-08-30T17:33:19Z" level=info msg="Applying CRD plans.upgrade.cattle.io"
time="2022-08-30T17:33:20Z" level=info msg="Starting /v1, Kind=Secret controller"
time="2022-08-30T17:33:20Z" level=info msg="Starting /v1, Kind=Node controller"
time="2022-08-30T17:33:20Z" level=info msg="Starting batch/v1, Kind=Job controller"
time="2022-08-30T17:33:20Z" level=info msg="Starting upgrade.cattle.io/v1, Kind=Plan controller"

After that nudge, everything upgraded fine.
$ k get nodes
NAME    STATUS   ROLES                       AGE    VERSION
k3s01   Ready    control-plane,etcd,master   151d   v1.24.4+k3s1
k3s02   Ready    control-plane,etcd,master   125d   v1.24.4+k3s1
k3s03   Ready    control-plane,etcd,master   132d   v1.24.4+k3s1


Check if git-repo when getting current branch

Closes: https://github.com/kennethreitz/legit/issues/99

Great, thanks


Fix golint issue in doc.go

File: doc.go
Line 1: warning: package comment should be of the form "Package types ..." (golint)

I will take this one, is that ok @Akash4927 ?

PR: https://github.com/openebs/maya/pull/580

Thanks for the PR @cpanato


[DOCS-151] Account Recovery

@molfinn Please review the updates describing the account recovery process.
This is how the changes will appear on the portal:
https://deploy-preview-138--cobalt-docs.netlify.app/getting-started/sign-in/account-recovery/

My comments:
Line: On the page prompting you to enter a one-time code, select Start account recovery process.
• should we make it clear that the "one-time code" here is the 2FA code from mobile app?
Line: Once you get an email with a recovery code, enter the code, and select Verify.
• it isn't a recovery code, it's more like a identity verification code. I don't want the user to confuse this with the maybe more common account recovery code or backup code. We plan to introduce that in the future.
Line: If you are the only Organization Owner, we’ll turn off 2FA for you.
• should we say, if you're the only Organization owner, Cobalt Staff will turn off 2FA for you.
Line: You get an email notification confirming that 2FA was turned off.
• The email actually says that your account 2fa settings were updated. we don't currently explicitly say it was turned off.
Line: You get an email notification confirming that 2FA was turned off for a user. (under Turn Off 2FA for a User)
• The org owner will not get an email saying that 2FA was turned off for a user. Only that user who's 2FA was turned off will receive an email.
• can we also include something here like we have verified the user's identity with a one-time identity verification code, but we also suggest verifying the user's identity before turning off 2FA according to your company policies.

@ana-dashuk-cobalt looks good to me. Thanks for addressing

@molfinn Please approve the request if you are OK with the changes. I cannot proceed until all reviewers approve the PR.


Argonautica problems

https://github.com/bcmyers/argonautica/issues/11

#199 makes this not important to us anymore.


fix: add package-lock.json to VCS

package-lock.json is meant to be checked into version control systems for a point in time snapshot of dependencies that work together.

Removes package-lock.json from .gitignore
Adds an updated package-lock.json file

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


Multiple quality improvements - squid:S2131, squid:S1319

This pull request is focused on resolving occurrences of Sonar squid:S2131 - Primitives should not be boxed just for "String" conversion
squid:S1319 - Declarations should use Java collection interfaces such as "List" rather than specific implementation classes such as "LinkedList"
You can find more information about the issues here:
https://dev.eclipse.org/sonar/coding_rules#q=squid:S2131
https://dev.eclipse.org/sonar/coding_rules#q=squid:S1319
Please let me know if you have any questions.
M-Ezzat

Thanks for the PR @m-ezzat


Lean init not working behind firewall

Hi,
I'm currently testing out the Lean CLI for my firm. Unfortunately I'm stuck at the very beginning:

I'm sure it has something to do with our IT team blocking every possible port we can think of. Is there a workaround on your end, otherwise I'm going to have to wait weeks before an internal ticket gets approved.
I went in the init.py file -> _download_repository function -> line 37 and added verify = False to the get method. I get a warning and nothing :

Thanks for your help,
Nicolas Voisin

Hi Nicolas,

I went in the init.py file -> _download_repository function -> line 37 and added verify = False to the get method. I get a warning and nothing :

Do you mean the download ran successfully after adding verify = False, or do you mean the command exited immediately?

Hi Jasper,
The terminal just freezes with the urllib3 warning. I don't have access to the windows terminal (i.e can't type any command), and nothing appears in the ./LeanCLI folder. I end up just closing the tab because Ctrl+C or Ctrl+Z doesn't work either.

I just released a new version which supports the Windows Certificate Store as a source of CA certificates to verify SSL vertificates on Windows. This should make it work in corporate environments like yours where your company stores its own CA certificate in the certificate stores of all its machines.
Can you please update using pip install --upgrade lean (you can use the production version, you shouldn't need the verify = False thing) and try running lean init again? The errors/warnings should be gone, although it may take a few minutes for the command to complete.

Hi Jasper,
I don't get the error messages anymore, I'm just stuck at downloading :

Waited 30 minutes at this point and given our bandwidth I'm sure it would have been done by now. Unfortunately I'm going to have to go through our IT and Security Team. Thanks for your efforts and help though ! Will keep you posted.
Nicolas

Small update :
IT team says no ports are blocked, since I can download the file via the browser (MS Edge).
I've tried the following code to test the request. The file length is hardcoded because the headers response does not contain the file size (via content-length).
import requests
import time

url = "https://github.com/QuantConnect/Lean/archive/master.zip"
start_time = time.time()

local_filename = url.split('/')[-1]
chunk_size = 8192

with requests.get(url, stream=True) as r:
    r.raise_for_status()
    total_size = 211932341

    with open(local_filename, 'wb') as f:
        count = 1
        for chunk in r.iter_content(chunk_size=chunk_size):
            duration = time.time() - start_time
            progress = count * chunk_size
            percent = progress / total_size
            print(f"...{percent:.0%} complete, with {progress} bytes downloaded, {duration:.1f} seconds passed")
            f.write(chunk)

            count += 1

print("Download finished!")

I end up being stuck with :
87% complete, with 184164352 bytes downloaded, 103.0 seconds passed
And that's it. Nothing after that.

Weird, that script finishes successfully in ~20 seconds for me.
Can you please try the following script? I am wondering whether the streaming is the issue here.
import requests
import time
from pathlib import Path

url = "https://github.com/QuantConnect/Lean/archive/master.zip"
start_time = time.time()

response = requests.get(url)
response.raise_for_status()

local_file = Path.cwd() / url.split("/")[-1]
with local_file.open("wb") as file:
    file.write(response.content)

bytes_length = len(local_file.read_bytes())
duration = time.time() - start_time

print(f"Download finished, downloaded {bytes_length} bytes in {duration:.1f} seconds")

As an alternative, since you can download the file manually using Edge, you can follow these steps to manually perform the actions ran by lean init so you can continue using the CLI:

Download https://github.com/QuantConnect/Lean/archive/master.zip via your browser.
Extract the Data directory in master.zip to the data directory in the directory you are running lean init in.
Save the content of this gist to lean.json in the directory you are running lean init in.
Run lean config set default-language csharp or lean config set default-language python to set the default language of the lean create-project <project name> command to either C# or Python.

Hi Jasper,
I tried your script and I get the same issue - it just hangs. I ve tried my script at home and it works perfectly fine so I'm confident the issue is within our coporate environment but unless I pinpoint the exact issue the IT support will not budge.
I will try your alternative solution.

Internet access required.


Added Purview DNS with Private Link

Sources
https://docs.microsoft.com/en-us/azure/purview/catalog-private-link-faqs#what-private-dns-zones-are-required-for-azure-purview-for-a-private-endpoint
https://docs.microsoft.com/en-us/rest/api/purview/accounts

@jpmicrosoft : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Should I remove this PR?

@jpmicrosoft
Looks like there are some conflicts, but your change is still valid.  If you resolve the conflicts, I can approve and sign off for merge.
Thanks!
allen

@jpmicrosoft : Thanks for your contribution! The author(s) have been notified to review your proposed change.

The changes have been made. Thank you


Get Comments for post_id

Hello everybody,
when I invoke j.get_post_details_v3(post_id, skip=0), it returns me a property "child_count" with the correct number of comments. However, the array in the property "children" is always empty.
So how do I retrieve the comment messages for a particular Jodel post_id?
André

You need to use skip=None
On Feb 28, 2018 14:03, "André Langer"<EMAIL_ADDRESS>wrote:

Hello everybody,
when I invoke j.get_post_details_v3(post_id, skip=0), it returns me a
property "child_count" with the correct number of comments. However, the
array in the property "children" is always empty.
So how do I retrieve the comment messages for a particular Jodel post_id?
André
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/nborrmann/jodel_api/issues/66, or mute the thread
https://github.com/notifications/unsubscribe-auth/ABpLKF9dHSRF6wldB8Xkqzbizyb9L8V5ks5tZU6ggaJpZM4SWnh-
.

Thanks for the immediate reply.

You need to use skip=None

I tested it, but the returned "children" array is still empty for j.get_post_details_v3(post_id, skip=None).
Does it work correctly for you?

If you're looking for the comments, you will find them in the replies node. The children node always is empty, even when you're look up posts. Maybe it's a placeholder for future features.
So to retrieve an array of all comments of a post, your code could something like this:
# initialize jodel_api beforehand
# Let's also assume that we have somehow retrieved a post_id with some comments

x = j.get_post_details_v3(post_id)
# comments are saved in array
comments = x[1]["replies"]
# take a look by prettyprinting them in the console (or a file if you want)
print json.dumps(comments,indent=4,sort_keys=True)

Thanks  for your comment, petrekova.
I only evaluated x[1]["details"] and was not aware of the other key "replies" so far.
That helped me a lot.

Glad I could help @andrelanger


Plugin doesn't work with @font-face

This great plugin doesn't work with the @font-face declaration.
My config is an empty array in prop_white_list.
selector_black_list doesn't filter the font-face.
Here is the error:
TypeError: Cannot call method 'match' of undefined
    at node_modules/postcss-pxtorem/index.js:72:25
    at Array.some (native)
    at blacklistedSelector (node_modules/postcss-pxtorem/index.js:71:22)

Greetings

The fix is in version 2.3.2 and published to NPM. Let me know if it works for you.

Nice, it works! Thanks.


Add a default state file that store state info like prod dev other things that can be registered

could pass into the run a service object that can be used to store all the values rather than using dependancy injection

values for injected classes could be loaded in the same way the flag values are loaded just set the variable for the type.
Maybe have an [Inject] attribute


[Translatable] Personal Translations

This package is awesome, and I use it all the time. I have a question though when talking about personal translations. Especially the custom translation walker.             (->setHint(Query::HINT_CUSTOM_OUTPUT_WALKER, TranslationWalker::class))
When an entity is retrieved with an query using the above method, how to get the translations from it? Say my default language is 'nl' and these info is stored in an pages table. I have translations in en en these are stored in the page_translations using the personal translations.
When querying an object as en, how to get the translations from there? An left join to translations wouldn't work obviously.

Hi, thanks. if you need to have all translations for an entity in all languages, then select them from translation table directly. that will be easier to modify them and work with them. If you need to identify which are translated fields and which are not. then make a hint to disable translation fallback to default language, it should make those fields as nulls or empty.

What i really want to build is an locale switch. So translate the current page into other languages and link to them. When having the base translation (pages table) this is fairly easy, but when having an translation for it and determine the other translations. That's difficult right?

well, with personal translations, you can have a collection of translations mapped to a translated entity. I do not think that this is tricky or hard to switch locale or find other translations

@l3pp4rd Could you give an code example?

https://github.com/Atlantic18/DoctrineExtensions/blob/v2.4.x/tests/Gedmo/Translatable/Fixture/Personal/Article.php#L28


⚠ Bofrost.lu has degraded performance

In 78a9c71, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1205 ms

Resolved: Bofrost.lu performance has improved in 0e49d21 after 6 minutes.


$brooklyn:component(ID) is deprecated, remove it from docs

@neykov Makes sense, but in truth I'm not sure why DslComponent.component(String) is deprecated. The method component(String scope, String id) is not deprecated, and there is no equivalent entity(String scope, String id).
My gut feel is that the problem is in DslComponent, and that we should add entity(String, String) and deprecate that other component() method.
So merging here.


Help

There is no "Object Explorer". There is a "SQL Server Object Explorer" under the view menu. Is that what you mean? Because when I go there the folders are "SQL Server" and (for example) "Projects - ConsoleApp1". There is no "Database Diagrams" folder or "New Database Diagram" link.

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

ID: a8bc803d-3aee-0e1f-ab64-31c5af48e9f9
Version Independent ID: 472fcb4b-39c3-72a3-d2af-4eba68b72f04
Content: Create a New Database Diagram - Visual Database Tools
Content Source: docs/ssms/visual-db-tools/create-a-new-database-diagram-visual-database-tools.md
Product: sql
Technology: ssms
GitHub Login: @markingmyname
Microsoft Alias: maghan

@drk-mtr -- thank you for your feedback and questions.  You may find answers here:

DBA Stack Exchange
Stack Overflow

I am closing this issue now.  You are welcome to @ mention me for any followup.
We hope to hear from you again.

Glad I took the time to provide feedback ha.

@WilliamAntonRohm If you're not interested in feedback, why not remove the feedback link from that page and replace it with a statement that says "If you need further assistance or find incorrect information on this page, please refer to DBA Stack Exchange or Stack Overflow"?

@drk-mtr -- thank you for clarifying.
@markingmyname -- please look into this issue.

Hi @WilliamAntonRohm , @markingmyname
CC: @drk-mtr
I'm facing the same issue, don't see any "Database Diagrams" Action in Visual Studio. Can you please provide an update asap?
Thanks!

Marvin

I checked with MS Support, it's not possible in Visual Studio. The article is about SSMS.  Please feel free to delete!

@drk-mtr -- no problem!
@marvinzielke -- thank you for your research.