插件安装过程中报了很多错误，但是提示编译客户端成功，请问是安装成功了吗

下面是错误信息，报了一堆错，不敢重启了。
[root@ my-yapi]# yapi plugin --name yapi-plugin-interface-oauth2-token
需要安装 ykit
[root@ my-yapi]# npm install ykit -g
npm WARN deprecated<EMAIL_ADDRESS>Deprecated. Please use https://github.com/webpack-contrib/mini-css-extract-plugin
npm WARN deprecated<EMAIL_ADDRESS>use String.prototype.padStart()
npm WARN deprecated<EMAIL_ADDRESS>core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated<EMAIL_ADDRESS>Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated<EMAIL_ADDRESS>CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated<EMAIL_ADDRESS>Critical security bugs fixed in 2.5.5
npm WARN deprecated<EMAIL_ADDRESS>Please use the native JSON object instead of JSON 3
npm WARN deprecated<EMAIL_ADDRESS>Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated<EMAIL_ADDRESS>fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
/home/node-install/node-v13.0.1-linux-x64/bin/ykit -> /home/node-install/node-v13.0.1-linux-x64/lib/node_modules/ykit/bin/ykit

><EMAIL_ADDRESS>postinstall /home/node-install/node-v13.0.1-linux-x64/lib/node_modules/ykit/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

><EMAIL_ADDRESS>postinstall /home/node-install/node-v13.0.1-linux-x64/lib/node_modules/ykit/node_modules/history
> node ./npm-scripts/postinstall.js

npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules/ykit/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>|| ^4.0.0 but none is installed. You must install peer dependencies yourself.

+<EMAIL_ADDRESS>added 802 packages from 608 contributors in 249.85s
[root@ my-yapi]# yapi plugin --name yapi-plugin-interface-oauth2-token
正在下载插件...
npm WARN deprecated<EMAIL_ADDRESS>Deprecated. Please use https://github.com/webpack-contrib/mini-css-extract-plugin

><EMAIL_ADDRESS>install /root/mongodb/my-yapi/vendors/node_modules/ghooks
> node ./bin/module-install

This does not seem to be a git project.
Although ghooks was installed, the actual git hooks have not.
Run "git init" and then "npm explore ghooks -- npm run install".

Please ignore this message if you are not using ghooks directly.

><EMAIL_ADDRESS>install /root/mongodb/my-yapi/vendors/node_modules/node-sass
> node scripts/install.js

Unable to save binary /root/mongodb/my-yapi/vendors/node_modules/node-sass/vendor/linux-x64-79 : Error: EACCES: permission denied, mkdir '/root/mongodb/my-yapi/vendors/node_modules/node-sass/vendor'
    at Object.mkdirSync (fs.js:839:3)
    at sync (/root/mongodb/my-yapi/vendors/node_modules/mkdirp/index.js:72:13)
    at Function.sync (/root/mongodb/my-yapi/vendors/node_modules/mkdirp/index.js:78:24)
    at checkAndDownloadBinary (/root/mongodb/my-yapi/vendors/node_modules/node-sass/scripts/install.js:114:11)
    at Object.<anonymous> (/root/mongodb/my-yapi/vendors/node_modules/node-sass/scripts/install.js:157:1)
    at Module._compile (internal/modules/cjs/loader.js:971:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1011:10)
    at Module.load (internal/modules/cjs/loader.js:822:32)
    at Function.Module._load (internal/modules/cjs/loader.js:730:14)
    at Function.Module.runMain (internal/modules/cjs/loader.js:1051:12) {
  errno: -13,
  syscall: 'mkdir',
  code: 'EACCES',
  path: '/root/mongodb/my-yapi/vendors/node_modules/node-sass/vendor'
}

><EMAIL_ADDRESS>postinstall /root/mongodb/my-yapi/vendors/node_modules/core-js-pure
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

><EMAIL_ADDRESS>postinstall /root/mongodb/my-yapi/vendors/node_modules/jerryproxy-ykit/node_modules/history
> node ./npm-scripts/postinstall.js

><EMAIL_ADDRESS>postinstall /root/mongodb/my-yapi/vendors/node_modules/react-slick
> opencollective postinstall

     *** Thank you for using react-slick! ***

Please consider donating to our open collective
     to help us maintain this package.

  https://opencollective.com/react-slick/donate

                    ***

><EMAIL_ADDRESS>postinstall /root/mongodb/my-yapi/vendors/node_modules/node-sass
> node scripts/build.js

Building: /home/node-install/node-v13.0.1-linux-x64/bin/node /root/mongodb/my-yapi/vendors/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli   '/home/node-install/node-v13.0.1-linux-x64/bin/node',
gyp verb cli   '/root/mongodb/my-yapi/vendors/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli   'rebuild',
gyp verb cli   '--verbose',
gyp verb cli   '--libsass_ext=',
gyp verb cli   '--libsass_cflags=',
gyp verb cli   '--libsass_ldflags=',
gyp verb cli   '--libsass_library='
gyp verb cli ]
gyp info using<EMAIL_ADDRESS>gyp info using<EMAIL_ADDRESS>| linux | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` succeeded python2 /usr/bin/python2
gyp verb check python version `/usr/bin/python2 -c "import sys; print "2.7.5
gyp verb check python version .%s.%s" % sys.version_info[:3];"` returned: %j
gyp verb get node dir no --target version specified, falling back to host node version: 13.0.1
gyp verb command install [ '13.0.1' ]
gyp verb install input version string "13.0.1"
gyp verb install installing version: 13.0.1
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version not already installed, continuing with install 13.0.1
gyp verb ensuring nodedir is created /root/.node-gyp/13.0.1
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/13.0.1"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/root/mongodb/my-yapi/vendors/node_modules/node-sass/.node-gyp"
gyp verb tmpdir == cwd automatically will remove dev files after to save disk space
gyp verb command install [ '--node_gyp_internal_noretry', '13.0.1' ]
gyp verb install input version string "13.0.1"
gyp verb install installing version: 13.0.1
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version not already installed, continuing with install 13.0.1
gyp verb ensuring nodedir is created /root/mongodb/my-yapi/vendors/node_modules/node-sass/.node-gyp/13.0.1
gyp WARN install got an error, rolling back install
gyp verb command remove [ '13.0.1' ]
gyp verb remove using node-gyp dir: /root/mongodb/my-yapi/vendors/node_modules/node-sass/.node-gyp
gyp verb remove removing target version: 13.0.1
gyp verb remove removing development files for version: 13.0.1
gyp WARN install got an error, rolling back install
gyp verb command remove [ '13.0.1' ]
gyp verb remove using node-gyp dir: /root/mongodb/my-yapi/vendors/node_modules/node-sass/.node-gyp
gyp verb remove removing target version: 13.0.1
gyp verb remove removing development files for version: 13.0.1
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/root/mongodb/my-yapi/vendors/node_modules/node-sass/.node-gyp'
gyp ERR! System Linux 3.10.0-1062.1.1.el7.x86_64
gyp ERR! command "/home/node-install/node-v13.0.1-linux-x64/bin/node" "/root/mongodb/my-yapi/vendors/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /root/mongodb/my-yapi/vendors/node_modules/node-sass
gyp ERR! node -v v13.0.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules/watchpack/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules/react-scripts/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-06-17T09_42_09_722Z-debug.log
安装插件成功
正在安装依赖...

><EMAIL_ADDRESS>install /root/mongodb/my-yapi/vendors/node_modules/node-sass
> node scripts/install.js

Unable to save binary /root/mongodb/my-yapi/vendors/node_modules/node-sass/vendor/linux-x64-79 : Error: EACCES: permission denied, mkdir '/root/mongodb/my-yapi/vendors/node_modules/node-sass/vendor'
    at Object.mkdirSync (fs.js:839:3)
    at sync (/root/mongodb/my-yapi/vendors/node_modules/mkdirp/index.js:72:13)
    at Function.sync (/root/mongodb/my-yapi/vendors/node_modules/mkdirp/index.js:78:24)
    at checkAndDownloadBinary (/root/mongodb/my-yapi/vendors/node_modules/node-sass/scripts/install.js:114:11)
    at Object.<anonymous> (/root/mongodb/my-yapi/vendors/node_modules/node-sass/scripts/install.js:157:1)
    at Module._compile (internal/modules/cjs/loader.js:971:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1011:10)
    at Module.load (internal/modules/cjs/loader.js:822:32)
    at Function.Module._load (internal/modules/cjs/loader.js:730:14)
    at Function.Module.runMain (internal/modules/cjs/loader.js:1051:12) {
  errno: -13,
  syscall: 'mkdir',
  code: 'EACCES',
  path: '/root/mongodb/my-yapi/vendors/node_modules/node-sass/vendor'
}

><EMAIL_ADDRESS>postinstall /root/mongodb/my-yapi/vendors/node_modules/node-sass
> node scripts/build.js

Building: /home/node-install/node-v13.0.1-linux-x64/bin/node /root/mongodb/my-yapi/vendors/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli   '/home/node-install/node-v13.0.1-linux-x64/bin/node',
gyp verb cli   '/root/mongodb/my-yapi/vendors/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli   'rebuild',
gyp verb cli   '--verbose',
gyp verb cli   '--libsass_ext=',
gyp verb cli   '--libsass_cflags=',
gyp verb cli   '--libsass_ldflags=',
gyp verb cli   '--libsass_library='
gyp verb cli ]
gyp info using<EMAIL_ADDRESS>gyp info using<EMAIL_ADDRESS>| linux | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` succeeded python2 /usr/bin/python2
gyp verb check python version `/usr/bin/python2 -c "import sys; print "2.7.5
gyp verb check python version .%s.%s" % sys.version_info[:3];"` returned: %j
gyp verb get node dir no --target version specified, falling back to host node version: 13.0.1
gyp verb command install [ '13.0.1' ]
gyp verb install input version string "13.0.1"
gyp verb install installing version: 13.0.1
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version not already installed, continuing with install 13.0.1
gyp verb ensuring nodedir is created /root/.node-gyp/13.0.1
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/13.0.1"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/root/mongodb/my-yapi/vendors/node_modules/node-sass/.node-gyp"
gyp verb tmpdir == cwd automatically will remove dev files after to save disk space
gyp verb command install [ '--node_gyp_internal_noretry', '13.0.1' ]
gyp verb install input version string "13.0.1"
gyp verb install installing version: 13.0.1
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version not already installed, continuing with install 13.0.1
gyp verb ensuring nodedir is created /root/mongodb/my-yapi/vendors/node_modules/node-sass/.node-gyp/13.0.1
gyp WARN install got an error, rolling back install
gyp verb command remove [ '13.0.1' ]
gyp verb remove using node-gyp dir: /root/mongodb/my-yapi/vendors/node_modules/node-sass/.node-gyp
gyp verb remove removing target version: 13.0.1
gyp verb remove removing development files for version: 13.0.1
gyp WARN install got an error, rolling back install
gyp verb command remove [ '13.0.1' ]
gyp verb remove using node-gyp dir: /root/mongodb/my-yapi/vendors/node_modules/node-sass/.node-gyp
gyp verb remove removing target version: 13.0.1
gyp verb remove removing development files for version: 13.0.1
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/root/mongodb/my-yapi/vendors/node_modules/node-sass/.node-gyp'
gyp ERR! System Linux 3.10.0-1062.1.1.el7.x86_64
gyp ERR! command "/home/node-install/node-v13.0.1-linux-x64/bin/node" "/root/mongodb/my-yapi/vendors/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /root/mongodb/my-yapi/vendors/node_modules/node-sass
gyp ERR! node -v v13.0.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS><11.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none is installed. You must install peer dependencies yourself.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>|| ^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none is installed. You must install peer dependencies yourself.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>|| ^15.0.1 but none is installed. You must install peer dependencies yourself.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>|| ^15.0.1 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules/watchpack/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules/react-scripts/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-06-17T09_43_24_088Z-debug.log
internal/modules/cjs/loader.js:803
    throw err;
    ^

