Microsoft.Automation/automationAccounts and child resources

Describe the noise
Resource type (i.e. Microsoft.Storage/storageAccounts)
Microsoft.Automation/automationAccounts
apiVersion (i.e. 2019-04-01)
2018-06-30
Client (PowerShell, Azure CLI, or API)
PowerShell
Relevant ARM Template code (we only need the resource object for the above resourceType and apiVersion, but if it's easier you can include the entire template
Expected response (i.e. "I expected no noise since the template has not been modified since the resources were deployed)

No change in automation account registration URL. Read only value
No change in base64value of certificate. It is the same certificate
No change in module import link and location
No change in diagnostic settings category DscNodeStatus . That category is not  in the template at all.
No change in runbook import URI or version
No change in type property of variables
No change in workbook properties

Current (noisy) response (either include a screenshot of the what-if output, or copy/paste the text)

Scope: /subscriptions/<subscribtion ID>/resourceGroups/lz-start-stop-vms-accp-1

  + Microsoft.Automation/automationAccounts/start-stop-vms-lz-1/jobs/7be55d1b-86d4-4c4f-afab-99d79c7b9fae [2018-06-30]

      apiVersion:              "2018-06-30"
      id:                      "/subscriptions/<subscribtion ID>/resourceGroups/lz-start-stop-vms-accp-1/providers/Microsoft.Automation/automationAccounts/start-stop-vms-lz-1/jobs/7be55d1b-86d4-4c4f-afab-99d79c7b9fae"
      location:                "westeurope"
      name:                    "7be55d1b-86d4-4c4f-afab-99d79c7b9fae"
      properties.runbook.name: "Bootstrap_Main"
      type:                    "Microsoft.Automation/automationAccounts/jobs"

  ~ Microsoft.Automation/automationAccounts/start-stop-vms-lz-1 [2018-06-30]
    - properties.RegistrationUrl: "<Automation account registration url>"

  ~ Microsoft.Automation/automationAccounts/start-stop-vms-lz-1/certificates/AzureRunAsCertificate [2018-06-30]
    + properties.base64Value: "<base 64 value of certificate>"

  ~ Microsoft.Automation/automationAccounts/start-stop-vms-lz-1/modules/Az.Accounts [2018-06-30]
    - location: "westeurope"
    + properties:

        contentLink.uri: "https://devopsgallerystorage.blob.core.windows.net/packages/az.accounts.1.6.2.nupkg"

~ Microsoft.Automation/automationAccounts/start-stop-vms-lz-1/modules/Az.Automation [2018-06-30]
    - location: "westeurope"
    + properties:

        contentLink.uri: "https://devopsgallerystorage.blob.core.windows.net/packages/az.automation.1.3.3.nupkg"

  ~ Microsoft.Automation/automationAccounts/start-stop-vms-lz-1/modules/Az.Compute [2018-06-30]
    - location: "westeurope"
    + properties:

        contentLink.uri: "https://devopsgallerystorage.blob.core.windows.net/packages/az.compute.2.6.0.nupkg"

  ~ Microsoft.Automation/automationAccounts/start-stop-vms-lz-1/modules/Az.Resources [2018-06-30]
    - location: "westeurope"
    + properties:

        contentLink.uri: "https://devopsgallerystorage.blob.core.windows.net/packages/az.resources.1.7.0.nupkg"

~ Microsoft.Automation/automationAccounts/start-stop-vms-lz-1/providers/Microsoft.Insights/diagnosticSettings/LogsAndMetricsToLogAnalytics [2017-05-01-preview]
[
      ~ 0:

        - retentionPolicy.enabled: false

      ~ 1:

        - retentionPolicy.enabled: false

      - 2:

          category:                "DscNodeStatus"
          enabled:                 false
          retentionPolicy.days:    0
          retentionPolicy.enabled: false

      ]
[
      ~ 0:

        - retentionPolicy:

            days:    0
            enabled: false

      ]

~ Microsoft.Automation/automationAccounts/start-stop-vms-lz-1/runbooks/Bootstrap_Main [2018-06-30]
    + properties.publishContentLink:

        uri:     "<link to storage account with SAS>"
        version: "<IP_ADDRESS>"

  ~ Microsoft.Automation/automationAccounts/start-stop-vms-lz-1/runbooks/ScheduledStartStop_Child [2018-06-30]
    + properties.publishContentLink:

        uri:     "<link to storage account with SAS>"
        version: "<IP_ADDRESS>"

  ~ Microsoft.Automation/automationAccounts/start-stop-vms-lz-1/runbooks/ScheduledStartStop_Parent [2018-06-30]
    + properties.publishContentLink:

        uri:     "<link to storage account with SAS>"
        version: "<IP_ADDRESS>"

~ Microsoft.Automation/automationAccounts/start-stop-vms-lz-1/variables/External_ExcludeDatesVmTag [2018-06-30]
    + properties.type: "System.String"

  ~ Microsoft.Automation/automationAccounts/start-stop-vms-lz-1/variables/External_ExcludeStartDatesVmTag [2018-06-30]
    + properties.type: "System.String"

  ~ Microsoft.Automation/automationAccounts/start-stop-vms-lz-1/variables/External_ExcludeStartWeekdaysVmTag [2018-06-30]
    + properties.type: "System.String"

  ~ Microsoft.Automation/automationAccounts/start-stop-vms-lz-1/variables/External_ExcludeStopDatesVmTag [2018-06-30]
    + properties.type: "System.String"

  ~ Microsoft.Automation/automationAccounts/start-stop-vms-lz-1/variables/External_ExcludeStopWeekdaysVmTag [2018-06-30]
    + properties.type: "System.String"

  ~ Microsoft.Automation/automationAccounts/start-stop-vms-lz-1/variables/External_ExcludeWeekdaysVmTag [2018-06-30]
    + properties.type: "System.String"

  ~ Microsoft.Automation/automationAccounts/start-stop-vms-lz-1/variables/External_OverwriteStartVmTag [2018-06-30]
    + properties.type: "System.String"

  ~ Microsoft.Automation/automationAccounts/start-stop-vms-lz-1/variables/External_OverwriteStopVmTag [2018-06-30]
    + properties.type: "System.String"

  ~ Microsoft.Automation/automationAccounts/start-stop-vms-lz-1/variables/External_ScheduleRunInterval [2018-06-30]
    + properties.type: "System.Int32"

  ~ Microsoft.Automation/automationAccounts/start-stop-vms-lz-1/variables/External_StartStopVmTag [2018-06-30]
    + properties.type: "System.String"

  ~ Microsoft.Automation/automationAccounts/start-stop-vms-lz-1/variables/Internal_AutomationAccountName [2018-06-30]
    + properties.type: "System.String"

  ~ Microsoft.Automation/automationAccounts/start-stop-vms-lz-1/variables/Internal_AzureSubscriptionId [2018-06-30]
    + properties.type: "System.String"
~ Microsoft.Automation/automationAccounts/start-stop-vms-lz-1/variables/Internal_ResourceGroupName [2018-06-30]
    + properties.type: "System.String"

  ~ Microsoft.Insights/workbooks/151555db-3d9f-50e9-81d5-c6ddcd868160 [2018-06-17-preview]
    - properties.timeModified: "2020-06-19T12:35:24.4464566Z"
    - properties.userId:       "10032000962af628"
    ~ properties.sourceId:     "azure monitor" => "Azure Monitor"

  = Microsoft.Automation/automationAccounts/start-stop-vms-lz-1/connections/AzureRunAsConnection [2018-06-30]

Resource changes: 1 to create, 24 to modify, 2 no change.

Additional context
Add any other context about the problem here.

The noise for Microsoft.Insights/diagnosticSettings is due to the fact that What-If is not able to handle partial PUT for arrays, which is tracked by #62.
I've fixed the other noise. [w33]?

The noise fix has been deployed. we will track the other issue with #62


Use ClientInterface in MockFactory

Q
A

Bug fix?
no

New feature?
no

BC breaks?
?

Deprecations?
no

Related tickets

Documentation

License
MIT

What's in this PR?
HttpClient is deprecated in favor of ClientInterface. By accepting ClientInterface in the MockFactory, developers can transition to the ClientInterface.

@dbu is this the way to do it?

What about the failing test? Do I need to fix more?

@dbu done, raised version and removed buzz-adapter from the matrix.


Update nightly used in CI

Move it up beyond the LLVM 19 upgrade to see if we have any issues with LLVM 19.

Ok I think all that remains is the wit-bindgen issue which is fixed in https://github.com/bytecodealliance/wit-bindgen/pull/1021 which is blocked on https://github.com/bytecodealliance/wit-bindgen/pull/1025 which is in the queue. Over the next few hours I'll work on getting that all published/landed/etc and then will send this to merge.


Development: Use yarn instead of npm

Hey everybody,
I was beginning to work on a contribution and since there's a package-lock.json file I assumed the library is using npm as a package manager, but after running npm install I realized the package-lock.json file gets regenerated, I was like: what? isn't the point of the lockfile to lock dependencies? what about shrinkwrap? I'm confused now.
So it seems like npm has not settled down what it really means to have this file, so I'm proposing to move from npm and use yarn as the package manager, this way dependencies are the same across contributor.
However, I guess I'm not understanding something right about npm, so if you have any ideas about what's going on please share on comments, maybe change the package manager is not necessary and I'm just wrong about it.

Please don't, many people are migrating from Yarn back to npm now it has caught up. Yarn is not really appropriate for OSS since most people don't have it installed and it is not part of a standard Node.js environment.
Besides, best practice is to .npmrc package-lock=false and .gitignore package-lock.json files for packages intending to be published. npm doesn't publish lockfiles to prevent bloating consumer node_modules with multiple versions of the same package; a lockfile in development gives a false sense of stability. It's also annoying for merge conflicts, etc. when juggling multiple PRs in a public project.

Thanks for your answer! That's quite a big thread and with some different opinions. At what point was decided in this project to include package-lock.json? I'm still confused about the role that file is playing, so I might take some time next days to read that thread and come back with an informed opinion.

Why haven't we .gitignore the package-lock.json file yet?

could you expound on "a lockfile in development gives a false sense of stability."?

npm hard blacklists lockfiles from being published. If you have a lockfile in this repo, the only time it will be used is by yourself and other contributors when they clone the repo and npm install for local development of the package. The lockfile captures dependencies at a moment in time, and after a few days a fresh lockfile can have a large diff. You end up developing your package against what npm looked like days, weeks or even months ago, vs the npm your consumers install with now. Your tests may pass locally but your consumers might experience something totally broken. If CI uses the lockfile then the situation is even worse.

How do we lock dependencies of this library so that users don't get minor version upgrades of our dependencies

The only way is to pin the dependencies to exact versions (no ^). This is a terrible anti-pattern! If every package did that, consumer's node_modules would be gigabytes of duplicated packages at every pinned version (a nightmare for client project bundle sizes). Users would not benefit from important patches deep in the dependency tree, with no way to opt-in. Sure, you may alleviate the maintenance burden for your package, but you end up burdening the entire ecosystem around you. If npm thought it was a good idea, they would not blacklist lockfiles from being published.
The problem of patch versions creating issues is minor, but real. The most efficient solution is for consumers to update all their dependencies, test their project works ok then create a lockfile until the next time their are ready to update and test.

Makes sense. Thanks for the explanation!

I’ll delete the lock file and contributors can use whatever package manager suits them.


@AjayKumar-MSFT I am also getting the same error

          @AjayKumar-MSFT I am also getting the same error

Entity Framework Core 6.0.8 initialized 'ApplicationDbContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.8' with options: None
System.ArgumentException: Connection string keyword 'server' is not supported. For a possible alternative, see https://go.microsoft.com/fwlink/?linkid=2142181.
I am using a Mac with docker to connect SQL
My connection string code is :
{
"ConnectionStrings": {
"DefaultConnection": "Server=localhost;Database=leavemanagementnet6;User=SA;Password=MyPassword123#;"
},
Originally posted by @jerrycalebj in https://github.com/MicrosoftDocs/azure-docs/issues/67937#issuecomment-1312529579
I am also getting the same error this issue sloved?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
ID: df55b676-8ff7-1470-3525-d0edfd406af6
Version Independent ID: ac264c26-7196-870b-760f-94a97ae437e8
Content: Tutorial: ASP.NET Core with Azure SQL Database - Azure App Service
Content Source: articles/app-service/tutorial-dotnetcore-sqldb-app.md
Service: app-service
GitHub Login: @cephalin Cephas Lin FTE
Microsoft Alias: cephalin

@Sudeesh-ponnaratta
Thanks for your feedback! We will investigate and update as appropriate.

Sudeesh-ponnaratta , Kindly ensure that you have not entered the connecting string value in application settings  including the double quotes (") . Ref.
The steps outlined/sample in the doc works fine.
As a side note, this channel is reserved for ‘Azure docs’ feedback- for sharing doc feedback and suggesting content improvements.


Fix when changelog using different line endings

Fixes so that changelog can have different line endings than [System.Environment]::NewLine suggests (issue #11).

Fixes #11

This change is

Looks great! Very sorry for the delay on this.


Update spring.version to the latest

https://github.com/NemProject/nem/pull/281
https://github.com/NemProject/nem/pull/331

https://github.com/NemProject/nem/pull/352


SPMD Makefile Hot Fix

Fixes #844
Currently the SPMD regression does not run at all. After fixing the regression runs.

Add missing SPMD tests on the latest bsg_manycore repo. For each new test, the pod dimensions are identical to the specific bsg_manycore Makefiles.
Filter out missing tests automatically as a future-proof fix

@hwpeng Comments addressed! I also added a printing so that users can be aware of non-existing tests and can add them to the flow asap.


feat(jmespath): add tree interpreter

Description of your changes

This PR adds a TreeInterpreter class to the JMESPath utility.
The tree interpreter serves as a component responsible for evaluating the Abstract Syntax Tree (AST) generated during the parsing process against a given JSON document.
The purpose of the tree interpreter is to interpret the meaning of the JMESPath expression represented by the AST and to extract the relevant data from the JSON document accordingly.
Related issues, RFCs

Issue number: #2209
Checklist

[x] My changes meet the tenets criteria
[x] I have performed a self-review of my own code
[x] I have commented my code where necessary, particularly in areas that should be flagged with a TODO, or hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my change is effective and works
[x] The PR title follows the conventional commit semantics

Breaking change checklist
Is it a breaking change?: NO

[ ] I have documented the migration process
[ ] I have added, implemented necessary warnings (if it can live side by side)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

I feel like tests are require here.

I feel like tests are require here.

Agree, and I have implemented them.
I have around 900 unit tests with 100% coverage that you can see in the feat/jmespath branch, here.
Initially the whole implementation of this utility was in a single PR but I decided to break it down into smaller PRs to make the review easier.
Breaking down the implementation into separate PRs was fairly easy but doing the same for the tests will take many hours. My plan was to get this plus 2 subsequent PRs for the remainder of the implementation and then open a PR dedicated to adding tests only (again, their implementation is there already).
If I merged the tests now we'd have CI red because some of the tests would fail due to missing modules that will be added in the next 2 PRs.
Also, the JMESPath module is currently marked as private, so even if we made a release right now it would not get published.
Do you think this would work? Otherwise I can put the remainder of the implementation plus the tests in this PR, but that'll result in over a thousand LOC (primarily due to the test spec being verbose).
Let me know how you'd like to proceed @sthulb.

The tests that will cover this and all other JMESPath PRs are in this PR: #2271


http2: add optional connection ping/keepalive

Signed-off-by: Greg Greenway<EMAIL_ADDRESS>Commit Message:
Additional Description:
Risk Level: low (disabled by default)
Testing: Added new tests
Docs Changes: documented
Release Notes: added
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Deprecated:]

Should this be noted in the XDS docs somewhere as "we recommend setting this"? I didn't see a really good place to add it.
Any idea how to make the upstream integration test work? I expected what I wrote to work, but the test waits forever without the connection getting closed.

It would also be good to add codec_impl_test.cc tests for the PINGs. There is a bit of an overlap with the integration tests, but having these lower level tests would be good too.

@mattklein123 I added jitter, but it blew up the size of the PR, due to needing to pass RandomGenerator to the codec now. But I think it's worth it; jitter is rather important.

Can you merge main and check CI and I can take a look?
/wait

Can you merge main and check CI and I can take a look?
/wait

I'm still trying to figure out a unit test (but I keep getting distracted by other things).

It would also be good to add codec_impl_test.cc tests for the PINGs. There is a bit of an overlap with the integration tests, but having these lower level tests would be good too.

@yanavlasov I tried, but I can't figure out what/how the tests work. I think I can test the jitter, and that the initial timer is set, and what happens when the timeout timer fires, but I don't have any idea how to verify that a PING was either sent, or how to send/not-send a response PING.

@yanavlasov I tried, but I can't figure out what/how the tests work. I think I can test the jitter, and that the initial timer is set, and what happens when the timeout timer fires, but I don't have any idea how to verify that a PING was either sent, or how to send/not-send a response PING.

The codec tests use a fake codec client for the other half of the connection. It should respond to pings just like a real connection does. Thus, if you don't hold any data, it should respond, and you for example held the the response data, it should not send any ping response. Whether this is worth it or not I will defer to both of you.

This is related to #7136.

See also https://github.com/envoyproxy/envoy/pull/13245 in case that will make this change less verbose. cc @akonradi

It looks like #13245 won't help here since Api::Api isn't already an existing argument to any of the methods that this adds RandomGenerator to.

Got another clang_tidy error about not being able to find a header on the last run.  No idea why it failed, since no related files changed.

/retest

If you merge main it should fix gcc. I think your other issues are an AZP outage.
/wait

I don't understand why, but //test/config_test:example_configs_test starting failing after I touched the examples, because they use deprecated field watchdog. That field was deprecated a week ago; why did it start failing now? Was bazel caching the test result based only on the content of the example .yaml, and not re-running when Envoy changed? @htuch

I don't understand why, but //test/config_test:example_configs_test starting failing after I touched the examples, because they use deprecated field watchdog. That field was deprecated a week ago; why did it start failing now? Was bazel caching the test result based only on the content of the example .yaml, and not re-running when Envoy changed? @htuch

Hmm interesting. cc @phlax who has been working on this.

LGTM. Can you merge main one more time which should fix ASAN? I don't understand the example config issue but we can look at that separately. I think it must have to do with the fact that watchdog is a bootstrap field, but I don't understand why the failure would not be deterministic.
/wait


More accurate colors.

More accurate conversion of the 6-6-6 cube rgb into hex.
https://ss64.com/bash/syntax-colors.html

Excellent! I did notice that the colors where a shade dark, but couldn't figure out why


feat(DetailPageHeader): Add Tag and Link children

More context is given in issue #186.
This gives the option to provide 2 additional child nodes to the DetailPageHeader: a Tag and a Link. Below is a screenshot from the Storybook.

I added some code review comments to explain my reasoning.

@AnthonyOliveri Hey Anthony! Sorry about the huge delay it getting this reviewed
I like what you're doing here, but I think we can further abstract it out a little bit. Odds are eventually somebody will want to add some other type of status in there, so I think it'd be best to abstract it out one step further. Instead of adding Link and Tag in there (which are basically your apps specific needs), let's just add any child that's not one of the current ones in the design to where you've stuck Link and Tag.
So you could turn your switch statement into something like...
const filteredChildren = Children.toArray(children).filter(child => {
      switch (child.type) {
        case Breadcrumb:
          breadcrumb = child;
          return false;
        case Tabs:
          tabs = child;
          return false;
        case OverflowMenu:
          overflow = child;
          return false;
        case Icon:
          icon = child;
          return false;
        default:
          return true;
      }
    });

And then use filtered children where you have Link/Tag
<span className="bx--detail-page-header-status-text">
                {statusText}
                {statusContent}
                {filteredChildren}
              </span>

That's an awesome idea @chrisdhanaraj! I'll try that out.
How should we handle spacing between the elements in filteredChildren? Should we leave them right next to each other and let the consumer modify the CSS in their project? Or add the {' '} elements from my 4th code review comment?

@chrisdhanaraj ☝ can you advise?

@chrisdhanaraj I just recently worked on a new generic DetailPageHeader component that will supersede this.  Can we close this PR?

Hi there! 👋
Thanks to everyone in this PR for their interest and time invested in helping out with carbon-components-react. I'm going to go and close this PR just because of in-activity, but please feel free to re-open if anyone believes this to be a valuable addition to the repo.
All I'm trying to do is go through older PRs and issues and clean-up ones that haven't seen as much activity recently, so am 100% willing to re-visit this and anything else that may be closed if those involved still believe them to be worthwhile 😄


Level about ssh

We should have a level about connecting over ssh.
One thought is that the optimal experience would have precise instructions about where to connect to right in the challenge description (hostname, port, etc), but we don't flexibly have this information anywhere even in templates.

Any update on this topic? Although only a few students use SSH, we still need a challenge to tell students how to connect dojo with SSH.

Haven't had a chance to work on this yet unfortunately!

Our team can take a look at this, and craft one challenge. We will push a PR once complete.

Sounds great, thanks!


Issue #88 - Fix error: Message too long

Fix #88 , message too long will be split into smaller chunks

I've had a more detailed look at this, and have also added a unit test that can be used to test bidiretional long messages. It populates a clip with a large number of notes (~384), and then queries the notes to verify that they are all intact. It is easy to extend this to test a significantly larger number of notes by increasing the number of time shifts applied.
It has shed light on a couple of limitations with this PR that need addressing:

The unit test currently passes with master but fails with the implementations of osc_server/client  in this PR, so I think the packet reassembly is failing somewhere.
The packet re-assembly works great on client.query(), but also needs adding to the await_message handler. Actually, both of these would benefit from a minor refactor to share the same receive code...
It also needs implementing in AbletonOSCClient's send_message method and osc_handler', so that outbound client → server messages (e.g. /live/clip/add/notes`)

Potentially (2) and (3) could become a separate Issue, but (1) should be fixed before this can be merged.
@StrongBearCeo I realise it has been a while since this original PR - so if you're not still working on this, no worries, at some point I (or somebody else) will be able to get this across the line.

@ideoforms that's great. I'll look into it when I have time, too.

@StrongBearCeo have you had the time to look at it? :)

@StrongBearCeo have you had the time to look at it? :)

@esaruoho I haven't. I've been using my own fork for this, actually


codegen output 719ea87132d24b9ebf7829f32ae36f40

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

2155 of 2506 (85.99%)  changed or added relevant lines in 77 files are covered.
141 unchanged lines in 50 files lost coverage.
Overall coverage remained the same at 68.859%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

box_sdk_gen/managers/sign_requests.py
12
13
92.31%

box_sdk_gen/base_object.py
6
8
75.0%

box_sdk_gen/jwt_auth.py
6
8
75.0%

box_sdk_gen/managers/authorization.py
3
5
60.0%

box_sdk_gen/managers/trashed_items.py
7
9
77.78%

box_sdk_gen/managers/uploads.py
13
15
86.67%

box_sdk_gen/managers/events.py
8
11
72.73%

box_sdk_gen/managers/file_version_legal_holds.py
3
6
50.0%

box_sdk_gen/managers/file_version_retentions.py
5
8
62.5%

box_sdk_gen/managers/metadata_templates.py
48
51
94.12%

Files with Coverage Reduction
New Missed Lines
%

box_sdk_gen/fetch.py
1
80.3%

box_sdk_gen/managers/events.py
1
71.05%

box_sdk_gen/managers/file_version_legal_holds.py
1
64.52%

box_sdk_gen/managers/file_version_retentions.py
1
68.57%

box_sdk_gen/managers/invites.py
1
59.52%

box_sdk_gen/managers/session_termination.py
1
63.64%

box_sdk_gen/managers/sign_requests.py
1
91.07%

box_sdk_gen/managers/sign_templates.py
1
64.52%

box_sdk_gen/managers/storage_policies.py
1
64.52%

box_sdk_gen/managers/workflows.py
1
60.94%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
5665

Relevant Lines:
8227

💛  - Coveralls


Visual editor

[DRAFT]

I suggest to look into https://github.com/Siccity/xNode this might be perfect for the graph representation and you should be able to 1:1 copy paste the node scripts into a graph node script
maybe the graph needs a little extension to allow n:m connections without binding them to a variable but other than that it seems simplistic enough


Dictionaries with null values crash serializer

Assuming you have a Dictionary, with the valid form:
{
"Key": null
}

An attempt to serialize this throws a null-pointer exception.
Stacktrace:
System.NullReferenceException: Object reference not set to an instance of an object.
   at System.Object.GetType()
   at YAXLib.YAXSerializer.AddObjectToElement(XElement elem, XName alias, Object obj) in d:\Codes\GitHub\YAXLib\YAXLib\YAXSerializer.cs:line 1328
   at YAXLib.YAXSerializer.MakeDictionaryElement(XElement insertionLocation, XName elementName, Object elementValue, YAXDictionaryAttribute dicAttrInst, YAXCollectionAttribute collectionAttrInst) in d:\Codes\GitHub\YAXLib\YAXLib\YAXSerializer.cs:line 1297
   at YAXLib.YAXSerializer.AddObjectToElement(XElement elem, XName alias, Object obj) in d:\Codes\GitHub\YAXLib\YAXLib\YAXSerializer.cs:line 1337
   at YAXLib.YAXSerializer.MakeCollectionElement(XElement insertionLocation, XName elementName, Object elementValue, YAXCollectionAttribute collectionAttrInst, String format) in d:\Codes\GitHub\YAXLib\YAXLib\YAXSerializer.cs:line 1469
   at YAXLib.YAXSerializer.MakeElement(XElement insertionLocation, MemberWrapper member, Object elementValue, Boolean& moveDescOnly, Boolean& alreadyAdded) in d:\Codes\GitHub\YAXLib\YAXLib\YAXSerializer.cs:line 1112
   at YAXLib.YAXSerializer.SerializeBase(Object obj, XName className) in d:\Codes\GitHub\YAXLib\YAXLib\YAXSerializer.cs:line 907
   at YAXLib.YAXSerializer.SerializeBase(Object obj) in d:\Codes\GitHub\YAXLib\YAXLib\YAXSerializer.cs:line 609
   at YAXLib.YAXSerializer.SerializeXDocument(Object obj) in d:\Codes\GitHub\YAXLib\YAXLib\YAXSerializer.cs:line 539
   at YAXLib.YAXSerializer.Serialize(Object obj, XmlWriter xmlWriter) in d:\Codes\GitHub\YAXLib\YAXLib\YAXSerializer.cs:line 380
// snip

The value of null should be allowed/supported as a value in a dictionary.

Looks like a duplicate to https://github.com/sinairv/YAXLib/issues/45 which was fixed and closed.

Any idea which version it has been fixed?

I'm not quite sure. It's probably gone out with 2.14 or 2.15.

In version 2.15 the following test would not throw a NullReferenceException any more but it would fail. It's not part of the unit tests.
Expected: null
But was:  <System.Object>
[Test]
public void DictionaryWithNullValue()
{
    const string theKey = "TheKey";
    var d = new Dictionary<string, object>() {{ theKey, null}};
    var serializer = new YAXSerializer(typeof(Dictionary<string, object>), YAXExceptionHandlingPolicies.DoNotThrow, YAXExceptionTypes.Warning, YAXSerializationOptions.SerializeNullObjects);
    var got = serializer.Serialize(d);
    var gotDes = serializer.Deserialize(got) as Dictionary<string, object>;
    Assert.AreEqual(d[theKey], gotDes[theKey]);
}

@axunonb do you mean it's fixed in 2.15 and unit tested? Or is the unit test not yet in the code?

Unfortunately not yet part of the unit tests.

Ah well so if you could PR this unit test, then we can for sure close this one :)
Test looks good :)

The test is failing in the build. See AppVeyor logs.

Regarding this issue and https://github.com/sinairv/YAXLib/issues/50 I'd like to open a discussion about introducing an YaxIsNullable attribute (similar to this).
The idea expressed in pseudo code was:
Case 1:
Serialization:
if (class member has value of null) && !typeof(string) && !typeof(NullableValueType)
{
    if YAXDontSerializeIfNull
    {
	    do not serialize
    }
    else if YaxIsNullable
    {
        serialize with xsi:nil = "true"
    }
}

Deserialization:
if ((element for class member is missing) || ((element has xsi:nil = "true") && (member IsNullable))
{
    deserialize as null
}

Case 2
Serialization:
if (class member has value of null) && (typeof(string) || typeof(NullableValueType))
{
    if YAXDontSerializeIfNull
    {
        do not serialize
    }
    else if YaxIsNullable
    {
        serialize with xsi:nil = "true"
    }
    else
    {
        serialize as empty
    }
}

Deserialization:
if ((element for class member is missing) || (element for class member is empty) || (element has xsi:nil = "true"))
{
   if (member is (typeof(string) || typeof(NullableValueType || has YaxIsNullable))
   {
       deserialize as null
   }
   else
   {
       throw exception
   }
}

For classes implementing IList which have the new YaxIsNullable attribute, null values would be serialized explicitly with xsi:nil = "true", and be deserialized like above.
What do you think?

This seems quite reasonable to me. I particularly liked usage of standard xsi:nil here. I just have a couple of questions/concerns:

I didn't quite get why it should allow strings and nullable value types to produce empty elements, but not for other complex types.
We need to have a strategy for members serialised as attribute. For the case of those members serialised as an XML element adding the xsi:nil attribute is possible. But it's not the case for attributes. One possible strategy (that I personally have mixed feelings about it) is once an attribute is nullable and null, it's going to be turned into an XML element to accomodate the xsi:nil attribute. Not ideal but a possible approach. What do you think?

I like this discussion but IMO it should be in a new issue as it was hard finding it again. This issue should be closed.
Also what about NOT serializing anything for null values? (no element at all)

PS @axunonb Nice logo!

@sinairv

why it should allow strings and nullable value types to produce empty elements

Good point. The idea was that only the YaxIsNullable attribute and null strings should produce the xsi:nil = "true".

But it's not the case for attributes.

Yes, unfortunately, and I share your mixed feelings about turning attributes into elements.

Alternative:
What if we dropped decoration with YAXDontSerializeIfNull completely and follow @304NotModified's comment: Turn the default behavior upside down and never serialize null, neither as an element, nor as an attribute. Looks clean and simple, and I really like it. But it would be a breaking change - for a good reason, though.
For those who wanted to serialize null explicitly (which could be appreciated by humans editing XML), following the "upside down" strategy sth. like YAXExplicitlySerializeIfNull could be introduced for elements, leading to serialization with attribute xsi:nil = "true". And for attributes: Making xsi:nil = "true" a "special value" feels as "mixed" as turning attributes into elements, doesn't it? I'd rather have no explicit null for attributes, because it's not covered in XML definition.

@axunonb I see the test DictionaryWithNullValue now succeeds nowadays. I'm doubting if we should close this one

@axunonb I see the test DictionaryWithNullValue now succeeds nowadays. I'm doubting if we should close this one

To good to be true - null requires some devotion, see https://github.com/YAXLib/YAXLib/issues/50#issuecomment-798984632 - leave open for now

@304NotModified  Serializing to/from this XML
<DictionaryOfStringObject>
  <KeyValuePairOfStringObject>
    <Key>TheKey</Key>
  </KeyValuePairOfStringObject>
</DictionaryOfStringObject>

works. Value is missing in XML, thus treated as null. All okay, so let's close this issue.


Optimization/homepage

the options object will not be rejected if missing width and height, add width and height has component params.
Default options like options={}, since its options, its not required.

ZestyImage styles, attributes, and options should have default empty object. Can loading have a default too?

@ardeay  updated it already, please review thank you!


Update bycript to 5.0.0

I run and passed all the tests

@venables could you please check this PR?

Thanks @andreacanton !


Question about async_std::fs::ReadDir

I am a new user for async-std. Recently I want to wirte a program with rust asycn-std crate to achieve get all files under a directory. But I found that the ReadDir struct have no public methods to get DirEntry struct(Actually it have no public method.). At the same time, I found a example about use async_std::fs::DirEntry in docs.rs:

In this example, it use next method of async_std::fs::ReadDir struct. But actually the next method of async_std::fs::ReadDir struct is private.

ReadDir is Stream, and it is Stream's next that the example uses for async iteration. You'll need to use async_std::stream::Stream in order to use it

ReadDir is Stream, and it is Stream's next that the example uses for async iteration. You'll need to use async_std::stream::Stream in order to use it

ReadDir is Stream, and it is Stream's next that the example uses for async iteration. You'll need to use async_std::stream::Stream in order to use it, which is included in the async_std prelude

Oh, thanks for your reply. I know where I take a mistake. Thanks for you again😎.


Fix datetime incremental tables scanning more of table than expected

resolves #717
docs dbt-labs/docs.getdbt.com/#

Problem
Scan using partition is not possible because the partition column is transformed.

Solution
~Use date_trunc instead of datetime_trunc for datetime column.~
~It seems to work expected, but date_trunc(datetime, hour) is not in the documentation, so I am checking with GCP support.~
I got a reply from gcp support that date_trunc(datetime,hour) is not supported.
Therefore, I changed the partition column to a method that does not transform it.
Caution
The following settings were not overwritten until now, but with this modification they will be overwritten.
{{ config(
    materialized='incremental',
    unique_key='id',
    partition_by={
      "field": "created_at",
      "data_type": "datetime",
      "granularity": "month",
    },
    incremental_strategy = 'insert_overwrite',
    partitions = ['"2023-01-02"'],
  )
}}

with a as (
  select 1 as id, datetime("2023-01-01 00:00:00") as created_at
)
select * from a

Checklist

[x] I have read the contributing guide and understand what's expected of me
[x] I have run this code in development and it appears to resolve the stated issue
[x] This PR includes tests, or tests are not required/relevant for this PR
[x] This PR has no interface changes (e.g. macros, cli, logs, json artifacts, config files, adapter interface, etc) or this PR has already received feedback and approval from Product or DX

Performance test
model
{{ config(
    materialized='incremental',
    partition_by={
      "field": "created_at",
      "data_type": "datetime",
      "granularity": "day"
    },
    incremental_strategy = 'insert_overwrite'
  )
}}

with r as (
  SELECT n FROM UNNEST(GENERATE_ARRAY(1, 1000000)) AS n ORDER BY n
),
p as (
{% if is_incremental() -%}
  SELECT n FROM UNNEST(GENERATE_ARRAY(1, 10)) AS n ORDER BY n
{%- else -%}
  SELECT n FROM UNNEST(GENERATE_ARRAY(1, 1000)) AS n ORDER BY n
{%- endif %}
)
select
  p.n * 100000 + r.n as id,
  LPAD('', 4096, '.') as val1,
  LPAD('', 4096, '.') as val2,
  LPAD('', 4096, '.') as val3,
  datetime_add(datetime '2020-01-01 00:00:00', interval p.n day) as created_at
from p
cross join r

results

type
data_type
granularity
sec
scan bytes

before
datetime
day
29.00s
11.31 TB

after
datetime
day
28.76s
229.37 GB

before
date
day
29.98s
229.37 GB

after
date
day
26.99s
229.37 GB


Dropdown accessibility issue

Here is the code that we get when the Semantic-UI dropdown is rendered:
http://jsfiddle.net/cshfb65c/1/
The problems is that the input tag should have title attribute, according to the WCAG 2.0 specifications.
How can I fix this?

Hi @smartm0use,
You can initialize a dropdown on pre-existing HTML instead of initializing it on select element directly. This way you can add a title to the input.
Thank you for posting, but although it’s a valid usage question, we’ve limited GitHub Issues to bug reports and feature requests, keeping the board more manageable for maintainers; see the contributing guidelines for more information on what kind of posts should find themselves into the GitHub Issues board.
To get answers or feedback that might allow you to repost this issue, please use one of our other support resources:

Gitter chatroom
Official forums
StackOverflow

I thing it could be an issue. Anyway the element
<input class="search" autocomplete="off" tabindex="0">
is added only when the dropdown/select is used in a modal.
Do you know the reason or can you help me to figure out why this happens?

@smartm0use Show it to me in a JSFiddle please.

I solved forking Semantic-UI and adding the following change:

@smartm0use Now I get it. The accessibility of the framework has been discussed before here #348, the tl;dr version of it is that it’s out of the framework’s scope, and is a developer’s responsibility if they want their project to be compliant with the standard, so I don’t think the PR will accomplish anything—the issue is much bigger than that, and I’d recommend to give that thread a read to understand the problem with SUI’s accessibility better.


Broken indentation after formatting

I noticed the indentation in the run section of my rule was broken after formatting:
$ snakefmt --version
snakefmt, version 0.8.0

$ cat Snakefile
rule test:
    input:
        gfa="mdbg.gfa",
    output:
        gfa="mdbg.no_seq.gfa",
    run:
        with open(input.gfa, "rt") as fi, open(output.gfa, "wt") as fo:
            for line in fi:
                if line.startswith("S"):
                    record_type, name, sequence, *__ = line.strip("\n").split(
                        "\t", maxsplit=3
                    )
                    new_line = (
                        "\t".join([record_type, name, "*", f"LN:i:{len(sequence)}"])
                    + "\n"
                                )
                else:
                    new_line = line
                fo.write(new_line)

Please note the line starting with new _line = :
$ snakefmt - < Snakefile
rule test:
    input:
        gfa="mdbg.gfa",
    output:
        gfa="mdbg.no_seq.gfa",
    run:
        with open(input.gfa, "rt") as fi, open(output.gfa, "wt") as fo:
            for line in fi:
                if line.startswith("S"):
                    record_type, name, sequence, *__ = line.strip("\n").split(
                        "\t", maxsplit=3
                        )
                        new_line = (
                            "\t".join([record_type, name, "*", f"LN:i:{len(sequence)}"])
                        + "\n"
                    )
                else:
                    new_line = line
                fo.write(new_line)
[INFO] All done 🎉

Sorry about this @jzhang-dev. We've got a few indentation-related problems currently, we'll try and get to the bottom of this soon


feat(run): add filename to run/testing log output

switch cloudrunci to use 'log' instead of 'fmt.Print*'
feat(run/testing): include filename in log prefix

This was an effort to make some of the logs more readable, but it did not prove to be as helpful as i imagined. Closing.


Arrow button doesn't work

When i click on left or right arrow the cursor doesn't moves

clear app data to fix this issue.
On Thu, Jun 30, 2022, 8:36 PM Sifatplayz @.***> wrote:

When i click on left or right arrow the cursor doesn't moves
—
Reply to this email directly, view it on GitHub
https://github.com/deadlyjack/Acode/issues/433, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJHIHI4OPU3OZMP7FPSDKILVRWZZDANCNFSM52JWL3PQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


Outbound IP address?

Why would you note down the outbound IP address to register here? Shouldn't it be the Virtual IP Address (inbound IP) of the Web App?

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

ID: c48f4d61-3e3d-30f8-b86c-1da0657e684d
Version Independent ID: 3a036764-9d39-8c83-f5ea-1cdc321c370f
Content: Host load-balanced Azure web apps at the zone apex
Content Source: articles/dns/dns-alias-appservice.md
Service: dns
GitHub Login: @vhorne
Microsoft Alias: victorh

@dcbrown16 , Thank you for providing your feedback. I will take a look and get back to you shortly.

@dcbrown16 , Yes your understanding is correct, that has to be Inbound IP address, but the first IP address which is listed in the Outbound IP list is always the Inbound IP address which the Web App uses.
If you want to test it out, first note down the first IP of the Outbound IP address from Properties and then to ping the WebApp's FQDN. You can compare the results and it will be the same as the first IP in the Outbound IP list.
I am closing this now. If you have any further questions, please feel free to reopen.


[Question]: How can i return page number as source in Rag.

Question Validation

[X] I have searched both the documentation and discord for an answer.

Question
This is my code:
from llama_index.core.node_parser import MarkdownElementNodeParser
node_parser = MarkdownElementNodeParser(
llm=OpenAI(model="gpt-3.5-turbo-0125"), num_workers=8
)
nodes = node_parser.get_nodes_from_documents(documents)
base_nodes, objects = node_parser.get_nodes_and_objects(nodes)
recursive_index = VectorStoreIndex(nodes=base_nodes + objects)
from llama_index.postprocessor.flag_embedding_reranker import FlagEmbeddingReranker
reranker = FlagEmbeddingReranker(
top_n=5,
model="BAAI/bge-reranker-large",
)
recursive_query_engine = recursive_index.as_query_engine(
similarity_top_k=5, node_postprocessors=[reranker], verbose=True
)
query = "Explain about uber?"
response_2 = recursive_query_engine.query(query)
Now it gives only response i need to get the page number where it is retreived from

@dosu this how iam loading my documents iam not using SimpleDirectoryReader instead iam using llamaparse,Here is snippet of code
documents = LlamaParse(result_type="markdown").load_data("uber2k.pdf")

@dosubot I am also working on the same issue. But I am using documents = SimpleDirectoryReader(path, file_extractor=file_extractor).load_data(), the documents doesn't get page number in its metadata.


Change tests so different backends are not tested in the same test

One should use pytest.mark.parametrize instead, here we can even allow importorskip.
This would be more stable and easier to test going forward.

Agreed. However, not all tests will work like this, as the kwargs will be sent to the specific backend.

I don't know what you mean?
This would work just fine:
@pytest.mark.parametrize("backend", [
MP, pytest.param(PB, pytest.mark.skipif(... plotly importable)])
def test_quiver(backend):
    dtuplot.quiver(..., backend=backend)

with some changes to make it fully functional.

There are many ways to expand on this.
But the idea would be to explicitly create tests for each backend. Having everything in 1 is not ideal.

Agreed! And the addition of the skipif not importable is a great way of getting around the challenges with not every backend being installed as default!


question about choose the param like the "min_dist" or "max_dist".

Really thanks for the quick reply.
Dear author,

I wanna know how to choose the param like the "min_dist" or "max_dist".  It is according to the category of "vehicle" ?
BTW, if I also want to use the category "pedestrain" , how to set the params above?
Really thanks.

The value of those six parameters in your screenshot can be chosen according to your need. Specifically, we chose the distance range to be [30, 70] since we are focusing on the remote objects. Besides, this range also includes most of our targets; we had studied the distance distribution of the targets before setting these parameters, yet I don't have the related script on hand. Consider writing one for "pedestrain" before using it and hopefully it will give you a sense of how to set up the value. Some of the code have to be modified if you want to apply different values for vehicle and pedestrain (this would be another story).
Just as a reminder, nuScenes has labeled the motion status for every vehicle and human. Here is the detailed introduction. We didn't make use of it (and instead setting a threshold velocity manually) just because we didn't notice it at that time. Therefore, if you are thinking about the suitable value of threshold velocity for pedestrian, I would strongly recommend rather using the information provided by nuScenes.


[Bug] Updating TabViewItem Content does not change the displayed content

Description
If I have a tab selected and change its content, I do not see an update to that content until I switch tabs and then switch back.
Steps to Reproduce

Assign TabViewItems to a TabView
Update the content of the selected tab
Switch tabs and then switch back to see the update happened.

Expected Behavior
Update happens immediately
Actual Behavior
Update happens only when refreshing the tab somehow
Basic Information

Version with issue: Commit 43b8dbde
Last known good version: Never
IDE: VS 2019 16.7.7
Platform Target Frameworks: Not relevant, Toolkit Forms code problem

iOS:
Android:
UWP:

Android Support Library Version:
Nuget Packages:
Affected Devices:

Workaround

Reproduction imagery

Reproduction Link
https://github.com/adammeaney/XamarinCommunityToolkit/tree/UpdateTabContent

I ran into this same issue, and found a possible work around for anyone thats stuck with this:
Create a top level ContentView in the TabItemView and then alter the Content of that top level ContentView. For some reason this seems to correctly update, even though setting the Content of the TabItemView does not.
So far there don't seem to be any noticeable downsides to this.

I ran into this same issue, and found a possible work around for anyone thats stuck with this:
Create a top level ContentView in the TabItemView and then alter the Content of that top level ContentView. For some reason this seems to correctly update, even though setting the Content of the TabItemView does not.
So far there don't seem to be any noticeable downsides to this.

@adammeaney , haven't checked your code. do you harness Frame class in your project ?


Fullscreen.hs: don't lay out windows obscured by fullscreen

Description
There's no reason to return a rectangle for any window that is totally
obscured by a full-screen window, and not doing so has the nice property that
when hidden windows' borders overlap with a full-screen window's, the user
will not be confused by overlapping partially-drawn borders. It also makes the
Fullscreen modifiers combine much better with smartBorders.
Checklist

[x]  I've read CONTRIBUTING.md
[ ]  I tested my changes with xmonad-testing

xmonad-testing has no configs with a Fullscreen layout; I have tested on my own system and this works as described.

[x]  I updated the CHANGES.md file

Thanks!


New Steam client causes crash on invite

On Windows, using the latest version 0.2.3 of RemotePlayWhatever, the program crashes without any message when I try to send a Remote Play invitation to a friend. This was still working fine two days ago with the old Steam client.
Friend list is appearing fine, only the invitation part seems to be broken.

Can confirm, new steam client update which was the one used in beta (and now stable release).

Working on a fix.

Should be fixed with latest release.


Fix Chrome tab move leaving zone highlighted

Summary of the Pull Request
When a Chrome tab is moved, its style is changed so IsInterestingWindow no longer returns true. This would leave the zones highlighted. This PR stores the HWND of the window which move triggered the zones to be highlighted.

PR Checklist

[x] Closes #534
[x] CLA signed. If not, go over here and sign the CLA

Validation Steps Performed
Manual

Beside the variable name change, LGTM.

Updated, PTAL


Clarify integration with Celery when using Django

Hello,
I am a bit confused by the documentation on how to use Raven with Celery in the context of Django.
The documentation states that « If you are also using Celery, there is a handler being automatically registered for you that captures the errors from workers. ». Which is quite cool!
However I have noticed that Celery-based errors come to Sentry with very little information − no stack-trace, no breadcrumbs.
Conversely, I have another Django app where (mainly for historical reasons) we registered Raven both in the Django configuration and using the Celery integration instructions − and the error reporting in Sentry is better. (But it might be for other reasons / configurations)
My question would be : is the handler automatically set via Django expected to be a fully-fledged integration, or is it a basic integration, and it is needed to also use the register_signal snippets to?
The docs could also use a short sentence making that clearer :)
Thanks !

Gently upping this :) Would anyone have any idea?

Hard to say since configurations vary a lot. So the best I can probably do is point you to how we use it ourselves in Sentry: https://github.com/getsentry/sentry/blob/master/src/sentry/celery.py#L63-L74


Repo sync for protected CLA branch

The pull request is created from master637448833872568919 to master to fix git push error for protected CLA branch

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


⚠ eaglestorage.com.au has degraded performance

In 07ec5ad, eaglestorage.com.au (https://eaglestorage.com.au) experienced degraded performance:

HTTP code: 200
Response time: 5576 ms

Resolved: eaglestorage.com.au performance has improved in 1f02d4f after 10 minutes.


Adjust git.cwd to use a relative path to git root (rebased)

Re-sending this PR:
https://github.com/denolehov/obsidian-git/pull/587
Apologies for resubmission, I had to refactor my fork and the branch tracked by the old PR. Shouldn't happen again

Works fine on my machine now. Thanks for your contribution!


suggestions to improve v4 software install

Hello,
I wanted to suggested a few items for the v4 software install: https://github.com/Ribbit-Network/ribbit-network-frog-hardware/blob/main/v4/assembly-instructions/3-software.md

Connect the esp32 board to your computer via a USB C Cable: make sure your cable does support data. many USB cable are for charging only. example of a cable you can use: https://www.amazon.com/dp/B0794M53HQ?ref=ppx_yo2ov_dt_b_product_details&th=1 -- one way to verify your cable is of the correct type: as soon as you plug in the ESP32 your computer (PC or Mac) should detect a new hardware and prompt you for installing drivers if missing. another hint that you have the correct cable: the JTAG serial port should be listed when you hit the CONNECT button (see next step)
Hold the "boot" button and press the "reset" button (shown below). This puts the esp32 into a flashing mode: rephrase to: Hold the "boot" button (red square) then press the "reset" button (blue square) as shown below. This puts the esp32 into a flashing mode. the lights of your ESP32 should turn off.
Hit the "Connect Button": Hit the "CONNECT" button

Great suggestions @pascaljoly !

Updated

PR #213


Preload script for later use

Is there a way to pre-load a script for later use?
Imagine that I have script A and script B, script A never changes but script B is dynamic, is there a way to preload script A inside an executor and execute script B in the same executor that script A is preloaded?

I think ESM might be the one you are looking for.
Javet allows the applications to load ES modules via import {...} from 'module'. Those modules can be actively cached by V8 in a lazy-loading manner, or if you want to, you may have the applications preload them.
Please refer to this doc for detail.

Thanks @caoccao , the ESM would work but unfortunately the script is not ES Module compatible.
Are values assigned to the GlobalObject immediately copied and cached inside the runtime?
this.runtime.getGlobalObject().set("staticScript", script);

You cannot set a script as a string literal directly, hoping it works. Because it remains a string in V8. You have to set a function which has already been compiled from a script string.
If you set a function to any objects including the global object, yes, it becomes effective immediately.
I suggest you to inject a proxied Java object if that's possible with the following benefits.

No compilation
No additional memory
Super fast


Linux aarch64 wheel

Is your feature request related to a problem? Please describe.
The Linux aarch64 wheel on the builds needs to be tested and confirm it works. Unfortunately it takes a really long time to build in CI (disabled except on main merge).

Also, we can't run protoc in this environment because https://pypi.org/project/protoc-wheel-0 does not have a Linux aarch64 wheel. We need to make sure we don't try to install it if possible.

Can now set runs-on: buildjet-4vcpu-ubuntu-2204-arm since we now have a runner


PyOpenPose failing due to error in OpenPoseWrapper():83

We had been using PyOpenPose successfully in one of our projects (deployed within a Docker image). However, one to two months ago, something must have changed which has resulted in PyOpenPose failing.
This is the error we get:
>>> op = OP.OpenPose((320, 240), (240, 240), (640, 480), "COCO", OPENPOSE_ROOT + os.sep + "models" + os.sep, 0, download_heatmaps)
/home/server/pyopenpose/PyOpenPoseLib/OpenPoseWrapper.cpp:OpenPoseWrapper():83
Starting initialization on thread. In src/openpose/pose/poseExtractorCaffe.cpp:netInitializationOnThread():177
Finished initialization on thread. In src/openpose/pose/poseExtractorCaffe.cpp:netInitializationOnThread():191
Starting initialization on thread. In src/openpose/pose/poseGpuRenderer.cpp:initializationOnThread():47
Finished initialization on thread. In src/openpose/pose/poseGpuRenderer.cpp:initializationOnThread():54
Starting initialization on thread. In src/openpose/face/faceExtractorCaffe.cpp:netInitializationOnThread():144
Finished initialization on thread. In src/openpose/face/faceExtractorCaffe.cpp:netInitializationOnThread():158
Starting initialization on thread. In src/openpose/face/faceGpuRenderer.cpp:initializationOnThread():36
Finished initialization on thread. In src/openpose/face/faceGpuRenderer.cpp:initializationOnThread():41
Starting initialization on thread. In src/openpose/hand/handExtractorCaffe.cpp:netInitializationOnThread():232
Finished initialization on thread. In src/openpose/hand/handExtractorCaffe.cpp:netInitializationOnThread():246
Starting initialization on thread. In src/openpose/hand/handGpuRenderer.cpp:initializationOnThread():36
Finished initialization on thread. In src/openpose/hand/handGpuRenderer.cpp:initializationOnThread():41

We can import cv2 and PyOpenPose successfully. The Openpose example script works too, writing keypoint files to disk.
Any idea where this idea might be coming from?

Do you have the latest openpose build? The API of openpose changes often and I try to update pyopenpose to work with the latest version. Current tested version is noted in the readme.

We don't always update our setup immediately, but we always use a pair of OpenPose and PyOpenpose recommended by you.
In this case we're talking about:
Openpose: commit f8834f3f26c5fb917902b35140198fd516254f5b
PyOpenpose: f8834f3f26c5fb917902b35140198fd516254f5b

We don't always update our setup immediately, but we always use a pair of OpenPose and PyOpenpose recommended by you.
In this case we're talking about:
Openpose: commit f430a7990df915ef92852e4b7744e06eecbd2b61
PyOpenpose: f8834f3


Update release-notes.md

Proposed changes

Unreleased project version (optional)

Related issues (optional)

Thanks @scjane :)


Make rules

Rule default: if the def file is newer than the sif file, build the sif file from the def file
Rule make deploy: default + cp all sif files to prefix/images

From Andreas in Slack: initial Makefile is done but i did run into some issues we should briefly address with Oleksandr and you. I made some assumption from where to build the container and what is in the search path but aside some config it seems to work. In addition  I did some debugging with Alex for Polaris. Will update the ticket with the issues i encountered.
[11:09 (https://improve-smw1216.slack.com/archives/D046XECHAQ4/p1668575352657279)
e.g.
sh src/bootstrap.sh -h
src/bootstrap.sh: line 6: ../config/improve.env: No such file or directory

Either change the current working directory to src inside the make file, or let's set the location of the config dir in the make file and pass it as a param to bootstrap.sh

@brettin Some questions :

how are we building singularity images, is bootstrap.sh the only blessed method?
What is the build context for the container or more precisely what is the "root" directory to build the container from. Do we assume everything is relative to ./Singularity (preferred) or ./Singularity/definitions or ./Singularity/src
Is bootstrap.sh a free standing tool and should be executable and in the $PATH and should it be part of the install/setup process (install.sh)

we should have one blessed method so that they are all built/named the same way.
./Singularity
it is a tool to help build containers in a reproducible manner.

This might solve your problem:
https://stackoverflow.com/questions/1789594/how-do-i-write-the-cd-command-in-a-makefile

Makefile ready for release.


Update Linking.js

Imports should be done using <React/...>. Alternative solutions are not supported by RN.


Font chosen not converting to saved file

Hey, not a coder here
Running Gifcurry <IP_ADDRESS> on Unbuntu 20.04
This could be an issue with just the one font but Uroob Italic, Uroob Bold and Uroob Bold Italic all becomes Uroob Regular when saving the file. I've tried messing around with the setting in the .yaml files but that doesn't seem to change anything.

Thanks and have a great day
-Brian

Hello,
When you run Gifcurry from the terminal, what is the output under TEXT > Text > Font > Family?
  - TEXT:
    - Text:
      - Font:
        - Family: ?

If you run
convert -list font

can you find the font in the output?
:+1:

Here is a screenshot from my terminal showing the output when I tried recreating that gif file. It came out the same as my original post even though 'Style: Italic' is in that output.

When I ran
convert -list font
I saw that Uroob is not listed but also that the number of listed fonts was not nearly as many as are available to choose from in Gifcurry GUI.

Hello,
You'll need to configure ImageMagick to recognize the font.
Here is a guide to help you.
Make ImageMagick recognize a font
:+1:


Discrete julian calendar day

https://github.com/CliMA/Insolation.jl/blob/82dda3db55695b7ca1fa587c50c86c946cc24cfc/src/ZenithAngleCalc.jl#L80
Because of FT(), calculated julian_day_abs are rounded in 6-hour intervals. For example when I try to make a time series of hourly julian_day_abs, julian_day_abs is the same for 1-6am.

@dennisYatunin any ideas why this is happening? Attached are the plots @ruillercoaster sent me earlier illustrating this issue.
with FT(...) (incorrect)

without FT(...) (correct)

@claresinger This is an amusing bug. While a Float64 can record around 17 digits of precision, a Float32 can only record 7:
julia> using Dates

julia> Float64(datetime2julian(now()))
2.4594459337575925e6

julia> Float32(datetime2julian(now()))
2.459446f6

So, we should not be converting the output of datetime2julian to an FT straight away. Instead, we need to convert at some later point in the calculation, when not all of those digits are necessary. I would say the easiest solution would be to force the use of Float64s throughout the calculation, up until the result is returned, at which point we convert the result to an FT.
However, there might also be an obvious point in the calculation where most of the digits stop mattering, in which case the conversion could happen there. For instantaneous_zenith_angle, that appears to be line 81, where all the digits before the decimal point are eliminated by taking the value modulo 1. So, one possible fix would be
julian_day_abs = datetime2julian(date)
η_UTC = FT(2)*FT(π) * FT(mod(julian_day_abs, 1))

For distance_declination, I think a similar thing happens on line 42, where we could compute FT(time - time_v) instead of just time - time_v.
I'd say it's up to personal preference which solution you want to use. The first one (convert on the final step) is less likely to be buggy, though it's also less elegant, I'd say.

Opened PR #22 to fix this issue


Error approving Graph SPFx solutions in admin centre

When uploading a Graph API consuming SPFx 1.6 solution, the admin centre preview API Management page is erroring.
First errors with a pop-up

Access to Azure Active Directory resources using the SharePoint Framework will be available soon.
Then errors with correlation ids:

A null value was found with expected type 'Edm.String[Nullable=False]. The expected type does not allow null values.
I had tested preview features on this tenancy using this admin centre fine previously. Maybe a bug?

I wonder if it's not just that these tenants were not yet fully updated.
We migrated our solution to 1.6 today.
And on some tenants it worked ,by doing something similar to this https://github.com/SharePoint/sp-dev-docs/issues/2473#issuecomment-419111117 .
However on other tenants I have the same exception.
The only thing I can think of at the moment is that 1.6 is not fully rolled out yet....

@Nasicus that seems reasonable. When I read the release notes for SPFx 1.6 https://github.com/SharePoint/sp-dev-docs/wiki/SharePoint-Framework-v1.6-release-notes, I see this line:
"On a related note, any permissions that were granted previous to the 1.6.0 release will need to be re-granted, as we have changed which AAD application is used."
When I look at my aad applications, I see the "old" one, SharePoint Online Client Extensibility, but I do not yet see a new aad app. Athough I do not yet know the name of the new one.
Hopefully this will fix itself quickly.

I have tried this on another tenancy. Still getting the coming soon message but the red messages appear to be related to old Apps using preview graph access as they don't appear on the other tenancy....
My app requests do come through on the other tenancy! So maybe related to tenancies with old app permissions that were granted...

I don't think it's related to old granted permissions.
We also successfully "migrated" tenants today where we had permissions from 1.4.1 approved.

A bit of chatter on this issue on Twitter as well. My understanding is that the PG is now well aware of the issue and they will sort it all out quickly. My current understanding is there is an app principle issue on some tenants with the rollout to SPFx 1.6. I have seen at least one hack to get around the issue, I recommend we all sit tight, this will get sorted out as quickly as the PG can make it happen.

Yes let's hope it gets looked at soon, certainly seems to be the case.

I suggest redirecting this issue to https://github.com/SharePoint/sp-dev-docs/issues/2472 as they are related.

Duplicate of https://github.com/SharePoint/sp-dev-docs/issues/2472

I dont know if this is realted to the above but still getting this error

Any suggestions ? thanks


sanitycheck: Append 'sanity-out' directory to --outdir argument.

Partial solution to #7146
This is done to reduce chances of users deleting data unintended.
Signed-off-by: Håkon Øye Amundsen<EMAIL_ADDRESS>

Codecov Report

Merging #7149 into master will decrease coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #7149      +/-   ##
==========================================
- Coverage   58.58%   58.58%   -0.01%
==========================================
  Files         464      464
  Lines       47478    47478
  Branches     8796     8796
==========================================
- Hits        27817    27816       -1
- Misses      15823    15824       +1
  Partials     3838     3838

Impacted Files
Coverage Δ

lib/posix/pthread.c
69.34% <0%> (-0.51%)
:arrow_down:

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 541c3cb...875b319. Read the comment docs.

CI is failing. I assume it needs to be updated to work with the new behaviour.
https://github.com/zephyrproject-rtos/zephyr/blob/master/.shippable.yml

CI is failing because the signed-off-line is not matching the email in the commit author:
author email (Håkon Øye Amundsen<EMAIL_ADDRESS>needs to match one of the signed-off-by entries.
``

Can you clarify if sanity-out is appended to the dir name, or another directory is created?
I'm also not sure I see the value of this change.

@galak Do you mean to clarify it in code or here? Another directory called sanity-out will be created.
The value is simply to avoid users deleting data unintended.
Imagine a first time user (like me) running scripts/sanitycheck and wanting to have the test report put in their projects root folder, this will result in the entire project folder being deleted. All local branches and non-tracked files will be deleted.

@galak Do you mean to clarify it in code or here? Another directory called sanity-out will be created.

Both.  In the commit message, and code.

NACK
I don't think this is a problem that needs to be addressed.
Why are you pointing sanitycheck's out directory to a directory containing non-disposable information?

it is NOT CLEAR that it will delete my_important_folder

At most, update the --help documentation.
Not introduce a Rube Goldberg contraption with respect to test artifact output.

instead of change options and defaults, I propose to perform some checks on the directory before it gets deleted, i.e. if directory exists when we try to create it the first time, check if it has some data from a previous run before deleting, if it does not, bail out or something like that.

To ensure that all generated files is deleted, one would have to store a list of generated files. This because the set of generated files might change across versions. So I don't see this as a feasible solution.

See https://github.com/zephyrproject-rtos/zephyr/pull/7183


About ADCtrajectory heading angle in r7.0

The heading angle in the trajectory sent by the planning module uses the angle of the vehicle axis or the direction angle of the vehicle speed？
System information

OS Platform and Distribution ( Ubuntu 20.04):
Apollo installed from (source):
Apollo version (7.0):

It represents vehicle axis angle


questui/mod.json' does not exist?

I'm suffering from these errors.
QuestPatcher.Core.AdbException: remote object '/sdcard/QuestPatcher/com.beatgames.beatsaber/installedMods/OculusDB_CoreMods_1.28.0_4124311467/  mod-list/         questui/mod.json' does not exist
at QuestPatcher.Core.AndroidDebugBridge.RunCommand(String command, Int32[] allowedExitCodes) in D:\a\QuestPatcher\QuestPatcher\QuestPatcher.Core\AndroidDebugBridge.cs:line 150
at QuestPatcher.Core.AndroidDebugBridge.DownloadFile(String name, String destination) in D:\a\QuestPatcher\QuestPatcher\QuestPatcher.Core\AndroidDebugBridge.cs:line 188
at QuestPatcher.Core.Modding.QModProvider.LoadLegacyMods() in D:\a\QuestPatcher\QuestPatcher\QuestPatcher.Core\Modding\QModProvider.cs:line 300
at QuestPatcher.Core.Modding.ModManager.LoadModsForCurrentApp() in D:\a\QuestPatcher\QuestPatcher\QuestPatcher.Core\Modding\ModManager.cs:line 177
at QuestPatcher.Core.QuestPatcherService.RunStartup() in D:\a\QuestPatcher\QuestPatcher\QuestPatcher.Core\QuestPatcherService.cs:line 136
at QuestPatcher.Services.QuestPatcherUiService.LoadAndHandleErrors() in D:\a\QuestPatcher\QuestPatcher\QuestPatcher\Services\QuestPatcherUiService.cs:line 94

Guess having kinda same issue but my error looks a bit different:
QuestPatcher.Core.AdbException: Code 1: adb: error: failed to stat remote object '/sdcard/QuestPatcher/com.beatgames.beatsaber/installedMods/bsml/mod.json': No such file or directory
at QuestPatcher.Core.AndroidDebugBridge.RunCommand(String command, Int32[] allowedExitCodes) in /Users/runner/work/QuestPatcher/QuestPatcher/QuestPatcher.Core/AndroidDebugBridge.cs:line 433
at QuestPatcher.Core.AndroidDebugBridge.DownloadFile(String name, String destination) in /Users/runner/work/QuestPatcher/QuestPatcher/QuestPatcher.Core/AndroidDebugBridge.cs:line 471
at QuestPatcher.Core.Modding.QModProvider.LoadLegacyMods() in /Users/runner/work/QuestPatcher/QuestPatcher/QuestPatcher.Core/Modding/QModProvider.cs:line 171
at QuestPatcher.Core.Modding.ModManager.LoadModsForCurrentApp() in /Users/runner/work/QuestPatcher/QuestPatcher/QuestPatcher.Core/Modding/ModManager.cs:line 242
at QuestPatcher.Core.QuestPatcherService.RunStartup() in /Users/runner/work/QuestPatcher/QuestPatcher/QuestPatcher.Core/QuestPatcherService.cs:line 137
at QuestPatcher.Services.QuestPatcherUiService.LoadAndHandleErrors() in /Users/runner/work/QuestPatcher/QuestPatcher/QuestPatcher/Services/QuestPatcherUiService.cs:line 96
Cannot find solution on the internet

Yeah this suggests you've got a corrupted mod in the /sdcard/QuestPatcher directory.
I'll change this issue to be for better error handling in this situation.

The aim would be to detect any mods that are missing a mod.json, treat them as corrupted and delete the folder.
This would also apply for any mods who's mod.jsons don't match the qmod schema.


CNF-14832: Refactoring applied configuration timeout mechanism to infer timeout from policy history

This is to support getting the Applied configuration timedout from ACM policy history. This is designed to be reusable with any similar timeout mechanism based on history
Last unit test implements:

TODO:

unit tests
K8s Unit tests
system tests

/cc @irinamihai @Missxiaoguo

/cc @pixelsoccupied

/lgtm

Closing this PR for now. It provides for a slightly more accurate timeout by processing historical events and follows k8s recommendation to get state from objects in the cluster instead of storing state but also required to process more data (Max 10 events per policies ) so it might cause issues when scaling to 3500 SNOs (although a slim chance). Planning to revisit interest for this if we encounter issues in the future.


Fixed gcvor detailed HTML report generation.

The GCOV HTML detailed report does not generate an html file.
Added parameter for generating the proper html files.
Tested with gcovr 3.3

Could you please comment on this minor issue?

Sorry. I had noticed that it failed and hadn't had time to look. It looks like the failure was just do to the change in the virtual machine they are being tested on... so I think this is good to merge. Thanks for the help!
Mark


User navigation: Search matches highlighted for users within the object

Now that @sourslaw (can't believe that is his name - lol) has potentially figured out the 1up / 2up controlled vocabulary feature... Another feature highly requested by users:
If search results are found / matched at the transcript level, can the viewer show users where the match appears on the page within the object? See this screenshot from Yale's Digital Collections site:

Link to item above: [https://collections.library.yale.edu/catalog/30083502]
*One thing I don't think I like about Yale's site is that you have to perform a full-text search via the home page to get the viewer to show you these transcript results at the page-level. Users should be able to search full-text from both the home page the way Yale has it set up and also from within the viewer itself to support casual browsing/ serendipitous search if they happen to stumble upon an object while browsing and would like to search within it (not have to read the whole thing).

now that we have the general universal viewer implemented for items, is this search feature feasible? would be a really nice thing to have to show users on launch.


Get current locale in page when using global transition

Environment

Operating System: Linux
Node Version:     v16.14.2
Nuxt Version:     3.3.1
Nitro Version:    2.3.1
Package Manager<EMAIL_ADDRESS>Builder:          vite
User Config:      modules, css, i18n
Runtime Modules<EMAIL_ADDRESS>Build Modules:    -

Reproduction
Minimal StackBlitz
https://stackblitz.com/edit/nuxt-starter-swfqqg?file=pages%2Findex.vue
Try to switch languages:
When you switch language to English, locale.value is still 'cs' (see console)
When you switch language to Czech, locale.value is still 'en' (see console)
Describe the bug
Hello there,
I am using transitions in my project and according to the documentation I have updated my layout like:
<template>

  <NuxtPage :transition="{
    name: 'page',
    mode: 'out-in',
    onBeforeEnter
  }" />
</template>

however if I print locale.value in my page component, it's value always corresponds to the previous locale.
How can I get the current locale value in my page please?
Thanks!
Additional context
No response
Logs
No response

This is a tricky one to me! Tried debugging and investigating. Couple of things I will mention:

Especially with transitions, it is best you have one element on root, so wrap up the component in a div like so:

<template>
+

  <NuxtPage :transition="{
    name: 'page',
    mode: 'out-in',
    onBeforeEnter
  }" />
+

</template>

I believe layouts are intended to be used with slots - so it would be ideal to have

<template>

-  <NuxtPage :transition=".." />
+ <slot />

</template>

So you should have a separate app.vue with NuxtLayout and NuxtPage elements with your transition logic there.
In fact, the Nuxt docs recommend to use app.vue if you have only a single layout (but I would think this is a minimal repro, so that's fine)

I did see if the switchLocalePath links being on the same component has an effect - it shouldn't and it doesn't so that's fine (though I wasn't able to see a declaration for it - const switchLocalePath = useSwitchLocalePath()). The tricky part is the ref change on transition since the console.warn statement is on the outside, but something like this works (but this would also not be preferable since it is per-page):

// https://v8.i18n.nuxtjs.org/guide/lang-switcher#per-page-component-transition
// https://github.com/nuxt-modules/i18n/blob/4ff543efc52534ed9039b5341926caac433ca928/playground/pages/index.vue#L31
definePageMeta({
  pageTransition: {
    name: 'page',
    mode: 'out-in',
    onBeforeEnter: async () => {
      const { finalizePendingLocaleChange, locale } = useNuxtApp().$i18n
      await finalizePendingLocaleChange()
      console.log('onBeforeEnter', locale.value)
    }
  }
})

I hope kazupon will be able to provide inputs on the soonest availability! 🙂

Same error, is there a solution ?


migrate to version 1.0.0

@yibeichan - could you please check if this look good to you (do not merge yet)

@satra @yibeichan - right now the tests are failing since the migration is adding schemaVersion to responseOption, but I realized that this class do not have schemaVersion property (only Item, Protocol, Activityhave), and that was also the case for the previous version. I could just remove the property from theresponseOprions`, but perhaps we should add it in the next versions of the schema?

why do we need schemaVersion for that specific class? let's keep schemaVersion only for the top level classes (Protocol, Activity, Item).

why do we need schemaVersion for that specific class? let's keep schemaVersion only for the top level classes (Protocol, Activity, Item).

oh, I thought that maybe we should, but if not, I will just remove it from my code

sounds good.

perhaps I can change the migrate function to specific order, so it's easier to see the changes

I should change Field to Item


2023.1.5 无法登录

Authentication to host 'rm-2zew511zrxc0eqo78eo.mysql.rds.aliyuncs.com' for user 'qianjian' using method 'mysql_native_password' failed with message: User qianjian already has more than 'max_user_connections' active connections

现在能上了（


feat: cleaned up grammar and formatting

[X] I have read freeCodeCamp's contribution guidelines.
[X] My pull request has a descriptive title (not a vague title like Update index.md)
[X] My pull request targets the master branch of freeCodeCamp.
[X] None of my changes are plagiarized from another source without proper attribution.
[X] All the files I changed are in the same world language (for example: only English changes, or only Chinese changes, etc.)
[X] My changes do not use shortened URLs or affiliate links.

Cleaned up formatting and grammar to help increase accuracy and readability.
Changes to test section were successfully verified locally.

Thanks a lot @cmccormack . The changes are great!

Thanks a lot @cmccormack . The changes are great!

Thank you!


Remove redundant TODO

This change is

#590  👈
dev

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @shaharsamocha7 and the rest of your teammates on  Graphite

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

Project coverage is 94.43%. Comparing base (1b4554e) to head (4d68f4a).

Additional details and impacted files
@@           Coverage Diff           @@
##              dev     #590   +/-   ##
=======================================
  Coverage   94.43%   94.43%
=======================================
  Files          69       69
  Lines        8755     8755
  Branches     8755     8755
=======================================
  Hits         8268     8268
  Misses        417      417
  Partials       70       70

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


Date objects being destroyed during merge

Date objects are not being copied correctly when using cloner so they are no longer date objects post merge.
I have found updating the return value for isObject to:
return value !== null && ( Object.prototype.toString.call( value ) === '[object Object]' || Array.isArray( value ) );
Seems to fix the issue

last time I've touched this was 4 years ago, meanwhile Object.getOwnPropertyDescriptors (plural) landed, basically removing the need for this module, except for descriptors which value is an object like one.
If you'd like to file a MR for your use cases, I'd be happy to consider it, but as I haven't used myself this module in 4 years, and all modules dependent on this are deprecated or used by nobody, I don't think I'll have any time to deal with this module.
I might, instead, deprecate it right away. Please let me know which option you prefer, thanks.

@WebReflection How have you go around getOwnPropertyDescriptors only passing references rather than creating copies of the objects and also the lack of support in IE11?

For IE11 polyfills, the rest is an Object.keys loop away, if the descripror value is type of object, and not null, recursion

Something like this:
const clone = obj => {
  const descriptors = Object.getOwnPropertyDescriptors(obj);
  Reflect.ownKeys(descriptors).forEach(key => {
    const descriptor = descriptors[key];
    const {value} = descriptor;
    switch (true) {
      case value instanceof Date:
        descriptor.value = new Date(+value);
        break;
      case value instanceof RegExp:
        descriptor.value = new RegExp(value.source, value.flags);
        break;
      case value instanceof Object:
        descriptor.value = clone(value);
        break;
    }
  });
  return Object.create(Object.getPrototypeOf(obj), descriptors);
};

Thank you. Been having issues finding any lightweight/working polyfills for getOwnPropertyDescriptors. The few I have found use Reflect which is also not supported by IE11.

Ever heard of polyfill.io? It patches IE11 too, with all these things

btw: https://github.com/ungap/get-own-property-descriptors

Actually, I've just added Reflect.ownKeys polyfill for IE too. Let's simplify the code, assuming you are using a bundler:
import ownKeys from '@ungap/own-keys';
const {create, defineProperty, getOwnPropertyDescriptor, getPrototypeOf} = Object;
const clone = obj => {
  const out = create(getPrototypeOf(obj));
  ownKeys(obj).forEach(key => {
    const descriptor = getOwnPropertyDescriptor(obj, key);
    const {value} = descriptor;
    switch (true) {
      case value instanceof Date:
        descriptor.value = new Date(+value);
        break;
      case value instanceof RegExp:
        descriptor.value = new RegExp(value.source, value.flags);
        break;
      case value instanceof Object:
        descriptor.value = clone(value);
        break;
    }
    defineProperty(out, key, descriptor);
  });
  return out;
};


Fixed a bunch of connection errors in TextureRegionEditor

Fix error spam on selection of Sprite2D, Sprite3D, NinePatchRect, StyleboxTexture or AtlasTexture:

Restored correct links to texture_changed, Added texture_changed signal to Sprite3D, Removed texture_changed from StyleBoxTexture (it's just a duplicate of already existed changed signal from Resource).
Fix #47477

Thanks!


Back End challenge view that runs tests and saves project URL

As a user, when I click on a backend challenge from the map, I see:

a challenge description
a stack of tests with instructions (just like the other challenges)
a text field where I can enter my project's URL

As a user, when I input the URL for my project, and click the "run test" button

the stack of tests tell me which passed and which failed
if all the tests pass, I get a toast confirming this. My project URL is saved as part of the entry in my progress array.

@BerkeleyTrue this is the top priority. What is the status of this?

I'm working on it

@berkeleytrue to be 100% unambiguous this issue is critical path for curriculum development. Please focus on this issue so we can keep moving forward with our back end development curriculum.

hi,nice to met you.

@QuincyLarson Can this be closed since https://github.com/freeCodeCamp/freeCodeCamp/pull/11058 was merged?

@systimotic yes. Thanks!


Add FIM template for CodeGemma

Also pass stop tokens to llama.cpp.

@postmasters thanks for making the switch to preview, and again appreciate the PR! Sorry if it wasn't super straightforward to make the switch


Add support for disabling an index automatic download

FreeBSD's pkg has three scenarios when index fetching is disabled.

When a config option REPO_AUTOUPDATE is set to NO
When the -U flag is used
if the user does not have write access to the destination directory for the index

Consider implementing one or more of these in mport

An example of -U usage is on the pkg fetch command  (pkg fetch -U)

Added mport -U download foo
Added config option REPO_AUTOUPDATE with value of NO or FALSE accepted.

added call to access(2) to check write on index file.


[Security] BREAKING CHANGE: az security contact: version update

Related command

az security setting
az security contact
Description

updated to azure-mgmt-security 6.0.0
refactored setting and contact to use aad
Testing Guide

added to tests
History Notes

[Component Name 1] BREAKING CHANGE: az security contact create: Now uses the newer security contact service based on api-version 2020-01-01-preview
[Component Name 2] az security setting: aad based module refactor

This checklist is used to make sure that common guidelines for a pull request are followed.

[x] The PR title and description has followed the guideline in Submitting Pull Requests.

[x] I adhere to the Command Guidelines.

[x] I adhere to the Error Handling Guidelines.

Security

/azp run


No Nexus Found

Hello.
I am getting this error on ubuntu when I try to run a node in my computer:
"No Nexus Found."
This error is mentioned no where in the documnetation nor the google search. What is this error and how can I fix it?

Hi! Not sure which doc you're following but please use this one
https://docs.phantasma.io/
it should have all you need to get started, if not feel free to ask.

@vincentgeneste Thank you for your answer.
I was able to run Phantasma node using Phantasma SDK, the SDK generates the Nexus, but i dont know how to generate it my self. can you help me with that?

@alikhangholi   you need to setup nexus.bootstrap to true in order to generate a new nexus.
Check this config example
https://github.com/phantasma-io/Spook/blob/master/Spook/config_testnet.json#L25
Also best if you just copy that file contents into your own config.json, instead of making one from scratch

Thanks for that. it worked for me and the genesis block generated.
but there is another error:
Unhandled exception. Phantasma.Domain.ChainException: add block @ main failed, reason: No support for oracle prices in this node
at Phantasma.Simulator.NexusSimulator.EndBlock(Mempool mempool) in F:\Blockchain.Dev\Phantasma\PhantasmaChain\Phantasma.Simulator\NexusSimulator.cs:line 285
at Phantasma.Simulator.NexusSimulator..ctor(Nexus nexus, PhantasmaKeys ownerKey, Int32 seed, Logger logger) in F:\Blockchain.Dev\Phantasma\PhantasmaChain\Phantasma.Simulator\NexusSimulator.cs:line 149
at Phantasma.Spook.Spook.<>c__DisplayClass54_0.b__0() in F:\Blockchain.Dev\Phantasma\Spook\Spook\Spook.cs:line 192
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

You are missing the cryptocompare API key, get one here:
https://min-api.cryptocompare.com/

Thank you @Relfos, the node is running now.
just a question: What does the crymptocompare API do with this blockchain? Does the Phantasma blockchain depends on it? or can it be deleted safely?

It is used as data source for the on-chain price oracles. Soon we will add support for more sources


Nd4j.hstack() performance seems to be sub-par

Issue Description
I've profiled my application since it seems to run slow, and hstack seems to be consistently taking
up around 25-30% of total time.
Please see the screenshot attached. In comparison you can see vstack which seems to perform much better.

The code that does hstack looks something like this:
final List<INDArray> wordEmbeddings = new ArrayList<>();

for (int i = 0; i < iterations; i++) {
    final List<INDArray> nGramEmbedding = new ArrayList<>();

    for (int j = 0; j < nGramSize; j++) {
        final INDArray wordEmbedding = Word2Vec.getWordVector(...);

        nGramEmbedding.add(wordEmbedding);
    }

    wordEmbeddings.add(Nd4j.hstack(nGramEmbedding));
}

return Nd4j.vstack(wordEmbeddings);

Btw, if there is a better way to do this I'd very much appreciate it a heads up!
Version Information

Deeplearning4j version 0.8.1
platform information OSX

Fixed. Now ** are reused.


Update phpdoc for widget->getId

The private variable $_id  is only set when $autogenerate is true, else it stays null, and will be returned by the function.

Q
A

Is bugfix?
✔

New feature?
❌

Breaks BC?
❌

Tests pass?
?

Fixed issues

👍


TS removals must_acknowledge (Old 327)

In gitlab by @A-Lawrence on Aug 31, 2015, 01:07
Any member on TS when a must_acknowledge announcement is active (i.e. when has_unread_must_acknowledge_notifications becomes true) should:

Be prompted with a link to read + warning of removal.
Be prompted after 5 minutes with a link to read + warning of removal.
Be prompted after a further 5 minutes with a link + warning of removal + time until removal.
Be removed after a further 5 minutes.

Any subequent reconnects should result in an instant kick with the message "You must read your notifications first".

In gitlab by @A-Lawrence on Aug 31, 2015, 01:11
Implemented the TS warns and kicks for MA/I notifications.  Resolves issue #488406 (328) and issue #327.
ÔåÆ <>
ALawrence66 - 2015-05-31T13:14:24.339876+00:00

In gitlab by @A-Lawrence on Aug 31, 2015, 01:11
Working on in 2.1.12
ALawrence66 - 2015-05-31T02:52:34.717595+00:00

In gitlab by @A-Lawrence on Jan 12, 2016, 19:18
Milestone removed


Allow serverHardwareUri as input in oneview_server_hardware_facts module

Currently the oneview_server_hardware_facts facts module takes name as input. Would be great to have the HardwareUri as input to collect the facts as it will be helpful to automate. I would be happy to contribute

Sounds good @satishwin , feel free to open a PR for review with that :octocat:

@satishwin - any update ?

Closing this issue as a duplicate of Issue #525 [ https://github.com/HewlettPackard/oneview-ansible/issues/525 ]


Parameterize Commutation Checker

Summary
Add support for basic parameterized gates in the commutation checker (props to @Cryoris). This is currently only done for rotation gates that have a single generator (e.g. done for RXX but not for XXPlusYY). This has the power to improve compiler quality, but also speeds up the CommutationChecker in cases where we have to check if gates are parameterized a lot.
Details and Comments
This works by replacing a parameterized gate by it's generator. For example, RZ(theta) commutes with a gate exactly if Z commutes with that gate. The special cases of theta mod 2pi = 0 are also handled. For compiling a 100-qubit QFT circuit (which has loads of CPhase gates), the runtime on my laptop was reduced as:
(main) Took 2.1887816429138183 +- 0.3050131081682874s
(this PR) Took 1.8230558633804321 +- 0.19875805494141444s

which is more than I expected given the small substitution.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>3
Details

63 of 64 (98.44%)  changed or added relevant lines in 2 files are covered.
5 unchanged lines in 2 files lost coverage.
Overall coverage decreased (-0.2%) to 88.697%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

crates/accelerate/src/commutation_checker.rs
62
63
98.41%

Files with Coverage Reduction
New Missed Lines
%

crates/accelerate/src/commutation_checker.rs
1
97.08%

crates/qasm2/src/lex.rs
4
92.73%

Totals

Change from base Build<PHONE_NUMBER>7:
-0.2%

Covered Lines:
73203

Relevant Lines:
82532

💛  - Coveralls

I ran the utility scale benchmarks in test/benchmarks and this improves the performance for the QFT benchmarks by ~22%  leaving the others unchanged. The depths also don't change so this is consistent with the current behavior.

Average over 10 runs with CX as basis gate
main:
-- Times:
QFT: 1.3684054851531982 +- 0.024621658803924102
Heisen: 0.19565179347991943 +- 0.014674726792643892
QAOA: 0.5207660913467407 +- 0.021566247367379065
QV: 1.3223005056381225 +- 0.021189671640295876
SU2: 3.677972507476807 +- 0.031693344070161326
BV: 0.1491406202316284 +- 0.011247038996003447
BV-like: 0.006857585906982422 +- 0.00033202630149019145
Total: 7.241094589233399

-- Depths:
QFT: 1954
Heisen: 462
QAOA: 1607
QV: 2709
SU2: 300
BV: 395
BV-like: 0

this PR:
-- Times:
QFT: 1.0807523250579834 +- 0.01748851782021482
Heisen: 0.19395751953125 +- 0.015540161362770638
QAOA: 0.4986311912536621 +- 0.017146640364266583
QV: 1.313275194168091 +- 0.014704899418210503
SU2: 3.694802403450012 +- 0.028206125743678666
BV: 0.1501666784286499 +- 0.009483460690998797
BV-like: 0.007105302810668945 +- 0.0003282014217839353
Total: 6.938690614700318

-- Depths:
QFT: 1954
Heisen: 462
QAOA: 1607
QV: 2709
SU2: 300
BV: 395
BV-like: 0


add Makefile and checkprerequisites

I'm not really sure this is necessary and it makes make a build dependency (which is not common for JavaScript projects).


Question: How is the robot vacuum integration supposed to work?

Describe Your Problem
I would like to understand the intention of the robot vacuum Integration.
Hi,
I am using this Plugin with my K10+ Robot vacuum. I would have assumed the configuration for it to be an on-off switch, where on means clean and off means go to Station. Currently it shows as a dimmable light bulb which always has a state of 100%. I can paste the logs here no problem, but from looking at the code it seems like this is intentional? Maybe I misunderstand how this integration is supposed to work?
Thanks a lot,
Jann
Config for homebridge-switchbot
{
            "name": "SwitchBot",
            "credentials": {
                "token": "XYZ",
                "secret": "XYZ",
                "notice": "Keep your Token & Secret a secret!"
            },
            "options": {
                "devices": [
                    {
                        "deviceId": "XYZ",
                        "configDeviceName": "Saugaal",
                        "configDeviceType": "WoSweeperMini",
                        "connectionType": "OpenAPI",
                        "offline": true,
                        "external": false,
                        "logging": "debug"
                    }
                ]
            },
            "platform": "SwitchBot"
        }

Screenshots
No response
Device & Model
K10+
Node.js Version
v20.9.0
NPM Version
10.1.0
Homebridge Version
v1.8.3
Homebridge SwitchBot Plugin Version
v3.7.0
Homebridge Config UI X Plugin Version
No response
Operating System
macOS

I need to look over the code again, I don't have a robot so haven't been able to test it myself. I will take the time soon to get the code updated. I would also accept a PR if you are up to that?

Yeah I will take a look in the coming days, just wanted to confirm I don't miss something obvious before diving into that.

So, I finally got a look at this today and it turns out the fix is actually really simple, a one liner. Check out #1028 for it.

Merged into beta which will release a new beta with the changes for testing.


Support old and new style dns service names.

"svc" is added as a dns service name to DNS service names.
Assume we have a service called ser1, with namespace ns1.
The old style service name would look like: ser1.ns1.cluster.local
The new style service name will be: ser1.ns1.svc.cluster.local
"svc" should not be used as a namespace label by kubernetes services. It can cause creation of DNS entries to fail.
The old-style DNS service names are deprecated and will be removed in future kubernetes versions.

#7472
@vishh

Do not merge, need to push container image before merging.
still running e2e tests

e2e is green

Don't forget to update the e2e - test/e2e/dns.go

@ArtfulCoder: Just a few nits.
Can you extend the dns e2e test to cover this change?
Can we add a short doc that describes the DNS format or may be update the existing dns README?

e2e test, doc  updated.
PTAL

Pushed docker image ver 1.6

LGTM

Needed for fixing #8569.

Thanks Vishh!