docker run in privileged mode possible?

I am running a kvm based emulator inside my docker container, which requires that I run the image with the --privileged flag. Is it possible to do this with your API module? I tried putting it in CMD argument:
docker.run('iampeekay/myImage:v1', ["--privileged", "other commands....."], process.stdout, function (err, data, container) {
  if (err) {
    console.log(err.stack);
  } else {
    console.log(data.StatusCode);
  }
});

but it doesn't seem to work.

Privileged flag, when using Docker's Remote API (which dockerode uses), should be used on container start and not creation.
You may read more details here: https://github.com/apocas/dockerode/issues/14
Since you are using run https://github.com/apocas/dockerode#equivalent-of-docker-run-in-dockerode it should be something like this:
docker.run('iampeekay/myImage:v1', ["other commands....."], process.stdout, {}, {Privileged: true}, function (err, data, container) {
  if (err) {
    console.log(err.stack);
  } else {
    console.log(data.StatusCode);
  }
});

@apocas perfect, thank you!

Perhaps you could document the format of the options object? For Insrance,
if I want to expose ports explicitly (ie. -p 8000:5000) when using
Docker.run, how would I do that? Is it another key/value in the options
object? If so, what's the format that you accept?
Thank you.
On Wednesday, February 17, 2016, Pedro Dias<EMAIL_ADDRESS>wrote:

Privileged flag, when using Docker's Remote API (which dockerode uses),
should be used on container start and not creation.
You may read more details here: #14
https://github.com/apocas/dockerode/issues/14
Since you are using run
https://github.com/apocas/dockerode#equivalent-of-docker-run-in-dockerode
it should be something like this:
docker.run('iampeekay/myImage:v1', ["other commands....."], process.stdout, {}, {Privileged: true}, function (err, data, container) {
if (err) {
console.log(err.stack);
} else {
console.log(data.StatusCode);
}
});
—
Reply to this email directly or view it on GitHub
https://github.com/apocas/dockerode/issues/219#issuecomment-185514539.

--
Preethi Kasireddy
201-895-9299
Twitter https://twitter.com/iam_preethi
LinkedIn https://www.linkedin.com/pub/preethi-kasireddy/28/835/413
Github https://github.com/iam-peekay
Facebook https://www.facebook.com/preethikasireddy

Forget about "-p" and run, that's CLI usage, you should be looking into API usage (which CLI also consumes). When using dockerode you are basically in a lower layer, think if you were implementing docker's CLI (it is exactly what you are doing).
Dockerode does not mess with the arguments being sent to docker, being this said you should always consult the official docs at https://docs.docker.com/engine/reference/api/docker_remote_api_v1.22/
After reading the docs you know if the option you want should be specified at container start or creation. (docker cli's run and dockerode's run, are an orchestration of create, start and attach from the core API)
The only thing you must remember from dockerode is the run function parameter order https://github.com/apocas/dockerode#equivalent-of-docker-run-in-dockerode which is:
docker.run(image, parameters, streams, createOptions, startOptions, callback);

@apocas thank you.

@apocas I tried to do the below following the Remote API docs, but the port bindings do not work. Am I doing something wrong?
docker.createContainer({Image: 'iampeekay/myImage:v1', Cmd: [], HostConfig: { PortBindings: { "8000/tcp": [{ "HostPort": "8000" }] }}, name: 'androidEmu'}, function (err, container) {
    container.start({Privileged: true}, function(err, data) {
    if (err) {
      console.log(err.stack);
    } else {
      console.log('started');
    }
  });
});

The container starts and is running. However, when i inspect, the port bindings say null:

@apocas I figured out how to get it to work. It works if you put in the the container.start method:
docker.createContainer({Image: 'iampeekay/myImage:v1', Cmd: [], name: 'androidEmu'}, function (err, container) {
    container.start({Privileged: true, PortBindings: { "8000/tcp": [{ "HostPort": "8000" }] }}, function(err, data) {
    if (err) {
      console.log(err.stack);
    } else {
      console.log('started');
    }
  });
});

It's an old thread BUT if you be here maybe i can help you!
Now you can't pass string with start method
now you need to pass everything in the createContainer
`
let createParameters = {}
createParameters.Image = device.connectionType
createParameters.Cmd = [device.connectionParameters]
            // if there is a physicalPath then add it to Devices options
            // it will mapp the local device inside the container
            if (device.physicalPath) {
                createParameters.Devices = [{
                  PathOnHost: device.physicalPath,
                  PathInContainer: device.physicalPath,
                  CgroupPermissions: "rwm"
                }]
            }
            docker.api()
                .then((api) => {
                    api.createContainer(createParameters).then(function(container) {
                        container.start()
                        .then((data) => {
                            device.dockerId = data.id
                            device.save()
                            return res.status(201).json(data)
                        })

`


Making the in memory persistence provider goroutine safe

I have a pull request #154 adding a couple of locks one for snapshots and one for the events map. It is not optimal from a performance perspective but should be safe.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

@dahankzter Firstly, thanks a lot for pointing out the concurrency-safety problem, and the changes you submitted look feasible.
But as far as I can see, while taking concurrency-safety into consideration, there are more possible improvements to make. I'm now planning to refactor the in-memory persistence provider as follows:

Merge snapshots map and events map into one, so we can just use one mutex
Use sync.RWMutex instead of sync.Mutex to get better read performance
Since each actor is working in a standalone goroutine, snapshotting and event-persistence will happen in sequence, so we can just lock the loading/initialing operation of map entry (for each actor), thus getting better performance while still be concurrency-safe

Any more suggestions are appreciated, thanks again!

@dahankzter Here's the new pull request #156, it would be nice if you can take a review 😄

This was along the lines I was considering first but opted for a very simple option since I didn't know if this provider was to actually be used.
If the event storing is always in the same goroutine then that should be safe as well. Some tests should maybe be added.
If there is no requirements for a particular Go version then for 1.9 we could perhaps use the new sync.Map.
Will the contributor status update automatically or do I have to push something new?

This was along the lines I was considering first but opted for a very simple option since I didn't know if this provider was to actually be used.

Yes I saw it :-) The in-memory persistence provider is mainly for trivial scenario and testing purpose, but at the same time, it's also a reference implementation maintained in the core library. So I think it's also important to keep its efficiency and safety, as well as simplicity.

If the event storing is always in the same goroutine then that should be safe as well. Some tests should maybe be added.

The event/snapshot storing is only concurrency-safe in one actor, there are still safety issues if multiple actors use the same provider concurrently.

If there is no requirements for a particular Go version then for 1.9 we could perhaps use the new sync.Map.

I think the sync.RWMutex is also efficient enough since "map write operation" rarely happens in actor model. That being said, sync.Map is awesome if we upgrade to Go 1.9, and then we only need to change loadOrInit as follows:
func (provider *InMemoryProvider) loadOrInit(actorName string) (e *entry, loaded bool) {
	e, loaded := provider.store.LoadOrStore(actorName, &entry{})
	return e.(*entry), loaded
}

Will the contributor status update automatically or do I have to push something new?

This library still lacks docs, tests, etc, and it may still have some issues. We're looking forward to more contributions from you!

Can I close this as #156 has been merged.


🐛 BUG: Partial<> isn't respected for the interface of props of a component

Describe the Bug
Partial<> isn't being respected for the interface of props of a component. The VSCode extension is marking all the properties as required.
Steps to Reproduce
The VSCode extension should check if the interface used for components is wrapped with Partail<>

Hello!
Is this still relevant? I can't seem to be able to reproduce. Using the following component
---
  interface Hello {
    hello: string,
    name: number
  }

  export type Props = Partial<Hello>
---

And the following code:

I get no errors for missing props, as expected

I am confirming that this issue is no longer relevant. Thank you for your contribution @Princesseuh!


rebuild 2.0.1

[x] bumped the build number
[x] added a proper test section
[x] removed noarch build to make sure architecture-specific problems are ruled out
[x] built for py38,39,310,311

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_b7724l630f/clone/recipe/meta.yaml:20: missing_wheel: For pypi packages, wheel should be present in the host section
ERROR: /tmp/abs_b7724l630f/clone/recipe/meta.yaml:36: incorrect_license: The recipe's about/license key is not an SPDX compliant license or license exception, closest match: 0BSD
ERROR: /tmp/abs_b7724l630f/clone/recipe/meta.yaml:36: incorrect_license: The recipe's about/license key is not an SPDX compliant license or license exception, reference https://spdx.org/licenses/exceptions-index.html
ERROR: /tmp/abs_b7724l630f/clone/recipe/meta.yaml:36: incorrect_license: The recipe's about/license key is not an SPDX compliant license or license exception, closest match: BSD-3-Clause
ERROR: /tmp/abs_b7724l630f/clone/recipe/meta.yaml:45: http_url: http://xlrd.readthedocs.io/en/latest/ is not https
WARNING: /tmp/abs_b7724l630f/clone/recipe/meta.yaml:45: documentation_overspecified: Using doc_url and doc_source_url is overspecified
ERROR: /tmp/abs_b7724l630f/clone/recipe/meta.yaml:45: http_url: http://www.python-excel.org/ is not https
Errors were found

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_b4p2ndvpop/clone/recipe/meta.yaml:36: incorrect_license: The recipe's about/license key is not an SPDX compliant license or license exception, closest match: 0BSD
ERROR: /tmp/abs_b4p2ndvpop/clone/recipe/meta.yaml:36: incorrect_license: The recipe's about/license key is not an SPDX compliant license or license exception, reference https://spdx.org/licenses/exceptions-index.html
ERROR: /tmp/abs_b4p2ndvpop/clone/recipe/meta.yaml:36: incorrect_license: The recipe's about/license key is not an SPDX compliant license or license exception, closest match: BSD-3-Clause
Errors were found


Add expression builder example to docu

Hi @renggli,
I've updated the documentation to match the expression builder section of the Dart repo,
and added test cases for the documentation example.

Coverage remained the same at 99.019% when pulling 21123cbc7002c8c2c1b1342570aab3827a725b4a on philipparndt:update-docu-exp-builder into c486362281f1c37dd4170a466db5ae7afe473b01 on petitparser:master.

