[Bug]: Gimp from snap isn't able to load python and js extensions

What happened?
Gimp doesn't load properly python and javascript extensions, probably due to snap sandboxing.
Environment/Versions

GIMP version: 2.99.19 (commit a92388c433)
Package: snap via Ubuntu App center
Operating System: Ubuntu 24.04 LTS

Details and discussion in original issue in Gimp repo (little bit different environment - Ubuntu 24.04.1, different commit of gimp, but same buggy behavior)
https://gitlab.gnome.org/GNOME/gimp/-/issues/12142#note_2244265
What should have happened?
These extensions should load and work without errors, obviously.
Output of snap info $snap_name
name:      gimp
summary:   GNU Image Manipulation Program
publisher: Snapcrafters✪
store-url: https://snapcraft.io/gimp
contact:   https://github.com/snapcrafters/gimp/issues
license:   unset
description: |
  Whether you are a graphic designer, photographer, illustrator, or
  scientist, GIMP provides you with sophisticated tools to get your job done.
  You can further enhance your productivity with GIMP thanks to many
  customization options and 3rd party plugins.

  This snap is maintained by the Snapcrafters community, and is not
  necessarily endorsed or officially maintained by the upstream developers.

  Upstream Project: https://www.gimp.org/
  snapcraft.yaml Build Definition:
  https://github.com/snapcrafters/gimp/blob/master/snap/snapcraft.yaml
commands:
  - gimp
snap-id:      KDHYbyuzZukmLhiogKiUksByRhXD2gYV
tracking:     preview/stable
refresh-date: dnes v 19:07 CEST
channels:
  latest/stable:     2.10.38     2024-05-10 (436) 540MB -
  latest/candidate:  2.10.38     2024-05-10 (436) 540MB -
  latest/beta:       ↑
  latest/edge:       ↑
  preview/stable:    2.99.19-dev 2024-09-10 (439) 479MB -
  preview/candidate: 2.99.19-dev 2024-09-23 (443) 479MB -
  preview/beta:      ↑
  preview/edge:      2.99.19-dev 2024-09-08 (441) 479MB -
installed:           2.99.19-dev            (439) 479MB -

Output of snap connections $snap_name
Rozhraní                Zásuvka               Slot                            Poznámky
browser-support         gimp:browser-support  :browser-support                -
content[gnome-46-2404]  gimp:gnome-46-2404    gnome-46-2404:gnome-46-2404     -
content[gpu-2404]       gimp:gpu-2404         mesa-2404:gpu-2404              -
content[gtk-3-themes]   gimp:gtk-3-themes     gtk-common-themes:gtk-3-themes  -
content[icon-themes]    gimp:icon-themes      gtk-common-themes:icon-themes   -
content[sound-themes]   gimp:sound-themes     gtk-common-themes:sound-themes  -
cups-control            gimp:cups-control     -                               -
dbus                    -                     gimp:dbus-gimp                  -
desktop                 gimp:desktop          :desktop                        -
desktop-legacy          gimp:desktop-legacy   :desktop-legacy                 -
gsettings               gimp:gsettings        :gsettings                      -
home                    gimp:home             :home                           -
network                 gimp:network          :network                        -
opengl                  gimp:opengl           :opengl                         -
removable-media         gimp:removable-media  -                               -
unity7                  gimp:unity7           :unity7                         -
wayland                 gimp:wayland          :wayland                        -
x11                     gimp:x11              :x11                            -

Output of snap version
snap    2.63+24.04ubuntu0.1
snapd   2.63+24.04ubuntu0.1
series  16
ubuntu  24.04
kernel  6.8.0-45-generic

Hi, can you please try out the preview track and see if you still have the issue?
sudo snap refresh gimp --channel preview/stable

Thanks!

Hi, can you please try out the preview track and see if you still have the issue?
sudo snap refresh gimp --channel preview/stable

Thanks!

Yop, it now works in the build from preview channel. Thanks!

Great! I'll close this issue because once GIMP 3.0 is released the new snap will be in latest/stable.


update readme with netlify cms info

Closes #55

This learning path is too vague and all over the place. instead of trying to cover a large topic all in one path it will be better if we focus on a smaller topic like Linux system administration

@LunaticHacker please open a new suggestion on the repo so that someone can look into it


⚠ Bofrost.be has degraded performance

In 4396ac7, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 2214 ms

Resolved: Bofrost.be performance has improved in cbd0406.


Does not work with proxy

I am attempting to use this screensaver at work, where we use a proxy. I have installed but the images do not load. After a period of time, a play button with a line through it appears - indicating the content could not be played.
Proxy has been set in network settings and inside terminal profile.

I have the same issue as well, the screensaver does work fine at my home though.  Our proxy is network based and does not have any settings on our computers that I can find.

I have the same issue as @Gatewayy and cannot influence the settings

Duplicate of #5


Persist fifo counter at copy

This PR fixes a bug when nlohmann::basic_json<fifo_map>::merge_patch is used after copying of a nlohmann::basic_json<fifo_map> object.
Without copying of a timestamp counter, nested fields will be overwritten at their timestamp positions instead of names during merge_patch. Possibly other functionality will be broken too, but we have discovered problem particularly when were using merge_patch.
Minimal example to reproduce the problem with current master:
#include <nlohmann/fifo_map.hpp>
#include <nlohmann/json.hpp>
#include <iostream>

template<class K, class V, class C, class A>
using fifo_map = nlohmann::fifo_map<K, V, nlohmann::fifo_map_compare<K>, A>;
using json = nlohmann::basic_json<fifo_map>;

static const json base_json =
{
    {"field1", {
        {"field11", {
            {"field111", {
                {"field1111", {
                    {"field11111", "value"}
                }}
            }}
        }},
        {"field21", {
            {"field211", {
                {"field2111", {
                    {"field21111", "value"}
                }}
            }}
        }}
    }}
};

int main(int argc, char *argv[])
{
    json schema = base_json; // timestamp is reset here during copying

    schema.merge_patch(
    {
        {"field1", {
            {"field13", {"value3"}},
            {"field14", "value4"}
        }}
    });

    std::cout << schema.dump(4) << std::endl;

    return 0;
}

Output with master:
{
    "field1": {
        "field11": [
            "value3"
        ],
        "field21": "value4"
    }
}

Expected output:
{
    "field1": {
        "field11": {
            "field111": {
                "field1111": {
                    "field11111": "value"
                }
            }
        },
        "field21": {
            "field211": {
                "field2111": {
                    "field21111": "value"
                }
            }
        },
        "field13": [
            "value3"
        ],
        "field14": "value4"
    }
}

Thanks for being so patient!


Add MulticlassAveragePrecisionEvaluator

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (8643f0d) to head (2e979fd).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #190   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           63        64    +1
  Lines         1548      1570   +22
  Branches       161       162    +1
=========================================
+ Hits          1548      1570   +22

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Validate the improved SuperBuild

In GitLab by @ksiero on Jul 19, 2019, 14:09
Subtask of #147.
Validation of all aspect introduced in !214.
Need to check different version of compilers and libraries (best on cluster).

In GitLab by @ksiero on Jul 26, 2019, 10:56
Closes with !214 MR.

In GitLab by @ksiero on Jul 23, 2019, 15:28
It compiles well on my local machine (gcc7.4) and our cluster (gcc6.2) with different build settings.

In GitLab by @ksiero on Jul 26, 2019, 10:56
closed


Remove cfg_attr for serde feature

Is removing serde form the serde feature enough? Or do you want the serde feature removed completely? (the drawback would be to have to set hex, serde_json, serde_yaml non optional...)
Or maybe renaming the feature? It seems a bit wierd to have a serde feature without serde ;)

(the drawback would be to have to set hex, serde_json, serde_yaml non optional...)

yeah I like how you did this! let's leave the others as optional and just require the one serde crate
I think the name collision is fine but if you want to rename, feel free to make a suggestion :)

@ralexstokes Done :)


ImportError: cannot import name 'BaseParallelWrapper' from 'pettingzoo.utils'

After following the installation instructions, I encounter the error in the title when trying to run the sb3_train.py script. I've tried multiple Python versions (3.9 & 3.10), reinstalling pettingzoo, etc, but nothing seems to work. Any help would be appreciated. Thanks!

Turns out it's a typo (BaseParallelWrapper vs BaseParallelWraper) upstream in the PettingZoo repo. For anyone else who encounters this, it looks like someone is working on fixing it, so you can either wait for just go fix the typo yourself.

I have the same question. Have you solved the problem

As a quick and dirty fix, running find . -type f -exec sed -i 's/BaseParallelWraper/BaseParallelWrapper/g' {} + in the root directory of the project appears to do the trick. It's a bit hacky but it works until FaramaFoundation fixes PettingZoo.


feat: simplify using Test DC

Requested in https://t.me/grammyjs/190672
Use it like so:
const bot = new Bot("token", {
    client: { dc: "test" },
});

Maybe rename dc to environment?

Hmm yes that's a better name, let me rename it.

This update is also not backwards compatible for those who use buildUrl

That is not correct, you can always omit the parameter when specifying a function. () => "" is assignable to (a: number, b: number, c: number) => string.


Integrate "SB Admin 2" Theme

We no longer want to use the old SB Admin theme but instead we want to use the latest SB Admin 2 theme. See: https://github.com/BlackrockDigital/startbootstrap-sb-admin-2

FYI: https://startbootstrap.com/template-overviews/sb-admin-2/


Module display differently with learning status

The story:
As a learner that wants to track the modules on a path, I want to see modules displayed differently with different learning status.

What we should do:
We should build the module component that change the display as the learning status on the module changed.

To be successful we need to:
Check these off as they are completed:

[ ] merge PathModule and ModuleTree/Module
[ ] Module display differently according to the learning status on the module

Design

LINK TO FIGMA DESIGN

Hey @Ellie-2020, just use placeholder icons for the moment btw :)

got you.


hide statusbar item

hi, if it's possible to hide statusbar item? I know I can hide this by click statusbar, but it should be better if there is a setting to control this.

Hey DragonBillow. Thanks for the feature request.
I am not a fan of re-implementing features that vscode already has.


Create script to run that tests ports, commands, etc, from within customer's firewall

tracking in upstream


Add ability to have helm init get tiller listening only on localhost

Currently, for users that only use tiller via helm, having tiller listen on all interfaces is insecure - since it allows any user on the cluster to act with the permissions of tiller. Currently, we've to do an extra kubectl step (such as https://zero-to-jupyterhub.readthedocs.io/en/latest/setup-helm.html#secure-helm) to make this happen. It'd be great if this could be a flag to helm init instead.

I'm 99% sure this can be done using the --override flag. See https://docs.helm.sh/using_helm/#using-override for more details.
I'm going to close this because we've answered the question, however please let me know if you have any other questions and we'd be happy to re-open the ticket. Thanks!

Also FYI if you haven't already seen the documentation for it, but we are recommending to users with "untrusted" users in the cluster to please enable the TLS authentication feature for tiller. That way only trusted users can access and act on behalf of tiller.
More on that here: https://docs.helm.sh/using_helm/#securing-your-helm-installation


Doesn't work on linux

