Expected start or end tag when unmarshalling

I'm currently assessing jsonix as a component for an open souce capability for Enterprise Models visualisation.
From an XML schema, I created the P0 mapping.
I then referenced it for unmarshaling an xml file created according to the schema. But I had the message error indicated in the title.
I tried it with a simpler schema, but had the same error message.
I've difficulties interpreting where the problem comes from.
Error message is the following:
`/Users/nicolasfigay/node_modules/jsonix/jsonix.js:1298
throw new Error('Expected start or end tag.');
^
Error: Expected start or end tag.
at Object.nextTag (/Users/nicolasfigay/node_modules/jsonix/jsonix.js:1298:10)
at Object.unmarshalDocument (/Users/nicolasfigay/node_modules/jsonix/jsonix.js:2129:9)
at /Users/nicolasfigay/node_modules/jsonix/jsonix.js:2099:18
at /Users/nicolasfigay/node_modules/jsonix/jsonix.js:164:8
at Object.handleTransport (/Users/nicolasfigay/node_modules/jsonix/jsonix.js:309:7)
at transport.onreadystatechange (/Users/nicolasfigay/node_modules/jsonix/jsonix.js:298:13)
at dispatchEvent (/Users/nicolasfigay/node_modules/xmlhttprequest/lib/XMLHttpRequest.js:591:25)
at setState (/Users/nicolasfigay/node_modules/xmlhttprequest/lib/XMLHttpRequest.js:610:14)
at handleError (/Users/nicolasfigay/node_modules/xmlhttprequest/lib/XMLHttpRequest.js:532:5)
at ClientRequest.errorHandler (/Users/nicolasfigay/node_modules/xmlhttprequest/lib/XMLHttpRequest.js:459:14)`
Code is the following:
`ar http = require('http');
var fs = require('fs');
var Jsonix = require('jsonix').Jsonix;
var PO = require('./PO.js').PO;
http.createServer(function (req, res) {
// First we construct a Jsonix context - a factory for unmarshaller (parser)
// and marshaller (serializer)
var context = new Jsonix.Context([PO]);
// Then we create a unmarshaller
var unmarshaller = context.createUnmarshaller();
unmarshaller.unmarshalURL('./Model_View.xml',
function (unmarshalled) {
console.log('OK');
});
res.writeHead(200, {'Content-Type': 'text/html'});
res.end('Hello World!');
}).listen(8080);`
Any idea concerning the origin of the error?
Best regards.

I'd first check if ./Model_View.xml really delivers valid XML.

Thanks for your quick response.
After multiple changes, I identified the issue came from usage of unmarshaling with URL which was probably invalid. Using UnmarshalFile with node.js  worked well.
It was not very easy identifying the problem with the error message.
Best regards.

I had the exact same mistake, copy pasted the example from the README, with unmarshallURL and a local file. Changing to unmarshalFile solved the issue for me:
  // Unmarshal an object from the XML retrieved from the URL
- unmarshaller.unmarshalURL('po.xml',
+ unmarshaller.unmarshalFile('po.xml',
      // This callback function will be provided
      // with the result of the unmarshalling
      function (unmarshalled) {


[Bug]

What happened?
Could not connect to database. Please check database details. You might need to create database first.
does not connect to the database during installation
mySQL 8.00
tried with php version   8,0,28  \ 7,4,33 \ 8,1,18 \ 8,2
all required modules included
OS - Windows Server 2022
BoxBilling Version
v4.22-beta.1.5
What version of PHP are you running?
Something unsupported
Additional Notes
Additional notes

https://github.com/FOSSBilling/FOSSBilling


Messy Code Rendered with PDFJS while Text Layers Seem Fine.

Attach (recommended) or Link to PDF file here:
2020042702680_c.pdf
Configuration:

Web browser and its version: Chrome/81.0.4044.122
Operating system and its version: Macintosh; Intel Mac OS X 10_15_3
PDF.js version: Stable v2.3.200
Is a browser extension: No

Steps to reproduce the problem:

Open the problem PDF with PDFJS （Chinese is the primary language in the document)
Scroll to page 2 and see.
You'll find the content from page 2 is almost all messy code that is not readable.
Open the problem PDF with Chrome, Apple Preview, there's no rendering issue like this.
However, if you select and copy some messy text, the copied string looks correct, which is different from what is rendered in PDFJS.

What is the expected behavior?
The PDF should be rendered correctly. The screenshot takes page 4 as an example.

What went wrong?
Messy code rendered from page 2. The screenshot takes page 4 as an example.

Looks fine in Firefox 77 on Windows, using PDF.js version 2.5.95.

PDF.js version: Stable v2.3.200

Can you reproduce using either version v2.4.456 (i.e. the current pre-release), or with the demo viewer?

Renders fine for me with Firefox 75.0 (64-bit) on Arch Linux.

Renders fine for me with Google chrome Version 79.0.3945.88 on Ubuntu.

Looks fine in Firefox 77 on Windows, using PDF.js version 2.5.95.

PDF.js version: Stable v2.3.200

Can you reproduce using either version v2.4.456 (i.e. the current pre-release), or with the demo viewer?

Yes, I am able to reproduce with the demo viewer.
I also tried Safari [Version 13.1 (156<IP_ADDRESS>.8)], which renders fine; and Firefox [Version 76.0.1], which has exactly the same problem as Chome [Version 81.0.4044.138] does.
(Sorry for the late reply. Thank you for your patience.)

Renders fine for me with Firefox 75.0 (64-bit) on Arch Linux.

Not for Firefox 76.0.1 (64-bit) on Mac OS X 10.15.4.

When I opened the issue, I was using PDFJS local build v2.3.200.
Now with PDFJS v2.5.163 in the online demo, I am equally able to reproduce the issue with Firefox [Version 76.0.1] and Chome [Version 81.0.4044.138], both of which are the latest version at the time of writing.

If this is consistently reproducible in different browsers on one platform, in this case MacOS, that could suggest a OS and/or possibly graphics driver problem rather than a PDF.js one.
If this actually is a PDF.js font conversion bug, then you'd generally expect it to be consistently broken everywhere; hence it's unfortunately (at the moment) not clear that this is an actionable PDF.js issue.

Given that it seems to work on all platforms except MacOS, I would suggest to check the graphics driver for available updates since that could cause such corruption. I don't see anything we can do about this on the PDF.js side though.

老哥，问题有解决吗


Simple record creation?

Something else did actually come up :)
I was just wondering if there is a simple way of creating records in a single zone?
Eg. -> I create a home.lan zone, and in it have records for

snitch : <IP_ADDRESS>
x : <IP_ADDRESS>
y : <IP_ADDRESS>
etc...
So when going to snitch.home.lan in my browser it would resolve to <IP_ADDRESS>

Something similar to my Pi-Hole config?

I found the snitch config a bit confusing since I'm used to having a query and a response. Here I just see the response? Seems a bit overkill having to create zones for each query and then add A records individually

I might understand how basic DNS works, but apparently I'm not a guru, seeing all the options I could configure inside snitch.

Yes, at the moment the way the GUI works is that each (sub)domain is its own zone, and from GUI there isn't a quick and easy way of creating zones as a batch.
You could however batch-import them using a CSV by visiting /dns/import - would that work?

I did most of the stuff manually, don't have a lot of records, but it would be nice to have a simple way of migrating to snitch, for future reference.


Add an introduction article in Russian

Hi guys! I wrote an article on Toothpick last year, and some folks liked it. Could I add it to the article list? Not a lot of content in Russian on Toothpick, and the library is awesome)

Coverage remained the same at 95.618% when pulling 55ef626b87764a46d6fa56725d61a03c6b3c6b39 on alaershov:add-russian-article into 6b0414535f30686ea081c0981f8dc13103fc0ded on stephanenicolas:master.

Hi @alaershov , we can't appreciate your article as we don't speak Russian.
But thx for writing it and helping other users.


curbsides, point_hints etc.

The /route endpoint of the GraphHopper server (and the Directions API) support some parameters that we cannot use in GH maps so far. Some rather important ones:

[ ] point_hint
[ ] snap_prevention
[ ] curbside
[ ] heading
[ ] pass_through

Not sure how to support these. point_hint and curbside can/need to be specified for each point. pass_through and snap_prevention are global parameters that only need to be specified once. heading is something in between, but it probably would be sufficient to only support a single heading for the first point, then it would also be a 'global' parameter.
Adding some kind of settings menu where we could put such global parameters seems not too complicated. Adding UI elements to specify point_hint and curbside for every point could lead to a bloated interface.

Maybe we could allow setting some parameters via the query input boxes, or a context menu for the markers? Not being able to set curbside/heading certainly makes it harder to test and improve these features.

Entering the parameters into the input boxes seems more reasonable than entering them via the browser's url field, doesn't it? But we would have to make sure this does not interfere with the auto-complete / geocoding menu. If we allowed setting these parameters via a context menu of the markers there would be no need to display the exact values explicitly at all and we could simply visualize them instead. For example we could show a little arrow for the heading or some modified marker for the curbside parameters (?).

(Of course this means that these parameters disappear after loading the URL and it might be unclear if follow up contain the parameter or not, but probably a similar problem exists with a context menu for markers?

In any case the parameters would be stored in the app state, just like the query point coordinates. And we can add them to the url as well, just like the coordinates. Or maybe I did not understand what you meant?

Yes, especially once we add draggable markers in explorer and we are able to create a route (including curbsides etc) via the url there.


is code protection possible ?

hello
ok far to begin my adventure project with friends but i have a question: is it possible to protect the game ? i want to try to sell it later and i have no idea if your FANTASTIC  software makes possible to put a serial or something else :)
anyway thanx a lot for this pure great piece of sofware, it works perfectly and i can't wait some more to begin my project
regards
stéphane

Hi,
Are you talking about DRM or something like that?
Regards,
Rafael

hello Rafael :)
thanx a lot answering me.
yes why not ? just make possible to protect the game.
ok just know i'm studing actually and no way to begin the game right now (till 9 moths to wait for) but your software is fantastic :) just know i'm fan of ^^
kindly regards to you
stéphane

Hi,
The engine doesn't have integrated DRM, but some platforms give tools to protect games easily.
For example, Steam can add DRM to your game when you release the game in the platform: https://partner.steamgames.com/doc/features/drm
iOS adds the DRM always when you upload the game to the store.
Also, it is not difficult to add a third party DRM library to the game created with the engine, but you need programming skills.
Regards,
Rafael