Very nice, thanks a lot! Feel free to add yourself to the AUTHORS list as well.


dojot site - option "try me" - include link for docker

Installation guide is available at: http://dojotdocs.readthedocs.io/en/latest/install/compose_guide.html


Not working on Android emulator

It's working on the iOS emulator perfectly.  But not working on an Android emulator.
Where find out my audio file? I couldn't find my file.
And I can't play the audio file. Response error message  "media player is null".
Please somebody help me.

You can find your file when you stopRecorder. It will return the path. Please checkout the example project.


smartdata  server shutdown without ERRO message

I am trying to deploy SSM server on Hadoop3.1.1 accorrding “SSM Deployment Guide with Hadoop” 。  now SSM is standalone mode。 when start smart server ，there no ERROR showing ,bug server will shutdown soon。Can you help me find what wrong with my server with the log , thanks.
my server log :
smartserver-master-bdev001.bonc.com-hadoop.log

Already gave the feedback via email. Will close it.

Already gave the feedback via email. Will close it.

我也遇到和楼主同样的问题，按照教程配置，但是最后都是shut down然后服务就没有了，也没有报错信息。单Server模式、非HA、非安全的Hdfs

mysql version is 5.7.37.
24 tables have been created , such as "file" and "datanode_info" were filled with normal data.
The HDFS cluster is healthy , not NN-HA , not Kerberized.
What made me confused is the followning log:
"
2022-05-23 09:45:07,593 INFO com.hazelcast.core.LifecycleService.log 65: [host04]:5701 [dev] [3.12.12] [host04]:5701 is STARTING
2022-05-23 09:45:08,646 INFO com.hazelcast.core.LifecycleService.log 65: [host04]:5701 [dev] [3.12.12] [host04]:5701 is STARTED
2022-05-23 09:45:11,112 INFO com.hazelcast.core.LifecycleService.log 65: [host04]:5701 [dev] [3.12.12] [host04]:5701 is SHUTTING_DOWN
2022-05-23 09:45:11,132 INFO com.hazelcast.core.LifecycleService.log 65: [host04]:5701 [dev] [3.12.12] [host04]:5701 is SHUTDOWN
2022-05-23 09:45:11,132 INFO com.hazelcast.core.LifecycleService.log 65: [host04]:5701 [dev] [3.12.12] [host04]:5701 is SHUTTING_DOWN
2022-05-23 09:45:11,132 INFO com.hazelcast.core.LifecycleService.log 65: [host04]:5701 [dev] [3.12.12] [host04]:5701 is SHUTDOWN
"
Why the hazelcast node shutdown until it started ? Is it normal? Just ignore the hazelcast version , it could not help anything.

I deployed the SSM from a machine outside the cluster .
There's only a server in SSM, not any agents .
I run commands , both "install" & "start-ssm" from the outside machine.

疑团解开了，-Phadoop-3.1的时候，smart-server/pom.xml里头，hadoop-3.1部分profile的依赖没有补充jetty-http，导致服务启动时候的jetty依赖不够 server起不来，但是也不报错，麻烦把依赖加回去吧。
我没有用过jetty，这个问题定位了一周多了。


Benchmarking

this is a first draft proposition for benchmarking, i did at first for skia renderers and then added similar to xaml renderers but after thinking about it i think this will not measure the actual rendering time for the xaml renderers, but rather just the xaml elements construction time ... the rendering is probably done by the framework in the ui loop.
I added a simple UI to visualize the capabilities of these code on the Xamarin.Forms samples project (phone idiom only)
There is also some modifications to some projects/configuration, some were intentional, others were just side effects of me changing stuff on visual studio in order to build and debug, ofc most can be revert is they raise problems.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

i do not really understand why but although all tests passed on test runner i still have the RenderLabels (xaml) test that does not work on my local machine

First, thank you for doing this.
For me all tests work correct. No problem found.

When running the samples on UWP, there isn't any menu for choosing benchmarking.
Perhaps it is possible to set a fixed length for times in the list. Would be much more readable.
There are more changes than we need for benchmarking. Makes the PR not very easy to read.
I'm not sure, if the times are correct. Normally the drawing of hyperlinks need around 1/3 ms, but sometimes need 33 ms.

* When running the samples on UWP, there isn't any menu for choosing benchmarking.

yeah as i said for now I only did for "phone idiom". uwp probably have "Desktop idiom" (unless you have a windows phone?)
I will add views on sample for other xf idioms and try to add for other framework( wpf, ios, android, regular uwp) as well.

* Perhaps it is possible to set a fixed length for times in the list. Would be much more readable.

ok what fixed length do you think is the best? i think we need to keep a large number of digits to have details for small timings.

* I'm not sure, if the times are correct. Normally the drawing of hyperlinks need around 1/3 ms, but sometimes need 33 ms.

reasons why individual timings have a high variability could be of many:

"cold start" code is not jitted, cache not populated, ...
cache miss
thread preempted by operating system / scheduled on another core
managed thread interruped by runtime for garbage collection
or eventually it could be a real performance problems that does not happens everytime for some reason

I think, 3 digits should be enough. The problem is, that sometimes only 2 digits are shown.
Another point is, that it would be nice to have a timestamp for when the rendering is started. Would be helpful to see, how often the renderer is called at which time.

I added a navigation view for forms uwp, to allow navigation to the benchmark page, since the timings were often very small compared to a millisecond on my pc, i put 5 digits for now

Thank you again. Not it is usable on UWP. Not my favorite platform, but the fastest one for testing.
The times are no fixed numbers. More digits, but not always the same amount. And I'm missing a ticks entry to see, how much time is between each call of the drawing routine. Perhaps it is possible to add one.
I assume, that there are to many features counted. If you use the "Add pin sample" you see 36 features, but only 18 are drawn. That's because the 18 features drawn with layer style and again counted in the features loop, even if they have now feature style.
So the questions is: what should features count? Drawn features? Or checked features?
The drawing of tiles seams to be cached in some way. Each first rendering it takes some more time (around 10x) as the next rendering. Even if you move around it is fast.  Perhaps a GC problem.

Thanks for the PR. I am sorry I have not found time for it yet.

I had a look at your pull Request and in my opinion it is great. That you Implemented it on Mobile is great too, because on Desktop you can use a Profiling tool. But on Mobile Devices there is no good Profiler I now of. And often the problems occour on Mobile Devices.
It would be great if you could update your pull request, with the latest changes of Mapsui.

The part  I didn't like is that it needs changes to the core logic in order to measure the performance. My understanding is that this is mainly to test performance during application use. Nevertheless that may be necessary.
The kind of performance test that I would like to have is one where only the speed with which datasources are rendered to the skia canvas are measured. Using BenchmarkDotNet they could be run like unit tests.

I thought many times about this, but didn't get, how to do this. You need a canvas for this and then call the rendering functions of a special part of the map. It isn't very easy to do.

@charlenni We have rendering unit tests where we write in memory geometries to a bitmap using skia. The tests are meant to check for unwanted changes in the rendering. Such tests could be used for performance I assume. Or do you see a problem there? It will not tests every part of the system, but for the renderer part it will have quite clear results.

BenchmarkDotNet would be the Best solution, because than you could compare Performance Checkins. How much they improve Performance or other checkins if they regress it.
Because Profilers add a certain overhead that, skew the results.

Yes, you are right, but now there are some changes, that are very deeply. Think about the benchmarking of the render loop: is it faster to use a render loop or the old approach. I assume, that this is a little bit trickier. All examples that I see for benchmarking are about checking, if one or another function is faster, but not the whole app.

@pauldendulk, @inforithmics: Did you find any guid to use BenchmarkDotNet with Xamarin.Forms? All I found was about using it with console apps.

I made a quick google search and found this.
https://github.com/jonathanpeppers/Xamarin.Forms.Benchmarks
I didn't look at it though,

Yes, you are right, but now there are some changes, that are very deeply. Think about the benchmarking of the render loop: is it faster to use a render loop or the old approach. I assume, that this is a little bit trickier. All examples that I see for benchmarking are about checking, if one or another function is faster, but not the whole app.

The rendering performance tests I had in mind would not measure the behavior of the render loop. So, we need other ways to measure this. Performance tests of the app as a whole will still be useful.
Also it is not always clear what is meant with performance. The most common way is the speed with which a some amount of work is done, like rendering a full map. But for the user there is also something I call perceived performance . The user wants an application to respond immediately to its actions, no lagging and no speed bumps. This could involve making things asynchronous, or lowering the number of render updates.

I have the same opinion. The render/display loop needs to be fast and responsive. The data processing like loading/calculating needs to be done in background processes. The best way to do this is use async/Tasks.

I saw that you added the timer + performance object so i think we dont need this pull request any more ?
Even if we wanted to , i think the base code a probably changed too much for a rebase of this code to be meaningful.
Unless you think there is still interest in this merge request, I am going to close it.

I saw that you added the timer + performance object so i think we dont need this pull request any more ? Even if we wanted to , i think the base code a probably changed too much for a rebase of this code to be meaningful. Unless you think there is still interest in this merge request, I am going to close it.

Okay I will close it. This is also due to the fact that I neglected this PR for so long, sorry for this.


chore: remove scripts we don't need anymore

:tada: This PR is included in version 2.152.5 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Improve umount flow tolerance

This change is

Coverage increased (+3.2%) to 51.752% when pulling a34aac4ed6adf75afab313ab1bd8127018b87791 on fix/umountflow_ignore_already_unmounted_or_cleanned_mp into ea2e066e5008d0de5645ac8a4d3659b2f92a3063 on master.

by mistake its PR to master, so i cancel this PR and create new one for dev


Apply modifiers before export

How to do this? What about modifiers that come after the Armature modifier?

See Blender's FBX export: the context's depsgraph can be used to get an evaluated object of which the mesh has the modifiers applied.
A couple of interesting links that relate to this:
https://docs.blender.org/api/current/bpy.types.Depsgraph.html#dependency-graph-bpy-data-meshes-new-from-object
https://code.blender.org/2016/12/dependency-graph-proposal/
Instead of a simple Mesh.copy a Mesh.new_from_object should work to properly achieve this.

