fix: upgrade dependencies and fix group actions

Hey!
First of all, I have zero experience in building and managing java/kt projects. I just fixed this problem for myself, and I thought I'd share the fix.
This PR fixes an issue with "DebugClass", "RunClass" and others that get identified as GroupAction. Apparently, group actions don't need special treatment anymore, so I just dropped the problematic code path.
Along the way, I updated all dependencies, as well as fixed deprecation warnings.
You can get my personal build here (IDEA 2023.1, built on Mac M1):
ataman-plugin-1.1.0.zip
Fixes #12

Thanks a lot for your contribution! I apologize for review taking so long


Accessibility

Would like to have Accessibility be a first hand consideration, with best practices and documentation out of the box.

[ ] Documentation
[ ] Menu/navigation
[ ] Lightbox/modal with keyboard
[ ] Forms
[ ] Alt tags
[ ] Developer tooling

On Navigation:

https://medium.com/@linlinghao/accessibility-for-hamburger-menu-a37fa9617a89
https://nextjs.org/blog/next-10-2#accessibility-improvements

On Developer tools/docs:

https://www.npmjs.com/package/eslint-plugin-jsx-a11y
https://github.com/dequelabs/axe-core-npm/tree/develop/packages/react
https://web.dev/accessibility-auditing-react/
https://reactjs.org/docs/accessibility.html


convertion of files with a set of formats to eachother

I've been trying to use this library from I came to find on gitcomposer to convert a set of audi/video formats to eachother. To give you more insight on what I want to do I'm gonna make use of an example.
Imagine there's an application that has a file on a server with mp4 format and I want the server to automatically create the same file with other formats such as m4v, ogv, webm and webmv using this library and if the application has any other format in this set like webm, I want the server to convert that file to other formats in the mentioned set which are m4v, ogv, webmv and mp4 formats.
I've studied the article below which gives a detailed guide on how this can be done via mentioned library but it get quite confusing for me so I wanted to know whether there was another simpler and quicker way to do this without taking special cases about codec type into account or not?
Thank you for your time in advance

I'm sorry, but I do not write any code for you. You're looking for a file watcher basically.


TFLM: Remove uint8 support for CMSIS-NN kernels

Some CMSIS-NN kernels are still having uint8 support.

Remove uint8 support for remaining CMSIS-NN kernels.
Remove uint8 support for equivalent reference kernels.
Remove uint8 unit tests for equivalent kernels.
Replace uint8 default model in network tester to a int8 model.

This is a fix for: https://github.com/tensorflow/tensorflow/issues/48757

@mansnils Can you please resolve conflicts? Thanks!

@njeffrie ping for review

@njeffrie ping for review

Unfortunately, this PR had to be reverted because it (unexpectedly) made the detection_postprocess kernel fail on bluepill.
Here is a PR that reverts the revert and we can recreate the failure: https://github.com/tensorflow/tensorflow/pull/49485
Its not clear to me why the CI passed for the current PR since it is failing for me 100% of the time.

Also, when you make a new PR, can you also remove
https://github.com/tensorflow/tensorflow/blob/5177e09c9f302372137f28ab7798a8a413c352f7/tensorflow/lite/micro/tools/make/Makefile#L445


If no initial value is defined for Checkbox it does not behaves as expected

Current Behavior 😯
When a Checkbox does not have a value and in an indeterminate state it changes its value to ["on"] rather than true or false for the first click then for a second click it stays selected but with value [] and you cannot change that with more clicks. If I reset the form after the second click it changes its bahavior and works as expected but the reset only solves this after the second click.
Expected Behavior 🤔
After the indeterminate state it should either be true or false for the clicks. It worked like that with MUI v4.
Steps to Reproduce 🕹
Define a Checkbox without setting its value. See the following codesandbox.

I have the same issue with the Switch component. It either receives [] (unchecked) or ["on"].

The initial value is required. Without it you will be switching from a uncontrolled to controlled component hence the warning in your codesandbox console

Secondaly Formik has special handling for checkboxes
https://github.com/jaredpalmer/formik/blob/b9cc2536a1edb9f2d69c4cd20ecf4fa0f8059ade/packages/formik/src/Formik.tsx#L1137
The best we can do in this case if varn the user if we get an undefined value


Bug: If the anchor is after the focus, the selected nodes cannot be retrieved correctly

This issue describes the bug fixed in #3966.
Lexical version: 0.8.1
Steps To Reproduce

Open https://playground.lexical.dev/
Delete all entered text
Enter multiple lines of text after an empty line; Use Shift+Enter to break lines or turn off rich text to avoid separating paragraphs
Select from the middle of the text to the top

The current behavior
You can see in the Debug view that the getNodes method of RangeSelection retrieves completely different nodes from the selected range.
The anchor is after the focus and the selected nodes cannot be retrieved correctly.

If the selection is made from top to bottom and the anchor is before the focus, the selected nodes can be retrieved correctly.

The getNodes method does not take into account the possibility that the anchor may be after the focus at all, so it may not get the selected nodes correctly, even outside of the case shown here.
The expected behavior
It is expected that the selected nodes will be retrieved correctly regardless of whether the anchor is before or after the focus.
In both cases, the nodes retrieved should be the same.

It's working fine for me even if the selection is backwards

@wingedrasengan927
This is because the first empty line is in a different paragraph than the lines that follow.
Try all lines as one paragraph.


Parallel computing toolbox fails

