Where to get VO for externals?

Hi,
From https://github.com/Dimbreath/StarRailData we can get ExcelOutput/VoiceConfig.json where will be names for externals in VoicePath key like
  "103040552": {
    "VoiceID": 103040552,
    "VoicePath": "chapter3_3_firefly_253"
  },

But it doesn't match with any External hash so how do you get VO file? Maybe you need to prepend some value to this?

something like https://gist.github.com/undefined9071/90cd0f6ede44affd2978ef5947b5e14a

Awesome that works, basically we just need to prepend $LANG/voice/ and append .wem.
I did it with this oneliner
$ jq -r 'values[].VoicePath' ExcelOutput/VoiceConfig.json | sort -u | sed 's|^|English/voice/|' | sed 's|$|.wem|'

^ that matched ~25.5k out of ~30k so now I understand this :)
Thanks!


Security Issue with Refresh Token

There is an issue with the refresh token using JDBCTokenStore (Not sure if it exists in other store types)
spring-security-oauth2  2.3.5 RELEASE
When I have the grant_type as refresh_token, for the first request everything works fine. But from the next refresh token request it throws invalid refresh token error.
In my analysis found that, during refresh_token request, the data in oauth_refresh_token table is not getting replaced. So it creates a mismatch between oauth_access_token.refresh_token and oauth_refresh_token.token_id
Also, when I try refresh_token request with the first created refresh token it is still responding with new access token each time which is a serious security threat
Due to this multiple access token are generated in oauth_access_token table for the same username and sometimes it throws Exception due to multiple records.
Can someone update me on this ?

@agokulravikumar thank you for raising your concerns.
Will you please do one of two things so we can address them efficiently:

If you believe this to be a genuine security issue, please report it to https://pivotal.io/security instead of posting a GitHub ticket
If you believe that it is simply a bug, please file it with https://github.com/spring-projects/spring-security-oauth instead. It can be a bit confusing, but this project (spring-security-oauth2-boot) is for Boot autoconfiguration of spring-security-oauth.

I'll close this ticket, but please feel free to reach out if you have any other questions that aren't answered on https://pivotal.io/security.


Fix for an unexpected behavior when selecting

The method RecyclerView#getAdapterPosition() returns NO_POSITION until the next layout pass when RecyclerView.Adapter#notifyDataSetChanged() has been called.
The code on //Drag selection logic was assuming that the value of itemPosition woud be -2 or the index of the pressed item, but if notifyDataSetChanged() had been called, it was passing the conditional with the value NO_POSITION for itemPosition, and therefore selecting the whole range from -1 to the pressed item.
This was causing the next behavior in some situations.

The code to replicate the error can be found on 36e2910ca9e3152e37c1e0be363ad75f34b1a76f.

@afollestad please apply that solution from @Carlosph. I do have exactly the same issue in my project. So, that fix will be very helpful for us. thanks in advance!

@afollestad it seems you did not release 0.4.0 version, right? based on jCenter


🐛 [Bug] Fallback doesn't support model.half() models

Bug Description
/*
The following test is ambigious and somehow works in TRT 8.2, which might have a bug.
This FP16 model has inputs and weights configured to be FP16 but the builder precision
is set to FP32. So during shape analysis, when the Pyt/TRT segments (are run as pytorch
modules), the inputs of each segments are configured to be FP16 but after TRT conversion
and inference, TRT segments generate float outputs which become float inputs to following
segments. Hence type check fails during runtime at
https://github.com/pytorch/TensorRT/blob/master/core/runtime/execute_engine.cpp#L91
TO DO: Resolve type system check in partitioning
*/
TEST(Partitioning, ComputeResNet50HalfFallbackGraphCorrectly) {
  torch::jit::script::Module mod;
  try {
    mod = torch::jit::load("tests/modules/resnet50_traced.jit.pt");
  } catch (const c10::Error& e) {
    std::cerr << "error loading the model\n";
    return;
  }

  mod.to(torch::kHalf);

  const std::vector<std::vector<int64_t>> input_shapes = {{1, 3, 224, 224}};
  std::vector<torch::jit::IValue> jit_inputs_ivalues;
  std::vector<torch::jit::IValue> trt_inputs_ivalues;
  for (auto in_shape : input_shapes) {
    auto in = at::randint(5, in_shape, {at::kCUDA}).to(torch::kHalf);
    jit_inputs_ivalues.push_back(in.clone());
    trt_inputs_ivalues.push_back(in.clone());
  }

  auto in_shape = torch_tensorrt::core::ir::Input({1, 3, 224, 224});
  in_shape.dtype = nvinfer1::DataType::kHALF;

  std::vector<torch_tensorrt::core::ir::Input> input_ranges({in_shape});
  auto g = mod.get_method("forward").graph();
  torch_tensorrt::core::CompileSpec cfg(input_ranges);
  cfg.partition_info.enabled = true;
  cfg.partition_info.forced_fallback_operators.push_back("aten::add");

  auto jit_results = mod.forward(jit_inputs_ivalues).toTensor();
  auto trt_mod = torch_tensorrt::core::CompileGraph(mod, cfg);
  auto trt_results = trt_mod.forward(trt_inputs_ivalues).toTensor();
  // Lower threshold because FP16
  ASSERT_TRUE(torch_tensorrt::tests::util::almostEqual(jit_results, trt_results, 2e-1));
}

Expected behavior

Environment

Build information about Torch-TensorRT can be found by turning on debug messages

Torch-TensorRT Version (e.g. 1.0.0):
PyTorch Version (e.g. 1.0):
CPU Architecture:
OS (e.g., Linux):
How you installed PyTorch (conda, pip, libtorch, source):
Build command you used (if compiling from source):
Are you using local sources or building from archives:
Python version:
CUDA version:
GPU models and configuration:
Any other relevant information:

Additional context

Related to FP16 + fallback.


Ability to add headers to source ( better integration with Jina AI)

Is your feature request related to a problem? Please describe.
We can assign a url to the source. It would be nice if we could also pass in an headers such as API key to use our jina ai credits.
Describe the solution you'd like
Perhaps a source_config param?
    smart_scraper_graph = SmartScraperGraph(
        prompt="Find the yelp link, name, website, number of average yelp reviews , summary of yelp_reviews, specialties, phone,  and their website",
        source=f"https://s.jina.ai/{url_encoded_query}",
        source_config= {
            headers: {
                "Authorization": f"Bearer {JINA_API_KEY}"
            }
        },
        config=graph_config,
        schema = Contractor
    )

Describe alternatives you've considered
n/a

Why you want embeddings? I never noticed about that and as I can see from the website Juba is used for embeddings

Why you want embeddings? I never noticed about that and as I can see from the website Juba is used for embeddings

Less so about embeddings - moreso of the fact that they offer free / low-cost web search and LLM friendly site data.
https://jina.ai/reader/


Out of date instructions

After adding a new Form Page to a Marketing Form, there is no longer the option to edit that "Form Page" - The entity "Form Page" is different than a Marketing Page. This should be fixed because it breaks the overall idea of this tutorial.

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

ID: c07047da-94d1-c3ab-b96a-4447314b9e4a
Version Independent ID: aeb13e00-28fc-59e1-0008-1a950c523704
Content: Extend Marketing forms using code(Dynamics 365 for Marketing Developer Guide)
Content Source: ce/marketing/developer/marketing-form-client-side-extensibility.md
Service: dynamics-365-marketing
Technology: marketing
GitHub Login: @Nkrb
Microsoft Alias: nabuthuk

@cadmicro Thanks for the feedback. We have updated the docs and pushed to live. Closing the issue.


Convert tests to ztest and other cleanup work

Codecov Report

Merging #6252 into master will increase coverage by 0.07%.
The diff coverage is 96.36%.

@@            Coverage Diff             @@
##           master    #6252      +/-   ##
==========================================
+ Coverage   53.11%   53.19%   +0.07%
==========================================
  Files         414      414
  Lines       40260    40196      -64
  Branches     7759     7737      -22
==========================================
- Hits        21385    21383       -2
+ Misses      15708    15668      -40
+ Partials     3167     3145      -22

Impacted Files
Coverage Δ

tests/kernel/workq/work_queue/src/main.c
99.37% <100%> (+5.77%)
:arrow_up:

tests/kernel/mem_pool/mem_pool/src/main.c
81.44% <92%> (ø)

samples/philosophers/src/main.c
96.87% <0%> (-1.57%)
:arrow_down:

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 3b2434f...6845047. Read the comment docs.


feat: [BD-46] implement new pagination component

Added reduced and minimal variants per the design spec
Added dark palette option
Changed exist default variant styles
Updated Pagination component in DataTable footer

JIRA Pagination: https://openedx.atlassian.net/browse/PAR-371
JIRA Pagination in datatable: https://openedx.atlassian.net/browse/PAR-643

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


⚠ SceneTime has degraded performance

In a951789, SceneTime ($ST) experienced degraded performance:

HTTP code: 200
Response time: 22435 ms

Resolved: SceneTime performance has improved in 817d0e3 after 5 minutes.


ci(deps): update terraform-ibm-modules/common-pipeline-assets action to v1.3.2

This PR contains the following updates:

Package
Type
Update
Change

terraform-ibm-modules/common-pipeline-assets
action
patch
v1.3.1 -> v1.3.2

Release Notes

terraform-ibm-modules/common-pipeline-assets
v1.3.2
Compare Source
Bug Fixes