Fixed in 90a7a0a


Store results and show past scores

What and why?
It would be nice if toipe stored the results of each test in a file or a DB on the local system. There could be a screen to display past results - maybe a local leaderboard or a graph tracking speed across time.
How?
TODO. Need to figure out the details.
Context
Suggestion from reddit - https://www.reddit.com/r/rust/comments/tvamfz/comment/i3bqomq/

Hi,
What results specifically would you like to store?
The most obvious and easily available metrics are the accuracy and wpm as they're already part of the ToipeResults structure

@abaksy perhaps it would be good to store the whole of ToipeResults. Any required metric can then be derived from that.

I think CSV should work fine, easily parsable by toipe and is also available to the user for viewing.

I'd be willing to make an attempt on this. Just want to know if serialization is something that is open for discussion, or if manual parsing of the values into CSV is preferred.

Use Serde and then something like a csv parser that can be used with Serde
Make another function under display_results named save_csv and then do the manual conversion in that function.

I'm leaning towards using Serde just because it opens up future expansion for graphing etc. without much, if any, rewriting as most libraries support Serde pretty well. Only issue I know Serde will have is that the started_at and ended_at fields in ToipeResults will have to go because Serde can't serialize std::time::Instant without more external libraries or our own serialization/deserialization implementation. Could just be moved into a single duration: std::time::Duration field and then calculate the Duration before creating the struct.
I'm interested in any thoughts regarding this.

@treatybreaker thank you for taking a crack at this. I prefer the serde solution. I'm assuming that each ToipeResults will be serialized individually and appended to the CSV.

Could just be moved into a single duration: std::time::Duration field and then calculate the Duration before creating the struct.

This is reasonable. Although, along with the duration I would also like to store the start timestamp of the test. Perhaps chrono::DateTime.

Is it possible to capture some of the metrics used in keyboard dynamics? I am particularly interested in dwell (or key-hold) time.
Knowing how long I take to press and release a key on average and maximum (or high percentile) would help me adjust some timeouts I need to specify in tools like Kmonad, Kanata and keyd to support home rowm modifiers. I suppose QMK/ZMK users would benefit too.

@argenkiwi that's an interesting idea! Do you know any examples of typing test apps that have implemented this? To use as a reference

That's what's odd: there seems to be a lot of content related to keystroke dynamics and keystroke metrics, but the focus is on their use in authentication applications, but it seem typing tests focus mostly in WPM and CPM.
I have only been able to find some code snippets on StackOverflow and I made a very simple one myself using Javascript, but it would be ideal if it was processed as part of a typing test because you are incentivized to type with as much accuracy and speed as possible.

Thanks for the research!
To know how long a key is pressed, we would need both the key down and key up events. But turns out that detecting key up events in a terminal app is sadly not possible: https://blog.robertelder.org/detect-keyup-event-linux-terminal/
It's possible in web (like you've shown in JS) and desktop apps though.

That is what I feared. Thank you @Samyak2, it helps me narrow down my search.


replace deprecated Finder API

Finder API is being deprecated: https://creodias.eu/eo-data-finder-api-manual
Also restore these tests.

The Finder API also started returning MultiPolygons with coordinates that have an array depth of 3 instead of 4, causing errors when the geojson was parsed:
https://github.com/Open-EO/openeo-opensearch-client/commit/aadd7c6ea46fe946c80378567c742ae27725d1d7

This one just became more urgent, so I made the first fixes by simply replacing the url.
It seems like they also made some changes to parameters like processingLevel and productType.

Note: I believe creo switched the old url also to the new api, so not necessary for us to immediately change the url everywhere.
We mostly need to fix the product types, processing levels and polarisation attributes that got changed.
Most of this could be done in layercatalog.json, but sentinel1 backscatter had some hardcoded attributes.


Error while running signatureEnrichment

Hi,
I am trying to run the signatureEnrichment function (I followed the steps before getting to this step mentioned in the tutorial) and getting an error message pasted below. I have 2 MAF files (12 samples and 6 samples) and it works on the one with 12 samples without any error.

ic.se = signatureEnrichment(maf = ic_maf, sig_res = ic.sig)
Running k-means for signature assignment..
Performing pairwise and groupwise comparisions..
Sample size per factor in Signature:

Signature_1 Signature_2 Signature_3
1           2           3
Error in .checkTypos(e, names_x) : Object 'Analysis' not found amongst

Hi, to be honest 6 samples is way too low for (de-novo) signature analysis. In your case I would suggest you to use more supervised methods like sigminer or deconstructSigs which provide better estimation of signature loads per samples.


Examples are not present in generated code C# Controller

In the OpenAPI spec I have the possibility to define examples/samples
for DTOs en responses
When generating using yaml => openApiToCSharpController in the generated code the samples are no where to be found.
Am I overlooking a setting, is this something that should work or you are considering?

Maybe this?
https://github.com/RicoSuter/NSwag/issues/2986#issuecomment-700624325


InstaSkip doesn't work

I have set myself as owner, added users to the [DJ] group yet when I try to !skip, it doesn't skip instantly. I'm not getting errors either. Commands like !listids work fine.

Maybe read the help? https://i.imgur.com/M4O0FLU.png

Oops didn't see that. Thanks.


Incorrect icon's CSS specificity by directly using the bit-icon CSS class to apply styles

Incorrect icon CSS specificity by directly using the bit-icon CSS class to apply styles. we have these incorrect situations in a lot of components like this:

not relevant for now


goctl api: custom methods support

Is your feature request related to a problem? Please describe.
I'm designing APIs for a massive system depends on microservices. It's nice not to use any frameworks to ensure flexibility due to LESS IS MORE, but time limits, our team needs to finish our work in an extremely short time. So I choose go-zero as a framework and a tool as well.
Learning from Google's API Improvement Proposals of Custom Methods, it provides a means for an API's vocabulary to adhere to user intent, which can make API definitions more flexible.
E.g.
post /users/:userId:doSomething

But obviously, it conflits with the current path parameter definition.
I hope this is considered in the road map.
Describe the solution you'd like
Some solutions in my opinion:

Use {} to define path parameters

post /users/{userId}:doSomething

Easy to implement but it's not forward-compatible.

Leave it as is

post /users/:userId:doSomething

It's hard to deal with some edge cases.
Describe alternatives you've considered
Provide an option to add some custom routes in routes.go.
Additional context
I'm glad to offer help once I'm available.

First of all, I understand your thoughts and appreciate your feedback, but from a compatibility perspective and in the long run, this is not planned to be supported because this is go-zero's design and we will not change the original design to break compatible.

got it.
I'll try figuring out a workaround. thanks for you reply.


[CVAT integration] Add Recording Oracle example

Description

This PR replaces/adds the old CVAT integration example with a new one, that allows to annotate bounding boxes and points.
Summary of changes

examples/cvat/recording-oracle is completely replaced with a new implementation

How test the changes

No unit tests added yet, it needs to be done. Please contact me about instructions if you want to test the changes.
Related issues
Keywords for linking issues

Operational checklist

[ ] All new functionality is covered by tests
[ ] Any related documentation has been changed or added

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Site area without charging station must not be sent

Should be finally fixed in https://github.com/LucasBrazi06/ev-server/pull/1683

Should be finally fixed in LucasBrazi06/ev-server#1683

I believed it was already fixed last friday, what went wrong?

Should be finally fixed in LucasBrazi06/ev-server#1683

I believed it was already fixed last friday, what went wrong?

At the connector OCPI location level, duplicated records was sent for each OCPI evse connector.
The root cause is that at the site area level, the code was still adding site areas with no charging stations. It's not strictly speaking the very same issue but it's really strongly related to the previous changes to fix it that have reveal the records duplication.

Should be finally fixed in LucasBrazi06/ev-server#1683

I believed it was already fixed last friday, what went wrong?

At the connector OCPI location level, duplicated records was sent for each OCPI evse connector.
The root cause is that at the site area level, the code was still adding site areas with no charging stations. It's not strictly speaking the very same issue but it's really strongly related to the previous changes to fix it that have reveal the records duplication.

Ok thanks!
Do you think that this kind of issue could have been found on our QA system where we have a test tenant with Gireve?

Should be finally fixed in LucasBrazi06/ev-server#1683

I believed it was already fixed last friday, what went wrong?

At the connector OCPI location level, duplicated records was sent for each OCPI evse connector.
The root cause is that at the site area level, the code was still adding site areas with no charging stations. It's not strictly speaking the very same issue but it's really strongly related to the previous changes to fix it that have reveal the records duplication.

Ok thanks!
Do you think that this kind of issue could have been found on our QA system where we have a test tenant with Gireve?

Sure, most of the latest OCPI issues can be unit tested.

@fcoutellier As discussed, it would be nice to have unit tests on OCPI (at least the most important ones)


[WIP] Introduce new cloud specific ControlPlane resource in shoot control flow

What this PR does / why we need it:
Create/Delete new cloud specific ControlPlane resource with purpose set to exposure. It triggers the new control plane controllers for the exposure settings.
Which issue(s) this PR fixes:
gardener/gardener-extensions#233
Special notes for your reviewer:
Release note:

Introduce new cloud specific ControlPlane resource in shoot control flow

Rename https://github.com/gardener/gardener/blob/master/pkg/utils/kubernetes/kubernetes_test.go#L279-L280

Why should this tests be renamed? They are validating a method ValidDeploymentContainerImageVersion(...) which I do not think is related to the AWS components (the method is not used in gardener/gardener project). The test data is named "aws-lb-readvertiser". What about rename the test data?

Yes, I meant renaming the test data, sorry for being not accurate enough. :)


[release-1.5] Fix flaky test by using EqualUnsorted to compare Events

This is a manual cherry-pick of 5d91f0a3c47af743b22f315b1b15c7c4db2a86c8
It should fix the release-previous CI flakes.
NONE

/cherry-pick-approve


feat(images): use containers instead of /system/df to check unused im…

…ages
Fix #1144

An image is available for this implementation via portainer/portainer:pr1144 (Linux amd64 build)


