Improve Download Memory Usage

Description of changes:
Tokio.spawn doesn't respect the spawn order, which can result in us downloading the first num_concurrency parts in random order. For a workload of 5GB * 100 files, this can lead to very high memory usage, as seen in the diagram below. This PR refactors the exact part to be determined only once the task has been scheduled.
Uploads can also have a similar issue where we read too many parts into memory. To fix that, we will need to refactor our scheduler to be smarter so that we only read the part when we have the permit. (Created: https://github.com/awslabs/aws-s3-transfer-manager-rs/issues/60)

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

What's this do to throughput for download? In particular the warmup/first few runs?
It didn’t help much since we were only doing 125 out of 3840 parts out of order.


[ENH] Results lists and loading

this changes the results loaders to use http://timeseriesclassification.com because there is a current issue with the security certificate after website transfer. Also corrects a typo in the univariate2015 list.

Should maybe make an issue so we remember to change it back

I actually need to check the data loaders too, may as well do it on this PR

I actually need to check the data loaders too, may as well do it on this PR

actually dont need to do the data loaders


Support Printing Presentations

Hi
I've added a basic print stylesheet so it's possible to print a presentation, which I needed to convert a presentation to PDF.
I also added a check to the key press event handler so it doesn't open presentation mode when cmd or ctrl is pressed — in Chrome this stopped the print menu from opening, so now it only opens presentation mode when cmd & ctrl aren't pressed.
Thanks for the awesome library; it works way better than anything else I've used!

Omg, so much yes. Thanks for contributing.


"can not find script.sh and version.sh" bugs removed

hi @kiran4399 run as:
./tools/rebuild.sh
./tools/rebuild_deb.sh

Regards,


Navbar dropdown can't render correctly

Have you read the Contributing Guidelines on issues?

[x] I have read the Contributing Guidelines on issues.

Prerequisites

[X] I'm using the latest version of Docusaurus.
[X] I have tried the npm run clear or yarn clear command.
[X] I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
[X] I have tried creating a repro with https://new.docusaurus.io.
[X] I have read the console error message carefully (if applicable).

Description
I install the latest version of Docusaurus with the following steps:

npx create-docusaurus@latest my-website classic --typescript

copy intro.md under docs then rename in2.nd

modify docusaurus.config.ts  like this

navbar: {
      title: 'My Site',
      logo: {
        alt: 'My Site Logo',
        src: 'img/logo.svg',
      },
      items: [
        {
          label: 'Module',
          type: 'dropdown',
          position: 'right',
          items: [
            {
              label: 'Community Hub',
              type: 'doc',
              docId: 'intro',
            },
            {
              label: 'Community Hub2',
              type: 'doc',
              docId: 'in2',
            },
          ],
        },
      ],
    },

execute npm start. see the result like this. all the dropdown item is actived

Reproducible demo
No response
Steps to reproduce
I install the latest version of Docusaurus with the following steps:

npx create-docusaurus@latest my-website classic --typescript

copy intro.md under docs then rename in2.nd

modify docusaurus.config.ts  like this

navbar: {
      title: 'My Site',
      logo: {
        alt: 'My Site Logo',
        src: 'img/logo.svg',
      },
      items: [
        {
          label: 'Module',
          type: 'dropdown',
          position: 'right',
          items: [
            {
              label: 'Community Hub',
              type: 'doc',
              docId: 'intro',
            },
            {
              label: 'Community Hub2',
              type: 'doc',
              docId: 'in2',
            },
          ],
        },
      ],
    },

execute npm start. see the result like this. all the dropdown item is actived

Expected behavior
only one item is selected. just like this

Actual behavior
all the item are selected
Your environment

Public source code:
Public site URL:
Docusaurus version used:
Environment name and version (e.g. Chrome 89, Node.js 16.4):
Operating system and version (e.g. Ubuntu 20.04.2 LTS):

Self-service

[ ] I'd be willing to fix this bug myself.

This behavior is documented here: https://docusaurus.io/docs/next/api/themes/configuration#navbar-doc-link

It will get the class navbar__link--active as long as you browse a doc of the same sidebar.

You show a React Native website screenshot, which actually leverages that behavior:
https://github.com/facebook/react-native-website/blob/main/website/docusaurus.config.js#L247
          {
            label: 'Development',
            type: 'dropdown',
            position: 'right',
            items: [
              {
                label: 'Guides',
                type: 'doc',
                docId: 'getting-started',
              },
              {
                label: 'Components',
                type: 'doc',
                docId: 'components-and-apis',
              },
              {
                label: 'APIs',
                type: 'doc',
                docId: 'accessibilityinfo',
              },
              {
                label: 'Architecture',
                type: 'doc',
                docId: 'architecture-overview',
                docsPluginId: 'architecture',
              },
            ],
          },

For example, you'll notice that the "API" dropdown navbar item remains highlighted for all those URLs:

https://reactnative.dev/docs/accessibilityinfo
https://reactnative.dev/docs/alert
https://reactnative.dev/docs/animated

If you don't want this behavior, you can use a regular {to: "/docs/intro"} navbar link item instead.


refactor(ci): switch to ubuntu-24.04 runner

Motivation

https://github.com/actions/runner-images/issues/10636 is the source (to preclude linking to it)

There is a migration happening in github where a bunch of tools have been deleted in u24.04 so this is to test if our tests still run.

The question now would be; should we be pinning to ubuntu-24.04 anyway rather than 'latest'
Changes

switch to explicit ubuntu-24.04 image

Well it works, so we'll be fine come December.


feat: Implement API to return supported authentication methods, close…

…s #749
Signed-off-by: Petu Eusebiu<EMAIL_ADDRESS>
What type of PR is this?

Which issue does this PR fix:
What does this PR do / Why do we need it:
If an issue # is not available please add repro steps and logs showing the issue:
Testing done on this change:

Automation added to e2e:

Will this break upgrades or downgrades?
Does this PR introduce any user-facing change?:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

ideally, this URI should only accept localhost connections

rebase this pls

done

ok, will fix

Superseded by https://github.com/project-zot/zot/pull/1198


Got "Exec format error" while connecting to remote EGH repo using node-red 0.18.3

What are the steps to reproduce?

Created a local project in node-RED
Created a remote <git-repo>
Local install own <git-host> .ssh keys into $HOME/.ssh
Commit history
Added dependencies
Manage remote branch
Click on Remote: none
Error panel:  Authentication required for repository: git@<git-host>:<git-user>/<git-repo>.git

What happens?
'{ Error: ssh_askpass: exec(/data/red/node_modules/node-red/red/runtime/storage/localfilesystem/projects/git/node-red-ask-pass.sh): Exec format error
Host key verification failed.
fatal: Could not read from remote repository.

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

    at ChildProcess.<anonymous> (/data/red/node_modules/node-red/red/runtime/storage/localfilesystem/projects/git/index.js:48:27)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:886:16)
    at Socket.<anonymous> (internal/child_process.js:342:11)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at Pipe._handle.close [as _onclose] (net.js:497:12)
  stdout: '',
  stderr: 'ssh_askpass: exec(/data/red/node_modules/node-red/red/runtime/storage/localfilesystem/projects/git/node-red-ask-pass.sh): Exec format error\r\nHost key verification failed.\r\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n',
  code: 'git_auth_failed',
  remote: 'origin' }'

What do you expect to happen?

Connect to remote repo with provided ssh keys
Commit to remote repo

Please tell us about your environment:

[ ] Node-RED version: 0.18.3
[ ] node.js version: 6.10.3
[ ] npm version: 3.10.10
[ ] Arch: armhf
[ ] Platform: Docker 17.09-1-ce
[ ] OS: Alpine Linux 3.7
[ ] OS libs: git@openssh-client@mainEdge [7.6_p1-r1], openssh-keygen@mainEdge [7.6_p1-r1], openssh-askpass@testEdge [7.6_p1-r1], nodejs@main36 [6.10.3-r1], nodejs-npm@main36 [6.10.3-r1], git [2.15.0-r1]
[ ] Browser: FF 52.6.0 (Build:<PHONE_NUMBER>2319)

What tried:

enter docker container command line with docker exec ...
change to /data/red/projects/<git-repo>
execute git push origin master
Accept host key with yes <------------- guess here is the problem
got 'Counting objects: 10, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (9/9), done.
Writing objects: 100% (10/10), 2.52 KiB | 322.00 KiB/s, done.
Total 10 (delta 2), reused 0 (delta 0)
remote: Resolving deltas: 100% (2/2), done.
To <git-host>:<git-user>/<git-repo>.git

[new branch]      master -> master'

execute git status
got 'git status
On branch master
nothing to commit, working tree clean'
Re-login to node-RED UI
go to commit history
Manage remote branch
Found Remote: origin/master
Read your repository is up to date.

Investigating a bit deeper and, I guess the problem is located in known_hosts there is no host entry. If I add the EGH host entry it works. I tried to change node-red-ssh.sh adding -o "StrictHostKeyChecking=no" and -o "UserKnownHostFile=/dev/null" had no success.

Is this image based on our node-red-docker images or one you've created yourself?

I created an own alpine 3.7 docker image, should I observe something special?

If you have a docker file you can share then it may help ensure we try to recreate in as close a copy of your environment as possible.
To be clear, we don't hit this error in our own docker image, so would like to understand what is different about yours.

I had the same problem and I managed to solve problem by logging in to docker container and issuing command ssh<EMAIL_ADDRESS>-vvvv and answering yes to question about adding host. That added github to known_hosts list.

I am now getting a similar problem in the post 1.0 upgrade. I use docker. I mount ssh known hosts into the container with a read only volume from the host like so which used to work fine:
-v /home/dockerUser/.ssh/known_hosts:/usr/src/node-red/.ssh/known_hosts:ro
Keys are known good, and can connect as user from host to the git repo with
git clone -c core.sshCommand="ssh -i /path/to/my/pk"<EMAIL_ADDRESS>

Same issue for me with official nodered/node-red:1.0.3-12 docker image.
Trace log before manually adding entry to known_hosts
27 Feb 18:18:34 - [trace] git["--version"]
27 Feb 18:18:36 - [trace] git["config","--global","user.name"]
27 Feb 18:18:36 - [trace] git["config","--global","user.email"]
27 Feb 18:18:37 - [trace] git init: {"version":"2.24.1"}
27 Feb 18:18:37 - [info]

Welcome to Node-RED
===================

27 Feb 18:18:37 - [info] Node-RED version: v1.0.3
27 Feb 18:18:37 - [info] Node.js  version: v12.16.1
27 Feb 18:18:38 - [info] Linux 4.19.88 x64 LE
27 Feb 18:18:57 - [info] Loading palette nodes
27 Feb 18:19:02 - [debug] Module: node-red-node-rbe 0.2.8
27 Feb 18:19:02 - [debug]         /usr/src/node-red/node_modules/node-red-node-rbe
27 Feb 18:19:02 - [debug] Module: node-red-node-tail 0.0.3
27 Feb 18:19:02 - [debug]         /usr/src/node-red/node_modules/node-red-node-tail
27 Feb 18:19:50 - [info] Settings file  : /data/settings.js
27 Feb 18:19:50 - [info] Context store  : 'default' [module=memory]
27 Feb 18:19:50 - [info] User directory : /data
27 Feb 18:19:50 - [warn] No active project : using default flows file
27 Feb 18:19:50 - [info] Flows file     : /data/flows.json
27 Feb 18:19:50 - [info] Creating new flow file
27 Feb 18:19:50 - [debug] loaded flow revision: d751713988987e9331980363e24189ce
27 Feb 18:19:50 - [debug] red/runtime/nodes/credentials.load : no user key present
27 Feb 18:19:50 - [debug] red/runtime/nodes/credentials.load : no default key present - generating one
27 Feb 18:19:50 - [debug] red/runtime/nodes/credentials.load : keyType=system
27 Feb 18:19:50 - [warn]