Error: Cannot find module 'yapi-plugin-interface-oauth2-token'
Require stack:
- /root/mongodb/my-yapi/vendors/common/plugin.js
- /root/mongodb/my-yapi/vendors/ykit.config.js
- /home/node-install/node-v13.0.1-linux-x64/lib/node_modules/ykit/lib/models/Project.js
- /home/node-install/node-v13.0.1-linux-x64/lib/node_modules/ykit/lib/modules/manager.js
- /home/node-install/node-v13.0.1-linux-x64/lib/node_modules/ykit/lib/cli.js
- /home/node-install/node-v13.0.1-linux-x64/lib/node_modules/ykit/bin/ykit
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:800:15)
    at Function.Module._load (internal/modules/cjs/loader.js:693:27)
    at Module.require (internal/modules/cjs/loader.js:864:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at getPluginConfig (/root/mongodb/my-yapi/vendors/common/plugin.js:8:20)
    at /root/mongodb/my-yapi/vendors/common/plugin.js:39:22
    at Array.map (<anonymous>)
    at Object.exports.initPlugins (/root/mongodb/my-yapi/vendors/common/plugin.js:33:21)
    at initPlugins (/root/mongodb/my-yapi/vendors/ykit.config.js:42:30)
    at Object.<anonymous> (/root/mongodb/my-yapi/vendors/ykit.config.js:61:1)
    at Module._compile (internal/modules/cjs/loader.js:971:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1011:10)
    at Module.load (internal/modules/cjs/loader.js:822:32)
    at Function.Module._load (internal/modules/cjs/loader.js:730:14)
    at Module.require (internal/modules/cjs/loader.js:864:19)
    at require (internal/modules/cjs/helpers.js:74:18) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/root/mongodb/my-yapi/vendors/common/plugin.js',
    '/root/mongodb/my-yapi/vendors/ykit.config.js',
    '/home/node-install/node-v13.0.1-linux-x64/lib/node_modules/ykit/lib/models/Project.js',
    '/home/node-install/node-v13.0.1-linux-x64/lib/node_modules/ykit/lib/modules/manager.js',
    '/home/node-install/node-v13.0.1-linux-x64/lib/node_modules/ykit/lib/cli.js',
    '/home/node-install/node-v13.0.1-linux-x64/lib/node_modules/ykit/bin/ykit'
  ]
}
编译客户端成功，请重启服务器

前面issue有，先手动装一下node-sass


Error: ENOENT: no such file or directory, open '//data.trie'

Question
Error while loading
How to solve this?
Error: ENOENT: no such file or directory, open '//data.trie'
Code sample
const PDFDocument = require('pdfkit');
const fs = require('fs');
const doc = new PDFDocument();
export class PdfStreamDataService {
constructor() {
}
public execute = function () {

        doc.pipe(fs.createWriteStream('out.pdf'));
        // Set some meta data
        doc.info['Title'] = 'Test Document';
        doc.info['Author'] = 'Test name';

        // Register a font name for use later
        // doc.registerFont('Palatino', 'fonts/PalatinoBold.ttf');

        var loremIpsum =
        'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam in suscipit purus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Vivamus nec hendrerit felis. Morbi aliquam facilisis risus eu lacinia. Sed eu leo in turpis fringilla hendrerit. Ut nec accumsan nisl. Suspendisse rhoncus nisl posuere tortor tempus et dapibus elit porta. Cras leo neque, elementum a rhoncus ut, vestibulum non nibh. Phasellus pretium justo turpis. Etiam vulputate, odio vitae tincidunt ultricies, eros odio dapibus nisi, ut tincidunt lacus arcu eu elit. Aenean velit erat, vehicula eget lacinia ut, dignissim non tellus. Aliquam nec lacus mi, sed vestibulum nunc. Suspendisse potenti. Curabitur vitae sem turpis. Vestibulum sed neque eget dolor dapibus porttitor at sit amet sem. Fusce a turpis lorem. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae;\nMauris at ante tellus. Vestibulum a metus lectus. Praesent tempor purus a lacus blandit eget gravida ante hendrerit. Cras et eros metus. Sed commodo malesuada eros, vitae interdum augue semper quis. Fusce id magna nunc. Curabitur sollicitudin placerat semper. Cras et mi neque, a dignissim risus. Nulla venenatis porta lacus, vel rhoncus lectus tempor vitae. Duis sagittis venenatis rutrum. Curabitur tempor massa tortor.';

        // Draw some text wrapped to 412 points wide
        doc
        .text('And here is some wrapped text...', 100, 300)
        .font('Helvetica', 13)
        .moveDown()
        .text(loremIpsum, {
            // move down 1 line
            width: 412,
            align: 'justify',
            indent: 30,
            paragraphGap: 5
        });

        doc.end();
}

}
Your environment

pdfkit version: 0.10.10
Node version: v10.16.0
Browser version (if applicable): npm start
Operating System: window 10 64bit

I've been having the exact same problem, are you also using Typescript? Disabling Typescript solved it for me. I know it's not a viable solution in most cases, but it might point somewhere.

Same problem for me, I will get back here if I find a solution.

Same problem. The following worked for me:
//@ts-ignore
import PDFDocument = require('pdfkit');

It's an issue with webpack. When I just run tsc it works fine to me.
Please, any solutions for it?

@Pzixel

I have an issue with webpacked solution

There's some error in your webpack configuration
You can look here a working webpack configuration: https://github.com/blikblum/pdfkit-webpack-example
Alternatively you can use https://www.npmjs.com/package/pdfkit-next that is browser friendly

I'm actually don't use it in browser, I'm using it on node.js installation. Althout I want to public some minimal distribution instead of sharing 200mb of dependencies.