Sticky tab collapsing header

#skip_new_tests

<3

:rocket: PR was released in v1.18.36 :rocket:


treasury / treasury handler / rescue tokens

Description of PR:

Adds feeRecipient to TokenWrapper.sol.
In the wrapping methods in TokenWrapper.sol sends the fee to the feeRecipient instead of the TokenWrapper
Adds a method setFeeRecipient to GovernedTokenWrapper.sol. This method can only be executed through the TokenWrapperHandler via the SignatureBridge
Updates to the relevant TS classes
Adds Treasury.sol, ITreasury.sol, and TreasuryHandler.sol.
Adds a receive function to the Treasury so it can receive wrapping fees (and therefore act as a treasury)
Adds rescueTokens method to Treasury.sol. rescueTokens can rescue both ERC20 tokens and native ETH
Tests for rescueTokens method is in signatureBridgeSide.test.ts
Updated existing tests that were breaking due to step 2) (sending the wrapping fee to the feeRecipient means that the balance of ERC20 tokens / ETH in theTokenWrapper is different now).

Tests not passing yet

Tests not passing yet

Yea, something is wrong, I'm trying to figure out what.


Move away from jcenter since it'll be shutdown on May 1st 2021

Hi!
According to JFrog, jcenter will set sunset on May 1, 2021.
Here is the announcement.

CircularProgressBar is always available on maven. So in theory it's not a problem.
https://dl.bintray.com/lopspower/maven/com/mikhaellopez/circularprogressbar/

Hi @lopspower  sorry to "at" you, This bintray URL is now responding 401 Forbidden now
Gradle can't get this library by added maven(url = "https://dl.bintray.com/lopspower/maven") in build.gradle.

Hello, you are right.  A new dependency must be created on mavenCentral before February 2022. The current version remains accessible on jCenter.

Sorry for the delay 🙏
The version 4.3.0 is now available on MavenCentral :
implementation 'com.mikhaellopez:circularimageview:4.3.0'


MGMT-1594 remove unused ImageBuilderCmd overwrite hack

it was used to run a dummy iso generation without pushing it to s3 for testing

Ran 46 of 46 Specs in 721.577 seconds
SUCCESS! -- 46 Passed | 0 Failed | 0 Pending | 0 Skipped
--- PASS: TestSubsystem (721.58s)
PASS


Cannot wezterm connect to remote with wezterm installed from linuxbrew.

As the title, wezterm connect remote is not successful if using linuxbrew.
More specifically, I notice there is no wezterm-mux-server command when installed with linuxbrew.
Installing with debian package works fine.
The error log for wezterm installed with linuxbrew is:
2021-11-30T15:42:44.082Z ERROR wezterm_client::client > going to run wezterm cli proxy
 2021-11-30T15:42:44.082Z INFO  wezterm_gui::termwindow > OpenGL initialized! Intel(R) UHD Graphics 617 4.1 INTEL-18.2.10 is_context_loss_possible=false wezterm version: 20210814-124438-54e29167
 2021-11-30T15:42:44.244Z ERROR wezterm_client::client  > Error while decoding response pdu: decoding a PDU: reading PDU length: EOF while reading leb128 encoded value
 2021-11-30T15:42:44.244Z ERROR wezterm_client::client  > ssh stderr: zsh:1: command not found: wezterm

 2021-11-30T15:42:44.250Z ERROR wezterm_gui             > Please install the same version of wezterm on both the client and server! The server reported error 'Error while decoding response pdu: decoding a PDU: reading PDU length: EOF while reading leb128 encoded value' while being asked for its version.  This likely means that the server is older than the client.
; terminating
 2021-11-30T15:42:44.250Z ERROR mux::connui             > while running ConnectionUI loop: recv_timeout: channel is empty and disconnected

It sounds like the remote host doesn't have wezterm in the path.  What version of wezterm do you have installed on the server and the client? (wezterm --version)

wezterm 20210814-124438-54e29167 is the same version as installed from debian package or linuxbrew. Install either way I can see that wezterm is in PATH, but wezterm-mux-server is only available if install wezterm through Deb.


Question: is encode sample up to date with latest encoder specs updated in latest NV VK dev drv?

Hi,
Seeing latest nv vk dev drv release notes:
VK_KHR_video_encode_queue version update 8->9
VK_EXT_video_encode_h264 version update 10->11
As they seem to bring some “big” changes (i.e. incompatible with older revision drivers?) I’m asking if the encode sample here is compatible with latest NV vk dev drv?
in case not, is being updated soon?
just asking before trying to build the encode sample and seeing not working..
thanks..

Yes, oscarbg, main branch is now aligned with the latest Vulkan spec.


PlatformMenuItems with onSelectedIntent are never enabled

Steps to Reproduce

Execute flutter run -d macos on the code sample on a macOS machine
Press the + button in the app a few times to increment the counter
Press cmd + 0 to demonstrate the counter responds to intents by resetting the counter
Press cmd + = to attempt to incerment the counter
Check the Edit menu in the macOS menu bar. Note that only Reset is enabled

Expected results:
PlatformMenuItems with .onSelectedIntent should be enabled and dispatch the specified intent when selected.
Actual results:
PlatformMenuItems with .onSelectedIntent are stuck in a disbled state and can never be used.

Code sample

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

enum CounterOp {
  increment,
  reset,
}

class CounterIntent extends Intent {
  const CounterIntent(this.op);
  final CounterOp op;
}

class CounterAction extends Action<CounterIntent> {
  CounterAction({
    required this.increment,
    required this.reset,
  });

  final VoidCallback increment;
  final VoidCallback reset;

  @override
  Object? invoke(CounterIntent intent) {
    switch (intent.op) {
      case CounterOp.increment:
        increment();
        break;
      case CounterOp.reset:
        reset();
        break;
    }
    return null;
  }
}

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return PlatformMenuBar(
      menus: [
        const PlatformMenu(
          label: '',
          menus: [],
        ),
        PlatformMenu(
          label: 'Edit',
          menus: [
            const PlatformMenuItem(
              label: 'Increment',
              shortcut: SingleActivator(
                LogicalKeyboardKey.equal,
                meta: true,
              ),
              // onSelected: () {
              //   Actions.maybeInvoke(
              //     primaryFocus!.context!,
              //     const CounterIntent(CounterOp.increment),
              //   );
              // },
              onSelectedIntent: CounterIntent(CounterOp.increment)
            ),
            PlatformMenuItem(
              label: 'Reset',
              shortcut: const SingleActivator(
                LogicalKeyboardKey.digit0,
                meta: true,
              ),
              onSelected: () {
                Actions.maybeInvoke(
                  primaryFocus!.context!,
                  const CounterIntent(CounterOp.reset),
                );
              },
            ),
          ],
        ),
      ],
      child: MaterialApp(
        title: 'Flutter Demo',
        theme: ThemeData(
          primarySwatch: Colors.blue,
        ),
        home: const MyHomePage(title: 'Flutter Demo Home Page'),
      ),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;

  void _increment() {
    setState(() {
      _counter++;
    });
  }

  void _reset() {
    setState(() {
      _counter = 0;
    });
  }

  @override
  Widget build(BuildContext context) {
    return Actions(
      actions: {
        CounterIntent: CounterAction(
          increment: _increment,
          reset: _reset,
        ),
      },
      child: Focus(
        autofocus: true,
        child: Scaffold(
          appBar: AppBar(
            title: Text(widget.title),
          ),
          body: Center(
            child: Column(
              mainAxisAlignment: MainAxisAlignment.center,
              children: <Widget>[
                const Text(
                  'You have pushed the button this many times:',
                ),
                Text(
                  '$_counter',
                  style: Theme.of(context).textTheme.headlineMedium,
                ),
              ],
            ),
          ),
          floatingActionButton: FloatingActionButton(
            onPressed: _increment,
            tooltip: 'Increment',
            child: const Icon(Icons.add),
          ),
        ),
      ),
    );
  }
}

Logs

Note: XCode build output excluded due to github comment character limits.
[ +529 ms] VM Service URL on device: http://<IP_ADDRESS>:49924/0ptorkDYu64=/
[   +3 ms] Caching compiled dill
[  +13 ms] Connecting to service protocol: http://<IP_ADDRESS>:49924/0ptorkDYu64=/
[  +70 ms] Launching a Dart Developer Service (DDS) instance at http://<IP_ADDRESS>:0, connecting to VM service at http://<IP_ADDRESS>:49924/0ptorkDYu64=/.
[  +80 ms] DDS is listening at http://<IP_ADDRESS>:49927/HJT48nSidt4=/.
[  +24 ms] Successfully connected to service protocol: http://<IP_ADDRESS>:49924/0ptorkDYu64=/
[  +13 ms] DevFS: Creating new filesystem on the device (null)
[   +6 ms] DevFS: Created new filesystem on the device (file:///var/folders/4c/fxvr7v8s4q93hmm6lhv31yl00000gn/T/com.example.flutterReproPlatformmenuitem/flutter_repro_platformmenuitems9E3sG/flutter_repro_platformmenuitem/)
[        ] Updating assets
[  +46 ms] Syncing files to device macOS...
[        ] Compiling dart to kernel with 0 updated files
[        ] Processing bundle.
[        ] <- recompile package:flutter_repro_platformmenuitem/main.dart 67945d88-a29d-44a5-b726-1cbc6dc8e387
[        ] <- 67945d88-a29d-44a5-b726-1cbc6dc8e387
[        ] Bundle processing done.
[  +40 ms] Updating files.
[        ] DevFS: Sync finished
[        ] Syncing files to device macOS... (completed in 43ms)
[        ] Synced 0.0MB.
[        ] <- accept
[   +1 ms] Connected to _flutterView/0x138829c20.
[   +1 ms] Flutter run key commands.
[        ] r Hot reload. 🔥🔥🔥
[        ] R Hot restart.
[        ] h List all available interactive commands.
[        ] d Detach (terminate "flutter run" but leave application running).
[        ] c Clear the screen
[        ] q Quit (terminate the application on the device).
[        ] A Dart VM Service on macOS is available at: http://<IP_ADDRESS>:49927/HJT48nSidt4=/
[ +187 ms] The Flutter DevTools debugger and profiler on macOS is available at: http://<IP_ADDRESS>:9103?uri=http://<IP_ADDRESS>:49927/HJT48nSidt4=/
[+9800 ms] Service protocol connection closed.
[        ] Lost connection to device.
[        ] DevFS: Deleting filesystem on the device (file:///var/folders/4c/fxvr7v8s4q93hmm6lhv31yl00000gn/T/com.example.flutterReproPlatformmenuitem/flutter_repro_platformmenuitems9E3sG/flutter_repro_platformmenuitem/)
[ +253 ms] Ignored error while cleaning up DevFS: TimeoutException after 0:00:00.250000: Future not completed

[   +3 ms] "flutter run" took 21,910ms.
[  +57 ms] ensureAnalyticsSent: 55ms
[        ] Running 1 shutdown hook
[   +1 ms] Shutdown hooks complete
[        ] exiting with code 0

Analyzing flutter_repro_platformmenuitem...
No issues found! (ran in 3.8s)

[✓] Flutter (Channel master, 3.9.0-1.0.pre.15, on macOS 13.1 22C65 darwin-arm64, locale en-US)
    • Flutter version 3.9.0-1.0.pre.15 on channel master at /Users/joshuamatthews/.fvm/versions/master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 59ea58b293 (14 minutes ago), 2023-03-02 11:03:48 -0500
    • Engine revision a3031df023
    • Dart version 3.0.0 (build 3.0.0-287.0.dev)
    • DevTools version 2.22.2

[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    • Android SDK at /Users/joshuamatthews/Library/Android/sdk
    • Platform android-32, build-tools 32.1.0-rc1
    • Java binary at: /Users/joshuamatthews/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/221.6008.13.2211.9619390/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
    • Xcode at /Applications/Xcode-14.2.0.app/Contents/Developer
    • Build 14C18
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.1)
    • Android Studio at /Users/joshuamatthews/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/221.6008.13.2211.9514443/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)

[✓] Android Studio (version 2022.1)
    • Android Studio at /Users/joshuamatthews/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/221.6008.13.2211.9619390/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)

