fix: allow changing the replica count for a v2 volume

Which issue(s) this PR fixes:

Issue # https://github.com/longhorn/longhorn/discussions/9804 https://github.com/longhorn/longhorn/issues/9805
What this PR does / why we need it:
allow changing the replica count for a v2 volume
Special notes for your reviewer:
Additional documentation or context

@mergify backport v1.7.x


Fixed the 'scale to and from 0' issue

This issue has now been fixed.
We will now work on making this process more efficient and reducing latency when scaling from 0.

@ajanth97 I see that there are still some open questions from @khaosdoctor here. I'm happy with what you have right now, but if you make more changes, let me know and I'll re-review.

@arschles Awesome ! These are all the changes, lets wait for @khaosdoctor and get it merged then ?

Yup, sounds good. Looking forward to next week @ajanth97 !

Approving here :) Thanks @ajanth97!

@ajanth97 I see that there are still some open questions from @khaosdoctor here. I'm happy with what you have right now, but if you make more changes, let me know and I'll re-review.

@arschles Awesome ! These are all the changes, let's wait for @khaosdoctor and get it merged then ?

Sorry to keep you all waiting!

Thanks @ajanth97 for this! And @khaosdoctor thanks for the review :)
Merging now

Thank you @arschles and @khaosdoctor


docs: add async main and test charter description

This adds a landing page and marks the work as started.
I will work on a blog post to discuss together the milestone to add, do this job in sync I think will benefit to collect more ideas from people that are doing work where this initiative depends on.
Signed-off-by: Vincenzo Palazzo<EMAIL_ADDRESS>

I think the landing page might be missing from this PR...

I think the landing page might be missing from this PR...

Thanks for the review @eholk and sorry for the mistake, now it should contain the pointer to the landing page

Thanks! At some point we should probably look into pulling your repo under the rust-lang org like the other wg-async initiatives.


CPP: Revert recent microsoft detection change

Reverts https://github.com/Semmle/ql/pull/1191.
This will re-introduce the 239 WrongTypeFormatArgument FPs on ChakraCore on the differences job - but fix the Windows tests.
Annoyingly I can't actually find a snapshot where the original problem (failing to detect that files in a ChakraCore snapshot are built as Microsoft) actually occurs.  With such a snapshot I could analyse exactly the clues that are present and possibly develop a better solution.

I've figured out that, in the ChakraCore snapshot in question, some compilations do and some do not include a reference to cl.exe (hence the incorrect results for formatting functions).  Rather than try to make compiledAsMicrosoft more accurate, it should suffice to check whether any file was detected as compiledAsMicrosoft.  This assumes no mixed-compiler builds, but other than that I think it should be accurate.

They look something like this (comma-separated arguments):
<compilation #1><EMAIL_ADDRESS>--mimic, @-

I'm working on a PR that will fix this by only caring whether any file in the snapshot contained cl.exe (or similar).  This should be reliable in all cases except where the snapshot contains a mix of compilers (which I've never actually seen outside of our tests).

That sounds reasonable.


Update all deps and fix cspell

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


Create Terraform Plans For Generating the AWS Resources Required to Support AWS Orgs Integration

In order to be able to access all accounts in an organization, each account should have a cross-account role with a trust relationship with the org parent account.
To help facilitate users with this, we should create Terraform plans to do just that.
Tasks:

[x] Create new repo for tf plans
[x] Write and test plans
[x] Update docs to point to the new repo for aws org users to use for quicker install

https://github.com/magneticstain/tf-ip2cr-org-connector

Plans complete and tested

https://github.com/magneticstain/ip-2-cloudresource/wiki/AWS-Organizations-Support-Guide


Received Email > Spelling mistake in "Please follow the request and report to admin incase something when wrong." sentence

Pre-condition

User has sent a request successfully
The email announcing the request has been sent to user already

Steps to reproduce the problem

Navigate to mail inbox
Click on the above mail
Observe

Expected Result
"when" should be changed to "went"
The whole sentence should be: Please follow the request and report to admin incase something went wrong
Actual Result
Spelling mistake in "Please follow the request and report to admin incase something when wrong." sentence
Screenshots

Done


34:Labels internationalisation and EN translations

Hey @mchev !
I isolated in 1 commit in 1 PR all related to issue 34, with to those goals:

Making maximum found labels internationalised
Fix English
Preserve French
Now I know it is not tested on screen, so if ever you would know how to do, like deploying my source branch (I had some issues by following the readme file...), or letting me know which specific changes with code itself you can spot on the fly, let me know!

Arf j'ai fait des betises, désolé, je close,e t je referai


How can I use it on windows?

Just install ruby for windows http://rubyinstaller.org/
and then gem install dryrun

I've install ruby for windows but encounter permission denied problem like #12 , is there any fix for it?

same here

hi @Fantasycheese can you provide the logs so I can take a look?
This was fixed a long time ago, as the temporary folder on windows required permissions to run from there.

gem install dryrun
gives me this
ERROR:  Loading command: install (ArgumentError)
unknown encoding name - CP720
ERROR:  While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
my gem version is 2.5.2 and ANDROID_HOME is set

Hi, unknown encoding is related with character encoding, maybe you are suffering from this type of issue?
http://stackoverflow.com/a/22861206

Thanks that fixed it

If you get permission denied problem while installing RubyInstaller, just run it as administrator.

C:\Ruby26-x64>gem install dryrun
Temporarily enhancing PATH for MSYS/MINGW...
Building native extensions. This could take a while...
ERROR:  Error installing dryrun:
        ERROR: Failed to build gem native extension.

    current directory: C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/ruby-ll-2.1.2/ext/
c
C:/Ruby26-x64/bin/ruby.exe -I C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0 -r ./siteco
nf20190221-9708-13lrri6.rb extconf.rb
creating Makefile

current directory: C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/ruby-ll-2.1.2/ext/c
make "DESTDIR=" clean
current directory: C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/ruby-ll-2.1.2/ext/c
make "DESTDIR="
make failedNo such file or directory - make "DESTDIR="