---------------------------------------------------------------------
Your flow credentials file is encrypted using a system-generated key.

If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.

You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
---------------------------------------------------------------------

27 Feb 18:19:51 - [info] Server now running at http://<IP_ADDRESS>:1880/
27 Feb 18:19:51 - [trace] runtime event: {"id":"runtime-state","retain":true}
27 Feb 18:19:51 - [trace] runtime event: {"id":"runtime-deploy","payload":{"revision":"d751713988987e9331980363e24189ce"},"retain":true}
27 Feb 18:19:51 - [info] Starting flows
27 Feb 18:19:51 - [debug] red/nodes/flows.start : starting flow : global
27 Feb 18:19:52 - [trace] [flow:global] start flow
27 Feb 18:19:52 - [trace] runtime event: {"id":"runtime-state","retain":true}
27 Feb 18:19:52 - [info] Started flows
27 Feb 18:20:02 - [trace] comms.open FDX0jUbBmgK0UTqZML1oZhL827BS0CXn
27 Feb 18:20:10 - [trace] comms.close FDX0jUbBmgK0UTqZML1oZhL827BS0CXn
27 Feb 18:20:13 - [trace] comms.open QzmTLsmH44zEF9wCQCCGeURQk3J1MSQT
27 Feb 18:20:45 - [trace] ssh-keygen[bitbucket,/data/projects/.sshkeys/__default_bitbucket,my@email.com,4096,hasPassword?false]
27 Feb 18:24:00 - [trace] runGitCommandWithSSHCommand {"key_path":"/data/projects/.sshkeys/__default_bitbucket","passphrase":""}
27 Feb 18:24:00 - [trace] git["clone","git@bitbucket.org:my-org/node-red.git","."]
27 Feb 18:24:00 - [debug] git -c credential.helper= clone git@bitbucket.org:my-org/node-red.git .
27 Feb 18:24:00 - [debug] [err] Cloning into '.'...
27 Feb 18:24:06 - [debug] [err] ssh_askpass: exec(/usr/src/node-red/node_modules/@node-red/runtime/lib/storage/localfilesystem/projects/git/node-red-ask-pass.sh): Exec format error
27 Feb 18:24:06 - [debug] [err] Host key verification failed.
27 Feb 18:24:06 - [debug] [err] fatal: Could not read from remote repository.
27 Feb 18:24:06 - [debug] [err]
27 Feb 18:24:06 - [debug] [err] Please make sure you have the correct access rights
27 Feb 18:24:06 - [debug] [err] and the repository exists.
27 Feb 18:24:06 - [debug] rc=128

Trace log after adding entry to known_hosts:
27 Feb 18:26:37 - [trace] runGitCommandWithSSHCommand {"key_path":"/data/projects/.sshkeys/__default_bitbucket","passphrase":""}
27 Feb 18:26:37 - [trace] git["clone","git@bitbucket.org:my-org/node-red.git","."]
27 Feb 18:26:37 - [debug] git -c credential.helper= clone git@bitbucket.org:my-org/node-red.git .
27 Feb 18:26:37 - [debug] [err] Cloning into '.'...
27 Feb 18:26:42 - [debug] rc=0
27 Feb 18:26:42 - [trace] git["remote","-v"]
27 Feb 18:26:43 - [trace] git["rev-list","HEAD","--count"]
27 Feb 18:26:44 - [trace] git["ls-files","--cached","--others","--exclude-standard"]
27 Feb 18:26:44 - [trace] git["status","--porcelain","-b"]
27 Feb 18:26:46 - [trace] git["remote","-v"]
27 Feb 18:26:46 - [trace] git["rev-list","HEAD","--count"]
27 Feb 18:26:47 - [trace] git["ls-files","--cached","--others","--exclude-standard"]
27 Feb 18:26:47 - [trace] git["status","--porcelain","-b"]
27 Feb 18:26:48 - [info] Setting active project : node-red
27 Feb 18:26:49 - [info] Flows file     : /data/projects/node-red/flow.json
27 Feb 18:26:49 - [info] Stopping flows
27 Feb 18:26:49 - [debug] red/nodes/flows.stop : stopping flow : global
27 Feb 18:26:49 - [trace] [flow:global] stop flow
27 Feb 18:26:49 - [info] Stopped flows
27 Feb 18:26:49 - [debug] loaded flow revision: d751713988987e9331980363e24189ce
27 Feb 18:26:49 - [debug] red/runtime/nodes/credentials.load : using active project key
27 Feb 18:26:49 - [debug] red/runtime/nodes/credentials.load : keyType=project
27 Feb 18:26:49 - [trace] runtime event: {"id":"runtime-state","retain":true}
27 Feb 18:26:49 - [info] Starting flows
27 Feb 18:26:49 - [debug] red/nodes/flows.start : starting flow : global
27 Feb 18:26:49 - [trace] [flow:global] start flow
27 Feb 18:26:49 - [trace] runtime event: {"id":"runtime-state","retain":true}
27 Feb 18:26:49 - [info] Started flows
27 Feb 18:26:49 - [trace] runtime event: {"id":"runtime-deploy","payload":{"revision":"d751713988987e9331980363e24189ce"},"retain":true}
27 Feb 18:26:49 - [trace] runtime event: {"id":"project-update","payload":{"project":"node-red","action":"loaded"}}
27 Feb 18:26:49 - [trace] git["rev-list","HEAD","--count"]
27 Feb 18:26:50 - [trace] git["log","--format=sha: %H%nparents: %p%nrefs: %D%nauthor: %an%ndate: %ct%nsubject: %s%n-----","-n 20"]
27 Feb 18:26:50 - [trace] git["rev-list","HEAD","--count"]
27 Feb 18:26:52 - [trace] git["ls-files","--cached","--others","--exclude-standard"]
27 Feb 18:26:53 - [trace] git["status","--porcelain","-b"]
27 Feb 18:28:16 - [trace] comms.close QzmTLsmH44zEF9wCQCCGeURQk3J1MSQT
27 Feb 18:28:18 - [trace] comms.open EAAKfhsH2qAqiRXtiW0Y49AvEvt1TiZy
27 Feb 18:28:21 - [trace] git["rev-list","HEAD","--count"]
27 Feb 18:28:22 - [trace] git["log","--format=sha: %H%nparents: %p%nrefs: %D%nauthor: %an%ndate: %ct%nsubject: %s%n-----","-n 20"]
27 Feb 18:28:23 - [trace] git["rev-list","HEAD","--count"]
27 Feb 18:28:25 - [trace] git["ls-files","--cached","--others","--exclude-standard"]
27 Feb 18:28:26 - [trace] git["status","--porcelain","-b"]
27 Feb 18:28:31 - [trace] git["branch","-vv","--no-color"]

Seems the issue it has returned with 1.0.6. There is not problem with 1.0.4.
"Host key verification failed.
The repository host key could not be verified. Please update your known_hosts file and try again."
If I will add record to known_hosts the issue disappear. But this is container. There shouldn't be any "known_hosts" files.
This problem appeared with this commit:20f97d0d136310a994b185b0de13ea6da88b9904
I use docker container with Debian 10 (buster) and git 2.20.1 from official repository. I've even tried latest git version 2.27.0 built form scratch, but have no success.

@eitijupaenoithoowohd the commit you point at changes how we report the error back to the editor. It doesn't change how we try to run the commands themselves. Before this commit, we would either silently fail or report a generic error back to the user. This commit means we at least tell the user it was a host-key issue.
If you can provide details steps to reproduce, that would be helpful. But the reality is, we rely on the known_hosts file being updated by the user - it isn't something we can do ourselves given the many different ways it could be done on different platforms.

Ok. I shall prepare detailed steps to reproduce.

I have this exact same issue.

Ironically, my original problem seems to have been solved somewhere along the way as I can push from the node-red interface now, and enter cert password, etc. along the way just fine. Just FYI. Nothing has changed in terms of how I mount known_hosts into the docker container in my comment above.


Fix color value text overflow effect (fix #20)

This PR propose to fix mentioned in the title issue by limiting color value text width and add text overflow effect

@Ev1ch Thanks for fixing this. I'll try to take a better look and test it sometime in the next week.

@Ev1ch Thanks for fixing this. I'll try to take a better look and test it sometime in the next week.

Thank you for the response.
I was glad to help. This PR was created just to show the easiest way to solve the mentioned issue, so if there are any solutions with better UI/UX, just let me know.

@Ev1ch It looks like the color value is getting cut off in a weird way for me with this fix.

Maybe for UI, you could do something more like the following?

There are two aspects at play here:

When the color list is collapsed, have the text for the label cut off or with the ellipsis like you intended but still see the down arrow.
And then when the color list is expanded, wrap the text so you can still see it all.


[CLOSED] Skipping impossible guard condition/ Skipping certain macro expansions

 Issue by lastland
Wednesday Nov 29, 2017 at 16:12 GMT
Originally opened as https://github.com/antalsz/hs-to-coq/issues/48

Data.Set contains the following definition:
elem = go
  where STRICT_1_OF_2(go)
        go _ Tip = False
        go x (Bin _ y l r) = x == y || go x l || go x r

where STRICT_1_OF_2 is a macro defined as:
#define STRICT_1_OF_2(fn) fn arg _ | arg `seq` False = undefined

It is used to improve performance by avoiding unneeded laziness, but this does not matter in the translated Coq version, so I would like to skip this macro expansion, as expanding that macro raises the complexity of the function, and introduces undefined.
An alternative way to handle this problem is that if we have some heuristics to tell the condition here (arg `seq` False) always evaluates to False, we can ignore this branch during translation.

 Comment by lastland
Wednesday Nov 29, 2017 at 16:15 GMT

@nomeata suggested to pass something like --ghc -D"STRICT_1_OF_2=-- " to the tool, but it does not seem to work. It looks like the definitions in containers.h will overwrite what we passed to ghc:
containers/include/containers.h:44:9: error:
     warning: 'STRICT_1_OF_2' macro redefined [-Wmacro-redefined]
#define STRICT_1_OF_2(fn) fn arg _ | arg `seq` False = undefined
        ^

<built-in>:6:9: error:  note: previous definition is here
#define STRICT_1_OF_2 --
        ^
1 warning generated.

 Comment by nomeata
Thursday Nov 30, 2017 at 15:59 GMT

This currently does not really block the translations, does it? I.e. it is ugly to have this pattern and the undefined, but you are not blocked due to it?

 Comment by lastland
Thursday Nov 30, 2017 at 16:21 GMT

That's right. I'm not blocked.

On 30 Nov 2017, at 10:59 AM, Joachim Breitner<EMAIL_ADDRESS>wrote:
This currently does not really block the translations, does it? I.e. it is ugly to have this pattern and the undefined, but you are not blocked due to it?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

 Comment by nomeata
Sunday Apr 08, 2018 at 03:41 GMT

An alternative way to handle this problem is that if we have some heuristics to tell the condition here (arg seq False) always evaluates to False, we can ignore this branch during translation.

I believe we are doing this since a while now, closing.


Define UX for declaring a repo level source-build dependency on runtime

I don't know how to do this.  What is source-build metadata is needed here?
    <Dependency Name="Microsoft.NETCore.App.Ref" Version="8.0.0-alpha.1.22611.2">
      <Uri>https://github.com/dotnet/runtime</Uri>
      <Sha>cfdf0f67485ae41f4454a687b1e01ccb32e5e799</Sha>
    </Dependency>

The referenced package is in the main runtime intermediate, so it should be retrieved with the following declaration:
    <Dependency Name="Microsoft.NETCore.App.Ref" Version="8.0.0-alpha.1.22611.2">
      <Uri>https://github.com/dotnet/runtime</Uri>
      <Sha>cfdf0f67485ae41f4454a687b1e01ccb32e5e799</Sha>
	  <SourceBuild RepoName="runtime" ManagedOnly="false" />
    </Dependency>

Also, since this is a runtime intermediate, the RID should be specified when triggering the build

[Triage] This US issue here is that a target rid must be specified and it may not be specified.  More importantly, it must be the portable linux rid - linux-x64.  We should handle this within the ARPOW infrastructure.

This was resolved via https://github.com/dotnet/arcade/issues/12222, closing


localStorage is not saving data when user redirect the page

The information saved in localStorage is not being persistent when the user is redirect. Exemple, when the user login, he's redirected to '/' link, but instead the localStorage save the information, it is empty

Nevermind, it was a function called in navbar that should be an arrow funtion instead.


Should I add Wikipedia

Btw which category?

To be honest - I don't know. I'm just a regular Wikipedia user when I'm searching in my SearXNG for it. Does it have a dark theme though?

White theme
reading theme
dark theme
black theme
image dimming

Hmm, sure? I'm thinking about just ## Wikipedia section, because everyone knows what Wikipedia is.


nixos/duosec: Fixed hyperlink in description

Description of changes
Fixed hyperlink in description of option security.duosec.groups: <link xlink:href=destination>link-text</link>
Things done

Built on platform(s)

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

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

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

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

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

[x] Fits CONTRIBUTING.md.

sorry for previous PR m)