deps: update icr.io/goldeneye_images/goldeneye-ci-image digest (#54) (387dc19)

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by Renovate Bot.

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

GitHub release
v1.3.1

Your semantic-release bot :package::rocket:


As a manager, I want to know the current total volume of PDS holdings

Motivation
...so that I can complete the quarterly report per NASA HQ request
Additional Details

Please prove any additional details or information that could help provide some context for the user story.

Acceptance Criteria
Given
When I perform
Then I expect

Completed -


Spark: Make Delta dataset symlink consistent with non-Delta tables

Problem
Currently DeltaHandler has its own logic for generating Dataset symlink, and it does this by stripping the last component from table location. There are 2 issues with that:

Table metadata can be stored in the metastore, like Hive, but symlink does not reflect that.
Table could have custom location, which may produce symlink which has no meaning.

Solution
Reuse existing logic from PathUtils.fromCatalogTable.
One-line summary:
Make dataset symlinks for Delta and non-Delta tables consistent.
Checklist

[X] You've signed-off your work
[X] Your pull request title follows our guidelines
[X] Your changes are accompanied by tests (if relevant)
[X] Your change contains a small diff and is self-contained
[ ] You've updated any relevant documentation (if relevant)
[ ] Your comment includes a one-liner for the changelog about the specific purpose of the change (not required for changes to tests, docs, or CI config)
[ ] You've versioned the core OpenLineage model or facets according to SchemaVer (if relevant)
[ ] You've added a header to source files (if relevant)

SPDX-License-Identifier: Apache-2.0
Copyright 2018-2024 contributors to the OpenLineage project

The only piece of code left which generates symlink namespace by stripping up last part of table's location is AbstractDatabricksHandler. It just copies the previous implementation of DeltaHandler, but I have no Databricks account to check whether the same change could be applied here as well.

The only piece of code left which generates symlink namespace by stripping up last part of table's location is AbstractDatabricksHandler. It just copies the previous implementation of DeltaHandler, but I have no Databricks account to check whether the same change could be applied here as well.

In case you wanted to verify behaviour for Databricks, there is a databricks integration test: https://github.com/OpenLineage/OpenLineage/blob/aa6ba51c5019609b6db160eac1986b0607219232/integration/spark/app/src/test/java/io/openlineage/spark/agent/DatabricksIntegrationTest.java#L44
It can be run from circle ci when extra parameter databricks-test=enabled is added. I can start it when needed. I don' think it's convenient for development purpose but should be sufficient to guarantee the change did not break anything.

It can be run from circle ci when extra parameter databricks-test=enabled is added. I can start it when needed. I don' think it's convenient for development purpose but should be sufficient to guarantee the change did not break anything.

I currently don't have information about the result type of com.databricks.sql.transaction.tahoe.catalog.DeltaCatalog.loadTable(identifier) call. For open source Delta at least I have sources to get possible types, and I can extract catalogTable object from its attributes. For Databricks I don't have any information about that.


https://data8.berkeley.edu/ returns a 403 error

I'm following the directions for connector instructors for creating a new jupyter notebook and the url
https://data8.berkeley.edu/ returns a 403 error page.

I believe this might be a problem with adding new users to the new data8 vs. the old ds8. What's your berkeley.edu address and I'll try to add you

Everyone was running into this earlier today; we think we've fixed it. @pattyf can you confirm that you can log in?

If it was a 4xx error there's a chance it was still just a missing username, no? The server problem was a 5xx error

Ah, you're right. I just added you to the system @pattyf . Sorry 'bout that.

Yes, I can see it. Thanks much.


net: pkt: context: Respect reserved bytes

When operating on a net_pkt using the curser functionality, reserved
bytes (headroom) must be respected.
This commit achieves this by updating the size member of the
net_buf_simple structure when reserving (and pushing) bytes.
While this solution changes the semantic of the size member, it requires
a low amount of code changes in addition to allowing the pattern of
writing (up to) size bytes starting at the data pointer to work properly
even in the presence of reserved bytes.
Signed-off-by: Reto Schneider<EMAIL_ADDRESS>

I need to look more carefully at this. Meanwhile, please split the net_buf changes into a separate commit with a net: buf: ... prefix. The net_buf semantics and API terminology has been created by using Linux sk_buff as reference - I think we should keep the same semantics in order not to confuse people. The net_buf API is not a 1:1 mapping to sk_buff, so I'll need to check if this is true for the parts that this PR affects.

Just reworked the PR.
I guess all of this boils down to two questions:

Is it desirable to use the net_pkt cursor as done in the first commit? (I think so)
Is the solution proposed in the 2nd commit the right/best one? (Unsure about this)

In order to (safely) append data to a net_buf object, the user must query net_buf_headroom() to ensure enough space is left.

@rettichschnidi I don't understand this comment. To check if there's space to append data you only need to query net_buf_tailroom()

@rettichschnidi I get the feeling that the background of this PR is the fact that you've been using buf->size as a primary API, when it was mainly designed to be useful only for net_buf internal purposes. From the net_buf API user perspective the net_buf_headroom() and net_buf_tailroom() are the primary methods that are expected to be used in order to determine if there's space to append or prepend more data to the buffer.

@rettichschnidi I don't understand this comment. To check if there's space to append data you only need to query net_buf_tailroom()

My comment is misleading. I will clarify this with an updated comment.

@rettichschnidi I get the feeling that the background of this PR is the fact that you've been using buf->size as a primary API, when it was mainly designed to be useful only for net_buf internal purposes. From the net_buf API user perspective the net_buf_headroom() and net_buf_tailroom() are the primary methods that are expected to be used in order to determine if there's space to append or prepend more data to the buffer.

Yes, the problem stems from the (ab)use of buf->size. However, it is not (just) me, but also existing code in the Zephyr code base, like the code implementing the net_pkt_cursor manipulations.
I will come up with an updated proposal which does not not change the (the semantic of the) size member of net_buf, but using it properly instead.

I am unsure why buildkite fails - neither scripts/twister --inline-logs -N -v --integration --retry-failed 3 -T tests/kernel/lifo/lifo_usage/ nor scripts/twister --inline-logs -N -v --integration --retry-failed 3 -T samples/kernel/condition_variables/condvar/ errors on my own machine.

I am unsure why buildkite fails - neither scripts/twister --inline-logs -N -v --integration --retry-failed 3 -T tests/kernel/lifo/lifo_usage/ nor scripts/twister --inline-logs -N -v --integration --retry-failed 3 -T samples/kernel/condition_variables/condvar/ errors on my own machine.

There seems to be some unrelated issues in the kernel side and some tests are indeed failing. Dunno what is wrong there.
But there is one net_pkt failure here
/workdir/zephyr/subsys/net/ip/net_pkt.c: In function 'net_pkt_print_frags':
/workdir/zephyr/subsys/net/ip/net_pkt.c:347:45: error: 'buf' undeclared (first use in this function)
  347 |     count, frag, frag->len, net_buf_max_len(buf),
      |                                             ^~~


add environment variable DOCKER_PORT to customize docker daemon port

add environment variable DOCKER_PORT to customize docker daemon port

Thanks for the PR, @TrumanLing!
There's been a bunch of talk in other issues and PRs about allowing customization of the engine port (though I can't find any specific issues right now).
While this would be useful, the change needs to be for more than just the openstack driver ;)
Also, we need to expose this as a command line flag - something like --engine-port. Another thing to keep in mind would be the Swarm port, and how to customize that. There's talk about that in #1334.

Thanks @TrumanLing As @hairyhenderson said we want to do this for all of machine.  I'm going to add this to the 0.5 release.

I'm going to close this in favor of #1334 which would cover this case.  Thanks for the contribution and please see that issue for progress.


Use Sentry 3.0

And update deps

Coverage remained the same at 97.691% when pulling 8a8879059a75cbf1d7df8b5c32955afe5a988015 on sentry-3.0 into af31c69cd92b9f2e1bb35c3489f28363afe7f810 on master.


Alternatives to sleep() in deploy script

The deploy script currently uses sleep to wait for certain HTML elements to be rendered on the page. This is bad for a variety of reasons, and needs to be changed.
There's likely a way to tell webdriver to specifically wait until a certain element is visible (with a 10 second or so timeout)

Deploy script was retired


One Lighthouse, One Main Client- CGNAT, One Laptop and Relay

Please forgive me as I have myself so confused over NAT and Relays. I have researched and read too much about Clients not seeing each other and have read the several posts herein on relays that I am assuming are supposed to allow another client/peer/nebula device/laptop etc, to see the client behind NAT that cannot have a UDP port forward assigned in one's router. All nebula executables are on the 1.6.0 release.
My simple setup #1, which by the way works amazingly well, is one lighthouse on a public IP, with 4242 UDP forwarded to my rPi lighthouse with unsafe_route for its LAN IP range.
Next I have one client also available on a public dynamic IP, (more persistent) with DDNS. I have again port forwarded 4242 to the rPi nebula Client and unsafe_routes for the LAN the nebula is on. Again works well and this would be my experimental setup. With proper routing in my firewall router, any device on any LAN can see any device on any LAN. The rPi Nebulas are about 200 miles apart.
Lighthouse Nebula IP <IP_ADDRESS> - LAN IP <IP_ADDRESS>
Nebula Client IP <IP_ADDRESS> - LAN IP <IP_ADDRESS>
Adding a second client, i.e. a laptop (with port forwarding enabled on the Main client), the laptop can see any machine on either LAN/location. No issues. Turn port forwarding off, then of course you lose the client. So a relay?
My simple setup #2 , which also works amazingly well is identical to #1, EXCEPT the rPi Nebula Client sits on a LAN serviced by StarLink satellite internet. Some kind of CGNAT, triple NATed.. who knows.  No port forwarding available at all for the client node. But it works great and any device on any LAN can see any device on any LAN. The problem here is a third client, such as a mobile laptop, would never be able to 'see' the StarLink LAN since it is impossible to port forward anything. Again, hoping a relay might do the trick.
Lighthouse Nebula IP <IP_ADDRESS> - LAN IP <IP_ADDRESS>
Nebula Client IP <IP_ADDRESS> - LAN IP <IP_ADDRESS>
I have not tried to set up relays (experimental) as the config.yml has me confused as to how to set this up for my circumstance. And reading other posts here on github has just confused me. I was hoping to turn off the port forwarding to the client in setup #1 to test a relay. The only thing I can use as a relay is the lighthouse in either setup.
It seems simple enough but.. I am messed up. The lighthouse would have to relay the packets to a laptop that could be on any network anywhere.
My question, after all this is, how do I set up the config.yml to give Relay a try? I know it should be simple as I've made it this far pretty well. Somehow stumped.  AND, is this what relay was designed to overcome? Or am I missing the boat?
Thanks so much!
John

It's a new day...  not so overwhelmed.
For such an environment, is a good start:
Lighthouse:
am_relay: true
use_relays: true
Client(s)
am_relay: false
use_relays: true
Thanks for any advice.

One more:
Do we remove the hashtag # remark in front of #relays:
relay:
Relays are a list of Nebula IP's that peers can use to relay packets to me.
IPs in this list must have am_relay set to true in their configs, otherwise
they will reject relay requests.
#relays:
- <IP_ADDRESS>
OR
relay:
Relays are a list of Nebula IP's that peers can use to relay packets to me.
IPs in this list must have am_relay set to true in their configs, otherwise
they will reject relay requests.
relays:
- <IP_ADDRESS>

hi! Nebula has NAT traversal techniques that work in many situations, so you don't need to turn on port forwarding on all hosts to make the peers accessible. The NAT traversal techniques don't work in all cases, though, and that's where Relays come in.
All Nebula peers will first attempt to connect to the lighthouse. So, the lighthouse must be available on the internet and have a network setup that permits unsolicited inbound traffic (port forwarding, firewall rules, etc.) Then, when a Nebula peer wants to connect to another peer, it'll query the lighthouse to find out where on the internet that peer is. The lighthouse will also notify the peer that someone is trying to connect to it. Both peers then attempt outbound connections to each other (assuming configured to do so - take a look at your punchy config settings!)
The outbound handshake/punchy packets on each host create NAT and Firewall state, permitting the inbound traffic to proceed.
In some cases, though, the NAT traversal doesn't work. In those cases, you can Relay your nebula traffic through a common host that both peers can access. The lighthouse is an ideal choice as a Relay for most home users.
You'll need to configure the lighthouse to act as a relay, so in your lighthouse nebula config:
# hash tags are used for comments. Config lines in effect don't start with a hash tag.
relay:
  am_relay: true

And, the hosts are configured to identify which relay can be used to access them - so in your peer Nebula config:
relay:
  relays:
    # Your lighthouse Nebula IP
    - <IP_ADDRESS>

