update portaudio

Hey, hope it's not too forward to lead with a PR. Figured it's a tiny change so might as well clarify that part up front.
I was hitting https://github.com/PortAudio/portaudio/issues/268 and noticed the portaudio people solved it somewhere in 2020, and made a release in 2021. I tried installing that version of portaudio, but need a static build. pgk_config has its own unsolved problem with static system libraries https://github.com/rust-lang/pkg-config-rs/issues/102.
Not sure of a couple things:

how married is this wrapper to 2014 portaudio?
am I missing some other way to get what I need?

I can confirm this changed solved my issue. Not sure about anything but dead obvious regressions, though.
All the best,
Dan

how married is this wrapper to 2014 portaudio?

Not sure... haven't followed portaudio development but if it works for you its probably fine.

am I missing some other way to get what I need?

No, this is probably the way but... the Rust community has largely converged onto https://github.com/RustAudio/cpal for the same space that portaudio covers. Is there any reason you prefer portaudio over cpal?

Hey, thanks for the merge!
Yeah I've been keeping my eye on CPAL. I rely on small fixed frame size and find that CPAL does not guarantee a frame size, at least on ALSA.
Code: https://github.com/dansgithubuser/playground/blob/master/languages/rust/cpal/src/main.rs
Example run:
playground/languages/rust/cpal$ cargo run --release
   Compiling cpal v0.1.0 (/home/dan/Desktop/repos/playground/languages/rust/cpal)
warning: unused variable: `data`
  --> src/main.rs:13:15
   |
13 |         move |data: &[f32], _: &cpal::InputCallbackInfo| {
   |               ^^^^ help: if this is intentional, prefix it with an underscore: `_data`
   |
   = note: `#[warn(unused_variables)]` on by default

warning: `cpal` (bin "cpal") generated 1 warning (run `cargo fix --bin "cpal"` to apply 1 suggestion)
    Finished release [optimized] target(s) in 0.89s
     Running `target/release/cpal`
128
128
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
45
127

Happy to write up an issue if it'd be useful. I just assumed it's one of many things CPAL is working through as it matures. Or just not considered an issue.


QR code scanning fuction

Description of the new feature / enhancement
Add a QR code scanning function, get the link and open it with the system's default browser
Providing Shortcut keys to capture the QR code in the screen, the operation is the same as windows screenshots (win+shift+s)
Scenario when this would be used?
when there is a QR code shown on the screen, but I'm too lazy to take out my cell phone and scan the code
Supporting information
any blog or website, i found a QR code in a picture and it is not possible to scan it by chrome extension

Hi all, this is now built into Snipping tool. https://blogs.windows.com/windows-insider/2024/05/09/snipping-tool-and-paint-updates-begin-rolling-out-to-windows-insiders/

We are also adding the ability to detect QR codes in screenshots so that you can easily follow the link on your PC. You will automatically see QR code detection appear when you enter Text Actions from Snipping Tool’s markup canvas.

is it available in latest version? my current powertoys version is 0.81.1


Warm reflection only for fields with @PersistState annotation

This is to try fix #253
Basically it runs warming the Kotlin reflect only on the fields with PersistState annotation.
I actually haven't verified this. I wonder how we can do that 🤔

While the actual issue has been fixed in a different (proper) way, wouldn't this PR be still useful as a small performance optimization, or do I misunderstand what's happening here?

I believe this change is still helpful. Although this is done in background thread, it is still a heavy operation. In our project, we don't even use PersistState, so warming reflection for all fields is an overhead for us.


Update: Add override option to type-annotation-spacing (fixes #41 and #42)

Add an override option to the type-annotation-spacing rule
The option allows the developer to override the behavior of type annotations and function types
e.g.
type annotation: const a : number
function type: type a = (s: string) => string;

LGTM


Writing the result of a Task to the Console

First of all, thanks for picking this up for Elm 0.16!
I was trying to use elm-console in a context where I have a Task that produces a String, and I want to write this string to the console. Here's some code to illustrate:
task : Task () String
task =
    Task.succeed "String"

io : Task () (IO ())
io =
    Task.map Console.putStrLn task

port runner : Task () (Signal (Task x ()))
port runner =
    Task.map Console.run io

Now, in this case the Task is obviously trivial, but imagine code where there really was an substantial Task involved that ultimately could be mapped to a String.
The code above will compile, but it doesn't really make any sense (and doesn't work), because a Task which results in a signal of tasks isn't really sensible within Elm, for a variety of reasons. So, it's a dead end.
So, I was trying to conceive of what is missing here. One way of thinking about it would be that we need a function of this form:
fromTask : Task x a -> IO (x, a)

Now, one complication for implementation would be arranging for the task to be executed when the IO is executed, but that doesn't seem impossible.
If one had this "bridge" between Task-world and IO-world, I think it would cover a lot of cases.
Some others one could imagine are:
onSuccess : Task x (IO a) -> IO a

onError : Task (IO x) a -> IO x

So, I'm wondering whether I'm thinking about this the right way -- is there a better way to imagine how this might work?
In passing, I think there are similar puzzles re: Signals and IO ... for instance, what if you had a Signal String and you wanted to write each String to the console as it arrived? I'm not sure how you'd do that either, but I haven't thought much about it.

OK, I belatedly realized that my practical problem was easy enough to solve -- it's easy to create a Task that itself writes a String to the console. So I don't really need to be in IO world particularly, just to get a string written.
However, I think the general issue is still potentially interesting.

@rgrempel I have a problem that is somewhat similar to this #8

Given https://github.com/laszlopandy/elm-console/issues/8#issuecomment-193643198, I think my original use case was misconceived -- it just isn't what this module is for. So, I'll close this.


Select static subnet and pinned IP address for WSL

I checked the forum and found multiple requests, which are pending for a while.
WSL is great! But admins and developers need to be able to reliably access services on the WSL instances!
The localhost mapping does not help for all application types -- even just accessing from host to WSL.
It drills down to the following requests

Keep the selected sub range persistent between boots
Keep the selected IP persistent between boots
Allow to change the IP range permanently to resolve conflicts with VPNs, corporate policy, etc
Allow to assign a static IP from that range that does not change automatically after reboot

You can add another IP today inside the VM and assigning it via /etc/wsl.conf  boot command in Win 11 should work.  But if the IP range changes, this doesn't help! (e.g. ip a add <IP_ADDRESS>/20 dev eth0)
The hyper-v local only adapter has no configurable IP range as well. And this might be part of the problem ..
If you cannot fix it soon, maybe we can get an valid work around by changing the WSL hyper-v network adapter?
It is not clear how the adapter gets assigned to WSL.
Thanks
Daniel

There are workarounds like this https://github.com/microsoft/WSL/discussions/7395. Some developers created powershell scripts with it.

Thanks for the inspiration. But it is still tricky. Your JSON didn't work for me. I always got back that the network already exists. Even after start when it wasn't there and also when I first deleted it.
Here is what worked for me. Your link and the additional links I followed gave me inspiration.  I needed to add the other parameters as well to the JSON.
My current strategy is to define the sub net and add an alias IP that either is not there yet or if already present, we can ignore the error.
See my fist version without configurable parameters.
What do you think?
Why can't WSL allow to customize the creation of the network and allow a static assignment?
Daniel

/*
    Author: Daniel Nashed (Nash!Com)

    (Re)creates the WSL network with a specific subnet <IP_ADDRESS>/24 and adds an alias <IP_ADDRESS> for the assigned range.
    In case the IP is already set, the error can be ignored.
    This works on Windows 10+ but requires sudo permissions for the "ip addr " command.
    In Windows 11 /etc/wsl.conf supports a command in the [boot] section executed as root to set the IP.

    References and thanks for the inspiration:
        https://github.com/microsoft/WSL/discussions/7395
        https://github.com/skorhone/wsl2-custom-network

    For testing: Powershell Get current settings :
        Get-HnsNetwork | Where-Object { $_.Name -Eq "WSL" }

    Useful commands:

    Get WSL container IP:
        wsl hostname -I

    Set addtional IP
        wsl sudo /sbin/ip a add <IP_ADDRESS>/24 dev eth0
*/

#include <stdio.h>
#include <computenetwork.h>
#include <Objbase.h>
#pragma comment(lib, "computenetwork")
#pragma comment(lib, "Ole32.lib")

int main(void)
{
    int         ret        = -1;
    HRESULT     hRes       = 0;
    HCN_NETWORK hcnNetwork = NULL;
    PWSTR       errRecord  = NULL;

    const GUID netId = {
        0xB95D0C5E,
        0x57D4,
        0x412B,
        { 0xB5, 0x71, 0x18, 0xA8, 0x1A, 0x16, 0xE0, 0x05 } };

    // Flags = EnableDnsProxy + IsolateVSwitch
    // Type = Static

    PCWSTR netSettings = LR"(
    {
        "Name" : "WSL",
        "Flags": 9,
        "Type": "ICS",
        "IPv6": false,
        "IsolateSwitch": true,
        "MaxConcurrentEndpoints": 1,
        "Subnets" : [
            {
                "ID" : "FC437E99-2063-4433-A1FA-F4D17BD55C92",
                "ObjectType": 5,
                "AddressPrefix" : "<IP_ADDRESS>/24",
                "GatewayAddress" : "<IP_ADDRESS>",
                "IpSubnets" : [
                    {
                        "ID" : "4D120505-4222-4CB2-8C53-DC0F70049696",
                        "Flags": 3,
                        "IpAddressPrefix": "<IP_ADDRESS>/24",
                        "ObjectType": 6
                    }
                ]
            }
        ],
        "MacPools":  [
            {
                "EndMacAddress":  "00-15-5D-52-CF-FF",
                "StartMacAddress":  "00-15-5D-52-C0-00"
            }
        ]
    })";

    hRes = HcnOpenNetwork (netId, &hcnNetwork, &errRecord);

    if (S_OK == hRes)
    {
        printf ("WSL Network already exists\n");
        CoTaskMemFree (errRecord);
        errRecord = NULL;

        if (hcnNetwork)
        {
            hRes = HcnCloseNetwork (hcnNetwork);
            hcnNetwork = NULL;
        }

        hRes = HcnDeleteNetwork (netId, &errRecord);

        if (S_OK == hRes)
        {
            printf ("WSL Network deleted\n");
        }
        else
        {
            printf ("WSL Network cannot be deleted [%ls]!\n", errRecord);
        }

        CoTaskMemFree (errRecord);
        errRecord = NULL;
    }
    else
    {
        printf ("WSL Network does not exist!\n");
    }

    hRes = HcnCreateNetwork (netId, netSettings, &hcnNetwork, &errRecord);

    if (S_OK == hRes)
    {
        printf ("WSL Network created\n");
        ret = 0;
    }
    else
    {
        printf ("WSL Network not created [%ls]!\n", errRecord);
    }

    CoTaskMemFree (errRecord);
    errRecord = NULL;

    /* Set the address we want in the sub-net created as an alias */
    system ("wsl sudo /sbin/ip a add <IP_ADDRESS>/24 dev eth0");

Done:

    if (hcnNetwork)
    {
        hRes = HcnCloseNetwork (hcnNetwork);
        hcnNetwork = NULL;
    }

    return ret;
}

