Scan Error

I have installed bluetti_mqtt in ubuntu virtual machine on a Intel NUC in vmware ESXi. After succesfull install the command --scan get an error:
`
~/.local/bin$ ./bluetti-mqtt --scan
Scanning....
Traceback (most recent call last):
File "/home/rico/.local/bin/./bluetti-mqtt", line 8, in
sys.exit(main())
File "/home/rico/.local/lib/python3.10/site-packages/bluetti_mqtt/server_cli.py", line 123, in main
cli.execute()
File "/home/rico/.local/lib/python3.10/site-packages/bluetti_mqtt/server_cli.py", line 62, in execute
asyncio.run(scan_devices())
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "/home/rico/.local/lib/python3.10/site-packages/bluetti_mqtt/bluetooth/init.py", line 17, in scan_devices
devices = await BleakScanner.discover()
File "/usr/local/lib/python3.10/dist-packages/bleak/backends/scanner.py", line 123, in discover
async with cls(**kwargs) as scanner:
File "/usr/local/lib/python3.10/dist-packages/bleak/backends/scanner.py", line 103, in aenter
await self.start()
File "/usr/local/lib/python3.10/dist-packages/bleak/backends/bluezdbus/scanner.py", line 133, in start
manager = await get_global_bluez_manager()
File "/usr/local/lib/python3.10/dist-packages/bleak/backends/bluezdbus/manager.py", line 856, in get_global_bluez_manager
await instance.async_init()
File "/usr/local/lib/python3.10/dist-packages/bleak/backends/bluezdbus/manager.py", line 231, in async_init
assert_reply(reply)
File "/usr/local/lib/python3.10/dist-packages/bleak/backends/bluezdbus/utils.py", line 22, in assert_reply
raise BleakDBusError(reply.error_name, reply.body)
bleak.exc.BleakDBusError: [org.freedesktop.DBus.Error.ServiceUnknown] The name org.bluez was not provided by any .service files
`
Is there any solution?

For bluetti-mqtt to work, you must have a working BlueZ install. It looks like that might not be installed, and you may also need to make sure that your VM has access to whatever Bluetooth hardware exists in your NUC once you've done that.


externalLinkTarget set to _blank

Attach (recommended) or Link to PDF file here:
https://www.antennahouse.com/XSLsample/pdf/sample-link_1.pdf
Configuration:

Web browser and its version: Chrome Version 72.0.3626.109 (Official Build) (64-bit)
Operating system and its version: Windows 10 Pro, version 1803
PDF.js version: 2.0.428
Is a browser extension: No

Steps to reproduce the problem:

Set externalLinkTarget in PDFLinkService to value 2.
Open browser console.
Open pdf.
Check the console, error messages are shown in the console for each external link.. (check image)

What is the expected behavior? (add screenshot)
The expected behavior is for no error messages in the console.
What went wrong? (add screenshot)
https://user-images.githubusercontent.com/31800323/53594066-cf354580-3b78-11e9-88ac-c9230bafc5b7.png
Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):

PDF.js version: 2.0.428

Please note that that's not an official release, you can find the latest releases at https://github.com/mozilla/pdf.js/releases

Set externalLinkTarget in PDFLinkService to value 2.

Open browser console.

Open pdf.

Check the console, error messages are shown in the console for each external link.. (check image)

Sorry, but I really cannot understand how externalLinkTarget would ever affect the method referenced in your screen-shot; please see https://github.com/mozilla/pdf.js/blob/21d70b19c23c688a10d870e49dc9b58fff691610/web/pdf_link_service.js#L339-L349

Attach (recommended) or Link to PDF file here:
https://www.antennahouse.com/XSLsample/pdf/sample-link_1.pdf

Finally, there's something fishy here since the errors in your screen-shot refers to objects 30 0 obj and 39 0 obj despite neither of them actually existing in that PDF file.

The PDF file renders just fine for me in Firefox and as indicated above the description doesn't seem to match what is going on in the PDF file. Closing until more information is provided.

Hi all,
I am facing a similar issue on my end. The issue appears to be unrelated to the externalLinkTarget parameter, as I do not modify it. Here are my specs:
For the sake of consistency, I'm using the same PDF as the OP:
https://www.antennahouse.com/XSLsample/pdf/sample-link_1.pdf
Configuration:

Web browser and its version: Chrome Version 72.0.3626.109 (Official Build) (64-bit)
Operating system and its version: Windows 10 Pro, version 1803
PDF.js version: 2.0.943
Is a browser extension: No

Steps to reproduce the problem:

initialize a PDFLinkService.
I am doing this like so:

    const PDFLinkService = new PDFJSViewer.PDFLinkService({});
    const viewerContainer = ReactDOM.findDOMNode(this);
    this.pdfViewer = new PDFJSViewer.PDFViewer({
      container: viewerContainer,
      eventBus: this.eventBus,
      linkService: PDFLinkService,
    });

Open browser console.
Open pdf.
Check the console, error messages are shown in the console for each external link.. (check image)

Adressing @Snuffleupagus' last point:

Finally, there's something fishy here since the errors in your screen-shot refers to objects 30 0 obj and 39 0 obj despite neither of them actually existing in that PDF file.

These elements are created by pdf.js itself in line 1844 of  /pdfjs-dist/web/pdf_viewer:

Later in line 1845 it tries to append to this._pagesRefCache which is null by that point:

Bear in mind that this._pagesRefCache is initialized as null in line of the same file:

Thanks in advance for any help you can provide.

Finally, there's something fishy here since the errors in your screen-shot refers to objects 30 0 obj and 39 0 obj despite neither of them actually existing in that PDF file.

These elements are created by pdf.js itself in line 1844 of /pdfjs-dist/web/pdf_viewer:

No they're not, since that method is called from https://github.com/mozilla/pdf.js/blob/34022d2fd19caa98a56bc60c4e8ebde9eb7ea196/web/base_viewer.js#L458 using the /Ref of the page as provided by the API in https://github.com/mozilla/pdf.js/blob/34022d2fd19caa98a56bc60c4e8ebde9eb7ea196/src/display/api.js#L899-L905
Hence my comment still stands, since the original screen-shot didn't actually match the PDF file. (The one in https://github.com/mozilla/pdf.js/issues/10600#issuecomment-468690401 makes slightly more sense, since those pages actually exist.)

initialize a PDFLinkService.
I am doing this like so:
[...]

Please make sure to follow e.g. the simpleviewer example, see https://github.com/mozilla/pdf.js/blob/master/examples/components/simpleviewer.js

Later in line 1845 it tries to append to this._pagesRefCache which is null by that point:

That shouldn't happen, provided that you're actually initializing the PDFLinkService instance correctly; note in particular https://github.com/mozilla/pdf.js/blob/34022d2fd19caa98a56bc60c4e8ebde9eb7ea196/examples/components/simpleviewer.js#L73
The conclusion is thus that the problem is caused by a simple oversight in a custom implemention; for future reference please see https://github.com/mozilla/pdf.js/blob/master/.github/CONTRIBUTING.md (emphasis mine):

If you are developing a custom solution, first check the examples at https://github.com/mozilla/pdf.js#learning and search existing issues. If this does not help, please prepare a short well-documented example that demonstrates the problem and make it accessible online on your website, JS Bin, GitHub, etc. before opening a new issue or contacting us on the IRC channel -- keep in mind that just code snippets won't help us troubleshoot the problem.


Port Forward / Access for Jupyter Notebook

Background
We need to allow access to the container/host for the ports to access Jupyter Notebook
Double check the port availability

Port 8080 should work as a default


[pod_push] push to private specs repository in any operating system (e.g. Linux)

Feature Request
Motivation Behind Feature
Deploying a new CocoPod consist of 3 steps:

Commit new sources
Update & commit .podspec file
Push .podspec to the Private / Master CocoPods repository.

Steps 1 and 2 are possible to run in any environment (macOS, Linux, Windows). However, step 3 is available only on macOS as it triggers the CocoaPods command:
pod repo push RepoName SpecName.podspec
... which does validations before pushing spec to a repository.
Having a Fastlane action to deploy a .podspec to a repository would allow deploying a new CocoaPod version in any hosted environment (i.e. on Linux).
Feature Description

Create a Fastlane command for pushing a CocoaPod that works on any OS, the syntax could be as follows:

    pod_push_crossplatform(path: "name.podspec",
      repo: "MyPrivateSpecs",
      sources: ["my-pospec-source"])

Alternatively, use a parameter for pod_push command that would fall back to the built-in script for pushing a Pod if CocoaPods is not available:

    pod_push(path: "name.podspec",
      use_builtin_script: true, # Uses built-in script to deploy a pod instead of the one provisioned with CocoaPods
      repo: "MyPrivateSpecs",
      allow_warnings: true,
      verbose: false,
      use_libraries: true,
      sources: ["some-private-spec.git"])

Alternatives or Workarounds

The only alternative/workaround now is to use pod_push command which triggers built-in CocoaPods script:
    pod_push(path: "name.podspec",
      repo: "MyPrivateSpecs",
      allow_warnings: true,
      verbose: false,
      use_libraries: true,
      sources: ["some-private-spec.git"])

This works only on macOS, there are no workarounds for Linux / Windows, except to write a similar script (or a Fastlane plugin).

command that would fall back to the built-in script for pushing a Pod if CocoaPods is not available

Does this "built-in script" already exist?

@janpio no, that script doesn't exist and it is the point of this task.

@fastlane-bot hi

@fastlane-bot issue still persists.

@fastlane-bot doesn’t work
Sent with GitHawk

@fastlane-bot  doesn't work.

I looked into the pod_push action and this indeed is just a light wrapper around some pod commands: https://github.com/fastlane/fastlane/blob/master/fastlane/lib/fastlane/actions/pod_push.rb
I don't think making these work on non-macOS will ever be a focus of fastlane, so I would probably say this is better solved with a plugin (which I will make clear with a label in a minute).
Even better of course would be if Cocoapods itself could support that on all platforms, then the plugin will not even be necessary at all.

Hi, I agree. Neither I see it as the focus of CocoaPods, since it's a macOS / iOS specific tool, so the plugin works best here.

@fastlane-bot hi

@fastlane-bot

@fastlane-bot 123

@fastlane-bot


dead link, broken email server

Dear Microsoft,
https://docs.microsoft.com/en-us/microsoft-365/security/office-365-security/use-the-delist-portal-to-remove-yourself-from-the-office-365-blocked-senders-lis?view=o365-worldwide contains a dead link to https://office365.uservoice.com/forums/289138-office-365-security-compliance (Submit and view feedback for ... this product).
So, here's my feedback:
I tried to send an email to one of your office365 customers through my own email server. This got rejected because you blacklisted my sender ip address for whatever reason.
When trying to unlist my address using your self-service portal, you tried sending me a confirmation email with overlong lines:
rejected after DATA: maximum allowed line length is 998 octets, got 3172 is what my mailserver told me.
https://datatracker.ietf.org/doc/html/rfc5321#section-<IP_ADDRESS>.6 says that lines shouldn't be more than 1000 octets (including <CRLF>).
Please fix your email software.

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

