ConnectionStrings - appsettings.json

Jump to here:
https://docs.microsoft.com/en-us/aspnet/core/tutorials/first-mvc-app/adding-model?view=aspnetcore-3.0&tabs=visual-studio#add-a-database-connection-string
If ConnectionStrings is a convention, then it should be mentioned in the section above.
I know the ConnectionString key MvcMovieContext is passed in startup.cs, but how does it know where to get the value from --> ConnectionStrings?
Does the app parse the appsetttings.json and search for MvcMovieContext or does it know it's under ConnectionStrings and searches there for the key?

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

ID: 1d975a83-1550-b284-d0d8-7fe2ea206ff5
Version Independent ID: 48e81b42-7c2b-afbf-71e6-d4f442a4bd1f
Content: Add a model to an ASP.NET Core MVC app
Content Source: aspnetcore/tutorials/first-mvc-app/adding-model.md
Product: aspnet-core
Technology: aspnetcore-tutorials
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

In VS2019 I don't have any intellisense for appsettings.json available, when I write ConnectionStrings, so if it's a convention intellisense should be there to support.
Or can we name the section SomeDbConnStrings and put the connectionstring there?

Thanks for contacting us.
We don’t have the resources to invest in this area, so we are closing the issue. Should your request generate enough  👍 responses, we’ll reconsider.

It would be really nice if "DbContext class" were an option of a new item that could be added to a folder and if all we had to do to register it in Startup.cs and add a connection string in appsettings.json were to give it a name.

It would also be very nice if we could see the database schema in graphic form, as we used to be able to do.

Concerning my last comment but one:
It is already possible to have VS 2019 do these things, if not in exactly the way described.
Here is one way:
(1) In /Models, define a class to be mapped to a database table.
(2) Right-click on /Controllers.
(3) Add | New Scaffolded Item...
(4) Choose: MVC Controller with views, using Entity Framework.
(5) As the model class, choose the class defined in Step (1).
(6) For the data context class, click on the plus sign ("+").
(7) If you so desire, edit the proposed name for this class. There is no need to change the folder name (from "Models"), because it will be changed automatically to "Data". A "Data" folder will be created automatically, if you haven't created one already.
(8) Click "Add" to finish and wait for VS to install the required NuGet packages, create the data context class, register it in Startup.cs, and define the connection string in appsettings.json.


Update README.md

I think that is a important information to avoid a doubled import of the NavController inside the super-tab page.

Thanks


Add a Service Bus Connection String Parser

Implement a Service Bus Connection String Parser, which uses amqp-core's ConnectionStringProperties
closes #16467

/check-enforcer reset


Update experimental mixed_sp_wrr_traffic_test.go by checking aggregated throughput instead of each traffic item

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1203

Relevant Lines:
2128

💛  - Coveralls

Test passed on hardware platform:

http://shortn/_adPjjpkPip


Allow filter with language

I wanted to ask if it would be possible to filter with lang (i.e: en, es, etc ...) ?
Because for my project I would sometimes need to crawl only tweets in English or in German.

Hi @Boby024 ,
As explained on the twitter documentation, you can use various operator inside your search query.
See : https://developer.twitter.com/en/docs/twitter-api/tweets/search/integrate/build-a-query
ex: (happy OR happiness) lang:en

@redouane59 thanks


qt6.qtdeclarative: backport a patch fixing crashes in Kirigami apps

As recommended by KDE upstream. Hopefully this is under the threshold for staging.
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Hopefully this is under the threshold for staging.

811 rebuilds on x86_64-linux with nixpkgs-review


Fix docs

Let's improve the commit message, in order to explain how and why we are doing this.
es:
Fix documentation

Add `@file` markers in order to tell doxygen to generate documentation for public headers.


WFLY-8631 Fixup Integration test for WFCORE-2647 Add an option to always

https://issues.jboss.org/browse/WFLY-8631
https://issues.jboss.org/browse/JBEAP-4439
This is a correction of https://github.com/wildfly/wildfly/pull/9961 that was failing on IBM JDK as reported by @marekkopecky

The trailing spaces fixed in 8aa765f

Retest this please


webhooks: Rename the occurrences of incoming webhooks in Zulip from "webhooks" to "incoming webhooks".

Currently in Zulip, all of the incoming webhooks are referred to just as webhooks. (example:  https://zulipchat.com/api/integration-guide#webhook-integrations and even the directory https://github.com/zulip/zulip/tree/master/zerver/webhooks). These occurrences of webhooks should be renamed to incoming webhooks to make it more clear and also help create a proper boundary between outgoing and incoming webhooks.

@eeshangarg is this something you'd be able to help with?  I agree we should do this rename.

@timabbott: For sure, I'll add it to my to-do list. Specificity is good, so I agree, we should do this rename! Hopefully, it shouldn't take too long! :)


sample code for routeCoordinates not working

Under the section "Drawing the route on a map" the following snippet is listed:
if route.coordinateCount > 0 {
    // Convert the route’s coordinates into a polyline.
    var routeCoordinates = route.coordinates!
    let routeLine = MGLPolyline(coordinates: &routeCoordinates, count: route.coordinateCount)

    // Add the polyline to the map and fit the viewport to the polyline.
    mapView.addAnnotation(routeLine)
    mapView.setVisibleCoordinates(routeCoordinates, count: route.coordinateCount, edgePadding:                 UIEdgeInsetsZero, animated: true)
}

the var routeCoordinates is an array with CLLocationCoordinate2D objects, however the method setVisibleCoordinates() first parameter is just CLLocationCoordinate2D.
I am not sure if i should be iterating through and updating the visible coordinates based on each one in the array, however, even when i try to just say like the first object of the array it still gives me an error which seems to be related to objC. It says it wants mutablePointer CLLocationCoordinate2D, and i'm not sure what to do there.
Is this code wrong or am I missing something?

There’s a typo in the example code. I’ve pushed a fix to the documentation in fdbabf2621117f17178c394eb1047fede4eb55df, part of #57.

OK, I’ve fixed the documentation.
The compiler’s error messages aren’t particularly helpful in this case, so thanks for asking about it. When you see a mutable pointer in the parameter of a method bridged from Objective-C, usually it’s either because the Objective-C method expects a C array or because it’s an in-out parameter. In this case, the method expects a C array containing all the coordinates. You can convert a Swift array such as route.coordinates into a C array by storing it in a var and getting the & of it. The method wants a C array, rather than an NSArray (that would be bridged to a Swift Array), because CLLocationCoordinate2D is a C struct that can’t be stored in an NSArray. Hope this helps.

ah ok, thanks so much! Yeah that makes sense, thank you for the apple doc too, i havent had much experience with C arrays and such so yeah i didnt know what the compiler was complaining about.


add bound constructors for PySet and PyFrozenSet

Implements new_bound for PySet and PyFrozenSet, adding the deprecations to new and updating relevant internal code.

Unless anyone feels a strong desire to review this one, I might merge this and also #3755 in the near future, as both are mechanical changes just following the patterns we've already established on how we want these new_bound APIs to be like for now.

Thanks! Yes, I think quite a few of these PRs adding / deprecating constructors are touching quite a few bits of the codebase. It's going to be a relief to tidy these up again in the future.


Add json-c external module

add initial support for json-c external module
current dependency points to linumiz/fork of json-c

Fixes https://github.com/zephyrproject-rtos/zephyr/issues/59303
Note: Couldn't re-open previous PR https://github.com/zephyrproject-rtos/zephyr/pull/60039, so creating a new one.

@nashif @mrfuchs @kartben @stephanosio Please have a look.

How does this fit with the existing native zephyr JSON implementation, see zephyr/data/json.h ?

How does this fit with the existing native zephyr JSON implementation, see zephyr/data/json.h ?

json-c provides rich set of API's, which helps in building complex json structure with much flexibility. Using as an external module from well mature implementation of RFC7159. It can co-exist with existing native implementation json in zephyr.

We definitely should not have multiple json libraries in tree :) if you want this library added, it must be implemented as a module, exposing the APIs through zephyr/json/json.h, naturally, tests need to be added to ensure it builds with all supported platforms, and in tree use of the existing API needs to be extended.
The license of json-c is not apache 2.0, so you will have to bring it up at a TSC meeting to make sure the license is agreeable.
Then there is the question of size, is it optimized for embedded platforms? it seems to target android and unix. and can it be configured to run without dynamic memory allocation?

We definitely should not have multiple json libraries in tree :)
json-c will be external module and it will be out-of-tree module. Considering libc as an example here, zephyr has options for minimal/picolibc/newlib, where pico and newlib is external. It's a choice for the use to consume which version to use based on needs. Similarly, native json implementation in zephyr can be considered as minimal and external json-c can be considered as luxury version.

if you want this library added, it must be implemented as a module, exposing the APIs through zephyr/data/json.h,
json-c is already an external module from another open source project. Consuming the API's from json-c library makes sense to me instead of pulling and maintaining the API's inside the zephyr's native implementation.

naturally, tests need to be added to ensure it builds with all supported platforms, and in tree use of the existing API needs to be extended.
We have few conflicts with hal_espressif for json.  json-c by itself isn't bound to any architecture or SoC platforms, so I will be fixing the CI.

The license of json-c is not apache 2.0, so you will have to bring it up at a TSC meeting to make sure the license is agreeable.
The main idea behind this issue https://github.com/zephyrproject-rtos/zephyr/issues/59303 is to discuss the license and also the possibility to integrate json-c as external module. To add, json-c is MIT License which is compatible with Apache 2.0 AFAIK. Happy to discuss this with TSC.

Then there is the question of size, is it optimized for embedded platforms? it seems to target android and unix. and
I will run some stats with native json and json-c to prepare example json and share soon.

can it be configured to run without dynamic memory allocation?
No, json-c use dynamic memory for parsing and also for preparing  json objects, which can be freed/dropped. But why? Shouldn't a library use memory from heap?

json-c is already an external module from another open source project. Consuming the API's from json-c library makes sense to me instead of pulling and maintaining the API's inside the zephyr's native implementation.

Please read https://docs.zephyrproject.org/latest/develop/modules.html if you haven't already as it is better than me summarizing it :)

No, json-c use dynamic memory for parsing and also for preparing json objects, which can be freed/dropped. But why? Shouldn't a library use memory from heap?

Heaps are optional on embedded platforms, and are often not used. Instead, static objects and buffers, and pools of objects are allocated at build time, see net_pkt and net_pkt_buf and thread stacks for example.