@ brad-defined
Thank -you so much for the detailed info.
I have checked 'punchy' in my config. It was:
punchy: true
punch_back: true
It is now:
punchy:
punch: true
respond: true
delay: 1s
Both 'styles' were on the client and lighthouse and both styles of punchy worked with port forwarding enabled. If I close the port forwarding rule on the client, my 3rd client, android, just will not see the main client no matter which flavor of punchy
I must now admit, which I didn't think was pertinent, I am using the Android Nebula CLient on my Samsung tablet. I will try all of this by hooking up my tablet to a mobile hotspot through the Verizon network. With port forwarding enabled on my main client the android tablet client can see the main client and its associated network without issue, If I close the port, no joy. Just interesting.
The Android client has absolutely no way to edit the config but I am not certain that's an issue. Its punch setting are:
punchy:
punch: true
respond: false
delay: 1s
After a firewall change, do I need to restart both, doesn't matter or just one of the nebulas? Of course after changing the config a restart of Nebula is needed.
Again, with port forwarding disabled on my main client, I can see my networks from either end perfectly. Just not from the Android client. So, we will see what relay does.
Thanks for the help and any further information and learning opportunities.
John

My apologies as I should have responded prior... as the post by guanzi008 above reminded me. AND it's nice to see a working log example.
I have it working GREAT! Just had a typo that I kept reading/seeing as correct. Once I spelled it right miracles happened!
Thanks!

@johnjces ，你好。
我的机器，
中转没有成功
一个Server
2个client
您能给个您的配置文件看看吗，
谢谢您。


Don't require appId

Is your feature request related to a problem? Please describe.
We use Segment to externally boot Intercom, and as such we'll never use this library to boot. As far as I can tell, this is the only situation where appId is needed, yet it's a required parameter.
Describe the solution you'd like
Make appId optional. throw if a user attempts to boot/autoboot Intercom without appId.
Describe alternatives you've considered
Pass a fake appId string.

I'll close this issue for now. Feel free to re-open this if you want to discuss this further


Change treatment names

"Early successional community" and "Biologically based (organic)" are too long. Let's shorten them so they don't mess up the graphs so much

Dealt with!


Update to latest version of ECMA-262

This updates the proposal specification to use the most recent specification text from https://github.com/tc39/ecma262.

cc: @tc39/ecma262-editors

This contains no normative changes, merely updates to align with current specification text. All of these changes can already be found in https://github.com/tc39/ecma262/pull/3000 and https://github.com/rbuckton/ecma262/pull/3, so I'd like to merge to get the specification text to agree in both cases. This is likely missing a few recent changes to ecma262 since this PR is 9 months old at this point. @michaelficarra, @syg, @bakkot if one of you could get eyes on this I'd appreciate it. I'd like to close this out today if possible.


Revert "Revert "change the name of function to postOrPutCamp""

Reverts dragon74/ShabTsak#51

@chayale90 Write a descriptive title to reflect the changes you made :)


Reportexecutedcount

This fixes a nondeterministically failing test in the pipeline.

The tests look like they failed, but: The logs for this run have expired and are no longer available. Hence, it needs to be clarified what the problem was.

Hanish could benefit from this sanity check in his work.
@leandernikolaus Could you clarify what's going on in internal/orchestration/controller.go (see my comment above.

Closing as superseded by #88.


jffi doesn't support for Android at all.

java.lang.UnsatisfiedLinkError: dlopen failed: library "libc.so.6" not found

On android, there is no libc.so.6 at all.
We should compiling for android independently.

This does not constitute lack of support. Rather, it means that the "c" library is located somewhere else, or there's something unusual about loading libraries on Android. I have heard that Android prevents dynamically-loaded libraries from seeing other libraries exports by always opening them as RTLD_LOCAL. That could be the cause.
Can you investigate any further?

ah I've already getting jffi works under Android


Fix broken link

Duplicate of #7.

TOC has generated automatically, so there's no reason to update this because it will be overridden with the next version. That's a problem with doctoc, not with the TOC itself.

Consider rewording the title of the section, so doctoc could generate a correct link.


enc264: implement I/P/B QP setting on CQP mode

set slice_qp_delta acording to the slice type.
Signed-off-by: wudping<EMAIL_ADDRESS>

lgtm :+1:

Hi @lizhong1008
Please help to review this.One question from me

Do we need change diffIPQP  to more descriptive name? Do we need refer to x264’s name?

@xuguangxin seem x264 won't provide direct interface to set P/B frame qp, it use --qpfile to set different frame_type qp. I think it ok to use the name of "diffIPQP" if well commented.

Hi @lizhong1008, Is it ok for this patch?

+1

@wudping , we need bump version for this

@wudping , never mind, i will handle the version bump

merged as 3147d364aa30b405cc85554be3f629d223ececf0


Add animation support

Add support for animation, very simple, some functions haven't implemented yet.
Also fix some mistakes.
When I test this new submodule, I found an error when I exit program(just once):
Exception ignored in: <function WeakMethod.__new__.<locals>._cb at 0x7f5cf8ad30>
Traceback (most recent call last):
  File "/usr/lib/python3.9/weakref.py", line 61, in _cb
  File "/home/jason/mcpy/pyglet-tutor/pyglet/event.py", line 356, in _remove_handler
  File "/usr/lib/python3.9/weakref.py", line 77, in __eq__
TypeError: isinstance() arg 2 must be a type or tuple of types
Exception ignored in: <function WeakMethod.__new__.<locals>._cb at 0x7f5cf8aaf0>
Traceback (most recent call last):
  File "/usr/lib/python3.9/weakref.py", line 61, in _cb
  File "/home/jason/mcpy/pyglet-tutor/pyglet/event.py", line 356, in _remove_handler
  File "/usr/lib/python3.9/weakref.py", line 77, in __eq__
TypeError: isinstance() arg 2 must be a type or tuple of types
Exception ignored in: <function WeakMethod.__new__.<locals>._cb at 0x7f5cf8ab80>
Traceback (most recent call last):
  File "/usr/lib/python3.9/weakref.py", line 61, in _cb
  File "/home/jason/mcpy/pyglet-tutor/pyglet/event.py", line 356, in _remove_handler
  File "/usr/lib/python3.9/weakref.py", line 77, in __eq__
TypeError: isinstance() arg 2 must be a type or tuple of types

If this PR passed, please add detailed document.

Please change this line when new version releases:
https://github.com/Minecraft-in-python/pyglet/blob/9a12f460fb618fdae22be1bf6c19dec0f65b93ef/pyglet/animation.py#L38

Animations currently exist in https://github.com/pyglet/pyglet/blob/pyglet-1.5-maintenance/pyglet/image/animation.py
I don't think two different modules for animation should be added. What functionality does this offer over the existing Animation? Adding functionality to the existing one is probably best.

@caffeinepills I think pyglet.image.animation is just for images. But this can be used on shapes, sprites, and images. I'll create an example soon.

It's a good point that we could use a generic Animation system.
Also, as Caffeinpills pointed out, we don't want to have two duplicate systems.
The current animation system is already fairly generic, but all of the control logic is handled by the Sprite class.
Currently we have:
Frame -  Data container only
Animation - Data container only
Sprite - Contains the logic for updating the Animation
The Sprite class contains pause/resume and frame_index properties.
Maybe this can be seperated into a new class, like:
AnimationController
This class can contain all of the animation controls. It can then be subclassed by other classes. For example:
class Sprite(EventDispatcher, AnimationController):
What do you think?

@benmoran56 AnimationController is a good idea. But how to implement it? What method does it have?

this PR of pyglet.animation just change attributes of any object

While I do also like the idea of an animation system (and have implemented my own based on cocos) My only issues with this kind of feature are:

A generic animation library vs Sprite animations is going to a problem for clarity unless they can be combined, which could further bloat Sprite for all of the uses cases.
Libraries using Pyglet already implement their own animation systems. (See Cocos, which does a good job. For instance sprite.do(Lerp("x", 0, new_x)) ) So does it need to exist in the first place, since every engine is different?
It will quickly grow in scope to requested features. (see Shapes or GUI) (I can see, Lerping, Easing, Reversing, Delaying, Chaining, Paralleling, etc) This then becomes at risk of no one maintaining nor expanding it (or wanting to).
If it's not powerful enough then people are just going to not use it and implement their own anyways.

I have another idea: jQuery's animate like:
sprite.animate(x=10, y=10, duration=3, callback=lambda: print("done"))

But it only can control one object.

Maybe I can rename pyglet.animation.Animation to pyglet.animation.AnimationGroup

I think we should choose one:

Create a pyglet.animation
Let all classes inherit AnimationController(or other name)

I think use #466 (this PR) can make complex animations, but @caffeinepills 's suggestion not.
This PR has following advantages:

We needn't add a AnimationController to all classes
It's very easy to use
It can make complex animation

Sorry for leaving this hanging.
The idea of a generic animation system is good, but it's best if we postpone it until pyglet 2.x.
There are lots of changes taking place already, so it would be difficult if we try to integrate this now.

@benmoran56  I have read the files you changed. In my opinion, it's a very good example for sprite.
But the point is: can we apply the AnimationController to a circle, a button or a label?
Actually we need a sequence of images to create animations, but to smoothly move a circle's position from posA to posB in 5s is also an excellent feature for the game engine.
This PR is controversial, I should close it and create an issue to express my thought.


Knowledge - File size shown for synced file is reported incorrectly ( little more than actual size ).

Steps to reproduce the problem:

Create an agent with knowledge file from onedrive location.
Wait for the files to be synced.
Notice that the file size reported in synced file list is little more than actual size.

from onedrive

@cjellick yep, just some frontend calculation bug

This issue is not seen anymore when testing with latest build.


Problems with custom scopes and with decorating

VIew (.slim)
= paginate @products

Controller:

# works fine, paginates fine, decorates fine
# (with draper Initializer fix for kaminari)
@products = Product.where(id: @some_ids).page(@page).per(10).decorate

# works fine, paginates fine
@products = Product.search(@query_object).page(@page).per(10).records

# issue #1
# some_scope is a Product scope that .includes(:some_relations)
# to avoid N+1 while decorating
@products = Product.search(@query_object).page(@page).per(10).records.some_scope
# gives in view error `undefined method `total_pages' for #<Product::ActiveRecord_Relation>`

#issue #2 - Draper issue
@products = Product.search(@query_object).page(@page).per(10).records.decorate
# gives in view error `undefined method `total_pages' for #<Product::ActiveRecord_Relation>`
# decorator class has `delegate_all`, but no combinations of providing
# methods to delegate seems to work

# issue #3  - combinating #1 and #2 gives same error

@ex0rcist Interesting, can you please provide an example for some_scope, so I don't have to reverse engineer that? You could use https://github.com/elastic/elasticsearch-rails/blob/master/elasticsearch-model/examples/activerecord_associations.rb as the starting point. Bonus points for the Draper example as well!

Any news?

Sorry, been very busy, I will try to reproduce it in details this weekend