ID: 390d461b-7fce-d4ac-1c90-97b7b81dc0c2
Version Independent ID: 9f8c7285-627f-13c6-1c7a-88fa7e14ed86
Content: Remove yourself from the blocked senders list - Office 365
Content Source: microsoft-365/security/office-365-security/use-the-delist-portal-to-remove-yourself-from-the-office-365-blocked-senders-lis.md
Product: m365-security
Technology: mdo
GitHub Login: @MSFTTracyP
Microsoft Alias: tracyp

@joernheissler Thank you for your feedback. The product feedback link in the document is broken and this has been escalated to the concerned team. We will fix this shortly.
Meanwhile, you can product feedback directly on our Main feedback portal: https://feedbackportal.microsoft.com/
Hope this helps!
Thanks
Sri

@msbemba Thank you very much for the contribution and sharing this explanation. @joernheissler Hope this comment is helpful for you. If you see a documentation update is required, please feel free to open an issue for the same. We proceed here to close it. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.


[Processing Request]: Delta Junction, Descending, High Priority

Venue
PST
Product
RTC-S1
SAS Version
latest
SDS Version
latest
Input Data
[encoded data, 12142 characters]
Share Results

[ ] Google Earth Engine (GEE)
[ ] NASA Distributed Active Archive Centers (DAAC) User Acceptance Testing (UAT)

Additional Notes
Scene for static processing:
S1A_IW_SLC__1SDV_20230713T161236_20230713T161303_049407_05F0ED_B461

outputs: issue19_rtc.txt


Pokemon will now be caught from lures

Short Description:
Pokemon will now be caught from lures
Fixes:

When visiting a pokestop, the bot will check for lures and catch any pokemon spawning from it.

Important
PgoAPI should be updated to the latest version!
Instructions will be shown if an outdated version is detected.

Removed the warning message and moved the api call to a new method.


is_directory and exists on a directory fail

There is apparently an issue with the File fixture when using it on directories
The issue exists for File.is_directory and File.exists
Here is my output
remote# file /etc/menlo/conf/certificates/SurfCrew/active
/etc/menlo/conf/certificates/SurfCrew/active: directory

But in test
certificate_dir = words[6]
 d = File(certificate_dir)
>       assert d.is_directory
E       assert <file /etc/menlo/conf/certificates/SurfCrew/active>.is_directory

Could be an issue with remote user (i.e I need to sudo)

Ok, I needed to add --sudo on the command line. You can close this issue.
Regards,
Emmanuel


📃: Add the famous UNO game within Vanilla JS project following all the rules

:red_circle: UNO :
:red_circle: Players can play UNO with the computer following the rules :
:red_circle: HTML, CSS, Javascript for the customised rules :
Screenshots 📷

:white_check_mark: To be Mentioned while taking the issue :

Full name : Debangi Ghosh
What is your participant role? (Mention the Open Source Program name. Eg. GSSOC, SSOC, JWOC, etc.)
GSSOC

Happy Contributing 🚀
All the best. Enjoy your open source journey ahead. 😎

@debangi29 no games allowed.


et_replay refactoring: removed hack code for FBGEMM, introduced skip-node option, MAST launcher update

Summary:
This DIFF include the following et_replay refactoring:

Cleaned up the hack code for FBGEMM
The current implementation for FBGEMM related ops relied on guessing the parameters of the original FBGEMM module based on its forward and backward function calls. Since FBGEMM keeps involving, most of the code are outdated. It is not a sustainable way to support it.
The most important reason that these ops can not be replayed is it usually has index input tensors. If random data is used for these integer tensors, it usually runs into illegal memory issue.
To fix this issue, another DIFF (https://www.internalfb.com/diff/D62889784) is going to capture index tensor based on user's selection. Then in replay, the index tensor is loaded for FBGEMM ops. It has been proved in ICVR model, with the index tensor data, we can replay all of FBGEMM ops.

Introduced new options --skip-node-file and --update-skip-node-file:
If --skip-node-file is available, the json file that defines the nodes to skip will be loaded to skip the ops, --update-skip-node-file is a special run mode, it will go through all compute ops, if an op fails to run, the skip-node-file will be updated to include the failed op.

MAST launcher has been updated to create a new FBPKG for et_replay

The DFS traverser to collect the ops has been simplified. If a node is an operator, the children of that node will be ignored. The only exception is c10:: related ops since record_param_comms is a child of c10:: op, and comm_replay only uses record_param_comms

generate_io_tensor for CommsReplayManager in et_replay.py has been removed temporarily, it does not handle all collectives correctly for creating input/output tensors. The current version uses comms_replay to allocate the tensors. We can put it back when that function is ready.

Some other minor fixes, for example, use logger instead of print

Differential Revision: D61055957

Introduced new options --skip-node-file and --update-skip-node-file:
If --skip-node-file is available, the json file that defines the nodes to skip will be loaded to skip the ops, --update-skip-node-file is a special run mode, it will go through all compute ops, if an op fails to run, the skip-node-file will be updated to include the failed op.

Why add this option? And how does skip-node-file be generated? Write it mannually? Can you give a example of this file?
'--update-skip-node-file' will overwrite specified skip-node-file?

Introduced new options --skip-node-file and --update-skip-node-file:
If --skip-node-file is available, the json file that defines the nodes to skip will be loaded to skip the ops, --update-skip-node-file is a special run mode, it will go through all compute ops, if an op fails to run, the skip-node-file will be updated to include the failed op.

Why add this option? And how does skip-node-file be generated? Write it mannually? Can you give a example of this file? '--update-skip-node-file' will overwrite specified skip-node-file?

et_replay can not cover 100% of computing operators, it may runs into illegal memory access or CUDA runtime issue. The option update-skip-node-file is to run the compute ops one by one, if it failed, it will be put into the skip-node-file.
You can manually edit it, or run et_replay with --skip-node-file xxx.json --update-skip-node-file, the skip node file will be created if it does not exist, or updated if it exists.
The user may need to run it a few times until no failure is found since et_replay will stop running when it got illegal memory access issue or CUDA runtime issue.


Multi agents

Feel free to ignore this PR; it's solely for my personal needs. I created an issue here for traceability: https://github.com/ryo-ma/gpt-assistants-api-ui/issues/16

I set as DRAFT for now

This is also ready but I will mark as Ready after you merge the Authentication feature PR, and you want this feature to the mainstream. @ryo-ma

Cheers @ryo-ma I know there will be conflicts to fix, but I will mark this one for you to start reviewing

Merge conflicts have been fixed, you can start playing around and review this PR @ryo-ma

A bit weird that I have never added "Added Dev Container Folder" to the branch @ryo-ma ; I guess it was Github's IDE console via Streamlit Cloud? Since I have seen an issue from you related to this, I leave it up to you? https://github.com/ryo-ma/gpt-assistants-api-ui/issues/9


resolving library fails

Currently com.github.user/project is treated as a git/url, but it's also a format used for artifacts.
Failing examples:
com.github.kyleburton/clj-xpath (it exists on github but is not using tools-deps).

Fixed in 9d972784ef2d77053f363f4ca021bb69d68f0133


0.9.28 : make check failed

Test using Cygwin environment :

asn1c 0.9.28: skeletons/tests/test-suite.log
TOTAL: 12
PASS:  10
SKIP:  0
XFAIL: 0
FAIL:  2
XPASS: 0
ERROR: 0
.. contents:: :depth: 2
FAIL: check-GeneralizedTime
assertion "strcmp((char *)gt->buf, "19700101000000Z") == 0" failed: file "check-GeneralizedTime.c", line 108, functi$
FAIL: check-REAL
assertion "(size_t)rn.size == outsize" failed: file "check-REAL.c", line 197, function: check_ber_buffer_twoway

Already solved in recent release.


Easier SQL language extension

Not sure if I missed anything obvious but it seems pretty difficult to customize any existing SQL language formatter without forking the language formatter class definition. It would be great if we could provide a consistent way to extend existing formatters.
One motivating example could be https://github.com/zeroturnaround/sql-formatter/pull/114
Another motivating example would be that if we want to support templated SQL via handlebar, we could add {{ and }} to open/close parens to the dialect in question.
Lastly, it is not obvious to me what an optimal interface would look like. If you have any ideas or preferences, I'm happy to work on a PR.

This is out of scope.
Formatting both a templating language and a language which is targeted by the template is a very hard problem. Even when doing it manually, it's hard to come up with a consistent way of doing this.


docker save results in cannot access file

Description
Running "docker save" results in "rename DIRECTORY.docker_temp_893108827 DIRECTORY/images.tar: The process cannot access the file because it is being used by another process."
Steps to reproduce the issue:

Run "docker save --output "DIRECTORY/images.tar" image1:latest image2:latest image3:latest"
Run it more than once. For me it stops usually after the first run (first is successful).

Describe the results you received:
rename DIRECTORY\.docker_temp_893108827 DIRECTORY/images.tar: The process cannot access the file
because it is being used by another process.

Describe the results you expected:
I'd expect a file images.tar generated in DIRECTORY.
Additional information you deem important (e.g. issue happens only occasionally):
Happens after few successful runs. When it starts, it is very persistent. Even restarting docker service doesn't help usually.
I'm still trying to pinpoint the cause (no idea) and a workaround.

Wrong tag by @GordonTheTurtle. It is Docker for Windows stuff, not swarm.

Still looking at it, but it might not be docker's fault after all. In one instance Visual Studio 2015 (or one of its extensions) held the lock on temporary image file for some reason.

Wrong tag by @GordonTheTurtle. It is Docker for Windows stuff, not swarm.

Heh, looks like your mention of  restarting the docker service put it on the wrong foot;
https://github.com/docker/docker/blob/master/poule.yml#L26

Still looking at it, but it might not be docker's fault after all. In one instance Visual Studio 2015 (or one of its extensions) held the lock on temporary image file for some reason.

That was my initial thought; since this file is on the client, not the daemon side, it could be another process (virus scanners, indexing service are possible other candidates)

Can you keep us posted if that was indeed the problem?

Sure, asap I have any new info. I've tried to reproduce it right now, but for some reason it just works.
Said that, when it (if) happens again, I'll try different solutions and let you know about my findings.

Let me close this issue for now, but happy to reopen if there's still something that needs fixing. Thanks!


raftstore: fix the region meta inconsistency bug during splitting

What problem does this PR solve?
Issue Number: close https://github.com/tikv/tikv/issues/8783
Problem Summary:
https://github.com/tikv/tikv/issues/8783#issuecomment-708298415
The bug is located in function on_ready_split_region which is introduced by https://github.com/tikv/tikv/pull/8084.
https://github.com/tikv/tikv/blob/7c9850040ba58d48f0f1a93345c0392dffb2fc5b/components/raftstore/src/store/fsm/peer.rs#L2084-L2112
Line 2111 continue means this region has already existed so it should be skipped.
But line 2087-2090 has already added this region to region_ranges which leads to metadata inconsistency.
What is changed and how it works?
What's Changed:
Fix this bug and add 2 tests.
Run test_split_not_to_split_existed_tombstone_region  and test_split_not_to_split_existed_different_uninitialied_peer can panic in different place in previous code.
Related changes

Need to cherry-pick to the release branch

Check List
Tests

Integration test

Side effects

No

Release note

No release note

/merge

/merge


Flappy bird game

🛠 Issue 408
Closes #408
Description
An Endless Game Called Flappy Bird Has A Bird That The User have to manage . The Player Must Prevent The Bird From Hitting Obstacles Like Pipes. Every Time The Bird Moves Through The Pipes, The Score Goes Up By One. When The Bird Hits The The Game Is Over.
Type of change

[x]  New feature (non-breaking change which adds functionality .
Checklist:
[x] I have made this from my own
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] My changes generate no new warnings
[x] The title of my pull request is a short description of the requested changes.

ATTACH SCREEN-SHOTS / DEPLOYMENT LINK

I have rectify the errors . Please have a look @zugzwang03

Awesome work @alisha722 looks good to me too. :)