Never mind, this is a intended.


Problems with go 1.5

Hi,
I'm trying to create a Debian package of your application. I'm getting the following error:
$ dh-make-golang github.com/runabove/sail
2015/10/25 17:53:59 Downloading "github.com/runabove/sail/..."
go get: 109.99 MiBpackage github.com/runabove/sail/vendor/github.com/inconshreveable/go-update
	imports github.com/inconshreveable/go-update/internal/binarydist: use of internal package not allowed
package github.com/runabove/sail/vendor/github.com/inconshreveable/go-update
	imports github.com/inconshreveable/go-update/internal/osext: use of internal package not allowed
2015/10/25 17:55:01 Could not create a tarball of the upstream source: exit status 1

It seems it's related to the go version installed. It DOESN'T work on a system with:
$ dpkg -l | grep golang-go
ii  golang-go                        2:1.5.1-1                    i386         Go programming language compiler, linker, compiled stdlib

It works:
$ dpkg -l | grep golang-go
ii  golang-go                      2:1.3.3-1                   i386         Go programming language compiler

Crawling at google reveals, it may have something todo with:
https://golang.org/cmd/go/#hdr-Internal_Directories
https://golang.org/s/go14internal
Thanks for looking into this, Jan.

sail makes use of the experimental vendoring feature introduced in golang 1.5. Can you make sure to export GO15VENDOREXPERIMENT=1 in the build process to enable vendoring ?
You'll find build instructions in the "Hacking" section of the readme (https://github.com/runabove/sail#hacking). .travis.yml (https://github.com/runabove/sail/blob/master/.travis.yml) may contain valuable examples too.
Does it help ?

Ah ... that was a good point and the one who reads your https://github.com/runabove/sail/blob/master/README.md#hacking will be not surprised. Anyways .. looks like there are many unpackaged dependencies in Debian missing.
So it seems not worse to package and maintain them all when you are providing a statical build binary which also works fine. :-)


Why it is faster

"This second version is more efficient with longer sequences in scenarios where the number sought is closer to the end of the array."

It is not clear why. Better branch prediction?

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

ID: a6968c8f-19ab-f79f-021a-265108870371
Version Independent ID: 6b4f1fec-b9d1-f501-1fcf-2c6f15209a29
Content: Ref return values and ref locals (C# Guide)
Content Source: docs/csharp/programming-guide/classes-and-structs/ref-returns.md
Product: dotnet-csharp
Technology: csharp-fundamentals
GitHub Login: @BillWagner
Microsoft Alias: wiwagn

Thanks for asking this question @felipepessoto
The algorithm shown is a linear search. If you know the item is toward the end instead of near the start, beginning at the end will examine fewer items.
I've marked this as an up for grabs issue for community members. We'll update it when we next update this article.

@BillWagner One observation assuming the array is always sorted, when no number is greater than or equal to the target, this solution wouldn't be efficient. Do we need to include it with the note ?


feed2imap: init at 1.3.3

Description of changes
This adds  https://github.com/feed2imap/feed2imap, the maybe last tool that I’m using on my
Debian machine that I am trying to replace with NixOS.
Things done

Built on platform(s)

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

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

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Maybe I should use (and package) https://github.com/Necoro/feed2imap-go instead.

I’ll try that tool, and if I find it works for me, will close this PR in favor of https://github.com/NixOS/nixpkgs/pull/222690.


The expansion element disappears

Apache StreamPipes version
dev (current development state)
Affected StreamPipes components
UI
What happened?
Since my environment was polluted, I reconfigured the development environment and pulled the latest code.

It didn't go away the last time it was launched, but it doesn't make it quick and easy to install pipeline elements like in earlier versions.

How to reproduce?
No response
Expected behavior
No response
Additional technical information
No response
Are you willing to submit a PR?
None

Hi @wyyolo, in PR #2919, I moved the installation view to the settings menu to make the default iconbar less polluted. You can find it by navigating to Configuration -> Extensions.

Hi @wyyolo, in PR #2919, I moved the installation view to the settings menu to make the default iconbar less polluted. You can find it by navigating to Configuration -> Extensions.
Thanks for your answer

Hi @wyyolo,
thank you for reporting this.
I am closing the issue for now, please open it again if you have any issues with the new implementation.


What about GraphQL?

Hello,
It seems that this repository was made only for RESTful APIs. Maybe it would be nice to add a section for GraphQL, which is a nice alternative to REST.
What do you think?

Agreed. Most of the rules apply for GraphQL as well but some of them aren't applicable (since its not security issue but RESTful best pratices) like:

Use proper HTTP method according to operation , GET (read), POST (create), PUT (replace/update) and DELETE (to delete a record).
Return the proper status code according to the operation completed. (e.g. 200 OK , 400 Bad Request , 401 Unauthorized, 405 Method Not Allowed ... etc).

Interesting to mention GraphQL here, but I agree that it will be hard to merge the GraphQL into the list. Many points will not be applicable.


MudDataGrid: Adjust simple filter width for consistency (#7538)

Description
This pull request addresses a visual bug in the 'MudDataGrid' component where the width of the simple filter overlay extends unexpectedly on pressing the "ADD FILTER" button multiple times. The change ensures that the overlay width remains consistent and within the width of the table.
Issue:

resolves #7538

How Has This Been Tested?
To ensure the robustness of the implemented fix:

Automated Testing: All existing unit tests were executed, and they passed without any failures.
Manual Testing: I manually interacted with the 'Filtering' functionality in the MudDataGrid, clicking on the filter, pressed "ADD FILTER" multiple times, and observed the width behavior, ensuring the width remains consistent and does not exceed the table width.

Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Visual Demonstrations
To better understand the issue and its subsequent resolution, please refer to the GIFs below:
Before the Fix:

After the Fix:

Checklist:

[x] The PR is submitted to the correct branch (dev).
[x] My code follows the code style of this project.
[ ] I've added relevant tests.

I think the formatting slightly got broken, especially in the if parts. Can you fix that?

I think the formatting slightly got broken, especially in the if parts. Can you fix that?

Do you refer to code indentation or another aspect of formatting?

Do you refer to code indentation or another aspect of formatting?

indentation

Do you refer to code indentation or another aspect of formatting?

indentation

I've adjusted the indentation. Please check and let me know if it's now as expected.

Indentation looks correct now, tho the file change looks scary and not very readable in the github.
@tjscience basically on line 66 MudGrid was replaced to MudStack. MudItems in line 403 and 478 got wrapped inside MudGrid(the column is null clauses in Filter fragment)


Exception "Could not find valid method for given parameters" in += operator

I freaking love UdonSharp, you're a god, thank your for fixing VRChat.
Here is an Error I found:
"System.Exception: Could not find valid method for given parameters!"
Error is gone when I change the line
"buffer += c;"
to
"buffer = buffer + c;"
However, this operator doesn't give me errors on other parts of my script.
In function:
    string buffer = "";
    foreach (char c in str)
    {
        if (c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z' || c >= '0' && c <= '9'
            || c == '-' || c == '_' || c == '.' || c == '~')
        {
            buffer += c; //<-- error happens here
            continue;
        }
    }

Resolved in 6e3f76aeb3dd95c8aa6c45942d3251a12d28ecbf which is included in https://github.com/Merlin-san/UdonSharp/releases/tag/v0.15.10


/auth/logout does not clear the session

/auth/logout does not clear the session. This is probably also causing #96
I think req.cookieAuth.clear() needs to be called in hapi-auth.js
like so:
  // LOGOUT START
 ....
 .....
 ...
        req.seneca.act("role:'user',cmd:'logout'", {token: clienttoken}, function (err) {
          if (err) {
            req.seneca.log('error ', err)
          }
          req.cookieAuth.clear();

          delete req.seneca.user
          delete req.seneca.login
          return req.seneca.act('role: auth, do: respond', {err: err, action: 'logout', req: req}, respond)
        })
      })
    })
  }

the express version seems to correctly call req.logout() to clear the passportJS session. Its just the hapi version that doesn't seem to.
Happy to do a PR if it helps.

@girishla thank you, good point. Could you please create a PR?
Thank you

@girishla Please do! Good catch

done!


special campaign badges

What's this PR do?

Add function for the superfan query
Cause a bunch of conflicts

🚢


Error in server response

I get this error when i call pygn functions to display a board, any idea why?
pygn-mode--parse-response: Bad response from ‘pygn-mode’ server -- no :version. Attempted restat

Hi!  What output do you get when you run
M-x pygn-mode-dependency-check
?

Hi, thanks for the quick response!
I get "All pygn-mode dependencies verified."

Great!  The mode also expects that this Python file https://github.com/dwcoates/pygn-mode/blob/master/pygn_server.py exists in the same directory as pygn-mode.el.  If that file is not present, you would get the "no :version" error message.
The error message should be made more clear, and the dependency check could also be improved to check for the existence of the file.

The files are in the same directory, i use Straight to download the repo/package so i should have all the files in the same places as this repo.

