NetworkDiscoveryWithAnchors doesn't start being a server on its own

Overview
The only method (MaybeInitAsServer ) within NetworkDiscoveryWithAnchors that's supposed to switch from client to being the server after a certain time not receiving a broadcast is private and nowhere called. Furthermore, there's no time wait anywhere where the call could be put. One more: InitAsServer, that's called as a coroutine from MaybeInitAsServer does a few yields related to the hololens needing them, while the one other method StartHosting, doesn't.
Expected Behavior
One should be able to use the script with a configurable interval, after which the client starts being a server.
Actual Behavior
Script starts as client, that's it.
Unity Editor Version
MRTP5
Mixed Reality Toolkit Release Version
Latest dev branch

I'm not familiar with this class, is it in the Sharing With Unet Examples?

In the HoloToolkit-Unity-v1.2017.1.2 release the start method looked like this
private void Start()
        {
            // Initializes NetworkDiscovery.
            Initialize();

            if (!CheckComponents())
            {
                Debug.Log("Invalid configuration detected. Network Discovery disabled.");
                Destroy(this);
                return;
            }

            broadcastInterval = BroadcastInterval;

            // Start listening for broadcasts.
            StartAsClient();

            // But if we don't get a broadcast after some time we'll start broadcasting.
            // We randomize how long we wait so that we reduce the chances that everyone joins at
            // once and decides that they are the server.
            // An alternative would be to create UI for managing who hosts.
            float invokeWaitTime = 3 * BroadcastInterval + Random.value * 3 * BroadcastInterval;
            Invoke("MaybeInitAsServer", invokeWaitTime * 0.001f);
        }

The last two lines are missing in the method right now.

@FlorianJa thanks for that. I guess the class wasn't properly rewritten than. Thanks

I'd probably replace Invoke("MaybeInitAsServer", invokeWaitTime * 0.001f); with a co-routine so that the method name is a symbol instead of a string reference.

I would put this:
StartCoroutine(MaybeInitAsServer());

right after StartAsClient();
and would change MaybeInitAsServer() to the following:
private IEnumerator MaybeInitAsServer()
{
    yield return new WaitForSeconds(5.0f);

    if (TryBroadcasting)
    {
         yield return InitAsServer();
     }
}

where TryBroadcasting would be true by default and changed to false whenever a broadcast is received by the client.

Looks like some changes happened when examples were moved out of the Holotoolkit. Although the commit says "File renamed without changes. " the way the new NetworkDiscoveryWithAnchors works is different from the original. The original version was more an automatic host/client setup and with a join of the first session. The new version is building a list of sessions to be displayed in a UI and then let the user select which session to join. Maybe we should create two different NetworkDiscovery classes for this.

Luckily, not a result of the movement of the scripts into Examples ("File renamed without changes" is accurate).
This file has existed in its current form in the dev branch starting on May 31, 2017: https://github.com/Microsoft/MixedRealityToolkit-Unity/commits/8066264cad070f25094bdc79110ef827d08c292b/Assets/HoloToolkit/SharingWithUNET/Scripts/NetworkDiscoveryWithAnchors.cs
It didn't get merged into master until last October or so. The GitHub history is slightly misleading, since it doesn't contain merge commits (or the commit that deleted the file in Examples originally, for some reason).
The current version matches what's used in MR250. I'll take a look at the differences and potentially re-implementing the original behavior.

Closing issues older than 180 days. If this is still an issue, please reactivate with recent information.


Colab

yeah im down for that
On Mon, Nov 25, 2024 at 6:22 PM youngkrs @.***> wrote:

Closed #1
https://github.com/Donny-GUI/quickbooks-desktop-python/issues/1 as
completed.
—
Reply to this email directly, view it on GitHub
https://github.com/Donny-GUI/quickbooks-desktop-python/issues/1#event-15429263493,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AZ3GWQJT4A7HI76LWXQWAQD2CPLMXAVCNFSM6AAAAABSPKDAESVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJVGQZDSMRWGM2DSMY
.
You are receiving this because you are subscribed to this thread.Message
ID: <Donny-GUI/quickbooks-desktop-python/issue/1/issue_event/15429263493@
github.com>


fix(migrate): cleanup errors with links

https://github.com/prisma/migrations-team/issues/126

Thanks @do4gr for the review :)


typos in v2.6 Workflow Details page

Potential 'point of reference' confusion for users. The columns of data in the OnTask Table page are represented as rows in the Workflow Details page. The arrow buttons (green circle) allowing chosen columns to be moved to the left or right in the Table View are identified as moving columns 'up' or 'down' & 'top' or 'button' [sic] - should be 'bottom.'  Change for consistency.

suggested mouse over directions:
^ = move one column left in Table View
v = move one column right in Table View
^^ = move to first column (far left) in Table View
vv = move to last column (far right) in Table View

Solved in Version 2.6.1


Add friend buttons don't do anything

Describe the bug
Add friend buttons don't do anything
To Reproduce
Steps to reproduce the behavior:

Go to search
Try to add a friend

Expected behavior
I'd expect the pink button to change and the request to go through.
Smartphone (please complete the following information):

Device: LG
OS: Android

Additional context
Add any other context about the problem here.

@1000goalgaming Please provide Android OS Version

Android 7.0, LG K20V


how to quantify the reference transcripts

Hi，
I already have a reference transcript. How to quantify the existing reference transcripts and quantify the reference transcripts for each read sample
JXAUDZF

Mandalorion doesn't quantify reference transcripts, only transcripts it identifies from the data. It also doesn't match the isoforms it identifies to reference transcripts because there are other tools that do that. For example gffcompare and SQANTI. You can use the Mandalorion quantification and use those tools to identify your transcripts of interest.
-Chris


Backends to support

[x] ChainRulesCore: forward, reverse
[x] Diffractor
[x] Enzyme: forward, reverse
[x] FastDifferentiation
[x] FiniteDiff
[x] FiniteDifferences
[x] ForwardDiff
[ ] MathOptSymbolicAD?
[x] PolyesterForwardDiff
[x] ReverseDiff
[x] SparseDiffTools
[x] Symbolics
[x] Tapir
[ ] TaylorDiff
[x] Tracker
[x] Zygote

Add Tracker(?); even if it seems abandoned, it has been one of the most reliable ones on GPUs (maybe after Zygote). Also, we need it for https://github.com/LuxDL/Lux.jl/issues/544.

Easy peasy, I'll add it

The big list:
https://juliadiff.org/#the_big_list

who do you think wrote that list ;)

The backends ticked here all have basic support, but for optimal performance check out #115

We support everything but TaylorDiff, no clue if it's worth adding it. The only case it makes sense is probably second derivatives

TaylorDiff is too experimental, so I'm closing this in favor of the last remaining one https://github.com/odow/MathOptSymbolicAD.jl/issues/30


Pin golangci-lint version

We need to pin linter version to prevent failures introduced by changes in in
See https://ci.appveyor.com/project/janisz/dcos-cli/builds/33406479

Fixed by https://github.com/dcos/dcos-cli/pull/1542


OCNE Selector for UI

Looks good to me but you may want to wait on the tigera vs calico naming preference?

Will follow up on this Monday. Tigera tag is going to be the commonly changed parameter here.


Safari

This does not seem to work on Safari. Any ideas on how to fix this?

For Safari the streaming client js needs to be updated:

remove import DID_API from './api.json' assert { type: 'json' };
add DID_API const w/ API details
replace any use of report.mediaType w/ (report.mediaType || report.kind) - Safari doesn't have mediaType

add DID_API const w/ API details

can you give an example?


Update cordova to 5.1.1

This might be a good idea to ensure the security fix in Android 4.0.2 is the platform default. It may not be necessary but might be better on the safe side?
Happy to test things still work and submit to a PR for this.

I agree, it should definiately be at 5.0.0 or newer. It looks like the VS2015 RTM now defaults to 5.1.1, so I'll update this as a part of #48.


Styling

To avoid css bootstrap style leaking through the UI, styled-components library has been added.
Added styling for base components using styled-components for isolation.
Styles applied for the missing components such as buttons, form-fields (text-area) and typography elements (h tags).

It would be best to not use any packages like styled-components etc but just plain CSS.


Added action to run makemigrations --fix

Codecov Report

Merging #13 (bac1a95) into main (06737b8) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head bac1a95 differs from pull request most recent head 453e7d6. Consider uploading reports for the commit 453e7d6 to get more accurate results

@@          Coverage Diff          @@
##            main     #13   +/-   ##
=====================================
  Coverage   0.00%   0.00%
=====================================
  Files          2       2
  Lines        131     131
=====================================
  Misses       131     131

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 06737b8...453e7d6. Read the comment docs.


Removing acts-as-taggable-on gem

Hello,
How do I create a migration to destroy all tables associated with this gem? I can't seemt find any instructions.

@nkabbara Since you created them, you're probably in the best place to remove them. Perhaps find the migration that added them? If you're asking how to create a migration that drops tables, that'll be in the Rails docs.

No doubt, but I was expecting something like rake acts_as_taggable_on_engine:uninstall to clean things up for me.


Highlight not appear without title

How to fix its please help..

Just set a space for the title
title: " ",


Recursively instantiate arguments

Every list that is encountered is recursively passed to the instantiator, instead of trying to convert the list using the databinder.
This also fixes #145, by directly accessing the arguments from the arguments map, instead of the mapped propertyvalues used for the DataBinder.

Thanks @koenpunt !
I've polished things a bit, but I suspect we'll iterate a bit more with new cases and refactor this arrangement along the way.


Components that aren't in the storyboard are still linked from the documentation

Bug: What is the current behavior?
All components have a link to "show in storyboard", which links to the storyboard without a selected component
Bug: What is the expected behavior?
Components that aren't featured in the storyboard don't have a "view in storyboard" link
Bug: What browsers are impacted? Which versions?
All
What project are you opening an issue for?

react-instantsearch

I am sorry I fail at understanding exactly the issue, do we have bad links somewhere? If so please provide a bad link so I get it :D

panel for example doesn't have a dedicated story

We don't illustrate them through other stories but in their own kind

Way to go for me.

The only problem is that that link goes to the storyboard at the first story, because selectedKind=Panel doesn't exist.
However probably this isn't really a big deal.
url: https://community.algolia.com/instantsearch.js/react/storybook/?selectedKind=Panel&selectedStory=default

Alright, so let's create move some stories inside their own kind.

React InstantSearch has been moved here: https://github.com/algolia/react-instantsearch
This issue has either been rewritten or placed inside our backlog.


injector failed: walking shards store: write batch "0117500000-0118750000": next block check: block 117501197 does not follow last block 117500000 in db

Brief
Running injector on 1 shard. Failing for range<PHONE_NUMBER>-0118750000.  Retried the range twice, same result.
  Redoing that section did not help this time.