When I try to open Separation of Concerns 1 I got missing_file and workshopper is closes.
I have tried all of them:
[X] - works for me (at least I see some text),
[ ] -  don't work for me (missing_file error)
 [X]  » Getting Started
 [ ]  » Separation of Concerns 1
 [ ]  » Separation of Concerns 2
 [ ]  » Separation of Concerns 3
 [X]  » Getting Rid of Switch Statements
 [X]  » Test Driven Development
 [X]  » Fix Your Teammates' Mistakes
 [ ]  » Verify Your Full Vending Machine Implementation

My system:
js-best-practices-workshopper: v1.1.1
node: v7.4.0
npm: v4.0.5
linux: archlinux 4.8.13-1-ARCH

@probil We've attempted a fix with #14. Could you please try to run those exercises again and let us know if it works?

@samblissard Works now. At least I see descriptions for all the tasks


Lessen constraints on certain algorithm arguments

some sequential algorithms (copy, etc.) are fully functional if - when used sequentially - the destination is just an output iterator
fixing is_output_iterator
fixing transform_reduce implementation to properly handle constant input sequences
flyby: minor formatting changes

@msimberg I think is this is ready to go.

retest


[BUG] Claude 2 error

Describe the bug / 描述问题
403
{"error":{"type":"permission_error","message":"Invalid model","code":"model_not_allowed"}}
To Reproduce / 复现步骤
Write to Claude and you'll get this bug.
Expected behavior / 期望行为
Response to my request
Screenshots / 截图

Devtools Info / 开发者工具信息

OS and version / 操作系统版本
macOS 14.0
ChatALL version / ChatALL 版本
1.51.79
Network / 网络
Not needed.
Additional context / 其它相关信息

我也出现了,昨天没问题的

I have already submitted a pull request and am waiting for the author to merge it. Before that, if you need to use Claude2, you can choose to download the source code, go to ChatALL\src\bots\ClaudeAIBot.js, and change model: "claude-2" to model: "claude-2.1". After that, you can build and run it locally. For relevant commands, you can refer to official readme for developer guide.
我已经上传了 Pull Request，正在等待作者的合并。在此之前，如果亟需使用 Claude2，你可以选择下载源码，将ChatALL\src\bots\ClaudeAIBot.js 中的 model: "claude-2"改成model: "claude-2.1"，然后本地构建运行。相关的命令可以参照 Readme中的developer guide。

close by #635


[feat] Nostr Login

Summary

allow users to login with their nostr pubkey
different nostr browser extensions can be used
if a user does not exist it will be created
an existing user can configure its public key in the account page then it will be able to login with nostr
as an extra security feature the user only has 2 minutes after login to change its credentials (password or pubkey). Then he has to re-login.

Screen Recording
Configure server and login with Alby
https://github.com/user-attachments/assets/202e0d23-021a-4a39-a829-945400b84364
Login with nos2x:
https://github.com/user-attachments/assets/761032ee-2c64-4369-8ba8-d2b156226064
Set pubkey to existing user:
https://github.com/user-attachments/assets/f0edf526-2ee6-45f8-966d-53862346cd89
Try to update credentials after treshold:
https://github.com/user-attachments/assets/20ee9fd4-0a66-442b-8c63-af5c8059365a

👀 Hell yes, with Nos2x extension?! Thank you @motorina0

I will be more than happy to be the first to test this.

@bitkarrot thank you for your interest, the PR is now ready to review
The only thing open is adding more tests and improving some labels.

Ah I thought this would include something like a NIP05 login, but this is more general just npub. Looks good so far.

Ah I thought this would include something like a NIP05 login, but this is more general just npub. Looks good so far.

Is there a nip for nip5 login?

ci fails ```FAILED tests/api/test_auth.py::test_register_ok - AssertionError: User created.
assert 401 == 200

where 401 = <Response [401 Unauthorized]>.status_code```

Ah I thought this would include something like a NIP05 login, but this is more general just npub. Looks good so far.

Is there a nip for nip5 login?

I don't think there is a nip other than https://github.com/nostr-protocol/nips/blob/master/05.md, but there is this interesting thing they are doing with nsec bunker apps like this on nostr-login where you can login with a username@domain to a  keystore  like this:

Ok there is also NIP46 https://github.com/nostr-protocol/nips/blob/4438b892d8abd189afc75f9f54532ec95f108d9f/46.md


page_articles.each doesn't pick the I18n language from the file name anymore

Expected behaviour
The same that was happening with v. 4.0.1  were everything was working fine.
Two separate blog instances in the config,rb were pulling out the list of content with the page_articles.each do
Actual behaviour
A page_articles.each do  returns content only for the first of the two blogs only.
Steps to reproduce the problem
Config.rb file as
activate :i18n, :mount_at_root => false, :templates_dir => "content", :locales => [:en, :it]
activate :blog do |blogen|
blogen.name = "blogit";
blogen.prefix = 'en/blog'
...
end
activate :blog do |blogit|
blogit.name = "blogit";
blogit.prefix = 'it/blog'
...
end
Create two files, one with .en and one with the .it extension within
Use the page_articles method to pull out the list of content.

Please provide a repository or some tests we can run through
I will try to put together a repository ASAP.

Additional information

Ruby version:
Middleman version: 4.2
Middleman Blog version: 4.0.2
OS version:

I dont believe much regarding this was updated in the latest version - please continue to use the older one in the meantime and I will investigate.

Hi @iwarner not sure what to say. By the time I forced the 4.0.1 version everything gone back to work as normal.
Does this version include the template stuff and the i18n we discussed last time and for which you setup that repo?

You can see what changed in the commits:
https://github.com/middleman/middleman-blog/commit/a8dd9fe352b4d7962e0b0e48c5ff4556c73d246e
My understanding is that page articles always pulled the default blog, and would not pull from two blogs.

Hi @iwarner
this is the case until you don't specify the blog name in the frontmatter.
On 4.0.2 this suddenly got broken, but skimming the code I don't see anything strange that could have impacted this behaviour.

ℹ This issue is stale because it has been open for more than 90 days with no activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.


[AutoPR frontdoor/resource-manager] [AFD WAF] Add exclusions to managed rule set configuration (2019-10-01)

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/7221

(message created by the CI based on PR content)


Logger <LOGGER_INTERNAL> doesn't work (maybe concurrency issue)

Description
When using the Logger over "internal USB", logging either does work, or doesn't work at all, or just a few frames of logs are received and then it doesn't work anymore.

This is dependent on the program
Sometimes it works, sometimes not
Sometimes launching the program using openocd makes it work, or the inverse

Analysis
template <LoggerDestination dest>
void Logger<dest>::StartLog(bool wait_for_pc)
{
    impl_.Init();   // will trigger OTG_FS_IRQHandler interruption at some point

    /* if waiting for PC, use blocking transmission */
    pc_sync_ = wait_for_pc ? LOGGER_SYNC_IN : LOGGER_SYNC_OUT;
    /** transmit something to stall the UART until a terminal is connected
     * at least two separate calls are required
     */
    PrintLine("Daisy is online");
    PrintLine("===============");
    System::Delay(10);
}

After impl_.Init(); is called, PrintLine will immediately start to CDC_Transmit_FS.
At some point of time, a OTG_FS_IRQHandler interruption will be fired, in which it will setup the CDC.
Typically when the bug happens:
CDC_Init_FS@0x08008e2e (/Users/raf/Desktop/dev/eurorack-blocks/submodules/libDaisy/src/usbd/usbd_cdc_if.c:178)
USBD_CDC_Init@0x080136bc (/Users/raf/Desktop/dev/eurorack-blocks/submodules/libDaisy/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Src/usbd_cdc.c:546)
USBD_SetClassConfig@0x0801382e (/Users/raf/Desktop/dev/eurorack-blocks/submodules/libDaisy/Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.c:231)
USBD_SetConfig@0x08013cf0 (/Users/raf/Desktop/dev/eurorack-blocks/submodules/libDaisy/Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.c:584)
USBD_StdDevReq@0x08013e40 (/Users/raf/Desktop/dev/eurorack-blocks/submodules/libDaisy/Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.c:136)
USBD_LL_SetupStage@0x0801388a (/Users/raf/Desktop/dev/eurorack-blocks/submodules/libDaisy/Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.c:272)
HAL_PCD_SetupStageCallback@0x08009022 (/Users/raf/Desktop/dev/eurorack-blocks/submodules/libDaisy/src/usbd/usbd_conf.c:212)
PCD_EP_OutSetupPacket_int@0x0800e804 (/Users/raf/Desktop/dev/eurorack-blocks/submodules/libDaisy/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pcd.c:2188)
HAL_PCD_IRQHandler@0x0800e9da (/Users/raf/Desktop/dev/eurorack-blocks/submodules/libDaisy/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pcd.c:1083)
OTG_FS_IRQHandler@0x080067b4 (/Users/raf/Desktop/dev/eurorack-blocks/submodules/libDaisy/src/hid/usb.cpp:173)
<signal handler called>@0xffffffe9 (Unknown Source:0)
daisy::UsbHandle::TransmitInternal@0x08006786 (/Users/raf/Desktop/dev/eurorack-blocks/submodules/libDaisy/src/hid/usb.cpp:128)
daisy::LoggerImpl<(daisy::LoggerDestination)1>::Transmit@0x0800657e (/Users/raf/Desktop/dev/eurorack-blocks/submodules/libDaisy/src/hid/logger_impl.h:61)
daisy::Logger<(daisy::LoggerDestination)1>::TransmitSync@0x0800657e (/Users/raf/Desktop/dev/eurorack-blocks/submodules/libDaisy/src/hid/logger.h:113)
daisy::Logger<(daisy::LoggerDestination)1>::TransmitBuf@0x0800657e (/Users/raf/Desktop/dev/eurorack-blocks/submodules/libDaisy/src/hid/logger.cpp:76)
daisy::Logger<(daisy::LoggerDestination)1>::PrintLineV@0x08006630 (/Users/raf/Desktop/dev/eurorack-blocks/submodules/libDaisy/src/hid/logger.cpp:44)
daisy::Logger<(daisy::LoggerDestination)1>::PrintLine@0x0800664e (/Users/raf/Desktop/dev/eurorack-blocks/submodules/libDaisy/src/hid/logger.cpp:32)
daisy::Logger<(daisy::LoggerDestination)1>::StartLog@0x08006672 (/Users/raf/Desktop/dev/eurorack-blocks/submodules/libDaisy/src/hid/logger.cpp:56)
main@0x0800189c (/Users/raf/Desktop/dev/eurorack/frohmage-erb/artifacts/perf/main.cpp:154)

The first time CDC_Transmit_FS is called:
uint8_t CDC_Transmit_FS(uint8_t* Buf, uint16_t Len)
{
    uint8_t result = USBD_OK;
    /* USER CODE BEGIN 7 */
    USBD_CDC_HandleTypeDef* hcdc
        = (USBD_CDC_HandleTypeDef*)hUsbDeviceFS.pClassData;
    if(hcdc->TxState != 0)
    {
        return USBD_BUSY;
    }
    USBD_CDC_SetTxBuffer(&hUsbDeviceFS, Buf, Len);
    result = USBD_CDC_TransmitPacket(&hUsbDeviceFS);
    /* USER CODE END 7 */
    return result;
}