Your JSON didn't work for me.

In that discussion, I just provided the code as an example or template. If you need further customizations in that JSON I can try to help.

Why can't WSL allow to customize the creation of the network and allow a static assignment?

Maybe for security? 🤷

Thanks! the JSON from the other post (referenced in my code example) helped and works.
I don't see a security issue here. We are on a local machine. The port is not exposed outside your local machine -- unless you add a proxy component. That's a different discussion.
Any other virtualization supports to specify fixed IP addresses! And it can be a configuration option.
I am OK with the workaround for now. But not everyone can compile code on their own or want to download additional EXE files from the web.. IMHO this belongs into the product. Not only to specify the network range, but also a statically assigned IP.
I will make the code available once I made it a bit customizable. Probably it would need to allow at least specifying the range and the IP set.
If you have feedback or ideas, I can write it up and publish it.  This is really needed when we want to use applications that cannot use the localhost option.  It will be probably in one of my existing repositories here I need it -- with Apache 2.0 license.
Thanks again! Your code and the other references I found have been really helpful!
It was still some research and testing to get it working. And the routines needed are only available 64bit.
-- Daniel

Two things I noticed. For a specific pinned IP address, a new network endpoint has to be created using HcnCreateEndpoint and attached with WSL2 VM using HcsModifyComputeSystem. To run a command in a WSL environment, WslLaunch API can be used instead of system function. It handles the I/O of wsl.exe process internally.

Thanks! Hmmm .. The assigned IP works in my Windows 10 environment without creating a new end-point on my own.
What doesn't work for you if you don't create a new end-point?
Do you have a reference to the WslLaunch API? I want to have a look but I think I want to keep it as simple as possible.
There might be other commands needed in future. So having it generic makes sense to me. But I would be interested to look at the API.
The routine now also allows to specify an IP. It assumes it's a class C and calculates network and gateway.
And it checks if WSL is already started printing an info that WSL needs to be restarted.

What doesn't work for you if you don't create a new end-point?

I mean like this. Only AddressPrefix can be configured with HcnCreateNetwork. So, the WSL2 VM has a random IP address in <IP_ADDRESS>/24 range. But you asked for "pinned IP address" which can be configured with HcnCreateEndpoint. It has IPAddress field in JSON endpoint object.

Do you have a reference to the WslLaunch API?

Here https://docs.microsoft.com/en-us/windows/win32/api/wslapi/nf-wslapi-wsllaunch
Other WSL APIs here https://docs.microsoft.com/en-us/windows/win32/api/wslapi/

Ohhh now I got it! I have the code in place but I am still looking for the JSON string.
The only reference I found so far is this Example which does not contain an IP.
Do you have a JSON example for me?
I found find any documentation for any of the JSON related to the calls.
This will save a lot of time spelunking around ..
Thanks!

Found it.. But this will require some more work to get it clean after lunch...
   {
        "SchemaVersion": {
            "Major": 2,
            "Minor": 0
        },
        "Flags" : 0,
        "HostComputeNetwork" : "B95D0C5E-57D4-412B-B571-18A81A16E005",
        "IpConfigurations" : [
            {
                "IpAddress": "<IP_ADDRESS>",
                "PrefixLength": 24,
                "IpSubnetId" : "4D120505-4222-4CB2-8C53-DC0F70049696"
            }
        ]

    }

Yes, that one. My test code is in primary state. I need some json parsing library written in C or C++. Can you suggest one which can fit well in this situation?

The return string errRecord is also a JSON object. But every parameters are wide string.

I am using RapidJSON..
My prints use the %ls format which works in a printf as well.
Now that it works, did you ever try to use PowerShell to set it? I am not a big PowerShell fan. But this would be easier for others to consume. And PowerShell has simple to use JSON parsing.
Look at this example. In this case it is reading from a file. But it should also work form a buffer:
$DominoBackupCfg = Get-Content -Raw -Path $DominoBackupConfigFile | ConvertFrom-Json

foreach ($SearchCfg in $DominoBackupCfg)
{
  if ( $RestoreTarget -eq $SearchCfg.IpAddress)
  {
    $RestoreVmHost  = $SearchCfg.VmHost
    ...
  }
}

Do you have an idea how the endpoint is now assigned to the WSL container?
Right now it still gets a random IP from the subnet. Sounds like the mapping would be by MAC address.
I could specify a MAC in the endpoint, but how do I know which MAC the WSL container has?
If you want to play around, I can share my current code.

@Biswa96 Looks like creating a HNSEndpoint does not work as you expected.
I can create endpoints and assign an IP and a MACs address.  But WSL always creates a new network and assigns a VirtualMachine ID. It uses IPs and MACs from the network. But if you create one, it always does see it as an existing other entry and creates a new one.
So it looks like we can't create our own entries ant let WSL use it.
That's probably only something the WSL team can sort out.
I have code working to create the resources and also to enumerate them. Plus also converting GUIDs.
But this doesn't help and I have to stay with my trick to add an alias IP to the WSL stack.
If you have more ideas I would give it another try or share the code.
-- Daniel

In that previous discussion, I have provided the sample code to add specific IP address in WSL2. Direct link https://github.com/microsoft/WSL/discussions/7395#discussioncomment-1803186

Thanks! I haven't looked into the other management components.
I see you are removing the network and adding a new network based on the settings needed.
This needs a bit more code around it like searching the for the right VM getting the ID.
Enumerating ComputeSystems and getting the properties will probably need a bit of JSON magic around it..
Not sure if we really need to add code to compute new random GUIDs. But I have this in place in my code already.
I never worked with those type of APIs, but with your pointers how to start, I can make it work based on what I already have.
To automate the process I would need to find the VM first HcsEnumerateComputeSystems, open it HcsOpenComputeSystem and then get the VM ID via HcsGetComputeSystemProperties.
This sounds like a bit of work and as you say it requires that the VM is already created by WSL.
But this would allow other fun things to do with the VM in future :-)

quick update:
Now we finally need some JSON magic. But I am tempted to just do string operations for now. Here is what you get back from the enumeration for now before I add JSON parsing.
Not that we end up writing up our own WSL management tool .. Hmmm... I just wanted a static IP for my WSL environment ;-)
-- Daniel
[
  {
    "Id": "266A9C21-0EF0-4983-BD9C-CAB2F07D09CA",
    "SystemType": "VirtualMachine",
    "Owner": "WSL",
    "RuntimeId": "266a9c21-0ef0-4983-bd9c-cab2f07d09ca",
    "State": "Running"
  },
  {
    "Id": "98456253-fb5a-41ad-ada8-787f9e01466b",
    "SystemType": "VirtualMachine",
    "RuntimeOsType": "Windows",
    "Owner": "CmService",
    "RuntimeId": "98456253-fb5a-41ad-ada8-787f9e01466b",
    "State": "SavedAsTemplate"
  }
]

hcsdiag.exe list
266A9C21-0EF0-4983-BD9C-CAB2F07D09CA
    VM,                         Running, 266A9C21-0EF0-4983-BD9C-CAB2F07D09CA, WSL

98456253-fb5a-41ad-ada8-787f9e01466b
    VM,                         SavedAsTemplate, 98456253-FB5A-41AD-ADA8-787F9E01466B, CmService

Filtering it by owner looks like the only way to distinct the VMs..

@Biswa96  it's not working for me. Have working code that creates all relevant parts. Just filling in the Virtual machine ID manually for now.
The MAC address shows up in the VM but the IP address is not picked up.
I am using Get-HNSEndpoint in PowerShell to dump the results of the WSL created endpoint and our endpoint.  The endpoint was missing the VirtualMachine  -- which I added. But still the IP address is not assigned inside the VM. I also added PrefixLength which was also missing.  There are some other fields missing in the hand crafted endpoint.
How much is this verified to work on your end? I am happy to beef up prototype code. But I can't spend hours on trying to figure out the right parameters.
How sure is it that it should work and always work?  My approach to add the alias IP is much less likely to break. This approach is mocking around with the WSL created endpoint. Maybe it is time to get from feedback from the WSL team?
My current self created endpoint
Get-HNSEndpoint
ID                 : b95d0c5e-57d4-412b-b571-18a81a16e222
Name               : Ethernet
Version            :<PHONE_NUMBER>7
AdditionalParams   : @{SwitchId=573F9E5D-4BC7-49E9-994E-610AB61471BC; SwitchPortId=4939CC1B-950A-4197-8845-ED8F1B4F2B5B}
Resources          : @{AdditionalParams=; AllocationOrder=2; Allocators=System.Object[]; CompartmentOperationTime=0; Flags=0; Health=; ID=32E29560-FDE6-47EC-8C51-3DF3BBA40AE1;
                     PortOperationTime=0; State=1; SwitchOperationTime=0; VfpOperationTime=0; parentId=2FC115CC-AF91-4DE9-AB83-A07813F1A085}
State              : 2
VirtualNetwork     : b95d0c5e-57d4-412b-b571-18a81a16e005
VirtualNetworkName : WSL
MacAddress         : 00-15-5D-52-C0-22
IPAddress          : <IP_ADDRESS>
PrefixLength       : 24
GatewayAddress     : <IP_ADDRESS>
IPSubnetId         : 4d120505-4222-4cb2-8c53-dc0f70049696
DNSServerList      : <IP_ADDRESS>
SharedContainers   : {}
VirtualMachine     : 4CAA3CAB-21B4-4A47-A27C-2914C2F49934

Endpoint created by WSL
It has AdditionalParams set to a SwitchId and SwitchPortId
Get-HNSEndpoint

ID                 : 37baae10-45dd-473c-9b82-d54c795f706a
Name               : Ethernet
Version            :<PHONE_NUMBER>7
AdditionalParams   : @{SwitchId=573F9E5D-4BC7-49E9-994E-610AB61471BC; SwitchPortId=D913CBE5-3233-455D-9330-3CD99A981CDB}
Resources          : @{AdditionalParams=; AllocationOrder=2; Allocators=System.Object[]; CompartmentOperationTime=0; Flags=0; Health=; ID=A4AD4466-82CB-4920-8340-C6AB7F4378A0;
                     PortOperationTime=0; State=1; SwitchOperationTime=0; VfpOperationTime=0; parentId=2FC115CC-AF91-4DE9-AB83-A07813F1A085}
State              : 2
VirtualNetwork     : b95d0c5e-57d4-412b-b571-18a81a16e005
VirtualNetworkName : WSL
MacAddress         : 00-15-5D-52-C0-2C
IPAddress          : <IP_ADDRESS>
PrefixLength       : 24
GatewayAddress     : <IP_ADDRESS>
IPSubnetId         : 4d120505-4222-4cb2-8c53-dc0f70049696
DNSServerList      : <IP_ADDRESS>
SharedContainers   : {}
VirtualMachine     : 188276C0-3D4C-45B8-94D5-2DABD11F4654

Here is the current template to create the endpoint.
VirtualMachine ID is still hard coded until it works (needs to add JSON parsing ..).
   PCWSTR endpointSettingsJSON = LR"(
    {
        "Name": "Ethernet",
        "IpAddress": "%s",
        "PrefixLength": 24,
        "MacAddress": "00-15-5D-52-C0-22",
        "VirtualNetwork" : "B95D0C5E-57D4-412B-B571-18A81A16E005",
        "VirtualMachine" : "188276C0-3D4C-45B8-94D5-2DABD11F4654"
    })";

How much is this verified to work on your end?

I am using this workaround in Windows 10 for WSLg stuff.

How sure is it that it should work and always work?

I am not sure if this works in Windows 11 because I have not used it yet.

Maybe it is time to get from feedback from the WSL team?

Absolutely.

How much is this verified to work on your end?

I am using this workaround in Windows 10 for WSLg stuff.

How sure is it that it should work and always work?

I am not sure if this works in Windows 11 because I have not used it yet.

Maybe it is time to get from feedback from the WSL team?

Absolutely.

I can't get it working on Windows 10. It looks all good but the machine only picks up the MAC.
This might be a detail. I did not finish the code to parse the JSON, because I wanted it to work first.
I am happy to share the code to look into it and to leverage what I built around I already.
This isn't really the final solution. IMHO the WSL project should address it.
Clearly what we are doing here is just a temporary solution to not re-create connections all the time after boot.
 I added a couple of useful routines for testing.
But beside my first approach at the beginning of the code, all the other parts are more for testing your approach to create the EndPoint directly with a fixed MAC and IP.
The code you posted it more PoC code. I am happy to spend the time and contribute a final solution once we make sure it really works. I can't spend days on researching it right now... Even it was a lot of fun last weekend looking into it.
Again I would like the WSL team pick it up and address it in the product!
It is really needed for applications requiring more than just the simple "localhost" mapping!.
-- Daniel

@craigloewen-msft why is this issue closed? I don't see any of the related issues you referenced in #7925 are a work-around nor a feature request.
For now until there is a solution I wrote a small helper tool with the help from @Biswa96 .  Thanks again.
I ended up not trying to set an endpoint, which is something the WSL team should implement in the product.
The work-around creates a new network and sets an alias IP for now.
Thanks
Daniel

This issue isn't closed, it's open and our tracking place for this request!

Oh the other one is closed #7925 .. The status for this issue is on top. Sorry!
Thanks for your feedback. Do you have any idea when this might be addressed. Or do you have any other work-around than the tool I wrote?
Deploying a tool is challenge for some corporate users I am working with.
Thanks
Daniel

the link in Daniel's post on 1/21/2022 [i think] is dead.
i'm just a lowly physicist :-) so the code is impenetrable to me. pardon the absolutely ignorant question, but how does one use all of this? i'm currently setting up a virtual research network using wsl2 and docker desktop and a static IP is essential. not asking for anyone to spend any time explaining, if someone could just point me to a reference...? i've googled and bing-ed until my fingers are numb.
many thanks
-mike


Introduce a scripts section?

Perhaps.

would need people to vet the scripts for malware and such before approval.

I can give some from my collection

Also ytubers like me and wallee can upload scripts here. this will increase the popularity of our channels, and mcpi-repo

mcpi-repo is dead


Inline diff is at wrong position

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

VS Code Version: 1.90.2
OS Version: Windows 10

Steps to Reproduce:

Preconditions:

Diff is only deleted lines
word wrap enabled
the line before the deleted lines is too long to fit and wraps

Click the little red inline diff marker
The diff is placed in the middle of wrapped line 1 (see screenshot)

It should be placed directly above line 2 instead.

Can you share the content of the two models that you diff? Thanks!


Add eth_accounts rpc test

What this PR does / why we need it:
Test basic RPC call eth_accounts

@dcorral hmm.. the CI was skipping all the test..


Error: gmake failed with exit code: 2

