ERROR: electron main.js  while loading shared libraries: cannot open shared file: no such file or directory

I am trying to install OpenBazaar-Client on ubuntu machine everything went fine except npm start.
Operating System (OS and version): Ubuntu
This is the error shown in the terminal.
`
root@anything:~/OpenBazaar-Client# npm start

<EMAIL_ADDRESS>start /root/OpenBazaar-Client
electron main.js

/root/OpenBazaar-Client/node_modules/electron-prebuilt/dist/electron: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
npm ERR! Linux 4.4.0-34-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! node v5.12.0
npm ERR! npm  v3.8.6
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR<EMAIL_ADDRESS>start: electron main.js
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>start script 'electron main.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the OpenBazaar package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     electron main.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs OpenBazaar
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls OpenBazaar
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     /root/OpenBazaar-Client/npm-debug.log
`

As a first step, try running "npm install" again a few times to make sure all the dependencies are installed.
Sometimes it takes a few times to catch all the sub-dependencies.

Ran npm install 10 times nothing worked gives the same error. Is there anything wrong with the version of electron-prebuilt?

The version of electron-prebuilt it's using should be fine, you can try changing it to a more recent version, we haven't tested that though.

Manually installed all the dependencies which are shown in the error but still having the same error.
`root@anything:~/OpenBazaar-Client# npm start

<EMAIL_ADDRESS>start /root/OpenBazaar-Client
electron main.js

npm ERR! Linux 4.4.0-34-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! node v5.12.0
npm ERR! npm  v3.8.6
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>start: electron main.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>start script 'electron main.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the OpenBazaar package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     electron main.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs OpenBazaar
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls OpenBazaar
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     /root/OpenBazaar-Client/npm-debug.log
`

can you try to delete you node_modules folder and then do a npm cache clean and then re-do the npm install?

Still same @rmisio

I also have this exact same error. Running Ubuntu 16.04.1 LTS

Same issues here on Arch linux. Appears to be an issue with the way modules are being loaded in main.js
Electron requires importing the modules in one of two forms:
require ('electron').app;

or
const {app} = require ('electron');

When I tried to switch to importing all of the Electron modules over to one of these methods, it broke a lot of stuff with naming. Eventually got the client to launch, but it is not loading the template correctly. Most likely due to some change in methods and modules in the Electron library.
Full disclosure: I am not a Node developer, so definitely open and grateful for any help/advice.

I get the following error message while starting the OpenBazaar client with npm start:
/home/fturco/software/openbazaar-client/node_modules/electron/dist/electron: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory

Is GTK+ required in order to run OpenBazaar? On my systems I only install Qt applications...

I believe gtk is required for Electron which we use. Is this a manual install @fturco ?

Yes, I manually installed everything from git.

And you're building the latest Electron? It seemed like this was a problem at one point but got resolved in a later version.

<EMAIL_ADDRESS>according to npm list.

Just had this issue on windows 10 / WSL-ubuntu.
rames@Red-Slash:~/Git/electron-quick-start$ yarn install
yarn install v1.2.1
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.18s.
rames@Red-Slash:~/Git/electron-quick-start$ yarn run start
yarn run v1.2.1
$ electron .
/home/rames/Git/electron-quick-start/node_modules/electron/dist/electron: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

@ramses0  How to do can run electron  on windows 10 /wsl-ubuntu ^_^

@Yangfan2016 this repo is no longer being maintained. Please use https://github.com/OpenBazaar/openbazaar-desktop


generating invalid instances

Feature description
It would be useful to generate an invalid object by supplying a model:
class C {
  public String field1;

  public static Model<C> model() {
    return ... model of C having non nullable field1 with maxLength 10
  }
}

then `Instancio.invalid(C.model()).stream()` would produce C instances with field1=null amd field1 having more than 10 chars.

@adrian-herscu thank you for the suggestion. I assume the use case for this feature is to test validation logic. I was thinking about how this might work. It seems to me there could be a lot of cases where it's not clear what "invalid" is, especially when there are selectors for multiple fields (e.g. should one/some/all of them invalid?). Without know the expected result, it will be tricky to make an assertion other than assertTrue or assertFalse. It will also add quite a bit of complexity to implement such a feature. For this reason, I think it's not worth adding to the library, at least for now.


