BLD: update minimum Python, NumPy, Cython, Pybind11 versions

Now that 1.4.0 is out the door, it's time for another set of version bumps. Dropping Python 3.5 and NumPy 1.13, and updating Cython and Pybind11 to latest (there's a necessary Python 3.8 in both, and useful fixes for other issues as well).
This PR is also useful preparation for a Python 2.7 cleanup that is okay to start doing on Jan 1st. Given that people like deleting stuff, I'm sure that PRs will arrive soon-ish:)

NumPy uses bionic to get the 3.6-dbg packages. The 3.7-dbg will be in the next LTS in 2020.
    - python: 3.6
      dist: bionic
      env: USE_DEBUG=1
      addons:
        apt:
          packages:
            - *common_packages
            - cython3-dbg
            - python3-dbg
            - python3-dev
            - python3-setuptools

May have to pester me a bit if we want to get another 1.2.x LTS release out the door as well? I know I have a backport PR open for that and it was looking a little annoying & then the 1.3.x and 1.4.x series took precedence near the end of the year.

May have to pester me a bit if we want to get another 1.2.x LTS release out the door as well? I know I have a backport PR open for that and it was looking a little annoying & then the 1.3.x and 1.4.x series took precedence near the end of the year.

Thanks Tyler, I'll comment on gh-10758

okay this is good to go now

Merged, thanks @rgommers


Enhance std.string.indexOf() to work with ranges

http://dlang.org/phobos/std_string.html#.indexOf
Currently it only works with string inputs.
It still throws on invalid UTF.

I'm not sure about the merit of this function. I wonder why you would search for a index of a char in a ,maybe even temporary, range.  Also this function is then basically the stop for every range chain.
Performance: have you checked the performance before and after? I hate to be pushy here but https://github.com/D-Programming-Language/phobos/pull/2995

I updated it to remove the throwing and memory allocation. The documentation now says it assumes correct UTF. It assumed that before, throwing only on some invalid UTF.
The merit of this function is kind of irrelevant, it exists and we can't remove it. All the algorithms need to work with ranges.
I haven't benchmarked it, but I know it does less work because it doesn't decode unless necessary, whereas the former version always decoded.

The merit of this function is kind of irrelevant, it exists and we can't remove it. All the algorithms need to work with ranges.

This should be written in the vision document

Those branches exist in the auto-decoder.

Updated with 100% test coverage.

This should be written in the vision document

"We aim to make the standard library usable in its entirety without a garbage collector."
http://wiki.dlang.org/Vision/2015H1
We've been jawboning for years about getting this done and nothing has happened. I'm getting it done now.

What I'm trying to do is to say that you can only be sure about the performance if you benchmark.

100% sure, you are correct. But I've been around the block enough to know that less work == faster, nearly always. Also, this PR is not about making it faster. It's about that vision thing.

100% test coverage is a lie. Have you tested all possible combinations of all possible branches. If not, this is not 100% test coverage. This is maybe: "100% of the code was executed by the tests"

I use -cov to check the coverage. I know that doesn't prove all the logic is correct. It only proves that all lines of code were executed. That's what I meant by "coverage". It's only possible to test a function for all possible input for trivial functions.
On the other hand, my experience for decades with 100% test coverage (of lines executed) correlates strongly with very few bugs discovered later. It's a practical proxy.
If you run the Phobos unittests with -cov, you'll also discover that the line coverage is rather poor. I suspect I'm the only Phobos developer using -cov.

I suspect I'm the only Phobos developer using -cov.

We have to make it more accessible, e.g. dmd -main - unittest -defaultlib= generated/linux/.../libphobos2.a -run std/string isn't something people will use. The other important part it, that pull requests should only improve coverage. This could be enforced by the autotester.
If you want that to happen, it needs to be a mechanical requirement.

The bugzilla ticket to make this happen is blocked by a back end bug.
Issue 14063 - Add coverage enforcement for Phobos' posix.mak.

@WalterBright I know all that and it is all true, I only have a problem with the wording "test coverage".
My theoretical CS Prof would kill me, and rightfully so, if I would call -cov test coverage. How about "100% of the code gets executed by the unittests." Or short "100%CE"

I suspect I'm the only Phobos developer using -cov.

Like I said before, you're not.

@burner BTW, it is unnecessarily provocative to call people liars because your professor disagrees with usage of a term. I've been calling execution of lines "test coverage" for 30 years, and the tools that do it are called "coverage analyzers".
https://gcc.gnu.org/onlinedocs/gcc/Gcov-Intro.html#Gcov-Intro
You're the first to complain about it. I think you're going to have an uphill battle with it. I'm not going to change the way I use the term, even if your professor sends me a strongly worded letter :-)

e.g. dmd -main - unittest -defaultlib= generated/linux/.../libphobos2.a -run std/string isn't something people will use.

I use:
dmd std/string -unittest -main -cov

Not that bad.

Like I said before, you're not.

That's good to hear. Please help me in changing the culture on this in Phobos - for a PR for a new function, ask if it has 100% unittest coverage.

dmd std/string -unittest -main -cov

Tried that, doesn't work most of the time, I'll work on a posix.mak integration.
dmd std/typecons -unittest -main -cov
typecons.o:__main.d:function _D3std8typecons34__T8NullableTS3std4json9JSONValueZ8Nullable11__xopEqualsFKxS3std8typecons34__T8NullableTS3std4json9JSONValueZ8NullableKxS3std8typecons34__T8NullableTS3std4json9JSONValueZ8NullableZb: error: undefined reference to '_D3std4json9JSONValue8opEqualsMxFKxS3std4json9JSONValueZb'
typecons.o:__main.d:function _D3std4conv52__T7emplaceTC3std8typecons19__unittestL5606_102FZ1AZ7emplaceFAvZC3std8typecons19__unittestL5606_102FZ1A: error: undefined reference to '_D3std4conv16testEmplaceChunkFNaNbNiAvmmAyaZv'
typecons.o:__main.d:function _D3std4conv54__T7emplaceTC3std8typecons19__unittestL5606_102FZ1ATiZ7emplaceFAvKiZC3std8typecons19__unittestL5606_102FZ1A: error: undefined reference to '_D3std4conv16testEmplaceChunkFNaNbNiAvmmAyaZv'
typecons.o:__main.d:function _D3std4conv53__T7emplaceTC3std8typecons19__unittestL5650_103FZ2C0Z7emplaceFNaNbNiAvZC3std8typecons19__unittestL5650_103FZ2C0: error: undefined reference to '_D3std4conv16testEmplaceChunkFNaNbNiAvmmAyaZv'
typecons.o:__main.d:function _D3std4conv53__T7emplaceTC3std8typecons19__unittestL5650_103FZ2C1Z7emplaceFNaNbNiAvZC3std8typecons19__unittestL5650_103FZ2C1: error: undefined reference to '_D3std4conv16testEmplaceChunkFNaNbNiAvmmAyaZv'
collect2: error: ld returned 1 exit status
--- errorlevel 1

Tried that,

I just tried it, too (on Windows). Worked fine. Coverage report is 89% coverage - rather poor.

Acceptance list

[ ] replace numberCodeUnits with std.utf.codeLength

Auto-merge toggled on

Thx

This introduced a regression in vibe.d: https://github.com/rejectedsoftware/vibe.d/pull/1071
Fixed-sized arrays aren't accepted any longer, because they don't match isInputRange. IMO it's anyway better to slice such an array explicitly to make it clear that a reference could escape, but it's still a regression...

@MartinNowak add -cov "temporally" to the build flags of the *.test target. that is quite convenient.

Fixed size arrays as template arguments also lead to template bloat, as every different sized array results in a different instantiation.

Fixed size arrays as template arguments also lead to template bloat, as every different sized array results in a different instantiation.

But not in this case.

It needs to be fixed anyhow.

It needs to be fixed anyhow

Sounds like a job for Bugzilla!

There you go, Issue 14455 – [Reg 2.068-devel] std.string.indexOf no longer accepts static arrays. Please follow up on this.

@MartinNowak:
https://github.com/D-Programming-Language/phobos/pull/3191 is already merged. Should it have been made against stable instead of master? Do you want me to create a cherry-pick PR?

No, the bug isn't in stable, so the fix doesn't go there either.


Rename "Grebe" to something less weird

Nobody knows what Grebe is or does, except maybe Tanya. Rename it to something better and try and get some traffic through there.

I had forgotten, but @tberardini told me how cool it was  about 3 years ago ;), I'm sure nobody else on  the planet has even seen it...

It is cool!

"Get started with Grebe" makes me think, oh no, I don't want to learn anything new right now....maybe another day...maybe on a train when I have a free minute?...Pocket?... NOPE never doing that.


fix: Double scroll bars in dialog's properties pane

Description
fix: Double scroll bars in dialog's properties pane.
How it works?

hidden editor container scroll
set editor root div overflow: auto to support scroll if editor content is longer than iframe height

Task Item
closes #2157
Screenshots

I noticed there is anothoer unneessary scroll bar


how to find the age of domain

on substracting expiration date and creation date, it gives Type Error
TypeError: can't subtract offset-naive and offset-aware datetimes

Can you give details please https://github.com/DannyCork/python-whois/issues/new?assignees=&labels=&template=bug_report.md

no answer closing


ComboBox menu painter does not render mouse over or selected colors

Found that the ComboBox.listRenderer colors had not been set. Replaced the missing code.


Add Dockerfile

This commit adds the dockerfile
to containerize the project
1)Run docker build . -t "image_name"
2)Run docker run --net=host <image_name>
to run the docker image

Good work! Could you also document the steps to set-up and getting started with Docker in the Readme file?

Sure I will add the steps in the Readme File

Done changes made and Updated Readme file

Good work @bishtsaurabh5 !


implement the battery status check under mac environment

as the title

Hello, anyone reply me somthing? thanks

thanks!


[WFLY-12496] Use correct address for node1 in integration tests

https://issues.jboss.org/browse/WFLY-12496

retest this please
This requires approval from @ehsavoie as he's dealing with blocker issues involving these tests and we don't want to conflict.

I put the 18.x label on this because if it passes CI and doesn't interfere with other work there's no reason not to merge it for 18.

@istraka The 'Linux with security manager' CI job failures are due to this change. Deployment needs permissions.

@istraka if you agree can you add the missing permission? Or if not, leave a message

Superseded by 12779


Fix NullPointerException in Compaction.totalFileSize

List of files can be null for root level
Fixes #99

Fixed by #101


add chromevox to a11y documentation

Adding the truly excellent ChromeVox extension to the list of accessibility tools available.

cc @AlmeroSteyn @jessebeach does this look good to you?

