v-for, refs and access to refs. by array index after Array.unshift

here example: https://jsfiddle.net/alekzonder/1zcLkuwq/
vue.js 2.1.10
steps in example:

press "unshift new" button
then press "set bold" with 0 index in input

problem: item with index 1 is bold after Array.unshift in data
if remove :key=item.id in template with v-for, all works right
bug or feature?

https://jsfiddle.net/z11fe07p/773/
a simple version

@Kingwl thanks for simple version!
i can iterate $refs.items and search component by data, but not sure this right way

@alekzonder I guess this PR https://github.com/vuejs/vue/pull/4807 will help you with your problem, but you have to wait until it comes out with the next reelease of Vue

Note that v-for refs do not guarantee the same order as your source Array.
In the next release you can determine how to register refs yourself by passing a function to :ref.

Sorry to respond to a closed issue -
Is the list behavior documented anywhere?
I did not see in for example:
https://vuejs.org/v2/guide/list.html#key
https://vuejs.org/v2/guide/migration.html#v-for-Argument-Order-for-Objects-changed
Seems to snag others, occasionally, as seen here and in:
https://forum-archive.vuejs.org/topic/5190/this-refs-ref_name-on-dynamic-component-is-array-instead-of-vuecomponent/3
seems a quick note might be beneficial to save headaches..
thanks for a great framework either way :)

"Note that v-for refs do not guarantee the same order as your source Array"
Well this is a huge bummer.

In the document https://vuejs.org/v2/guide/components.html#Child-Component-Refs, it says

$refs are only populated after the component has been rendered, and it is not reactive.

But i really have the requirement for a dynamic ref in v-for
for the example @Kingwl https://jsfiddle.net/z11fe07p/773/, i found a solution https://jsfiddle.net/Fmajor/cuay7v1j/
just manually clear the old ref array to null, and it works

For the problem of $refs not being reactive, I'm using this.$nextTick(function () { }) and it works, I get an updated list of $refs.
But for the problem of v-for $refs returning an array that does NOT match the order of your source data, I had to code a hack using custom uids, and resetting those uids (0 indexed) just before trying to access $refs, and then filtering that array by that uid property.

Anyone come up with a solution they think is clean for this yet? It’s currently really hard to answer questions like “what is the bounding box of the element where item x in this array is being rendered?” since the refs array order is not synchronized with the data source order.
Best I’ve come up with is assigning a different unique ref name for each item in the list like :ref=“‘option:’ + item.id” but that’s really gross, especially considering I have to access that ref as element 0 of an array with only one item in it now since the ref is on a v-for.

数组元素我们只能通过索引来查找，但是这时候顺序又不一致，那这不算是一个BUG吗？

@yyx990803
如果更新后的refs数组与源数据数组的顺序不一致，那么这个refs数组还有什么意义呢？
数组元素我们只能通过索引来查找，但是这时候顺序又不一致，那这不算是一个BUG吗？

I needed to find a dom resource of the first element in a v-for using a dynamic component.
I solved this using lodash to find where :key was equal to 0, but I'm concerned about if the array gets huge.
let index = _.findIndex(this.$refs.dataArray, function(ele) { return ele.$vnode.key == 0; });
this.$refs.dataArray[index].$el.offsetHeight;

@zijjj @karljakober
The current behavior is to ensure better performance, otherwise we get the overhead of ensuring $ref array index every time render functions are called.
The correct approach to get the correct index is just as @adamawang proposed:
Bind index to dom as :data-index="index" and then access it via parseInt(el.dataset.index) when using $refs

https://vuejs.org/v2/guide/components-edge-cases.html#Accessing-Child-Component-Instances-amp-Child-Elements

When ref is used together with v-for, the ref you get will be an array containing the child components mirroring the data source.

I think this text is misleading as clearly it doesn't "mirror" the sequence.
Should be:

When ref is used together with v-for, the ref you get will be an array containing the child components mirroring the data source. But take note that v-for refs do not guarantee the same order as your source Array.

It took me a few hours to discover that the order in $refs was not guaranteed.
For being complete these are the resources I went through to find this issue:

https://github.com/vuejs/vue/blob/52719ccab8fccffbdf497b96d3731dc86f04c1ce/src/core/vdom/modules/ref.js#L39 (discovered that the implementation is just pushing)
https://github.com/vuejs/vue/blob/52719ccab8fccffbdf497b96d3731dc86f04c1ce/test/unit/features/ref.spec.js (discovered that the spec only tests sequential DOM/data)
Found this thread when looking to report this issue
https://vuejs.org/v2/api/#ref (checked and doesn't mention this behaviour)
https://vuejs.org/v2/guide/components-edge-cases.html#Accessing-Child-Component-Instances-amp-Child-Elements (checked here and also doesn't mention anything, it even insinuates the opposite)

I think the best way is that to write vue instance the object of iterating:
https://jsfiddle.net/cihad/2a9wyvbh/

Really guys? It's already 2019 and still not fixed yet.
Wasted an hours figure this out. thought it was bug on my code.

I'm late to this party but wouldn't the obvious fix be for vue to publish for-refs as an object keyed with the item :key instead of an array? vue already uses :key to identify the items, why shouldn't we?

Is this code not guaranteed to work as expected (comes from https://forum.vuejs.org/t/better-method-of-using-refs-inside-a-v-for-based-on-object/21352/2)?
<list v-for="(item, key, index) in objectOfItems" :key="key">
  <q-popover ref="editor">
    <editor :item="item" @cancel="$refs.editor[index].close()">

Or is this code fine and this github issue is actually referring to a different problem?

To anyone coming to this late, another potential workaround is to reorder your ref onto a parent and use it's children instead.

        <item />

...
this.$refs.listParent.children[index];

But I'm not a huge fan of this loose coupling to the markup as adding another element to the listParent could result in unexpected defects to another developer coming into the component.

It's not amazing, but if it works for anyone else who runs into this problem, I just made a method that does a lookup based on parameters:
<template>

    <myitem :item="item" ref="items"></myitem>

</template>

For me using it is relatively low incidence so it's not too expensive overall. I don't think this would be great if it was for every render.

I went with this implementation for when there's a unique identifier for the iterated array/object. Does this make sense?
                <item-card
                    v-for="item in items"
                    v-bind:ref="`item_${load.id}`"
                    v-bind:key="item.id"
                    v-bind:item="item">
                </item-card>

It took me a few hours to discover that the order in $refs was not guaranteed.

So true.

It took me 40 minutes to discover and solve the order problem.
I solve it by using a helper function syncArrayOrder, which is defined and demonstrated below:
<template>

<canvas ref="canvas"></canvas>

</template>

It took me a few hours to discover that the order in $refs was not guaranteed.
This is not a record... So now it's 2024

Recommend using template Function Refs now in Vue 3: https://vuejs.org/guide/essentials/template-refs.html#function-refs
Also, the useTemplateRef as of Vue 3.5


server, core: support add learner node

this pr does:

if enable raft learner, pd use AddLearnerPeer and PromoteLearnerPeer to replace AddNode
scheduler will not select region that has learners
to consider recovering from unfinished operator, pd check region that has learners but with no operator, and then pd will add PromoteLearnerPeer operator for it.

note that: learner peers are not included in peers

PTAL @disksing  @nolouch

PTAL @disksing  @nolouch

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: Connor1996:x: hicquYou have signed the CLA already but the status is still pending? Let us recheck it.

https://github.com/pingcap/pd/pull/896/files#diff-0a150ce9850dd1f6063dc787c5a87a71R200
We need to check if the region has any learners here. Consider maxReplica=1, a region has a offline leader and a learner, the leader will be removed.

https://github.com/pingcap/pd/blob/e221ffb59f7b3433ee2e0a617f616dc92b02d007/server/schedule/merge_checker.go#L40-L43
Need to make sure there is no learner peer.

/run-all-tests


Switch to Swagger Editor 3.x

Hello,
Swagger Editor has released a new major revision, 3.x, which has been rebuilt from the ground up and has better performance and look-and-feel.
I tried to edit it myself, but as I couldn't find any documentation about the edits you've done onto the original Swagger Editor, I didn't have any success.
Thanks in advance, and have a good day !

What would be required for supporting Open API 3.x?

Switching to Swagger Editor 3.1+

Is that something I can help with? If so, do you have any documentation/notes about how to switch? I diff'd the static directory of this repo against the 2.x branch of the swagger-editor repo, but had trouble nailing the specific swagger-editor commit, plus there were a bunch of line-ending changes (multi-line files to single-line, particularly for the templates directory) that made diff'ing difficult.

That's why I gave up, there are too many changes from the original stuff and I didn't have the time/motivation to continue investigating it.

Hi! I submitted a PR which updates to Swagger UI v3 and adapts the extension to work with it with JSON and YAML files, keeps reloading the file on changes (just like it was).

@jienco that commit looks good! Hopefully they get it merged in there soon. Thanks!

Thank you very much @mateuscb :) I am looking forward to use the extension with Swagger v3 in vscode.