Hello,
In my workflow on ubuntu-latest, run-command using parfor fails with the following message. It worked with no problem before.
Thank you for having a look.
Best regards,
Zaikun
Starting parallel pool (parpool) using the 'Processes' profile ...

  [Warning: Cannot cancel or destroy a job that was not created by this Local
  cluster.]
  [> In parallel.cluster.Local/cancelOrDestroyJob (line 34)
  In parallel.cluster/Local/hCancelJob (line 312)
  In parallel.internal.cluster.CJSJobMethods.cancelOneJob (line 51)
  In parallel.job.CJSConcurrentJob>@(job,ce)CJSJobMethods.cancelOneJob(job.Parent,job,job.Support,ce) (line 57)
  In parallel.job/CJSConcurrentJob/cancelJob (line 57)
  In parallel.Job>iCancelJobs (line 1643)
  In parallel.Job>@(jobs)iCancelJobs(jobs,exceptionBuilder) (line 1485)
  In parallel.internal.cluster.hetfun (line 57)
  In parallel/Job/cancel (line 1485)
  In parallel/Cluster/hDeleteOneJob (line 1089)
  In parallel.internal.pool.AbstractInteractiveClient>iDeleteJobs (line 497)
  In parallel.internal.pool/AbstractInteractiveClient/pStopWorkersAndDisconnect (line 279)
  In parallel.internal.pool/AbstractInteractiveClient/stopLabsAndDisconnect (line 192)
  In parallel.internal.pool.AbstractClusterPool>iStopPoolResources (line 887)
  In parallel.internal.pool.AbstractClusterPool>@()iStopPoolResources(client) (line 630)
  In parallel.internal.general/DisarmableOncleanup/delete (line 25)
  In parallel.internal.pool.AbstractClusterPool.hBuildPool (line 628)
  In parallel.internal.pool.doParpool (line 22)
  In parpool (line 118)
  In parallel.internal.parpool.getOrCreateCurrentPool (line 13)
  In parallel.internal.pool.PoolArrayManager.getOrAutoCreateWithCleanup (line 44)
  In pctTryCreatePoolIfNecessary (line 28)
  In parallel_function (line 423)
  In isequiv (line 164)
  In verify (line 71)
  In command_6969e26b_6f1b_400f_8633_1ea5a6514151 (line 9)
  In mdcsbatch (line 58)]
  [Warning: Cannot cancel or destroy a job that was not created by this Local
  cluster.]
  [> In parallel.cluster.Local/cancelOrDestroyJob (line 34)
  In parallel.cluster/Local/hDestroyJob (line 316)
  In parallel.internal.cluster.CJSJobMethods.destroyOneJob (line 71)
  In parallel.job.CJSConcurrentJob>@(job)CJSJobMethods.destroyOneJob(job.Parent,job,job.Support,job.SupportID) (line 52)
  In parallel.job/CJSConcurrentJob/destroyJob (line 52)
  In parallel.Job>iDeleteJobs (line 1634)
  In parallel.internal.cluster.hetfun (line 57)
  In parallel/Job/delete (line 1429)
  In parallel/Cluster/hDeleteOneJob (line 1105)
  In parallel.internal.pool.AbstractInteractiveClient>iDeleteJobs (line 497)
  In parallel.internal.pool/AbstractInteractiveClient/pStopWorkersAndDisconnect (line [279](https://github.com/libprima/prima/actions/runs/4528329440/jobs/7975008460#step:7:281))
  In parallel.internal.pool/AbstractInteractiveClient/stopLabsAndDisconnect (line 192)
  In parallel.internal.pool.AbstractClusterPool>iStopPoolResources (line 887)
  In parallel.internal.pool.AbstractClusterPool>@()iStopPoolResources(client) (line 630)
  In parallel.internal.general/DisarmableOncleanup/delete (line 25)
  In parallel.internal.pool.AbstractClusterPool.hBuildPool (line 628)
  In parallel.internal.pool.doParpool (line 22)
  In parpool (line 118)
  In parallel.internal.parpool.getOrCreateCurrentPool (line 13)
  In parallel.internal.pool.PoolArrayManager.getOrAutoCreateWithCleanup (line 44)
  In pctTryCreatePoolIfNecessary (line 28)
  In parallel_function (line 423)
  In isequiv (line 164)
  In verify (line 71)
  In command_6969e26b_6f1b_400f_8633_1ea5a6514151 (line 9)
  In mdcsbatch (line 58)]
  Caught "std::exception" Exception message is:
  Mismatch between number of environment names and values
  exit status 1
Error: Error: The process '/home/runner/work/_actions/matlab-actions/run-command/v1.1.3/dist/bin/glnxa64/run-matlab-command' failed with exit code 1

Hi Zaikun,
Are you using setup-matlab with release: latest? Curious if this could be related to the fact that R2023a just went up.
Best,
Mark

Hi @mcafaro Mark,
Yes, I was using release: latest, but with setup-matlab 1.2.4. Everything works after I switched to v2-beta.
BTW, when will v2-beta become v2? Thank you.

I am closing this since it disappears after I switch to setup-matlab@v2-beta. Thank you very much.


Simple cache

Adding simple cache integration tests.

some ideas:

cases where $ttl = 0 (means already expired),
another where $ttl is invalid (the spec doesn't say much on this, but i'd be in favor of expecting an InvalidException because this is really just forgotten in the spec).
cases where misses are detected through an object ($miss = new \stdClass(); $miss === $cache->get('foo', $miss);)

Thank you @nicolas-grekas.
I've added tests for your ideas. I've also added a test to make sure objects does not change in the cache.

another idea, which could be applied to the psr6 test suite also: test with a keys that have unusual chars inside. Could be a data provider that provide the full 7b ascii space (minus the psr6 reserved chars) + some utf8 chars in different sets (numbers, scripts, etc, see eg PCRE unicode properties)

I like the idea but both PSR specifications states what characters that must be supported. Adding tests for other characters is just a bonus but not a PSR requirement.

Oh sure you're right, then I'm going to add this to the Symfony test suite!

Yeah, so am I. It is a good idea =)

I'll merge this and tag a new patch version. Feel free to open issues or PRs if there is something you want to add to this.

to be enhanced:

testSetMultipleInvalidKeys doesn't work because the keys are casted to int or string by PHP. This should use a generator instead to feed the invalid keys
since the '0' string is forcibly converted to an int by PHP, we should make sure that setMultiple(['0' => 'bar']) is accepted by cache pools.

See #71


Can't console.log variable in function component Angular ?

I have function in angular component. When i log 'event', vscode warning message Illegal value for line:

I hope you can fix it soon.

Maybe you can provide an angular demo environment in codesandbox?

https://stackblitz.com/edit/stackblitz-starters-1yarnj?file=src%2Fcomponents%2Fdemo%2Fdemo.component.ts
You can download project and debug:

stackblitz.com/edit(编辑)/stackblitz-starters-1yarnj?file=src%2Fcomponents%2Fdemo%2Fdemo.component(组件).ts
You can download project and debug:

I think I found the reason for your issue ，maybe the protect keyword not be add the constants in the Extension
You can debug my Extension to try，and submit PR，It's very easy，Encourage you to give it a try


Ensure test modules can require.resolve absolute paths

Summary
Before this change, the runtime's require.resolve function would always try to resolve paths relative to the passed paths option. This prevents requiring paths which are absolute! Normal node require.resolve is fine requiring absolute paths, including when passed { paths: [] }, so this updates the jest require algorithm to detect absolute paths and handle them without trying to make the path relative to the passed paths option. This is similar to how node's own require.resolve works, see https://github.com/nodejs/node/blob/05002373176e8758c8c604f06659e171de4ca902/lib/internal/modules/cjs/loader.js#L240-L241
Fixes #11927.
Test plan
The added unit test fails on main and passes on this branch. Woop woop!

https://github.com/facebook/jest/releases/tag/v27.3.0


[BUG] KafkaMessageOrderTest is flaky

Describe the bug
Sometimes when running KafkaMessageOrderTest in CI environment, it may fail with following logs:
KafkaMessageOrderTest.testKafkaProducePulsarConsumeMessageOrder:145 expected [1] but found [0]

It's caused by when 10 messages whose key range is [0, 9] were sent by Kafka Producer, the first message received by Pulsar consumer is 1 but not 0.
To Reproduce
It cannot be reproduced easily in local environment, but sometimes happens in CI tests.
Expected behavior
The test should not fail.

Close it since it's related to #247


Extra filter for resource logs

As an admin I want to troubleshoot messages coming in from my node.
Since the resource log contains many messages, I also want to be able to filter on Resource ( src of my messages).

@WimVerhaert we may add this feature in 2.x, but we are not going to address this in 1.x version


Allow a port number in the repository location

Addresses #320.

I merged #309 which also fixes this (but with a limit on the size of the port field)

1.4.13 should have the fix mentioned above, should be in Maven Central soon.


ExtendedQueryTag services respect config setting

Description
Update extended query tag services (add/remove/get) to respect feature  settings: EnableExtendedQueryTags
Related issues
Addresses AB#80934

As discussed with team, should have gating in controller level


Add Bash installer

Background: https://www.notion.so/expo/Release-strategies-40bd1a2d58794696a2ecec7ea3f7d36f
To test you can run (no dependencies, doesn't require Node.js):
curl https://raw.githubusercontent.com/expo/eas-cli/%40fson/installer/bin/install.sh | bash

Once we've set up a subdomain and hosting for the script the final command could be something like:
curl https://install.expo.io/eas-cli | bash

Test plan

try different platforms
try /usr/local/bin not writable
try without curl but with wget installed

How it works

detects the platform using uname
download the latest CLI release (pre-releases are ignored) from https://github.com/expo/eas-cli/releases/latest/download/eas-$PLATFORM-$ARCH.tar.gz (this does a couple of HTTP redirects and finally points to a URL in GitHub's S3 bucket)
exctracts the tarball to a temp folder (we use a temp folder so that we never need sudo at this point)
installs the CLI:

checks if the folders (/usrl/local/lib and /usr/local/bin by default, override withEAS_PREFIX) are writable by the user running the script and that the previous eas executable can be moved out of the way. If not, it will use sudo.
moves the eas directory from temp folder to /usr/local/lib
creates a symlink in /usr/local/bin/eas

tests the bundled node (looking at other CLIs using oclif, there can be problems on e.g. Alpine, but I haven't verified this)
tests the CLI with eas --version

Next steps:

hosting for install.sh
add release script to CI
make sure autoupdates work

If sudo on Linux is an issue, we could prioritize macOS and WSL2 first, where most Expo developers are. The major use case for Linux which we need to support early on is in CI containers (including Alpine I think, since alpine-node is popular).


Adding size arguments to field evaluation in C API

Through reviewing the C API for documentation I realized that DTK_EvaluateFieldDataFunction had no size arguments and therefore there was no way for a user to know how many points they were evaluating the field at and what spatial dimension the points were. I have updated the C interface to reflect this.

@aprokop The Fortran interfaces need to be updated to reflect this C interface change - whats the best way to do this?

@sslattery See documentation on RTD. But I can do this one quickly as I'm all setup to update it.

Actually, Fortran interfaces don't need to be updated as you just updated the function prototype, which do not show up in interfaces. Just the Fortran tests need to be updated. However, I'm currently getting segfaults for what I thought would be a trivial change.

Fixed Fortran tests. Did not realize that that the num_points and space_dim are being passed as non-pointers, thus forgot to add value to Fortran types.

Codecov Report

Merging #475 into master will decrease coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #475      +/-   ##
==========================================
- Coverage   96.19%   96.19%   -0.01%
==========================================
  Files         124      124
  Lines        9219     9217       -2
==========================================
- Hits         8868     8866       -2
  Misses        351      351

Impacted Files
Coverage Δ

packages/Interface/src/DTK_C_API.cpp
98.46% <100%> (+0.01%)
:arrow_up:

packages/Interface/test/tstFortran_API.f90
97.68% <100%> (-0.02%)
:arrow_down:

packages/Interface/test/tstC_API.c
97.31% <100%> (-0.02%)
:arrow_down:

...es/Search/src/details/DTK_DetailsTreeTraversal.hpp
100% <0%> (ø)
:arrow_up:

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 3f47c04...970d1a9. Read the comment docs.

Is everyone OK with a merge or @dalg24 do you want to iterate further?

Sounds good - I will update accordingly with respect to the space_dim argument


[WIP] Bug 1704874: Create separate ConfigMap to hold registry CA for builds

Operator changes to create a ConfigMap that the openshift-controller-manager can use to hold the registry's CA.
See https://bugzilla.redhat.com/show_bug.cgi?id=1704874

@bparees I think we'll want the operator to create the ConfigMap to hold the CA for the registry.
Placing it in the controller-manager's namespace seems more natural (at least I'm certain we won't run into RBAC issues accessing the ConfigMap)

@bparees I think we'll want the operator to create the ConfigMap to hold the CA for the registry.
Placing it in the controller-manager's namespace seems more natural

since it's something consumed by the controllers, that seems reasonable to me.

/retest

/retest

ping @bparees
/cc @gabemontero @coreydaley

/lgtm


Issue Triage Workflow RFC

This RFC proposes expanding functionality to the existing “New Issue” templates in order to allow for more a precise logging and tracking system for GitHub Issues

cc @apache/tvm-committers I'll probably send this for a vote in 1 or 2 days since it's been active on the discuss forum for a week without comment. Please take a look.

cc @apache/tvm-committers I'll probably send this for a vote in 1 or 2 days since it's been active on the discuss forum for a week without comment. Please take a look.

I support this. Thanks @hpanda-naut for this RFC.


Milestone 11: API Endpoints for user - post - comment

Pull Request Summary for Milestone 11 Completion

[x] All requirements completed.

Added:
/app/controllers/api/v1/application_controller.rb

@ITurres: I have added this file to define the base class for all the controllers in the API.
also included the MimeResponds module to facilitate the MIME type-based responses.

/app/controllers/api/v1/comments_controller.rb

@ITurres: I have added this file to define the comments controller for the API, for fetching comments for a specific post, and creating, updating, and deleting comments. It enforces constraints, such as permitted parameters and specific callbacks for actions like setting up comments.

/app/controllers/api/v1/posts_controller.rb

@demesameneshoa: i have added the post controllers to reading, creating and deleting methods to be accessed by the API

/app/controllers/api/v1/users_controller.rb

@demesameneshoa: i have added the users controllers to reading, creating and deleting methods to be accessed by the API

Modified:
/Gemfile and /Gemfile.lock

@ITurres: I have added the active_model_serializers and responders gems to the Gemfile and ran bundle install to update the Gemfile.lock.

/README.md

@ITurres: check complete the 'API endpoints' task.

/app/models/comment.rb

@ITurres: I have added a new method as_json to return the user_id, text, and comment id.

/app/models/post.rb

@demesameneshoa: I have added the method as_json to return the id, title and the text.

/app/models/user.rb

@demesameneshoa: I have added the method ad_json to retun id, name and bio.

/config/environments/development.rb

@ITurres: I have added the config.debug_exception_response_format to :api to show the error messages in the browser.

/config/routes.rb

@ITurres: I have added the routes for the API endpoints.

Thank you for reviewing this PR. Feel free to reach out on Slack as Arturo (Arthur) Emanuel Guerra Iturres and/or Demes Ameneshoa for any queries or further assistance. 🌟

@Reem-lab Hi Reem!, Thank you so much for taking the time to review our PR 🥳. We wish you a great weekend and happy programming! 👩🏼💻

@ITurres thank you so much, you are welcome anytime 🚀🔥, happy weekend


Angular Component dropdown--multi-select Not working properly

Title
Angular Component dropdown--multi-select
-->
Detailed description
When selecting one or more option and then deselecting all of then there is an error:
core.js:1671 ERROR TypeError: Cannot read property 'isUpdate' of null
    at dropdown.component.ts:308
    at SafeSubscriber.schedulerFn [as _next] (core.js:3568)
    at SafeSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub (Subscriber.js:194)
    at SafeSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next (Subscriber.js:132)
    at Subscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._next (Subscriber.js:76)
    at Subscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next (Subscriber.js:53)
    at EventEmitter.push../node_modules/rxjs/_esm5/internal/Subject.js.Subject.next (Subject.js:47)
    at<EMAIL_ADDRESS>(core.js:3540)
    at DropdownList.push../src/dropdown/list/dropdown-list.component.ts.DropdownList.doClick (dropdown-list.component.ts:457)
    at Object.eval [as handleEvent] (VM28 DropdownList.ngfactory.js:56)

What browser are you working in?
Google Chrome - Version 76.0.3809.132 (Official Build) (64-bit)
Mozilla Quantum - 68.0.2 (64-bit)
Steps to reproduce the issue

Select one or more option on the drop down
Deselect the options by clicking on each of them

Additional information

this is happening in my application and also same issue in official documentation demo
https://angular.carbondesignsystem.com/?path=/story/dropdown--multi-select

you might want to move this to https://github.com/ibm/carbon-components-angular 😸

@alisonjoseph Thank you I will


Complete pyupgrade documentation

Summary
Completes the documentation for the pyupgrade rules.
Related to #2646.
Test Plan
python scripts/check_docs_formatted.py

Amazing, thank you!


Microsoft have any plans to provide a package repository?

Currently, Microsoft provides a manifest repository, and the installer package must be retrieved from another site.
Are there any plans for Microsoft to provide a repository to host the installer packages?
winget plans to support package dependencies.
For example, if version 1.0 of package X is referenced by another package Y, version 1.0 should not be deleted even if version 2.0 of X is released.
For this reason, nuget.org does not support deleting a version of a package once published.
To ensure that past versions of packages remain available, there needs to be a centralized package repository where both packages of X and Y can be managed in the same place under a unified package management policy, and Microsoft should provide such one.

This might cause legal problems for the cases where it isn't allowed to distribute installers further or those would need to be excluded

@aetos382 To expand on and confirm what @Croydon said, here's an excerpt from Chocolatey's FAQ where they talk about this issue:

Are you redistributing software?
No. Packages on Chocolatey's community repository (https://chocolatey.org/packages) are publicly available and as such they are subject to software distribution rights. With those packages the following applies:
Chocolatey does the same thing that you would do based on the package instructions. This usually means going out and downloading an installer from the official distribution point and then silently installing it on your machine. With most packages this means Chocolatey is not redistributing software because they are going to the same distribution point that you yourself would go get the software if you were performing this process manually.
To put it another way, Microsoft would be quite upset if the Office 365 packages on the community repository actually contained the Office 365 binaries.

Most proprietary programs on Windows are licensed under terms that prohibit their redistribution by an unauthorized third party. What this means is that under current copyright law, neither Microsoft nor anyone else can legally create a comprehensive package repository for Windows.

As others have stated, there are independent software vendors who prohibited third-party distribution.

I don't think that the package repository provided by Microsoft should be the only repository for winget.
So, having an installer that prohibits redistribution is no reason for Microsoft not to have such a repository.
Many installers distributed in the form of EXE or MSI are also responsible for resolving the dependencies that are necessary for the software to work. Such software does not require the dependency resolution capabilities provided by winget.
But, for winget to support package dependencies, it needs a repository with a package retention policy.
If a package that is required by a lot of software can be removed without a retention policy, or replaced with a different one with the same identity, it will cause a lot of confusion.
Such problems have occurred in the past with repositories like npm.
I believe Microsoft already knows about the need for repositories with retention policies, as they are a company with experience running repositories like nuget.org and npmjs.com.

Most proprietary programs on Windows are licensed under terms that prohibit their redistribution by unauthorized third parties. What this means is that under current copyright law, neither Microsoft nor anyone else can legally create a comprehensive public package repository for Windows.

Throw out the baby with the water ?
For intented population that winget is built for, majority of tools allow redistribution because they either have permissive FOSS license (GNU, MIT etc.) or it is expliciatelly stated in custom license or it  is given by the vendor itself on request. That is what we don chocolatey core team to package ~300 mainstream tools with millions of downloads.
So while most propriatery programs are licensed that way, there are bunch of FOSS tools that are not. We need both mechanisms in place - download automation AND embedding entire stuff in a package (readmes, executables, icons, licenses etc.).
The trend of FOSS on Windows is only accelerating so this will even get better, rather then worst in the future.

I'm working on the specification for dependencies #163. I'm converting this Issue to a Discussion.


Add icon to Windows exported binary

Windows Export doesn't have option for adding icon for the exe file
It would be great to have some more control over the exported application window (f.ex. disable the close button or possibility to use window without the border or use a tool window instead of normal)

A workaround would be ResHacker. After export, just load the executable in ResHacker where you can add version information and icons.

I tried to look for some code that allows modification of the resulting
binary without much success.. Only code that works on windows using native
windows apis, so it will only work on windows
On Jan 25, 2015 7:58 AM, "blackwc"<EMAIL_ADDRESS>wrote:

A workaround would be ResHacker http://www.angusj.com/resourcehacker/.
After export, just load the executable in ResHacker where you can add
version information and icons.
—
Reply to this email directly or view it on GitHub
https://github.com/okamstudio/godot/issues/1211#issuecomment-71366334.

What do you mean, @reduz ?
@pstrejczek the windows styles can be modified in platform/os_windows.cpp

Not the icon, metadata and signature
On Jan 25, 2015 11:23 AM, "Juan Linietsky"<EMAIL_ADDRESS>wrote:

I tried to look for some code that allows modification of the resulting
binary without much success.. Only code that works on windows using native
windows apis, so it will only work on windows
On Jan 25, 2015 7:58 AM, "blackwc"<EMAIL_ADDRESS>wrote:

A workaround would be ResHacker http://www.angusj.com/resourcehacker/.

After export, just load the executable in ResHacker where you can add
version information and icons.
—
Reply to this email directly or view it on GitHub
https://github.com/okamstudio/godot/issues/1211#issuecomment-71366334.

—
Reply to this email directly or view it on GitHub
https://github.com/okamstudio/godot/issues/1211#issuecomment-71374902.

Thank you for the replies. I know about the workaround with some kind of resource hacker.
I also know the close button could be disabled. I just thought it would be cool to be able to set those parameters in the project options. We have option to set the icon for other exports so it would be nice to have it also for windows.

yeah, i just don't know how to set the icon by modifying the binary in a
portable way
On Sun, Jan 25, 2015 at 4:36 PM, Paweł Strejczek<EMAIL_ADDRESS>wrote:

Thank you for the replies. I know about the workaround with some kind of
resource hacker.
I also know the close button could be disabled. I just thought it would be
cool to be able to set those parameters in the project options. We have
option to set the icon for other exports so it would be nice to have it
also for windows.
—
Reply to this email directly or view it on GitHub
https://github.com/okamstudio/godot/issues/1211#issuecomment-71387888.

maybe this: https://code.google.com/p/portable-executable-library/
On Sun, Jan 25, 2015 at 4:37 PM, Juan Linietsky<EMAIL_ADDRESS>wrote:

yeah, i just don't know how to set the icon by modifying the binary in a
portable way
On Sun, Jan 25, 2015 at 4:36 PM, Paweł Strejczek<EMAIL_ADDRESS>
wrote:

Thank you for the replies. I know about the workaround with some kind of
resource hacker.
I also know the close button could be disabled. I just thought it would
be cool to be able to set those parameters in the project options. We have
option to set the icon for other exports so it would be nice to have it
also for windows.
—
Reply to this email directly or view it on GitHub
https://github.com/okamstudio/godot/issues/1211#issuecomment-71387888.

This seems to do the trick for the icon. There's also some fixes to allow exporting with no templates installed if a custom binary is being used.

I would also like to have an icon for the Windows *.exe files.
Resource Hacker can't open the files :(
RCEdit works only on the 64bit EXE and truncates the 32bit EXE at about 5 MB (of total 80 MB).
I don't have experience really, but it would seem to me that Windows EXEs do have a standard for including icons as resources? So this should be possible to just export the icon from Godot directly without additional tools?

See #2518.

Fixed by #2518.

@akien-mga ~ since that PR was reverted, maybe this should be reopened?

For the reference, this used to be implemented in 1.1 using a library called pe_bliss. But this library brought some issues, was a bit too heavy for our small needs, so we removed it and would now prefer a lighter solution.

Maybe this pe_blisscould be an optional download for people who want to deploy to Windows?
Like Android SDK Setup.

Nope because it made bad Windows binaries, so it's not a viable solution.

A better solution would be from a Windows dev to grab the relevant functions from pe_bliss and integrate them into Godot after some cleanup of the aging code. Maintaining a whole library (which is dead upstream) just to use one or two of its functions is more than we can/should handle.

Just found a simple open source tool for this, Windows only, of course: https://github.com/atom/rcedit. This seems simple enough to even be embedded in Godot, but it requires ATL (which is not available in MinGW).
At first we can recommend this rcedit to change the icon and info for Windows exports (apart from recompiling the templates).
I might look further into this but for my brief research editing a PE seems to be more trouble than it's worth.

@vnen I don't remember in detail, but rcedit corrupted by binaries when I tried it.

@vnen I just tried out rcedit and it worked for my test exported project. Both on the 32-bit and the 64-bit executable. Good find!

It could be nice to document the usage of rcedit in the page about exporting to Windows then.

@akien-mga I've so far successfully changed the icon and the file version. I'm trying to figure out how to change the other strings too.

Hm, maybe we can reverse-engineer the place those strings are stored in the .exe?

Replacing strings in a binary is always problematic, as you can break the alignment if the string size is different. But for resource strings might be different, since this seems to be what pefile does.

When you run the game, in the Task Manager, it is listed as Godot Engine, is there anyway to change that?

@LanceJZ you can edit those in the same way you edit the icon: using a PE editor software or building Godot from source (you can edit the platform/windows/godot_res.rc file to your needs).

As a note, there's a PE format specification provided by Microsoft: https://www.microsoft.com/en-us/download/details.aspx?id=19509
This along with pe_bliss code might be used as a reference to develop a custom solution for Godot.

@surashu
what version of rcedit have you used?
I was build latest version from github repository but it changes .exe size...
Thanks
-j

@surashu
http://www.angusj.com/resourcehacker/

@avril-gh
I've tried it a lot of months ago.... resource hacker not works! It alters the exe file size like rcedit

Well it's normal that it alters the exe file size, since you're changing information bundled in the exe (icon, name, etc.). Of course it should not change dramatically, at most a few kB.

@jospic Looking at the instances of rcedit.exe I can find in my system, apparently, it's version <IP_ADDRESS>.

@avril-gh I read somewhere on this thread that Resource Hacker had problems interacting with the end product so I went with rcedit immediately.

@surashu
The version that I've compiled reports <IP_ADDRESS> as version number.
Please where is possible to download what do you have?
Thanks in advance.
-j

@jospic This one?

@surashu
This version I've tried without success a time ago! How can it works for you? I've been tested with Godot 2.1 but it not works anyway? The size of the .exe project is considerably reduced and the .exe file  can not be executed...
Any suggestions?

this is not a high priority issue (voting to close)

@Pegus1936 It is if you're trying to release a professional looking game. Please don't close.

This is indeed not a high priority issue (there are known workarounds, it's hard to fix properly and we've tried already), but it's definitely one that we want to see fixed one day. You don't get to vote on closing issues. If you think the issue is not needed, feel free to downvote it, but it's our call in the end.

The problem with this issue is that there's no PE editing library available (at least none that I could find that isn't at least 5 years old) and making one is a daunting task. I looked into it but it's a great effort for little gain. Maybe I'll try if I find some free time for a side project.
The WinAPI can do it to an extent, but it's only available on Windows and only when built with MSVC. Would be the same as rcedit, so people can use that instead as a workaround. The easiest way is to make people download rcedit for themselves and call it with a shell_open during export (similar to the Android tools).

@Pegus1936 I thought you were done with the Godot community.
@vnen we could ask for a path to rcedit.exe so it's called on export automatically. Just calling it can change icons?

@vnen if it's going to be done via rcedit downloaded separately, might as well add all the other options to the GUI like version number, company name, description, etc.

on linux/osx i suppose rcedit can be invoked via wine, if installed.

@reduz yeah, I think it is doable. I never used rcedit myself but people report success with it. We just need to call it with the right arguments. Would also need to ask for a .ico file, I think it's the only supported format.

This is now fixed by #14437 by using the external (FOSS) rcedit Windows tool. It's not fully "out of the box" as users will still need to download this tool and set its path in their editor settings, but it's already the case for Android and not particularly an issue. It also works from macOS/Linux via WINE, albeit requires a little trick for now (check the PR), but this will be improved soon.
I'll open another issue so that we can continue investigating out of the box and cross-platform PE edition without relying on rcedit, but in the meantime the main use case discussed here is addressed. 🎉

If anyone is looking for this later, the rcedit settings are under Editor > Settings > Export > Windows > rcedit.


Some orphan replicas have never been recycled

Shutdown and restart the server after a period of time. After the system enters a stable state, it is found that there are still some orphan replicas in the server that have not been recycled.
In restarted server:
 raft_id: 30
  Aug 03 06:09:29.005 INFO starting a new election, term: 9
  Aug 03 06:09:29.006 INFO became pre-candidate at term 9, term: 9
  Aug 03 06:09:29.006 INFO broadcasting vote request, to: [29, 103], log_index: 55289, log_term: 3, term: 9, type: MsgRequestPreVote
 raft_id: 45
  Aug 03 06:09:29.014 INFO starting a new election, term: 5
  Aug 03 06:09:29.014 INFO became pre-candidate at term 5, term: 5
  Aug 03 06:09:29.014 INFO broadcasting vote request, to: [44, 43], log_index: 51742, log_term: 2, term: 5, type: MsgRequestPreVote
 raft_id: 59
  Aug 03 06:09:29.523 INFO starting a new election, term: 5
  Aug 03 06:09:29.523 INFO became pre-candidate at term 5, term: 5
  Aug 03 06:09:29.523 INFO broadcasting vote request, to: [60, 58], log_index: 5876, log_term: 3, term: 5, type: MsgRequestPreVote
 raft_id: 50
  Aug 03 06:09:30.017 INFO starting a new election, term: 6
  Aug 03 06:09:30.018 INFO became pre-candidate at term 6, term: 6
  Aug 03 06:09:30.018 INFO broadcasting vote request, to: [49, 51], log_index: 5852, log_term: 2, term: 6, type: MsgRequestPreVote
 raft_id: 30
  Aug 03 06:09:30.505 INFO starting a new election, term: 9
  Aug 03 06:09:30.505 INFO became pre-candidate at term 9, term: 9
  Aug 03 06:09:30.505 INFO broadcasting vote request, to: [29, 103], log_index: 55289, log_term: 3, term: 9, type: MsgRequestPreVote
 raft_id: 59
  Aug 03 06:09:31.023 INFO starting a new election, term: 5
  Aug 03 06:09:31.023 INFO became pre-candidate at term 5, term: 5
  Aug 03 06:09:31.023 INFO broadcasting vote request, to: [60, 58], log_index: 5876, log_term: 3, term: 5, type: MsgRequestPreVote
 raft_id: 45
  Aug 03 06:09:31.514 INFO starting a new election, term: 5
  Aug 03 06:09:31.515 INFO became pre-candidate at term 5, term: 5
  Aug 03 06:09:31.515 INFO broadcasting vote request, to: [44, 43], log_index: 51742, log_term: 2, term: 5, type: MsgRequestPreVote
 raft_id: 30
  Aug 03 06:09:32.005 INFO starting a new election, term: 9
  Aug 03 06:09:32.006 INFO became pre-candidate at term 9, term: 9
  Aug 03 06:09:32.006 INFO broadcasting vote request, to: [29, 103], log_index: 55289, log_term: 3, term: 9, type: MsgRequestPreVote

In leader server:
 raft_id: 49
  Aug 03 06:09:52.519 INFO [logterm: 6, index: 19709, vote: 49] ignored vote from 50 [logterm: 2, index: 5852]: lease is not expired, msg type: MsgRequestPreVote, remaining ticks: 1, term: 6, msg_index: 5852, msg_term: 2, from: 50, vote: 49, log_index: 19709, log_term: 6
 raft_id: 58
  Aug 03 06:09:53.524 INFO [logterm: 5, index: 20484, vote: 58] ignored vote from 59 [logterm: 3, index: 5876]: lease is not expired, msg type: MsgRequestPreVote, remaining ticks: 1, term: 5, msg_index: 5876, msg_term: 3, from: 59, vote: 58, log_index: 20484, log_term: 5
 raft_id: 49
  Aug 03 06:09:55.019 INFO [logterm: 6, index: 19709, vote: 49] ignored vote from 50 [logterm: 2, index: 5852]: lease is not expired, msg type: MsgRequestPreVote, remaining ticks: 2, term: 6, msg_index: 5852, msg_term: 2, from: 50, vote: 49, log_index: 19709, log_term: 6
 raft_id: 58
  Aug 03 06:09:55.024 INFO [logterm: 5, index: 20484, vote: 58] ignored vote from 59 [logterm: 3, index: 5876]: lease is not expired, msg type: MsgRequestPreVote, remaining ticks: 1, term: 5, msg_index: 5876, msg_term: 3, from: 59, vote: 58, log_index: 20484, log_term: 5
  Aug 03 06:09:56.524 INFO [logterm: 5, index: 20484, vote: 58] ignored vote from 59 [logterm: 3, index: 5876]: lease is not expired, msg type: MsgRequestPreVote, remaining ticks: 1, term: 5, msg_index: 5876, msg_term: 3, from: 59, vote: 58, log_index: 20484, log_term: 5
 raft_id: 49
  Aug 03 06:09:57.519 INFO [logterm: 6, index: 19709, vote: 49] ignored vote from 50 [logterm: 2, index: 5852]: lease is not expired, msg type: MsgRequestPreVote, remaining ticks: 3, term: 6, msg_index: 5852, msg_term: 2, from: 50, vote: 49, log_index: 19709, log_term: 6
 raft_id: 58
  Aug 03 06:09:58.024 INFO [logterm: 5, index: 20484, vote: 58] ignored vote from 59 [logterm: 3, index: 5876]: lease is not expired, msg type: MsgRequestPreVote, remaining ticks: 1, term: 5, msg_index: 5876, msg_term: 3, from: 59, vote: 58, log_index: 20484, log_term: 5
  Aug 03 06:09:59.524 INFO [logterm: 5, index: 20484, vote: 58] ignored vote from 59 [logterm: 3, index: 5876]: lease is not expired, msg type: MsgRequestPreVote, remaining ticks: 1, term: 5, msg_index: 5876, msg_term: 3, from: 59, vote: 58, log_index: 20484, log_term: 5
 raft_id: 49
  Aug 03 06:10:00.020 INFO [logterm: 6, index: 19709, vote: 49] ignored vote from 50 [logterm: 2, index: 5852]: lease is not expired, msg type: MsgRequestPreVote, remaining ticks:
1, term: 6, msg_index: 5852, msg_term: 2, from: 50, vote: 49, log_index: 19709, log_term: 6

In node 1:
{
   "group": 9,
   "id": 30,
   "raft_role": 3,
   "replica_role": 1                                                                                },

In group 9's descriptor:
{
  "epoch": 14,
  "id": 9,
  "replicas": [
    {
      "id": 29,
      "node": 2,
      "raft_role": 0,
      "replica_role": 0,
      "term": 9
    },
    {
      "id": 30,
      "node": 0,
      "raft_role": 3,
      "replica_role": 1,
      "term": 9
    },
    {
      "id": 103,
      "node": 1,
      "raft_role": 0,
      "replica_role": 0,
      "term": 9
    },
    {
      "id": 110,
      "node": 3,
      "raft_role": 2,
      "replica_role": 0,
      "term": 9
    }
  ],
  "shards": [
    {
      "collection": 7,
      "id": 13,
      "partition": "hash: 6 of 32"
    },
    {
      "collection": 7,
      "id": 34,
      "partition": "hash: 27 of 32"
    }
  ]
}

Replica 30 is a learner, why it starts election?

It looks like 30 should be a learner that needs to be removed?
 raft_id: 30
  Aug 03 07:02:08.768 INFO switched to configuration, config: Configuration { voters: Configuration { incoming: Configuration { voters: {29, 30, 103} }, outgoing: Configuration { voters: {} } }, learners: {}, learners_next: {}, auto_leave: false }
  Aug 03 07:02:08.769 INFO became follower at term 9, term: 9
  Aug 03 07:02:08.769 INFO newRaft, peers: Configuration { incoming: Configuration { voters: {29, 30, 103} }, outgoing: Configuration { voters: {} } }, last term: 3, last index: 55289, applied: 55289, commit: 55289, term: 9
  Aug 03 07:02:08.769 INFO RawNode created with id 30., id: 30

 raft_id: 30
  Aug 03 07:02:11.271 INFO starting a new election, term: 9
  Aug 03 07:02:11.271 INFO became pre-candidate at term 9, term: 9
  Aug 03 07:02:11.271 INFO broadcasting vote request, to: [29, 103], log_index: 55289, log_term: 3, term: 9, type: MsgRequestPreVote

This is because the schedule is not persistent, so after the leader is transfered, the original task does not continue, resulting in a few remaining learners.

In node 3:
 raft_id: 110
  Aug 03 07:13:39.426 INFO switched to configuration, config: Configuration { voters: Configuration { incoming: Configuration { voters: {29, 110, 103} }, outgoing: Configuration { voters: {} } }, learners: {30}, learners_next: {}, auto_leave: false }
  Aug 03 07:13:39.426 INFO newRaft, peers: Configuration { incoming: Configuration { voters: {29, 110, 103} }, outgoing: Configuration { voters: {} } }, last term: 10, last index: 115099, applied: 115099, commit: 115099, term: 10
  Aug 03 07:13:39.426 INFO RawNode created with id 110., id: 110

There is no 30 in the members of group 9?


Multiple sensors

I (now) have multiple Temperature/Humidity sensors I wish to read.  My guess is that they need to be read in sequence.  Is that correct?
If so, is the best way to do this to create multiple nodes and sequence them or use the same BLE node and inject the address each time?

I have two sensors and both are read at the same time successfully
Approach with multiple nodes is better because if a single node is used then it scans all available BLE devices every time when the address is updated. With multiple nodes - a reference to found device is cached and retrieving data happens faster

Ok great. How do I inject multiple addresses? I tried "macaddress, macaddress".
Sorry, but multiple addresses are not supported for single node. You should either use multiple nodes or provide address field in the message initiating data reading

Could a check for the address in the found devices be added in before a scan is started?
Sorry, not clear


Release of v19.0.0

This release is scheduled for Tue  6 Feb 2024
The release of vitess-operator v2.12.0 is also planned

Prerequisites for Release

[x] Notify the community on Slack.
[x] Make sure the release notes summary is prepared and clean.
Make sure backport Pull Requests are merged, list below.

[x] #307
[ ] #309

Make sure release blocker Issues are closed, list below.
[x] Draft the release blog post.
[x] Send requests to cross-post the blog post (CNCF, PlanetScale).

Pre-Release

[x] Code Freeze.

https://github.com/frouioui/vitess/pull/306

[x] Create Release PR.

https://github.com/frouioui/vitess/pull/307

[x] Create new GitHub Milestone.

https://github.com/frouioui/vitess/milestone/10

[x] Update vitess-operator Golang version.

https://github.com/frouioui/vitess-operator/pull/16

[x] Open a Pull Request on the website repository for the blog post.

Release

[x] Merge the Release PR.

https://github.com/frouioui/vitess/pull/307

[x] Tag the release.

https://github.com/frouioui/vitess/releases/tag/v19.0.0

[x] Java release.
[x] Create vitess-operator Release PR.

https://github.com/frouioui/vitess-operator/pull/17
https://github.com/frouioui/vitess-operator/releases/tag/v2.12.0

[x] Manual update of vitess-operator test code.
[x] Update release notes on main.

https://github.com/frouioui/vitess/pull/308

[x] Go back to dev mode on the release branch.

https://github.com/frouioui/vitess/pull/309

[x] Merge the blog post Pull Request on the website repository.
[x] Update the website documentation.
[x] Make sure the release is benchmarked by arewefastyet.
[x] Docker Images available on DockerHub.
[x] Close current GitHub Milestone.

https://github.com/frouioui/vitess/milestone/2

Post-Release

[x] Notify the community on Slack for the new release.
[x] Twitter announcement.
[ ] Close this Issue.

Release completed.


Project card updates [#100036252]

Changed projects to collections, added min-height on project card and hid project cards to students.

:+1:


fix(api): Declare integration Flow as json.RawMessage

Fixes #1590.
Tested with:
$ kamel run --use-flows examples/routes.yaml

$ kubectl get it routes -o yaml
apiVersion: camel.apache.org/v1
kind: Integration
...
spec:
  flows:
  - from:
      parameters:
        period: "5000"
      steps:
      - set-body:
          constant: Hello Yaml !!!
      - transform:
          simple: ${body.toUpperCase()}
      - to: log:info
      uri: timer:tick

Release Note
fix(api): Declare integration Flow as json.RawMessage

Thanks!


NoClassDefFoundError when loading assembly jar files with spark package sbt dependencies

Dear ammonite-team,
I just wanted to try out ammonite, loading a custom jar and was suprised that it does not work. I spend hours already and finally have an idea what is going on.
I get a very similar issue like mentioned here https://github.com/lihaoyi/Ammonite/issues/317#issuecomment-322211216
The respective answer mentioned some comments further down issue https://github.com/lihaoyi/Ammonite/issues/317#issuecomment-322517269 doesn't work for my case, unfortunately.
Error printing
In general, there is a problem with the error reporting in ammonite while loading jars.
It looks like everything worked fine, however something behind the scene may have broken. If possible, please enhance your error reporting.
Support spark dependencies in external jars
Unfortunately, this didn't helped me with my original problem. There was indeed a test classpath in the external jar, however deleting it did not lead to success. To reproduce my setting, just build a package with the following sbt (lets name it "my")
name := "my"
version := "0.1.0"
scalaVersion := "2.11.12"
val sparkVersion = "2.1.0"

val sparkDependencies = Seq(
  "org.apache.spark" %% "spark-core" % sparkVersion,
  "org.apache.spark" %% "spark-sql" % sparkVersion,
  "org.apache.spark" %% "spark-hive" % sparkVersion,
  "org.apache.spark" %% "spark-streaming" % sparkVersion,
  "org.apache.spark" %% "spark-mllib" % sparkVersion
)
libraryDependencies ++= sparkDependencies.map(_ % "provided" withSources())
libraryDependencies += "com.typesafe.scala-logging" %% "scala-logging" % "3.7.2" % "compile" withSources()
libraryDependencies += "com.lihaoyi" %% "sourcecode" % "0.1.4" % "compile" withSources()

as well as the following custom package content
package my
object obj {
  val a = 2
}

and assemble everything together into one big "test.jar" (I build the jar using Intellij Idea, via creating an Artefact, including dependencies and tests, but I would think that using sbt-assembly gives the same results).
The respective test-file I called test.sc contains
// test.sc
println(my.obj.a)

Putting all together, the call to amm results in a NoClassDefFoundError
amm --predef-code 'interp.load.cp(ammonite.ops.Path("/absolute/path/to/my/extended/test.jar"))' test.sc
Compiling test.sc
java.lang.NoClassDefFoundError: my/obj$
  ammonite.$file.test$.<init>(test.sc:1)
  ammonite.$file.test$.<clinit>(test.sc)
java.lang.ClassNotFoundException: my.obj$
  java.net.URLClassLoader.findClass(URLClassLoader.java:381)
  ammonite.runtime.SpecialClassLoader.findClass(ClassLoaders.scala:198)
  java.lang.ClassLoader.loadClass(ClassLoader.java:424)
  java.lang.ClassLoader.loadClass(ClassLoader.java:357)
  ammonite.$file.test$.<init>(test.sc:1)
  ammonite.$file.test$.<clinit>(test.sc)

any help is highly appreciated!
versions I am using:

OS: centos 7 (in virtualbox on Windows 10)
ammonite: 1.0.3
scala: 2.11.12

It could work with ammonite-spark, although I haven't tried to run Ammonite scripts with it.

I've been trying to do interp.load.cp in the latest almond (0.1.7) and nothing works

I have a container image which already has a spark distribution installed (just a big blob of spark jar files in a /path/to/jars) and ammonite-spark is actually set up to work pretty well here in theory since it is using spark-sql as a %Provided dep, so as long as I can get the almond/ammonite repl to see /path/to/spark/jars in its classpath, I'd expect I'm good to go, but nothing I've read has worked yet.


WebSocket async_write and async_read with idle timeout causing "Operation cancelled" error in async_read

Version of Beast
306
Steps necessary to reproduce the problem
I have built a simple websocket client based on the asynchronous websocket client example. I have censored the message contents and the host and port of the server, but everything else I have pasted below.
Everything works as expected except if I have an idle timeout set, the async_read callback is called with the error "Operation cancelled". If the idle timeout is set to 5 seconds, the error occurs just under 5 seconds into operation. If the timeout is set to 30 seconds, the error occurs closer to 30 seconds into operation. What I suspect is happening is that the keep alive ping and the write are interfering with each other. I suspect this also because if I disable reading or disable writing, no errors occur.
From what I could understand from documentation async_read and async_write can be called at the same time. What am I doing wrong here?
If it's important, the server this client is connecting to is written in javascript using this library https://github.com/websockets/ws.
Running the below code using the host and port of a websocket server using the above library causes the issue to occur within 5 seconds. After the "Operation cancelled" error is displayed, no messages are successfully written or read.
#include <boost/beast/core.hpp>
#include <boost/beast/websocket.hpp>
#include <boost/asio/strand.hpp>
#include <cstdlib>
#include <functional>
#include <iostream>
#include <memory>
#include <string>
#include <chrono>
#include <queue>
#include <thread>

namespace beast = boost::beast;         // from <boost/beast.hpp>
namespace http = beast::http;           // from <boost/beast/http.hpp>
namespace websocket = beast::websocket; // from <boost/beast/websocket.hpp>
namespace net = boost::asio;            // from <boost/asio.hpp>
using tcp = boost::asio::ip::tcp;       // from <boost/asio/ip/tcp.hpp>

//------------------------------------------------------------------------------

// Report a failure
void
fail(beast::error_code ec, char const* what)
{
    std::cerr << what << ": " << ec.message() << "\n";
}

void
default_on_message(std::string message)
{
    std::cout << "message received: " << message << std::endl;
}

// Sxnds a WebSocket message and prints the response
class session : public std::enable_shared_from_this<session>
{
    tcp::resolver resolver_;
    websocket::stream<beast::tcp_stream> ws_;
    beast::flat_buffer buffer_;
    std::string host_;
    std::string text_;
    std::function<void(std::string)> on_message_;
    std::queue<std::string> message_queue_; //messages to send

public:
    // Resolver and socket require an io_context
    explicit
    session(net::io_context& ioc, std::function<void(std::string)> on_message = default_on_message)
        : resolver_(net::make_strand(ioc))
        , ws_(net::make_strand(ioc))
    {
       on_message_ = on_message;
    }

    // Start the asynchronous operation
    void
    run(
        char const* host,
        char const* port,
        char const* text)
    {
        // Save these for later
        host_ = host;
        text_ = text;

        // Look up the domain name
        resolver_.async_resolve(
            host,
            port,
            beast::bind_front_handler(
                &session::on_resolve,
                shared_from_this()));
    }

    void
    on_resolve(
        beast::error_code ec,
        tcp::resolver::results_type results)
    {
        if(ec)
            return fail(ec, "resolve");

        // Set the timeout for the operation
        beast::get_lowest_layer(ws_).expires_after(std::chrono::seconds(30));

        // Make the connection on the IP address we get from a lookup
        beast::get_lowest_layer(ws_).async_connect(
            results,
            beast::bind_front_handler(
                &session::on_connect,
                shared_from_this()));
    }

    void
    on_connect(beast::error_code ec, tcp::resolver::results_type::endpoint_type ep)
    {
        if(ec)
            return fail(ec, "connect");

        // Turn off the timeout on the tcp_stream, because
        // the websocket stream has its own timeout system.
        beast::get_lowest_layer(ws_).expires_never();

        // Set suggested timeout settings for the websocket
        websocket::stream_base::timeout opt{
            std::chrono::seconds(5),
#if 1
            std::chrono::seconds(5),
            true,
#endif
#if 0
            websocket::stream_base::none(),
            false,
#endif
        };
        ws_.set_option(opt);
        // Set a decorator to change the User-Agent of the handshake
        ws_.set_option(websocket::stream_base::decorator(
            [](websocket::request_type& req)
            {
                req.set(http::field::user_agent,
                    std::string(BOOST_BEAST_VERSION_STRING) +
                        " websocket-client-async");
            }));

        // Update the host_ string. This will provide the value of the
        // Host HTTP header during the WebSocket handshake.
        // See https://tools.ietf.org/html/rfc7230#section-5.4
        host_ += ':' + std::to_string(ep.port());

        // Perform the websocket handshake
        ws_.async_handshake(host_, "/",
            beast::bind_front_handler(
                &session::on_handshake,
                shared_from_this()));
    }

    void
    on_handshake(beast::error_code ec)
    {
        if(ec)
            return fail(ec, "handshake");

        //start reading from Operations Dashboard
        ws_.async_write(
            net::buffer(text_),
            beast::bind_front_handler(
                &session::on_first_write,
                shared_from_this()));
    }

    void
    on_first_write(
        beast::error_code ec,
        std::size_t bytes_transferred)
    {
        boost::ignore_unused(bytes_transferred);

        if(ec)
            return fail(ec, "write");

        write_message();
        ws_.async_read(
            buffer_,
            beast::bind_front_handler(
                &session::on_read,
                shared_from_this()));
    }

    void
    on_read(
        beast::error_code ec,
        std::size_t bytes_transferred)
    {
        boost::ignore_unused(bytes_transferred);

        if(ec)
            return fail(ec, "read");
       // std::cout<<"reading"<<std::endl;
       // std::cout << beast::make_printable(buffer_.data()) << std::endl;
        std::string message = beast::buffers_to_string(buffer_.cdata());
        on_message_(message);
        buffer_.clear();
        ws_.async_read(
            buffer_,
            beast::bind_front_handler(
                &session::on_read,
                shared_from_this()));
    }

    void
    on_close(beast::error_code ec)
    {
        if(ec)
            return fail(ec, "close");

        // If we get here then the connection is closed gracefully

        // The make_printable() function helps print a ConstBufferSequence
        std::cout << beast::make_printable(buffer_.data()) << std::endl;
    }

    void write_message()
    {
        if (not message_queue_.empty()){
            ws_.async_write( //can't call this function again before it returns
                net::buffer((std::string)message_queue_.front()),
                beast::bind_front_handler(
                    &session::on_write_message,
                    shared_from_this()));
        }
    }

    void on_write_message(
        beast::error_code ec,
        std::size_t bytes_transferred)
    {
        message_queue_.pop();

        while (message_queue_.empty());
        ws_.async_write( //can't call this function again before it returns
            net::buffer((std::string)message_queue_.front()),
            beast::bind_front_handler(
                &session::on_write_message,
                shared_from_this()));
    }

    void send_message(std::string message){
        message_queue_.push(message);
    }
};

//------------------------------------------------------------------------------
void sending_messages(std::shared_ptr<session> s){
    while (true) {
        std::string message = "message content";
        s->send_message(message);
        std::cout<<"sending"<<std::endl;
        std::this_thread::sleep_for(std::chrono::milliseconds(500));
    }
}

int main(int argc, char** argv)
{
    auto const host = "<IP_ADDRESS>";
    auto const port = "1111";
    auto const text =  "first message";

    // The io_context is required for all I/O
    net::io_context ioc;

    // Launch the asynchronous operation
    auto s = std::make_shared<session>(ioc);
    s->run(host, port, text);

    std::thread input_thread (sending_messages, s->shared_from_this());

    // Run the I/O service. The call will return when
    // the socket is closed.
    ioc.run();

    return EXIT_SUCCESS;
}

Looks like an infinite loop here:
while (message_queue_.empty());

You are blocking the I/O context thread, so no more callbacks are delivered.

Thanks for the help. I will restructure the code so that it doesn't do that and will update if it is fixed.

Seem to work fine now if I don't block the thread.


Add implicit content metadata to 3DTiles

Closes #10104.
This PR presents the following changes:

Create new class ImplicitMetadataTableView to handle both implicit tile and content metadata (thus removing the need for ImplicitTileMetadata.
Update ImplicitSubtree to handle content metadata
Add metadata field to the Cesium3DTileContent interface, as well as all subclasses
Update Cesium3DTileFeature.getPropertyInherited to access the content metadata

TODO:

[x] Create unit tests to test handling of multiple contents in Multiple3DTileContentSpec Implicit3DTileContentSpec and Cesium3DTilesetSpec
[ ] Update the implicit tile metadata test in Cesium3DTilesetSpec
[ ] Add a content metadata one to the same file

@ptrgags - if you could take a look at what I have so far, that would be great!

Looks good to me! Thanks @j9liu!


Freezes during completion

If company-tabnine enabled, emacs frequently freezes when I type, even on small projects.
I think that reason is that completion is not asynchronous.
If so, please make it asynchonous, because processing completions takes a lot of time, so freezes are very annoying.
Emacs verison 25.2.2
company config
(use-package company
             :ensure t
             :config
             (setq company-minimum-prefix-length 1)
             (setq company-idle-delay 0))

I am have the same issue. It looks like the TabNine is overuse the CPU. On my macbook pro ,the cpu cost is 700%。 Dose change the company-idle-delay will help?

@TommyX12

One possible reason is that TabNine may enable local deep learning completion by default, which is very CPU-intensive if your computer can't handle it. See https://github.com/TommyX12/company-tabnine/issues/26#issuecomment-538055948 for how to disable.

Thanks. I will test the config.


Only diff a cleaned up deployment against the definition

This resolves a warning with Instana. I'm happy to hear about any better approaches, but this one seems to work in dev.

Er dette pga. vi har issues med instana autoinstrumentation? Bruker vi det sånn egentlig? Skulle vi skrudd det av?

@esphen I spoke quickly about this with @evenh
We both agree that, in the case that we can completely ignore instana and turn it off, that would be a preferable solution. We have a few workarounds going on here, but they are all somewhat annoying and we would rather just.. not.

Alright to close this? @evenh

Please do!


Traces: Fix JSON pretty print

Signed-off-by: Matej Gera<EMAIL_ADDRESS>Somehow changes for pretty printing JSON and traces command introduction caused a mixed up which has not been detected by CI / conflict warning.
This PR fixes currently failing build.

LGTM. Would the build properly fail now?

Yep, it was failing locally and during tests on CI.


Update candle chart with few last candles only

How would one update the candle chart without updated the whole set of data again?
Say like you have new data for the latest 5 candles or so, how to achieve that?
Thank you in advance!

use candlestick for example
you can add new data to chart by doing this follows
// the data map callback function same with line 35
function mapCallback(obj) {
  obj.trend = obj.start <= obj.end ? '上涨' : '下跌';
  obj.range = [obj.start, obj.end, obj.max, obj.min];
  return obj;
}
// add new data
dv.addRow(mapCallback({time:'2018-07-22',start:8.21,max: 8.30,min: 7.00,end:8.21}))
// updata chart
chart.changeData(dv)

Thank you! I'll try that asap :))

the key point is, you can update data of the chart and re-render it by calling chart.changeData(newData)
closing for not further info is provided


Support for passing style to Grid from FlexTable

Could we please have another prop for FlexTable, say gridStyle, and this will be passed to the child Grid component?

Available in 7.10.0 as gridClassName and gridStyle.


Help with customCompareFn

I'm trying to use customCompareFn along with customComponent and I can't get the current rowData passed into my function. This may be a duplicate of #142.
For example. In the following function, data is always null:
const columnMetadata = [
  {columnName: 'value', order: "1", displayName: 'Value', customComponent: getLatestValuation, cssClassName: 'col-xs-2',
  customCompareFn: function (data) { console.log('rowData: ' + JSON.stringify(data)); return data.val } }
];

What am I doing wrong?

User error.  For the field in question, my results object contained a reference to another object that contained the field, instead of the data itself and the customComponent was resolving the reference. Changed the logic so that the results object contains the actual value for this field.

User error.  For the field in question, my results object contained a reference to another object that contained the field, instead of the data itself and the customComponent was resolving the reference. Changed the logic so that the results object contains the actual value for this field.


General Gun Ammo and Calibre Fixes

This PR does the Following:

Makes it so guns under _Cresent actually represent their ammo calibres in their name and description if present.
Removes empty mags from lathe recipes because no one actually wants to make empty mags because you can't make boxes of loose ammo anyway.
Rebalances bullet damage so small calibres don't do the same exact amount of damage as RIFLES!!!
^ Means shotgun slugs and rifle rounds pack quite the punch.
Makes the Communard Full Auto shotgun's firerate slightly better.
Pistols don't have the same firerates as rifles anymore.
Revolvers buffed as a concession to their low firerate.
Removes practice ammo from the lathe recipes.

rename the bullets to their IRL counterparts over SS14s backward logic.

rename the bullets to their IRL counterparts over SS14s backward logic.

I'm not a gun nut, and the actual problem's that all the guns use SS14's vanilla bullets and mags. I can't make new mags or rounds because I can't actually add sprites to the codebase, nor do I want to reuse existing sprites since I think bullets and magazines should be identifiable at a glance. At least this way we're not loading .20 mags into 7.62 chambers anymore.

10 damage pistols are cringe

I think leaving 35 auto at 21 but buffing the rifle cartridges is enough

As seen in the commit history - I've added some entities for the following calibres:

9x19 Parabellum
.30 (7.62)
.50 BMG

None of the example magazines which make use of these calibres actually go into any guns at the moment.
This is because I can't actually give them sprites and I don't want them to use the same sprites as the other mags, because I want them to be identifiable at a glance.

smg bullet deals 10 dmg LMAO


Function names with unicode (indic characters) are not displayed in Outline window

Environment data
About:
Version: 1.35.1
Commit: c7d83e57cd18f18026a8162d042843bda1bcf21f
Date: 2019-06-12T14:27:31.086Z
Electron: 3.1.8
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Linux x64 4.15.0-54-generic

VS Code version: 1.35.1
Extension version (available under the Extensions sidebar): 2019.6.22090 (25 June 2019)
OS and version: Kubuntu 18.04
Python version (& distribution if applicable, e.g. Anaconda): Python 3.6.8 |Anaconda custom (64-bit)| (default, Dec 30 2018, 01:22:34)[GCC 7.3.0] on linux
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
Relevant/affected Python packages and their versions: XXX
Jedi or Language Server? (i.e. what is "python.jediEnabled" set to; more info #3977): XXX

Expected behaviour
for the following python file t.py the outline window should show three functions viz aatest, bbtest, மெல்லினம் .
def aatest(): # English
    pass

def மெல்லினம்(): # Indic (Tamil)
    pass

def bbtest(): # English
    pass

Actual behaviour
However only the functions with English names are displayed.

Steps to reproduce:

Open Vscode
Save python file with following content and save as t.py

def aatest(): # English
    pass

def மெல்லினம்(): # Indic (Tamil)
    pass

def bbtest(): # English
    pass

open the outline window

Logs
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
edited to add this
Starting Jedi Python language engine.
##########Linting Output - pylint##########

--------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)

##########Linting Output - pylint##########
##########Linting Output - pylint##########

--------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)

##########Linting Output - pylint##########
##########Linting Output - pylint##########
************* Module தமிழ்
4,0,warning,unused-wildcard-import:Unused import மெல்லினம் from wildcard import

------------------------------------------------------------------
Your code has been rated at 9.70/10 (previous run: 9.70/10, +0.00)

##########Linting Output - pylint##########

--------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)

##########Linting Output - pylint##########

--------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)

$ python
Python 3.6.8 |Anaconda custom (64-bit)| (default, Dec 30 2018, 01:22:34)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

Are you using Jedi or the language server (it's in the issue template but you didn't fill it out)? If you're not sure then check if  the "python.jediEnabled" is true or not.

Sorry missed it. I have updated in the previous post. Looks like Jedi

@srix, I was able to verify the bug you have reported, but only when using Jedi.  When using the language server it works fine.  I recommend using the language server (set "python.jediEnabled": true in your settings.json).  We will also look into getting this sorted out upstream.  Thanks!

Also note that I was using Python 3.7, so unicode support normally works fine.

I was also able to verify that the problem is upstream:
>>> import jedi
>>> with open('/tmp/eggs.py') as infile:
...     source = infile.read()
>>> jedi.api.names(source=source, path='/tmp/eggs.py', all_scopes=True)
[<Definition full_name='eggs.aatest', description='def aatest'>, <Definition full_name='eggs.bbtest', description='def bbtest'>]

@ericsnowcurrently I guess you meant "python.jediEnabled": false .
That fixed the problem . thanks

@srix, I'm glad that helped!

BTW, this was fixed in parso and therefore once vscode ships the latest version of it, this should work again.


Updates to FakePagerDutyEventsClient (#9) & HttpApiServiceImpl (#11)

Note: Imports automatically updated by IDEA
Resolves: #9 & #11

Hi Andreas,
These changes look good to me and also confirmed that the tests pass successfully. This PR is ready to merge on master.
Thanks for contributing.
Dani


#1090: Notification to the consumer when the product is back in stock

#1090 Implementation

@thiennn I suggested some improvements to this PR also, there 're some non meaningful names, but seems you ignored all the my code suggestions

@hishamco I can make your improvements in the new PR

Believe it or not, it doesn't require a new PR, that's why the reviewing is helpful otherwise it's a waste of time if no one consider it
Don't get me wrong

Hi @hishamco , I am sorry. I was on a mobile and I didn't see your suggestion.
@s04v Yes, please help me make the new PR, Thanks


Quantity post 0.9.7 enhancements

Summarize your proposed improvement
Switch to full serverside inventory manager from the player instance for serverside item insert for patch 0.9.7
Why is this needed?
Currently, an extra RPC needs to be sent as a workaround for the serverside instance of the inventory manager not accepting actions on non-owned entities. This will be obsolete and reduce both code overhead and increase performance.
Describe alternatives you've considered
No response
Add any other context or screenshots about the request here.
No response

Fixed with 7829152c4aeedb0b05f1a9813a4c634581413bf9


Postgres unique constraints are broken

When introspecting a postgres DB with a unique constraint, the generated schema includes the index but not the constraint.
Editing the schema to remove the index yields a migration that cannot be applied, because the unique constraint still relies on the index we are trying to drop.
A reproduction of this issue can be found here.

Same issue here, did you find a way around it?

Same issue here

@mhaagens @ewd-bft Unfortunately no I never did.
The team I was working with was also hesitant to adopt if we'd need to hack around every unique constraint, so we put it down and hope to circle back at a later date.

Confirming that the constraint behavior is broken.
Two scenarios:

Create table with constraint:

CREATE TABLE "test"
(
    a INT,
    b INT,
    CONSTRAINT ab UNIQUE (a, b)
);

Alter table with constraint:

CREATE TABLE "test"
(
    a INT,
    b INT
);
ALTER TABLE "test" ADD CONSTRAINT "ab" UNIQUE (a, b);

After running migration generation, both cases result in CREATE UNIQUE INDEX, but no constraint on table

Closed with https://github.com/ariga/atlas/pull/2667. For more details, see: https://atlasgo.io/atlas-schema/hcl#unique-constraints
Thanks all for the feedback.


Resource import misses several (many?) AWS resource categories

Determining the AWS CCAPI resource type from the C# namespace mapping is not reliable. This approach misses several resource categories, most notably EC2 (which the C# mappings case as Ec2). We need to fix this so we don't rely on those mappings and instead use a more reliable mechanism.

Added to epic https://github.com/pulumi/pulumi-service/issues/20861

I addressed this for a different tool using the was-native provider's resource metadata document: https://github.com/pulumi/pulumi-aws-native/blob/master/provider/cmd/pulumi-resource-aws-native/metadata.json
This document is a mapping from Pulumi type token to resource metadata. This metadata includes a cf field that contains the CF/CCAPI type. We can use this to generate a table that maps Pulumi type tokens to CF/CCAPI types.
Unfortunately this isn't available from the provider at runtime. Its mappings should be relatively static, though, so it is likely safe to pull it from the source repo at a particular version and then update it on a regular cadence.


Guidelines implementation: Resources

[ ] Create Resource and IResource bases
[ ] Implement and apply rule awslint:resource-class: Every AWS resource "Foo" should have an AWS construct "Foo"
[ ] Implement and apply rule awslint:resource-class-extends-resource: Constructs which represent AWS resources should extend the cdk.Resource class
[ ] Align all existing resource constructs to this rule (e.g. #1936)

Sketch:
interface IResource extends IConstruct, ISerializable, IExportable {
  readonly persistent: boolean;

  // TODO: physical names
  // TODO: stateful resources

  serialize(ctx: ISerializationContext): void;

  grant(principal: iam.Principal, ...actions: string[])
  metric(metricName: string, options?: cloudwatch.MetricCustomization): cloudwatch.Metric
}

class Resource extends Construct implements IResource {
  public export(exportName: string) {
    this.node.stack.exportObject(exportName, this);
  }

  // all interface API is abstract
}


Window calico node unable to create hns network calico subnet

Expected Behavior
I'm testing about running calico with k8s on 'Windows 2019' node.
Current Behavior
With 'vxlan' option, I ran powershell script running calico, but calico could not create subnet.
2021-04-15 15:55:53.604 [INFO][46540] startup/ipam.go 1952: Looking up existing affinities for host host="win-node02"
2021-04-15 15:55:53.607 [INFO][46540] startup/ipam.go 349: Looking up existing affinities for host host="win-node02"
2021-04-15 15:55:53.609 [INFO][46540] startup/ipam.go 432: Trying affinity for <IP_ADDRESS>/26 host="win-node02"
2021-04-15 15:55:53.611 [INFO][46540] startup/ipam.go 143: Attempting to load block cidr=<IP_ADDRESS>/26 host="win-node02"
2021-04-15 15:55:53.613 [INFO][46540] startup/ipam.go 220: Affinity is confirmed and block has been loaded cidr=<IP_ADDRESS>/26 host="win-node02"
2021-04-15 15:55:53.613 [INFO][46540] startup/ipam.go 1978: Host's block '<IP_ADDRESS>/26'  host="win-node02"
2021-04-15 15:55:53.622 [INFO][46540] startup/dataplane_windows.go 294: Found existing HNS network [&{Id:5C266810-4DA8-4BF2-1234-2EF76A4E3BD4 Name:Calico Type:Overlay NetworkAdapterName: SourceMac: Policies:[] MacPools:[{StartMacAddress:00-15-5D-14-50-00 EndMacAddress:00-15-5D-14-5F-FF}] Subnets:[{AddressPrefix:<IP_ADDRESS>/26 GatewayAddress:<IP_ADDRESS> Policies:[[123 34 84 121 112 101 34 58 34 86 83 73 68 34 44 34 86 83 73 68 34 58 52 48 57 54 125]]}] DNSSuffix: DNSServerList: DNSServerCompartment:3 ManagementIP:<IP_ADDRESS> AutomaticDNS:false}] subnet="<IP_ADDRESS>/26"
2021-04-15 15:55:53.623 [ERROR][46540] startup/dataplane_windows.go 117: Unable to create hns network Calico subnet="<IP_ADDRESS>/26"
2021-04-15 15:55:53.623 [ERROR][46540] startup/startup.go 224: Unable to ensure network for os error=Could not find vxlan0 in V2: Network ID "5C266810-4DA8-4BF2-1234-2EF76A4E3BD4" not found
2021-04-15 15:55:53.623 [WARNING][46540] startup/startup.go 1340: Terminating
Calico node initialisation failed, will retry...

Possible Solution
I want know how to fix this.
Thank you 👍
Steps to Reproduce (for bugs)
I used following guides.

https://docs.projectcalico.org/getting-started/kubernetes/self-managed-onprem/onpremises

Your Environment

Calico version : v3.17.3
Orchestrator version (e.g. kubernetes, mesos, rkt): kubernetes v1.19.6
Operating System and version: windows server 2019 (ver 1809)

I used contained instead of Docker. And it's my calico config

## Cluster configuration:

# KUBE_NETWORK should be set to a regular expression that matches the HNS network(s) used for pods.
# The default, "Calico.*", is correct for Calico CNI.
$env:KUBE_NETWORK = "calico.*"

# Set this to one of the following values:
# - "vxlan" for Calico VXLAN networking
# - "windows-bgp" for Calico BGP networking using the Windows BGP router.
# - "none" to disable the Calico CNI plugin (so that you can use another plugin).
$env:CALICO_NETWORKING_BACKEND="vxlan"

# Set to match your Kubernetes service CIDR.
$env:K8S_SERVICE_CIDR = "<IP_ADDRESS>/12"
$env:DNS_NAME_SERVERS = "<IP_ADDRESS>"
$env:DNS_SEARCH = "svc.cluster.local"

## Datastore configuration:

# Set this to "kubernetes" to use the kubernetes datastore, or "kubernetes" for etcd.
$env:CALICO_DATASTORE_TYPE = "kubernetes"

# Set KUBECONFIG to the path of your kubeconfig file.
#$env:KUBECONFIG = "$PSScriptRoot\calico-kube-config"
$env:KUBECONFIG = "$PSScriptRoot\config"

# For the "kubernetes" datastore only: set ETCD_ENDPOINTS, format: "http://<host>:<port>,..."
$env:ETCD_ENDPOINTS = "[APISERVER_IP]"
# For etcd over TLS, set these lines to point to your keys/certs:
$env:ETCD_KEY_FILE = "c:\CalicoWindows\etcd-tls\server.key"
$env:ETCD_CERT_FILE = "c:\CalicoWindows\etcd-tls\server.crt"
$env:ETCD_CA_CERT_FILE = "c:\CalicoWindows\etcd-tls\ca.crt"

## CNI configuration, only used for the "vxlan" networking backends.

# Place to install the CNI plugin to.  Should match kubelet's --cni-bin-dir.
$env:CNI_BIN_DIR = "C:\opt\cni\bin"
# Place to install the CNI config to.  Should be located in kubelet's --cni-conf-dir.
$env:CNI_CONF_DIR = "C:\etc\cni\net.d"
$env:CNI_CONF_FILENAME = "10-calico.conf"
# IPAM type to use with Calico's CNI plugin.  One of "calico-ipam" or "host-local".
$env:CNI_IPAM_TYPE = "calico-ipam"
$env:CALICO_IPV4POOL_CIDR = "<IP_ADDRESS>/12"

## VXLAN-specific configuration.

# The VXLAN VNI / VSID.  Must match the VXLANVNI felix configuration parameter used
# for Linux nodes.
$env:VXLAN_VNI = "4096"
# Prefix used when generating MAC addresses for virtual NICs.
$env:VXLAN_MAC_PREFIX = "0E-2A"

## Node configuration.

# The NODENAME variable should be set to match the Kubernetes Node name of this host.
# The default uses this node's hostname (which is the same as kubelet).
#
# Note: on AWS, kubelet is often configured to use the internal domain name of the host rather than
# the simple hostname, for example "ip-172-16-101-135.us-west-2.compute.internal".
$env:NODENAME = $(hostname).ToLower()
# Similarly, CALICO_K8S_NODE_REF should be set to the Kubernetes Node name.  When using etcd,
# the Calico kube-controllers pod will clean up Calico node objects if the corresponding Kubernetes Node is
# cleaned up.
$env:CALICO_K8S_NODE_REF = $env:NODENAME

# The time out to wait for a valid IP of an interface to be assigned before initialising Calico
# after a reboot.
$env:STARTUP_VALID_IP_TIMEOUT = 90

# The IP of the node; the default will auto-detect a usable IP in most cases.
$env:IP = "autodetect"

## Logging.

$env:CALICO_LOG_DIR = "$PSScriptRoot\logs"

# Felix logs to screen at info level by default.  Uncomment this line to override the log
# level.  Alternatively, (if this is commented out) the log level can be controlled via
# the FelixConfiguration resource in the datastore.
# $env:FELIX_LOGSEVERITYSCREEN = "info"
# Disable logging to file by default since the service wrapper will redirect our log to file.
$env:FELIX_LOGSEVERITYFILE = "none"
# Disable syslog logging, which is not supported on Windows.
$env:FELIX_LOGSEVERITYSYS = "none"
# confd logs to screen at info level by default.  Uncomment this line to override the log
# level.
#$env:BGP_LOGSEVERITYSCREEN = "debug"

@song-jiang @lmm will know better than I do, but I think containerd isn't supported yet.

Thanks @bluefriday - @lwr20 is spot on, we're working on containerd support which should be in an upcoming release.
That said, the errors you're seeing are strange. The HNS network is found and then a short while later it's not found. Let me look into this and get back to you.
Could you try the installation with Docker installed to see if that works for you with your setup?

This work is now available in Calico v3.19.0
https://docs.projectcalico.org/release-notes/#windows-data-plane-support-for-containerd


Assigning custom ViewModelNameSuffix Causes View Resolution To Fail

I tested this in Stylet.Samples.MasterDetail
I added the following code to Bootstrapper:
protected override void Configure()
{
    var vm = this.Container.Get<ViewManager>();

    vm.ViewModelNameSuffix = "VM";
}

I changed ShellViewModel to "ShellVM".
At runtime, it errors saying:
Unable to transform ViewModel name Stylet.Samples.MasterDetail.ShellVM into a suitable View name

It turns out that the ViewManager isn't registered as a singleton. I'll fix that.
As a workaround, put this in your ConfigureIoC:
builder.Bind<IViewManager>().And<ViewManager>().To<ViewManager>().InSingletonScope();

That works. Thanks.


Feature/reverse mode

Description
In this MR, I'm adding the reverse mode to the new Capture page. So far, just one reverse server is supported. I still need to handle multiple ones.

Checklist

[ ] I have updated tests where applicable.
[ ] I have added an entry to the CHANGELOG.

I will leave this PR in stand-by then


Lazy load images

When dealing with a large number of images, it would be good to only load the full image when navigating to that particular image. This will reduce the bandwidth required. Also, some image service providers such as Trove probably have limitations on number of requests during a certain amount of time.
Example manifest:
https://raw.githubusercontent.com/wragge/iiif-tests/main/nla.obj-140670968-v3-manifest.json
In the above example, some images are not loaded due to the traffic limitation in Trove.

Completed in https://github.com/Systemik-Solutions/glycerine-viewer/releases/tag/v1.1.0


fix: Upgrade babylon-mtoon-material to 1.8.6

:tada: This PR is included in version 1.4.5 :tada:
The release is available on:

GitHub release
npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:


Query regarding Assignment 3

I got an email question regarding assignment 3, copy pasting the question answer here so that it could aid the broader group
Question:
I had a query about generating faces using GAN. Do we have to train the GAN from scratch using the IIITB face dataset or use the pretrained model on the celebA dataset and use transfer learning on top of it?

Yes, using pretrained model is fine and is in fact preferred.


Cannot compile using the time picker

I was using the previous version (2.21) of Bottom_picker but I can no longer compile.   The first error I was getting is that Time is not defined.  To fix that I added your Time class as this:
class Time {
final int hours;
final int minutes;
Time({
this.hours = 0,
this.minutes = 0,
}) : assert(minutes < 60 && minutes >= 0 && hours >= 0 && hours < 24);
}
But I now get the error
The argument type 'Time' can't be assigned to the parameter type 'Time?'.
in the below where it assigns requiredTime to initialTime.  The error is:
The argument type 'Time' can't be assigned to the parameter type 'Time?'.   which I don't understand because I have declared requiredTime  as Time?
Time? requiredTime = Time(hours: 2, minutes: 15);
BottomPicker.time(
title: 'Select Journey Time',
titleStyle: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 15,
color: Colors.black,
),
initialTime: requiredTime,
use24hFormat: true,
onSubmit: (value) {
},
onClose: () {
},
).show(context);
}

import the Time class from bottom_picker package is already defined for you there's no need to create it
import 'package:bottom_picker/resources/time.dart';

@atkinsonline with the latest version 2.3.2 you don't need to import anything, the version it's just published

Thank you @koukibadr  that solved the problem I was having.  Also pleased to see you've fixed a bug that was in 2.21 where setting the initialTime was not setting the minutes, only the hours.
Thank you for the quick response and turnaround.

Thanks for your feedback feel free to send me your future suggestions and bugs
This issue will be closed


More browser support & port forwarding

Description
Hey, I'm the maintainer of duino.app, an open-source browser-based Arduino programmer. I was looking at having to code browser-side uploading manually until I spotted that you had since added browser support!
This PR addresses some things to make the browser implementation a little more feature complete so I could use it in my application.
There are three main things done in this PR:

Allow passing/forwarding through an existing node-serial/web-serial port, in case the calling application has already gotten the user to select the serial port and/or is using it for other things like serial monitoring
Fill out some of the missing node-serial features
Close the connection more gracefully

Type of change
Please delete options that are not relevant.

[x] New feature (non-breaking change which adds functionality)
[ ] This change requires a documentation update

The port forwarding is a pretty advanced use case, it's nice that it's there, but I'm uncertain if it should be "supported" by documenting it.
Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules
[x] Changes have been manually tested (please provide information on test platform using the fields below)

Test / Development Platform Information

Operating system and version
Manjaro Linux
Avrgirl Arduino version
latest
NodeJS version
12.x
Arduino Board being used
Uno, Mega

Coverage remained the same at 46.689% when pulling 18c6b1bdd2caeed3260d16a2ef8c9b9077734c5b on duinoapp:browser-port-forwarding into 4c88107415fec46eacabf81fb2fb8a6f271b7828 on noopkat:master.


Add Saint Joseph Pierre Rouge

Add Saint Joseph Pierre Rouge a French high school near Montpellier.

@Temavers First stage of verification passed, official domain is pierrerouge.com as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@Temavers Thank you for your patience while waiting for a review and processing your request. Pull request merged.


Question: Notification about main window closing

Could we receive some notification in WinUI3 lifecycle model about main window is closing? Something similar to UWP
closeRequested(object sender, SystemNavigationCloseRequestedPreviewEventArgs e)
so it would be possible to handle it and may be cancel it.
If it is not possible in current release, could you consider adding this in the next release?

Instead of calling directly Window.Close, you can post WM_CLOSE to the main window and intercept it to ask confirmation  :

If you close the main window by clicking on the "X" system button, WM_CLOSE is sent and you can intercept it (for example with SetWindowSubclass)

@castorix Could you please provide a code sample how I can do this in WinUI3 app? Thanks.

For example : WM_CLOSE test

You can do something like this : WM_CLOSE test

@castorix Thanks, it works


Plugin's get function returns the same created date value for all cepher volumes

Plugin's get function always returns "CreatedAt": "2018-01-01T00:00:00Z".
$ docker volume inspect volumes/myimage
[
    {
        "CreatedAt": "2018-01-01T00:00:00Z",
        "Driver": "cepher:latest",
        "Labels": null,
        "Mountpoint": "",
        "Name": "volumes/myimage",
        "Options": null,
        "Scope": "global"
    }
]

Getting image info using rbd CLI It's returned the correct created date Thu Aug 29 17:59:48 2019.
$ rbd info volumes/myimage
rbd image 'myimage':
	size 100MiB in 25 objects
	order 22 (4MiB objects)
	block_name_prefix: rbd_data.10ba6b8b4567
	format: 2
	features: layering, exclusive-lock, object-map, fast-diff, journaling
	flags:
	create_timestamp: Thu Aug 29 17:59:48 2019
	journal: 10ba6b8b4567
	mirroring state: disabled

I'm working on it.


Always green when outline

Hi, I've marked a scenario as a Scenario Outline, and even if I didn't even implement the steps when I ran it it was always green.
Is this wanted or a bug?

Sounds like a bug to me. @ngw could you put a simple example here?

https://gist.github.com/ngw/0aaf615496fa6a5c041665febee09e02

This is fixed in master but I'll cherry pick the changes back and do a release on 2.x

Released as 2.8.1


Software used to draw figures

Hi @ranahanocka. The figures in your paper look very good, and I was wondering if you could share what software did you use to come up with them. In particular, I am interested in knowing what software did you use to draw Figure 4 and the figure that visualizes the input features. I know that you have mentioned here that you use Blender to visualize the 3D models, but I am more interested in knowing how to come up with a figure like the ones I mentioned above. Thanks and congratulations again for such a great paper!

Hi @DandiC ,
We used a combination of Adobe photoshop & illustrator for the illustration figures


tpmtest #34 fails with error 0x8006, while succeeds if runs #34 alone

Hardware Platform: Intel x86_64
TPM Type: Intel PTT (INTC)
OS: Red Hat Enterprise Linux Client 7.2(Maipo)
Kernel: mainline kernel 4.7.0-rc4+
Application:
TPM2.0-TSS
Error description:
Runs ./TPM2.0-TSS/test/tpmtest/tpmtest, to test TPM on Intel x86_64. Test #34(ASYMMETRIC ENCRYPT/DECRYPT & HASH TESTS) always fails, with error below:
FAILED!  System API Error: 0x80006
However, if runs #34 test alone, test always pass.
Problem doesn't seem to be at kernel side, since 4.5-rc4 is the latest mainline Linux kernel.
Is there any unidentified problem with TPM2.0-TSS tpmptest itself?
I can provide more detailed information if needed.

New key successfully created in owner hierarchy (RSA 2048).  Handle: 0x80000004
Name of created primary key: 00 0b 4f 63 f6 78 f9 44 70 1f 69 c0 d3 10 eb 07
a1 d7 7e 3c cf b5 20 e6 4e 43 20 a4 e8 75 e2 68
30 f4
passing case:  	PASSED!
Name of created key: 00 0b 4f 63 f6 78 f9 44 70 1f 69 c0 d3 10 eb 07
a1 d7 7e 3c cf b5 20 e6 4e 43 20 a4 e8 75 e2 68
30 f4
passing case:  	PASSED!
Name of loading key: 00 0b 02 93 c8 ac 40 6a be 1b ea cc ef c5 1f c5
07 c2 b5 18 97 64 5a d7 fa 16 15 cb 6f de d7 8c
6f e9
Loaded key handle:  8000000d
passing case:  	PASSED!
Encrypted data: d3 4a 41 af 2d 04 a7 91 e8 22 68 51 88 5f 1b 63
d6 26 56 f7 ef e5 69 99 85 9c 67 5d 15 54 f5 d4
a7 be 01 bd eb a5 87 13 59 b5 a9 37 89 2d dd 43
21 03 82 94 80 67 a5 7f 02 30 f3 14 62 ee 24 96
39 2d 51 e8 0e 1b 05 99 cd 8c 2f 56 e0 27 fa 8c
7c 67 cf 6a 8f 9a 9b 66 ec 7f 53 f5 b0 e2 fa 98
ba dc a2 28 a7 39 2f 65 43 bd bd 4b fb a0 1e 4a
72 26 42 a5 7f da 4a 92 21 57 8c 1b 25 d4 58 e3
7f f8 fb 8f 04 62 e8 0b 38 c5 42 cf 33 d9 30 48
0f 2c df 16 4b df b3 0d 50 f1 bd bb 9a fd f0 00
cb 1d 0a 87 58 10 1f 1b 30 61 8e 30 d2 f5 17 05
4f 14 df 3d 19 39 6c 82 da 8a d6 f6 a8 9c 22 8f
f7 d3 6a dc f5 2d 07 35 e5 2e 1b 8b cc e9 5f ed
3f fd 60 7d fe 54 f2 45 10 e9 cf e8 b9 1a 9b 5d
ed dc 73 05 1a 32 fe dd 22 f6 de 84 1c d0 3a d5
cc 86 60 16 a5 d1 f8 9c a0 da 1a ce 0e 72 d6 fa
passing case:  	PASSED!

Decypted data: 74 65 73 74
HASH TESTS: HASH Comparison
passing case:  	PASSED!
passing case:  	PASSED!
Hash value before encrypt: 9f 86 d0 81 88 4c 7d 65 9a 2f ea a0 c5 5a d0 15
a3 bf 4f 1b 2b 0b 82 2c d1 5d 6c 15 b0 f0 0a 08
Hash value after decrypt: 9f 86 d0 81 88 4c 7d 65 9a 2f ea a0 c5 5a d0 15
a3 bf 4f 1b 2b 0b 82 2c d1 5d 6c 15 b0 f0 0a 08
But if running all tests automatically, test #34 - FAIL:
ASYMMETRIC ENCRYPT/DECRYPT & HASH TESTS:
passing case:  	PASSED!
New key successfully created in owner hierarchy (RSA 2048).  Handle: 0x80000005
Name of created primary key: 00 0b 4f 63 f6 78 f9 44 70 1f 69 c0 d3 10 eb 07
a1 d7 7e 3c cf b5 20 e6 4e 43 20 a4 e8 75 e2 68
30 f4
passing case:  	FAILED!  System API Error: 0x80006

Anyone could help with this or share comments?

I just did same tests with latest kernel 4.7-rc5, same result - #34 PASS if runs alone, FAIL when all tests runs automatically.

I have a problem with this test too(and not only this test), but I don't have the same error.   TPM Error: 0x9a2

Anyway, I believe the error 0x80006 is TSS2_SYS_RC_INSUFFICIENT_BUFFER  as described here:
#define TSS2_SYS_RC_INSUFFICIENT_BUFFER         ((TSS2_RC)(TSS2_SYS_ERROR_LEVEL | \
                                                     TSS2_BASE_RC_INSUFFICIENT_BUFFER))

