Console error v1.3.0a

Foundry v10
Console error (see below)
Uncaught (in promise) Error: Setting Model Validation Errors
[Setting.value]: may not be undefined
[Detected 1 package: fvtt-party-resources]
    at SchemaField._validateType (commons.js:3630)
    at SchemaField.validate (commons.js:3357)
    at Setting.validate (commons.js:4994)
    at new DataModel (commons.js:4771)
    at new Document (commons.js:5310)
    at new BaseSetting (commons.js:9319)
    at new ClientDocumentMixin (foundry.js:12942)
    at new Setting (foundry.js:21144)
    at ClientSettings.get (foundry.js:2723)
    at ResourcesApi.get (modules/fvtt-party-resources/src/resources_api.mjs:37)
    at Function.all (modules/fvtt-party-resources/src/resources_list.mjs:3)
    at ResourcesApi.resources (modules/fvtt-party-resources/src/resources_api.mjs:82)
    at Function.getData (modules/fvtt-party-resources/src/resources_status_bar.mjs:6)
    at Function.render (modules/fvtt-party-resources/src/resources_status_bar.mjs:16)
    at Object.fn (modules/fvtt-party-resources/src/init.mjs:25)
    at Function.#call (foundry.js:688)
    at Function.callAll (foundry.js:645)
    at Game.setupGame (foundry.js:7769)
    at async Game._initializeGameView (foundry.js:8820)
    at async Game.initialize (foundry.js:7630)

@XxSTOZZYxX I can't seem to reproduce this, though I'm familiar with the error. Foundry triggers this when data is requested through their game.settings object (which Party Resources does) with a key it can't match against any data. Seems to suggest that you tried to create a resource, and something happened along the way, but I can't be sure.
Do you recall what you were trying to do when you noticed this happening?

@davelens i don't recall specifically, no, but after flip flopping to v9 back to v10 i'm no longer able to reproduce so i'd say it's safe to disregard. if it pops again i'll keep ya posted but seems it might have been with the install itself.

I am having a very similar looking issue. It occurs when pressing the Party Resources button (nothing else happens for me). I have tried uninstalling and reinstalling the module but it still occurs. I have upgraded from v9 to v10 but never used the module while on v9.

@zoranac Hrm. I'm thinking it depends what kind of values are stored in game.settings. whether you get validation errors or not. v10 came with DataModel changes that I think could cause this (the error seems to suggest it). 😕
I'll have to do some digging around. Problem is I'll only be able to look at it coming sunday at the earliest.

@davelens FWIW, I am getting exactly the same error as @zoranac when pressing the party resources button. Thanks for taking a look!

@zoranac @XxSTOZZYxX @iotech-fvtt So I was able to take a quick look and made some adjustments. I think this is fixed in the 1.3.1 release I just made. Foundry 10 now requires a proper default value for all settings, which the module lacked (because things were less strict before). If you could check and verify, that'd be great.
If your dashboard opens it might show RENAME ME as a resource's name and/or one or more resources might have had their min/max values set to -100 and 100 respectively. These were the values I believe to have been bugged.

@davelens works! Thank you so much! Now my players have to manage water on their trek across Chult in ToA. Muahahaha
I apologize if I came off as demanding a fix NOW, that was not my intention. I'm a mod author too, so I get how it can be. Thanks again!

I apologize if I came off as demanding a fix NOW, that was not my intention

No worries, I appreciate people reporting this. Sounds like your players could use an alchemy jug!
I'll keep this issue open for a few days longer.

@davelens This has fixed it for me as well, thanks!

Alright, looks like no one's receiving this issue anymore. Thanks for the reports! Closing issue.


 tags used instead of

The (legacy?) <property> tags were used instead of <attribute> for schemaAttributeDefinitions: https://github.com/hed-standard/hed-schemas/blob/bd30aa1035baa6770913880a1b9d2c5dd5c5735e/standard_schema/hedxml/HED8.2.0.xml#L7040
The schema viewer thus unable to parse these fields to display.

Is this not correct?  I have no issue changing the converter if told to, but it's been like this a while.
The viewer can treat them the same as attributes in most senses, that's what the hed-python code does.
https://hed-specification.readthedocs.io/en/develop/03_HED_formats.html#xml-schema-format

I see, sorry for the misunderstanding. I updated the schema browser accordingly. It should display the properties now.


Add New Organization

Hi,
I created my spec.yaml file and added an extra org, peer and orderer:
fabric:
  cas:
  - "ca1.org0.example.com"
  - "ca1.org1.example.com"
  - "ca1.org2.example.com"
  - "ca1.org3.example.com"
  peers:
  - "peer1.org0.example.com"
  - "peer2.org0.example.com"
  - "peer1.org1.example.com"
  - "peer2.org1.example.com"
  - "peer1.org2.example.com"
  - "peer2.org2.example.com"
  - "peer1.org3.example.com"
  - "peer2.org3.example.com"
  orderers:
  - "orderer1.example.com"
  - "orderer2.example.com"
  - "orderer3.example.com"
  - "orderer4.example.com"
  settings:
    ca:
      FABRIC_LOGGING_SPEC: DEBUG
    peer:
      FABRIC_LOGGING_SPEC: DEBUG
    orderer:
      FABRIC_LOGGING_SPEC: DEBUG
  ### use go proxy when default go proxy is restricted in some of the regions.
  ### the default goproxy
  # goproxy: "https://proxy.golang.org,direct"
  ### the goproxy in China area
  # goproxy: "https://goproxy.cn,direct"
  ### set the endpoint address to override the automatically detected IP address
  ### could be a public IP address or a dns name
  # endpoint_address: <IP_ADDRESS>
  ### set the docker network name to override the automatically generated name.
  netname: "mysite"
  ### set the extra options for docker run command
  # container_options: "--restart=always --log-opt max-size=10m --log-opt max-file=3"

Now, I would like to add a new Organization.  I read the Doc from: https://github.com/hyperledger-labs/minifabric/blob/main/docs/AddNewOrganization.md
It is assuming that I already have either a JoinRequest json or al already generated json with the new Org data.  Suppose I do not have either of those and would like to add a new Organization, after my first launch, how do I generate the JoinRequest file with the new Org info?

you were asking a question and help, you should not create an issue. As the doc said, the joinrequest file will be created for you if you set things up by using minifabric. If your new org is not set up by using minifabric, then you have to manually create this yaml file. Examples of these files can be found in vars directory when you create your first network using minifabric. Please close this issue and ask questions in minifabric channel. Thanks.


AzureCdn webpart has connection type issue => certificate problem??

