Scala 3 runtime lock with derives syntax and opaque types

I've encountered an interesting bug resulting in the main thread locking up during runtime with derived codecs involving an opaque type. The following code compiles fine, but when run causes the application to freeze. I'm not entirely sure if this a Circe bug or a Scala bug.
import io.circe._
import io.circe.syntax._

opaque type Id = Int

object Id:
  def apply(a: Int): Id = a
  given Encoder[Id] = Encoder[Int].contramap(_.self)//causes lockup
  // given Encoder[Id] = Encoder.encodeInt//works fine

case class Foo(id: Id) derives Encoder.AsObject

object Main:
  @main def run =
    val foo = Foo(Id(1))
    println(foo.asJson)

Ohh, I was so bitten by this too! I was blaming it on Cats Effect and Tapir, I never thought of a JSON encoder as the cause for a thread lock, but after a lot of experimentation I came to the same conclusion as you did, was going to report it when I found you already did. Cheers.

This is neither a circe nor a Scala bug.
Consider:
{
  // In this scope, it is known that Id =:= Int, because opaque types are transparent in the scope they're defined
  opaque type Id = Int
  // Because of this, it is known that Encoder[Id] =:= Encoder[Int], because Encoder is a class/trait

  // So, when you define
  given Encoder[Id] = Encoder[Int].contramap(_.self)
  // It expands to
  given Encoder[Id] = summon[Encoder[Int]].contramap(_.self)
  // And because Encoder[Id] =:= Encoder[Int] is known, this becomes
  given x: Encoder[Id] = x.contramap(_.self)
  // And because `given`s are `def`s, you have
  def x = x.contramap(_.self)
  // which stalls at runtime.
}

Ouch. You're right, I just expect any issue related to derivation to occur at compile time, but this one is tricky.

Incidentally, you don't want to be calling the self method on Int (your _ in this case)—it's an accidentally exposed part of RichInt that refers to the Int that the value class wraps.


Switching network on desktop wallet freezes wallet after have connected to governance

Description
Not sure how big of a problem this is but when you have chosen mainnet network and connects to
https://governance.vega.xyz/, disconnect switch to Fairground and try to connect to (https://governance.fairground.wtf/) the wallet freezes at approve and needs to be restarted, then it works.
Actually after having connected to a governance page, e.g. mainnet, it seems that the wallet freezes when you try to change network.
Steps to Reproduce

Go to https://governance.vega.xyz/ and connect desktop wallet with mainnet
disconnect, switch to fairground network
Go to https://governance.fairground.wtf and connect the wallet, OR just try to change network in wallet and see if it does not freeze
It freezes at approve, you can't click the button and you need to restart it

Expected behavior
Should be able to connect and or switch network after you have connected to governance page.
Desktop (please complete the following information):

OS: MacOS ARM
Desktop Version 0.12.1

In wrong repo and duplicate of https://github.com/vegaprotocol/vegawallet-desktop/issues/694


Expand slice examples.

Or 'zen slice' either.
Probably should link to https://docs.perl6.org/language/subscripts#Slices and https://docs.perl6.org/language/subscripts#Zen_slices
Might be useful to have an example of how to take the last N elements of an array, too. @a[*-$N .. *]is a bit more difficult than the trivial first N elements slice, @a[^$N]

Slice is not in one of the categories that are indexed. It's a concept, but not a class, sub, method or suchlike.
You have a point in your last paragraph, though. If you don't mind, I'll change the subject of the issue to that.

Concepts should be searchable, but fair enough for now.

Yep, but that's a different issue altogether. Feel free to open an issue to discuss it openly, though.


Stats not displaying from other entity

[X] I updated to the latest version available
[X] I cleared the cache of my browser
Stats do not display when attribute is from entity other than fan.

Open config
Add stats to purifier card from another entity (air_quality.master_bedroom_dyson is what I am using)
Card displays UOM and Subtitle but not the attribute

Expect it to show attribute value from air_quality entity.

Release: 0.6.1
Browser: Chrome
HomeAssistant version: 2021.1.1

You can specify either entity_id or attribute.

I changed my config to only entity and now the stats have disappeared completely..


Review installation and quickstart instructions

@amcody Can you review the docs at https://docs.lightkurve.org and identify issues that need to be resolved to help brand new users get started, prior to releasing v1.0?  Feel free to open PRs as required.

See recent updates #245 (closed) and #358 (still open) for some updates to the installation instructions and docs.

Also #171  is related

I tested quickstart and installation for a development setup with no issues. Also #358 got merged.

Chatting with @amcody about this issue right now--
related themes:

conda installation hasn't been well-tested
we're adding more tutorials in #360
Consider adding TESS data to the quickstart guide to avoiding having to dig far into the tutorials

I hereby confirm that I had no problems (re-)installing lightkurve via conda in a new environment and playing dumb new user. Everything worked as specified. I would just echo the above comment that we need to provide a few more notes about how this works with TESS.

(And sorry for the delay on this @barentsen, I just discovered that I had everything but the personal mentions set to email me upon new notification. Whoops!! Now fixed. )

See http://docs.lightkurve.org/install.html
Installing by name ("lightkurve") is covered for both pip and conda.  But, installing the development version is only covered for pip.

Thanks for the feedback everyone!
The installation of the development version is now described in the docs, here: https://docs.lightkurve.org/about/contributing.html
I'm going to close this issue, but feel free to open a new one if further improvements to the docs are needed.  Thanks everyone!


It's not called MSIL, anymore, is it ?

Type of issue
Other (describe below)
Description
Dear DotNet Team,
I may have found an issue with the docs.
In the article, it says

The actual field names are valid MSIL identifiers, but not valid C# identifiers.

But I think MSIL is the old term for Common Intermediate Language (CIL). On Wikipedia, it is also referred to formerly called
If you agree, I would be happy to provide a pull request changing it to
"The actual field names are valid CIL identifiers, but not valid C# identifiers."
Sincerely
Entvex
Page URL
https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/tutorials/primary-constructors
Content source URL
https://github.com/dotnet/docs/blob/main/docs/csharp/whats-new/tutorials/primary-constructors.md
Document Version Independent Id
a22d366b-380f-f701-6a01-2515433e1550
Article author
BillWagner

Thanks for spotting and reporting this.
Yes. "CIL" is the better term. I'll assign this to you, and watch for a PR.

Here you go @BillWagner https://github.com/dotnet/docs/pull/38010
Sincerely
Entvex


Remove delays

This fixes #39.
I tested this code on an itsybitsy m4 express and everything worked as expected. It was even returning the firmware version on the first attempt.

In the event that we do have _req connected I think we are supposed to call it first, before any command is sent.
Here is another excerpt from the manual:

And the relevant text that follows:

The PN532 is in Power Down mode (T_PD1),
The host controller wants to send a frame to the PN532, and so it asserts the H_REQ line. That makes the PN532 waking up (1) and it acknowledges with P70_IRQ pin (2),
Then before sending the command frame (3), the host controller has 2 possibilities:

either the host controller waits for a defined delay (twup) which guarantees in that case that the PN532 will be waken up when the I2C frame will be sent,
or the host controller monitors the P70_IRQ pin to check when the PN532 is woken up (with a maximum timeout of twup). This option can optimize the overall waiting time if the PN532 was not asleep; there is no need to wait the maximum wakeup time (tready < twup).

Closing this in favor of #41.


fix: catch error return type fixed

Changes in https://github.com/supabase-community/postgrest-dart/pull/97 caused some errors on my end.

Not sure why it didn't cause the tests to fail. Both the tests of stable dart branch of this PR and this PR are passing, which seems weird.

@Vinzent03 Ah, right!


crash when rocket from asteroid mining mission returns

Minecraft Version:
1.7.10
Forge Version:
1.7.10-1.2.0-345
Advanced Rocketry Version:
1.7.10-<IP_ADDRESS>
LibVulpes Version:
1.7.10-<IP_ADDRESS>
is this the latest curseforge build?
yes
#Please Pastebin crash
Crash Report:
Explain issue in detail:
crash when rocket from asteroid mining mission returns.

Is this still a issue? Please comment if it is and i will reopen if if you are unable? We are closing old issues to see what is still relevant and needs to be fixed.


[terra-framework-docs] Slider implementation guide and docs update

Summary

What was changed:
Added new Accessibility and Implementation guide for Terra Slider
Testing

This change was tested using:

[ ] WDIO
[ ] Jest
[ ] Visual testing (please attach a screenshot or recording)
[ ] Other (please describe below)
[x] No tests are needed

Reviews
In addition to engineering reviews, this PR needs:

[x] UX review
[x] Accessibility review
[ ] Functional review

Additional Details

This PR resolves:
UXPLATFORM-9722

Thank you for contributing to Terra.
@cerner/terra

@nikhitasharma - great job on the documentation. I have one minor observation - in the example section of the about page BasicSlider is listed, but in the vertical navigation menu this item is called Default Slider.

@nikhitasharma - great job on the documentation. I have one minor observation - in the example section of the about page BasicSlider is listed, but in the vertical navigation menu this item is called Default Slider.

Addressed this here by making the 'Default Slider' terminology consistent.

Is Page Up/Down always 10 steps?  If I have a range of 0-20, will it still be 10 step increments?

I don't think Tab and Shift+Tab should be part of the keyboard interaction list.  This control is not processing them so you cannot guarantee the result.

In this example, https://engineering.cerner.com/terra-framework/pull/1945/components/cerner-terra-framework-docs/slider/examples/slider-with-value-update, shouldn't your value state variable initialize to a number instead of a string?

@nikhitasharma - Looks good! Approved

Is Page Up/Down always 10 steps? If I have a range of 0-20, will it still be 10 step increments?

Changed the wording as discussed offline.

I don't think Tab and Shift+Tab should be part of the keyboard interaction list. This control is not processing them so you cannot guarantee the result.

Removed these.

In this example, https://engineering.cerner.com/terra-framework/pull/1945/components/cerner-terra-framework-docs/slider/examples/slider-with-value-update, shouldn't your value state variable initialize to a number instead of a string?

Updated this.

Fails
🚫	Please include a CHANGELOG entry for each changed package this PR. Looks like a CHANGELOG entry is missing for:

terra-slider

Generated by 🚫 dangerJS against a649b4e

I don't think a changelog entry is required for just property description updates.


added Guarulhos, Brazil

Frustrating, maybe we should wait a little and then re-run.

Re-run this, please.

Since this server is unreachable from some places (maybe a firewall problem?), I have cached the data.
For the record, this dataset has no clear license information.


Update Relational ops

In #10543 , All of the overloaded comparison ops has been removed . It was found that 5 comparison ops (except for LT_BW) is required. So , Support for those ops have is required

[x] eq_bw
[x] ge_bw
[x] gt_bw
[x] le_bw
[x] ne_bw

Closing PR as Op requirement is not needed


Make the 'Teams' Nav link into a drop down to access other teams

Make the 'Teams' Nav link on the navbar into a dropdown so that all other teams can easily be accessed without having to go to the homepage again and again.

Hey there, can I work on this?

@srinidhibhat45

Also, How do I get access to the slack?

@theprojectcode slack is restricted to members and scholars of World Konkani Center only, sorry