Associate scale mode labels with with corresponding switch (#895)

Description of PR
This PR allows labels to be clicked/tapped for scale mode toggle switches, increasing the click/tap area.
Type of PR

[x] Bugfix
[ ] New feature

Relevant Issues
Fixes #895...
Checklist

[x] Compiles and passes lint tests
[x] Properly formatted
[x] Tested on desktop
[x] Tested on phone

Screenshots

This is such a cool little fix, didn't know this was possible! Thank you :)


Searching for csproj, vbproj, fsproj that uses Microsoft.Net.Sdk.Web

Add UTs for this change

Can you make sure that the assumption about "microsoft.net.sdk.web" is correct in case of fsproj as well.

Can you make sure that the assumption about "microsoft.net.sdk.web" is correct in case of fsproj as well.

Do verify this before you merge the PR. As when we devised this logic, we only thought and verified it for csproj files. Verification for fsproj and vbproj was never done.
Based on your verification, we will either only provide this for csproj or all (csproj, vbproj and fsproj)

Can you make sure that the assumption about "microsoft.net.sdk.web" is correct in case of fsproj as well.

Do verify this before you merge the PR. As when we devised this logic, we only thought and verified it for csproj files. Verification for fsproj and vbproj was never done.
Based on your verification, we will either only provide this for csproj or all (csproj, vbproj and fsproj)

Yeah, this is verified for csproj and fsproj. For visual basic i think it's supported from .net core 3, will check before merging

Can you make sure that the assumption about "microsoft.net.sdk.web" is correct in case of fsproj as well.

Do verify this before you merge the PR. As when we devised this logic, we only thought and verified it for csproj files. Verification for fsproj and vbproj was never done.
Based on your verification, we will either only provide this for csproj or all (csproj, vbproj and fsproj)

Yeah, this is verified for csproj and fsproj. For visual basic i think it's supported from .net core 3, will check before merging

In case of vbProj, if it is only valid for .Net Core 3.0 and above, then we should not use this logic for vbproj. 3.0 will be RC in July and GA in September, till then its under preview.


npm install fails with "error: ‘class v8::Object’ has no member named ‘ForceSet’" on node-sass with node v10.15.1

094bae534b6c10602978efc2fe8ebdb51b29c57e Ubuntu 18.10.
It works on nodejs v8.11.1 though.
One of the modules depends on node-sass, but the required version of node-saas does not support newer node, the error observed is the same as: https://github.com/sass/node-sass/issues/2549
npm list contains:
─┬<EMAIL_ADDRESS>│ ├──<EMAIL_ADDRESS>deduped
│ ├──<EMAIL_ADDRESS>│ ├─┬<EMAIL_ADDRESS>
gulp-sass should ideally be updated to a version that supports the newer node LTS.
Would also be good to specify the supported nodejs version if not already done, idealy with .nvmrc.

Hi @cirosantilli Got any updates? I also experience this issue.

@xiandalisay nope! I'll post if I do. I just felt https://github.com/balderdashy/sails might be a better idea, this is too bare for me :-)

Same issue here.
Node v10.16.0

@Zenoo It would be better to downgrade to v8 as well.

Can you try now with master?


angular2 rc6 integration

Would you please upgrade to support angular-rc6?
zone.js:484 Unhandled Promise rejection: Template parse errors:
'delete-icon' is not a known element:
1. If 'delete-icon' is an Angular component, then verify that it is part of this module.
2. If 'delete-icon' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the<EMAIL_ADDRESS>of this component to suppress this message. ("

            <!-- remove 'x' button -->
            [ERROR ->]<delete-icon class="tag__remove-button"
                  aria-label="Remove tag"
                  ("): TagInput@29:12
Can't bind to 'focusFirstElement' since it isn't a known property of 'ng2-dropdown-menu'.
1. If 'ng2-dropdown-menu' is an Angular component and it has 'focusFirstElement' input, then verify that it is part of this module.
2. If 'ng2-dropdown-menu' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the<EMAIL_ADDRESS>of this component to suppress this message.
 ("
        <div *ngIf="autocomplete">
            <ng2-dropdown>
                <ng2-dropdown-menu [ERROR ->][focusFirstElement]="false"
                                   (keydown)="escapeDropdown($event)"
   "): TagInput@54:35
Can't bind to 'value' since it isn't a known property of 'ng2-menu-item'.
1. If 'ng2-menu-item' is an Angular component and it has 'value' input, then verify that it is part of this module.
2. If 'ng2-menu-item' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the<EMAIL_ADDRESS>of this component to suppress this message.
 ("               <ng2-menu-item *ngFor="let item of itemsMatching"
                                   [ERROR ->][value]="item">
                        {{ item }}
                    </ng2-menu-item>
"): TagInput@58:35
'ng2-menu-item' is not a known element:
1. If 'ng2-menu-item' is an Angular component, then verify that it is part of this module.
2. If 'ng2-menu-item' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the<EMAIL_ADDRESS>of this component to suppress this message. ("own)="escapeDropdown($event)"
                                   offset="60 0">
                    [ERROR ->]<ng2-menu-item *ngFor="let item of itemsMatching"
                                   [value]="item">
"): TagInput@57:20
'ng2-dropdown-menu' is not a known element:
1. If 'ng2-dropdown-menu' is an Angular component, then verify that it is part of this module.
2. If 'ng2-dropdown-menu' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the<EMAIL_ADDRESS>of this component to suppress this message. ("
        <div *ngIf="autocomplete">
            <ng2-dropdown>
                [ERROR ->]<ng2-dropdown-menu [focusFirstElement]="false"
                                   (keydown)="escapeDr"): TagInput@54:16
'ng2-dropdown' is not a known element:
1. If 'ng2-dropdown' is an Angular component, then verify that it is part of this module.
2. If 'ng2-dropdown' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the<EMAIL_ADDRESS>of this component to suppress this message. ("

        <div *ngIf="autocomplete">
            [ERROR ->]<ng2-dropdown>
                <ng2-dropdown-menu [focusFirstElement]="false"
                       "): TagInput@53:12 ; Zone: <root> ; Task: Promise.then ; Value: Error: Template parse errors:(…) Error: Template parse errors:
'delete-icon' is not a known element:
1. If 'delete-icon' is an Angular component, then verify that it is part of this module.
2. If 'delete-icon' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the<EMAIL_ADDRESS>of this component to suppress this message. ("

            <!-- remove 'x' button -->
            [ERROR ->]<delete-icon class="tag__remove-button"
                  aria-label="Remove tag"
                  ("): TagInput@29:12
Can't bind to 'focusFirstElement' since it isn't a known property of 'ng2-dropdown-menu'.
1. If 'ng2-dropdown-menu' is an Angular component and it has 'focusFirstElement' input, then verify that it is part of this module.
2. If 'ng2-dropdown-menu' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the<EMAIL_ADDRESS>of this component to suppress this message.
 ("
        <div *ngIf="autocomplete">
            <ng2-dropdown>
                <ng2-dropdown-menu [ERROR ->][focusFirstElement]="false"
                                   (keydown)="escapeDropdown($event)"
   "): TagInput@54:35
Can't bind to 'value' since it isn't a known property of 'ng2-menu-item'.
1. If 'ng2-menu-item' is an Angular component and it has 'value' input, then verify that it is part of this module.
2. If 'ng2-menu-item' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the<EMAIL_ADDRESS>of this component to suppress this message.
 ("               <ng2-menu-item *ngFor="let item of itemsMatching"
                                   [ERROR ->][value]="item">
                        {{ item }}
                    </ng2-menu-item>
"): TagInput@58:35
'ng2-menu-item' is not a known element:
1. If 'ng2-menu-item' is an Angular component, then verify that it is part of this module.
2. If 'ng2-menu-item' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the<EMAIL_ADDRESS>of this component to suppress this message. ("own)="escapeDropdown($event)"
                                   offset="60 0">
                    [ERROR ->]<ng2-menu-item *ngFor="let item of itemsMatching"
                                   [value]="item">
"): TagInput@57:20
'ng2-dropdown-menu' is not a known element:
1. If 'ng2-dropdown-menu' is an Angular component, then verify that it is part of this module.
2. If 'ng2-dropdown-menu' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the<EMAIL_ADDRESS>of this component to suppress this message. ("
        <div *ngIf="autocomplete">
            <ng2-dropdown>
                [ERROR ->]<ng2-dropdown-menu [focusFirstElement]="false"
                                   (keydown)="escapeDr"): TagInput@54:16
'ng2-dropdown' is not a known element:
1. If 'ng2-dropdown' is an Angular component, then verify that it is part of this module.
2. If 'ng2-dropdown' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the<EMAIL_ADDRESS>of this component to suppress this message. ("

        <div *ngIf="autocomplete">
            [ERROR ->]<ng2-dropdown>
                <ng2-dropdown-menu [focusFirstElement]="false"
                       "): TagInput@53:12

Hi @sbahmani,
the Angular team is moving fast! Will do at some point this or next week 👍

Hi @Gbuomprisco ,Thanks :+1:

Hi!
I just published the new version. I haven't tested it yet, but hopefully works!

I use systemjs and not work :
app/app.module.ts(20,32): error TS2306: File 'node_modules/ng2-tag-input/index.ts' is not a module.
app/app.module.ts(20,32): error TS2656: Exported external package typings file 'node_modules/ng2-tag-input/index.ts' is not a module. Please contact the package author to update the package definition.

systemjs:
/**
 * System configuration for Angular 2 samples
 * Adjust as necessary for your application needs.
 */
(function (global) {
    System.config({
        paths: {
            // paths serve as alias
            'npm:': 'assets/node_modules/'
        },
        // map tells the System loader where to look for things
        map: {
            // our app is within the app folder
            app: 'assets/app',
            // angular bundles
            '@angular/core': <EMAIL_ADDRESS>            '@angular/common': <EMAIL_ADDRESS>            '@angular/compiler': <EMAIL_ADDRESS>            '@angular/platform-browser': <EMAIL_ADDRESS>            '@angular/platform-browser-dynamic': <EMAIL_ADDRESS>            '@angular/http': <EMAIL_ADDRESS>            '@angular/router': <EMAIL_ADDRESS>            '@angular/forms': <EMAIL_ADDRESS>            // angular testing umd bundles
            '@angular/core/testing': <EMAIL_ADDRESS>            '@angular/common/testing': <EMAIL_ADDRESS>            '@angular/compiler/testing': <EMAIL_ADDRESS>            '@angular/platform-browser/testing': <EMAIL_ADDRESS>            '@angular/platform-browser-dynamic/testing': <EMAIL_ADDRESS>            '@angular/http/testing': <EMAIL_ADDRESS>            '@angular/router/testing': <EMAIL_ADDRESS>            '@angular/forms/testing': <EMAIL_ADDRESS>            // other libraries
            'rxjs': 'npm:rxjs',
            'angular2-in-memory-web-api': 'npm:angular2-in-memory-web-api',
            'ng2-tag-input': 'npm:ng2-tag-input',
            'ng2-uploader': 'npm:ng2-uploader',
        },
        // packages tells the System loader how to load when no filename and/or no extension
        packages: {
            app: {
                main: './main.js',
                defaultExtension: 'js'
            },
            rxjs: {
                defaultExtension: 'js'
            },
            'angular2-in-memory-web-api': {
                main: './index.js',
                defaultExtension: 'js'
            },
            'ng2-tag-input': {
                main: './index.js',
                defaultExtension: 'js'
            },
            'ng2-uploader': {
                main: './index.js',
                defaultExtension: 'js'
            }
        }
    });
})(this);

Hi @sbahmani, can you retry with the new version please? Thanks!

Hi @Gbuomprisco , Thanks. There is a little problem, in index.ts file please change const components = require('./ng2-tag-input.bundle.js'); to const components = require('./dist/ng2-tag-input.bundle.js'); and everything is OK.

Hi @sbahmani, does it work with the new version?


Remove 'Group' and create 'CamelCase' option for fileNameCasing

Remove Group option: move its meaning and functionality to the None option.
Create CamelCase option that will imply on:

First character will be always lowercase
First character counts as first char on name and first char every . occurrence
IOW: first char of every dot-sepparated word will be lowercase converted

CamelCase will also be the default option from now on.
This way, from now on the files will be always grouped by its first created filename's case.
With CamelCase, when someone has a file that would be named NamesOPace.ClassJBDName.js, the file will be named namesOPace.classJBDName.js instead. (there's no typo on the file names casing!)

CamelCase uses as word separator any character which is not between a and z.
Notice this will include localized characters as ç, é, á. They're all 'words separator'.
For the low likeliness of people relying on accents to source files naming, I thought it was unworthy the localization overhead.


Support Firefox Extension

After attempting a side load
Looks like some alternate code will need to be written, the current extension relies on service worker in manifest v3

https://github.com/mozilla/web-ext/issues/2532

Hmm, this might be a more challenging task that I thought
https://extensionworkshop.com/documentation/develop/manifest-v3-migration-guide/


Delete setup.py, MANIFEST.in and move configuration to pyproject.toml

Delete setup.py and move some configuration to pyproject.toml

With the release of pip v19.1.1 , editable installs are again allowed in the presence of pyproject.toml.

Additionally, deleted MANIFEST.in because of the following:

https://packaging.python.org/en/latest/guides/using-manifest-in/#how-files-are-included-in-an-sdist

following files are included in a source distribution:

all files specified by the package_data and data_files setup() arguments
the file specified by the license_file option in setup.cfg (setuptools 40.8.0+)

deleted codecov because we don't actually use it

That is not due to my PR and is a separate issue. Either codecov is being flaky or our unit tests are not properly being run or we don't have proper coverage.

The most recently merged PR has full coverage for it: https://app.codecov.io/gh/alteryx/woodwork/compare/1410/tree/woodwork/statistics_utils
I'm rerunning the tests to be sure, we don't want to lose coverage for an entire functionality

@ParthivNaresh This is a common issue with codecov, it's being flaky/inaccurate.


custom port in url is ignored

Describe the bug
A clear and concise description of what the bug is.
To Reproduce

I configured an url with a custom port: https://host.blah..net:6443
The check yields the error connect ECONNREFUSED 172.x.y..13:443

Expected behavior
Check shoudl succeed, referencing the exact port 6443
Screenshots

Desktop (please complete the following information):

Uptime Kuma Version: 1.0.7
Using Docker?: Using container louislam/uptime-kuma:1.0.7 on Kubernetes
OS: K3OS
Browser: firefox

I have just tried to replicate the error but all seems to be working fine.
Are you sure the port (in your case 6443) is reachable by uptime-kuma?
Please check ingress firewall rules.

I must admit it seems to be a strange issue. Another config where set that up (other host, other port) didn't have the issue.
I now just tried adding the same check a second time, and can't reproduce it again myself :-(
I may have filed this bug a bit too quick, my apologies.
On the other hand, as shown in the screenshot, there was a clear issue where the tested port (443) was different than the configured port (6443), so that remains some issue, I think?

Indeed. @louislam What is your thought?

My guess is that Uptime Kuma here is a bit confused you, because Uptime Kuma only shows the first down beat's error msg in consequence in the event list.
You can hover the beat to see the actual error.

I am not familiar with K8s, but Uptime Kuma is a stateful application, the number of replicas should set to 1.

Yes, I checked the beat too, and yes, it is deployed as a single pod.
The one thing I might have overlooked, is I initially forgot to put the 6443 port into it, and updated it right after. That might have caused the effect as seen in the screenshot.
But can't remember if that was the case.

Yeah as you and I cant reproduce this error, I guess what you described was the reason and this issue can be closed.

Yeah as you and I cant reproduce this error, I guess what you described was the reason and this issue can be closed.

Agree, I close for now, free feel to re-open if you see the problem again.


Restrict gardenlet access for Seed resources

How to categorize this issue?

/area security
/kind enhancement
What would you like to be added:
gardenlet has wide-range permissions for basically all Seeds: https://github.com/gardener/gardener/blob/48169a21cfbfd5a515a7374c729c9de9111e5bd2/pkg/admissioncontroller/webhook/auth/seed/authorizer.go#L198-L203
This mostly has legacy reasons (e.g., update and patch can be moved from "always allowed" to "only allowed when allowed by the graph).
The delete verb is needed when gardenlet deletes a Seed belonging to a ManagedSeed it is responsible for. We don't have proper handling in the graph for this case, so let's add it to move delete away from "always allowed".
In order to also improve get/list/watch (i.e., in order to add a field/label selector for Seeds on gardenlet's cache configuration), we have to

remove this read operation and replace it with a controller in GCM that sets a constraint in the Shoot status to indicate whether the destination seed is ready for migration
maintain seed labels on Seeds (like we do it for Shoots) for

their own name (a Seed named foo will get label seed.gardener.cloud/foo=true)
the name of their parent Seed in case it is a ManagedSeed (a Seed named foo that is created out of a ManagedSeed which references a Shoot running a Seed called bar will get label seed.gardener.cloud/bar=true).

Why is this needed:
Improve security by restricting gardenlet access to only resources it really needs to see/touch.

/assign


[6.0] AsyncIteratorProtocol conformance fixes

Explanation: Address two issues that make conformance to AsyncIteratorProtocol harder to conform to than they need to be. First, correctly infer the thrown error type from next() if it adopts typed throws but next(isolation:) is defaulted. Second, default next() in terms of next(isolation:) so one need only implement one of them.
Issue: rdar://125446918 & rdar://125447861
Original PR: https://github.com/apple/swift/pull/72673
Risk: Low. The change only impacts associated type inference in a narrow case for new code (where next() has adopted type throws) and makes conformance to AsyncIteratorProtocol simpler.
Testing: New tests.

@swift-ci please test

@swift-ci please test Windows

@swift-ci please test macOS

@swift-ci please test


SEO Metadata not updated in source code with nuxt 3

Environment

Operating System: Windows_NT
Node Version:     v18.19.0
Nuxt Version:     3.11.0
CLI Version:      3.10.1
Nitro Version:    2.9.4
Package Manager<EMAIL_ADDRESS>Builder:          -
User Config:      ssr, devtools, app, vite, css, modules, hooks, build, runtimeConfig
Runtime Modules<EMAIL_ADDRESS><EMAIL_ADDRESS>()
Build Modules:    -

Reproduction
N/A
Describe the bug
Hi,
I want to have some SEO metadata on my nuxt 3 project. I have the following nuxt.config.ts :
export default defineNuxtConfig({
  ssr: false,
  devtools: { enabled: true },
  app: {
    head: {
      title: 'Connexion...',
      meta: [
        { charset: 'utf-8' },
        { name: 'viewport', content: 'width=device-width, initial-scale=1' },
        { hid: 'description', name: 'description', content: 'mywebsite' },
        { hid: 'og:title', name: 'og:title', content: 'test title' },
        { hid: 'og:description', name: 'og:description', content: 'my website' },
        { hid: 'og:type', name: 'og:type', content: 'website' },
        { hid: 'og:url', name: 'og:url', content: '/' },
        { hid: 'og:image', name: 'og:image', content: '/' },
        { hid: 'og:site_name', name: 'og:site_name', content: 'test title' },
        { hid: 'twitter:card', name: 'twitter:card', content: 'summary_large_image' },
        { hid: 'twitter:site', name: 'twitter:site', content: '@test' },
        { hid: 'twitter:title', name: 'twitter:title', content: 'test title' },
        { hid: 'twitter:description', name: 'twitter:description', content: 'my website' },
        { hid: 'twitter:creator', name: 'twitter:creator', content: '@test' },
        { hid: 'og:image', name: 'og:image', content: '/' },

      ],
      link: [
        { rel: 'icon', type: 'image/png', href: '/favicon.png' }
      ],
      script: [
        ...
      ]
    },
  },

So I have some metadata in my source code (on all pages) that are fixed. I can see them when I select "view source code" on chrome. What I want is for each page to have their own metadata, and I want the source code to change accordingly.
For example, in Home.vue
<template>
 <div>
   Hello world
 </div>
</template>

<script>
export default defineNuxtComponent({
 setup() {
  useSeoMeta({
    title: 'My Amazing Site',
    ogTitle: 'My Amazing Site',
    description: 'This is my amazing site, let me tell you all about it.',
    ogDescription: 'This is my amazing site, let me tell you all about it.',
    ogImage: 'https://example.com/image.png',
    twitterCard: 'summary_large_image',
 })
}

})
</script>

I would expect the title, description, and so on... to change, and it does but not in the source code of the page. On the source code it's still the default metadata that i definied in nuxt.config.ts I have tried to use useHead but it's the same result.
Additional context
No response
Logs
No response

When not using SSR (ssr: false), the values won't change in the HTML as your code only runs on the client side.

It was working fine in nuxt 2, it's just not the case anymore in nuxt 3 ?

The behavior should be similar in Nuxt 2.
While the data will be updated in the client (in Nuxt 2 and Nuxt 3), crawlers won't be able to get the data from the initial HTML, so for example og tags won't be taken into account.

The behavior should be similar in Nuxt 2. While the data will be updated in the client (in Nuxt 2 and Nuxt 3), crawlers won't be able to get the data from the initial HTML, so for example og tags won't be taken into account.

I have exactly the same problem as yours. I got data from requests and assigned by useSeoMeta. the FB or LINE can not get the og:image & og:title. It seems dynamic seo meta is not working, or crawlers can only get the static data.

The behavior should be similar in Nuxt 2. While the data will be updated in the client (in Nuxt 2 and Nuxt 3), crawlers won't be able to get the data from the initial HTML, so for example og tags won't be taken into account.

I have exactly the same problem as yours. I got data from requests and assigned by useSeoMeta. the FB or LINE can not get the og:image & og:title. It seems dynamic seo meta is not working, or crawlers can only get the static data.

Nothing is broken here. This is a downside of not using SSR.


Gracefully display assets without available market data

Overview
Continuation of https://github.com/shapeshift/web/issues/921
References and additional details
seehttps://github.com/shapeshift/web/issues/921
Acceptance Criteria
see: https://github.com/shapeshift/web/issues/921
Need By Date
No response
Screenshots/Mockups
No response
Ownership

[X] If my bounty needs engineering or needs product I have added the respective labels on the right
[X] As the sponsor of this bounty I will review the changes in a preview environment (ops/product) or review the PR (engineering)

Estimated effort
4 hours
Sponsor / Stakeholder
0xean
Bounty Hunters

Join our discord
Include an expected timeline for you to complete work in the work plan when you apply for this bounty!
Please refer to this link for some basic info
Please do not start work on this issue until you are approved in Gitcoin.

https://github.com/shapeshift/web/issues/921


Unexpected error while acquiring application default credentials: Could not load the default credentials

(node:30216) UnhandledPromiseRejectionWarning: Error: Unexpected error while acquiring application default credentials: Could not load the default credentials. Browse to https://developers.google.com/accounts/docs/application-default-credentials for more information.
at GoogleAuth. (C:\Users\Jengas\Documents\GitHub\esmod-discord\node_modules\google-auth-library\build\src\auth\googleauth.js:235:31)
at step (C:\Users\Jengas\Documents\GitHub\esmod-discord\node_modules\google-auth-library\build\src\auth\googleauth.js:47:23)
at Object.next (C:\Users\Jengas\Documents\GitHub\esmod-discord\node_modules\google-auth-library\build\src\auth\googleauth.js:28:53)
at fulfilled (C:\Users\Jengas\Documents\GitHub\esmod-discord\node_modules\google-auth-library\build\src\auth\googleauth.js:19:58)
at process._tickCallback (internal/process/next_tick.js:68:7)
(node:30216) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)
(node:30216) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

I fixed this by setting GOOGLE_APPLICATION_CREDENTIALS to path of the credentials file.

Thanks, @phamhathanh


[DUMP] [CB3S] [BK7231N] Eacam 24W RGBCW Ceiling Lamp

PCB: SK-M24WLED-TY/C/E-V3

Ceiling-Down-light-sk-m24wled-ty-c-e-v3-readResult_BK7231N_QIO_2023-19-4--14-49-16.zip

Added as Tuya Generic SK-M24WLED-TY-C-E-V3 24W RGBCT Ceiling Light.  Unfortunately, this device doesn't have configuration data in storage.

Found the pins by checking the traces:
  "pins": {
    "6": "PWM;4",
    "7": "PWM;3",
    "8": "PWM;0",
    "24": "PWM;1",
    "26": "PWM;2"
  },

Hi, sorry for opening this.
I have the same ceiling lamp with the same pcb board.
Yours must have remote control as well?
I managed to flash esphome using cloudcutter. However, I'm contemplating if I made good decision.
Can't figure out how to restore remote functionality, or make functionalities as stock as possible.
Would you mind sharing your yaml/config?


demos: aesgcm add internal IV encryption

Demonstrate how to use internally generated IV, retrieve it, and also
how to check service indicator if the IV was interanally generated or
not.
Output with OpenSSL 3.5
AES GCM Encrypt (external IV):
Plaintext:
0000 - f5 6e 87 05 5b c3 2d 0e-eb 31 b2 ea cc 2b f2 a5   .n..[.-..1...+..
Ciphertext:
0000 - f7 26 44 13 a8 4c 0e 7c-d5 36 86 7e b9 f2 17 36   .&D..L.|.6.~...6
Service indicator for OSSL_CIPHER_PARAM_AEAD_IV_GENERATED is: 0
IV:
0000 - 99 aa 3e 68 ed 81 73 a0-ee d0 66 84               ..>h..s...f.
Tag:
0000 - 67 ba 05 10 26 2a e4 87-d7 37 ee 62 98 f7 7e 0c   g...&*...7.b..~.

AES GCM Encrypt (internal IV):
Plaintext:
0000 - f5 6e 87 05 5b c3 2d 0e-eb 31 b2 ea cc 2b f2 a5   .n..[.-..1...+..
Ciphertext:
0000 - 71 a2 96 af d2 47 cd 36-0c 8c 4f 49 6f 96 b9 c0   q....G.6..OIo...
Service indicator for OSSL_CIPHER_PARAM_AEAD_IV_GENERATED is: 1
IV:
0000 - 86 9c 89 b5 06 c0 3c 6b-7e dd 5d 40               ......<k~.]@
Tag:
0000 - a4 4c f7 84 69 f4 a4 75-45 af 45 41 83 09 e5 f8   .L..i..uE.EA....

AES GCM Decrypt:
Ciphertext:
0000 - f7 26 44 13 a8 4c 0e 7c-d5 36 86 7e b9 f2 17 36   .&D..L.|.6.~...6
Plaintext:
0000 - f5 6e 87 05 5b c3 2d 0e-eb 31 b2 ea cc 2b f2 a5   .n..[.-..1...+..
Tag Verify Successful!

Output with OpenSSL 3.0
AES GCM Encrypt (external IV):
Plaintext:
0000 - f5 6e 87 05 5b c3 2d 0e-eb 31 b2 ea cc 2b f2 a5   .n..[.-..1...+..
Ciphertext:
0000 - f7 26 44 13 a8 4c 0e 7c-d5 36 86 7e b9 f2 17 36   .&D..L.|.6.~...6
Service indicator for OSSL_CIPHER_PARAM_AEAD_IV_GENERATED is not available
IV:
0000 - 99 aa 3e 68 ed 81 73 a0-ee d0 66 84               ..>h..s...f.
Tag:
0000 - 67 ba 05 10 26 2a e4 87-d7 37 ee 62 98 f7 7e 0c   g...&*...7.b..~.

AES GCM Encrypt (internal IV):
Plaintext:
0000 - f5 6e 87 05 5b c3 2d 0e-eb 31 b2 ea cc 2b f2 a5   .n..[.-..1...+..
Ciphertext:
0000 - 22 f7 27 35 20 91 e9 a7-38 09 ea 8f 18 13 fe 34   ".'5 ...8......4
Service indicator for OSSL_CIPHER_PARAM_AEAD_IV_GENERATED is not available
IV:
0000 - 49 fc f2 69 92 ab 57 ec-58 7d 80 50               I..i..W.X}.P
Tag:
0000 - 97 69 28 da 4a 0b 5b 04-0e 56 1e bf 9e 8f b1 0d   .i(.J.[..V......

AES GCM Decrypt:
Ciphertext:
0000 - f7 26 44 13 a8 4c 0e 7c-d5 36 86 7e b9 f2 17 36   .&D..L.|.6.~...6
Plaintext:
0000 - f5 6e 87 05 5b c3 2d 0e-eb 31 b2 ea cc 2b f2 a5   .n..[.-..1...+..
Tag Verify Successful!

Observe how OSSL_CIPHER_PARAM_AEAD_IV_GENERATED query remains unchanged with old OpenSSL.

This PR is in a state where it requires action by @openssl/committers but the last update was 30 days ago

I'm not sure we want to mix FIPS requirements into the demos.  The demos are meant to be simple but functional, adding "features" is counter to their intent IMO.
That said, a FIPS indicator demo would be a good thing.

I'm not sure we want to mix FIPS requirements into the demos. The demos are meant to be simple but functional, adding "features" is counter to their intent IMO.
That said, a FIPS indicator demo would be a good thing.

This demo is not FIPS specific. aes-gcm is not safe, unless care is taken to use unique IVs. Hence I would say safely using aes-gcm is aes-gcm requirement foremost. Given past security exploits related to IV reuse (i.e. PS3 private key leak), it is reasonable that cautious developers will check this flag with any provider. This flag is set by both default and fips providers.
Example:
$ ./util/wrap.pl ./apps/openssl list -providers
Providers:
  default
    name: OpenSSL Default Provider
    version: 3.5.0
    status: active

$ ./util/wrap.pl ./demos/cipher/aesgcm
AES GCM Encrypt (external IV):
Plaintext:
0000 - f5 6e 87 05 5b c3 2d 0e-eb 31 b2 ea cc 2b f2 a5   .n..[.-..1...+..
Ciphertext:
0000 - f7 26 44 13 a8 4c 0e 7c-d5 36 86 7e b9 f2 17 36   .&D..L.|.6.~...6
Service indicator for OSSL_CIPHER_PARAM_AEAD_IV_GENERATED is: 0
IV:
0000 - 99 aa 3e 68 ed 81 73 a0-ee d0 66 84               ..>h..s...f.
Tag:
0000 - 67 ba 05 10 26 2a e4 87-d7 37 ee 62 98 f7 7e 0c   g...&*...7.b..~.

AES GCM Encrypt (internal IV):
Plaintext:
0000 - f5 6e 87 05 5b c3 2d 0e-eb 31 b2 ea cc 2b f2 a5   .n..[.-..1...+..
Ciphertext:
0000 - 4b f7 71 90 1d ee 06 7a-e1 1a d1 25 5e 0e 96 9b   K.q....z...%^...
Service indicator for OSSL_CIPHER_PARAM_AEAD_IV_GENERATED is: 1
IV:
0000 - 80 76 b7 28 7c 16 dd 8b-7e 9b 38 af               .v.(|...~.8.
Tag:
0000 - 76 c1 cc cd f7 13 f9 14-cf a1 46 16 66 fb 93 12   v.........F.f...

AES GCM Decrypt:
Ciphertext:
0000 - f7 26 44 13 a8 4c 0e 7c-d5 36 86 7e b9 f2 17 36   .&D..L.|.6.~...6
Plaintext:
0000 - f5 6e 87 05 5b c3 2d 0e-eb 31 b2 ea cc 2b f2 a5   .n..[.-..1...+..
Tag Verify Successful!

The OSSL_CIPHER_PARAM_AEAD_IV_GENERATED parameter is rather specific to FIPS.  It is the indicator for this operation after all.
The GCM nonce is an entire other topic IMO.

Right now OSSL_CIPHER_PARAM_AEAD_IV_GENERATED is not scoped to fips-only provider.
Is it a mistake it is not called _FIPS_ like OSSL_SIGNATURE_PARAM_FIPS_VERIFY_MESSAGE and other similar fips-provider-only parameters?

Given past security exploits related to IV reuse (i.e. PS3 private key leak), it is reasonable that cautious developers will check this flag with any provider

Actually, history shows that most developers using crypto are not cautious. For me, the most important part of this code is the comment
Only pass in externally generated IV, if it is externally ensured to not be repeating

... which makes me wonder if the argument random_iv should be called external_iv.
And if Pass NULL for a randomly generated IV should be Pass NULL to have the provide generate a suitable random IV

I'm not sure we want to mix FIPS requirements into the demos. The demos are meant to be simple but functional, adding "features" is counter to their intent IMO.
That said, a FIPS indicator demo would be a good thing.

I'm confused, as to which actions I am supposed to take to address this feedback.
Should I convert this demo to only ever do encrypt with random IV, retrieve IV, then decrypt using it? Such that only a single safe direct aes-gcm usage is shown. And those that implement TLS or need to set IV can figure out how to do that safely themselves.
Should I create a separate demo file with just doing aesgcm encrypt with random IV?
Should it be instead moved to aesgcm manpage example section?
Note that for FIPS submission documentation must be provided as to how to use service indicators, this is a service indicator, and right now there is no example on how to use it, beyond manually putting together various APIs to get the parameter. As an average developer, when I did so, my first attempt was not best implementation having missed using OSSL_PARAM_modified() API. Thus imho, this demo would be useful to anybody tasked with using aesgcm for the first time.
I am really worried that demo code shows insecure way of using aesgcm, given it uses a fixed IV.

This PR is in a state where it requires action by @openssl/committers but the last update was 30 days ago

What can I do to land this?

Drop the indicator stuff and request a review. I wouldn't mix it in.
The demo makes it clear the IV needs to be unique in its comments (they can always be expanded) but the caller is required to be aware of the algorithm requirements for IV handling in order to use the algorithm.
We don't have general warnings about AEAD in the documentation - it would not be unreasonable to add those - but we have not as a general rule written things in that style - there is an assumption of a level of awareness in developers using the APIs.
A separate PR adding additional warnings in the APIs related to GCM/AEAD would be a good idea (but does not belong in this PR).
The contribution is very much welcome and appreciated - but addressing the feedback from @paulidale I think is the only outstanding item - and then a gentle reminder to get two reviews to approve.


wip User, flight, pirep

I also saw that you had created an ImportFlights page. Don't you think it would be easier to make a modal ? Given that there is just a file input and a submit button

Yeah, probably 🤦🏻♂ , you think it should be better to call a Action::make with a modal?

Well in terms of UX it avoids having to change page only for a drag and drop so i think it might be worth it

Looks good, i think you can add the IconColumn to the active column too (I tested it and it worked well)
IconColumn::make('active')->label('Active')->color(fn ($record) => $record->active ? 'success' : 'danger')->icon(fn ($state) => $state ? 'heroicon-o-check-circle' : 'heroicon-o-x-circle'),
Then if everything is good on your side (if there is nothing you want to add to this PR) I think we will be good for merge

Yeah, let's merge this, i will try to do the flight import later, haven't found any way to do this work for now,


Add more config options in extension's setting

Right now the model name, as well as some API request params (temperature etc) are hardcoded in the extension. These can be exposed in extension's settings so that the user can play around with different combinations.

Instruction prompt can also be one of those params, say to provide more context about document and additional instructions.  It can be inserted before the ``${prompt}. ${subPrompt}:\n\n${text}`,

I noticed only gpt-3.5-instruct models - does it mean that models like gpt-4-turbo-preview don't work well?

I noticed only gpt-3.5-instruct models - does it mean that models like gpt-4-turbo-preview don't work well?

@vsukhoml Right now the extension is using the legacy v1/completions endpoint of OpenAI. For these endpoints only the instruct models work (along with the older davinci-002 and babbage-002 models which didn't seem to follow the instructions so I haven't included). More details here.
I do plan to move to the newer v1/chat/completions endpoints soon, and then the other models will work.

Got it, thanks a lot for clarification!

Got it, thanks a lot for clarification!

No problem.
Were you able to try out the new release? If you face any issue, please do let me know.
Apart from the config options, one other major point in the release was: securing the API Key (removed it from the settings.json—so it won't be visible in VSCode settings now—and moved it to VSCode's secretStorage).

Yes, it updated yesterday and seems to work fine. When I increased temperature I was able to get more varying outputs.
Moving key to secretStorage is a very good solution.


bug, objectEntries return undefined for optional props

objectEntries adds | undefined when passed an object with an optional field:
type Obj = {
  a?: string;
}

const x: Obj = {};
const y = objectEntries(x); // ['a', string | undefined][]

But this is wrong because the array would never have the value ['a', undefined] in it.
The problem is that typescript types Obj['a'] as string | undefined correctly because that would be the type you would get if you accessed the prop a on an object Obj; but Object.entries has different semantics as it doesn't access each //possible// prop to get it's value, it enumerates the existing ones.
I think this could be fixed by adding Required on the type:
export const objectEntries = Object.entries as <Type extends Record<PropertyKey, unknown>>(value: Type) => Array<[ObjectKeys<Type>, Required<Type>[ObjectKeys<Type>]]>;

y[0] should be ['a', string] | undefined so y[0][0] should be a typescript error.

https://stackoverflow.com/questions/72625430/how-can-i-get-tuple-type-from-object-with-array-of-keys

I dunno, doesn't this solve their problem?
type Out<T, X extends [...(keyof T)[]]> = { [K in keyof X]: T[X[K]] };

function keySelector<T, X extends readonly [...(keyof T)[]]>(obj: T, keys: X): Out<T, X> {
    // @ts-expect-error
    return keys.map(key => obj[key])
}

const resultVariadicTuple2 = keySelector({ A: "a", B: "b", C: 'c', X: 'x'} as const, ['A', 'B'] as const)

Probably could be simplified, I played around with their playground link...


Update sbt-scalajs, scalajs-compiler, ... to 1.9.0

Updates

org.scala-js:sbt-scalajs
org.scala-js:scalajs-compiler
org.scala-js:scalajs-library
org.scala-js:scalajs-test-bridge

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

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

labels: library-update, early-semver-major, semver-spec-major, commit-count:1

Superseded by #208.


Cannot add a second email address to PyPI account

Describe the bug
I have a single primary+verified mail address on my pypi account (mgerstel), and want to add a second address.
After clicking the 'Add email' button I get the following server response:

429 Too Many Requests
The action could not be performed because there were too many requests by the client.
Too many emails have been added to this account without verifying them. Check your inbox and follow the verification links. (IP: (redacted))

Expected behavior

Either a new email address should be added, or - if there are other unverified mail addresses on the account - those should be shown.
To Reproduce

https://pypi.org/manage/account/, no idea if other users are affected or not.
My Platform
Linux/Firefox ESR

Are you on a shared IP? I'm seeing lots of activity from the IP you logged in with today across many different accounts.

Thank you Dustin for looking into this. Yes, that IP may have 1200 staff behind it - not all of them on pypi of course, but I did ask some colleagues today to set up accounts. I will try again tomorrow :+1:

Sorry about that! You might understand how we usually interpret similar behavior to be 'spammy'.
Just verifying one email from an account created today will have the effect of resetting the rate limiter for that IP.

Tried again now, and it works. Thank you


Workflow interface: input / output / reports

By giving each workflow an inputnode, outputnode and reportnode, we can reduce the clutter within each workflow where sinking/derivatives are put on visual parity with processing nodes.
Reportlets can then be passed to an interface/workflow that constructs the full report, isolated from the processing/reportlet construction.
Similarly, it would be nice (though possibly not feasible) to reduce output sinks to at most one per sub-workflow, and ideally fewer, grabbing outputs from sub_wf.outputnode.

Could you explain a bit more what role the reportnode would play?
Please keep in mind that with the current architecture we need one datasink per reportlet, because we want as many reportlets in a partial report (when something fails). If we connect multiple reportles to one data sink and one of the interfaces creating reportlets fails none of them will be saved and all of them will be missin in the final report.

I might be missing something. Why is a datasink needed, as opposed to an interface that grabs the reportlets from their original locations in the working directory?
But to be (hopefully) a little clearer, the reportnode would collect and give named ports for each of the reportlets that a workflow generates. If the reportlet is undefined, we can skip over it, as we do now. The only thing that needs a sink here is the final report.
If this sounds like too much of a pain, NBD. I just find the reportlet derivatives to be very cluttering when I'm trying to understand a new workflow (or part of a workflow).

On Wed, Apr 19, 2017 at 11:13 AM, Chris Markiewicz<EMAIL_ADDRESS>
wrote:

I might be missing something. Why is a datasink needed, as opposed to an
interface that grabs the reportlets from their original locations in the
working directory?

We could do that, but this means we will heavily depend on the structure of
the working directory not changing over time.

But to be (hopefully) a little clearer, the reportnode would collect and
give named ports for each of the reportlets that a workflow generates. If
the reportlet is undefined, we can skip over it, as we do now. The only
thing that needs a sink here is the final report.

Ok - get it.

If this sounds like too much of a pain, NBD. I just find the reportlet
derivatives to be very cluttering when I'm trying to understand a new
workflow (or part of a workflow).

You mean the reportlet datasinks?

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/poldracklab/fmriprep/issues/456#issuecomment-295374016,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAOkp7OC0nktFL7mroRaqfJYP8cbplzCks5rxk7MgaJpZM4NB0Eo
.

We could do that, but this means we will heavily depend on the structure of
the working directory not changing over time.

Will it? Since the full reportlet path is what's passed to the report-constructor, it seems like this should be fairly robust.

You mean the reportlet datasinks?

Yeah.

If I understand this idea correctly it will suffer from the same problem as a single datasink.
Basically if you connect reportles from many nodes to a single report-constructor node and one of the reportlet building node fails the report-constructor will never be run (since not all of its dependencies run successfully) and the report will not be generated at all.

Yes, that's true. Hmm. Guess I didn't think this through after all.

I do agree that having reportlet datasinks inside workflows is a bit confusing and not very neat.

There might be a hacky way of doing this where, instead of a report-generator interface, we could have a workflow that's just a bunch of independent datasinks, so at least we could manage some separation. But that might be more work than it's worth...

So I've done a little fiddling in the anatomical workflows to see how much of a pain it would be to separate derivatives/reports from processing logic.

A few thoughts:

A separate reportnode is no more useful than an inputnode on a report workflow, so scratch that idea entirely.
Passing derivatives from the outputnode is cleaner, when available. It also gives an opportunity to keep names consistent; e.g. every time you see the binary mask in T1 space, it has the same name.
Perhaps it makes sense to require that all derivatives be passed to an outputnode, even if we're not planning on hooking them up to other workflows?
A single derivative node (e.g. for GIFTI surfaces) is probably not worth separating out of a workflow.
This is only a partial separation of concerns; the derivatives and report sinks are still in the same metaworkflow as the processing nodes.

Finally, I've only done this on the anatomical workflow. If it seems worthwhile, I can do it for the rest (though not until after #458).

Rebased this to use the new visualizations:

Indeed  this does clean up things substantially!

I this issue still an issue? @effigies


create new logic and add npm module

Mike - can you merge master out to your work branch to resolve the merge conflicts and update this and the other PR's


Restructure tests to use suites

Remove dependency on global DB variable

Codecov Report

Merging #977 into master will increase coverage by 0.08%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #977      +/-   ##
==========================================
+ Coverage   70.17%   70.25%   +0.08%
==========================================
  Files          91       91
  Lines        7004     7004
==========================================
+ Hits         4915     4921       +6
+ Misses       1636     1634       -2
+ Partials      453      449       -4

Impacted Files
Coverage Δ

controller/login.go
51.51% <0%> (-4.05%)
:x:

login/service.go
52.47% <0%> (-1.66%)
:x:

remoteworkitem/scheduler.go
63.41% <0%> (+9.75%)
:white_check_mark:

models/transaction.go
70% <0%> (+20%)
:white_check_mark:

remoteworkitem/github.go
100% <0%> (+22.85%)
:white_check_mark:

Continue to review full report at Codecov.

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

@aslakknutsen this merge broke master: https://ci.centos.org/view/Devtools/job/devtools-almighty-core-build-master/297/changes

@kwk no, master has been broken for weeks 😊

Oh yeah.. It's the famous version conflict ghost in our tests :)


FFMPEG sometime fails due to filename ambiguity

I removed file_system.py, file_system_verify(), translation_table. use safe_filename() on Stream.download() and ffmpeg_process()

will not be accepted, the file system prevents errors for each environment, probably the file name you wanted to download was prohibited for your system and this would cause an error, therefore it will not be accepted

It's not like that.
The original ffmpeg_process takes youtube.title as filename, it fails on title with colon. the ffmpeg output file name will be truncated and ffmpeg fails.
The original filename policy is in file_system.file_system_verify(). On windows it remove these chars
str.maketrans({'\': '', '/': '', '?': '', ':': '', '*': '', '"': '', '<': '', '>': '', '|': '',})
on MacOS it only remove ':', on Linux/BSD it only remove '/'
But it actually doesn't work on NTFS mounted on ubuntu.So i choose safe_filename() which remove this chars
[    '"',    '#',    '$',    '%',    "'",    '*',    ',',    '.',    '/',    ':',    '"',    ';',    '<',    '>',    '?',    '\',    '^',    '|',    '~',    '\']
This is the safest option.

file system removes it correctly, and will be kept that way.

Do the following, show me in detail how this works on your machine, modify pytubefix on your machine and show me the result

I installed and tested already, will show u later.
I just choose the most conservative naming policy, it should be working on ntfs mounting on linux host.
On linux platform theres no way to tell the path is windows fs (samba or ntfs) or linux fs (ext, xfs or zfs...)

You don't understand, even if you have an NTFS installed, it will necessarily go through the operating system's file system, that is, it will be the same thing to use the file system and the safe filename, and if you don't use it, it will give an error in the file system, there is no how do you get around this, and another thing safe filename removes characters unnecessarily for no reason, it's not because the name is "safe filename" that this is safer, in fact it's not even a question of security, but of character incompatibility reserved from the file system, the old way doesn't make any sense removing characters that should be allowed in Linux environments.

If you are mounting NTFS on your Linux, just use safe_filename in your scripts, and don't simply remove file_system from pytubefix.

If you are mounting NTFS on your Linux, just use safe_filename in your scripts, and don't simply remove file_system from pytubefix.

I know what is the incompatible character problem. on Linux only null and / are not allowed. on NTFS more characters are forbidden in additional to /
The forbidden printable ASCII characters are:
    Linux/Unix:
    / (forward slash)
    Windows:
    < (less than)
    > (greater than)
    : (colon - sometimes works, but is actually NTFS Alternate Data Streams)
    " (double quote)
    / (forward slash)
    \ (backslash)
    | (vertical bar or pipe)
    ? (question mark)
    * (asterisk)

Non-printable characters
    Linux/Unix: 0 (NULL byte)
    Windows:  0-31 (ASCII control characters)

I already replaced all calls to file_systems.file_system_verify() using safe_filename() instead which makes sure that it works on all possible scenarios.
Test on windows platform
PS E:\> pip install pytubefix
Collecting pytubefix
  Downloading pytubefix-8.2.0-py3-none-any.whl.metadata (6.8 kB)
Downloading pytubefix-8.2.0-py3-none-any.whl (84 kB)
Installing collected packages: pytubefix
Successfully installed pytubefix-8.2.0
PS E:\> 'PATCH cli.py fixing resolution=args.resolution
PS E:\> pytubefix -f ffmpeg.exe https://www.youtube.com/watch?v=rSY1pVGdZ4I
Loading video...
CS 182: Lecture 1, Part 1: Introduction_video_0 | 22 MB
 ↳ |██████████████████████████████████████████████████████████████████| 100.0%
CS 182: Lecture 1, Part 1: Introduction_audio_0 | 11 MB
 ↳ |██████████████████████████████████████████████████████████████████| 100.0%
ffmpeg version 2023-04-12-git-1179bb703e-full_build-www.gyan.dev Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
  configuration: ......
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'E:\CS 182 Lecture 1, Part 1 Introduction_video_0':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2021-03-14T19:58:29.000000Z
  Duration: 00:15:54.85, start: 0.000000, bitrate: 193 kb/s
  Stream #0:0[0x1](und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 640x360 [SAR 1:1 DAR 16:9], 61 kb/s, 30 fps, 30 tbr, 15360 tbn (default)
    Metadata:
      creation_time   : 2021-03-14T19:58:29.000000Z
      handler_name    : ISO Media file produced by Google Inc. Created on: 03/14/2021.
      vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s (default)
    Metadata:
      creation_time   : 2021-03-14T19:58:29.000000Z
      handler_name    : ISO Media file produced by Google Inc. Created on: 03/14/2021.
      vendor_id       : [0][0][0][0]
Input #1, matroska,webm, from 'E:\CS 182 Lecture 1, Part 1 Introduction_audio_0':
  Metadata:
    encoder         : google/video-file
  Duration: 00:15:54.86, start: -0.007000, bitrate: 99 kb/s
  Stream #1:0(eng): Audio: opus, 48000 Hz, stereo, fltp (default)
E:\/CS 182: Lecture 1, Part 1: Introduction.mp4: Invalid argument

On kubuntu 22.04
sudo ntfsfix /dev/sdb1
Mounting volume... OK
Processing of $MFT and $MFTMirr completed successfully.
Checking the alternate boot sector... OK
NTFS volume version is 3.1.
NTFS partition /dev/sdb1 was processed successfully.
sa@sa-kde:~$ sudo mount /dev/sdb1 /media/sa/73F204F4039C05FC
sa@sa-kde:~$ cd /media/sa/73F204F4039C05FC/
sa@sa-kde:/media/sa/73F204F4039C05FC$ pytubefix https://www.youtube.com/watch?v=rSY1pVGdZ4I
Loading video...
Downloading highest resolution progressive stream...
CS 182: Lecture 1, Part 1: Introduction.mp4 | 22 MB
Traceback (most recent call last):
  File "/home/sa/.local/bin/pytubefix", line 8, in <module>
    sys.exit(main())
  File "/home/sa/.local/lib/python3.10/site-packages/pytubefix/cli.py", line 49, in main
    _perform_args_on_youtube(youtube, args)
  File "/home/sa/.local/lib/python3.10/site-packages/pytubefix/cli.py", line 53, in _perform_args_on_youtube
    download_highest_resolution_progressive(youtube=youtube, resolution="highest", target=args.target)
  File "/home/sa/.local/lib/python3.10/site-packages/pytubefix/cli.py", line 279, in download_highest_resolution_progressive
    _download(stream, target)
  File "/home/sa/.local/lib/python3.10/site-packages/pytubefix/cli.py", line 156, in _download
    stream.download(output_path=target, filename=filename)
  File "/home/sa/.local/lib/python3.10/site-packages/pytubefix/streams.py", line 369, in download
    with open(file_path, "wb") as fh:
OSError: [Errno 22] Invalid argument: '/media/sa/73F204F4039C05FC/CS 182: Lecture 1, Part 1: Introduction.mp4'

after commit 06a35e7 applied:
on windows
PS E:\> pytubefix -f ffmpeg.exe https://www.youtube.com/watch?v=rSY1pVGdZ4I
Loading video...
CS 182 Lecture 1 Part 1 Introduction_video_0 | 20 MB
 ↳ |██████████████████████████████████████████████████████████████████| 100.0%
CS 182 Lecture 1 Part 1 Introduction_audio_0 | 11 MB
 ↳ |██████████████████████████████████████████████████████████████████| 100.0%
ffmpeg version 2023-04-12-git-1179bb703e-full_build-www.gyan.dev Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
  configuration: ......
  libavutil      58.  6.100 / 58.  6.100
  libavcodec     60.  9.100 / 60.  9.100
  libavformat    60.  4.101 / 60.  4.101
  libavdevice    60.  2.100 / 60.  2.100
  libavfilter     9.  5.100 /  9.  5.100
  libswscale      7.  2.100 /  7.  2.100
  libswresample   4. 11.100 /  4. 11.100
  libpostproc    57.  2.100 / 57.  2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'E:\CS 182 Lecture 1 Part 1 Introduction_video_0':
  Metadata:
    major_brand     : dash
    minor_version   : 0
    compatible_brands: iso6avc1mp41
    creation_time   : 2021-03-14T19:58:30.000000Z
  Duration: 00:15:54.83, start: 0.000000, bitrate: 175 kb/s
  Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 1 kb/s, 30 fps, 30 tbr, 15360 tbn (default)
    Metadata:
      creation_time   : 2021-03-14T19:58:30.000000Z
      handler_name    : ISO Media file produced by Google Inc.
      vendor_id       : [0][0][0][0]
Input #1, matroska,webm, from 'E:\CS 182 Lecture 1 Part 1 Introduction_audio_0':
  Metadata:
    encoder         : google/video-file
  Duration: 00:15:54.86, start: -0.007000, bitrate: 99 kb/s
  Stream #1:0(eng): Audio: opus, 48000 Hz, stereo, fltp (default)
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #1:0 -> #0:1 (opus (native) -> aac (native))
Press [q] to stop, [?] for help
Output #0, mp4, to 'E:\/CS 182 Lecture 1 Part 1 Introduction.mp4':
  Metadata:
    major_brand     : dash
    minor_version   : 0
    compatible_brands: iso6avc1mp41
    encoder         : Lavf60.4.101
  Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 1 kb/s, 30 fps, 30 tbr, 15360 tbn (default)
    Metadata:
      creation_time   : 2021-03-14T19:58:30.000000Z
      handler_name    : ISO Media file produced by Google Inc.
      vendor_id       : [0][0][0][0]
  Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      encoder         : Lavc60.9.100 aac
frame=28645 fps=1440 q=-1.0 Lsize=   35898kB time=00:15:54.84 bitrate= 308.0kbits/s speed=  48x
video:20140kB audio:14841kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.620296%
[aac @ 000001a359242e80] Qavg: 634.231

on kubuntu 22.04
sa@sa-kde:/media/sa/73F204F4039C05FC$ pytubefix https://www.youtube.com/watch?v=rSY1pVGdZ4I
Loading video...
Downloading highest resolution progressive stream...
CS 182: Lecture 1, Part 1: Introduction.mp4 | 22 MB

Hi any updates?


Trying to patch our CI

I suspect Go 1.18 is not the default for GHA runners, so we need to specify it.

superseded by #2177


code for the ScanNet++ dataset

hi guy, thanks for great work here!
I am try to do the experiments that you mentioned in the supplyment materials, but i came to notice that your code does not include the ScanNet++ dataset.
BOTH in the ISBNet extraction code and dataset preparation part!!
For example:
THERE IS NOT segmenter3d/ISBNet/dataset/scannetpp dir for me to pre-process the dataset
as a result , I have no idea how to generate the corresponding groundtruth file, i.e.  "*_inst_nostuff.pth"
will you release that part of code soon? Many thanks again!

Hi @LiangXu123,
Training the 3DIS network for ScanNet++ is a bit challenging for ISBNet as we are investigating proper hyperparams best suited for ScanNet++.  ISBNet pretrained on ScanNet200 yields worse results on ScanNet++ so we did not include the inference code. as we are planning to release ISBNet training code (configs) for ScanNet++ in the future. Make sure you keep an eye out!
Currently, we just use the 2D-only version for ScanNet++ and it achieves top-4 on the 3DIS benchmark.
Best,
PhucNDA.

Hi @LiangXu123, Training the 3DIS network for ScanNet++ is a bit challenging for ISBNet as we are investigating proper hyperparams best suited for ScanNet++. ISBNet pretrained on ScanNet200 yields worse results on ScanNet++ so we did not include the inference code. as we are planning to release ISBNet training code (configs) for ScanNet++ in the future. Make sure you keep an eye out! Currently, we just use the 2D-only version for ScanNet++ and it achieves top-4 on the 3DIS benchmark.
Best, PhucNDA.

THANKS for your reply, But I stt you released the/configs/scannetpp.yaml
and I want to evaluate on the scannet++ dataset, could you please tell me how to generate the gr file for scannet++ dataset?:
gt_pth: './data/Scannetpp/Scannetpp_3D/val/groundtruth' # gt path
as it is required for the evaluation code?
OR may you you can just upload the groundtruth.tar ?


Publish: Docs for using the keyring

While publishing from CI is clearly the better choice, for smaller projects it may just not be worth the effort, so we also support publishing from a local machine.
We don't support .pypirc, the non-standard file that saves password as plaintext to the user home. Instead, we recommend using the keyring for local publishing, using the operating system's much more secure, mostly standardized and better queryable credential store as backend. This comes with the catch that the keyring keys by URL+username, so we need to use the horrible query string attach to tag per-project scoped tokens to a more specific URL (https://github.com/pypa/twine/issues/565).
Fixes #7963

Not to open up another can of worms, but what makes something standard or not? the .pypirc file is well-documented by the PyPA as a specification at https://packaging.python.org/en/latest/specifications/pypirc/

.pypirc is documented by the PyPA but isn't really a standard specification and the PyPA is warning people not to use it. Please use https://github.com/astral-sh/uv/issues/7676 for discussion on that topic.

Personally, I find it misleading that .pypirc is in the specifications section of packaging.python.org next to the actual authoritative specs. As zanie said it has no PEP, it was added https://github.com/pypa/packaging.python.org/pull/734 amd it's a user guide and not a specification. The only mention in a PEP is a 2002(!) extension to distutils: https://github.com/python/peps/blob/0bb65f91d0eb1b087eee1c61d2bc446f421ab032/peps/pep-0301.rst?plain=1#L233.
I focussing the guide on security best practices, such as using the keyring with least-privileged tokens.


[MM-58584] Update Calls metrics

Summary
PR updates Calls metrics and includes a sample Prometheus configuration snippet.
Fixes https://github.com/mattermost/docs/issues/7149
Ticket Link
https://mattermost.atlassian.net/browse/MM-58584

I sent an update to address https://github.com/mattermost/docs/issues/7130. Asking for another pass.

@streamer45 - Feel free to merge this docs PR at any time.


Fix DropdownMenu not closing after clicking on item or clicking outside of dropdown

💬 Description
useEffect does some caching and because event listener is only set up on mount while showItems is false, it then always thinks its false every time that event is fired.
Changing it so the event listener gets set up when showItems is true solves the problem, and as a nice side effect we're not needlessly setting up event listeners before someones even interacted with the dropdown
✅ Checklist

[ ] Tests written
[ ] Browser tested
[ ] Added to documentation
[ ] Added to storybook

 [REGULAR] The change template drop-down doesn't collapse when selecting a new template in the item editor


Can't delete in pairs

I used your plugin for 6 months but after update I can't delete in pairs anymore. I changed to jiangmiao/auto-pairs and it's ok. I think perhaps your recent PR break this feature.
With your auto-pairs version:
https://user-images.githubusercontent.com/75968004/170621491-a9d2a6da-1114-4aa9-aac9-8ef23c2e9a2d.mp4
With jiangmiao/auto-pairs:
https://user-images.githubusercontent.com/75968004/170621777-aedd1186-4691-4a8a-95a0-9dd5382010c6.mp4

Did you enable pair deletion?

Did you enable pair deletion?

I thought it's enabled by default, because I use this plugin for 6 months with no issue and today it happens. How can I enable it?

https://github.com/LunarWatcher/auto-pairs/blob/6c1deb2fe8501e1c4de31732f04eaede31b9021d/doc/AutoPairs.txt#L112

https://github.com/LunarWatcher/auto-pairs/blob/6c1deb2fe8501e1c4de31732f04eaede31b9021d/doc/AutoPairs.txt#L112

Thanks for your help. I got it

For the record, though, it is weird that it took 6 months for it to suddenly "realize" it's disabled by default. It being disabled by default has been a fact for more or less the entire lifetime of this fork, and I haven't had much of a chance to work on the code for a while either. Been dragged in various directions by circumstance, but that doesn't matter all that much. The point is, a recent code update didn't cause it, at least if you've been mostly staying up-to-date. What caused it will likely remain a mystery, unless you happen to have made some changes to your dotfiles recently, and also have them saved in a way that lets you revisit those changes.
It's not super important anyway; as long as it works, that's really all that matters when it's an apparent one-off bug


[Improve]: header bar add Qrcode image & add language header

What changes were proposed in this pull request
Issue Number: close #xxx

Brief change log

Verifying this change

This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:

Does this pull request potentially affect one of the following parts

Dependencies (does it add or upgrade a dependency): (yes / no)

add language header to request (https://github.com/apache/incubator-streampark/issues/3520)

cc @wolfboys ,I added the top QR code icon display and added the language header to the request header to pass the user's choice of i18n to the backend,
Related Issues https://github.com/apache/incubator-streampark/issues/3520

cc @wolfboys ,I added the top QR code icon display and added the language header to the request header to pass the user's choice of i18n to the backend,cc，我添加了顶部二维码图标显示，并在请求头中添加了语言头，将用户选择的 i18n 传递给后端， Related Issues #3520 相关问题 #3520

Good Job!


valid-package-file-require: Check if require() arg looks like a path

If require() is called with an argument that doesn't look like a path,
it's probably a module name, and we should leave it alone.
require('foo') should be allowed, even if 'foo.js' exists.
Only apply this rule if the require() argument looks like a file path,
meaning it either starts with ./ or ../, or ends with .js or .json.
Fixes #17

This will also fix #18 too, right?

No, this will not fix #18. require( './../file.js' ) will continue to be rejected (if the target file exists that is). The criteria for rejection are:

(New in this patch:) the string is path-like, meaning it starts with ./ or ../, or ends with .js or .json
The string identifies a file that exists
The string is not equal to the normalized relative path to the file

This means things like file.js, ./file and ././file.js are all normalized to ./file.js, and ./../file.js continues to be normalized to ../file.js. The only change in this patch is that we won't attempt to normalize file to ./file.js, because file isn't path-like.

No, this will not fix #18. require( './../file.js' ) will continue to be rejected (if the target file exists that is). […] The only change in this patch is that we won't attempt to normalize file to ./file.js, because file isn't path-like.

Oh, right.

pinging @jakobw @Ladsgroup - you guys might be able to help reviewing this, as you've originally crafted the valid-package-file-require.


Answers disappearing

When you switch to a different tab, some answers disappear. The issue apparently does not happen if you press save at the top of the page manually. It seems that answers disappear if they did not have time to autosave by the time you click to move to the next tab. Can we so an autosave when someone clicks on "next section", "previous section", or any of the other buttons that take them to a different screen?

The answers are not disappearing in my case


Horizontal scroll bar appears while displaying error message on dialog

Azure Data Studio Version: Latest
OS Version: All

Steps to Reproduce:

Modify any dialog and save the changes that causes an error
Ex: open login dialog properties on a test user and remove the password and save, this generates the error.
It will generate the error banner at the top of the dialog along with the horizontal scroll bar.

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

Cory brought up that this might be because the vertical scrollbar is showing, which makes sense to me since it's taking up horizontal space. So I'd start there for investigation.

Issue no longer repros


HOSTEDCP-1256: control-plane-pki-operator: add an operator for managing PKI

go.mod: update vendors
Signed-off-by: Steve Kuznetsov<EMAIL_ADDRESS>
*: add a control-plane-pki-operator
In the future, we'd like to lean on the library-go approach for PKI
management to gain access to some of the features it provides as well as
increasing the number of engineers who are able to maintain PKI in
HyperShift as we'd no longer be using an in-house solution.
The first step in this process is adding a new controller to manage PKI
for the hosted control planes, and having it manage:

a new signer for customers' break-glass credentials
a trust bundle of active signers
a client certificate and key signed by the currently-valid signer
a total client CA bundle (which is, for now, the smae as 2)

The control-plane-operator consumes the total client CA and aggregates
it into the current KAS client CA flow.
Signed-off-by: Steve Kuznetsov<EMAIL_ADDRESS>
/assign @sjenning @deads2k

Added management of the new PKI controller to hypershift-operator - need to add an e2e now.

/approve

/retest

/retest

/test e2e-aws

/test e2e-ibmcloud-roks
/test e2e-ibmcloud-iks

/test all

/lgtm

/retest-required

/retest-required


Testing of ProvideRewards

this is a slightly tricky one.
currently the tokens are distributed between the depositors on a token-to-token basis (i.e it doesn't try to weigh one token as being worth some fraction of the other. that system requires access to some trusted DEX or a lot of them, quite a LOT of math and would be prone to bugs.) -- that is, each token gets sent to all influence holders with T * ownInfluence/total, that is proportional to the % of influence, rounded.
This means that when a token is not given in a sufficiently large amount, it will have some tokens not be spent. See the test cases.
I refer to the reward tokens here as REW1, REW2 ... and to wallets W1, W2...
should give all to one wallet when it is the only one to have deposited
should give 0 REW to both wallets that have deposited 1 GOV each, returning 1 REW to caller when called with 1 REW
should give 1 REW to two wallets that have deposited 1 GOV each, returning 1 REW to the caller, when called with 3 REW
should give 1 REW to W1, which has deposited 6 GOV, and 0 REW to W2, which deposited 4 GOV when called with 1 REW
should give 2 REW to W1, which has deposited 6 GOV, and 1 REW to W2, which has deposited 3 GOV, when called with 3 REW

currently provideRewards is broken -- needs to scoop out PKH out of the datum instead.
not priority to get it fixed as a new spec is on the horizon


Retrieve GTFS data and calculate a simple route with it

Goal of the PR is as follows

Retrieve GTFS data from OpenOV.nl and parse it
Efficiently make it reachable without needing an unrealistic amount of RAM

Make it stateless if possible

Allow us to search through available stops

Pass this data to others contexts (like NS)

Optional:

Show very simplistic travel advice

If done, make it toggle-able in the backend and default disabled

To give an update: This is on hold and will be transferred to an issue/feature ticket.
Currently I am looking into routing engines that support transit data.
Although I may just end up using pgrouting.
In each case requires some experimentation in the background and nothing solid enough for a PR.
DataModels in main have been updated to support GTFS better for now.


ehancement Support list parttion prune

Proposed changes
Issue Number: close #xxx
Problem summary
Describe your changes.
Checklist(Required)

Does it affect the original behavior:

[ ] Yes
[ ] No
[ ] I don't know

Has unit tests been added:

[ ] Yes
[ ] No
[ ] No Need

Has document been added or modified:

[ ] Yes
[ ] No
[ ] No Need

Does it need to update dependencies:

[ ] Yes
[ ] No

Are there any changes that cannot be rolled back:

[ ] Yes (If Yes, please explain WHY)
[ ] No

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 35.3 seconds
load time: 486 seconds
storage size:<PHONE_NUMBER>1 Bytes
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20230109081243_clickbench_pr_75967.html


Replace the example pages icon with "@yamada-ui/lucide"

Closes #2043
Description
Replaced the icon on the sample page with "@yamada-ui/lucide".
Is this a breaking change (Yes/No):
No

@zonoryo17 @108yen @fffk10 @Haru-0001 @hirayamahiroto
Fixed example pages.


Detach stream initialisation from sockets

This PR adds a preconnect hook for when a socket receives a message from an unknown remote stream:
https://github.com/mafintosh/libudx/blob/8f36c19873c667ec4f9323ba4520838a7eb764d3/test/stream.js#L197-L219

@mafintosh The tests are awaiting #32.

@mafintosh This is ready for review.

Looks great, only some minor comments

LGTM


E: Unable to locate package cf-cli

Hello,
I am trying to get cf installed on docker with dockerfile but getting error :
E: Unable to locate package cf-cli
The command '/bin/sh -c apt-get install cf-cli' returned a non-zero code: 100
Dockerfile content :
From ubuntu:16.04
MAINTAINER  Madhavi Reddy
RUN apt-get update
RUN apt-get install cf-cli

Hi @reddymadhavi
Our apt-get download instructions include two more steps that I don't see in your Dockerfile - could that be the issue?
https://github.com/cloudfoundry/cli#installing-using-a-package-manager
# ...first add the Cloud Foundry Foundation public key and package repository to your system
wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | sudo apt-key add -
echo "deb http://packages.cloudfoundry.org/debian stable main" | sudo tee /etc/apt/sources.list.d/cloudfoundry-cli.list
# ...then, update your local package index, then finally install the cf CLI
sudo apt-get update
sudo apt-get install cf-cli

The cf CLI is in a CFF repository, so that needs to be added to your system.
Regards,
Dies Koper
CF CLI PM

Getting Below error if I add package repository :
/bin/sh: 1: wget: not found
gpg: no valid OpenPGP data found.
Now content of my docker file
From ubuntu:16.04
MAINTAINER  Madhavi Reddy
RUN wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | apt-key add -
RUN echo "deb http://packages.cloudfoundry.org/debian stable main" | tee /etc/apt/sources.list.d/cloudfoundry-cli.list
RUN apt-get update
RUN apt-get install cf-cli

@dkoper
what is correct command to get wget ?
apt-get install wget ?

Tried to get wget but got below error:
RUN apt-get -y install wget
E: Unable to locate package wget

You should do RUN apt-get update before RUN apt-get -y install wget. Are you?
You may get better help from the community maintaining your Docker image.

Tried , now getting below error:
E: The method driver /usr/lib/apt/methods/https could not be found.
Dockerfile content are:
From ubuntu
MAINTAINER  Madhavi Reddy
RUN apt-get update
RUN apt-get -y install wget
RUN wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | apt-key add -
RUN echo "deb http://packages.cloudfoundry.org/debian stable main" | tee /etc/apt/sources.list.d/cloudfoundry-cli.list
RUN apt-get update
RUN apt-get install cf-cli

Try adding RUN apt-get install apt-transport-https?

yes, tried , it fails with abort .

Building dependency tree...
Reading state information...
The following additional packages will be installed:
ca-certificates libidn11 libssl1.0.0 openssl
The following NEW packages will be installed:
ca-certificates libidn11 libssl1.0.0 openssl wget
0 upgraded, 5 newly installed, 0 to remove and 2 not upgraded.
Need to get 2085 kB of archives.
After this operation, 6023 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libidn11 amd64 1.32-3ubuntu1.2 [46.5 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libssl1.0.0 amd64 1.0.2g-1ubuntu4.8 [1081 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 openssl amd64 1.0.2g-1ubuntu4.8 [492 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 ca-certificates all 20170717~16.04.1 [168 kB]
Get:5 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 wget amd64 1.17.1-1ubuntu1.2 [298 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 2085 kB in 10s (199 kB/s)
Selecting previously unselected package libidn11:amd64.
(Reading database ... 4768 files and directories currently installed.)
Preparing to unpack .../libidn11_1.32-3ubuntu1.2_amd64.deb ...
Unpacking libidn11:amd64 (1.32-3ubuntu1.2) ...
Selecting previously unselected package libssl1.0.0:amd64.
Preparing to unpack .../libssl1.0.0_1.0.2g-1ubuntu4.8_amd64.deb ...
Unpacking libssl1.0.0:amd64 (1.0.2g-1ubuntu4.8) ...
Selecting previously unselected package openssl.
Preparing to unpack .../openssl_1.0.2g-1ubuntu4.8_amd64.deb ...
Unpacking openssl (1.0.2g-1ubuntu4.8) ...
Selecting previously unselected package ca-certificates.
Preparing to unpack .../ca-certificates_20170717~16.04.1_all.deb ...
Unpacking ca-certificates (20170717~16.04.1) ...
Selecting previously unselected package wget.
Preparing to unpack .../wget_1.17.1-1ubuntu1.2_amd64.deb ...
Unpacking wget (1.17.1-1ubuntu1.2) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Setting up libidn11:amd64 (1.32-3ubuntu1.2) ...
Setting up libssl1.0.0:amd64 (1.0.2g-1ubuntu4.8) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Setting up openssl (1.0.2g-1ubuntu4.8) ...
Setting up ca-certificates (20170717~16.04.1) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Setting up wget (1.17.1-1ubuntu1.2) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Processing triggers for ca-certificates (20170717~16.04.1) ...
Updating certificates in /etc/ssl/certs...
148 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
---> f674d8993ae5
Removing intermediate container 757badaf7dbd
Step 5/8 : RUN wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | apt-key add -
---> Running in 17c7f1fd0d5e
OK
---> c5e235660d9f
Removing intermediate container 17c7f1fd0d5e
Step 6/8 : RUN echo "deb http://packages.cloudfoundry.org/debian stable main" | tee /etc/apt/sources.list.d/cloudfoundry-cli.list
---> Running in 2b2fe49dc66b
deb http://packages.cloudfoundry.org/debian stable main
---> 237df0899b92
Removing intermediate container 2b2fe49dc66b
Step 7/8 : RUN apt-get install apt-transport-https
---> Running in 7b6db77de8eb
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
krb5-locales libasn1-8-heimdal libcurl3-gnutls libffi6 libgmp10 libgnutls30
libgssapi-krb5-2 libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal
libheimntlm0-heimdal libhogweed4 libhx509-5-heimdal libk5crypto3
libkeyutils1 libkrb5-26-heimdal libkrb5-3 libkrb5support0 libldap-2.4-2
libnettle6 libp11-kit0 libroken18-heimdal librtmp1 libsasl2-2
libsasl2-modules libsasl2-modules-db libsqlite3-0 libtasn1-6
libwind0-heimdal
Suggested packages:
gnutls-bin krb5-doc krb5-user libsasl2-modules-otp libsasl2-modules-ldap
libsasl2-modules-sql libsasl2-modules-gssapi-mit
| libsasl2-modules-gssapi-heimdal
The following NEW packages will be installed:
apt-transport-https krb5-locales libasn1-8-heimdal libcurl3-gnutls libffi6
libgmp10 libgnutls30 libgssapi-krb5-2 libgssapi3-heimdal libhcrypto4-heimdal
libheimbase1-heimdal libheimntlm0-heimdal libhogweed4 libhx509-5-heimdal
libk5crypto3 libkeyutils1 libkrb5-26-heimdal libkrb5-3 libkrb5support0
libldap-2.4-2 libnettle6 libp11-kit0 libroken18-heimdal librtmp1 libsasl2-2
libsasl2-modules libsasl2-modules-db libsqlite3-0 libtasn1-6
libwind0-heimdal
0 upgraded, 30 newly installed, 0 to remove and 2 not upgraded.
Need to get 3441 kB of archives.
After this operation, 13.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] Abort.
The command '/bin/sh -c apt-get install apt-transport-https' returned a non-zero code: 1
It is not even allowing me to enter Y or N , it just abort session and exit with code .
Is it all about having correct apt-get packages ? If so is there any way I can download package and then update apt-get but via dockerfile .

I suppose with a Dockerfile you need to suppress prompting, so RUN apt-get install -y apt-transport-https.
Alternatively, you can download our deb package and install that using dpkg, but you'd still need curl or wget to download the package.

Yes, after having -y it gave me different error about again " enable to locate package cf " which is start of this thread . But it got resolved after updating apt-get .


Evaluate new Sovrin TAA feature and how to handle that in ACA-Py

The new Transaction Author Agreement (TAA) will soon be added to the Sovrin ledger (MainNet, BuilderNet and StagingNet) and support will need to be added to ACA-Py to support it for Aries instances accessing and writing to those networks.
Please review this new feature and evaluate how we can add support for the TAA in ACA-Py.  This is a good starting article, and there links at the bottom of the article to further technical details.
https://sovrin.org/preparing-for-the-sovrin-transaction-author-agreement/

@swcurran You may want to review this draft diagram that has been submitted as part of an update to Sovrin Glossary Appendix E. It has been used for discussions with respect to contractual instruments for GDPR/CCPA/other-regulation compliance.
The right side of the diagram is pertinent to this issue. It implies that the SF will require an Agent that can present a click-through license for a Transaction Author.

Should the Transaction Author's Agent store a copy of the TAA and proof of signature? The SF's Agent should keep such a record.
How will Steward's know that the TAA has been signed by the TA(DID) before it allows a Trx Write request?

I would suggest adding this to the aca-py provision command, probably as an automatic part of aca-py provision ledger (which doesn't exist yet). It could automatically download the AML and TAA if they exist, and assuming session_agreement is an option then it could present the terms and ask for user acceptance. Each acceptance record would be stored in non-secrets and the latest one would be submitted with each request. Some formatting could probably also be applied by a markdown-to-terminal formatter (pygments seems to support that).

Resolved via #127


Feature: Duplicate Node

Added to Graph. It is also possible to implement this completely in NodeEditor but duplication seems like a core functionality the Graph should own and the NodeEditor should call.

It's a handy feature and I do believe that It should be a core functionality. Thanks, it looks perfect!


Request for azapi resource

What resource do you need?
Terraform Resource Name:
https://registry.terraform.io/providers/Azure/azapi/latest/docs
What is your use case?
Allows creating resources which are not yet supported by the Terraform provider

I just noticed this, https://marketplace.upbound.io/providers/upbound/provider-azapi/v0.1.0
What is the license for this provider? Will it be open source?

@IvanJosipovic, we're not ready to make the provider open-source yet, but it is being considered.
I will close this issue since it will be a separate provider from this provider.


Square images are not resized correctly

Resizing perfectly square image using methods resizeToWidth(), resizeToHeight(), resizeToBestFit(), resizeToShortSide() and resizeToLongSide() is supposed to always produce image with the same width and height, but its not always the case because one of the size values is ratio scaled and then rounded down to lowest integer value via (int) cast conversion.
The easiest solution is to round scaled float value to closest integer value before type conversion. Ideally ratio scaling should be skipped completely when source width and height values are equal.

Created pull request for patch fixing the issue.

Merged. Will release new version.