[bug] Calling panel.show() leads to a crash.

Hey 👋, I'm trying to implement in macos that windows don't grab the focus of other windows, but I'm having some problems! The app crashes when I call panel.show()!
Inspired by your comment: https://github.com/tauri-apps/tauri/issues/5566#issuecomment-2409184685
Crash Demo:
https://github.com/user-attachments/assets/5473f1bb-1399-474b-94f1-3405189c3be7
The desired effect:
https://github.com/user-attachments/assets/c3182dfe-35f8-48ba-a17a-a2008af1cd49

From your screen recording, I see that your panel window has a native title bar. Please remove it, as a native title bar can activate an app, which may lead to a crash because you set the non-activating flag for the window.

Can you share your crash log? This will help me identify the issue. Please run it with RUST_BACKTRACE=1.
Also, I can help you more if you can create a public repo with minimal reproduction.

I think you've got it wrong! What I have set as panel is the main window, with the title bar removed!
{
  "windows": [
    {
      "label": "main",
      "title": "EcoPaste",
      "url": "index.html/#/",
      "width": 360,
      "height": 600,
      "minWidth": 360,
      "minHeight": 600,
      "maximizable": false,
      "decorations": false,
      "visible": false,
      "transparent": true,
      "alwaysOnTop": true,
      "acceptFirstMouse": true,
      "skipTaskbar": true
    },
    {
      "label": "preference",
      "url": "index.html/#/preference/clipboard",
      "width": 700,
      "height": 480,
      "minWidth": 700,
      "minHeight": 480,
      "center": true,
      "visible": false,
      "transparent": true,
      "maximizable": false,
      "hiddenTitle": true,
      "skipTaskbar": true,
      "titleBarStyle": "Overlay",
      "windowEffects": {
        "effects": ["sidebar"],
        "state": "active"
      }
    }
  ],
}

https://github.com/user-attachments/assets/8c830c7e-c73c-4950-a2df-88d2766e02ef
I'll try to write a minimal reproducible case!

I forgot to post the config item by the way, the one I set to panel is the main window with the title bar already removed!
{
  "windows": [
    {
      "label": "main",
      "title": "EcoPaste",
      "url": "index.html/#/",
      "width": 360,
      "height": 600,
      "minWidth": 360,
      "minHeight": 600,
      "maximizable": false,
      "decorations": false,
      "visible": false,
      "transparent": true,
      "alwaysOnTop": true,
      "acceptFirstMouse": true,
      "skipTaskbar": true
    },
    {
      "label": "preference",
      "url": "index.html/#/preference/clipboard",
      "width": 700,
      "height": 480,
      "minWidth": 700,
      "minHeight": 480,
      "center": true,
      "visible": false,
      "transparent": true,
      "maximizable": false,
      "hiddenTitle": true,
      "skipTaskbar": true,
      "titleBarStyle": "Overlay",
      "windowEffects": {
        "effects": ["sidebar"],
        "state": "active"
      }
    }
  ],
}

iShot_2024-10-15_08.37.06.mp4
I'll try to write a minimal reproducible case!

Okay nice, waiting for the repo.

I just tried again and it doesn't crash! Sorry for the interruption 🌹

Hey 👋, excuse me, do you know how nspanel supports changing window size?

Hey 👋, excuse me, do you know how nspanel supports changing window size?

Do you mean resizable nspanel?

Thanks, it's great that the minimum size tauri configuration is also in effect!

The reason my app is crashing is because I'm using panel.show in the plugin in customization, but I don't know how to fix it!

https://github.com/ayangweb/src-tauri
Do panel.show and window.show have the same effect?
https://github.com/user-attachments/assets/089e2531-097d-4c6a-86ea-992b9d9ae686

I have checked your  demo repo: https://github.com/ayangweb/tauri-nspanel-demo

When you have converted a window to panel, always try to use the panel methods and not the.
panel.show is the method for showing a panel. to hide a panel call the order_out method. i.e panel.order_out();
Always make sure you can any windowing function in the main thread, this is why the app was crashing in your case, you are calling panel.show in an async tauri command.

if your command must be async, make sure the part of it calling the windowing functions i.e  show or order_out ran on the main thread.
#[command]
pub fn hide_window<R: Runtime>(app_handle: AppHandle<R>) {
    let panel = app_handle
        .get_webview_panel("main")
        .expect("unable to get window");

    if panel.is_visible() {
        panel.order_out(None);
    }
}

#[command]
pub async fn async_hide_window<R: Runtime>(app_handle: AppHandle<R>) {
    let handle = app_handle.clone();

    app_handle
        .run_on_main_thread(move || {
            let panel = handle
                .get_webview_panel("main")
                .expect("unable to get window");

            if panel.is_visible() {
                panel.order_out(None);
            }
        })
        .unwrap();
}

I plan to more guide for this plugin, covering additional use cases and offering more usage examples.

Thanks, I do work!

https://github.com/user-attachments/assets/967a2856-4599-4684-a550-b21cbd4ee0f5
Hey, thank you very much for such a great plugin, I see that your rust is very well written, I wonder if there is a chance to learn from you and accomplish this function of auto-pasting after the window of EcoPaste has been converted to ns_panel!
Code for the paste plugin：
https://github.com/EcoPasteHub/EcoPaste/blob/master/src-tauri/src/plugins/paste/src/commands/mac.rs
It works fine without switching to ns_panel, but not after switching to ns_panel! I don't know what to do about this problem!

You want to detect when the panel becomes and resigns as the key window:
  let main_window = app.get_webview_window("main").unwrap();

  let panel = main_window.to_panel().unwrap();

            panel.set_level(NSMainMenuWindowLevel + 1);

            let delegate = panel_delegate!(EcoPanelDelegate {
                window_did_become_key,
                window_did_resign_key
            });

            let handle = app.handle().clone();

            delegate.set_listener(Box::new(move |delegate_name: String| {
                match delegate_name.as_str() {
                    "window_did_become_key" => {
                        handle.emit("eco_panel_did_become_key", ()).unwrap();
                    }
                    "window_did_resign_key" => {
                        handle.emit("eco_panel_did_resign_key", ()).unwrap();
                    }
                    _ => (),
                }
            }));

            panel.set_delegate(delegate);

            Ok(())

Thanks, this does listen for ns_panel to focus and blur 🥳, but focus_previous_window still doesn't trigger window_did_resign_key, I'm not a great rust learner, sorry for the intrusion!
https://github.com/ayangweb/ayangweb-EcoPaste/blob/8f2d9def4a5043026342f926d950900b5d2b5546/src-tauri/src/plugins/paste/src/commands/mac.rs#L82
https://github.com/user-attachments/assets/cbbb1d0a-3412-41b8-aab7-a865a1de68c1

Another problem is that my window is fixable, I tried to deal with it ns_panel under finish paste functionality, but it seems complicated. 🙁
https://github.com/user-attachments/assets/67a9746f-f38b-478c-ae9c-005b48687c15

Thanks, this does listen for ns_panel to focus and blur 🥳, but focus_previous_window still doesn't trigger window_did_resign_key, I'm not a great rust learner, sorry for the intrusion!
https://github.com/ayangweb/ayangweb-EcoPaste/blob/8f2d9def4a5043026342f926d950900b5d2b5546/src-tauri/src/plugins/paste/src/commands/mac.rs#L82
iShot_2024-10-23_17.29.52.mp4

When you use panel.show() and panel.order_out() it doesn't steal foucs from the active window! It only becomes they key window and first responder.
What this means is that you don't have to call the focus_previous_window  function as that window still has the focus.

I tested it and it still doesn't work, maybe I have to actively trigger window_did_resign_key when pasting, but I don't know how to implement the active trigger?

Wow, great, I realized the effect this way! Thank you very much for the solution idea!
pub async fn paste<R: Runtime>(app_handle: AppHandle<R>) {
    let handle = app_handle.clone();

    let _ = app_handle.run_on_main_thread(move || {
        let panel = handle.get_webview_panel(MAIN_WINDOW_LABEL).unwrap();

        panel.resign_key_window();
    });

    // focus_previous_window();

    let script =
        r#"osascript -e 'tell application "System Events" to keystroke "v" using command down'"#;

    std::process::Command::new("sh")
        .arg("-c")
        .arg(script)
        .output()
        .expect("failed to execute process");
}

https://github.com/user-attachments/assets/1eef7354-eca7-4bdb-96a4-162da7a94fb2

Thanks for the plugin, it really helped me a lot!

Thanks for the plugin and the ideas you provided for implementation, really helped me a lot!🌹

Are all problems now resolved?
You're welcome, you can always reach out to me anytime, I am more than happy to help.

Thanks for the plugin and the ideas you provided for implementation, really helped me a lot!🌹

Are all problems now resolved?
 You can always reach out to me anytime, I am more than happy to help.

Thank you, there are no other problems at the moment, if I encounter some more complicated and difficult to solve problems, I will ask you, thank you very much🌹

Sorry to bother you so soon! Hahaha 🤣 I suddenly realized a problem, my own window-state plugin I wrote is not working for the main window in macos, I see that panel provides the set_content_size method, but not the method to get the window size and position related!
let delegate = panel_delegate!(EcoPanelDelegate {
    window_did_resize,
    window_did_move
});

delegate.set_listener(Box::new(move |delegate_name: String| {
    match delegate_name.as_str() {
        "window_did_resize" => {
            println!("window_did_resize");
        }
        "window_did_move" => {
            println!("window_did_move");
        }
        _ => (),
    }
}));

The above code triggers window_did_resize and window_did_move, but as per chatgpt's answer of  let frame = panel.frame() to get the size and position of the window, but the panel has no frame method.
iShot_2024-10-23_21.04.12.mp4

You can use the tauri window.position and size apis. it should work.

It works for ns_window, but not for ns_panel!
https://github.com/user-attachments/assets/c27cff66-a42b-49ba-b43e-b87f6bb85bfa

ns_window
https://github.com/user-attachments/assets/0afece32-a088-41b8-aca3-8b702ba3bed0

How do you detect when save the state? That is where the issue is. It's not detecting that the panel has been resized or moved since the standard tauri window resized and moved event won't work with the panel anymore

ns_panel Double-clicking on a blank space just crashes it. Hahaha, I'm really sorry to bother you with so many questions!😁
https://github.com/user-attachments/assets/1d6f7d40-1867-4619-86a2-6ff04db00e97

How do you detect when save the state? That is where the issue is. It's not detecting that the panel has been resized or moved since the standard tauri window resized and moved event won't work with the panel anymore

Haha, yeah oh, I'll optimize it! I got confused writing code!🤣