@blikblum I see your solution but none of them was working for me.
I'm also getting this error:
{ Error: ENOENT: no such file or directory, open '//data.trie'     at Object.openSync (fs.js:443:3)     at Object.readFileSync (fs.js:343:35)
I'm creating a lambda using Typescript, serverless; scaffholding through temaplate:
$ serverless create --template aws-nodejs-typescript && npm install
This is the webpack.config.js (which is the default from the above aws-nodejs-typescript template):
`
const path = require('path');
const slsw = require('serverless-webpack');
const entries = {};
Object.keys(slsw.lib.entries).forEach(
key => (entries[key] = ['./source-map-install.js', slsw.lib.entries[key]])
);
module.exports = {
mode: slsw.lib.webpack.isLocal ? 'development' : 'production',
entry: entries,
devtool: 'source-map',
resolve: {
extensions: ['.js', '.jsx', '.json', '.ts', '.tsx'],
},
output: {
libraryTarget: 'commonjs',
path: path.join(__dirname, '.webpack'),
filename: '[name].js',
},
target: 'node',
module: {
rules: [
// all files with a .ts or .tsx extension will be handled by ts-loader
{ test: /.tsx?$/, loader: 'ts-loader' },
],
},
};
`

You need add brfs transform. See config of the example i linked above

Here is my repo: https://github.com/Pzixel/PDFKit-example.git
As you can see I add "brfs" transformation.
However, it doesn't work to me:

You are applying brfs to ts files. You should create a specific rule for js files.

It won't help (becuase there is no TS files in these libs) but I did it.
Still not working.

I'm having this exact problem as well, when trying to use the module on a webpacked node.js server.

I created a PR fixing https://github.com/Pzixel/PDFKit-example/pull/1
webpack try to use es module version even on node which brfs does not supports. brfs also dont like babel interopDefault helper

If anyone is looking for a simple temporary solution, you can download the standalone js file at https://github.com/foliojs/pdfkit/releases/download/v0.10.0/pdfkit.standalone.js
Then just require that in code.

I created a PR fixing https://github.com/Pzixel/PDFKit-example/pull/1
webpack try to use es module version even on node which brfs does not supports. brfs also dont like babel interopDefault helper

@blikblum @Pzixel
Looks like you found a solution, however that repo is no longer public - do you have any details of what the solutions was?

In case someone hits this issue in the future.  I was able to address this error by adding the following to the module.rules in the repo/webpack.config https://github.com/Pzixel/PDFKit-example.git
{test: /unicode-properties[/\]unicode-properties.cjs.js$/, loader: "transform-loader?brfs"},
The primary issue for me was that webpack was using the es, not cjs file for unicode-properties/unicode-properties.cjs.js and in turn not inlining the data.trie file contents via the transform-loader?brfs

In case someone hits this issue in the future.  I was able to address this error by adding the following to the module.rules in the repo/webpack.config https://github.com/Pzixel/PDFKit-example.git
{test: /unicode-properties[/\]unicode-properties.cjs.js$/, loader: "transform-loader?brfs"},
The primary issue for me was that webpack was using the es, not cjs file for unicode-properties/unicode-properties.cjs.js and in turn not inlining the data.trie file contents via the transform-loader?brfs

I was finally able to get this working server side with webpack using config from the example webpack.config at Pzixel/PDFKit-example.git as mentioned above although I had to add all of the following:
...
const StringReplacePlugin = require("string-replace-webpack-plugin");
...
module.exports = {
    ...
    resolve: {
		...
        alias: {
          'unicode-properties': 'unicode-properties/unicode-properties.cjs.js',
          'pdfkit': 'pdfkit/js/pdfkit.js'
        }
    },
    plugins: [new StringReplacePlugin()],
    module: {
        rules: [
            ...
            {
              enforce: 'pre',
              test: /unicode-properties[\/\\]unicode-properties/,
              loader: StringReplacePlugin.replace({
                replacements: [
                  {
                    pattern: "var fs = _interopDefault(require('fs'));",
                    replacement: function () {
                      return "var fs = require('fs');";
                    }
                  }
                ]
              })
            },
            {test: /unicode-properties[\/\\]unicode-properties/, loader: "transform-loader?brfs"},
            {test: /pdfkit[/\\]js[/\\]/, loader: "transform-loader?brfs"},
            {test: /fontkit[\/\\]index.js$/, loader: "transform-loader?brfs"},
            {test: /linebreak[\/\\]src[\/\\]linebreaker.js/, loader: "transform-loader?brfs"}
        ]
    }
};

You need to npm/yarn install transform-loader and string-replace-webpack-plugin to get this to work.

I was finally able to get this working server side with webpack using config from the example webpack.config at Pzixel/PDFKit-example.git as mentioned above although I had to add all of the following:
...
const StringReplacePlugin = require("string-replace-webpack-plugin");
...
module.exports = {
    ...
    resolve: {
		...
        alias: {
          'unicode-properties': 'unicode-properties/unicode-properties.cjs.js',
          'pdfkit': 'pdfkit/js/pdfkit.js'
        }
    },
    plugins: [new StringReplacePlugin()],
    module: {
        rules: [
            ...
            {
              enforce: 'pre',
              test: /unicode-properties[\/\\]unicode-properties/,
              loader: StringReplacePlugin.replace({
                replacements: [
                  {
                    pattern: "var fs = _interopDefault(require('fs'));",
                    replacement: function () {
                      return "var fs = require('fs');";
                    }
                  }
                ]
              })
            },
            {test: /unicode-properties[\/\\]unicode-properties/, loader: "transform-loader?brfs"},
            {test: /pdfkit[/\\]js[/\\]/, loader: "transform-loader?brfs"},
            {test: /fontkit[\/\\]index.js$/, loader: "transform-loader?brfs"},
            {test: /linebreak[\/\\]src[\/\\]linebreaker.js/, loader: "transform-loader?brfs"}
        ]
    }
};

You need to npm/yarn install transform-loader and string-replace-webpack-plugin to get this to work.

Dude, you saved my day!

A webpack 5 example can be found at https://github.com/foliojs/pdfkit/tree/master/examples/webpack

From anyone coming here with an Nx.dev project that is building a stand-alone nodejs script, I had trouble getting any of the above solutions to work as they were. The final config that worked for me:
webpack.config.js
module.exports = (config, context) => {
  return {
    ...config,
    resolve: {
      ...config.resolve,
      alias: {
        ...config.resolve.alias,
        'unicode-properties': 'unicode-properties/unicode-properties.cjs.js',
        'pdfkit': 'pdfkit/js/pdfkit.js'
      }
    },
    module: {
      ...config.module,
      rules: [
        ...config.module.rules,
        {
          enforce: 'pre',
          test: /unicode-properties[\/\\]unicode-properties/,
          loader: 'string-replace-loader',
          options: {
            search: "var fs = _interopDefault(require('fs'));",
            replace: "var fs = require('fs');"
          }
        },
        {
          enforce: 'post',
          test: /unicode-properties[\/\\]unicode-properties/,
          loader: 'transform-loader',
          options: {
            brfs: {}
          }
        },
        {
          enforce: 'post',
          test: /pdfkit[/\\]js[/\\]/,
          loader: 'transform-loader',
          options: {
            brfs: {}
          }
        },
        {
          enforce: 'post',
          test: /fontkit[/\\]index.js$/,
          loader: 'transform-loader',
          options: {
            brfs: {}
          }
        },
        {
          enforce: 'post',
          test: /linebreak[/\\]src[/\\]linebreaker.js/,
          loader: 'transform-loader',
          options: {
            brfs: {}
          }
        }
      ]
    }
  };
};

project.json
 "build": {
      "executor": "@nrwl/node:build",
      ...
      "options": {
      ...
        "webpackConfig": "packages/make-qrcodes/webpack.config.js",
      ...
      }
    },

Dependencies / package.json
    "string-replace-loader": "^3.1.0",
    "transform-loader": "^0.2.4",


add daytona update command

Is your feature request related to a problem? Please describe.
It would be great to have daytona update command that runs install script.

Duplicate od #231


import anything which can be required from node

What if we import any file which could be required? For example if user of this lib has registered xml, yaml, ini or some other extension handler in require.extensions then just import it and don't stick to only json extension.
If so user could import js and json files or if he/she registers any other extension, user would be able to import it as well. For example better-require registers handlers to some data files.

if that's ok name of this repo will be irrelevant because this will not only import json but anything that's requirable.

Sorry to say, but that's outside the scope of this repo. This repo is more require-json to a better-require (which I guess doesn't exist for node-sass importers).


Fix: Loses focus on User Search in users tab

Proposed Changes

Fixes #9398
Fix: the focus on page reload for userlistview
Fix: The cmd+k command focus

cmd k is used for focus in middle of video after using esc key for blur
https://github.com/user-attachments/assets/1051358b-369c-4101-8e39-b5345b0e1d19
@ohcnetwork/care-fe-code-reviewers
Merge Checklist

[ ] Add specs that demonstrate bug / test a new feature.
[ ] Update product documentation.
[ ] Ensure that UI text is kept in I18n files.
[ ] Prep screenshot or demo video for changelog entry, and attach it to issue.
[ ] Request for Peer Reviews
[ ] Completion of QA

Summary by CodeRabbit

New Features

Improved loading state handling in the Manage Users component.
Enhanced pagination functionality with a fallback for total count.

Bug Fixes

Ensured the pagination component receives a valid number when user data is unavailable.

I don’t think the Cypress tests failed due to the changes in this PR.

The objective is not just to make things work. The aim is to solve the underlying problem :)

I don’t think the Cypress tests failed due to the changes in this PR.

Lets reuse our latest search component used in the patients page.

no longer relevant in new architecture


merge from template-node-app

.github/workflows/ci.yml

chore(deps): remove 20.11.1 (jobs.test-node.strategy.matrix.node-version)

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 58.883%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
109

Relevant Lines:
182

💛  - Coveralls


The scenario may be better if it was closer to a real world example

So, given the scenario as described in the docs one thing is not quit clear to me. It seems it rate limits based on the total number of requests. In a large number of real world scenarios this would probably be based on the source IP.
In the example in this doc, the rate limit is applied to the /promo endpoint. Does it mean that if there are over a thousand requests in the specified period originating from several IPs all incoming traffic will be rate limited or is it applied per source IP? e.g. the one IP that generates over 1000 requests is rate limited, the other IP that generates a new request is allowed through?
If the total number of requests is the only deciding factor, how could this example be extended so that the rate limit is applied based on the number of requests per source IP to the promo endpoint. I think it will make this example more real world with the added benefit that it can explain how multiple conditions can be set up and controlled.

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

ID: edb534bc-b50c-3859-a8f1-49ac3af15187
Version Independent ID: 29f4147b-de4d-c805-91b9-71ca6e2765c2
Content: Configure WAF rate limit rule for Front Door
Content Source: articles/web-application-firewall/afds/waf-front-door-rate-limit-configure.md
Service: web-application-firewall
GitHub Login: @vhorne
Microsoft Alias: victorh

@Expecho
Thank you for your feedback! We have assigned this issue to the author to review further and take the next course of action.

@Expecho
Perhaps there is some confusion with the phrase from a particular socket IP address  in the article. The word from implies it is a source IP address that is being discussed. But perhaps this is too subtle. I'll adjust the phrasing in the article to explicitly state source IP address.
For example, the lead paragraph now reads:
The Azure Web Application Firewall (WAF) rate limit rule for Azure Front Door controls the number of requests allowed from a particular source IP address to the application during a rate limit duration.
#please-close


Something is up with the tag/version

For now I've switched to "dev-main" , but a release would be better.

Thanks so much for reporting @leowebguy! Hey @nburka @gauthierm , could we look into this, please?

Hey @leowebguy - what are you trying to do? I just took a look, and the package.json version number hasn't been updated for 3 years since we launched the project. It's been 0.1.0 the whole time. The project isn't very well set up to be installed via NPM because it also includes the entire website and not just the icons.
We actually had a PR submitted to make the icons publishable via NPM here https://github.com/resolvetosavelives/healthicons/pull/185#issuecomment-1607875613 but it didn't have a way to resolve the website/nextJS issue.
I think the ideal solution would be something like publishing all of the icons in one repo, and then installing that in a separate website repo. But that would make the management of the website more difficult of the designers who have limited git experience. Any suggestions you have would be appreciated.

@gauthierm do you have any insight on the best way to restructure things so that:

people who just want the icons can install the icons package
we still have the website in a repo
there's a very easy way to use yarn to download the latest icons from Figma, update the icons (maybe in their own repo), release an npm package with updated version number, while also updating the website and releasing it.

Yeah, maybe the way to handle it is just to split the repos. So we'd have:

resolvetosavelives/healthicons which would just have the icons
resolvetosavelives/healthicons-website which would have the website with the icons installed via the npm package

So to release new icons, we'd need to:

in the "icons" repo, run yarn update-icons like we currently do
add new instructions on how to release the NPM package or just add a step like yarn release or something
switch to the "website" repo and yarn upgrade healthicons
make a PR and merge

It'll be a bit more confusing, but not too bad. As long as we can make it relatively easy to update the package version numbers.

Another solution would be what was suggested in the other PR https://github.com/resolvetosavelives/healthicons/pull/185#issuecomment-1948702517
Moving all dependencies into devDependencies. Because the website is published as static HTML, this would work. But, if we ever wanted to move to a full NextJS release, I don't think it would work.

Hey @leowebguy - this should now be resolved!! I've merged the PR that cleans up the NPM package. I also released a 1.0.1 release. We will start releasing new icons with new version numbers in the future.


Delete fixed header height

Fixes #162.

Ha, guess I overlooked that line!
Thanks!
Here's with this PR:

I don't see anything unexpected, so I'm going to approve, but @melissawm can make the final call.

Looks great to me, thanks @gabalafou !


Define rule DDF00020

@nickdedonder
This check is checking for actual conditional activities in the protocol against the reason. We discussed redoing this since it is not part of the USDM.
I thought there was a codelist for reason for the condition but there isn't. There is already another check for if Activity or Procedure is conditional then there must be a reason. The thought was this was the reverse of the rule.
I was going to change this to another rule until we discussed the potential of keeping these. Please advise.
First, is it valid the (reverse), I am leaning towards not.
Second, may I reuse the number.