[✓] IntelliJ IDEA Community Edition (version 2022.3.2)
    • IntelliJ at /Users/joshuamatthews/Library/Application Support/JetBrains/Toolbox/apps/IDEA-C/ch-0/223.8617.56/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.76.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.58.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-arm64   • macOS 13.1 22C65 darwin-arm64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 110.0.5481.177

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Video
https://user-images.githubusercontent.com/1316184/222491374-cec10cdc-af72-44c9-9222-59b10bb89113.mov
Root cause
The cause is almost certainly this line in PlatformMenuItem.serialize, which only considers whether onSelected has been set to determine whether the item is enabled. Changing the condition to item.onSelected != null || item.onSelectedIntent != null fixes the issue. I'm happy to submit a fix as a PR, just working on getting the tests running locally so I can update them first.

Thanks for the report. I was able to replicate the behavior using latest versions.

 stable, master flutter doctor -v
[!] Flutter (Channel stable, 3.7.5, on macOS 12.2.1 21D62 darwin-x64, locale
    en-GB)
    • Flutter version 3.7.5 on channel stable at
      /Users/dhs/documents/fluttersdk/flutter
    ! Warning: `flutter` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/flutter, which is not inside
      your current Flutter SDK checkout at
      /Users/dhs/documents/fluttersdk/flutter. Consider adding
      /Users/dhs/documents/fluttersdk/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/dart, which is not inside your
      current Flutter SDK checkout at /Users/dhs/documents/fluttersdk/flutter.
      Consider adding /Users/dhs/documents/fluttersdk/flutter/bin to the front
      of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision c07f788888 (7 days ago), 2023-02-22 17:52:33 -0600
    • Engine revision 0f359063c4
    • Dart version 2.19.2
    • DevTools version 2.20.1
    • If those were intentional, you can disregard the above warnings; however
      it is recommended to use "git" directly to perform update checks and
      upgrades.

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] VS Code (version 1.62.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.21.0

[✓] Connected device (5 available)
    • SM G975F (mobile)       • RZ8M802WY0X • android-arm64   • Android 11 (API 30)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 98.0.4758.80

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

[!] Flutter (Channel master, 3.9.0-1.0.pre.30, on macOS 12.2.1 21D62 darwin-x64,
    locale en-GB)
    • Flutter version 3.9.0-1.0.pre.30 on channel master at
      /Users/dhs/documents/fluttersdk/flutter
    ! Warning: `flutter` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/flutter, which is not inside
      your current Flutter SDK checkout at
      /Users/dhs/documents/fluttersdk/flutter. Consider adding
      /Users/dhs/documents/fluttersdk/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/dart, which is not inside your
      current Flutter SDK checkout at /Users/dhs/documents/fluttersdk/flutter.
      Consider adding /Users/dhs/documents/fluttersdk/flutter/bin to the front
      of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 902dac4763 (2 hours ago), 2023-03-02 18:40:14 -0800
    • Engine revision 2be41c6d01
    • Dart version 3.0.0 (build 3.0.0-288.0.dev)
    • DevTools version 2.22.2
    • If those were intentional, you can disregard the above warnings; however
      it is recommended to use "git" directly to perform update checks and
      upgrades.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 13C100
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] IntelliJ IDEA Ultimate Edition (version 2021.3.2)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 65.1.4
    • Dart plugin version 213.7228