The fix should be straight forward.
 let delegate = panel_delegate!(EcoPanelDelegate {
                window_did_become_key,
                window_did_resign_key,
                window_did_resize,
                window_did_move
            });

            let handle = app.handle().clone();

            delegate.set_listener(Box::new(move |delegate_name: String| {
                match delegate_name.as_str() {
                    "window_did_become_key" => {
                        // emit a global event when the panel becomes the key window
                        handle.emit("eco_panel_did_become_key", ()).unwrap();
                    }
                    "window_did_resign_key" =>
                     // emit a global event when the panel resigns as the key window
                        handle.emit("eco_panel_did_resign_key", ()).unwrap();
                    }
                    "window_did_resize" => {
                        handle.emit("eco_panel_did_resize", ()).unwrap();
                    }
                    "window_did_move" => {
                        handle.emit("eco_panel_did_move", ()).unwrap();
                    }
                    _ => (),
                }
            }));

ns_panel Double-clicking on a blank space just crashes it. Hahaha, I'm really sorry to bother you with so many questions!😁
iShot_2024-10-23_21.23.13.mp4

Yes this is expected, you cannot call window.maximize on a panel, it will crash.

The fix should be straight forward.
 let delegate = panel_delegate!(EcoPanelDelegate {
                window_did_become_key,
                window_did_resign_key,
                window_did_resize,
                window_did_move
            });

            let handle = app.handle().clone();

            delegate.set_listener(Box::new(move |delegate_name: String| {
                match delegate_name.as_str() {
                    "window_did_become_key" => {
                        // emit a global event when the panel becomes the key window
                        handle.emit("eco_panel_did_become_key", ()).unwrap();
                    }
                    "window_did_resign_key" =>
                     // emit a global event when the panel resigns as the key window
                        handle.emit("eco_panel_did_resign_key", ()).unwrap();
                    }
                    "window_did_resize" => {
                        handle.emit("eco_panel_did_resize", ()).unwrap();
                    }
                    "window_did_move" => {
                        handle.emit("eco_panel_did_move", ()).unwrap();
                    }
                    _ => (),
                }
            }));

then
            app_handle.listen("eco_panel_did_move", |_| {
                // do something like saving state
            });

            app_handle.listen("eco_panel_did_resize", |_| {
                // do something like saving state
            });

Ok, thanks, I know how to solve this problem🥰

ns_panel Double-clicking on a blank space just crashes it. Hahaha, I'm really sorry to bother you with so many questions!😁
iShot_2024-10-23_21.23.13.mp4

Yes this is expected, you cannot call window.maximize() on a panel, it will crash.

maximizable is always false

Yes, this doesn't prevent calling maximise on the panel

are you using tauri-drag-region?

are you using tauri-drag-region?

Yes, I used it.

are you using tauri-drag-region?

Yes, I used it.

on the panel yea?

are you using tauri-drag-region?

Yes, I used it.

on the panel yea?

yea

are you using tauri-drag-region?

Yes, I used it.

on the panel yea?

yea

okay cool, comment that part out first and try and double to see if it crashes

Since it was on ns_window, I converted to ns_panel and did not remove it!

are you using tauri-drag-region?

Yes, I used it.

on the panel yea?

yea

okay cool, comment that part out first and try and double to see if it crashes

Okay, I'll try!

in your panel permissions file, disable maximise.
{
  "permissions": [
    "core:default",
    "core:window:deny-maximize"
  ]
}

in your panel permissions file, deny maximise.
{
  "permissions": [
    "core:default",
    "core:window:deny-maximize"
  ]
}

which this when some script calls maximize on your panel in the JS land, it fails as it's not permitted

iShot_2024-10-23_21.48.17.mp4
Disabling maximize will also crash!

make it specific for the main window! i see you're using ["*"]

{
  "identifier": "panel-capability",
  "windows": [
    "main"
  ],
  "webviews": [
    "main"
  ],
  "platforms": [
    "macOS",
  ],
  "permissions": [
    "core:default",
    "core:window:deny-maximize"
  ]
}

 "core:window:deny-maximize"

It's the same crash!

 "core:window:deny-maximize"

It's the same crash!

can you remove core:default

core:window:deny-internal-toggle-maximize Just deny this permission!

I found this permission in the console after removing the core:default permission!🤣
iShot_2024-10-23_22.02.46.mp4

Yea, cool. I knew somehow maximize is been called and core:default is likely preluding some perssion that allows this.

I found this permission in the console after removing the core:default permission!🤣
iShot_2024-10-23_22.02.46.mp4

Yea, cool. I knew somehow maximize is been called and core:default is likely preluding some perssion that allows this.

Haha, great, I'll use this method to troubleshoot such issues in the future, thanks!

Hey 👋, sorry for having another question for you!
panel.set_level(NSMainMenuWindowLevel + 1) will cause the system's Simplified Chinese input method to be overwritten 🤣
https://github.com/user-attachments/assets/7987f9ac-4186-4ef3-8372-c1bf910319d1

Hey👋, sorry for having another question for you!
panel.set_level(NSMainMenuWindowLevel + 1) will cause the system's Simplified Chinese input method to be overwritten 🤣
iShot_2024-10-23_23.47.20.mp4

You can play with the levels, hard code it to 4, see if it solves your problem,

I don't know how it's possible with swift native apps, that's cool!
https://github.com/user-attachments/assets/d22cbcd2-9190-4528-8031-c0170dc36d7e

can you try 5?

I fixed this at https://github.com/EcoPasteHub/EcoPaste/pull/733/files, 20 up will override the system input method, but then the window can't be above the top menu bar anymore, to get the window above the top menu bar it has to be NSMainMenuWindowLevel + 1, hahaha, this problem is so strange! I'll be looking into that one!
https://github.com/user-attachments/assets/73df018f-3a55-4000-aa8c-4f02334fd25d

based!

I don't know, I haven't done windows programming in any capacity. But it should be possible. However tauri-nspanel is macOS exclusive.

I don't know, I haven't done windows programming in any capacity. But it should be possible. However tauri-nspanel is macOS exclusive.

Ok, thanks, I'll look into it again!🌹


Running forc fmt adds "--" chars before use keyword

Here's a short scree recording demoing what happens when I run forc fmt:
https://user-images.githubusercontent.com/17053076/154551876-43a961b7-1f97-4059-954c-70cf90af95d1.mov

This should have been fixed with #684. Are you using the latest release or master @nfurfaro?

@adlerjohn ahh, ok. I'm on the latest release. Closing


drop-path rate for ImageNet-21k 90 epochs training.

Hi
Thank you for your effort on an excellent code base.
I think it is the best practice code for ViT and IN-21k training.
I'm trying DeiT-III on ImageNet-21k dataset.
I have a question about drop-path rate
In Table 5 of DeiT-III paper, it is mentioned that drop-path rate increased by 0.05 for the longer pre-training (240 epochs).
In Table 13,  drop-path rates for IN-21k 90 epochs training are 0.0, 0.1, 0.3, 0.5 for ViT-S, B, L, H, respectively.
So, I thought

90 epochs : ViT-S, B, L, H 0.0, 0.1, 0.3, 0.5
240 epochs : ViT-S, B, L, H 0.05, 0.15, 0.35, 0.55

However, in example code, you used

240 epochs : ViT-S, B, L, H 0.05, 0.1, 0.3, 0.5

Then, 90 epochs setting should be

90 epochs : ViT-S, B, L, H 0.0, 0.05, 0.25, 0.45

So, I'm confused and want to ask for some advice on it.
In short, which setting should I use for 90 epochs IN-21k training for the best results?

90 epochs : ViT-S, B, L, H 0.0, 0.05, 0.25, 0.45
90 epochs : ViT-S, B, L, H 0.0, 0.1, 0.3, 0.5

hi, @bhheo
I just wanna know, which version of 21k do you use and how do you do train-test split?
Much appreciate for your kind share.
Best,
Jiasheng

Hi @tangjiasheng
I downloaded IN21k from the official image-net website.
I will try winter21 without validation set and imagenet21k_resized with train-test split on ImageNet official sites.
But, I don't have the result yet and I'm not sure it is the correct setting.
Best
Byeongho Heo

@bhheo
I also have a same concern, not sure which setting is right for reproducing. But, as for 21k, I don't think it will lead too much gap of the results. Unfortunately, I cannot get similar result.
Best,
Jiasheng

Hi @bhheo,
Thank you for your message.
There is an error in the paper. The drop-path of the github repo are correct.
You can use the same drop-path for 90 epoch and 240 epoch.
For the 21k logs we evaluate the model on the 1k val, since the 1k labels are included in the 21k labels it is possible to make the prediction without modifying the network.
Best,
Hugo

Thanks you


Getting started guide for NetworkPolicy

Walks users through a simple example demonstrating NetworkPolicy.

This change is

Is this tied to release 1.4?  If not, can you make the PR against the master?

Please address the open comments from @errordeveloper and @chrismarino before I'll merge.

@errordeveloper @chrismarino @devin-donnelly Thanks for the feedback, should be all set now :)

Closing, will re-open against master.


Updates courseware URL generation in import_courseware command

Pre-Flight checklist

[X] Testing

[X] Code is tested
[X] Changes have been manually tested

What are the relevant tickets?
Closes #1280
What's this PR do?
Changes the generated URL for courseware_url to include /home when importing a course run from edX, so the learner will be taken into the course rather than to the about page on edX.
How should this be manually tested?
Import a course run - the instructions from https://github.com/mitodl/mitxonline/pull/1256 or the documentation for the command would be helpful here. The resulting course run in MITx Online should have a URL that ends in /home and activating it should take you into the course.

Codecov Report

Merging #1295 (cb87457) into main (b9e56a1) will decrease coverage by 1.99%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1295      +/-   ##
==========================================
- Coverage   82.95%   80.95%   -2.00%
==========================================
  Files         299      153     -146
  Lines       12266     8059    -4207
  Branches      844      844
==========================================
- Hits        10175     6524    -3651
+ Misses       1857     1301     -556
  Partials      234      234

Impacted Files
Coverage Δ

main/settings.py
93.51% <100.00%> (ø)

...rc/containers/pages/register/RegisterDeniedPage.js

...ublic/src/components/forms/EditProfileForm_test.js

...c/containers/pages/login/LoginPasswordPage_test.js

...ntend/public/src/components/notifications/index.js

frontend/public/src/components/TopAppBar_test.js

...ontend/public/src/components/InstituteLogo_test.js

...d/public/src/components/forms/RegisterEmailForm.js

frontend/public/src/lib/sanctuary.js

frontend/public/src/lib/auth_test.js

... and 137 more

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

Uh, does this actually work?
I'll see if I can catch it on RC.

Uh, does this actually work?
I'll see if I can catch it on RC.

Ah, I see, I think I get what you are saying. And you are right! This might not work. While reviewing the change was pretty straightforward and my edX learning MFE was having problems with localhost OAuth and thought we can take on it. But I think the /learn part should be necessary here so that it generates the URLs like /learn/course-v1:edX+DemoX+Demo_Course/home instead of /courses/course-v1:edX+DemoX+Demo_Course/home.