Interesting.  We've never tested this software on Windows; let me know if that's your platform.
You can confirm that the server is not running at all if the following returns nil:
M-:(pygn-mode--server-running-p)RET
You can double-check the command that the package is using to start the server by seeing what this returns:
M-:(list pygn-mode-python-executable "-u" (expand-file-name "pygn_server.py" pygn-mode-script-directory) "-")RET
And you can try running that command at your shell command line (without the parentheses).

I figured out what the problem was, Straight downloads the content of a repository under a "../straight/repos" folder which contains all files. The .el files that actually run are under a "../straight/build" folder which did not contain the "pygn_server.py" file. Simply copying this file under the build folder solved this problem for me. Thank you for your help!

Oh, I see, Straight builds a symlink farm like https://github.com/raxod502/straight.el#what-does-this-look-like-on-disk .
It looks like you can tell Straight to link in the *.py file using :files keyword.
It's still true that the pygn-mode.el error message is poor.
I'm glad you discovered this package!  Note that while I do use it myself, @dwcoates and I never got it to the point that it could be considered finished.


[vcpkg_copy_tool_dependencies] Switch to cmake function file(GET_RUNTIME_DEPENDENCIES)

Currently, vcpkg_copy_tool_dependencies calls the ps1 script applocal.ps1 on Windows to perform the function of analyzing dependencies and copying dependencies, which is affected by the powershell version and the Visual Studio English language package.
Switch to cmake functions to avoid these issues.

[x] vcpkg_copy_tool_dependencies
[ ] magnumdeploy.ps1
[ ] k4adeploy.ps1
[ ] openni2deploy.ps1
[ ] qtdeploy.ps1
[ ] vcpkg.cmake

Related official document: https://cmake.org/cmake/help/latest/command/file.html#get-runtime-dependencies
Resolve: https://github.com/microsoft/vcpkg/issues/17448 https://github.com/microsoft/vcpkg/issues/17890 https://github.com/microsoft/vcpkg/issues/16721 https://github.com/microsoft/vcpkg/issues/14339 https://github.com/microsoft/vcpkg/issues/10619 https://github.com/microsoft/vcpkg/issues/12849

Currently stuck at upstream issue: https://gitlab.kitware.com/cmake/cmake/-/issues/23906


clock.py - utc_offset errors

pressing Vol up/down increments the utc_offset by more than one each press.  As a result this allows utc_offset values to greater than 24 which then shows times greater than 23:59:59

Should be improved with #715 :)


Modal inside camera freezes the app when its closed

Originally reported here
https://github.com/facebook/react-native/issues/15057

@srameshr I took a look and, yeah, it crashes my app whenever I even try and close the modal.
Instead of nesting the Modal within the <Camera>, just put it below it and it should still work how you want:
<View>
  <Camera/>
  <Modal>...</Modal>
</View>

Does this still occur with RNCamera?


kubectl patch initContainers image doesn't work

Is this a request for help? : Nope
What keywords did you search in Kubernetes issues before filing this one? : "patch"