Your shards are like this:
-0116250000-0117500000
-0117500000-0118750000
Kylin recently had another segment where LIB did not advance: 117,441,412 - 117,501,185 this sadly spans of your current shards (the two mentioned above).
To workaround the problem, replace<PHONE_NUMBER>-0117500000 by<PHONE_NUMBER>-0118000000 and<PHONE_NUMBER>-0118750000 by<PHONE_NUMBER>-0118750000.
That should workaround the problem until we tackle the problem at its source.

Worked.


Possiblity to set elm-format as we can for elm-make?

Hey,
First of all thanks for the awesome vscode plugin!
Do you think it would be possible to add an elm.formatCommand option just like elm.makeCommand? i don't like installing npm packages globally, so elm-format is a dev dependency for my project, hence not in $PATH, and this option would allow me to still be able to use this nice feature :)

Sounds reasonable for me.

Isn't this solved?

Yes it is!


Improved English translation for introductory pages

This project is exciting and I hope to use it in my daily work. If this PR meets your quality standards, I'll continue improving translations for other pages as well.

@theZMC awesome work! Thank you very much!


Update documentation

It should tell how to execute program from docker (added in df82a7809e522befb8fccac9e18663af7af7c54e)

Probably should entirely rewrite it, add new dependencies and tell about yaml features
Also it would be a good thing to make readthedocs page about yaml files

Also need to write down process of adding new task

Next step would be to add descriptions to the tasks and describe how to create a new one.


Boss tasks can fail if a turtle taming adventure is encountered instead

Do you know which bosses are failing?

Boss bat and groar I think. Its because they are complete zones and NC's are allowed.

Could you share a log from one of the times this happened? Theoretically this line should be preventing this issue, but I guess there is a bug about it.
Specifically I am interested if the retry is actually happening (two location visits within the same "Executing ..." printout) and something else is broken, or if the retry check is broken (maybe on certain turtle adventures that were missed or typoed in this list)

Its been awhile so maybe the general case is fixed and its just weirdness with Alcove. Heres today in the Alcove.
Executing Crypt/Nook Boss [Route]
Wielding June cleaver...
Preference _concoctionDatabaseRefreshes changed from 926 to 927
Equipment changed.
Putting on Everfull Dart Holster...
Equipment changed.
CCS set to grimoire_macro

Preference nextAdventure changed from Cobb's Knob Harem to The Defiled Nook

Visit to Cyrpt: The Defiled Nook in progress...
Preference lastAdventure changed from Cobb's Knob Harem to The Defiled Nook

[387] The Defiled Nook
Preference lastEncounter changed from Knob Goblin Harem Guard to More Like... Hurtle
Encounter: More Like... Hurtle
You acquire an item: mocking turtle

Crypt/Nook Boss not completed!

Executing Crypt/Nook Boss [Route]

Visit to Cyrpt: The Defiled Nook in progress...

[387] The Defiled Nook
Preference lastEncounter changed from More Like...
Preference cosmicBowlingBallReturnCombats changed from 13 to 12
Round 0: discordance casts DARTS: THROW AT %PART1!
Round 1: Tog engulfs your opponent. It comes out looking slightly younger and less powerful.
Round 1: giant skeelton drops 10 attack power.
Round 1: giant skeelton drops 10 defense.
Round 1: giant skeelton takes 129 damage.
Round 1: Tog takes aim and blasts your foe with a yam for 45 damage!
Round 1: giant skeelton takes 45 damage.
Round 1: discordance wins the fight!
After Battle: As the skeelton collapses in a jumbled pile of bones, the Evilometer emits a single very loud beep.
Preference cyrptNookEvilness changed from 9 to 0
Preference cyrptTotalEvilness changed from 34 to 25
You acquire an item: skeleton bone
You acquire an item: skeleton bone
You acquire an item: skeleton bone
After Battle: You gain 1 energy
After Battle: You gain 1 energy
After Battle: You gain 1 Strengthliness
After Battle: You gain 1 Mysteriousness
Preference dartsThrown changed from 160 to 161
Preference _juneCleaverFightsLeft changed from 10 to 9
Preference _juneCleaverStench changed from 81 to 82
Preference sweat changed from 78 to 80
Preference _lastCombatWon changed from false to true
Preference familiarSweat changed from 478 to 479
Sending spading data for Designer Sweatpants to Excavator. Thanks!
Preference _currentDartboard changed from 7513:butt,7514:torso,7515:tail,7516:head to 7513:butt,7514:leg,7515:torso,7516:head,7517:arm
Preference _dartsLeft changed from 1 to 2

Preference _concoctionDatabaseRefreshes changed from 927 to 928
Crypt/Nook Boss completed!

Executing Crypt/Alcove Boss [Route]
CCS set to grimoire_macro

Preference nextAdventure changed from The Defiled Nook to The Defiled Alcove

Visit to Cyrpt: The Defiled Alcove in progress...
Preference lastAdventure changed from The Defiled Nook to The Defiled Alcove

[388] The Defiled Alcove
Preference lastEncounter changed from giant skeelton to More Like... Hurtle
Encounter: More Like... Hurtle
You acquire an item: mocking turtle

...

JavaScript exception: Task Crypt/Alcove Boss did not complete within 1 attempts. Please check what went wrong. (file:/G:/mafia/scripts/looprobot/looprobot.js#28104)
at file:/G:/mafia/scripts/looprobot/looprobot.js:28104 (checkLimits)
at file:/G:/mafia/scripts/looprobot/looprobot.js:34550 (execute)
at file:/G:/mafia/scripts/looprobot/looprobot.js:27767 (run)
at file:/G:/mafia/scripts/looprobot/looprobot.js:48036 (main)

Cranny failed today

Huh, interesting, so it is this line that is not working. I wonder why...

I thought I saw something different between Cranny/Alcove tasks vs the other two. But not sure.


[New Issue] Quest "Missing Ingredient" Will Not Complete

After delivering the meat the quest still shows in the mission window.

Details
https://www.reddit.com/r/Starfield/comments/16o5tek/bug_quest_missing_ingredient_will_not_complete/
https://www.reddit.com/r/Starfield/comments/16o3bag/missing_ingredient_mission_bugged/
https://starfieldwiki.net/wiki/Starfield:Missing_Ingredient
https://afktrack.afkmods.com/index.php?a=issues&i=33777
Game Version
<IP_ADDRESS>
Language
English (EN)
Have you recreated this issue on a new game?
Yes, I can recreate this issue.
Reproduction Steps
Find a planet with settlers that will give you the random mission Missing Ingredient.
Complete it.
Bug appears.

temporary solution -> use console command stopquest 12f188. Sometimes it happens with The Boot too. Use stopquest d700d.

Got this quest tonight, was able to replicate. Simple issue, stage 995 was missing the Complete Quest flag. Fix attached:
SFCP_897.zip


Add context type constant

This PR adds a ContextType constant based on the context type vocabulary defined in the LTI 1.3 spec.
This PR also updates utils.sync_context_from_launch() to use these constants.
Closes #28.

Really appreciate the contribution, thanks @cmurtaugh!


QRS Detection Failure

Emailed Ryan Bobko about the following issue:
We have processed about 38,000 hdf5 files from PreVent, and it has gone remarkably beautifully. However, there is an extremely rare glitch we have seen in a very small handful of files. The total count of affected files that I know of is:
•	4 infants from WUSTL (i.e. 4 stp files) with a total of 10 day-long hdf5 files affected
•	A few files from Northwestern – final count is unknown as they are just beginning their algorithm processing
The issue we seem to see is that the ECG timestamps seem to be partially missing from a segment of the file (i.e. there don’t seem to be enough blocks of timestamps to account for all of the data points we see in the file). Some files have ECG I affected, others have ECG II affected, and others have ECG III affected. I was wondering if you could take a look and see if you can find the root cause of the problem. If we know the cause, then I can either have them reconvert these few affected files using a new version of the converter, or I could possibly write a patch to properly address the issue in the BAP.
I have received a sample xml file and hdf5 file from WUSTL that was one of the few that experienced this error. It was converted to hdf5 using fmtcnv 4.3.0. I reconverted it using fmtcnv 4.3.2, but ran into the same problem. The signal that is experiencing the issue in this particular file is ECG I.
The xml file is located here:
7820DataDrive\Amanda\TestInputFiles\ConvertedUsing1_4_0\WUSTL\QRSProblemFile[exact label removed for deidentification purposes]
The hdf5 file converted with version 4.3.0 is located here:
7820DataDrive\Amanda\TestInputFiles\ConvertedUsing1_4_0\WUSTL\QRSProblemFile[same file from above but from this date:]20201010.hdf5
The hdf5 file converted with version 4.3.2 is located here: 7820DataDrive\Amanda\TestInputFiles\ConvertedUsing1_4_0\WUSTL\QRSProblemFileReconverted[same file from above but from this date]_20201010.hdf5

From Ryan Bobko:
It looks like the XML file produced by the StpToolkit contains 70512 elements that have the same time. Note that they're not duplicates, because the waveform values are different, but the time just repeats and repeats. The formatconverter is just reading the times and putting them in the output file.
Of course, I'm open to marking/ignoring duplicate timestamps, but we often see duplicate timestamps in our data. Perhaps marking when timestamps show up more than X times in a row would be helpful? In fact, I have a "preventtools" tool that already provides some basic metadata about the output files. I could add a feature to check for this situation. At least that way, we'd have some indication if a file looks suspicious.


Use V2ray Inside Web Browser (WASM)

Hi,
Is it possible compile v2ray-core As WASM to build v2ray client inside the web browser?
It help Users Ping/ Speed Test their own config without install any extra client.

Hi, Is it possible compile v2ray-core As WASM to build v2ray client inside the web browser? It help Users Ping/ Speed Test their own config without install any extra client.

Answer from ChatGPT:

Compiling the V2Ray core as WebAssembly (WASM) to run inside a browser is theoretically possible but presents significant challenges due to several technical constraints and limitations in both V2Ray and the WebAssembly environment. Let's break it down:
Challenges in Compiling V2Ray Core to WASM

System Calls & Networking:

V2Ray is heavily dependent on low-level networking features, such as raw socket access, DNS resolution, and routing manipulation. Browsers, for security reasons, restrict direct access to these kinds of system calls. WebAssembly running in a browser doesn't have direct access to networking APIs like TCP/UDP sockets, which V2Ray requires.
While WebAssembly supports computation, it's sandboxed in the browser, meaning it has no access to the host machine's networking stack unless via JavaScript APIs, such as fetch(), WebSockets, or WebRTC.

Proxy Protocols:

V2Ray handles multiple proxy protocols (such as VMess, Shadowsocks, etc.), which depend on bidirectional low-level communication (TCP/UDP), cryptographic libraries, and real-time packet handling. Implementing this functionality through WebAssembly would need a workaround for the lack of socket access in browsers.

WebAssembly’s Sandbox Limitations:

WASM in browsers runs in a highly restricted environment with no direct access to system resources like files, raw network sockets, and processes. The browser enforces strict security policies to prevent malicious code execution, making it difficult to run server-client models natively.
Since V2Ray is designed to run as a proxy on raw network interfaces, bypassing these restrictions would need a significant overhaul of V2Ray's architecture.

WebAssembly Features:

While WebAssembly supports many modern features, it's primarily designed for computation-heavy applications (games, simulations, etc.), not low-level network proxies. WebAssembly is great for mathematical computation, rendering, or code that doesn't need deep system access.

Alternatives:

WebRTC: If your goal is to tunnel traffic through a browser, WebRTC might be an option, though it would require reimplementing parts of V2Ray to work within WebRTC's protocols and APIs.
WebSockets: V2Ray would need significant modification to use WebSockets instead of raw TCP/UDP, but this is still limited compared to what the V2Ray core needs.

Possibilities and Workarounds:

Using WebAssembly outside the browser: WebAssembly can run in non-browser environments such as Node.js, where you can have access to more system-level APIs (e.g., file system, raw sockets). This could allow V2Ray to run as a Node.js application compiled to WASM. However, the advantage here is limited since you would already have access to Node.js without needing WASM.

Building a Web-based Control Interface: Instead of compiling the core V2Ray to WebAssembly, you could build a web-based interface to control a running V2Ray instance on the backend. The browser would serve as a UI that communicates with a V2Ray client via HTTP/WebSocket.

Port V2Ray to WebRTC: An ambitious approach would be to port V2Ray's core functionality to use WebRTC, which works in a browser context. This would require rewriting significant parts of the V2Ray codebase to make it browser-compatible but would allow you to establish peer-to-peer encrypted connections in-browser.

Conclusion:
In its current form, compiling the V2Ray core into WebAssembly and running it in the browser is impractical because of the browser’s restrictions on networking and system-level operations. You could potentially explore using WebAssembly in environments like Node.js, or port some of the functionalities to browser-friendly APIs like WebRTC, but this would require major architectural changes to V2Ray itself.


Default move of 1000 mm in control leads to crashed

If would be much nicer if the default was 10 mm. The page gets reloaded and I forget it has moved to 1000 mm. Then it crashes due to my bad. Then I get to enjoy the 20 minute calibration process :-)