Now that i think of it, There's an even better solution to this.
Instead of hardcoded /learn here which is our public_path for learning MFE, I think we should use something like /course e.g. /courses/course-v1:edX+DemoX+Demo_Course/course. It's better because edX will automatically handle the MFE redirection in this case and we won't have to worry about this hardcoded /learn since it can change.

My apologies and https://github.com/mitodl/mitxonline/pull/1305 is the PR in which i shifted it to /course instead as per my most recent comment above. @pdpinch @jkachel

I hadn't thought about it, but I agree that using /courses/course-v1:edX+DemoX+Demo_Course/course would be more robust since the path of the MFE is configurable (we use /learn/)


Is there a way to limit a purchase to 1 with multiple tabs open?

As the title says, will i be able to run multiple tabs and have the script stop after checking out once?

Use privacy.com virtual credit cards and put a cap on them. Seems pretty easy to do.

Read the strategy guide compiled by crazedrunner in our discord. Check out pins in #deputy-drops channel


Don't build the overall contributors list on DAutoTest

This avoids unrelated changes appearing on the DAutoTest diff.

Documentation OK (no changes)

Is this right?

Is this right?

Nope. Let's try again ...
Btw (off-topic): we finally bumped up to $(YEAR) with the PR numbers :)

Nope. Let's try again ...

Looks better now:
Documentation OK (704 deletions)

BTW I see that you hard-coded sitemap.html and dlangspec.pdf to be ignored in the output diff summary. We could also ignore sitemap.html from being generated in the first place, AFAICT this site is not very helpful for reviewers anyhow?

Did you ever investigate this further?

Yes, I remember looking into it a while ago, but I don't remember if I followed up on it.
Sorry, I don't have a lot of time to work on D stuff for the remainder of the year.

How does this relate to https://github.com/dlang/dlang.org/pull/2015 @wilzbach?

How does this relate to #2015 @wilzbach?

DIFFABLE=1 creates a reproducible web folder (no network activity, no timestamps, ...), not sure whether it's useful for you. Apart from that no relation to #2015 except that at some point I would prefer to switch back to automatically generate the contributors file instead of using the stored one...


3.6 beta editor becomes unresponsive after error

Tested versions
3.6.beta3
System information
Godot 3.6.beta3 mobile Editor using a one plus 6t
Issue description
If you run faulty code that result in a error the screen will then black and the whole editor will be become unresponsive, leaving the editor and then opening again and trying to edit or run the game will still result in a unresponsive black screen
The only way to make it work again is to close the app entirely rather then just leaving (when doing this  you will not be shown where the faulty code is Rather you are booted to the main scene) rather then just leaving this is worse then the beta 2 version which I have been using to make my game in that one simply leaving and rejoining will cause the black screen to go away and show you where the error comes from
There is no need for a screen shot
Steps to reproduce
*Write faulty code
*Run it
*and it happens
Minimal reproduction project (MRP)
No need to

To confirm, this happens with any invalid code? Syntax error as well or just code that has errors otherwise?

To confirm, this happens with any invalid code? Syntax error as well or just code that has errors otherwise?

Yes

Duplicate of https://github.com/godotengine/godot/issues/77966


Pokeballs crafts not working (Potentially all type of ball crafts.)

Describe the bug
When trying to craft Poke balls, it doesn't work. I tested it with bug and both of us were unable to craft Poke balls even though we had the correct materials.
To Reproduce
Steps to reproduce the behaviour:

Open Crafting table
Place Materials to craft in the correct way
Craft the Poke balls
Receive said amount of crafted Poke balls

Expected behaviour
To put the correct materials in the crafting table and craft the Poke balls.
Screenshots

Username: Strideii
Server name (all applicable): Orion (Maybe all)

TY for the report, thankfully this issue was already confirmed and forwarded to the Pixelmon trackers :)
Closing!


Attempt to fix build step

Attempt to fix the yarn cli build step - see #470.
It also moves the rollup.config.js file to rollup.config.mjs because rollup was complaining about import in a .js file.
This fixes the first few issues around typescript errors with esbuild, but there is still an issue when running build:ts:bundle from the root directory:
theatre 470-fix-build ✗ yarn build:ts:bundle

~/Projects/theatre/theatre/.temp/declarations/studio/src/index.d.ts → studio/dist...
[!] (plugin rpt2) RollupError: Expected ',', got '{' (Note that you need plugins to import files that are not JavaScript)
.temp/declarations/studio/src/index.d.ts (6:12)
4:  * @packageDocumentation
5:  */
6: import type { IStudio } from '@theatre/studio/TheatreStudio';
               ^