Just run up against issue #2 - I'm calling:
Logo.search(term).page(1).records.decorate
And I'm getting:
ActionView::Template::Error (undefined method `current_page' for #<Logo::ActiveRecord_Relation:0x000000040390b8>):
2:

3:

4:

5:                 <%= paginate @logos %>
6:

7:

8:

The call to decorate appears to have removed the current_page method from the results
The decorators are written as follows:
class LogoDecorator < Draper::Decorator
  delegate_all

  def self.collection_decorator_class
    PaginatingDecorator
  end
  ...
end

And the following class, which adds kaminari support to collections of Logos, I believe
class PaginatingDecorator < Draper::CollectionDecorator
  # pass-through kaminari methods
  delegate :current_page, :last_page?, :limit_value, :next_page, :total_pages, :entry_name, :total_count, :offset_value
end

total_pages missing is still an issue. Related to #208, which has a good descriptive name for this issue, but is closed. #208 should, in fact, be reopened.


0.48.0 - can't disable the spinning splash screen anymore

In the past, I can press "Stop spinning" and it won't happen again on the next startup of the app.
In 0.48.0, it seems like this setting is not persistent anymore.

Also, now you can't disable it because it will say "setting up account".
A few people have been annoyed by this.


New version - v3.5 beta

Hi guys, after some weeks of hard work I got a beta version of LiteDB v3.5. I'm not releasing on nuget yet because I will do more tests on changes. This new version has some break changes (all source are in dev branch).
The main goal of this version is fix concurrency problems that LiteDB has in v2.x and v3.x. In order to do this I had to change some features.
Changes

Remove transactions (break-api)
Remove physical journal file (store journal pages after file ends)
Remove auto-id register function for custom type (break-api)
Remove index definitions on mapper (fluent/attribute) (mark as obsolete)
Remove auto create index on query execution. If the index is not found do full scan search (use EnsureIndex on initialize database is better solution)
NET45 compiles as NET35
Update to VS2017

Features

Add auto-id in engine level with pre-defined common types
Add collection sequence (ulong) to use in engine level auto-id
Implement FilterDocument option in all query implementations (full scan document)
In Query.And use only one index side with full scan on other
Print query execution plan in Query.ToString() Seek([Age] > 10) and Scan([Name] startsWith "John")
Convert Query.And to Query.Between when possible
Add support to Query.Between open/close interval
QueryLinq for non resolved linq expression on visitor col.Find(x => x.Id < 10 && x.Name.Length > 10) will works using Id index and linq expression execution of Name.Length > 10

Also, I added a new LiteDB.Perf to test concurrency problems.
If you want contribute, fork my dev branch and change LiteDB.Perf to try get concurrency this error: Unable to cast object of type 'LiteDB.EmptyPage' to type 'LiteDB.HeaderPage'. Tell me here in this issue that I will investigate.
Let's turn LiteDB into a rock solid database 😄 🎉
Here, some issues that refer this concurrency problem: #641 #650 #619 #639 #592
Thanks!

It seems there is still problems in multithread case.
System.NullReferenceException
在 LiteDB.LiteEngine..ctor(LiteDB.IDiskService, System.String, System.Nullable`1<System.TimeSpan>, Int32, LiteDB.Logger)
在 LiteDB.LiteEngine..ctor(System.String, Boolean)
在 LiteDB.Perf.Program.ExecuteTest(System.String, System.Action)
在 LiteDB.Perf.Program+<>c.b__4_0()
在 System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
在 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
在 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
在 System.Threading.ThreadHelper.ThreadStart()
System.IO.IOException
在 System.IO.__Error.WinIOError(Int32, System.String)
在 System.IO.FileStream.WriteCore(Byte[], Int32, Int32)
在 System.IO.FileStream.Write(Byte[], Int32, Int32)
在 LiteDB.LiteEngine.CreateDatabase(System.IO.Stream, System.String)
在 LiteDB.FileDiskService.Initialize(LiteDB.Logger, System.String)
在 LiteDB.LiteEngine..ctor(LiteDB.IDiskService, System.String, System.Nullable`1<System.TimeSpan>, Int32, LiteDB.Logger)
在 LiteDB.LiteEngine..ctor(System.String, Boolean)
在 Test.Program.ExecuteTest(System.String, System.Action)
在 Test.Program.testThread()
在 System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
在 System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
在 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
在 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
在 System.Threading.ThreadHelper.ThreadStart()
How about add Monitor.Enter in LiteDatabase constructor and Dispose function to avoid the multithread problem?Or add Mutex in LiteDatabase constructor to avoid MultiProcess problem?

Hi @lidanger what OS are you using and this D:\ is local disk? Because this error are in File.Delete on Program.cs (Not in litedb)

D:is a ssd.
OS:win10 15063
@mbdavid

I'm using win10 too in a local disk (ssd too). Your error message seams file are closed when File.Delete are called. The program run first test (are 2 tests, one as process and one for thread)? Did you do any change on LiteDB.Perf?

Yes.I modify some,because I feel the time of the running is tool short.

is this source on you github? how can I test?

@mbdavid  Yes,it is.It's on my github.

I didn't found in you github (only found fork from master). Send me your source link to check

class Program
{
static string filename = "file_demo.db";
static Logger log = new Logger(Logger.NONE, (s) => Console.WriteLine("#" + Thread.CurrentThread.ManagedThreadId.ToString("00") + " " + s));
static int TASKS = 300;
static Random rand = new Random(DateTime.Now.Millisecond);
    static void Main(string[] args)
    {
        // log.Level = Logger.DISK | Logger.LOCK;

        AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;

        Thread thd = null;
        for (int i = 0; i < 10; i++)
        {
            thd = new Thread(() =>
            {
                ExecuteTest("Process", TestProcess);
                ExecuteTest("Thread", TestThread);

                Thread.Sleep((int)(rand.NextDouble() * 10 * 1000));
            });
            thd.IsBackground = true;
            thd.Start();
        }

        Console.WriteLine("End");
        Console.ReadKey();
    }

    private static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
    {
        File.AppendAllText("error.log", string.Format("{0}", e.ExceptionObject));
    }

    static LiteEngine InitDB()
    {
        var disk = new FileDiskService(filename, true);
        return new LiteEngine(disk, null, null, 5000, log);
    }

    static void ExecuteTest(string name, Action test)
    {
        Console.WriteLine("{0} (N = {1})", name, TASKS);

        // delete datafile before starts
        //File.Delete(filename);

        // create empty database and collection with index in name
        using (var db = new LiteEngine(filename))
        {
            db.EnsureIndex("collection", "name");
        }

        var s = new Stopwatch();
        s.Start();

        // execute test
        test();

        s.Stop();

        Console.WriteLine("Time Elapsed (ms): " + s.ElapsedMilliseconds);
        Console.WriteLine();

        // assert if database are ok
        Assert();
    }

    static void RunTask(LiteEngine db)
    {
        for(var i = 0; i < 10; i++)
        {
            var doc = new BsonDocument() { ["name"] = "testing - " + Guid.NewGuid() };

            db.Insert("collection", doc, BsonType.Int32);

            doc["name"] = "changed name - " + Guid.NewGuid();

            db.Update("collection", doc);
        }

        db.Find("collection", Query.LTE("_id", 100)).ToArray();
    }

    static void Assert()
    {
        // checks if are ok
        using (var db = new LiteEngine(filename))
        {
            db.FindAll("collection").ToArray();
        }
    }

    #region Process/Thread Testing

    static void TestProcess()
    {
        var tasks = new List<Task>();

        for (var i = 0; i < TASKS; i++)
        {
            var t = Task.Factory.StartNew(() =>
            {
                using (var db = InitDB())
                {
                    RunTask(db);
                }
            });

            tasks.Add(t);
        }

        Task.WaitAll(tasks.ToArray());
    }

    static void TestThread()
    {
        var tasks = new List<Task>();

        using (var db = InitDB())
        {
            for (var i = 0; i < TASKS; i++)
            {
                var t = Task.Factory.StartNew(() =>
                {
                    RunTask(db);
                });

                tasks.Add(t);
            }

            Task.WaitAll(tasks.ToArray());
        }

    }

    #endregion
}

@mbdavid I have commented File.Delete..Sorry, it's a mistake.

thd = new Thread(() =>
{
DateTime dt = DateTime.Now;
while (DateTime.Now < dt.AddHours(2))
{
ExecuteTest("Process", TestProcess);
ExecuteTest("Thread", TestThread);
                    Thread.Sleep((int)(rand.NextDouble() * 10 * 1000));
                }
            });

Ok, i'm running your test now... without File.Delete are working, but will take some time, because are 10 threads with 300 tasks each. I dont know if there is no timeout exception because are many waiting process.

I think execute tasks once is tool short to test,so..Maybe not need that much threads.

Let´s put LiteDB on a super stress test :) I think a web api (get/post/put/delete) with a JMeter stress tool could be nice too to test more real scenarios.

Yes,it should be nice.

Done, 10 threads works fine - produces 18mb file_demo.db - 60.000 records. Tell me if you have any trouble in your 2 hours test.

Ok, created a CRUD webapi example and run over stress tool. All operations (Find, Insert, Update, Delete) and until now no problems. Tested over multi process and multi thread.
https://github.com/mbdavid/LiteDB.WebApi
Multi thread are 5 times faster than multi process (avoid open/close file + cache)

Will data file from 3.0 work for 3.5? Any migration will be needed?

Hi,@mbdavid .Sorry,I can't complete the test because there is too many timeout.I have reduced it to 10 tasks, but no help.
some error:
1.If there is no file, it report nullexception:
System.NullReferenceException: 未将对象引用设置到对象的实例。
在 LiteDB.LiteEngine..ctor(IDiskService disk, String password, Nullable`1 timeout, Int32 cacheSize, Logger log)
在 LiteDB.LiteEngine..ctor(String filename, Boolean journal)
在 LiteDB.Perf.Program.ExecuteTest(String name, Action test) 位置 D:\LiteDB\LiteDB.Perf\Program.cs:行号 66
在 LiteDB.Perf.Program.<>c.b__4_0() 位置 D:\LiteDB\LiteDB.Perf\Program.cs:行号 33
在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
在 System.Threading.ThreadHelper.ThreadStart()
2.convert emptypage to datapage error.test for 15 minutes.
System.InvalidCastException
在 LiteDB.PageService.GetPage[System.__Canon, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089]
在 LiteDB.DataService.GetBlock(LiteDB.PageAddress)
在 LiteDB.DataService.Read(LiteDB.PageAddress)
在 LiteDB.QueryContext+d__13.MoveNext()
在 System.Collections.Generic.List1[[System.__Canon, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InsertRange(Int32, System.Collections.Generic.IEnumerable1<System.__Canon>)
在 LiteDB.LiteEngine+d__9.MoveNext()
在 System.Linq.Buffer1[[System.__Canon, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089]]..ctor(System.Collections.Generic.IEnumerable1<System.__Canon>)
在 System.Linq.Enumerable.ToArray[System.__Canon, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089]
在 LiteDB.Perf.Program.Assert()
在 LiteDB.Perf.Program.ExecuteTest(System.String, System.Action)
在 LiteDB.Perf.Program+<>c.b__4_0()
在 System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
在 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
在 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
在 System.Threading.ThreadHelper.ThreadStart()

@martinrotter no changes on datafile structure. It's same file, no migrations.
@lidanger about timeout, it's ok if you get too much concurrency. You can increase this time.
But, about this second error, it's the lock problem again. But know I have where it's happening. It's on "get all data". This new version store in cache query results before returns. Default is 100 document in cache. After this, query release read lock, returns this 100 documents, and lock again to get more 100 documents. In this mean time, you are deleting data. For now, if you increase this number to much more you will not get this problem. I will review this implementation to try avoid this.

I think I forgot another error.
Sometimes, when the program report exception and exit and the data file is not deleted, the program is restarted again, but with only one cycle, it blocks.
The real problem is the data file can not be deleted later and the program can not be closed even using taskmanager.TaskManager report an error: access refused.The only way to release the lock is rebooting the OS.
@mbdavid

With log4net for exception logging, I tested it for 2 hours just now.No error come out, except few timeout.
Environment:Windows Server 2012 R2 DataCenter on Alibaba Cloud.
Thread:10
Tasks:10
The size of the file file_demo.db is 73992KB.
Code In Here:https://github.com/lidanger/LiteDB/blob/dev/LiteDB.Perf/Program.cs

Thats nice @lidanger. I update query implementation to alwyas re-query after each lock/unlock. It´s not faster solution, but it´s safest option to not get this kind of error.
I'm still doing more load/stress test. Please, tell me if you got some concurrency error

Today, I use hyper-v to simulate power failure, then the exception come out again.
environment:
Windows XP Professional SP3
.net frameword 4.0 full
threads:10
tasks:10
call stack:
[2017-08-10 09:29:39,817] [DEBUG] Main - RunTask exception:System.InvalidCastException: Unable to cast object of type 'LiteDB.EmptyPage' to type 'LiteDB.DataPage'.
at LiteDB.PageService.GetPage[T](UInt32 pageID)
at LiteDB.PageService.GetFreePage[T](UInt32 startPageID, Int32 size)
at LiteDB.DataService.Insert(CollectionPage col, Byte[] data)
at LiteDB.LiteEngine.InsertDocument(CollectionPage col, BsonDocument doc, BsonType autoId)
at LiteDB.LiteEngine.<>c__DisplayClass18_0.b__0(CollectionPage col)
at LiteDB.LiteEngine.Transaction[T](String collection, Boolean addIfNotExists, Func2 action)    at LiteDB.LiteEngine.Insert(String collection, IEnumerable1 docs, BsonType autoId)
at LiteDB.LiteEngine.Insert(String collection, BsonDocument doc, BsonType autoId)
at LiteDB.Perf.Program.RunTask(LiteEngine db) in E:\LiteDB\LiteDB.Perf\Program.cs:line 103
@mbdavid

Hi @lidanger, I dont know if WriteThrough will resolve this.
Question: when you back after failure process, you start all threads again? Could by some concurrency problem in Restore operation. I will do double-check in Restore process.

This can be easily reproduced with a virtual machine.
I use hyper-v. When the program runs for some time, then I power down the machine and restart the virtual machine and the program later.
I think other virtual machine, such as VirtualBox, will take same effect.
@mbdavid Adding WriteThrough can be a option that I have tested, but it's a slow solution.

Hi! With the objective of organizing our issues, we are closing old unsolved issues. Please check the latest version of LiteDB and open a new issue if your problem/question/suggestion still applies. Thanks!


Panic seen in isAlertRuleMatching after upgrading to v2.5.2

From https://github.com/rancher/rancher/issues/29460#issuecomment-708278892:
I believe I have the same issue with Rancher 2.5.2 (standalone Docker container), used to manage a single bare-metal cluster (K8s v1.19.2-rancher1-1).
@rbq If you can provide more info on this, that would help. We can fix the panic based on code but any info would be nice.
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
	panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x289aa4a]

goroutine 7030 [running]:
k8s.io/apimachinery/pkg/util/runtime.HandleCrash(0x0, 0x0, 0x0)
	/go/pkg/mod/github.com/rancher/apimachinery@v0.19.0-rancher1/pkg/util/runtime/runtime.go:55 +0x105
panic(0x3c138c0, 0x73706a0)
	/usr/local/go/src/runtime/panic.go:969 +0x166
github.com/rancher/rancher/pkg/controllers/managementuser/alert/watcher.(*ClusterScanWatcher).isAlertRuleMatching(...)
	/go/src/github.com/rancher/rancher/pkg/controllers/managementuser/alert/watcher/cluster_scan.go:110
github.com/rancher/rancher/pkg/controllers/managementuser/alert/watcher.(*ClusterScanWatcher).Sync(0xc00d96bc70, 0xc01224f830, 0x22, 0xc0222d2300, 0x44c3ef8, 0x4, 0x44d3772, 0xb)
	/go/src/github.com/rancher/rancher/pkg/controllers/managementuser/alert/watcher/cluster_scan.go:79 +0x30a
github.com/rancher/rancher/pkg/generated/norman/management.cattle.io/v3.(*clusterScanController).AddClusterScopedHandler.func1(0xc01224f830, 0x22, 0x442dfa0, 0xc0222d2300, 0xc02224fb20, 0x3, 0x3, 0x0)
	/go/src/github.com/rancher/rancher/pkg/generated/norman/management.cattle.io/v3/zz_generated_cluster_scan_controller.go:182 +0x79
github.com/rancher/norman/controller.(*genericController).AddHandler.func1(0xc01224f830, 0x22, 0x4e247a0, 0xc0222d2300, 0x4e247a0, 0xc0222d2300, 0x0, 0x0)
	/go/pkg/mod/github.com/rancher/norman@v0.0.0-20200930000340-693d65aaffe3/controller/generic_controller.go:62 +0x221
github.com/rancher/lasso/pkg/controller.SharedControllerHandlerFunc.OnChange(0xc00eb509f0, 0xc01224f830, 0x22, 0x4e247a0, 0xc0222d2300, 0x4e247a0, 0xc0222d2300, 0x0, 0x0)
	/go/pkg/mod/github.com/rancher/lasso@v0.0.0-20200905045615-7fcb07d6a20b/pkg/controller/sharedcontroller.go:29 +0x4e
github.com/rancher/lasso/pkg/controller.(*sharedHandler).OnChange(0xc00c375ad0, 0xc01224f830, 0x22, 0x4e247a0, 0xc0222d2300, 0xc00e960301, 0x0)
	/go/pkg/mod/github.com/rancher/lasso@v0.0.0-20200905045615-7fcb07d6a20b/pkg/controller/sharedhandler.go:65 +0x14a
github.com/rancher/lasso/pkg/controller.(*controller).syncHandler(0xc000bfb290, 0xc01224f830, 0x22, 0xc00e95e840, 0xc015946d50)
	/go/pkg/mod/github.com/rancher/lasso@v0.0.0-20200905045615-7fcb07d6a20b/pkg/controller/controller.go:210 +0xd1
github.com/rancher/lasso/pkg/controller.(*controller).processSingleItem(0xc000bfb290, 0x390a700, 0xc02167aec0, 0x0, 0x0)
	/go/pkg/mod/github.com/rancher/lasso@v0.0.0-20200905045615-7fcb07d6a20b/pkg/controller/controller.go:192 +0xd7
github.com/rancher/lasso/pkg/controller.(*controller).processNextWorkItem(0xc000bfb290, 0x203003)
	/go/pkg/mod/github.com/rancher/lasso@v0.0.0-20200905045615-7fcb07d6a20b/pkg/controller/controller.go:169 +0x51
github.com/rancher/lasso/pkg/controller.(*controller).runWorker(0xc000bfb290)
	/go/pkg/mod/github.com/rancher/lasso@v0.0.0-20200905045615-7fcb07d6a20b/pkg/controller/controller.go:158 +0x2b
k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1(0xc00e958c10)
	/go/pkg/mod/github.com/rancher/apimachinery@v0.19.0-rancher1/pkg/util/wait/wait.go:155 +0x5f
k8s.io/apimachinery/pkg/util/wait.BackoffUntil(0xc00e958c10, 0x4dfa100, 0xc00d07ee10, 0x3a22636570732201, 0xc00153de00)
	/go/pkg/mod/github.com/rancher/apimachinery@v0.19.0-rancher1/pkg/util/wait/wait.go:156 +0xa3
k8s.io/apimachinery/pkg/util/wait.JitterUntil(0xc00e958c10, 0x3b9aca00, 0x0, 0x3136386664623101, 0xc00153de00)
	/go/pkg/mod/github.com/rancher/apimachinery@v0.19.0-rancher1/pkg/util/wait/wait.go:133 +0x98
k8s.io/apimachinery/pkg/util/wait.Until(0xc00e958c10, 0x3b9aca00, 0xc00153de00)
	/go/pkg/mod/github.com/rancher/apimachinery@v0.19.0-rancher1/pkg/util/wait/wait.go:90 +0x4d
created by github.com/rancher/lasso/pkg/controller.(*controller).run
	/go/pkg/mod/github.com/rancher/lasso@v0.0.0-20200905045615-7fcb07d6a20b/pkg/controller/controller.go:129 +0x31f

Ooops, sorry for mixing this up with the unrelated issue. I'll try to provide some additional information:

the upgrade path and how many/what clusters you are managing and if you are using cluster scans/alerting

Honestly, it's a mess and I clearly tried to change too many things at once. I was running a single container installation with Rancher 2.4.2 managing a single cluster (K8s 1.18.2 I believe). After replacing the Rancher instance with a 2.5.0 container I upgraded the cluster to 1.19.2 and tried to migrate Istio (worked), alerting (didn't work), and monitoring (kind-of worked) from the old management UI to new charts via Cluster Explorer. That involved a bit of manually deleting resources (incl. namespaces) as the old monitoring didn't quite want to go away completely.
The system seemed to run at first, but periodically crashed. At first I assumed it was a memory issue and unsuccessfully tried to grow the VM from 4 to 8 GB, then 12 GB. I think next 2.5.1 came out, I tried to upgrade the container but it wouldn't even start up (etcd reported waiting for connections on the expected ports but Rancher couldn't connect at all). After not being able to debug or resolve the problem I assumed some kind of volume/etcd corruption after all the crashing and forced restarting. I therefore removed the Rancher container and created a new one (Rancher 2.5.1), restoring my backup of the Rancher 2.4.8 data. Then I changed the K8s version (which was being shown as 1.18 due to the restored Rancher backup) back to 1.19 and tried migrating Istio and monitoring again.

Want to make sure that we do not stray off the path here, but from following the stack trace there may be a few good places to look...

wait.go line 140
controller.go line 157-177

Created a PR for this. Essentially, the CisScanStatus was not created because the CisScan either did not complete, or it failed. The panic was a result of the isAlertRuleMatching function trying to access fields for the non-existent CisScanStatus object.

Reopening for a fix in 2.5 branch

Rancher version: v2.5-head (10/22/2020) 1599dc1
Rancher version: v2.4-head (10/22/2020) 6ab3cb450
Executed P1 cases using alerts/notifiers (monitoring is also a dependency for this).
I was able to run manual scans and recieve alerts for failed and success scans.
I received notifications/alerts from executed scheduled scans, both from failed and success scans.
Slack was used as the notifier.


Review pb_check_proto3_default_value for pointers

Related to #504, check what pb_check_proto3_default_value() in master branch really does with pointer fields. Their iter->data_size is the size of item pointed to, not size of pointer.

Turns out there was a bug.
If option proto3_singular_msgs was given and a proto3 submessage contained a pointer field set to NULL, the encoder would crash with null pointer dereference.


Group-based access control with auto login redirect

Hi,
I want to add this module to my streamlit applications but I don't want to show any login or logout button to my users. So, when an user try to access my app, first s/he should be redirected to the login page and after signed in successfully, will be able to see the content.
Second one is group-based access control. I tried the demo app and it retrieve users' group info as object-id. How can I enable group based access for my applications? For example, if the group with ID 1111-2222-3333-4444 is in the user's information, the user should be able to access the application, otherwise not.
How can I implement this features? I would be grateful if you could help me. Thank you very much in advance.

