merge package from arlac77/npm-package-template

.travis.yml

chore(travis): merge from template .travis.yml

Codecov Report

Merging #426 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #426   +/-   ##
=======================================
  Coverage   73.94%   73.94%
=======================================
  Files           2        2
  Lines         476      476
=======================================
  Hits          352      352
  Misses        124      124

Continue to review full report at Codecov.

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

Coverage remained the same at 71.626% when pulling 901d6566f76c9c5bcdd30b0c9ea924e1b55ee716 on template-sync-1 into 14b86f02aab35ec5d781a495c4c05241b16d2c5d on master.

:tada: This PR is included in version 3.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Restriction of {0,0} returns the same as {1,1}

What happens?
see title
To Reproduce
create table student(id INT); INSERT INTO student(id) VALUES (10), (20), (30), (40);
create table know(src INT, dst INT); INSERT INTO know(src, dst) VALUES (40, 20), (10,30), (10,10), (20,10), (30,10);

-create property graph g vertex tables (student) edge tables (know source key (src) references student (id) destination key (dst) references student (id));

-FROM GRAPH_TABLE (g
    MATCH
    ANY SHORTEST (a:student)-[k:know]->{0,0}(b:student)
    WHERE a.id = 10
    COLUMNS (a.id as a_id, b.id as b_id)
    );

Actual result:
┌───────┬───────┐
│ a_id  │ b_id  │
│ int32 │ int32 │
├───────┼───────┤
│    10 │    10 │
│    10 │    30 │
└───────┴───────┘

Expected result:
┌───────┬───────┐
│ a_id  │ b_id  │
│ int32 │ int32 │
├───────┼───────┤
│    10 │    10 │
└───────┴───────┘

### OS:

macOs 13 - Apple M1 Pro

### DuckDB Version:

dev

### DuckDB Client:

CLI

### Full Name:

Daniel ten Wolde

### Affiliation:

CWI

### Have you tried this on the latest `master` branch?

- [X] I agree

### Have you tried the steps to reproduce? Do they include all relevant data and configuration? Does the issue you report still appear there?

- [X] I agree

I've started looking into this issue, but I don't know what the PGQ document uses for path semantics. If it is strict, then no edge traversals occur and the expected result would be the empty set. If it is relaxed semantics, then the result could be only the source node. I will ask next week at the TUC meeting.

Started a branch here: https://github.com/cwida/duckpgq-extension/tree/issue/9-restriction-of-00-returns-the-same-as-11

The following two queries get equal results, just the SELECT clause is slightly different, but that is a detail. I think moving the {0,1} pattern to a CTE would be a good approach to translating the query. I use a subquery in the following example, but the translation to a CTE is trivial:
select * from graph_table (pg match (a is person)-[k is knows]->{0,1}(b is person)-[k2 is knows]->(c is person)  columns (a.id as a_id, a.name as a_name, b.id as b_id, b.name as b_name, c.id as c_id));

select * from (select a.*, b.* from person a, knows k, person b where a.id = k.person1id and b.id = k.person2id UNION ALL select a.*, b.* from person a, person b where a.rowid = b.rowid) join knows k2 on id_1 = k2.person1id join person c on c.id = k2.person2id;

Tested this with Oracle 23ai


Redirect URIs duplicating context root when changed in Quarkus with quarkus.http.root-path

Not sure how to explain this but, I changed my context path from / to /support so my urls look like http://localhost:8080/support to access my HTML/QUTE/RENARDE app.
quarkus.http.root-path=/support
When I generate the redirect URIS according to the docs, I'm getting duplicate context roots:
The code below generates a URI of: http://localhost:8080/support/support/
 // All good, set the JWT cookie
        NewCookie cookie = security.makeUserCookie(user);
        return Response.seeOther(Router.getURI(Application::index)).cookie(cookie).build();

All my paths on my endpoints are defined as @Path("") at the top of the class and @Path("/") for index page and @Path("/login") for example. All of them start with '/'
Any ideas?

OK, that one is interesting. Router.getURI() returns the proper /support/ path, but then, Response.seeOther adds another layer of /support for some reason. I'll have to check RESTEasy Reactive, see why it does that.

I've fixed this in main and 1.x


test(cargo-lints): Add a test to ensure cap-lints works

When implementing the linting system, it was noted that there was no test to ensure this it is to cap-lints, this PR adds that missing test.

@bors r+

:pushpin: Commit cbb1cd2382fdf8f12c7afd90fba2132c3519e160 has been approved by epage
It is now in the queue for this repository.

:hourglass: Testing commit cbb1cd2382fdf8f12c7afd90fba2132c3519e160 with merge d071c59ad1b8305378450499ae5b5134647b38e2...

:sunny: Test successful - checks-actions
Approved by: epage
Pushing d071c59ad1b8305378450499ae5b5134647b38e2 to master...


Add a notebook for the stable diffusion pipeline

What does this PR do?
Adds an example notebook running the text-to-image Stable Diffusion pipeline on the IPU.
Before submitting

[ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
[ ] Did you make sure to update the documentation with your changes?
[ ] Did you write any new necessary tests?

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

Can you just keep the **kwargs? That's to make sure that if the interface of the model we inherit from changes we don't need to edit our implementation every time.
Otherwise LGTM

Hmm adding **kwargs to __init__ doesn't seem that straightforward. It seems the implementation of from_pretrained from https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipeline_utils.py#L513 onwards throws an error complaining about missing modules as it interprets kwargs as an additional entry from the signature.

Ok, in that case it seems like you've got the best solution available.
LGTM


Remote Access Control Lists Bug?

Hi,
I wanted to add a new ACL (from UT as in the example) but it does not work at all.
Before I had successfully configured the ACL from shallalist.
But now, the new settings won't get applied - even if I delete ALL lists it still loads the shallalist!
So the tab for the remote acl is not consistent with the settings behind - I found out that the settings won't get updated in the /usr/local/etc/squid/externalACLs.conf
How can I fix this behaviour?
Cheers,
Stephan

did you hit apply?
if so, please check logs first (system->Log file) for anything unusual.

this shows up:

configd.py: [cb87ff1c-3444-4afa-9e37-94fffdd451bf] Inline action failed with OPNsense/Proxy OPNsense/Proxy/squid.conf 'collections.OrderedDict object' has no attribute 'ipaddr' at Traceback (most recent call last): File "/usr/local/opnsense/service/modules/processhandler.py", line 505, in execute return ph_inline_actions.execute(self, inline_act_parameters) File "/usr/local/opnsense/service/modules/ph_inline_actions.py", line 50, in execute filenames = tmpl.generate(parameters) File "/usr/local/opnsense/service/modules/template.py", line 309, in generate raise render_exception Exception: OPNsense/Proxy OPNsense/Proxy/squid.conf 'collections.OrderedDict object' has no attribute 'ipaddr'

Meanwhile I can see the categories in the acl settings...dunno restarted squid sometimes.
Nevertheless I discovered that the squid.conf doesn't get updated, too.
It still has the old entry:
# ACL - Remote fetched Blacklist (remoteblacklist)
acl remoteblacklist_shallalist dstdomain "/usr/local/etc/squid/acl/shallalist"
Is it because of the configd.py error from above?
Thanks

@Stephanowicz the error in configd is a syntax error in the template of squid (proxy) which causes it not being rendered.

O.k. - I found it!
https://forum.opnsense.org/index.php?topic=4446.0
If a proxy interface has no ip-address this configd.py error shows up
I've created a bridge and so the network dev no longer has an ip-address...
Thanx & cheers,
Stephan


remove branch.py

This is from #3823.
@rohitpaulk Do we still need to run this before removing it?

Do we still need to run this before removing it?

Oops - forgot bout that. Yes we have to, doing it now.

Done.

!m @rohitpaulk


Data Layers

Data layers allow data of different formats to be mapped into a program through a decoder and presented with a uniform API such that the main program logic can avoid dealing with data format decoding. Instead, the data format can be defined in the Data.toml.
A challenge here is dealing with world age issues which come up from dynamically requireing Julia packages. For now, we include a bit of judicious Base.invokelatest to make things "just work" in the REPL, but also warn the user that they should add a top-level import.
With this patch and the Data.toml from the tests, we can open several tabular data formats, without the user needing to know much about the data storage.
Here's an example of loading data in .tsv, .gzip.csv and .arrow formats (any of which could then be converted to a DataFrame thanks to the Tables.jl interface)
julia> @! open(dataset("table_tsv"))
┌ Warning: The package CSV [336ed68f-0bac-5ca0-87d4-7b16caf5d00b] is required to load your dataset. DataSets will import this module for you, but this may not always work as
│ expected.
│
│ To silence this message, add import CSV at the top of your code somewhere.
└                                                            @ DataSets /home/chris/.julia/dev/DataSets/src/layers.jl:32
2-element CSV.File{false}:
 CSV.Row: (Name = "Aaron", Age = 23)
 CSV.Row: (Name = "Harry", Age = 42)

julia> @! open(dataset("table_gzip"))
┌ Warning: The package CodecZlib [944b1d66-785c-5afd-91f1-9de20f533193] is required to load your dataset. DataSets will import this module for you, but this may not always
│ work as expected.
│
│ To silence this message, add import CodecZlib at the top of your code somewhere.
└                                                            @ DataSets /home/chris/.julia/dev/DataSets/src/layers.jl:32
2-element CSV.File{false}:
 CSV.Row: (Name = "Aaron", Age = 23)
 CSV.Row: (Name = "Harry", Age = 42)

julia> @! open(dataset("table_arrow"))
┌ Warning: The package Arrow [69666777-d1a9-59fb-9406-91d4454c9d45] is required to load your dataset. DataSets will import this module for you, but this may not always work
│ as expected.
│
│ To silence this message, add import Arrow at the top of your code somewhere.
└                                                            @ DataSets /home/chris/.julia/dev/DataSets/src/layers.jl:32
Arrow.Table: (Name = ["Aaron", "Harry"], Age = [23, 42])

Excerpt from Data.toml, showing the configuration required for the system to understand these various formats:
[[datasets]]
description="Simple TSV example"
name="table_tsv"
uuid="efde65c3-a898-4ba9-97c1-45dba64b8d46"

    [datasets.storage]
    driver="FileSystem"
    type="Blob"
<EMAIL_ADDRESS>
    [[datasets.layers]]
    type = "csv"
    [datasets.layers.parameters]
        delim="\t"

[[datasets]]
description="Gzipped CSV example"
name="table_gzip"
uuid="2d126588-5f76-4e53-8245-87dc91625bf4"

    [datasets.storage]
    driver="FileSystem"
    type="Blob"
<EMAIL_ADDRESS>
    [[datasets.layers]]
    type = "gzip"

    [[datasets.layers]]
    type = "csv"

[[datasets]]
description="Arrow example"
name="table_arrow"
uuid="e964d100-fef2-45c4-85de-9d8e142f4084"

    [datasets.storage]
    driver="FileSystem"
    type="Blob"
<EMAIL_ADDRESS>
    [[datasets.layers]]
    type = "arrow"

More generally than tabular data, here's some further examples of data which comes encoded in many forms, but we'd like to treat through the same data loader API:
Byte streams:

raw
gzip
xz
zstd
...

Images

png
jpeg
tiff
...

Data trees

directories
zip
hdf5
...

I thought we'd discussed not using @! and making the context explicit instead.

Ideas?

Return a mutable wrapper object, perhaps? Either that or if the object is immutable, throw an error and require the caller to use the explicit context form (or the @! shorthand).

Return a mutable wrapper object, perhaps? Either that or if the object is immutable, throw an error and require the caller to use the explicit context form (or the @! shorthand).

Thanks, I think these are the options. I've been mulling it over but haven't come up with anything else yet.
With wrappers, there seems to be two alternatives

Return something very generic like Ref{T}.

Pro: Works for all types
Con: Doesn't have a useful API; must be unwrapped to do anything. Quite clumsy and not similar to API for types which happen to be mutable and don't need wrapping.
Con: After unwrapping, users will want to drop wrapper in which case their resources will be closed

Return a wrapper with the right API, for example a hypothetical WrappedTable for tabular data

Pro: User friendly
Con: Lots of wrappers to implement, doesn't easily scale to many disparate packages
Con: Correct API for wrappers may be unclear. In the extreme, just an exact duplicate of the wrapped object.

All together, wrappers don't seem very appealing. I'm inclined to just error and direct the user to the explicit context-based API for the generic code path.
As a hybrid, we could implement a few wrappers for APIs which are relatively well defined and commonly used, eg, tables.

Honestly it seems most appealing to me to just always require the context object. Once people learn to do this it will always work.

hmm. so I could a file that is encrypted + compressed, and program would be able to add steps to handle that on the fly? what other types of preprocessing could be layers? user-defined layers?

so I could a file that is encrypted + compressed, and layers would allow the program to peel this back to handle that on the fly?

Yes, this should be possible. I think the interesting/tricky thing here is having a way to provide parameters to layers. In particular, how would we inject the decryption keys in a secure way? I suppose these are logically a property of the DataSet, but you also don't want to leave keys lying around in memory.

what other types of preprocessing could be layers?

Anything that represents a linear pipeline of decoding stages could be represented. (Conversely, more general DAGs cannot be represented as cleanly — the whole DAG would have to be represented as single non-composable layer.)

user-defined layers?

Yes, in this PR the user should be able to define their own layer by calling DataSets.register_layer! in their third-party module (probably as part of the module's __init__ function) and defining a method with the signature open(layer::DataLayer{:users_custom_tag}, blob::Blob).

I'll go ahead and close this PR, since I don't think we'll merge it. But the branch and discussion will stay around for future reference.


raw3-3 roslaunch check failure

#300 introduced an include in raw3-3.xml which opens a dependency to rplidar_ros.
Although this is not used by default, the roslaunch check for cob_bringup fails now http://jenkins.ros.org/job/devel-indigo-cob_robots/ARCH_PARAM=amd64,UBUNTU_PARAM=trusty,label=devel/57/testReport/(root)/Results/test_ran/.
To avoid that we should add an empty package rplidar_ros to cob_substitute. @ipa-frm can you please add this and send a PR?

@ipa-frm you don't need to get active here, sorry.
@ipa-fxm will resolve this in https://github.com/ipa320/cob_substitute/pull/29/

fixed via https://github.com/ipa-fxm/cob_substitute/commit/4da4497dd12991b13d3983339aa2576fd7d56210 in https://github.com/ipa320/cob_substitute/pull/29
However, cob_substitute so far substituted only our own private repositories, with rplidar_ros this an official ROS package (not under ipa320 supervision) that just hasn't been released yet...
There might be a conflict in case we release cob_substitute and rpllidar_ros is going to be released eventually into Indigo

other question (to @ipa-frm and @ipa-mig): what is preventing us (or the maintainer) to release rplidar_ros under indigo? Did somebody try to trigger the maintainer to release it?

@ipa-fmw There has been a release for hydro.
So maybe we can try to contact them and ask for a new release. I'll do that.
On the other hand, they seem to be pretty inactive. The last commit has been on 21st of April, there are two PRs open (from which at least one makes sense) for over a month and no feedback from them.
The question is, should we try to take this over? I.e. additional effort on our side, especially if they start to release new features?

@ipa-fmw @ipa-fxm
Set up an issue at robopeak/rplidar_ros#15

Let's try to trigger them first. If there is no Motivation for an indigo release or no activity, we can at least offer our support with releasing the current state. This does not require to take over full maintainership

Done already, see link above.

What's the status here?
Close? Help @robopeak with the release?

Well, an rplidar_ros release would be nice. However, @robopeak is not responding to any questions and they haven't been active sind April.
Should we just go ahead with a release?
This might actually now become a problem with the latest cob_substitute release...

I guess we can all live with the current situation. Thus, I'll close this issue!


Change style of legend item when it is unselected

What problem does this feature solve?
Hi,
trying to change the style of a legend item when it is unselected. Actually when i unselect a legend item, not everything is grey colored. As you can see on the picture there is still a blue line in the unselected legend item.
I modified the legend with the formatter function and used textStyle.rich. Is there a function/event with that the style of the legend items can be changed dynamically?
Can you help me out to fix the problem, so that there is also a grey line instead of blue line when the legend item is unselected.
Thanks in advance for your help.
br
What does the proposed API look like?
...

I modified the legend with the formatter function and used textStyle.rich. Is there a function/event with that the style of the legend item can be changed dynamically?

setOption and update the legend style.

Thank you for your answer. But when I update the whole legend style then the all legend items are changed. Is there a way to change only one item if it is not active. Is there something possible like:   'itemIsActive? colorAcitve : colorDisabled' ?

The Legend is formatted with .legend.formatter and the textstyle is set with .legend.textStyle.rich


JWT token is still take effect after the token is removed from redis( by call the method clear token)

JWT token is still take effect after the token is removed from redis( by call the method clear token from redis)
I just configure the app of api with JwtAuth conponent like document.
(1)Geting a jwt token by calling the api of login.I can see the jwt token in redis.
(2)Clearing the token by calling the api of logout.The token in redis has been cleared.
(3)Now I call an API that requires authentication, and the token is still valid.
I guess the built-in authentication middleware only uses "AccessSecret" to verify the token, but does not verify whether there is a corresponding token in redis.
Therefore, in the built-in scheme, the JWT token will only expire due to expiration, and the logout scheme needs to be implemented additionally.

JWT token is stateless. Removing from redis doesn't affect the validation.

在jwt token中增加session_id存储 把session_id再放redis里面存储就好了

JWT token is stateless. Removing from redis doesn't affect the validation.

Is there any other authentication scheme, such as oauth2?

在jwt token中增加session_id存储 把session_id再放redis里面存储就好了
可以，这个方案没啥问题，谢谢啦

没太理解，能具体说说吗

在jwt token中增加session_id存储 把session_id再放redis里面存储就好了
可以，这个方案没啥问题，谢谢啦

Bro, can you tell me more about how it worked out


fix: test the autoapi template with ansys-sphinx-theme

WIP

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

Project coverage is 90.22%. Comparing base (f47759c) to head (a26a97c).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1086   +/-   ##
=======================================
  Coverage   90.22%   90.22%
=======================================
  Files          93       93
  Lines        6835     6835
=======================================
  Hits         6167     6167
  Misses        668      668

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

Closing since it is working fine - waiting for next theme release =)


Fix cloudflare proxy status reset on dyndns update

This prevents resetting of the cloudflare "proxy" status (if this host is proxied/protected by cloudflare) of the updated DNS record.

Merged, thank you. :)


Windows: make sure authentication works

Make sure the Windows authentication works for Tasks

I have tried it running in windows by just running the binary and it works, also it works when it is run inside a windows task

@ggonzalere if it works inside a Windows task are you going to PR the Dockerfile for it, otherwise how'd you test it?

Yes! I have the dockerfile done but I have another open PR so I was waiting for that to be checked in before checking in the windows dockerfile


Unsupported protocol: github