Sorry for the delayed response guys. I got caught up in some work. Thank you @jienco you PR is merged and extension is updated as well.

Thank you very much @arjun-g :)


Routne bridge upgrade makes the tests fail with Context cancelled

What happened?
https://github.com/pulumi/pulumi-azure/actions/runs/7091708985/job/19303230174?pr=1478
Pre-testing bridge upgrade: https://github.com/pulumi/pulumi-azure/pull/1478
Suspect change in play: https://github.com/pulumi/pulumi-terraform-bridge/commit/48a49522ddcac0d86608d53670b836d8ab2eb5f0 - with this bridge version, Context object propagates better as you would expect from the gRPC handler to the provider internals.
However if acceptance tests fail with "context cancelled" this is making the provider unusable, perhaps the lack of context propagation was making another latent issue? IS there something over-eagerly cancelling the context in this provider? this needs to be investigated.
Example
See above.
Output of pulumi about
N/A
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

Closing this as stale.


Invalid version: 'RegionCLIP'

My friend and I have tried  the method in #60 , but still get the error: "pip._vendor.packaging.version.InvalidVersion: Invalid version: 'RegionCLIP'". Has anyone encountered a similar problem?
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Obtaining file:///mnt/d/ZYY/RegionCLIP
Preparing metadata (setup.py) ... done
ERROR: Exception:
Traceback (most recent call last):
File "/home/frain/micromamba/envs/region/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", line 105, in _run_wrapper
status = _inner_run()
File "/home/frain/micromamba/envs/region/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", line 96, in _inner_run
return self.run(options, args)
File "/home/frain/micromamba/envs/region/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", line 67, in wrapper
return func(self, options, args)
File "/home/frain/micromamba/envs/region/lib/python3.9/site-packages/pip/_internal/commands/install.py", line 379, in run
requirement_set = resolver.resolve(
File "/home/frain/micromamba/envs/region/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 76, in resolve
collected = self.factory.collect_root_requirements(root_reqs)
File "/home/frain/micromamba/envs/region/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 539, in collect_root_requirements
reqs = list(
File "/home/frain/micromamba/envs/region/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 495, in _make_requirements_from_install_req
cand = self._make_base_candidate_from_link(
File "/home/frain/micromamba/envs/region/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 211, in _make_base_candidate_from_link
self._editable_candidate_cache[link] = EditableCandidate(
File "/home/frain/micromamba/envs/region/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 328, in init
super().init(
File "/home/frain/micromamba/envs/region/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 158, in init
self.dist = self._prepare()
File "/home/frain/micromamba/envs/region/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 235, in _prepare
dist = self._prepare_distribution()
File "/home/frain/micromamba/envs/region/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 338, in _prepare_distribution
return self._factory.preparer.prepare_editable_requirement(self._ireq)
File "/home/frain/micromamba/envs/region/lib/python3.9/site-packages/pip/_internal/operations/prepare.py", line 698, in prepare_editable_requirement
dist = _get_prepared_distribution(
File "/home/frain/micromamba/envs/region/lib/python3.9/site-packages/pip/_internal/operations/prepare.py", line 72, in _get_prepared_distribution
abstract_dist.prepare_distribution_metadata(
File "/home/frain/micromamba/envs/region/lib/python3.9/site-packages/pip/_internal/distributions/sdist.py", line 69, in prepare_distribution_metadata
self.req.prepare_metadata()
File "/home/frain/micromamba/envs/region/lib/python3.9/site-packages/pip/_internal/req/req_install.py", line 591, in prepare_metadata
self._set_requirement()
File "/home/frain/micromamba/envs/region/lib/python3.9/site-packages/pip/_internal/req/req_install.py", line 394, in _set_requirement
if isinstance(parse_version(self.metadata["Version"]), Version):
File "/home/frain/micromamba/envs/region/lib/python3.9/site-packages/pip/_vendor/packaging/version.py", line 56, in parse
return Version(version)
File "/home/frain/micromamba/envs/region/lib/python3.9/site-packages/pip/_vendor/packaging/version.py", line 202, in init
raise InvalidVersion(f"Invalid version: '{version}'")
pip._vendor.packaging.version.InvalidVersion: Invalid version: 'RegionCLIP'

Chating version=get_version() to version='0.1.0' in setup.py fixed it for me.

Changing version=get_version() to version='0.1.0' in setup.py fixed it for me.

Thank you. Now it worked

Changing version=get_version() to version='0.1.0' in setup.py fixed it for me.

Thank you

Changing version=get_version() to version='0.1.0' in setup.py fixed it for me.

Thank you


Website down - reliable source of binaries?

Hi, don't know if you noticed but the website has been down for quite some time now. Is there another reliable source to download binaries from?

Try:
http://crewchief.isnais.de/CrewChiefV4.msi


Node parameter types, configuration form, and persistence

Fixes bug where session graph was not getting updated by /new and /open endpoints (because they are exempt from the middleware)
Defines OPTION_TYPES attr on ReadCsvNode, and sends to front-end in node list
Renders node configuration form based on these fields and types
Adjusts the JS CustomNodeModel to distinguish between node info (e.g. name, color) and config options (filename, delimiter)
Integrates node configuration with update node endpoint

~Although options set on the front-end via the configuration form are maintained in the JS state, I haven't hooked it up to the endpoint that updates nodes on the server. If I get it done before this PR is merged, I think it fits in here well.~

While working on integrating the update node endpoint, I realized that I fucked things up by changing the signature of node_factory(). It's also used in pyworkflow.Workflow.get_node(). I'll try to fix this tomorrow. Sorry!

Reverted the node factory behavior, and integrated the update node endpoint. Now configuring a node on the front-end is reflected on the server!
To test:

Create a Read CSV node (the only one with parameter types set up)
Click the gear, fidget with the options, click save
(Keep an eye on the terminal to see the server responses --- the update endpoint sends the computational representation of the updated node)
Save to JSON, clear the workspace, and load it back --- your configuration should have persisted (both on the front and back ends)

@reelmatt Exactly, just for rendering the form. On the front-end they interact very slightly with the actual options to set the default values in the form, so the keys must match the DEFAULT_OPTIONS keys. The nested dicts feel super clunky so I'm open to some other representation if anyone's got one.
Just an explanatory note for anyone exploring the front-end code: options is already used by the react-diagrams base classes to indicate properties of the visual node (color, position, etc.). So I designated config as the attribute to store the back-end options (parameters for node execution). So when you see node.options.whatever, that's usually a static property of the node; node.config.whatever is accessing a configurable parameter that will eventually passed into pandas. Again, maybe worth refactoring if someone has something cleaner.


Non uniform coverage of the image space in progressive rendering mode?

That's a known effect of the Halton sequence that is used to sample the image. See the test case named SampleImagePlaneWithHaltonSequence in https://github.com/dictoon/appleseed/blob/master/src/appleseed/foundation/meta/tests/test_qmc.cpp.


SOLR-16825: Migrate v2 definitions to 'api' module

https://issues.apache.org/jira/browse/SOLR-16825
Description
SOLR-16825 added a new gradle module, 'api', which holds v2 API definitions as interfaces.  This allows us to generate an OAS (and SolrRequest implementations from that) as a part of the solrj build.
But these artifacts (the OAS and generated Java code), only cover the v2 APIs that have interfaces in the 'api' module.  We need to extract interfaces to live in 'api' for each v2 API in 'core' that doesn't already have one.
Solution
This PR creates 'api' interfaces for a number of v2 APIs, allowing SolrRequest implementations to be generated for them.  The following APIs are covered in this PR:

delete replica property
delete replica
delete (i.e. "clear") node
delete collection snapshot
delete collection backup

Tests
Manual inspection of the generated OAS and SolrRequest implementations.
Checklist
Please review the following and check all that apply:

[x] I have reviewed the guidelines for How to Contribute and my code conforms to the standards described there to the best of my ability.
[x] I have created a Jira issue and added the issue ID to my pull request title.
[x] I have given Solr maintainers access to contribute to my PR branch. (optional but recommended)
[x] I have developed this patch against the main branch.
[ ] I have run ./gradlew check.
[ ] I have added tests for my changes.
[ ] I have added documentation for the Reference Guide

Yeah, the diff is large for sure.
I'd argue though that this is pretty deceptive though, re: "verbosity".  This commit adds lines in isolation sure, but if it ultimately lets us delete a bunch of existing SolrJ (and maybe even ref-guide) code that we've been maintaining by hand up to this point...well then the end result will be a huge "net-negative" in terms of LOC.
(In theory we could nuke the v1 SolrRequest classes in this PR, if we wanted to commit to removing them in 10.0.  I was reluctant to do that here though, since there's a lot of v2 api work remaining and the 10.0 timeline being a real unknown...)
Anyway in the short term I def agree it's non-ideal.


feat: split long keeper file into several files to cleanup incentive …

Split long keeper file into several files to cleanup incentive module codebase and better understandings to reviewers.

The change looks good overall - could you check few of the comments?

duplicated of #105


Dev

Experimenting with Fel radiation instead of Rust radiation

borders
comments
titlebar & statusbar

Reminder: setup CI build


Add tippy tip that says "Copied" when you copy/paste stuff from Zulip

When we copy/paste things like stream email addresses or bot API keys, we should get a tooltip that says "Copied", similar to what already happens when we copy/paste certain snippets from our documentation.
More detail here: https://chat.zulip.org/#narrow/stream/9-issues/topic/no.20feedback.20after.20copying.20URL
This should be a relatively simple change once you audit the app for places where this is needed and track down the relevant code.

@zulipbot add "help wanted" "area: settings UI"

A possible solution for the places where an icon button is used to copy something is to add a tippy saying "Copied" whenever that button is clicked -- as done in our docs. (eg. https://zulip.com/api/incoming-webhooks-walkthrough).

@zulipbot claim

Hi can anyone tell this issue is still open or not ?

Hey, @Sohail700 it's great to see that you want to work on this issue.
But right now it has been claimed by @lapaz17. So, I would suggest you finding other "help wanted" marked issues.
Reading this might help - https://zulip.readthedocs.io/en/latest/contributing/contributing.html#picking-an-issue-to-work-on

Unassigning myself from this Issue to work on other Issues

i would like to work on this issue, it seems no one is working on this

@codebysid It's great to see your interest in solving this issue. Although I would recommend you to read out previous comments whenever trying to claim an issue as it will generally tell if a PR is opened for that issue or not.
Since #26206 has been opened for this issue so I would recommend finding other "help wanted" labeled issues to work on. Also, take a look at - picking an issue to work on.


[WIP] 46 (Part 2) - Recurring events in event list

Pre-flight check-list
Before raising a pull request

[ ] Documentation
[ ] Unit tests

Pre-merge check-list

[ ] Link to Trello ticket/GitHub issue (If applicable)
[ ] Any risky areas identified
[ ] Test plan provided
[ ] Tester approved

Tester check-list

[ ] Tested on multiple devices / OS versions (Test on the physical device(s) you have access to, otherwise use BrowserStack):

[ ] Galaxy S8 (Android 7.0/8.0)
[ ] Galaxy S7 (Android 6.0)
[ ] iPhone X (iOS 11.x)
[ ] iPhone 8 (11.x)
[ ] iPhone 7 (iOS 10.x)

Optional:

[ ] Google Pixel 2
[ ] Galaxy S8 Plus
[ ] Galaxy S7 Edge
[ ] Galaxy S6
[ ] iPhone 7+
[ ] iPhone 6

Accessibility Testing (If applicable)

[ ] Text-to-Voice (Android: Voice Assistant / iOS: Speak Selection)
[ ] Large Text (=<200%)
[ ] Landscape Screen orientation

Weak connection testing (If applicable)

[ ] Airplane mode
[ ] 2G/3G Network Settings

I think I'm done. This is now ready for review

I think I'm done. This is now ready for review


concurrent_connectivity_test times out (multiple platforms)

Seen in gRPC_master_windows #2748, #2749, #2756, and #2757.

concurrent_connectivity_test  this also fails in multiple sanitizers, as well as on linux & macos.

running this locally under asan sanitizer fails relatively frequently with:
2017-06-15 00:04:09,063 my port server is version 20

D0615 00:04:09.488698043  144301 test_config.c:388]          test slowdown factor: sanitizer=3, fixture=1, poller=1, total=3
I0615 00:04:09.489113122  144301 ev_epollsig_linux.c:74]     epoll engine will be using signal: 40
D0615 00:04:09.489135928  144301 ev_posix.c:106]             Using polling engine: epollsig
D0615 00:04:09.489196405  144301 dns_resolver.c:301]         Using native dns resolver
D0615 00:04:09.494177637  144301 concurrent_connectivity_test.c:180] Wave 1
I0615 00:04:09.519484250  144380 subchannel.c:692]           Connect failed: {"created":"@1497510249.518575270","description":"Failed to connect to remote host: OS Error","errno":111,"file":"src/core/lib/iomgr/tcp_client_posix.c","file_line":200,"os_error":"Connection refused","syscall":"connect","target_address":"ipv6:[::1]:54321"}
I0615 00:04:09.527846608  144380 subchannel.c:692]           Connect failed: {"created":"@1497510249.527131950","description":"Failed to connect to remote host: OS Error","errno":111,"file":"src/core/lib/iomgr/tcp_client_posix.c","file_line":200,"os_error":"Connection refused","syscall":"connect","target_address":"ipv4:<IP_ADDRESS>:54321"}
I0615 00:04:09.530225988  144428 subchannel.c:488]           Retry in 19.995136864 seconds
I0615 00:04:09.530489276  144380 subchannel.c:488]           Retry in 19.987724379 seconds
D0615 00:04:12.717514600  144301 concurrent_connectivity_test.c:190] Wave 2
D0615 00:04:15.423303823  144301 concurrent_connectivity_test.c:214] Wave 3
E0615 00:04:17.749127620  145637 ev_epollsig_linux.c:1556]   add_poll_object: {"created":"@1497510257.748885128","description":"polling_island_add_fds","file":"src/core/lib/iomgr/ev_epollsig_linux.c","file_line":250,"referenced_errors":[{"created":"@1497510257.748872986","description":"OS Error","errno":9,"file":"src/core/lib/iomgr/ev_epollsig_linux.c","file_line":356,"os_error":"Bad file descriptor","syscall":"epoll_ctl (epoll_fd: 26) add fd: 18 failed with error: 9 (Bad file descriptor)"},{"created":"@1497510257.748895515","description":"OS Error","errno":9,"file":"src/core/lib/iomgr/ev_epollsig_linux.c","file_line":415,"os_error":"Bad file descriptor","syscall":"epoll_ctl (epoll_fd: 19) delete fds[0]: 18 failed with error: 9 (Bad file descriptor)"}]}
D0615 00:04:19.001046141  144301 iomgr.c:92]                 Waiting for 1 iomgr objects to be destroyed
D0615 00:04:20.011777942  144301 iomgr.c:92]                 Waiting for 1 iomgr objects to be destroyed
D0615 00:04:21.020426671  144301 iomgr.c:92]                 Waiting for 1 iomgr objects to be destroyed
D0615 00:04:22.037685517  144301 iomgr.c:92]                 Waiting for 1 iomgr objects to be destroyed
D0615 00:04:23.042987353  144301 iomgr.c:92]                 Waiting for 1 iomgr objects to be destroyed
D0615 00:04:24.043766483  144301 iomgr.c:92]                 Waiting for 1 iomgr objects to be destroyed
D0615 00:04:25.044610168  144301 iomgr.c:92]                 Waiting for 1 iomgr objects to be destroyed
D0615 00:04:26.045361794  144301 iomgr.c:92]                 Waiting for 1 iomgr objects to be destroyed
D0615 00:04:27.046142817  144301 iomgr.c:92]                 Waiting for 1 iomgr objects to be destroyed
D0615 00:04:28.046991437  144301 iomgr.c:120]                Failed to free 1 iomgr objects before shutdown deadline: memory leaks are likely
D0615 00:04:28.047052384  144301 iomgr.c:72]                 LEAKED OBJECT: tcp-client:ipv6:[::1]:42481 fd=18 0x60d00000ce40
D0615 00:04:28.047753346  144301 ev_posix.c:106]             Using polling engine: epollsig
D0615 00:04:28.047811107  144301 dns_resolver.c:301]         Using native dns resolver
D0615 00:04:32.155278355  144301 ev_posix.c:106]             Using polling engine: epollsig
D0615 00:04:32.155321610  144301 dns_resolver.c:301]         Using native dns resolver