hello rafael and thanx a lot for your answer !
ok i will do as this :) your tool is wonderfull :)
thanx yet


Add timer functionality

Thanks for a great app! I previously forked another swift app with the same purpose and hacked in some basic support for a standing timer here However your implementation seems to work better when moving, and is very nicely polished.
But some optional timer functionality would be nice. No matter how accessible it is i still seem to forget to stand... :facepalm:

@DWilliames As I said in the PR, I would love to see this functionality implemented.

Finally got around to merging this in!! Thanks for your work on it @meck


refine ratify-verify-azure-cmd.md and update the installation links

Signed-off-by: Feynman Zhou<EMAIL_ADDRESS>Description
Please include a summary of the changes and relevant context. Please also reference any related issue in your repository.
Fixes #241
Type of change
Please delete options that are not relevant.

[x] Update documentation

How Has This Been Tested?
It's just a doc change.
Checklist:

[ ] Does the affected code have corresponding tests?
[ ] Are the changes documented, not just with inline documentation, but also with conceptual documentation such as an overview of a new feature, or task-based documentation like a tutorial? Consider if this change should be announced on your project blog.
[ ] Does this introduce breaking changes that would require an announcement or bumping the major version?
[ ] Do all new files have an appropriate license header?

thanks @FeynmanZhou, LGTM , are you happy for me to merge this?

thanks @FeynmanZhou, LGTM , are you happy for me to merge this?

Yes, thanks!


Can't get the solution to run in Ex 9: Transport

My solution and the provided sample work fine when invoked from node and tested with curl or a browser, but neither will work when tested with seneca-in-practice.
I get the following error:

seneca-in-practice run transport.js