Which packages are impacted by your issue?
@graphql-codegen/cli
Describe the bug
Hi,
We are using @graphql-codegen/cli to generate multiple files based on schema.graphql which is stored in a private Github repository. Up to this point everything worked normally, but around two weeks ago, a following error when trying to load the schema from Github started to occur (I've redacted organization and repo name):
✔ Parse Configuration
⚠ Generate outputs
  ❯ Generate to src/graphql/generated/schemas.tsx
    ✖
      Failed to load schema from github:<organization>/<repo_name>#main:generated/schema.graphql:
      Failed to find any GraphQL type definitions in: github:<organization>/<repo_name>#main:generated/schema.graphql;
      - Unsupported protocol: github:
      - Unexpected token R in JSON at position 2
      AggregateError: Failed to find any GraphQL type definitions in: github:<organization>/<repo_name>#main:generated/schema.graphql;
      - Unsupported protocol: github:
      - Unexpected token R in JSON at position 2
      at loadFile (/home/.../node_modules/@graphql-codegen/cli/node_modules/@graphql-tools/load/cjs/load-typed…
      at processTicksAndRejections (node:internal/process/task_queues:96:5)
      at async /home/kamil_bonna/Desktop/.../node_modules/@graphql-codegen/cli/node_modules/@graphql-tools/load/cjs/load-typedefs/…
      GraphQL Code Generator supports:
      - ES Modules and CommonJS exports (export as default or named export "schema")
      - Introspection JSON File
      - URL of GraphQL endpoint
      - Multiple files with type definitions (glob expression)
      - String in config file
      Try to use one of above options and run codegen again.
    ◼ Load GraphQL documents
    ◼ Generate
error Command failed with exit code 1.

To run codegen we're using yarn graphql-codegen --config codegen.yml command and the content of the config file is:
schema:
  - github:<organization>/<repo_name>#main:generated/schema.graphql:
      token: ${PERSONAL_ACCESS_TOKEN} # Set environment variable
overwrite: true

generates:
  src/graphql/generated/schemas.tsx:
    plugins:
      - typescript

...

The problem appeared without any changes for version:

"@graphql-codegen/cli": "^2.1.1"
I also tested newest version "@graphql-codegen/cli": "^3.3.0" which didn't help
but downgrading to "@graphql-codegen/cli": "1.21.7" solved the issue and the generator loads the schema as expected

Because older version is loading the schema I know my access token is valid.
Your Example Website or App
n/a
Steps to Reproduce the Bug or Issue

Install "@graphql-codegen/cli": "^2.1.1" or newer
Set attached codegen.yml config file
Try to load schema from any private Github repository running yarn graphql-codegen --config codegen.yml

Expected behavior
Schema should load normally and outputs should be generated accordingly but, the Unsupported protocol: github error is raised.
Screenshots or Videos
n/a
Platform

OS: Linux 20.04.1-Ubuntu
NodeJS: "node": "^16"
"@graphql-codegen/cli": "^2.1.1"

Codegen Config File
schema:
  - github:<organization>/<repo_name>#main:generated/schema.graphql:
      token: ${PERSONAL_ACCESS_TOKEN} # Set environment variable
overwrite: true

generates:
  src/graphql/generated/schemas.tsx:
    plugins:
      - typescript

Additional context
n/a

its probably something we deprecated in GraphQL Tools loaders and don't think there are any plans to bring it back.
You can point to raw GitHub content to make it work.
https://raw.githubusercontent.com/<org>/<repo>/><branch>/generated/schema.graphql?token=<put_an_acces_token_here>

@saihaj thanks for the quick reply and the suggestion with the raw GitHub content. Unfortunately
https://raw.githubusercontent.com/<org>/<repo>/<branch>/generated/schema.graphql?token=<put_an_acces_token_here>

didn't work because of the 404 error returned by GitHub when trying to fetch the schema.
However, I was able to tweak that and make it work using TypeScript version of the config with schema.<url>.headers option:
import { CodegenConfig } from '@graphql-codegen/cli'
import { env } from 'process'

const config: CodegenConfig = {
  schema: [
    {
      'https://raw.githubusercontent.com/<org>/<repo>/<branch>/generated/schema.graphql':
        {
          headers: {
            Authorization: `Token ${env.PERSONAL_ACCESS_TOKEN}`,
          },
        },
    },
  ],
  ...
}

@saihaj I forgot to mention - it'd be also a good idea to update docs on schema field  since github protocol seems to be deprecated.
If you want I can try to update relevant code example and open a PR.

my bad @kamilbonna we still have GitHub loader but seems like we have a bug to fix somewhere.

This is fixed in https://github.com/dotansimha/graphql-code-generator/pull/9355


Suddenly getting panic_handler errors with no changes

My embassy project has been working fine since i set it up, but suddenly I started getting the following error:
error: `#[panic_handler]` function required, but not found

Ive tried adding to the top of main.rs
#[panic_handler] fn panic(_info: &core::panic::PanicInfo) -> ! { loop {} }

But then i get another error saying
`panic_handler` is ambiguous
ambiguous because of a name conflict with a builtin attribute
use `crate::panic_handler` to refer to this attribute macro unambiguously

Has anyone had this issue suddenly pop up?
What do I do to fix this?

error: #[panic_handler] function required, but not found
This pops up for me, if I don't have imported:
use {defmt_rtt as _, panic_probe as _};
But if you haven't changed anything ... maybe cargo clean and rebuild will help

Thanks!
use {defmt_rtt as _, panic_probe as _};
was the solution, it must have been removed somehow!


Library does not allow user to specify the preferred authentication option (e.g: XOAUTH2).

In this PR I added support for XOAUTH2 authentication mechanism as well as the ability to recommend a specific authentication method. In many cases, the developer already knows the authentication protocol that must be preferred.
I also added a fully working sample that puts all the pieces together into a compilable example.

That's really nice! Thank you for the feature @rcosnita!
I will bundle this in version 1.1.7 in the next days!

Thank you @jeremydumais.


Grid and table elements don't honor the alignment for content flow direction

Description
(This issue is hard to name, tried my best, please feel free to rename 😄)
Non-clipped text in a block vertically outgrows its container in the opposite direction of the alignment as expected (align: bottom → growing from bottom to top). Math and raw do too, but grids and tables always seem to outgrow their container in the ttb direction.
Use Case
I ran into this issue when setting up an "info block" for a basic DIN letter: the bottom edge needs to be fixed in the layout at a certain position, as the content extends, it must flow upward.
Example:

Example Code:
#place(dx: 0%, dy: 0mm,
  block(width: 30%, height: 10mm,
  fill:red,
  align(bottom, [A as in "as expected" \ B \ C \ D]
  ))
)

#place(dx: 33%, dy: 0mm,
  block(width: 30%, height: 10mm, fill:red,
  align(bottom,
  grid(
    rows: 1em,
    columns: 2,
    [A],[A],[B],[B],[C],[C],[D],[D]
  )))
)

#place(dx: 66%, dy: 0mm,
  block(width: 30%, height: 10mm, fill:red,
  align(bottom,
  table(
    columns: 2,
    rows: 1.5em,
    [A],[A],[B],[B],[C],[C],[D],[D]
  )))
)

#place(dx: 0%, dy: 50mm,
  block(width: 30%, height: 10mm,
  fill:red,
  align(bottom,
  $ sum_(k=0)^n k
    &= 1 + ... + n \
    &= (n(n+1)) / 2 $
  ))
)

#place(dx: 33%, dy: 50mm,
  block(width: 30%, height: 10mm, fill:red,
  align(bottom,
  raw("A
B
C
D"
  )))
)

// Doesn't work, played around
#place(dx: 66%, dy: 50mm,
  block(width: 30%, height: 10mm, fill:red,
  align(bottom,
  grid(
    rows: 1em,
    columns: 2,
    stack(dir: btt, [Just stack btt trial],[A],[B],[B],[C],[C],[D],[D]
  ))))
)

Real World Example (as in all other the cases above I assume the grid should grow in bottom-to-top direction):

I think this example demonstrates the cause of the issue:
#{
  show: block.with(width: 30%, height: 10mm, fill:red)
  show: align.with(bottom)
  show: block.with(stroke: 1pt)
  grid(
    rows: 1em,
    columns: 2,
    [A],[A],[B],[B],[C],[C],[D],[D]
  )
}

even though the grid is larger, its size is only the available space, not the required one. This leads to changing the alignment not actually changing the position, since the grid "fits" already. I think that should be considered a bug, not a feature request.
This leads me to the following workaround - put the grid into a block of the correct size:
#let grid-with-correct-size(..args) = context {
  let body = grid(..args)
  block(..measure(body), body)
}

#{
  show: block.with(width: 30%, height: 10mm, fill:red)
  show: align.with(bottom)
  grid-with-correct-size(
    rows: 1em,
    columns: 2,
    [A],[A],[B],[B],[C],[C],[D],[D]
  )
}

(the use of "correct" is a bit optimistic here; maybe you'd need to use layout() as well, or do something else. But I hope the principle of the workaround is clear)

Thank you for your reply, yes, the wrong feature request instead of bug label is on me – I was mentally in feature suggestion mode.
For others running into this: The suggested approach above doesn't work when the grid has fraction widths, but it works if measure is only used for the height. I've also had my own approach that tackled the bug a bit differently by moving the grid up. I'm also leaving it here as I don't yet know how both approaches will behave around pagebreaks etc.
#block(width: 150pt, height: 30pt, fill: red,
  context {
    let grid = grid(
      align: bottom,
      rows: 1em,
      columns: (1fr, 1fr),
      ..([Test], [Content],)*4
    )
    let diff = measure(grid).height - 30pt
    if diff > 0pt {
      align(bottom, move(dy: diff * -1, grid))
    } else {
      align(bottom, grid)
    }
  }
)

#v(5em)

#let grid-with-correct-size(..args) = context {
  let body = grid(..args)
  block(height: measure(body).height, body)
}

#{
  show: block.with(width: 30%, height: 10mm, fill:red)
  show: align.with(bottom)
  grid-with-correct-size(
    rows: 1em,
    columns: (1fr, 1fr),
    ..([Test], [Content],)*4
  )
}

This is what you should get:


[Bug]: protected static ?int $passwordTimeout = 360;