@gaearon Thank you for that! Would love to help, however the invite seems to be revoked?
@jlr7245 I love the idea of people adding to this doc, especially other good tools out there.
As Chrome is not yet represented as a supported browser in the list of screen readers I think this is a good idea, however I would suggest keeping the frequency of use in mind. Check out the WebAIM Screen Reader Survey.
The screen readers already listed are by far the most used and as testing with screen readers usually scare developers perhaps we should note that when adding something like ChromeVox. Also issues with these three have the most impact on users. So perhaps we should tell people that should they only pick one or two to start with, that it should rather be JAWS, NVDA or VoiceOver.
Then there could possibly be a section for "Other screen readers" or something like that.
What do you think?

Yeah good idea to get dev awareness this way.
As for talking about the survey, my feeling is that the doc should rather just use this info to nudge devs in the right direction. IMO just adding the headers as you mention should be enough.

Should be all set!

Looking good thanks, just the one point to still address :-)

I sent the invites again. If they don't follow through let me know.

Oh, maybe it's our open source permission system messing it up. I'll ask internally.

@gaearon Brilliant thanks! This time it worked and I accepted.

@AlmeroSteyn Changes made!

Thank you for taking the time to add to this part of the docs!


help: copyediting nits in 'Getting Your Organization Started with Zulip'

Fixes a typo, a grammar error, and a place where the blue linkified text is not as natural as it could be.

Automated message from Dropbox CLA bot
@jrowan, it looks like you've already signed the Dropbox CLA. Thanks!

Codecov Report

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

@@           Coverage Diff           @@
##           master    #5561   +/-   ##
=======================================
  Coverage   86.72%   86.72%
=======================================
  Files         432      432
  Lines       53651    53651
  Branches     2093     2093
=======================================
  Hits        46528    46528
  Misses       7123     7123

Continue to review full report at Codecov.

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

Merged!  Thanks @jrowan!


Breaking assignment: objects of spread arrays to an array type

Bug Report
🔎 Search Terms

spread array into object
object array

🕗 Version & Regression Information

The behavior was observed between 3.5.1 and 4.3.0-beta
This is the behavior in every version I tried, and I reviewed the FAQ for entries about Common Bugs that aren't Bugs

⏯ Playground Link

Playground link with relevant code
💻 Code

const arr1 = [{ message: 'blue' }];
const arr2 = [{ subject: 'red' }];

const obj: Array<{ message: string } | { subject: string }> = { ...arr1, ...arr2 };

console.log(obj);

🙁 Actual behavior
Code compiles even though an object is being assigned to an explicitly specified array
🙂 Expected behavior
Compilation should fail. The spread into object does not preserve the semantics of spreading into an array since elements will overwrite each other. This opens up the possibility of a serious data loss.

Duplicate #35778


Create K8s pod metric based logs and alerts

Closes https://github.com/sigstore/public-good-instance/issues/703
Summary

Summary of metrics and alert policies
This PR adds two log based metrics for K8s pod errors for Rekor and Fulcio (so four new logs are added in total). It also adds alert policies around each metric.
The metrics simply count the number log entries that contain the specified k8s error message (either "unscheduable" or "Back-off restarting failed container") where resource.type is k8s_pod and resource.labels.namespace_name is either fulcio-system or rekor-system (depending on the specific metric).
The alert policies on these metrics will fire when logs with the error messages are present for more than ten minutes.
The metrics and alert policies were first created in the GCP UI and converted to Terraform with the terraformer tool. Below are links to the metrics and alert policies in the GCP UI.

All four user-defined metrics can be found here
Fulcio K8s Unscheduable alert policy
Fulcio K8s Restart Failing Container alert policy
Rekor K8s Unscheduable alert policy
Rekor K8s Restart Failing Container alert policy

Notes on the approach
https://github.com/sigstore/public-good-instance/issues/703 mentioned investigating whether we could use the GCP Error Reporting service, since it is automatically capturing the K8s pod errors. After some digging, that service does not seem to be supported in the Google Terraform provider and I was unable to configure PagerDuty notifications for it. So I opted to create these logs and alerts manually. These metrics and alerts are almost identical to each other, so it would be good to investigate whether we can reuse some of these metric and alert definitions but for the first pass, I opted to just create separate resource definitions for each metric and alert.
Questions for the reviewer:

Do we want to create these metrics and alerts for the other K8s deployments in the project, like the prober? I just added metrics and alerts to Rekor and Fulcio to start. We can add more in this PR or create a follow up issue.

Release Note

None.
Documentation

None.

@malancas i can merge this whenever you think it's ready, just lmk!

@priyawadhwa are you fine with merging and provisioning this on Monday on the off the chance these alerts go off over the weekend and need to be adjusted a bit? Just so the channel doesn't get flooded.

@malancas sounds good! i can merge when the tests turn green and we can update the terraform commit in public-good-instance on monday!

@malancas I ran this today and there were failures during provisioning:
https://github.com/sigstore/public-good-instance/actions/runs/3178209563/jobs/5179470236

@var-sdk thanks, I will look into this and get a fix ready. Is the provisioning failure blocking anything that needs to be updated or deployed today?

Nothing urgent. It can wait until tomorrow.

@var-sdk I think this is caused by two different issues so I'll create two PRs for review.

The GHA service account is missing an IAM role that allows it to create log based metrics - solution PR here
The alert policy filter needs to be updated because the API Terraform uses to construct the policies is different than the one used by the GCP alert policy creation UI. No error was encountered in the UI while creating these - solution PR here


Switched diabetes and covid APIs

Thank you for taking the time to work on a Pull Request for this project!
To ensure your PR is dealt with swiftly please check the following:

[x] Your submissions are formatted according to the guidelines in the contributing guide
[x] Your additions are ordered alphabetically - I used a proper alphabet this time.
[x] Your submission has a useful description
[x] The description does not end with punctuation
[x] Each table column should be padded with one space on either side
[x] You have searched the repository for any relevant issues or pull requests
[x] Any category you are creating has the minimum requirement of 3 items
[x] All changes have been squashed into a single commit

Nice catch!


make a html link in the doc comments

just a minor ergonomic improvement to the documents on the web

I changed this to a module system based link in 44d7fe33fcd1adfb952384367840d706b7278d9e. Otherwise https://docs.rs/serde_json/1/serde_json/enum.Value.html would point to the wrong index page compared to https://docs.rs/serde_json/1/serde_json/value/enum.Value.html.

I changed this to a module system based link in 44d7fe33fcd1adfb952384367840d706b7278d9e. Otherwise https://docs.rs/serde_json/1/serde_json/enum.Value.html would point to the wrong index page compared to https://docs.rs/serde_json/1/serde_json/value/enum.Value.html.


Create steelseries-rival-110.device

The correct file/driver for the SteelSeries Rival 110 (my gaming mouse). Tested and working.

Yes, I'm sure the DPI changes correctly, at least in my mouse it does, however I still can't change the LED lights. But before I added this file the Piper GUI wound't even detect any mouse. Also, after adding the file, I had to run:
      sudo pkill ratbagd
      sudo ratbagd --verbose

