VxWorks wr-cc is detected as MSVC compiler, cc adds flags "no-logo", "W4" and "--" which causes compilation issues.

More discussion at Zulip: https://rust-lang.zulipchat.com/#narrow/stream/122651-general/topic/Optimizing.20Compiler.20builtins.20causes.20build.20failure.20on.20VxWorks
Follow up of issue: https://github.com/rust-lang/compiler-builtins/issues/679

Does VxWorks wr-cc define any macro?
If it does, then we could use it to detect VxWorks wr-cc compiler.

Does VxWorks wr-cc define any macro?
If it does, then we could use it to detect VxWorks wr-cc compiler.

Yes. It does have VXWORKS macro. I'll try using this. Additional to this whenever compiling a program, cc-crate would add target=somevxworkstarget. For VxWorks this behavior causes issues as each wr-cc is configured for one target.

How does it distinguish clang from msvc on linux. On linux GNUC and clang both would be defined.

You could put it in detect_compiler_family.c then modify compiler.rs to support VxWorks wr-cc

How does it distinguish clang from msvc on linux. On linux GNUC and clang both would be defined.

We pass -? to the compiler to detect msvc.

Oh

How does it distinguish clang from msvc on linux. On linux GNUC and clang both would be defined.

We pass -? to the compiler to detect msvc.

Yeah. For some reason wr-cc -? returns 0.


affected/package: go workspace

What version of Go are you using (go version)?

go version go1.18 darwin/amd64

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
GO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/matthewboyle/Library/Caches/go-build"
GOENV="/Users/matthewboyle/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/matthewboyle/go/pkg/mod"
GONOPROXY="github.com/moonr-app"
GONOSUMDB="github.com/moonr-app"
GOOS="darwin"
GOPATH="/Users/matthewboyle/go"
GOPRIVATE="github.com/moonr-app"
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/Users/matthewboyle/go/go1.18"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/Users/matthewboyle/go/go1.18/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.18"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/matthewboyle/Dev/moonr/test1.18/go.mod"
GOWORK="/Users/matthewboyle/Dev/moonr/test1.18/go.work"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/6c/565l_36j5f93vczwq09z9_100000gn/T/go-build836227308=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?
I am trying to test go workspaces.  I have created a really simple project with the following file tree:

go.mod looks as follows:
module test1.18

go 1.18

require golang.org/x/sync v0.0.0-20210220032951-036812b2e83c

go.work:
go 1.18

use ./local/sync

and main.go
package main

import (
	"log"

	"golang.org/x/sync/errgroup"
)

func main() {
	var eg errgroup.Group

	eg.Go(func() error {
		log.Println("did a thing")
		return nil
	})

	if err := eg.Wait(); err != nil {
		log.Println("err")
	}
}

What did you expect to see?
I run  go run  ./workspace/main.go and it works great. It uses workspace mode and replaces the sync module. However, I am trying to run go run -workfile=off ./workspace/main.go and I get the following error:
flag provided but not defined: -workfile

What did you see instead?
I would expect my program to run without using my go.work file.
I got round this by running the following instead:
GOWORK=off go run ./workspace/main.go

which worked correctly.

See https://github.com/golang/go/commit/5d8d3878496918d51347422d651629975343b18e. The -workfile flag was removed before the final Go 1.18 release.

Thanks for the prompt reply. The documentation for workspace: https://go.dev/ref/mod#workspaces references a -workfile flag so it needs to be updated :)

Fixed in CL 393360


Absence of a plugin-repositories config leads to feature pack build failures

Error:  Failed to execute goal org.wildfly.galleon-plugins:wildfly-galleon-maven-plugin:6.5.4.Final:build-feature-pack (wildfly-mvc-krazo-feature-pack-build) on project wildfly-mvc-krazo-feature-pack: Failed to resolve org.wildfly.galleon-plugins:wildfly-provisioning-parent:pom:6.5.4.Final: Cannot access jboss-public-repository-group (https://repository.jboss.org/nexus/content/groups/public/) in offline mode and the artifact org.wildfly.galleon-plugins:wildfly-provisioning-parent:pom:6.5.4.Final has not been downloaded from it before. -> [Help 1]

This is because there is no plugin-repositories config, other than the jboss-parent one, which specifies jboss-repository-group.
The artifact gets pulled down from that repository as part of plugin resolution, and therefore that repository name gets written in the local maven cache's _remote.repositories file. But then when building the feature pack, WFGP tries to resolve the artifact with only the non-plugin repos available, i.e. jboss-public-repository-group. The 'jboss-repository-group' in the _remote.repositories file is not one of the available non-plugin repos, and the resolution is offline, so it fails.
Fix is to add a plugin-repositories config that lists jboss-public-repository-group.
@jfdenise FYI in case this problem appears elsewhere.

Resolved via https://github.com/wildfly-extras/mvc-krazo-feature-pack/commit/3299ecbdc9be2304921561f72f3ca342198647a0


PEM_read_bio_PrivateKey.pod: update documentation for PrivateKey write routines

The manual pages for OpenSSL master and OpenSSL 1.0.2 state that the PrivateKey write routines should not be used anymore, because they use the traditional key format.
=head1 NOTES

The old B<PrivateKey> write routines are retained for compatibility.
New applications should write private keys using the
PEM_write_bio_PKCS8PrivateKey() or PEM_write_PKCS8PrivateKey() routines
because they are more secure (they use an iteration count of 2048 whereas
the traditional routines use a count of 1) unless compatibility with older
versions of OpenSSL is important.

This formulation is identical in master, 1.1.0, and 1.0.2 (although in different locations),
openssl-master/doc/man3/PEM_read_bio_PrivateKey.pod
openssl-1.1.0/doc/crypto/PEM_read_bio_PrivateKey.pod
openssl-1.0.2/doc/crypto/pem.pod

and is unchanged since the initial revision of the PEM documention a29d78e90bea. However, this information is not accurate anymore as of commit 8125d9f99ceb (Jan 2009), which changed the default write format for private keys to PKCS#8. This commit is contained in all stable branches down to 1.0.0.
Questions

The implementations for master, 1.1.0, and 1.0.2 are practically identical, see below. They all contain a fallback to the traditional format of which I don't understand in which use case it will take place. Can anyone of the experts enlighten me on that question?
I added labels for master, 1.1.0, and 1.0.2 as indication of my intent to backport. Please let me know whether it makes sense to backport to 1.0.2 or not.

master, 1.1.0
int PEM_write_bio_PrivateKey(BIO *bp, EVP_PKEY *x, const EVP_CIPHER *enc,
                             unsigned char *kstr, int klen,
                             pem_password_cb *cb, void *u)
{
    if (x->ameth == NULL || x->ameth->priv_encode != NULL)
        return PEM_write_bio_PKCS8PrivateKey(bp, x, enc,
                                             (char *)kstr, klen, cb, u);
    return PEM_write_bio_PrivateKey_traditional(bp, x, enc, kstr, klen, cb, u);
}

master, 1.0.2
int PEM_write_bio_PrivateKey(BIO *bp, EVP_PKEY *x, const EVP_CIPHER *enc,
                             unsigned char *kstr, int klen,
                             pem_password_cb *cb, void *u)
{
    char pem_str[80];
    if (!x->ameth || x->ameth->priv_encode)
        return PEM_write_bio_PKCS8PrivateKey(bp, x, enc,
                                             (char *)kstr, klen, cb, u);

    BIO_snprintf(pem_str, 80, "%s PRIVATE KEY", x->ameth->pem_str);
    return PEM_ASN1_write_bio((i2d_of_void *)i2d_PrivateKey,
                              pem_str, bp, x, enc, kstr, klen, cb, u);
}

Maybe it makes sense to remove the fallbacks to the "traditional" format for 1.2.0?

Traditional format is the raw key, and the PEM marker indicates the type, as in "BEGIN RSA PRIVATE KEY"  The more recent, correct, format is PKCS#8 and the PEM marker says "BEGIN PRIVATE KEY"

Sure, I know. My question was more when does the condition (x->ameth == NULL || x->ameth->priv_encode != NULL) fail? What use case does the fallback intend to cover? Is it obsolete?

If not, I would like to document the exceptions from the general rule.

Well, the situation is hopelessly inconsistent: While d2i_PKCS8PrivateKey_bio.pod tells me that there is a symmetry between the PEM and DER versions of the PKCS8PrivateKey routines, ...
DESCRIPTION
    The PKCS#8 functions encode and decode private keys in PKCS#8 format using
    both PKCS#5 v1.5 and PKCS#5 v2.0 password based encryption algorithms.

    Other than the use of DER as opposed to PEM these functions are identical
    to the corresponding PEM function as described in PEM_read_PrivateKey(3).

... unfortunately the same does not apply to the PrivateKey DER routines. i2d_PrivateKey_bio behaves completely different to its PEM counter part:
int i2d_PrivateKey_bio(BIO *bp, EVP_PKEY *pkey)
{
    return ASN1_i2d_bio_of(EVP_PKEY, i2d_PrivateKey, bp, pkey);
}

I should better learn to live with the idiosyncrasies of the OpenSSL API. Closing this PR :-|.


Replace hard-coded value with usersPerPage variable defined in controller

I noticed that the README asynchronous data example sets an unused $scope.usersPerPage in the controller.

Good spot, thanks!


Rate Limit all tokens already used

Describe the bug
I upgraded to pro yesterday only used it for half a day, not sure how i could have used all the tokens already, is there a daily limit and does it go by a certain time-zone? because its the next day for me.
Link to the Bolt URL that caused the error
https://bolt.new/~/sb1-jbyboy
Steps to reproduce
just signed in saw the message
Expected behavior
no rate limit would be  the best or a display
Screen Recording / Screenshot
No response
Platform

OS: [e.g. macOS, Windows, Linux]
Browser: [e.g. Chrome, Safari, Firefox]
Version: [e.g. 91.1]

Additional context
No response

me too

me too

me too

me too

Hey, @GoThundercats, @sunlin-xiaonai, @violacase, @ningyanhui and @margorpaami! While we have been working on optimizing the tokens usage we have accidentally triggered the limit on the accounts that weren't close to the limit. So yes, this was a bug.
We've reverted the change so this should now be resolved and you should have your correct limit back. I'll close the issue, but in case a problem persist, please open a new one! Thank you for being our early adopters and for your patience as we're improving the bolt․new experience!

Where can you even see the limit and the actual usage in the platform, I hit it in 5 mins of work .. useless compared to Replit.com

@znuttyone Settings > Tokens, in lower left corner of the app
@yasinkocak our plans are monthly. Go to https://bolt.new/?showPricing=true to see when your tokens will refresh/upgrade to a higher tier plan with more tokens.


chore(main): release audit 1.42.0

:robot: I have created a release beep boop
1.42.0 (2023-05-12)
Features

root project vulnerability scan now optional (ffc121d)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/sandworm-hq/sandworm-audit/releases/tag/audit-v1.42.0 :sunflower:


HttpClient implementation

This PR contains the min amount of code needed to abstract the usage of a Http library like Alamofire. An implementation of the protocol HttpClient using Alamofire (we can change the library in the future if we want) and some integration tests :).
With this HttpClien we already can implement the first call to the Marvel API.