Is this a BUG REPORT or FEATURE REQUEST? : BUG REPORT?
Kubernetes version (use kubectl version): v1.6.2
Client Version: version.Info{Major:"1", Minor:"6", GitVersion:"v1.6.2", GitCommit:"477efc3cbe6a7effca06bd1452fa356e2201e1ee", GitTreeState:"clean", BuildDate:"2017-04-19T20:33:11Z", GoVersion:"go1.7.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"6", GitVersion:"v1.6.4+coreos.0", GitCommit:"8996efde382d88f0baef1f015ae801488fcad8c4", GitTreeState:"clean", BuildDate:"2017-05-19T21:11:20Z", GoVersion:"go1.7.5", Compiler:"gc", Platform:"linux/amd64"}

Environment:

Cloud provider or hardware configuration: aws
OS (e.g. from /etc/os-release): CoreOS
Install tools: Tack

What happened:
I have a pod that contains nginx and php-fpm containers that need to reference the same sourcecode. To do this I use a initContainers to copy some sourcecode to a emptyDir volume. It works nicely.
To deploy a new version of the app, the only thing that needs changing is the image of the container in the initContainers. I would like to be able to patch it like this:
$ kubectl patch deployment thedeployment -p'{"spec":{"template":{"spec":{"initContainers":[{"name":"init-sourcecode","image":"vendor/app_data:master.53"}]}}}}'

It returns:

deployment "thedeployment" patched

but checking with kubectl get deployment thedeployment -o json | less shows it's not the case.
What you expected to happen:
The deployment should be updated with a the new image. (and a new deployment triggered)
How to reproduce it :
$ cat nginx-test.yaml
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: nginx-test-deployment
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: nginx
    spec:
      initContainers:
      - name: init-webpage
        image: busybox
        command: ["sleep", "3"]
        volumeMounts:
        - mountPath: /work-dir
          name: workdir

      containers:
      - name: nginx
        image: nginx
        ports:
        - containerPort: 80
        volumeMounts:
        - name: workdir
          mountPath: /usr/share/nginx/html
      dnsPolicy: Default
      volumes:
      - name: workdir
        emptyDir: {}

kubectl create -f nginx-test.yaml

Try to patch the image to change from busybox:latest to busybox:1.25:
kubectl patch deployment nginx-test-deployment -p'{"spec":{"template":{"spec":{"initContainers":[{"name":"init-webpage","image":"busybox:1.25"}]}}}}'

deployment "nginx-test-deployment" patched

Even though it says it's patched, check busybox image in the deployment to see it's not changed with:
kubectl get deployment nginx-test-deployment -o json | grep busybox

After debugging a bit, kubectl is doing its job. It seems the APIserver just ignore the change. Maybe because initContainer is not allowed to be update after created.
The following is the log. You can find initContainers:[map[image:busybox:1.25.
original:
map[kind:Deployment apiVersion:extensions/v1beta1 metadata:map[namespace:default selfLink:/apis/extensions/v1beta1/namespaces/default/deployments/nginx-test-deployment resourceVersion:293 generation:1 creationTimestamp:2017-06-09T18:21:43Z labels:map[app:nginx] name:nginx-test-deployment uid:7d305803-4d40-11e7-a720-480fcf4a5275 annotations:map[deployment.kubernetes.io/revision:1]] spec:map[strategy:map[type:RollingUpdate rollingUpdate:map[maxUnavailable:1 maxSurge:1]] replicas:1 selector:map[matchLabels:map[app:nginx]] template:map[spec:map[containers:[map[volumeMounts:[map[name:workdir mountPath:/usr/share/nginx/html]] terminationMessagePath:/dev/termination-log terminationMessagePolicy:File imagePullPolicy:Always name:nginx image:nginx ports:[map[containerPort:80 protocol:TCP]] resources:map[]]] restartPolicy:Always terminationGracePeriodSeconds:30 dnsPolicy:Default securityContext:map[] schedulerName:default-scheduler volumes:[map[name:workdir emptyDir:map[sizeLimit:0]]] initContainers:[map[terminationMessagePolicy:File imagePullPolicy:Always name:init-webpage image:busybox command:[sleep 3] resources:map[] volumeMounts:[map[name:workdir mountPath:/work-dir]] terminationMessagePath:/dev/termination-log]]] metadata:map[creationTimestamp: labels:map[app:nginx] annotations:map[pod.alpha.kubernetes.io/init-containers:[{"name":"init-webpage","image":"busybox","command":["sleep","3"],"resources":{},"volumeMounts":[{"name":"workdir","mountPath":"/work-dir"}],"terminationMessagePath":"/dev/termination-log","terminationMessagePolicy":"File","imagePullPolicy":"Always"}] pod.beta.kubernetes.io/init-containers:[{"name":"init-webpage","image":"busybox","command":["sleep","3"],"resources":{},"volumeMounts":[{"name":"workdir","mountPath":"/work-dir"}],"terminationMessagePath":"/dev/termination-log","terminationMessagePolicy":"File","imagePullPolicy":"Always"}]]]]] status:map[observedGeneration:1 replicas:1 updatedReplicas:1 readyReplicas:1 availableReplicas:1 conditions:[map[type:Available status:True lastUpdateTime:2017-06-09T18:21:43Z lastTransitionTime:2017-06-09T18:21:43Z reason:MinimumReplicasAvailable message:Deployment has minimum availability.]]]]
patch:
map[spec:map[template:map[spec:map[initContainers:[map[name:init-webpage image:busybox:1.25]]]]]]
merged:
map[kind:Deployment apiVersion:extensions/v1beta1 metadata:map[namespace:default selfLink:/apis/extensions/v1beta1/namespaces/default/deployments/nginx-test-deployment resourceVersion:293 generation:1 creationTimestamp:2017-06-09T18:21:43Z labels:map[app:nginx] name:nginx-test-deployment uid:7d305803-4d40-11e7-a720-480fcf4a5275 annotations:map[deployment.kubernetes.io/revision:1]] spec:map[replicas:1 selector:map[matchLabels:map[app:nginx]] template:map[metadata:map[creationTimestamp: labels:map[app:nginx] annotations:map[pod.alpha.kubernetes.io/init-containers:[{"name":"init-webpage","image":"busybox","command":["sleep","3"],"resources":{},"volumeMounts":[{"name":"workdir","mountPath":"/work-dir"}],"terminationMessagePath":"/dev/termination-log","terminationMessagePolicy":"File","imagePullPolicy":"Always"}] pod.beta.kubernetes.io/init-containers:[{"name":"init-webpage","image":"busybox","command":["sleep","3"],"resources":{},"volumeMounts":[{"name":"workdir","mountPath":"/work-dir"}],"terminationMessagePath":"/dev/termination-log","terminationMessagePolicy":"File","imagePullPolicy":"Always"}]]] spec:map[terminationGracePeriodSeconds:30 dnsPolicy:Default securityContext:map[] schedulerName:default-scheduler volumes:[map[name:workdir emptyDir:map[sizeLimit:0]]] initContainers:[map[image:busybox:1.25 command:[sleep 3] resources:map[] volumeMounts:[map[name:workdir mountPath:/work-dir]] terminationMessagePath:/dev/termination-log terminationMessagePolicy:File imagePullPolicy:Always name:init-webpage]] containers:[map[ports:[map[containerPort:80 protocol:TCP]] resources:map[] volumeMounts:[map[name:workdir mountPath:/usr/share/nginx/html]] terminationMessagePath:/dev/termination-log terminationMessagePolicy:File imagePullPolicy:Always name:nginx image:nginx]] restartPolicy:Always]] strategy:map[type:RollingUpdate rollingUpdate:map[maxUnavailable:1 maxSurge:1]]] status:map[observedGeneration:1 replicas:1 updatedReplicas:1 readyReplicas:1 availableReplicas:1 conditions:[map[reason:MinimumReplicasAvailable message:Deployment has minimum availability. type:Available status:True lastUpdateTime:2017-06-09T18:21:43Z lastTransitionTime:2017-06-09T18:21:43Z]]]]

Thanks. Should I close this and open a feature request to the apiserve to ask if the initContainer can be changed?

I believe https://github.com/kubernetes/kubernetes/issues/47264 is an issue with same root cause that filed against main repo.
We can close this one.


Cannot access web UI with Docker.

Describe the issue you are experiencing
I set up RaspberryMatic using docker-compose as follows:
  raspberrymatic:
    container_name: raspberrymatic
    image: ghcr.io/jens-maus/raspberrymatic:<IP_ADDRESS>20831
    privileged: true
    restart: unless-stopped
    stop_grace_period: 30s
    volumes:
      - ./ccu_data:/usr/local:rw
      - /lib/modules:/lib/modules:ro
      - /run/udev/control:/run/udev/control
    ports:
      - "8081:80"
      - "2001:2001"
      - "2010:2010"
      - "9292:9292"
      - "8181:8181"

In the RaspberryMatic logs I noticed an error about multimacd (see below) and I cannot access the web UI, which should be accessible via port 8081 in my case. According to wireshark the HTTP server accepts the TCP connection but doesn't answer the GET request.
Describe the behavior you expected
Being able to access the web UI.
Steps to reproduce the issue

Install RaspberryMatic using docker-compose.
Try to access the web UI.

...
What is the version this bug report is based on?
<IP_ADDRESS>20831
Which base platform are you running?
odroid-n2 (ODROID N2/N2+)
Which HomeMatic/homematicIP radio module are you using?
HmIP-RFUSB
Anything in the logs that might be useful for us?
Starting watchdog...
Identifying host system: oci, OK
Initializing RTC Clock: onboard, OK
Running sysctl: OK
Checking for Factory Reset: not required
Checking for Backup Restore: not required
Initializing System: OK
Setup ca-certificates: OK
Starting logging: OK
Populating /dev using udev: done
Init onboard LEDs: init, OK
Starting irqbalance: OK
Starting iptables: OK
Starting network: eth0: link up, fixed, firewall, inet up, <IP_ADDRESS>, OK
Identifying Homematic RF-Hardware: ....HmRF: HMIP-RFUSB/eQ-3<EMAIL_ADDRESS>HmIP: HMIP-RFUSB/eQ-3<EMAIL_ADDRESS>OK
Updating Homematic RF-Hardware: HMIP-RFUSB: 4.4.18, not necessary, OK
Starting hs485dLoader: disabled
Starting xinetd: OK
Starting eq3configd: OK
Starting lighttpd: OK
Starting ser2net: disabled
Starting ssdpd: OK
Starting NUT services: disabled
Initializing Third-Party Addons: OK
Starting LGWFirmwareUpdate: ...OK
Setting LAN Gateway keys: OK
Starting hs485d: disabled
Starting multimacd: ..........ERROR
Starting rfd: ERROR: /dev/mmd_bidcos missing, no BidCos-RF hardware found
Starting HMIPServer: ERROR: /dev/mmd_hmip missing
Starting ReGaHss: .OK
Starting CloudMatic: OK
Starting NeoServer: disabled
Starting Third-Party Addons: OK
find: /usr/local/etc/monit*.cfg: No such file or directory
Starting crond: OK
Setup onboard LEDs: booted, OK
Finished Boot: <IP_ADDRESS>20831 (raspmatic_oci_arm64)

Additional information
Host OS is Arch Linux Arm with kernel 5.10.2-6-ARCH.

After changing the host to Ubuntu 22.05 with Linux 5.15, it now works. No idea why, though.


DB Migration

I couldn't find a way to manage a production DB. The ?synchronize=true option is OK for development, but obviously it is risky in production settings.
Is there some way to generate migrations so that I can configure a production database before deploying my app?

Thank you for the great product @iaincollins. Had the same issue today, that were not able to find documented tables definition, so I ran synchronize=true at first and then converted it into migrations.
From the structure I see now there are no indexes/fk that have set during initialization of DB data. I'm looking on it there https://github.com/iaincollins/next-auth/blob/master/src/adapters/typeorm/models/account.js. Also should be a good thing to improve
Definitely upvote for changing the current approach from auto sync to migrations.
And for those who probably will need table structure:
verification_request table:
-- Sequence and defined type
CREATE SEQUENCE IF NOT EXISTS verification_request_id_seq;

-- Table Definition
CREATE TABLE "public"."verification_request" (
    "id" int4 NOT NULL DEFAULT nextval('verification_request_id_seq'::regclass),
    "identifer" text NOT NULL,
    "token" varchar NOT NULL,
    "expires" timestamp NOT NULL,
    "created" timestamp NOT NULL,
    PRIMARY KEY ("id")
);

account table:
-- Sequence and defined type
CREATE SEQUENCE IF NOT EXISTS account_id_seq;

-- Table Definition
CREATE TABLE "public"."account" (
    "id" int4 NOT NULL DEFAULT nextval('account_id_seq'::regclass),
    "compoundId" varchar NOT NULL,
    "userId" int4 NOT NULL,
    "providerId" varchar NOT NULL,
    "providerType" varchar NOT NULL,
    "providerAccountId" varchar NOT NULL,
    "refreshToken" text,
    "accessToken" text NOT NULL,
    "accessTokenExpires" timestamp,
    "created" timestamp NOT NULL,
    PRIMARY KEY ("id")
);

user table:
-- Sequence and defined type
CREATE SEQUENCE IF NOT EXISTS user_id_seq;

-- Table Definition
CREATE TABLE "public"."user" (
    "id" int4 NOT NULL DEFAULT nextval('user_id_seq'::regclass),
    "name" varchar,
    "email" varchar NOT NULL,
    "image" varchar,
    "created" timestamp NOT NULL,
    PRIMARY KEY ("id")
);

session talbe:
-- Sequence and defined type
CREATE SEQUENCE IF NOT EXISTS session_id_seq;

-- Table Definition
CREATE TABLE "public"."session" (
    "id" int4 NOT NULL DEFAULT nextval('session_id_seq'::regclass),
    "userId" int4 NOT NULL,
    "expires" timestamp NOT NULL,
    "sessionToken" varchar NOT NULL,
    "accessToken" varchar NOT NULL,
    "created" timestamp NOT NULL,
    PRIMARY KEY ("id")
);

From the structure I see now there are no indexes/fk that have set during initialization of DB data. I'm looking on it there https://github.com/iaincollins/next-auth/blob/master/src/adapters/typeorm/models/account.js. Also should be a good thing to improve

Thanks!
Please note the database schema is in flux and will be until release - in fact the schema has already changed slightly in master, and is likely change in a release that drops in the next few day. The changes are mostly fairly minor; with the exception that email addresses will become optional to support using oAuth providers that don't return them (but you can still choose to enforce providing them if you wish).
There are no change logs until we get to release, so folks using the beta will need to keep an eye on the documentation on each update and understand there will be breaking changes on a regular basis until it is final (there will be official documentation before release!).
To clarify there is no migration script currently, because there is nothing to update to or from as the beta is still pre-release software and breaking changes to the API should still be expected. I was hoping to postpone them till later, but it's less painful to delay the release a bit than to release a breaking update very soon after release.
RE: Indexes / relational mappings
By release, all fields that should have indexes on them should be there on supported databases, however I should add that relational mapping is not planned as the focus is on support for multiple very different backends rather than optimising database metadata for a specific backend.
How to extend and customise models and schemas will be part of the documentation that drops before release though. (This is currently possible, it's just not documented.)
At some point in future dedicated adapters that have more sophisticated support for specific databases might be developed.

Thank you @iaincollins for the reply. Is there any chance before the release that you can consider moving to a more common practice in naming sql tables/fields rather than use JS style.
Usually, for fields name the common practice to use lower_case_underscored names and for tables also lowercase but in plural form.

I think that's a very reasonable request but have been concerned about adding additional  complexity to the already monkey patched models.
However, it looks like it's possible to apply a naming strategy with TypeORM and we could do that conditionally (we could even use a pre-canned model.

Note: You can already use the namingStrategy option in TypeORM with NextAuth.js, but I don't know how well it will work in practice.
You can track this is #245.
If there are any other feature requests, please create them as a new issue.

Update for anyone following this issue - Request for Comment on DB schema changes at #254


Distinguish the process AppScope state (Unscoped/Attached/Detached)

[ ] required #1049
Only last commit is valid

Ref #1096

Fix naming:

Instrumented - process is scoped
Not instrumented - a process where AppScope library is loaded

Closing since the work will be continued in https://github.com/criblio/appscope/issues/1109


[WFLY-4274] Add TRACE logging for starting and finishing waiting for com...

...ponent

Linux with security manager Build 778 is now running using a merge of 29e6ce11c8838d221545edd6415a6e8e81049861

Linux Build 5792 is now running using a merge of 29e6ce11c8838d221545edd6415a6e8e81049861

Windows Build 902 is now running using a merge of 29e6ce11c8838d221545edd6415a6e8e81049861

Linux with security manager Build 778 outcome was SUCCESS using a merge of 29e6ce11c8838d221545edd6415a6e8e81049861
Summary: Tests passed: 851, ignored: 316 Build time: 0:05:22

Windows Build 902 outcome was SUCCESS using a merge of 29e6ce11c8838d221545edd6415a6e8e81049861
Summary: Tests passed: 2934, ignored: 311 Build time: 0:48:13

Linux Build 5792 outcome was SUCCESS using a merge of 29e6ce11c8838d221545edd6415a6e8e81049861
Summary: Tests passed: 2933, ignored: 311, muted: 1 Build time: 0:52:06


failed to compile lact

Checklist

[X] The problem is not listed in the hardware support matrix as a known limitation. Examples of known driver-side issues are fans not turning on with a custom curve or inaccurate power limits on RDNA3.
[X] I've included a debug snapshot if the issue is related to hardware configuration

Bug description

System info
- LACT version: latest commit (or atleast, i was trying to update to that)
- GPU model: 6750xt
- Kernel version: latest 6.11.3-1
- Distribution: CachyOS (Arch Based)

Fixed in https://github.com/ilya-zlobintsev/LACT/commit/96bebf4ee4d66fb7687a70ea054fdcb46c8cd03a


requests.exceptions.HTTPError: 401 Client Error

Hi,
I'm trying to login to Fortigate 3600D version 5.6.12 with pyfortiapi,
this is my script:
import pyfortiapi
device = pyfortiapi.FortiGate(ipaddr="<IP_ADDRESS>",
username="flowcapture",
password="pfjwHp1wfdrse3jdgtykjkjves")  # This is the API key i created in the Fortigate
addresses = device.get_firewall_address()
print(addresses)
my error are:
Traceback (most recent call last):
File "ps-aux.py", line 17, in
nodlist = device.get_firewall_address()
File "/usr/local/lib/python3.6/site-packages/pyfortiapi.py", line 158, in get_firewall_address
results = self.get(api_url)
File "/usr/local/lib/python3.6/site-packages/pyfortiapi.py", line 94, in get
session = self.login()
File "/usr/local/lib/python3.6/site-packages/pyfortiapi.py", line 53, in login
login_check.raise_for_status()
File "/usr/lib/python3.6/site-packages/requests/models.py", line 940, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Authorization Required for url: https://<IP_ADDRESS>:443/api/v2/cmdb/system/vdom
I checked the credentials and the user and password are ok
curl -ki -H "Content-Type: application/json" -X POST https://<IP_ADDRESS>/logincheck?username=xxxx&secretkey=xxxxx
The result is
HTTP/1.1 200 OK
Date: Tue, 12 Jan 2021 14:01:25 GMT
Server: xxxxxxxx-xxxxx
Set-Cookie: APSCOOKIE_17029277275916847658="0%260"; path=/; expires=Mon, 25-Jan-1971 14:01:25 GMT; secure; SameSite=Strict
Set-Cookie: VDOM_17029277275916847658="0%260"; path=/; expires=Mon, 25-Jan-1971 14:01:25 GMT; secure; SameSite=Strict
Set-Cookie: CENTRAL_MGMT_OVERRIDE_17029277275916847658="0%260"; path=/; expires=Mon, 25-Jan-1971 14:01:25 GMT; secure; SameSite=Strict
Set-Cookie: EDIT_HISTORY_17029277275916847658="0%260"; path=/; expires=Mon, 25-Jan-1971 14:01:25 GMT; secure; SameSite=Strict
Set-Cookie: FILE_DOWNLOADING_17029277275916847658="0%260"; path=/; expires=Mon, 25-Jan-1971 14:01:25 GMT; secure; SameSite=Strict
Set-Cookie: csrftoken_17029277275916847658="0%260"; path=/; expires=Mon, 25-Jan-1971 14:01:25 GMT; secure; SameSite=Strict
Set-Cookie: ccsrftoken_17029277275916847658="0%260"; path=/; expires=Mon, 25-Jan-1971 14:01:25 GMT; secure; SameSite=Strict
Set-Cookie: ccsrftoken="0%260"; path=/; expires=Mon, 25-Jan-1971 14:01:25 GMT; secure; SameSite=Strict
Any help will be appreciated

Hi @rafish1
I don't currently have access to a FortiGate to do any testing, but will try to organise access to a virtual unit to assist with troubleshooting.

Hi @rafish1
I don't currently have access to a FortiGate to do any testing, but will try to organise access to a virtual unit to assist with troubleshooting.

OK,
Thanks
I also checked it with rest api
the script i wrote:
import requests
#import json,urllib3,requests
#urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
response = requests.get('https://<IP_ADDRESS>/api/v2/cmdb/firewall/address/?access_token=y9wQrbGGxQGGgkzsswsQ4nypfH7y9g')
#print(response)
And I received different error
Traceback (most recent call last):
File "/root/python-environments/python_env/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
chunked=chunked,
File "/root/python-environments/python_env/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
self._validate_conn(conn)
File "/root/python-environments/python_env/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in validate_conn
conn.connect()
File "/root/python-environments/python_env/lib/python3.6/site-packages/urllib3/connection.py", line 421, in connect
tls_in_tls=tls_in_tls,
File "/root/python-environments/python_env/lib/python3.6/site-packages/urllib3/util/ssl.py", line 432, in ssl_wrap_socket
ssl_sock = ssl_wrap_socket_impl(sock, context, tls_in_tls)
File "/root/python-environments/python_env/lib/python3.6/site-packages/urllib3/util/ssl.py", line 474, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock)
File "/usr/lib64/python3.6/ssl.py", line 365, in wrap_socket
_context=self, _session=session)
File "/usr/lib64/python3.6/ssl.py", line 776, in init
self.do_handshake()
File "/usr/lib64/python3.6/ssl.py", line 1036, in do_handshake
self._sslobj.do_handshake()
File "/usr/lib64/python3.6/ssl.py", line 648, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:897)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/python-environments/python_env/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/root/python-environments/python_env/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/root/python-environments/python_env/lib/python3.6/site-packages/urllib3/util/retry.py", line 573, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='<IP_ADDRESS>', port=443): Max retries exceeded with url: /api/v2/cmdb/firewall/address/?access_token=y9wQrbGGxQGGgkzsswsQ4nypfH7y9g (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:897)'),))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "fortilogin.py", line 8, in
response = requests.get('https://<IP_ADDRESS>/api/v2/cmdb/firewall/address/?access_token=y9wQrbGGxQGGgkzsswsQ4nypfH7y9g')
File "/root/python-environments/python_env/lib/python3.6/site-packages/requests/api.py", line 76, in get
return request('get', url, params=params, **kwargs)
File "/root/python-environments/python_env/lib/python3.6/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/root/python-environments/python_env/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/root/python-environments/python_env/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/root/python-environments/python_env/lib/python3.6/site-packages/requests/adapters.py", line 514, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='<IP_ADDRESS>', port=443): Max retries exceeded with url: /api/v2/cmdb/firewall/address/?access_token=y9wQrbGGxQGGgkzsswsQ4nypfH7y9g (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:897)'),)
Any Ideas ?