Gem files will remain installed in C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/ruby-l
l-2.1.2 for inspection.
Results logged to C:/Ruby26-x64/lib/ruby/gems/2.6.0/extensions/x64-mingw32/2.6.0
/ruby-ll-2.1.2/gem_make.out`

Temporarily enhancing PATH for MSYS/MINGW...
Building native extensions. This could take a while...
ERROR:  Error installing nio4r:
ERROR: Failed to build gem native extension.
current directory: C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/nio4r-2.5.4/ext/nio4r

C:/Ruby27-x64/bin/ruby.exe -I C:/Ruby27-x64/lib/ruby/2.7.0 -r ./siteconf20201114-21136-j5a31d.rb extconf.rb
current directory: C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/nio4r-2.5.4/ext/nio4r
make "DESTDIR=" clean
current directory: C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/nio4r-2.5.4/ext/nio4r
make "DESTDIR="
make failedNo such file or directory - make "DESTDIR="
Gem files will remain installed in C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/nio4r-2.5.4 for inspection.
Results logged to C:/Ruby27-x64/lib/ruby/gems/2.7.0/extensions/x64-mingw32/2.7.0/nio4r-2.5.4/gem_make.out


Potential for drawing "visibly" while populating the stencil buffer

Add one more argument to lovr.graphics.stencil(); set true and the colors in the stencil draw will be allowed to draw (instead of being masked out and only the stencil buffer being drawn to)
Will need to be documented at some point

Second branch allows you to apply a stencil-test rule to your drawing while you are also drawing into the stencil buffer


Smarty - add mediaById compiler

This PR adds a new smarty-compiler mediaById.
This tag accepts two parameters: an id which identifies the media-entry and a size which identifies a thumbnail-size if there's a matching one.
This tag is needed due to the fact, that attributes of the type single_selection, Shopware\Models\Media\Media are returned to the frontend only as media-ids.
For example: you add an attribute to the supplier:
$attrCrudService->update(
    's_articles_supplier_attributes',
    'banner',
    'single_selection',
    [
        'label' => 'Banner',
        'displayInBackend' => true,
        'entity' => 'Shopware\Models\Media\Media'
    ]
);

This attribute is accessable in the frontend (detail-page) via {$sArticle.supplier_attributes.core->get('banner')} but this only returns the id of the selected media-entity. With this new smarty-tag the developer is able to use this id like {mediaById id=$sArticle.supplier_attributes.core->get('banner') size=0}, which returns the path to the selected media with size 0 if available.
Description
Please describe your pull request:

Why is it necessary? Developer experience with the new attributes
What does it improve? Getting a path to a media-file via it's id
Does it have side effects? No

Questions
Answers

BC breaks?
no

Tests pass?
yes

How to test?
See example given above

Needs additional work - better to return the full media-object if asked for


[Example] Collecting with gradient

cc @ezhang7423

Will try this out now!

We'll be implementing the metagradient approach later on, we're going to focus on getting the LLM code working first.


Fix svg/emoji_u1f4da.svg

The were some glitches. Fixed with inkscape and https://jakearchibald.github.io/svgomg/

Thanks for fixing this! We've applied this to the source artwork in the internal repo, and will be updated with the next export.


Not respecting transative dependencies' dependencies versions

dep init and dep ensure -update are not respecting the version requirements by transative dependencies.
Given main.go:
# main.go
package main

import "github.com/urfave/cli"

func main() {
}

Running dep init gives:
$ dep init
  Using ^1.22.0 as constraint for direct dep github.com/urfave/cli
  Locking in v1.22.0 (bfe2e92) for direct dep github.com/urfave/cli
  Locking in v1.0.10 (7762f7e) for transitive dep github.com/cpuguy83/go-md2man
  Locking in v2.0.1 (d3b5b03) for transitive dep github.com/russross/blackfriday
  Locking in v1.0.0 (7bfe4c7) for transitive dep github.com/shurcooL/sanitized_anchor_name

But<EMAIL_ADDRESS>requires<EMAIL_ADDRESS>See https://github.com/cpuguy83/go-md2man/blob/v1.0.10/go.mod .
This causes my dependencies to be incorrect, because<EMAIL_ADDRESS>does not support<EMAIL_ADDRESS>making go build main.go give the following in the section below.
What version of dep are you using (dep version)?
v0.5.4-2-g5600de07
What dep command did you run?
dep init
go build main.go
What did you expect to see?
Successful build
What did you see instead?
$ go build main.go
# x/vendor/github.com/cpuguy83/go-md2man/md2man
vendor/github.com/cpuguy83/go-md2man/md2man/md2man.go:11:16: undefined: blackfriday.EXTENSION_NO_INTRA_EMPHASIS
vendor/github.com/cpuguy83/go-md2man/md2man/md2man.go:12:16: undefined: blackfriday.EXTENSION_TABLES
vendor/github.com/cpuguy83/go-md2man/md2man/md2man.go:13:16: undefined: blackfriday.EXTENSION_FENCED_CODE
vendor/github.com/cpuguy83/go-md2man/md2man/md2man.go:14:16: undefined: blackfriday.EXTENSION_AUTOLINK
vendor/github.com/cpuguy83/go-md2man/md2man/md2man.go:15:16: undefined: blackfriday.EXTENSION_SPACE_HEADERS
vendor/github.com/cpuguy83/go-md2man/md2man/md2man.go:16:16: undefined: blackfriday.EXTENSION_FOOTNOTES
vendor/github.com/cpuguy83/go-md2man/md2man/md2man.go:17:16: undefined: blackfriday.EXTENSION_TITLEBLOCK
vendor/github.com/cpuguy83/go-md2man/md2man/md2man.go:19:29: too many arguments to conversion to blackfriday.Markdown: blackfriday.Markdown(doc, renderer, extensions)
vendor/github.com/cpuguy83/go-md2man/md2man/roff.go:19:9: cannot use &roffRenderer literal (type *roffRenderer) as type blackfriday.Renderer in return argument:
	*roffRenderer does not implement blackfriday.Renderer (missing RenderFooter method)
vendor/github.com/cpuguy83/go-md2man/md2man/roff.go:102:11: undefined: blackfriday.LIST_TYPE_ORDERED
vendor/github.com/cpuguy83/go-md2man/md2man/roff.go:102:11: too many errors

Dep was officially deprecated earlier this year, and the proposal to archive this repository was accepted. As such, I'm closing outstanding issues before archiving the repository. For any further comments, please use the proposal thread on the Go issue tracker. Thanks!


Fix optional chaining in copy shortcut

What kind of change does this PR introduce?
Resolves https://sentry.io/organizations/supabase/issues/2659441479/?project=5459134&referrer=slack
But @phamhieu we might need to check why rowIdx is referring to an undefined row from rows though

on upstream, they completely remove the cell selected event. maybe it's not reliable.
https://github.com/adazzle/react-data-grid/commit/8cec641b830777d9d0ad206e93ce9d990c298551


Upgrade Google Java Format 1.21.0 -> 1.22.0

This PR contains the following updates:

Package
Type
Update
Change

Google Java Format
compile
minor
1.21.0 -> 1.22.0

Release Notes

google/google-java-format (Google Java Format)
v1.22.0
Compare Source
Changes:

Improve support for tokens that span multiple lines (9bdae02)
Fix an issue with text block formatting, when the text block is the receiver of a method call (#1081)
google-java-format-diff.py now parallelizes the calls to the formatter, for better performance (3ee6e2a)

Full Changelog: https://github.com/google/google-java-format/compare/v1.21.0...v1.22.0

[ ] If you want to rebase/retry this PR, check this box

Suggested commit message:
Upgrade Google Java Format 1.21.0 -> 1.22.0

See:
- https://github.com/google/google-java-format/releases/tag/v1.22.0
- https://github.com/google/google-java-format/compare/v1.21.0...v1.22.0


refactor(macos): rewrite impl to fix missing click issues

Resolves https://github.com/tauri-apps/tao/issues/380 https://github.com/tauri-apps/tauri/issues/4003

This is based on the excellent electron implementation.


how to add floaty as navigation bar right item

can you help me to configure floaty as navigation bar, right item.
Thanks

Closing too old issue.


Add caution to Adan. Add decouple decay option to LAMB.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.


Cleanup utilities

Please Select if your Request is Either something new or an Enhancement

[ ] Enhancement of an existing Feature.
[x] Request of a new feature.

Please select the area your request applys to. (Multiple selections are Possible)

[ ] Onboard. Initial vault setup and import/export pods
[ ] Create. Note creation, lookup, snippets and templates
[ ] Retrieve. Backlinks, references, graph view
[x] Structure. Refactoring, multi-vault and schemas
[ ] Publish. Sharing your repo with the world
[ ] Misc (Choose this if your not sure)

Is your feature request related to a problem? Please describe
Restructuring the knowledge graph as it is necessary with progress of lectures and research leaves a lot of unneeded stubs and assets. That leads to clutter.
Describe the solution you'd like
I'd like to have a few tools/functions that allow to declutter the workspace, e.g. delete all unlinked files (images) and empty stubs as they are not needed anymore. So that each file in the vault brings some information to the table.

@funnym0nk3y - have you tried the Dendron: Doctor to delete stubs? IF that works for you - does this issue now mainly ask for deleting unlinked files?

Yes, this issue was mainly created to request deletion of unlinked assets. The sub cleanup idea just came when writing this issue.


camel-k groovy, jvm, spring-boot gives error pushing image

I installed camel-k using kamel install command and operator installed and running correctly. But camel-k-groovy, camel-k-jvm and camel-k-spring-boot weren't installed and those were in Error state as below.
NAME                                     READY     STATUS      RESTARTS   AGE
camel-k-cache                            0/1       Completed   0          7m
camel-k-groovy                           0/1       Error       0          32s
camel-k-jvm                              0/1       Error       0          44s
camel-k-kotlin                           1/1       Running     0          6s
camel-k-operator-785cc5898c-8vcd7        1/1       Running     0          7m
camel-k-spring-boot                      0/1       Error       0          20s

I refer the previous issue #194 and the solution of that didn't work. The logs of the jvm, groovy and spring-boot views as below.
INFO[0000] Downloading base image fabric8/s2i-java:3.0-java8
2019/04/05 08:55:33 No matching credentials were found, falling back on anonymous
INFO[0003] Found sha256:9ac5acb3aa8e7e179eb1fd28cda7dac22ef7deac24f00b50cee56265fa259141 in local cache
INFO[0003] Executing 0 build triggers
INFO[0004] Using files from context: [/workspace/builder-324045508/package/context]
INFO[0004] Taking snapshot of full filesystem...
INFO[0004] Skipping paths under /kaniko, as it is a whitelisted directory
INFO[0004] Skipping paths under /var/run, as it is a whitelisted directory
INFO[0004] Skipping paths under /proc, as it is a whitelisted directory
INFO[0004] Skipping paths under /dev, as it is a whitelisted directory
INFO[0004] Skipping paths under /sys, as it is a whitelisted directory
INFO[0004] Skipping paths under /workspace, as it is a whitelisted directory
INFO[0004] Using files from context: [/workspace/builder-324045508/package/context]
INFO[0004] ADD . /deployments
INFO[0004] Taking snapshot of files...
error pushing image: failed to push to destination index.docker.io/default/camel-k-jvm:104686: unsupported status code 401; body:

I'm using minikube version: v0.33.1 in MacOS High Sierra . Kubernetes version is
Client Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.11", GitCommit:"637c7e288581ee40ab4ca210618a89a555b6e7e9", GitTreeState:"clean", BuildDate:"2018-11-26T14:38:32Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.2", GitCommit:"cff46ab41ff0bb44d8584413b598ad8360ec1def", GitTreeState:"clean", BuildDate:"2019-01-10T23:28:14Z", GoVersion:"go1.11.4", Compiler:"gc", Platform:"linux/amd64"}

Hi @BuddhiWathsala, the last error message:
error pushing image: failed to push to destination index.docker.io/default/camel-k-jvm:104686: unsupported status code 401; body:

Indicates that index.docker.io is set on the integrationplatform as target registry.
Did you follow the guidelines for installing camel k on minikube?
Especially, before doing kamel install you should enable the registry addon, then the kamel CLI should be able to auto-configure it.
If you haven't done so, you can try to uninstall, enable the registry addon and kamel install again.
Let us know!

Thanks, @nicolaferraro for the immediate response. I close the issue.


Only submit parts in your namespace to SynBioHub

Should only submit parts you created and not parts you used from SynBioHub.

Documenting:
Chris: you should now be able to NOT submit parts outside your namespace.  You can see how I did this in iBioSim’s submit.  Basically, I removed all TopLevels not in my namespace before submitting.  Note, you will need a new libSBOLj, since I added a removeTopLevel function.

Done


Add nominee: adverse123

Automatic addition of a new nominee submitted through the online form available at https://digitalpublicgoods.net/submission

@lacabra @conradsp proposing to archive this project as owner seems to be using this platform to do marketing for their online store. Thanks.

@nathanbaleeta: this PR has been closed without merging. I agree with the exclusion, but it should be merged, or am I missing something?

@nathanbaleeta - agreed. This is the same blog as PR 839.


add missing angle brakets

Add missing angle brackets to this page: Inject mock services
EDIT by @Rick-Anderson
Fixes #32118

Internal previews

📄 File
🔗 Preview link

aspnetcore/test/integration-tests.md
Integration tests in ASP.NET Core

Thanks for the contribution. Be sure to check out your name as a contributor about the 3rd of next month on the What's new page in the Community contributors section at the bottom.


Disable keydown event on controls

Have you read the FAQ and checked for duplicate open issues?
Yes
What version of Shaka Player are you using?
2.5.10
Please ask your question
How can i disable keydown event on controls buttons and slider?

We don't have any builtin way to do this. I see two possibilities here:

You could cover the video container in a transparent div that intercepts the click,  mousedown, touchstart, input, touchmove, touchend, and mouseup events.

You could also configure the UI to remove the buttons entirely:

const config = {
  controlPanelElements: [], // No buttons
  addBigPlayButton: false,
  addSeekBar: false,
  doubleClickForFullscreen: false, // If you want to disable this behavior too
};
ui.configure(config);

I suppose we could also add some UI configuration or method to disable input. I'm not entirely sure what your specific use-case is though. Are you wanting to disable input temporarily, while some operation happens? Do you want to have Shaka Player controls, but have them not work, for some reason?

@nasufi Also, could you tell us a bit more about your use case? What's going on with the keydown events that's bothering you?
If it makes sense (or is a common use case), we might be able to devise a more universal solution for this.

I have disabled the BigPlayButton. The problem is that the keydown events are only active when the focus is on the controls, one click in video keydown events are lost.

Oh, sorry, I had misread you. I didn't notice you specifically cared about keydown, rather than all input events. Covering the element with another div wouldn't block keyboard events.
I can make a CL that adds a configuration option to disable keydown handling. I think that sounds reasonable, similarly to how we added a configuration to control the double tap to fullscreen behavior.

Actually, to be clear, which keyboard control behaviors do you care about?
Like, looking at our code for keydown and keyup events, they currently control:

Keyboard playback controls (arrow keys to seek, space to play/pause, etc).

The focus trap on the overflow menu, when it's open.

Which element gets the blue outline, when navigating via tab.

Which things do you want to be able to disable? I would assume it's the playback controls, but those are technically handled by keyup events.

It would be nice if the Keyboard playback controls (arrow keys to seek, space to play/pause, etc) could be deactivated.
Another question, is it possible to disable doubleClickForFullscreen but to have a fullscreen button?

Okay, good to know.
And yeah, if you disable doubleClickForFullscreen, any fullscreen button in the UI will still work. That just disables the non-button-based behavior where clicking on the video twice makes it go fullscreen.

I think we could offer an option to disable keyboard controls for seeking, pause, etc. when no particular thing is focused.  But tab-based keyboard navigation and keyboard-activation of buttons must still be possible for use by the blind.

Thank you very much! Then cheers to the new release, hope it comes soon.


Very slow equality checks

Sentences where many nodes have multiple parents can be slow to compare to each other.
This happens when two sentences are identical or almost identical, but exist as separate objects. Each equality check naively compares the children of nodes, but that means nodes can be checked a lot of times.
For example, using examples/socialchoice.py:
$ python3 -m timeit -s 'from socialchoice import lin; s = lin(range(10)); t = lin(range(10))' 's == t'
1 loop, best of 5: 7.47 sec per loop

There's no straightforward way to solve this, because the equality checks use frozenset equality. The problem is solved in other methods with a temporary cache around a function defined inside the method, but comparing frozensets just invokes the __eq__ methods of the children again.
Two potential solutions:

Enable a global cache when __eq__ is called, and clear the cache when the call to __eq__ that enabled the cache is finished. This probably interacts badly with threads, but only by potentially keeping objects in memory longer than necessary or discarding the cache too early, without outright incorrect behavior. It also adds at least a little overhead to typical __eq__ calls.
Stop using frozenset equality, and implement all of the equality checks from scratch. This could make performance much worse for typical cases.

The problem only occurs when the objects are constructed separately. If an object is compared to itself Python is smart enough to notice and skip the lengthier check.
Solving it might not be worth it, unless a concrete case where it occurs pops up.

Would this work as a third option?

Every variable obviously has a unique hash (as does its negation).
Every node has a hash built recursively on the (sorted) children hashes and node type. E.g.,
hash("%s (%s)" % (node_type, ','.join(sorted([str(node_hash(c)) for c in children])))
Equality is checked by just comparing the root-level hashes.

The added benefit of this is that you could feed it a formula, and then it would be simplified and compressed to the DAG representation rather than the full branching tree.

Every variable obviously has a unique hash (as does its negation).

This isn't the case, unfortunately, and you don't even have to get very pathological to find a collision: hash(Var(0)) == hash(Var('')) and hash(Var(-1)) == hash(Var(-2)) (CPython 3.8.3).
(ints hash to themselves, but -1 is an internal error code, so hash(-1) == -2 == hash(-2).)
I don't think it's a good idea to assume unique hashes, at least by default. We can't assume anything besides o == p -> hash(o) == hash(p) (but not vice versa).
Making this opt-in with a warning to only use collision-resistant labels (like positive integers < 2**60) could still work.
I first thought to reuse existing internal node hashing which uses frozenset hashes. Here's the implementation of those, for reference. They XOR all the member hashes, so there are edges like collisions canceling out so that hash(frozenset({'', 0})) == hash(frozenset({-1, -2})). So your more manual method seems safer.
I think it could work, but not as a default.

compressed to the DAG representation rather than the full branching tree

Converting to a (V, E) DAG representation would be a safe solution if we can do it without losing information. That might also help with converting to NetworkX.
You can't do it deterministically without a total ordering over all possible variables. But if you already know which sentences you're comparing then you can invent your own ordering without worrying about consistency between calls.
Let's call that option four.

Ah, well I was assuming you always hash the string of an object. And variables wrapping an integer should then be fine (collisions notwithstanding): i.e., hash(Var(-1)) == hash(str(-1)) != hash(str(-2)) == hash(Var(-2))
Collisions still possible, but perhaps a binning scheme could be used to ensure uniqueness. At the very least, as you point out, we could use it as an optional optimization and then throw an error when we've detected a collision (reverse map of the hash to string to keep track).

That would work well if you have simple labels that are all of the same type, but worse if you mix types, or if your label type has a very generic string representation.
But as long as it's self-contained we don't need to bother with real hashes. We could just assign each variable a value arbitrarily, à la var_hashes = {label: num for num, label in enumerate(self.vars())}.

Ah, ya, I see your point. Given a generic __str__ implementation on whatever's forced into Var objects, then we run into issues at the Variable level. But wouldn't what you're proposing also face issues with object uniqueness? I.e., Var(2) != Var(2), which might not be something we'd want.
Cake and eat it too? Pick and document a reasonable default, but allow for the alternative to be specified as part of a configuration. Already feels like some configuration would be helpful (do you want to try and do (collision risk) hashing? want to change the default SAT solver? etc).

The kind of sentences where you get these slow equality checks (compact as DAGs but not as trees) is also the kind where you have to take care not to duplicate your nodes. But even if you don't duplicate nodes within the individual sentences you still get this problem with equality checks.
The .deduplicate() method doesn't really solve the duplication, because you still have high memory use and a long time to construct the sentence beforehand. It's there as a diagnostic tool to use with .object_count().
.deduplicate() is itself slowed down by this problem, because it relies on object equality. That suggests offering a scoped solution, independent of user configuration, where equality is remembered for the duration of the call to .deduplicate(). I'm working on something similar for uses of .vars(), related to #12.

Well if we have the hashing in place (configured or otherwise), then the hashing can be computed during either equality or deduplication -- since it's recursive, it can save over several operations. I guess I always assumed that equality makes sense to check on deduped theories, as otherwise you could just define a canonical string printout of the theory and match that way.


Make the debugger panel resizable

Description
Including npm re-resizable package to make debugger panel resizable by dragging.
Example

Looks good to me. I do have 1 question though: does the current configuration only allow resizing from the left side? I just want to make sure it doesn't allow resizing from the right or top/bottom.

Looks good to me. I do have 1 question though: does the current configuration only allow resizing from the left side? I just want to make sure it doesn't allow resizing from the right or top/bottom.

It will resizing from left and bottom, which will be useful when we support multiple containers.

Looks good to me. I do have 1 question though: does the current configuration only allow resizing from the left side? I just want to make sure it doesn't allow resizing from the right or top/bottom.

It will allow resizing from left and bottom, which will be useful when we support multiple containers.

When we add support for multiple containers, I think we will still want to have a single panel on the right, just with a drop-down menu or tabs or something for switching between debugger instances. In theory we could have a very large number of containers, so I don't think we want separate UI for each.
So it might be worth updating this to not allow resizing from the bottom at some point.


Be able to select iso for different arches

See issue: https://github.com/containers/podman-desktop-extension-bootc/issues/149
as well as the code below:
https://github.com/osbuild/bootc-image-builder/blob/acb5af53c36b2613665e19617ca2f713ef625d34/bib/cmd/bootc-image-builder/main.go#L251
I did not see an open issue yet for being able to select different arches for building iso.
At the moment, in order to build .iso, you will have to make sure to not pass in target-arch even if it matches the current architecture.
I didn't see an issue opened up for this issue.

Even if cross-arch compiling wasn't supported it would be great if the error was omitted when the passed --target-arch matches the current arch (i.e. the same as passing no target).

Cross-compiling an ISO is currently out of scope due to technical complexity. However, relaxing the check for the cases when target-arch == current-arch() indeed makes sense. @mvo5 May I ask you to take a look?

Cross-compiling an ISO is currently out of scope due to technical complexity. However, relaxing the check for the cases when target-arch == current-arch() indeed makes sense. @mvo5 May I ask you to take a look?

Sorry, I missed this and only saw it now. I opened https://github.com/osbuild/bootc-image-builder/pull/364 that should address this.


Please add me to the garden

Thank you, I want share some opencv code examples and kivy funny stuff

Sorry for the delay, done.


How to set static modal in html?

Because I'm using react, so I need to render the UI first in html.
With using this library, how to just open the modal and without setContent?

Hi,
You can write a custom wrapper for react (I'm not familiar with this framework) or pass content in a more classical way, there is a lot of possibilities, but for now, there is now easy way since a React plugin would be required.

Hey, after write this issue, suddenly I found the trick.
After react succesfull in render, then I just call the modal like this
beforeOpen: function() {
  modal.setContent(document.getElementById('detail').innerHTML);
},

Thank you.


How to deal with whitespace for a programming language grammar?

Greetings,
I have started to understand the fundamentals of chevrotain but I have question regarding the best to deal with whitespaces.
At the moment, I am skipping whitespace characters which is great to parse statements like int a = 2. The advantage is that I dont have to constantly add whitespace options between each token of the expression.
The problem arises when we have an instruction like myFunctionCall() which is easily validated, but so is myFunctionCall      () since we are skipping the whitespaces. This should not be accepted by the grammar.
I guess what I want is to skip whitespaces with the exception of some specific cases where I need to be able to detect it and throw an error if it is there.
Anyone got any suggestions for this problem?
Many thanks.

Hello, there is not (yet) good support for partially ignoring certain Token Types.
These capability would be easier to implement if and when Token Channels #774 would be implemented.
There are some possible workarounds:

Gates can be used to add a condition that whitespace is necessary for one alternative.
You can inspect the returned tokens offsets and throw a syntax user error when whitespace appears where it is not allowed.

Required the trivial (?) #505  to be implemented (PRs welcome 😄 )

My recommendation however is to not have white space sensitive grammars if you can avoid it.
For example in JavaScript these are all valid
Math.max(1,2)
Math.max (1,2)
Math   .    max    (1,2)

It seems to me you are trying to introduce linting rules for recommended style as part of the grammar.
I suggest these linting and formatting rules be implemented separately (probably using a CST visitor).
My experience is that the simpler the grammar the easier it is to build tooling and new capabilities around it.
See Python design guidelines

Simple is better than complex. This idea extends to the parser. Restricting Python's grammar to an LL(1) parser is a blessing, not a curse. It puts us in handcuffs that prevent us from going overboard and ending up with funky grammar rules like some other dynamic languages that will go unnamed, such as Perl.

Thank you for your fast answer.
So if I understood you correctly, it is better to allow whitespaces in the language and simply skip the whitespace tokens in order to have a simpler grammar building experience and later on we can analyse the resulting CST/AST and provide the user with possible corrections regarding whitespaces and other linting rules?

So if I understood you correctly, it is better to allow whitespaces in the language and simply skip the whitespace tokens in order to have a simpler grammar building experience and later on we can analyse the resulting CST/AST and provide the user with possible corrections regarding whitespaces and other linting rules?

Yep 😄
Those whitespace style rules would even be subjective.
e.g 2 vs 4 spaces, tabs vs spaces, spaces before, after comma ect..


Create ContactManager.py

terminal-based Python project – a simple contact management application

@grow-xd, If you are happy with our response and like our repo, don't forget to star ⭐ the repo and follow for more updates.


WARNING in '...' (Emitted Value instead of an instance of Error) postcss-url: foo/select.component.css can't read file 'bar.svg', ignoring

Versions
Angular CLI: 1.7.3
Node: 9.5.0
OS: darwin x64
Angular: 5.2.7
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

@angular/cdk: 5.2.3
@angular/cli: 1.7.3
@angular/material: 5.2.3
@angular-devkit/build-optimizer: 0.3.2
@angular-devkit/core: 0.3.2
@angular-devkit/schematics: 0.3.2
@ngtools/json-schema: 1.2.0
@schematics/angular: 0.3.2
@schematics/package-update: 0.3.2
typescript: 2.5.3
webpack: 3.11.0

Repro steps

npm start

╰─ npm start

><EMAIL_ADDRESS>start /Users/admin/code/prangular
> ng serve

** NG Live Development Server is listening on localhost:3200, open your browser on http://localhost:3200/ **
Date: 2018-03-18T22:07:30.793Z                                                - Hash: 8712ae5305fa8cf09699
Time: 13125ms
chunk {inline} inline.bundle.js (inline) 3.85 kB [entry] [rendered]
chunk {main} main.bundle.js (main) 318 kB [initial] [rendered]
chunk {polyfills} polyfills.bundle.js (polyfills) 549 kB [initial] [rendered]
chunk {styles} styles.bundle.js (styles) 441 kB [initial] [rendered]
chunk {vendor} vendor.bundle.js (vendor) 13.4 MB [initial] [rendered]

Note: the resources that are failing are located in assets/images/*.*

Observed behavior
WARNING in ./src/app/atoms/form-elements/select/select.component.css
(Emitted value instead of an instance of Error) postcss-url: /Users/admin/code/prangular/src/app/atoms/form-elements/select/select.component.css:30:3: Can't read file '/Users/admin/code/prangular/src/app/atoms/form-elements/select/assets/images/down-arrow.svg', ignoring

WARNING in ./src/app/molecules/main-navigation/main-navigation.component.css
(Emitted value instead of an instance of Error) postcss-url: /Users/admin/code/prangular/src/app/molecules/main-navigation/main-navigation.component.css:40:3: Can't read file '/Users/admin/code/prangular/src/app/molecules/main-navigation/assets/images/pgr_logo_white.png', ignoring

One of the referenced images:
.pgr-logo {
  background-image: url(assets/images/pgr_logo_white.png);
  width: 169px;
  height: 34px;
  margin-left: 24px;
}

Desired behavior
No warnings?
Mention any other details that might be useful (optional)
This seems to happen for any file where I reference a background image in css.

Same Issue here...

Solution is to add '/' to the beginning of the path:
example: '/assets/images/bg-1.png' where assets is located in the root under src Folder
https://github.com/angular/angular-cli/issues/4778

That worked!

@Mozart-Alkhateeb your solution won't work if you build with url-reference (meaning using a virtual path)

The issue should still be open. Like @ashraftm  is stating, you can't always just prefix a '/' if you don't know from what sub folder your app will be hosted

The modification of root relative paths in cases such as this is planned to be removed for 7.0.  Also instead of making the path root relative with the /, another option is to prefix with a ^ which will prevent any processing of the url.

@clydin prefixing with a ^ seems to have no other effect than changing the actual path to include the ^ symbol (%5E)

Seems like the latest angular cli (v6) is not passing the base-href to the postcss, making postcss mess up the paths.
I can't prefix my urls with / or with ../ since both will mess up the path. The path needs to be relative since i have a base-href for my solution. The angular CLI already reads the base-href and uses it for parsing assets, everywhere except passing it to postcss.
Any paths inside .scss files will eventually work once the solution hits production, but in non prod builds, postcss will output errors/warnings since it does not know about the base-href

I have the same error, it does not show me the images when compiling my application. :( when I use "../../ .." or "./ .." Any help?

@Danielapariona  virtual path won't work when you build your app, try '/[path]/img.png'

Why is this closed?
If your app is not hosted on root path /, you have to prefix your asset with assets/ instead of /assets - if your deploy-url isn't the root path.
Solution with adding / prefix is very bad and will work only for some projects.
There should be option to provide source for postcss only

Any news?

I encountered the same issue in stage env and finally found that's because  I forgot to commit the image file.
Resolved it by committing the image file to git repo. Hope this can help others.

Same issue when importing font files from a node_module. Any input here?

Any update ?

I think a new issue should be open

Agreed, this should be reopened.

Please reopen since no solution has been suggested. Thanks

The original issue was against version 1.7.3 which is no longer supported.  If you are encountering similar issues with a supported (or latest) version of the CLI, please open a new issue.  Please ensure that all the requested information from the issue template is provided so that the team can properly assist you.


unhandled error event at first connection

I'm submitting a ...
[X ] bug report
[ ] feature request
[ ] question about the decisions made in the repository
[ ] question about how to use this project

Trying to connect to the Atem Television Studio (the older one, not the HD version) but I get this error trown. Tried with different firmware on the TVS (Atem Software Control V7.5.2 and V8.1) both with the same result.
.....
video.ME.0.programInput
video.ME.0.previewInput
video.ME.0.transitionProperties
video.ME.0.transitionPreview
video.ME.0.transition
video.ME.0.transitionSettings.mix
video.ME.0.transitionSettings.dip
video.ME.0.transitionSettings.wipe
events.js:183
throw er; // Unhandled 'error' event
^
Error: Number too small: 0 < 1
at Object.parseNumberBetween (/volume1/NodeJS/testatem/node_modules/atem-connection/dist/lib/atemUtil.js:30:19)
at TransitionDVEUpdateCommand.deserialize (/volume1/NodeJS/testatem/node_modules/atem-connection/dist/commands/MixEffects/Transition/TransitionDVECommand.js:56:32)
at AtemSocket._parseCommand (/volume1/NodeJS/testatem/node_modules/atem-connection/dist/lib/atemSocket.js:159:21)
at AtemSocket._parseCommand (/volume1/NodeJS/testatem/node_modules/atem-connection/dist/lib/atemSocket.js:172:18)
at AtemSocket._parseCommand (/volume1/NodeJS/testatem/node_modules/atem-connection/dist/lib/atemSocket.js:172:18)
at AtemSocket._parseCommand (/volume1/NodeJS/testatem/node_modules/atem-connection/dist/lib/atemSocket.js:172:18)
at AtemSocket._parseCommand (/volume1/NodeJS/testatem/node_modules/atem-connection/dist/lib/atemSocket.js:172:18)
at AtemSocket._parseCommand (/volume1/NodeJS/testatem/node_modules/atem-connection/dist/lib/atemSocket.js:172:18)
at AtemSocket._parseCommand (/volume1/NodeJS/testatem/node_modules/atem-connection/dist/lib/atemSocket.js:172:18)
at AtemSocket._receiveSubprocessMessage (/volume1/NodeJS/testatem/node_modules/atem-connection/dist/lib/atemSocket.js:142:22)

The quick fix is to add an error handler and ignore the 'error'
eg
myAtem.on('error', function(err) {
  console.log(err);
});

This has been reported many times before and is something that we are aware needs fixing https://github.com/nrkno/tv-automation-atem-connection/issues/24 https://github.com/nrkno/tv-automation-atem-connection/issues/61 https://github.com/nrkno/tv-automation-atem-connection/issues/15

quick fix applied :-)
sorry for the issue report, seems I need to improve my skills :-)


Added Linkedin UI to the ZeroOctave-JavaScript-Projects.

🛠 Resolves #525

👨💻 Changes proposed

✅ Check List (Check all the applicable boxes)

[x] My code doesn't break any part of the project (Zero Octave-Javascript-Projects).
[x] This PR does not contain plagiarized content.
[x] My Addition/Changes works properly and matches the overall repo pattern.
[x] The title of my pull request is a short description of the requested changes.

📄 Note to reviewers

I hope that you all are doing great kindly review this pull request and go through my pull request.
📷 Screenshots

@Astrodevil kindly review this PR

@Astrodevil if you are not merging this pull request kindly close it why you are not responding to this pull request..

You need to update cards.json and README with project details after updating fork. Don't make changes in index.html

@Astrodevil kindly close this Pull request I will create the new pr with all needed files because. every file is being collided some of the files are not showing in this.


Publication formatting issues in gold.experts

Publications listed in a profile do not list the profile user as an author. Eg. http://gold.experts.library.ucdavis.edu:8080/person/ae63d3a620682adb8440914428e50c33
A few of the users appear both as the "featured" author on a publication's landing page and also in the list of Other Authors: e.g.: http://gold.experts.library.ucdavis.edu:8080/work/3266506. In this case, if you navigate to the person's profile, the publication citations will include them in the author list.
This publication has empty space authors: http://gold.experts.library.ucdavis.edu:8080/work/2196063. I don't see many of those.

Is a UI issue
I think is UI.  @qjhart remind me how we are handing the case when there is two entries in the Authorship for the same user (ex: vcard entry and 'real' user entry)
The author names are missing. I'd say both data and UI.  Mostly data but UI should better handle the case.

recording for the record:
This is should be the rule for every time you format a citation, 1) Only ever use the authorships that have a rank, and only ever use the #vcard associated with those authorship.

@Vensberg @qjhart Everything but the missing data for item 3 on this list is live on Sandbox.   Should I move to QA or wait?

@Vensberg as far as I can see item 3 on this list is also fixed, https://sandbox.experts.ucdavis.edu/work/2196063  The names may be out of order, but that's because the citation source lumps the whole name in as a lastname

I agree 1 is fixed.
Part of 2 is still there--https://sandbox.experts.ucdavis.edu/work/3266506, scroll all the way down to UC Davis Authors--it has FB, JD, and then under other authors--again JD, FB. By the way this is a new issue--the first names and last names are switched, so the comma is no longer needed.
The initial issue on 3 is resolved, but in https://sandbox.experts.ucdavis.edu/work/2196063 the list of Other Authors all start with ", ".

@Vensberg , Yes. Please see the note above regarding unranked users.  SInce JDFB identified themselves as author for this citation, none of the source citations include a link from his citation entry to his account, so we have no way to know, and since trying to match names won't generally work, we are not trying to do that.
This is why IMHO,  we should only add linked users in that section.  The authors in the citation at the top is much better display.

@qjhart "we should only add linked users in that section. The authors in the citation at the top is much better display." If I understand correctly, you are proposing dropping the section "Other Authors". That's fine with me.
"Unranked authorships should never affect the citation formatting in anyway."--we may be using different definitions of citation formatting. To me it sounds like dropping unranked authors from something that looks like this: "Scales and scaling as a framework for synthesizing irrigated agroecosystem research on the westside San Joaquin Valley Wallender WW, Hopmans JW, Grismer M. 5:99-122. " but that is obviously not the case. Do you have other examples of unranked authors?

@Vensberg , I imagine we should run that  Other Authors question by Kimmy, but that's good :) Let me see if I can get  a list of unranked authors, that don't have a ranked connection.

@Vensberg regarding #3, I think that @jrmerz and team probably have family and given name transposed in that last section, but it is an indication of the issue we are dealing with making those consistent.  The citation we have shows this for example:
        a       <http://www.w3.org/2006/vcard/ns#Name> ;
        <http://www.w3.org/2006/vcard/ns#familyName>
                "Fernández-Bayo" ;
        <http://www.w3.org/2006/vcard/ns#givenName>
                "Jesús D" .

<http://experts.ucdavis.edu/authorship/2196063-2#vcard-name>
        a       <http://www.w3.org/2006/vcard/ns#Name> ;
        <http://www.w3.org/2006/vcard/ns#familyName>
                "Blake A. Simmons" .

The first entry is correct, the second no.  Shows why ordering by family name is hard :)

@Vensberg / @jrmerz I suggest we tentatively comment out the other authors section, pending final review by Kimmy.

Hiding Other Authors list is fine by me, they appear in the header anyway.

@wrenaria, I had another thought on this topic. What if the UC Davis Authors goes away as well, and instead the UCD authors are hyperlinked in the header of the publication?

@Vensberg, we can potentially add that as an addition, but it doesn't work in the general case, Like Bayo's publications.  Elements hasn't linked the citation to a particular author, so we have no way of linke Bayo to his name in the citation.  So you'd need a plan for those unranked associations.

Same problem over and over then. OK, let's shelve this for now.

@jrmerz I'm having to reopen this issue based on some new citations.  This testing is on the dev branch.  If we look at:
https://dev.experts.ucdavis.edu/person/5b15a7d5e96cf0f89d475ba730e77c4b we see the following publications:

However a quick review of the vcards for that citation, show another name being used:
PREFIX work: <http://experts.ucdavis.edu/work/>
PREFIX authorship: <http://experts.ucdavis.edu/authorship/>

describe ?v WHERE {
  values ?v { work:3460688 authorship:3460688-1
  <http://experts.ucdavis.edu/authorship/3460688-1#vcard>
    <http://experts.ucdavis.edu/authorship/3460688-1#vcard-name>
  }
}

work:3460688  a                   <http://experts.ucdavis.edu/schema#work> , bibo:AcademicArticle ;
        rdfs:label                "Defining velocities for accurate kinetic statistics in the Grønbech-Jensen Farago thermostat." ;
        <http://experts.ucdavis.edu/schema#insertionDateTime>
                "2021-05-04T01:12:08.147+00:00"^^xsd:dateTime ;
        <http://experts.ucdavis.edu/schema#lastModifiedDateTime>
                "2021-05-03T09:01:43.833-07:00"^^xsd:dateTime ;
        bibo:doi                  "10.1103/physreve.101.022123" ;
        bibo:issue                "2-1" ;
        bibo:journal              "Physical review. E" ;
        bibo:status               bibo:published ;
        bibo:volume               "101" ;
        vivo:dateTimeValue        <http://experts.ucdavis.edu/work/3460688#date> ;
        vivo:hasPublicationVenue  <http://experts.ucdavis.edu/venue/issn:2470-0045> ;
        vivo:relatedBy            authorship:3460688 , authorship:3460688-1 , authorship:3460688-2 .

<http://experts.ucdavis.edu/authorship/3460688-1#vcard-name>
        a                 vcard:Name ;
        vcard:familyName  "Grønbech-Jensen" ;
        vcard:givenName   "Niels" .

authorship:3460688-1  a  <http://experts.ucdavis.edu/schema#authorship> , vivo:Authorship ;
        vivo:favorite  "false" ;
        vivo:rank      1 ;
        vivo:relates   <http://experts.ucdavis.edu/authorship/3460688-1#vcard> , work:3460688 , <http://experts.ucdavis.edu/person/5b15a7d5e96cf0f89d475ba730e77c4b> .

<http://experts.ucdavis.edu/authorship/3460688-1#vcard>
        a              vcard:Individual ;
        vcard:hasName  <http://experts.ucdavis.edu/authorship/3460688-1#vcard-name> .


fix: add validation to files endpoints

Closes https://github.com/UserOfficeProject/issue-tracker/issues/1152
Description
This PR introduces validation to the file endpoints to ensure only authorized users can upload or download files.
Motivation and Context
Currently, there is no validation in the file endpoints which could potentially allow unauthorized access to sensitive data. This change is necessary to enhance the security of our application by ensuring that only authorized users can upload or download files.
Changes

Added a validation middleware on the file endpoints that checks if the user is authenticated and if their external token is valid.
The frontend now sends an authorization header with the user's token when making a POST request to upload a file.
Implemented context to get the user's token in the file upload hook.

How Has This Been Tested?

Fixes Jira Issue
https://jira.esss.lu.se/browse/
Depends On

Tests included/Docs Updated?

[ ] I have added tests to cover my changes.
[ ] All relevant doc has been updated

We tested upload/download at ELI and found that the validation prevents downloading files (401 error).

Yeah sorry forgot to add the request header to the download links thought that kind of thing would have been picked up by the tests, working on a fix now.


Add Awesome Design

Please add https://github.com/gztchan/awesome-design/blob/master/README.md

Ensure it adheres to https://github.com/sindresorhus/awesome/blob/master/pull_request_template.md and then do a PR.


fix 6991 spam prevention test

A small fix for issue #6991

add preconditions in 'beforeEach' in 'core/test/unit/middleware/spam-prevention_spec.js'
change "fast forward 1 hour" to "3600 seconds" strictly.

Test has passed on Amazon AMI linux and OS X EI Caption.

LGTM 👍


move to 1es

@hamzakhachanskyboxlabs Closing this.  Feel free to re-open if you want to do this eventually.


fix: improve canonical coefficient name

Fixes #73
@jiangyi15, let me know if this is what you had in mind. Note that I played a bit with the notation. If this notation is confusing or wrong, we can use the 'comma' notation as in #73:

For comparison, there's also 32bb1b6, which also includes helicity, but which results in 8 unique coefficient names:

Note from the tests that this new naming scheme for the coefficients in canonical helicity models does result in a different number of coefficients.

Yes, the parameters should be

In TFPWA the parameters is
{'D(1)(2420)0->a(1)(1260)..K-_g_ls_0i': 0.0,
 'D(1)(2420)0->a(1)(1260)..K-_g_ls_0r': 1.0,
 'D(1)(2420)0->a(1)(1260)..K-_g_ls_1i': -1.4134735931920699,
 'D(1)(2420)0->a(1)(1260)..K-_g_ls_1r': 1.5480279006217454,
 'D(1)(2420)0->a(1)(1260)..K-_g_ls_2i': 1.1394011536816402,
 'D(1)(2420)0->a(1)(1260)..K-_g_ls_2r': 0.30509766366120417,
 'D(1)(2420)0->a(1)(1260)..K-a(1)(1260).->K~0.K._total_0i': 0.0,
 'D(1)(2420)0->a(1)(1260)..K-a(1)(1260).->K~0.K._total_0r': 0.9517603429164547,
 'a(1)(1260).->K~0.K._g_ls_0i': 0.0,
 'a(1)(1260).->K~0.K._g_ls_0r': 1.0,
}

as the formula
total  *  Gls[D(1)(2420)0->a(1)(1260)+.K-] *  Gls[a(1)(1260)+->K~0.K+]

The number of each parts is
1 + 3 + 1

The first parameter of each Gls is fixed.

Thanks for the approvals. I'm leaving this PR here for the moment, because I want to investigate and document some things about this first.


e2e: Fix flag provided but not defined: -check_version_skew error

This fix is required to run E2E against k8s v1.6.3+. More concretely, cd e2e && ./run all or more specifically ./run conformance was consistently failing with the error.

Codecov Report

Merging #723 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #723   +/-   ##
=======================================
  Coverage   34.33%   34.33%
=======================================
  Files          55       55
  Lines        3073     3073
=======================================
  Hits         1055     1055
  Misses       1859     1859
  Partials      159      159

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 afaf0a3...3f8f24a. Read the comment docs.


Payload contains two or more files with the same destination path "Budget Control.deps.json"

Describe the bug
APPX1101 Payload contains two or more files with the same destination path 'Budget Control.deps.json'.
Source files:
C:\Users\redfo\source\Budget Control\Budget Control\obj\x86\Debug\net6.0-windows10.0.19041.0\win10-x86\Budget Control.deps.json
C:\Users\redfo\source\Budget Control\Budget Control\bin\x86\Debug\net6.0-windows10.0.19041.0\win10-x86\Budget Control.deps.json
Steps to reproduce the bug
Run this project:
Budget Control.zip
Expected behavior
This project must be built
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.0 (If you're seeing your issue in older previews of WinUI 3, please try this release)
Windows app type

[ ] UWP
[X] Win32

Device form factor
Desktop
Windows version
May 2021 Update (19043)
Additional context
No response

FYI, I had this error and removing a package reference for Microsoft.EntityFrameworkCore.Tools made it go away.

I had this error and removing a package reference for Microsoft.EntityFrameworkCore.Tools made it go away.

Yep, it works! Thank you!

Since I needed EFC Tools for scaffold-dbcontext command, I commented out <PrivateAssets>all</PrivateAssets> within the EFC Tools package reference in my .csproj file to resolve the issue:
    <ItemGroup>
      <PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.16" />
      <PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="7.0.16">
        <PrivateAssets>all</PrivateAssets>
        <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
      </PackageReference>
      <PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="7.0.16" />
      <PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="7.0.16">
        <!--<PrivateAssets>all</PrivateAssets>-->
        <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
      </PackageReference>
	</ItemGroup>


show documentHighlight information from multiple extensions

as discussed in here:
https://github.com/Microsoft/vscode-languageserver-node/issues/318
I would love to see VS Code to support the document highlights from multiple extensions simultaneously, much in the same way hovers can be provided from multiple extensions and are displayed in the same hover popup.
The background for this is:
I have a language server based extension for VS Code that can deliver documentHighlight information for Java code, but as long as the Java language extension itself is installed and active, my documentHighlights are never shown (but the ones from the Java extension instead).
The purpose of my language server is to provide additional functionality for Java source code, not to replace the existing Java language tooling. Therefore I benefit from the ability to run multiple language servers for the same language (file type) and that the results from both are merged (which is the case for content assist and hover information, for example). I need the same mechanics for documentHighlight requests/responses... :-)

Understood. Making such a change might surprise some people tho. Unsure how we should proceed.

Assigning @alexandrudima who owns the word highlight feature


bpf: Remove duplicate define from MAX_BASE_OPTIONS

It is redundant.
Signed-off-by: Chris Tarazi<EMAIL_ADDRESS>

test-only --focus="K8sVerifier"


[FLINK-25370][docs] update HBase SQL Connector Options table-name des…

…cription

What is the purpose of the change
In document the HBase SQL Connector Options "table-name" description is "The name of HBase table to connect.". All demo of HBase SQL Connector document 'table-name' just give the 'tablename', it does't explain how to use the table in the specified namespace of HBase. So I think we need to add some description for this options. Update HBase SQL Connector Options "table-name" description.
Brief change log
(for example:)

The TaskInfo is stored in the blob store on job creation time as a persistent artifact
Deployments RPC transmits only the blob storage reference
TaskManagers retrieve the TaskInfo from the blob cache

Verifying this change
Please make sure both new and modified tests in this PR follows the conventions defined in our code quality guide: https://flink.apache.org/contributing/code-style-and-quality-common.html#testing
(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)

Added integration tests for end-to-end deployment with large payloads (100MB)
Extended integration test for recovery after master (JobManager) failure
Added test that validates that TaskInfo is transferred only once across recoveries
Manually verified the change by running a 4 node cluser with 2 JobManagers and 4 TaskManagers, a stateful streaming program, and killing one JobManager and two TaskManagers during the execution, verifying that recovery happens correctly.

Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (yes / no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no)
The serializers: (yes / no / don't know)
The runtime per-record code paths (performance sensitive): (yes / no / don't know)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (yes / no / don't know)
The S3 file system connector: (yes / no / don't know)

Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

@AHeise Please merge

@AHeise Could you help merge it

Thanks for your contribution. LGTM.

@flinkbot run azure

@fapaul please help merging, thanks.

@fapaul Yes, I have squash to commits to one. Please help with reviews, thanks.
@JingGe I have squash you commit to my code. Thanks for you reviews and commit. Please help with reviews again, thanks.

@fapaul can you help me merge it, thanks.

@MartijnVisser can you help me merge this pull request, thanks.

@lipusheng It's currently holiday week in Western Europe, so merged are a bit slower than normal since a lot of people are on a break. It will get merged soonish.

Ok, thanks.

@fapaul

Usually, we first update the config options and then generate the documentation via something like
mvn package -Dgenerate-config-docs -pl flink-docs -am -nsu -DskipTests

good catch! Thanks for the hint! The content now is not dynamically created from the Options. I will created a follow-up ticket for it. There is one more common question which is good for contributors to know: How could the Chinese content be generated with the mvn command since there is only content in English defined in the Options classes.

good catch! Thanks for the hint! The content now is not dynamically created from the Options. I will created a follow-up ticket for it. There is one more common question which is good for contributors to know: How could the Chinese content be generated with the mvn command since there is only content in English defined in the Options classes?

AFAIK the content is automatically updated if you run the command. So it may not need a follow-up. Indeed we have a slight problem with our Chinese doc because they are not generated. I do not have a good answer for this right now.


Audit report

[ ] Add a new directory "audits" with PDF references to the audits performed by Cantina.
[ ] Update the "Security" section in the README.

@PaulRBerg, I can work on this one. However, I didn't find records of any reviews made by Cantina. Was it a private one not yet published?

Hey @0xJayPi, thanks for offering to help.
PRBMath was included in the Sablier audit undergone by Cantina in June 2023:
https://github.com/sablier-labs/audits/blob/6567df3fa42b90663e3e694b1e776c6db337a3f2/v2-core/cantina-2023-06-08.pdf

That's great @PaulRBerg, I can take care of it if you don't mind waiting for the last days of August


Visdom does not work

Hello, thank you for your great work. I have the following problems when I am running on the docker
python -m pointnet2.train.train_sem_seg --visdom
But the system displays
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f38901e03c8>: Failed to establish a new connection: [Errno 111] Connection refused
Can you help me?

i also met this problem, have u solved it?

i also met this problem, have u solved it?

You should run
python -m visdom.server
before
python -m pointnet2.train.train_sem_seg --visdom
that is work

@jiqirenzhifu thank u, i will try it


accuracy of weight only quantization decrease significantly after weight rotation

I use several model including llama3 8b instruct, baichuan 2 7b chat to test the effect of quarot, however, after rotation, accuracy evaluation by CEVAL of 4bit group-wise weight only quantization decrease significantly compared with no rotation. So how to supress activation outlier without sacrificing accuracy of weight quantization?

Same problem here.

@luchangli03
Thank you so much for your issue.
Can you please provide a detailed arguments you used and the results you got so we can reproduce the issue?

Thanks @luchangli03

Second, when I switch to fp16 infer, I already observed that fp16 give much different results compared with fp32 mode

Which model is this? How much different the results are? which task?

Third, I quanted weight using 4bit group-wise quantization and 128 group size, and then dequanted the weight from 4bit to fp16 to simulate the weight only quantization.

But I need the exact arguments to reproduce the issue. For example, are you using GPTQ? or this is RtN? Did you use weight clipping?

I use llama3 8b instruct and baichuan 2 7b chat model and evaluated them by CEVAL.

Can you provide a script for the code you have tried here?

It's very easy to reproduce the process,
first only use the
rotation_utils.fuse_layer_norms(model)
rotation_utils.rotate_model(model, args)
codes to apply rotations to model,
then using pseudo_quantize_tensor in https://github.com/mit-han-lab/llm-awq/blob/main/awq/quantize/quantizer.py to quant and dequant the weight and save the model
then you can use the rotated and weight only quantized model to conduct some evaluation, like CEVAL, MMLU, ect, and compared with no rotation but weight only quantized model.

I also try to save the model with only offline rotation. I just delete all apply_exact_had_to_linear method to avoid online hadamard. The saved model is not computational invariance, did do something wrong?

@Tracin
This is something different and it would be nice if you create another issue for that.
However, removing apply_exact_had_to_linear does not keep the model the same. This is because of two reasons:

We apply a head-wise hadamard over the v_proj output and (for example, if your head_dim is 128, we apply H_128 on each set of 128 columns of v_proj weight matrices) and apply an online Hadamard with size=num_head just before the o_proj. With this, the input of the o_proj is transformed using the full hadamard. If you want to keep the model output the same, you should make sure that you do not do the above process partially and just removing apply_exact_had_to_linear does not result in that.
We also apply online hadamard for down_proj layer (output of the MLP). This is done by applying inverse of the Hadamard to the weights and add an online hadamard before that (this is needed as we have non-linearity and we cannot fuse such transformations into the previous weights).

Please create a separated issue for this if you have any other problem.
Thanks

@sashkboos does GPTQ play a key role in improve accuracy after rotation? I only used rotation and did not use GPTQ and found significantly accuracy drop.

@luchangli03
GPTQ is more important in lower precision (<6bits) and I can confirm accuracy drop without using it. You can check Table 8 in the paper for detailed analysis and results: https://arxiv.org/abs/2404.00456

@sashkboos does GPTQ play a key role in improve accuracy after rotation? I only used rotation and did not use GPTQ and found significantly accuracy drop.

The so-called gptq which is important for lower precision (<6bits) , is it  original gptq or gptq-reorder?
@sashkboos

@brisker
i’m not sure I got your question. We apply gptq after rotation (not reordering) on the weights

@sashkboos
I noticed that quarot only support w_group_size==a_group_size ,  why?
What if I want to quantize a model in w4a8_with_only_w_group_size=128, and activations are per-token-dynamic quantization, using Quarot methods?


Mark code in layouts.md

What kind of changes does this PR include?

New or updated content

Description

Uses our new code snippet inline marking feature to highlight important parts of the code blocks.

LGTM!


Feature Requested: Support ninja template in link field

in dashboard.yaml, have a map allows user to define some variables, e.g. "fava_path" describing the fava url path
allow users to refer to those variables in fields like link, e.g. {{fava_path]}/account/ABC

I'd like to keep this extension as simple as possible and would rather not support templating.
To preprocess your dashboards.yaml file you can use for example envsubst: https://dustinrue.com/2020/05/simplistic-templating-with-envsubst/


404 at /reference/commandline/cli/

I found a broken link : https://docs.docker.com/reference/commandline/cli/#run

Hi @whalefall541, referencing link: https://docs.docker.com/reference/commandline/cli/#run.

I can not arrive this sites either. It hints that There might be a mistake in the URL or you might’ve clicked a link to content that no longer exists.
发自我的iPhone

在 2021年5月19日，05:21，jerae-duffin @.***> 写道：

Hi @whalefall541, referencing link: https://docs.docker.com/reference/commandline/cli/#run.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

I think this was a very old URL for which we didn't have a redirect in place yet.
The new location for this page is https://docs.docker.com/engine/reference/commandline/cli/
And I opened a pull request to add a redirect; https://github.com/docker/cli/pull/3266

Yeah， So the problem is solved.
发自我的iPhone

在 2021年8月23日，23:49，Sebastiaan van Stijn @.***> 写道：

I think this was a very old URL for which we didn't have a redirect in place yet.
The new location for this page is https://docs.docker.com/engine/reference/commandline/cli/
And I opened a pull request to add a redirect; docker/cli#3266
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

Great!
Let me keep this ticket open until the redirect has been published


Feature Request: Support rules_ios's apple_framework

I user apple_framework in my project build file, bug when I run [bazel run //:xcodeproj], error is outputed fail("Could not find product for target {}".format(target.label))

Do you have an example repro I can use to debug this? We haven't put any work towards making intermediate framework rules work, so this doesn't necessarily surprise me. We have an upcoming milestone dedicated to working on them though, and their priority can be raised based on demand.

https://github.com/hzfanfei/learn_bazel.git
I quickly built a demo with two branches.
cd ios-app bazel run //:xcodeproj
the result at main branch is run fine
the result at apple_framework branch is wrong. apple_framework branch use apple_framework

Thank you. I'll look at it soon.

Using rules_xcodeproj 0.6.0 and build_mode = "bazel" I was able to get the project to build and run:

BwX (build_mode = "xcode", the current default) has issues with linking, which will be resolved in Milestone 0.9.

So this now works in BwB mode again, but BwX mode is blocked by supporting the VFS overlay that the rule uses (which is similar to #619). Because of the path manipulation needed for BwX mode, this might never be "properly" supported in BwX mode.
I'm moving this to the 1.0 milestone for now, and I'm thinking about how to handle situations like this in BwX mode.

I believe this works in BwB mode now. BwX mode has an error at generation since we can't support VFS overlays in BwX mode.


Fix RSpec

This PR stubs out JsonTestData in the RSpec suite, so all the RSpec tests now pass. (Doing the same with the Cucumber tests will take considerably more work, but merging this PR will ensure there is at least one suite of useful tests in CI.)

Coverage increased (+0.04%) to 99.052% when pulling 6f907df774647e3b2e23b65adacc2eb81eaa8d02 on fix-testing-issues into 76382b39408f8a14fe94213d975f6b64108fada8 on master.


[manufacturing] Test: manuf_cp_unlock_raw

Description
Test point: manuf_cp_unlock_raw
Test Details
Verify transition from RAW to TEST_UNLOCKED lc_state.

Pre-load OTP with RAW lc_state.
Bring device out of reset selecting the Life Cycle (LC) TAP interface using strap pins.

Perfom the following steps via LC TAP interface:

Switch to external clock via TRANSITION_CTRL.EXT_CLOCK_EN.
Provide RAW_UNLOCK.
Poll for lc_ctrl STATUS register for TRANSITION_SUCCESSFUL. Check for errors or timeout.
Perform reset by toggling the POR pin.
Verify the lc_state is TEST_UNLOCKED0.

The manufacturing environment is required to support test reruns whenever possible:

Verify that the RAW_UNLOCK process can be re-tried after failed or interrupted attempts.

#17864 completed this.

Re-opening as this is still not working: https://github.com/lowRISC/opentitan/pull/18550#issuecomment-1545188597

#18550 now fixes this.

Closed by https://github.com/lowRISC/opentitan/pull/18550


Improve pci.ids parsing

Addressing slowness
aparato runs really, really slooow when fetching PCI devices in bulk, through fetch(), fetch_by_class() or fetch_gpus()
If you're instantiating one PCI device, the performance is acceptable (around 3-5ms), but when you're fetching multiple devices, that's when you notice how slow it can get (around 80-90ms).

#8 (relatively) solves this.


add param search_java_additional_opts

Hello,
this is a propose PR for #17
let me know if that suits you.

hi @fraenki
any chance to get this merged ?

Merged, thanks!


Backend: Use kubectl proxy package

This issue is for documentation of the efforts that was part of https://github.com/headlamp-k8s/headlamp/pull/1152 to use the proxy package in kubectl. At present the kubectl proxy doesn't properly support feature like attach, exec via websocket https://github.com/kubernetes/kubernetes/issues/89163. Once the issue is solved in the upstream then headlamp can shift to using the proxy package from kubectl

@yolossn is this issue still valid? Looks like the issue is fixed upstream now.

Yes it is valid, thanks for bringing the upstream change to my attention. Ill take a look.


User signals with nilable parameters doesn't work.

For the declaration: signal whatever(view : View?)
The generated class_init function is wrong. View | ::Nil.g_type must be View.g_type
def self._class_init(klass : Pointer(LibGObject::TypeClass), user_data : Pointer(Void)) : Nil
  LibGObject.g_signal_new("view_changed", g_type,
  GObject::SignalFlags.flags(RunLast, NoRecurse, NoHooks),
  0,                   # class_offset
  Pointer(Void).null,  # accumulator
  Pointer(Void).null,  # accumulator_data
  Pointer(Void).null,  # marshaller
  GObject::TYPE_NONE,  # return_type
  1, # n_params

  View | ::Nil.g_type,

  Pointer(Void).null)
  previous_def
end

Issue blocked as well due to a compiler bug, when writing a unit test I get:
Module validation failed: GEP base pointer is not a vector or a vector of pointers
  %11 = getelementptr inbounds %"(Array(Test::Subject+) | GLib::SList(Test::Subject+) | Tuple(Test::Subject+))", %"(Array(Test::Subject+) | GLib::SList(Test::Subject+) | Tuple(Test::Subject+))" %10, i32 0, i32 0, !dbg !10881
GEP base pointer is not a vector or a vector of pointers
  %13 = getelementptr inbounds %"(Array(Test::Subject+) | GLib::SList(Test::Subject+) | Tuple(Test::Subject+))", %"(Array(Test::Subject+) | GLib::SList(Test::Subject+) | Tuple(Test::Subject+))" %10, i32 0, i32 1, !dbg !10881
 (Exception)
  from crystal in '??'
  from crystal in '??'
  from crystal in '??'
  from crystal in '??'
  from crystal in '??'
  from crystal in '??'
  from crystal in '??'
  from crystal in '__crystal_main'
  from crystal in 'main'
  from /usr/lib/libc.so.6 in '??'
  from /usr/lib/libc.so.6 in '__libc_start_main'
  from crystal in '_start'
  from ???
Error: you've found a bug in the Crystal compiler. Please open an issue, including source code that will allow us to reproduce the bug: https://github.com/crystal-lang/crystal/issues


[BUG] Typescript mode not being activated when open .tsx files

What did you expect to happen?
Emacs activates typescript-mode for .tsx files
What actually happened?
Emacs activates fundamental mode for .tsx files and typescript mode for .ts files
Additional details:

I use a vanilla installation of doom-emacs with the uncommented javascript and lsp modules
No any warnings or errors logged to *Messages*

Steps to reproduce:

Install doom-emacs
Uncomment javascript and lsp modules
Run bin/doom refresh
Open file with .tsx extension

System information:

emacs   version    26.3
        features   JPEG RSVG IMAGEMAGICK GLIB NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS LCMS2
        build      Aug 30, 2019
        buildopts  (--disable-dependency-tracking --disable-silent-rules --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs-plus/26.3/share/info/emacs --prefix=/usr/local/Cellar/emacs-plus/26.3 --with-xml2 --without-dbus --with-gnutls --with-imagemagick --with-modules --with-rsvg --with-ns --disable-ns-self-contained)
        windowsys  ns
        daemonp    server-running
doom    version    2.0.9
        build      HEAD -> develop 934e4fc06 2019-12-26 01:41:45 -0500
        dir        ~/.doom.d/
system  type       darwin
        config     x86_64-apple-darwin18.5.0
        shell      /bin/zsh
        uname      Darwin 19.2.0 Darwin Kernel Version 19.2.0: Sat Nov  9 03:47:04 PST 2019; root:xnu-6153.61.1~20/RELEASE_X86_64 x86_64
        path       (/usr/local/opt/node@10/bin/ /usr/local/opt/node@12/bin/ /usr/local/bin/ /usr/bin/ /bin/ /usr/sbin/ /sbin/ /usr/local/Cellar/emacs-plus/26.3/libexec/emacs/26.3/x86_64-apple-darwin18.5.0/)
config  envfile    envvar-file
        elc-files  0
        modules    (:completion company ivy :ui doom doom-dashboard doom-quit hl-todo modeline nav-flash ophints (popup +all +defaults) vc-gutter vi-tilde-fringe window-select workspaces :editor (evil +everywhere) file-templates fold multiple-cursors rotate-text snippets :emacs dired electric ibuffer vc :tools (eval +overlay) flycheck (lookup +docsets) lsp macos magit :lang data emacs-lisp javascript markdown (org +dragndrop +present) sh :config (default +bindings +smartparens))
        packages   (n/a)
        elpa       (n/a)

Hi @testarossaaaaa, you make this happen by adding the following to your .doom.d/config.el:
(add-to-list 'auto-mode-alist '("\\.tsx\\'" . typescript-mode))

I'll defer to others on whether or not that should be default behavior.

@dubnev Hello, thanks! It works. .tsx is the official typescript extension for working with JSX, so this should be the default behavior, just like in other editors.
https://www.typescriptlang.org/docs/handbook/jsx.html#basic-usage

@testarossaaaaa typescript-mode does not official support jsx/rsx, so Doom associates *.tsx files with web-mode in the :lang web module instead. As of 5c45a9e we associate *.tsx with typescript-mode IF the :lang web module isn't enabled. To overcome this, you can use @dubnev's snippet.
Thanks for bringing it to my attention!


Adding shard and shard metadata set to genesis

This will make it so a genesis shard creation will set:

the shard data itself (so it will appear in the shards collection) decs.shards.(shard)
the shard metadata, which appears as a component belonging to the universe entity in the given shard, e.g. decs.components.(shard).universe.metadata

This Pr is a pre-requisite for the physics system to detect when an entity's position component is about to push beyond the end of a shard's universe and stop it.


drag when has animations in the div become very slow

Steps to reproduce
when I use the drag function, there are some animation divs in the content, the drag processes become very slow.
.drag-content {
  width: 100px;
  height: 100px;
  border: 1px solid gray;
  .animation-dot {
    width: 6px;
    height: 6px;
    background-color: red;
    animation: animationTodoFlowStatus 1.2s ease-in-out infinite;
  }
}

@keyframes animationTodoFlowStatus {
  0% {
    transform: scale(0.8);
    opacity: 0.5
  }

  to {
    transform: scale(2.4);
    opacity: 0
  }
}

  Hello

What is expected?
I hope animation will not influence the drag

I got exactly the same issue! Was about to report this issue and found yours. Very annoying since I use the draggable element as a chat window and all my messages have an entry animation.
Any workaround?


metadata.team filter in frontend

New filter metadata.team to filter the tests, create dashboards etc based on Team metadata.

@rsnyman Could I get this merged please ?

@jyejare sorry I missed this! Let me take a look.


Add a more friendly "decompiler" layer.

This is not an issue, but just to put it in the queue. I find very useful the relationship between the decompilation line and his dissasembly address.
Taking this code as an example.
def get_decompiled_line(source, ea):
    if ea not in source.eamap:
        print 'strange, %x is not in %x eamap' % (ea, source.entry_ea)
        return
    insnvec = source.eamap[ea]
    lines = []
    for stmt in insnvec:
        qp = idaapi.qstring_printer_t(source.__deref__(), False)
        stmt._print(0, qp)
        s = qp.s.split('\n')[0]
        lines.append(s)
    return '\n'.join(lines)

ea = idaapi.get_screen_ea()
source = idaapi.decompile(ea)
print get_decompiled_line(source, ea)

Imagine that for each ea in the meaningful plugin you add this information, sounds interesting right?
The bad part is that the layer of this "source" object isn't the friendliest possible. So I think that the powerful of this relationships (editing pseudocode and so on) would be amazing if Sark makes it Pythonic.

Would be happy to help, but I don't have a decompiler license at the moment.
Feel free to submit pull-requests with relevant patches, or buy me a license :wink:


Running arbitary scripts from DevTools console

Running arbitary scripts from console during the development phase is how I test out certain ideas. I usually run then against the customScriptsFrame. Currently Xrm.Page.getAttribute and any other form data and form ui methods work without any issue.
If getFormContext is the recommended approach, how do you do run these methods from the console (since is no execution context)?

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

ID: 9b9a6b58-70b1-1dd1-8f1e-d354fef4b06a
Version Independent ID: 8f1f0c3c-b7f6-0c56-3a64-ec439c5f1f24
Content: Client API form context in Dynamics 365 Customer Engagement
Content Source: ce/developer/clientapi/clientapi-form-context.md
Service: crm-online
Product: unspecified
GitHub Login: @KumarVivek
Microsoft Alias: kvivek

@rajyraman Yes; that's correct. You cannot use the formContext object that you get using getFormContext method to run code in the Console tab.
However, you can continue to use Xrm.Page to test your ideas in Console, and then finally replace Xrm.Page with formContext in your code as illustrated in the same topic under the "Using the formContext object instead of the Xrm.Page object" section.
Thanks for taking time to comment. Closing this comment now.

That great. As long I can continue to use Xrm.Page, it should not be a problem. Thank you Vivek.

You bring a good point here. It is ok for now that we can use Xrm.Page but once these methods are completely removed this question would again pop-up. It would be good to have a solution to this because then development also would be too much of a pain.


Fixed comments in Stripe sample

Fixed comments from Realtime Database to Cloud Firestore

fixes #597

Thank you @Azer7!


env checkout xxx removes secrets from deployment-secrets.json

Describe the bug
A clear and concise description of what the bug is.
Amplify CLI Version
I had 2 environment tst and dev with version 2.28.2. After migration to 2.41.2 auth secrets were migrated to deployment-secrets.json. However up on switching with amplify env checkout xxx between environment the secrets disappeared from deployment-secrets.json
To Reproduce

the secrets for both envs are in deployment-secrets.json
amplify checkout env tst => secrets of dev is removed from deployment-secrets.json

Expected behavior
never ever remove stuff from deployment-secrets.json
Desktop (please complete the following information):

OS: Mac
Node Version: 15.7.0 / 14.15.5

Log output
amplify-cli-2021-02-06.log

any feedback? It happened again. it screws my deployment secrets pretty much on every checkout.  now with 4.44.0 too

@ahtokca deployment-secrets.json is a generated file. So if you added anything to it manually, it will get overridden when changing environments. Could you confirm if you edited deployment-secrets.json manually or through the CLI?
To modify deployment secrets through Amplify CLI you could use amplify auth update.

@PawanKolhe,
I do amplify env checkout xxx when I see that auth secret got removed. After secrets are removed it is not possible to do amplify push anymore. Since the requried params are not passed to auth. The whole deployment is broken.
Mind the case when a person may have several amplify projects under the same user / same computer.
Personally removing secrets sounds really bad even if you put them manually. I'd expect this file is used to keep sensitive data same way as ~/.aws/credentials. I never seen aws removes anything from ~/.aws/credentials. I'd really appreciate if amplify will follow the same pattern and ~/.aws/amplify/deployment-secrets.json will be used in 'append-only' mode

@ahtokca I wanted to ask, what process do you follow to add the deployment secrets to deployment-secrets.json at the moment? Do you use the CLI's amplify auth update command or manually edit the file?

@PawanKolhe, no  I don't change it manually, besides I have to restore it when secrets are removed

@ahtokca Ah okay. So you actually don't need to restore deployment secrets in deployment-secrets.json once they have been initially pushed with amplify push or amplify publish. Amplify clears the deployment secrets from deployment-secrets.json because they are not needed on consecutive pushes and could be a security risk if they remain there.
If you ever need to change the deployment secrets in the cloud, you'll need to use the Amplify CLI and run amplify auth update and walk through the prompts as shown below, which would add the deployment secrets to the deployment-secrets.json file and will be preserved even on checking out to different environments. But once you run amplify push they will be updated in the cloud and cleared from deployment-secrets.json forever:

@PawanKolhe Well. That sounds good. However amplify push fails with auth update if I don't have deployment secrets for env I'm pushing against.

@ahtokca Interesting. Could you provide the error message if possible for when amplify push fails with auth update. That would be helpful for debugging.

@PawanKolhe  Here is the fresh failure
UPDATE_FAILED               HostedUIProvidersCustomResourceInputs                                   Custom::LambdaCallout      Thu Mar 04 2021 20:47:52 GMT+0100 (Central European Standard Time) Failed to update resource. See the details in CloudWatch Log Stream: 2021/03/04/[$LATEST]a746b6b3a91c45efbc55ad174f4db67b

@PawanKolhe Here is the fresh failure
UPDATE_FAILED               HostedUIProvidersCustomResourceInputs                                   Custom::LambdaCallout      Thu Mar 04 2021 20:47:52 GMT+0100 (Central European Standard Time) Failed to update resource. See the details in CloudWatch Log Stream: 2021/03/04/[$LATEST]a746b6b3a91c45efbc55ad174f4db67b

Got the same issue and Cloudwatch logs shows:
2021-03-08T16:01:05.596Z	d72bbecd-bf0e-4f47-9308-98b77f32bac9	INFO	TypeError: Cannot read property 'client_id' of undefined
    at getRequestParams (/var/task/index.js:1:1053)
    at updateIdentityProvider (/var/task/index.js:1:1635)
    at hostedUIProviderMeta.forEach (/var/task/index.js:1:2373)
    at Array.forEach (<anonymous>)
    at identity.listIdentityProviders.promise.then (/var/task/index.js:1:2249)
    at process._tickCallback (internal/process/next_tick.js:68:7)

then I emptied appSecrets in ~/.aws/amplify/deployment-secrets.json, put the secrets in the team-provider-info.json again, ran amplify push, chose yes to migrate to deployment-secrets.json and it worked.

Exact same issue and resolution as @ngocketit, I wish I had found this thread an hour earlier 😅

For me when I do this, the file is never created even though it says:
? Amplify has been upgraded to handle secrets more securely by migrating some values in team-provider-info.json to deployment-secrets.json You can create a back up of the team-provider-info.json file before proceeding. Yes Successfully updated auth resource locally.
The provider json had the values removed, but migration never took place. on amplify --version 4.45.2

@dallinwright The issue seemed to stem from credentials not being updated on new env can you try with the latest version and see if you are still facing this issue?


Rocm support for Radeon RX 7000 Series (7900XT and 7900XTX)

I am done building a Deep learning build except for GPU. I have same thoughts on Nvidia GPUs as Linus Torvalds a decade ago.
I wish to know if ROCm will support the upcoming Radeon RX 7900XTX, or when it is expected to be supported, if at all.

Urgently need ETA on RDNA3 inclusion too!

While you wait for an official ROCM release, if you have specific workloads like stable diffusion it is worth trying http://shark.sd that uses the AMD vulkan path and is available on both linux and windows and supports 100s of models (https://github.com/nod-ai/SHARK/tree/main/tank) . Also in the past I have been able to build / test ROCM on newer hardware  from the public sources.

I know about some half measures, i bought my first RDNA2 card anticipating support, i waited more than half a year gimping around on PlaidML, OpenCL implementation of Keras , eventually ended up on 4 RDNA2 workstations.
Can't afford to wait this time around, got commercial work cut out for next months and i already have to rent RTXs from the cloud. At this point it's whatever gets the job done faster.

Well, I am not buying a $1000 GPU for gaming, strictly for Science purposes. I guess half-measures are not going to cut it.


Adds 'no_split_term' config option.

When set to true, the search term is not split into individual words, rather the whole string is searched for in the targeted columns.

Hi @aaron-mmt could you provide a spec that shows and asserts how the query to the db will look like when this option is used?


Preserve allow_reset_less when remapping ResetSignal. Closes #400

See #400

Could you add a test please?

I've added a test which fails without the change and passes with, though it doesn't explicitly check that the newly created ResetSignal still has allow_reset_less set to True as I wasn't sure how to get at that signal.

This test is totally fine, thanks!


Refactor of moment-EM coupling into separate implicit and explicit source solvers

This PR implements many of the modifications discussed within Design Review #390 - it splits up the previously monolithic moment_em_coupling.c into separate implicit and explicit source solvers (located in sources_implicit.c and sources_explicit.c, respectively), allowing for different families of source terms to be handled by different classes of ODE solver, and with potentially different operator splittings, as required. It also incorporates the source_func function pointer into the gkyl_wv_eqn object, allowing all fluid species to specify their own forcing vectors which can then be solved explicitly (using e.g. SSP-RK3) or implicitly (using e.g. time-centered Crank-Nicolson), as appropriate. We have included a new reactive Euler fluid species, with an associated ZND detonation test (with a known analytic solution for the von Neumann spike), for testing and validating this new source_func system for specifying per-species source terms, which we intend to use for geometric source terms (e.g. in the general relativistic Euler solver), number density and temperature source terms, as well as many other things, moving forward. Broadly speaking, the overarching idea is to enforce a separation between per-species source terms (exposed to the user through the source_func pointer) and inter-species source terms (exposed to the user through the traditional gkyl_moment_em_coupling structure).
As an illustration of its generality, this PR also adds a couple of new classes of source terms (in addition to the reactive ones used for numerical validation), including frictional source terms for two-species fluid simulations, and geometric source terms for the expanding box formalism. In the latter case, there is a remaining bug wherein the momentum terms are not correctly incorporated into the pressure tensor contributions, although this can easily be fixed. Finally, this PR also folds in some of the Braginskii functionality from @JunoRavin's old branch, and sets up the requisite time-steppers within the new source refactor to integrate these terms correctly.

@JunoRavin has pointed out that the inclusion of the private header gkyl_moment_em_coupling_priv.h within the gkyl_source_explicit.h and gkyl_source_implicit.h header files breaks layering by exposing the internal details of the private moment_em_coupling struct via the user-facing API. Instead, we will adopt the same approach used within the rest of the file, in which the moment_em_coupling struct is forward-declared within the header files in question, thus ensuring that the private header only needs to be included in the source file containing the implementations.


Provide simple interface for selecting pi-top camera resolution profile

Something like this:
camera = Camera(resolution="720p")

For these values:

720p
480p
360p
240p

But without strings. Discuss.

I don't think there's a better way to do this than using a string, the fact the names start with a number makes any other method difficult. Other options:

Use names like HD, SD, QVGA etc -  cumbersome and non-specific, they have a one-to-many relationship with actual resolutions
Large/medium/small/smallest - simple but lacks direct relationship, completely ambiguous as to what resolution is actually being used.

I also don't think it's a good idea to use a string like "720p" either as even those are one-to-many: 720p can mean 1280×720, 1360×768 and 366×768 according to Wikipedia. I'd prefer to stick to the tuple method so that users know exactly what the width and height of the image are - they generally need this information even when doing simple challenges on Further.

Instead, we should just add a check to make sure that a valid resolution has been passed, and if it is invalid provide clear instructions on what resolutions they can use.


Does Fastlane use any kind of cache?

I am using Fastlane to run my tests in CircleCI.
I run into a problem when I try to update the project build number from a lane.
My circle.yml looks like:
machine:
  xcode:
    version: "7.0"
dependencies:
  override:
    - bundle install --path=vendor/bundle # Will update Gemfile.lock
test:
    - bundle exec fastlane test
deployment:
  adhoc:
    branch: adhoc
    commands:
      - git diff # Shows the Gemfile.lock has changed
      - git checkout -- Gemfile.lock
      - git diff # Shows the file has been cleared
      - bundle exec fastlane adhoc # Fails because of the dirty file

You can see that I install Fastlane using a Gemfile. I run my test lane without any problem.
The next step is to deploy if the tests are green. My lane looks like:
private_lane :build do
  increment_build_number
  commit_version_bump xcodeproj: 'project.xcodeproj'
  gym
  add_git_tag
  push_to_git_remote
end

The build number is incremented, but the commit_version fails. The log from CircleCI looks like:
[06:42:00]: [SHELL COMMAND]: git diff --name-only HEAD
[06:42:00]: [SHELL]: Gemfile.lock
[06:42:00]: [SHELL]: project.xcodeproj/project.pbxproj
[06:42:00]: [SHELL]: project/Supporting Files/Info.plist

Apparently the Gemfile.lock is modified, although if you look at the circle.yml file, I make sure the file is discarded.

Does Fastlane use a cache that would make it output wrong information?

Thanks

Sorry, not that I know about. It's probably somehow related to flushing the stdout. I think @andrewpage recently submitted a pull request https://github.com/fastlane/fastlane_core/pull/22

You mean that the git diff --name-only HEAD has to do something with where the logs are output?
I don't see where it relates to the "wrong" git status

Sorry, I seem to have misunderstood the problem you're having. You didn't share your complete output when running fastlane, in particular not the stack trace the the log that was shown before.

Here is the complete log: https://gist.github.com/jschmid/2d9d05648353aecc9ad6
Thank you for your help!

Wow... that was an unexpected fix.
As it appears, the bundle command shipped with CircleCI is a bit outdated.
When I ran my bundle exec fastlane adhoc command, Bundler updated the Gemfile.lock before running fastlane adhoc. It is related to this issue.
I now update Bundler before running fastlane. The Gemfile.lock is not updated anymore and the command goes through.
Big shout out to @kimh from Circle who found the culprit!

:+1: