Syntax should be updated to new webpack loaders syntax?

Syntax here should be updated too?
https://github.com/webpack/webpack.js.org/blob/develop/content/how-to/upgrade-from-webpack-1.md#moduleloaders-is-now-modulerules

Definitely. It should also follow the pattern of use: [], so we should be able to convert:
const extractCSS = new ExtractTextPlugin(/*...*/);

module.exports = () => {
  return {
    postcss: {plugins: [autoprefixer(autoprefixerOpts)], sourceMap: true},
    loaders: [
      {test: /\.scss/i, loader: extractCSS.extract(['css?sourceMap', 'postcss', 'sass?sourceMap'])}
    ]
  };
};

to the new use + options syntax:
const extractCSS = new ExtractTextPlugin(/*...*/);
const postcssOpts = postcss: {plugins: [autoprefixer(autoprefixerOpts)], sourceMap: true};

module.exports = () => {
  return {
    rules: [
      {test: /\.scss/i, use: [
        extractCSS.extract([  // This is basically "use"
          {loader: 'css', options: {sourceMap: true}}
          {loader: 'postcss', options: postcssOpts}
          {loader: 'sass', options: {sourceMap: true}
        ])
      ]}
    ]
  };
};

This seems like the right approach unless the new "rules" syntax allows extract-text-webpack-plugin to somehow work as the first item in the "use" array. I haven't looked at the source yet to see how this might work, but it seems unlikely.

Doesn't seem like it works yet, but hopefully they will update it soon to match with the new webpack2 beta25

Yes, I agree. This could be very frustrating for users when migrating to webpack 2.

Hello,
I'm currently trying to figure out how i can configure this plugin with post-css like I did with Webpack 1.x. Is this supposed to work already in some form?
Here's what I have configured for now and that isn't working (which I guess is due to this very issue :p):
// Support for PostCSS
			{
				test: /\.scss$/,
				use: ExtractTextWebpackPlugin.extract({
					fallbackLoader: "style-loader",
					loader: [
						{
							loader: "css-loader",
							query: {
								modules: true, // to check if needed
								sourceMap: true,
							},
						},
						{
							loader: "postcss-loader",
							options: {
								sourceMap: true,
								plugins: () => commonData.postcss,
							},
						},
					],
				}),
			},

Where commonData.postcss is:
postcss: [
		// reference: https://github.com/postcss/postcss-import
		// https://github.com/postcss/postcss-import/issues/244
		require("postcss-import")(),

		// plugin to rebase, inline or copy on url().
		// https://github.com/postcss/postcss-url
		require("postcss-url")(),

		require('postcss-nesting')(),
		require('postcss-simple-extend')(),
		require("postcss-cssnext")({
			browsers: [ "last 3 versions" ]
		})
	],

The above gives me the following errors:
ERROR in ./src/app/css/vendor.scss
Module parse failed: C:\LocalData\DEV\Workspace\AAH-Stark\node_modules\extract-text-webpack-plugin\loader.js?{"omit":1,"remove":true}!style-loader!css-loader?{"modules":true,"sourceMap":true}!postcss-loader!C:\LocalData\DEV\Workspace\AAH-Stark\node_modules\extract-text-webpack-plugin\loader.js?{"omit":1,"remove":true}!style-loader!css-loader?{"modules":true,"sourceMap":true}!postcss-loader!C:\LocalData\DEV\Workspace\AAH-Stark\src\app\css\vendor.scss Unexpected character '@' (8:0)
You may need an appropriate loader to handle this file type.
|
| @import "../../../node_modules/angular-material-steppers/dest/angular-material-steppers.css";
|

Can I change this somehow for now and get it working?

@dsebastien  This is my config I got set up few days ago, it's working
{
  test: /\.(scss)$/i,
  // using "loader" instead of newer "use"
  loader: ExtractTextPlugin.extract({
    loader: [
      {
        loader: 'css-loader',
        // current extract-text-plugin supports query not never options format
        query: {
          importLoaders: 3,
          minimize: true,
          // Even if disabled sourceMaps gets generated
          sourceMap: false
        }
      },
      {loader: 'postcss-loader'},
      {loader: 'resolve-url-loader'},
      {
        loader: 'sass-loader',
        query: {
          // Enable sourcemaps for resolve-url-loader to work properly
          sourceMap: true
        }
      }
    ]
  })
}

plugins: [
  /**
   * LoaderOptionsPlugin is used for aid migrationfor older loaders
   * @reference https://github.com/webpack/webpack.js.org/blob/develop/content/how-to/upgrade-from-webpack-1.md#loaderoptionplugin-context
   */
  new webpack.LoaderOptionsPlugin({
    minimize: true,
    debug: false,
    options: {
      /**
       * resolve-url-loader fix
       * @reference https://github.com/bholloway/resolve-url-loader/issues/33#issuecomment-249830601
       */
      context: path.join(__dirname, 'src'),
      output: {
        path: path.join(__dirname, 'dist')
      },
      /**
       * Legacy postCSS config
       * @reference https://github.com/azat-io/webpack2-css-modules-demo/blob/master/scripts/webpack.config.babel.js
       */
      postcss: [
        require('autoprefixer')({
          browsers: ['last 2 versions', 'IE > 10'],
          cascade: true,
          remove: true
        }),
        require('css-mqpacker')()
      ]
    }
  }),
  new ExtractTextPlugin({
    filename: '[name].css',
    allChunks: true
  }),
  new webpack.optimize.UglifyJsPlugin({
    compress: {
      screw_ie8: true,
      warnings: false
    },
    comments: false,
    sourceMap: false
  })
]

Thanks @renarsvilnis , seems to be working! On to the next issue now :D

I previously used
    loaders: [
      {
        test: /\.js$/,
        loader: 'babel-loader',
        include: PATHS.src
      },
      {
        test: /\.pcss$/,
        loaders: [
          'style-loader',
          'css-loader?importLoaders=1',
          'postcss-loader'
        ]
      },
      {
        test: /\.css$/,
        loaders: [
          'style-loader',
          'css-loader'
        ]
      }
    ]

What should I use now if I want to extract all my styles using HtmlWebpackPlugin?

this was frustrating to me, I was trying to be more up to date on the syntax and it failed! glad I found this.

I ran into this exact problem using webpack2 (v2.2.0-rc.1) when trying apply the StringReplacePlugin (https://github.com/jamesandersen/string-replace-webpack-plugin/issues/20). Is it intentional that for plugins like ExtractTextPlugin and StringReplacePlugin that they use the loader module rule syntax over the new use syntax? If so, it would really help to clarify why that is, otherwise it would be helpful if webpack2 went with one approach.

@QuantumInformation
I am using this for production.
loader: ExtractTextPlugin.extract({
          fallbackLoader: 'style-loader',
          loader: [
            'css?modules&importLoaders=1&localIdentName=[path][name]__[local]___[hash:base64:5]',
            'postcss-loader'
          ]
        })

@domeknn way too cryptic for me mate ;)

I came across this issue today when I tried to upgrade to webpack2. For me the following change (https://github.com/tmair/extract-text-webpack-plugin/commit/1414036c9fcacb441ce8d89eebb618a46a48de51) fixed the issue I was having, I am just not sure if it is the correct fix for the issues I am experiencing

@jhnns

Yes, unfortunately the extract-text-webpack-plugin hasn't caught up with the new loader configuration of webpack 2. We need to solve that before releasing webpack 2.

webpack 2 is in release candidate and this is still not fixed. Just a friendly reminder!

Using the fix provided by @tmair works perfect for me at the moment. been scratching my head all day with this when migrating

Using @tmair's change to return loader objects from ExtractTextPlugin.extract() instead of stringifying allows me to use use config with ExtractTextPlugin and combined with ident (thanks to @bebraw in the Slack channel) makes this sort of config work:

Don't quote me on the correctness of this exact rule config, I'm using nwb to generate config and manually reconstructed the below to share the approach.

See nwb output

rules: [{
  test: /\.styl$/,
  use: ExtractTextPlugin.extract({
    fallbackLoader: {loader: 'style-loader'},
    loaders: [
      {
        loader: 'css-loader',
        options: {
          importLoaders: 1
        }
      },
      {
        loader: 'postcss-loader',
        options: {
          ident: 'postcss',
          plugins: [autoprefixer()]
        }
      },
      {
        loader: 'stylus-loader',
        options: {
          ident: 'stylus',
          use: [nib()],
          import: ['~nib/lib/nib/index.styl']
        }
      }
    ]
  })
}]

Within loaders using ident, loaderUtils.parseQuery(this.query) is returning the configured options object.

			module: {
				loaders: [
					{
						test: /\.scss$/,
						loader: ExtractTextPlugin.extract(['style-loader', 'css-loader?sourceMap!resolve-url-loader!sass-loader?sourceMap'])
					},
					{
						test: /\.css$/,
						loader: ExtractTextPlugin.extract(['style-loader', 'css-loader?sourceMap!resolve-url-loader'])
					},
				],
}

leads to
 ERROR in ./~/bootstrap-sass/assets/stylesheets/_bootstrap.scss
    Module parse failed: /foobar/node_modules/bootstrap-sass/assets/stylesheets/_bootstrap.scss Unexpected character '@' (8:0)
    You may need an appropriate loader to handle this file type.
    |
    | // Core variables and mixins
    | @import "bootstrap/variables";
    | @import "bootstrap/mixins";
    |
     @ ./src/entries/basic.js 6:0-60

I can now get through with this:
based on webpack 2.2.0
            {
                test: /\.less$/,
                loader: ExtractTextWebpackPlugin.extract({
                    fallbackLoader: 'style-loader',
                    loader: [
                        {
                            loader: 'css-loader',
                            query: {
                                sourceMaps: true,
                                modules: true,
                                importLoaders: 1,
                                localIdentName: '[hash:base64:5]'
                            }
                        },
                        {
                            loader: 'postcss-loader',
                            query: {
                                config: postcssConfigPath
                            }
                        },
                        'less-loader'
                    ]
                }),
                include: srcPath
            }

Hm... could it be that there is an issue with the sass-loader?
module: {
	loaders: [
		{
			test: /\.scss$/,
			loader: ExtractTextPlugin.extract({
					fallbackLoader: 'style-loader',
					loader: [{
						loader: 'css-loader',
						query: {
							sourceMaps: true
						}
					}, {
						loader: 'resolve-url-loader'
					}, {
						loader: 'sass-loader',
						query: {
							sourceMaps: true
						}
					}]
				})
		}, {
			test: /\.css/,
			loader: ExtractTextPlugin.extract({
					fallbackLoader: 'style-loader',
					loader: [{
						loader: 'css-loader',
						query: {
							sourceMaps: true
						}
					}, {
						loader: 'resolve-url-loader'
					}]
				})
		}
	],

  "dependencies": {
    "css-loader": "^0.26.1",
    "extract-text-webpack-plugin": "2.0.0-beta.5",
    "node-sass": "^3.4.2",
    "resolve-url-loader": "^1.4.3",
    "sass-loader": "^4.1.1",
    "style-loader": "^0.13.0",
    "webpack": "^2.2.0"
  },

 ERROR in ./~/bootstrap-sass/assets/stylesheets/_bootstrap.scss
    Module parse failed: /narf/node_modules/bootstrap-sass/assets/stylesheets/_bootstrap.scss Unexpected character '@' (8:0)
    You may need an appropriate loader to handle this file type.
    |
    | // Core variables and mixins
    | @import "bootstrap/variables";
    | @import "bootstrap/mixins";
    |
     @ ./src/entries/basic.js 6:0-60

Hmm it seems like the loader/string query syntax works but the use/js syntax doesn't. @michael-ciniawsky do you know if someone is already working on it? I would like to help but the status of the upgrade to webpack2 is unclear :/

@khankuan Yes this PR #343 should fix the syntax changes, not 💯 sure if thats everything to it but looks promising so far 😛

Ah nice, i've just tested it with my project, works great!

Resolved with https://github.com/webpack-contrib/extract-text-webpack-plugin/releases/tag/v2.0.0-rc.0 & published to npm.

@d3viant0ne I can confirm this worked with webpack 2.2.0.  ( was not with wepack 2.1.0-beta.26)

I have been breaking my head to fix this issue and I can confirm this format worked
{
                test: /\.less$/,
                loader: stripExtract.extract(['css-loader', 'less-loader']),
            }, {
                test: /\.css$/,
                loader: stripExtract.extract(['css-loader']),
            },

Can some one add an example to the README on how to specify options to a loader in the list of loaders passed to the ExtractTextPlugin in webpack 2+? I'm still not clear on the syntax ("use" vs. "loader" and "options" vs. "query").

@thallada i've tried the following with success:
const loader = [
   'css-loader',
   'postcss-loader',
 ];
...
{
  test: /\.css/,
  include: [
    path.resolve('./src'),
  ],
  loader: production ? ExtractTextPlugin.extract({
    loader,
  }) : undefined,
  use: production ? undefined : ['style-loader', ...loader],
}

@thallada - Could you please open a new issue so this can get properly documented as there is an obvious gap. Your requests stands a really good chance of getting lost in the black hole that is old / closed issues.

Hello, I'm too fighting with webpack 2 the past couple of days. I'm new to webpack, so it's even more fun :).
I've made an webpack 2 starter pack which I want to use in the future (angular, bootstrap, sass etc.). It is working fine (after some learning by trial and error and then some more of the same) I made a push into my github repo. After that, just to make sure everything works I cloned (couple minutes later) the same repo, ran npm instal and webpack and got this error:
loader option has been deprecated - replace with "use"
E:\test\Webpack-starter\node_modules\extract-text-webpack-plugin\schema\vali
dator.js:11
                throw new Error(ajv.errorsText());
                ^

Error: data['fallbackloader'] should NOT have additional properties
    at validate (E:\test\Webpack-starter\node_modules\extract-text-webpack-p
lugin\schema\validator.js:11:9)
    at Function.ExtractTextPlugin.extract (E:\test\Webpack-starter\node_modu
les\extract-text-webpack-plugin\index.js:196:3)

I checked everything, I'm running the same node, npm and webpack version, and everything else is the same. So I now have two identical webpack projects, from which one isn't working.
But, there is more. After I cloned the repo and got the error I changed something in my webpack.config.js file and now I have two webpack projects, where the config isn't the same, but both are running without errors.
To create the same webpack.config.js file for both projects isn't possible.
The first webpack.config.js file (I created locally)
module: {
        loaders: [{
                test: /\.scss$/,
                loader: ExtractTextPlugin.extract({
                    loader: "css-loader?minimize!postcss-loader!sass-loader",
                    fallbackloader: "style-loader"
                })
            },...

The second `webpack.config.js`` file (I cloned from github)
module: {
        loaders: [{
                test: /\.scss$/,
                loader: ExtractTextPlugin.extract({
                    use: "css-loader?minimize!postcss-loader!sass-loader",
                    fallback: "style-loader"
                })
            },...

If I try and rewrite the first webpack.config.js so it matches the second one I get this error:
E:\webpack2\node_modules\extract-text-webpack-plugin\index.js:134
        if(!loader.query) return loader.loader;
                  ^

TypeError: Cannot read property 'query' of undefined
    at getLoaderWithQuery (E:\webpack2\node_modules\extract-text-webpack
-plugin\index.js:134:12)
    at Array.map (native)

I'm working with webpack the past 3 days, so I'm all the time at the newest version of webpack 2.2.1.
Hope this will help resolving this issue.

@K1pavic i think you might want to use the json syntax rather than the string syntax:
"css-loader?minimize!postcss-loader!sass-loader"

into:
[{
  loader: 'css-loader',
  options: {
    minimize: true,
  },
},
'postcss-loader',
'sass-loader'
]

I can't for the life of me work out why this config isn't working. I've read through all this thread (any many others!) but no joy. My config for ExtractTextPlugin is using the recommended syntax as far as I can see, but still not giving me any results. Any help would be much appreciated! :)
`const webpack = require('webpack');
const path = require('path');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
module.exports = {
entry: './dev/js/index.js',
output: {
path: path.resolve(__dirname, 'build'),
filename: 'bundle.js',
},
devtool: 'source-map',
module: {
rules: [
{
test: /.css$/,
use: ExtractTextPlugin.extract({
fallback: 'style-loader',
use: [
{
loader: 'css-loader',
options: {
import: false,
importLoaders: 1,
minimize: false,
sourceMap: true,
url: false
},
},
{
loader: 'postcss-loader',
options: {
sourceMap: true,
},
},
]
}),
},
],
},
plugins: [
new ExtractTextPlugin('styles.css'),
]
};`

I can't for the life of me work out why this config isn't working. I've read through all this thread (any many others!) but no joy. My config for ExtractTextPlugin is using the recommended syntax as far as I can see, but still not giving me any results. Any help would be much appreciated! :)
const webpack = require('webpack');
const path = require('path');
const ExtractTextPlugin = require('extract-text-webpack-plugin');

module.exports = {
  entry: './dev/js/index.js',
  output: {
    path: path.resolve(__dirname, 'build'),
    filename: 'bundle.js',
  },
  devtool: 'source-map',
  module: {
    rules: [
      {
        test: /\.css$/,
        use: ExtractTextPlugin.extract({
          fallback: 'style-loader',
          use: [
            {
              loader: 'css-loader',
              options: {
                import: false,
                importLoaders: 1,
                minimize: false,
                sourceMap: true,
                url: false,
              },
            },
            {
              loader: 'postcss-loader',
              options: {
                sourceMap: true,
              },
            },
          ],
        }),
      },
    ],
  },
  plugins: [
    new ExtractTextPlugin('styles.css'),
  ],
};

Hello, I don't have much time at the moment, tommorow will be better, but
what I saw at the first glance ist that you miss some stuff in the
ExtractTextPlugin format, like this:
plugins: [
new ExtractTextPlugin({ filename: "bundle.css" }),
]For more examples you can use my working tempalte at
https://github.com/K1pavic/Webpack-starter
Hope it helps.
Kristian
2017-06-25 17:57 GMT+02:00 Conor Doyle<EMAIL_ADDRESS>
I can't for the life of me work out why this config isn't working. I've
read through all this thread (any many others!) but no joy. My config for
ExtractTextPlugin is using the recommended syntax as far as I can see, but
still not giving me any results. Any help would be much appreciated! :)
const webpack = require('webpack');
const path = require('path');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
module.exports = {
entry: './dev/js/index.js',
output: {
path: path.resolve(__dirname, 'build'),
filename: 'bundle.js',
},
devtool: 'source-map',
module: {
rules: [
{
test: /.css$/,
use: ExtractTextPlugin.extract({
fallback: 'style-loader',
use: [
{
loader: 'css-loader',
options: {
import: false,
importLoaders: 1,
minimize: false,
sourceMap: true,
url: false,
},
},
{
loader: 'postcss-loader',
options: {
sourceMap: true,
},
},
],
}),
},
],
},
plugins: [
new ExtractTextPlugin('styles.css'),
],
};
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/webpack-contrib/extract-text-webpack-plugin/issues/265#issuecomment-310911010,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKwP26qhRGwPapo9zEIpM62AjoDMQr1aks5sHoNSgaJpZM4KQkJc
.

--
Kristian Pavić*, *MSc in Computer Science
Faculty of Electrical Engineering Osijek
Phone:+4915255793267
E-mail<EMAIL_ADDRESS><EMAIL_ADDRESS>

@K1pavic Greatly appreciate your help on a Sunday Kristian, but ExtractTextPlugin now takes either an object or the name of the result file. So...
  plugins: [
    new ExtractTextPlugin({
      filename: 'styles.css'
    })
  ]

is equivalent to...
  plugins: [
    new ExtractTextPlugin('styles.css')
  ]

...so that's not the problem. Guess I'll keep hacking about and hopefully figure it out eventually - story of my life! :)

Glad to help :)
Like I said, you can try and use the project I put on Github, there
everything should work just fine. You can remove the angular and bootstrap
stuff if you don't need it.
If you don't make any progress to monday afternoon I can take a better look.
Good luck
Kristian
2017-06-25 18:55 GMT+02:00 Conor Doyle<EMAIL_ADDRESS>
@K1pavic https://github.com/k1pavic Greatly appreciate your help on a
Sunday Kristian, but ExtractTextPlugin now takes either an object or the
name of the result file. So...
plugins: [
new ExtractTextPlugin({
filename: 'styles.css'
})
]
is equivalent to...
plugins: [
new ExtractTextPlugin('styles.css')
]
...so that's not the problem. Guess I'll keep hacking about and hopefully
figure it out eventually - story of my life! :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/webpack-contrib/extract-text-webpack-plugin/issues/265#issuecomment-310914144,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKwP24V-3F_Ky4Ht7YKhYDK1LwaLmfSQks5sHpDxgaJpZM4KQkJc
.

--
Kristian Pavić*, *MSc in Computer Science
Faculty of Electrical Engineering Osijek
Phone:+4915255793267
E-mail<EMAIL_ADDRESS><EMAIL_ADDRESS>


RefreshTokenHandler: Disposal of first unauthorized response

RefreshTokenHandler can receive 401 on first attempt to make a call. This results in token refresh and subsequent retry. The 401 response  needs to be disposed though to prevent socket blocking and potential timeouts.

thanks!


HMAI-111 Make unilink endpoints suitable for HMPPS INTEGRATION API

Updated the allowed roles
Updated the tags
Updated the documentation
Attempted to write a test

This is not urgent and can wait until January. I'm not working until the new year now.


docker镜像服务启动失败

环境：win11
镜像版本 ：latest
问题表现：

直接启动container接口无法使用
进入容器后按照文档重启服务
输出nohup.out

[WARNING 2024-07-17 10:26:48,084 _assert_and_prepare_model_files:177] no onnx file is found in /root/.cnocr/2.3/densenet_lite_136-gru
[INFO 2024-07-17 10:26:48,084 download:175] Downloading /root/.cnocr/2.3/densenet_lite_136-gru-onnx.zip from https://sg-models.oss-cn-beijing.aliyuncs.com/cnocr/2.3/densenet_lite_136-gru-onnx.zip...
[DEBUG 2024-07-17 10:26:48,086 _new_conn:1055] Starting new HTTPS connection (1): sg-models.oss-cn-beijing.aliyuncs.com:443
[DEBUG 2024-07-17 10:26:48,372 _make_request:549] https://sg-models.oss-cn-beijing.aliyuncs.com:443 "GET /cnocr/2.3/densenet_lite_136-gru-onnx.zip HTTP/1.1" 404 394
[ERROR 2024-07-17 10:26:48,373 get_model_file:251] Failed downloading url https://sg-models.oss-cn-beijing.aliyuncs.com/cnocr/2.3/densenet_lite_136-gru-onnx.zip
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/cnstd/utils/utils.py", line 249, in get_model_file
    download(url, path=zip_file_path, download_source=download_source, overwrite=True)
  File "/usr/local/lib/python3.9/site-packages/cnstd/utils/utils.py", line 178, in download
    raise RuntimeError("Failed downloading url %s" % oss_url)
RuntimeError: Failed downloading url https://sg-models.oss-cn-beijing.aliyuncs.com/cnocr/2.3/densenet_lite_136-gru-onnx.zip

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/uvicorn", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/uvicorn/main.py", line 418, in main
    run(
  File "/usr/local/lib/python3.9/site-packages/uvicorn/main.py", line 587, in run
    server.run()
  File "/usr/local/lib/python3.9/site-packages/uvicorn/server.py", line 62, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "/usr/local/lib/python3.9/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
  File "/usr/local/lib/python3.9/site-packages/uvicorn/server.py", line 69, in serve
    config.load()
  File "/usr/local/lib/python3.9/site-packages/uvicorn/config.py", line 458, in load
    self.loaded_app = import_from_string(self.app)
  File "/usr/local/lib/python3.9/site-packages/uvicorn/importer.py", line 21, in import_from_string
    module = importlib.import_module(module_str)
  File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/usr/local/lib/python3.9/site-packages/cnocr/serve.py", line 33, in <module>
    OCR_MODEL = CnOcr()
  File "/usr/local/lib/python3.9/site-packages/cnocr/cn_ocr.py", line 155, in __init__
    self.rec_model = rec_cls(
  File "/usr/local/lib/python3.9/site-packages/cnocr/recognizer.py", line 119, in __init__
    self._assert_and_prepare_model_files(model_fp, root)
  File "/usr/local/lib/python3.9/site-packages/cnocr/recognizer.py", line 184, in _assert_and_prepare_model_files
    get_model_file(
  File "/usr/local/lib/python3.9/site-packages/cnstd/utils/utils.py", line 256, in get_model_file
    raise ModelDownloadingError(message)
cnstd.utils.utils.ModelDownloadingError: Failed to download model: densenet_lite_136-gru-onnx.zip.
        Please open your VPN and try again.
        If this error persists, please follow the instruction at [CnSTD/CnOCR Doc](https://www.breezedeus.com/cnocr) to manually download the model files.
[WARNING 2024-07-17 10:27:17,529 _assert_and_prepare_model_files:177] no onnx file is found in /root/.cnocr/2.3/densenet_lite_136-gru
[INFO 2024-07-17 10:27:17,529 download:175] Downloading /root/.cnocr/2.3/densenet_lite_136-gru-onnx.zip from https://sg-models.oss-cn-beijing.aliyuncs.com/cnocr/2.3/densenet_lite_136-gru-onnx.zip...
[DEBUG 2024-07-17 10:27:17,530 _new_conn:1055] Starting new HTTPS connection (1): sg-models.oss-cn-beijing.aliyuncs.com:443
[DEBUG 2024-07-17 10:27:17,844 _make_request:549] https://sg-models.oss-cn-beijing.aliyuncs.com:443 "GET /cnocr/2.3/densenet_lite_136-gru-onnx.zip HTTP/1.1" 404 394
[ERROR 2024-07-17 10:27:17,844 get_model_file:251] Failed downloading url https://sg-models.oss-cn-beijing.aliyuncs.com/cnocr/2.3/densenet_lite_136-gru-onnx.zip
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/cnstd/utils/utils.py", line 249, in get_model_file
    download(url, path=zip_file_path, download_source=download_source, overwrite=True)
  File "/usr/local/lib/python3.9/site-packages/cnstd/utils/utils.py", line 178, in download
    raise RuntimeError("Failed downloading url %s" % oss_url)
RuntimeError: Failed downloading url https://sg-models.oss-cn-beijing.aliyuncs.com/cnocr/2.3/densenet_lite_136-gru-onnx.zip

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/uvicorn", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/uvicorn/main.py", line 418, in main
    run(
  File "/usr/local/lib/python3.9/site-packages/uvicorn/main.py", line 587, in run
    server.run()
  File "/usr/local/lib/python3.9/site-packages/uvicorn/server.py", line 62, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "/usr/local/lib/python3.9/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
  File "/usr/local/lib/python3.9/site-packages/uvicorn/server.py", line 69, in serve
    config.load()
  File "/usr/local/lib/python3.9/site-packages/uvicorn/config.py", line 458, in load
    self.loaded_app = import_from_string(self.app)
  File "/usr/local/lib/python3.9/site-packages/uvicorn/importer.py", line 21, in import_from_string
    module = importlib.import_module(module_str)
  File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/usr/local/lib/python3.9/site-packages/cnocr/serve.py", line 33, in <module>
    OCR_MODEL = CnOcr()
  File "/usr/local/lib/python3.9/site-packages/cnocr/cn_ocr.py", line 155, in __init__
    self.rec_model = rec_cls(
  File "/usr/local/lib/python3.9/site-packages/cnocr/recognizer.py", line 119, in __init__
    self._assert_and_prepare_model_files(model_fp, root)
  File "/usr/local/lib/python3.9/site-packages/cnocr/recognizer.py", line 184, in _assert_and_prepare_model_files
    get_model_file(
  File "/usr/local/lib/python3.9/site-packages/cnstd/utils/utils.py", line 256, in get_model_file
    raise ModelDownloadingError(message)
cnstd.utils.utils.ModelDownloadingError: Failed to download model: densenet_lite_136-gru-onnx.zip.
        Please open your VPN and try again.
        If this error persists, please follow the instruction at [CnSTD/CnOCR Doc](https://www.breezedeus.com/cnocr) to manually download the model files.

我看了一下需要是需要开启VPN么

容器里更新下 cnocr 的版本。这个容器近期没更新


Update of the NPM package needed (Belgian BIC's are updated)

Hello,
Is it possible to publish a new version of the npm package with an update dataset ?

Of course, feel free to create a PR with the updated datasets! Don't really have time to work on this myself. Possibly the parsers/scrapers also need to be updated.

Thx !
https://github.com/sigalor/iban-to-bic/pull/6
I updated the DE scraper, i did a check on the resulting JSON, they seem good :-)


start tk wss connect report error

java.net.http.HttpTimeoutException: request timed out

Fixed with version 1.6.2


Unable to receive certain WindowEvent types in wry main() event_loop

Bug Description
Wry application doesn't receive WindowEvent::KeyboardInput keyboard events on Windows 10 from text input field of form.
*Steps To Reproduce:
Attached is a slightly modified version of the 'form.rs' example (zipped), which has additional match arms in its event_loop.run() handler.
Expected behavior
I expected to receive KeyboardInput events for each character entered to text field.
Screenshots
n/a
Platform and Versions (please complete the following information):
form.zip
OS: Windows 10 Pro 10.0.19045 build 19045
Rustc: rustc 1.68.0 (2c8cc3432 2023-03-06)
Would you want to assign yourself to resolve this bug?

[ ] Yes
[x ] No  - not at this time, as I'm a rust newbie.

As far as I know, That's by design in WebView2. The webview2 control is separate from the win32 window and has a different focus state from the parent window and in most cases, it intercepts all events before it can reach the parent window. This issue is probably related https://github.com/MicrosoftEdge/WebView2Feedback/issues/468#issuecomment-1016993455
I am not sure what is your use-case exactly but I'd suggest looking into forwarding the needed info from JS to your rust using window.ipc.postMessage

I looks like an experimental feature CoreWebView2ControllerOptions.AllowHostInputProcessing was added. Would that help with this? https://github.com/MicrosoftEdge/WebView2Feedback/issues/468#issuecomment-2289907937


long package is marked as bundled but not actually bundled

Can you remove bundledDependencies: ["long"] from package.json?
It causes yarn to fail to install this package.
Thanks!

I published 2.1.3 which should work for you.

Yes, this fixes it. Thank you!


is it a problem that a project's reputation cost is pegged to the amount of reputation at the time of its creation?

a project's token cost is pegged to the constantly fluctuating number of tokens necessary to reach the wei cost of the project.

nah.


Logs by stack

We would like the ability to see the logs based the stack we are running from the amp logs command line.

amp-agent has been updated to add stack-id and stack-name in log using labels added in #237 and #236 allows to extract them.


Fresh brew install returns incorrect value for --prefix openssl

Bug report
It seems a fresh installation of brew reports a value for brew --prefix openssl despite the keg not being installed.

[x] ran brew update and can still reproduce the problem?
[x] ran brew doctor, fixed all issues and can still reproduce the problem?
[x] ran brew config and brew doctor and included their output with your issue?

What you were trying to do (and why)
I was trying to cargo install cargo-generate, which uses brew to find the "system" openssl installation. The install failed saying it could not find openssl.
What happened (include command output)
I doubled checked and ran:
% brew --prefix openssl
<EMAIL_ADDRESS>
What you expected to happen
I expected no path to be reported. And when I tried to list the directory it did not exist:
% ls -lah $(brew --prefix openssl)
ls<EMAIL_ADDRESS>No such file or directory
% ls<EMAIL_ADDRESS>ls<EMAIL_ADDRESS>No such file or directory
% ls /opt/homebrew/Cellar/
%

After installing openssl via brew install openssl, a different prefix is reported:
brew --prefix openssl
<EMAIL_ADDRESS>
*note the missing /1.1.1i suffix.
Anyway, the installation of cargo-generate succeeds after brew install openssl. But I suspect there is something up here. Should brew be reporting a prefix for a cask that does not exist on the system? It looks like it does that for other formula that have not been installed when I check just now, so perhaps that is intended behavior. But why would the prefix change once the formula has been installed?
Step-by-step reproduction instructions (by running brew commands)
I believe simply installing homebrew using the install script and then running the command above yields the incorrect path.
Output of brew config and brew doctor commands

% brew doctor
Your system is ready to brew.
% brew config
HOMEBREW_VERSION: 2.7.2
ORIGIN: https://github.com/Homebrew/brew
HEAD: dad7dc6a1498b80770d98f2d7cd6fb927c300bbb
Last commit: 2 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: ff9062c21bd1491b03541c62bb04a767f9957de2
Core tap last commit: 12 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 12.0 build 1200
Git: 2.24.3 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 11.1-arm64
CLT: <IP_ADDRESS>.1.1607026830
Xcode: 12.3
Rosetta 2: false

I expected no path to be reported.

As the man page states:

--prefix [formula]
[...]
If formula is provided, display the location in the Cellar where formula is or would be installed.

so what you expect would actually be considered a bug in Homebrew, unless the formula doesn't exist:
$ brew --prefix dummy
Error: No available formula with the name "dummy".

why would the prefix change once the formula has been installed?

A maintainer would have to definitively comment on the why, but the versionless opt prefix is commonly used for builds both inside and outside Homebrew, to avoid linking against version-locked paths that would instantly break on an upgrade.

I expected no path to be reported.

As the man page states:

--prefix [formula]
[...]
If formula is provided, display the location in the Cellar where formula is or would be installed.

so what you expect would actually be considered a bug in Homebrew, unless the formula doesn't exist:
$ brew --prefix dummy
Error: No available formula with the name "dummy".

why would the prefix change once the formula has been installed?

A maintainer would have to definitively comment on the why, but the versionless opt prefix is commonly used for builds both inside and outside Homebrew, to avoid linking against version-locked paths that would instantly break on an upgrade.

Hmm okay I will talk to the openssl-sys crate maintainers to make sure they understand this behavior and that it is reflected in the documentation if necessary. Alternatively, is there an option available that acts more like pkg-config and prints only the prefix of installed brew formula? The crate in question is essentially using brew --prefix as a replacement for pkg-config...

Hmm okay I will talk to the openssl-sys crate maintainers to make sure they understand this behavior and that it is reflected in the documentation if necessary. Alternatively, is there an option available that acts more like pkg-config and prints only the prefix of installed brew formula? The crate in question is essentially using brew --prefix as a replacement for pkg-config...

The simplest solution is to actually check the output of brew --prefix, since you'll need it in any case:

If it contains /opt/, the dependent is installed and can be used directly
If it _doesn't contain /opt/, the dependent is missing and needs to be installed
If it's empty (which should also result in brew --prefix returning a non-zero exit status), something's wrong that requires user intervention

The simplest solution is to actually check the output of brew --prefix, since you'll need it in any case:

If it contains /opt/, the dependent is installed and can be used directly
If it _doesn't contain /opt/, the dependent is missing and needs to be installed
If it's empty (which should also result in brew --prefix returning a non-zero exit status), something's wrong that requires user intervention

Scratch what I wrote previously. A better algorithm makes no assumption about the exact components of brew --prefix, and will therefore continue to work no matter how many times the Homebrew team decides to reorganize the directory hierarchy:

If brew --prefix returns an error, something went wrong (duh!)
If the output of brew --prefix doesn't exist, the formula hasn't been installed, and you can automatically install it if you want
If the output of brew --prefix exists, you're good to go.

Note that brew --prefix has a distinct advantage over pkg-config, despite your preference for the latter. If you get nothing back from pkg-config, you can't distinguish between "package not installed" and "package doesn't exist" (i.e. you typed it wrong). With brew --prefix, typo'd formula names are instantly revealed.

Scratch what I wrote previously. A better algorithm makes no assumption about the exact components of brew --prefix, and will therefore continue to work no matter how many times the Homebrew team decides to reorganize the directory hierarchy:

If brew --prefix returns an error, something went wrong (duh!)
If the output of brew --prefix doesn't exist, the formula hasn't been installed, and you can automatically install it if you want
If the output of brew --prefix exists, you're good to go.

Note that brew --prefix has a distinct advantage over pkg-config, despite your preference for the latter. If you get nothing back from pkg-config, you can't distinguish between "package not installed" and "package doesn't exist" (i.e. you typed it wrong). With brew --prefix, typo'd formula names are instantly revealed.

Alternatively, is there an option available that acts more like pkg-config and only prints the prefix of a formula if it is installed?

No option exists but I can see the use-case in adding it. Any suggestions on naming, anyone?

Alternatively, is there an option available that acts more like pkg-config and only prints the prefix of a formula if it is installed?

No option exists but I can see the use-case in adding it. Any suggestions on naming, anyone?

Honestly, --prefix is the most logical.
Also, brew --prefix output for non-installed formula is IIRC equivalent to the already-deleted brew diy. Is there a reason we can't simply make brew --prefix return an empty string if the formula isn't installed?

Honestly, --prefix is the most logical.
Also, brew --prefix output for non-installed formula is IIRC equivalent to the already-deleted brew diy. Is there a reason we can't simply make brew --prefix return an empty string if the formula isn't installed?

Sorry, to clarify, I'm proposing an additional flag to prefix so that brew --prefix --something would produce no output and/or a non-zero exit code if it isn't already installed. Maybe brew --prefix --installed?

Sorry, to clarify, I'm proposing an additional flag to prefix so that brew --prefix --something would produce no output and/or a non-zero exit code if it isn't already installed. Maybe brew --prefix --installed?

brew --prefix --installed is about as good as any, given the logic it's meant to modify (if set, print empty string for uninstalled formulae, instead of formula's Cellar prefix).
I think I've just enough Ruby under the belt to knock out a PR for this.

brew --prefix --installed is about as good as any, given the logic it's meant to modify (if set, print empty string for uninstalled formulae, instead of formula's Cellar prefix).
I think I've just enough Ruby under the belt to knock out a PR for this.

brew --prefix --pkg-config although at that point why not just brew --pkg-config? Alternatives brew --prefix --local, brew --prefix=include-path, or brew --prefix=local. Of course brew --prefix --installed works nicely too.
Few more ideas:
brew pkg-config include-path
brew pkg-config prefix
brew prefix --installed
brew prefix --local

(why is prefix a -- option rather than a sub-command anyway?)

brew --prefix --pkg-config although at that point why not just brew --pkg-config? Alternatives brew --prefix --local, brew --prefix=include-path, or brew --prefix=local. Of course brew --prefix --installed works nicely too.
Few more ideas:
brew pkg-config include-path
brew pkg-config prefix
brew prefix --installed
brew prefix --local

(why is prefix a -- option rather than a sub-command anyway?)

Oh, another thought, the list command is already limited to installed packages:
brew list --prefix

Oh, another thought, the list command is already limited to installed packages:
brew list --prefix

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

Sorry, accidentally nuked my notifications and missed the latest PR comments. Still in progress...

Sorry, accidentally nuked my notifications and missed the latest PR comments. Still in progress...


Fix Screenshot for Play Store (EXPOSUREAPP-7807)

just renamed Max to Andrea to make everybody happy

Known issues:

some strings are still only in German
translations should arrive on Monday

German language -> German time format? ("Test durchgeführt am...")


Feature/extrinsic submission service

Description of the Change
This is temporary PR, it will be corrected when transaction pool is merged into master.
Partially implemented extrinsics submission api.
For now only submit_extrinsic method is implemented, though with some questions.
Network layer and tests will be implemented soon.

Benefits
Now extrinsics submission can be used.

Possible Drawbacks
None

Usage Examples or Tests [optional]

Alternate Designs [optional]

Codecov Report

:exclamation: No coverage uploaded for pull request base (trunk/transaction-pool@852def6). Click here to learn what that means.
The diff coverage is 1.31%.

@@                    Coverage Diff                    @@
##             trunk/transaction-pool     #151   +/-   ##
=========================================================
  Coverage                          ?   72.25%
=========================================================
  Files                             ?      314
  Lines                             ?     7828
  Branches                          ?     4022
=========================================================
  Hits                              ?     5656
  Misses                            ?     1147
  Partials                          ?     1025

Impacted Files
Coverage Δ

...st/core/transaction_pool/transaction_pool_test.cpp
83.05% <ø> (ø)

...insics_submission_service/impl/service_builder.cpp
0% <0%> (ø)

...cs_submission_service/impl/json_transport_impl.hpp
0% <0%> (ø)

..._submission_service/extrinsic_submission_proxy.cpp
0% <0%> (ø)

core/extrinsics_submission_service/error.cpp
0% <0%> (ø)

core/extrinsics_submission_service/service.cpp
0% <0%> (ø)

...cs_submission_service/impl/json_transport_impl.cpp
0% <0%> (ø)

...cs_submission_service/extrinsic_submission_api.cpp
0% <0%> (ø)

core/extrinsics_submission_service/service.hpp
0% <0%> (ø)

...e/extrinsics_submission_service/json_transport.hpp
0% <0%> (ø)

... and 1 more

Continue to review full report at Codecov.

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


Enable different visualization color for staging if unstable

Is your feature request related to a problem? Please describe
Currently we enable a new -continue-on-error into our distribution build; in this way, the build jenkins job won't stop if it fails on some plugins, but gives unstable at the end of the job results.
However, looking into each stages inside the build jenkins job, all of the stages are green.
e.g.

It's hard for us to locate which stage actually fails unless we search through the entire console log which is extremely time-consuming.
Describe the solution you'd like
Jenkins should have the option to change the stage status to unstable so it will display different color as yellow in Blue Ocean as well.
https://www.jenkins.io/blog/2019/07/05/jenkins-pipeline-stage-result-visualization-improvements/
I'm suggesting if we are running distribution build job with continue-on-error, we should not only update the final job status to unstable but also the specific stage that has error. This will be more informative and easier for maintenance.
Describe alternatives you've considered
No response
Additional context
No response
Acceptance Criteria:

If a non-mandatory component failure happens at a stage level, that stage should be marked as unstable.
The overall job status should be unstable.

@gaiksaya I would like to work on this issue. The blog that explains the issue is fairly straightforward - however, I'm not sure which subdirectories/files need those changes. Some information on that topic would be appreciated

@gaiksaya I would like to work on this issue. The blog that explains the issue is fairly straightforward - however, I'm not sure which subdirectories/files need those changes. Some information on that topic would be appreciated

I think you could look into these two files. These are the distribution-build jenkinsfile for OpenSearch & OpenSearch Dashboards this issue addresses on.
https://github.com/opensearch-project/opensearch-build/blob/main/jenkins/opensearch/distribution-build.jenkinsfile
https://github.com/opensearch-project/opensearch-build/blob/main/jenkins/opensearch-dashboards/distribution-build.jenkinsfile

Thank you. I'll get started

See https://github.com/opensearch-project/opensearch-ci as the that is the source of the CI system (jenkins). If you do have access to the resources to deploy the CI system, you can use this docker image mentioned here https://github.com/opensearch-project/opensearch-ci/blob/main/resources/docker-compose.yml#L4 to see what all plugins and its versions are currently installed on the system.
Assigning this issue to you @ScreamingPigeon

Hi @ScreamingPigeon
Since there is no progress on this issue for a month, I'll be taking over. Have an alternate approach that I tried and it worked.
Thanks!

We can now see the each stage that has failed plugins marked as unstable https://build.ci.opensearch.org/blue/organizations/jenkins/distribution-build-opensearch/detail/distribution-build-opensearch/9028/pipeline/
See the above PRs links for more details on the execution.
Thanks!


Example from "Basics" with XYZSource not working

I have tried to reproduce the first example from the workshop without success, I'm getting a blank map only.
https://openlayers.org/workshop/en/basics/
The example is fairly simple so I'm not sure how much could be going wrong.
import 'ol/ol.css';
import {Map, View} from 'ol';
import TileLayer from 'ol/layer/Tile';
import XYZSource from 'ol/source/XYZ';
import {fromLonLat} from 'ol/proj';

new Map({
  target: 'map-container',
  layers: [
    new TileLayer({
      source: new XYZSource({
        url: 'http://tile.stamen.com/terrain/{z}/{x}/{y}.jpg'
      })
    })
  ],
  view: new View({
    center: fromLonLat([0, 0]),
    zoom: 2
  })
});

I've made sure the url is still valid, which it is, expect for a redirect to png instead of jpg
http://tile.stamen.com/terrain/0/0/0.png
I've also inspected the network requests and I don't see any tile requestes happening.

Apologies, this was down to a wrong version of OL


Provides step size via CLI interface and ServerConfig

🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸
🎉 New feature
Closes #
Summary
This is probably not the best time to be making this PR as we are in the middle of the release. However for another project, I'd like to be able to set the Step Size via CLI. This is particularly useful for when we are doing integration testing of that project. This PR provides two command line flags that allow you to set the physics update rate and step size via cli. To try it out run:
gz sim shapes.sdf --physics-rtf 5.0 --physics-step-size 0.01

Note: Setting parameters via CLI/server_config should overwrite the world configs.
TODO: Update tests.
Checklist

[ ] Signed all commits for DCO
[ ] Added tests
[ ] Added example and/or tutorial
[ ] Updated documentation (as needed)
[ ] Updated migration guide (as needed)
[ ] Consider updating Python bindings (if the library has them)
[ ] codecheck passed (See contributing)
[ ] All tests passed (See test coverage)
[ ] While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.
🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸

Closed because we already have the -z flag which can be used to set the update rate in Hz. This flag does not change the step size, but reduces the amount of delay between each step.


argument types inference breaks for specific object literal method syntax

TypeScript Version:  3.1.0-dev.20180823
Search Terms: object literal method argument
Code
function goofus <ARGS extends any[]> (f: (...args: ARGS) => any ) {}

goofus((a: string) => ({ dog() { return a; } }));
goofus((a: string) => ({ dog: function() { return a; } }));

Expected behavior:
infers ARGS === [string]
Actual behavior:
[ts] Argument of type '(a: string) => { dog(): string; }' is not assignable to parameter of type '() => any'.
Note that everything works correctly if you do any of the below:

infer a single argument: function gallant <ARG extends any> (f: (arg: ARG) => any ) {}
use arrow syntax in the object literal: goofus((a: string) => ({ dog: () => a }));
use method syntax to return the object literal: goofus(function (a: string) { return { dog() { return a; } } });

Playground Link: link
Related Issues: couldn't find any

This is an issue caused by #25937. I'll have a fix up shortly.

Thank you!


Fix License headers in all Java files

I just remove all these empties which were not even valid
/**
 *
 */


Is it possible to make a context menu entry that runs programs as TI with this?

I'm wondering how to make a context menu, Run as TI with this.

This can be accomplished with a Shell Extension Handler [1], and coincidentally, I had already started working on it some time ago. I took your question as an opportunity to finally complete it. Additional information on how to use it can be found in the README file.
[1] https://learn.microsoft.com/en-us/windows/win32/shell/handlers


Popup obscures input control

The popup menu is sometimes positioned in a way that obscures the input. In a type ahead scenario this disrupts the user input. The popup should be positioned either below or above the input control but should never obscure the input

Related to https://github.com/techniq/mui-downshift/issues/29.  Need to figure out the correct react-popper/popper.js option to set to hopefully remedy this.
It seems like the outOfBoundaries prop

or adding modifiers={{ preventOverflow: { enabled: false } }} to it might be the fix.

Care to experiment and see if this is correct?

This should now be fixed in 1.0.0-14 via https://github.com/techniq/mui-downshift/commit/ab2cf6256fb307236e5404b42689ad821872cf6b.  I've also added some additional storybook examples to verify.  Take a look and let me know.
I'm also tracking https://github.com/FezVrasta/popper.js/issues/550 as well as upgrading react-popper to 1.0.0 (PR's welcome if someone wants to tackle it) but it looks fixed for now.


Multiple Pins from one call

I would like to activate multiple pins at once using soft pwm...
maybe the ability to pass an array instead of a single value?
Would this be possible?

By "activate", do you mean through SoftPWMBegin() or SoftPWMSet()?
That is, do you want to initialize multiple pins at once, or set the values for multiple pins at once?

set values for multiple pins at once

Maybe I should elaborate...
I have 8 LED light modules.  I want to be able to activate say lights 2,4,6,8 all at the same time.
Problem is, sometimes I want to activate 1,2,3,4 at the same time.
So, before I decided I was going to use PWM, I was going to set them using PORTD to assign the on/off values to my pins.
Problem is, I really would like to be able to dim my lights.  So I need to be able to use PWM....

So wouldn't this work for what you want to do?
uint8_t ledSet1[4] = {2, 4, 6, 8};
uint8_t ledSet2[4] = {1, 2, 3, 4};

.
.
.

  int newValue = 55;
  int newValue2 = 99;

  for (int i = 0; i < 4; i++)
    SoftPWMSet(ledSet1[i], newValue);

  for (int i = 0; i < 4; i++)
    SoftPWMSet(ledSet2[i], newValue2);

Maybe a code example from you might help.

here is an example of a function I am using to strobe the light
int quad_flash(int x){
while (loop_count < 8) {
SoftPWMSetPercent(x, 100);   // turn the LED on (HIGH is the voltage level)
delay(35);               // wait for a second
SoftPWMSetPercent(x, 0);    // turn the LED off by making the voltage LOW
delay(65);               // wait for a second
loop_count ++;

}
delay (0);
loop_count = 0;
}
Ideally I would be able to pass several lights at once making them flash at the same time

How about this?
uint8_t ledSet1[4] = {2, 4, 6, 8};
uint8_t ledSet2[4] = {1, 2, 3, 4};

void quad_flash(const uint8_t ledSet[], int ledCount)
{
  for (int flashCount = 0; flashCount < 8; flashCount++)
  {
  	for (int led = 0; led < ledCount; led++)
  	{
      SoftPWMSetPercent(ledSet[led], 100);
  	}

  	delay(35);

  	for (int led = 0; led < ledCount; led++)
  	{
      SoftPWMSetPercent(ledSet[led], 0);
  	}

  	delay(65);
  }
}

.
.
.

  quad_flash(ledSet1, 4);
  quad_flash(ledSet2, 4);

Works Perfect!!!
Thanks!!

:v:

Looking at it now, the lights might stagger flash some...  and not flash together.  I wont know for sure until I have more than 2 lights going (waiting for more parts to arrive)
I can update later this week...
Thanks
Mike

Seems it was the transistors i was using.  I think I am all set now.
Thanks again!


ADR for dependancy management

User Need
As an Operations Engineering Team
I want to understand our approach to dependancy management
so that we can ensure we have the right tools and processes to that we can meet our needs of maintaining our codebase and keeping it free of vulnerabilities.
Value
In documenting this as an ADR we can refer back to and understand why we have made this decision. Having an ADR that is reviewed periodically will also allow us time to reflect on this approach and change the approach if necessary.
Functional Requirements:

ADR added to runbooks site

Acceptance Criteria:

ADR documented and available via the runbooks site

Notes:

Aged out


Loading images fails for the 'no_image' resource.

The InitialPageViewController logs the following warning:

Could not load the "no_image" image referenced from a nib in the bundle with identifier "org.cocoapods.SwiftImageCarousel"

Also fixed


Separate setting for Magic Mouse and wheel mouse

First of all: I'd like to thank you for giving the internet one of these little tools that make the world a little bit better! I really enjoy using your app and it's been so helpful to keep the natural way of scrolling on a Mac's trackpad, and combine it with the way I'm used to scrolling on a regular Windows PC or older Mac! It's awesome and of course I donated!
I use both traditional mice (at home, when my laptop is in its dock) and the Magic Mouse (when traveling or around the house), and think it'd be really cool if Scroll Reverser could detect when a Magic Mouse (or a bluetooth mouse perhaps) is detected, and turn off its reversing feature for that mouse, because the scrolling experience is more similar to the trackpad, if that makes sense?
It'd be really nice if you could somehow make that work!
(From email)

 Separate setting for Magic Mouse and Wheel Mouse


PageUp/PageDown are backward on Slider (don't match ArrowUp/ArrowDown)

Bug report
The effects of PageUp and PageDown on the Slider are backward (don't match ArrowUp and ArrowDown).
Current Behavior
Using PageUp on the Slider demo page decreases the value rather than increasing it (it goes the opposite direction to Up).
Using PageDown increases the value rather than decreasing it.
At first I thought this was a not-obvious-to-me design choice, but the (truly wonderful) documentation says

ArrowUp Increases the value by the step amount.
...
PageUp Increases the value by a larger step.

So they're clearly meant to match (whew).
This is consistent on Chromium-bsed browsers and Firefox.
Expected behavior
PageUp should increase the amount by a larger step, and PageDown should decrease the value by a larger step, so they match the direction of ArrowUp and ArrowDown and the documentation.
Reproducible example
The basic example in the docs demonstrates the bevhavior.
Suggested solution
In packages/react/slider/src/Slider.tsx, change what's currently lines 21-24:
const BACK_KEYS: Record<Direction, string[]> = {
  ltr: ['ArrowDown', 'Home', 'ArrowLeft', 'PageUp'],
  rtl: ['ArrowDown', 'Home', 'ArrowRight', 'PageDown'],
};

to
const BACK_KEYS: Record<Direction, string[]> = {
  ltr: ['ArrowDown', 'Home', 'ArrowLeft', 'PageDown'],
  rtl: ['ArrowDown', 'Home', 'ArrowRight', 'PageUp'],
};

Your environment
Just the documentation's demo in Brave 1.25.68 (built on Chromium: 91.0.4472.77) on Linux, Firefox v89 on Linus, and Chrome v91.0.4472.106 on Windows.

(I'd do a PR but I've never even used the lib, I just happened to notice the behavior when looking at whether to use it. [It looks great!] In fact, I did fork the repo and make the tiny change above and the tests are all green, but I couldn't get a test setup working to actually try it in the browser in the time I had avaialble.)

Fixed here #718. In fact it wasn't inverted, pageDown should always go down, and pageUp should always go up so only one of them was wrong.
Thanks for spotting it! 🙏

@benoitgrelard - Doh! Of course. Fast work!

That's now been released @tjcrowder.


Puppeteer unable to launch chromium process on arm64

Description
If the host has an arm64 processor, Puppetteer cannot launch the browser.
Version
all
Steps to Reproduce
During cover or chapter retrieval
Screenshots
No response
Logs
"err":{
   "type":"Error",
   "message":"Failed to launch the browser process!  /root/.cache/puppeteer/chrome/linux-119.0.6045.105/chrome-linux64/chrome: 36: Syntax error: \"(\" unexpected (expecting \")\")      TROUBLESHOOTING: https://pptr.dev/troubleshooting  ",
   "stack":"Error: Failed to launch the browser process!  /root/.cache/puppeteer/chrome/linux-119.0.6045.105/chrome-linux64/chrome: 36: Syntax error: \"(\" unexpected (expecting \")\")      TROUBLESHOOTING: https://pptr.dev/troubleshooting        at Interface.onClose (/app/node_modules/@puppeteer/browsers/lib/cjs/launch.js:277:24)      at Interface.emit (node:events:526:35)      at Interface.close (node:internal/readline/interface:527:10)      at Socket.onend (node:internal/readline/interface:253:10)      at Socket.emit (node:events:526:35)      at endReadableNT (node:internal/streams/readable:1376:12)      at process.processTicksAndRejections (node:internal/process/task_queues:82:21)"
},

Platform
desktop
Device
n/a
Operating System
Ubuntu
Browser
n/a
Additional Context
No response
Code of Conduct

[X] I agree to follow Teemii's Code of Conduct

I'm facing the same issue on my Raspberry Pi 4 as well, while no such issue on my Vultr Instance (running on Xeon), so I can confirm this issue is specific to arm64.

In the Puppeteer Troubleshooting page under the Chrome doesn't launch on Linux section, there is this caution that says:

Chrome currently does not provide arm64 binaries for Linux. There are only arm64 binaries for Mac ARM. That means that Linux binaries downloaded by default will not work on Linux arm64.

Since, Chrome isn't available for ARM chipsets, the alternative seems to be using Chromium that is available for ARM and then tell Puppeteer to skip installing Chrome and use Chromium instead that we downloaded. This is what I understood from reading the Troubleshooting page of Puppeteer.
I think you might take a look at both of these links as they might help somewhat with this issue:

Running Puppeteer in Docker on Alpine > Here, in the Dockerfile, we download Chromium manually and configure Puppeteer to use that instead of attempting to download Chrome.
Use Puppeteer on an ARM based Infrastructure


Remove custom getstate, setstate for FlatMapper

Stack from ghstack:

-> #240

After https://github.com/pytorch/pytorch/pull/72896 lands, custom getstate, setstate are no longer needed here because there will be default methods in IterDataPipe.

@nivekt has imported this pull request.  If you are a Facebook employee, you can view this diff on Phabricator.


remove column blocked from follows table

Closes #118

@Utzig26 It already did.

Closing this PR because it's not possible to simply remove this column.

Closing this PR because it's not possible to simply remove this column.


% characters are stripped out of URLs

The section variable passed into the pagination module is already URL encoded,
https://github.com/spf13/hugo/blob/master/hugolib/pagination.go#L370
but the pagination URLs are encoded again using function URLizeAndPrep() in
https://github.com/spf13/hugo/blob/master/hugolib/pagination.go#L515
This yields incorrect URLs for pagination templates.
For example, a section name contains accent characters (añame) encoded as  a%C3%B1ame, when processed by function URLizeAndPrep(), will become ac3b1ame, the % characters are stripped out.
And there may be other cases for non-English section names which are not handled correctly.
Removing the call to the URLizeAndPrep() function temporarily fix this issue for me, but the URL handling should be reviewed and should be consistent with URLs in Nodes and Pages.

It turns out that this issue is not limited to the pagination module.  The issues is with the UnicodeSanitize() function stripping % characters in URLs:
https://github.com/spf13/hugo/blob/master/helpers/path.go#L78

This precedes my time with Hugo. @spf13 might now why % are stripped?

I just filtered out any character that may be an issue as part of a filename in any os, even some that were ok in urls. It seems innocuous enough to include this back in.


Add map to region options for tablets

Describe your PR, what does it fix/add?
Added support for mapping tablet input to a region in output layout.
Besides, this PR also added:

Functions for getting/setting Vector2D variables
2 variables for tablet devices: region_position and region_size

Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)
Mapping will be reserved after region_position and region_size variables are removed from the configuration file. Unplug and replug tablet will solve this problem.
Is it ready for merging, or does it need work?
Ready

nice. Wiki mr please :)

Wiki MR:
https://github.com/hyprwm/hyprland-wiki/pull/355


Ng schematics interface

@Brocco can you check this out and let me know if I got everything please? 😄

@Brocco Updates are in there now. Also added dasherize to the file name.

Awesome, please rebase to a single commit with the message "feat(@schematics/angular): Add interface schematic"


Added=>Algorithms=>String_Algorithms=>Palindrome.cs=>C#

#Assigned Issue Number ?
#449
Language Opted ?
C#
Number of files added or updated ?
1
Name of these files ?
Algorithms=>String_Algorithms=>Palindrome.cs
example :
Algorithm => Search_Algorithm => Linear_Search => Linear_Search.py
Checklist

[x] I've read the contribution guidelines.
[x] I've referred the correct issue number.
[x] I've fill up this entire template correctly.

Perfect Code :+1:
Thanks @subhadeep1912 s
Happy Contributing :clap:


Push Notifications do not contain Extras

I am trying to receive the Push notifications in another activity in the application.
When the app is in the background, I receive Push Notification with the correct visual data.
But when I open click on it and open the app, I am missing the necessary data to be able to redirect with the help of the OpenFromPushChecker.
Specifically, the extra in the intent does not contain BaseInterfaceAdapter.THREAD_ENTITY_ID, Defines.FROM_PUSH, Defines.MSG_TIMESTAMP. Therefore the open from push checker fails.
I believe it might have something to do with the work done in the MessagingService.

I believe I have found the cause of the issue. Somewhat surprising.
It looks like the notification is create in the  private Completable pushToChannel(...) in the FirebasePushHandler. But as the source code shows, the fields checked for in the OpenFromPushChecker are not added to the data. Therefore the check will fail.
Is this a mistake in the FirebasePushHandler? Is this a mistake in the OpenFromPushChecker? Am I seeing it wrong?

is this solved?


Add usage docs

Purpose
Obvious: make our project usable.
Proposal
Revamp the whole documentation to a short README and a more complete documentation.

Hey @sampaccoud I've addressed all your comments. Tell me when you think we can ship it!

Now  !


Revert "Revert "Balder/group commits to tls 2 remaining rebased""

Reverts vespa-engine/vespa#14314

@toregge PR


skip errors?

Anyway to get it to skip over errors found and continue to next file?

Hi @Hemps38, unfortunately there's no option for this at the moment but I agree it would be useful.
It could be tricky to continue for some kinds of errors, but for other kinds of errors it should be fine. Are there any particular kinds of errors you'd like to skip over?

Its saying something about file missing from source, then it stops syncing to destination.

Ah interesting, it failed to copy the zero byte file? I can try reproducing the issue.


no-unused-variable: private ctor params shouldn't require this. when used in the ctor

Bug Report

TSLint version: 3.11.0
TypeScript version: 1.8.10
Running TSLint via: gulp-tslint via Visual Studio 2015

TypeScript code being linted
class Example {
  constructor(private thing1: string, private thing2: string){
    console.log(thing1);
    console.log(this.thing2);
  }
}

with tslint.json configuration:
"no-unused-variable": [ true, "check-parameters" ],

Actual behavior
The private thing1 variable is reported as unused, even though it is used without the this. prefix, which is allowed in a constructor.
Expected behavior
Used variables in the constructor should not require the this. prefix to be considered "used"

this.thing1 vs. thing1 have different meanings - consider the case below:
class Foo {
	constructor(public foo = 20) {
		this.foo = 10;
		foo = 5;
	}
}

const f = new Foo();
alert(f.foo);  // will display 10

If a private parameter property of a constructor is never accessed accessed anywhere in the class as this.myProperty, it actually still is unused as a class member and I think the lint rule is succeeding. Does this line up with what you're seeing from TSLint?

I was not aware of that, I assumed they meant the same thing.  Thanks for the clarification!

Now that I'm thinking about this more... should there be a rule to ban the improper use like this?
constructor(public foo: number) {
        this.foo = 10;
        foo = 5; //<-- violation
}


[PT Run][Registry Plugin] Copy registry key/value in REG format

📝 Provide a description of the new feature
Add a possibility that will copy the current selected registry key/ registry value in the *.REG format to the clipboard,
so that users can add this direct in a *.REG file (or use as a full *.REG file)
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\HARDWARE\RESOURCEMAP\System Resources\Physical Memory]
".Translated"=hex(8):01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,09,00,00,\
  00,03,01,00,00,00,10,00,00,00,00,00,00,00,f0,08,00,00,00,00,00,03,01,00,00,\
  00,10,09,00,00,00,00,00,00,f0,00,00,00,00,00,00,03,01,00,00,00,00,10,00,00,\
  00,00,00,00,00,f0,03,00,00,00,00,03,01,00,00,00,a0,00,04,00,00,00,00,00,60,\
  cf,05,00,00,00,00,03,01,00,00,00,00,00,0a,00,00,00,00,00,00,00,01,00,00,00,\
  00,03,01,00,00,00,00,02,0b,00,00,00,00,00,50,78,ce,00,00,00,00,03,01,00,00,\
  00,70,d5,da,00,00,00,00,00,50,40,00,00,00,00,00,03,01,00,00,00,a0,58,dc,00,\
  00,00,00,00,60,a7,02,00,00,00,00,07,01,00,02,00,00,00,00,01,00,00,00,00,38,\
  1f,03,00,00,00,00

I will work on this after #7951 is finished

This is for the new Registry plugin for PowerToys Run?

This is for the new Registry plugin for PowerToys Run?

You are to fast 😄, yes its for #7951


Delete namespace (/namespaces/{ns}) returns 502 bad request error

Step1: Create a new namespace
Step 2: Do not associate the newly name space with product or do not create any service account
Step 3: Make Delete /namespaces/{ns} API call to delete newly created namespace

Actual Result : The API call returns 502 Bad Gateway error while deleting a valid namespace

@ikethecoder confirm that the defect is resolved with latest gwa-api...verified with latest gwa-api and it's working fine


Add type hints

Adding type-hints throughout the project

That sounds right to me.
On Tue, Jun 28, 2022, 12:04 PM Nick Crews @.***> wrote:

@.**** commented on this pull request.
In Makefile
https://github.com/staticjinja/staticjinja/pull/175#discussion_r908663569
:

@@ -19,6 +19,9 @@ black-check:
flake8:
poetry run flake8

+mypy:

poetry run mypy staticjinja --ignore-missing-imports

With the ignore_missing_imports = true in the setup.cfg, do we need this
flag here as well? I can remove in a followup commit.
—
Reply to this email directly, view it on GitHub
https://github.com/staticjinja/staticjinja/pull/175#pullrequestreview-1022016664,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AA2AQKS647S3YAY3SGTW5VDVRMO7TANCNFSM5ZWHPFXQ
.
You are receiving this because you were mentioned.Message ID:
@.***>


template formly no show css

template property does not show css. I need it without creating a custom component
https://stackblitz.com/edit/angular-ritmcc?file=app/app.component.ts
thanks

use DomSanitizer see https://stackblitz.com/edit/angular-nnieuq

why doesn't work this?
https://stackblitz.com/edit/angular-ritaz8?file=app/app.component.ts

fixed


docs: add missing hook_parsed_variables to incoming hook post

Description of change

Missing variables pull_request_id, pull_request_title and commit_hash in "create an incoming hook" post; this may cause errors if the users try to follow webhooks/create-outgoing-webhook or applications/integrate-application-deployments-to-ci-workflows, because the variables will not exist.
Issues resolved by this PR

N/A
More info

Preview deployed @ https://thlmenezes-site.devopness.com/docs/webhooks/create-incoming-webhook/
https://www.devopness.com/docs/webhooks/create-outgoing-webhook/

uses pull_request_id and pull_request_title in request body

https://www.devopness.com/docs/applications/integrate-application-deployments-to-ci-workflows/

uses commit_hash in target_url

Deployed pipeline for PR #725 (docs: add missing hook_parsed_variables to incoming hook post): Devopness application thlmenezes-site.devopness.com deployment in-progress on action https://thlmenezes-site.devopness.com

Deployed pipeline for PR #725 (docs: add missing hook_parsed_variables to incoming hook post): Devopness application thlmenezes-site.devopness.com deployment completed on action https://thlmenezes-site.devopness.com

Deployed pipeline for PR #725 (docs: add missing hook_parsed_variables to incoming hook post): Devopness application thlmenezes-site.devopness.com deployment in-progress on action https://thlmenezes-site.devopness.com

Deployed pipeline for PR #725 (docs: add missing hook_parsed_variables to incoming hook post): Devopness application thlmenezes-site.devopness.com deployment in-progress on action https://thlmenezes-site.devopness.com

Deployed pipeline for PR #725 (docs: add missing hook_parsed_variables to incoming hook post): Devopness application thlmenezes-site.devopness.com deployment completed on action https://thlmenezes-site.devopness.com

Deployed pipeline for PR #725 (docs: add missing hook_parsed_variables to incoming hook post): Devopness application thlmenezes-site.devopness.com deployment in-progress on action https://thlmenezes-site.devopness.com

Deployed pipeline for PR #725 (docs: add missing hook_parsed_variables to incoming hook post): Devopness application thlmenezes-site.devopness.com deployment completed on action https://thlmenezes-site.devopness.com

Deployed pipeline for PR #725 (docs: add missing hook_parsed_variables to incoming hook post): Devopness application thlmenezes-site.devopness.com deployment completed on action https://thlmenezes-site.devopness.com

Deployed pipeline for PR #725 (docs: add missing hook_parsed_variables to incoming hook post): Devopness application thlmenezes-site.devopness.com deployment in-progress on action https://thlmenezes-site.devopness.com

Deployed pipeline for PR #725 (docs: add missing hook_parsed_variables to incoming hook post): Devopness application thlmenezes-site.devopness.com deployment completed on action https://thlmenezes-site.devopness.com

Deployed pipeline for PR #725 (docs: add missing hook_parsed_variables to incoming hook post): Devopness application thlmenezes-site.devopness.com deployment in-progress on action https://thlmenezes-site.devopness.com

Deployed pipeline for PR #725 (docs: add missing hook_parsed_variables to incoming hook post): Devopness application thlmenezes-site.devopness.com deployment completed on action https://thlmenezes-site.devopness.com


prefer readlink -f over realpath

I got this error
realpath: command not found
turns out realpath can be replaced with readlink -f, see https://unix.stackexchange.com/a/101559

@butonic it does not work for me on macOs, e.g.
realpath:

docker run --rm --volume /Users/fschade/Developer/owncloud/cdperf/tests/k6:/cp owncloud/cdperf-k6 cp -r . /cp

vs
readlink -f:

docker run --rm --volume /tests/k6:/cp owncloud/cdperf-k6 cp -r . /cp

i close this, 2.0.0 is on the horizon and that version relies entirely on k6, every bash magic is remove.
please let me know if you want something similar in the future.


website 1.0

generate a TLS cert for www.cloudfeaster.com
sendgrid e-mail (or use another SaaS e-mail service)

"greplin-tornado-sendgrid==0.1"
"https://github.com/Cue/greplin-tornado-sendgrid/tarball/v0.1#egg=greplin-tornado-sendgrid-0.1"

closing since moving to trello


Add rescaling in data augmentation

Fixes #331
This PR aims to re-integrate "Rescaling" in data augmentation.
The option was still available in the notebook (da-1-rescaling-activate) but not used in the codebase since Keras integration.
The rescaling is between a factor of 0.8 and 1.2 (similar to ADS paper with factor between 1/1.2 and 1.2).
@vs74, I re-ordered the transforms in the AUGMENTATIONS_TRAIN to reflect the order of the parameters in the notebook. Was there specific reason for the order to be different?
I also removed the now unused parameter da-type in the notebook.

@vs74, I re-ordered the transforms in the AUGMENTATIONS_TRAIN to reflect the order of the parameters in the notebook. Was there specific reason for the order to be different?

Ordering of the data augmentation operation impacts the performance of the model. I did some tests earlier and believe that the ordering of the operation in the train_network.py gave the best performance.
To validate your ordering, I think it would be a good idea to include the validation metrics (like val_accuracy, val_dice_myelin,  val_loss, and val_dice_myelin) and one prediction for the modality (SEM and TEM) before ordering and the new ordering. If your ordering gives better results, we should switch to that.
The same is the reason why I dropped rescaling. It would be a good idea to save/ log these experiments and so if in the future we wish to make a decision regarding the data augmentation,  we can refer back to them.

@mariehbourget I believe this PR can be halted for now until IVADOMED and ADS integration as we would be doing experimentation with data augmentation, training, and all. So, right now converting this PR to draft makes sense to me as we will refer to this PR while doing data augmentation.
In case, if you feel that we should add a rescaling option and change the ordering, you should add the necessary validation metrics and segmentation for this PR to be merged.

Thank you for your insights @vs74! I converted to draft as you suggested and will use this branch to test rescaling with peripheral nerves training.

Coverage decreased (-0.01%) to 82.646% when pulling 2c70418dab04972ac5952f4438bf3e6aeea1b936 on mhb/add-rescale-da into 28faa05f132b7f88c40f37080927afa96d764aa1 on master.

Closing this PR as the training is now done with ivadomed for ads v4.


Helper spamming console when mining.

Describe the bug
The plugin Helper is flooding my console when mining.
To Reproduce
Simply enchant a pickaxe and mine.
Expected behavior
Console gets flooded
Screenshots
https://paste.helpch.at/ejazesuzif.md

Thanks for reporting. Fix will be delivered in 1.5.3


InfluxDBClient.create_database() Doesn't Support Names with Spaces

InfluxDB allows for database names to have spaces, but the InfluxDBClient.create_database() method does not due to the query self.query("CREATE DATABASE %s" % dbname) not wrapping the dbname with double-quotes.  When you try to create a database with spaces using the method, a InfluxDBClientError is raised with a "error parsing query..." message.

Looks like this has been already fixed on master, just needs to be released.
https://github.com/influxdata/influxdb-python/blob/master/influxdb/client.py#L488
I've updated it to use the quote_ident function used by all the other queries #395


CSVLogger fails on remote FS on version 2.1.0

Bug description
When using CSVLogger and save an experiment on a remote file storage, even though it manages to save core files, like the checkpoints, metrics.csv and hyp.yaml, in the middle of the first epoch it fails and raise the error The blob type is invalid for this operation.
Note that is not the case with the version of 2.0.0, which it worked without any issues
The issue appears to be generated that some remote FS do not support append or "a" operation:
https://github.com/Lightning-AI/lightning/blob/874825857ffc09923407ada36814e11adb66c352/src/lightning/fabric/loggers/csv_logs.py#L231
Changing the above to only "w" will resolve the issue, but of course we do have to sent the whole information.
Maybe one way, to not store information on memory, to download the file , append and upload, only of remote file storages.
What version are you seeing the problem on?
v2.1
How to reproduce the bug
# main.py
"""
Execute:
>>> export FSSPEC_ABFS='{"anon": false}'
>>> pip install pytorch_lightning adlfs
>>> python main.py
"""
import pytorch_lightning as pl
from pytorch_lightning.demos import boring_classes

OUTPUT_DIR =<EMAIL_ADDRESS>
class TestModel(boring_classes.BoringModel):
    def training_step(self, batch, batch_idx):
        loss = self.step(batch)
        self.log("train/StepLoss", loss, prog_bar=True)
        return {"loss": loss}

model = TestModel()
trainer = pl.Trainer(
    max_epochs=10,
    logger=[
        pl.loggers.CSVLogger(save_dir=OUTPUT_DIR),
    ],
)
trainer.fit(model)

Error messages and logs
azure.core.exceptions.ResourceExistsError: The blob type is invalid for this operation.
RequestId:91549e35-001e-0027-3224-077714000000
Time:2023-10-25T09:21:49.3754217Z
ErrorCode:InvalidBlobType
Content: <?xml version="1.0" encoding="utf-8"?><Error>InvalidBlobType<Message>The blob type is invalid for this operation.
RequestId:91549e35-001e-0027-3224-077714000000
Time:2023-10-25T09:21:49.3754217Z</Message></Error>```

Environment

Current environment
#- Lightning Component (e.g. Trainer, LightningModule, LightningApp, LightningWork, LightningFlow):
#- PyTorch Lightning Version (e.g., 1.5.0):
#- Lightning App Version (e.g., 0.5.2):
#- PyTorch Version (e.g., 2.0):
#- Python version (e.g., 3.9):
#- OS (e.g., Linux):
#- CUDA/cuDNN version:
#- GPU models and configuration:
#- How you installed Lightning(`conda`, `pip`, source):
#- Running environment of LightningApp (e.g. local, cloud):

More info
No response

Thanks for looking into this.
I want to point out that the CSVLogger should only be used for debugging purposes and barebones logging for trivial stuff. It is not designed to support all kinds of optimizations when logging rows and also it was not designed to write a lot of data to disk or remote locations. For these use cases, we highly recommend using TensorBoardLogger and alike. My opinion is that if it's not a small fix, we shouldn't develop CSVLogger into a fully featured logger, and remote filesystems is in my opinion one of these areas.

Hi @awaelchli, thank you for taking the time 🙏 I do see your point and it makes sense, but I would love to preserve this functionality, as for now its essential part of my workflow and I would like to use the latest lightning version.
I submitted a small PR, which I hope we could merge to master!


xbee: remove unused client command

It appears the io_sample client command is not used, removing.
Tested on 2021.4.0.

Pull Request Test Coverage Report for Build 876032459

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 82.502%

Totals

Change from base Build 871871025:
0.0%

Covered Lines:
3786

Relevant Lines:
4589

💛  - Coveralls


Possible asset issue during deploy

Great to see a new approach for deploying Rails apps 👏🏼
I haven’t tested mrsk out, but based on the documentation I expect there is an issue with the assets during deploys. Capistrano has this solved. We run our own deployment tooling and needed to solve this issue ourselves a few years ago.
The issue starts occurring once you have more than a couple of instances you are deploying to. The first instance can run a newer version than other servers. This new version wants to load new versions of the assets. Because they are timestamped/versioned, these assets are only available on the fresh instances. With more instances to deploy, the chance of hitting an old version increases. This means the assets 404 and no styling is present. In the end we reached a scale that we almost always had this issue with our deploys.
Capistrano solves this by sharing the assets between deploys. So older assets are still available. We have solved this by serving our assets from an s3 bucket with a CDN in front of it. By uploading the assets to the bucket before any instances are updated, you assure that all new versions can request the correct assets.
Like I said, I haven’t tested mrsk so maybe there is a hidden solution to this issue and this can’t occur. But from my understanding of the deployment process, there is a risk of missing assets. Might be interesting to work this out before the issue starts happing at scale.

If each instance has it's own version of precompiled assets within it's container, there should be no problem, no?

I think each container serves the assets from its own precompiled version, some can be outdated. Not sure how this would work when using a single CDN though without keeping some older refs around.

If each instance has it's own version of precompiled assets within it's container, there should be no problem, no?

Then you make the assumption that a request for a (new) asset lands on the same server. When using a load balancer you should never assume that is the case.

I think each container serves the assets from its own precompiled version, some can be outdated. Not sure how this would work when using a single CDN though without keeping some older refs around.

That’s why we use an s3 bucket with all versions. We remove the older versions on each deploy.

I'd solve that by letting your CDN be the cache of the old assets. Not going to introduce the complication of sharing assets between containers into MRSK. Assets are set to live for a year with no need to check the origin. So assets from old versions will continue to live in the CDN.

Actually, I see what you mean. That you serve HTML from a new version of the app, which then triggers a request for a new asset, which hits the CDN, the CDN then hits the app, which then potentially hits an old version that still hasn't been restarted. I think that window is pretty small with these deploys, but if we start doing rolling deploys, it could increase.
One way of dealing with it is using an asset host, then ensuring the asset host points to the first container instance that will be restarted first. But need to document that.

At scale, having an asset host that is restarted first would move the issue from the new version of the app to the old versions of the app. A user hits an old host that has not been restarted, gets an asset from the new app and things might break (old html with new styles, new Javascript referencing non existing fields).
Hence @edwinv solution of having them both available while the deploy is going on, and assuming you have implemented the proper naming/versioning so each version requests their own assets.
I don't see a general solution that mrsk can provide, but at allowing users to add their "custom things" at the proper moments might be enough, so maybe adding some kind of pre-/post-deployment hooks to add custom code to prepar/clean up assets?  If generalised, these hooks might even be used for other interesting things.

I don't think there's an issue in the other direction when you use a CDN that'll cache all old assets, and you ensure that the CDN uses the first-to-restart app as the origin for new assets.
But yeah, would be happy to see general callbacks explored. The audit broadcast callback is one such specialized example.

when you use a CDN

and

when using a single CDN though without keeping some older refs around

I personally agree that the CDN should keep old assets around at least long enough for a deploy - if someone has humongous assets that are too expensive too keep they might need a special strategy there to purge as soon as it's safe.
I first thought assuming that folks use a CDN at all might be wrong, but when we're talking about a large deployment like this (not single containers where there is no issue) then I think documenting this somewhere might be good enough?

Yes, that's my view. This is a problem better handled at the CDN. This is how we keep MRSK small and light. Realizing that it's NOT a full-stack deployment framework, if you will. We're not trying to solve all possible deployment scenarios in this box. That's the pursuit for the likes of k8s or others. MRSK will stay lean by leaning on other modern, solutions that work with it.
So going to close this. Feel free to open a PR with documentation on this 👍

I think there is a misunderstanding of how CDNs work.
Just because you configure proper cache headers doesn't mean that CDNs will keep them for the time configured.
The time is not guaranteed, as unpopular assets will be evicted from cache and will require a repopulation from origin.
One would need a push-CDN for the described use-case, where you pay for cache storage size and get that space guaranteed - CDN will then take care about population of the assets - e.g. BunnyCDN offers that with "perma-cache".
An easier solution would be to provide an "asset" volume which has a mechanism in place to keep several versioned old assets.
I think @dhh used Cloudflare in the example on YouTube, which is a Pull CDN which will not behave the same way as e.g. Cloudfront/S3.

Regardless whether your CDN supports a perma cache or not (or maybe you don't use a CDN at all), you could always put your app behind a standard HTTP caching server like Varnish, nginx, Apache+mod_cache.


Remove version: HMC.Hoerbert version 3.1.3

[Automated] It returns code over 400 in all urls
Microsoft Reviewers: Open in CodeFlow

[Policy] Highest-Version-Removal

Duplicate of #192737


End-to-end functionality testing of mobile app and ticketing module

Defect tracker:
https://docs.google.com/spreadsheets/d/1exRyr7c8Z4nJGRGkYTb-aOfBsK_AvPM8P9FOCbpUOdY/edit#gid=0


Changing the color of the card on hovering

Detailed description
We should change the color of the card on hover from orange to according to the theme
Context
It will look good to the user.
Possible implementation
No response
Additional information
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

@tanishqamitra Thanks for creating the issue!
Do you wanna work on this issue and are you contributing under GSSoC?

I want to work on this issue and I am contributing under GSSoC. Please assign this issue to me.

Yes @Deepu178 I would like to work on this issue and I'm contributing under GSSoC.

@tanishqamitra I have assigned the issue and added labels to it. Enjoy contributing to the project 🚀🚀


ISPN-16537 Cache health and config do not respond 404 for non running caches

https://issues.redhat.com/browse/ISPN-16537

@tristantarrant I relaunched the build because it was broken with more than 1000 failures

Merged, thanks


mp4 videos not showing in feed - defaulting to mp3

Recently an RSS feed of mp4 videos stopped showing and the downloads or inline player are defaulting to mp3 audio only.
This was not the behavior in the past and is not the behavior on Feedly (used to test).
Example RSS feed. http://feeds.twit.tv/twil_video_small.xml

Does this still happen? I just tested and it seems to display the videos just fine.


Any specifics on webcam texture to render target format?

I have been used Mac OS Catalina and Big Sur and Security to access on webcam seems to be fixed but still get this issue.
Any idea you might have? It would be great to know! thanks in advance
Unsupported destination format in Graphics.ConvertTexture (69). This is likely because the device does not support this format as a rendertarget format.
UnityEngine.Graphics:ConvertTexture (UnityEngine.Texture,int,UnityEngine.Texture,int)
SlitScanCam:OnPostRender () (at Assets/SlitScanCam.cs:46)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Try changing RGB565 to RGBA32.
https://github.com/keijiro/SlitScanCam/blob/main/Assets/SlitScanCam.cs#L25
It consumes two times more memory but provides more compatibility.

Try changing RGB565 to RGBA32.
https://github.com/keijiro/SlitScanCam/blob/main/Assets/SlitScanCam.cs#L25
It consumes two times more memory but provides more compatibility.


How to use plotly to generate interactive ggpicrust2 plots

Hello, I discovered your tool by chance, and it's exactly what I've been looking for. I encountered an issue when running my data, but I was able to resolve it by referring to the issue section (I used the solution proposed in #65). Our professor asked if there is a way to visualize pathway_errorbar, heatmap, and PCA using Plotly (He wants us to become familiar with interactive plots.).
Could you please assist me with this? I tried using ChatGPT, but I couldn't successfully convert it.
Thank you.

Dear @ScarlettPegany,
Thank you for reaching out and for your kind words about our package.
Regarding your request, due to limitations in Plotly's support for combined plots, I attempted a conversion but was only successful with pathway_heatmap. You can make this heatmap interactive using the following method:
p <- pathway_heatmap()
ggplotly(p)

I apologize for any inconvenience this might have caused.
However, I'd like to suggest you explore my other package, MicrobiomeStat. Almost all of its visualizations are seamlessly integrated with Plotly. You can find more details and access it at https://www.microbiomestat.wiki/.
I hope this helps! If you have further questions, feel free to ask.
Best regards,
Chen YANG

Is there a way to zoom in on the different plots without using my cursor, perhaps by adjusting the width, height, or other parameters to ensure the plot is readable

Maybe you can use Adode Illustrator？

@cafferychen777  : Yes, that's a good idea.
In the case of exploratory analysis, which dataset would be the most meaningful to use? Is it MetaCyc, KO abundance, or KEGG abundance? I truly need to comprehend the distinctions among these three.
I've already read your comments in issue #64, but I'm still struggling to grasp the role of MetaCyc in the context of functional analysis prediction compared to the other two.

@ScarlettPegany I am just a little curious, how were you able to increase the font size of the pathway error bar plot? Thanks

@ScarlettPegany I am just a little curious, how were you able to increase the font size of the pathway error bar plot? Thanks

I used Adode Illustrator. If you come across a script that allows you to do that, please don't hesitate to share it.

Dear @ScarlettPegany,
Thank you for reaching out with your questions. Let me address each one in turn:

Dataset Selection: All three datasets - MetaCyc, KO abundance, and KEGG abundance - are meaningful in their own right. The best choice often depends on the specific context and objective of your analysis.

Role of MetaCyc: Regarding your question about the role of MetaCyc in functional analysis prediction, I'd recommend reaching out to the managers or administrators of the MetaCyc database. They would be in a better position to provide detailed insights into the nuances of MetaCyc compared to KO abundance and KEGG abundance.

Test Selection: Personally, I have a preference for ALDEx2 and LinDA. For analyses involving three or more groups, I'd recommend ALDEx2. For comparisons between two groups, LinDA would be my choice.

I hope this clarifies your queries. Please let me know if you have any more questions or if there's any other way I can assist you.
Best regards,
Chen YANG

@ScarlettPegany In order toincrease the font size, I would suggest you fork the source code and then edit the parameters necessary. That how i was able to increase the font size of mine figure. Way more better and faster i would think compared to using adobe


EDC - Concept for mutual credential verification

Description
As a Data-Consumer who requires a certain credential in order to negotiate a specific Contract-Offer, I want to check if the Data-Provider as well owns those Credentials. As example, a credential points out if a partner signed a frame-agreement for a specific context or use-case. The Data-Provider simply specify this credential within a usage-policy to make sure, the Data-Consumer signed the agreement as well.
However the data-consumer is currently not able to check this credential of the Data-Provider within the negotiation process.
Impact
For future scalability reasons of the network, a mutual verification of credential has to be established.
Additional information

[ ] I'm willing to contribute to this feature

Removed from 24.05, as prerequisites are not fulfilled. Will be reconsidered later

Presented in the DRAFT Feature Freeze -> Committer is available

After an indepth discussion within the team, the requirement from Catena-X is not clear, as this mutual verification has not been demanded from anyone lately. Therefore, the issue is closed as not implemented.


Missing rados API components: function rados_ioctx_locator_set_key

The rados API implements function(s) below but go-ceph does not:

rados_ioctx_locator_set_key

This issue has been filed to track implementing this missing
functionality in the appropriate package within go-ceph.
Please refer to the Ceph C API for details about the function(s)
in question.
NOTE: This issue was generated by a script.
If the content is innacurate or wording seems a bit odd
please excuse the script and blame the creator @phlogistonjohn

See a previous attempt at adding something for this in PR #84

added via #651