=================================================================
==144301==ERROR: LeakSanitizer: detected memory leaks

this error might not be the same as above failures, but it looks due to cq's being destroyed without a shutdown, in the test

Keeps happening: https://grpc-testing.appspot.com/job/gRPC_master_windows/3005/testReport/junit/(root)/c_windows_dbg_native/vsprojects_Debug_concurrent_connectivity_test_exe/

#11788 should be able to fix the failure @apolcyn caught on Linux. But it does not help with the windows failures.

Closing this, duplicate of #11188 for windows.

Seen here:
https://sponge.corp.google.com/target?id=a2174630-c930-426b-83e1-a559292d12c1&target=github/grpc/c_windows_opt_native&searchFor=&show=FAILED&sortBy=STATUS

Seeing this less often now, dropping the P1 label.

Looks like this might have been fixed by https://github.com/grpc/grpc/pull/13031.


Update README.md - promote vault

Vault is the most used provider right now, with people reporting that they are using it with hundreds of secrets and no problems. Also, Vault is the only one that enabled us to write extensive e2e testing since we can just spin vault up in CI. I want to promote it to stable to ease people's minds :smile: but let me know if you think beta would be more appropriate.

/approve

/merge


v2.6.0

What's changed

Spot workflows are now retried (up to 2 times) if interrupted. Fixes #160. Requires a permission update (write permission for Actions instead of read) for existing installations. You should receive an email with instructions after upgrading.
Add runs-on-workflow-job-id to the instance tags once the job has started. Also add it to prometheus metric labels.
Rename tag runs-on-job-started => runs-on-workflow-job-started