OK,
Thanks
I also checked it with rest api
the script i wrote:
import requests
#import json,urllib3,requests
#urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
response = requests.get('https://<IP_ADDRESS>/api/v2/cmdb/firewall/address/?access_token=y9wQrbGGxQGGgkzsswsQ4nypfH7y9g')
#print(response)
And I received different error
Traceback (most recent call last):
File "/root/python-environments/python_env/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
chunked=chunked,
File "/root/python-environments/python_env/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
self._validate_conn(conn)
File "/root/python-environments/python_env/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in validate_conn
conn.connect()
File "/root/python-environments/python_env/lib/python3.6/site-packages/urllib3/connection.py", line 421, in connect
tls_in_tls=tls_in_tls,
File "/root/python-environments/python_env/lib/python3.6/site-packages/urllib3/util/ssl.py", line 432, in ssl_wrap_socket
ssl_sock = ssl_wrap_socket_impl(sock, context, tls_in_tls)
File "/root/python-environments/python_env/lib/python3.6/site-packages/urllib3/util/ssl.py", line 474, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock)
File "/usr/lib64/python3.6/ssl.py", line 365, in wrap_socket
_context=self, _session=session)
File "/usr/lib64/python3.6/ssl.py", line 776, in init
self.do_handshake()
File "/usr/lib64/python3.6/ssl.py", line 1036, in do_handshake
self._sslobj.do_handshake()
File "/usr/lib64/python3.6/ssl.py", line 648, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:897)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/python-environments/python_env/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/root/python-environments/python_env/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/root/python-environments/python_env/lib/python3.6/site-packages/urllib3/util/retry.py", line 573, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='<IP_ADDRESS>', port=443): Max retries exceeded with url: /api/v2/cmdb/firewall/address/?access_token=y9wQrbGGxQGGgkzsswsQ4nypfH7y9g (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:897)'),))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "fortilogin.py", line 8, in
response = requests.get('https://<IP_ADDRESS>/api/v2/cmdb/firewall/address/?access_token=y9wQrbGGxQGGgkzsswsQ4nypfH7y9g')
File "/root/python-environments/python_env/lib/python3.6/site-packages/requests/api.py", line 76, in get
return request('get', url, params=params, **kwargs)
File "/root/python-environments/python_env/lib/python3.6/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/root/python-environments/python_env/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/root/python-environments/python_env/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/root/python-environments/python_env/lib/python3.6/site-packages/requests/adapters.py", line 514, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='<IP_ADDRESS>', port=443): Max retries exceeded with url: /api/v2/cmdb/firewall/address/?access_token=y9wQrbGGxQGGgkzsswsQ4nypfH7y9g (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:897)'),)
Any Ideas ?

@ratfish, try setting an value of False to the verify argument in your https request. I just tested on my firewall and this works. Python is checking to see if the certificate is valid, but it is self-signed and likely failing because of this.
import requests

url = "https://<IP_ADDRESS>/api/v2/cmdb/firewall/address?access_token=3894eugva4ith3t4yga9485yhaf44"

response = requests.request("GET", url, *verify=False*)

print(response.text)

@ratfish, try setting an value of False to the verify argument in your https request. I just tested on my firewall and this works. Python is checking to see if the certificate is valid, but it is self-signed and likely failing because of this.
import requests

url = "https://<IP_ADDRESS>/api/v2/cmdb/firewall/address?access_token=3894eugva4ith3t4yga9485yhaf44"

response = requests.request("GET", url, *verify=False*)

print(response.text)

Thank you very much the ssl problem solved,
By default the login is to vdom root but I'm trying to login to vdom Dos (Api key has access to this vdom),
See configuration from Fortigate (global)
edit "flowcapture"
set api-key ENC SH2jfhnqK3i9kKKZwsvEV43IZScCapfl4rqsMdZ5EvK6gudZhg1lAXe5qBHJoE=
set accprofile "REST API admin"
set vdom "Dos" "root"
config trusthost
#!/usr/bin/python3.6
import requests
import os
import json,urllib3,requests
import urllib.request
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
#with urllib.request.urlopen("https://<IP_ADDRESS>/", context=ssl.SSLContext()) as url:
print(url.read())
#url = "https://<IP_ADDRESS>/api/v2/cmdb/firewall/address?access_token=y9wQrbGGxQGGgkzsswsQ4nypfH7y9g" #this url works fine
url = "https://<IP_ADDRESS>/api/v2/cmdb/firewall/address/?vdom=Dos?access_token=y9wQrbGGxQGGgkzsswsQ4nypfH7y9g"
response = requests.request("GET", url, verify=False)
print(response.text)
The error I get is :

401 Authorization Required

Authorization Required
This server could not verify that you
are authorized to access the document
requested.  Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.
Additionally, a 401 Authorization Required
error was encountered while trying to use an ErrorDocument to handle the request.

Any Idea ?

Thank you very much the ssl problem solved,
By default the login is to vdom root but I'm trying to login to vdom Dos (Api key has access to this vdom),
See configuration from Fortigate (global)
edit "flowcapture"
set api-key ENC SH2jfhnqK3i9kKKZwsvEV43IZScCapfl4rqsMdZ5EvK6gudZhg1lAXe5qBHJoE=
set accprofile "REST API admin"
set vdom "Dos" "root"
config trusthost
#!/usr/bin/python3.6
import requests
import os
import json,urllib3,requests
import urllib.request
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
#with urllib.request.urlopen("https://<IP_ADDRESS>/", context=ssl.SSLContext()) as url:
print(url.read())
#url = "https://<IP_ADDRESS>/api/v2/cmdb/firewall/address?access_token=y9wQrbGGxQGGgkzsswsQ4nypfH7y9g" #this url works fine
url = "https://<IP_ADDRESS>/api/v2/cmdb/firewall/address/?vdom=Dos?access_token=y9wQrbGGxQGGgkzsswsQ4nypfH7y9g"
response = requests.request("GET", url, verify=False)
print(response.text)
The error I get is :

401 Authorization Required

Authorization Required
This server could not verify that you
are authorized to access the document
requested.  Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.
Additionally, a 401 Authorization Required
error was encountered while trying to use an ErrorDocument to handle the request.

Any Idea ?

url = "https://<IP_ADDRESS>/api/v2/cmdb/firewall/address/?vdom=Dos?access_token=y9wQrbGGxQGGgkzsswsQ4nypfH7y9g"
is that a typo?
correct would be following url:
url = "https://<IP_ADDRESS>/api/v2/cmdb/firewall/address/?vdom=Dos&access_token=y9wQrbGGxQGGgkzsswsQ4nypfH7y9g"
the first GET-parameter is defined by ?<name>=<value>, following parameters need &<name>=<value>
But that is your own script? What is the error regarding the PyFortiAPI?

url = "https://<IP_ADDRESS>/api/v2/cmdb/firewall/address/?vdom=Dos?access_token=y9wQrbGGxQGGgkzsswsQ4nypfH7y9g"
is that a typo?
correct would be following url:
url = "https://<IP_ADDRESS>/api/v2/cmdb/firewall/address/?vdom=Dos&access_token=y9wQrbGGxQGGgkzsswsQ4nypfH7y9g"
the first GET-parameter is defined by ?<name>=<value>, following parameters need &<name>=<value>
But that is your own script? What is the error regarding the PyFortiAPI?