[✓] VS Code (version 1.62.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.29.0

[✓] Connected device (3 available)
    • Darshan's iphone (mobile) • 21150b119064aecc249dfcfe05e259197461ce23 • ios
      • iOS 15.3.1 19D52
    • macOS (desktop)           • macos                                    •
      darwin-x64     • macOS 12.2.1 21D62 darwin-x64
    • Chrome (web)              • chrome                                   •
      web-javascript • Google Chrome 109.0.5414.119

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] VS Code (version 1.62.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.21.0

[✓] Connected device (5 available)
    • SM G975F (mobile)       • RZ8M802WY0X • android-arm64   • Android 11 (API 30)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 98.0.4758.80

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.


.target(name: "Package name"), in dependencies is not supported.

What happened?
Getting errors while parsing the top-level Package.swift file.
$ dependency-graph Packages/MyApp

Error: Failed parsing dumped Package.swift file at /myapp-master/Packages/MyApp/Package.swift:
dataCorrupted(Swift.DecodingError.Context(codingPath: [
CodingKeys(stringValue: "targets", intValue: nil),
_JSONKey(stringValue: "Index 0", intValue: 0),
CodingKeys(stringValue: "dependencies", intValue: nil),
_JSONKey(stringValue: "Index 0", intValue: 0)
],
debugDescription: "Unsupported keys: ",
underlyingError: nil))

What are the steps to reproduce?
Add a target dependency with below syntax: .target(name: "MyAppAccessibility"),
For example:
targets: [
        .target(
            name: "ChocoIOSApp",
            dependencies: [
                .target(name: "MyAppAccessibility"),
                .product(name: "FoundationThing", package: "Thing"),
            ]
        )
]

If I change .target(name: "MyAppAccessibility"), to "MyAppAccessibility", the tool can parse the file, but I have too many package files with the same syntax. So the next file fails.
What is the expected behavior?
dependency-graph should be able to parse the .target(name: "") syntax.

@jazz-mobility Thanks for reporting the issue. I believe this is solved by #13.

Thanks for the quick fix. I can confirm it works with 1.1.1. 🚀


Specify displayName when forwarding ref

Specifying a function name improves React DevTools.
Instead of ForwardRef, ForwardRef(styledComponent) will be displayed on React DevTools
React docs: https://reactjs.org/docs/forwarding-refs.html#displaying-a-custom-name-in-devtools
React DevTools change:
Before:

After:

@geelen @mxstbr @kitten @probablyup Thoughts?

I actually made a PR against DevTools to do this in a better way and we’re just waiting for release: https://github.com/facebook/react-devtools/commit/69d137c7feb95c1559ffe54045d518fb86e19e05

@probablyup Cool, then we can close this one.


Get interface implementations and interfaces that extend an interface

Need:

Getting interface implementations.
Getting interfaces that extend an interface.

Also other stuff:

Easier way to get base class (without looking at the extends keyword)... might need to think about this more though because of mixins.
More?

Isn't this basically a duplicate of #80? How did I end up with two duplicates for that? There is a point in here about making it easier to get a base class easily, but that should be resolved in a different issue and I'm still not sure how that would work with mixins.


fix(avoidance): fix invalid vector access

Description
Fix invalid vector access.

Tests performed

Psim
Effects on system behavior

Nothing.
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.

[x] I've confirmed the contribution guidelines.
[x] The PR follows the pull request guidelines.

In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.

[ ] The PR follows the pull request guidelines.

Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.

[ ] There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

:pray:


Fixes #556 - Free the pn_data_t reference in qd_server_config_free

Codecov Report

Merging #560 (492d143) into main (7b71aa5) will decrease coverage by 0.00%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #560      +/-   ##
==========================================
- Coverage   25.08%   25.07%   -0.01%
==========================================
  Files         116      116
  Lines       28856    28856
  Branches     4686     4686
==========================================
- Hits         7238     7237       -1
  Misses      20650    20650
- Partials      968      969       +1

Flag
Coverage Δ

unittests
25.07% <ø> (-0.01%)
:arrow_down:

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

Impacted Files
Coverage Δ

src/connection_manager.c
19.72% <ø> (ø)

src/router_core/address_watch.c
73.86% <0.00%> (-1.14%)
: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 7b71aa5...492d143. Read the comment docs.


Required schema properties possibly not matching spec

Howdy! I'm getting some errors when I try to load our contracts up with openapi-enforcer, and I'm a bit confused, because we can load them successfully into various other validators and tools. The error I'm getting (for hundreds of routes) looks something like this:
EnforcerException: One or more errors exist in the OpenApi definition
    at: paths
      at: /things > get > responses > 200 > content > application/json
        at: schema > items
          Properties not allowed: properties, required
          Missing required property: type

It looks like it's expecting a different object at that point, or possibly just that is being overly strict on it's requirements? I'm not sure whether this is related, but it looks like type, at least, should not be required.
Is there wriggle room in the spec for our contracts to be valid for some validators and not others? Or does that look like a bug in our contracts?
Thanks for the help!

I'm going to close this due to inactivity. Let me know if I can help in the future.


Fix the arguments to call_read_only_contract_func

I was going through the "Hello World" tutorial, and when calling:
stx call_read_only_contract_func -t <my address> hello-world echo-number 5000 1 <my private key>
I was getting the error:
Error: Error calling read-only function. Response 400: Bad Request. Attempted to fetch http://testnet-master.blockstack.org:20443/v2/contracts/call-read/ST16YF3PEV0YE6KER7JSJVSEYY2A3CGF43MZBX44K/hello-world/echo-number and failed with the message: ""
Called stx call_read_only_contract_func --help, and realized the arguments in the tutorial didn't match the expected ones.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

thanks for creating this fix. I just merged this fix in a different PR, so closing it out.
🙏🏼

It looks like this issue is back in the tutorial.


earthly: 0.6.9 -> 0.6.10

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/earthly/earthly/releases.
meta.description for earthly is: "Build automation for the container era"
meta.homepage for earthly is: "https://earthly.dev/"
meta.changelog for earthly is: "https://github.com/earthly/earthly/releases/tag/v0.6.10"
Updates performed

Golang update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
Warning: no invocation of /nix/store/jdz752hy9cxpfj5iq6rrsxl5zkm52cbb-earthly-0.6.10/bin/earthly had a zero exit code or showed the expected version
Warning: no invocation of /nix/store/jdz752hy9cxpfj5iq6rrsxl5zkm52cbb-earthly-0.6.10/bin/earthly-shellrepeater had a zero exit code or showed the expected version
Warning: no invocation of /nix/store/jdz752hy9cxpfj5iq6rrsxl5zkm52cbb-earthly-0.6.10/bin/docker2earth had a zero exit code or showed the expected version
Warning: no invocation of /nix/store/jdz752hy9cxpfj5iq6rrsxl5zkm52cbb-earthly-0.6.10/bin/earthly-debugger had a zero exit code or showed the expected version
0 of 4 passed binary check by having a zero exit code.
0 of 4 passed binary check by having the new version present in output.
found 0.6.10 with grep in /nix/store/jdz752hy9cxpfj5iq6rrsxl5zkm52cbb-earthly-0.6.10
found 0.6.10 in filename of file in /nix/store/jdz752hy9cxpfj5iq6rrsxl5zkm52cbb-earthly-0.6.10

Rebuild report (if merged into master) (click to expand)

2 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
1 x86_64-darwin rebuild(s)

First fifty rebuilds by attrpath
earthly

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/jdz752hy9cxpfj5iq6rrsxl5zkm52cbb-earthly-0.6.10 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A earthly https://github.com/r-ryantm/nixpkgs/archive/d753ad72af63f59311f1206c92fb911a3f2707d0.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/jdz752hy9cxpfj5iq6rrsxl5zkm52cbb-earthly-0.6.10
ls -la /nix/store/jdz752hy9cxpfj5iq6rrsxl5zkm52cbb-earthly-0.6.10/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

earthly

Maintainer pings
cc @zoedsoupe @kalbasit for testing.

LGTM


Client push is not supported. You can only use masterKey to send push notifications.

From https://github.com/ParsePlatform/parse-server/wiki/Push, "Client push is not supported. You can only use masterKey to send push notifications".
Is there any reason? Is a contribution about it welcome?

It is not secure to allow clients to send push notifications directly, because then any one who has your app id can send/spam to your users.  It has been default-off and not recommended on Parse for a very long time.
The best way to solve this is to have the users call a cloud function, and send the push from there using the master key.  JS example code available here: https://github.com/ParsePlatform/parse-server/wiki/Push#4-send-push-notifications


Added free link for SLO Adoption and Usage in SRE

I found that Google is now hosting this content directly too.

Thanks @kurta 🙌


fix: add public_network_access_enabled to adapt azurerm 4.x + provider

fix: add public_network_access_enabled to adapt azurerm 4.x + provider

I would add a versions.tf file. Besides that, if you need to declare outputs, I would declare it in outputs.tf
As terraform docs explain: https://www.terraform-best-practices.com/code-structure#getting-started-with-the-structuring-of-terraform-configurations

I'm not using outputs here, but I will define a versions.tf as suggests


Fix typo

It should beobject instead of schema
resolves #

Description

Checklist

[x] I have signed the CLA
[ ] I have run this code in development and it appears to resolve the stated issue
[x] This PR includes tests, or tests are not required/relevant for this PR
[ ] I have run changie new to create a changelog entry

Moved the fix to #442
Thanks a lot for your contribution!


About Us Page Lo-fi &Hi-fi and Admin Notification page

https://www.figma.com/file/uqeUs1DLRBelrncME2MRYl/my_debtors-product-design?node-id=1%3A3

https://www.figma.com/file/uqeUs1DLRBelrncME2MRYl/my_debtors-product-design?node-id=1%3A3
contributed in perfecting the about us page


chromium: expose pepperFlash version option

Motivation for this change
I wanted to get pepperFlash working with Chromium, but the version in 19.03 is no longer available - old versions are removed very quickly upstream. I pulled the Chromium package into an overlay and set it up this way so that I could update the flash version easily in the face of future upstream updates. With this change applied, it's possible to:
  nixpkgs.config.chromium = {
    enablePepperFlash = true;
    pepperFlashVersion = "...";
    pepperFlashSHA = "...";
  };

in order to update flash.
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[x] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[?] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Chromium from 19.03 works with this change, but I have not tried it from master.
Notify maintainers
cc @bendlas @ivan

Is there a use-case for running any other version of flash, than adobe's latest? If not, I'd rather not build an escape hatch here, but have flashplayer kept up to date in supported releases.
I think a better approach would be to join npapi - flashplayer (from mozilla) and ppapi - flashplayer (from chromium) into a single top-level derivation:

This would join forces to keep flashplayer updated
Overriding the version (like in this PR) could then be done by package overrides

@bendlas I don't have a use-case for anything but latest Flash (although, heaven's defend them, someone might e.g. for development). But Adobe releases new versions (and yanks the immediately previous one) on their own schedule, which means that until there is an override somewhere, nixpkgs will be able to install Flash only some of the time.
As to joining them into a single derivation - how would that work? The two plugins come from different sources and have different hashes.
Moving the ppapi one to a simple top-level derivation, however, makes complete sense to me. Should we do that?

I don't have a use-case for anything but latest Flash (although, heaven's defend them, someone might e.g. for development).

That's my point exactly. If you were to update your own flashplayer, it should be done in a way that your whole system profits, not just chromium. Hence, the flash should go through pkgs, so that it can be updated via regular packageOverride.

As to joining them into a single derivation - how would that work?

I'm envisioning a single version attribute, that would control both npapi and ppapi flash, since, as you say, both versions are simultaneously released by adobe. Two separate hashes, yes. Ideally, it would come with an update script, writing version info to a json file, and/or be able to be updated by bot.
That said, it should still be two separate derviations (since FF doesn't care about ppapi and vice versa), but we should maximise the chances of somebody updating npapi also updating ppapi.

Moving the ppapi one to a simple top-level derivation, however, makes complete sense to me. Should we do that?

I'd say: go for it. We can still do something about npapi later.

This is still important to me, I would prefer that some kind of flashplayer cache be added or used but in lieu of that having the version exposed would help greatly.

flashplayer is deprecated.


Cypress/E2E: Fixed cypress tests

Summary
Fixed cypress test cases
Screenshots

Release Note
NONE

/realease-note-none


Power charging and discharging not presented by Enphase

Hello,
I have Enphase system (Microinverters and battery). I have already configured the system in evcc.xml file.
But the power charging and discharging for battery is not presented as explained in picture below:

In addition, it looks like the battery settings is not working:

Seems like this is not related to the add-on but maybe to the main project https://github.com/evcc-io/evcc.


iPhone 13 Pro Max not loading model

The viewer is not working on iPhone 13 Pro Max. Do you know if it's possible to implement a workaround?

Can you give me a little more information to help me debug -- which browser are you using, and what settings are you passing to the Viewer? From the error it looks like something is going wrong when loading the sorting web worker, but I'm not sure why. Maybe try different browsers to see if that changes anything.

The issue is the same in Safari and Chrome in iPhone 13 Pro Max but it works perfectly in iPhone 13, I believe the issue might be OS related
_viewer = new GaussianSplats3D.DropInViewer({
'threeScene': scene,
'selfDrivenMode': false,
'renderer': renderer,
'camera': camera,
'useBuiltInControls': false,
'ignoreDevicePixelRatio': false,
'gpuAcceleratedSort': false,
'halfPrecisionCovariancesOnGPU': false,
'sharedMemoryForWorkers': false,
'integerBasedSort': true,
'webXRMode': GaussianSplats3D.WebXRMode.None
});

Would it be possible to update your version of iOS and try again? FWIW I have an older iPhone 11, and it's running iOS 17.1 and it seems to work fine.

after updating the ios the issue seems to be fixed :)

Great, I love it when problems fix themselves!


GPU not working