This is a duplicate of #31


The 4bit-quantized TinyLlama-1.1B's weight only takes up 550MB RAM ?

After fine-tuning the model, I obtained a 2.2 GB PyTorch model.bin file. Is it possible to reduce this model size to 550 MB, and if so, how and when can we achieve this?

You fined tuned a quantized model or the original model?
Probably you fined tuned the original model so now you need to quantized.
Go to the llama.cpp repo and find the quantize folder. Find some Youtube videos if you need help.

It actually takes up around 700MB RAM on my Mac (using llama.cpp)

@jzhang38 After finetune model model_name = "TinyLlama/TinyLlama-1.1B-python-v0.1" on my own dataset with lora and SFTTrainer i got model size 2.05 , is this model size take 600-700 MB or how can we reduce model size upto 600-700MB ?

@TapendraBaduwal You can checkout llama.cpp

@jzhang38 Thank you . Also  how can i apply best practice to continue training after loading from a lora checkpoint ?
I want to train lora checkpoint adapter continue training with new dataset.

@TapendraBaduwal I recommend you to check https://github.com/OpenAccess-AI-Collective/axolotl


Update readme install instructions

As risen for example in #296 our current installation instructions build a lot from source using the default branches. Obviously, this introduces changes not really applicable to older ROS versions.
For example, ros2_control dropped support for the deprecated spawner.py on the main branch. Therefore, I suggest changing the README to use the distro-specific dependency definitions and I updated the galactic definitions here.
In the long run we should try to reduce those as well, as packages from our not-released... rosdistro files are indeed released. But that's for another PR...

In the long run we should try to reduce those as well, as packages from our not-released... rosdistro files are indeed released. But that's for another PR...

Fully agree. Can you contact me directly at some point to discuss shortly release strategy, i.e., what is missing from ros2_control to get packages released?

As far as I have found so far, there are no other ros2_control packages missing.


Can't see Streaming Backend field in the Pegasus Simulator tab on the Isaac-sim-2023.1.0

First of all, I would like to express my infinite appreciation for this project.
This project solved many of the test problems of PX4 and Isaac-sim that I have been curious about.
I found the following problems while installing the version of Isaac-sim-2023.1.0 according to the guide document.
I can't see Streaming Backend field in the Pegasus Simulator tab on the Isaac-sim-2023.1.0.
This is my screen capture.
I want to know what the problem is.

I look forward to your kind reply.

Have you tried it with Isaac Sim version 2022.2.0? Even with Isaac Sim version 2022.2.1 some features were not properly working for me. Therefore I have been sticking with 2022.2.0 for now.

Today I've updated most features to work with the newer version 2023.1.1. I disabled the ROS2 streaming backend via GUI, because I was not liking the way it was behaving. I should fix that soon. I've also added scroll bars to fix the viewing problem for smaller screens.


Specify Bloom Filter Indexing

[ ] Modulus
[ ] RECOMMEND m to be a power of two
[ ] MUST resample otherwise — define resampling method

I ended up using @matheus23's approach used in https://github.com/matheus23/rust-set-reconciliation/blob/4cbe2079600df906b9e18bff1f6a177ac7242cc3/src/ibf.rs#L128-L168, but with the uniqueness check removed.
Hasher iterator pattern
https://github.com/fission-suite/car-mirror/blob/f325c5ab651abb5452ced313243c91bb1ac57775/bloom/bloom.go#L105-L162
Use of Hasher for adding to and testing bloom filter
https://github.com/fission-suite/car-mirror/blob/f325c5ab651abb5452ced313243c91bb1ac57775/bloom/bloom.go#L65-L89
We also need to specify endianness.  The current implementation uses big endian.


Version 3.4.5 introduced a breaking change

Bug Description:
After updating Cadwyn to version 3.4.5, a GET endpoint that previously returned a 404 error with a custom message (when a business object was not found in the database) now returns a 500 error without any description. Despite configuring the endpoint to allow 404 responses, this change did not resolve the issue. Further investigation showed that the error was correctly generated and passed to the router.
Expected Behavior:
The endpoint should return a 404 error with the appropriate message if the business logic cannot find the specified business object in the database.

Fixed it in 3.5.0. Yanked 3.4.5. Big thanks for reporting this!


CMake Error at conf.d/config.cmake

When I run cmake . . from build directory, I see following:
cmake ..
CMake Error at conf.d/config.cmake:163 (include):
include could not find load file:
CMakeAfbTemplates

Call Stack (most recent call first):
CMakeLists.txt:22 (include)
-- Configuring incomplete, errors occurred!
See also "/home/amit/work/helloworld-html-application/CMakeFiles/CMakeOutput.log".

I have same issue. So, I revert latest commit. https://github.com/iotbzh/helloworld-html-application/commit/f92a6dde4f18324cb5b866bd11094778541492a0
Then It works.

Yes, this is due to the migration of app-templates as a CMake module. Without the CMake module you can't build it anymore indeed :)
Please find the required module installation instructions here


Support for ruby gems environment

Support for ruby gems environment

@ludsrill
All Fluid Attacks now runs on this, we don't use Ruby extensively (maybe 100-200 gems) but anyway the essential features for packaging any gem should be available now

https://github.com/fluidattacks/makes#ruby
https://github.com/fluidattacks/makes#makerubyversion
https://github.com/fluidattacks/makes#makerubygemsinstall
https://github.com/fluidattacks/makes#makerubygemsenvironment
https://github.com/fluidattacks/makes#fetchrubygem


Added Python solution for 1078. OccurrencesAfterBigram

Added Python solution for 1078. OccurrencesAfterBigram. #72

@JoyKrishan, use snake case for variable names


How do I add a row containing a SwiftUI view?

I'm pretty new to Swift, so sorry if this should be easy and I'm just not finding the answer. I was looking for a discussion place for this but couldn't find one.
I have a SwiftUI view that is a simple scrollview of buttons. I'd like to add this to a row just above the standard keyboard, but I can't quite figure out how to accomplish this. What am I missing?
Really sorry if this should be simple and I'm missing it. Thanks.

Never mind... 😨


no authentication

I need to use decap CMS with minimum complexity, authentication complexities are too much for me!
I think the best method is to use the htpasswd file
Very simply, I put this file in /admin and authenticate without using a special service
for github access is possible to hard code token in client?
and can create feature for no authentication  backend?

Hi @njfamirm, thanks for submitting.
First, the feature description is lacking explanation, please fill out all the fields in the issue template
Second, I think that hardcoding GitHub tokens is a security violation and that there is no place for it in Decap.
For these reasons, I'm closing the issue for now. Once you add the missing information, I can open it again.

Thank you for your response
I tried to provide additional explanations, this is all I could relate...
Of course, I came up with a better idea
If we can restrict user access to /admin
Is it possible to get a secret token on the client-side and log in after returning?


Resolved all merges and conflicts

New file structure for git, including everyone's current changes

back_end/Pipfile
line 10
[[django-allauth = ""]] should be django-allauth = "" It didn't show an error but might. I thought this was fixed

Looks good to me.


Chore: [WIP] Named exports refined

Summary
Exports for widgets and core (Step1)

Exports the named modules (Widgets) as the default. Aligns the named export for the named library. Will also allow for adding of new methods if needed without creating a breaking change.
Put all widgets to use the new API (Widget) function export.
Removed redundant export for default exports (used for UMD script testing only)
Cleaned up netlify-cms-core to export from named export for default.

Test plan

Tested against UMD builds for script imports.
Normal tests for bundled build (netlify-cms.js)

Discussion
The changes in Step1 are initial for discussion. I believe this will allow for additions to widget API's without breaking changes.
Thoughts?

@erquhart I am comfortable enough to say these changes are pretty solid so far and could be pushed to beta. Unless of course you see something that is missing or broke.


Integrate Pinning file: Do not error on bad escape in regex pattern

Changelog Description
Do not error on bad escape in regex pattern
Additional info
Fixes #63
Testing notes:

Configure project roots: XXX (to be defined!)
Run a simple Maya USD publish from Maya (e.g. publish a cube)

Thanks - I'll merge but open the remaining notes as issue because I'm sure the rootless path generation does not work.

Thanks - I'll merge but open the remaining notes as issue because I'm sure the rootless path generation does not work.

yeah we need to "normalize" the input from ayon server as the string in there can be about anything.
good for us is that the usd returns will be the same every time.
so we just need to normalize the input to the Usd standard.


Write Tutorial

We should write a tutorial for new developers to get started with the Java Adapter.
I think it should consist of:

Adding dependency on the Java Adapter hosted on our repository (via Maven or Gradle)
Sending a simple message (i.e. CAP)
Receiving a message via callback
How to configure / what can be configured

Probably we should add a little example project with minimal configuration and code that you can check out, run and modify to get started.

For gradle dependency:
repositories {
jcenter()
maven { url 'https://raw.github.com/DRIVER-EU/maven-repo/master' }
maven { url 'http://packages.confluent.io/maven' }
}
dependencies {
implementation 'driver.eu:testbed-adapter:1.0.11'
}

For maven:

confluent
http://packages.confluent.io/maven/

driver-mvn-repo
https://raw.github.com/DRIVER-EU/maven-repo/master/

true
always

driver.eu
testbed-adapter
1.0.11


Output directory

Output directory is being put in so not sure why its saying it's not there. Is probably just me getting it wrong.
.env file:
'OUTPUT_DIRECTORY': {
    type: String,
    required: true,
    default: '/home/jake/Documents',
},