Ah, yes good point. Before we had steps/mm implemented the default move amount of 1000 (steps) made sense. Now I think a default of 100 (mm) makes the most sense. 10 seems a little too small to me though unless you're working with a desktop-sized device. Would a 100mm default work for you or do you think 10 is better?

100 mm sounds good. I just want to make it small enough that when I forget to click on what I want, it is not too likely to result in a crash.

Sounds like this one is good to go for next release. Closing this issue. Feel free to discuss / reopen if you would like to keep the discussion going.


Added dryad customizations to the Geoblacklight config files

Added copies of the custom Geoblacklight XML files.

Thank you, Brian, I think this will be super helpful to have in one place in the future.


Scroll blocked after result

After uploading the image and getting result the webpage cannot be scrolled up...

Resolved
closing issue...


[Enhancement] Homepage's about does not have Storage keyword.

It would be better to have a storage keyword in the topics list.

Fixed


After updating to cordova-android 9 can not select files from Google Drive

Bug Report
I have recently update cordova-android to 9 and also updated the File plugin and I am not able to select file or video from Google Drive.
Problem
Updating the version has started giving error for selecting files. All other places do work but for Google drive it returns error.
What is expected to happen?
File should be selected
What does actually happen?
File is not being selected unless its image.
Information

[x] select file from recent
[x] select file from downloads folder
[x] select file from any other place
[x] select image from Google drive
[ ] select video or any other file from Google drive