OKAY . THANKYOU :)

Resolve merge conflicts

Resolve merge conflicts @alisha722

yes done and created new pull request for the same , please have a look . Thankyou.


Drop exclamation mark when not an image

https://discuss.flarum.org/d/4154-flagrow-file-upload-the-intelligent-file-attachment-extension/65

https://github.com/flagrow/upload/commit/14f2d113dba708313b1771b50b298cd8059ccae2

We should have the ImageProcessor handle overriding the markdown code.

ProcessesImages listener now takes care of this


feat: create bootstrap PR on release

What this PR does: This PR adds a Github Action to create bootstrap PR on release.

It is incredibly unlikely this will work on the first try, so I'll likely be pushing small fixes to main after merge.


Stable order in iterators by UID

When generating SBOL material, it's often useful to be able to readily diff an old version and new version of a generated document. Since the ID of children depend on the order in which they are generated, however, changes to the order in which a document is traversed will tend to result in different IDs, which in turn make it much more difficult to compare documents.
This can be greatly simplified if iterators are changed to traverse in a stable order by increasing UID. In this case, any operation in which nothing is changed should also result in an object in which nothing has changed.

More information is needed in order to develop a plan to address this feature request:

Is this a real or a theoretical issue? Have you encountered instability in iteration, or are you concerned that it might happen?
Are the terms "ID" and "UID" synonyms for an object's identity (obj.identity)?
What "iterators" are you using? (for f in component.features:?)
What about breadth-first vs. depth-first iteration order across a document? Are you requesting a specific ordering through the document's object hierarchy? For example, do you always want to hit a parent first, then all children, then all grandchildren?
Are you dealing with documents that have been round tripped (i.e. written out and then read back in)? Or are your documents generated in some other way, like traversing a non-SBOL document to generate SBOL?