/Users/marki/.nvm/versions/node/v0.12.12/lib/node_modules/seneca-in-practice/problems/transport/exercise.js:71
          , exercise.__('fail.connection', {address: url, message: err.message
                     ^
TypeError: undefined is not a function
    at DuplexWrapper.<anonymous> (/Users/marki/.nvm/versions/node/v0.12.12/lib/node_modules/seneca-in-practice/problems/transport/exercise.js:71:22)
    at DuplexWrapper.emit (events.js:129:20)
    at ClientRequest.<anonymous> (/Users/marki/.nvm/versions/node/v0.12.12/lib/node_modules/seneca-in-practice/node_modules/hyperquest/index.js:13:19)
    at ClientRequest.emit (events.js:129:20)
    at Socket.socketErrorListener (_http_client.js:271:9)
    at Socket.emit (events.js:107:17)
    at net.js:459:14
    at process._tickCallback (node.js:355:11)

Same issue here. I think the exercise is broken. I've been able to run the server and make HTTP requests to it successfully.

That should fix it: https://github.com/senecajs/seneca-in-practice/pull/42

Merged in Released 0.1.14

I confirm that this is fixed.


Publish typeAcquisition as a package

Improvement Idea:
Make a package out of the typeAcquisition.
PS. @typescript/sandbox could also be published - there would be probably users wanting to use that in their projects as well.
Why:
It's a good feature for online playgrounds and I could make use of this being a package 😉 I could also help to set this up if I would only get a green light for this.

Ah, I missed this, yeah I think maybe making @typescript/web-typeacquisition can make sense.
WRT the sandbox as a standalone, I'm less sure, I don't really want to support the many permutations of bundling setups people have (especially as the TS website doesn't use them and is just AMD) - I've seen the number of reports over at monaco and keeping on top of that is work

I'm mostly interested in the type acquisition part - so that's OK with me 😅
I could prepare a PR introducing setup for the @typescript/web-typeacquisition package (based on what you have there for @typescript/vfs). Would you like me to give this a spin?
One thing that I'm not sure about... is this Algolia endpoint considered to be public? or should this be provided by the consumer of a package?

I think it's probably a good idea to have that as a string you pass, @haroenv will probably have the definitive opinion on that

The endpoint is not meant to be used as-is, since it doesn't retry, I'd prefer if you use the algolia (lite) client
import algoliasearch from 'algoliasearch/lite';

const client = algoliasearch('OFCNCOG2CU', 'f54e21fa3a2a0160595bb058179bfb1e');

const object = await client.initIndex('npm-search').getObject(name);

I understand that the typescript website didn't want to add dependencies, but adding the retry strategy will drastically improve response time and resilience.
If you're planning to make a bigger project than something small as a side @andarist, I'd love to hear more about what you're making and give a dedicated api key

If you're planning to make a bigger project than something small as a side @Andarist, I'd love to hear more about what you're making and give a dedicated api key.

The use case is rather small at the moment - I'm working on the XState visualizer at the moment ( https://stately.ai/viz ) and, at the moment, I only need to fetch types for the xstate package itself. Once we start relying on static analysis instead of code evaluation in realms it would be cool to enable type acquisition for everything - just like it works on the TS playground itself. For now, I'm just filtering out requests for non-xstate packages.

The endpoint is not meant to be used as-is, since it doesn't retry, I'd prefer if you use the algolia (lite) client

This would require us to set up our own algolia's npm-search index/server, right?

I've just seen this: https://github.com/microsoft/TypeScript/issues/45314 and I wonder if this just won't implement what I want "natively" in the TS server. Would that assessment be right?

No, you can use the code I put in the previous example instead of the fetch that happens now, or just the same appId/apiKey/indexName combo as used in this repo if you don't want to modify the typescript code.

Oh, cool! I wasn't sure if I'm supposed to use those app ids etc or if they are considered to be "private". I don't expect for us to flood that with requests but I wouldn't like to use private-like resources without permission.


Voting based on a list of emoji

I'm an absolute newbie to Python, so please let me know if the code should be improved. (I don't want to be responsible for increasing the death counter 😨)
Solves #41
Note: The list of emojis is a bit verbose, as emoji.demojize, reactions and comment body emojis all seem to use slightly different shortcodes.

What if someone reacts with both a positive and negative emoji?

It uses the positive one (that list is iterated first, and if a hit is found, the vote score is returned before iterating the negative list). Not sure how it was originally...

Perhaps we should add the list of positive/negative emojis to the README?

Reactions on this PR are a good use-case 😄


Clicked notification turns white

Comment from user testing on Windows:
When the notification is clicked and the modal pops up, the notification turns white but has rounded edges and a different purple background color.

The latest behavior requested from mwc-design is that when the notification is clicked, the background should be white with the text the same purple color as the background when the notification was not clicked. The colors have been fixed as part of https://github.com/mwcproject/mwc-qt-wallet/issues/521. The rounded edges have been fixed and they are now no longer rounded.

Verified the color fix on Notifications messages, hence closing this ticket.


Refactor ELCAssetTablePicker to be a UICollectionViewController

Please take a moment to fill out the following:
Cleans up #650
Changes Proposed in this pull request:
ELCAssetTablePicker, likely due to its noted age in the original PR, was acting a lot like a poor mans UICollectionViewController. I've made it a less-poor mans implementation deriving from CollectionView and tried to clean the API up a bit. This should be easier to maintain and behave less quirky (i.e. not having to listen to rotation changes and manually recalculate layout).
I didn't do this here, but I also think we should unify the single-select vs multi-select codepaths, and not use two different view controllers in the two cases. I assume this wasn't done because the multi-select was just introduced and so is untested? I actually stumbled on this refactor because I was trying to debug a multi-select issue and wasn't aware I was looking at the wrong view controller : )
Also, a disclaimer that I am very new to Xamarin/C#, so please excuse any idiom violations.

@vatsalyagoel can you look at this?

I'm currently travelling. Will have a look once I get back next week. :)

@vatsalyagoel - pinging here to see if you had a chance to review.
I'd love to get this in so I can look at unifying single/multi-select. I'm not a big fan of the custom modal on tablet, so I'm hoping to get some time to switch that to a 'proper' modal at some point.

Hi @J-Swift,
I'll go through the changes today. They look good just need to do some more testing :)

@jamesmontemagno, @J-Swift this looks good to go.


Fix documentation build in release rake tasks

Allow docs build tasks to fail, don't rescue them.

The rescue concerns me. This change will now have the effect of publishing the new docs even if the gem push fails somehow.

@dazuma I've updated the task to only publish the docs if the gem push succeeded. If the docs generation fails then re-running the CI job will not rebuild the docs. We will have to re-publish docs locally and not on CI.

The original motivation for the rescue was to allow a failed release CI job to be rerun. So docs would be rebuilt even if the gem was previously released. I'm okay with changing this to allow a re-run CI job to fail.


chore: gofmt fix and enable in CI

Closes #NA
📑 Description

Fix some files detected by make fmt
Add make test and make fmt into Github Action.
✅ Checks

[x] My pull request adheres to the code style of this project
[NA] My code requires changes to the documentation
[NA] I have updated the documentation as required
[x] All the tests have passed

ℹ Additional Information

@cubxxw can you please help to review, as a CI expert ?
I'm not sure if the make command will work in Github Action (but seems no way to test it unless merge it), can you help me to confirm ?
thank you so much.

Hmm... Thanks for both of you...
@cubxxw,about the reason why the fmt pass ,  all files are align with gofmt, so make gofmt returns nothing. Am I right ?

Thanks for both of you... @cubxxw:

about the reason why the fmt pass ,  all files are align with gofmt, so make gofmt returns nothing. Am I right ?
Can you help about how to refine the checking for make fmt. you are right, my code looks ugly...

Since there is no change in itself, make fmt may be due to nothing being executed, so there is no corresponding, and you are right.
I will keep this in mind later in the design of the CICD stream. Thank you for trusting me


Receiving unauthorized errors when calling API and 400 status when trying to get access token

I have the api client in a singleton in a websocket application that will handle multiple different clients. The flow will allow for people to create their own tda client with their keys and then call the api client. Below is my following issue specifically with the API.
When I try to get market history, I am getting 401 unauthorized and I cannot get my access token. I have tried with @AMER.OAUTHAP appended to the client id and without it, but to no avail. I have attached the flow for which you can draw the issue from. Is this an api issue? I see where the code is suppose to use my credentials to retrieve the token but I am not sure as to why It is not working nor do I see the appended tokens when a call is made as a param in the url.

Before you try with something this complicated, have you tried a very simple flow with just your own TDA props? For example, generate your refresh_token and see if you can get this simple project to run: TDA Client Example? Because it's likely you're using invalid refresh tokens which can be very difficult to generate.
Also, in your code you're doing this weird thing where you are creating property files in the class path for each unique user (whom I assume has already generated their refresh token correctly). You shouldn't do that because I'm not even sure that is the correct location for that file when you're running within the application (it will depend on where you started the app, etc).
Instead, you can just create a Java properties and pass that to the HttpTdaClient constructor:
For example see this: Setting Properties in Constructor.
Finally, don't know if you're aware but TDA is moving all their accounts over to Schwab, which bought TDA last year. When they do that for each account, this API will no longer work for the account, AFAICT.
I myself just got a notice that my account is moving on September 1st, so I don't know how much longer the TDA Api will even work for my own account.
So I wouldn't spend too much time on this project since it's likely to not even work within a few months. Whether Schwab creates a new API is not yet known. And I doubt it would be backwards compatible anyway. Sorry :(

Thank you for the quick response!
Regarding the writing to the properties file, I only because it looked like the interceptor was might have reading from a file and I saw some mentioning of creating it in the resource file, so I wanted to try that first to see what exactly the correct flow was, but I think I figured out my main issue. The appending of @AMER.OAUTHAP is most likely the issue. I am going to retry it again here shortly and see if that is the case. I was following some other tutorial that was in python but most of it applies directly to Java.
Also, I was aware of the Schwab merger, but they have not made any updates with how far along they are regarding the api, but I saw something about the Schwab API in the docs. I will wait and see what becomes of it. Luckily this project was just a mini side project for my portfolio in which I just needed any API to test my trading strategies and possibly have some friends use your API to automate their trading, so my next question is do you plan to work on a new API wrapper when the smoke clears, whether solo or joint with someone? If not, that is also understandable and thank you for you time and effort!


Youtube premium or member Videos Download Failed

Checklist

[V] I'm reporting a broken site support issue
[V] I've verified that I'm running youtube-dl version 2021.03.03
[V] I've checked that all provided URLs are alive and playable in a browser
[V] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[V] I've searched the bugtracker for similar bug reports including closed ones
[V] I've read bugs section in FAQ

Verbose log

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'-u', u'PRIVATE', u'-g', u'--get-url', u'https://www.youtube.com/watch?v=gdGL2P3Wyp8']
Type account password and press [Return]:
[debug] Encodings: locale None, fs None, out None, pref UTF-8
[debug] youtube-dl version 2021.03.03
[debug] Python version 2.7.12 (CPython) - Linux-4.1.35-armv8l-with-libc
[debug] exe versions: rtmpdump present
[debug] Proxy map: {}
WARNING: Unable to look up account info: HTTP Error 400: Bad Request
ERROR: Join this channel to get access to members-only content like this video, and other exclusive perks.
Traceback (most recent call last):
  File "/usr/lib/python2.7/youtube_dl/YoutubeDL.py", line 806, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/lib/python2.7/youtube_dl/YoutubeDL.py", line 827, in __extract_info
    ie_result = ie.extract(url)
  File "/usr/lib/python2.7/youtube_dl/extractor/common.py", line 532, in extract
    ie_result = self._real_extract(url)
  File "/usr/lib/python2.7/youtube_dl/extractor/youtube.py", line 1658, in _real_extract
    raise ExtractorError(reason, expected=True)
ExtractorError: Join this channel to get access to members-only content like this video, and other exclusive perks.

Description

Is there a solution to this problem?

Pass authenticated cookies.

Hmm… it is not planned to implement a workaround?


Possible bug

Hi, I just cloned and run the acqdp with the command shown below, and I found a error.
I redirected the output to a log, and I pasted both stderr and stdout as below:
(qulacs) [gengyura@d05-37 acqdp]$ python3 ./examples/circuit_simulation.py benchmark/circuit_n53_m10_s0_e0_pABCDCDAB.qsim --save-order opt-m10 > m10-origional-d05-37.log

Traceback (most recent call last):
  File "./examples/circuit_simulation.py", line 149, in <module>
    tsk = tn.compile(order, **kwargs)
  File "/home1/gengyura/acqdp/acqdp/tensor_network/tensor_network.py", line 113, in compile
    return Compiler(**kwargs.get('compiler_params', {})).compile(self, order)
  File "/home1/gengyura/acqdp/acqdp/tensor_network/compiler.py", line 50, in compile
    res = self._generate_template(tn, scheme=scheme, **kwargs)
  File "/home1/gengyura/acqdp/acqdp/tensor_network/compiler.py", line 70, in _generate_template
    init_order, final_order = self._order_patch(tn_copy.copy(), order, split,
  File "/home1/gengyura/acqdp/acqdp/tensor_network/compiler.py", line 220, in _order_patch
    final_order = self._patch_order(tn_copy, final_order)
  File "/home1/gengyura/acqdp/acqdp/tensor_network/compiler.py", line 258, in _patch_order
    res = tree.patch(self.patch_size)
  File "/home1/gengyura/acqdp/acqdp/tensor_network/contraction_tree.py", line 278, in patch
    self.merge_nodes(width)
  File "/home1/gengyura/acqdp/acqdp/tensor_network/contraction_tree.py", line 183, in merge_nodes
    m0 = m0.union(brb[0][i][1]).difference(brb[0][i][2])
IndexError: list index out of range

in the log:
(3_w,7)-aCMA-ES (mu_w=2.3,w_1=58%) in dimension 3 (seed=698316605, Tue Jan 19 05:15:47 2021)
Iterat #Fevals   function value  axis ratio  sigma  min&max std  t[m:s]
    1      7 1.119770173288873e+01 1.0e+00 1.93e-01  2e-01  2e-01 0:08.2
    2     14 1.125634101323780e+01 1.4e+00 1.68e-01  1e-01  2e-01 0:14.4
    3     21 1.127719546809599e+01 1.6e+00 1.53e-01  1e-01  2e-01 0:21.5
    4     28 1.136495725718497e+01 1.7e+00 1.32e-01  9e-02  1e-01 0:28.4
    5     35 1.119770173288873e+01 1.7e+00 1.17e-01  7e-02  1e-01 0:35.5
    6     42 1.125634101385395e+01 1.7e+00 1.32e-01  8e-02  1e-01 0:42.5
    7     49 1.134322401217997e+01 1.7e+00 1.47e-01  8e-02  1e-01 0:48.7
    9     63 1.119393613620733e+01 2.2e+00 1.06e-01  4e-02  1e-01 1:02.1
Process 0 initial cost: cost = 10.94684080523537, cw = 28.0, num_slice = 0
Process 0 succeeded with cost = 10.708556981162134, cw = 26.0, num_slice = 0
cost = 10.708556981162134, cw = 26.0, num_slice = 0
Saving order file opt-m10

This bug happens randomly, I'm unable to reproduce it with the same configuration

This bug happens randomly, I'm unable to reproduce it with the same configuration

Maybe try to disable multithreading?


As Spanish Wikibooks damaging and goodfaith models

Bug: T176332

Wow!  A surprising level of fitness. :)


FileCreate/FileUpdate automatic chunking

🆕🐥 First Timers Only
This issue is reserved for people who have never contributed to Hedera or any open source project in general.
We know that creating a pull request (PR) is a major barrier for new contributors.
The goal of this issue and all other issues labeled by 'good first issue' is to help you make your first contribution to Hedera.
👾 Description of the issue
When creating or updating a file using the FileCreateTransaction or FileUpdateTransaction, if the contents are too large for a single transaction, a FileAppendTransaction is required to be created in addition to the FileCreate/FileUpdate.
FileAppendTransaction, on the other hand, can handle a large content because it does chunking of that content internally. It would be good to have FileCreate and FileUpdate to have this same functionality. This would allow for a single transaction to create or update a file with a large content.
Solution
Refactor FileCreateTransaction and FileUpdateTransaction to share the new pub trait FileTransaction which should include an append method to store additional transactions when the content exceeds 1024 kB. Refer to FileAppendTransaction for an example of how to chunk the content.
Implementation

Create a new pub trait FileTransaction with append method (for new transactions).
Create a base struct FileTransactionBase that implements FileTransaction with set_contents method to handle large files by creating multiple transactions.
Update FileCreateTransaction and FileUpdateTransaction to implement FileTransaction
Create tests to verify the new functionality (unit tests and integration tests)

📋 Step by step guide to do a contribution
If you have never contributed to an open source project at GitHub, the following step-by-step guide will introduce you to the workflow. More information and concrete samples for shell commands for each step can be found in our CONTRIBUTING.md file.
A more detailed general documentation of the GitHub PR workflow can be found here.

[ ] Claim this issue: Comment below that you are interested in working on the issue
[ ] Wait for assignment: A community member with the given rights will add you as an assignee of the issue
[ ] Fork the repository: You can do that in GitHub (by simply clicking the 'fork' button).
[ ] Check out the forked repository
[ ] Create a feature branch for the issue. We do not have a hard naming definition for branches but it is best practice to prefix the branch name with the issue id.
[ ] Solve the issue in your branch.
[ ] Commit your changes: Here, it is needed to add sign-off information to the commit to accept the "Developer Certificate of Origin" (https://developercertificate.org). More details can be found in our CONTRIBUTING.md
[ ] Start a Pull Request (PR): We have a pattern for naming pull requests that a GitHub Action checks. We use that pattern to support the creation of automatic release notes.
[ ] Check GitHub Actions: Several GitHub Actions will be triggered automatically for each PR. If a GitHub Action fails and you do not understand the cause of that error do not hesitate to add a comment to the PR and ask the Hedera developer community for support.
[ ] Wait for reviews: Members of the Hedera developer community will review your PR. If a reviewer finds any missing pieces or a problem, he or she will start a discussion with you and describe the next steps for solving the problem.
[ ] You did it 🎉: We will merge the fix in the develop branch. Thanks for being part of the Hedera community as an open-source contributor ❤

🎉 Contribute to Hacktoberfest
Solve this issue as part of the Hacktoberfest event and get a chance to receive cool goodies like a T-Shirt. 🎽
🤔 Additional Information
If you have any questions, just ask us directly in this issue by adding a comment. You can join our community chat at Discord. A general manual about open-source contributions can be found here.

You got it @mrswastik-robot

@mrswastik-robot You may! Feel free to ask any questions and i'll answer to the best of my ability.

Hey @mrswastik-robot,
Go ahead and create a PR, and i'll take a look at it. Thank you!


Merge back changes make for more recent reading

This includes all the changes to the grounding and the ones in support of the new DART protocols

This was replaced by a merge from wmexchanger into which branch this was already merged


feature: gitbrowse: support copying/opening permanent link URL

Did you check the docs?

[X] I have read all the snacks.nvim docs

Is your feature request related to a problem? Please describe.
In general, when copying the URL, for many - it might make more sense to share the permanent link to avoid any surprises later. Sharing just the file URL might just become invalid/incorrect if any commit (later) changes the corresponding file/piece of code.
Being able to share the permanent link would help solve this problem.
Describe the solution you'd like
Design: (user-facing) Having an option with what='permalink' or something similar would help.
The URL pattern, for at least GitHub would look like:
...
permalink = "/blob/{commit_hash}/{file}#L{line_start}-L{lne_end},
...

Implementation (dev-facing): commit_hash would store the output of system({ "git", "-C", cwd, "rev-parse", "HEAD" }, "Failed to get current commit")[1]. We'll probably need something similar for bitbucket/others (I've not tested them yet, can do once this is approved).
Describe alternatives you've considered
I tried passing the commit to the URL patterns from the user side, but then realised that commit variable does not really store the commit has value. Was my bad, I'm not aware of any other alternatives with this plugin.
Additional context
I'll be happy to help create a PR if this feature request sounds reasonable to the maintainers. Thanks for the amazing work!

Hi, @folke - Apologies for the ping, just curious - does this sound like a feature that you'd like to have in gitbrowse? If yes, I'll be happy to send the patch over.

Feel free to create a PR. ty


Extract PDF utility not working

I did as mentioned passing project id and still there is no data logging(showing empty object) into console.log. So if data is empty object, what would filesystem API of node would write ?
Screenshot - http://prntscr.com/jyy88t
@torbjon Do you know alternative way to how to extract as a pdf ?
Also when I am using this API of getProject method without extra arguments then data is been logging correctly. So that states that when extra arguments are supplied such as {format : pdf} then it's showing empty object while data is been logging.
Waiting for response. Thanks

@meetzaveri please check latest update, should work


No access to meteor shell and other command line tools?

Type of problem

Runtime problem after the build succeeds

Summary
Expected: I expect to have access to the $ meteor command line tool in order to access, for example, the Meteor shell.
Observed: When I use $ heroku run bash and poke around my build, I cannot find the meteor executable. I have even checked .meteor/heroku_build.
Contents of .meteor/release
<EMAIL_ADDRESS>
Buildpack version
https://github.com/AdmitHub/meteor-buildpack-horse.git

Deployment target
Heroku

@bloudermilk this is typical of a Meteor deploy, the meteor command is only part of the development environment. That said, I heard that there is an unofficial way to get meteor shell working in a production environment.

@hexsprite this totally makes sense. Coming from a Rails background I hadn't considered that there wouldn't be a production console. Thank you for taking the time to explain!


Nextage 08 error

Describe the bug
A Javascript error uncaught exception. This occurs when attempting to make a master memory recall to the preview bus on the nextage module. I've included pictures of the error and the button settings. I have tested this master memory and it works fine in the RCS
To Reproduce

Expected behavior
I expected the master memory to load into the preview bus, which it doesn when I click ok on the error, there doesnt seem to be an error suppression option and having it pop up and not load my cue is a show stopper. thanks guys!
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: win 10
Browser chrome
Version 71.0.3578.98 (Official Build) (64-bit)

This is most likely a problem of the database/configuration file. Do you still have the configuration?
Sometimes the configuration can become corrupt when renaming instances or deleting and recreating it. It should be fixable by erasing the whole bank (use the erase button) and reprogram it afterwards.

Closing this as it seems not totally related to the module, feel free to open again if needed

ah sorry just saw this. Yea show was in may config is long gone. I'll let you know if I run into it again


Incredibly minor flaw: double space in cast interface output

❯ cast interface 0xb5b64C2216a134F3731D66acAce03C7E221AFA2d
pragma solidity ^0.8.10;

interface L1_NovaExecutionManager {
    struct GasConfig { uint32 a; uint96 b; uint96 c; uint32 d; }

    function CROSS_DOMAIN_MESSENGER() view external returns (address);
    function DEFAULT_EXECHASH() view external returns (bytes32);
    function HARD_REVERT_HASH() view external returns (bytes32);
    function HARD_REVERT_TEXT() view external returns (string memory);
    function L1_NOVA_APPROVAL_ESCROW() view external returns (address);
    function L2_NOVA_REGISTRY_ADDRESS() view external returns (address);
    function authority() view external returns (address);
    function currentExecHash() view external returns (bytes32);
    function currentRelayer() view external returns (address);
    function currentlyExecutingStrategy() view external returns (address);
    function exec(uint256 nonce, address strategy, bytes memory l1Calldata, uint256 gasLimit, address l2Recipient, uint256 deadline)  external;
    function gasConfig() view external returns (uint32 calldataByteGasEstimate, uint96 missingGasEstimate, uint96 strategyCallGasBuffer, uint32 execCompletedMessageGasLimit);
    function getStrategyRiskLevel(address) view external returns (uint8);
    function hardRevert() pure external;
    function owner() view external returns (address);
    function registerSelfAsStrategy(uint8 strategyRiskLevel)  external;
    function setAuthority(address newAuthority)  external;
    function setOwner(address newOwner)  external;
    function transferFromRelayer(address token, uint256 amount)  external;
    function updateGasConfig(GasConfig memory newGasConfig)  external;
}

notice the double spaces before the standalone externals

Good find. Independently of that, do you find the command working nicely?

ye its great! only wish it could parse struct fields but ig thats not included in the abi?

Yeah I think so, didn't seem to contain names, just the types


FastForward notification stuck on file-upload.com files page

Domain
file-upload.com
Link
https://www.file-upload.com/?op=my_files
Version
0.0.0
What browsers are you seeing the problem on?
Chrome
What OS are you seeing the problem on?
No response
Anything else?
I'm using file-upload.com for upload files. FastForward notification get stuck forever even you are not downloading file

hi, you can click the notifications to make it magically vanish in a puff of smoke. the notification is intended behavior, as we have no way of knowing what uris might be used on the page.


Exempt metrics scrapes from APF.

Currently, metrics scraping requests can be rejected when all
workload-high seats are occupied, which results in missed samples.

/retest-required

/approve


Difference between the SharePoint API Management and the Azure AD App Registrations blade

What is the difference between granting permissions on the SharePoint Admin screen versus granting permissions directly in the Azure portal via the Azure AD App Registrations blade?
I am struggling to understand why SharePoint has its own API approval screen. Does approving a permission from the SharePoint admin screen actually add the permission to the underlying App Registration in the Azure Portal or are these two screens completely separate from each other in terms of the information they present.

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

ID: 47b09a1d-5520-82e2-64f5-7aaae817720a
Version Independent ID: 0e3dcdc4-3a49-b4c7-f525-1c618cf5e21e
Content: Connect to Azure AD-secured APIs in SharePoint Framework solutions
Content Source: docs/spfx/use-aadhttpclient.md
Product: sharepoint
GitHub Login: @spdevdocs
Microsoft Alias: spdevdocs

When you grant permissions directly in Azure AD, you need to register a new application and in SharePoint implement OAuth implicit flow for that application to obtain an access token. The challenge you have, is that you cannot know upfront on which pages your solution will run, which you must know, because the full URL is a part of the OAuth implicit flow contract you register in Azure AD.
When granting permissions through SharePoint Admin screen, you leverage the Azure AD principal provisioned by Microsoft for which Microsoft implemented OAuth implicit flow in a way that doesn't require you to register all the pages where your components are used. Each permission you grant, is added to the existing principal.
So when comparing both approaches, granting permissions via SharePoint Admin simplifies deployment and management of permissions and gives SharePoint admins (not Azure AD admins) insights into what permissions are granted to scripts in SharePoint.

To add to what @waldekmastykarz said, having an API management page living in SharePoint also helps in cases where organisations don't have/want Azure rolled out to the business yet. In these cases, the deployment of SPFx solutions does not get blocked as the permissions can be managed from SharePoint itself.

Thanks for the responses.
I guess I am trying to correlate what actually happens at the Azure end when a SharePoint Admin clicks the Approve API Permission request.
I am finding that the permissions granted via the SharePoint API management screen show up in the Azure AD App Reg blade for the spfx App Reg, but not for every single permission grant (some permission grants to custom Azure Function App Regs don't seem to show up in Azure AD, they appear as approved in the SharePoint API management screen and I can call them via a spfx webpart using AadHttpClient, but they don't show up in the Azure AD end and so I am still confused as to how these permission grants from SharePoint API Permissions are actually resolved at the Azure AD end when the authentication is done?).
I am also finding that if I go to Azure AD directly, App Registrations, and then manage the permissions on the Spfx App Reg by say adding a permission to call some graph apis or even a custom Azure Function (secured with Azure AD) that these permissions then show up as Approved in the SharePoint Admin API management screen (and also they show up if you run the Get-SPOTenantServicePrincipalPermissionGrants commandlet).
So it seems I can bypass adding the webApiPermissionRequests to my package-solution.json and manage the permissions separately, but I don't know if I am missing something here...does adding the permissions at the Azure AD end miss out some step that adding at the SharePoint API management screen does?
My experience with testing out spfx packages is such that my SharePoint API management list is now cluttered with the same list of permissions from the same .sppkg file as I go through a loop of "dev,test,deploy,test" etc., I have deployed the same package multiple times and in doing so the list of API Permission requests is ever growing and I wouldn't really know what ones are "relevant" or can be removed?
Given that every Office 365 tenant has an Azure AD directory that is easily accessible from the Office 365 Admin screen I wonder if it is simpler for (at least) developers to consider managing their permissions via Azure AD?
I also want to flesh out how the granting of custom apis in the webApiPermissionRequests seems to work but no actual permissions are present on the spfx app reg, how does this work in practise? There seems to be two lists of permissions...the Get-SPOTenantServicePrincipalPermissionGrants seems to show me all the permissions regardless of whether they've been added as part of a sppkg package or have been manually added to the Azure AD spfx App Reg.
How does the spfx app reg "know" it has permission to call the Azure Function API? Does SharePoint maintain a different list? Does the spfx App Reg look at its permissions in Azure AD and also another list of permission grants maintained by SharePoint?

@colinrippeyfinarne

I am finding that the permissions granted via the SharePoint API management screen show up in the Azure AD App Reg blade for the spfx App Reg, but not for every single permission grant (some permission grants to custom Azure Function App Regs don't seem to show up in Azure AD, they appear as approved in the SharePoint API management screen and I can call them via a spfx webpart using AadHttpClient, but they don't show up in the Azure AD end and so I am still confused as to how these permission grants from SharePoint API Permissions are actually resolved at the Azure AD end when the authentication is done?).

This is odd. Are you sure that you're looking at the right principal in AAD?

So it seems I can bypass adding the webApiPermissionRequests to my package-solution.json and manage the permissions separately, but I don't know if I am missing something here...does adding the permissions at the Azure AD end miss out some step that adding at the SharePoint API management screen does?

You're not missing anything and this is exactly how it works. When you deploy a package with permission requests to app catalog, an entry is added to the Web API permissions list for each request as stated in the package. When you approve a request, it gets assigned to the principal in AAD. In fact, in an enterprise organization you would do exactly that: enable a predefined set of permissions upfront and ignore permissions requests issued by packages. That way you would have more control about what permissions your organization is ok to open to solutions.

Given that every Office 365 tenant has an Azure AD directory that is easily accessible from the Office 365 Admin screen I wonder if it is simpler for (at least) developers to consider managing their permissions via Azure AD?

Some organizations have separate teams being responsible for SharePoint and Azure so this might not work for everybody.

How does the spfx app reg "know" it has permission to call the Azure Function API? Does SharePoint maintain a different list? Does the spfx App Reg look at its permissions in Azure AD and also another list of permission grants maintained by SharePoint?

There are two lists of permissions:

webApiPermissionRequests: this is a list of permissions requested to be granted. This list exists only in SharePoint and is not visible or stored anywhere except the SharePoint list
granted API permissions: these permissions are the actual permissions assigned to the specific principal in the AAD and they are shown in the API management under approved permissions or using PowerShell.

How does the spfx app reg "know" it has permission to call the Azure Function API?

When requesting an access token to an API, the request is done on behalf of the specific principal that has all the permissions associated with it. If the principal has no permissions granted for the particular resource (API), you will get an error when trying to request an access token. All this is handled by AAD and OAuth and there is nothing specific to SharePoint in it.
Hope this helps

Hi @colinrippeyfinarne When you use the SharePoint API Management page to grant permissions, they are added to the Service Principal and not the App Registration. I believe you are not able to see the permissions granted because you are looking in Azure AD -> App Registrations.
If you look at the Service Principal by going to Azure Active Directory -> Enterprise Applications -> All Applications -> SharePoint Online Client Extensibility Web Application Principal -> Permissions
you should be able to see the permissions there.
Perhaps @patmill or @lucaband can help us out here on why the permissions are not added to the App Registration as well?

This is odd. Are you sure that you're looking at the right principal in AAD?

I've tried to completely re-create this exact scenario on a totally separate tenant...and yep I see the same thing again only this time I also don't see the Microsoft Graph permissions on the Spfx App Reg.
I've got a simple Azure Function with this code:
`    using System.Collections.Generic;
using System.Net;
using System.Net.Http;
using System.Net.Http.Formatting;
using System.Security.Claims;
public static async Task Run(HttpRequestMessage req, TraceWriter log)
{
log.Info("C# HTTP trigger function processed a request.");
log.Info("C# HTTP trigger function processed a request.");
var claimsList = new Dictionary<string, string>();
claimsList.Add("App Reg Name", "Spfx WebPart via webApiPermissionRequests");
    //Current user claims
    foreach (Claim claim in ClaimsPrincipal.Current.Claims)
    {
        string claimType = claim.Type;
        string claimValue = claim.Value;
        result = result + "-" + "Type " + claimType + " Value " + claimValue;
        claimsList.Add(claimType, claimValue);
    }

    var claimsFound = ClaimsPrincipal.Current.Claims;
    var didWeFind = claimsFound.GetType().Name;

    return req.CreateResponse(HttpStatusCode.OK, claimsList, JsonMediaTypeFormatter.DefaultMediaType);
}

`
I then secured this function using Azure AD with an App Reg (I used the Express config, used the following display name)
ApplicationId: 6b9d6cfb-584e-4ea1-a5f3-e7c13f820464
DisplayName: Spfx WebPart Auto DisplayName
I configured the function to have a CORS entry for the SharePoint domain.
I deliberately did NOT go into the Azure AD App Reg blade for the App Reg and grant admin consent to the permissions on this new App Reg...left that alone for now (as I was wondering if this would cause the authentication to break and wanted to see if I had to turn on one bit at a time).
I created a simple spfx webpart with the following entries in the package-solution.json file (I modified the online sample from :
"webApiPermissionRequests": [
  {
    "resource": "Microsoft Graph",
    "scope": "User.ReadBasic.All"
  },
  {
    "resource": "Spfx WebPart Auto DisplayName",
    "scope": "user_impersonation"
  }
]

The spfx webpart tsx file has the following code (again a simple modification from the above sample):
`
private _searchWithAad(): void {

// Log the current operation
console.log("Using _searchWithAad() method");

// Using Graph here, but any 1st or 3rd party REST API that requires Azure AD auth can be used here.
this.props.context.aadHttpClientFactory
  .getClient('6b9d6cfb-584e-4ea1-a5f3-e7c13f820464')
  .then((client: AadHttpClient) => {
    return client
      .get('https://myfunctionname.azurewebsites.net/api/CallableFromSpfxAutoDisplayName',
      AadHttpClient.configurations.v1
      );
  })
  .then(response => {
    return response.json();
  })
  .then(json => {
    console.log(json);
  });

this.props.context.aadHttpClientFactory
  .getClient('https://graph.microsoft.com')
  .then((client: AadHttpClient) => {
    // Search for the users with givenName, surname, or displayName equal to the searchFor value
    return client
      .get(
        `https://graph.microsoft.com/v1.0/users?$select=displayName,mail,userPrincipalName&$filter=(givenName%20eq%20'${escape(this.state.searchFor)}')%20or%20(surname%20eq%20'${escape(this.state.searchFor)}')%20or%20(displayName%20eq%20'${escape(this.state.searchFor)}')`,
        AadHttpClient.configurations.v1
      );
  })
  .then(response => {
    return response.json();
  })
  .then(json => {

    // Prepare the output array
    var users: Array<IUserItem> = new Array<IUserItem>();

    // Log the result in the console for testing purposes
    console.log(json);

    // Map the JSON response to the output array
    json.value.map((item: any) => {
      users.push( {
        displayName: item.displayName,
        mail: item.mail,
        userPrincipalName: item.userPrincipalName,
      });
    });

    // Update the component state accordingly to the result
    this.setState(
      {
        users: users,
      }
    );
  })
  .catch(error => {
    console.error(error);
  });
}
`

I've packaged the solution:
gulp build
gulp bundle
gulp package-solution
Uploaded to the tenant app catalog, deployed, approved the API Permissions.
If I run the Get-SPOTenantServicePrincipalPermissionGrants I see:
ClientId    : 829c1b76-c61e-478a-bd69-a0ef8ea6afd7
ConsentType : AllPrincipals
ObjectId    : dhucgh7Gike9aaDvjqav1_pMvFTqzbNPkzPSC9ZwQfY
Resource    : Microsoft Graph
ResourceId  : 54bc4cfa-cdea-4fb3-9333-d20bd67041f6
Scope       : User.ReadBasic.All
ClientId    : 829c1b76-c61e-478a-bd69-a0ef8ea6afd7
ConsentType : AllPrincipals
ObjectId    : dhucgh7Gike9aaDvjqav14qkCKB1o_hDoiwOFqPL4O0
Resource    : Spfx WebPart Auto DisplayName
ResourceId  : a008a48a-a375-43f8-a22c-0e16a3cbe0ed
Scope       : user_impersonation
So...it would appear that the API Requests are all good to go.
I run
gulp serve --nobrowser
(is this the issue...am I confusing everything by running the local webpart???)
I then go to a modern team site and browse to the workbench.aspx and add the webpart.
I use the simple search button to cause the webpart code to run, I get successful results (the sample webpart presents the details of a user it finds)
From the console for the output of the function:
FunctionAppReg: "Spfx WebPart Auto DisplayName"
aio: "42BgYPg6VbCLp/Z3zCnm5hPioeuzLiuqx8p/5ez6uXe1x0He2tUA"
appid: "5d437051-7e4b-418e-b940-2f3385777a67"
appidacr: "0"
aud: "6b9d6cfb-584e-4ea1-a5f3-e7c13f820464"
e_exp: "262800"
exp: "1536848981"
http://schemas.microsoft.com/claims/authnclassreference: "1"
http://schemas.microsoft.com/claims/authnmethodsreferences: "pwd"
http://schemas.microsoft.com/identity/claims/objectidentifier: "ff8aac10-b65e-4991-bf47-daf92ef4f555"
http://schemas.microsoft.com/identity/claims/scope: "user_impersonation"
http://schemas.microsoft.com/identity/claims/tenantid: "e10a310a-af25-474d-b5b0-1acab1e4483c"
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname: "Colin"
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name<EMAIL_ADDRESS>http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier: "D7v7SqQzzmnFQpFLnQYOxXW47x5e4QPYThoiU2rc150"
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname: "Rippey"
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn<EMAIL_ADDRESS>iat: "1536845081"
ipaddr: "<IP_ADDRESS>"
iss: "https://sts.windows.net/e10a310a-af25-474d-b5b0-1acab1e4483c/"
name: "Colin Rippey"
nbf: "1536845081"
uti: "DcTndB_f6Ui8p5DNXwyFAA"
ver: "1.0"
So whatever I've done seems to have granted permissions on the Azure AD portal to allow the client code to execute against the function.
As I understand it the way this all works is the Spfx App Reg in my tenant:
Application Id: 5d437051-7e4b-418e-b940-2f3385777a67
Display Name: SharePoint Online Client Extensibility Web Application Principal
Is what is being used to make the authentication flow through to the function.
My main question here...is should I now see the permissions on the Azure AD App Reg:
Application Id: 5d437051-7e4b-418e-b940-2f3385777a67
Display Name: SharePoint Online Client Extensibility Web Application Principal
If I browse to this App Reg in the Azure Portal I don't see any permissions at all!
If I go to Graph Explorer and issue the following:
https://graph.microsoft.com/beta/serviceprincipals?$filter=startswith(displayName,'SharePoint Online Client Extensibility Web Application Principal')
I see:
`
{
<EMAIL_ADDRESS>"https://graph.microsoft.com/beta/$metadata#servicePrincipals",
"value": [
    {
        "id": "829c1b76-c61e-478a-bd69-a0ef8ea6afd7",
        "deletedDateTime": null,
        "accountEnabled": true,
        "appDisplayName": "SharePoint Online Client Extensibility Web Application Principal",
        "appId": "5d437051-7e4b-418e-b940-2f3385777a67",
        "appOwnerOrganizationId": "e10a310a-af25-474d-b5b0-1acab1e4483c",
        "appRoleAssignmentRequired": false,
        "displayName": "SharePoint Online Client Extensibility Web Application Principal",
        "errorUrl": null,
        "homepage": null,
        "logoutUrl": null,
        "publishedPermissionScopes": [
            {
                "adminConsentDescription": "Allow the application to access SharePoint Online Client Extensibility Web Application Principal on behalf of the signed-in user.",
                "adminConsentDisplayName": "Access SharePoint Online Client Extensibility Web Application Principal",
                "id": "272813c6-9a34-46e5-aed4-0b4bc74cdff3",
                "isEnabled": true,
                "type": "User",
                "userConsentDescription": "Allow the application to access SharePoint Online Client Extensibility Web Application Principal on your behalf.",
                "userConsentDisplayName": "Access SharePoint Online Client Extensibility Web Application Principal",
                "value": "user_impersonation"
            }
        ],
        "preferredTokenSigningKeyThumbprint": null,
        "publisherName": "sqanowpersonaldev",
        "replyUrls": [
            "https://sqanowpersonaldev.sharepoint.com/",
            "https://sqanowpersonaldev.sharepoint.com/_forms/singlesignon.aspx",
            "https://sqanowpersonaldev.sharepoint.com/_forms/singlesignon.aspx?redirect",
            "https://sqanowpersonaldev.sharepoint.com/_forms/spfxsinglesignon.aspx",
            "https://sqanowpersonaldev.sharepoint.com/_forms/spfxsinglesignon.aspx?redirect"
        ],
        "samlMetadataUrl": null,
        "servicePrincipalNames": [
            "5d437051-7e4b-418e-b940-2f3385777a67"
        ],
        "signInAudience": "AzureADMyOrg",
        "tags": [],
        "addIns": [],
        "appRoles": [],
        "keyCredentials": [],
        "passwordCredentials": []
    }
]
}
`

So I am totally confused as to where I am looking and what I think I am supposed to see!
I thought "what if there is some issue with me running the package locally via the online workbench" so I did:
gulp bundle --ship
gulp package-solution --ship
Redeployed the package to the tenant app catalog, approved the deployment and then sorted out the API requests.
I then added the webpart to a page...tested...got the same successful results.
This is too confusing for me! I seem to have managed to deploy code to SharePoint that does not have the permissions inside Azure AD but the code runs successfully.
SharePoint tells me the permissions are okay...Azure AD says otherwise.

So.. it's really what Waldek said.. but you might be in a complex situation because you had that tenant before 1.6 and.. during that "dev preview" time, we had a different application principal.
in a standard fresh "after GA" situation that's what you will have:

in AAD you will have an App Principal called  "SharePoint Online Client Extensibility Web Application Principal "
you will have only one app principal of that type
the App ID of that principal will be different for each tenant as that is not a 1st party MT App Principal but a per tenant app principal

we provision that principal the first time you land on the web APIs management page or when you use PowerShell to approve permissions that came from the package.
The web APIs Management page is, as @waldekmastykarz said, just an helper page to allow SharePoint administrators to interact with AAD without requiring them to learn a new tool / dashboard.
we do not prevent the admins to bypass that page and go directly to AAD. as a matter of fact, we do use AADGraph behind the curtains to stamp those scopes and provide admin consent to the app principal mentioned before.
Hope that makes sense!

I'd say that the intention is that the API management page and the SharePoint Online PowerShell cmdlets should give you a consistent image of the granted permissions. Checking the permissions via the AAD portal doesn't work because the permissions are granted to the service principal not the actual app, which is why the permissions that are granted aren't surfaced in the UI. You can check that the specify permissions are granted on the AAD object representing the service principal using the Office 365 CLI which gets this information from AAD: https://blog.mastykarz.nl/grant-api-permissions-office-365-without-sharepoint-framework-packages/

@waldekmastykarz Thanks, I'll go over your article and see what details are uncovered for my scenarios.
I'm "guessing" it's easy to find out what the Office 365 CLI is actually calling back into? Is it a clever wrapper around the graph?

@colinrippeyfinarne yes, you can have a look in the Office 365 CLI code. It's calling the Azure AD Graph (not MS Graph) to get the information about the service principals and their OAuth2 grants. All REST calls so should be easy to follow.

"And yet the first thing we need to do for the new spfx service principal is to grant it the permission Windows Azure Active Directry->User.Read and the logical place to grant this permission seems to be the Azure AD App Reg blade."
that was a temporary workaround ... it should no longer be required starting next week.

Thank you for all the comments on this.
I've tried to digest all of this over the weekend and I now have the following thoughts.
The SharePoint Admin API management screen is correctly reading and writing the permissions against the spfx service principal. These permissions are what allows the OAuth Implicit flow to work.
The Azure AD App Reg blade is surfacing permissions against the Application object, but to me it should also acknowledge the permissions on the underlying/associated service principal, and this is an issue I feel I need to now raise with the Azure AD team as when I set permissions via this GUI it overwrites the permissions that the SharePoint Admin API management screen is reading from.
The Microsoft Graph API  https://graph.microsoft.com/beta/applications should also acknowledge the permissions on the underlying/associated service principal.
I will try to raise this with the Azure AD team.


SPARKC-355: Have all public artifacts use the Shaded Jar

High Level Summary:
Cassandra Java Driver and Shaded Guava are in the release artifacts
No Shaded Netty (Did not seem to conflict)
Package, Publish* tasks push shaded artifacts
Details
This patch publishes artifacts as a jar with the Cassandra
Java Driver included and guava shaded. This is a necessity because of
guava conflicts in Spark 2.0. Essentially any references to Guava that
the driver uses must be to a Guava version greater than 16. We
accomplish this by shading all references within the driver which we
also include. This makes it impossible to change the C* java driver
used with the connector. This is not a large issue because any Cassandra
Java Driver without shaded guava on the  classpath will throw incompatible guava errors.
To distribute this artifact the connector project (now connectorDistribution)
has several sibling-projects.
To produce the shadedJar we add shadedConnector. This project marks
all the dependencies of the project as provided except for the shaded
dependencies. This causes its assembly task to produce a jar which only
contains the Connector classes, Shaded Guava, and a Java Driver which
refers to the shaded guava. The assembly of this project is used as the
packageBin method in the connectorDistribution as well as an artifact
in the publish* tasks.
The connector distribution POM now no longer needs compile configuration
for the shaded dependencies since they will already be in the jar. These
deps are marked as provided but but this also removes them from the
assembly task within connectorDistribution.
To fix this we add another project fullConnector. This project contains all of the
dependencies required to run the connector and the shaded libraries are
not marked as provided. This produces an assembly task with everything
needed. The artifact produced by the normal build of this project is
identical to our old connector project where the connector.jar
requires seperate guava and the java driver. The assembly task produces
the full shaded jar with all dependencies and is used as the assembly
task in connectorDistribution.

Build against Scala 2.11 finished with success

Build against Scala 2.10 finished with success

+1

Build against Scala 2.11 finished with success

Build against Scala 2.10 finished with success

Last changes made,
"shaded" variable refactored to "includedInShadedJar"
netty included as dependency


✨ Token-Permission: Allow top level permissions not defined if all run level permissions are

We currently give a score of 0 if all job define their permissions but the top level is not.
This PR removes one point if the top level permissions are not defined but the run level ones are all defined.
See https://github.com/ossf/scorecard/issues/1128#issuecomment-973236716 for more details.
closes https://github.com/ossf/scorecard/issues/1128

Overall this looks good. Would you mind adding a file to checks/testdata that gets a score of 9?

thanks for catching this, it slipped the the cracks!

@chrismcgehee looks like I still need your LGTM to merge.

friendly ping @chrismcgehee can you LGTM?

adding @azeemsgoogle to see if he can give me another LGTM


The OID of the put object can be saved into index file immediatly in upload-bin

Is your feature request related to a problem? Please describe.

I'm always frustrated when it appears that OID can be calculated in the uploadObj function. So we do not need to perform lots of searches for OIDs after the main batch of blocks is done.
Describe the solution you'd like

Return OID from uploadObj  and save it into the index file right away.  Ref. https://github.com/nspcc-dev/neo-go/commit/a0a0358cb11510911696f1d2ec505f8b6cb7f3c3
Describe alternatives you've considered

Leave as is.

Consider https://github.com/nspcc-dev/neo-go/pull/3650#issuecomment-2452910462 during implementation.

Consider #3650 (comment) during implementation.

And uploadIndexFiles can't be removed anyway, we must consider cases when you don't have all OIDs in-place.

In https://github.com/nspcc-dev/neo-go/commit/a0a0358cb11510911696f1d2ec505f8b6cb7f3c3 uploadIndexFiles is not removed but moved to the first place.

Check and upload index files using uploadIndexFiles, and return a partially filled buffer (if oldestMissingBlockIndex\ indexFileSize!=0).
Upload blocks from oldestMissingBlockIndex and when the buffer is full - upload the index file.

What do you mean by  cases when you don't have all OIDs in-place.?

is not removed but moved to the first place.

OK. It needs some care.

What do you mean by cases when you don't have all OIDs in-place.?

E.g. uploading index file without block object uploads. Or with partially uploaded blocks. I'm not saying that your commit doesn't contain this code, but such edge cases must be handled with care and we must ensure that script works properly for such edge cases.


Refactor code to use install_packages and purge_packages.

Remove all local use of installing manually via the package manager, using install_packages and purge_packages rather than use redundant code. Simplifies our shell scripts to build docker images.
Still a draft because I'm currently testing it on all images.

@Emilgardis Is there a way to disable the changelog check when submitting a PR? This doesn't really have any significant changes: it's just refactoring code.

use the label "no changelog" :)

bors try

This works locally on my machine for a few images, so there's no obvious logic error for me (and I checked to see if dependencies or install_packages or purge_list was used elsewhere in these images, and it didn't see so), so I'll try it on bors.

Unrelated bugs are causing builds to fail, which I'm addressing in a separate PR. The two are somewhat interlinked, so I can merge this first or merge the other afterwards. I'll be submitting a patch for #695 shortly.


How to have node text inside of a square

Instead of the small default shapes which has the node text outside of them, I want the text to be inside of a square that resizes depending on the text length, is that possible?

+1

You can do this, by adding a foreignobject with a div in it.
This way you can use normal css.
Here's the documentation: https://github.com/bkrem/react-d3-tree#using-foreignobjects

Any update on this? I am facing the same issue. How do we use foreign objects? The above link takes you to the main document itself.
Any help would be appreciated.


[SPARK-20246][SQL] should not push predicate down through aggregate with non-deterministic expressions

What changes were proposed in this pull request?
Similar to Project, when Aggregate has non-deterministic expressions, we should not push predicate down through it, as it will change the number of input rows and thus change the evaluation result of non-deterministic expressions in Aggregate.
How was this patch tested?
new regression test

Test build #75597 has started for PR 17562 at commit a2599be.

cc @liancheng @gatorsmile

Test build #75598 has started for PR 17562 at commit e6a1bfe.

LGTM except a minor comment.

Test build #75600 has started for PR 17562 at commit e6546be.

Test build #75597 has finished for PR 17562 at commit a2599be.

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/75597/
Test PASSed.

Test build #75598 has finished for PR 17562 at commit e6a1bfe.

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/75598/
Test PASSed.

Test build #75600 has finished for PR 17562 at commit e6546be.

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/75600/
Test PASSed.

LGTM except a minor comment

Test build #75604 has started for PR 17562 at commit f254d5f.

Test build #75604 has finished for PR 17562 at commit f254d5f.

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/75604/
Test PASSed.

Thanks! Merging to master/2.1/2.0


v1.3.1 - Build Failed on Windows

Checked latest release 1.3.1 and noticed it breaks the build. And the change that cause this issue is,
grunt-webfont\tasks\engines\fontforge.js
 var exec = require('exec');   =>   require('child_process').exec;
var args = [ 'fontforge', '-script', path.join(__dirname, 'fontforge/generate.py')
];   =>   ].join(' ');

If you revert that, it will work just fine. :)
Can send a PR if you think of reverting it back.

Hi @sapegin, Just checking about the issue. Are we going to change it or will this effect something else? :)


Bindings Swift CI disabled for unrecoverable error

Logs: https://github.com/apache/opendal/actions/runs/7581614465/job/20649769979
Related upstream issues: https://github.com/swift-actions/setup-swift/issues/591

Maybe we can switch to a docker container as described in https://github.com/swift-actions/setup-swift/issues/591#issuecomment-1685710678
name: Swift

on:
  pull_request:
  push:
    branches: [ "main" ]

jobs:
  test:
    runs-on: ubuntu-latest
    container: swift:5.8
    steps:
      - uses: actions/checkout@v3
      - name: Run tests
        run: swift test


Prerequisite same subscription between Logic app and Service Bus is misleading.

It's not mandatory to have logic app and service bus in same subscription, I tried connecting them by having them in different subscriptions, they are working fine without any issue.
Please update the pre-requisite.

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

ID: c2aeacc5-5b74-c4be-335e-c7e768854e4a
Version Independent ID: d8693b52-fdd6-cc68-bc12-26807454a80b
Content: Exchange messages with Azure Service Bus - Azure Logic Apps
Content Source: articles/connectors/connectors-create-api-servicebus.md
Service: logic-apps
GitHub Login: @ecfan
Microsoft Alias: estfan

@srikanth-paladugula , thank you for reporting this. We have corrected our documentation and you shall expect that changes soon.
We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


Check Object documentation for Layer

Be sure that style is right and that all pieces are documented as things have been added since the documentation was written.

@benkiel  OK to close this as done in #739?

Yup, thank you!


pmap optimization: cache aval in ShardedDeviceArray.

Speeds up abstractification of ShardedDeviceArrays, which is in the critical path for a pmap-cache hit.

Nice! Could do the same for DeviceArray (so that the slot is on that class rather than in pxla.py.)

I considered doing that, but that change looked a touch harder (since there isn't an aval right there) so I wanted to do it separately rather than block this one.


Increase max gpu utilization for 70b models

Pull Request Summary
What is this PR changing? Why is this change being made? Any caveats you'd like to highlight? Link any relevant documents, links, or screenshots here if applicable.
Up max gpu memory utilization to 0.95 for 70b models in attempt to address OOM issues
https://linear.app/scale-epd/issue/MLI-2309/use-095-gpu-memory-utilization-for-70b-models
Test Plan and Usage Guide
How did you validate that your PR works correctly? How do you run or demo the code? Provide enough detail so a reviewer can reasonably reproduce the testing procedure. Paste example command line invocations if applicable.
Published test docker image for batch_inference. Tested with API request using local gateway

lgtm


Build using makefile is not possible.

I installed GnuWin32 in Windows and built the makefile, but there is an error.
Why do these errors occur?
Thank you for reading it

.

Use MSYS2.


Remove DNX content

Summary
Removes the old project.json and DNX related material from the repo. This content is out of date and no longer useful as we've moved far beyond .NET Core 1.0 RC1 and .NET Core 1.0 RC2.
Contributes to #22858
This will cause conflicts with my other PRs but I'll fix them as needed.

Moving this to private repo for future publishing.

Reopening as the private repo wasn't moved to public.


bug: update connectButtonTextError color in lightTheme

resolves #400
used the same hex color as used for error (L40)

Commented on the initial issue 👍


unconstrained actuators.output may cause output suddenly inverse

I found that the rate_controller's output is unconstrained, mc_att_control_main.cpp, line 861:
_actuators.control[0] = (isfinite(_att_control(0))) ? _att_control(0) : 0.0f;
_actuators.control[1] = (isfinite(_att_control(1))) ? _att_control(1) : 0.0f;
_actuators.control[2] = (isfinite(_att_control(2))) ? _att_control(2) : 0.0f;

Later in px4io.cpp line 1174, we convert a float to int16_t:
for (unsigned i = 0; i < _max_controls; i++) {
        regs[i] = FLOAT_TO_REG(controls.control[i]);
}

and
#define FLOAT_TO_REG(_float)	SIGNED_TO_REG((int16_t)((_float) * 10000.0f))

In some extreme condition, _actuators.control will go above 3.2768, resulting an int16_t's overflow after multiply by 10000.0.
Such condition appears when a user like me to set a fairly large pid parameter, drone crashed...

@taogashi Thanks for reporting. Makes sense to me. @LorenzMeier Do you agree?

this looks like the root cause of the instability problems in POSCTL: high rate demand leads to overflow

@taogashi Could you share a log of your crash?

Good find. @tumbili I think we should cap the value from -1 to 1 before calling FLOAT_TO_REG() on it: https://github.com/PX4/Firmware/blob/master/src/drivers/px4io/px4io.cpp#L1175


Admin/update readme

Description
Updated readme and example jupyter notebooks with notes about time units and slow processing times for some large trajectories, especially for Cytosim. Updated ReaDDy example to seconds from nanoseconds.
Pull request recommendations:

[ ] Name your pull request your-development-type/short-description. Ex: feature/read-tiff-files
[ ] Link to any relevant issue in the PR description. Ex: Resolves [gh-12], adds tiff file format support
[ ] Provide relevant tests for your feature or bug fix.
[ ] Provide or update documentation for any feature added by your pull request.

Thanks for contributing!

Codecov Report

Merging #14 (d51441e) into master (d5becb9) will decrease coverage by 0.09%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master      #14      +/-   ##
==========================================
- Coverage   83.41%   83.31%   -0.10%
==========================================
  Files          34       34
  Lines        1007     1001       -6
==========================================
- Hits          840      834       -6
  Misses        167      167

Impacted Files
Coverage Δ

simulariumio/data_objects/agent_data.py
100.00% <ø> (ø)

simulariumio/physicell/physicell_data.py
100.00% <ø> (ø)

simulariumio/readdy/readdy_data.py
100.00% <ø> (ø)

...lariumio/tests/converters/test_custom_converter.py
100.00% <0.00%> (ø)

...lariumio/tests/converters/test_readdy_converter.py
100.00% <0.00%> (ø)

...lariumio/tests/readers/test_scatter_plot_reader.py
100.00% <0.00%> (ø)

...ariumio/tests/converters/test_cytosim_converter.py
100.00% <0.00%> (ø)

...riumio/tests/readers/test_histogram_plot_reader.py
100.00% <0.00%> (ø)

...iumio/tests/converters/test_physicell_converter.py
100.00% <0.00%> (ø)

Continue to review full report at Codecov.

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

It would also be good to track the perf effort in the issues. I think it would be easier for an external dev/technical-user to follow proposed solutions, ongoing work, and resolution through a GitHub issue as opposed to in the commit history or README.


Code/Framework overview

Give @Joel-C-Johnson @jincypjose @PhotoNomad0 an overview of gE codebase. Review the code ahead of time prior to the overview meeting.

@mannycolon please update the issue to include links/topics that need to be previewed.

Links

translation-helps-rcl

https://github.com/unfoldingWord/translation-helps-rcl
https://translation-helps-rcl.netlify.app/

resource-workspace-rcl

https://github.com/unfoldingWord/resource-workspace-rcl
https://resource-workspace.netlify.app/

@mannycolon just checking in to make sure this is progressing.

Recordings

Part 1
Part 2
Part 3

@elsylambert @birchamp - My guess is that this was completed last year.  Nothing testable here.


Clarify hello-world

This commit removes a fair amount from the hello-world, while making
comparatively small additions. Reading through, I felt the initial
example was overly complex and introduced too many things at once (eg.
two methods to compile, but only one carried forward). Others also
encountered this (#17, #25).
Reading the two versions side-by-side, I don't think this necessarily
omits required information. Some of the stuff that was removed might be
better introduced later in the book or in an appendix though. Reading
into further sections, I didn't notice places that the omissions would
lead to problems.
Changes:

Only use wasm-gc to avoid output-file confusion.
Only discuss running a server using python. This might not be ideal because the guide assumes readers have rust, but not necessarily python.
Add minor comments justifying some of the steps. The goal was to have it read a bit less like an instruction manual and provide a bit more of the reasoning.

@fitzgen Got it, that makes sense. I still don't have that clear a picture of the ecosystem, so thanks for letting me know.
Should both remain, or just one? I think part of confusion with the mention of instantiateStreaming it's much less something you can copy code and try out. Maybe writing a minimal sketch of server code would fix that?
Happy to come discuss on irc, too 🎈

I think we can feature detect it with something like this:
const fetchAndInstantiate = typeof WebAssembly.instantiateStreaming == "function"
  ? url => WebAssembly.instantiateStreaming(fetch(url))
  : url => {
      return fetch('hello_world.gc.wasm')
        .then(r => r.arrayBuffer())
        .then(r => WebAssembly.instantiate(r));
  };

Sorry, this has languished for a long time and I haven't been working with rustwasm at all, so I'm going to close it.


Controlled rotation gates don't check that target and controls are distinct qubits

Describe the bug
It is possible to apply Controlled Ry and Rz gates with 2 controls and target that is the same as one of the controls, and have no exception happen.
To Reproduce
The smallest repro I could find was:
operation BugDemo() : Unit {
    use qs = Qubit[2];
    ApplyToEach(H, qs);
    Controlled Ry(qs, (0.5, qs[1]));
    ResetAll(qs);
}

BugDemo()

Using only one control doesn't trigger the bug (the exception is thrown correctly), and using X instead of Ry also doesn't trigger it.
Expected behavior
Controlled gates are not defined for targets that are the same as controls, so I expect an exception for any combination of gates and control/targets that have overlapping controls and targets. (This was the case in Classic QDK too.)
System information

qsharp 1.3.1

@tcNickolas can you please assign the task to me?

@saram-aman This one has some subtlety related to the way that decompositions use qubits that makes it far from easy to resolve. We might need to do some refactoring to actually accomplish this, if it's possible at all.


New autocomplete engine doesn't enquote identifiers with double quotes if identifier has upper case symbols

Description
https://github.com/user-attachments/assets/0c7eb6f6-9c56-49f6-a4b5-6441e8c0fa6b
DBeaver Version
Community Edition <IP_ADDRESS>407042322
Operating System
Windows 10
Database and driver
PostgreSQL 16
PostgreSQL JDBC Driver 42.7.2
Steps to reproduce

Choose in Preferences "New completion engine"
Use code:

create table "HelloWorld" ( "World" int );

select * from

Additional context
Please also check all other kinds of identifiers (column names, etc...).

Please try early access version https://dbeaver.io/files/ea/
We just merged some changes yesterday and I can't reproduce the issue anymore.

Thanks. I confirm that it is fixed now.


Shelly Pro 3

Hi, would it be possible to add support for the Shelly Pro 3 (the 3-channel relais). If it helps, let me know how I can send one to you.

Maybe it works out of the box... have you tried to configure it using the auto detect function?

@rbuurveld any news? did you check it?

It works perfectly! Turns out the Pro3 is in the list, I could just select it, it connected and works. My bad, I checked the description for the package, didn't see the Pro3 and didn't look further... :-(  Thanks for following up on this.


Update jnr-unixsocket to 0.38.12

Updates com.github.jnr:jnr-unixsocket from 0.33 to 0.38.12.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.github.jnr", artifactId = "jnr-unixsocket" } ]

labels: library-update

Superseded by #168.


Mapping fails with Groovy classes

Setup
Create 2 classes in Groovy and a unit test in Groovy to map between the two classes. When the unit test is run, it fails with something like the following (output differs with version, but its basically the same):
Error
No concrete class mapping defined for source class org.codehaus.groovy.reflection.GeneratedMetaMethod$Proxy ma.glasnost.orika.MappingException: While attempting the following mapping: sourceType = org.codehaus.groovy.reflection.GeneratedMetaMethod.Proxy destinationType = groovy.lang.MetaMethod Error occurred: No concrete class mapping defined for source class org.codehaus.groovy.reflection.GeneratedMetaMethod$Proxy
Remarks
If similar classes are created in Java, it does not fail (see attached example). Has something to do with the way Groovy does proxies. Debug output from Orika shows an extra class mapper being automatically added.
Temp Fix
Workaround so far is to manually define the faulty mapper and have it basically do nothing. This eliminates the error and Orika works as expected in Groovy.
mapperFactory.classMap(MetaClassImpl.class, MetaClass.class).register()
Example
See attached example to duplicate bug in v1.4.6. Bug is also present in v1.5.0. Example illustrates differences between using Groovy and Java.
playground.zip

we have the same issue

Thanks! You saved my day :)

LOL Kris...this actually helped me with a problem today.


update: libmicrohttpd

Name: libmicrohttpd
CVEs: CVE-2023-27371
CVSSs: 5.9
Action Needed: update to >= 0.9.76
Summary: GNU libmicrohttpd before 0.9.76 allows remote DoS (Denial of Service) due to improper parsing of a multipart/form-data boundary in the postprocessor.c MHD_create_post_processor() method. This allows an attacker to remotely send a malicious HTTP POST packet that includes one or more '\0' bytes in a multipart/form-data boundary field, which - assuming a specific heap layout - will result in an out-of-bounds read and a crash in the find_boundary() function.
refmap.gentoo: https://bugs.gentoo.org/905326

As libmicrohttpd is not in portage-stable-packages-list, we need to manually update it at least once.
Will soon start working on it.


[Shell] Refactor TreeParserTrial APIs

Description:
Need to refactor TreeParserTrial APIs that returns node collection to return node list.

We are closing this issue due to inactivity. If you need further assistance or have additional input, feel free to reopen it. Thank you for helping us maintain a relevant and focused issue list!


typo or later

OPS Build status updates of commit 18805cb:
:clock10: Preparing: average preparing time is 44 sec(s)

OPS Build status updates of commit 18805cb:
:clock10: Incremental building: average incremental building time is 29 sec(s)

OPS Build status updates of commit 18805cb:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/reference/requirement-sets/identity-api-requirement-sets.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Easily viewable headline stats for an organisation

Partially achieves:

https://github.com/hypothesis/report/issues/205

People want to know various high level stats for organizations. I'm not sure we are clear why.
Question: Is this actually about quickly sizing up a customer / sales person orientation than customer health?
Stats required

[x] https://github.com/hypothesis/report/issues/229 - Very easy
[x] https://github.com/hypothesis/report/issues/230 - A bit of a pain
[x] https://github.com/hypothesis/report/issues/231 - A pain

WITH
    assignment_documents AS (
        SELECT
            id as assignment_id,
            TRIM(REPLACE(LOWER(document_url), '%3a%2f%2f', '://')) AS url
        FROM assignment
    ),
    documents AS (
        SELECT
            url,
            CASE
                WHEN url IS NULL OR url = '' THEN 'No Document'
                WHEN STARTS_WITH(url, 'blackboard://') THEN 'Blackboard Files'
                WHEN STARTS_WITH(url, 'd2l://') THEN 'D2L Files'
                WHEN STARTS_WITH(url, 'canvas://') THEN 'Canvas Files'
                WHEN STARTS_WITH(url, 'vitalsource://') THEN 'VitalSource'
                WHEN STARTS_WITH(url, 'jstor://') THEN 'JSTOR'
                WHEN STARTS_WITH(url, 'https://drive.google.com') THEN 'Google Drive'
                WHEN STARTS_WITH(url, 'https://api.onedrive.com') THEN 'Microsoft OneDrive'
                WHEN STARTS_WITH(url, 'https://www.youtube.com/watch') THEN 'YouTube'
                WHEN STARTS_WITH(url, 'http:/') THEN 'PDF / HTML'
                WHEN STARTS_WITH(url, 'https:/') THEN 'PDF / HTML'
                ELSE 'Other'
            END AS file_type
        FROM assignment_documents
    )

SELECT
    file_type,
    COUNT(1)
FROM documents
group by file_type
ORDER BY COUNT(1) DESC

I think this is all done now


More work on the docs

Hopefully now quite a lot easier for newcomers to get up and running with the plugin.

Not sure why the tests are failing.. Did I somehow break them? 🤔

Tests are failing because we modified key names in schema_input.json, I will modify sample sheets and tests accordingly


Handling connection errors

Hi, Basically we are using the Hyperledger client to build our application and we are working on a rest api interfacing with the chain.
I have a class called HyperledgerChainClient which inherits BusinessNetworkConnection (a class provided by hyperledger) i need it to be instantiated and connected when my server starts, so my connection will always be the same.
my class looks like this
@Singleton
export class HyperledgerChainClient extends BusinessNetworkConnection {
  constructor () {
    super(config.get('hyperledger.cardName'));
  }
}

To achieve this i tried creating a provider for my repository which looks like this
export const hyperLedgerRepositoryProvider: Provider = {
  get: async () => {
    const businessNetworkConnection: BusinessNetworkConnection = new BusinessNetworkConnection();
    try {
      const cardName: string = config.get('hyperledger.cardName');
      await businessNetworkConnection.connect(cardName);
      logger.info(`Connected to chain successfully using card name : ${cardName}`);
      return new AgentHyperledgerChainRepository(businessNetworkConnection);
    } catch (err) {
      logger.error(`Error while connecting to chain : ${err}`);
    }
  },
};

But for some reason the injection of my repository into my service always happen after the connection, so i am getting errors like
error: Error creating agent : TypeError: this.chainAgentRepository.createAgent is not a function
info: POST /agent 201 7 - 32.612 ms
error: Error while connecting to chain : Error: Failed to load connector module "composer-connector-hlfv1" for connection type "hlfv1". The gRPC binary module was not installed. This may be fixed by running "npm rebuild"

(The connection error is normal i have not yet initialized my chain). Also my only problem actually comes from the injection of my repository into my services.
I already use the hyperledger package on other projects and it works fine so i am guessing the problem comes from my code ?.
Please tell me if this is unclear. Also how would you deal with injecting repositories connected to other than hyperledger such as databases per example. As i need it to be connected only once at the start.

The problem is that you are trying to make an async injection to the container and it is not supported by this library
The container has a sync interface when you try to retrieve an instance:
let instance = Container.get(SomeType);  // so I need providers that returns synchronously


CLOUDP-253943: Simplify delete logic (volumes)

Proposed changes
Jira ticket: CLOUDP-253943
Simplified the delete deployment logic by using rm -v instead of manually removing volumes.

make sure to check if it deletes named and unnamed volumes

make sure to check if it deletes named and unnamed volumes

I've verified, it cleans everything up