Removing stall and reopening the PR again. Although I couldn't spend time on this so far, will be able to resume soon and planned for August to address the queries. Thanks.

@bjarki-andreasen

json-c is already an external module from another open source project. Consuming the API's from json-c library makes sense to me instead of pulling and maintaining the API's inside the zephyr's native implementation.

Please read https://docs.zephyrproject.org/latest/develop/modules.html if you haven't already as it is better than me summarizing it :)

Thanks, discussions started with the tagged issue to come to a common ground about which JSON implementation to keep in zephyr.

No, json-c use dynamic memory for parsing and also for preparing json objects, which can be freed/dropped. But why? Shouldn't a library use memory from heap?

Heaps are optional on embedded platforms, and are often not used. Instead, static objects and buffers, and pools of objects are allocated at build time, see net_pkt and net_pkt_buf and thread stacks for example.

I understand that heap is optional in the context of zephyr. Does this also applies to external modules? To add, I also adjusted the modules as optional under submanifest now.

Closing this PR. see https://github.com/zephyrproject-rtos/zephyr/issues/59303#issuecomment-2335163121 for more details.


Coordinator: transaction is not solid: reference transaction is not valid

I'm running a coordinator (comnet) which after few hours of good operation is now not able to issue its transactions (checkpoints and milestones) at every interval.
Logs: https://ybin.me/p/2a07fefb066a1368#J/v35jXKxC8VUSjaaUPrQhMWCkZW6P4Nl9/E6BuQ3HI=
Config:
{
  "address": "BODHQPXSMDNHBWVZHVATBAHQGZSKWQLXYZNOXMKNUCOZCPTWHHNFBBHFOEGPTWGGUVDJPZAYZIMXIIGVD",
  "securityLevel": 2,
  "merkleTreeDepth": 23,
  "mwm": 10,
  "intervalSeconds": 10,
  "checkpointTransactions": 1
}

The warning transaction is below max depth: reference transaction is not valid doesn't appear anymore after a restart but transaction is not solid: reference transaction is not valid still remains.

transaction is below max depth: reference transaction is not valid is because of the fast tangle speed. I guess we have to change that.
For the transaction is not solid I have to find a way to synchronize that stuff in a clean way.

Fixed in #476


progress bar is needed

Is your feature request related to a problem? Please describe.
when the datasets is very large ,then data.profile_report wil be stuck with no response,
Of course I understand it is busy,but ....
I really want a progress bar....
Describe the solution you'd like
I really want a progress bar....
In which situation?
in kaggle "IEEE-CIS Fraud Detection",the link is:
https://www.kaggle.com/c/ieee-fraud-detection/data
kaggle api will help you download the datasets very quickly if your internet is slow sometimes.
Describe alternatives you've considered
seems no way now
Additional context
Add any other context or screenshots about the feature request here.
Thanks for your work on this package.

Hello guys, I'd like to help building this functionality, but I'm new to the open source world. I already read the contributing guide but I've not found technical details. Do I just need to create a new branch and start coding on it, and after is completed do a merge request with master ?
Thanks

@marco-cardoso Yes, that's about it. There is room for changes in the pull request, so you don't have to worry too much about getting it perfect the first time. You might also want to add a small paragraph in the contribution guide, where you would have expected the technical details for future reference.

+1

+1

@marco-cardoso I would like to collaborate with you on this. Please let me know how may I help in adding this functionality. I am also new to the open-source. Thanks.