2020-11-05 13:42:47.401128: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
2020-11-05 13:42:47.471487: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library nvcuda.dll
2020-11-05 13:42:47.492254: E tensorflow/stream_executor/cuda/cuda_driver.cc:318] failed call to cuInit: CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected
2020-11-05 13:42:47.495339: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:169] retrieving CUDA diagnostic information for host: DESKTOP-6UFQATQ
2020-11-05 13:42:47.495442: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:176] hostname: DESKTOP-6UFQATQ
For some reason I could not work with you GPU. I checked and everything is in order on the GPU side. Anything, does the GPU need a specific parameter?
2020-11-05 13:41:01.369615: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_100.dll
2020-11-05 13:41:01.370083: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cublas64_100.dll
2020-11-05 13:41:01.372595: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cufft64_100.dll
2020-11-05 13:41:01.373223: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library curand64_100.dll
2020-11-05 13:41:01.374232: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cusolver64_100.dll
2020-11-05 13:41:01.374790: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cusparse64_100.dll
2020-11-05 13:41:01.378329: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudnn64_7.dll
2020-11-05 13:41:01.378963: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1767] Adding visible gpu devices: 0
2020-11-05 13:41:01.379950: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1180] Device interconnect StreamExecutor with strength 1 edge matrix:
2020-11-05 13:41:01.380375: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1186]      0
2020-11-05 13:41:01.383201: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1199] 0:   N
2020-11-05 13:41:01.385446: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1325] Created TensorFlow device (/device:GPU:0 with 6721 MB memory) -> physical GPU (device: 0, name: GeForce RTX 2070 with Max-Q Design, pci bus id: 0000:01:00.0, compute capability: 7.5)

Hi, can you share me with your Python, TensorFlow Keras version? I am now using Python 3.6.5, Tensorflow 1.12.0, Kears 2.2.5.
This is the command  I am using  python .\fawkes\protection.py -d E:\nistimg\test\00002 -g 0
There are many errors like ModuleNotFoundError or str JSONDecodeError...

We uses Tensorflow-1.14.0, Keras-2.3.1. Make sure you install tensorflow-gpu, rather than tensorflow

We uses Tensorflow-1.14.0, Keras-2.3.1. Make sure you install tensorflow-gpu, rather than tensorflow

Thanks!


Synthetics fixes

Support for historic relics and future test types
Support for gRPC client options, with defaults allowing to retrieve large results

Changes from this PR are now included in synthetics over grpc PR https://github.com/kentik/community_sdk_python/pull/115/commits/f50fcf9e8f144fa467f41a09c99c6a2996c1d498

Changes integrated in PR#115


AckOnError Javadoc Polishing

http://stackoverflow.com/questions/43085071/kafka-consumer-exception-and-offset-commits/43094537?noredirect=1#comment73287875_43094537

Merged as https://github.com/spring-projects/spring-kafka/commit/56c8d25ce66f6982188baffc73ac13526c86f5e1


Type: number, Format: float becomes a double in C#

According to https://swagger.io/docs/specification/data-models/data-types/

type
format
Description

number
–
Any numbers.

number
float
Floating-point numbers.

number
double
Floating-point numbers with double precision.

integer
–
Integer numbers.

integer
int32
Signed 32-bit integers (commonly used integer type).

integer
int64
Signed 64-bit integers (long type).

There can be floats as well as doubles, however for the C# generator it seems like both float and double will end up being a double.

Any news?

Any news?

The problem is that float is not handled here:
https://github.com/RSuter/NJsonSchema/blob/master/src/NJsonSchema/Generation/DefaultReflectionService.cs#L75
And here:
https://github.com/RSuter/NJsonSchema/blob/master/src/NJsonSchema.CodeGeneration.CSharp/CSharpTypeResolver.cs#L140
The format is defined however: https://github.com/RSuter/NJsonSchema/blob/master/src/NJsonSchema/JsonFormatStrings.cs

BTW: Double and float seem to be not defined format types for JSON Schema: https://json-schema.org/latest/json-schema-validation.html#rfc.section.7.3

There's another problem with float and double and its about this types scopes - they can be Infinity or NaN, but generated json schema points them as "number" only.
I think its could be a problem when casting json types onto C# Dto objects.


Voice call and Video Call

is it possible to change from voice call into video call or vice versa while currently connected to other peer?

Yes, the process is to call getUserMedia again, add or remove audio or video, and call peerconnection.createOffer again to offer/answer.


2.5.0 reloads network when running userdata scripts

When an EC2 instance boots with userdata that downloads a file from s3, amazon-ec2-net-utils is started, along with credential refresher loop.
cloud-init runs aws s3 cp to get the file, and while the download is running, amazon-ec2-net-utils reloads networkd and the download fails.

Testing shows that this issue is intermittent. The symptoms from the logs show that networkd is reloaded multiple times during boot up of an instance with v2.5.0. This can cause failures in case a cloud-init userdata script is performing networking actions (like fetching from s3) during the reloads.
However repeated testing does not exhibit this behaviour leading me to think that the issue is; Timing related, related to the removal of cleanup from PostExec step, has something to do with the change of the timers to start via systemd Wants= and maybe needs a Before=|After=.

I know that cloud-init is configured differently on EL vs AL, but we encountered a version of this issue on EL (in v2.4.0). The solution I came up with was to make cloud-init configure its network in fallback mode (i.e., without using networkd/networkmanager/etc. and only using dhcpcd). Obviously, this is not something that you can implement here, but I will paste the relevant lines from our build script:
sed -i "s/renderers: .*/renderers: []\n      activators: ['networkd']/" /etc/cloud/cloud.cfg
echo "network: {config: disabled}" >> /etc/cloud/cloud.cfg

This works because the network stack doesn't meaningfully change configuration once amazon-ec2-net-utils takes over, and cloud-init does nothing special to try to persist its "bootleg" IP configuration when configured this way. You will DHCP twice, however, and I don't think this is resolvable with this solution.
The correct solution is either for amazon-ec2-net-utils to use the same files/naming conventions as cloud-init (these are not configurable in cloud-init, sadly), or to change cloud-init to make these configurable enough that this package could drop in a configuration file that switched to and configured cloud-init to use the same network units that amazon-ec2-net-utils manages. If you used the same unit names and were careful that the amazon-ec2-net-utils units were placed in a directory with higher precedence than cloud-init, then cloud-init's initial unit file would just become superseded by amazon-ec2-net-utils, and networkd wouldn't end up dropping any packets (theoretically) because the fields that change wouldn't require down/up'ing the interface.
Symlinks unfortunately don't seem to work because cloud-init writes the unit files, and as the unit files differ slightly in naming and configuration, the system ends up in an undefined state (as you see with this issue), except now networkd knows about the undefined state (and that's worse because now it is conflicting).
I also couldn't get a combination of Wants/After that I was happy with. If you make amazon-ec2-net-utils entirely dependent on cloud-init-local.service, you still have the timing problem with cloud-init.service, and that's arguably worse because cloud-init-local only needs a network to fetch userdata but cloud-init needs it for any user-defined behavior. So you could then make amazon-ec2-net-utils depend on cloud-init and cloud-init-final, but then the userdata configuration cannot benefit from the network stack being up to the standards being done by amazon-ec2-net-utils. If you make cloud-init-local dependent on amazon-ec2-net-utils, you really need it to be dependent on a target due to the dynamic unit instances, and now you need a target that can somehow represent "amazon-ec2-net-utils is done", which makes late attached ENIs (potentially done in user data) have to work differently than designed, and that sucks too.

That is interesting to know. I've been trying to setup some sort of reproducer so that I can catch this bug in the wild. Still investigating. Some code is parked in the trim-changes branch for now.
Definitely worth investigating orchestration between net-utils, and cloud-init since we have seen similar timing issues between cloud-init and IMDS (which net-utils depends on)


Display json on html and more question

I use actix-web and môngdb. How can i display json respond from api please

If you use serde, with the following Rust code:
use serde::Serialize;

#[derive(Template)]
#[template(path = "foo-file")]
struct Json<S: Serialize> {
    foo: S
}

And template:
{{{ serde_json::to_string(&foo).map_err(|_| yarte::Error)? }}}

how can i call template for each a request please ?

In the example directory you have an example

If you want to use the git version, you can use:
In Cargo.toml:
yarte = { git = "https://github.com/botika/yarte", features = ["json"] }

In template:
{{ @json obj }}

It has better performance than the previous solution:
{{{ serde_json::to_string(&obj).map_err(|_| yarte::Error)? }}}

Any other question? Or close it?

can you make a full example please ? such as: get data from mongodb and display with yarte ?

Can use https://github.com/mongodb/mongo-rust-drive.
https://github.com/mongodb/mongo-rust-driver#finding-documents-in-a-collection
And put result in array. I don't know, never use mongodb in Rust.
If you want a good performance use Postgres-sql, I leave you the example and actix-pg benchmarks

I have a function return data from Postgresql like below:
`#[derive(Clone, Debug, Serialize, Deserialize, Queryable)]
pub struct Users {
pub email: String,
pub password: String,
pub created_at: String,
}
#[derive(Serialize, Deserialize, Queryable, Clone)]
pub struct UserList(pub Vec);
impl UserList {
pub fn list() -> Self {
// These four statements can be placed in the top, or here, your call.
use diesel::RunQueryDsl;
use diesel::QueryDsl;
use crate::schema::users::dsl::*;
use crate::db::db_connection::establish_connection;
    let connection = establish_connection();

    let result =
        users
            .limit(10)
            .load::<Users>(&connection)
            .expect("Error loading products");

    // We return a value by leaving it without a comma
    UserList(result)
}

}`
How can i write an handler that list all user (json data respond) please

Not use diesel, not allow multiplexing. Here https://github.com/TechEmpower/FrameworkBenchmarks/blob/master/frameworks/Rust/actix/src/db_pg.rs#L30 the implementation of Postgres Actor. And the handler https://github.com/TechEmpower/FrameworkBenchmarks/blob/master/frameworks/Rust/actix/src/db_pg.rs#L183-L218 .

I know how  to write a handler but i want to ask you is how to display json data return from UserList(result) above. Thank you

If use your User struct:
yarte = { version = "0.8", features=["json"] }

#[derive(Template)]
#[template(src ="{{# each users }}{{ @json this }}{{/each }}")]
struct Template { users: Vec<Users> }