#define TSS2_BASE_RC_INSUFFICIENT_BUFFER    6 /* A buffer isn't large enough */

Thanks Molina, and agreed.
I also did some digging about the error code 0x80006:
asymmetricEncryptDecryptTest() -> Tss2_Sys_Create() ->... -> Unmarshal_Simple_TPM2B():
length = CHANGE_ENDIAN_WORD( *(UINT16 *)*nextData );
            if( outTPM2B != 0 )
            {
                if( length > outTPM2B->size )
                {
                    *rval = TSS2_SYS_RC_INSUFFICIENT_BUFFER;
                }

It seems INSUFFICIENT_BUFFER is returned when resourcemanager calls Unmarshal_Simple_TPM2B() for test case #34 when runs all test cases automatically.
However, no such problem if runs #34 case alone.
It seems to me like something goes wrong within the test tool when running all tests by select "0".
But need confirmation from TSS experts here.

It should be a bug in tpmtest related to TPM2B_* initialization . I will dig it out and fix it.

fixed in PR #234.


Some reliability fixes

Ensure that Last-Translator is always set when pulling from
Transifex. If there are no reviewed translations, Transifex will
not include that header, but our validate code requires it.
https://github.com/edx/i18n-tools/issues/71

Don't complain about obviously missing files when cleaning
the headers of just-pulled files, and make sure that we do
notice the files we did actually pull.
https://github.com/edx/i18n-tools/issues/69

Ensure that Plural-Forms has a valid value when extracting.
python-gettext will choke otherwise.
https://github.com/edx/i18n-tools/issues/68

When creating a dummy po file, don't garble source strings in
a way that relies on the Python dictionary order. This way the
result will always be the same no matter the machine.

Coverage increased (+0.04%) to 72.473% when pulling bd9820c33044569b3ce26711ae9df81fc3fa1478 on mikix/minor-fixes into efa7bdee4c28846a7f09d7ed0c79b46e48e5bc57 on master.

@Ayub-Khan OK I updated this branch to specify --minimum-perc=10 and dropped the Last-Translator fixup bits.