Azure-docs private

Azure documentation issue guidance
Thanks for opening an issue in the Azure technical documentation repository.
We use GitHub issues as the primary channel for customer and unique feedback about the Azure documentation.
Creating an issue
We prefer that you create documentation feedback issues using the Feedback link on the published article - the feedback control on the doc page creates an issue that contains all the article details so you can focus on the feedback part.
You can also create a feedback issue here in the repo. If you do this, please make sure your issue lists:

[ ] The relevant Azure service or technology.
[ ] A link to the published documentation article that you have feedback about.
[ ] Clear, specific feedback that the comunity can act on.

Pull requests and article contributions
If you know the change that is needed in an article, we encourage you to submit the changes directly using a pull request. If the change is large, or if you want to contribute an entire article, follow these guidelines:

[ ] Don't surprise us with a big pull request or a pull request with a new article! Submit an issue that describes the details of the proposed large change or new article.
[ ] Include the service or technology area

Tech support and product feedback
If you would like to contact Microsoft about other things, such as product feedback or tech support, please review these guidelines:

If you need technical support using Azure, the paid and free support options are described here: https://azure.microsoft.com/support/options/.

@
It looks like your issue is resolved since you closed this thread.
If there are further questions regarding this matter, please tag me in a comment. I will reopen it and we will gladly continue the discussion. Thanks!!!


Duty incorrectly showing as not called

I tried entering a group that was called earlier in the week, and one called tomorrow, and neither say they are called.

Ugh they have a typo and it broke parsing


Improve readability of timekeeping code in idle server check

Tried to improve things by refactoring the code to make things more readable. Also converted the longs to use the NanoTime object.
The logic should be identical before and after this change.
I did notice that the compactor idle check seems to include the same check that is happening in the code that reads it (AbstractServer.idleProcessCheck()) where it checks the idleReportingPeriod has elapsed since the last compaction has completed before returning true. Unless there is a reason this was added, it seems like that part could just be removed and the same check would take place upstream.

Converting to draft for now. Going to make another PR in 2.1 to clean up the duplicate logic outline above and merge that up first.


How to store the data

We need to decide a good way to store the gwadoc data, but it's not yet clear what are the intended uses or who are the intended users beyond generating the HTML documentation.
The current (not checked-in) data is a python file that fills dictionaries with data.  If generating documentation is the only use, we may as well put it directly into restructuredText. If we want a Python API, e.g., to request the localized name, definition, reverse, etc. from OMW, then it might make sense to make Python classes (Sphinx's autodoc could possibly be used to generate the docs, then).
In either case we could store the data in a data file and transform it (perhaps with validation) into the target representation. I propose using TOML. Even though it is relatively new and not in the standard library, it was chosen for Rust's package manager and for the future of Python packaging (see PEP-0518), so it has support by major projects.
Here's a what (part of) hypernym would look like:
[hypernym]

  [hypernym.name]
    en = "Hypernym"
    symbol = "⊃"
    ja = "上位語"

  [hypernym.def]
    en = "a word that is more general than a given word"
    pl = "Relacja łącząca znaczenie z drugim, ogólniejszym, niż to pierwsze, ale należącym do tej samej części mowy, co ono"
    ja = "当該synsetが相手synsetに包含される"

There's some flexibility in TOML (but not as flexible as YAML, which is a good thing). Something like this would be equivalent, e.g., if you want to group all attributes by language:
[hypernym]
name.en = "Hypernym"
def.en = "a word that is more general than a given word"
# etc...

And while I would like to place this file (gwadoc.toml or whatever) at the top level so it's more prominent for non-Python users/contributors, that would make it much more difficult to distribute with the project and for the python code to find when run. So it might go under gwadoc/gwadoc.toml instead.
As an alternative, if we don't care much about non-Python users, we could make a Python class like Relation and do things like this:
rels['hypernym'] = Relation(
    name={
        "en": "Hypernym",
        "ja": "上位語",
    },
    def={
        "en": "a word that is more general than a given word",
    }
)

Then query it like this:
>>> hypernym = rels['hypernym']
>>> hypernym.name['en']
Hypernym

For now I've settled on having data structures that behave like dictionaries or classes in that they allow for both key-lookup (e.g. rels['hypernym']['name']['en']) and dot-access (rels.hypernym.name.en). The former is useful when you have the relation or property name in a variable and prefer rels[relation] over getattr(rels, relation) while the latter is much simpler and makes editing the file easier.  I also made the data structures raise errors on invalid keys/attributes and defined inventories of valid relations, forms, projects, languages, etc., in order to reduce errors caused by simple typos.
I'll leave this issue open as a feature request for future versions.


One question?

Stdweb and wasm-bindgen( web-sys js-sys),
What's the difference?

wasm-bindgen and stdweb are both trying to do the same thing, but they have different philosophies:

wasm-bindgen is more "official", since it's heavily promoted by the rustwasm group.

wasm-bindgen is missing a lot of useful features compared to stdweb. In my opinion stdweb is very usable, whereas wasm-bindgen is missing too much stuff.
For example, closures are very well supported by stdweb, but only partially supported by wasm-bindgen.
Also stdweb has excellent support for JS Promises, whereas wasm-bindgen is only just now getting some initial support for them.

web-sys is automatically generated from WebIDL. That means that it supports more APIs compared to stdweb, but the APIs are generally a lot worse (stdweb APIs are hand-crafted, so they can be made much higher quality).

It's awkward to call custom JS APIs in wasm-bindgen (you have to define a separate .js file, which isn't officially supported yet), but it's really easy in stdweb (using the js! macro).

In general wasm-bindgen takes the approach of making the APIs as close to JS as possible (even if that makes them really awkward to use), whereas stdweb takes the approach of tweaking the APIs to make them fit better with Rust.