What happened?
Hello.
-1/2.
¿Where should be placed the following code line for configuring the password confirmation timeout, and is this time in seconds or in other time measure?
protected static ?int $passwordTimeout = 360;
Important to change the "[README.md" file and provide precise instructions on where this code line should be placed for this functionality to work, and indicate the time measure (¿seconds, minutes, ...?).
I placed it on:
class AdminPanelProvider extends PanelProvider
{
protected static ?int $passwordTimeout = 30;
...
and it doesn't work, it keeps allowing access after the first password confirmation.
-2/2.
Also, the password confirmation doesn't work for each independent Resource and after the first password confirmation in one of them I can access the other Resources where I've also specified the password confirmation to be used,
My Best Regards.
Cordially, with Respect and Appreciation.
Arturo Antonio DaCosta Soler
Engineer
How to reproduce the bug
I placed it on:
class AdminPanelProvider extends PanelProvider
{
protected static ?int $passwordTimeout = 30;
...
and it doesn't work, it keeps allowing access after the first password confirmation.
Package Version
1.0.0
PHP Version
8.3.6
Laravel Version
11.5.0
Which operating systems does with happen with?
Windows
Notes
No response

I'm sorry for the confusion, the $passwordTimout is intended to be placed on the pages and resources that uses the RequiresPasswordConfirmation trait and is defined by the amount of seconds.
I've made the necessary changes in the README.md for this.
Also, I've made a new release where you can set the password timeout when registering the plugin
RenewPasswordPlugin::make()
    ->passwordTimeout(10800) // Accepts int|null that represents the amount of seconds

Also, please see the note on the Usage section regarding the order of determining the password timeout.

the password confirmation doesn't work for each independent Resource and after the first password confirmation in one of them I can access the other Resources where I've also specified the password confirmation to be used

This is the intended behavior since this relies on Laravel's Password Confirmation. In my personal opinion, its a better UX to just have the user confirm their password once as it can get pretty annoying when you always have to re-enter your password when you have to do something.
With that said, I would still be open to the idea if you ever consider opening a PR for it.


HTTP requests for remote parameter values

This PR adds a mechanism to use HTTP requests to get values from a remote resource. A new Template.fetchHttp() method does an HTTP request for each parameter definition that does has a url property and returns a parameters object with the response results. The value used from a response can be altered by specifying a JSONPath query in an optional data property of the parameter definition. url can also be an object matching Node's http.request() options object. Examples can be found in the newly added tests. A new convenience Template.fetchAndRender() will call fetchHttp() and pass the results to render().
Items to review:

JSON/YAML interface (url and data properties); including names
Names of new methods:

fetchHttp()
fetchAndRender()

Also adding HTTP forwarding since it relied on some changes from the HTTP fetch updates.

Forced pushed updates:

Use pathQuery instead of data for the JSON path query string used on the HTTP fetch results
Do not error if JSON path query returns no results (instead return undefined)


Document piping runners into each other

Hi,
Apologies if I’ve missed it in the documentation.
Would it be possible to explain/illustrate how it would be possible to effectively execute a pipeline, with command_runner?
Example (made up): zcat in.txt.gz | tee -a out.txt | less.
I get that there’s a way to create queues, and potentially use those to redirect them to runners, but I don’t quite see a simple way of implementing the above.
Thanks!

command_runner opens a process, and attaches it's stdout/stderr to it in order to get necessary info back.
What you want is opening a process, which will get stdout/stderr from the subprocesses it will open.
Guess you want to run command_runner with shell=True argument which does exactly this ;)
Btw, next command_runner version will also support binding stdin directly to a process, in order to pipe some output directly into your python script which will pass it to the process command_runner opens.


Link for README in HtmlPreview is incorrect

The link for the README at the bottom of the HtmlPreview seems incorrect. It redirect to the HtmlPreview.
Here is the link used at the moment: https://htmlpreview.github.io/?https://github.com/Michaelangel007/d2_cheat_sheet/blob/master/index.html#wishlist
Here is the correct link that should be on the button: https://github.com/Michaelangel007/d2_cheat_sheet#wishlist

I did some reaserch about this issue and it seems to be a common issue with HTMLPreview.
Here is an issue directly from the HTMLPreview repo: Issue #43
I suggest to use an URL shortener to avoid this, here is the BitLy one: https://bit.ly/3jQigvp

Closing as this was fixed a while ago:
You can find a roadmap / wishlist of features in the Readme.

I have no plans to use an URL shortener as they make it harder to identity an URL is legit.


Question: how to log multiple Boolean transitions within one FB.

How should one log multiple Boolean signals in the same FB? Is it ok to use the same instance or do you require a new FB for each thing you want to log. Specifically, I'm looking at the TcLogTrig. For example, can I do the following:
FUNCTION_BLOCK FB_DigitalInputLogger
VAR_INPUT
        input1 : BOOL;
        input2 : BOOL;
	fbCoreLog : REFERENCE TO TcLogCore;
END_VAR
VAR
	fbTcLogTrig : TcLogTrig;
END_VAR

fbTcLogTrig.SetLogger(fbCoreLog);
fbTcLogTrig
	.OnRisingEdge(input1)
	.Information('Input 1 is TRUE');
fbTcLogTrig
	.OnFallingEdge(input1)
	.Information('Input 2 is FALSE');

fbTcLogTrig
	.OnRisingEdge(input2)
	.Information('Input 2 is TRUE');
fbTcLogTrig
	.OnFallingEdge(input2)
	.Information('Input 2 FALSE');

You have two options:

Use the standard logger and log OnCondition. You have to catch the rising edges yourself with R_TRIG and pass the result into the logger
Use a single instance of FB_LogTRIG for each of your variables


Release 0.5.6

Web wallet / FF ext /Chrome
 ext:
Generate new wallet - pass/ pass/ pass

Login into the wallet - pass/ pass/ pass

Change tokens - pass/ pass/ pass

Change currency - pass/ pass/ pass
Copy address - pass/ pass/ pass

Send Tip - pass/ pass/ pass

Send Tip to HTTP - pass (receive a warning)/ pass/ pass
Tip via Twitter/Youtube button - no for web wallet/pass/ pass
Retip - pass/ pass/ pass
Claim Tip - pass/ pass/ pass
Top Up with ae tokens - pass/ pass/ pass

Top Up with FT- pass/ pass/ pass
Connection with Jelly Swap -no for web wallet/ pass/ pass
Withdraw (Send) - pass, via Scan QR code - pass/ pass/ pass
Activity - pass, sort by date - pass/ pass/ pass(transactions are displayed with a delay)
Tokens: search - pass/ pass/ pass

Send - pass/ pass/ pass
Receive - pass/ pass/ pass

Names:

Set name pointer - pass/ pass/ pass
Extend - pass/ pass/ pass

Set as default name - pass/ pass/ pass
Register name - pass/ pass/ pass (in the testnet)

Invite link:

Create - pass/ pass/ pass

Top up - pass/ pass/ pass
Claim back - pass/ pass/ pass
Settings:

Language - pass/ pass/ pass

Security&Privacy - pass/ pass/ pass
Networks - pass/ pass/ pass

Permission Settings - pass/ pass/ pass
Remove account - pass/ pass/ pass
Error with the compiler in FF and Chrome extensions:

Error when creating Invite link with FT :

(it might be good to create such an option for users)
The ae tokens amount in the wallet(Chrome ext) changed randomly after claim transactions (696.42--->698.42--->696.42)
Search FT- tokens are displayed that do not contain search letters:

Web wallet / FF ext /Chrome
 ext:
Generate new wallet - pass/ pass/ pass

Login into the wallet - pass/ pass/ pass

Change tokens - pass/ pass/ pass

Change currency - pass/ pass/ pass
Copy address - pass/ pass/ pass

Send Tip - pass/ pass/ pass

Send Tip to HTTP - pass (receive a warning)/ pass/ pass
Tip via Twitter/Youtube button - no for web wallet/pass/ pass
Retip - pass/ pass/ pass
Claim Tip - pass/ pass/ pass
Top Up with ae tokens - pass/ pass/ pass

Top Up with FT- pass/ pass/ pass
Connection with Jelly Swap -no for web wallet/ pass/ pass
Withdraw (Send) - pass, via Scan QR code - pass/ pass/ pass
Activity - pass, sort by date - pass/ pass/ pass(transactions are displayed with a delay)
Tokens: search - pass/ pass/ pass

Send - pass/ pass/ pass
Receive - pass/ pass/ pass

Names:

Set name pointer - pass/ pass/ pass
Extend - pass/ pass/ pass

Set as default name - pass/ pass/ pass
Register name - pass/ pass/ pass (in the testnet)

Invite link:

Create - pass/ pass/ pass

Top up - pass/ pass/ pass
Claim back - pass/ pass/ pass
Settings:

Language - pass/ pass/ pass

Security&Privacy - pass/ pass/ pass
Networks - pass/ pass/ pass

Permission Settings - pass/ pass/ pass
Remove account - pass/ pass/ pass
Error with the compiler in FF and Chrome extensions:

Error when creating Invite link with FT :

(it might be good to create such an option for users)
The ae tokens amount in the wallet(Chrome ext) changed randomly after claim transactions (696.42--->698.42--->696.42)
Search FT- tokens are displayed that do not contain search letters:

Can you create issues about those? I don't think they are introduced by this release, so we can resolve them separately without blocking the release.

Web wallet / FF ext /Chrome
>  ext:
Generate new wallet - pass/ pass/ pass

> Login into the wallet - pass/ pass/ pass

> Change tokens - pass/ pass/ pass

> Change currency - pass/ pass/ pass
Copy address - pass/ pass/ pass

> Send Tip - pass/ pass/ pass

> Send Tip to HTTP - pass (receive a warning)/ pass/ pass
Tip via Twitter/Youtube button - no for web wallet/pass/ pass
Retip - pass/ pass/ pass
Claim Tip - pass/ pass/ pass
Top Up with ae tokens - pass/ pass/ pass

> Top Up with FT- pass/ pass/ pass
Connection with Jelly Swap -no for web wallet/ pass/ pass
Withdraw (Send) - pass, via Scan QR code - pass/ pass/ pass
Activity - pass, sort by date - pass/ pass/ pass(transactions are displayed with a delay)
Tokens: search - pass/ pass/ pass

> Send - pass/ pass/ pass
Receive - pass/ pass/ pass

> Names:

> Set name pointer - pass/ pass/ pass
Extend - pass/ pass/ pass

> Set as default name - pass/ pass/ pass
Register name - pass/ pass/ pass (in the testnet)

> Invite link:
>
Create - pass/ pass/ pass

> Top up - pass/ pass/ pass
Claim back - pass/ pass/ pass
Settings:
>
Language - pass/ pass/ pass
>
Security&Privacy - pass/ pass/ pass
Networks - pass/ pass/ pass

> Permission Settings - pass/ pass/ pass
Remove account - pass/ pass/ pass
Error with the compiler in FF and Chrome extensions:

Error when creating Invite link with FT :

(it might be good to create such an option for users)
The ae tokens amount in the wallet(Chrome ext) changed randomly after claim transactions (696.42--->698.42--->696.42)
Search FT- tokens are displayed that do not contain search letters:

Can you create issues about those? I don't think they are introduced by this release, so we can resolve them separately without blocking the release.

sure, here they are: https://github.com/aeternity/superhero-wallet/issues/846
https://github.com/aeternity/superhero-wallet/issues/847
https://github.com/aeternity/superhero-wallet/issues/849
https://github.com/aeternity/superhero-wallet/issues/804


Update README.md

Tabs instead of spaces
Remove redundant Caddyfile global example
Caddyfile syntax doesn't use =, and the quotes aren't necessary
Added a link to the libdns plugin - typically people will land on this repo, and we should give them a quick link to jump to the libdns plugin which should actually contain information about how to set up authentication

Just as a note, if a DNS plugin only needs a single credential (i.e. API token) then it usually makes sense to allow it on the same line as the module name. See the Cloudflare plugin for how it does it: https://github.com/caddy-dns/cloudflare/blob/91cf700356a1cd0127bcc4e784dd50ed85794af5/cloudflare.go#L41


Bug - ranks for imported games from OGS URL

Uploaded a game from OGS, and it brought in the wrong ranks.
https://online-go.com/game/11683142

This is the most unexpected bug report I've had in ages. The uploaded-to-GoKibitz game is this one? https://gokibitz.com/kifu/SyEddXQwG

It looks like the bug is on OGS's side. If you look at the text of the SGF download, it does indeed list black's rank as 6k and white's rank as 7k.
I'd recommend opening a bug with OGS. If I can help provide any further context or information, let me know!
(;FF[4]
GM[1]
DT[2018-02-15]
PC[OGS: http://online-go.com/game/11683142]
PB[nc88]
PW[power.real]
BR[6k]
WR[7k]
CP[online-go.com]
RE[B+R]
SZ[19]
KM[6.5]
RU[japanese]
C[power.real: hi
nc88: hi
]
;B[pc]
C[nc88: hi
]


Use zipper rather than jdk/jar in the thrift rules

Bazel has a built in command for building zips deterministically. Use that rather than the find + timestamp setting trick.
closes #282

I tested this final version on our largest internal repo and it seemed to work (and get rid of an annoying warning we saw when we had targets with no thrifts that only had external jars).

@johnynek looks good.
A) Can you squash the 6 commits which are related to this so I'll be able to rebase? I think I can't squash due to the shared commits and I'd rather not add all these intermediate commits.
B) Shouldn't we use the zipper also in the scala.bzl? I seem to remember we also do a song and dance there.

@ittaiz if we squash, then the 2 branches that depend on this will likely have a painful merge process. I would really like to just regular merge these as is to avoid that. Then the other two can be easily squash merged into the repo saving precious time.

oh, wait, you did merge regular, so I think I can squash merge this now into one commit in the github UI.
Trying.
Thanks!

yeah, that worked: https://github.com/bazelbuild/rules_scala/commit/ecbe5e7833651875810b4bad803430b06d2706ff

Glad to hear. Are you saying you chose squash in the github UI and it was smart enough to only squash the last six commits? Didn't know that.
Also, WDYT about B from above?

@ittaiz I agree: #288

Great. I might be confusing things here but can we use the zipper to
replace the JarCreator used by ScalacProcessor?
On Sat, Sep 30, 2017 at 10:06 PM P. Oscar Boykin<EMAIL_ADDRESS>wrote:

@ittaiz https://github.com/ittaiz I agree: #288
https://github.com/bazelbuild/rules_scala/issues/288
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/bazelbuild/rules_scala/pull/286#issuecomment-333329319,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABUIF8V9Ql8bBWzwBD-2u0_FvcRXLazOks5snpElgaJpZM4PpTdZ
.

@ittaiz I don't think we can because each action needs to make one output. We use JarCreator to produce single outputs from actions, but maybe I'm wrong. Maybe the action can write to a directory, and a subsequent action can read that directory.
That said, I don't see the big win there. That java code was also from bazel, it works and can be compiled with JIT so it is fast. I think spinning up a jvm to make an empty jar is definitely a bummer.

You're right on both counts. I agree.


[extension] Compiling the JIT cpu_adam_x86 kernel during runtime now

When I run the training script, as shown in the screenshot, the code is stuck here and not progressing.

This is usefull: https://github.com/hpcaitech/ColossalAI/issues/3496#issuecomment-1500436389

I have executed the following command：
conda install -c conda-forge gcc=9.5.0 gxx=9.5.0
git clone https://github.com/hpcaitech/ColossalAI.git
cd ColossalAI
CUDA_EXT=1 pip install .
but the issue persists. Upon investigation, I found that the problem occurs when the code reaches the optimizer setup.

Are you uninstall colossalai first? Or try rm -r  ~/.cache/colossalai/torch_extensions/.

Are you uninstall colossalai first? Or try rm -r ~/.cache/colossalai/torch_extensions/.
Thank you very much, this solved my problem

Are you uninstall colossalai first? Or try rm -r ~/.cache/colossalai/torch_extensions/.

Thank you very much, this solved my problem


STA password with certain characters needs URL encoding in web i/f.

Thanks for the 1.1.3 release. Nice work!
On updating, I connected mine to another STA and noticed this...
STA password must have URL encoding if spaces or some other characters involved. Spaces must be replaced with %20, percent sign "%" with %25 etc. I have not tested which characters are problematic other than those cited here.
For example, connecting esp32_nat_router_plus to a STA, the password "This is a 100% good password." must be URL encoded thus "This%20is%20a%20100%25%20good%20password." for entry into the web interface.
Expected behaviour
In the above example, it should be possible to enter the password into the web interface without URL encoding.
Not a biggie once you know, and as long as you have reference available.
If not trivial to fix, maybe clues and a table of character->URL-encoded should be added in the web interface for 1.1.4

The above is true for the "SCAN" tab, which ought to be the quick and easy way to connect to a new AP on the fly.
The issue presents differently in the "SETTINGS" tab, where passwords with spaces work fine without URL percent encoding by just editing the "Advance settings", and changing the SSID and password fields.
BUT, if there's a percent in the password, it must still be URL encoded as %25 to function.
Example (sans quotes).
Entering "This is a 100% cool." into the password field in settings tab will return the page with "This is 100"
Entering "This is 100%25 cool." there will return the page with "This is 100% cool.", and the STA will be connected on reboot.

Bug fixed


ERROR:tensorflow:Remote function on worker failed with UnavailableError():failed to connect to all addresses

Issue type
Bug
Have you reproduced the bug with TensorFlow Nightly?
No
Source
source
TensorFlow version
2.15.0.post1
Custom code
Yes
OS platform and distribution
Manjaro Linux 23.1.3, Linux Ubuntu 22.04
Mobile device
No response
Python version
3.11.6
Bazel version
No response
GCC/compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current behavior?
Hi guys. After I try to distribute the training to an external virtual machine, after the first epoch of training, such errors appear. I tried to change from_generator to from_tensor_slices, as in this issue #39122, but the error remained the same
Standalone code to reproduce the issue
import json
import os
import sys
import pathlib
from keras.preprocessing.image import ImageDataGenerator
from tensorflow import keras
from tensorflow.keras import layers
import tensorflow as tf
from tensorflow.keras.applications import ResNet50
from keras.layers import  Dropout, Flatten, Dense

os.environ["GRPC_FAIL_FAST"] = "use_caller"
os.environ["CUDA_VISIBLE_DEVICES"] = "-1"

cluster_resolver = tf.distribute.cluster_resolver.TFConfigClusterResolver()

data_dir = "/home/Kompot/Distributed_calculations/archive/raw-img/"
data_dir = pathlib.Path(data_dir)

train_path='./output/train/'
val_path='./output/val'
test_path='./output/test'

class_names=os.listdir(train_path)

NUM_CLASSES = len(class_names)
BATCH_SIZE = 32
IMG_DIM = 224

train_datagen = ImageDataGenerator(zoom_range=0.15,width_shift_range=0.2,height_shift_range=0.2,shear_range=0.15)
train_generator = train_datagen.flow_from_directory(train_path,target_size=(IMG_DIM, IMG_DIM),batch_size=BATCH_SIZE,shuffle=True)

def dataset_fn(input_context):