TODO

add workflow job conclusion to prometheus labels
Allow to use 1 NAT gateway per AZ instead of a single one for all. Fixes #165.

Will there be a way to opt out of this with some kind of label like retry-if-interrupted=false?
Defaulting to being retry-able seems like a sane default, but there are some workflows where it may not be safe or desirable to re-attempt a failed partial run (which may not have been able to clean up after itself). All the scenarios that come to mind are stateful systems external to the workflow itself, but... yeah. 😮💨

Will there be a way to opt out of this with some kind of label like retry-if-interrupted=false?
Defaulting to being retry-able seems like a sane default, but there are some workflows where it may not be safe or desirable to re-attempt a failed partial run (which may not have been able to clean up after itself). All the scenarios that come to mind are stateful systems external to the workflow itself, but... yeah. 😮💨

Yes, a label retry=false or retry=1 to disable / limit the number of retries will be present.

@colstrom I have moved the ADR to the main repo so that you can have a look - https://github.com/runs-on/runs-on/pull/164/files#diff-26d40f63ae7916a74eae6fbaf7ee56dea525f5d0e3db352cc5a7008a2d5ed1b6

Thanks! I'll give it a look and comment there if I have anything (potentially) useful to say. ^_^


Feature/bge nima  sal 579

Critical Changes
Changes
Issues Closed
New Metadata
Deleted Metadata

This PR was closed because this was merged by PR 3433


Stats analyzer uses validator

Stats analyzer calls validator to check the instruction and update
validator state.
Fixed unit tests (validator was failing).

Rebased and pushed into master as b4cf371936


🍱 Crop favicon

Hello! At first glance I found doc.rust-lang.org/cargo's favicon to be a bit small compared to other site's favicons. Looked into it and found that the logo hasn't been cropped. All I did was crop the favicon in this PR. As you can see from the image below (new favicon on the right) it looks much better:

This has been done to crates.io's favicon as well in rust-lang/crates.io#3411. Thanks, you maintainers! :)

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @ehuss (or someone else) soon.
If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.
Please see the contribution instructions for more information.

crates.io likes it. So:
@bors r+
Thank you!

:pushpin: Commit 21f50cd908da4912ecbd985a0a5d9411b68254b4 has been approved by Eh2406

:hourglass: Testing commit 21f50cd908da4912ecbd985a0a5d9411b68254b4 with merge 5c8922ecf2bed74c2770b50c528c5086a8a7c0e0...

:sunny: Test successful - checks-actions
Approved by: Eh2406
Pushing 5c8922ecf2bed74c2770b50c528c5086a8a7c0e0 to master...


Is it mobile responsive ?

Is it mobile responsive ?

It should be, but that really depends on your page source code. I don't think the demo is very mobile friendly, but as long your page is mobile responsive, the sidebar will be too. 😁