Thanks for the request! I will try to see if I can look further into this.

Any progress on how to get user's groups using this component?


Make a virtual scrolling implementation

@krisselden and I plan to create this at https://github.com/yapplabs/ember-virtual-scrollkit

It now exists. Needs polish, docs and tweaks, but it works.


Diff Staging: create branches instead of tags

Branches are ephemeral by nature; tags are not. Creating a tag for every
revision of every diff accumulates excessively in repositories which are
high churn. Additionally, reusing a repository as a staging repo,
instead of creating a new one, forces all of these tags to be pulled
down for all developers.
Let's use branches instead of tags, as it is trivial to remove remote,
old branches as they accumulate. Removing tags is non-trivial and likely
to result in a developer accidentally re-uploading all of the deleted
tags.
--
N.B. It's possible to use a different refspec (like refs/reviews or refs/phabricator etc.) if desired.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Replace in favor of: https://github.com/uber/arcanist/pull/136/files


[Feature Request]:

Email (Optional)
<EMAIL_ADDRESS>Problem
I have generated a DFT dataset using HSE functional. Since the MATGL model is mainly trained on PBE data, can I fine-tune the initial MATGL model with my HSE data? Will it work?
Proposed Solution
I am not sure.
Alternatives
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Short answer is yes. You can also try using a multi-fidelity approach like the one shown in this https://arxiv.org/abs/2409.00957

@shyuep Thank you! But, can you please explain a bit further? For example, do I need to fine-tune the PBE model with HSE data? Do I have to do anything else, like do I have shift elemental energy reference?

Please read the paper first.

@shyuep thank you! I read that paper, it seems like the fidelity information is added as a vector in the global state feature input to the m3gnet model. However, the code implementation has not been clarified in the paper.

Hi @msehabibur, we are currently optimizing the code and will provide an example soon. Regarding fine-tuning, it largely depends on the actual differences between the two PESs. I suggest trying both approaches—with and without shifting the elemental energy reference.


change return value of Type::pointee_type() to Option

Fixes #137

 Warning

These commits modify unsafe code. Please review it carefully!

Please claim the relevant issue before working on it, so that we can reduce duplicate efforts :)

Never mind. Ignore my nits :)

@bors-servo r+
Thanks!

:pushpin: Commit 45dd2ae has been approved by emilio

:hourglass: Testing commit 45dd2ae with merge 823abd5...

:sunny: Test successful - status-travis


Add new towncrier category: housekeeping

Proposed Changes
New category for towncrier for documenting changes that don't generally affect the users of Nautobot such as documentation updates and making changes to CI.

Justification
Get rid of some of the noise in the release notes.

Such as documentation
Hopefully this is required going forward for adding features (so just added with the feature), fixing missing documentation (.fixed), or in the case of adding solution/use cases ("How to model a spine-and-leaf network") it's a feature .added.

But for making changes to CI, updating maintainer docs (#4326), yes big 👍 👍 for .housekeeping.

Hey team! Please add your planning poker estimate with Zenhub @glennmatthews @gsnider2195 @HanlinMiao @jathanism @timizuoebideri1


Deprecate the replication worker

The rubyrep based replication worker is now deprecated in favor of the pglogical replication backend.
This is configured through the replication tab on the Settings -> Region page

Old

New

@carbonin Are we not deleting everything related to the rubyrep replication?  Or are you just doing it in steps?
/cc @gtanzillo

@chessbyte
I was hoping to get this backported because we are leaving the replication worker in for darga.
This will hopefully make stuff like http://talk.manageiq.org/t/master-region-and-replication/1525/2 less likely to come up in darga.

@chessbyte We are obligated to support rubyrep in the this release as deprecated. We'll be removing it completely in the next release.

👍

@gtanzillo should this really be backported to Darga?  is there a BZ for this?

@chessbyte No BZ for this. We'd like it backported to prevent users from mistaking the old replication for the new. Additionally, we want to indicate that it's deprecated so that we can fully remove it for the E release.


Cannot exclude Metadata With if defined

We're currently working on a Project where we are trying to define Metadata for Auto Scaling Groups. We're currently having an issue where if we code in something like:
Metadata('AWS::CloudFormation::Init',metadata) if defined?(metadata)
The resulting cloudformation will try to render regardless of whether the metadata variable is defined or not. The error when there is no metadata data defined is:
cfndsl/module.rb:60:in `block (4 levels) in dsl_content_object': wrong number of arguments (0 for 1+) (ArgumentError)
	from /home/vagrant/Projects/Bulletproof/Movember/cfndsl/AutoScalingGroups.rb:240:in `block (2 levels) in eval_file_with_extras'
	from /var/lib/gems/2.2.0/gems/cfndsl-0.4.0/lib/cfndsl/CloudFormationTemplate.rb:157:in `instance_eval'
	from /var/lib/gems/2.2.0/gems/cfndsl-0.4.0/lib/cfndsl/CloudFormationTemplate.rb:157:in `block (4 levels) in <class:CloudFormationTemplate>'
	from /home/vagrant/Projects/Bulletproof/Movember/cfndsl/AutoScalingGroups.rb:233:in `block in eval_file_with_extras'
	from /var/lib/gems/2.2.0/gems/cfndsl-0.4.0/lib/cfndsl/JSONable.rb:176:in `instance_eval'
	from /var/lib/gems/2.2.0/gems/cfndsl-0.4.0/lib/cfndsl/JSONable.rb:176:in `declare'
	from /var/lib/gems/2.2.0/gems/cfndsl-0.4.0/lib/cfndsl.rb:90:in `CloudFormation'
	from /home/vagrant/Projects/Bulletproof/Movember/cfndsl/AutoScalingGroups.rb:17:in `eval_file_with_extras'
	from /var/lib/gems/2.2.0/gems/cfndsl-0.4.0/lib/cfndsl.rb:83:in `eval'
	from /var/lib/gems/2.2.0/gems/cfndsl-0.4.0/lib/cfndsl.rb:83:in `eval_file_with_extras'
	from /var/lib/gems/2.2.0/gems/cfndsl-0.4.0/bin/cfndsl:61:in `<top (required)>'
	from /usr/local/bin/cfndsl:23:in `load'
	from /usr/local/bin/cfndsl:23:in `<main>'

Just want to know if there is a way to fix this. Currently, we are defining metadata as an empty string if it doesn't exist but it would be better for the Metadata tag to simply not exist in the resulting output.
Thanks.

@geoffreyharrison The problem here is that the DSL is being parsed so no matter what the condition is your have around the DSL method, it'll still be passed and we attempt to convert it into a definition class. For the moment the best way is to default it to an empty string, I'll put an issue in to see if there's a way of indicating that we only want to include a resource property if say a condition is satisfied or maybe if the argument to the method actually exists.


[WIP] update convert_to_hdf5 to use Jones 2009 connectivity by default

Previous hdf5 conversion from param and json format did not include connectivity information because the conversion was using the base Network object to initialize the networks. This change makes the default to use the Jones 2009 model so that network connectivity is encoded in the hdf5. This was decided because the tutorial only uses this model. Other saved model types are also available as well as an option to not use any model.

Closing this because we are moving to a new direction with saving outputs because hdf5 files in the current format are too  large.


can't find motor property window

Hi,
could you tell me how to open the motor property window?
Best.

Hi. You can right click on the model. Then click the option in the context menu.


TextFormField not responding to inputs on Android when typing on Microsoft SwiftKey

This issue started appearing after upgrading to Flutter 2.2. I could only reproduce this issue on Android devices that use MicrosoftSwiftKey(only Flutter 2.2). IOS works fine. Android devices that use GBoard work fine as well.
Steps to Reproduce

https://github.com/omchiii/swiftkey-crash clone repo.
Switch to MicrosoftSwiftKey keyboard.
Add a TextFormField widget inside a form with "FilteringTextInputFormatter.digitsOnly".
Start quickly typing letters, then digits.

Video : https://drive.google.com/file/d/1C506f5S_ZYM_0GrmFodZtVhI4IpCqA3W/view?usp=sharing
Expected results:
I wanted to be able to type again.
Actual results:
Form field is not responding to the input, even If a digit is typed.

Logs

Analyzing asdddd...
No issues found! (ran in 8.8s)

[   +1 ms] An Observatory debugger and profiler on sdk gphone x86 arm is available at:
           http://<IP_ADDRESS>:59743/OEx14KC1Qng=/
[  +80 ms] Activating Dart DevTools...
[+7415 ms] E/SpannableStringBuilder(11195): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero
length
[        ] E/SpannableStringBuilder(11195): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero
length
[        ] W/ListenableEditingState(11195): a listener was added to EditingState while a batch
edit was in progress
[   +7 ms] W/IInputConnectionWrapper(11195): endBatchEdit on inactive InputConnection
[ +310 ms] W/IInputConnectionWrapper(11195): getExtractedText on inactive InputConnection
[        ] W/IInputConnectionWrapper(11195): getTextBeforeCursor on inactive InputConnection
[+1005 ms] E/SpannableStringBuilder(11195): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero
length
[ +271 ms] I/chatty  (11195): uid=10159(com.example.asdddd) identical 2 lines
[  +37 ms] E/SpannableStringBuilder(11195): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero
length
[ +100 ms] Activating Dart DevTools... (completed in 9.1s)
[ +959 ms] The Flutter DevTools debugger and profiler on sdk gphone x86 arm is available at:
                    http://<IP_ADDRESS>:9101?uri=http%3A%2F%2F<IP_ADDRESS>%3A59743%2FOEx14KC1Qng%3D%2F

[✓] Flutter (Channel stable, 2.2.0, on macOS 11.2.3 20D91 darwin-x64, locale en-BA)
• Flutter version 2.2.0 at /Users/omerbayram/Documents/development/flutter
• Framework revision b22742018b (8 days ago), 2021-05-14 19:12:57 -0700
• Engine revision a9d88a4d18
• Dart version 2.13.0
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Users/omerbayram/Library/Android/sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.4, Build version 12D4e
• CocoaPods version 1.10.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
[✓] VS Code (version 1.56.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.22.0
[✓] Connected device (2 available)
• sdk gphone x86 arm (mobile) • emulator-5554 • android-x86    • Android 11 (API 30)
(emulator)
• Chrome (web)                • chrome        • web-javascript • Google Chrome 90.0.4430.212
• No issues found!

cc @LongCatIsLooong

Hi @omchiii
Thanks for filing the issue, this is definitely a regression, I can confirm the issue with the latest Swift keyboard download on the latest Flutter channels on Android

Preview

The issue only reproduces FilteringTextInputFormatter.digitsOnly
FilteringTextInputFormatter.singleLineFormatter has issue
Reproduced the issue using the following minimal code sample

minimal code sample
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key? key}) : super(key: key);

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  GlobalKey<FormState> key = GlobalKey<FormState>();
  @override
  Widget build(BuildContext context) {
    return Material(
      child: Form(
        key: key,
        child: Center(
            child: TextFormField(
          inputFormatters: [FilteringTextInputFormatter.digitsOnly],
        )),
      ),
    );
  }
}