    global train_generator

    dataset = tf.data.Dataset.from_generator(
        lambda: train_generator,
        output_signature=(
            tf.TensorSpec(shape=[BATCH_SIZE, IMG_DIM, IMG_DIM, 3], dtype=tf.float32),
            tf.TensorSpec(shape=[BATCH_SIZE, NUM_CLASSES], dtype=tf.float32)
        )
    )

    # dataset = dataset.shard(
    #     input_context.num_input_pipelines, input_context.input_pipeline_id
    # ).prefetch(buffer_size=tf.data.experimental.AUTOTUNE)

    #list(dataset.as_numpy_iterator())

    return dataset

input_dataset = tf.keras.utils.experimental.DatasetCreator(dataset_fn=dataset_fn)

print("Waiting for workers and pss to connect...")

strategy = tf.distribute.experimental.ParameterServerStrategy(cluster_resolver=cluster_resolver)

with strategy.scope():
    modelT = ResNet50(
        input_shape=(224, 224, 3),
        include_top=False,
        weights='imagenet'
    )

    for layers in modelT.layers:
        layers.trainable = False

    y = Flatten()(modelT.output)
    y = Dropout(0.5)(y)
    y = Dense(10, activation="softmax")(y)

    modelT = keras.Model(modelT.input, y)
    modelT.compile(loss="categorical_crossentropy", optimizer="adam", metrics=["accuracy"], steps_per_execution=10)

working_dir = './callbacks'
log_dir = os.path.join(working_dir, 'log')
ckpt_filepath = os.path.join(working_dir, 'ckpt')
backup_dir = os.path.join(working_dir, 'backup')

callbacks = [
    tf.keras.callbacks.TensorBoard(log_dir=log_dir),
    tf.keras.callbacks.ModelCheckpoint(filepath=ckpt_filepath),
    tf.keras.callbacks.BackupAndRestore(backup_dir=backup_dir),
]

modelT.fit(input_dataset, epochs=10, steps_per_epoch=10, callbacks=callbacks)

Relevant log output
2024-01-28 19:57:50.239001: W ./tensorflow/core/distributed_runtime/eager/destroy_tensor_handle_node.h:59] Ignoring an error encountered when deleting remote tensors handles: INVALID_ARGUMENT: Unable to find the relevant tensor remote_handle: Op ID: 2377, Output num: 1

Additional GRPC error information from remote target /job:worker/replica:0/task:1 while calling /tensorflow.eager.EagerService/Enqueue:
:{"created":"@1706461070.235675363","description":"Error received from peer ipv4:<IP_ADDRESS>:8000","file":"external/com_github_grpc_grpc/src/core/lib/surface/call.cc","file_line":1056,"grpc_message":"Unable to find the relevant tensor remote_handle: Op ID: 2377, Output num: 1","grpc_status":3} [type.googleapis.com/tensorflow.core.platform.ErrorSourceProto='\x08\x05']

ERROR:tensorflow:Remote function on worker /job:worker/replica:0/task:1 failed with UnavailableError():failed to connect to all addresses
Additional GRPC error information from remote target /job:ps/replica:0/task:0/device:CPU:0 while calling /tensorflow.eager.EagerService/Enqueue:
:{"created":"@1706461080.700263959","description":"Failed to pick subchannel","file":"external/com_github_grpc_grpc/src/core/ext/filters/client_channel/client_channel.cc","file_line":3941,"referenced_errors":[{"created":"@1706461080.700258542","description":"failed to connect to all addresses","file":"external/com_github_grpc_grpc/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":393,"grpc_status":14}]}
Additional GRPC error information from remote target /job:worker/replica:0/task:1 while calling /tensorflow.eager.EagerService/Enqueue:
:{"created":"@1706461070.190317374","description":"Error received from peer ipv4:<IP_ADDRESS>:8000","file":"external/com_github_grpc_grpc/src/core/lib/surface/call.cc","file_line":1056,"grpc_message":"failed to connect to all addresses\nAdditional GRPC error information from remote target /job:ps/replica:0/task:0/device:CPU:0 while calling /tensorflow.eager.EagerService/Enqueue:\n:{"created":"@1706461080.700263959","description":"Failed to pick subchannel","file":"external/com_github_grpc_grpc/src/core/ext/filters/client_channel/client_channel.cc","file_line":3941,"referenced_errors":[{"created":"@1706461080.700258542","description":"failed to connect to all addresses","file":"external/com_github_grpc_grpc/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":393,"grpc_status":14}]}","grpc_status":14} [Op:__inference_train_function_16262]
It is treated as a transient connectivity failure for now.

ERROR:tensorflow:Remote function on worker /job:worker/replica:0/task:1 failed with UnavailableError():failed to connect to all addresses
Additional GRPC error information from remote target /job:ps/replica:0/task:0/device:CPU:0 while calling /tensorflow.eager.EagerService/Enqueue:
:{"created":"@1706461080.700263959","description":"Failed to pick subchannel","file":"external/com_github_grpc_grpc/src/core/ext/filters/client_channel/client_channel.cc","file_line":3941,"referenced_errors":[{"created":"@1706461080.700258542","description":"failed to connect to all addresses","file":"external/com_github_grpc_grpc/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":393,"grpc_status":14}]}
Additional GRPC error information from remote target /job:worker/replica:0/task:1 while calling /tensorflow.eager.EagerService/Enqueue:
:{"created":"@1706461070.190317374","description":"Error received from peer ipv4:<IP_ADDRESS>:8000","file":"external/com_github_grpc_grpc/src/core/lib/surface/call.cc","file_line":1056,"grpc_message":"failed to connect to all addresses\nAdditional GRPC error information from remote target /job:ps/replica:0/task:0/device:CPU:0 while calling /tensorflow.eager.EagerService/Enqueue:\n:{"created":"@1706461080.700263959","description":"Failed to pick subchannel","file":"external/com_github_grpc_grpc/src/core/ext/filters/client_channel/client_channel.cc","file_line":3941,"referenced_errors":[{"created":"@1706461080.700258542","description":"failed to connect to all addresses","file":"external/com_github_grpc_grpc/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":393,"grpc_status":14}]}","grpc_status":14} [Op:__inference_train_function_16262]
It is treated as a transient connectivity failure for now.

ERROR:tensorflow:Remote function on worker /job:worker/replica:0/task:1 failed with UnavailableError():failed to connect to all addresses
Additional GRPC error information from remote target /job:ps/replica:0/task:0/device:CPU:0 while calling /tensorflow.eager.EagerService/Enqueue:
:{"created":"@1706461100.700221948","description":"Failed to pick subchannel","file":"external/com_github_grpc_grpc/src/core/ext/filters/client_channel/client_channel.cc","file_line":3941,"referenced_errors":[{"created":"@1706461100.700218191","description":"failed to connect to all addresses","file":"external/com_github_grpc_grpc/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":393,"grpc_status":14}]}
Additional GRPC error information from remote target /job:worker/replica:0/task:1 while calling /tensorflow.eager.EagerService/Enqueue:
:{"created":"@1706461090.380032245","description":"Error received from peer ipv4:<IP_ADDRESS>:8000","file":"external/com_github_grpc_grpc/src/core/lib/surface/call.cc","file_line":1056,"grpc_message":"failed to connect to all addresses\nAdditional GRPC error information from remote target /job:ps/replica:0/task:0/device:CPU:0 while calling /tensorflow.eager.EagerService/Enqueue:\n:{"created":"@1706461100.700221948","description":"Failed to pick subchannel","file":"external/com_github_grpc_grpc/src/core/ext/filters/client_channel/client_channel.cc","file_line":3941,"referenced_errors":[{"created":"@1706461100.700218191","description":"failed to connect to all addresses","file":"external/com_github_grpc_grpc/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":393,"grpc_status":14}]}","grpc_status":14} [Op:__inference_train_function_16262]
It is treated as a transient connectivity failure for now.

