Keyboard should disappear when a user scrolls on a page, or on a dropdown menu

The keyboard covers up information, and a mobile standard is to have the keyboard slide down when users scroll on a page, whether it be results, a menu, simply a form screen, or anything else. This is specifically an issue when on a dropdown menu (Catch, Gear, EMS type, Fishery, etc.) - and with no way to dismiss the keyboard, users can't even get to "Other," or anything below the top of the keyboard.
This is a serious usability issue.

Hello! Can I work on this issue? I have an open PR at the moment by the way

@czuria1 thanks for being transparent about the open PR - yes, you can work on this even with an open PR. I've assigned it to you.


fix: fixed network activity occurring outside the core update getting missed in the profiler

RpcSent, NamedMessagesSent, and UnnamedMessagesSent were broken because they are triggered from the game loop and would not be included in the profiler tick data

This is probably good enough. The question is whether or not we should actually do this at the end of the pipeline or do it this way where we know for sure we've captured all possible data in a tick??
Any thoughts?

This is probably good enough. The question is whether or not we should actually do this at the end of the pipeline or do it this way where we know for sure we've captured all possible data in a tick??
Any thoughts?

The difference in functionality is basically which data is grouped together. this change basically states "every data reported from when i start the tick until when i start the next tick is grouped". i think starting the tick as early as possible makes the most sense as it will try to match the boundaries of a tick to render frames, which is how the profiler renders

https://github.com/Unity-Technologies/com.unity.multiplayer.mlapi/pull/642
We could make a new class to incorporate what my test is exercising. and have the profiler use this new class.


fix: expire images but keep 20 at least

Description

Type of change

[ ] Docs change / dependency upgrade
[ ] Configuration / tooling changes
[ ] Refactoring
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Requires changes in customer code

High-level change(s) description - from the user's perspective

Related Issue(s)
Fixes
Related pull request(s)

close in favour of https://github.com/connext/monorepo/pull/4984


Feature/loaders

This rather big pull request will allow to use loaders #10 :
plugins: [
    new HtmlWebpackPlugin({
      template: 'html!./index.html'
    })
  ]

Further changes to get this working:

It will remove the deprecated templateParams.htmlWebpackPlugin.assets.
It will also remove the templateContent feature. (Maybe we can fix this)
It adds an examples - for easier issue debugging and for people to try the plugin
It sets inject to true by default

This merge request is work in progress and will need some more testing and cleanup.

Oh, this is awesome!
Regarding compile, how about flipping it and calling it preCompiled?

I thought something like postprocess / postProcess. It could be a little bit the replacement for the missing templateContent option.

Open todos:

Move blueimp into a loader (blueimp!template.html) - replaces compile option
More tests
Bring back templateContent

@bebraw I have just added an example which uses the blueimp loader together with the html loader.
https://github.com/ampedandwired/html-webpack-plugin/tree/feature/loaders/examples/two-loaders
This just an example but should give you an idea how loaders might work together.

This looks really promising, can't wait for it to be released! Anything I can do to speed this up?
A thought, why not drop the blueimp dep, and just go with lodash templates?

@ampedandwired chose blueimp - and I would rather concentrate on the loaders issue first.
Furthermore you could just use lodash templates with the lodash loader ;)

I use handlebars or jade, so it makes no real difference to me. Just thinking that more people are probably familiar with lodash/underscore templates than blueimp. It also allows you to drop a, albeit small, dependency.
But yeah, different issue :smile:

Before releasing I would like to add more examples and use those examples for integration testing.
So it would be a great support if you could add some more examples (e.g. underscore, jade, handlebars, mocha-loader, using the chunks option and so on)

@jantimon That {% include(require('html!./partial.html'), {}); %} looks nice! Great work. :+1:

I have troubles using jade as template, because I have jade registered in loaders array in webpack.config.js  and when I use it for the template it is loaded with blueimp-tmpl. I believe this is because no loaders are detected in the template name? I think, perhaps blueimp-tmpl shouldn't be used by default, only when requested explicitly. Or at least provide option to disable it

@saberduck This is for backwards compatibility.. Maybe we could add the blue-imp loader to the module loaders so it would become a fallback - but I am not sure if this would would work.

Maybe, if you can replace this test
     if(this.options.template.indexOf('!') === -1) {
       this.options.template = 'blueimp-tmpl!' + path.resolve(this.options.template);
     }

with some explicit option like use-blueimp , which is true by default, but configurable

Why can't you just use jade!template.html ?