hcdc is NULL, and it seems that hcdc is big enough for the TxState to be mapped to an address that can be at least read.
Workaround
I introduced a delay between impl_.Init(); and before CDC_Transmit_FS is first called:
template <LoggerDestination dest>
void Logger<dest>::StartLog(bool wait_for_pc)
{
    impl_.Init();   // will trigger OTG_FS_IRQHandler interruption at some point

    System::Delay(1000); // wait for CDC_Init_FS to be called

    /* if waiting for PC, use blocking transmission */
    pc_sync_ = wait_for_pc ? LOGGER_SYNC_IN : LOGGER_SYNC_OUT;
    /** transmit something to stall the UART until a terminal is connected
     * at least two separate calls are required
     */
    PrintLine("Daisy is online");
    PrintLine("===============");
    System::Delay(10);
}

And that seems to solve it, at least when the program is living in the FLASH section.

Hi Raphael! I'm sorry for the delay in response.
Thank you for documenting and reporting the issue as well as a temporary workaround.
We'll have a closer look at this when we get a chance.

I seem to be getting the same issue. Serial works very intermittently. Even just whittling down the example to the basics the serial port doesn't show up on mac anymore:
#include "daisy_seed.h"

using namespace daisy;

DaisySeed hw;

int main(void)
{
    hw.Init();
    hw.StartLog();

    while (1) {
        hw.PrintLine("hello");
    }
}

Tried different cables (even though these all worked in the past), tried adding the System::Delay(1000); as above, tried it in various places.
Weirdly this worked at times in the past. Even this minimal example.


Configure CircleCI for each PR

see https://circleci.com/docs/2.0/oss/#build-pull-requests-from-forked-repositories
@divyenduz can you enable this, one must be admin to do this, thanks

This is done.


SSH Node executor didn't receive port from Ansible Resource Model

I have a hosts file like this:

[Development_servers]
srv1 ansible_host=server1.test.com ansible_ssh_user=root
srv2 ansible_host=server2.test.com ansible_ssh_port=2222 ansible_ssh_user=root

If I configure my project using Ansible Resource Model Source and SSH as Default Node Executor, the srv1 works but the srv2 fails.
Monitoring network traffic I see that the srv2 connection is trying to reach port 22, not 2222. I think that SSH did not receive the port from the Resource Model.
If I configure the Ansible Ad-Hoc Node executor, the job works fine, but I need to use SSH executor.
I don't know if it's an Issue or it is intended to avoid this kind of configuration.
But I think the Resource Model must be independent of Node Executor.
Thanks for your help!
If you need some logs or other debug stuff, ask for it please!

This is known behavior (it will not pass configuration back to Rundeck resources).  This is a duplicate of a couple of other issues on the subject.


Document the branches and their purpose

We recently updated the stable branch and realized we didn't have any process written down for how the stable branch is updated. Updating stable is important for addresssing issues in underlying go dependencies.
This commit documents the branches and briefly describes that the stable branch should be rebased on top of master to pick up new changes.

/test e2e
Looks like a timeout issue.

/label qe-approved

please rebase


None containerdn is not handled

