Destroying entities might add them to groups

Using a NoneOf matcher for groups can lead to adding entities to a group in the process of destroying it.
E.g.
Matcher.AllOf(Position).NoneOf(Destroy)

When destroying an entity all components will be removed. Depending on the order of removing those components it can happen that the entity will be added to the group. If DestroyComponent gets removed first the entity will matches the matcher. This shouldn't happen.

PrimaryEntityIndex throws exception due to this bug:
EntityIndexException: Entity for key '0' already exists!
Only one entity for a primary key is allowed.
Entitas.PrimaryEntityIndex`1[System.Int32].addEntity (Entitas.Entity entity, IComponent component) (at Assets/Entitas/EntityIndex.cs:108)
Entitas.AbstractEntityIndex`1[System.Int32].onEntityAdded (Entitas.Group group, Entitas.Entity entity, Int32 index, IComponent component) (at Assets/Entitas/EntityIndex.cs:40)
Entitas.Pool.updateGroupsComponentAddedOrRemoved (Entitas.Entity entity, Int32 index, IComponent component) (at Assets/Entitas/Pool.cs:319)
Entitas.Entity.replaceComponent (Int32 index, IComponent replacement) (at Assets/Entitas/Entity.cs:155)
Entitas.Entity.RemoveAllComponents () (at Assets/Entitas/Entity.cs:253)
Entitas.Entity.destroy () (at Assets/Entitas/Entity.cs:353)
Entitas.Pool.DestroyEntity (Entitas.Entity entity) (at Assets/Entitas/Pool.cs:146)
DestroyEntitySystem.Execute (System.Collections.Generic.List`1 entities) (at Assets/Sources/Common/Core/Systems/DestroyEntitySystem.cs:21)
Entitas.ReactiveSystem.Execute () (at Assets/Entitas/ReactiveSystem.cs:118)

Here's my code for EntityIndex:
    // Tube Segment
    public const string TubeSegmentWithIdKey = "TubeSegmentWithId";
    private static void AddTubeSegmentWithIdEntityIndex(Pools pools)
    {
        var index = new PrimaryEntityIndex<int>(
            pools.pool.GetGroup(Matcher.AllOf(Matcher.TubeSegment, Matcher.Id).NoneOf(Matcher.Destroy)),
            (entity, component) =>
            {
                var idComponent = component as IdComponent;
                return idComponent != null
                    ? idComponent.value
                    : entity.id.value;
            });
        pools.pool.AddEntityIndex(TubeSegmentWithIdKey, index);
    }

    public static Entity GetTubeSegmentWithId(this Pool pool, int id) {
        var index = (PrimaryEntityIndex<int>)pool.GetEntityIndex(TubeSegmentWithIdKey);
        return index.HasEntity(id) ? index.GetEntity(id) : null;
    }

@alandyshev let me know if there are still issues

Released Entitas 0.35.0 with the fix.

It's working now. Exception is not thrown. Thanks.


No hover text or code assist text for icons

Testing #111551
Not seeing hover text in the theme file, or more info in the in the code assist.

Notice I'm hovering over the "folding-expanded" item name in the next photo.

Version: 1.52.0-insider (user setup)
Commit: f4187f22026ff6537f2ca8132ad3209fceb5071f
Date: 2020-12-02T13:21:33.226Z
Electron: 9.3.5
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.17763

Pretty sure it's the same issue as https://github.com/microsoft/vscode/issues/111761

dup of #111741


Migrate development and community docs to main repo

ref: https://github.com/apache/dolphinscheduler/pull/11313

thanks


Fix #134 - TSLint errors don't go away once they are all fixed

Couple fixes here:

When saving a file, only run tslint on that file
Clear errors that been addressed (didn't show up in the last full-project tslint)
Refactor some of the common code out - there is still duplication between doLintForFile/doLintForProject, but this can be improved later.

Fix #134


Unable to set default value as first value of array in data props

Hihi! Im unable to set the first value in the array in data props if the first value is 0.
Eg. [0, 5, 10], i cant set defaultValue={0} nor defaultValueByIndex={0} to let default value be the value '0'
Doing this will revert the box value to the placeholder instead of '0'
tia

Which version do you use?

I'm using 1.11.0. @AdelRedaa97

I have made some changes, Could you try v"1.12.0" and tell me if it still not working

Hi @AdelRedaa97 !
Its still not working. I'm guessing its because selectedItem is 0 and reverts to the falsey part of the ternary operator when rendering.

Thanks for reporting ❤ it's fixed now in v"1.13.0" let me know if it still not working

Yes it works now! thanks much!


"ManagedIdentityCredential: Unexpected content type "text/html"" error during AzureMachineLearningFileSystem function call

Package Name: azureml-fsspec
Package Version: 1.1.1
Operating System: linux Debian 11
Python Version: 3.8.17

Describe the bug
When executing a function of an instance of AzureMachineLearningFileSystem (such as .ls()) that is initialized to point to an AML datastore, DefaultAzureCredential fails when attempting to authenticate with the ManagedIdentityCredential, with the reason "Unexpected content type "text/html"". Screenshot of full error message below.
To Reproduce
Steps to reproduce the behavior:

Initialize a AzureMachineLearningFileSystem object with an AML datastore URI, no other arguments.
Call a function of the filesystem object, such as .ls().

Expected behavior
DefaultAzureCredential attempts to authenticate with ManagedIdentityCredential, fails (because I'm running in VS Code on a local machine), and it continues attempting other authentication methods (eventually landing on CLICredential, which works).
Screenshots

Additional context
With this same setup, any time I use DefaultAzureCredential, I have to include the arg "exclude_managed_identity_credential=True", otherwise this same failure with the ManagedIdentityCredential will cause an error. This works for things like MLClient, where one can give it a credential to use when instantiating. To use an MLClient, for example, I could create a DefaultAzureCredential with "exclude_managed_identity_credential=True", then pass that credential into MLClient when initializing it. If I don't do this, I will get the same error when trying to do anything with the MLClient that required authentication. I'm also on USGovCloud.

Thanks for reaching out.
Could you help to clarify the questions?
e.g. you want to know more about the failure "Unexpected content type "text/html"" or you want azureml-fsspec to allow specifying credential object?

Thanks for the quick reply. It would be great if I could tell AzureMachineLearningFileSystem to skip the managed identity credential check, like I can by doing the "exclude_managed_identity_credential=True" arg with DefaultAzureCredential. Or to be able to pass a credential to AzureMachineLearningFileSystem to use specifically. I just want to avoid the error from the managed identity credential check.

Thanks for the clarification.
azureml-fsspec package is not monitored in this repo.
Please open a ticket for the machine learning team.


get_closing_data returns empty dataframe

As of today (Nov 10, 2017) get_closing_data is returning an empty dataframe, as does get_open_close_data.  I don't use the other methods, but the examples seem to work fine when client.py is run.
We've already lost Yahoo finance, please don't let us loose Google Finance as well.

Maybe I was a bit quick on the draw there, it seems to be working now.  I'm still working on my script, but will eventually automate it in cron.  Is there a certain time after closing that we should wait before parsing Google?


Add grunt version of the tasks

Build same tasks and routine for the grunt-based template

Grunt become very outdated :/


window resize during 'find' does not resize the interface

Description of the problem or steps to reproduce
When resizing the terminal window, if you have the "Find:" prompt open at that time, it will not reorganize micro's layout to the new terminal window size.  Closing the "Find:" prompt also does not then reorganize the layout, you have to resize the terminal again after the prompt is closed.
screenshot
Specifications

Commit hash: 68d88b57
OS: Solus 4.4
Terminal: kitty

It also affects Ctrl+e. Fortunately the PR works well


With a deauth-command, the WIFI access point opens!

Hallo,
if I disable the Nuki hub with a deauth-command, the access point opens and I can connect the hub to a new WLAN!
I think this is a major security flaw. Can i deactivate the access point?
Sorry for my bad English, it's a google-translate.

This is the default behavior of the Wifimanager library, so you can reconfigure in case no connection is necessary. I see your point though, this could be used for an attack. At this time you can't disable the access point, I'll look into adding it as an option.
For now to mitigate it, you should add a username and password so that at least the broker can't be reconfigured.

Hello,
thanks for the quick feedback.
OK, so far it works. But I can't save MQTT or the Network- configuration with this Firmware.
Thank you for your great work!

Hi. The code for saving configuration hasn't been touched at all compared to the released 8.29 binary, and I have no problem at all saving it. Can you get serial logs to see what's going on? Speed is 115200 baud.

ok, i haven't done that yet, it's a new hobby for me. I'll read up on it and give it a try.

Connect your ESP to your PC, and then use for example HTERM to read serial output of the ESP

Hi, I did it with Arduino IDE. I reflashed the ESP (M5StackATOM LITE) and connected it to my WLAN. Here is the log when configuring the MQTT broker:
`MQTT Broker not configured, aborting connection attempt.
Restarting
ets Jun  8 2016 00:22:57
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 188777542, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:8896
load:0x40080400,len:5816
entry 0x400806ac
E (552) esp_core_dump_flash: �� core dump partition found!
E (552) esp_core_dump_flash: No core dump partition found!
NUKI Hub version 8.29-pre-2
IP address empty, falling back to DHCP.
IP configuration: IP address: <IP_ADDRESS>, Subnet: <IP_ADDRESS>, Gateway: <IP_ADDRESS>, DNS: <IP_ADDRESS>
Hardware detect     : 0
Network device: Wifi only
MQTT without TLS.
*wm:AutoConnect
*wm:No wifi saved, skipping
*wm:AutoConnect: FAILED
*wm:StartAP with SSID:  ESP32_9FDAD4D4
*wm:AP IP address: <IP_ADDRESS>
*wm:Starting Web Portal `

Hi. Sorry for my mistake. I did not flash the new firmware via OTA, but directly. I would not have thought that OTA is possible, but that's how it works.
Thank you very much for your support!

OTA should be possible actually. It works now?

I agree, otherwise the ESP doesn't come back online after a WiFi outage.

ok, I'll look into it. At least for now reconfiguring Wifi is prevented.

Here's a binary to test. You'll find the option under the selection for network hardware. The behavior is slighly different depending on which hardware is configured:

If "Wifi only" is selected, the Wifi configuration portal is disabled, and the ESP will just reboot until it can eventually connect to Wifi again
If some LAN hardware is elected, fallback to the Wifi device is disabled, and thus the Wifi config portal will not open. The ESP will reboot until it can connect to LAN again.

To the user, both behaviors should look very similar. Please test, if it works as intended, I'll release a new version.
nuki_hub-8.31-pre-1.zip

Hi, thanks for the quick response! I'll get back to you when I've tested it....

if I disable the Nuki hub with a deauth-command, the access point opens and I can connect the hub to a new WLAN!
I think this is a major security flaw

Can you explain why this is a security flaw? Firt of all, the attacker would have access to the LAN, then, it would have to have the admin rights to issue a deauth command, then it would have to reconfigure Nuki Hub to another local wifi, but you would notice it because Nuki Hub would not be reachable anymore.
When I install Tasmota or other fw, it goes in AP mode so you can connect to it and configure the wifi. I don't see that as a "major security flaw" at all. But probably I'm missing something, that's why I ask...:)

I just had time and tried it out.
Only tested with "Wifi only", I don't have an ESP32 with LAN connection.
The Wifi configuration portal is deactivated, which is OK. But the ESP no longer logs into the WLAN after the attack, even after 5 minutes.

With reboot you mean you have to power-cycle it.

yes, or with the reset button, it works with both

What software do you use to send the deauth packets?

I've added some code to deinitialize the wifi driver before rebooting, please give it a try.
Also, upon sending the deauth give it some time to reconnect. I didn't try with deauth, but just renamed by AP SSID. After renaming it back to the correct name, it took about 30 seconds to reconnect.
nuki_hub-8.31-pre-2.zip

Great, now it works!
I have now tested it several times. No AP is displayed during the attack and after the attack the ESP is back in the WLAN after 20 seconds at the latest.
Many Thanks

Included in release 8.31, issue resolved :)


Add consistent way of initializing custom event kinds

Describe the enhancement
It's possible to construct event kinds that make them incompatible with (i.e. not == to) the json deserialized version of themselves.
The enhancement would be to only expose valid ways of constructing event kinds, such that this is not an issue anymore.
Use case
For example, for a custom kind 20100, which is in the ephemeral range:
// Will NOT work (false)
if let received_event.kind == Kind::Custom(20100) { }

// Will work (true)
if let received_event.kind == Kind::Ephemeral(20100) { }

// Will work (true)
// Looks like the most appropriate way
if let received_event.kind == Kind::from(20100) { }

Additional context
The only way I can think of is to enforce kinds to only be constructed via Kind::from(u64), although not sure how to do that.

Maybe the best way is to impl Eq and PartialEq manually checking if the u64 kind number is equal. In this way Kind::Custom(20100) should be equal to Kind::Ephemeral(20100).
What do you think?

Something like:
impl PartialEq<Kind> for Kind {
    fn eq(&self, other: &Kind) -> bool {
        self.as_u64() == other.as_u64()
    }
}

Sounds promising.

Now should work :)

Now I have the doubt to have misunderstood what you mean.
Have I?
I don't think that can be enforced the use of Kind::from(...).
Using the solution that I applied, if someone used Kind::Custom instead Kind::Ephemeral everything works (I added ephemeral kind not long ago). In this way it's backwards compatible.

Tested the new version, works! Thanks.
You're right, your idea with PartialEq is even better than enforcing Kind::from(...). Especially cause it's backwards compatible.


[stdlib] - WIP moved aspects of ForwardIndex and BidirectionalIndex i…

@gribozavr
Note many unit tests fail – as expected – at this point in time. I don't at the moment have any outstanding work but I was hoping to get more time over the next few days to make more progress on things. We will have to figure out how to best split up the work.

This generally LGTM, so I am merging in the interest of making progress together.


Stylize config command

Was a last minute addition, would be nice to make it look nicer

Hi @savannahostrowski - do you have any examples as to what you would like it to look like?


Bundle modules with package.preload

Fixes #488
Removes the override for require and adds all bundled modules to package.preload.
@rpatters1
I'm also wondering if a similar approach could work for luasocket so that require wouldn't need to be overridden in the lua-source repo?

I believe the require in lua-source is addressing a different issue, which is the inflexibility of the folder layout that socket expectsm for finding its lua components. Anyway, it isn't broken at the moment, so I am in no mood to fix it. But once we have verified this PR (and once I finish some other projects) I might have a look at it.
As part of this PR, please delete all the scripts in dist. That will force them to be rebuilt when it is merged.
Thanks. This is a big improvement.

dist has been reset.

i just merged the other PRs, and now there is a conflicting file in dist. If you could delete it, I'll do the merge.

Done.

@asherber I will be interested to hear if this breaks anything. Merging now.

Ah crap, I forgot to run pnpm build, so the compiled bundler hasn't changed. I'll do it in the morning.


About feature extraction.

Hi, guys, thanks for your interesting work.
I have an question about extract_feat.py.
When I use "ViT-B / 32" to extract visual features, the result is 768 dimensions, but text features are 512 dimensions. Is this normal?
BTW, I remember that "ViT-B / 32" corresponds to 512 dimensions.
Thanks.

Yes this is normal. According to the CLIP's paper, dimensions for vision and language branches are 768 and 512, respectively.

oops, i see.
Thanks for your reply.


Facebook

A space is U+0020.	 	A space is U+0020.
A non-whitespace character is any character	 	A non-whitespace character is any character
that is not a [whitespace character].	 	that is not a [whitespace character].

Closing as spam.


(FACT-1402) check also upper case letter in virtual kvm lspci check

If virtual = kvm should be detected, the virtual facter just triggers for lower case and is not able to catch up for example "00:03.0 Ethernet controller: Red Hat, Inc Virtio network device"

CLA signed by all contributors.

@chiemseesurfer did you get a chance to look at my regex comment above?

@chiemseesurfer I'm going to close this for now, but feel free to re-open this (if it's still an issue, see my comments above). Thanks for the contribution!

Hey,
like the part on the 2.x branch. I was not able to reproduce the problem, but I'm pretty sure, there was one :)
If I'm able to reproduce it again, I'll come back and reopen this ticket.


how to persist data between application restarts

we should not attempt to persist sensitive data like passwords etc.
BUT
the easiest strategy for storage would be to use localStorage, it persists between tauri restarts, so we could serialize redux store to localStorage and deserialize it on application startup

Follow-up issue #218 opened.
Reviewed and closed.


Codecov

See https://github.com/codecov/example-swift for an example

@faustbrian can you enable codecov for this repo?

Never mind, seems that you already enabled it as the badge now shows coverage after latest travis build :)

Just takes a moment for them to receive and process the coverage after travis runs.


feat: optional namespace

Signed-off-by: Engin Diri<EMAIL_ADDRESS>Description
Add functionality to create a namespace independent from the re…lease namespace. This useful, when using Trivy as dependency in another Helm chart
Related issues

Close #487

Remove this section if you don't have related PRs.
Checklist

[x] I've read the guidelines for contributing to this repository.
[x] I've added tests that prove my fix is effective or that my feature works.
[x] I've updated the documentation with the relevant information (if needed).
[x] I've added usage information (if the PR introduces new options)

@dirien Looks good! one comment, I think we need also to update the following values :

deployment.yaml L37
leader_election L41

HI @chen-keinan, updated the files.
Do you think we need to write some documentation for it, apart from the comments in the values.yaml?

HI @chen-keinan, updated the files.
Do you think we need to write some documentation for it, apart from the comments in the values.yaml?

Good point , I think it will be good to mention it in the Install docs

Ok will do!

@dirien did some more testing:

Update the copy template command in hack/update-static-yaml.sh to avoid creation of namespace twice

cat $CRD_DIR/*  $HELM_TMPDIR/trivy-operator/templates/* > $STATIC_DIR/trivy-operator.yaml

## if ns.yaml do not exist, cat namespace.yaml to trivy-operator.yaml (avoid duplicate namespace definition)
[ ! -f $HELM_TMPDIR/trivy-operator/templates/ns.yaml ] && cat $STATIC_DIR/namespace.yaml >> $STATIC_DIR/trivy-operator.yaml

Add trivy-operator labels to ns.yaml

Hi @chen-keinan,
thanks for the feedback! I added them to the PR!
I wrote also a chapter in the docs for the new feature and would be happy to read yours and @AnaisUrlichs feedback!

LGTM 🚀  thank you for these essential contribution.
Holding merge for @AnaisUrlichs to provide feedback on updated docs.

Hi @chen-keinan,
last feedback is in and I fixed the merge conflict. Ready when you are.


Need handle the situation that the first cert in returned cert chain is NOT root cert

Current spdm_verify_peer_cert_chain_buffer() assumes the first cert is root cert.

Also the responder has the freedom to supply either the root certificate or a certificate signed by the root. The specification requires that the responder store the "complete certificate chain" and that includes the root certificate, so, barring performance reasons, there is no good reason for the responder to not supply the root certificate.

See https://github.com/DMTF/Security-TF/issues/1432 for the corresponding issue on the SPDM whitepaper side.

Approved.


chartRangeMax cant be set

When setting chartRangeMax i get an error on line 1359 bwu_sparkline.dart.
clipMax = chartRangeMax == null ? double.INFINITY : chartRangeMax;
It seems clipmax is defined as a double, but chartRangeMax is an int.
I use this template:
<bwu-sparkline optionsMap="{{ {type: 'bar', chartRangeMax:100,barWidth:20,barSpacing:0, width: '20', height: '16', values: [100,30,40,50,30,50,30,40,50,30,50,30,40,50,30,50,30,40,50,30,50,30,40 ] } }}" options='{{inlinebarOptions}}' id="inlinebar"> </bwu-sparkline>

Trying with an input  value which is interpreted as a double:
<bwu-sparkline optionsMap="{{ {type: 'bar', chartRangeMax:100.1,barWidth:20,barSpacing:0, width: '20', height: '16', values: [100,30,40,50,30,50,30,40,50,30,50,30,40,50,30,50,30,40,50,30,50,30,40 ] } }}" options='{{inlinebarOptions}}' id="inlinebar"> </bwu-sparkline>

I get an error in options_extended.dart line 269
int get chartRangeMax => this[CHART_RANGE_MAX];
It is expecting an int.

Thanks for the report!

I published an updated version. Feel free to add other bug reports if you run into limitations.


Cloud provisioner API should allow users to pick a region and maybe size

Right now our API is
start(name)
stop(name)
I can imagine additionally the following:
getRegions() =returns=> {
id: "nyc3",
description: "New York City, NY, USA"
}
start(name, regionId)

Chatted with Ray, this should be a very quick fix, will pick it up so we knock out all cloud-related P1s.


Add a user agent

Hallo :wave:
I'm loving this project. While trying to set up some reddit feeds, I stumbled across a request limit very fast and it seems like adding a user agent is a good thing anyway.

@stchris !! Good to hear from you! And even better that the tiny app is helping you 😁
Couple of questions from my side:

Did you get around the request limits when adding the user agent? In either case I agree it makes sense to add it, just curious!

The test seems to be about unmarshaling the reddit feed, not related to the user agent correct? Again, just trying to make sure I understand - would gladly add the test!

Would gladly pull it in as is, the only tiny change I think I could recommend I added as a comment. What do you think? should I just merge the PR and move the line or do you feel like moving it? 😉

* Did you get around the request limits when adding the user agent? In either case I agree it makes sense to add it, just curious!

Yes, that helped. I suppose there are still some rate limits and there's no way you can use OAuth in an rss reader like they describe in https://github.com/reddit-archive/reddit/wiki/API.

* The test seems to be about unmarshaling the reddit feed, not related to the user agent correct? Again, just trying to make sure I understand - would gladly add the test!

Yes, the test seems out of context because I first suspected some parsing error so I started writing a basic test. I'm happy to split up the PR into multiple ones (or refactor the commits).

Would gladly pull it in as is, the only tiny change I think I could recommend I added as a comment. What do you think? should I just merge the PR and move the line or do you feel like moving it? wink

I like to move it, move it ...

Yes, that helped. I suppose there are still some rate limits and there's no way you can use OAuth in an rss reader like they describe in https://github.com/reddit-archive/reddit/wiki/API.

Agreed, OAuth is a bit out of scope at this point.

Yes, the test seems out of context because I first suspected some parsing error so I started writing a basic test. I'm happy to split up the PR into multiple ones (or refactor the commits).

Nah, I don't mind - if you feel like it, sure, but I'd pull the changes in as is as well 👍

I like to move it, move it ...


Add the option to show the profit/loss of High Alchemy on items

HA Profit/Loss
As an extension of the Item Prices plugin, you could show if alching an item is profitable.
The profit is calculated by subtracting the GE price of the item and a nature rune from the HA price.
It currently supports single items

and stacks.

It can be toggled off.

The plugin could also display an estimated profit per hour by alching that certain item.

Context on this: https://www.reddit.com/r/2007scape/comments/arvtct/i_edited_the_item_prices_plugin_in_runelite_to/

Duplicate of #1075


[SPIKE] Namespace /mobify

This is a POC of #1767
This PR shows how we can use the site alias defined in default.js as a namespace for the /mobify paths and for entries in local storage / cookie storage.
The document for this spike can be seen here: https://salesforce.quip.com/RaYKAunGpS3K
Testing this POC:

Check out the code base
Set an env variable called LOCAL_ENV_NAMESPACE to global
Start the app. See that /mobify paths are namespaced. ie. /global/mobify/...
Create a local.js config file and set the default site to RefArch
Set LOCAL_ENV_NAMESPACE to us
Restart the app. See that /mobify paths have a different namespace. ie. /us/mobify/...

#1824, which sets the stage for adding a namespace has been merged in


[Bug]: Search engine brings user to incorrect part of page

Where on segment.com/docs did you see this issue?
https://segment.com/docs/connections/destination-data-control/#export-your-source-schema
What browsers are you seeing the problem on?
Chrome
Please describe the issue.
Hi team! I noticed sometimes when I search for a general topic in the Segment docs, then click on it ("source schema" for example), it takes me to a very specific part of that page, when really it should probably take me to the top of the Using Schema Controls page.
For example, I searched for "source schema" (image below) trying to get to the top of the general page, but when I click on "Using Schema Controls", it takes me to the part of the page that says "Export your Source Schema", which isn't really related to what I was searching for. If I was a customer, it might be confusing?

Hi there! I found another page where the docs search brings me to the middle of the page instead of the top. When I search for "Eloqua", you can see the search result that pops up is the page call section of the documentation, but I'm expecting it to take me to the top of the page.

closing this, as it looks like both the Eloqua destination and the Source Schema page direct to the top of the page!


Use num validation rule to accept both int and float

Use in cases such as LensNA and FOVX

@elv-sb can you please tackle this one

Fixed in #99


brew link openjdk: Warning: Refusing to link macOS provided/shadowed software: openjdk

brew config output
HOMEBREW_VERSION: 3.0.4
ORIGIN: https://github.com/Homebrew/brew
HEAD: ee52b19179d056f3dd2fdf9c52214d3d51dbb9d9
Last commit: 3 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: a4cb2a1d655db92899bf4ceee5800e41c36fed4c
Core tap last commit: 46 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.JPvznkhiMg/org.macosforge.xquartz:0
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 12.0 build 1200
Git: 2.30.1 => /opt/homebrew/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 11.2.2-arm64
CLT: <IP_ADDRESS>.1.1610135815
Xcode: 12.4
XQuartz: 2.7.11 => /opt/X11
Rosetta 2: false
brew doctor output
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: Putting non-prefixed coreutils in your path can cause GMP builds to fail.
Warning: Putting non-prefixed findutils in your path can cause python builds to fail.

[] The brew doctor above contains no "Warning" lines.
(There are warning lines, but they shouldn't matter here.)

What were you trying to do (and why)?
I have openjdk@15 and openjdk@11 installed. It seems I already had openjdk@15 linked because when I ran java -version it told me it was 15. When I needed to switch to openjdk@11, I ran brew link openjdk@11 and it said it created a bunch of symlinks. I would have thought it would tell me that I need to overwrite links, but it never asked me that, it just went and created the openjdk@11 links. I ran hash -r to reload the bash cache paths to make openjdk@11 work otherwise despite the new links it still pointed to openjdk@15. With that out of the way, I wasn't able to ever re-link openjdk@15 when I was done with openjdk@11.
What happened (include all command output)?
milos@air:~$ brew link openjdk@15
Warning: Refusing to link macOS provided/shadowed software: openjdk

milos@air:~$ brew link openjdk
Warning: Refusing to link macOS provided/shadowed software: openjdk

What did you expect to happen?
Overwrite the openjdk@11 symlinks and java java -version should match expectations from openjdk@15.
Step-by-step reproduction instructions (by running brew commands)
milos@air:~$ brew install openjdk
==> Downloading https://homebrew.bintray.com/bottles/openjdk-15.0.2.arm64_big_sur.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/063189cdbad2c9ef5ab5e7dc34cea1d2fe68a5405b3728eb87765d6c1b9a3a64?response-content-disposition=attachment%3Bfilename%3D%22openjdk-15.0.2.arm64_big_sur.bottle.tar.gz%22&Policy=eyJTd
######################################################################## 100.0%
==> Pouring openjdk-15.0.2.arm64_big_sur.bottle.tar.gz
==> Caveats
For the system Java wrappers to find this JDK, symlink it with
  sudo ln -sfn /opt/homebrew/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk
This is a beta version of openjdk for Apple Silicon
(openjdk 16 preview).

openjdk is keg-only, which means it was not symlinked into /opt/homebrew,
because macOS provides similar software and installing this software in
parallel can cause all kinds of trouble.

If you need to have openjdk first in your PATH, run:
  echo 'export PATH="/opt/homebrew/opt/openjdk/bin:$PATH"' >> /Users/milos/.bash_profile

For compilers to find openjdk you may need to set:
  export CPPFLAGS="-I/opt/homebrew/opt/openjdk/include"

==> Summary
🍺  /opt/homebrew/Cellar/openjdk/15.0.2: 613 files, 305.5MB
Removing: /Users/milos/Library/Caches/Homebrew/openjdk--15.0.1.arm64_big_sur.bottle.1.tar.gz... (184.1MB)

milos@air:~$ java -version
openjdk version "16" 2021-03-16
OpenJDK Runtime Environment (build 16+14)
OpenJDK 64-Bit Server VM (build 16+14, mixed mode)

milos@air:~$ hash -r

milos@air:~$ java -version
openjdk version "16" 2021-03-16
OpenJDK Runtime Environment (build 16+14)
OpenJDK 64-Bit Server VM (build 16+14, mixed mode)

milos@air:~$ which java
/opt/homebrew/opt/openjdk/bin/java

milos@air:~$ brew install openjdk@11
==> Downloading https://homebrew.bintray.com/bottles/openjdk%4011-11.0.9.arm64_big_sur.bottle.tar.gz
Already downloaded<EMAIL_ADDRESS>==> Pouring<EMAIL_ADDRESS>Error: Failed applying an ad-hoc signature to<EMAIL_ADDRESS><EMAIL_ADDRESS>replacing existing signature
<EMAIL_ADDRESS>resource fork, Finder information, or similar detritus not allowed

==> Caveats
For the system Java wrappers to find this JDK, symlink it with
  sudo ln -sfn<EMAIL_ADDRESS>/Library/Java/JavaVirtualMachines/openjdk-11.jdk

openjdk@11 is keg-only, which means it was not symlinked into /opt/homebrew,
because this is an alternate version of another formula.

If you need to have openjdk@11 first in your PATH, run:
  echo 'export PATH="/opt/homebrew/opt/openjdk@11/bin:$PATH"' >> /Users/milos/.bash_profile

For compilers to find openjdk@11 you may need to set:
  export CPPFLAGS="-I/opt/homebrew/opt/openjdk@11/include"

==> Summary
🍺<EMAIL_ADDRESS>643 files, 272.4MB

milos@air:~$ java -version
openjdk version "16" 2021-03-16
OpenJDK Runtime Environment (build 16+14)
OpenJDK 64-Bit Server VM (build 16+14, mixed mode)

milos@air:~$ hash -r

milos@air:~$ java -version
openjdk version "16" 2021-03-16
OpenJDK Runtime Environment (build 16+14)
OpenJDK 64-Bit Server VM (build 16+14, mixed mode)

milos@air:~$ brew link openjdk@11
Linking<EMAIL_ADDRESS>40 symlinks created.

If you need to have this software first in your PATH instead consider running:
  echo 'export PATH="/opt/homebrew/opt/openjdk@11/bin:$PATH"' >> /Users/milos/.bash_profile

milos@air:~$ java -version
openjdk version "16" 2021-03-16
OpenJDK Runtime Environment (build 16+14)
OpenJDK 64-Bit Server VM (build 16+14, mixed mode)

milos@air:~$ hash -r

milos@air:~$ java -version
openjdk version "11.0.9" 2020-10-20
OpenJDK Runtime Environment (build 11.0.9+11)
OpenJDK 64-Bit Server VM (build 11.0.9+11, mixed mode)

milos@air:~$ brew link openjdk
Warning: Refusing to link macOS provided/shadowed software: openjdk
If you need to have openjdk first in your PATH, run:
  echo 'export PATH="/opt/homebrew/opt/openjdk/bin:$PATH"' >> /Users/milos/.bash_profile

For compilers to find openjdk you may need to set:
  export CPPFLAGS="-I/opt/homebrew/opt/openjdk/include"

It seems I already had openjdk@15 linked because when I ran java -version

No it was never linked. It looks like you just had /opt/homebrew/opt/openjdk/bin in your PATH.
brew unlink openjdk@11 will unlink OpenJDK 11.
I do understand the confusion from the difference of behaviour of blocking brew link though.

I'm confused, is this not a bug then, given it was closed? With Python I can do brew link --overwrite<EMAIL_ADDRESS>to make it my default and then brew link --overwrite python to go back to the latest. Why would I not be able to do this with openjdk?
Also a separate question, every time a newer version of Python is updated (e.g. 3.9) it re-links against that version so I have to overwrite again. Is there any better concept of "default" that doesn't constantly get reset with each upgrade of a newer version of that package?


Added support for Polymorphic Relationships to Hydrator

Please see the test for a small example.
Basically, it checks for the "type" key in the data-array and uses that value for the mapping. Nothing dramatically rewritten.

Looks good, but i'm missing MorphToMany


Version 9.4.0 is not compatible with Scala 3.2.2

When using version 9.4.0 in a Scala 3.2.2 project I get the following compile errors:
[error] 46 |  private val alg      = Seq(JwtAlgorithm.HS256)
[error]    |                             ^^^^^^^^^^^^^^^^^^
[error]    |              value HS256 is not a member of object pdi.jwt.JwtAlgorithm
[error] error while loading JwtAlgorithm$,
[error] class file pdi/jwt/JwtAlgorithm.class is broken, reading aborted with class dotty.tools.tasty.UnpickleException
[error] TASTy signature has wrong version.
[error]  expected: {majorVersion: 28, minorVersion: 2}
[error]  found   : {majorVersion: 28, minorVersion: 3}
[error]
[error] This TASTy file was produced by a more recent, forwards incompatible release.
[error] To read this TASTy file, please upgrade your tooling.
[error] The TASTy file was produced by Scala 3.3.0.

The exact same code compiles with Scala 3.3.0 which I currently cannot use for other reasons.
I solved my issue by downgrading to 9.3.0 which works fine with the same code in Scala 3.2.2.

Yes, this is because other libs we depend on have already bumped to 3.3.0.
The solution is to bump your app to Scala 3.3.0, which can be done easily and without risk.

I am using a combination of the sbt-native package and zio-json which fails on 3.3.0.
It is not that easy.

Guess I should consider switching to a Java library instead rather than risk unsupported version incompatibilities in the future when sticking with jwt-scala.

OK, good to hear you were able to solve your issue!


Deprecation of the iBus client code.

As we announced before, the ibus client is now maintenance mode.  We had not
actively committed for the ibus client.  To focus our limited resources on our
core technology and clarify our decision, we will remove the code of ibus from
our repository by the end of August 2015 at the latest.

Of course, any code of ibus is still available from the previous versions of
our repository.   Anyone can fork the ibus client project too.

Thank you very much for your help and feedback to ibus-mozc so far.

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 13 Apr 2015 at 5:57

Blocking: #42, #201, #207, #243

Due to other schedule conflicts, the actual date of ibus removal from Mozc repository is likely to be delayed.  The ETA is by the end of this year but is still subject to change.  Note that nothing has changed in the circumstances that led us to decide to deprecate ibus-mozc.


Upload Failed on MI Phones

Hi,
I tried this plugin but this always show "Upload failed" in Mi Phone please see the attached screenshot

Please submit reproducible steps & detail logs using adb logcat.


Edit: Design login and signup page

Fixes #49 Editing done for login and signup page now button also navigate to login and signup page accordingly!
@skmirajulislam  Please review my PR and merge accordingly with the label....according to your requirement its working fine now:)
Test video:
https://github.com/user-attachments/assets/ddcaa692-ce5f-46e5-a6a3-6b2314fadb01

Ok, I'll try to resolve
@skmirajulislam

package-lock.json package.json When we are downloading dependency of this project then version occur different.

project is already updated twice current version is 2.1 check #74 guidelines.

Hi @harshbhar0629,
Thank you for your contribution! Unfortunately, someone has already submitted a PR that addresses the issue before your branch conflict was resolved. As a result, I will be closing this PR.
Please feel free to contribute to other functionalities in the project. If you have any questions or need assistance, don’t hesitate to ask.


When you add a new shortcut, previous last one doesn't get its arrows updated

Hi, when you add a new shortcut to a group, the previous last one should have both arrows enabled because it's not the new last one item, but it doesn't happen that:

As you can see, last one and previous last one can't be moved below.

Fixed in https://github.com/PikeNote/taskbar-groups-pike-beta/commit/d4d92154af04d07659799e5299df39f1d2df7474
I changed some logic of how controls are added. In the past, for some reason, controls were added to the front rather than the end, which caused the UI controls for showing the shortcuts differing from the shortcut list stored in code. I have tested creating groups, editing them, and moving items around, and it seems alright atm. If you'd like to build and test the latest to ensure that, please do.

Yes, this is fixed and also the perfomance is much better when moving the places, nice!


chore: cache mvn build directories

Faster builds in Travis

Coverage remained the same at 90.909% when pulling 7b63e2eec0c22c070f278e4d88a791bf080be720 on gastaldi:patch-1 into 34d97514f07e031ca5623b9efa78ba3cc46c8781 on jhalterman:master.


Verification of Vyper contracts

Currently we support only verification of Solidity smart-contracts, while Blockscout also supports verification of Vyper contracts.
That issue keeps track of current status of Vyper contracts verificaiton in smart-contract-verifier service.

[x] Implement download of Vyper compilers
[x] Compilation of Vyper contracts
[x] Verification of Vyper contracts
[x] Add HTTP endpoints to handle list_versions and verify requests

Seems that we could just reuse current fetchers to download Vyper compielers. See #68

Compilation and HTTP endpoints added in #99

Verification added in #112


class model

Thanks for sharing the code. But in the code, the class model does not update their parameters. Is there a mistake?

Thanks for your attention! I hope this late response is still helpful to you.
The aim of the class model is to translate the segmentation probability to a lower dimension. Therefore the class vector can filter the patient-specific structure and keep more general class information. It does not require updating its parameters.


add codecov

trying to exclude generated code from code coverage report (eg *.pb.go) since these file affects the the total code coverage percentage significantly

Codecov Report
Patch coverage has no change and project coverage change: -0.02 :warning:

Comparison is base (371fd97) 46.55% compared to head (ec2d83e) 46.53%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2210      +/-   ##
==========================================
- Coverage   46.55%   46.53%   -0.02%
==========================================
  Files         224      224
  Lines       33245    33245
==========================================
- Hits        15478    15472       -6
- Misses      16544    16547       +3
- Partials     1223     1226       +3

Flag
Coverage Δ

armada-server
46.53% <ø> (-0.02%)
:arrow_down:

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

Impacted Files
Coverage Δ

internal/common/pgkeyvalue/pgkeyvalue.go
75.28% <0.00%> (-3.38%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

problem explained here #2211

I was finding this PR to say I think w/e we did worked.
I enabled CodeCov app and I notice more things happening.  I also saw this:

Great! I closed it because it is so messy and I thought I should submit another PR when the App is enabled

I believe currently we want to ignore *.pb.go and .sql.go files, something else ?

*_moq.go files are one I can think of.


REGR: UserDefined classifier returns ValueError("Minimum and maximum of input data are equal, cannot create bins.")

We have a regression in 2.4.0. This commit https://github.com/pysal/mapclassify/commit/7aad6fca0521cc29c64d43a1618dabd16a1ea965 introduced the following check:
https://github.com/pysal/mapclassify/blob/b92a7e3951c2adb4d25872704a096c20c8d78e44/mapclassify/classifiers.py#L632-L633
However, that is irrelevant if you use UserDefined classifier. momepy's CI got red with 2.4.0. I define bins using the whole array and then using the same in subsets of data to get counts per bin, therefore it is perfectly fine that min == max.
Would not be better to fall back to k=1 and raise a warning instead of an error in general? You may have discussed that before though... (cc @jeffcsauer)
We should ideally fix this and do 2.4.1 bugfix release before we'll do meta release.

@martinfleis ah gotcha, your use case makes sense and I can understand why this solution wouldn't hold! Commit 7aad6fc was meant to directly fix this error during the sprint. I used ValueError as the user had mentioned it in the post, but I agree with you, warning would be better.
So perhaps something like:
if min(self.y) == max(self.y):
     k=1
     warnings.warn("Minimum and maximum of input data are equal, please ensure that bins are appropriate.")

Not sure what the best message would say.
Feel free to overwrite/reverse my commit, otherwise I'm happy to make another.


Typo: getAmountOfDateEditors should be getAmountOfDataEditors

As written above. Thanks for your tool!

Fixed in 1.0.3! Thanks for the report!


Uploads stalling

Helping a colleague use SUMSarizer. Uploads of many files (165, ~2 MB) are stalling. Splitting the files into separate archives of ~50 files / 200 - 900KB each works fine. Left one 2MB file overnight, to make sure it wasn't my impatience. Chrome / OS X.

Looks like it was nginx rejecting anything bigger than 2MB. Increased this limit and tested it.
Also added a tip to the upload section in case others end up exceeding the new limit (50MB)


[Bug] in 0.15.0 I cant focus layout-item with inputs/textareas. In 0.14.7 this works.

Upgraded to 0.15.0 and I can't focus inputs or textareas inside a layout-item. What happens is it focuses it for like 0.1s and then its unfocused.

Likely related to https://github.com/mzabriskie/react-draggable/pull/261

I fix this with custom draggable handlers

@11111000000 Could you please provide more info on your solution?

@11111000000 Same here, could you provide some more info?

Still not working in 0.16.0. Has anyone already found/ made a fix for it?
When clicking on a label of the corresponding input the focus does stay.

I think what @11111000000 was getting at is https://github.com/STRML/react-grid-layout#grid-layout-props "draggableHandle" prop. If you create a more focused draggable area, it doesn't seem to mess with other input elements. My guess is that when the entire area is draggable, the browser can't differentiate between mouse, focus, and drag events. If we make a specific area draggable, then the input is able to function as normal. I think this might still be a bug, but for now the only way seems to be to make a cutom draggableHandle away from any input fields.

Hey guys ,
I had the same problem and I fixed it by using the draggableCancel prop, which accepts a CSS selector.
So if you would like textarea and input fields to act as expected when nested in draggable objects, you would use something like this:
<ReactGridLayout
                                 onLayoutChange={ this.onLayoutChange }
                                 width={ 1920 }
                                 cols={ 4 }
                                 draggableCancel="input,textarea"
                                 margin={ [0, 0] }
                                 rowHeight={ 270 }
                                 isResizable={ false }
                                 useCSSTransforms={ true }>

draggableCancel works perfectly but having lost some hours on this kind of issue (i thought the problem was in how i handled onLayoutChange) i'm wondering why @idanbeker solution isn't the default ?
I mean, shouldn't we expect basic inputs to gain focus when clicked in a draggable area ? Is there a case where we want to drag when clicking an input ? Seems weird to me


太难用了，已更新就死机

Issue template:

Please make sure that the issue subject starts with <package-name>:
Issues related to end of life (EOL) releases are not supported or maintained and will be closed
Remove lines from top till here and fill in the following questions

Steps to reproduce:
Example: Replace the following lines and remove this

go to: Network → Interfaces → LAN (an interface with a static address) → DHCP server tab → IPv6 RA settings tab
set RA MTU and RA Hop Limit to arbitrary non-default value
Save & Apply
go to: IPv6 RA settings tab again

Actual behavior:
Example: Replace the following lines and remove this

option ra_mtu '1500' is set correctly in /etc/config/dhcp
In LuCI though, RA MTU and RA Hop Limit are still displaying the default values in light gray font color.

Expected behavior:
Example: Replace the following lines and remove this
RA MTU and RA Hop Limit are displaying the correct values found in /etc/config/dhcp in black font color.

Additional Information:
OpenWrt version information from system /etc/openwrt_release
Example: Replace the following lines and remove this
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='21.02.0-rc4'
DISTRIB_REVISION='r16256-2d5ee43dc6'
DISTRIB_TARGET='x86/64'
DISTRIB_ARCH='x86_64'
DISTRIB_DESCRIPTION='OpenWrt 21.02.0-rc4 r16256-2d5ee43dc6'
DISTRIB_TAINTS=''

Duplicate of #5565


Dynamic Models for Petergate

Allows an app to use a model other than User for Petergate. For example, instead of generating Devise with User, you are now able to see any class in its place.

@elorest any ideas on how to make the generators work dynamically?


Too many listeners

When sending a transaction, I get an error:
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.

It's coming from the Filter subprovider onFilterChange _ready.on method.  That _ready object needs its listener max raised, or has a memory leak.

Trying to watch contract events causes the same warning:

(node:6485) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 unlock listeners added. Use emitter.setMaxListeners() to increase limit

const Web3 = require('web3');
const ProviderEngine = require('web3-provider-engine/index.js');
const ZeroClientProvider = require('web3-provider-engine/zero.js');

const engine = ZeroClientProvider({
  getAccounts: function(){},
  rpcUrl: 'https://ropsten.infura.io/jD3JIY48JscUvTqJVMF',
})
const web3 = new Web3(engine);

const contractAddress = '0xc740ab099da657612143c34c5f7593a3af5ee6e8';
const contractAbi = [{"constant":false,"inputs":[{"name":"x","type":"uint256"}],"name":"emit","outputs":[],"payable":false,"type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"x","type":"uint256"}],"name":"myEvent","type":"event"}];
const contract = web3.eth.contract(contractAbi).at(contractAddress);

//THIS CAUSES THE WARNING
const event = contract.myEvent({x: null})
event.watch(function(error, result){
  console.log(error, result.args.x.toNumber());
});
//THIS CAUSES THE WARNING

Adding this line to the top of server.js makes the error not show up again:
require('events').EventEmitter.prototype._maxListeners = 100;

Increasing the limit doesn't help.
Still get the same error: MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 101 unlock listeners added. Use emitter.setMaxListeners() to increase limit

I've been inclined to think this is just a warning, because we use a very event-emitter heavy design pattern.  Do you think it's a real memory leak? Have you tried looking in the memory inspector? (Just asking, otherwise we'll just have to follow up & investigate).

After this warning shows up the application is no longer receives events from the network.

Chrome (and I think Chromium) has a great memory inspector built in.  Once you've pulled up the console with the warning, go to the Timeline tab, check the memory box, and record while you reproduce the warning, and then maybe stop watching the event.
If the memory goes up but doesn't go down, it's a leak.

After this warning shows up the application no longer receives events from the network(not sure)

I wish you were sure ;)
If this really is breaking the connection, you should have a message in your main page console like "MetaMask Inpage Provider lost connection".  Are you seeing that?
Anyways, if it seems to really be breaking the connection, that's a much bigger deal than I thought it was.  I thought it was just a warning.
Will try to put some time on this soon.

@flyswatter, thank you for the quick introduction into the browser memory inspection. I should have been clear that I'm using this code in the backend. I have never run this code in the browser.  My NodeJS server uses it to listen to contract events. Anyway, I will post something more conclusive here when I get enough information.

I'm having this issue all of a sudden as well.  Breaks everything.  I'll investigate more later, but closing chrome and my test rpc doesn't solve the issue.  It makes me a sad panda.  This was working 20 minutes ago.  I've been testing and calling the filter function a bunch, but now it seems to have a bunch of open connections stored somewhere.

I too suddenly started having this issue about 5-6 hours ago.  If I load my site with metamask disabled, no errors, but when MetaMask is enabled I get the "11 listeners error".  It seems to be affecting my site being able to grab the new web3.eth.accounts[0] object when accounts are switched.

To address this bug, we've done a hotfix rollback to 3.10.0, you should see the previous behavior resume soon, and we'll fix this again soon.

i'm having this same error this morning with no code changes

What version are you on? Should be fixed again with 3.10.2.

i'm not sure, after pulling out my hair a minute i just uninstalled and reinstalled and the issue is fixed

Thanks for the quick fix!

Oh hey, sorry for missing this thread when updating https://github.com/MetaMask/metamask-extension/issues/2122
If you were affected by this issue, we have a partial fix, but we're looking for people who still have issues.  If you're a developer, and had this issue, it would help us if you could manually install this build and if you have issues, give us reproduction steps:
metamask-chrome-3.10.3-pre2.zip

I don't seem to have this issue in the browser, but I do get the warning in Node.js.
MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 unlock listeners added. Use emitter.setMaxListeners() to increase limit
    at _addListener (events.js:262:19)
    at Stoplight.addListener (events.js:279:10)
    at Stoplight.once (events.js:308:8)
    at Stoplight.await (/.../node_modules/web3-provider-engine/util/stoplight.js:30:10)
    at FilterSubprovider.handleRequest (/.../node_modules/web3-provider-engine/subproviders/filters.js:69:24)
    at next (/.../node_modules/web3-provider-engine/index.js:112:18)
    at Web3ProviderEngine._handleAsync (/.../node_modules/web3-provider-engine/index.js:99:3)
    at /.../node_modules/async/internal/map.js:27:9
    at eachOfArrayLike (/.../node_modules/async/eachOf.js:65:9)
    at exports.default (/.../node_modules/async/eachOf.js:9:5)
    at _asyncMap (/.../node_modules/async/internal/map.js:25:5)

I'm using 0x on the server side and using the web3 provider engine to listen to certain 0x log events (fill, cancel, error). I've added the filter and RPC subproviders. The RPC subprovider is connected to Infura.

@riteable did you sort it out? We're getting the same warning in Node. We're also connecting to Infura (via truffle-hdwallet-provider) and using a filter to watch events.


Implement /anchors Page

What would you like to be added:
/src/pages/anchors/index.tsx

/area anchors
/assign @siradji

/assign @siradji you can draft it first with fake data, the implementation should be quite simple

@jtlntno-cake , is the design ready for anchor page?

@siradji please see design here

Is this ready to be implemented?

Is this ready to be implemented?

Not yet. Still waiting for pagination feature to be added to listanchors RPC. I believe @surangap will work on that.


Adding /project/:id/data_sources/:id/search endpoint

@spolu I added the 128 upper limit for top_k, so I need your approval again 🙏

:ship:


Detect non-window element resize

@bvaughn can this feature be minor?

Codecov Report

Merging #918 into master will increase coverage by 0.04%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #918      +/-   ##
==========================================
+ Coverage    89.9%   89.95%   +0.04%
==========================================
  Files          57       57
  Lines        1615     1622       +7
==========================================
+ Hits         1452     1459       +7
  Misses        163      163

Impacted Files
Coverage Δ

source/WindowScroller/WindowScroller.js
87.93% <100%> (+1.65%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d17af85...8584c45. Read the comment docs.

We can use now or in the future https://github.com/que-etc/resize-observer-polyfill. It's quite nice and have types. However not sure its strategy it is also efficient as current implementation.

Yeah. I make mention of maybe using that in the next major release in the
umbrella notes issue. Need to think about it more before deciding for
certain.
On Tue, Dec 26, 2017 at 9:51 PM Bogdan Chadkin<EMAIL_ADDRESS>wrote:

We can use now or in the future
https://github.com/que-etc/resize-observer-polyfill
http://resize-observer-polyfill. It's quite nice and have types.
However not sure its strategy it is also efficient as current
implementation.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/bvaughn/react-virtualized/pull/918#issuecomment-354056938,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABzncbcxQN32_p2Ea1H8lT8MI3dYYdLks5tEdrZgaJpZM4RM9Pq
.


Maya: Allow instances to have the same cbId attribute

Changelog Description
Allow instanced nodes to have the same cbId attribute.
Additional info
This should fix #3991
Testing notes:

Publish a model with instanced nodes.

I've opened this as a draft because I haven't tested it on my end - there's likely typos. Anyway, I've written logic that I believe should do what came up in #3991:

Allow instanced nodes in model sharing the same cbId nodes.
Disallow multiple members that themselves instanced nodes but not of the same instance - so disallow "unique" members where unique is not the same instance.
Log a warning when multiple nodes of the same instance are in the export

Currently it has a allow_instances class attribute which is currently unused - this could however be exposed in settings to maybe enable/disable it per project or even per family if needed? For now I've just enabled the allow instances to be able to test the logic.

Did tested in maya 2023 on model instance publish
When creating multiple instances (dish models in my case) it gives me following errors:

I was not sure if I can make instance from the geometry without cbID so I have made it in 2 steps first publish with the single geometry (which didnt exist before in the model asset ) and later did create those other geometries as instance and tried to publish the model asset.
Will also do test do it in 1 step right away (new geometry added and create instances of it and then publish the model asset)

also gives me weird  Shader Connections error even its not related in model instance??

Thanks, will look into it once I have some more time.

Small note/thought ...could be valid also for Texture Reference objects basically they can/should share cbId too and not causing any issue in OP. It would fix the problems when publish look and Yeti rig families too

Small note/thought ...could be valid also for Texture Reference objects basically they can/should share cbId too and not causing any issue in OP.

A texture reference object technically is just a separate mesh - I'm a bit hesitant about 'ignoring' that case explicitly. But thanks for noting it. Just for future reference - the Texture Reference object use-case came from the comment here

What is the status on this? Ready for review?

But when using model.abc representation all instances being discreet shapes not instances anymore.
Do we prefer this? I guess Alembic supports instances right? Not sure what this could cause, allowing Instancing when using Almebic representation tho.
However this could be super handy in production....being able to use maya instances without problems lessening data/file sizes overhaul significantly!

The .abc file does contain the meshes as instances (the .abc file will be much smaller) but unfortunately the Maya Alembic importer does not preserve the instance upon loading. As such, yes - on load these are not instances anymore in Maya. If you load the alembic into an Arnold Proxy however it will correctly load the meshes as instances at rendertime. So there are benefits to it, but not when loading/importing alembics as geo into Maya.
You should be able to reproduce this behavior when generating Alembics manually too.

Wow, thx for explanation! Makes sense! So is this PR ready?! or still Draft?
I guess can be merged or?

It's one that I think works ok, but there's so many unknown factors afterwards with looks and other publishing that I wonder whether it's worth it.
E.g. referencing the alembic natively back into Maya turns it into non-instances again making it still disallowed to have the same cbId if used in a rig or used in a pointcache down the line. Yes, it'd work for the model itself but I have a feeling it doesn't really hold up well through the pipeline (in Maya that is; renderers and Houdini will be much more capable however).
I've been tinkering whether it's worth the effort or not. Especially given also the confusion it gave e.g. @LiborBatek as he tested it. Others will likely hit the same issues.

I've been tinkering whether it's worth the effort or not. Especially given also the confusion it gave e.g. @LiborBatek as he tested it. Others will likely hit the same issues.

Ok, will await your decision. Close or make the PR ready for review to continue.

@BigRoy did you get a chance to have a think about this PR?

@LiborBatek reported a bug to me on Discord about MGear rigs not publishing as intended with tons of errors on Missing node ids or Non-unique asset ids on nodes.
After some debugging I noticed that MGear rigs use instanced curve shapes for controls - e.g. for "controlBuffer" controls. For example see:
print(cmds.ls("arm_L0_upv_ctlShape"))
# ['arm_L0_upv_ctl_controlBuffer|arm_L0_upv_ctlShape']
print(cmds.ls("arm_L0_upv_ctlShape", allPaths=True))
# ['arm_L0_upv_ctl_controlBuffer|arm_L0_upv_ctlShape', 'arm_L0_upv_ctl|arm_L0_upv_ctlShape']

To avoid those particular bugs it's very likely we'll still need to start implementing this PR. @LiborBatek can you confirm whether you particular issue does work with this branch.

Take this branch
Open the problematic rig.
Save the scene (to allow it to generate the missing ids)
Publish rig

Some debug scripts for particular use case:
# Regenerate any existing cbId
# (e.g. if you have a scene from somewhere else that has cbIds referring to asset ids not existing in your database)
from maya import cmds
import openpype.hosts.maya.api.lib as lib

nodes = cmds.ls("*.cbId", objectsOnly=True)
for node, id in lib.generate_ids(nodes):
    lib.set_id(node, id, overwrite=True)

# Print nodes with missing cbId attributes
# This should print any (non-referenced) nodes without `cbId` attribute that are expected to have one
for node in lib.get_id_required_nodes():
    if cmds.attributeQuery("cbId", node=node, exists=True):
        continue

    print(node)

this particular PR helped me sort out issue with asset containing a lot of same cbIDs and succesfully publishes now...this not being possible in latest develop (OP 3.16.5.x)
Would be great to sort this PR out!

@BigRoy  speaking of possible issues....u mentioned possible future problems when publishing rigs. Could u elaborate more on that? In my case it was namely rig controls having the same cbIDs not geometry for actual pointcaches aka animation. Any possible issues still? thx

@BigRoy - We've tested it and I think that the code looks good. Is there anything you would like to add? Because I think it is ready to merge.

@BigRoy  I am willing to undergo full circle of tests so we can find any possible negatives of this PR before merged (if someday).
Could you help me with that by making a testing list for possible issues? Im mostly thinking about Look Assigner etc. Maybe preparing assets containing instances and checking if anything broken then.

@BigRoy you happy with this PR atm?
We'll do a round of testing when its marked ready to review by you, then hopefully a merge soon.

I've marked this ready for review. We currently have no short-term need for this but I'm still quite wary about the potential new bugs this PR might allow where certain meshes may pass through unexpectedly.
If you all would love to do some good testing:

rigging with instances? (Or instanced control shapes like the mGear rig does)
alembics with instances and publishing those again maybe
lookdev done on published model with instances

Feel free to pick up any code changes that might be required.

When publishing a look with model instances, the Look members unique and Non Duplicate Instance Members plugins errors.

There's two things to keep in mind here:

Did you load the alembic or a maya ascii reference? If it's the Alembic, note that the loaded meshes are now not instances anymore. Alembic does not load/import to maya native geometry back as instances - it's a limitation of the Alembic plug-in. (It will be instances in Houdini however or when used in rendering in e.g. an Arnold Standin)
Look members requiring to be unique for this case I think makes sense with how the system works.  Look shader assignment is collected and re-assigned via the cbId attribute. This cbId attribute will not be unique per instance (since they share the exact same node and it's not a 'per-instance unique attribute' like e.g. the worldMatrix attribute is. As such, two instances will always have the same cbId value (they share it). This basically means they cannot have a unique shader assigned. (Technically we could implement the check so that if two shapes are instances that we will allow it but only if they share the exact same shader assignment.

Did you load the alembic or a maya ascii reference? If it's the Alembic, note that the loaded meshes are now not instances anymore. Alembic does not load/import to maya native geometry back as instances - it's a limitation of the Alembic plug-in. (It will be instances in Houdini however or when used in rendering in e.g. an Arnold Standin)

Yeah, it was alembic. Tried with ma reference now as well.

Look members requiring to be unique for this case I think makes sense with how the current look publishing system works. Look shader assignment is collected and re-assigned via the cbId attribute. This cbId attribute will not be unique per instance (since they share the exact same node and it's not a 'per-instance unique attribute' like e.g. the worldMatrix attribute is. As such, two instances will always have the same cbId value (they share it). This basically means they cannot have a unique shader assigned. (Technically we could implement the check so that if two shapes are instances that we will allow it but only if they share the exact same shader assignment.) A workaround that will already work for this is to not put the full top group in the look objectSet but instead the unique objects (excluding the duplicate entries for instances). It will end up assigning then for all instances just fine (since they have the same id). That is, if the look assigning code works with instances.

Yeah, it does make sense that same cbid on the shape node would receive the same look assignment. But would it make sense from a workflow perspective to allow assign unique materials per instance? Could see having the same model but variants in texture/material, would help a lot.
This could be possible if we consider the transform cbid as well when assigning looks.

@BigRoy I'm unsure about what needs to happen when you bring in instances to lookdev since the non-unique asset ids plugin errors?
Should we allow or disallow this? Should

@tokejepsen @BigRoy we were also question ourselves with @antirotor and came to a conclusion there should not be any issue with that so I would say to allow it ? or?

...lets wait for a decision made by @antirotor before any action happens then

If I understand it correctly, we can allow it and clearly state the fact in documentation, that they will recieve the same look. And then we'll need to work on enhancing look system as we've already started a long time ago? :)

Because we're splitting OpenPype into ayon-core and individual host addons, this PR would have to be re-created to target one of those.
We're closing it down, but we'll he happy for a new PR to ynput/ayon-core or the host addon repository once it's up.


⚠ File access has degraded performance

In 3a1f2aa, File access (https://fyle.uk/file/fish) experienced degraded performance:

HTTP code: 200
Response time: 3271 ms

Resolved: File access performance has improved in 79f57c7 after 11 minutes.


feat: always use grpc-js on Node.js 11+

With Node.js 11 (non-LTS) arriving, we'd like to start testing the JS implementation of gRPC client, just for apps running on v11.

After discussion, I think we figured out this was a bad idea :)


fix: make all content-api endpoints public by default

This auth: false; config will completely neglect any permission checks in the router controller. Granting access to populate any relations. Probably not the best thing to do. Closing.


Fix get_field_type & generalize extract_id_class

Return outer_type_ instead of type_ from get_field_type for pydantic v1
Generalize extract_id_class to support arbitrary generic types

The combination of these two changes allow using a custom generic type for id.

Hi! Thank you for the PR. I think it works in 1.21. Could you please check?

It doesn't, 1.21 was my starting point.
MCVE:
import beanie
from motor.motor_asyncio import AsyncIOMotorClient

class MyDocument(beanie.Document):
    id: int | None = None
    title: str

async def test_optional_id():
    client = AsyncIOMotorClient()
    await beanie.init_beanie(document_models=[MyDocument], database=client["test"])

    m = MyDocument(title="foo")
    assert m.id is None

    m.id = 42
    await m.insert()
    await client.drop_database("test")

Output:
E           ValueError: Unknown annotation: int | None

Thank you! Merged


Update submodules for PR #7107

Change Description
Because of merge conflicts, a secondary PR is being made to add the fixes for C++ 17 in the submodules fc and wabt respectively.

Consensus Changes

[ ] Consensus Changes

API Changes

[ ] API Changes

Documentation Additions

[ ] Documentation Additions

These changes need to be merged to master of the respective submodules


Interpreter not selectable

Hi,
It looks like, I configured correctly your tool in PHPStorm:

I don't know if there is a workaround to make it work with the local config

as phpstorm tries to find the project folder in the container.

I don't think this is possible to register this tool as an external interpreter.


Investigate _id vs id

Beanie defaults to "_id"; in the past we converted to "id"
We need to do some research on which on we use
Beanie has a way to overwrite to "id" but it conflicts with Pydantic models.
Pros:

id looks more conventional

Cons

_id is the out of box setting

Do we need a task to replace all "id" to "_id" in the frontend? @lmarini
Originally posted by @longshuicy in https://github.com/clowder-framework/clowder2/pull/424#discussion_r1176653958

Relevant info https://github.com/roman-right/beanie/issues/144


Add persistent undo to Emacs with undo-tree-auto-save-history

https://www.emacswiki.org/emacs/UndoTree

Closing this, as I can't be bothered tinkering with the Emacs stuff at this point.


Read env variables in pytest

Consider the environment variables that are used in the Makefile as variables in the test for the image.
DOCKER_REGISTRY and DOCKER_TAG are the interesting ones.

Fixed by #58?


[Live component] data-model triggers 'Invalid model name' error when array key does not exists

Hello,
I have a collection form, and I am using the data-model attribute for saving the input value.
It's an array because the form can contain multiple rows.
#[LiveProp(writable: true)]
public array $travelDistances = [];

The input field has the data-model attribute with the array key.
 {{ form_row(itemForm.travelDistance, { 'attr' : {'data-model' : 'travelDistances.'~(loop.index-1), 'data-action' : 'live#action', 'data-live-action-param': 'calcDistanceTravelCosts'} }) }}

After changing the input value, I see this javascript error in the console:
Error: Invalid model name "travelDistances.0".
The error is triggerd because the array is initialised empty. When I initialise the array the issue is solved. Its fine as temporary fix, but I dont think this a correct long term solution.
#[LiveProp(writable: true)]
public array $travelDistances = [0 = ""];

Maybe it something to do with this merge:  https://github.com/symfony/ux/pull/1216/files ?

Pure curiosity, do you mound the travelDistances into the LiveComponent ?
Also (if not done already), you may need to install phpdocumentor (cf: https://symfony.com/bundles/ux-live-component/current/index.html#liveprop-for-entities-more-complex-data)
Unrelated question, maybe naive as i don't know the rest of your component: do you need both data-model and the live action ? The data-model would already trigger a re-render once the prop is updated.
You may look at this recent PR and see if that solves your problem (if you're using the latest version of Live Component)
If not, maybe you can create a small reproducer ?

Pure curiosity, do you mound the travelDistances into the LiveComponent ?

No, I did not. You have pointed me in the right direction. I've added a PostMount hook which loops the collection rows and initialize the array foreach index key with empty value. This fixes my issue.
Thank you!


Full GC occured Frequently in production environment

server details:
-Xms10g -Xmx10g -Xmn8g -Xss1024K
java version "1.8.0_66"
sharding version:

io.shardingsphere
sharding-core
3.1.0

    <dependency>
        <groupId>io.shardingsphere</groupId>
        <artifactId>sharding-jdbc-core</artifactId>
        <version>3.1.0</version>
    </dependency>

    <dependency>
        <groupId>io.shardingsphere</groupId>
        <artifactId>sharding-jdbc-spring-namespace</artifactId>
        <version>3.1.0</version>
    </dependency>

    <dependency>
        <groupId>io.shardingsphere</groupId>
        <artifactId>sharding-jdbc-orchestration-spring-namespace</artifactId>
        <version>3.1.0</version>
    </dependency>

database info：
db0: order0 ~ order255
db1: order256 ~ order 512
after I restart the application server， and got some client request. the server`s mem will not enough,and it will be occured Full gc frequently .such as:
S0     S1     E      O      M     CCS    YGC     YGCT    FGC    FGCT     GCT
0.00   0.00 100.00  66.72  98.49  97.35     15   12.833    12   90.565  103.398
0.00   0.00 100.00  66.72  98.49  97.35     15   12.833    12   90.565  103.398
0.00   0.00 100.00  66.72  98.49  97.35     15   12.833    12   90.565  103.398
0.00   0.00 100.00  66.72  98.49  97.35     15   12.833    12   90.565  103.398
0.00   0.00 100.00  67.12  98.50  97.35     16   12.833    14  102.344  115.178
0.00   0.00 100.00  67.12  98.50  97.35     16   12.833    14  102.344  115.178
0.00   0.00 100.00  67.12  98.50  97.35     16   12.833    14  102.344  115.178
0.00   0.00 100.00  67.12  98.50  97.35     16   12.833    14  102.344  115.178
0.00   0.00 100.00  67.12  98.50  97.35     16   12.833    14  102.344  115.178
then i dump the memory info and analyse it by MAT, it shows there are 12048024  io.shardingsphere.core.routing.type.TableUnit in the mem,and it occupy much mem.
I want to know what cause this full gc where process client request,Please give me a hand!!
thanks...

What is your SQL, sharding rule configuration and log of sql.show?

This problem makes me very  confused. After I restart the application server, The first few requests may cause this problem(full gc ),after which the request will be normal，and the memory normal.
My  SQL, sharding rule configuration as follows：

and my sql is :
select
o.id id, o.source_order_code source_order_code, o.user_id user_id, o.source_order_type source_order_type,  o.price price,o.created_at created_at, o.modified_at modified_at, o.mer_id mer_id, o.pay_id pay_id,o.extension1 extension1,o.extension2 extension2,
b.status status,b.begin_at begin_at, b.end_at end_at, b.amount amount, b.amount_left amount_left, b.product_code product_code, b.categorys categorys, b.citys citys, b.owner_id owner_id,b.is_city is_city,b.is_cate is_cate,b.priority priority
from order o
inner join balance b
on o.id = b.order_id
where o.user_id = ?
and b.user_id = ?
and b.user_type = ?
and o.user_type = ?
and b.product_code= ?
and b.status = ?
and b.is_city = ?
and    b.begin_at < unix_timestamp(current_timestamp(3))*1000
and    b.end_at > unix_timestamp(current_timestamp(3))*1000
and    b.amount_left > 0
To solve this problem, what should I do now?

What is the table configuration for balance?

You can see  the table configuration for balance  from the picture above

During my testing today,I found some userId have no sharding-rule.

This userId<PHONE_NUMBER>5194  query all table order and balance, It seems that the sharding rule does not work. So, When is the sharding  rule not working?

It is not good for screenshot for coding, it is hard to search or try to reproduce

the main configuration as follows:

<sharding:data-source id="shardingDataSource">
    <sharding:sharding-rule
            data-source-names="resourceWriteDataSource_0,resourceWriteDataSource_1,resourceReadDataSource_0,resourceReadDataSource_1">
        <sharding:master-slave-rules>
            <sharding:master-slave-rule id="masterSlaveDataSource_0"
                                        master-data-source-name="resourceWriteDataSource_0"
                                        slave-data-source-names="resourceReadDataSource_0"
                                        strategy-ref="randomStrategy"/>
            <sharding:master-slave-rule id="masterSlaveDataSource_1"
                                        master-data-source-name="resourceWriteDataSource_1"
                                        slave-data-source-names="resourceReadDataSource_1"
                                        strategy-ref="randomStrategy"/>
        </sharding:master-slave-rules>
        <sharding:table-rules>
            <sharding:table-rule logic-table="order"
                                 actual-data-nodes="masterSlaveDataSource_0.order_$->{0..255},masterSlaveDataSource_1.order_$->{256..511}"
                                 database-strategy-ref="databaseShardingStrategy"
                                 table-strategy-ref="tableShardingStrategy" generate-key-column-name="id"/>
            <sharding:table-rule logic-table="product"
                                 actual-data-nodes="masterSlaveDataSource_0.product_$->{0..255},masterSlaveDataSource_1.product_$->{256..511}"
                                 database-strategy-ref="databaseShardingStrategy"
                                 table-strategy-ref="tableShardingStrategy" generate-key-column-name="id"/>
            <sharding:table-rule logic-table="balance"
                                 actual-data-nodes="masterSlaveDataSource_0.balance_$->{0..255},masterSlaveDataSource_1.balance_$->{256..511}"
                                 database-strategy-ref="databaseShardingStrategy"
                                 table-strategy-ref="tableShardingStrategy" generate-key-column-name="id"/>
            <sharding:table-rule logic-table="consume"
                                 actual-data-nodes="masterSlaveDataSource_0.consume_$->{0..255},masterSlaveDataSource_1.consume_$->{256..511}"
                                 database-strategy-ref="databaseShardingStrategy"
                                 table-strategy-ref="tableShardingStrategy" generate-key-column-name="id"/>

            <sharding:table-rule logic-table="package_order"
                                 actual-data-nodes="masterSlaveDataSource_0.package_order_$->{0..255},masterSlaveDataSource_1.package_order_$->{256..511}"
                                 database-strategy-ref="databaseShardingStrategy"
                                 table-strategy-ref="tableShardingStrategy" generate-key-column-name="id"/>

            <sharding:table-rule logic-table="allocation"
                                 database-strategy-ref="databaseShardingStrategy"
                                 actual-data-nodes="masterSlaveDataSource_$->{0..1}.allocation"/>

            <sharding:table-rule logic-table="payment"
                                 database-strategy-ref="databaseShardingStrategy"
                                 actual-data-nodes="masterSlaveDataSource_$->{0..1}.payment"/>

            <sharding:table-rule logic-table="biz_consume_process_buffer"
                                 database-strategy-ref="databaseShardingStrategy"
                                 actual-data-nodes="masterSlaveDataSource_$->{0..1}.biz_consume_process_buffer"/>
        </sharding:table-rules>

        <sharding:binding-table-rules>
            <sharding:binding-table-rule logic-tables="order, product" />
            <sharding:binding-table-rule logic-tables="order, product, balance" />
            <sharding:binding-table-rule logic-tables="order, balance" />
        </sharding:binding-table-rules>

        <!--<sharding:broadcast-table-rules>-->
            <!--<sharding:broadcast-table-rule table="masterSlaveDataSource_0.balance_${0..255},masterSlaveDataSource_1.balance_${256..511}"/>-->
            <!--<!–<sharding:broadcast-table-rule table="balance_${256..511}"/>–>-->
        <!--</sharding:broadcast-table-rules>-->

    </sharding:sharding-rule>
    <sharding:props>
        <prop key="sql.show">${sql.show}</prop>
        <prop key="check.table.metadata.enabled">false</prop>
    </sharding:props>
</sharding:data-source>

The query sql as follows:
select
o.id id, o.source_order_code source_order_code, o.user_id user_id, o.source_order_type source_order_type,  o.price price,o.created_at created_at, o.modified_at modified_at, o.mer_id mer_id, o.pay_id pay_id,o.extension1 extension1,o.extension2 extension2,
b.status status,b.begin_at begin_at, b.end_at end_at, b.amount amount, b.amount_left amount_left, b.product_code product_code, b.categorys categorys, b.citys citys, b.owner_id owner_id,b.is_city is_city,b.is_cate is_cate,b.priority priority
from order o
inner join balance b
on o.id = b.order_id
where o.user_id = ?
and b.user_id = ?
and b.user_type = ?
and o.user_type = ?
and b.product_code= ?
and b.status = ?
and b.is_city = ?
and    b.begin_at < unix_timestamp(current_timestamp(3))*1000
and    b.end_at > unix_timestamp(current_timestamp(3))*1000
and    b.amount_left > 0

This problem is very makes me confused。
There are a total of 100 test userId. When I used 10 thread test, the sharding rule not working on abount 5 userId, so they Full table sweep. The results of each test are different, There are always some userId does not go the sharding rule.If I test a few more times(or the server has been running for a while ), this problem will not exist.

And I have your QQ number, may I  communicate with it. So I can give you more infomation.

Hi, are u here ?
I continued the test this days and I should have found what case the problem.
The class io.shardingsphere.core.routing.type.standard.StandardRoutingEngine, I added some log printing to the method routeByShardingConditions.

In some case ,  shardingConditions.getShardingConditions().isEmpty()=true.

The  Collection will contains all 512 order tabls and all 512 balance tabls in this situation.
And in some case,shardingConditions.getShardingConditions().isEmpty()=false.

The  Collection will contains the order table and balance table sharding by userId  in this situation.

So, does the   shardingConditions.getShardingConditions().isEmpty()   is not thread safety?
In which case it return TRUE ?
What can I do to avoid this Full GC problem?

This problem bothers me really for a long time. Can you give me some suggestion?

@terrymanu  @dongzl
Can  you give me some advice to help me solve this problem?

Hi @lcx1989210 ,
First your version is 3.1.0, it is older version, you can try 4.0.0-RC2 version and found the same problem or not.
Second I found you define the databaseShardingStrategy and tableShardingStrategy yourself,
can you provide their code?
Finally, can you provide a test project for this problem, we can reproduce it.

First, may I use the version  4.0.0-RC2  in my production environment? Is it a stable version?

You can see these code logic at io.shardingsphere.core.routing.type.standard.StandardRoutingEngine.
In my test, I found that shardingConditions.getShardingConditions().isEmpty() return a TRUE value in the method routeByShardingConditions(final TableRule tableRule),and the code will  get the method route(final TableRule tableRule, final List databaseShardingValues, final List tableShardingValues) . I found databaseShardingValues.isEmpty() will  return a TRUE value in the method   routeDataSources(final TableRule tableRule, final List databaseShardingValues). So that it can not call my sharding rule like databaseShardingStrategy and tableShardingStrategy.
I will give you a test case later.

Hi, @dongzl,  Please give me a hand.
The class io.shardingsphere.core.parsing.antlr.AntlrParsingEngine and method parse().

I met a problem，Some column have no tableName after the method  Collection sqlSegments = extractorEngine.extract(ast); .In which case ,the column have no tableName,
The code logic of  code block  is a little more complicated, I can't understand it。

The query sql as follows:
select
o.id id, o.source_order_code source_order_code, o.user_id user_id, o.source_order_type source_order_type, o.price price,o.created_at created_at, o.modified_at modified_at, o.mer_id mer_id, o.pay_id pay_id,o.extension1 extension1,o.extension2 extension2,
b.status status,b.begin_at begin_at, b.end_at end_at, b.amount amount, b.amount_left amount_left, b.product_code product_code, b.categorys categorys, b.citys citys, b.owner_id owner_id,b.is_city is_city,b.is_cate is_cate,b.priority priority
from order o
inner join balance b
on o.id = b.order_id
where o.user_id = ?
and b.user_id = ?
and b.user_type = ?
and o.user_type = ?
and b.product_code= ?
and b.status = ?
and b.is_city = ?
and b.begin_at < unix_timestamp(current_timestamp(3))*1000
and b.end_at > unix_timestamp(current_timestamp(3))*1000
and b.amount_left > 0

Hi, there are lots of information, I cannot get the point.
Maybe we can start to discuss at describe the gc or unexpected behaviour, we can analyze code later.
Your question is Why sometimes SQL execute into all tables without sharding route, right?

Yes. The main question is Why sometimes SQL execute into all tables without sharding route?
The above information is my analysis.
I found When the return value have no tableNmae in the method Collection sqlSegments = extractorEngine.extract(ast) ,then it will query  without sharding route.
Does the  method Collection sqlSegments = extractorEngine.extract(ast) use asyn when the server application just restart?

Can you provide the log of sql.show?

Closed because no response for long time.


Remove Simd.js code from ChakraCore - Part 1 (ifdef out)

simd.js is no longer planned for in its current form. V8 has already removed it and ChakraCore should also remove it.
Since some code of simd.js can be reused for WASM simd. In first part of change try to ifdef out simd.js specific code to not build and then in second part remove code which is not needed for WASM simd.

@Krovatkin I have ifdef'd out most of library and runtime code abd32f52.
Are the following used in WASM simd?
liveSimd128*Syms
simd128*SymsOnEntry
likelySimd128*SymsUsedBeforeDefined
forceSimd*F4SymsOnEntry
argOutSimd*Syms
liveSimd128*Syms
Simd*
Simd*
Simd*

@agarwal-sandeep The last 3 are definitely used.
It is a little bit less clear-cut w/ the remaining ones. While there's no type specialization in asm.js/wasm, CSE seems to rely on liveXXXSyms bit vectors (see GlobOpt::NewIntConstantValue) and if we are planning on enabling CSE & const folding for SIMD types, we might need these vectors. Also, the bailout infrastructure uses liveSimd128XXX vectors, so if we enable bailouts for asm.js/wasm, again, we might need these vectors.
I was wondering if it makes sense to hold off for a little bit on ripping out/if 0 simd.js code until the spec stabilizes and Chakra team decides on which optimizations it would like to enable for WASM? Otherwise, there's a chance we might need to put this code back in later on :-)
Can we get @LouisLaf 's opinion on the matter?

Thanks @Krovatkin. In this part of the change I am not removing any code just putting everything under #ifdef ENABLE_SIMDJS which by default is not defined. We have another issue #3274 opened to remove all simdjs related code which is not used for WASM simd after we have it ready. For now I will go ahead and ifdef out except the last 3.

#3296 got merged


[automated release]

🤖 automated PR, merge to trigger release

Accidental PR when the pipelines were setup


Flushing issue on small block ranges

When trying to run the sink on small block ranges, presumably smaller than the default flush intervals, the sink doesn't appear to flush any data to the database.
To reproduce:

Create a ClickHouse database with the following schema.sql

CREATE TABLE IF NOT EXISTS cursors
(
    id        String,
    cursor    String,
    block_num Int64,
    block_id  String
)
    ENGINE = ReplacingMergeTree()
        PRIMARY KEY (id)
        ORDER BY (id);

CREATE TABLE IF NOT EXISTS contract_creation
(
    block_hash              String,
    block_number            UInt64,
    block_timestamp_seconds UInt64,
    contract_address        String,
    creation_bytecode       String,
    creator_address         String,
    creator_tx              String
)
    ENGINE = ReplacingMergeTree()
        PRIMARY KEY (block_hash, contract_address)
        ORDER BY (block_hash, contract_address);

Run the sink with the default parameters on a small block range (e.g. 13042456:13042458)

sink-sql run clickhouse://<user>:<password>@<node-url>:9000/<database> https://github.com/pinax-network/subgraph-contract-creation/releases/download/v0.1.1/evm-contract-creation-tracker-v0.1.1.spkg 13042456:13042458 -e <ethereum-endpoint> --undo-buffer-size 1 --plaintext

See that no data has been flushed to the DB, no messages mentioning flushing with TRACE=true.

If you run it on a bigger range (i.e. bigger than the flush interval), you should see those messages appear:
{"severity":"DEBUG","timestamp":"2024-10-29T15:06:02.486524953Z","logger":"sink-sql","message":"flushing to database","block":"#13041000 (fe1e4293ad23436efad71f00827b7eba2e7d342176546cb99e7686b0de10e9b4)","is_live":false,"block_flush_interval_reached":true,"row_flush_interval_reached":false,"logging.googleapis.com/labels":{}}
{"severity":"DEBUG","timestamp":"2024-10-29T15:06:02.495166368Z","logger":"sink-sql","message":"flushing table entries","table_name":"contract_creation","entry_count":93,"logging.googleapis.com/labels":{}}

this is fixed in #25


Sharing is Caring Power App Sample - Calendar Comp

Category

[x] New Sample

What's in this Pull Request?
Power Apps Calendar Component

Looks good @PopWarner .  Thanks for your contribution!!


auth.create_session_cookie throws exception when expires_in argument is provided

Please help with this issue.
auth.create_session_cookie(custom_token, expires_in) TypeError: create_session_cookie() takes 1 positional argument but 2 were given. Below is my code
custom_token = flask.request.headers.get('Authorization')
expires_in = datetime.timedelta(days=5)
print(expires_in) # 5 days, 0:00:00
session_cookie = auth.create_session_cookie(custom_token, expires_in)
File "/layers/google.python.pip/pip/lib/python3.7/site-packages/flask/app.py", line 2447, in wsgi_app response = self.full_dispatch_request() File "/layers/google.python.pip/pip/lib/python3.7/site-packages/flask/app.py", line 1953, in full_dispatch_request return self.finalize_request(rv) File "/layers/google.python.pip/pip/lib/python3.7/site-packages/flask/app.py", line 1970, in finalize_request response = self.process_response(response) File "/layers/google.python.pip/pip/lib/python3.7/site-packages/flask/app.py", line 2267, in process_response response = handler(response) File

Closing this due to lack of information.


[objc] Fix generated indexed subscripting spacing

From:
- (void)setObject:(id)obj atIndexedSubscript: (int)idx;
To:
- (void)setObject:(id)obj atIndexedSubscript:(int)idx;

Build and tests passed.


[0.18-rc] Error when trying to debug an app in real device (iPhone): RCTNetworking.sendRequest() not found

My internal IP is <IP_ADDRESS>, packager is running at port 8081.
I'm using "react-native": "^0.18.0-rc". My project is generated via cli generator react-native init using same version.
I can load app on real device - it's working just fine. I can assess to bundle from iPhone using Safari.
But debugging is not working... Here follows info:
I've changed a line within AppDelegate.m:
jsCodeLocation = [NSURL URLWithString:@"http://<IP_ADDRESS>:8081/index.ios.bundle?platform=ios&dev=true"];

as well as within RCTWebSocketExecutor.m:
- (void)setUp
{
  if (!_url) {
    NSUserDefaults *standardDefaults = [NSUserDefaults standardUserDefaults];
    NSInteger port = [standardDefaults integerForKey:@"websocket-executor-port"] ?: 8081;
    NSString *URLString = [NSString stringWithFormat:@"http://<IP_ADDRESS>:%zd/debugger-proxy", port];
    _url = [RCTConvert NSURL:URLString];
  }

If I shake the device and turn on Debug in Chrome, I will get following error:
2016-01-19 19:43:05.830 [error][tid:com.facebook.React.RCTExceptionsManagerQueue] Unhandled JS Exception: Callback with id 2: RCTSourceCode.getScriptText() not found
2016-01-19 19:43:05.845 [error][tid:com.facebook.React.RCTExceptionsManagerQueue] Unhandled JS Exception: Callback with id 5: RCTNetworking.sendRequest() not found
2016-01-19 19:43:05.879 [error][tid:com.facebook.React.RCTExceptionsManagerQueue] Unhandled JS Exception: Callback with id 2: RCTSourceCode.getScriptText() not found
2016-01-19 19:43:05.886 [error][tid:com.facebook.React.RCTExceptionsManagerQueue] Unhandled JS Exception: Callback with id 5: RCTNetworking.sendRequest() not found

Same message appears on the iPhone's screen:
RCTNetworking.sendRequest() not found

I've updated RN to 0.18.0, then updated sources with react-native update.  After that, debugging in Chrome on real iPhone is working nicely.
So, it's just needed to update RN to 0.18.0. Issue is resolved for me now.


Need to revisit Dockerfile with new CLI options.

Right now I expect it to be broken and also --dev mode is not what you would want to run in a production.

Having an official rethinkdb/horizon docker image would be 👌.
I 💖 @janders223 idea of creating a Dockerfile and docker-compose.yml on init. It would make onboarding devs onto a horizon project super simple, especially for people without too much background in node.

Hey all, I just PR'd #603, would love for you all to take a look!

@dalanmiller was this fixed by #603?


[Feature Request] Arrow Storage Format

Feature request
Overview
Hi there!
Though the Delta Format spec mentions a number of formats for the underlying files, it seems that only Parquet is the way to go for now. I think that's probably meaningful most of the time, however I think the following two formats might be something to consider:

Apache Arrow : Thought significantly larger, it allows to be used by using Memory-Map which would greatly reduce memory allocation for some scenarios (local files). Normally storage is a lot cheaper than RAM & CPU
Avro: I'm not sure about this one but I think it might has advantages for large dimension tables because it's row oriented. Correct me if I'm wrong , I have an old-school SQL Background ;)

Willingness to contribute
I'm currently out of time but that might change. Also I don't speak Rust fluently yet :)
Closing words
I really appreciate that awesome work on the Delta Format that's being done and I just tried to write down what I think could be great. If it's not meaningful, feel free to close this issue

Just seen https://github.com/delta-io/delta/issues/87 , seems to be the place to discuss

Arrow isn't designed to be an on disc format.
Closing this so we can keep #87 the reference for supporting new storage formats. Feel free to repost your thoughts there.