In my opinion stdweb is a lot more "production ready" (I'm using it for fairly large and complex 10k+ LOC projects and it works great), whereas wasm-bindgen still has a ways to go.
But wasm-bindgen is improving at a really fast pace, so that will probably change in the near future.

Thank you for your explanation .


chore(main): release 0.34.0

:robot: I have created a release beep boop
0.34.0 (2023-06-22)
Features

advanced html (a19ed79)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/samuele-cozzi/obsidian-marp-slides/releases/tag/0.34.0 :sunflower:


Anthropic: decrease recommendedTopK to 32

Description
Move back recommendedTopK to 32 for Anthropic
Risk
N/A
Deploy Plan

deploy front

LGTM


WIP – Fix incorrect dates in profile_details.js

Notes

Start by making the spec describe the incorrect dates we're seeing in #622

Note to self: 8a661bfb9562fcd9e5131f1741b44aa7acf1bd47 fails on my local machine, succeeds in the cloud. Makes sense that there could be machine/cloud discrepancies since this is a timezone issue.

Travis is now showing RED, just like we want it to.

Travis now showing GREEN because we're forcing UTC in the date display.


Recent phrases

Description:
Adds a category for Recent phrases.  It shows the last nine phrases you've used, and acts as a preset category.
Closes #238

[ ] Acceptance Criteria satisfied
[ ] Regression Testing

A couple of small things:
I mentioned this in chat, but the two clock icons are very different and a little jarring.
Also, I expected the most recently used phrase to be the first one in the list for Recents.  Right now, the most recently used phrase is the last phrase presented.


boards: fix SPI GPIO CS, display, link_board_eth, dw1000

Since commit 5963eba
("drivers: spi: CS configuration through devicetree")
the SPI GPIO CS flags are obtained from DT,
but the patch series has missed the necessary changes
for the ieee802154_dw1000 driver and decawave_dwm1001_dev board,
and in the device trees for displays and link_board_eth.

boards/arm/reel_board/dts/reel_board.dtsi also needs a fix.

boards/arm/reel_board/dts/reel_board.dtsi also needs a fix.

I was not sure about that because e.g. a shield would definitely change it.

boards/arm/reel_board/dts/reel_board.dtsi also needs a fix.

I was not sure about that because e.g. a shield would definitely change it.

I'm not sure about that: a shield overlay might change it, but one that assumes the standard Arduino SPI function positions might not.
In any case I think it's good for documentation: it's extremely unlikely that 0 is the correct flags value for a SPI chip-select signal, but people might see it here and copy it.
If you want it left as zero let me know; #26684 patches it to use GPIO_ACTIVE_LOW.

In any case I think it's good for documentation: it's extremely unlikely that 0 is the correct flags value for a SPI chip-select signal, but people might see it here and copy it.

okay, let's do it this way.


oghliner declines to offline my 4MB CSV file

oghliner declines to offline my 4MB CSV file in http://wfwalker.github.io/ebird-mybird/
How can I reconfigure this to allow larger files?
[17:46:35] Skipping static resource "dist/data/ebird.csv" (4.41 MB) - max size is 2.1 MB

Duplicate of #28.

#127 will fix this problem.


Add generic handler metrics with the message type as a label

Is your feature request related to a problem? Please describe.
The handler metrics that grabbit exposes are per handler which makes creating generic dashboards difficult.
Describe the solution you'd like
I'd like generic metrics with the message type as a label, for the result counters the result would be a label as well

@danielwitz will the metric still be on the handler only we add the message type or are you proposing we change the metric to report on messages instead of handlers?

@rhinof I think that the metric should have a handler name label and message type so people can choose the granularity of the dashboards. I think that after everyone uses this metric we can delete the other handlers metrics cause this one will cover all the cases


[Event Request] Codeunit 1535 "Approvals Mgmt." - OnBeforeApproveSelectedApprovalRequest

Hello,
We would need an event OnBeforeApproveSelectedApprovalRequest at the start of the function ApproveSelectedApprovalRequest.
I noticed there is already a request for an event in https://github.com/microsoft/ALAppExtensions/issues/11403.
local procedure ApproveSelectedApprovalRequest(var ApprovalEntry: Record "Approval Entry")
var
    IsHandled: Boolean;
begin
    // begin new event
    IsHandled := false;
    OnBeforeApproveSelectedApprovalRequest(ApprovalEntry, IsHandled);
    if IsHandled then
        exit;
    // end new event
    IsHandled := false;
    OnApproveSelectedApprovalRequestOnBeforeCheckStatus(ApprovalEntry, IsHandled);
    if not IsHandled then
        if ApprovalEntry.Status <> ApprovalEntry.Status::Open then
            Error(ApproveOnlyOpenRequestsErr);
    if ApprovalEntry."Approver ID" <> UserId then
        CheckUserAsApprovalAdministrator(ApprovalEntry);

    ApprovalEntry.Validate(Status, ApprovalEntry.Status::Approved);
    ApprovalEntry.Modify(true);
    OnApproveApprovalRequest(ApprovalEntry);
end;

[IntegrationEvent(false, false)]
local procedure OnBeforeApproveSelectedApprovalRequest(var ApprovalEntry: Record "Approval Entry"; var IsHandled: Boolean);
begin
end;

We have some checks in this function and if they are not met we do an exit. That's why, this event needs to be before the one already requested.

version to implement >= 17.4

By the rules we merge a new event to the previous version only. As the current master version is 19.0 it will be merged to the next update for the version 18 -> 18.1.

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


Compressed kronecker form

Done in https://github.com/JuliaReach/CarlemanLinearization.jl/pull/20.


Can't generate

Hello. I use the last commit and the last checkpoint, but when I try generate wav I take this error. I use pytorch 1.0, CUDA 8, python 3.6

+1


(maint) Add spell check linting to repository

Description Of Changes
This PR adds two new workflows that uses misspell and LanguageTool
to run verification on the changed text in a PR, or the entire repository
on demand to verify that there are no spelling mistakes and that sentences
are correct.
Motivation and Context
We should strive to not have spelling mistakes when merging PR's into the repository.
Testing
Workflows tested through my own fork
Operating Systems Testing
N/A
Change Types Made

[ ] Bug fix (non-breaking change).
[ ] Feature / Enhancement (non-breaking change).
[ ] Breaking change (fix or feature that could cause existing functionality to change).
[ ] Documentation changes.
[ ] PowerShell code changes.
[x] Build related

Change Checklist

[ ] Requires a change to the documentation.
[ ] Documentation has been updated.
[ ] Tests to cover my changes, have been added.
[ ] All new and existing tests passed?
[ ] PowerShell code changes: PowerShell v2 compatibility checked?

Related Issue
N/A

@pauby I could not get it to properly create a review comment from a fork of the repository, instead if the PR is created from a fork it will instead create a PR check warning instead when you look at the Files changed in the PR.
Using our own token is not an option either, as this will not be available in a PR that comes from a fork.
An example of how this will look if it comes from a fork can be seen here: https://github.com/AdmiringWorm/boxstarter.org/pull/24/files

@AdmiringWorm awesome work! Thanks for your contribution!


Exception: type '_OneByteString' is not a subtype of type 'int'

Trying to view any recipe on the Android app causes this error.
Exception: type '_OneByteString' is not a subtype of type 'int'

Workaround: use web ui.

Cookbook app version: 0.10.2
Nextcloud server version: 25.0.4
Android app version: 0.7.8 (from https://f-droid.org/packages/com.nextcloud_cookbook_flutter/)

dupe of: https://github.com/Teifun2/nextcloud-cookbook-flutter/issues/178
you'll have to wait until f-droid ships the new 0.7.9 or rollback to cookbook 0.10.1


Improve the select/deselect mechanism of the button in bookmarks section

Present Behaviour

In the bookmarks section, on clicking the "Select all" button, all the bookmarks are selected and the button now reads "Deselect all". But, as soon as the user manually deselect a single bookmark, the button changes back to "Select all".
If the user goes to the bookmarks section and manually select some images. The button does not change to "Deselect all" until and unless all the images are selected.

Expected Behaviour

The button should not change to "Select all", until all the images have been deselected.
The button should change to "Deselect all" as soon as the user has selected even one image.

The above improvements are more intuitive for the user.

Can I take up this issue?


Feature/harsh gurnani jenny mar/inputvalidation

Tracking Info
Resolves #14
Make sure your branch name conforms to: <feature|staging|bugfix|...>/<username>/<3-4 word description separated by dashes>. Otherwise, please rename your branch and create a new PR.
Changes
We added input validation functionality. The InputValidationText file is used to create a Text View that can display a message and a checkmark/exclamation mark that correlates to success or failure. In addition, we added a component called the InputValidationComponent, which takes in an array of functions and calls those functions with the text from the textbox. Those functions return a boolean value which determine if we display a success message or failure message.

TODO

Testing
We tested with test functions in the InputValidationComponent, as well as a Test View in the TextInputFieldComponent.

TODO

Confirmation of Change

TODO...

can you rebase this branch off of main so that we will have the linting checks done here as well? Lmk if you don't understand rebase and I can discuss in the team meeting because it is very important and useful in git!

Linked issue #14 to this PR

Leaving a comment here to make sure we don't forget
Change the spacing between the text box and the first error message (to match figma)


Compilation errors with 0.4.0?

I recently updated to fp-ts 0.4.0, and I'm seeing many compilation errors similar to the following:
ERROR in [at-loader] ./node_modules/fp-ts/lib/Validation.d.ts:18:22
    TS2420: Class 'Failure<L, A>' incorrectly implements interface 'FantasyAlt<"Validation", A>'.
  Types of property 'alt' are incompatible.
    Type '(fy: Validation<L, A>) => Validation<L, A>' is not assignable to type '(fy: HKT<"Validation", A>) => HKT<"Validation", A>'.
      Types of parameters 'fy' and 'fy' are incompatible.
        Type 'HKT<"Validation", A>' is not assignable to type 'Validation<L, A>'.
          Type 'HKT<"Validation", A>' is not assignable to type 'Success<L, A>'.
            Property 'value' is missing in type 'HKT<"Validation", A>'.

This is using<EMAIL_ADDRESS>with awesome-typescript-loader.
I have no idea how to proceed.  Any help would be greatly appreciated.

I can't repro with the following setup

<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>
Could you please put up a repo showing the failure?

Okay I finally worked it out.  When I was using a previous version of fp-ts, I created a new data type and registered it with HKT.  When I updated I hadn't yet updated usages - which meant there where conflicting definitions of HKT with different numbers of type parameters.  Crazy error!


Entity Tree Collapsed by Default

Is your feature request related to a problem? Please describe.
As pandora data gets larger, having the entity tree expanded by default becomes annoying since we need to either search or collapse everything manually.
Describe the solution you'd like
The entity tree should be collapsed by default.
Describe alternatives you've considered
If having the tree collapsed by default is not a good approach we could at least have a button to expand/collapse.

I am a big fan of a collapse/expand button! A way to "remember" somehow if a particular category is currently collapsed would be useful. When a user has everything collapsed except one category, re-opening Pandora should show the same result. The collapse/expand button just ensures that property gets changed accordingly everywhere.
Feel free to challenge me on this but I think by default, the tree should be expanded: when someone tries Pandora for the first time and they load a demo project, showing them all entities available to them makes sense.


[Query Insights] Add user info in top queries results

Is your feature request related to a problem? Please describe
One of the top ask from the query insights users are the ability to identify users that submitted those heavy queries. We have made some experiments in https://github.com/opensearch-project/OpenSearch/pull/12529 to read from the thread environment context but after the discussion with the community, we learned that might not be the best solution for getting user related info.
We need to again carefully review what should be the best way to add user related information into top queries - Let's check the Identity service to see what are the gaps to get user info from there.
Describe the solution you'd like
Utilize identity service to add user related info into top queries results.
Related component
Search:Query Insights
Describe alternatives you've considered
No response
Additional context
No response

IdentityService has a function getSubject to further get the application-wide uniquely identifying principal. (https://github.com/opensearch-project/OpenSearch/blob/main/server/src/main/java/org/opensearch/identity/IdentityService.java#L50).
When the feature flag (opensearch.experimental.feature.identity.enabled) is enabled, we load the identity plugins in node.java (https://github.com/opensearch-project/OpenSearch/blob/main/server/src/main/java/org/opensearch/node/Node.java#L505).
Security plugin already implements IdentityPlugin (https://github.com/opensearch-project/security/blob/main/src/main/java/org/opensearch/security/OpenSearchSecurityPlugin.java#L226), but the getSubject function just returns NoopSubject now (https://github.com/opensearch-project/security/blob/main/src/main/java/org/opensearch/security/OpenSearchSecurityPlugin.java#L2021).

So the gap here is, we need to correctly implement the getSubject function in security plugin to be able to get identity info while using different auth methods, so that we can correctly retrieve the user related information in the query insights plugin.

Part of the work is done as part of https://github.com/opensearch-project/OpenSearch/pull/13374, in which we provided certain abilities to send customized labels in a search query as part of the X-Opaque-Id header, and top n queries service will surface that information.
We still need to continue the work on

https://github.com/opensearch-project/OpenSearch/issues/13341
https://github.com/opensearch-project/security/issues/4402

To introduce a separate header dedicated for labels.


Unable to parse if the key have an IP address

json :=  	{         "name": {"first": "Mohamed", "last": "Shapan"},         "age": 26,         "friends": { 		"<IP_ADDRESS>":[             		{"name": "Asma", "age": 26},             		{"name": "Ahmed", "age": 25},             		{"name": "Mahmoud", "age": 30}         	] 		} 	}
In the above json, there is no way to access the key value pairs exists inside the slice. is there any possible way to fix this?

you need to escape IP dot like this
package main

import (
	"fmt"

	"github.com/m7shapan/njson"
)

func main() {
	json := `
        {
        "name": {
            "first": "Mohamed",
            "last": "Shapan"
        },
        "age": 26,
        "friends": {
            "<IP_ADDRESS>": [
                {
                    "name": "Asma",
                    "age": 26
                },
                {
                    "name": "Ahmed",
                    "age": 25
                },
                {
                    "name": "Mahmoud",
                    "age": 30
                }
            ]
        }
        }`

	type User struct {
		Name    string   `njson:"name.last"`
		Age     int      `njson:"age"`
		Friends []string `njson:"friends.10\\.42\\.33\\.142.#.name"`
	}

	u := User{}

	err := njson.Unmarshal([]byte(json), &u)
	if err != nil {
		// do anything
	}

	fmt.Printf("%+v\n", u) // {Name:Shapan Age:26 Friends:[Asma Ahmed Mahmoud]}
}

and the answer is
{Name:Shapan Age:26 Friends:[Asma Ahmed Mahmoud]}


Color problems

Hallo. I'm just wondering, why is the Kap-recorder changing the color after recording?

Looks like you're working in a design tool of some sort, have you assigned a colour profile to your document? Your current profile might not be playing nicely with the codec used to record:
https://github.com/wulkano/kap/issues/493#issuecomment-411969805


Fix for setNetworkConnection API

Fixes: https://github.com/appium/appium/issues/5256

@imurchie @jlipps @TikhomirovSergey Please review. This fixes the API to work on all the Android API till API Level 23 (Tested from 19 to 23)

Raised here: https://github.com/appium/appium-android-driver/pull/148


fix: encoding of XML chars in tags

Property and other items were encoded as innerxml instead of
chardata. Innerxml does not encode special XML chars.
See also: https://github.com/golang/go/issues/16604

@nscuro sorry - here you go

Released in v0.5.2.


[AMBARI-23741] Cannot install mpack due to No Environment present

What changes were proposed in this pull request?
Fix missing Environment:
[root@c7401 ~]# ambari-server install-mpack --mpack=http://public-repo-1.hortonworks.com/HDF/centos7/3.x/updates/<IP_ADDRESS>/tars/hdf_ambari_mp/hdf-ambari-mpack-<IP_ADDRESS>-35.tar.gz
Using python  /usr/bin/python
Installing management pack

ERROR: Unexpected Exception: No Environment present for retrieving for thread <_MainThread(MainThread, started<PHONE_NUMBER>10880)>

How was this patch tested?
[root@c7401 ~]# ambari-server install-mpack --mpack=http://public-repo-1.hortonworks.com/HDF/centos7/3.x/updates/<IP_ADDRESS>/tars/hdf_ambari_mp/hdf-ambari-mpack-<IP_ADDRESS>-35.tar.gz
Using python  /usr/bin/python
Installing management pack

2018-05-04 16:38:08,739 - Execute[('tar', '-xf', '/var/lib/ambari-server/data/tmp/hdf-ambari-mpack-<IP_ADDRESS>-35.tar.gz', '-C', '/var/lib/ambari-server/data/tmp/')] {'tries': 3, 'sudo': True, 'try_sleep': 1}
Ambari Server 'install-mpack' completed successfully.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/2131/
Test FAILed.
Test FAILured.

Failure is unreleated, environment-specific.
retest this please

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/2134/
Test FAILed.
Test FAILured.

retest this please

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/2137/
Test FAILed.
Test FAILured.

retest this please

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/2139/
Test FAILed.
Test FAILured.

retest this please

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/2144/
Test PASSed.


Don't leak JUnit4 and Jetbrains annotations as transitive dependencies

Testing a solution for #71 . It works for me with mvn clean install -Dmaven.test.skip=true but I get some test errors, which I'm not sure if I introduced or if the develop branch fails on my machine. Would appreciate it if others tested this as well.
I had to move dom/src/test/java/org/linguafranca/pwdb/kdbx/dom/DomPropertyValueTest.java to the src/test/... folder, but I did not see any other *ValueTest files in other projects under the src folder, so it should have been in the test folder from the beginning?
Also moved MavenRunListener to the src/test folder, which fits how the documentation describes it: https://maven.apache.org/surefire/maven-surefire-plugin/examples/junit.html#using-custom-listeners-and-reporters

My test failure is related to database/src/test/java/org/linguafranca/pwdb/PropertyValueTest.java : sealedObjectTest(). The THIS_IS_A_SECRET.getBytes() method uses the platform encoding, and if I run the test from IntelliJ Idea by hand it works fine, but if I run maven then I guess it uses the Windows encoding instead of UTF-8.
I guess it's a maven issue, not a code issue.

THIS_IS_A_SECRET.getBytes() ... this is a bug, should say THIS_IS_A_SECRET.getBytes(StandardCharsets.UTF_8)
Also moved MavenRunListener to the src/test folder, if you do that then tests on other modules fail, as they can't see the class ...

Thanks for contributing your pull request. As mentioned under my comment on #71 I decided to make some more sweeping changes, hopefully this will serve the purpose you had in mind.

Yes, this was a proposal, so I'm happy if you can incorporate it in any way.

Also moved MavenRunListener to the src/test folder, if you do that then tests on other modules fail, as they can't see the class

Interesting, I could do mvn install without issues, but sometimes it felt like IntelliJ Idea or maven was not quite compiling with the latest changes I was doing, even if I did a clean...


Revert "loop over all config servers"

Reverts vespa-engine/vespa#6284
Broke some system tests (6.254.8)

Looks like I forgot to remove a \n newline


Add Planner Tasks and Todos

Hi, Thanks for sharing your implementation.
I need to access a user's todo and planner tasks from a rails app. So I have been working on a small extension.
It's still missing some rspec tests, but when that is done, I will create a PR.
Is it okay to have simple implementation first? And would you accept the PR after review?

Thanks for adding this. I am happy if @grantspeelman  is ok.


Warp Image transform may be filled the black background with edge color

For example if I want to train a neural net to classify character in image.
I think after the warp image transformation, the black background maybe filled with edge color so that it is closer to unseen dataset distribution.
I think the second image is better.

Done! We can now do new WarpImageTransform(...).borderMode(BORDER_REPLICATE) to get that.


cura: 4.10.0 -> 4.12.1, cura_stable: fix

Motivation for this change
update cura and fix its "stable" version
Things done

Built on platform(s)

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

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

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

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 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
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Please also update all the other ultimaker packages:
$ rg ultimaker -il
pkgs/development/libraries/libnest2d/default.nix
pkgs/development/python-modules/libarcus/default.nix
pkgs/development/python-modules/libsavitar/default.nix
pkgs/development/python-modules/pynest2d/default.nix
pkgs/development/python-modules/uranium/default.nix
pkgs/applications/misc/curaengine/default.nix
pkgs/applications/misc/curaengine/stable.nix
pkgs/applications/misc/cura/default.nix

(except for the "stable" version of curaengine of course)

@gebner thanks for noting. Should be fixed now.


iOS preferredMaxLayoutWidth

In AutoLayout on iOS there is an issue with ambigous intrinsic size for multiline text. There is an ugly workaround using preferredMaxLayoutWidth which lives beside the constraint solver, as it cannot deal with this kind of problem.
How does GSS tackle this?

For GSS multiline text is the same as single line. We remeasure intrinsic values and update the system until we find that system is solved. In complex situations it may take 2-3 reflows to get it right (a lot of nested centering).
GSS (ab)uses the fact that absolutely positioned multiline elements collapse their width. Indeed there's certain non-determenism in undersconstrained systems, e.g. when both height and width is intrinsic. We try to avoid it by leaving one axis constrained, while another is left intrinsic.


Reproduce Problem (I think some .npy files are missing)

Hello,
I am interested in reproducing your methods, but I've encountered an issue. The dataset seems to be missing the following three files, which are essential for running the python train command:

traj_mat.npy
traj_mat(filled,sample).npy

Could you please advise on how to proceed or provide the missing files? Thank you for your assistance.

我也觉得，文件里面找不到，运行不了

Thank you for your interest in this work. I have submitted the relevant datasets in the latest commit https://github.com/wjfu99/FL-epidemic/commit/7f6ddd7327d6729f41a8c130a8a2fa9b687c18a1.

好的，谢谢

Thank you. I will try it.

sample_result_old_omicron.npy   per_data_old_omicron.npy这两个文件怎么没有啊


cdc: send all observed events before sending init event

Signed-off-by: qupeng<EMAIL_ADDRESS>What problem does this PR solve?
Issue Number: close https://github.com/tikv/tikv/issues/11055.
Check List
Tests

Integration test

Side effects
Release note
None

/test

/merge

/run-cherry-picker

/run-cherry-pick

/run-cherry-picker


Convert Configuration to Baseline

Convert configuration to baseline.
Fixes https://github.com/PolyMathOrg/PolyMath/issues/46

This will only work after the migration.

It uses Tonel format. Is that what you wanted?

Yes Tonel is better :-)

We have some tests failing at the moment, nothing to worry :-)

I just did a dummy convertion. If there is things to change I'll do it.


VH and above can't submit feedback

Even with the correct permissions and roles, users cannot add feedback to a view

Command feedback is deprecated


Extend JWT payload

When extending saleor with external services it is useful to reuse its JWT token for authentication everywhere, currently we can only extract email address for user which is not enough to do basic access control.
This PR adds possibility to inject additional user information into JWT token payload, starting with is_staff and is_superuser flags.
There might be need to provide (optional) full permission list in the future using same mechanism.
No tests added since no business logic really introduced and tests complexity would greatly outgrow production code.
Pull Request Checklist

[x] Privileged views and APIs are guarded by proper permission checks.
[x] All visible strings are translated with proper context.
[x] All data-formatting is locale-aware (dates, numbers, and so on).
[x] Database queries are optimized and the number of queries is constant.
[x] Database migration files are up to date.
[x] The changes are tested.
[x] GraphQL schema and type definitions are up to date.
[x] Changes are mentioned in the changelog.

Here is the report for 2e4551f3cb69e7c95e956f2cd0c6ac682fbbbc0f (mirumee/saleor @ extend-jwt-payload)
Base comparison is f0cdaf50dfb046b06a8a1f173cf15bcf4f2c6d49.
No differences were found. (click me)

# api.benchmark checkout
  test name                                  	left count 	right count	duplicate count
  -------------------------------------------	-----------	-----------	---------------
  add billing address to checkout            	         34	         34	             20
  add shipping to checkout                   	          7	          7	              0
  checkout payment charge                    	         14	         14	              0
  complete checkout                          	          6	          6	              0
  create checkout                            	         50	         50	             24

# api.benchmark homepage
  test name                                  	left count 	right count	duplicate count
  -------------------------------------------	-----------	-----------	---------------
  retrieve main menu                         	          5	          5	              0
  retrieve product list                      	          4	          4	              0
  retrieve secondary menu                    	          5	          5	              0
  retrieve shop                              	          2	          2	              0

# api.benchmark product
  test name                                  	left count 	right count	duplicate count
  -------------------------------------------	-----------	-----------	---------------
  product details                            	         15	         15	              3
  retrieve product attributes                	         13	         13	              2

# api.benchmark variant
  test name                                  	left count 	right count	duplicate count
  -------------------------------------------	-----------	-----------	---------------
  product variant bulk create                	         51	         51	              3
  retrieve variant list                      	         15	         15	              6

# api product sorting attributes
  test name                                  	left count 	right count	duplicate count
  -------------------------------------------	-----------	-----------	---------------
  sort product not having attribute data     	         21	         21	              0

Test?

No point, really. I wrote a few words about that in the PR description.
No business logic, no reason to change this code if you're not integrating something, trivial code.

I agree the code is trivial, but saying that there is no point of writing tests for any piece of code is at least controversial ;)

Without test there is no proof the JWT payload is actually what we expect it to be.

What a nice and unexpected place to have an interesting discussion, as a testing geek I can't miss that opportunity to talk! 😉
Actually, JWT does not need to do anything and we outsource it to a separate library, it is used outside of the saleor and you could/should easily test it in integration testing or just by seeing that your local dev env is working at all.
Obviously, it is a complex and hot topic, but I would like to kindly remind everyone that testing is not prooving correctness and there is nothing strange in consciously choosing not to test a piece of code, and I write this as a longterm TDD proponent!
Tests are long term investments that are subject to constant justification and balancing risk vs cost. When testing trivial glue code we might generate more pain by writing, running and maintaining tests themselves then they bring to the table in terms of increased safety and coding. Nice take on it is here and somewhere in Kent Becks book I totally forgot the title 😄

What I mean is that when we upgrade the django JWT dependency from X major version to X other major version, we would have no way of telling "They dropped the setting without deprecating it, and the extension is no longer called".
What bothers me is that it is implicit. But I get it, it is fair; and we assume the third-party will make sure of not doing a major breaking change without actually deprecating first to let us know–which is fair.


Google stellite map, not show street name

How can i set street name in google satellite map?

Pl, How can i add google satellite on default map layer

Friend, you should ask for help in the forum!
https://www.traccar.org/map-layers/

Thanks,
Now i am using custom map(google satellite ).
Would that be ok ?
i want to use as default and how to configuration it.
Pls

Please use forum for questions.


env var  and quarto installation dockerfile

I have added the env var ($BUILDDIR & TOP_SRCDIR) and Quarto installation to devcontainer branch dockerfile

Thanks. I have built the container and it works for me (see below). Happy for this to be added to the Dockerfile


Attempt to blindly fix Windows build failure

Ref #88
@Nexesenex @saood06
Does this work?

Hey IK.
Yes, both your last commit and Saood's cracked up fix are working for compilation in non-Cuda and cuda mode.


Add draft implementation of the WebView using EdgeHtml control

During initialization failures aplication eixting
No custom scheme support
No loading files from file:// scheme
No communication with host support
Work only in STA (seems to be MSEdge limitation)

I would like to implement more modern c++/winrt, but that requires version C++ 17. And that seems to be another request.

This looks really interesting. Thanks for getting started on it!

I would like to implement more modern c++/winrt, but that requires version C++ 17

Please feel free to switch the project to C++17 in your PR if that helps with implementing this cleanly and doesn't have any other major drawbacks.

@SteveSandersonMS Thank for feedback. I will play with C++ 17. On closer investigation support for Edge seems to be impossible to implement fully. Would like to hear you opinion on what's very essential to support in the list of issues which I have.
Another issue which should be worked-out separately is handling errors. right now MessageBox is popping up if you do not have WebView (Chromium) installed. I would like to have exception to be produced by library and not message boxes. If you have something in your mind how to make that work except changing export declaration (returning int instead of void), let me know. This should be whole new issue, but I just want to capture your attention while you are here.

Hello @kant2002 , thanks for your contribution. Did you make any progress on this lately? Is it correct that this implementation allows for running WebWindow in EdgeHTML engine (old Edge browser)? This seems like an interesting solution as a fallback scenario when the new Edge (Chromium) is not available on the user's system.
I didn't dig too deep into the details, but for me the HelloWorldApp shows an error message with 0x80004004 code right after the window is initialized.

@yuri-vin believe it is impossible properly implement WebWindows as it is in old Edge. Given that Steve explicitly express that any functionality added should still support whole scope of existing functionality, I cannot made it. One of the obvious roadblocks is injection of JS into EdgeHTML. I cannot find article how to do that. Without that, I doubt my work can be implemented practically.
If you know how to inject JS into running page in the EdgeHTML, please give me hint, and I can try to revive this branch

It should be possible using IWebViewControl.InvokeScriptAsync and IWebViewControl2.AddInitializeScript, no?

I can try again. Let me recall where I stuck.

@reflectronic do you now how I can implement custom scheme support?

@yuri-vin The error which you are seeing is from fact, that you load files from local file system. EdgeHTML cannot display data from local filesystem. At least I still do not found an way to make it load file:// protocol. There possible to embed simple HTTP server as part of WebWindow, but that's defeat whole thing to be minimalistic library.
@reflectronic Other thing which is missing is the add_WebMessageReceived handler which implemented in WebView2. I can implement receiving notification same way as Android Cordova implement that, having queue in the Browser and drain it periodically. But on the whole fallback seems to be unreliable and not worth pursuing as part of that library.
@SteveSandersonMS what's your position on having limited fallback functionality to EdgeHTML where unsupported scenarios will clearly throw and documented?

The error which you are seeing is from fact, that you load files from local file system.

Thanks for the update, I'll check if loading resources from the web rather than the local file system solves the error. In my particular case this should not be a problem since I'm already running a local web server to run the aspnet core app, but in general yes, this seems like a big limitation...

I played around a lot with WebView. The functionality seems to be a little messed up, probably since they have "deprecated" it in favor of WebView2. I couldn't get things like AddInitializeScript to work properly; I'll try and investigate the Microsoft Community Toolkit's bindings and see why that might not be working for me.
If nothing else, I did figure out how to get local web pages to render. There are still caveats; custom URIs do not really work, and I don't think it's possible to implement them properly.

You can test it out on my fork at https://github.com/reflectronic/WebWindow/tree/edgehtml. I used a C++/WinRT implementation, separate from this PR's impl.

I have a managed old Edge fallback implementation in https://github.com/jspuij/BlazorWebView. Somebody might be interested in backporting it.


init-container.py does not require a root user

Is your feature request related to a problem? Please describe.
A default user for the container is set to uid=1001, but when init-container.py is actually invoked, user is switched back to root.
As soon as this line is removed and invocation is done via default uid=1001, script fails.
Describe the solution you'd like
When init-container.py is invoked with the default user, it should work as expected.
Describe alternatives you've considered
We forked init-container.py and disabled business logic, which is responsible for files manipulation.
Additional context
Add any other context or screenshots about the feature request here.

@ivanRylach Thanks for opening up issue.  I'm looking at it now.

@ivanRylach Since you disabled the logic for file manipulation, what functions did you keep?   I ask because I could make a sub-command (i.e. something besides init-container.py install) that would do just what you want.

@docktermj
I disabled only file manipulation
    # Manipulate files.

    # copy_files(config)
    # change_file_permissions(config)

    # Change ini files

    # change_module_ini(config)
    # change_project_ini(config)

@ivanRylach I've committed a new version of init-container.py that I have successfully run as non-root.   Give it a try and let me know if you bump into anything.
I also created a new subcommand init-container.py initialize-database that doesn't do the functions you posted above, but does the rest.

Pull Requests:

https://github.com/Senzing/docker-init-container/pull/23


Numpy method MachAr is deprecated since version 1.22

Exception is thrown when trying to import pysces.
Can be worked around by downgrading numpy to a version < 1.22 for now.

Thanks for this report!
Fixed in 514729ccaa59978157211f1b4965b5a4595a14ef and will be incorporated in the next PySCeS release.


Instant Package Utility

Description: Allow user to instantly create a package from selected resource.
Current Steps

Create package
Add filter by copy / paste I guess
Build and download

New Steps

Select the pages
Click to download an AEM Package

Purpose:   Save time and simplified process

Do share your feedback on it.

I think this is quite interesting indeed! Are you thinking it would support descending downs content paths? Would this be sites admin specific? Or assets as well?

Hi Praveen,
This is a nice feature developed. Nice work.
Just an additional thought.
Have seen in certain cases with clients , wherein during some critical launches which keeps happening at periodic intervals, they need to create packages of several pages [say 100 to 200] and deploy it to prod. Probably by the above solution, we need to individually select pages. But in case, the pages are spread across the site, it kind of becomes difficult for the administrator to go about using this. If there is something that can be done w.r.t this , it would be a really good-to-have feature.

@davidjgonzalez Thanks

Yes, that's the idea as of now making it descending down the path but giving an simple option in pop up for user to select this, can also be considered. As there can be scenarios where user may not descending downs content paths. :)

Yes, Assets use also sounds good.

@edubey1 Have you started working on this feature?

Not Yet, but I will soon get started working on this.
You have any thoughts?

One additional request is to create a package using a date modified filter on the contents, so that folks have a way to package new or recently modified content.  This is a common request, especially for migrations/upgrades.

@badvision is the date modified something for this feature? It seems this is not a query feature but rather a manual select. I believe the query packager can do this already?


Need more inputs for Volume up, Down, Mute

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
I'd like to add / control the volume / mute through the control center or even through the accessory
Describe the solution you'd like
A clear and concise description of what you want to happen.
Ability to configure more input buttons to additional key events
"volumeup": "KEYCODE_VOLUME_UP",
"volumedown": "KEYCODE_VOLUME_DOWN",

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
tried adding the keycodes but they dont seem to work
Additional context
Add any other context or screenshots about the feature request here.

Does the volume control in control center using your iPhone/iPad physical volume button doesn't work to control your device's volume? Those keycodes already build inside the plugins. Except for mute.


EAI_AGAIN error

Hello,
Different API calls (get user cards, get user bank accounts, register card) sometimes give the following error:
Error: getaddrinfo EAI_AGAIN api.sandbox.mangopay.com:443     at Object.exports._errnoException (util.js:874:11)     at errnoException (dns.js:31:15)     at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:77:26)
I am using the sandbox for now and the SDK v1.2.0.
Thank you

What version of node are you using? Can you try 6.9.2 ? It looks more like a DNS error than Mango.

I will upgrade my node version to 6.9.2 and test again.
Thanks

Hey @zefabgithub, how did you get on with the newer version?

No error encountered since the node js update. I continue my tests. Sorry for this late answer

Thank you for the confirmation @zefabgithub !


fix md5 check

变更内容

putObject/appendObject支持选项OSS_CHECK_MD5
添加对应的测试用例

Coverage increased (+0.3%) to 91.273% when pulling 6d964ba4f74de820fd91820451dc18d3d6605f67 on fix_md5 into 28ec53756dba73cca89d3c2131bb44626ce25ab3 on master.


New feature: Notify users whenever there is a new release

Notify the users whenever there is a new version.
ref1
ref2
ref3
I don't find this feature necessary at this moment.

done: https://github.com/hackjutsu/Lepton/commit/4ba4c16ccae96182a5e89e7254b7aa987962aa01


python37Packages.PyChromecast: 4.0.1 -> 4.1.0

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/python3.7-pychromecast/versions.
meta.description for python37Packages.PyChromecast is: '"Library for Python 3.4+ to communicate with the Google Chromecast"'.
meta.homepage for python37Packages.PyChromecast is: '"https://github.com/balloob/pychromecast"

Checks done (click to expand)

built on NixOS

Warning: a test defined in passthru.tests did not pass

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 4.1.0 with grep in /nix/store/brwv1gnkfhw6wdbrpkmq5n22sfdg21wc-python3.7-PyChromecast-4.1.0

directory tree listing: https://gist.github.com/4bc2dbadb3ceaeacc71c04a95cb8467b

du listing: https://gist.github.com/196459ad7fcd0223a375ba4f91ac54d3

Rebuild report (if merged into master) (click to expand)

12 total rebuild path(s)
3 package rebuild(s)
3 x86_64-linux rebuild(s)
3 i686-linux rebuild(s)
3 x86_64-darwin rebuild(s)
3 aarch64-linux rebuild(s)
First fifty rebuilds by attrpath
gnomecast
python37Packages.PyChromecast
python38Packages.PyChromecast

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/brwv1gnkfhw6wdbrpkmq5n22sfdg21wc-python3.7-PyChromecast-4.1.0 \
  --option binary-caches 'https://cache.nixos.org/ https://r-ryantm.cachix.org/' \
  --option trusted-public-keys '
  r-ryantm.cachix.org-1:gkUbLkouDAyvBdpBX0JOdIiD2/DP1ldF3Z3Y6Gqcc4c=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(r-ryantm's Cachix cache is only trusted for this store-path realization.)
Or, build yourself:
nix-build -A python37Packages.PyChromecast https://github.com/r-ryantm/nixpkgs/archive/538be26ddc30f066c361da8bb592ebc5e49d1558.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/brwv1gnkfhw6wdbrpkmq5n22sfdg21wc-python3.7-PyChromecast-4.1.0
ls -la /nix/store/brwv1gnkfhw6wdbrpkmq5n22sfdg21wc-python3.7-PyChromecast-4.1.0/bin

cc @abbradar for testing.

Updated by da7235d582edd256f7649803b00c65aaef3344b1.


Do not allow setting TableConfig in IndexLoadingConfig after construction

We should not allow setting TableConfig into IndexLoadingConfig after it is constructed because the step of extracting index settings are not performed.
Ideally, we should not allow any setter in IndexLoadingConfig, and it should always honor table config and schema. That involves bigger change, and will be addressed in followup PRs

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

Project coverage is 0.00%. Comparing base (59551e4) to head (6002f46).
Report is 1094 commits behind head on master.

:exclamation:  There is a different number of reports uploaded between BASE (59551e4) and HEAD (6002f46). Click for more details.
HEAD has 53 uploads less than BASE

Flag
BASE (59551e4)
HEAD (6002f46)

integration
7
1

integration2
3
1

temurin
12
1

java-21
7
1

skip-bytebuffers-true
3
1

skip-bytebuffers-false
7
0

unittests
5
0

unittests1
2
0

java-11
5
0

unittests2
3
0

integration1
2
0

custom-integration1
2
0

Additional details and impacted files
@@              Coverage Diff              @@
##             master   #14098       +/-   ##
=============================================
- Coverage     61.75%    0.00%   -61.76%
=============================================
  Files          2436        3     -2433
  Lines        133233        6   -133227
  Branches      20636        0    -20636
=============================================
- Hits          82274        0    -82274
+ Misses        44911        6    -44905
+ Partials       6048        0     -6048

Flag
Coverage Δ

custom-integration1
?

integration
0.00% <ø> (-0.01%)
:arrow_down:

integration1
?

integration2
0.00% <ø> (ø)

java-11
?

java-21
0.00% <ø> (-61.63%)
:arrow_down:

skip-bytebuffers-false
?

skip-bytebuffers-true
0.00% <ø> (-27.73%)
:arrow_down:

temurin
0.00% <ø> (-61.76%)
:arrow_down:

unittests
?

unittests1
?

unittests2
?

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

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Create Invalid Email glossary page

To do:
Write an "Invalid Email" glossary page.
Feel free to edit this for content/grammar:
An invalid email occurs when you attempt to send email to an address that is formatted in a manner that does not meet internet email format standards. Examples include addresses without the “@” sign or addresses that include certain special characters and/or spaces. This response comes from our own server since an invalid email is impossible to even attempt to send to its [non-existent] destination.

location ? where to add ?

where to add?

Hi @0x48piraj and @shvmsrma -  thanks for your question! Here's a really good example of where and how to add a glossary page: https://github.com/sendgrid/docs/pull/3183


Request-ChatCompletion - Set ConvertFrom-Json params for PS 7.x

Request-ChatCompletion - Set ConvertFrom-Json params for PS 7.x while still supporting 5.1
Fixes https://github.com/mkht/PSOpenAI/issues/30 while keeping original intent

Thanks for the PR.
I just don't know if the Depth and NoEnumerate parameters are necessary or not, or if it would cause any problems in actual operation if they are not there.
Unless there is a specific problem, I don't think it is necessary.

ah ok, same -- i have never used the noenumerate but often use depth


Do I need to configure anything in AndroidManifest.xml？

I want to use the openDocumentTree method to authorize the Android/data/somedirectory/ Directory
Then use the getDocumentContent method to read or write sub files in the directory, so I don't need to authorize the files I want to read and write again through the openDocument method.
Because my current situation is that if I edit the file using another app (an app of the file management editing type), the sub file permissions that I authorize using the openDocument method within my application will become invalid, and then I need to call the openDocument method again to let the user select the file to regain read and write permissions.
So I want to make sure that my application won't invalidate my file permissions when other applications edit the file. Do I need to configure something in AndroidManifest.xml? How can I achieve this

So I want to make sure that my application won't invalidate my file permissions when other applications edit the file.

This is the default behavior, once the user grant permission over a Uri, you have permission over all subfiles (recursively), so even if other app edit a file that is in under your granted tree, you still have access to it, also applies for created files.
I need some code and details to know what is exactly happening in your case, can you show how you are using and what is your target Android version?

A side-note: Android/data folder is not permitted to be selected anymore (even if the user wants!) on higher Android versions (12+), so be aware of this limitation (same applies for MANAGE_EXTERNAL_STORAGE permission) see https://www.reddit.com/r/Android/comments/wru35i/clearing_up_confusion_about_how_to_access/.

TL;DR: Try declaring the tree owner of your document at fUri.
final fUri = Uri.parse(
- 'content://com.android.externalstorage.documents/document/primary%3AAndroid%2Fdata%2Fmark.via%2Ffiles%2Flogs%2Fapp.ini'
+ 'content://com.android.externalstorage.documents/tree/primary%3AAndroid%2Fdata%2Fmark.via/document/primary%3AAndroid%2Fdata%2Fmark.via%2Ffiles%2Flogs%2Fapp.ini'
);

What I could understand from your functions is that:

When you manually select the file, your code works because the returned Uri is containing the tree path plus the document uri, as it should be.
When you select the tree, you are trying to read the document path without the tree path, AFAIK this leads to SecurityException.

So here is an example that creates your dUri and fUri correctly and can possible fix your issue:
void main() {
  // Granted tree uri:
  final dUri = Uri(
    scheme: 'content',
    host: 'com.android.externalstorage.documents',
    path: '/tree/primary%3AAndroid%2Fdata%2Fmark.via',
  );

  // content://com.android.externalstorage.documents/tree/primary%3AAndroid%2Fdata%2Fmark.via
  print(dUri);

  // Sub-file uri:
  final fUri = dUri.replace(
    path: dUri.path +
        '/document/primary%3AAndroid%2Fdata%2Fmark.via%2Ffiles%2Flogs%2Fapp.ini',
  );

  // content://com.android.externalstorage.documents/tree/primary%3AAndroid%2Fdata%2Fmark.via/document/primary%3AAndroid%2Fdata%2Fmark.via%2Ffiles%2Flogs%2Fapp.ini
  print(fUri);
}

TD;DR: Follow these steps:

Use the following template:

content://com.android.externalstorage.documents/tree/{encodedTreeUri}/document/{encodedSubfileUri}

Replace encodedTreeUri with the URL encoded version of primary:{path-to-your-desired-storage-tree}, in your case: primary:Android/data/mark.via (The path must not start with a /).
Replace encodedSubfileUri with the URL encoded version of primary:{path-to-your-desired-storage-file}, in your case: primary:Android/data/mark.via/files/logs/app.ini (The path must not start with a /).
The final result is the subfile (aka child file) URI.

Dart implementation:
final Uri dUri = createTreeUri('Android/data/mark.via');
final Uri fUri =
    createDocumentUri(dUri, 'Android/data/mark.via/files/logs/app.ini');

Uri createTreeUri(
  String treePath, {
  String host = 'com.android.externalstorage.documents',
  String scheme = 'content',
  String storage = 'primary',
}) {
  assert(
    !treePath.startsWith('/'),
    'Please, remove `/` from the start of your [treePath].',
  );

  final Uri treeUri = Uri(
    host: host,
    scheme: scheme,
    path: '/tree/${Uri.encodeComponent('$storage:$treePath')}',
  );

  return treeUri;
}

Uri createDocumentUri(
  Uri treeUri,
  String documentPath, {
  String storage = 'primary',
}) {
  assert(
    !documentPath.startsWith('/'),
    'Please, remove `/` from the start of your [documentPath].',
  );

  final Uri documentUri = treeUri.replace(
    path:
        '${treeUri.path}/document/${Uri.encodeComponent('$storage:$documentPath')}',
  );

  return documentUri;
}

I must warn that this is specific for your use-case: generating a pre-defined Uri from a pre-defined path that will be in the primary storage of the device using the default android storage provider. This will not work for all use-cases, like generating a URI for a cloud storage provider or even a custom storage provider. This also may not work for some devices.

Do not re-use closed issues, open a new one.


Report test coverage to external service

Hi.
I see we have a test coverage summary when testing. I wonder if we could publish it to a external service so we can easily keep track of it between changes.
The idea would be to modify the current karma.conf.js config to export an lcov file and publish it to a service like coveralls when testing in Travis.
Maybe even add a badge to the README stating the current test coverage.
What do you think?

Coveralls and a badge for it would be amazing, I've had a todo item for ages to set that up. I haven't had to set that up before, but if you have I would be thrilled to merge that PR haha

I can do the local changes and submit a PR.
Just remember that someone with admin access to developit/preact (like you @developit 😄 ) need to set up the Coveralls side.
Thanks to the Travis CI/Coveralls built-in integration we should not need to setup any additional env variables in Travis.
I will submit the PR soon assuming that the Coveralls side is operational.

Awesome I think I can set that up now

It's so beautiful! thanks a million! I added you as a collaborator since you're much better at build setups than I am 😇

WOW, thank you! 😎


JupyterHub frequently goes down due to NSF server issues

The hub pod for JupyterHub seems to die when it is unable to mount the hub-db-dir volume from the NFS server.
The NFS server VM seems to frequently go down without warning and takes a long time to restart.
Hub is functional again when the NFS server is back up and the NFS service is restarted.
Debug the cause of the node going down and whether we need to migrate to a larger/new VM on Jetstream2

Ticket submitted to Jetstream2 team. They are taking a look at the VM logs now.

Issue was due to one of the network interfaces going down on the server behind this VM. Jetstream has routed all traffic to the working interface and will look into fixing the other one.


Incorrect background_url was used.

The wrong config path was used in the $.backstretch. The white label option never works!
Check these before submitting new pull requests

[x] I read the guidelines for contributing linked above

[x] PHP-only files follow our coding style; in order to do that use php-cs-fixer - http://cs.sensiolabs.org/ - as follows:
php-cs-fixer fix --config=<webroot>/.php_cs.dist <filename>

If all the above conditions are met, feel free to delete this whole message and to submit your pull request, and... Thank you, your help is really appreciated!

I see that there are some errors when I tried to create a pull request. :(
How can I get that right? It's a simple change.

Those aren't your fault
On Wed, Feb 22, 2017, 6:30 PM SnefIT<EMAIL_ADDRESS>wrote:

I see that there are some errors when I tried to create a pull request. :(
How can I get that right? It's a simple change.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/concrete5/concrete5/pull/5128#issuecomment-281839808,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAM-qcuw9lYw3o0_Idhetg-FqfeMkQSFks5rfMT9gaJpZM4MGqCE
.


No 'WebJobs' node displays for deployment slots

Repro Steps:

Right click one 'Deployment Slots' node and select 'Create New Deployment Slot'.
Expand the new created deployment slot and check the sub-nodes.

Expect:
Display 'WebJobs' node.
Actual:
No 'WebJobs' node displays.

More Info:
There is no context menu for new created WebJob.

Fixed in https://github.com/Microsoft/vscode-azureappservice/pull/720


thread '' panicked at 'internal error: entered unreachable code: Replacement

RA crashed while working on https://github.com/parallel-finance/parallel, I just did:
vim runtime/parallel/src/lib.rs

The actual error :

Error Log
thread '<unnamed>' panicked at 'internal error: entered unreachable code: Replacement (Replacement { current_name: Name(Text("__sp_api__input_data")), suggested_text: "__sp_api__input_data", expected_case: LowerSnakeCase }) was generated for a function parameter which was not found: InFile { file_id: HirFileId(MacroFile(MacroFile { macro_call_id: LazyMacro(LazyMacroId(58173)) })), value: Fn { syntax<EMAIL_ADDRESS>} }', crates/hir_ty/src/diagnostics/decl_check.rs:282:25
stack backtrace:
   0: rust_begin_unwind
             at /rustc/88f19c6dab716c6281af7602e30f413e809c5974/library/std/src/panicking.rs:493:5
   1: core::panicking::panic_fmt
             at /rustc/88f19c6dab716c6281af7602e30f413e809c5974/library/core/src/panicking.rs:92:14
   2: hir_ty::diagnostics::decl_check::DeclValidator::validate_item
   3: hir_ty::diagnostics::validate_module_item
   4: hir::Function::diagnostics
   5: hir::Module::diagnostics
   6: hir::Module::diagnostics
   7: ide::diagnostics::diagnostics
   8: ide::Analysis::diagnostics
   9: rust_analyzer::handlers::publish_diagnostics
  10: core::ops::function::impls::<impl core::ops::function::FnMut<A> for &mut F>::call_mut
  11: alloc::vec::source_iter_marker::<impl alloc::vec::spec_from_iter::SpecFromIter<T,I> for alloc::vec::Vec<T>>::from_iter
  12: <F as threadpool::FnBox>::call_box
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Panic context:
>
version: 0900beeaa 2021-05-09 dev
request: textDocument/codeAction CodeActionParams {
    text_document: TextDocumentIdentifier {
        uri: Url {
            scheme: "file",
            username: "",
            password: None,
            host: None,
            port: None,
            path: "/home/edwin/Sandbox/rust-root/bugs/parallel/runtime/parallel/src/lib.rs",
            query: None,
            fragment: None,
        },
    },
    range: Range {
        start: Position {
            line: 0,
            character: 0,
        },
        end: Position {
            line: 0,
            character: 0,
        },
    },
    context: CodeActionContext {
        diagnostics: [],
        only: None,
    },
    work_done_progress_params: WorkDoneProgressParams {
        work_done_token: None,
    },
    partial_result_params: PartialResultParams {
        partial_result_token: None,
    },
}

It seem to be related to validate item do not handle macro generated code, but I am not so sure.

this also happens to rust-analyzer@2021-05-03

hi any ideas on this? my RA crashes frequently, I tried to downgrade to 2021-05-03 but it didn't work

@GopherJ A minimal reproducible example will be helpful here.

@edwin0cheng indeed it just crashes frequently while working on https://github.com/parallel-finance/parallel

I think this is solved by using github release. @edwin0cheng do you know why:
cargo xtask --install server

produce a not working version comparing to github release?

minimal failing test:
diff --git a/Cargo.toml b/Cargo.toml
index 498cf7d62..b377b2fe9 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -24,7 +24,7 @@ miniz_oxide.opt-level = 3
 # We do want incremental release builds, but they are broken at the moment :(
 # https://github.com/rust-lang/rust/issues/85003#issuecomment-833796289
 incremental = false
-debug = 0 # Set this to 1 or 2 to get more useful backtraces in debugger.
+debug = 2 # Set this to 1 or 2 to get more useful backtraces in debugger.

 [profile.test]
 incremental = false
diff --git a/crates/hir_ty/src/diagnostics/decl_check.rs b/crates/hir_ty/src/diagnostics/decl_check.rs
index 075dc4131..5afa29ea2 100644
--- a/crates/hir_ty/src/diagnostics/decl_check.rs
+++ b/crates/hir_ty/src/diagnostics/decl_check.rs
@@ -1039,4 +1039,9 @@ fn qualify() {
             "#,
         )
     }
+
+    #[test]
+    fn parenthesized_parameter() {
+        check_diagnostics(r#"fn f((O): _) {}"#)
+    }
 }


Feature request: Handle readonly types

Currently any types with zod's .readonly() method on them generate an any in the output rather than matching the zod inferred type.

Nevermind, just spotted #75


Sync To Owner

Variables with the attribute:
[SyncVar(target = SyncTarget.Owner)]

will only be synchronized with the client with authority. This is useful for inventory and other data that doesn't need to be visible to other players.
Here is a full example:
public class SampleBehavior : NetworkBehaviour {

    [SyncVar]
    public int myVariable;

    [SyncVar(target = SyncTarget.Owner)]
    public string myData2;

    [SyncVar(target = SyncTarget.Owner)]
    public SyncListInt myOwnerList;
}

Codecov Report

Merging #9 into improvements will decrease coverage by 0.05%.
The diff coverage is 0%.

@@               Coverage Diff               @@
##           improvements      #9      +/-   ##
===============================================
- Coverage          3.77%   3.72%   -0.06%
===============================================
  Files                30      30
  Lines              7174    7273      +99
  Branches           1192    1210      +18
===============================================
  Hits                271     271
- Misses             6897    6996      +99
  Partials              6       6

Impacted Files
Coverage Δ

...echnologies-networking/Runtime/NetworkBehaviour.cs
0% <0%> (ø)
:arrow_up:

...y-Technologies-networking/Runtime/NetworkServer.cs
0% <0%> (ø)
:arrow_up:

...echnologies-networking/Runtime/CustomAttributes.cs
0% <0%> (ø)
:arrow_up:

...Technologies-networking/Runtime/NetworkIdentity.cs
0% <0%> (ø)
: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 ee22bde...e9b6f45. Read the comment docs.

Will be resubmitted for Mirror,


keep getting this Traceback after about 3 mins.

keep getting this call back after about 3 mins,
"health_record": false.
Traceback (most recent call last):
File "C:\Program Files (x86)\pokemon\FileChecker\pokecli.py", line 674, in
main()
File "C:\Program Files (x86)\pokemon\FileChecker\pokecli.py", line 118, in main
bot.tick()
File "C:\Program Files (x86)\pokemon\FileChecker\pokemongo_bot_init_.py", line 541, in tick
if worker.work() == WorkerResult.RUNNING:
File "C:\Program Files (x86)\pokemon\FileChecker\pokemongo_bot\cell_workers\follow_path.py", line 143, in work
'current_position': (lat, lng, alt),
UnboundLocalError: local variable 'alt' referenced before assignment

I don't think its walking

What commit are you using?

this #4493 didn't work
Traceback (most recent call last):
File "C:\Program Files (x86)\pokemon\FileChecker\pokecli.py", line 46, in
from pokemongo_bot import inventory
File "C:\Program Files (x86)\pokemon\FileChecker\pokemongo_bot_init_.py", line 19, in
import cell_workers
File "C:\Program Files (x86)\pokemon\FileChecker\pokemongo_bot\cell_workers_init_.py", line 16, in
from follow_path import FollowPath
File "C:\Program Files (x86)\pokemon\FileChecker\pokemongo_bot\cell_workers\follow_path.py", line 115
alt = 0
^
IndentationError: unexpected indent

@mjmadsen didn't work #4493

Are you in the dev branch? If so, git pull as your follow_path looks outdated.

@mjmadsen just pulled dev then was in the main b4.

@LoadCroc Ah, we're pushing from dev to main about every 12-24 hours now. Quite often we'll have a bugs like this slip into main, which is why we always ask for commit (most true bugs are solved pretty quickly in dev). We just pushed dev to main, so either is fine for you at the moment. Let me know how it goes.

ok running the dev now no fail atm, it was just the main pull of git.

cant see it walking but just luring pokemon from the 3 stops its at

No problem. A few tips for future issue posts:
List your commit (the bot changes rapidly and has many contributors).
Post your config (just so we don't default it to human error)
Post the log from the bot (we can usually find where the issue is pretty quick)
Anyway, thanks for using the bot!


Feat: send BTC to BNS

This PR adds "send BTC to a BNS name" functionality, similar to how it works with STX asset transfers.
This is built on top of #3147, and only the latest commit includes this functionality. I've built it on top of that PR to re-use some of the organizational structure of BNS-related queries.
Preview:
https://user-images.githubusercontent.com/1109058/222636762-38c54628-19a1-487f-a339-45c01d7d3ec6.mp4
In the video you'll notice some janky validation behavior. I'm not exactly sure what's causing this, though I'm sure it has to do with async validation. I copied the structure from the send STX page, and I sometimes saw similar behavior on that page, but I'm not sure if they're related. I'm certain this code could use some improvement, especially due to my lack of familiarity with a lot of the codebase.
The way this works is that it fetches the name's zonefile, parses it, and looks for the _btc._addr TXT record, as specified in https://newinternetlabs.com.
At the moment the only way I know of to add this record to your name is via https://btc.us/manage, but we're aiming to add this functionality to https://dots.so soon.

This is amazing to see!
@kyranjamie can we get a build of this generated for testing?

You can get the Chrome builds here: https://github.com/hirosystems/stacks-wallet-web/actions/runs/4320498350#artifacts

Other things to consider:

How should we think about taproot/inscriptions?
This PR doesn't support sending ordinals, but should it?
The standard for setting your BTC address supports setting multiple addresses (with first as "priority"). What if the name had one taproot and one other? Should it be assumed that if the name has a taproot address, it's fine to send ordinals to it?
Should we consider an "extension" of this standard for inscriptions? Could be something like _ord._btc._addr

:fire:

Very cool, thanks @hstove!

Closing bc clone was merged: https://github.com/hirosystems/stacks-wallet-web/pull/3363


Switch navigator doesn't support transitionConfig

The switch navigator doesn't support transitionConfig. Is there any reason for this?

Hi @entropitor , the Switch navigator is the most simple implementation out there and is not suited for animations.
Animations means you have to render the previous and the new screen and keep them both mounted at the same time. If you really need animations you'd rather create a tab nav without a header and use the tab animation, or use a stacknav with 2 headers, or implement your own custom navigator.


Add JSCS

Airbnb uses eslint in combination with JSCS because there are a few rules that eslint doesn't support, see here for an example implementation. We should add JSCS for v3!

Hi,
added it (see #240) ;).

Again ;) #241

Done by the amazing @gonzochic in #241, thanks so much!