async fn get_template(....) -> future::Ready<HttpResponse, Error> {
  /* Get from database, cache, etc.... */
  match Template { users: /* your users */ }.call() {
    Ok(body) => future::ok(HttpResponse::Ok().content_type("....").body(body),
    Err(err) => future::err(...),
}

My handler.rs is:
use actix_web::{HttpRequest, HttpResponse};
use crate::models::users::UserList;
use yarte::Template;

#[derive(Template)]
#[template(src ="{{# each users }}{{ @json this }}{{/each }}")]
struct Template { users: Vec<Users> }

async fn get_template(....) -> future::Ready<HttpResponse, Error> {
    let list = UserList::list();
  /* Get from database, cache, etc.... */
  match Template { users: list }.call() {
    Ok(body) => future::ok(HttpResponse::Ok().content_type("....").body(body),
    Err(err) => future::err(...),
}

And my main.rs is:
#[actix_rt::main]
async fn main() -> io::Result<()> {
    // Handlebars uses a repository for the compiled templates. This object must be
    // shared between the application threads, and is therefore passed to the
    // Application Builder as an atomic reference-counted pointer.
    HttpServer::new(move || {
        App::new()
            .service(handlers::user_handler::index)
    })
    .bind("<IP_ADDRESS>:8080")?
    .run()
    .await
}

And my template is:
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>Vietlib</title>
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css">
    <!--
</head>

<body>
{{ @json users.name }}
{{ @json users.email }}
</body>
</html>

But it not work for me

Edited, but I recommend that you read this book before you start programming with Rust.

Thank you so much

Can you make an example on display some json data on a page please ? For example , i want to display some users and some ebooks, some articles on homepage (please use some sample json data). Use, ebook, article are json data get respond from server. Thank you so much

https://medium.com/swlh/creating-a-web-and-api-authentication-service-in-rust-55d0b0a848d

Im sorry to disturb you, but i still can not make yarte run with my script, I have updated my script to google driver, can you help me display user data with yarte : template link with follow: /templates/user/list.hbs.
My script query to postgres data and respond all data to json at:  scr/user/routes.rs
Besides, i have custome error at: src/error.rs, which handle all API's error
My script link: https://drive.google.com/open?id=1cTrCZQE8yv8Y2fAvtXOYon-X5HdgDNmh
Thank you so much !
Your template benmark is great , so i still want to use yarte instead of other template engine.

Sorry but I am unemployed, and I also have the misfortune of being born in Spain, my knowledge of English is minimal and I am trapped in Fachiland vacation city.
Throughout the next week I will make a repo with a complete application example with Postgres.

I have a problem and hope you can give me a suggestion:
I have homepage with : header, body and footer. The header contain login link if user not logged in , and display logout link if user logged in. In body , it display all products which query from database. Can I ask you how to make it display logged in link if user not login and when logged IN, it will display logged out link. I have looked into : https://yarte.netlify.app/templating/rust_code.html
but I am not sure how to do it ?
Thank you so much !

Damn man, well with a Boolean, I don't know what has to do with the template.
I don't mean to insult you, but reality isn't always pretty
This is not nodejs or python that looking at stackoverflow and osmosis works, if you do not understand that you need a boolean it is that your mind is not prepared for this level of logic.
Use askama which is more for this type of person, osmosis person, and ask the one who works for ING Direct.


SmartBot frequently excess floods out

The timing needs tweaking for our server.

Delay between messages set to 1 second, let me know if this happens again.


Orders Delivery

HI,
We're struggling with some aspects of the following problem:
a bunch of drivers require to assign to deliver orders consist of fixed start and end times.
After going through most of the examples, I came across bus_driver_scheduling_sat.py fit in most of our requirements such as:

There only fix number of drivers to assign with orders.
The orders suppose to assign to drivers shall not be overlap.
Each order is covered by only 1 driver.
There may be number of orders available greater than number of drivers or vice versus.

The code embedded is running smoothly without any major issue except when there insufficient drivers to assign all the orders which return no solution.
Is there a feasible solution to return partial result
fleet_CP_txt.txt
such as certain orders which cant be assign to be omitted?
I'm using ortools 7.4 and python 3.7
Thanks in advance!

For modeling question, please use the Mailing List instead...


disable batch update dmls

What problem does this PR solve?

Issue Number: close #xxx
What is changed and how it works?
Check List
Tests

Unit test
Integration test
Manual test (add detailed scripts or steps below)
No code

Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note
Please refer to [Release Notes Language Style Guide](https://pingcap.github.io/tidb-dev-guide/contribute-to-tidb/release-notes-style-guide.html) to write a quality release note.

If you don't think this PR needs a release note then fill it with `None`.

/run-all-tests

Codecov Report

:exclamation: No coverage uploaded for pull request base (release-6.1@6cce2ba). Click here to learn what that means.
The diff coverage is n/a.

:exclamation: Current head 8fad43e differs from pull request most recent head f11f75a. Consider uploading reports for the commit f11f75a to get more accurate results

Additional details and impacted files

Flag
Coverage Δ

cdc
68.8978% <0.0000%> (?)

dm
57.5902% <0.0000%> (?)

engine
66.5200% <0.0000%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.
@@               Coverage Diff                @@
##             release-6.1      #8059   +/-   ##
================================================
  Coverage               ?   63.4439%
================================================
  Files                  ?        994
  Lines                  ?     144039
  Branches               ?          0
================================================
  Hits                   ?      91384
  Misses                 ?      45655
  Partials               ?       7000

/run-kafka-integration-tests

/run-verify

/run-kafka-integration-tests

/merge


PR in Spark

Hello there,
I saw the comment on SPARK-2429 but if it finally got resolved or it's still waiting on some updates (I noticed something about a bug in breeze). I am really looking forward to using this - so wanted to check the status.
Thanks!
Krishna.

Hi Krishna,
Thank you for commenting.
We are still tackling to merge it to Spark. And I'd like to finish this issue in a few weeks.
Please wait for a little bit time.
https://github.com/apache/spark/pull/5267
Thanks
Yu

Thank you very much!
On Mon, Jun 15, 2015 at 1:34 PM, Yu ISHIKAWA<EMAIL_ADDRESS>wrote:

Hi Krishna,
Thank you for commenting.
We are still tackling to merge it to Spark. And I'd like to finish this
issue in a few weeks.
Please wait for a little bit time.
apache/spark#5267 https://github.com/apache/spark/pull/5267
Thanks
Yu
—
Reply to this email directly or view it on GitHub
https://github.com/yu-iskw/hierarchical-clustering-with-spark/issues/1#issuecomment-112200485
.

If you have any idea to improve my implementation, we can talk about that at Spark Summit 2015. -- Yu


Esp32 not receiving OSC messages via demo python script

Hello,
I've been trying to get your library to work for some time now, with no success. I'm running the default Arduino ino found in the examples alongside the python script also found in the examples.
I've verified that both devices are on the same network & band, and I've confirmed that the python script is sending the messages to the expected IP / port. The ESP32 device connects just fine, but does not receive any of the sent messages. I have not modified any of the ports, ips, or masks of the example code.
Any ideas as to why the messages may not be coming through? Thank you.

Hi, in my environment, it works.
Can you check network connection again including subnet setting? Because ESP's IP is <IP_ADDRESS> but host is set as <IP_ADDRESS>. If pinging and sending OSC are success (if ESP's serial port says that received OSCs), check firewall setting if you are trying that on Windows.

Thank you for your response. I was able to resolve the issue with some help. Seems like I needed to use a 10.0.X.X subnet with my router. Everything is working well now!


Deprecation warnings should not be printed to the info log when generating the Kotlin DSL API extensions jar

When I deprecated some methods on Gradle's public API, there were test failures, since deprecation warnings were detected when generating the API extensions.
Expected Behavior
No deprecation messages when compiling the Gradle API extensions, even when some Gradle API methods are deprecated
Current Behavior
Deprecation messages are printed on the info log. See this build scan.
17:09:01.243 [INFO] [org.gradle.kotlin.dsl.codegen.ApiExtensionsJarGenerator] w: /Users/username/gradle/build-tool/subprojects/kotlin-dsl/build/tmp/gradle-kotlin-dsl-extensions-520217470497843767814-20190401220000+00008367365626244000963jar/org/gradle/kotlin/dsl/GradleApiKotlinDslExtensions23.kt:39:47: 'VariantTransform' is deprecated. Deprecated in Java
17:09:01.245 [INFO] [org.gradle.kotlin.dsl.codegen.ApiExtensionsJarGenerator] w: /Users/username/gradle/build-tool/subprojects/kotlin-dsl/build/tmp/gradle-kotlin-dsl-extensions-520217470497843767814-20190401220000+00008367365626244000963jar/org/gradle/kotlin/dsl/GradleApiKotlinDslExtensions23.kt:39:153: 'ArtifactTransform' is deprecated. Deprecated in Java
17:09:01.246 [INFO] [org.gradle.kotlin.dsl.codegen.ApiExtensionsJarGenerator] w: /Users/username/gradle/build-tool/subprojects/kotlin-dsl/build/tmp/gradle-kotlin-dsl-extensions-520217470497843767814-20190401220000+00008367365626244000963jar/org/gradle/kotlin/dsl/GradleApiKotlinDslExtensions23.kt:49:47: 'VariantTransform' is deprecated. Deprecated in Java
17:09:01.247 [INFO] [org.gradle.kotlin.dsl.codegen.ApiExtensionsJarGenerator] w: /Users/username/gradle/build-tool/subprojects/kotlin-dsl/build/tmp/gradle-kotlin-dsl-extensions-520217470497843767814-20190401220000+00008367365626244000963jar/org/gradle/kotlin/dsl/GradleApiKotlinDslExtensions23.kt:49:153: 'ArtifactTransform' is deprecated. Deprecated in Java

Context
The issue is not so bad, since the messages are only printed on the debug output. Still, probably they should not be shown at all.
Steps to Reproduce (for bugs)
See the test case in the build scan above: org.gradle.kotlin.dsl.caching.BuildCacheIntegrationTest.build cache integration can be disabled via system property.
Your Environment
See the build scan

Unless it was fixed in some other ticket, the aforementioned issue was making our e2e tests in https://github.com/gradle-nexus/publish-plugin/ projects very verbose for tested Kotlin projects (-i was needed to make Travis-debugging easier).

I can confirm this issue persists with the latest Gradle version. The linked build-scan is gone, but in order to reproduce it just add a DeprecationLogger....nagUser() somewhere in the API's implementation and run the above-mentioned test. (If you also use the @Deprecated annotation, then it will be the compilation that fails, not the test run.)