This is a real issue and it's blocking testing in PAML right now.
ID/UID are synonyms for identity (though in some cases displayId may be sufficient
Yes, just iterating over properties in the way you're showing
I don't think I really care at a document level, it's the iterators that are key
This is happening when I traverse portions of an PAML document in order to generate other PAML documents. Different runs go through the property elements in different orders.

I think you're going to want to use sorted() to do this yourself. I'm proposing something like the following:
for f in sorted(c.features, key=lambda x: x.identity):
    print(f.identity)

It is best to think of the properties as sets, which are inherently unordered. I understand that there are use cases that want these sets, like Component.features, to be ordered. I do not think the library should guarantee or enforce an ordering though. I think it would be best to allow an application or library to apply an ordering as it sees fit. I think the example above does that.
A wrinkle is that ordering by identity will be a text based sort. SubComponent11 will sort before SubComponent2 in this case. That may or may not be what you want, but the order will be stable, which is clearly desired in your case.
I am open to further discussion. I may be wrong about leaving ordering to code outside of pySBOL3 rather than incorporating ordering within pySBOL3. My inclination, however, is to lean on the graphs of triples that underlie SBOL3 and those are inherently unordered.

My past experience with issues like these on other projects is that if we don't have an option for automatic stable ordering, then we are going to end up with difficult-to-resolve heisenbugs because somebody forgot to put the sorting wrapper somewhere and it only activates under very particular circumstances.
Could we have an option that can be turned on for enforcing ordering, like a "safe mode" or "strict mode"?

Can you provide an example of your workflow with a focus on the problematic area? I don't yet understand where things go wrong for you. Pseudocode would be fine.
Object lists should be stable in a given document, but not stable across document read/write loops, or subsequent reads of the same document. Are you serializing a document and then reloading it? Or loading a document a second time into a different Document?
Would the use of sorted N-Triples help you in terms of textual diffing of two files?

Here is an example of where the problem comes in.
I have created a library of protocol primitives, which I read in in order to build a protocol.
When adding an execution of a primitive to a protocol, we go through the inputs in the primitive and add corresponding inputs for the execution.
def make_PrimitiveExecutable(primitive: Primitive, **input_pin_map):
    self = PrimitiveExecutable()
    # link to primitive prototype
    self.instance_of = primitive
    # Instantiate input pins
    for pin_spec in primitive.input:
        # cut/edited some material for brevity
        pin = Pin()
        pin.instance_of = pin_spec
        pin.name = pin_spec.name
        self.input.append(pin)

This means that we end up with different names for the inputs in the executable, because we've created and added the in a different order.

Sorry to be dense, I'm still not seeing it. You don't say where you want the sorting to happen, so I'm guessing you want the primitive.input sorted in the for pin_spec in primitive.input: line.
It looks to me like that loop will create a Pin for every primitive.input, and those Pin instances will each take on the name of the associated primitive.input and have a reference to the primitive.input via the instance_of property. You say you "end up with different names for the inputs on the executable". How are you ending up with different name properties? Is that assignment somehow not happening properly? Or being overwritten somehow?
Or are you trying to get the identity properties of the Pin instances to be constant across reads of your protocol primitives which I'm guessing are stored in SBOL files? And if that's the case, do you really care? Isn't it enough that there is exactly one Pin for each primitive.input, with the correct name property and value_of reference? Do you really care how those Pin instances are labeled?
And does sorted(primitive.input, key=lambda x: x.identity) fix the problem in the short term?

I'm guessing you want the primitive.input sorted in the for pin_spec in primitive.input:

Correct.

"end up with different names for the inputs on the executable"

Apologies; that was sloppiness in my writing due to multitasking.  I meant the displayId will be different, meaning that the identity will be different, just as you say.  This isn't a problem at an abstract level, but it makes writing tests a lot harder.
And yes, applying the sort myself as you suggest will absolutely patch this --- I'm basically hoping that we could pull that pattern up into the library so that I am not vulnerable to bugs due to forgetting to apply the sort pattern.

Maybe we should look at the unit test and see if we can make use of some tooling there to make your unit test robust to the unordered nature of SBOL. I don't see a unit test in https://github.com/SD2E/paml that looks like the code you describe above. Did I miss it? Or is it on an as yet unpushed branch?
I'm thinking of things like unittest.TestCase.assertCountEqual for example. The pySBOL3 make use of that when the members of lists matter and their order does not. Maybe we could structure your test to use that to ensure that there are the right number of Pin instances, their instance_of properties are equivalent to the list of input pin_specs, and so on.

With respect to sorted ordering of iterators in pySBOL3, I recognize that it would be useful for your particular unit test. I'm not so sure how good or bad it would be overall. Would it provide benefit to all or most pySBOL3-based projects? Would it hinder some projects? What is the right sort order? How much code would pySBOL3 have to add relative to the benefit? Should developers really rely on a given sort order in the library, which might or might not be relevant to their application?
In short, I'm still not convinced of the utility.
Do other SBOL libraries enforce a sort order?

In the two tests in https://github.com/SD2E/paml/blob/main/test/test_LUDOX_protocol.py, I have a commented out file comparisons at lines 90 and 98.  I know that the .ttl file ordering isn't necessarily reliable, but would switch that over to sorted n-triples if the contents were going to be identical.
I'm going to experiment with sorting at some point, and will revisit this with more example information if I make it work on my end.

I'm using this workaround code right now, but it's being problematic to make sure that my orderings are actually stable with respect to every set of child objects:
def id_sort(i: iter):
    sortable = list(i)
    sortable.sort(key=lambda x: x.identity if isinstance(x, sbol3.Identified) else x.lookup().identity)
    return sortable

I think I've found the problem: the _reparent_child_objects(self) method used by clone walks the child objects in an arbitrary order, and therefore cannot ensure stability.
I need to think about whether the right thing to do now is to keep trying for stability or to make a TopLevel comparator that doesn't care about child object names.

I think that we do want to fix this with respect to copy/clone at least, because automatically scrambling the order of child objects internally is something that cannot be worked around.

The library makes no guarantees with respect to order, and the underlying RDF makes no promises with respect to order as far as I know. pySBOL3 is not "automatically scrambling the order of child objects". Rather, it is embracing the inherent unordered nature of the data it is representing. I think your reliance on a particular order is problematic and you will continue to have challenges.
Is the clone operation producing a bad clone of the data? And the root cause is _reparent_child_objects(self)? If so, then that's a bug that should get fixed.
If, on the other hand, clone is producing a valid clone of the data that happens to have different orders on the sets of child objects, and different displayIds as a result, I don't think that's a bug. Does the clone have the same semantic relationships as the original, regardless of displayIds and identities? If so, I think that's reasonable.

The semantic relationships are indeed preserved.
I'm worrying about the ability to version control data, however. If I have a workflow for generating a derived SBOL file from a source document, then when I make a change in the source document, I see not only the actual derived changes, but also a large number of changes in the derived document that have nothing to do with the change in the source document.
Here's an example of the challenge that I'm encountering. In this diff: https://github.com/SynBioDex/SBOL-utilities/commit/800bca3d832132c791f8451e73353ca4991178d7, there are 660 lines in the diff (1/3 of a 2097 line file) with no change except for running the utility a second time.

This went deeper and more fundamental than I thought. The problem was appearing in cloning and in _reparent_child_objects, but the actual unpredictable renaming happened as a side effect of this line: https://github.com/SynBioDex/pySBOL3/blob/44dea5138b740a7899f1ca856827ea0350958c63/sbol3/toplevel.py#L88
The root problem, then, is the _owned_objects lists being reconstituted in an unpredictable order when the file is loaded. The patch that i'm using to deal with this is that before I clone an object, I sort its _owned_object fields using the following helper code:
def id_sort(i: iter):
    sortable = list(i)
    sortable.sort(key=lambda x: x.identity if isinstance(x, sbol3.Identified) else x)
    return sortable

def sort_owned_objects(self):
    for k in self._owned_objects.keys():
        self._owned_objects[k] = id_sort(self._owned_objects[k])

Yes, file loading happens in an unpredictable order. That's a property of the RDF graphs. I'm not aware of the SBOL specification requiring a specific ordering of objects, and if you were to access the properties in an RDF graph you wouldn't get them in a specific order either. Is your patch sufficient to work around this issue in your code, or are you still requesting a change to pySBOL3? And if so, what kind of change?

The patch will do for now, but it feels very dirty and kludgey. I propose that we leave this issue open for a while longer while I see how my usage evolves, and we can figure out from that whether this goes into the library or becomes a utility function.

I have come around to the idea that we don't need this for most cases, the sbol-utilities id_sort function is sufficient.
However: we do need stability when copying an object, to make sure that the structure of the object doesn't change when it moved to a new copy/clone.

Test case: put a complex object into a document. Copy it to another document and write to n-triples. The triples should be identical for both documents. If this bug is extant, then they will be different due to child objects being added (and named) in a different order than they were originally.


Getting the Service Principal Object ID

You don't mention that you can use Get-AzureADServicePrincipal to list all the Service Principal objects - look for one named Microsoft.Azure.ActiveDirectory. I spent a long time in vain trying to get Graph Explorer to work.
Please update the documentation on this page.

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

ID: 02ff3d62-dc0e-ad0c-f5ae-418337cf31e4
Version Independent ID: d50952b5-6b98-c40d-d3a3-f9cbec58dd28
Content: Configurable token lifetimes in Azure Active Directory
Content Source: articles/active-directory/develop/active-directory-configurable-token-lifetimes.md
Service: active-directory
GitHub Login: @CelesteDG
Microsoft Alias: celested

@ptallett Thanks for your feedback! We will investigate and update as appropriate.

I know, that is exactly the section I want changed. Neither of the references you point to actually tell you how to get the service principal. After much external searching I found the command to input into Graph to give me the service principal but it didn’t work (some permissions issue).
Since the article is already using the PowerShell cmdlets, wouldn’t it be more sensible to just type Get-AzureADServicePrincipal. In seconds you have what it took me hours to get – the ObjectId.
Assign the policy to your service principal. You also need to get the ObjectId of your service principal.
a.            To see all your organization's service principals, you can query either the Microsoft Graphhttps://developer.microsoft.com/graph/docs/api-reference/beta/resources/serviceprincipal#propertiesor the Azure AD Graphhttps://msdn.microsoft.com/Library/Azure/Ad/Graph/api/entity-and-complex-type-reference#serviceprincipal-entity. Also, you can test this in the Azure AD Graph Explorerhttps://graphexplorer.azurewebsites.net/, and the Microsoft Graph Explorerhttps://developer.microsoft.com/graph/graph-explorer by using your Azure AD account.
Should read
Assign the policy to your service principal. You also need to get the ObjectId of your service principal.
a.                   To see all your organization's service principals, type GetAzureADServicePrincipal.
Cheers,
Paul
From: SaurabhSharma-MSFT<EMAIL_ADDRESS>Sent: 17 October 2018 19:27
To: MicrosoftDocs/azure-docs<EMAIL_ADDRESS>Cc: ptallett<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/azure-docs] Getting the Service Principal Object ID (#16906)
@ptalletthttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fptallett&data=02|01||cf5e503568b44c317e4808d6345e20cc|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636753976209343857&sdata=2hN5pePTkrLoWn1Yua7q1dyNIM80o0BpwthK%2BUue%2F2k%3D&reserved=0 Please refer to sectionhttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fdevelop%2Factive-directory-configurable-token-lifetimes%23example-create-a-policy-for-web-sign-in&data=02|01||cf5e503568b44c317e4808d6345e20cc|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636753976209343857&sdata=6jrCKYTyADRNitKVw4nmcI%2FPqIHeuWxdGk4sZn8sOh0%3D&reserved=0 on this documentation. This section provides information to get the Service Principals using Microsoft Graph or the Azure AD Graph.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fazure-docs%2Fissues%2F16906%23issuecomment-430737128&data=02|01||cf5e503568b44c317e4808d6345e20cc|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636753976209343857&sdata=aEyHLWtz%2BWrXw51BB8HKxHKt9WHtV1mqQd0H95n0rVo%3D&reserved=0, or mute the threadhttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJ1R_TMQlIwEdUrpuTZ2fAD1QseSovSpks5ul3ZzgaJpZM4XdeXX&data=02|01||cf5e503568b44c317e4808d6345e20cc|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636753976209343857&sdata=7RdFM7Y7eQb7FRwu6HYkYilb8IPxPRXn5BoeuHyDUZ8%3D&reserved=0.

@ptallett Please check the "Methods" section on the provided documentation Microsoft Graph link. It contains the methods associated with ServicePrincipals.  (see screenshot below)

Once you go to the Get or List Service Principals page you can see the HTTP request details along with the example to get the service Principals for example -
GET https://graph.microsoft.com/beta/servicePrincipals
You can use Microsoft Graph Explorer - https://developer.microsoft.com/en-us/graph/graph-explorer and execute the GET request to receive all serviceprincipals.  Please use the "Sign In with Microsoft" button to sign-in before using the command.  (See Screenshot below)

Okay, I give up. I know all about all these methods you are telling me, and I’ve tried them and they don’t work and are complicated. You can send me documentation on these as much as you like, it’s a crap way to get the service principal object id. The user is already INSIDE the PowerShell components, and already logged in. All he needs to do is issue one more command and he has it. Your method requires navigating to another website, finding the appropriate documentation (which is NOT linked by the original document despite what you say), logging in, and executing an obscure query (which he will have had to obtain from other documentation). This command DID NOT WORK for me. The PowerShell command I gave you will ALWAYS work.
I can’t believe you are arguing with me. I am not going to reply to any more of your emails if you can’t see that the documentation is wrong, you are wasting my time.
Cheers,
Paul
From: SaurabhSharma-MSFT<EMAIL_ADDRESS>Sent: 19 October 2018 20:38
To: MicrosoftDocs/azure-docs<EMAIL_ADDRESS>Cc: ptallett<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/azure-docs] Getting the Service Principal Object ID (#16906)
@ptalletthttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fptallett&data=02|01||ffdedabea3ff4953379f08d635fa5f39|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636755746780796042&sdata=4zlmelCwe7vg%2Flzo5WeJoG0i7q105ta173twuGz5%2FNo%3D&reserved=0 Please check the "Methods" section on the provided documentation Microsoft Graph linkhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdeveloper.microsoft.com%2Fgraph%2Fdocs%2Fapi-reference%2Fbeta%2Fresources%2Fserviceprincipal%23properties&data=02|01||ffdedabea3ff4953379f08d635fa5f39|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636755746780796042&sdata=qdamvUSHKh8Mh6I%2Ff9naQVM%2FDovXSmZ48n285k05zoY%3D&reserved=0. It contains the methods associated with ServicePrincipals. (see screenshot below)
[image]https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F38112130%2F47239421-1d9c3180-d39a-11e8-8eba-7c2e0c2b8c02.png&data=02|01||ffdedabea3ff4953379f08d635fa5f39|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636755746780796042&sdata=ceGVGvJWozUUpQD5gKBKAnOBAOHN%2B8ivK7OZX8zpDjQ%3D&reserved=0
Once you go to the Get or List Service Principals page you can see the HTTP request details along with the example to get the service Principals for example -
GET https://graph.microsoft.com/beta/servicePrincipalshttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgraph.microsoft.com%2Fbeta%2FservicePrincipals&data=02|01||ffdedabea3ff4953379f08d635fa5f39|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636755746780952467&sdata=OFiMB2AteLHJEevdLZYP5NNaoSLr6RvZispzh7OAaAY%3D&reserved=0
You can use Microsoft Graph Explorer - https://developer.microsoft.com/en-us/graph/graph-explorerhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdeveloper.microsoft.com%2Fen-us%2Fgraph%2Fgraph-explorer&data=02|01||ffdedabea3ff4953379f08d635fa5f39|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636755746780952467&sdata=jHdchHqdX0VLIZI7qWLx14fxhiumtAVNQwde9G36QqM%3D&reserved=0 and execute the GET request to receive all serviceprincipals. Please use the "Sign In with Microsoft" button to sign-in before using the command. (See Screenshot below)
[image]https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F38112130%2F47239998-c39c6b80-d39b-11e8-862e-1cbac3df3ccb.png&data=02|01||ffdedabea3ff4953379f08d635fa5f39|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636755746780952467&sdata=9PY3uK5K51sFZYtNyPB8LjojqoSCLNefvprZ%2BN1iuF8%3D&reserved=0
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fazure-docs%2Fissues%2F16906%23issuecomment-431475744&data=02|01||ffdedabea3ff4953379f08d635fa5f39|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636755746780952467&sdata=aCnPQqjmcsZvAptneQ5BBHdxyjqM7%2FQfKx54pvYXYoI%3D&reserved=0, or mute the threadhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJ1R_Ua3gTnTMUhxyBHKfjN0edj3knPKks5umioUgaJpZM4XdeXX&data=02|01||ffdedabea3ff4953379f08d635fa5f39|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636755746780952467&sdata=9VXRRN42IktXASLWbmUpKbBQ2JEgOSyD9RkMcWupur4%3D&reserved=0.

When I run Get-AzureADPolicy , one policy is returned and the IsOrganizationDefault value is False. I am expecting that if there is only one policy, then it would have to be the default policy and this attribute would be set to True. If this is not the default policy, then what is the default policy and how come it is not being returned?

Hi is there any update on this being deprecated and moving to Azure Active Directory Conditional Access?

@ptallett  Thanks for the feedback.  I think you're right that Get-AzureADServicePrincipal is a much easier way to get the ID and also keeps you in the context of PowerShell.  I've updated the article to use this cmdlet, changes have merged and should publish live later today.  #please-close

@nugentd, sorry for the slow reply.  The plan is still to deprecate this feature on Nov 1, 2019.  You should consider switching to using conditional access soon.


what is the difference between incflo and IAMR

Hi
what is the difference between incflo and IAMR, since they are both built upon AMREX and solving NS equations?
Thanks

Thank you for your information, Dr. Almgren. Saw your presentation on AMR in YouTube the other day. Great talk.


[Feature enhancement] : UI of the the light mode

i will improve the UI of the light mode to make the cards stand our clear improving its overall UI.

In the guidelines it is already mention there should not be any changes in the home page,Do not be demotivated and raise a new issue.


Allow to customize response validation handling

Hi, I found it as very useful tool for input validation in Typescript project, and so far seems to meet my use case.
But for output (response) validation for me it lacks some customization options, especially for production. For now it looks like I have three options for production:

expose potential validation error to user (exposeResponseErrors: true) - rather not suitable for production as may expose implementation details / internal problems
not expose it (exposeResponseErrors: false) - user gets 500 Internal Server Error and we have no clue what happened (looking into code, only 500 is thrown and validation error is not exposed anywhere)
do not use response validation at all (by not providing response schema) - user will see response even if malformed, but we cannot detect potential problems.

Will be great to expose option to capture error and process it internally (e.g. log, send alert, increment metric etc.) and decide if user should see validation error, generic Internal Server Error or receive actual response even if not matching schema.

hello
i think this is a good idea, and you're right about the input validation having these sort of issues with it. I am not actively doing any new development in this library but i'd be happy to accept a PR for it. the library definitely lacks logging, and i think it'd be great if we could add a logger to the config, as well as allowing returning the malformed response body.


Add streaming calculation of ed25519

This PR allows to calculate ed25519 via State object.

Hi! Could you please clarify if there is something wrong with this PR? Or when will it be merged in other case?

@popzxc Hi. Sorry about the delays. We will review this as soon as possible.

@Dylan-DPC hello! Could you please clarify which tests should I add to get this PR merged?

@popzxc you need to add test vectors from libsodium that are related to your content.

Hi. Need help?

@kpp Hello. That would be really appreciated, since I'm busy on my main work project and don't know when I'll be free enough to complete this PR.

@Dylan-DPC I can't find any test in libsodium for crypto_sign_ed25519ph_* functions. Which tests do you want to be included?

The coverage for sign/ed25519.rs is 96.9%. Missing coverage:
  152  #[derive(Copy, Clone)]
  153  pub struct State(ffi::crypto_sign_ed25519ph_state);

  198  impl fmt::Debug for State {
  199      fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
  200          write!(f, "ed25519 state")
  201      }
  202  }
  203
  204  // Impl Default becuase `State` does have a sensible default: State::init()
  205  impl Default for State {
  206      fn default() -> State {
  207          State::init()
  208      }
  209  }
  210