Hi,
Yes, sorry it was typo, this link url = "https://<IP_ADDRESS>/api/v2/cmdb/firewall/address/?vdom=Dos&access_token=y9wQrbGGxQGGgkzsswsQ4nypfH7y9g"
Is working with chrome only not even from chrome incognito, I'm very confused .......
I tried to do it with rest API but maybe the PyFortiAPI is better to achieve my goal
I'm very new with python, API, sorry if I'm bothering you
About PyFortiAPI, this is the script: (from: https://pyfortiapi.readthedocs.io/en/latest/user/operations.html#)
import pyfortiapi
device = pyfortiapi.FortiGate(ipaddr="<IP_ADDRESS>",
username="flowcapture",
vdom="Dos",
password="y9wQrbGGxQGGgkzsswsQ4nypfH7y9g")
addresses = device.get_firewall_address()
print(addresses)
This is the error:
Traceback (most recent call last):
File "pifortoapi.py", line 9, in
addresses = device.get_firewall_address()
File "/root/python-environments/python_env/lib/python3.6/site-packages/pyfortiapi.py", line 158, in get_firewall_address
results = self.get(api_url)
File "/root/python-environments/python_env/lib/python3.6/site-packages/pyfortiapi.py", line 94, in get
session = self.login()
File "/root/python-environments/python_env/lib/python3.6/site-packages/pyfortiapi.py", line 53, in login
login_check.raise_for_status()
File "/root/python-environments/python_env/lib/python3.6/site-packages/requests/models.py", line 943, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Authorization Required for url: https://<IP_ADDRESS>:443/api/v2/cmdb/system/vdom
My goal is be able to add and delete address from group,
I enabled flow-capture that gets netflow from my router and I want that the script will check incoming ip's and if src ip passed flow threshold the script shoul create address and attached him to group address
If you can help with the PyFortiAPI error it will be great
Thank you very much with your assist

Hi,
Yes, sorry it was typo, this link url = "https://<IP_ADDRESS>/api/v2/cmdb/firewall/address/?vdom=Dos&access_token=y9wQrbGGxQGGgkzsswsQ4nypfH7y9g"
Is working with chrome only not even from chrome incognito, I'm very confused .......
I tried to do it with rest API but maybe the PyFortiAPI is better to achieve my goal
I'm very new with python, API, sorry if I'm bothering you
About PyFortiAPI, this is the script: (from: https://pyfortiapi.readthedocs.io/en/latest/user/operations.html#)
import pyfortiapi
device = pyfortiapi.FortiGate(ipaddr="<IP_ADDRESS>",
username="flowcapture",
vdom="Dos",
password="y9wQrbGGxQGGgkzsswsQ4nypfH7y9g")
addresses = device.get_firewall_address()
print(addresses)
This is the error:
Traceback (most recent call last):
File "pifortoapi.py", line 9, in
addresses = device.get_firewall_address()
File "/root/python-environments/python_env/lib/python3.6/site-packages/pyfortiapi.py", line 158, in get_firewall_address
results = self.get(api_url)
File "/root/python-environments/python_env/lib/python3.6/site-packages/pyfortiapi.py", line 94, in get
session = self.login()
File "/root/python-environments/python_env/lib/python3.6/site-packages/pyfortiapi.py", line 53, in login
login_check.raise_for_status()
File "/root/python-environments/python_env/lib/python3.6/site-packages/requests/models.py", line 943, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Authorization Required for url: https://<IP_ADDRESS>:443/api/v2/cmdb/system/vdom
My goal is be able to add and delete address from group,
I enabled flow-capture that gets netflow from my router and I want that the script will check incoming ip's and if src ip passed flow threshold the script shoul create address and attached him to group address
If you can help with the PyFortiAPI error it will be great
Thank you very much with your assist

Hi @rafish1 Still struggling to get hold of a virtual unit at the moment sadly.
Given that the error being thrown there is a 401, have you verified manually that the given user has access to the resource?

@rafish1 this is credentials related issue. I had faced the same. I would request you to create the credentials using CLI and add api authorization to the policies. I hope this helps. The sdk is correct and has no issues.
I think the best that can be done is adding a condition if the response is 400 range , we can print the same

@rafish1 this is credentials related issue. I had faced the same. I would request you to create the credentials using CLI and add api authorization to the policies. I hope this helps. The sdk is correct and has no issues.
I think the best that can be done is adding a condition if the response is 400 range , we can print the same

Hi,
Please can you help me - I am running into the 401 issue.
How can I overcome it?

@rafish1 this is credentials related issue. I had faced the same. I would request you to create the credentials using CLI and add api authorization to the policies. I hope this helps. The sdk is correct and has no issues.
I think the best that can be done is adding a condition if the response is 400 range , we can print the same

Hi,
Please can you help me - I am running into the 401 issue.
How can I overcome it?

401 means you're stuck with authorization issue.
Just to make sure where you're getting stuck, try opening this link https://{ipaddr}:{port}/logincheck, using requests or in browser. If you get 200 means you have basic access to the API. Incase you get 401 there too that means that the API creds were not properly created.
If logincheck gives 401, then try creating new credentials from cli with access over all the API endpoints, with specific access(if need to get data read-only will suffice, if post then go admin). If the latter is correct, then edit the credentials in the cli, and provide the endpoint access.
Hope this helps


elftool UX and structured data formats

if this is to-be-used by another program, it would imho make sense to output structured data (i.e. json since the rest is doing json as well)
_Originally posted by @hannesm in https://github.com/render_node/MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMyMzMxNDYzNw==/comments/review_comment

This is a good point, /cc ing @hannesm @cfcs @ricarkol for opinions:
While I don't terribly like JSON, it is a universal format. However, I miss the ability to somehow discriminate the root type of the data. How about something like this for elftool abi:
{
  "solo5.abi": {
    {
      "target": "spt",
      "version": 1
    }
}

i.e. use the initial "solo5.abi" as a way of giving the output object a "type" of sorts.
Thinking about it, it then follows that for consistency we should add the same wrapping to the manifest (both as dumped and JSON source), e.g.
{
  "solo5.manifest": {
    "version": 1,
    "devices": [ ... ]
  }
}

What do you think?
Additionally, I propose renaming:

elftool gen to elftool gen-manifest
elftool dump to elftool query-manifest
elftool abi to elftool query-abi

I think those suggestions all sound very sensible.

FWIW I played around with some JSON stuff in here, maybe something is worth extracting or avoiding:
https://github.com/cfcs/solo5/commit/48a7d2ad7304b2d4f7ad88231ef688e8341e6233

JSON is OK for me. The only alternative I can think of are s-expressions, which might be more friendly to mirage (sexp is in ocaml core).
The tool renames and the proposed JSON format looks good to me.

I'm not very much into json, but find this additional layer solo5.manifest / solo5.abi slightly confusing (and have instead seen json which include a type field inside the main dictionary ({ "type": "solo5.manifest" ; "version": 1 ; ... })).
the proposed command renamings sound sensible to me.


Add code challenge as default and client secret as optional

Please see issue #39 for more information about why this PR came into existence
Functionality added so far:

Add generator for code challenge
Add storage in the cookies of browser session for code challenge
Request the token with code challenge instead of secret if code challenge is set previously

Need help:

How do I test it?
How do I add test cases for it?

Thanks

@payton would appreciate if I could get some help in closing the testing part

This library is definitely in need of some well-defined tests. One thought that come to mind is using a mocker for axios and writing tests for all supported error/success responses as defined in the respective standards documents (openid, pkce, etc).
I think it will also be useful to break the current implementation up in to smaller functions that can be tested individually.
One comment on your PR, is there any reason why this is being added as part of the openid implementation? I would prefer to keep standards separate despite the inevitable code duplication.

One comment on your PR, is there any reason why this is being added as part of the openid implementation? I would prefer to keep standards separate despite the inevitable code duplication.

One of the reasons is to avoid duplication. The other reason is, Okta App's SECRET value has also become optional in this case.
If you feel that's a better design I can make the changes in that fashion. Could you help me by replying back as to what's going through your mind when you say keep the standards separate?

By keep standards separate, I'm referring to RFC standards. That terminology is a little off in the case of OpenID Connect, but ultimately OpenID connect was built off of RFC 6749 while PKCE is defined in RFC 7636. Since they both have clear rules to follow, despite some overlapping, I thought it may be good to keep them separate. Do you agree?

This was not followed with the github implementation but may be good moving forward

Just following up, @rohitggarg-qb

Aah okay. I will try to make these changes and create separate flows for pkce.
Thanks!

@payton I have tested this out manually on cloudfront. How does this look?
Thanks!

Hey @rohitggarg-qb sorry on the delay. Wrapping up my summer and have been busy. I'm planning on getting some non-work work done tomorrow morning and will try to get this reviewed then.

@payton Thanks for the review, I shall make the changes and drop a message so you could take it further.
Thanks for your time.

@payton FYI

Perfect. Thank you for your contribution, @rohitggarg-qb !


xc7/toolchain_wrappers: find device/arch using part name

Platforms and designs for xc7 devices in frameworks like Migen or Litex specify only part name, as it is enough for Vivado.
With this change, it becomes possible to add Symbiflow backend as a replacement for Vivado to such frameworks without requiring additional information (i.e. device and arch) from specific platforms and designs.
It is still possible to manually set the device and arch.

@kgugala - Please merge if the CI goes green.

CI is red, but the fail is unrelated to this PR (https://github.com/SymbiFlow/symbiflow-arch-defs/issues/1400). We can merge this


Circles always under groundoverlays, ignores ZIndex

BUG / PROBREM REPORT
SUMMARY
We are attempting to add circles over the groundoverlays.  We are utilizing the zIndex and have tried changing the order in which they're added.
VERSIONS

Xamarin.Forms.GoogleMaps - 2.3.0-beta5
Xamarin.Forms - <IP_ADDRESS>

PLATFORMS

[x] Android
[x] iOS
[ ] UWP

HOW TO REPRODUCE
The below snippet was added to the PinsPage.xaml.cs in the demo project.  We are expecting the circle to cover the image in the overlay, but the overlay is always on top.
                map.Circles.Add(new Circle()
                {
                    Center = new Position(40.7808d, -73.961d),
                    FillColor = Color.Red,
                    Radius = new Distance(100),
                    ZIndex = 3,
                });

                var _overlay = new GroundOverlay()
                {
                    Bounds = new Bounds(new Position(40.781d, -73.961d), new Position(40.782d, -73.962d)),
                    Icon = BitmapDescriptorFactory.FromBundle("image01.png"),
                    Tag = "THE GROUNDOVERLAY",
                    ZIndex = 2
                };

                map.GroundOverlays.Add(_overlay);

ACTUAL IMAGES
![untitled 4](https://user-images.githubusercontent.com/349146/34140075-e80daa18-e43d-11e7-8369-7e531185781d.png)

// paste stacktrace

OTHERS
(free format)

I seems works fine.

map.Pins[0].ZIndex = 11;
map.Polylines[0].ZIndex = 10;
map.Polylines[1].ZIndex = 9;
map.Polylines[2].ZIndex = 8;
map.Circles[0].ZIndex = 7;
map.Circles[1].ZIndex = 6;
map.Circles[2].ZIndex = 5;
map.Polygons[0].ZIndex = 4;
map.Polygons[1].ZIndex = 3;
map.Polygons[2].ZIndex = 2;
map.GroundOverlays[0].ZIndex = 1;

map.Pins[0].ZIndex = 1;
map.Polylines[0].ZIndex = 2;
map.Polylines[1].ZIndex = 3;
map.Polylines[2].ZIndex = 4;
map.Circles[0].ZIndex = 5;
map.Circles[1].ZIndex = 6;
map.Circles[2].ZIndex = 7;
map.Polygons[0].ZIndex = 8;
map.Polygons[1].ZIndex = 9;
map.Polygons[2].ZIndex = 10;
map.GroundOverlays[0].ZIndex = 11;

But I found a bug that ZIndex not working when GroundOverlays.Add(also Polygons.Add, Polylines.Add and Circles.Add).
overlay.ZIndex = 7;
map.GroundOverlays.Add(overlay);  // ZIndex not works

overlay.ZIndex = 6; // working

Fixed at https://github.com/amay077/Xamarin.Forms.GoogleMaps/blob/master/RELEASE_NOTES.md#230-beta6 .


Adding structured data snippets to the blog

Hi there!
Firstly, thanks for the awesome work on cnvs!
So, this PR is a proposal for new "functionality" on cnvs. I wanted to improve the SEO on my blog, so in the process I ended up implementing structured data on the site. This PR enables the following:

Structured Data for the entire Blog as per the Blog Schema definition
Structured Data for the list of posts on the home page (as per the Article Schema).
Structured Data for each individual posts on the post page (as per the Article Schema).

The implementation is somewhat "minimal" because I guess the requirements may differ from blog to blog, but is just enough to improve SEO.
To give some examples, I have already implemented and integrated this into my own blog, and using Google's Structured Data Testing Tool I am able to get clean valid Structured Data. See example output below (I've only taken snippets from the results and not the entire result, feel free to run the tool against my site to see the complete result).
Output On Home Page

Output On Post Page

And that's about it. I think this would be a nice to have on cnvs? Thoughts?

@MadimetjaShika Thanks for submitting this! Great work on it, looks pretty solid to me. Let me get two other reviews on it quick before I merge it in.

Sorry for the delay - ill be able to take a proper look at this in come Monday as im out travelling atm! Looks great so far though! 👍

@austintoddj @reliq Thanks guys!


[GitHub] Replace Markdown flavor with readable text

Remove markdown flavor so text is readable.
Examples:

contains ![link](http://linky.link), keep only link.
contains ## Header, keep Header

Edit:

contains ![link(http://linky.link), keep only http://linky.link

Definitely want to do this. Although I'd rather give the link and/or image, but shorten the URL rather than just give the alt-text.

Agreed on that.


Jenkins build server: update where build process copies solution templates from

I copied all of the released templates to the following folder on our production server:
C:\inetpub\wwwroot\Downloads\ArcGISforDefense
Update Jenkins build process to copy the templates from this location.

@ACueva the Jenkins process didn't copy the Downloads folder from IIS. Going to move this to the next milestone as I've manually copied this folder into the current release.


Made the help text in the footer bold.

The help text "Choose items and order by drag & drop" in the sortedm2m widget is helpful but hard to see. So, making it bolder would help accomplish it.

Not an optimal solution, setting a bold text it's a presentation matter and should be handled in the CSS.

Yes. I understand. Thanks :)


:robot: Lint

To anyone with the rights to change the config, can you make the lint job a requirement before merging?

done (I think :) )


feedparser UnicodeDecodeError after 1.4.8

General
Platform:  (Manjaro) Linux
Python version:  3.7.4
Pyzotero version: 1.4.8
Problem description
I see that 1.4.8 removed a workaround for a feedparser issue, but I don't see an upstream fix? Maybe I am missing something. Running the same code with 1.4.7 works fine.
A minimal settings.py that triggers the bug for me looks like
titlestring = "Title"
group_collection(1048946, collection='ZWVSAZGP')
sort_criteria = ['-date']

If possible, paste the full traceback in a code block below, and fill in the summary

Traceback
./zot.py --settings settings-dbg.py
./zot.py:303: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp
Loaded settings from /home/yngvelevinsen/Programming/bp-bibliography/settings-dbg.py.
Traceback (most recent call last):
  File "/usr/lib/python3.7/base64.py", line 510, in _input_type_check
    m = memoryview(s)
TypeError: memoryview: a bytes-like object is required, not 'str'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/yngvelevinsen/.local/lib/python3.7/site-packages/feedparser.py", line 878, in pop
    output = _base64decode(output)
  File "/usr/lib/python3.7/base64.py", line 545, in decodebytes
    _input_type_check(s)
  File "/usr/lib/python3.7/base64.py", line 513, in _input_type_check
    raise TypeError(msg) from err
TypeError: expected bytes-like object, not str

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./zot.py", line 2409, in <module>
    generate_html(include_collections, item_filters)
  File "./zot.py", line 2334, in generate_html
    all_items, item_ids = retrieve_all_items(sortedkeys)
  File "./zot.py", line 2074, in retrieve_all_items
    i2 = list(e.db.retrieve_data(key))
  File "./zot.py", line 1822, in retrieve_data
    return self.filter_data(self.retrieve_data_cached(collection_id, exclude))
  File "./zot.py", line 1879, in retrieve_data_cached
    b = self.retrieve_bib(collection_id, 'bibtex', '')
  File "./zot.py", line 1809, in retrieve_bib
    return self.retrieve_x(collection, content=content, style=style)
  File "./zot.py", line 1805, in retrieve_x
    **args))
  File "/usr/lib/python3.7/site-packages/pyzotero/zotero.py", line 225, in wrapped_f
    parsed = feedparser.parse(retrieved.text)
  File "/home/yngvelevinsen/.local/lib/python3.7/site-packages/feedparser.py", line 3956, in parse
    saxparser.parse(source)
  File "/usr/lib/python3.7/site-packages/drv_libxml2.py", line 239, in parse
    _d(reader.Name()))
  File "/home/yngvelevinsen/.local/lib/python3.7/site-packages/feedparser.py", line 2052, in endElementNS
    self.unknown_endtag(localname)
  File "/home/yngvelevinsen/.local/lib/python3.7/site-packages/feedparser.py", line 696, in unknown_endtag
    method()
  File "/home/yngvelevinsen/.local/lib/python3.7/site-packages/feedparser.py", line 1832, in _end_content
    value = self.popContent('content')
  File "/home/yngvelevinsen/.local/lib/python3.7/site-packages/feedparser.py", line 1003, in popContent
    value = self.pop(tag)
  File "/home/yngvelevinsen/.local/lib/python3.7/site-packages/feedparser.py", line 886, in pop
    output = _base64decode(output.encode('utf-8')).decode('utf-8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8a in position 0: invalid start byte

Oops sorry! Fixed in 1.4.10, released to PyPI.


Light tab color causes unreadably dark foreground (text) color when the tab is not focused

Windows Terminal version
1.12.10982.0
Windows build number
Microsoft Windows [Version 10.0.19043.1706]
Other Software
None
Steps to reproduce

Start MS terminal
Open a total of 2+ tabs
Make sure that you're running a 'Dark' theme
Set the color of a tab to be bright enough that the foreground text switches to black (the 'Teal' option seems to work well - it's custom color is #05FFEE)
Focus a tab (let's call it "Tab A") and bask in the readable text.  The tab color is that nice, bright teal and the text has automatically been made black, an easy-to-read, high contrast color.
Switch to a different tab.  Notice that Tab A's tab color is now very dark / dim (which is a very reasonable way to convey to the user that the tab isn't currently focused).  Notice also that the text color is still black, and thus unreadable.
Look upon incredibly low contrast, unfocused Tab A and weep, for there is no possible way to read that text.

Expected Behavior
I'd love to be able to read the text on my unfocused tabs, even if I choose a light tab color for them.
I think what might solve this is: when a tab becomes unfocused and you dim the tab go back and adjust the foreground (text) color to be white.
Actual Behavior
Foreground color remains black.
I can't read black text on a really, really dark tab.
Oh boy is it hard to see what
Cue the weeping :)

Shouldn't be too hard to set the unfocused text color based on the contrast with the unfocused color. Tricks will be:

Do we actually control the unfocused color in this scenario? Or are we just letting WinUI apply some default amount of transparency on top of the tab view item
Does the TabViewItem actually have a resource for it's unfocused text color, separate from the focused tab text color?


az containerapp no longer supporting environment variables with certain characters

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Related command
az containerapp update
Describe the bug
When an Azure Container app has an environment variable with characters that are not: 'a-z, A-Z, 0-9 and _', az containerapp will not work and will deliver the following error message:
ERROR: Env variable name 'your-env-variable' contains invalid character, allowed characters are 'a-z, A-Z, 0-9 and _'
Originally reported here: https://github.com/microsoft/azure-container-apps/issues/308 This was working as of several days ago, so I think its okay to call this a regression.
To Reproduce
Add an environment variable to your Container in your Container app that contains a non 'a-z, A-Z, 0-9 or _' character.
Expected behavior
Environment variables with characters outside the 'a-z, A-Z, 0-9 or _' range should be allowed and should not cause az containerapp update to fail.
Environment summary
Blazor server application running in a Dockerfile. Deployed by Github actions using the standard script provided by Microsoft and the azure/CLI@v1 action.
Additional context
This was working as of about 72 hours ago, when I did the last deployment.

route to CXP team

@evklein Thanks for reaching out to us and reporting this issue. We are looking into this issue and we will provide an update.

@evklein Could you please share the --debug output here ? I feel that this issue isn't related to the Container App but the underlying image OS type.
The bash manual mentions this clearly (here)

name
A word consisting solely of letters, numbers, and underscores, and beginning with a letter or underscore. Names are used as shell variable and function names. Also referred to as an identifier.

Also the error message is again self-explanatory and it is as per the IEEE standard for environment variables.

Environment variable names used by the utilities in the Shell and Utilities volume of IEEE Std 1003.1-2001 consist solely of uppercase letters, digits, and the '_' (underscore)

Refer this.

@navba-MSFT Sure, here:

Also the error message is again self-explanatory and it is as per the IEEE standard for environment variables.

This is understandable, however I do want to emphasize that just a few days ago this was working, and I have made no changes to the OS I am using for deployment, both in the Github action and in the Dockefile.

@evklein Could you please run the az --version command and share the output here ?

@navba-MSFT

Looks like I'm up to date using 2.38.0

For anyone stumbling across this issue in a similar spot - I ended up removing my Azure Container App service and starting over from scratch with an Azure app service on the free tier. Azure app services have an option for database connection strings that don't follow these env-specific rules so deployment was pretty quick.
Happy to help continuing to work through this, although it sounds like the IEEE standard may have caught up with az containerapps, makes sense since this package is in preview.

@evklein This isn’t a CLI issue. This occurs in the portal as well. This bug is a duplicate of this issue on the container apps github repo: https://github.com/microsoft/azure-container-apps/issues/308 . So we will close this as a duplicate and you can track this issue in the container apps repo.