Hey!
Gettings this error when installing on IBM I:
remote: gmake: Entering directory '/container1/project/code/node_modules/odbc/build'
remote:   CXX(target) Release/obj.target/odbc/src/odbc.o
remote: In file included from ../src/odbc.cpp:19:0:
remote: /container1/project/code/node_modules/node-addon-api/napi.h:5:22: fatal error: functional: No such file or directory
remote:  #include <functional>
remote:                       ^
remote: compilation terminated.
remote: gmake: *** [odbc.target.mk:127: Release/obj.target/odbc/src/odbc.o] Error 1
remote: gmake: Leaving directory '/container1/project/code/node_modules/odbc/build'
remote: gyp ERR! build error
remote: gyp ERR! stack Error: `gmake` failed with exit code: 2
remote: gyp ERR! stack     at ChildProcess.onExit (/QOpenSys/pkgs/lib/container1/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
remote: gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
remote: gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
remote: gyp ERR! System OS400 7.3
remote: gyp ERR! command "/QOpenSys/pkgs/lib/container1/bin/node" "/QOpenSys/pkgs/lib/container1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
remote: gyp ERR! cwd /container1/project/code/node_modules/odbc
remote: gyp ERR! node -v v10.16.3
remote: gyp ERR! node-gyp -v v3.8.0
remote: gyp ERR! not ok
remote: npm WARN<EMAIL_ADDRESS>No repository field.
remote: npm WARN<EMAIL_ADDRESS>No license field.

Does anyone know what could be wrong?

Turns out I was missing libstdcplusplus-devel
Installed it with yum install libstdcplusplus-devel


pull request for e2e test at 11/30/2016 04:56:05

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Audio connection unstable

Running on the latest main branch as of this post:
During my testing of 4-5 time join in a room, I could get the app to connect the audio only once. The rest of the times it just didn't connect at all.
Also, during one of the joins, the video frame (of each participant), showed a red box instead, in which it was written: "no such method error: the getter 'name' was called on null". Though the app transmitted video to the server successfully.
(logcat is not attached: oddly enough I couldn't locate any log related to bbb_app nor flutter, although it is a debug build)

We need more information to reproduce this:

How many people are in the conference?
How many webcams are currently sharing?

Hi
I've tested with myself: one on the PC and one in the app: one webcam each.
The app did connect the audio only once (which resulted in a painful echo
between both devices). Other times it just didn't connect the sip at all.
Webcam always connects easily. (of course with a long 10-15 second delay)
On Mon, Feb 8, 2021 at 4:19 PM Benjamin Eder<EMAIL_ADDRESS>wrote:

We need more information to reproduce this:

How many people are in the conference?
How many webcams are currently sharing?

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/bennyboer/bbb_app/issues/163#issuecomment-775126142,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGAMVMTMOC2SUWHG3ETQO7DS57MXPANCNFSM4XIKEW4Q
.

To-Do

[ ] Saving last successful voice connection method (WS or WSS) in user preferences for faster connection in subsequent connection attempts
[ ] Test joining meeting again (with webcam enabled)


Accordion looks odd

Original: https://www.macquarie.com.au/help/personal/macquarie-online-trading/manage-your-account/share-transfers-and-ownership-changes.html
Imported: https://main--macquarie-help-centre--hlxsites.hlx.page/help/personal/macquarie-online-trading/manage-your-account/share-transfers-and-ownership-changes

vs

Also accordion open/close transition is odd.

@ujjwal5 , please have a look at this

Fixed via https://github.com/hlxsites/macquarie-help-centre/pull/133


[Snyk] Security upgrade next from 13.5.7 to 14.2.7

Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.
Snyk changed the following file(s):

package.json

Vulnerabilities that will be fixed with an upgrade:

Issue

Uncontrolled Recursion SNYK-JS-NEXT-8186172

[!IMPORTANT]

Check the changes in this PR to ensure they won't cause issues with your project.
Max score is 1000. Note that the real score may have changed since the PR was raised.
This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

This is probably worth doing but I'm guessing that we're hitting whatever the breaking changes are.

I looked at the breaking changes and they seem to be nothing that we're using. The errors were because Snyk didn't update the pnpm lockfile.


copy the file instead of symlink as users can get error 'too many levels of symbolic links'

We see this error on os-x for the origami-build-service

We went with #14 instead


New APNS API announced at WWDC 2015

Just a FYI there will be a big change in APNS soon: https://developer.apple.com/videos/wwdc/2015/?id=720
The new API is way cleaner, backwards compatible, and fixes a lot of the flaws from the original design (especially error handling).

Sounds great.

The relevant talk starts at 16:45 minutes.
Thanks for the link, it looks like it'll fix all our current problems :)

Is there any work being done in prep for the new APNS API?

Not from me, but I'm welcome to PRs.

I haven't started working on this either.  Is there a release date?
I do want to be involved so if somebody is planning to work on this feature, give me a ping.

Subscribe to this issue, this will be the tracker for it.

Done

@Proper-Job there are a lot of work to do.
First of all, I would like to move all code related to sending push notifications to external library like apns-client and gcm-cliend. I'm not saying they are perfect solutions, I'll do some research on this topic.
@jleclanche nothing personal, but I think it is better to develop libraries that can handle sending push notifications for everybody who use python, and then use them for building library for django notifications.

@koutoftimer If you need an extra pair of eyes, I'll be happy to review changes.

I think it is better to develop libraries that can handle sending push notifications for everybody who use python, and then use them for building library for django notifications.

I'm in favour of that approach, but when I created this library there was nothing like that then. I'll be happy to discuss this further later.

PyAPNS2 takes care of this.


How to automate creation of fabricators along with models

I would like to be able to automate the creation of fabricators along with models. I am aware of the existence of fabrication-rails, but it seems no longer maintained.
So this is the current state:

rails g model Post title:string body:text does not create spec/fabricators/post_fabricator.rb;
running rails g fabrication:model post before the migration only creates an empty fabricator with no attributes;
running rails g fabrication:model post after the migration creates a proper fabricator, but also with created/updated_at attributes, which I find an unwanted side effect.

Currently, I am using the third option and I manually remove the timestamps. Is there a better option? Also, where is the fabrication generator (rails g fabrication:model) documented?
Thank you.

Just after submitting the issue I found the answer here:
# config/application.rb
config.generators do |g|
  g.fixture_replacement :fabrication, dir: 'spec/fabricators'
end

I am willing to make a PR to the documentation. Would you accept such a PR?

I am ashamed :worried: , all this is in the docs: http://www.fabricationgem.org/#rails. Sorry :blush:

No worries, it happens to the best of us. PRs are always welcome for the docs although they are located in another repo:
https://github.com/paulelliott/fabrication-site


wrong Nuxt hooks module name

Environment
NA
Reproduction
https://nuxt.com/docs/guide/going-further/hooks#app-hooks-runtime
Describe the bug
should be #app/nuxt
Additional context
Thx @danielroe

probably also need to update the module builder too: https://github.com/nuxt/module-builder/blob/main/src/commands/build.ts#L160

Logs
No response

Would you be able to provide a reproduction?

Would you be able to provide a reproduction?

Sure, I'll provide an small repro after publishing vuetify nuxt module, I'm fixing a few issues...

@danielroe https://github.com/userquin/nuxt-module-build-issue-187
On main branch open plugin and module in playground, you will see an error, then checkout fix-hooks branch (run pnpm dev:prepare after installing dependencies (pnpm))

There is some inconsistent behavior when running pnpm nuxt prepare playground in module playground and nuxt-module-build prepare && nuxt-module-build with latest Nuxt and module builder (3.8.1 and 0.5.4 respectivelly), check the exports:

pnpm nuxt prepare playground

import type { ModuleOptions, ModuleHooks, RuntimeModuleHooks, ModuleRuntimeConfig, ModulePublicRuntimeConfig } from './module'

declare module '#app' {
  interface RuntimeNuxtHooks extends RuntimeModuleHooks {}
}

declare module '@nuxt/schema' {
  interface NuxtConfig { ['vuetify']?: Partial<ModuleOptions> }
  interface NuxtOptions { ['vuetify']?: ModuleOptions }
  interface NuxtHooks extends ModuleHooks {}
  interface RuntimeConfig extends ModuleRuntimeConfig {}
  interface PublicRuntimeConfig extends ModulePublicRuntimeConfig {}
}

declare module 'nuxt/schema' {
  interface NuxtConfig { ['vuetify']?: Partial<ModuleOptions> }
  interface NuxtOptions { ['vuetify']?: ModuleOptions }
  interface NuxtHooks extends ModuleHooks {}
  interface RuntimeConfig extends ModuleRuntimeConfig {}
  interface PublicRuntimeConfig extends ModulePublicRuntimeConfig {}
}

export type { default } from './module'

nuxt-module-build prepare && nuxt-module-build
// types.d.ts/types.d.mts
import type { ModuleOptions, ModuleHooks, RuntimeModuleHooks } from './module'

declare module '#app' {
  interface RuntimeNuxtHooks extends RuntimeModuleHooks {}
}

declare module '@nuxt/schema' {
  interface NuxtConfig { ['vuetify']?: Partial<ModuleOptions> }
  interface NuxtOptions { ['vuetify']?: ModuleOptions }
  interface NuxtHooks extends ModuleHooks {}
}

declare module 'nuxt/schema' {
  interface NuxtConfig { ['vuetify']?: Partial<ModuleOptions> }
  interface NuxtOptions { ['vuetify']?: ModuleOptions }
  interface NuxtHooks extends ModuleHooks {}
}

export type { ComponentName, Components, DateAdapter, DateOptions, DirectiveName, Directives, ExternalVuetifyOptions, FontAwesomeSvgIconSet, FontIconSet, IconFontName, IconSetName, IconsOptions, InlineModuleOptions, JSSVGIconSet, LabComponentName, LabComponents, MOptions, ModuleHooks, ModuleOptions, RuntimeModuleHooks, SSRClientHints, SSRClientHintsConfiguration, UnoCCSMdiIconSet, VOptions, VuetifyLocale, default } from './module'

It seems like, as long as there are modules installed mixing #app and #app/nuxt for declare module the type inference will break.
I made a minimal reproduction to demonstrate here. This reproduction has both @nuxtjs/i18n (uses #app) and @nuxtseo/module (uses #app/nuxt) installed, which both provide runtime hooks and I have added plugins that use these hooks.
The reproduction has some npm scripts to demonstrate the issue by running nuxt typecheck to show which hook types get type errors. You can run pnpm check:all to run all of the checks listed below for convenience.

pnpm check (unexpected behavior)

both modules enabled
i18n hooks type error

pnpm check:i18n-only (proof i18n hooks work)

disables seo module
only seo hooks have type errors

pnpm check:seo-only (proof seo hooks work)

disables i18n module
only i18n hooks have type errors

Thank you for the deep dive 🙏
I think it's safer to keep as #app. Was there a reason for using #app/nuxt at some point?
cc: @harlan-zw

Hm interesting, I can't remember at this point. I either based it off another module or this is where my IDE pointed me to. I feel like I switched to using @nuxt/scema in other modules.
Thanks for the investigation @BobbieGoede & @userquin. Will keep an eye out for it elsehwere


Go: make the top-of-file editing message clearer.

The current one suggests that some edits can be made. It even ends with "Happy editing!".
I'm particularly concerned about giving people false hope, since these files will live under handwritten, editable code.
So can we change everything from "EDITING INSTRUCTIONS" to the end of the comment to:
AUTO-GENERATED CODE. DO NOT EDIT.

Agreed

@jba : We used this wording because we intended the generated code of Veneer Toolkit to be editable (specifically for comments), and we have the three-way merge process to enable this. Do you want to make a rule that no generated Go files can be edited? Or is it specifically the generated Go files for APIs that will be wrapped?

Is the three way merge process ready right now?
I think we're fine to remove the hand edit section for the short term at least, as we're neither expecting nor looking for contributions to the generated surface at the moment. Potentially receiving PRs against the still changing surface/docs could be a waste. Plus, APIs we're generating for are going to be hand-wrapped.

This leaves me wondering if we should remove the notice from the generated Java files too.


Add about tab to pangeo website.

As we write more blog posts and the project evolves, the original post is becoming less relevant. Here I've ported/updated that post into a static page, accessible via the nav bar.

Nice Joe!


Sl/sparse ddp q

When using the SA formulation of ddp, this change allows one to pass the Q matrix as any subtype of AbstractMatrix. In particular, this allows us to use a sparse matrix for Q.
For the example in #118, this drops runtime of the solve method from 150 seconds to 0.6 seconds (ref, the python was 0.023 seconds).

@sglyon there seems to be a change in API in Optim. #182 should fix this.


Crash

Issue Description:
Note: If this bug occurs in a modpack, please report this to the modpack author. Otherwise, delete this line and add your description here. If you are using an unreleased version of Ender IO (e.g. for 1.8.9), please don't open an issue for features that have not been announced as "finished" or "working".
What happens:
Crash on startup
What you expected to happen:
Start the game
Steps to reproduce:

...

Affected Versions (Do not use "latest"):

EnderIO: Latest
EnderCore: Latest
Minecraft: 1.10.2
Forge: <IP_ADDRESS>6

Your most recent log file where the issue was present:
[pastebin/gist/etc link here]
https://pastebin.com/GeeFrHYZ

Same crash and log file here.
Affected Versions (Do not use "latest"):
EnderIO: 1.10.2-3.1.192.jar
EnderCore: 1.10.2-<IP_ADDRESS>-beta.jar
Minecraft: 1.10.2
Forge: <IP_ADDRESS>6

Note: The reason I blame Chisel here is that we can either work with the old version and crash with the new or vice versa. There is no way for us to either work with both versions or even to just not work with one of them.

Thank you Henry.
Just to be clear: reverting back to a previous version of Chisel WILL NOT fix this once its been done right?

FYI: This now seems to be fixed with Chisel-MC1.10.2-<IP_ADDRESS>.jar and CTM-MC1.10.2-<IP_ADDRESS>,jar.
(For 1.10.2-3.1.192, at least.)


[Cache] cache paths for VlanInterface don't work

GET

.../core-model-1-4:network-control-domain=cache/control-construct=513250011/logical-termination-point=VI-10/layer-protocol=10/vlan-interface-1-0:vlan-interface-pac/vlan-interface-capability
.../core-model-1-4:network-control-domain=cache/control-construct=513250011/logical-termination-point=VI-10/layer-protocol=10/vlan-interface-1-0:vlan-interface-pac/vlan-interface-configuration

are both resulting in response code 404.
Happens for all vendors, mountNames and uuid/localId.
Same mountNames and uuid/localId combinations work fine while being addressed directly to the Controller.
Even addressing the network-control-domain=live works for the same mountNames and uuid/localId combinations (takes just extremely long for the first attempt).

It is not reproducible...
These are the responses for both api's in test lab with tag 1.1.2.c_impl

Tested with latest  MWDI version 1.1.2.g_impl, Issue is no longer observed.
We are able to retrieve the response for both API's
http://XXX:XXX/core-model-1-4:network-control-domain=cache/control-construct=513250011/logical-termination-point=VI-10/layer-protocol=10/vlan-interface-1-0:vlan-interface-pac/vlan-interface-capability

http://XXXX:XXX/core-model-1-4:network-control-domain=cache/control-construct=513250011/logical-termination-point=VI-10/layer-protocol=10/vlan-interface-1-0:vlan-interface-pac/vlan-interface-configuration

Response Code : 200


tweak markdown style in docs.md

detail:

change line-height of all p element and li element to 2rem , it looks nicer
style all blockquote
add border-radius to all code block
remove posiition: fixed of footer component

Any suggestions are welcome to make the the the raw html markup more beautiful are welcome :smile:

@liadbiz This is great, and I'd love to merge as is! We just merged some other items into master that will not conflict, but will give us CI validation and also allow you to add yourself as a contributor. If you'd like to merge in the master branch and then add yourself as a contributor, that would be great. You can see how to add yourself here: https://github.com/kentcdodds/glamorous-website/blob/master/CONTRIBUTING.md#add-yourself-as-a-contributor
LMK if you get stuck or there's a big conflict when merging.

@paulmolluzzo
I merged master from this repo to my fork, and when I run npm start validate there exists one  warings:

I noticed the lint rules no-danger are being set to 1, shoud we change it to 0?

Codecov Report

Merging #13 into master will increase coverage by 0.12%.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master   #13      +/-   ##
=======================================
+ Coverage   94.87%   95%   +0.12%
=======================================
  Files          11    11
  Lines          39    40       +1
  Branches        3     3
=======================================
+ Hits           37    38       +1
  Misses          2     2

Impacted Files
Coverage Δ

pages/docs.js
83.33% <ø> (ø)
:arrow_up:

components/footer.js
100% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

Just going to merge this as is. We can make any needed adjustments in another PR :+1:

@liadbiz I use warnings there because we should keep an eye on dangerouslySetInnerHTML. Outside of a few controlled scenarios we really don't want it. We might even want to only disable those lines and keep the rule.


Fixes - Custom Provider in Localization doc doesn't provide sufficient information

Fixes - #3280
File Change :

localization.md - updated the point of custom provider

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot

@siddharthashw  can you propose this change at https://github.com/aspnet/Entropy/blob/dev/samples/Localization.StarterWeb/Startup.cs#L70
We copy their code.

@ryanbrandenburg  can you suggest a way to update the text to get this point across. It looks like his code notes are not complete.

If current culture of my application is en-US and and I want to configure my application for 'fr' and 'en-US'. Then I don't need to add
new CultureInfo("en-US")
new CultureInfo("fr")

As if, I do so, my application will not be able to recognize the .resx of fr. It will always read .resx of en-US. My application was not able to get value from Controllers.HomeController.fr.resx for IStringLocalizer<HomeController>
You can have look on my code snippet of #3280

@Rick-Anderson , I have updated the README.md file. In hope that now it will be clear for you.

@ryanbrandenburg  please review change.

I'm still unclear what exactly this PR is meant to fix. It reads to me like the issue you linked said that the problem was that that snipped lead to not actually being able to get fr as a culture (I assume because it always selected en). I haven't actually tried it but I doubt adding fr twice would fix that problem.
Further, we don't want to tell people to not include their "current culture" in SupportedCultures, because in general that's not a safe assumption. For example, imagine you were working with someone who primarily speaks spanish and they try to run your code, now "en-US" isn't a supported culture and they're likely to run into problems.
Perhaps I'm misunderstanding the intent/ask here?

@ryanbrandenburg  I'm not clear either but I did figure out this seems to be a special case of the  custom provider sample code - not the code used in the article.  Does that help?

@ryanbrandenburg

I haven't actually tried it but I doubt adding fr twice would fix that problem.

Why I should do this twice. This is not fruitful way for solution

For example, imagine you were working with someone who primarily speaks spanish and they try to run your code, now "en-US" isn't a supported culture and they're likely to run into problems.

If someone is primarily using spanish for there application as current-culture then they try to run your code, now "en-US", so for that they have to register en-US for there application but they don't need to register spanish for there application. This is what I am trying to explain.

@ryanbrandenburg can you respond?

I'm not suggesting that you add the french culture twice, I'm pointing out that what your PR currently does is add it twice, and that's not something we want to tell people to do.
I am saying that the guidance we want to give people is to include in supportedCultures ANY culture that they want to support. We don't want people relying on the application culture or local culture of the machine or anything like that because it leads to unexpected behavior when switching machines..

The only thing that I would like to suggest is that you don't need add pre-supported culture. whether it is ANY culture.

We don't want people relying on the application culture or local culture of the machine or anything like that because it leads to unexpected behavior when switching machines

@ryanbrandenburg - You don't want it but unfortunately, the application takes the application or local culture as default. And I work and behave like - #3280
So its guideline for user not to add their application culture. Look there are may be two options

I haven't actually tried it but I doubt adding fr twice would fix that problem.
as you stated
or

As my PR is instructing.

@ryanbrandenburg I've cleaned up the comments. I think @siddharthashw  is right, you don't need to add your culture. Can you take a look at the changes?

@Rick-Anderson , I hope now you get my point.

@ryanbrandenburg  can you look at my latest changes? Is this useful or should I close the PR?

@siddharthashw @Rick-Anderson we have seen problems and received bug reports when users follow this new recommendation. If for example developers move from a machine with one default locale to another, the deployed site will start failing for the previous default locale.
So, why recommend a pit of failure? Being explicit about all supported cultures does not cause problems and avoids these potential failures.


ci: merge staging to master

This is an automatic PR generated by the pipeline CI/CD. This will be automatically fast-forward merged if successful.

Pipeline Attempt on 637153419 for bb653f2fa65588d44a7a03afd0089f2c56a75851
https://gitlab.com/MatrixAI/open-source/js-timer/-/pipelines/637153419

Pipeline Succeeded on 637153419 for bb653f2fa65588d44a7a03afd0089f2c56a75851
https://gitlab.com/MatrixAI/open-source/js-timer/-/pipelines/637153419

Pipeline Attempt on 637169012 for 28990b6d88af971356ba1f12c74bc60d847349ce
https://gitlab.com/MatrixAI/open-source/js-timer/-/pipelines/637169012

Pipeline Succeeded on 637169012 for 28990b6d88af971356ba1f12c74bc60d847349ce
https://gitlab.com/MatrixAI/open-source/js-timer/-/pipelines/637169012


where have shenyu admin.   the code of  front web

Question
// your question here;
Please pay attention on issues you submitted, because we maybe need more details.
If no response anymore and we cannot reproduce it on current information, we will close it.

Please read the https://github.com/apache/incubator-shenyu/issues/1638


Add SNAP-accepting farmers markets dataset

Add US-wide farmers market dataset

how does it look? Any promising states?


fix: add catergories in a seperate property field in the property bag

[ ] Ready for review

What does this PR do?
This PR removes the possibility of having a tag break the category filtering by giving categories it own place in the property bag
This also changes the analysisResults.files[filePath] test to a snapshot due to constant updating of the fingerprinting

:tada: This PR is included in version 3.1.5 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Doesn't start

Hello! I installed it I can see the icons, no error code but when I try to start it, it does't start. Just loading, but nothing happens.

Type this in terminal sudo python3 ${HOME}/CommanderPi/src/main.py ${HOME}
Tell me what you see then

I got no such file in the directory.
I am having the same problem

I got:
Creating config...
Here is app-1 Version 0.7.2
Country code is:
country HU: DFS-ETSI
68.8
Total: 29.01
Used: 18.93
Free: 8.58
2.1GHz
Can't find RaspberryPi config file!
Traceback (most recent call last):
File "/home/pi/CommanderPi/src/main.py", line 9, in
import gui as g
File "/home/pi/CommanderPi/src/gui.py", line 4, in
import resources as rs
File "/home/pi/CommanderPi/src/resources.py", line 245, in
f = open(config_path)
FileNotFoundError: [Errno 2] No such file or directory: ''

What is your config.txt file path?

/media/pi/boot/config.txt

Strange path, what OS are you using?

I am using Raspberry os 32-bit but with berryboot. And I think it messed it up.

Strange path, what OS are you using?
I have added this path to CommanderPi, download new version and try
https://drive.google.com/file/d/12Lo9WWjix-88N6P-C8aeISUYX_xOlcKg/view?usp=sharing

This doesn't work too, but no problem because from berryboot I can change the config file. But thank you.

I have a potential fix for this issue. If you look in your start.sh file, you should see a little '>' after the second ${HOME}.
I didn't understand why it was there, so I tried removing it, and then the program started normally.
The old start.sh looks like this:
#!/bin/sh sudo python3 %{HOME}/CommanderPi/src/main.py ${HOME}> /var/log/commanderpi.log
And your new start.sh would look like this:
#!/bin/sh sudo python3 %{HOME}/CommanderPi/src/main.py $HOME /var/log/commanderpi.log
Does anyone know why the '>' is there, or am I going crazy?

thanks @arthertz

@arthertz this '>' is for create log file if program has crashed.

@Jack477 my commander pi wont open two i have the latest version and it just loads and never opens up

@Jack477 Is it possible there is a platform-specific reason why that would cause a problem? I am certain that removing it fixed my issue. I wonder if there is a more portable way to do the same thing.

I checked that, problem was > because this operator need sudo permissions to create file at /var/log/. On my Pi I was have a setup permissions for that. Removed that. Now it works. I'm sorry, use new download version and reinstall is needed.

Awesome! I love your program, thank you for fixing this so quickly.

I have the same problem, installed ok and have the CommanderPi logo on the desktop, but if you run it, it will not show the CommanderPi window. I believe there is a path issue on my setup. On this set up, I need to enter password on any sudo type commands.  Will it cost an issue  on your code? Thanks.


Changes to Jupyter Server Picker

Remove None
Add Delete icon to all remote entires, currently we don't allow deleting the active connection

Starting with @IanMatthewHuff as it's UI part.

Done


Run tests on Release mode for Windows CI gates (nightly)

Multi-config generator, like Visual Studio, requires a configuration argument for running ctest.
We are currently using Debug everywhere (even for non-multi-config generators)
I am creating one step for running tests for a multi-config and a non multi-config generator setting the config argument as a variable.  The matrix configurations can override the value if we want.

/azp run cpp - core

/azp run cpp - core


Diagram inserted in Powerpoint via the addin doesn't show custom system font

Preflight Checklist

[x] I agree to follow the Code of Conduct that this project adheres to.
[x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Describe the bug
When inserting a diagram in Powerpoint by using the official draw.io addin, the custom system font of the diagram is not respected, and another font is shown.
To Reproduce
Steps to reproduce the behavior:

Create a new diagram, use a custom system font for text
Insert diagram in Powerpoint by using the addin
The font is not correct

Expected behavior
The font should be the correct one.
Screenshots

draw.io version (In the Help->About menu of the draw.io editor):

draw.io version: 17.2.4

Desktop (please complete the following information):

OS: Mac
Browser: Chrome
Version 99.0.4844.84 (Official Build) (arm64)

Additional context
I zipped the drawio, exported png, and ppt here.

The image we generate is done on a server. For it to see a custom font you'd have to use a public web font URL that the server can see.


Add annotation for an empty line

Describe the problem/challenge you have
If you have a large template (for example docker swarm stack), the resulting file may be even larger. In addition, it is difficult to navigate in such resulting files due to the absence of empty lines between blocks.
Describe the solution you'd like
It would be cool if there was an annotation with which you could put an empty line in the resulting file.
Something like #@ yaml/empty-line
Anything else you would like to add:
Nothing)

Vote on this request
This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.
👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"
We are also happy to receive and review Pull Requests if you want to help working on this issue.

Hello, @vmunishwar . Yes, solving the problem you mentioned would also be very useful. Thank you for your reply. We are looking forward to the implementation.
All the best


mm-send-and-receive-messages-wip

Fixed links

Docs Build status updates of commit 0b85fa8:
:warning: Validation status: warnings

File
Status
Preview URL
Details

msteams-platform/bots/how-to/conversations/send-and-receive-messages.md
:warning:Warning

Details

msteams-platform/bots/how-to/conversations/send-and-receive-messages.md

[Warning] Cannot resolve '/microsoft/botbuilder-dotnet/blob/master/tests/Teams/Roster/Bots/RosterBot.cs' relative to 'bots/how-to/conversations/send-and-receive-messages.md'.
[Warning] Cannot resolve '/microsoft/botbuilder-dotnet/blob/master/tests/Teams/Roster/Bots/RosterBot.cs' relative to 'bots/how-to/conversations/send-and-receive-messages.md'.

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

@Kaiqb do you think we should inline those code samples, or link to them in the /test folder? My instinct is to just inline them for now.


Active page out of bounds

Is it possible to handle big number of pages, so active indicator will be always visible?
In case width of control is less than required by the number of pages, then active indicator keeps moving out of bounds.
I would tell that it should handle this case, and if active indicator is "near" bounds, then it should move all unactive indicators to the left/right, and active indicator should have static positions.

hi @stasivanov , we have no plans to add this kind of a feature, but PR is welcome 👍


Helm 3.9 compatibility issue

Helm version 3.9.0 (latest as of  June 2022) causes an error dring kibana logging install.
“Error: Kubernetes cluster unreachable: exec plugin: invalid apiVersion "client.authentication.k8s.io/v1alpha1”.
Once we downgraded HELM to 3.8.2 we are able to successfully install Kibana/logging.
Please put in above note "Dependencies - Helm version"
Sudhir

@nallagangus Hmmm, I just downloaded Helm 3.9.0 onto a machine and did not have any problems deploying the log monitoring components.  I'm wondering if the problem is really tied to the version of Kubernetes you were using.  Or, if it a cloud provider-related issue: a Google search for the error turns up several postings reporting that AWS had a problem (now fixed) with Helm 3.9.0.

What version of Kubernetes are you using?
And is your cluster located on an external cloud-provider?  If so, which one?
Are you running our deployment script manually or are using some form of automation (such as the Viya 4 Deployment project)?

Thanks!

It is on AWS
k8s 1.20.0 on EKS
viya4 deployment project github  (Viya4 is deployed separately using
operator and that does no have issues)
On Wed, Jun 22, 2022 at 4:07 PM Greg Smith @.***> wrote:

@nallagangus https://github.com/nallagangus Hmmm, I just downloaded
Helm 3.9.0 onto a machine and did not have any problems deploying the log
monitoring components. I'm wondering if the problem is really tied to the
version of Kubernetes you were using. Or, if it a cloud provider-related
issue: a Google search for the error turns up several postings reporting
that AWS had a problem (now fixed) with Helm 3.9.0.

What version of Kubernetes are you using?
And is your cluster located on an external cloud-provider? If so,
which one?
Are you running our deployment script manually or are using some
form of automation (such as the Viya 4 Deployment project)?

Thanks!
—
Reply to this email directly, view it on GitHub
https://github.com/sassoftware/viya4-monitoring-kubernetes/issues/368#issuecomment-1163551613,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABSEK552VFTW7WGZ66UZF5TVQNXB5ANCNFSM5ZRDV2XA
.
You are receiving this because you were mentioned.Message ID:
@.***>

@govind-bt   In the AWS Issue I provided a link for above, the user nathan100b posted (on 20JUN22) a solution that worked for him.  You may want to try that.  However, as this appears to be an AWS issue and I am not an AWS expert, I can't speak to whether it is the "right" solution.


Feature - Exception handler

Raise taipy.core exceptions whenever an entity or config not found. Add error handler to handle each exception.

Tests will not be broken anymore after the fix to taipy-core


Onboard a front-end dev to an Amplify project

This question is related to a few issues that have already been raised (#186, #104, as well as a few from the amplify-js repo).
I'm working on an Amplify project, and I want to have another developer help out with the front-end. However, if he clones the repository he can't run the front-end, since he doesn't have the generated aws-exports.json file. From browsing issues and reading the documentation it seems like he'd need to run amplify configure and amplify push to generate the necessary files before he is able to run the front-end.
I guess my first question would be: is it recommended that this new developer provision the entire backend on his own AWS account? Is it possible to let this new developer simply use the resources already provisioned on my AWS account for his front-end development?
Thanks!

@epheat How I would do this, is htat I would share the amplify/ dir in a version control and the new developer would need to fetch the amplify/ dir in the project, setup his/her IAM user using amplify configure tied to the same AWS account.
Once the user has done that, the user can run the amplify configure project command in the project dir/, which would setup (through a CLI walkthrough), the entire project with the users AWS profile and utilize the same AWS backend.

Also, we're currently working on environment/stages for an Amplify project which would enable users to clone resources and work on a separate branch if needed, but we currently don't support that. But what we do allow is the usage of the same Amplify backend by multiple devs through the steps mentioned above.

Ok, thanks. I'll try that out tonight. But in the case of a strictly front-end dev, I'm not exactly a huge fan of needing to share the credentials of an Administrator IAM User for my AWS account for him to use during amplify configure.
Would it work to just share the src/aws-exports.js file with the front-end dev for him to place in his src/ directory? That way, he wouldn't even have to worry about using amplify.

Yup, that would work as well! If the frontend dev doesn't need to do any of the backend deployment stuff, then sharing just the aws_exports.js file would do - which is all that is needed to make SDK calls using Amplify JS lib from whatever frontend you're using.


SPT-1998 Модульные тесты часть 3

Что сделано

Добавлены тесты на утилиты и конвертации

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

:exclamation: No coverage uploaded for pull request base (SPT-1998-unit-tests-legacy-remove@059ee22). Click here to learn what that means.

Additional details and impacted files
@@                         Coverage Diff                          @@
##             SPT-1998-unit-tests-legacy-remove     #127   +/-   ##
====================================================================
  Coverage                                     ?   85.30%
====================================================================
  Files                                        ?       82
  Lines                                        ?     1259
  Branches                                     ?        0
====================================================================
  Hits                                         ?     1074
  Misses                                       ?      185
  Partials                                     ?        0

Flag
Coverage Δ

tests
85.30% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

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


first-network/scripts/*: Make Chaincode name configurable

Signed-off-by: Anoop Vijayan Maniankara<EMAIL_ADDRESS>

Hello guys, by parameterising the app name, makes this as very good helper/handy for package, install, approveformyorg, etc. of real applications.

Hi @maniankara - Thanks for your input.
I would have two comments on this PR

We are moving away from the older first-network sample to the test network sample. Improvements should be directed away from the first network and put into the test network instead.
The install script (deployCC.sh in the test network) should only be used for testing, or as an example for first time users to learn about the process. Fabric users should use the peer commands to package and deploy their own chaincode, rather than relying on the scripts provided by the samples. There is a PR open for a new deployCC tutorial that you can use to learn more about the process: https://github.com/hyperledger/fabric/pull/666

Thanks for your explanations @nikhil550.
Sure, based on your comments above, this PR becomes invalid.

Fabric users should use the peer commands to package and deploy their own chaincode, rather than relying on the scripts provided by the samples

About this, yes peer command/binary should be used. But if you look at it, due to the nature of the commands and params, it gets very much cumbersome even for an advance user to quickly test/deploy them. So definitely a wrapper/helper on top of those commands are needed. As this is a common problem, it should somehow exist within the Hyperledger umbrella itself.

@maniankara, @nikhil550 is right in saying that we're moving away from BYFN but your PR looks good to me and I'm happy to merge it. Thank you for your contribution.

Did anyone test this, there are multiple regressions in it when running against the default and not specifying your own name (though that also had easily introducible problems).
You read the NAME off the third input to installChaincode but didn't update any of the calls to installChaincode, and you don't read the name variable at all in the packageChaincode step or pass it in, and it hasn't been placed in the global namespace.
Will need to revert this as all byfn functionality is broken

@btl5037 @jyellick and others. I feel ashamed that I had pushed partially working commits to here. Now I fixed more things and managed to test this. Now it works well with byfn.sh.
I can write some justifications as in 'why' this is needed:

There is no easy wrapper to manage the channel/chaincode Lifecycle.
With this PR, after sourcing the necessary vars, my idea was to do this for my projects inside cli container:

source scripts/utils.sh
# to package myapp chaincode
packageChaincode 1 0 1 myapp
# install myapp chaincode
installChaincode 0 1 myapp
# approve for org
approveForMyOrg 1 0 1 myapp
....

As you see its very handy to use and this is currently missing.
Though the recommendation is to use the bare binary like peer lifecycle chaincode <ARGS> this is very much cumbersome to get things moving fast with those params like tls, etc.
Other approach is to duplicate the scripts from samples all over the users/repositories. I think you get the problem here.

Just to be clear, its we who are at fault here, our processes should catch problems, completely not your fault.
I'll take your new PR for a test run this afternoon, and thank you for the contribution

Sorry, I casually merged this on my way out without testing, in an effort to welcome a contributor. My bad.


Force containerised builds

Containerised builds are faster and cheaper to run for Travis. There's no
reason we shouldn't use them, and we do across existing projects already.

This fails because master is failing. Merge if you like, or hold off if you'd rather wait 'til tests are passing.

master is now fixed as of #4, so this is good for review.


Updating copyright headers to match current best practices

Signed-off-by: Maciej Kurc<EMAIL_ADDRESS>

The files inside https://github.com/SymbiFlow/vtr-xml-utils/tree/master/tests don't have the headers yet.

@daniellimws Added the license header to the test script
@mithro Should all xml files under the test directory also have a license? These are just data files for the tests.

There's also this in the checklist.

[ ] Add or update the AUTHORS files to have the text as shown at https://opensource.google/docs/releasing/authors/

@daniellimws I've added the AUTHORS file.

@mithro Looks like this can be merged already

Please rebase on master

@litghost @mithro Rebased.


erroe while compiling

hi i got this error when the script is compyling the videos i am runnig on windows 10

i have found a solution.
i changed the path to the file and created an empty file with the name of the missing file


Automated cherry pick of #6193: Fix that AntreaProxy could unintentionally delete conntrack

Cherry pick of #6193 on release-2.0.
#6193: Fix that AntreaProxy could unintentionally delete conntrack
For details on the cherry pick process, see the cherry pick requests page.

/skip-all

/skip-all


Update DOAJ info via API or daily dump

Great tool!
It seems like the DOAJ journal info is outdated:
https://github.com/Impactstory/oadoi/blob/ce1e51109151674e9a6c69b448cebacc9c19eb1e/oa_local.py#L167
Instead of using a data dump,  why not implement either the API https://doaj.org/api/v1/docs or download the csv on a daily basis?

Hi!  To help us prioritize -- have you run into trouble with bad results due to an outdated DOAJ entry?  I know it can happen, but am interested in knowing how much it actually does, so we can balance with other dev needs.   Thanks :)

Hi! It is not a big issue, and not a technical one. Guess, I should have
rather used your contact form.
I just wondered why recently published articles in the Journal of High
Energy Physics, an open access journal, were marked as "closed". The
journal has been listed in the DOAJ since 7 December 2016.
Maybe it helps, when you just make the date when you obtained the data
dumps you are using available in the docu to avoid confusion
On 18 January 2017 at 16:35, Heather Piwowar<EMAIL_ADDRESS>wrote:

Hi! To help us prioritize -- have you run into trouble with bad results
due to an outdated DOAJ entry? I know it can happen, but am interested in
knowing how much it actually does, so we can balance with other dev needs.
Thanks :)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Impactstory/oadoi/issues/14#issuecomment-273508634,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABn8RrFFxRdHtbI0UtFhQ-eVz_ET1PeAks5rTjFXgaJpZM4Lm-QW
.

Cool.  No problem at all, it's useful to hear.  Good thought on the dump date too.  Thanks Najko!

Is oaDOI still using data dumps from DOAJ? Here is an example for a "false positive" associated to a journal listed in DOAJ: http://api.oadoi.org/10.1051/epjconf/201714302020
Corresponding journal/series record in DOAJ: https://doaj.org/toc/2100-014X


Does not recover if batteries are fully discharged

I have three (3) of these RPi UPS boards, and they all have the same problem: If I shut down the RPi and disconnect the power and don't use it at all for a few weeks, when I reconnect the power there is one (1) blinking blue light every second, and ever third blink it tries to power the RPi on (red LEDs both on the UPS board and on the RPi) for about a second, and then the RPI shuts down, because there is not enough power to run it.  However, no matter how long I leave it plugged on, it does the same thing, and the batteries never charge enough to run the RPi, and it just keeps cycling the RPi on every three (3) seconds, and then turns it off, with one blue light continually blinking.  The only solution I have found is to physically remove the batteries (18650s) from the UPS board, charge them externally, then re-insert them into the UPS board.  Then it starts working again, but it is annoying/difficult to have to take the bottom piece off and charge the batteries externally.  Is there any way that I can leave the batteries in the UPS and get them to charge without removing them and having to charge them externally?

We do expect same issue, there are many posts about this.
We did already try Quck Charge, PD, Apple 140W and Powerbanks and nothing works and developer dont give any answer to this issue.

My method.
Remove baterries , Unmount UPS from Rpi. Put batteries back on ups dettached, and connect power cable to ups. and start charge :| workaround for people dont have extra charger

Thanks for the suggestion - but that is even more work than removing the batteries and charging them externally (and I have plenty of chargers).  So has anyone seen any response from Geeek Pi on this problem?
Something else that I have noticed ... not as significant, but adds to this problem ... is that leaving the UPS unplugged for a while ... even with the RPi turned "off" ... drains the battery a LOT faster than just leaving the 18650s on a shelf.  I'm not sure whether the UPS board is still trickling current off the batteries when "off"?  This is when the RPi has been shut down and there is no red light on the RPi board itself (which I think means that the RPi should not be drawing any current), and all of the lights on the UPS board are also off (including the blue LEDs).  Not sure if there is any work-around for this, other then (again!) physically removing the batteries?

well i think maybe to much people want this device to an "Big/hard-end" situation..
hmmm.. if you have to much power failures at home/place, maybe you need try solve that problem first, electricity stability. because this is not be to use like an as "Home"-UPS. this is more a away to prevent damaged data, when powerwall failed, device permits raspberry keep runing some time and send order to shutdown OS/Rpi correctly prevent SDcard/data corrupt/damaged....
That is my view point of this device utility.

you got a phone number from Putin so i can ask if he stops shoot rockets and i can remove then app UPS and the PI gateway which keeps the gateway online in case fiber and starlink is down.

🤣  lol .. let me see on my phone contacts... nop.
well maybe + easy to you to call to Zelens to leave the idea of corrupt the old politicals agreements (sovietic times) and crying for help to "nato" xD can i say, my country just send to ukraine all iron garbage in stock ... LOL system cleaning ;)
well, friend i sorry for your situation. :| i just can deliver you some ideas... try get an car battery, to keep rpi running, and with a battery charger you charge carbattery when electricity avaliable :\

Agh... I am facing this exact issue. Got 8 boards after testing one of these for a month. If only there was a way to tell the UPSplus not to power on the PI until battery is charged.
Will have to arrange a return of these boards, cause I cant charge these manually every time powers off for a week.

When using UPS Plus, the internal resistance of the battery will also consume the battery power when it is not in use. Additionally, because the chip is a DC-to-DC booster, the circuit is always connected once the battery is plugged in, and it will not be completely cut off. If you use it for a long time, it is recommended to connect it to a power supply. When the external power supply is disconnected, the Raspberry Pi will not be instantly powered off; it will have enough time to allow you to save data and shut down. This is the actual use case for UPS, rather than continuously supplying power with the battery until the battery is depleted and then connecting the power supply. The design of UPS includes low-voltage protection, such as shutting down the UPS when the voltage is below 3.7V.

I've got a unit I've bought in Dec 2024 and it still has this issue.
Is there an updated firmware I can try that fixes it?
Otherwise utterly useless and will be returned...


🐞 Dagger Functions: Progress output not formatted correctly on Windows

What is the issue?
The output when running a dagger functions command on Windows is not correctly formatted. When running with --progress plain, the output is as expected, but when running with --progress tty, it is adding D[85D[85D[85D85D right before the output and without a newline.
Dagger version
dagger v0.10.0 (registry.dagger.io/engine) windows/amd64
Steps to reproduce
Run dagger -m<EMAIL_ADDRESS>call hello

Running with the debug flag still has the extra characters, D[85D[85D[85D85D, but it shows all of the steps with hello, world! on the last line.
 Function!
 0.0s
        ✔ Function.withArg(
            defaultValue: "\"hello\""
            description: "Change the greeting"
            name: "greeting"
            typeDef: ✔ TypeDef.withOptional(optional: true): TypeDef! 0.0s
          ): Function! 0.0s
          ✔ TypeDef.withOptional(optional: true): TypeDef! 0.0s
        ✔ Function.withArg(
            defaultValue: "\"world\""
            description: "Change the name"
            name: "name"
            typeDef: ✔ TypeDef.withOptional(optional: true): TypeDef! 0.0s
          ): Function! 0.0s
        ✔ Function.withArg(
            description: "Encode the message in giant multi-character letters"
            name: "giant"
            typeDef: ✔ TypeDef.withOptional(optional: true): TypeDef! 0.0s
          ): Function! 0.0s
          ✔ TypeDef.withKind(kind: BOOLEAN_KIND): TypeDef! 0.0s
          ✔ TypeDef.withOptional(optional: true): TypeDef! 0.0s
        ✔ Function.withArg(
            description: "Make the message uppercase, and add more exclamation points"
            name: "shout"
            typeDef: ✔ TypeDef.withOptional(optional: true): TypeDef! 0.0s
          ): Function! 0.0s
        ✔ Function.withArg(
            description: "Custom container for running the figlet tool"
            name: "figletContainer"
            typeDef: ✔ TypeDef.withOptional(optional: true): TypeDef! 0.0s
          ): Function! 0.0s
          ✔ TypeDef.withObject(name: "Container"): TypeDef! 0.0s
          ✔ TypeDef.withOptional(optional: true): TypeDef! 0.0s
  ✔ Module.serve: Void 0.0s
  ✔ Module.name: String! 0.0s
✔ hello: Hello! 0.0s
✔ Hello.hello: String! 1.1s
  ✔ exec /runtime 1.1s
  ✔ connect 0.3s
  ┃ OK!
  ✔ loadFunctionCallArgValueFromID(
      id: FunctionCall.inputArgs: FunctionCallArgValue!
    ): FunctionCallArgValue! 0.0s
  ✔ loadFunctionCallArgValueFromID(
      id: FunctionCall.inputArgs: FunctionCallArgValue!
    ): FunctionCallArgValue! 0.0s

DEBUG: executing query="query{hello{hello}}"

hello, world!

Adding a comment to this issue since I suspect it's probably related, but I am testing dagger in windows right now and even just the help output has some weird artifacts:


typo found

"356" - Alerts – Have greater visibility into all the alerts across your Microsoft 356 environment,

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

ID: c5d8f70e-8492-f634-413b-8c5b71383eba
Version Independent ID: d63bbba4-ee59-81eb-a1ec-de343ac01599
Content: Overview of the Microsoft 365 security center - Microsoft 365 security
Content Source: microsoft-365/security/mtp/overview-security-center.md
Product: microsoft-365-enterprise
GitHub Login: @levinec
Microsoft Alias: ellevin

@challengelogic - Thank you for pointing this out.
PR #1509 has been created to fix and close this issue once the PR is merged.
Thank you and we appreciate your contribution to make the docs better!


Cannot log in to code-server running in docker with reverse proxy

I run code-server inside a docker container and put it behind a reverse proxy (for https)
When I access it through its ip address and in plain http I can log in but when i try to access it through the reverse proxy I get the log in screen but cannot log in (without an error message)

Hey, whats your actual setup? Maybe you can post your nginx/apache config file. Is your certificate issued for the exact domain you are using? @ttfan240 posted an nginx config that helped me with my setup https://github.com/cdr/code-server/issues/1211#issuecomment-575985054

It's very unlikely this is a bug in code-server, please ensure your reverse proxy is working correctly and definitely look at #1211


Clean up noisy detect-secrets errors

Having a linting tool that just generates noise is not helpful and leads developers to
ignore legitimate warnings. This cleans up noisy alerts from detect-secrets so that we
can pay attention to the ones that are worth noticing.
Pre-Flight checklist

[ ] Screenshots and design review for any changes that affect layout or styling
[ ] Migrations

[ ] Migration is backwards-compatible with current production code

[ ] Testing

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

[ ] Settings

[ ] New settings are documented and present in app.json
[ ] New settings have reasonable development defaults, if applicable
[ ] Opened issue for DevOps regarding necessary configuration changes to deployed environments

What are the relevant tickets?
N/A
What's this PR do?
Updates the pre-commit config to avoid alert fatigue and notify on legitimate secrets being committed
How should this be manually tested?
Run pre-commit run --all-files and verify that there are no secrets being reported. Add a new secret and run again to ensure it gets detected.
Where should the reviewer start?
.pre-commit-config.yaml
Any background context you want to provide?
We recently had an incident with legitimate credentials being accidentally pushed to GitHub. This aims to prevent that from happening in the future.
Screenshots (if appropriate)
(Optional)
What GIF best describes this PR or how it makes you feel?
(Optional)

Codecov Report

Merging #1425 (207d33f) into master (b0ff861) will increase coverage by 5.43%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1425      +/-   ##
==========================================
+ Coverage   89.02%   94.45%   +5.43%
==========================================
  Files         235      113     -122
  Lines        9822     3373    -6449
  Branches     1848      774    -1074
==========================================
- Hits         8744     3186    -5558
+ Misses        948      183     -765
+ Partials      130        4     -126

Impacted Files
Coverage Δ

static/js/lib/api/util.ts
77.77% <0.00%> (ø)

static/js/components/StudioList.tsx
87.09% <0.00%> (ø)

static/js/pages/MarkdownEditorTestPage.tsx
23.80% <0.00%> (ø)

...ic/js/lib/ckeditor/plugins/DisallowNestedTables.ts
12.50% <0.00%> (ø)

content_sync/conftest.py

videos/conftest.py

gdrive_sync/signals.py

websites/conftest.py

videos/threeplay_api.py

...agement/commands/markdown_cleaning/cleanup_rule.py

... and 116 more

Help us with your feedback. Take ten seconds to tell us how you rate us.


[python] Point-in-time child object access fails when using explicit write_timestamp

Describe the bug
When a single process attempts to access a DataFrame as a child of a Collection that was created by an earlier create() (using a independent context manager block) , the child access transiently fails to "see" the DataFrame if 1) a sibling collection was created before the DataFrame, and 2) a write_timestamp is explicitly provided via the SOMATileDBContext.
Apologies, but I can't whittle this down to a simpler case.  All of these conditions seem to be necessary.
To Reproduce
https://gist.github.com/atolopko-czi/26683305258a9f77a57ccc364916338f
Versions (please complete the following information):
TileDB-SOMA version: 0.0.5a9
Language and language version (e.g. Python 3.8, R 4.2.2): Py 3.10.6, but shouldn't matter
OS (e.g. MacOS, Ubuntu Linux): MacOS, of course
Additional context
Test code results look like:
test_case 0 FAILED: "Experiment has no item 'df'", read_timestamp=1676138942753, write_timestamp=100
test_case 1 PASSED, read_timestamp=18446744073709551615, write_timestamp=None
test_case 2 FAILED: "Experiment has no item 'df'", read_timestamp=18446744073709551615, write_timestamp=100

Sometimes they all pass, but 0 and 2 fails transiently, sometimes with only one of them failing. 😵💫
See reproduction test case, above, to interpret.
I am seeing that some of the TileDB groups and metadata files do not have the specified explicit write_timestamp.
❯ find /tmp/pit/ -regex '.*/__[0-9]+_.*'
# Test case 0, failure: The expt/df/__schema timestamp is NOT set to the specified write_timestamp
/tmp/pit/0/__meta/__100_100_2424680daedc4bb6839a5f6507335d89
/tmp/pit/0/expt/__meta/__100_100_3621c4e641b14a42950df4cb4e9b8696
/tmp/pit/0/expt/df/__meta/__100_100_40fd7a800ca041d3a4bb82d3d3c43bec
/tmp/pit/0/expt/df/__schema/__1676140033065_1676140033065_cb4dd07d67bf4635a6140c082e200b27
/tmp/pit/0/expt/causes_bug/__meta/__100_100_09451752238549b696401ea472a452d2
/tmp/pit/0/expt/__group/__100_100_82aab386278a47a6bcf328f8eb097e86
/tmp/pit/0/expt/__group/__100_100_fd6a676262ad4133811f81cfdc21dc53
/tmp/pit/0/__group/__100_100_933e497ede614591892874c34ff311a1

# Test case 1, success: All timestamps set to time-of-write (no write_timestamp specified)
/tmp/pit/1/__meta/__1676140033073_1676140033073_fc1aecdbb1574a2b84c2322f125c6200
/tmp/pit/1/expt/__meta/__1676140033073_1676140033073_da311b32d958414f91399cd0f4679f5f
/tmp/pit/1/expt/df/__meta/__1676140033078_1676140033078_c3dc56e7e4bf44e3abb7d5b4e8509cd6
/tmp/pit/1/expt/df/__schema/__1676140033077_1676140033077_03ec4c4615164b1eb1c51ded25692d6b
/tmp/pit/1/expt/causes_bug/__meta/__1676140033076_1676140033076_4bc1f602956041c298e4a275eafd6b66
/tmp/pit/1/expt/__group/__1676140033080_1676140033080_8c65f4dd95534ed2b1704ffb60466312
/tmp/pit/1/expt/__group/__1676140033077_1676140033077_b16ef49e894a4b4e89b00eea48917272
/tmp/pit/1/__group/__1676140033074_1676140033074_debf8fb463184a668b81350fb77d5e52

# Test case 2, failure: The expt/df/__schema timestamp is NOT set to the specified write_timestamp
/tmp/pit/2/__meta/__100_100_cd544a461243469d9aafb9429cb3c5c5
/tmp/pit/2/expt/__meta/__100_100_fa4ea4daf65d4b8ca4174fe8672465d7
/tmp/pit/2/expt/df/__meta/__100_100_a21a3122a0a542edba8e75ad0f9ac8bf
/tmp/pit/2/expt/df/__schema/__1676140033088_1676140033088_2a20345e92c343c9ba9639293968e521
/tmp/pit/2/expt/causes_bug/__meta/__100_100_f65e84fa88ff4a7da060ba2183e87680
/tmp/pit/2/expt/__group/__100_100_77e752638a194b918bc8b95c053a7bd0
/tmp/pit/2/expt/__group/__100_100_ba9e76025300461a958ad39f8e199bcc
/tmp/pit/2/__group/__100_100_94d46c8958604aecb032c493dca07092

@atolopko-czi Looking into this...one quick clarification of "transient": does this mean that

the read initially fails, but the same read on the same object would succeed after enough time has passed?
less specifically it's "nondeterministic", just sometimes the test succeeds and other times it fails?

I've distilled @atolopko-czi's example using TileDB-Py only:
https://gist.github.com/mlin/233f3cef28027e20ced171843f3395da
Observations:

An additional necessary condition is that causes_bug and df are added to the group in two separate write operations, with the tiledb.Group handle reopened in between them. (Our tiledbsoma.Collection._set_element indeed reopens our tiledb.Group handle.)
The failure rate is 50%.

Findings (80% confidence):
This is probably a pathological case of of TileDB ordering the two writes randomly (=> 50% failure rate) when they share the same timestamp. Although we previously discussed that pitfall, we didn't appreciate that the two writes each adding distinct group elements still aren't commutative: the first write we do evidently says "the contents of the group are causes_bug", not "add causes_bug to the contents of the group."
Further supporting this, add causes_bug2 to the collection, with a reopened tiledb.Group handle, after adding causes_bug and before adding df. Then the failure rate is 67%.

interest @thetorpedodog @nguyenv @Shelnutt2, this is looking gnarly

one quick clarification of "transient": does this mean that

the read initially fails, but the same read on the same object would succeed after enough time has passed?

Tested, and it appears a 2nd read attempt always succeeds.

less specifically it's "nondeterministic", just sometimes the test succeeds and other times it fails?

for the the first read, it's nondeterministic (and the second always succeeds).

Although we previously discussed that pitfall, we didn't appreciate that the two writes each adding distinct group elements still aren't commutative: the first write we do evidently says "the contents of the group are causes_bug", not "add causes_bug to the contents of the group."

The writes to groups need to be done in a batch at the end. I thought this was made explicitly clear during discussions around opening and closing. We must open for write once at the group level. We should not be opening and closing for each item, that violates the open/close principals. This is an implementation bug, and we should fix this ASAP.

Reopening the group write handle is itself a workaround for a different sharp edge in the group API, needing two transactions to replace an existing key. To get away from it, we might need to disallow replacing an existing key in SOMACollection for now. That'd be fine by me (can relax at a future date), but any POV @thetorpedodog @johnkerl? (historical version of the workaround for reference -- rereading it, I'm not sure the new version covers all the cases that the old version did, particularly wrt timestamp sharing within the same millisecond)
Even then however, we wouldn't be preventing the end user/developer from reopening the SOMACollection themselves between their writes, for whatever reason they might choose to do that -- for example, to delete and then replace an existing key if we've disallowed doing so in one step. Considering that we've tripped on this ourselves within 1 week, it seems likely to burn others eventually beyond our control!
To clarify @Shelnutt2, are we expecting that these tiledb.Group behaviors we're working around are permanent in the foreseeable, and defining any burns from them as user error? Or can we think more in terms of temporary workarounds? That'd be helpful to know for planning. Thx

@atolopko-czi It's very interesting that a second read succeeds after the first one fails; that's not predicted by my theory. Would you mind showing the exact code for that just so I can see details of are handles getting reopened etc.?
In addition to the write ordering, there is indeed caching in the collection implementation which may also be contributing.

@atolopko-czi It's very interesting that a second read succeeds after the first one fails; that's not predicted by my theory.

Revisited the test code and it was a false result. Failing reads fail consistently, and succeeding reads succeed on the first attempt always.

To summarize some discussion we've been having:

Currently, the code flushes writes out on every collection operation. This is not needed or desired.
Most common operations—accessing existing members, creating new not-yet-present members—are allowed. In these cases flushing should never be necessary.
The cases that are forbidden—changing the URI of an existing member, deleting a newly-added member, and a few others—are fairly uncommon.

We can either minimize flushing by only doing so when performing an otherwise-forbidden operation (introducing potential consistency bugs) or simply raise an error.
We would probably want to implement something similar with metadata, since the semantics there are similar.

@thetorpedodog SGTM, good point about the metadata. Do you want to take a crack at this or shall I? (just to decide- I'm neutral)
Suggest also we pay attention to the likelihood that a user finds herself blocked from the replace operation, so reopens SOMACollection herself to do the 2-step update and generates this problem. We can simply define that as user error for now, but we should at least provide clear signage around the nondeterministic hazard area.

Since I'm thinking of using the same solution as in metadata and would have to update that anyways, I can take it.

@thetorpedodog one further thought--

We can either minimize flushing by only doing so when performing an otherwise-forbidden operation (introducing potential consistency bugs) or simply raise an error.

We need to keep in mind that any series of multiple write+flush ops sharing the same timestamp will be applied in literally random order. Needless to say, that's difficult to reason about intuitively, what might & might not be commutative under such randomization. So IMO, we'd better strongly err on the side of raising an error when asked to go down that path!


feat: Encapsulate logic to grow stable memory inside StableWriter

Description
I think this improves upon the changes made in my previous PR (#240).
Instead of exposing grow_then_write_stable_bytes, I think this logic should simply be encapsulated inside StableWriter (which is actually where it was before #240).
So this PR simply moves the logic contained in grow_then_write_stable_bytes back into the body of StableWriter.write.
This keeps the API clean by only exposing the raw ic0 methods alongside StableWriter and StableReader which orchestrate over these methods.
How Has This Been Tested?
I have deployed canisters locally and have upgraded them a few times while added data between each upgrade.
On the replica dashboard I can see the stable_memory_size grow after each upgrade.
Checklist:

[x] The title of this PR complies with Conventional Commits.
[ ] I have edited the CHANGELOG accordingly.
[ ] I have made corresponding changes to the documentation.

Closing this PR. Am working on a better solution.

#245 contains a better solution.


Add new rule E3018 to flag unwanted properties when a certain value exists

Issue #, if available: https://github.com/aws-cloudformation/cfn-python-lint/pull/1746#issuecomment-714670093
Description of changes:

New rule E3018 to alert when a property isn't needed when another property has a certain value

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

For tracking after this PR is merged I will evaluate if these rules can be deleted and moved to this rule.  This is a copy from #1746 comment but these rules more closely align with this new rule.
https://github.com/aws-cloudformation/cfn-python-lint/blob/master/src/cfnlint/rules/resources/rds/AuroraScalingConfiguration.py
https://github.com/aws-cloudformation/cfn-python-lint/blob/master/src/cfnlint/rules/resources/rds/AuroraDBInstanceProperties.py
https://github.com/aws-cloudformation/cfn-python-lint/blob/master/src/cfnlint/rules/resources/dynamodb/BillingMode.py


Updated confluence plugin supported versions

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


MenuItem Policy

Version information

Laravel: v6.0.3
Voyager: v1.2
PHP: 7.3
Database: [type] [version] (e.g. MySQL 8.0)

Description of problem

I want to over-ride MenuItem Policy. Is it any way to over-ride this?

Voyager 1.2 does not support laravel 6. There's an issue where composer is allowing it, but there are known issues.  1.3 will fix those issues and add official support.
Also, what you're asking is a question, not a bug report or feature request.  Questions are best asked on slack since it often leads to a discussion.

But to answer your question, yes, just create a new policy class, extend the original, and register it in a service provider like you would in any other laravel app


POC: DO NOT MERGE (speech-to-text) - Whisper

This pull request contains a quick proof of concept to showcase how easy it is to add a new pipeline. I added the speech-to-text pipeline in this example using openai/whisper-large-v3. The beutifull thing about this pipeline is that it can be cold served since model load times are < 3s. Further it only requires 6.5 GB Vram and therefore can be done on lower VRam cards.
You can test it out using audio samples from https://audio-samples.github.io/ and starting up a pipeline using the Runner documentation. You can then execute the pipeline running on https://localhost:8000/docs.

[!WARNING]
NOT PRODUCTION READY DO NOT MERGE.

Replaced by https://github.com/livepeer/ai-worker/pull/103.