Coverage decreased (-0.04%) to 94.478% when pulling f663b3adba39111917583fd79a3d75421c6a3a5f on popzxc:streaming-ed25519 into b480ef166afa5d933e20e0346394bd72b416d293 on sodiumoxide:master.

@popzxc see coverage report. Will you fix missing coverage?

I've added more tests: for missing coverage, as well as test vectors.

Give me some time, because there is no coverage report (I don't know why). So I will check it manually

Well, it is a 100% coverage.
@Dylan-DPC Any other notes?

Would like a review from @dnaq

This weekend at earliest
On Wed, 5 Dec 2018 at 16:12, Dylan DPC<EMAIL_ADDRESS>wrote:

Would like a review from @dnaq https://github.com/dnaq
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/sodiumoxide/sodiumoxide/pull/237#issuecomment-444519609,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABPVBTqaC18TXo6gcrrwQnsBM5YzRsZ7ks5u1-JqgaJpZM4VHidB
.

@dnaq ping

Hopefully this weekend
On Thu, 13 Dec 2018 at 23:33, Roman<EMAIL_ADDRESS>wrote:

@dnaq https://github.com/dnaq ping
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/sodiumoxide/sodiumoxide/pull/237#issuecomment-447145005,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABPVBR5Zi_4qZtSI3oXSfyVecuV5496Zks5u4tWqgaJpZM4VHidB
.


API xref syntax not supported?

@lindalu-MSFT Other docs projects I've worked in (asp.net and dotnet) allow for <xref:...> syntax to reference APIs to automatically resolve names and ensure it exists. I tried doing that here, but it doesn't seem to work. Is there a way to hook that up? Or is it because I'm trying to run it locally?

@twsouthwick I have no idea! You can go to the Learn support site SiteHelp and open a ticket. I'm sure they can help!


[MM-28211] Plan Details Card - UX demo

Summary
This PR shows off the Plan Details card on the new Cloud Billing screen
Currently there's no back-end hookup for it, but I'd like to have the design reviewed while other PRs are awaiting review.
Ticket Link
https://mattermost.atlassian.net/browse/MM-28211

@devinbinnie the test server creation failed.

@matthewbirtch Good to go now, sorry about that.

Sorry @devinbinnie I can't seem to access the billing and account section

Sorry @devinbinnie I can't seem to access the billing and account section

@matthewbirtch Forgot to upload the license and flip the switch, it's on now.

Closing as UX review is complete, will put up a new PR including logic once that is complete


Building .NET apps from source, including their (build) dependencies.

If you want to add a .NET app into a distro's package repository, you are faced with a daunting task.
Distro repositories require all binaries that are distributed, and needed to built the app, to be built from source.
That means the app needs to be built without using NuGet packages since those have prebuilt binaries.
Instead of using NuGet packages, you needs to build the NuGet packages again from source, so they can be consumed by your build.
To facilitate the maintainer, it would be nice if the tooling could support this use-case.
For example, distros do this by having source packages which include everything needed to build a package from source.
I understand this is not a major use-case for .NET apps, and the effort for this would be high.
I'm creating this issue to raise awareness.
cc @omajid @musuruan @richlander

cc @dotnet/distro-maintainers

Just thinking out loud without much preprocessing here: Could NuGet itself be extended to resolve this issue? NuGet already supports symbol packages (which contain at least some form of the source code), could it perhaps be extended to support source packages as well? That would benefit the entire .NET ecosystem and not just those few that maintain distributions of the .NET SDK or runtime.

I like the scenario. I'm not sure how to solve it.
We've had similar discussions, for secure-supply-chain scenarios. We wanted to determine if we could rebuild NuGet packages using sourcelink information (in the PDB). So far, we've concluded that this angle doesn't work.
A much more direct angle would be enabling a first-class transformation from PackageReference to ProjectReference. There is a lot of hand-waving there. To enable that, we'd have to document some standard toolchain requirements that projects would need to conform to. This, too, would probably be based on sourcelink but be much more formal.
@mhutch @tmat

As a concrete example, @hickford is looking to add git-credential-manager to Fedora and is stuck: https://github.com/GitCredentialManager/git-credential-manager/issues/816

There's a related issue about documenting our solution (when we have one) at https://github.com/dotnet/docs/issues/17757

I got some community feedback that another set of libraries/applications that might be a good idea to package would be AvaloniaUI and Jellyfin. Jellyfin is even available via rpmfusion (https://pkgs.rpmfusion.org/cgit/free/jellyfin.git/tree), but can't be added to Fedora proper due to the offline build restrictions.

It seems that currently dotnet cannot be built offline as prep.sh downloads a pre-built CLI from AzureEdge. Does this mean that dotnet isn't really FOSS? See also: #3465 and #2960

My understanding is that prep.sh exist so that you can copy it and then pull those assets to an offline environment and then build offline.
The C# compiler is written in C# so it requires an existing C# compiler to build. This is a common characteristic with compilers. In addition, it isn't possible to build .NET 8 with .NET 6 or 7. We make lots of breaking changes each release that breaks our old build system. A big part of that is that we use new .NET 8 feature in the .NET 8 source code, which prevents the .NET 6 compiler from compiling the code.
That all means you need binaries to build the code. A C++ compiler on its own is not sufficient. The source build scripts provide the MS-built SDK. We know it works and the distros we work with have been OK with that.
It is fully OK if people want to work on an alternate script and process that uses the RHEL, Ubuntu, or other distro build of .NET as part of source-build. Certainly, that will involve pulling packages over the network.
I read the four essential freedoms and the rest of the page you linked to. It isn't clear to me where .NET is violating FOSS in spirit or name.

As @richlander explained, .NET needs some binaries to build.
If you don't have previously built those from source ./prep.sh gets them for you.
The output of a ./build.sh will include these binaries re-built from source.
Successive builds start with binaries that were all built from source.

Does this mean that dotnet isn't really FOSS?

This process enables .NET to meet the requirements distros set for software to be included in distro packages.
These guidelines are written up to provide a user with FOSS software.
This means that what gets distributed through distros can be considered FOSS.
Some parts of .NET are under restrictive licenses and are not FOSS, like the vsdbg debugger component.
There are some projects that try to compensate like https://github.com/Samsung/netcoredbg.
I think lack of these components cause .NET to not be FOSS when looking from the "development platform" perspective.
This specific issue is about enabling to build .NET apps using a .NET distro SDK so they meet the (FOSS) requirements to be included in the distro.


[SPARK-7745] Change asserts to requires for user input checks in Spark Streaming

Assertions can be turned off. require throws an IllegalArgumentException which makes more sense when it's a user set variable.

Merged build triggered.

Merged build started.

Test build #33105 has started for   PR 6271 at commit 16aa766.

Test build #33105 has finished for   PR 6271 at commit 16aa766.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
class DataFrameReader(object):
class DataFrameWriter(object):

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/33105/
Test FAILed.

Merged build triggered.

Merged build started.

Test build #33107 has started for   PR 6271 at commit 6161350.

Test build #33107 has finished for   PR 6271 at commit 6161350.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/33107/
Test PASSed.

Merged build finished. Test PASSed.

Merged build triggered.

Merged build started.

Test build #33181 has started for   PR 6271 at commit 264adb8.

LGTM.

Ooops, my PR that I merged conflicts with this. Could you please updated. Sorry :)

Test build #33181 has finished for   PR 6271 at commit 264adb8.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/33181/
Test PASSed.

Merged build finished. Test PASSed.

Merged build triggered.

Merged build started.

Test build #33203 has started for   PR 6271 at commit d249484.

Test build #33203 has finished for   PR 6271 at commit d249484.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/33203/
Test PASSed.

All right, merging this! Thanks!


CAMEL-14654: Add Camel Azure Storage Blob component based on Azure v12 SDK

This a brokedown component that is dedicated to Azure Storage blob based on the component camel-azure, but it uses the latest Azure SDK v12 which required some refactoring in order facilitate v12 Azure SDK. The functionality is almost the same as camel-azure but with some added features like container operations, return enriched headers, improved docs .. etc. As a second stage, we would like as well to add the batch consumer and some operations related to the snapshot. But that after I port the queue component from the legacy camel-azure.
Once I break down the queue component and change it to version v12, we can mark the camel-azure component as legacy in order to highlight this to user as it uses the legacy v8 azure sdk.

[x]  Make sure there is a JIRA issue filed for the change (usually before you start working on it).  Trivial changes like typos do not require a JIRA issue.  Your pull request should address just this issue, without pulling in other changes.
[x] Each commit in the pull request should have a meaningful subject line and body.
[x] If you're unsure, you can format the pull request title like [CAMEL-XXX] Fixes bug in camel-file component, where you replace CAMEL-XXX with the appropriate JIRA issue.
[x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[x] Run mvn clean install -Psourcecheck in your module with source check enabled to make sure basic checks pass and there are no checkstyle violations. A more thorough check will be performed on your pull request automatically.
Below are the contribution guidelines:
https://github.com/apache/camel/blob/master/CONTRIBUTING.md

It looks good me, we need to create a spring boot starter for this and a karaf feature with the azure storage stuff wrapped for the moment

Sure @oscerd. Will add the starters for spring boot and karaf feature once this is merged

LGTM. Squash the PR before merging


Refactor/kernel interfaces

[x] Have you provided a meaningful PR description?

[x] The concept of a kernel was decoupled from the notion of dispatching a kernel to a device. The old implementation in numba_dpex\compiler.py mixes both things, making hard the separation of compute-follows-data based kernel launch from legacy dpctl.device_context based behavior.
[x] Deprecates support for numpy arrays as kernel args.
[x] Deprecates support for dpctl.device_context for kernels.
[ ] Deprecates support for the square bracket notation using __getitem__ to provide global and local ranges for a kernel launch. (to be reevaluated #790)
[x] Changes the behavior of specializing a kernel using only a signature. The new way to specialize will require a device type and a backend.
[x] Add validations for ndrange kernel launch parameters.
[ ] #862
[x] Improvements to exception messages using custom exceptions.
[x] The new API is now inside numba_dpex.core.kernel_interface.
[x] Migrate DpexFunc to new API
[x] Migrate parfor compilation to new API
[x] Remove numba_dpex.compiler.py
[x] Adds new unit test cases
[x] Enable caching of kernels in new API
[x] Doc strings
[x] Update examples
[ ] Generate API docs

[X] Have you added a test, reproducer or referred to an issue with a reproducer?

[x] Have you tested your changes locally for CPU and GPU devices?

[x] Have you made sure that new changes do not introduce compiler warnings?

[ ] If this PR is a work in progress, are you filing the PR as a draft?

Fixes #814, #816, #780, #810

@mingjie-intel @chudur-budur All existing tests except caching work with the new API. I have updated the description to capture pending TODOs. Any early feedback will be very helpful.

Merging as TeamCity CI is all green.


AttributeError: 'NoneType' object has no attribute 'key_blocks'

Describe the bug
A Python error shows on export
To Reproduce

Download the blend file below
Select the rig and the body objects
Export as gltf. Options used (different from defaults):

Include -> Selected objects
Geometry -> Apply modifiers

See the traceback: https://pastebin.com/8cWeqAjz

Expected behavior
No error on export
.blend file/ .gltf
mannequiny-0.2.0.zip
Version

OS: linux
Blender Version 2.81

Additional context
I was unable to pinpoint the step that triggered the bug. It happened several times today with several versions of this blend file, and the only solution I've found was to revert to a previously saved version.

Confirmed.
Root cause : You assigned an armature action to a mesh object.
Workaround: Unlink the action from the mesh object. Select the mesh, then on Dopesheet, click the cross button at right of the capture :

I will add a check to avoid the crash


Update x11 modifier keys automatically for action script usage

I use the action-script mechanism to switch my desktops with the usual keys (Ctrl+Alt+Left/Right) even though the keyboard is being grabbed. In the FreeRDP window you have to release the modifier keys and pressed them again to be recognized. I've made a small patch that updates the modifier key status when the window is focused. So my action-script works perfectly. You may want to see if you want to integrate this patch.

@freerdp-bot test

Sorry, looks like I forgot to submit the review :/

@groegera Sorry, seem to have pushed to the wrong branch, recreated the pull with formatting applied.


Make clean_names() compatible with polars and geopandas dataframes

Brief Description

I would like to propose for the clean_names() method to work with polars dataframe and geopandas dataframe. I work in the climate domain and also came from R. Polars has become a default choice to work with super large tabular climate datasets thanks to its implicit parallelism and efficient memory management. geopandas is a default go-to for working with GIS data. Would be great to see clean_names() method be compatible with both.
Example API

in polars, would look like....
polars.clean_names()
in geo pandas would look like...
gdf.clean_names()

@ericmjl @pyjanitor-devs/core-devs thoughts? +1 if we can extend pyjanitor to cover polars

We should do it! Although the only thing I'm not sure of is how to extend Polars. Is there a guide?
Will admit I haven't had the time to do this because of a lack of need to use polars, but I know the dataframe user base will want polars integration for sure. If we make it work for clean_names, it should just work for the rest of the functions!

we can start incrementally. @3SMMZRjWgS would you like to submit a PR that extends clean_names to polars?

pypolars page on api extensions : https://docs.pola.rs/py-polars/html/reference/api.html

@3SMMZRjWgS implemented make_clean_names that can be used within existing polars functions - have a look at this PR - #1351 . @ericmjl I chose to use functions instead of creating a method on the polars namespace. This way users can just pass the function to existing polars functions (polars chaining options is pretty extensive already) - this way there should be nothing new to learn for polars users, just plug in the function to the appropriate function and voila. thoughts?

@3SMMZRjWgS implemented make_clean_names that can be used within existing polars functions - have a look at this PR - #1351 . @ericmjl I chose to use functions instead of creating a method on the polars namespace. This way users can just pass the function to existing polars functions (polars chaining options is pretty extensive already) - this way there should be nothing new to learn for polars users, just plug in the function to the appropriate function and voila. thoughts?

Thank you so much for making it happen @samukweku and @ericmjl! A function would do 👍 . Look forward to pushing to conda-forge.


add the change notifications support to redis.

This change is

Jenkins job mixer/presubmit passed

Jenkins job mixer/manager-regression passed

Jenkins job mixer/e2e-smoketest passed

Jenkins job mixer/presubmit passed

Jenkins job mixer/presubmit passed

Jenkins job mixer/presubmit passed

Jenkins job mixer/pilot-regression passed

Jenkins job mixer/e2e-smoketest passed


Unknown attribute tags with value []

Get this error message constant in the my terminal log.

Yes, VW made changes to the interface. It's already added n master and will be included in the next release

Hmm cool, what purpose do you think the "tags" wil have?

I have no idea :)

0.33.0 is released adding the unknown tags value


DOI Search updates per testing

[ ] Hover/clickable info icon next to Status indicating what the various status-es mean.
[ ] Add margin to right of table - status column gets covered a bit by the feedback widget.
[ ] Identifiers should be LIDVID for PDS4 and data set id for PDS3 - I think this is possible from the data, but we want to display the data set ID if at all possible. the PDS4-equivalent identifier doesn't make sense to anyone outside of JPL
[ ] Only rows with Status = Findable should have links - Registered/Draft means they are not online
[ ] Change page title from "PDS: Tools" to "PDS: DOI Search"
[ ] How to translate data set IDs with a slash for search - data set ID search does not work if they have a slash in the data set id
[ ] searches need to be case insensitive
[ ] sortable by each columns

@jordanpadams I would move the frontend ticket to pds-wds-react since the module will stay there.

Issue moved to NASA-PDS/pds-wds-react #10 via ZenHub


Tidy up for GOV.UK infrastructure

I'm moving this project to GOV.UK infra & alphagov so that more people can contribute.
https://github.com/alphagov/govuk-puppet/pull/6546 creates the necessary jobs on deploy & CI jenkins.

[ ] Make sure the rake task works on our infra
[ ] Make sure CI works
[x] Update README

https://trello.com/c/3JanUKZP

The task works on deploy Jenkins: https://deploy.integration.publishing.service.gov.uk/job/run-deploy-lag-badger/1/console


Automatic update of 6 packages

6 packages were updated in 3 projects:
AWSSDK.Core, AWSSDK.CloudWatch, AWSSDK.AutoScaling, AWSSDK.SimpleNotificationService, AWSSDK.ElasticLoadBalancing, AWSSDK.CloudFormation

Details of updated packages
NuKeeper has generated a patch update of AWSSDK.Core to <IP_ADDRESS> from <IP_ADDRESS>
AWSSDK.Core <IP_ADDRESS> was published at 2018-11-16T06:15:24Z, 13 days ago
3 project updates:
Updated TestHelper/TestHelper.csproj to AWSSDK.Core <IP_ADDRESS> from <IP_ADDRESS>
Updated Watchman.AwsResources/Watchman.AwsResources.csproj to AWSSDK.Core <IP_ADDRESS> from <IP_ADDRESS>
Updated Watchman.Engine/Watchman.Engine.csproj to AWSSDK.Core <IP_ADDRESS> from <IP_ADDRESS>
AWSSDK.Core <IP_ADDRESS> on NuGet.org
NuKeeper has generated a patch update of AWSSDK.CloudWatch to 3.3.10 from <IP_ADDRESS>
AWSSDK.CloudWatch 3.3.10 was published at 2018-11-21T00:03:57Z, 9 days ago
2 project updates:
Updated Watchman.AwsResources/Watchman.AwsResources.csproj to AWSSDK.CloudWatch 3.3.10 from <IP_ADDRESS>
Updated Watchman.Engine/Watchman.Engine.csproj to AWSSDK.CloudWatch 3.3.10 from <IP_ADDRESS>
AWSSDK.CloudWatch 3.3.10 on NuGet.org
NuKeeper has generated a patch update of AWSSDK.AutoScaling to <IP_ADDRESS> from <IP_ADDRESS>
AWSSDK.AutoScaling <IP_ADDRESS> was published at 2018-11-16T06:15:56Z, 13 days ago
1 project update:
Updated Watchman.AwsResources/Watchman.AwsResources.csproj to AWSSDK.AutoScaling <IP_ADDRESS> from <IP_ADDRESS>
AWSSDK.AutoScaling <IP_ADDRESS> on NuGet.org
NuKeeper has generated a patch update of AWSSDK.SimpleNotificationService to <IP_ADDRESS> from <IP_ADDRESS>
AWSSDK.SimpleNotificationService <IP_ADDRESS> was published at 2018-11-16T06:24:01Z, 13 days ago
1 project update:
Updated Watchman.Engine/Watchman.Engine.csproj to AWSSDK.SimpleNotificationService <IP_ADDRESS> from <IP_ADDRESS>
AWSSDK.SimpleNotificationService <IP_ADDRESS> on NuGet.org
NuKeeper has generated a  update of AWSSDK.ElasticLoadBalancing to <IP_ADDRESS> from <IP_ADDRESS>
AWSSDK.ElasticLoadBalancing <IP_ADDRESS> was published at 2018-11-16T06:19:01Z, 13 days ago
1 project update:
Updated Watchman.AwsResources/Watchman.AwsResources.csproj to AWSSDK.ElasticLoadBalancing <IP_ADDRESS> from <IP_ADDRESS>
AWSSDK.ElasticLoadBalancing <IP_ADDRESS> on NuGet.org
NuKeeper has generated a patch update of AWSSDK.CloudFormation to 3.3.13 from <IP_ADDRESS>
AWSSDK.CloudFormation 3.3.13 was published at 2018-11-20T02:18:32Z, 9 days ago
1 project update:
Updated Watchman.Engine/Watchman.Engine.csproj to AWSSDK.CloudFormation 3.3.13 from <IP_ADDRESS>
AWSSDK.CloudFormation 3.3.13 on NuGet.org

This is an automated update. Merge only if it passes tests
NuKeeper: https://github.com/NuKeeperDotNet/NuKeeper

covered by #231


Vault Service

@SanjoDeundiak Keeping the vault service in the ockam_vault crate is an interesting idea but I think we should wait on that. For now, I think we should keep the API structures closer to the surface of the library in the ockam_api crate. There's a lot evolving about the API currently and keeping refactors simple will help.

@SanjoDeundiak Keeping the vault service in the ockam_vault crate is an interesting idea but I think we should wait on that. For now, I think we should keep the API structures closer to the surface of the library in the ockam_api crate. There's a lot evolving about the API currently and keeping refactors simple will help.

Things indeed are changing fast, so how about we merge this PR as it is now? It should be pretty simple to move it to any other place later

@SanjoDeundiak sounds good.


basicTouchScreen.ino not working with portenta and TFT V2

Your example basicTouchScreen.ino with
// y- x- y+ x+ connected to YD, XL, YU, XR
PortentaTouchScreen ts(5, A6, A4, 4);

Which I assume is:   A0,     A1,      A2,     A3        on the TFT V2
connected to:           D5,     A6,      A4,     D4      on  the Portenta
I also connected +5V on Portenta to 5V on TFT and GND to GND.
Strangely Vin on the TFT did not light the screen but 5V does.
Anyway, no results. any suggestions. Even if I have A0,A1,A2,A3 to the wrong values I should still get some rsults?
Any other pins needing connections?
By the way, thanks for the explanation about A0-A3 being different from A4-A6 that might help with a few things I am working on.

Yes, I am fully aware that the example is not working correctly with that pin setup.
Your assumtion is fully correct:

YD "y down" maps to A0 on the TFT v2
XL "x left" maps to A1 on the TFT v2
YU "y up" maps to A2 on the TFT v2
XR "x right" maps to A3 on the TFT v2

The letters YD, XL, YU, XR are actually printed on the wide brown connector cable of the TFT:
So just to clarify, the touchscreen it not connected to the rest of the TFT v2 electronically in any way. It is simply glued onto the screen and its four wires from the brown connector just run over the PCB to the header pins. This means connecting the display part of the TFT v2 is another story that this library does not cover.
However, to make the TFT v2 display part work, there are 8 pins that need to be connected.

TFT v2
Arduino Portenta

RESET
RESET

5V
5V

GND (on of them)
GND

------
----------------

D6
Any free digital I/O pin, I used D6

D5
D7 (SPI1 CS)

------
----------------

D11
D8 (SPI1 MOSI)

D12
D10 (SPI1 MISO)

D13
D9 (SPI1 CK)

I have used the Adafruit ILI9341 library to talk to the display.
For connection of the touchscreen part of the TFT, see my answer on Issue #1.

@Lennart401 This is so helpful. Thank you.

Just testing your basic setup. Touch screen works on it's own, now trying the above with the LCD, do you make any changes to the code?
https://github.com/adafruit/Adafruit_ILI9341/tree/master/examples/graphicstest
Thinking these should change here
// For the Adafruit shield, these are the default.
#define TFT_DC 9
#define TFT_CS 10

Can you think of any other minor changes to the LCD test?
With the breakout board I will try A7, but I can also try one of the other 2 SPI sets of pins. If I can get that working I think we need to talk to Arduino about if it can be done without the Breakout board. Bit of a shame to need the huge board when the Portenta form factor is so small.

This setup is working for me, it is from my bigger Arduino project. I don't think I did any other modifications to the graphics test except for the DC & CS pins.
TLDR; TFT_DC should be 6 and TFT_CS should be 7 for my suggested pin setup._

Even if you can get that to work (which would be absolutely fantastic, though!), that would still require the breakout board. I absolutely agree with you, it is a bit frustrating that without the breakout board, only one out of 7 analog pins is fully independently usable. Every single Arduino Uno can do better than that!

@Lennart401 Can you check my pin allocation. My Basic Adafruit_ILI9341 examples aren't working.
.
I am not connecting the pressure pins until I get these examples working.

@Lennart401
The plot thickens:
The following code works using my Arduino Yun and my TFT V2 shield using the seeeduino TFT v2 library. (So easy since it plugs in, arduino needs to make an adaptor board from the  160 pins to the old style.)
#include <SPI.h>
#include <stdint.h>
#include <SeeedTouchScreen.h>
#include <TFTv2.h>

#define ShowSerial Serial

#define TS_MINX 116*2
#define TS_MAXX 890*2
#define TS_MINY 83*2
#define TS_MAXY 913*2

// For better pressure precision, we need to know the resistance
// between X+ and X- Use any multimeter to read it
// The 2.8" TFT Touch shield has 300 ohms across the X plate
                             //  both, both, analog, analog
//TouchScreen ts = TouchScreen(XP, YP, XM, YM);
TouchScreen ts = TouchScreen(A3, A2, A1, A0);

void setup(void) {

    ShowSerial.begin(9600);
    TFT_BL_ON;      // turn on the background light
    Tft.TFTinit();  // init TFT library
    Tft.fillScreen(0, 240, 0, 320, BLUE);

    // no proof this text orientation works!
    TextOrientation orientation;
    orientation = PORTRAIT_VERTICAL; // LANDSCAPE; PORTRAIT_BACKWARDS, PORTRAIT_UPSIDE_DOWN_BACKWARDS,PORTRAIT_UPSIDE_DOWN, PORTRAIT_VERTICAL

}

void loop(void) {
    // a point object holds x y and z(pressure) coordinates
    Point p = ts.getPoint();

    p.x = map(p.x, TS_MINX, TS_MAXX, 0, 240);
    p.y = map(p.y, TS_MINY, TS_MAXY, 0, 320);

    Tft.drawString("Cool" , 90, 140, 3, GREEN);

    // we have some minimum pressure we consider 'valid'
    // pressure of 0 means no pressing!

    if (p.z > __PRESSURE) {
   // if (p.z > 0) {
        ShowSerial.println("x: " + String(p.x) + ", y: " + String(p.y) + ", pressure: " + String(p.z));

        int myRadius = (500-p.z)/10;  // format pressure
        Tft.drawCircle(p.x, p.y, myRadius, random(0xFFFF));    //draw circle, center:(119, 160), color: random

    }

    delay(50);  // slow it down for no real reason
}

but using the Adafruit_ILI9341 library I get a serial printout but nothing active on the screen other than a grey backdrop.  Any suggestions?
I would use the TFTv2 library since the pressure stuff works, but it does not compile on my portenta. Missing the "pgmspace.h" file

@Lennart401
Did some detective work and connected every pin from the YUN with wires to the TFTV2. It did not work! Connected the 6 prong pins at the bottom of the board and it worked?  I thought they would be for debugging.

Well after a few revisions this makes some sense now. Still need to test it but this is what works using the TFTV2 on the Yun for me. The Touch Sensor is listed for what works on the Portenta. On the Yun it is an easy A0->A0, A1->A1,A2>A2,A3->A3 unlike the image

No worries. Got it working, just have to finish up a few things.

So here is my code that works. Strangely unlike on the Yun the edges of the touch screen do not seem very responsive, I have to figure that out. Also tested A5-A0 and only A5 gets pressure readings but cuts off any SPI communication.
Working code needs breakout board for A7 only.

// demonstrates drawing and touch operations.
// needs this library  Adafruit_ILI9341
// needs this library install as zip file https://github.com/Lennart401/PortentaTouchScreen
//

#include <Adafruit_GFX.h>
#include <Adafruit_ILI9341.h>
#include <PortentaTouchScreen.h>

// PortentaTouchScreen ts(XP, YP, XM, YM, 300);  // original
// PortentaTouchScreen ts(A3, A2, A1, A0, 300);  // Yun
// Must be:       digital, analog/digital, analog/digital, digital, resistor across x plate ~300 ohms
// Touchscreen          X+, X-, Y+, Y-, resistor
PortentaTouchScreen ts(D5, A6, A7, D4, 300);  // on Portenta

// Set for Portenta
#define TFT_CS D7
#define TFT_DC D6
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);

void setup(void)
{
  Serial.begin(115200);
  tft.begin();

  tft.fillScreen(ILI9341_BLUE);
  // origin = left,top landscape (USB left upper)
  tft.setRotation(1);

  tft.setTextColor(ILI9341_WHITE);
  tft.setTextSize(2);
  tft.setCursor(100, 20);  //before print set x,y
  tft.println("Working!");

}

void loop(){

    // a point object holds x y and z(pressure) coordinates
    Point p = ts.getPoint();

    int myX      = map(p.x(), 200, 1400, 0, 240);   // map raw x to real x
    int myY      = map(p.y(), 600, 1200, 320, 0);   // map raw y to real y
    int myRadius = map(p.z(), 50, 700, 5, 70);      // map raw Pressure to real Radius

    // we have some minimum pressure we consider 'valid'
    // pressure of 0 means no pressing!

     if (p.z() > 0) {  // minimum presure to register

        Serial.println(" raw x: " + String(p.x()) + ",\t  raw y: " + String(p.y()) + ",\t raw pressure: " + String(p.z()));
        Serial.println("real x: " + String(myX)   + ",\t real y: " + String(myY)   + ",\t real  radius: " + String(myRadius));
        Serial.println("");

        tft.drawCircle(myX, myY, myRadius, random(0xFFFF));    //draw circle, center:(119, 160), color: random
    }
    delay(100);  // 100 slow it down to read serial monitor can speed it up when working
}

@Lennart401
Ever thought of making a high density connector PCB board for the Portenta? This guy is on the Portenta Face book page
https://www.facebook.com/groups/portenta/?multi_permalinks=838667036787840&notif_id=1630612109568129&notif_t=group_activity&ref=notif
his throne PCB is
https://www.facebook.com/watch/?v=788409832111335

Wow, that's some great results! Sorry I couldn't reply earlier, I was busy with other stuff.
I'll make an update to the basicTouchScreen example and incorporate your results into the library README.
As soon as I get can my hands on a portenta breakout board, I'll try working with the touchscreen (I did move to rotary encoders as input devices in the meantime) again, maybe I can find the reason why the touchscreen does not seem to be very responsive at the edges. One possible clue could be the fairly high "LOW"-voltages (~0.7V to GND) I occasionally observed on the portenta, but there might be more to it.
Concerning the high density connector PCB for the portenta: first of all, thanks for the input! I might actually design a PCB with high density connectors at some point, probably in the form of "shield" board, i. e. hold the TFT v2 on top and have some extra connectors to the sides. Something like this:

I'll have to run some tests using the breakout board first though, plus this will not be my top priority for a while, since I'm still very much in the prototyping phase of my main project and there are other things that need to be finished first. Great idea however.

@Lennart401 I know nothing about pcb design, but I think some companies help to make it fairly easy. One thing I would consider is like the breakout board the high desnity connectors can be connected on both sides. That would allow the vision shield to be on the back and the TFTV2 to be on the front. Would be a powerful combination. Sad your project just needs the one A7 connection, seems like a lot of work.
A more useful pcb would be a portenta to Yun style converter shield. That would be really useful for all kinds of old connections.

So I posted this on the portenta facebook page. Any idea to make a single HD connector shield, for situations like your issue with needing A7 connectivity here.

I would probably expose all pins I need using the HD connectors just for simplicity and space saving (e.g. I don't have to do any soldering on the portenta itself).
Mirroring the HD connectors to the other side of the PCB should be pretty easy, just place the same type of connector like on the portenta straight under the top-side connectors (which the portenta connects to) and use vias through the PCB to connect the top and bottom layers.
My idea is that the top side of the PCB would be like the Yun/Uno boards, but where the chips are, there would be the two HD connectors the portenta would mount to. Then, you would mirror the HD connectors to the bottom of the PCB, so you could connect e.g. the vision shield. Since the top of side of the PCB would have the same pin layout like the Yun/Uno, you could solder female pin headers to it for connecting all kinds of old-style shields (e.g. the TFT).
I'll have a look at FB page and see what that brings up.

Yes, what you want to do Arduino should have done when the Portenta first came out. That would give backward compatibility for a ton of shields. I will try to ask the Arduino people on the facebook page.

I absolutely agree with you, that would have been a total game-changer. I guess they wanted to create a "new" environment with the portenta and the accompanying "pro"-shields (that clamp to the HD connectors).
Thank you very much that, we'll see what the future (or Arduino) will bring us.

Hi @Lennart401 . I don't think this solves the problem but I never knew about it.
It is a MKR to UNO adapter. Just thought you should see it
https://store-usa.arduino.cc/collections/mkr-family/products/mkr2uno-adapter

No, I doesn't solve the problem, but that's like the board I imagined. Just with the portenta HD connectors instead of the traditional pin headers (and a few added features like the HD connectors on the back of the board, for e.g. the vision shield).
Thanks for pointing it out though, I never knew about it either.

I always have my Portenta with female headders coming up from the board. Too bad the above board doesn't have male pins going down, then the Portenta could plug right in to the above board from below.


chore(release): v0.7.0 🎉

:robot: I have created a release *beep* *boop*
0.7.0 (2022-02-11)
Features

api-gateway: expose well doc'd enumeration of http status codes (f4b4a4a)

Bug Fixes

doc: update jsdoc comment of BadRequestError for clarity (42df968)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/uladkasach/simple-lambda-handlers/releases/tag/v0.7.0 :sunflower:


Fix speed setting bug

 Issue by owalk
Monday Jan 01, 2024 at 16:00 GMT
Originally opened as https://github.com/Sean-Nishi/M1Wengine/issues/324

When speed is not set to 1, the behavior does not appear to be correct. Debug and resolve this issue so any speed can be used.
Speed set to 2 on minotaurs does not work when they run away.
They also seem to be more than twice as fast on patrol.

 Comment by Sean-Nishi
Tuesday Jan 02, 2024 at 21:09 GMT

Requires debugging skills! This is a test
Look at all characters and players. Does not work as expected!

 Comment by owalk
Thursday Jan 25, 2024 at 18:54 GMT

The bug is not as described above: UPdate
For certain states, speed is hardcoded.
Be based off of character speed instead

 Comment by Sean-Nishi
Wednesday Jan 31, 2024 at 21:41 GMT

Issue partly completed in #348 when adding in self.DEFAULT_SPEED. Make sure it is referenced in all locations instead of magic numbers


Node package missing PATENTS file in package root dir

Similar to #16, but in this case there IS actually a source tree, and one of the two files mentioned by the per-file licensing information is there (LICENSE), but the patent grants are missing.

Our response to #16 is 6fc89d9c5236ef3de5e7004ee5499ca518179b59
We'll link back to this repo from all compiled sources.
Appreciate the PR for npm, though. I'll accept it now.

Thanks, problem solved :)


Change volume

As a user, I want to be able to change background music’s volume in case it’s too loud or silent.
Acceptance criteria:
The app should allow the user to dynamically change the volume.

The function is still in progress. Due to major changes in the code and bug fix, I decided to move the implementation to the next few days.  I hope, we can avoid some visual and function bug in future.


Logitech MX Anywhere 2s side buttons are reversed

Information

ratbagd version (ratbagd --version): 0.12
Piper version: 0.3
Distribution: Elementary OS 5.1
Kernel version (ex. uname -srmo): Linux 5.4.10-050410-generic x86_64 GNU/Linux

Describe the bug
The two side buttons are inverted
To Reproduce
Please make sure your bug is reproducible with the CLI client, ratbagctl. If it is not open a bug report in libratbag instead.
Steps to reproduce the behavior:

Set top side button to forward
Set bottom side button to backward
With chrome open, press bottom side button and expect to go back (to previous tab), but go forward instead

Logs
Please start the daemon with verbosity and reproduce the issue.

Maybe the button names are switched in the SVG.


Logo change

I'm submitting a ...
[ x] feature request

Pull request: https://github.com/solana-labs/token-list/pull/20017

added comment in PR


Question: Does Azurite blob storage support range download?

Which service(blob, file, queue, table) does this issue concern?
Blob Storage
Which version of the Azurite was used?
Docker latest
Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)
DockerHub
What's the Node.js version?
What problem was encountered?
When trying to download a byte range from Azurite, a FeatureNotSupported error is reported as follows.
Also, the integration test does not include range download, adding one fails with the same error.
Err(Error { context: Full(Custom { kind: HttpResponse { status: InternalServerError, error_code: Some("FeatureNotSupported") }, error: HttpError { status: InternalServerError, error_code: Some("FeatureNotSupported"), headers: {"x-ms-error-code": "FeatureNotSupported", "connection": "keep-alive", "server": "Azurite-Blob/3.18.0", "transfer-encoding": "chunked", "keep-alive": "timeout=5", "x-ms-request-id": "b7846c1d-1b22-482e-a7a6-c8e5ed157758", "date": "Thu, 14 Jul 2022 14:27:15 GMT", "content-type": "application/xml"}, body: b"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<Error>\n  FeatureNotSupported\n  <Message>x-ms-range-get-content-crc64 header or parameter is not supported in Azurite strict mode. Switch to loose model by Azurite command line parameter \"--loose\" or Visual Studio Code configuration \"Loose\". Please vote your wanted features to https://github.com/azure/azurite/issues\nRequestId:b7846c1d-1b22-482e-a7a6-c8e5ed157758\nTime:2022-07-14T14:27:15.672Z</Message>\n</Error>" } }, "server returned error status which will not be retried") })