Is giving this error. :
0|youtube-dl-react-viewer  | Error: Required environment variable "OUTPUT_DIRECTORY" not specified.
0|youtube-dl-react-viewer  |     at parse (file:///home/jake/Documents/Youtube%20Channels/a/youtube-dl-react-viewer/youtube-dl-express-backend/parse-env.js:87:27)
0|youtube-dl-react-viewer  |     at file:///home/jake/Documents/Youtube%20Channels/a/youtube-dl-react-viewer/youtube-dl-express-backend/parse-env.js:143:16
0|youtube-dl-react-viewer  |     at ModuleJob.run (internal/modules/esm/module_job.js:152:23)
0|youtube-dl-react-viewer  |     at async Loader.import (internal/modules/esm/loader.js:166:24)

Change that part of the .env to this:
OUTPUT_DIRECTORY=/home/jake/Documents

An example env file is in the backend folder, called .env.sample. You might need to enable hidden files to see it if you're using Mac/Linux


Expand *_API_KEY pattern and update documentation for env vars

Is your feature request related to a problem? Please describe.
The documentation only describes one *_API_KEY env var (OPENAI_API_KEY), but it is now possible to use multiple models from different services. The variable name suggests that this key is only for use with OpenAI (as it was recently renamed from AICHAT_API_KEY). A grep also reveals that {env_prefix}_API_KEY is called in src/clients/ernie.rs.
Describe the solution you'd like
The *_API_KEY pattern be followed for all models/services, and is properly documented in the README or in the env vars wiki page.
Describe alternatives you've considered
Maybe using env var OPENAI_API_KEY works for all services, I didn't test that. However the recent rename from AICHAT_API_KEY suggests that it doesn't.
Additional context
I'm looking to load the API key(s) in from the env and not in the config file so that I can store it elsewhere in an encrypted format.

All API_KEY can be set through the {env_prefix}_api_key environment variable.
The env_prefix is the client's name or type.

Environment-Variables updated.


Create a database for tracking sweepstakes entries.

Creates a database for tracking sweepstakes entries.  After sweepstakes are entered, it will skip checking it in the future.  This will prevent unnecessary hops between the main screen and individual sweepstakes.  The thought being that this will cut down on login page requests and CAPTCHAs.
Addresses #74.

I should have time to review this this week. Very exciting!

It definitely works, which is totally awesome, but I have some nitpicky items that I'd like to request be done before merging. One performance issue, others not as important or I could clean up later. I'll write them up in a review.

Thanks for taking a look at this.  I have never wrote production level NodeJS before and I appreciate the input.
I had some similar thoughts as you about opening and closing the DB, but I couldn't seem to workout the scope. I also had the === at first, but backed it off. LOL.  I have never worked with jsdoc, so I was doing lots of copy and paste.
I will work on your recommendations over the next couple of days and push them into my forked branch.  I am pretty sure it will flow into the merge request. Please correct me if I am wrong on how to push fixes.

You are correct, pushing them into your branch is all you need to do.
Thanks for being gracious about the feedback! I have to do code reviews all the time at work, I've come to really appreciate getting and receiving feedback myself.
Looking forward to releasing this.


add pkg for support coveralls

add coveralls support package

Changes Unknown when pulling f2ea6038551fcc3ac928a2a2f20e79bf029e801e on yhua123:master into ** on vmware:dev**.

Seems this works! Thanks!


Multibar having problems showing up

I'm having a problem with MultiBar where SingleBars created with it aren't showing up or only all but the last one shows up. I created a repl.it in order to try and show what is going on.
https://repl.it/join/pqfvcnhb-jarquafelmu
On line 37 I create a top over all bar and then on line 69 I am creating the sub-bars in order to get an idea of what is happening. Except the subbars aren't showing up.
I'm not sure what I am doing wrong here

please provide an example here on GitHub or any other service which doesn't require a login

I don't know where to host it that doesn't require a log in and would allow for npm modules

just post a minimal example here

I had the same issue but I realised that it was because my code was entirely synchronous (I was using fs.statSync). Once I moved to async, the bar showed up.


compiling Automerge JS to golang

Would you have time to have a quick look at this code and tell me if you see it as clean enough to port ?
Its a CRDT package written in JS.
https://github.com/automerge/automerge/tree/master/src

@jingweno
I got the basic setup going.
My aim with all this is to convert some JS code to golang with no dependencies in the final golang code.
I might not fully understand but why is outputted golang code dependent on "github.com/jingweno/godzilla/runtime".
Its not really a transpiler, but a runtime reflection / AST based interpreter ?
Please let me know
echo "console.log('Hello, Godzilla')" | $(GODZILLA_BINPATH)/godzilla build --debug --output

package main

import (
        . "github.com/jingweno/godzilla/runtime"
)

func main() {
        global := NewDefaultContext().Global
        _ = global

        // line 1: console.log("Hello, Godzilla")
        Console_Log([]Object{JSString("Hello, Godzilla")})
}

As you see this is Golang source code with no interpretation. Just calling Console_Log and wrapping the JS types to corresponding types from Godzilla. I'm not looked the code of this library, just look to the example which you mentioned.


Webhook imported from Yahoo Inc

Description
Garm relies on Yahoo's repository k8s-athenz-webhook, which is no longer regularly updated. Through this PR, we're bringing in the original code from the repository so we can manage it ourselves from here on out.
Type of change

[ ] Bug fix
[ ] New feature
[X] Refactoring (no functional changes, no api changes)
[ ] Non-code changes (update documentation, pipeline, etc.)

Flags

[ ] Breaks backward compatibility
[ ] Requires a documentation update
[ ] Has untestable code

Checklist

[ ] Followed the guidelines in the CONTRIBUTING document
[ ] Added prefix [skip ci]/[ci skip]/[no ci]/[skip actions]/[actions skip] in the PR title if necessary
[ ] Tested and linted the code
[ ] Commented the code
[ ] Made corresponding changes to the documentation
[ ] Passed all pipeline checking

Checklist for maintainer

[ ] Use Squash and merge
[ ] Double-confirm the merge message has prefix [skip ci]/[ci skip]/[no ci]/[skip actions]/[actions skip]
[ ] Delete the branch after merge


What are the LineMOD results that should be obtained without changing the source code?

Hello,
Thanks for sharing.
I would like to know if the results I am getting are correct, without doing changes to the code.
Test time 01h 43m 31s Epoch 49 TEST FINISH Avg dis: 0.013013, Accuracy: 0.858118

Which script are your running?
This result is not correct. To evaluate on LineMOD, you need to run eval_linemod.py. The accuracy should be close to 0.928 with provided model.

I trained a new LineMOD model from scratch, using the code with the current hyperparameters.

I have trained the model multiple times. It should not deviate too much from the results reported in our paper.
Could you please make sure you exactly followed the steps in README? Could you also provide the results tested with our pre-trained model?

pre-trained model
python eval_linemod.py --model trained_models/linemod/pose_model_40_0.009487.pth \
    --output_result_dir results/eval_linemod_pose_model_40_0.009487
...
Object 1 success rate: 0.8541468064823642
Object 2 success rate: 0.9485935984481086
Object 4 success rate: 0.9137254901960784
Object 5 success rate: 0.9537401574803149
Object 6 success rate: 0.93812375249501
Object 8 success rate: 0.8136769078295342
Object 9 success rate: 0.8694835680751174
Object 10 success rate: 1.0
Object 11 success rate: 0.9980694980694981
Object 12 success rate: 0.9238820171265462
Object 13 success rate: 0.965270684371808
Object 14 success rate: 0.9376199616122841
Object 15 success rate: 0.9414024975984631
ALL success rate: 0.927484333034915
Accuracy: 0.9275180722911637
3 corrupted data

trained models with https://github.com/mentian/object-posenet/tree/175c97a35f2ebed5994e98026c8911f2f32e6133
python eval_linemod.py --model results/linemod.2020080518/pose_model_49_0.013013.pth \
    --output_result_dir results/eval_linemod.2020080518_pose_model_49_0.013013
...
Object 1 success rate: 0.6978074356530028
Object 2 success rate: 0.8661493695441319
Object 4 success rate: 0.7803921568627451
Object 5 success rate: 0.8198818897637795
Object 6 success rate: 0.8862275449101796
Object 8 success rate: 0.7086223984142715
Object 9 success rate: 0.6967136150234742
Object 10 success rate: 1.0
Object 11 success rate: 0.997104247104247
Object 12 success rate: 0.7992388201712655
Object 13 success rate: 0.8794688457609806
Object 14 success rate: 0.8349328214971209
Object 15 success rate: 0.8443804034582133
ALL success rate: 0.831468218442256
Accuracy: 0.8316091960125701

python eval_linemod.py --model results/linemod.2020080519/pose_model_49_0.012852.pth \
    --output_result_dir results/eval_linemod.2020080519_pose_model_49_0.012852
...
Object 1 success rate: 0.6949475691134414
Object 2 success rate: 0.903976721629486
Object 4 success rate: 0.6715686274509803
Object 5 success rate: 0.8651574803149606
Object 6 success rate: 0.8772455089820359
Object 8 success rate: 0.7195242814667988
Object 9 success rate: 0.7887323943661971
Object 10 success rate: 1.0
Object 11 success rate: 0.9980694980694981
Object 12 success rate: 0.8477640342530923
Object 13 success rate: 0.797752808988764
Object 14 success rate: 0.9049904030710173
Object 15 success rate: 0.8904899135446686
ALL success rate: 0.8437033721277231
Accuracy: 0.8430937877885339

python eval_linemod.py --model results/linemod.2020080520/pose_model_49_0.013552.pth \
    --output_result_dir results/eval_linemod.2020080520/pose_model_49_0.013552
...
Object 1 success rate: 0.6196377502383222
Object 2 success rate: 0.8680892337536372
Object 4 success rate: 0.45588235294117646
Object 5 success rate: 0.7490157480314961
Object 6 success rate: 0.7864271457085829
Object 8 success rate: 0.6491575817641229
Object 9 success rate: 0.4863849765258216
Object 10 success rate: 0.9990592662276576
Object 11 success rate: 0.9961389961389961
Object 12 success rate: 0.6993339676498572
Object 13 success rate: 0.8621041879468846
Object 14 success rate: 0.800383877159309
Object 15 success rate: 0.8203650336215178
ALL success rate: 0.7529841838257236
Accuracy: 0.7532292398236448

hw
bus            PRIME X370-PRO
memory         16GiB DIMM DDR4
processor      AMD Ryzen 5 2600 Six-Core Processor
graphics card  nVidia TU106 [GeForce RTX 2070]

I found one mistake in train.py line10.
opt.repeat should set to 10.
I apologize for the inconvenience caused. Could you try to train one more time? Let me know if it still has problem.
The testing result with our pre-trained model is correct.

Thank you very much, this are the results with opt.repeat_epoch set to 10.
python eval_linemod.py --model results/linemod.2020080922/pose_model_49_0.010389.pth \
    --output_result_dir results/eval_linemod.2020080922/pose_model_49_0.010389
...
Object 1 success rate: 0.8188751191611058
Object 2 success rate: 0.938894277400582
Object 4 success rate: 0.8676470588235294
Object 5 success rate: 0.9291338582677166
Object 6 success rate: 0.9271457085828343
Object 8 success rate: 0.8067393458870169
Object 9 success rate: 0.8582159624413146
Object 10 success rate: 1.0
Object 11 success rate: 0.997104247104247
Object 12 success rate: 0.917221693625119
Object 13 success rate: 0.9366700715015321
Object 14 success rate: 0.8953934740882917
Object 15 success rate: 0.9365994236311239
ALL success rate: 0.9100268576544315
Accuracy: 0.9099723261934165


[Bug] RuntimeError: Boolean value of Tensor with more than one value is ambiguous

I strictly follow the instruction of environment installation. However, when I run the following command:
python -m lmquant.llm.run configs/llm.yaml configs/qoq/gchn.yaml --model-name llama2-7b --smooth-xw-alpha 0 --smooth-xw-beta 1

I still meet the following error:
  File "/cpfs01/user/chenmengzhao/efficientqat_repo/lmquant/lmquant/llm/run.py", line 276, in <module>
    run(config)
  File "/cpfs01/user/chenmengzhao/efficientqat_repo/lmquant/lmquant/llm/run.py", line 155, in run
    smooth_llm(model, config.quant, smooth_cache=torch.load(config.cache_path.smooth))
  File "/cpfs01/user/chenmengzhao/anaconda3/envs/lmquant/lib/python3.11/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/cpfs01/user/chenmengzhao/efficientqat_repo/lmquant/lmquant/llm/quant/smooth.py", line 189, in smooth_llm
    smooth_cache = smooth_cache or {}
                   ^^^^^^^^^^^^^^^^^^
RuntimeError: Boolean value of Tensor with more than one value is ambiguous

Have you solved it? I also encountered this problem.

@xpq-tech I still not know how to solve this problem.

Had a similar problem and solved by downgrading the transformer version to 4.42.0.


Strange artifacts in parallel rendering with ParaView

Hello ospray,
when we use ParaView (actually 5.6.0) together with Ospray on 4 of our cluster nodes, we see artifacts in the image (see attached picture). Most likely this is related to the distribution of the data and the parallel rendering. Any solution?
Best
Herwig

PS: I forgot to mention that we get the following error message when we start the volume rendering:
"ERROR: In /dev/shm/goebbert1/ParaView/5.6.0/gpsmkl-2018b-NVIndeX-Python-3.6.6/ParaView-v5.6.0/ParaViewCore/VTKExtensions/Rendering/vtkKdTreeGenerator.cxx, line 169
vtkKdTreeGenerator (0x1b6928c90): RegionIDs cannot be 0."
Despite this error message the rendering works somehow, but with this artifacts.

hi Herwig,
This is likely a bug with depth compositing that cropped up with a jump to the latest OSPRay version.  That specific problem has been fixed in vtk master.  Would it be easy for you to test against the vtk master branch to see if that fixes it for you?  Also, while it's fine to post here, this is better sent to the ParaView issues list as other paraview developers can take a look and track this issue.  Compositing is handled entirely in paraview/vtk.


Update rackspace/gophercloud to pickup Cinder v2 support

I would like to update the vendored rackspace/gophercloud code to the latest HEAD to pick up the Block Storage v2 api support.

So gophercloud was updated to support BlockStorage v2 api but the blockstorage files were left out
There is no openstack/blockstorage/v2 folder under vendor/github.com/rackspace/gophercloud/openstack

@albertomurillo The vendoring tool only vendors packages that are actually used by the current ciao code base.  For it to vendor the github.com/rackspace/gophercloud/openstack package we'd need to first add some code to ciao (or one of its dependencies) that imports that package.


FI-1584 EHR Launch with patient scopes

Summary
Adds additional launch for patient-scoped EHR launches.
Testing Guidance
There is a patient-scoped ehr launch group with the additional tests for smart v1 and v2.

Hi @Jammjammjamm, can you walk thru the expected use case to have patient scopes under an EHR Practitioner Launch?

Thanks @Jammjammjamm. This makes sense logically. Another use case to consider.

Hi @Jammjammjamm , 1 final clarification here...is this essentially an EHR Patient Launch OR is this an EHR Practitioner Launch scoped to 1 patient?
Some clarity here would be extremely helpful. If it is an EHR Patient Launch, having the consistency in naming to match the EHR Practitioner Launch would be greatly appreciated.

Patients apps that launch standalone
Provider apps that launch standalone

These scenarios are exactly the same (standalone launch).

Patient apps that launch from a portal
Provider apps that launch from a portal

These scenarios are exactly the same (EHR launch).
That is why I said it doesn't matter. There are only two SMART workflows, standalone launch and EHR launch. Whether it is a "patient" app or a "provider" app has no impact on the SMART workflow.

Okay, so you're equating portal to EHR Launch.
Short answer is you can have either a patient app or a provider app from a portal (EHR Launch) perspective.
You did say this but I needed specific clarity here as I echo this to clients.
The problem here is that
a Patient App launching from a portal = an EHR Launch from a patient portal
a Provider App launching from a portal = an EHR Launch from the EHR portal itself which only providers have access to

an EHR Launch from a patient portal
an EHR Launch from the EHR portal itself which only providers have access to

These are exactly the same as far as SMART is concerned.

I think that's reasonable to say but it's not exactly accurate when it comes to implementing bc while SMART sees them as the same thing, there could be 2 different processes at the implementation level and will have 2 different configurations for 2 different apps
I do appreciate your perspective and info regardless though.
My main goal was to ensure that clients understand what's expected so I thank you for that.


Complete the TUF client implementation

Description

Started in https://github.com/sigstore/sigstore-go/pull/7

@asraa, do you think we could pull in the TUF client from sigstore/sigstore to start, or should we keep iterating on this new implementation?

I'd start new, at least to fix the issues before (like the timestamp expiry / cache refresh thing)


stderr not reported

The output of the test run does not contain stderr log.
For many reasons one program might use stderr for debugging purposes (for my case, I use Haskell Debug.Trace which directly prints to stderr).
The reporter should include a section of the stderr and the log file of stderr.

Confirmed. It seems to be a regression since v0.9.1.
I'm going to be fixed.


generate release builds

Release builds: WORK IN PROGRESS - WINDOWS ONLY (for now)
I want to generate release build artifacts so people can start using this tool.  I still have a lot of work to go before this is usable in my art, but I'd really like to share what I have so far and allow others to be in the loop too!
This is my work-in-progress branch which is gonna have a crazy amount of commits on it as I perfect the GitHub actions to build a downloadable executable based on the latest code.
Instructions on how to install and use with Blender will come soon.

it works!


[BUG] upgrade command not working. Wrong config path expected.

To Reproduce
Steps to reproduce the behaviour:
0. (Delete all folders and stop the daemon if no clean install)

(run go-hass-agent register --force --terminal --server _URL_ --token _TOKEN_ if not already done)
run go-hass-agent --terminal upgrade
See error.

Expected behaviour
I would expect go-hass-agent to check the correct path.
Logs
Sep  5 22:49:30.305 WARN Upgrade failed. You may need to upgrade manually. Check
https://github.com/joshuar/go-hass-agent/blob/main/docs/BREAKING_CHANGES.md for
manual steps required.
 error="no directory from previous version found\nstat /home/alarm/.config/com.github.joshuar.go-hass-agent: no such file or directory"
go-hass-agent: error: upgrade failed: no directory from previous version found
                      stat /home/alarm/.config/com.github.joshuar.go-hass-agent: no such file or directory
…

Desktop (please complete the following information):

OS: Linux
Distribution Arch Linux ARM
Version 6.6.34-2-rpi

Hey @dflvunoooooo, you'll only need to run the upgrade command one-time if you had a previous version 9 (or lower)  installation, and have upgraded to v10+. So this error is expected as the upgrade command could not find any previous version to upgrade as you just registered with v10+. You don't need to run the upgrade command for minor/patch version upgrades.
I'll adjust the command so it doesn't report an error in this scenario (no previous installation).

That makes absolute sense. It was a bit late yesterday, sorry.


Added breadcrumbs to deep sharing docs

Getting started was undiscoverable.
Fixes #28

Hi @jwittner, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

It looks like you're a Microsoft contributor (Josh Wittner). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;


Add better hostname resolution

For Fabruic, we've opted for connect_with to resolve a hostname using the CloudFlare resolver with very secure settings. This is perfect for a game client, but not great for hosting a database server on a private network without hostnames or with private DNS.
Right now, PliantDB doesn't use connect_with and instead resolves the hostname using Tokio's ToSocketAddrs and uses connect with the resolved address. This means PliantDB currently works great for hosting a database, but for secure, trustworthy DNS resolution, we don't have a solution.
I see a couple of options:

Add an alternate path to Fabruic for using the Tokio resolver instead of trust-dns, and have a PliantDB feature flag to switch resolvers used.
Have PliantDB optionally use connect_with only if a non-IP-address hostname is detected, but keeping the current behavior by default.

Given the goals of fabruic, I'm leaning towards solving it completely in PliantDB with something like option 2.

As of cb2f1e9391211774636e9d65e39445e713a654d9, this has been fixed, but keeping this open because khonsulabs/fabruic#5 will move a lot of this logic into fabruic.

This was resolved the other day after updating fabruic.


[BUG] - Dropdown disableAnimation is broken

Describe the bug
When disableAnimation is true, the dropdown menu just doesn't show, I've tested on the site as well as within my app across Chrome and Firefox just to make sure.
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
Add the disableAnimation attribute.
Expected behavior
As a user I expect the dropdown menu to open up without the animation.
Screenshots or Videos
No response
Operating System Version
Windows
Browser
Firefox

Hi, The issue is not only for the Dropdown. It affects all Popover-based components when you disable animations.


Efficient joining for Equals and Equals_Ignore_Case using a hashmap

Pull Request Description

Implemented https://www.pivotaltracker.com/story/show/183913276
Refactored MultiValueIndex and MultiValueKeys to be more type-safe and more direct about using ordered or unordered maps.
Added performance tests ensuring we use an efficient algorithm for the joins (the tests will fail for a full O(N*M) scan).
Removed some duplicate code in the Table library.
Added optional coloring of test results in terminal to make failures easier to spot.

Important Notes

Checklist
Please include the following checklist in your PR:

[x] The documentation has been updated if necessary.
[x] All code conforms to the
Scala,
Java,
and
Rust
style guides.
All code has been tested:

[x] Unit tests have been written where possible.
[ ] If GUI codebase was changed: Enso GUI was tested when built using BOTH
./run ide build and ./run ide watch.

While could possibly find some minor comments and optimisations, it looks like a good step forward and should be a good build on top of.


Error while loading Yandex Music playlist

When trying to search a playlist from Yandex Music lavalink shows me an error

fixed in https://github.com/topi314/LavaSrc/releases/tag/3.2.8 and https://github.com/topi314/LavaSrc/releases/tag/4.0.0-beta.5


SQLite implementation - unit testing

Description
Currently the package does not support SQLite. This means that you cannot run SQLite backed unit tests against any part of the code that uses Tenancy because tenancy will force MySQL connection and cause your tests to execute in development database instead.

Actual behavior
Forces MySQL connection (default) in the middle of the test suite regardless what is in phpunit.xml
There was 1 error:

Tests\Feature\JoinTest::admin_creates_tenant
Illuminate\Database\QueryException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'test.websites' doesn't exist (SQL: select count(*) as aggregate from websites where uuid = 4f9b8380bbe84c1)

Expected behavior
Should not override system database connection setup by PHPUnit and use SQLite instead. If an unsupported driver is in use the tenancy should throw an exception out of the box. Currently there is no driver implementation for SQlite.

Information

hyn/multi-tenant version: latest
laravel version: 5.5
database driver and version: MySQL 5.7, SQLlite 2.8.17
php version: 7.1

Have you tried configuring your system connection to use sqlite too? I'm very curious now whether the package is compatible with a SQLite driver now 😊

Hi Daniel,
Did you update the package or something? I could give it an another shot
later today.
Thanks, Juha
On Mon, Nov 6, 2017 at 4:31 AM, Daniël Klabbers<EMAIL_ADDRESS>wrote:

Have you tried configuring your system connection to use sqlite too? I'm
very curious now whether the package is compatible with a SQLite driver now
😊
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/hyn/multi-tenant/issues/312#issuecomment-342108326,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJr-ZoTEVcos9ggoS5ZTYrKEXn34MrKrks5szt_wgaJpZM4QP7jo
.

Last release was 5.0.13 which was 2 days ago.

@juhasev no, nothing added to support this. Just curious whether compatibility is already existing..
I think it won't work because there's no pgsql driver support.

I found a solution that works with SQLlite. So the basic idea is that you disable "Tenancy" completely and build all your tests so that they can be run against a single "tenant" database in memory. All of my application logic happens in "tenant" databases so this works quite nicely but if your application requires testing in the "system" database this solution will not work but similar approach could be taken to cover those tests. In an ideal world it would be nice to see tenancy package to adopt a solution.

Modify you composer.json and make sure the following is there preventing tenancy from auto loading itself (reason: this prevents tenancy overriding whatever is specified in phpunit.xml)

  "extra": {
        "laravel": {
            "dont-discover": [
              "hyn/multi-tenant"
            ]
        }
    },

In your TestCase.php you need to run migration manually. In order to use RefreshDatabase and DatabaseMigrations to work automatically you would have to override method that call artisan command to migrate databases or just do this automatically in the setup method instead.

public function setUp()
{
        // Important
        parent::setUp();

        // Run migrations from tenant folder
        // Note: tenancy default is database/migrations/tenant)
        Artisan::call('migrate', [
            '--path' => 'database/migrations_tenant',
            '--database' => 'sqlite'
        ]);
}

Lastly you need to modify your AppServiceProvider.php to register() method to register TenancyProvider and WebserverProvider classes only when not testing.

        // Do not register Tenancy when in testing
        if ($this->app->environment()!=="testing") {
            $this->app->register(TenancyProvider::class);
            $this->app->register(WebserverProvider::class);
        }

I don't think supporting sqlite is going to be something that makes sense for this package, mainly because it does not work with constraints.

@luceos  I know this package is becoming defunct soon to be replaced by tenancy but one of the key reasons for using sqlite is the speed advantage when running tests.  Do you have any recommendations to improves the speed of tests over mysql as tearing up and down is significantly slow.  It may be my setUp and tearDowns but its good to see sqlite support in the new version.

I'd be willing to merge the sqlite driver as a pr.


API Proposal: Generate multiple files

Justification
Our API is going to be quite big and generating it all into one file will make the file very very large. I would like to avoid this, especially since a lot of the large sets will only be used on some specific pages (included admin pages).
Right now I don't commit the generated code to git, which is something that I would like to do in the future to allow us to follow code changes even if we can follow our swagger spec file.
API Proposal
Having a new way to generate code would be ideal in this situation. It would require a lot of changes to support, I can however see a good potential in being able to generate it per with the same ViewData.
let compiler = new Compiler({
  moduleName: "Test",
  className: "Test",
  swagger: swaggerSpec
});

compiler.compile("output_directory");

Something like that would generate a collection of files from the ViewData and resolve the import paths.
Considerations

Easier to maintain big projects
Performance improvements for big projects

I like the idea, it should make the codegenerator more powerful and customizable, and with the right abstraction level it would keep things fairly clean.
For your specific case though, have you looked into using webpack with tree shaking? With proper tree shaking configured you should end up only bundling the functions that you are actually using per page/component/application/etc. We have great success with that in another project using the code generator, where the resulting code generated file is pretty big. It is also possible to target the input swagger.json file more per page/component/application, but there are ofc. complications there if endpoints of the API is reused across those components

Before getting started with this it would be nice to do a bit of refactor of the current architecture, to allow for better customization from the start.
I haven't looked into Webpack tree shaking, perhaps I should, I do prefer to not do changes to Webpack unless I really have to. I currently have a few Webpack configs running on the same code, so keeping them in sync is not pleasant.

Agree, some cleanup is recommended before starting this work (not just for this specific proposal, but for the others as well).
Re. tree shaking: I really recommend looking into it overall, as it allows you to tree-shake away other unused stuff as well (dead code from your own project, unused library code, etc), which can really reduce the size of your shipped bundles


Add player-event linking and event deletion

Implement deletion of event when the last player leaves
Desired Outcome

Game events should not be left empty. When the last player leaves an event, the event should be automatically deleted.
After creating a game event, the player who created the event will be automatically added to it.
Logging in will be required for the player to create a new event.

Please describe the desired outcome for this PR.  Said another way, what was
the original request that resulted in these code changes?

Game events can currently created without any players being linked to them.
When the last player leaves an event, the event is not automatically deleted.
Currently, after creating a game event, the player who created the event is not automatically joined to it.

Implemented Changes

Modify GameEvent model, There is a conflict between the id field provided by the built-in Django framework and the id field defined in the mode, the id Field is now deleted from the model.
Add a migration named "0003_alter_gameevent_id" for the "game_event" app after running the "makemigrations" command, This migration will alter the "id" field in the "game_event" model.
Modify remove_from_event method.
Modify process_game_event_form
Added 2 methods to the GamEvent model.
Modify tests of creation of game event, client.force_login(player.user):  player most be logged in to create an event.

Connected Issue/Story
Resolves #97 #98
Dependencies

[x] This PR does not depend on other PR's

Definition of Done

Modify remove_from_event method.
Modify process_game_event_form
Added two methods to the GamEvent model.
Modify tests of creation of game event, client.force_login(player.user):  player most be logged in to create an event.
Implement a test to verify that the player has been successfully added to the event after its creation.
Implement a test to ensure that the game event has been deleted correctly and that the corresponding page no longer exists.

Test coverage

[x] This PR includes new unit and integration tests to go with the code
changes

Hi, great idea to link the player to the newly created event, keep up the good work, what about the logic in joining the game? Can it be implemented in this or as well?

The mentors requested the PR's to be small as possible, it will be made in another PR (:

i belive issue #98 can be referenced in the PR descreption as well

to reference issue #98 please update descreption to be like this:
resolves #97, resolves #98

@amitKaplansky please rebase on upstream/main so it's ready to be merged.


Build-server broken due to pdf dependency

./build_server.sh
[vite-plugin-pwa:build] [vite]: Rollup failed to resolve import "react-pdf" from "/Users/joep/dev/github/atomicdata-dev/atomic-data-brow
│ This is most likely unintended because it can break your application at runtime.
│ If you do want to externalize this module explicitly add it to
│ `build.rollupOptions.external`
│ error during build:
│ Error: [vite]: Rollup failed to resolve import "react-pdf" from "/Users/joep/dev/github/atomicdata-dev/atomic-data-browser/data-browser/
│ This is most likely unintended because it can break your application at runtime.
│ If you do want to externalize this module explicitly add it to
│ `build.rollupOptions.external`
│     at onRollupWarning<EMAIL_ADDRESS>│     at onwarn<EMAIL_ADDRESS>│     at Object.onwarn<EMAIL_ADDRESS>│     at ModuleLoader.handleInvalidResolvedId (file:///Users/joep/dev/github/atomicdata-dev/atomic-data-browser/node_modules/.pnpm/rollup@
│     at<EMAIL_ADDRESS>│     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

my bad - i forgot to pnpm install


Speeding up build/run requests with a pool of idle docker containers

This is a possible solution to #457
I've sped up the compilation/execution of snippets by using previously started and idle docker containers, rather than starting a new one for each request.
On my dev box, this new version runs a "hello world" in ~600 ms, while the master version takes ~1.3 secs. Since rustc takes ~400 ms, the overhead of docker is reduced to ~200 ms per request.
How it works
A pool of idle docker containers is started at playground start up. The default size is 10 containers per channel.
By sleeping for a long time in entrypoint.sh, containers stay idle.
When a request is handled, a container is removed from the pool. Cargo is called through cargo.sh, which cares of exporting env vars and killing the container once it's done. Thus, there's no need to drop a container that has been used.
However idle containers in the pool need to me manually terminated: DockerContainers Drop impl takes care of that, and kills them in parallel.
To ensure that drop is called when server shuts down, I've used crate ctrlc to install a shutdown hook
Known issues
Benchmarking the /execute api with siege, the new pool version is slightly slower than the master one: the former replies to ~4.5 req/sec, the latter to ~5.5 req/s
Also, because there's no way to gracefully shutdown iron (see https://github.com/hyperium/hyper/issues/338), if the server is terminated while receiving lots of requests, there's a chance that some docker containers will survive the shutdown: they'll have to be manually terminated.
On a side note, I'm new to rust, so any feedback is welcome

Also, this fix is for Sandbox compile and execute methods only: the other methods (format, clippy...) are unchanged

Thank you! As a fair warning, it will probably take me a little while to dig in here. If I haven't usefully commented in a few weeks, feel free to ping me again!

As requested, a kind ping to check this PR. I've just rebased it with the latest master

Hello there, another kind ping to check this PR. I've just rebased it with the latest master


Was not able to sign .crt file but I could sign the .pfx file

This was my error with no details.
Signing file: D:\a\r1\a_GENYX\drop\EasyPlexResultsNet48.Package_<IP_ADDRESS>_Debug_Test\EasyPlexResultsNet48.Package_<IP_ADDRESS>_AnyCPU_Debug.appxbundle
2021-11-11T02:05:23.3707501Z [command]D:\a_tasks\codesigning_0e0f3bf7-d96c-45d6-aa76-f9afb71fb77e\2.2.0\signtool.exe sign /fd SHA256 /t http://timestamp.digicert.com /f D:\a_temp\EasyPlexResultsNet48.Package_TemporaryKey.crt /p ausdx D:\a\r1\a_GENYX\drop\EasyPlexResultsNet48.Package_<IP_ADDRESS>_Debug_Test\EasyPlexResultsNet48.Package_<IP_ADDRESS>_AnyCPU_Debug.appxbundle
2021-11-11T02:05:23.6972993Z SignTool Error: An error occurred while attempting to load the signing
2021-11-11T02:05:23.6973851Z
2021-11-11T02:05:23.6974649Z 	certificate from: D:\a_temp\EasyPlexResultsNet48.Package_TemporaryKey.crt

I ran it again and I got this error looks like this is the fix.
2021-11-11T02:38:37.7385069Z ========================== Starting Command Output ===========================
2021-11-11T02:38:37.7671844Z ##[command]"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'D:\a_temp\3be544d0-9b0c-4677-a63b-124c37eda9b4.ps1'"
2021-11-11T02:38:38.4077005Z ##[error]Import-Certificate : Importing PFX files is not supported. Use Import-PfxCertificate to import PFX files.
At D:\a_temp\3be544d0-9b0c-4677-a63b-124c37eda9b4.ps1:3 char:1

Import-Certificate -Filepath D:\a_temp\EasyPlexResultsNet48.Package_ ...

  + CategoryInfo          : NotSpecified: (:) [Import-Certificate], ArgumentException

  + FullyQualifiedErrorId : System.ArgumentException,Microsoft.CertificateServices.Commands.ImportCertificateCommand

I exported the pfx certificate as AES256-SHA256 so my certificate file is now
EasyPlexResultsNet48.Package_TemporaryKeySHA.crt
But I still get the same error as before. It would be nice to get more descriptive errors? Is there any way I can debug this mate?
SignTool Error: An error occurred while attempting to load the signing
Z SignTool Error: An error occurred while attempting to load the signing
2021-11-11T23:19:46.2126674Z
2021-11-11T23:19:46.2127129Z 	certificate from: D:\a_temp\EasyPlexResultsNet48.Package_TemporaryKeySHA.crt

I created a selfsigned certifcate in Azure powershell and I got another error, must have generated the wrong type of certificate
Signing file: D:\a\r1\a_GENYX\drop\EasyPlexResultsNet48.Package_<IP_ADDRESS>_Debug_Test\EasyPlexResultsNet48.Package_<IP_ADDRESS>_AnyCPU_Debug.appxbundle
2021-11-12T00:02:43.0910381Z [command]D:\a_tasks\codesigning_0e0f3bf7-d96c-45d6-aa76-f9afb71fb77e\2.2.0\signtool.exe sign /fd SHA256 /t http://timestamp.digicert.com /f D:\a_temp\selfsigncert.crt /p ausdx D:\a\r1\a_GENYX\drop\EasyPlexResultsNet48.Package_<IP_ADDRESS>_Debug_Test\EasyPlexResultsNet48.Package_<IP_ADDRESS>_AnyCPU_Debug.appxbundle
2021-11-12T00:02:43.7339114Z SignTool Error: No certificates were found that met all the given criteria.

Any help would be really great.

Hi @acrigney,
I am very sorry for the delay.
Are you running the Build Agent on a Hosted Agent or is it a Self Hosted Agent? In both cases it might be a problem with locating the right path for the signtool. Can you add further details on the configured settings?


Add aws-s3 apps back to release train.

FYI: the AWS S3 App Starter is ready to be reinstated. It has been just upgraded to latest GAs: https://github.com/spring-cloud-stream-app-starters/aws-s3/commit/7665f33643ac334397e8f18ccfa98ae2b6c7a1a4


Allow resource group module to pass successfully if RG already exists.

Basic logic:

If RG does not exist, create it
If RG does exist, don't fail

Interfaces do not change

fixed in https://github.com/cloud-native-toolkit/terraform-ibm-resource-group/pull/36


Alaska UP Onboarding - Validate Prod Data

Acceptance Criteria

[ ] Sent production data
[ ] Confirmed with STLT that data passes validation

To Do

[ ] RS engineer: update this ticket with comments with every interaction with receiver
[ ] RS team member who originates this ticket: add any dependencies, as needed
[ ] RS team member who originates this ticket: complete the following when creating this Issue.

[ ] Pipelines: Onboarding & Operations (New)
[ ] Labels: "Onboarding-ops" and "Receiver" and state label
[ ] Epics: [select the epic for this API onboarding sender]

Blocked by Sender Transform work by Platform and the LOINC/SNOMED mapping from SimpleReport

Not needed based on convo with AK


Agree the no-JS behaviour of the cookie banner and cookies page

What
Agree how the cookie banner will work with Javascript disabled.
Agree how the cookies page will work with Javascript disabled.
Need to think about:

Services that set cookies using Javascript and nothing else
Services that set cookies server-side only
Services that set some cookies server-side and some using Javascript
Services that only set essential cookies when Javascript is disabled

Why
The cookie banner component is likely to be quite basic compared to our other components where we would normally handle this kind of behaviour for users. However, we still need to think about how the banner and cookies page should behave, whether there is anything we need to implement to help service teams (e.g: something they can hook into), and write some guidance.
Who needs to know about this
Developers
Designers
Technical Writer
Content Designer
Done when

[ ] Considered the scenarios above and documented how we think the banner would work in each case
[ ] Considered the scenarios above and documented how we think the cookies page would work in each case
[ ] Created new cards for any new work we need to do as a result, e.g: tweaks to the component, extra guidance

https://docs.google.com/document/d/1A74edb0jKKLND3BI4covxn35AMTDbbuJxjsEy6Y-jK0/edit#heading=h.fkstm3tmbdfk

https://docs.google.com/document/d/1A74edb0jKKLND3BI4covxn35AMTDbbuJxjsEy6Y-jK0/edit#heading=h.fkstm3tmbdfk

Guidance now added to https://docs.google.com/document/d/1QAA_9GVd5Uxbx9kOXPpYLf6U6yVGb5fnCbLNA60fSII/edit

Guidance now added to https://docs.google.com/document/d/1QAA_9GVd5Uxbx9kOXPpYLf6U6yVGb5fnCbLNA60fSII/edit


Feature/wavm integration

Referenced issues

Description of the Change

Benefits

Possible Drawbacks

Usage Examples or Tests

Alternate Designs

Please be aware that repos that require git submodules can not be used with hunter, so you will have to package WAVM with hunter before we will be able to test the new backend with our testsuite.


TS server KEEPS crashing

Type: Bug
TS server KEEPS crashing
VS Code version: Code 1.88.1 (Universal) (e170252f762678dec6ca2cc69aba1570769a5d39, 2024-04-10T17:42:52.765Z)
OS version: Darwin arm64 23.3.0
Modes:

System Info

Item
Value

CPUs
Apple M3 Pro (11 x 24)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: enabledwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
14, 10, 6

Memory (System)
18.00GB (1.98GB free)

Process Argv
--crash-reporter-id f61ea776-5cc8-4775-8d0e-fa9093f60e08

Screen Reader
no

VM
0%

Extensions (2)

Extension
Author (truncated)
Version

copilot
Git
1.180.0

copilot-chat
Git
0.14.1

A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscorecescf:30445987
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:30899288
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
h48ei257:31000450
pythontbext0:30879054
accentitlementsc:30995553
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
d34g3935:30971562
fegfb526:30981948
bg6jg535:30979843
ccp2r3:30993541
dsvsc020:30976470
pythonait:31006305
jchc7451:30973076
gee8j676:31009558
showvideoc:31016891
dsvsc021:30996838
gd77d436:30999572
f3je6385:31013174

Please try collecting the TS Server log from the crashed instance:

Set "typescript.tsserver.log": "verbose"

Restart VS Code and reproduce the problem

Open the TypeScript section of the output panel

At the very top, find the first line that prints to path to the semantic error log file. It should look something like:
[Info  - 19:54:59.247] <semantic> Log file: /Users/matb/Library/Application Support/Code - Insiders/logs/20200213T104930/exthost55/vscode.typescript-language-features/tsserver-log-ZT2zau/tsserver.log

That file contains the typescript logs.

Look through that log file for the first error or stack trace you see. If you can share the log, I can also take a look to see if anything stands out

⚠Warning: The TypeScript log may include information from your workspace, including file paths and source code. If you have any concerns about posting this publicly on Github, just let me know and we can arrange something else. On our side, we only use these logs to investigate issues like this

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


Option to require or not the User/Groups

I'm working with PBIS and use Active Directory groups for the sudoer files so the group does not exist in Puppet. This option makes it that if set to false (default is true), it won't set a require parameter.
Are you planning to push this to the Puppet forge? Your built module there is pretty old.

Hey thanks for this! Reviewing now...

Looks good to me - I was trying to slap a test around it and fighting with the latest version of rspec-puppet, but I'll just do that on master.

Are you planning to push this to the Puppet forge? Your built module there is pretty old.

Sure! Once I get the build sorted I'll tag a release and push there.
Thanks again! :cake:

https://forge.puppetlabs.com/phinze/sudoers <-- 0.1.1 released :+1:

Great!


Flatten parsed docs if an array

When using findAllExportedComponentDefinitions resolver, the parsed react docs are an array holding the nested __docgenInfo object . @storybook/addon-info cannot read the __docgenInfo because it expects an object. This PR flattens the array into a format that is consistent with the default resolver and can be read by addon-info.

This fixes the issue where descriptions and proptypes are missing from the generated docs for both findAllComponentDefinitions and findAllExportedComponentDefinitions resolver because the docgen info is available to addon-info where propsFromDocgen is used instead of propsFromPropTypes.

I almost wonder if this should be fixed in addon-info instead of in this babel plugin.
@CLL80 thanks for this PR and bringing up the issue, let me think about this. There's a feature freeze going on in Storybook at the moment.

I'm gonna decline this request for now. I think I have a solution for this problem.

any comment or update on the solution you think you have for this?


HTTPError: HTTP Error 403: Forbidden

Hey there,
I know this question has been asked before, but I'm confused about how to implement the solution. I would like to download a video:
pytube.YouTube("https://www.youtube.com/watch?v=KJAnSyB6mME&t=848s").streams.first().download()

but I get this error: HTTPError: HTTP Error 403: Forbidden
How do I work around this? Do I have to checkout the code and make changes to the codebase? Or is there another solution? How/why is this error happening? Thanks!

I would recommend you check out this fork
https://github.com/nficano/pytube/pull/453#pullrequestreview-291470632
This fork helped solved these problems for me.