ERROR:tensorflow:Remote function on worker /job:worker/replica:0/task:1 failed with UnavailableError():failed to connect to all addresses
Additional GRPC error information from remote target /job:ps/replica:0/task:0/device:CPU:0 while calling /tensorflow.eager.EagerService/Enqueue:
:{"created":"@1706461100.700221948","description":"Failed to pick subchannel","file":"external/com_github_grpc_grpc/src/core/ext/filters/client_channel/client_channel.cc","file_line":3941,"referenced_errors":[{"created":"@1706461100.700218191","description":"failed to connect to all addresses","file":"external/com_github_grpc_grpc/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":393,"grpc_status":14}]}
Additional GRPC error information from remote target /job:worker/replica:0/task:1 while calling /tensorflow.eager.EagerService/Enqueue:
:{"created":"@1706461090.380032245","description":"Error received from peer ipv4:<IP_ADDRESS>:8000","file":"external/com_github_grpc_grpc/src/core/lib/surface/call.cc","file_line":1056,"grpc_message":"failed to connect to all addresses\nAdditional GRPC error information from remote target /job:ps/replica:0/task:0/device:CPU:0 while calling /tensorflow.eager.EagerService/Enqueue:\n:{"created":"@1706461100.700221948","description":"Failed to pick subchannel","file":"external/com_github_grpc_grpc/src/core/ext/filters/client_channel/client_channel.cc","file_line":3941,"referenced_errors":[{"created":"@1706461100.700218191","description":"failed to connect to all addresses","file":"external/com_github_grpc_grpc/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":393,"grpc_status":14}]}","grpc_status":14} [Op:__inference_train_function_16262]
It is treated as a transient connectivity failure for now.

ERROR:tensorflow: /job:worker/task:1 encountered the following error when processing closure: UnavailableError():failed to connect to all addresses
Additional GRPC error information from remote target /job:ps/replica:0/task:0/device:CPU:0 while calling /tensorflow.eager.EagerService/Enqueue:
:{"created":"@1706461120.700266787","description":"Failed to pick subchannel","file":"external/com_github_grpc_grpc/src/core/ext/filters/client_channel/client_channel.cc","file_line":3941,"referenced_errors":[{"created":"@1706461120.700262275","description":"failed to connect to all addresses","file":"external/com_github_grpc_grpc/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":393,"grpc_status":14}]}
Additional GRPC error information from remote target /job:worker/replica:0/task:1 while calling /tensorflow.eager.EagerService/Enqueue:
:{"created":"@1706461110.181780625","description":"Error received from peer ipv4:<IP_ADDRESS>:8000","file":"external/com_github_grpc_grpc/src/core/lib/surface/call.cc","file_line":1056,"grpc_message":"failed to connect to all addresses\nAdditional GRPC error information from remote target /job:ps/replica:0/task:0/device:CPU:0 while calling /tensorflow.eager.EagerService/Enqueue:\n:{"created":"@1706461120.700266787","description":"Failed to pick subchannel","file":"external/com_github_grpc_grpc/src/core/ext/filters/client_channel/client_channel.cc","file_line":3941,"referenced_errors":[{"created":"@1706461120.700262275","description":"failed to connect to all addresses","file":"external/com_github_grpc_grpc/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":393,"grpc_status":14}]}","grpc_status":14} [Op:__inference_train_function_16262]

ERROR:tensorflow: /job:worker/task:1 encountered the following error when processing closure: UnavailableError():failed to connect to all addresses
Additional GRPC error information from remote target /job:ps/replica:0/task:0/device:CPU:0 while calling /tensorflow.eager.EagerService/Enqueue:
:{"created":"@1706461120.700266787","description":"Failed to pick subchannel","file":"external/com_github_grpc_grpc/src/core/ext/filters/client_channel/client_channel.cc","file_line":3941,"referenced_errors":[{"created":"@1706461120.700262275","description":"failed to connect to all addresses","file":"external/com_github_grpc_grpc/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":393,"grpc_status":14}]}
Additional GRPC error information from remote target /job:worker/replica:0/task:1 while calling /tensorflow.eager.EagerService/Enqueue:
:{"created":"@1706461110.181780625","description":"Error received from peer ipv4:<IP_ADDRESS>:8000","file":"external/com_github_grpc_grpc/src/core/lib/surface/call.cc","file_line":1056,"grpc_message":"failed to connect to all addresses\nAdditional GRPC error information from remote target /job:ps/replica:0/task:0/device:CPU:0 while calling /tensorflow.eager.EagerService/Enqueue:\n:{"created":"@1706461120.700266787","description":"Failed to pick subchannel","file":"external/com_github_grpc_grpc/src/core/ext/filters/client_channel/client_channel.cc","file_line":3941,"referenced_errors":[{"created":"@1706461120.700262275","description":"failed to connect to all addresses","file":"external/com_github_grpc_grpc/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":393,"grpc_status":14}]}","grpc_status":14} [Op:__inference_train_function_16262]

ERROR:tensorflow:Start cancelling closures due to error UnavailableError(): failed to connect to all addresses
Additional GRPC error information from remote target /job:ps/replica:0/task:0/device:CPU:0 while calling /tensorflow.eager.EagerService/Enqueue:
:{"created":"@1706461120.700266787","description":"Failed to pick subchannel","file":"external/com_github_grpc_grpc/src/core/ext/filters/client_channel/client_channel.cc","file_line":3941,"referenced_errors":[{"created":"@1706461120.700262275","description":"failed to connect to all addresses","file":"external/com_github_grpc_grpc/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":393,"grpc_status":14}]}
Additional GRPC error information from remote target /job:worker/replica:0/task:1 while calling /tensorflow.eager.EagerService/Enqueue:
:{"created":"@1706461110.181780625","description":"Error received from peer ipv4:<IP_ADDRESS>:8000","file":"external/com_github_grpc_grpc/src/core/lib/surface/call.cc","file_line":1056,"grpc_message":"failed to connect to all addresses\nAdditional GRPC error information from remote target /job:ps/replica:0/task:0/device:CPU:0 while calling /tensorflow.eager.EagerService/Enqueue:\n:{"created":"@1706461120.700266787","description":"Failed to pick subchannel","file":"external/com_github_grpc_grpc/src/core/ext/filters/client_channel/client_channel.cc","file_line":3941,"referenced_errors":[{"created":"@1706461120.700262275","description":"failed to connect to all addresses","file":"external/com_github_grpc_grpc/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":393,"grpc_status":14}]}","grpc_status":14} [Op:__inference_train_function_16262]

ERROR:tensorflow:Start cancelling closures due to error UnavailableError(): failed to connect to all addresses
Additional GRPC error information from remote target /job:ps/replica:0/task:0/device:CPU:0 while calling /tensorflow.eager.EagerService/Enqueue:
:{"created":"@1706461120.700266787","description":"Failed to pick subchannel","file":"external/com_github_grpc_grpc/src/core/ext/filters/client_channel/client_channel.cc","file_line":3941,"referenced_errors":[{"created":"@1706461120.700262275","description":"failed to connect to all addresses","file":"external/com_github_grpc_grpc/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":393,"grpc_status":14}]}
Additional GRPC error information from remote target /job:worker/replica:0/task:1 while calling /tensorflow.eager.EagerService/Enqueue:
:{"created":"@1706461110.181780625","description":"Error received from peer ipv4:<IP_ADDRESS>:8000","file":"external/com_github_grpc_grpc/src/core/lib/surface/call.cc","file_line":1056,"grpc_message":"failed to connect to all addresses\nAdditional GRPC error information from remote target /job:ps/replica:0/task:0/device:CPU:0 while calling /tensorflow.eager.EagerService/Enqueue:\n:{"created":"@1706461120.700266787","description":"Failed to pick subchannel","file":"external/com_github_grpc_grpc/src/core/ext/filters/client_channel/client_channel.cc","file_line":3941,"referenced_errors":[{"created":"@1706461120.700262275","description":"failed to connect to all addresses","file":"external/com_github_grpc_grpc/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":393,"grpc_status":14}]}","grpc_status":14} [Op:__inference_train_function_16262]

Traceback (most recent call last):
  File "/home/Kompot/Distributed_calculations/./coordinator.py", line 120, in <module>
    modelT.fit(input_dataset, epochs=10, steps_per_epoch=10, callbacks=callbacks)
  File "/home/Kompot/Distributed_calculations/venv/lib/python3.11/site-packages/keras/src/utils/traceback_utils.py", line 70, in error_handler
    raise e.with_traceback(filtered_tb) from None
  File "/usr/lib/python3.11/contextlib.py", line 144, in __exit__
    next(self.gen)
^^^^^^^^^^^^^^^^^^
tensorflow.python.framework.errors_impl.UnavailableError: failed to connect to all addresses

Additional GRPC error information from remote target /job:ps/replica:0/task:0/device:CPU:0 while calling /tensorflow.eager.EagerService/Enqueue:
:{"created":"@1706461120.700266787","description":"Failed to pick subchannel","file":"external/com_github_grpc_grpc/src/core/ext/filters/client_channel/client_channel.cc","file_line":3941,"referenced_errors":[{"created":"@1706461120.700262275","description":"failed to connect to all addresses","file":"external/com_github_grpc_grpc/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":393,"grpc_status":14}]}
Additional GRPC error information from remote target /job:worker/replica:0/task:1 while calling /tensorflow.eager.EagerService/Enqueue:
:{"created":"@1706461110.181780625","description":"Error received from peer ipv4:<IP_ADDRESS>:8000","file":"external/com_github_grpc_grpc/src/core/lib/surface/call.cc","file_line":1056,"grpc_message":"failed to connect to all addresses\nAdditional GRPC error information from remote target /job:ps/replica:0/task:0/device:CPU:0 while calling /tensorflow.eager.EagerService/Enqueue:\n:{"created":"@1706461120.700266787","description":"Failed to pick subchannel","file":"external/com_github_grpc_grpc/src/core/ext/filters/client_channel/client_channel.cc","file_line":3941,"referenced_errors":[{"created":"@1706461120.700262275","description":"failed to connect to all addresses","file":"external/com_github_grpc_grpc/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":393,"grpc_status":14}]}","grpc_status":14} [Op:__inference_train_function_16262]
2024-01-28 19:58:41.874556: I tensorflow/core/framework/local_rendezvous.cc:421] Local rendezvous recv item cancelled. Key hash:<PHONE_NUMBER>5121356058

.


Automatically enable high contrast theme when enabled in Windows

Newer electron version gives us API to find out if Windows runs with HC theme and also adds an event to test the change.
Some early experiments:

The only question is, do we ever expect a user to have Windows HC theme enabled but not in Code. And also the other way around.
Maybe @stevencl @bgashler1 @seanmcbreen @chrisdias have some experiences from how it works in VS.

integration.ts
// High Contrast Events
let nonHCTheme = this.themeService.getColorTheme();
ipc.on('vscode:enterHighContrast', (event) => {
	this.partService.joinCreation().then(() => {
		const currentColorTheme = this.themeService.getColorTheme();
		if (currentColorTheme !== 'hc-black') {
			nonHCTheme = this.themeService.getColorTheme();
		}
		this.themeService.setColorTheme('hc-black', false);
	});
});