Thanks a lot for the information.
On Nov 27, 2017 9:47 PM, "Ionică Bizău (Johnny B.)" <
<EMAIL_ADDRESS>wrote:
Closed #32 https://github.com/jillix/jQuery-sidebar/issues/32.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jillix/jQuery-sidebar/issues/32#event-1359582366, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AK7T3TrSkkJ27RZ9-bkwGfbx7GeTsFHiks5s6uCLgaJpZM4Qr4ww
.


Sourcemap not generated for .js file despite devtool: source-map

Bug report

What is the current behavior?
We're using a generated webpack config to build a universal app, which creates bundles for both client and server with slightly different settings. Both configurations have devtool set to source-map.
Everything works fine for the server bundle:
Hash: 597b54737e404294e0b9
Version: webpack 4.11.1
Time: 27722ms
Built at: 2018-08-27 16:38:04
       Asset      Size  Chunks             Chunk Names
    index.js   580 KiB       0  [emitted]  index
    index.js.map  1.24 MiB       0  [emitted]  index

But unfortunately no sourcemaps are generated for the client bundle:
Hash: 11ddd7c3bc6632164f26
Version: webpack 4.11.1
Time: 57320ms
Built at: 2018-08-27 16:38:33
                                                        Asset       Size  Chunks                    Chunk Names
                   icons-3a7b76bed53f88b4268047371012d0be.svg   30.3 KiB          [emitted]
<EMAIL_ADDRESS> 6.17 KiB          [emitted]
           image-e5ec134a78154f727b28f71ef2de36e4.jpg    123 KiB          [emitted]
            hilfe-screen-cae3d789d4ad6141c56401fa51a2ddfe.jpg   42.6 KiB          [emitted]
             login-bg-01-fa6bcc86736142062a6e0ef643cb9dab.jpg   47.3 KiB          [emitted]
                               index-a8d5135f885209556039.css   8.13 KiB       0  [emitted]         index
                                index-cfa950c6fe7ef94591a4.js   1.41 MiB       0  [emitted]  [big]  index
                           index-a8d5135f885209556039.css.map   10.2 KiB       0  [emitted]         index
                                                 offline.html  608 bytes          [emitted]
Entrypoint index [big] = index-a8d5135f885209556039.css index-cfa950c6fe7ef94591a4.js index-a8d5135f885209556039.css.map