7: /**
8:  * The main instance of Studio. Read more at {@link IStudio}
RollupError: Expected ',', got '{'
    at error (~/Projects/theatre/node_modules/rollup/dist/shared/parseAst.js:279:30)
    at nodeConverters (~/Projects/theatre/node_modules/rollup/dist/shared/parseAst.js:2147:9)
    at convertNode (~/Projects/theatre/node_modules/rollup/dist/shared/parseAst.js:1032:12)
    at convertProgram (~/Projects/theatre/node_modules/rollup/dist/shared/parseAst.js:1023:48)
    at Object.parseAstAsync (~/Projects/theatre/node_modules/rollup/dist/shared/parseAst.js:2213:20)
    at Module.tryParseAsync (~/Projects/theatre/node_modules/rollup/dist/shared/rollup.js:14921:21)
    at Module.setSource (~/Projects/theatre/node_modules/rollup/dist/shared/rollup.js:14502:35)
    at ModuleLoader.addModuleSource (~/Projects/theatre/node_modules/rollup/dist/shared/rollup.js:18796:13)

Using rollup-plugin-dts (not the flat version) gives this error:
theatre 470-fix-build ✗ yarn build:ts:bundle

~/Projects/theatre/theatre/.temp/declarations/studio/src/index.d.ts → studio/dist...
(!) Unresolved dependencies
https://rollupjs.org/troubleshooting/#warning-treating-module-as-external-dependency
@theatre/utils/types (imported by ".temp/declarations/studio/src/TheatreStudio.d.ts", ".temp/declarations/studio/src/PaneManager.d.ts", ".temp/declarations/studio/src/StudioStore/StudioStore.d.ts" and ".temp/declarations/core/src/privateAPIs.d.ts")
@theatre/sync-server/state/types (imported by ".temp/declarations/studio/src/TheatreStudio.d.ts", ".temp/declarations/studio/src/PaneManager.d.ts" and ".temp/declarations/studio/src/StudioStore/StudioStore.d.ts")
@theatre/sync-server/state/types/studio (imported by ".temp/declarations/studio/src/Studio.d.ts")
@theatre/sync-server/state/types/core (imported by ".temp/declarations/studio/src/Studio.d.ts" and ".temp/declarations/studio/src/StudioStore/StudioStore.d.ts")
@theatre/sync-server/state/schema (imported by ".temp/declarations/studio/src/StudioStore/StudioStore.d.ts")
@theatre/sync-server/trpc/routes (imported by ".temp/declarations/studio/src/SyncStore/SyncServerLink.d.ts")
[!] (plugin dts) Error: namespace child (hoisting) not supported yet

  389 |
  390 | declare namespace Prisma {
> 391 |   export import DMMF = runtime.DMMF
      |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  392 |
  393 |   export type PrismaPromise<T> = runtime.Types.Public.PrismaPromise<T>
  394 |
../packages/app/prisma/client-generated/index.d.ts

Confirmed that, using the original rollup-plugin-dts but changing the respectExternal from true to the default false removes the error, but also gives a long list of unresolved dependencies:
(!) Unresolved dependencies
https://rollupjs.org/troubleshooting/#warning-treating-module-as-external-dependency
@theatre/utils/types (imported by ".temp/declarations/studio/src/TheatreStudio.d.ts", ".temp/declarations/studio/src/StudioStore/StudioStore.d.ts", ".temp/declarations/core/src/privateAPIs.d.ts", ".temp/declarations/studio/src/PaneManager.d.ts" and ".temp/declarations/core/src/propTypes/index.d.ts")
@theatre/sync-server/state/types (imported by ".temp/declarations/studio/src/TheatreStudio.d.ts", ".temp/declarations/studio/src/StudioStore/StudioStore.d.ts" and ".temp/declarations/studio/src/PaneManager.d.ts")
@theatre/sync-server/state/types/studio (imported by ".temp/declarations/studio/src/Studio.d.ts")
@theatre/sync-server/state/types/core (imported by ".temp/declarations/studio/src/Studio.d.ts" and ".temp/declarations/studio/src/StudioStore/StudioStore.d.ts")
@theatre/sync-server/state/schema (imported by ".temp/declarations/studio/src/StudioStore/StudioStore.d.ts")
@theatre/sync-server/trpc/routes (imported by ".temp/declarations/studio/src/SyncStore/SyncServerLink.d.ts")
@theatre/utils/color (imported by ".temp/declarations/core/src/propTypes/index.d.ts")

Ah sorry for responding late. So we moved things around a bit (moved everything in theatre/* to separate packages in packages/*, among other things). Build is fixed as of 42483a2b8ea58e3a55495e5269fd37e89b62924e.

Thanks @AriaMinaei, looking forward to trying this out.
Any news on a new version release? Appreciate all the hard work


CLTest#testSubBuffer() failing in local Windows 7 environment

One of the LWJGL Core Tests, org.lwjgl.opencl.CLTest#testSubBuffer(), is failing in my local Windows environment.
The build succeeds, it is only the one aforementioned test that is failing.
Environment:

Commit: 313152a770ad1a19b919d83ddefec9225eb61b59
Ant 1.94.
Java 1.8.0_20
Windows 7 64-bit
NVIDIA GeForce GTX 580 Driver version 347.52

ant -version
Apache Ant(TM) version 1.9.4 compiled on April 29 2014

java -version
java version "1.8.0_20"
Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)

systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
OS Name:                   Microsoft Windows 7 Ultimate
OS Version:                6.1.7601 Service Pack 1 Build 7601

Steps to Reproduce:
ant tests
Expected:
tests:
    [Tests] [LWJGL] Version 3.0.0a | Windows 7 | amd64
    [Tests] [LWJGL] MemoryUtil MemoryAccessor: MemoryAccessorUnsafe
    [Tests] [TestNG] Running:
    [Tests]   D:\git\lwjgl3\config\tests.xml
    [Tests]
    [Tests]
    [Tests] ===============================================
    [Tests] LWJGL Core Tests
    [Tests] Total tests run: 20, Failures: 0, Skips: 0
    [Tests] ===============================================
    [Tests]
    [Tests] [TestNG] Running:
    [Tests]   D:\git\lwjgl3\config\tests_windows.xml
    [Tests]
    [Tests]
    [Tests] ===============================================
    [Tests] LWJGL Platform Tests
    [Tests] Total tests run: 12, Failures: 0, Skips: 0
    [Tests] ===============================================
    [Tests]

Observed:
tests:
    [Tests] [LWJGL] Version 3.0.0a | Windows 7 | amd64
    [Tests] [LWJGL] MemoryUtil MemoryAccessor: MemoryAccessorUnsafe
    [Tests] [TestNG] Running:
    [Tests]   D:\git\lwjgl3\config\tests.xml
    [Tests]
    [Tests]
    [Tests] ===============================================
    [Tests] LWJGL Core Tests
    [Tests] Total tests run: 20, Failures: 1, Skips: 0
    [Tests] ===============================================
    [Tests]
    [Tests] [TestNG] Running:
    [Tests]   D:\git\lwjgl3\config\tests_windows.xml
    [Tests]
    [Tests]
    [Tests] ===============================================
    [Tests] LWJGL Platform Tests
    [Tests] Total tests run: 12, Failures: 0, Skips: 0
    [Tests] ===============================================
    [Tests]
    [Tests] The tests failed.

My OpenCL knowledge is very limited and I do not fully understand what the failing test is actually meant to test. After a quick investigation, the following evaluates to true in my environment:
"NVIDIA CUDA".equals(clGetPlatformInfoStringUTF8(platform.getPointer(), CL_PLATFORM_NAME)

I also saw that (there is a comment)[https://github.com/LWJGL/lwjgl3/blob/a1baabe92e3e7a140916e0238e97a2f4485ebe60/src/tests/org/lwjgl/opencl/CLTest.java#L334-335] in the code
// TODO: Intel has broken reference counting atm

Using those two pieces of information, I implemented a quick and dirty fix to get the test to pass in my fork.
Is the issue local to my environment?

Tested w/ commit:<PHONE_NUMBER>e3c7aaf032a4670d6e5609826c9dd5
"Remove reference count checks from the SubBuffer test" fixed the failure I was seeing. :+1:


is there any cli command to run a dapr in background like docker -d

dapr run --dapr-http-port 3500 --app-id service2

is there any command to run in background mode or detached mode,
or how to deploy in production  in detached mode
like docker run in background mode we add -d
doc:https://docs.dapr.io/zh-hans/reference/cli/dapr-run/

@bulolo As of now dapr run is not supported in detached mode.

@bulolo As of now dapr run is not supported in detached mode.

So any idea how to deploy in self host without detached mode？

As of now via interactive shell(the above method mentioned in description) is the option.

related to #1147


Config CircleCI workflow

Description:
Continue to config CircleCI to fill the gap between circle and travis

[x] Add mypy
[x] Add lokalise.co
[x] Add status badge
[x] Use python 3.5 for lint
[won't fix] Use python 3.5.3 instead 3.5.5

Related issue (if applicable): fixes #

Don't worry about using Python 3.5.3, especially 3.5 is on its way out anyway.

I also tweaked parallelism to 2 from 3. It would allow more flexible arrangement of containers. We have only total 4 containers for now. 2 parallelism will allow we have two test jobs running concurrently.
Translation upload only executed on dev branch, so it would not be execute in checks of this PR. I have a success upload before see https://circleci.com/gh/home-assistant/home-assistant/2052. I hacked the trigger branch for testing purpose.

travis confused when I change PR from draft to ready to review. I will make another force push to refresh it


frontend: Show current nixpkgs commit

cc @garbas

@dasJ Just for the future, if you push branches directly to this repository the CI will create a preview link. It makes reviewing UI changes much easier.

I just tried but I don't have access:
ERROR: Permission to NixOS/nixos-search.git denied to dasJ.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

I just tried but I don't have access:
ERROR: Permission to NixOS/nixos-search.git denied to dasJ.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

oh ... let me fix this asap

should be fixed now.

Replaced by #791


Backporting TCP Servers Transports support to Traefik 2.x

Welcome!

[X] Yes, I've searched similar issues on GitHub and didn't find any.
[X] Yes, I've searched similar issues on the Traefik community forum and didn't find any.

What did you expect to see?
It is impossible to reach a Consul Connect-enabled TCP service with Traefik 2.x (at least up to 2.10.7) because Traefik is not setting up the appropriate certificates when connecting to the sidecar proxies. I see these two PRs got merged on the v3.0 branch to enable the behavior we need:

Adding TCP Server transports: https://github.com/traefik/traefik/pull/9465
Enabling TLS by default for Consul Connect TCP services: https://github.com/traefik/traefik/pull/10140

Can this feature be backported to the 2.x series? Thanks!

Hello and thank you for this proposal,
we discussed it in triage, and we're unfortunately trying to wrap up the next 2.11, which ultimately would be the last 2.X appart from bugfixes.
I'm going to refuse the proposal accordingly and will encourage you to migrate to v3 once it's GA.


Stuck on "waiting for chain sync" after multiple reboots.

Hi there. My node has been stuck on "waiting for chain sync" after multiple reboots. I suspect this has to do with a failed installation of thunderhub, but I could use some assistance with troubleshooting. Any help would be appreciated!
My log output is here: https://termbin.com/q1uj

wait until progress=1 in the bitcoin debug.log

My current thinking is that it is related to me turning on "Run Behind TOR". Other than enabling that setting and letting it reboot itself following turning that setting on, am I supposed to do something else to make this work properly behind Tor?

Fresh logs: https://termbin.com/1jame

Please use the latest image v1.7.

Here the script is only detecting if:
lncli getinfo
shows:
synced_to_chain": true
Please check your LND logs for errors:
for example with:
sudo tail -n 30 -f /mnt/hdd/lnd/logs/bitcoin/mainnet/lnd.log
or
sudo journalctl -fu lnd

This is the message I get in the lnd.log. When a host is unreachable, it gets stuck on Waiting for Chain Sync...
2021-11-08 10:49:54.503 [DBG] BTCN: Failed to connect to 02844ed44f730789d50af924fe96b81d59e123d77f11883a9a0d7e40b3038a8824@sebzays2m4altv2w3lx22lgxdl7grcsm4wj2cigwkcxotk4dvle5ktqd.onion:9735 (reqid 5): socks connect tcp <IP_ADDRESS>:9050->sebzays2m4altv2w3lx22lgxdl7grcsm4wj2cigwkcxotk4dvle5ktqd.onion:9735: unknown error host unreachable
2021-11-08 10:49:54.503 [DBG] BTCN: Retrying connection to 02844ed44f730789d50af924fe96b81d59e123d77f11883a9a0d7e40b3038a8824@sebzays2m4altv2w3lx22lgxdl7grcsm4wj2cigwkcxotk4dvle5ktqd.onion:9735 (reqid 5) in 3m10s

Just to clarify is this just about the display being stuck or there is a problem with LND (or Tor) as well?

Indeed, seems that the display script is working as intended.
What does
lncli getinfo
show?
any errors in the lnd or bitcoin logs?

I don't have any errors either on lnd or bitcoin logs
I checked my lnd.conf and I'm not using neutrino
[Bitcoin]
bitcoin.active=1
bitcoin.node=bitcoind
# enable either testnet or mainnet
#bitcoin.testnet=1
bitcoin.mainnet=1

Private info editet:
lncli getinfo
{
    "version": "0.13.3-beta commit=v0.13.3-beta",
    "commit_hash": "*********************************************************************",
    "identity_pubkey": "******************************************************",
    "alias": "******",
    "color": "#68f442",
    "num_pending_channels": 0,
    "num_active_channels": 12,
    "num_inactive_channels": 1,
    "num_peers": 13,
    "block_height": 708783,
    "block_hash": "*******************************************************",
    "best_header_timestamp": "1636373821",
    "synced_to_chain": false,
    "synced_to_graph": true,
    "testnet": false,
    "chains": [
        {
            "chain": "bitcoin",
            "network": "mainnet"
        }
    ],
    "uris": [
        "<node onion address>"
    ],
    "features": {
        "0": {
            "name": "data-loss-protect",
            "is_required": true,
            "is_known": true
        },
        "5": {
            "name": "upfront-shutdown-script",
            "is_required": false,
            "is_known": true
        },
        "7": {
            "name": "gossip-queries",
            "is_required": false,
            "is_known": true
        },
        "9": {
            "name": "tlv-onion",
            "is_required": false,
            "is_known": true
        },
        "12": {
            "name": "static-remote-key",
            "is_required": true,
            "is_known": true
        },
        "14": {
            "name": "payment-addr",
            "is_required": true,
            "is_known": true
        },
        "17": {
            "name": "multi-path-payments",
            "is_required": false,
            "is_known": true
        },
        "23": {
            "name": "anchors-zero-fee-htlc-tx",
            "is_required": false,
            "is_known": true
        },
        "30": {
            "name": "amp",
            "is_required": true,
            "is_known": true
        },
        "31": {
            "name": "amp",
            "is_required": false,
            "is_known": true
        }
    }
}

the problem is :
"synced_to_chain": false,

@leemcarthur  is this still an issue with 1.9.0?
Closing this for now, please re-open if it still persists.


sketch of optimizer

review for discussion
we cannot use (current-ram) and (current-env) for the ram and env, because we need to expose a predicate for closures. here we only use atom otherwise list.

Thanks for the review. There's the sister pull request: https://github.com/lurk-lang/lurk/pull/59

Thanks for the review. There's the sister pull request: lurk-lang/lurk#59

Yes, let's merge this one first then update that one to use it.

Thanks for the review. There's the sister pull request: lurk-lang/lurk#59

Yes, let's merge this one first then update that one to use it.

Done.


Add an extension to stick objects on other ones.

This extension can be useful for

Sticking an accessory to a moving object
Animating a skeleton

Examples

2 short cases

Project: https://www.dropbox.com/s/2d6pwoj3zpykdj2/StickerTest.zip?dl=1
Build: https://games.gdevelop-app.com/game-8000ff47-e6ab-4787-964f-623340754cec/index.html

An integration into the RTS example by Tristan

Project: https://www.dropbox.com/s/moqrgz3ginctwf7/RectangularFloodFill.zip?dl=1

It avoids LinkedObject searchs for a 3% overall performance gain.
It avoids to use complicated concepts like for each loops and linked objects for a trivial thing.

Nice! Are you able to use _getOnlyFollowPosition() instead of _behaviorData.OnlyFollowPosition?
I think the property getters are in the future more likely to be stable than the _behaviorData object that could be renamed (even if also unlikely).

An action is useless, it works without.

The project with boat and vine can be added into GDevelop too, what you think?
In object property,  what did you think of "Lock the angle"?
Can be cool to make a "bielle" (like this blue bar on video)

An action is useless, it works without.

Without it the crew members size depends on the size of the boat when they are created.
It needs a comment.

The project with boat and vine can be added into GDevelop too, what you think?

Yes, I was waiting to see if the extension were accepted.
I will probably submit them in the same project as they don't have a clear goal other than showing how to use this extension.

In object property, what did you think of "Lock the angle"?
Can be cool to make a "bielle" (like this blue bar on video)

Yes, I hesitated to add it. I couldn't find a good use case (but I'm sure there is). So, I decided to wait and see if someone ask for it.
This kind of movement could be interesting for a moving platform but I guess I would use the action "Put around a position" with the position in object variables to do it.
Do you have a use case in mind?

In object property, what did you think of "Lock the angle"?
Can be cool to make a "bielle" (like this blue bar on video)

Yes, I hesitated to add it. I couldn't find a good use case (but I'm sure there is). So, I decided to wait and see if someone ask for it.
This kind of movement could be interesting for a moving platform but I guess I would use the action "Put around a position" with the position in object variables to do it.
Do you have a use case in mind?

A valve for open a door?
Or for dosing a liquid in a gauge?
Or this

This kind of movement could be interesting for a moving platform but I guess I would use the action "Put around a position" with the position in object variables to do it.

I agree, if you are not adjusting rotation then it makes sense to use the simpler built-in tool "put object around position".

Or this

We already have this with the "OrbitingObjects" extension.  :)

Looking at the extension, what makes me afraid in the code is the need to save a reference to an object in the behavior.
This means that when the object gets deleted (or worse, recycled), the reference will stay there and Very Bad Things will happen. A memory leak in the best case (which can be damaging as it will also point to Pixi objects that can use WebGL stuff).
Two things:

Either you can try to use gdjs.registerObjectDeletedFromSceneCallback. This is guaranteed to be called when an object is deleted. Probably also listen for scenes being unloaded? In both cases, you should somehow drop any reference to these objects.
Or you store just the id of the object, and find a way to get it back?

This needs more thinking, but basically I'm afraid we're messing with future changes to the scene/objects lifecycle, and this will for sure create bugs in a future version.

Thanks for the update! I did a few changes to make this ready:

Fixed Unstick => no Basis object, so it was not working

Removed useless code:

const pointX = eventsFunctionContext.getArgument("PointX");
const pointY = eventsFunctionContext.getArgument("PointY");

Not need for for(const object of objects)

@param basisObject {gdjs.RuntimeObject} => @param {gdjs.RuntimeObject} basisObject

Avoid label "Object" for parameter (give more context: "Object to stick to")

upateOldCoordinates => updateOldCoordinates

Need to do:
if (!runtimeScene.__allStickers)
    runtimeScene.__allStickers = new Set();

in the onCreated, because otherwise __allStickers was not created when changing scenes.

I think it's ready now, merging it. Thanks for the extension! I'll also add the game as an example :)

Thanks for the review. I make similar changes to the ObjectStack extension.

Thank you!


how to redirect side menu links home1 , home 2 to various pages

how to redirect  or navigate from various pages from side menu

Hi @vishalthakur91!
 You should probably ask this question on StackOverflow along with the library you use for navigation.

Thankyou  for this Sir
I haven't  got  any response and feedback from stack overflow .
I think you have a better idea related to it .
regards
On Thu, Aug 24, 2017 at 7:07 PM, Alexey<EMAIL_ADDRESS>wrote:

Closed #313
https://github.com/react-native-community/react-native-side-menu/issues/313
.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/react-native-community/react-native-side-menu/issues/313#event-1219741254,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AUUaCG-agzombsrkXlgEdA9cTwzK8Wr9ks5sbXyfgaJpZM4PBD8x
.


Request - Localisation option for Sonarr!

Any chance of some localization settings to select date format etc please?
This is what I see on Sonarr page.  Was trying to figure out why the hell Arrow was airing next week, until I realised it's the American date format and it's 8 October not 10 August!!!!!   So confusing as a Brit seeing those dates!  A global option to change the format would be so useful - not asking for a list of countries, but rather something the same as Sonarr has in the 'Dates' section of the UI settings.

Im not really sure if i can add this. It gonna be major pain as the date format isnt the same. Sonar has a format that is easy to parse. Others have has dd/mm/yyyy, some has time since epoch etc.

In Norway we write dates as dd.mm.yyyy i im used to wrapping my head around dates :P

Actually, now you mention it the only place I really see the date in HTPC is Sonarr, so I'm officially changing my request (even changed the title :P) to just have localisation settings for Sonarr if that's okay!

Lol yeah we use the same format as you. I can just about get my head around see things as yyyy/mm/dd but mm/dd/yyyy is just mind boggling!

Seems just as simple to set a locale, as it is to choose between date formats. What do you want? Locale or time format?

Making themes "buys" alot for goodwill :P

Hahaha thanks, that's good to know! :D
I think having a choice of date formats would be best with these as the options if possible please:
Date:
Fri, 31 Jul 2015
31 Jul 2015
31/07/2015
31-07-2015
Fri, Jul 31 2015
Jul 31 2015
07/31/2015
07-31-2015
2015-07-31
Time:
8pm/8.30pm
20:00/20:30


Fix detection of parent directory in ModuleScopePlugin

This PR fixes #2404.

LGTM, can you show me a sample path of this though? Curious to see the problem as I'm not really visualizing it too well.

Of course.
Module not found: You attempted to import /root_path_replaced_here/website/src/.tmp-globalize-webpack/dev-i18n-data.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported. You can either move it inside src/, or add a symlink to it from project's node_modules/.

 Makes perfect sense now, thanks! :)

I'm not expert enough to confirm nor deny your assertion ;)

Great, thanks!


The PipelineBehavior is failing because of a List property in IRequest?

Am getting the following error when I use the PipelineBehavior only when a List  is used as a property. Not sure whether the IPipelineBehavior is not handling the List or something am doing incorrectly? When I remove the List property then the code gets executed. Maybe, am doing something wrong, can someone please help me. Thanks in advance!
fail: Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware[1]
      An unhandled exception has occurred while executing the request.
System.NullReferenceException: Object reference not set to an instance of an object.
   at MediatR.Internal.RequestHandlerWrapperImpl`2.<>c__DisplayClass0_1.<Handle>b__2()
   at MediatR.Internal.RequestHandlerWrapperImpl`2.Handle(IRequest`1 request, CancellationToken cancellationToken, ServiceFactory serviceFactory)
   at MediatR.Mediator.Send[TResponse](IRequest`1 request, CancellationToken cancellationToken)
   at Api.Controllers.CustomersController.Post(CustomerAddRequest model) in \Controllers\CustomersController.cs:line 23
   at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at System.Threading.Tasks.ValueTask`1.get_Result()
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync()
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeNextActionFilterAsync()
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeInnerFilterAsync()
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextExceptionFilterAsync()
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ExceptionContext context)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextResourceFilter()
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeFilterPipelineAsync()
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeAsync()
   at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext)
   at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIIndexMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)

Here is the actual code am executing.
public class CustomerAddRequest : IRequest<CommandResponse>
{
	public string CustomerName { get; set; }
	public string CustomerCode { get; set; }
	public string RegistrationNumber { get; set; }
	public string ShortName { get; set; }
	public double CreditLimit { get; set; }
	public IEnumerable<AddressAddRequest> Addresses { get; set; }
}

public class AddressAddRequest
{
	public int AddressTypeId { get; set; }

	public string Address1 { get; set; }
	public string Address2 { get; set; }
	public string Address3 { get; set; }
	public string City { get; set; }
	public string State { get; set; }
	public int CountryId { get; set; }
	public string ZipCode { get; set; }
}

public class CustomerAddPipelineBehavior<TRequest, TResponse> : IPipelineBehavior<TRequest, TResponse>
	where TRequest : CustomerAddRequest
	where TResponse : CommandResponse
{
	public async Task<TResponse> Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate<TResponse> next)
	{
		return await next();
	}
}

The Addresses  property in the AddressAddRequest class is causing the issue. If I remove this property all works well. Any guess please? :)
public IEnumerable<AddressAddRequest> Addresses { get; set; }
This is how am registering with the ServiceCollection.
services.AddScoped(typeof(IPipelineBehavior<,>), typeof(CustomerAddPipelineBehavior<,>));

Looks like the problem is something else, I have a problem registering multiple classes for IPipelineBehavior using ASP.NET DI. I will do a search on google to find out more.

I resolved by passing in the Classes like this. Is there a better way to handle this? If not, I will close this issue.
services.AddScoped(typeof(IPipelineBehavior<CustomerAddRequest, CommandResponse>), typeof(CustomerAddBehavior<CustomerAddRequest, CommandResponse>));
            services.AddScoped(typeof(IPipelineBehavior<BrandDeleteRequest, CommandResponse>), typeof(BrandDeleteBehavior<BrandDeleteRequest, CommandResponse>));
            services.AddScoped(typeof(IPipelineBehavior<CustomerDeleteRequest, CommandResponse>), typeof(CustomerDeleteBehavior<CustomerDeleteRequest, CommandResponse>));

What did your original registration look like?
On Tue, Oct 2, 2018 at 10:37 PM coderabsolute<EMAIL_ADDRESS>wrote:

I resolved by passing in the Classes like this. Is there a better way to
handle this? If not, I will close this issue.
services.AddScoped(typeof(IPipelineBehavior<CustomerAddRequest, CommandResponse>), typeof(CustomerAddBehavior<CustomerAddRequest, CommandResponse>));
services.AddScoped(typeof(IPipelineBehavior<BrandDeleteRequest, CommandResponse>), typeof(BrandDeleteBehavior<BrandDeleteRequest, CommandResponse>));
services.AddScoped(typeof(IPipelineBehavior<CustomerDeleteRequest, CommandResponse>), typeof(CustomerDeleteBehavior<CustomerDeleteRequest, CommandResponse>));
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/jbogard/MediatR/issues/317#issuecomment-426501611,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAGYMnSKblrdJ96HOmdYDOOWtjauAsXZks5uhDDwgaJpZM4XD60U
.

This is my original registration which didn't resolve by itself.
services.AddScoped(typeof(IPipelineBehavior<,>), typeof(CustomerAddBehavior<,>));
services.AddScoped(typeof(IPipelineBehavior<,>), typeof(BrandDeleteBehavior<,>));
services.AddScoped(typeof(IPipelineBehavior<,>), typeof(CustomerDeleteBehavior<,>));

Ah. You can't do generic type constraints with vanilla MS.Extensions.DI. See my PR to fix this:
https://github.com/aspnet/DependencyInjection/pull/635

If you want generic constraints, you have to pull in an 3rd-party container.


Common Users - How to use the theme

Hello @MySecondLanguage
Please document how the theme can be used by common users (outside of admin section).
https://github.com/app-generator/django-admin-argon-dashboard/blob/main/docs/common-users-how-to.md
Thank you!

Validated. Closing.

Validated. Closing


PW recover for 3.0

Fixes #12990 Fixes #12986
Internal review URL

@HaoK  I'm not sure if you need to review this. The 3.0 version just omits a bunch of steps from the previous version.

Less steps is better!


threat_intel_downloader module now uses tf_lambda module

to: @ryandeivert
cc: @airbnb/streamalert-maintainers
related to:
resolves: #1055
Background
The threat_intel_downloader module creates a lambda as part of its instantiation, but does it directly in its own module.
Changes

the thread_intel_downloader module now uses the tf_lambda module for lambda creation

Testing
Unit tests all pass. The threat_intel_downloader was enabled via the conf/ configuration on an extant streamalert instance, and then ./manage.py deploy threat_intel_downloader was run. The resulting terraform files that were generated were visually inspected to make sure they matched the desired output, and the aws console was used to see that the lambda was successfully created and deployed. ./manage.py destroy was then run and the aws console was used to see that the lambda was destroyed.

Coverage increased (+0.0007%) to 96.143% when pulling b57dad253de25b44cbf715828c584113205dcc22 on trailofbits:garretreece-refactor-tid-with-tf-lambda into b6c7960e937e1657c0bca15f5c4068cd66418504 on airbnb:release-3-0-0.

hey @GarretReece as an FYI I changed the base branch for this to release-3-1-0 after some discussion internally here. bug fixes + doc updates are still fine against the release-3-0-0 branch but we're going to freeze it for other improvements / new features


Fix acceptance test errors under RSpec 3.3

When the clearance test suite is run with RSpec 3.3, we get
uninitialized constant RSpec::Rails::FixtureSupport. There were some
FixtureSupport changes made in RSpec 3.3, but they should not impact
our acceptance tests at all.
When looking at the backtrace, I found gems from Clearance's test group
present when it should solely be gems included in our generated test
app. I switched to executing the acceptance test commands against a
clean bundler environment and everything works again.

Looks good to me.

Looks good to me too.

Not waiting for travis. He seems to be napping...


Fixing safe area insets when the drawer is being dragged vertically out of screen bounds.

Platforms Impacted

[x] iOS
[ ] macOS

Description of changes
Fixes #620.
The root cause of this issue is that the safe area insets are only provided when the view is entirely within the screen bounds.
When the user drags the drawer vertically to out of the screen, the safe area insets need to be compensated by setting the additionalSafeAreaInsets property.
Verification
Tested the repro scenarios and validated they were fixed and didn't cause regressions on the combination of the following matrix:

iOS 13 and 14.
iPhone (notch device) vs regular device
iPad

Before (issue reproduced):
https://user-images.githubusercontent.com/68076145/128812729-1399a184-a0f4-46b0-b425-197a7e0fb139.mov
After (issue fixed and validated):
https://user-images.githubusercontent.com/68076145/128812751-a2ac98d1-993a-484d-b583-c09f5ff772ea.mov
Pull request checklist
This PR has considered:

[ ] Light and Dark appearances
[ ] VoiceOver and Keyboard Accessibility
[ ] Internationalization and Right to Left layouts
[ ] Different resolutions (1x, 2x, 3x)
[ ] Size classes and window sizes (iPhone vs iPad, notched devices, multitasking, different window sizes, etc)

Microsoft Reviewers: Open in CodeFlow

this logic is fine even if when drawercontroller has uitableviewcells like popupmenu? because cell should be edge to edge and cell's content inset should have safearea. for stackview of buttons, your logic makes sense.

this logic is fine even if when drawercontroller has uitableviewcells like popupmenu? because cell should be edge to edge and cell's content inset should have safearea. for stackview of buttons, your logic makes sense.

Yes. It just sets the insets for the entire presented controller, so it applies to a tableview if that's the content of that view controller too.
Just to double check, this is the result that you're referring to, right?


Service specific annotations

Welcome!

[X] Yes, I've searched similar issues on GitHub and didn't find any.
[X] Yes, I've searched similar issues on the Traefik community forum and didn't find any.

What did you expect to see?
Prep:
I searched the internet (Issues/Forum) and investigated the helm chart directly.
Context:
We are using Traefik as an IngressController on AWS-EKS and want to declarativly expose udp entrypoints with the help of external-dns. For that we need to add the annotation with the target domain to the specific entrypoint-service e.g.
apiVersion: v1
kind: Service
metadata:
  annotations:
    external-dns.alpha.kubernetes.io/hostname: myfancydomain.com
[...]

Workaround possible:
yes
Implementation idea:
ports.[x].annotations could be introduced.

It seems it's possible with service.annoations, for instance this values file:
service:
  annotations:
    external-dns.alpha.kubernetes.io/hostname: myfancydomain.com

produce this Service, according to helm template:
---
# Source: traefik/templates/service.yaml
apiVersion: v1
kind: Service
metadata:
  name: traefik
  namespace: default
[...]
  annotations:
    external-dns.alpha.kubernetes.io/hostname: myfancydomain.com

Does it answer to your need ?
If yes, I invite you to submit a PR with a complete EXAMPLE on external-dns.

This would add the annotation to all services created right? That is not the desired behavior.

So I am opening a PR that allows this configuration:
ports:
  myUdPport1:
    port: 1111
    hostPort: 1111
    expose: true
    exposedPort: 1111
    protocol: UDP
    annotations:
      external-dns.alpha.kubernetes.io/hostname: first.myfancydomain.com
  myUdPport2:
    port: 2222
    hostPort: 2222
    expose: true
    exposedPort: 2222
    protocol: UDP
    annotations:
      external-dns.alpha.kubernetes.io/hostname: second.myfancydomain.com

It won't work with ports.
You have to add annotations on Service of Ingress.
You can put multiple domains on same ingress and/or create one domain with external-dns and after create multiple CNAME.
Btw, since there is nothing to do on this chart, I close this issue.
Feel free to share configuration issue on Traefik Forum.


Switch the site generator from Hugo to Quarto

I would like to renew the web site with the following steps

[x] Ignore the docs dir (#33)
[x] Switch the Hugo build execution from Netlify to GitHub Actions and verify that it deploys successfully (#34)
[ ] Change the build command in the workflow from hugo to quarto render (At this point, the build is expected to fail because _quarto.yml is not included yet) (#37)
[ ] Switch the contents from Hugo to Quarto (#31)

After #34 (and some fixes by #38, #40) and setting the secrets (thanks @cboettig !), deploying via GitHub Actions seems to work.
But, the preview seems not created for PRs from forked repositories. (Compare #39 and #41)
I am not familiar with Environment, but perhaps the forked repository does not have access to the secrets set in Environments?
I would appreciate your opinion on whether to leave it as is or resolve this issue. Thank you.

I am not familiar with Environment, but perhaps the forked repository does not have access to the secrets set in Environments?

Yes I believe that to be documented.

Thanks.
I am a little reluctant to not be able to use the preview for PRs from forks, but for now I would like to proceed as is.

Closed by #44.


Segmented Repair

Many projects such as (https://github.com/eclipse/eclipse.platform.ui) contains many sonar warnings but we are unable to repair them due to various reasons (below are some of them - issue  #124 , #125)

The project is too big (out of heap memory)
File parsing error causing null pointer exception

Therefore we need to somehow in a nice way split these projects up in a way such that we can still repair the non-error part as big as possible in such cases. Thus, segment repair is proposed by me , where the ideal goal is to repair as good as the default repair (number of fixes are the same) and allow easy rollback and recovery if the repair attempt failed and savage the situation somehow instead of complete fail.
@monperrus @fermadeiral

Next I will experiment with the incremental launcher to forge a rollback protocol :) .

@henry-lp, should we close this issue?

Yes, I can close it .


[Bug] An error occurred while fetching secrets

During the extension configuration in Firebase console, an error occurred related to fetch secrets.
It's stop the configuration process.

I saw it was related to billing account.


Would it be informing to add percentage bars to supply sidebar items?

Currently we have percentage bars for the different demand sectors:

We could also add percentage bars to the supply sectors with the shares of each category in final demand:

For example for the Netherlands it would be:

Electricity 2%
Renewable electricity 18%
District heating 8%
Transport fuels 21%
Biomass 2%
Fuel production (rename to fossil fuel production?!) 49%

I think its interesting! As it directly shows the share of each category. We currently only have the final demand mekko showing these numbers and this chart can not easily be found and understood.

However, these percentages do need some explanation and are not directly understandable (as the demand percentage are). Also the categories do not exactly match the final demand categories (geothermal and solar thermal are missing, I've now added these to district heating).
What do you think? @AlexanderWirtz @jorisberkhout @ChaelKruip @antw @MartLubben @michieldenhaan @noracato @redekok @sfp-kemp @DorinevanderVlies

I like it!

I generally like the idea.
But with the numbers and categories above it mainly confuses me. Some questions that pop into my mind:
But it does raise some questions, for example:

What is the category Electricity (2%), import? In what category does fossil fossil electricity fall?
How do we count overproduction of electricity?
Where do we count direct use of fossil fuels eg Condensing combi boiler)? (is that fuel production? Not with the current content of that item)
How do we deal with double counting - for example biomass used for renewable electricity
Is this based on final demand, primary demand or a mix?

I like the idea but also agree with the points @DorinevanderVlies raises!

I really like the idea! Agree with the points of @DorinevanderVlies. Although we could think of something.
Option 1: We could show the % supply to the final demand.

What is the category Electricity (2%), import? In what category does fossil fossil electricity fall?
Fossil electricity is then part of Electricity.
How do we count overproduction of electricity?
Not included,  because it is not supplied to the final demand
Where do we count direct use of fossil fuels eg Condensing combi boiler)? (is that fuel production? Not with the current content of that item)
This is part of Fossil fuel production
How do we deal with double counting - for example biomass used for renewable electricity
Part of electricity and not of biomass
Is this based on final demand, primary demand or a mix?
In this case final demand

Option 2: We could show the % supply to the primary demand.

What is the category Electricity (2%), import? In what category does fossil fossil electricity fall?
Electricity only shows import. Fossil electricity is part of Fossil fuel production.
How do we count overproduction of electricity?
Not included, because it is not a primary demand
Where do we count direct use of fossil fuels eg Condensing combi boiler)? (is that fuel production? Not with the current content of that item)
This is part of Fossil fuel production
How do we deal with double counting - for example biomass used for renewable electricity
Part of biomass and not of renewable electricity. Solar and wind will be part of renewable electricity
Is this based on final demand, primary demand or a mix?
In this case primary demand

Another idea is to add a switch between final and primary %

Yes good points! @DorinevanderVlies
To start with the first question (because it also answers others)

Is this based on final demand, primary demand or a mix?

It is based on final demand

How do we count overproduction of electricity?
Where do we count direct use of fossil fuels eg Condensing combi boiler)? (is that fuel production? Not with the current content of that item)
How do we deal with double counting - for example biomass used for renewable electricity

Same as final demand

What is the category Electricity (2%), import? In what category does fossil fossil electricity fall?

I mixed up the percentages: 18% is Electricity and 2% is Renewable Electricity ;)


Cannot find datatype for ShowLabels error (due to custom placeholder not being generated)

Related error:
[2024-10-30T07:17:01Z ERROR re_viewer_context::viewer_context] Could not find datatype for component rerun.components.ShowLabels. Using null array as placeholder.
[2024-10-30T07:17:01Z ERROR re_viewer_context::component_ui_registry] Failed to deserialize component of type rerun.components.ShowLabels: Failed to deserialize "rerun.datatypes.Bool#value"

If I understand correctly, ShowLabel has no custom placeholder in the reflection, and can very well never been logged in either stores. So basically nowhere to pick up a datatype. Reading the codegen code, it looks like it should have a placeholder but it doesn't. The component is not Default.
Repro:

commit 10233944f7492aeff5f21d2db03dbd2c3930351a from https://github.com/grtlr/rerun
run the node_link rust example in lattice mode
select the graph entity for the visualizer UI to appear (which include a ShowLabel component)

EDIT: the key aspect of this repro is that there exists no fallback provider for ShowLabel (contrary to, eg., the 2d view, which doesn't trigger that error)
https://github.com/user-attachments/assets/a22d672b-045b-4817-b6aa-c06fb3d63fda

An ad-hoc fix seems to be adding a fallback provider for ShowLabels:
impl TypedComponentFallbackProvider<ShowLabels> for NodeVisualizer {
    fn fallback_for(&self, ctx: &QueryContext<'_>) -> ShowLabels {
        true.into()
    }
}

re_viewer_context::impl_component_fallback_provider!(NodeVisualizer => [ShowLabels]);


[Bitcoin] Multi sign address support

[ ] Support deriving multi-sign address native function

Related: #2298.


Fix Grafana support of multiple helm-chart deployments

What changes were proposed in this pull request?
Fix: grafana dashboard when multiple instances of the helm-chart are depolyed. (Adds missing {release=Release} tags.
Add: Support for the 'All' option, (changes release= to release=~ and sets the All bits accordingly in the dashboard json
How was this patch tested?
Loaded the dashboard up against my 3 existing deployments of the helm charts, and observed the data in Grafana.

It looks like @mlashley hasn't signed our Contributor License Agreement, yet.

The purpose of a CLA is to ensure that the guardian of a project's outputs has the necessary ownership or grants of rights over all contributions to allow them to distribute under the chosen licence.
Wikipedia

You can read and sign our full Contributor License Agreement here.
Once you've signed reply with [clabot:check] to prove it.
Appreciation of efforts,
clabot

[clabot:check]
On Tue, Feb 5, 2019 at 6:59 PM Confluent CLA Bot<EMAIL_ADDRESS>wrote:

It looks like @mlashley https://github.com/mlashley hasn't signed our
Contributor License Agreement, yet.
The purpose of a CLA is to ensure that the guardian of a project's outputs
has the necessary ownership or grants of rights over all contributions to
allow them to distribute under the chosen licence.
Wikipedia http://en.wikipedia.org/wiki/Contributor_License_Agreement
You can read and sign our full Contributor License Agreement here
http://clabot.confluent.io/cla.
Once you've signed reply with [clabot:check] to prove it.
Appreciation of efforts,
clabot
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/confluentinc/cp-helm-charts/pull/238#issuecomment-460760750,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAZDHLwAqAaZQe6j__GOuF-SGjfngL48ks5vKdSMgaJpZM4aj3CL
.

LGTM. Thanks a lot for the PR


Feature request: Support inclusion of mermaid diagrams in export

Feature request: Support inclusion of mermaid diagrams in export

I think this works for HTML but the styling is wrong for other export options. Does that match what you've seen?
Either way, I'll try and patch this by the end of next week, mermaid diagrams are pretty useful.
Thanks for reporting this!

It looks like the cause here is that I'm injecting CSS to make Mermaid diagrams look right, but Pandoc strips all CSS when converting. HTML output looks fine as I don't use Pandoc for that, but everything else looks wrong.
The Mermaid SVG output must have its own styling embedded which looks weird, this is what needs to be fixed. Unsure how I will fix this just yet - I'll have to somehow replace the SVG element style attributes with my own styles.
Note to self: Mermaid images don't appear in the Reveal.js output they are malformed images. To fix this you need to extract the base-64 encoded string from <img src="data:image/svg+xml;base64,MERMAID_BASE64"/> and set image.outerHTML = atob(base64).

It also looks like exporting to a PDF with Mermaid diagrams causes an error because LaTeX (or at least my installation) doesn't support SVG diagrams, which Mermaid diagrams are. I'll look in to replacing Mermaid SVG images with PNGs in places where they cause problems eventually, but as there's already a working PDF export feature I won't worry about the PDF issue for now.

Fixed! Here's an example mermaid diagram in a Word document export:

It just converts the SVG to a PNG and uses that instead.

Oops, I just realised the arrowheads are missing. Looks like a trivial fix, I'll have it done tonight.
Also, currently the Mermaid diagram styles are restricted to the light theme, but I'll consider adding a setting to change that as it seems a little restrictive.

Here we go, works like a charm:


rename to "matrix"?

I have the npm module "matrix" but I never did much with it.
browsing the npm search results for "matrix" it looks like the right thing i'd expect to if I searched for that.
If you would like the module name I can transfer it to you

Oh man, you're like Santa meets domain squatter. Feel free to transfer it, and I'll rename the package. Cheers.

$ npm owner add bcherny matrix
npm http request GET https://registry.npmjs.org/-/user/org.couchdb.user:bcherny
npm http 200 https://registry.npmjs.org/-/user/org.couchdb.user:bcherny
npm http request GET https://registry.npmjs.org/matrix
npm http 200 https://registry.npmjs.org/matrix
npm http request PUT https://registry.npmjs.org/matrix/-rev/3-77cff57242445cf3d76313b72bbc38f4
npm http 200 https://registry.npmjs.org/matrix/-rev/3-77cff57242445cf3d76313b72bbc38f4
+ bcherny (matrix)

it's yours.


SPIKE: use MoJ design system

MoJ Design System - we're already ~using~ following elements of it:

Add another
Task list
Timeline
...

It contains other elements that would be useful for our project too so it starts to make sense to add it permanently.

Just found this: https://github.com/ministryofjustice/moj-design-system-backlog/issues/53

@YaaL Please can you confirm that this issue is now superceded because of the UX work?  Can I close the issue?

Hey @ClaireTroughtonJAC lets leave this ticket open for now.
We are deciding whether to use MoJ Design System and will close this ticket once we've made that decision and created any follow on tickets.


Check caching/usage of Schema for Neo4j named graph data source

In morpheus-examples we run 2 queries on the Neo4jDS. However the output warns 6 times about the schema procedure not being installed. That hints towards that the Schema is read/computed multiple times for the same query (which in either cases would lead to significant performance degradation). We should investigate this further. (migrated from Morpheus)

Should only request the schema once from the PGDS.


s3-credentials list-bucket bucket-name command

Mainly useful for ease of testing that the temporary credentials created in #27 actually work.

Prototype:
@cli.command()
@click.argument("bucket")
@common_boto3_options
def list_bucket(bucket, access_key, secret_key, session_token, endpoint_url):
    "List content of bucket"
    s3 = make_client("s3", access_key, secret_key, session_token, endpoint_url)
    paginator = s3.get_paginator("list_objects_v2")
    keys = []
    for page in paginator.paginate(Bucket=bucket):
        for row in page["Contents"]:
            click.echo(json.dumps(row, indent=4, default=str))

Related:

#38

Looks like I accidentally checked in the implementation of this in f6fd1633efe03f5fcfc887431ce85fead15d32ea - but it still needs documentation and tests. https://github.com/simonw/s3-credentials/blob/75ce3b2c28dae702e8441a306ba3449416fac92e/s3_credentials/cli.py#L668-L677

Spotted a bug - throws an error if run against a bucket that contains no keys:
% s3-credentials list-bucket pysqlite3-wheels
Traceback (most recent call last):
  File "/Users/simon/.local/share/virtualenvs/s3-credentials-J8M1ChYK/bin/s3-credentials", line 33, in <module>
    sys.exit(load_entry_point('s3-credentials', 'console_scripts', 's3-credentials')())
  File "/Users/simon/.local/share/virtualenvs/s3-credentials-J8M1ChYK/lib/python3.10/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/Users/simon/.local/share/virtualenvs/s3-credentials-J8M1ChYK/lib/python3.10/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/Users/simon/.local/share/virtualenvs/s3-credentials-J8M1ChYK/lib/python3.10/site-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/simon/.local/share/virtualenvs/s3-credentials-J8M1ChYK/lib/python3.10/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/simon/.local/share/virtualenvs/s3-credentials-J8M1ChYK/lib/python3.10/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/Users/simon/Dropbox/Development/s3-credentials/s3_credentials/cli.py", line 676, in list_bucket
    for row in page["Contents"]:
KeyError: 'Contents'

Also it currently outlines not-quite-newline-delimited-JSON (it's newline delimited but also pretty printed, which I don't think will work) - need to design better default and output options for it.
s3-credentials % s3-credentials list-bucket static.niche-museums.com | head -n 20
{
    "Key": "Griffith-Observatory.jpg",
    "LastModified": "2020-01-05 16:51:01+00:00",
    "ETag": "\"a4cff17d189e7eb0c4d3bf0257e56885\"",
    "Size": 3360040,
    "StorageClass": "STANDARD"
}
{
    "Key": "IMG_0353.jpeg",
    "LastModified": "2019-10-25 02:50:49+00:00",
    "ETag": "\"d45bab0b65c0e4b03b2ac0359c7267e3\"",
    "Size": 2581023,
    "StorageClass": "STANDARD"
}

I'm going to steal some of the output option ideas from sqlite-utils - in particular I will default to streaming regular JSON that looks like this:
% sqlite-utils rows ../datasette/fixtures.db searchable
[{"pk": 1, "text1": "barry cat", "text2": "terry dog", "name with . and spaces": "panther"},
 {"pk": 2, "text1": "terry dog", "text2": "sara weasel", "name with . and spaces": "puma"}]

Then offer --nl and --csv options too.

I just spotted list-buckets has the same not-quite-newline-delimited JSON output format, which is a bad default. I should fix that too.

This is looking good, needs documentation.

Documentation: https://github.com/simonw/s3-credentials/blob/07fa2073c784c69f2eb4245a664df161e933012f/README.md#list-bucket


AttributeError: 'NoneType' object has no attribute 'headers'

An error reported when the target is reset by waf

Traceback (most recent call last):
File "/usr/bin/wafw00f", line 8, in
main.main()
File "/usr/lib/python3/dist-packages/wafw00f/main.py", line 439, in main
if attacker.genericdetect():
File "/usr/lib/python3/dist-packages/wafw00f/main.py", line 139, in genericdetect
attackresponse_server = response.headers.get('Server')
AttributeError: 'NoneType' object has no attribute 'headers'

Hi, thanks for pulling this up. Seems to be valid bug. Will be rolling out a fix shortly.

Turns out that the only fix required was to just add a missing return statement after catching an exception. Works fine now for me.
$ wafw00f -i ~/test.txt  -v

                ______
               /      \
              (  W00f! )
               \  ____/
               ,,    __            404 Hack Not Found
           |`-.__   / /                      __     __
           /"  _/  /_/                       \ \   / /
          *===*    /                          \ \_/ /  405 Not Allowed
         /     )__//                           \   /
    /|  /     /---`                        403 Forbidden
    \\/`   \ |                                 / _ \
    `\    /_\\_              502 Bad Gateway  / / \ \  500 Internal Error
      `_____``-`                             /_/   \_\

                        ~ WAFW00F : v2.1.0 ~
        The Web Application Firewall Fingerprinting Toolkit

[*] Checking https://xxxxxx.xxx
ERROR:wafw00f:Something went wrong ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
ERROR:wafw00f:Site xxxxxx.xxx appears to be down

E:\WebPentest\wafw00f-2.1.0\wafw00f>ls
init.py*  pycache/  bin/  lib/  manager.py*  plugins/  wafprio.py*  wafw00f.py*
E:\WebPentest\wafw00f-2.1.0\wafw00f>wafw00f -l
Traceback (most recent call last):
File "E:\WebPentest\wafw00f-2.1.0\wafw00f\wafw00f.py", line 17, in
from wafw00f.lib.asciiarts import *
File "E:\WebPentest\wafw00f-2.1.0\wafw00f\wafw00f.py", line 17, in
from wafw00f.lib.asciiarts import *
ModuleNotFoundError: No module named 'wafw00f.lib'; 'wafw00f' is not a package
E:\WebPentest\wafw00f-2.1.0\wafw00f>python --version
Python 3.8.0
E:\WebPentest\wafw00f-2.1.0\wafw00f>git --version
git version 2.29.2.windows.1
E:\WebPentest\wafw00f-2.1.0\wafw00f>pip show wafw00f
Name: wafw00f
Version: 2.1.0
Summary: UNKNOWN
Home-page: https://github.com/enablesecurity/wafw00f
Author: Sandro Gauci
Author-email<EMAIL_ADDRESS>License: BSD License
Location: c:\program files\python38\lib\site-packages\wafw00f-2.1.0-py3.8.egg
Requires: requests, requests, pluginbase
Required-by:
what's the issues?I dont know whats wrong with it,please give me a help.thx!!!

Closing this issue for now. Please feel free to re-open if the same issue gets reproduced again by someone else.

Hi there, not sure if this is considered necroposting, but since you mentioned reopening this issue if someone had the same problem, I'm commenting here. Apologies if that's not what you meant.
I am currently experiencing the same issue with some sites only, but I'm not too sure what's causing it, since I'm able to fetch it just fine with CURL and I'm able to access it directly from my browser too. From what I've seen, the PR which was supposed to fix this got closed, but there's no explanation as to why it was closed and not merged and all it says is that "we can always reopen whenever needed". I was wondering what would be considered as "whenever needed" since, in a way, I do need it to exit gracefully instead of throwing an exception.
Attached is a screenshot of the issue I'm experiencing.

Many thanks in advance!

Hey @prryplatypus, would you mind trying out a fresh clone of the master branch and see if the issue persists. I tried replicating a similar setup and I get:
$ wafw00f http://x.x.x.x:4869

                   ______
                  /      \
                 (  Woof! )
                  \  ____/                      )
                  ,,                           ) (_
             .-. -    _______                 ( |__|
            ()``; |==|_______)                .)|__|
            / ('        /|\                  (  |__|
        (  /  )        / | \                  . |__|
         \(_)_))      /  |  \                   |__|

                    ~ WAFW00F : v2.1.0 ~
    The Web Application Firewall Fingerprinting Toolkit

[*] Checking http://x.x.x.x:4869
ERROR:wafw00f:Something went wrong ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
ERROR:wafw00f:Site x.x.x.x appears to be down

Hi there, apologies for the delay in the response. I don't work on weekends and this is something happening at work 😛.
I can indeed confirm I have just tried reproducing this issue with a fresh clone of this repository and still experience this issue. You can also see how I get a different output depending on whether I specify http:// or not.
root@atlas-core-v2:~# wafw00f/wafw00f/bin/wafw00f -f json -o - http://x.x.x.x
ERROR:wafw00f:Something went wrong ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
Traceback (most recent call last):
  File "tmp/wafw00f/bin/wafw00f", line 8, in <module>
    main.main()
  File "/usr/local/lib/python3.8/dist-packages/wafw00f-2.1.0-py3.8.egg/wafw00f/main.py", line 450, in main
    if attacker.genericdetect():
  File "/usr/local/lib/python3.8/dist-packages/wafw00f-2.1.0-py3.8.egg/wafw00f/main.py", line 146, in genericdetect
    if 'server' in response.headers:
AttributeError: 'NoneType' object has no attribute 'headers'

root@atlas-core-v2:~/Proyectos/astralis# tmp/wafw00f/bin/wafw00f -f json -o - x.x.x.x
ERROR:wafw00f:Something went wrong HTTPSConnectionPool(host='x.x.x.x', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fdd8dd70610>: Failed to establish a new connection: [Errno 111] Connection refused'))
ERROR:wafw00f:Site x.x.x.x appears to be down

Let me know if you want me to email you or send you the IP address somewhere so you can try it out. I'd rather not post it publically since it's not my property.


Duplicate "graphql" modules cannot be used at the same time since different versions...

Bug Report
I'm using payload in a nx monorepo, I met this error after upgrading payload to the newest version.  And I found it was upgraded in 1.4.0.
nx run seo-payload:serve

 >  NX   USING REMOTE CACHE

> nx run seo-payload:serve

chunk (runtime: config) config.js (config) 283 KiB [entry] [rendered]
chunk (runtime: main) main.js (main) 11.7 KiB [entry] [rendered]
webpack compiled successfully (1799b20c209ec786)
Debugger listening on ws://localhost:9229/20d445a8-52d6-422f-9523-b6edace32404
Debugger listening on ws://localhost:9229/20d445a8-52d6-422f-9523-b6edace32404
For help, see: https://nodejs.org/en/docs/inspector
body-parser deprecated undefined extended: provide extended option dist/apps/seo-payload/main.js:388:27
[02:01:19] INFO (payload): Starting Payload...

/Users/stupidism/Documents/jerry-serverless/node_modules/payload/node_modules/graphql/jsutils/instanceOf.js:44
            throw new Error(`Cannot use ${className} "${stringifiedValue}" from another module or realm.
                  ^
Error: Cannot use GraphQLScalarType "DateTime" from another module or realm.

Ensure that there is only one instance of "graphql" in the node_modules
directory. If different versions of "graphql" are the dependencies of other
relied on modules, use "resolutions" to ensure only one version is installed.

https://yarnpkg.com/en/docs/selective-version-resolutions

Duplicate "graphql" modules cannot be used at the same time since different
versions may have different capabilities and behavior. The data from one
version used in the function from another could produce confusing and
spurious results.
    at instanceOf (/Users/stupidism/Documents/jerry-serverless/node_modules/payload/node_modules/graphql/jsutils/instanceOf.js:44:19)
    at isScalarType (/Users/stupidism/Documents/jerry-serverless/node_modules/payload/node_modules/graphql/type/definition.js:117:37)
    at isType (/Users/stupidism/Documents/jerry-serverless/node_modules/payload/node_modules/graphql/type/definition.js:92:5)
    at isNullableType (/Users/stupidism/Documents/jerry-serverless/node_modules/payload/node_modules/graphql/type/definition.js:440:10)
    at new GraphQLNonNull (/Users/stupidism/Documents/jerry-serverless/node_modules/payload/node_modules/graphql/type/definition.js:394:5)
    at /Users/stupidism/Documents/jerry-serverless/node_modules/payload/dist/collections/graphql/init.js:101:23
    at Array.forEach (<anonymous>)
    at initCollectionsGraphQL (/Users/stupidism/Documents/jerry-serverless/node_modules/payload/dist/collections/graphql/init.js:60:38)
    at registerSchema (/Users/stupidism/Documents/jerry-serverless/node_modules/payload/dist/graphql/registerSchema.js:58:24)
    at init (/Users/stupidism/Documents/jerry-serverless/node_modules/payload/dist/init.js:79:38)
^C%

Steps to Reproduce

Other Details

Hey @Stupidism — this is actually not a bug with Payload and more of a restriction with GraphQL itself.
I assume that this is related to a custom GraphQL mutation or query that you have written. If you import types directly from a GraphQL dependency, this can arise.
Notice in our docs how we provide GraphQL as an argument to custom queries and mutations - this is why.  This is literally the same exact GraphQL dependency that Payload uses, so if you use types coming from that GraphQL argument, you will not see this issue.
Otherwise, if you follow the suggested GraphQL solution in the error message, and specify a resolutions to GraphQL in your package.json, that should allow you to dodge this issue as well.
I will convert this to a discussion and we can keep convo going there. But this is expected and there is little that Payload can do to rectify this, unfortunately. Got me a few times myself when having multiple copies / versions of GraphQL installed.


generic procedure info

Create generic procedure with date, experimenter, animal weight

also protocol_id and notes

PR 19


VnV Report [Final Doc]

Feedback from Avenue
Please update the concerned documents based on the feedback from the Professor and TA on Avenue.
Important: Also, update the document with the latest information based on our Final Demo/Product.
VnV Report

[x] VnV Report revised and improved - @Ibrahimango02
[x] An excellent job has been doing addressing the feedback from the Tas, instructor, supervisor (when present), teammates,  other teams, and test users.  The feedback has been conscientiously, completely and consistently addressed.  Unit test summary added to VnV plan. The changes are clearly and completely documented.
[x] Update major revisions table - @Ibrahimango02
[x] Check the Important note above - @Ibrahimango02
[x] Refer to the rubric - @Ibrahimango02
[ ] Reviewed by @{other team member}

Originally posted by @tusharagg1 in #130

VnV report was revised and improved to match final demo. Waiting for mohaansh and nathaniel to fix output states for unit tests.


Add a copy of the MIT license

It is good practice to add a copy of the license to the repository, so I did it.

Perhaps WTFPL is a better fit for the spirit of the project.

Added WTFPL License

Thanks!