Got it! No worries, I'll just reach out on here if I have any questions. Thanks! @srinidhibhat45

yes!

Quick question, in the name area, I see that there are a few open spots to put my name, etc. in on the root "open.js" folder. Do I just choose any open space or the first one that is open? @srinidhibhat45

@theprojectcode sorry, but the name cards are only for people who are in slack and part of the organization. Infact the whole repo was a tutorial repo for them and we aren't accepting cards from the public. We are accepting contributions to the website as a whole, so feel free to contribute to that

Oh, ok. Thanks for letting me know. I thought it was a part of the steps to contribute. So I should just contribute to the issue that I was assigned to, correct?

Yes!

I think I need a little help with my code - am I on the right path of making the right dropdown? @srinidhibhat45 for some reason I can't get the hover effect to work.


Convert uk-benefits-abroad to use ERB templates for all outcomes

I've converted one outcome at a time with each conversion in its own commit. This means that there are a lot of commits, but most of them are very straightforward.

It looks like you can remove the now-unused already_abroad_text_two calculate block and associated phrases.

This looks like a mammoth task. Good job!
All looks good to me.

@chrisroos: Thanks for the feedback. I believe already_abroad_text_two is still needed, because it's interpolated inside the esa_more_than_a_year  option for the esa_how_long_abroad? question. Or am I missing something?
I did consider renaming it (i.e. removing the _two suffix), but I thought that might also be confusing.

Ah, no, you're quite right. I completely overlooked the use of already_abroad_text_two in esa_how_long_abroad? question.

Regression tests are invaluable for this kind of changes. LGTM :+1:


(#12) modified the generic arguments

To match the arguments of the implementing class instead to that of the interface.
The unit test does not directly reproduce the code from #12 but rather registers an RequestExceptionAction. Registering an IRequestExceptionHandler<,> or IRequestExceptionHandler<,,> leads directly to #13.
Fixes #12

The build seems to be broken. #15 should be merged and this one rebased.


[BUG] Error when loading the session-based model, layer saved without config

Bug description

Escalate the issue to BUG for more awareness. here
Steps/Code to reproduce bug

Train and save the session-based model as shown in the sample notebook.
Load the model

Additional context

closing since same bug was reported here https://github.com/NVIDIA-Merlin/models/issues/908


Create an AskScript Playground

We would like to let visitors on askql.org try programming in Ask as soon as possible.
The idea is to create a playground - an editor where a visitor can write or paste, instantly run AskScript and get the result.

As Marcin mentioned to me in a private message, as for frontend, this editor looks cool.
In addition, VS Code uses it for syntax coloring, so we could re-use syntax coloring plugin
https://microsoft.github.io/monaco-editor/
I'm saying: yes, this sounds great :).  And it's on MIT license, so we can freely reuse it.

OK, working on this one.

@mhagmajer , according to this issue, syntax highlighting in VS Code uses TextMates parsers which Monaco Editor uses JS regexes, at least for Python.
Do you have additional information on syntax coloring in these editors?

@czerwinskilukasz1 I haven't looked into it. Whatever VS Code uses for syntax highlighting can support many programming languages so should be able to support AskScript as well

Whatever VS Code uses for syntax highlighting can support many programming languages so should be able to support AskScript as well
Of course.

What I wanted to is that VS Code uses a different syntax coloring method, so we can't reuse syntax coloring from Monaco Editor.
More info: 1, 2

Here are official examples of syntax coloring in Monaco and here's a playground.

The short term plan for 1.1. was:

Create any well-working and reasonably looking Playground, which can be used to run AskScript programs.
This is done.

My long term plans for AskScript Playground is:

Get design update from Kari
Add more examples to the Playground
Use Monaco Editor
Add syntax highlighting (which is a separate task from adding syntax highlighting in VS Code)
Consider adding a window which allows to define own resources in Javascript (this is potentially dangerous, so we need a good discussion and plan)

What are your thoughts, @mhagmajer?

@czerwinskilukasz1 the playground server PR is still open and I there is none for the client. Code needs to be merged into this repo so that everyone can participate.
Please discuss any changes to milestones with me and align your plans with the milestones.

Please discuss any changes to milestones with me and align your plans with the milestones.

Not sure what you mean as we are in constant contact.
Let me create a separate issue for each of the tasks in bullet points, so that we can assign them to milestones.

Closing this one as done, the Playground is available at: http://cli.askql.org:3000/
Follow-ups are:

Update design for Askscript Playground
Add more examples to the Playground
Use Monaco Editor in AskScript Playground
Create a repository for AskScript Playground (this includes publishing the source code of the Playground; needs to be done after Playground uses Monaco Editor)
Add syntax highlighting to AskScript Playground (which is a separate task from adding syntax highlighting in VS Code)
AskScript Playground: Consider adding a window which allows to define own resources in Javascript (this is potentially dangerous, so we need a good discussion and plan)

Reopening since the linked PR is still open.

Closing https://github.com/xFAANG/askql/pull/87.

And closing this ticket.


Define a validity test, for a successful deployment.

[x] Define a validity test, for a successful deployment
[x] Add the instructions in the documentation
5f085e298bc057eccb1a8f86d1dbc51d1e6b966c

Docs need to be updated after OAuth was introduces. I will create another issue for that.


GitBook: [#1] Update Unreal Engine Plugin Documents

@lezzokafka do you know how to fix those conflicts?

I've fixed the conflicts on github @lezzokafka


chore(ssa refactor): Handle Brillig calls

Description

Problem*

Resolves
Summary*

Documentation

[ ] This PR requires documentation updates when merged.

[ ] I will submit a noir-lang/docs PR.

[ ] I will request for and support Dev Rel's help in documenting this PR.

Additional Context

PR Checklist*

[ ] I have tested the changes locally.
[ ] I have formatted the changes with Prettier and/or cargo fmt on default settings.

Changes look okay to me -- going to give it a once over again tomorrow, then we can open an issue re jumps in function calls

@sirasistant Looks good to me, can you approve?

Had to add it to the merge queue again because seems like some CI step stalled and didn't give output

I keep looking and being surprised this isnt in master :D


Error is not included in the allure report if it is in the BeforeAll hook.

Describe the bug
If during the initialization of the suite you add a step with a check that will fall, the entire suite in the allure report is simply ignored. The information in the console is displayed correctly
To Reproduce
import (
	"testing"

	"github.com/ozontech/allure-go/pkg/framework/provider"
	"github.com/ozontech/allure-go/pkg/framework/suite"
)

type BeforeAfterDemoSuite struct {
	suite.Suite
}

func (s *BeforeAfterDemoSuite) BeforeAll(t provider.T) {
	t.WithNewStep("Before suite Step", func(sCtx provider.StepCtx) {
		sCtx.Require().Equal(1, 2, "lol")
	})
}

func (s *BeforeAfterDemoSuite) TestBeforeAfterTest(t provider.T) {
	t.Epic("Demo")
	t.Feature("BeforeAfter")
	t.Title("Test wrapped with SetUp & TearDown")
	t.Description(`
		This test wrapped with SetUp and TearDown containert.`)

	t.Tags("BeforeAfter")
}

func TestBeforesAfters(t *testing.T) {
	t.Parallel()
	suite.RunSuite(t, new(BeforeAfterDemoSuite))
}

Expected behavior
Display the suite in the report, with an error in the setup and a skipped body of tests.

@AleksandrGurkin , FYI
issue can be tested at v0.6.6 tag (beta)
It will be a great pleasure to get your feed back
Also, I will be really happy if you could review PR

@AleksandrGurkin , FYI
New beta tag v0.6.7 released


Share the MV Diffusion Model Training Code pls?

Result looks really good compared to most other MV Diffusion Model
So can you guys please share the training code to accelerate other research in the similar direction 👍

Hi MrForExample, we will start to upload the training code of MVDiffusion in October

Hi MrForExample, the training code has been uploaded


Update windows-local-autopilot-reset.md

Addition of the permission required to perform this task

@nenonix @JohanFreelancer9 - kindly do the copy editor review for this PR based on issue #2651. Thanks.

@greg-lindsay - Can you please assist to check, approve and merge the content for this PR based on issue #2651?
Thank you.

@greg-lindsay - We would like to follow up on this.  Can you please assist to check, approve and merge the content for this PR based on issue #2651?
Thank you.

@greg-lindsay @AndreaBarr - Would you be able to help merge the content of this PR? Thanks.

@Justinha @DaniHalfin @mjcaparas @lizap @greg-lindsay @AndreaBarr - Would you be able to help merge the content of this PR? Thanks.

@greg-lindsay - We would like to follow up. Can you please assist to check, approve and merge the content of this PR?
Thank you.


Is it possible to log object with debugDescription by default

Is it possible to add something like DDLogMessage object (function target) description/ object debug description by default?
I would like to have logs with timestamp, loglevel, object debug description and function name.
"{date}|{level}|{object debug description}|{function name}: {message}"
DDLogMessage doesn't have object debug description ivar now.
Is there any limitations in concurrency/dispatching?
It would be great to see this feature later ( if it not implemented and planned )

Well you would need your own macros to create a DDLogMessage and put your extra information in tag.
Then you need a formatter to output it in your desired format.


Update minimum version to Xcode 11.0

Re-land https://github.com/flutter/flutter/pull/50315.

https://github.com/flutter/flutter/pull/50315 was approved and merged, but I forgot to wait for mac10 to be disabled.  It is now disabled.  This is identical to https://github.com/flutter/flutter/pull/50315 so I'm going to consider this already approved by @zanderso and @dnfield.


props.params is being passed old parameter data?

I'm working on a React project and using hashHistory.
If I'm on a route with a parameter, like this:
#/accounts/99999999/information
...and then I push a new location into history that defers only in the value of the parameter:
history.pushState(null, '/accounts/88888888/information');
In my component's componentWillReceiveProps() method, the route params contains the value of the previous route, not the current one. The location that's passed into my props also has the location of the previous route, with a POP action; the history has the new route (with a PUSH) action.
If I capture the previous prop values in componentWillReceiveProps, the previous props have the new route's parameter in them.
Can you help me understand what's happening here? Why does the old route appear in the location prop instead of the new route? Why does the POP action appear instead of the PUSH?
Thanks for any insight you can offer.

Are you sure you're not switching nextProps with this.props in componentWillReceiveProps? This works for me.

Oops finger slipped.

Closing pending further updates.

Yes, I'm sorry to say that was exactly what I was doing. Thanks for the update, and sorry for the bad report.


AADSTS500202 Pass-thru error trying to sign-in with  an MSA using 'microsoft' auth provider on github.dev

The below code works fine in VS Code desktop, and in https://vscode.dev, but fails on https://github.dev IF using an MSA account. When I sign-in using my corp account (i.e<EMAIL_ADDRESS>is also works fine.
  log.debug("Querying for account workspaces");
  // *** Authenticate and retrieve tenants the user has Azure resources for ***

  // For the MSA case, you need to query the tenants first and get the underlying AzureAD
  // tenant for the 'guest' MSA. See https://stackoverflow.microsoft.com/a/76246/108570
  const firstAuth = await vscode.authentication.getSession(
    "microsoft",
    [scopes.armMgmt],
    { createIfNone: true }
  );
// NOTE: Doesn't even get to this line, so the above must throw.
  if (!firstAuth) {
    log.error("No authentication session returned");
    return;
  }

Below is the debug level output from the Microsoft Authentication channel:
2023-09-17 10:08:28.202 [info] Reading sessions from secret storage...
2023-09-17 10:08:28.202 [info] Got 0 stored sessions
2023-09-17 10:08:28.203 [info] Getting sessions for all scopes...
2023-09-17 10:08:28.203 [info] Got 0 sessions for all scopes...
2023-09-17 10:08:28.203 [info] Getting sessions for the following scopes: email offline_access openid profile
2023-09-17 10:08:28.203 [info] Got 0 sessions for scopes: email offline_access openid profile
2023-09-17 10:09:02.899 [info] Getting sessions for the following scopes: email https://management.azure.com/user_impersonation offline_access openid profile
2023-09-17 10:09:02.899 [trace] No session found with idtoken scopes... Using fallback scope list of: https://management.azure.com/user_impersonation
2023-09-17 10:09:02.899 [info] Got 0 sessions for scopes: email https://management.azure.com/user_impersonation offline_access openid profile
2023-09-17 10:09:05.852 [info] Logging in for the following scopes: email https://management.azure.com/user_impersonation offline_access openid profile
2023-09-17 10:09:08.990 [info] Exchanging login code for token for scopes: email https://management.azure.com/user_impersonation offline_access openid profile
2023-09-17 10:09:09.369 [error] Error exchanging code for token (for scopes email https://management.azure.com/user_impersonation offline_access openid profile): Error: {"error":"invalid_grant","error_description":"AADSTS500202: User account '{EmailHidden}' from external identity provider 'live.com' is not supported for API version '2.0'. Microsoft account pass-thru users and guests are not supported by the tenant-independent endpoint.\r\nTrace ID: 481ada76-a441-490d-aec8-5f6ab6141600\r\nCorrelation ID: c4c89d78-165c-4eff-9c4e-4518776450f4\r\nTimestamp: 2023-09-17 17:09:09Z","error_codes":[500202],"timestamp":"2023-09-17 17:09:09Z","trace_id":"481ada76-a441-490d-aec8-5f6ab6141600","correlation_id":"c4c89d78-165c-4eff-9c4e-4518776450f4"}

Using exactly the same code with the same MSA account but working on https://vscode.dev (or VS Code desktop) it works fine and the log shows:
2023-09-17 10:35:57.937 [info] Reading sessions from secret storage...
2023-09-17 10:35:57.937 [info] Got 0 stored sessions
2023-09-17 10:35:57.937 [info] Getting sessions for all scopes...
2023-09-17 10:35:57.937 [info] Got 0 sessions for all scopes...
2023-09-17 10:35:57.937 [info] Getting sessions for the following scopes: email offline_access openid profile
2023-09-17 10:35:57.938 [info] Got 0 sessions for scopes: email offline_access openid profile
2023-09-17 10:36:03.229 [info] Getting sessions for the following scopes: email https://management.azure.com/user_impersonation offline_access openid profile
2023-09-17 10:36:03.229 [info] Got 0 sessions for scopes: email https://management.azure.com/user_impersonation offline_access openid profile
2023-09-17 10:36:05.259 [info] Logging in for the following scopes: email https://management.azure.com/user_impersonation offline_access openid profile
2023-09-17 10:36:08.863 [info] Exchanging login code for token for scopes: email https://management.azure.com/user_impersonation offline_access openid profile
2023-09-17 10:36:09.472 [info] Exchanging login code for token (for scopes: email https://management.azure.com/user_impersonation offline_access openid profile) succeeded!
2023-09-17 10:36:09.473 [info] Setting token for scopes: email https://management.azure.com/user_impersonation offline_access openid profile
2023-09-17 10:36:09.474 [info] Login successful for scopes: email https://management.azure.com/user_impersonation offline_access openid profile
2023-09-17 10:36:09.474 [info] Token available from cache (for scopes email https://management.azure.com/user_impersonation offline_access openid profile), expires in 4713999 milliseconds
2023-09-17 10:36:09.475 [info] Stored token for scopes: email https://management.azure.com/user_impersonation offline_access openid profile
2023-09-17 10:36:09.479 [info] Getting sessions for the following scopes: email offline_access openid profile
2023-09-17 10:36:09.480 [info] Refreshing token for scopes: email offline_access openid profile
2023-09-17 10:36:09.981 [info] Setting token for scopes: email offline_access openid profile
2023-09-17 10:36:09.982 [info] Token refresh success for scopes: email offline_access openid profile
2023-09-17 10:36:09.983 [info] Got 1 sessions for scopes: email offline_access openid profile

If interested, the extension I'm using is published at https://marketplace.visualstudio.com/items?itemName=quantum.qsharp-lang-vscode-dev and you can see the code for it at https://github.com/microsoft/qsharp/blob/main/vscode/src/azure/workspaceActions.ts#L27 .

Does this issue occur when all extensions are disabled?: Yes/No

@jkeech could you chime in here? This is one of those cases where Microsoft Auth works in vscode.dev but not in github.dev.

@billti Thanks for reporting, I've found a bug in github.dev and am working on a fix now. I will update back when it is deployed!

@billti The fix has been deployed. Could you try again with github.dev and let me know if it still reproduces?

Just tried and it works great. I can sign-in to our extension with my MSA account on github.dev fine. Thanks @dmgardiner25 !


Solver tolerances

How should solver tolerances be applied?

should we allow specific absolute tolerances for each variable?
should we apply default tolerances or force users to specify them?

#456 will address this


Make Coffee stay on even when screen is manually turned off. (Keep On Always)

This feature is not related to any problem and is purely a suggestion that would be useful.
I would like to toggle Coffee on and even if I turn off and on the screen Coffee would stay on.

Duplicate of #186, which has been auto-closed, so I leave this one open.

Duplicate of #186, which has been auto-closed, so I leave this one open.

Hey, will this be a feature added in the future or is there anyway I can make Coffee not turn it self off automatically?

Maybe someone will implement this feature.

Maybe someone will implement this feature.

ok, I'll wait then, thanks.


Backslash key not reacting to interactive effects on G810

My software versions are
Aurora: 0.5.1d
LGS: 8.88.28 (Firmware: 102.3.27)

What is your keyboard layout?

I don't know. How can I find out?

It's US layout.

Do you have the source code, as I want to fix the backslash myself and enable RGB on the media buttons. Since I have C++ background.

Does this still happen on latest version?

No! Last update fixed it. Thank you!


NEW Library request: WifiManager

Not sure if this is the right place to ask this, but can we get WifiManager added to the list of pio libraries available, somehow:
https://github.com/tzapu/WiFiManager
If there is a better way to get these libs included in the pio base release, please let me know ..

Argh, sorry for my brainfart, its already in there.  Closing this.

Next time please add request here https://github.com/platformio/platformio-libmirror


Schema Object Contains Optional Properties

I'm confused about the return type when creating a schema. For example, here is my schema:
export const AuthorSchema = z
  .object({
    firstName: z.string().min(2),
    lastName: z.string().min(2),
  })
  .required();

This is the return type of AuthorSchema:
const AuthorSchema: z.ZodObject<{
    firstName: z.ZodString;
    lastName: z.ZodString;
}, "strip", z.ZodTypeAny, {
    firstName?: string;
    lastName?: string;
}, {
    firstName?: string;
    lastName?: string;
}>

I don't want these properties to be optional, they are required. Inferring the type has this result:
export type CreateAuthorDto = z.infer<typeof AuthorSchema>;
type CreateAuthorDto = {
    firstName?: string;
    lastName?: string;
}

My expectation is that it looks like this:
type CreateAuthorDto = {
    firstName: string;
    lastName: string;
}

I'm obviously missing something, but haven't been able to track down what.

This is resolved. I had to update my tsconfig:
"compilerOptions": {
    "strictNullChecks": true,
  }


test-branch/execute-job/comment-from-wrong-user-on-pr/b9db75be-1fcb-4df9-b42e-af5183232b0c

PR for testing ba2dbea8095d7e4a74f4981b5947d7da3c454abd

/canonical/self-hosted-runners/run-workflows ba2dbea8095d7e4a74f4981b5947d7da3c454abd


Fix inconsistency in DynamicModelChoiceField use cases

Fix the inconsistent default/null option behavior in the DynamicModelChoiceField across its implementation use cases.
In this example there are concrete model fields and non-concrete filter fields in the form and there is inconsistency in the usage of ---- vs None.

Additionally, the drop down arrow on the right seems to be inconsistently present, depending on the the field.

In both cases, standardize the usage of these fields/widgets and ideally never leave it up to the app developer to have to make a choice.

Screenshots aren't working for me.

If this winds up being a larger effort to manually update a ton of fields, let's regroup.


Birthday calendar

Hi everyone,
not really a project specific issue but has anyone an idea where I can create a birthday calendar to which I can subscribe to? I have one each in Google and Microsoft Live but both don't offer this possibility.
On another note, might not be a bad idea to show a code example for multiple calendars in the calendar wiki. I got it working but am I right in the assumption that you need different symbol sets for each calendar?
Thanks in advance.
Cheers!

Hi jferch,
I'm currently trying to implement a birthday calendar in v2, which also shows a "X. birthday" notice behind the name. The base is the default calendar module.
I created a google calendar only for birthdays, each person get's an event:
Settings for event:

for the title only the name
birthday with correct birthyear as start date (for age display)
check full day
repeating set to each year

So far I get the age displayed correct, but there is a problem with repeating events from the original module. As shown in the screenshot the set birthdate is in the brackets but the text show "in a year".
v2 :

In v1 it works perfectly:

Has somebody an idea how to fix this?

Please supply a test feed so I can try to fix it.

Here's the google feed url:
https://calendar.google.com/calendar/ical/pkm1t2uedjbp0uvq1o7oj1jouo%40group.calendar.google.com/private-08ba559f89eec70dd74bbd887d0a3598/basic.ics

I made a small change which might help you with this issue. Please test and let me know if you need more help.

Currently same problem as in the endless events issue with every event showing "today"

I just found a HUGE bug that was caused by using an old ical parser. I've updated the parser to the latest version which should solve the issue. Please let me know if this solves the issue.

@MichMich how can I use the birthday calender? I created the googl events as mentioned above but I dont get the right format on my mirror.
thanks for your help and this awesome project :)


Add Ktor 2 Support

It sounds like ktor 2 is coming with a ton of breaking changes.  Will need to support these incoming updates.

I'm going to start a kompendium-2 library that will be compatible with Ktor 2... this library will be kept compatible with Ktor 1

I'm going to start a kompendium-2 library that will be compatible with Ktor 2... this library will be kept compatible with Ktor 1

Hi @unredundant, is the kompenium-2 library already available?

No, quite honestly this project is super lower on my priorities list.  That, combined with that I've heard that the ktor team is working on their own openapi generator for v2 makes it super unlikely that there will be a kompendium port for ktor 2.
At least, one that I make ;)

Hey @unredundant, I see there is a PR that is targeting to upgrade to Ktor support to 2.0.0.
I understand that this will not make this project run with the new release?
From the Ktor roadmap I don't see any actual timeline to get the Swagger UI support any time soon, maybe the next major release, but that is planned next year :(

I can re-open this since there seems to be interest, but personally I won't be able to spend much (if any) time helping out with the effort at the moment.
My apologies 🙏

This is where I last heard the ktor team mention explicitly that they are working on swagger support https://youtu.be/mye9NjvxVSU?t=2412

@unredundant the same information (as on their road map) is that there are planning to bring support for SwaggerUI. But there is no timeline for it.
Do you know who as contributors could work on this?

I've published a tentative list of things that would need to happen for a Kompendium V3.
https://github.com/orgs/bkbnio/projects/5
The breaking changes (as of now)

Moving to OpenAPI 3.1 (since this provides full Json Schema support, we can move the object serialization dialect to it's own module, and hopefully reduce a lot of the bugs that currently exist due to weird legacy openapi spec choices)
Support Ktor 2
Java 17 will become the baseline version as that is the most recent LTS

pre-pre-pre-pre-alpha sneak peek 👀
    routing {
      route("/") {
        rootDocumentation()
        get {
          call.respondText("Hello, world!")
        }
        route("/nesty") {
          nestyDocumentation()
          get {
            call.respondText("Hello, Nesty!")
          }
        }
      }
    }
  }.start(wait = true)
}

fun Route.rootDocumentation() {
  install(NotarizedRoute) {
    path = "/"
    get = KompendiumPlugins.GetInfo<Unit, Unit>(
      responseInfo = KompendiumPlugins.ResponseInfo(
        status = HttpStatusCode.OK,
        description = "Everything Works!"
      ),
      summary = "Doing a GET!"
    )
  }
}

fun Route.nestyDocumentation() {
  install(NotarizedRoute) {
    path = "/nesty"
  }
}

Route-level plugins are a killer feature.  Going to make the code base so much cleaner! Essentially, you can now delegate a lot of the processing to individual routes, and have them each propagate just their own route metadata up to the application level plugin, which is what actually serializes the specification.
It also lets us ditch the notarizedX wrappers around the normal ktor routes, meaning that kompendium becomes essentially completely non-invasive, so it will be able to be applied to an existing API without modifying any of the existing code, purely additive.
And probably a bunch of other cool stuff I haven't even discovered yet

For the insanely foolish brave, I have gone ahead and published a snapshot of Kompendium V3 to GitHub packages https://github.com/bkbnio/kompendium/packages/779560 A ton of stuff is still broken, and practically the entire thing is undocumented, so this is not nearly fit for production at this point.
But... just in case your a tad mental and want to give it a go anyway, it is there :)
Short list of broken things

Auth
Locations API
Polymorphic objects
Generics
Recursive objects
Nested references
Object constraints

Probably way more as well that I just haven't found yet 🙃
There is a super simple dummy app here that should give you a decent idea of how to get going

Need ktor 2.0 support badly

Version 3 is stable enough that I went ahead and merged the PR and published the alpha release to maven central 🎉
This is still definitely an alpha release, and a number of things are missing

Recursive types are broken
Ktor Locations API is not yet supported
Field level constraints (things like minimum: 0 etc) are broken
Field name overrides (ie myAwesomeField -> my_awesome_field)

Also, there is still pretty much no documentation yet.  The best reference is going to be the playground module at the moment.
Also, a couple modules were completely removed

Swagger -> as mentioned above, they do not support OpenApi 3.1 yet.
Annotations -> removed while I ponder a better strategy for things like field name overrides and constraints.
Auth -> This is now part of core

Thanks to everyone who waited patiently for this, I had been waiting for the Jetbrains team to implement this like they said they would, but it's been long enough that I gave up hope and decided to just do it myself :shipit:


pull request for e2e test at 01/09/2017 19:26:11

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


fix: question mark for placeholder does not work

fix: question mark for placeholder does not work
If I follow the example with a question mark for a placeholder then this exception is thrown.
connection.execute("delete from tb_test where id=?", ['test3']);

"[object Object]" is not one of the cases of error

or this with a try-catch
error:
(new Error("[object Object] (see error.payload)", "dist.bindings.js", 157))

error.payload:
{ tag: "query-failed", val: "Error { kind: Db, cause: Some(DbError { severity: "ERROR", parsed_severity: Some(Error), code: SqlState(E42601), message: "syntax error at end of input", detail: None, hint: None, position: Some(Original(35)), where_: None, schema: None, table: None, column: None, datatype: None, constraint: None, file: Some("scan.l"), line: Some(1240), routine: Some("scanner_yyerror") }) }" }

environment

spin: 3.0.0
macos
postgresql 17
target: wasm32-wasip1

Thanks for flagging this!  However, the page in question covers both MySQL and Postgres.  The example in this PR is for MySQL, for which the question mark is correct.  And we didn't want to clutter the page with MySQL and Postgres examples that were almost identical, so instead the paragraph above the sample links to a Postgres example.
I'll look at adding comments to the sample noting differences for Postgres.
@karthik2804 is it worth surfacing the error payload more visibly in this case, or is that part of the JS exception system and out of our control?

@itowlson That error is the error generated as part of the bindings in ComponentizeJS. I think we can use try catch to make it clearer maybe but will have to take a look.

Ah good catch and I did not realize that it was for MySql only. It took me awhile to figure out a solution w/o any documentation for postgresql.

@vanvuongngo No worries.  I'm proposing #1426 as a fix instead if you want to weigh in on that.  And we appreciate you flagging that this was confusing!


Update testsuite submodule to dc27dad3e34e466bdbfea32fe3c73f5e31f88560

I was a bit curious where all the new tests came from and now I'm a bit confused. The comparison of the submodules doesn't actually contain any meaningful changes, which makes me curious what's going on here.
I don't think that the snapshot logic accounts for deleted tests well, so are these extra files perhaps leftover on your machine from some previous runs? (I suppose if you delete them and re-run with BLESS=1 do they reappear?)
Although you're adding new code here like AssertMalformedCustom which I presume you ran into an issue to do that. So now that I type this out, is there perhaps a forgotten submodule update here?

Not sure what's going on. I blew away the snaphots, ran git clean -f -x -d in the submodule, and then re-ran tests with BLESS=1 and there aren't any changes.

Also, that comparison between submodules you linked seems wrong? Because I know that there were changes to GC tests, which is the whole reason I'm doing this PR. Not sure what is going on here.

Or did someone else update the testsuite repo in the last couple weeks?

https://github.com/bytecodealliance/wasm-tools/pull/1298 was the latest PR to update the submodule which I think may have included the changes you're looking for? The diff is the difference of the submodule commit on this repo's main branch vs the testsuite repo's main branch.
Updating the submodule locally and blowing away the tests/snapshots folder doesn't yield any changes relative to main locally for me, so I'm also preplexed as to what's happening...

This is adding a tests/snapshots/testsuite/repos folder which doesn't currently exist which I think is generated from the update script, so it may be that the clean in the submodule itself didn't clean up this folder? I think that may be because git clean doesn't remove submodules

As in, tests/testsuite/repos/* probably has a bunch of stuff for you in the submodule of the wasm-tools checkout you have, and if you remove all that manually I think most of these files should disappear.
That being said I think that many changes here may not be necessary after #1298?


Only the first trackable added to the publisher emits a didChangeConnectionState:forTrackable: callback

Description
When the first trackable is added to a publisher, it emits a delegate didChangeConnectionState: .online, forTrackable: call. It does not do this for subsequent trackables added to the publisher (or sometimes, it does, but after a long delay).
Here's an example of how this looks in the publisher example app on my device (after the UI changes of #419):
https://user-images.githubusercontent.com/53756884/196199095-6473bf0c-fb3b-4144-a479-a00f18f5a1ce.mov
Conditions to reproduce
I noticed this issue on my device running iOS 16.0 and on the iOS 15.5 simulator. It does not happen on the iOS 16.0 simulator.
I think this was just because my iOS 15.5 simulator was simulating a static location and my iOS 16.0 simulator was simulating a drive. Seems like you can actually reproduce this with any simulator that's simulating a static location, or with a stationary device.

After some investigation, this seems to be a result of delegate methods being called as a result of publish in sendEnhancedLocation. There is also a callback set where the subscription is set for  subscribeForChannelStateChange which is never called. I think that must be the right place to invoke this particular delegate method which I will investigate why it's not the case

I checked Android codebase and there too statuses are updated as result of enhanced location publishes too. So as a result I do not really think that's a bug. when the first trackable is added the sending enhanced location happens immediately but the subsequent ones happens in certain frequency. Sometimes the location updates will get a bit late, but I think that's the result of our location provider not providing locations in some circumstances. @KacperKluka can you please confirm that that should be the correct behaviour? i couldn't use Android publisher to test this as it crashes. I also think we can't add more than one trackable for Android publisher

In the Android example app you can add multiple trackables and each of them has its own state displayed 😉 The trackable state is online only when: Ably connection state is connected, channel state is connected, and at least one location update was sent for this trackable. Whether a location update is sent for a trackable depends on its current resolution. So it might be that some trackables will publish locations once it's received from the location engine and others will save them in the 'skippedLocations' to be sent later.

I did some investigation into this, as described in https://github.com/ably/ably-asset-tracking-swift/pull/481. The issue isn't as severe as I thought; once the device starts moving then we can expect it to eventually emit a didChangeConnectionState:forTrackable: callback. That PR contains a potential solution, but I was asked about the potential impact and started looking into it. I don't think that this issue is a priority now and I suggest we return it to the backlog.


Metropolis Street Racer crashes after intro cutscene

Interpreter doesn't help.
panic_debug: PC: 8C14655E
Invalid _get_memory @1C60E73C
thread 16180 panic: Invalid _get_memory @{X:0>8}
H:\Source\Deecy\src\sh4.zig:867:9: 0x1a26f45 in panic_debug__anon_12735 (Deecy.exe.lto.obj)
        @panic(fmt);
        ^
H:\Source\Deecy\src\sh4_interpreter.zig:132:56: 0x1a8c59e in movl_Rm_atRn (Deecy.exe.lto.obj)
    cpu.write32(cpu.R(opcode.nmd.n).*, cpu.R(opcode.nmd.m).*);
                                                       ^
H:\Source\Deecy\src\dreamcast.zig:439:40: 0x1a2736d in tick (Deecy.exe.lto.obj)
        const cycles = self.cpu.execute(max_instructions);
                                       ^
H:\Software\zig\0.13.0-dev.351+64ef45eb0\files\lib\std\Thread.zig:518:30: 0x1b4ddda in entryFn (Deecy.exe.lto.obj)
                return callFn(f, self.fn_args);

e2972eb seems to have fixed the crash issue.
It's now stuck in a GD-ROM-DMA loop. Why is there so much data in the DMA queue?
info(gdrom):  GDROM PacketCommand ReqMode
info(gdrom):  GDROM PacketCommand ReqSecu: { 71, 1F, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 }
warning(gdrom):  GDROM PacketCommand GetToC - Single Density (alloc_length: 0x0198)
warning(gdrom):  GDROM PacketCommand GetToC - Double Density (alloc_length: 0x0198)
info(dc): GD-ROM-DMA! 0C50CBA0 (00000800 bytes / 00D7A800 in queue)
info(gdrom):  GDROM PacketCommand ReqMode
info(gdrom):  GDROM PacketCommand ReqSecu: { 71, 1F, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 }
warning(gdrom):  GDROM PacketCommand GetToC - Single Density (alloc_length: 0x0198)
warning(gdrom):  GDROM PacketCommand GetToC - Double Density (alloc_length: 0x0198)
info(dc): GD-ROM-DMA! 0C50CBA0 (00000800 bytes / 00D7A800 in queue)
info(gdrom):  GDROM PacketCommand ReqMode
info(gdrom):  GDROM PacketCommand ReqSecu: { 71, 1F, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 }
warning(gdrom):  GDROM PacketCommand GetToC - Single Density (alloc_length: 0x0198)
warning(gdrom):  GDROM PacketCommand GetToC - Double Density (alloc_length: 0x0198)
info(dc): GD-ROM-DMA! 0C50CBA0 (00000800 bytes / 00D7A800 in queue)

Just ignoring the faulty write seems to work...
The current GDROM DMA timings prevents from going in game though (they're too long)


How to change the border color of a selected Segment?

@hyd00 Changing the border color of the segments isn't directly supported with a public property on your URBSegmentedControl instance. However, you can manually adjust the color for all segments by changing the following line in URBSegmentedControl.m, line 814 (of the latest version):
UIColor *segmentStrokeColor = [self.imageBackgroundColor adjustBrightness:0.5];


Externalize span / trace id headers

Quite a few users have asked about a possibility to externalize the main header names instead of needing to implement custom extractors.

Done here - https://github.com/spring-cloud/spring-cloud-sleuth/commit/83012a5aa629c57560a85462ce8610d55f053901


Excessive traceback of errors updating hue lights: timeout and refused connections

Make sure you are running the latest version of Home Assistant before reporting an issue.
You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:
Home Assistant release (hass --version):
0.46.0
Python release (python3 --version):
3.5.2
Component/platform:
light.hue
Description of problem:
Logs are filled with traceback of errors about timeout or rejected connections when trying to update the state of some hue lights. In my case, this happen multiple times each day (but not always)
Expected:
Better error handling so logs are cleaner.
Problem-relevant configuration.yaml entries and steps to reproduce:
light:
  - platform: hue
    host: 192.168.1.X
    allow_unreachable: true
    homebridge_hidden: true
    scan_interval: 12

Traceback (if applicable):
2017-06-09 01:54:14 ERROR (Thread-6) [phue] GET Request to 192.168.1.X/api/XXXXXXXXXXXXXX timed out.
Traceback (most recent call last):
  File "/home/homeassistant/.homeassistant/deps/phue.py", line 651, in request
    connection.request(mode, address)
  File "/home/homeassistant/.pyenv/versions/3.5.2/lib/python3.5/http/client.py", line 1106, in request
    self._send_request(method, url, body, headers)
  File "/home/homeassistant/.pyenv/versions/3.5.2/lib/python3.5/http/client.py", line 1151, in _send_request
    self.endheaders(body)
  File "/home/homeassistant/.pyenv/versions/3.5.2/lib/python3.5/http/client.py", line 1102, in endheaders
    self._send_output(message_body)
  File "/home/homeassistant/.pyenv/versions/3.5.2/lib/python3.5/http/client.py", line 934, in _send_output
    self.send(msg)
  File "/home/homeassistant/.pyenv/versions/3.5.2/lib/python3.5/http/client.py", line 877, in send
    self.connect()
  File "/home/homeassistant/.pyenv/versions/3.5.2/lib/python3.5/http/client.py", line 849, in connect
    (self.host,self.port), self.timeout, self.source_address)
  File "/home/homeassistant/.pyenv/versions/3.5.2/lib/python3.5/socket.py", line 711, in create_connection
    raise err
  File "/home/homeassistant/.pyenv/versions/3.5.2/lib/python3.5/socket.py", line 702, in create_connection
    sock.connect(sa)
socket.timeout: timed out
2017-06-09 01:54:14 ERROR (MainThread) [homeassistant.helpers.entity] Update for light.estudio fails
Traceback (most recent call last):
  File "/home/homeassistant/.homeassistant/deps/phue.py", line 651, in request
    connection.request(mode, address)
  File "/home/homeassistant/.pyenv/versions/3.5.2/lib/python3.5/http/client.py", line 1106, in request
    self._send_request(method, url, body, headers)
  File "/home/homeassistant/.pyenv/versions/3.5.2/lib/python3.5/http/client.py", line 1151, in _send_request
    self.endheaders(body)
  File "/home/homeassistant/.pyenv/versions/3.5.2/lib/python3.5/http/client.py", line 1102, in endheaders
    self._send_output(message_body)
  File "/home/homeassistant/.pyenv/versions/3.5.2/lib/python3.5/http/client.py", line 934, in _send_output
    self.send(msg)
  File "/home/homeassistant/.pyenv/versions/3.5.2/lib/python3.5/http/client.py", line 877, in send
    self.connect()
  File "/home/homeassistant/.pyenv/versions/3.5.2/lib/python3.5/http/client.py", line 849, in connect
    (self.host,self.port), self.timeout, self.source_address)
  File "/home/homeassistant/.pyenv/versions/3.5.2/lib/python3.5/socket.py", line 711, in create_connection
    raise err
  File "/home/homeassistant/.pyenv/versions/3.5.2/lib/python3.5/socket.py", line 702, in create_connection
    sock.connect(sa)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/homeassistant/.pyenv/versions/3.5.2/envs/hass35/lib/python3.5/site-packages/homeassistant/helpers/entity.py", line 224, in async_update_ha_state
    yield from self.hass.async_add_job(self.update)
  File "/home/homeassistant/.pyenv/versions/3.5.2/lib/python3.5/asyncio/futures.py", line 361, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/home/homeassistant/.pyenv/versions/3.5.2/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
    future.result()
  File "/home/homeassistant/.pyenv/versions/3.5.2/lib/python3.5/asyncio/futures.py", line 274, in result
    raise self._exception
  File "/home/homeassistant/.pyenv/versions/3.5.2/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/homeassistant/.pyenv/versions/3.5.2/envs/hass35/lib/python3.5/site-packages/homeassistant/components/light/hue.py", line 455, in update
    self.update_lights(no_throttle=True)
  File "/home/homeassistant/.pyenv/versions/3.5.2/envs/hass35/lib/python3.5/site-packages/homeassistant/util/__init__.py", line 303, in wrapper
    result = method(*args, **kwargs)
  File "/home/homeassistant/.pyenv/versions/3.5.2/envs/hass35/lib/python3.5/site-packages/homeassistant/util/__init__.py", line 303, in wrapper
    result = method(*args, **kwargs)
  File "/home/homeassistant/.pyenv/versions/3.5.2/envs/hass35/lib/python3.5/site-packages/homeassistant/components/light/hue.py", line 182, in update_lights
    api = bridge.get_api()
  File "/home/homeassistant/.homeassistant/deps/phue.py", line 838, in get_api
    return self.request('GET', '/api/' + self.username)
  File "/home/homeassistant/.homeassistant/deps/phue.py", line 661, in request
    raise PhueRequestTimeout(None, error)
phue.PhueRequestTimeout: (None, 'GET Request to 192.168.1.X/api/XXXXXXXXXXXXXX timed out.')
2017-06-09 01:54:14 ERROR (Thread-8) [homeassistant.components.light.hue] Cannot reach the bridge
Traceback (most recent call last):
  File "/home/homeassistant/.pyenv/versions/3.5.2/envs/hass35/lib/python3.5/site-packages/homeassistant/components/light/hue.py", line 182, in update_lights
    api = bridge.get_api()
  File "/home/homeassistant/.homeassistant/deps/phue.py", line 838, in get_api
    return self.request('GET', '/api/' + self.username)
  File "/home/homeassistant/.homeassistant/deps/phue.py", line 651, in request
    connection.request(mode, address)
  File "/home/homeassistant/.pyenv/versions/3.5.2/lib/python3.5/http/client.py", line 1106, in request
    self._send_request(method, url, body, headers)
  File "/home/homeassistant/.pyenv/versions/3.5.2/lib/python3.5/http/client.py", line 1151, in _send_request
    self.endheaders(body)
  File "/home/homeassistant/.pyenv/versions/3.5.2/lib/python3.5/http/client.py", line 1102, in endheaders
    self._send_output(message_body)
  File "/home/homeassistant/.pyenv/versions/3.5.2/lib/python3.5/http/client.py", line 934, in _send_output
    self.send(msg)
  File "/home/homeassistant/.pyenv/versions/3.5.2/lib/python3.5/http/client.py", line 877, in send
    self.connect()
  File "/home/homeassistant/.pyenv/versions/3.5.2/lib/python3.5/http/client.py", line 849, in connect
    (self.host,self.port), self.timeout, self.source_address)
  File "/home/homeassistant/.pyenv/versions/3.5.2/lib/python3.5/socket.py", line 711, in create_connection
    raise err
  File "/home/homeassistant/.pyenv/versions/3.5.2/lib/python3.5/socket.py", line 702, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

Additional info:
I'm using a 2º gen Hue Bridge (the one compatible with Siri) with 9 hue bulbs. The ones that fail are 1 bulb located far away from the bridge, and a group of three bulbs that I use with hyperion to simulate a phillips ambilight around my tv running kodi. The lights in the group only fail when hyperion is running (and changing the lights very fast), so for these I think it is a problem of bridge overload. For the distant lamp, I think the bridge is not seeing it sometimes. Anyway, I thing the traceback should not appear in the log.

Can confirm i am getting the same problem. Happens with random lights and logs errors multiple times per day.  I can still control the lights via the UI and automations work.
2017-06-14 21:34:25 ERROR (MainThread) [homeassistant.helpers.entity] Update for light.boat_light fails
Traceback (most recent call last):
  File "/home/homeassistant/.homeassistant/deps/phue.py", line 651, in request
    connection.request(mode, address)
  File "/usr/lib/python3.4/http/client.py", line 1090, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python3.4/http/client.py", line 1128, in _send_request
    self.endheaders(body)
  File "/usr/lib/python3.4/http/client.py", line 1086, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python3.4/http/client.py", line 924, in _send_output
    self.send(msg)
  File "/usr/lib/python3.4/http/client.py", line 859, in send
    self.connect()
  File "/usr/lib/python3.4/http/client.py", line 836, in connect
    self.timeout, self.source_address)
  File "/usr/lib/python3.4/socket.py", line 509, in create_connection
    raise err
  File "/usr/lib/python3.4/socket.py", line 500, in create_connection
    sock.connect(sa)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity.py", line 224, in async_update_ha_state
    yield from self.hass.async_add_job(self.update)
  File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
    value = future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/light/hue.py", line 455, in update
    self.update_lights(no_throttle=True)
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/util/__init__.py", line 303, in wrapper
    result = method(*args, **kwargs)
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/util/__init__.py", line 303, in wrapper
    result = method(*args, **kwargs)
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/light/hue.py", line 182, in update_lights
    api = bridge.get_api()
  File "/home/homeassistant/.homeassistant/deps/phue.py", line 838, in get_api
    return self.request('GET', '/api/' + self.username)
  File "/home/homeassistant/.homeassistant/deps/phue.py", line 661, in request
    raise PhueRequestTimeout(None, error)
phue.PhueRequestTimeout: (None, 'GET Request to <IP_ADDRESS>/api/vGJJIrE-ADXHYwOtMu1xt9PkvoVXAE8dctsC6GNE timed out.')


Cannot read property 'onChange' of undefined

Hi guys!
Congratulations for the excellent work and dedication to the project. The plugins that Gatsby have helps us a lot.
I would like to understand and resolve this error. I tried in different ways solve, but I couldn't ...

Basically the site starts and loads the image. However, when moving to the second image, this error occurs.
Code:
import { graphql, useStaticQuery } from "gatsby"

import BackgroundSlider from "gatsby-image-background-slider"
import React from "react"

const BgSlider = () => {
  const query = useStaticQuery(graphql`
    query {
      backgrounds: allFile(
        filter: { sourceInstanceName: { eq: "backgrounds" } }
      ) {
        nodes {
          relativePath
          childImageSharp {
            fluid(maxWidth: 4000, quality: 100) {
              ...GatsbyImageSharpFluid_withWebp_tracedSVG
            }
          }
        }
      }
    }
  `)
  return (
    <BackgroundSlider
      initDelay={3}
      transition={3}
      duration={3}
      query={query}
    />
  )
}
export default BgSlider

There is no error in the terminal, neither of the compilation.
Version plugin: gatsby-image-background-slider: "^0.0.3",

i'm having the same issue

Just fixed it. Shoot me a message @guilhermebellotti , if you need help fixing it.

Hey @epg323 ! How did you get it fixed? I did not get it yet :(

Go to node_modules> gatsby-image-background-slider> dist> index.js
look for "callbacks.onChange" and change it to "callbacks"
do it for index.es.js as well

Sorry about the regression. I overlooked it when merging @krisb's changes.


Update Games List.json

Wanna contribute on adding games with pictures and backgrounds? Now you can! Just do a pull request editing the Games List.json file!

"titlename" should have the original name of the game that shows on Xbox, remove any Copyright or Trademark symbols
Images on "titleicon" should be 1024x1024, and "titlebackground" can be any size but choose one that fits on the app correctly
"titleimage" is a Discord parameter, give it any name or the game name, i will edit it after the pull request

Remember, edit the complete code and add your game array, make sure to add
any necessary commas and brackets
I will check the code later, edit it with my titleimage and merge it if everything is ok.

@Baptic Hello! Looks like your titleicon isn't correct, add the game's icon on 1024x1024, or i can look it up for you if you want


Wishlist: Javascript-free client, Python API

Would it be possible to have a Javascript-free client, for example with an iframe? If not, why?

Very interested too !
@jelmer , any idea on this feature request ?

I think a server-generated page for each thread with a commenting option would be a great addition. Let's say you have a static blog and don't want JS, then you can generate a link to the Isso-generated HTML for this particular thread.

Relatedly it'd be nice to have an externally-usable/documented Python API so that I can just embed Isso directly into my Python/Flask-based website generator.

This is a nice idea and would probably also make a lot of people happy who swear by their static blog engines.
I can see two issues though:
First, a duplication of functionality. If both the server and the client are supposed to render HTML, we'd end up re-implementing the whole client part in python (possibly using jinja2 templates or what-have-you).
Or, we'd render as much as possible on the server, keeping the client light but requiring a lot of round trips. Also not ideal.
Second, how do you re-"hydrate" static content from the client side, i.e. make it interactive again? Should the client become HTML Form-based only?
That's quite a lot of open questions and I don't see anyone working on this.

I think having all of the rendering happen server-side and having the API be "give me HTML for this post" vs. "give me HTML for this thread" would be a good starting point.
Also where does the client data ever get rehydrated aside from the 'edit post' button? That can be part of the edit API. And isn't the Markdown converted to HTML server-side, anyway?
I don't really see what a fully-Javascript client-side is bringing to the table in the first place aside from asynchronously rendering the comment thread, and nothing about that actually depends on the rendering being Javascript in the first place.

The JavaScript rendering means you can embed in a static site. Unless you're going to embed e.g. the post counts in iframes I don't think server side rendering gives us the same functionality.

There's no reason the rendering has to happen in Javascript, though, the whole thread rendering can be done in the server-side API and send it back as the response payload. Which is my understanding of what was happening with the Markdown already.
I'm also not saying that the API would be made Python-embedding only, just that things could be refactored to allow Python apps to embed the comment rendering directly while other things (static or otherwise) continue to use the Javascript API.
My suggestion is just to move more of the rendering to the server side so that it could also be provided as a python API, not to remove the javascript API.

Oh and just to be clear, retrieval of the preview render would still happen in Javascript, in this scenario. I'm just talking about the rendering of the thread as a whole.
It might also help simplify the configuration of things, because then the thread rendering configuration on the server doesn't have a chance to mismatch the client, like then client doesn't have to be configured whether or not to render upvotes/downvotes and so on.

Yeah, I have no problems with supporting a Python API as well (though there are maintenance costs of supporting both). I was just responding to the suggestion of only providing a Python API.

I don't think anyone was suggesting that. If that's how you interpreted what I was saying, it wasn't my intention and I apologize for my lack of clarity.


lens: fixes all trivy detectable CVEs by upgrading vitest

By upgrading vitest and running npm install, trivy no longer detects any CVEs.
$ trivy repo . --scanners vuln
2024-02-16T10:32:11.536+0800	INFO	Vulnerability scanning is enabled
2024-02-16T10:32:18.009+0800	INFO	Number of language-specific files: 19
2024-02-16T10:32:18.009+0800	INFO	Detecting pom vulnerabilities...
2024-02-16T10:32:18.024+0800	INFO	Detecting npm vulnerabilities...

Thanks  @SamTV12345  for updating us to vite, which now gets us off people's radar!

actually I also ran npm audit fix after npm install... I should have mentioned that.


Allow wildcard redirect URLs

We have a case where the redirect URLs are dynamic. I.e. something like http://*.ourdomain.com. It's something we don't have any control over. It's for our own apps, so the clients are trusted.
Since there doesn't seem to be a way for auth code flow to not use redirect URLs from the model, I'm wondering over if a wildcard solution is the way to go.
Instead of doing string matching (in here: https://github.com/thomseddon/node-oauth2-server/blob/master/lib/authCodeGrant.js#L107-L126), the code should match agains wildcards with * characters. In that case, we can store redirect URLs in the model, just like it is now, but the comparison would change.

I don't think this is a change we would want to do - as wildcard redirect URIs are a violation of the OAuth2 spec.  The absolute redirect uri is an important security mechanism to prevent phishing attacks.
https://tools.ietf.org/html/rfc6749#section-3.1.2

Gotcha, I see. I thought I had seen wildcard redirect URIs from other API vendors, but might've been mistaken. Would it be a security issue even if only the subdomain is a wildcard?

There are a few API providers that do not adhere to the spec and do allow it, even though it poses a security risk, but the vast majority don't, and the spec is pretty clear on it.
Subdomains wouldn't be as vulnerable as open URLs but they still are somewhat vulnerable and would require some extremely defensive programming.
What's the use case you're trying to support?

I see what you mean. Then it's best if an OAuth2 package isn't allowing bad practices :)
Our use case was with working with a Chrome app, which exposes some APIs for working with OAuth. They would provide a callback endpoint, such as https://[randomstring].chromeapp.com for OAuth providers to redirect to.
Feel free to close this if you want to.

Thanks, no problem.  Good luck with your app.

I don't think this is a change we would want to do - as wildcard redirect URIs are a violation of the OAuth2 spec. The absolute redirect uri is an important security mechanism to prevent phishing attacks.
https://tools.ietf.org/html/rfc6749#section-3.1.2

I don't have any skin in the game in this project, however I want to point out that RFC3986’s definition of an absolute URI allows for * to be part of the absolute URI. Here are the relevant parts of the grammar that allow for it:
   absolute-URI  = scheme ":" hier-part [ "?" query ]
   hier-part     = "//" authority path-abempty
                 / path-absolute
                 / path-rootless
                 / path-empty
   authority     = [ userinfo "@" ] host [ ":" port ]
   host        = IP-literal / IPv4address / reg-name
   reg-name    = *( unreserved / pct-encoded / sub-delims )
   sub-delims  = "!" / "$" / "&" / "'" / "(" / ")"
                  / "*" / "+" / "," / ";" / "="

There is a comment in RFC-6749 that the most common name registry mechanism is DNS, but to be pedantic, there is no comment in the OAuth 2.0 spec that URIs using a hostname (instead of IP address) must be resolvable via DNS.
I completely agree wildcards in the hostname can be problematic, e.g., *.com. However something like *.mydomain.com when a user owns mydomain and all its subdomains seems reasonable assuming * in this case only represents a single subdomain (i.e., cannot include .). The rules Auth0 uses seem to be sensible: https://auth0.com/docs/applications/wildcards-for-subdomains

Push

https://github.com/panva/node-oidc-provider/blob/main/recipes/redirect_uri_wildcards.md

Regarding the * in RFC3986 see Section 6 which governs comparing strings. There is a complete lack of guidance on how to compare a * so short of some guidance it would be unwise to assume the meaning of the character.


AB#25326 Links - Add a link takes over 20 seconds to load on the MJF tenant

I think this was addressed in another branch pull request?


”Hodoșa”, ”Ihod”, ”Isla”, ”Sâmbriaș” are listed in the drop-down menu

Description:
When user writes ”Hodoșa”, ”Ihod”, ”Isla”, ”Sâmbriaș” the locations appear in the drop-down menu next to the comune and the county which is a part according to the law.
Precondition:
The website is up an running.

Step 1
Write in the search bar "Hodoșa"

Expected results
The location appears in the drop-down menu as "Sat Hodoșa, MUREȘ (Hodoșa)".

Step 2
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 3
Write in the search bar "Ihod"

Expected results
The location appears in the drop-down menu as "Sat Ihod, MUREȘ (Hodoșa)".

Step 4
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 6
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 7
Write in the search bar "Sâmbriaș"

Expected results
The location appears in the drop-down menu as "Sat Sâmbriaș, MUREȘ (Hodoșa)".


add protobuf

I needed to extend the validation to properly handle detection of abi3 wheels (more on abi3: https://youtu.be/4uy0c855msk )

protobuf needs special build instructions to get libprotobuf in place -- will need #37

#40 for a new approach


Error wrapping in t3c

This makes errors constructed in from other errors in t3c (everything under cache-config/) use error-wrapping formatting so that the identity of the underlying error is not destroyed. It also ensures that:

Error strings do not start with a capital letter
Error strings do not end with punctuation
Error identity is checked with errors.Is
Error type is checked with errors.As

Originally, I was going to do that for everything in the repo at once, but I drastically underestimated how large that changeset would be. So I just started with the first component alphabetically. Partially because I did originally want this to encompass the whole repo, there's also a change in here that that removes a newline from an error string in traffic_vault_migrate and some changes to the db/admin program - I left those in because I figured it was harmless to do so, but I can take them out at a reviewer's request.

Which Traffic Control components are affected by this PR?

Traffic Control Cache Config (T3C, formerly ORT)

What is the best way to verify this PR?
Make sure all the tests still pass. To check for non-wrapping errors, I grepped with the regular expression:
(fmt\.Errorf|errors\.New)(.+(\.Error\b|%v.+ \w*[eE]r\w*[,)]|\\n|[!\.?]")|\("[A-Z])

which does output some false positives where an error is passed to fmt.Errorf that just so happens to use %v to format something that isn't an error. I also used errorlint, which is available through golangci-lint, to catch cases where errors.Is and errors.As should be used (but that won't catch all the things the regexp does, it'll miss things like errors.New(err.Error())). Finally, I checked for matches to
errors\.New\(fmt\.Sprintf\(

but that yielded no results, so no changes were necessary.
PR submission checklist

[x] This PR DOES NOT FIX A SERIOUS SECURITY VULNERABILITY

See my comment on https://github.com/apache/trafficcontrol/pull/6159#issuecomment-920952811 about performance.
t3c isn't nearly as performance-critical as Grove, but we're trying to reduce the runtime of cache. As we get down from minutes to seconds, it'd be good if we didn't add things that make the whole run take say, 5 seconds instead of 2.
Again, I support the idea of this. And I can't say how much an impact this has without testing. But it'd be really good if, before merging something potentially performance-impacting like this, if someone benchmarked t3c-apply runs for every concievable ordinary configuration on a large CDN, and confirmed it doesn't significantly impact performance.


Fix a typo in message about small XFS filesystem

Which issue(s) this PR fixes:
longhorn/longhorn#8488
What this PR does / why we need it:
There is a typo in a log message that is confusing.

@mergify backport v1.6.x v1.5.x

Codespell error is an unrelated change.


#504 Move FixturesTrait class from Tests to AppBundle namespace

Moved the FixturesTrait class to the AppBundle namespace in attempt to fix the heroku deployment failure. This class is needed not only in dev or test environments but also in production because the database is loaded using the doctrine fixtures bundle. Related to #504

Thanks for fixing this bug @apetitpa.


What type scale does Tachyons use?

Hey, Adam.

I just wanted to preface this "issue" with how awesome I think Tachyons is. Thank you so much for making this project, and writing posts that have fundamentally shifted many of my philosophical views on how to write software, most notably to assess my reality in order to unearth what my problems are (and how I to derive solutions from there).

--
Tl;dr - What is the type scale of Tachyons? How do the numbers relate to each other? Is the Tachyon's scale 8 "notes" long?

Tachyon's type scale

I've seen comments of yours referring to scales based on powers of 2, but don't exactly follow how the Tachyons scale is created.
I've also begun reading Bringhurst's The Elements of Typographic Style, and noticed his type scale referenced in the book

Typographic equivalent of the diatonic scale, p. 45

And finally, I read a post by Spencer Mortensen, http://spencermortensen.com/articles/typographic-scale/, which criticizes the scale provided in Bringhurst's book for various reasons (lost notes in the scale, flat notes, extra notes, etc.), and provides an equation to calculate frequency of the ith note in a scale

where f0 is the fundamental frequency of the scale (generally 12)
where i is the ith note in the scale
where n is the number of notes in the scale (usually 5)
where r is the ratio of the scale

For example, if f0 were 6 points, then we could derive a scale by applying the equation over 5 notes, using a ratio of 2, and get the following

example type scale, where f0 = 6; n = 5; r = 2

Of course, I have no idea how this equation was derived (perhaps its origin is within the musical scene?), and thus its validity is somewhat lost on me.
It seems like there are a lot of opinions on how type scales are created, and I recognize that this could largely be a subjective matter—there are obviously many visually pleasing ratios.
I am trying to understand how something like a type scale is created. More precisely, how Tachyon's type scale was created. Could you offer some help to dissipate my ignorance? I would ver much appreciate it.

This scale is based on: px to rem conversion (http://www.standardista.com/px-to-rem-conversion-if-root-font-size-is-16px/). Jason Pamental presents a more sophisticated approach: http://typecast.com/blog/a-more-modern-scale-for-web-typography


How to use it

Hello, I am new to this composer stuff, need to know how can I use this api wrapper?
I have downloaded the code and isntalled using composer command, everythins is downloaded
I have ID and secret from Adobe,
how can I run tests? it is throwing errors like
'PHPUnit_Framework_TestCase' not found in D:\wamp6...
when I open any php file, it throws errpr

I took me a while but I got it working, I hope helps others, after installing with componser yo need to create your sanbox page, for me was a index,php in /vendor/kevinem/adobe-sign-php/ then you need to include 2 classes AdobeSign and Psr7 in my case, because I need to upload 2 documments.
require "../../../vendor/autoload.php";  use KevinEm\AdobeSign\AdobeSign; use GuzzleHttp\Psr7;
here is how I configure the $provider
`$archivos = ['/YOUR_PATH/VFirma_FEA_01.pdf', '/YOUR_PATH/505.pdf'];
//YOUR_BACK_URL must be the same as your backend in adobe
//dataCenter make sure what server you need, change this manually in AdobeSign.php
$provider = new KevinEm\OAuth2\Client\AdobeSign([
'clientId'          => 'YOUR_APP_ID',
'clientSecret'      => 'YOUR_APP_SETRET',
'redirectUri'       => 'YOUR_BACK_URL',
'dataCenter'        => 'secure.na2',
'scope'             => ['user_login:self',
'agreement_write:self',
'widget_write:self',
'library_write:self',
'agreement_send:self'
]
]);`
`$accessToken = $adobeSign->getAccessToken($_GET['code']);
$adobeSign->setAccessToken($accessToken->getToken());
$todosDoc = array();
foreach ($archivos as $doc) {
$file_path = DIR.$doc;
$file_stream = Psr7\FnStream::decorate(Psr7\stream_for(file_get_contents($file_path)), [
'getMetadata' => function() use ($file_path) {
return $file_path;
}
]);
$multipart_stream   = new Psr7\MultipartStream([
[
'name'     => 'File',
'contents' => $file_stream
]
]);
$transient_document = $adobeSign->uploadTransientDocument($multipart_stream);
array_push($todosDoc, $transient_document);
}
$adobeSign->createAgreement([
    'documentCreationInfo' => [
        'fileInfos'         => $todosDoc,
        'name'              => 'My Document Test',
        'signatureType'     => 'ESIGN',
        'recipientSetInfos' => [
            'recipientSetMemberInfos' => [
                'email' =><EMAIL_ADDRESS>            ],
            'recipientSetRole'        => [
                'SIGNER'
            ]
        ],
        'mergeFieldInfo'    => [
            [
                'fieldName'    => 'Name',
                'defaultValue' => 'John Doe'
            ]
        ],
        'signatureFlow'     => 'SENDER_SIGNATURE_NOT_REQUIRED'
    ]
]);`

I took me a while but I got it working, I hope helps others, after installing with componser yo need to create your sanbox page, for me was a index,php in /vendor/kevinem/adobe-sign-php/ then you need to include 2 classes AdobeSign and Psr7 in my case, because I need to upload 2 documments.
require "../../../vendor/autoload.php"; use KevinEm\AdobeSign\AdobeSign; use GuzzleHttp\Psr7;
here is how I configure the $provider
`$archivos = ['/YOUR_PATH/VFirma_FEA_01.pdf', '/YOUR_PATH/505.pdf'];
//YOUR_BACK_URL must be the same as your backend in adobe
//dataCenter make sure what server you need, change this manually in AdobeSign.php
$provider = new KevinEm\OAuth2\Client\AdobeSign([
'clientId' => 'YOUR_APP_ID',
'clientSecret' => 'YOUR_APP_SETRET',
'redirectUri' => 'YOUR_BACK_URL',
'dataCenter' => 'secure.na2',
'scope' => ['user_login:self',
'agreement_write:self',
'widget_write:self',
'library_write:self',
'agreement_send:self'
]
]);`
`$accessToken = $adobeSign->getAccessToken($_GET['code']);
$adobeSign->setAccessToken($accessToken->getToken());
$todosDoc = array();
foreach ($archivos as $doc) {
$file_path = DIR.$doc;
$file_stream = Psr7\FnStream::decorate(Psr7\stream_for(file_get_contents($file_path)), [
'getMetadata' => function() use ($file_path) {
return $file_path;
}
]);
$multipart_stream = new Psr7\MultipartStream([
[
'name' => 'File',
'contents' => $file_stream
]
]);
$transient_document = $adobeSign->uploadTransientDocument($multipart_stream);
array_push($todosDoc, $transient_document);
}
$adobeSign->createAgreement([
    'documentCreationInfo' => [
        'fileInfos'         => $todosDoc,
        'name'              => 'My Document Test',
        'signatureType'     => 'ESIGN',
        'recipientSetInfos' => [
            'recipientSetMemberInfos' => [
                'email' =><EMAIL_ADDRESS>            ],
            'recipientSetRole'        => [
                'SIGNER'
            ]
        ],
        'mergeFieldInfo'    => [
            [
                'fieldName'    => 'Name',
                'defaultValue' => 'John Doe'
            ]
        ],
        'signatureFlow'     => 'SENDER_SIGNATURE_NOT_REQUIRED'
    ]
]);`

mhh....where do you use $provider var?

$adobeSign = new AdobeSign($provider); @itajackass

@mcbosc thanks after a lot I find that it was not present. But I still get error on the script, $_GET['code'] never found... so i implemented all the code without kevinem script but only with cURL.
Now i get another trouble.
Do you use custom from fields? I can't place it. It seem adobesign ignore my inserts. Please do you have some example of working?
Mine is this:
$header =array(
	"Authorization: Bearer " . $access_token,
	"cache-control: no-cache",
	"content-type: application/json"
);

$fields_array = array(
	"fields" => [array(
		"locations" => [array(
			"height" => 36,
			"left" => 75,
			"pageNumber" => 2,
			"top" => 200,
			"width" => 150
		)]
		,
		"contentType" => "SIGNER_COMPANY",
		"name" => "sigBlock1",
		"backgroundColor" => "#CCCCCC",
		"inputType" => "TEXT_FIELD",
		"required" => true,
		"visible" => true
	)]

);

$postdata = json_encode($fields_array);

$resource = curl_init();

curl_setopt_array($resource, array(
  CURLOPT_URL => "https://api.eu1.echosign.com/api/rest/v6/agreements/" . $id . "/formFields",
  CURLOPT_HTTPHEADER => $header,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => $postdata,
  CURLOPT_SSL_VERIFYHOST => false,
  CURLOPT_SSL_VERIFYPEER => false
));

$res = curl_exec($resource);


[SPARK-10071][Streaming]Output a warning when writing QueueInputDStream and throw a better exception when reading QueueInputDStream

Output a warning when serializing QueueInputDStream rather than throwing an exception to allow unit tests use it. Moreover, this PR also throws an better exception when deserializing QueueInputDStream to make the user find out the problem easily. The previous exception is hard to understand: https://issues.apache.org/jira/browse/SPARK-8553

Merged build triggered.

Merged build started.

Test build #42075 has started for   PR 8624 at commit 847cfa8.

Test build #42075 has finished for   PR 8624 at commit 847cfa8.

This patch fails PySpark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

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

retest this please

Merged build triggered.

Merged build started.

Test build #42080 has started for   PR 8624 at commit 847cfa8.

Test build #42080 has finished for   PR 8624 at commit 847cfa8.

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

Merged build finished. Test PASSed.

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

LGTM.


Overload the toNotEmptySet function

Description
Overload the toNotEmptySet function with the following operation:
fun <E> NotEmptyList<E>.toNotEmptySet(): NotEmptySet<E> = TODO()

Checklist

[x] Implement.
[x] Test.
[x] Refactor.
[x] Update Work in progress section in changelog.

Done.


[python-package] Segmentation fault with CUDA version in Python interface (core dumped)

Description
I installed lightgbm-<IP_ADDRESS>, cuda version. After data loaded and transported to GPU, execution just stopped. Below is the log.
GPU memory is about 12GB while the data is 6GB.
[LightGBM] [Warning] Categorical features with more bins than the configured maximum bin number found.
[LightGBM] [Warning] For categorical features, max_bin and max_bin_by_feature may be ignored with a large number of categories.
[LightGBM] [Warning] Using sparse features with CUDA is currently not supported.
[LightGBM] [Warning] Using customized objective with cuda. This requires copying gradients from CPU to GPU, which can be slow.
[LightGBM] [Info] Using self-defined objective function
[LightGBM] [Info] Total Bins 2438
[LightGBM] [Info] Number of data points in the train set: 35322835, number of used features: 48
[LightGBM] [Warning] Using customized objective with cuda. This requires copying gradients from CPU to GPU, which can be slow.
[LightGBM] [Info] Using self-defined objective function
Segmentation fault (core dumped)

Reproducible example
params = {
    'task': 'train',
    'objective': focal_loss_obj,
    'max_bin': 63,
    'num_leaves': 255,
    'min_data_in_leaf': 20,
    'max_depth': 15,
    'learning_rate': 0.05,
    'feature_fraction': 0.8,
    'bagging_fraction': 0.8,
    'bagging_freq': 5,
    'num_class': 4,
    'n_jobs': -1,
    'random_state': 42,
    'boosting_type': 'gbdt',
    'device': 'cuda'
}

gbm = lgb.train(
    params,
    train_set=lgb_train,
    valid_sets=(lgb_train, lgb_eval),
    valid_names=('fit', 'eval'),
    num_boost_round=10000,
    callbacks=[lgb.early_stopping(stopping_rounds=100), lgb.record_evaluation(eval_result)],
    feval=gmean_score
)

Environment info
LightGBM version or commit hash: <IP_ADDRESS>
Command(s) you used to install LightGBM
pip install --no-binary lightgbm --config-settings=cmake.define.USE_CUDA=ON lightgbm

Additional Comments

Thanks for using LightGBM, and for the well-formatted report.
We'd be happy to help, but there are some things you can do to narrow down the issue further and reduce the effort that'll be required to find the root cause.

Can you please provide the code for focal_loss_obj() and gmean_score()?
If you use LightGBM built-in loss function and metrics, does LightGBM still segfault? If not, then the issue might be somewhere in your implementations of those functions.
Alternatively... if you can't share the dataset you're using, can you try with the exact same parameters, loss function, metrics, etc. but a public dataset, like those available from scikit-learn via sklearn.datasets? And report what happens?
Can you try removing parameters from params one-by-one and try to reduce it to the smallest set of non-default values that still produces the problem? For example, if you remove bagging_fraction and feature_fraction and still see a segfault, that's very helpful because it tells us the issue is not related to subsampling of rows and columns inside LightGBM.

Also note that I've reformatted your original post slightly to make the difference between code, your own words, and text printed by code clearer. You can click ... -> Edit in GitHub to see what that looks like in raw markdown form.
If you're unsure how I did that, please review https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax.

Thank you @jameslamb for the kindly reply. I took a new year's leave and back to work today. There is one import thing that I forgot to post here, that is when I reduced the number of data points in the train set to a smaller one (e.g. 100,000), it worked. So maybe it is the data problem?

Please provide the details I asked for at https://github.com/microsoft/LightGBM/issues/6300#issuecomment-1927231076 to help us eliminate possible causes.

Please provide the details I asked for at #6300 (comment) to help us eliminate possible causes.

Hi @jameslamb , I re-run my code with nothing changed but train data, it was replaced by iris data from sklearn.datasets.load_iris. Suprisingly, it worked.

Seems related to the cuda version. I will investigate this.

@leedchou Could you provide the implementation of focal_loss_obj?

In addition, if you could provide a minimal example for reproducing the error, that would be very helpful.

Thank you @shiyu1994 , I'd love to show you the implementaion of focal_loss_obj and an example. It would be great if I can get your email address, so I can send you an example by email.

It would also be great if you could post the example here for clear and open discussion.

Please do this, @leedchou, so that everyone finding this discussion from search in the future can learn from it and so that others can contribute to helping.

It would also be great if you could post the example here for clear and open discussion.

Please do this, @leedchou, so that everyone finding this discussion from search in the future can learn from it and so that others can contribute to helping.

Ok, I'll post it here @shiyu1994 .
focal_loss_obj:
def focal_loss_lgb(y_pred, dtrain, alpha, gamma=2, num_class=4):
    target = dtrain.get_label()
    grad = np.zeros((len(target), num_class), dtype=float)
    hess = np.zeros((len(target), num_class), dtype=float)

    y_true = np.eye(num_class)[target.astype('int')]  # one-hot
    y_pred = y_pred.reshape(len(target), num_class, order='F')
    softmax_p = special.softmax(y_pred, axis=-1)

    for c in range(num_class):
        pc = softmax_p[:, c]
        pt = softmax_p[:][y_true == 1]
        grad[:, c][y_true[:, c] == 1] = (gamma * np.power(1 - pt[y_true[:, c] == 1], gamma - 1) * pt[y_true[:, c] == 1] * np.log(pt[y_true[:, c] == 1]) - np.power(1 - pt[y_true[:, c] == 1], gamma)) * (1 - pc[y_true[:, c] == 1])
        grad[:, c][y_true[:, c] == 0] = (gamma * np.power(1 - pt[y_true[:, c] == 0], gamma - 1) * pt[y_true[:, c] == 0] * np.log(pt[y_true[:, c] == 0]) - np.power(1 - pt[y_true[:, c] == 0], gamma)) * (0 - pc[y_true[:, c] == 0])
        hess[:, c][y_true[:, c] == 1] = (-4 * (1 - pt[y_true[:, c] == 1]) * pt[y_true[:, c] == 1] * np.log(pt[y_true[:, c] == 1]) + np.power(1 - pt[y_true[:, c] == 1], 2) * (2 * np.log(pt[y_true[:, c] == 1]) + 5)) * pt[y_true[:, c] == 1] * (1 - pt[y_true[:, c] == 1])
        hess[:, c][y_true[:, c] == 0] = pt[y_true[:, c] == 0] * np.power(pc[y_true[:, c] == 0], 2) * (-2 * pt[y_true[:, c] == 0] * np.log(pt[y_true[:, c] == 0]) + 2 * (1 - pt[y_true[:, c] == 0]) * np.log(pt[y_true[:, c] == 0]) + 4 * (1 - pt[y_true[:, c] == 0])) - pc[y_true[:, c] == 0] * (1 - pc[y_true[:, c] == 0]) * (1 - pt[y_true[:, c] == 0]) * (2 * pt[y_true[:, c] == 0] * np.log(pt[y_true[:, c] == 0]) - (1 - pt[y_true[:, c] == 0]))

    alpha = np.array([alpha[i] for i in target.astype('int')])[:, np.newaxis]
    grad = alpha * grad
    hess = alpha * hess

    return grad.flatten('F'), hess.flatten('F')

train example:
    class_weights = [1, 1, 1, 1]
    focal_loss_obj = lambda x, y: focal_loss_lgb(x, y, alpha=class_weights, gamma=2, num_class=4)
    gmean_score = lambda x, y: gmean_metric(x, y, num_class=4)

    params = {
        'objective': focal_loss_obj,
        'task': 'train',
        'max_bin': 255,
        'num_leaves': 255,
        'min_data_in_leaf': 20,
        'max_depth': 15,
        'learning_rate': 0.05,
        'feature_fraction': 0.8,
        'bagging_fraction': 0.8,
        'bagging_freq': 5,
        'num_class': 4,
        'n_jobs': -1,
        'random_state': 42,
        'boosting_type': 'gbdt',
        'device': 'cuda',
        # 'gpu_platform_id': 0,
        # 'gpu_device_id': 0,
    }
    eval_result = {}
    gbm = lgb.train(params,
                    train_set=lgb_train,
                    valid_sets=(lgb_train, lgb_eval),
                    valid_names=('fit', 'eval'),
                    num_boost_round=10000,
                    callbacks=[lgb.early_stopping(stopping_rounds=100), lgb.record_evaluation(eval_result)],
                    feval=gmean_score
                    )


fix bevy imports. windows_settings.rs example

Objective
In #9355 was added an import using bevy_internal.
This change the import to use bevy::window instead of a bevy_internal to run the example outside of the bevy repo.

That's the second PR I did where this happened, I wonder if there's something I can do with rust-analyzer to force it to not use the bevy_internal stuff.

Or maybe some CI step that could check for this?

Or maybe some CI step that could check for this?

I think the simplest solution that should catch all issues is to grep for bevy_internal in the examples directory... but that's not pretty


alternative address not working

Describe the bug
the following entry:
KCCONF_LDAP_LDAP_EMAILALIASES_ATTRIBUTE=MAILALTERNATIVEADDRESS
won't add a mailbox to my user when a mail-address is specified on my user at this attribute.
To Reproduce
Steps to reproduce the behavior:
write:
KCCONF_LDAP_LDAP_EMAILALIASES_ATTRIBUTE=MAILALTERNATIVEADDRESS
inside "kopano_server.env"
Expected behavior
I want to receive e-mails on a second mail-address.

Hi @theoneandonly-vector,
can you explain a bit more what you mean with:

won't add a mailbox to my user

Having an alias does not mean that there will be another mailbox for the user, the user will simply have another address that will deliver to the same mailbox.

this isn't working right now:
"the user will simply have another address that will deliver to the same mailbox"
so I want this:
"Expected behavior
I want to receive e-mails on a second mail-address."

I just gave this a quick try on my local system. user1 has in addition to this own address also two aliases:
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>
<EMAIL_ADDRESS>is his main address, the other two are aliases)
I've sent a mail to<EMAIL_ADDRESS>and the mail was delivered for the user.

I changed the wrong field. As I am using Univention it won't be the field under "Mail" but under "Contact"


Fixed #25302 -- Prevented BrokenLinkEmailsMiddleware from reporting 404s when Referer = URL.

Ticket: https://code.djangoproject.com/ticket/25302

Looks pretty good, thanks for working on this!

Please squash commits and use the commit message from the pull request title when updating -- see our patch review checklist. Thanks!

merged in 4ce433e811763f29c32e0553fe1e0070fd14c6a2, thanks!