Combine username and password in a single object wherever they're passed together

There are many methods with parameters String user and String password. Username and passowrd are generally passed around and created together. Lets encapsulate username and password in a User or Credentials or whatever named interface like this:
interface User {
  String login();
  String password();
}

and replace String user, String password parameters with a User object, for example in PsBasic.Entry#enter(String, String) method. As the first implementation of User interface, lets extract a class named like UserFromRequest from the first half of PsBasic#enter() long method where username/password pair is obtained from a request.

@Suseika but it's the only place where we have that, right? in PsBasic.Entry.. or there are other places?

@yegor256 There is also PsBasicTest#generateAuthenticateHead.
I was wrong when I said that there are "many methods". But I think that in future, when there are more clients of PsBasic.Entry, we would benefit from passing username and password together, because those are usually obtained together (i.e. from database or registration form) and those are highly related concepts (one usually doesn't make sense without the other).

@Suseika I see your point, but I disagree for now. If there would be 4+ parameters, this grouping would make sense. But just two... We may let them stay separately. Remember, objects/classes are not data bags/holders.


stat/combin: Implement functions for helping with Permutations

Fixes #1033.
Please take a look.

I think this wants some tests, and probably also some examples to help out with the documentation.

This is a partial commit, because implemented the work and realized the issue.
Permutations are normally P(n, k), while often times in iteration you just want the iterations of the first k objects (like in the python itertools.permutations). I assume we want this to be the fully general form, so IndexToPermutation(dst []int, idx, n, k int) int? I'm pretty sure this is possible, because there's also a function IndexToCombination, and we can basically select the combination first and then the permutation. I'll make that the next PR.
This current implementation uses that n = k, and just uses the length of the appropriate slice to get both values. If we go to the more general version, would we rather keep inferring k from the length of the slice, and just require the user to specify n, or require the user to specify both? I lean toward the latter given that they're both integers and would be confusing from context otherwise.

Sorry @kortschak didn't get my note out fast enough!

Closing in favor of #1076


How does yt-dlp handle tracking links like ?utm= and ?si= ? Is user privacy preserved?

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

[X] I'm asking a question and not reporting a bug or requesting a feature
[X] I've looked through the README
[X] I've verified that I have updated yt-dlp to nightly or master (update instructions)
[X] I've searched known issues and the bugtracker for similar questions including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue

Please make sure the question is worded well enough to be understood
Does it handle those links as is, or does yt-dlp clean the URLs off any tracking parameters before parsing them?

Thanks.
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[ ] If using API, add 'verbose': True to YoutubeDL params instead
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
I don't think verbose output is required here but I'm using yt-dlp_min.exe version 2<IP_ADDRESS>723

It depends on the site that the URL belongs to, which extractor yt-dlp uses for that site, and how that extractor is written.
For Youtube, yt-dlp extracts the video ID from the URL and constructs a clean URL with which it requests the webpage:
https://github.com/yt-dlp/yt-dlp/blob/ac817bc83efd939dca3e40c4b527d0ccfc77172b/yt_dlp/extractor/youtube.py#L4072-L4079
...so all tracking params are stripped.
Some extractors, such as the Reddit extractor, don't request the webpage at all, they just extract the necessary information from the URL and use it to construct an API call:
https://github.com/yt-dlp/yt-dlp/blob/ac817bc83efd939dca3e40c4b527d0ccfc77172b/yt_dlp/extractor/reddit.py#L200-L204
...so that's all good.
But other extractors may pass the input URL to the request verbatim; e.g. this is what the generic extractor does, since it doesn't know which query params are necessary vs meaningless tracking.
Bottom line is, if you care about privacy, then choose to do one of the following:

strip the tracking params yourself
check the extractor code for the site in question to see if you can get away without manually stripping them yourself
if an extractor can strip tracking params but currently doesn't, then submit a PR to improve said extractor

Thank you @bashonly for that comprehensive answer.
But is there a (non-dump-pages) way to know the final URL(after any/all cleaning) before yt-dlp connects to the internet?
If I specify -v --dump-pages , I can see that yt-dlp is properly connecting to the clean json URL of reddit, but using --dump-pages is very verbose.
[Reddit] Extracting URL: https://old.reddit.com/r/Damnthatsinteresting/comments/rn4090?utm_source=reddit.com
[Reddit] rn4090: Downloading JSON metadata
director: Handler preferences for this request: urllib=0, requests=100, websockets=0
director: Checking if "requests" supports this request.
director: Sending request via "requests"
requests: Starting new HTTPS connection (1): old.reddit.com:443
[Reddit] Dumping request to https://old.reddit.com/r/Damnthatsinteresting/comments/rn4090/.json
send: b'GET /r/Damnthatsinteresting/comments/rn4090/.json HTTP/1.1\r\nHost: old.reddit.com\r\nConnection: keep-alive\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nAccept-Language: en-us,en;q=0.5\r\nSec-Fetch-Mode: navigate\r\nAccept-Encoding: gzip, deflate, br\r\n\r\n

I would appreciate it, if I merely specify -v(without the very verbose --dump-pages) flag, the log said something like [Reddit] rn4090: Downloading JSON metadata from \<CLEAN_REDDIT_URL/.json\> . Instead of requiring --dump-pages (super verbose) to get that URL.(Unless there's another way to get that URL.)
Basically, if a given extractor has URL cleaning built-in, and cleans the URL, specifying -v should echo the cleaned URL.
Like Extracting Clean URL: https://example.com/cleanurl
I think it would help if this was so for all extractors.
The reason I had this question to begin with, was because the Extracting URL part of the log contains the URL with the tracking params, and I was concerned.
Thanks.

--print-traffic

I should've mentioned that I had actually used --print-traffic in the previous comment as you can probably tell from the send: b'GET /r/Damnthatsinteresting/comments/ which isn't part of --dump-pages. In the previous comment, I used --print-traffic along with -v --dump-pages , and the Dumping request to line showed up first in the log , so that's what I thought I should highlight.
Anyway, that works so thanks @pukkandan, but --print-traffic even without -v --dump-pages is still quite verbose. Is it possible to just have the clean URL for that send request show up in -v along with https://www.reddit.com as prefix?
Thanks.
Also is there a way to use -s but not have yt-dlp connect to the internet? An offline version of -s . I just want to know where yt-dlp is gonna go after it's composed the request, without it actually going to the link.
Thanks.

The various download methods called by extractors have a parameter note to describe what is being downloaded that is displayed using to_screen(). It wouldn't be a stretch  under --verbose to add the actual URL used, or else to have s/t like ---verbose-url.
The code in _request_webpage() that handles this, both here and upstream, is concerned that note might be something other than None or a str (resp. compat_str). This seems unnecessary today.

It wouldn't be a stretch  under --verbose to add the actual URL used, or else to have s/t like ---verbose-url.
The code in _request_webpage() that handles this

What about redirects? It would be misleading. A simplified and inaccurate --print-traffic isn't very useful IMO

The program can report what it's sending, which is what OP is worried about, rather than where the resource actually accessed was. Regarding the latter, extractor code should often check for redirection as a sign of expired or otherwise invalid content. You might consider that POST data could be reported too, but that would typically be encoded by the caller and so less transparent.

or else to have s/t like --verbose-url.

I don't know what s/t is(I tried looking it up and I couldn't find it so do let me know) but yes please. I'd much prefer a separate option. This way I can lower verbosity even further should I not need -v sometimes.
Also let me know about an offline version of -s --verbose-url that prints said --verbose-url (in reddit's case presumably the json url) and exits with no packets sent anywhere.
Thanks.

s/t = something
Trial upstream implementation:
$ python -m youtube_dl -vF 'BaW_jenozKc'
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-vF', u'BaW_jenozKc']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Git HEAD: ac469f627
[debug] Python 2.7.15 (CPython i686 32bit) - Linux-6.1.0-20-686-pae-i686-with-debian-12.5 - OpenSSL 1.1.1a  20 Nov 2018 - glibc 2.1.3
[debug] exe versions: ffmpeg 5.1.4-0, ffprobe 5.1.4-0
[debug] Proxy map: {}
[youtube] BaW_jenozKc: Downloading webpage:
<https://www.youtube.com/watch?v=BaW_jenozKc&bpctr=9999999999&has_verified=1>
[youtube] BaW_jenozKc: Downloading player 8fc6998a:
<https://www.youtube.com/s/player/8fc6998a/player_ias.vflset/en_US/base.js>
[debug] [youtube] Decrypted nsig 7DwIic66gJDGXJJc => 4yM5T1TMEb6frA
[debug] [youtube] Decrypted nsig 33So2BVMwzZiScGw => GFDuV-efKD2y9g
[info] Available formats for BaW_jenozKc:
format code  extension  resolution note
249          webm       audio only audio_quality_low   48k , webm_dash container, opus  (48000Hz), 57.97KiB
...
$

If the objective is to know whether private data is being sent, I don't see how this's useful. The data could be in headers, POST data, etc

not have yt-dlp connect to the internet

Block in firewall? Or pass an invalid proxy. Each extraction typically has multiple network requests, each of which cannot be performed without the previous passing. So this will only show the first request, which is pointless imo


Include ps in the images?

I noticed that the images currently lack ps. This can make life slightly harder if you have to oc exec -ti bash -li into the nodes (you have to poke around in /proc instead), and also means that the (kafka|zookeeper)-stop-server.sh scripts wouldn't work (not that they're used). Is it worth installing procps-ng?

Any examples what would you use ps for? Just curious ...

@scholzj I wanted to see the command line args of the kafka connect JVM. I could have done this using /proc, as I said, but ps is the first thing I reach for.

@tombentley Yeah, that makes sense.


Not an issue but a request

As many players know this game has a bug that pretty much ruins completly the game, i'm referring to the slow motion bug where you fast travel or swap eikon mid fight the game frame rate drop down drastically to the point the game start going slow motion, i ask the devolper of this mod if they can investigate to see if is possible to fix it you will make hundreds of people happy.
thanks in advance

if you have a razer product, that appears to be the issue.

if you have a razer product, that appears to be the issue.

what do you mean by a razer product?

if you have a razer product, that appears to be the issue.

what do you mean by a razer product?

They mean, something like the software Razer Synapse. The game has known issues with that software, although that may have changed with today's patch.


Cannot find libCwlPreconditionTesting.dylib when installing 1.6.0 with SPM

When linking SnapshotTesting to my Xcode project using Swift Package Manager, the build fails with the following:
clang: error: no such file or directory: '/Users/user/Library/Developer/Xcode/DerivedData/project-folder/Build/Products/Debug-iphonesimulator/libCwlPreconditionTesting.dylib'
Command Ld failed with a nonzero exit code

This doesn't happen with version 1.5.0 which builds as expected (however I cannot use that version due to the build failing for the minimum deployment target). Therefore I need to link against 1.6.0.

Turns out this error is related to a different framework (Nimble)

Glad you were able to sort things out! The error's definitely puzzling, and doesn't even seem to mention Nimble!


Three additional instagram domains

Added:
<IP_ADDRESS> scontent-syd2-1.cdninstagram.com
<IP_ADDRESS> instagram.fsyd3-1.fna.fbcdn.net
<IP_ADDRESS> applink.instagram.com

Hi,
Thanks for your block lists. I've been doing some filtering of my log file and rather than adding my own partial block lists, I thought I'd add to yours.
nick


install sockets

@edbizarro is there any chance you can merge this and https://github.com/edbizarro/gitlab-ci-pipeline-php/pull/120?
Thanks

@edbizarro sockets is very common extension - which has been used by rabbitmq driver. Any chance to merge this PR?

Please merge this PR


Optimize add layer to map

How to optimize speed of addLayerToMap method from geojson file which contain complex multi Polygon ?

Hi! Please ask how-to questions on our StackOverflow tag:
https://stackoverflow.com/questions/tagged/google-maps


Cannot read property 'bind' of undefined

I have a project wich is in production for over a year and a half, and suddenly now, without changing anything from my package.json or any version at all I'm getting this:

If I go deeper into the error I manage to find this:

I have no idea of what could go wrong, any solutions? Thanks

related to #71?

But that doesn't seem as a solution


TypeError: slugify() got an unexpected keyword argument 'lowercase'

File " hls-downloader\downloader.py", line 30, in filter_filename_part
result = slugify.slugify(string, lowercase=False, regex_pattern=allowed_pattern)
TypeError: slugify() got an unexpected keyword argument 'lowercase'
testslug.py
import slugify
import re

def test(string,allowed_pattern=re.compile(r'[^-.@!\w]+', re.IGNORECASE)):

        result = slugify.slugify(string, lowercase=False, regex_pattern=allowed_pattern)
        return result

string="some"

test(string)

Traceback (most recent call last):
File "testslug.py", line 14, in
test(string)
File "testslug.py", line 7, in test
result = slugify.slugify(string, lowercase=False, regex_pattern=allowed_pattern)
TypeError: slugify() got an unexpected keyword argument 'lowercase'

@tablecell could you please specify which version of slugify you are using?
I've checked versions 2.x, 3.x and 4.x. And all have lowercase parameter.
See Slugify source code

Hi, I have the same question a hours ago.
I think u install specify use "pip install specify" ,but it's wrong.
u should use "pip install python-slugify".
enjoy it.

Could you please call pip list command? To see which version of python-slugify you have.

Could you please call pip list command? To see which version of python-slugify you have.

python -m pip install -r requirements

solved the  problem


ActiveDirectoryDsc: Resolved custom Script Analyzer rules

Pull Request (PR) description

Changes to ActiveDirectoryDsc

Resolved custom Script Analyzer rules that was added to the test framework.

This Pull Request (PR) fixes the following issues

Task list

[x] Added an entry under the Unreleased section in the CHANGELOG.md.
Entry should say what was changed, and how that affects users (if applicable).
[ ] Resource documentation added/updated in resource directory README.md.
[ ] Resource parameter descriptions added/updated in schema.mof
and comment-based help.
[ ] Comment-based help added/updated.
[ ] Conceptual help topic added/updated (cultureFolder\about_ResourceName.help.txt).
[ ] Localization strings added/updated in all localization files as appropriate.
[ ] Examples appropriately added/updated.
[ ] Unit tests added/updated. See DSC Resource Testing Guidelines.
[ ] Integration tests added/updated (where possible). See DSC Resource Testing Guidelines.
[x] New/changed code adheres to DSC Resource Style Guidelines and Best Practices.

This change is

Codecov Report

Merging #508 into dev will not change coverage.
The diff coverage is n/a.

@@         Coverage Diff         @@
##            dev   #508   +/-   ##
===================================
  Coverage    98%    98%
===================================
  Files        23     23
  Lines      3108   3108
  Branches     10     10
===================================
  Hits       3063   3063
  Misses       35     35
  Partials     10     10


Unable to resume backup

# couchbackup --version
2.2.0
# node -v
v8.2.1

First backup:
================================================================================
Performing backup on<EMAIL_ADDRESS>using configuration:
{
  "bufferSize": 1000,
  "log": "ca9d8d9c-d2e0-47b9-99e4-1d2d0f2ba344.log",
  "mode": "full",
  "parallelism": 1
}
================================================================================
  couchbackup:backup Fetching all database changes... +0ms
  couchbackup:backup Total batches received: 1 +527ms
  couchbackup:backup Total batches received: 2 +88ms
  couchbackup:backup Total batches received: 3 +90ms
  couchbackup:backup Written batch ID: 0 Total document revisions written: 1000 Time: 2.346 +2s
  couchbackup:backup Written batch ID: 1 Total document revisions written: 2000 Time: 3.846 +1s
  couchbackup:backup Written batch ID: 2 Total document revisions written: 2984 Time: 5.295 +1s
  couchbackup:backup Finished - Total document revisions written: 2984 +11ms

Check to see the remote doc count:
# curl -s<EMAIL_ADDRESS>| node -p 'JSON.parse(fs.readFileSync(0))' | grep doc_count
  doc_count: 2986,

Wait a while, run again:
# curl -s<EMAIL_ADDRESS>| node -p 'JSON.parse(fs.readFileSync(0))' | grep doc_count
  doc_count: 2991,

OK, the remote DB has definitely changed; back up again:
================================================================================
Performing backup on<EMAIL_ADDRESS>using configuration:
{
  "bufferSize": 1000,
  "log": "ca9d8d9c-d2e0-47b9-99e4-1d2d0f2ba344.log",
  "mode": "full",
  "parallelism": 1,
  "resume": true
}
================================================================================
  couchbackup:backup Fetching all database changes... +0ms
  couchbackup:backup Finished - Total document revisions written: 0 +339ms

Nothing got written, and the backup files (txt & log) haven't changed.
Is this a bug, or am I just misunderstanding how the --resume option works?

I'm afraid you're misunderstanding how the --resume option works.
The --resume option works for a backup that has finished spooling changes, but has not yet completed downloading all the necessary batches of documents.
I can see from your output above that your first backup has:

couchbackup:backup Finished - Total document revisions written: 2984 +11ms

So the resume in your second backup command has no effect because the backup has already completed.
What you are looking for is incremental backup, which is not available at this time. It is tracked in #11 (which I see you found and commented on). Seems like our documentation could use some improvement in this area.

Ah, good to know! And good that I checked before leaving the script running, thinking I'm always backed up. :>
Do you want a small PR for the docs change?

Thanks @jareware. I'll update the docs for this.


Fixed a few typos and conventions in the docs

Just fixed a few typos and conventions in the docs.
Thank you very much for the development and maintenance of this very useful package!

thanks @pitmonticone! I'll merge this after the registration process completes on the Julia main repository (~2 days) to avoid triggering any tests.


"helm get" should show details from Chart.yaml

Documentation on "helm get" states that you can retrieve "The chart used to generate the release".
This is not completely true since the contents of Chart.yaml can not be retrieved (and even is not stored in appropriate TILLER-NAMESPACE's configmap).
The Chart.yaml often contains important info such as "description", "home", "sources" and currently there is no way to retrieve this info about some charts installed with helm.

Output of helm version:
Client: &version.Version{SemVer:"v2.12.3", GitCommit:"eecf22f77df5f65c823aacd2dbd30ae6c65f186e", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.12.3", GitCommit:"eecf22f77df5f65c823aacd2dbd30ae6c65f186e", GitTreeState:"clean"}

Output of kubectl version:
Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.5", GitCommit:"0e9fcb426b100a2aea5ed5c25b3d8cfbb01a8acf", GitTreeState:"clean", BuildDate:"2019-08-05T09:21:30Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.5", GitCommit:"0e9fcb426b100a2aea5ed5c25b3d8cfbb01a8acf", GitTreeState:"clean", BuildDate:"2019-08-05T09:13:08Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"}

Cloud Provider/Platform (AKS, GKE, Minikube etc.):
baremetal

It does provide most details of the chart templates that deploy the release. There are probably some fields that could be displayed that are stored but not shown. @regentov  Would you like to work on a PR to extend the output?

There are probably some fields that could be displayed that are stored but not shown.

As far as I understand, not a single "optional" field from Chart.yaml docs is stored.
So they should be (1) stored and (2) displayed.
Cannot do the PR.

I will be working on this @hickeyma :)
Do assign this to me.

I'm going to close this ticket due to inactivity, but please re-open if this still needs to be addressed. Thanks!

The fields from Chart.yaml are still absent in helm2's "helm get release". As well as in helm3's "helm get all".

The fields from Chart.yaml are still absent in helm2's "helm get release". As well as in helm3's "helm get all".


EOL error on Gradio cell in Dreambooth colab

This is probably something very easy to fix if I knew anything about Python, but whenever I try to run the last cell I get the following error message:
File "/content/interface.py", line 204
path='/content/gdrive/MyDrive/models/modelx",torch_dtype=torch.float16).to("cuda")
^
SyntaxError: EOL while scanning string literal
I tried to play a little with the syntax to see if I could get it to work but I couldn't figure it out

I'll check it out, will be fixed in a few

I think you didn't update the colab to the latest commit, try and load the latest colab from the repo


Music

Procedurally generated music.
This does a couple things in creating the music:

Chooses an interesting time signature. (These are measured in terms of eight notes, so 4/4 is 8, 3/4 is 6, etc.) The available time signatures are 3/4, 4/4, 5/8, 7/8, 9/8, 11/8, and 13/8.
Subdivides the eighth notes into groups of 2 and 3. (There might be a trailing group of 1 at the end; this is fine.) I think I got this idea from an Andrew Huang video.
Generates a backbeat-ish drum groove using these subdivisions. I can explain better if asked, but the idea is that the rhythm is divided up into those groups of 2 and 3 and maybe 1. Each group becomes an N-long pattern of kick (or snare; it alternates) followed by hi-hats.
Generates a chord progression using a simplistic understanding of functional harmony. The chords are built by ascending the scale in thirds (even if this causes oddities), and functions are based on degree. (i.e., all IIs are subdominant even though bII7 would be dominant.)

There's some stuff still left to do for music:

Generate melodies.
Audio effects such as filters / delays / etc.
Give the game some values to change the music with.
Sound effects. The dream is to have the sound effects in tune with the music, but that may be a pipe dream.
It'd be nice to shift roles between instruments. For example, switching the chords from being arpeggiated by the little blippy instrument to being held by the swoopy pad to maybe being hammered away at by an electric piano kind of thing.
The way measure generation works needs to get a lot better, honestly.
More interesting sounds? Perhaps some alien / industrial sounding stuff?
Rework scheduling - I think it's scheduling way too far in advance as of now.  Probably a two-tiered system where we schedule measures in advance but don't pass them off to the WebAudio API until soon before they play?

I can help review this

We need to do some restructuring to fix this:
https://github.com/GRarer/Aurora/blob/eeb36f0dfc16905fab62d1840933ddca0cd47dee/src/music/Samples.ts#L29-L41
This is a discarded promise, and will return the buffer before data is written into it. It probably won't be trivial to bubble up the resulting asyncs.
This may need to be resolved in a separate issue.

We can also move newtyping stuff to after merge; it's pretty low priority, as long as we can see that it's correct for now.

I'm seeing an issue where music sometimes does not play on the main menu until I click on something or press a key. This seems to happen in chrome but not on firefox, and the issue does not repeat when I refresh the page.
Any idea what might be causing that and whether we can fix it?


WARNING: API 'variant.getPackageLibrary()' is obsolete and has been replaced with 'variant.getPackageLibraryProvider()'

After updating to Kotlin 1.3.30, I got the following error:
WARNING: API 'variant.getPackageLibrary()' is obsolete and has been replaced with 'variant.getPackageLibraryProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getPackageLibrary(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.

This alse happen to me.
Any solution for this?

same here!

same

same

same  here

same here

any update?

@anggrayudi - do you think this warning is triggered somehow by the gradle-bintray-plugin?
Doesn't this warning disappear when you remove the gradle-bintray-plugin from the project?


Best way to move an entity from one registry to another?

I'm unclear on the best way to move an entity from one registry to another. It seems like doing something like
registry2[EntityID] = registry1[EntityID] would break things like entity.registry
Would it be best to do something like registry2[EntityID] = copy.deepcopy(registry1[EntityID])?

Copy functions are likely to copy the entire registry along with the entity at the moment. You can copy an entities attributes to other entities directly.
def move_entity(entity: Entity, dest: Registry) -> Entity:
    """Move `entity` from its own registry to `dest`. Return the moved entity at its destination."""
    target = dest[entity.uid]
    target.components = entity.components
    target.tags = entity.tags
    target.relation_tags = entity.relation_tags
    target.relation_components = entity.relation_components
    entity.clear()  # Remove this line to make a copy instead.
    return target

This will copy/move everything except for relations towards the entity. Relations between registries are not well tested and might break the internal logic anyways so you might need to skip or add extra logic to handle them.

Should be possible to make this recursive with some effort:
relation_targets = set()  # Entities that this entity has a relation to.

for r_tag, r_targets in entity.relation_tags_many.items():
    # Track which entities need to be copied
    relation_targets |= r_targets
    # Remap target entities to the destination registry
    # This might show as a type error but it should work anyways
    target.relation_tags_many[r_tag] = (dest[r_target.uid] for r_target in r_targets)

for r_key, r_target_components in entity.relation_components.items():
    relation_targets |= r_target_components.keys()
    target.relation_components[r_key] = {
        dest[r_target.uid]: r_component for r_target, r_component in r_target_components.items()
    }

for r_target in relation_targets:
    move_entity(r_target, dest)  # Will probably need a manual memo object to prevent infinite recursion

Might be helpful to test if an entity has components assigned. Could use this to skip entities which are already in the destination registry.
def has_any_components(entity: Entity) -> bool:
    """Return True if `entity` contains any components, any truthy attributes."""
    return bool(entity.components or entity.tags or entity.relation_tags_many or entity.relation_components)


package not found by yarn add

yarn add @SohaibKtb/react-native-native-sounds
yarn add v1.22.19
[1/5] Validating package.json...
[2/5] Resolving packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/@SohaibKtb%2Freact-native-native-sounds: Not found".

npm i
"@SohaibKtb/react-native-native-sounds"
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@SohaibKtb%2Freact-native-native-sounds - Not found
npm ERR! 404
npm ERR! 404  '@SohaibKtb/react-native-native-sounds@*' is not in this registry.
npm ERR! 404 This package name is not valid, because
npm ERR! 404  1. name can no longer contain capital letters
npm ERR! 404


Can't resolve paramaters After Webpack upgrade

Please provide us with the following information:

Ubuntu 16.04
angular-cli: 1.0.0-beta.11-webpack.2
node: 4.4.7
os: linux x64
Angular: 2.0.0.RC-5
I created an app using beta.10 it worked fine but after upgrade to beta.11-webpack.2 I get this error:
Can't resolve all parameters for ServerAddressResolverService: (?).
ServerAddressResolverService{
  public constructor(window: Window) {...}
 We'll be in touch soon.

This doesn't seem to be an Angular-CLI issue per se, but an Angular 2 issue. See https://github.com/angular/angular/issues/10309.
Not sure why it was working before though...


Use dirsync for doxygen directory syncing

This commit introduced a mechanism to preserve mtime in Doxygen-generated XML files in order to avoid having to process unchanged files every time we incrementally build the doc. More info can be found in this thread.
The dirsync library seems up to the task, so potentially it could be used to replace much of the code in the script.

Thanks @carlescufi for filing this. I'm the one to blame for the additional 100 lines of restore_modification_times.py and I agree it would be nice to get rid of most of them and replace them by a rsync-like python library as very well explained in the doxygen mailing-list thread above.
Summarizing a private discussion with @carlescufi : the most critical requirement is obviously the ability NOT to copy/update the modification timestamp when it is newer but the content has not changed. This is more or less the --checksum option of rsync.
Also important is the equivalent of rsync's --delete option to remove renamed or deleted XML files.
As usual, the library replacement needs to be evaluated with respect to quality, maintainer responsiveness etc.

This commit introduced...

Ouch, I spent ages last week looking for this old issue and gave up eventually. Mentioning a commit links only one way. Mentioning PR #13159 here links both ways and would have let me find this issue :-)

doxyrunner replaced the mechanism described here, closing.


FreeFileSync: No GSettings schemas are installed on the system

Describe the bug
(FreeFileSync:95639): GLib-GIO-ERROR **: 04:17:37.147: No GSettings schemas are installed on the system
zsh: trace trap (core dumped)  FreeFileSync
Steps To Reproduce
Steps to reproduce the behavior:

FreeFileSync
Click on browse

Expected behavior
Opens file picker.
Additional context
Should be possible to fix this with wrapGAppsHook. cf. https://github.com/NixOS/nixpkgs/issues/16285
Notify maintainers
@wegank

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.20, NixOS, 23.05 (Stoat), 23.05pre466479.19cf008bb18`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.3`
 - channels(aroun): `""`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Does adding wrapGAppsHook to nativeBuildInputs work for you?

Does adding wrapGAppsHook to nativeBuildInputs work for you?

How does one add this in their configuration.nix file? Do we just add pkgs.wrapGAppsHook into our environment.systempackages?

Does adding wrapGAppsHook to nativeBuildInputs work for you?

How does one add this in their configuration.nix file? Do we just add pkgs.wrapGAppsHook into our environment.systempackages?

No, it's not supposed to be used like that.


UI: Instances list not filterable by hostid

ISSUE TYPE

Bug Report

COMPONENT NAME
UI

CLOUDSTACK VERSION
<IP_ADDRESS>

CONFIGURATION
Standard install
OS / ENVIRONMENT
N/A
SUMMARY
On the 'Hosts' page, clicking on 'View Instances' brings the user to a table of instances (VMs). However, this table is not filtered by the host appropriately even though the URL includes a hostid=xxxx. Instead, the table shows all instances in CloudStack.
STEPS TO REPRODUCE

Go to Infrastructure -> Hosts
Select a host (For example: hostA)
Click on 'View Instances'
See that the Instances table contains all VMs in CloudStack (not filtered to show only hostA's VMs). The URL should contain something like: /client/#/vm?hostid=7b313bd8-81fe-4e57-bccb-90df970f6d67. Note that hostA's hostid is being passed in the URI but has no effect.

EXPECTED RESULTS
Expect the Instances table is filtered to show only hostA's VMs.
ACTUAL RESULTS
Instances table is not filtered to show only hostA's VMs.
Additional info
I think the hostid parameter isn't actually used by the view. I think the table view is generated and filtered by this file/line:
https://github.com/apache/cloudstack/blob/c5262443595e4ed1bb9898654f3bed728331ffc0/ui/src/views/AutogenView.vue#L1524
I don't see hostid actually be used here.

I confirm this issue exists in 4.18 as well

Problem is not with UI, listVirtualMachinesMetrics API (for some reason deprecated now) used for listing VMs in the VM view doesn't support podid, hostid, storageid, etc parameters cc @weizhouapache

Problem is not with the UI but with the listVirtualMachinesMetrics API. Currently, it does not support some of the params (hostid, podid, storageid, etc) as it extends DeployVMsCmd class. cc @weizhouapache
I've created a draft PR to fix this https://github.com/apache/cloudstack/pull/6851

Fixed in https://github.com/apache/cloudstack/pull/6851


Improvements in validation/test ppl of the transformer-xl with MoE on wt103

Hi there,
I have been running some experiments with mixture of experts and transformer-xl, I noticed that while the training ppl gets significant improvement with inclusion of MoE, however the same results do not get reflected in the testing/validation accuracies.
Here is an example with transformer-xl trained on wt103 dataset (the numbers correspond to the best model saved after full training):
Baseline transformer-xl with 16-layers:

Training ppl: 20.48
Validation ppl: 22.835
Test ppl: 23.710

MoE transformer-xl with 16-layers and 16-experts:

Training ppl: 14.53
Validation ppl: 21.859
Test ppl: 22.682

While we are getting a minor improvement with MoE, however it seems to me that by training with MoE, the model is facing overfitting issues. I have tried adjusting the dropout rate of the expert layers as suggested by switch-Transformer, and while it helped by having similar training and evaluation performance, it has not helped to achieve better test ppl. Have you faced similar issues?

@xptree @Sengxian any ideas?

@latifisalar It is not surprising. In your WT103 experiment, the MoE-Transformer-XL has 16x parameters comparing to the vanilla one, and it would be much easier for the MoE model to get overfitted (given WT103 it not a very hard dataset to fit).
On the other hand, it means the model capacity of MoE is much larger than the vanilla Transformer-XL,  even with similar FLOPs.

@xptree That is a valid point. I was expecting the overfitting issue with a small dataset as wt103. Would you mind if I ask which dataset was used in training GPT model in section 5.4, are you using the latest wikipedia dump? And also, I am guessing the loss curves in Figure 7 correspond to the pre-training phase. Did you check the test accuracy at the end of pre-training phase? Or, validate the model with any downstream tasks? Just wanted to see if the overfitting issue is not a problem in larger datasets and it actually results in improving test accuracy at the end.


DEV: Console warning: Function components cannot be given refs.

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number:
Reproducible in staging?: DEV
Reproducible in production?: DEV
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?:
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @eVoloshchak
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1729172387801259
Action Performed:

Launch the iOS app
Notice the warning

Expected Result:
No warning is displayed
Actual Result:
Warning is displayed
Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?
Workaround:
unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android: Standalone
[ ] Android: HybridApp
[ ] Android: mWeb Chrome
[x] iOS: Standalone
[ ] iOS: HybridApp
[ ] iOS: mWeb Safari
[ ] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence
https://github.com/user-attachments/assets/ae1c8f8c-9978-43b4-b388-dfb9b3459539

View all open jobs on GitHub

This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989


Support for LIFO / FIFO setting on judgement queue

In some cases, it would be desirable for evaluation organisers to influence how answers are judged, e.g. whether simply the new submissions are added to the end of the queue or to the front (i.e. judged earlier).
This could be a setting on the task run.

Hint: We will include this as a parameter for judgement-target typed tasks.

We have implemented this for the time being in such a way as that the JUDGEMENT or VOTE target options now come with a configuration key order, which accepts LIFO (case insensitive) to produce a LIFO queue of judgements.
However, this is per task and the dequeue endpoints still operate on the first open validator.
An additional desirable outcome could be that always the newest (based on time) should be judged in the UI.
I am not sure on how we would achieve this with the current architecture, as we would have to not only heavily alter the implemented JudgementValidators, but also track across multiple ones, which submission came in last.
@lucaro any thoughts on this one?

I'd argue that rather than (or in addition to?) changing the insertion order per validator, it is probably more useful to give a priority flag to the validators. This could be any number; the higher, the more important. The mechanism that selects the validator would then not just use the least recent, but the least recent with the highest number.

Fair enough, I implemnted this with e033a43 by adding the configuration parameter JUDGEMENT.priority which expects an integer. Higher value represents higher priority.
Evaluation administrators have to set the priority on each task template.

Do they have to set the priority, or can they set the priority? I guess there should be a reasonable default, no?

Let's adjust this once more:
The default is the index in the task list (as opposed to the 0 currently implemented).
However, I'd suggest that then a run parameter could influence whether higher priority value results in being considered first or last.
Do you agree?

Why would the default not be 0? Tasks don't need to be run in the order they are in the template. In most cases, tasks will not have any relative priority. If they do, you can actively boost a task by giving it a higher priority.

Just to clarify: I was contemplating whether we should switch from the currently implemented default (0) to a more sophisticated default, which would be the index of the task template.
The current default's semantic is such that tasks which are started earlier, are queued earlier (according to stable sorting), except they have a higher priority number.
Per task, we now have the opportunity to specify whether LIFO or FIFO should be applied.
In summary, this is the behaviour before the change (expempt LIFO-per-task and priority across tasks).
The semantic of the proposed default whould have been as follows:
The default priority would be either the task template or something clever based on the task run's start time. This way, the default could have been influenced more by administrators.
However, based on the discussion here I refrain from implementing this.
Still, the priority system currently is based on the task template. And might not reflect the order of the tasks as they were run during the evaluation.


Thanks a lot for you reponse. Do you have any idea about which version of kernel already can be fixed this issue? or which version you suggest to adopt then we could compile it by myself.

BTW, could you hit this 100% using 4.19.125 ? Have you tried the latest kernel ?

Yes. every time when I tied to login the iscsi target with kernel 4.19.125, and I already tried the latest verion including 5.4.44 and 5.6.16. The result always is the same with error. So, I guess there is something wrong beyond the kernel only.

Yes. every time when I tied to login the iscsi target with kernel 4.19.125, and I already tried the latest verion including 5.4.44 and 5.6.16. The result always is the same with error. So, I guess there is something wrong beyond the kernel only.

So this should be a bug exists in the mainline kernel. I never get a chance to test this on ARM arch before, and it works well for me since v4.20 upstream code on X86.
You can ping the Mantainers in the kernel mail list to get help, recently I do not have much time on it.

@lxbsz Thank you very much for your reply.    O(∩_∩)O

Can confirm this also on kernel 5.7 and 5.4.28

@dmeyerholt
The problem should be in target_core_user
https://bugzilla.kernel.org/show_bug.cgi?id=208045

I added a possible solution to
https://bugzilla.kernel.org/show_bug.cgi?id=208045

@BStroesser Thank you very much. I am preparing to try these paths and test them.

Hi @BStroesser , I tested these three patches. It works well and the bug has been fixed.
thank you very much!

Can also confirm success on kernel 5.7.2

Thank you both for testing.
Since patch 1 already made it into 5.8-rc1, I will resend / send patches 2 and 3 to linux-scsi and target-devel lists.
@Insyyj and @dmayerholt, may I add your "tested-by" tags to the patches?

@dmeyerholt

@dmeyerholt
I used the patch of 4.19.118 for testing and it worked well.
At present, we have no kernel 5.7.2 environment.
@BStroesser
No problem, my email is<EMAIL_ADDRESS>call me JiangYu.
Do you want this bug address?
https://bugzilla.kernel.org/show_bug.cgi?id=208045

4.19.x seems important being a lts kernel. I could try those patches on 5.4.x as well (lts as well) but am not sure if I can spend time to do it. I know that 5.4.x was affected by this bug as well so chances are the patches of @BStroesser will work as well.

@dmeyerholt @BStroesser
[Fri Jun 19 11:19:46 2020] scsi host5: iSCSI Initiator over TCP/IP [Fri Jun 19 11:19:46 2020] iSCSI Initiator Node: iqn.1993-08.org.debian:01:b27579df472 is not authorized to access iSCSI target portal group: 1. [Fri Jun 19 11:19:47 2020] iSCSI Login negotiation failed.  Opts: (null) [Mon Jun 22 00:00:14 2020] Unable to handle kernel access to user memory outside uaccess routines at virtual address<PHONE_NUMBER>000000 [Mon Jun 22 00:00:14 2020] Mem abort info: [Mon Jun 22 00:00:14 2020]   ESR = 0x96000004 [Mon Jun 22 00:00:14 2020]   Exception class = DABT (current EL), IL = 32 bits [Mon Jun 22 00:00:14 2020]   SET = 0, FnV = 0 [Mon Jun 22 00:00:14 2020]   EA = 0, S1PTW = 0 [Mon Jun 22 00:00:14 2020] Data abort info: [Mon Jun 22 00:00:14 2020]   ISV = 0, ISS = 0x00000004 [Mon Jun 22 00:00:14 2020]   CM = 0, WnR = 0 [Mon Jun 22 00:00:14 2020] user pgtable: 4k pages, 48-bit VAs, pgdp = 000000002c314fa8 [Mon Jun 22 00:00:14 2020] [0000000000000000] pgd=0000000000000000 [Mon Jun 22 00:00:14 2020] Internal error: Oops: 96000004 [#1] SMP [Mon Jun 22 00:00:14 2020] Modules linked in: rpcsec_gss_krb5 auth_rpcgss nfsv4 nfs lockd grace fscache target_core_pscsi target_core_file target_core_iblock iscsi_target_mod cfg80211 target_core_user uio target_core_mod openvswitch nsh nf_nat_ipv6 nf_nat_ipv4 nf_conncount nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nls_iso8859_1 ipmi_ssif joydev input_leds ipmi_si ipmi_devintf ipmi_msghandler sch_fq_codel sunrpc ib_iser rdma_cm iw_cm ib_cm ib_core iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi ip_tables x_tables autofs4 btrfs zstd_compress raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 raid0 multipath linear ses enclosure scsi_transport_sas ast ttm drm_kms_helper cfbfillrect syscopyarea cfbimgblt sysfillrect sysimgblt fb_sys_fops cfbcopyarea fb [Mon Jun 22 00:00:15 2020]  font drm ixgbe igb drm_panel_orientation_quirks i2c_algo_bit mdio bcache crc32_ce crc64 hid_generic i2c_designware_platform ahci i2c_designware_core megaraid_sas libahci i2c_core usbhid hid aes_neon_bs aes_neon_blk crypto_simd cryptd aes_arm64 [Mon Jun 22 00:00:15 2020] Process tp_librbd (pid: 5707, stack limit = 0x00000000d11d520b) [Mon Jun 22 00:00:15 2020] CPU: 52 PID: 5707 Comm: tp_librbd Not tainted 4.19.118-maxcn #1 [Mon Jun 22 00:00:15 2020] Hardware name: Greatwall QingTian DF720/F601, BIOS 601FBE20 Sep 26 2019 [Mon Jun 22 00:00:15 2020] pstate: 20400005 (nzCv daif +PAN -UAO) [Mon Jun 22 00:00:15 2020] pc : flush_dcache_page+0x18/0x40 [Mon Jun 22 00:00:15 2020] lr : tcmu_handle_completions+0xc4/0x4a0 [target_core_user] [Mon Jun 22 00:00:15 2020] sp : ffff00002245bc10 [Mon Jun 22 00:00:15 2020] x29: ffff00002245bc10 x28: ffffcd70fb93d580  [Mon Jun 22 00:00:15 2020] x27: ffff0000223c5000 x26: ffff363403dcf680  [Mon Jun 22 00:00:15 2020] x25: ffffc771da0393e0 x24:<PHONE_NUMBER>000000  [Mon Jun 22 00:00:15 2020] x23: ffff000021bc5000 x22: ffffc771da038000  [Mon Jun 22 00:00:15 2020] x21: ffff0000223c4fd0 x20:<PHONE_NUMBER>7fffd0  [Mon Jun 22 00:00:15 2020] x19:<PHONE_NUMBER>000000 x18:<PHONE_NUMBER>000000  [Mon Jun 22 00:00:15 2020] x17:<PHONE_NUMBER>000000 x16: ffff36340eba9e00  [Mon Jun 22 00:00:15 2020] x15:<PHONE_NUMBER>000000 x14:<PHONE_NUMBER>000000  [Mon Jun 22 00:00:15 2020] x13:<PHONE_NUMBER>000000 x12:<PHONE_NUMBER>000000  [Mon Jun 22 00:00:15 2020] x11:<PHONE_NUMBER>000000 x10:<PHONE_NUMBER>000000  [Mon Jun 22 00:00:15 2020] x9 :<PHONE_NUMBER>000000 x8 :<PHONE_NUMBER>0013e0  [Mon Jun 22 00:00:15 2020] x7 :<PHONE_NUMBER>000000 x6 : ffff00002245bcf8  [Mon Jun 22 00:00:15 2020] x5 : ffff00002245bcf8 x4 :<PHONE_NUMBER>000000  [Mon Jun 22 00:00:15 2020] x3 : ffff36340fab0000 x2 : ffffb91200000000  [Mon Jun 22 00:00:15 2020] x1 :<PHONE_NUMBER>000000 x0 : ffff363403dc8f6c  [Mon Jun 22 00:00:15 2020] Call trace: [Mon Jun 22 00:00:15 2020]  flush_dcache_page+0x18/0x40 [Mon Jun 22 00:00:15 2020]  tcmu_handle_completions+0xc4/0x4a0 [target_core_user] [Mon Jun 22 00:00:15 2020]  tcmu_irqcontrol+0x34/0x58 [target_core_user] [Mon Jun 22 00:00:15 2020]  uio_write+0xb8/0x138 [uio] [Mon Jun 22 00:00:15 2020]  __vfs_write+0x60/0x190 [Mon Jun 22 00:00:15 2020]  vfs_write+0xac/0x1b0 [Mon Jun 22 00:00:15 2020]  ksys_write+0x74/0xf0 [Mon Jun 22 00:00:15 2020]  __arm64_sys_write+0x24/0x30 [Mon Jun 22 00:00:15 2020]  el0_svc_common+0x88/0x180 [Mon Jun 22 00:00:15 2020]  el0_svc_handler+0x38/0x78 [Mon Jun 22 00:00:15 2020]  el0_svc+0x8/0xc [Mon Jun 22 00:00:15 2020] Code: f9000bf3 aa0003f3 aa1e03e0 d503201f (f9400260)  [Mon Jun 22 00:00:15 2020] ---[ end trace cdb72dbc3b2a8038 ]--- [Mon Jun 22 00:01:16 2020] ABORT_TASK: Found referenced iSCSI task_tag: 42 [Mon Jun 22 00:01:16 2020] ------------[ cut here ]------------ [Mon Jun 22 00:01:16 2020] WARNING: CPU: 7 PID: 746959 at kernel/workqueue.c:2919 __flush_work+0x260/0x290 [Mon Jun 22 00:01:16 2020] Modules linked in: rpcsec_gss_krb5 auth_rpcgss nfsv4 nfs lockd grace fscache target_core_pscsi target_core_file target_core_iblock iscsi_target_mod cfg80211 target_core_user uio target_core_mod openvswitch nsh nf_nat_ipv6 nf_nat_ipv4 nf_conncount nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nls_iso8859_1 ipmi_ssif joydev input_leds ipmi_si ipmi_devintf ipmi_msghandler sch_fq_codel sunrpc ib_iser rdma_cm iw_cm ib_cm ib_core iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi ip_tables x_tables autofs4 btrfs zstd_compress raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 raid0 multipath linear ses enclosure scsi_transport_sas ast ttm drm_kms_helper cfbfillrect syscopyarea cfbimgblt sysfillrect sysimgblt fb_sys_fops cfbcopyarea fb [Mon Jun 22 00:01:16 2020]  font drm ixgbe igb drm_panel_orientation_quirks i2c_algo_bit mdio bcache crc32_ce crc64 hid_generic i2c_designware_platform ahci i2c_designware_core megaraid_sas libahci i2c_core usbhid hid aes_neon_bs aes_neon_blk crypto_simd cryptd aes_arm64 [Mon Jun 22 00:01:16 2020] CPU: 7 PID: 746959 Comm: kworker/u128:0 Tainted: G      D           4.19.118-maxcn #1 [Mon Jun 22 00:01:16 2020] Hardware name: Greatwall QingTian DF720/F601, BIOS 601FBE20 Sep 26 2019 [Mon Jun 22 00:01:16 2020] Workqueue: tmr-user target_tmr_work [target_core_mod] [Mon Jun 22 00:01:16 2020] pstate: 40400005 (nZcv daif +PAN -UAO) [Mon Jun 22 00:01:16 2020] pc : __flush_work+0x260/0x290 [Mon Jun 22 00:01:16 2020] lr : __flush_work+0x260/0x290 [Mon Jun 22 00:01:16 2020] sp : ffff0000167cbbd0 [Mon Jun 22 00:01:16 2020] x29: ffff0000167cbbd0 x28:<PHONE_NUMBER>000000  [Mon Jun 22 00:01:16 2020] x27: ffffccef4ebc68b8 x26: ffff0000167cbce0  [Mon Jun 22 00:01:16 2020] x25: ffff3634100b6a40 x24:<PHONE_NUMBER>000000  [Mon Jun 22 00:01:16 2020] x23: ffff363410252000 x22:<PHONE_NUMBER>000000  [Mon Jun 22 00:01:16 2020] x21: ffff363410098000 x20: ffffcd6fad1b1550  [Mon Jun 22 00:01:16 2020] x19: ffffcd6fad1b1550 x18: ffffffffffffffff  [Mon Jun 22 00:01:16 2020] x17:<PHONE_NUMBER>000000 x16:<PHONE_NUMBER>000000  [Mon Jun 22 00:01:16 2020] x15: ffff363410098708 x14: ffff3634902578af  [Mon Jun 22 00:01:16 2020] x13: ffff3634102578be x12: ffff3634100bd000  [Mon Jun 22 00:01:16 2020] x11:<PHONE_NUMBER>f5e0ff x10: ffff363410099168  [Mon Jun 22 00:01:16 2020] x9 : ffff36340fc7d018 x8 : ffff36340f24d010  [Mon Jun 22 00:01:16 2020] x7 : 5d20657265682074 x6 : ffffc771fffe2158  [Mon Jun 22 00:01:16 2020] x5 : ffffc771fffe2158 x4 :<PHONE_NUMBER>000000  [Mon Jun 22 00:01:16 2020] x3 : ffffc771fffeaf88 x2 : 203f2659feac9b00  [Mon Jun 22 00:01:16 2020] x1 :<PHONE_NUMBER>000000 x0 :<PHONE_NUMBER>000024  [Mon Jun 22 00:01:16 2020] Call trace: [Mon Jun 22 00:01:16 2020]  __flush_work+0x260/0x290 [Mon Jun 22 00:01:16 2020]  __cancel_work_timer+0x134/0x1a8 [Mon Jun 22 00:01:16 2020]  cancel_work_sync+0x24/0x30 [Mon Jun 22 00:01:16 2020]  core_tmr_abort_task+0xfc/0x1b0 [target_core_mod] [Mon Jun 22 00:01:16 2020]  target_tmr_work+0x108/0x1d8 [target_core_mod] [Mon Jun 22 00:01:16 2020]  process_one_work+0x1f0/0x428 [Mon Jun 22 00:01:16 2020]  worker_thread+0x44/0x488 [Mon Jun 22 00:01:16 2020]  kthread+0x134/0x138 [Mon Jun 22 00:01:16 2020]  ret_from_fork+0x10/0x18 [Mon Jun 22 00:01:16 2020] ---[ end trace cdb72dbc3b2a8039 ]--- [Mon Jun 22 00:01:31 2020]  connection3:0: detected conn error (1021) [Mon Jun 22 00:01:31 2020]  connection3:0: detected conn error (1021) [Mon Jun 22 00:01:48 2020] iSCSI Login timeout on Network Portal <IP_ADDRESS>:3260 [Mon Jun 22 00:03:31 2020]  session3: session recovery timed out after 120 secs [Mon Jun 22 00:03:31 2020] sd 5:0:0:0: Device offlined - not ready after error recovery [Mon Jun 22 00:03:31 2020] sd 5:0:0:0: [sdk] tag#57 FAILED Result: hostbyte=DID_TRANSPORT_DISRUPTED driverbyte=DRIVER_OK [Mon Jun 22 00:03:31 2020] sd 5:0:0:0: [sdk] tag#57 CDB: Unmap/Read sub-channel 42 00 00 00 00 00 00 00 18 00 [Mon Jun 22 00:03:31 2020] print_req_error: I/O error, dev sdk, sector<PHONE_NUMBER> [Mon Jun 22 00:03:31 2020] sd 5:0:0:0: rejecting I/O to offline device [Mon Jun 22 00:03:31 2020] print_req_error: I/O error, dev sdk, sector<PHONE_NUMBER> [Mon Jun 22 00:03:31 2020] sd 5:0:0:0: rejecting I/O to offline device [Mon Jun 22 00:03:31 2020] print_req_error: I/O error, dev sdk, sector<PHONE_NUMBER> [Mon Jun 22 10:07:20 2020] sd 5:0:0:0: rejecting I/O to offline device [Mon Jun 22 10:07:20 2020] print_req_error: I/O error, dev sdk, sector<PHONE_NUMBER> [Mon Jun 22 10:07:20 2020] Aborting journal on device sdk-8. [Mon Jun 22 10:07:20 2020] sd 5:0:0:0: rejecting I/O to offline device [Mon Jun 22 10:07:20 2020] print_req_error: I/O error, dev sdk, sector<PHONE_NUMBER> [Mon Jun 22 10:07:21 2020] Buffer I/O error on dev sdk, logical block 134250496, lost sync page write [Mon Jun 22 10:07:21 2020] JBD2: Error -5 detected when updating journal superblock for sdk-8. [Mon Jun 22 10:25:43 2020] sd 5:0:0:0: rejecting I/O to offline device [Mon Jun 22 10:25:43 2020] print_req_error: I/O error, dev sdk, sector 0 [Mon Jun 22 10:25:43 2020] Buffer I/O error on dev sdk, logical block 0, lost sync page write [Mon Jun 22 10:25:43 2020] EXT4-fs (sdk): I/O error while writing superblock [Mon Jun 22 10:25:43 2020] EXT4-fs error (device sdk): ext4_journal_check_start:61: Detected aborted journal [Mon Jun 22 10:25:43 2020] EXT4-fs (sdk): Remounting filesystem read-only [Mon Jun 22 10:25:43 2020] sd 5:0:0:0: rejecting I/O to offline device [Mon Jun 22 10:25:43 2020] print_req_error: I/O error, dev sdk, sector 0 [Mon Jun 22 10:25:43 2020] Buffer I/O error on dev sdk, logical block 0, lost sync page write [Mon Jun 22 10:25:43 2020] EXT4-fs (sdk): I/O error while writing superblock
Hi, after a few days of testing, I found another problem. When I use the initiator login target, and format the ext4 file system, and write some data, there will be an error as reported above. |
-- | --

[Fri Jun 19 11:19:46 2020] iSCSI Initiator Node: iqn.1993-08.org.debian:01:b27579df472 is not authorized to access iSCSI target portal group: 1.
[Fri Jun 19 11:19:47 2020] iSCSI Login negotiation failed.
 Opts: (null)
[Mon Jun 22 00:00:14 2020] Unable to handle kernel access to user memory outside uaccess routines at virtual address<PHONE_NUMBER>000000
[Mon Jun 22 00:00:14 2020] Mem abort info:
[Mon Jun 22 00:00:14 2020]   ESR = 0x96000004
[Mon Jun 22 00:00:14 2020]   Exception class = DABT (current EL), IL = 32 bits
[Mon Jun 22 00:00:14 2020]   SET = 0, FnV = 0
[Mon Jun 22 00:00:14 2020]   EA = 0, S1PTW = 0
[Mon Jun 22 00:00:14 2020] Data abort info:
[Mon Jun 22 00:00:14 2020]   ISV = 0, ISS = 0x00000004
[Mon Jun 22 00:00:14 2020]   CM = 0, WnR = 0
[Mon Jun 22 00:00:14 2020] user pgtable: 4k pages, 48-bit VAs, pgdp = 000000002c314fa8
[Mon Jun 22 00:00:14 2020] [0000000000000000] pgd=0000000000000000
[Mon Jun 22 00:00:14 2020] Internal error: Oops: 96000004 [#1] SMP
[Mon Jun 22 00:00:14 2020] Modules linked in: rpcsec_gss_krb5 auth_rpcgss nfsv4 nfs lockd grace fscache target_core_pscsi target_core_file target_core_iblock iscsi_target_mod cfg80211 target_core_user uio target_core_mod openvswitch nsh nf_nat_ipv6 nf_nat_ipv4 nf_conncount nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nls_iso8859_1 ipmi_ssif joydev input_leds ipmi_si ipmi_devintf ipmi_msghandler sch_fq_codel sunrpc ib_iser rdma_cm iw_cm ib_cm ib_core iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi ip_tables x_tables autofs4 btrfs zstd_compress raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 raid0 multipath linear ses enclosure scsi_transport_sas ast ttm drm_kms_helper cfbfillrect syscopyarea cfbimgblt sysfillrect sysimgblt fb_sys_fops cfbcopyarea fb
[Mon Jun 22 00:00:15 2020]  font drm ixgbe igb drm_panel_orientation_quirks i2c_algo_bit mdio bcache crc32_ce crc64 hid_generic i2c_designware_platform ahci i2c_designware_core megaraid_sas libahci i2c_core usbhid hid aes_neon_bs aes_neon_blk crypto_simd cryptd aes_arm64
[Mon Jun 22 00:00:15 2020] Process tp_librbd (pid: 5707, stack limit = 0x00000000d11d520b)
[Mon Jun 22 00:00:15 2020] CPU: 52 PID: 5707 Comm: tp_librbd Not tainted 4.19.118-maxcn #1
[Mon Jun 22 00:00:15 2020] Hardware name: Greatwall QingTian DF720/F601, BIOS 601FBE20 Sep 26 2019
[Mon Jun 22 00:00:15 2020] pstate: 20400005 (nzCv daif +PAN -UAO)
[Mon Jun 22 00:00:15 2020] pc : flush_dcache_page+0x18/0x40
[Mon Jun 22 00:00:15 2020] lr : tcmu_handle_completions+0xc4/0x4a0 [target_core_user]
[Mon Jun 22 00:00:15 2020] sp : ffff00002245bc10
[Mon Jun 22 00:00:15 2020] x29: ffff00002245bc10 x28: ffffcd70fb93d580
[Mon Jun 22 00:00:15 2020] x27: ffff0000223c5000 x26: ffff363403dcf680
[Mon Jun 22 00:00:15 2020] x25: ffffc771da0393e0 x24:<PHONE_NUMBER>000000
[Mon Jun 22 00:00:15 2020] x23: ffff000021bc5000 x22: ffffc771da038000
[Mon Jun 22 00:00:15 2020] x21: ffff0000223c4fd0 x20:<PHONE_NUMBER>7fffd0
[Mon Jun 22 00:00:15 2020] x19:<PHONE_NUMBER>000000 x18:<PHONE_NUMBER>000000
[Mon Jun 22 00:00:15 2020] x17:<PHONE_NUMBER>000000 x16: ffff36340eba9e00
[Mon Jun 22 00:00:15 2020] x15:<PHONE_NUMBER>000000 x14:<PHONE_NUMBER>000000
[Mon Jun 22 00:00:15 2020] x13:<PHONE_NUMBER>000000 x12:<PHONE_NUMBER>000000
[Mon Jun 22 00:00:15 2020] x11:<PHONE_NUMBER>000000 x10:<PHONE_NUMBER>000000
[Mon Jun 22 00:00:15 2020] x9 :<PHONE_NUMBER>000000 x8 :<PHONE_NUMBER>0013e0
[Mon Jun 22 00:00:15 2020] x7 :<PHONE_NUMBER>000000 x6 : ffff00002245bcf8
[Mon Jun 22 00:00:15 2020] x5 : ffff00002245bcf8 x4 :<PHONE_NUMBER>000000
[Mon Jun 22 00:00:15 2020] x3 : ffff36340fab0000 x2 : ffffb91200000000
[Mon Jun 22 00:00:15 2020] x1 :<PHONE_NUMBER>000000 x0 : ffff363403dc8f6c
[Mon Jun 22 00:00:15 2020] Call trace:
[Mon Jun 22 00:00:15 2020]  flush_dcache_page+0x18/0x40
[Mon Jun 22 00:00:15 2020]  tcmu_handle_completions+0xc4/0x4a0 [target_core_user]
[Mon Jun 22 00:00:15 2020]  tcmu_irqcontrol+0x34/0x58 [target_core_user]
[Mon Jun 22 00:00:15 2020]  uio_write+0xb8/0x138 [uio]
[Mon Jun 22 00:00:15 2020]  __vfs_write+0x60/0x190
[Mon Jun 22 00:00:15 2020]  vfs_write+0xac/0x1b0
[Mon Jun 22 00:00:15 2020]  ksys_write+0x74/0xf0
[Mon Jun 22 00:00:15 2020]  __arm64_sys_write+0x24/0x30
[Mon Jun 22 00:00:15 2020]  el0_svc_common+0x88/0x180
[Mon Jun 22 00:00:15 2020]  el0_svc_handler+0x38/0x78
[Mon Jun 22 00:00:15 2020]  el0_svc+0x8/0xc
[Mon Jun 22 00:00:15 2020] Code: f9000bf3 aa0003f3 aa1e03e0 d503201f (f9400260)
[Mon Jun 22 00:00:15 2020] ---[ end trace cdb72dbc3b2a8038 ]---
[Mon Jun 22 00:01:16 2020] ABORT_TASK: Found referenced iSCSI task_tag: 42
[Mon Jun 22 00:01:16 2020] ------------[ cut here ]------------
[Mon Jun 22 00:01:16 2020] WARNING: CPU: 7 PID: 746959 at kernel/workqueue.c:2919 __flush_work+0x260/0x290
[Mon Jun 22 00:01:16 2020] Modules linked in: rpcsec_gss_krb5 auth_rpcgss nfsv4 nfs lockd grace fscache target_core_pscsi target_core_file target_core_iblock iscsi_target_mod cfg80211 target_core_user uio target_core_mod openvswitch nsh nf_nat_ipv6 nf_nat_ipv4 nf_conncount nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nls_iso8859_1 ipmi_ssif joydev input_leds ipmi_si ipmi_devintf ipmi_msghandler sch_fq_codel sunrpc ib_iser rdma_cm iw_cm ib_cm ib_core iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi ip_tables x_tables autofs4 btrfs zstd_compress raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 raid0 multipath linear ses enclosure scsi_transport_sas ast ttm drm_kms_helper cfbfillrect syscopyarea cfbimgblt sysfillrect sysimgblt fb_sys_fops cfbcopyarea fb
[Mon Jun 22 00:01:16 2020]  font drm ixgbe igb drm_panel_orientation_quirks i2c_algo_bit mdio bcache crc32_ce crc64 hid_generic i2c_designware_platform ahci i2c_designware_core megaraid_sas libahci i2c_core usbhid hid aes_neon_bs aes_neon_blk crypto_simd cryptd aes_arm64
[Mon Jun 22 00:01:16 2020] CPU: 7 PID: 746959 Comm: kworker/u128:0 Tainted: G      D           4.19.118-maxcn #1
[Mon Jun 22 00:01:16 2020] Hardware name: Greatwall QingTian DF720/F601, BIOS 601FBE20 Sep 26 2019
[Mon Jun 22 00:01:16 2020] Workqueue: tmr-user target_tmr_work [target_core_mod]
[Mon Jun 22 00:01:16 2020] pstate: 40400005 (nZcv daif +PAN -UAO)
[Mon Jun 22 00:01:16 2020] pc : __flush_work+0x260/0x290
[Mon Jun 22 00:01:16 2020] lr : __flush_work+0x260/0x290
[Mon Jun 22 00:01:16 2020] sp : ffff0000167cbbd0
[Mon Jun 22 00:01:16 2020] x29: ffff0000167cbbd0 x28:<PHONE_NUMBER>000000
[Mon Jun 22 00:01:16 2020] x27: ffffccef4ebc68b8 x26: ffff0000167cbce0
[Mon Jun 22 00:01:16 2020] x25: ffff3634100b6a40 x24:<PHONE_NUMBER>000000
[Mon Jun 22 00:01:16 2020] x23: ffff363410252000 x22:<PHONE_NUMBER>000000
[Mon Jun 22 00:01:16 2020] x21: ffff363410098000 x20: ffffcd6fad1b1550
[Mon Jun 22 00:01:16 2020] x19: ffffcd6fad1b1550 x18: ffffffffffffffff
[Mon Jun 22 00:01:16 2020] x17:<PHONE_NUMBER>000000 x16:<PHONE_NUMBER>000000
[Mon Jun 22 00:01:16 2020] x15: ffff363410098708 x14: ffff3634902578af
[Mon Jun 22 00:01:16 2020] x13: ffff3634102578be x12: ffff3634100bd000
[Mon Jun 22 00:01:16 2020] x11:<PHONE_NUMBER>f5e0ff x10: ffff363410099168
[Mon Jun 22 00:01:16 2020] x9 : ffff36340fc7d018 x8 : ffff36340f24d010
[Mon Jun 22 00:01:16 2020] x7 : 5d20657265682074 x6 : ffffc771fffe2158
[Mon Jun 22 00:01:16 2020] x5 : ffffc771fffe2158 x4 :<PHONE_NUMBER>000000
[Mon Jun 22 00:01:16 2020] x3 : ffffc771fffeaf88 x2 : 203f2659feac9b00
[Mon Jun 22 00:01:16 2020] x1 :<PHONE_NUMBER>000000 x0 :<PHONE_NUMBER>000024
[Mon Jun 22 00:01:16 2020] Call trace:
[Mon Jun 22 00:01:16 2020]  __flush_work+0x260/0x290
[Mon Jun 22 00:01:16 2020]  __cancel_work_timer+0x134/0x1a8
[Mon Jun 22 00:01:16 2020]  cancel_work_sync+0x24/0x30
[Mon Jun 22 00:01:16 2020]  core_tmr_abort_task+0xfc/0x1b0 [target_core_mod]
[Mon Jun 22 00:01:16 2020]  target_tmr_work+0x108/0x1d8 [target_core_mod]
[Mon Jun 22 00:01:16 2020]  process_one_work+0x1f0/0x428
[Mon Jun 22 00:01:16 2020]  worker_thread+0x44/0x488
[Mon Jun 22 00:01:16 2020]  kthread+0x134/0x138
[Mon Jun 22 00:01:16 2020]  ret_from_fork+0x10/0x18
[Mon Jun 22 00:01:16 2020] ---[ end trace cdb72dbc3b2a8039 ]---
[Mon Jun 22 00:01:31 2020]  connection3:0: detected conn error (1021)
[Mon Jun 22 00:01:31 2020]  connection3:0: detected conn error (1021)
[Mon Jun 22 00:01:48 2020] iSCSI Login timeout on Network Portal <IP_ADDRESS>:3260
[Mon Jun 22 00:03:31 2020]  session3: session recovery timed out after 120 secs
[Mon Jun 22 00:03:31 2020] sd 5:0:0:0: Device offlined - not ready after error recovery
[Mon Jun 22 00:03:31 2020] sd 5:0:0:0: [sdk] tag#57 FAILED Result: hostbyte=DID_TRANSPORT_DISRUPTED driverbyte=DRIVER_OK
[Mon Jun 22 00:03:31 2020] sd 5:0:0:0: [sdk] tag#57 CDB: Unmap/Read sub-channel 42 00 00 00 00 00 00 00 18 00
[Mon Jun 22 00:03:31 2020] print_req_error: I/O error, dev sdk, sector<PHONE_NUMBER>
[Mon Jun 22 00:03:31 2020] sd 5:0:0:0: rejecting I/O to offline device
[Mon Jun 22 00:03:31 2020] print_req_error: I/O error, dev sdk, sector<PHONE_NUMBER>
[Mon Jun 22 00:03:31 2020] sd 5:0:0:0: rejecting I/O to offline device
[Mon Jun 22 00:03:31 2020] print_req_error: I/O error, dev sdk, sector<PHONE_NUMBER>
[Mon Jun 22 10:07:20 2020] sd 5:0:0:0: rejecting I/O to offline device
[Mon Jun 22 10:07:20 2020] print_req_error: I/O error, dev sdk, sector<PHONE_NUMBER>
[Mon Jun 22 10:07:20 2020] Aborting journal on device sdk-8.
[Mon Jun 22 10:07:20 2020] sd 5:0:0:0: rejecting I/O to offline device
[Mon Jun 22 10:07:20 2020] print_req_error: I/O error, dev sdk, sector<PHONE_NUMBER>
[Mon Jun 22 10:07:21 2020] Buffer I/O error on dev sdk, logical block 134250496, lost sync page write
[Mon Jun 22 10:07:21 2020] JBD2: Error -5 detected when updating journal superblock for sdk-8.
[Mon Jun 22 10:25:43 2020] sd 5:0:0:0: rejecting I/O to offline device
[Mon Jun 22 10:25:43 2020] print_req_error: I/O error, dev sdk, sector 0
[Mon Jun 22 10:25:43 2020] Buffer I/O error on dev sdk, logical block 0, lost sync page write
[Mon Jun 22 10:25:43 2020] EXT4-fs (sdk): I/O error while writing superblock
[Mon Jun 22 10:25:43 2020] EXT4-fs error (device sdk): ext4_journal_check_start:61: Detected aborted journal
[Mon Jun 22 10:25:43 2020] EXT4-fs (sdk): Remounting filesystem read-only
[Mon Jun 22 10:25:43 2020] sd 5:0:0:0: rejecting I/O to offline device
[Mon Jun 22 10:25:43 2020] print_req_error: I/O error, dev sdk, sector 0
[Mon Jun 22 10:25:43 2020] Buffer I/O error on dev sdk, logical block 0, lost sync page write
[Mon Jun 22 10:25:43 2020] EXT4-fs (sdk): I/O error while writing superblock

Hi @dmeyerholt  @BStroesser , after a few days of testing, I found another problem. When I use the initiator login target, and format the ext4 file system, and write some data, there will be an error as reported above.

Can confirm that too. Didn't notice initiator errors because of multipath.

I added a further patch for this issue to
https://bugzilla.kernel.org/show_bug.cgi?id=208045
Please test, I'm quite optimistic it will fix the problem (but as you know I have no ARM machine, so again it is compile tested only).

Thank you @BStroesser , I upgraded patch4 on kernel 4.19.118 and tested the read and write for a day. No problems encountered again.
I think like you, you can modify the kernel code, where can I find related books or materials?

Thank you for testing. I just sent the patch with your "Tested-by" to linux-scsi and target-devel.
Regarding books or materials: there are some general books and online infos regarding kernel and driver development. But IMHO best source for info is kernel source code ...

Thank you now running for 2 days without any issues

@BStroesser Thanks, I try it.
@dmeyerholt No problem found.


Add support for --public-network-access for az functionapp config namespace

There seems to be no way of setting the publicNetworkAccess attribute value (Enabled or Disabled) of the functionapp namespace, neither during creation, nor update (with az functionapp config create|update).
This means that, although we can automate the creation of Function App Inbound Private Endpoints and Function App VNet Integrations, we must go to each Function App and manually disable Public Access to our Function Apps.
Describe the solution you'd like
I'd simply like/expect to be able to run any of the following commands:

az functionapp config --name myFA --resource-group myRG --public-network-access enabled

az functionapp config --name myFA --resource-group myRG --public-network-access disabled

OR -

az functionapp config --ids myFAID --resource-group myRG --public-network-access enabled

az functionapp config --ids myFAID --resource-group myRG --public-network-access disabled

Describe alternatives you've considered
It doesn't exist under "az webapp config set" either.
Additional context
Without this, everyone who wishes to create or manage secure Function Applications must go directly to each resource and toggle this attribute, manually, while the rest of the same page can be updated via the Azure CLI:

route to CXP team

@HenryLGatesFoundation Thanks for reaching out to us and reporting this issue. We are looking into this issue and we will provide an update.

@HenryLGatesFoundation Could you please try the below command ?

az resource update  -g myRG -n myFA --resource-type Microsoft.Web/sites --set properties.publicNetworkAccess=Enabled

Awaiting your reply.

Yes, the use of the generic "resource" does work.

@HenryLGatesFoundation Thanks for getting back. Does the above command suffice your requirement or do you still need the CLI command?

I believe everyone who might run across this post would/should be able to use it.  But if you, or the team, could be so kind as to place it in a more intuitive "or correct" namespace for customers, that would be very much appreciated.  Is that possible?

@HenryLGatesFoundation Thanks for your reply. For the users who want to achieve this requirement without running the az resource command, they can follow the below steps:
The publicNetworkAccess is exposed as a property in this REST API.  So you can run the command like below:
First you need to fetch the existing configurations by running the config show command:

az functionapp config show --name myFA  --resource-group myRG --output json >  config.json

Then edit the config.json file and update the "publicNetworkAccess" to "Enabled". Then save the file and run the below command:

az functionapp config set --name myFA --resource-group myRG  --generic-configurations<EMAIL_ADDRESS>
Hope this clarifies.

/unresolve
I initially tested your original suggestion as a single command, then responded to you.  But after further testing, I do not think the original suggestion is a good route because I placed into an actual PowerShell script and I receive the following:
az : ERROR: (BadRequest) Call to Microsoft.Web/sites failed. Error message: SkuCode 'Dynamic' is invalid.
At C:\DIR\Create Dev Inbound FAs with PEs and Outbound VNet Integration.ps1:99 char:9

    az network private-endpoint create --connection-name $myConne ...

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : NotSpecified: (ERROR: (BadRequ...ic' is invalid.:String) [], RemoteException
FullyQualifiedErrorId : NativeCommandError

Code: BadRequest
Message: Call to Microsoft.Web/sites failed. Error message: SkuCode 'Dynamic' is invalid.

Now I see that you're suggesting we perform a "show", obtain the definition of the function app, make a small modification and essentially perform a PUT when all we really need is to use/set a single flag.
Note: This request is the same as a previously-fulfilled request for --public-network-access found here: https://github.com/Azure/azure-cli/issues/23025.
Can an implementation consistent with the aforementioned be implemented in this case and simply supply the community with the --public-network-access attribute/flag needed, so a standard implementation scheme exists (or begins to take shape) across Azure CLI command/namespaces?

@HenryLGatesFoundation Thanks for clarifying your requirement. I am adding the service team to look into your ask.
@Stefanus Hinardi, @Francisco-Gamino Could you please look into this request once you get a chance ?

Adding Functions Az CLI team
@amamounelsayed @cloudmelon @kaibocai -- Could you please help with the inquiry above? Thank you.

Also interested in this being added - noticed users of the platform are able to create an App Service (web app) but despite setting an Access Restriction in Networking settings, the resource JSON still reports that the flag for publicNetworkAccess is still set to 'null' and therefore fails the validation for the built-in security Azure Policy of 'App Service apps should disable public network access', due to this not evaluating to true:
          {
            "field": "Microsoft.Web/sites/publicNetworkAccess",
            "notEquals": "Disabled"
          }

There's little support for doing this via PowerShell too from what I've seen, and no support for changing this flag in the portal, and is causing many people issues with editing their in-situ web apps.

I would also like these flags to be added. Are there any updates on this?

It must be updated in two locations simultaneously using az functionapp update:
az functionapp update --resource-group $rg -n $functionAppName --set publicNetworkAccess=Disabled siteConfig.publicNetworkAccess=Disabled --query "{name:name, publicNetworkAccess:publicNetworkAccess, siteConfig_publicNetworkAccess:siteConfig.publicNetworkAccess}"

az functionapp update/az resource update don't help when Deny Public Network Access policies prevent creating the function, it's a really bad workaround imo.

For the Function App, after enabling the Public Network Access setting to "Enabled from select virtual networks and IP addresses," I’m trying to retrieve the Public Network Access value using the Azure CLI (az functionapp show --resource-group MyResourceGroup --name MyFunctionApp --query "publicNetworkAccess"). However, the result I get is simply "enabled," not the detailed information shown in the UI. Is this a known issue, or am I missing something?


Should not exit Neovim on :wq when the current buffer of type ft=git.* is loaded in the only window.

To reproduce: Open any git repo. and run NeoTermToggle and then git commit that triggers Neovim. NeoTerm.lua should not exit Neovim on :wq to finish the editing of git-related files.

note: This can be improved. the current workaround is to open another vsplit ahead before the operation.


Change the design of Terms and Conditions page

Feature description
@SauravMukherjee44 I would like to change the UI design of Terms & Conditions page. I am good in designing web pages with HTML and CSS. I request you to assign this task to me.
👀 Have you spent some time to check if this issue has been raised before?

[X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

[x] I have read the Code of Conduct

@barunipriyats Go for it!


Automatically create local sqlite db when sqlite is selected

@illogikal do you think the local sqlite db file should be omitted from git?
Here's the current pr draft https://github.com/formidablejs/installer/pull/43/files

Maybe this can also be something the user decides. If I am working on a personal project, then I would prefer to kee it in the repo, but if multiple people would use it maybe not...

Feature implemented in https://github.com/formidablejs/installer/pull/43/files


Provide usage

Provide some usage please.

Sorry but I don't know what you mean here. There is a usage part in the readme file.


Tpot Library demonstration

Explaining and demonstrating the use of tpot library that can be used to find the best model with the best parameters for classification and regression task without much efforts.
Please assign this as a gssoc task.

@PranavTyagi-3 go for it .


Design a scheme for dynamically allocating shared objects within a lambda body

There ought to be some shmalloc-like way that agents can dynamically allocate shared objects after a task has launched.
This probably only makes sense for concurrent agents, but I could imagine a scheme where the first sequential agent in a group does the shmalloc and the last agent does the shfree.

Might be able to support shmalloc even for parallel agents if we can detect the first and last agents in the group to use the shared object. Reference counting would work for destroying the object. Not sure how to construct it.


Doc needs updated code sample for Visual Studio 2019

The doc works fine as is but is currently relying on a Visual Studio 2019 code sample. Creating this issue to facilitate tracking on an updated code sample. Communicated with @athinanthny offline.

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

ID: 57882c35-3894-f871-bea2-470e74f63c57
Version Independent ID: 75dada9d-a6a5-c343-e3af-8dab59ad00cb
Content: Deploy a .NET app in a container to Azure Service Fabric - Azure Service Fabric
Content Source: articles/service-fabric/service-fabric-host-app-in-a-container.md
Service: service-fabric
GitHub Login: @athinanthny
Microsoft Alias: atsenthi

@athinanthny
Can you please check and add your comments on this doc update request as applicable.

Thanks for your dedication to our documentation. Unfortunately, at this time we have been unable to review your issue in a timely manner and we sincerely apologize for the delayed response. Though the scope of our feedback channel here on GitHub covers specific documentation fixes, we can help redirect you to the right support channel to get an answer to your question: [reference to alternative product/service or community endpoint]. Because this issue does not relate to documentation, we are closing this issue. #please-close


Only use O_PATH on Linux, use O_DIRECTORY on FreeBSD

O_DIRECTORY checks that you're opening a directory. It's also available on Linux, but the manpage there says not to use it (o_0)

Looks good. Thank you!


added a description in git-in-here.yml

PR Type: Name addition
Affiliation: N/A
Ticket: N/A

Checklist:

[x] I've read Contributing Guidelines
[x] I agree to follow the Code of Conduct

Please add hacktoberfest-accepted label


Feature Request: keyboard navigation (next/previous item)

I could not find any way to navigate between items using keyboard shortcuts. Maybe it is a good idea to add them? For example arrow keys for previous/next document on the list.

The shortcut feature is already implemented. You can use three shortcuts to navigate document. Taking the Next button as example, you can use ctrl n, 'arrowdown' and 'arrowright'. Is this helpful?

It will be more convenient to have left-hand navigation shortcuts. This modification makes a more fluent workflow, when working with sequence labeling job. We can keep left hand on keyboard and right hand on mouse selecting texts, without moving around.
Maybe with a custom key config? @BrambleXu


Radically simplify deployment, particularly on clusters without jq and cifs-utils

What type of PR is this?

Uncomment only one  /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:
/kind feature

What this PR does / why we need it:
This PR makes it much easier and less error prone to deploy an SMB-backed FlexVolume, particularly for first-time deployees. For the most part, installers now mainly need to know about their SMB server, share name, and login credentials, rather than learning a lot of K8S aspects they may or may not care about.
I've tried to maintain an Azure-first stance with the PR for the default configuration, but I'm not using Azure for this project, so somebody may want to check that its still optimized for Azure configuration-wise out-of-the-box.

Adds a helm chart with a single configuration file for all deployment steps, and a single deploy command.
Optionally injects statically linked copies of jq and mount.cifs onto cluster nodes, making deploys MUCH easier on clusters that don't already have these.
Creates a test pod by default which reduces the error prone initial debug step.

This doesn't improve everything, it could still use improvements in two areas:

Make creating the smbcreds secret easier, roll it into the "all in one" somehow
Make it easier to get the path to the flex volume plugins for your K8S platform easier... users will probably still struggle with this, though I've documented it as well as I could.

Special notes for your reviewer:
Release note:

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

The easiest way to understand this PR is to read kubernetes-volume-drivers/flexvolume/smb/helm/README.md:
Getting an SMB-backed PersistentVolume going using this Helm chart
You can use this chart to add an SMB Share as a Volume
to your Kubernetes cluster. It enables SMB-based PersistentVolumes
on your cluster in general, so after deploying you can create as
many SMB-backed volumes as you'd like.
By default the helm chart deploys a PersistentVolume, a PersistentVolumeClaim,
a "Test" Pod for debugging the setup, and most importantly, a DaemonSet
which can install the SMB drivers (and dependencies: jq and cifs-utils)
on each node in your K8S cluster.
Configure the smbVolume for your SMB server/share and deploy:

Edit values.yaml and configure lines marked MUST CONFIGURE:

Set smbVolume.server, smbVolume.share to access //smbVolume.server/smbVolume.share
Create an smbcreds secret on your k8s cluster with your SMB login credentials:

kubectl create secret generic smbcreds --from-literal username=USERNAME --from-literal password="PASSWORD" --type="microsoft.com/smb"

Set smbFlexVolInstaller.flexVolumePluginPath to the correct path
for your kubernetes platform provider (Azure AKS, minikube, etc,
see https://rook.io/docs/rook/master/flexvolume.html or comments in values.yaml)

Deploy the chart to your k8s cluster:helm install --wait ./helm/smb-flexvol

Use the testpod to validate your setup:
We recommend experimenting with your smbVolume and smbVolumeClaim in the testPod
until everything is working how you want.

Check if your smbVolume mounted to testPod.mountPath (/data by default):

kubectl exec $(kubectl get pod -l "role=testpod" -o name) -- ls /data`

Debug interactively on the testPod if necessary:

kubectl exec -it $(kubectl get pod -l "role=testpod" -o name) -- bash

That's it! Happy helming!

I evaluated building statically linked binaries in docker by reconfiguring and rebuilding Debian packages for jq and cifs-utils. I have a version which does this, and it works, but it generates a MUCH slower and longer docker install, and is a lot messier than I would have liked. After seeing what was required (and how specific it was to the current debian package configuration) staticx approach actually seemed much more modular, cleaner, and less likely to bitrot with time.

thanks for the contribution, is this PR done?
@snickell is it possible to add some basic test? currently there is only very simple test here: https://github.com/Azure/kubernetes-volume-drivers/blob/master/flexvolume/smb/test/run-test.sh

@andyzhangx Hi! Yes, this PR is done, I'm actually using it in production at the moment.
I'm not clear exactly what aspects of this PR would be worth the effort to write tests for, since its entirely build and infrastructure and not really any "running code", if that makes sense? Probably a separate (and fairly large) project would be to add infra/deploy tests for the whole repo using kind to actually create a cluster and do a test deploy to it.... basically testing infra using integration testing vs testing code with unit testing. Unfortunately that's a lot more time than I can spend on this project (its probably a bigger project than a helm chart by a lot).

thanks, let me try to add some tests first, will review this PR later.


How can we help?
I would like someone else to build the manifest.
Please read and ensure the following

[X] The installer meets the above requirements

Please provide the following information
Download Page Url: https://www.ldplayer.net/versions
Publisher:  XUANZHI INTERNATIONAL CO., LIMITED
Package Name: ldplayer
Description: Fastest Emulator to Play Android Games on PC
Package Version:
Installer URL: https://ldcdn.ldmnq.com/download/LDPlayer9.exe?n=LDPlayer9_ens_1252_ld.exe

@3xploiton3, I think we will not be able to add this as it has a blocker for automatic downloaders and it is also an interactive only package.


Refresh syntax highlighter keywords

cf. https://github.com/cloudera/hue/pull/1671
https://ci.apache.org/projects/flink/flink-docs-master/dev/table/sql/#reserved-keywords
https://ci.apache.org/projects/flink/flink-docs-master/dev/table/functions/systemFunctions.html#collection-functions

Note from @JohanAhlen: to keep the names sorted

Note from @JohanAhlen: to keep the names sorted


[Peek] Support SVGs

Might be simple and just need to add SVGs extensions for the ImagePreviewer.
See: https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.media.imaging.svgimagesource?view=winrt-22621


print frosch debug info from an exception handler

I realized there's no way to explicitly make frosch print. eg. I'd like to be able to:
try:
    foo()
except SomeError as e:
    frosch.print(e)

to get the nice frosch output while letting my code potentially survive.  I suspect it's probably possible, but just not documented?

This is not possible yet. But a great functionality

Is now included in version 0.1.6


Make spinner more general

Add centeredSpinner for specific case.

many of them end up overriding the margins and sizing anyway

Totally. This will prevent us from having to add more and we can nip others as we see them.


jQuery 3 Upgrade

jQuery 3 Upgrade
See the full upgrade 3.0 guide
Deferred
.then()

[ ] /lib/client.js

Event
.bind()

[ ] /lib/client.js
[ ] /tests/client.test.js

are we even using jquery here ??

Looking into it, we don't … but my standard scan for js methods does not reveal this. So I guess we can close this already.


Making register form validate.

Description of the enhancement
Validating register form.
Screenshots
Screenshots of the proposed changes compared with the current version of the project
related to #566

Description of the enhancement
Validating register form.
Screenshots
Screenshots of the proposed changes compared with the current version of the project
related to #566

@aashimgarg Please wait for two days.


text and alt text in slider are not read by screen reader in Firefox

NVDA does not announce the text or alt text inside the slider when browsing in Firefox. I am using the most recent version of slick.
Here's my jsfiddle: http://jsfiddle.net/aphpu8ze/4/
To reproduce: tab through the slider in the above jsfiddle using NVDA in Firefox.

I think this is related to the tab focus issue. I thew a tracking issue on it. I think a11y is pretty much top of the list. Thanks!


Added RayTraceResult wrapper and rayTrace methods

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

Two issues from looking at the implementation of Entity::rayTrace:

It looks like it only returns blocks. If this is the case, then the method should be renamed to reflect that (and also potentially add a method for ray tracing the entity if that doesn't already exist)
Is the distance parameter a max distance? That's what it looks like, but it's hard to tell. If it is, then it should be an optional argument and default to a large number (500 or something).


Toggling terminal opened by toggletasks

I already use toggleterm and have a keyboard shortcut defined to toggle it on/off.
Is it possible to send the task to that specific terminal and be able to use the same shortcut to toggle it on/off?
Tried to specify "count" in the config, but where to I define the corresponding number in my current toggleterm config?
Thanks in advance

You can for example use the following toggletasks.json:
{
    "tasks": [
        {
            "name": "Example neverending task",
            "cmd": "top",
            "count": 3
        }
    ]
}

This will open the task in toggleterm 3. Then you can use your toggleterm shortcut for terminal 3 to open/close it. Currently there is a limitation that if toggleterm 3 is already open when spawning this task, it will open in toggleterm with different number.


BSC web and description

Add the website and description of the tokens in BSC.

I will be doing them in batches due to my schedule, but I can do all of them.


Fixing several bugs in enquiry intake and submission intake forms

Description
A variety of bug fixes for the enquiry intake and submission intake forms:

Removing Submission Assistance where unnecessary
Removing ability to edit certain form parts when it is read-only
Remove unnecessary confirmation modals when navigating with the back button
Adjusting form validation so it does not trigger prematurely

PADS-255
PADS-257
Types of changes

Bug fix (non-breaking change which fixes an issue)

Checklist

[X] I have read the CONTRIBUTING doc
[X] I have checked that unit tests pass locally with my changes
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation (if appropriate)

Further comments

On the Permits tab, you can still edit the existing permits if they were there.  You can change the dropdown on both the ones applied for AND the optional might need ones.  You can also still click the delete icon on the optional ones.  Otherwise I think the other bugs are fixed from my testing.

On the Permits tab, you can still edit the existing permits if they were there. You can change the dropdown on both the ones applied for AND the optional might need ones. You can also still click the delete icon on the optional ones. Otherwise I think the other bugs are fixed from my testing. Although...when going into a Draft and then immediately leaving it without changing anything it does tell you leaving will lose your unsaved changes....which might make them think their draft is not being saved. Is it possible for that message to only come up if there are unsaved changes?

Permits being editable fixed for both applied and optional ones. Also modified the back button so that if there is unsaved changes it will ask before leaving, but not ask if it has been autosaved.


sort list of extensions alpabetically

Please change the code that generates
https://microsoft.github.io/jacdac-docs/clients/makecode/extensions/
to put in alphabetic order

fixed


format the table for better user experience

I updated the table to make it easier to read its long content, Including updating the formatting for better readability when needed based on the context, also fixed an issue where the markdown code is outputted instead of a link.
Reasons behind this change:

The second column Description in the table is way larger than the first one Name, making it a scrollable table, but because it is a very long table, the scrollbar is way down the page, not a user-friendly interaction for most screen sizes.
This bothered me personally, but also was reported by another person on the DirectX discord mentioning the same issue, so i thought i'd open a pull request fixing all those issues at once.

Things this edit fixes:

I fixed a markdown error that does not make the link show up, instead it showed the actual markdown code on the page.
The overall user-experience is improved by using a one column table instead, the Description column was bigger than the Name column making it hard to read and follow, now it is way easier to browse and read.

Reasons behind editing it this way:

I used html because markdown table syntax is not suitable due to the formatting of the page content.
I had to use  when needed because the markdown link syntax does not work inside html tags.

Things to check before applying this edit:

[ ] Make sure that the C++ enum code at the top of the page under Syntax is outputted correctly, i could not check that because i have no idea how to build the docs, i guessed the previous code for -enum-fields and -field was responsible for it, so i kept at the top.
[ ] Double-check the links and where they take (it was not possible to use the []() syntax in some places because they are not parsed by markdown inside html tags.

Feel free to comment further on this, thanks.

@siradam7th : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@siradam7th : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Thank you! Well, let's go ahead and take this change, and see whether the tradeoffs make it better overall (if not I can revert it). The real solution here is to fix the generated tables, and we've had a bug on that for a while without progress as yet. As I say, while the solution here is not ideal, and is bound to look odd in some way, it's pretty bad right now, so if a strange-looking manual fix is the best we'll get for the foreseeable future, then it's worth taking.
Thanks!
Steve

Thank you! Well, let's go ahead and take this change, and see whether the tradeoffs make it better overall (if not I can revert it). The real solution here is to fix the generated tables, and we've had a bug on that for a while without progress as yet. As I say, while the solution here is not ideal, and is bound to look odd in some way, it's pretty bad right now, so if a strange-looking manual fix is the best we'll get for the foreseeable future, then it's worth taking.
Thanks!
Steve

I understand that this is just a temporary workaround, I tried to pull every trick i could think of to come up with an 'acceptable' solution that works with all the content of the page uniformly.
To add to that, the way the markdown is skipped inside the html tags makes it hard to use [](), so you'll have to fallback to the  html tag that needs an href="" instead of just pointing to the .md file which makes more sense when editing and keeping the links up-to-date in the long term.
With that being said, I believe in the road to a real solution, in general, we could really benefit from being able to use markdown inside html tags selectively.
Thank you.

I understand that this is just a temporary workaround, I tried to pull every trick i could think of to come up with an 'acceptable' solution that works with all the content of the page uniformly.
To add to that, the way the markdown is skipped inside the html tags makes it hard to use [](), so you'll have to fallback to the  html tag that needs an href="" instead of just pointing to the .md file which makes more sense when editing and keeping the links up-to-date in the long term.
With that being said, I believe in the road to a real solution, in general, we could really benefit from being able to use markdown inside html tags selectively.
Thank you.

Well, this was worth a try (I wanted to see how it'd look), but it didn't work. The topic ended up looking worse than before. I tried to revert the PR here, but the system wouldn't let me. So instead I've reverted the change via the internal PR https://cpubwin.visualstudio.com/win32/_git/sdk-api/pullrequest/17263 (which won't be visible publicly AFAIK).
As I mentioned above, the real solution here is to get the content build system to generate different output (output that renders more nicely), so I'll continue to pursue that with the content engineering team. There's no solution to that by changing the content of the topic, so continuing to try to fix it via PRs is a dead end. You'll note that there's no table in the original content. Only a list of headings with descriptions below each. Those headings/descriptions are turned into tables by the content build system. So that's the system we need to change. My recommendation here is for the build system to take the heading, make it bold, put a period after it, then render the description. That way there's no table (and no scrollbars) to go wrong.
Thanks again!
-Steve

Well, this was worth a try (I wanted to see how it'd look), but it didn't work. The topic ended up looking worse than before. I tried to revert the PR here, but the system wouldn't let me. So instead I've reverted the change via the internal PR https://cpubwin.visualstudio.com/win32/_git/sdk-api/pullrequest/17263 (which won't be visible publicly AFAIK).
As I mentioned above, the real solution here is to get the content build system to generate different output (output that renders more nicely), so I'll continue to pursue that with the content engineering team. There's no solution to that by changing the content of the topic, so continuing to try to fix it via PRs is a dead end. You'll note that there's no table in the original content. Only a list of headings with descriptions below each. Those headings/descriptions are turned into tables by the content build system. So that's the system we need to change. My recommendation here is for the build system to take the heading, make it bold, put a period after it, then render the description. That way there's no table (and no scrollbars) to go wrong.
Thanks again!
-Steve


Updates needed to improve the data in the system

Description of the epic
This epic will serve as a collection of all the tickets that we will target in the update release. This release (Still TBD) will be focused on improving the existing metadata in the system by pushing updates that we have been postponing for some time now.

@ESapenaVentura flagging this as potential Updates focus Release target. It was hidden on the bottom of the backlog

title
#ticket
State
type

Investigate why 2 sets of files do not have aligned reads
#558
discuss - it's a gut dataset
dataset improvement

Incorrect biomaterial mapping (cell suspension <-> file)
#513
stalled
dataset improvement

Ontology curation error fixes
#322
no progress
ontology label fix

Restrict the number of 'organ' ontology terms being used
#462
no progress
ontology label fix

"Donor Disease" duplications due to addition of " (disease)"
#677
no progress
ontology label fix

Deprecate old 10x ontology labels
#625
no progress
ontology label fix

"Anatomical Entity" listed as "Immune system" instead of "immune system"
#678
no progress
ontology label fix

Duplications due to pluralization of "Selected Cell Type"
#679
no progress
ontology label fix

Duplications due to mixed case "File Format" values
#680
no progress
ontology label fix

Duplications due to mixed case "Content Description" values
#683
no progress
ontology label fix

Projects with multiple submissions :

What operations are difficult to perform?
Is this blocking us?
Can they be merged? Can we move the entities from one submission to another without deleting the submission?


Feature request: Honk and Flash

Would be great if honk_and_flash could be supported as well.
See iobroker adapter for details:
https://github.com/TA2k/ioBroker.vw-connect/blob/43a48b9443bea971e65d14f33e5766be2156b03f/main.js#L3599
Thanks!

I can make it work for an upcoming release. I had it in planning but never really use it so never came around to implementing it. Should be quick fix as soon as I have time to work on it.

Added in commit https://github.com/lendy007/skodaconnect/commit/31c6878257b9723133f16fd3a4aaf199a3b1dfb2#diff-d71651901ee84eed15f18f518e8cb094b33c8d536f3844ba7014273239e47ded, will be included in release 1.1.0 when I make it available.