Please be sure to remove any PII or sensitive information before sharing!
The debug log will log raw request headers and bodies, so that we can replay these against Azurite using REST and create tests to validate resolution.
Have you found a mitigation/solution?
No

@evanxg852000
Latest Azurite support blob range download.
But Azurite doesn't support CRC64
From the error message, you can also find the root cause.
Do you want to retry with loose mode?

x-ms-range-get-content-crc64 header or parameter is not supported in Azurite strict mode. Switch to loose model by Azurite command line parameter "--loose" or Visual Studio Code configuration "Loose".

Thanks a lot. it's now working with --loose flag

Thanks a lot. it's now working with --loose flag


Missing /etc/hosts on containers with --network container:name

Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description

When starting a container with --network container:name, dependent containers don't get a /etc/hosts file
Steps to reproduce the issue:

podman pod create --name=test --share net
podman run -d --name=netcontainer --pod=test busybox sleep 100000
podman run --rm --pod=test --network container:netcontainer busybox cat /etc/hosts

Describe the results you received:
$ podman run --rm --pod=test --network container:netcontainer busybox cat /etc/hosts
cat: can't open '/etc/hosts': No such file or directory

Describe the results you expected:
/etc/hosts should be there
Additional information you deem important (e.g. issue happens only occasionally):
This happens both with SELinux in "permissive" and "enforcing" mode, no AVCs in audit.log
Output of podman version:
Version:            1.6.2
RemoteAPI Version:  1
Go Version:         go1.13.1
OS/Arch:            linux/amd64