As you can see, the sourcemap is in fact generated for the .css file, but not for the .js file.
The client bundle is very big (for various reasons we can't code-split), but this doesn't seem to be the issue as the server bundle has a rather large size as well.
Is there a way to debug the sourcemap generation? There are no error messages or otherwise useful information about sourcemaps.
I tried using devtool: false in combination with SourceMapDevToolPlugin
new webpack.SourceMapDevToolPlugin({
        filename: '[file].map',
        moduleFilenameTemplate: undefined,
        fallbackModuleFilenameTemplate: undefined,
        append: null,
        module: true,
        columns: true,
        lineToLine: false,
        noSources: false,
        namespace: ''
      }),

The results are the same. No sourcemap for client/index.js.
If the current behavior is a bug, please provide the steps to reproduce.

What is the expected behavior?

Other relevant information:
webpack version:  4.11.1
Node.js version:  8.8.1
Operating System: Mac OS

I've found the problem - we added the UglifyJSPlugin further down in the config which, by default, does not generate source maps. Fixing this resolved the issue.


cups v2.3b1: Default Printer incorrect in Firefox / Qt (cupsGetDests / cupsGetDefault)

qt (and probably firefox) uses cupsGetDests to get a printer list, and the flag printers[i]->is_default to get default printer. this fails in 2.3 beta 1.
sample to reproduce:
#include <stdio.h>
#include <cups/cups.h>

int main(void)
{
  int i;
  cups_dest_t *dests, *dest;
  int num_dests = cupsGetDests(&dests);
  const char *pcDefault = cupsGetDefault ();

  for (i = num_dests, dest = dests; i > 0; i --, dest ++)
  {
    if (strcmp(pcDefault, dest->name) == 0) {
		printf("Default printer: %s (is_default=%d)\n", dest->name, dest->is_default);
    }
  }
  return (0);
}

output: Default printer: it1 (is_default=0)
expected: Default printer: it1 (is_default=1)
compile with
gcc -o cupstest `cups-config --cflags` cupstest.cpp `cups-config --libs`

tested on OpenSUSE 42.3 with repository "Printing" (https://build.opensuse.org/project/show/Printing)
cups <= 2.2.6 was good
cups 2.3b1 introduces this bug

cupsGetDefault returns the server default, cupsGetDests returns the client default which can be overridden by the user or local system admin.
What we need to see is the /etc/cups/lpoptions and ~/.cups/lpoptions on this system...

easy trest for me is on two system with $HOME on nfs.
good system:
> LANG=C ls -l /etc/cups/lpoptions ~/.cups/lpoptions
ls: cannot access /etc/cups/lpoptions: No such file or directory
ls: cannot access .../.cups/lpoptions: No such file or directory
> echo $PRINTER
it1
> rpm -qi cups-client | grep Version
Version     : 1.7.5

bad system:
> LANG=C ls -l /etc/cups/lpoptions ~/.cups/lpoptions
ls: cannot access '/etc/cups/lpoptions': No such file or directory
ls: cannot access '.../.cups/lpoptions': No such file or directory
> echo $PRINTER
it1
> rpm -qi cups-client | grep Version
Version     : 2.3b1

We set out default printer via environment variable.
I tried to set default printer via lpoptions -d it1 (=> "Default it1"), but this did not change anything.
the "bad system" worked correct until the update last week. All systems with this change lost their default printer. https://build.opensuse.org/package/rdiff/Printing/cups?linkrev=base&rev=344
(cups 2.2.6 -> cups 2.3b1)
We have an organisation with multiple similar systems. All systems with this update loose their default printer setting in firefox, no matter which user is logged in.

P.S.: is_default=0 is set for all printer with cups 2.3b1.

Hmm, will investigate further after the break...


Better testing

We don't want to depend on perfectqueue so much and test core logic.

This will be start after https://github.com/bm-sms/daimon-skycrawlers/issues/6

This is finished by https://github.com/bm-sms/daimon-skycrawlers/pull/16


ocamlPackages.mdx: 2.3.0 → 2.3.1

Description of changes
https://github.com/realworldocaml/mdx/blob/2.3.1/CHANGES.md
Things done

Built on platform(s)

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

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

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

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

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

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 257799 run on x86_64-linux 1

2 packages built:

framac
soupault


TiFlash: Fix playground stability

What problem does this PR solve?
Close #233
What is changed and how it works?
Add more check for TiFlash so that TiFlash is determined to start.
Check List
Tests

Manual test

Code changes

Has exported function/method change

Side effects

Possible performance regression
Increased code complexity
Breaking backward compatibility

Related changes

Need to cherry-pick to the release branch

Codecov Report

Merging #287 into master will increase coverage by 0.02%.
The diff coverage is 42.10%.

@@            Coverage Diff             @@
##           master     #287      +/-   ##
==========================================
+ Coverage   23.50%   23.52%   +0.02%
==========================================
  Files          36       36
  Lines        2936     2946      +10
==========================================
+ Hits          690      693       +3
- Misses       2152     2159       +7
  Partials       94       94

Impacted Files
Coverage Δ

cmd/list.go
15.57% <0.00%> (ø)

cmd/uninstall.go
35.59% <0.00%> (-0.62%)
:arrow_down:

cmd/mirror.go
46.27% <33.33%> (-0.79%)
:arrow_down:

pkg/repository/mirror.go
5.64% <33.33%> (+1.40%)
:arrow_up:

pkg/repository/v1_repository.go
60.55% <100.00%> (+0.36%)
:arrow_up:

Continue to review full report at Codecov.

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

@birdstorm please resolve the conflicts


Invalid request provided: AWS::CloudFront::Function: null

Description
Hi, I'm currently deploying a Laravel application. When trying to integrate static assets using lift, I get the following error:
CREATE_FAILED: websiteRequestFunction9E9EBB7A (AWS::CloudFront::Function)
Resource handler returned message: "Invalid request provided: AWS::CloudFront::Function: null (Service: CloudFront, Status Code: 409, Request ID: 3fb4cd8e-8fa4-4411-801a-2e2aabe17573)" (RequestToken: 95e93590-d1b5-409b-21a5-28a4b2e41d06, HandlerErrorCode: InvalidRequest)

Any hints about what could cause this?
How to Reproduce
service: ...

useDotenv: true

provider:
    name: aws
    # The AWS region in which to deploy (us-east-1 is the default)
    region: eu-central-1
    # Environment variables
    environment:
        APP_ENV: ${sls:stage}
    cfnRole: "<cloudformation role>"
    vpc:
        subnetIds:
          - ...
        securityGroupIds:
          - ...

package:
    # Files and directories to exclude from deployment
    patterns:
        - '!node_modules/**'
        - '!public/storage'
        - '!resources/assets/**'
        - '!storage/**'
        - '!tests/**'
        - '!.ddev/**'

functions:

    # This function runs the Laravel website/API
    web:
        handler: public/index.php
        runtime: php-82-fpm
        timeout: 28 # in seconds (API Gateway has a timeout of 29 seconds)
        events:
            - httpApi: '*'

    # This function lets us run artisan commands in Lambda
    artisan:
        handler: artisan
        runtime: php-82-console
        timeout: 720 # in seconds
        # Uncomment to also run the scheduler every minute
        #events:
        #    - schedule:
        #          rate: rate(1 minute)
        #          input: '"schedule:run"'

constructs:
    website:
        type: server-side-website
        assets:
            '/js/*': public/js
            '/css/*': public/css
            '/build/*': public/build
            '/vendor/*': public/vendor
            '/favicon.ico': public/favicon.ico
            '/robots.txt': public/robots.txt

plugins:
    - ./vendor/bref/bref
    - serverless-dotenv-plugin
    - serverless-lift

Additional Information
Versions of the serverless plugins:
        "serverless-dotenv-plugin": "^6.0.0",
        "serverless-lift": "^1.25.1",

And serverless itself:
Framework Core: 3.30.1 (local) 3.30.1 (global)
Plugin: 6.2.3
SDK: 4.3.2

After way too much trial and error I finally identified the problem.
The creation CloudFormation::Function fails with a cryptic error (Invalid request provided: AWS::CloudFront::Function: null), but the status code of 409 (Conflict) gives it away. There was already a CloudFormation Function. Deleting it solved the issue.

I ran into this because I had two monorepos forked from the same source and both had "app" as the construct name for the website (as is in the example) and that was creating the same Logical ID on both stacks used for the function. Very confusing and not obvious behavior.


[Dashboard] After done exploring chart, should go back to current dashboard

Superset version
0.18.5
In any dashboard view, click “Explore chart”. making some changes and clicking “Save” (overwrite and save).
Expected results
going back to the current dashboard
Actual results
it will reload the page but still stay in the “explore chart” page

love this!  thanks for creating an issue for this @graceguo-supercat - this issue has bugged me for months

Notice: this issue has been closed because it has been inactive for 291 days. Feel free to comment and request for this issue to be reopened.


Fix reduce_empty for Julia >= 1.5

https://travis-ci.com/github/tkf/InitialValues.jl/jobs/339431455#L292
https://travis-ci.com/github/tkf/BangBang.jl/jobs/341253707#L331

Codecov Report

Merging #41 into master will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master      #41   +/-   ##
=======================================
  Coverage   90.90%   90.90%
=======================================
  Files           2        2
  Lines          55       55
=======================================
  Hits           50       50
  Misses          5        5

Impacted Files
Coverage Δ

src/InitialValues.jl
87.50% <100.00%> (ø)

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 8ae9509...13c069c. Read the comment docs.

https://travis-ci.com/github/tkf/InitialValues.jl/jobs/341254978

ref https://github.com/tkf/BangBang.jl/pull/158


DIRAPI-397 Update Copyright Year

set to 2024

+1
As an aside should we change this text to 2003-present
IIRC, the start date is the important one (IANAL)


feat: implement global settings.NumberOfThreads

Closes #10
Closes #11
Added a new class NumberOfThreads under the settings module that makes it possible to set the number of threads globally. This is mainly useful in the tests, where we want to run the StateTransitionManager single-threaded for test coverage (#11). Previously this was done by setting number_of_threads=1 in each test.

pre-commit.ci run


Fix bug #1851 - recursively walk referenced assemblies.

This fixes bug #1851. Unit test enclosed.
Care was taken to make the walking process use a stack instead of recursion to avoid stack overflows.

 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.:x: rwasef1830 sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.


iPhone heating up, when using multiple extended_image from network

return ExtendedImage.network(
    imageList[I],
    width: double.maxFinite,
    height: double.maxFinite,
    fit: BoxFit.cover,
    enableMemoryCache: true,
    cache: true,
    borderRadius: BorderRadius.only(
      topLeft: Radius.circular(borderRadius),
      topRight: Radius.circular(borderRadius),
    ),
    loadStateChanged: (state) {
      if (state.extendedImageLoadState == LoadState.loading)
        return Image.asset("assets/images/placeholder_loading.png", fit: BoxFit.cover,);
      else if (state.extendedImageLoadState == LoadState.failed)
        return Image.asset("assets/images/placeholder.png", fit: BoxFit.cover,);
      else return state.completedWidget;
    },
  );

Flutter Doctor
kushalpanchal@Kushals-MacBook-Pro-2 flutter_t_app % flutter doctor -v
[✓] Flutter (Channel stable, 2.2.3, on macOS 11.5.1 20G80 darwin-arm, locale en-IN)
    • Flutter version 2.2.3 at /Users/kushalpanchal/Developer/flutter
    • Framework revision f4abaa0735 (5 weeks ago), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/kushalpanchal/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.5.1, Build version 12E507
    • CocoaPods version 1.10.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
    • 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 11.0.10+0-b96-7281165)

[✓] VS Code (version 1.59.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.25.0

[✓] Connected device (2 available)
    • Kushal’s iPhone (mobile) • 00008030-001E1DD821B8402E • ios            • iOS 14.6
    • Chrome (web)             • chrome                    • web-javascript • Google Chrome 92.0.4515.131

• No issues found!

As we can see in the attached screen shot, as soon as the images are loaded processor touches 100%

I am facing the same issue with my project.
When using ExtendedImage.network, the CPU goes to 150%
But when i use Image.network, the CPU is around 10%.

please open flutter devtools， see what happens at that moment.  i can't reproduce at my side.

close without any more detail, plz reopen if it still exist


Lession6: priceFeed.latestRoundData() raised exception using mainnet-fork-dev network

Issue Detail
Everything goes well when using bothdevelopmentandrinkebynetworks. When usingmainnet-fork-dev, scripts/deploy.jsgoes well, but thetests/test_fund_me.pyfailed. The error is VirtualMachineError: revert caused by code fund_me.getEntranceFee() . The detail is:

brownie run scripts/deploy.py --network mainnet-fork-dev

brownie test -s  --network mainnet-fork-dev

Code & Config
Clike to expand `contracts/FundMe.sol` code
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.6;

import<EMAIL_ADDRESS>import<EMAIL_ADDRESS>
contract FundMe {
    using SafeMathChainlink for uint256;

    mapping(address => uint256) public addressToAmountFunded;
    address[] public funders;
    address public owner;
    AggregatorV3Interface public priceFeed;

    constructor(address _priceFeed) public {
        priceFeed = AggregatorV3Interface(_priceFeed);
        owner = msg.sender;
    }

    function fund() public payable {
        uint256 minimumUSD = 50 * 10**18;
        require(
            getConversionRate(msg.value) >= minimumUSD,
            "You need spend more ETH!"
        );
        addressToAmountFunded[msg.sender] += msg.value;
        funders.push(msg.sender);
    }

    function getVersion() public view returns (uint256) {
        return priceFeed.version();
    }

    function getPrice() public view returns (uint256) {
        (, int256 answer, , , ) = priceFeed.latestRoundData();
        return uint256(answer *<PHONE_NUMBER>0);
    }

    function getConversionRate(uint256 ethAmount)
        public
        view
        returns (uint256)
    {
        uint256 ethPrice = getPrice();
        uint256 ethAmoutInUsd = (ethPrice * ethAmount) /<PHONE_NUMBER>000000000;
        return ethAmoutInUsd;
    }

    function getEntranceFee() public view returns (uint256) {
        uint256 minimumUSD = 50 * 10**18;
        uint256 price = getPrice();
        uint256 precision = 1 * 10**18;
        return (minimumUSD * precision) / price;
    }

    modifier onlyOwner() {
        require(msg.sender == owner);
        _;
    }

    function withdraw() public payable onlyOwner {
        msg.sender.transfer(address(this).balance);

        for (
            uint256 funderIndex = 0;
            funderIndex < funders.length;
            funderIndex++
        ) {
            address funder = funders[funderIndex];
            addressToAmountFunded[funder] = 0;
        }

        funders = new address[](0);
    }
}

Clike to expand python scripts code

scripts/deploy.py

from brownie import FundMe, MockV3Aggregator, network, config
from scripts.helpful_scripts import get_account, deploy_mocks, LOCAL_BLOCKCHAIN_ENVIRONMENTS
from web3 import Web3

def deploy_fund_me():
    account = get_account()
    if network.show_active() not in LOCAL_BLOCKCHAIN_ENVIRONMENTS:
        price_feed_address = config["networks"][network.show_active()][
            "eth_usd_price_feed"
            ]
    else:
        deploy_mocks()
        price_feed_address = MockV3Aggregator[-1].address

    print(f"DEBUG INFO: File:deploy.py func:deploy_fund_me price_feed_address:{price_feed_address}")

    fund_me = FundMe.deploy(
        price_feed_address,
        {"from": account},
        publish_source=config["networks"][network.show_active()].get("verify"),
    )

    print(f"Contract deployed to {fund_me.address}")
    return fund_me

def main():
    deploy_fund_me()

scripts/helpful_scripts.py

from brownie import network, config, accounts, MockV3Aggregator
from web3 import Web3

DECIMAL = 18
STARTING_PRICE = 2000
FORKED_LOCAL_ENVIRONMENTS = ["mainnet-fork", "mainnet-fork-dev"]
LOCAL_BLOCKCHAIN_ENVIRONMENTS = ["development", "ganache-local"]

def get_account():
    if (network.show_active() in LOCAL_BLOCKCHAIN_ENVIRONMENTS
        or network.show_active() in FORKED_LOCAL_ENVIRONMENTS):
        return accounts[0]
    else:
        return accounts.add(config["wallets"]["from_key"])

def deploy_mocks():
    print(f"The active network is {network.show_active()}")
    print("Deploying Mocks...")
    if len(MockV3Aggregator) <= 0:
        MockV3Aggregator.deploy(DECIMAL, Web3.toWei(STARTING_PRICE, "ether"), {"from": get_account()})
    print("Mocks Deployed!")

Clike to expand `brownie-config.yaml` code
dependencies:
  # - <organization/repo>@<version>
  -<EMAIL_ADDRESS>compiler:
  solc:
    remappings:
      - '<EMAIL_ADDRESS>dotenv: .env
wallets:
  from_key: ${PRIVATE_KEY}
networks:
  default: development
  rinkeby:
    eth_usd_price_feed: '0x8A753747A1Fa494EC906cE90E9f37563A8AF630e'
    verify: True
  mainnet-fork-dev:
    eth_usd_price_feed: '0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419'
    verify: False
  development:
    verify: False
  ganache-local:
    verify: False

.env
PRIVATE_KEY = 0xfcda96...
WEB3_INFURA_PROJECT_ID = dc40c63c...
ETHERSCAN_TOKEN = D64212VCIII...

brownie mainnet-fork-dev network info

Trouble Shotting
After debug, I make sure the failure is caused by calling method priceFeed.latestRoundData(). I tried to remove the checking price code in the FundMe.fund(), and then the test case passed. And then I wirte a test contract and test deploy script like these:

test contract

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.6;

import<EMAIL_ADDRESS>
- test contract
```solidity
{
    function latestRoundData() public view returns (int256) {
        AggregatorV3Interface priceFeed = AggregatorV3Interface(
            0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419
        );
        (, int256 answer, , , ) = priceFeed.latestRoundData();
        return answer;
    }
}

test deploy script

from brownie import accounts, Test

def main():
    account = accounts[0]
    test = Test.deploy({"from": account})
    print(test.latestRoundData())

And then I run brownie run scripts/test.py --network mainnet-fork-dev, failed with the same error.
So I found out there are something wrong in calling the prize feed contract method when using my mainnet-fork-dev.  But I checked the price feed contract address and the info of mainnet-fork-dev network are correct.
I don't know how to figure out this error. I'm stuck here for a day🥲. Would anybody help me? I would appreciate any help. 🙏

I didn't do anything. But I try again today, and it work out. So werid

I didn't do anything. But I try again today, and it work out. So werid


Validate that there is sufficient font fallback on Windows

See #30700 for context. Most of the issues that have been reported have been on Linux, but we should do more testing on Windows to ensure that we have sufficient fallback logic implemented on Windows (in particular for cases like emoji and other character-not-available-in-this-font cases).

I did some simple testing of cases that have been problematic on Linux (including emoji, Japanese, and Arabic) and all worked fine, so it seems like the default font on Windows has good coverage. Giving that, closing; if anyone encounters specific issues we can track those as they come up.


🌐 Fix Korean translation for docs/ko/docs/index.md

Hello, thank you all for your efforts.
While reading your translations, I found tiny things that I would recommend to change.

Complemented a few uncomfortable translations.
Changed the tones of some sentences to suit the standard translation guide.

Please see if you like those changes, and feel free to tell me if not :)
This PR complements docs/ko/docs/index.md (Korean translation of index.md)
related : #2017

Awesome, thank you @SueNaEunYang! :nerd_face: :mag:
As @hard-coders already approved it and he's leading the Korean translations, I'll merge it right away, without waiting for more approvals. :rocket:


Add support for Zepto (the aerogel-weight jQuery-compatible JavaScript library)

This makes mobile focused-projects which use Zepto instead of jQuery to benefit from Sharrre.

Thanks ! It's been merge in the 2.0.0 branch !


Transfer learning

Hi, thanks for the great implementation. I was wondering if you have any guidelines for performing transfer learning to smaller datasets? I have been trying to start from the pre-trained model and then fit to a new and smaller (~500 samples) dataset but the general problem I have is that the attention alignments become very odd and it no longer aligns well. Are there any tricks to do this better (lower learning rates, etc) or to diagnose problems with alignment? Thank you.

Hi, thanks for the great implementation. I was wondering if you have any guidelines for performing transfer learning to smaller datasets? I have been trying to start from the pre-trained model and then fit to a new and smaller (~500 samples) dataset but the general problem I have is that the attention alignments become very odd and it no longer aligns well. Are there any tricks to do this better (lower learning rates, etc) or to diagnose problems with alignment? Thank you.

I think maybe you can try some adaptation methods like Merlin does?

There are a few things we can do.

Train on more voices
Penalize the model a bit more with dropout. Use extra prenet/dropout
layers.
In my case, I had to bump up the strength of the CBHG component (I use
Tacotron 1 setup). In Tacotron 2 we might simply want to use more
convolutional layers.
I am told by a few people (although this is not very helpful ...) that
other forms of attention might be worth trying. In particular, GMM
attention like in the voice loop paper.

pravn.wordpress.com
On Mon, Jul 15, 2019 at 11:45 PM Yablon<EMAIL_ADDRESS>wrote:

Hi, thanks for the great implementation. I was wondering if you have any
guidelines for performing transfer learning to smaller datasets? I have
been trying to start from the pre-trained model and then fit to a new and
smaller (~500 samples) dataset but the general problem I have is that the
attention alignments become very odd and it no longer aligns well. Are
there any tricks to do this better (lower learning rates, etc) or to
diagnose problems with alignment? Thank you.
I think maybe you can try some adaptation methods like Merlin does?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/NVIDIA/tacotron2/issues/223?email_source=notifications&email_token=AAEGOVJONS35CP4DOKTJIPLP7VU7HA5CNFSM4HZHLB7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZ733MI#issuecomment-511688113,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAEGOVPYEA2XAEBYY43P673P7VU7HANCNFSM4HZHLB7A
.

Did you have any luck in getting the transfer to work? I'm looking to do something similar but unsure how to start - do I simply train up the large model and then replace the voice samples?

Yes, you essentially train the large model and then replace that with your
smaller dataset. We recently put up our voice conversion work on arxiv:
https://arxiv.org/abs/1907.07769
There are several things to note.

Sampling rate differences: In my own experiments, I could not get things
to work @16 kHz, so we ran our experiments at 22 kHz.
Prosody variations: Typically, we want the adapted dataset to be
similar to the large training dataset. For example, if you train on
female voices (say, with ljspeech), then your adapted dataset might work
better with female voices. Train with more than one dataset.
Hyperparameters: Things like hop size matter. YMMV
Attention mechanism: Although we implement additive attention, it is
conceivable that better results might be obtained through other mechamisms.
In my work, I found multiplicative attention to work better, so we used
that. Even so, other people I spoke to suggested that GMM attention worked
for them best.
Hyperparameters: The more the merrier, when it comes to penalizing the
smaller dataset. So feel free to improve the capacity of the preprocessing
layers (CBHG, conv layers, etc.)
It is almost certain that additional supervision signal will help the
decoder inflate compressed encoder summary with extra hints. Just wait for
the soon to be released multispeaker model :).

pravn.wordpress.com
On Mon, Jul 29, 2019 at 9:02 AM Energy Analyst<EMAIL_ADDRESS>wrote:

Did you have any luck in getting the transfer to work? I'm looking to do
something similar but unsure how to start - do I simply train up the large
model and then replace the voice samples?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/NVIDIA/tacotron2/issues/223?email_source=notifications&email_token=AAEGOVJOT3V6LFUR6SW23MLQB4IATA5CNFSM4HZHLB7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3BFVSY#issuecomment-516053707,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAEGOVNPUIQ36UZQLPR72Y3QB4IATANCNFSM4HZHLB7A
.

@pravn
I have read your paper.
It's great.
In addition, I'm so sorry that I didn't reply to your email.

Thanks a lot for the replies. I did try something after some unsuccessful results with a less drastic approach, although it might have been unnecessarily complicated. I altered the architecture and the optimization as follows: (1) I added a second attention layer [with the 'v' property initialized to zero] and a second linear projection initialized to zero, they are added to the original attention layer and linear projection; (2) I added two losses, one without the new additional layers that is still trained on the old dataset, and one with the new layers that is trained on the new dataset. My hope was that this would regularize the model and help find a model that works on the two datasets with minimal changes on the original weights (freezing them was not working for me). I was expecting it would utterly fail since I never tried anything like this. It seems to capture the new voices and accents quite well, although I'm by no means an expert in TTS, so perhaps other might find it less good. At the moment my code is quite messy and I'm quite busy, but if this is interesting, after November I could try to block some time to clean it up and share it in a branch.

@diego-s for smaller datasets, we have found that decreased the dimensions in the prenet helps the model learn attention. Have you tried freezing the prenet weights?

@diego-s can you share the loss curves for your warm started model?

Closing due to inactivity.

Someone know the code for transfer learning ?


Replace emoji name strings with emoji

Fixup for #292
Markdown expects the actual grapheme clusters, and not the name of the emoji with colons around it. Switch to that.

/approve
/lgtm


Global alpha-beta

Currently at top level we run alpha-beta search basically in N threads, where N is number of possible moves. Each call of scoreAB receives the same (alpha, beta) interval.
Obviously, when we ended calculating one move (one thread finished working), we could of say other threads to tighten their intervals correspondingly.
For that, we have to have a pair of global mutable variables (globalAlpha, globalBeta), update them at the end of scoreMove and use them to refine current (alpha, beta) interval at each step.

Currently there is a simple version of global alpha-beta: "best" value is shared between the threads, but only on the first level of branching.


Overpayments don't find their way to retailer

Create order for 229.139 BTCz
Customer pays 240 BTCz
Retailer receives 229.1389
Unknown address t1chBW5iSsgQ81Akya2WfWe1NYnVwoKacED receives 10.861
Expected behaviour: Retailer should always receive all the funds the customer pays less any transaction charges. The retailer is in the best position to refund any overpayment, or there may be an out-of-band agreement with the customer to send an overpayment.

I notice address t1chBW5iSsgQ81Akya2WfWe1NYnVwoKacED was the receiving address for the next transaction. So perhaps the wallets are consecutive in an HD wallet?

Any accidental over-payments and the customer will need to contact BTCz.in in order the restore the funds.
Which is why customer email is needed.

As noted, the overpayment may not be accidental.

On making a payment, the buyer is making a contractual arrangement with the seller.
If the seller is asking the buyer to make a payment to a third party gateway, payments to that gateway result in completion and fulfilment of that contract. The gateway contract is therefore with the seller, not the buyer.
The seller is therefore legally bound to resolve issues which arise from payment processing and to fulfil orders which have been paid for in good faith in the manner the seller prescribes.
To be clear, there is no need for the customer's email address to be collected by the gateway, All payments from the customer MUST go to the seller since the seller is the counterparty to the contract. Otherwise, you need to contract with the seller to hold onto payments. And why would a seller want or agree to that?
That is the law of contract. This is an established precedent in common law countries for hundreds of years.
For me to recommend or use this system, the seller must receive any and all payments to addresses provided on the gateway less any agreed fees.
Please re-open this bug.

Ok sorted, now we don't require any email and over payments should get sent to the merchant

Thanks :-)