I encountered an issue with not handling None containerdn:
Traceback (most recent call last):
  File "/usr/local/bin/bloodhound-python", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.10/site-packages/bloodhound/__init__.py", line 338, in main
    bloodhound.run(collect=collect,
  File "/usr/local/lib/python3.10/site-packages/bloodhound/__init__.py", line 82, in run
    membership_enum.enumerate_memberships(timestamp=timestamp)
  File "/usr/local/lib/python3.10/site-packages/bloodhound/enumeration/memberships.py", line 807, in enumerate_memberships
    self.do_container_collection(timestamp)
  File "/usr/local/lib/python3.10/site-packages/bloodhound/enumeration/memberships.py", line 798, in do_container_collection
    self.enumerate_containers(timestamp)
  File "/usr/local/lib/python3.10/site-packages/bloodhound/enumeration/memberships.py", line 629, in enumerate_containers
    if ADUtils.is_filtered_container_child(ADUtils.get_entry_property(childentry, 'distinguishedName')):
  File "/usr/local/lib/python3.10/site-packages/bloodhound/ad/utils.py", line 427, in is_filtered_container_child
    if "CN=PROGRAM DATA,DC=" in containerdn.upper():
AttributeError: 'NoneType' object has no attribute 'upper'

@jchristman just checked that bloodhound-ce does not contain this fix. Can you please create a PR for this branch? It should be just cherry-picked from https://github.com/dirkjanm/BloodHound.py/commit/404c215fc3e989f487c91d7bfdb102fbfde5f248

I'm still merging some PRs, after which the changes will be merged into the CE branch as well


Revert "MWPW-151936 Aside Tiger Team Enhancements"

Reverts adobecom/milo#2644
Unfortunately an issue was found with this PR that affects older versions of the Aside block still using the deprecated notification variant. A fix will need to be implemented before it is ready to go.
Test URLs:

Before: https://main--milo--adobecom.hlx.page/docs/library/blocks/aside?martech=off
After: https://stage--milo--adobecom.hlx.page/docs/library/blocks/aside?martech=off

Bacom:

Before: https://stage--bacom--adobecom.hlx.page/
After: https://stage--bacom--adobecom.hlx.page/?milolibs=stage

Additionally, to whoever sees this, I cannot for the life of me get the aem-psi-check to recognize my test URLs here 🤦🏻♂ But that should not make a difference considering this is a revert PR


[Issue 11632][C++] Turning on more compiler warnings, and enforcing warnings as errors

Master Issue: #11632
Motivation
This change enables several key warning flags that prevent common mistakes in C++: -Wall -Wformat-security and -Wvla, as well as ensuring the code won't build if it contains warnings.  This will help to keep the code base clean and stable long term.  I was also planning to enable "-Wextra" as it contains several helpful warnings, but I thought the changes required to get -Wall enabled were getting a bit huge as-is, so I'm going to split that effort into two PRs.
Modifications
Most of the changes fall into four categories:

The vast majority are fixing class member initialization order warnings.  These can lead to real bugs and are important to fix.
Next was unused variables or functions - these were mostly found in the tests
Functions with switches on enum values and no default/fallback case resulting in a code path with no return - just needed exception throw statements.
Finally, I also fixed several misuses of the "static" keyword: when applied to global variables or functions, this actually means that the identifier has "internal linkage", meaning it's not accessible outside the current translation unit.  Putting this in a header is almost never what you want to do, but it's a common mistake since the meaning is different when applied to class members.  The "inline" keyword is a better choice in these circumstances.

Verifying this change

[ ] Make sure that the change passes the CI checks.

This change is trivial refactoring to eliminate compiler warnings.  There should be no functional change whatsoever.  I did modify some of the tests to fix warnings, and added a few additional asserts.  The tests are all passing.
Documentation
No doc changes are required

Still working on this... built it in clang and found some more warnings that popped up which are actually potentially serious bugs (dangling references).  Trying to minimize the scope of this first PR as much as possible while still getting the builds to pass with -Wall (I was going to do -Wextra also, but that was a lot of additional warnings... so putting that off for the next round).

/pulsarbot run-failure-checks

@merlimat I think this is ready for review.  I believe the current test failures are due to flakiness and not actual problems, since I can't reproduce them locally in any of the several configurations that I'm testing under (multiple versions of GCC and clang under different Linux distros, one of which is WSL).
The current CPP test run failed in the Python tests due to a segfault.  I've seen this before, but can't reproduce it.  I was looking through the log, and it appears that those tests are running under Python 2.7 in the CI system.  Is that intended?  Official support for Python 2.x ended last year.  The Python tests pass (mostly consistently...) for me under Python 3.6 and 3.9 after I fixed a few of the tests in this change.

You can comment /pulsarbot run-failure-checks to rerun the tests. BTW, please rebase to master to solve the conflict.

Is that intended? Official support for Python 2.x ended last year.

Yeah, it makes sense. Upgrading Python from 2 to 3 requires some changes especially about Python functions to support Python3, IMO. I've tried to upgrade Python 2 to 3 before in https://github.com/apache/pulsar/pull/9684, but I'm not familiar with Python Functions :(
There's also an option from @eolivelli in https://github.com/apache/pulsar/pull/9684#issuecomment-784253625 I think whether should we give up the support for Python2 still needs a discussion, maybe you can send an email to begin a discussion.

Unfortunately we must support Python 2.7 as many users may still be running on Python 2.x.
If you want @oversearch you can start a discussion on<EMAIL_ADDRESS>about defining a EOL for Python 2.7 support.

Thank you for the replies guys, and the review.  I had neglected to check the documentation before posting and hadn't realized that Python 2.7 was still officially supported.  I'm sure there's a mountain of legacy Python 2x code out there and can certainly understand the desire to offer continued support for those users.  I agree that dropping that support, while perhaps a good idea (given the state of the Python ecosystem these days), is not something to be done lightly.
I'll get a rebase for this posted up today.


Wrong keys generated by PIPE and PIPE2

Hi
Looking at https://zmk.dev/docs/codes/keyboard-keypad#symbols--punctuation there is both PIPE and PIPE2.
I have tried to set these on my keyboard but PIPE produces and asterisk (*) and PIPE2 produces a greater than symbol (>)
As it stands right now I am missing the Scandinavian key for less than, greater than (shift) and pipe (alt gr) on my keyboard. How can I get access to that key?

Those keycodes are probably being altered by the layout setting on your host OS

Any way to confirm that assumption? I'm running a pretty standard Ubuntu install with no changes to the default layout settings.

In keyboard settings on your computer the layout should be set to "English (US)" for the keycodes in ZMK to line up with the expected output, as all HID keycodes were defined with that in mind. If you want to create a layout for alternative country layouts you could try using https://github.com/joelspadin/zmk-locale-generator (Although i must admit I have no experience with this tool)

Ah thanks that make some of it work (lost my Swedish letters now but will have to look into fixing that)


Skeleton template improvements

Describe the problem
It's not really a problem, it's more an improvement (QoL improvement!).
I would like to tweak a few things in the skeleton default template.
Describe the proposed solution
Here is the list I have in mind:
1/ Having a +layout.svelte (with the h1)
It's showing the fonctionnality,
2/ moving fav ico to /src/lib/assets
To show immutable assets
3/ Add a robot.txt to keep a static folder
4/ Move playwright files beside routes like page.e2e.(j|t)s
Alternatives considered
My current alternative is to do all these tweaks each time I create a skeleton. (I do it a lot of repro in different context)
Importance
would make my life easier
Additional Information
I will be happy to do it. I would like the blessing before sending the PR :)

At least 2 and 3 sound reasonable to me. 1 would probably be okay if it's not too contrived. I think 4 would be the most controversial

Happy to read that already.
For the 4, I'm embracing the file base routing at the most 😉, if not I reproduce most of the time the same structure in a /test beside /routes... But I admit that it's controversial.


Design File-Format for Sketch Plugin Spec

We should have something that encapsulates all information for a plugin and possible additional meta- or build related information.
For the first iteration we could expand the JSON I used for awesome-sket.ch
{
  "plugins": [{
    "name": "Name for the plugin",
    "url": "The website",
    "author": {
      "name": "The authors name is displayed next to the plugin name",
      "url": "and links to this url"
    },
    "image": "an optional image path or empty string",
    "overview": "A short description",
    "description": "A longer description displayed below the first paragraph. You can use markdown syntax to add links, bold, headlines etc."
  }
}

The missing points I notice:

authors should be an array to support multiple contributors
version number (preferably using Semantic Versioning
Some special build flags or scripts that have to executed on installation

CocoaPods used a single master repo on GitHub to store all Specs, maybe we can adopt this as well. The repo consist of all Specs, one folder per Spec that contains every Spec version, for example Plugin-Name/1.0.1/Plugin-Name.spec

Any progress on this?

:(

Totally.


Browse appears to hang when opening file since 0.5

Thanks for this very nice package! Since the browse rewrite in 0.5, when I try to open any root file with browse, it hangs at a blank screen. It presents as a blank screen in the same color as my terminal background, and accepts no inputs, including ctrl-c. The only way I can close it is via kill in a separate terminal, which then leaves the terminal in a semi-broken state visually (eg. cursor isn't show anymore, line returns are a bit broken - I recognize this isn't precise, but I recognize it as the same behavior as when some executable is modifying the terminal behavior and closes before it can cleanup).
The combinations that I've tried:

macOS 12.?: python 3.10 from pyenv, 3.11 from pyenv, 3.10 from conda
macOS 13.4: python 3.11 from pyenv, 3.11 from conda
iTerm2 and terminal.app
Inside and outside of tmux

I tried 0.6.3 (hangs), 0.5 (hangs), and 0.4.2 (works fine)
Based on the consistency of reproduction of my system, I suspect it's not just a quirk of my setup, but somehow a broader issue. I see that there was previously a --logging option, but it appears to have been removed in the rewrite, so I'm not sure how to go about debugging. Any ideas on how I can resolve this or go about debugging it? Thanks!

As a brief follow up, I found today that this also occurs on CentOS 7, so it appears not to be macOS specific

Textual now has a debugging mechanism via its devtools. See https://textual.textualize.io/guide/devtools/. Is there something specific about the ROOT files you are opening? I'm a macOS iTerm2 user, and haven't had it hang up.

And can you try another textual app? Frogmouth, trogon, or one of the demos, perhaps? https://github.com/textualize

Ahh, this is an update somewhere. Wiping my environment and reinstalling produces this for me too.

Textual 0.24 works, anything after that seems broken for us.

Thanks for the suggestions!

frogmouth works fine for me, so textual seems okay
I was using a complex root file, so tried creating a trivial one, but same result

Based on your updates now, it seems like you're already ahead of me :-)

The test suite is a bit more manageable in it's failure:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! KeyboardInterrupt !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
/Users/henryschreiner/git/scikit-hep/uproot-browser/src/uproot_browser/tree.py:155: KeyboardInterrupt
(to show a full traceback on KeyboardInterrupt use --full-trace)
=============================================================================================================== 3 passed in 168.64s (0:02:48) ================================================================================================================
Task was destroyed but it is pending!
task: <Task pending name='Task-16' coro=<MessagePump._post_message() running at /Users/henryschreiner/git/scikit-hep/uproot-browser/.venv/lib/python3.11/site-packages/textual/message_pump.py:648> cb=[_chain_future.<locals>._call_set_state() at /usr/local/Cellar/python@3.11/3.11.3/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/futures.py:394]>
sys:1: RuntimeWarning: coroutine 'MessagePump._post_message' was never awaited
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
fish: Job 1, 'pytest' terminated by signal SIGSEGV (Address boundary error)

Commenting out node.expand() in load_directory keeps it from dying. I'm going to suspect it's related to https://github.com/Textualize/textual/pull/2536.

New version of uproot-browser out, could you see if it's fixed?

0.6.4 works great - thanks for your help and the quick fix!


laravel aliyuncs/oss-php-sdk Large file upload

When I upload a video file larger than 500m, I use postman to upload, and the status code 500 will be returned. I have checked the log file and there is no error message, but when I upload a small file, it will be uploaded normally. I use laravel 8 0 php8. 0 + my English is not very good. I translated it on the translation software

I have opened the relevant configuration of PHP，file_uploads = on max_execution_time memory_limit upload_max_filesize post_max_size max_input_time，etc ,And Apache also opens the related timeout configuration ,But I just can't see the error message,did  I missing something,

You can use the appendObject method to upload a large file in segments.
By the way, You can also use aliyun-oss-laravel which is easier.
I translated it on the translation software too.


Tooltip controller to manipulate its visibility and such things

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Use case
I was working on a widget that should connect to the server to bring the Tooltip message to the client. after fetching the data I needed to show the tooltip manually because its triggerMode has been set to .tap.
Proposal
I was thinking of a controller to pass into the Tooltip constructor.
Controller be like:
typedef TooltipVisibilityCallback = void Function({bool immediately});

class TooltipController extends ChangeNotifier {
  TooltipController();

  late TooltipVisibilityCallback _open;

  TooltipVisibilityCallback get open => _open;

  set open(TooltipVisibilityCallback value) {
    notifyListeners();
    _open = value;
  }
}

Usage:
_controller.open(immediately: true);

Tooltip(
    controller: _controller,
);

We have to set Controller's open callback on Tooltip's initState
    widget.controller?.open = _showTooltip;

If you think the idea of implementing it like I told, seems ok, then I can work on this feature and will make a PR for that.

Hi @mhbdev, you can manually trigger a tooltip using the tooltip key. See https://api.flutter.dev/flutter/material/Tooltip-class.html#material.Tooltip.4
Is there any limitation you're facing using this approach?

Hi @mhbdev, you can manually trigger a tooltip using the tooltip key. See https://api.flutter.dev/flutter/material/Tooltip-class.html#material.Tooltip.4
Is there any limitation you're facing using this approach?

I know that but I think it would be muck more cleaner. I was working with MenuAnchor widget and saw the controller of it and I was wondering why whould they create a controller for MenuAnchor while we can open or close it using a globalKey.


How to crop a video? Trouble adding crop filter as well as rotating

I want to crop videos using this library. Wondering what would be the best way to implement that? Can I create a custom crop filter? or I can update cgeGenerateVideoWithFilter() in  cgeVideoUtil.cpp  where every frame are getting processed? Any pointers would be appreciated. If there's another better way, please suggest. Thank you.

or I can update cgeGenerateVideoWithFilter() in cgeVideoUtil.cpp where every frame are getting processed
Maybe you can try this.


should watcher ignore threads that are completely removed

Some of threads can be removed by violate their own site terms. In this case, crawler would throw error by 404 status code. in this case, we should bypass this error.

:tada: This issue has been resolved in version 1.0.0-dev.2 :tada:
The release is available on:

v1.0.0-dev.2
GitHub release
v1.0.0-dev.2

Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version 1.0.0 :tada:
The release is available on:

v1.0.0
GitHub release
v1.0.0

Your semantic-release bot :package::rocket:


refactor: add gen-source scripts/binary to avoid pinned deps

Which issue does this PR close?
Closes #3876.
Rationale for this change
As mentioned in #3876 , the pinned version of build dependencies are causing version conflicts when there is a newer version in the same project.
What changes are included in this PR?
This patch makes our source generation independent from cargo build process.  It follows a great practice from https://stackoverflow.com/a/53728256 . In this patch, source code generation are moved to a separated binary gen-source.
When we want to update the source code, simply run script ./gen-source.sh. Since our previous update process is also manual, the developer experience should be similar or even better .
Are there any user-facing changes?
No.

Since our previous update process is also manual

Could we get a CI check to make sure things stay in sync, i.e. run gen sources and check git shows no changes?


after test，only background is defected

@YudeWang ,hello, can i ask you a question?
I executed the test operation，but only background was segmented。
the result is as following:
38/41
P[i].value: 9437184
P[i].value: 0
P[i].value: 0
7/41
P[i].value: 9699328
P[i].value: 0
P[i].value: 0
15/41
P[i].value: 9961472
P[i].value: 0
P[i].value: 0
23/41
P[i].value: 10223616
P[i].value: 0
P[i].value: 0
31/41
P[i].value: 10485760
P[i].value: 0
P[i].value: 0
39/41
P[i].value: 10747904
P[i].value: 0
P[i].value: 0
backbound: 97.516%            w04:  0.000%
w13:  0.000%
   mIoU: 32.505%

Test finished

你修改了什么？只放这个看不出来哪里出错了哦

I meet the same question that only background was segmented.I only  change the  number of GPU，and  the result not show the proportion of categories. Could you tell me  how to solve it?  Thanks.
I  am eager to your  response.


feat: exit lcov with a non-zero exit code if the tests failed

Sounds good! It looks like Sobelow uses --exit for this, so I'll go with that unless there's another way you'd prefer.

@paulswartz I already published the feature under version 0.3.1. Thank you again!


Memory Game #803

Thank you @aparna03dubey ,for creating the PR and contributing to our GameZone 💗
Review team will review the PR and will reach out to you soon! 😇
Make sure that you have marked all the tasks that you are done with ✅.
Thank you for your patience! 😀

Hey! I have not checked the tasks. Can you please let me know how to check them now, if possible.

Thank you  @aparna03dubey , for your valuable time and contribution in our GameZone 💗.
It’s our GameZone, so Let’s build this GameZone altogether !!🤝
Hoping to see you soon with another PR again 😇
Wishing you all the best for your journey into Open Source🚀


Wrong curvature for matrix_frac?

There are some issues with the matrix_frac atomic function. It calculates x' Px for some vector x and matrix P. The curvature depends on the the definitness of P.
To Reproduce (I use the following versions)

OS: Microsoft Windows 10 Education (Version 10.0.19042 Build 19042)
CVXPY Version: 1.1.18
Anaconda Version: 4.11.0
Python Version: 3.8.12

There are two different problems. There is a false curvature detected for the following code snipped.
n = 2
x = cp.Variable(n)
P = cp.Parameter((n, n), NSD=True)

cost = cp.matrix_frac(x, P)
print(cost.curvature) # should be concave, but returns convex

So I think there is something missing. The following code snipped gives further hints about it.
# create some variables and parameter
n = 2
x = cp.Variable(n)
P = cp.Parameter((n, n), PSD=True)
P.value = np.eye(n)

# define an objective with matrix_frac
cost = cp.matrix_frac(x, P)
obj = cp.Minimize(cost)
problem = cp.Problem(obj)

# solving crashes
x = problem.solve()

I expect the latter code to solve the convex problem for variable x. Instead it cashes with
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\envs\scratches\lib\site-packages\cvxpy\utilities\performance_utils.py", line 37, in _lazyprop
    return getattr(self, attr_name)
AttributeError: 'MatrixFrac' object has no attribute '_lazy_canonical_form'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:/Users/Julien Klaus/AppData/Roaming/JetBrains/PyCharm2021.2/scratches/cvx_scratch.py", line 19, in <module>
    x = problem.solve()
  File "C:\ProgramData\Anaconda3\envs\scratches\lib\site-packages\cvxpy\problems\problem.py", line 473, in solve
    return solve_func(self, *args, **kwargs)
  File "C:\ProgramData\Anaconda3\envs\scratches\lib\site-packages\cvxpy\problems\problem.py", line 966, in _solve
    data, solving_chain, inverse_data = self.get_problem_data(
  File "C:\ProgramData\Anaconda3\envs\scratches\lib\site-packages\cvxpy\problems\problem.py", line 627, in get_problem_data
    data, inverse_data = solving_chain.apply(self, verbose)
  File "C:\ProgramData\Anaconda3\envs\scratches\lib\site-packages\cvxpy\reductions\chain.py", line 76, in apply
    problem, inv = r.apply(problem)
  File "C:\ProgramData\Anaconda3\envs\scratches\lib\site-packages\cvxpy\reductions\qp2quad_form\qp_matrix_stuffing.py", line 261, in apply
    params_to_P, params_to_q, flattened_variable = self.stuffed_objective(
  File "C:\ProgramData\Anaconda3\envs\scratches\lib\site-packages\cvxpy\reductions\qp2quad_form\qp_matrix_stuffing.py", line 246, in stuffed_objective
    params_to_P, params_to_q = extractor.quad_form(expr)
  File "C:\ProgramData\Anaconda3\envs\scratches\lib\site-packages\cvxpy\utilities\coeff_extractor.py", line 195, in quad_form
    coeffs, constant = self.extract_quadratic_coeffs(root.args[0],
  File "C:\ProgramData\Anaconda3\envs\scratches\lib\site-packages\cvxpy\utilities\coeff_extractor.py", line 105, in extract_quadratic_coeffs
    op_list = [affine_expr.canonical_form[0]]
  File "C:\ProgramData\Anaconda3\envs\scratches\lib\site-packages\cvxpy\utilities\performance_utils.py", line 39, in _lazyprop
    setattr(self, attr_name, func(self))
  File "C:\ProgramData\Anaconda3\envs\scratches\lib\site-packages\cvxpy\utilities\canonical.py", line 43, in canonical_form
    return self.canonicalize()
  File "C:\ProgramData\Anaconda3\envs\scratches\lib\site-packages\cvxpy\atoms\atom.py", line 327, in canonicalize
    graph_obj, graph_constr = self.graph_implementation(arg_objs,
  File "C:\ProgramData\Anaconda3\envs\scratches\lib\site-packages\cvxpy\atoms\atom.py", line 351, in graph_implementation
    raise NotImplementedError()
NotImplementedError

I thought matrix_frac computed tr X.TP^-1X?

I thought matrix_frac computed tr X.T_P^-1_X?

Thank you for the reply. You are right, I forgot the inverse. But I could not found the trace in the scalar function table of https://www.cvxpy.org/tutorial/functions/index.html , but at the https://www.cvxpy.org/api_reference/cvxpy.atoms.other_atoms.html#matrix-frac it is the way you told.
Nevertheless the inverse does not change the curvature. I have no clue if the trace does so. Is this table may outdated?

Trace is in the table:
trace(X) | tr(X) ...

I mean in the definition of matrix_frac in the table. Okay. So trace is affine and should not change the curvature.
So applying the new knowledge matrix_frac(X, A) = tr(X'*A*X) if I calculate the second derivative of it I get A'+A. So the curvature depends on the definitness of A if A is positiv semidefinit the curvature if matrix_frac should be convex and if A is nsd it should be concave. But this is somehow not the case, if I did everything correct in the first code snipped above.

In your examples, the quadratic form is a scalar so the trace should do nothing.   I see in the source code that trace is taken in some circumstances, but I don't know why.    We need the experts - wait a couple of hours for west coast US to wake up!

@julien-klaus it looks like the logic for matrix_frac(x, P) where P is a parameter is not correctly fleshed out. But it should be fine when P is not a parameter, and of course if P is a parameter you can use quad_form.

@SteveDiamond thank you for the answer. I just came across it doing some experiments, and was more interested if this is a bug, so somebody can fix it. Thank you both.


disorder-core: Add withJust/withRight combinators

Keep needing withRight and decided to add withJust for completeness.
The label is useful when nesting operations like:
withRight "parse" (parse string) -> $ \ whatever ->
withRight "convert" (convert whatever) $ \ x -> validate x
! @jystic @charleso @tmcgilchrist

I think given how similar they are I would suggest moving this to disorder-eithert/src/Disorder/Either.hs. It's basically just a minor tweak of testRight:
withRight l e f =
  testRight (T.pack . show) . fmap f $ e

The name withRight should also probably be something more like testRight, withRight is just a little too generic for my liking.
Finally, I'm curious if other people would use this. @jystic pointed out the other day that adding combinators that no-one else uses is something we want to try to avoid (I'm certainly guilty of it). I don't think I would personally use withRight, so would prefer at least one or two other people think this is useful before merging.

I'm pretty sure @tmcgilchrist is using this in one of his projects and I'm using this in Blowfish and Beetle.
As for the name, I don't care what its called.

I am however wondering why testRight is in disorder-eithert when it actually doesn't use EitherT.
It actually sugegsts that testRight should join what I'm currently calling withJust and withRight in disorder-core.

I would use testJust. I usually write properties like a === pure b and get annoyed when I later have to lift some function into the property.
Agree both could live in disorder-core (not sure if it's worth the churn)

adding combinators that no-one else uses is something we want to try to avoid (I'm certainly guilty of it)

When they bring no dependencies and have reasonable names, I don't really understand this austerity. Unused definitions are cheap, and you don't know if people would use it until it's available.

adding combinators that no-one else uses is something we want to try to avoid (I'm certainly guilty of it)

When they bring no dependencies and have reasonable names, I don't really understand this austerity. Unused definitions are cheap, and you don't know if people would use it until it's available.

I'm don't remember what this was in relation to, but really I'm more worried about adding stuff to P because it pollutes a namespace that I have no control over in my imports. All other imports must be qualified, so it's not such a big deal.
Having said that, I am against adding things to shared libraries when they haven't proven themselves somewhere else. It is rare to get something right first time, so it's better to do the tuning somewhere less central, where it won't cause churn. You might even decide that the combinators weren't that useful after all.
In this case, @erikd-ambiata has clearly been using these combinators for some time in other projects and thinks they are a useful addition to disorder.

Agree completely about adding stuff to P and correct, that doesn't really apply to this case.
In the case of P, I think it may have been about adding higher order function composition operators where we decided against that addition.

Changed the names to testJust and testRight as per @charleso 's suggestion.

Hipchat :+1: from @charleso


Change username regex to github rules?

https://github.com/ScilifelabDataCentre/dds_web/pull/943#pullrequestreview-895950934

Moving to Jira.


Insufficient shared memory

When I want to submit a job that use pytorch to train, there will be an issue claim about no sufficient shared memory.
I cannot also add shmMB into job config yaml. ValidationError: child "taskRoles" fails because [child "Task_role_1" fails because [child "resourcePerInstance" fails because ["shmMB" is not allowed]]] will be reported by validation check.
I am using openpai v0.15.0, any suggest about how to fix it?

what's your config file
https://github.com/microsoft/pai/blob/17794fbe6a75b4fbf496e1011c6ef6d8c005c9a6/docs/pai-job-protocol.yaml#L60-L61

When I added to the YAML file and closed it, this item disappear (extraContainerOptions:
shmMB: 4096). My version is 0.14.0.
I think there is another user met this issue.
https://github.com/Microsoft/pai/issues/2656#issuecomment-573555422
My scripts is.
protocolVersion: 2
name: xxx
type: job
jobRetryCount: 0
prerequisites:
  - type: dockerimage
    uri: 'ufoym/deepo:pytorch-py36-cu90'
    name: docker_image_0
taskRoles:
  Task_role_1:
    instances: 1
    completion:
      minFailedInstances: 1
      minSucceededInstances: 1
    dockerImage: docker_image_0
    extraContainerOptions:
      shmMB: 4096
    resourcePerInstance:
      gpu: 8
      cpu: 32
      memoryMB: 65536
    commands:
      - echo 'done'
    taskRetryCount: 0
defaults:
  virtualCluster: default

Hi @abuccts,
My config file looks like this:

I haven't change anything of this file.

The file looks like the following, it's just a simple command df -h to output shm.
protocolVersion: 2
name:<PHONE_NUMBER>282_5df02a7e
type: job
jobRetryCount: 0
prerequisites:
  - type: dockerimage
    uri: 'dl-dev:latest'
    name: docker_image_0
taskRoles:
  Task_role_1:
    instances: 1
    completion:
      minFailedInstances: 1
      minSucceededInstances: 1
    dockerImage: docker_image_0
    resourcePerInstance:
      gpu: 1
      cpu: 4
      memoryMB: 8192
    commands:
      - '`#TEAMWISE_STORAGE_START`'
      - '`#Auto generated code, please do not modify`'
      - apt-get update
      - apt-get install --assume-yes nfs-common cifs-utils sshpass wget
      - umask 000
      - '`#TEAMWISE_STORAGE_END`'
      - cd /user/code/intention-prediction
      - df -h
    taskRetryCount: 0
defaults:
  virtualCluster: default

I tried to add fileds extraContainerOptions and child field shmMB, the validation check is passed. But the added fields will not show up when I close and re-open the job config file.

seems like a frontend issue, if you clicked "Save" button and it didn't work, there're two options:

save the above config to a yaml file job.yaml and submit through rest api
curl -H "Content-Type: application/x-www-form-urlencoded" \
     -X POST http://MASTER_IP/rest-server/api/v1/authn/basic/login \
     -d "username=YOUR_USERNAME" -d "password=YOUR_PASSWORD"

curl -H "Content-Type: text/yaml" \
     -H "Authorization: Bearer ABOVE_TOKEN" \
     -X POST http://MASTER_IP/rest-server/api/v2/jobs \
     --data-binary @job.yaml

or update to a newer version like v0.17

Ok, I'd like to upgrade to v0.17 and will post here if other problems happen.

Hi @abuccts,
I upgraded to v0.17 and can save shmMB filed to config file. However, in the webportal the job succeeded without any output. There is Not Found in stdout.
Another problem of v0.17 is I cannot add nfs use storage_plugin the same way as v0.14. Can you please show me the correct way?

For YARN version, please stick to 0.14. For version higher than 0.14, we have not tested the YARN version. We will release a pure k8s version soon and will provide some document to show how to migrate from YARN version to k8s version.

I upgraded to v0.17 and can save shmMB field to config file. However, in the webportal the job succeeded without any output. There is Not Found in stdout.

there's an issue for multi-line commands, you could try to switch off storage plugin on webportal and use && to concatenate commands, e.g. cd /user/code/intention-prediction && df -h

Another problem of v0.17 is I cannot add nfs use storage_plugin the same way as v0.14

this may also related to the multi-line commands, as a workaround, you could try to switch off storage plugin and concatenate the auto-generated commands yourself

as mentioned above, we haven't maintained yarn version since v0.14 so there exist some regression issues, it's recommended to migrate to pure k8s version

To conclude, I have two problems as follow:

I tested to issue a job of just one line command: df -h and there is no stdout. Really don't know how to debug this :crying_cat_face: since the job is showed succeed in the webportal.

For nfs storage, I am a little bit confused of how to use that. I previously succeed mount external nfs server to openpai by using storage_plugin in v0.14 but cannot do the same thing in v0.17. And there are different ways in the document.

Does anyone knows how to enable stdout in v0.17 just like v0.14?

Hi @ShawnNew, v0.17 is an internal release. This internal release is pre-release for pure k8s version. For yarn version, we don't fully tested and unstable.
If you don't so urgent, we recommend you wait for a couple of weeks. The 1.0 version will be ready soon. This is a pure k8s version, and yarn version is deprecated.
For yarn version, we recommend stick to v0.14. Yarn version in PAI which above v0.14 is not stable, and not fully tested. We are not sure if you will encounter other bugs if you still use yarn version.
If you really want to enable stdout in v0.17 for yarn version.
Please provide the log from
It should be Go to yarn tracking page for yarn version.

Hi @Binyang2014,
Thanks for the reply, I will save std stream to local file and check the process.
Looking forward to 1.0 version.

@ShawnNew 1.0 is released, Please try 1.0 version. Will close this issue


Pull-components --separate-files flag mix/overwrites presets and components

Current behavior:
When running storyblok pull-components with a --separate-files flag enabled, it seems hero block and Hero preset are overwritten on each other.
https://github.com/storyblok/storyblok-cli/blob/master/src/tasks/pull-components.js#L55
Expected behavior:

The presets and block library items are not mixed.
The presets does not override the block json data

Ideally I would follow the same pattern as with non-separate where we get 2 files:
components.<SPACE_ID>.json
presets.<SPACE_ID>.json

but make it into multiple files
components
  hero-<SPACE_ID>.json
presets
  Hero-<SPACE_ID>.json

Steps to reproduce:

add hero block to block library
add section block to block library + add preset called Hero

Run cli command: storyblok pull-components --space <SPACE_ID> --separate-files
check overwriten file hero-<SPACE_ID>.json containing preset data and not the block schema.

Related code:
Checking the source code https://github.com/storyblok/storyblok-cli/blob/master/src/tasks/pull-components.js#L55 and it seems it indeed creates a precedence to mix hero block with Hero preset, where preset json overrides the block json one.

Hey @edv-ns 👋
FYI some time ago we released a fix for this issue, you can find more about it on the readme
As you pointed out, the issue was related to file names of components and presets that were handled exactly in the same way. This led to some quirks with the async write calls where files that shared the same name got overwritten multiple times in the process.
You can now use the flag --prefix-presets-names so that the preset schema file names will be prefixed with the component name, effectively creating a sort of "composite primary key" {componentName}-{presetName}.
Again, thanks for pointing this out and for helping us to make Storyblok "a better place"! 🙌

Thank you a lot for the solution to this! @Edo-San


Environments box cut off the copy and delete button when the environment name is too long

when we give the environment name as long as (max char of 50) the copy and delete button cuts off on the screen to main window

Closing this issue as the PR fixing the overflow issue has already been merged.


stake-pool: instant stake activation

Problem
Any user can deposit a stake account with extra, non-staked lamports into the pool receiving pool tokens for all lamports -> pool tokens can be redeemed for a fully staked stake account.
Solution
A user depositing stake should only receive pool tokens equal to normal stake account rent-exemption (2.2 million lamports) + stake's delegation.  Note that we shouldn't use the provided stake account's rent exempt amount, because a user could do another version of this attack if they allocate a huge amount of data (1 MB for example), then provide that account with a small stake.  The rest of the stake is just taken by the pool, and that's fine.

@joncinque , for consistency, I consider everything apart from the delegation.stake, including the rent exempt amount, as being sol deposits.
I'm not sure if this is an undesirable property.
For instance, a pool manager may want to forbid direct SOL deposits, but this mechanism would allow such deposits.
Perhaps we should stick to the choice that a user providing extra lamports beyond delegation.stake + RENT_EXEMPT will not be reimbursed with additional pool tokens?


Added Test to Subcription filters

Tests for happy and failing paths for Filters and Builders following the pattern of Doc Quiries

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Remove rspec gem dependency

Hi,
I'm running a Rails 5 app with Rspec 3.5.0.beta1, and I have encountered that bundler is unable to resolve a valid version of Rspec:
Bundler could not find compatible versions for gem "rspec-core":
  In snapshot (Gemfile.lock):
    rspec-core (= 3.5.0.beta1)

  In Gemfile:
    guard-rspec (= 4.6.4) was resolved to 4.6.4, which depends on
      rspec (< 4.0, >= 2.99.0) was resolved to 2.99.0, which depends on
        rspec-core (~> 2.99.0)

    rspec-rails (= 3.5.0.beta1) was resolved to 3.5.0.beta1, which depends on
      rspec-core (= 3.5.0.beta1)

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.

Maybe guard-rspec does not need to have the rspec version in the gemspec?
I also tried playing around with the version numbers, but I have been unable to find the magic syntax to make it work with rspec 3.5.0.beta1.
Warm regards,
Ignacio

I found something else breaking with rspec 3.5.0.beta1, I needed to replace require 'rspec'``with require 'rspec/core'`.
I'll change the title of this PR to "Support Rspec 3.5.0" :)

I think it's because you don't have the gem rspec installed in the 3.5.0.beta1 version.
So Bundler is finding rspec at 2.99 (because you don't have 3.5.0.beta1 of it installed), and that's causing problems.
You're using rspec-core directly, while you should only care about rspec (which will pull the rspec-core dependency anyway).

bundle update rspec should fix it.

Thanks a lot @e2 .
You are completely right, I was just loading rspec-rails in my Gemfile, which in turn loads rspec-core.
Everything works fine now. I'll close this :)

No prob.


IETF safe email addresses

I was asked to do this kata. The optional-task 5 is invalid for specific circumstances, lets call them cornercases.
Entering a eMail-Address we usually think about eMail addresses<EMAIL_ADDRESS>Driving eMail-Addresses to insanity also this is a 100% VALID eMail-Address: abc:;!
Unfortunately the ; in the eMail-Address it is threatened as a .csv-field-separator. I would suggest you either name the email-address more like emailbox-address to be specific OR change all the eMail-Addresses from the cvs-files into eMail-Group-Notations using double-quotas because they are escapable.
According to some people who made some effort in documentation.

Ah by the way, since those values are example values please use example-domains as mail-domain.

Ah by the way, since those values are example values please use example-domains as mail-domain.


HtmlWeb.GetExtensionForContentType throws an exception on .NET Framework 4.5.2

Exception
Exception message:

System.MethodAccessException: Attempt by security transparent method 'HtmlAgilityPack.PermissionHelper.GetIsRegistryAvailable()' to access security critical method 'System.AppDomain.get_PermissionSet()' failed.

Assembly 'HtmlAgilityPack, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=bd319b19eaf3b43a' is marked with the AllowPartiallyTrustedCallersAttribute, and uses the level 2 security transparency model.  Level 2 transparency causes all methods in AllowPartiallyTrustedCallers assemblies to become security transparent by default, which may be the cause of this exception.
   at HtmlAgilityPack.PermissionHelper.GetIsRegistryAvailable() in C:\Users\Jonathan\source\repos\HtmlAgilityPack\HtmlAgilityPack.Shared\HtmlWeb.cs:line 2570
   at HtmlAgilityPack.HtmlWeb.GetExtensionForContentType(String contentType, String def) in C:\Users\Jonathan\source\repos\HtmlAgilityPack\HtmlAgilityPack.Shared\HtmlWeb.cs:line 993

Hello @alex-jitbit ,
A runnable project/solution or Fiddle is now required if you would like we look at it.
We now always ask for a project sample even if the issue is easy to reproduce. As a free product, we must find some way to save time to offer an overall better experience for everyone and release fixes faster.
You can send it to<EMAIL_ADDRESS>if you need to keep the source private
Best Regards,
Jonathan

Performance Libraries
context.BulkInsert(list, options => options.BatchSize = 1000);
Entity Framework Extensions • Entity Framework Classic • Bulk Operations •  Dapper Plus
Runtime Evaluation
Eval.Execute("x + y", new {x = 1, y = 2}); // return 3
C# Eval Function • SQL Eval Function

@JonathanMagnan here's a dotnetfiddle
https://dotnetfiddle.net/qjSYgD

Hello @alex-jitbit ,
Thank you, my developer looked at it but there is not so much we can do.
This method requires additional permission to check in the key registry available mime type: https://github.com/zzzprojects/html-agility-pack/blob/3a6f0d2173de57650e0fb1c6fda289bf22e53365/src/HtmlAgilityPack.Shared/HtmlWeb.cs#L992-L1017
Honestly, I'm not really sure why it has been done like that as using registry key is mostly always a bad idea for a third party library.
What we could do on our side is doing a try/catch and in the catch using a dictionary of all common mime know mime type.
Is it something that will work for your scenario?

I'm not heavily dependent on this bug, just something I stumbled upon.
You can simply steal code from MS https://github.com/Microsoft/referencesource/blob/master/System.Web/MimeMapping.cs
Or even simply call their method (not sure its good idea since it would add System.Web dependency

Hello @VBWebprofi ,
The v1.11.4 has been released.
Could you try it and let me know if everything is now working as expected?


How to handle forgot password in @azure/msal-react

Library

[x]<EMAIL_ADDRESS>[x]<EMAIL_ADDRESS>
Description
I'm having trouble figuring out how to handle when the user has forgotten his or hers password. I can see, that the user is redirected back to my app, and I suppose that is so I can start the reset password flow I want to use.
But how do I do that? I can't find a suitable method on the result of the useMsal hook.

@ilbrando It depends a little bit on how you're calling login. I haven't quite finished the b2c sample yet but you can take a look at an example of how this is handled for redirect cases on the branch I've been working on here.
The gist of it is that you need to catch the error that is thrown when someone clicks "forgot password" and then call login again with the reset policy. If you can share a code snippet of how you're calling login I can give more specific guidance for your scenario.

I use the hook useMsal. The methods on the instance object are defined like this:
export interface IPublicClientApplication {
    acquireTokenPopup(request: PopupRequest): Promise<AuthenticationResult>;
    acquireTokenRedirect(request: RedirectRequest): Promise<void>;
    acquireTokenSilent(silentRequest: SilentRequest): Promise<AuthenticationResult>;
    addEventCallback(callback: Function): string | null;
    removeEventCallback(callbackId: string): void;
    getAccountByHomeId(homeAccountId: string): AccountInfo | null;
    getAccountByLocalId(localId: string): AccountInfo | null;
    getAccountByUsername(userName: string): AccountInfo | null;
    getAllAccounts(): AccountInfo[];
    handleRedirectPromise(hash?: string): Promise<AuthenticationResult | null>;
    loginPopup(request?: PopupRequest): Promise<AuthenticationResult>;
    loginRedirect(request?: RedirectRequest): Promise<void>;
    logout(logoutRequest?: EndSessionRequest): Promise<void>;
    ssoSilent(request: SsoSilentRequest): Promise<AuthenticationResult>;
    getLogger(): Logger;
    setLogger(logger: Logger): void;
}

I use the loginRedirect for login. It takes a RedirectRequest which extends AuthorizationUrlRequest:
export declare type AuthorizationUrlRequest = BaseAuthRequest & {
    authenticationScheme?: AuthenticationScheme;
    redirectUri?: string;
    extraScopesToConsent?: Array<string>;
    responseMode?: ResponseMode;
    codeChallenge?: string;
    codeChallengeMethod?: string;
    state?: string;
    prompt?: string;
    account?: AccountInfo;
    loginHint?: string;
    domainHint?: string;
    sid?: string;
    extraQueryParameters?: StringDict;
    nonce?: string;
};

None of these indicates a flow.
The only place I specify my flow is when I instantiate the PublicClientApplication, but I only do that one time in the app lifetime. It takes a Configuration object where I set the auth.authority property to my login flow. There is also an knownAuthorities property, but I don't know how to use it.

@ilbrando Since you're using redirect you'll want to register an event callback that listens for a login failure with a specific error code and then calls loginRedirect again with your forgot password policy like so:
instance.loginRedirect({
    authority: "https://something.b2clogin.com/something.onmicrosoftonline.com/forgotPasswordPolicy"
});

The link to the sample I shared above should be what you need.

There is also an knownAuthorities property, but I don't know how to use it.

knownAuthorities should be an array that contains the domains for the authorities your app will use i.e. knownAuthorities: ["something.b2clogin.com"] and is required when using b2c with msal.

@tnorling I looked at your example, and I can see that you set the authority property on the RedirectRequest. Maybe the problem is with the TypeScript definitions? I will try and cast to any and set authority. It's a bit late in my timezone so I will try it tomorrow. Thank you for your fast response.

Some of the properties of RedirectRequest are not shown in the snippet you shared above because AuthorizationUrlRequest also extends BaseAuthRequest. Complete type docs can be found here: https://azuread.github.io/microsoft-authentication-library-for-js/ref/msal-browser/modules/src_request_redirectrequest.html#redirectrequest

@tnorling Ohh sorry, I just noticed that I didn't see that AuthorizationUrlRequest extends BaseAuthRequest which has the authority property. I'm so sorry.

@tnorling I got it to work, but I get an exception in the console. Do you know how to get rid of this? I have set an event handler with addEventCallback, but some part of MSAL must also be listening for the event and is throwing the exception.
index.es.js:210 Uncaught (in promise) ServerError: access_denied: AADB2C90118: The user has forgotten their password.
Correlation ID: efa45107-f006-440e-8990-e81c60839f4e
Timestamp: 2020-12-17 22:41:10Z
    at ServerError.AuthError [as constructor] (http://localhost:3000/static/js/0.chunk.js:479:20)
    at new ServerError (http://localhost:3000/static/js/0.chunk.js:4212:24)
    at ResponseHandler.validateServerAuthorizationCodeResponse (http://localhost:3000/static/js/0.chunk.js:5609:13)
    at AuthorizationCodeClient.handleFragmentResponse (http://localhost:3000/static/js/0.chunk.js:5993:21)
    at RedirectHandler.<anonymous> (http://localhost:3000/static/js/0.chunk.js:10671:40)
    at step (http://localhost:3000/static/js/0.chunk.js:204:17)
    at Object.next (http://localhost:3000/static/js/0.chunk.js:135:14)
    at http://localhost:3000/static/js/0.chunk.js:107:67
    at new Promise (<anonymous>)
    at __awaiter (http://localhost:3000/static/js/0.chunk.js:84:10)
    at RedirectHandler.handleCodeResponse (http://localhost:3000/static/js/0.chunk.js:10656:12)
    at PublicClientApplication.<anonymous> (http://localhost:3000/static/js/0.chunk.js:11477:34)
    at step (http://localhost:3000/static/js/0.chunk.js:204:17)
    at Object.next (http://localhost:3000/static/js/0.chunk.js:135:14)
    at fulfilled (http://localhost:3000/static/js/0.chunk.js:87:24)
AuthError @ index.es.js:210
ServerError @ index.es.js:3313
ResponseHandler.validateServerAuthorizationCodeResponse @ index.es.js:4485
AuthorizationCodeClient.handleFragmentResponse @ index.es.js:4773
(anonymous) @ index.es.js:8456
step @ index.es.js:74
(anonymous) @ index.es.js:55
(anonymous) @ index.es.js:48
__awaiter @ index.es.js:44
RedirectHandler.handleCodeResponse @ index.es.js:8442
(anonymous) @ index.es.js:9092
step @ index.es.js:74
(anonymous) @ index.es.js:55
fulfilled @ index.es.js:45

By the way is there a safe way to read the error code (AADB2C90118)? As far as I can see it is only part of the errorMessage string.

@ilbrando hmmm...what version of msal-react are you running? I would not expect the error to be thrown in the console, just to verify I ran the sample myself and did not get the error when clicking forgot password.
As for the error, that's an error thrown by the server and msal just passes it along as is. We can look into better ways of handling it in the future but for now that's the recommended way.

msal-react is 1.0.0-alpha.0 and msal-browser is 2.7.0.
I have now upgraded to 1.0.0-alpha.1 and 2.8.0 and that solved the problem :-)


make edit_(.*_)?note accept the note body as a string again

the refactoring done in ceba47d6 made edit_note/edit_*_note expect the body in a Hash, instead if a plain String as it was before and as it is noted in the examples.
Refs: #304
Yes, this breaks the API, but it was already broken for 4.2.0 by ceba47d6

I have handled this in #354 so we don't break backwards compatibility but can output a deprecation warning if people are passing a Hash for the body.  Thank you for your contribution!

thanks @asedge!


Sub nav component, applied to investigation show page

Added sub nav component to shared-web

Applied it to the case page

Fixed "Unassigned" being the wrong font size

Looks like the attachments tab has the url /documents - can this be made to match the tab name?
I don't think I'd intended to change 'Activities' to 'Timeline' as part of this either. Though it is something I'd like to do at some point.

Can you remove the extra commits already in master again on this branch please?

@samlionheart @slorek I'm closing this.
It's included in this PR https://github.com/UKGovernmentBEIS/beis-opss-psd/pull/37
I've had to make a few tweaks the way the JS was loaded, i.e not in standard rails place.


[Feature] Organising content and notes, viz., Zettelkasten, Mind-mapping Support

Problem
Provide better ways to organise notes and their interdependency and relationships among and within notes.
Solution
Facilitate visual thining and note organisation by supporting features like Zettelkasten, Mind-mapping, etc.

The support for linking notes currently exists. What specific features from Zettelkasten are you referring to? The method seems to be quite unique and would require significant changes. Mind mapping seems like it would not be a fit for a note taking application but I'm not sure if I completely understand what you mean either.

The support for linking notes currently exists. What specific features from Zettelkasten are you referring to? The method seems to be quite unique and would require significant changes. Mind mapping seems like it would not be a fit for a note taking application but I'm not sure if I completely understand what you mean either.

Simple maintain the relationship between the notes of facts on notes. This is like hyperlinks / anchor links in HTML but could be more advance. There should be a special view to view the relationships and edit the files or parts of them which are linked and the relationships themselves. Relationships can have labels, attributes and other metadata as well as content in the notes and files.

Simple maintain the relationship between the notes of facts on notes. This is like hyperlinks / anchor links in HTML but could be more advance. There should be a special view to view the relationships and edit the files or parts of them which are linked and the relationships themselves. Relationships can have labels, attributes and other metadata as well as content in the notes and files.

Hello, unfortunately that is far beyond the scope of what TakeNote is intended to do, so it might be better to search specifically for a note-taking app that already has those capabilities built in.


feat(PaginatedMessage): supports placeholder setting for default SelectMenu

Released to npm in v4.10.0


Bower package

I'm going to make (and maintain) a bower package for nitrogen client.

Still want to do this?


AzureWebJobsStorage is removed from workflow-designtime local.settings.json

Describe the Bug with repro steps
As of VSCode Extension Version v4.44.8, the local.settings.json file is updated when starting the Workflow Design Time. The AzureWebJobsStorage property is removed, and "AzureWebJobsSecretStorageType": "Files" is added. When using the Azurite storage emulator to support the workflow-designtime functions host, this prevents the workflow design time API from starting as expected.

Open VSCode and allow the workflow design-time to auto start, or manually start it if auto start is disabled by right clicking on a workflow.json file, and choosing "Open Designer".

2. Observe the following error message appear in the Output for Azure Logic Apps (Standard):

3:04:16 PM: Running command: "func host start --port 8000" with pid: "6047"...

Azure Functions Core Tools
Core Tools Version:       4.0.5907 Commit hash: N/A +807e89766a92b14fd07b9f0bc2bea1d8777ab209 (64-bit)
Function Runtime Version: 4.834.3.22875

[2024-08-07T15:04:19.308Z] A host error has occurred during startup operation '12b701b1-f4f2-45f7-9ea2-e9485c890c7b'.
[2024-08-07T15:04:19.308Z] Microsoft.WindowsAzure.Storage: Value cannot be null. (Parameter 'connectionString').
Value cannot be null. (Parameter 'provider')
[2024-08-07T15:04:24.447Z] Host startup operation has been canceled

Review the value of workflow-designtime/local.settings.json and observe that AzureWebJobsStorage has been removed and AzureWebJobsSecretStorageType has been added.

Before:
{
  "IsEncrypted": false,
  "Values": {
    "AzureWebJobsStorage": "UseDevelopmentStorage=true",
    "APP_KIND": "workflowapp",
    "FUNCTIONS_WORKER_RUNTIME": "node",
    ...
  }
}

After:
{
  "IsEncrypted": false,
  "Values": {
    "APP_KIND": "workflowapp",
    "FUNCTIONS_WORKER_RUNTIME": "node",
    "AzureWebJobsSecretStorageType": "Files"
    ...
  }
}

The issue is resolved by reverting to v4.44.7. PR #5298 specifically seems to have introduced this behavior.
What type of Logic App Is this happening in?
Standard (VSCode)
Are you using new designer or old designer
New Designer
Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg
Yes
Workflow JSON
{
    "definition": {
        "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
        "actions": {},
        "contentVersion": "<IP_ADDRESS>",
        "outputs": {},
        "triggers": {
            "When_a_HTTP_request_is_received": {
                "type": "Request",
                "kind": "Http"
            }
        }
    },
    "kind": "Stateful"
}

Screenshots or Videos
No response
Browser
Visual Studio Code
Version: 1.91.1
Commit: f1e16e1e6214d7c44d078b1f0607b2388f29d729
Date: 2024-07-09T22:07:46.768Z (4 wks ago)
Electron: 29.4.0
ElectronBuildId: 9728852
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Darwin arm64 23.5.0
Additional context
The following VSCode settings are set for the Logic Apps Standard extension in our environment. It is also worth noting that we are using the Code Workspaces feature, and Logic Apps is being passed the ProjectDirectoryPath property in the workflow-designtime local.settings.json file.
"azureLogicAppsStandard.projectLanguage": "JavaScript",
                "azureLogicAppsStandard.dotnetBinaryPath": "dotnet",
                "azureLogicAppsStandard.nodeJsBinaryPath": "node",
                "azureLogicAppsStandard.funcCoreToolsBinaryPath": "func",
                "azureLogicAppsStandard.autoStartAzurite": false,
                "azureLogicAppsStandard.autoStartDesignTime": false,
                "azureLogicAppsStandard.autoRuntimeDependenciesValidationAndInstallation": false,
                "azureLogicAppsStandard.dataMapperVersion": 2,
                "azureLogicAppsStandard.parameterizeConnectionsInProjectLoad": true,
                "azureLogicAppsStandard.projectRuntime": "~4",
                "azureLogicAppsStandard.showNodeJsWarning": false,
                "azureLogicAppsStandard.showMultiCoreToolsWarning": false,
                "azureLogicAppsStandard.showProjectWarning": false,
                "azureLogicAppsStandard.showStartDesignTimeMessage": false,
                "azureLogicAppsStandard.showTargetFrameworkWarning": false,
                "azureLogicAppsStandard.showDotNetWarning": false,
                "azureLogicAppsStandard.showCoreToolsWarning": false,

Hi @sneakyflint thanks for raising this issue and for describing the error so well. Thats right we indeed introduced that new behavior in this new version.
Having the AzureWebJobsStorage in the workflow-designtime/local.settings.json was a bug that was introduced and was preventing the designer to load. The right property is AzureWebJobsSecretStorageType.
I know you posted the workflow.json and seems that there are no actions, therefore there are no connections. But this error is related to the actual resolution of a connection. Some actions can be connected to portal through a connectionString Does any other workflow in your logic apps project was connections? maybe there is a connectionString which value might be null.

@sneakyflint Does this also happens in the root local.settings.json?

Hi @ccastrotrejo -
This issue does not impact the root directory's local.settings.json.
We need to use the AzureWebJobsStorage property as we run Azurite separately from the built-in Azurite triggered by the extension, hence azureLogicAppsStandard.autoStartAzurite is set to false in our configuration. Without this property present in workflow-designtime/local.settings.json, the functions host for workflow-designtime is not able to find and connect to the storage emulator.
Regarding the mention of connectionString in the error message, this error is from Microsoft.WindowsAzure.Storage which appears to be the upstream .NET package used by the functions host to access the storage account of the functions host. In addition the output I shared is from the workflow-designtime host specifically; it is not from the Logic Apps function host.
AzureWebJobsSecretStorageType is used to control where the function host keys are stored and does not appear to be related to storage account connectivity.
#5298 appears to have primarily been intended to ensure "AzureWebJobsSecretStorageType": "Files" is present as its absence does seem to prevent the workflow-designtime from starting. However it appears there was previously logic to prompt re: overwrites to the local.settings.json file that was removed in this PR, which is what is likely causing AzureWebJobsStorage to be dropped.
Is there a path to us being able to adjust the AzureWebJobsStorage property for workflow-designtime/local.settings.json in local development in future versions and avoid having this setting be removed during the overwrite operation?

Hey @sneakyflint,
It's good that the issue is not impacting directory's local.settings.json. This is the location where the AzureWebJobsStorage should be set. The logic apps extension only uses azurite and the autoStartAzurite setting when we run and debug the logic app locally, not when we open the designer. The workflow-designtime/local.settings.json shouldn't have that setting, despite using or not the built-in azurite.
Definitely the error that is causing the func host start to fail is this one  Microsoft.WindowsAzure.Storage: Value cannot be null. (Parameter 'connectionString'). Which is preventing the designer to load, however I don't know where it is coming from.
If you downgrade the extension and remove the AzureWebJobsStorage property from the workflow-designtime/local.settings.json, does the issue still happens?

@ccastrotrejo
Upon downgrading the extension to 4.44.7 and below, removing the AzureWebJobsStorage property still produces the same error:
Azure Functions Core Tools
Core Tools Version:       4.0.5907 Commit hash: N/A +807e89766a92b14fd07b9f0bc2bea1d8777ab209 (64-bit)
Function Runtime Version: 4.834.3.22875

[2024-08-07T21:28:45.814Z] A host error has occurred during startup operation 'e236014c-f23d-486a-a4aa-312f454ff83b'.
[2024-08-07T21:28:45.814Z] Microsoft.WindowsAzure.Storage: Value cannot be null. (Parameter 'connectionString').
Value cannot be null. (Parameter 'provider')
[2024-08-07T21:28:51.035Z] Host startup operation has been canceled

Removing AzureWebJobsSecretStorageType does also cause a failure which is expected:
Azure Functions Core Tools
Core Tools Version:       4.0.5907 Commit hash: N/A +807e89766a92b14fd07b9f0bc2bea1d8777ab209 (64-bit)
Function Runtime Version: 4.834.3.22875

[2024-08-07T21:27:39.952Z] A host error has occurred during startup operation 'a6658a48-1e7f-4800-b7b7-3c84e05c4a2c'.
[2024-08-07T21:27:39.952Z] Microsoft.Azure.WebJobs.Script.WebHost: Secret initialization from Blob storage failed due to missing both an Azure Storage connection string and a SAS connection uri. For Blob Storage, please provide at least one of these. If you intend to use files for secrets, add an App Setting key 'AzureWebJobsSecretStorageType' with value 'Files'.
Value cannot be null. (Parameter 'provider')
[2024-08-07T21:27:40.006Z] Host startup operation has been canceled
9:28:43 PM: Running command: "func host start --port 8000" with pid: "1845"...

Our working config on 4.44.7 is:
{
  "IsEncrypted": false,
  "Values": {
    "AzureWebJobsStorage": "UseDevelopmentStorage=true",
    "APP_KIND": "workflowapp",
    "FUNCTIONS_WORKER_RUNTIME": "node",
    "ProjectDirectoryPath": "/workspaces/{removed}/logicapps",
    "AzureWebJobsSecretStorageType": "Files"
  }
}

Thanks in advance for the assistance.

Yes, thats right the second failure is expected.
So far I haven't found a way to repro the issue. Do you execute azurite before opening the designer?

Hi @ccastrotrejo - yes, we execute Azurite via a VSCode task before opening the designer.
Are you able to run devcontainers and/or GitHub Codespaces in your environment? I can send you an email with our devcontainer.json & Dockerfile along w/ a sample repo if so; that should allow you to reproduce the behavior reliably.
Let me know; thanks.

Hi @sneakyflint I have done the Github Codespaces before, I don't know too much about the devcontainers but I can give it a try, the sample repo would be great to repro it. My email is<EMAIL_ADDRESS>Thanks!!

Hi @sneakyflint I finally found the issue.

So first the AzureWebJobsStorage property shouldn't be inside the local.settings.json inside the workflow-designtime directory. The AzureWebJobsSecretStorageType should be there instead. The extension makes sure of that, so there is nothing you need to change there
Your workspace configuration is all right, the settings and the azurite tasks that you have there its all right. So you don't need to change anything.
The root cause of the issue is the following: The host.json inside the workflow-desingtime folder is missin the following sctructure:
"extensions": {   "workflow": {     "settings": {       "Runtime.WorkflowOperationDiscoveryHostMode": "true"     }   } }
Please just add it at the bottom so it ends up looking like this. I don't find a reason why this was removed, but having this property will make it work it again. Also removing the workflow-designtime folder and restarting the vscode or trying to launch the designer will create the folder with the right properties.

One more thing that I just noticed is that in the host.json inside the workflow-designtime directory and in the root directory, in the "Microsoft.Azure.Functions.ExtensionBundle.Workflows" you are using the version "[1.0.0, 1.66.20)". The extension bundle packs the backend code that we use to run the logic apps locally, limiting it to the 1.66.20 isn't allowing to download the latest, therefore you might not get bug fixes or features with the newer versions. I recommend you change it to "[1.*, 2.0.0)", therefore you can get latest updates. FYI the lates one is 1.70.96

Hi @ccastrotrejo - thank you so much for your help here.
I was able to update the host.json file on my end and confirmed that the workflow-designtime host runs as expected with these changes. I also tried upgrading to the latest extension bundle version and it appears to be working as expected now - I was holding off due to #5221 which seems to have been resolved upstream in private repo.
I am going to go ahead and mark this as closed but feel free to re-open if needed.
Thanks again! 😄

I am glad it worked @sneakyflint


ERR_SSL_SSLV3_ALERT_HANDSHAKE_FAILURE: SDK fails to find authenticated user

Bug report

[X] I confirm this is a bug with Supabase, not with my own application.
[X] I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug
SDK fails to find authenticated user
TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11372:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async _handleRequest (webpack-internal:///(rsc)/./node_modules/@supabase/gotrue-js/dist/module/lib/fetch.js:115:18)
at async _request (webpack-internal:///(rsc)/./node_modules/@supabase/gotrue-js/dist/module/lib/fetch.js:105:18)
at async eval (webpack-internal:///(rsc)/./node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.js:890:24)
at async SupabaseAuthClient._useSession (webpack-internal:///(rsc)/./node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.js:790:20)
at async SupabaseAuthClient._getUser (webpack-internal:///(rsc)/./node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.js:880:20)
at async eval (webpack-internal:///(rsc)/./node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.js:867:20)
at async eval (webpack-internal:///(rsc)/./node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.js:735:28) {
  cause: [Error: C03A08E801000000:error:0A000410:SSL routines:ssl3_read_bytes:sslv3 alert handshake
failure:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1586:SSL alert number 40
  ] {
    library: 'SSL routines',
   reason: 'sslv3 alert handshake failure',
   code: 'ERR_SSL_SSLV3_ALERT_HANDSHAKE_FAILURE'

To Reproduce

Log into application
View console

Expected behavior
Authenticated user is fetched.
Screenshots
N/A
System information
"@supabase/auth-helpers-nextjs": "^0.8.1",
"@supabase/auth-helpers-react": "0.4.2",
"@supabase/auth-ui-react": "0.4.2",
"@supabase/auth-ui-shared": "0.1.6",
"@supabase/postgrest-js": "1.9.2",
"@supabase/ssr": "0.0.10",
"@supabase/supabase-js": "2.33.1",
Additional context

Using custom domain on Supabase
Cannot upgrade since Supabase hasn't addressed this ~2 year old ticket: https://github.com/supabase/auth-helpers/issues/436

It is a very generic error indicating a handshake failure occurred, without saying what part of the handshake failed. There isn't much we can do here from our side, the auth server doesn't have built in tls support.
If this is for a Supabase project you will want to open a support ticket so we can investigate.


Update README.md

I have made a change.
I hope you like it.

Why:

What's being changed:

Check off the following:

[x] I have reviewed my changes in staging. (look for the deploy-to-heroku link in your pull request, then click View deployment)
[x] For content changes, I have reviewed the localization checklist
[x] For content changes, I have reviewed the Content style guide for GitHub Docs.

Thanks for opening a PR 👍 Please fill out the pull request template in the top comment in this pull request, then we'll get this up for review!

Thanks for opening a PR 👍 Please fill out the pull request template in the top comment in this pull request, then we'll get this up for review!

Thanks for opening a PR 👍 Please fill out the pull request template in the top comment in this pull request, then we'll get this up for review!

I did

Thanks for opening a PR 👍 Please fill out the pull request template in the top comment in this pull request, then we'll get this up for review!

I did