Output of podman info --debug:
debug:
  compiler: gc
  git commit: ""
  go version: go1.13.1
  podman version: 1.6.2
host:
  BuildahVersion: 1.11.3
  CgroupVersion: v2
  Conmon:
    package: conmon-2.0.2-1.fc31.x86_64
    path: /usr/bin/conmon
    version: 'conmon version 2.0.2, commit: 186a550ba0866ce799d74006dab97969a2107979'
  Distribution:
    distribution: fedora
    version: "31"
  IDMappings:
    gidmap:
    - container_id: 0
      host_id: 1000
      size: 1
    - container_id: 1
      host_id: 100000
      size: 65536
    uidmap:
    - container_id: 0
      host_id: 1000
      size: 1
    - container_id: 1
      host_id: 100000
      size: 65536
  MemFree:<PHONE_NUMBER>
  MemTotal:<PHONE_NUMBER>
  OCIRuntime:
    name: crun
    package: crun-0.10.6-1.fc31.x86_64
    path: /usr/bin/crun
    version: |-
      crun version 0.10.6
      spec: 1.0.0
      +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +YAJL
  SwapFree: 536866816
  SwapTotal: 536866816
  arch: amd64
  cpus: 4
  eventlogger: journald
  hostname: quinto
  kernel: 5.3.13-300.fc31.x86_64
  os: linux
  rootless: true
  slirp4netns:
    Executable: /usr/bin/slirp4netns
    Package: slirp4netns-0.4.0-20.1.dev.gitbbd6f25.fc31.x86_64
    Version: |-
      slirp4netns version 0.4.0-beta.3+dev
      commit: bbd6f25c70d5db2a1cd3bfb0416a8db99a75ed7e
  uptime: 11h 15m 30.16s (Approximately 0.46 days)