Reproduced on the following channels

stable
master

❌
❌

Check flutter doctor -v outputs for each channel below

flutter doctor -v
[✓] Flutter (Channel stable, 2.2.0, on Microsoft Windows [Version 10.0.19043.985], locale en-US)
    • Flutter version 2.2.0 at C:\Users\Taha\Code\flutter_stable
    • Framework revision b22742018b (9 days ago), 2021-05-14 19:12:57 -0700
    • Engine revision a9d88a4d18
    • Dart version 2.13.0

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\Taha\Code\SDK
    • Platform android-30, build-tools 30.0.3
    • ANDROID_SDK_ROOT = C:\Users\Taha\Code\SDK
    • Java binary at: C:\Users\Taha\Code\android-studio\jre\bin\java.exe
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[✓] Visual Studio - develop for Windows (Visual Studio Community 2019 16.9.6)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.9.31313.79
    • Windows 10 SDK version 10.0.19041.0

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).

[✓] VS Code (version 1.56.2)
    • VS Code at C:\Users\Taha\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.22.0

[✓] Connected device (5 available)
    • Redmi K20 Pro (mobile)  • def0ad20      • android-arm64  • Android 10 (API 29)
    • sdk gphone x86 (mobile) • emulator-5554 • android-x86    • Android 11 (API 30) (emulator)
    • Windows (desktop)       • windows       • windows-x64    • Microsoft Windows [Version 10.0.19043.985]
    • Chrome (web)            • chrome        • web-javascript • Google Chrome 90.0.4430.212
    • Edge (web)              • edge          • web-javascript • Microsoft Edge 90.0.818.66

! Doctor found issues in 1 category.

[✓] Flutter (Channel master, 2.3.0-13.0.pre.122, on Microsoft Windows [Version 10.0.19043.985], locale en-US)
    • Flutter version 2.3.0-13.0.pre.122 at C:\Users\Taha\Code\flutter_master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision c3e1d75ce0 (6 hours ago), 2021-05-24 03:14:02 -0400
    • Engine revision 0b3b30b18b
    • Dart version 2.14.0 (build 2.14.0-145.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\Taha\Code\SDK
    • Platform android-30, build-tools 30.0.3
    • ANDROID_SDK_ROOT = C:\Users\Taha\Code\SDK
    • Java binary at: C:\Users\Taha\Code\android-studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[✓] Visual Studio - develop for Windows (Visual Studio Community 2019 16.9.6)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.9.31313.79
    • Windows 10 SDK version 10.0.19041.0

[✓] Android Studio (version 4.2.0)
    • Android Studio at C:\Users\Taha\Code\android-studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)

[✓] VS Code (version 1.56.2)
    • VS Code at C:\Users\Taha\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.22.0

[✓] Connected device (6 available)
    • Redmi K20 Pro (mobile)  • def0ad20      • android-arm64   • Android 10 (API 29)
    • sdk gphone x86 (mobile) • emulator-5554 • android-x86     • Android 11 (API 30) (emulator)
    • Windows (desktop)       • windows       • windows-x64     • Microsoft Windows [Version 10.0.19043.985]
    • Windows (UWP) (desktop) • winuwp        • windows-uwp-x64 •
    • Chrome (web)            • chrome        • web-javascript  • Google Chrome 90.0.4430.212
    • Edge (web)              • edge          • web-javascript  • Microsoft Edge 90.0.818.66

• No issues found!

✅ : No Issue ❌: has issue

Can you also paste an example of the backtrace when it crashes please? That would further help isolate the component.

[+7979 ms] E/SpannableStringBuilder( 5378): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length [ +115 ms] E/SpannableStringBuilder( 5378): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length [        ] E/SpannableStringBuilder( 5378): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length [  +10 ms] E/SpannableStringBuilder( 5378): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length [ +182 ms] E/SpannableStringBuilder( 5378): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length [ +283 ms] E/SpannableStringBuilder( 5378): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length [+1878 ms] W/TextInputPlugin( 5378): Changing the content within the the composing region may cause the input method to behave strangely, and is therefore discouraged. See https://github.com/flutter/flutter/issues/78827 for more details [ +103 ms] W/IInputConnectionWrapper( 5378): getExtractedText on inactive InputConnection [        ] W/IInputConnectionWrapper( 5378): getTextBeforeCursor on inactive InputConnection [   +6 ms] E/SpannableStringBuilder( 5378): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length [ +705 ms] I/chatty  ( 5378): uid=10159(com.example.asdddd) identical 2 lines [   +2 ms] E/SpannableStringBuilder( 5378): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length [  +33 ms] W/TextInputPlugin( 5378): Changing the content within the the composing region may cause the input method to behave strangely, and is therefore discouraged. See https://github.com/flutter/flutter/issues/78827 for more details [  +24 ms] E/SpannableStringBuilder( 5378): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length [ +583 ms] I/chatty  ( 5378): uid=10159(com.example.asdddd) identical 4 lines [  +12 ms] E/SpannableStringBuilder( 5378): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length [  +12 ms] W/TextInputPlugin( 5378): Changing the content within the the composing region may cause the input method to behave strangely, and is therefore discouraged. See https://github.com/flutter/flutter/issues/78827 for more details [ +108 ms] W/IInputConnectionWrapper( 5378): getExtractedText on inactive InputConnection [        ] W/IInputConnectionWrapper( 5378): getTextBeforeCursor on inactive InputConnection [        ] E/SpannableStringBuilder( 5378): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length [ +325 ms] I/chatty  ( 5378): uid=10159(com.example.asdddd) identical 2 lines [   +1 ms] E/SpannableStringBuilder( 5378): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length [ +734 ms] W/TextInputPlugin( 5378): Changing the content within the the composing region may cause the input method to behave strangely, and is therefore discouraged. See https://github.com/flutter/flutter/issues/78827 for more details [  +13 ms] W/IInputConnectionWrapper( 5378): clearMetaKeyStates on inactive InputConnection [  +35 ms] W/IInputConnectionWrapper( 5378): beginBatchEdit on inactive InputConnection [        ] W/IInputConnectionWrapper( 5378): endBatchEdit on inactive InputConnection [        ] W/IInputConnectionWrapper( 5378): getExtractedText on inactive InputConnection [   +3 ms] W/IInputConnectionWrapper( 5378): getTextBeforeCursor on inactive InputConnection [   +7 ms] E/SpannableStringBuilder( 5378): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length [   +1 ms] E/SpannableStringBuilder( 5378): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length [        ] E/SpannableStringBuilder( 5378): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length [ +154 ms] E/SpannableStringBuilder( 5378): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length [  +36 ms] W/TextInputPlugin( 5378): Changing the content within the the composing region may cause the input method to behave strangely, and is therefore discouraged. See https://github.com/flutter/flutter/issues/78827 for more details [   +1 ms] W/ListenableEditingState( 5378): a listener was added to EditingState while a batch edit was in progress [  +14 ms] W/IInputConnectionWrapper( 5378): setComposingText on inactive InputConnection [        ] W/IInputConnectionWrapper( 5378): endBatchEdit on inactive InputConnection [        ] W/IInputConnectionWrapper( 5378): clearMetaKeyStates on inactive InputConnection
W/ListenableEditingState( 5378): a listener was added to EditingState while a batch edit was in progress , after this line the form field stops responding. The logs before this line is just me typing.

Right I am facing this issue as well after upgrading to Flutter 2.2, I have downgraded my flutter version back to 2.0.6.

Right I am facing this issue as well after upgrading to Flutter 2.2, I have downgraded my flutter version back to 2.0.6.

Same here.

This should be prioritized.
Many users uses SwiftKey.
Any use of inputFormatter and no input is possible anymore.

This should be prioritized.
Many users uses SwiftKey.
Any use of inputFormatter and no input is possible anymore.

 I believe it will be fixed soon.

Right I am facing this issue as well after upgrading to Flutter 2.2, I have downgraded my flutter version back to 2.0.6.

I've lost hours of trying to solve this issue, so I'm grateful for this suggestion. It worked fine for me after downgrading to 2.0.6.

Right I am facing this issue as well after upgrading to Flutter 2.2, I have downgraded my flutter version back to 2.0.6.

I've lost hours of trying to solve this issue, so I'm grateful for this suggestion. It worked fine for me after downgrading to 2.0.6.

The fix should be merged to master soon. Hopefully, it will be a hotftix.