Errors:
3943-3975/? E/oiface: DynamicFps is not enabled!
1872-4430/? E/TaskPersister: File error accessing recents directory (directory doesn't exist?).
Command or Code

Android studio config:
minSDKVersion: 19
targetSDKVersion: 29
android:requestLegacyExternalStorage="true"
<preference name="AndroidPersistentFileLocation" value="Compatibility" />

Environment, Platform, Device

Android 10
Version information

Ionic:
   Ionic CLI          : 5.2.4
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.2.4

Cordova:
   Cordova CLI       : 9.0.0<EMAIL_ADDRESS>   Cordova Platforms : android 9.0.0, ios 5.1.1
   Cordova Plugins   : cordova-plugin-file 6.0.2, cordova-plugin-file-opener2 2.0.19, cordova-plugin-file-transfer 1.7.1, cordova-plugin-filechooser 1.2.0, cordova-plugin-filepath 1.5.8, cordova-plugin-filepicker 1.1.6,

Utility:
   cordova-res : 0.15.1
   native-run  : not installed

System:
   Android SDK Tools : 26.1.1
   ios-sim           : 7.0.0
   NodeJS            : v10.16.2
   npm               : 6.9.0
   OS                : macOS Catalina
   Xcode             : Xcode 10.2 Build version 10E125

Checklist

[x] I searched for existing GitHub issues
[x] I updated all Cordova tooling to most recent version
[x] I included all the necessary information above

Are you using legacy storage?
It might be that it's not possible anymore without this flag, also in 11 it will be even harder.
I'm able to select a file or a photo on a android 9 device, haven't tested it on 10 though...

Hello @HarelM ,
I have added following flag:

android:requestLegacyExternalStorage="true"

I am able to select files and images from Device storage but not from the google drive option.
Hope this helps.

Hey @nagdevbharat
A minimal reproduction repo would be a great way to get this started. https://github.com/apache/cordova-contribute/blob/master/create-reproduction.md
Kind regards

Hello @PieterVanPoyer ,
It will take time to create a repo.
If you can suggest any other troubleshooting options or workarounds?
Hope this helps.

Hey
I cannot do any suggestions, I am not really familiar with the file plugin.
Greetings

This is dealt with here: https://github.com/apache/cordova-plugin-file/issues/426

Scoped storage mechanisms prevents reading other apps files.


ext_proc: Support CONTINUE_AND_REPLACE from header callbacks

Commit Message: Support the CONTINUE_AND_REPLACE status
for reponses from header callbacks
Additional Description: This makes it possible for a processor
to add a body to a request or response that does not have one,
or replace the entire body in the response from a header callback
without otherwise touching it.
Risk Level: Low. Not enabled by default.
Testing: New unit and integration tests.
Release Notes: The CONTINUE_AND_REPLACE processing status can be
used to replace the body or create a new body from inside the response
to a header callback.
Signed-off-by: Gregory Brail<EMAIL_ADDRESS>

@antoniovicente I think it makes sense for @snowp to take this one e2e.

Needs @envoyproxy/api-shepherds review then this should be good to go

/lgtm api


Improve SoundHelper package

It should use extension funcs instead of natives and I want to be able to modify Sounds while they are playing, e.g. lower/higher pitch.
This is also preparation for additional Sound features

Done for stdlib v2


Refactor Dataset internals to store data variables and coordinate variables as separate dicts

There's a lot of other discussion in #9063, but I wanted to pull out this suggestion for independent discussion:

Our list of internal attributes on a DataTree node is still not just those on a Dataset plus the inherited coordinates

This is indeed a bit of a con, but in my mind the right fix is probably to adjust the Dataset data model to using dictionaries of data_variables and coord_variables, rather than the current solution of a dict of variables and a set of coord_names. Using a separate dictionary for coord_variables would also be more aligned with how DataArray is implemented. The internal Dataset data model is a hold-over from the very early days of Xarray, before we had a notion of coordinate variables that are not indexes.

Originally posted by @shoyer in https://github.com/pydata/xarray/issues/9063#issuecomment-2198775511

In fact could the coord_variables dict just be an actual xr.Coordinates object?
(idea from https://github.com/pydata/xarray/issues/9204#issue-2384855788)

In fact could the coord_variables dict just be an actual xr.Coordinates object?

I think Coordinates should remain a thin wrapper object. It needs access to both coordinate Variable objects and associated indexes.

I was wondering about that already quite some time, haha.
Does this mean that handling of coordinates can be handled in the parent class DataWithCoords?

Does this mean that handling of coordinates can be handled in the parent class DataWithCoords?

You mean have all of Dataset, DataArray, and DataTree inherit from DataWithCoords, and add things like the .coords property to DataWithCoords? Relates to https://github.com/pydata/xarray/issues/9204#issuecomment-2336490955.


epkowa: support Epson Perfection V330 Photo

Motivation for this change
This adds the iscan plugin for Epson Perfection V330 Photo scanner. It's mostly just copy & paste of another module with some changes.
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Assured whether relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

This is my first PR. I've read CONTRIBUTING.md and I guess it should fit, but I'm not sure about the rest, which is listed in the PR template.

cc @symphorien

@grahamcofborg eval

I can't test, but looks good to me :) Thanks!

@bebehei @symphorien Thank you!


updated release with snapshot ols-78kww

Description
updated release with snapshot ols-78kww
Type of change

[ ] Refactor
[ ] New feature
[ ] Bug fix
[ ] CVE fix
[ ] Optimization
[ ] Documentation Update
[ ] Configuration Update
[ ] Bump-up dependent library

Related Tickets & Documents

Related Issue #
Closes #

Checklist before requesting a review

[ ] I have performed a self-review of my code.
[ ] PR has passed all pre-merge test jobs.
[ ] If it is a core feature, I have added thorough tests.

Testing

Please provide detailed steps to perform tests related to this code change.
How were the fix/results from this change verified? Please provide relevant screenshots or results.

/approve

/lgtm


Create Summoner Success State

Overview

Add the success state for the Summoner App flow.

Figma Link
User Stories
As a user who has successfully summoned a DAO on the Summoner App, I want to see a screen informing me that my summon was successful.
As a user who has successfully summoned a DAO on the Summoner App, I want to be able to click on a button to summon another DAO.
As a user who has successfully summoned a DAO on the Summoner App, I want to be able to see the contract address of my summoned DAO.
Scenarios
TBD
Deliverables

Summon state UI added

Details

The success state for the Summon flow includes a screen/view that includes the DAO Contract Address and other visual cues that the DAO has been successfully summoned.

svg loader


Refactor dcos package install in Go

Fixes: https://jira.mesosphere.com/browse/DCOS_OSS-4774

@mesosphere-ci run linux integration tests

:wave: @drewvanstone @br-lewis @makkes @bamarni @rgo3  Can you review, please?

Should I add a unit test?

Should I add a unit test?

I
Would
Love
That!

@mesosphere-ci run linux integration tests

@mesosphere-ci run linux integration tests

@mesosphere-ci run linux integration tests

@mesosphere-ci run linux integration tests

I accidentally closed this PR. Since I can't re-open it I opened a new one https://github.com/dcos/dcos-core-cli/pull/361


fix: test and namespace isolation

Changes

:broom: removes now-unnecessary Namespace member from structs
:bug: several small bugfixes
:broom: general cleanup

tl;dr
Namespace as a struct member only works under fairly tight circumstances.  Recent functional additions invalidate this assumption.  This PR therefore removes namespace as a structure state member, adding it to method signatures where appropriate.  This keeps things flat and stupid-simple.
Background
The initial design was to encapsulate the effective namespace within a fn.Client instance  (and concrete implementations of the constituent interfaces like Deployer, Lister, Remover etc) by providing it as a constructor argument.  All operations conducted via the client instance would then be targeted at that namespace.  Clients, being lightweight structures, can be instantiated easily, one for each namespace.  This allowed the target namespace to only be a concern during initial instantiation, with all following operations being able to ignore this internal state.  However, this assumption turned out to be incorrect for a couple of reasons:  cross-namespace operations and developer familiarity.
As new methods and options were added to the Client, there came to exist a few operations whose target namespace was either ambiguous or undefined.  For example deploying a function to a new namespace requires removing it from the old.  What, then, is the internal state of the namespace member?  This broke the encapsulation of that complexity.
Second, and perhaps more practical, is the expectation by users of the client instance (most of whom are at least familiar with the underlying Kubernetes implementation) expect namespace to be a primary concern.
These two conspired to result in several operations which expected namespace as a per-request argument.  This of course caused all logic to then treat the struct member as more of a fallback or default.
This is unnecessary complexity.  If a member like namespace can be completely internalized and removed from all method arguments, only being considered during instantiation, then it has succeeded in reducing complexy.  If this member "leaks" into any of the struct methods, then it is no longer assisting,but instead causing more complexity than just adding it to the set of expected arguments.
Therefore, this PR accepts that namespace is an expected argument in most cases, removing it from constructors and any state.
/kind bug
/kind cleanup

Fixes #

Release Note

Fixed Function namespace resolution in some edge cases.

Docs

@lkingland any updates?

@lkingland any updates?

Could use another /LGTM presuming the tests pass!

/lgtm

/lgtm


docs: refer to plugin integrations

Summary
This adds a short paragraph to the README and getting starting page to point out the existence of the plugin integrations.
Details and comments

@Mergifyio queue automerge


Update gradle wrapper download link

distributionUrl points to a snapshot which is not available anymore,
causing the wrapper to fail initializing itself. This change sets
distributionUrl to a URL of a binary release of the same version 4.4
which is still available.

Thanks!


Surf - Sending request via proxy

Hi, is there a roadmap for Surf to support Proxies?
(sending request via proxy)
Best

You can use bow.SetTransport (link), look at my pull request, or this example
https://github.com/shavit/surf/commit/0c66b3812d11ec568d753e0515c7fdc459791652#diff-fc939672748c63d9d3c671163467f8e5R556

For me, var _ = os.Setenv("HTTP_PROXY", "http://<IP_ADDRESS>:1087") works.

For me, var _ = os.Setenv("HTTP_PROXY", "http://<IP_ADDRESS>:1087") works.

Hello. I am a beginner programmer. Please write a short example of working with PROXY.
I can't write a working code. I have tried different options.


Further Integration Tests for Alias Identity Providers Feature

see https://github.com/cloudfoundry/uaa/issues/2505
This PR adds additional MockMvc tests for some yet uncovered paths as well as for the GET IdPs endpoint.

As discussed in last week's sync up, @adrianhoelzl-sap when you have updated the commits for this, I'll review as @bruce-ricard is out this week.


Gender?

Hi,
How can I get gender of user for using petrovich?

Hi. The obtaining of user's gender is beyond the scope of the petrovich library. You may ask user's gender during a registration, or you may detect the gender relying on other user data. If the gender is unknown you can use petrovich.Androgynous constant in the methods calls.

Thanks


Updating keystored logic to account for module name in addtion to identityref value

As of https://github.com/sysrepo/sysrepo/pull/1177, we started seeing errors in sysrepo-plugin when setting the ietf-keystore algorithm parameter.
Example snippet:
  <keystore xmlns="urn:ietf:params:xml:ns:yang:ietf-keystore">
    <private-keys>
      <generate-private-key>
        <name>nc-server</name>
        <algorithm xmlns:ks="urn:ietf:params:xml:ns:yang:ietf-keystore">ks:rsa</algorithm>
      </generate-private-key>
    </private-keys>
  </keystore>
</action>

Error:
Generating EC private keys not supported yet.

After investigation, we found that after the change in https://github.com/sysrepo/sysrepo/pull/1177, sysrepo is now passing both the module name and the identityref value to sysrepo-plugin and the current code is expecting just the identityref value.
This PR should fix that behavior.

Hi,
you are right, thanks.
Regards,
Michal


GDScript: Don't warn about RETURN_VALUE_DISCARDED by default

This happens too often with normal usage of the API. The warning can still be useful to find actual bugs where discarding the return value wasn't intentional, but this should stay enabled manually, at least until we either improve the API to remove false positives, or improve the warning (e.g. to only warn about unused return value on const functions).

Supersedes (for now) #58438.
Reduces the need for https://github.com/godotengine/godot-proposals/issues/682, but implementing that proposal or similar improvements would make it possible to re-enable this warning / improved version of it.

Thanks!


Help setting things up needed

Hello, appreciate your work.
But I am having trouble in setting things up. I have put things together, connected to USB of my Mac. ESPHome installed successfully. Download GIT successfully. I am using NodeMCU board. So I have changed esp8266-example.yaml to use it instead of D1. I have also setup the secret file with correct wifi login.
I don't have MQTT, I don't have homeassistant, I don't want them. So I have commented out everything that looks like mqtt in esp8266-example.yaml. I will not be using the meter that came with the inverter either. I want to set the limiter by hand first, via JSON later but I understand that's way to go - so I just tried saving the example to the esp and monitor for now, "manual mode" if this is the right name for it.
But "esphome run" breaks with "Couldn't find ID 'powermeter0'. Please check ..." of course, because I don't have a power meter - I don't want it to use a power meter!?
Am I using the wrong yaml file? What is the best way for just a very simple basic to start with? No meter. No mqtt. No assistant. Just connect to the inverter and watch it working.
Any hint is greatly appreciated.

Your usecase (no powermeter) isn't supported yet. I will push a quick fix asap to make the powermeter optional and provide a simple YAML. Do you use a ESP32 or ESP8266? You would like to use a small web page to control the device?

Instead of making the powermeter optional I've prepared a workaround. This YAML looks like this:
https://github.com/syssi/esphome-soyosource-gtn-virtual-meter/blob/make-powermeter-optional/esp8266-example.yaml
I've added the webserver component. This adds a small web interface to the ESPHome node:

Please try to understand my changes here:
https://github.com/syssi/esphome-soyosource-gtn-virtual-meter/pull/110/files
And please be aware: I've changed the uart pins to GPIO4 and GPIO5 so you are able to receiving some log messages via GPIO1/GPIO3. In other words: Please attach the RS485 converter to GPIO4/GPIO5!

I will try this tomorrow, thank you for the quick reply & help!

Hmm. Sorry, first, I dont know how to try this new version. I understand the need to update my locally stored copy of your files, but when I use "git merge" it just says "Already up to date"?!
Second, I don't know what you mean with "GPIOx" ... I have connected the RS485 to Rx/Tx and power (see image: purple is Rx, blue is Tx, bound to RO / DI, black is GND, white is 3,3v).

A clone of the repository isn't required. Just download and use this YAML configuration:
https://raw.githubusercontent.com/syssi/esphome-soyosource-gtn-virtual-meter/make-powermeter-optional/esp8266-example.yaml
Remove the wires from RX/TX and use D1 (new RX) / D2 (new TX) instead because of these lines:
https://github.com/syssi/esphome-soyosource-gtn-virtual-meter/blob/make-powermeter-optional/esp8266-example.yaml#L6-L7
That's all!

Thank you, looks like it works! :-)
It's spitting out a lot of log data and access via LAN works too, including adjusting power using the slider. However, the inverter does not respond in any way. Guess this is because I have not used the app to set it up? Problem is that I don't have a proper Android device to do this, will have to get one just for this, annoying. I can see the inverter's AP and its IP but cannot connect to it via browser. Chinese stupidity, the price for paying less.
Thoughts afaiu: your code sends log data via Serial back as well as to the webserver on ESP. Wouldn't it make sense to plug the ESP into the so called TTL-WIFI connector of the inverter via its USB-connector, read the data (similar to what the display shows) and even make settings to the machine? If this works it would get in conflict with your program using Serial to log things, wouldn't it?

You are on the right track. This project provides a component/implementation of the TTL-WIFI protocol too.
You could flash this YAML configuration to your ESP8266: https://raw.githubusercontent.com/syssi/esphome-soyosource-gtn-virtual-meter/main/esp8266-display-example.yaml
And attach GPIO4/GPIO5 (D1/D2) to the RX/TX lines of the TTL-WIFI USB port. This is the pinout of the USB connector:
https://github.com/syssi/esphome-soyosource-gtn-virtual-meter/tree/main/docs/wifi-dongle#usb-connector
This component can be used to control the Soyosource and change the settings. As last step will will build a combined solution. So you will attach the same ESP8266 to the TTL-WIFI port and the RS485:
https://github.com/syssi/esphome-soyosource-gtn-virtual-meter/blob/main/esp8266-display-limiter-example.yaml
Here we have to replace the powermeter again.

Very nice indeed, but what I actually thought was to use the micro-USB of ESP with an adapter cable to plug it into the USB-A of the inverter. I can connect the Rx/Tx of the inverter to D1/D2 as well, just need some cut off USB plug to get access to the TTL-WIFI connector. What I don't understand: why connect them to D1/D2, these are connected to RS485 already?! Or do you mean just for setup of the inverter, then connect it back to RS485 like it is now?

Update: after connecting a battery I see that the manual limiter works. Great stuff! But I seem to have a silent inverter - it shows zero responds. So I am not sure if it is actually in "battery limiter" mode or something else. The output is always 20W less than defined (a Shelly plug is measuring). The inverter itself seems to draw just 2W. Hmm?!

Or do you mean just for setup of the inverter, then connect it back to RS485 like it is now?

Yes. I wanted to proceed step by step and combine all feature / solutions at the end.

[ ] Be able to push power demands to the inverter using RS485
[ ] Be able to read the status and control the settings using the TTL-WIFI port
[ ] Combine both setups using different GPIOs per uart

Regarding the USB port of the inverter: Please keep in mind this isn't a real USB port. Never ever plug the ESP8266 using a Micro-USB cable into the inverter. It's just a connector with 4 pins (VCC, GND, RX, TX). We can use the port to power the ESP8266 and we can use the port to control the inverter like the WiFi dongle.

Understand. I have written esp8266-display-example.yaml to the ESP, it runs, log looks like this:
INFO Successfully uploaded program.
INFO Starting log output from /dev/cu.usbserial-0001 with baud rate 115200
[16:32:50]rll\x9c\x9e\x8f\x84$\xe0|

                                   \x8c\x80l\xec
                                                c|\x8f\x82\xe4\x92r\x93c\x8cp
                                                                             \x8c\xf2oN\x9f$NN\xdc\xe2\xec
                                                                                cp\xec\x8ecl rlp\xf2n\xe0

                                                                                \x83
                                                                                l\x84\x9c"
                                                                                n\xe2|\xec
                                                                                \x8e\x9c

                                                                                c\x8c\xf2NN\xef$\x84\x8fl`\x90NN\x8frlo{\x8f۲orr\x92 p\xf3n\xe0

                                                                                r\x84\x9c\x9c\x9c\x80\x84
                                                                                b
                                                                                o\xe2|
                                                                                \x8f"\x84\xf3nn\xee
         \x8el`\x90NN\x8erlo{\x8f\xb2\x9e{r$ s\x93\x9bo

                                                       rd \xdc
                                                              l\x8ex8c\x80l`\xfc\x82N\x9cl[I][logger:258]: Log initialized
[16:32:50][I][app:029]: Running through setup()...
[16:32:56][I][wifi:444]: - 'MYWLAN' (B0:F2:08:0F:E8:EC) ▂▄▆█
[16:32:56][I][wifi:257]: WiFi Connecting to 'MYWLAN'...
[16:32:57][I][wifi:518]: WiFi Connected!
[16:32:57][W][ota:102]: Last Boot was an unhandled reset, will proceed to safe mode in 8 restarts
[16:32:57][I][app:062]: setup() finished successfully!
[16:32:57][I][app:102]: ESPHome version 2023.2.4 compiled on Mar  8 2023, 16:32:35
[16:32:57][I][app:104]: Project syssi.esphome-soyosource-gtn-virtual-meter version 2.0.0
[16:32:57][W][ota:102]: Last Boot was an unhandled reset, will proceed to safe mode in 8 restarts

Hmm. Doesn't look that bad, the WLAN scanner finds it, but I cannot connect to it with the browser?

The web interface isn't added. I will prepare a version with a web interface included. Wait a sec.

Thank you so much, here's some more log output:
[16:40:20][W][soyosource_display:108]: CRC Check failed! 4B != FF
[16:40:21][W][soyosource_display:108]: CRC Check failed! 00 != FC
[16:40:57][W][soyosource_display:108]: CRC Check failed! C8 != F7
[16:41:10][W][soyosource_display:108]: CRC Check failed! 90 != EA
[16:41:15][W][soyosource_display:108]: CRC Check failed! 6F != FF
[16:41:23][W][soyosource_display:108]: CRC Check failed! A0 != D2
[16:41:23][W][soyosource_display:108]: CRC Check failed! BC != FF
[16:41:30][W][soyosource_display:108]: CRC Check failed! 11 != BA

Please use this YAML to talk to your TTL-WIFI port: https://raw.githubusercontent.com/syssi/esphome-soyosource-gtn-virtual-meter/make-powermeter-optional/esp8266-display-example.yaml

It's working now, thank you. Set it to battery limit mode. And it seemed to accept the power value, but somehow didn't change its output.

I changed back to the limiter version and it's working good. Except that the output is 20W lower than set - something to care about? Need to go now, more testing tomorrow, great work!!

Probably setting the output power limit to 200W isn't a good idea because this is the internal upper limit of the output power. If you ask the inverter to produce 900W now it would output 200W only.
The wrong output power (2364 W) is a bit odd. Especially because there wasn't a limiter attached.
Let's combine both YAMLs tomorrow and try to talk to two interfaces (WIFI-TTL & RS485) simultaneously.

You can find the combined version incl. web interface here: https://raw.githubusercontent.com/syssi/esphome-soyosource-gtn-virtual-meter/make-powermeter-optional/esp8266-display-limiter-example.yaml
Please attach the RS485 converter to GPIO14/GPIO12 (D5/D6) and the WIFI-TTL port to GPIO4/GPIO5:
substitutions:
  name: soyosource-gtn-display
  hostname: soyo
  device_description: "Monitor and control the Soyosource GTN via the display port and control the power output on demand via RS485"
  external_components_source: github://syssi/esphome-soyosource-gtn-virtual-meter@main
  tx_pin_ttl_wifi: GPIO4
  rx_pin_ttl_wifi: GPIO5
  tx_pin_rs485: GPIO14
  rx_pin_rs485: GPIO12

Works great, thanks a lot Sebastian!
Question: I understand the ESP needs to constantly send power limit otherwise output stops. Do you know the maximum time until the inverter falls back into zero output?
I see that everything is in your code to study ... but ... did you think about documenting what is known / you have found out about Soyo's protocols, both for limiter and display?

I'm trying to improve the documentation but it consumes a lot of time. The project is pretty young and the user base small because of the complexity / barrier to entry of ESPHome. Feel free to ask more questions and/or create new issues. I'm happy to provide as much feedback as possible.
Out the timings: I've not much knowledge here. I'm aware of some experiments to get an idea how fast the inverter ramps up & down + some analysis about efficiency depending on the output power + the maximum interval of power demand updates (2-3s) but I haven't invested much time here yet.

I understand and highly appreciate your work on this subject. I am actually quite new to everything around ESP and happy that I have gotten things working in short time and without big trouble. Flashing ESP, using ESPHome, fumbling with GPIO connectors, command line stuff ... is not very easy and scares people.
One more question: I see the web controls use POST requests to change settings, e.g.
http://<IP_ADDRESS>/number/soyosource-gtn-display_output_power_limit/set?value=40
Can this be easily changed to GET? This would make it VERY easy to control power output from remote.

A POST is required. This cannot be changed easily but I could provide some console commands (curl commands) doing the job if you like.

curl -X http://<IP_ADDRESS>/number/soyosource-gtn-display_output_power_limit/set?value=40

Let's close this issue. Your setup is up and running in general.


[bug] upload did not re-render in controlled manner upon value change

TuSimple/naive-ui version (版本)
2.13.0
Vue version (Vue 版本)
3.1.1
Browser and its version (浏览器及其版本)
Chrome (91.0.4472.114)
System and its version (系统及其版本)
macOS 11.4
Node version (Node 版本)
Reappearance link (重现链接)
https://codesandbox.io/s/nifty-khayyam-96t9q
Reappearance steps (重现步骤)
upload file
Expected results (期望的结果)
file list change on error
Actual results (实际的结果)
did not update
Remarks (补充说明)
through inspection via vue devtool it's obvious that data has changed but the component did not update

@07akioni any thoughts?

@07akioni any thoughts?

You didn't config action of the upload, so there is no upload progress that actuarlly happens. The file is still in pending status and the progress bar won't display. If you need to show it please take care of the file status too.

@07akioni any thoughts?

You didn't config action of the upload, so there is no upload progress that actually happens. The file is still in pending status and the progress bar won't display. If you need to show it please take care of the file status too.
Src code releated:

@07akioni any thoughts?

You didn't config action of the upload, so there is no upload progress that actually happens. The file is still in pending status and the progress bar won't display. If you need to show it please take care of the file status too.
Src code releated:

First of all, I'm using controlled mode, and file uploads are handled externally (in my case to a GraphQL endpoint, ). Secondly, it was assumed from the docs that in controlled mode the upload component should behave as 'view' layer only, in the case it wasn't it should be a documented behavior.

Will fix.

Will fix.

Really impressed and appreciate your excellent work.

Will fix.

:) Any update?

There are some pr trying to fix it but none solves the problem. I'll try to fix it.

After some investigatings, I find that's not a bug. Please note that the file and fileList in the callback is non reactive. So you need to write in another manner:
<n-upload :file-list="fileListRef" @change="handleUploadChange">
  <n-button>上传文件</n-button>
</n-upload>

import { NUpload, NButton } from 'naive-ui'
import { ref } from 'vue'

export default {
  name: 'App',
  components: {
    NUpload,
    NButton
  },
  setup () {
    const fileListRef = ref([])
    const handleUploadChange = ({ file, fileList, event }) => {
      fileListRef.value = fileList
      setTimeout(() => {
        // file is non reactive, so the status change won't have any effect
        // file.status = 'error'
        fileListRef.value.forEach(f => {
          f.status = 'error'
        })
      }, 1000)
    }
    return {
      fileListRef,
      handleUploadChange
    }
  }
}

I've a simpler version to illustrate what happens in your code.
setup () {
  const file = {}
  const fileListRef = ref([])
  fileListRef.value.push(file)
  file.hello = 'world'
  // nothing will happens since file is non reactive
}


address typo + clearer positivity/overlap defn

fixes #30

the kableExtra build issue had already been reported at https://github.com/haozhu233/kableExtra/issues/750 and resolved in a fork, now included in the renv.lock file.


Braintree Blue Billing Address With Credit Card Store

I was surprised to see that the implementation of #store for credit cards to the Braintree Blue vault does not allow for the passing of billing address fields. This seems like it would be simple to add as follows:
def store(creditcard, options = {})
    commit do
      parameters = {
        :first_name => creditcard.first_name,
        :last_name => creditcard.last_name,
        :email => options[:email],
        :credit_card => {
          :number => creditcard.number,
          :cvv => creditcard.verification_value,
          :expiration_month => creditcard.month.to_s.rjust(2, "0"),
          :expiration_year => creditcard.year.to_s}
      }
      if options[:billing_address]
        parameters[:credit_card].merge!(:billing_address => map_address(options[:billing_address]))
      end

      result = Braintree::Customer.create(parameters)
      Response.new(result.success?, message_from_result(result),
        {
          :braintree_customer => (result.customer if result.success?),
          :customer_vault_id => (result.customer.id if result.success?)
        }
      )
    end

My guess is something similar could be done for #update as well.
Was this ever considered and not implemented intentionally or would a patch including a remote test be in order?

We're not using lighthouse for patch submissions anymore and the account has been closed. Would you be able to resubmit this patch as a new pull request? I'll try and see if we have a backup of what was on lighthouse, but I don't think we do anymore.


DNF Sort in C++ (Documentation) #3209

Description 📜
Hey, I have created documentation on DNF (Dutch National Flag) Sort in C++.
Resources
https://www.educative.io/edpresso/the-dutch-national-flag-problem-in-cpp

Type of change 📝

[x] Documentation (Content Creation in the form of codes or tutorials)

Domain of Contribution 📊

[x] DSA

Checklist ✅

[x] I follow Contributing Guidelines & Code of conduct of this project.
[x] I have performed a self-review of my own code or work.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I'm GWOC'21 contributor

@pjdurden Kindly review this.

@Muskan-creator, Kindly review the changes.

@goelesha Kindly review this PR

Good job ! @Narotam-singh

@Muskan-creator Can you please label it as hacktoberfest-accepted?


raftstore: handle region destroy in a separate thread pool

What is changed and how it works?

Issue Number: Close #16001

What's Changed:
The dispatch of snapshot generation tasks and region destruction are handled
by the same thread. It was observed in #12587 that region destruction can take
a long time and block snapshot generation. This commit addresses the problem by
handling the region destruction in a separate thread pool. To support running
the logic in a separate pool, methods related to region destruction (e.g.
clean_stale_ranges, clean_overlap_ranges_roughly, clean_overlap_ranges) are
moved under a new struct called `RegionCleaner`. Note that there is no
functional change to those methods at all. The new struct is wrapped inside a
mutex for thread safety because the original thread also needs to call
`clean_overlap_ranges` when applying a snapshot.

After the change, region destruction will no longer block snapshot generation,
but it can still block snapshot apply because an apply task also needs to
detroy regions.

Related changes

[ ] PR to update pingcap/docs/pingcap/docs-cn:
[ ] Need to cherry-pick to the release branch

Check List
Tests

[ ] Unit test
[x] Integration test
[ ] Manual test (add detailed scripts or steps below)
[ ] No code

Side effects

[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Breaking backward compatibility

Release note

None

Will try to add a test

/cc @Connor1996

/approve

/retest


Feat/entity/portfolio

Adds a Portfolio class with a UUID primary key and UUID foreign key of userId.
Related repo, service and controller layers are included. The repo provides a custom method to findByUserId, implemented by PortfolioService.
Unit tests added and passing for Portfolio and PortfolioService.

@dexterklui The userId attribute needs to be refactored into a User entity.
We can hold off on this PR until your User is in place, then I'll merge and make the updates.

 catch (Exception e) { throw e;} no need this kind of block
only need to throw exception from the base method, parent method no need to catch it if just want to return HTTP 400 error, it can be specified in the exception class with annotation @ResponseStatus(HttpStatus.<suitable status>)
after above change, no need to use generics for controller and just use actual class

 catch (Exception e) { throw e;} no need this kind of block
only need to throw exception from the base method, parent method no need to catch it if just want to return HTTP 400 error, it can be specified in the exception class with annotation @ResponseStatus(HttpStatus.<suitable status>)
after above change, no need to use generics for controller and just use actual class

Great, thanks for that — I made those updates in the previous commit. It's cleaner now. Please take a look and let me know whether that's what you meant.

Note that the try-catch block remains in the depositAsset() method for cases where we want to create a new asset as a result.


Project Page - Some user facing issue of loading in project page By CA Kamlesh Kumar

Describe the bug

Some user when loged in there project page is not loading in one pc
https://www.berrycast.com/conversations/36278f5b-b180-504e-9b54-98e9b054c6d5

Token Expiry is problem ,on particular pc, we are not getting same error anywhere else,
So will try to mitigate according to particular PC
Technical detail
Token expiry is setting is Local and Date.now() is setting in UTC that makes token always expired,
On each page reload token is set to reset due to above error


Stakeholder Analysis and Relevance to Software Solution

Objective: Identify key stakeholders and explain how the problem or opportunity can be addressed through software development.
Details: The key stakeholders affected by the problem or benefiting from the opportunity should be identified. Their interests and concerns should be briefly overviewed. Also, an explanation of how the problem or opportunity can be addressed through software development should be provided.
Acceptance Criteria: A comprehensive stakeholder analysis and relevance to the software solution section is ready for the report.

Have Identified and added the content about Stakeholders and Relevances in the document.


cacheable dockerfile, update maintainer

Signed-off-by: Erin Schnabel<EMAIL_ADDRESS>

This change is

Reviewed 2 of 2 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable


[date] Update to 2019-11-08

This updates the date port to the latest version.
The https://github.com/HowardHinnant/date/commit/a5c4b4ebf8a192c6914b861b33579014a7e7d98a commit is necessary to use (not just build and install) the library in combination with a recent libc++. The later changes are not necessary, but nice to have.
Portfile changes:

The ENABLE_DATE_TESTING option is off by default now, so there is no need to set it explicitly.
The BUILD_TZ_LIB option is off by default now, so it has to be set explicitly.

While you review it, the new CMakeLists.txt switched to C++17 by default, so it might actually close https://github.com/microsoft/vcpkg/issues/4864.

/azp run

Hi @qis, thanks for your new PR. Here are some regressions from the current CI system:

x64-osx
master
test
notes

date
Pass
Fail
Regression

x86-windows
master
test
notes

date
Pass
Fail
Regression

x64-uwp
master
test
notes

date
Pass
Fail
Regression

arm-uwp
master
test
notes

date
Pass
Fail
Regression

@LilyWangL Ah yes. Glad to get useful logs out of your CI now. Congratulations on fixing it!
I've added a backwards compatibility patch for CMake 3.14. It should be removed when vcpkg moves to 3.15 or later.
Will test future PRs with outdated CMake versions.
Where can I find the lowest officially supported version? Is it os=windows, os=osx, and os=linux in scripts/vcpkgTools.xml or should I also respect the even more outdated version for os=freebsd?

You can ignore the os=freebsd; the lowest officially supported version is os=windows, os=osx, and os=linux.

LGTM, thanks!


Dashboard: Grid design updates

Context
Updates my stories and explore templates grid and title areas to new designs.
Summary
Namely, new designs are tighter and there's a min width for the dashboard, so updating how the grid resizes while keeping aspect ratio. Otherwise, just swapping out typography components and theme for design system. Cleaning up a bit of dead code as I go, will do a big sweep up after changes are all merged.
Also fixed story preview dialogs while here, realized those were broken - those are behind a feature flag that could probably be turned on. Will bring this up to Omar and Matt.

Screenshot
Source

Figma specs

main

This branch

Relevant Technical Choices

Moved page size theme values to be constants instead to continue to gut the dashboard theme. those don't need to be in the theme. Especially since we've got a forced min width now.
the story preview dialog was breaking because of a webpack chunk import (const getStoryMarkup = await import( /*webpackChunkName: "chunk-getStoryMarkup" */ '../../../edit-story/output/utils/getStoryMarkup');) so I removed that and am importing getStoryMarkup from edit-story once again.
Added specifications to design system for links as buttons to control hover and focus color - common css (wordPress) hijacks the color otherwise. 😠
The grid titles on the stories grid are a headline style but also links so updating the headline style to accept anchors and give them link accessibility that matches the link components.

To-do

Still pending review/QA for context menus and list view for dashboard.
Will follow up with template details view.
Used my best judgement on the hover view of grid items since that's not in figma, suspect there might be some tweaks there.

User-facing changes
Updated Keyboard Nav functionality
|
Update Explore Templates

**RTL 🎉 **

Testing Instructions

My Stories (Regression testing)

On hover see 'Open in Editor'
If show story preview experiment is enabled you should see another button in the middle on hover that says 'Preview'.
If show story preview experiment is enabled and you click on the 'Preview' button a dialog will open that previews the story.
These same buttons should show up if you focus on a grid item with the keyboard (tab until the entire grid has that focus outline, then use your arrow keys)
Story titles should remain clickable, they are links that send you to the editor.
Resizing the grid will recalculate space for story previews and keep the grid tight and justified.

Explore Templates (Regression testing)

Keyboard focus works the same as my stories does as outlined above.
Resizing the grid will recalculate space for template previews and keep the grid tight and justified.

QA

[ ] This is a non-user-facing change and requires no QA

This PR can be tested by following these steps:

UAT

[ ] UAT should use the same steps as above.

This PR can be tested by following these steps:

Reviews
Does this PR have a security-related impact?
No
Does this PR change what data or activity we track or use?
No
Does this PR have a legal-related impact?
No
Checklist

[x] This PR addresses an existing issue and I have linked this PR to it in ZenHub
[x] I have tested this code to the best of my abilities
[x] I have verified accessibility to the best of my abilities (docs)
[x] I have verified i18n and l10n (translation, right-to-left layout) to the best of my abilities
[x] This PR contains automated tests (unit, integration, and/or e2e) to verify the code works as intended (docs)
[x] I have added documentation where necessary
[x] I have added a matching Type: XYZ label to the PR

Fixes #4964

When shrinking the dashboard to lower than the min width the grid doesn't right align. I think that's fine, right?

When shrinking the dashboard to lower than the min width the grid doesn't right align. I think that's fine, right?

It should be aligned! thanks for flagging this. I missed an old media query adjusting the content gutter on small viewports.
https://user-images.githubusercontent.com/10720454/109869753-7fd1f600-7c26-11eb-9c5f-a7d5fc16a1b0.mp4


[OFFCHAIN] Job functions

Description:
As a frontend developer I should be able to implement the job creation functionality. For the offchain data process, I should be able to read some documentation on how to go about creating a job with offchain data (example readme)
As the offchain developer you should create the functions to enable:

[ ] job creation offchain: jobId (onchain lookup field) Role Title, Description, Location, Max Salary, Min Salary, Bounty, Company name
[ ] job updates
[ ] job deletes.
Note: for the job delete you should not remove the record but instead add a flag to mark it as removed. This is for the case where hiring companies want to revive such jobs.

from Zeeshan: Just for reference: you may look into DataModel.sol file for the datatypes we are using within our smart contracts.

From Pedro: I really hope there is a Ceramic way around encryption. Otherwise you can use this: https://github.com/ppelicano/laokas-web-app/blob/main/src/utils/encryption.js

Link shared with us regarding pricate data and encrypttion:
https://docs.odd.dev/sharing-private-data
https://docs.ipfs.tech/concepts/privacy-and-encryption/#encryption

https://www.npmjs.com/package/ipfs-encrypted
https://discord.com/channels/554623348622098432/1113221687975100536/1118565528823410758


Add button field to embedder API for mouse events

Follow up from #32052
This tracks plumbing button support through to the embedding API rather than hard coding to button one in the implementation, as described there.

Capturing a thought I had about how to handle the issue of needing to synthesize the primary button for backward compatibility, but ideally not wanting to have that applied to embedders that have been updated (to avoid people relying on fixup rather than ensuring they always send correct data): we can introduce both buttons and type at the same time in the API, and make sure that at the embedding API level none of the type constants are zero.
That way the fixup logic can be: if type is zero, assume the client hasn't been updated for the API additions, and synthesize the type as mouse (as we currently do), and call the recently-added button synthesis logic. If type is non-zero, the client must have been updated; require that they also set buttons correctly, and do no fix-up.


Adapt /images calls to handle additional media types

It seems there is no good way in the current BrAPI spec for Field Book to submit audio recordings to a BrAPI server. Broadening the images endpoints to other media types could solve the problem, and could be useful for other media types like video as well.

The digital phenotyping project aimed at combining audio files along with the Field Book's GeoNav log files and storing them on Breedbase via BrAPI. Currently we are trying to send a zip file containing the files that we want. As there is no direct support for non-image files, we are uploading the base64 contents on the POST /images endpoint. If we could have support for different media types, that would indeed by very useful.


rethink architecture. Should we make a central API or split functionality into ui, deploy server, auth server, ...

should we also use some better monorepo tooling like nx, turborepo, ...?


feat(cache): add DataTag type to cacheOptions

Overview
close #1088

add DataTag type to cacheOptions
ref: https://tkdodo.eu/blog/the-query-options-api

Test

This case is when you put only cacheKey in the parameter.
I created a function called getCache for testing purposes and confirmed that type inference works well using cacheOptions during testing.

PR Checklist

[x] I did below actions if need

I read the Contributing Guide
I added documents and tests.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 86.51%. Comparing base (97e7022) to head (27fca4c).

Additional details and impacted files

@@           Coverage Diff           @@
##             main    #1089   +/-   ##
=======================================
  Coverage   86.51%   86.51%
=======================================
  Files          62       62
  Lines         660      660
  Branches      138      139    +1
=======================================
  Hits          571      571
  Misses         84       84
  Partials        5        5

Components
Coverage Δ

@suspensive/react
97.05% <ø> (ø)

@suspensive/react-query
75.28% <ø> (ø)

@suspensive/react-query-4
0.00% <ø> (ø)

@suspensive/react-query-5
0.00% <ø> (ø)

@suspensive/jotai
0.00% <ø> (ø)

@suspensive/cache
98.16% <100.00%> (ø)

@suspensive/react-await
100.00% <ø> (ø)

@suspensive/react-image
80.39% <ø> (ø)

Make type test with queryOptions.test-d.ts please 🙏

I forgot. I'll add it right away!


can not open a mp4 video

hello, firstly, I find that your code have import error. The reason should be that the names are not uniform between Utils_Video.py and utils_video.py or Utils_Image.py and utils_image.py. Please check it.
Importantly, I run python VID_yolo.py --path_video xxx.mp4, but it shows error:
Opening File Video:2.mp4
could Not Open : 2.mp4
Traceback (most recent call last):
  File "VID_yolo.py", line 120, in <module>
    main()
  File "VID_yolo.py", line 108, in main
    frame_list, frames = utils_video.extract_frames(args.path_video, args.perc)
TypeError: 'NoneType' object is not iterable

why can not open a mp4 file? can you give some advises?

Even I am not the maintainer but maybe it is this issue? https://stackoverflow.com/questions/13834399/cannot-open-mp4-video-files-using-opencv-2-4-3-python-2-7-in-windows-7-machi

Or https://stackoverflow.com/questions/31040746/cant-open-video-using-opencv Telling from everything google would have told you it propably is a missing ffmpeg or openCV build against the wrong ffmpeg

@MTRNord thank for your reply. rebuild ffmpeg and opencv did not work. But a workaround
import sys
import skvideo.io
cap = skvideo.io.VideoCapture(sys.argv[1])
ret, frame = cap.read()

works for me.
but another error:
Opening File Video:1.mp4
Opened File Video:1.mp4
Start Reading File Video:1.mp4
Traceback (most recent call last):
  File "VID_yolo.py", line 120, in <module>
    main()
  File "VID_yolo.py", line 108, in main
    frame_list, frames = utils_video.extract_frames(args.path_video, args.perc)
  File "/home/ztgong/work/video/objectTracking/Tensorflow_Object_Tracking_Video/utils_video.py", line 472, in extract_frames
    total = int((vidcap.get(cv2.CAP_PROP_FRAME_COUNT)/100)*video_perc)
  File "/home/ztgong/local/anaconda2/lib/python2.7/site-packages/skvideo/io/__init__.py", line 109, in get
    raise NotImplementedError()
NotImplementedError
av_interleaved_write_frame(): Broken pipe
    Last message repeated 1 times

can you give some advises?

@MTRNord thank for your reply. rebuild ffmpeg and opencv did not work. But a workaround
import sys
import skvideo.io
cap = skvideo.io.VideoCapture(sys.argv[1])
ret, frame = cap.read()

works for me.
but another error:
Opening File Video:1.mp4
Opened File Video:1.mp4
Start Reading File Video:1.mp4
Traceback (most recent call last):
  File "VID_yolo.py", line 120, in <module>
    main()
  File "VID_yolo.py", line 108, in main
    frame_list, frames = utils_video.extract_frames(args.path_video, args.perc)
  File "/home/ztgong/work/video/objectTracking/Tensorflow_Object_Tracking_Video/utils_video.py", line 472, in extract_frames
    total = int((vidcap.get(cv2.CAP_PROP_FRAME_COUNT)/100)*video_perc)
  File "/home/ztgong/local/anaconda2/lib/python2.7/site-packages/skvideo/io/__init__.py", line 109, in get
    raise NotImplementedError()
NotImplementedError
av_interleaved_write_frame(): Broken pipe
    Last message repeated 1 times

can you give some advises?

Yes exactly! The project was running without error when I uploaded it.
During the development I had to check many times the frames extraction, because there are plenty method and all of them have compile error or library dependencies that was missing.
Please check carefully if you miss some dependencies!
Bests

@DrewNF OK, thank you.

@DrewNF how to fix the problem I described above?

The problem comes from the cv2.blablabla parameter, is the one that, also in the project, can raise problem, because dependently on the library and how you install it, you have to cast it like cv2.cv.blablabla.
You have to search the specific solution, googling the error, you will save time and fine a specific solution! Best

@DrewNF as the error:
Traceback (most recent call last):
  File "VID_yolo.py", line 120, in <module>
    main()
  File "VID_yolo.py", line 108, in main
    frame_list, frames = utils_video.extract_frames(args.path_video, args.perc)
  File "/home/ztgong/work/video/objectTracking/Tensorflow_Object_Tracking_Video/utils_video.py", line 472, in extract_frames
    total = int((vidcap.get(cv2.cv.CV_CAP_PROP_FRAME_COUNT)/100)*video_perc)
AttributeError: 'module' object has no attribute 'cv'

I change the total = int((vidcap.get(cv2.cv.CV_CAP_PROP_FRAME_COUNT)/100)*video_perc) to total = int((vidcap.get(cv2.CAP_PROP_FRAME_COUNT)/100)*video_perc)

You cast as I suggested, but is better that u search your previous error and try to find solutionsfor it 😁 because dependently on you install libraries you have to cast the parameter!

@IvyGongoogle Did you work around the problem you were facing regarding cv2.cv.CV_CAP_PROP_FRAME_COUNT issue?

The error is given because he cannot match the casting of the CV library installed, that why.
To solve it u need a simple online research of the error output.


remove error for CommonJs/AMD in ESM

What kind of change does this PR introduce?
bugfix

Did you add tests for your changes?
yes

If relevant, link to documentation update:
not yet

Summary
remove error for CommonJs/AMD in ESM
there are too many weird modules
detect harmony modules before parsing
exports is now undefined in ESM
module.exports is now read-only in ESM and returns undefined
define is now undefined in ESM
see #3917

Does this PR introduce a breaking change?
yes

module.exports is now read-only in ESM and returns undefined
There'is lot of bugs in my project after this change.
Cannot assign to read only property 'exports' of object '#'
You can see at https://github.com/webpack/webpack/issues/4039
I use import export module.exports=... require(...)  in one project.
When I use<EMAIL_ADDRESS>no bugs appears.
Is there any better solution, then I can happily use import export exports require in one project?


add spacing on left of fleqn display math

The fleqn option from amsmath doesn't only left-align display math but also adds an indent. This makes Katex's behavior with the fleqn option more similar to what happens in latex.

OK I did it.

Codecov Report

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

@@           Coverage Diff           @@
##           master    #2127   +/-   ##
=======================================
  Coverage   94.81%   94.81%
=======================================
  Files          81       81
  Lines        5281     5281
  Branches      926      926
=======================================
  Hits         5007     5007
  Misses        250      250
  Partials       24       24

Flag
Coverage Δ

#screenshotter
89.69% <ø> (ø)
:arrow_up:

#test
88.54% <ø> (ø)
: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 0cdb28b...3785e71. Read the comment docs.

[clabot:check]

[clabot:check]


Add transient services

As seen in Readme, those are created each time they are requested from the container.
I have written isolated tests for them, which prove they should work just fine. However, unlike the previous Services (renamed here SingletonServices for brevity), a cyclic dependency of transient services will cause a stack overflow. I do not check the chain for loops here, as I have assumed it is out of scope for this PR.

Thank you very much for your contribution! I will take a look into the implementation as soon as possible. :)

Hi! Since you haven't looked at this yet anyway, I've redacted this PR to make it a bit easier to read ^^


Async API

See #391
Introduction
This PR changes the API to expose the async methods and their sync (convenience) variants. This does not implement any of the async stuff at the level of wgpu-native (the async methods simply call the sync variant for now). That's for another PR. This does however, make it possible to look into using wgpu-py in an async setting.
In short

The codegen is updated to discover async method and automatically generate the correct API.
The methods (and properties) that are async in WebGPU (i.e. return a Promise), all get a _async suffix in wgpu-py.
All these methods also get a sync variant, but they come in two flavours:

Methods that also have a sync variant in WebGPU, are simply available without the suffix.
Methods that don't have a sync variant in WebGPU get a _sync suffix in wgpu-py. This way, they are easily identified, to detect less portable code.

Backwards compatibility is implemented, which shows a warning for that function once. We can remove this after 1 or 2 versions, giving downstream projects time to adapt.

Affected methods

gpu.request_adapter()
gpu.enumerate_adapters()
adapter.request_device()
buffer.map()
device.lost  (but was not yet implemented)
shadermodule.get_compilation_info() (but was not yet implemented)
queue.on_submitted_work_done() (but was not yet implemented)

These method also have (and already had) an async variant:

create_compute_pipeline()
create_render_pipeline()

Todo

[x] Update codegen.
[x] Tests for codegen.
[x] Ran codegen and made adjustments.
[x] Docs.
[x] Backwards compat.
[x] Tests pass with using the compat methods.
[x] Update examples and tests to use new version.
[x] Ability to disable _sync version.
[x] Don't forget to enable backwards compat again (turned off for tests).

API changes

gpu.request_adapter is deprecated, request_adapter_sync instead.
gpu.enumerate_adapters is deprecated, use enumerate_adapters_sync instead.
adapter.request_device is deprecated, use request_device_syncinstead.
buffer.map is deprecated, use map_sync instead.

Ready. This basically applies the API changes to move further with async support.
Next up would be creating examples that use the API in an async setting with asyncio and trio. Another further step could be to change the implementation of wgpu-native so that using the async api actually helps performance. But I'll probably leave that for later.
This PR also prepares the way for implementing update propagation, taking async and portability into account.


New components Table, Collapsible and refactoring

The work was divided into several parts to avoid having too long a PR.
This stage includes :

Collapisble component creation
Creation of a generic Table component and refactoring of its use in the doc.
Data generation script. It will evolve during the page UI dev.
Data display in the page. For the moment, data is displayed raw. They will be formatted to respect the layout in a future PR.

Are we going to be able to see the typings of nested types? such as ResponsiveProp?


Problems syncing blockchain

I'm not sure if this is also a result of my change of router as per this issue: #110
But I'm having some issues trying to sync the blockchain. Below is the debug log:
2018-07-10 02:28:36 Checking all blk files are present...
2018-07-10 02:28:36 LoadBlockIndexDB: transaction index enabled
2018-07-10 02:28:36 Opening LevelDB in /home/bitcoin/.bitcoin/chainstate
2018-07-10 02:28:36 Opened LevelDB successfully
2018-07-10 02:28:36 Using obfuscation key for /home/bitcoin/.bitcoin/chainstate: 53347205e0dc2e93
2018-07-10 02:28:37 Loaded best chain: hashBestChain=00000000000000000023efd9b5bb90b35fb5affbe2f626d4dc75021496c7aece height=531232 date=2018-07-09 21:00:21 progress=0.999789
2018-07-10 02:28:37 init message: Rewinding blocks...
2018-07-10 02:28:43 init message: Verifying blocks...
2018-07-10 02:28:43 Verifying last 6 blocks at level 3
2018-07-10 02:28:43 [0%]...[16%]...[33%]...[50%]...[66%]...[83%]...[99%]...[DONE].
2018-07-10 02:32:21 No coin database inconsistencies in last 7 blocks (15676 transactions)
2018-07-10 02:32:21  block index          250473ms
2018-07-10 02:32:21 Wallet disabled!
2018-07-10 02:32:21 mapBlockIndex.size() = 531234
2018-07-10 02:32:21 nBestHeight = 531232
2018-07-10 02:32:21 torcontrol thread start
2018-07-10 02:32:21 Bound to [::]:8333
2018-07-10 02:32:21 Bound to <IP_ADDRESS>:8333
2018-07-10 02:32:21 init message: Loading P2P addresses...
2018-07-10 02:32:21 Leaving InitialBlockDownload (latching to false)
2018-07-10 02:32:21 Imported mempool transactions from disk: 3 succeeded, 0 failed, 0 expired, 0 already there
2018-07-10 02:32:23 Loaded 66145 addresses from peers.dat  1914ms
2018-07-10 02:32:23 init message: Loading banlist...
2018-07-10 02:32:23 init message: Starting network threads...
2018-07-10 02:32:23 net thread start
2018-07-10 02:32:23 opencon thread start
2018-07-10 02:32:23 init message: Done loading
2018-07-10 02:32:23 msghand thread start
2018-07-10 02:32:23 addcon thread start
2018-07-10 02:32:23 dnsseed thread start
2018-07-10 02:32:34 Loading addresses from DNS seeds (could take a while)
2018-07-10 02:32:34 0 addresses found from DNS seeds
2018-07-10 02:32:34 dnsseed thread exit
2018-07-10 02:32:57 connect() to [2001:0:4137:9e76:d9:1224:3f57:ff80]:8333 failed: Network is unreachable (101)
2018-07-10 02:33:41 connect() to [2602:306:8bab:5b90:ac1a:4083:1c7:1bfe]:8333 failed: Network is unreachable (101)
2018-07-10 02:33:47 connect() to [2a02:2168:3865:8f00:67:e6b4:a886:99e3]:8333 failed: Network is unreachable (101)
2018-07-10 02:33:53 connect() to [2a02:1205:c6ba:38d0:435d:f1b6:695d:9f33]:8333 failed: Network is unreachable (101)
2018-07-10 02:34:54 connect() to [2601:647:cb02:88e0::307]:8333 failed: Network is unreachable (101)
2018-07-10 02:35:39 connect() to [2001:0:9d38:90d7:2ce8:167a:3f57:fed0]:8333 failed: Network is unreachable (101)
2018-07-10 02:35:39 connect() to [2a01:4f8:173:cc1::2]:8333 failed: Network is unreachable (101)
2018-07-10 02:36:24 connect() to [2601:441:8400:3eab::e87e]:8333 failed: Network is unreachable (101)

seems it might have resolved itself. it looks like i'm syncing some blocks again.


Skia ignores IStreamGeometryContextImpl.BeginFigure isFilled parameter

This API comes from WPF but Skia's Path object doesn't seem to have a concept of non-filled paths as far as I can see.
We have two choices here:

Remove the parameter - you can always pass a null brush to draw a non-filled path
Make Skia fill with a null brush when this parameter is passed

Not sure what the best option is - @kekekeks your thoughts?

@grokys
I think you have to use MoveTo to begin new figure in skia.
https://github.com/wieslawsoltes/Core2D/blob/master/utilities/Core2D.Renderer.SkiaSharp/XPathGeometryConverter.cs#L34

And for drawing with or without fill I use something like this in skia:  https://github.com/wieslawsoltes/Core2D/blob/master/utilities/Core2D.Renderer.SkiaSharp/SkiaSharpRenderer.cs#L299-L310
        private void DrawPathInternal(SKCanvas canvas, SKPaint brush, SKPaint pen, bool isStroked, bool isFilled, SKPath path)
        {
            if (isFilled)
            {
                canvas.DrawPath(path, brush);
            }

            if (isStroked)
            {
                canvas.DrawPath(path, pen);
            }
        }

For Skia we are doing stroke and fill operations separately.
https://github.com/AvaloniaUI/Avalonia/blob/master/src/Skia/Avalonia.Skia/DrawingContextImpl.cs#L72
If isFilled is applied to the entire path we could just skip the fill operation here.

Our Skia backend also doesn't support multiple figures in the same geometry. We might have to refactor that part of the backend, so geometry could contain several SKPath objects.

It looks like this issue was never resolved.  Is it still on the table?  I am running into an issue with the PathFigure.IsFilled attribute not being respected.  For example, for the following code:
                <Path StrokeThickness="2" Stroke="Black" Fill="Black" Width="20" Height="20">
                    <Path.Data>
                        <PathGeometry>
                            <PathFigure StartPoint="19 19" IsFilled="False" IsClosed="False">
                                <LineSegment Point="6 19"/>
                                <LineSegment Point="6 6"/>
                            </PathFigure>
                            <PathFigure StartPoint="6 2" IsClosed="True">
                                <LineSegment Point="2 6"/>
                                <LineSegment Point="10 6"/>
                            </PathFigure>
                        </PathGeometry>
                    </Path.Data>
                </Path>

Looks like this in WPF:

And this in Avalonia:


clprover: move to by-name and partial windows compatability

Things done
Moved the clprover package to the by-name hierarchy and included windows into the build platforms. It currently fails to cross-compile (mingwW64) due to missing g++ compiler but adding a gcc dependency doesn't seem to fix it as this is not available for that platform. I'm not experienced with targeting Windows so I keep it marked as broken for now.

Built on platform(s)

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

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

[ ] sandbox = relaxed
[x] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

Merge conflict due to https://github.com/NixOS/nixpkgs/pull/354531.

Thanks for all the feedback and I got cross compilation to work fully.

aarch64-linux fails, other than that it looks good. Unfortunately ofborg is somewhat slow, so I often don't see the build results when checking on the PR again.
cc1plus: error: unknown value 'armv8' for '-march'
cc1plus: note: valid arguments are: armv8-a armv8.1-a armv8.2-a armv8.3-a armv8.4-a armv8.5-a armv8.6-a armv8.7-a armv8.8-a armv8-r armv9-a armv9.1-a armv9.2-a armv9.3-a native; did you mean 'armv8-a'?


Milestone 5: UI

Completed:

[x] Gitflow
[x] Implement the app UI
[x] ESLint
[x] Stylelint
[x] Deploy to Heroku

Thanks, @arslanbisharat! Much appreciated 👍 🙏


Create C2D functionality

Create C2D functionality

This is superseded by: https://github.com/oceanprotocol/vscode-extension/issues/15


Pool creation logs to console.error

When a pool is created, a message is logged saying it is being created.
However, this logs to console.error, which is incorrectly used in the case here as this is not an error.
In our application, we have a wrapper around the console logging functions so that we can log them into a file and have a consistent view, but rethinkdbdash does not use the console correctly in this case.
[2015-08-25 14:14:44] [ERROR] Creating a pool connected to localhost:28015

We tracked it down to the following stack, which shows where the call was being made.
    at Pool._log (/cifs/share/PufferPanel/node_modules/rethinkdbdash/lib/helper.js:10:15)
    at new Pool (/cifs/share/PufferPanel/node_modules/rethinkdbdash/lib/pool.js:58:8)
    at new PoolMaster (/cifs/share/PufferPanel/node_modules/rethinkdbdash/lib/pool_master.js:60:12)
    at r.createPools (/cifs/share/PufferPanel/node_modules/rethinkdbdash/lib/index.js:85:22)
    at main (/cifs/share/PufferPanel/node_modules/rethinkdbdash/lib/index.js:530:34)

This type of message should not be logged to error as it is not an error, but an info message.

The main reason why the pool master logs everything on stderr is because it blows to look for connections in stdout and disconnections in stderr. It's a pain to replay what happened -- if you actually have to debug something.
Anyway, you can just pass the silent argument and listen for log events on the pool master if you want to redirect the output.
https://github.com/neumino/rethinkdbdash#connection-pool

So, in the scope of logs, everything is considered the same level. Is there going to be any way to track if a log is an error or not? Or any 'hack' to achieve that then? I do want to have logs from rethinkdbdash being shown on the console, but I would like to mark such logs when they are displayed as the correct 'level' (i.e info, error).

You can run a regex against the log messages...
r.getPoolMaster().on('log', console.log);

So instead of just logging things to the correct level, you are just logging everything as an error, and expecting users to have to sort through every message that comes through (many of which we don't even know exist) and decide if they are an error or not, and then re-route those as we see?
That seems like a terrible design.

The design is to log everything at the same level. If you don't want to do that, you are free to log them any level you want.


Api to store and match faces in database

Hi, I would like to build an API using face recognition that can match faces already in database and if found it can recognize them or add them if they don't get matched
Description
Describe what you were trying to get done.
Tell us what happened, what went wrong, and what you expected to happen.
IMPORTANT: If your issue is related to a specific picture, include it so others can reproduce the issue.
What I Did
Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.

ohk I will let u know what I can do


[Feature] : Add Issue template for Feature request

@roshan1337d There is a need for feature request template as well

Go ahead, assigned it to you 🚀