ipc.on('vscode:leaveHighContrast', (event) => {
	this.partService.joinCreation().then(() => {
		this.themeService.setColorTheme(nonHCTheme, false);
	});
});

windows.ts
// React to HC color scheme changes (Windows)
if (platform.isWindows) {
	systemPreferences.on('inverted-color-scheme-changed', () => {
		if (systemPreferences.isInvertedColorScheme()) {
			this.sendToAll('vscode:enterHighContrast');
		} else {
			this.sendToAll('vscode:leaveHighContrast');
		}
	});
}

It would seem that VS switches to high contrast theme as soon as Windows changes and then doesn't allow you to change theme to anything else. When Windows is not in high contrast theme, it appears that you can't set VS in high contrast and can only choose the blue, light or dark themes.

My idea was to:

switch to HC theme if windows switches to HC theme while the app is running
switch back to the previously used theme when windows switches back
enable the HC theme if you start VS Code in windows HC mode

I would still allow you to pick the HC theme without running windows in HC mode. And I would also allow you to change the theme anytime away from HC even if windows is running in HC mode.
The only thing that might annoy people is the fact that we startup in HC theme when windows runs in HC mode even if the user previously maybe disabled HC theme in VS Code. Not sure if that would be an issue.

Verification:

starting Code when Windows is turned to HC mode opens Code in HC mode
changing Windows to HC mode while Code is running switches Code into HC mode


Glibc 2.14 Required!