registries:
  blocked: null
  insecure: null
  search:
  - docker.io
  - registry.fedoraproject.org
  - registry.access.redhat.com
  - registry.centos.org
  - quay.io
store:
  ConfigFile: /home/fcoelho/.config/containers/storage.conf
  ContainerStore:
    number: 3
  GraphDriverName: overlay
  GraphOptions:
    overlay.mount_program:
      Executable: /usr/bin/fuse-overlayfs
      Package: fuse-overlayfs-0.7-1.fc31.x86_64
      Version: |-
        fusermount3 version: 3.6.2
        fuse-overlayfs: version 0.7
        FUSE library version 3.6.2
        using FUSE kernel interface version 7.29
  GraphRoot: /home/fcoelho/.local/share/containers/storage
  GraphStatus:
    Backing Filesystem: extfs
    Native Overlay Diff: "false"
    Supports d_type: "true"
    Using metacopy: "false"
  ImageStore:
    number: 7
  RunRoot: /run/user/1000
  VolumePath: /home/fcoelho/.local/share/containers/storage/volumes

Package info (e.g. output of rpm -q podman or apt list podman):
podman-1.6.2-2.fc31.x86_64

Additional environment details (AWS, VirtualBox, physical, etc.):
Laptop with Fedora 31 installed a few days ago, the system was fully updated/rebooted before running the commands above

Confirmed, repros fine over here, investigating...

Fix in #4629

just an update: tested develop against my original use case (which is a bit more involved than the repro steps above) and it works as expected, thanks for the quick fix!


M3-1503 Implement Pagey on Volumes Landing

Purpose
Use Pagey HOC on VolumesLanding instead of tracking pagination inside the component
Notes

Because we need to use streams to add event data to each of the Volumes, we need to wait until this.props.request() that comes from Pagey, to be completed.

because of this, we store the Volumes data from Pagey inside VolumesLanding state and update it when a new relevant event comes in

As an alternative approach, I attempted to abstract the stream logic into an HOC, but it proved to be complicated.

Todo

[ ] Sorting table headers, but I wanted feedback on this PR first

Coverage increased (+0.05%) to 27.101% when pulling 226f8e1f1cc0fe71b3ea5ee042e2a8688c04977d on martinmckenna:volumes-pagey into 2352d2093ece9e258f6cafb14e5740bf838e8bd6 on linode:develop.

I'm not quite sure what volumes is doing in VolumesLanding state. It isn't read anywhere in the file; if it needs to be maintained, could it be in the withEvents state? Or is this due to reusability concerns?
Also, same thing with eventsSub; it's declared in the landing page, but only referred to from within the HOC. Is there any reason it can't be declared in there, or is it a this issue?

@Jskobos That was just an oversight. I removed the unused code


adding torchrun elastic params

What does this PR do?

Resolves #677
Run below example script with additional torchrun elastic params as below:

accelerate launch --max_restarts=10 --rdzv_conf="timeout=10" examples/nlp_example.py

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

It looks like those new fields are not used anywhere afterwards?

Hello, it is being used via below lines:
https://github.com/huggingface/accelerate/blob/4400eb90b29638deec117f95fecdcb79bd7684cb/src/accelerate/commands/launch.py#L465
https://github.com/huggingface/accelerate/blob/4400eb90b29638deec117f95fecdcb79bd7684cb/src/accelerate/utils/launch.py#L51