Most of the commits are needed just to get the project building in Travis-CI. Cocoapods has been trolling me for 4 hours :(


App is blocked by Google

Bug summary
Any specific steps to reproduce the issue?
Oath of good faith

[ ] I, the author of this Issue, do solemnly swear that I've looked real hard for duplicate issues and I came up empty!!

Same problem.
https://stackoverflow.com/questions/66633659/can-not-run-trivial-app-script-bound-to-new-blank-document-get-this-app-is-bl
Related?

Same issue here

Hey everyone, same issue here. Probably you are using Google Workspace, right?
Do the following to fix it (only valid for Google Workspace accounts).

Go here: https://admin.google.com/ac/owl/list?tab=configuredApps
Be sure to log in with an Admin user and the same console where the user trying to do the copy lives.
Click "Configure new app".
On the search bar that appears, type this:<PHONE_NUMBER>45-e81q4d30k615fsr942krcejaajriv23a.apps.googleusercontent.com
Copy folder should be found.
Select Trust and save.
Try again in a few minutes (sometimes it takes some time to propagate).
Good luck!
Please confirm if it worked for you!

@ycarogabriel  @gmendezg  @hoangsonqn

https://stackoverflow.com/questions/66633659/can-not-run-trivial-app-script-bound-to-new-blank-document-get-this-app-is-bl

No, that bug/error is not related to the suggested solution posted by @santi-ifontana
This specific solution only works for Workspace accounts, where the admin has enabled API Access Control to block unknown apps, perhaps also internal scripts. There's a separate setting for that here.
https://admin.google.com/ac/owl/settings?hl=en

Hey everyone, same issue here. Probably you are using Google Workspace, right?
Do the following to fix it (only valid for Google Workspace accounts).

Go here: https://admin.google.com/ac/owl/list?tab=configuredApps
Be sure to log in with an Admin user and the same console where the user trying to do the copy lives.
Click "Configure new app".
On the search bar that appears, type this:<PHONE_NUMBER>45-e81q4d30k615fsr942krcejaajriv23a.apps.googleusercontent.com
Copy folder should be found.
Select Trust and save.
Try again in a few minutes (sometimes it takes some time to propagate).
Good luck!
Please confirm if it worked for you!

@ycarogabriel @gmendezg @hoangsonqn

Worked!!! Thanks!

Hello, I use this app all the time, and can't figure out how to get it to start working again.  I do not have Google Workspace. When I click on the above links, I hit a dead end.
Any suggestions?  When I try to access it, a prompt to  "Review Permissions".  My email is presented as an option to select the correct account, but then  I end up with the message,
"This app is blocked
This app tried to access sensitive info in your Google Account. To keep your account safe, Google blocked this access."

@wirewendy I have no idea what to do in your case (no Google Workspace account). As the owner of this code so far has not commented on this issue, maybe using an alternative tool can help you out. Rclone is excellent, sadly it requires much more knowledge and a VM to get it working!


Bug/dev 109 check reorg provider

BEFORE:
check_reorgs and EventListener didn't allow to use more providers than RPCProvider.
AFTER:
check_reorgs and EventListener accept an optional provider instance in input. Improved some test cases.

Coverage increased (+0.5%) to 90.019% when pulling 0600f847be211c5dc4a3d0c63b2a44aa1ad96d16 on bug/DEV-109-check_reorg-provider into f163076acdc1f6713ba9f073965622f8a4e27735 on master.


Potential Bug -  move_and_slide with low Y linear velocity bounces endlessly

Hi there,
Godot version:
3.1.dev.custom_build.b5a20d2
OS/device including version:
OS: Ubuntu 18.04.1 LTS x86_64
CPU: Intel i5-4210H (4) @ 3.500GHz
GPU: NVIDIA GeForce GTX 970M
Issue description:
For no reason I can come up with (keeping in mind I'm a major newb with Godot), move_and_slide behave weirdly, namely 'bouncing' without stopping when I give it a linear velocity with a low Y component.
Steps to reproduce:
I show you in this gif
Minimal reproduction project:
Project.zip
Thanks for your time :)

https://github.com/godotengine/godot-demo-projects/blob/master/2d/kinematic_character/player.gd
http://docs.godotengine.org/en/3.0/classes/class_kinematicbody2d.html#class-kinematicbody2d-is-on-floor
is_on_floor is intended to be used after move_and_slide, because move_and_slide is what updates that status in the first place. Not saying it'll fix your issue, but I see that mistake being made constantly and at this point I'd really like to know where people are getting that idea from.

Well that's a good point !
I was following a tut' so I kinda trusted it.
Plus As in the script we check is_on_floorand ui_up in order to set the vertical motion, it kinda make sens, I guess ? Like if at last frame we're on the floor and we press the key, then move up on the current frame ?

I'm looking at the code shown in the GIF, and it looks really similar to the code I had when I made #16250.

The "following a tutorial" part is exactly what interests me! I'd like to know which tutorial it was, to notify the writer and maybe get them to update it. The fewer "noob pitfalls" we have in the community, the better :)

Hey, it was a video tutorial from HeartBeast too bad it's hard to edit as it's a vid' :cry:

@PetePete1984 Thing is, I don't think the tutorial is at fault. His code, as is, shouldn't have is_on_floor flickering like it is, regardless of whether move_and_slide comes before or after the usage. If move_and_slide is the only thing that updates is_on_floor, then I don't think the order of the functions is to blame in any scenario..

I had a similar issue with 3.0.6
Made a small workaround for it, but it might not suite many cases.

I'd like to add what I found - It seems like the collision detection isn't consistent and due to that the gap between the character and the colliding body isn't constant. Because of this there's also a problem where sometimes a visible gap is left between the character and the colliding body, which makes it look like the character is floating in my case. (It's clearly visible, so it's definitely not just the safe margin, which I tried even setting to it's minimum)

still occurring in 3.1a1.  If there's no vertical delta since last frame where the body was pushed out of the floor, is_on_floor() will return false and cause the state to flicker true/false every other frame (when a delta towards the floor normal is applied).


[storage-file-share] Migrate to core-tracing GA

Packages impacted by this PR
@azure/storage-file-share
Issues associated with this PR
Fixes #21312
Describe the problem that is addressed by this PR
This PR migrates to core-tracing GA and updates tests accordingly.
Provide a list of related PRs (if any)
https://github.com/Azure/azure-sdk-for-js/pull/24773
https://github.com/Azure/azure-sdk-for-js/pull/24548
https://github.com/Azure/azure-sdk-for-js/pull/24850
https://github.com/Azure/azure-sdk-for-js/pull/25048

API change check
API changes are not detected in this pull request.


USB attached stockage

Is it possible to attached USB external drive and how i can doo that.

Unfortunately there isn't a way to share the USB drive between multiple containers. Your best bet would be to run the OS from the USB drive instead, and then your containers can all share a volume which will have the capacity of your USB drive.

Need more storage space for your Raspberry Pi? You can flash this Balena image to a USB drive, such as an SSD and run the whole system from there. You will get quicker and more reliable operation when not using an SD card, and can gain TBs of space for your content. Check out the Getting Started section below.

https://github.com/maggie0002/balena-plex-seedbox#boot-from-usb


add encoding feature for string retrieved out of the jdbc stament

This PR adds the ability to have uniform encoding for strings read from the database as there are some situations where we might be fetching strings encoded in different formats.
There are situations where the JDBC driver interacting with databases that have globalization features could be fetching data encoded in different formats, for example some in UTF-8 while others in ASCII-8BIT, so prevent this we introduced the usage of LogStash::Util::Charset.new(@charset) the same utility used for LS codecs to sort out encoding. With this addition all strings are going to be always in UTF-8 format.
In #143 were discussed some other alternative, for example providing some degree of granularity to let developers chose their encoding. This is a nice idea, but in this PR I propose for now a simpler and more uniform approach for all columns, reducing the config complexity and probable errors, if there is the need we can always introduce a more granular option.
Also keep in mind this is a bug that happen for LS versions that use the ruby event, not the javaone.
In ruby event: "String" {ASCII encode} ---> insert into event --> event --> retrieve from event --> "String" {ASCII encode}
In java event: "String" {ASCII encode} ---> insert into event --> event --> retrieve from event --> "String" {UTF-8 encode}
TODO:

[x] include config to avoid any conversion at all.
[x] include config option to select only a list of columns to convert.

In resume for this PR, I propose to have:

An entry point config variable, enable_encoding (false by default) that enable the character conversions.
An array where we can specify a list of columns we want to convert. If some are specified only this will be converted, if empty (default value) all will be converted.

The encoding is selected based on the incoming string encoding to reduce errors when selecting the wrong encoding, or the encoding changes without noticing for the operators. It also helps keeping the config options smaller.
what do you think?

Also keep in mind this is a bug that happen for LS versions that use the ruby event, not the javaone.

Note that this not correct. The same bug might happen in the Java Event because depending on the source charset, the resulting UTF-8 strings might contain invalidly encoded string.

@colinsurprenant Ok, out of my curiousity, can you show me an example? me wanna learn from you all encoding wizards .

amended that section from the description due to your comments.

@colinsurprenant after doing a bit of research I think you're right and we basically can not rely on "string".encoding, so I pushed 5d2acbe09ce9b384bf06df666eec9ce5353a90d4 to make sure users specify the right encoding for their columns. Let me know what do you think

@colinsurprenant @jsvd interface request pushed.

@colinsurprenant applied your request of changes, what do you think now?

@jsvd will take over this PR as I won't be able to continue with it next days.

closing this in favor of #151


IFeature, extensibility and more configuration

Codecov Report

Merging #15 into master will increase coverage by 0.69%.
The diff coverage is 99.41%.

@@            Coverage Diff             @@
##           master      #15      +/-   ##
==========================================
+ Coverage   90.33%   91.03%   +0.69%
==========================================
  Files         397      407      +10
  Lines        6652     6801     +149
==========================================
+ Hits         6009     6191     +182
+ Misses        643      610      -33

Impacted Files
Coverage Δ

...ndpoints.Responses/Pagination/LinkHeaderBuilder.cs
100% <ø> (ø)

...Resource/StartResourceFactoryServicesExtensions.cs
100% <ø> (ø)
:arrow_up:

...ts.Responses/Pagination/PaginationConfiguration.cs
100% <ø> (ø)

...storm.Endpoints.Responses/ResponseConfiguration.cs
100% <ø> (ø)

src/Firestorm.Stems/StemsServicesExtensions.cs
100% <ø> (ø)
:arrow_up:

...s.Implementation/Query/QueryStringConfiguration.cs
100% <ø> (ø)

src/Firestorm.Data/DataSourceServicesExtensions.cs
50% <ø> (ø)
:arrow_up:

....AspNetCore2/Services/AspNetCoreServiceProvider.cs
0% <ø> (-100%)
:arrow_down:

...orm.AspNetCore2/Services/RequestServiceProvider.cs
100% <100%> (ø)
:arrow_up:

...Endpoints/Middleware/Executors/EndpointExecutor.cs
100% <100%> (ø)

... and 54 more

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 2d72c59...df2dae8. Read the comment docs.


tk: hardcode path to TK_LIBRARY

Description of changes
https://github.com/guix-mirror/guix/commit/79c8a071e7f391e40b203f4489396f976a5333a7
Closes #234962.
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

@ofborg build tk tk.passthru.tests


improve typing for app.errorhandler decorator

fixes #4095

Checklist:

[X] Add an entry in CHANGES.rst summarizing the change and linking to the issue.
[X] Run pre-commit hooks and fix any issues.
[X] Run pytest and tox, no tests failed.

Grrmmf, it seems that Python 3.7 doesn't have typing.Protocol which actually makes it quite hard to type properly.
I think I'm just going to leave it like this and drop this PR unless someone has a better idea.

@pcorpet typing_extensions is available, so you can do the following:
if t.TYPE_CHECKING:
    import typing_extensions as te

    class MyProtocol(te.Protocol):
        ...

We use this in a few other places in Pallets.

Could you rebase this against the 2.0.x branch?

The web based conflict fixer sadly didn't work, so I've merged this manually. Thanks.

Could I get an explanation for what GenericException is?

@davidism, GenericExcpetion is a TypeVar, it is only useful for deining generic on top of it. In TypeScript, one would express it like this:
type ErrorHandlerCallable<T extends Exception> = ...

You can see that T is only defined for the definition of the generic type. In Python they have taken another route where you first define a generic type var that you bound properly (the equivalent of extends Exception above) and that you can then use inside generic expressions.

In scaffold.py we want to check that the same exception type is used as a parameter of the decorator and the type of the parameter of the function:
For instance, the following code is not valid and MyPy will know about that thanks to the use of GenericException.
@app.error_handler(ValueError)
def handle_value_error(error: AttributeError) -> str:
  return str(error)

This fixed matching the decorator argument to the function argument, but broke being able to use the decorator multiple times on top of the same function. #4297

In #4487, I relaxed the type for the callable argument to Any.


fix docker network type and readme

The readme has the wrong attribute name iprange should be ip_range and I got this error when running on centos7:
Execution of '/usr/bin/docker network create --driver overlay --subnet
<IP_ADDRESS>/24 --gateway <IP_ADDRESS> --ip-range <IP_ADDRESS>/24 adnets'
returned 1: flag provided but not defined: --driver overlay
See '/usr/bin/docker network create --help'.
flag provided but not defined: --driver overlay
So I put = between the args and the value.

@hdeadman thanks for diving in and checking out the new network feature, and thanks for the fixes. Much appreciated.


Add optimization that fuses together map functions

The idea of this optimization is to avoid having consecutive map functions, and instead grouping them using composition. So instead of:
x |> List.map f1 |> List.map f2

we'd in practice end up with
x |> List.map (f1 >> f2)

Some benchmarks can be found in this folder: https://github.com/jfmengels/elm-benchmarks/tree/master/src/FusionExploration
It seems to be worthwhile to have, as shown for instance by this benchmark:

Function composition like this has its own performance drawbacks compared to lambdas, but that's where #73 can come in and save the day.
I made this branch a long time ago, and I don't remember where it's at, or why I didn't end up creating a PR for it. So I'll just make a draft and then other people can see it or take inspiration from it. Ping me to put eyes on it again when some time gets unblocked for this project.

Very nice to see the performance benchmarks, thanks for this! 💪🏻


Add a sticky Scroll To Top button

What is the motivation for adding / enhancing this feature?
This feature gives better navigation and allow users to easily scroll back to the top of category page with one click of the button.
What are the acceptance criteria
Add sticky "Scroll to top" button on category page.
Can you complete this feature request by yourself?

[ ] YES
[x] NO

Which Release Cycle state this refers to? Info for developer.
Pick one option.

[x] This is a normal feature request. This should be available on https://test.storefrontcloud.io and then after tests this can be added to next Vue Storefront version. In this case Developer should create branch from develop branch and create Pull Request 2. Feature / Improvement back to develop.
[ ] (Pick this option only if you're sure) This is an important improvement request for current Release Candidate version on https://next.storefrontcloud.io and should be placed in next RC version. In this case Developer should create branch from release branch and create Pull Request 3. Stabilisation fix back to release.
[ ] (Pick this option only if you're sure) This is a critical improvement request for current Stable version on https://demo.storefrontcloud.io and should be placed in next stable version. In this case Developer should create branch from hotfix or master branch and create Pull Request 4. Hotfix back to hotfix.

Additional information

I will work on this

@RGijsberts it seems like it's already done: https://github.com/DivanteLtd/vue-storefront/pull/2866

@RGijsberts it seems like it's already done: #2866

I missed that, nice!


Insert optic as a possible backend

It would be nice to integrate and made available the optic temporal planner in the planutils framework.
I've finished setting up singularity for optic.
You can find all here: https://github.com/roveri-marco/optic/tree/singularity-build-and-release
waiting to merge in the master branch of the repository. The singularity sif file is created as well with github workflows
and can be downloaded directly from there.
How can I contribute adding also the plautils part? I've downloaded the repo and created a branch, but I'm not able to push.

Are you able to push now? Another option is to fork the repo, and then open a PR.

Not yet able.  I do not see it yet in my repositories. The account is roveri-maco associated to<EMAIL_ADDRESS>If so does not work then I'll create a fork and then start a PR.

Now it works. I found the invitation in the spam!


Update tutorial-sql-server-managed-instance-offline-ads.md

@kekiran007 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@kekiran007 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#label:"aq-pr-triaged"

@kekiran007 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@ktoliver : Thanks for your contribution! The author(s) have been notified to review your proposed change.


update delimiters for id language

I'm indonesian, and here we use '.' as thousands delimiters and decimal delimiters is ','.
Maybe we can use this as reference

Hi :)
Thanks for the PR :smile:
Could you please add a line in the CHANGELOG as well as add yourself in the AUTHORS file?
Thanks in advance

in numbro 2.2.0


AttributeError: 'NoneType' object has no attribute 'to'

When i try to run training with ‘python training.py --name mnist --params configs/mnist_params.yaml --commit none’, the following error occurs:
Traceback (most recent call last):
File "training.py", line 119, in
helper = Helper(params)
File "D:\lab\backdoors101\helper.py", line 40, in init
self.make_task()
File "D:\lab\backdoors101\helper.py", line 64, in make_task
self.task = task_class(self.params)
File "D:\lab\backdoors101\tasks\task.py", line 43, in init
self.init_task()
File "D:\lab\backdoors101\tasks\task.py", line 49, in init_task
self.model = self.model.to(self.params.device)
AttributeError: 'NoneType' object has no attribute 'to'
Then I find that the function build_model() in class Task is 'NotImplemented'. Does it mean that i have to make some changes to the code before i use 'python training.py --name mnist --params configs/mnist_params.yaml --commit none'?

yep, fixed. try again.

yep, fixed. try again.

yep, fixed. try again.

yep, fixed. try again.


Restructure introduction to specification

:white_check_mark: Checklist

[x] This pull request has a meaningful title.
[x] If your changes are not yet ready to merge, you have marked this pull request as a draft pull request.

:ballot_box_with_check: Maintainers' checklist

[x] This pull request has had the appropriate labels assigned
[x] This pull request has been added to the SATRE backlog project board
[x] This pull request has been assigned to one or more maintainers

:arrow_heading_up: Summary
Refactor the introduction to the specification with our current version of the architecture, including visualisations
:closed_umbrella: Related issues
:raising_hand: Acknowledging contributors

[x] All contributors to this pull request are already named in the table of contributors in the README file.

Is this the right kind of thing?
If so work to come out of this:

Update the principles as in line with @machintim 's latest architecture doc
Refactor capabilities to match visualisations (e.g. for IG there are now only 4 capabilities, but in the specification there are 6 and the titles do not match)

FYI this diagram is a refactor of @machintim 's original based on my understanding/what I think might be a bit clearer!

@jemrobinson made edits, will leave open for a little bit to see if others have thoughts. Feel free to merge without me if not done today!

As @harisood is away I will make the changes I've suggested above. However, please do say if you disagree because those are just my opinions after all.

If we want to restructure into three capabilities, shouldn't we also renumber the sections below?

Yes. Do you think it is in scope for this PR?
Longer term, do we think that part will be on a separate page?
It would be nice if we could use automatic numbering so that the references can come out like "Capability 1.3.4".

If we want to restructure into three capabilities, shouldn't we also renumber the sections below?

Yes. Do you think it is in scope for this PR?

I'm happy to do this in a follow-on PR.


[AIRFLOW-137] Fix max_active_runs on clearing tasks

Dear Airflow Maintainers,
Please accept this PR that addresses the following issues:
https://issues.apache.org/jira/browse/AIRFLOW-137
(extra: also fixed issue with 'self.logging' in an error condition, that apparently wasn't called. It will lead to a scheduler crash, because self.logging is not an attribute. self.logger is.)
Testing Done:

Tested through UI and running the scheduler (LocalExecutor mode). Results:

max_active_runs is respected. Because the "find" on dagrun uses an order-by, it is safe to use the max_active_runs check as done in the code, because that forces the dagruns to be processed in order.
Tested for max_active_runs=1 and 3. Both are processed correctly.
Tested with 5 intermediately cleared dags. The scheduler first reprocesses those cleared dags, then continues to add more dagruns at the very end.

Unittest added.

@gtoonstra can you retrigger the build? (empty commit works)

@bolkedebruin : Hope this works. Now squash it?

@gtoonstra, if you do not mind, yes please.

@artwr @bolkedebruin  Done.

+1


Alpha Dropout

For #10612

Can one of the admins verify this patch?

New functions like this should go into contrib.  I think we have a tf.contrib.nn?  I'd put it there.

The documentation for tf.contrib.nn says that "Module for deprecated ops in tf.nn.". Is that the correct place? or tf.contrib.layers?

@ebrevdo BTW, did you mean to remove this function from nn_ops.py and add to contrib or add to both places?

I meant to move it there.  And you can remove the deprecated word of the
doc... New nn ops can go there too.
On Jul 7, 2017 1:40 PM, "Anish Shah"<EMAIL_ADDRESS>wrote:

@ebrevdo https://github.com/ebrevdo BTW, did you mean to remove this
function from nn_ops.py and add to contrib or add to both places?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/pull/11357#issuecomment-313787642,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABtim5T2rAGx0zEQyaMDW7NBarVXvjkzks5sLpfOgaJpZM4ORMHQ
.

ping for @AnishShah !

I will update this in a day. Sorry for the delay.

I have updated the PR. Please review.

What's happening here?

@vrv Sorry about that. I have changed that.

@tensorflow-jenkins test this please

The build was aborted. Can you run the tests again?

The build was aborted because the sanity checks failed -- can you look at the logs here to see what went wrong?
https://ci.tensorflow.org/job/tensorflow-pull-requests-sanity/5565/consoleFull

There was some problem with BUILD file. I have fixed it. Please run the tests again.

@tensorflow-jenkins test this please

//tensorflow/contrib/opt:drop_stale_gradient_optimizer_test              FAILED in 4.8s - This test failed for Linux CPU Tests
I don't think this is related to my changes.

@tensorflow-jenkins test this please

@tensorflow-jenkins test this please


feat: alternative api key input

Describe the solution you'd like

[ ] #105
[ ] Get API_KEY from environment

Duplicate of #104 and #105


Fix mobile issue

Issue that this pull request solves
Closes: #74
Proposed changes
Changed the footer to be center-aligned on Mobile.
Added an alt text for the logo.
Wrapped the logo in a P tag for space on mobile.
Types of changes
Put an x in the boxes that apply

[ ] Bugfix (non-breaking change which fixes an issue)
[ x ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update (Documentation content changed)
[ ] Other (please describe):

Checklist
Put an x in the boxes that apply

[ x ] My code follows the style guidelines of this project
[ x ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ x ] My changes generate no new warnings
[ x ] My changes does not break the current system and it passes all the current test cases.

Screenshots

Other information
Any other information that is important to this pull request

@rebelchris , left align would be a better option than center maybe. Apart from that everything is cool enough.
Thanks!

@goliakshay357 Removed the text-center and made it left aligned

Changed few CSS. looks good to me!
Thank you @rebelchris for this contribution :)

@all-contributors please add @rebelchris for Code


Add a Page for Proper ML Projects

Features :

Proper  Projects from Github
Projects For Interview Purposes
Projects From Yt for Hackathons Purposes

@Sapta-Dev27 this website should be like to make and collaborate with other developers, to work on innovative projects
Not like the projects should already been there
So i am closing this issue.
make sure to join the discord for further communication and updates: https://discord.gg/FZxBRpTEeH


Update mm-ee to 6.3.0

Summary
Bump version for Mattermost Enterprise to 6.3.0
Ticket Link
Ticket: https://mattermost.atlassian.net/browse/DOPS-763

@cpanato have a look again please


CollectionUtil.createMap() addition

Hey there, the map will be initialized by the call to the constructor. Actually I don't see a need for this change.


Bump version to v1.12.0-dev

Because 1.11 is soooo yesterday

/cc @tiborvass  :smile:

LGTM \o/

i need to go through all those commits and make sure there arent prs that were only against 1.11 and not open to master in which case i'll need to cherrypick :( will do this asap

fine LGTM


FAL API usage in Finetuning FluxLora

Hi,
I've got my FAL Api key to finetune fluxlora. I've used fal.client(api_key = "") but I'm getting attribute error in this as there is no attribute "Client". What is the correct way to use it?

says I don't have access to the workspace. Someone from FAL please help me out on this

Hello, you can try to use the fal-client.
❯ pip install fal-client
Requirement already satisfied: fal-client in /Users/matteo/.pyenv/versions/3.8.13/envs/testenv/lib/python3.8/site-packages (0.5.4)
Requirement already satisfied: httpx<1,>=0.21.0 in /Users/matteo/.pyenv/versions/3.8.13/envs/testenv/lib/python3.8/site-packages (from fal-client) (0.27.2)
Requirement already satisfied: httpx-sse<0.5,>=0.4.0 in /Users/matteo/.pyenv/versions/3.8.13/envs/testenv/lib/python3.8/site-packages (from fal-client) (0.4.0)
Requirement already satisfied: anyio in /Users/matteo/.pyenv/versions/3.8.13/envs/testenv/lib/python3.8/site-packages (from httpx<1,>=0.21.0->fal-client) (4.5.2)
Requirement already satisfied: certifi in /Users/matteo/.pyenv/versions/3.8.13/envs/testenv/lib/python3.8/site-packages (from httpx<1,>=0.21.0->fal-client) (2024.8.30)
Requirement already satisfied: httpcore==1.* in /Users/matteo/.pyenv/versions/3.8.13/envs/testenv/lib/python3.8/site-packages (from httpx<1,>=0.21.0->fal-client) (1.0.6)
Requirement already satisfied: idna in /Users/matteo/.pyenv/versions/3.8.13/envs/testenv/lib/python3.8/site-packages (from httpx<1,>=0.21.0->fal-client) (3.10)
Requirement already satisfied: sniffio in /Users/matteo/.pyenv/versions/3.8.13/envs/testenv/lib/python3.8/site-packages (from httpx<1,>=0.21.0->fal-client) (1.3.1)
Requirement already satisfied: h11<0.15,>=0.13 in /Users/matteo/.pyenv/versions/3.8.13/envs/testenv/lib/python3.8/site-packages (from httpcore==1.*->httpx<1,>=0.21.0->fal-client) (0.14.0)
Requirement already satisfied: exceptiongroup>=1.0.2 in /Users/matteo/.pyenv/versions/3.8.13/envs/testenv/lib/python3.8/site-packages (from anyio->httpx<1,>=0.21.0->fal-client) (1.2.2)
Requirement already satisfied: typing-extensions>=4.1 in /Users/matteo/.pyenv/versions/3.8.13/envs/testenv/lib/python3.8/site-packages (from anyio->httpx<1,>=0.21.0->fal-client) (4.12.2)

[notice] A new release of pip is available: 23.3 -> 24.3.1
[notice] To update, run: python -m pip install --upgrade pip

❯ python
>>> import fal_client as f
>>> f.SyncClient
<class 'fal_client.client.SyncClient'>
>>> f.AsyncClient
<class 'fal_client.client.AsyncClient'>
>>>

You can see here we have SyncClient and AsyncClient classes


yutto: 2.0.0-beta.40 -> 2.0.0-beta.43

Description of changes

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 341333

x86_64-linux

:x: 6 packages failed to build:

biliass (python312Packages.biliass)
biliass.dist (python312Packages.biliass.dist)
python311Packages.biliass
python311Packages.biliass.dist
yutto
yutto.dist

aarch64-linux

:x: 6 packages failed to build:

biliass (python312Packages.biliass)
biliass.dist (python312Packages.biliass.dist)
python311Packages.biliass
python311Packages.biliass.dist
yutto
yutto.dist

x86_64-darwin

:x: 6 packages failed to build:

biliass (python312Packages.biliass)
biliass.dist (python312Packages.biliass.dist)
python311Packages.biliass
python311Packages.biliass.dist
yutto
yutto.dist

aarch64-darwin

:x: 6 packages failed to build:

biliass (python312Packages.biliass)
biliass.dist (python312Packages.biliass.dist)
python311Packages.biliass
python311Packages.biliass.dist
yutto
yutto.dist

Hashes are all wrong...

Sorry, I forgot to update the hash when I update it from .41 to .42... This depends on https://github.com/NixOS/nixpkgs/pull/344424.

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 341333

x86_64-linux

:x: 6 packages failed to build:

biliass (python312Packages.biliass)
biliass.dist (python312Packages.biliass.dist)
python311Packages.biliass
python311Packages.biliass.dist
yutto
yutto.dist

aarch64-linux

:x: 6 packages failed to build:

biliass (python312Packages.biliass)
biliass.dist (python312Packages.biliass.dist)
python311Packages.biliass
python311Packages.biliass.dist
yutto
yutto.dist

x86_64-darwin

:x: 6 packages failed to build:

biliass (python312Packages.biliass)
biliass.dist (python312Packages.biliass.dist)
python311Packages.biliass
python311Packages.biliass.dist
yutto
yutto.dist

aarch64-darwin

:x: 6 packages failed to build:

biliass (python312Packages.biliass)
biliass.dist (python312Packages.biliass.dist)
python311Packages.biliass
python311Packages.biliass.dist
yutto
yutto.dist

Feel free to ping me once protobuf 28.2 lands in master.

@GaetanLepage  protobuf is replaced with rust binding so this can be merged now. :)

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 341333

x86_64-linux

:white_check_mark: 6 packages built:

biliass (python312Packages.biliass)
biliass.dist (python312Packages.biliass.dist)
python311Packages.biliass
python311Packages.biliass.dist
yutto
yutto.dist

aarch64-linux

:white_check_mark: 6 packages built:

biliass (python312Packages.biliass)
biliass.dist (python312Packages.biliass.dist)
python311Packages.biliass
python311Packages.biliass.dist
yutto
yutto.dist


How to view Tidal warnings?

As I mentioned on issue #2, there doesn't seem to be a way to see tidal's error output. I managed to get a console up showing haskell output on the previous version, but can't find a way to do that now.

@yaxu
yes, once we can got the haskell output, showing on the editor gui is not hard I think. I'll look at this weekend.

Hey @seansay any progress with this? No hassle but I'm packaging a tidal live usb stick soon and wondering whether to have atom or emacs as default.. Atom could be a lot friendlier! :)

Ok I found that you can get the console up with ctrl-shift-i
I also made this change to repl.coffee (my first coffeescript!):
  doSpawn: ->
    logStream = fs.createWriteStream('/tmp/tidal.err', {flags: 'a'});
    @repl = spawn(execPath, ['-XOverloadedStrings'])
    @repl.stdout.on('data', (data) -> console.log(data.toString('utf8')))
    @repl.stderr.pipe(logStream);

i.e. to send the errors to an external file. Then the errors can be shown with some other program.
I don't know what's best here, maybe it could be an option.
Thanks again for all your work on this!

@yaxu
I just publish 0.6.0, and a small window bottom of the text-editor, put the console output to that.

Hey
I just tried this, promising but when I click 'boot tidal' the whole window fills with output and I can't do much else..

@yaxu
weird, I give it a height it shouble be like this .

so you're on linux? which atom version

Yes linux,
atom 0.176.0 26/01/2015 21:59:35

@yaxu
just change a css selector, can u try that again?  Maybe I shoude get a linux to test..

I'm just trying to upgrade atom to try it.. Although now atom isn't working at all, I think due to me using an old nodejs.. So upgrading htat.

Ok I upgraded to latest atom and all is fine now. I don't know if it is due to my editor version or the css selector but it works! Thanks very much @seansay


Help event is not fired!

The Help event is not fired when pressing the F1 key.
I used the AddIn template and just changed the MyRibbon class:
class MyRibbon : SolidEdgeCommunity.AddIn.Ribbon
{
    private RibbonButton _button1;

    public MyRibbon()
    {
        // Get a reference to the current assembly. This is where the ribbon XML is embedded.
        var assembly = System.Reflection.Assembly.GetExecutingAssembly();

        // Note: In this example, the ribbon XML file has a build action of "Embedded Resource".
        var _embeddedResourceName = String.Format("{0}.xml", this.GetType().FullName);
        this.LoadXml(assembly, _embeddedResourceName);

        // Example of how to bind a local variable to a particular ribbon control.
        _button1 = GetButton(0);
        _button1.Help += _button1_Help;
    }

    void _button1_Help(RibbonControl control, IntPtr hWndFrame, int helpCommandID)
    {
        Help.ShowHelp(null, "Help.chm");
    }
}

Nothing gets called when pressing the F1 key while the cursor is on the RibbonButton.

After making some tests with the source code and the test add in i noticed that the function void SolidEdgeFramework.ISEAddInEventsEx.OnCommandHelp(int hFrameWnd, int HelpCommandID, int CommandID) never gets called. Instead of this function the function 'void SolidEdgeFramework.ISEAddInEventsEx.OnCommandOnLineHelp(int HelpCommandID, int CommandID, out string HelpURL)' gets called. Is that the normal behaviour or is this a bug?

I vaguely recall looking at this in the past. I see your pull request and will review\test it. Thank you for your contribution. If everything looks good, I'll get a new NuGet package out tonight.


CreateStreamOnHGlobal use is not recommended, find suitable replacement

The CreateStreamOnHGlobal function has a number of performance issues, so it's recommended that you avoid using it. I need a memory IStream for the SaveToWICMemory functionality.

For UWP I make use of InMemoryRandomAccessStream

For Windows Desktop on Windows 8 or later, I use SHCreateMemStream

For other cases, I'm still falling back to CreateStreamOnHGlobal. The best solution for other platforms may in fact be to write my own implementation of IStream.

Fixed in this commit


Add support for MySQL DateTime with milisecond precission

MySQL now have the ability to store datetime with millisecond precission. Please add support for that.

Are you able to provide a patch with your suggested changes as PR?


Should unique keys automatically be added to v-if/v-else-if/v-else groups?

Currently, we provide warnings like this one in several places of the docs. However, I think it might make more sense to automatically add unique keys to unkeyed conditional elements, since it's very rare to need elements with the same tag name to be reused.
The only potential disadvantages that come to mind are:

This is one of the few breaking changes we wouldn't automatically be able to fix for people with the migration helper, since we can't know the intent of the code.
Some apps would take a tiny performance hit, but I expect it would be negligible and they'd be able to easily fix this by explicitly adding the same key to each conditional element.
This could be seen as slightly magical, since the default behavior would be different in render functions. I personally find this acceptable, since render functions are already more manual in other ways.

This is the case of v3 with block optimizations.


does it support resuming compilation later

I want to use vcpkg to install qt5 which is quite big library and the laptop takes much time to compile
I want to run the compilation only when I am not using the laptob
so can I interrupt the compilation (Ctrl + C) then resume it later ?

@adevelopcr The construction process of each port is divided into configuration debug-build debug-configuration release-build release-installation. If the build process is forcibly terminated, the port will be completely rebuilt.

Ctrl + C breaks the compilation process everywhere including vcpkg's running process in a powershell instance or a command prompt window.
This is the accepted default across platforms so, no you cannot interrupt the compilation and resume it later.
You can pause the the console output (but not background compilation processes) using the scr lk (scroll lock) key but it doesn't do what you want to do.
I recommend:

Assess if you really need to build Qt

What parts of Qt does your application need?
Could you not use the Qt binaries already available for your operating system instead?

Consider using a powerful dedicated build machine (server or desktop) to build large software libraries and programs instead

The last thing the World needs is more people arbitrarily learning how to compile Qt without any specific reason, when pre-compiled binaries are available everywhere.
Unless you absolutely must have a feature not compiled into the pre-compiled offerings out there - then there is literally no point in compiling Qt. Use the Qt opensource installer or your distribution's (if on Linux) package manager instead.
Qt in vcpkg is not ready for production or even the latest available version (5.12.4 is currently the latest LTS release while 5.12.3 exists in vcpkg as of 15/07/2019.)

On bash/linux you can pause a running process by ctrl-z. I'd assume that powershell has something similar.

If this issue is still not resolved, please reopen it.


Update usage of EstimateFeeRate

#592  👈
feature/proof-of-stake

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @lazynina and the rest of your teammates on  Graphite


Update googlei18n/libphonenumber to v8.3.3

Have to update google lib since current version will treat some countries national phone number as invalid

@JennieJi  - Thank you!


order address objects by primary key in healthcheck.json

the default ordering on Address objects ends up as building number + name, if it's not specified. These columns are not indexed, hence Address.objects.first() is very slow on a 30m-row table!

:+1:


[Typescript] ERROR  Failed to compile - No overload matches this call

Tell about your platform

Vue.js version : 2.x with typescript
Browser name and version : Chrome|Firefox|Edge x.x.x
This package version : 3.x.x

Hi how are you everybody? i have somekind of issue when run the command vue-cli-service build --mode production with this lib, the thing is the next:
 vue-cli-service build --mode production

-  Building for production...
Starting type checking service...
Using 1 worker with 2048MB memory limit
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db

Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db

Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
 ERROR  Failed to compile with 1 error2:16:10 PM

 error  in /srv/src/atomics/loaders/Spinner.vue

ERROR in /srv/src/atomics/loaders/Spinner.vue(17,2):
17:2 No overload matches this call.
  Overload 1 of 2, '(options: ComponentOptions<Vue, DefaultData<Vue>, DefaultMethods<Vue>, DefaultComputed, PropsDefinition<Record<string, any>>, Record<...>> & ThisType<...>): <VC extends VueClass<...>>(target: VC) => VC', gave the following error.
    Type 'typeof LoadingPlugin' is not assignable to type 'VueConstructor<Vue> | AsyncComponentPromise<any, any, any, any> | AsyncComponentFactory<any, any, any, any> | FunctionalComponentOptions<...> | ComponentOptions<...>'.
      Type 'typeof LoadingPlugin' is missing the following properties from type 'VueConstructor<Vue>': extend, nextTick, set, delete, and 10 more.
  Overload 2 of 2, '(target: VueClass<Vue>): VueClass<Vue>', gave the following error.
    Argument of type '{ components: { Loading: typeof Loading; }; }' is not assignable to parameter of type 'VueClass<Vue>'.
      Object literal may only specify known properties, but 'components' does not exist in type 'VueClass<Vue>'. Did you mean to write 'component'?
    15 | import Loading from 'vue-loading-overlay';
    16 |
  > 17 | @Component({
       |  ^
    18 |     components: {
    19 |         Loading,
    20 |     },

i am using the guide as component, what can i do in this situation? regards

@ankurk91 i did the minimal reproduction with a new vue project in ts.
it's more easy if you could clone it.
on this way when you run the command you can see the error directly on the console
npm run serve

https://github.com/erikhu/minimal-reproduction-vue-loading

This package is not written in TS, it has manually defined types
https://github.com/ankurk91/vue-loading-overlay/blob/v3.x/types/loading.d.ts
I am not a TS expert and would like someone to help here

I  was able to compile TS with this code in your main.ts
import Loading from 'vue-loading-overlay';
import 'vue-loading-overlay/dist/vue-loading.css';

Vue.use(Loading);

Then in App.vue
export default class App extends Vue {
  showLoader() {
    this.$loading.show({
      canCancel: true
    })
  }
}

The issue is that the types inside loading.d.ts are not correct.
declare class LoadingPlugin {
  static install: PluginFunction<PluginOptions>
}

export default LoadingPlugin

According to the d.ts file the default export is only a Vue plugin and not a vue component. But the index.js exports a combined plugin/component:
import Component from './js/Component.vue';
import LoadingApi from './js/api';
import './css/index.css';

const Plugin = (Vue, props = {}, slots = {}) => {
  let api = LoadingApi(Vue, props, slots);
  Vue.$loading = api;
  Vue.prototype.$loading = api;
};

Component.install = Plugin;

export default Component;

If you want to use vue-loading-component as a component you can just cast it to Component as a workaround:
import LoadingOverlay from "vue-loading-overlay";
import type { Component } from "vue";

export default defineComponent({
  name: "my-component",
  components: {
    "loading-overlay": LoadingOverlay as Component
  }
});

Can someone help to update the type definition?

This must be fixed in v6
npm install vue-loading-overlay@^6


Component to create: listitem

Official link to component description & demo: http://dev.office.com/fabric/components/listitem
Screenshot of web analytics for the original http://officeuifabric.com site by @andrewconnell. Use this to see what are the most popular components: http://imgur.com/gallery/buUcyQv

As mentioned in #24: since a list item doesn't exist outside of a list how about we combine #25 with #24 and provide a single component that consists of list and list item?

Sounds good... closing this one to "merge" with #24.


how about the performance?

@sacmehta ,thanks very much for your work, and I wonder about the performance(mIOU) on cityscapes validation set of  the ESP_C model and ESPnet model?  I run your commands, and the mIOU only 41% which is much lower than the performance released on the paper ? Thanks very much !

I just using the  evaluation scripts provided by the Cityscapes dataset, and the mIOU is 43.5% with your released  ESP_C model(p=2, q=8), can you give me some advice? Thansk very much

I am assuming that you are using VisualizeResults.py file in the test folder. This file generates the label images at a resolution of 1024x512.
You have to upsample these generated images by a factor of 2 so that your label image size is 2048x1024. Could you please tell me how are you up sampling your label images to get to this size?

I just using VisualizeResults.py file with input_size=1024x2048, is it same with the 1024x512 and then upsampling with factor of 2?

OK, thanks very much for you real time answers and very useful advices. I will do experiments  following your suggestions and then share results later。

May I ask about your mIOU during training? I can get only 0.47 mIOU in splited validation dataset and 0.50mIOU in train dataset during training .

Which scripts are you using to evaluate mIOU?

I have not evaluate the model on test set of cityscapes dataset, the data of miou is from trainlog.

thank you for your quickly answering, I'm waiting for the 300 epochs.

hi, this is my full train log, I use the pretraind encoder in your github to train ESPNet, but It seems that I can't get the good performance as you. Do u have any advices for training? how to tune the hyperparameters?
trainValLog.txt

Hi,
This looks good to me. Please evaluate it using the Cityscapes dataset scripts because they are different as they use weighted mIOU; different from the one we provide. Once you evaluate on that, you will see similar performance.
Note that please use your best model for generating results. That is, the model with least validation loss.

Thank you @sacmehta , I'll try tomorrow.It's really nice of you ^ _ ^

hello, this is my result with bilinear interpolation on val set , And I think it's worse than you

Could you please tell me if you use ESpNet-C or ESPNet?

ESPNet,I use the pretrained ESPnet-c which you provided in the code to train the model

Which configuration?

all hyperparameters are default value in your code. Do you have any advice?

Can you share the command you used to train the model?

yeah,in the model dict ,there are two up layer. and the folder to contain the result is "results_enc__dec_2_8"
So I think I have turn it on during training with the command line.
Do you have any suggestions?

I believe this is my final result for ESPNet, I have checked the number of "parameters" in train log, and it's right for ESPNet.
May I ask u for any advice for hyperparameters? are you using the default setting in your code to train your model?

Provided model is our best model on the validation set.
Did you resize feature maps or segmentation masks using Bilinear interpolation?

Also, check unique values in the generated segmentation masks. They should be between 0 and number of classes. You can check this using
numpy.unique

yeah I found it
I resized the feature map
I should upsample the model out
it's work now
thank you !

Are you able to attain the reported accuracy?

hi, @sacmehta ,have you done something to augment the original dataset, I can only get 0.59 below your 0.61 on cityscapes validation set

No, we didn’t use any additional augmentation.
+/- 2 points deviation is kind of expected. We used a batch size of 12 for ESPNet-c and 6 for ESPNet. What batch size did you use?

same as you, 6 for ESPNet .
thank you very much!

@sacmehta Is it necessary to train 300 epochs? The val loss and mIoU are sluggish after the early epoch.

My result is val mIoU 0.601.


vpiDecompile on Expression

Hello
on
module dut #(parameter SIZE) (
  input wire [SIZE-1:0] wire_i
	);
endmodule

the UHDM tree for the left part of range [SIZE-1:0]  produce:
        |vpiLeftRange:
        \_operation: , line:2:13, endln:2:19
          |vpiParent:
          \_range: , line:2:12, endln:2:22
          |vpiOpType:11
          |vpiOperand:
          \_ref_obj: (work@dut.wire_i.SIZE), line:2:13, endln:2:17
            |vpiParent:
            \_port: (wire_i), line:2:23, endln:2:29
            |vpiName:SIZE
<EMAIL_ADDRESS>          |vpiOperand:
          \_constant: , line:2:18, endln:2:19
            |vpiParent:
            \_operation: , line:2:13, endln:2:19
            |vpiDecompile:1
            |vpiSize:64
            |UINT:1
            |vpiConstType:9

While I would have expect to see print in object tree in addition:
vpiDecompile:SIZE-1
then
vpiecompile:SIZE
for intermediate expression structure.
According to chapter 37.57, expr should allow to retrieve an equivalent to source code string with vpiDecompile.
I try to add the raw expression coming from antlr rule context to UHDM db by amending VObject but cache mechanic https://github.com/chipsalliance/Surelog/blob/079abd2e6d114fee8f0bcf058aac2b07a5b8a25f/src/Cache/Cache.cpp#L222 let my think it was not plan to work this way.
An other strategy would be for vpiDecompile on expression to "re-elaborate" an expression with children data. I struggle to understand vpi object model to achieve that ...
What is the way to go ?

@Thomasb81 The dump you show above is not the vpiDecompile. It is the UHDM tree dump used to debug UHDM model. It contains much more information than the standard vpiDecompile.
To achieve what you want (Decompilation from UHDM/VPI model), you need to work on https://github.com/chipsalliance/UHDM/blob/10663bd899d5e7cff7b741bdc346ed47d26fcf4b/templates/ExprEval.cpp#L733
The first thing would be to move this function in it's own file as it will become large very quickly. This is essentially pretty printing the UHDM model back into Verilog. The current sample code is alredy used to vpiDecompile simple expressions.

@Thomasb81 The dump you show above is not the vpiDecompile. It is the UHDM tree dump used to debug UHDM model. It contains much more information than the standard vpiDecompile.

The text from the uhdm-dump come from this method of generated vpi_visitor.cpp:
static void visit_expr(vpiHandle obj_h, int indent, const char *relation, VisitedContainer* visited, std::ostream& out, bool shallowVisit) {
  if (const char* s = vpi_get_str(vpiDecompile, obj_h))
    stream_indent(out, indent) << "|vpiDecompile:" << s << "\n";
  if (const int n = vpi_get(vpiSize, obj_h))
    stream_indent(out, indent) << "|vpiSize:" << n << "\n";
  s_vpi_value value;
  vpi_get_value(obj_h, &value);
  if (value.format) {
    std::string val = visit_value(&value);
    if (!val.empty()) {
      stream_indent(out, indent) << val;
    }
  }
  if (vpiHandle itr = vpi_handle(vpiTypespec, obj_h)) {
    visit_object(itr, indent + kLevelIndent, "vpiTypespec", visited, out, false);
    release_handle(itr);
  }
}

To achieve what you want (Decompilation from UHDM/VPI model), you need to work on https://github.com/chipsalliance/UHDM/blob/10663bd899d5e7cff7b741bdc346ed47d26fcf4b/templates/ExprEval.cpp#L733
The first thing would be to move this function in it's own file as it will become large very quickly. This is essentially pretty printing the UHDM model back into Verilog. The current sample code is alredy used to vpiDecompile simple expressions.

I do not understand what this code does and how to use it. Could you provide additional pointer on where it is used ?
But yes, the switch (opType) case can be significantly long.
In my sandbox I achieve to sketch a visitor class based on the recursive mechanic generate in generated/src/vpi_visitor.cpp. I change a couple of return value to std::string_view/std::string that allow me to re-compile what I think vpiDecompile should return in visit_expr function provide above.
I am now able from this input wire [SIZE-1:0] wire_i statement in uhdm db from my initial example to produce
            <ipxact:port>
                <ipxact:name>wire_i</ipxact:name>
                <ipxact:wire>
                    <ipxact:direction>input</ipxact:direction>
                    <ipxact:vectors>
                        <ipxact:vector>
                            <ipxact:left>SIZE-1</ipxact:left>
                            <ipxact:right>0</ipxact:right>
                        </ipxact:vector>
                    </ipxact:vectors>
                </ipxact:wire>
            </ipxact:port>

Let's start from the top. It will be easier to guide you.
You are trying to write an IP Exact extractor from module definition ?

For all modules in a design?
For a single module?

If the answer is for a single module (The top module of an IP), and no elaboration (Which I think is the right way to extract the IP exact definition), then

Top module of an IP for parameter and ports, but the full IP to get the list of files.
Can't escape to cover all the ast to grab all files...

But if you complete it, it will write the expression as you have achieved ipxact:leftSIZE-1</ipxact:left>

Ok I will do.

I open a draft pull  request https://github.com/chipsalliance/UHDM/pull/867

Top module of an IP for parameter and ports, but the full IP to get the list of files.
Can't escape to cover all the ast to grab all files...

You can go through the list of uhdmAllModules and uhdmAllPackages and get the file list.
you don't need to go through uhdmTopModules or uhdmTopPackages.

Merged https://github.com/chipsalliance/UHDM/pull/867

Still for the intent to complete exprEval::prettyPrint to capture expression, I create following test case to capture $sformatf("%d",b) :
module dut();
localparam a = $sformatf("%d",b);
endmodule

The uhdm dump create following tree:
    |vpiRhs:
    \_sys_func_call: ($sformatf), line:2:16, endln:2:33
      |vpiArgument:
      \_constant: , line:2:26, endln:2:30
        |vpiParent:
        \_sys_func_call: ($sformatf), line:2:16, endln:2:33
        |vpiDecompile:%d
        |vpiSize:16
        |STRING:%d
        |vpiConstType:6
      |vpiArgument:
      \_ref_obj: (b), line:2:31, endln:2:32
        |vpiParent:
        \_sys_func_call: ($sformatf), line:2:16, endln:2:33
        |vpiName:b
        |vpiActual:
        \_logic_net: (b)
      |vpiName:$sformatf

I do not understand why my format constant string is capture as %d instead of "%d"...
Tentative to use vpiDecompile("\"%d\"") in my unittest produce for prettyPrint output \"%d\".
So I can produce  $sformatf(%d,b) or  $sformatf(\"%d\",b) depending of what how I fill vpiDecompile for my constant string.
It is not clear what happen here. I expect as any other constant a direct use : https://github.com/chipsalliance/UHDM/blob/7d0cd8dbaf3738559cddcf78bcdf04515067c311/templates/ExprEval.cpp#L741
I do not understand who has the responsibility to add the double quote in case of manipulation of vpiDecompile string constant or why surelog do not fill the db with a directly usable string constant.
Regarding vpiDecompile("\"%d\"")
Why my backslash protection of double quote is being it self protected ? Is there C++/STL black magic here ?

Maybe @hs-apotell can help here.
It looks like the VpiDecompile method is printing as-is what was passed a an argument regardless of the type.
In the case of a constant string type, it should print "" around the value.

    case VObjectType::slStringLiteral: {
      UHDM::constant *c = s.MakeConstant();
      std::string_view value = StringUtils::unquoted(fC->SymName(child));
      c->VpiDecompile(value);
      c->VpiSize(value.length() * 8);
      c->VpiValue(StrCat("STRING:", value));
      c->VpiConstType(vpiStringConst);
      result = c;
      break;
    }

My believe is that:

vpiDecompile should record the quoted string, so prettyPrint can work recursively without taking care of leaf element. At least that is evalExpr::prettyPrint is written today.

vpiValue should record the unquoted string to allow recursive evaluation of expression ie string concatenation without to have any need of demangle  the value before use.

This could probably be apply to other kind of constant. Except that value for other kind of constant than string still need side attribute, because the kind is not c++ built-in.
At this stage of the project it can have impact on application code:
https://github.com/chipsalliance/Surelog/blob/0560506b3f9bcd4b6ff698503f5c062543ce1fdd/src/roundtrip.cpp#L388
https://github.com/chipsalliance/UHDM/blob/785fb0052bdd70362f62ca23fc8e128a95678673/templates/ExprEval.cpp#L1590
At least for me it seems very odd that I need to demangle the value for any use coming from the database for all application.

https://github.com/chipsalliance/Surelog/blob/0560506b3f9bcd4b6ff698503f5c062543ce1fdd/src/DesignCompile/CompileExpression.cpp#L712
Chapter 37.17 Details 9), page 992:

For vpiStringConst vpiSize should return the number of character
c->VpiSize(value.length() * 8);
should be
c->VpiSize(value.length());

Regarding this construction coming from  https://github.com/chipsalliance/Surelog/issues/3480 in the context of this ticket dealing with vpiDecompile
logic [31:0] data;
assign data = '{ default: 0 };

I figure out that there is no api to store default statement (see example given in chapter  37.57 6) the default value must be replace when the database is initially fill. So the associated vpiDecompile value must be fill with original source code token.
No way to build it by a later elaboration pass using the result of prettyPrint call.
Can we retrieve the source corresponding to the expression grammar rule in Surelog/src/DesignCompile/CompileExpression.cpp code, similarly to how we can retrieve it in antlr ast ?

@Thomasb81, can you open different issues with each topic discussed here?

I will do that

* Have you and @hs-apotell reached a conclusion for the string double-quotes?
* please open an issue regarding the string size

I need to have a deeper look at https://github.com/chipsalliance/Surelog/blob/0560506b3f9bcd4b6ff698503f5c062543ce1fdd/src/DesignCompile/CompileExpression.cpp#L710
See if a PR is achievable at my end or open an issue as you suggest.

* please open an issue with the default statement so it does not get mingled in this case discussion (The answer being that the vpiAllModule contains the default original statement, and in the vpiTopModule it has been replaced by the resulting constant).

I will open an issue on this one.

This particular issue is resolved.


Implement Ranges and Traversal

http://www.w3.org/TR/DOM-Level-2-Traversal-Range/

https://dom.spec.whatwg.org/#ranges
https://dom.spec.whatwg.org/#traversal

We will need to find/write a test suite.

+1 for this

Spam +1 comments cause features to get moved to the back of the backlog. Please use the voting buttons instead. Deleting the recent +1s.

I'm still there, btw, as is my half-finished code. I hope to get this done eventually.

@adrianheine Does the TreeWalker implementation which landed help you get any closer to finishing your implementation?

Any updates on this?

https://twitter.com/slicknet/status/782274190451671040

I use sometimes Range#createContextualFragment, I don't really know why this useful method is there though
so I ended up doing this for tests
global.document.createRange = () => ({
  createContextualFragment: str => JSDOM.fragment(str)
});

@domenic I think what @acusti was asking is what are the next steps to get this verified?
I am trying to use this:
https://github.com/PrismJS/prism/issues/896
Can someone recommend an alternative path?  I like the idea of having a highlighted diff and syntax highlighting with Prism.  Might even come out better than Github's highlighter.

@adrianheine I might be interested in helping out if you share your WIP.

@adrianheine Is this relevant? http://tonsky.me/blog/chrome-intervention/

Got errors in jest tests.
TypeError: document.createRange is not a function

      at createRange (node_modules/popper.js/src/utils/findCommonOffsetParent.js:27:26)
      at findCommonOffsetParent (node_modules/popper.js/src/utils/getReferenceOffsets.js:16:85)
      at Popper.getReferenceOffsets (node_modules/popper.js/src/methods/update.js:29:28)
      at Popper.call (node_modules/popper.js/src/index.js:94:19)
      at node_modules/popper.js/dist/umd/popper.js:51:7

Find link here

When will it be released? So jest could upgrade to the newest version.


JBPM-4537 - Error when getting a primitive type process instance variable when using the REST API

JBPM-4537 - Error when getting a primitive type process instance variable when using the REST API
The fix will simply check if use is requesting the value of a primitive type and return build the response without trying to parse it.
Another more complex solution would be create a wrapper object for primitive types.

William,
Maciej has added this solution recently: 1b62095
Would it be okay to close this PR since we've now solved it differently?
See this comment for why wrappers are necessary: https://bugzilla.redhat.com/show_bug.cgi?id=1119560#c6

Hello Marco,
This is ok for me. I saw the Maciej's solution and told customer that this will be solved in BPM Suite 6.1.


Book-to-book mapping in custom.vrs causes the project's extraction to fail

If the project's custom versification maps text to a different book, extraction will fail with the error message:
SEB08	The start and end  verses are not in the same chapter.
The SEB08 project maps EST chapters 1-10 to ESG 1-10, which triggers this error.

The error message for this scenario could be improved if it included information about the verse range that triggered it.  For example, this update to the from_range() method in verse_ref.py provides helpful troubleshooting information:
    def from_range(cls, start: VerseRef, end: VerseRef) -> VerseRef:
        if start.book_num != end.book_num or start.chapter_num != end.chapter_num:
            raise ValueError(f"The start ({start}) and end ({end}) verses are not in the same chapter.")
        if start.has_multiple:
            raise ValueError(f"This start verse ({start}) contains multiple verses.")
        if end.has_multiple:
            raise ValueError(f"This end verse ({end}) contains multiple verses.")
        if start.versification != end.versification:
            raise ValueError(f"The start ({start}) and end verses ({end}) do not have the same versification.")

        return VerseRef(start.book, start.chapter, f"{start.verse_num}-{end.verse_num}", start.versification)


too many concerns

IMO this comes across as a little confusing, it does ip denial and rate-limiting, which we already have, so two in this org might confuse people. Also when mentioned in https://github.com/koajs/ratelimit/issues/5 I thought koa-limit would be request body limiting.
White/black listing is cool but I think we should make it a separate middleware personally. Also in-memory rate limiting isn't very useful since most if not all real API deployments will be multi-process if not multi-machine
something like .use(allow(ips)) and .use(deny(ips)) would be cool

yeah we don't need this
i added blacklist/whitelist in https://github.com/koajs/ratelimit/pull/17


Build scan plugin 2.0 simplifications

Context
Some simplifications to prepare for the GBT 5.0 <=> build scan plugin 2.0 requirements

Backporting BuildOperationNotificationListener2 to BuildOperationNotificationListener
Keep BuildOperationNotificationListener2 around to allow build scan plugin 1.16 to still work with this GBT version

A build scan plugin 2.0 RC will be produced, that is built from this GBT version, and that does not need BuildOperationNotificationListener2.
This RC will then be made available for the GBT team to use, and we'll remove the then-unneeded BuildOperationNotificationListener2 interface.

@wolfs Can you have a quick look.
This is what we talked about yesterday. It will allow me to build a proper BSP 2.0 RC.


[Feature Request] Ability to copy WidgetSpan to clipboard

With https://github.com/flutter/flutter/pull/92295, it's now possible to put WidgetSpans into SelectableText.  It should be possible to copy that content to the clipboard in an intuitive way.  Currently, any WidgetSpan copied to the clipboard will appear as a Unicode OBJ character (U+FFFC).
Example
For example, in this app, copying the image in this example app should do something useful like copy the src, the semanticLabel, or the image itself.  Or, the developer should be able to specify what gets copied.

Example App
import 'package:flutter/material.dart';

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

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: Scaffold(
        body: Center(
          child: SelectableText.rich(
            TextSpan(
              children: <InlineSpan>[
                WidgetSpan(
                  child: Image.network(
                    'https://flutter.dev/assets/images/shared/brand/flutter/logo/flutter-lockup.png',
                    semanticLabel: 'Flutter',
                  ),
                ),
              ],
            ),
          ),
        ),
      ),
    );
  }
}

Possible Solutions
Either

Flutter should automatically try to figure out the best thing to copy (src, semanticLabel, or the image in the example).

And/or

Flutter should allow the developer to specify what should be copied.

There is another Github issue about supporting a rich text clipboard (https://github.com/flutter/flutter/issues/23603).  Ideally, with that feature available, copying a WidgetSpan should also copy rich content, such as the image itself in the example above.
Advanced: Pasting WidgetSpans
Flutter currently doesn't support WidgetSpans in high level text editing widgets like TextField, though it's possible to hack an EditableText to take WidgetSpans.  If we want to support this, we have to consider what happens when a user copies and then pastes a WidgetSpan.  Ideally, it should duplicate the WidgetSpan in the new location.
Should that work across Flutter apps as well?  Maybe we need to create a Flutter clipboard content type.

We expect to have it as Windows stable releases come out

any update of this problem ?


feat: upgrade to powertools v2

Merge activity

Apr 19, 4:22 PM GMT+2: @pevisscher started a stack merge that includes this pull request via Graphite.


AssociationType.ClassOfExtension but no class -> System.IO.IOException: The specified path is invalid.

From the srm.exe log-file:
Message: SharpShell Diagnostics Initialised. Process srm.
Message: Started the Server Registration Manager.
Error: An unhandled exception occured installing and registering the server MyShellExtension
Error: System.IO.IOException: The specified path is invalid.

   at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)
   at Microsoft.Win32.RegistryKey.CreateSubKeyInternal(String subkey, RegistryKeyPermissionCheck permissionCheck, Object registrySecurityObj, RegistryOptions registryOptions)
   at Microsoft.Win32.RegistryKey.CreateSubKey(String subkey, RegistryKeyPermissionCheck permissionCheck)
   at Microsoft.Win32.RegistryKey.CreateSubKey(String subkey)
   at SharpShell.ServerRegistration.ServerRegistrationManager.RegisterServerAssociations(Guid serverClsid, ServerType serverType, String serverName, IEnumerable`1 associationAttributes, RegistrationType registrationType) in c:\Repositories\GitHub\dwmkerr\sharpshell\SharpShell\SharpShell\ServerRegistration\ServerRegistrationManager.cs:line 412
   at SharpShell.SharpShellServer.DoRegister(Type type, RegistrationType registrationType) in c:\Repositories\GitHub\dwmkerr\sharpshell\SharpShell\SharpShell\SharpShellServer.cs:line 76
   at ServerRegistrationManager.Application.InstallServer(String path, RegistrationType registrationType, Boolean codeBase)

I think this happens when using [COMServerAssociation(AssociationType.ClassOfExtension, ".bla")] but there is no class for .bla, because https://github.com/dwmkerr/sharpshell/blob/51266b1db96be0e2c5d0f027d1b3b1c9dd55fddc/SharpShell/SharpShell/ServerRegistration/ServerRegistrationManager.cs#L576 fileTypeClass is null. Should null maybe be skipped there instead?
Or can I somehow make SharpShell to create the class for .bla first (if it doesn't exist yet)?

You would need to create it yourself in the:
protected override bool CanShowMenu()  {            if (subkey == null)            {                     // Create the sub-key that doesn't exist            }             return true; }
If that doesn't work then you would need to make an installer for it that creates the subkey before srm takes control.

But the problem already happens in srm.exe install. Isn't CanShowMenu only called later?

Excuse my bluntness but your problems are not SharpShell issues. I suggest you learn more about it before continuing.

Thanks for the hint. I'm indeed new to this topic and it's difficult for me to be sure what is or is not related to SharpShell. When I get exceptions running a tool provided by SharpShell, I do naively assume it's a bug in that tool / SharpShell, and report it. But feel free to close the issue if it's unrelated.

Honestly I have not had any issues at all with SharpShell minus the ones I fixed myself but that has nothing to do with what you are struggling with. The answer I provided is a solution for what you are trying to do. Ideally you should have an installer anyway.
The way I did mine was create an executable to run the commands to install the dll on double click. You can do the same but check if subkey exists first and if not create it then install the dll.

Hi @petsuter  and @mikeyhalla ,
I encountered the exact same problem with the registration of my .dll on a clean Windows where no application was yet linked to the file extension. In my case I am developing a extension for .pdf files.
On a clean Windows 10 machine without Adobe or other PDF tools. Users can perfectly open PDF files by double clicking. It will open in Edge. But, the registry has no class for .pdf.
Since @dwmkerr himself advices to deploy srm.exe to register your shell extensions (see https://www.codeproject.com/Articles/653780/NET-Shell-Extensions-Deploying-SharpShell-Servers ) you would expect that the tool is able to install and register the extension regardless the class is defined or not.
So, in my humble opinion, I think this is indeed a bug, or at least it would improve the srm.exe tool a lot if it could handle this not so awkward scenario.
For now, I guess it is best to have the installer script check whether the class is defined or not, and if no class is defined it should create one before running srm install.

This is a duplicate of #126. See discussion between @devel0 and @Countryen. #126 is closed by @devel0, but the issue was never fixed.

Fixed by #240


working attempt to multi-architecture build

This is proposed solution for #11.
WFM but test it out carefully

I don't think this is enough because base images used in Dockerfile just x86. Probably it will build an image but I don't see how it can run on non-x86 architecture.
Smth like this looks closer to what we want (changed both based images) :
FROM golang:1.16 as backend

ARG GIT_BRANCH
ARG GITHUB_SHA
ARG CI

ENV GOFLAGS="-mod=vendor"
ADD . /build
WORKDIR /build
RUN cd app && CGO_ENABLED=0 go build -o /build/reproxy -ldflags "-X main.revision=test -s -w"

FROM alpine

COPY --from=backend /build/reproxy /srv/reproxy
RUN chmod +x /srv/reproxy
LABEL reproxy.enabled="false"
WORKDIR /srv

CMD ["/srv/reproxy"]


CSP Spot Check Part 2

Score: 0.92

Individuals will be asked to demonstrate the below.
Live reviews will be focussed on discussing the Show elements and demonstrating the Demo elements. It is expected that ISSUE is prepared in advance, but is linked at the end of Live review day.

jupyter notebook or web page that shows signup and login, focus on  login

[x ]  Show HTML and JavaScript to support Login/Signup in VSCode …

* [x ]  Show HTML that support Login/Signup

* [ x]  Show Style that supports Login/Signup formatting

* [x ]  Show JavaScript code that performs Fetch

[x ]  In Browser/Jupyter demo …

[x ]  Demo Login success
[x ]  Demo Login failure

Score: 0.90

jupyter notebook or web page that shows redirect or 403 error as result of signup and login page, focus on redirect to data/table display or failure

[ x]  Show HTML and JavaScript to support Login/Signup failure VSCode …

[ x]  Show JavaScript that performs Fetch

* [ x]  Show code that redirects to page on success

* [ x]  Show code that shows implementation of roles

* [ x]  Show code that captures error handling on 403

[ x]  In Browser/Jupyter demo …

[ x]  Demo Login success redirecting to table/data page
[ x]  Show in split screen, login success with cookie on redirected page
[ x]  Demo Login success to a page that requires advanced role
[ x]  Demo Login failure related in insufficient role

Score: 0.91

jupyter notebook that shows CRUD operation on page that requires authentication, or this can include signup without authentication

[ ]  Show in VSCode HTML and JavaScript to support Post, Put or Delete method

* [ ]  Show JavaScript that performs Fetch

* [ ]  Show JavaScript code that handles Response and formats data

* [ ]  Show code that supports HTML, HTML generation, and Style

[ x]  In Browser/Jupyter demo …

[ x]  Demo Fetch Action for Create/Post
[ x]  Demo Fetch Action for Update/Put
[ x]  Demo Fetch Action for Delete

[ x]  In SQLite demo …

[ x]  Demo Data Before each Fetch Action
[ x]  Demo Data After each Fetch Action


Block until mutex is locked

In esp-idf, the corresponding function is implemented as:
static int32_t IRAM_ATTR mutex_lock_wrapper(void *mutex)
{
    return (int32_t)xSemaphoreTakeRecursive(mutex, portMAX_DELAY);
}

This function suspends the task until the mutex can be locked. This PR attempts to replicate this behaviour.
It is common to ignore the return value of such mutex locks, as they are assumed to always succeed. In these cases the old code may have entered regions from multiple places simultaneously.

This is 100% my fault as I broke it in https://github.com/esp-rs/esp-wifi/commit/5a0e1d494cf58178f2164fcebcef2295a0452565 and so it's probably the cause of all my issues in #315
BUT! I still see no code path in the old code where lock_mutex would have looped. Unless there's some subtlety I'm skipping over, the branch (false, false) should be unreachable. Why am I wrong?

Haha, I managed to run into this blocking forever 😭

Seems you are right and while the loop definitely shows the intent to loop there until the mutex is available in reality the old code never got there
The thing about yield is a bit weird since it used to work - I think there were some changed to interrupt-on / off or something which might cause that now. We have more places where we call yield 🤔
I will compare the behavior to some older revision to see if the Software-Interrupt gets handled there correctly. I assume you are using S3, right?

I'm using the S3, yes. I don't think the yield mechanism is incorrect, nothing would work if that was the case. I've traced task switching yesterday and it was cycling between the three correctly.
What I'm thinking is that maybe we're not unmasking some interrupts correctly in one of the functions we provide to the driver. I remember messing with those, I just don't remember if my changes made it in or not (i.e. if this is something I've caused). I'm planning to spend my time on this today, though so you don't have to if you have other stuff.

Yeah, probably doesn't make sense to look into this in parallel. Won't be fun definitely

This is the call trace at the place of the infinite loop:

I hope we don't have more of these but I don't know. If a freeze happens again, we can connect a debugger, read the stack trace and update accordingly.


License chooser displays in Cyrillic

URL: https://creativecommons.org/choose/
Steps to reproduce the problem:

On the main page, click "Share your work".
Then click the "Get Started" button.

Apart from a header and footer, the (https://creativecommons.org/choose/)[license chooser] displays in Cyrillic. It has these headings:

Выбор параметров
Подходящая лицензия
Помогите людям указать ваше авторство!
Есть ли веб-страница?

I don't understand any language that uses Cyrillic. I am connecting from the Czech Republic, and Czech doesn't use these letters. Following English links to this page is quite confusing.
I managed to find a link saying "English" near the bottom of the site, which took me to an English version. I imagine others would not be so lucky, so I decided to report the issue.
I am using Firefox 50.0.2 on Fedora 24.

Mentions from the template: @robmyers @little-wow

This is now fixed. Thank you for reporting it!


Select the whole table when change editor mode will broken the editor

Describe the bug
In WYSIWYG mode, select a whole table, then change editor mode to markdown, do nothing, change mode to WYSIWYG, Editor broken.
and the error is :

To Reproduce

Desktop (please complete the following information):

OS: Windows 11
Browser Chrome Latest
Version 102

@cary-hu Thank you for the issue. we'll check it.


Upgrade feedparser

Currently the feedparser specified in the requirements does not work with Python 3.9.x due to this issue: https://github.com/kurtmckee/feedparser/pull/206
Upgrade the feedparser so pygooglenews works with python 3.9.x

Currently the feedparser specified in the requirements does not work with Python 3.9.x due to this issue: kurtmckee/feedparser#206
Upgrade the feedparser so pygooglenews works with python 3.9.x

Currently the feedparser specified in the requirements does not work with Python 3.9.x due to this issue: kurtmckee/feedparser#206
Upgrade the feedparser so pygooglenews works with python 3.9.x

Line 93 in feedparser.py change _base64decode = getattr(base64, 'decodebytes', base64.decodestring) to  base64.decodebytes.
This is based on the fix by @kurtmckee

Thanks for the approval, cannot merge myself due to permissions

I know just trying to spam the notifications enough to get the owner to notice :P

To anyone who wants to use this lib but can't install, you can force the dependencies to be a specific version this way:
python -m pip install "beautifulsoup4==4.9.1"
python -m pip install "dateparser==0.7.6"
python -m pip install "requests==2.24.0"
python -m pip install "feedparser==6.0.8"
python -m pip install --no-deps pygooglenews

This should work. (If it doesn't, check if the versions have changed in pyproject.toml for some reason)


Capture instances

Hi @rejas
This variable "instances" is meant to capture each instance of imageLightbox created. I have discovered that this variable is helpful when using the history API (which will come in a different PR).

Way too many commits in there again, including old ones :-( Hard to see for me what really changed :-(

Woops! I must have pushed to the wrong branch.


Microphone access (from other unity code) while porcupine is active

I would like to understand how porcupine interacts with other processes in the same unity app that need access to the microphone.
For example we are using Inworld.ai (NPC). We have inworld muted and use porcupine to detect a wake word and then activate Inworld to listen to the microphone and respond to input. While porcupine is still active Inworld is not receiving any mic input. If I call _porcupineManager.Stop(); then inworld starts receiving the mic input.
Any suggestion on how I can make these two co-exist? If possible, I would like to have porcupine active all the time and use it to enable Inworlds access to the mic input on demand.

I'm not sure how Inworld.ai operates their recording, but it sounds like it is taking control of the microphone when it is engaged. If this is the case, then you will not be able to use PorcupineManager alongside it. You will have to manage audio capture yourself and pass the audio to an instance of the Porcupine class and then give that other software the same audio separately. This is not an issue with Porcupine and we are not able to provide integration support via this forum, so I'm going to close the issue.

I think you misunderstood me and have it backwards. What I stated was that when porcupine is active, it is blocking other process's access to the microphone. When porcupine is disabled then the other app receives mic input no problem. When porcupine is re-enabled the other app stops getting  mic input again.

I see - apologies for the confusion. Have you tried it the other way around? i.e. run Porcupine (leave it running) and activate your other audio software? My guess is it would stop Porcupine from receiving audio in that case. In general, it is better not to simultaneously run plugins with their own audio capture because it can have unintended consequences on different platforms. I would still suggest either running one at a time (e.g. run Porcupine til the keyword is found and then run your other software) or manage audio capture yourself and send it to the individual plugins as needed.


Can not set java.lang.Long field MyBean.id to java.lang.Integer

Fill database with:
create (r1:NodeType { id: 1, name: 'Red' })
using loadClasspathCypherScriptFile.
Then load entity using :
nodeStatusConfig = operations.loadAll(NodeType.class, 0);
Where field id is of type long. (it isn't @GraphId field).
I'm using neo4j-ogm 1.1.0.

This test passes- can you point out what's different between this and yours?
@NodeEntity
public class Colour {

	@GraphId
	Long nodeId;

	long id;
	String name;

	public Colour() {
	}

	public Colour(long id, String name) {
		this.id = id;
		this.name = name;
	}
....
}

@Test
	public void testLong() {
		databaseServerRule.getGraphDatabaseService().execute("create (c:Colour {id:1, name:'Red'})");
		Collection<Colour> colours = session.loadAll(Colour.class, 0);
		assertNotNull(colours);
		assertEquals(1, colours.size());
		assertEquals(1l, colours.iterator().next().getId());
	}

It works with long properly. Try java.lang.Long.

This has been fixed as part of https://jira.spring.io/browse/DATAGRAPH-698
It'll be available in the next release of neo4j-ogm, or you can clone and build the 1.1.1-SNAPSHOT locally.


Stop AutoRotate on hover

Is it possible to stop or pause the autoRotation when i am over any item of the carousel ?
Thanks!

Hum... For some reason I can't get it to work in my case http://jsfiddle.net/brunoalla/46d0zyxp/1/
Am I missing something obvious? The javascript contains https://raw.githubusercontent.com/basilio/responsiveCarousel/master/responsiveCarousel.js followed by the above snippet, from line 413.