I tried using the new feature in v2.4.1 in jupyter notebook and I just get this printed out:
HBox(children=(FloatProgress(value=0.0, description='variables', max=41.0, style=ProgressStyle(description_wid…
HBox(children=(FloatProgress(value=0.0, description='correlations', max=1.0, style=ProgressStyle(description_w…
HBox(children=(FloatProgress(value=0.0, description='table', max=1.0, style=ProgressStyle(description_width='i…
HBox(children=(FloatProgress(value=0.0, description='warnings', max=3.0, style=ProgressStyle(description_width…
HBox(children=(FloatProgress(value=0.0, description='package', max=1.0, style=ProgressStyle(description_width=…
HBox(children=(FloatProgress(value=0.0, description='build report structure', max=1.0, style=ProgressStyle(des…
I am using the most recent version on github and using the config_minimal file

@jvschoen https://stackoverflow.com/a/57343401/470433

Yes, running jupyter nbextension enable --py widgetsnbextension, jupyter labextension install @jupyter-widgets/jupyterlab-manager worked for me. It now shows the progress bars. However, I would strongly suggest adding this to the main documentation about using with Jupyter notebook, (instead of people like me ending up searching through the Github issues)

These suggestions don't seem to work with jupyter 3.0.3...

These suggestions don't seem to work with jupyter 3.0.3...

@jvschoen Could you please provide details so that we can reproduce?

@jvschoen Could you please provide details so that we can reproduce?


Fixed Undo/Redo issue after log and remark

closes #119 and #104

Codecov Report

Merging #146 (8d92361) into master (5803797) will decrease coverage by 0.19%.
The diff coverage is 33.33%.

@@             Coverage Diff              @@
##             master     #146      +/-   ##
============================================
- Coverage     61.07%   60.88%   -0.20%
  Complexity      437      437
============================================
  Files            91       91
  Lines          1652     1659       +7
  Branches        162      163       +1
============================================
+ Hits           1009     1010       +1
- Misses          593      598       +5
- Partials         50       51       +1

Impacted Files
Coverage Δ

...eedu/address/logic/commands/DateJoinedCommand.java
0.00% <0.00%> (ø)

...va/seedu/address/logic/commands/RemarkCommand.java
0.00% <0.00%> (ø)

...java/seedu/address/logic/commands/SortCommand.java
0.00% <0.00%> (ø)

...java/seedu/address/model/VersionedAddressBook.java
50.00% <40.00%> (-6.53%)
:arrow_down:

.../java/seedu/address/logic/commands/LogCommand.java
77.77% <100.00%> (+0.85%)
:arrow_up:

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more


Remove check for n_ quantities

Pull Request Test Coverage Report for Build<PHONE_NUMBER>9
Details

4 of 4 (100.0%)  changed or added relevant lines in 2 files are covered.
25 unchanged lines in 1 file lost coverage.
Overall coverage increased (+0.2%) to 80.377%

Files with Coverage Reduction
New Missed Lines
%

src/nomad_simulations/schema_packages/model_system.py
25
92.11%

Totals

Change from base Build<PHONE_NUMBER>4:
0.2%

Covered Lines:
2048

Relevant Lines:
2548

💛  - Coveralls

Cloased in favor of #146


[MM-33796][MM-33780] Updating channel switcher css system console

Summary
MM-33796 - Updating channel switcher css system console
I have also updated the elevations to use the correct color value.
Ticket Link
https://mattermost.atlassian.net/browse/MM-33796
https://mattermost.atlassian.net/browse/MM-33780
Screenshots

@amyblais

Done @devinbinnie

@devinbinnie @nevyangelova Looks like the ticket also pointed out another issue in the system console, so fixing that as well.
We can get your reviews again when @michaelgamble has approved this.

@asaadmahmood Search is not returning results on Add people to channel modal. Can you please take a look? Thanks.

@jgilliam17 Do you have users added?
I just added some users and see the results.
Plus, that part is not changed here, it's only visual css changes.

@asaadmahmood one small issue

X to cancel modal seems to be using one og the current theme variables

Should be fixed now @jgilliam17

@devinbinnie Please help review as a priority.

Will try to auto merge this PR once all tests and checks are passing. This might take up to an hour.

Trying to auto merge this PR.

Pull Request successfully merged
SHA: 4127c3bba7e0206e3d739ea01b071acb25327bfd

Cherry pick is scheduled.

Error trying doing the automated Cherry picking. Please do this manually
+++ Updating remotes...
Fetching upstream
Failed to add the RSA host key for IP address '<IP_ADDRESS>' to the list of known hosts (/app/.ssh/known_hosts).
From github.com:mattermost/mattermost-webapp
   812570d7f..aca7c82fd  MM-29959_Only_Sysadmin_Assigns_Roles -> upstream/MM-29959_Only_Sysadmin_Assigns_Roles
   b8afbfbcb..a6bc26efe  MM-32347-SITE-SUBSECTIONS -> upstream/MM-32347-SITE-SUBSECTIONS
   853df97f7..0bc8605ce  MM-32349_authentication -> upstream/MM-32349_authentication
   f48ae4c91..84c1eb641  MM-32350-integrations -> upstream/MM-32350-integrations
   c13ab8f3b..b72994015  MM-32351-Compliance   -> upstream/MM-32351-Compliance
   6b53158eb..2743ddc08  MM-32771-tips-and-nextsteps-improvements -> upstream/MM-32771-tips-and-nextsteps-improvements
 * [new branch]          MM-33540_button-warning -> upstream/MM-33540_button-warning
 * [new branch]          MM-33648              -> upstream/MM-33648
   c836db210..d9dcc8e2a  SectionsToSubSections -> upstream/SectionsToSubSections
 * [new branch]          TypeOnPath-larkox     -> upstream/TypeOnPath-larkox
   6bf8ff2ca..753df6ee6  cloud                 -> upstream/cloud
   0e0a5c3e8..4127c3bba  master                -> upstream/master
   00a959122..c756342e8  release-5.33          -> upstream/release-5.33
 * [new branch]          webapp-command-parser-sync -> upstream/webapp-command-parser-sync
Fetching origin
Failed to add the RSA host key for IP address '<IP_ADDRESS>' to the list of known hosts (/app/.ssh/known_hosts).
+++ Updating remotes done...
+++ Creating local branch automated-cherry-pick-of-mattermost-webapp-#7696-upstream-release-5.33-1615915115
Switched to a new branch 'automated-cherry-pick-of-mattermost-webapp-#7696-upstream-release-5.33-1615915115'
Branch 'automated-cherry-pick-of-mattermost-webapp-#7696-upstream-release-5.33-1615915115' set up to track remote branch 'release-5.33' from 'upstream'.

+++ About to attempt cherry pick of PR #7696 with merge commit 4127c3bba7e0206e3d739ea01b071acb25327bfd.

error: could not apply 4127c3bba... [MM-33796][MM-33780] Updating channel switcher css system console (#7696)
hint: after resolving the conflicts, mark the corrected paths
hint: with 'git add <paths>' or 'git rm <paths>'
hint: and commit the result with 'git commit'

+++ Conflicts detected:

UU sass/components/_react-select.scss
Aborting.

+++ Aborting in-progress git cherry-pick.

+++ Returning you to the master branch and cleaning up.

@asaadmahmood @devinbinnie Can you help cherry-pick to release-5.33 and cloud branches please as a priority?


70 -> v1-release Card header padding

:tada: This PR is included in version 1.0.0-v1-release.22 :tada:
The release is available on:

npm package (@v1-release dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Fix InputManager.onTouchMove to work on scrolled-down pages

This PR

Fixes a bug

Describe the changes below:
Fix InputManager.onTouchMove to work on scrolled-down pages
document.elementFromPoint expects plain viewport coordinates [1], while we used page[XY], which are viewport coordinates with added scroll offsets [2].
So on pages where no scrolling had yet occurred,
InputManager.onTouchMove worked as expected. But as soon as one scrolled down/right on the page, the element detection was off by the scroll offset.
We switch from page[XY] to client[XY] which are plain viewport coordinates [3] and thereby make element detection work also on pages that have been scrolled around.
[1] https://drafts.csswg.org/cssom-view/#dom-document-elementfrompoint
[2] https://w3c.github.io/touch-events/#dom-touch-pagex
[3] https://w3c.github.io/touch-events/#dom-touch-clientx

👍


DOC: Stating to install NumPY

Running pandas at all requires numpy, as is already documented in the install instructions.


Update button callback argument order

Rationale

fix views swapped button and interaction arg positions
Summary of changes made

Checklist

[ ] This PR changes the jishaku module/cog codebase

[ ] These changes add new functionality to the module/cog
[x] These changes fix an issue or bug in the module/cog
[x] I have tested that these changes work on a production bot codebase
[ ] I have tested these changes against the CI/CD test suite
[ ] I have updated the documentation to reflect these changes

[ ] This PR changes the CI/CD test suite

[ ] I have tested my suite changes are well-formed (all tests can be discovered)
[ ] These changes adjust existing test cases
[ ] These changes add new test cases

[ ] This PR changes prose (such as the documentation, README or other Markdown/RST documents)

[ ] I have proofread my changes for grammar and spelling issues
[ ] I have tested that any changes regarding Markdown/RST syntax result in a well formed document

I was aware of this signature change and consciously tested for it earlier and it worked as is and then I tested it now and now it's broken so that's cool I guess. Probably some env mess up by me.


feat(webhook): Add webhook to trigger portainer

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


Add contributors to rasa and link from docs

Given that there are a lot contributions that overlap between core and nlu, we are going to put them on the rasa webpage and link from the documentation

@amn41 is this part of the docs refactoring?

yes we're adding community info to the new landing page

ok, is this done and part of the PR or does the landing page need to be created?

there's a first version but in a separate repo (not the core PR)


Clarify documentation for Repo.aggregate\4

Aggregating a by count on a numerical field is confusing, it is counting rows with a non-null value rather than counting the number of visits.  Summing the number of visits is more intuitive to understand and clarifies the usage a bit.

:green_heart: :blue_heart: :purple_heart: :yellow_heart: :heart:


Getting KeyError when Lambda Functions executes

We are seeing this error when launching new EC2 instances and the private hosted zone is not updated.
'Item': KeyError Traceback (most recent call last): File "/var/task/union.py", line 61, in lambda_handler instance = instance['Item']['InstanceAttributes'] KeyError: 'Item'
Any help is appreciated.

Nevermind, merged in some recent changes and fixed the excess logs and timeout issue we were seeing.


Properly bundlise the api/spis and version the packages

Version the packages and then bundlise it to be used in the OSGi environment.

Not sure what the empty package-info.java do provide? Do we really need them?

Mark, they are for versioning api/spi packages, so that a properly versioned bundle can be generated (http://bnd.bndtools.org/chapters/920-faq.html?#packageinfo). I updated the pom to generate  a bundle instead of a jar file.

Don't we like to provide a single version for the whole bundle?
In my experience giving single packages an own version tends to mess up the release cycles and also the usage.

no. I am talking about package versioning. I came from OSGi background and the bundle version is less important than package version. Refer to https://www.osgi.org/wp-content/uploads/SemanticVersioning.pdf for more info.

+1
I guess as a minimum requirement this and other Microprofile artifacts should use Apache Felix plugin. Or Tycho (https://eclipse.org/tycho/) which is not just for "visual" Eclipse plugins, any library artifact can benefit from that.

IC, so no plans to use Bnd or Felix right now? The version should soon be 1.0.0 or 1.0.0-SNAPSHOT though according to official talks about this module and the overall "release train".

Please see the commits  . Bnd and Felix plugin were committed to the codebase already.

Ok, then it was done already;-)


Updates for 0.9; fixed some warnings.

Thanks!

I've tagged v1.0.0 with your changes and some more warnings fixes.


unexpected floating number error

hi everyone,
I try to send ADA, from an address to another. When I try  this ADA value ( 2.0190109999999994 ADA) for sending to another wallet, I got this error:
'{"code":"bad_request","message":"Error in $.payments[1].amount.quantity: parsing AddressAmount failed, parsing Natural failed, unexpected floating number 2019010.9999999995"}'
Why this situation happened? I would like to send all ADA's value to another, If I decrease the this ada value, I guess the sending process will  be success. but tiny ADA value will send to my another address of my wallet or I don't know...
what will I do?
thank you

@gitloverr I assume that you are trying to send your ADA using https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/postTransaction endpoint sending request to cardano-wallet directly?
Please note that wallet API operates at lovelace level (1ADA = 1 000 000 lovelace) and whole numbers only:

Hi, @piotr-iohk  thank you your support. Yes, I'm using the Cardano-wallet.
Actually my scenario is that:
My wallet total ada balance is : 8.1 ADA
and We assume my ada wallet address is : X
I would like to send 5.9 ADA to Y address
The network says (Cardano-wallet) this transaction fee will be 0.180989 ADA
Now;
Remaining ADA = My Wallet Total ADA Amount - Transfer amount to Y Address - Fee
Remaining ADA = 2.0190109999999994 ADA
I would like to send this Remaining ADA (2.0190109999999994 ADA) to  the X Address (not random address of  the wallet, exactly selected ADA address. ) Therefore I put the the my X ADA address as the transaction output with this REMAINING ADA BALANCE.
what should I do?
Thank you

@gitloverr You should not use floating arithmetic when dealing with finance. Floating arithmetic is poorly suited for precise computation over large decimals and can cope well with rounding. For example, in your calculation above, the resulting amount is actually:
2.019011 Ada

What you should do instead use plain integer at a higher resolution. In Cardano, we use Lovelace, 1 Ada is worth 1.000.000 Lovelace. So in your example, 8.1 Ada is 8100000 Lovelace, 5.9 Ada is 5900000 Lovelace and fees are actually: 180989.
So, your amount end up being:
8100000 - 5900000 - 180989 = 2019011 Lovelace
The wallet API only speaks in Lovelace and expect you to fill all amount in Lovelace to avoid issues coming with floating arithmetic.

@gitloverr You should not use floating arithmetic when dealing with finance. Floating arithmetic is poorly suited for precise computation over large decimals and can cope well with rounding. For example, in your calculation above, the resulting amount is actually:
2.019011 Ada

What you should do instead use plain integer at a higher resolution. In Cardano, we use Lovelace, 1 Ada is worth 1.000.000 Lovelace. So in your example, 8.1 Ada is 8100000 Lovelace, 5.9 Ada is 5900000 Lovelace and fees are actually: 180989.
So, your amount end up being:
8100000 - 5900000 - 180989 = 2019011 Lovelace
The wallet API only speaks in Lovelace and expect you to fill all amount in Lovelace to avoid issues coming with floating arithmetic.

ok, I see @KtorZ, thank you!


After Install the plugin all tasks are broken

Hi everyone, im trying to install the plugin but after put it in the plugins folders, all the task are broken as you see in the picture.

Any Suggestion??
Thanks!

Which version of Kanboard are you using? Can you open the browser console to see if there's any error loading assets?

Hi Xavi, the version is 1.0.33. The error in the apache logs is:
PHP Parse error:  syntax error, unexpected '[' in /var/www/html/kanboard/plugins/Relationgraph/Template/task/sidebar.php on line 13
And the Browser Console:

Thanks!

I have same problem.
Application version: 1.0.34
PHP version: 5.3.3

I think it is a PHP version problem. Could be the new array definition. Try to change line 13 in plugins/Relationgraph/Template/task/sidebar.php
old: ['plugin' => 'relationgraph', 'task_id' => $task['id']]
new: array('plugin' => 'relationgraph', 'task_id' => $task['id'])
or better upgrade to PHP7.


[Android 4.2] congruent operator  seems strange

sever returns not look good -_-", and i judge it by congruent operator.
respondText === 'not look good -_-"' returns false unless open remote JS debugging

Hi there! This issue is being closed because it has been inactive for a while. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. Either way, we're automatically closing issues after a period of inactivity. Please do not take it personally!
If you think this issue should definitely remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:

Does the issue still reproduce on the latest release candidate? Post a comment with the version you tested.
If so, is there any information missing from the bug report? Post a comment with all the information required by the issue template.
Is there a pull request that addresses this issue? Post a comment with the PR number so we can follow up.

If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contribution guide, and feel free to hop into #react-native if you need help planning your contribution.


calico cni (canal) connectivity issue

Hello,
I am running kubernetes 1.4.0 with canal cni. All cni required pods are running. See output below. I am observing connectivity issue between container running in a pod. It cannot even ping local's host flannel interface. When I ping anything outside, example another host's flannel intreface, and run tcpdump on cali414aa30554e interface, I do see icmp packet from the container, same tcpdump on flannel interface does not show any packets at all. So it seems packet from cali414aa30554e are not getting forwarded to flannel.
interfaces info from the pod:
docker exec ac3262b64b17 ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet <IP_ADDRESS>/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
3: eth0@if6: <BROADCAST,MULTICAST,UP,LOWER_UP,M-DOWN> mtu 8950 qdisc noqueue
link/ether fe:7f:53:86:fc:b1 brd ff:ff:ff:ff:ff:ff
inet <IP_ADDRESS>/32 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::fc7f:53ff:fe86:fcb1/64 scope link
valid_lft forever preferred_lft forever
Routes from the host:
route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         gateway         <IP_ADDRESS>         UG    0      0        0 enp2s0f0
<IP_ADDRESS>      <IP_ADDRESS>         <IP_ADDRESS>   U     0      0        0 enp2s0f1
<IP_ADDRESS>       <IP_ADDRESS>         <IP_ADDRESS>   U     0      0        0 flannel.1
<IP_ADDRESS>       <IP_ADDRESS>         <IP_ADDRESS> UH    0      0        0 cali414aa30554e
<IP_ADDRESS>    <IP_ADDRESS>         <IP_ADDRESS> U     0      0        0 enp2s0f0
link-local      <IP_ADDRESS>         <IP_ADDRESS>     U     1002   0        0 enp2s0f0
link-local      <IP_ADDRESS>         <IP_ADDRESS>     U     1003   0        0 enp2s0f1
<IP_ADDRESS>      <IP_ADDRESS>         <IP_ADDRESS>     U     0      0        0 docker0
Interfaces from the host:
ifconfig
cali414aa30554e: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 8950
inet6 fe80::7ccb:faff:fe05:def9  prefixlen 64  scopeid 0x20
ether 7e:cb:fa:05:de:f9  txqueuelen 0  (Ethernet)
RX packets 14373  bytes 1690455 (1.6 MiB)
RX errors 0  dropped 13575  overruns 0  frame 0
TX packets 11  bytes 774 (774.0 B)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
docker0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
inet <IP_ADDRESS>  netmask <IP_ADDRESS>  broadcast <IP_ADDRESS>
ether 02:42:17:71:f4:55  txqueuelen 0  (Ethernet)
RX packets 0  bytes 0 (0.0 B)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 0  bytes 0 (0.0 B)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
enp2s0f0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 9000
inet <IP_ADDRESS>  netmask <IP_ADDRESS>  broadcast <IP_ADDRESS>
inet6 fe80::ec4:7aff:febb:c58c  prefixlen 64  scopeid 0x20
ether 0c:c4:7a:bb:c5:8c  txqueuelen 1000  (Ethernet)
RX packets 426243  bytes 191002762 (182.1 MiB)
RX errors 0  dropped 13571  overruns 0  frame 0
TX packets 226783  bytes 42266077 (40.3 MiB)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
enp2s0f1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 9000
inet <IP_ADDRESS>  netmask <IP_ADDRESS>  broadcast <IP_ADDRESS>
inet6 fe80::ec4:7aff:febb:c58d  prefixlen 64  scopeid 0x20
ether 0c:c4:7a:bb:c5:8d  txqueuelen 1000  (Ethernet)
RX packets 14373  bytes 1690455 (1.6 MiB)
RX errors 0  dropped 13575  overruns 0  frame 0
TX packets 11  bytes 774 (774.0 B)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
flannel.1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 8950
inet <IP_ADDRESS>  netmask <IP_ADDRESS>  broadcast <IP_ADDRESS>
inet6 fe80::88c4:8aff:fea5:d794  prefixlen 64  scopeid 0x20
ether 8a:c4:8a:a5:d7:94  txqueuelen 0  (Ethernet)
RX packets 7  bytes 532 (532.0 B)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 7  bytes 742 (742.0 B)
TX errors 0  dropped 8 overruns 0  carrier 0  collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
inet <IP_ADDRESS>  netmask <IP_ADDRESS>
inet6 ::1  prefixlen 128  scopeid 0x10
loop  txqueuelen 0  (Local Loopback)
RX packets 83  bytes 6816 (6.6 KiB)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 83  bytes 6816 (6.6 KiB)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
kubectl get pods --namespace=kube-system
NAME                                                   READY     STATUS    RESTARTS   AGE
calico-policy-controller-n6gqq                         1/1       Running   0          17h
canal-etcd-uf9wq                                       1/1       Running   0          17h
canal-node-fflk5                                       3/3       Running   0          17h
canal-node-g93oh                                       3/3       Running   0          17h
canal-node-k6l9s                                       3/3       Running   0          17h
canal-node-k8kno                                       3/3       Running   0          17h
canal-node-l5hta                                       3/3       Running   6          17h
canal-node-n7pie                                       3/3       Running   0          17h
canal-node-r0w4t                                       3/3       Running   0          17h
canal-node-tvars                                       3/3       Running   0          17h
canal-node-u1h1u                                       3/3       Running   0          17h
etcd-gateway.calit2.optiputer.net                      1/1       Running   2          21h
kube-apiserver-gateway.calit2.optiputer.net            1/1       Running   1          21h
kube-controller-manager-gateway.calit2.optiputer.net   1/1       Running   2          21h
kube-discovery-982812725-0zfqe                         1/1       Running   2          21h
kube-dns-v19-04ula                                     2/2       Running   0          2h
kube-proxy-amd64-f1hia                                 1/1       Running   3          21h
kube-proxy-amd64-gn0ki                                 1/1       Running   1          21h
kube-proxy-amd64-j661v                                 1/1       Running   1          21h
kube-proxy-amd64-jb870                                 1/1       Running   1          21h
kube-proxy-amd64-jgrs6                                 1/1       Running   1          21h
kube-proxy-amd64-pm1vm                                 1/1       Running   1          21h
kube-proxy-amd64-tjz57                                 1/1       Running   1          21h
kube-proxy-amd64-tmavq                                 1/1       Running   1          21h
kube-proxy-amd64-xiv40                                 1/1       Running   2          21h
kube-scheduler-gateway.calit2.optiputer.net            1/1       Running   2          21h

Closing in favor of the issue in the canal repo. Thanks!


Fix #19: False assertion

I've also created a couple of builders to make things easier to test. I'll create a tidy up task to use sinon to spy on them :smile:

Net code loss thanks to @SiAdcock!


chore: upgrade wagmi and viem

Upgrades

wagmi: ^1.0.5
viem: ~0.3.26

Changes

adjusted viem peer dependency to 0.3.x
adjusted wagmi peer dependency to 1.0.x

✅


Improvements in log tests

This PR has several commits, each one with one improvement:

recently added TestLog_Message is superior to TestLog_Func, so remove TestLog_Func
add new test TestLog_Levels; it iterates over all levels and checks that for each one we can receive a message and it will contain correctly formatted level
check that there are no unexpected errors, instead of ignoring them
in TestLog_Func, use assert instead of require, so that if one check fails, we can see whether other checks also fail or not

Coverage: 88.869% (+0.4%) from 88.51% when pulling 86cb3d7fe12507b641f0c6054cd9b4ba4121f1e6 on gavv:log into fdfc5612e66c975bd70daf84578d3364df9171f8 on roc-streaming:main.


[BD-46] Segment event refactoring

To track user interest in Paragon functionality, we use the track segment of events:

global.analytics.track('openedx.paragon.docs.leave_feedback.clicked');

It would be a good idea to create a definition file and declare all segment events as exportable constants. It will be a plus for Paragon developers to have a single access point to these events + add a common naming pattern for the event segment as a header to this file with constants (openedx.paragon.event_environment.event_name.event_action).
const sendSegmentTrack = (context) => global.analytics.track('openedx.paragon.docs.icons-table.selected-icon.copied', context);

sendSegmentTrack({ name: currentIcon });

PR: https://github.com/openedx/paragon/pull/2840


416 error encountered when Downloading installer

dsm  | ❯ Install: Downloading installer...
dsm  | curl: (22) The requested URL returned error: 416
dsm  | ❯ ERROR: Failed to download https://cndl.synology.cn/download/DSM/release/7.0.1/42218/DSM_VirtualDSM_42218.pat, reason: 22

But this file can be downloaded on the host.


Site link to example package is broken

Example package archive, currently referenced from http://funcunit.com/guides/Guides.guides.start.html page, leads to the 404 page: http://funcunit.com/dist/examples.zip
I also was not find examples on the GitHub.

@isadovskiy the examples can be found here:  https://github.com/bitovi/funcunit/tree/gh-pages/examples
if you are still looking for them - found the link in issue #125

Examples now at https://github.com/bitovi/funcunit/tree/gh-pages/site/examples. They're also in the main repo, now, too (https://github.com/bitovi/funcunit/tree/master/site/examples).


Failed to loading frames/audio

Sir, first i created .csv files, in the csv files it is showing what inputs are there and it's paths also. but during training it is showing failed to load frames/audio.

Hello, I have the same problem. Have you sovled it already? And how to solve this problem? Thank you very much.

@krishnareedy

@krishnareedy

Hi ,
If you look into the code in dataset/music.py, you may find where the error message come from. And you can add a debug code such as print(infos) under this line "print('Failed loading frame/audio: {}'.format(e))". Then try to run the script again, and you will see the following message,
Failed loading frame/audio: could not broadcast input array from shape (0) into shape (29471)
[['./data/audio/erhu/8rb-thew50c.mp3', './data/frames/erhu/8rb-thew50c.mp4', '639'], ['./data/audio/tuba/ALMOnRonTPM.mp3', './data/frames/tuba/ALMOnRonTPM.mp4', '197']]
Failed loading frame/audio: could not broadcast input array from shape (0) into shape (1909)
[['./data/audio/saxophone/FR_1gEaBeeE.mp3', './data/frames/saxophone/FR_1gEaBeeE.mp4', '778'], ['./data/audio/clarinet/-PxCSCYT6rw.mp3', './data/frames/clarinet/-PxCSCYT6rw.mp4', '237']]
Failed loading frame/audio: could not broadcast input array from shape (0) into shape (43253)
[['./data/audio/trumpet/S1iKARDRvX4.mp3', './data/frames/trumpet/S1iKARDRvX4.mp4', '176'], ['./data/audio/accordion/7C-udYVfjoY.mp3', './data/frames/accordion/7C-udYVfjoY.mp4', '1040']]
Failed loading frame/audio: could not broadcast input array from shape (0) into shape (43253)
[['./data/audio/acoustic_guitar/2CcXQsF06Xo.mp3', './data/frames/acoustic_guitar/2CcXQsF06Xo.mp4', '1222'], ['./data/audio/trumpet/S1iKARDRvX4.mp3', './data/frames/trumpet/S1iKARDRvX4.mp4', '176']]
Failed loading frame/audio: could not broadcast input array from shape (0) into shape (1909)
[['./data/audio/clarinet/-PxCSCYT6rw.mp3', './data/frames/clarinet/-PxCSCYT6rw.mp4', '237'], ['./data/audio/accordion/7C-udYVfjoY.mp3', './data/frames/accordion/7C-udYVfjoY.mp4', '1040']]
Failed loading frame/audio: could not broadcast input array from shape (0) into shape (29471)
[['./data/audio/tuba/ALMOnRonTPM.mp3', './data/frames/tuba/ALMOnRonTPM.mp4', '197'], ['./data/audio/erhu/MTyf4utLlJk.mp3', './data/frames/erhu/MTyf4utLlJk.mp4', '1705']]
Failed loading frame/audio: could not broadcast input array from shape (0) into shape (43253)
[['./data/audio/trumpet/2gk-IN35s5I.mp3', './data/frames/trumpet/2gk-IN35s5I.mp4', '817'], ['./data/audio/trumpet/S1iKARDRvX4.mp3', './data/frames/trumpet/S1iKARDRvX4.mp4', '176']]
As the message said, there is a failer loading message here as one of your audio/frame file is too short.

I know what I ca n’t read the audio file, because when running base.py your path is "./data / ....", you can't find the data, or you should replace "./data" to "../Data", or use an absolute path.

Sorry, my statement above is not entirely correct. This repository uses the torchaudio method, and the value returned by the load function is [channel, lenth]. Therefore, we need to modify the load function of the base script and change shape [1] == 2 to shape [0] == 2. The following are similar.

@JusperLee  Thank you so much!! :D

@parth1497 I'm working on at least duplicating the results of this project since you are also working on it, maybe we can solve each other's doubts. There seem to be common issues like these that everyone doing this project has faced.

in my preprocess, the audio has been converted to mono, so the shape is (1,xxxx),  which is not affected by the shape[0] or shape[1]. However, there are still so many: could not broadcast shape 0 to shape (xxx)

Sorry, my statement above is not entirely correct. This repository uses the torchaudio method, and the value returned by the load function is [channel, lenth]. Therefore, we need to modify the load function of the base script and change shape [1] == 2 to shape [0] == 2. The following are similar.

Hello, I modified the load function of the base script as the picture showed , although the failure gets fewer, there is still some failure during training. I wonder if you know the reason for it . Thank you so much!


Epsilon

Hello. I can not set another value for Epsilon.

@olezhko i will take a look and do a fix. stay tuned

@olezhko please see latest version https://www.nuget.org/packages/Polybool.Net/


[Feature Request] Allow dropdown menu have multi-level actions

Existing Component
是
Component Name
el-dropdown-menu
Description
This feature is similar to Cascader and Menu(submenu) components, allow us to group buttons with similar functionalities together and reduce total height of the dropdown.
Expected effect demonstrations:
http://element.eleme.io/#/zh-CN/component/menu#zhe-die
http://element.eleme.io/#/zh-CN/component/cascader

Sorry, we have no plan to support this.


NchooseK + mixture constraints fail

NchooseK constraint fails when in addition a mixture constraint (sum(x_i) = 1.0) is included. The warning Sampling of points fulfilling this problem's constraints is not implemented appears. The resulting design is a trivial collection of runs with a single input set to 1 with all the other to 0. In the example code below, the goal is to have a simple linear design for a four-ingredient mixture (x1+x2+x3+x4+x5=1) with a maximum of three ingredients:
num_inputs = 4
inputs = [f"x{i+1}" for i in range(num_inputs)]
print('Inputs\t   :', inputs)

# mixture constraint
constr1 = opti.LinearEquality(names=[x for x in inputs], lhs=[1 for _ in inputs], rhs=1)
print('Constraints:', constr1)
# n-choose-k
num_nCk_active = 2
constr2 = opti.NChooseK([x for x in inputs], max_active=num_nCk_active)

problem = opti.Problem(
    inputs=[opti.Continuous(x, domain=[0., 1.]) for x in inputs],
    outputs=[opti.Continuous("y")],
    constraints=[constr2, constr1],
)

doe = doe.find_local_max_ipopt(
        problem=problem,
        model_type="linear"
)

Hi @jsdiazpo :),
You are right, I also get a design consisting only of corner points when I run your code example from above.
It is some time ago now and I did not go into the math again, but if I remember correctly, for a linear model the D-optimal design consists only of corner points, which would mean that the method still works fine.
We could check by just removing the NChooseK constr2 constraint (which, I guess, is the reason you assume to cause the problems)
This gives me the following design.

x1
x2
x3
x4

-0.0
-0.0
1.0
-0.0

-0.0
1.0
-0.0
-0.0

-0.0
-0.0
1.0
-0.0

-0.0
-0.0
-0.0
1.0

-0.0
1.0
-0.0
-0.0

1.0
-0.0
-0.0
-0.0

-0.0
1.0
-0.0
-0.0

-0.0
-0.0
-0.0
1.0

Compared to the case with the NChooseK constraint

x1
x2
x3
x4

0.0
1.0
-0.0
0.0

1.0
0.0
0.0
-0.0

0.0
0.0
-0.0
1.0

0.0
-0.0
0.0
1.0

1.0
0.0
-0.0
0.0

-0.0
1.0
0.0
0.0

0.0
-0.0
1.0
0.0

1.0
0.0
0.0
-0.0

In both cases we get 2 the result is the same: 2 experiments in each corner!
I think for other models, e.g. a fully-quadratic model, we would expect to also get points on the faces of the simplex of feasible points. Looking at the same case with a fully-quadratic model we will see that also here the NChooseK constraint seems to cause no problems
First with the NChooseK constraint
problem = opti.Problem(
    inputs=[opti.Continuous(x, domain=[0., 1.]) for x in inputs],
    outputs=[opti.Continuous("y")],
    constraints=[constr2, constr1],
)

res = doe.find_local_max_ipopt(
        problem=problem,
        model_type="fully-quadratic"
)

We get

x1
x2
x3
x4

0.5
0.5
0.0
0.0

0.5
0.0
0.0
0.5

0.0
0.0
-0.0
1.0

0.0
0.5
0.0
0.5

0.5
0.0
0.5
0.0

0.0
0.5
0.5
0.0

0.5
0.5
0.0
0.0

0.5
0.0
0.0
0.5

0.0
0.0
0.5
0.5

0.0
0.5
0.0
0.5

0.5
0.0
0.5
0.0

0.0
0.5
0.5
0.0

-0.0
1.0
0.0
0.0

0.5
0.0
0.0
0.5

0.0
0.0
1.0
-0.0

0.0
0.5
0.0
0.5

1.0
0.0
-0.0
0.0

0.0
0.5
0.5
0.0

and without

x1
x2
x3
x4

0.5
-0.0
-0.0
0.5

0.5
0.5
-0.0
-0.0

-0.0
-0.0
0.5
0.5

0.5
-0.0
-0.0
0.5

-0.0
0.5
0.5
-0.0

-0.0
-0.0
0.5
0.5

0.5
-0.0
0.5
-0.0

0.5
0.5
-0.0
-0.0

-0.0
1.0
-0.0
-0.0

-0.0
-0.0
1.0
-0.0

-0.0
0.5
0.5
-0.0

1.0
-0.0
-0.0
-0.0

0.5
-0.0
0.5
-0.0

-0.0
-0.0
-0.0
1.0

-0.0
0.5
-0.0
0.5

-0.0
0.5
0.5
-0.0

-0.0
0.5
-0.0
0.5

-0.0
-0.0
0.5
0.5

In both cases we have 4 corner points and the rest spread over the middle points of the edges of our simplex. As far as I remember this is the expected behaviour. This means: I think in your example the D-optimal design anyways fulfills your NChooseK constraint. Do you agree? Did I miss sth?

Ah, and I forgot to write sth about the warning you received: Indeed there is no implementation for sampling points (initial guesses for the optimizer) that fullfill NChooseK constraints and other constraints at the same time. However, all constraints are passed to IPOPT and it will try to find a design that respects all constraints. Since the fix of your last issue #6 you should get another warning if such a design cannot be achieved.

hi @Osburg, thanks for the clear explanation. I agree that I should have tested a design other than linear. One thing that still bothers me, though, is that the returned design includes several sets of repeated experiments instead of multi-component mixtures. I am working with a more extended case: 13 inputs, maximum 5 can be present, num_inputs = 13 and num_nCk_active = 5 in the code above. For a design with linear-and-interactions model type, I get back a 95-run design with almost all binary mixtures, not a single multi-component (3, 4, or 5) mixture. I guess they are reduce the D-optimality score but I wish to get some multi-component mixtures instead of duplicates of existing corner runs.

As you said, I also think that a model made out of corner points and binary (50:50) mixtures defines the D-optimal design. However, if you are willing to accept a worse D-optimality score, you could easily fix this by adding higher order interactions to the model you optimize for. At least intuitively I would say that you can expect n nonzero components if you add n-th order interactions. I added a minimal example below. There we have 3 inputs, a mixture constraint and all interactions up to the 3rd order (i.e. the highest possible order in this case). I think the result looks similar to what you want.
import opti
import numpy as np
import doe

problem = opti.Problem(
   inputs = opti.Parameters([opti.Continuous(f"x{i+1}", [0, 1]) for i in range(3)]),
   outputs = [opti.Continuous("y")],
   constraints = [
        opti.LinearEquality(names=[f"x{i+1}" for i in range(3)], rhs=1),
   ]
)

res = doe.find_local_max_ipopt(problem, "x1 + x2 + x3 + x1:x2 + x1:x3 + x2:x3 + x1:x2:x3", delta=1e-3)

print(np.round(res,2))

Resulting design

x1
x2
x3

-0.00
1.00
-0.00

-0.00
-0.00
1.00

0.50
-0.00
0.50

-0.00
-0.00
1.00

0.50
-0.00
0.50

-0.00
0.50
0.50

0.34
0.34
0.32

0.34
0.34
0.32

1.00
-0.00
-0.00

-0.00
0.50
0.50

0.50
0.50
-0.00

this is a clever approach, I am willing to sacrifice some D-optimality to explore not-repeated configurations away from the corners, thanks!


Unable to save the file in the device onStartReacorder()

import RNFetchBlob from 'rn-fetch-blob';
let dirs = RNFetchBlob.fs.dirs;
let path = Platform.select({
ios: 'hello.m4a',
android: ${dirs.CacheDir}/hello.mp3,
});
I don't see the file in my device, and for such I guess I'm facing an error on playing the audio saying : open failed: ENOENT (No such file or directory)

Need to call startRecorder to see the file.


Try a different approach for the docs home page

I am trying out a different layout and content for the documentation home page that focuses on describing all the sources of documentation that we provide and explaining what they're for.
Note that this pull request depends on #6317.

@eriwen The links to the Groovy DSL reference and Javadoc API are displayed as monospace at the moment, I assume because of the CSS. Would it be possible to modify the associated CSS selector so that it excludes the home pages for those docs?

I think the general idea here is very good. The goal of this page ought to be to help a user figure out what area of documentation they want to go to and go there.
I think we could and should cut a lot of the copy. Folks don't want to have to read a lot to make the decision of where to go next. I think we are missing an opportunity to use a bit of imagery to help convey this stuff too.
In my mind we have 6 pieces to link off to:

What is Gradle?

"What Gradle does and why you should use it for software automation"

Getting Started

"Start here to learn how to build your new or existing project with Gradle"

Tutorials

"Build a project using your favorite language in 15 minutes or less"

User Manual

"In-depth information and best practices on configuring and running Gradle"

Plugins

"Integrate Gradle with other libraries and tools such as Spring Boot or Kotlin"

API References

"Listing of methods and configuration options for specific Gradle APIs"
Groovy DSL Reference
Kotlin DSL Reference
API Javadoc

For imagery and design I think it might be good to ask @aweida for help here since this is such a prominent page. He will surely have ideas that inspire us further.

@pledbrook can we close this or do we need to make a decision/change here?

This was more of a proof of concept than anything else. And the home page is not a high priority at the moment.


Repo metadata load and save

Tentatively close #54
Example use case:

goal: updating all licenses for Helsinki-NLP models with no license, to apache-2.0 – see https://github.com/huggingface/transformers/issues/13328#issuecomment-916455471
example script: https://gist.github.com/julien-c/b2dcde5df5d5e41ad7c4b594cb54aba3

Thanks so much for this! This is a very needed upgrade! ❤🔥
This will be very useful for all our 3rd party integrations if we ever need to modify all the repos. We should communicate about this PR once merged to all big libraries and orgs (e.g. Stanford NLP)

(current status: spamming the CI to try and get all transient errors to go green 😅)

@LysandreJik attempted to solve merge conflict
This should be ready to merge, depending on final maintainer acceptance (😘 )

Will push an additional test and merge in a bit.

Thank you for your work @julien-c

(current status: spamming the CI to try and get all transient errors to go green sweat_smile)

Note about that issue I witnessed working on PRs : huggingface_hub and transformers CI often fails because of moon-staging 504 timeouts. If needed, I can work on strengthening this staging server's capacities


Caching

Hi
Which layers would be responsible for implementing caching, I was thinking I would create a "ICacheManager" in application and then implement this in Infrastructure?  Then I could cache the queries into memory to save on repeated database requests.
Also where would you place all the standard utils code like ToCsv, Hashing, Serialisation etc. I was thinking to create interfaces again for all of these in application and implement in Infra layer, then the commands/queries can use these tools in a safe way
Any advice would be greatly appreciated.
Thanks

Nice question. As always it depends on your needs.
Perfect solution imo? Setup caching at Api Gateway.
Here? There are several decent solutions:

Simplest? Use can cache in your cqrs. Interface for caching in app layer and Implementation in infrastructure. Then you can do something like this:

public async Task<IList<LocationDto>> Handle(SearchLocationsQuery request)
    {
      return await _cache.GetOrSetData(
        $"maps:search#{request.Search}",
        TimeSpan.FromDays(14),
        async () => await _mapsService.Search(request.Search));
    }

Boring? Cache at controller level with asp.net core annotations.
Fancy? Caching entire queries is an interesting idea. I like it. I just don't know where should you put it. I'll probably consider adding this to mediatr pipeline somehow or wrap mediatr into something else.
Maybe you don't need cache yet? It's easy to mess up this. I hate dealing with cache.

For utils I'll probably keep them in Common project as extensions or (static?) classes.

Thank you for your reply.  I liked the idea of caching the handlers like you suggested.
I added new ICacheRequest type and new behaviour into the mediator pipeline.  So now before the handler for the query is executed the cache is checked first.  Seems to work really well.
This is the Pipeline Behaviour code.  The Implementation for ICacheManager is external and part of Infrastructure.
public class RequestCachedBehaviour<TRequest, TResponse> : IPipelineBehavior<TRequest, TResponse> where TRequest : ICachedRequest<TResponse>
    {
        private readonly ICacheManager _cacheManager;

        public RequestCachedBehaviour(ICacheManager cacheManager, IJsonSerializer jsonSerializer)
        {
            _cacheManager = cacheManager;
        }

        public async Task<TResponse> Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate<TResponse> next)
        {
            var cacheKey = request.GetCacheKey();

            var response = await _cacheManager.GetOrCreateAsync(cacheKey, async () => await next(), 60);
            return await response;
        }
    }

Great discussion / implementation. It would be good to see this example expanded further to support caching for specific queries with specified a duration.

There's an issue, with the provided code in asp-net-core2.2.
As Jimmy Bogard provided in his issue

ASP.NET Core DI does not support constrained open generics

So you might end up switching IoC containers for those, which support it.
See the list of supported containers
@andrew1555, do you use third-party IoC and if not. how did you surpass that limitaion?

@LuridSNK Hi, I use autofac for my DI so didn't encounter this issue.

@jasontaylordev @andrew1555
Hello again. So, I was working recently to make a configurable caching within Clean Architecture, without using unnecessary fields in IRequest implementations. I was inspired by EntityFramework & FluentValidation implementations when I decided to make a raw prototype.
Here's what I've managed to do:

The base class to inherit and create specific configuration

// we implement empty 'holistic' interface ICacheConfiguration for DI purposes
/ *note: cached object must implement ICachedEntity 'holistic' interface to
get into the RequestPipeline, since there are always objects
that developers might decide not to cache */
public class CacheConfiguration<TTarget> : ICacheConfiguration
   where TTarget : class, ICachedEntity
   {
       // we have an expiry configured as well as key building event, so we could get keys in runtime
       internal TimeSpan Lifetime;
       internal Func<TTarget, string> Builder;

       public void WithKey(Func<TTarget, string> keyConfiguring) =>
           Builder = keyConfiguring;

       public void WithLifetime(TimeSpan lifetime) => Lifetime = lifetime;
   }

The configuration factory:

public class CacheKeyFactory
    {
        private readonly IServiceProvider _sp;

        public CacheKeyFactory(IServiceProvider sp) => _sp = sp;

        public CacheKey GetKeyFor<TTarget>(TTarget target) where TTarget : class, ICachedEntity
        {
            if (!(_sp.GetService<ICacheConfiguration>() is CacheConfiguration<TTarget> config))
            {
                throw new ArgumentNullException($"CacheConfiguration<{typeof(TTarget).Name}>");
            }

            return new CacheKey(config.Builder(target), config.Lifetime);
        }
    }

NetCore DI Extension method:

 public static class CacheKeyConfigurationExtensions
    {
        public static IServiceCollection AddKeyConfigurationFromAssemblyContaining<T>(this IServiceCollection services)
        {
            var types = typeof(T).Assembly.GetTypes().Where(t => t.IsClass && !t.IsAbstract && typeof(ICacheConfiguration).IsAssignableFrom(t));
            foreach (var type in types)
            {
                services.TryAdd(ServiceDescriptor.Scoped(typeof(ICacheConfiguration), type));
            }

            services.TryAddSingleton<CacheKeyFactory>();

            return services;
        }
    }

Then the PipelineBehaviour implementation, that filters only ICachedEntity:

public class RequestCacheBehaviour<TRequest, TResponse> : IPipelineBehavior<TRequest, TResponse>
        where TRequest : class, ICachedEntity
    {
        private readonly ICache _cache;
        private readonly CacheKeyFactory _factory;

        public RequestCacheBehaviour(ICache cache, CacheKeyFactory factory)
        {
            _cache = cache;
            _factory = factory;
        }

        public async Task<TResponse> Handle(
            TRequest request,
            CancellationToken cancellationToken,
            RequestHandlerDelegate<TResponse> next)
        {
            var cacheKey = _factory.GetKeyFor(request);
            var response = await _cache.GetAsync<TResponse>(cacheKey.Value).ConfigureAwait(false) ?? (TResponse) await next().ConfigureAwait(false);
            await _cache.AddAsync(cacheKey.Value, response, cacheKey.Lifetime).ConfigureAwait(false);
            return response;
        }
    }

Please note, that this is a raw prototype, and can be greatly improved.
For example, to create a configuration store to stop using ServiceProdiver for object allocations and use Expression API instead of raw functions, to use dynamic method invoke.

Thank you for your interest in this project. This repository has been archived and is no longer actively maintained or supported. We appreciate your understanding. Feel free to explore the codebase and adapt it to your own needs if it serves as a useful reference. If you have any further questions or concerns, please refer to the README for more information.


Keep open buffer order on opening

Hi and thanks for this plugin.
I recently tried it and my main issue with it is that :PickerBuffer is not initially sorted by last opened. Once I start typing, I don't care about the order anymore but it's useful to be able to go down 1 or 2 when you know with which files you're currently working with.

I'm not sure this is worth the effort.  Here's my two cents.

When I first used vim-picker, I wanted this feature, too.  But without it, I found that when I popped open :PickerBuffer, I already had an idea (if not the exact name) of the file I want to switch to.  Now, I type a couple letters of the filename or extension to shorten the buffer list to a handful of filenames, and from there I can browse with a few keystrokes.
It's maybe a little more effort on my part, but it works, and doesn't complicate the fairly simple code of vim-picker by maintaining a most-recently-used (MRU) buffer list--a feature not built into Vim and a few MRU plugins [1] [2] exist to fill this gap.  I switched to vim-picker because it's simple and lean.  Incorporating a MRU plugin into vim-picker, to me, is bloat.
Now if there's a way to load a separate MRU plugin and configure vim-picker to call into that plugin to fetch its sorted buffer list with a g:picker_bufnrs_command that you can set up, then there's no bloat for me to worry about.

A recent update to vim-picker removed the primary buffer from the :PickerBuffer list, because it's already front and center.

Vim already supports toggling between the current buffer and the previous (aka "alternate") buffer with <C-^>, <C-6> and :b# [3], which begs the question, "When Vim already has a builtin for switching to the previous buffer, what value is there in adding code to move the alternate buffer to the top of the buffer list?"  A semi-rhetorical question that suggests that what you really want is the functionality of an MRU buffer list.

[1]: https://github.com/vim-scripts/mru.vim
[2]: https://github.com/vim-scripts/bufmru.vim/blob/master/plugin/bufmru.vim
[3]: http://vim.wikia.com/wiki/Easier_buffer_switching


Use vanilla AbortController polyfill

Fixes #7.

I did it slightly differently, but I appreciated you taking the lead to help get that polyfill fixed!

You are welcome. Thank you!


Database abstraction

I think merging it is okay, but we should probaly make some more tests doing the clean up workshop.


Add bit_count Presto function.

Bit count functionality returns the number of bits set
for a given number.

I had a discussing on this with @aditi-pandit for out of range values returning false will default to NULL. Since this could be called for individual rows, crashing the entire query may not be the right thing. May be I should be add this to the documentation as well.

@karteekmurthys We don't have much choice here as we much match Presto semantics exactly.

linux-parquet-s3-build is failing at minio server install. No permissions to rerun. Retried by amending the commit but still failed.
#!/bin/bash -eo pipefail
set -xu
cd ~/adapter-deps/install/bin/
wget https://dl.min.io/server/minio/release/linux-amd64/minio
chmod +x minio

+ cd /root/adapter-deps/install/bin/
/bin/bash: line 1: cd: /root/adapter-deps/install/bin/: No such file or directory

Exited with code exit status 1

CircleCI received exit code 1

I am able to build linux-parquet-s3-build on my docker container:
-- Found glog: /usr/lib64/libglog.so
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.11")
-- Found Boost: /usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake (found suitable version "1.72.0", minimum required is "1.51.0") found components: context filesystem program_options regex system thread
-- Found folly: /usr/local
-- Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR)
-- Found Protobuf: /usr/lib64/libprotobuf.so;-pthread (found suitable version "3.5.0", minimum required is "3.0.0")
-- Configuring done
-- Generating done
-- Build files have been written to: /velox/_build/release
make[1]: Leaving directory '/velox'
make[1]: Entering directory '/velox'
cmake --build _build/release -j 6
[706/749] Building CXX object velox/external/duckdb/CMakeFiles/duckdb.dir/parquet-amalgamation.cpp.o

@karteekmurthys you have to rebase with the main branch. A fix for this issue went in yesterday.

Previous Commit had some Circle CI failures in unit tests of linux-praquet-build. I am not able to reproduce it on my local docker container on the same commit.
All tests passed locally:
118:
118: [----------] Global test environment tear-down
118: [==========] 241 tests from 29 test suites ran. (616351 ms total)
118: [  PASSED  ] 241 tests.
121/121 Test #118: velox_exec_test ......................................   Passed  617.89 sec

100% tests passed, 0 tests failed out of 121

Total Test time (real) = 617.90 sec

Here is the test failure in job: https://app.circleci.com/pipelines/github/facebookincubator/velox/4664/workflows/a8301152-13ed-4376-bb45-31045efecf23/jobs/23083
Logs:
[ RUN      ] BitwiseTest.bitCount
E0203 07:25:42.269189  8782 Exceptions.h:68] ../.././velox/functions/prestosql/Bitwise.h44call(num >= ~lowBitsMask && num <= lowBitsMask)Number must be representable with the bits specified. 9 can not be represented with 64 bitsUSERINVALID_ARGUMENT
unknown file: Failure

This should not happen. 9 is a valid input. It can be represented using 64 bits.

I'm seeing CircleCI failing the new test: 113: [  FAILED  ] BitwiseTest.bitCount (34 ms)
https://circleci.com/api/v1.1/project/github/facebookincubator/velox/23131/output/109/0?file=true&allocation-id=61fbeb011d60c53121c8c330-0-build%2F143262A2

I'm seeing CircleCI failing the new test: 113: [ FAILED ] BitwiseTest.bitCount (34 ms)
https://circleci.com/api/v1.1/project/github/facebookincubator/velox/23131/output/109/0?file=true&allocation-id=61fbeb011d60c53121c8c330-0-build%2F143262A2

That test is passing now.

@karteekmurthys I'm getting errors when trying to land:
Note: Google Test filter = BitwiseTest.bitCount
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from BitwiseTest
[ RUN      ] BitwiseTest.bitCount

stderr:
buck-out/dev/gen/aab7ed39/velox/functions/prestosql/velox_functions_prestosql_impl#header-mode-symlink-tree-with-header-map,headers/velox/functions/prestosql/Bitwise.h:41:44: runtime error: signed integer overflow: -9223372036854775808 - 1 cannot be represented in type 'long'
    #0 0x7f32673837da in _ZNK8facebook5velox17SelectivityVector15applyToSelectedIZNS0_4exec7EvalCtx22applyToSelectedNoThrowIZNKS3_21SimpleFunctionAdapterINS0_4core9UDFHolderINS0_9functions16BitCountFunctionINS3_10VectorExecEEESB_lJllEEEE7iterateIJNS3_12VectorReaderIlEESH_EEEvRNSE_12ApplyContextEbDpRKT_EUlTyT_E_EEvRKS1_SO_EUlTySO_E_EEvSO_ velox/functions/prestosql/Bitwise.h:41

@karteekmurthys I'm getting errors when trying to land:
Note: Google Test filter = BitwiseTest.bitCount
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from BitwiseTest
[ RUN      ] BitwiseTest.bitCount

stderr:
buck-out/dev/gen/aab7ed39/velox/functions/prestosql/velox_functions_prestosql_impl#header-mode-symlink-tree-with-header-map,headers/velox/functions/prestosql/Bitwise.h:41:44: runtime error: signed integer overflow: -9223372036854775808 - 1 cannot be represented in type 'long'
    #0 0x7f32673837da in _ZNK8facebook5velox17SelectivityVector15applyToSelectedIZNS0_4exec7EvalCtx22applyToSelectedNoThrowIZNKS3_21SimpleFunctionAdapterINS0_4core9UDFHolderINS0_9functions16BitCountFunctionINS3_10VectorExecEEESB_lJllEEEE7iterateIJNS3_12VectorReaderIlEESH_EEEvRNSE_12ApplyContextEbDpRKT_EUlTyT_E_EEvRKS1_SO_EUlTySO_E_EEvSO_ velox/functions/prestosql/Bitwise.h:41

@mbasmanova Addressed this. The issue was shifting 1L by 63 bits sets the MSB. Storing this in a int64_t makes it
-9223372036854775808. If we try to subtract 1 on this value, we end up overflowing the int64_t limit. I switched to using uint64_t to store lowerBitMask. Now (1L << 63) would be a positive value.

Thank you, @karteekmurthys


temporary fix for STAC pagination (E84 api)

TODO

[x] check with https://earth-search.aws.element84.com/v0/search
[ ] check with sat-api.devseed
[ ] check with arturo cc @geospatial-jeff

other API we can test ?

FYI This is not working for your API @geospatial-jeff because you need the next token I think

The proposed script will work with old and new API.
By default we will add page=X in the stac query (this is for old style API), For new API using Next links, user will need to use set the stac_next_link_key option to tell the backend to get the new query from the links.
with MosaicBackend(
    f"stac+{stac_endpoint}",
    query.copy(),
    11,
    14,
    backend_options={
        "accessor": lambda feature: feature["id"],
        "stac_next_link_key": "next",
    }
) as mosaic:

cc @geospatial-jeff


[CBR-179] API Bouncing and Throttling (new data-layer)

Description
Bouncing and throttling implementation for the new data-layer.
Note that this was already reviewed as part of https://github.com/input-output-hk/cardano-sl/pull/3581
Linked issue
[CBR-179]
Type of change

[ ] 🐞 Bug fix (non-breaking change which fixes an issue)
[x] 🛠 New feature (non-breaking change which adds functionality)
[ ] ⚠ Breaking change (fix or feature that would cause existing functionality to change)
[ ] 🏭 Refactoring that does not change existing functionality but does improve things like code readability, structure etc
[ ] 🔨 New or improved tests for existing code
[ ] ⛑ git-flow chore (backport, hotfix, etc)

Developer checklist

[x] I have read the style guide document, and my code follows the code style of this project.
[x] If my code deals with exceptions, it follows the guidelines.
[x] I have updated any documentation accordingly, if needed. Documentation changes can be reflected in opening a PR on cardanodocs.com, amending the inline Haddock comments, any relevant README file or one of the document listed in the docs directory.
[ ] CHANGELOG entry has been added and is linked to the correct PR on GitHub.

Testing checklist

[x] I have added tests to cover my changes.
[x] All new and existing tests passed.

QA Steps

Screenshots (if available)

Closing this, as per @KtorZ's recommondation


Store state in URL

I had something different in mind. First, the hash (#) is for anchors, a DOM element with the ID provided with the hash. So it'd be better to use URL parameters instead (like tpl_src=blabla&struct_src=yeye).
Also, I hash in mind a "share" button which would generate URLs to provide others and would generate only when cliked. And finally, don't watch over URL changes. If the URL change, it will simply reload the page and that's when the script will check for the URL parameters.
Sorry, should have been more clear about what I had in mind. ^^'
Also I didn't expect you to implement it so fast. XD

Using the anchor to store a state is fine. It's still used by many applications. It's just that twitter, facebook etc. used it wrong anno 2010, what gave this method a bad rep.
But I added a share button, now, that uses query parameters.
Are you maybe inclined to make the share button + dialog pretty? Maybe you have something you just can copy+paste? :)

I can definitely improve looks. Give me a few minutes to check locally.

The copy-button does not work locally, because it works only over an HTTPS connection. But I am fairly confident that it would work. :D

It works on rustdoc without trouble though. I'll take a look at it too. :)

Ok, I think I'm mostly done with UI improvements. Please take a look and tell me if it looks all good to you. :)

Forgot to check the copy to clipboard bug. XD

Fixed the copy to clipboard. ^^'

I like the new menu! But it does not seem to work a 100%. When I they to switch the theme, then the click to open the drop down list of the select also closes the menu.

Ah indeed. Event propagation is a bit different apparently. Anyway, fixed it.

Remove the changes in "copy to clipboard".

Thank you very much for adding the menu and styles! I did some minor changes to the spacing and such. IMHO it's quite perfect now, but I might be a little biased. :)

Looks all good. :)

https://rinja-rs.github.io/play-rinja/?saved=eJwrM2QISUxJVGTwLFEozy_KLlaw0gQAPIIF2Q.. :D

That's super cool. Great work! :D


Example to explain how to assign an IP address to a device

Hello,
I didn't find how to assign an IP address to a device in the documentation:

https://netbox.readthedocs.io/en/stable/core-functionality/ipam/
https://netbox.readthedocs.io/en/stable/core-functionality/devices/

It seems to be a basic feature. Could you add an exemple ?
Change Type
[X ] Addition
[ ] Correction
[ ] Deprecation
[ ] Cleanup (formatting, typos, etc.)
Proposed Changes
Could you add an exemple ?
Regards,
Ludovic

Hello,
As fas as I can see you cannot assign an IP address to a device interface. Instead, you add an IP address for an interface and define that address from an IP-prefix you created beforehand. Netbox creates that IP within the prefix, marks it as "existing" and assign it to the interface.
Pavel

@pzhivov is correct, you do not assign a device an ip, you assign an IP  to a interface and mark that IP as the primary IP for the interfaces related device.


Size mismatch problem

Describe the bug
I'm trying to use UV5. Whenever I type the command to isolate the vocals, i get a long error saying something about "Size mismatch".
To Reproduce

Open Terminal
Type "python inference.py -g 0 -m modelparams/4band_44100.json -P models/NewLayer_4band_3.pth -i "PATH" (obviously in PATH I typed the correct file path to choose)
Expected behavior
The program should start and isolate the vocals from the song

Screenshots

Desktop:

OS

NewLayer_4band_3.pth - This model uses a different architecture. Frequency cut-off is 20000 Hz. Must be used with 4band_44100.json file! Please include '-n 129605KB' within the inference command to run this model!

Hi,
Reopening this since I'm having the same issue and the suggested approach did not work.
I've tried to use any of the July models as following:
file_path='bin/example/test.wav'
model_path='models/HP2-4BAND-3090_4band_2.pth'
param_path='modelparams/4band_44100.json'

python3 inference.py -n 129605KB -g 0 -m $param_path -P $model_path -i $file_path

I tried with and without the -n 129605KB flag. Also tried all the other models in the new 5.0.2 release. I'm using the recommended JSON as well.
The error returned is the following (many lines of these):
size mismatch for aux1_out.weight: copying a param with shape torch.Size([2, 32, 1, 1]) from checkpoint, the shape in current model is torch.Size([2, 16, 1, 1]).
        size mismatch for aux2_out.weight: copying a param with shape torch.Size([2, 32, 1, 1]) from checkpoint, the shape in current model is torch.Size([2, 16, 1, 1]).

Other models work fine, such as MGM-v5-4Band-44100-BETA1.
Any help is appreciated!
Thanks!


Remove Bionic from future releases (Garden+)

See https://github.com/ignition-tooling/release-tools/issues/597

Summary

There are no plans to include ign-cmake3 on Garden, but whenever it's officially released, it won't have Bionic support.
Test it

No Bionic builds should be triggered.
Checklist

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

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

I disabled the Windows build because the buildfarm is swamped and this PR shouldn't affect it.


GWT module does not map the proper Input.Buttons

Issue details
When trying to detect mouse clicks, the GWT module does not map the proper button clicks:
if (Gdx.input.isButtonJustPressed(Input.Buttons.RIGHT)) is actually triggered on left-click.
if(Gdx.input.isButtonJustPressed(Input.Buttons.MIDDLE)) is actually triggered on right-click.
if(Gdx.input.isButtonJustPressed(Input.Buttons.LEFT)) is not triggered through left-click, right-click, nor middle-click.
Reproduction steps/code
Try this piece of code to reproduce the issue. Via the DesktopLauncher it will work as expected, but when tried via the browser (after using dist and superDev html build tasks), it will behave as described above.
Version of LibGDX and/or relevant dependencies
1.9.10
Please select the affected platforms
HTML/GWT is the only platform I've seen this bug occur on so far.

This is a real bug; it looks easy enough to fix. GwtInput has a getButton() method that remaps a constant from GWT's NativeEvent to the constants in libGDX's Input.Buttons. Take a look at https://github.com/libgdx/libgdx/blob/6ac58f6a3646f7af1258b34349babe3dcbea7638/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/GwtInput.java#L591-L592 ; one usage relating to the just-pressed buttons only uses the NativeEvent codes, and doesn't remap. This means @payne911 could either use NativeEvent's constants on GWT only (not any other platform), which seems bad but maybe necessary, or we could fix this by changing line 592 in GwtInput.java to call getButton() on the event's code from its own getButton() method (like on line 591).


[Event Request] Report 99001017 - OnBeforeShowPlanningErrorLog

Please add a new Publisher Call OnBeforeShowPlanningErrorLog in Procedure CloseWindow of Report 99001017 "Calculate Plan - Plan. Wksh."
Add Call of Publisher in Procedure CloseWindow
        if Counter > CounterOK then begin
            Message(Text007, Counter - CounterOK);
-           if PlanningErrorLog.FindFirst then
-               PAGE.RunModal(0, PlanningErrorLog);
+           if PlanningErrorLog.FindFirst then begin
+               OnBeforeShowPlanningErrorLog(Item, PlanningErrorLog);
+               PAGE.RunModal(0, PlanningErrorLog);
+           end;
        end;

New Publisher:
+    [IntegrationEvent(false, false)]
+    local procedure OnBeforeShowPlanningErrorLog(Item: Record Item; var PlanningErrorLog: Record "Planning Error Log")
+    begin
+    end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


Add minor fixes to client entity schema

Vanilla player entity is invalid according to this schema. I adjusted it to make it work.
Changes:

Allowed the scale to be either number or string
Allowed the render controllers to be defined also as an object (conditional render controllers)
Adjusted some descriptions (some folder names were wrong in descriptions)

Looks good, thanks for the changes


Change withContext and getContext to use new context API

related https://github.com/acdlite/recompose/issues/609
Abstract
The new context API has an ability to bypass PureComponent and shouldComponentUpdate check that prevents component updating from context change, opposes to the legacy API that totally ignores context change if parent component haven't updated.
As far as I'm aware, this isn't breaking change, except some of those apps running by relying on the old API quirk. But overall this should improve the way the app behaves on context change.
The new context API rely on React 16.3 which is already a dependency of recompose package.
Here's a demo on how the new API behave compare to the legacy one https://codesandbox.io/s/1o5y0r419j
The problem I found during build:

I couldn't test locally because of jest kept throwing an error:SecurityError: localStorage is not available for opaque origins

on every test since I first clone this repo. And I don't know how to fix this error.
The test on 2 API might have been broken because the new context API require you to include its Provider/Consumer components which change the render tree.
yarn test in prepush comment also has an errorERROR: [Errno 2] No such file or directory: 'test'

Turned out my OS has a very old system-wide yarn installation and the npm script tried to use it instead. So I fixed the problem by removing the old installation and installing the latest version via nvm I'm using.
Then came the next problem<EMAIL_ADDRESS>doesn't support new React components, including new context API components. I had to change dependency version to<EMAIL_ADDRESS>which is the current latest version. Then the tests for getContext and withContext runs fine now without any modification to the committed code.
Except for one test; toClass's toClass passes context and props correctly still relies on old context API. I've never used toClass before, so I have no idea how it should behave or how it work.
So my questions are:

How should I refactor the toClass test to use new context API? Is it still needed?
I also had tried to refactor withContext to use jsx instead of React.createElement. But I'm not sure which one should be used; jsx or `React.createElement?

What I have changed are:

Refactor both component to produce a clearer render tree for multiple context Consumer/Provider component. Before it has

<WithContext ...props>
  <Provider value>
    <Component ...props>  <-- Unnecessary intermediate component
      <Provider value>
        <BaseComponent ...props>

After fixed:
<WithContext ...props>
  <Provider value>
    <Provider value>
      <BaseComponent ...props>

Use class component for withContext and add legacy API to it. This had be done to pass the toClass test that check context with legacy context API. This also add backward compatibility in case of some user uses recompose context component MIXED with classic way to manage context, which is also a bad practice.

Bump up<EMAIL_ADDRESS>New version is required to test new react component; context Provider/Consumer.

Great work, but see main page notice https://github.com/acdlite/recompose#a-note-from-the-author-acdlite-oct-25-2018
there is no active maintenance of this package any longer, use hooks, use native React context, its much more easier vs recompose.

I understand that. I really love to use hooks, but the only reason I haven't used full hooks is my app mainly uses redux and a hook for redux isn't ready yet as they're still discussing in https://github.com/reduxjs/react-redux/issues/1177. And I don't want to use https://github.com/facebookincubator/redux-react-hook just to be migrated again after official hook is ready.


Update to https on Stores that have https enabled

Thank you for your report! This issue is fixed here: https://github.com/PrestaShop/gsitemap/pull/53


🪲 Bug Report - Example ACR publish scripts don't publish policy modules

Describe the bug
When using either of the included scripts:

https://github.com/Azure/ALZ-Bicep/blob/main/docs/scripts/createRGandcallBicep.ps1
https://github.com/Azure/ALZ-Bicep/blob/main/docs/scripts/createRGandcallBicep.sh

The modules that sit in https://github.com/Azure/ALZ-Bicep/tree/main/infra-as-code/bicep/modules/policy are not published e.g:

modules\policy\assignments\policyAssignmentManagementGroup.bicep
modules\policy\definitions\custom-policy-definitions.bicep

This is due to the path being used of infra-as-code/bicep/modules//.bicep
To Reproduce
Steps to reproduce the behaviour:

Execute either script
Validate that the policy modules have not been published

Expected behaviour
I would have expected those modules to be published so that they can be referenced as remote modules.
Screenshots 📷
Published Modules:

Correlation ID
N/A
Additional context
I will raise another issue (question) to validate some of how I am ingesting/implementing the outputs of this repository as it is not especially clear from some of the documentation on what the best practice would be.

Thanks for raising this @frasermolyneux, we will investigate this shortly

Thank you for your input @frasermolyneux. If you would like to contribute directly please feel free to create a pull request based on the work you have already done and we can get this sorted.


Remove flaky module upgrade integration test

This module upgrade implemented as integration test is not a wise decision, should be covered in smoke test (already have) and e2e test later.

@lindnerby the e2e test issue will create later