Just for bookkeeping as we evaluate cherrypicks during our next open window:
@LongCatIsLooong notes via email regarding the cherrypick request:
Impact criteria: the issue at least affects all MicrosoftSwiftKey users that attempt to type in a digit-only input field (or any other input fields that have an input formatter that changes the composing region) in a specific input pattern (try to type a few non-digit characters). The worst part is the android text input plugin will stay broken until the user restarts the app.
Nature of this issue: whenever the framework changes the composing region, the android text input plugin restarts the input method to let the input method catch up on the new composing region. But if there happens to be an unfinished batch edit (depending on the IME's implementation), the text input plugin is going to break and stop reporting updates to the framework, until the app restarts.
Risk criteria: this should be a relatively safe fix. Low LOC and the issue can be reliably repro'd without the fix.

Ive got the same issue but with Gboard

@getgizmo
Upgrading to 2.3 solved your issue?

@TahaTesser At leat I can confirm newer Flutter versions solved the issue.

@getgizmo
Upgrading to 2.3 solved your issue?

Yes! thank you

same here any one have any solution

it's landed in 2.2.3, right? Could anyone confirm this? thx

fix landed in 2.2.3, right? Could anyone confirm this? thx

Nope, I used Flutter v2.2.3 stable and still got the issue with Microsoft SwiftKey.
This is the issues I've got :
https://drive.google.com/file/d/1dE3A05RkcA6XnXPC4dhulMpJ_G66N3zJ/view?usp=sharing


in safari ,i can not get data from datebase when my website in  a iframe

iOS: 15.3.1
example:
the website url is a.test.com, i open a indexeddb and set some data.  in safari , i open two tabs, one is  a.test.com , other is b.test.com . but b.test.com include a iframe, and the src is a.test.com.
in  a.test.com , i can get the indexeddb data, but in b.test.com , the iframe of a.test.com can not get the indexeddb data.
i guess it is due to Same-origin policy.

it not a bug report ,just discuss


Add support for service names containing a forward slash

Encountered this when auto-generating ToC for Database for MySQL/PostgreSQL service from Python metadata.

The following pipelines have been queued for testing:java - templatejava - template - testsjs - templatenet - templatenet - template - testspython - templatepython - template - tests You can sign off on the approval gate to test the release stage of each pipeline. See eng/common workflow

The following pipelines have been queued for testing:java - templatejava - template - testsjs - templatenet - templatenet - template - testspython - templatepython - template - tests You can sign off on the approval gate to test the release stage of each pipeline. See eng/common workflow


How to turn off Video Recording button?

@FabienLavocat Any update?

@hungkoala
Click on below link and set setScreenShareEnabled(false) then working fine and after then you can create patch file
https://github.com/voxeet/voxeet-uxkit-reactnative/blob/dd46d795f559496e4bbe6963ff5700a6af044597/android/src/main/java/com/voxeet/reactnative/manifests/RNVoxeetManifestComponent.java#L73

@hungkoala I would recommend to clone this repository into your project and follow the tip from @codal-mpawar. For Android, change the value from true to false:
https://github.com/voxeet/voxeet-uxkit-reactnative/blob/dd46d795f559496e4bbe6963ff5700a6af044597/android/src/main/java/com/voxeet/reactnative/manifests/RNVoxeetManifestComponent.java#L73
VoxeetToolkit.instance().getConferenceToolkit().setScreenShareEnabled(false);

For iOS, in the create function, I would add the following line to disable the button:
VoxeetUXKit.shared.conferenceController.configuration.actionBar.displayScreenShare = true;

perfect


Silent fail on CentOS 7 when not able to validate a certificate form GocDB web server.

Issue reported through GGUS:
Following code silently(!) fails on CentOS7, when it can't validate certificate from GOCDB web server:
def get_egi_urls(status):

egi_goc_url = "http://goc.egi.eu/gocdbpi/public/?method=get_site_list&certif
ication_status=%s&production_status=Production" %(status,)

try:
response = urllib2.urlopen(egi_goc_url).read()
except:
return "

Could you please improve a bit this function:

not to fail silently without logging useful info from exception
use e.g. /etc/grid-security/certificates as capath

e.g. something like:
import ssl

def get_egi_urls(status):

egi_goc_url = "http://goc.egi.eu/gocdbpi/public/?method=get_site_list&certification_status=%s&production_status=Production" %(status,)

try:
if hasattr(ssl, "_https_verify_certificates"):
ssl._https_verify_certificates(enable=False)
response = urllib2.urlopen(egi_goc_url).read()
except Exception, e:
log.error("unable to get GOCDB Production %s sites: %s" % (status, str(e)))
return ""
...

Thanks.

Fixed in #2


Add trace stubs for discovery, scheme, scripting, coordiantion, ratelimiter clients + add options for define traces for specified client

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Pull request type

Please check the type of change your PR introduces:

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Documentation content changes
[ ] Other (please describe):

What is the current behavior?

Issue Number: N/A
What is the new behavior?

Other information

Codecov Report

Merging #117 (0a6e1a3) into master (82ac8be) will decrease coverage by 31.36%.
The diff coverage is 35.27%.

@@             Coverage Diff             @@
##           master     #117       +/-   ##
===========================================
- Coverage   45.17%   13.81%   -31.37%
===========================================
  Files         107      102        -5
  Lines       12675    10521     -2154
===========================================
- Hits         5726     1453     -4273
- Misses       6632     8915     +2283
+ Partials      317      153      -164

Flag
Coverage Δ

1.13.x
?

1.14.x
?

1.15.x
?

1.16.x
?

1.17.x
13.81% <35.27%> (-31.35%)
:arrow_down:

e2e
13.81% <35.27%> (-29.99%)
:arrow_down:

integration
13.81% <35.27%> (-29.99%)
:arrow_down:

macOS-latest
?

ratelimiter
?

scripting
13.81% <35.27%> (+0.65%)
:arrow_up:

table
?

ubuntu-latest
13.81% <35.27%> (-40.73%)
:arrow_down:

unit
?

windows-latest
?

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

Impacted Files
Coverage Δ

coordination/config.go
0.00% <ø> (-22.23%)
:arrow_down:

internal/cluster/cluster.go
27.80% <ø> (-43.39%)
:arrow_down:

internal/coordination/client.go
0.00% <0.00%> (-31.58%)
:arrow_down:

internal/discovery/discovery.go
0.00% <0.00%> (-61.02%)
:arrow_down:

internal/endpoint/endpoint.go
44.44% <0.00%> (-55.56%)
:arrow_down:

internal/proxy/coordiantion.go
0.00% <0.00%> (ø)

internal/ratelimiter/ratelimiter.go
0.00% <0.00%> (-88.47%)
:arrow_down:

internal/repeater/repeat.go
0.00% <0.00%> (-76.09%)
:arrow_down:

internal/scheme/scheme.go
0.00% <0.00%> (-55.08%)
:arrow_down:

internal/table/session.go
0.00% <0.00%> (-75.99%)
:arrow_down:

... and 101 more

Continue to review full report at Codecov.

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


Custom component is not passed the reset-value upon form reset

I have a custom component with the following signature (as per the docs):
const MyComp = ({input: value, onChange}) => {
    return < ... />
}

It works fine until form's reset() is called at some point. In which case, the component function is not invoked with the initial value (or any value, for that matter) as it's supposed to be.
As a workaround, I put the MyComp definition within the render function of the form for the time being and then all work fine.

It appears that problem was due to one of the components inside MyComp tree. All's good with redux-form.


fix: false-positive check for nccl install on ubuntu

Closes #774
I found that dpkg -l will output a version name for each package it lists, and the version name for nccl includes the substring "cuda", so I just chained another grep call and it works :)

thanks for the fix. - This was haunting me just now as well (Ubuntu 22)
A pity that the PR is not yet integrated.


RotationMultiUser doesn't set host and engine from masterSecret

I added password rotation to my database using https://github.com/time-loop/cdk-aurora/blob/main/src/aurora.ts#L284
However, it didn't

create the user, which didn't previously exist, so I worked around it: https://github.com/time-loop/cdk-aurora/blob/main/src/aurora.provisioner.ts#L432:16
set the newly created user's password, so... https://github.com/time-loop/cdk-aurora/blob/main/src/aurora.provisioner.ts#L454
populate the user secret with the host and engine from the master secret, so... https://github.com/time-loop/cdk-aurora/blob/main/src/aurora.provisioner.ts#L333..L354 although really I think it should just be using masterSecret's info there.

Also, what is with the master stuff? BLM happened years ago. adminSecret or administratorSecret if you want to do Microsofty things. Or mainSecret if you want to follow GitHub's pattern. Or primarySecret, or controlSecret. It takes almost no effort at all to not be crass.

Thank you for the issue. It looks like you have resolved this problem in this issue. Closing this request.
As for the inclusive language, we completely agree with the comment, but are being very careful due to backward compatibility.


Update repositories.txt

Hello @daviinacio.  Thanks for your interest in contributing to the Arduino Library Manager index.
I see the bot reported a problem with your submission that will block its acceptance:
ERROR: Library name ArduinoBuffer starts with "Arduino". These names are reserved for official libraries.
       See: https://arduino.github.io/arduino-cli/latest/library-specification/#libraryproperties-file-format
       (Rule LP012)

In order to resolve this, you must change the library name as defined by the name field of the library's library.properties metadata file:
https://github.com/daviinacio/arduino-buffer/blob/master/library.properties#L1
Note that there is no requirement to change the repository name or names of header files in the repository (though providing a header file matching the library name is best practices).
After that, create a new release or tag in the library repository.
Remember to update the version field in the library's library.properties file as needed before making a release/tag.
Once you have done that, simply mention @ArduinoBot in a comment here to trigger it to run the automated checks again. After those are passing, your library will automatically be added to Library Manager.
If you have any questions or problems while following the instructions to resolve the problem, please let me know and I'll help out.
If you decide you no longer wish to submit the library, you can close this pull request.

For the sake of a tidy repository, I'm going to close this due to lack of activity.
@daviinacio if you ever resolve the issues reported by the bot, please submit another pull request to add the library.
I'll continue to monitor this thread, so feel free to let me know if you have any questions or concerns.


for...in doesn't seem to execute the body

Executing the following program:
ask {
    let mySum:float = 0
    for(let index in itemPrices) {
        const price = itemPrices:at(index)
        mySum = mySum:plus(price)
    }
    mySum
}

should lead to an error as itemPrices does not exist and is not defined as resource or value either.
Instead, this program returns 0.

This issue is likely blocked by #129 .

See https://github.com/xFAANG/askql/pull/212 for reference

I am implementing for...of for arrays and objects, such that:
for (let a in [1, 2, 3, 'x', false, [4.5, 6]]) {
 log(a)
}

will output:
0
1
2
3
4
5

and
for(let a in {a:1, b:2, c:3, d:'x', e:false, f:[4.5,6], g:{h:1, i:true}}) {
  log(a)
}

will output:
a
b
c
d
e
f
g

@mhagmajer , do you have any additional requests?

Same as for-of. This should also work for strings I think

Following our chat, this is how it should work for a string:
const word = 'Hello';
for(const index in word) {
 log(index);
}


[FR] Get Google Scholar Citation like a plugin in Chrome/Edge Browser

Describe your request
I notice that you have implemented a feature to allow users to check the citation of some papers quickly. However, I found there is a plugin in Chrome/Edge browser, of which the link is https://chromewebstore.google.com/detail/dahenjhkoodjbpjheillcadbppiidmhp, named Google 学术搜索 PDF阅读器, and it is more convenient than your implementation for now. I suggest that you could refer to this plugin to enhance your implementation.
I appreciate your plugin and it becomes one of the most frequent plugin I used in Obsidian. Thanks for your efforts.

Thanks for the suggestion. In fact, this extension by Google is exactly what inspired me to implement the citation hover feature of PDF++.
I would like to know more about the original implementation, but it's not open-source, so unfortunately it's not easy (although I can see the minified code).
Also, I believe the original extension is backed up by Google's powerful AI models, which is not easy to integrate into this plugin.
But if you (or anyone seeing this!) has ideas for improving the hover feature, I'd appreciate your contribution! Ask me any questions if you're interested in the implementation of this plugin.


Add CLI

Like updateservicectl we should investigate how to provide a CLI for Nebraska, either by modifying https://github.com/coreos/updateservicectl or by providing a new tool.
The motivation would be to easily list and retrieve the update payloads from the command-line.

We have https://github.com/flatcar-linux/updateservicectl and it's working fine for testing instances. So let's move any other intentions to a CLI tool into that project.