De: staticssleever668 @.>
Enviado: 7 de setembro de 2024 20:30
Para: libratbag/libratbag @.>
Cc: Daniel Couto @.>; Author @.>
Assunto: Re: [libratbag/libratbag] Create steelseries-rival-110.device (PR #1643)
Hi! Are you sure DPI changing works correctly? In #1106https://github.com/libratbag/libratbag/pull/1106 it seemed as though Rival 110 DPI configuration works in a different way.
I can change the speed, but 200-800DPI feels the same. Also anything from 1600 to 7200 DPI feels the same.
#1106 (comment)https://github.com/libratbag/libratbag/pull/1106#issuecomment-1035636605
—
Reply to this email directly, view it on GitHubhttps://github.com/libratbag/libratbag/pull/1643#issuecomment-2336414167, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANANR3SE4E75E64WHJQ3O5LZVNH33AVCNFSM6AAAAABN2FYBZ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZWGQYTIMJWG4.
You are receiving this because you authored the thread.


'(': illegal token on right side of '::' FastRTPS 1.8.1 Windows [6214]

I'm building a DDS LIbrary wrapper fro FastRTPS, and Visual Studio is complaining about '(': illegal token on right side of '::' in ResouceLimitedVector.hpp in every instance std::min( is used.

Hi @ghostravenstorm
Microsoft has the bad habit to define min (and max) as macros in Windef.h (probably included through Windows.h).
You should be able to avoid the collision by defining the macro NOMINMAX.


model app inconsistent wrt output definition

The modeling app apparently uses a directory models in my workspace as the output folder; to be consistent with the other applications that should be choosable by the user, perhaps defaulting to models.

The job submission form does support selection of output folder and output name now, making it consistent with the rest of the apps.
-Maulik


Add malware scanner integration for (#60) & other minor fixes

Had a play with a new containerised environment (https://github.com/surevine/openfire-docker-compose/tree/clamav/clamav)
Here, the HTTPFileUpload is configured to use ClamAV on "another machine".
Using the JSXC plugin for testing:

I could send some openfire logs, but couldn't send the eicar test virus
When I misconfigured the host for ClamAV (mimicking offline) all file uploads were rejected
When ClamAV is online, the delay caused by scanning isn't perceptable (although, of course, YMMV, etc)


Dirt Bucket Right-click Config

Request
I would like to request a config option to disable the right-click functionality of the Dirt Bucket. I'm making a modpack where Iron is restricted until a certain stage, and the Dirt Bucket is made from a Clay Bucket + Dirt, so it's a bit game-breaking to have it turn into an empty bucket when used :P
I hope you'll consider it, and thank you for a great mod.

Alternatively, have it turn back into a clay bucket rather than an iron one.

That would be great, but I think it's too much to ask for :p

It actually could be as simple as changing one line, however a config for this could be good as well.
https://github.com/ferreusveritas/DynamicTrees/blob/619d419e7c6904ae62d21b48d48a7b4b76571593/src/main/java/com/ferreusveritas/dynamictrees/items/DirtBucket.java#L68

Thanks!


Compilation fails

My compilation fails with:
[error] ~/engine/core/src/main/scala/actors/LedgerActor.scala:11: object eligosource is not a member of package org
[error] import org.eligosource.eventsourced.core.Message
I'm running sbt test
Thanks :)

Thanks - this works perfectly!


Reliability test cases lead to E2E CI bugs

After adding E2e case R00003, where the api judgment is wrong, resulting in ci failure.
The error screenshot is as follows：

The ci failure log is as follows：
https://github.com/spidernet-io/spiderpool/runs/7222336524?check_suite_focus=true

https://github.com/spidernet-io/spiderpool/pull/400


Regarding No longer extracting like_count for video metadata

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
Hello Team,
I am trying to extract the like_count and dislike_count. Reaching out to check on the following issue:

https://github.com/yt-dlp/yt-dlp/issues/8759

As per my understanding this issue: https://github.com/yt-dlp/yt-dlp/issues/8759 is fixed.

Are these changes deployed?
Which version should I use?

Do I need to get any thing from my side to extract the like_count.
This is how I am trying:
video_url = f"https://www.youtube.com/watch?v={video_id}"
with YoutubeDL() as ydl:
result = ydl.extract_info(video_url, download=False)
save_file = open("watch.json", "w")
json.dump(result, save_file, indent=6)
save_file.close()
But still not able to see the like_count via watch url. Could you please help me on this.
Thank you in advance.
Provide verbose output that clearly demonstrates the problem

[ ] 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
[ ] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
No response

It is patched in master and nightly, but there has not been a stable release since then.
If using a binary: yt-dlp --update-to nightly
If using a pip installation: python -m pip install -U --pre yt-dlp

Thanks for the reply @bashonly. As you suggested, upgraded the library.
while hitting video_url = f"https://www.youtube.com/watch?v={video_id}"
I am still not getting like_count attrtibute.
Following are the list of attibutes that I aam getting, which doesn't have like_count

add 'verbose': True to your ydl opts and post the output please

Sure!
[debug] exe versions: none
[debug] Optional libraries: Cryptodome-3.19.0, brotli-1.1.0, certifi-2023.11.17, mutagen-1.47.0, requests-2.31.0, sqlite3-3.36.0, urllib3-2.1.0, websockets-12.0
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests
[debug] Loaded 1901 extractors
[youtube] Extracting URL: https://www.youtube.com/watch?v=XYZ
[youtube] XYZ: Downloading webpage
[youtube] XYZ: Downloading ios player API JSON
[youtube] XYZ: Downloading android player API JSON
[youtube] XYZ: Downloading m3u8 information
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, vcodec:vp9.2, channels, acodec, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec:vp9.2(10), channels, acodec, lang, proto, size, br, asr, vext, aext, hasaud, id
[debug] Default format spec: bestvideo*+bestaudio/best

[debug] Loaded 1901 extractors

It does not appear that you are using the pre-release / nightly branch
Please post the full output, and do not redact the URL

$ yt-dlp -O like_count https://www.youtube.com/watch?v=BaW_jenozKc
507

Closing this. If you need help sorting out your yt-dlp installation (you may have multiple versions installed), you can continue to reply to this issue

I checked, I am using the latest version:
t0d0095@m-c02xr0sqjgh7  % pip show yt-dlp
Name: yt-dlp
Version: 2023.11.16
Summary: A youtube-dl fork with additional features and patches
Home-page: https://github.com/yt-dlp/yt-dlp
Author:
Author-email:
License:
Location: /Users/t0d0095/Library/Python/3.7/lib/python/site-packages
Requires: brotli, certifi, mutagen, pycryptodomex, requests, urllib3, websockets
Required-by:

that is not the pre-release version
python -m pip install -U --pre yt-dlp
note the --pre


Selection of keypoints

Thank you for your work.
I notice some lines about the selection of keypoints in generate_example_images.py:
keypoints = [ia.Keypoint(x=34, y=15), ia.Keypoint(x=85, y=13), ia.Keypoint(x=63, y=73)]
keypoints = [ia.KeypointsOnImage(keypoints, shape=image.shape)]
So I think this may cause bad outputs in my case.
If I take chopsticks as my input image, how to choose suitable locations for the keypoints(equal diversion point or ...)? Can it be a form of y=k*x+b or other functions?
By the way,how to get the precise locations of keypoints(x=34,y=15 i.e)

Keypoints cannot be functions, they have to be provided as exact coordinates on the image (either integers or floats for subpixel accuracy). The library is not going to help you with finding your keypoints. You have to find the coordinates yourself, e.g. manually via something like photoshop or by building your own tool to annotate the points.

Thank you for your reply.


Long query result cuts off after 60 seconds

$ time curl --max-time 3600 -s -S localhost:7001 -H "Accept: text/tab-separated-values" --data-urlencode query='select ?item ?doi where { ?item <http://www.wikidata.org/prop/direct/P356> ?doi . }' > ~/wikidata-doi.tsv
curl: (18) transfer closed with outstanding read data remaining

real	1m0.185s
user	0m0.084s
sys	0m1.621s

I can't tell if this is something that can be configured or is on my end.

The server has a default timeout, you can either set it in the Qleverfile or with a command-line argument when calling qlever start.
BTW, fetching all results for this query from https://qlever.cs.uni-freiburg.de/wikidata takes around one minute:
time curl -s https://qlever.cs.uni-freiburg.de/api/wikidata -H "Accept: text/tab-separated-values" -H "Content-type: application/sparql-query" --data "PREFIX wdt: <http://www.wikidata.org/prop/direct/> SELECT ?item ?doi WHERE { ?item wdt:P356 ?doi }" > wikidata.all-dois.tsv

And how do I set it? I can't find a value to change in Qleverfile or anything in the documentation describing how to do this.

Found it in qlever start --help.

@harej Yes, exactly. If you want an overview over all possible parameters in a Qleverfile, you can find it here: https://github.com/ad-freiburg/qlever-control/blob/main/src/qlever/qleverfile.py


chore: nodey206 to 0.0.9

chore: Promote nodey206 to version 0.0.9

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To complete the pull request process, please assign
You can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Update challenge based authentication policy in ACR to validate the authority link

Label prediction was below confidence level 0.6 for Model:ServiceLabels: 'KeyVault:0.30265382,AppAuthentication:0.26881737,Storage:0.14113118'

@pallavit, could you provide more details in the description of this issue?  Is .NET not doing this where other languages are, or where does this requirement come from and what kind of validation is needed?

Per offline conversation with @pallavit, we can close this issue as resolved.


Add the whenever gem for cron jobs

Feature
Why is this feature being added?

We need to be able to have recurring cron jobs ran, on our behalf.  For example, to hit GitHub's API, or the Meetup API, on a daily basis, to pull in current statistics or Meetup events.
The whenever gem is a perfect tool to solve this.
This issue will complete the implementation for https://github.com/OperationCode/operationcode_backend/pull/153
What should your feature do?

Install the whenever gem
Write a shell script for it
Update the Dockerfile to call the script instead of the current CMD

@rickr - ping

@ohaiwalt - curious if this issue is something you’re able to do?
I can take care of installing the whenever gem.  Would need your assistance on the second two bullet points.

@hpjaj, would this implementation accomplish what you need?
http://derekbarber.ca/blog/2015/09/10/scheduling-background-jobs-in-rails-using-sidekiq/

@hollomancer - Nice find.  The only issue is deploying the setup to the server.  It "seems" like we would need to do similar config, as what we would need for just using the Whenever gem by itself.
But I don't know.  That would be a question for @rickr or @ohaiwalt ?
Whichever approach is easier for them to setup, I can take care of the rest.

I think that in this case, it would just be happening in the same pod as operationcode_backend, wouldn't it? That would skip items 2 and 3.

¯_(ツ)_/¯
The part of the article I am unsure on is the Deploying Your Background Jobs, since we do not use capistrano.
Are you thinking that we can just setup a config/deploy.rb file as they describe, merge to master and deploy, and it would just work?
If yes, then yes, this would be a great option.

I'm not familiar with Capistrano - but yeah, I would think we would call whenever --update-crontab somewhere like .travis.yml or bin/deploy

Yeah, that is the missing link for me, too.  @ohaiwalt ?

Let's go ahead and get what we need in terms of cronjobs specified - we can worry about the deployment piece afterwards.

Since the project already uses sidekiq would it be better to use something like https://github.com/moove-it/sidekiq-scheduler?

I agree with using more Sidekiq. I've had recent good experience with sidekiq-cron and recommend it.

I can take this and add https://github.com/ondrejbartas/sidekiq-cron support if that is aligned with how we want to manage jobs in backend.

Assigning myself as placeholder for you. :)


Explore whether Terminal could be 'runas' a different user identity

Related to #2485, #1053, #3534
This issue is a fork from a conversation started in #146 (specifically this comment onwards) discussing if/whether Terminal can/could support being runas a different user identity than the currently logged-in user.

Note: This is not sudo or run elevated - that's a different concept since elevation runs a process with the current user's identity, but with additional (admin) rights.

The primary ask here is that users, particularly those in enterprise scenarios, often need to run commands/scripts/etc. under a different user account with different permissions/rights than their normal/general user account.
Alas, UWP apps do not currently support the ability to run under a different identity than the currently logged-in user.
Thus, there are a couple of questions:

Can the UWP app platform provide a way to run UWP apps under a different/specific user identity?
If not, can Terminal be built/delivered allowing users to run under a different identity?

We'll go do some homework and respond to this thread with what we find.
Thanks all on the original thread for sharing their feedback :)

I'm not an enterprise user so I apologize if I don't fully understand the requirements here, but does the terminal GUI really need to run as another user? Or is it enough to spawn shells with runas and/or a potential sudo utility? I was able to get an admin tab with my wsudo POC, and I'd imagine running a shell as another user would work similarly.

That is a whole other thread with its own security concerns. https://github.com/microsoft/terminal/issues/632

The primary ask here is that users, particularly those in enterprise scenarios, often need to run commands/scripts/etc. under a different user account with different permissions/rights than their normal/general user account.

Isn't the primary issue here security? In my book no user, enterprise or not, should be running an admin account hoping UAC is doing it's job properly
Bypass User Account Control
https://attack.mitre.org/techniques/T1088/
to me this is a HUGE issue and it seems it is being swept under the rug

Isn't the primary issue here security? In my book no user, enterprise or not, should be running an admin account hoping UAC is doing its job properly

It's the same issue.
An example of this is that a domain admin should have two AD accounts; a standard user account and a domain admin account. They should be logged into their desktop under their standard user account.
This is preferable to switching to their domain admin user. It's more convenient and much quicker.

Yes, this is all about security.
Consider the scenario where a domain admin's standard environment is compromised with some form of pernicious malware.
If/when they launch an app from their compromised desktop running as their domain admin account, the malware now has considerable opportunity to key-log/screen-scrape/intercept/divert/whatever on the .
This is why many enterprises and most online services air-gap users from production systems, requiring users to login via RD to a strictly-managed, heavily-restricted hosted VM environment which is severely locked down, regularly re-paved, etc.
Such environments used to be the domain of the rich and famous, but this can now be built very cost effectively with commodity services and tools.
Is this more inconvenient than just runas /user:domainadmin1 "resetpasswords.bat /all"? Yes, but it's designed to be so.
One of the interesting artifacts of such changes is that scripts, automation, and systems get built to replace the user's need to run admin tasks ad-hoc, increasing reliability and repeatability, decreasing errors, and decreasing various other risks.
YMMV.

Being redirected from GH-5723 and I understand the security concerns but I think we are missing something from the user experience.
I actually work with a restricted user and when I do "Run as Admin", I elevate with a local admin user for which I need to enter the password. This works with everything, including powershell and cmd prompt. I understand the possible WUP limitations but the 2-user pattern is a much more secure pattern, I think, than a all the time admin with UAC on demand.
If the WUP won't allow for this, shouldn't there be an alternative like a global installation even outside the Windows Store, like PowerShell and every other application. At the end of the day, this looks like a limitation of the WUP because what would happen on systems that only run WUP apps? A Terminal is almost by design an extension to system configuration, so something needs to be considered when re-envisioning a Windows Terminal that can't do admin things.
I also request for this issue to be re-opened or lets create another one. Let me know please.

On systems that only run universal “modern” applications, there is no local administration scenario. Sorry.
This issue tracks the work we need from the application deployment team to make launching a modern packaged application with any identity that isn’t your local logged-in user identity work. This bug will be sufficient for tracking your request.
In the meantime, if you register the application package for your admin user you should be able to run Terminal as that user.

Hey Alex. I think your scenario is similar to those above so no need for a new one.
We do understand the scenario well. But as discussed above:

The UWP app model does not (currently) support running modern apps under the identity other than the currently logged-in user
The venerable Windows Console (the UI you traditionally see when you run Cmd/PowerShell directly) is a standard Win32 app and can be run under a different user's identity
Running under a different user identity does offer some security risk mitigation, but does not protect one from malware (e.g. keyloggers) running in the current user session.

Before we continue, let's remember ...
UAC is not a security barrier!
Elevating a process via UAC does help protect against several forms of attack, but UAC is NOT a security barrier. Nor is running tools under the identity of an arbitrary user account. They can help mitigate some risks, but they're not a security mechanism
Consider UAC:
When UAC is enabled:

Apps normally run without the admin bit set on the user's security token (even if the user is in the admin group), and the app is not permitted to do things that require admin rights
When an app is launched "elevated", after the UAC prompt, the launched process receives the identity and user token of the specified user - whether it's the current user or a different identity, but with the admin bit set. The elevated process is seen by the OS as running with elevated admin rights, and is granted permissions to do things that may affect machine-wide state and/or bypass certain standard protections. This is why it's unwise to run tools elevated by default, or elevated for extended periods of time - when elevated, such apps can "do things to things" that might not be appreciated!

However, once again, UAC/elevation is not a security barrier. UAC does not protect you from locally running malware, it does not protect you from keyloggers, it does not protect you from ransomware, etc. No single security feature will!
The best approach to protect one's self and/or one's systems from malware attack is multiple layers of defense.
UAC helps. As does correctly ACLing sensitive resources. As does running an OS & app platform that provides several layers of defense throughout. As does remoting (via something like Remote Desktop that itself implements several layers of protection) into a desktop session running on a carefully managed and highly restricted remote/virtual environment that requires biometric/2FA authentication, etc., in which only specifically permitted apps and tools can run.
Of course, this degree of security may be too costly, time-consuming, annoying, etc. for your needs/scenarios, but it does achieve the goals that many here aim to achieve. Up to where on this spectrum one is willing to invest time and resources is entirely up to you.
Get to the point Rich 😜
Sorry for the lengthy exposition, but I want to be sure we're all on the same page re. the true efficacy (from a security perspective) of launching a Terminal "as a different user" whether with or without admin rights. With this understanding (I hope) it's clear why the modern/future Windows app platform chose NOT to support running apps as a different user - the security benefits of doing so are not as valuable or effective as some might assume.
What does this mean for Terminal?
We build Windows Terminal as a modern Windows app. We chose to do so for many reasons, but in doing so, we did recognize that there would need to trade-off vs. certain capabilities/features. If Terminal doesn't meet some specific needs, we encourage you to continue to use Console or whatever 3rd party Terminal app does meet your needs. After all, no one tool can do it all for everyone!
However, do know that we remain in close contact with the app plat and security teams and continue to investigate and explore several approaches & features that will help provide layers of defense around Terminal scenarios.
Bear with us!

We build Windows Terminal as a modern Windows app. We chose to do so for many reasons, but in doing so, we did recognize that there would need to trade-off vs. certain capabilities/features. If Terminal doesn't meet some specific needs, we encourage you to continue to use Console or whatever 3rd party Terminal app does meet your needs. After all, no one tool can do it all for everyone!

@bitcrazed Is it possible to (very briefly) explain some of the functionality in modern apps that led you to that decision?

Hey @dadpolice - sure.
We wanted to be able to take advantage of:

Modern UX & WinUI controls (inc. Tab controls) with greater consistency with other Windows apps and tools
Acrylic backgrounds
Independent & clean per-user install & uninstall*
Always Up To Date via the Store
Push the app plat into new territory**

* Interestingly, this need, provided for inherently by the modern app platform (all users get their own independent mutable app state) is what makes supporting runas  difficult, because if you don't login to said  desktop and install Terminal, you wouldn't be able to runas  since  wouldn't have the app installed!
** We also wanted to push the app plat into new territory, and ensure that it was able to support scenarios which the app plat was originally designed to prevent (e.g. launching & communicating with arbitrary external processes, e.g. Cmd, PowerShell, WSL, ping/ipconfig/etc.).

@DHowett-MSFT and @bitcrazed I really appreciate you sharing your insight and I learned somethings as well.

We build Windows Terminal as a modern Windows app. We chose to do so for many reasons, but in doing so, we did recognize that there would need to trade-off vs. certain capabilities/features. If Terminal doesn't meet some specific needs, we encourage you to continue to use Console or whatever 3rd party Terminal app does meet your needs. After all, no one tool can do it all for everyone!

@bitcrazed Is it possible to (very briefly) explain some of the functionality in modern apps that led you to that decision?

To extend the @dadpolice question, I've already proposed a different release format if possible because I do understand the limitations of WUP.

If the WUP won't allow for this, shouldn't there be an alternative like a global installation even outside the Windows Store, like PowerShell and every other application.

I don't know if that is possible though. Not sure if an app built for WUP can be packaged and run outside of WUP. If not then given the "limitations" of the WUP then this won't work. Maybe, a recompilation of the same code for non WUP could be an option. As long as it is not a big hassle to implement, then adding a another release format is not a technical problem and more of a choice. It might be that there are some reasons to stay only on WUP. Looking forward to your insight on these topics as well.

In the meantime, if you register the application package for your admin user you should be able to run Terminal as that user.

I actually never thought about this.
Thank you all guys.

@Sarafian So, this is one of those cool things that we get sorta "for free". Terminal is actually built as a classic Win32 application and then packaged later.
The end result of this is that you can, if you're so motivated, extract the msixbundle like a zip file, then extract the msix for your architecture inside it. You'll get a folder of DLLs and EXEs. If you then double-click WindowsTerminal.exe or put it on your path or what-have-you it'll work just fine, and it'll work for any user who can access that folder.
There's a minor issue you'll run into with the dropdown icons doing it that way, but it is functional. :smile:

@DHowett-MSFT cool. Have you guys considered what I proposed? Creating another form of deliverable additional to WUP? A traditional installer that could be even leveraged by chocolatey for fast updates?

That's the subject of a very lively discussion in #1386.

So we should and can add a common msi package and distribute in the same way as other tools, like VS, Msbuild, etc.
Nice!

That's the subject of a very lively discussion in #1386.

Ok thanks. Continuing there.

Isn't the primary issue here security? In my book no user, enterprise or not, should be running an admin account hoping UAC is doing its job properly

It's the same issue.
An example of this is that a domain admin should have two AD accounts; a standard user account and a domain admin account. They should be logged into their desktop under their standard user account.
This is preferable to switching to their domain admin user. It's more convenient and much quicker.

This is my exact situation. We have a regular AD user account for our workstation and an AD administrator account to do our work. As it stands now I see no real point in using WT over my standard powershell or command terminal.

As a workaround, can you not Enter-PSSession with your alternate identity credentials? (obviously this is only a powershell solution)

This does not work if you are trying to do things like Active Directory management. A simple test is to try to access the c$ admin share on a DC using set-location, it will fail. While opening a Powershell windows "As a different user" works.

Interesting all the points above on security of elevation vs no elevation when running commands in a terminal (cmd, powershell or whatever). A big selling point of windows terminal is the tabs and split panes - great for running stuff remotely when enter-pssession is ideal. There are time though when I need/want to run something locally, at which point I need to ditch terminal and open a powershell window as admin to do it. Sort of defeats the point of having a nice neat all in one place for terminal windows

In the meantime, if you register the application package for your admin user you should be able to run Terminal as that user.

I recently found myself in the position of wanting to register Store-installed Windows Terminal with a second (high-privilege) account to try and work-around this issue, due to local corporate policies.
By my research, the command should be:
Add-AppxPackage -Register 'C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.3.2651.0_x64__8wekyb3d8bbwe\AppxManifest.xml' -DisableDevelopmentMode

when running PowerShell as the target user (either privileged or unprivileged), but it fails

Add-AppxPackage : Deployment failed with HRESULT: 0x80073D19, An error occurred because a user was logged off.
error 0x80070002: While processing the request, the system failed to register the windows.sharedFonts extension due to the following error: The system cannot find the file specified.

The Get-AppPackageLog -ActivityID 10f4110e-a0eb-0003-45f6-6b11eba0d601 output:

PS C:\WINDOWS\system32> Get-AppPackageLog -ActivityID 10f4110e-a0eb-0003-45f6-6b11eba0d601

Time                      ID           Message
----                      --           -------
10/20/2020 1:12:12 PM     603          Started deployment Register operation on a package with main parameter AppxManifest.xml and Options 0 and 0. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.
10/20/2020 1:12:12 PM     819          The following packages will be installed: 1527c705-839a-4832-9118-54d4Bd6a0c89_10.0.18362.449_neutral_neutral_cw5n1h2txyewy c5e2524a-ea46-4f67-841f-6a9465d9d515_10.0.18362.449_neutral_neutral_cw5n1h2txyewy E2A4F912-2574-4A75-9BB0-0D023378592B_10.0.18362.449_neutral_neutral_cw5n1h2txyewy
                                       F46D4000-FD22-4DB4-AC8E-4E1DDDE828FE_10.0.18362.449_neutral_neutral_cw5n1h2txyewy InputApp_10.0.18362.449_neutral_neutral_cw5n1h2txyewy Microsoft.AAD.BrokerPlugin_10.0.18362.449_neutral_neutral_cw5n1h2txyewy Microsoft.AccountsControl_10.0.18362.449_neutral_neutral_cw5n1h2txyewy
                                       Microsoft.AsyncTextService_10.0.18362.449_neutral_neutral_8wekyb3d8bbwe Microsoft.BioEnrollment_10.0.18362.449_neutral_neutral_cw5n1h2txyewy Microsoft.CredDialogHost_10.0.18362.449_neutral_neutral_cw5n1h2txyewy Microsoft.ECApp_10.0.18362.449_neutral_neutral_8wekyb3d8bbwe
                                       Microsoft.LockApp_10.0.18362.449_neutral_neutral_cw5n1h2txyewy Microsoft.MicrosoftEdgeDevToolsClient_10.0.18362.449_neutral__8wekyb3d8bbwe Microsoft.MicrosoftEdge_44.18362.449.0_neutral__8wekyb3d8bbwe Microsoft.PPIProjection_10.0.18362.449_neutral_neutral_cw5n1h2txyewy
                                       Microsoft.Win32WebViewHost_10.0.18362.997_neutral_neutral_cw5n1h2txyewy Microsoft.Windows.AppRep.ChxApp_10.0.18362.449_neutral_neutral_cw5n1h2txyewy Microsoft.Windows.AssignedAccessLockApp_10.0.18362.449_neutral_neutral_cw5n1h2txyewy Microsoft.Windows.CallingShellApp_10.0.18362.449_neutral_neutral_cw5n1h2txyewy
                                       Microsoft.Windows.CapturePicker_10.0.18362.449_neutral_neutral_cw5n1h2txyewy Microsoft.Windows.CloudExperienceHost_10.0.18362.449_neutral_neutral_cw5n1h2txyewy Microsoft.Windows.ContentDeliveryManager_10.0.18362.449_neutral_neutral_cw5n1h2txyewy Microsoft.Windows.Cortana_10.0.18362.449_neutral_neutral_cw5n1h2txyewy
                                       Microsoft.Windows.NarratorQuickStart_10.0.18362.449_neutral_neutral_8wekyb3d8bbwe Microsoft.Windows.OOBENetworkCaptivePortal_10.0.18362.449_neutral_neutral_cw5n1h2txyewy Microsoft.Windows.OOBENetworkConnectionFlow_10.0.18362.449_neutral_neutral_cw5n1h2txyewy
                                       Microsoft.Windows.ParentalControls_10.0.18362.449_neutral_neutral_cw5n1h2txyewy Microsoft.Windows.PeopleExperienceHost_10.0.18362.449_neutral_neutral_cw5n1h2txyewy Microsoft.Windows.PinningConfirmationDialog_10.0.18362.449_neutral_neutral_cw5n1h2txyewy Microsoft.Windows.SecHealthUI_10.0.18362.449_neutral__cw5n1h2txyewy
                                       Microsoft.Windows.SecureAssessmentBrowser_10.0.18362.449_neutral_neutral_cw5n1h2txyewy Microsoft.Windows.ShellExperienceHost_10.0.18362.449_neutral_neutral_cw5n1h2txyewy Microsoft.Windows.StartMenuExperienceHost_10.0.18362.449_neutral_neutral_cw5n1h2txyewy
                                       Microsoft.Windows.XGpuEjectDialog_10.0.18362.449_neutral_neutral_cw5n1h2txyewy Microsoft.XboxGameCallableUI_10.0.18362.449_neutral_neutral_cw5n1h2txyewy Windows.CBSPreview_10.0.18362.449_neutral_neutral_cw5n1h2txyewy windows.immersivecontrolpanel_<IP_ADDRESS>0_neutral_neutral_cw5n1h2txyewy
                                       Windows.PrintDialog_<IP_ADDRESS>_neutral_neutral_cw5n1h2txyewy . The following packages will be removed: NULL
10/20/2020 1:12:12 PM     216          App manifest validation warning: Declared namespace http://schemas.microsoft.com/developer/appx/2015/build is inapplicable, it will be ignored during manifest processing.
10/20/2020 1:12:12 PM     10002        Creating Resiliency File C:\ProgramData\Microsoft\Windows\AppRepository\b7bcf689-76ca-4023-87b5-164ce6fddd37_S-1-5-21-125588297-3509485221-1345772379-124099_2.rslc for Register Operation on Package Microsoft.WindowsTerminal_2020.921.2317.0_neutral_~_8wekyb3d8bbwe.
10/20/2020 1:12:12 PM     607          Deployment Register operation on package Microsoft.WindowsTerminal_2020.921.2317.0_neutral_~_8wekyb3d8bbwe has been de-queued and is running for user SID S-1-5-21-125588297-3509485221-1345772379-124099.
10/20/2020 1:12:12 PM     614          Bundle Uri C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_2020.921.2317.0_neutral_~_8wekyb3d8bbwe\AppxMetadata\AppxBundleManifest.xml contains packages: "CascadiaPackage_1.3.2651.0_x86.msix": Microsoft.WindowsTerminal_1.3.2651.0_x86__8wekyb3d8bbwe "CascadiaPackage_1.3.2651.0_ARM64.msix":
                                       Microsoft.WindowsTerminal_1.3.2651.0_arm64__8wekyb3d8bbwe "CascadiaPackage_1.3.2651.0_x64.msix": Microsoft.WindowsTerminal_1.3.2651.0_x64__8wekyb3d8bbwe.
10/20/2020 1:12:12 PM     854          Successfully added the following uri(s) to be processed:  C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_2020.921.2317.0_neutral_~_8wekyb3d8bbwe\AppxMetadata\AppxBundleManifest.xml C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.3.2651.0_x64__8wekyb3d8bbwe\AppxManifest.xml.
10/20/2020 1:12:12 PM     855          Finished resolving action lists. DeploymentRequest action lists: addPackageList: Microsoft.WindowsTerminal_1.3.2651.0_x64__8wekyb3d8bbwe Microsoft.WindowsTerminal_2020.921.2317.0_neutral_~_8wekyb3d8bbwe.
10/20/2020 1:12:12 PM     573          Setting Sync Enabled status, package family name Microsoft.WindowsTerminal_8wekyb3d8bbwe, enabled false.
10/20/2020 1:12:13 PM     10000        About to service package Microsoft.WindowsTerminal_1.3.2651.0_x64__8wekyb3d8bbwe. Setting the package state to disabled returned with 0x0.
10/20/2020 1:12:13 PM     8100         Starting validation and setting the Trust Label on package Microsoft.WindowsTerminal_1.3.2651.0_x64__8wekyb3d8bbwe with flags 0x9.
10/20/2020 1:12:13 PM     8106         Package Microsoft.WindowsTerminal_1.3.2651.0_x64__8wekyb3d8bbwe has Trust Label already. Flags: 0x9
10/20/2020 1:12:13 PM     8101         Finished validation and setting the Trust Label on package Microsoft.WindowsTerminal_1.3.2651.0_x64__8wekyb3d8bbwe with flags 0x9.
10/20/2020 1:12:13 PM     306          error 0x80070002: While processing the request, the system failed to register the windows.sharedFonts extension due to the following error: The system cannot find the file specified.
                                       .
10/20/2020 1:12:13 PM     316          error 0x80070002: Cannot register the request because the following error was encountered during the registration of the windows.sharedFonts extension: The system cannot find the file specified.
                                       .
10/20/2020 1:12:13 PM     5507         Microsoft.WindowsTerminal_1.3.2651.0_x64__8wekyb3d8bbwe : C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.3.2651.0_x64__8wekyb3d8bbwe\microsoft.system.package.metadata\S-1-5-21-125588297-3509485221-1345772379-124099-MergedResources-*.pri : No user-specific merged files found
10/20/2020 1:12:13 PM     5507         Microsoft.WindowsTerminal_1.3.2651.0_x64__8wekyb3d8bbwe : C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.3.2651.0_x64__8wekyb3d8bbwe\microsoft.system.package.metadata\Resources.????????.pri : No shared merged files found
10/20/2020 1:12:13 PM     5507         Microsoft.WindowsTerminal_1.3.2651.0_x64__8wekyb3d8bbwe : C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.3.2651.0_x64__8wekyb3d8bbwe\microsoft.system.package.metadata\S-1-5-21-125588297-3509485221-1345772379-124099-MergedResources-*.pri : No user-specific merged files found
10/20/2020 1:12:13 PM     5507         Microsoft.WindowsTerminal_1.3.2651.0_x64__8wekyb3d8bbwe : C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.3.2651.0_x64__8wekyb3d8bbwe\microsoft.system.package.metadata\Resources.????????.pri : No shared merged files found
10/20/2020 1:12:13 PM     300          error 0x80073CF6: Cannot register the Microsoft.WindowsTerminal_8wekyb3d8bbwe package due to the following error: Package could not be registered.
                                       .
10/20/2020 1:12:13 PM     605          The last successful state reached was SingletonRegisterAdd. Failure occurred before reaching the next state RegistrationChanged. hr: 0x80073CF6
10/20/2020 1:12:13 PM     330          error 0x80070002: While removing the request, the system failed to de-register the windows.MRT extension due to the following error: The system cannot find the file specified.
                                       .
10/20/2020 1:12:13 PM     7750         warning 0x80070005: The following error occurred while performing Indexed DB cleanup when removing the package: AppxManifest.xml (Access is denied.
                                       ).
10/20/2020 1:12:13 PM     330          error 0x80070005: While removing the request, the system failed to de-register the windows.indexedDB extension due to the following error: Access is denied.
                                       .
10/20/2020 1:12:13 PM     10001        Finished servicing package Microsoft.WindowsTerminal_1.3.2651.0_x64__8wekyb3d8bbwe. Setting the package state to enabled returned with 0x0.
10/20/2020 1:12:13 PM     10001        Finished servicing package Microsoft.WindowsTerminal_1.3.2651.0_x64__8wekyb3d8bbwe. Setting the package state to enabled returned with 0x0.
10/20/2020 1:12:14 PM     401          Deployment Register operation with target volume C: on Package Microsoft.WindowsTerminal_2020.921.2317.0_neutral_~_8wekyb3d8bbwe from:  (AppxBundleManifest.xml)  failed with error 0x80073D19. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.
10/20/2020 1:12:14 PM     404          AppX Deployment operation failed for package Microsoft.WindowsTerminal_2020.921.2317.0_neutral_~_8wekyb3d8bbwe with error 0x80073D19. The specific error text for this failure is: error 0x80070002: While processing the request, the system failed to register the windows.sharedFonts extension due to the following error: The
                                       system cannot find the file specified.
                                       .

This appears to be a repro-case for #3194, but happens without Chocolately or an elevated session.

@TBBle Running that from an elevated Powershell 5.1 prompt allowed me to run WT as admin. Thanks!

I wonder how many of these complaints could be solved with the use of /netonly semantics. It's perfectly possible to run a terminal window as userA and employ runas /netonly to ensure outgoing authenticated connections are made as AdminB. You'd have to create profile that specifically launches cmd or pwsh with runas.

@Wittionary How did you install Windows Terminal? I had assumed #3194 would affect everyone who installed it from the Windows Store or Chocolatey, but if you did one of those, then perhaps it's something system-specific that triggers it.

@TBBle I believe I initially installed it which Chocolate because the Windows Store was previously blocked at my place of employment. And according to choco list -li I've got "microsoft-windows-terminal 1.0.1811.0" although contradicts what "About" is telling me in Terminal (v1.3.2651.0). However, somewhere along the way, the Store was unblocked and I re-installed from there (to see if it would resolve the multiple admin prompts -> File not found issue).
All that to say - the initial install was via choco although the Store may be managing the updates to it now.

In our company we have a second account for doing admin things.
So I open a windows powershell as admin with the admin user.
Then I installed the downloaded msixbundle.
Now I am able to open the terminal als admin. If the application get updated for my admin account i don't know.

@TBBle Running that from an elevated Powershell 5.1 prompt allowed me to run WT as admin. Thanks!

If I do & "C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.2.2381.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe" then I still get an

Program 'WindowsTerminal.exe' failed to run: Access is deniedAt line:1 char:1

Both from PowerShell 7 and 5, while in Admin privileged sessions

Yes, this is all about security.
Consider the scenario where a domain admin's standard environment is compromised with some form of pernicious malware.
If/when they launch an app from their compromised desktop running as their domain admin account, the malware now has considerable opportunity to key-log/screen-scrape/intercept/divert/delete/block/corrupt/encrypt all kinds of data and systems as domain admin.
Ever wonder how Ransomware takes an entire company offline?
This is why many enterprises and most online services air-gap users from production systems, requiring users to login via RD to a strictly-managed, heavily-restricted hosted VM environment which is severely locked down, regularly re-paved, etc.
Such environments used to be the domain of the rich and famous, but this can now be built very cost effectively with commodity services and tools.
Is this more inconvenient than just runas /user:domainadmin1 "resetpasswords.bat /all"? Yes, but it's designed to be so.
One of the interesting artifacts of such changes is that scripts, automation, and systems get built to replace the user's need to run admin tasks ad-hoc, increasing reliability and repeatability, decreasing errors, and decreasing various other risks. This is where CI/CD came from, and where many enterprises are going.
YMMV.

Correct me if I am wrong, but keyloggers and such will still catch everything you type even if you're RDP'd into a VM from where you do domain admin work. The info will be caught before it is sent through RDP, or caught when providing credentials to initiate your RDP connection.

I've run into this issue as well when working with a laptop from a new corporation that I'm working with. The workarounds suggested haven't resolved my issues with Microsoft Terminal, but they did allow me to get winget working (see referenced issue).
One idea came to mind related to this: if modern apps are all about installation/management for the current, logged in user, and more applications that users may want to run as admin like winget, the Microsoft Terminal, etc. are being built as modern apps to be installed this way, maybe the solution is to reimagine the non-admin login user pairing with an admin elevation user account (cannot log on locally) scenario. The end goal is simply to prevent running day-to-day as admin, while allowing for some content to be run as admin but only as needed, and behind explicit authentication, right? In which case being able to enter elevation credentials (different from your normal password, independently linkable to MFA/modern auth) so that you could execute applications on your system as admin in a more secure manner without dealing with two accounts could solve this problem while supporting the logged on user requirement of modern apps that are installed from the store or sideloaded.

I've run into this issue as well when working with a laptop from a new corporation that I'm working with. The workarounds suggested haven't resolved my issues with Microsoft Terminal, but they did allow me to get winget working (see referenced issue).
One idea came to mind related to this: if modern apps are all about installation/management for the current, logged in user, and more applications that users may want to run as admin like winget, the Microsoft Terminal, etc. are being built as modern apps to be installed this way, maybe the solution is to reimagine the non-admin login user pairing with an admin elevation user account (cannot log on locally) scenario. The end goal is simply to prevent running day-to-day as admin, while allowing for some content to be run as admin but only as needed, and behind explicit authentication, right? In which case being able to enter elevation credentials (different from your normal password, independently linkable to MFA/modern auth) so that you could execute applications on your system as admin in a more secure manner without dealing with two accounts could solve this problem while supporting the logged on user requirement of modern apps that are installed from the store or sideloaded.

Regarding this workaround mentioned above, I was able to get winget registered using that workaround, but as the poster of that linked comment indicated, I receive the same error he did, where the app could not be registered because the Cascadia fonts extension could not be found.
Is there some way to manually register/configure Cascadia fonts for the elevated admin account that cannot log on locally independently of the sideloading workaround for Microsoft Terminal? If the extension is the blocker here, I'm now looking for a workaround to unblock the extension so that I can then just register the Terminal app for my elevated admin account manually.

Regarding this workaround mentioned above, I was able to get winget registered using that workaround, but as the poster of that linked comment indicated, I receive the same error he did, where the app could not be registered because the Cascadia fonts extension could not be found.
Is there some way to manually register/configure Cascadia fonts for the elevated admin account that cannot log on locally independently of the sideloading workaround for Microsoft Terminal? If the extension is the blocker here, I'm now looking for a workaround to unblock the extension so that I can then just register the Terminal app for my elevated admin account manually.

We do understand the scenario well. But as discussed above:

The UWP app model does not (currently) support running modern apps under the identity other than the currently logged-in user

@bitcrazed, what you're saying is interesting but I have evidence to the contrary.
On most of my machines I have at least two user accounts, Me and MeAdmin, the first one being a "standard use" (i.e. member of BUILTIN\Users but not of BUILTIN\Administrators, etc.).
I do most of my work from the standard user, and only specific actions (e.g. upgrade Visual Studio, reconfigure network) through the admin. Usually I do it by "elevating" the required programs (e.g. vs_installer.exe), that is "running them as admin" and only sometimes I log on into another Terminal Services session as the admin user.
When I say "elevate" here I mean what used to be called when UAC just came out "OTS elevation" (Over-The-Shoulder, supposedly when the admin, who's another person, comes and enters the password over my shoulder) rather then "AAM" (Admin Approval Mode; just clicking Yes without entering a password).
Sometimes I get the OTS prompt because the application manifest requires elevation (as does the VS installer prior to 16.9), and sometimes I right click the program and choose Run as administrator (to run cmd.exe or pwsh.exe), but let me be clear here:
In all cases the currently logged on user (to whom the Terminal Services session belongs) is not an administrator. The programs are being run as a different user.
And while logged in as Me, the standard user, I am able to run Windows Terminal as a completely different user, MeAdmin, as long as the following conditions are met:

Windows Terminal is installed for both users, and is of the same version. (If I update it for Me but not for MeAdmin it sometimes fails.)

I'm running Windows Terminal as the other user elevated, through one of the following methods:

Holding Ctrl+Shift and clicking on the Windows Terminal icons pinned to my taskbar.
Right-clicking the Windows Terminal icon pinned to my taskbar, right-clicking again on Windows terminal in the jumplist, and selecting Run as administrator.
Finding Windows Terminal or wt.exe in the Start menu, holding Ctrl+Shift and hitting Enter.
Locating wt.exe in Windows Explorer, either at C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.6.10571.0_x64__8wekyb3d8bbwe\wt.exe or at C:\Users\Me\AppData\Local\Microsoft\WindowsApps\wt.exe or at C:\Users\Me\AppData\Local\Microsoft\WindowsApps\Microsoft.WindowsTerminal_8wekyb3d8bbwe\wt.exe, right-clicking it and selecting Run as administrator.

but not

Running wt.exe from an elevated (running as the other user, MeAdmin) cmd.exe/pwsh.exe/etc.
Locating wt.exe as in item (iv) above, right-clicking while holding Shift, and selecting Run as different user.

TLDR: Contrary to what you wrote, it is possible to run UWP "modern apps under the identity other than the currently logged-in user" AT LEAST WHEN all the following is true: (a) The app is a Centennial/Desktop Bridge/fulltrust/whatever-you-call-it-today app; (b) It is installed for both users; (c) the other user is an administrator, and (d) It is being run as the other user "elevated", with the full token rather than with the UAC-filtered token.
Are (c) and (d) really requirements? I don't know. Maybe there are other ways to run as a different user, but your sweeping declaration is wrong.
Since it is OBVIOUSLY possible to run Windows Terminal as a different user (come one, reproducing what I just wrote will take you less time that it took me to write it...), it's worth checking inside your employer's other departments whether this can be done without elevation, and if so how.
I understand this is somewhat harder than announcing wrong sweeping declarations, but I must ask you try nonetheless.

Since it is OBVIOUSLY possible to run Windows Terminal as a different user (come one, reproducing what I just wrote will take you less time that it took me to write it...), it's worth checking inside your employer's other departments whether this can be done without elevation, and if so how.
I understand this is somewhat harder than announcing wrong sweeping declarations, but I must ask you try nonetheless.

I am certain that there would have been ways to frame this that were less incendiary, but you did not choose to use them.
It looks like the discussion on this thread has run its course. Anybody who has something constructive to add is free to e-mail me their comments.


[CI/CD Failure] Test_CLI_InfraCreateAndDeleteFuncApp fails to find resource group

Perhaps an eventual consistency issue in our query against the graph API?
Error: creating project: getting default resource groups for environment: azdtest-2bd8601: resource not found: azure graph query returned 0 results
cli_test.go:429:
Error Trace:	cli_test.go:429
Error:      	Received unexpected error:
creating project: getting default resource groups for environment: azdtest-2bd8601: resource not found: azure graph query returned 0 results
Test:       	Test_CLI_InfraCreateAndDeleteFuncApp
testing.go:1090: TempDir RemoveAll cleanup: remove C:\Users\CLOUDT~1\AppData\Local\Temp\Test_CLI_InfraCreateAndDeleteFuncApp4115292528\001: The process cannot access the file because it is being used by another process.
ref: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=1772829&view=logs&j=a24bcfce-df5c-5f85-8999-2d93251fa3c8&t=1a043c55-febf-5faa-fef5-5a469dd35dad

Fixing this - https://github.com/Azure/azure-dev/issues/540, could potentially this test failure.

Closing out since #540 is fixed


Change SessionHolder to a weak ref

Problem
Rework SessionHandle/SessionHolder with the idea by @mrjerryjohns
Change overview
SessionHolder do not change ref count any more
Since SessionHolder is a weak ref now, In PairingSession, we have to use a handle to grab both unauthenticated session and secure session.
TODO:

[ ] Rename SessionHolder to SessionWeakPtr
[ ] UnauthenticatedSession is not longer LRU, it can be released immediately once its refcount becomes 0

Testing
Passed unit-tests

https://github.com/project-chip/connectedhomeip/issues/18431 This issue raised by Tennessee makes me feel that is may not  feasible to map SessionHandle/SessionHolder to shared_ptr/weak_ptr.
We almost gain nothing from this PR.

So, in conversations with @kghost, there is an issue with UnauthenticatedSession that creates a wrinkle here.
Currently, the SDK uses SessionHolder within the ExchangeContext as a form of a strong reference to keep the underlying UnauthenticatedSession alive. This EC is then kept alive by the ReliableMessageMgr::RetransTableEntry while    there are messages with pending ACKs. Consequently, even if the PairingSession eventually completes, the EC being kept alive in the retrans table (and consequently, the session) means that the session is kept resident till the final ACK is received.
In the new weak-ref model being espoused here, the EC would now only hold a weak-reference to the session. This goes with the general philosophy that EC's should get terminated when sessions get terminated (and to do that, having the EC hold a weak-ref would seem most natural). However in this scheme, it's now possible for the UnauthenticatedSession to possibly get evicted by LRU logic today when the PairingSession is done its work. This would evict the final message from the retrans table, preventing a recipient from properly receiving that message.
Possible solutions include:

Keep the existing mixed strong/weak ref model for SessionHolder that acts differently depending on session type.
Alter the LRU to incorporate the # of weak-refs currently present on an UnauthenticatedSession and select ones that have less references.
Possible proposal from @kghost to make more explicit the strong vs. weak modality in secure/insecure settings.


[NEW FEATURE] - Share + Follow on Lens Protocol

Briefly describe the feature.
Add a share to Lens feature
Which problem is this feature trying to solve?
Allowing people to share in web3 social their activity on Snapshot as well as following other users via their Lens profiles.
What is the expected solution?
Here is more details with integration guidelines
https://docs.lens.xyz/docs/integrating-lens#share-to-lens
How do you currently handle this problem?
No response
Anything else you'd like to mention?
Video made by Nader
https://www.youtube.com/watch?v=lUJs63xILR8

@fabriguespe You can already share proposals and that you voted on a proposal to Lenster. I'm not sure I understand, can you elaborate on what else you would like to see.


hooks: support concurrent tests run

The Hooks.AddConnectivityTests method signature changed to support concurrent test run.

/test

/test


Error on getting String Table

I'm trying to analysis a MachO file like above. But when I want to get the info of String Table , I got an error said Image does not have a __LINKEDIT segment.. Aboviously, there is a __LINKEDIT segment on this file.

Can I get the Mach-O file from somewhere?

ErrorSubProject.zip
This is the file.

Mach-O Explorer does not encounter any trouble loading the string table for that file.
I also wrote a small test playground:
    let memoryMap = try! MKMemoryMap(contentsOfFile: URL(fileURLWithPath: "/Users/Shared/ErrorSubProject"))
    let macho = try! MKMachOImage(name: "ErrorSubProject", flags: .init(rawValue: 0), atAddress: mk_vm_address_t(0), inMapping: memoryMap)

    if let stringTable = macho.stringTable.value {
        print("Found string table.  It contains \(stringTable.strings.count) strings")
    } else {
        print("Error retrieving string table: \(macho.stringTable.error)")
    }

It prints:
Found string table.  It contains 50 strings

Do you have the latest Mach-O Kit code?

After comparting to my code, I found that I set flags to 1. Maybe the code resulted to an error. I have changed it to 0, and It works. Thank you .


[ALS-7197] BDC Auth access: User able to access data

The clinical query template has been updated to include the parentAccessField in the fields section. The parentAccessionField value is now set to \\\\_Parent Study Accession with Subject ID\\\\.

The TOPMED+PARENT access rule, associated with clinical privileges, has been fixed. The rule previously had misconfigured subAccessRules and gates:

The TOPMED_CONSENT gate consent rule was incorrectly set to IS_EMPTY instead of IS_NOT_EMPTY, causing queries to be erroneously rejected, even when the "categoryFilters": "\\_topmed_consents\\" section was correctly included in the query.
A missing subAccessRule named ALLOW_TOPMED_CONSENT was added. This rule ensures that all required consents are present in the \\_topmed_consents\\ section of the query template.
A new method, configureClinicalAccessRuleWithPhenoSubRule, was added to AccessRuleService. This method contains the configuration for this access rule.

Previously, there were many unassociated access rules. All access rules are now correctly linked to other rules and privileges. In Spring Boot, any entity property defining a parent-child relationship must use the cascade = CascadeType.ALL option in the @ManyToOne or @ManyToMany annotations to ensure updates to the parent or child entities on save.

A new role, MANUAL_ROLE_NAMED_DATASET, has been assigned to all BDC users. This role grants users access to the /named/dataset/, /named/dataset/{uuid}, and /query/{uuid}/metadata endpoints. The role, along with its privilege and rule definition, is now part of the BDC infrastructure.

The createPhoneTypeSubRule method now correctly removes double-escaped characters. For example, a concept path formatted as \\\\phs000xxx\\\\ is now converted to \\phs000xxx\\.

The upsertConsentGate method now properly escapes backslashes in rules.

The extractAndCheckRule method now correctly evaluates access rules that need to check map nodes. When using JsonPath to retrieve a node value, it is naturally converted into a list. This list is now converted into a Map for key checking.

When evaluating subAccessRules for a given rule, the rules must first be merged before evaluation. Since sub access rules may overlap with other rules, the method preProcessARBySortedKeys is used to handle the merging process.

The pic-sure-auth-micro-app was originally designed with an ephemeral database. With each deployment, all roles, privileges, and access rules were re-created. This provided an opportunity to add new allowed query types and standard access rules. Now that our database is persisted, there was no mechanism to add new allowed query types or standard access rules. A new method has been added to PrivilegeService named updateAllPrivilegesOnStartup.

This method updates all privileges to include all current standard access rules. Any standard access rules that need to be removed from a privilege must be handled via a migration script.
The method also updates all allowed query types. All existing allowed query types are removed from each access_rule that currently has allowed query types as subAccessRules. Once these are removed, all currently defined allowed query types are added to the access_rule, enabling the addition or removal of allowed query types without needing migration scripts.

I don't think we have any external documentation for this functionality, which is pretty complicated. I think we should open a tech debt ticket to create some diagrams on how this all works.

@ramari16 A new technical debt ticket has been created.


Merge develop branch

What does this PR do?
A brief description of the change being made with this pull request.
Motivation
What inspired you to submit this pull request?
Additional Notes
Anything else we should know when reviewing?
Review checklist (to be filled by reviewers)

[ ] Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
[ ] Make sure you discussed the feature or bugfix with the maintaining team in an Issue
[ ] Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

Codecov Report
Attention: Patch coverage is 93.63057% with 10 lines in your changes missing coverage. Please review.

Project coverage is 67.42%. Comparing base (8805d24) to head (3912a85).

Additional details and impacted files
@@                   Coverage Diff                    @@
##           feature/otel-support    #2076      +/-   ##
========================================================
+ Coverage                 67.40%   67.42%   +0.02%
========================================================
  Files                       736      737       +1
  Lines                     27051    27061      +10
  Branches                   4576     4569       -7
========================================================
+ Hits                      18233    18245      +12
- Misses                     7588     7596       +8
+ Partials                   1230     1220      -10

Files
Coverage Δ

...ore/src/main/kotlin/com/datadog/android/Datadog.kt
76.25% <ø> (ø)

...src/main/kotlin/com/datadog/android/api/SdkCore.kt
25.00% <ø> (ø)

...in/com/datadog/android/api/feature/FeatureScope.kt
0.00% <ø> (ø)

...n/com/datadog/android/core/internal/CoreFeature.kt
87.39% <ø> (ø)

...n/com/datadog/android/core/internal/DatadogCore.kt
82.06% <100.00%> (+0.08%)
:arrow_up:

...in/com/datadog/android/core/internal/SdkFeature.kt
89.10% <ø> (ø)

...l/net/info/BroadcastReceiverNetworkInfoProvider.kt
93.94% <ø> (ø)

...droid/core/internal/persistence/AbstractStorage.kt
100.00% <ø> (ø)

...d/core/internal/persistence/ConsentAwareStorage.kt
98.72% <100.00%> (+0.02%)
:arrow_up:

...ence/file/advanced/ConsentAwareFileOrchestrator.kt
96.67% <ø> (ø)

... and 43 more

... and 23 files with indirect coverage changes


custom text color.

took way to long. works though although its very tedious in my opinion to change the color you want. can almost do all colors but i think theres a error with the calculations it does to convert RGB to ncurse values. ex: 255 should convert to 996 but i get 1000.
![Screenshot from 2024-01-21 02-36-51]
(https://github.com/CobbCoding1/Cano/assets/49081161/1ffd9904-3b17-424e-9699-f4ee09560862)

Thanks a ton!


Add proxy setting

Include a proxy setting to send data over datacenters

Well, I guess, I should remove the binary files from Git somehow 😆 Thanks, I will test this and try to release a new version soon :)

Well... maybe configure .gitignore file will exlude the binaries .... but I have problems with it sometimes too....
Let me know if I can help with anything else...

The new package will be available in the next hour I would say. It's uploaded to nuget.org now and will be indexed soon :)


Docs - Misc fixes that relate to the new design

DevExpress/testcafe-gh-page-assets#3

Minor things, so just take a quick look
\cc @inikulin

lgtm


I want to change the title of the rendered plot.

Question:
I want to change the title of the rendered plot.
So I made a simple testing progream. (Please refer to the below.)
The title doesn't change despite clicking the button.
I've already tried using Application.Current.Dispatcher...
How can I solve it?
I'd appreciate it if you could help me.
ScottPlot Version:
ScottPlot.WPF
Code Sample:

public partial class MainWindow : Window
{
    public MainWindow()
    {
        InitializeComponent();
        plot.Plot.Title("Before Change");
    }

    private void Button_Click(object sender, RoutedEventArgs e)
    {
        plot.Plot.Title("After Change");
        plot.Refresh();
    }
}

I found out that the title changes when the Window size changes!

Hi @slc-jangyongsoo,
I checked and it works as it should. Make sure that the click event actually happens, for example like this:
    private void Button_Click(object sender, RoutedEventArgs e)
    {
        Button.Content = "Clicked";
        plot.Plot.Title("After Change");
        plot.Refresh();
    }


Sometimes does not show

I don't know why this is happening...In some parts of my app, the loading modal is correctly being displayed. However, in a specific part of my app, it is not displaying at all. I'm not sure how SVProgressHUD works under the hood, so I'm not sure how to debug this.
I'm using this exact same code in multiple places in my app:
Notifier.show
Notifier.loading
make_an_api_request do |response|
  # response returned, stop displaying loading icon
  Notifier.dismiss
end

Hey @andrewhavens,
I believe that SVProgressHUD uses its own UIWindow, layered on top of your own for notifications. It would be strange for the notifications to be showing up in parts of your app and not others, unless you're layering new UIWindows somewhere.
Also, you shouldn't have to call both .loading and .show. Motion::Blitz.loading is a convenience method which calls .show with a message of "Loading...".
Does the HUD show up if you have remove the call to .dismiss? Wondering if the block is executed so quickly after .show or .loading is called, that it appears not to show up.

I don't remember how I solved this. Probably one of your recommendations. I don't have this issue anymore so I'm going to close this issue.


Thank you so much for this graph component. I have a quick question... Can we have directed arrows between the nodes?

Hello @rxd65410 thanks for your feedback, directed graphs are already a work in progress, I'm working on it. You will be able to specify whether or not your graph is directed and automatically arrows will appear on the links to point the relation direction.


Not compatible with AppCode 2022.3

Hi, I would like to try this plugin with AppCode 2022.3
It's not totally clear that this is a plugin for Apple's swift-format tool https://github.com/apple/swift-format
If it is, I am wondering if you could update to latest AppCode and republish?

With JetBrains discontinuing AppCode, I don't really want to waste time on this plugin anymore.

:(


BIG-3642 - Be robust against malformed crawl delays

Some robots.txts are malformed, and we should be robust against that. In the case where there's a malformed crawl delay, we ignore that directive.
@lindseyreno @tammybailey

LGTM


VSCode's ESLint extension server crash - Cannot redefine plugin "test"

Describe the bug
VSCode's ESLint extension server crashed after the first on save fix.
The issue seems to be/happen when @nuxt/eslint is combined with @antfu/eslint-config.
Idk if this is the right place to create the issue, but this repo seems like a good choice because the current repo is using the mentioned setup, with the issue at present.
The issue happens to this template repo as-is,
The issue happens to any Nuxt instance: setting up a fresh Nuxt instance with nuxi init, installing @nuxt/eslint + @antfu's config following the tutorial at eslint.nuxt.com, the same issue can be observed.
Reproduce:
Simply clone this repo, install deps, add some blank linebreaks to a file then save, after the first auto-correction of the blank linebreaks being removed, ESLint extension's server will crash and no longer auto-corrects on save.
Image:

Some additional contexts:
Running ESLint from CLI seems to work normally (using both @nuxt/eslint and @antfu).
ESLint works in other repos where only @antfu's config is used.
ESLint works for Nuxt when using only @nuxt/eslint.
Because ESLint from CLI works normally, I tried replacing VSCode's bundled NodeJS (v18), which is used by VSCode to run the ESLint server to latest LTS (v20) which I'm using for CLI, the same issue is observed, so not related to NodeJS version differences.
Reproduction
https://stackblitz.com/github/antfu/vitesse-nuxt3
System Info
System:
    OS: Linux 5.15 Alpine Linux
    CPU: (16) x64 AMD Ryzen 7 5700U with Radeon Graphics
    Memory: 3.33 GB / 6.70 GB
    Container: Yes
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.12.0 - ~/.nvm/versions/node/v20.12.0/bin/node
    Yarn: 1.22.22 - ~/.local/share/pnpm/yarn
    npm: 10.5.0 - ~/.nvm/versions/node/v20.12.0/bin/npm
    pnpm: 8.15.5 - ~/.local/share/pnpm/pnpm

Used Package Manager
pnpm
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guide.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
[X] The provided reproduction is a minimal reproducible of the bug.

FYI: using @antfu as the export base and @nuxt as a userConfig works fine and doesn't crash the ESLint extension server.
(Stylistic silencing disabled).

I don't know how much behavior differences there are though.

This new config will cause eslint to fail under windows os:
Oops! Something went wrong! :(

ESLint: 8.57.0

Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'd:'
    at throwIfUnsupportedURLScheme (node:internal/modules/esm/load:239:11)
    at defaultLoad (node:internal/modules/esm/load:130:3)
    at ModuleLoader.load (node:internal/modules/esm/loader:403:13)
    at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:285:56)
    at new ModuleJob (node:internal/modules/esm/module_job:67:26)
    at #createModuleJob (node:internal/modules/esm/loader:297:17)
    at ModuleLoader.getJobFromResolveResult (node:internal/modules/esm/loader:254:34)
    at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:235:17)
    at async ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:87:21)

You can reproduce this by pulling the code and executing the lint command in windows.
It seems that there is a compatibility issue with eslint.config.mjs in the .nuxt directory:
import { pipe } from<EMAIL_ADDRESS>import typegen from<EMAIL_ADDRESS>import { createConfigForNuxt, defineFlatConfigs } from 'D:/dir/work/project/node_modules/.pnpm/@nuxt+eslint-config@0.3.0-beta.6_eslint@8.57.0_typescript<EMAIL_ADDRESS>

Is this still happening?


Fix/polishing and spaceid on space returns

Codecov Report

Merging #72 into master will decrease coverage by 0.73%.
The diff coverage is 51.85%.

@@             Coverage Diff              @@
##             master      #72      +/-   ##
============================================
- Coverage     83.67%   82.93%   -0.74%
- Complexity      277      279       +2
============================================
  Files            44       44
  Lines          1078     1090      +12
  Branches         64       64
============================================
+ Hits            902      904       +2
- Misses          144      154      +10
  Partials         32       32

Impacted Files
Coverage Δ
Complexity Δ

.../java/com/contentful/java/cma/model/CMALocale.java
27.27% <0%> (ø)
5 <0> (ø)
:arrow_down:

.../java/com/contentful/java/cma/model/CMAUpload.java
33.33% <0%> (-66.67%)
1 <0> (ø)

...n/java/com/contentful/java/cma/model/CMAEntry.java
77.41% <100%> (ø)
11 <3> (ø)
:arrow_down:

.../com/contentful/java/cma/model/CMAContentType.java
100% <100%> (ø)
16 <3> (ø)
:arrow_down:

...n/java/com/contentful/java/cma/model/CMAAsset.java
77.08% <100%> (ø)
7 <3> (ø)
:arrow_down:

...java/com/contentful/java/cma/model/CMAWebhook.java
92.59% <100%> (ø)
15 <3> (ø)
:arrow_down:

...n/java/com/contentful/java/cma/model/CMASpace.java
72.72% <25%> (-27.28%)
5 <1> (+1)

...in/java/com/contentful/java/cma/model/CMALink.java
66.66% <25%> (-33.34%)
3 <1> (+1)

Continue to review full report at Codecov.

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

👍


Fix parsing hunk header

Sometimes instead of start,count, the hunk only contains start: https://www.gnu.org/savannah-checkouts/gnu/diffutils/manual/html_node/Detailed-Unified.html#Detailed Unified

Looks good but can you give an example of something that was not parsed before compared to what can be parsed now with your change?
Thanks! :100:

Sure, any single line file whose line changes should now work:
$ echo "// Test" > a.cc
$ echo "// Change" > b.cc
$ diff a.cc b.cc --unified
--- a.cc        2021-12-14 11:55:26.211058423 -0800
+++ b.cc        2021-12-14 11:55:30.359041426 -0800
@@ -1 +1 @@
-// Test
+// Change


functorch manylinux builds

@malfet -- this is already merged, but I would appreciate a read through b/c I'm not sure what I'm doing :)