because I have jade loader defined as loader for .jade files in module.loaders array. If I specify jade! with template, it will try to process file with jade loader twice and it doesn't work. However  'jade!raw!` works, but seems like unnecessary hack.

Why would it load jade twice?

I will try to setup some minimalistic project to show you my problem, maybe I am missing something  and problem is somewhere else, ttyl

Cool - let me know I'll look into it

@saberduck - fixed that. It will use only a loader if you haven't specified one

Excellent work! I'm very much looking forward to being able to use this

Looks great now, thanks! Sorry, I didn't have time for the minimal test-case to reproduce the issue I had before

How can I use this to load a jade template? nothing helps me...
jade!template.jade doesn't work

template: 'html!jade-html!./src/client/index.jade' doesn't seem to work either

@let4be The reason is that the jade-loader is not able to load the fs module:
https://github.com/webpack/jade-loader/issues/8

@let4be - I added a jade example. Execute the following commands to try it:
git clone -b feature/loaders<EMAIL_ADDRESS>cd html-webpack-plugin/
npm i
cd examples/jade-loader/
../../node_modules/.bin/webpack

Hello, failed to run 'two-templates' example. Got some weird error though the template looks like OK:
ERROR in HtmlWebpackPlugin Error: Error: Child compilation failed:
Module build failed: SyntaxError: Unexpected token ;
    at Function (native)
    at .../node_modules/html-webpack-plugin/node_modules/lodash/index.js:10747:16
    at ...node_modules/html-webpack-plugin/node_modules/lodash/index.js:11020:21
    at ...node_modules/html-webpack-plugin/node_modules/lodash/index.js:8094:31
    at Function.template (...node_modules/html-webpack-plugin/node_modules/lodash/index.js:10746:20)
    at Object.module.exports (.../node_modules/html-webpack-plugin/loader.js:18:20):
SyntaxError: Unexpected token ;

Is there any way or proper example how to use the jade or other template engine with partials/include via loaders? It would be really cool to have templates to be resolved from modules, for example

@aaxx fixed the bug in the example please try again ;)

:+1: for this. blueimp is really old, badly supported (doesn't even have "Issues" button) and syntax is weird (IMO).

Btw, one more huge :-1: against blueimp-tmpl.
I played with relatively large HTML files (~200k) to test inline styles rendering and for some reason my webpack setup gone really slow. After some investigation it turned out that blueimp-tmpl is incredibly slow (despite that stated in its project description).
Check this simple benchmark:
$ npm i blueimp-tmpl
$ for ((i=0;i<30000;i++)) echo "
test
" >> test.html
$ cat bi.js
var fs = require("fs");
var tmpl = require("blueimp-tmpl").tmpl;
var html = fs.readFileSync("test.html", {encoding: "utf8"});
console.log(tmpl(html, {a: 1}));
$ time node bi.js | wc -l
30001
node bi.js  23.09s user 0.24s system 99% cpu 23.331 total
wc -l  0.00s user 0.00s system 0% cpu 23.331 total

And compare this result for example with handlebars:
$ npm i handlebars
$ cat hb.js
var fs = require("fs");
var Handlebars = require("handlebars");
var html = fs.readFileSync("test.html", {encoding: "utf8"});
console.log(Handlebars.compile(html)({a: 1}));
$ time node hb.js | wc -l
30001
node hb.js  0.00s user 0.00s system 3% cpu 0.113 total
wc -l  0.00s user 0.00s system 0% cpu 0.112 total

blueimp-tmpl is really doing it wrong.

@jantimon thanks, it helped a lot :+1:

@jantimon Any news here? This is looking fantastic, would love to use it :smile:

@SimenB use it and give feedback ;)

WIll do tomorrow!

@jantimon It works great with handlebars! It nicely deprecates the favicon option as well (at least along with handlebars-loader which looks up img srces) :grinning:
Only thing (not really related to this PR) is it'd be great if you could pick up that minimize is in effect for the whole build, without having to explicitly state it to the plugin.
Any ETA?

@jantimon, I've tested it with my app, and it works fine!
Error messages don't seem to work (see my comment above), but except this I think this PR makes html-webpack-plugin much better. I think this is more the webpack way to do this.

Isn't minifying the html a task of the loader? e.g. html-loader has support for this.

I would pay a beer or two for this patch. :beers:

With #83 I fixed the bug I mentioned above (loader errors were not displayed) and fixed the merge conflicts. Is there anything more to do?

thanks a lot - there are still some open topics left which should be adressed so we can release this  2.0 branch:

unit tests
using it together with the extract-text plugin seems very buggy (might require changes there)
performance benchmarks against the current version

ideas which might also be considered:

add events so other plugins will be able to add features like live reload, minifications, adding resources like apple icons, dns predetching etc

Okay, I will try to work on some unit tests. We're using your PR in production already in combination with extract-text-plugin and so far haven't encountered any issues. What issues are there?
Are benchmarks relevant? This could be a bit slower, but the huge win here is that you're reusing webpack's loaders. Because of this you can use custom template engines, postprocess the html etc.
Why would you add events for other plugins to add such features? Loaders already provide this exact functionality. E.g. html-loader can minify the HTML and process images.

@SpaceK33z events might be useful for the appcache-webpack plugin or for a favicon generator which might add a apple icon, an android icon and so on.
Otherwise we have to include manifest, favicon, resource-prefetching and so on all in the webpack plugin instead of giving other developers the opportunity to implement this in another plugin and lower the complexity inside the html-webpack-plugin.
Webpack has a event system so all we had to do would think of good event names and trigger them.
Maybe the extract-text-plugin was already fixed but you can try the following: require a css file (which is not required by your javascript files) from your template file and use the extract-text-plugin.
You are right a benchmark is not that important however it feels like that in dev mode the template is always generated even if nothing changed. This might slow down the compilation especially if you have several html files.

Wow this feature looks really awesome :)
I found an error while using the plugin together with the BannerPlugin like this:
plugins: [
    new HtmlWebpackPlugin({
        filename: "index.html",
        template: "html!./app/index.tpl.html"
    }),
    new webpack.BannerPlugin("test")
]

Error:
ERROR in HtmlWebpackPlugin SyntaxError: evalmachine.<anonymous>:1
 test */
       ^
Invalid regular expression: missing /

Also the resolve.root configuration does not seem to be honored for the template path but maybe this is expected behavior, I don't know.

@jantimon, I am not able to reproduce the extract-text-plugin bug.

require a css file (which is not required by your javascript files) from your template

You mean simply adding a <link rel="stylesheet" href="not-existing.css"> in the template ? Or how do you require the css?
I just updated #84 with additional tests :).

@szag - using resolve root is a nice idea. Unfortunately I am not able to reproduce your bug right now.
@SpaceK33z You can require a css file from your underscore template like <% require('./demo.css'); &>

@jantimon Weird. The bug occurred with a bigger config setup. I remember disabling other plugins to see if they interfere but maybe there's another configuration option causing it. I'll check…

I have created a new pre released 2.0.2 and added an installation instruction to the official readme

@szag, I have written a testcase for this and was able to reproduce your issue. I have no idea how to fix it yet unfortunately.

Sweet! :+1:

@szag, I have made a PR #85, which should fix your issue with the bannerplugin. Can you verify this?

@SpaceK33z Yes the issue is fixed! Thanks for that, awesome :+1:

@jantimon, I have reproduced the issue with require-ing a CSS file using a test now. Unfortunately I didn't succeed in squashing this bug. Do you happen to know if the fault is 'ours' or from extract-text-webpack-plugin?
That is the latest remaining bug (as far as we know), right? The README needs some updates as well I think. Is it ok if I update the README or do you want to do it yourself?

@SpaceK33z yeah sure feel free to update the readme.

I believe the bug is inside the extract-text-webpack-plugin but the whole plugin contains almost no comments so it's really hard to guess why it was written that way.
Could you please upload your example somewhere and open a ticket in their issue queue?

@jantimon, It should be fixed with #89.
I haven't created a ticket yet on extract-text-webpack-plugin, because I've not yet succeeded at reproducing it without using html-webpack-plugin. I want to rule out as much as possible :).

@jantimon

@SpaceK33z events might be useful for the appcache-webpack plugin or for a favicon generator which might add a apple icon, an android icon and so on.

Works fine with offline-plugin

Why ${title} treats same as <% title %> with default template?
Also, is there a way to use templates which return function instead of string?

Do you have an example of a loader that returns a function instead of string and doesn't work? I use this plugin with underscore-template-loader and it works fine.

@SpaceK33z I tried this https://github.com/okonet/ejs-loader which is pretty simple. Will try underscore-template-loader

Why ${title} treats same as <% title %> with default template?

Okay, this happens because lodash added some weird trick about interpolation with ${ ... } and problem with returned function was my fail, by some reason loader way applied twice per template.

What;s the current status here? Is it only importing from template missing, or something else? I could try to help out a bit :smile:

@SimenB, the last remaining (known) bug is that require('test.css') inside a template fails. I've created a (failing) test for this here. Would be awesome if you can fix that :)! See also this comment.

Are you supposed to be able to require from a template? Can you do that with JS now? Like just chuck a require('modernizr') in head to avoid repaints?

I personally never use this feature; I just require my css via the entry module.
@jantimon, what's your use case for this?

An isomorph react app might require css and would just crash with this plugin if we can't solve it.

Rather than using templates for the html entrypoints, why not use react components so that the app can later be mounted on the document? Also react components have access to require() assets and what not.

@nelix are you suggesting React by default, e.g. for everyone? Who wants React components, can just use appropriate loader.

@nelix, not everyone uses React...

So I'm trying this with jade. Template compliation works, but I can't figure out how to use interpolations. This doesn't work for me:
script( src="<%= o.htmlWebpackPlugin.files.chunks['app'] %>" )

@NickClark, can you try it using <%= htmlWebpackPlugin.files.chunks['app'].entry %>? In my underscore template I do it like this:
<% for (var chunk in htmlWebpackPlugin.files.chunks) { %>

<% } %>

It's not substituting at all.
My config look like like this:
    new HtmlWebpackPlugin({
      filename: 'index.html',
      template: 'jade!./src/index.jade',
      ngApp:    'MyAppModule'
      inject:   false
      hash:     false
    })

Ok, got it. Had to switch to 'jade-loader', was using 'jade-html-loader' before because I was using for my templates. Also, I was able to use the normal jade interpolations. (ie. #{}).

works well with :
loaders: [
  new HtmlWebpackPlugin({
    template: 'html!./client/index.html',
    inject: 'head'
  }),
]

but with the UglifyJsPlugin plugin, the scripts and links tags was not append on
loaders: [
  new HtmlWebpackPlugin({
    template: 'html!./client/index.html',
    inject: 'head'
  }),
  new webpack.optimize.UglifyJsPlugin({
    comments: '',
    compressor: {
      warnings: false,
      screw_ie8: true,
    },
  })
]

Try to add UglifyJsPlugin on html-loader exemple, you will see the issue

@ghislainf I've found a workaround for this problem. See #128.

I found that with multiple instances of the HtmlWebpackPlugin my wepack-dev-server doesn't rebuild. It outputs webpack: bundle is now INVALID and then hangs forever.
I'd love to give more info for debugging but I don't know where to start - there's no output at all, and I can't find a way to get the dev server to give me more info.

I'm getting some warnings from bluebird when running tests. Doesn't make any difference, but it might be some subtle breakage?
Warning: a promise was created in a  handler but was not returned from it
    at processImmediate [as _immediateCallback] (timers.js:383:17)

Call stack is useless because of no async in IntelliJ...

Some positive feedback. Works like a charm. Even with multiple favicons and manifest configurations inside the template.
In the documentation you should add that the html loader is used when it is already defined in the loaders section or you get a module.exports wrapped template back.

How do we do a custom favicon path now? I'm using 2.1.0. I see favicon is removed from the default template. I have this defined:
new HtmlWebpackPlugin({
    template: "app/index.html",
    favicon: "app/favicon.png"
})

If I don't define an injection point for favicon in my template, it's pulling in the right file, and still injects:
<link rel="shortcut icon" href="favicon.png">
If I do define an injection point, such as:
<link rel="shortcut icon" href=/<%= htmlWebpackPlugin.options.favicon %>>
I get both of these:
<link rel="shortcut icon" href="favicon.png">
<link rel="shortcut icon" href="/app/favicon.png">
I would like to end up with the icon at root:
<link rel="shortcut icon" href="/favicon.png">

How do we do a custom favicon path now?

Relative path from the template works for us (not using favicon option).

Make sure you have added link:href attrs to your html-loader configuration. See the example:
{
  test: /\.html$/,
  loader: 'html',
  query: {
    attrs: ['link:href']
  }
},

Should also be added to the documentation ;)

@SimenB do you mean like below, with a custom key name?
new HtmlWebpackPlugin({
    template: "app/index.html",
    xxx: "favicon.png"
})

<link rel="shortcut icon" href=/<%= htmlWebpackPlugin.options.xxx %>>
The result is what I would expect:
<link rel="shortcut icon" href="/favicon.png">
But previously with the favicon key, the favicon file gets copied over. With a custom key, it doesn't.

Just
new HtmlWebpackPlugin({
    template: "app/index.html"
})

and the link tag as
<link rel="shortcut icon" href="./path/to/favicon.ico">

@SimenB thanks for getting back. With your code, it's just hard coding to a predetermined path, no? I suppose we would use it with the file-loader to move the favicon.

Yup, that's right. I prefer having it in code and not in configuration, anyways :smile:
You could always use a resolve.alias if you prefer that. In my exp, the favicon option is unecesarry if you provide your own template in version 2

Does template loader support query syntax? For example
new HtmlWebpackPlugin({
    template: "myloader?hello=world!./app/index.html"
})

I tried and it seem not work.

@jantimon 2.6.0, getting the following error when I require(html-webpack-plugin). Maybe related to @rayshan's comment above?
Error: Cannot find module './lib/compiler.js'
    at Function.Module._resolveFilename (module.js:337:15)
    at Function.Module._load (module.js:287:25)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/Users/a2517/sites/personal/github/react-boilerplate/node_modules/html-webpack-plugin/index.js:7:21)
    at Module._compile (module.js:425:26)
    at Object.Module._extensions..js (module.js:432:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/Users/a2517/sites/personal/github/react-boilerplate/webpack/makewebpackconfig.js:6:25)
    at Module._compile (module.js:425:26)
    at Object.Module._extensions..js (module.js:432:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)

The important part:
html-webpack-plugin/index.js:7:21

@mxstbr thanks for your feedback #164 was just fixed with https://github.com/ampedandwired/html-webpack-plugin/commit/c6cb00c4fe350f1573b35449e7bdffe994e2ea01

@jantimon You can include the whole lib-directory to avoid the problem in teh future :smile:

@SimenB Good point :+1: will do :)

Created a PR for it

I've been trying to grok the samples and this PR's code, but haven't made it yet. I want to transform this: <link rel="apple-touch-icon" href="/img/favicon.png" /> into <link rel="apple-touch-icon" href="/2de345f67ff65a43.png" /> where the alpha-numeric string is the webpack-compiled name. Since the html page is not using JS, I can't just do require('./img/favicon.png'), so how would I do it? An ico is not enough nowadays.

@haf, you can use something like html-loader or underscore-template-loader for this. When you have this installed, you can just use a <link href="x.png"> and it will automatically compile it and change the url to the correct path.

@SpaceK33z concidering backwards compatibility and stability of underscore-template-loader - is there any reason why we should not use underscore-template-loader as default loader for this plugin?

@jantimon, I don't think there's a good reason not to use it. It's lightweight and I think stable enough. Using it as default loader would certainly be interesting!

get some error when i run webpack;
rubyless@Mac ~/jobs/html-webpack-plugin/examples/jade-loader ±26c8725⚡ » webpack
Hash: 8fa1534d971ffd522008
Version: webpack 1.12.2
Time: 919ms
Asset       Size  Chunks             Chunk Names
0714810ae3fb211173e2964249507195.png    54.1 kB          [emitted]
bundle.js    21.6 kB       0  [emitted]  main
favicon.ico  766 bytes          [emitted]
index.html    2.18 kB          [emitted]
[0] ./example.js 280 bytes {0} [built]
+ 8 hidden modules
ERROR in   Error: Parameter 'dependency' must be a Dependency

Compilation.js:347 Compilation.process [as _addModuleChain]
[lib]/[webpack]/lib/Compilation.js:347:9

Compilation.js:423 Compilation.process [as addEntry]
[lib]/[webpack]/lib/Compilation.js:423:7

SingleEntryPlugin.js:22 SingleEntryPlugin.
[html-webpack-plugin]/[webpack]/lib/SingleEntryPlugin.js:22:15

Tapable.js:107 Compiler.applyPluginsParallel
[lib]/[webpack]/[tapable]/lib/Tapable.js:107:14

Compiler.js:394 Compiler.compile
[lib]/[webpack]/lib/Compiler.js:394:7

Compiler.js:203 Compiler.runAsChild
[lib]/[webpack]/lib/Compiler.js:203:7

compiler.js:56
/Users/rubyless/jobs/html-webpack-plugin/lib/compiler.js:56:19

debuggability.js:180 Promise._execute
[html-webpack-plugin]/[bluebird]/js/release/debuggability.js:180:9

promise.js:460 Promise._resolveFromExecutor
[html-webpack-plugin]/[bluebird]/js/release/promise.js:460:18

promise.js:76 new Promise
[html-webpack-plugin]/[bluebird]/js/release/promise.js:76:14

compiler.js:55 Object.compileTemplate
/Users/rubyless/jobs/html-webpack-plugin/lib/compiler.js:55:10

index.js:47
/Users/rubyless/jobs/html-webpack-plugin/index.js:47:28

util.js:11 tryCatcher
[html-webpack-plugin]/[bluebird]/js/release/util.js:11:23

promise.js:489 Promise._settlePromiseFromHandler
[html-webpack-plugin]/[bluebird]/js/release/promise.js:489:31

promise.js:546 Promise._settlePromise
[html-webpack-plugin]/[bluebird]/js/release/promise.js:546:18

promise.js:583 Promise._settlePromiseCtx
[html-webpack-plugin]/[bluebird]/js/release/promise.js:583:10

async.js:130 Async._drainQueue
[html-webpack-plugin]/[bluebird]/js/release/async.js:130:12

async.js:135 Async._drainQueues
[html-webpack-plugin]/[bluebird]/js/release/async.js:135:10

async.js:16 Immediate.Async.drainQueues [as _onImmediate]
[html-webpack-plugin]/[bluebird]/js/release/async.js:16:14

ERROR in ./main.css
Module build failed: Error: Parameter 'dependency' must be a Dependency
at Compilation.process [as _addModuleChain] (/Users/rubyless/.nvm/versions/node/v4.2.0/lib/node_modules/webpack/lib/Compilation.js:347:9)
at Compilation.process [as addEntry] (/Users/rubyless/.nvm/versions/node/v4.2.0/lib/node_modules/webpack/lib/Compilation.js:423:7)
at SingleEntryPlugin. (/Users/rubyless/jobs/html-webpack-plugin/node_modules/webpack/lib/SingleEntryPlugin.js:22:15)
at Compiler.applyPluginsParallel (/Users/rubyless/.nvm/versions/node/v4.2.0/lib/node_modules/webpack/node_modules/tapable/lib/Tapable.js:107:14)
at Compiler.compile (/Users/rubyless/.nvm/versions/node/v4.2.0/lib/node_modules/webpack/lib/Compiler.js:394:7)
at Compiler.runAsChild (/Users/rubyless/.nvm/versions/node/v4.2.0/lib/node_modules/webpack/lib/Compiler.js:203:7)
at Object.module.exports.pitch (/Users/rubyless/jobs/html-webpack-plugin/node_modules/extract-text-webpack-plugin/loader.js:81:18)

Thanks @rubyless - could you please move this into an issue?

I am about to release 2.x - do you see any open points which should be addressed first?

@jantimon do it!

Yay!
I'm on the bus on my way to work now, so I'll see if it's still a problem with the latest version


Removed defer + replaced RWMutex with Mutex

Same issue with defer here. Also, replaced RWMutex with Mutex since every thread is a writer and there is no reader (except for when acquiring length), and RWMutex overhead is more than Mutex for this scenario. Maybe, replace this with a lock-free data structure down the road?

Yes, I would absolutely like to replace this with something lockfree.
I am somewhat disappointed in the ecosystem around go for this kind of structures. most seems to focus around locks.
One of the few things I miss from the .NET ecosystems is that the Concurrent collections was very nicely designed.

I agree, I checked around to see whether there is an option available to meet the requirements of the GAM's unbounded mailbox, but could not find anything useful. What datastructure were you using in .NET to support this?  maybe I can take a look into that and see whether I can port it to go.


Remove -77

PR Details
Changing -77 to 77
Description
XAML always spammed errors during usage continously that negative values are invalid
Motivation and Context
Nobody knows why its negative and there was no answer for it and the menuitems are the same as before, just not a spam of bind exceptions
Types of changes

[ ] Docs change / refactoring / dependency upgrade
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist

[ ] My change requires a change to the documentation.
[ ] I have added tests to cover my changes.
[x] All new and existing tests passed.
[x] I have built and run the editor to try this change out.

From what I see this code was trying to set MaxWidth to be ActualWidth - 77. Not sure what would trigger the MaxWidth to cause clipping the width value (maybe higher resolution screen?), but I don't think changing the value to positive would be correct.
SumNum performs addition on two doubles. Maybe we need SubNum which will do subtraction?

Yeah it could have been a DPI issue (we had quite a lot of them in the past, but I think some were fixed in WPF in later versions). I'll try to find the original commit.


Esc to close Color Picker Editor (on top of Alt-F4)

📝 Provide a description of the new feature
It would be useful to be able to close the colour picker editor with the escape key - sometimes I just want it in my clipboard, sometimes I want the editor and being able to quickly tap escape to close the editor would be fab

If you'd like to see this feature implemented, add a 👍 reaction to this post.

you can just hit Alt-F4 like any app but valid

This plus an option to have a modifier key like [Shift]+Click to open the editor in the first place and otherwise a normal click just sends the colour value to the clip board.

you can just hit Alt-F4 like any app but valid

Lenovo decided to build volume/brightness controls into the the function row on my ThinkPad so Alt+F4 turns into Fn+Alt+F4, and for that amount of finger gymnastics I might as well just click the close button. I know it's a niche issue, but it would just be a nice quick time saver for those of us who dip in and out of colour picker multiple times a day to just close it with a single and lightning quick key tap.

Looks like @BenConstable9 is working on it!

This has been resolved in the 0.35 release. https://github.com/microsoft/PowerToys/releases/latest


Create an intro

Add an intro about yourself: who are you, what is your strength, why are you here.

Introduction about me added


Fixed error caused by trying to strip whitespace from a Fixnum

https://trello.com/c/5XtoPARb

 (3) Figure out if i4a checks active member properly (if not active, then put in non-member)

:+1:


web版本的管理控制台是否能设置登陆密码，如果可以设置，怎么配置？

dashboard doesn't have any authorization mechanism. if you need it, maybe you can put an nginx in front of codis dashboard with basic auth.

thanks


Fix panic in GetUserMemosStats when memo is deleted" -m "The GetUserM…

Description
The GetUserMemosStats function panics with a nil pointer dereference error when a memo is deleted and the Telegram bot tries to update the user's memo stats. This happens because the function assumes that all memos in the memos slice are non-nil.
Solution
To fix this issue, a check is added to skip processing nil memos. If a memo is nil (indicating it has been deleted), the function continues with the next memo without causing a panic.
This fix prevents the panic error and ensures that the GetUserMemosStats function handles deleted memos gracefully when called by the Telegram bot or any other client.
Additional Info
The panic error occurs specifically when the Telegram bot tries to update the user's memo stats after a memo is deleted. This fix addresses that particular scenario and prevents the bot from crashing.

The Telegram bot tries to update the user's memo stats

Maybe it has been fixed with https://github.com/usememos/memos/commit/ed1954c58cab12da799f90d3fe5ab91649206ce8


Farmer coin is missing

Hey I tested pool with a single farmer, and my farmer had mined two blocks but both of them did not claim farmer coin(0.25 txch). But pool claimed pool coin and distributed it to farmer

Did you check the target rewards address in the config file? The 0.25XCH reward works exactly the same as before.

I used gui and did not change anything in config.yaml. And I can get rewards from pool, so I think config file is fine

do you have multiple keys?

Yes, I have two keys

it might be in the other key then. 0.25XCH is paid out to farmer.xch_target_address in the config

Closing since this is not an issue

@mariano54 No  it is an issue, 0.25 xch is not found in any of my keys.


Oh wait, I should be one 🚢  this one. 😅

and nit (not need to amend) but for shorthanded messages, commit can be docs(readme): .... instead of listing up all. No big deal now.


Support Fluentd in_tail plugin

Is your feature request related to a problem? Please describe.
In order to meet our organization's requirements, we need to utilize Fluentd only mode in Fluent-operator, similar to our current usage of Fluentbit only mode. However, there are certain essential Fluentd inputs that are currently unavailable to accomplish this transition. One such crucial input that is missing is the systemd input
Describe the solution you'd like
We are requesting the inclusion of Fluentd Systemd Input support within the fluent-operator. Since we have already introduced support for the Fluentd tail plugin in the fluent-operator, we would like to extend similar support for Systemd as well.
Additional context
No response

Now the fluentd controller will only create a fluentd statefulset for now, it's only applicable to receive logs from network.
For systemd input, maybe you'll need a daemonset

yes, I observed we have already enhancement task for that https://github.com/fluent/fluent-operator/issues/755 . I will be sharing PR for this soon.


Cypress/E2E: fix textbox due to ATE

Summary
[to follow]

fix textbox due to ATE

Release Note
NONE

/e2e-test

Successfully triggered e2e testing!
https://git.internal.mattermost.com/qa/cypress-ui-automation/-/pipelines/216005

/e2e-test

Successfully triggered e2e testing!
https://git.internal.mattermost.com/qa/cypress-ui-automation/-/pipelines/216021

Successfully triggered e2e testing!
https://git.internal.mattermost.com/qa/cypress-ui-automation/-/pipelines/216059

/e2e-test

Change reviewer to Cass since FM is having issue with internet provider.


Remove filter on root node to enable row groups

Tables with row groupings currently display but do not emit change events due to a filter removing any event coming from a cell not a direct child of the root node.  Removing filter enables these change events.  (Unclear why filter was in place)

Thanks!


Travis false positives

@tryggvib @rgrp
A question:
Seeing as OK is using Travis regularly, are false positives a common occurrence?
eg: https://travis-ci.org/okfn/tabular-validator/builds/52039531
I'm seeing a false positive test failure every 5-10 pushes, always due to network issues (connection to http resources like CSVs in tests, and dependencies via pip).
As you know, I'm also running the same tests on Shippable, and I just don't have this happen, ever.
It is not a big problem, but I'd like to know if it is something you see as Travis users, and/or, if there is some way I can get travis to retry if it has network errors.

I've seen them occur quite often and feel it's irritating to have to go into the Travis environment to restart the build. It hasn't irritated me enough to investigate whether I can trigger retries.

Ok, thanks. Good to know that it is something that generally happens on Travis, as I pretty much stopped using it ~ 1 1/2 years ago. So, I'll just continue to ignore false positives for the time being and let things sort out on subsequent pushes.


jest-cucumber : Feature file not found () error

I have a feature file , named as consoleLogger.feature.
and consoleLogger.steps.js which contains the below code ,
import { defineFeature, loadFeature } from 'jest-cucumber';
const consoleLogger = require('../src/Util/consoleLogger');
const feature = loadFeature('../feature/consoleLogger.feature');
I am trying to connect feature file with step file using loadFeature but getting the below error ,
FAIL steps/consoleLogger.steps.js ● Test suite failed to run
Feature file not found (C:\Users\sr00015\NewWorkspace\feature\consoleLogger.feature)
folder structure

I had the same error.
You must specify the path from the root directory.
Example: ./feature/consoleLogger.feature

I had the same error.
I must use a relative path，Please repair it as soon as possible

add the option "{loadRelativePath: true}"


Update CODEOWNERS

Adding my name to measurement electronics

Hi @ruchik-mahesh,
i see this new Pullrequest with the changes. The name of the account is now ok.
Typically you would keep the original Pullrequest and add the changes there. The benefit is, that then you get for each Pull Request a discussion with changes regarding one topic.
E.g. it can be seen, that the name was changed from name-testing to name. So in the future the changes can be comprehended. (Or someone else can see how and why something was done.)
Link to original PR: #22


Turn -fpermissive errors into warnings while building clang

I've filled an LLVM build system bug: https://bugs.llvm.org/show_bug.cgi?id=38512

This was fixed in llvm 10 hours ago: https://github.com/llvm-mirror/llvm/commit/2c938a6f65d6dacdc8576ccc031b6d7b68eeb5cc
Could you try again without this patch? If it still fails I'll reopen this PR.


Provide translated strings

After #16 is working with English strings, we need translated strings for other languages.

Still useful.


EOS-14739:fs_free_seg, fs_free_disk is not reducing after a huge s3 IOs

The changes in this PR are for two issues :

The original one as reported in JIRA ticket :
In this, hax service had got stopped upon getting HAConsistencyException while trying to access Consul KV in function get_conf_obj_status. This had happened when the consul had lost the leader and new leader election again had happened. So, in this PR the decorator has been put for get_conf_obj_status to make retries forever.

The issue which I had seen during attempts to repro, and mentioned in the JIRA ticket comments (failure which had occurred during access to consul catalog) :
Similar to above, the decorator has been put around function "_ensure_motr_all_started".

The testing for this issue has been done by killing the consul process and checking that the retries are being made and recovery is successful and hax / fs-stats-updater doesn't get stopped.
The Jenkins build is passed for this PR branch changes :
http://eos-jenkins.colo.seagate.com/job/GitHub-custom-ci-builds/job/centos-7.8/job/cortx-custom-ci/142/
RPM used for testing on hardware :
http://cortx-storage.colo.seagate.com/releases/cortx/github/integration-custom-ci/release/centos-7.8.2003/custom-build-142

@suvratjoshi, fstatsupdater in hax updates Consul every 5 secs and HAConsistencyException is absorbed. So even if hax is not able to update the Consul the update will happen in net iteration.
Question is why the Consul failed here and had to re-elect the leader? I think confd failed. Why the confd failed any idea?
Also, It would be good if you re-format the commit message as follows,
if there's no jira ticket,
Problem: <summary>

else
EOS-<ticket#>: Summary of the problem

<Brief  description of the problem.>
Solution:
<description> of the solution.

@knekrasov, I think I understand what you are talking about, the HAConsistency exception is handled inside if loop in while, only for self.consul.update_fs_stats(data) call and not outside it. So if the call to _ensure_motr_all_started() fails which is outside the while and if loop then the fsStatsUpdater may bail out.
But then the same problem can be seen for _ioservices_running() too, if so then that also needs to be handled, no?

@mssawant Hm, it seems like yes, you're right. Good catch!


Unable to specify username, sessionname or sessionid

The actual QUser command allows this format:
QUERY USER [username | sessionname | sessionid] [/SERVER:servername]
The username option of this in particular is quite useful to find where a particular user is logged in to on an RDP Farm or when you have had a lot of RDP sessions and your connection drops so you want to find all the places you were connected to again.  Perhaps extra parameters like -UserName, -SessionName and -SessionId could be added (though these should be mutually exclusive) or just a single parameter to pass through to QUser which itself does not distinguish between the 3 - but choosing a name for that could be tricky!

If you check my pull request I have added support for this

Nice, thanks. Taking a look.

Honored to approve your first PR; just waiting for the checks to complete. Thanks for the assist. 😁


please assist with error getting on pub400

Type: Bug
CPF2207: Not authorized to use object ILEDITOR in library QSYS type *LIB.
CPF3052: Description for file O_QGLBDWJX not available.
VS Code version: Code 1.76.0 (92da9481c0904c6adfe372c12da3b7748d74bdcb, 2023-03-01T10:22:44.506Z)
OS version: Windows_NT x64 10.0.19044
Modes:
Sandboxed: No

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz (4 x 2808)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_renderer: enabled_onvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: disabled_off

Load (avg)
undefined

Memory (System)
19.86GB (5.76GB free)

Process Argv
--crash-reporter-id 379d7c05-57d3-4531-ac8b-5436206f4664

Screen Reader
no

VM
0%

Extensions (3)

Extension
Author (truncated)
Version

ibmi-languages
bar
0.6.10

code-for-ibmi
hal
1.7.11

vscode-ibmi-walkthroughs
hal
0.3.1

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
vscaat:30438848
vsclangdf:30486550
c4g48928:30535728
dsvsc012:30540252
azure-dev_surveyone:30548225
vsccc:30610678
pyindex848:30662994
nodejswelcome1cf:30587006
3biah626:30602489
pyind779:30671433
89544117:30613380
pythonsymbol12:30671437
pythonb192:30669360
funwalk2:30676043

/causedByExtension
This doesn't look like an issue with VS Code editor itself therefore should be reported in corresponding extensions repo. This is issue tracker for editor itself.
Something similar mentioned here https://github.com/halcyon-tech/vscode-ibmi/issues/1128

This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines. If you don't know which extension is causing the problem, you can run Help: Start extension bisect from the command palette (F1) to help identify the problem extension.
Happy Coding!

Change your connection settings based on your PUB400 user.
You should have been assigned 2 personal libraries.
Following is screenshot of my settings. Possible that you need to remove /tmp add the end for Temporary IFS if not created.


1.21 Whitelist composter when placing plants in it.

Composter has a weird bug that would not let me spam when holding right mouse button. I could only do every click.

@makumaku1974 This has been fixed in v1.3.0 for 1.21.3/1.21.4. If you need a copy for 1.21.1 I can provide that, just let me know here.


System Setting Detection for Dark/Light Theme in SQLPage

Overview
Hi, I was wondering if it would be possible to enhance the SQLPage application by adding a feature that detects the user's system theme settings (dark or light mode) and provides an option for the user to set the app's theme accordingly.
Some info.

That could be nice. Would have to be implemented in tabler, not SQLPage, though.

It might be related to https://github.com/tabler/tabler/issues/1378


allow to disable DevMenu using new method isSecondaryClickToShowDevMenuEnabled

Please select one of the following

[ ] I am removing an existing difference between facebook/react-native and microsoft/react-native-macos :thumbsup:
[ ] I am cherry-picking a change from Facebook's react-native into microsoft/react-native-macos :thumbsup:
[X] I am making a fix / change for the macOS implementation of react-native
[ ] I am making a change required for Microsoft usage of react-native

Summary
This change allows developers to disable the DevMenu (context menu in macOS case) by reusing currently exported isShakeToShowDevMenuEnabled available on iOS addding new setIsSecondaryClickToShowDevMenuEnabled  method to the DevSettings:
NativeModules.DevSettings.setIsSecondaryClickToShowDevMenuEnabled(false);

This also improves quite a bit the development process when using Contextual Menus (aka ActionSheetIOS).
Of course I can implement separate, exclusive for macOS, flag if you think it's a better approach.
Also adding [devSettings isDevModeEnabled] like in showOnShake fixed for me DevMenu appearing on the Release build.
Changelog

[macOS] [Added] - add ability to disable DevMenu based on new setIsSecondaryClickToShowDevMenuEnabled method in DevSettings
[macOS] [Fixed] - disable DevMenu when isDevModeEnabled returns false
Test Plan
I have tested the change inside my workbench/sample app, which source code is available here.

Microsoft Reviewers: Open in CodeFlow

Hi @Simek : Just FYI I've been on vacation and will be on vacation for another week.   Thanks for the contribution.   This is great, but I do think it should have its own DevSetting instead of reusing isShakeToShowDevMenuEnabled.   Perhaps isSecondaryClickToShowDevMenuEnabled.

@tom-un Thank you for the review Tom, I have updated the PR according to the request - there is an macOS exclusive method named isSecondaryClickToShowDevMenuEnabled now and I have tried to add correct macOS merge comments too.
Let me know if it's okay or should I update or change anything else. 🙂

@tom-un For my understanding, why would it be preferable to add another setting instead of perhaps renaming the existing one, or adding a new generic one and deprecate the existing ‘shake’ one?

@tom-un For my understanding, why would it be preferable to add another setting instead of perhaps renaming the existing one, or adding a new generic one and deprecate the existing ‘shake’ one?

I just feel its cleaner to have prop names that mean what they say.   Also there could be shake gesture on mac in the future (there already is via Catalyst) or there could be a secondary click gesture in a future iOS.

I just feel its cleaner to have prop names that mean what they say.

Totally agreed, but I also like to have less API surface for ease of discovery. However…

Also there could be shake gesture on mac in the future (there already is via Catalyst) or there could be a secondary click gesture in a future iOS.

…I didn’t consider the real possibility of having multiple ways to to open the menu. Although that thinking also makes me wonder if it shouldn’t be an enum?
Anyways, something to consider longer term, I don’t feel strong about it for this PR.

Should I update this PR to 0.62 files structure or should I target the 0.61-stable branch instead?

Update to the 0.62 structure, which is now in master, please 🙏

Update to the 0.62 structure, which is now in master, please 🙏

Not a problem @alloy, I will work on the changes this week 🙂

@alloy Should I force push the branch again to rerun the ci/circleci: test_js? It looks like this failure is not related to the changes in this PR.

@alloy Should I force push the branch again to rerun the ci/circleci: test_js? It looks like this failure is not related to the changes in this PR.

I tried forcing it to re-run and it failed again.   I'm not sure why.   As a branch of the upstream react-native we get these circleci tests too.   They're mostly redundant as we do all the same jest, lint, flow and format-check tests in Azure DevOps.   I'll force merge this PR and watch for failures in other PRs.
Thanks!

@alloy Should I force push the branch again to rerun the ci/circleci: test_js? It looks like this failure is not related to the changes in this PR.

I tried forcing it to re-run and it failed again. I'm not sure why. As a branch of the upstream react-native we get these circleci tests too. They're mostly redundant as we do all the same jest, lint, flow and format-check tests in Azure DevOps. I'll force merge this PR and watch for failures in other PRs.
Thanks!

Late here but they're really flaky. I wouldn't go off of the circle CI tests at all as long as our ADO tests pass.

@Simek Thanks again for your work! 🙌


get_targets('host1', 'host2', 'hostred', 'hostblue') no longer works

Describe the Change You Would Like
In Writing plans in the Puppet language, section Creating target objects, the example $target_list = get_targets('host1', 'host2', 'hostred', 'hostblue') no longer works. It gives this error:
{
  "kind": "bolt/pal-error",
  "msg": "'get_targets' expects 1 argument, got 4",
  "details": {
    "file": "<path>/<module>/plans/plan.pp",
    "line": <n>,
    "column": <n>
  }
}

@GMZwinge The get_targets function expects a TargetSpec. This can be either a String, a Target, or an Array[TargetSpec]. You can wrap those target names in an array, and the function will work.
$target_list = get_targets(['host1', 'host2', 'hostred', 'hostblue'])

https://puppet.com/docs/bolt/latest/plan_functions.html#get-targets

@GMZwinge The get_targets function expects a TargetSpec. This can be either a String, a Target, or an Array[TargetSpec]. You can wrap those target names in an array, and the function will work.
$target_list = get_targets(['host1', 'host2', 'hostred', 'hostblue'])

https://puppet.com/docs/bolt/latest/plan_functions.html#get-targets


ui component

https://primevue.org/setup/
https://v2.vuetifyjs.com/en/
varlet

https://github.com/ionic-team/ionic-framework/issues/28665


introducing pluggable reporters

Proposal of the solution for issue #53.
The idea is that we introduce a simple abstraction for reporting offset info (OffsetInfoReporter trait) without changing anything in the actual behavior.
In case some additional implementations of OffsetInfoReporter are found, the app will instantiate them and use the same way as default sqllite reporter. Passing arguments was a bit tricky and I choose to keep it simple. (All arguments for all plugins are passed in one additional argument : pluginsArgs)
We have also an example plugin using this solution and reporting offset info to graphite: https://github.com/rzukow/kafka-offset-monitor-graphite-reporter
What do you think? Is it possible to introduce something similar so we could plug in our graphite support?

Hi @rzukow,
this is great!
can you send me a signed contributor agreement (see readme) and then I can merge the PR?
Thanks

it's looking good. Could you add a note in the readme on how to write a plugin or pointing to your example graphite plugin?

Done & Done

nice, thanks!


Figure out a way to collect a load of data. Perhaps a python scraper? Store as JSON?

In the end, decided on manually populating JSON as scrapers break sites TOC


message response time is wrong

steps

login using your account
send a message to someone
check the sending date

actual result

Expected result
about 2 hours ago should be just now

fixed


fix: bump nextflow version to 22.04.1

Issue #, if available:
#387
Description of Changes
Bump Nextflow to the latest version as of the time of this writing (22.04.1)
Description of how you validated changes
Checklist

[ ] If this change would make any existing documentation invalid, I have included those updates within this PR
[ ] I have added unit tests that prove my fix is effective or that my feature works
[x] I have linted my code before raising the PR
[x] Title of this Pull Request follows Conventional Commits standard: https://www.conventionalcommits.org/en/v1.0.0/

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

Any updates on this? nf-core requires newer nextflow version, and its really annoying for customers to have to find a revision with the older version etc.

Would love to see this merged if possible; it's a blocker for us as well.


fix: use NamedModuleIdsPlugin for production

this fixes an issue with webpack 5, where computed hash values
do not work any more with importComponents.
this fix is meant as a temporary fix, which can get removed after
we found the root cause in webpack 5.
This pull request closes issue # (put the issue number here)

Current state

Changes introduced here

Checklist

[ ] All commit messages adhere to the appropriate format in order to trigger a correct release
[ ] All code is written in untranspiled ECMAScript (ES 2017) and is formatted using prettier
[ ] Necessary unit tests are added in order to ensure correct behavior
[ ] Documentation has been added

Bors merge bot cheat sheet
We are using bors-ng to automate merging of our pull requests. The following table provides a summary of commands that are available to reviewers (members of this repository with push access) and delegates (in case of bors delegate+ or bors delegate=[list]).

Syntax
Description

bors merge
Run the test suite and push to master if it passes. Short for "reviewed: looks good."

bors merge-
Cancel an r+, r=, merge, or merge=

bors try
Run the test suite without pushing to master.

bors try-
Cancel a try

bors delegate+
Allow the pull request author to merge their changes.

bors delegate=[list]
Allow the listed users to r+ this pull request's changes.

bors retry
Run the previous command a second time.

This is a short collection of opinionated commands. For a full list of the commands read the bors reference.

side effect: the build gets larger, as the referenced filenames are longer

superceded by https://github.com/xing/hops/pull/1976


Windows/Mac support

desktop application can run on Windows without any change.

https://www.electron.build/multi-platform-build

https://github.com/ihiroky/live-comment/pull/37

https://github.com/ihiroky/live-comment/pull/62


Intel Power Gadget Alternative for Apple Silicon Chips

CodeCarbon version: 2.3.1
Python version: 3.9.19
Operating System: MacOS X

Description
Test intel power gadget is not passing on Apple M1/M2 (Silicon) Processors. It is not possible to install Intel Power Gagdet there (moreover it will be deprecated soon cf #457)
What I Did
I found an alternative to check power consumption on Apple Silicon here :  MX Power Gadget. I tested the app on my mac and it works well.
Suggestion
I can easily detect wether the processor is from Apple :
print(subprocess.check_output(["sysctl", '-n', 'machdep.cpu.brand_string']).decode('utf-8'))

>>> 'Apple M1\n'

Now all I need to find out is how to retrieve power consumption information
Two options :

Use powermetrics, a native macos utility
Use asitop built on top of powermetrics that is implemented in python

I will start exploring option 2

I have spend quite some time, it seems that we can get all the info we need using powermetrics but the problem is that powermetric needs sudo rights, and asitop is built on top of powermetrics, so same problem.
There is no command line associated to MX Power Gadget  so no way to use it the same way as Intel Power Gadget.
I have read here that there is actually no known alternatives :
https://www.green-coding.berlin/blog/power-measurement-on-macos/

Only solution I have for now is :
sudo visudo and add
username ALL = (root) NOPASSWD: /usr/bin/powermetrics

which allows username to use powermetrics without prompting password

Hey @LuisBlanche thanks for this!
Indeed there is no way right now to measure Apple M1/M2 performances. Feel free to give it a try!
About the need for sudo, we have a similar issue with Linux and RAPL (https://github.com/mlco2/codecarbon/issues/244).
For the case of M1/M2 and powermetrics, maybe there is a way to know specifically which classes/files need sudo permissions and give only to those?

@inimaz  powermetrics is not open source so there is no way to access a lower level of permissions. The only way I found for now is giving it sudo permission. I've spent some time looking for other solutions but it seems that there is no other solution that does not necessitate administrative rights

It may be the same security reason but it's a shame that in 2023 we need to be root to get hardware consumption... Low level API could send aggregated energy data to avoid security risk.

Hi
I am on MacBook m2 pro 16'', my goal is to store the codecarbon logs in emission.csv and then use it with Dash App to have a dashboard regarding carbon emissions. But in my case codecarbon is outputting the logs in a file called powermetrics_log.txt, how can I visualize it on a dashboard (private)?
I'm following this portion of the documentation: codecarbon/visualize.html
Specs of my MacBook:
  Model Name:	MacBook Pro
  Model Identifier:	Mac14,10
  Chip:	Apple M2 Pro
  Total Number of Cores:	12 (8 performance and 4 efficiency)
  Memory:	16 GB


SQL EXPRESS NOT CONNECTING

We have written the needed data into your clipboard because it was too large to send. Please paste.

Closing this bug as it is a duplicate of #15840


Add Login Page

Is your feature request related to a problem? Please describe.
Common feature when creating apps is to make user login before continuing to all/any app features
Describe the solution you'd like
An optional login feature that would add a login template (custom/google/facebook/github) and where user is navigated to login page if not logged in. Login data could be stored to secure storage by default
Describe alternatives you've considered
Additional context

It's a great suggestion.
It's also a very broad suggestion. It wi be necessary to refine exactly what should be output. It might also make sense to release this functionality in stages...

In my opinion the most simple login flow for app is simple check (in shell?) if user logged in and then either show the login screen or continue to main screen. Just store the login information to settings.
No real authentication is required. Just simples possible forced login,
Second, more complex possibility would use maybe google/apple/github login to the app, but not really that important in my opinion as it would be easy to add to the simple template.

What about a basic login page with view model that contains commands & properties for each button/input?
It's simple enough to make it, but if it came out of the box that'd be great.

Inputs

Email
Password

Buttons

Sign In
Sign Up
Forgot Password

View Model

Email : string
Password : string
Sign Up : ICommand
Sign In : ICommand
Forgot Password : ICommand

As a reference; Chat GPT gave me with for WPF:
<Window x:Class="YourNamespace.LoginWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:YourNamespace"
        Title="Login" Height="300" Width="400">
    <Window.DataContext>
        <local:LoginViewModel />
    </Window.DataContext>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <TextBlock Text="Email" Grid.Row="0" Margin="10" />
        <TextBox Text="{Binding Email}" Grid.Row="1" Margin="10" Width="200" />
        <TextBlock Text="Password" Grid.Row="2" Margin="10" />
        <PasswordBox Password="{Binding Password}" Grid.Row="3" Margin="10" Width="200" />
        <Button Content="Sign In" Command="{Binding SignInCommand}" Grid.Row="4" Margin="10" Width="100" />
        <Button Content="Sign Up" Command="{Binding SignUpCommand}" Grid.Row="4" Margin="10,0,120,0" Width="100" />
        <Button Content="Forgot Password" Command="{Binding ForgotPasswordCommand}" Grid.Row="4" Margin="10,0,230,0" Width="100" />
    </Grid>
</Window>

Creating the UI isn't a challenge. (You've seen that even ChatGPT can get most of the way there--can you see the errors in what's generated?)
The real challenge is in how it integrates with the rest of the generated app and also encourages best practices.
The first real challenge is in wanting to encourage developers towards industry best practices and recommendations. With that front of mind encouraging the direct entry of a password into a control where it can potentially be retrieved isn't desirable. And also not supporting any form of multi-factor authentication would be far from ideal.
Then I need to consider whether the app should enforce login before it's possible to access the rest of the app, or if the app can be used (in part or in full) when not logged in?
Should it be a full page that is used for capturing the details, or should it be in a popup? or something else?
And what about logging out? If adding a login mechanism, is an accompanying log-out option required too? If so, where should it go? and what should happen when logging out?
For all these scenarios, the "correct" answer will vary between applications.
Obviously, in an ideal world, I'd add options to support all the possible options but that's not going to happen.
What I really need is to determine which options will bring the most value to the most people and then implement them in that order. Any thoughts?
Additionally, if you think that an example page that shows something like the code snippet above (with VM or code-behind) would also be useful, that would be easy to add.

I believe that for demoing purposes the most simple login page would be suitable. On startup a login screen is shown and user can just type in any username / password without actual logic for checking password. Or if something more advanced then when user chooses to add login feature a username and password (one or more) can be created (not sure how to deal with this. Maybe creating sqlite database?)


gh actions: bump golang to 1.17

Signed-off-by: Francesco Romani<EMAIL_ADDRESS>

fixes: https://github.com/openshift-kni/debug-tools/runs/4561615430?check_suite_focus=true


SkiaImage>>scalex:y:keepAspectRatio:quality: add quality enum

The current method includes the quality argument, but it is ignored.

Fixed by: https://github.com/feenkcom/Bloc/commit/524d037c300ecaa96f83e5987cd436f06707009b


PhantomJS 1.9.7 i686, Linux <IP_ADDRESS>, SIGABRT Crash Report

I get a dump about every 500 executions. Here is the stack trace:
Operating system: Linux
                  0.0.0 Linux <IP_ADDRESS>-linode34 #1 SMP Tue Jun 21 10:29:24 EDT 2011 i686
CPU: x86
     GenuineIntel family 6 model 26 stepping 5
     8 CPUs

Crash reason:  SIGABRT
Crash address: 0x2256

Thread 0 (crashed)
 0  linux-gate.so + 0x416
    eip = 0xf57fe416   esp = 0xbf832544   ebp = 0xbf832550   ebx = 0x00002256
    esi = 0x0b422548   edi = 0xb75a5ff4   eax = 0x00000000   ecx = 0x00002256
    edx = 0x00000006   efl = 0x00000206
    Found by: given as instruction pointer in context
 1  libc-2.11.1.so + 0x2da81
    eip = 0xb747ea82   esp = 0xbf832558   ebp = 0xbf832678
    Found by: previous frame's frame pointer
 2  libstdc++.so.6.0.13 + 0xbf52e
    eip = 0xb76af52f   esp = 0xbf832680   ebp = 0xbf8326c8
    Found by: previous frame's frame pointer
 3  libstdc++.so.6.0.13 + 0xbd464
    eip = 0xb76ad465   esp = 0xbf8326d0   ebp = 0xbf8326e8
    Found by: previous frame's frame pointer
 4  libstdc++.so.6.0.13 + 0xbd4a1
    eip = 0xb76ad4a2   esp = 0xbf8326f0   ebp = 0xbf832708
    Found by: previous frame's frame pointer
 5  libstdc++.so.6.0.13 + 0xbe154
    eip = 0xb76ae155   esp = 0xbf832710   ebp = 0xbf832728
    Found by: previous frame's frame pointer
 6  phantomjs!QCoreApplication::postEvent [qcoreapplication.cpp : 1392 + 0x7]
    eip = 0x09afa75c   esp = 0xbf832730   ebp = 0xbf832788
    Found by: previous frame's frame pointer
 7  phantomjs!QCoreApplication::postEvent [qcoreapplication.cpp : 1304 + 0x19]
    eip = 0x09afa840   esp = 0xbf832790   ebp = 0xbf8327a8   ebx = 0x0a4f62bc
    esi = 0x0b426808   edi = 0x00000001
    Found by: call frame info
 8  phantomjs!QMetaMethod::invoke [qmetaobject.cpp : 1703 + 0x7a]
    eip = 0x09b0421a   esp = 0xbf8327b0   ebp = 0xbf8328d8   ebx = 0x0a4f62bc
    esi = 0x0b426808   edi = 0x00000001
    Found by: call frame info
 9  phantomjs!QMetaObject::invokeMethod [qmetaobject.cpp : 1179 + 0x10f]
    eip = 0x09b04efe   esp = 0xbf8328e0   ebp = 0xbf832be8   ebx = 0x0a4f62bc
    esi = 0x0000000f   edi = 0x00000000
    Found by: call frame info
10  phantomjs!QNetworkConfigurationManagerPrivate::enablePolling [qobjectdefs.h : 434 + 0xad]
    eip = 0x0994abae   esp = 0xbf832bf0   ebp = 0xbf832ce8   ebx = 0x0a4f62bc
    esi = 0x0b51fc70   edi = 0x0b51fc70
    Found by: call frame info
11  phantomjs!QNetworkConfigurationManager::QNetworkConfigurationManager [qnetworkconfigmanager.cpp : 243 + 0x7]
    eip = 0x09946de0   esp = 0xbf832cf0   ebp = 0xbf832d18   ebx = 0x0a4f62bc
    esi = 0x0b51fc70   edi = 0x0b52d860
    Found by: call frame info
12  phantomjs!WebCore::NetworkStateNotifierPrivate::NetworkStateNotifierPrivate [NetworkStateNotifierQt.cpp : 34 + 0x38]
    eip = 0x087c99f6   esp = 0xbf832d20   ebp = 0xbf832d48   ebx = 0x0a4f62bc
    esi = 0x0b52d860   edi = 0x0b50d650
    Found by: call frame info
13  phantomjs!WebCore::NetworkStateNotifier::NetworkStateNotifier [NetworkStateNotifierQt.cpp : 79 + 0x19]
    eip = 0x087c9ab1   esp = 0xbf832d50   ebp = 0xbf832d78   ebx = 0x0a4f62bc
    esi = 0xb67f91c0   edi = 0x0b50d650
    Found by: call frame info
14  phantomjs!WebCore::networkStateNotifier [NetworkStateNotifier.cpp : 37 + 0x7]
    eip = 0x085d7688   esp = 0xbf832d80   ebp = 0xbf832da8   ebx = 0x0a4f62bc
    esi = 0xb67f91c0   edi = 0x0a5186a8
    Found by: call frame info
15  phantomjs!WebCore::Page::Page [Page.cpp : 170 + 0x4]
    eip = 0x08561bcb   esp = 0xbf832db0   ebp = 0xbf832e88   ebx = 0x0a4f62bc
    esi = 0x0b41f0c4   edi = 0x00000000
    Found by: call frame info
16  phantomjs!QWebPagePrivate::QWebPagePrivate [qwebpage.cpp : 349 + 0x1c]
    eip = 0x080d696d   esp = 0xbf832e90   ebp = 0xbf832f18   ebx = 0x0a4f62bc
    esi = 0x0b41f018   edi = 0x0b420438
    Found by: call frame info
17  phantomjs!QWebPage::QWebPage [qwebpage.cpp : 1970 + 0x30]
    eip = 0x080d96c1   esp = 0xbf832f20   ebp = 0xbf832f48   ebx = 0x0a4f62bc
    esi = 0x0b420438   edi = 0x0b4226a0
    Found by: call frame info
18  phantomjs!WebPage::WebPage [webpage.cpp : 96 + 0xb]
    eip = 0x08059897   esp = 0xbf832f50   ebp = 0xbf832fd8   ebx = 0x0b4226a0
    esi = 0x0b421710   edi = 0x0b4276d4
    Found by: call frame info
19  phantomjs!Phantom::init [phantom.cpp : 102 + 0x4a]
    eip = 0x0804f7c7   esp = 0xbf832fe0   ebp = 0xbf833218   ebx = 0x0b421710
    esi = 0xbf833144   edi = 0x0b4276d4
    Found by: call frame info
20  phantomjs!Phantom::instance [phantom.cpp : 154 + 0x7]
    eip = 0x080512e0   esp = 0xbf833220   ebp = 0xbf833238   ebx = 0xbf8332e0
    esi = 0x0b4276a0   edi = 0xbf8332bc
    Found by: call frame info
21  phantomjs!main [main.cpp : 117 + 0x4]
    eip = 0x0806d9a6   esp = 0xbf833240   ebp = 0xbf8332f8   ebx = 0xbf8332e0
    esi = 0xbf833310   edi = 0xbf8332bc
    Found by: call frame info
22  libc-2.11.1.so + 0x16bd5
    eip = 0xb7467bd6   esp = 0xbf833310   ebp = 0xbf833388   ebx = 0xb75a5ff4
    esi = 0x00000000   edi = 0x00000000
    Found by: call frame info
23  phantomjs + 0x5930
    eip = 0x0804d931   esp = 0xbf833390   ebp = 0x00000000
    Found by: previous frame's frame pointer
24  phantomjs!_GLOBAL__I_main [main.cpp : 129 + 0x7]
    eip = 0x0806d780   esp = 0xbf833394   ebp = 0x00000000
    Found by: stack scanning
25  ld-2.11.1.so + 0xe07f
    eip = 0xb77ca080   esp = 0xbf8333a8   ebp = 0x00000000
    Found by: stack scanning
26  ld-2.11.1.so + 0x1c8f7
    eip = 0xb77d88f8   esp = 0xbf8333b0   ebp = 0x00000000
    Found by: stack scanning
27  linux-gate.so + 0x413
    eip = 0xf57fe414   esp = 0xbf833424   ebp = 0x00000000
    Found by: stack scanning
28  0xf57fdfff
    eip = 0xf57fe000   esp = 0xbf83342c   ebp = 0x00000000
    Found by: stack scanning
29  0xb77bbfff
    eip = 0xb77bc000   esp = 0xbf833464   ebp = 0x00000000
    Found by: stack scanning

Thread 1
 0  linux-gate.so + 0x416
    eip = 0xf57fe416   esp = 0xb70fe2dc   ebp = 0xb70fe368   ebx = 0x0a50b774
    esi = 0x00000000   edi = 0x00000001   eax = 0xfffffe00   ecx = 0x00000080
    edx = 0x00000001   efl = 0x00000206
    Found by: given as instruction pointer in context
 1  phantomjs!WTF::TCMalloc_PageHeap::runScavengerThread [FastMalloc.cpp : 1618 + 0xa]
    eip = 0x0812a961   esp = 0xb70fe370   ebp = 0xb70fe378
    Found by: previous frame's frame pointer
 2  libpthread-2.11.1.so + 0x596d
    eip = 0xb76ea96e   esp = 0xb70fe380   ebp = 0xb70fe478
    Found by: call frame info
 3  libc-2.11.1.so + 0xcd98d
    eip = 0xb751e98e   esp = 0xb70fe480   ebp = 0x00000000
    Found by: previous frame's frame pointer

Thread 2
 0  linux-gate.so + 0x416
    eip = 0xf57fe416   esp = 0xb67d4b48   ebp = 0x00000000   ebx = 0x0b41f370
    esi = 0x00000000   edi = 0x00000000   eax = 0xfffffe00   ecx = 0x00000000
    edx = 0x00000002   efl = 0x00000246
    Found by: given as instruction pointer in context
 1  libc-2.11.1.so + 0xc9c76
    eip = 0xb751ac77   esp = 0xb67d4b4c   ebp = 0x00000000
    Found by: stack scanning
 2  phantomjs!QMutexPrivate::wait [qmutex_unix.cpp : 99 + 0x39]
    eip = 0x099e9dac   esp = 0xb67d4b60   ebp = 0x00000000
    Found by: stack scanning
 3  phantomjs!QMutex::lock [qmutex.cpp : 164 + 0xf]
    eip = 0x099e5c3f   esp = 0xb67d4bd0   ebp = 0x00000000
    Found by: stack scanning
 4  phantomjs!QNetworkConfigurationManagerPrivate::startPolling [qmutex.h : 188 + 0x7]
    eip = 0x09948abd   esp = 0xb67d4bf0   ebp = 0x00000000
    Found by: stack scanning
 5  phantomjs!QNetworkConfigurationManagerPrivate::qt_static_metacall [moc_qnetworkconfigmanager_p.cpp : 85 + 0x7]
    eip = 0x099ab91a   esp = 0xb67d4c40   ebp = 0x00000000
    Found by: stack scanning
 6  phantomjs!QMetaCallEvent::placeMetaCall [qobject.cpp : 524 + 0x1b]
    eip = 0x09b0ace0   esp = 0xb67d4c70   ebp = 0x00000000
    Found by: stack scanning
 7  phantomjs!QObject::event [qobject.cpp : 1191 + 0xb]
    eip = 0x09b0b9b3   esp = 0xb67d4c90   ebp = 0x00000000
    Found by: stack scanning

Loaded modules:
0x08048000 - 0x0a505fff  phantomjs  ???  (main)
0xb7107000 - 0xb714ffff  libssl.so.0.9.8  ???
0xb7150000 - 0xb729dfff  libcrypto.so.0.9.8  ???
0xb72a8000 - 0xb72aafff  6d41288fd70b0be22e8c3a91e032eec0-le32d4.cache-3  ???
0xb72ab000 - 0xb72e9fff  LC_CTYPE  ???
0xb72ea000 - 0xb72eafff  LC_NUMERIC  ???
0xb72eb000 - 0xb72ebfff  LC_TIME  ???
0xb72ec000 - 0xb7409fff  LC_COLLATE  ???
0xb740a000 - 0xb740afff  LC_MONETARY  ???
0xb740b000 - 0xb740bfff  SYS_LC_MESSAGES  ???
0xb740c000 - 0xb7412fff  gconv-modules.cache  ???
0xb7415000 - 0xb743bfff  libexpat.so.1.5.2  ???
0xb743c000 - 0xb7450fff  libz.so.<IP_ADDRESS>  ???
0xb7451000 - 0xb75a6fff  libc-2.11.1.so  ???
0xb75ab000 - 0xb75c9fff  libgcc_s.so.1  ???
0xb75ca000 - 0xb75effff  libm-2.11.1.so  ???
0xb75f0000 - 0xb76ddfff  libstdc++.so.6.0.13  ???
0xb76e5000 - 0xb76fbfff  libpthread-2.11.1.so  ???
0xb76fe000 - 0xb7706fff  librt-2.11.1.so  ???
0xb7708000 - 0xb770bfff  libdl-2.11.1.so  ???
0xb770c000 - 0xb773bfff  libfontconfig.so.1.4.4  ???
0xb773c000 - 0xb77b1fff  libfreetype.so.6.3.22  ???
0xb77b2000 - 0xb77b2fff  LC_PAPER  ???
0xb77b3000 - 0xb77b3fff  LC_NAME  ???
0xb77b4000 - 0xb77b4fff  LC_ADDRESS  ???
0xb77b5000 - 0xb77b5fff  LC_TELEPHONE  ???
0xb77b6000 - 0xb77b6fff  LC_MEASUREMENT  ???
0xb77b7000 - 0xb77b7fff  LC_IDENTIFICATION  ???
0xb77bc000 - 0xb77d8fff  ld-2.11.1.so  ???
0xf57fe000 - 0xf57fefff  linux-gate.so  ???

Please upgrade to PhantomJS 2. 1.9.x is no longer supported, and known to have many crasher bugs that are fixed in 2 version.


Create a Pydantic/PySpark base class for entities in a knowledge graph ontology

See #1 for more information.

@ThePigLA no, that's why I marked it as a draft. I only just started.

Am moving from Pydantic to Pandera... see comments and edits to issue #1
https://pandera.readthedocs.io/en/latest/dataframe_schemas.html

@ThePigLA @tanmoyio my PR has gotten too large. I am merging it! The README is MUCH bigger now :)


r22 fails to build on FreeBSD: /usr/bin/ld: cannot find -latomic

FreeBSD uses Clang by default, so libatomic is often neither installed nor picked up from GCC-specific prefix. See error log and bug 230888. Removing -latomic helps to unbreak on x86 architectures.

OK, thanks for the log. It seems we need -latomic only for some versions of GCC < 5.3. I’ll make a conditional.

Builds fine after 5e0340d35e4d.


custom weights for tensornet model

Hi, is it possible to load custom weights in tensornets models? Say I have some different classes than the ones in coco dataset for a yolov3 model and I'd like to load them using tensornets. Is that doable?
Thanks in advance!

Thank you for using TensorNets, @vladdders. In order to use the following APIs, you should upgrade tensornets==0.4.5.
with tf.Session() as sess:
    model.init()
    # ... your training ...
    model.save('test.npz')

with tf.Session() as sess:
    model.load('test.npz')
    # ... your deployment ...

Or, you can simply use the following patterns.
np.save('test.npy', sess.run(model.weights()))  # save
sess.run([w.assign(v) for (w, v) in zip(model.weights(), np.load('test.npy'))])  # load

@vladdders, I'll close the issue for now. Please feel free to open it again at any time if you have additional comments.


Moving blocks (or Drag and Drop) + Undo seems squishy

Precheck

[x] Do a quick search and make sure the bug has not been reported yet.
[x] Please disclose security vulnerabilities privately at<EMAIL_ADDRESS>[x] Finally, be nice and have fun!.

Description
It seems that moving blocks (via Drag-and-Drop OR via BlockTune) doesn't behave consistently.
Environment

Editor.js version: 2.24.2
Plugins you use with their versions:

"@editorjs/header": "^2.6.2"
"@editorjs/paragraph": "^2.8.0"

Device, Browser, OS:

Mac
Safari Version 15.4 (176<IP_ADDRESS>.6)
OSX Moneterey 12.3

Current behavior

Move via Drag and Drop to last position.
Press Undo-Combination
First Paragraph is missing. Last two Paragraphs are duplicate

Expected behavior

Move via Drag and Drop to last position
Press Undo-Combination
First and Last Paragraph should be switched correctly

Additional context
Attached 2 Videos with two different behaviors
Bug with Drag and Drop
https://user-images.githubusercontent.com/1446269/167936531-2daca295-ff9f-46a0-83fb-151860eeac47.mov
Bug with BlockTune
https://user-images.githubusercontent.com/1446269/167936589-d322b867-fcb6-46ca-9ad8-c50020434edd.mov

Greetings @christoph-kluge.
Thanks a lot for raising this issue, I'll check if maybe a fix related with the drag'n drop plugin (https://github.com/kommitters/editorjs-drag-drop/issues/83) fix this issue already, if not I'll give it a look to see how we can fix this

Hey @christoph-kluge, hope you doing well.
In the last release of the plugin (v2.0.2) there should be the solution for this issue, if it persists please let us know.

@MarthoxGT @juanhurtado10 I did a quick test and I'm still facing this issue.
    "editorjs-drag-drop": "^1.1.2",
    "editorjs-undo": "^2.0.2",

I was curious and created a sandbox scenario. It seems it is fixed as soon as I isolate the behavior in a sandbox.
https://codesandbox.io/s/editor-js-drag-and-drop-undo-xpnmk8
Will dig deeper to identify why it's failing in my project.

That'll help us a lot @christoph-kluge, thank you a lot for the time you're putting into.
Maybe deleting your node_modules folder and creating them again (if you haven't done it yet) could fix the issue in your local.
We are going to be attentive to your updates.
Mealwhile I'm going to try to replicate the issue with less ideal scenarios to see if I can find something.
Best regards.

I could validate that it works with dynamic data as soon as I remove the id property like this:
    undo.initialize([...normalizedInput.blocks].map(block => {
      if (block.hasOwnProperty('id')) {
        delete block.id
      }
      return block
    }));

I guess there's some magic or comparison related to the id?

Ohh nice, thanks a lot for the update, I'll reopen the issue to keep working on a solution.
And again thanks a lot, I really appreciate it!

Hey @christoph-kluge, hope you're doing great!
There's up a new release (v2.0.3) where I tested the case you sent to us in the sandbox, and for me it seems to be working smoothly, please let us know if it fix the problem
Thanks for your time! Best regards

I've updated my local version and reverted the workaround. It seems that it's all good now. Closing here.
Thank you so much for the quick repsonse 🙏


[Im2col] Add decomposition pass for iree_linalg_ext.im2col

This PR adds a pass for decomposing the iree_linalg_ext.im2col op into serial loops of extract_slice->copy->insert_slice. The pass tries to keep the innermost dimension of the iteration space un-tiled when the inner slice is contiguous, but otherwise falls back to serial loops of scalar slices. The outer dimensions (B and M) of the iteration space, however, are always tiled to 1.

based on https://github.com/iree-org/iree/pull/17671. Just review the last commit

Do we implement the AggregatedOpInterface method (i.e., decomposeOperation) for the op? So like we can move the decomposition logics to AggregatedOpInterfaceImpl.cpp.

Oh, I didn't know this existed, thanks for the suggestion!


server start normaly but after 4 or 5 mit it show this error. plaese provide correct answers.

ERROR:electrumx:ElectrumX server terminated abnormally
Traceback (most recent call last):
File "/electrumx/electrumx_server", line 35, in main
asyncio.run(controller.run())
File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run
return loop.run_until_complete(main)
File "uvloop/loop.pyx", line 1501, in uvloop.loop.Loop.run_until_complete
File "/electrumx/electrumx/lib/server_base.py", line 129, in run
await server_task
File "/electrumx/electrumx/lib/server_base.py", line 102, in serve
await self.serve(shutdown_event)
File "/electrumx/electrumx/server/controller.py", line 134, in serve
await group.spawn(wait_for_catchup())
File "/usr/local/lib/python3.7/site-packages/aiorpcX-0.18.7-py3.7.egg/aiorpcx/curio.py", line 255, in aexit
await self.join()
File "/usr/local/lib/python3.7/site-packages/aiorpcX-0.18.7-py3.7.egg/aiorpcx/curio.py", line 213, in join
raise task.exception()
File "/electrumx/electrumx/server/block_processor.py", line 702, in fetch_and_process_blocks
await group.spawn(self._process_prefetched_blocks())
File "/usr/local/lib/python3.7/site-packages/aiorpcX-0.18.7-py3.7.egg/aiorpcx/curio.py", line 255, in aexit
await self.join()
File "/usr/local/lib/python3.7/site-packages/aiorpcX-0.18.7-py3.7.egg/aiorpcx/curio.py", line 213, in join
raise task.exception()
File "/electrumx/electrumx/server/block_processor.py", line 663, in _process_prefetched_blocks
await self.check_and_advance_blocks(blocks)
File "/electrumx/electrumx/server/block_processor.py", line 230, in check_and_advance_blocks
await self._maybe_flush()
File "/electrumx/electrumx/server/block_processor.py", line 368, in _maybe_flush
await self.flush(flush_arg)
File "/electrumx/electrumx/server/block_processor.py", line 358, in flush
await self.run_in_thread_with_lock(flush)
File "/electrumx/electrumx/server/block_processor.py", line 212, in run_in_thread_with_lock
return await asyncio.shield(run_in_thread_locked())
File "/electrumx/electrumx/server/block_processor.py", line 211, in run_in_thread_locked
return await run_in_thread(func, *args)
File "/usr/local/lib/python3.7/site-packages/aiorpcX-0.18.7-py3.7.egg/aiorpcx/curio.py", line 68, in run_in_thread
return await get_event_loop().run_in_executor(None, func, *args)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/electrumx/electrumx/server/block_processor.py", line 357, in flush
self.estimate_txs_remaining)
File "/electrumx/electrumx/server/db.py", line 244, in flush_dbs
self.flush_history()
File "/electrumx/electrumx/server/db.py", line 313, in flush_history
self.history.flush()
File "/electrumx/electrumx/server/history.py", line 160, in flush
flush_id = pack_be_uint16(self.flush_count)
struct.error: 'H' format requires 0 <= number <= 65535

did you try to adjust FLUSH_COUNT_LIMIT in your settings? default is 65535

version: "3.7"
services:
electrs:
container_name: electrs
image: lukechilds/electrumx:latest
volumes:
- "../volumes/electrs:/data"
ports:
- "${APP_ELECTRS_PORT}:${APP_ELECTRS_PORT}"
- 50002:50002
- 8000:8000
- 8080:8080
healthcheck:
test: "nc -z localhost 50001"
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
environment:
- DAEMON_URL=http://${APP_BITCOIN_RPC_USERNAME}:${APP_BITCOIN_RPC_PASSWORD}@${APP_BITCOIND_IP}:${APP_BITCOIND_RPC_PORT}
- COIN=Bitcoin
- SERVICES=tcp://:50001,ssl://:50002,wss://:50004,rpc://<IP_ADDRESS>:8000
- REPORT_SERVICES=tcp://vmi204200.contaboserver.net:50001,tcp://vmi204200.contaboserver.net:8000,tcp://vmi204200.contaboserver.net:8080,ssl://vmi204200.contaboserver.net:5000>
- NET=${APP_BITCOIN_NETWORK}
- LOG_LEVEL=debug
- DB_DIRECTORY=/data/db
- FLUSH_COUNT=65535
- OTHER_ENV_VARIABLE=value
networks:
default:
ipv4_address: "${APP_ELECTRS_IP}"
this is my yml file

Yes
On Tue, 30 Apr, 2024, 4:24 pm ThomasV, @.***> wrote:

did you try to adjust FLUSH_COUNT_LIMIT in your settings? default is 65535
—
Reply to this email directly, view it on GitHub
https://github.com/spesmilo/electrumx/issues/260#issuecomment-2084986094,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BIFVKK3NVQY5BXC3KYCT47DY75Z6JAVCNFSM6AAAAABG7TM6HGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBUHE4DMMBZGQ
.
You are receiving this because you authored the thread.Message ID:
@.***>

duplicate of https://github.com/spesmilo/electrumx/issues/88

you should run the electrumx_compact_history script, while the server is stopped, using the same environment variables as otherwise


Travis CI currently broken

Due to a npm change, npm install modifies package-lock.json, which turns bots red (we check for modified files at the end of the script).
Blocking #892, #889, and any other PRs.

Regression is likely in npm, within the range 5.6.0 (good build) and 6.4.1 (bad build).

Turns out, the fix is not as simple as committing the new format.

node version
v8.12.0
v9.4.0
v10.4.0

npm version
6.4.1
5.6.0
6.1.0

Accepts master branch?
no
yes
no

Accepts this commit?
yes
no
yes

Might have to remove package-lock.json, or exclude it from this the file-check at the end.

Or, maybe we can use npm ci instead of npm install on npm v6+

Modifications of package-lock.json by npm install is intentional - https://github.com/npm/npm/issues/21043#issuecomment-400162808
The recommendation that I hear is to always use npm ci in CI builds to respect the package-lock.json as-is.

@hbetts thanks for linking to the npm ticket. I figured this is probably intentional. The issue is that we need to conditionally run npm install for npm versions which don't know about npm ci.
It would be nice to just install the newest npm and use that to install dependencies, but I think shelljs supports a wider range of node versions than npm.
One way to detect support (since I forget which version introduced it) would be:
$ npm help | egrep '\bci\b'

For what it's worth, npm ci was added in version 5.7.0. I also finally found their Node support policy.
Though, I'm curious, even if you check for the existence of ci, how could the lock file changing issue get resolved on those versions of npm without ci?

Reopening because #896 is flaking on appveyor. Trying a different approach instead.

#911 flakes as well, which makes me suspect ci-or-install works correctly (although is perhaps overly complicated), and it's appveyor which causes the flakiness.


Emphasis public/private api distinction

We want to clarify the public api, which consists of the module api and the public ignition object.
TODO

[x] https://github.com/NomicFoundation/ignition/pull/173
[x] https://github.com/NomicFoundation/ignition/pull/174
[x] https://github.com/NomicFoundation/ignition/pull/175
[x] https://github.com/NomicFoundation/ignition/pull/176
[x] https://github.com/NomicFoundation/ignition/pull/179
[x] https://github.com/NomicFoundation/ignition/pull/180
[x] https://github.com/NomicFoundation/ignition/pull/181
[x] https://github.com/NomicFoundation/ignition/pull/184
[x] https://github.com/NomicFoundation/ignition/pull/182
[x] Simplify API and tsdocs usage with unknown types
[ ] https://github.com/NomicFoundation/ignition/issues/192
[ ] ~Look again at deploy options - check different constructors make sense and all options are needed~
[ ] ~Clarify types and code exported to support implementing journal (clean up old journal types)~

This part of the refactoring is complete.


Can't add cluster by "Connect Existing Cluster"

Describe the bug
Can't add cluster by "Connect Existing Cluster"
To Reproduce
MacBook-Pro .kube % vela cluster join ./staging --name=cluster-staging
Error: failed to ensure vela-system namespace installed in cluster cluster-staging: failed to check if namespace vela-system exists: no such cluster cluster-staging
Apiserver error log:
{"level":"error","ts":1660190564.089943,"caller":"bcode/bcode.go:111","msg":"Business exceptions, error message: failed to join cluster: failed to ensure vela-system namespace installed in cluster staging: failed to check if namespace vela-system exists: no such cluster staging, path:/api/v1/clusters method:POST","stacktrace":"github.com/oam-dev/kubevela/pkg/apiserver/utils/bcode.ReturnError\n\t/workspace/pkg/apiserver/utils/bcode/bcode.go:111\ngithub.com/oam-dev/kubevela/pkg/apiserver/interfaces/api.(*ClusterAPIInterface).createKubeCluster\n\t/workspace/pkg/apiserver/interfaces/api/cluster.go:209\ngithub.com/emicklei/go-restful/v3.(*FilterChain).ProcessFilter\n\t/go/pkg/mod/github.com/emicklei/go-restful/v3@v3.8.0/filter.go:23\ngithub.com/oam-dev/kubevela/pkg/apiserver/domain/service.(*rbacServiceImpl).CheckPerm.func1\n\t/workspace/pkg/apiserver/domain/service/rbac.go:618\ngithub.com/emicklei/go-restful/v3.(*FilterChain).ProcessFilter\n\t/go/pkg/mod/github.com/emicklei/go-restful/v3@v3.8.0/filter.go:21\ngithub.com/oam-dev/kubevela/pkg/apiserver/interfaces/api.authCheckFilter\n\t/workspace/pkg/apiserver/interfaces/api/authentication.go:123\ngithub.com/emicklei/go-restful/v3.(*FilterChain).ProcessFilter\n\t/go/pkg/mod/github.com/emicklei/go-restful/v3@v3.8.0/filter.go:21\ngithub.com/oam-dev/kubevela/pkg/apiserver.(*restServer).requestLog\n\t/workspace/pkg/apiserver/server.go:251\ngithub.com/emicklei/go-restful/v3.(*FilterChain).ProcessFilter\n\t/go/pkg/mod/github.com/emicklei/go-restful/v3@v3.8.0/filter.go:21\ngithub.com/oam-dev/kubevela/pkg/apiserver.(*restServer).OPTIONSFilter\n\t/workspace/pkg/apiserver/server.go:265\ngithub.com/emicklei/go-restful/v3.(*FilterChain).ProcessFilter\n\t/go/pkg/mod/github.com/emicklei/go-restful/v3@v3.8.0/filter.go:21\ngithub.com/emicklei/go-restful/v3.(*Container).OPTIONSFilter\n\t/go/pkg/mod/github.com/emicklei/go-restful/v3@v3.8.0/options_filter.go:15\ngithub.com/emicklei/go-restful/v3.(*FilterChain).ProcessFilter\n\t/go/pkg/mod/github.com/emicklei/go-restful/v3@v3.8.0/filter.go:21\ngithub.com/emicklei/go-restful/v3.CrossOriginResourceSharing.Filter\n\t/go/pkg/mod/github.com/emicklei/go-restful/v3@v3.8.0/cors_filter.go:65\ngithub.com/emicklei/go-restful/v3.(*FilterChain).ProcessFilter\n\t/go/pkg/mod/github.com/emicklei/go-restful/v3@v3.8.0/filter.go:21\ngithub.com/emicklei/go-restful/v3.(*Container).dispatch\n\t/go/pkg/mod/github.com/emicklei/go-restful/v3@v3.8.0/container.go:296\nnet/http.HandlerFunc.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2047\nnet/http.(*ServeMux).ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2425\ngithub.com/emicklei/go-restful/v3.(*Container).ServeHTTP\n\t/go/pkg/mod/github.com/emicklei/go-restful/v3@v3.8.0/container.go:316\nnet/http.serverHandler.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2879\nnet/http.(*conn).serve\n\t/usr/local/go/src/net/http/server.go:1930"}
KubeVela Version
CLI Version: v1.5.0
Core Version: 1.5.0
GitRevision: git-e29b1af
GolangVersion: go1.17.12
velaux: enabled (v1.5.0)
==> Installed Clusters
[local]
==> Registry Name
KubeVela
Cluster information

Kubernetes Version: ASK  1.20.11-aliyun.1

Is your managed cluster to join is connectable from the hub cluster? (Are they in the same VPC or use the public IP for the apiserver)

use the public IP  for the apiserver

Could you run kubectl get secret -n vela-system -w aside while running vela cluster join command? There should be a secret named cluster-staging created.

kubectl get secret -n vela-system -w

cluster-staging                                               Opaque                                4      0s
cluster-staging                                               Opaque                                4      5s

I see. Seems the creation of cluster-staging is okay. Try vela cluster join ./staging --name=cluster-staging --create-namespace="". This should not block in your case (seems you are blocked during creating namespace in managed cluster). But you need an additional post verification for the connection. vela cluster probe cluster-stage could help you check that.

vela cluster probe cluster-stage

MacBook-Pro .kube % vela cluster join ./staging --name=cluster-staging --create-namespace=""
Successfully add cluster cluster-staging, endpoint: https://106.xxx.xxx.xxx:xxxx.
MacBook-Pro .kube % vela cluster probe cluster-staging
Error: failed connect cluster cluster-staging: an error on the server ("unknown") has prevented the request from succeeding

vela cluster probe cluster-stage

MacBook-Pro .kube % vela cluster join ./staging --name=cluster-staging --create-namespace="" Successfully add cluster cluster-staging, endpoint: https://106.xxx.xxx.xxx:xxxx. MacBook-Pro .kube % vela cluster probe cluster-staging Error: failed connect cluster cluster-staging: an error on the server ("unknown") has prevented the request from succeeding

Okay, there might be several possible problem with your case.

You need to make sure cluster-gateway is working correctly. Try to run kubectl get clustergateway and see if it works. If not, cluster-gateway is not working well. You should see your cluster-staging in the clustergateway list now.
If cluster-gateway works, then it might be an issue for your provided KubeConfig. You can try to access your managed cluster directly through the provided KubeConfig, like running kubectl version. Sometimes, your KubeConfig may not have correct credential, or CA settings. Notice that cluster-gateway currently only support X509/ServiceAccount authentication, so if you are using other authentication methods to access your managed cluster, it might not be supported.
If you can access your managed cluster through your provided KubeConfig, then it might be an issue for accessing your managed cluster  from your hub control plane (where KubeVela lives). There might be network issues like firewalls or dns problems. You can try to create a pod in your hub control plane and try to access your managed cluster from inside.


turbo: add typecheck to tsc

Codecov Report
Patch coverage is 79.48% of modified lines.

Files Changed
Coverage

packages/wavebox/src/wavebox.tsx
63.63%

packages/dekamoji/src/dekamoji.tsx
100.00%

:loudspeaker: Thoughts on this report? Let us know!.


feat(events): Add update_connection

Work Done
Add update_connection to Response & Backend in Events
Tests

[x] TestAccAWSCloudWatchEventConnection_invocationHttpParameters

Test suite completed :partying_face:

Codecov Report

Merging #4095 (9cc53df) into master (9d7746b) will decrease coverage by 0.01%.
The diff coverage is 23.07%.

@@            Coverage Diff             @@
##           master    #4095      +/-   ##
==========================================
- Coverage   94.24%   94.22%   -0.02%
==========================================
  Files         468      468
  Lines       51243    51255      +12
==========================================
+ Hits        48294    48296       +2
- Misses       2949     2959      +10

Flag
Coverage Δ

servertests
55.39% <15.38%> (-0.01%)
:arrow_down:

unittests
94.15% <23.07%> (-0.02%)
:arrow_down:

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

Impacted Files
Coverage Δ

moto/events/models.py
92.42% <12.50%> (-0.85%)
:arrow_down:

moto/events/responses.py
90.03% <40.00%> (-0.94%)
:arrow_down:

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 9d7746b...9cc53df. Read the comment docs.

Hi @GonzaloSaad, thanks for the PR! Would you mind adding this suite to our whitelist of Terraform tests? (tests/terraform-tests.success.txt)
That way this specific test will run with every build, and we can be sure this keeps working/doesn't break further down the line

Done! Will do it for the next suites! Thank you very much for the feedback, and nice to start working with you!


Does crouton-integration extension do anything when not in Chrome OS?

Just curious, as when I'm in macOS or Windows I see the Crouton integration icon in my Chrome window, but I don't need it in those OSes. Ideally I'd like to turn it on only in Chrome OS, but there doesn't seem to be an option for that. Maybe I just have to load it as an unpacked extension in Chrome OS so it doesn't sync to other OSes (just guessing that this works).

There's no built-in switch on that extension but you can disable it in chrome://extensions or use the Extensity extension to toggle on/off any one or all of your extensions, it's very handy.
Hope this helps,
-DennisLfromGA


IC API result

result: https://docs.rs/ic-cdk/latest/ic_cdk/api/call/fn.result.html

[ ] This should be pretty simply once we have arg_data implemented. This just calls reject_code under the hood and returns arg_data if reject_code has no error, and returns reject_message otherwise.
[ ] Here's the source: https://docs.rs/ic-cdk/latest/src/ic_cdk/api/call.rs.html#445-452

This ticket is blocked. We cannot proceed until we fix arg_data.
I've started work on this but when I became blocked I pushed a WIP commit to store the work I'd done. See https://github.com/demergent-labs/azle/commit/9cfd3ba1bb2d218d959be89f1d585a1070caa0f4.


Feature/multipage navigation

hi @dileep-gadiraju  i have tested above pr . it is working as expected .


Where does re-infection data go?

Re-infection prior to admission, but also in followup.
Add booleans to subject

Needs further looking into.