Move .so Extension to other machines
1.
When I Wrote extension And Compile it In [UBUNTU 14.0 in php 5.5 dev] and i move my extension [*.so] File into CentOs 6.6 and Include This , php show [`GLIBC_2.14' not found] Error!

i can't install re2c in CentOs For Install zephir in this new machine to re compile it into this new machine,
How to i create zephir extension for CentOs 6.6 ?

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/29200409-glibc-2-14-required?utm_campaign=plugin&utm_content=tracker%2F280146&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F280146&utm_medium=issues&utm_source=github).

GLIBC_2.14 not published for CentOs 6.6!!!
And Exported zephir extension required it!
zephir not have active Forum , I have many Problems by it.

If you expect it to work that way you seem to have a fundamentally wrong understanding of what should work. If you want it to work on any linux, you need to ensure to either only use components of libc which are provided by the older libc versions (and therefore no linking against newer versions happens) or compile against an older libc version. This is a general issue of compiling portable binaries and not at all specific to zephir.

you can simply compile re2c for your linux distribution, or take the binary from an linux, where it was compiled using equal or lower libc features regarding versioning.

OK!
So I compile zephir extension in Older Linux distribution, glibc<2.14 for older  Linux distribution,And compile it in new  Linux distribution For new machines!
I am able to install re2c but zephir Show many Errors:
install zephir. Install? And When i Send Y or y
...
**parser.c:8462: error: YYMINORTYPE has no member named yy383 parser.c:8462: error: YYMINORTYPE has no member named yy383 parser.c:8679: error: xxparserstatus has no member named scanner_state parser.c:8870: error: YYMINORTYPE has no member named yy383 parser.c:8870: error: YYMINORTYPE has no member named yy383 parser.c:8870: error: xx_parser_status has no
...


AA :: Fix issue with Event and empty fields (on edit)

English translation is empty when updating article

 AA Event :: English translation not being filled when updating article


RichTextLabel.get_content_height() doesn't work

Godot version
3.4.4.stable
System information
Windows 10
Issue description
I've filled a richtextlabel with text or bbcode. get_content_height returns bogus values like -1404838 or even 0 in some cases.
I'd try with different fonts and sizes with the [font] tag in bbcode too.
Steps to reproduce
Create rich text labels and use RichTextLbale.get_content_height()
Or try the attached project and read the print outputs.
Minimal reproduction project
richtextlabeltest.zip

Can you try 3.5.rc3? This should be fixed now: https://github.com/godotengine/godot/issues/52634


Explain underscore names.

Fix #67

@supadrupa, please review

:tada: This PR is included in version 1.0.1 :tada:
The release is available on:

1.0.1
GitHub release

Your semantic-release bot :package::rocket:


Implement the OPI task client

Implement task creation in the OPI task client. Note that we do not support other task operations yet, such as cancel, i.e. tasks CATS tests would fail if run against CF+Eirini deployment.
The task client desire_task method has its signature changed to
receive the task rather than the task definition. This caused the bbs
task client to build the task definition via an injected recipe builder.
This also brought some changes in the dependency locator wiring.
[#171785772]
Co-authored-by: Julian Skupnjak<EMAIL_ADDRESS>Co-authored-by: Georgi Sabev<EMAIL_ADDRESS>Co-authored-by: Danail Branekov<EMAIL_ADDRESS>Co-authored-by: Giuseppe Capizzi<EMAIL_ADDRESS>

[X] I have reviewed the contributing guide

[X] I have viewed, signed, and submitted the Contributor License Agreement

[X] I have made this pull request to the master branch

[X] I have run all the unit tests using bundle exec rake

[X] I have run CF Acceptance Tests

@aashah Followed your recommendations and pushed a commit with these changes.
Kind regards,
Georgi && @kieron-pivotal

We need the task name as well for this story(https://www.pivotaltracker.com/story/show/171785787) so we sneaked it in this PR to minimise the back and forth. Hope you don't mind :)

When talking with the Release Integration team about another feature, they expressed concerns around integrating features that don't have the cleanup part of the lifecycle implemented.  For example, if I'm understanding correctly, with this PR if you delete an app with running tasks, those tasks will be left running.  I think we would prefer to have cancel be done as either part of this PR or a following PR so we can avoid the issue.
Any chance you all will be able to get to the cancel part of this feature soon?

As we discussed in our sync, we will merge this after the delete task is implemented, whether that's in another pr or this one

Hello, we have implemented the task cancellation bit in Eirini. We managed to successfully execute task creation/termination CATs successfully having this PR applied. Therefore, please proceed with reviewing.
Thank you!


Addition of workflow to add issues and PRs to organization projects

Fixes #305
Description
Created a workflow to

automatically add new issues created in this repository to the CC Search backlog GitHub project.
automatically add new PRs created in this repository to the CC Search active sprint GitHub project.

Other information

I have attempted the bonus questions, but have not found a solution yet.
Checklist

[ ] My pull request has a descriptive title (not a vague title like Update index.md).
[ ] My pull request targets the master branch of the repository.
[ ] My commit messages follow best practices.
[ ] I added tests for the changes I made (if applicable).
[ ] I added or updated documentation (if applicable).
[ ] I tried running the project locally and verified that there are no
visible errors.

Developer Certificate of Origin
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

@kgodey Please could you have a look?

@kgodey I have done that. Please have a look.

Thanks @mjprince!


Remove contract

Add Public class for public api. #31

Codecov Report

Merging #46 into master will increase coverage by 1.91%.
The diff coverage is 43.13%.

@@             Coverage Diff              @@
##             master      #46      +/-   ##
============================================
+ Coverage     27.03%   28.94%   +1.91%
- Complexity       60       66       +6
============================================
  Files            39       38       -1
  Lines           529      532       +3
  Branches         65       66       +1
============================================
+ Hits            143      154      +11
+ Misses          377      367      -10
- Partials          9       11       +2

Impacted Files
Coverage Δ
Complexity Δ

...java/com/sys1yagi/mastodon4j/api/method/Reports.kt
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

...ava/com/sys1yagi/mastodon4j/api/method/Accounts.kt
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

...n/java/com/sys1yagi/mastodon4j/api/method/Mutes.kt
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

...ava/com/sys1yagi/mastodon4j/api/method/Statuses.kt
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

...va/com/sys1yagi/mastodon4j/api/method/Timelines.kt
0% <0%> (-51.73%)
0 <0> (-5)

...om/sys1yagi/mastodon4j/api/method/Notifications.kt
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

...java/com/sys1yagi/mastodon4j/api/method/Follows.kt
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

...n/java/com/sys1yagi/mastodon4j/api/method/Media.kt
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

...m/sys1yagi/mastodon4j/api/method/FollowRequests.kt
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

.../java/com/sys1yagi/mastodon4j/api/method/Blocks.kt
71.42% <100%> (+71.42%)
2 <1> (+2)
:arrow_up:

... and 7 more

Continue to review full report at Codecov.

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


Update Updates page for DCP 20

New projects (12):

A Single-Cell Characterization of Human Post-implantation Embryos Cultured In Vitro Delineates Morphogenesis in Primary Syncytialization
A Single-Cell Transcriptomic Atlas of Human Skin Aging.
A human breast atlas integrating single-cell proteomics and transcriptomics
Defining Transcriptional Signatures of Human Hair Follicle Cell States
Expansion of Fcγ Receptor IIIa-Positive Macrophages, Ficolin 1-Positive Monocyte-Derived Dendritic Cells, and Plasmacytoid Dendritic Cells Associated With Severe Skin Disease in Systemic Sclerosis
Mapping the developing human immune system across organs
Robust temporal map of human in vitro myelopoiesis using single-cell genomics.
Single cell transcriptomics of human epidermis identifies basal stem cell transition states.
Single nucleus RNA-sequencing defines unexpected diversity of cholinergic neuron types in the adult mouse spinal cord.
Single-Cell RNA Sequencing Maps Endothelial Metabolic Plasticity in Pathological Angiogenesis.
Single-cell transcriptomic and proteomic analysis of Parkinson’s disease brains
The myogenesis program drives clonal selection and drug resistance in rhabdomyosarcoma

Updated Projects (5):

Single-cell RNA-Seq reveals a developmental atlas of human prefrontal cortex | Added files: 39 txt.gz, 1 xlsx
Profiling of transcribed cis-regulatory elements in single cells.
Single-Cell Transcriptomic Analysis of Human Lung Provides Insights into the Pathobiology of Pulmonary Fibrosis.
Spatial multi-omic map of human myocardial infarction
Spatial proteogenomics reveals distinct and evolutionarily-conserved hepatic macrophage niches

Link to PR: https://github.com/DataBiosphere/data-portal/pull/1786


Missing Error Check in function SSL_new()

Function SSL_new() returns NULL if the creation of a new SSL structure failed. However , the return value of function SSL_new() is not checked. See the following code:
line : 1189
https://github.com/apache/trafficserver/blob/5ee6a5f554880b02535e6ee84268df922e87274d/tools/http_load/http_load.c#L1189-L1197
===============================================================================
We find the return value of this call been checked in openssl project with the version of openssl 1.1.2.
Such as in openssl/apps folder
line :  206
Ref : https://github.com/openssl/openssl/blob/0db957dbbcf6a432086ab913378c23636d8c374c/apps/ciphers.c#L206-L208
line 206:    ssl = SSL_new(ctx);
line 207:    if (ssl == NULL)
line 208:       goto err;

Chi Li, Zuxing Gu, Jiecheng Wu

Relates to #4292

@lc3412 Did you want to make a PR for this?

Hi, I want to work on this issue. How to get started?

@shinrich is going to put up a PR for this


If a tsc command is not able to run because there is no tsconfig.json file give the user some sort of hint about that

Suggestion

🔍 Search Terms

tsconfig.json
✅ Viability Checklist

My suggestion meets these guidelines:

[x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
[x] This wouldn't change the runtime behavior of existing JavaScript code
[x] This could be implemented without emitting different JS based on the types of the expressions
[x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
[?] This feature would agree with the rest of TypeScript's Design Goals.

⭐ Suggestion
Here's what I did:
✗ cat package.json | grep type
    "typecheck": "tsc --noEmit",
    "typescript": "~4.8.2",

✗ npx which tsc
<EMAIL_ADDRESS>
✗ yarn typecheck

Result: I get the help text, which implies that I used an invalid CLI flag. But the CLI flag I used is in the help text! So it was very confusing.
Then I realized that this is a monorepo and it doesn't have a root tsconfig file:
✗ ls -alh | grep tsconfig

✗

I suspect that's the issue.

If tsc can't proceed because there is no config file that it is able to find, say so. Don't emit the help text, emit an error like "Can't proceed, no config file found, search paths: ..."
Just getting the CLI help text was very misleading.
📃 Motivating Example

💻 Use Cases

It's possible to run tsc without a tsconfig, e.g.
  tsc app.ts util.ts
  Ignoring tsconfig.json, compiles the specified files with default compiler options.

So it's not the case that "tsc can't proceed because there is no config file" - it can't proceed because you haven't given it any input at all and there's no tsconfig for it to fall back on.  I agree this fact should be communicated better, though.

OK In that case I'd expect an error like "no config and no inputs so the command line flag is ignored" etc.

I want to work on this issue. Find a way to provide a better error message.

@jcollum-nutrien
looks like the tsc command without any input or flags is used as a synonym for tsc --help, when a tsconfig.json is not found in the working directory.
changing this behaviour to instead show an error is a breaking change in my opinion
use the --showConfig flag instead which provides a hint of missing config
tsc --showConfig
> error TS5081: Cannot find a tsconfig.json file at the current directory: ~/Projects/foo

@kamweti I agree that returning an error code to the shell from that warning could potentially be a breaking change. But we could inform users with a simple informational log to the console?


Make output less verbose

Example:
Running "bootlint:files" (bootlint) task

>> 52 file(s) lint free.

Passing --verbose should show all the info, but by default, that info is just extra bloat.
I can have a look when I have some time, unless someone else beats me to it.

@yargalot: pehaps this should be implemented in AccessSniff instead? It just too long now compared to other tools. See https://travis-ci.org/mpc-hc/mpc-hc.org/builds/110557334#L1012

Ok new version should fix this, @XhmikosR can you reinstall it with the patch and se what it outputs?

Now it is less verbose, indeed.
One minor change; I'd remove the newline before the success message and follow the same scheme all the grunt plugins use with grunt.ok.
I wonder if it's possible to speed the whole process by running one time AccessSniff.

Yep makes sense,
On the performance end, there are probably some easy wins there But im more thinking its the phantomjs bootup that takes the most time. Need to look more into it

Whoops hit the wrong button and submitted the comment before its finished. But anyway, yeh lets move this to the accessSniff repo, will have to investigate more.

@yargalot: this is valid again :/

kk, looking now

I'm thinking, this will be much easier to fix if performance was improved. At the moment, the best you can do is not show anything, which isn't good either since it takes a couple of minutes for the task to run.

Ok, just pushed a new version of the grunt plugin to fix this, should be good to go. Tested it a local repo of the mpc site ;)

The performance is pretty bad atm, Im thinking if we could open the phantomjs instance, leave it open and fee new sites to it that would be a lot better.
Only problem is Im unsure on how to do this atm, so need to look into it

Almost there :P
Running "accessibility:test" (accessibility) task

52 files lint free!

File "/home/travis/build/mpc-hc/mpc-hc.org/reports/report.null" created. Report Finished

Lol

Ah the defaults from accessSniff merge with the options you pass in the grunt plugin. Ill change the defaults and release it. Two secs

Ok thats fixed with the new release of AccessSniff @XhmikosR 😄

I see, thanks!


Reopen #5214

Issue #5241 was closed even though no action was taken for improving the documentation. #5241 states specific issues with existing and non-existing documentation that can be improved.
The request to reopen the issue is now almost 30 days old.

@DennisGaida - Thank you for submitting feedback.
Issue #5241 was closed as the issue reported was more of Product Support so the user was referred to open a service ticket to contact technical support to get that issue fixed.
We value collaboration and appreciate your efforts to clarify the docs. Could you please assist us by providing more details on how this content could be edited to incorporate your feedback? If you could suggest what the appropriate text and where it should be placed, I could assign one of our team members to create a Pull Request to get it added or you may also create a Pull Request to add in your suggestion and just link this issue so I can have the doc owner review and merge the content.
Thank you.

@DennisGaida - Is it issue #5214 or #5241 that you wish to reopen? Please confirm. The issue subject and the content of your issue request are different.

@DennisGaida - Is it issue #5214 or #5241 that you wish to reopen? Please confirm. The issue subject and the content of your issue request are different.

Thanks for replying! I'm sorry I meant #5214 - I edited the original issue to state so.

@DennisGaida - Thanks for the confirmation. I will just close this issue and re-open issue #5214 since the details are found on the comments thread there.


Add new resource artifactory_repository_layout

Closes #503

@alexhung could it be that there is no documentation available for this feature? I checked https://registry.terraform.io/providers/jfrog/artifactory/6.15.0 and cannot find anything.

@martinm82 You're 100% right! 😞 I'll add that ASAP.

@martinm82 https://registry.terraform.io/providers/jfrog/artifactory/latest/docs/resources/repository_layout


symbol "-" breaks grammar

This file has a broken syntax highlighting on the topmost key foo:
foo:
  bar: {{ .Values.foo.bar }}-{{ .Values.foo.bar }}

and yields the following tree

when replacing "-" with "a" highlighting starts to work as expected and tree changes significantly

Thank you for opening this issue!
Here is another example:
metadata:
  chart: {{ .Chart.Name }}-{{ .Chart.Version }}
  release: {{ .Release.Name }}

(template ; [0, 0] - [3, 0]
  (text ; [0, 0] - [1, 9]
    (ERROR ; [0, 0] - [1, 8]
      (flow_node ; [0, 0] - [0, 8]
        (plain_scalar ; [0, 0] - [0, 8]
          (string_scalar))) ; [0, 0] - [0, 8]
      (block_mapping_pair ; [1, 2] - [1, 8]
        key: (flow_node ; [1, 2] - [1, 7]
          (plain_scalar ; [1, 2] - [1, 7]
            (string_scalar)))))) ; [1, 2] - [1, 7]
  (selector_expression ; [1, 12] - [1, 23]
    operand: (field ; [1, 12] - [1, 18]
      name: (identifier)) ; [1, 13] - [1, 18]
    field: (field_identifier)) ; [1, 19] - [1, 23]
  (text) ; [1, 26] - [1, 27]
  (selector_expression ; [1, 30] - [1, 44]
    operand: (field ; [1, 30] - [1, 36]
      name: (identifier)) ; [1, 31] - [1, 36]
    field: (field_identifier)) ; [1, 37] - [1, 44]
  (text) ; [1, 47] - [2, 11]
  (selector_expression ; [2, 14] - [2, 27]
    operand: (field ; [2, 14] - [2, 22]
      name: (identifier)) ; [2, 15] - [2, 22]
    field: (field_identifier)) ; [2, 23] - [2, 27]
  (text)) ; [2, 30] - [3, 0]

Intentionally text and not image for easy copasting ;)

Hi, this is not something that can be fixed by this parser, as the syntax highlighting that is breaking is the yaml highlighting.
The given example is converted to the following yaml:
foo:
  bar:                      -

This is not valid yaml and the yaml parser will have an error.
I just opened a issue for the yaml tree-sitter parser: https://github.com/tree-sitter-grammars/tree-sitter-yaml/issues/12
One possible workaround would be to use quotes in the example:
foo:
  bar: "{{ .Values.foo.bar }}-{{ .Values.foo.bar }}"

Hi, this is not something that can be fixed by this parser, as the syntax highlighting that is breaking is the yaml highlighting.
The given example is converted to the following yaml:
foo:
  bar:                      -

This is not valid yaml and the yaml parser will have an error.

Then why an invalid yaml is being produced somewhere in the first place?

Then why an invalid yaml is being produced somewhere in the first place?

That's how injections work, the go-template grammar only parses things inside {{ }}, everything else is then parsed by the yaml grammar.
See https://tree-sitter.github.io/tree-sitter/syntax-highlighting#language-injection for more info,


Problem caused by the change from libjpeg to libjpeg-turbo

Expected behaviour
cv2.imread in different versions should return same values for the same JPG file.
Actual behaviour

For this image(w=153, h=209), pixel[0, 207] will get different value between 3.3 and 3.4

In 3.3, pixel[0, 207]  = [115, 52, 226]

In 3.4, pixel[0, 207]  = [111, 52, 223]
Steps to reproduce

example code
import cv2
print(cv2.__version__)
img = cv2.imread('001.jpg')
print(img[0, 207])
operating system
linux
architecture (e.g. x86)
x64
opencv-python version
3.4

I have tested the libjpeg and libjpeg-turbo, and this difference is caused by these two libs. (Test code in https://github.com/Marco-LIU/libjpeg-test)
Though the libjpeg-turbo has better performance than libjpeg, this difference will make a TRAP, and cause some machine learning models give DIFFERENT results for same input file. We've trained a model in v3.3, but got a wrong test result in v3.4 for that beauty pic.

Hmm, I thought that I already wrote a reply here but apparently I didn't...
Anyhow, I can confirm that there seems to be differences between these libraries. Most likely the issue is related to the optimizations which have been done in libjpeg-turbo. I have no way of knowing what might cause these differences but I presume that different decoding algorithms are used under the hood. In addition, the usage SIMD extensions might cause some inaccuracies to the results. Due to the nature of the JPEG's lossy format there's no way to "fix" this issue.
I'll be changing also macOS and Windows jpeg libs to libjpeg-turbo at some point. You can always compile OpenCV by yourself if you need extremely stable environment. I hope you understand that I cannot guarantee that these builds remain consistent across releases.


Account->Organization update fails

In Account menu, it does not update the Organization fields.

It is on purpose. Only the admin should be able to manage organization.
Maybe we should only show organization info and get rid of the UPDATE button.


Iterative performance test template for capturing results

Pull Request Template
What are you trying to address
During our previous couple of engagements, we had need to capture the results of performance tests in some sort of document so we can drive insights over time with different iterations of perf tests. Based on our learning we have created a template for capturing perf tests results. Customers were quite happy with the template so sharing it here for benefit of everyone. It can be a good starting point and can be modified as per need.
Fixed #747

@ankitbko I made some suggested changes, please let me know if you are ok with it and we can merge it in, thanks!

lgtm


fix: get the correct terminal instance by terminal short id

Types

[x] 🐛 Bug Fixes

Background or solution
close #1158
https://user-images.githubusercontent.com/9823838/171438764-8f08bc54-b244-4797-a095-90ae68b927d4.mp4
Changelog
get the correct terminal instance by terminal short id

this close: https://github.com/opensumi/core/issues/1125