Simplify reqs

This should wipe out all the dust in requirements/.

This is great, merged, thanks @rht!  I'm going to add a few commits on top removing some unnecessary dependencies as well.


chore(Topology/PseudoMetric): split file

Let me cross-reference #13977 which tries the same. (I'll be happy to review either, but submitting my PhD thesis takes priority -> I may take about a week to get to this.)

@adomani, a clearly inaccurate declaration diff here!

I think that the output that you are seeing comes from this:
$ git diff --unified=0 master...HEAD | grep "structure. -/"
-structure. -/
-structure. -/
+structure. -/
+structure. -/

so, not ideal, but also not worrisome!

I confirm: if you change
  awk -v regex="^[+-]${begs}" 'BEGIN{ paired=0; added=0; removed=0 }

to
  awk -v regex="^[+-]${begs} " 'BEGIN{ paired=0; added=0; removed=0 }

in no_lost_declarations, then here it reports no change.

@adomani please tell me when you open a PR to fix the regex! 🙏


Design a standard library

With the introduction of a module system, we are now ready to think about providing a standard library so every Futhark program does not have to reinvent the same old primitives.  I have added code to the compiler such that the Futhark files in this directory are automatically made available to every program being compiled.  For examples, import futlib.sandbox would cause the inclusion of this file.  This is done by the Futhark compiler embedding the file contents at compile time.  Thus, the user need not worry about include paths or the like.
Our file inclusion mechanism will need some work.  Currently, include works more or less exactly like C header files, which means the order of inclusion matters, as type checking is done post inclusion.  This will be fixed.
A deeper problem is what facilities the standard library should even support.  What are the base abstractions?  Which signatures should be defined?  For example, I want to define a signature for comparable types:
module type ORD {
type t
val eq: t -> t -> bool
val lt: t -> t -> bool
val gt: t -> t -> bool
}