[SPLoaderError.loadComponentError]:
***Failed to load component "573a6871-ec95-4df6-9a6d-ff04a72b27fa" (AzureCdnWebPart).
Original error: ***Failed to load URL 'https://darkmatter.azureedge.net/azurehosted-webpart/azurehosted-webpart-azurecdnwebpartstrings_en-us_536e65149b0acf4d52c0043073b9fc59.js' for resource 'AzureCdnWebPartStrings' in component '573a6871-ec95-4df6-9a6d-ff04a72b27fa' (AzureCdnWebPart). There was a network problem.
This may be a problem with a HTTPS certificate. Make sure you have the right certificate.
***INNERERROR:
***Failed to load URL 'https://darkmatter.azureedge.net/azurehosted-webpart/azurehosted-webpart-azurecdnwebpartstrings_en-us_536e65149b0acf4d52c0043073b9fc59.js' for resource 'AzureCdnWebPartStrings' in component '573a6871-ec95-4df6-9a6d-ff04a72b27fa' (AzureCdnWebPart). There was a network problem.
This may be a problem with a HTTPS certificate. Make sure you have the right certificate.
***CALLSTACK:
Error
at t (https://spoprod-a.akamaihd.net/files/sp-client-prod_2018-08-27.005/sp-pages-assembly_en-us_17e63878d420c1c6f86f59035e36bcf6.js:729:15844)
at t (https://spoprod-a.akamaihd.net/files/sp-client-prod_2018-08-27.005/sp-pages-assembly_en-us_17e63878d420c1c6f86f59035e36bcf6.js:1589:21631)
at e.buildErrorWithVerboseLog (https://spoprod-a.akamaihd.net/files/sp-client-prod_2018-08-27.005/sp-pages-assembly_en-us_17e63878d420c1c6f86f59035e36bcf6.js:1589:15588)
at e.buildLoadComponentError (https://spoprod-a.akamaihd.net/files/sp-client-prod_2018-08-27.005/sp-pages-assembly_en-us_17e63878d420c1c6f86f59035e36bcf6.js:1589:11613)
at Anonymous function (https://spoprod-a.akamaihd.net/files/sp-client-prod_2018-08-27.005/sp-pages-assembly_en-us_17e63878d420c1c6f86f59035e36bcf6.js:1589:69915)

I know the assets have been deployed to Azure, because I tested the URL:
https://darkmattr.blob.core.windows.net/azurehosted-webpart/573a6871-ec95-4df6-9a6d-ff04a72b27fa.json
and a JSON file was there.
There was the "The build failed because a task wrote output to stderr." on gulp bundle --ship, but I have read comments that this isn't necessarily a show stopper.
New to this kind of development, any help would be welcome.

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

ID: 70e46a7b-157b-0974-fced-df23d1536bb4
Version Independent ID: 14b1a252-149f-356c-b19b-ffd312615c1c
Content: Deploy your SharePoint client-side web part to Azure CDN
Content Source: docs/spfx/web-parts/get-started/deploy-web-part-to-cdn.md
Product: sharepoint
GitHub Login: @spdevdocs
Microsoft Alias: spdevdocs

We are working on setting the test environment, will sync up to you while we have any update

We have the same issue. It works fine with Chrome and Edge, but breaks in IE11.

I just noted that i actually works in on customer tenant but not in another for IE.
I checked the versions on the tenants and they differ.
Working tenant: vti_extenderversion:SR|<IP_ADDRESS>03
Broken tenant: vti_extenderversion:SR|<IP_ADDRESS>26
We are using azure websites as our CDN.

@DevelopMR - Are you still having a problem? I'm working to follow up on old issues.
If so, can you provide some additional context like SPFx version, SharePoint envrionment, etc?


Return all sensor states as isoformat()'ed strings

This resolves issue #446, which had Safari displaying "Invalid Date"
instead of a proper countdown. The strings were being rendered using
Python's default datetime renderer, which did not put a "T" in between
the day and the hour, as required by ISO-8601 (and Safari's Date()
parser, but not Chrome's)

Thanks! Can you please rebase it on #442 so I don't have to do a conflict and target dev?

No, I can't, because you did already :-)

Actually can you do a pull --rebase on dev? I merged in my other changes.


Alter project to meet the latest standards used by the Github repo.

Correct SonarQube issue.
Upgrade other files to latest repository standards.
Test the SonarQube issues before publishing new library.

Wrong user submitted the changes.


make fails with svd2rust version 0.18.0

svd2rust recently released version 0.18.0 which contains some breaking changes. This is the version downloaded and installed when running cargo install svd2rust.
When running make for this crate using this version I am hit with this error:
python3 scripts/makecrates.py devices/ -y --families stm32f0 stm32f1 stm32f2 stm32f3 stm32f4 stm32f7 stm32h7 stm32l0 stm32l1 stm32l4 stm32l5 stm32g0 stm32g4 stm32mp1 stm32wl stm32wb
Going to create/update the following directories:
stm32f0/, stm32f1/, stm32f2/, stm32f3/, stm32f4/, stm32f7/, stm32g0/, stm32g4/, stm32h7/, stm32l0/, stm32l1/, stm32l4/, stm32l5/, stm32mp1/, stm32wb/, stm32wl/
mkdir -p stm32f0/src/stm32f0x8
cd stm32f0/src/stm32f0x8; svd2rust -g -i ../../../svd/stm32f0x8.svd.patched
[ERROR svd2rust] In device `STM32F0x8`

    Caused by:
        0: In peripheral `RCC`
        1: In register `CFGR`
        2: Parsing field #8
        3: In field `MCO`
        4: Value 8 out of range 0..8
Makefile:81: recipe for target 'stm32f0/src/stm32f0x8/mod.rs' failed

Reinstalling version 0.17.0 of svd2rust and rerunning make works as expected.

Thanks for reporting! As you mentioned, this isn't a surprise due to a number of changes in svd2rust; stm32-rs is really tied to one version of svd2rust at a time and we haven't updated yet. There's some open issues and PRs (#539, #540, #544, #546) that starts to solve the problems, so hopefully fixed fairly soon. I'll leave this issue open until it's resolved though to help anyone else running into it.

I also had problems and found out my svd2rust version is 0.19.0. Its logical that it also fails but I still wanted to document it here.

$ make svd2rust
python3 scripts/makecrates.py devices/ -y --families stm32f0 stm32f1 stm32f2 stm32f3 stm32f4 stm32f7 stm32h7 stm32l0 stm32l1 stm32l4 stm32l5 stm32g0 stm32g4 stm32mp1 stm32wl stm32wb
Going to create/update the following directories:
stm32f0/, stm32f1/, stm32f2/, stm32f3/, stm32f4/, stm32f7/, stm32g0/, stm32g4/, stm32l0/, stm32l1/, stm32l4/, stm32l5/, stm32mp1/, stm32wb/, stm32wl/, stm32h7/
mkdir -p stm32f0/src/stm32f0x0
cd stm32f0/src/stm32f0x0; svd2rust -g -i ../../../svd/stm32f0x0.svd.patched
[ERROR svd2rust] In device `STM32F0x0`

    Caused by:
        0: In peripheral `RCC`
        1: In register `CFGR`
        2: Parsing field #8
        3: In field `MCO`
        4: Value 8 out of range 0..8
make: *** [Makefile:82: stm32f0/src/stm32f0x0/mod.rs] Error 1

svd2rust --help
svd2rust 0.19.0 ( )
Generate a Rust API from SVD files
...


Shorten Title

The Long title includes the short description of the Service. This is not common for the other services and also breaks the list in https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_actions-resources-contextkeys.html.
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

When you merge this pull request please also merge #84 to fix the Link.

The  list of actions, resources, and conditions that we publish in the IAM user guide is automated based on content from each service. Thanks for letting us know that this service includes information that is not known to IAM. I will forward this information to the service's engineering team so that they can add the missing information.


Pull Requests can be listed without having the corresponding permission

Gitea version (or commit ref): 1.4.3 (docker)
Git version: 2.15.2
Operating system: Alpine 3.7 (docker)
Database (use [x]):

[ ] PostgreSQL
[X] MySQL
[ ] MSSQL
[ ] SQLite

Can you reproduce the bug at https://try.gitea.io:

[ ] Yes (provide example URL)
[X] No (try is down)
[ ] Not relevant

Log gist:

Description
I created an "extern" team on an organization with read-only access to code
only, and assigned a single repository to it. (see the attached screenshot)
When going to /pulls with an account assigned to this extern team (and this
team only) I can list all pull requests, including the title, author, date
number of comments and open/closed status.
When trying to access the details of a single PR I get the expected 404.
Being able to list the pull requests when I specifically disabled the right to
access them is an information leak and a security issue.
Screenshots

This should be fixed if exist by #5314


Empty schemes array is being rendered, even though protocol is defined in @ApiOperation

I was under the impression that one could set a value for protocols in @ApiOperation to populate a value for the schemes key in the Swagger 2.0 output, but this appears to be not working.
This annotation ...
@RestController
@RequestMapping("/bookstore")
@Api(
    value = "this is the api value string in class level annotation",
    description = "API for book store")
public class BookStoreController {
...
    @RequestMapping(
        value = "/books",
        method = RequestMethod.POST,
        consumes = MediaType.APPLICATION_JSON_VALUE,
        produces = MediaType.APPLICATION_JSON_VALUE)
    @ApiOperation(
        value = "Create a book",
        notes = "Creates a book so that it can be managed by this api.",
        response = Book.class,
        protocols = "http"
    )
    public Book createBook(
        @ApiParam(value = "Book object", required = true) @RequestBody @Valid Book book) {
        return bookService.createBook(book);
    }

... renders this schema:
{
  ...
  "paths": {
    "/books": {
      "post": {
        "tags": [
          "this-is-the-api-value-string-in-class-level-annotation"
        ],
        "summary": "Creates a book",
        "description": "Creates a book so that it can be managed by this api.",
        "schemes": [],
        "consumes": [
          "application/json"
        ],
        "produces": [
          "application/json"
        ],
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "description": "Book object",
            "required": true,
            "schema": {
              "$ref": "#/definitions/Book"
            }
          }
        ],
        "responses": {
          ...
        }
      }
    }
  }
  ...
}

Expected: ... "schemes": ["http"] ...

true dat! thanks for catching the miss

However, its unlikely that a resource operation would have something thats different that the globally specified protocols. I've marked this as a bug to fix in the interest of completeness

Also - when setting a protocols value for the class-level @Api annotation, the value does not cascade into the methods of that class.

I should also mention that setting the protocols in your Docket does indeed render a value for schemes at the ApiListing level.
This docket ...
    ...
    public Docket swaggerSpringMvcPlugin() {
        return new Docket(DocumentationType.SWAGGER_2)
            .protocols(Sets.newHashSet("http"))
            ....

... renders this spec:
{
    "swagger": "2.0",
    "info": {
        ...
    },
    "host": "localhost:8080",
    "basePath": "/bookstore",
    "tags": [
        ...
    ],
    "schemes": [
        "http"
    ]
    ...
}

Like I said earlier, all this is really very theoretical. You're not going to find operations available @ different protocols than the controller, different than the ones supported by the service itself. More importantly these aren't in place because swagger 1.2 never supported it. Since most of the 2.0 work is about preserving the 1.2 contracts, we haven't had a chance to revisit some of these misses. Thanks for catching this! :metal:
We're kind of getting ready to release 2.0 so we may or may not pull this in. /c @adrianbk

@dilipkrish Yes, I agree that a diversity of protocols at varying levels are uncommon in an API.
However, when schemes is defined for a path, even when defined as [], some consumers of the Swagger spec will interpret this as an over-ride of the top-level schemes value. This is happening currently with swagger-editor, and is actually how I discovered this issue, by copying springfox output and pasting it into the JSON importer of swagger-editor. Because an empty schemes array appears to over-ride the default top-level schemes value in swagger-editor, the editor tries to hit undefined://api.example.com/mybasepath.
Swagger UI, on the other hand, appears to make the interpretation that an empty schemes array is not an override.

From the "schemes" row of https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#operation-object

The value overrides the Swagger Object schemes definition.

So, if you have "schemes":["https"] defined at the top level and "schemes":[] defined at the operation level, if I am interpreting the Swagger 2.0 spec correctly, [] will override ["https"].

You're right it will and that may be swagger-ui doing a best effort at working with the service description.

Fix proposal:
Perhaps we should not render the schemes key at all for a given api operation unless the @ApiOperation explicitly defines a value for protocols.

@who you want help us out with a PR? We're stretched pretty thin

@dilipkrish Will do.  Glad to help.

Thanks! Just thinking through it I believe you'll need to create an OperationSchemesReader in springfox-swagger-common that reads an @ApiOperation#protocols attribute. Not sure what it would take to read @Api annotation. That might be harder!

@dilipkrish @who It's a bug for sure and we should try fix it before releasing. @who I agree with your fix proposal, generally we take the same approach with all annotation customisations: The swagger annotation values, as supplied by the user, overrules what's been inferred by Springfox.
@who do you have some bandwidth to work on this?

@who I was just looking at this and I've been unable to reproduce this bug. Looks like its because the object mapper thats being used isnt the same thats been configured. Are you customizing your ObjectMapper by any chance?
I added the following code to the feature demonstration service
  @RequestMapping
  @ApiOperation(value = "all", protocols = "http" /*<-- this */)
  public HttpEntity<String> all() {
    throw new UnsupportedOperationException();
  }

I was expecting to see the schemes empty list show up here and it sure doesn't.
Do you have a repo that demonstrates this issue? or could you perhaps modify the tests on this repo to break the test. AFAIK the operation has never had support for schemes so its odd that you'd see an empty list.

I vote that this is moved to 2.1 if we arent able to re-create it.

:+1: for 2.1 if it's not reproducible.

@dilipkrish, you are correct! The issue seems to lie in one of my ObjectMapper customizations:
objectMapper.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);

When I remove this, I no longer see the empty "schemes":[] being rendered in my Swagger 2.0 spec.

yaaay!! close?

Yay indeed! Now I just have to figure out to make the ObjectMapper customization work in harmony with Springfox.  Closing.

@dilipkrish See edit of https://github.com/springfox/springfox/issues/701#issuecomment-95376903
Turns out my Hibernate4Module was causing all empty arrays to be rendered in the Swagger 2.0 spec, so even the consumes, produces, and protocols arrays were all rendering as [].
This is really unfortunate, as my API really needs to display nulls and empty arrays.

@who, @dilipkrish and I had just being discussing this. I think we will need to isolate the object mappers. There should not be any side effects caused by user customisations to the applications primary ObjectMapper or ObjectMappers used by other libraries,

@adrianbk :+1: That would be a very welcome change.  Springfox ObjectMappers should work inside their own isolated vaccum.

@who would you mind forking this repo and replicating this issue using the swagger-contract-tests module?  To me isolating the object mappers feels like a considerable change and veering off the beaten path. So I'd like to understand what the problem is before we make changes to how things work.

@dilipkrish I'll have a go, sure.

@who I've add a few tests and I've not been able to break the swagger specific mixin serialization rules. These are ofcourse very simplistic tests that are the bare minimum needed to demonstrate the issue. Feel free to add your own tests as well, or whatever customizations you have and see if it breaks the serialization.

@dilipkrish @who I've created a failing test which reproduces the issue  https://github.com/springfox/springfox/commit/9bdbf62b7f58154964d29c9083028f7942c36f74
I'm of the opinion we should avoid using ObjectMappers which have been user or library configured to  serialize Swagger JSON.
I'm going to have a go at fixing this - it will involve rewriting the controllers that serve out the swagger JSON to use an ObjectMapper instance that is dedicated to springfox and is not registered with Spring's MappingJackson2HttpMessageConverter

@who can you verify with the snapshot produced by this build:https://circleci.com/gh/springfox/springfox/1006

@dilipkrish @adrianbk Brilliant!
I just pulled the latest code from https://github.com/springfox/springfox/commit/28db032f866a4a65f58479c172d7e22df47913ff , built and installed to my local maven, and confirmed I was indeed able to have ObjectMapper customizations and settings in place while no longer seeing empty values rendered by Springfox.  Nice work!
This also fixes some of the other issues I was having with Springfox - namely I had to keep re-defining my produces and consumes annotation for every RequestMapping, because the ObjectMapper collision was causing Springfox to render empty arrays for them too.
If it proves to be stable, which appears to be the case so far, your change here fixed a whole suite of issues and prevented many future issues from being reported.  Kudos - you guys do excellent work.


fix flakes in Cassandra Package

There was a CI failure today where Cassandra Package didn't have 3 nodes come up in time
https://app.circleci.com/pipelines/github/kurtosis-tech/awesome-kurtosis/536/workflows/de2fddd2-3725-4575-9ed5-36fcd7175b84/jobs/1843
have seen failures where the sql package exec doesn't run

I ran a 1000 iterations of this package locally and couldn't replicate. Can take this up again if there's another failure.


chore: switch to upstream ci-test Cosmic F41 image

Thank you for contributing to the Universal Blue project!
Please read the Contributor's Guide before submitting a pull request.

Turns out they have switched naming format for all images except Silverblue and Kinoite.
Images are now https://quay.io/organization/fedora-ostree-desktops/<desktop>-atomic.
Need to add some logic here.


Add Better Call Saul clips

am not crazy! I know he swapped those numbers! I knew it was 1216. One after Magna Carta. As if I could ever make such a mistake. Never. Never! I just – I just couldn't prove it.  You think this is something? You think this is bad? This? This chicanery? He's done worse. That billboard! Are you telling me that a man just happens to fall like that? No! He orchestrated it! Jimmy! He defecated through a sunroof! And I saved him! And I shouldn't have. I took him into my own firm! What was I thinking? He'll never change. He'll never change! Ever since he was 9, always the same! Couldn't keep his hands out of the cash drawer! But not our Jimmy! Couldn't be precious Jimmy! Stealing them blind! And he gets to be a lawyer!?  I should've stopped him when I had the chance! And you – you have to stop him! You-
https://user-images.githubusercontent.com/95433744/235820957-07ec9604-25dc-4610-9964-85ded6fcc4b3.mp4
Some of the compilations might contain clips from Breaking Bad. There's a ton of great clips (like the Chicanery speech) that are only around 4-5 minutes long, if we could add a listener on the ended event we could switch to a new video and be able to use shorter compilations || single clips.

Thanks for the contribution :heart:
I was thinking about implementing rolling videos so that shorter videos can be used :+1:
I will release a new version with this PR some later time today


Corrects product terminology

This article referenced "Azure Pipelines" as a source control repository in a couple places. Corrected to read "Azure Repos" instead

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


Cannot connect to Power BI dataset

I am using v5.0.5 on W10. I have

enabled XML read/write on the Premium P1 capacity
enabled in pbd the enhanced metatdata option
published a dataset to a workspace in premium capacitiy
copied the xmla url from the service
When I attempt to connect, I can authenticate, I can select in the dropdown list box the target dataset, but then I get this error: an internal error has occured
Any idea what I could do to solve this ?

Hi, I believe this is the same issue as below. This will require a new version of the AS client libraries which will take a few weeks. In the meantime, the workaround (removal of query groups) is discussed in the item below. Since so many people are hitting this, will likely put a more informative error message ...
https://github.com/microsoft/Analysis-Services/issues/47

I upgraded from v5.0.2 to v5.0.3 at it seems to have solved the issue. I can now use this great tool. Thks very much.
However, after pasting the dataset url and going through the authentication process, I still get an error 'cannot connect to the database'. But this little trick does the job: I click the Compare button, and explicitely re-select the dataset in the dataset dropdown listbox. It's like the 'initial catalog' parameter of the connection string that I had pasted into the workspace text box had not been picked up correctly.

Thank you for the update! I'll keep an eye on the need to select the db from the dropdown. So far, I've not been able to repro (it allowed the names previously recorded without connecting to the service to get the db list).


CodeFactor

Set up code factor community workflows.
https://github.com/marketplace/codefactor/plan/MLP_kgDNG7Y#pricing-and-setup

Done


Update module.xml

Description added.
To update the description of your module in the public register ZPM, merge the pull request and update the release in Open Exchange please.
https://openexchange.intersystems.com/markdown?url=assets%2Fdoc%2Freleases.md
Thanks.  Publish to ZPM

Thanks Sergey.
Regards,
Michael
Von: Sergey Mikhaylenko @.>
Gesendet: Donnerstag, 15. Juli 2021 18:34
An: mbraamOB/JSON2Persistent @.>
Cc: Subscribed @.***>
Betreff: [mbraamOB/JSON2Persistent] Update module.xml (#2)
Description added.
To update the description of your module in the public register ZPM, merge the pull request and update the release in Open Exchange please.
https://openexchange.intersystems.com/markdown?url=assets%2Fdoc%2Freleases.md
Thanks. Publish to ZPM

You can view, comment on, or merge this pull request online at:
https://github.com/mbraamOB/JSON2Persistent/pull/2
Commit Summary

Update module.xml

File Changes

M module.xml https://github.com/mbraamOB/JSON2Persistent/pull/2/files#diff-285eb0d9d47d3d3533c044af4f489672815c5914e8e796c6755aa286ade2f9e0  (3)

Patch Links:

https://github.com/mbraamOB/JSON2Persistent/pull/2.patch
https://github.com/mbraamOB/JSON2Persistent/pull/2.diff

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/mbraamOB/JSON2Persistent/pull/2 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AJJNTPHMQBZZQUY5DZ5EKFTTX4EXHANCNFSM5AN46JMA .  https://github.com/notifications/beacon/AJJNTPFFMJWT7IHLNDEDI7LTX4EXHA5CNFSM5AN46JMKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4OC4F74Q.gif

Publish to ZPM please

Should be done now
Von: Sergey Mikhaylenko @.>
Gesendet: Freitag, 16. Juli 2021 08:52
An: mbraamOB/JSON2Persistent @.>
Cc: mbraamOB @.>; State change @.>
Betreff: Re: [mbraamOB/JSON2Persistent] Update module.xml (#2)
Publish to ZPM please
https://user-images.githubusercontent.com/18187317/125904753-b8013513-d48c-42f7-b12d-58c84efa825b.png
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub https://github.com/mbraamOB/JSON2Persistent/pull/2#issuecomment-881220433 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AJJNTPEBFI3MFRF5NHJCBV3TX7JJTANCNFSM5AN46JMA .  https://github.com/notifications/beacon/AJJNTPB4QUD3LPQXG36CNWDTX7JJTA5CNFSM5AN46JMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGSDFWUI.gif


Consistency Pass?

Any objections to making a pass through the _includes/JB/* scripts to make them self-consistent, based on issue #42?

use include.param rather than state variables

logic would replace missing include parameter values with previously-expected state variables so that existing implementations aren't affected

include detailed usage notes, with examples
formatted for readability
wrap logic in {% capture jbcache %}...{% endcapture %}{% assign jbcache=nil %} to avoid polluting HTML with tons of whitespace.

After giving it a little more thought, I believe this task should be pushed to the next release (v 0.5.0).
That's when I'll be cleaning up the development branch. If I do the cleanup pass before, it'll likely make merging development changes much harder.

This needs to happen later rather than sooner. Refactoring early will introduce more merge conflicts. Bumping to next release to keep this release clean.


Megapass on Chapter 13

Hi Chris, sorry that this PR is late (I'm still getting the hang of fatherhood). This is mostly a language pass over Chapter 13. Once something like this is merged I'm ready to release chapter 13. Here are the major changes:

Fix an issue wherein we used parent pointers earlier in the chapter than we introduced them
Change the CompositedLayer API so that a composited layer always has at least one element (simplifies the code)
Add extra text clarifying why we need identities on display items
Update the overlap testing text to no longer refer to paint chunks

Also, a quick question:

Do we need to make transform animatable? I reorganized that section a bit and realized that all of the animation code is now in one chunk at the end. I guess if it's not animatable, the reader might ask why we don't just set its needs_compositing to False (that wouldn't work, since the transform might contain a composited effect, but the reader might miss that) but we could clarify that. And implementing animated transforms sounds like a great exercise.

would be fine

On further reflection, I remembered additional reasons we should keep transform animations in the book:

It's weird to have a chapter for animations where we get to the end and there is no animation that moves anything around
Not too much work

However, I do think we can leave composited transform animations to an exercise. I am sending you a PR now for that.


Questions about using baker

@callmephilip
so after clone the repo to app_name, whats the best way of keeping up to date with baker?
aswell as remove the git history from baker in the app folder?
any suggestions would be awesome

@cyprusglobe : there are still a bunch of massive chunks of the codebase moving around. we'll try to get back to documenting things (which @markdowney has started here).
i am working on a big reorg which isolates different chunks in a cleaner way. in the future, you should be able to get the latest baker by adding the repo as one of the origins and then just pulling from there and let it update whatever is in the /baker directory

Thanks for the clarification of this, I look forward to the changes in the future and also want to thank you for the awesome work you guys have been doing, keep up the good work!
Thanks, @callmephilip, @markdowney

@callmephilip is there any plan in turning this into an npm module?
that way we don't have to have the baker files mixed with the repo?

is there a reason why were not using yeoman to generate everything?
@callmephilip @markdowney

@cyprusglobe
finally managed to put together the first version of the documentation https://callmephilip.gitbooks.io/baker-docs/content. i hope you will find this useful and maybe it can answer some of your questions. also, your feedback will be greatly appreciated


Car Thumb images missing

@mahdibenromdhane
Just imported the prod DB and ran the migration tasks but still got empty thumbnails.

Could you check?

@mahdibenromdhane
Just imported the prod DB and ran the migration tasks but still got empty thumbnails.

Could you check?

We need to trigger the sync car catalogs manually so we can apply this PR and run the migration task.


Ignore private workspace packages

When iterating over workspace packages, packages that are private should be excluded, so that we do not attempt to include their changelog updates in the release notes.

I guess we already do this. The idiomatic way to do this is to use --no-private, but the check we make is fine, too.


Add setting to control Acrylic "Blur" in addition to opacity

Pretty much the title.
Right now we're only using the default blur amount.

Opacity slider, with a toggle for turning Acrylic on or off, would also work

Yanking the triage tag. This is a known amount of work that we just need to do.

This might be impossible...
When I filed this issue I mistakenly thought there was a "Blur" property on the AcrylicBrush, but that doesn't look like it's exposed at all. See its page on MSDN.

In this vein, I would like to see acrylic available for when the window is in the foreground and when it is in the background.  Specifically, I would like the window to be at 90% opacity when the window has focus, and 70% opacity when it does not.

For clarification, would this allow transparency of the window without the blurring (i.e. act like cmd and PS)? It would be great to be able to read text behind the window.

When I filed this issue I mistakenly thought there was a "Blur" property on the AcrylicBrush, but that doesn't look like it's exposed at all. See its page on MSDN.

Isn’t that controlled by TintOpacity? https://docs.microsoft.com/en-us/windows/uwp/design/style/acrylic#custom-acrylic-brush
I guess this is what most people (or, at least, me) mean when talking about changing the blur level.

I have found (at least one) way to accomplish this effect, but not via UWP. The really old, Vista-era API DwmEnableBlurBehindWindow, if called on Windows 10, changes the window background to a semi-transparent black, without a blur. How ironic given the function’s name, huh? AFAICT, this doesn’t present any security issues, as the app cannot read the contents of the background shown, as it is processed entirely within dwm.exe.
That being said, wouldn’t we be able to use SetLayeredWindowAttributes on the root HWND, just as conhostV2 does? As I understand the docs, this should also affect the child windows. If it does so in a way that would be unsatisfactory, we can then use that same function to set the alpha of the child HWNDs to 255 (opaque), then clear the child windows with a transparent color to erase the default background fill. After that we should be able to draw whatever we want on top of the transparent background window. This may take a bit of refactoring of the Cascadia architecture, but I see no reason why it wouldn’t be able to be done. Hope this helps!

@zadjii-msft  @DHowett-MSFT We're not limited by the published API as MSFT devs.

For the record, this is the final must-have feature for me and window transparency isn't really usable without it imo. At least background image transparency works though, but it's much nicer to be able to see actual apps underneath and / or your real desktop. Terminus, Alacritty and Conemu all manage this (albeit with varying degrees of success).

@zadjii-msft @DHowett-MSFT We're not limited by the published API as MSFT devs.

I'll note that https://github.com/goreliu/wsl-terminal handles transparency just fine (and I believe the way the majority of the people here want), so investigating that codebase is probably a reasonable place to start.

I want to read what's behind the window, usually code samples on a web page. In that vein, would it be better to have a hotkey that toggles between blur and non-blur transparency? Aka, turns acrylic off but maintains transparency. It could be push-and-hold or toggle, would be fun to try both.

This comment (https://github.com/microsoft/terminal/issues/1375#issuecomment-569483109) from @JasonStein might be relevant to this thread:

Hey guys, I am the author of Notepads, this is how I make background acrylic effect "always on" for both title bar and window body of Notepads App: JasonStein/Notepads:src/Notepads/Services/ThemeSettingsService.cs@12940ad#L253
I created the Acrylic brush myself using "AcrylicBackgroundSource.HostBackdrop" with help of UICompositionAnimations library to make my life easier (ref: Sergio0694/UICompositionAnimations).
It is basically creating the brush from scratch using composition APIs (AcrylicBackgroundSource.HostBackdrop + Noise texture).

AcrylicBrush API is not the only choice. I'd really like to have an option for simply non-blur opacity, apart from acrylic options. It's strange to drop useful feature of cmd when making this Windows Terminal as cmd-ng.

Transparency with no blur at all if that can be done without acrylic even would be great so I don't have to alt-tab mid command to double-check something.
On mac and Linux I use transparent terminal all the time because I am often reading a document or some source code in the window underneath as I type its extremely handy.
Controlling blur would be ideal tho. (on the mac I use 3% blur just to make terminal text stand out without making text behind it hard to read.)

For clarification, would this allow transparency of the window without the blurring (i.e. act like cmd and PS)? It would be great to be able to read text behind the window.

Exactly! In fact, I won't even consider switching to Windows Terminal (as much as I love it) until this is implemented. I keep checking back, but disappointed to see that it still hasn't been done.
This feature is especially useful for those with a single monitor or limited screen real estate. I almost always have some web page or other text behind my terminal that I want to be able to read while in terminal. I adjust my transparency / opacity appropriately to make this a comfortable experience so I can still read my terminal well.
Please implement this ASAP. I'm looking forward to using WT and have been following it since the first Alpha release.

As a bonus, there should also be a boolean to toggle whether the transparency / opacity should also apply to the text in the Terminal. This would ensure that the text in the terminal remains vibrant and visible to make it more distinguishable from any other text in windows behind the terminal.

If the blur is to be referred to as Acrylic, I don't think it should deviate from the visual construction of other Acrylic surfaces beyond the opacity (which is variable with Acrylic Brushes)
If you start pulling apart the various layers like the Noise, Luminosity, or Blur amounts - it is no longer "Acrylic" but a composition layer set of effects.

I keep checking back

good news! You'll get an e-mail when we close this bug :smile: for better or for worse

I have to echo what everyone else is saying; I currently use the PowerShell Core msi install as my primary shell. As a very large component of my job, I am in this console half- or full-screen on an ultra-wide all day and need to be able to see things clearly underneath.
I love the idea and appreciate the effort Microsoft is putting into some of the admin utilities on Windows but, at this point, this new Terminal is simply a novelty that can't meaningful replace the original console. Please see the screenshot below; both windows are laid over the same spot on this page. One is great and the other is unusable.

this new Terminal is simply a novelty that can't meaningful replace the original console

I appreciate your kind criticism of the project we've been working on for the past year and a half, but could you possibly not?

I empathize with how you feel; it isn't a fun spot, but also place yourself into the perspective of the user base (of largely paying customers) that has been waiting for this for a year and a half. I wanted to echo the other thoughts that seem to be pervading the community regarding this product and I wanted to at least provide a screenshot to be constructive since no one else had done so to this point. Without actually seeing what the issue is, it would be easy to dismiss the issue as minor or whining, but I hope you recognize that the top console in my screenshot is clearly non-functional. I hope it can be fixed.

Don't worry, everyone on the team is a daily user of the Terminal. We're all the user base just as much as our external customers are.
For the record, the Terminal was only announced last April, so y'all have only been waiting for 13 months 😉
We've been investigating this issue for a while now. We understand that this isn't a trivial graphical issue, but unfortunately, it's not a technically trivial issue to fix 😕

@zadjii-msft I understand the third part which is why I posted the screenshot to kind of illustrate what everyone is complaining about in this and other issue threads. I appreciate you guys working to build cool products with a more OS agnostic approach, I hope it keeps moving along without too much headache for you.

"Our mission is to empower every person and every organization on the planet to achieve more." -Microsoft
Unfortunately, this new Terminal kinda toes the line. It definitely comes with some amazing features, like tabs! AMAZING!!! However, as developers we have to take the good with the bad, and sometimes we don't realize that there are features missing that end up being very important to the user until after launch. 🤦🏼♂ This is free software, so I'm incredibly grateful for that and the fantastic commitment to Open Source from Microsoft in recent years (especially since Satya turned the company around). At the same time, the transparency of any terminal is a must in my book. The Acrylic effects are pretty to be sure, but not everyone is going to be OK with the blur, myself included, especially with limited screen real estate. 🥰
Keep up the great work Windows Terminal team!

I really will love if the Microsoft team add this feature, the question is, how can we ask for this feature to be included in the next release? I'm pretty sure that this can be achieved, thanks for all the work that you have achieved with this terminal so far. Yeah it´s not a technical problem, is a new requirement for the terminal.

I'd love to have this in the next release, but as I've outlined at length in https://github.com/microsoft/terminal/issues/603#issuecomment-626830075, this is a technical problem that doesn't have an easy solution, so I can't really commit on adding it in any particular release.

impressed so far with the efforts and looking forward to this configurable blur (or even just plain semi-transparency without the acrylic!) eventually being added in.. but until then will be sticking with wsltty.

Transparency is a must for a terminal window, since most power users need to see through the window often. Blur is mostly cosmetic while transparency is a actual tool.

This thread should be closed, the task is already done:
Just add this to your profiles or defaults in your settings.json
"acrylicOpacity": 0.7,
"useAcrylic": true

acrylicOpacity can be set between 0.0 - 1.0

@harounhajem that's not the same thing being discussed in this thread - the task in this thread is about controlling how much the Terminal blurs the background with acrylic enabled. I assumed that "Blur" was a property on the AcrylicBrush, when it's really not.
Honestly, this is probably a dupe of #603 at this point, but I'm leaving it open because there's at least 22 other people who are already following this thread for a resolution.

Lol @zadjii-msft he totally missed the point. And appears he removed his comment. 😅
But yes many of us are waiting for the day we can use this terminal app. 👀

Not sure if this should be a separate issue or not. I'd also really like an option to maintain opacity when Terminal is not the active window, or better yet, the option to use an alternate opacity value when inactive.

AutoHotKey function:
#^Esc::
  WinGet, TransLevel, Transparent, A
  If (TransLevel = OFF) {
    WinSet, Transparent, 180, A
  } Else {
    WinSet, Transparent, OFF, A
  }
return

This toggles the active window between full opacity and 180/255 opacity. Shortcut is Win+Ctrl+Esc.
For Windows Terminal just set "acrylicOpacity" to something between 0.7 and 0.9, depending on your background color (darker = more noticeably transparent). I use:
"background" : "#560152",
"acrylicOpacity" : 0.75,

@narfanar Thank you so much for this! I have a transparent terminal on Windows now!
This didn't work for me as is, for some reason my version of windows does not understand the OFF setting, so I modified it slightly:
; Toggle window transparency.
#^Esc::
WinGet, TransLevel, Transparent, A
If (TransLevel = 255) {
    WinSet, Transparent, 222, A
} Else {
    WinSet, Transparent, 255, A
}
return

AutoHotKey function:
OMG Thank you so much! Never even occurred to me that AHK could do this. Tweaking the acrylic setting to get the desired blur amount seems to work. Still bit more distracting than the blur you get on mac terminal but it does the job.

Can use this terminal as my main now ty @narfanar

RE:

I'll note that https://github.com/goreliu/wsl-terminal handles transparency...
... comes from the underlying https://github.com/mintty/mintty project
AND:
AutoHotKey function...

The only problem with the AHK workaround and with mintty style implementations is, it also makes text transparent.

So I find myself toggling transparency with AHK script all the time because it makes the text less readable when it's on.
Controlling acrylic blur would be the ultimate solution IMO as only the background is affected and adding a very slight blur is also ideal.
As I understand its not an easy thing to implement could we perhaps have a mintty style transparency be applied to the background only in the interim?
What's the consensus on this is there an approach that's already in the works?

RE:

I'll note that https://github.com/goreliu/wsl-terminal handles transparency...
... comes from the underlying https://github.com/mintty/mintty project
AND:
AutoHotKey function...

The only problem with the AHK workaround and with mintty style implementations is, it also makes text transparent.

So I find myself toggling transparency with AHK script all the time because it makes the text less readable when it's on.
Controlling acrylic blur would be the ultimate solution IMO as only the background is affected and adding a very slight blur is also ideal.
As I understand its not an easy thing to implement could we perhaps have a mintty style transparency be applied to the background only in the interim?
What's the consensus on this is there an approach that's already in the works?

As I outlined in https://github.com/microsoft/terminal/issues/603#issuecomment-626830075, and the rest of that thread, We're working with the WinUI team to get this added in to WinUI 3.0. I believe this is being tracked in https://github.com/microsoft/microsoft-ui-xaml/issues/1247. This is the path we'll be pursuing to get this feature added to the Terminal, because driving this solution also means driving an important dev platform feature for the entire platform, one that'll help improve other applications on Windows as well.

As I outlined in https://github.com/microsoft/terminal/issues/603#issuecomment-626830075, and the rest of that thread, We're working with the WinUI team to get this added in to WinUI 3.0. I believe this is being tracked in https://github.com/microsoft/microsoft-ui-xaml/issues/1247. This is the path we'll be pursuing to get this feature added to the Terminal, because driving this solution also means driving an important dev platform feature for the entire platform, one that'll help improve other applications on Windows as well.

@munael 🏆🏆🏆 you are my hero, I am a heavy AHK user and your solution is so brilliant, thanks so much
@DHowett this hack should be on the README at the top until this feature is implemented natively, og Acrylic should be label as highly experimental/use at your own risk in order to not scare users away; you don't want to know how many times I checked out Terminal and deinstalled it again in the past year because of the broken Acrylic, had I knew this hack earlier...
@Chiramisu said This is free software, it's not, Windows isn't free; an OS w/o devs is dead, hence an OS must-have a killer terminal app, so a good terminal should be already part of every OS in 2020; besides, one of MS' main strategies under Satya was to get devs back
Whatever, this terminal is on a good way and with this hack Windows Terminal just became my daily driver from today on haha......
Again, if you want a fool-proof, no non-sense transparency use @munael solution and install AHK before, fwiw I set the transparency to 222 instead 180:
#^Esc::
  WinGet, TransLevel, Transparent, A
  If (TransLevel = OFF) {
    WinSet, Transparent, 222, A
  } Else {
    WinSet, Transparent, OFF, A
  }
return

I completely agree with @desmap that the AHK solution has completely changed my workflow and Windows Terminal is now my go-to terminal when I'm using Windows. I added a bit to the AHK script so that I could adjust the transparency on the fly with a couple additional key combos. The approach is so handy I've found myself using for a lot of different things, not just Windows Terminal.
`
TLevel = 180
#^Esc::
WinGet, CurrentTLevel, Transparent, A
If (CurrentTLevel = OFF) {
WinSet, Transparent, %TLevel%, A
} Else {
WinSet, Transparent, OFF, A
}
return
SetTransparency:
WinGet, CurrentTLevel, Transparent, A
WinSet, Transparent, %TLevel%, A
return
#^=::
TLevel += 10
If TLevel >= 255
{
TLevel = 255
}
Gosub, SetTransparency

return
#^-::
TLevel -= 10
If TLevel <= 0
{
TLevel = 0
}
Gosub, SetTransparency

return
`

@cblake777 your script is perfect and should be a standard feature of any OS haha! Just one minor thing: Switching it on the first time, sets the transparency to 0 instead of 180; I must have something wrong but I just copy and pasted your lines.

Weird, I did have to fuss with it a little to make the markdown work, maybe something went strange, but I can't see it at the moment.  Attached is my AHK file for the script, see if that works better for you.
(GitHub doesn't support files with an AHK extension, so you'll have to change the extension if you want to run it)
WindowTransparency.ahk.txt

Just edited my comment, so all good and I found my mistake haha.

Just FYI - if you're manually changing the opacity of the entire window, things are gonna be weird: https://github.com/microsoft/terminal/issues/603#issuecomment-552470153
After thinking about this over the long weekend, there's not really a difference between this thread and #603. There might have been at the start, but they've both converged on "enable vintage-style opacity for the Terminal window". Considering this, I'm gonna close this as a dupe of #603, and just track the issue in a single thread.
To save people the effort of reading that massive thread themselves:

I experimented with this once in the past and it didn't work out as well as I had hoped: https://github.com/microsoft/terminal/issues/603#issuecomment-626830075
The current plan of record (https://github.com/microsoft/terminal/issues/603#issuecomment-644130120) involves waiting for WinUI 3, which will let us get rid of the opaque App background, letting us get vintage-style opacity easily.

Thanks everyone!
/dup #603

if you're manually changing the opacity of the entire window, things are gonna be weird

@zadjii-msft Can't follow. It depends very much on the transparency level which @cblake777's solution allows to be set granularly. In your examples in the other issue your transparency is way too low, so it looks bad. Also that you call it "vintage-style" doesn't make sense to me—this is exactly how users want transparency, no on and off on focus, no mandator blur, no random opaque backgrounds. If this is internal MS lingo then it's wrong and not reflecting user's needs.
Also multiple panes work like charm, see below.
I am a bit surprised that you downtalk such a brilliant solution, did you try exactly this solution with AHK and @cblake777's script? If not pls do, this solution is amazing, feels more polished than a macOS and doesn't have any flaw. I even use it now for Spotify and some dark browser windows, I am so happy because other than this strange Acrylic mess the new Windows Terminal is awesome, a perfect package and probably the best terminal experience not just on Windows.

downtalk such a brilliant solution

doesn't have any flaw

I cannot see a single flaw, because I cannot see the application. We need a better solution because we want just the terminal part of Terminal to be transparent.

@DHowett in your examples the transparency level is much too low, ofc it looks bad, did you read my prior comment? Did you try the granular script from @cblake777 Btw, no need to get confrontative. I am a big fan of your work.

I did -- that's actually from cblake777's script! :smile:

then try to set the TLevel higher, eg above 200

I don't disagree @DHowett that there certainly could be better solutions, but I also agree with @desmap that it looks like you need to adjust the transparency level to compensate.  That's why my AHK script has the additional key combos for CTRL+Win+- and CTRL+Win++ so that I can adjust the transparency level of each window on the fly as needed.  It's not a perfect solution, but for me it is a good solution, and it works really well right now.

how to use this script ???

@adicadi: Copy the text to your clipboard, open a text editor, paste the text, save it as a .AHK file, then open it using AutoHotkey.
If you want to make it run automatically when you login, create a shortcut to your .AHK file, cut the shortcut to your clipboard, type shell:startup in the Windows Explorer location bar, hit Enter, and paste the file there.

Everytime I open terminal I need to do Win+ctrl+ESC. Is there a way to run this automaticly?

Everytime I open terminal I need to do Win+ctrl+ESC. Is there a way to run this automaticly?

You might have to go look at AHK docs or forums it can pretty much do anything. Would probably only be one line in your script to run the set transparency function when the terminal gains focus.
Quick google search got me here hope that helps: https://autohotkey.com/board/topic/84069-running-code-on-window-focusunfocus/

So the MS bot closed this issue with no reason because it's a mindless bot, yet the issue is still ongoing as of date. I wanted to set the terminal transparent and I get a horrible blur along with the acrylic that I want to remove, I don't want the blur, I just want the window transparency while keeping the titlebar/borders opaque and no weird AHK hacks.
I disagree this issue should be closed, such a feature like this has been available in linux terminals ever since compwiz or other compositors were available almost two decades ago.
Is there any progress regarding this feature, officially from MS?

@darkguy2008 I can't go win11 just yet no time to risk my dev env breaking atm. Can you tell me, does it actually let you control the Acrylic Blur amount or is it only controlling transparency. I suspect from the linked PR only turning blur off entirely was addressed.
IF that's the case then this issue isn't technically resolved.

@darkguy2008 I can't go win11 just yet no time to risk my dev env breaking atm. Can you tell me, does it actually let you control the Acrylic Blur amount or is it only controlling transparency. I suspect from the linked PR only turning blur off entirely was addressed.
IF that's the case then this issue isn't technically resolved.

Yeah sure, the new Preview version allows you to control both things. I'm very happy now:

The only issue I see is that once you change the slider, the "Enable acrylic" toggle turns on, but you can just toggle it off once you're happy with the opacity :)

This is not working for me. The transparency works in the powershell commandline, but once I open vim, where I do not change the background color, it changes to solid black. While the autohotkey script works fine.

I did some more testing with vim and Neovim with this, and it works fine in Neovim but not in regular vim.
I have this in my ~/.vimrc:
if !has('gui_running') && match($TERM, "screen") == -1
  set termguicolors
  au ColorScheme * hi Normal ctermbg=0
endif

This enables 24 bit color and sets the background to black.
In Neovim the background is transparent, while in regular vim the background is solid black except for the region right under the statusbar.
My screenshot program is broken right now for some reason.

I completely agree with @desmap that the AHK solution has completely changed my workflow and Windows Terminal is now my go-to terminal when I'm using Windows. I added a bit to the AHK script so that I could adjust the transparency on the fly with a couple additional key combos. The approach is so handy I've found myself using for a lot of different things, not just Windows Terminal.
TLevel = 180

#^Esc::
    WinGet, CurrentTLevel, Transparent, A
    If (CurrentTLevel = OFF) {
        WinSet, Transparent, %TLevel%, A
    } Else {
        WinSet, Transparent, OFF, A
    }
return

 SetTransparency:
    WinGet, CurrentTLevel, Transparent, A
    WinSet, Transparent, %TLevel%, A
return

#^=::
    TLevel += 10
    If TLevel >= 255
    {
        TLevel = 255
    }

    Gosub, SetTransparency
return

#^-::
    TLevel -= 10
    If TLevel <= 0
    {
        TLevel = 0
    }

    Gosub, SetTransparency
return

For anyone not getting what #^Esc is, it's Win + Ctrl + Esc

What about acrylic blur amount? The default Windows acrylic blur is a bit too high so we can't really appreaciate the background elements when the acrylic is enabled, and mixing transparency with the high blur amount gives not enough satisfying results:
(Default acrylic)

(No Acrylic, Using Terminal settings bg transparency)

(No Acrylic, Using AHK transparency)

(Acrylic, Using AHK transparency)

An expected result would be like this (Tweaked Neovim):

@Komodroid nice screenshots, I would say that the acrylic is a bit too blurry, try iterm2 on a mac with a small amount of blur, it lets you focus on the foreground but still have the background be distinct and visible.

This issue shouldn't have been closed as controlling the blur amount is much more ideal than simply having transparency.
Also, that's the point of this question.
https://github.com/microsoft/terminal/issues/603 is NOT the same thing at all.
While I appreciate that WT can now be transparent with clear text, we are still working around the fact that acrylic blur is way too much and we need to turn the blur amount down.
The best so far is on macOS terminal. Having say 5% blur is perfect for keeping the terminal crisp and distinct from the still readable text behind it.

If someone looking autoscript v2 script for transparency switching, script which works for me well:
#Requires AutoHotkey v2.0
TLevel := 180
TMode := "full"
WS_EX_LAYERED := 0x80000
LWA_ALPHA := 0x2

#^Esc::ToggleTransparency()  ; Ctrl + Win + Esc
#^=::IncreaseTransparency()  ; Ctrl + Win + =
#^-::DecreaseTransparency()  ; Ctrl + Win + -

ToggleTransparency() {
    global TMode
    hwnd := WinExist("A")
    EnsureLayered(hwnd)
    if (TMode = "full") {
        TMode := 'manual'
        SetTransparency(hwnd, TLevel)
    } else {
        TMode := 'full'
        SetTransparency(hwnd, 255)
    }
}

IncreaseTransparency() {
    global TLevel
    TLevel += 10
    if (TLevel > 255)
        TLevel := 255

    SetTransparency(WinExist("A"), TLevel)
}

DecreaseTransparency() {
    global TLevel
    TLevel -= 10
    if (TLevel < 0)
        TLevel := 0

    SetTransparency(WinExist("A"), TLevel)
}

SetTransparency(hwnd, Level) {
    global TLevel
    EnsureLayered(hwnd)
    if (hwnd != 0) {
        DllCall("SetLayeredWindowAttributes", "ptr", hwnd, "uint", 0, "uchar", Level, "uint", LWA_ALPHA)
    }
}

EnsureLayered(hwnd) {
    exStyle := DllCall("GetWindowLongPtr", "ptr", hwnd, "int", -20, "UPtr")
    if ((exStyle & WS_EX_LAYERED) != WS_EX_LAYERED) {
        DllCall("SetWindowLongPtr", "ptr", hwnd, "int", -20, "UPtr", exStyle | WS_EX_LAYERED)
    }
}

That seems.... kinda like overkill, for something there are already actions for in the Terminal itself:

Or to any value in between

That seems.... kinda like overkill, for something there are already actions for in the Terminal itself.
Agree. But set background opacity using terminal actions will not make a background transparent in combination with enabled acrylic material. With autoscript you will achieve window fogging effect. Plus it works with all windows.

I turn on the acrylic and set transparency to 75%, the border will be flashing. Is this a bug?


Added a small section on type assertions.

Fixes #123.
@sandersn @BrendanShah @bowdenk7

Ping

:+1:

I think this deserves a page by itself.


Question - Bundle size

Hello, im currently investigating my bundle size using aot and prod build version. I noticed that for example using one module from ng2-bootstrap causes all modules from that library to be bundled. I would like to have in my bundle only those modules which im using. Is this expected ? Is that something ng2-bootstrap library should improve on? or should i investigate more advanced tools for tree shaking?

It's not quite that simple but you have two options, split or shake.
For tree shaking, anything that isn't commonjs will benefit from the tree shaking that's in master currently. I don't use bootstrap, first thing I would check is that what you are trying to shake out is a ES2015 module and not commonjs. If it's commonjs, you would have to take it up with them or use another component framework.
If it's ES2015 and not being properly shaken, we will have to look at your setup.

I used clean clone of latest version of this starter and just added alert module from ng2-bootstrap.
As a result whole liblary was added to bundle.

I think this is their config: ("module": "commonjs")
https://github.com/valor-software/ng2-bootstrap/blob/development/src/tsconfig.json
Anyway now I understand that is not related to any configuration in starter, Thanks so much for help! Please close.

will it "shake" correctly with the latest changes?
https://github.com/valor-software/ng2-bootstrap/commit/2d74fc39aa99a4c31ab3d3a226022c6974bb28d9

"module": "commonjs",

"module": "es2015",

It does not,
issue:
https://github.com/valor-software/ng2-bootstrap/issues/1538


Tooltips for Node Menu Items

It would be great if there were tooltips describing the commands of the different menu items of nodes.

This would be a great feature as it enhances user understanding just by hovering the cursor over an icon.


fix: [#3969] useLanguagePolicy setting turn state, instead of languagePolicy

Reverts # 3970
Fixes # 3969
Fix: commit
Description
This PR fixes an issue where the bot wasn't able to respond to messages after the Welcome message is sent.
When the AdaptiveDialog.beginDialog method is executed, the context.turnState for the second message (e.g.: help) was the same as the first message (WelcomeMessage), thus, having the activityProcessed property set to true, the bot didn't process the new Activity and ended the Dialog right away.
Specific Changes

Revert PR # 3970
Updates the LanguageGeneratorExtensions.useLanguagePolicy method to set the correct LanguagePolicy like in DotNet (link) instead of setting the turnState object with the languagePolicy.

Change: dialogManager.initialTurnState.set(TurnPath.languagePolicy, policy);

Testing
The following images show what was causing the issue, the DialogContext using the same turnState as the message sent before, and the bot working after the fix.

Promoted to MS https://github.com/microsoft/botbuilder-js/pull/3972


Revert [SPARK-19355][SPARK-25352]

What changes were proposed in this pull request?
This goes to revert sequential PRs based on some discussion and comments at https://github.com/apache/spark/pull/16677#issuecomment-422650759.
#22344
#22330
#22239
#16677
How was this patch tested?
Existing tests.

cc @cloud-fan

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/testing-k8s-prb-make-spark-distribution-unified/3279/
Test PASSed.

Test build #96320 has started for PR 22481 at commit 4532aaa.

LGTM, thanks!

Test build #96320 has finished for PR 22481 at commit 4532aaa.

This patch fails due to an unknown error code, -9.
This patch merges cleanly.
This patch adds the following public classes (experimental):
trait BaseLimitExec extends UnaryExecNode with CodegenSupport
case class LocalLimitExec(limit: Int, child: SparkPlan) extends BaseLimitExec
case class GlobalLimitExec(limit: Int, child: SparkPlan) extends BaseLimitExec

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/96320/
Test FAILed.

retest this please

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/testing-k8s-prb-make-spark-distribution-unified/3286/
Test PASSed.

Test build #96332 has started for PR 22481 at commit 4532aaa.

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/testing-k8s-prb-make-spark-distribution-unified/3288/
Test PASSed.

Test build #96332 has finished for PR 22481 at commit 4532aaa.

This patch passes all tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
trait BaseLimitExec extends UnaryExecNode with CodegenSupport
case class LocalLimitExec(limit: Int, child: SparkPlan) extends BaseLimitExec
case class GlobalLimitExec(limit: Int, child: SparkPlan) extends BaseLimitExec

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

thanks, merging to master/2.4!


the torch-demo can't compile Android studio

Hi, the torch-demo can't compile Android studio.
when i launch the command ndk-build, I have the next error in console log:
                     Android NDK: WARNING:jni/Android.mk:torchdemo: non-system libraries in linker flags: -                          lluaT -            ltorch-lua-static -lTH -lnn -ltorch -lnnx -limage -limgraph -lluaT -ltorch-lua-static -lTH -lnn -ltorch -lnnx -limage -limgraph
                 Android NDK:     This is likely to result in incorrect builds. Try using     LOCAL_STATIC_LIBRARIES
                 Android NDK:     or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
                 Android NDK:     current module
                [armeabi-v7a] Compile++ thumb: torchdemo <= torchandroid.cpp
                In file included from jni/torchandroid.cpp:1:0:
                jni/torchandroid.h:27:19: fatal error: TH/TH.h: No such file or directory
                #include "TH/TH.h"
                ^
                compilation terminated.

fixed torch-demo (now in demos) to compile with latest torch, and latest android ndk / sdk


Best Practices in TodoList project

in the index.js file there is repetitive code in  clearAll.addEventListener  callback and clearCompleteTodo.addEventListener callback
try to follow the DRY pattern to refactor it.

in the todo.js file it should be better if we refactor it using ES6 syntax.


test: add requirements workflow

Add a new workflow requirements to check consistency of poetry.lock and requirements.txt

thanks Bruno :) Similarly to the API, I removed the duplicate specification system, so that we only use poetry for docker-based projects :+1: (cf. #97)


use correct attributes of the pull request hash

pr[:base][:login] is nil. this was a typo.
Related to https://github.com/zerocracy/fbe/issues/78

@yegor256 for successful testing, we need this pr https://github.com/zerocracy/fbe/pull/79

@Suban05 new fbe was released

@yegor256 now it's ok

@Suban05 thanks!

@rultor release, tag is 0.0.49

@rultor release, tag is 0.0.49

@yegor256 OK, I will release it now. Please check the progress here

@rultor release, tag is 0.0.49

@yegor256 Done! FYI, the full log is here (took me 30min)

@Suban05 Thanks for your contribution! Here's the breakdown of your +4 points: +16 base, -16 for no code review, -4 for only 3 comments, -8 for just 6 hits-of-code, +16 to meet the minimum. Remember, code reviews and more substantial contributions can boost your points significantly. Keep them coming! Your balance is now +456. 🚀


Implement writeWithResponse in FakeStorageRpc

Is your feature request related to a problem? Please describe.
With Pull Request #135 the FakeStorageRpc class extends StorageRpcTestBase and now google-cloud-storage is a needed dependency when using the class in tests. In google-cloud-storage the implementation of BlobWriteChannel has been changed a month ago (https://github.com/googleapis/java-storage/pull/269/files#diff-8561e6a9172119adf8e882a3f5298d6bR69) so that flushBuffer now calls writeWithResponse instead of write.
writeWithResponse is neither implemented in FakeStorageRpc nor in StorageRpcTestBase, which causes my tests to crash now, which didn't happen before.
Describe the solution you'd like
Please implement the method. Since the response is a StorageObject it shouldn't cause any problems.
Describe alternatives you've considered
My workaround is now to set my dependency to google-cloud-storage fixed to 1.110.0. But this pins me on this version.

The same thing happened to me as well. Can't upgrade my cloud storage client until this issue is resolved...


Add ability to change width of a file's content list

There appears to be no way to make the histogram/content-list of an opened file wider. It would be awesome to have the "split" cursor shown when hovering over the border between the list and the content to be able to change the list's width.
(well, we also have particularly long names for the content tables)

Thanks for opening the issue @dnwerner! I have looked a bit into this and adding what you ask for should be quite easy. However, I found some behaviour that I better ask @linev about before going ahead with implementing this:

Should the div where the ROOT file hierarchy is rendered also allow an horizontal scroll when the contents overflow? The vertical overflow is handled that way already. If that's the case, should it be implemented on my side or in JSROOT's one?
When the whole window is resized, the painter is automatically resized, but if I resize the display's div only it doesn't seem to happen. Any idea why?

Concerning horizontal overflow for div element - you can configure it as you want. Either hidden or auto. I hope, JSROOT  should work both way.
JSROOT is not able to detect automatically if some internal components on HTML page are resized - only when browser window is resized. You always can call JSROOT.resize("divid") after resize is completed.

In principle, one can reuse components which are used in default JSROOT ui like here:
https://root.cern/js/latest/
There is vertical line which separates hierarchy painter from drawing and can be interactively moved.
I can extend https://root.cern/js/latest/api.htm#custom_html_file_hierarchy example to show how it can be used.

As always, thanks for the quick and helpful reply!

I'm not sure horizontal overflow is working correctly:

Go to https://root.cern/js/latest/
Open hsimple.root
Shrink the #jsroot_browser_area div enough to notice that:

The scrollbar won't appear until the div is shrinked past the filename lenght
The objects' names get cropped

Got it, thanks! I'll have to figure out how to watch out for the divs resize

Regarding the first point, is that how it's intended to work?

I prepared example which uses JSROOT layouting:
https://jsroot.gsi.de/dev/api.htm#custom_html_file_browser
To make code working with jsroot dev and 6.x , one should use:
h.prepareGuiDiv(d3.select("#simpleGUI"), "simple");

That was really helpful, thanks @linev! Do you know what's going on regarding point 1 of my previous reply?

Concerning horizontal scrolling - I need to add special option to enable it.
For the moment in several places it is disabled.
Idea was always to use vertical draggable element to resize browser.
I will do it later

Awesome, thank you! :slightly_smiling_face:

Now should be possible to configure
h.show_overflow = true;

Result is: https://jsroot.gsi.de/dev/demo/file_browser.htm

Thanks for the work @linev! Maybe I'm not getting it right, but the example still shows the behavior described previously

Here screenshot when h.show_overflow = false;

And here h.show_overflow = true;

Main difference is horizontal scrollbar in the left-bottom corner.
It also should work same way in other example

For some reason I don't see the example working that way:

Regardless, thanks so much for the work! I'll try this in ROOT File Viewer once it's included in a release :slightly_smiling_face:

I add small fix in h.exapndItem function - now example immediately show expanded hierarchy.
But scrolling should work as described.
And in case you shrink size to very tiny column (as on your screenshot) even with h.show_overflow = false; you could see scrollbar. But I would call it a "feature"

Now I see everything working perfectly (after hard-refreshing the example page), thanks again @linev! :tada:


How To Achieve Client Server Architecture

Assalam-o-Alikum
I appreciate your help and guidance you provided me earlier regarding WebRTC. But now i want to implement this in a more better way. I want to create this application in client server architecture. My goal is to develop a separate page for client, let say (Employee.aspx) and through this page get Video and audio feed from the client. Secondly to developer a page, let say (Manager.aspx) for viewing all those feeds on a single separate page. Following is the graphical representation of what i want to achieve.

Please guide me how i can achieve this. Looking forward to your kind response as usual.

Hello sir,
I am also new to rtcmulticonnection.Infact new to this whole fascinating wold of webrtc.
I have made some experimental programmes with peerConnection and now want to migrate to rtcMulticonnection and have thexact same question in mind.If you have achieved any success with this,please enlighten me as well.


No clear way to get the number of lines from a Paragraph

If I have some text like this:
final text = 'My text line.\nThis كلمة makes more boxes.\nAnother line.';

And when I create a Paragraph (indirectly using TextPainter), then I get something like this:

I want to programmatically get the number of lines (and the text in each line). But there is no method for that. There obviously are 4 lines and the engine must know that. Is there a reason that it is hidden from the developer?
My use case is creating a vertical text layout where I have to reposition and paint each line myself.
Related Stack Overflow issue: https://stackoverflow.com/questions/54091055/flutter-how-to-get-the-number-of-text-lines

I see in the LibText Paragraph.cc file there is a method to return the number of lines:
https://github.com/flutter/engine/blob/master/third_party/txt/src/txt/paragraph.cc
size_t Paragraph::GetLineCount() const {
  return line_heights_.size();
}

But this is not exposed in dart:ui Paragraph.dart.

Any tips, on achieving this info?


API for extending context

As an application developer, I want to extend the context with app globals, such as database instance, model instances, and other client instances (e.g. s3, redis, etc). I prefer this approach over actual globals or singletons because those options are more difficult to test.
I made koa-add-to-context, a middleware that mixes in keys into the request's context. However, since these values are all static, instead I could just do something like:
Object.assign(app.context, {
  models: models,
  db: db,
  s3: s3
})

This would be more efficient, since it lets me avoid a middleware on every request. The problem is that I'm not sure if app.context is considered a public API or not. If it's not, I'd propose we add an API for enhancing the application context. Thoughts?

+1
I think there are plugins & middleware, plugins just do extend request/reponse/context stuff. And they

avoid a middleware on every request

https://cnodejs.org/topic/553f8c242bd4939b1e905587

when we were building this, @tj didn't want for it to be public. i use it all the time, but i don't want people to abuse it. @koajs/owners ?

-1 on extending the shared object request/response/context without any sandbox. I used to share something by using context.{my-namespace}.{custom-key}.

Extend app, context, request and response before your app instance start to listen a port.
const app = koa();
// ... add yours middlewares whatever

// extend whatever you want
app.db = createMySuperDBClient();

app.context.render = myReader;

// or pass the app to your koa modules
someFeatureModule(app);

it seems like a standardized approach will cause more conflicts than everyone doing it their own way

yea extending the context is nicer than having middleware plop stuff on the context, so I'm +1 for having the object doc'd

+1, I like this way that outside the middleware.

and here i thought it was already public haha +1
On Thu, Aug 27, 2015 at 11:01 AM, Fangdun Cai<EMAIL_ADDRESS>wrote:

+1, I like this way that outside the middleware.
—
Reply to this email directly or view it on GitHub
https://github.com/koajs/koa/issues/473#issuecomment-135508059.

--
Aaron
@aaronheckmann https://twitter.com/#!/aaronheckmann
soundcloud.com/ajhecky
github.com/aheckmann

Sounds good, especially since it's already being used by so many middleware.
In the particular case described by @cesarandreu, I feel that it solves only part of the problem though - if you have a service layer outside the http request/response cycle and you need to access the same db client/connection instance, how do you tie that with koa?

+1

would anyone like to make a PR w/ docs?

e710b4b05fb27b3a826104df431fccd6845d414b is this sufficient for y'all?

LGTM
On Sun, Aug 30, 2015 at 10:04 PM, jongleberry<EMAIL_ADDRESS>wrote:

e710b4b
https://github.com/koajs/koa/commit/e710b4b05fb27b3a826104df431fccd6845d414b
is this sufficient for y'all?
—
Reply to this email directly or view it on GitHub
https://github.com/koajs/koa/issues/473#issuecomment-136252298.

--
Aaron
@aaronheckmann https://twitter.com/#!/aaronheckmann
soundcloud.com/ajhecky
github.com/aheckmann


[Bug] [Api] project prefrence do not work

Search before asking

[X] I had searched in the issues and found no similar issues.

What happened
i set a tenant for my project ,and i just run the workflow.
but when i run a task,like shell task ,run commond "whoami"
but the result is ds's default tenant,named 'default' ,not my prefrence value
What you expected to happen
workflow should run as my prefrence value
How to reproduce
just replay
Anything else
No response
Version
3.2.x
Are you willing to submit PR?

[X] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

We need to inject these configurations from project preference.

all conf is default value ,just tetnant is work

I would like to try this issues and assign it to me.

close by: https://github.com/apache/dolphinscheduler/pull/15724


No sentence-transformers model found with name C:\Users\Administrator/.cache\torch\sentence_transformers\GanymedeNil_text2vec-large-chinese. Creating a new one with MEAN pooling.

卡在这块很久是正常现象吗

还会卡很久吗
bjw321 @.***>于2023年4月21日 周五10:20写道：

Closed #154
https://github.com/imClumsyPanda/langchain-ChatGLM/issues/154 as
completed.
—
Reply to this email directly, view it on GitHub
https://github.com/imClumsyPanda/langchain-ChatGLM/issues/154#event-9062919218,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABLH5EQODYULBFUJJG22IZLXCHVFHANCNFSM6AAAAAAXGINV7E
.
You are receiving this because you are subscribed to this thread.Message
ID: <imClumsyPanda/langchain-ChatGLM/issue/154/issue_event/9062919218@
github.com>

我也是同样的问题，想知道解决了吗？


Set button colour to match active light colour

On other cards (custom-button) I am able to change the colour of the button to match that of the light when it is turned on.
This involves using 'state' and a variable which holds the colour of the light when it is turned on.
Am I able to do this on LCARS please and, if so, how?  I've scoured the web but can't find anything which pulls in that colour variable.
Many thanks.

Can you provide some screenshots of what you are describing, please? I think I am following, but I want to be sure.

I ‘ve worked out how to change a specific button’s colour depending on state, but somewhere there is a variable holding a light’s active colour when it’s turned on.  That’s what I’m looking for, the variable.   On other things it’s var(--button-card-light-color) but that doesn’t work here.

this is from another dashboard - each light button shows the colour it’s set to.

The card colors are hard-coded in the CSS via card-mod using the variables. So you would probably need to apply some custom CSS to the cards themselves with card-mod (this is the basic functionality of card-mod, as opposed to the entire theme as has been done with LCARS).

Hi, yes I get that - I can do it all (apply a colour/border depending on the state (on/off) of the light - what I can't find out is the variable which holds the current colour of the light.  It must be built-in to Home Assistant somehow?

card_mod:
class: button-bullet
style: |
ha-card {
border: {{ '3px solid gold' if is_state('light.desk_lamp', 'on') else '' }};
}
I want to replace 'gold' with the light's colour.

Something like this:

color: >
[[[ if (entity.state === 'on') return "rgb(" +
states['light.zachs_lamp'].attributes.rgb_color + ")";]]]

Hi,
I have something like this.
It changes if its ON = yellow and OFF = RED.
Code is below the screenshot

type: horizontal-stack
cards:

show_name: true
show_icon: false
name: Server Room
type: button
tap_action:
action: toggle
entity: light.it_room_5afc8b25_on_off
icon_height: 50px
show_state: true
card_mod:
class: button-capped
style: |
ha-card.button-capped {
{% if is_state('light.it_room_5afc8b25_on_off', 'on') %}
background-color: #ffcc33;
color: black;
{% else %}
background-color: #dd4444;
color: black;
{% endif %}
}

Hi - thanks for this.  I can actually do that already.  What I really wanted was to set the button colour to that of the light, which I can do outside of the theme 😄
On 7 Jul 2023, at 08:10, Mihai @.***> wrote:
Hi,
I have something like this.
It changes if its ON = yellow and OFF = RED.
Code is below the screenshot
[image]https://user-images.githubusercontent.com/31653632/251664739-b029aa61-d27d-4e29-80d0-9072ab8fe080.png
type: horizontal-stack
cards:

show_name: true
show_icon: false
name: Server Room
type: button
tap_action:
action: toggle
entity: light.it_room_5afc8b25_on_off
icon_height: 50px
show_state: true
card_mod:
class: button-capped
style: |
ha-card.button-capped {
{% if is_state('light.it_room_5afc8b25_on_off', 'on') %}
background-color: #ffcc33;
color: black;
{% else %}
background-color: #dd4444;
color: black;
{% endif %}
}

—
Reply to this email directly, view it on GitHubhttps://github.com/th3jesta/ha-lcars/issues/32#issuecomment-1624861089, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AL5ZTQKB6YF23TZQMHILYETXO6Y55ANCNFSM6AAAAAATWLLMT4.
You are receiving this because you authored the thread.Message ID: @.***>

@Xiondewah, sorry for the late late answer...here are the modifications that I also did in my system.
I think this is what you wanted and it's a great ideea.
show_name: true
show_icon: false
name: Terasa Light
type: button
tap_action:
  action: toggle
entity: light.terasa
show_state: true
hold_action:
  action: more-info
icon_height: 50px
card_mod:
  class: button-capped-right
  style: |
    ha-card {
      {% if is_state('light.terasa', 'on') %}
        {% set rgb_color = state_attr('light.terasa', 'rgb_color') %}
        background-color: rgba({{ rgb_color[0] }}, {{ rgb_color[1] }}, {{ rgb_color[2] }}, 1);
        color: black;  /* or any other logic for text color */
      {% else %}
        background-color: #dd4444;
        color: black;
      {% endif %}
    }


Does not work with latest angular 1.5.0-build...

Error: [ui.select:transcluded] http://errors.angularjs.org/1.5.0-build.4310+sha.0c8a9a0/ui.select/transcluded?p0=Expected%201%20.ui-select-match%20but%20got%20'%7B0%7D'.&p1=0
    at ...ommitted...
    at http://localhost:8000/scripts/support/uiselect.js:968:19
    at ...ommitted...
    at ...ommitted...
    at ...ommitted...
    at p (...ommitted...)
    at uis.directive.$timeout.compile (http://localhost:8000/scripts/support/uiselect.js:956:9)
    at ca (...ommitted...)
    at L (...ommitted...)
    at ...ommitted...
(anonymous function) @ ...ommitted...(anonymous function) @ ...ommitted...:86(anonymous function) @ ...ommitted...:10616ca @ ...ommitted...:79L @ ...ommitted...:67(anonymous function) @ ...ommitted...:74(anonymous function) @ ...ommitted...:124n.$eval @ ...ommitted...:139n.$digest @ ...ommitted...:136n.$apply @ ...ommitted...:139(anonymous function) @ ...ommitted...:4490n.event.dispatch @ ...ommitted...:3r.handle @ ...ommitted...:3

For me, it works with 1.5.0-beta.0, but not with 1.5.0-beta.1.  I forked the plnkr in the documentation and only changed the Angular src to 1.5.0-beta.1, available here.  Switch between beta.0 and beta.1 to see it work / not work.  This is the error it generates on beta.1:
Error: [ui.select:transcluded] Expected 1 .ui-select-match but got '0'.
    at http://run.plnkr.co/gBd3G34T3oawEWpT/select.js:118:12
    at http://run.plnkr.co/gBd3G34T3oawEWpT/select.js:909:19
    at publicLinkFn (http://ajax.googleapis.com/ajax/libs/angularjs/1.5.0-beta.1/angular.js:7561:29)
    at name.$get.previousCompileContext (http://ajax.googleapis.com/ajax/libs/angularjs/1.5.0-beta.1/angular.js:7900:29)
    at name.$get.boundTranscludeFn (http://ajax.googleapis.com/ajax/libs/angularjs/1.5.0-beta.1/angular.js:7706:16)
    at controllersBoundTransclude (http://ajax.googleapis.com/ajax/libs/angularjs/1.5.0-beta.1/angular.js:8377:18)
    at uis.directive.$timeout.compile (http://run.plnkr.co/gBd3G34T3oawEWpT/select.js:897:9)
    at invokeLinkFn (http://ajax.googleapis.com/ajax/libs/angularjs/1.5.0-beta.1/angular.js:8850:9)
    at nodeLinkFn (http://ajax.googleapis.com/ajax/libs/angularjs/1.5.0-beta.1/angular.js:8350:11)
    at http://ajax.googleapis.com/ajax/libs/angularjs/1.5.0-beta.1/angular.js:8580:13

That is exactly right @ravishivt ! thanks for clarifying, I'm using 1.5.0-beta.1

I was previously specifying for all Angular dependencies in my bower.json: ~1.5.0-beta.0. This produced the described error.
Tightened the bound to 1.5.0-beta.0 and it's working again. :)

Any status on making compatible with the beta.1 since that's the direction the 1.x series of Angular is taking?

Still doesn't work in beta.2.

I have the same issue with beta.2

I confirm this also doesn't work with the latest beta.2

+1
only thing preventing us from moving to beta 2 :(

it also does not work with beta.1 but does work with beta.0

Duplicate thread see

It does not work with 1.5 release.....do you plan to fix it soon?

My app got upgraded to angular 1.5 and ui.select is breaking.. Should I downgrade to Angular 1.4?

Angular 1.5.0-rc.2 still not working.

so what ui-select can i use in angular 1.5

I've switched from angular-ui-select to just ui-select and it started working for angular 1.5


Windows10  部署

请问有没有win10部署教程？

code本身没有考虑跨平台的内容，在我们的理解中部署平台的内容可能比较相似。以及像是ncnn的部署的内容已经提供了param和bin，很多流程无需再走，你可以尝试后遇到问题再发issue.

好的，谢谢
------------------ 原始邮件 ------------------
发件人: "Feng @.>;
发送时间: 2021年7月21日(星期三) 上午10:22
收件人: @.>;
抄送: @.>; @.>;
主题: Re: [Megvii-BaseDetection/YOLOX] Windows10  部署 (#25)
code本身没有考虑跨平台的内容，在我们的理解中部署平台的内容可能比较相似。以及像是ncnn的部署的内容已经提供了param和bin，很多流程无需再走，你可以尝试后遇到问题再发issue.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Running on windows10 will meet the error "ModuleNotFoundError: No module named 'resource'"
resource is a Unix specific package and will raise an error when trying to use it in Windows. according to stackoverflow
After i deleted line 6,34,35 in setup_env.py, it run successfully on my Windows.

Running on windows10 will meet the error "ModuleNotFoundError: No module named 'resource'"
resource is a Unix specific package and will raise an error when trying to use it in Windows. according to stackoverflow
After i deleted line 6,34,35 in setup_env.py, it run successfully on my Windows.

I just commented it and it works too

可以用megengine 部署， megengine 原生支持windows等各种OS

Running on windows10 will meet the error "ModuleNotFoundError: No module named 'resource'"
resource is a Unix specific package and will raise an error when trying to use it in Windows. according to stackoverflow
After i deleted line 6,34,35 in setup_env.py, it run successfully on my Windows.

it does't work on my WIN10

Running on windows10 will meet the error "ModuleNotFoundError: No module named 'resource'"
resource is a Unix specific package and will raise an error when trying to use it in Windows. according to stackoverflow
After i deleted line 6,34,35 in setup_env.py, it run successfully on my Windows.

it does't work on my WIN10
Are you using train.py to train your custom datasets?If it is ,you must create your own exp_file,just follow the step in the link:https://github.com/Megvii-BaseDetection/YOLOX/blob/main/docs/train_custom_data.md and then try it again.

windows10，显卡rtx2070ti，cuda10.2可以编译通过
我在setup.py第50行修改成了
with open("README.md", "r", encoding="utf-8") as f:
效果如下，非常nice！：

windows10，显卡rtx2070ti，cuda10.2可以编译通过
我在setup.py第50行修改成了
with open("README.md", "r", encoding="utf-8") as f:
效果如下，非常nice！：

I used to have the problem with you and I solve it in the same way with you

Related Chinese blog:
https://blog.csdn.net/weixin_43218120/article/details/119170073
https://blog.csdn.net/Dora_blank/article/details/119087239


AutoSuggestBox, ComboBox, (probably others) no longer transform their popups correctly in WindowsAppSDK 1.4

Describe the bug
After updating from WindowsAppSDK 1.3 to 1.4, any AutoSuggestBox or ComboBox inside a container with a ScaleTransform applied to it do not scale their popups for suggestions or items correctly. The unscaled popups do, however, act as though the mouse cursor is hovering over the item where it would be if it were scaled correctly, which is a big problem for us.
It would be tolerable if the scaled ComboBox showed an unscaled items popup if hovering the mouse over the items popup behaved by selecting the item that was actual under the mouse, however this is not the case.
Steps to reproduce the bug

Add a ComboBox or AutoSuggestBox with items inside a container that has a ScaleTransform applied to it (it can be any level up the stack from the target control). Set this transform to have a ScaleX and/or ScaleY not equal to 1.0.
Run the application and observe the described behavior.

<Window
	x:Class="PopupScaling.MainWindow"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d">

	<Grid>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="*" />
			<ColumnDefinition Width="*" />
		</Grid.ColumnDefinitions>

		<StackPanel Grid.Column="0">
			<ComboBox Header="Normal ComboBox" ItemsSource="{x:Bind Values}" />

			<AutoSuggestBox Header="Normal AutoSuggestBox" ItemsSource="{x:Bind Values}" HorizontalAlignment="Left" />
		</StackPanel>

		<StackPanel Grid.Column="1">
			<StackPanel.RenderTransform>
				<ScaleTransform ScaleX="1.5" ScaleY="1.5" />
			</StackPanel.RenderTransform>

			<ComboBox Header="Scaled ComboBox" ItemsSource="{x:Bind Values}" />

			<AutoSuggestBox Header="Scaled AutoSuggestBox" ItemsSource="{x:Bind Values}" HorizontalAlignment="Left" />
		</StackPanel>
	</Grid>
</Window>

using System.Linq;
using Microsoft.UI.Xaml;

namespace PopupScaling;

public sealed partial class MainWindow : Window
{
	public MainWindow()
	{
		InitializeComponent();
	}

	public int[] Values { get; } = Enumerable.Range(1, 100).ToArray();
}

Expected behavior
The expected behavior is for the popup to scale along with the control that creates it, and to show pointer over UI changes and respond to clicks based on where the user clicked relative to the visual control, not where the control thinks it is.
Even if the scaling can't be inherited by the popups, at the bear minimum the controls in the popup should respond to the mouse as though it had the same scaling as the popup, not the parent.
Screenshots
In this gif, take note of where the mouse cursor is in relation to the highlighted list item in the ComboBox items list or the AutoSuggestBox suggestions list. The expected behavior is shown on the left, and the problem behavior is shown on the right.

NuGet package version
WinUI 3 - Windows App SDK 1.4.2: 1.4.231008000
Windows version
Windows 11 (21H2): Build 22000
Additional context
Downgrading the app to use Microsoft.WindowsAppSDK version 1.3.230724000 fixes this issue, so it seems to be a regression in version 1.4.

The culprit appears to be ShouldConstrainToRootBounds="False" being set on the Flyout and Popup controls used in the built-in control templates. I tried this out with a popup containing a list box, and it behaves exactly as expected when ShouldConstrainToRootBounds is unset, and breaks with the above problem as soon as ShouldConstrainToRootBounds="False" is set on it.
We could work around this by copying and modifying all the build in control templates to unset that value, but that feels very heavy-handed to fix something that should just work. At the very least the mouse pointer should behave as expected regardless of whether a popup is being scaled or not, or constrained to root bounds or not.

Thanks for reporting this. We have a fix for this in the 1.6 timeframe.

Update - the fix has been ported to 1.5.2.


Deserialization Error

Component
Forge
Have you ensured that all of these are up to date?

[X] Foundry
[X] Foundryup

What version of Foundry are you on?
forge 0.2.0 (307576d 2022-08-29T00:07:45.577911054Z)
What command(s) is the bug in?
forge script
Operating System
Linux
Describe the bug
Hi There,
I was running forge script over a forked network (from alchemy). In particular, I execute forge script for every 4 seconds, and mostly it is okay but sometimes I got the following.
The application panicked (crashed).
Message:  Failed to get account for 0xc7f2…e141
Deserialization Error: expected value at line 1 column 1. Response:
<title>502 Bad Gateway</title>

502 Bad Gateway

Location: evm/src/executor/fork/backend.rs:271

This is a bug. Consider reporting it at https://github.com/foundry-rs/foundry

I'm not familiar with a bug reporting, but hope this help.

this just looks like an issue with the connection that was established,
perhaps the provider temporarily blocked requests, wasn't able to handle them

I actually just got the same issue with alchemy

@mattsse shall we close this as extraneous failure or improve error handling the fork provider requests?

can close, I think this was an alchemy issue because I noticed this myself at least twice within 1 min or so