This allows me to define a functor:
module Ordering(T: ORD) {
fun max (x: T.t) (y: T.t): T.t =
  if T.gt x y then x else y

fun min (x: T.t) (y: T.t): T.t =
  if T.gt x y then y else x

fun max_elem (x: T.t) (xs: [n]T.t): T.t =
  reduce max x xs

fun min_elem (x: T.t) (xs: [n]T.t): T.t =
  reduce min x xs
}

Note that max_elem and min_elem require me to pass in a neutral element.  This could also be part of the signature (turning ORD into the signature for lattices), I guess, but is it really natural to define negative and positive infinity as the neutral elements for max_elem and min_elem on floating point numbers?
There are a lot of design questions to answer.  Fortunately, we can just try out a bunch of things and see what works well.  Maybe some student projects are lurking somewhere in this space.

@nqpz volunteered to help write a Futhark coding style document so we can nib the mess in the bud.

So, what about module names?  Do we keep them capitalised as in SML or Haskell?  Or lowercase as in Rust and other nice languages?  One advantage to lowercase names is that you can write modules whose name are the same as some type.  This lets us write things like f32.sqrt instead of F32.sqrt.
We don't need to worry about name clashes, because terms, modules, and module types are all in their own namespaces anyway.

A possible design would be to allow small-capitalised modules names for
types and capitalised modules names for non-types? A possibility is also to
have a "type t" in each module that has a natural inhabitant. Let's
discuss...

Only for built-in types, or also for user-defined types (e.g. complex
numbers)?  And when is a module a "type module"?
--
\  Troels
/\ Henriksen


APIsPerPage in api-manager.xml does not work as expected

Description:
APIsPerPage in api-manager.xml does not work as expected. It does not reflect in store and publisher API listing page
Suggested Labels:
2.2.0
Affected Product Version:
2.2.0

Fixed with https://github.com/wso2/carbon-apimgt/pull/5328/files